@lssm/example.analytics-dashboard 1.41.0 → 1.42.1

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.
Files changed (63) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +13 -0
  3. package/dist/dashboard/dashboard.enum.d.ts +18 -0
  4. package/dist/dashboard/dashboard.enum.d.ts.map +1 -0
  5. package/dist/dashboard/dashboard.enum.js +2 -1
  6. package/dist/dashboard/dashboard.enum.js.map +1 -0
  7. package/dist/dashboard/dashboard.operation.d.ts +537 -0
  8. package/dist/dashboard/dashboard.operation.d.ts.map +1 -0
  9. package/dist/dashboard/{dashboard.contracts.js → dashboard.operation.js} +106 -12
  10. package/dist/dashboard/dashboard.operation.js.map +1 -0
  11. package/dist/dashboard/dashboard.presentation.d.ts +9 -0
  12. package/dist/dashboard/dashboard.presentation.d.ts.map +1 -0
  13. package/dist/dashboard/dashboard.presentation.js +21 -7
  14. package/dist/dashboard/dashboard.presentation.js.map +1 -0
  15. package/dist/dashboard/dashboard.schema.d.ts +333 -0
  16. package/dist/dashboard/dashboard.schema.d.ts.map +1 -0
  17. package/dist/dashboard/dashboard.schema.js +2 -1
  18. package/dist/dashboard/dashboard.schema.js.map +1 -0
  19. package/dist/dashboard/index.d.ts +4 -0
  20. package/dist/dashboard/index.js +1 -1
  21. package/dist/dashboard.feature.d.ts +8 -0
  22. package/dist/dashboard.feature.d.ts.map +1 -0
  23. package/dist/dashboard.feature.js +29 -27
  24. package/dist/dashboard.feature.js.map +1 -0
  25. package/dist/docs/analytics-dashboard.docblock.d.ts +1 -0
  26. package/dist/docs/analytics-dashboard.docblock.js +2 -1
  27. package/dist/docs/analytics-dashboard.docblock.js.map +1 -0
  28. package/dist/docs/index.d.ts +1 -0
  29. package/dist/events.d.ts +149 -0
  30. package/dist/events.d.ts.map +1 -0
  31. package/dist/events.js +26 -10
  32. package/dist/events.js.map +1 -0
  33. package/dist/example.d.ts +40 -0
  34. package/dist/example.d.ts.map +1 -0
  35. package/dist/example.js +2 -1
  36. package/dist/example.js.map +1 -0
  37. package/dist/index.d.ts +7 -0
  38. package/dist/index.js +1 -1
  39. package/dist/query/index.d.ts +4 -0
  40. package/dist/query/index.js +1 -1
  41. package/dist/query/query.enum.d.ts +10 -0
  42. package/dist/query/query.enum.d.ts.map +1 -0
  43. package/dist/query/query.enum.js +2 -1
  44. package/dist/query/query.enum.js.map +1 -0
  45. package/dist/query/query.operation.d.ts +181 -0
  46. package/dist/query/query.operation.d.ts.map +1 -0
  47. package/dist/query/query.operation.js +113 -0
  48. package/dist/query/query.operation.js.map +1 -0
  49. package/dist/query/query.presentation.d.ts +8 -0
  50. package/dist/query/query.presentation.d.ts.map +1 -0
  51. package/dist/query/query.presentation.js +15 -5
  52. package/dist/query/query.presentation.js.map +1 -0
  53. package/dist/query/query.schema.d.ts +143 -0
  54. package/dist/query/query.schema.d.ts.map +1 -0
  55. package/dist/query/query.schema.js +2 -1
  56. package/dist/query/query.schema.js.map +1 -0
  57. package/dist/query-engine/index.d.ts +106 -0
  58. package/dist/query-engine/index.d.ts.map +1 -0
  59. package/dist/query-engine/index.js +5 -1
  60. package/dist/query-engine/index.js.map +1 -0
  61. package/package.json +39 -31
  62. package/dist/query/query.contracts.js +0 -65
  63. package/dist/tsconfig.tsbuildinfo +0 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Chaman Ventures, SASU
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # @lssm/example.analytics-dashboard
2
2
 
3
+ Website: https://contractspec.lssm.tech/
4
+
5
+
3
6
  > Analytics Dashboard Example - Comprehensive data visualization and reporting solution
4
7
 
5
8
  ## Overview
@@ -266,3 +269,13 @@ const result = await queryEngine.execute(
266
269
 
267
270
 
268
271
 
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
@@ -0,0 +1,18 @@
1
+ import * as _lssm_lib_schema244 from "@lssm/lib.schema";
2
+
3
+ //#region src/dashboard/dashboard.enum.d.ts
4
+ /**
5
+ * Dashboard status enum.
6
+ */
7
+ declare const DashboardStatusEnum: _lssm_lib_schema244.EnumType<[string, string, string]>;
8
+ /**
9
+ * Widget type enum.
10
+ */
11
+ declare const WidgetTypeEnum: _lssm_lib_schema244.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
12
+ /**
13
+ * Refresh interval enum.
14
+ */
15
+ declare const RefreshIntervalEnum: _lssm_lib_schema244.EnumType<[string, string, string, string, string, string]>;
16
+ //#endregion
17
+ export { DashboardStatusEnum, RefreshIntervalEnum, WidgetTypeEnum };
18
+ //# sourceMappingURL=dashboard.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.enum.d.ts","names":[],"sources":["../../src/dashboard/dashboard.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,mBAIX,EAAA,mBAAA,CAJ8B,QAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;AAShC;AAkBA;;cAlBa,gBAaX,mBAAA,CAbyB;;;;cAkBd,qBAOX,mBAAA,CAP8B"}
@@ -39,4 +39,5 @@ const RefreshIntervalEnum = defineEnum("RefreshInterval", [
39
39
  ]);
40
40
 
41
41
  //#endregion
42
- export { DashboardStatusEnum, RefreshIntervalEnum, WidgetTypeEnum };
42
+ export { DashboardStatusEnum, RefreshIntervalEnum, WidgetTypeEnum };
43
+ //# sourceMappingURL=dashboard.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.enum.js","names":[],"sources":["../../src/dashboard/dashboard.enum.ts"],"sourcesContent":["import { defineEnum } from '@lssm/lib.schema';\n\n/**\n * Dashboard status enum.\n */\nexport const DashboardStatusEnum = defineEnum('DashboardStatus', [\n 'DRAFT',\n 'PUBLISHED',\n 'ARCHIVED',\n]);\n\n/**\n * Widget type enum.\n */\nexport const WidgetTypeEnum = defineEnum('WidgetType', [\n 'LINE_CHART',\n 'BAR_CHART',\n 'PIE_CHART',\n 'AREA_CHART',\n 'SCATTER_PLOT',\n 'METRIC',\n 'TABLE',\n 'HEATMAP',\n 'FUNNEL',\n 'MAP',\n 'TEXT',\n 'EMBED',\n]);\n\n/**\n * Refresh interval enum.\n */\nexport const RefreshIntervalEnum = defineEnum('RefreshInterval', [\n 'NONE',\n 'MINUTE',\n 'FIVE_MINUTES',\n 'FIFTEEN_MINUTES',\n 'HOUR',\n 'DAY',\n]);\n"],"mappings":";;;;;;AAKA,MAAa,sBAAsB,WAAW,mBAAmB;CAC/D;CACA;CACA;CACD,CAAC;;;;AAKF,MAAa,iBAAiB,WAAW,cAAc;CACrD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD,CAAC;;;;AAKF,MAAa,sBAAsB,WAAW,mBAAmB;CAC/D;CACA;CACA;CACA;CACA;CACA;CACD,CAAC"}
@@ -0,0 +1,537 @@
1
+ import * as _lssm_lib_schema0 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
3
+
4
+ //#region src/dashboard/dashboard.operation.d.ts
5
+ /**
6
+ * Create a new analytics dashboard.
7
+ */
8
+ declare const CreateDashboardContract: _lssm_lib_contracts0.OperationSpec<_lssm_lib_schema0.SchemaModel<{
9
+ name: {
10
+ type: _lssm_lib_schema0.FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ slug: {
14
+ type: _lssm_lib_schema0.FieldType<string, string>;
15
+ isOptional: false;
16
+ };
17
+ description: {
18
+ type: _lssm_lib_schema0.FieldType<string, string>;
19
+ isOptional: true;
20
+ };
21
+ refreshInterval: {
22
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string]>;
23
+ isOptional: true;
24
+ };
25
+ dateRange: {
26
+ type: _lssm_lib_schema0.FieldType<unknown, unknown>;
27
+ isOptional: true;
28
+ };
29
+ }>, _lssm_lib_schema0.SchemaModel<{
30
+ id: {
31
+ type: _lssm_lib_schema0.FieldType<string, string>;
32
+ isOptional: false;
33
+ };
34
+ name: {
35
+ type: _lssm_lib_schema0.FieldType<string, string>;
36
+ isOptional: false;
37
+ };
38
+ slug: {
39
+ type: _lssm_lib_schema0.FieldType<string, string>;
40
+ isOptional: false;
41
+ };
42
+ description: {
43
+ type: _lssm_lib_schema0.FieldType<string, string>;
44
+ isOptional: true;
45
+ };
46
+ status: {
47
+ type: _lssm_lib_schema0.EnumType<[string, string, string]>;
48
+ isOptional: false;
49
+ };
50
+ refreshInterval: {
51
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string]>;
52
+ isOptional: false;
53
+ };
54
+ isPublic: {
55
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
56
+ isOptional: false;
57
+ };
58
+ widgets: {
59
+ type: _lssm_lib_schema0.SchemaModel<{
60
+ id: {
61
+ type: _lssm_lib_schema0.FieldType<string, string>;
62
+ isOptional: false;
63
+ };
64
+ dashboardId: {
65
+ type: _lssm_lib_schema0.FieldType<string, string>;
66
+ isOptional: false;
67
+ };
68
+ name: {
69
+ type: _lssm_lib_schema0.FieldType<string, string>;
70
+ isOptional: false;
71
+ };
72
+ type: {
73
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
74
+ isOptional: false;
75
+ };
76
+ gridX: {
77
+ type: _lssm_lib_schema0.FieldType<number, number>;
78
+ isOptional: false;
79
+ };
80
+ gridY: {
81
+ type: _lssm_lib_schema0.FieldType<number, number>;
82
+ isOptional: false;
83
+ };
84
+ gridWidth: {
85
+ type: _lssm_lib_schema0.FieldType<number, number>;
86
+ isOptional: false;
87
+ };
88
+ gridHeight: {
89
+ type: _lssm_lib_schema0.FieldType<number, number>;
90
+ isOptional: false;
91
+ };
92
+ queryId: {
93
+ type: _lssm_lib_schema0.FieldType<string, string>;
94
+ isOptional: true;
95
+ };
96
+ config: {
97
+ type: _lssm_lib_schema0.FieldType<unknown, unknown>;
98
+ isOptional: true;
99
+ };
100
+ }>;
101
+ isArray: true;
102
+ isOptional: true;
103
+ };
104
+ createdAt: {
105
+ type: _lssm_lib_schema0.FieldType<Date, string>;
106
+ isOptional: false;
107
+ };
108
+ }>, {
109
+ key: string;
110
+ version: number;
111
+ stability: string;
112
+ owners: "@example.analytics-dashboard"[];
113
+ tags: string[];
114
+ when: string;
115
+ payload: _lssm_lib_schema0.SchemaModel<{
116
+ id: {
117
+ type: _lssm_lib_schema0.FieldType<string, string>;
118
+ isOptional: false;
119
+ };
120
+ name: {
121
+ type: _lssm_lib_schema0.FieldType<string, string>;
122
+ isOptional: false;
123
+ };
124
+ slug: {
125
+ type: _lssm_lib_schema0.FieldType<string, string>;
126
+ isOptional: false;
127
+ };
128
+ description: {
129
+ type: _lssm_lib_schema0.FieldType<string, string>;
130
+ isOptional: true;
131
+ };
132
+ status: {
133
+ type: _lssm_lib_schema0.EnumType<[string, string, string]>;
134
+ isOptional: false;
135
+ };
136
+ refreshInterval: {
137
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string]>;
138
+ isOptional: false;
139
+ };
140
+ isPublic: {
141
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
142
+ isOptional: false;
143
+ };
144
+ widgets: {
145
+ type: _lssm_lib_schema0.SchemaModel<{
146
+ id: {
147
+ type: _lssm_lib_schema0.FieldType<string, string>;
148
+ isOptional: false;
149
+ };
150
+ dashboardId: {
151
+ type: _lssm_lib_schema0.FieldType<string, string>;
152
+ isOptional: false;
153
+ };
154
+ name: {
155
+ type: _lssm_lib_schema0.FieldType<string, string>;
156
+ isOptional: false;
157
+ };
158
+ type: {
159
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
160
+ isOptional: false;
161
+ };
162
+ gridX: {
163
+ type: _lssm_lib_schema0.FieldType<number, number>;
164
+ isOptional: false;
165
+ };
166
+ gridY: {
167
+ type: _lssm_lib_schema0.FieldType<number, number>;
168
+ isOptional: false;
169
+ };
170
+ gridWidth: {
171
+ type: _lssm_lib_schema0.FieldType<number, number>;
172
+ isOptional: false;
173
+ };
174
+ gridHeight: {
175
+ type: _lssm_lib_schema0.FieldType<number, number>;
176
+ isOptional: false;
177
+ };
178
+ queryId: {
179
+ type: _lssm_lib_schema0.FieldType<string, string>;
180
+ isOptional: true;
181
+ };
182
+ config: {
183
+ type: _lssm_lib_schema0.FieldType<unknown, unknown>;
184
+ isOptional: true;
185
+ };
186
+ }>;
187
+ isArray: true;
188
+ isOptional: true;
189
+ };
190
+ createdAt: {
191
+ type: _lssm_lib_schema0.FieldType<Date, string>;
192
+ isOptional: false;
193
+ };
194
+ }>;
195
+ }[]>;
196
+ /**
197
+ * Add a widget to a dashboard.
198
+ */
199
+ declare const AddWidgetContract: _lssm_lib_contracts0.OperationSpec<_lssm_lib_schema0.SchemaModel<{
200
+ dashboardId: {
201
+ type: _lssm_lib_schema0.FieldType<string, string>;
202
+ isOptional: false;
203
+ };
204
+ name: {
205
+ type: _lssm_lib_schema0.FieldType<string, string>;
206
+ isOptional: false;
207
+ };
208
+ type: {
209
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
210
+ isOptional: false;
211
+ };
212
+ gridX: {
213
+ type: _lssm_lib_schema0.FieldType<number, number>;
214
+ isOptional: true;
215
+ };
216
+ gridY: {
217
+ type: _lssm_lib_schema0.FieldType<number, number>;
218
+ isOptional: true;
219
+ };
220
+ gridWidth: {
221
+ type: _lssm_lib_schema0.FieldType<number, number>;
222
+ isOptional: true;
223
+ };
224
+ gridHeight: {
225
+ type: _lssm_lib_schema0.FieldType<number, number>;
226
+ isOptional: true;
227
+ };
228
+ queryId: {
229
+ type: _lssm_lib_schema0.FieldType<string, string>;
230
+ isOptional: true;
231
+ };
232
+ config: {
233
+ type: _lssm_lib_schema0.FieldType<unknown, unknown>;
234
+ isOptional: true;
235
+ };
236
+ }>, _lssm_lib_schema0.SchemaModel<{
237
+ id: {
238
+ type: _lssm_lib_schema0.FieldType<string, string>;
239
+ isOptional: false;
240
+ };
241
+ dashboardId: {
242
+ type: _lssm_lib_schema0.FieldType<string, string>;
243
+ isOptional: false;
244
+ };
245
+ name: {
246
+ type: _lssm_lib_schema0.FieldType<string, string>;
247
+ isOptional: false;
248
+ };
249
+ type: {
250
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
251
+ isOptional: false;
252
+ };
253
+ gridX: {
254
+ type: _lssm_lib_schema0.FieldType<number, number>;
255
+ isOptional: false;
256
+ };
257
+ gridY: {
258
+ type: _lssm_lib_schema0.FieldType<number, number>;
259
+ isOptional: false;
260
+ };
261
+ gridWidth: {
262
+ type: _lssm_lib_schema0.FieldType<number, number>;
263
+ isOptional: false;
264
+ };
265
+ gridHeight: {
266
+ type: _lssm_lib_schema0.FieldType<number, number>;
267
+ isOptional: false;
268
+ };
269
+ queryId: {
270
+ type: _lssm_lib_schema0.FieldType<string, string>;
271
+ isOptional: true;
272
+ };
273
+ config: {
274
+ type: _lssm_lib_schema0.FieldType<unknown, unknown>;
275
+ isOptional: true;
276
+ };
277
+ }>, {
278
+ key: string;
279
+ version: number;
280
+ stability: string;
281
+ owners: "@example.analytics-dashboard"[];
282
+ tags: string[];
283
+ when: string;
284
+ payload: _lssm_lib_schema0.SchemaModel<{
285
+ id: {
286
+ type: _lssm_lib_schema0.FieldType<string, string>;
287
+ isOptional: false;
288
+ };
289
+ dashboardId: {
290
+ type: _lssm_lib_schema0.FieldType<string, string>;
291
+ isOptional: false;
292
+ };
293
+ name: {
294
+ type: _lssm_lib_schema0.FieldType<string, string>;
295
+ isOptional: false;
296
+ };
297
+ type: {
298
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
299
+ isOptional: false;
300
+ };
301
+ gridX: {
302
+ type: _lssm_lib_schema0.FieldType<number, number>;
303
+ isOptional: false;
304
+ };
305
+ gridY: {
306
+ type: _lssm_lib_schema0.FieldType<number, number>;
307
+ isOptional: false;
308
+ };
309
+ gridWidth: {
310
+ type: _lssm_lib_schema0.FieldType<number, number>;
311
+ isOptional: false;
312
+ };
313
+ gridHeight: {
314
+ type: _lssm_lib_schema0.FieldType<number, number>;
315
+ isOptional: false;
316
+ };
317
+ queryId: {
318
+ type: _lssm_lib_schema0.FieldType<string, string>;
319
+ isOptional: true;
320
+ };
321
+ config: {
322
+ type: _lssm_lib_schema0.FieldType<unknown, unknown>;
323
+ isOptional: true;
324
+ };
325
+ }>;
326
+ }[]>;
327
+ /**
328
+ * List dashboards.
329
+ */
330
+ declare const ListDashboardsContract: _lssm_lib_contracts0.OperationSpec<_lssm_lib_schema0.SchemaModel<{
331
+ status: {
332
+ type: _lssm_lib_schema0.EnumType<[string, string, string]>;
333
+ isOptional: true;
334
+ };
335
+ search: {
336
+ type: _lssm_lib_schema0.FieldType<string, string>;
337
+ isOptional: true;
338
+ };
339
+ limit: {
340
+ type: _lssm_lib_schema0.FieldType<number, number>;
341
+ isOptional: true;
342
+ defaultValue: number;
343
+ };
344
+ offset: {
345
+ type: _lssm_lib_schema0.FieldType<number, number>;
346
+ isOptional: true;
347
+ defaultValue: number;
348
+ };
349
+ }>, _lssm_lib_schema0.SchemaModel<{
350
+ dashboards: {
351
+ type: _lssm_lib_schema0.SchemaModel<{
352
+ id: {
353
+ type: _lssm_lib_schema0.FieldType<string, string>;
354
+ isOptional: false;
355
+ };
356
+ name: {
357
+ type: _lssm_lib_schema0.FieldType<string, string>;
358
+ isOptional: false;
359
+ };
360
+ slug: {
361
+ type: _lssm_lib_schema0.FieldType<string, string>;
362
+ isOptional: false;
363
+ };
364
+ description: {
365
+ type: _lssm_lib_schema0.FieldType<string, string>;
366
+ isOptional: true;
367
+ };
368
+ status: {
369
+ type: _lssm_lib_schema0.EnumType<[string, string, string]>;
370
+ isOptional: false;
371
+ };
372
+ refreshInterval: {
373
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string]>;
374
+ isOptional: false;
375
+ };
376
+ isPublic: {
377
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
378
+ isOptional: false;
379
+ };
380
+ widgets: {
381
+ type: _lssm_lib_schema0.SchemaModel<{
382
+ id: {
383
+ type: _lssm_lib_schema0.FieldType<string, string>;
384
+ isOptional: false;
385
+ };
386
+ dashboardId: {
387
+ type: _lssm_lib_schema0.FieldType<string, string>;
388
+ isOptional: false;
389
+ };
390
+ name: {
391
+ type: _lssm_lib_schema0.FieldType<string, string>;
392
+ isOptional: false;
393
+ };
394
+ type: {
395
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
396
+ isOptional: false;
397
+ };
398
+ gridX: {
399
+ type: _lssm_lib_schema0.FieldType<number, number>;
400
+ isOptional: false;
401
+ };
402
+ gridY: {
403
+ type: _lssm_lib_schema0.FieldType<number, number>;
404
+ isOptional: false;
405
+ };
406
+ gridWidth: {
407
+ type: _lssm_lib_schema0.FieldType<number, number>;
408
+ isOptional: false;
409
+ };
410
+ gridHeight: {
411
+ type: _lssm_lib_schema0.FieldType<number, number>;
412
+ isOptional: false;
413
+ };
414
+ queryId: {
415
+ type: _lssm_lib_schema0.FieldType<string, string>;
416
+ isOptional: true;
417
+ };
418
+ config: {
419
+ type: _lssm_lib_schema0.FieldType<unknown, unknown>;
420
+ isOptional: true;
421
+ };
422
+ }>;
423
+ isArray: true;
424
+ isOptional: true;
425
+ };
426
+ createdAt: {
427
+ type: _lssm_lib_schema0.FieldType<Date, string>;
428
+ isOptional: false;
429
+ };
430
+ }>;
431
+ isArray: true;
432
+ isOptional: false;
433
+ };
434
+ total: {
435
+ type: _lssm_lib_schema0.FieldType<number, number>;
436
+ isOptional: false;
437
+ };
438
+ }>, undefined>;
439
+ /**
440
+ * Get a dashboard with widgets.
441
+ */
442
+ declare const GetDashboardContract: _lssm_lib_contracts0.OperationSpec<_lssm_lib_schema0.SchemaModel<{
443
+ dashboardId: {
444
+ type: _lssm_lib_schema0.FieldType<string, string>;
445
+ isOptional: true;
446
+ };
447
+ slug: {
448
+ type: _lssm_lib_schema0.FieldType<string, string>;
449
+ isOptional: true;
450
+ };
451
+ shareToken: {
452
+ type: _lssm_lib_schema0.FieldType<string, string>;
453
+ isOptional: true;
454
+ };
455
+ }>, _lssm_lib_schema0.SchemaModel<{
456
+ id: {
457
+ type: _lssm_lib_schema0.FieldType<string, string>;
458
+ isOptional: false;
459
+ };
460
+ name: {
461
+ type: _lssm_lib_schema0.FieldType<string, string>;
462
+ isOptional: false;
463
+ };
464
+ slug: {
465
+ type: _lssm_lib_schema0.FieldType<string, string>;
466
+ isOptional: false;
467
+ };
468
+ description: {
469
+ type: _lssm_lib_schema0.FieldType<string, string>;
470
+ isOptional: true;
471
+ };
472
+ status: {
473
+ type: _lssm_lib_schema0.EnumType<[string, string, string]>;
474
+ isOptional: false;
475
+ };
476
+ refreshInterval: {
477
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string]>;
478
+ isOptional: false;
479
+ };
480
+ isPublic: {
481
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
482
+ isOptional: false;
483
+ };
484
+ widgets: {
485
+ type: _lssm_lib_schema0.SchemaModel<{
486
+ id: {
487
+ type: _lssm_lib_schema0.FieldType<string, string>;
488
+ isOptional: false;
489
+ };
490
+ dashboardId: {
491
+ type: _lssm_lib_schema0.FieldType<string, string>;
492
+ isOptional: false;
493
+ };
494
+ name: {
495
+ type: _lssm_lib_schema0.FieldType<string, string>;
496
+ isOptional: false;
497
+ };
498
+ type: {
499
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
500
+ isOptional: false;
501
+ };
502
+ gridX: {
503
+ type: _lssm_lib_schema0.FieldType<number, number>;
504
+ isOptional: false;
505
+ };
506
+ gridY: {
507
+ type: _lssm_lib_schema0.FieldType<number, number>;
508
+ isOptional: false;
509
+ };
510
+ gridWidth: {
511
+ type: _lssm_lib_schema0.FieldType<number, number>;
512
+ isOptional: false;
513
+ };
514
+ gridHeight: {
515
+ type: _lssm_lib_schema0.FieldType<number, number>;
516
+ isOptional: false;
517
+ };
518
+ queryId: {
519
+ type: _lssm_lib_schema0.FieldType<string, string>;
520
+ isOptional: true;
521
+ };
522
+ config: {
523
+ type: _lssm_lib_schema0.FieldType<unknown, unknown>;
524
+ isOptional: true;
525
+ };
526
+ }>;
527
+ isArray: true;
528
+ isOptional: true;
529
+ };
530
+ createdAt: {
531
+ type: _lssm_lib_schema0.FieldType<Date, string>;
532
+ isOptional: false;
533
+ };
534
+ }>, undefined>;
535
+ //#endregion
536
+ export { AddWidgetContract, CreateDashboardContract, GetDashboardContract, ListDashboardsContract };
537
+ //# sourceMappingURL=dashboard.operation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.operation.d.ts","names":[],"sources":["../../src/dashboard/dashboard.operation.ts"],"sourcesContent":[],"mappings":";;;;;;;cAgBa,8CAAuB,gCAAA;EAAvB,IAAA,EAAA;IA+CX,IAAA,EAAA,iBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;gBA/CkC,KAAA;EAAA,CAAA;;;;;;;;;;;;;;;UAAA,iBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA,IAAA,+BAAA,CAAA;MAoDvB,EAAA,EAAA;QAgDX,IAAA,6BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;kBAhD4B,EAAA,KAAA;MAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;yCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;QAAA,UAAA,EAAA,IAAA;MAqDjB,CAAA;MA8BX,MAAA,EAAA;;;;;IA9BiC,OAAA,EAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;MAAA,IAAA,6BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;MAmCtB,UAAA,EAAA,KA8BX;IAAA,CAAA;;;gBA9B+B,EAAA,IAAA;IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;oBAAA,EAAA,KAAA;QAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAxFpB,wCAAiB,gCAAA;;UAgD5B,iBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAhD4B,iBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqDjB,6CAAsB,gCAAA;;UA8BjC,iBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;cA9BiC,iBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmCtB,2CAAoB,gCAAA;;UA8B/B,iBAAA,CAAA;;;;;;;;;;;;;UA9B+B,iBAAA,CAAA"}