skedyul 0.2.15 → 0.2.17
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/.build-stamp +1 -1
- package/dist/config.d.ts +14 -1
- package/dist/schemas.d.ts +80 -0
- package/dist/schemas.js +15 -2
- package/package.json +1 -1
package/dist/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1769308286283
|
package/dist/config.d.ts
CHANGED
|
@@ -320,10 +320,19 @@ export interface FileSettingComponentDefinition extends FormV2StyleProps {
|
|
|
320
320
|
};
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
|
+
/** Item template for server-side iterable rendering */
|
|
324
|
+
export interface ListItemTemplate {
|
|
325
|
+
component: string;
|
|
326
|
+
span?: number;
|
|
327
|
+
mdSpan?: number;
|
|
328
|
+
lgSpan?: number;
|
|
329
|
+
props: Record<string, unknown>;
|
|
330
|
+
}
|
|
323
331
|
/** List component definition */
|
|
324
332
|
export interface ListComponentDefinition extends FormV2StyleProps {
|
|
325
333
|
component: 'List';
|
|
326
334
|
props: {
|
|
335
|
+
title?: string;
|
|
327
336
|
items?: Array<{
|
|
328
337
|
id: string;
|
|
329
338
|
label: string;
|
|
@@ -331,11 +340,15 @@ export interface ListComponentDefinition extends FormV2StyleProps {
|
|
|
331
340
|
}>;
|
|
332
341
|
emptyMessage?: string;
|
|
333
342
|
};
|
|
334
|
-
/** Model to fetch list items from */
|
|
343
|
+
/** Model to fetch list items from (legacy) */
|
|
335
344
|
model?: string;
|
|
336
345
|
labelField?: string;
|
|
337
346
|
descriptionField?: string;
|
|
338
347
|
icon?: string;
|
|
348
|
+
/** Context variable name to iterate over (e.g., 'phone_numbers') */
|
|
349
|
+
iterable?: string;
|
|
350
|
+
/** Template for each item - use {{ item.xyz }} for field values */
|
|
351
|
+
itemTemplate?: ListItemTemplate;
|
|
339
352
|
}
|
|
340
353
|
/** EmptyForm component definition */
|
|
341
354
|
export interface EmptyFormComponentDefinition extends FormV2StyleProps {
|
package/dist/schemas.d.ts
CHANGED
|
@@ -633,6 +633,14 @@ export declare const FileSettingComponentDefinitionSchema: z.ZodObject<{
|
|
|
633
633
|
}, z.core.$strip>>;
|
|
634
634
|
}, z.core.$strip>;
|
|
635
635
|
}, z.core.$strip>;
|
|
636
|
+
/** Item template schema for server-side iterable rendering */
|
|
637
|
+
export declare const ListItemTemplateSchema: z.ZodObject<{
|
|
638
|
+
component: z.ZodString;
|
|
639
|
+
span: z.ZodOptional<z.ZodNumber>;
|
|
640
|
+
mdSpan: z.ZodOptional<z.ZodNumber>;
|
|
641
|
+
lgSpan: z.ZodOptional<z.ZodNumber>;
|
|
642
|
+
props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
643
|
+
}, z.core.$strip>;
|
|
636
644
|
/** List component definition */
|
|
637
645
|
export declare const ListComponentDefinitionSchema: z.ZodObject<{
|
|
638
646
|
id: z.ZodString;
|
|
@@ -642,6 +650,7 @@ export declare const ListComponentDefinitionSchema: z.ZodObject<{
|
|
|
642
650
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
643
651
|
component: z.ZodLiteral<"List">;
|
|
644
652
|
props: z.ZodObject<{
|
|
653
|
+
title: z.ZodOptional<z.ZodString>;
|
|
645
654
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
646
655
|
id: z.ZodString;
|
|
647
656
|
label: z.ZodString;
|
|
@@ -653,6 +662,14 @@ export declare const ListComponentDefinitionSchema: z.ZodObject<{
|
|
|
653
662
|
labelField: z.ZodOptional<z.ZodString>;
|
|
654
663
|
descriptionField: z.ZodOptional<z.ZodString>;
|
|
655
664
|
icon: z.ZodOptional<z.ZodString>;
|
|
665
|
+
iterable: z.ZodOptional<z.ZodString>;
|
|
666
|
+
itemTemplate: z.ZodOptional<z.ZodObject<{
|
|
667
|
+
component: z.ZodString;
|
|
668
|
+
span: z.ZodOptional<z.ZodNumber>;
|
|
669
|
+
mdSpan: z.ZodOptional<z.ZodNumber>;
|
|
670
|
+
lgSpan: z.ZodOptional<z.ZodNumber>;
|
|
671
|
+
props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
672
|
+
}, z.core.$strip>>;
|
|
656
673
|
}, z.core.$strip>;
|
|
657
674
|
/** EmptyForm component definition */
|
|
658
675
|
export declare const EmptyFormComponentDefinitionSchema: z.ZodObject<{
|
|
@@ -965,6 +982,7 @@ export declare const FormV2ComponentDefinitionSchema: z.ZodDiscriminatedUnion<[z
|
|
|
965
982
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
966
983
|
component: z.ZodLiteral<"List">;
|
|
967
984
|
props: z.ZodObject<{
|
|
985
|
+
title: z.ZodOptional<z.ZodString>;
|
|
968
986
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
969
987
|
id: z.ZodString;
|
|
970
988
|
label: z.ZodString;
|
|
@@ -976,6 +994,14 @@ export declare const FormV2ComponentDefinitionSchema: z.ZodDiscriminatedUnion<[z
|
|
|
976
994
|
labelField: z.ZodOptional<z.ZodString>;
|
|
977
995
|
descriptionField: z.ZodOptional<z.ZodString>;
|
|
978
996
|
icon: z.ZodOptional<z.ZodString>;
|
|
997
|
+
iterable: z.ZodOptional<z.ZodString>;
|
|
998
|
+
itemTemplate: z.ZodOptional<z.ZodObject<{
|
|
999
|
+
component: z.ZodString;
|
|
1000
|
+
span: z.ZodOptional<z.ZodNumber>;
|
|
1001
|
+
mdSpan: z.ZodOptional<z.ZodNumber>;
|
|
1002
|
+
lgSpan: z.ZodOptional<z.ZodNumber>;
|
|
1003
|
+
props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1004
|
+
}, z.core.$strip>>;
|
|
979
1005
|
}, z.core.$strip>, z.ZodObject<{
|
|
980
1006
|
id: z.ZodString;
|
|
981
1007
|
row: z.ZodNumber;
|
|
@@ -1226,6 +1252,7 @@ export declare const FormV2PropsDefinitionSchema: z.ZodObject<{
|
|
|
1226
1252
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
1227
1253
|
component: z.ZodLiteral<"List">;
|
|
1228
1254
|
props: z.ZodObject<{
|
|
1255
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1229
1256
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1230
1257
|
id: z.ZodString;
|
|
1231
1258
|
label: z.ZodString;
|
|
@@ -1237,6 +1264,14 @@ export declare const FormV2PropsDefinitionSchema: z.ZodObject<{
|
|
|
1237
1264
|
labelField: z.ZodOptional<z.ZodString>;
|
|
1238
1265
|
descriptionField: z.ZodOptional<z.ZodString>;
|
|
1239
1266
|
icon: z.ZodOptional<z.ZodString>;
|
|
1267
|
+
iterable: z.ZodOptional<z.ZodString>;
|
|
1268
|
+
itemTemplate: z.ZodOptional<z.ZodObject<{
|
|
1269
|
+
component: z.ZodString;
|
|
1270
|
+
span: z.ZodOptional<z.ZodNumber>;
|
|
1271
|
+
mdSpan: z.ZodOptional<z.ZodNumber>;
|
|
1272
|
+
lgSpan: z.ZodOptional<z.ZodNumber>;
|
|
1273
|
+
props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1274
|
+
}, z.core.$strip>>;
|
|
1240
1275
|
}, z.core.$strip>, z.ZodObject<{
|
|
1241
1276
|
id: z.ZodString;
|
|
1242
1277
|
row: z.ZodNumber;
|
|
@@ -1513,6 +1548,7 @@ export declare const CardBlockDefinitionSchema: z.ZodObject<{
|
|
|
1513
1548
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
1514
1549
|
component: z.ZodLiteral<"List">;
|
|
1515
1550
|
props: z.ZodObject<{
|
|
1551
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1516
1552
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1517
1553
|
id: z.ZodString;
|
|
1518
1554
|
label: z.ZodString;
|
|
@@ -1524,6 +1560,14 @@ export declare const CardBlockDefinitionSchema: z.ZodObject<{
|
|
|
1524
1560
|
labelField: z.ZodOptional<z.ZodString>;
|
|
1525
1561
|
descriptionField: z.ZodOptional<z.ZodString>;
|
|
1526
1562
|
icon: z.ZodOptional<z.ZodString>;
|
|
1563
|
+
iterable: z.ZodOptional<z.ZodString>;
|
|
1564
|
+
itemTemplate: z.ZodOptional<z.ZodObject<{
|
|
1565
|
+
component: z.ZodString;
|
|
1566
|
+
span: z.ZodOptional<z.ZodNumber>;
|
|
1567
|
+
mdSpan: z.ZodOptional<z.ZodNumber>;
|
|
1568
|
+
lgSpan: z.ZodOptional<z.ZodNumber>;
|
|
1569
|
+
props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1570
|
+
}, z.core.$strip>>;
|
|
1527
1571
|
}, z.core.$strip>, z.ZodObject<{
|
|
1528
1572
|
id: z.ZodString;
|
|
1529
1573
|
row: z.ZodNumber;
|
|
@@ -1893,6 +1937,7 @@ export declare const PageBlockDefinitionSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
1893
1937
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
1894
1938
|
component: z.ZodLiteral<"List">;
|
|
1895
1939
|
props: z.ZodObject<{
|
|
1940
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1896
1941
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1897
1942
|
id: z.ZodString;
|
|
1898
1943
|
label: z.ZodString;
|
|
@@ -1904,6 +1949,14 @@ export declare const PageBlockDefinitionSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
1904
1949
|
labelField: z.ZodOptional<z.ZodString>;
|
|
1905
1950
|
descriptionField: z.ZodOptional<z.ZodString>;
|
|
1906
1951
|
icon: z.ZodOptional<z.ZodString>;
|
|
1952
|
+
iterable: z.ZodOptional<z.ZodString>;
|
|
1953
|
+
itemTemplate: z.ZodOptional<z.ZodObject<{
|
|
1954
|
+
component: z.ZodString;
|
|
1955
|
+
span: z.ZodOptional<z.ZodNumber>;
|
|
1956
|
+
mdSpan: z.ZodOptional<z.ZodNumber>;
|
|
1957
|
+
lgSpan: z.ZodOptional<z.ZodNumber>;
|
|
1958
|
+
props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1959
|
+
}, z.core.$strip>>;
|
|
1907
1960
|
}, z.core.$strip>, z.ZodObject<{
|
|
1908
1961
|
id: z.ZodString;
|
|
1909
1962
|
row: z.ZodNumber;
|
|
@@ -2274,6 +2327,7 @@ export declare const PageDefinitionSchema: z.ZodObject<{
|
|
|
2274
2327
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
2275
2328
|
component: z.ZodLiteral<"List">;
|
|
2276
2329
|
props: z.ZodObject<{
|
|
2330
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2277
2331
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2278
2332
|
id: z.ZodString;
|
|
2279
2333
|
label: z.ZodString;
|
|
@@ -2285,6 +2339,14 @@ export declare const PageDefinitionSchema: z.ZodObject<{
|
|
|
2285
2339
|
labelField: z.ZodOptional<z.ZodString>;
|
|
2286
2340
|
descriptionField: z.ZodOptional<z.ZodString>;
|
|
2287
2341
|
icon: z.ZodOptional<z.ZodString>;
|
|
2342
|
+
iterable: z.ZodOptional<z.ZodString>;
|
|
2343
|
+
itemTemplate: z.ZodOptional<z.ZodObject<{
|
|
2344
|
+
component: z.ZodString;
|
|
2345
|
+
span: z.ZodOptional<z.ZodNumber>;
|
|
2346
|
+
mdSpan: z.ZodOptional<z.ZodNumber>;
|
|
2347
|
+
lgSpan: z.ZodOptional<z.ZodNumber>;
|
|
2348
|
+
props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2349
|
+
}, z.core.$strip>>;
|
|
2288
2350
|
}, z.core.$strip>, z.ZodObject<{
|
|
2289
2351
|
id: z.ZodString;
|
|
2290
2352
|
row: z.ZodNumber;
|
|
@@ -2841,6 +2903,7 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
|
|
|
2841
2903
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
2842
2904
|
component: z.ZodLiteral<"List">;
|
|
2843
2905
|
props: z.ZodObject<{
|
|
2906
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2844
2907
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2845
2908
|
id: z.ZodString;
|
|
2846
2909
|
label: z.ZodString;
|
|
@@ -2852,6 +2915,14 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
|
|
|
2852
2915
|
labelField: z.ZodOptional<z.ZodString>;
|
|
2853
2916
|
descriptionField: z.ZodOptional<z.ZodString>;
|
|
2854
2917
|
icon: z.ZodOptional<z.ZodString>;
|
|
2918
|
+
iterable: z.ZodOptional<z.ZodString>;
|
|
2919
|
+
itemTemplate: z.ZodOptional<z.ZodObject<{
|
|
2920
|
+
component: z.ZodString;
|
|
2921
|
+
span: z.ZodOptional<z.ZodNumber>;
|
|
2922
|
+
mdSpan: z.ZodOptional<z.ZodNumber>;
|
|
2923
|
+
lgSpan: z.ZodOptional<z.ZodNumber>;
|
|
2924
|
+
props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2925
|
+
}, z.core.$strip>>;
|
|
2855
2926
|
}, z.core.$strip>, z.ZodObject<{
|
|
2856
2927
|
id: z.ZodString;
|
|
2857
2928
|
row: z.ZodNumber;
|
|
@@ -3391,6 +3462,7 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
|
|
|
3391
3462
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
3392
3463
|
component: z.ZodLiteral<"List">;
|
|
3393
3464
|
props: z.ZodObject<{
|
|
3465
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3394
3466
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3395
3467
|
id: z.ZodString;
|
|
3396
3468
|
label: z.ZodString;
|
|
@@ -3402,6 +3474,14 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
|
|
|
3402
3474
|
labelField: z.ZodOptional<z.ZodString>;
|
|
3403
3475
|
descriptionField: z.ZodOptional<z.ZodString>;
|
|
3404
3476
|
icon: z.ZodOptional<z.ZodString>;
|
|
3477
|
+
iterable: z.ZodOptional<z.ZodString>;
|
|
3478
|
+
itemTemplate: z.ZodOptional<z.ZodObject<{
|
|
3479
|
+
component: z.ZodString;
|
|
3480
|
+
span: z.ZodOptional<z.ZodNumber>;
|
|
3481
|
+
mdSpan: z.ZodOptional<z.ZodNumber>;
|
|
3482
|
+
lgSpan: z.ZodOptional<z.ZodNumber>;
|
|
3483
|
+
props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3484
|
+
}, z.core.$strip>>;
|
|
3405
3485
|
}, z.core.$strip>, z.ZodObject<{
|
|
3406
3486
|
id: z.ZodString;
|
|
3407
3487
|
row: z.ZodNumber;
|
package/dist/schemas.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.SkedyulConfigSchema = exports.ProvisionConfigSchema = exports.WebhooksSchema = exports.WebhookHandlerDefinitionSchema = exports.WebhookHttpMethodSchema = exports.PageDefinitionSchema = exports.PageInstanceFilterSchema = exports.PageContextDefinitionSchema = exports.PageContextItemDefinitionSchema = exports.PageContextModeSchema = exports.PageBlockDefinitionSchema = exports.ListBlockDefinitionSchema = exports.LegacyFormBlockDefinitionSchema = exports.PageFieldDefinitionSchema = exports.CardBlockDefinitionSchema = exports.CardBlockHeaderSchema = exports.FormV2PropsDefinitionSchema = exports.FormV2ComponentDefinitionSchema = exports.FieldSettingComponentDefinitionSchema = exports.ModalFormDefinitionSchema = void 0;
|
|
3
|
+
exports.EmptyFormComponentDefinitionSchema = exports.ListComponentDefinitionSchema = exports.ListItemTemplateSchema = exports.FileSettingComponentDefinitionSchema = exports.ImageSettingComponentDefinitionSchema = exports.TimePickerComponentDefinitionSchema = exports.DatePickerComponentDefinitionSchema = exports.CheckboxComponentDefinitionSchema = exports.ComboboxComponentDefinitionSchema = exports.SelectComponentDefinitionSchema = exports.TextareaComponentDefinitionSchema = exports.InputComponentDefinitionSchema = exports.FormLayoutConfigDefinitionSchema = exports.FormLayoutRowDefinitionSchema = exports.FormLayoutColumnDefinitionSchema = exports.RelationshipExtensionSchema = exports.FieldSettingButtonPropsSchema = exports.FormV2StylePropsSchema = exports.PageActionDefinitionSchema = exports.PageFormHeaderSchema = exports.PageFieldSourceSchema = exports.PageFieldTypeSchema = exports.PageBlockTypeSchema = exports.PageTypeSchema = exports.WorkflowDefinitionSchema = exports.WorkflowActionSchema = exports.WorkflowActionInputSchema = exports.ChannelDefinitionSchema = exports.ChannelToolBindingsSchema = exports.RelationshipDefinitionSchema = exports.RelationshipLinkSchema = exports.OnDeleteBehaviorSchema = exports.RelationshipCardinalitySchema = exports.ModelDefinitionSchema = exports.ModelFieldDefinitionSchema = exports.AppFieldVisibilitySchema = exports.InlineFieldDefinitionSchema = exports.FieldOptionSchema = exports.FieldDataTypeSchema = exports.ResourceDependencySchema = exports.WorkflowDependencySchema = exports.ChannelDependencySchema = exports.ModelDependencySchema = exports.StructuredFilterSchema = exports.FieldOwnerSchema = exports.ResourceScopeSchema = exports.ComputeLayerTypeSchema = exports.EnvSchemaSchema = exports.EnvVariableDefinitionSchema = exports.EnvVisibilitySchema = void 0;
|
|
4
|
+
exports.SkedyulConfigSchema = exports.ProvisionConfigSchema = exports.WebhooksSchema = exports.WebhookHandlerDefinitionSchema = exports.WebhookHttpMethodSchema = exports.PageDefinitionSchema = exports.PageInstanceFilterSchema = exports.PageContextDefinitionSchema = exports.PageContextItemDefinitionSchema = exports.PageContextModeSchema = exports.PageBlockDefinitionSchema = exports.ListBlockDefinitionSchema = exports.LegacyFormBlockDefinitionSchema = exports.PageFieldDefinitionSchema = exports.CardBlockDefinitionSchema = exports.CardBlockHeaderSchema = exports.FormV2PropsDefinitionSchema = exports.FormV2ComponentDefinitionSchema = exports.FieldSettingComponentDefinitionSchema = exports.ModalFormDefinitionSchema = exports.AlertComponentDefinitionSchema = void 0;
|
|
5
5
|
exports.safeParseConfig = safeParseConfig;
|
|
6
6
|
exports.isModelDependency = isModelDependency;
|
|
7
7
|
exports.isChannelDependency = isChannelDependency;
|
|
@@ -338,10 +338,19 @@ exports.FileSettingComponentDefinitionSchema = exports.FormV2StylePropsSchema.ex
|
|
|
338
338
|
}).optional(),
|
|
339
339
|
}),
|
|
340
340
|
});
|
|
341
|
+
/** Item template schema for server-side iterable rendering */
|
|
342
|
+
exports.ListItemTemplateSchema = zod_1.z.object({
|
|
343
|
+
component: zod_1.z.string(),
|
|
344
|
+
span: zod_1.z.number().optional(),
|
|
345
|
+
mdSpan: zod_1.z.number().optional(),
|
|
346
|
+
lgSpan: zod_1.z.number().optional(),
|
|
347
|
+
props: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
348
|
+
});
|
|
341
349
|
/** List component definition */
|
|
342
350
|
exports.ListComponentDefinitionSchema = exports.FormV2StylePropsSchema.extend({
|
|
343
351
|
component: zod_1.z.literal('List'),
|
|
344
352
|
props: zod_1.z.object({
|
|
353
|
+
title: zod_1.z.string().optional(),
|
|
345
354
|
items: zod_1.z.array(zod_1.z.object({
|
|
346
355
|
id: zod_1.z.string(),
|
|
347
356
|
label: zod_1.z.string(),
|
|
@@ -353,6 +362,10 @@ exports.ListComponentDefinitionSchema = exports.FormV2StylePropsSchema.extend({
|
|
|
353
362
|
labelField: zod_1.z.string().optional(),
|
|
354
363
|
descriptionField: zod_1.z.string().optional(),
|
|
355
364
|
icon: zod_1.z.string().optional(),
|
|
365
|
+
/** Context variable name to iterate over (e.g., 'phone_numbers') */
|
|
366
|
+
iterable: zod_1.z.string().optional(),
|
|
367
|
+
/** Template for each item - use {{ item.xyz }} for field values */
|
|
368
|
+
itemTemplate: exports.ListItemTemplateSchema.optional(),
|
|
356
369
|
});
|
|
357
370
|
/** EmptyForm component definition */
|
|
358
371
|
exports.EmptyFormComponentDefinitionSchema = exports.FormV2StylePropsSchema.extend({
|