@baseplate-dev/project-builder-lib 0.2.0 → 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 -494
- 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,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { def } from './creator/index.js';
|
|
3
|
-
export declare const createAppSchema: (
|
|
3
|
+
export declare const createAppSchema: (context: import("./creator/types.js").DefinitionSchemaParserContext) => z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4
4
|
type: z.ZodLiteral<"backend">;
|
|
5
5
|
enableStripe: z.ZodOptional<z.ZodBoolean>;
|
|
6
6
|
enableRedis: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -38,7 +38,7 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
38
38
|
includeAuth: z.ZodOptional<z.ZodBoolean>;
|
|
39
39
|
title: z.ZodOptional<z.ZodString>;
|
|
40
40
|
description: z.ZodOptional<z.ZodString>;
|
|
41
|
-
allowedRoles: z.ZodOptional<z.ZodArray<
|
|
41
|
+
allowedRoles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
42
42
|
includeUploadComponents: z.ZodOptional<z.ZodBoolean>;
|
|
43
43
|
enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
|
|
44
44
|
id: z.ZodDefault<z.ZodString>;
|
|
@@ -68,17 +68,35 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
68
68
|
includeUploadComponents?: boolean | undefined;
|
|
69
69
|
}>, z.ZodObject<{
|
|
70
70
|
type: z.ZodLiteral<"admin">;
|
|
71
|
-
allowedRoles: z.ZodOptional<z.ZodArray<
|
|
72
|
-
sections: z.ZodOptional<z.ZodArray<
|
|
71
|
+
allowedRoles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
72
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodObject<{
|
|
73
|
+
id: z.ZodDefault<z.ZodString>;
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
featureRef: z.ZodEffects<z.ZodString, string, string>;
|
|
76
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
77
|
+
type: z.ZodString;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
type: string;
|
|
80
|
+
name: string;
|
|
81
|
+
id: string;
|
|
82
|
+
featureRef: string;
|
|
83
|
+
icon?: string | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
type: string;
|
|
86
|
+
name: string;
|
|
87
|
+
featureRef: string;
|
|
88
|
+
icon?: string | undefined;
|
|
89
|
+
id?: string | undefined;
|
|
90
|
+
}>, z.ZodObject<{
|
|
73
91
|
type: z.ZodLiteral<"crud">;
|
|
74
|
-
modelRef:
|
|
92
|
+
modelRef: z.ZodEffects<z.ZodString, string, string>;
|
|
75
93
|
disableCreate: z.ZodOptional<z.ZodBoolean>;
|
|
76
94
|
table: z.ZodObject<{
|
|
77
95
|
columns: z.ZodArray<z.ZodObject<{
|
|
78
96
|
label: z.ZodString;
|
|
79
97
|
display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
80
98
|
type: z.ZodLiteral<"text">;
|
|
81
|
-
modelFieldRef:
|
|
99
|
+
modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
|
|
82
100
|
}, "strip", z.ZodTypeAny, {
|
|
83
101
|
type: "text";
|
|
84
102
|
modelFieldRef: string;
|
|
@@ -87,7 +105,7 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
87
105
|
modelFieldRef: string;
|
|
88
106
|
}>, z.ZodObject<{
|
|
89
107
|
type: z.ZodLiteral<"foreign">;
|
|
90
|
-
localRelationRef:
|
|
108
|
+
localRelationRef: z.ZodEffects<z.ZodString, string, string>;
|
|
91
109
|
labelExpression: z.ZodString;
|
|
92
110
|
valueExpression: z.ZodString;
|
|
93
111
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -152,54 +170,66 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
152
170
|
}[];
|
|
153
171
|
}>;
|
|
154
172
|
form: z.ZodObject<{
|
|
155
|
-
fields: z.ZodArray<
|
|
173
|
+
fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
156
174
|
type: z.ZodString;
|
|
157
175
|
label: z.ZodString;
|
|
158
|
-
}, "
|
|
159
|
-
type:
|
|
160
|
-
label:
|
|
161
|
-
}, {
|
|
176
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
177
|
+
type: z.ZodString;
|
|
178
|
+
label: z.ZodString;
|
|
179
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
180
|
+
type: z.ZodString;
|
|
181
|
+
label: z.ZodString;
|
|
182
|
+
}, z.ZodTypeAny, "passthrough">>, {
|
|
162
183
|
type: string;
|
|
163
184
|
label: string;
|
|
164
|
-
}
|
|
185
|
+
}, z.objectInputType<{
|
|
186
|
+
type: z.ZodString;
|
|
187
|
+
label: z.ZodString;
|
|
188
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
165
189
|
}, "strip", z.ZodTypeAny, {
|
|
166
190
|
fields: {
|
|
167
191
|
type: string;
|
|
168
192
|
label: string;
|
|
169
193
|
}[];
|
|
170
194
|
}, {
|
|
171
|
-
fields: {
|
|
172
|
-
type:
|
|
173
|
-
label:
|
|
174
|
-
}[];
|
|
195
|
+
fields: z.objectInputType<{
|
|
196
|
+
type: z.ZodString;
|
|
197
|
+
label: z.ZodString;
|
|
198
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
175
199
|
}>;
|
|
176
|
-
embeddedForms: z.ZodOptional<z.ZodArray<
|
|
200
|
+
embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
177
201
|
id: z.ZodString;
|
|
178
202
|
name: z.ZodString;
|
|
179
|
-
modelRef:
|
|
203
|
+
modelRef: z.ZodEffects<z.ZodString, string, string>;
|
|
180
204
|
includeIdField: z.ZodOptional<z.ZodBoolean>;
|
|
181
205
|
type: z.ZodLiteral<"object">;
|
|
182
206
|
form: z.ZodObject<{
|
|
183
|
-
fields: z.ZodArray<
|
|
207
|
+
fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
184
208
|
type: z.ZodString;
|
|
185
209
|
label: z.ZodString;
|
|
186
|
-
}, "
|
|
187
|
-
type:
|
|
188
|
-
label:
|
|
189
|
-
}, {
|
|
210
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
211
|
+
type: z.ZodString;
|
|
212
|
+
label: z.ZodString;
|
|
213
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
214
|
+
type: z.ZodString;
|
|
215
|
+
label: z.ZodString;
|
|
216
|
+
}, z.ZodTypeAny, "passthrough">>, {
|
|
190
217
|
type: string;
|
|
191
218
|
label: string;
|
|
192
|
-
}
|
|
219
|
+
}, z.objectInputType<{
|
|
220
|
+
type: z.ZodString;
|
|
221
|
+
label: z.ZodString;
|
|
222
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
193
223
|
}, "strip", z.ZodTypeAny, {
|
|
194
224
|
fields: {
|
|
195
225
|
type: string;
|
|
196
226
|
label: string;
|
|
197
227
|
}[];
|
|
198
228
|
}, {
|
|
199
|
-
fields: {
|
|
200
|
-
type:
|
|
201
|
-
label:
|
|
202
|
-
}[];
|
|
229
|
+
fields: z.objectInputType<{
|
|
230
|
+
type: z.ZodString;
|
|
231
|
+
label: z.ZodString;
|
|
232
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
203
233
|
}>;
|
|
204
234
|
}, "strip", z.ZodTypeAny, {
|
|
205
235
|
type: "object";
|
|
@@ -219,16 +249,16 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
219
249
|
id: string;
|
|
220
250
|
modelRef: string;
|
|
221
251
|
form: {
|
|
222
|
-
fields: {
|
|
223
|
-
type:
|
|
224
|
-
label:
|
|
225
|
-
}[];
|
|
252
|
+
fields: z.objectInputType<{
|
|
253
|
+
type: z.ZodString;
|
|
254
|
+
label: z.ZodString;
|
|
255
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
226
256
|
};
|
|
227
257
|
includeIdField?: boolean | undefined;
|
|
228
258
|
}>, z.ZodObject<{
|
|
229
259
|
id: z.ZodString;
|
|
230
260
|
name: z.ZodString;
|
|
231
|
-
modelRef:
|
|
261
|
+
modelRef: z.ZodEffects<z.ZodString, string, string>;
|
|
232
262
|
includeIdField: z.ZodOptional<z.ZodBoolean>;
|
|
233
263
|
type: z.ZodLiteral<"list">;
|
|
234
264
|
table: z.ZodObject<{
|
|
@@ -236,7 +266,7 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
236
266
|
label: z.ZodString;
|
|
237
267
|
display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
238
268
|
type: z.ZodLiteral<"text">;
|
|
239
|
-
modelFieldRef:
|
|
269
|
+
modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
|
|
240
270
|
}, "strip", z.ZodTypeAny, {
|
|
241
271
|
type: "text";
|
|
242
272
|
modelFieldRef: string;
|
|
@@ -245,7 +275,7 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
245
275
|
modelFieldRef: string;
|
|
246
276
|
}>, z.ZodObject<{
|
|
247
277
|
type: z.ZodLiteral<"foreign">;
|
|
248
|
-
localRelationRef:
|
|
278
|
+
localRelationRef: z.ZodEffects<z.ZodString, string, string>;
|
|
249
279
|
labelExpression: z.ZodString;
|
|
250
280
|
valueExpression: z.ZodString;
|
|
251
281
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -310,26 +340,32 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
310
340
|
}[];
|
|
311
341
|
}>;
|
|
312
342
|
form: z.ZodObject<{
|
|
313
|
-
fields: z.ZodArray<
|
|
343
|
+
fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
314
344
|
type: z.ZodString;
|
|
315
345
|
label: z.ZodString;
|
|
316
|
-
}, "
|
|
317
|
-
type:
|
|
318
|
-
label:
|
|
319
|
-
}, {
|
|
346
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
347
|
+
type: z.ZodString;
|
|
348
|
+
label: z.ZodString;
|
|
349
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
350
|
+
type: z.ZodString;
|
|
351
|
+
label: z.ZodString;
|
|
352
|
+
}, z.ZodTypeAny, "passthrough">>, {
|
|
320
353
|
type: string;
|
|
321
354
|
label: string;
|
|
322
|
-
}
|
|
355
|
+
}, z.objectInputType<{
|
|
356
|
+
type: z.ZodString;
|
|
357
|
+
label: z.ZodString;
|
|
358
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
323
359
|
}, "strip", z.ZodTypeAny, {
|
|
324
360
|
fields: {
|
|
325
361
|
type: string;
|
|
326
362
|
label: string;
|
|
327
363
|
}[];
|
|
328
364
|
}, {
|
|
329
|
-
fields: {
|
|
330
|
-
type:
|
|
331
|
-
label:
|
|
332
|
-
}[];
|
|
365
|
+
fields: z.objectInputType<{
|
|
366
|
+
type: z.ZodString;
|
|
367
|
+
label: z.ZodString;
|
|
368
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
333
369
|
}>;
|
|
334
370
|
}, "strip", z.ZodTypeAny, {
|
|
335
371
|
type: "list";
|
|
@@ -358,6 +394,44 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
358
394
|
};
|
|
359
395
|
includeIdField?: boolean | undefined;
|
|
360
396
|
}, {
|
|
397
|
+
type: "list";
|
|
398
|
+
name: string;
|
|
399
|
+
id: string;
|
|
400
|
+
modelRef: string;
|
|
401
|
+
form: {
|
|
402
|
+
fields: z.objectInputType<{
|
|
403
|
+
type: z.ZodString;
|
|
404
|
+
label: z.ZodString;
|
|
405
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
406
|
+
};
|
|
407
|
+
table: {
|
|
408
|
+
columns: {
|
|
409
|
+
label: string;
|
|
410
|
+
display: {
|
|
411
|
+
type: "foreign";
|
|
412
|
+
localRelationRef: string;
|
|
413
|
+
labelExpression: string;
|
|
414
|
+
valueExpression: string;
|
|
415
|
+
} | {
|
|
416
|
+
type: "text";
|
|
417
|
+
modelFieldRef: string;
|
|
418
|
+
};
|
|
419
|
+
}[];
|
|
420
|
+
};
|
|
421
|
+
includeIdField?: boolean | undefined;
|
|
422
|
+
}>]>, {
|
|
423
|
+
type: "object";
|
|
424
|
+
name: string;
|
|
425
|
+
id: string;
|
|
426
|
+
modelRef: string;
|
|
427
|
+
form: {
|
|
428
|
+
fields: {
|
|
429
|
+
type: string;
|
|
430
|
+
label: string;
|
|
431
|
+
}[];
|
|
432
|
+
};
|
|
433
|
+
includeIdField?: boolean | undefined;
|
|
434
|
+
} | {
|
|
361
435
|
type: "list";
|
|
362
436
|
name: string;
|
|
363
437
|
id: string;
|
|
@@ -383,17 +457,48 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
383
457
|
}[];
|
|
384
458
|
};
|
|
385
459
|
includeIdField?: boolean | undefined;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
460
|
+
}, {
|
|
461
|
+
type: "object";
|
|
462
|
+
name: string;
|
|
463
|
+
id: string;
|
|
464
|
+
modelRef: string;
|
|
465
|
+
form: {
|
|
466
|
+
fields: z.objectInputType<{
|
|
467
|
+
type: z.ZodString;
|
|
468
|
+
label: z.ZodString;
|
|
469
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
470
|
+
};
|
|
471
|
+
includeIdField?: boolean | undefined;
|
|
472
|
+
} | {
|
|
473
|
+
type: "list";
|
|
474
|
+
name: string;
|
|
475
|
+
id: string;
|
|
476
|
+
modelRef: string;
|
|
477
|
+
form: {
|
|
478
|
+
fields: z.objectInputType<{
|
|
479
|
+
type: z.ZodString;
|
|
480
|
+
label: z.ZodString;
|
|
481
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
482
|
+
};
|
|
483
|
+
table: {
|
|
484
|
+
columns: {
|
|
485
|
+
label: string;
|
|
486
|
+
display: {
|
|
487
|
+
type: "foreign";
|
|
488
|
+
localRelationRef: string;
|
|
489
|
+
labelExpression: string;
|
|
490
|
+
valueExpression: string;
|
|
491
|
+
} | {
|
|
492
|
+
type: "text";
|
|
493
|
+
modelFieldRef: string;
|
|
494
|
+
};
|
|
495
|
+
}[];
|
|
496
|
+
};
|
|
497
|
+
includeIdField?: boolean | undefined;
|
|
498
|
+
}>, "many">>;
|
|
391
499
|
}, "strip", z.ZodTypeAny, {
|
|
392
500
|
type: "crud";
|
|
393
|
-
name: string;
|
|
394
|
-
id: string;
|
|
395
501
|
modelRef: string;
|
|
396
|
-
featureRef: string;
|
|
397
502
|
form: {
|
|
398
503
|
fields: {
|
|
399
504
|
type: string;
|
|
@@ -414,7 +519,6 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
414
519
|
};
|
|
415
520
|
}[];
|
|
416
521
|
};
|
|
417
|
-
icon?: string | undefined;
|
|
418
522
|
disableCreate?: boolean | undefined;
|
|
419
523
|
embeddedForms?: ({
|
|
420
524
|
type: "object";
|
|
@@ -457,14 +561,12 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
457
561
|
})[] | undefined;
|
|
458
562
|
}, {
|
|
459
563
|
type: "crud";
|
|
460
|
-
name: string;
|
|
461
564
|
modelRef: string;
|
|
462
|
-
featureRef: string;
|
|
463
565
|
form: {
|
|
464
|
-
fields: {
|
|
465
|
-
type:
|
|
466
|
-
label:
|
|
467
|
-
}[];
|
|
566
|
+
fields: z.objectInputType<{
|
|
567
|
+
type: z.ZodString;
|
|
568
|
+
label: z.ZodString;
|
|
569
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
468
570
|
};
|
|
469
571
|
table: {
|
|
470
572
|
columns: {
|
|
@@ -480,8 +582,6 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
480
582
|
};
|
|
481
583
|
}[];
|
|
482
584
|
};
|
|
483
|
-
icon?: string | undefined;
|
|
484
|
-
id?: string | undefined;
|
|
485
585
|
disableCreate?: boolean | undefined;
|
|
486
586
|
embeddedForms?: ({
|
|
487
587
|
type: "object";
|
|
@@ -489,10 +589,10 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
489
589
|
id: string;
|
|
490
590
|
modelRef: string;
|
|
491
591
|
form: {
|
|
492
|
-
fields: {
|
|
493
|
-
type:
|
|
494
|
-
label:
|
|
495
|
-
}[];
|
|
592
|
+
fields: z.objectInputType<{
|
|
593
|
+
type: z.ZodString;
|
|
594
|
+
label: z.ZodString;
|
|
595
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
496
596
|
};
|
|
497
597
|
includeIdField?: boolean | undefined;
|
|
498
598
|
} | {
|
|
@@ -501,10 +601,10 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
501
601
|
id: string;
|
|
502
602
|
modelRef: string;
|
|
503
603
|
form: {
|
|
504
|
-
fields: {
|
|
505
|
-
type:
|
|
506
|
-
label:
|
|
507
|
-
}[];
|
|
604
|
+
fields: z.objectInputType<{
|
|
605
|
+
type: z.ZodString;
|
|
606
|
+
label: z.ZodString;
|
|
607
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
508
608
|
};
|
|
509
609
|
table: {
|
|
510
610
|
columns: {
|
|
@@ -522,22 +622,15 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
522
622
|
};
|
|
523
623
|
includeIdField?: boolean | undefined;
|
|
524
624
|
})[] | undefined;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
name: z.ZodString;
|
|
528
|
-
packageLocation: z.ZodOptional<z.ZodString>;
|
|
529
|
-
}, "strip", z.ZodTypeAny, {
|
|
530
|
-
type: "admin";
|
|
531
|
-
name: string;
|
|
532
|
-
id: string;
|
|
533
|
-
packageLocation?: string | undefined;
|
|
534
|
-
allowedRoles?: string[] | undefined;
|
|
535
|
-
sections?: {
|
|
536
|
-
type: "crud";
|
|
625
|
+
}>>, {
|
|
626
|
+
type: string;
|
|
537
627
|
name: string;
|
|
538
628
|
id: string;
|
|
539
|
-
modelRef: string;
|
|
540
629
|
featureRef: string;
|
|
630
|
+
icon?: string | undefined;
|
|
631
|
+
} & {
|
|
632
|
+
type: "crud";
|
|
633
|
+
modelRef: string;
|
|
541
634
|
form: {
|
|
542
635
|
fields: {
|
|
543
636
|
type: string;
|
|
@@ -558,7 +651,6 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
558
651
|
};
|
|
559
652
|
}[];
|
|
560
653
|
};
|
|
561
|
-
icon?: string | undefined;
|
|
562
654
|
disableCreate?: boolean | undefined;
|
|
563
655
|
embeddedForms?: ({
|
|
564
656
|
type: "object";
|
|
@@ -599,23 +691,20 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
599
691
|
};
|
|
600
692
|
includeIdField?: boolean | undefined;
|
|
601
693
|
})[] | undefined;
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
type: "admin";
|
|
605
|
-
name: string;
|
|
606
|
-
id?: string | undefined;
|
|
607
|
-
packageLocation?: string | undefined;
|
|
608
|
-
allowedRoles?: string[] | undefined;
|
|
609
|
-
sections?: {
|
|
610
|
-
type: "crud";
|
|
694
|
+
}, {
|
|
695
|
+
type: string;
|
|
611
696
|
name: string;
|
|
612
|
-
modelRef: string;
|
|
613
697
|
featureRef: string;
|
|
698
|
+
icon?: string | undefined;
|
|
699
|
+
id?: string | undefined;
|
|
700
|
+
} & {
|
|
701
|
+
type: "crud";
|
|
702
|
+
modelRef: string;
|
|
614
703
|
form: {
|
|
615
|
-
fields: {
|
|
616
|
-
type:
|
|
617
|
-
label:
|
|
618
|
-
}[];
|
|
704
|
+
fields: z.objectInputType<{
|
|
705
|
+
type: z.ZodString;
|
|
706
|
+
label: z.ZodString;
|
|
707
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
619
708
|
};
|
|
620
709
|
table: {
|
|
621
710
|
columns: {
|
|
@@ -631,8 +720,6 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
631
720
|
};
|
|
632
721
|
}[];
|
|
633
722
|
};
|
|
634
|
-
icon?: string | undefined;
|
|
635
|
-
id?: string | undefined;
|
|
636
723
|
disableCreate?: boolean | undefined;
|
|
637
724
|
embeddedForms?: ({
|
|
638
725
|
type: "object";
|
|
@@ -640,10 +727,10 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
640
727
|
id: string;
|
|
641
728
|
modelRef: string;
|
|
642
729
|
form: {
|
|
643
|
-
fields: {
|
|
644
|
-
type:
|
|
645
|
-
label:
|
|
646
|
-
}[];
|
|
730
|
+
fields: z.objectInputType<{
|
|
731
|
+
type: z.ZodString;
|
|
732
|
+
label: z.ZodString;
|
|
733
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
647
734
|
};
|
|
648
735
|
includeIdField?: boolean | undefined;
|
|
649
736
|
} | {
|
|
@@ -652,10 +739,10 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
652
739
|
id: string;
|
|
653
740
|
modelRef: string;
|
|
654
741
|
form: {
|
|
655
|
-
fields: {
|
|
656
|
-
type:
|
|
657
|
-
label:
|
|
658
|
-
}[];
|
|
742
|
+
fields: z.objectInputType<{
|
|
743
|
+
type: z.ZodString;
|
|
744
|
+
label: z.ZodString;
|
|
745
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
659
746
|
};
|
|
660
747
|
table: {
|
|
661
748
|
columns: {
|
|
@@ -673,51 +760,540 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
|
|
|
673
760
|
};
|
|
674
761
|
includeIdField?: boolean | undefined;
|
|
675
762
|
})[] | undefined;
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
export type AppConfig = def.InferOutput<typeof createAppSchema>;
|
|
679
|
-
export declare const createProjectDefinitionSchema: (options: import("./creator/types.js").DefinitionSchemaCreatorOptions) => z.ZodObject<{
|
|
680
|
-
cliVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
681
|
-
apps: z.ZodDefault<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
682
|
-
type: z.ZodLiteral<"backend">;
|
|
683
|
-
enableStripe: z.ZodOptional<z.ZodBoolean>;
|
|
684
|
-
enableRedis: z.ZodOptional<z.ZodBoolean>;
|
|
685
|
-
enableBullQueue: z.ZodOptional<z.ZodBoolean>;
|
|
686
|
-
enablePostmark: z.ZodOptional<z.ZodBoolean>;
|
|
687
|
-
enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
|
|
688
|
-
enableAxios: z.ZodOptional<z.ZodBoolean>;
|
|
689
|
-
id: z.ZodDefault<z.ZodString>;
|
|
690
|
-
name: z.ZodString;
|
|
691
|
-
packageLocation: z.ZodOptional<z.ZodString>;
|
|
692
|
-
}, "strip", z.ZodTypeAny, {
|
|
693
|
-
type: "backend";
|
|
763
|
+
}>, {
|
|
764
|
+
type: string;
|
|
694
765
|
name: string;
|
|
695
766
|
id: string;
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
767
|
+
featureRef: string;
|
|
768
|
+
icon?: string | undefined;
|
|
769
|
+
} & {
|
|
770
|
+
type: "crud";
|
|
771
|
+
modelRef: string;
|
|
772
|
+
form: {
|
|
773
|
+
fields: {
|
|
774
|
+
type: string;
|
|
775
|
+
label: string;
|
|
776
|
+
}[];
|
|
777
|
+
};
|
|
778
|
+
table: {
|
|
779
|
+
columns: {
|
|
780
|
+
label: string;
|
|
781
|
+
display: {
|
|
782
|
+
type: "foreign";
|
|
783
|
+
localRelationRef: string;
|
|
784
|
+
labelExpression: string;
|
|
785
|
+
valueExpression: string;
|
|
786
|
+
} | {
|
|
787
|
+
type: "text";
|
|
788
|
+
modelFieldRef: string;
|
|
789
|
+
};
|
|
790
|
+
}[];
|
|
791
|
+
};
|
|
792
|
+
disableCreate?: boolean | undefined;
|
|
793
|
+
embeddedForms?: ({
|
|
794
|
+
type: "object";
|
|
795
|
+
name: string;
|
|
796
|
+
id: string;
|
|
797
|
+
modelRef: string;
|
|
798
|
+
form: {
|
|
799
|
+
fields: {
|
|
800
|
+
type: string;
|
|
801
|
+
label: string;
|
|
802
|
+
}[];
|
|
803
|
+
};
|
|
804
|
+
includeIdField?: boolean | undefined;
|
|
805
|
+
} | {
|
|
806
|
+
type: "list";
|
|
807
|
+
name: string;
|
|
808
|
+
id: string;
|
|
809
|
+
modelRef: string;
|
|
810
|
+
form: {
|
|
811
|
+
fields: {
|
|
812
|
+
type: string;
|
|
813
|
+
label: string;
|
|
814
|
+
}[];
|
|
815
|
+
};
|
|
816
|
+
table: {
|
|
817
|
+
columns: {
|
|
818
|
+
label: string;
|
|
819
|
+
display: {
|
|
820
|
+
type: "foreign";
|
|
821
|
+
localRelationRef: string;
|
|
822
|
+
labelExpression: string;
|
|
823
|
+
valueExpression: string;
|
|
824
|
+
} | {
|
|
825
|
+
type: "text";
|
|
826
|
+
modelFieldRef: string;
|
|
827
|
+
};
|
|
828
|
+
}[];
|
|
829
|
+
};
|
|
830
|
+
includeIdField?: boolean | undefined;
|
|
831
|
+
})[] | undefined;
|
|
832
|
+
}, {
|
|
833
|
+
type: string;
|
|
834
|
+
name: string;
|
|
835
|
+
featureRef: string;
|
|
836
|
+
icon?: string | undefined;
|
|
837
|
+
id?: string | undefined;
|
|
838
|
+
} & {
|
|
839
|
+
type: "crud";
|
|
840
|
+
modelRef: string;
|
|
841
|
+
form: {
|
|
842
|
+
fields: z.objectInputType<{
|
|
843
|
+
type: z.ZodString;
|
|
844
|
+
label: z.ZodString;
|
|
845
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
846
|
+
};
|
|
847
|
+
table: {
|
|
848
|
+
columns: {
|
|
849
|
+
label: string;
|
|
850
|
+
display: {
|
|
851
|
+
type: "foreign";
|
|
852
|
+
localRelationRef: string;
|
|
853
|
+
labelExpression: string;
|
|
854
|
+
valueExpression: string;
|
|
855
|
+
} | {
|
|
856
|
+
type: "text";
|
|
857
|
+
modelFieldRef: string;
|
|
858
|
+
};
|
|
859
|
+
}[];
|
|
860
|
+
};
|
|
861
|
+
disableCreate?: boolean | undefined;
|
|
862
|
+
embeddedForms?: ({
|
|
863
|
+
type: "object";
|
|
864
|
+
name: string;
|
|
865
|
+
id: string;
|
|
866
|
+
modelRef: string;
|
|
867
|
+
form: {
|
|
868
|
+
fields: z.objectInputType<{
|
|
869
|
+
type: z.ZodString;
|
|
870
|
+
label: z.ZodString;
|
|
871
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
872
|
+
};
|
|
873
|
+
includeIdField?: boolean | undefined;
|
|
874
|
+
} | {
|
|
875
|
+
type: "list";
|
|
876
|
+
name: string;
|
|
877
|
+
id: string;
|
|
878
|
+
modelRef: string;
|
|
879
|
+
form: {
|
|
880
|
+
fields: z.objectInputType<{
|
|
881
|
+
type: z.ZodString;
|
|
882
|
+
label: z.ZodString;
|
|
883
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
884
|
+
};
|
|
885
|
+
table: {
|
|
886
|
+
columns: {
|
|
887
|
+
label: string;
|
|
888
|
+
display: {
|
|
889
|
+
type: "foreign";
|
|
890
|
+
localRelationRef: string;
|
|
891
|
+
labelExpression: string;
|
|
892
|
+
valueExpression: string;
|
|
893
|
+
} | {
|
|
894
|
+
type: "text";
|
|
895
|
+
modelFieldRef: string;
|
|
896
|
+
};
|
|
897
|
+
}[];
|
|
898
|
+
};
|
|
899
|
+
includeIdField?: boolean | undefined;
|
|
900
|
+
})[] | undefined;
|
|
901
|
+
}>, "many">>;
|
|
902
|
+
id: z.ZodDefault<z.ZodString>;
|
|
903
|
+
name: z.ZodString;
|
|
904
|
+
packageLocation: z.ZodOptional<z.ZodString>;
|
|
905
|
+
}, "strip", z.ZodTypeAny, {
|
|
906
|
+
type: "admin";
|
|
907
|
+
name: string;
|
|
908
|
+
id: string;
|
|
909
|
+
packageLocation?: string | undefined;
|
|
910
|
+
allowedRoles?: string[] | undefined;
|
|
911
|
+
sections?: ({
|
|
912
|
+
type: string;
|
|
913
|
+
name: string;
|
|
914
|
+
id: string;
|
|
915
|
+
featureRef: string;
|
|
916
|
+
icon?: string | undefined;
|
|
917
|
+
} & {
|
|
918
|
+
type: "crud";
|
|
919
|
+
modelRef: string;
|
|
920
|
+
form: {
|
|
921
|
+
fields: {
|
|
922
|
+
type: string;
|
|
923
|
+
label: string;
|
|
924
|
+
}[];
|
|
925
|
+
};
|
|
926
|
+
table: {
|
|
927
|
+
columns: {
|
|
928
|
+
label: string;
|
|
929
|
+
display: {
|
|
930
|
+
type: "foreign";
|
|
931
|
+
localRelationRef: string;
|
|
932
|
+
labelExpression: string;
|
|
933
|
+
valueExpression: string;
|
|
934
|
+
} | {
|
|
935
|
+
type: "text";
|
|
936
|
+
modelFieldRef: string;
|
|
937
|
+
};
|
|
938
|
+
}[];
|
|
939
|
+
};
|
|
940
|
+
disableCreate?: boolean | undefined;
|
|
941
|
+
embeddedForms?: ({
|
|
942
|
+
type: "object";
|
|
943
|
+
name: string;
|
|
944
|
+
id: string;
|
|
945
|
+
modelRef: string;
|
|
946
|
+
form: {
|
|
947
|
+
fields: {
|
|
948
|
+
type: string;
|
|
949
|
+
label: string;
|
|
950
|
+
}[];
|
|
951
|
+
};
|
|
952
|
+
includeIdField?: boolean | undefined;
|
|
953
|
+
} | {
|
|
954
|
+
type: "list";
|
|
955
|
+
name: string;
|
|
956
|
+
id: string;
|
|
957
|
+
modelRef: string;
|
|
958
|
+
form: {
|
|
959
|
+
fields: {
|
|
960
|
+
type: string;
|
|
961
|
+
label: string;
|
|
962
|
+
}[];
|
|
963
|
+
};
|
|
964
|
+
table: {
|
|
965
|
+
columns: {
|
|
966
|
+
label: string;
|
|
967
|
+
display: {
|
|
968
|
+
type: "foreign";
|
|
969
|
+
localRelationRef: string;
|
|
970
|
+
labelExpression: string;
|
|
971
|
+
valueExpression: string;
|
|
972
|
+
} | {
|
|
973
|
+
type: "text";
|
|
974
|
+
modelFieldRef: string;
|
|
975
|
+
};
|
|
976
|
+
}[];
|
|
977
|
+
};
|
|
978
|
+
includeIdField?: boolean | undefined;
|
|
979
|
+
})[] | undefined;
|
|
980
|
+
})[] | undefined;
|
|
981
|
+
}, {
|
|
982
|
+
type: "admin";
|
|
983
|
+
name: string;
|
|
984
|
+
id?: string | undefined;
|
|
985
|
+
packageLocation?: string | undefined;
|
|
986
|
+
allowedRoles?: string[] | undefined;
|
|
987
|
+
sections?: ({
|
|
988
|
+
type: string;
|
|
989
|
+
name: string;
|
|
990
|
+
featureRef: string;
|
|
991
|
+
icon?: string | undefined;
|
|
992
|
+
id?: string | undefined;
|
|
993
|
+
} & {
|
|
994
|
+
type: "crud";
|
|
995
|
+
modelRef: string;
|
|
996
|
+
form: {
|
|
997
|
+
fields: z.objectInputType<{
|
|
998
|
+
type: z.ZodString;
|
|
999
|
+
label: z.ZodString;
|
|
1000
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1001
|
+
};
|
|
1002
|
+
table: {
|
|
1003
|
+
columns: {
|
|
1004
|
+
label: string;
|
|
1005
|
+
display: {
|
|
1006
|
+
type: "foreign";
|
|
1007
|
+
localRelationRef: string;
|
|
1008
|
+
labelExpression: string;
|
|
1009
|
+
valueExpression: string;
|
|
1010
|
+
} | {
|
|
1011
|
+
type: "text";
|
|
1012
|
+
modelFieldRef: string;
|
|
1013
|
+
};
|
|
1014
|
+
}[];
|
|
1015
|
+
};
|
|
1016
|
+
disableCreate?: boolean | undefined;
|
|
1017
|
+
embeddedForms?: ({
|
|
1018
|
+
type: "object";
|
|
1019
|
+
name: string;
|
|
1020
|
+
id: string;
|
|
1021
|
+
modelRef: string;
|
|
1022
|
+
form: {
|
|
1023
|
+
fields: z.objectInputType<{
|
|
1024
|
+
type: z.ZodString;
|
|
1025
|
+
label: z.ZodString;
|
|
1026
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1027
|
+
};
|
|
1028
|
+
includeIdField?: boolean | undefined;
|
|
1029
|
+
} | {
|
|
1030
|
+
type: "list";
|
|
1031
|
+
name: string;
|
|
1032
|
+
id: string;
|
|
1033
|
+
modelRef: string;
|
|
1034
|
+
form: {
|
|
1035
|
+
fields: z.objectInputType<{
|
|
1036
|
+
type: z.ZodString;
|
|
1037
|
+
label: z.ZodString;
|
|
1038
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1039
|
+
};
|
|
1040
|
+
table: {
|
|
1041
|
+
columns: {
|
|
1042
|
+
label: string;
|
|
1043
|
+
display: {
|
|
1044
|
+
type: "foreign";
|
|
1045
|
+
localRelationRef: string;
|
|
1046
|
+
labelExpression: string;
|
|
1047
|
+
valueExpression: string;
|
|
1048
|
+
} | {
|
|
1049
|
+
type: "text";
|
|
1050
|
+
modelFieldRef: string;
|
|
1051
|
+
};
|
|
1052
|
+
}[];
|
|
1053
|
+
};
|
|
1054
|
+
includeIdField?: boolean | undefined;
|
|
1055
|
+
})[] | undefined;
|
|
1056
|
+
})[] | undefined;
|
|
1057
|
+
}>]>, {
|
|
1058
|
+
type: "admin";
|
|
1059
|
+
name: string;
|
|
1060
|
+
id: string;
|
|
1061
|
+
packageLocation?: string | undefined;
|
|
1062
|
+
allowedRoles?: string[] | undefined;
|
|
1063
|
+
sections?: ({
|
|
1064
|
+
type: string;
|
|
1065
|
+
name: string;
|
|
1066
|
+
id: string;
|
|
1067
|
+
featureRef: string;
|
|
1068
|
+
icon?: string | undefined;
|
|
1069
|
+
} & {
|
|
1070
|
+
type: "crud";
|
|
1071
|
+
modelRef: string;
|
|
1072
|
+
form: {
|
|
1073
|
+
fields: {
|
|
1074
|
+
type: string;
|
|
1075
|
+
label: string;
|
|
1076
|
+
}[];
|
|
1077
|
+
};
|
|
1078
|
+
table: {
|
|
1079
|
+
columns: {
|
|
1080
|
+
label: string;
|
|
1081
|
+
display: {
|
|
1082
|
+
type: "foreign";
|
|
1083
|
+
localRelationRef: string;
|
|
1084
|
+
labelExpression: string;
|
|
1085
|
+
valueExpression: string;
|
|
1086
|
+
} | {
|
|
1087
|
+
type: "text";
|
|
1088
|
+
modelFieldRef: string;
|
|
1089
|
+
};
|
|
1090
|
+
}[];
|
|
1091
|
+
};
|
|
1092
|
+
disableCreate?: boolean | undefined;
|
|
1093
|
+
embeddedForms?: ({
|
|
1094
|
+
type: "object";
|
|
1095
|
+
name: string;
|
|
1096
|
+
id: string;
|
|
1097
|
+
modelRef: string;
|
|
1098
|
+
form: {
|
|
1099
|
+
fields: {
|
|
1100
|
+
type: string;
|
|
1101
|
+
label: string;
|
|
1102
|
+
}[];
|
|
1103
|
+
};
|
|
1104
|
+
includeIdField?: boolean | undefined;
|
|
1105
|
+
} | {
|
|
1106
|
+
type: "list";
|
|
1107
|
+
name: string;
|
|
1108
|
+
id: string;
|
|
1109
|
+
modelRef: string;
|
|
1110
|
+
form: {
|
|
1111
|
+
fields: {
|
|
1112
|
+
type: string;
|
|
1113
|
+
label: string;
|
|
1114
|
+
}[];
|
|
1115
|
+
};
|
|
1116
|
+
table: {
|
|
1117
|
+
columns: {
|
|
1118
|
+
label: string;
|
|
1119
|
+
display: {
|
|
1120
|
+
type: "foreign";
|
|
1121
|
+
localRelationRef: string;
|
|
1122
|
+
labelExpression: string;
|
|
1123
|
+
valueExpression: string;
|
|
1124
|
+
} | {
|
|
1125
|
+
type: "text";
|
|
1126
|
+
modelFieldRef: string;
|
|
1127
|
+
};
|
|
1128
|
+
}[];
|
|
1129
|
+
};
|
|
1130
|
+
includeIdField?: boolean | undefined;
|
|
1131
|
+
})[] | undefined;
|
|
1132
|
+
})[] | undefined;
|
|
1133
|
+
} | {
|
|
1134
|
+
type: "backend";
|
|
1135
|
+
name: string;
|
|
1136
|
+
id: string;
|
|
1137
|
+
packageLocation?: string | undefined;
|
|
1138
|
+
enableStripe?: boolean | undefined;
|
|
1139
|
+
enableRedis?: boolean | undefined;
|
|
1140
|
+
enableBullQueue?: boolean | undefined;
|
|
1141
|
+
enablePostmark?: boolean | undefined;
|
|
1142
|
+
enableSubscriptions?: boolean | undefined;
|
|
1143
|
+
enableAxios?: boolean | undefined;
|
|
1144
|
+
} | {
|
|
1145
|
+
type: "web";
|
|
1146
|
+
name: string;
|
|
1147
|
+
id: string;
|
|
1148
|
+
description?: string | undefined;
|
|
1149
|
+
packageLocation?: string | undefined;
|
|
1150
|
+
allowedRoles?: string[] | undefined;
|
|
1151
|
+
enableSubscriptions?: boolean | undefined;
|
|
1152
|
+
includeAuth?: boolean | undefined;
|
|
1153
|
+
title?: string | undefined;
|
|
1154
|
+
includeUploadComponents?: boolean | undefined;
|
|
1155
|
+
}, {
|
|
1156
|
+
type: "admin";
|
|
1157
|
+
name: string;
|
|
1158
|
+
id?: string | undefined;
|
|
1159
|
+
packageLocation?: string | undefined;
|
|
1160
|
+
allowedRoles?: string[] | undefined;
|
|
1161
|
+
sections?: ({
|
|
1162
|
+
type: string;
|
|
1163
|
+
name: string;
|
|
1164
|
+
featureRef: string;
|
|
1165
|
+
icon?: string | undefined;
|
|
1166
|
+
id?: string | undefined;
|
|
1167
|
+
} & {
|
|
1168
|
+
type: "crud";
|
|
1169
|
+
modelRef: string;
|
|
1170
|
+
form: {
|
|
1171
|
+
fields: z.objectInputType<{
|
|
1172
|
+
type: z.ZodString;
|
|
1173
|
+
label: z.ZodString;
|
|
1174
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1175
|
+
};
|
|
1176
|
+
table: {
|
|
1177
|
+
columns: {
|
|
1178
|
+
label: string;
|
|
1179
|
+
display: {
|
|
1180
|
+
type: "foreign";
|
|
1181
|
+
localRelationRef: string;
|
|
1182
|
+
labelExpression: string;
|
|
1183
|
+
valueExpression: string;
|
|
1184
|
+
} | {
|
|
1185
|
+
type: "text";
|
|
1186
|
+
modelFieldRef: string;
|
|
1187
|
+
};
|
|
1188
|
+
}[];
|
|
1189
|
+
};
|
|
1190
|
+
disableCreate?: boolean | undefined;
|
|
1191
|
+
embeddedForms?: ({
|
|
1192
|
+
type: "object";
|
|
1193
|
+
name: string;
|
|
1194
|
+
id: string;
|
|
1195
|
+
modelRef: string;
|
|
1196
|
+
form: {
|
|
1197
|
+
fields: z.objectInputType<{
|
|
1198
|
+
type: z.ZodString;
|
|
1199
|
+
label: z.ZodString;
|
|
1200
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1201
|
+
};
|
|
1202
|
+
includeIdField?: boolean | undefined;
|
|
1203
|
+
} | {
|
|
1204
|
+
type: "list";
|
|
1205
|
+
name: string;
|
|
1206
|
+
id: string;
|
|
1207
|
+
modelRef: string;
|
|
1208
|
+
form: {
|
|
1209
|
+
fields: z.objectInputType<{
|
|
1210
|
+
type: z.ZodString;
|
|
1211
|
+
label: z.ZodString;
|
|
1212
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1213
|
+
};
|
|
1214
|
+
table: {
|
|
1215
|
+
columns: {
|
|
1216
|
+
label: string;
|
|
1217
|
+
display: {
|
|
1218
|
+
type: "foreign";
|
|
1219
|
+
localRelationRef: string;
|
|
1220
|
+
labelExpression: string;
|
|
1221
|
+
valueExpression: string;
|
|
1222
|
+
} | {
|
|
1223
|
+
type: "text";
|
|
1224
|
+
modelFieldRef: string;
|
|
1225
|
+
};
|
|
1226
|
+
}[];
|
|
1227
|
+
};
|
|
1228
|
+
includeIdField?: boolean | undefined;
|
|
1229
|
+
})[] | undefined;
|
|
1230
|
+
})[] | undefined;
|
|
1231
|
+
} | {
|
|
1232
|
+
type: "backend";
|
|
1233
|
+
name: string;
|
|
1234
|
+
id?: string | undefined;
|
|
1235
|
+
packageLocation?: string | undefined;
|
|
1236
|
+
enableStripe?: boolean | undefined;
|
|
1237
|
+
enableRedis?: boolean | undefined;
|
|
1238
|
+
enableBullQueue?: boolean | undefined;
|
|
1239
|
+
enablePostmark?: boolean | undefined;
|
|
1240
|
+
enableSubscriptions?: boolean | undefined;
|
|
1241
|
+
enableAxios?: boolean | undefined;
|
|
1242
|
+
} | {
|
|
1243
|
+
type: "web";
|
|
1244
|
+
name: string;
|
|
1245
|
+
description?: string | undefined;
|
|
1246
|
+
id?: string | undefined;
|
|
1247
|
+
packageLocation?: string | undefined;
|
|
1248
|
+
allowedRoles?: string[] | undefined;
|
|
1249
|
+
enableSubscriptions?: boolean | undefined;
|
|
1250
|
+
includeAuth?: boolean | undefined;
|
|
1251
|
+
title?: string | undefined;
|
|
1252
|
+
includeUploadComponents?: boolean | undefined;
|
|
1253
|
+
}>;
|
|
1254
|
+
export type AppConfig = def.InferOutput<typeof createAppSchema>;
|
|
1255
|
+
export declare const createProjectDefinitionSchema: (context: import("./creator/types.js").DefinitionSchemaParserContext) => z.ZodObject<{
|
|
1256
|
+
cliVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1257
|
+
apps: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1258
|
+
type: z.ZodLiteral<"backend">;
|
|
1259
|
+
enableStripe: z.ZodOptional<z.ZodBoolean>;
|
|
1260
|
+
enableRedis: z.ZodOptional<z.ZodBoolean>;
|
|
1261
|
+
enableBullQueue: z.ZodOptional<z.ZodBoolean>;
|
|
1262
|
+
enablePostmark: z.ZodOptional<z.ZodBoolean>;
|
|
1263
|
+
enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
|
|
1264
|
+
enableAxios: z.ZodOptional<z.ZodBoolean>;
|
|
1265
|
+
id: z.ZodDefault<z.ZodString>;
|
|
1266
|
+
name: z.ZodString;
|
|
1267
|
+
packageLocation: z.ZodOptional<z.ZodString>;
|
|
1268
|
+
}, "strip", z.ZodTypeAny, {
|
|
1269
|
+
type: "backend";
|
|
1270
|
+
name: string;
|
|
1271
|
+
id: string;
|
|
1272
|
+
packageLocation?: string | undefined;
|
|
1273
|
+
enableStripe?: boolean | undefined;
|
|
1274
|
+
enableRedis?: boolean | undefined;
|
|
1275
|
+
enableBullQueue?: boolean | undefined;
|
|
1276
|
+
enablePostmark?: boolean | undefined;
|
|
1277
|
+
enableSubscriptions?: boolean | undefined;
|
|
1278
|
+
enableAxios?: boolean | undefined;
|
|
1279
|
+
}, {
|
|
1280
|
+
type: "backend";
|
|
1281
|
+
name: string;
|
|
1282
|
+
id?: string | undefined;
|
|
1283
|
+
packageLocation?: string | undefined;
|
|
1284
|
+
enableStripe?: boolean | undefined;
|
|
1285
|
+
enableRedis?: boolean | undefined;
|
|
1286
|
+
enableBullQueue?: boolean | undefined;
|
|
1287
|
+
enablePostmark?: boolean | undefined;
|
|
1288
|
+
enableSubscriptions?: boolean | undefined;
|
|
1289
|
+
enableAxios?: boolean | undefined;
|
|
1290
|
+
}>, z.ZodObject<{
|
|
1291
|
+
type: z.ZodLiteral<"web">;
|
|
1292
|
+
includeAuth: z.ZodOptional<z.ZodBoolean>;
|
|
1293
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1294
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1295
|
+
allowedRoles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1296
|
+
includeUploadComponents: z.ZodOptional<z.ZodBoolean>;
|
|
721
1297
|
enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
|
|
722
1298
|
id: z.ZodDefault<z.ZodString>;
|
|
723
1299
|
name: z.ZodString;
|
|
@@ -746,17 +1322,35 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
746
1322
|
includeUploadComponents?: boolean | undefined;
|
|
747
1323
|
}>, z.ZodObject<{
|
|
748
1324
|
type: z.ZodLiteral<"admin">;
|
|
749
|
-
allowedRoles: z.ZodOptional<z.ZodArray<
|
|
750
|
-
sections: z.ZodOptional<z.ZodArray<
|
|
1325
|
+
allowedRoles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1326
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodObject<{
|
|
1327
|
+
id: z.ZodDefault<z.ZodString>;
|
|
1328
|
+
name: z.ZodString;
|
|
1329
|
+
featureRef: z.ZodEffects<z.ZodString, string, string>;
|
|
1330
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1331
|
+
type: z.ZodString;
|
|
1332
|
+
}, "strip", z.ZodTypeAny, {
|
|
1333
|
+
type: string;
|
|
1334
|
+
name: string;
|
|
1335
|
+
id: string;
|
|
1336
|
+
featureRef: string;
|
|
1337
|
+
icon?: string | undefined;
|
|
1338
|
+
}, {
|
|
1339
|
+
type: string;
|
|
1340
|
+
name: string;
|
|
1341
|
+
featureRef: string;
|
|
1342
|
+
icon?: string | undefined;
|
|
1343
|
+
id?: string | undefined;
|
|
1344
|
+
}>, z.ZodObject<{
|
|
751
1345
|
type: z.ZodLiteral<"crud">;
|
|
752
|
-
modelRef:
|
|
1346
|
+
modelRef: z.ZodEffects<z.ZodString, string, string>;
|
|
753
1347
|
disableCreate: z.ZodOptional<z.ZodBoolean>;
|
|
754
1348
|
table: z.ZodObject<{
|
|
755
1349
|
columns: z.ZodArray<z.ZodObject<{
|
|
756
1350
|
label: z.ZodString;
|
|
757
1351
|
display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
758
1352
|
type: z.ZodLiteral<"text">;
|
|
759
|
-
modelFieldRef:
|
|
1353
|
+
modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
|
|
760
1354
|
}, "strip", z.ZodTypeAny, {
|
|
761
1355
|
type: "text";
|
|
762
1356
|
modelFieldRef: string;
|
|
@@ -765,7 +1359,7 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
765
1359
|
modelFieldRef: string;
|
|
766
1360
|
}>, z.ZodObject<{
|
|
767
1361
|
type: z.ZodLiteral<"foreign">;
|
|
768
|
-
localRelationRef:
|
|
1362
|
+
localRelationRef: z.ZodEffects<z.ZodString, string, string>;
|
|
769
1363
|
labelExpression: z.ZodString;
|
|
770
1364
|
valueExpression: z.ZodString;
|
|
771
1365
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -805,17 +1399,367 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
805
1399
|
}, "strip", z.ZodTypeAny, {
|
|
806
1400
|
columns: {
|
|
807
1401
|
label: string;
|
|
808
|
-
display: {
|
|
809
|
-
type: "foreign";
|
|
810
|
-
localRelationRef: string;
|
|
811
|
-
labelExpression: string;
|
|
812
|
-
valueExpression: string;
|
|
813
|
-
} | {
|
|
814
|
-
type: "text";
|
|
815
|
-
modelFieldRef: string;
|
|
816
|
-
};
|
|
1402
|
+
display: {
|
|
1403
|
+
type: "foreign";
|
|
1404
|
+
localRelationRef: string;
|
|
1405
|
+
labelExpression: string;
|
|
1406
|
+
valueExpression: string;
|
|
1407
|
+
} | {
|
|
1408
|
+
type: "text";
|
|
1409
|
+
modelFieldRef: string;
|
|
1410
|
+
};
|
|
1411
|
+
}[];
|
|
1412
|
+
}, {
|
|
1413
|
+
columns: {
|
|
1414
|
+
label: string;
|
|
1415
|
+
display: {
|
|
1416
|
+
type: "foreign";
|
|
1417
|
+
localRelationRef: string;
|
|
1418
|
+
labelExpression: string;
|
|
1419
|
+
valueExpression: string;
|
|
1420
|
+
} | {
|
|
1421
|
+
type: "text";
|
|
1422
|
+
modelFieldRef: string;
|
|
1423
|
+
};
|
|
1424
|
+
}[];
|
|
1425
|
+
}>;
|
|
1426
|
+
form: z.ZodObject<{
|
|
1427
|
+
fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1428
|
+
type: z.ZodString;
|
|
1429
|
+
label: z.ZodString;
|
|
1430
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1431
|
+
type: z.ZodString;
|
|
1432
|
+
label: z.ZodString;
|
|
1433
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1434
|
+
type: z.ZodString;
|
|
1435
|
+
label: z.ZodString;
|
|
1436
|
+
}, z.ZodTypeAny, "passthrough">>, {
|
|
1437
|
+
type: string;
|
|
1438
|
+
label: string;
|
|
1439
|
+
}, z.objectInputType<{
|
|
1440
|
+
type: z.ZodString;
|
|
1441
|
+
label: z.ZodString;
|
|
1442
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1443
|
+
}, "strip", z.ZodTypeAny, {
|
|
1444
|
+
fields: {
|
|
1445
|
+
type: string;
|
|
1446
|
+
label: string;
|
|
1447
|
+
}[];
|
|
1448
|
+
}, {
|
|
1449
|
+
fields: z.objectInputType<{
|
|
1450
|
+
type: z.ZodString;
|
|
1451
|
+
label: z.ZodString;
|
|
1452
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1453
|
+
}>;
|
|
1454
|
+
embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1455
|
+
id: z.ZodString;
|
|
1456
|
+
name: z.ZodString;
|
|
1457
|
+
modelRef: z.ZodEffects<z.ZodString, string, string>;
|
|
1458
|
+
includeIdField: z.ZodOptional<z.ZodBoolean>;
|
|
1459
|
+
type: z.ZodLiteral<"object">;
|
|
1460
|
+
form: z.ZodObject<{
|
|
1461
|
+
fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1462
|
+
type: z.ZodString;
|
|
1463
|
+
label: z.ZodString;
|
|
1464
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1465
|
+
type: z.ZodString;
|
|
1466
|
+
label: z.ZodString;
|
|
1467
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1468
|
+
type: z.ZodString;
|
|
1469
|
+
label: z.ZodString;
|
|
1470
|
+
}, z.ZodTypeAny, "passthrough">>, {
|
|
1471
|
+
type: string;
|
|
1472
|
+
label: string;
|
|
1473
|
+
}, z.objectInputType<{
|
|
1474
|
+
type: z.ZodString;
|
|
1475
|
+
label: z.ZodString;
|
|
1476
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1477
|
+
}, "strip", z.ZodTypeAny, {
|
|
1478
|
+
fields: {
|
|
1479
|
+
type: string;
|
|
1480
|
+
label: string;
|
|
1481
|
+
}[];
|
|
1482
|
+
}, {
|
|
1483
|
+
fields: z.objectInputType<{
|
|
1484
|
+
type: z.ZodString;
|
|
1485
|
+
label: z.ZodString;
|
|
1486
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1487
|
+
}>;
|
|
1488
|
+
}, "strip", z.ZodTypeAny, {
|
|
1489
|
+
type: "object";
|
|
1490
|
+
name: string;
|
|
1491
|
+
id: string;
|
|
1492
|
+
modelRef: string;
|
|
1493
|
+
form: {
|
|
1494
|
+
fields: {
|
|
1495
|
+
type: string;
|
|
1496
|
+
label: string;
|
|
1497
|
+
}[];
|
|
1498
|
+
};
|
|
1499
|
+
includeIdField?: boolean | undefined;
|
|
1500
|
+
}, {
|
|
1501
|
+
type: "object";
|
|
1502
|
+
name: string;
|
|
1503
|
+
id: string;
|
|
1504
|
+
modelRef: string;
|
|
1505
|
+
form: {
|
|
1506
|
+
fields: z.objectInputType<{
|
|
1507
|
+
type: z.ZodString;
|
|
1508
|
+
label: z.ZodString;
|
|
1509
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1510
|
+
};
|
|
1511
|
+
includeIdField?: boolean | undefined;
|
|
1512
|
+
}>, z.ZodObject<{
|
|
1513
|
+
id: z.ZodString;
|
|
1514
|
+
name: z.ZodString;
|
|
1515
|
+
modelRef: z.ZodEffects<z.ZodString, string, string>;
|
|
1516
|
+
includeIdField: z.ZodOptional<z.ZodBoolean>;
|
|
1517
|
+
type: z.ZodLiteral<"list">;
|
|
1518
|
+
table: z.ZodObject<{
|
|
1519
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
1520
|
+
label: z.ZodString;
|
|
1521
|
+
display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1522
|
+
type: z.ZodLiteral<"text">;
|
|
1523
|
+
modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
|
|
1524
|
+
}, "strip", z.ZodTypeAny, {
|
|
1525
|
+
type: "text";
|
|
1526
|
+
modelFieldRef: string;
|
|
1527
|
+
}, {
|
|
1528
|
+
type: "text";
|
|
1529
|
+
modelFieldRef: string;
|
|
1530
|
+
}>, z.ZodObject<{
|
|
1531
|
+
type: z.ZodLiteral<"foreign">;
|
|
1532
|
+
localRelationRef: z.ZodEffects<z.ZodString, string, string>;
|
|
1533
|
+
labelExpression: z.ZodString;
|
|
1534
|
+
valueExpression: z.ZodString;
|
|
1535
|
+
}, "strip", z.ZodTypeAny, {
|
|
1536
|
+
type: "foreign";
|
|
1537
|
+
localRelationRef: string;
|
|
1538
|
+
labelExpression: string;
|
|
1539
|
+
valueExpression: string;
|
|
1540
|
+
}, {
|
|
1541
|
+
type: "foreign";
|
|
1542
|
+
localRelationRef: string;
|
|
1543
|
+
labelExpression: string;
|
|
1544
|
+
valueExpression: string;
|
|
1545
|
+
}>]>;
|
|
1546
|
+
}, "strip", z.ZodTypeAny, {
|
|
1547
|
+
label: string;
|
|
1548
|
+
display: {
|
|
1549
|
+
type: "foreign";
|
|
1550
|
+
localRelationRef: string;
|
|
1551
|
+
labelExpression: string;
|
|
1552
|
+
valueExpression: string;
|
|
1553
|
+
} | {
|
|
1554
|
+
type: "text";
|
|
1555
|
+
modelFieldRef: string;
|
|
1556
|
+
};
|
|
1557
|
+
}, {
|
|
1558
|
+
label: string;
|
|
1559
|
+
display: {
|
|
1560
|
+
type: "foreign";
|
|
1561
|
+
localRelationRef: string;
|
|
1562
|
+
labelExpression: string;
|
|
1563
|
+
valueExpression: string;
|
|
1564
|
+
} | {
|
|
1565
|
+
type: "text";
|
|
1566
|
+
modelFieldRef: string;
|
|
1567
|
+
};
|
|
1568
|
+
}>, "many">;
|
|
1569
|
+
}, "strip", z.ZodTypeAny, {
|
|
1570
|
+
columns: {
|
|
1571
|
+
label: string;
|
|
1572
|
+
display: {
|
|
1573
|
+
type: "foreign";
|
|
1574
|
+
localRelationRef: string;
|
|
1575
|
+
labelExpression: string;
|
|
1576
|
+
valueExpression: string;
|
|
1577
|
+
} | {
|
|
1578
|
+
type: "text";
|
|
1579
|
+
modelFieldRef: string;
|
|
1580
|
+
};
|
|
1581
|
+
}[];
|
|
1582
|
+
}, {
|
|
1583
|
+
columns: {
|
|
1584
|
+
label: string;
|
|
1585
|
+
display: {
|
|
1586
|
+
type: "foreign";
|
|
1587
|
+
localRelationRef: string;
|
|
1588
|
+
labelExpression: string;
|
|
1589
|
+
valueExpression: string;
|
|
1590
|
+
} | {
|
|
1591
|
+
type: "text";
|
|
1592
|
+
modelFieldRef: string;
|
|
1593
|
+
};
|
|
1594
|
+
}[];
|
|
1595
|
+
}>;
|
|
1596
|
+
form: z.ZodObject<{
|
|
1597
|
+
fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1598
|
+
type: z.ZodString;
|
|
1599
|
+
label: z.ZodString;
|
|
1600
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1601
|
+
type: z.ZodString;
|
|
1602
|
+
label: z.ZodString;
|
|
1603
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1604
|
+
type: z.ZodString;
|
|
1605
|
+
label: z.ZodString;
|
|
1606
|
+
}, z.ZodTypeAny, "passthrough">>, {
|
|
1607
|
+
type: string;
|
|
1608
|
+
label: string;
|
|
1609
|
+
}, z.objectInputType<{
|
|
1610
|
+
type: z.ZodString;
|
|
1611
|
+
label: z.ZodString;
|
|
1612
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1613
|
+
}, "strip", z.ZodTypeAny, {
|
|
1614
|
+
fields: {
|
|
1615
|
+
type: string;
|
|
1616
|
+
label: string;
|
|
1617
|
+
}[];
|
|
1618
|
+
}, {
|
|
1619
|
+
fields: z.objectInputType<{
|
|
1620
|
+
type: z.ZodString;
|
|
1621
|
+
label: z.ZodString;
|
|
1622
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1623
|
+
}>;
|
|
1624
|
+
}, "strip", z.ZodTypeAny, {
|
|
1625
|
+
type: "list";
|
|
1626
|
+
name: string;
|
|
1627
|
+
id: string;
|
|
1628
|
+
modelRef: string;
|
|
1629
|
+
form: {
|
|
1630
|
+
fields: {
|
|
1631
|
+
type: string;
|
|
1632
|
+
label: string;
|
|
1633
|
+
}[];
|
|
1634
|
+
};
|
|
1635
|
+
table: {
|
|
1636
|
+
columns: {
|
|
1637
|
+
label: string;
|
|
1638
|
+
display: {
|
|
1639
|
+
type: "foreign";
|
|
1640
|
+
localRelationRef: string;
|
|
1641
|
+
labelExpression: string;
|
|
1642
|
+
valueExpression: string;
|
|
1643
|
+
} | {
|
|
1644
|
+
type: "text";
|
|
1645
|
+
modelFieldRef: string;
|
|
1646
|
+
};
|
|
1647
|
+
}[];
|
|
1648
|
+
};
|
|
1649
|
+
includeIdField?: boolean | undefined;
|
|
1650
|
+
}, {
|
|
1651
|
+
type: "list";
|
|
1652
|
+
name: string;
|
|
1653
|
+
id: string;
|
|
1654
|
+
modelRef: string;
|
|
1655
|
+
form: {
|
|
1656
|
+
fields: z.objectInputType<{
|
|
1657
|
+
type: z.ZodString;
|
|
1658
|
+
label: z.ZodString;
|
|
1659
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1660
|
+
};
|
|
1661
|
+
table: {
|
|
1662
|
+
columns: {
|
|
1663
|
+
label: string;
|
|
1664
|
+
display: {
|
|
1665
|
+
type: "foreign";
|
|
1666
|
+
localRelationRef: string;
|
|
1667
|
+
labelExpression: string;
|
|
1668
|
+
valueExpression: string;
|
|
1669
|
+
} | {
|
|
1670
|
+
type: "text";
|
|
1671
|
+
modelFieldRef: string;
|
|
1672
|
+
};
|
|
1673
|
+
}[];
|
|
1674
|
+
};
|
|
1675
|
+
includeIdField?: boolean | undefined;
|
|
1676
|
+
}>]>, {
|
|
1677
|
+
type: "object";
|
|
1678
|
+
name: string;
|
|
1679
|
+
id: string;
|
|
1680
|
+
modelRef: string;
|
|
1681
|
+
form: {
|
|
1682
|
+
fields: {
|
|
1683
|
+
type: string;
|
|
1684
|
+
label: string;
|
|
1685
|
+
}[];
|
|
1686
|
+
};
|
|
1687
|
+
includeIdField?: boolean | undefined;
|
|
1688
|
+
} | {
|
|
1689
|
+
type: "list";
|
|
1690
|
+
name: string;
|
|
1691
|
+
id: string;
|
|
1692
|
+
modelRef: string;
|
|
1693
|
+
form: {
|
|
1694
|
+
fields: {
|
|
1695
|
+
type: string;
|
|
1696
|
+
label: string;
|
|
1697
|
+
}[];
|
|
1698
|
+
};
|
|
1699
|
+
table: {
|
|
1700
|
+
columns: {
|
|
1701
|
+
label: string;
|
|
1702
|
+
display: {
|
|
1703
|
+
type: "foreign";
|
|
1704
|
+
localRelationRef: string;
|
|
1705
|
+
labelExpression: string;
|
|
1706
|
+
valueExpression: string;
|
|
1707
|
+
} | {
|
|
1708
|
+
type: "text";
|
|
1709
|
+
modelFieldRef: string;
|
|
1710
|
+
};
|
|
1711
|
+
}[];
|
|
1712
|
+
};
|
|
1713
|
+
includeIdField?: boolean | undefined;
|
|
1714
|
+
}, {
|
|
1715
|
+
type: "object";
|
|
1716
|
+
name: string;
|
|
1717
|
+
id: string;
|
|
1718
|
+
modelRef: string;
|
|
1719
|
+
form: {
|
|
1720
|
+
fields: z.objectInputType<{
|
|
1721
|
+
type: z.ZodString;
|
|
1722
|
+
label: z.ZodString;
|
|
1723
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1724
|
+
};
|
|
1725
|
+
includeIdField?: boolean | undefined;
|
|
1726
|
+
} | {
|
|
1727
|
+
type: "list";
|
|
1728
|
+
name: string;
|
|
1729
|
+
id: string;
|
|
1730
|
+
modelRef: string;
|
|
1731
|
+
form: {
|
|
1732
|
+
fields: z.objectInputType<{
|
|
1733
|
+
type: z.ZodString;
|
|
1734
|
+
label: z.ZodString;
|
|
1735
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1736
|
+
};
|
|
1737
|
+
table: {
|
|
1738
|
+
columns: {
|
|
1739
|
+
label: string;
|
|
1740
|
+
display: {
|
|
1741
|
+
type: "foreign";
|
|
1742
|
+
localRelationRef: string;
|
|
1743
|
+
labelExpression: string;
|
|
1744
|
+
valueExpression: string;
|
|
1745
|
+
} | {
|
|
1746
|
+
type: "text";
|
|
1747
|
+
modelFieldRef: string;
|
|
1748
|
+
};
|
|
1749
|
+
}[];
|
|
1750
|
+
};
|
|
1751
|
+
includeIdField?: boolean | undefined;
|
|
1752
|
+
}>, "many">>;
|
|
1753
|
+
}, "strip", z.ZodTypeAny, {
|
|
1754
|
+
type: "crud";
|
|
1755
|
+
modelRef: string;
|
|
1756
|
+
form: {
|
|
1757
|
+
fields: {
|
|
1758
|
+
type: string;
|
|
1759
|
+
label: string;
|
|
817
1760
|
}[];
|
|
818
|
-
}
|
|
1761
|
+
};
|
|
1762
|
+
table: {
|
|
819
1763
|
columns: {
|
|
820
1764
|
label: string;
|
|
821
1765
|
display: {
|
|
@@ -828,58 +1772,9 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
828
1772
|
modelFieldRef: string;
|
|
829
1773
|
};
|
|
830
1774
|
}[];
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
type: z.ZodString;
|
|
835
|
-
label: z.ZodString;
|
|
836
|
-
}, "strip", z.ZodTypeAny, {
|
|
837
|
-
type: string;
|
|
838
|
-
label: string;
|
|
839
|
-
}, {
|
|
840
|
-
type: string;
|
|
841
|
-
label: string;
|
|
842
|
-
}>>, "many">;
|
|
843
|
-
}, "strip", z.ZodTypeAny, {
|
|
844
|
-
fields: {
|
|
845
|
-
type: string;
|
|
846
|
-
label: string;
|
|
847
|
-
}[];
|
|
848
|
-
}, {
|
|
849
|
-
fields: {
|
|
850
|
-
type: string;
|
|
851
|
-
label: string;
|
|
852
|
-
}[];
|
|
853
|
-
}>;
|
|
854
|
-
embeddedForms: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
855
|
-
id: z.ZodString;
|
|
856
|
-
name: z.ZodString;
|
|
857
|
-
modelRef: import("#src/references/index.js").ZodRef<z.ZodString>;
|
|
858
|
-
includeIdField: z.ZodOptional<z.ZodBoolean>;
|
|
859
|
-
type: z.ZodLiteral<"object">;
|
|
860
|
-
form: z.ZodObject<{
|
|
861
|
-
fields: z.ZodArray<import("../index.js").ZodWithPlugins<z.ZodObject<{
|
|
862
|
-
type: z.ZodString;
|
|
863
|
-
label: z.ZodString;
|
|
864
|
-
}, "strip", z.ZodTypeAny, {
|
|
865
|
-
type: string;
|
|
866
|
-
label: string;
|
|
867
|
-
}, {
|
|
868
|
-
type: string;
|
|
869
|
-
label: string;
|
|
870
|
-
}>>, "many">;
|
|
871
|
-
}, "strip", z.ZodTypeAny, {
|
|
872
|
-
fields: {
|
|
873
|
-
type: string;
|
|
874
|
-
label: string;
|
|
875
|
-
}[];
|
|
876
|
-
}, {
|
|
877
|
-
fields: {
|
|
878
|
-
type: string;
|
|
879
|
-
label: string;
|
|
880
|
-
}[];
|
|
881
|
-
}>;
|
|
882
|
-
}, "strip", z.ZodTypeAny, {
|
|
1775
|
+
};
|
|
1776
|
+
disableCreate?: boolean | undefined;
|
|
1777
|
+
embeddedForms?: ({
|
|
883
1778
|
type: "object";
|
|
884
1779
|
name: string;
|
|
885
1780
|
id: string;
|
|
@@ -891,8 +1786,8 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
891
1786
|
}[];
|
|
892
1787
|
};
|
|
893
1788
|
includeIdField?: boolean | undefined;
|
|
894
|
-
}
|
|
895
|
-
type: "
|
|
1789
|
+
} | {
|
|
1790
|
+
type: "list";
|
|
896
1791
|
name: string;
|
|
897
1792
|
id: string;
|
|
898
1793
|
modelRef: string;
|
|
@@ -902,65 +1797,139 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
902
1797
|
label: string;
|
|
903
1798
|
}[];
|
|
904
1799
|
};
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
modelRef: import("#src/references/index.js").ZodRef<z.ZodString>;
|
|
910
|
-
includeIdField: z.ZodOptional<z.ZodBoolean>;
|
|
911
|
-
type: z.ZodLiteral<"list">;
|
|
912
|
-
table: z.ZodObject<{
|
|
913
|
-
columns: z.ZodArray<z.ZodObject<{
|
|
914
|
-
label: z.ZodString;
|
|
915
|
-
display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
916
|
-
type: z.ZodLiteral<"text">;
|
|
917
|
-
modelFieldRef: import("#src/references/index.js").ZodRef<z.ZodString>;
|
|
918
|
-
}, "strip", z.ZodTypeAny, {
|
|
919
|
-
type: "text";
|
|
920
|
-
modelFieldRef: string;
|
|
921
|
-
}, {
|
|
922
|
-
type: "text";
|
|
923
|
-
modelFieldRef: string;
|
|
924
|
-
}>, z.ZodObject<{
|
|
925
|
-
type: z.ZodLiteral<"foreign">;
|
|
926
|
-
localRelationRef: import("#src/references/index.js").ZodRef<z.ZodString>;
|
|
927
|
-
labelExpression: z.ZodString;
|
|
928
|
-
valueExpression: z.ZodString;
|
|
929
|
-
}, "strip", z.ZodTypeAny, {
|
|
1800
|
+
table: {
|
|
1801
|
+
columns: {
|
|
1802
|
+
label: string;
|
|
1803
|
+
display: {
|
|
930
1804
|
type: "foreign";
|
|
931
1805
|
localRelationRef: string;
|
|
932
1806
|
labelExpression: string;
|
|
933
1807
|
valueExpression: string;
|
|
934
|
-
}
|
|
1808
|
+
} | {
|
|
1809
|
+
type: "text";
|
|
1810
|
+
modelFieldRef: string;
|
|
1811
|
+
};
|
|
1812
|
+
}[];
|
|
1813
|
+
};
|
|
1814
|
+
includeIdField?: boolean | undefined;
|
|
1815
|
+
})[] | undefined;
|
|
1816
|
+
}, {
|
|
1817
|
+
type: "crud";
|
|
1818
|
+
modelRef: string;
|
|
1819
|
+
form: {
|
|
1820
|
+
fields: z.objectInputType<{
|
|
1821
|
+
type: z.ZodString;
|
|
1822
|
+
label: z.ZodString;
|
|
1823
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1824
|
+
};
|
|
1825
|
+
table: {
|
|
1826
|
+
columns: {
|
|
1827
|
+
label: string;
|
|
1828
|
+
display: {
|
|
1829
|
+
type: "foreign";
|
|
1830
|
+
localRelationRef: string;
|
|
1831
|
+
labelExpression: string;
|
|
1832
|
+
valueExpression: string;
|
|
1833
|
+
} | {
|
|
1834
|
+
type: "text";
|
|
1835
|
+
modelFieldRef: string;
|
|
1836
|
+
};
|
|
1837
|
+
}[];
|
|
1838
|
+
};
|
|
1839
|
+
disableCreate?: boolean | undefined;
|
|
1840
|
+
embeddedForms?: ({
|
|
1841
|
+
type: "object";
|
|
1842
|
+
name: string;
|
|
1843
|
+
id: string;
|
|
1844
|
+
modelRef: string;
|
|
1845
|
+
form: {
|
|
1846
|
+
fields: z.objectInputType<{
|
|
1847
|
+
type: z.ZodString;
|
|
1848
|
+
label: z.ZodString;
|
|
1849
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1850
|
+
};
|
|
1851
|
+
includeIdField?: boolean | undefined;
|
|
1852
|
+
} | {
|
|
1853
|
+
type: "list";
|
|
1854
|
+
name: string;
|
|
1855
|
+
id: string;
|
|
1856
|
+
modelRef: string;
|
|
1857
|
+
form: {
|
|
1858
|
+
fields: z.objectInputType<{
|
|
1859
|
+
type: z.ZodString;
|
|
1860
|
+
label: z.ZodString;
|
|
1861
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1862
|
+
};
|
|
1863
|
+
table: {
|
|
1864
|
+
columns: {
|
|
1865
|
+
label: string;
|
|
1866
|
+
display: {
|
|
935
1867
|
type: "foreign";
|
|
936
1868
|
localRelationRef: string;
|
|
937
1869
|
labelExpression: string;
|
|
938
1870
|
valueExpression: string;
|
|
939
|
-
}
|
|
940
|
-
|
|
1871
|
+
} | {
|
|
1872
|
+
type: "text";
|
|
1873
|
+
modelFieldRef: string;
|
|
1874
|
+
};
|
|
1875
|
+
}[];
|
|
1876
|
+
};
|
|
1877
|
+
includeIdField?: boolean | undefined;
|
|
1878
|
+
})[] | undefined;
|
|
1879
|
+
}>>, {
|
|
1880
|
+
type: string;
|
|
1881
|
+
name: string;
|
|
1882
|
+
id: string;
|
|
1883
|
+
featureRef: string;
|
|
1884
|
+
icon?: string | undefined;
|
|
1885
|
+
} & {
|
|
1886
|
+
type: "crud";
|
|
1887
|
+
modelRef: string;
|
|
1888
|
+
form: {
|
|
1889
|
+
fields: {
|
|
1890
|
+
type: string;
|
|
1891
|
+
label: string;
|
|
1892
|
+
}[];
|
|
1893
|
+
};
|
|
1894
|
+
table: {
|
|
1895
|
+
columns: {
|
|
1896
|
+
label: string;
|
|
1897
|
+
display: {
|
|
1898
|
+
type: "foreign";
|
|
1899
|
+
localRelationRef: string;
|
|
1900
|
+
labelExpression: string;
|
|
1901
|
+
valueExpression: string;
|
|
1902
|
+
} | {
|
|
1903
|
+
type: "text";
|
|
1904
|
+
modelFieldRef: string;
|
|
1905
|
+
};
|
|
1906
|
+
}[];
|
|
1907
|
+
};
|
|
1908
|
+
disableCreate?: boolean | undefined;
|
|
1909
|
+
embeddedForms?: ({
|
|
1910
|
+
type: "object";
|
|
1911
|
+
name: string;
|
|
1912
|
+
id: string;
|
|
1913
|
+
modelRef: string;
|
|
1914
|
+
form: {
|
|
1915
|
+
fields: {
|
|
1916
|
+
type: string;
|
|
941
1917
|
label: string;
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
1918
|
+
}[];
|
|
1919
|
+
};
|
|
1920
|
+
includeIdField?: boolean | undefined;
|
|
1921
|
+
} | {
|
|
1922
|
+
type: "list";
|
|
1923
|
+
name: string;
|
|
1924
|
+
id: string;
|
|
1925
|
+
modelRef: string;
|
|
1926
|
+
form: {
|
|
1927
|
+
fields: {
|
|
1928
|
+
type: string;
|
|
952
1929
|
label: string;
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
labelExpression: string;
|
|
957
|
-
valueExpression: string;
|
|
958
|
-
} | {
|
|
959
|
-
type: "text";
|
|
960
|
-
modelFieldRef: string;
|
|
961
|
-
};
|
|
962
|
-
}>, "many">;
|
|
963
|
-
}, "strip", z.ZodTypeAny, {
|
|
1930
|
+
}[];
|
|
1931
|
+
};
|
|
1932
|
+
table: {
|
|
964
1933
|
columns: {
|
|
965
1934
|
label: string;
|
|
966
1935
|
display: {
|
|
@@ -973,7 +1942,63 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
973
1942
|
modelFieldRef: string;
|
|
974
1943
|
};
|
|
975
1944
|
}[];
|
|
976
|
-
}
|
|
1945
|
+
};
|
|
1946
|
+
includeIdField?: boolean | undefined;
|
|
1947
|
+
})[] | undefined;
|
|
1948
|
+
}, {
|
|
1949
|
+
type: string;
|
|
1950
|
+
name: string;
|
|
1951
|
+
featureRef: string;
|
|
1952
|
+
icon?: string | undefined;
|
|
1953
|
+
id?: string | undefined;
|
|
1954
|
+
} & {
|
|
1955
|
+
type: "crud";
|
|
1956
|
+
modelRef: string;
|
|
1957
|
+
form: {
|
|
1958
|
+
fields: z.objectInputType<{
|
|
1959
|
+
type: z.ZodString;
|
|
1960
|
+
label: z.ZodString;
|
|
1961
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1962
|
+
};
|
|
1963
|
+
table: {
|
|
1964
|
+
columns: {
|
|
1965
|
+
label: string;
|
|
1966
|
+
display: {
|
|
1967
|
+
type: "foreign";
|
|
1968
|
+
localRelationRef: string;
|
|
1969
|
+
labelExpression: string;
|
|
1970
|
+
valueExpression: string;
|
|
1971
|
+
} | {
|
|
1972
|
+
type: "text";
|
|
1973
|
+
modelFieldRef: string;
|
|
1974
|
+
};
|
|
1975
|
+
}[];
|
|
1976
|
+
};
|
|
1977
|
+
disableCreate?: boolean | undefined;
|
|
1978
|
+
embeddedForms?: ({
|
|
1979
|
+
type: "object";
|
|
1980
|
+
name: string;
|
|
1981
|
+
id: string;
|
|
1982
|
+
modelRef: string;
|
|
1983
|
+
form: {
|
|
1984
|
+
fields: z.objectInputType<{
|
|
1985
|
+
type: z.ZodString;
|
|
1986
|
+
label: z.ZodString;
|
|
1987
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1988
|
+
};
|
|
1989
|
+
includeIdField?: boolean | undefined;
|
|
1990
|
+
} | {
|
|
1991
|
+
type: "list";
|
|
1992
|
+
name: string;
|
|
1993
|
+
id: string;
|
|
1994
|
+
modelRef: string;
|
|
1995
|
+
form: {
|
|
1996
|
+
fields: z.objectInputType<{
|
|
1997
|
+
type: z.ZodString;
|
|
1998
|
+
label: z.ZodString;
|
|
1999
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
2000
|
+
};
|
|
2001
|
+
table: {
|
|
977
2002
|
columns: {
|
|
978
2003
|
label: string;
|
|
979
2004
|
display: {
|
|
@@ -986,30 +2011,52 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
986
2011
|
modelFieldRef: string;
|
|
987
2012
|
};
|
|
988
2013
|
}[];
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
2014
|
+
};
|
|
2015
|
+
includeIdField?: boolean | undefined;
|
|
2016
|
+
})[] | undefined;
|
|
2017
|
+
}>, {
|
|
2018
|
+
type: string;
|
|
2019
|
+
name: string;
|
|
2020
|
+
id: string;
|
|
2021
|
+
featureRef: string;
|
|
2022
|
+
icon?: string | undefined;
|
|
2023
|
+
} & {
|
|
2024
|
+
type: "crud";
|
|
2025
|
+
modelRef: string;
|
|
2026
|
+
form: {
|
|
2027
|
+
fields: {
|
|
2028
|
+
type: string;
|
|
2029
|
+
label: string;
|
|
2030
|
+
}[];
|
|
2031
|
+
};
|
|
2032
|
+
table: {
|
|
2033
|
+
columns: {
|
|
2034
|
+
label: string;
|
|
2035
|
+
display: {
|
|
2036
|
+
type: "foreign";
|
|
2037
|
+
localRelationRef: string;
|
|
2038
|
+
labelExpression: string;
|
|
2039
|
+
valueExpression: string;
|
|
2040
|
+
} | {
|
|
2041
|
+
type: "text";
|
|
2042
|
+
modelFieldRef: string;
|
|
2043
|
+
};
|
|
2044
|
+
}[];
|
|
2045
|
+
};
|
|
2046
|
+
disableCreate?: boolean | undefined;
|
|
2047
|
+
embeddedForms?: ({
|
|
2048
|
+
type: "object";
|
|
2049
|
+
name: string;
|
|
2050
|
+
id: string;
|
|
2051
|
+
modelRef: string;
|
|
2052
|
+
form: {
|
|
1007
2053
|
fields: {
|
|
1008
2054
|
type: string;
|
|
1009
2055
|
label: string;
|
|
1010
2056
|
}[];
|
|
1011
|
-
}
|
|
1012
|
-
|
|
2057
|
+
};
|
|
2058
|
+
includeIdField?: boolean | undefined;
|
|
2059
|
+
} | {
|
|
1013
2060
|
type: "list";
|
|
1014
2061
|
name: string;
|
|
1015
2062
|
id: string;
|
|
@@ -1035,16 +2082,59 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1035
2082
|
}[];
|
|
1036
2083
|
};
|
|
1037
2084
|
includeIdField?: boolean | undefined;
|
|
1038
|
-
}
|
|
2085
|
+
})[] | undefined;
|
|
2086
|
+
}, {
|
|
2087
|
+
type: string;
|
|
2088
|
+
name: string;
|
|
2089
|
+
featureRef: string;
|
|
2090
|
+
icon?: string | undefined;
|
|
2091
|
+
id?: string | undefined;
|
|
2092
|
+
} & {
|
|
2093
|
+
type: "crud";
|
|
2094
|
+
modelRef: string;
|
|
2095
|
+
form: {
|
|
2096
|
+
fields: z.objectInputType<{
|
|
2097
|
+
type: z.ZodString;
|
|
2098
|
+
label: z.ZodString;
|
|
2099
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
2100
|
+
};
|
|
2101
|
+
table: {
|
|
2102
|
+
columns: {
|
|
2103
|
+
label: string;
|
|
2104
|
+
display: {
|
|
2105
|
+
type: "foreign";
|
|
2106
|
+
localRelationRef: string;
|
|
2107
|
+
labelExpression: string;
|
|
2108
|
+
valueExpression: string;
|
|
2109
|
+
} | {
|
|
2110
|
+
type: "text";
|
|
2111
|
+
modelFieldRef: string;
|
|
2112
|
+
};
|
|
2113
|
+
}[];
|
|
2114
|
+
};
|
|
2115
|
+
disableCreate?: boolean | undefined;
|
|
2116
|
+
embeddedForms?: ({
|
|
2117
|
+
type: "object";
|
|
2118
|
+
name: string;
|
|
2119
|
+
id: string;
|
|
2120
|
+
modelRef: string;
|
|
2121
|
+
form: {
|
|
2122
|
+
fields: z.objectInputType<{
|
|
2123
|
+
type: z.ZodString;
|
|
2124
|
+
label: z.ZodString;
|
|
2125
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
2126
|
+
};
|
|
2127
|
+
includeIdField?: boolean | undefined;
|
|
2128
|
+
} | {
|
|
1039
2129
|
type: "list";
|
|
1040
2130
|
name: string;
|
|
1041
2131
|
id: string;
|
|
1042
2132
|
modelRef: string;
|
|
1043
2133
|
form: {
|
|
1044
|
-
fields: {
|
|
1045
|
-
type:
|
|
1046
|
-
label:
|
|
1047
|
-
}[];
|
|
2134
|
+
fields: z.objectInputType<{
|
|
2135
|
+
type: z.ZodString;
|
|
2136
|
+
label: z.ZodString;
|
|
2137
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1048
2138
|
};
|
|
1049
2139
|
table: {
|
|
1050
2140
|
columns: {
|
|
@@ -1061,17 +2151,26 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1061
2151
|
}[];
|
|
1062
2152
|
};
|
|
1063
2153
|
includeIdField?: boolean | undefined;
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
2154
|
+
})[] | undefined;
|
|
2155
|
+
}>, "many">>;
|
|
2156
|
+
id: z.ZodDefault<z.ZodString>;
|
|
2157
|
+
name: z.ZodString;
|
|
2158
|
+
packageLocation: z.ZodOptional<z.ZodString>;
|
|
2159
|
+
}, "strip", z.ZodTypeAny, {
|
|
2160
|
+
type: "admin";
|
|
2161
|
+
name: string;
|
|
2162
|
+
id: string;
|
|
2163
|
+
packageLocation?: string | undefined;
|
|
2164
|
+
allowedRoles?: string[] | undefined;
|
|
2165
|
+
sections?: ({
|
|
2166
|
+
type: string;
|
|
1071
2167
|
name: string;
|
|
1072
2168
|
id: string;
|
|
1073
|
-
modelRef: string;
|
|
1074
2169
|
featureRef: string;
|
|
2170
|
+
icon?: string | undefined;
|
|
2171
|
+
} & {
|
|
2172
|
+
type: "crud";
|
|
2173
|
+
modelRef: string;
|
|
1075
2174
|
form: {
|
|
1076
2175
|
fields: {
|
|
1077
2176
|
type: string;
|
|
@@ -1092,7 +2191,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1092
2191
|
};
|
|
1093
2192
|
}[];
|
|
1094
2193
|
};
|
|
1095
|
-
icon?: string | undefined;
|
|
1096
2194
|
disableCreate?: boolean | undefined;
|
|
1097
2195
|
embeddedForms?: ({
|
|
1098
2196
|
type: "object";
|
|
@@ -1133,16 +2231,27 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1133
2231
|
};
|
|
1134
2232
|
includeIdField?: boolean | undefined;
|
|
1135
2233
|
})[] | undefined;
|
|
1136
|
-
}
|
|
1137
|
-
|
|
2234
|
+
})[] | undefined;
|
|
2235
|
+
}, {
|
|
2236
|
+
type: "admin";
|
|
2237
|
+
name: string;
|
|
2238
|
+
id?: string | undefined;
|
|
2239
|
+
packageLocation?: string | undefined;
|
|
2240
|
+
allowedRoles?: string[] | undefined;
|
|
2241
|
+
sections?: ({
|
|
2242
|
+
type: string;
|
|
1138
2243
|
name: string;
|
|
1139
|
-
modelRef: string;
|
|
1140
2244
|
featureRef: string;
|
|
2245
|
+
icon?: string | undefined;
|
|
2246
|
+
id?: string | undefined;
|
|
2247
|
+
} & {
|
|
2248
|
+
type: "crud";
|
|
2249
|
+
modelRef: string;
|
|
1141
2250
|
form: {
|
|
1142
|
-
fields: {
|
|
1143
|
-
type:
|
|
1144
|
-
label:
|
|
1145
|
-
}[];
|
|
2251
|
+
fields: z.objectInputType<{
|
|
2252
|
+
type: z.ZodString;
|
|
2253
|
+
label: z.ZodString;
|
|
2254
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1146
2255
|
};
|
|
1147
2256
|
table: {
|
|
1148
2257
|
columns: {
|
|
@@ -1158,8 +2267,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1158
2267
|
};
|
|
1159
2268
|
}[];
|
|
1160
2269
|
};
|
|
1161
|
-
icon?: string | undefined;
|
|
1162
|
-
id?: string | undefined;
|
|
1163
2270
|
disableCreate?: boolean | undefined;
|
|
1164
2271
|
embeddedForms?: ({
|
|
1165
2272
|
type: "object";
|
|
@@ -1167,10 +2274,10 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1167
2274
|
id: string;
|
|
1168
2275
|
modelRef: string;
|
|
1169
2276
|
form: {
|
|
1170
|
-
fields: {
|
|
1171
|
-
type:
|
|
1172
|
-
label:
|
|
1173
|
-
}[];
|
|
2277
|
+
fields: z.objectInputType<{
|
|
2278
|
+
type: z.ZodString;
|
|
2279
|
+
label: z.ZodString;
|
|
2280
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1174
2281
|
};
|
|
1175
2282
|
includeIdField?: boolean | undefined;
|
|
1176
2283
|
} | {
|
|
@@ -1179,10 +2286,10 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1179
2286
|
id: string;
|
|
1180
2287
|
modelRef: string;
|
|
1181
2288
|
form: {
|
|
1182
|
-
fields: {
|
|
1183
|
-
type:
|
|
1184
|
-
label:
|
|
1185
|
-
}[];
|
|
2289
|
+
fields: z.objectInputType<{
|
|
2290
|
+
type: z.ZodString;
|
|
2291
|
+
label: z.ZodString;
|
|
2292
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1186
2293
|
};
|
|
1187
2294
|
table: {
|
|
1188
2295
|
columns: {
|
|
@@ -1200,22 +2307,22 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1200
2307
|
};
|
|
1201
2308
|
includeIdField?: boolean | undefined;
|
|
1202
2309
|
})[] | undefined;
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
name: z.ZodString;
|
|
1206
|
-
packageLocation: z.ZodOptional<z.ZodString>;
|
|
1207
|
-
}, "strip", z.ZodTypeAny, {
|
|
2310
|
+
})[] | undefined;
|
|
2311
|
+
}>]>, {
|
|
1208
2312
|
type: "admin";
|
|
1209
2313
|
name: string;
|
|
1210
2314
|
id: string;
|
|
1211
2315
|
packageLocation?: string | undefined;
|
|
1212
2316
|
allowedRoles?: string[] | undefined;
|
|
1213
|
-
sections?: {
|
|
1214
|
-
type:
|
|
2317
|
+
sections?: ({
|
|
2318
|
+
type: string;
|
|
1215
2319
|
name: string;
|
|
1216
2320
|
id: string;
|
|
1217
|
-
modelRef: string;
|
|
1218
2321
|
featureRef: string;
|
|
2322
|
+
icon?: string | undefined;
|
|
2323
|
+
} & {
|
|
2324
|
+
type: "crud";
|
|
2325
|
+
modelRef: string;
|
|
1219
2326
|
form: {
|
|
1220
2327
|
fields: {
|
|
1221
2328
|
type: string;
|
|
@@ -1236,7 +2343,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1236
2343
|
};
|
|
1237
2344
|
}[];
|
|
1238
2345
|
};
|
|
1239
|
-
icon?: string | undefined;
|
|
1240
2346
|
disableCreate?: boolean | undefined;
|
|
1241
2347
|
embeddedForms?: ({
|
|
1242
2348
|
type: "object";
|
|
@@ -1277,23 +2383,49 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1277
2383
|
};
|
|
1278
2384
|
includeIdField?: boolean | undefined;
|
|
1279
2385
|
})[] | undefined;
|
|
1280
|
-
}[] | undefined;
|
|
2386
|
+
})[] | undefined;
|
|
2387
|
+
} | {
|
|
2388
|
+
type: "backend";
|
|
2389
|
+
name: string;
|
|
2390
|
+
id: string;
|
|
2391
|
+
packageLocation?: string | undefined;
|
|
2392
|
+
enableStripe?: boolean | undefined;
|
|
2393
|
+
enableRedis?: boolean | undefined;
|
|
2394
|
+
enableBullQueue?: boolean | undefined;
|
|
2395
|
+
enablePostmark?: boolean | undefined;
|
|
2396
|
+
enableSubscriptions?: boolean | undefined;
|
|
2397
|
+
enableAxios?: boolean | undefined;
|
|
2398
|
+
} | {
|
|
2399
|
+
type: "web";
|
|
2400
|
+
name: string;
|
|
2401
|
+
id: string;
|
|
2402
|
+
description?: string | undefined;
|
|
2403
|
+
packageLocation?: string | undefined;
|
|
2404
|
+
allowedRoles?: string[] | undefined;
|
|
2405
|
+
enableSubscriptions?: boolean | undefined;
|
|
2406
|
+
includeAuth?: boolean | undefined;
|
|
2407
|
+
title?: string | undefined;
|
|
2408
|
+
includeUploadComponents?: boolean | undefined;
|
|
1281
2409
|
}, {
|
|
1282
2410
|
type: "admin";
|
|
1283
2411
|
name: string;
|
|
1284
2412
|
id?: string | undefined;
|
|
1285
2413
|
packageLocation?: string | undefined;
|
|
1286
2414
|
allowedRoles?: string[] | undefined;
|
|
1287
|
-
sections?: {
|
|
1288
|
-
type:
|
|
2415
|
+
sections?: ({
|
|
2416
|
+
type: string;
|
|
1289
2417
|
name: string;
|
|
1290
|
-
modelRef: string;
|
|
1291
2418
|
featureRef: string;
|
|
2419
|
+
icon?: string | undefined;
|
|
2420
|
+
id?: string | undefined;
|
|
2421
|
+
} & {
|
|
2422
|
+
type: "crud";
|
|
2423
|
+
modelRef: string;
|
|
1292
2424
|
form: {
|
|
1293
|
-
fields: {
|
|
1294
|
-
type:
|
|
1295
|
-
label:
|
|
1296
|
-
}[];
|
|
2425
|
+
fields: z.objectInputType<{
|
|
2426
|
+
type: z.ZodString;
|
|
2427
|
+
label: z.ZodString;
|
|
2428
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1297
2429
|
};
|
|
1298
2430
|
table: {
|
|
1299
2431
|
columns: {
|
|
@@ -1309,8 +2441,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1309
2441
|
};
|
|
1310
2442
|
}[];
|
|
1311
2443
|
};
|
|
1312
|
-
icon?: string | undefined;
|
|
1313
|
-
id?: string | undefined;
|
|
1314
2444
|
disableCreate?: boolean | undefined;
|
|
1315
2445
|
embeddedForms?: ({
|
|
1316
2446
|
type: "object";
|
|
@@ -1318,10 +2448,10 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1318
2448
|
id: string;
|
|
1319
2449
|
modelRef: string;
|
|
1320
2450
|
form: {
|
|
1321
|
-
fields: {
|
|
1322
|
-
type:
|
|
1323
|
-
label:
|
|
1324
|
-
}[];
|
|
2451
|
+
fields: z.objectInputType<{
|
|
2452
|
+
type: z.ZodString;
|
|
2453
|
+
label: z.ZodString;
|
|
2454
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1325
2455
|
};
|
|
1326
2456
|
includeIdField?: boolean | undefined;
|
|
1327
2457
|
} | {
|
|
@@ -1330,10 +2460,10 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1330
2460
|
id: string;
|
|
1331
2461
|
modelRef: string;
|
|
1332
2462
|
form: {
|
|
1333
|
-
fields: {
|
|
1334
|
-
type:
|
|
1335
|
-
label:
|
|
1336
|
-
}[];
|
|
2463
|
+
fields: z.objectInputType<{
|
|
2464
|
+
type: z.ZodString;
|
|
2465
|
+
label: z.ZodString;
|
|
2466
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1337
2467
|
};
|
|
1338
2468
|
table: {
|
|
1339
2469
|
columns: {
|
|
@@ -1351,37 +2481,67 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1351
2481
|
};
|
|
1352
2482
|
includeIdField?: boolean | undefined;
|
|
1353
2483
|
})[] | undefined;
|
|
1354
|
-
}[] | undefined;
|
|
1355
|
-
}
|
|
1356
|
-
|
|
2484
|
+
})[] | undefined;
|
|
2485
|
+
} | {
|
|
2486
|
+
type: "backend";
|
|
2487
|
+
name: string;
|
|
2488
|
+
id?: string | undefined;
|
|
2489
|
+
packageLocation?: string | undefined;
|
|
2490
|
+
enableStripe?: boolean | undefined;
|
|
2491
|
+
enableRedis?: boolean | undefined;
|
|
2492
|
+
enableBullQueue?: boolean | undefined;
|
|
2493
|
+
enablePostmark?: boolean | undefined;
|
|
2494
|
+
enableSubscriptions?: boolean | undefined;
|
|
2495
|
+
enableAxios?: boolean | undefined;
|
|
2496
|
+
} | {
|
|
2497
|
+
type: "web";
|
|
2498
|
+
name: string;
|
|
2499
|
+
description?: string | undefined;
|
|
2500
|
+
id?: string | undefined;
|
|
2501
|
+
packageLocation?: string | undefined;
|
|
2502
|
+
allowedRoles?: string[] | undefined;
|
|
2503
|
+
enableSubscriptions?: boolean | undefined;
|
|
2504
|
+
includeAuth?: boolean | undefined;
|
|
2505
|
+
title?: string | undefined;
|
|
2506
|
+
includeUploadComponents?: boolean | undefined;
|
|
2507
|
+
}>, "many">>;
|
|
2508
|
+
features: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
2509
|
+
id: z.ZodString;
|
|
1357
2510
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
1358
|
-
parentRef:
|
|
1359
|
-
} & {
|
|
1360
|
-
id: z.ZodType<string, z.ZodAnyDef, string>;
|
|
2511
|
+
parentRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1361
2512
|
}, "strip", z.ZodTypeAny, {
|
|
1362
2513
|
name: string;
|
|
1363
2514
|
id: string;
|
|
1364
|
-
parentRef?: string |
|
|
2515
|
+
parentRef?: string | undefined;
|
|
2516
|
+
}, {
|
|
2517
|
+
name: string;
|
|
2518
|
+
id: string;
|
|
2519
|
+
parentRef?: string | undefined;
|
|
2520
|
+
}>, {
|
|
2521
|
+
name: string;
|
|
2522
|
+
id: string;
|
|
2523
|
+
parentRef?: string | undefined;
|
|
1365
2524
|
}, {
|
|
1366
2525
|
name: string;
|
|
1367
2526
|
id: string;
|
|
1368
|
-
parentRef?: string |
|
|
1369
|
-
}
|
|
1370
|
-
models: z.ZodDefault<z.ZodArray<
|
|
2527
|
+
parentRef?: string | undefined;
|
|
2528
|
+
}>, "many">>;
|
|
2529
|
+
models: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1371
2530
|
id: z.ZodString;
|
|
1372
2531
|
name: z.ZodString;
|
|
1373
|
-
featureRef:
|
|
2532
|
+
featureRef: z.ZodEffects<z.ZodString, string, string>;
|
|
1374
2533
|
model: z.ZodObject<{
|
|
1375
|
-
fields: z.ZodArray<z.ZodEffects<z.ZodEffects<
|
|
2534
|
+
fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
2535
|
+
id: z.ZodString;
|
|
1376
2536
|
name: z.ZodString;
|
|
1377
2537
|
type: z.ZodEnum<["string", "uuid", "int", "boolean", "dateTime", "float", "decimal", "json", "date", "enum"]>;
|
|
1378
2538
|
isOptional: z.ZodDefault<z.ZodBoolean>;
|
|
1379
|
-
options:
|
|
2539
|
+
options: z.ZodEffects<z.ZodDefault<z.ZodEffects<z.ZodObject<{
|
|
1380
2540
|
default: z.ZodDefault<z.ZodString>;
|
|
1381
2541
|
genUuid: z.ZodOptional<z.ZodBoolean>;
|
|
1382
2542
|
updatedAt: z.ZodOptional<z.ZodBoolean>;
|
|
1383
2543
|
defaultToNow: z.ZodOptional<z.ZodBoolean>;
|
|
1384
|
-
enumRef:
|
|
2544
|
+
enumRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1385
2545
|
defaultEnumValueRef: z.ZodOptional<z.ZodString>;
|
|
1386
2546
|
}, "strip", z.ZodTypeAny, {
|
|
1387
2547
|
default: string;
|
|
@@ -1411,9 +2571,21 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1411
2571
|
defaultToNow?: boolean | undefined;
|
|
1412
2572
|
enumRef?: string | undefined;
|
|
1413
2573
|
defaultEnumValueRef?: string | undefined;
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
|
|
2574
|
+
}>>, {
|
|
2575
|
+
defaultEnumValueRef?: string | undefined;
|
|
2576
|
+
default: string;
|
|
2577
|
+
genUuid?: boolean | undefined;
|
|
2578
|
+
updatedAt?: boolean | undefined;
|
|
2579
|
+
defaultToNow?: boolean | undefined;
|
|
2580
|
+
enumRef?: string | undefined;
|
|
2581
|
+
}, {
|
|
2582
|
+
default?: string | undefined;
|
|
2583
|
+
genUuid?: boolean | undefined;
|
|
2584
|
+
updatedAt?: boolean | undefined;
|
|
2585
|
+
defaultToNow?: boolean | undefined;
|
|
2586
|
+
enumRef?: string | undefined;
|
|
2587
|
+
defaultEnumValueRef?: string | undefined;
|
|
2588
|
+
} | undefined>;
|
|
1417
2589
|
}, "strip", z.ZodTypeAny, {
|
|
1418
2590
|
options: {
|
|
1419
2591
|
defaultEnumValueRef?: string | undefined;
|
|
@@ -1440,7 +2612,33 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1440
2612
|
defaultEnumValueRef?: string | undefined;
|
|
1441
2613
|
} | undefined;
|
|
1442
2614
|
isOptional?: boolean | undefined;
|
|
1443
|
-
}
|
|
2615
|
+
}>, {
|
|
2616
|
+
options: {
|
|
2617
|
+
defaultEnumValueRef?: string | undefined;
|
|
2618
|
+
default: string;
|
|
2619
|
+
genUuid?: boolean | undefined;
|
|
2620
|
+
updatedAt?: boolean | undefined;
|
|
2621
|
+
defaultToNow?: boolean | undefined;
|
|
2622
|
+
enumRef?: string | undefined;
|
|
2623
|
+
};
|
|
2624
|
+
type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
|
|
2625
|
+
name: string;
|
|
2626
|
+
id: string;
|
|
2627
|
+
isOptional: boolean;
|
|
2628
|
+
}, {
|
|
2629
|
+
type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
|
|
2630
|
+
name: string;
|
|
2631
|
+
id: string;
|
|
2632
|
+
options?: {
|
|
2633
|
+
default?: string | undefined;
|
|
2634
|
+
genUuid?: boolean | undefined;
|
|
2635
|
+
updatedAt?: boolean | undefined;
|
|
2636
|
+
defaultToNow?: boolean | undefined;
|
|
2637
|
+
enumRef?: string | undefined;
|
|
2638
|
+
defaultEnumValueRef?: string | undefined;
|
|
2639
|
+
} | undefined;
|
|
2640
|
+
isOptional?: boolean | undefined;
|
|
2641
|
+
}>, {
|
|
1444
2642
|
options: {
|
|
1445
2643
|
defaultEnumValueRef?: string | undefined;
|
|
1446
2644
|
default: string;
|
|
@@ -1493,13 +2691,13 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1493
2691
|
} | undefined;
|
|
1494
2692
|
isOptional?: boolean | undefined;
|
|
1495
2693
|
}>, "many">;
|
|
1496
|
-
relations: z.ZodOptional<z.ZodArray<
|
|
2694
|
+
relations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1497
2695
|
id: z.ZodString;
|
|
1498
2696
|
foreignId: z.ZodDefault<z.ZodString>;
|
|
1499
2697
|
name: z.ZodString;
|
|
1500
2698
|
references: z.ZodArray<z.ZodObject<{
|
|
1501
|
-
localRef:
|
|
1502
|
-
foreignRef:
|
|
2699
|
+
localRef: z.ZodEffects<z.ZodString, string, string>;
|
|
2700
|
+
foreignRef: z.ZodEffects<z.ZodString, string, string>;
|
|
1503
2701
|
}, "strip", z.ZodTypeAny, {
|
|
1504
2702
|
localRef: string;
|
|
1505
2703
|
foreignRef: string;
|
|
@@ -1535,18 +2733,41 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1535
2733
|
onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
|
|
1536
2734
|
foreignId?: string | undefined;
|
|
1537
2735
|
onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
|
|
1538
|
-
}
|
|
1539
|
-
|
|
1540
|
-
|
|
2736
|
+
}>, {
|
|
2737
|
+
name: string;
|
|
2738
|
+
id: string;
|
|
2739
|
+
onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
|
|
2740
|
+
references: {
|
|
2741
|
+
localRef: string;
|
|
2742
|
+
foreignRef: string;
|
|
2743
|
+
}[];
|
|
2744
|
+
modelRef: string;
|
|
2745
|
+
foreignId: string;
|
|
2746
|
+
foreignRelationName: string;
|
|
2747
|
+
onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
|
|
2748
|
+
}, {
|
|
2749
|
+
name: string;
|
|
2750
|
+
id: string;
|
|
2751
|
+
references: {
|
|
2752
|
+
localRef: string;
|
|
2753
|
+
foreignRef: string;
|
|
2754
|
+
}[];
|
|
2755
|
+
modelRef: string;
|
|
2756
|
+
foreignRelationName: string;
|
|
2757
|
+
onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
|
|
2758
|
+
foreignId?: string | undefined;
|
|
2759
|
+
onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
|
|
2760
|
+
}>, "many">>;
|
|
2761
|
+
primaryKeyFieldRefs: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
2762
|
+
uniqueConstraints: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
2763
|
+
id: z.ZodString;
|
|
1541
2764
|
fields: z.ZodArray<z.ZodObject<{
|
|
1542
|
-
fieldRef:
|
|
2765
|
+
fieldRef: z.ZodEffects<z.ZodString, string, string>;
|
|
1543
2766
|
}, "strip", z.ZodTypeAny, {
|
|
1544
2767
|
fieldRef: string;
|
|
1545
2768
|
}, {
|
|
1546
2769
|
fieldRef: string;
|
|
1547
2770
|
}>, "many">;
|
|
1548
|
-
} & {
|
|
1549
|
-
id: z.ZodType<string, z.ZodAnyDef, string>;
|
|
1550
2771
|
}, "strip", z.ZodTypeAny, {
|
|
1551
2772
|
id: string;
|
|
1552
2773
|
fields: {
|
|
@@ -1557,7 +2778,17 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1557
2778
|
fields: {
|
|
1558
2779
|
fieldRef: string;
|
|
1559
2780
|
}[];
|
|
1560
|
-
}
|
|
2781
|
+
}>, {
|
|
2782
|
+
id: string;
|
|
2783
|
+
fields: {
|
|
2784
|
+
fieldRef: string;
|
|
2785
|
+
}[];
|
|
2786
|
+
}, {
|
|
2787
|
+
id: string;
|
|
2788
|
+
fields: {
|
|
2789
|
+
fieldRef: string;
|
|
2790
|
+
}[];
|
|
2791
|
+
}>, "many">>;
|
|
1561
2792
|
}, "strip", z.ZodTypeAny, {
|
|
1562
2793
|
fields: {
|
|
1563
2794
|
options: {
|
|
@@ -1632,8 +2863,8 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1632
2863
|
service: z.ZodDefault<z.ZodObject<{
|
|
1633
2864
|
create: z.ZodDefault<z.ZodObject<{
|
|
1634
2865
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1635
|
-
fields: z.ZodOptional<z.ZodArray<
|
|
1636
|
-
transformerNames: z.ZodOptional<z.ZodArray<
|
|
2866
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
2867
|
+
transformerNames: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1637
2868
|
}, "strip", z.ZodTypeAny, {
|
|
1638
2869
|
enabled: boolean;
|
|
1639
2870
|
fields?: string[] | undefined;
|
|
@@ -1645,8 +2876,8 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1645
2876
|
}>>;
|
|
1646
2877
|
update: z.ZodDefault<z.ZodObject<{
|
|
1647
2878
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1648
|
-
fields: z.ZodOptional<z.ZodArray<
|
|
1649
|
-
transformerNames: z.ZodOptional<z.ZodArray<
|
|
2879
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
2880
|
+
transformerNames: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1650
2881
|
}, "strip", z.ZodTypeAny, {
|
|
1651
2882
|
enabled: boolean;
|
|
1652
2883
|
fields?: string[] | undefined;
|
|
@@ -1663,16 +2894,22 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1663
2894
|
}, {
|
|
1664
2895
|
enabled?: boolean | undefined;
|
|
1665
2896
|
}>>;
|
|
1666
|
-
transformers: z.ZodDefault<z.ZodArray<
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
}, "
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
}, {
|
|
2897
|
+
transformers: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
2898
|
+
readonly id: z.ZodString;
|
|
2899
|
+
readonly type: z.ZodString;
|
|
2900
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2901
|
+
readonly id: z.ZodString;
|
|
2902
|
+
readonly type: z.ZodString;
|
|
2903
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2904
|
+
readonly id: z.ZodString;
|
|
2905
|
+
readonly type: z.ZodString;
|
|
2906
|
+
}, z.ZodTypeAny, "passthrough">>, {
|
|
1673
2907
|
type: string;
|
|
1674
2908
|
id: string;
|
|
1675
|
-
}
|
|
2909
|
+
}, z.objectInputType<{
|
|
2910
|
+
readonly id: z.ZodString;
|
|
2911
|
+
readonly type: z.ZodString;
|
|
2912
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1676
2913
|
}, "strip", z.ZodTypeAny, {
|
|
1677
2914
|
delete: {
|
|
1678
2915
|
enabled: boolean;
|
|
@@ -1705,17 +2942,17 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1705
2942
|
fields?: string[] | undefined;
|
|
1706
2943
|
transformerNames?: string[] | undefined;
|
|
1707
2944
|
} | undefined;
|
|
1708
|
-
transformers?: {
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
}[] | undefined;
|
|
2945
|
+
transformers?: z.objectInputType<{
|
|
2946
|
+
readonly id: z.ZodString;
|
|
2947
|
+
readonly type: z.ZodString;
|
|
2948
|
+
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
1712
2949
|
}>>;
|
|
1713
2950
|
graphql: z.ZodOptional<z.ZodObject<{
|
|
1714
2951
|
objectType: z.ZodDefault<z.ZodObject<{
|
|
1715
2952
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1716
|
-
fields: z.ZodArray<
|
|
1717
|
-
localRelations: z.ZodOptional<z.ZodArray<
|
|
1718
|
-
foreignRelations: z.ZodOptional<z.ZodArray<
|
|
2953
|
+
fields: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
2954
|
+
localRelations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
2955
|
+
foreignRelations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1719
2956
|
}, "strip", z.ZodTypeAny, {
|
|
1720
2957
|
enabled: boolean;
|
|
1721
2958
|
fields: string[];
|
|
@@ -1730,7 +2967,7 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1730
2967
|
queries: z.ZodDefault<z.ZodObject<{
|
|
1731
2968
|
get: z.ZodOptional<z.ZodObject<{
|
|
1732
2969
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1733
|
-
roles: z.ZodOptional<z.ZodArray<
|
|
2970
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1734
2971
|
}, "strip", z.ZodTypeAny, {
|
|
1735
2972
|
enabled?: boolean | undefined;
|
|
1736
2973
|
roles?: string[] | undefined;
|
|
@@ -1740,7 +2977,7 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1740
2977
|
}>>;
|
|
1741
2978
|
list: z.ZodOptional<z.ZodObject<{
|
|
1742
2979
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1743
|
-
roles: z.ZodOptional<z.ZodArray<
|
|
2980
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1744
2981
|
}, "strip", z.ZodTypeAny, {
|
|
1745
2982
|
enabled?: boolean | undefined;
|
|
1746
2983
|
roles?: string[] | undefined;
|
|
@@ -1770,7 +3007,7 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1770
3007
|
mutations: z.ZodDefault<z.ZodObject<{
|
|
1771
3008
|
create: z.ZodDefault<z.ZodObject<{
|
|
1772
3009
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1773
|
-
roles: z.ZodOptional<z.ZodArray<
|
|
3010
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1774
3011
|
}, "strip", z.ZodTypeAny, {
|
|
1775
3012
|
enabled?: boolean | undefined;
|
|
1776
3013
|
roles?: string[] | undefined;
|
|
@@ -1780,7 +3017,7 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1780
3017
|
}>>;
|
|
1781
3018
|
update: z.ZodDefault<z.ZodObject<{
|
|
1782
3019
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1783
|
-
roles: z.ZodOptional<z.ZodArray<
|
|
3020
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1784
3021
|
}, "strip", z.ZodTypeAny, {
|
|
1785
3022
|
enabled?: boolean | undefined;
|
|
1786
3023
|
roles?: string[] | undefined;
|
|
@@ -1790,7 +3027,7 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1790
3027
|
}>>;
|
|
1791
3028
|
delete: z.ZodDefault<z.ZodObject<{
|
|
1792
3029
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1793
|
-
roles: z.ZodOptional<z.ZodArray<
|
|
3030
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1794
3031
|
}, "strip", z.ZodTypeAny, {
|
|
1795
3032
|
enabled?: boolean | undefined;
|
|
1796
3033
|
roles?: string[] | undefined;
|
|
@@ -1856,7 +3093,189 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1856
3093
|
roles?: string[] | undefined;
|
|
1857
3094
|
};
|
|
1858
3095
|
};
|
|
1859
|
-
}, {
|
|
3096
|
+
}, {
|
|
3097
|
+
objectType?: {
|
|
3098
|
+
fields: string[];
|
|
3099
|
+
enabled?: boolean | undefined;
|
|
3100
|
+
localRelations?: string[] | undefined;
|
|
3101
|
+
foreignRelations?: string[] | undefined;
|
|
3102
|
+
} | undefined;
|
|
3103
|
+
queries?: {
|
|
3104
|
+
get?: {
|
|
3105
|
+
enabled?: boolean | undefined;
|
|
3106
|
+
roles?: string[] | undefined;
|
|
3107
|
+
} | undefined;
|
|
3108
|
+
list?: {
|
|
3109
|
+
enabled?: boolean | undefined;
|
|
3110
|
+
roles?: string[] | undefined;
|
|
3111
|
+
} | undefined;
|
|
3112
|
+
} | undefined;
|
|
3113
|
+
mutations?: {
|
|
3114
|
+
delete?: {
|
|
3115
|
+
enabled?: boolean | undefined;
|
|
3116
|
+
roles?: string[] | undefined;
|
|
3117
|
+
} | undefined;
|
|
3118
|
+
create?: {
|
|
3119
|
+
enabled?: boolean | undefined;
|
|
3120
|
+
roles?: string[] | undefined;
|
|
3121
|
+
} | undefined;
|
|
3122
|
+
update?: {
|
|
3123
|
+
enabled?: boolean | undefined;
|
|
3124
|
+
roles?: string[] | undefined;
|
|
3125
|
+
} | undefined;
|
|
3126
|
+
} | undefined;
|
|
3127
|
+
}>>;
|
|
3128
|
+
}, "strip", z.ZodTypeAny, {
|
|
3129
|
+
name: string;
|
|
3130
|
+
id: string;
|
|
3131
|
+
featureRef: string;
|
|
3132
|
+
model: {
|
|
3133
|
+
fields: {
|
|
3134
|
+
options: {
|
|
3135
|
+
defaultEnumValueRef?: string | undefined;
|
|
3136
|
+
default: string;
|
|
3137
|
+
genUuid?: boolean | undefined;
|
|
3138
|
+
updatedAt?: boolean | undefined;
|
|
3139
|
+
defaultToNow?: boolean | undefined;
|
|
3140
|
+
enumRef?: string | undefined;
|
|
3141
|
+
};
|
|
3142
|
+
type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
|
|
3143
|
+
name: string;
|
|
3144
|
+
id: string;
|
|
3145
|
+
isOptional: boolean;
|
|
3146
|
+
}[];
|
|
3147
|
+
primaryKeyFieldRefs: string[];
|
|
3148
|
+
relations?: {
|
|
3149
|
+
name: string;
|
|
3150
|
+
id: string;
|
|
3151
|
+
onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
|
|
3152
|
+
references: {
|
|
3153
|
+
localRef: string;
|
|
3154
|
+
foreignRef: string;
|
|
3155
|
+
}[];
|
|
3156
|
+
modelRef: string;
|
|
3157
|
+
foreignId: string;
|
|
3158
|
+
foreignRelationName: string;
|
|
3159
|
+
onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
|
|
3160
|
+
}[] | undefined;
|
|
3161
|
+
uniqueConstraints?: {
|
|
3162
|
+
id: string;
|
|
3163
|
+
fields: {
|
|
3164
|
+
fieldRef: string;
|
|
3165
|
+
}[];
|
|
3166
|
+
}[] | undefined;
|
|
3167
|
+
};
|
|
3168
|
+
service: {
|
|
3169
|
+
delete: {
|
|
3170
|
+
enabled: boolean;
|
|
3171
|
+
};
|
|
3172
|
+
create: {
|
|
3173
|
+
enabled: boolean;
|
|
3174
|
+
fields?: string[] | undefined;
|
|
3175
|
+
transformerNames?: string[] | undefined;
|
|
3176
|
+
};
|
|
3177
|
+
update: {
|
|
3178
|
+
enabled: boolean;
|
|
3179
|
+
fields?: string[] | undefined;
|
|
3180
|
+
transformerNames?: string[] | undefined;
|
|
3181
|
+
};
|
|
3182
|
+
transformers: {
|
|
3183
|
+
type: string;
|
|
3184
|
+
id: string;
|
|
3185
|
+
}[];
|
|
3186
|
+
};
|
|
3187
|
+
graphql?: {
|
|
3188
|
+
objectType: {
|
|
3189
|
+
enabled: boolean;
|
|
3190
|
+
fields: string[];
|
|
3191
|
+
localRelations?: string[] | undefined;
|
|
3192
|
+
foreignRelations?: string[] | undefined;
|
|
3193
|
+
};
|
|
3194
|
+
queries: {
|
|
3195
|
+
get?: {
|
|
3196
|
+
enabled?: boolean | undefined;
|
|
3197
|
+
roles?: string[] | undefined;
|
|
3198
|
+
} | undefined;
|
|
3199
|
+
list?: {
|
|
3200
|
+
enabled?: boolean | undefined;
|
|
3201
|
+
roles?: string[] | undefined;
|
|
3202
|
+
} | undefined;
|
|
3203
|
+
};
|
|
3204
|
+
mutations: {
|
|
3205
|
+
delete: {
|
|
3206
|
+
enabled?: boolean | undefined;
|
|
3207
|
+
roles?: string[] | undefined;
|
|
3208
|
+
};
|
|
3209
|
+
create: {
|
|
3210
|
+
enabled?: boolean | undefined;
|
|
3211
|
+
roles?: string[] | undefined;
|
|
3212
|
+
};
|
|
3213
|
+
update: {
|
|
3214
|
+
enabled?: boolean | undefined;
|
|
3215
|
+
roles?: string[] | undefined;
|
|
3216
|
+
};
|
|
3217
|
+
};
|
|
3218
|
+
} | undefined;
|
|
3219
|
+
}, {
|
|
3220
|
+
name: string;
|
|
3221
|
+
id: string;
|
|
3222
|
+
featureRef: string;
|
|
3223
|
+
model: {
|
|
3224
|
+
fields: {
|
|
3225
|
+
type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
|
|
3226
|
+
name: string;
|
|
3227
|
+
id: string;
|
|
3228
|
+
options?: {
|
|
3229
|
+
default?: string | undefined;
|
|
3230
|
+
genUuid?: boolean | undefined;
|
|
3231
|
+
updatedAt?: boolean | undefined;
|
|
3232
|
+
defaultToNow?: boolean | undefined;
|
|
3233
|
+
enumRef?: string | undefined;
|
|
3234
|
+
defaultEnumValueRef?: string | undefined;
|
|
3235
|
+
} | undefined;
|
|
3236
|
+
isOptional?: boolean | undefined;
|
|
3237
|
+
}[];
|
|
3238
|
+
primaryKeyFieldRefs: string[];
|
|
3239
|
+
relations?: {
|
|
3240
|
+
name: string;
|
|
3241
|
+
id: string;
|
|
3242
|
+
references: {
|
|
3243
|
+
localRef: string;
|
|
3244
|
+
foreignRef: string;
|
|
3245
|
+
}[];
|
|
3246
|
+
modelRef: string;
|
|
3247
|
+
foreignRelationName: string;
|
|
3248
|
+
onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
|
|
3249
|
+
foreignId?: string | undefined;
|
|
3250
|
+
onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
|
|
3251
|
+
}[] | undefined;
|
|
3252
|
+
uniqueConstraints?: {
|
|
3253
|
+
id: string;
|
|
3254
|
+
fields: {
|
|
3255
|
+
fieldRef: string;
|
|
3256
|
+
}[];
|
|
3257
|
+
}[] | undefined;
|
|
3258
|
+
};
|
|
3259
|
+
service?: {
|
|
3260
|
+
delete?: {
|
|
3261
|
+
enabled?: boolean | undefined;
|
|
3262
|
+
} | undefined;
|
|
3263
|
+
create?: {
|
|
3264
|
+
enabled?: boolean | undefined;
|
|
3265
|
+
fields?: string[] | undefined;
|
|
3266
|
+
transformerNames?: string[] | undefined;
|
|
3267
|
+
} | undefined;
|
|
3268
|
+
update?: {
|
|
3269
|
+
enabled?: boolean | undefined;
|
|
3270
|
+
fields?: string[] | undefined;
|
|
3271
|
+
transformerNames?: string[] | undefined;
|
|
3272
|
+
} | undefined;
|
|
3273
|
+
transformers?: z.objectInputType<{
|
|
3274
|
+
readonly id: z.ZodString;
|
|
3275
|
+
readonly type: z.ZodString;
|
|
3276
|
+
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
3277
|
+
} | undefined;
|
|
3278
|
+
graphql?: {
|
|
1860
3279
|
objectType?: {
|
|
1861
3280
|
fields: string[];
|
|
1862
3281
|
enabled?: boolean | undefined;
|
|
@@ -1887,12 +3306,11 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1887
3306
|
roles?: string[] | undefined;
|
|
1888
3307
|
} | undefined;
|
|
1889
3308
|
} | undefined;
|
|
1890
|
-
}
|
|
1891
|
-
}
|
|
1892
|
-
id: z.ZodType<string, z.ZodAnyDef, string>;
|
|
1893
|
-
}, "strip", z.ZodTypeAny, {
|
|
3309
|
+
} | undefined;
|
|
3310
|
+
}>, {
|
|
1894
3311
|
name: string;
|
|
1895
3312
|
id: string;
|
|
3313
|
+
featureRef: string;
|
|
1896
3314
|
model: {
|
|
1897
3315
|
fields: {
|
|
1898
3316
|
options: {
|
|
@@ -1929,7 +3347,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1929
3347
|
}[];
|
|
1930
3348
|
}[] | undefined;
|
|
1931
3349
|
};
|
|
1932
|
-
featureRef: string;
|
|
1933
3350
|
service: {
|
|
1934
3351
|
delete: {
|
|
1935
3352
|
enabled: boolean;
|
|
@@ -1984,6 +3401,7 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
1984
3401
|
}, {
|
|
1985
3402
|
name: string;
|
|
1986
3403
|
id: string;
|
|
3404
|
+
featureRef: string;
|
|
1987
3405
|
model: {
|
|
1988
3406
|
fields: {
|
|
1989
3407
|
type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
|
|
@@ -2020,7 +3438,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2020
3438
|
}[];
|
|
2021
3439
|
}[] | undefined;
|
|
2022
3440
|
};
|
|
2023
|
-
featureRef: string;
|
|
2024
3441
|
service?: {
|
|
2025
3442
|
delete?: {
|
|
2026
3443
|
enabled?: boolean | undefined;
|
|
@@ -2035,10 +3452,10 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2035
3452
|
fields?: string[] | undefined;
|
|
2036
3453
|
transformerNames?: string[] | undefined;
|
|
2037
3454
|
} | undefined;
|
|
2038
|
-
transformers?: {
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
}[] | undefined;
|
|
3455
|
+
transformers?: z.objectInputType<{
|
|
3456
|
+
readonly id: z.ZodString;
|
|
3457
|
+
readonly type: z.ZodString;
|
|
3458
|
+
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
2042
3459
|
} | undefined;
|
|
2043
3460
|
graphql?: {
|
|
2044
3461
|
objectType?: {
|
|
@@ -2072,15 +3489,15 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2072
3489
|
} | undefined;
|
|
2073
3490
|
} | undefined;
|
|
2074
3491
|
} | undefined;
|
|
2075
|
-
}
|
|
2076
|
-
enums: z.ZodOptional<z.ZodArray<
|
|
3492
|
+
}>, "many">>;
|
|
3493
|
+
enums: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
3494
|
+
id: z.ZodString;
|
|
2077
3495
|
name: z.ZodString;
|
|
2078
|
-
featureRef:
|
|
2079
|
-
values: z.ZodArray<
|
|
3496
|
+
featureRef: z.ZodEffects<z.ZodString, string, string>;
|
|
3497
|
+
values: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
3498
|
+
id: z.ZodString;
|
|
2080
3499
|
name: z.ZodString;
|
|
2081
3500
|
friendlyName: z.ZodString;
|
|
2082
|
-
} & {
|
|
2083
|
-
id: z.ZodType<string, z.ZodAnyDef, string>;
|
|
2084
3501
|
}, "strip", z.ZodTypeAny, {
|
|
2085
3502
|
name: string;
|
|
2086
3503
|
id: string;
|
|
@@ -2089,10 +3506,16 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2089
3506
|
name: string;
|
|
2090
3507
|
id: string;
|
|
2091
3508
|
friendlyName: string;
|
|
2092
|
-
}
|
|
3509
|
+
}>, {
|
|
3510
|
+
name: string;
|
|
3511
|
+
id: string;
|
|
3512
|
+
friendlyName: string;
|
|
3513
|
+
}, {
|
|
3514
|
+
name: string;
|
|
3515
|
+
id: string;
|
|
3516
|
+
friendlyName: string;
|
|
3517
|
+
}>, "many">;
|
|
2093
3518
|
isExposed: z.ZodBoolean;
|
|
2094
|
-
} & {
|
|
2095
|
-
id: z.ZodType<string, z.ZodAnyDef, string>;
|
|
2096
3519
|
}, "strip", z.ZodTypeAny, {
|
|
2097
3520
|
values: {
|
|
2098
3521
|
name: string;
|
|
@@ -2113,62 +3536,79 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2113
3536
|
id: string;
|
|
2114
3537
|
featureRef: string;
|
|
2115
3538
|
isExposed: boolean;
|
|
2116
|
-
}
|
|
3539
|
+
}>, {
|
|
3540
|
+
values: {
|
|
3541
|
+
name: string;
|
|
3542
|
+
id: string;
|
|
3543
|
+
friendlyName: string;
|
|
3544
|
+
}[];
|
|
3545
|
+
name: string;
|
|
3546
|
+
id: string;
|
|
3547
|
+
featureRef: string;
|
|
3548
|
+
isExposed: boolean;
|
|
3549
|
+
}, {
|
|
3550
|
+
values: {
|
|
3551
|
+
name: string;
|
|
3552
|
+
id: string;
|
|
3553
|
+
friendlyName: string;
|
|
3554
|
+
}[];
|
|
3555
|
+
name: string;
|
|
3556
|
+
id: string;
|
|
3557
|
+
featureRef: string;
|
|
3558
|
+
isExposed: boolean;
|
|
3559
|
+
}>, "many">>;
|
|
2117
3560
|
isInitialized: z.ZodDefault<z.ZodBoolean>;
|
|
2118
3561
|
schemaVersion: z.ZodNumber;
|
|
2119
|
-
plugins: z.ZodOptional<z.ZodArray<
|
|
3562
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
2120
3563
|
id: z.ZodString;
|
|
2121
3564
|
packageName: z.ZodString;
|
|
2122
3565
|
name: z.ZodString;
|
|
2123
3566
|
version: z.ZodString;
|
|
2124
3567
|
config: z.ZodUnknown;
|
|
2125
3568
|
configSchemaVersion: z.ZodOptional<z.ZodNumber>;
|
|
2126
|
-
}
|
|
2127
|
-
id: z.ZodType<string, z.ZodAnyDef, string>;
|
|
2128
|
-
}, "strip", z.ZodTypeAny, {
|
|
2129
|
-
version: string;
|
|
2130
|
-
name: string;
|
|
2131
|
-
id: string;
|
|
2132
|
-
packageName: string;
|
|
2133
|
-
config?: unknown;
|
|
2134
|
-
configSchemaVersion?: number | undefined;
|
|
2135
|
-
}, {
|
|
2136
|
-
version: string;
|
|
2137
|
-
name: string;
|
|
2138
|
-
id: string;
|
|
2139
|
-
packageName: string;
|
|
2140
|
-
config?: unknown;
|
|
2141
|
-
configSchemaVersion?: number | undefined;
|
|
2142
|
-
}>> | z.ZodIntersection<import("#src/references/index.js").ZodRef<z.ZodObject<{
|
|
3569
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2143
3570
|
id: z.ZodString;
|
|
2144
3571
|
packageName: z.ZodString;
|
|
2145
3572
|
name: z.ZodString;
|
|
2146
3573
|
version: z.ZodString;
|
|
2147
3574
|
config: z.ZodUnknown;
|
|
2148
3575
|
configSchemaVersion: z.ZodOptional<z.ZodNumber>;
|
|
2149
|
-
}
|
|
2150
|
-
id: z.
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
3576
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3577
|
+
id: z.ZodString;
|
|
3578
|
+
packageName: z.ZodString;
|
|
3579
|
+
name: z.ZodString;
|
|
3580
|
+
version: z.ZodString;
|
|
3581
|
+
config: z.ZodUnknown;
|
|
3582
|
+
configSchemaVersion: z.ZodOptional<z.ZodNumber>;
|
|
3583
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
3584
|
+
id: z.ZodString;
|
|
3585
|
+
packageName: z.ZodString;
|
|
3586
|
+
name: z.ZodString;
|
|
3587
|
+
version: z.ZodString;
|
|
3588
|
+
config: z.ZodUnknown;
|
|
3589
|
+
configSchemaVersion: z.ZodOptional<z.ZodNumber>;
|
|
3590
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3591
|
+
id: z.ZodString;
|
|
3592
|
+
packageName: z.ZodString;
|
|
3593
|
+
name: z.ZodString;
|
|
3594
|
+
version: z.ZodString;
|
|
3595
|
+
config: z.ZodUnknown;
|
|
3596
|
+
configSchemaVersion: z.ZodOptional<z.ZodNumber>;
|
|
3597
|
+
}, z.ZodTypeAny, "passthrough">>, {
|
|
2159
3598
|
version: string;
|
|
2160
3599
|
name: string;
|
|
2161
3600
|
id: string;
|
|
2162
3601
|
packageName: string;
|
|
2163
3602
|
config?: unknown;
|
|
2164
3603
|
configSchemaVersion?: number | undefined;
|
|
2165
|
-
}
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
config
|
|
2171
|
-
|
|
3604
|
+
}, z.objectInputType<{
|
|
3605
|
+
id: z.ZodString;
|
|
3606
|
+
packageName: z.ZodString;
|
|
3607
|
+
name: z.ZodString;
|
|
3608
|
+
version: z.ZodString;
|
|
3609
|
+
config: z.ZodUnknown;
|
|
3610
|
+
configSchemaVersion: z.ZodOptional<z.ZodNumber>;
|
|
3611
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
2172
3612
|
settings: z.ZodObject<{
|
|
2173
3613
|
general: z.ZodObject<{
|
|
2174
3614
|
name: z.ZodString;
|
|
@@ -2261,14 +3701,14 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2261
3701
|
};
|
|
2262
3702
|
}>;
|
|
2263
3703
|
colors: z.ZodObject<{
|
|
2264
|
-
light: z.ZodRecord<z.ZodEnum<["link" | "
|
|
2265
|
-
dark: z.ZodRecord<z.ZodEnum<["link" | "
|
|
3704
|
+
light: z.ZodRecord<z.ZodEnum<["link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", ...("link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring")[]]>, z.ZodString>;
|
|
3705
|
+
dark: z.ZodRecord<z.ZodEnum<["link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", ...("link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring")[]]>, z.ZodString>;
|
|
2266
3706
|
}, "strip", z.ZodTypeAny, {
|
|
2267
|
-
light: Partial<Record<"link" | "
|
|
2268
|
-
dark: Partial<Record<"link" | "
|
|
3707
|
+
light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
|
|
3708
|
+
dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
|
|
2269
3709
|
}, {
|
|
2270
|
-
light: Partial<Record<"link" | "
|
|
2271
|
-
dark: Partial<Record<"link" | "
|
|
3710
|
+
light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
|
|
3711
|
+
dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
|
|
2272
3712
|
}>;
|
|
2273
3713
|
}, "strip", z.ZodTypeAny, {
|
|
2274
3714
|
palettes: {
|
|
@@ -2284,8 +3724,8 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2284
3724
|
};
|
|
2285
3725
|
};
|
|
2286
3726
|
colors: {
|
|
2287
|
-
light: Partial<Record<"link" | "
|
|
2288
|
-
dark: Partial<Record<"link" | "
|
|
3727
|
+
light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
|
|
3728
|
+
dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
|
|
2289
3729
|
};
|
|
2290
3730
|
}, {
|
|
2291
3731
|
palettes: {
|
|
@@ -2301,8 +3741,8 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2301
3741
|
};
|
|
2302
3742
|
};
|
|
2303
3743
|
colors: {
|
|
2304
|
-
light: Partial<Record<"link" | "
|
|
2305
|
-
dark: Partial<Record<"link" | "
|
|
3744
|
+
light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
|
|
3745
|
+
dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
|
|
2306
3746
|
};
|
|
2307
3747
|
}>>;
|
|
2308
3748
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2329,8 +3769,8 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2329
3769
|
};
|
|
2330
3770
|
};
|
|
2331
3771
|
colors: {
|
|
2332
|
-
light: Partial<Record<"link" | "
|
|
2333
|
-
dark: Partial<Record<"link" | "
|
|
3772
|
+
light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
|
|
3773
|
+
dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
|
|
2334
3774
|
};
|
|
2335
3775
|
} | undefined;
|
|
2336
3776
|
}, {
|
|
@@ -2357,8 +3797,8 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2357
3797
|
};
|
|
2358
3798
|
};
|
|
2359
3799
|
colors: {
|
|
2360
|
-
light: Partial<Record<"link" | "
|
|
2361
|
-
dark: Partial<Record<"link" | "
|
|
3800
|
+
light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
|
|
3801
|
+
dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
|
|
2362
3802
|
};
|
|
2363
3803
|
} | undefined;
|
|
2364
3804
|
}>;
|
|
@@ -2369,12 +3809,15 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2369
3809
|
id: string;
|
|
2370
3810
|
packageLocation?: string | undefined;
|
|
2371
3811
|
allowedRoles?: string[] | undefined;
|
|
2372
|
-
sections?: {
|
|
2373
|
-
type:
|
|
3812
|
+
sections?: ({
|
|
3813
|
+
type: string;
|
|
2374
3814
|
name: string;
|
|
2375
3815
|
id: string;
|
|
2376
|
-
modelRef: string;
|
|
2377
3816
|
featureRef: string;
|
|
3817
|
+
icon?: string | undefined;
|
|
3818
|
+
} & {
|
|
3819
|
+
type: "crud";
|
|
3820
|
+
modelRef: string;
|
|
2378
3821
|
form: {
|
|
2379
3822
|
fields: {
|
|
2380
3823
|
type: string;
|
|
@@ -2395,7 +3838,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2395
3838
|
};
|
|
2396
3839
|
}[];
|
|
2397
3840
|
};
|
|
2398
|
-
icon?: string | undefined;
|
|
2399
3841
|
disableCreate?: boolean | undefined;
|
|
2400
3842
|
embeddedForms?: ({
|
|
2401
3843
|
type: "object";
|
|
@@ -2436,7 +3878,7 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2436
3878
|
};
|
|
2437
3879
|
includeIdField?: boolean | undefined;
|
|
2438
3880
|
})[] | undefined;
|
|
2439
|
-
}[] | undefined;
|
|
3881
|
+
})[] | undefined;
|
|
2440
3882
|
} | {
|
|
2441
3883
|
type: "backend";
|
|
2442
3884
|
name: string;
|
|
@@ -2463,11 +3905,12 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2463
3905
|
features: {
|
|
2464
3906
|
name: string;
|
|
2465
3907
|
id: string;
|
|
2466
|
-
parentRef?: string |
|
|
3908
|
+
parentRef?: string | undefined;
|
|
2467
3909
|
}[];
|
|
2468
3910
|
models: {
|
|
2469
3911
|
name: string;
|
|
2470
3912
|
id: string;
|
|
3913
|
+
featureRef: string;
|
|
2471
3914
|
model: {
|
|
2472
3915
|
fields: {
|
|
2473
3916
|
options: {
|
|
@@ -2504,7 +3947,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2504
3947
|
}[];
|
|
2505
3948
|
}[] | undefined;
|
|
2506
3949
|
};
|
|
2507
|
-
featureRef: string;
|
|
2508
3950
|
service: {
|
|
2509
3951
|
delete: {
|
|
2510
3952
|
enabled: boolean;
|
|
@@ -2583,28 +4025,19 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2583
4025
|
};
|
|
2584
4026
|
};
|
|
2585
4027
|
colors: {
|
|
2586
|
-
light: Partial<Record<"link" | "
|
|
2587
|
-
dark: Partial<Record<"link" | "
|
|
4028
|
+
light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
|
|
4029
|
+
dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
|
|
2588
4030
|
};
|
|
2589
4031
|
} | undefined;
|
|
2590
4032
|
};
|
|
2591
|
-
plugins?:
|
|
2592
|
-
version: string;
|
|
2593
|
-
name: string;
|
|
2594
|
-
id: string;
|
|
2595
|
-
packageName: string;
|
|
2596
|
-
config?: unknown;
|
|
2597
|
-
configSchemaVersion?: number | undefined;
|
|
2598
|
-
} | ({
|
|
4033
|
+
plugins?: {
|
|
2599
4034
|
version: string;
|
|
2600
4035
|
name: string;
|
|
2601
4036
|
id: string;
|
|
2602
4037
|
packageName: string;
|
|
2603
4038
|
config?: unknown;
|
|
2604
4039
|
configSchemaVersion?: number | undefined;
|
|
2605
|
-
}
|
|
2606
|
-
config?: any;
|
|
2607
|
-
}))[] | undefined;
|
|
4040
|
+
}[] | undefined;
|
|
2608
4041
|
cliVersion?: string | null | undefined;
|
|
2609
4042
|
enums?: {
|
|
2610
4043
|
values: {
|
|
@@ -2643,28 +4076,19 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2643
4076
|
};
|
|
2644
4077
|
};
|
|
2645
4078
|
colors: {
|
|
2646
|
-
light: Partial<Record<"link" | "
|
|
2647
|
-
dark: Partial<Record<"link" | "
|
|
4079
|
+
light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
|
|
4080
|
+
dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
|
|
2648
4081
|
};
|
|
2649
4082
|
} | undefined;
|
|
2650
4083
|
};
|
|
2651
|
-
plugins?:
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
config
|
|
2657
|
-
configSchemaVersion
|
|
2658
|
-
} |
|
|
2659
|
-
version: string;
|
|
2660
|
-
name: string;
|
|
2661
|
-
id: string;
|
|
2662
|
-
packageName: string;
|
|
2663
|
-
config?: unknown;
|
|
2664
|
-
configSchemaVersion?: number | undefined;
|
|
2665
|
-
} & {
|
|
2666
|
-
config?: any;
|
|
2667
|
-
}))[] | undefined;
|
|
4084
|
+
plugins?: z.objectInputType<{
|
|
4085
|
+
id: z.ZodString;
|
|
4086
|
+
packageName: z.ZodString;
|
|
4087
|
+
name: z.ZodString;
|
|
4088
|
+
version: z.ZodString;
|
|
4089
|
+
config: z.ZodUnknown;
|
|
4090
|
+
configSchemaVersion: z.ZodOptional<z.ZodNumber>;
|
|
4091
|
+
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
2668
4092
|
cliVersion?: string | null | undefined;
|
|
2669
4093
|
apps?: ({
|
|
2670
4094
|
type: "admin";
|
|
@@ -2672,16 +4096,20 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2672
4096
|
id?: string | undefined;
|
|
2673
4097
|
packageLocation?: string | undefined;
|
|
2674
4098
|
allowedRoles?: string[] | undefined;
|
|
2675
|
-
sections?: {
|
|
2676
|
-
type:
|
|
4099
|
+
sections?: ({
|
|
4100
|
+
type: string;
|
|
2677
4101
|
name: string;
|
|
2678
|
-
modelRef: string;
|
|
2679
4102
|
featureRef: string;
|
|
4103
|
+
icon?: string | undefined;
|
|
4104
|
+
id?: string | undefined;
|
|
4105
|
+
} & {
|
|
4106
|
+
type: "crud";
|
|
4107
|
+
modelRef: string;
|
|
2680
4108
|
form: {
|
|
2681
|
-
fields: {
|
|
2682
|
-
type:
|
|
2683
|
-
label:
|
|
2684
|
-
}[];
|
|
4109
|
+
fields: z.objectInputType<{
|
|
4110
|
+
type: z.ZodString;
|
|
4111
|
+
label: z.ZodString;
|
|
4112
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
2685
4113
|
};
|
|
2686
4114
|
table: {
|
|
2687
4115
|
columns: {
|
|
@@ -2697,8 +4125,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2697
4125
|
};
|
|
2698
4126
|
}[];
|
|
2699
4127
|
};
|
|
2700
|
-
icon?: string | undefined;
|
|
2701
|
-
id?: string | undefined;
|
|
2702
4128
|
disableCreate?: boolean | undefined;
|
|
2703
4129
|
embeddedForms?: ({
|
|
2704
4130
|
type: "object";
|
|
@@ -2706,10 +4132,10 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2706
4132
|
id: string;
|
|
2707
4133
|
modelRef: string;
|
|
2708
4134
|
form: {
|
|
2709
|
-
fields: {
|
|
2710
|
-
type:
|
|
2711
|
-
label:
|
|
2712
|
-
}[];
|
|
4135
|
+
fields: z.objectInputType<{
|
|
4136
|
+
type: z.ZodString;
|
|
4137
|
+
label: z.ZodString;
|
|
4138
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
2713
4139
|
};
|
|
2714
4140
|
includeIdField?: boolean | undefined;
|
|
2715
4141
|
} | {
|
|
@@ -2718,10 +4144,10 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2718
4144
|
id: string;
|
|
2719
4145
|
modelRef: string;
|
|
2720
4146
|
form: {
|
|
2721
|
-
fields: {
|
|
2722
|
-
type:
|
|
2723
|
-
label:
|
|
2724
|
-
}[];
|
|
4147
|
+
fields: z.objectInputType<{
|
|
4148
|
+
type: z.ZodString;
|
|
4149
|
+
label: z.ZodString;
|
|
4150
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
2725
4151
|
};
|
|
2726
4152
|
table: {
|
|
2727
4153
|
columns: {
|
|
@@ -2739,7 +4165,7 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2739
4165
|
};
|
|
2740
4166
|
includeIdField?: boolean | undefined;
|
|
2741
4167
|
})[] | undefined;
|
|
2742
|
-
}[] | undefined;
|
|
4168
|
+
})[] | undefined;
|
|
2743
4169
|
} | {
|
|
2744
4170
|
type: "backend";
|
|
2745
4171
|
name: string;
|
|
@@ -2766,11 +4192,12 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2766
4192
|
features?: {
|
|
2767
4193
|
name: string;
|
|
2768
4194
|
id: string;
|
|
2769
|
-
parentRef?: string |
|
|
4195
|
+
parentRef?: string | undefined;
|
|
2770
4196
|
}[] | undefined;
|
|
2771
4197
|
models?: {
|
|
2772
4198
|
name: string;
|
|
2773
4199
|
id: string;
|
|
4200
|
+
featureRef: string;
|
|
2774
4201
|
model: {
|
|
2775
4202
|
fields: {
|
|
2776
4203
|
type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
|
|
@@ -2807,7 +4234,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2807
4234
|
}[];
|
|
2808
4235
|
}[] | undefined;
|
|
2809
4236
|
};
|
|
2810
|
-
featureRef: string;
|
|
2811
4237
|
service?: {
|
|
2812
4238
|
delete?: {
|
|
2813
4239
|
enabled?: boolean | undefined;
|
|
@@ -2822,10 +4248,10 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
|
|
|
2822
4248
|
fields?: string[] | undefined;
|
|
2823
4249
|
transformerNames?: string[] | undefined;
|
|
2824
4250
|
} | undefined;
|
|
2825
|
-
transformers?: {
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
}[] | undefined;
|
|
4251
|
+
transformers?: z.objectInputType<{
|
|
4252
|
+
readonly id: z.ZodString;
|
|
4253
|
+
readonly type: z.ZodString;
|
|
4254
|
+
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
2829
4255
|
} | undefined;
|
|
2830
4256
|
graphql?: {
|
|
2831
4257
|
objectType?: {
|