@oneclick.dev/cms-core-modules 0.0.122 → 0.0.124
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/dist/{ContentEditor-CoJjsV-m.js → ContentEditor-BcIUumah.js} +63 -59
- package/dist/{ContentEditor-DIwqplfB.mjs → ContentEditor-DX1bTQKs.mjs} +27894 -26319
- package/dist/{Detail-Dk8E6_uF.mjs → Detail-B7pe808q.mjs} +15 -14
- package/dist/Detail-BESGmY7z.js +1 -0
- package/dist/{Detail-Cn9Bk0u0.mjs → Detail-B_Q7Qkuz.mjs} +26 -25
- package/dist/Detail-CNiLIEh9.js +1 -0
- package/dist/{Detail-B_scnidb.mjs → Detail-DNxAzeCs.mjs} +35 -34
- package/dist/Detail-t3tOcy3X.js +1 -0
- package/dist/Editor-D4evcdhv.mjs +768 -0
- package/dist/Editor-gLLtuJbY.js +1 -0
- package/dist/FormStatusBadge.vue_vue_type_script_setup_true_lang-BjKpsqT9.js +1 -0
- package/dist/FormStatusBadge.vue_vue_type_script_setup_true_lang-D5v5AhLe.mjs +76 -0
- package/dist/Knowledge-B66vxz--.js +1 -0
- package/dist/Knowledge-BnMTTuJ7.mjs +742 -0
- package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-bZidw6RT.mjs → NewReservationDialog.vue_vue_type_script_setup_true_lang-8I_Z9cD_.mjs} +530 -530
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-BVE_uURZ.js +1 -0
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-BdFa-xNf.mjs +3566 -0
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-DzPOadcU.js +925 -0
- package/dist/Overview-BE4uYPx0.mjs +745 -0
- package/dist/Overview-CQRpFhbJ.mjs +286 -0
- package/dist/Overview-CTs7sX4d.js +1 -0
- package/dist/Overview-Cj89XXKN.js +1 -0
- package/dist/Overview-D_c18mbR.mjs +248 -0
- package/dist/Overview-g4Rcj245.js +1 -0
- package/dist/TableCalculationWidget-CkQPrVUd.js +59 -0
- package/dist/TableCalculationWidget-CrqcLGfU.mjs +254 -0
- package/dist/TableDataWidget-7qvC3Egd.js +1 -0
- package/dist/TableDataWidget-DMTSoGRO.mjs +121 -0
- package/dist/TableOverviewCard-AFq-puJs.js +1 -0
- package/dist/TableOverviewCard-Ci0d4o4w.mjs +391 -0
- package/dist/TableResultView.vue_vue_type_script_setup_true_lang-CBn-Oxl9.mjs +534 -0
- package/dist/TableResultView.vue_vue_type_script_setup_true_lang-C_Lv-SmJ.js +1 -0
- package/dist/TableRowActionCard-BhdnnPaq.mjs +266 -0
- package/dist/TableRowActionCard-IzB6tNN-.js +1 -0
- package/dist/TableView-6mdrL3zx.js +4 -0
- package/dist/TableView-Du5nOE6R.mjs +8228 -0
- package/dist/Test-CzmOmi53.mjs +447 -0
- package/dist/Test-USDtNFY1.js +1 -0
- package/dist/UserDetail-DpUL3mhk.mjs +1483 -0
- package/dist/UserDetail-KRIfxaYd.js +1 -0
- package/dist/{agenda-BCKDYOeF.mjs → agenda-DWdbWUbb.mjs} +10 -9
- package/dist/agenda-r9Gl85GL.js +1 -0
- package/dist/cms-core-modules.css +1 -1
- package/dist/dateRangePresets-B-l5b_wR.mjs +48 -0
- package/dist/dateRangePresets-CPWqst_x.js +1 -0
- package/dist/fuse-Deb-Iq39.mjs +1473 -0
- package/dist/fuse-_CGUd5Zq.js +1 -0
- package/dist/{index-DU3Ib10Z.mjs → index-B_qaX29C.mjs} +7 -6
- package/dist/index-CQuN5rKx.js +1 -0
- package/dist/index-CnDGeInm.js +1 -0
- package/dist/index-CqDTc5Ig.mjs +20 -0
- package/dist/index-CyvvAdt4.js +1 -0
- package/dist/index-DIRD7t5_.mjs +20 -0
- package/dist/index-OJuBYR60.mjs +57 -0
- package/dist/{index-Bk3yLv_G.js → index-yHLT6gaZ.js} +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +671 -118
- package/dist/{orders-CElKNc1v.mjs → orders-BfTLIm7U.mjs} +10 -9
- package/dist/orders-DUa2PVoa.js +1 -0
- package/dist/reports-ChCsd1Gk.mjs +1107 -0
- package/dist/reports-DmJPm8uP.js +158 -0
- package/dist/row-item-C1dUyimV.mjs +204 -0
- package/dist/row-item-Cyo3m3MZ.js +1 -0
- package/dist/server-handlers.cjs.js +1 -1
- package/dist/server-handlers.mjs +1764 -605
- package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +9 -3
- package/dist/src/appointments/components/edit/EventDialog/OrderDetailDialog.vue.d.ts +2 -0
- package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +4 -2
- package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +9 -3
- package/dist/src/appointments/pages/edit/orders.vue.d.ts +9 -3
- package/dist/src/appointments/pages/edit/reports.vue.d.ts +229 -1
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Container.d.ts +1 -1
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Row.d.ts +7 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Stack.d.ts +7 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/resizeHistory.d.ts +9 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/ElementEditorMenu.vue.d.ts +3 -1
- package/dist/src/firebaseAuthManager/components/DeleteUserDialog.vue.d.ts +25 -0
- package/dist/src/firebaseAuthManager/components/ReasonActionDialog.vue.d.ts +23 -0
- package/dist/src/firebaseAuthManager/components/UserStatusBadge.vue.d.ts +5 -0
- package/dist/src/firebaseAuthManager/config.d.ts +151 -0
- package/dist/src/firebaseAuthManager/index.d.ts +163 -0
- package/dist/src/firebaseAuthManager/index.vue.d.ts +14 -0
- package/dist/src/firebaseAuthManager/metadata.d.ts +2 -0
- package/dist/src/firebaseAuthManager/pages/Overview.vue.d.ts +2 -0
- package/dist/src/firebaseAuthManager/pages/UserDetail.vue.d.ts +2 -0
- package/dist/src/firebaseAuthManager/permissions.d.ts +5 -0
- package/dist/src/firebaseAuthManager/routes.d.ts +5 -0
- package/dist/src/firebaseAuthManager/server.d.ts +162 -0
- package/dist/src/firebaseAuthManager/types.d.ts +84 -0
- package/dist/src/formBuilder/components/FormPreviewDialog.vue.d.ts +12 -0
- package/dist/src/formBuilder/components/FormStatusBadge.vue.d.ts +9 -0
- package/dist/src/formBuilder/config.d.ts +31 -0
- package/dist/src/formBuilder/index.d.ts +44 -0
- package/dist/src/formBuilder/index.vue.d.ts +14 -0
- package/dist/src/formBuilder/lib/forms.d.ts +11 -0
- package/dist/src/formBuilder/metadata.d.ts +2 -0
- package/dist/src/formBuilder/pages/Editor.vue.d.ts +2 -0
- package/dist/src/formBuilder/pages/Overview.vue.d.ts +2 -0
- package/dist/src/formBuilder/permissions.d.ts +5 -0
- package/dist/src/formBuilder/routes.d.ts +5 -0
- package/dist/src/formBuilder/server.d.ts +87 -0
- package/dist/src/formBuilder/tools.d.ts +1 -0
- package/dist/src/formBuilder/types.d.ts +46 -0
- package/dist/src/helpbot/composables/useHelpbotApi.d.ts +18 -0
- package/dist/src/helpbot/config.d.ts +17 -0
- package/dist/src/helpbot/index.d.ts +29 -0
- package/dist/src/helpbot/index.vue.d.ts +2 -0
- package/dist/src/helpbot/metadata.d.ts +2 -0
- package/dist/src/helpbot/pages/Knowledge.vue.d.ts +4 -0
- package/dist/src/helpbot/pages/Overview.vue.d.ts +2 -0
- package/dist/src/helpbot/pages/Test.vue.d.ts +4 -0
- package/dist/src/helpbot/permissions.d.ts +5 -0
- package/dist/src/helpbot/routes.d.ts +5 -0
- package/dist/src/helpbot/types.d.ts +42 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/server-handlers.d.ts +2 -0
- package/dist/src/table/chat-components/TableCalculationWidget.vue.d.ts +15 -0
- package/dist/src/table/chat-components/TableDataWidget.vue.d.ts +15 -0
- package/dist/src/table/chat-components/TableOverviewCard.vue.d.ts +61 -0
- package/dist/src/table/chat-components/TableResultView.vue.d.ts +48 -0
- package/dist/src/table/chat-components/TableRowActionCard.vue.d.ts +15 -0
- package/dist/src/table/components/filters/DialogTableFilterOptionItem.vue.d.ts +16 -0
- package/dist/src/table/components/filters/NumberComparisonFilter.vue.d.ts +12 -0
- package/dist/src/table/components/filters/NumberComparisonFilterSettings.vue.d.ts +12 -0
- package/dist/src/table/components/filters/NumberRangeFilter.vue.d.ts +12 -0
- package/dist/src/table/components/filters/NumberRangeFilterSettings.vue.d.ts +12 -0
- package/dist/src/table/components/filters/filter-utils.d.ts +14 -0
- package/dist/src/table/composables/useTableAgentTools.d.ts +33 -0
- package/dist/src/table/index.d.ts +339 -0
- package/dist/src/table/tool-sandbox.d.ts +13 -0
- package/dist/src/table/tool-utils.d.ts +11 -0
- package/dist/src/table/tools.d.ts +333 -1
- package/dist/src/table/types.d.ts +79 -0
- package/dist/tool-sandbox-DdkMLkDK.mjs +182 -0
- package/dist/tool-sandbox-DoF1PsyS.js +115 -0
- package/dist/types-9N-DKxNj.mjs +250 -0
- package/dist/types-BMraG1kN.js +1 -0
- package/dist/types-Cem0vPo_.js +1 -0
- package/dist/types-ibC3-e1N.mjs +2630 -0
- package/dist/useHelpbotApi-BIIungOh.js +1 -0
- package/dist/useHelpbotApi-HC9JSiSn.mjs +229 -0
- package/dist/useTableAgentTools-D5mzGf3A.js +1 -0
- package/dist/useTableAgentTools-DcN3kYRL.mjs +131 -0
- package/dist/vee-validate-zod-BQElPD0m.js +1 -0
- package/dist/vee-validate-zod-CN16K2x9.mjs +1780 -0
- package/package.json +17 -17
- package/src/formBuilder/tools.ts +1 -0
- package/src/table/tools.ts +304 -1
- package/dist/Detail-BCUUNWvp.js +0 -1
- package/dist/Detail-DGg_xXZc.js +0 -1
- package/dist/Detail-Sc2qZdxj.js +0 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-BdZbcubW.js +0 -1
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-BYSeUW_V.js +0 -925
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-DwAUYR8p.mjs +0 -5021
- package/dist/TableView-Ctnep-Qu.mjs +0 -6247
- package/dist/TableView-DJqyJL9L.js +0 -4
- package/dist/agenda-B54F8cEr.js +0 -1
- package/dist/orders-BMosTk6r.js +0 -1
- package/dist/reports-BQT_GZzU.js +0 -158
- package/dist/reports-DksZCTOw.mjs +0 -837
- package/dist/vee-validate-zod-SjDT8X35.mjs +0 -4404
- package/dist/vee-validate-zod-VCmLnrtQ.js +0 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface TableAgentToolProps {
|
|
2
|
+
projectSlug: string;
|
|
3
|
+
instanceId: string;
|
|
4
|
+
instanceName: string;
|
|
5
|
+
}
|
|
6
|
+
export interface TableQueryArgs {
|
|
7
|
+
startDate?: string;
|
|
8
|
+
endDate?: string;
|
|
9
|
+
dateProperty?: string;
|
|
10
|
+
useDefaultDateRange?: boolean;
|
|
11
|
+
filters?: any[];
|
|
12
|
+
sortBy?: string;
|
|
13
|
+
sortDirection?: 'asc' | 'desc';
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Shared runtime for the table module's chat tools.
|
|
17
|
+
*
|
|
18
|
+
* It deliberately addresses module storage by the component props instead of
|
|
19
|
+
* the active route: chat widgets can be mounted far away from the table page.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useTableAgentTools(props: TableAgentToolProps): {
|
|
22
|
+
loadMetadata: (options?: {
|
|
23
|
+
fresh?: boolean;
|
|
24
|
+
}) => Promise<any>;
|
|
25
|
+
loadRows: (args?: TableQueryArgs, options?: {
|
|
26
|
+
freshMetadata?: boolean;
|
|
27
|
+
}) => Promise<any>;
|
|
28
|
+
runStoredRowAction: (action: any, row: any, rowIndex: number, sourceRows: any[]) => Promise<{
|
|
29
|
+
flowResult: any;
|
|
30
|
+
effects: any[];
|
|
31
|
+
rows: any[];
|
|
32
|
+
}>;
|
|
33
|
+
};
|
|
@@ -287,5 +287,344 @@ declare const _default: {
|
|
|
287
287
|
component: () => Promise<typeof import("./pages/TableView.vue")>;
|
|
288
288
|
}[];
|
|
289
289
|
permissions: never[];
|
|
290
|
+
tools: ({
|
|
291
|
+
name: string;
|
|
292
|
+
description: string;
|
|
293
|
+
executionMode: string;
|
|
294
|
+
chatComponent: string;
|
|
295
|
+
parameters: {
|
|
296
|
+
type: string;
|
|
297
|
+
properties: {
|
|
298
|
+
sampleLimit: {
|
|
299
|
+
type: string;
|
|
300
|
+
description: string;
|
|
301
|
+
default: number;
|
|
302
|
+
minimum: number;
|
|
303
|
+
maximum: number;
|
|
304
|
+
};
|
|
305
|
+
startDate?: undefined;
|
|
306
|
+
endDate?: undefined;
|
|
307
|
+
dateProperty?: undefined;
|
|
308
|
+
useDefaultDateRange?: undefined;
|
|
309
|
+
filters?: undefined;
|
|
310
|
+
sortBy?: undefined;
|
|
311
|
+
sortDirection?: undefined;
|
|
312
|
+
columns?: undefined;
|
|
313
|
+
limit?: undefined;
|
|
314
|
+
title?: undefined;
|
|
315
|
+
view?: undefined;
|
|
316
|
+
operation?: undefined;
|
|
317
|
+
property?: undefined;
|
|
318
|
+
groupBy?: undefined;
|
|
319
|
+
code?: undefined;
|
|
320
|
+
precision?: undefined;
|
|
321
|
+
action?: undefined;
|
|
322
|
+
match?: undefined;
|
|
323
|
+
confirmationMessage?: undefined;
|
|
324
|
+
};
|
|
325
|
+
required: never[];
|
|
326
|
+
additionalProperties: boolean;
|
|
327
|
+
};
|
|
328
|
+
} | {
|
|
329
|
+
name: string;
|
|
330
|
+
description: string;
|
|
331
|
+
executionMode: string;
|
|
332
|
+
chatComponent: string;
|
|
333
|
+
parameters: {
|
|
334
|
+
type: string;
|
|
335
|
+
properties: {
|
|
336
|
+
startDate: {
|
|
337
|
+
type: string;
|
|
338
|
+
format: string;
|
|
339
|
+
description: string;
|
|
340
|
+
};
|
|
341
|
+
endDate: {
|
|
342
|
+
type: string;
|
|
343
|
+
format: string;
|
|
344
|
+
description: string;
|
|
345
|
+
};
|
|
346
|
+
dateProperty: {
|
|
347
|
+
type: string;
|
|
348
|
+
description: string;
|
|
349
|
+
};
|
|
350
|
+
useDefaultDateRange: {
|
|
351
|
+
type: string;
|
|
352
|
+
description: string;
|
|
353
|
+
default: boolean;
|
|
354
|
+
};
|
|
355
|
+
filters: {
|
|
356
|
+
type: string;
|
|
357
|
+
description: string;
|
|
358
|
+
default: never[];
|
|
359
|
+
items: {
|
|
360
|
+
type: string;
|
|
361
|
+
properties: {
|
|
362
|
+
property: {
|
|
363
|
+
type: string;
|
|
364
|
+
description: string;
|
|
365
|
+
};
|
|
366
|
+
operator: {
|
|
367
|
+
type: string;
|
|
368
|
+
enum: string[];
|
|
369
|
+
description: string;
|
|
370
|
+
};
|
|
371
|
+
value: {
|
|
372
|
+
description: string;
|
|
373
|
+
anyOf: {
|
|
374
|
+
type: string;
|
|
375
|
+
}[];
|
|
376
|
+
};
|
|
377
|
+
values: {
|
|
378
|
+
type: string;
|
|
379
|
+
description: string;
|
|
380
|
+
items: {
|
|
381
|
+
anyOf: {
|
|
382
|
+
type: string;
|
|
383
|
+
}[];
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
required: string[];
|
|
388
|
+
additionalProperties: boolean;
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
sortBy: {
|
|
392
|
+
type: string;
|
|
393
|
+
description: string;
|
|
394
|
+
};
|
|
395
|
+
sortDirection: {
|
|
396
|
+
type: string;
|
|
397
|
+
enum: string[];
|
|
398
|
+
description: string;
|
|
399
|
+
default: string;
|
|
400
|
+
};
|
|
401
|
+
columns: {
|
|
402
|
+
type: string;
|
|
403
|
+
description: string;
|
|
404
|
+
items: {
|
|
405
|
+
type: string;
|
|
406
|
+
};
|
|
407
|
+
uniqueItems: boolean;
|
|
408
|
+
};
|
|
409
|
+
limit: {
|
|
410
|
+
type: string;
|
|
411
|
+
description: string;
|
|
412
|
+
default: number;
|
|
413
|
+
minimum: number;
|
|
414
|
+
maximum: number;
|
|
415
|
+
};
|
|
416
|
+
title: {
|
|
417
|
+
type: string;
|
|
418
|
+
description: string;
|
|
419
|
+
};
|
|
420
|
+
view: {
|
|
421
|
+
type: string;
|
|
422
|
+
enum: string[];
|
|
423
|
+
description: string;
|
|
424
|
+
default: string;
|
|
425
|
+
};
|
|
426
|
+
sampleLimit?: undefined;
|
|
427
|
+
operation?: undefined;
|
|
428
|
+
property?: undefined;
|
|
429
|
+
groupBy?: undefined;
|
|
430
|
+
code?: undefined;
|
|
431
|
+
precision?: undefined;
|
|
432
|
+
action?: undefined;
|
|
433
|
+
match?: undefined;
|
|
434
|
+
confirmationMessage?: undefined;
|
|
435
|
+
};
|
|
436
|
+
required: never[];
|
|
437
|
+
additionalProperties: boolean;
|
|
438
|
+
};
|
|
439
|
+
} | {
|
|
440
|
+
name: string;
|
|
441
|
+
description: string;
|
|
442
|
+
executionMode: string;
|
|
443
|
+
chatComponent: string;
|
|
444
|
+
parameters: {
|
|
445
|
+
type: string;
|
|
446
|
+
properties: {
|
|
447
|
+
startDate: {
|
|
448
|
+
type: string;
|
|
449
|
+
format: string;
|
|
450
|
+
description: string;
|
|
451
|
+
};
|
|
452
|
+
endDate: {
|
|
453
|
+
type: string;
|
|
454
|
+
format: string;
|
|
455
|
+
description: string;
|
|
456
|
+
};
|
|
457
|
+
dateProperty: {
|
|
458
|
+
type: string;
|
|
459
|
+
description: string;
|
|
460
|
+
};
|
|
461
|
+
useDefaultDateRange: {
|
|
462
|
+
type: string;
|
|
463
|
+
description: string;
|
|
464
|
+
default: boolean;
|
|
465
|
+
};
|
|
466
|
+
filters: {
|
|
467
|
+
type: string;
|
|
468
|
+
description: string;
|
|
469
|
+
default: never[];
|
|
470
|
+
items: {
|
|
471
|
+
type: string;
|
|
472
|
+
properties: {
|
|
473
|
+
property: {
|
|
474
|
+
type: string;
|
|
475
|
+
description: string;
|
|
476
|
+
};
|
|
477
|
+
operator: {
|
|
478
|
+
type: string;
|
|
479
|
+
enum: string[];
|
|
480
|
+
description: string;
|
|
481
|
+
};
|
|
482
|
+
value: {
|
|
483
|
+
description: string;
|
|
484
|
+
anyOf: {
|
|
485
|
+
type: string;
|
|
486
|
+
}[];
|
|
487
|
+
};
|
|
488
|
+
values: {
|
|
489
|
+
type: string;
|
|
490
|
+
description: string;
|
|
491
|
+
items: {
|
|
492
|
+
anyOf: {
|
|
493
|
+
type: string;
|
|
494
|
+
}[];
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
required: string[];
|
|
499
|
+
additionalProperties: boolean;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
operation: {
|
|
503
|
+
type: string;
|
|
504
|
+
enum: string[];
|
|
505
|
+
description: string;
|
|
506
|
+
};
|
|
507
|
+
property: {
|
|
508
|
+
type: string;
|
|
509
|
+
description: string;
|
|
510
|
+
};
|
|
511
|
+
groupBy: {
|
|
512
|
+
type: string;
|
|
513
|
+
description: string;
|
|
514
|
+
};
|
|
515
|
+
code: {
|
|
516
|
+
type: string;
|
|
517
|
+
description: string;
|
|
518
|
+
};
|
|
519
|
+
title: {
|
|
520
|
+
type: string;
|
|
521
|
+
description: string;
|
|
522
|
+
};
|
|
523
|
+
precision: {
|
|
524
|
+
type: string;
|
|
525
|
+
description: string;
|
|
526
|
+
default: number;
|
|
527
|
+
minimum: number;
|
|
528
|
+
maximum: number;
|
|
529
|
+
};
|
|
530
|
+
view: {
|
|
531
|
+
type: string;
|
|
532
|
+
enum: string[];
|
|
533
|
+
description: string;
|
|
534
|
+
default: string;
|
|
535
|
+
};
|
|
536
|
+
sampleLimit?: undefined;
|
|
537
|
+
sortBy?: undefined;
|
|
538
|
+
sortDirection?: undefined;
|
|
539
|
+
columns?: undefined;
|
|
540
|
+
limit?: undefined;
|
|
541
|
+
action?: undefined;
|
|
542
|
+
match?: undefined;
|
|
543
|
+
confirmationMessage?: undefined;
|
|
544
|
+
};
|
|
545
|
+
required: string[];
|
|
546
|
+
additionalProperties: boolean;
|
|
547
|
+
};
|
|
548
|
+
} | {
|
|
549
|
+
name: string;
|
|
550
|
+
description: string;
|
|
551
|
+
executionMode: string;
|
|
552
|
+
chatComponent: string;
|
|
553
|
+
parameters: {
|
|
554
|
+
type: string;
|
|
555
|
+
properties: {
|
|
556
|
+
action: {
|
|
557
|
+
type: string;
|
|
558
|
+
description: string;
|
|
559
|
+
};
|
|
560
|
+
match: {
|
|
561
|
+
type: string;
|
|
562
|
+
description: string;
|
|
563
|
+
minItems: number;
|
|
564
|
+
items: {
|
|
565
|
+
type: string;
|
|
566
|
+
properties: {
|
|
567
|
+
property: {
|
|
568
|
+
type: string;
|
|
569
|
+
description: string;
|
|
570
|
+
};
|
|
571
|
+
value: {
|
|
572
|
+
description: string;
|
|
573
|
+
anyOf: {
|
|
574
|
+
type: string;
|
|
575
|
+
}[];
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
required: string[];
|
|
579
|
+
additionalProperties: boolean;
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
startDate: {
|
|
583
|
+
type: string;
|
|
584
|
+
format: string;
|
|
585
|
+
description: string;
|
|
586
|
+
};
|
|
587
|
+
endDate: {
|
|
588
|
+
type: string;
|
|
589
|
+
format: string;
|
|
590
|
+
description: string;
|
|
591
|
+
};
|
|
592
|
+
dateProperty: {
|
|
593
|
+
type: string;
|
|
594
|
+
description: string;
|
|
595
|
+
};
|
|
596
|
+
useDefaultDateRange: {
|
|
597
|
+
type: string;
|
|
598
|
+
description: string;
|
|
599
|
+
default: boolean;
|
|
600
|
+
};
|
|
601
|
+
confirmationMessage: {
|
|
602
|
+
type: string;
|
|
603
|
+
description: string;
|
|
604
|
+
};
|
|
605
|
+
sampleLimit?: undefined;
|
|
606
|
+
filters?: undefined;
|
|
607
|
+
sortBy?: undefined;
|
|
608
|
+
sortDirection?: undefined;
|
|
609
|
+
columns?: undefined;
|
|
610
|
+
limit?: undefined;
|
|
611
|
+
title?: undefined;
|
|
612
|
+
view?: undefined;
|
|
613
|
+
operation?: undefined;
|
|
614
|
+
property?: undefined;
|
|
615
|
+
groupBy?: undefined;
|
|
616
|
+
code?: undefined;
|
|
617
|
+
precision?: undefined;
|
|
618
|
+
};
|
|
619
|
+
required: string[];
|
|
620
|
+
additionalProperties: boolean;
|
|
621
|
+
};
|
|
622
|
+
})[];
|
|
623
|
+
chatComponents: {
|
|
624
|
+
TableOverviewCard: () => Promise<typeof import("./chat-components/TableOverviewCard.vue")>;
|
|
625
|
+
TableDataWidget: () => Promise<typeof import("./chat-components/TableDataWidget.vue")>;
|
|
626
|
+
TableCalculationWidget: () => Promise<typeof import("./chat-components/TableCalculationWidget.vue")>;
|
|
627
|
+
TableRowActionCard: () => Promise<typeof import("./chat-components/TableRowActionCard.vue")>;
|
|
628
|
+
};
|
|
290
629
|
};
|
|
291
630
|
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface TableSandboxOptions {
|
|
2
|
+
timeoutMs?: number;
|
|
3
|
+
maxInputBytes?: number;
|
|
4
|
+
maxOutputBytes?: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Execute calculation code away from the application realm.
|
|
8
|
+
*
|
|
9
|
+
* The iframe has an opaque origin, a network-blocking CSP, and no
|
|
10
|
+
* `allow-same-origin`; the actual code runs in a disposable worker so a hard
|
|
11
|
+
* timeout can terminate infinite loops. Only bounded JSON crosses the boundary.
|
|
12
|
+
*/
|
|
13
|
+
export declare function runSandboxedTableCode(code: string, args?: Record<string, any>, options?: TableSandboxOptions): Promise<any>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TableColumn, TableRowMatch, TableToolFilter } from './types';
|
|
2
|
+
export declare function resolveProperty(object: any, property: string): any;
|
|
3
|
+
export declare function normalizeTableRows(value: any): Record<string, any>[];
|
|
4
|
+
export declare function normalizeTableColumns(value: any): TableColumn[];
|
|
5
|
+
export declare function inferTableColumns(rows: any[]): TableColumn[];
|
|
6
|
+
export declare function resolveColumn(requested: string, columns: TableColumn[]): TableColumn | null;
|
|
7
|
+
export declare function applyTableFilters(rows: any[], filters: TableToolFilter[], columns?: TableColumn[]): any[];
|
|
8
|
+
export declare function applyTableSort(rows: any[], requestedProperty?: string, direction?: 'asc' | 'desc', columns?: TableColumn[]): any[];
|
|
9
|
+
export declare function applyLocalDateRange(rows: any[], property: string, from: Date, to: Date): any[];
|
|
10
|
+
export declare function buildRowReference(row: any, allRows: any[], columns?: TableColumn[]): TableRowMatch[] | null;
|
|
11
|
+
export declare function serializeBounded<T>(value: T, maxBytes?: number): T;
|