@xpert-ai/plugin-live-dashboard 0.4.0 → 0.5.0
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/.xpertai-plugin/plugin.json +1 -1
- package/README.md +4 -0
- package/dist/lib/agent.schema.d.ts +179 -25
- package/dist/lib/agent.schema.js +10 -9
- package/dist/lib/archive.service.d.ts +145 -0
- package/dist/lib/archive.service.js +133 -0
- package/dist/lib/content.provider.d.ts +1 -1
- package/dist/lib/dashboard-archive.d.ts +70 -0
- package/dist/lib/dashboard-archive.js +118 -0
- package/dist/lib/dashboard-sources.d.ts +69 -0
- package/dist/lib/dashboard-sources.js +37 -0
- package/dist/lib/dashboard-view.schema.d.ts +503 -88
- package/dist/lib/dashboard-view.schema.js +2 -1
- package/dist/lib/dashboard.schema.d.ts +379 -58
- package/dist/lib/dashboard.schema.js +18 -1
- package/dist/lib/dashboard.service.d.ts +72 -17
- package/dist/lib/dashboard.service.js +21 -3
- package/dist/lib/document-package.d.ts +19 -4
- package/dist/lib/editing-patch.d.ts +3 -0
- package/dist/lib/editing-patch.js +2 -1
- package/dist/lib/editing-session.d.ts +4 -4
- package/dist/lib/editing.d.ts +202 -19
- package/dist/lib/editing.js +5 -2
- package/dist/lib/html-validation-feedback.d.ts +7 -0
- package/dist/lib/html-validation-feedback.js +19 -0
- package/dist/lib/html-validation.js +2 -1
- package/dist/lib/inspection-host.d.ts +7 -0
- package/dist/lib/inspection-host.js +48 -0
- package/dist/lib/inspection-runtime.d.ts +2 -0
- package/dist/lib/inspection-runtime.js +77 -0
- package/dist/lib/json-input.d.ts +4 -0
- package/dist/lib/json-input.js +21 -0
- package/dist/lib/middleware.js +3 -2
- package/dist/lib/plugin.js +2 -1
- package/dist/lib/presentation.provider.d.ts +24 -9
- package/dist/lib/presentation.provider.js +2 -1
- package/dist/lib/projects.schema.d.ts +14 -0
- package/dist/lib/projects.schema.js +2 -1
- package/dist/lib/projects.service.d.ts +2 -0
- package/dist/lib/projects.service.js +10 -0
- package/dist/lib/source-executions.d.ts +196 -0
- package/dist/lib/source-executions.js +25 -0
- package/dist/lib/source-validation.d.ts +2 -0
- package/dist/lib/source-validation.js +21 -0
- package/dist/lib/view.provider.d.ts +211 -12
- package/dist/lib/view.provider.js +43 -9
- package/dist/remote/app.css +1 -1
- package/dist/remote/app.js +99 -26
- package/dist/remote/build-manifest.json +42 -27
- package/docs/docs.json +3 -1
- package/docs/sources-inspect-portability-acceptance.mdx +67 -0
- package/docs/sources-inspect-portability.mdx +115 -0
- package/package.json +6 -5
- package/skills/live-dashboard/SKILL.md +5 -4
- package/skills/live-dashboard/references/source-inspection.md +17 -0
|
@@ -64,7 +64,10 @@ export declare const dashboardPickerPageSchema: z.ZodObject<{
|
|
|
64
64
|
}>, "many">;
|
|
65
65
|
page: z.ZodNumber;
|
|
66
66
|
hasMore: z.ZodBoolean;
|
|
67
|
+
canEdit: z.ZodDefault<z.ZodBoolean>;
|
|
68
|
+
mode: z.ZodOptional<z.ZodEnum<["draft", "published"]>>;
|
|
67
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
canEdit: boolean;
|
|
68
71
|
page: number;
|
|
69
72
|
items: {
|
|
70
73
|
artifactId: string;
|
|
@@ -78,6 +81,7 @@ export declare const dashboardPickerPageSchema: z.ZodObject<{
|
|
|
78
81
|
canDelete?: boolean | undefined;
|
|
79
82
|
}[];
|
|
80
83
|
hasMore: boolean;
|
|
84
|
+
mode?: "draft" | "published" | undefined;
|
|
81
85
|
}, {
|
|
82
86
|
page: number;
|
|
83
87
|
items: {
|
|
@@ -92,6 +96,8 @@ export declare const dashboardPickerPageSchema: z.ZodObject<{
|
|
|
92
96
|
canDelete?: boolean | undefined;
|
|
93
97
|
}[];
|
|
94
98
|
hasMore: boolean;
|
|
99
|
+
mode?: "draft" | "published" | undefined;
|
|
100
|
+
canEdit?: boolean | undefined;
|
|
95
101
|
}>;
|
|
96
102
|
export declare const dashboardSavedSchema: z.ZodObject<{
|
|
97
103
|
artifactId: z.ZodString;
|
|
@@ -109,6 +115,53 @@ export declare const dashboardSavedSchema: z.ZodObject<{
|
|
|
109
115
|
id: z.ZodString;
|
|
110
116
|
title: z.ZodString;
|
|
111
117
|
bindings: z.ZodArray<z.ZodType<import("@xpert-ai/contracts").AnalyticsBinding, z.ZodTypeDef, import("@xpert-ai/contracts").AnalyticsBinding>, "many">;
|
|
118
|
+
sourceMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
119
|
+
bindingId: z.ZodString;
|
|
120
|
+
title: z.ZodString;
|
|
121
|
+
description: z.ZodOptional<z.ZodString>;
|
|
122
|
+
}, "strict", z.ZodTypeAny, {
|
|
123
|
+
bindingId: string;
|
|
124
|
+
title: string;
|
|
125
|
+
description?: string | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
bindingId: string;
|
|
128
|
+
title: string;
|
|
129
|
+
description?: string | undefined;
|
|
130
|
+
}>, "many">>;
|
|
131
|
+
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
132
|
+
id: z.ZodString;
|
|
133
|
+
elementId: z.ZodString;
|
|
134
|
+
title: z.ZodString;
|
|
135
|
+
kind: z.ZodEnum<["metric", "chart", "table", "filter", "text"]>;
|
|
136
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
137
|
+
bindingId: z.ZodString;
|
|
138
|
+
fieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
139
|
+
}, "strict", z.ZodTypeAny, {
|
|
140
|
+
bindingId: string;
|
|
141
|
+
fieldIds?: string[] | undefined;
|
|
142
|
+
}, {
|
|
143
|
+
bindingId: string;
|
|
144
|
+
fieldIds?: string[] | undefined;
|
|
145
|
+
}>, "many">;
|
|
146
|
+
}, "strict", z.ZodTypeAny, {
|
|
147
|
+
title: string;
|
|
148
|
+
id: string;
|
|
149
|
+
elementId: string;
|
|
150
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
151
|
+
sources: {
|
|
152
|
+
bindingId: string;
|
|
153
|
+
fieldIds?: string[] | undefined;
|
|
154
|
+
}[];
|
|
155
|
+
}, {
|
|
156
|
+
title: string;
|
|
157
|
+
id: string;
|
|
158
|
+
elementId: string;
|
|
159
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
160
|
+
sources: {
|
|
161
|
+
bindingId: string;
|
|
162
|
+
fieldIds?: string[] | undefined;
|
|
163
|
+
}[];
|
|
164
|
+
}>, "many">>;
|
|
112
165
|
presentation: z.ZodOptional<z.ZodObject<{
|
|
113
166
|
type: z.ZodLiteral<"html">;
|
|
114
167
|
html: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -186,17 +239,17 @@ export declare const dashboardSavedSchema: z.ZodObject<{
|
|
|
186
239
|
y: z.ZodString;
|
|
187
240
|
color: z.ZodOptional<z.ZodString>;
|
|
188
241
|
}, "strict", z.ZodTypeAny, {
|
|
242
|
+
title: string;
|
|
189
243
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
190
244
|
id: string;
|
|
191
|
-
title: string;
|
|
192
245
|
datasetId: string;
|
|
193
246
|
x: string;
|
|
194
247
|
y: string;
|
|
195
248
|
color?: string | undefined;
|
|
196
249
|
}, {
|
|
250
|
+
title: string;
|
|
197
251
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
198
252
|
id: string;
|
|
199
|
-
title: string;
|
|
200
253
|
datasetId: string;
|
|
201
254
|
x: string;
|
|
202
255
|
y: string;
|
|
@@ -208,20 +261,20 @@ export declare const dashboardSavedSchema: z.ZodObject<{
|
|
|
208
261
|
datasetId: z.ZodString;
|
|
209
262
|
fields: z.ZodArray<z.ZodString, "many">;
|
|
210
263
|
}, "strict", z.ZodTypeAny, {
|
|
211
|
-
id: string;
|
|
212
264
|
title: string;
|
|
265
|
+
id: string;
|
|
213
266
|
datasetId: string;
|
|
214
267
|
fields: string[];
|
|
215
268
|
}, {
|
|
216
|
-
id: string;
|
|
217
269
|
title: string;
|
|
270
|
+
id: string;
|
|
218
271
|
datasetId: string;
|
|
219
272
|
fields: string[];
|
|
220
273
|
}>, "many">;
|
|
221
274
|
}, "strict", z.ZodTypeAny, {
|
|
222
|
-
schema: "xpert.live-dashboard";
|
|
223
|
-
id: string;
|
|
224
275
|
title: string;
|
|
276
|
+
id: string;
|
|
277
|
+
schema: "xpert.live-dashboard";
|
|
225
278
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
226
279
|
controls: {
|
|
227
280
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -231,29 +284,44 @@ export declare const dashboardSavedSchema: z.ZodObject<{
|
|
|
231
284
|
allowedValues?: (string | number | boolean | null)[] | undefined;
|
|
232
285
|
}[];
|
|
233
286
|
charts: {
|
|
287
|
+
title: string;
|
|
234
288
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
235
289
|
id: string;
|
|
236
|
-
title: string;
|
|
237
290
|
datasetId: string;
|
|
238
291
|
x: string;
|
|
239
292
|
y: string;
|
|
240
293
|
color?: string | undefined;
|
|
241
294
|
}[];
|
|
242
295
|
tables: {
|
|
243
|
-
id: string;
|
|
244
296
|
title: string;
|
|
297
|
+
id: string;
|
|
245
298
|
datasetId: string;
|
|
246
299
|
fields: string[];
|
|
247
300
|
}[];
|
|
301
|
+
sourceMetadata?: {
|
|
302
|
+
bindingId: string;
|
|
303
|
+
title: string;
|
|
304
|
+
description?: string | undefined;
|
|
305
|
+
}[] | undefined;
|
|
306
|
+
components?: {
|
|
307
|
+
title: string;
|
|
308
|
+
id: string;
|
|
309
|
+
elementId: string;
|
|
310
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
311
|
+
sources: {
|
|
312
|
+
bindingId: string;
|
|
313
|
+
fieldIds?: string[] | undefined;
|
|
314
|
+
}[];
|
|
315
|
+
}[] | undefined;
|
|
248
316
|
presentation?: {
|
|
249
317
|
type: "html";
|
|
250
318
|
html: string;
|
|
251
319
|
dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
|
|
252
320
|
} | undefined;
|
|
253
321
|
}, {
|
|
254
|
-
schema: "xpert.live-dashboard";
|
|
255
|
-
id: string;
|
|
256
322
|
title: string;
|
|
323
|
+
id: string;
|
|
324
|
+
schema: "xpert.live-dashboard";
|
|
257
325
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
258
326
|
controls: {
|
|
259
327
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -263,20 +331,35 @@ export declare const dashboardSavedSchema: z.ZodObject<{
|
|
|
263
331
|
allowedValues?: (string | number | boolean | null)[] | undefined;
|
|
264
332
|
}[];
|
|
265
333
|
charts: {
|
|
334
|
+
title: string;
|
|
266
335
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
267
336
|
id: string;
|
|
268
|
-
title: string;
|
|
269
337
|
datasetId: string;
|
|
270
338
|
x: string;
|
|
271
339
|
y: string;
|
|
272
340
|
color?: string | undefined;
|
|
273
341
|
}[];
|
|
274
342
|
tables: {
|
|
275
|
-
id: string;
|
|
276
343
|
title: string;
|
|
344
|
+
id: string;
|
|
277
345
|
datasetId: string;
|
|
278
346
|
fields: string[];
|
|
279
347
|
}[];
|
|
348
|
+
sourceMetadata?: {
|
|
349
|
+
bindingId: string;
|
|
350
|
+
title: string;
|
|
351
|
+
description?: string | undefined;
|
|
352
|
+
}[] | undefined;
|
|
353
|
+
components?: {
|
|
354
|
+
title: string;
|
|
355
|
+
id: string;
|
|
356
|
+
elementId: string;
|
|
357
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
358
|
+
sources: {
|
|
359
|
+
bindingId: string;
|
|
360
|
+
fieldIds?: string[] | undefined;
|
|
361
|
+
}[];
|
|
362
|
+
}[] | undefined;
|
|
280
363
|
presentation?: {
|
|
281
364
|
type: "html";
|
|
282
365
|
html: string;
|
|
@@ -289,9 +372,9 @@ export declare const dashboardSavedSchema: z.ZodObject<{
|
|
|
289
372
|
}[] | undefined;
|
|
290
373
|
} | undefined;
|
|
291
374
|
}>, {
|
|
292
|
-
schema: "xpert.live-dashboard";
|
|
293
|
-
id: string;
|
|
294
375
|
title: string;
|
|
376
|
+
id: string;
|
|
377
|
+
schema: "xpert.live-dashboard";
|
|
295
378
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
296
379
|
controls: {
|
|
297
380
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -301,29 +384,44 @@ export declare const dashboardSavedSchema: z.ZodObject<{
|
|
|
301
384
|
allowedValues?: (string | number | boolean | null)[] | undefined;
|
|
302
385
|
}[];
|
|
303
386
|
charts: {
|
|
387
|
+
title: string;
|
|
304
388
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
305
389
|
id: string;
|
|
306
|
-
title: string;
|
|
307
390
|
datasetId: string;
|
|
308
391
|
x: string;
|
|
309
392
|
y: string;
|
|
310
393
|
color?: string | undefined;
|
|
311
394
|
}[];
|
|
312
395
|
tables: {
|
|
313
|
-
id: string;
|
|
314
396
|
title: string;
|
|
397
|
+
id: string;
|
|
315
398
|
datasetId: string;
|
|
316
399
|
fields: string[];
|
|
317
400
|
}[];
|
|
401
|
+
sourceMetadata?: {
|
|
402
|
+
bindingId: string;
|
|
403
|
+
title: string;
|
|
404
|
+
description?: string | undefined;
|
|
405
|
+
}[] | undefined;
|
|
406
|
+
components?: {
|
|
407
|
+
title: string;
|
|
408
|
+
id: string;
|
|
409
|
+
elementId: string;
|
|
410
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
411
|
+
sources: {
|
|
412
|
+
bindingId: string;
|
|
413
|
+
fieldIds?: string[] | undefined;
|
|
414
|
+
}[];
|
|
415
|
+
}[] | undefined;
|
|
318
416
|
presentation?: {
|
|
319
417
|
type: "html";
|
|
320
418
|
html: string;
|
|
321
419
|
dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
|
|
322
420
|
} | undefined;
|
|
323
421
|
}, {
|
|
324
|
-
schema: "xpert.live-dashboard";
|
|
325
|
-
id: string;
|
|
326
422
|
title: string;
|
|
423
|
+
id: string;
|
|
424
|
+
schema: "xpert.live-dashboard";
|
|
327
425
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
328
426
|
controls: {
|
|
329
427
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -333,20 +431,35 @@ export declare const dashboardSavedSchema: z.ZodObject<{
|
|
|
333
431
|
allowedValues?: (string | number | boolean | null)[] | undefined;
|
|
334
432
|
}[];
|
|
335
433
|
charts: {
|
|
434
|
+
title: string;
|
|
336
435
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
337
436
|
id: string;
|
|
338
|
-
title: string;
|
|
339
437
|
datasetId: string;
|
|
340
438
|
x: string;
|
|
341
439
|
y: string;
|
|
342
440
|
color?: string | undefined;
|
|
343
441
|
}[];
|
|
344
442
|
tables: {
|
|
345
|
-
id: string;
|
|
346
443
|
title: string;
|
|
444
|
+
id: string;
|
|
347
445
|
datasetId: string;
|
|
348
446
|
fields: string[];
|
|
349
447
|
}[];
|
|
448
|
+
sourceMetadata?: {
|
|
449
|
+
bindingId: string;
|
|
450
|
+
title: string;
|
|
451
|
+
description?: string | undefined;
|
|
452
|
+
}[] | undefined;
|
|
453
|
+
components?: {
|
|
454
|
+
title: string;
|
|
455
|
+
id: string;
|
|
456
|
+
elementId: string;
|
|
457
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
458
|
+
sources: {
|
|
459
|
+
bindingId: string;
|
|
460
|
+
fieldIds?: string[] | undefined;
|
|
461
|
+
}[];
|
|
462
|
+
}[] | undefined;
|
|
350
463
|
presentation?: {
|
|
351
464
|
type: "html";
|
|
352
465
|
html: string;
|
|
@@ -391,9 +504,9 @@ export declare const dashboardSavedSchema: z.ZodObject<{
|
|
|
391
504
|
}>, "many">>;
|
|
392
505
|
}, "strip", z.ZodTypeAny, {
|
|
393
506
|
manifest: {
|
|
394
|
-
schema: "xpert.live-dashboard";
|
|
395
|
-
id: string;
|
|
396
507
|
title: string;
|
|
508
|
+
id: string;
|
|
509
|
+
schema: "xpert.live-dashboard";
|
|
397
510
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
398
511
|
controls: {
|
|
399
512
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -403,20 +516,35 @@ export declare const dashboardSavedSchema: z.ZodObject<{
|
|
|
403
516
|
allowedValues?: (string | number | boolean | null)[] | undefined;
|
|
404
517
|
}[];
|
|
405
518
|
charts: {
|
|
519
|
+
title: string;
|
|
406
520
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
407
521
|
id: string;
|
|
408
|
-
title: string;
|
|
409
522
|
datasetId: string;
|
|
410
523
|
x: string;
|
|
411
524
|
y: string;
|
|
412
525
|
color?: string | undefined;
|
|
413
526
|
}[];
|
|
414
527
|
tables: {
|
|
415
|
-
id: string;
|
|
416
528
|
title: string;
|
|
529
|
+
id: string;
|
|
417
530
|
datasetId: string;
|
|
418
531
|
fields: string[];
|
|
419
532
|
}[];
|
|
533
|
+
sourceMetadata?: {
|
|
534
|
+
bindingId: string;
|
|
535
|
+
title: string;
|
|
536
|
+
description?: string | undefined;
|
|
537
|
+
}[] | undefined;
|
|
538
|
+
components?: {
|
|
539
|
+
title: string;
|
|
540
|
+
id: string;
|
|
541
|
+
elementId: string;
|
|
542
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
543
|
+
sources: {
|
|
544
|
+
bindingId: string;
|
|
545
|
+
fieldIds?: string[] | undefined;
|
|
546
|
+
}[];
|
|
547
|
+
}[] | undefined;
|
|
420
548
|
presentation?: {
|
|
421
549
|
type: "html";
|
|
422
550
|
html: string;
|
|
@@ -435,9 +563,9 @@ export declare const dashboardSavedSchema: z.ZodObject<{
|
|
|
435
563
|
canDelete?: boolean | undefined;
|
|
436
564
|
}, {
|
|
437
565
|
manifest: {
|
|
438
|
-
schema: "xpert.live-dashboard";
|
|
439
|
-
id: string;
|
|
440
566
|
title: string;
|
|
567
|
+
id: string;
|
|
568
|
+
schema: "xpert.live-dashboard";
|
|
441
569
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
442
570
|
controls: {
|
|
443
571
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -447,20 +575,35 @@ export declare const dashboardSavedSchema: z.ZodObject<{
|
|
|
447
575
|
allowedValues?: (string | number | boolean | null)[] | undefined;
|
|
448
576
|
}[];
|
|
449
577
|
charts: {
|
|
578
|
+
title: string;
|
|
450
579
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
451
580
|
id: string;
|
|
452
|
-
title: string;
|
|
453
581
|
datasetId: string;
|
|
454
582
|
x: string;
|
|
455
583
|
y: string;
|
|
456
584
|
color?: string | undefined;
|
|
457
585
|
}[];
|
|
458
586
|
tables: {
|
|
459
|
-
id: string;
|
|
460
587
|
title: string;
|
|
588
|
+
id: string;
|
|
461
589
|
datasetId: string;
|
|
462
590
|
fields: string[];
|
|
463
591
|
}[];
|
|
592
|
+
sourceMetadata?: {
|
|
593
|
+
bindingId: string;
|
|
594
|
+
title: string;
|
|
595
|
+
description?: string | undefined;
|
|
596
|
+
}[] | undefined;
|
|
597
|
+
components?: {
|
|
598
|
+
title: string;
|
|
599
|
+
id: string;
|
|
600
|
+
elementId: string;
|
|
601
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
602
|
+
sources: {
|
|
603
|
+
bindingId: string;
|
|
604
|
+
fieldIds?: string[] | undefined;
|
|
605
|
+
}[];
|
|
606
|
+
}[] | undefined;
|
|
464
607
|
presentation?: {
|
|
465
608
|
type: "html";
|
|
466
609
|
html: string;
|
|
@@ -578,6 +721,37 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
578
721
|
updatedAt?: string | undefined;
|
|
579
722
|
canDelete?: boolean | undefined;
|
|
580
723
|
}>, "many">;
|
|
724
|
+
selectedDashboard: z.ZodOptional<z.ZodObject<{
|
|
725
|
+
artifactId: z.ZodString;
|
|
726
|
+
versionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
727
|
+
versionNumber: z.ZodOptional<z.ZodNumber>;
|
|
728
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
729
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
730
|
+
draftRevision: z.ZodOptional<z.ZodNumber>;
|
|
731
|
+
canDelete: z.ZodOptional<z.ZodBoolean>;
|
|
732
|
+
isDraft: z.ZodOptional<z.ZodBoolean>;
|
|
733
|
+
baseVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
734
|
+
}, "strip", z.ZodTypeAny, {
|
|
735
|
+
artifactId: string;
|
|
736
|
+
title?: string | null | undefined;
|
|
737
|
+
versionId?: string | null | undefined;
|
|
738
|
+
draftRevision?: number | undefined;
|
|
739
|
+
versionNumber?: number | undefined;
|
|
740
|
+
baseVersionId?: string | null | undefined;
|
|
741
|
+
isDraft?: boolean | undefined;
|
|
742
|
+
updatedAt?: string | undefined;
|
|
743
|
+
canDelete?: boolean | undefined;
|
|
744
|
+
}, {
|
|
745
|
+
artifactId: string;
|
|
746
|
+
title?: string | null | undefined;
|
|
747
|
+
versionId?: string | null | undefined;
|
|
748
|
+
draftRevision?: number | undefined;
|
|
749
|
+
versionNumber?: number | undefined;
|
|
750
|
+
baseVersionId?: string | null | undefined;
|
|
751
|
+
isDraft?: boolean | undefined;
|
|
752
|
+
updatedAt?: string | undefined;
|
|
753
|
+
canDelete?: boolean | undefined;
|
|
754
|
+
}>>;
|
|
581
755
|
sources: z.ZodArray<z.ZodObject<{
|
|
582
756
|
source: z.ZodType<import("@xpert-ai/contracts").AnalyticsSourceRef, z.ZodTypeDef, import("@xpert-ai/contracts").AnalyticsSourceRef>;
|
|
583
757
|
name: z.ZodString;
|
|
@@ -604,6 +778,53 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
604
778
|
id: z.ZodString;
|
|
605
779
|
title: z.ZodString;
|
|
606
780
|
bindings: z.ZodArray<z.ZodType<import("@xpert-ai/contracts").AnalyticsBinding, z.ZodTypeDef, import("@xpert-ai/contracts").AnalyticsBinding>, "many">;
|
|
781
|
+
sourceMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
782
|
+
bindingId: z.ZodString;
|
|
783
|
+
title: z.ZodString;
|
|
784
|
+
description: z.ZodOptional<z.ZodString>;
|
|
785
|
+
}, "strict", z.ZodTypeAny, {
|
|
786
|
+
bindingId: string;
|
|
787
|
+
title: string;
|
|
788
|
+
description?: string | undefined;
|
|
789
|
+
}, {
|
|
790
|
+
bindingId: string;
|
|
791
|
+
title: string;
|
|
792
|
+
description?: string | undefined;
|
|
793
|
+
}>, "many">>;
|
|
794
|
+
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
795
|
+
id: z.ZodString;
|
|
796
|
+
elementId: z.ZodString;
|
|
797
|
+
title: z.ZodString;
|
|
798
|
+
kind: z.ZodEnum<["metric", "chart", "table", "filter", "text"]>;
|
|
799
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
800
|
+
bindingId: z.ZodString;
|
|
801
|
+
fieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
802
|
+
}, "strict", z.ZodTypeAny, {
|
|
803
|
+
bindingId: string;
|
|
804
|
+
fieldIds?: string[] | undefined;
|
|
805
|
+
}, {
|
|
806
|
+
bindingId: string;
|
|
807
|
+
fieldIds?: string[] | undefined;
|
|
808
|
+
}>, "many">;
|
|
809
|
+
}, "strict", z.ZodTypeAny, {
|
|
810
|
+
title: string;
|
|
811
|
+
id: string;
|
|
812
|
+
elementId: string;
|
|
813
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
814
|
+
sources: {
|
|
815
|
+
bindingId: string;
|
|
816
|
+
fieldIds?: string[] | undefined;
|
|
817
|
+
}[];
|
|
818
|
+
}, {
|
|
819
|
+
title: string;
|
|
820
|
+
id: string;
|
|
821
|
+
elementId: string;
|
|
822
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
823
|
+
sources: {
|
|
824
|
+
bindingId: string;
|
|
825
|
+
fieldIds?: string[] | undefined;
|
|
826
|
+
}[];
|
|
827
|
+
}>, "many">>;
|
|
607
828
|
presentation: z.ZodOptional<z.ZodObject<{
|
|
608
829
|
type: z.ZodLiteral<"html">;
|
|
609
830
|
html: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -681,17 +902,17 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
681
902
|
y: z.ZodString;
|
|
682
903
|
color: z.ZodOptional<z.ZodString>;
|
|
683
904
|
}, "strict", z.ZodTypeAny, {
|
|
905
|
+
title: string;
|
|
684
906
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
685
907
|
id: string;
|
|
686
|
-
title: string;
|
|
687
908
|
datasetId: string;
|
|
688
909
|
x: string;
|
|
689
910
|
y: string;
|
|
690
911
|
color?: string | undefined;
|
|
691
912
|
}, {
|
|
913
|
+
title: string;
|
|
692
914
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
693
915
|
id: string;
|
|
694
|
-
title: string;
|
|
695
916
|
datasetId: string;
|
|
696
917
|
x: string;
|
|
697
918
|
y: string;
|
|
@@ -703,20 +924,20 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
703
924
|
datasetId: z.ZodString;
|
|
704
925
|
fields: z.ZodArray<z.ZodString, "many">;
|
|
705
926
|
}, "strict", z.ZodTypeAny, {
|
|
706
|
-
id: string;
|
|
707
927
|
title: string;
|
|
928
|
+
id: string;
|
|
708
929
|
datasetId: string;
|
|
709
930
|
fields: string[];
|
|
710
931
|
}, {
|
|
711
|
-
id: string;
|
|
712
932
|
title: string;
|
|
933
|
+
id: string;
|
|
713
934
|
datasetId: string;
|
|
714
935
|
fields: string[];
|
|
715
936
|
}>, "many">;
|
|
716
937
|
}, "strict", z.ZodTypeAny, {
|
|
717
|
-
schema: "xpert.live-dashboard";
|
|
718
|
-
id: string;
|
|
719
938
|
title: string;
|
|
939
|
+
id: string;
|
|
940
|
+
schema: "xpert.live-dashboard";
|
|
720
941
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
721
942
|
controls: {
|
|
722
943
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -726,29 +947,44 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
726
947
|
allowedValues?: (string | number | boolean | null)[] | undefined;
|
|
727
948
|
}[];
|
|
728
949
|
charts: {
|
|
950
|
+
title: string;
|
|
729
951
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
730
952
|
id: string;
|
|
731
|
-
title: string;
|
|
732
953
|
datasetId: string;
|
|
733
954
|
x: string;
|
|
734
955
|
y: string;
|
|
735
956
|
color?: string | undefined;
|
|
736
957
|
}[];
|
|
737
958
|
tables: {
|
|
738
|
-
id: string;
|
|
739
959
|
title: string;
|
|
960
|
+
id: string;
|
|
740
961
|
datasetId: string;
|
|
741
962
|
fields: string[];
|
|
742
963
|
}[];
|
|
964
|
+
sourceMetadata?: {
|
|
965
|
+
bindingId: string;
|
|
966
|
+
title: string;
|
|
967
|
+
description?: string | undefined;
|
|
968
|
+
}[] | undefined;
|
|
969
|
+
components?: {
|
|
970
|
+
title: string;
|
|
971
|
+
id: string;
|
|
972
|
+
elementId: string;
|
|
973
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
974
|
+
sources: {
|
|
975
|
+
bindingId: string;
|
|
976
|
+
fieldIds?: string[] | undefined;
|
|
977
|
+
}[];
|
|
978
|
+
}[] | undefined;
|
|
743
979
|
presentation?: {
|
|
744
980
|
type: "html";
|
|
745
981
|
html: string;
|
|
746
982
|
dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
|
|
747
983
|
} | undefined;
|
|
748
984
|
}, {
|
|
749
|
-
schema: "xpert.live-dashboard";
|
|
750
|
-
id: string;
|
|
751
985
|
title: string;
|
|
986
|
+
id: string;
|
|
987
|
+
schema: "xpert.live-dashboard";
|
|
752
988
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
753
989
|
controls: {
|
|
754
990
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -758,20 +994,35 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
758
994
|
allowedValues?: (string | number | boolean | null)[] | undefined;
|
|
759
995
|
}[];
|
|
760
996
|
charts: {
|
|
997
|
+
title: string;
|
|
761
998
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
762
999
|
id: string;
|
|
763
|
-
title: string;
|
|
764
1000
|
datasetId: string;
|
|
765
1001
|
x: string;
|
|
766
1002
|
y: string;
|
|
767
1003
|
color?: string | undefined;
|
|
768
1004
|
}[];
|
|
769
1005
|
tables: {
|
|
770
|
-
id: string;
|
|
771
1006
|
title: string;
|
|
1007
|
+
id: string;
|
|
772
1008
|
datasetId: string;
|
|
773
1009
|
fields: string[];
|
|
774
1010
|
}[];
|
|
1011
|
+
sourceMetadata?: {
|
|
1012
|
+
bindingId: string;
|
|
1013
|
+
title: string;
|
|
1014
|
+
description?: string | undefined;
|
|
1015
|
+
}[] | undefined;
|
|
1016
|
+
components?: {
|
|
1017
|
+
title: string;
|
|
1018
|
+
id: string;
|
|
1019
|
+
elementId: string;
|
|
1020
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
1021
|
+
sources: {
|
|
1022
|
+
bindingId: string;
|
|
1023
|
+
fieldIds?: string[] | undefined;
|
|
1024
|
+
}[];
|
|
1025
|
+
}[] | undefined;
|
|
775
1026
|
presentation?: {
|
|
776
1027
|
type: "html";
|
|
777
1028
|
html: string;
|
|
@@ -784,9 +1035,9 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
784
1035
|
}[] | undefined;
|
|
785
1036
|
} | undefined;
|
|
786
1037
|
}>, {
|
|
787
|
-
schema: "xpert.live-dashboard";
|
|
788
|
-
id: string;
|
|
789
1038
|
title: string;
|
|
1039
|
+
id: string;
|
|
1040
|
+
schema: "xpert.live-dashboard";
|
|
790
1041
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
791
1042
|
controls: {
|
|
792
1043
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -796,29 +1047,44 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
796
1047
|
allowedValues?: (string | number | boolean | null)[] | undefined;
|
|
797
1048
|
}[];
|
|
798
1049
|
charts: {
|
|
1050
|
+
title: string;
|
|
799
1051
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
800
1052
|
id: string;
|
|
801
|
-
title: string;
|
|
802
1053
|
datasetId: string;
|
|
803
1054
|
x: string;
|
|
804
1055
|
y: string;
|
|
805
1056
|
color?: string | undefined;
|
|
806
1057
|
}[];
|
|
807
1058
|
tables: {
|
|
808
|
-
id: string;
|
|
809
1059
|
title: string;
|
|
1060
|
+
id: string;
|
|
810
1061
|
datasetId: string;
|
|
811
1062
|
fields: string[];
|
|
812
1063
|
}[];
|
|
1064
|
+
sourceMetadata?: {
|
|
1065
|
+
bindingId: string;
|
|
1066
|
+
title: string;
|
|
1067
|
+
description?: string | undefined;
|
|
1068
|
+
}[] | undefined;
|
|
1069
|
+
components?: {
|
|
1070
|
+
title: string;
|
|
1071
|
+
id: string;
|
|
1072
|
+
elementId: string;
|
|
1073
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
1074
|
+
sources: {
|
|
1075
|
+
bindingId: string;
|
|
1076
|
+
fieldIds?: string[] | undefined;
|
|
1077
|
+
}[];
|
|
1078
|
+
}[] | undefined;
|
|
813
1079
|
presentation?: {
|
|
814
1080
|
type: "html";
|
|
815
1081
|
html: string;
|
|
816
1082
|
dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
|
|
817
1083
|
} | undefined;
|
|
818
1084
|
}, {
|
|
819
|
-
schema: "xpert.live-dashboard";
|
|
820
|
-
id: string;
|
|
821
1085
|
title: string;
|
|
1086
|
+
id: string;
|
|
1087
|
+
schema: "xpert.live-dashboard";
|
|
822
1088
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
823
1089
|
controls: {
|
|
824
1090
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -828,20 +1094,35 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
828
1094
|
allowedValues?: (string | number | boolean | null)[] | undefined;
|
|
829
1095
|
}[];
|
|
830
1096
|
charts: {
|
|
1097
|
+
title: string;
|
|
831
1098
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
832
1099
|
id: string;
|
|
833
|
-
title: string;
|
|
834
1100
|
datasetId: string;
|
|
835
1101
|
x: string;
|
|
836
1102
|
y: string;
|
|
837
1103
|
color?: string | undefined;
|
|
838
1104
|
}[];
|
|
839
1105
|
tables: {
|
|
840
|
-
id: string;
|
|
841
1106
|
title: string;
|
|
1107
|
+
id: string;
|
|
842
1108
|
datasetId: string;
|
|
843
1109
|
fields: string[];
|
|
844
1110
|
}[];
|
|
1111
|
+
sourceMetadata?: {
|
|
1112
|
+
bindingId: string;
|
|
1113
|
+
title: string;
|
|
1114
|
+
description?: string | undefined;
|
|
1115
|
+
}[] | undefined;
|
|
1116
|
+
components?: {
|
|
1117
|
+
title: string;
|
|
1118
|
+
id: string;
|
|
1119
|
+
elementId: string;
|
|
1120
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
1121
|
+
sources: {
|
|
1122
|
+
bindingId: string;
|
|
1123
|
+
fieldIds?: string[] | undefined;
|
|
1124
|
+
}[];
|
|
1125
|
+
}[] | undefined;
|
|
845
1126
|
presentation?: {
|
|
846
1127
|
type: "html";
|
|
847
1128
|
html: string;
|
|
@@ -886,9 +1167,9 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
886
1167
|
}>, "many">>;
|
|
887
1168
|
}, "strip", z.ZodTypeAny, {
|
|
888
1169
|
manifest: {
|
|
889
|
-
schema: "xpert.live-dashboard";
|
|
890
|
-
id: string;
|
|
891
1170
|
title: string;
|
|
1171
|
+
id: string;
|
|
1172
|
+
schema: "xpert.live-dashboard";
|
|
892
1173
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
893
1174
|
controls: {
|
|
894
1175
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -898,20 +1179,35 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
898
1179
|
allowedValues?: (string | number | boolean | null)[] | undefined;
|
|
899
1180
|
}[];
|
|
900
1181
|
charts: {
|
|
1182
|
+
title: string;
|
|
901
1183
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
902
1184
|
id: string;
|
|
903
|
-
title: string;
|
|
904
1185
|
datasetId: string;
|
|
905
1186
|
x: string;
|
|
906
1187
|
y: string;
|
|
907
1188
|
color?: string | undefined;
|
|
908
1189
|
}[];
|
|
909
1190
|
tables: {
|
|
910
|
-
id: string;
|
|
911
1191
|
title: string;
|
|
1192
|
+
id: string;
|
|
912
1193
|
datasetId: string;
|
|
913
1194
|
fields: string[];
|
|
914
1195
|
}[];
|
|
1196
|
+
sourceMetadata?: {
|
|
1197
|
+
bindingId: string;
|
|
1198
|
+
title: string;
|
|
1199
|
+
description?: string | undefined;
|
|
1200
|
+
}[] | undefined;
|
|
1201
|
+
components?: {
|
|
1202
|
+
title: string;
|
|
1203
|
+
id: string;
|
|
1204
|
+
elementId: string;
|
|
1205
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
1206
|
+
sources: {
|
|
1207
|
+
bindingId: string;
|
|
1208
|
+
fieldIds?: string[] | undefined;
|
|
1209
|
+
}[];
|
|
1210
|
+
}[] | undefined;
|
|
915
1211
|
presentation?: {
|
|
916
1212
|
type: "html";
|
|
917
1213
|
html: string;
|
|
@@ -930,9 +1226,9 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
930
1226
|
canDelete?: boolean | undefined;
|
|
931
1227
|
}, {
|
|
932
1228
|
manifest: {
|
|
933
|
-
schema: "xpert.live-dashboard";
|
|
934
|
-
id: string;
|
|
935
1229
|
title: string;
|
|
1230
|
+
id: string;
|
|
1231
|
+
schema: "xpert.live-dashboard";
|
|
936
1232
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
937
1233
|
controls: {
|
|
938
1234
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -942,20 +1238,35 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
942
1238
|
allowedValues?: (string | number | boolean | null)[] | undefined;
|
|
943
1239
|
}[];
|
|
944
1240
|
charts: {
|
|
1241
|
+
title: string;
|
|
945
1242
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
946
1243
|
id: string;
|
|
947
|
-
title: string;
|
|
948
1244
|
datasetId: string;
|
|
949
1245
|
x: string;
|
|
950
1246
|
y: string;
|
|
951
1247
|
color?: string | undefined;
|
|
952
1248
|
}[];
|
|
953
1249
|
tables: {
|
|
954
|
-
id: string;
|
|
955
1250
|
title: string;
|
|
1251
|
+
id: string;
|
|
956
1252
|
datasetId: string;
|
|
957
1253
|
fields: string[];
|
|
958
1254
|
}[];
|
|
1255
|
+
sourceMetadata?: {
|
|
1256
|
+
bindingId: string;
|
|
1257
|
+
title: string;
|
|
1258
|
+
description?: string | undefined;
|
|
1259
|
+
}[] | undefined;
|
|
1260
|
+
components?: {
|
|
1261
|
+
title: string;
|
|
1262
|
+
id: string;
|
|
1263
|
+
elementId: string;
|
|
1264
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
1265
|
+
sources: {
|
|
1266
|
+
bindingId: string;
|
|
1267
|
+
fieldIds?: string[] | undefined;
|
|
1268
|
+
}[];
|
|
1269
|
+
}[] | undefined;
|
|
959
1270
|
presentation?: {
|
|
960
1271
|
type: "html";
|
|
961
1272
|
html: string;
|
|
@@ -1018,6 +1329,10 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
1018
1329
|
canDelete?: boolean | undefined;
|
|
1019
1330
|
}>, "many">>;
|
|
1020
1331
|
}, "strip", z.ZodTypeAny, {
|
|
1332
|
+
sources: {
|
|
1333
|
+
name: string;
|
|
1334
|
+
source: import("@xpert-ai/contracts").AnalyticsSourceRef;
|
|
1335
|
+
}[];
|
|
1021
1336
|
dashboards: {
|
|
1022
1337
|
artifactId: string;
|
|
1023
1338
|
title?: string | null | undefined;
|
|
@@ -1029,16 +1344,12 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
1029
1344
|
updatedAt?: string | undefined;
|
|
1030
1345
|
canDelete?: boolean | undefined;
|
|
1031
1346
|
}[];
|
|
1032
|
-
sources: {
|
|
1033
|
-
name: string;
|
|
1034
|
-
source: import("@xpert-ai/contracts").AnalyticsSourceRef;
|
|
1035
|
-
}[];
|
|
1036
1347
|
mode?: "draft" | "published" | undefined;
|
|
1037
1348
|
saved?: {
|
|
1038
1349
|
manifest: {
|
|
1039
|
-
schema: "xpert.live-dashboard";
|
|
1040
|
-
id: string;
|
|
1041
1350
|
title: string;
|
|
1351
|
+
id: string;
|
|
1352
|
+
schema: "xpert.live-dashboard";
|
|
1042
1353
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
1043
1354
|
controls: {
|
|
1044
1355
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -1048,20 +1359,35 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
1048
1359
|
allowedValues?: (string | number | boolean | null)[] | undefined;
|
|
1049
1360
|
}[];
|
|
1050
1361
|
charts: {
|
|
1362
|
+
title: string;
|
|
1051
1363
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
1052
1364
|
id: string;
|
|
1053
|
-
title: string;
|
|
1054
1365
|
datasetId: string;
|
|
1055
1366
|
x: string;
|
|
1056
1367
|
y: string;
|
|
1057
1368
|
color?: string | undefined;
|
|
1058
1369
|
}[];
|
|
1059
1370
|
tables: {
|
|
1060
|
-
id: string;
|
|
1061
1371
|
title: string;
|
|
1372
|
+
id: string;
|
|
1062
1373
|
datasetId: string;
|
|
1063
1374
|
fields: string[];
|
|
1064
1375
|
}[];
|
|
1376
|
+
sourceMetadata?: {
|
|
1377
|
+
bindingId: string;
|
|
1378
|
+
title: string;
|
|
1379
|
+
description?: string | undefined;
|
|
1380
|
+
}[] | undefined;
|
|
1381
|
+
components?: {
|
|
1382
|
+
title: string;
|
|
1383
|
+
id: string;
|
|
1384
|
+
elementId: string;
|
|
1385
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
1386
|
+
sources: {
|
|
1387
|
+
bindingId: string;
|
|
1388
|
+
fieldIds?: string[] | undefined;
|
|
1389
|
+
}[];
|
|
1390
|
+
}[] | undefined;
|
|
1065
1391
|
presentation?: {
|
|
1066
1392
|
type: "html";
|
|
1067
1393
|
html: string;
|
|
@@ -1100,6 +1426,17 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
1100
1426
|
target: "workbench.view";
|
|
1101
1427
|
viewKey: "live-dashboard__live-dashboard";
|
|
1102
1428
|
} | undefined;
|
|
1429
|
+
selectedDashboard?: {
|
|
1430
|
+
artifactId: string;
|
|
1431
|
+
title?: string | null | undefined;
|
|
1432
|
+
versionId?: string | null | undefined;
|
|
1433
|
+
draftRevision?: number | undefined;
|
|
1434
|
+
versionNumber?: number | undefined;
|
|
1435
|
+
baseVersionId?: string | null | undefined;
|
|
1436
|
+
isDraft?: boolean | undefined;
|
|
1437
|
+
updatedAt?: string | undefined;
|
|
1438
|
+
canDelete?: boolean | undefined;
|
|
1439
|
+
} | undefined;
|
|
1103
1440
|
versions?: {
|
|
1104
1441
|
artifactId: string;
|
|
1105
1442
|
title?: string | null | undefined;
|
|
@@ -1112,6 +1449,10 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
1112
1449
|
canDelete?: boolean | undefined;
|
|
1113
1450
|
}[] | undefined;
|
|
1114
1451
|
}, {
|
|
1452
|
+
sources: {
|
|
1453
|
+
name: string;
|
|
1454
|
+
source: import("@xpert-ai/contracts").AnalyticsSourceRef;
|
|
1455
|
+
}[];
|
|
1115
1456
|
dashboards: {
|
|
1116
1457
|
artifactId: string;
|
|
1117
1458
|
title?: string | null | undefined;
|
|
@@ -1123,16 +1464,12 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
1123
1464
|
updatedAt?: string | undefined;
|
|
1124
1465
|
canDelete?: boolean | undefined;
|
|
1125
1466
|
}[];
|
|
1126
|
-
sources: {
|
|
1127
|
-
name: string;
|
|
1128
|
-
source: import("@xpert-ai/contracts").AnalyticsSourceRef;
|
|
1129
|
-
}[];
|
|
1130
1467
|
mode?: "draft" | "published" | undefined;
|
|
1131
1468
|
saved?: {
|
|
1132
1469
|
manifest: {
|
|
1133
|
-
schema: "xpert.live-dashboard";
|
|
1134
|
-
id: string;
|
|
1135
1470
|
title: string;
|
|
1471
|
+
id: string;
|
|
1472
|
+
schema: "xpert.live-dashboard";
|
|
1136
1473
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
1137
1474
|
controls: {
|
|
1138
1475
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -1142,20 +1479,35 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
1142
1479
|
allowedValues?: (string | number | boolean | null)[] | undefined;
|
|
1143
1480
|
}[];
|
|
1144
1481
|
charts: {
|
|
1482
|
+
title: string;
|
|
1145
1483
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
1146
1484
|
id: string;
|
|
1147
|
-
title: string;
|
|
1148
1485
|
datasetId: string;
|
|
1149
1486
|
x: string;
|
|
1150
1487
|
y: string;
|
|
1151
1488
|
color?: string | undefined;
|
|
1152
1489
|
}[];
|
|
1153
1490
|
tables: {
|
|
1154
|
-
id: string;
|
|
1155
1491
|
title: string;
|
|
1492
|
+
id: string;
|
|
1156
1493
|
datasetId: string;
|
|
1157
1494
|
fields: string[];
|
|
1158
1495
|
}[];
|
|
1496
|
+
sourceMetadata?: {
|
|
1497
|
+
bindingId: string;
|
|
1498
|
+
title: string;
|
|
1499
|
+
description?: string | undefined;
|
|
1500
|
+
}[] | undefined;
|
|
1501
|
+
components?: {
|
|
1502
|
+
title: string;
|
|
1503
|
+
id: string;
|
|
1504
|
+
elementId: string;
|
|
1505
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
1506
|
+
sources: {
|
|
1507
|
+
bindingId: string;
|
|
1508
|
+
fieldIds?: string[] | undefined;
|
|
1509
|
+
}[];
|
|
1510
|
+
}[] | undefined;
|
|
1159
1511
|
presentation?: {
|
|
1160
1512
|
type: "html";
|
|
1161
1513
|
html: string;
|
|
@@ -1207,6 +1559,17 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
1207
1559
|
target: "workbench.view";
|
|
1208
1560
|
viewKey: "live-dashboard__live-dashboard";
|
|
1209
1561
|
} | undefined;
|
|
1562
|
+
selectedDashboard?: {
|
|
1563
|
+
artifactId: string;
|
|
1564
|
+
title?: string | null | undefined;
|
|
1565
|
+
versionId?: string | null | undefined;
|
|
1566
|
+
draftRevision?: number | undefined;
|
|
1567
|
+
versionNumber?: number | undefined;
|
|
1568
|
+
baseVersionId?: string | null | undefined;
|
|
1569
|
+
isDraft?: boolean | undefined;
|
|
1570
|
+
updatedAt?: string | undefined;
|
|
1571
|
+
canDelete?: boolean | undefined;
|
|
1572
|
+
} | undefined;
|
|
1210
1573
|
versions?: {
|
|
1211
1574
|
artifactId: string;
|
|
1212
1575
|
title?: string | null | undefined;
|
|
@@ -1221,6 +1584,10 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
1221
1584
|
}>;
|
|
1222
1585
|
}, "strip", z.ZodTypeAny, {
|
|
1223
1586
|
meta: {
|
|
1587
|
+
sources: {
|
|
1588
|
+
name: string;
|
|
1589
|
+
source: import("@xpert-ai/contracts").AnalyticsSourceRef;
|
|
1590
|
+
}[];
|
|
1224
1591
|
dashboards: {
|
|
1225
1592
|
artifactId: string;
|
|
1226
1593
|
title?: string | null | undefined;
|
|
@@ -1232,16 +1599,12 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
1232
1599
|
updatedAt?: string | undefined;
|
|
1233
1600
|
canDelete?: boolean | undefined;
|
|
1234
1601
|
}[];
|
|
1235
|
-
sources: {
|
|
1236
|
-
name: string;
|
|
1237
|
-
source: import("@xpert-ai/contracts").AnalyticsSourceRef;
|
|
1238
|
-
}[];
|
|
1239
1602
|
mode?: "draft" | "published" | undefined;
|
|
1240
1603
|
saved?: {
|
|
1241
1604
|
manifest: {
|
|
1242
|
-
schema: "xpert.live-dashboard";
|
|
1243
|
-
id: string;
|
|
1244
1605
|
title: string;
|
|
1606
|
+
id: string;
|
|
1607
|
+
schema: "xpert.live-dashboard";
|
|
1245
1608
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
1246
1609
|
controls: {
|
|
1247
1610
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -1251,20 +1614,35 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
1251
1614
|
allowedValues?: (string | number | boolean | null)[] | undefined;
|
|
1252
1615
|
}[];
|
|
1253
1616
|
charts: {
|
|
1617
|
+
title: string;
|
|
1254
1618
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
1255
1619
|
id: string;
|
|
1256
|
-
title: string;
|
|
1257
1620
|
datasetId: string;
|
|
1258
1621
|
x: string;
|
|
1259
1622
|
y: string;
|
|
1260
1623
|
color?: string | undefined;
|
|
1261
1624
|
}[];
|
|
1262
1625
|
tables: {
|
|
1263
|
-
id: string;
|
|
1264
1626
|
title: string;
|
|
1627
|
+
id: string;
|
|
1265
1628
|
datasetId: string;
|
|
1266
1629
|
fields: string[];
|
|
1267
1630
|
}[];
|
|
1631
|
+
sourceMetadata?: {
|
|
1632
|
+
bindingId: string;
|
|
1633
|
+
title: string;
|
|
1634
|
+
description?: string | undefined;
|
|
1635
|
+
}[] | undefined;
|
|
1636
|
+
components?: {
|
|
1637
|
+
title: string;
|
|
1638
|
+
id: string;
|
|
1639
|
+
elementId: string;
|
|
1640
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
1641
|
+
sources: {
|
|
1642
|
+
bindingId: string;
|
|
1643
|
+
fieldIds?: string[] | undefined;
|
|
1644
|
+
}[];
|
|
1645
|
+
}[] | undefined;
|
|
1268
1646
|
presentation?: {
|
|
1269
1647
|
type: "html";
|
|
1270
1648
|
html: string;
|
|
@@ -1303,6 +1681,17 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
1303
1681
|
target: "workbench.view";
|
|
1304
1682
|
viewKey: "live-dashboard__live-dashboard";
|
|
1305
1683
|
} | undefined;
|
|
1684
|
+
selectedDashboard?: {
|
|
1685
|
+
artifactId: string;
|
|
1686
|
+
title?: string | null | undefined;
|
|
1687
|
+
versionId?: string | null | undefined;
|
|
1688
|
+
draftRevision?: number | undefined;
|
|
1689
|
+
versionNumber?: number | undefined;
|
|
1690
|
+
baseVersionId?: string | null | undefined;
|
|
1691
|
+
isDraft?: boolean | undefined;
|
|
1692
|
+
updatedAt?: string | undefined;
|
|
1693
|
+
canDelete?: boolean | undefined;
|
|
1694
|
+
} | undefined;
|
|
1306
1695
|
versions?: {
|
|
1307
1696
|
artifactId: string;
|
|
1308
1697
|
title?: string | null | undefined;
|
|
@@ -1317,6 +1706,10 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
1317
1706
|
};
|
|
1318
1707
|
}, {
|
|
1319
1708
|
meta: {
|
|
1709
|
+
sources: {
|
|
1710
|
+
name: string;
|
|
1711
|
+
source: import("@xpert-ai/contracts").AnalyticsSourceRef;
|
|
1712
|
+
}[];
|
|
1320
1713
|
dashboards: {
|
|
1321
1714
|
artifactId: string;
|
|
1322
1715
|
title?: string | null | undefined;
|
|
@@ -1328,16 +1721,12 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
1328
1721
|
updatedAt?: string | undefined;
|
|
1329
1722
|
canDelete?: boolean | undefined;
|
|
1330
1723
|
}[];
|
|
1331
|
-
sources: {
|
|
1332
|
-
name: string;
|
|
1333
|
-
source: import("@xpert-ai/contracts").AnalyticsSourceRef;
|
|
1334
|
-
}[];
|
|
1335
1724
|
mode?: "draft" | "published" | undefined;
|
|
1336
1725
|
saved?: {
|
|
1337
1726
|
manifest: {
|
|
1338
|
-
schema: "xpert.live-dashboard";
|
|
1339
|
-
id: string;
|
|
1340
1727
|
title: string;
|
|
1728
|
+
id: string;
|
|
1729
|
+
schema: "xpert.live-dashboard";
|
|
1341
1730
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
1342
1731
|
controls: {
|
|
1343
1732
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -1347,20 +1736,35 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
1347
1736
|
allowedValues?: (string | number | boolean | null)[] | undefined;
|
|
1348
1737
|
}[];
|
|
1349
1738
|
charts: {
|
|
1739
|
+
title: string;
|
|
1350
1740
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
1351
1741
|
id: string;
|
|
1352
|
-
title: string;
|
|
1353
1742
|
datasetId: string;
|
|
1354
1743
|
x: string;
|
|
1355
1744
|
y: string;
|
|
1356
1745
|
color?: string | undefined;
|
|
1357
1746
|
}[];
|
|
1358
1747
|
tables: {
|
|
1359
|
-
id: string;
|
|
1360
1748
|
title: string;
|
|
1749
|
+
id: string;
|
|
1361
1750
|
datasetId: string;
|
|
1362
1751
|
fields: string[];
|
|
1363
1752
|
}[];
|
|
1753
|
+
sourceMetadata?: {
|
|
1754
|
+
bindingId: string;
|
|
1755
|
+
title: string;
|
|
1756
|
+
description?: string | undefined;
|
|
1757
|
+
}[] | undefined;
|
|
1758
|
+
components?: {
|
|
1759
|
+
title: string;
|
|
1760
|
+
id: string;
|
|
1761
|
+
elementId: string;
|
|
1762
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
1763
|
+
sources: {
|
|
1764
|
+
bindingId: string;
|
|
1765
|
+
fieldIds?: string[] | undefined;
|
|
1766
|
+
}[];
|
|
1767
|
+
}[] | undefined;
|
|
1364
1768
|
presentation?: {
|
|
1365
1769
|
type: "html";
|
|
1366
1770
|
html: string;
|
|
@@ -1412,6 +1816,17 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
|
|
|
1412
1816
|
target: "workbench.view";
|
|
1413
1817
|
viewKey: "live-dashboard__live-dashboard";
|
|
1414
1818
|
} | undefined;
|
|
1819
|
+
selectedDashboard?: {
|
|
1820
|
+
artifactId: string;
|
|
1821
|
+
title?: string | null | undefined;
|
|
1822
|
+
versionId?: string | null | undefined;
|
|
1823
|
+
draftRevision?: number | undefined;
|
|
1824
|
+
versionNumber?: number | undefined;
|
|
1825
|
+
baseVersionId?: string | null | undefined;
|
|
1826
|
+
isDraft?: boolean | undefined;
|
|
1827
|
+
updatedAt?: string | undefined;
|
|
1828
|
+
canDelete?: boolean | undefined;
|
|
1829
|
+
} | undefined;
|
|
1415
1830
|
versions?: {
|
|
1416
1831
|
artifactId: string;
|
|
1417
1832
|
title?: string | null | undefined;
|