@xpert-ai/plugin-live-dashboard 0.4.1 → 0.6.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 +8 -2
- package/dist/index.js +3 -1
- package/dist/lib/agent.schema.d.ts +177 -23
- package/dist/lib/agent.schema.js +11 -9
- package/dist/lib/archive.service.d.ts +169 -0
- package/dist/lib/archive.service.js +147 -0
- package/dist/lib/bounded-map.d.ts +2 -0
- package/dist/lib/bounded-map.js +25 -0
- package/dist/lib/capacity.d.ts +14 -0
- package/dist/lib/capacity.js +16 -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-queries.d.ts +1 -1
- package/dist/lib/dashboard-queries.js +11 -6
- package/dist/lib/dashboard-receipt.js +1 -1
- package/dist/lib/dashboard-sources.d.ts +69 -0
- package/dist/lib/dashboard-sources.js +38 -0
- package/dist/lib/dashboard-view.schema.d.ts +422 -88
- package/dist/lib/dashboard.schema.d.ts +379 -58
- package/dist/lib/dashboard.schema.js +20 -2
- package/dist/lib/dashboard.service.d.ts +80 -15
- package/dist/lib/dashboard.service.js +65 -9
- package/dist/lib/definition-tools.d.ts +4 -4
- package/dist/lib/document-host.js +1 -1
- package/dist/lib/document-package.d.ts +19 -4
- package/dist/lib/editing-patch.d.ts +3 -0
- package/dist/lib/editing-patch.js +4 -2
- package/dist/lib/editing-session.d.ts +4 -4
- package/dist/lib/editing.d.ts +204 -20
- package/dist/lib/editing.js +10 -3
- package/dist/lib/filter-evidence.d.ts +28 -0
- package/dist/lib/filter-evidence.js +3 -2
- package/dist/lib/html-guidance.d.ts +1 -0
- package/dist/lib/html-guidance.js +2 -1
- 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 +3 -2
- 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.d.ts +3 -1
- package/dist/lib/middleware.js +92 -13
- package/dist/lib/plugin.js +3 -1
- package/dist/lib/presentation.provider.d.ts +24 -9
- package/dist/lib/presentation.provider.js +2 -1
- package/dist/lib/preview-retry.d.ts +4 -3
- package/dist/lib/preview-retry.js +13 -7
- package/dist/lib/prompt-workflows.js +1 -1
- package/dist/lib/query-session.d.ts +9 -0
- package/dist/lib/query-session.js +64 -0
- package/dist/lib/save-requests.d.ts +118 -0
- package/dist/lib/save-requests.js +199 -0
- package/dist/lib/source-executions.d.ts +437 -0
- package/dist/lib/source-executions.js +49 -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 +213 -8
- package/dist/lib/view.provider.js +47 -5
- package/dist/remote/app.css +1 -1
- package/dist/remote/app.js +185 -63
- package/dist/remote/build-manifest.json +52 -33
- package/dist/sandbox-actions/action.json +1 -1
- package/dist/sandbox-actions/bundle/host.js +63 -14
- package/dist/sandbox-actions/bundle/validate.mjs +2 -2
- package/dist/validation/host-entry.d.ts +5 -1
- package/dist/validation/host-entry.js +21 -4
- package/docs/docs.json +5 -1
- package/docs/large-dashboards-acceptance.mdx +74 -0
- package/docs/large-dashboards.mdx +80 -0
- package/docs/sources-inspect-portability-acceptance.mdx +67 -0
- package/docs/sources-inspect-portability.mdx +115 -0
- package/package.json +8 -7
- package/skills/live-dashboard/SKILL.md +5 -4
- package/skills/live-dashboard/references/source-inspection.md +17 -0
|
@@ -4,6 +4,53 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
title: z.ZodString;
|
|
6
6
|
bindings: z.ZodArray<z.ZodType<import("@xpert-ai/contracts").AnalyticsBinding, z.ZodTypeDef, import("@xpert-ai/contracts").AnalyticsBinding>, "many">;
|
|
7
|
+
sourceMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8
|
+
bindingId: z.ZodString;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, "strict", z.ZodTypeAny, {
|
|
12
|
+
bindingId: string;
|
|
13
|
+
title: string;
|
|
14
|
+
description?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
bindingId: string;
|
|
17
|
+
title: string;
|
|
18
|
+
description?: string | undefined;
|
|
19
|
+
}>, "many">>;
|
|
20
|
+
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
elementId: z.ZodString;
|
|
23
|
+
title: z.ZodString;
|
|
24
|
+
kind: z.ZodEnum<["metric", "chart", "table", "filter", "text"]>;
|
|
25
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
26
|
+
bindingId: z.ZodString;
|
|
27
|
+
fieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
+
}, "strict", z.ZodTypeAny, {
|
|
29
|
+
bindingId: string;
|
|
30
|
+
fieldIds?: string[] | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
bindingId: string;
|
|
33
|
+
fieldIds?: string[] | undefined;
|
|
34
|
+
}>, "many">;
|
|
35
|
+
}, "strict", z.ZodTypeAny, {
|
|
36
|
+
title: string;
|
|
37
|
+
id: string;
|
|
38
|
+
elementId: string;
|
|
39
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
40
|
+
sources: {
|
|
41
|
+
bindingId: string;
|
|
42
|
+
fieldIds?: string[] | undefined;
|
|
43
|
+
}[];
|
|
44
|
+
}, {
|
|
45
|
+
title: string;
|
|
46
|
+
id: string;
|
|
47
|
+
elementId: string;
|
|
48
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
49
|
+
sources: {
|
|
50
|
+
bindingId: string;
|
|
51
|
+
fieldIds?: string[] | undefined;
|
|
52
|
+
}[];
|
|
53
|
+
}>, "many">>;
|
|
7
54
|
presentation: z.ZodOptional<z.ZodObject<{
|
|
8
55
|
type: z.ZodLiteral<"html">;
|
|
9
56
|
html: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -82,16 +129,16 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
|
|
|
82
129
|
color: z.ZodOptional<z.ZodString>;
|
|
83
130
|
}, "strict", z.ZodTypeAny, {
|
|
84
131
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
85
|
-
id: string;
|
|
86
132
|
title: string;
|
|
133
|
+
id: string;
|
|
87
134
|
datasetId: string;
|
|
88
135
|
x: string;
|
|
89
136
|
y: string;
|
|
90
137
|
color?: string | undefined;
|
|
91
138
|
}, {
|
|
92
139
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
93
|
-
id: string;
|
|
94
140
|
title: string;
|
|
141
|
+
id: string;
|
|
95
142
|
datasetId: string;
|
|
96
143
|
x: string;
|
|
97
144
|
y: string;
|
|
@@ -103,20 +150,20 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
|
|
|
103
150
|
datasetId: z.ZodString;
|
|
104
151
|
fields: z.ZodArray<z.ZodString, "many">;
|
|
105
152
|
}, "strict", z.ZodTypeAny, {
|
|
106
|
-
id: string;
|
|
107
153
|
title: string;
|
|
154
|
+
id: string;
|
|
108
155
|
datasetId: string;
|
|
109
156
|
fields: string[];
|
|
110
157
|
}, {
|
|
111
|
-
id: string;
|
|
112
158
|
title: string;
|
|
159
|
+
id: string;
|
|
113
160
|
datasetId: string;
|
|
114
161
|
fields: string[];
|
|
115
162
|
}>, "many">;
|
|
116
163
|
}, "strict", z.ZodTypeAny, {
|
|
117
|
-
schema: "xpert.live-dashboard";
|
|
118
|
-
id: string;
|
|
119
164
|
title: string;
|
|
165
|
+
id: string;
|
|
166
|
+
schema: "xpert.live-dashboard";
|
|
120
167
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
121
168
|
controls: {
|
|
122
169
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -127,28 +174,43 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
|
|
|
127
174
|
}[];
|
|
128
175
|
charts: {
|
|
129
176
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
130
|
-
id: string;
|
|
131
177
|
title: string;
|
|
178
|
+
id: string;
|
|
132
179
|
datasetId: string;
|
|
133
180
|
x: string;
|
|
134
181
|
y: string;
|
|
135
182
|
color?: string | undefined;
|
|
136
183
|
}[];
|
|
137
184
|
tables: {
|
|
138
|
-
id: string;
|
|
139
185
|
title: string;
|
|
186
|
+
id: string;
|
|
140
187
|
datasetId: string;
|
|
141
188
|
fields: string[];
|
|
142
189
|
}[];
|
|
190
|
+
sourceMetadata?: {
|
|
191
|
+
bindingId: string;
|
|
192
|
+
title: string;
|
|
193
|
+
description?: string | undefined;
|
|
194
|
+
}[] | undefined;
|
|
195
|
+
components?: {
|
|
196
|
+
title: string;
|
|
197
|
+
id: string;
|
|
198
|
+
elementId: string;
|
|
199
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
200
|
+
sources: {
|
|
201
|
+
bindingId: string;
|
|
202
|
+
fieldIds?: string[] | undefined;
|
|
203
|
+
}[];
|
|
204
|
+
}[] | undefined;
|
|
143
205
|
presentation?: {
|
|
144
206
|
type: "html";
|
|
145
207
|
html: string;
|
|
146
208
|
dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
|
|
147
209
|
} | undefined;
|
|
148
210
|
}, {
|
|
149
|
-
schema: "xpert.live-dashboard";
|
|
150
|
-
id: string;
|
|
151
211
|
title: string;
|
|
212
|
+
id: string;
|
|
213
|
+
schema: "xpert.live-dashboard";
|
|
152
214
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
153
215
|
controls: {
|
|
154
216
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -159,19 +221,34 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
|
|
|
159
221
|
}[];
|
|
160
222
|
charts: {
|
|
161
223
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
162
|
-
id: string;
|
|
163
224
|
title: string;
|
|
225
|
+
id: string;
|
|
164
226
|
datasetId: string;
|
|
165
227
|
x: string;
|
|
166
228
|
y: string;
|
|
167
229
|
color?: string | undefined;
|
|
168
230
|
}[];
|
|
169
231
|
tables: {
|
|
170
|
-
id: string;
|
|
171
232
|
title: string;
|
|
233
|
+
id: string;
|
|
172
234
|
datasetId: string;
|
|
173
235
|
fields: string[];
|
|
174
236
|
}[];
|
|
237
|
+
sourceMetadata?: {
|
|
238
|
+
bindingId: string;
|
|
239
|
+
title: string;
|
|
240
|
+
description?: string | undefined;
|
|
241
|
+
}[] | undefined;
|
|
242
|
+
components?: {
|
|
243
|
+
title: string;
|
|
244
|
+
id: string;
|
|
245
|
+
elementId: string;
|
|
246
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
247
|
+
sources: {
|
|
248
|
+
bindingId: string;
|
|
249
|
+
fieldIds?: string[] | undefined;
|
|
250
|
+
}[];
|
|
251
|
+
}[] | undefined;
|
|
175
252
|
presentation?: {
|
|
176
253
|
type: "html";
|
|
177
254
|
html: string;
|
|
@@ -184,9 +261,9 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
|
|
|
184
261
|
}[] | undefined;
|
|
185
262
|
} | undefined;
|
|
186
263
|
}>, {
|
|
187
|
-
schema: "xpert.live-dashboard";
|
|
188
|
-
id: string;
|
|
189
264
|
title: string;
|
|
265
|
+
id: string;
|
|
266
|
+
schema: "xpert.live-dashboard";
|
|
190
267
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
191
268
|
controls: {
|
|
192
269
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -197,28 +274,43 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
|
|
|
197
274
|
}[];
|
|
198
275
|
charts: {
|
|
199
276
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
200
|
-
id: string;
|
|
201
277
|
title: string;
|
|
278
|
+
id: string;
|
|
202
279
|
datasetId: string;
|
|
203
280
|
x: string;
|
|
204
281
|
y: string;
|
|
205
282
|
color?: string | undefined;
|
|
206
283
|
}[];
|
|
207
284
|
tables: {
|
|
208
|
-
id: string;
|
|
209
285
|
title: string;
|
|
286
|
+
id: string;
|
|
210
287
|
datasetId: string;
|
|
211
288
|
fields: string[];
|
|
212
289
|
}[];
|
|
290
|
+
sourceMetadata?: {
|
|
291
|
+
bindingId: string;
|
|
292
|
+
title: string;
|
|
293
|
+
description?: string | undefined;
|
|
294
|
+
}[] | undefined;
|
|
295
|
+
components?: {
|
|
296
|
+
title: string;
|
|
297
|
+
id: string;
|
|
298
|
+
elementId: string;
|
|
299
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
300
|
+
sources: {
|
|
301
|
+
bindingId: string;
|
|
302
|
+
fieldIds?: string[] | undefined;
|
|
303
|
+
}[];
|
|
304
|
+
}[] | undefined;
|
|
213
305
|
presentation?: {
|
|
214
306
|
type: "html";
|
|
215
307
|
html: string;
|
|
216
308
|
dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
|
|
217
309
|
} | undefined;
|
|
218
310
|
}, {
|
|
219
|
-
schema: "xpert.live-dashboard";
|
|
220
|
-
id: string;
|
|
221
311
|
title: string;
|
|
312
|
+
id: string;
|
|
313
|
+
schema: "xpert.live-dashboard";
|
|
222
314
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
223
315
|
controls: {
|
|
224
316
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -229,19 +321,34 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
|
|
|
229
321
|
}[];
|
|
230
322
|
charts: {
|
|
231
323
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
232
|
-
id: string;
|
|
233
324
|
title: string;
|
|
325
|
+
id: string;
|
|
234
326
|
datasetId: string;
|
|
235
327
|
x: string;
|
|
236
328
|
y: string;
|
|
237
329
|
color?: string | undefined;
|
|
238
330
|
}[];
|
|
239
331
|
tables: {
|
|
240
|
-
id: string;
|
|
241
332
|
title: string;
|
|
333
|
+
id: string;
|
|
242
334
|
datasetId: string;
|
|
243
335
|
fields: string[];
|
|
244
336
|
}[];
|
|
337
|
+
sourceMetadata?: {
|
|
338
|
+
bindingId: string;
|
|
339
|
+
title: string;
|
|
340
|
+
description?: string | undefined;
|
|
341
|
+
}[] | undefined;
|
|
342
|
+
components?: {
|
|
343
|
+
title: string;
|
|
344
|
+
id: string;
|
|
345
|
+
elementId: string;
|
|
346
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
347
|
+
sources: {
|
|
348
|
+
bindingId: string;
|
|
349
|
+
fieldIds?: string[] | undefined;
|
|
350
|
+
}[];
|
|
351
|
+
}[] | undefined;
|
|
245
352
|
presentation?: {
|
|
246
353
|
type: "html";
|
|
247
354
|
html: string;
|
|
@@ -262,6 +369,53 @@ export type DashboardManifest = z.output<typeof dashboardSchema>;
|
|
|
262
369
|
export declare const dashboardChangesSchema: z.ZodObject<{
|
|
263
370
|
title: z.ZodOptional<z.ZodString>;
|
|
264
371
|
bindings: z.ZodOptional<z.ZodArray<z.ZodType<import("@xpert-ai/contracts").AnalyticsBinding, z.ZodTypeDef, import("@xpert-ai/contracts").AnalyticsBinding>, "many">>;
|
|
372
|
+
sourceMetadata: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
373
|
+
bindingId: z.ZodString;
|
|
374
|
+
title: z.ZodString;
|
|
375
|
+
description: z.ZodOptional<z.ZodString>;
|
|
376
|
+
}, "strict", z.ZodTypeAny, {
|
|
377
|
+
bindingId: string;
|
|
378
|
+
title: string;
|
|
379
|
+
description?: string | undefined;
|
|
380
|
+
}, {
|
|
381
|
+
bindingId: string;
|
|
382
|
+
title: string;
|
|
383
|
+
description?: string | undefined;
|
|
384
|
+
}>, "many">>>;
|
|
385
|
+
components: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
386
|
+
id: z.ZodString;
|
|
387
|
+
elementId: z.ZodString;
|
|
388
|
+
title: z.ZodString;
|
|
389
|
+
kind: z.ZodEnum<["metric", "chart", "table", "filter", "text"]>;
|
|
390
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
391
|
+
bindingId: z.ZodString;
|
|
392
|
+
fieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
393
|
+
}, "strict", z.ZodTypeAny, {
|
|
394
|
+
bindingId: string;
|
|
395
|
+
fieldIds?: string[] | undefined;
|
|
396
|
+
}, {
|
|
397
|
+
bindingId: string;
|
|
398
|
+
fieldIds?: string[] | undefined;
|
|
399
|
+
}>, "many">;
|
|
400
|
+
}, "strict", z.ZodTypeAny, {
|
|
401
|
+
title: string;
|
|
402
|
+
id: string;
|
|
403
|
+
elementId: string;
|
|
404
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
405
|
+
sources: {
|
|
406
|
+
bindingId: string;
|
|
407
|
+
fieldIds?: string[] | undefined;
|
|
408
|
+
}[];
|
|
409
|
+
}, {
|
|
410
|
+
title: string;
|
|
411
|
+
id: string;
|
|
412
|
+
elementId: string;
|
|
413
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
414
|
+
sources: {
|
|
415
|
+
bindingId: string;
|
|
416
|
+
fieldIds?: string[] | undefined;
|
|
417
|
+
}[];
|
|
418
|
+
}>, "many">>>;
|
|
265
419
|
presentation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
266
420
|
type: z.ZodLiteral<"html">;
|
|
267
421
|
html: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -340,16 +494,16 @@ export declare const dashboardChangesSchema: z.ZodObject<{
|
|
|
340
494
|
color: z.ZodOptional<z.ZodString>;
|
|
341
495
|
}, "strict", z.ZodTypeAny, {
|
|
342
496
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
343
|
-
id: string;
|
|
344
497
|
title: string;
|
|
498
|
+
id: string;
|
|
345
499
|
datasetId: string;
|
|
346
500
|
x: string;
|
|
347
501
|
y: string;
|
|
348
502
|
color?: string | undefined;
|
|
349
503
|
}, {
|
|
350
504
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
351
|
-
id: string;
|
|
352
505
|
title: string;
|
|
506
|
+
id: string;
|
|
353
507
|
datasetId: string;
|
|
354
508
|
x: string;
|
|
355
509
|
y: string;
|
|
@@ -361,19 +515,34 @@ export declare const dashboardChangesSchema: z.ZodObject<{
|
|
|
361
515
|
datasetId: z.ZodString;
|
|
362
516
|
fields: z.ZodArray<z.ZodString, "many">;
|
|
363
517
|
}, "strict", z.ZodTypeAny, {
|
|
364
|
-
id: string;
|
|
365
518
|
title: string;
|
|
519
|
+
id: string;
|
|
366
520
|
datasetId: string;
|
|
367
521
|
fields: string[];
|
|
368
522
|
}, {
|
|
369
|
-
id: string;
|
|
370
523
|
title: string;
|
|
524
|
+
id: string;
|
|
371
525
|
datasetId: string;
|
|
372
526
|
fields: string[];
|
|
373
527
|
}>, "many">>;
|
|
374
528
|
}, "strict", z.ZodTypeAny, {
|
|
375
529
|
title?: string | undefined;
|
|
376
530
|
bindings?: import("@xpert-ai/contracts").AnalyticsBinding[] | undefined;
|
|
531
|
+
sourceMetadata?: {
|
|
532
|
+
bindingId: string;
|
|
533
|
+
title: string;
|
|
534
|
+
description?: string | undefined;
|
|
535
|
+
}[] | undefined;
|
|
536
|
+
components?: {
|
|
537
|
+
title: string;
|
|
538
|
+
id: string;
|
|
539
|
+
elementId: string;
|
|
540
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
541
|
+
sources: {
|
|
542
|
+
bindingId: string;
|
|
543
|
+
fieldIds?: string[] | undefined;
|
|
544
|
+
}[];
|
|
545
|
+
}[] | undefined;
|
|
377
546
|
presentation?: {
|
|
378
547
|
type: "html";
|
|
379
548
|
html: string;
|
|
@@ -388,22 +557,37 @@ export declare const dashboardChangesSchema: z.ZodObject<{
|
|
|
388
557
|
}[] | undefined;
|
|
389
558
|
charts?: {
|
|
390
559
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
391
|
-
id: string;
|
|
392
560
|
title: string;
|
|
561
|
+
id: string;
|
|
393
562
|
datasetId: string;
|
|
394
563
|
x: string;
|
|
395
564
|
y: string;
|
|
396
565
|
color?: string | undefined;
|
|
397
566
|
}[] | undefined;
|
|
398
567
|
tables?: {
|
|
399
|
-
id: string;
|
|
400
568
|
title: string;
|
|
569
|
+
id: string;
|
|
401
570
|
datasetId: string;
|
|
402
571
|
fields: string[];
|
|
403
572
|
}[] | undefined;
|
|
404
573
|
}, {
|
|
405
574
|
title?: string | undefined;
|
|
406
575
|
bindings?: import("@xpert-ai/contracts").AnalyticsBinding[] | undefined;
|
|
576
|
+
sourceMetadata?: {
|
|
577
|
+
bindingId: string;
|
|
578
|
+
title: string;
|
|
579
|
+
description?: string | undefined;
|
|
580
|
+
}[] | undefined;
|
|
581
|
+
components?: {
|
|
582
|
+
title: string;
|
|
583
|
+
id: string;
|
|
584
|
+
elementId: string;
|
|
585
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
586
|
+
sources: {
|
|
587
|
+
bindingId: string;
|
|
588
|
+
fieldIds?: string[] | undefined;
|
|
589
|
+
}[];
|
|
590
|
+
}[] | undefined;
|
|
407
591
|
presentation?: {
|
|
408
592
|
type: "html";
|
|
409
593
|
html: string;
|
|
@@ -424,16 +608,16 @@ export declare const dashboardChangesSchema: z.ZodObject<{
|
|
|
424
608
|
}[] | undefined;
|
|
425
609
|
charts?: {
|
|
426
610
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
427
|
-
id: string;
|
|
428
611
|
title: string;
|
|
612
|
+
id: string;
|
|
429
613
|
datasetId: string;
|
|
430
614
|
x: string;
|
|
431
615
|
y: string;
|
|
432
616
|
color?: string | undefined;
|
|
433
617
|
}[] | undefined;
|
|
434
618
|
tables?: {
|
|
435
|
-
id: string;
|
|
436
619
|
title: string;
|
|
620
|
+
id: string;
|
|
437
621
|
datasetId: string;
|
|
438
622
|
fields: string[];
|
|
439
623
|
}[] | undefined;
|
|
@@ -446,6 +630,53 @@ export declare const saveSchema: z.ZodObject<{
|
|
|
446
630
|
id: z.ZodString;
|
|
447
631
|
title: z.ZodString;
|
|
448
632
|
bindings: z.ZodArray<z.ZodType<import("@xpert-ai/contracts").AnalyticsBinding, z.ZodTypeDef, import("@xpert-ai/contracts").AnalyticsBinding>, "many">;
|
|
633
|
+
sourceMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
634
|
+
bindingId: z.ZodString;
|
|
635
|
+
title: z.ZodString;
|
|
636
|
+
description: z.ZodOptional<z.ZodString>;
|
|
637
|
+
}, "strict", z.ZodTypeAny, {
|
|
638
|
+
bindingId: string;
|
|
639
|
+
title: string;
|
|
640
|
+
description?: string | undefined;
|
|
641
|
+
}, {
|
|
642
|
+
bindingId: string;
|
|
643
|
+
title: string;
|
|
644
|
+
description?: string | undefined;
|
|
645
|
+
}>, "many">>;
|
|
646
|
+
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
647
|
+
id: z.ZodString;
|
|
648
|
+
elementId: z.ZodString;
|
|
649
|
+
title: z.ZodString;
|
|
650
|
+
kind: z.ZodEnum<["metric", "chart", "table", "filter", "text"]>;
|
|
651
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
652
|
+
bindingId: z.ZodString;
|
|
653
|
+
fieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
654
|
+
}, "strict", z.ZodTypeAny, {
|
|
655
|
+
bindingId: string;
|
|
656
|
+
fieldIds?: string[] | undefined;
|
|
657
|
+
}, {
|
|
658
|
+
bindingId: string;
|
|
659
|
+
fieldIds?: string[] | undefined;
|
|
660
|
+
}>, "many">;
|
|
661
|
+
}, "strict", z.ZodTypeAny, {
|
|
662
|
+
title: string;
|
|
663
|
+
id: string;
|
|
664
|
+
elementId: string;
|
|
665
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
666
|
+
sources: {
|
|
667
|
+
bindingId: string;
|
|
668
|
+
fieldIds?: string[] | undefined;
|
|
669
|
+
}[];
|
|
670
|
+
}, {
|
|
671
|
+
title: string;
|
|
672
|
+
id: string;
|
|
673
|
+
elementId: string;
|
|
674
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
675
|
+
sources: {
|
|
676
|
+
bindingId: string;
|
|
677
|
+
fieldIds?: string[] | undefined;
|
|
678
|
+
}[];
|
|
679
|
+
}>, "many">>;
|
|
449
680
|
presentation: z.ZodOptional<z.ZodObject<{
|
|
450
681
|
type: z.ZodLiteral<"html">;
|
|
451
682
|
html: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -524,16 +755,16 @@ export declare const saveSchema: z.ZodObject<{
|
|
|
524
755
|
color: z.ZodOptional<z.ZodString>;
|
|
525
756
|
}, "strict", z.ZodTypeAny, {
|
|
526
757
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
527
|
-
id: string;
|
|
528
758
|
title: string;
|
|
759
|
+
id: string;
|
|
529
760
|
datasetId: string;
|
|
530
761
|
x: string;
|
|
531
762
|
y: string;
|
|
532
763
|
color?: string | undefined;
|
|
533
764
|
}, {
|
|
534
765
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
535
|
-
id: string;
|
|
536
766
|
title: string;
|
|
767
|
+
id: string;
|
|
537
768
|
datasetId: string;
|
|
538
769
|
x: string;
|
|
539
770
|
y: string;
|
|
@@ -545,20 +776,20 @@ export declare const saveSchema: z.ZodObject<{
|
|
|
545
776
|
datasetId: z.ZodString;
|
|
546
777
|
fields: z.ZodArray<z.ZodString, "many">;
|
|
547
778
|
}, "strict", z.ZodTypeAny, {
|
|
548
|
-
id: string;
|
|
549
779
|
title: string;
|
|
780
|
+
id: string;
|
|
550
781
|
datasetId: string;
|
|
551
782
|
fields: string[];
|
|
552
783
|
}, {
|
|
553
|
-
id: string;
|
|
554
784
|
title: string;
|
|
785
|
+
id: string;
|
|
555
786
|
datasetId: string;
|
|
556
787
|
fields: string[];
|
|
557
788
|
}>, "many">;
|
|
558
789
|
}, "strict", z.ZodTypeAny, {
|
|
559
|
-
schema: "xpert.live-dashboard";
|
|
560
|
-
id: string;
|
|
561
790
|
title: string;
|
|
791
|
+
id: string;
|
|
792
|
+
schema: "xpert.live-dashboard";
|
|
562
793
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
563
794
|
controls: {
|
|
564
795
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -569,28 +800,43 @@ export declare const saveSchema: z.ZodObject<{
|
|
|
569
800
|
}[];
|
|
570
801
|
charts: {
|
|
571
802
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
572
|
-
id: string;
|
|
573
803
|
title: string;
|
|
804
|
+
id: string;
|
|
574
805
|
datasetId: string;
|
|
575
806
|
x: string;
|
|
576
807
|
y: string;
|
|
577
808
|
color?: string | undefined;
|
|
578
809
|
}[];
|
|
579
810
|
tables: {
|
|
580
|
-
id: string;
|
|
581
811
|
title: string;
|
|
812
|
+
id: string;
|
|
582
813
|
datasetId: string;
|
|
583
814
|
fields: string[];
|
|
584
815
|
}[];
|
|
816
|
+
sourceMetadata?: {
|
|
817
|
+
bindingId: string;
|
|
818
|
+
title: string;
|
|
819
|
+
description?: string | undefined;
|
|
820
|
+
}[] | undefined;
|
|
821
|
+
components?: {
|
|
822
|
+
title: string;
|
|
823
|
+
id: string;
|
|
824
|
+
elementId: string;
|
|
825
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
826
|
+
sources: {
|
|
827
|
+
bindingId: string;
|
|
828
|
+
fieldIds?: string[] | undefined;
|
|
829
|
+
}[];
|
|
830
|
+
}[] | undefined;
|
|
585
831
|
presentation?: {
|
|
586
832
|
type: "html";
|
|
587
833
|
html: string;
|
|
588
834
|
dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
|
|
589
835
|
} | undefined;
|
|
590
836
|
}, {
|
|
591
|
-
schema: "xpert.live-dashboard";
|
|
592
|
-
id: string;
|
|
593
837
|
title: string;
|
|
838
|
+
id: string;
|
|
839
|
+
schema: "xpert.live-dashboard";
|
|
594
840
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
595
841
|
controls: {
|
|
596
842
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -601,19 +847,34 @@ export declare const saveSchema: z.ZodObject<{
|
|
|
601
847
|
}[];
|
|
602
848
|
charts: {
|
|
603
849
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
604
|
-
id: string;
|
|
605
850
|
title: string;
|
|
851
|
+
id: string;
|
|
606
852
|
datasetId: string;
|
|
607
853
|
x: string;
|
|
608
854
|
y: string;
|
|
609
855
|
color?: string | undefined;
|
|
610
856
|
}[];
|
|
611
857
|
tables: {
|
|
612
|
-
id: string;
|
|
613
858
|
title: string;
|
|
859
|
+
id: string;
|
|
614
860
|
datasetId: string;
|
|
615
861
|
fields: string[];
|
|
616
862
|
}[];
|
|
863
|
+
sourceMetadata?: {
|
|
864
|
+
bindingId: string;
|
|
865
|
+
title: string;
|
|
866
|
+
description?: string | undefined;
|
|
867
|
+
}[] | undefined;
|
|
868
|
+
components?: {
|
|
869
|
+
title: string;
|
|
870
|
+
id: string;
|
|
871
|
+
elementId: string;
|
|
872
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
873
|
+
sources: {
|
|
874
|
+
bindingId: string;
|
|
875
|
+
fieldIds?: string[] | undefined;
|
|
876
|
+
}[];
|
|
877
|
+
}[] | undefined;
|
|
617
878
|
presentation?: {
|
|
618
879
|
type: "html";
|
|
619
880
|
html: string;
|
|
@@ -626,9 +887,9 @@ export declare const saveSchema: z.ZodObject<{
|
|
|
626
887
|
}[] | undefined;
|
|
627
888
|
} | undefined;
|
|
628
889
|
}>, {
|
|
629
|
-
schema: "xpert.live-dashboard";
|
|
630
|
-
id: string;
|
|
631
890
|
title: string;
|
|
891
|
+
id: string;
|
|
892
|
+
schema: "xpert.live-dashboard";
|
|
632
893
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
633
894
|
controls: {
|
|
634
895
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -639,28 +900,43 @@ export declare const saveSchema: z.ZodObject<{
|
|
|
639
900
|
}[];
|
|
640
901
|
charts: {
|
|
641
902
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
642
|
-
id: string;
|
|
643
903
|
title: string;
|
|
904
|
+
id: string;
|
|
644
905
|
datasetId: string;
|
|
645
906
|
x: string;
|
|
646
907
|
y: string;
|
|
647
908
|
color?: string | undefined;
|
|
648
909
|
}[];
|
|
649
910
|
tables: {
|
|
650
|
-
id: string;
|
|
651
911
|
title: string;
|
|
912
|
+
id: string;
|
|
652
913
|
datasetId: string;
|
|
653
914
|
fields: string[];
|
|
654
915
|
}[];
|
|
916
|
+
sourceMetadata?: {
|
|
917
|
+
bindingId: string;
|
|
918
|
+
title: string;
|
|
919
|
+
description?: string | undefined;
|
|
920
|
+
}[] | undefined;
|
|
921
|
+
components?: {
|
|
922
|
+
title: string;
|
|
923
|
+
id: string;
|
|
924
|
+
elementId: string;
|
|
925
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
926
|
+
sources: {
|
|
927
|
+
bindingId: string;
|
|
928
|
+
fieldIds?: string[] | undefined;
|
|
929
|
+
}[];
|
|
930
|
+
}[] | undefined;
|
|
655
931
|
presentation?: {
|
|
656
932
|
type: "html";
|
|
657
933
|
html: string;
|
|
658
934
|
dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
|
|
659
935
|
} | undefined;
|
|
660
936
|
}, {
|
|
661
|
-
schema: "xpert.live-dashboard";
|
|
662
|
-
id: string;
|
|
663
937
|
title: string;
|
|
938
|
+
id: string;
|
|
939
|
+
schema: "xpert.live-dashboard";
|
|
664
940
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
665
941
|
controls: {
|
|
666
942
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -671,19 +947,34 @@ export declare const saveSchema: z.ZodObject<{
|
|
|
671
947
|
}[];
|
|
672
948
|
charts: {
|
|
673
949
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
674
|
-
id: string;
|
|
675
950
|
title: string;
|
|
951
|
+
id: string;
|
|
676
952
|
datasetId: string;
|
|
677
953
|
x: string;
|
|
678
954
|
y: string;
|
|
679
955
|
color?: string | undefined;
|
|
680
956
|
}[];
|
|
681
957
|
tables: {
|
|
682
|
-
id: string;
|
|
683
958
|
title: string;
|
|
959
|
+
id: string;
|
|
684
960
|
datasetId: string;
|
|
685
961
|
fields: string[];
|
|
686
962
|
}[];
|
|
963
|
+
sourceMetadata?: {
|
|
964
|
+
bindingId: string;
|
|
965
|
+
title: string;
|
|
966
|
+
description?: string | undefined;
|
|
967
|
+
}[] | undefined;
|
|
968
|
+
components?: {
|
|
969
|
+
title: string;
|
|
970
|
+
id: string;
|
|
971
|
+
elementId: string;
|
|
972
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
973
|
+
sources: {
|
|
974
|
+
bindingId: string;
|
|
975
|
+
fieldIds?: string[] | undefined;
|
|
976
|
+
}[];
|
|
977
|
+
}[] | undefined;
|
|
687
978
|
presentation?: {
|
|
688
979
|
type: "html";
|
|
689
980
|
html: string;
|
|
@@ -700,9 +991,9 @@ export declare const saveSchema: z.ZodObject<{
|
|
|
700
991
|
expectedRevision: z.ZodDefault<z.ZodNumber>;
|
|
701
992
|
}, "strict", z.ZodTypeAny, {
|
|
702
993
|
manifest: {
|
|
703
|
-
schema: "xpert.live-dashboard";
|
|
704
|
-
id: string;
|
|
705
994
|
title: string;
|
|
995
|
+
id: string;
|
|
996
|
+
schema: "xpert.live-dashboard";
|
|
706
997
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
707
998
|
controls: {
|
|
708
999
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -713,19 +1004,34 @@ export declare const saveSchema: z.ZodObject<{
|
|
|
713
1004
|
}[];
|
|
714
1005
|
charts: {
|
|
715
1006
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
716
|
-
id: string;
|
|
717
1007
|
title: string;
|
|
1008
|
+
id: string;
|
|
718
1009
|
datasetId: string;
|
|
719
1010
|
x: string;
|
|
720
1011
|
y: string;
|
|
721
1012
|
color?: string | undefined;
|
|
722
1013
|
}[];
|
|
723
1014
|
tables: {
|
|
724
|
-
id: string;
|
|
725
1015
|
title: string;
|
|
1016
|
+
id: string;
|
|
726
1017
|
datasetId: string;
|
|
727
1018
|
fields: string[];
|
|
728
1019
|
}[];
|
|
1020
|
+
sourceMetadata?: {
|
|
1021
|
+
bindingId: string;
|
|
1022
|
+
title: string;
|
|
1023
|
+
description?: string | undefined;
|
|
1024
|
+
}[] | undefined;
|
|
1025
|
+
components?: {
|
|
1026
|
+
title: string;
|
|
1027
|
+
id: string;
|
|
1028
|
+
elementId: string;
|
|
1029
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
1030
|
+
sources: {
|
|
1031
|
+
bindingId: string;
|
|
1032
|
+
fieldIds?: string[] | undefined;
|
|
1033
|
+
}[];
|
|
1034
|
+
}[] | undefined;
|
|
729
1035
|
presentation?: {
|
|
730
1036
|
type: "html";
|
|
731
1037
|
html: string;
|
|
@@ -736,9 +1042,9 @@ export declare const saveSchema: z.ZodObject<{
|
|
|
736
1042
|
expectedRevision: number;
|
|
737
1043
|
}, {
|
|
738
1044
|
manifest: {
|
|
739
|
-
schema: "xpert.live-dashboard";
|
|
740
|
-
id: string;
|
|
741
1045
|
title: string;
|
|
1046
|
+
id: string;
|
|
1047
|
+
schema: "xpert.live-dashboard";
|
|
742
1048
|
bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
|
|
743
1049
|
controls: {
|
|
744
1050
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -749,19 +1055,34 @@ export declare const saveSchema: z.ZodObject<{
|
|
|
749
1055
|
}[];
|
|
750
1056
|
charts: {
|
|
751
1057
|
type: "bar" | "line" | "area" | "pie" | "scatter";
|
|
752
|
-
id: string;
|
|
753
1058
|
title: string;
|
|
1059
|
+
id: string;
|
|
754
1060
|
datasetId: string;
|
|
755
1061
|
x: string;
|
|
756
1062
|
y: string;
|
|
757
1063
|
color?: string | undefined;
|
|
758
1064
|
}[];
|
|
759
1065
|
tables: {
|
|
760
|
-
id: string;
|
|
761
1066
|
title: string;
|
|
1067
|
+
id: string;
|
|
762
1068
|
datasetId: string;
|
|
763
1069
|
fields: string[];
|
|
764
1070
|
}[];
|
|
1071
|
+
sourceMetadata?: {
|
|
1072
|
+
bindingId: string;
|
|
1073
|
+
title: string;
|
|
1074
|
+
description?: string | undefined;
|
|
1075
|
+
}[] | undefined;
|
|
1076
|
+
components?: {
|
|
1077
|
+
title: string;
|
|
1078
|
+
id: string;
|
|
1079
|
+
elementId: string;
|
|
1080
|
+
kind: "filter" | "metric" | "chart" | "table" | "text";
|
|
1081
|
+
sources: {
|
|
1082
|
+
bindingId: string;
|
|
1083
|
+
fieldIds?: string[] | undefined;
|
|
1084
|
+
}[];
|
|
1085
|
+
}[] | undefined;
|
|
765
1086
|
presentation?: {
|
|
766
1087
|
type: "html";
|
|
767
1088
|
html: string;
|
|
@@ -802,14 +1123,14 @@ export declare const queryBindingSchema: z.ZodObject<{
|
|
|
802
1123
|
} & {
|
|
803
1124
|
bindingId: z.ZodString;
|
|
804
1125
|
}, "strict", z.ZodTypeAny, {
|
|
1126
|
+
bindingId: string;
|
|
805
1127
|
controls: Record<string, string | number | boolean | null>;
|
|
806
1128
|
artifactId: string;
|
|
807
|
-
bindingId: string;
|
|
808
1129
|
versionId?: string | undefined;
|
|
809
1130
|
draftRevision?: number | undefined;
|
|
810
1131
|
}, {
|
|
811
|
-
artifactId: string;
|
|
812
1132
|
bindingId: string;
|
|
1133
|
+
artifactId: string;
|
|
813
1134
|
controls?: Record<string, string | number | boolean | null> | undefined;
|
|
814
1135
|
versionId?: string | undefined;
|
|
815
1136
|
draftRevision?: number | undefined;
|