@baseplate-dev/project-builder-lib 0.2.1 → 0.2.2
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/definition/feature/feature-utils.js +1 -1
- package/dist/definition/feature/feature-utils.js.map +1 -1
- package/dist/definition/project-definition-container.d.ts +3 -2
- package/dist/definition/project-definition-container.d.ts.map +1 -1
- package/dist/definition/project-definition-container.js +8 -6
- package/dist/definition/project-definition-container.js.map +1 -1
- package/dist/definition/project-definition-container.test-utils.d.ts.map +1 -1
- package/dist/definition/project-definition-container.test-utils.js +3 -7
- package/dist/definition/project-definition-container.test-utils.js.map +1 -1
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +2 -0
- package/dist/migrations/index.js.map +1 -1
- package/dist/migrations/migration-015-null-parent-refs.d.ts +17 -0
- package/dist/migrations/migration-015-null-parent-refs.d.ts.map +1 -0
- package/dist/migrations/migration-015-null-parent-refs.js +20 -0
- package/dist/migrations/migration-015-null-parent-refs.js.map +1 -0
- package/dist/parser/parser.d.ts +2 -2
- package/dist/parser/parser.d.ts.map +1 -1
- package/dist/parser/parser.js +11 -7
- package/dist/parser/parser.js.map +1 -1
- package/dist/plugins/migrations/run-migrations.js.map +1 -1
- package/dist/plugins/schema/index.d.ts +0 -2
- package/dist/plugins/schema/index.d.ts.map +1 -1
- package/dist/plugins/schema/index.js +0 -2
- package/dist/plugins/schema/index.js.map +1 -1
- package/dist/plugins/spec/config-spec.d.ts +3 -3
- package/dist/plugins/spec/config-spec.d.ts.map +1 -1
- package/dist/plugins/spec/config-spec.js +3 -3
- package/dist/plugins/spec/config-spec.js.map +1 -1
- package/dist/references/{ref-builder.d.ts → definition-ref-builder.d.ts} +13 -137
- package/dist/references/definition-ref-builder.d.ts.map +1 -0
- package/dist/references/definition-ref-builder.js +242 -0
- package/dist/references/definition-ref-builder.js.map +1 -0
- package/dist/references/deserialize-schema.d.ts +12 -1
- package/dist/references/deserialize-schema.d.ts.map +1 -1
- package/dist/references/deserialize-schema.js +24 -4
- package/dist/references/deserialize-schema.js.map +1 -1
- package/dist/references/extend-parser-context-with-refs.d.ts +16 -0
- package/dist/references/extend-parser-context-with-refs.d.ts.map +1 -0
- package/dist/references/extend-parser-context-with-refs.js +82 -0
- package/dist/references/extend-parser-context-with-refs.js.map +1 -0
- package/dist/references/extract-definition-refs.d.ts +19 -0
- package/dist/references/extract-definition-refs.d.ts.map +1 -0
- package/dist/references/extract-definition-refs.js +63 -0
- package/dist/references/extract-definition-refs.js.map +1 -0
- package/dist/references/fix-ref-deletions.d.ts +6 -6
- package/dist/references/fix-ref-deletions.d.ts.map +1 -1
- package/dist/references/fix-ref-deletions.js +13 -5
- package/dist/references/fix-ref-deletions.js.map +1 -1
- package/dist/references/index.d.ts +2 -1
- package/dist/references/index.d.ts.map +1 -1
- package/dist/references/index.js +2 -1
- package/dist/references/index.js.map +1 -1
- package/dist/references/markers.d.ts +22 -0
- package/dist/references/markers.d.ts.map +1 -0
- package/dist/references/markers.js +21 -0
- package/dist/references/markers.js.map +1 -0
- package/dist/references/parse-schema-with-references.d.ts +2 -2
- package/dist/references/parse-schema-with-references.d.ts.map +1 -1
- package/dist/references/parse-schema-with-references.js +13 -4
- package/dist/references/parse-schema-with-references.js.map +1 -1
- package/dist/references/resolve-zod-ref-payload-names.d.ts +1 -1
- package/dist/references/resolve-zod-ref-payload-names.d.ts.map +1 -1
- package/dist/references/serialize-schema.d.ts +2 -2
- package/dist/references/serialize-schema.d.ts.map +1 -1
- package/dist/references/serialize-schema.js +4 -3
- package/dist/references/serialize-schema.js.map +1 -1
- package/dist/references/strip-ref-markers.d.ts +7 -0
- package/dist/references/strip-ref-markers.d.ts.map +1 -0
- package/dist/references/strip-ref-markers.js +22 -0
- package/dist/references/strip-ref-markers.js.map +1 -0
- package/dist/references/types.d.ts +2 -2
- package/dist/references/types.d.ts.map +1 -1
- package/dist/schema/apps/admin/app.d.ts +958 -200
- package/dist/schema/apps/admin/app.d.ts.map +1 -1
- package/dist/schema/apps/admin/app.js +2 -3
- package/dist/schema/apps/admin/app.js.map +1 -1
- package/dist/schema/apps/admin/sections/base.d.ts +15 -3
- package/dist/schema/apps/admin/sections/base.d.ts.map +1 -1
- package/dist/schema/apps/admin/sections/base.js +4 -4
- package/dist/schema/apps/admin/sections/base.js.map +1 -1
- package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.d.ts +12 -6
- package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.d.ts.map +1 -1
- package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.js +9 -5
- package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.js.map +1 -1
- package/dist/schema/apps/admin/sections/crud-form/built-in-input.d.ts +19 -19
- package/dist/schema/apps/admin/sections/crud-form/built-in-input.d.ts.map +1 -1
- package/dist/schema/apps/admin/sections/crud-form/built-in-input.js +18 -19
- package/dist/schema/apps/admin/sections/crud-form/built-in-input.js.map +1 -1
- package/dist/schema/apps/admin/sections/crud-form/types.d.ts +1 -1
- package/dist/schema/apps/admin/sections/crud-form/types.d.ts.map +1 -1
- package/dist/schema/apps/admin/sections/crud.d.ts +468 -130
- package/dist/schema/apps/admin/sections/crud.d.ts.map +1 -1
- package/dist/schema/apps/admin/sections/crud.js +14 -14
- package/dist/schema/apps/admin/sections/crud.js.map +1 -1
- package/dist/schema/apps/backend/index.d.ts +1 -1
- package/dist/schema/apps/types.d.ts +1 -1
- package/dist/schema/apps/types.js +1 -1
- package/dist/schema/apps/web/index.d.ts +2 -2
- package/dist/schema/apps/web/index.d.ts.map +1 -1
- package/dist/schema/apps/web/index.js +2 -3
- package/dist/schema/apps/web/index.js.map +1 -1
- package/dist/schema/auth/index.d.ts +1 -1
- package/dist/schema/auth/index.js +1 -1
- package/dist/schema/creator/schema-creator.d.ts +3 -2
- package/dist/schema/creator/schema-creator.d.ts.map +1 -1
- package/dist/schema/creator/schema-creator.js +8 -1
- package/dist/schema/creator/schema-creator.js.map +1 -1
- package/dist/schema/creator/types.d.ts +35 -2
- package/dist/schema/creator/types.d.ts.map +1 -1
- package/dist/schema/features/feature.d.ts +29 -15
- package/dist/schema/features/feature.d.ts.map +1 -1
- package/dist/schema/features/feature.js +7 -4
- package/dist/schema/features/feature.js.map +1 -1
- package/dist/schema/features/theme.d.ts +12 -12
- package/dist/schema/models/enums.d.ts +62 -19
- package/dist/schema/models/enums.d.ts.map +1 -1
- package/dist/schema/models/enums.js +5 -4
- package/dist/schema/models/enums.js.map +1 -1
- package/dist/schema/models/graphql.d.ts +9 -9
- package/dist/schema/models/graphql.d.ts.map +1 -1
- package/dist/schema/models/graphql.js +12 -13
- package/dist/schema/models/graphql.js.map +1 -1
- package/dist/schema/models/index.d.ts +545 -131
- package/dist/schema/models/index.d.ts.map +1 -1
- package/dist/schema/models/index.js +24 -19
- package/dist/schema/models/index.js.map +1 -1
- package/dist/schema/models/transformers/built-in-transformers.d.ts +87 -23
- package/dist/schema/models/transformers/built-in-transformers.d.ts.map +1 -1
- package/dist/schema/models/transformers/built-in-transformers.js +10 -10
- package/dist/schema/models/transformers/built-in-transformers.js.map +1 -1
- package/dist/schema/models/transformers/transformers.d.ts +14 -8
- package/dist/schema/models/transformers/transformers.d.ts.map +1 -1
- package/dist/schema/models/transformers/transformers.js +9 -5
- package/dist/schema/models/transformers/transformers.js.map +1 -1
- package/dist/schema/models/transformers/types.d.ts +4 -3
- package/dist/schema/models/transformers/types.d.ts.map +1 -1
- package/dist/schema/models/transformers/types.js +2 -4
- package/dist/schema/models/transformers/types.js.map +1 -1
- package/dist/schema/plugins/definition.d.ts +64 -70
- package/dist/schema/plugins/definition.d.ts.map +1 -1
- package/dist/schema/plugins/definition.js +18 -16
- package/dist/schema/plugins/definition.js.map +1 -1
- package/dist/schema/project-definition.d.ts +1960 -534
- package/dist/schema/project-definition.d.ts.map +1 -1
- package/dist/schema/project-definition.js +1 -2
- package/dist/schema/project-definition.js.map +1 -1
- package/dist/schema/settings.d.ts +15 -15
- package/dist/schema/template-extractor/index.d.ts +1 -1
- package/dist/tools/model-merger/model-merger.d.ts +6 -6
- package/dist/tools/model-merger/model-merger.d.ts.map +1 -1
- package/dist/web/hooks/index.d.ts +1 -1
- package/dist/web/hooks/index.d.ts.map +1 -1
- package/dist/web/hooks/index.js +1 -1
- package/dist/web/hooks/index.js.map +1 -1
- package/dist/web/hooks/use-definition-schema.d.ts +3 -0
- package/dist/web/hooks/use-definition-schema.d.ts.map +1 -0
- package/dist/web/hooks/use-definition-schema.js +7 -0
- package/dist/web/hooks/use-definition-schema.js.map +1 -0
- package/dist/web/hooks/use-project-definition.d.ts +3 -3
- package/dist/web/hooks/use-project-definition.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/plugins/schema/common.d.ts +0 -6
- package/dist/plugins/schema/common.d.ts.map +0 -1
- package/dist/plugins/schema/common.js +0 -2
- package/dist/plugins/schema/common.js.map +0 -1
- package/dist/plugins/schema/parser.d.ts +0 -19
- package/dist/plugins/schema/parser.d.ts.map +0 -1
- package/dist/plugins/schema/parser.js +0 -41
- package/dist/plugins/schema/parser.js.map +0 -1
- package/dist/plugins/schema/zod-with-plugins.d.ts +0 -12
- package/dist/plugins/schema/zod-with-plugins.d.ts.map +0 -1
- package/dist/plugins/schema/zod-with-plugins.js +0 -26
- package/dist/plugins/schema/zod-with-plugins.js.map +0 -1
- package/dist/references/ref-builder.d.ts.map +0 -1
- package/dist/references/ref-builder.js +0 -492
- package/dist/references/ref-builder.js.map +0 -1
- package/dist/web/hooks/use-plugin-enhanced-schema.d.ts +0 -4
- package/dist/web/hooks/use-plugin-enhanced-schema.d.ts.map +0 -1
- package/dist/web/hooks/use-plugin-enhanced-schema.js +0 -8
- package/dist/web/hooks/use-plugin-enhanced-schema.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { def } from '#src/schema/creator/index.js';
|
|
3
|
-
export declare const createAdminCrudForeignDisplaySchema: (
|
|
3
|
+
export declare const createAdminCrudForeignDisplaySchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
|
|
4
4
|
type: z.ZodLiteral<"foreign">;
|
|
5
|
-
localRelationRef:
|
|
5
|
+
localRelationRef: z.ZodEffects<z.ZodString, string, string>;
|
|
6
6
|
labelExpression: z.ZodString;
|
|
7
7
|
valueExpression: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -17,9 +17,9 @@ export declare const createAdminCrudForeignDisplaySchema: (options: import("#src
|
|
|
17
17
|
valueExpression: string;
|
|
18
18
|
}>;
|
|
19
19
|
export type AdminCrudForeignDisplayConfig = def.InferOutput<typeof createAdminCrudForeignDisplaySchema>;
|
|
20
|
-
export declare const createAdminCrudTextDisplaySchema: (
|
|
20
|
+
export declare const createAdminCrudTextDisplaySchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
|
|
21
21
|
type: z.ZodLiteral<"text">;
|
|
22
|
-
modelFieldRef:
|
|
22
|
+
modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
24
|
type: "text";
|
|
25
25
|
modelFieldRef: string;
|
|
@@ -28,9 +28,9 @@ export declare const createAdminCrudTextDisplaySchema: (options: import("#src/sc
|
|
|
28
28
|
modelFieldRef: string;
|
|
29
29
|
}>;
|
|
30
30
|
export type AdminCrudTextDisplayConfig = def.InferOutput<typeof createAdminCrudTextDisplaySchema>;
|
|
31
|
-
export declare const createAdminCrudDisplaySchema: (
|
|
31
|
+
export declare const createAdminCrudDisplaySchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
32
32
|
type: z.ZodLiteral<"text">;
|
|
33
|
-
modelFieldRef:
|
|
33
|
+
modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
35
|
type: "text";
|
|
36
36
|
modelFieldRef: string;
|
|
@@ -39,7 +39,7 @@ export declare const createAdminCrudDisplaySchema: (options: import("#src/schema
|
|
|
39
39
|
modelFieldRef: string;
|
|
40
40
|
}>, z.ZodObject<{
|
|
41
41
|
type: z.ZodLiteral<"foreign">;
|
|
42
|
-
localRelationRef:
|
|
42
|
+
localRelationRef: z.ZodEffects<z.ZodString, string, string>;
|
|
43
43
|
labelExpression: z.ZodString;
|
|
44
44
|
valueExpression: z.ZodString;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -55,11 +55,11 @@ export declare const createAdminCrudDisplaySchema: (options: import("#src/schema
|
|
|
55
55
|
}>]>;
|
|
56
56
|
export declare const adminCrudDisplayTypes: readonly ["text", "foreign"];
|
|
57
57
|
export type AdminCrudDisplayConfig = def.InferOutput<typeof createAdminCrudDisplaySchema>;
|
|
58
|
-
export declare const createAdminCrudTableColumnSchema: (
|
|
58
|
+
export declare const createAdminCrudTableColumnSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
|
|
59
59
|
label: z.ZodString;
|
|
60
60
|
display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
61
61
|
type: z.ZodLiteral<"text">;
|
|
62
|
-
modelFieldRef:
|
|
62
|
+
modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
64
|
type: "text";
|
|
65
65
|
modelFieldRef: string;
|
|
@@ -68,7 +68,7 @@ export declare const createAdminCrudTableColumnSchema: (options: import("#src/sc
|
|
|
68
68
|
modelFieldRef: string;
|
|
69
69
|
}>, z.ZodObject<{
|
|
70
70
|
type: z.ZodLiteral<"foreign">;
|
|
71
|
-
localRelationRef:
|
|
71
|
+
localRelationRef: z.ZodEffects<z.ZodString, string, string>;
|
|
72
72
|
labelExpression: z.ZodString;
|
|
73
73
|
valueExpression: z.ZodString;
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -105,33 +105,39 @@ export declare const createAdminCrudTableColumnSchema: (options: import("#src/sc
|
|
|
105
105
|
modelFieldRef: string;
|
|
106
106
|
};
|
|
107
107
|
}>;
|
|
108
|
-
export declare const createAdminCrudEmbeddedObjectSchema: (
|
|
108
|
+
export declare const createAdminCrudEmbeddedObjectSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
|
|
109
109
|
id: z.ZodString;
|
|
110
110
|
name: z.ZodString;
|
|
111
|
-
modelRef:
|
|
111
|
+
modelRef: z.ZodEffects<z.ZodString, string, string>;
|
|
112
112
|
includeIdField: z.ZodOptional<z.ZodBoolean>;
|
|
113
113
|
type: z.ZodLiteral<"object">;
|
|
114
114
|
form: z.ZodObject<{
|
|
115
|
-
fields: z.ZodArray<
|
|
115
|
+
fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
116
116
|
type: z.ZodString;
|
|
117
117
|
label: z.ZodString;
|
|
118
|
-
}, "
|
|
119
|
-
type:
|
|
120
|
-
label:
|
|
121
|
-
}, {
|
|
118
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
119
|
+
type: z.ZodString;
|
|
120
|
+
label: z.ZodString;
|
|
121
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
122
|
+
type: z.ZodString;
|
|
123
|
+
label: z.ZodString;
|
|
124
|
+
}, z.ZodTypeAny, "passthrough">>, {
|
|
122
125
|
type: string;
|
|
123
126
|
label: string;
|
|
124
|
-
}
|
|
127
|
+
}, z.objectInputType<{
|
|
128
|
+
type: z.ZodString;
|
|
129
|
+
label: z.ZodString;
|
|
130
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
125
131
|
}, "strip", z.ZodTypeAny, {
|
|
126
132
|
fields: {
|
|
127
133
|
type: string;
|
|
128
134
|
label: string;
|
|
129
135
|
}[];
|
|
130
136
|
}, {
|
|
131
|
-
fields: {
|
|
132
|
-
type:
|
|
133
|
-
label:
|
|
134
|
-
}[];
|
|
137
|
+
fields: z.objectInputType<{
|
|
138
|
+
type: z.ZodString;
|
|
139
|
+
label: z.ZodString;
|
|
140
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
135
141
|
}>;
|
|
136
142
|
}, "strip", z.ZodTypeAny, {
|
|
137
143
|
type: "object";
|
|
@@ -151,17 +157,17 @@ export declare const createAdminCrudEmbeddedObjectSchema: (options: import("#src
|
|
|
151
157
|
id: string;
|
|
152
158
|
modelRef: string;
|
|
153
159
|
form: {
|
|
154
|
-
fields: {
|
|
155
|
-
type:
|
|
156
|
-
label:
|
|
157
|
-
}[];
|
|
160
|
+
fields: z.objectInputType<{
|
|
161
|
+
type: z.ZodString;
|
|
162
|
+
label: z.ZodString;
|
|
163
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
158
164
|
};
|
|
159
165
|
includeIdField?: boolean | undefined;
|
|
160
166
|
}>;
|
|
161
|
-
export declare const createAdminCrudEmbeddedListSchema: (
|
|
167
|
+
export declare const createAdminCrudEmbeddedListSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
|
|
162
168
|
id: z.ZodString;
|
|
163
169
|
name: z.ZodString;
|
|
164
|
-
modelRef:
|
|
170
|
+
modelRef: z.ZodEffects<z.ZodString, string, string>;
|
|
165
171
|
includeIdField: z.ZodOptional<z.ZodBoolean>;
|
|
166
172
|
type: z.ZodLiteral<"list">;
|
|
167
173
|
table: z.ZodObject<{
|
|
@@ -169,7 +175,7 @@ export declare const createAdminCrudEmbeddedListSchema: (options: import("#src/s
|
|
|
169
175
|
label: z.ZodString;
|
|
170
176
|
display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
171
177
|
type: z.ZodLiteral<"text">;
|
|
172
|
-
modelFieldRef:
|
|
178
|
+
modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
|
|
173
179
|
}, "strip", z.ZodTypeAny, {
|
|
174
180
|
type: "text";
|
|
175
181
|
modelFieldRef: string;
|
|
@@ -178,7 +184,7 @@ export declare const createAdminCrudEmbeddedListSchema: (options: import("#src/s
|
|
|
178
184
|
modelFieldRef: string;
|
|
179
185
|
}>, z.ZodObject<{
|
|
180
186
|
type: z.ZodLiteral<"foreign">;
|
|
181
|
-
localRelationRef:
|
|
187
|
+
localRelationRef: z.ZodEffects<z.ZodString, string, string>;
|
|
182
188
|
labelExpression: z.ZodString;
|
|
183
189
|
valueExpression: z.ZodString;
|
|
184
190
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -243,26 +249,32 @@ export declare const createAdminCrudEmbeddedListSchema: (options: import("#src/s
|
|
|
243
249
|
}[];
|
|
244
250
|
}>;
|
|
245
251
|
form: z.ZodObject<{
|
|
246
|
-
fields: z.ZodArray<
|
|
252
|
+
fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
247
253
|
type: z.ZodString;
|
|
248
254
|
label: z.ZodString;
|
|
249
|
-
}, "
|
|
250
|
-
type:
|
|
251
|
-
label:
|
|
252
|
-
}, {
|
|
255
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
256
|
+
type: z.ZodString;
|
|
257
|
+
label: z.ZodString;
|
|
258
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
259
|
+
type: z.ZodString;
|
|
260
|
+
label: z.ZodString;
|
|
261
|
+
}, z.ZodTypeAny, "passthrough">>, {
|
|
253
262
|
type: string;
|
|
254
263
|
label: string;
|
|
255
|
-
}
|
|
264
|
+
}, z.objectInputType<{
|
|
265
|
+
type: z.ZodString;
|
|
266
|
+
label: z.ZodString;
|
|
267
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
256
268
|
}, "strip", z.ZodTypeAny, {
|
|
257
269
|
fields: {
|
|
258
270
|
type: string;
|
|
259
271
|
label: string;
|
|
260
272
|
}[];
|
|
261
273
|
}, {
|
|
262
|
-
fields: {
|
|
263
|
-
type:
|
|
264
|
-
label:
|
|
265
|
-
}[];
|
|
274
|
+
fields: z.objectInputType<{
|
|
275
|
+
type: z.ZodString;
|
|
276
|
+
label: z.ZodString;
|
|
277
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
266
278
|
}>;
|
|
267
279
|
}, "strip", z.ZodTypeAny, {
|
|
268
280
|
type: "list";
|
|
@@ -296,10 +308,10 @@ export declare const createAdminCrudEmbeddedListSchema: (options: import("#src/s
|
|
|
296
308
|
id: string;
|
|
297
309
|
modelRef: string;
|
|
298
310
|
form: {
|
|
299
|
-
fields: {
|
|
300
|
-
type:
|
|
301
|
-
label:
|
|
302
|
-
}[];
|
|
311
|
+
fields: z.objectInputType<{
|
|
312
|
+
type: z.ZodString;
|
|
313
|
+
label: z.ZodString;
|
|
314
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
303
315
|
};
|
|
304
316
|
table: {
|
|
305
317
|
columns: {
|
|
@@ -317,33 +329,39 @@ export declare const createAdminCrudEmbeddedListSchema: (options: import("#src/s
|
|
|
317
329
|
};
|
|
318
330
|
includeIdField?: boolean | undefined;
|
|
319
331
|
}>;
|
|
320
|
-
export declare const createAdminCrudEmbeddedFormSchema: (
|
|
332
|
+
export declare const createAdminCrudEmbeddedFormSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
321
333
|
id: z.ZodString;
|
|
322
334
|
name: z.ZodString;
|
|
323
|
-
modelRef:
|
|
335
|
+
modelRef: z.ZodEffects<z.ZodString, string, string>;
|
|
324
336
|
includeIdField: z.ZodOptional<z.ZodBoolean>;
|
|
325
337
|
type: z.ZodLiteral<"object">;
|
|
326
338
|
form: z.ZodObject<{
|
|
327
|
-
fields: z.ZodArray<
|
|
339
|
+
fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
328
340
|
type: z.ZodString;
|
|
329
341
|
label: z.ZodString;
|
|
330
|
-
}, "
|
|
331
|
-
type:
|
|
332
|
-
label:
|
|
333
|
-
}, {
|
|
342
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
343
|
+
type: z.ZodString;
|
|
344
|
+
label: z.ZodString;
|
|
345
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
346
|
+
type: z.ZodString;
|
|
347
|
+
label: z.ZodString;
|
|
348
|
+
}, z.ZodTypeAny, "passthrough">>, {
|
|
334
349
|
type: string;
|
|
335
350
|
label: string;
|
|
336
|
-
}
|
|
351
|
+
}, z.objectInputType<{
|
|
352
|
+
type: z.ZodString;
|
|
353
|
+
label: z.ZodString;
|
|
354
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
337
355
|
}, "strip", z.ZodTypeAny, {
|
|
338
356
|
fields: {
|
|
339
357
|
type: string;
|
|
340
358
|
label: string;
|
|
341
359
|
}[];
|
|
342
360
|
}, {
|
|
343
|
-
fields: {
|
|
344
|
-
type:
|
|
345
|
-
label:
|
|
346
|
-
}[];
|
|
361
|
+
fields: z.objectInputType<{
|
|
362
|
+
type: z.ZodString;
|
|
363
|
+
label: z.ZodString;
|
|
364
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
347
365
|
}>;
|
|
348
366
|
}, "strip", z.ZodTypeAny, {
|
|
349
367
|
type: "object";
|
|
@@ -363,16 +381,16 @@ export declare const createAdminCrudEmbeddedFormSchema: (options: import("#src/s
|
|
|
363
381
|
id: string;
|
|
364
382
|
modelRef: string;
|
|
365
383
|
form: {
|
|
366
|
-
fields: {
|
|
367
|
-
type:
|
|
368
|
-
label:
|
|
369
|
-
}[];
|
|
384
|
+
fields: z.objectInputType<{
|
|
385
|
+
type: z.ZodString;
|
|
386
|
+
label: z.ZodString;
|
|
387
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
370
388
|
};
|
|
371
389
|
includeIdField?: boolean | undefined;
|
|
372
390
|
}>, z.ZodObject<{
|
|
373
391
|
id: z.ZodString;
|
|
374
392
|
name: z.ZodString;
|
|
375
|
-
modelRef:
|
|
393
|
+
modelRef: z.ZodEffects<z.ZodString, string, string>;
|
|
376
394
|
includeIdField: z.ZodOptional<z.ZodBoolean>;
|
|
377
395
|
type: z.ZodLiteral<"list">;
|
|
378
396
|
table: z.ZodObject<{
|
|
@@ -380,7 +398,7 @@ export declare const createAdminCrudEmbeddedFormSchema: (options: import("#src/s
|
|
|
380
398
|
label: z.ZodString;
|
|
381
399
|
display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
382
400
|
type: z.ZodLiteral<"text">;
|
|
383
|
-
modelFieldRef:
|
|
401
|
+
modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
|
|
384
402
|
}, "strip", z.ZodTypeAny, {
|
|
385
403
|
type: "text";
|
|
386
404
|
modelFieldRef: string;
|
|
@@ -389,7 +407,7 @@ export declare const createAdminCrudEmbeddedFormSchema: (options: import("#src/s
|
|
|
389
407
|
modelFieldRef: string;
|
|
390
408
|
}>, z.ZodObject<{
|
|
391
409
|
type: z.ZodLiteral<"foreign">;
|
|
392
|
-
localRelationRef:
|
|
410
|
+
localRelationRef: z.ZodEffects<z.ZodString, string, string>;
|
|
393
411
|
labelExpression: z.ZodString;
|
|
394
412
|
valueExpression: z.ZodString;
|
|
395
413
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -454,26 +472,32 @@ export declare const createAdminCrudEmbeddedFormSchema: (options: import("#src/s
|
|
|
454
472
|
}[];
|
|
455
473
|
}>;
|
|
456
474
|
form: z.ZodObject<{
|
|
457
|
-
fields: z.ZodArray<
|
|
475
|
+
fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
458
476
|
type: z.ZodString;
|
|
459
477
|
label: z.ZodString;
|
|
460
|
-
}, "
|
|
461
|
-
type:
|
|
462
|
-
label:
|
|
463
|
-
}, {
|
|
478
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
479
|
+
type: z.ZodString;
|
|
480
|
+
label: z.ZodString;
|
|
481
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
482
|
+
type: z.ZodString;
|
|
483
|
+
label: z.ZodString;
|
|
484
|
+
}, z.ZodTypeAny, "passthrough">>, {
|
|
464
485
|
type: string;
|
|
465
486
|
label: string;
|
|
466
|
-
}
|
|
487
|
+
}, z.objectInputType<{
|
|
488
|
+
type: z.ZodString;
|
|
489
|
+
label: z.ZodString;
|
|
490
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
467
491
|
}, "strip", z.ZodTypeAny, {
|
|
468
492
|
fields: {
|
|
469
493
|
type: string;
|
|
470
494
|
label: string;
|
|
471
495
|
}[];
|
|
472
496
|
}, {
|
|
473
|
-
fields: {
|
|
474
|
-
type:
|
|
475
|
-
label:
|
|
476
|
-
}[];
|
|
497
|
+
fields: z.objectInputType<{
|
|
498
|
+
type: z.ZodString;
|
|
499
|
+
label: z.ZodString;
|
|
500
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
477
501
|
}>;
|
|
478
502
|
}, "strip", z.ZodTypeAny, {
|
|
479
503
|
type: "list";
|
|
@@ -506,12 +530,88 @@ export declare const createAdminCrudEmbeddedFormSchema: (options: import("#src/s
|
|
|
506
530
|
name: string;
|
|
507
531
|
id: string;
|
|
508
532
|
modelRef: string;
|
|
533
|
+
form: {
|
|
534
|
+
fields: z.objectInputType<{
|
|
535
|
+
type: z.ZodString;
|
|
536
|
+
label: z.ZodString;
|
|
537
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
538
|
+
};
|
|
539
|
+
table: {
|
|
540
|
+
columns: {
|
|
541
|
+
label: string;
|
|
542
|
+
display: {
|
|
543
|
+
type: "foreign";
|
|
544
|
+
localRelationRef: string;
|
|
545
|
+
labelExpression: string;
|
|
546
|
+
valueExpression: string;
|
|
547
|
+
} | {
|
|
548
|
+
type: "text";
|
|
549
|
+
modelFieldRef: string;
|
|
550
|
+
};
|
|
551
|
+
}[];
|
|
552
|
+
};
|
|
553
|
+
includeIdField?: boolean | undefined;
|
|
554
|
+
}>]>, {
|
|
555
|
+
type: "object";
|
|
556
|
+
name: string;
|
|
557
|
+
id: string;
|
|
558
|
+
modelRef: string;
|
|
509
559
|
form: {
|
|
510
560
|
fields: {
|
|
511
561
|
type: string;
|
|
512
562
|
label: string;
|
|
513
563
|
}[];
|
|
514
564
|
};
|
|
565
|
+
includeIdField?: boolean | undefined;
|
|
566
|
+
} | {
|
|
567
|
+
type: "list";
|
|
568
|
+
name: string;
|
|
569
|
+
id: string;
|
|
570
|
+
modelRef: string;
|
|
571
|
+
form: {
|
|
572
|
+
fields: {
|
|
573
|
+
type: string;
|
|
574
|
+
label: string;
|
|
575
|
+
}[];
|
|
576
|
+
};
|
|
577
|
+
table: {
|
|
578
|
+
columns: {
|
|
579
|
+
label: string;
|
|
580
|
+
display: {
|
|
581
|
+
type: "foreign";
|
|
582
|
+
localRelationRef: string;
|
|
583
|
+
labelExpression: string;
|
|
584
|
+
valueExpression: string;
|
|
585
|
+
} | {
|
|
586
|
+
type: "text";
|
|
587
|
+
modelFieldRef: string;
|
|
588
|
+
};
|
|
589
|
+
}[];
|
|
590
|
+
};
|
|
591
|
+
includeIdField?: boolean | undefined;
|
|
592
|
+
}, {
|
|
593
|
+
type: "object";
|
|
594
|
+
name: string;
|
|
595
|
+
id: string;
|
|
596
|
+
modelRef: string;
|
|
597
|
+
form: {
|
|
598
|
+
fields: z.objectInputType<{
|
|
599
|
+
type: z.ZodString;
|
|
600
|
+
label: z.ZodString;
|
|
601
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
602
|
+
};
|
|
603
|
+
includeIdField?: boolean | undefined;
|
|
604
|
+
} | {
|
|
605
|
+
type: "list";
|
|
606
|
+
name: string;
|
|
607
|
+
id: string;
|
|
608
|
+
modelRef: string;
|
|
609
|
+
form: {
|
|
610
|
+
fields: z.objectInputType<{
|
|
611
|
+
type: z.ZodString;
|
|
612
|
+
label: z.ZodString;
|
|
613
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
614
|
+
};
|
|
515
615
|
table: {
|
|
516
616
|
columns: {
|
|
517
617
|
label: string;
|
|
@@ -527,19 +627,37 @@ export declare const createAdminCrudEmbeddedFormSchema: (options: import("#src/s
|
|
|
527
627
|
}[];
|
|
528
628
|
};
|
|
529
629
|
includeIdField?: boolean | undefined;
|
|
530
|
-
}
|
|
630
|
+
}>;
|
|
531
631
|
export type AdminCrudEmbeddedFormConfig = def.InferOutput<typeof createAdminCrudEmbeddedFormSchema>;
|
|
532
632
|
export type AdminCrudEmbeddedFormConfigInput = def.InferInput<typeof createAdminCrudEmbeddedFormSchema>;
|
|
533
|
-
export declare const createAdminCrudSectionSchema: (
|
|
633
|
+
export declare const createAdminCrudSectionSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodEffects<z.ZodIntersection<z.ZodObject<{
|
|
634
|
+
id: z.ZodDefault<z.ZodString>;
|
|
635
|
+
name: z.ZodString;
|
|
636
|
+
featureRef: z.ZodEffects<z.ZodString, string, string>;
|
|
637
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
638
|
+
type: z.ZodString;
|
|
639
|
+
}, "strip", z.ZodTypeAny, {
|
|
640
|
+
type: string;
|
|
641
|
+
name: string;
|
|
642
|
+
id: string;
|
|
643
|
+
featureRef: string;
|
|
644
|
+
icon?: string | undefined;
|
|
645
|
+
}, {
|
|
646
|
+
type: string;
|
|
647
|
+
name: string;
|
|
648
|
+
featureRef: string;
|
|
649
|
+
icon?: string | undefined;
|
|
650
|
+
id?: string | undefined;
|
|
651
|
+
}>, z.ZodObject<{
|
|
534
652
|
type: z.ZodLiteral<"crud">;
|
|
535
|
-
modelRef:
|
|
653
|
+
modelRef: z.ZodEffects<z.ZodString, string, string>;
|
|
536
654
|
disableCreate: z.ZodOptional<z.ZodBoolean>;
|
|
537
655
|
table: z.ZodObject<{
|
|
538
656
|
columns: z.ZodArray<z.ZodObject<{
|
|
539
657
|
label: z.ZodString;
|
|
540
658
|
display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
541
659
|
type: z.ZodLiteral<"text">;
|
|
542
|
-
modelFieldRef:
|
|
660
|
+
modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
|
|
543
661
|
}, "strip", z.ZodTypeAny, {
|
|
544
662
|
type: "text";
|
|
545
663
|
modelFieldRef: string;
|
|
@@ -548,7 +666,7 @@ export declare const createAdminCrudSectionSchema: (options: import("#src/schema
|
|
|
548
666
|
modelFieldRef: string;
|
|
549
667
|
}>, z.ZodObject<{
|
|
550
668
|
type: z.ZodLiteral<"foreign">;
|
|
551
|
-
localRelationRef:
|
|
669
|
+
localRelationRef: z.ZodEffects<z.ZodString, string, string>;
|
|
552
670
|
labelExpression: z.ZodString;
|
|
553
671
|
valueExpression: z.ZodString;
|
|
554
672
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -613,54 +731,66 @@ export declare const createAdminCrudSectionSchema: (options: import("#src/schema
|
|
|
613
731
|
}[];
|
|
614
732
|
}>;
|
|
615
733
|
form: z.ZodObject<{
|
|
616
|
-
fields: z.ZodArray<
|
|
734
|
+
fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
617
735
|
type: z.ZodString;
|
|
618
736
|
label: z.ZodString;
|
|
619
|
-
}, "
|
|
620
|
-
type:
|
|
621
|
-
label:
|
|
622
|
-
}, {
|
|
737
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
738
|
+
type: z.ZodString;
|
|
739
|
+
label: z.ZodString;
|
|
740
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
741
|
+
type: z.ZodString;
|
|
742
|
+
label: z.ZodString;
|
|
743
|
+
}, z.ZodTypeAny, "passthrough">>, {
|
|
623
744
|
type: string;
|
|
624
745
|
label: string;
|
|
625
|
-
}
|
|
746
|
+
}, z.objectInputType<{
|
|
747
|
+
type: z.ZodString;
|
|
748
|
+
label: z.ZodString;
|
|
749
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
626
750
|
}, "strip", z.ZodTypeAny, {
|
|
627
751
|
fields: {
|
|
628
752
|
type: string;
|
|
629
753
|
label: string;
|
|
630
754
|
}[];
|
|
631
755
|
}, {
|
|
632
|
-
fields: {
|
|
633
|
-
type:
|
|
634
|
-
label:
|
|
635
|
-
}[];
|
|
756
|
+
fields: z.objectInputType<{
|
|
757
|
+
type: z.ZodString;
|
|
758
|
+
label: z.ZodString;
|
|
759
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
636
760
|
}>;
|
|
637
|
-
embeddedForms: z.ZodOptional<z.ZodArray<
|
|
761
|
+
embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
638
762
|
id: z.ZodString;
|
|
639
763
|
name: z.ZodString;
|
|
640
|
-
modelRef:
|
|
764
|
+
modelRef: z.ZodEffects<z.ZodString, string, string>;
|
|
641
765
|
includeIdField: z.ZodOptional<z.ZodBoolean>;
|
|
642
766
|
type: z.ZodLiteral<"object">;
|
|
643
767
|
form: z.ZodObject<{
|
|
644
|
-
fields: z.ZodArray<
|
|
768
|
+
fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
645
769
|
type: z.ZodString;
|
|
646
770
|
label: z.ZodString;
|
|
647
|
-
}, "
|
|
648
|
-
type:
|
|
649
|
-
label:
|
|
650
|
-
}, {
|
|
771
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
772
|
+
type: z.ZodString;
|
|
773
|
+
label: z.ZodString;
|
|
774
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
775
|
+
type: z.ZodString;
|
|
776
|
+
label: z.ZodString;
|
|
777
|
+
}, z.ZodTypeAny, "passthrough">>, {
|
|
651
778
|
type: string;
|
|
652
779
|
label: string;
|
|
653
|
-
}
|
|
780
|
+
}, z.objectInputType<{
|
|
781
|
+
type: z.ZodString;
|
|
782
|
+
label: z.ZodString;
|
|
783
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
654
784
|
}, "strip", z.ZodTypeAny, {
|
|
655
785
|
fields: {
|
|
656
786
|
type: string;
|
|
657
787
|
label: string;
|
|
658
788
|
}[];
|
|
659
789
|
}, {
|
|
660
|
-
fields: {
|
|
661
|
-
type:
|
|
662
|
-
label:
|
|
663
|
-
}[];
|
|
790
|
+
fields: z.objectInputType<{
|
|
791
|
+
type: z.ZodString;
|
|
792
|
+
label: z.ZodString;
|
|
793
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
664
794
|
}>;
|
|
665
795
|
}, "strip", z.ZodTypeAny, {
|
|
666
796
|
type: "object";
|
|
@@ -680,16 +810,16 @@ export declare const createAdminCrudSectionSchema: (options: import("#src/schema
|
|
|
680
810
|
id: string;
|
|
681
811
|
modelRef: string;
|
|
682
812
|
form: {
|
|
683
|
-
fields: {
|
|
684
|
-
type:
|
|
685
|
-
label:
|
|
686
|
-
}[];
|
|
813
|
+
fields: z.objectInputType<{
|
|
814
|
+
type: z.ZodString;
|
|
815
|
+
label: z.ZodString;
|
|
816
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
687
817
|
};
|
|
688
818
|
includeIdField?: boolean | undefined;
|
|
689
819
|
}>, z.ZodObject<{
|
|
690
820
|
id: z.ZodString;
|
|
691
821
|
name: z.ZodString;
|
|
692
|
-
modelRef:
|
|
822
|
+
modelRef: z.ZodEffects<z.ZodString, string, string>;
|
|
693
823
|
includeIdField: z.ZodOptional<z.ZodBoolean>;
|
|
694
824
|
type: z.ZodLiteral<"list">;
|
|
695
825
|
table: z.ZodObject<{
|
|
@@ -697,7 +827,7 @@ export declare const createAdminCrudSectionSchema: (options: import("#src/schema
|
|
|
697
827
|
label: z.ZodString;
|
|
698
828
|
display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
699
829
|
type: z.ZodLiteral<"text">;
|
|
700
|
-
modelFieldRef:
|
|
830
|
+
modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
|
|
701
831
|
}, "strip", z.ZodTypeAny, {
|
|
702
832
|
type: "text";
|
|
703
833
|
modelFieldRef: string;
|
|
@@ -706,7 +836,7 @@ export declare const createAdminCrudSectionSchema: (options: import("#src/schema
|
|
|
706
836
|
modelFieldRef: string;
|
|
707
837
|
}>, z.ZodObject<{
|
|
708
838
|
type: z.ZodLiteral<"foreign">;
|
|
709
|
-
localRelationRef:
|
|
839
|
+
localRelationRef: z.ZodEffects<z.ZodString, string, string>;
|
|
710
840
|
labelExpression: z.ZodString;
|
|
711
841
|
valueExpression: z.ZodString;
|
|
712
842
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -771,26 +901,32 @@ export declare const createAdminCrudSectionSchema: (options: import("#src/schema
|
|
|
771
901
|
}[];
|
|
772
902
|
}>;
|
|
773
903
|
form: z.ZodObject<{
|
|
774
|
-
fields: z.ZodArray<
|
|
904
|
+
fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
775
905
|
type: z.ZodString;
|
|
776
906
|
label: z.ZodString;
|
|
777
|
-
}, "
|
|
778
|
-
type:
|
|
779
|
-
label:
|
|
780
|
-
}, {
|
|
907
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
908
|
+
type: z.ZodString;
|
|
909
|
+
label: z.ZodString;
|
|
910
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
911
|
+
type: z.ZodString;
|
|
912
|
+
label: z.ZodString;
|
|
913
|
+
}, z.ZodTypeAny, "passthrough">>, {
|
|
781
914
|
type: string;
|
|
782
915
|
label: string;
|
|
783
|
-
}
|
|
916
|
+
}, z.objectInputType<{
|
|
917
|
+
type: z.ZodString;
|
|
918
|
+
label: z.ZodString;
|
|
919
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
784
920
|
}, "strip", z.ZodTypeAny, {
|
|
785
921
|
fields: {
|
|
786
922
|
type: string;
|
|
787
923
|
label: string;
|
|
788
924
|
}[];
|
|
789
925
|
}, {
|
|
790
|
-
fields: {
|
|
791
|
-
type:
|
|
792
|
-
label:
|
|
793
|
-
}[];
|
|
926
|
+
fields: z.objectInputType<{
|
|
927
|
+
type: z.ZodString;
|
|
928
|
+
label: z.ZodString;
|
|
929
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
794
930
|
}>;
|
|
795
931
|
}, "strip", z.ZodTypeAny, {
|
|
796
932
|
type: "list";
|
|
@@ -819,6 +955,44 @@ export declare const createAdminCrudSectionSchema: (options: import("#src/schema
|
|
|
819
955
|
};
|
|
820
956
|
includeIdField?: boolean | undefined;
|
|
821
957
|
}, {
|
|
958
|
+
type: "list";
|
|
959
|
+
name: string;
|
|
960
|
+
id: string;
|
|
961
|
+
modelRef: string;
|
|
962
|
+
form: {
|
|
963
|
+
fields: z.objectInputType<{
|
|
964
|
+
type: z.ZodString;
|
|
965
|
+
label: z.ZodString;
|
|
966
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
967
|
+
};
|
|
968
|
+
table: {
|
|
969
|
+
columns: {
|
|
970
|
+
label: string;
|
|
971
|
+
display: {
|
|
972
|
+
type: "foreign";
|
|
973
|
+
localRelationRef: string;
|
|
974
|
+
labelExpression: string;
|
|
975
|
+
valueExpression: string;
|
|
976
|
+
} | {
|
|
977
|
+
type: "text";
|
|
978
|
+
modelFieldRef: string;
|
|
979
|
+
};
|
|
980
|
+
}[];
|
|
981
|
+
};
|
|
982
|
+
includeIdField?: boolean | undefined;
|
|
983
|
+
}>]>, {
|
|
984
|
+
type: "object";
|
|
985
|
+
name: string;
|
|
986
|
+
id: string;
|
|
987
|
+
modelRef: string;
|
|
988
|
+
form: {
|
|
989
|
+
fields: {
|
|
990
|
+
type: string;
|
|
991
|
+
label: string;
|
|
992
|
+
}[];
|
|
993
|
+
};
|
|
994
|
+
includeIdField?: boolean | undefined;
|
|
995
|
+
} | {
|
|
822
996
|
type: "list";
|
|
823
997
|
name: string;
|
|
824
998
|
id: string;
|
|
@@ -844,17 +1018,48 @@ export declare const createAdminCrudSectionSchema: (options: import("#src/schema
|
|
|
844
1018
|
}[];
|
|
845
1019
|
};
|
|
846
1020
|
includeIdField?: boolean | undefined;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
1021
|
+
}, {
|
|
1022
|
+
type: "object";
|
|
1023
|
+
name: string;
|
|
1024
|
+
id: string;
|
|
1025
|
+
modelRef: string;
|
|
1026
|
+
form: {
|
|
1027
|
+
fields: z.objectInputType<{
|
|
1028
|
+
type: z.ZodString;
|
|
1029
|
+
label: z.ZodString;
|
|
1030
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1031
|
+
};
|
|
1032
|
+
includeIdField?: boolean | undefined;
|
|
1033
|
+
} | {
|
|
1034
|
+
type: "list";
|
|
1035
|
+
name: string;
|
|
1036
|
+
id: string;
|
|
1037
|
+
modelRef: string;
|
|
1038
|
+
form: {
|
|
1039
|
+
fields: z.objectInputType<{
|
|
1040
|
+
type: z.ZodString;
|
|
1041
|
+
label: z.ZodString;
|
|
1042
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1043
|
+
};
|
|
1044
|
+
table: {
|
|
1045
|
+
columns: {
|
|
1046
|
+
label: string;
|
|
1047
|
+
display: {
|
|
1048
|
+
type: "foreign";
|
|
1049
|
+
localRelationRef: string;
|
|
1050
|
+
labelExpression: string;
|
|
1051
|
+
valueExpression: string;
|
|
1052
|
+
} | {
|
|
1053
|
+
type: "text";
|
|
1054
|
+
modelFieldRef: string;
|
|
1055
|
+
};
|
|
1056
|
+
}[];
|
|
1057
|
+
};
|
|
1058
|
+
includeIdField?: boolean | undefined;
|
|
1059
|
+
}>, "many">>;
|
|
852
1060
|
}, "strip", z.ZodTypeAny, {
|
|
853
1061
|
type: "crud";
|
|
854
|
-
name: string;
|
|
855
|
-
id: string;
|
|
856
1062
|
modelRef: string;
|
|
857
|
-
featureRef: string;
|
|
858
1063
|
form: {
|
|
859
1064
|
fields: {
|
|
860
1065
|
type: string;
|
|
@@ -875,7 +1080,6 @@ export declare const createAdminCrudSectionSchema: (options: import("#src/schema
|
|
|
875
1080
|
};
|
|
876
1081
|
}[];
|
|
877
1082
|
};
|
|
878
|
-
icon?: string | undefined;
|
|
879
1083
|
disableCreate?: boolean | undefined;
|
|
880
1084
|
embeddedForms?: ({
|
|
881
1085
|
type: "object";
|
|
@@ -918,9 +1122,76 @@ export declare const createAdminCrudSectionSchema: (options: import("#src/schema
|
|
|
918
1122
|
})[] | undefined;
|
|
919
1123
|
}, {
|
|
920
1124
|
type: "crud";
|
|
921
|
-
name: string;
|
|
922
1125
|
modelRef: string;
|
|
1126
|
+
form: {
|
|
1127
|
+
fields: z.objectInputType<{
|
|
1128
|
+
type: z.ZodString;
|
|
1129
|
+
label: z.ZodString;
|
|
1130
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1131
|
+
};
|
|
1132
|
+
table: {
|
|
1133
|
+
columns: {
|
|
1134
|
+
label: string;
|
|
1135
|
+
display: {
|
|
1136
|
+
type: "foreign";
|
|
1137
|
+
localRelationRef: string;
|
|
1138
|
+
labelExpression: string;
|
|
1139
|
+
valueExpression: string;
|
|
1140
|
+
} | {
|
|
1141
|
+
type: "text";
|
|
1142
|
+
modelFieldRef: string;
|
|
1143
|
+
};
|
|
1144
|
+
}[];
|
|
1145
|
+
};
|
|
1146
|
+
disableCreate?: boolean | undefined;
|
|
1147
|
+
embeddedForms?: ({
|
|
1148
|
+
type: "object";
|
|
1149
|
+
name: string;
|
|
1150
|
+
id: string;
|
|
1151
|
+
modelRef: string;
|
|
1152
|
+
form: {
|
|
1153
|
+
fields: z.objectInputType<{
|
|
1154
|
+
type: z.ZodString;
|
|
1155
|
+
label: z.ZodString;
|
|
1156
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1157
|
+
};
|
|
1158
|
+
includeIdField?: boolean | undefined;
|
|
1159
|
+
} | {
|
|
1160
|
+
type: "list";
|
|
1161
|
+
name: string;
|
|
1162
|
+
id: string;
|
|
1163
|
+
modelRef: string;
|
|
1164
|
+
form: {
|
|
1165
|
+
fields: z.objectInputType<{
|
|
1166
|
+
type: z.ZodString;
|
|
1167
|
+
label: z.ZodString;
|
|
1168
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1169
|
+
};
|
|
1170
|
+
table: {
|
|
1171
|
+
columns: {
|
|
1172
|
+
label: string;
|
|
1173
|
+
display: {
|
|
1174
|
+
type: "foreign";
|
|
1175
|
+
localRelationRef: string;
|
|
1176
|
+
labelExpression: string;
|
|
1177
|
+
valueExpression: string;
|
|
1178
|
+
} | {
|
|
1179
|
+
type: "text";
|
|
1180
|
+
modelFieldRef: string;
|
|
1181
|
+
};
|
|
1182
|
+
}[];
|
|
1183
|
+
};
|
|
1184
|
+
includeIdField?: boolean | undefined;
|
|
1185
|
+
})[] | undefined;
|
|
1186
|
+
}>>, {
|
|
1187
|
+
type: string;
|
|
1188
|
+
name: string;
|
|
1189
|
+
id: string;
|
|
923
1190
|
featureRef: string;
|
|
1191
|
+
icon?: string | undefined;
|
|
1192
|
+
} & {
|
|
1193
|
+
type: "crud";
|
|
1194
|
+
modelRef: string;
|
|
924
1195
|
form: {
|
|
925
1196
|
fields: {
|
|
926
1197
|
type: string;
|
|
@@ -941,8 +1212,6 @@ export declare const createAdminCrudSectionSchema: (options: import("#src/schema
|
|
|
941
1212
|
};
|
|
942
1213
|
}[];
|
|
943
1214
|
};
|
|
944
|
-
icon?: string | undefined;
|
|
945
|
-
id?: string | undefined;
|
|
946
1215
|
disableCreate?: boolean | undefined;
|
|
947
1216
|
embeddedForms?: ({
|
|
948
1217
|
type: "object";
|
|
@@ -983,7 +1252,76 @@ export declare const createAdminCrudSectionSchema: (options: import("#src/schema
|
|
|
983
1252
|
};
|
|
984
1253
|
includeIdField?: boolean | undefined;
|
|
985
1254
|
})[] | undefined;
|
|
986
|
-
}
|
|
1255
|
+
}, {
|
|
1256
|
+
type: string;
|
|
1257
|
+
name: string;
|
|
1258
|
+
featureRef: string;
|
|
1259
|
+
icon?: string | undefined;
|
|
1260
|
+
id?: string | undefined;
|
|
1261
|
+
} & {
|
|
1262
|
+
type: "crud";
|
|
1263
|
+
modelRef: string;
|
|
1264
|
+
form: {
|
|
1265
|
+
fields: z.objectInputType<{
|
|
1266
|
+
type: z.ZodString;
|
|
1267
|
+
label: z.ZodString;
|
|
1268
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1269
|
+
};
|
|
1270
|
+
table: {
|
|
1271
|
+
columns: {
|
|
1272
|
+
label: string;
|
|
1273
|
+
display: {
|
|
1274
|
+
type: "foreign";
|
|
1275
|
+
localRelationRef: string;
|
|
1276
|
+
labelExpression: string;
|
|
1277
|
+
valueExpression: string;
|
|
1278
|
+
} | {
|
|
1279
|
+
type: "text";
|
|
1280
|
+
modelFieldRef: string;
|
|
1281
|
+
};
|
|
1282
|
+
}[];
|
|
1283
|
+
};
|
|
1284
|
+
disableCreate?: boolean | undefined;
|
|
1285
|
+
embeddedForms?: ({
|
|
1286
|
+
type: "object";
|
|
1287
|
+
name: string;
|
|
1288
|
+
id: string;
|
|
1289
|
+
modelRef: string;
|
|
1290
|
+
form: {
|
|
1291
|
+
fields: z.objectInputType<{
|
|
1292
|
+
type: z.ZodString;
|
|
1293
|
+
label: z.ZodString;
|
|
1294
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1295
|
+
};
|
|
1296
|
+
includeIdField?: boolean | undefined;
|
|
1297
|
+
} | {
|
|
1298
|
+
type: "list";
|
|
1299
|
+
name: string;
|
|
1300
|
+
id: string;
|
|
1301
|
+
modelRef: string;
|
|
1302
|
+
form: {
|
|
1303
|
+
fields: z.objectInputType<{
|
|
1304
|
+
type: z.ZodString;
|
|
1305
|
+
label: z.ZodString;
|
|
1306
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1307
|
+
};
|
|
1308
|
+
table: {
|
|
1309
|
+
columns: {
|
|
1310
|
+
label: string;
|
|
1311
|
+
display: {
|
|
1312
|
+
type: "foreign";
|
|
1313
|
+
localRelationRef: string;
|
|
1314
|
+
labelExpression: string;
|
|
1315
|
+
valueExpression: string;
|
|
1316
|
+
} | {
|
|
1317
|
+
type: "text";
|
|
1318
|
+
modelFieldRef: string;
|
|
1319
|
+
};
|
|
1320
|
+
}[];
|
|
1321
|
+
};
|
|
1322
|
+
includeIdField?: boolean | undefined;
|
|
1323
|
+
})[] | undefined;
|
|
1324
|
+
}>;
|
|
987
1325
|
export type AdminCrudSectionConfig = def.InferOutput<typeof createAdminCrudSectionSchema>;
|
|
988
1326
|
export type AdminCrudSectionConfigInput = def.InferInput<typeof createAdminCrudSectionSchema>;
|
|
989
1327
|
//# sourceMappingURL=crud.d.ts.map
|