@lssm/example.analytics-dashboard 0.0.0-canary-20251217052941 → 0.0.0-canary-20251217060433

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.
@@ -0,0 +1,530 @@
1
+ import * as _lssm_lib_schema162 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts7 from "@lssm/lib.contracts";
3
+
4
+ //#region src/dashboard/dashboard.contracts.d.ts
5
+ /**
6
+ * Create a new analytics dashboard.
7
+ */
8
+ declare const CreateDashboardContract: _lssm_lib_contracts7.ContractSpec<_lssm_lib_schema162.SchemaModel<{
9
+ name: {
10
+ type: _lssm_lib_schema162.FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ slug: {
14
+ type: _lssm_lib_schema162.FieldType<string, string>;
15
+ isOptional: false;
16
+ };
17
+ description: {
18
+ type: _lssm_lib_schema162.FieldType<string, string>;
19
+ isOptional: true;
20
+ };
21
+ refreshInterval: {
22
+ type: _lssm_lib_schema162.EnumType<[string, string, string, string, string, string]>;
23
+ isOptional: true;
24
+ };
25
+ dateRange: {
26
+ type: _lssm_lib_schema162.FieldType<unknown, unknown>;
27
+ isOptional: true;
28
+ };
29
+ }>, _lssm_lib_schema162.SchemaModel<{
30
+ id: {
31
+ type: _lssm_lib_schema162.FieldType<string, string>;
32
+ isOptional: false;
33
+ };
34
+ name: {
35
+ type: _lssm_lib_schema162.FieldType<string, string>;
36
+ isOptional: false;
37
+ };
38
+ slug: {
39
+ type: _lssm_lib_schema162.FieldType<string, string>;
40
+ isOptional: false;
41
+ };
42
+ description: {
43
+ type: _lssm_lib_schema162.FieldType<string, string>;
44
+ isOptional: true;
45
+ };
46
+ status: {
47
+ type: _lssm_lib_schema162.EnumType<[string, string, string]>;
48
+ isOptional: false;
49
+ };
50
+ refreshInterval: {
51
+ type: _lssm_lib_schema162.EnumType<[string, string, string, string, string, string]>;
52
+ isOptional: false;
53
+ };
54
+ isPublic: {
55
+ type: _lssm_lib_schema162.FieldType<boolean, boolean>;
56
+ isOptional: false;
57
+ };
58
+ widgets: {
59
+ type: _lssm_lib_schema162.SchemaModel<{
60
+ id: {
61
+ type: _lssm_lib_schema162.FieldType<string, string>;
62
+ isOptional: false;
63
+ };
64
+ dashboardId: {
65
+ type: _lssm_lib_schema162.FieldType<string, string>;
66
+ isOptional: false;
67
+ };
68
+ name: {
69
+ type: _lssm_lib_schema162.FieldType<string, string>;
70
+ isOptional: false;
71
+ };
72
+ type: {
73
+ type: _lssm_lib_schema162.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
74
+ isOptional: false;
75
+ };
76
+ gridX: {
77
+ type: _lssm_lib_schema162.FieldType<number, number>;
78
+ isOptional: false;
79
+ };
80
+ gridY: {
81
+ type: _lssm_lib_schema162.FieldType<number, number>;
82
+ isOptional: false;
83
+ };
84
+ gridWidth: {
85
+ type: _lssm_lib_schema162.FieldType<number, number>;
86
+ isOptional: false;
87
+ };
88
+ gridHeight: {
89
+ type: _lssm_lib_schema162.FieldType<number, number>;
90
+ isOptional: false;
91
+ };
92
+ queryId: {
93
+ type: _lssm_lib_schema162.FieldType<string, string>;
94
+ isOptional: true;
95
+ };
96
+ config: {
97
+ type: _lssm_lib_schema162.FieldType<unknown, unknown>;
98
+ isOptional: true;
99
+ };
100
+ }>;
101
+ isArray: true;
102
+ isOptional: true;
103
+ };
104
+ createdAt: {
105
+ type: _lssm_lib_schema162.FieldType<Date, string>;
106
+ isOptional: false;
107
+ };
108
+ }>, {
109
+ name: string;
110
+ version: number;
111
+ when: string;
112
+ payload: _lssm_lib_schema162.SchemaModel<{
113
+ id: {
114
+ type: _lssm_lib_schema162.FieldType<string, string>;
115
+ isOptional: false;
116
+ };
117
+ name: {
118
+ type: _lssm_lib_schema162.FieldType<string, string>;
119
+ isOptional: false;
120
+ };
121
+ slug: {
122
+ type: _lssm_lib_schema162.FieldType<string, string>;
123
+ isOptional: false;
124
+ };
125
+ description: {
126
+ type: _lssm_lib_schema162.FieldType<string, string>;
127
+ isOptional: true;
128
+ };
129
+ status: {
130
+ type: _lssm_lib_schema162.EnumType<[string, string, string]>;
131
+ isOptional: false;
132
+ };
133
+ refreshInterval: {
134
+ type: _lssm_lib_schema162.EnumType<[string, string, string, string, string, string]>;
135
+ isOptional: false;
136
+ };
137
+ isPublic: {
138
+ type: _lssm_lib_schema162.FieldType<boolean, boolean>;
139
+ isOptional: false;
140
+ };
141
+ widgets: {
142
+ type: _lssm_lib_schema162.SchemaModel<{
143
+ id: {
144
+ type: _lssm_lib_schema162.FieldType<string, string>;
145
+ isOptional: false;
146
+ };
147
+ dashboardId: {
148
+ type: _lssm_lib_schema162.FieldType<string, string>;
149
+ isOptional: false;
150
+ };
151
+ name: {
152
+ type: _lssm_lib_schema162.FieldType<string, string>;
153
+ isOptional: false;
154
+ };
155
+ type: {
156
+ type: _lssm_lib_schema162.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
157
+ isOptional: false;
158
+ };
159
+ gridX: {
160
+ type: _lssm_lib_schema162.FieldType<number, number>;
161
+ isOptional: false;
162
+ };
163
+ gridY: {
164
+ type: _lssm_lib_schema162.FieldType<number, number>;
165
+ isOptional: false;
166
+ };
167
+ gridWidth: {
168
+ type: _lssm_lib_schema162.FieldType<number, number>;
169
+ isOptional: false;
170
+ };
171
+ gridHeight: {
172
+ type: _lssm_lib_schema162.FieldType<number, number>;
173
+ isOptional: false;
174
+ };
175
+ queryId: {
176
+ type: _lssm_lib_schema162.FieldType<string, string>;
177
+ isOptional: true;
178
+ };
179
+ config: {
180
+ type: _lssm_lib_schema162.FieldType<unknown, unknown>;
181
+ isOptional: true;
182
+ };
183
+ }>;
184
+ isArray: true;
185
+ isOptional: true;
186
+ };
187
+ createdAt: {
188
+ type: _lssm_lib_schema162.FieldType<Date, string>;
189
+ isOptional: false;
190
+ };
191
+ }>;
192
+ }[]>;
193
+ /**
194
+ * Add a widget to a dashboard.
195
+ */
196
+ declare const AddWidgetContract: _lssm_lib_contracts7.ContractSpec<_lssm_lib_schema162.SchemaModel<{
197
+ dashboardId: {
198
+ type: _lssm_lib_schema162.FieldType<string, string>;
199
+ isOptional: false;
200
+ };
201
+ name: {
202
+ type: _lssm_lib_schema162.FieldType<string, string>;
203
+ isOptional: false;
204
+ };
205
+ type: {
206
+ type: _lssm_lib_schema162.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
207
+ isOptional: false;
208
+ };
209
+ gridX: {
210
+ type: _lssm_lib_schema162.FieldType<number, number>;
211
+ isOptional: true;
212
+ };
213
+ gridY: {
214
+ type: _lssm_lib_schema162.FieldType<number, number>;
215
+ isOptional: true;
216
+ };
217
+ gridWidth: {
218
+ type: _lssm_lib_schema162.FieldType<number, number>;
219
+ isOptional: true;
220
+ };
221
+ gridHeight: {
222
+ type: _lssm_lib_schema162.FieldType<number, number>;
223
+ isOptional: true;
224
+ };
225
+ queryId: {
226
+ type: _lssm_lib_schema162.FieldType<string, string>;
227
+ isOptional: true;
228
+ };
229
+ config: {
230
+ type: _lssm_lib_schema162.FieldType<unknown, unknown>;
231
+ isOptional: true;
232
+ };
233
+ }>, _lssm_lib_schema162.SchemaModel<{
234
+ id: {
235
+ type: _lssm_lib_schema162.FieldType<string, string>;
236
+ isOptional: false;
237
+ };
238
+ dashboardId: {
239
+ type: _lssm_lib_schema162.FieldType<string, string>;
240
+ isOptional: false;
241
+ };
242
+ name: {
243
+ type: _lssm_lib_schema162.FieldType<string, string>;
244
+ isOptional: false;
245
+ };
246
+ type: {
247
+ type: _lssm_lib_schema162.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
248
+ isOptional: false;
249
+ };
250
+ gridX: {
251
+ type: _lssm_lib_schema162.FieldType<number, number>;
252
+ isOptional: false;
253
+ };
254
+ gridY: {
255
+ type: _lssm_lib_schema162.FieldType<number, number>;
256
+ isOptional: false;
257
+ };
258
+ gridWidth: {
259
+ type: _lssm_lib_schema162.FieldType<number, number>;
260
+ isOptional: false;
261
+ };
262
+ gridHeight: {
263
+ type: _lssm_lib_schema162.FieldType<number, number>;
264
+ isOptional: false;
265
+ };
266
+ queryId: {
267
+ type: _lssm_lib_schema162.FieldType<string, string>;
268
+ isOptional: true;
269
+ };
270
+ config: {
271
+ type: _lssm_lib_schema162.FieldType<unknown, unknown>;
272
+ isOptional: true;
273
+ };
274
+ }>, {
275
+ name: string;
276
+ version: number;
277
+ when: string;
278
+ payload: _lssm_lib_schema162.SchemaModel<{
279
+ id: {
280
+ type: _lssm_lib_schema162.FieldType<string, string>;
281
+ isOptional: false;
282
+ };
283
+ dashboardId: {
284
+ type: _lssm_lib_schema162.FieldType<string, string>;
285
+ isOptional: false;
286
+ };
287
+ name: {
288
+ type: _lssm_lib_schema162.FieldType<string, string>;
289
+ isOptional: false;
290
+ };
291
+ type: {
292
+ type: _lssm_lib_schema162.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
293
+ isOptional: false;
294
+ };
295
+ gridX: {
296
+ type: _lssm_lib_schema162.FieldType<number, number>;
297
+ isOptional: false;
298
+ };
299
+ gridY: {
300
+ type: _lssm_lib_schema162.FieldType<number, number>;
301
+ isOptional: false;
302
+ };
303
+ gridWidth: {
304
+ type: _lssm_lib_schema162.FieldType<number, number>;
305
+ isOptional: false;
306
+ };
307
+ gridHeight: {
308
+ type: _lssm_lib_schema162.FieldType<number, number>;
309
+ isOptional: false;
310
+ };
311
+ queryId: {
312
+ type: _lssm_lib_schema162.FieldType<string, string>;
313
+ isOptional: true;
314
+ };
315
+ config: {
316
+ type: _lssm_lib_schema162.FieldType<unknown, unknown>;
317
+ isOptional: true;
318
+ };
319
+ }>;
320
+ }[]>;
321
+ /**
322
+ * List dashboards.
323
+ */
324
+ declare const ListDashboardsContract: _lssm_lib_contracts7.ContractSpec<_lssm_lib_schema162.SchemaModel<{
325
+ status: {
326
+ type: _lssm_lib_schema162.EnumType<[string, string, string]>;
327
+ isOptional: true;
328
+ };
329
+ search: {
330
+ type: _lssm_lib_schema162.FieldType<string, string>;
331
+ isOptional: true;
332
+ };
333
+ limit: {
334
+ type: _lssm_lib_schema162.FieldType<number, number>;
335
+ isOptional: true;
336
+ defaultValue: number;
337
+ };
338
+ offset: {
339
+ type: _lssm_lib_schema162.FieldType<number, number>;
340
+ isOptional: true;
341
+ defaultValue: number;
342
+ };
343
+ }>, _lssm_lib_schema162.SchemaModel<{
344
+ dashboards: {
345
+ type: _lssm_lib_schema162.SchemaModel<{
346
+ id: {
347
+ type: _lssm_lib_schema162.FieldType<string, string>;
348
+ isOptional: false;
349
+ };
350
+ name: {
351
+ type: _lssm_lib_schema162.FieldType<string, string>;
352
+ isOptional: false;
353
+ };
354
+ slug: {
355
+ type: _lssm_lib_schema162.FieldType<string, string>;
356
+ isOptional: false;
357
+ };
358
+ description: {
359
+ type: _lssm_lib_schema162.FieldType<string, string>;
360
+ isOptional: true;
361
+ };
362
+ status: {
363
+ type: _lssm_lib_schema162.EnumType<[string, string, string]>;
364
+ isOptional: false;
365
+ };
366
+ refreshInterval: {
367
+ type: _lssm_lib_schema162.EnumType<[string, string, string, string, string, string]>;
368
+ isOptional: false;
369
+ };
370
+ isPublic: {
371
+ type: _lssm_lib_schema162.FieldType<boolean, boolean>;
372
+ isOptional: false;
373
+ };
374
+ widgets: {
375
+ type: _lssm_lib_schema162.SchemaModel<{
376
+ id: {
377
+ type: _lssm_lib_schema162.FieldType<string, string>;
378
+ isOptional: false;
379
+ };
380
+ dashboardId: {
381
+ type: _lssm_lib_schema162.FieldType<string, string>;
382
+ isOptional: false;
383
+ };
384
+ name: {
385
+ type: _lssm_lib_schema162.FieldType<string, string>;
386
+ isOptional: false;
387
+ };
388
+ type: {
389
+ type: _lssm_lib_schema162.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
390
+ isOptional: false;
391
+ };
392
+ gridX: {
393
+ type: _lssm_lib_schema162.FieldType<number, number>;
394
+ isOptional: false;
395
+ };
396
+ gridY: {
397
+ type: _lssm_lib_schema162.FieldType<number, number>;
398
+ isOptional: false;
399
+ };
400
+ gridWidth: {
401
+ type: _lssm_lib_schema162.FieldType<number, number>;
402
+ isOptional: false;
403
+ };
404
+ gridHeight: {
405
+ type: _lssm_lib_schema162.FieldType<number, number>;
406
+ isOptional: false;
407
+ };
408
+ queryId: {
409
+ type: _lssm_lib_schema162.FieldType<string, string>;
410
+ isOptional: true;
411
+ };
412
+ config: {
413
+ type: _lssm_lib_schema162.FieldType<unknown, unknown>;
414
+ isOptional: true;
415
+ };
416
+ }>;
417
+ isArray: true;
418
+ isOptional: true;
419
+ };
420
+ createdAt: {
421
+ type: _lssm_lib_schema162.FieldType<Date, string>;
422
+ isOptional: false;
423
+ };
424
+ }>;
425
+ isArray: true;
426
+ isOptional: false;
427
+ };
428
+ total: {
429
+ type: _lssm_lib_schema162.FieldType<number, number>;
430
+ isOptional: false;
431
+ };
432
+ }>, undefined>;
433
+ /**
434
+ * Get a dashboard with widgets.
435
+ */
436
+ declare const GetDashboardContract: _lssm_lib_contracts7.ContractSpec<_lssm_lib_schema162.SchemaModel<{
437
+ dashboardId: {
438
+ type: _lssm_lib_schema162.FieldType<string, string>;
439
+ isOptional: true;
440
+ };
441
+ slug: {
442
+ type: _lssm_lib_schema162.FieldType<string, string>;
443
+ isOptional: true;
444
+ };
445
+ shareToken: {
446
+ type: _lssm_lib_schema162.FieldType<string, string>;
447
+ isOptional: true;
448
+ };
449
+ }>, _lssm_lib_schema162.SchemaModel<{
450
+ id: {
451
+ type: _lssm_lib_schema162.FieldType<string, string>;
452
+ isOptional: false;
453
+ };
454
+ name: {
455
+ type: _lssm_lib_schema162.FieldType<string, string>;
456
+ isOptional: false;
457
+ };
458
+ slug: {
459
+ type: _lssm_lib_schema162.FieldType<string, string>;
460
+ isOptional: false;
461
+ };
462
+ description: {
463
+ type: _lssm_lib_schema162.FieldType<string, string>;
464
+ isOptional: true;
465
+ };
466
+ status: {
467
+ type: _lssm_lib_schema162.EnumType<[string, string, string]>;
468
+ isOptional: false;
469
+ };
470
+ refreshInterval: {
471
+ type: _lssm_lib_schema162.EnumType<[string, string, string, string, string, string]>;
472
+ isOptional: false;
473
+ };
474
+ isPublic: {
475
+ type: _lssm_lib_schema162.FieldType<boolean, boolean>;
476
+ isOptional: false;
477
+ };
478
+ widgets: {
479
+ type: _lssm_lib_schema162.SchemaModel<{
480
+ id: {
481
+ type: _lssm_lib_schema162.FieldType<string, string>;
482
+ isOptional: false;
483
+ };
484
+ dashboardId: {
485
+ type: _lssm_lib_schema162.FieldType<string, string>;
486
+ isOptional: false;
487
+ };
488
+ name: {
489
+ type: _lssm_lib_schema162.FieldType<string, string>;
490
+ isOptional: false;
491
+ };
492
+ type: {
493
+ type: _lssm_lib_schema162.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
494
+ isOptional: false;
495
+ };
496
+ gridX: {
497
+ type: _lssm_lib_schema162.FieldType<number, number>;
498
+ isOptional: false;
499
+ };
500
+ gridY: {
501
+ type: _lssm_lib_schema162.FieldType<number, number>;
502
+ isOptional: false;
503
+ };
504
+ gridWidth: {
505
+ type: _lssm_lib_schema162.FieldType<number, number>;
506
+ isOptional: false;
507
+ };
508
+ gridHeight: {
509
+ type: _lssm_lib_schema162.FieldType<number, number>;
510
+ isOptional: false;
511
+ };
512
+ queryId: {
513
+ type: _lssm_lib_schema162.FieldType<string, string>;
514
+ isOptional: true;
515
+ };
516
+ config: {
517
+ type: _lssm_lib_schema162.FieldType<unknown, unknown>;
518
+ isOptional: true;
519
+ };
520
+ }>;
521
+ isArray: true;
522
+ isOptional: true;
523
+ };
524
+ createdAt: {
525
+ type: _lssm_lib_schema162.FieldType<Date, string>;
526
+ isOptional: false;
527
+ };
528
+ }>, undefined>;
529
+ //#endregion
530
+ export { AddWidgetContract, CreateDashboardContract, GetDashboardContract, ListDashboardsContract };
@@ -0,0 +1,17 @@
1
+ import * as _lssm_lib_schema0 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_schema0.EnumType<[string, string, string]>;
8
+ /**
9
+ * Widget type enum.
10
+ */
11
+ declare const WidgetTypeEnum: _lssm_lib_schema0.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_schema0.EnumType<[string, string, string, string, string, string]>;
16
+ //#endregion
17
+ export { DashboardStatusEnum, RefreshIntervalEnum, WidgetTypeEnum };
@@ -0,0 +1,8 @@
1
+ import { PresentationDescriptorV2 } from "@lssm/lib.contracts";
2
+
3
+ //#region src/dashboard/dashboard.presentation.d.ts
4
+ declare const DashboardsListPresentation: PresentationDescriptorV2;
5
+ declare const DashboardViewPresentation: PresentationDescriptorV2;
6
+ declare const DashboardEditorPresentation: PresentationDescriptorV2;
7
+ //#endregion
8
+ export { DashboardEditorPresentation, DashboardViewPresentation, DashboardsListPresentation };