skedyul 0.1.86 → 0.1.91
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 +11 -1
- package/dist/schemas.d.ts +25 -0
- package/dist/schemas.js +7 -1
- package/package.json +1 -1
package/dist/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1769139339241
|
package/dist/config.d.ts
CHANGED
|
@@ -141,7 +141,7 @@ export interface WorkflowDefinition {
|
|
|
141
141
|
actions: WorkflowAction[];
|
|
142
142
|
}
|
|
143
143
|
export type PageType = 'INSTANCE' | 'LIST';
|
|
144
|
-
export type PageBlockType = 'form' | 'spreadsheet' | 'kanban' | 'calendar' | 'link';
|
|
144
|
+
export type PageBlockType = 'form' | 'spreadsheet' | 'kanban' | 'calendar' | 'link' | 'list';
|
|
145
145
|
export type PageFieldType = 'STRING' | 'FILE' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'SELECT' | 'FORM' | 'RELATIONSHIP';
|
|
146
146
|
export interface PageFieldSource {
|
|
147
147
|
model: string;
|
|
@@ -182,6 +182,16 @@ export interface PageBlockDefinition {
|
|
|
182
182
|
title?: string;
|
|
183
183
|
fields?: PageFieldDefinition[];
|
|
184
184
|
readonly?: boolean;
|
|
185
|
+
/** For list block type: Model handle to fetch instances from */
|
|
186
|
+
model?: string;
|
|
187
|
+
/** For list block type: Field to use as the tile label */
|
|
188
|
+
labelField?: string;
|
|
189
|
+
/** For list block type: Field to use as the tile description */
|
|
190
|
+
descriptionField?: string;
|
|
191
|
+
/** For list block type: Icon for each tile */
|
|
192
|
+
icon?: string;
|
|
193
|
+
/** For list block type: Message when no items */
|
|
194
|
+
emptyMessage?: string;
|
|
185
195
|
}
|
|
186
196
|
export interface PageInstanceFilter {
|
|
187
197
|
model: string;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -355,6 +355,7 @@ export declare const PageTypeSchema: z.ZodEnum<{
|
|
|
355
355
|
LIST: "LIST";
|
|
356
356
|
}>;
|
|
357
357
|
export declare const PageBlockTypeSchema: z.ZodEnum<{
|
|
358
|
+
list: "list";
|
|
358
359
|
form: "form";
|
|
359
360
|
spreadsheet: "spreadsheet";
|
|
360
361
|
kanban: "kanban";
|
|
@@ -425,6 +426,7 @@ export type PageFieldDefinition = z.infer<typeof PageFieldDefinitionBaseSchema>
|
|
|
425
426
|
export declare const PageFieldDefinitionSchema: z.ZodType<PageFieldDefinition>;
|
|
426
427
|
export declare const PageBlockDefinitionSchema: z.ZodObject<{
|
|
427
428
|
type: z.ZodEnum<{
|
|
429
|
+
list: "list";
|
|
428
430
|
form: "form";
|
|
429
431
|
spreadsheet: "spreadsheet";
|
|
430
432
|
kanban: "kanban";
|
|
@@ -434,6 +436,11 @@ export declare const PageBlockDefinitionSchema: z.ZodObject<{
|
|
|
434
436
|
title: z.ZodOptional<z.ZodString>;
|
|
435
437
|
fields: z.ZodOptional<z.ZodArray<z.ZodType<PageFieldDefinition, unknown, z.core.$ZodTypeInternals<PageFieldDefinition, unknown>>>>;
|
|
436
438
|
readonly: z.ZodOptional<z.ZodBoolean>;
|
|
439
|
+
model: z.ZodOptional<z.ZodString>;
|
|
440
|
+
labelField: z.ZodOptional<z.ZodString>;
|
|
441
|
+
descriptionField: z.ZodOptional<z.ZodString>;
|
|
442
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
443
|
+
emptyMessage: z.ZodOptional<z.ZodString>;
|
|
437
444
|
}, z.core.$strip>;
|
|
438
445
|
export declare const PageInstanceFilterSchema: z.ZodObject<{
|
|
439
446
|
model: z.ZodString;
|
|
@@ -450,6 +457,7 @@ export declare const PageDefinitionSchema: z.ZodObject<{
|
|
|
450
457
|
navigation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
451
458
|
blocks: z.ZodArray<z.ZodObject<{
|
|
452
459
|
type: z.ZodEnum<{
|
|
460
|
+
list: "list";
|
|
453
461
|
form: "form";
|
|
454
462
|
spreadsheet: "spreadsheet";
|
|
455
463
|
kanban: "kanban";
|
|
@@ -459,6 +467,11 @@ export declare const PageDefinitionSchema: z.ZodObject<{
|
|
|
459
467
|
title: z.ZodOptional<z.ZodString>;
|
|
460
468
|
fields: z.ZodOptional<z.ZodArray<z.ZodType<PageFieldDefinition, unknown, z.core.$ZodTypeInternals<PageFieldDefinition, unknown>>>>;
|
|
461
469
|
readonly: z.ZodOptional<z.ZodBoolean>;
|
|
470
|
+
model: z.ZodOptional<z.ZodString>;
|
|
471
|
+
labelField: z.ZodOptional<z.ZodString>;
|
|
472
|
+
descriptionField: z.ZodOptional<z.ZodString>;
|
|
473
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
474
|
+
emptyMessage: z.ZodOptional<z.ZodString>;
|
|
462
475
|
}, z.core.$strip>>;
|
|
463
476
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
464
477
|
handle: z.ZodString;
|
|
@@ -678,6 +691,7 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
|
|
|
678
691
|
navigation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
679
692
|
blocks: z.ZodArray<z.ZodObject<{
|
|
680
693
|
type: z.ZodEnum<{
|
|
694
|
+
list: "list";
|
|
681
695
|
form: "form";
|
|
682
696
|
spreadsheet: "spreadsheet";
|
|
683
697
|
kanban: "kanban";
|
|
@@ -687,6 +701,11 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
|
|
|
687
701
|
title: z.ZodOptional<z.ZodString>;
|
|
688
702
|
fields: z.ZodOptional<z.ZodArray<z.ZodType<PageFieldDefinition, unknown, z.core.$ZodTypeInternals<PageFieldDefinition, unknown>>>>;
|
|
689
703
|
readonly: z.ZodOptional<z.ZodBoolean>;
|
|
704
|
+
model: z.ZodOptional<z.ZodString>;
|
|
705
|
+
labelField: z.ZodOptional<z.ZodString>;
|
|
706
|
+
descriptionField: z.ZodOptional<z.ZodString>;
|
|
707
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
708
|
+
emptyMessage: z.ZodOptional<z.ZodString>;
|
|
690
709
|
}, z.core.$strip>>;
|
|
691
710
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
692
711
|
handle: z.ZodString;
|
|
@@ -889,6 +908,7 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
|
|
|
889
908
|
navigation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
890
909
|
blocks: z.ZodArray<z.ZodObject<{
|
|
891
910
|
type: z.ZodEnum<{
|
|
911
|
+
list: "list";
|
|
892
912
|
form: "form";
|
|
893
913
|
spreadsheet: "spreadsheet";
|
|
894
914
|
kanban: "kanban";
|
|
@@ -898,6 +918,11 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
|
|
|
898
918
|
title: z.ZodOptional<z.ZodString>;
|
|
899
919
|
fields: z.ZodOptional<z.ZodArray<z.ZodType<PageFieldDefinition, unknown, z.core.$ZodTypeInternals<PageFieldDefinition, unknown>>>>;
|
|
900
920
|
readonly: z.ZodOptional<z.ZodBoolean>;
|
|
921
|
+
model: z.ZodOptional<z.ZodString>;
|
|
922
|
+
labelField: z.ZodOptional<z.ZodString>;
|
|
923
|
+
descriptionField: z.ZodOptional<z.ZodString>;
|
|
924
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
925
|
+
emptyMessage: z.ZodOptional<z.ZodString>;
|
|
901
926
|
}, z.core.$strip>>;
|
|
902
927
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
903
928
|
handle: z.ZodString;
|
package/dist/schemas.js
CHANGED
|
@@ -171,7 +171,7 @@ exports.WorkflowDefinitionSchema = zod_1.z.object({
|
|
|
171
171
|
// Page Schemas
|
|
172
172
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
173
173
|
exports.PageTypeSchema = zod_1.z.enum(['INSTANCE', 'LIST']);
|
|
174
|
-
exports.PageBlockTypeSchema = zod_1.z.enum(['form', 'spreadsheet', 'kanban', 'calendar', 'link']);
|
|
174
|
+
exports.PageBlockTypeSchema = zod_1.z.enum(['form', 'spreadsheet', 'kanban', 'calendar', 'link', 'list']);
|
|
175
175
|
exports.PageFieldTypeSchema = zod_1.z.enum(['STRING', 'FILE', 'NUMBER', 'DATE', 'BOOLEAN', 'SELECT', 'FORM']);
|
|
176
176
|
exports.PageFieldSourceSchema = zod_1.z.object({
|
|
177
177
|
model: zod_1.z.string(),
|
|
@@ -211,6 +211,12 @@ exports.PageBlockDefinitionSchema = zod_1.z.object({
|
|
|
211
211
|
title: zod_1.z.string().optional(),
|
|
212
212
|
fields: zod_1.z.array(exports.PageFieldDefinitionSchema).optional(),
|
|
213
213
|
readonly: zod_1.z.boolean().optional(),
|
|
214
|
+
// For list block type
|
|
215
|
+
model: zod_1.z.string().optional(),
|
|
216
|
+
labelField: zod_1.z.string().optional(),
|
|
217
|
+
descriptionField: zod_1.z.string().optional(),
|
|
218
|
+
icon: zod_1.z.string().optional(),
|
|
219
|
+
emptyMessage: zod_1.z.string().optional(),
|
|
214
220
|
});
|
|
215
221
|
exports.PageInstanceFilterSchema = zod_1.z.object({
|
|
216
222
|
model: zod_1.z.string(),
|