-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathobjectstack.config.ts
More file actions
65 lines (60 loc) · 1.52 KB
/
objectstack.config.ts
File metadata and controls
65 lines (60 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import { ObjectStackManifest } from '@objectstack/spec/system';
const BiPlugin: ObjectStackManifest = {
id: 'com.objectstack.bi',
name: 'Business Intelligence Plugin',
version: '1.0.0',
type: 'plugin',
description: 'Provides BI capabilities, dataset definitions, and chart rendering.',
// 1. Configuration (Settings)
configuration: {
title: 'BI Plugin Configuration',
properties: {
enableCache: {
type: 'boolean',
default: true,
description: 'Enable in-memory caching for query results'
},
maxRows: {
type: 'number',
default: 1000,
description: 'Maximum rows returned per query'
}
}
},
// 2. Capabilities
contributes: {
kinds: [
{
id: 'bi.dataset',
globs: ['**/*.dataset.json', '**/*.dataset.ts'],
description: 'BI Dataset Definition'
},
{
id: 'bi.dashboard',
globs: ['**/*.bi-dash.json'],
description: 'Advanced BI Dashboard'
}
],
menus: {
'sidebar/tools': [
{ id: 'open_bi_studio', label: 'BI Studio', command: 'bi.openStudio' }
]
},
actions: [
{
name: 'refresh_dataset',
label: 'Refresh Dataset',
description: 'Manually trigger a dataset refresh',
input: { datasetId: 'string' }
}
]
},
// 3. Lifecycle Entry Point
// in a real scenario, this would be a path or module name
extensions: {
runtime: {
entry: './src/index.ts'
}
}
};
export default BiPlugin;