skedyul 1.0.6 → 1.0.8
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/types/model.d.ts +3 -11
- package/dist/index.d.ts +1 -1
- package/dist/schemas.d.ts +0 -70
- package/dist/schemas.js +0 -1
- package/package.json +1 -1
package/dist/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1772517901674
|
|
@@ -31,10 +31,9 @@ export type FieldType = 'string' | 'long_string' | 'text' | 'number' | 'boolean'
|
|
|
31
31
|
*/
|
|
32
32
|
export type OnDelete = 'none' | 'cascade' | 'restrict';
|
|
33
33
|
/**
|
|
34
|
-
* Inline field definition for
|
|
35
|
-
* @deprecated Use InlineFieldDefinition instead
|
|
34
|
+
* Inline field definition for options and validation constraints.
|
|
36
35
|
*/
|
|
37
|
-
export interface
|
|
36
|
+
export interface InlineFieldDefinition {
|
|
38
37
|
/** Limit number of selections for select fields */
|
|
39
38
|
limitChoices?: number;
|
|
40
39
|
/** Options for select/dropdown fields */
|
|
@@ -52,11 +51,6 @@ export interface FieldConstraints {
|
|
|
52
51
|
/** Regex pattern for validation */
|
|
53
52
|
pattern?: string;
|
|
54
53
|
}
|
|
55
|
-
/**
|
|
56
|
-
* Inline field definition for options and validation constraints.
|
|
57
|
-
* This is the preferred name - aligns with Zod schema and skedyul-core.
|
|
58
|
-
*/
|
|
59
|
-
export type InlineFieldDefinition = FieldConstraints;
|
|
60
54
|
/**
|
|
61
55
|
* Field visibility settings in the UI.
|
|
62
56
|
*/
|
|
@@ -80,10 +74,8 @@ export interface FieldDefinition {
|
|
|
80
74
|
type?: FieldType;
|
|
81
75
|
/** Reference to a shared field definition by handle */
|
|
82
76
|
definitionHandle?: string;
|
|
83
|
-
/** Inline definition with options and constraints
|
|
77
|
+
/** Inline definition with options and constraints */
|
|
84
78
|
definition?: InlineFieldDefinition;
|
|
85
|
-
/** @deprecated Use 'definition' instead. Inline constraints and options */
|
|
86
|
-
constraints?: FieldConstraints;
|
|
87
79
|
/** Whether this field is required */
|
|
88
80
|
required?: boolean;
|
|
89
81
|
/** Whether this field must be unique across all records */
|
package/dist/index.d.ts
CHANGED
|
@@ -16,4 +16,4 @@ declare const _default: {
|
|
|
16
16
|
};
|
|
17
17
|
export default _default;
|
|
18
18
|
export { defineConfig, defineModel, defineChannel, definePage, defineWorkflow, defineAgent, defineEnv, defineNavigation, loadConfig, validateConfig, CONFIG_FILE_NAMES, getAllEnvKeys, getRequiredInstallEnvKeys, } from './config';
|
|
19
|
-
export type { SkedyulConfig, SerializableSkedyulConfig, InstallConfig, ProvisionConfig, BaseDefinition, Scope, FieldOwner, Visibility, ComputeLayer, StructuredFilter, FieldOption, EnvVariable, EnvSchema, FieldType, Cardinality, OnDelete,
|
|
19
|
+
export type { SkedyulConfig, SerializableSkedyulConfig, InstallConfig, ProvisionConfig, BaseDefinition, Scope, FieldOwner, Visibility, ComputeLayer, StructuredFilter, FieldOption, EnvVariable, EnvSchema, FieldType, Cardinality, OnDelete, InlineFieldDefinition, FieldVisibility, FieldDefinition, ModelDefinition, RelationshipLink, RelationshipDefinition, CapabilityType, ChannelCapability, ChannelFieldPermissions, ChannelField, ChannelDefinition, WorkflowActionInput, WorkflowAction, WorkflowDefinition, AgentDefinition, NavigationItem, NavigationSection, NavigationSidebar, BreadcrumbItem, NavigationBreadcrumb, NavigationConfig, ContextMode, ContextItemModel, ContextItemTool, ContextItem, ContextDefinition, FormStyleProps, ButtonVariant, ButtonSize, ButtonProps, RelationshipExtension, FormHeader, ActionDefinition, ModalFormDefinition, InputComponent, TextareaComponent, SelectComponent, ComboboxComponent, CheckboxComponent, DatePickerComponent, TimePickerComponent, StatusIndicator, FieldSettingComponent, ImageSettingComponent, FileSettingComponent, ListItemTemplate, ListComponent, EmptyFormComponent, AlertComponent, FormComponent, FormLayoutColumn, FormLayoutRow, FormLayoutConfig, FormProps, CardHeader, CardBlock, ListBlock, ModelMapperBlock, BlockDefinition, PageType, PageDefinition, HttpMethod, WebhookRequest, WebhookHandlerContext, WebhookHandlerResponse, WebhookHandlerFn, WebhookHandlerDefinition, Webhooks, WebhookHandlerMetadata, ModelDependency, ChannelDependency, WorkflowDependency, ResourceDependency, } from './config';
|
package/dist/schemas.d.ts
CHANGED
|
@@ -123,20 +123,6 @@ export declare const ModelFieldDefinitionSchema: z.ZodObject<{
|
|
|
123
123
|
relatedModel: z.ZodOptional<z.ZodString>;
|
|
124
124
|
pattern: z.ZodOptional<z.ZodString>;
|
|
125
125
|
}, z.core.$strip>>;
|
|
126
|
-
constraints: z.ZodOptional<z.ZodObject<{
|
|
127
|
-
limitChoices: z.ZodOptional<z.ZodNumber>;
|
|
128
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
129
|
-
label: z.ZodString;
|
|
130
|
-
value: z.ZodString;
|
|
131
|
-
color: z.ZodOptional<z.ZodString>;
|
|
132
|
-
}, z.core.$strip>>>;
|
|
133
|
-
minLength: z.ZodOptional<z.ZodNumber>;
|
|
134
|
-
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
135
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
136
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
137
|
-
relatedModel: z.ZodOptional<z.ZodString>;
|
|
138
|
-
pattern: z.ZodOptional<z.ZodString>;
|
|
139
|
-
}, z.core.$strip>>;
|
|
140
126
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
141
127
|
unique: z.ZodOptional<z.ZodBoolean>;
|
|
142
128
|
system: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -193,20 +179,6 @@ export declare const ModelDefinitionSchema: z.ZodObject<{
|
|
|
193
179
|
relatedModel: z.ZodOptional<z.ZodString>;
|
|
194
180
|
pattern: z.ZodOptional<z.ZodString>;
|
|
195
181
|
}, z.core.$strip>>;
|
|
196
|
-
constraints: z.ZodOptional<z.ZodObject<{
|
|
197
|
-
limitChoices: z.ZodOptional<z.ZodNumber>;
|
|
198
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
199
|
-
label: z.ZodString;
|
|
200
|
-
value: z.ZodString;
|
|
201
|
-
color: z.ZodOptional<z.ZodString>;
|
|
202
|
-
}, z.core.$strip>>>;
|
|
203
|
-
minLength: z.ZodOptional<z.ZodNumber>;
|
|
204
|
-
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
205
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
206
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
207
|
-
relatedModel: z.ZodOptional<z.ZodString>;
|
|
208
|
-
pattern: z.ZodOptional<z.ZodString>;
|
|
209
|
-
}, z.core.$strip>>;
|
|
210
182
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
211
183
|
unique: z.ZodOptional<z.ZodBoolean>;
|
|
212
184
|
system: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2851,20 +2823,6 @@ export declare const InstallConfigSchema: z.ZodObject<{
|
|
|
2851
2823
|
relatedModel: z.ZodOptional<z.ZodString>;
|
|
2852
2824
|
pattern: z.ZodOptional<z.ZodString>;
|
|
2853
2825
|
}, z.core.$strip>>;
|
|
2854
|
-
constraints: z.ZodOptional<z.ZodObject<{
|
|
2855
|
-
limitChoices: z.ZodOptional<z.ZodNumber>;
|
|
2856
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2857
|
-
label: z.ZodString;
|
|
2858
|
-
value: z.ZodString;
|
|
2859
|
-
color: z.ZodOptional<z.ZodString>;
|
|
2860
|
-
}, z.core.$strip>>>;
|
|
2861
|
-
minLength: z.ZodOptional<z.ZodNumber>;
|
|
2862
|
-
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
2863
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
2864
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
2865
|
-
relatedModel: z.ZodOptional<z.ZodString>;
|
|
2866
|
-
pattern: z.ZodOptional<z.ZodString>;
|
|
2867
|
-
}, z.core.$strip>>;
|
|
2868
2826
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2869
2827
|
unique: z.ZodOptional<z.ZodBoolean>;
|
|
2870
2828
|
system: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2967,20 +2925,6 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
|
|
|
2967
2925
|
relatedModel: z.ZodOptional<z.ZodString>;
|
|
2968
2926
|
pattern: z.ZodOptional<z.ZodString>;
|
|
2969
2927
|
}, z.core.$strip>>;
|
|
2970
|
-
constraints: z.ZodOptional<z.ZodObject<{
|
|
2971
|
-
limitChoices: z.ZodOptional<z.ZodNumber>;
|
|
2972
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2973
|
-
label: z.ZodString;
|
|
2974
|
-
value: z.ZodString;
|
|
2975
|
-
color: z.ZodOptional<z.ZodString>;
|
|
2976
|
-
}, z.core.$strip>>>;
|
|
2977
|
-
minLength: z.ZodOptional<z.ZodNumber>;
|
|
2978
|
-
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
2979
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
2980
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
2981
|
-
relatedModel: z.ZodOptional<z.ZodString>;
|
|
2982
|
-
pattern: z.ZodOptional<z.ZodString>;
|
|
2983
|
-
}, z.core.$strip>>;
|
|
2984
2928
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2985
2929
|
unique: z.ZodOptional<z.ZodBoolean>;
|
|
2986
2930
|
system: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3608,20 +3552,6 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
|
|
|
3608
3552
|
relatedModel: z.ZodOptional<z.ZodString>;
|
|
3609
3553
|
pattern: z.ZodOptional<z.ZodString>;
|
|
3610
3554
|
}, z.core.$strip>>;
|
|
3611
|
-
constraints: z.ZodOptional<z.ZodObject<{
|
|
3612
|
-
limitChoices: z.ZodOptional<z.ZodNumber>;
|
|
3613
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3614
|
-
label: z.ZodString;
|
|
3615
|
-
value: z.ZodString;
|
|
3616
|
-
color: z.ZodOptional<z.ZodString>;
|
|
3617
|
-
}, z.core.$strip>>>;
|
|
3618
|
-
minLength: z.ZodOptional<z.ZodNumber>;
|
|
3619
|
-
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
3620
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
3621
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
3622
|
-
relatedModel: z.ZodOptional<z.ZodString>;
|
|
3623
|
-
pattern: z.ZodOptional<z.ZodString>;
|
|
3624
|
-
}, z.core.$strip>>;
|
|
3625
3555
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
3626
3556
|
unique: z.ZodOptional<z.ZodBoolean>;
|
|
3627
3557
|
system: z.ZodOptional<z.ZodBoolean>;
|
package/dist/schemas.js
CHANGED
|
@@ -88,7 +88,6 @@ exports.ModelFieldDefinitionSchema = v4_1.z.object({
|
|
|
88
88
|
type: exports.FieldDataTypeSchema.optional(),
|
|
89
89
|
definitionHandle: v4_1.z.string().optional(),
|
|
90
90
|
definition: exports.InlineFieldDefinitionSchema.optional(),
|
|
91
|
-
constraints: exports.InlineFieldDefinitionSchema.optional(), // Legacy alias for definition
|
|
92
91
|
required: v4_1.z.boolean().optional(),
|
|
93
92
|
unique: v4_1.z.boolean().optional(),
|
|
94
93
|
system: v4_1.z.boolean().optional(),
|