@lssm/example.analytics-dashboard 0.0.0-canary-20251221165922 → 0.0.0-canary-20251221193616
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/dashboard/dashboard.schema.d.ts +79 -79
- package/dist/events.d.ts +40 -40
- package/dist/libs/contracts/dist/data-views/data-views.js +7 -1
- package/dist/libs/contracts/dist/data-views/data-views.js.map +1 -0
- package/dist/libs/contracts/dist/features.js +7 -1
- package/dist/libs/contracts/dist/features.js.map +1 -0
- package/dist/libs/contracts/dist/operations/registry.js +7 -1
- package/dist/libs/contracts/dist/operations/registry.js.map +1 -0
- package/dist/libs/contracts/dist/presentations/presentations.js +7 -1
- package/dist/libs/contracts/dist/presentations/presentations.js.map +1 -0
- package/dist/libs/contracts/dist/workflow/spec.js +7 -1
- package/dist/libs/contracts/dist/workflow/spec.js.map +1 -0
- package/dist/query/query.enum.d.ts +2 -2
- package/dist/query/query.operation.d.ts +45 -45
- package/dist/query/query.schema.d.ts +34 -34
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema131 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/dashboard/dashboard.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* A dashboard widget.
|
|
6
6
|
*/
|
|
7
|
-
declare const WidgetModel:
|
|
7
|
+
declare const WidgetModel: _lssm_lib_schema131.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
dashboardId: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
name: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
type: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema131.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
gridX: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
gridY: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
gridWidth: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
gridHeight: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
queryId: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
42
42
|
isOptional: true;
|
|
43
43
|
};
|
|
44
44
|
config: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema131.FieldType<unknown, unknown>;
|
|
46
46
|
isOptional: true;
|
|
47
47
|
};
|
|
48
48
|
}>;
|
|
49
49
|
/**
|
|
50
50
|
* An analytics dashboard.
|
|
51
51
|
*/
|
|
52
|
-
declare const DashboardModel:
|
|
52
|
+
declare const DashboardModel: _lssm_lib_schema131.SchemaModel<{
|
|
53
53
|
id: {
|
|
54
|
-
type:
|
|
54
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
55
55
|
isOptional: false;
|
|
56
56
|
};
|
|
57
57
|
name: {
|
|
58
|
-
type:
|
|
58
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
59
59
|
isOptional: false;
|
|
60
60
|
};
|
|
61
61
|
slug: {
|
|
62
|
-
type:
|
|
62
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
63
63
|
isOptional: false;
|
|
64
64
|
};
|
|
65
65
|
description: {
|
|
66
|
-
type:
|
|
66
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
67
67
|
isOptional: true;
|
|
68
68
|
};
|
|
69
69
|
status: {
|
|
70
|
-
type:
|
|
70
|
+
type: _lssm_lib_schema131.EnumType<[string, string, string]>;
|
|
71
71
|
isOptional: false;
|
|
72
72
|
};
|
|
73
73
|
refreshInterval: {
|
|
74
|
-
type:
|
|
74
|
+
type: _lssm_lib_schema131.EnumType<[string, string, string, string, string, string]>;
|
|
75
75
|
isOptional: false;
|
|
76
76
|
};
|
|
77
77
|
isPublic: {
|
|
78
|
-
type:
|
|
78
|
+
type: _lssm_lib_schema131.FieldType<boolean, boolean>;
|
|
79
79
|
isOptional: false;
|
|
80
80
|
};
|
|
81
81
|
widgets: {
|
|
82
|
-
type:
|
|
82
|
+
type: _lssm_lib_schema131.SchemaModel<{
|
|
83
83
|
id: {
|
|
84
|
-
type:
|
|
84
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
85
85
|
isOptional: false;
|
|
86
86
|
};
|
|
87
87
|
dashboardId: {
|
|
88
|
-
type:
|
|
88
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
name: {
|
|
92
|
-
type:
|
|
92
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
93
93
|
isOptional: false;
|
|
94
94
|
};
|
|
95
95
|
type: {
|
|
96
|
-
type:
|
|
96
|
+
type: _lssm_lib_schema131.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
97
97
|
isOptional: false;
|
|
98
98
|
};
|
|
99
99
|
gridX: {
|
|
100
|
-
type:
|
|
100
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
101
101
|
isOptional: false;
|
|
102
102
|
};
|
|
103
103
|
gridY: {
|
|
104
|
-
type:
|
|
104
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
105
105
|
isOptional: false;
|
|
106
106
|
};
|
|
107
107
|
gridWidth: {
|
|
108
|
-
type:
|
|
108
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
109
109
|
isOptional: false;
|
|
110
110
|
};
|
|
111
111
|
gridHeight: {
|
|
112
|
-
type:
|
|
112
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
113
113
|
isOptional: false;
|
|
114
114
|
};
|
|
115
115
|
queryId: {
|
|
116
|
-
type:
|
|
116
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
117
117
|
isOptional: true;
|
|
118
118
|
};
|
|
119
119
|
config: {
|
|
120
|
-
type:
|
|
120
|
+
type: _lssm_lib_schema131.FieldType<unknown, unknown>;
|
|
121
121
|
isOptional: true;
|
|
122
122
|
};
|
|
123
123
|
}>;
|
|
@@ -125,95 +125,95 @@ declare const DashboardModel: _lssm_lib_schema169.SchemaModel<{
|
|
|
125
125
|
isOptional: true;
|
|
126
126
|
};
|
|
127
127
|
createdAt: {
|
|
128
|
-
type:
|
|
128
|
+
type: _lssm_lib_schema131.FieldType<Date, string>;
|
|
129
129
|
isOptional: false;
|
|
130
130
|
};
|
|
131
131
|
}>;
|
|
132
132
|
/**
|
|
133
133
|
* Input for creating a dashboard.
|
|
134
134
|
*/
|
|
135
|
-
declare const CreateDashboardInputModel:
|
|
135
|
+
declare const CreateDashboardInputModel: _lssm_lib_schema131.SchemaModel<{
|
|
136
136
|
name: {
|
|
137
|
-
type:
|
|
137
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
138
138
|
isOptional: false;
|
|
139
139
|
};
|
|
140
140
|
slug: {
|
|
141
|
-
type:
|
|
141
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
142
142
|
isOptional: false;
|
|
143
143
|
};
|
|
144
144
|
description: {
|
|
145
|
-
type:
|
|
145
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
146
146
|
isOptional: true;
|
|
147
147
|
};
|
|
148
148
|
refreshInterval: {
|
|
149
|
-
type:
|
|
149
|
+
type: _lssm_lib_schema131.EnumType<[string, string, string, string, string, string]>;
|
|
150
150
|
isOptional: true;
|
|
151
151
|
};
|
|
152
152
|
dateRange: {
|
|
153
|
-
type:
|
|
153
|
+
type: _lssm_lib_schema131.FieldType<unknown, unknown>;
|
|
154
154
|
isOptional: true;
|
|
155
155
|
};
|
|
156
156
|
}>;
|
|
157
157
|
/**
|
|
158
158
|
* Input for adding a widget.
|
|
159
159
|
*/
|
|
160
|
-
declare const AddWidgetInputModel:
|
|
160
|
+
declare const AddWidgetInputModel: _lssm_lib_schema131.SchemaModel<{
|
|
161
161
|
dashboardId: {
|
|
162
|
-
type:
|
|
162
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
163
163
|
isOptional: false;
|
|
164
164
|
};
|
|
165
165
|
name: {
|
|
166
|
-
type:
|
|
166
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
167
167
|
isOptional: false;
|
|
168
168
|
};
|
|
169
169
|
type: {
|
|
170
|
-
type:
|
|
170
|
+
type: _lssm_lib_schema131.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
171
171
|
isOptional: false;
|
|
172
172
|
};
|
|
173
173
|
gridX: {
|
|
174
|
-
type:
|
|
174
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
175
175
|
isOptional: true;
|
|
176
176
|
};
|
|
177
177
|
gridY: {
|
|
178
|
-
type:
|
|
178
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
179
179
|
isOptional: true;
|
|
180
180
|
};
|
|
181
181
|
gridWidth: {
|
|
182
|
-
type:
|
|
182
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
183
183
|
isOptional: true;
|
|
184
184
|
};
|
|
185
185
|
gridHeight: {
|
|
186
|
-
type:
|
|
186
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
187
187
|
isOptional: true;
|
|
188
188
|
};
|
|
189
189
|
queryId: {
|
|
190
|
-
type:
|
|
190
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
191
191
|
isOptional: true;
|
|
192
192
|
};
|
|
193
193
|
config: {
|
|
194
|
-
type:
|
|
194
|
+
type: _lssm_lib_schema131.FieldType<unknown, unknown>;
|
|
195
195
|
isOptional: true;
|
|
196
196
|
};
|
|
197
197
|
}>;
|
|
198
198
|
/**
|
|
199
199
|
* Input for listing dashboards.
|
|
200
200
|
*/
|
|
201
|
-
declare const ListDashboardsInputModel:
|
|
201
|
+
declare const ListDashboardsInputModel: _lssm_lib_schema131.SchemaModel<{
|
|
202
202
|
status: {
|
|
203
|
-
type:
|
|
203
|
+
type: _lssm_lib_schema131.EnumType<[string, string, string]>;
|
|
204
204
|
isOptional: true;
|
|
205
205
|
};
|
|
206
206
|
search: {
|
|
207
|
-
type:
|
|
207
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
208
208
|
isOptional: true;
|
|
209
209
|
};
|
|
210
210
|
limit: {
|
|
211
|
-
type:
|
|
211
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
212
212
|
isOptional: true;
|
|
213
213
|
defaultValue: number;
|
|
214
214
|
};
|
|
215
215
|
offset: {
|
|
216
|
-
type:
|
|
216
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
217
217
|
isOptional: true;
|
|
218
218
|
defaultValue: number;
|
|
219
219
|
};
|
|
@@ -221,77 +221,77 @@ declare const ListDashboardsInputModel: _lssm_lib_schema169.SchemaModel<{
|
|
|
221
221
|
/**
|
|
222
222
|
* Output for listing dashboards.
|
|
223
223
|
*/
|
|
224
|
-
declare const ListDashboardsOutputModel:
|
|
224
|
+
declare const ListDashboardsOutputModel: _lssm_lib_schema131.SchemaModel<{
|
|
225
225
|
dashboards: {
|
|
226
|
-
type:
|
|
226
|
+
type: _lssm_lib_schema131.SchemaModel<{
|
|
227
227
|
id: {
|
|
228
|
-
type:
|
|
228
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
229
229
|
isOptional: false;
|
|
230
230
|
};
|
|
231
231
|
name: {
|
|
232
|
-
type:
|
|
232
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
233
233
|
isOptional: false;
|
|
234
234
|
};
|
|
235
235
|
slug: {
|
|
236
|
-
type:
|
|
236
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
237
237
|
isOptional: false;
|
|
238
238
|
};
|
|
239
239
|
description: {
|
|
240
|
-
type:
|
|
240
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
241
241
|
isOptional: true;
|
|
242
242
|
};
|
|
243
243
|
status: {
|
|
244
|
-
type:
|
|
244
|
+
type: _lssm_lib_schema131.EnumType<[string, string, string]>;
|
|
245
245
|
isOptional: false;
|
|
246
246
|
};
|
|
247
247
|
refreshInterval: {
|
|
248
|
-
type:
|
|
248
|
+
type: _lssm_lib_schema131.EnumType<[string, string, string, string, string, string]>;
|
|
249
249
|
isOptional: false;
|
|
250
250
|
};
|
|
251
251
|
isPublic: {
|
|
252
|
-
type:
|
|
252
|
+
type: _lssm_lib_schema131.FieldType<boolean, boolean>;
|
|
253
253
|
isOptional: false;
|
|
254
254
|
};
|
|
255
255
|
widgets: {
|
|
256
|
-
type:
|
|
256
|
+
type: _lssm_lib_schema131.SchemaModel<{
|
|
257
257
|
id: {
|
|
258
|
-
type:
|
|
258
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
259
259
|
isOptional: false;
|
|
260
260
|
};
|
|
261
261
|
dashboardId: {
|
|
262
|
-
type:
|
|
262
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
263
263
|
isOptional: false;
|
|
264
264
|
};
|
|
265
265
|
name: {
|
|
266
|
-
type:
|
|
266
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
267
267
|
isOptional: false;
|
|
268
268
|
};
|
|
269
269
|
type: {
|
|
270
|
-
type:
|
|
270
|
+
type: _lssm_lib_schema131.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
271
271
|
isOptional: false;
|
|
272
272
|
};
|
|
273
273
|
gridX: {
|
|
274
|
-
type:
|
|
274
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
275
275
|
isOptional: false;
|
|
276
276
|
};
|
|
277
277
|
gridY: {
|
|
278
|
-
type:
|
|
278
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
279
279
|
isOptional: false;
|
|
280
280
|
};
|
|
281
281
|
gridWidth: {
|
|
282
|
-
type:
|
|
282
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
283
283
|
isOptional: false;
|
|
284
284
|
};
|
|
285
285
|
gridHeight: {
|
|
286
|
-
type:
|
|
286
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
287
287
|
isOptional: false;
|
|
288
288
|
};
|
|
289
289
|
queryId: {
|
|
290
|
-
type:
|
|
290
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
291
291
|
isOptional: true;
|
|
292
292
|
};
|
|
293
293
|
config: {
|
|
294
|
-
type:
|
|
294
|
+
type: _lssm_lib_schema131.FieldType<unknown, unknown>;
|
|
295
295
|
isOptional: true;
|
|
296
296
|
};
|
|
297
297
|
}>;
|
|
@@ -299,7 +299,7 @@ declare const ListDashboardsOutputModel: _lssm_lib_schema169.SchemaModel<{
|
|
|
299
299
|
isOptional: true;
|
|
300
300
|
};
|
|
301
301
|
createdAt: {
|
|
302
|
-
type:
|
|
302
|
+
type: _lssm_lib_schema131.FieldType<Date, string>;
|
|
303
303
|
isOptional: false;
|
|
304
304
|
};
|
|
305
305
|
}>;
|
|
@@ -307,24 +307,24 @@ declare const ListDashboardsOutputModel: _lssm_lib_schema169.SchemaModel<{
|
|
|
307
307
|
isOptional: false;
|
|
308
308
|
};
|
|
309
309
|
total: {
|
|
310
|
-
type:
|
|
310
|
+
type: _lssm_lib_schema131.FieldType<number, number>;
|
|
311
311
|
isOptional: false;
|
|
312
312
|
};
|
|
313
313
|
}>;
|
|
314
314
|
/**
|
|
315
315
|
* Input for getting a dashboard.
|
|
316
316
|
*/
|
|
317
|
-
declare const GetDashboardInputModel:
|
|
317
|
+
declare const GetDashboardInputModel: _lssm_lib_schema131.SchemaModel<{
|
|
318
318
|
dashboardId: {
|
|
319
|
-
type:
|
|
319
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
320
320
|
isOptional: true;
|
|
321
321
|
};
|
|
322
322
|
slug: {
|
|
323
|
-
type:
|
|
323
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
324
324
|
isOptional: true;
|
|
325
325
|
};
|
|
326
326
|
shareToken: {
|
|
327
|
-
type:
|
|
327
|
+
type: _lssm_lib_schema131.FieldType<string, string>;
|
|
328
328
|
isOptional: true;
|
|
329
329
|
};
|
|
330
330
|
}>;
|
package/dist/events.d.ts
CHANGED
|
@@ -1,145 +1,145 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_contracts5 from "@lssm/lib.contracts";
|
|
2
|
+
import * as _lssm_lib_schema286 from "@lssm/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/events.d.ts
|
|
5
|
-
declare const DashboardCreatedEvent:
|
|
5
|
+
declare const DashboardCreatedEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema286.SchemaModel<{
|
|
6
6
|
dashboardId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
title: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
orgId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
createdBy: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
timestamp: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema286.FieldType<Date, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
}>>;
|
|
27
|
-
declare const WidgetAddedEvent:
|
|
27
|
+
declare const WidgetAddedEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema286.SchemaModel<{
|
|
28
28
|
widgetId: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
dashboardId: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
widgetType: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
orgId: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
timestamp: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema286.FieldType<Date, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
}>>;
|
|
49
|
-
declare const QueryCreatedEvent:
|
|
49
|
+
declare const QueryCreatedEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema286.SchemaModel<{
|
|
50
50
|
queryId: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
name: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
queryType: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
orgId: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
createdBy: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
timestamp: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema286.FieldType<Date, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
}>>;
|
|
75
75
|
declare const AnalyticsDashboardEvents: {
|
|
76
|
-
DashboardCreatedEvent:
|
|
76
|
+
DashboardCreatedEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema286.SchemaModel<{
|
|
77
77
|
dashboardId: {
|
|
78
|
-
type:
|
|
78
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
79
79
|
isOptional: false;
|
|
80
80
|
};
|
|
81
81
|
title: {
|
|
82
|
-
type:
|
|
82
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
83
83
|
isOptional: false;
|
|
84
84
|
};
|
|
85
85
|
orgId: {
|
|
86
|
-
type:
|
|
86
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
87
87
|
isOptional: false;
|
|
88
88
|
};
|
|
89
89
|
createdBy: {
|
|
90
|
-
type:
|
|
90
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
91
91
|
isOptional: false;
|
|
92
92
|
};
|
|
93
93
|
timestamp: {
|
|
94
|
-
type:
|
|
94
|
+
type: _lssm_lib_schema286.FieldType<Date, string>;
|
|
95
95
|
isOptional: false;
|
|
96
96
|
};
|
|
97
97
|
}>>;
|
|
98
|
-
WidgetAddedEvent:
|
|
98
|
+
WidgetAddedEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema286.SchemaModel<{
|
|
99
99
|
widgetId: {
|
|
100
|
-
type:
|
|
100
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
101
101
|
isOptional: false;
|
|
102
102
|
};
|
|
103
103
|
dashboardId: {
|
|
104
|
-
type:
|
|
104
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
105
105
|
isOptional: false;
|
|
106
106
|
};
|
|
107
107
|
widgetType: {
|
|
108
|
-
type:
|
|
108
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
109
109
|
isOptional: false;
|
|
110
110
|
};
|
|
111
111
|
orgId: {
|
|
112
|
-
type:
|
|
112
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
113
113
|
isOptional: false;
|
|
114
114
|
};
|
|
115
115
|
timestamp: {
|
|
116
|
-
type:
|
|
116
|
+
type: _lssm_lib_schema286.FieldType<Date, string>;
|
|
117
117
|
isOptional: false;
|
|
118
118
|
};
|
|
119
119
|
}>>;
|
|
120
|
-
QueryCreatedEvent:
|
|
120
|
+
QueryCreatedEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema286.SchemaModel<{
|
|
121
121
|
queryId: {
|
|
122
|
-
type:
|
|
122
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
123
123
|
isOptional: false;
|
|
124
124
|
};
|
|
125
125
|
name: {
|
|
126
|
-
type:
|
|
126
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
127
127
|
isOptional: false;
|
|
128
128
|
};
|
|
129
129
|
queryType: {
|
|
130
|
-
type:
|
|
130
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
131
131
|
isOptional: false;
|
|
132
132
|
};
|
|
133
133
|
orgId: {
|
|
134
|
-
type:
|
|
134
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
135
135
|
isOptional: false;
|
|
136
136
|
};
|
|
137
137
|
createdBy: {
|
|
138
|
-
type:
|
|
138
|
+
type: _lssm_lib_schema286.FieldType<string, string>;
|
|
139
139
|
isOptional: false;
|
|
140
140
|
};
|
|
141
141
|
timestamp: {
|
|
142
|
-
type:
|
|
142
|
+
type: _lssm_lib_schema286.FieldType<Date, string>;
|
|
143
143
|
isOptional: false;
|
|
144
144
|
};
|
|
145
145
|
}>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-views.js","names":[],"sources":["../../../../../../../libs/contracts/dist/data-views/data-views.js"],"sourcesContent":["import { filterBy, getUniqueTags, groupBy, init_registry_utils } from \"../registry-utils.js\";\n\n//#region src/data-views/data-views.ts\ninit_registry_utils();\nfunction keyOf(spec) {\n\treturn `${spec.meta.name}.v${spec.meta.version}`;\n}\nvar DataViewRegistry = class {\n\titems = /* @__PURE__ */ new Map();\n\tregister(spec) {\n\t\tconst key = keyOf(spec);\n\t\tif (this.items.has(key)) throw new Error(`Duplicate data view ${key}`);\n\t\tthis.items.set(key, spec);\n\t\treturn this;\n\t}\n\tlist() {\n\t\treturn [...this.items.values()];\n\t}\n\tget(name, version) {\n\t\tif (version != null) return this.items.get(`${name}.v${version}`);\n\t\tlet candidate;\n\t\tlet max = -Infinity;\n\t\tfor (const spec of this.items.values()) {\n\t\t\tif (spec.meta.name !== name) continue;\n\t\t\tif (spec.meta.version > max) {\n\t\t\t\tmax = spec.meta.version;\n\t\t\t\tcandidate = spec;\n\t\t\t}\n\t\t}\n\t\treturn candidate;\n\t}\n\t/** Filter data views by criteria. */\n\tfilter(criteria) {\n\t\treturn filterBy(this.list(), criteria);\n\t}\n\t/** List data views with specific tag. */\n\tlistByTag(tag) {\n\t\treturn this.list().filter((d) => d.meta.tags?.includes(tag));\n\t}\n\t/** List data views by owner. */\n\tlistByOwner(owner) {\n\t\treturn this.list().filter((d) => d.meta.owners?.includes(owner));\n\t}\n\t/** Group data views by key function. */\n\tgroupBy(keyFn) {\n\t\treturn groupBy(this.list(), keyFn);\n\t}\n\t/** Get unique tags from all data views. */\n\tgetUniqueTags() {\n\t\treturn getUniqueTags(this.list());\n\t}\n};\nfunction dataViewKey(spec) {\n\treturn keyOf(spec);\n}\n\n//#endregion\nexport { DataViewRegistry, dataViewKey };"],"mappings":";;;AAGA,qBAAqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features.js","names":[],"sources":["../../../../../../libs/contracts/dist/features.js"],"sourcesContent":["import { filterBy, getUniqueTags, groupBy, init_registry_utils } from \"./registry-utils.js\";\n\n//#region src/features.ts\ninit_registry_utils();\nfunction keyOf(f) {\n\treturn f.meta.key;\n}\n/** In-memory registry for FeatureModuleSpec. */\nvar FeatureRegistry = class {\n\titems = /* @__PURE__ */ new Map();\n\t/** Register a feature module. Throws when the key already exists. */\n\tregister(f) {\n\t\tconst key = keyOf(f);\n\t\tif (this.items.has(key)) throw new Error(`Duplicate feature ${key}`);\n\t\tthis.items.set(key, f);\n\t\treturn this;\n\t}\n\t/** List all registered feature modules. */\n\tlist() {\n\t\treturn [...this.items.values()];\n\t}\n\t/** Get a feature by its key (slug). */\n\tget(key) {\n\t\treturn this.items.get(key);\n\t}\n\t/** Filter features by criteria. */\n\tfilter(criteria) {\n\t\treturn filterBy(this.list(), criteria);\n\t}\n\t/** List features with specific tag. */\n\tlistByTag(tag) {\n\t\treturn this.list().filter((f) => f.meta.tags?.includes(tag));\n\t}\n\t/** List features by owner. */\n\tlistByOwner(owner) {\n\t\treturn this.list().filter((f) => f.meta.owners?.includes(owner));\n\t}\n\t/** Group features by key function. */\n\tgroupBy(keyFn) {\n\t\treturn groupBy(this.list(), keyFn);\n\t}\n\t/** Get unique tags from all features. */\n\tgetUniqueTags() {\n\t\treturn getUniqueTags(this.list());\n\t}\n};\n/** Validate and register a feature against optional registries/descriptors. */\nfunction installFeature(feature, deps) {\n\tif (deps.ops && feature.operations) {\n\t\tfor (const o of feature.operations) if (!deps.ops.getSpec(o.name, o.version)) throw new Error(`installFeature: operation not found ${o.name}.v${o.version}`);\n\t}\n\tif (deps.presentations && feature.presentations) {\n\t\tfor (const p of feature.presentations) if (!deps.presentations.get(p.name, p.version)) throw new Error(`installFeature: presentation not found ${p.name}.v${p.version}`);\n\t}\n\tif (feature.presentationsTargets && deps.descriptorsV2) for (const req of feature.presentationsTargets) {\n\t\tconst d = deps.descriptorsV2.find((x) => x.meta.name === req.name && x.meta.version === req.version);\n\t\tif (!d) throw new Error(`installFeature: V2 descriptor not found ${req.name}.v${req.version}`);\n\t\tfor (const t of req.targets) if (!d.targets.includes(t)) throw new Error(`installFeature: descriptor ${req.name}.v${req.version} missing target ${t}`);\n\t}\n\tif (feature.opToPresentation && feature.opToPresentation.length > 0) for (const link of feature.opToPresentation) {\n\t\tif (deps.ops) {\n\t\t\tif (!deps.ops.getSpec(link.op.name, link.op.version)) throw new Error(`installFeature: linked op not found ${link.op.name}.v${link.op.version}`);\n\t\t}\n\t\tif (deps.presentations) {\n\t\t\tif (!deps.presentations.get(link.pres.name, link.pres.version)) throw new Error(`installFeature: linked presentation not found ${link.pres.name}.v${link.pres.version}`);\n\t\t}\n\t}\n\tif (deps.capabilities && feature.capabilities?.provides) {\n\t\tfor (const cap of feature.capabilities.provides) if (!deps.capabilities.get(cap.key, cap.version)) throw new Error(`installFeature: capability not registered ${cap.key}.v${cap.version}`);\n\t}\n\tif (feature.capabilities?.requires?.length) {\n\t\tif (!deps.capabilities) throw new Error(`installFeature: capability registry required to validate capability requirements for ${feature.meta.key}`);\n\t\tconst provided = feature.capabilities.provides ?? [];\n\t\tfor (const req of feature.capabilities.requires) if (!deps.capabilities.satisfies(req, provided)) throw new Error(`installFeature: capability requirement not satisfied ${req.key}${req.version ? `.v${req.version}` : \"\"}`);\n\t}\n\tdeps.features.register(feature);\n\treturn deps.features;\n}\n/** Ensure declared target requirements exist on the provided descriptors. */\nfunction validateFeatureTargetsV2(feature, descriptors) {\n\tif (!feature.presentationsTargets || feature.presentationsTargets.length === 0) return true;\n\tfor (const req of feature.presentationsTargets) {\n\t\tconst d = descriptors.find((x) => x.meta.name === req.name && x.meta.version === req.version);\n\t\tif (!d) throw new Error(`V2 descriptor not found ${req.name}.v${req.version}`);\n\t\tfor (const t of req.targets) if (!d.targets.includes(t)) throw new Error(`Descriptor ${req.name}.v${req.version} missing target ${t}`);\n\t}\n\treturn true;\n}\n\n//#endregion\nexport { FeatureRegistry, installFeature, validateFeatureTargetsV2 };"],"mappings":";;;AAGA,qBAAqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","names":[],"sources":["../../../../../../../libs/contracts/dist/operations/registry.js"],"sourcesContent":["import { eventKey } from \"../events.js\";\nimport { GroupingStrategies, filterBy, getUniqueOwners, getUniqueTags, groupBy, init_registry_utils } from \"../registry-utils.js\";\nimport { isEmitDeclRef } from \"./operation.js\";\n\n//#region src/operations/registry.ts\ninit_registry_utils();\nfunction opKey(name, version) {\n\treturn `${name}.v${version}`;\n}\n/**\n* In-memory registry for ContractSpecs and their bound handlers.\n* Provides validation, policy enforcement, and guarded event emission at execute time.\n*/\nvar OperationSpecRegistry = class {\n\tspecs = /* @__PURE__ */ new Map();\n\thandlers = /* @__PURE__ */ new Map();\n\t/**\n\t* Registers a OperationSpec definition.\n\t*\n\t* @param spec - The contract specification to register.\n\t* @returns The registry instance for chaining.\n\t* @throws If a spec with the same name and version is already registered.\n\t*/\n\tregister(spec) {\n\t\tconst key = opKey(spec.meta.name, spec.meta.version);\n\t\tif (this.specs.has(key)) throw new Error(`Duplicate spec ${key}`);\n\t\tthis.specs.set(key, spec);\n\t\treturn this;\n\t}\n\t/**\n\t* Binds a runtime handler implementation to a previously registered spec.\n\t*\n\t* @param spec - The spec to bind to.\n\t* @param handler - The async function implementing the business logic.\n\t* @returns The registry instance for chaining.\n\t* @throws If the spec is not found or a handler is already bound.\n\t*/\n\tbind(spec, handler) {\n\t\tconst key = opKey(spec.meta.name, spec.meta.version);\n\t\tif (!this.specs.has(key)) throw new Error(`Cannot bind; spec not found: ${key}`);\n\t\tif (this.handlers.has(key)) throw new Error(`Handler already bound for ${key}`);\n\t\tthis.handlers.set(key, handler);\n\t\treturn this;\n\t}\n\t/**\n\t* Retrieves a registered spec by name and version.\n\t* If version is omitted, returns the highest version found.\n\t*\n\t* @param name - Operation name.\n\t* @param version - (Optional) Specific version.\n\t*/\n\tgetSpec(name, version) {\n\t\tif (version != null) return this.specs.get(opKey(name, version));\n\t\tlet found;\n\t\tlet maxV = -Infinity;\n\t\tfor (const [k, s] of this.specs.entries()) {\n\t\t\tif (!k.startsWith(`${name}.v`)) continue;\n\t\t\tif (s.meta.version > maxV) {\n\t\t\t\tmaxV = s.meta.version;\n\t\t\t\tfound = s;\n\t\t\t}\n\t\t}\n\t\treturn found;\n\t}\n\t/**\n\t* Retrieves the bound handler for a spec.\n\t*/\n\tgetHandler(name, version) {\n\t\tconst spec = this.getSpec(name, version);\n\t\tif (!spec) return void 0;\n\t\treturn this.handlers.get(opKey(spec.meta.name, spec.meta.version));\n\t}\n\t/** Iterate all registered specs. */\n\tlistSpecs() {\n\t\treturn [...this.specs.values()];\n\t}\n\t/** Iterate all bound operations (spec+handler). */\n\tlistBound() {\n\t\tconst out = [];\n\t\tfor (const [k, spec] of this.specs.entries()) {\n\t\t\tconst h = this.handlers.get(k);\n\t\t\tif (h) out.push({\n\t\t\t\tspec,\n\t\t\t\thandler: h\n\t\t\t});\n\t\t}\n\t\treturn out;\n\t}\n\t/**\n\t* Filter specs by criteria.\n\t*/\n\tfilter(criteria) {\n\t\treturn filterBy(this.listSpecs(), criteria);\n\t}\n\t/**\n\t* List specs with specific tag.\n\t*/\n\tlistByTag(tag) {\n\t\treturn this.listSpecs().filter((s) => s.meta.tags?.includes(tag));\n\t}\n\t/**\n\t* List specs by owner.\n\t*/\n\tlistByOwner(owner) {\n\t\treturn this.listSpecs().filter((s) => s.meta.owners?.includes(owner));\n\t}\n\t/**\n\t* Group specs by key function.\n\t*/\n\tgroupBy(keyFn) {\n\t\treturn groupBy(this.listSpecs(), keyFn);\n\t}\n\t/**\n\t* Group by domain (first segment of name).\n\t*/\n\tgroupByDomain() {\n\t\treturn this.groupBy(GroupingStrategies.byDomain);\n\t}\n\t/**\n\t* Group by tag.\n\t*/\n\tgroupByTag() {\n\t\treturn this.groupBy(GroupingStrategies.byTag);\n\t}\n\t/**\n\t* Get unique tags from all specs.\n\t*/\n\tgetUniqueTags() {\n\t\treturn getUniqueTags(this.listSpecs());\n\t}\n\t/**\n\t* Get unique owners from all specs.\n\t*/\n\tgetUniqueOwners() {\n\t\treturn getUniqueOwners(this.listSpecs());\n\t}\n\t/**\n\t* Execute an operation by name/version with full runtime protections:\n\t* 1. Validates input against Zod schema.\n\t* 2. Enforces policy (Auth, RBAC, Rate Limits) via PDP.\n\t* 3. Guards event emission to ensure only declared events are sent.\n\t* 4. Validates output against Zod schema (if applicable).\n\t* 5. Tracks telemetry (success/failure).\n\t*\n\t* @param name - Operation name.\n\t* @param version - Operation version (optional, defaults to latest).\n\t* @param rawInput - The raw input payload (e.g. from JSON body).\n\t* @param ctx - The runtime context (actor, tenant, etc.).\n\t*/\n\tasync execute(name, version, rawInput, ctx) {\n\t\tconst baseSpec = this.getSpec(name, version);\n\t\tif (!baseSpec) throw new Error(`Spec not found for ${name}${version ? `.v${version}` : \"\"}`);\n\t\tconst spec = await ctx.specVariantResolver?.resolve({\n\t\t\tname: baseSpec.meta.name,\n\t\t\tversion: baseSpec.meta.version,\n\t\t\tkind: baseSpec.meta.kind\n\t\t}, ctx) ?? baseSpec;\n\t\tlet key = opKey(spec.meta.name, spec.meta.version);\n\t\tlet handler = this.handlers.get(key);\n\t\tif (!handler) {\n\t\t\tconst fallbackKey = opKey(baseSpec.meta.name, baseSpec.meta.version);\n\t\t\thandler = this.handlers.get(fallbackKey);\n\t\t\tkey = fallbackKey;\n\t\t}\n\t\tif (!handler) throw new Error(`No handler bound for ${key}`);\n\t\tconst parsedInput = spec.io.input?.getZod().parse(rawInput);\n\t\tif (ctx.decide) {\n\t\t\tconst [service, command] = spec.meta.name.split(\".\");\n\t\t\tif (!service || !command) throw new Error(`Invalid spec name: ${spec.meta.name}`);\n\t\t\tconst decision = await ctx.decide({\n\t\t\t\tservice,\n\t\t\t\tcommand,\n\t\t\t\tversion: spec.meta.version,\n\t\t\t\tactor: ctx.actor ?? \"anonymous\",\n\t\t\t\tchannel: ctx.channel,\n\t\t\t\troles: ctx.roles,\n\t\t\t\torganizationId: ctx.organizationId,\n\t\t\t\tuserId: ctx.userId,\n\t\t\t\tflags: []\n\t\t\t});\n\t\t\tif (decision.effect === \"deny\") throw new Error(`PolicyDenied: ${spec.meta.name}.v${spec.meta.version}`);\n\t\t\tif (decision.rateLimit && ctx.rateLimit) {\n\t\t\t\tconst key$1 = decision.rateLimit.key ?? \"default\";\n\t\t\t\tconst rpm = decision.rateLimit.rpm ?? 60;\n\t\t\t\tawait ctx.rateLimit(key$1, 1, rpm);\n\t\t\t}\n\t\t}\n\t\tconst allowedEvents = /* @__PURE__ */ new Map();\n\t\tif (spec.sideEffects?.emits) for (const e of spec.sideEffects.emits) if (isEmitDeclRef(e)) allowedEvents.set(`${e.ref.name}.v${e.ref.version}`, e.ref.payload);\n\t\telse allowedEvents.set(`${e.name}.v${e.version}`, e.payload);\n\t\tconst emitGuard = async (eventName, eventVersion, payload) => {\n\t\t\tconst key2 = eventKey(eventName, eventVersion);\n\t\t\tconst schema = allowedEvents.get(key2);\n\t\t\tif (!schema) throw new Error(`UndeclaredEvent: ${key2} not allowed by ${opKey(spec.meta.name, spec.meta.version)}`);\n\t\t\tconst parsed = schema.getZod().parse(payload);\n\t\t\tawait ctx.eventPublisher?.({\n\t\t\t\tname: eventName,\n\t\t\t\tversion: eventVersion,\n\t\t\t\tpayload: parsed,\n\t\t\t\ttraceId: ctx.traceId\n\t\t\t});\n\t\t};\n\t\tif (ctx.appConfig) {\n\t\t\tif (!ctx.branding) ctx.branding = ctx.appConfig.branding;\n\t\t\tif (!ctx.translation) ctx.translation = { config: ctx.appConfig.translation };\n\t\t\telse if (!ctx.translation.config) ctx.translation = {\n\t\t\t\t...ctx.translation,\n\t\t\t\tconfig: ctx.appConfig.translation\n\t\t\t};\n\t\t}\n\t\tconst telemetryContext = ctx.telemetry;\n\t\tconst trackTelemetry = async (trigger, details) => {\n\t\t\tif (!telemetryContext || !trigger?.event) return;\n\t\t\ttry {\n\t\t\t\tconst props = trigger.properties?.(details) ?? {};\n\t\t\t\tawait telemetryContext.track(trigger.event.name, trigger.event.version ?? 1, props, {\n\t\t\t\t\ttenantId: ctx.organizationId ?? void 0,\n\t\t\t\t\torganizationId: ctx.organizationId,\n\t\t\t\t\tuserId: ctx.userId,\n\t\t\t\t\tactor: ctx.actor,\n\t\t\t\t\tchannel: ctx.channel,\n\t\t\t\t\tmetadata: ctx.traceId ? { traceId: ctx.traceId } : void 0\n\t\t\t\t});\n\t\t\t} catch (_error) {}\n\t\t};\n\t\tlet result;\n\t\ttry {\n\t\t\tresult = await handler(parsedInput, {\n\t\t\t\t...ctx,\n\t\t\t\t__emitGuard__: emitGuard\n\t\t\t});\n\t\t} catch (error) {\n\t\t\tif (spec.telemetry?.failure) await trackTelemetry(spec.telemetry.failure, {\n\t\t\t\tinput: parsedInput ?? rawInput,\n\t\t\t\terror\n\t\t\t});\n\t\t\tthrow error;\n\t\t}\n\t\tif (spec.telemetry?.success) await trackTelemetry(spec.telemetry.success, {\n\t\t\tinput: parsedInput ?? rawInput,\n\t\t\toutput: result\n\t\t});\n\t\tconst outputModel = spec.io.output;\n\t\tif (outputModel?.getZod) return outputModel.getZod().parse(result);\n\t\treturn result;\n\t}\n};\n\n//#endregion\nexport { OperationSpecRegistry, opKey };"],"mappings":";;;;AAKA,qBAAqB"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import "../registry-utils.js";
|
|
1
|
+
import { init_registry_utils } from "../registry-utils.js";
|
|
2
2
|
import z from "zod";
|
|
3
|
+
|
|
4
|
+
//#region ../../libs/contracts/dist/presentations/presentations.js
|
|
5
|
+
init_registry_utils();
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
//# sourceMappingURL=presentations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentations.js","names":[],"sources":["../../../../../../../libs/contracts/dist/presentations/presentations.js"],"sourcesContent":["import { filterBy, getUniqueTags, groupBy, init_registry_utils } from \"../registry-utils.js\";\nimport z from \"zod\";\n\n//#region src/presentations/presentations.ts\ninit_registry_utils();\nfunction keyOf(p) {\n\treturn `${p.meta.name}.v${p.meta.version}`;\n}\n/** In-memory registry for V1 PresentationSpec. */\nvar PresentationRegistry = class {\n\titems = /* @__PURE__ */ new Map();\n\tconstructor(items) {\n\t\tif (items) items.forEach((p) => this.register(p));\n\t}\n\tregister(p) {\n\t\tconst key = keyOf(p);\n\t\tif (this.items.has(key)) throw new Error(`Duplicate presentation ${key}`);\n\t\tthis.items.set(key, p);\n\t\treturn this;\n\t}\n\tlist() {\n\t\treturn [...this.items.values()];\n\t}\n\tget(name, version) {\n\t\tif (version != null) return this.items.get(`${name}.v${version}`);\n\t\tlet candidate;\n\t\tlet max = -Infinity;\n\t\tfor (const [k, p] of this.items.entries()) {\n\t\t\tif (!k.startsWith(`${name}.v`)) continue;\n\t\t\tif (p.meta.version > max) {\n\t\t\t\tmax = p.meta.version;\n\t\t\t\tcandidate = p;\n\t\t\t}\n\t\t}\n\t\treturn candidate;\n\t}\n\t/** Filter presentations by criteria. */\n\tfilter(criteria) {\n\t\treturn filterBy(this.list(), criteria);\n\t}\n\t/** List presentations with specific tag. */\n\tlistByTag(tag) {\n\t\treturn this.list().filter((p) => p.meta.tags?.includes(tag));\n\t}\n\t/** List presentations by owner. */\n\tlistByOwner(owner) {\n\t\treturn this.list().filter((p) => p.meta.owners?.includes(owner));\n\t}\n\t/** Group presentations by key function. */\n\tgroupBy(keyFn) {\n\t\treturn groupBy(this.list(), keyFn);\n\t}\n\t/** Get unique tags from all presentations. */\n\tgetUniqueTags() {\n\t\treturn getUniqueTags(this.list());\n\t}\n};\nfunction jsonSchemaForPresentation(p) {\n\tconst base = {\n\t\tmeta: {\n\t\t\tname: p.meta.name,\n\t\t\tversion: p.meta.version,\n\t\t\tstability: p.meta.stability ?? \"stable\",\n\t\t\ttags: p.meta.tags ?? [],\n\t\t\tdescription: p.meta.description ?? \"\"\n\t\t},\n\t\tkind: p.content.kind\n\t};\n\tif (p.content.kind === \"web_component\") return {\n\t\t...base,\n\t\tframework: p.content.framework,\n\t\tcomponentKey: p.content.componentKey,\n\t\tprops: z.toJSONSchema(p.content.props.getZod())\n\t};\n\tif (p.content.kind === \"markdown\") return {\n\t\t...base,\n\t\tcontent: p.content.content,\n\t\tresourceUri: p.content.resourceUri\n\t};\n\treturn {\n\t\t...base,\n\t\tmimeType: p.content.mimeType,\n\t\tmodel: z.toJSONSchema(p.content.model.getZod())\n\t};\n}\n\n//#endregion\nexport { PresentationRegistry, jsonSchemaForPresentation };"],"mappings":";;;;AAIA,qBAAqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spec.js","names":[],"sources":["../../../../../../../libs/contracts/dist/workflow/spec.js"],"sourcesContent":["import { filterBy, getUniqueTags, groupBy, init_registry_utils } from \"../registry-utils.js\";\n\n//#region src/workflow/spec.ts\ninit_registry_utils();\nfunction workflowKey(meta) {\n\treturn `${meta.name}.v${meta.version}`;\n}\nvar WorkflowRegistry = class {\n\titems = /* @__PURE__ */ new Map();\n\tregister(spec) {\n\t\tconst key = workflowKey(spec.meta);\n\t\tif (this.items.has(key)) throw new Error(`Duplicate workflow ${key}`);\n\t\tthis.items.set(key, spec);\n\t\treturn this;\n\t}\n\tlist() {\n\t\treturn [...this.items.values()];\n\t}\n\tget(name, version) {\n\t\tif (version != null) return this.items.get(`${name}.v${version}`);\n\t\tlet candidate;\n\t\tlet max = -Infinity;\n\t\tfor (const spec of this.items.values()) {\n\t\t\tif (spec.meta.name !== name) continue;\n\t\t\tif (spec.meta.version > max) {\n\t\t\t\tmax = spec.meta.version;\n\t\t\t\tcandidate = spec;\n\t\t\t}\n\t\t}\n\t\treturn candidate;\n\t}\n\t/** Filter workflows by criteria. */\n\tfilter(criteria) {\n\t\treturn filterBy(this.list(), criteria);\n\t}\n\t/** List workflows with specific tag. */\n\tlistByTag(tag) {\n\t\treturn this.list().filter((w) => w.meta.tags?.includes(tag));\n\t}\n\t/** List workflows by owner. */\n\tlistByOwner(owner) {\n\t\treturn this.list().filter((w) => w.meta.owners?.includes(owner));\n\t}\n\t/** Group workflows by key function. */\n\tgroupBy(keyFn) {\n\t\treturn groupBy(this.list(), keyFn);\n\t}\n\t/** Get unique tags from all workflows. */\n\tgetUniqueTags() {\n\t\treturn getUniqueTags(this.list());\n\t}\n};\n\n//#endregion\nexport { WorkflowRegistry };"],"mappings":";;;AAGA,qBAAqB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema209 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/query/query.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Query type enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const QueryTypeEnum:
|
|
7
|
+
declare const QueryTypeEnum: _lssm_lib_schema209.EnumType<[string, string, string, string]>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { QueryTypeEnum };
|
|
10
10
|
//# sourceMappingURL=query.enum.d.ts.map
|
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_contracts3 from "@lssm/lib.contracts";
|
|
2
|
+
import * as _lssm_lib_schema210 from "@lssm/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/query/query.operation.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Create a data query.
|
|
7
7
|
*/
|
|
8
|
-
declare const CreateQueryContract:
|
|
8
|
+
declare const CreateQueryContract: _lssm_lib_contracts3.OperationSpec<_lssm_lib_schema210.SchemaModel<{
|
|
9
9
|
name: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema210.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
description: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema210.FieldType<string, string>;
|
|
15
15
|
isOptional: true;
|
|
16
16
|
};
|
|
17
17
|
type: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema210.EnumType<[string, string, string, string]>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
definition: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema210.FieldType<unknown, unknown>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
sql: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema210.FieldType<string, string>;
|
|
27
27
|
isOptional: true;
|
|
28
28
|
};
|
|
29
29
|
metricIds: {
|
|
30
|
-
type:
|
|
30
|
+
type: _lssm_lib_schema210.FieldType<string, string>;
|
|
31
31
|
isArray: true;
|
|
32
32
|
isOptional: true;
|
|
33
33
|
};
|
|
34
34
|
cacheTtlSeconds: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema210.FieldType<number, number>;
|
|
36
36
|
isOptional: true;
|
|
37
37
|
};
|
|
38
38
|
isShared: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema210.FieldType<boolean, boolean>;
|
|
40
40
|
isOptional: true;
|
|
41
41
|
};
|
|
42
|
-
}>,
|
|
42
|
+
}>, _lssm_lib_schema210.SchemaModel<{
|
|
43
43
|
id: {
|
|
44
|
-
type:
|
|
44
|
+
type: _lssm_lib_schema210.FieldType<string, string>;
|
|
45
45
|
isOptional: false;
|
|
46
46
|
};
|
|
47
47
|
name: {
|
|
48
|
-
type:
|
|
48
|
+
type: _lssm_lib_schema210.FieldType<string, string>;
|
|
49
49
|
isOptional: false;
|
|
50
50
|
};
|
|
51
51
|
description: {
|
|
52
|
-
type:
|
|
52
|
+
type: _lssm_lib_schema210.FieldType<string, string>;
|
|
53
53
|
isOptional: true;
|
|
54
54
|
};
|
|
55
55
|
type: {
|
|
56
|
-
type:
|
|
56
|
+
type: _lssm_lib_schema210.EnumType<[string, string, string, string]>;
|
|
57
57
|
isOptional: false;
|
|
58
58
|
};
|
|
59
59
|
definition: {
|
|
60
|
-
type:
|
|
60
|
+
type: _lssm_lib_schema210.FieldType<unknown, unknown>;
|
|
61
61
|
isOptional: false;
|
|
62
62
|
};
|
|
63
63
|
sql: {
|
|
64
|
-
type:
|
|
64
|
+
type: _lssm_lib_schema210.FieldType<string, string>;
|
|
65
65
|
isOptional: true;
|
|
66
66
|
};
|
|
67
67
|
cacheTtlSeconds: {
|
|
68
|
-
type:
|
|
68
|
+
type: _lssm_lib_schema210.FieldType<number, number>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
isShared: {
|
|
72
|
-
type:
|
|
72
|
+
type: _lssm_lib_schema210.FieldType<boolean, boolean>;
|
|
73
73
|
isOptional: false;
|
|
74
74
|
};
|
|
75
75
|
createdAt: {
|
|
76
|
-
type:
|
|
76
|
+
type: _lssm_lib_schema210.FieldType<Date, string>;
|
|
77
77
|
isOptional: false;
|
|
78
78
|
};
|
|
79
79
|
}>, {
|
|
80
80
|
name: string;
|
|
81
81
|
version: number;
|
|
82
82
|
when: string;
|
|
83
|
-
payload:
|
|
83
|
+
payload: _lssm_lib_schema210.SchemaModel<{
|
|
84
84
|
id: {
|
|
85
|
-
type:
|
|
85
|
+
type: _lssm_lib_schema210.FieldType<string, string>;
|
|
86
86
|
isOptional: false;
|
|
87
87
|
};
|
|
88
88
|
name: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema210.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
description: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema210.FieldType<string, string>;
|
|
94
94
|
isOptional: true;
|
|
95
95
|
};
|
|
96
96
|
type: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema210.EnumType<[string, string, string, string]>;
|
|
98
98
|
isOptional: false;
|
|
99
99
|
};
|
|
100
100
|
definition: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema210.FieldType<unknown, unknown>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
sql: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema210.FieldType<string, string>;
|
|
106
106
|
isOptional: true;
|
|
107
107
|
};
|
|
108
108
|
cacheTtlSeconds: {
|
|
109
|
-
type:
|
|
109
|
+
type: _lssm_lib_schema210.FieldType<number, number>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
isShared: {
|
|
113
|
-
type:
|
|
113
|
+
type: _lssm_lib_schema210.FieldType<boolean, boolean>;
|
|
114
114
|
isOptional: false;
|
|
115
115
|
};
|
|
116
116
|
createdAt: {
|
|
117
|
-
type:
|
|
117
|
+
type: _lssm_lib_schema210.FieldType<Date, string>;
|
|
118
118
|
isOptional: false;
|
|
119
119
|
};
|
|
120
120
|
}>;
|
|
@@ -122,54 +122,54 @@ declare const CreateQueryContract: _lssm_lib_contracts9.OperationSpec<_lssm_lib_
|
|
|
122
122
|
/**
|
|
123
123
|
* Execute a data query.
|
|
124
124
|
*/
|
|
125
|
-
declare const ExecuteQueryContract:
|
|
125
|
+
declare const ExecuteQueryContract: _lssm_lib_contracts3.OperationSpec<_lssm_lib_schema210.SchemaModel<{
|
|
126
126
|
queryId: {
|
|
127
|
-
type:
|
|
127
|
+
type: _lssm_lib_schema210.FieldType<string, string>;
|
|
128
128
|
isOptional: false;
|
|
129
129
|
};
|
|
130
130
|
parameters: {
|
|
131
|
-
type:
|
|
131
|
+
type: _lssm_lib_schema210.FieldType<unknown, unknown>;
|
|
132
132
|
isOptional: true;
|
|
133
133
|
};
|
|
134
134
|
dateRange: {
|
|
135
|
-
type:
|
|
135
|
+
type: _lssm_lib_schema210.FieldType<unknown, unknown>;
|
|
136
136
|
isOptional: true;
|
|
137
137
|
};
|
|
138
138
|
filters: {
|
|
139
|
-
type:
|
|
139
|
+
type: _lssm_lib_schema210.FieldType<unknown, unknown>;
|
|
140
140
|
isOptional: true;
|
|
141
141
|
};
|
|
142
142
|
forceRefresh: {
|
|
143
|
-
type:
|
|
143
|
+
type: _lssm_lib_schema210.FieldType<boolean, boolean>;
|
|
144
144
|
isOptional: true;
|
|
145
145
|
};
|
|
146
|
-
}>,
|
|
146
|
+
}>, _lssm_lib_schema210.SchemaModel<{
|
|
147
147
|
queryId: {
|
|
148
|
-
type:
|
|
148
|
+
type: _lssm_lib_schema210.FieldType<string, string>;
|
|
149
149
|
isOptional: false;
|
|
150
150
|
};
|
|
151
151
|
data: {
|
|
152
|
-
type:
|
|
152
|
+
type: _lssm_lib_schema210.FieldType<unknown, unknown>;
|
|
153
153
|
isOptional: false;
|
|
154
154
|
};
|
|
155
155
|
columns: {
|
|
156
|
-
type:
|
|
156
|
+
type: _lssm_lib_schema210.FieldType<unknown, unknown>;
|
|
157
157
|
isOptional: false;
|
|
158
158
|
};
|
|
159
159
|
rowCount: {
|
|
160
|
-
type:
|
|
160
|
+
type: _lssm_lib_schema210.FieldType<number, number>;
|
|
161
161
|
isOptional: false;
|
|
162
162
|
};
|
|
163
163
|
executionTimeMs: {
|
|
164
|
-
type:
|
|
164
|
+
type: _lssm_lib_schema210.FieldType<number, number>;
|
|
165
165
|
isOptional: false;
|
|
166
166
|
};
|
|
167
167
|
cachedAt: {
|
|
168
|
-
type:
|
|
168
|
+
type: _lssm_lib_schema210.FieldType<Date, string>;
|
|
169
169
|
isOptional: true;
|
|
170
170
|
};
|
|
171
171
|
error: {
|
|
172
|
-
type:
|
|
172
|
+
type: _lssm_lib_schema210.FieldType<string, string>;
|
|
173
173
|
isOptional: true;
|
|
174
174
|
};
|
|
175
175
|
}>, undefined>;
|
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema253 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/query/query.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* A data query.
|
|
6
6
|
*/
|
|
7
|
-
declare const QueryModel:
|
|
7
|
+
declare const QueryModel: _lssm_lib_schema253.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema253.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
name: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema253.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
description: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema253.FieldType<string, string>;
|
|
18
18
|
isOptional: true;
|
|
19
19
|
};
|
|
20
20
|
type: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema253.EnumType<[string, string, string, string]>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
definition: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema253.FieldType<unknown, unknown>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
sql: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema253.FieldType<string, string>;
|
|
30
30
|
isOptional: true;
|
|
31
31
|
};
|
|
32
32
|
cacheTtlSeconds: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema253.FieldType<number, number>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
isShared: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema253.FieldType<boolean, boolean>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
createdAt: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema253.FieldType<Date, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
45
|
/**
|
|
46
46
|
* Query execution result.
|
|
47
47
|
*/
|
|
48
|
-
declare const QueryResultModel:
|
|
48
|
+
declare const QueryResultModel: _lssm_lib_schema253.SchemaModel<{
|
|
49
49
|
queryId: {
|
|
50
|
-
type:
|
|
50
|
+
type: _lssm_lib_schema253.FieldType<string, string>;
|
|
51
51
|
isOptional: false;
|
|
52
52
|
};
|
|
53
53
|
data: {
|
|
54
|
-
type:
|
|
54
|
+
type: _lssm_lib_schema253.FieldType<unknown, unknown>;
|
|
55
55
|
isOptional: false;
|
|
56
56
|
};
|
|
57
57
|
columns: {
|
|
58
|
-
type:
|
|
58
|
+
type: _lssm_lib_schema253.FieldType<unknown, unknown>;
|
|
59
59
|
isOptional: false;
|
|
60
60
|
};
|
|
61
61
|
rowCount: {
|
|
62
|
-
type:
|
|
62
|
+
type: _lssm_lib_schema253.FieldType<number, number>;
|
|
63
63
|
isOptional: false;
|
|
64
64
|
};
|
|
65
65
|
executionTimeMs: {
|
|
66
|
-
type:
|
|
66
|
+
type: _lssm_lib_schema253.FieldType<number, number>;
|
|
67
67
|
isOptional: false;
|
|
68
68
|
};
|
|
69
69
|
cachedAt: {
|
|
70
|
-
type:
|
|
70
|
+
type: _lssm_lib_schema253.FieldType<Date, string>;
|
|
71
71
|
isOptional: true;
|
|
72
72
|
};
|
|
73
73
|
error: {
|
|
74
|
-
type:
|
|
74
|
+
type: _lssm_lib_schema253.FieldType<string, string>;
|
|
75
75
|
isOptional: true;
|
|
76
76
|
};
|
|
77
77
|
}>;
|
|
78
78
|
/**
|
|
79
79
|
* Input for creating a query.
|
|
80
80
|
*/
|
|
81
|
-
declare const CreateQueryInputModel:
|
|
81
|
+
declare const CreateQueryInputModel: _lssm_lib_schema253.SchemaModel<{
|
|
82
82
|
name: {
|
|
83
|
-
type:
|
|
83
|
+
type: _lssm_lib_schema253.FieldType<string, string>;
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
description: {
|
|
87
|
-
type:
|
|
87
|
+
type: _lssm_lib_schema253.FieldType<string, string>;
|
|
88
88
|
isOptional: true;
|
|
89
89
|
};
|
|
90
90
|
type: {
|
|
91
|
-
type:
|
|
91
|
+
type: _lssm_lib_schema253.EnumType<[string, string, string, string]>;
|
|
92
92
|
isOptional: false;
|
|
93
93
|
};
|
|
94
94
|
definition: {
|
|
95
|
-
type:
|
|
95
|
+
type: _lssm_lib_schema253.FieldType<unknown, unknown>;
|
|
96
96
|
isOptional: false;
|
|
97
97
|
};
|
|
98
98
|
sql: {
|
|
99
|
-
type:
|
|
99
|
+
type: _lssm_lib_schema253.FieldType<string, string>;
|
|
100
100
|
isOptional: true;
|
|
101
101
|
};
|
|
102
102
|
metricIds: {
|
|
103
|
-
type:
|
|
103
|
+
type: _lssm_lib_schema253.FieldType<string, string>;
|
|
104
104
|
isArray: true;
|
|
105
105
|
isOptional: true;
|
|
106
106
|
};
|
|
107
107
|
cacheTtlSeconds: {
|
|
108
|
-
type:
|
|
108
|
+
type: _lssm_lib_schema253.FieldType<number, number>;
|
|
109
109
|
isOptional: true;
|
|
110
110
|
};
|
|
111
111
|
isShared: {
|
|
112
|
-
type:
|
|
112
|
+
type: _lssm_lib_schema253.FieldType<boolean, boolean>;
|
|
113
113
|
isOptional: true;
|
|
114
114
|
};
|
|
115
115
|
}>;
|
|
116
116
|
/**
|
|
117
117
|
* Input for executing a query.
|
|
118
118
|
*/
|
|
119
|
-
declare const ExecuteQueryInputModel:
|
|
119
|
+
declare const ExecuteQueryInputModel: _lssm_lib_schema253.SchemaModel<{
|
|
120
120
|
queryId: {
|
|
121
|
-
type:
|
|
121
|
+
type: _lssm_lib_schema253.FieldType<string, string>;
|
|
122
122
|
isOptional: false;
|
|
123
123
|
};
|
|
124
124
|
parameters: {
|
|
125
|
-
type:
|
|
125
|
+
type: _lssm_lib_schema253.FieldType<unknown, unknown>;
|
|
126
126
|
isOptional: true;
|
|
127
127
|
};
|
|
128
128
|
dateRange: {
|
|
129
|
-
type:
|
|
129
|
+
type: _lssm_lib_schema253.FieldType<unknown, unknown>;
|
|
130
130
|
isOptional: true;
|
|
131
131
|
};
|
|
132
132
|
filters: {
|
|
133
|
-
type:
|
|
133
|
+
type: _lssm_lib_schema253.FieldType<unknown, unknown>;
|
|
134
134
|
isOptional: true;
|
|
135
135
|
};
|
|
136
136
|
forceRefresh: {
|
|
137
|
-
type:
|
|
137
|
+
type: _lssm_lib_schema253.FieldType<boolean, boolean>;
|
|
138
138
|
isOptional: true;
|
|
139
139
|
};
|
|
140
140
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/example.analytics-dashboard",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251221193616",
|
|
4
4
|
"description": "Analytics Dashboard example with widgets and query engine for ContractSpec",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
"lint:check": "eslint src"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@lssm/lib.schema": "0.0.0-canary-
|
|
22
|
-
"@lssm/lib.contracts": "0.0.0-canary-
|
|
23
|
-
"@lssm/lib.bus": "0.0.0-canary-
|
|
24
|
-
"@lssm/lib.identity-rbac": "0.0.0-canary-
|
|
25
|
-
"@lssm/lib.metering": "0.0.0-canary-
|
|
26
|
-
"@lssm/lib.jobs": "0.0.0-canary-
|
|
27
|
-
"@lssm/module.audit-trail": "0.0.0-canary-
|
|
21
|
+
"@lssm/lib.schema": "0.0.0-canary-20251221193616",
|
|
22
|
+
"@lssm/lib.contracts": "0.0.0-canary-20251221193616",
|
|
23
|
+
"@lssm/lib.bus": "0.0.0-canary-20251221193616",
|
|
24
|
+
"@lssm/lib.identity-rbac": "0.0.0-canary-20251221193616",
|
|
25
|
+
"@lssm/lib.metering": "0.0.0-canary-20251221193616",
|
|
26
|
+
"@lssm/lib.jobs": "0.0.0-canary-20251221193616",
|
|
27
|
+
"@lssm/module.audit-trail": "0.0.0-canary-20251221193616",
|
|
28
28
|
"zod": "^4.1.13"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@lssm/tool.typescript": "0.0.0-canary-
|
|
32
|
-
"@lssm/tool.tsdown": "0.0.0-canary-
|
|
31
|
+
"@lssm/tool.typescript": "0.0.0-canary-20251221193616",
|
|
32
|
+
"@lssm/tool.tsdown": "0.0.0-canary-20251221193616",
|
|
33
33
|
"typescript": "^5.9.3"
|
|
34
34
|
},
|
|
35
35
|
"exports": {
|