@baseplate-dev/project-builder-lib 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/dist/definition/feature/feature-utils.js +1 -1
  2. package/dist/definition/feature/feature-utils.js.map +1 -1
  3. package/dist/definition/project-definition-container.d.ts +3 -2
  4. package/dist/definition/project-definition-container.d.ts.map +1 -1
  5. package/dist/definition/project-definition-container.js +8 -6
  6. package/dist/definition/project-definition-container.js.map +1 -1
  7. package/dist/definition/project-definition-container.test-utils.d.ts.map +1 -1
  8. package/dist/definition/project-definition-container.test-utils.js +3 -7
  9. package/dist/definition/project-definition-container.test-utils.js.map +1 -1
  10. package/dist/migrations/index.d.ts.map +1 -1
  11. package/dist/migrations/index.js +2 -0
  12. package/dist/migrations/index.js.map +1 -1
  13. package/dist/migrations/migration-015-null-parent-refs.d.ts +17 -0
  14. package/dist/migrations/migration-015-null-parent-refs.d.ts.map +1 -0
  15. package/dist/migrations/migration-015-null-parent-refs.js +20 -0
  16. package/dist/migrations/migration-015-null-parent-refs.js.map +1 -0
  17. package/dist/parser/parser.d.ts +2 -2
  18. package/dist/parser/parser.d.ts.map +1 -1
  19. package/dist/parser/parser.js +11 -7
  20. package/dist/parser/parser.js.map +1 -1
  21. package/dist/plugins/migrations/run-migrations.js.map +1 -1
  22. package/dist/plugins/schema/index.d.ts +0 -2
  23. package/dist/plugins/schema/index.d.ts.map +1 -1
  24. package/dist/plugins/schema/index.js +0 -2
  25. package/dist/plugins/schema/index.js.map +1 -1
  26. package/dist/plugins/spec/config-spec.d.ts +3 -3
  27. package/dist/plugins/spec/config-spec.d.ts.map +1 -1
  28. package/dist/plugins/spec/config-spec.js +3 -3
  29. package/dist/plugins/spec/config-spec.js.map +1 -1
  30. package/dist/references/{ref-builder.d.ts → definition-ref-builder.d.ts} +13 -137
  31. package/dist/references/definition-ref-builder.d.ts.map +1 -0
  32. package/dist/references/definition-ref-builder.js +242 -0
  33. package/dist/references/definition-ref-builder.js.map +1 -0
  34. package/dist/references/deserialize-schema.d.ts +12 -1
  35. package/dist/references/deserialize-schema.d.ts.map +1 -1
  36. package/dist/references/deserialize-schema.js +24 -4
  37. package/dist/references/deserialize-schema.js.map +1 -1
  38. package/dist/references/extend-parser-context-with-refs.d.ts +16 -0
  39. package/dist/references/extend-parser-context-with-refs.d.ts.map +1 -0
  40. package/dist/references/extend-parser-context-with-refs.js +82 -0
  41. package/dist/references/extend-parser-context-with-refs.js.map +1 -0
  42. package/dist/references/extract-definition-refs.d.ts +19 -0
  43. package/dist/references/extract-definition-refs.d.ts.map +1 -0
  44. package/dist/references/extract-definition-refs.js +63 -0
  45. package/dist/references/extract-definition-refs.js.map +1 -0
  46. package/dist/references/fix-ref-deletions.d.ts +6 -6
  47. package/dist/references/fix-ref-deletions.d.ts.map +1 -1
  48. package/dist/references/fix-ref-deletions.js +13 -5
  49. package/dist/references/fix-ref-deletions.js.map +1 -1
  50. package/dist/references/index.d.ts +2 -1
  51. package/dist/references/index.d.ts.map +1 -1
  52. package/dist/references/index.js +2 -1
  53. package/dist/references/index.js.map +1 -1
  54. package/dist/references/markers.d.ts +22 -0
  55. package/dist/references/markers.d.ts.map +1 -0
  56. package/dist/references/markers.js +21 -0
  57. package/dist/references/markers.js.map +1 -0
  58. package/dist/references/parse-schema-with-references.d.ts +2 -2
  59. package/dist/references/parse-schema-with-references.d.ts.map +1 -1
  60. package/dist/references/parse-schema-with-references.js +13 -4
  61. package/dist/references/parse-schema-with-references.js.map +1 -1
  62. package/dist/references/resolve-zod-ref-payload-names.d.ts +1 -1
  63. package/dist/references/resolve-zod-ref-payload-names.d.ts.map +1 -1
  64. package/dist/references/serialize-schema.d.ts +2 -2
  65. package/dist/references/serialize-schema.d.ts.map +1 -1
  66. package/dist/references/serialize-schema.js +4 -3
  67. package/dist/references/serialize-schema.js.map +1 -1
  68. package/dist/references/strip-ref-markers.d.ts +7 -0
  69. package/dist/references/strip-ref-markers.d.ts.map +1 -0
  70. package/dist/references/strip-ref-markers.js +22 -0
  71. package/dist/references/strip-ref-markers.js.map +1 -0
  72. package/dist/references/types.d.ts +2 -2
  73. package/dist/references/types.d.ts.map +1 -1
  74. package/dist/schema/apps/admin/app.d.ts +958 -200
  75. package/dist/schema/apps/admin/app.d.ts.map +1 -1
  76. package/dist/schema/apps/admin/app.js +2 -3
  77. package/dist/schema/apps/admin/app.js.map +1 -1
  78. package/dist/schema/apps/admin/sections/base.d.ts +15 -3
  79. package/dist/schema/apps/admin/sections/base.d.ts.map +1 -1
  80. package/dist/schema/apps/admin/sections/base.js +4 -4
  81. package/dist/schema/apps/admin/sections/base.js.map +1 -1
  82. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.d.ts +12 -6
  83. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.d.ts.map +1 -1
  84. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.js +9 -5
  85. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.js.map +1 -1
  86. package/dist/schema/apps/admin/sections/crud-form/built-in-input.d.ts +19 -19
  87. package/dist/schema/apps/admin/sections/crud-form/built-in-input.d.ts.map +1 -1
  88. package/dist/schema/apps/admin/sections/crud-form/built-in-input.js +18 -19
  89. package/dist/schema/apps/admin/sections/crud-form/built-in-input.js.map +1 -1
  90. package/dist/schema/apps/admin/sections/crud-form/types.d.ts +1 -1
  91. package/dist/schema/apps/admin/sections/crud-form/types.d.ts.map +1 -1
  92. package/dist/schema/apps/admin/sections/crud.d.ts +468 -130
  93. package/dist/schema/apps/admin/sections/crud.d.ts.map +1 -1
  94. package/dist/schema/apps/admin/sections/crud.js +14 -14
  95. package/dist/schema/apps/admin/sections/crud.js.map +1 -1
  96. package/dist/schema/apps/backend/index.d.ts +1 -1
  97. package/dist/schema/apps/types.d.ts +1 -1
  98. package/dist/schema/apps/types.js +1 -1
  99. package/dist/schema/apps/web/index.d.ts +2 -2
  100. package/dist/schema/apps/web/index.d.ts.map +1 -1
  101. package/dist/schema/apps/web/index.js +2 -3
  102. package/dist/schema/apps/web/index.js.map +1 -1
  103. package/dist/schema/auth/index.d.ts +1 -1
  104. package/dist/schema/auth/index.js +1 -1
  105. package/dist/schema/creator/schema-creator.d.ts +3 -2
  106. package/dist/schema/creator/schema-creator.d.ts.map +1 -1
  107. package/dist/schema/creator/schema-creator.js +8 -1
  108. package/dist/schema/creator/schema-creator.js.map +1 -1
  109. package/dist/schema/creator/types.d.ts +35 -2
  110. package/dist/schema/creator/types.d.ts.map +1 -1
  111. package/dist/schema/features/feature.d.ts +29 -15
  112. package/dist/schema/features/feature.d.ts.map +1 -1
  113. package/dist/schema/features/feature.js +7 -4
  114. package/dist/schema/features/feature.js.map +1 -1
  115. package/dist/schema/features/theme.d.ts +12 -12
  116. package/dist/schema/models/enums.d.ts +62 -19
  117. package/dist/schema/models/enums.d.ts.map +1 -1
  118. package/dist/schema/models/enums.js +5 -4
  119. package/dist/schema/models/enums.js.map +1 -1
  120. package/dist/schema/models/graphql.d.ts +9 -9
  121. package/dist/schema/models/graphql.d.ts.map +1 -1
  122. package/dist/schema/models/graphql.js +12 -13
  123. package/dist/schema/models/graphql.js.map +1 -1
  124. package/dist/schema/models/index.d.ts +545 -131
  125. package/dist/schema/models/index.d.ts.map +1 -1
  126. package/dist/schema/models/index.js +24 -19
  127. package/dist/schema/models/index.js.map +1 -1
  128. package/dist/schema/models/transformers/built-in-transformers.d.ts +87 -23
  129. package/dist/schema/models/transformers/built-in-transformers.d.ts.map +1 -1
  130. package/dist/schema/models/transformers/built-in-transformers.js +10 -10
  131. package/dist/schema/models/transformers/built-in-transformers.js.map +1 -1
  132. package/dist/schema/models/transformers/transformers.d.ts +14 -8
  133. package/dist/schema/models/transformers/transformers.d.ts.map +1 -1
  134. package/dist/schema/models/transformers/transformers.js +9 -5
  135. package/dist/schema/models/transformers/transformers.js.map +1 -1
  136. package/dist/schema/models/transformers/types.d.ts +4 -3
  137. package/dist/schema/models/transformers/types.d.ts.map +1 -1
  138. package/dist/schema/models/transformers/types.js +2 -4
  139. package/dist/schema/models/transformers/types.js.map +1 -1
  140. package/dist/schema/plugins/definition.d.ts +64 -70
  141. package/dist/schema/plugins/definition.d.ts.map +1 -1
  142. package/dist/schema/plugins/definition.js +18 -16
  143. package/dist/schema/plugins/definition.js.map +1 -1
  144. package/dist/schema/project-definition.d.ts +1960 -534
  145. package/dist/schema/project-definition.d.ts.map +1 -1
  146. package/dist/schema/project-definition.js +1 -2
  147. package/dist/schema/project-definition.js.map +1 -1
  148. package/dist/schema/settings.d.ts +15 -15
  149. package/dist/schema/template-extractor/index.d.ts +1 -1
  150. package/dist/tools/model-merger/model-merger.d.ts +6 -6
  151. package/dist/tools/model-merger/model-merger.d.ts.map +1 -1
  152. package/dist/web/hooks/index.d.ts +1 -1
  153. package/dist/web/hooks/index.d.ts.map +1 -1
  154. package/dist/web/hooks/index.js +1 -1
  155. package/dist/web/hooks/index.js.map +1 -1
  156. package/dist/web/hooks/use-definition-schema.d.ts +3 -0
  157. package/dist/web/hooks/use-definition-schema.d.ts.map +1 -0
  158. package/dist/web/hooks/use-definition-schema.js +7 -0
  159. package/dist/web/hooks/use-definition-schema.js.map +1 -0
  160. package/dist/web/hooks/use-project-definition.d.ts +3 -3
  161. package/dist/web/hooks/use-project-definition.d.ts.map +1 -1
  162. package/package.json +5 -5
  163. package/dist/plugins/schema/common.d.ts +0 -6
  164. package/dist/plugins/schema/common.d.ts.map +0 -1
  165. package/dist/plugins/schema/common.js +0 -2
  166. package/dist/plugins/schema/common.js.map +0 -1
  167. package/dist/plugins/schema/parser.d.ts +0 -19
  168. package/dist/plugins/schema/parser.d.ts.map +0 -1
  169. package/dist/plugins/schema/parser.js +0 -41
  170. package/dist/plugins/schema/parser.js.map +0 -1
  171. package/dist/plugins/schema/zod-with-plugins.d.ts +0 -12
  172. package/dist/plugins/schema/zod-with-plugins.d.ts.map +0 -1
  173. package/dist/plugins/schema/zod-with-plugins.js +0 -26
  174. package/dist/plugins/schema/zod-with-plugins.js.map +0 -1
  175. package/dist/references/ref-builder.d.ts.map +0 -1
  176. package/dist/references/ref-builder.js +0 -492
  177. package/dist/references/ref-builder.js.map +0 -1
  178. package/dist/web/hooks/use-plugin-enhanced-schema.d.ts +0 -4
  179. package/dist/web/hooks/use-plugin-enhanced-schema.d.ts.map +0 -1
  180. package/dist/web/hooks/use-plugin-enhanced-schema.js +0 -8
  181. package/dist/web/hooks/use-plugin-enhanced-schema.js.map +0 -1
@@ -4,16 +4,17 @@ export * from './enums.js';
4
4
  export * from './graphql.js';
5
5
  export * from './transformers/index.js';
6
6
  export * from './types.js';
7
- export declare const createModelScalarFieldSchema: (options: import("#src/schema/creator/index.js").DefinitionSchemaCreatorOptions) => z.ZodEffects<z.ZodEffects<import("#src/references/index.js").ZodRef<z.ZodObject<{
7
+ export declare const createModelScalarFieldSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
8
+ id: z.ZodString;
8
9
  name: z.ZodString;
9
10
  type: z.ZodEnum<["string", "uuid", "int", "boolean", "dateTime", "float", "decimal", "json", "date", "enum"]>;
10
11
  isOptional: z.ZodDefault<z.ZodBoolean>;
11
- options: import("#src/references/index.js").ZodRef<z.ZodDefault<z.ZodEffects<z.ZodObject<{
12
+ options: z.ZodEffects<z.ZodDefault<z.ZodEffects<z.ZodObject<{
12
13
  default: z.ZodDefault<z.ZodString>;
13
14
  genUuid: z.ZodOptional<z.ZodBoolean>;
14
15
  updatedAt: z.ZodOptional<z.ZodBoolean>;
15
16
  defaultToNow: z.ZodOptional<z.ZodBoolean>;
16
- enumRef: import("#src/references/index.js").ZodRef<z.ZodOptional<z.ZodString>>;
17
+ enumRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
17
18
  defaultEnumValueRef: z.ZodOptional<z.ZodString>;
18
19
  }, "strip", z.ZodTypeAny, {
19
20
  default: string;
@@ -43,9 +44,21 @@ export declare const createModelScalarFieldSchema: (options: import("#src/schema
43
44
  defaultToNow?: boolean | undefined;
44
45
  enumRef?: string | undefined;
45
46
  defaultEnumValueRef?: string | undefined;
46
- }>>>;
47
- } & {
48
- id: z.ZodType<string, z.ZodAnyDef, string>;
47
+ }>>, {
48
+ defaultEnumValueRef?: string | undefined;
49
+ default: string;
50
+ genUuid?: boolean | undefined;
51
+ updatedAt?: boolean | undefined;
52
+ defaultToNow?: boolean | undefined;
53
+ enumRef?: string | undefined;
54
+ }, {
55
+ default?: string | undefined;
56
+ genUuid?: boolean | undefined;
57
+ updatedAt?: boolean | undefined;
58
+ defaultToNow?: boolean | undefined;
59
+ enumRef?: string | undefined;
60
+ defaultEnumValueRef?: string | undefined;
61
+ } | undefined>;
49
62
  }, "strip", z.ZodTypeAny, {
50
63
  options: {
51
64
  defaultEnumValueRef?: string | undefined;
@@ -72,7 +85,33 @@ export declare const createModelScalarFieldSchema: (options: import("#src/schema
72
85
  defaultEnumValueRef?: string | undefined;
73
86
  } | undefined;
74
87
  isOptional?: boolean | undefined;
75
- }>>, {
88
+ }>, {
89
+ options: {
90
+ defaultEnumValueRef?: string | undefined;
91
+ default: string;
92
+ genUuid?: boolean | undefined;
93
+ updatedAt?: boolean | undefined;
94
+ defaultToNow?: boolean | undefined;
95
+ enumRef?: string | undefined;
96
+ };
97
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
98
+ name: string;
99
+ id: string;
100
+ isOptional: boolean;
101
+ }, {
102
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
103
+ name: string;
104
+ id: string;
105
+ options?: {
106
+ default?: string | undefined;
107
+ genUuid?: boolean | undefined;
108
+ updatedAt?: boolean | undefined;
109
+ defaultToNow?: boolean | undefined;
110
+ enumRef?: string | undefined;
111
+ defaultEnumValueRef?: string | undefined;
112
+ } | undefined;
113
+ isOptional?: boolean | undefined;
114
+ }>, {
76
115
  options: {
77
116
  defaultEnumValueRef?: string | undefined;
78
117
  default: string;
@@ -128,13 +167,13 @@ export declare const createModelScalarFieldSchema: (options: import("#src/schema
128
167
  export type ModelScalarFieldConfig = def.InferOutput<typeof createModelScalarFieldSchema>;
129
168
  export type ModelScalarFieldConfigInput = def.InferInput<typeof createModelScalarFieldSchema>;
130
169
  export declare const REFERENTIAL_ACTIONS: readonly ["Cascade", "Restrict", "NoAction", "SetNull", "SetDefault"];
131
- export declare const createModelRelationFieldSchema: (options: import("#src/schema/creator/index.js").DefinitionSchemaCreatorOptions) => import("#src/references/index.js").ZodRef<z.ZodObject<{
170
+ export declare const createModelRelationFieldSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodEffects<z.ZodObject<{
132
171
  id: z.ZodString;
133
172
  foreignId: z.ZodDefault<z.ZodString>;
134
173
  name: z.ZodString;
135
174
  references: z.ZodArray<z.ZodObject<{
136
- localRef: import("#src/references/index.js").ZodRef<z.ZodString>;
137
- foreignRef: import("#src/references/index.js").ZodRef<z.ZodString>;
175
+ localRef: z.ZodEffects<z.ZodString, string, string>;
176
+ foreignRef: z.ZodEffects<z.ZodString, string, string>;
138
177
  }, "strip", z.ZodTypeAny, {
139
178
  localRef: string;
140
179
  foreignRef: string;
@@ -170,19 +209,42 @@ export declare const createModelRelationFieldSchema: (options: import("#src/sche
170
209
  onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
171
210
  foreignId?: string | undefined;
172
211
  onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
173
- }>>;
212
+ }>, {
213
+ name: string;
214
+ id: string;
215
+ onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
216
+ references: {
217
+ localRef: string;
218
+ foreignRef: string;
219
+ }[];
220
+ modelRef: string;
221
+ foreignId: string;
222
+ foreignRelationName: string;
223
+ onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
224
+ }, {
225
+ name: string;
226
+ id: string;
227
+ references: {
228
+ localRef: string;
229
+ foreignRef: string;
230
+ }[];
231
+ modelRef: string;
232
+ foreignRelationName: string;
233
+ onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
234
+ foreignId?: string | undefined;
235
+ onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
236
+ }>;
174
237
  export type ModelRelationFieldConfig = def.InferOutput<typeof createModelRelationFieldSchema>;
175
238
  export type ModelRelationFieldConfigInput = def.InferInput<typeof createModelRelationFieldSchema>;
176
- export declare const createModelUniqueConstraintSchema: (options: import("#src/schema/creator/index.js").DefinitionSchemaCreatorOptions) => import("#src/references/index.js").ZodRef<z.ZodObject<{
239
+ export declare const createModelUniqueConstraintSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodEffects<z.ZodObject<{
240
+ id: z.ZodString;
177
241
  fields: z.ZodArray<z.ZodObject<{
178
- fieldRef: import("#src/references/index.js").ZodRef<z.ZodString>;
242
+ fieldRef: z.ZodEffects<z.ZodString, string, string>;
179
243
  }, "strip", z.ZodTypeAny, {
180
244
  fieldRef: string;
181
245
  }, {
182
246
  fieldRef: string;
183
247
  }>, "many">;
184
- } & {
185
- id: z.ZodType<string, z.ZodAnyDef, string>;
186
248
  }, "strip", z.ZodTypeAny, {
187
249
  id: string;
188
250
  fields: {
@@ -193,14 +255,24 @@ export declare const createModelUniqueConstraintSchema: (options: import("#src/s
193
255
  fields: {
194
256
  fieldRef: string;
195
257
  }[];
196
- }>>;
258
+ }>, {
259
+ id: string;
260
+ fields: {
261
+ fieldRef: string;
262
+ }[];
263
+ }, {
264
+ id: string;
265
+ fields: {
266
+ fieldRef: string;
267
+ }[];
268
+ }>;
197
269
  export type ModelUniqueConstraintConfig = def.InferOutput<typeof createModelUniqueConstraintSchema>;
198
270
  export type ModelUniqueConstraintConfigInput = def.InferInput<typeof createModelUniqueConstraintSchema>;
199
- export declare const createModelServiceSchema: (options: import("#src/schema/creator/index.js").DefinitionSchemaCreatorOptions) => z.ZodObject<{
271
+ export declare const createModelServiceSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
200
272
  create: z.ZodDefault<z.ZodObject<{
201
273
  enabled: z.ZodDefault<z.ZodBoolean>;
202
- fields: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
203
- transformerNames: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
274
+ fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
275
+ transformerNames: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
204
276
  }, "strip", z.ZodTypeAny, {
205
277
  enabled: boolean;
206
278
  fields?: string[] | undefined;
@@ -212,8 +284,8 @@ export declare const createModelServiceSchema: (options: import("#src/schema/cre
212
284
  }>>;
213
285
  update: z.ZodDefault<z.ZodObject<{
214
286
  enabled: z.ZodDefault<z.ZodBoolean>;
215
- fields: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
216
- transformerNames: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
287
+ fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
288
+ transformerNames: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
217
289
  }, "strip", z.ZodTypeAny, {
218
290
  enabled: boolean;
219
291
  fields?: string[] | undefined;
@@ -230,16 +302,22 @@ export declare const createModelServiceSchema: (options: import("#src/schema/cre
230
302
  }, {
231
303
  enabled?: boolean | undefined;
232
304
  }>>;
233
- transformers: z.ZodDefault<z.ZodArray<import("../../index.js").ZodWithPlugins<z.ZodObject<{
234
- type: z.ZodString;
235
- id: z.ZodString;
236
- }, "strip", z.ZodTypeAny, {
305
+ transformers: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
306
+ readonly id: z.ZodString;
307
+ readonly type: z.ZodString;
308
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
309
+ readonly id: z.ZodString;
310
+ readonly type: z.ZodString;
311
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
312
+ readonly id: z.ZodString;
313
+ readonly type: z.ZodString;
314
+ }, z.ZodTypeAny, "passthrough">>, {
237
315
  type: string;
238
316
  id: string;
239
- }, {
240
- type: string;
241
- id: string;
242
- }>>, "many">>;
317
+ }, z.objectInputType<{
318
+ readonly id: z.ZodString;
319
+ readonly type: z.ZodString;
320
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
243
321
  }, "strip", z.ZodTypeAny, {
244
322
  delete: {
245
323
  enabled: boolean;
@@ -272,27 +350,28 @@ export declare const createModelServiceSchema: (options: import("#src/schema/cre
272
350
  fields?: string[] | undefined;
273
351
  transformerNames?: string[] | undefined;
274
352
  } | undefined;
275
- transformers?: {
276
- type: string;
277
- id: string;
278
- }[] | undefined;
353
+ transformers?: z.objectInputType<{
354
+ readonly id: z.ZodString;
355
+ readonly type: z.ZodString;
356
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
279
357
  }>;
280
358
  export type ModelServiceConfig = def.InferOutput<typeof createModelServiceSchema>;
281
- export declare const createModelBaseSchema: (options: import("#src/schema/creator/index.js").DefinitionSchemaCreatorOptions) => z.ZodObject<{
359
+ export declare const createModelBaseSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
282
360
  id: z.ZodString;
283
361
  name: z.ZodString;
284
- featureRef: import("#src/references/index.js").ZodRef<z.ZodString>;
362
+ featureRef: z.ZodEffects<z.ZodString, string, string>;
285
363
  model: z.ZodObject<{
286
- fields: z.ZodArray<z.ZodEffects<z.ZodEffects<import("#src/references/index.js").ZodRef<z.ZodObject<{
364
+ fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
365
+ id: z.ZodString;
287
366
  name: z.ZodString;
288
367
  type: z.ZodEnum<["string", "uuid", "int", "boolean", "dateTime", "float", "decimal", "json", "date", "enum"]>;
289
368
  isOptional: z.ZodDefault<z.ZodBoolean>;
290
- options: import("#src/references/index.js").ZodRef<z.ZodDefault<z.ZodEffects<z.ZodObject<{
369
+ options: z.ZodEffects<z.ZodDefault<z.ZodEffects<z.ZodObject<{
291
370
  default: z.ZodDefault<z.ZodString>;
292
371
  genUuid: z.ZodOptional<z.ZodBoolean>;
293
372
  updatedAt: z.ZodOptional<z.ZodBoolean>;
294
373
  defaultToNow: z.ZodOptional<z.ZodBoolean>;
295
- enumRef: import("#src/references/index.js").ZodRef<z.ZodOptional<z.ZodString>>;
374
+ enumRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
296
375
  defaultEnumValueRef: z.ZodOptional<z.ZodString>;
297
376
  }, "strip", z.ZodTypeAny, {
298
377
  default: string;
@@ -322,9 +401,21 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
322
401
  defaultToNow?: boolean | undefined;
323
402
  enumRef?: string | undefined;
324
403
  defaultEnumValueRef?: string | undefined;
325
- }>>>;
326
- } & {
327
- id: z.ZodType<string, z.ZodAnyDef, string>;
404
+ }>>, {
405
+ defaultEnumValueRef?: string | undefined;
406
+ default: string;
407
+ genUuid?: boolean | undefined;
408
+ updatedAt?: boolean | undefined;
409
+ defaultToNow?: boolean | undefined;
410
+ enumRef?: string | undefined;
411
+ }, {
412
+ default?: string | undefined;
413
+ genUuid?: boolean | undefined;
414
+ updatedAt?: boolean | undefined;
415
+ defaultToNow?: boolean | undefined;
416
+ enumRef?: string | undefined;
417
+ defaultEnumValueRef?: string | undefined;
418
+ } | undefined>;
328
419
  }, "strip", z.ZodTypeAny, {
329
420
  options: {
330
421
  defaultEnumValueRef?: string | undefined;
@@ -351,7 +442,33 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
351
442
  defaultEnumValueRef?: string | undefined;
352
443
  } | undefined;
353
444
  isOptional?: boolean | undefined;
354
- }>>, {
445
+ }>, {
446
+ options: {
447
+ defaultEnumValueRef?: string | undefined;
448
+ default: string;
449
+ genUuid?: boolean | undefined;
450
+ updatedAt?: boolean | undefined;
451
+ defaultToNow?: boolean | undefined;
452
+ enumRef?: string | undefined;
453
+ };
454
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
455
+ name: string;
456
+ id: string;
457
+ isOptional: boolean;
458
+ }, {
459
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
460
+ name: string;
461
+ id: string;
462
+ options?: {
463
+ default?: string | undefined;
464
+ genUuid?: boolean | undefined;
465
+ updatedAt?: boolean | undefined;
466
+ defaultToNow?: boolean | undefined;
467
+ enumRef?: string | undefined;
468
+ defaultEnumValueRef?: string | undefined;
469
+ } | undefined;
470
+ isOptional?: boolean | undefined;
471
+ }>, {
355
472
  options: {
356
473
  defaultEnumValueRef?: string | undefined;
357
474
  default: string;
@@ -404,13 +521,13 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
404
521
  } | undefined;
405
522
  isOptional?: boolean | undefined;
406
523
  }>, "many">;
407
- relations: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodObject<{
524
+ relations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
408
525
  id: z.ZodString;
409
526
  foreignId: z.ZodDefault<z.ZodString>;
410
527
  name: z.ZodString;
411
528
  references: z.ZodArray<z.ZodObject<{
412
- localRef: import("#src/references/index.js").ZodRef<z.ZodString>;
413
- foreignRef: import("#src/references/index.js").ZodRef<z.ZodString>;
529
+ localRef: z.ZodEffects<z.ZodString, string, string>;
530
+ foreignRef: z.ZodEffects<z.ZodString, string, string>;
414
531
  }, "strip", z.ZodTypeAny, {
415
532
  localRef: string;
416
533
  foreignRef: string;
@@ -446,18 +563,41 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
446
563
  onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
447
564
  foreignId?: string | undefined;
448
565
  onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
449
- }>>, "many">>;
450
- primaryKeyFieldRefs: z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">;
451
- uniqueConstraints: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodObject<{
566
+ }>, {
567
+ name: string;
568
+ id: string;
569
+ onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
570
+ references: {
571
+ localRef: string;
572
+ foreignRef: string;
573
+ }[];
574
+ modelRef: string;
575
+ foreignId: string;
576
+ foreignRelationName: string;
577
+ onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
578
+ }, {
579
+ name: string;
580
+ id: string;
581
+ references: {
582
+ localRef: string;
583
+ foreignRef: string;
584
+ }[];
585
+ modelRef: string;
586
+ foreignRelationName: string;
587
+ onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
588
+ foreignId?: string | undefined;
589
+ onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
590
+ }>, "many">>;
591
+ primaryKeyFieldRefs: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
592
+ uniqueConstraints: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
593
+ id: z.ZodString;
452
594
  fields: z.ZodArray<z.ZodObject<{
453
- fieldRef: import("#src/references/index.js").ZodRef<z.ZodString>;
595
+ fieldRef: z.ZodEffects<z.ZodString, string, string>;
454
596
  }, "strip", z.ZodTypeAny, {
455
597
  fieldRef: string;
456
598
  }, {
457
599
  fieldRef: string;
458
600
  }>, "many">;
459
- } & {
460
- id: z.ZodType<string, z.ZodAnyDef, string>;
461
601
  }, "strip", z.ZodTypeAny, {
462
602
  id: string;
463
603
  fields: {
@@ -468,7 +608,17 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
468
608
  fields: {
469
609
  fieldRef: string;
470
610
  }[];
471
- }>>, "many">>;
611
+ }>, {
612
+ id: string;
613
+ fields: {
614
+ fieldRef: string;
615
+ }[];
616
+ }, {
617
+ id: string;
618
+ fields: {
619
+ fieldRef: string;
620
+ }[];
621
+ }>, "many">>;
472
622
  }, "strip", z.ZodTypeAny, {
473
623
  fields: {
474
624
  options: {
@@ -543,8 +693,8 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
543
693
  service: z.ZodDefault<z.ZodObject<{
544
694
  create: z.ZodDefault<z.ZodObject<{
545
695
  enabled: z.ZodDefault<z.ZodBoolean>;
546
- fields: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
547
- transformerNames: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
696
+ fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
697
+ transformerNames: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
548
698
  }, "strip", z.ZodTypeAny, {
549
699
  enabled: boolean;
550
700
  fields?: string[] | undefined;
@@ -556,8 +706,8 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
556
706
  }>>;
557
707
  update: z.ZodDefault<z.ZodObject<{
558
708
  enabled: z.ZodDefault<z.ZodBoolean>;
559
- fields: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
560
- transformerNames: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
709
+ fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
710
+ transformerNames: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
561
711
  }, "strip", z.ZodTypeAny, {
562
712
  enabled: boolean;
563
713
  fields?: string[] | undefined;
@@ -574,16 +724,22 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
574
724
  }, {
575
725
  enabled?: boolean | undefined;
576
726
  }>>;
577
- transformers: z.ZodDefault<z.ZodArray<import("../../index.js").ZodWithPlugins<z.ZodObject<{
578
- type: z.ZodString;
579
- id: z.ZodString;
580
- }, "strip", z.ZodTypeAny, {
581
- type: string;
582
- id: string;
583
- }, {
727
+ transformers: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
728
+ readonly id: z.ZodString;
729
+ readonly type: z.ZodString;
730
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
731
+ readonly id: z.ZodString;
732
+ readonly type: z.ZodString;
733
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
734
+ readonly id: z.ZodString;
735
+ readonly type: z.ZodString;
736
+ }, z.ZodTypeAny, "passthrough">>, {
584
737
  type: string;
585
738
  id: string;
586
- }>>, "many">>;
739
+ }, z.objectInputType<{
740
+ readonly id: z.ZodString;
741
+ readonly type: z.ZodString;
742
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
587
743
  }, "strip", z.ZodTypeAny, {
588
744
  delete: {
589
745
  enabled: boolean;
@@ -616,17 +772,17 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
616
772
  fields?: string[] | undefined;
617
773
  transformerNames?: string[] | undefined;
618
774
  } | undefined;
619
- transformers?: {
620
- type: string;
621
- id: string;
622
- }[] | undefined;
775
+ transformers?: z.objectInputType<{
776
+ readonly id: z.ZodString;
777
+ readonly type: z.ZodString;
778
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
623
779
  }>>;
624
780
  graphql: z.ZodOptional<z.ZodObject<{
625
781
  objectType: z.ZodDefault<z.ZodObject<{
626
782
  enabled: z.ZodDefault<z.ZodBoolean>;
627
- fields: z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">;
628
- localRelations: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
629
- foreignRelations: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
783
+ fields: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
784
+ localRelations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
785
+ foreignRelations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
630
786
  }, "strip", z.ZodTypeAny, {
631
787
  enabled: boolean;
632
788
  fields: string[];
@@ -641,7 +797,7 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
641
797
  queries: z.ZodDefault<z.ZodObject<{
642
798
  get: z.ZodOptional<z.ZodObject<{
643
799
  enabled: z.ZodOptional<z.ZodBoolean>;
644
- roles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
800
+ roles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
645
801
  }, "strip", z.ZodTypeAny, {
646
802
  enabled?: boolean | undefined;
647
803
  roles?: string[] | undefined;
@@ -651,7 +807,7 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
651
807
  }>>;
652
808
  list: z.ZodOptional<z.ZodObject<{
653
809
  enabled: z.ZodOptional<z.ZodBoolean>;
654
- roles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
810
+ roles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
655
811
  }, "strip", z.ZodTypeAny, {
656
812
  enabled?: boolean | undefined;
657
813
  roles?: string[] | undefined;
@@ -681,7 +837,7 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
681
837
  mutations: z.ZodDefault<z.ZodObject<{
682
838
  create: z.ZodDefault<z.ZodObject<{
683
839
  enabled: z.ZodOptional<z.ZodBoolean>;
684
- roles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
840
+ roles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
685
841
  }, "strip", z.ZodTypeAny, {
686
842
  enabled?: boolean | undefined;
687
843
  roles?: string[] | undefined;
@@ -691,7 +847,7 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
691
847
  }>>;
692
848
  update: z.ZodDefault<z.ZodObject<{
693
849
  enabled: z.ZodOptional<z.ZodBoolean>;
694
- roles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
850
+ roles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
695
851
  }, "strip", z.ZodTypeAny, {
696
852
  enabled?: boolean | undefined;
697
853
  roles?: string[] | undefined;
@@ -701,7 +857,7 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
701
857
  }>>;
702
858
  delete: z.ZodDefault<z.ZodObject<{
703
859
  enabled: z.ZodOptional<z.ZodBoolean>;
704
- roles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
860
+ roles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
705
861
  }, "strip", z.ZodTypeAny, {
706
862
  enabled?: boolean | undefined;
707
863
  roles?: string[] | undefined;
@@ -802,6 +958,7 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
802
958
  }, "strip", z.ZodTypeAny, {
803
959
  name: string;
804
960
  id: string;
961
+ featureRef: string;
805
962
  model: {
806
963
  fields: {
807
964
  options: {
@@ -838,7 +995,6 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
838
995
  }[];
839
996
  }[] | undefined;
840
997
  };
841
- featureRef: string;
842
998
  service: {
843
999
  delete: {
844
1000
  enabled: boolean;
@@ -893,6 +1049,7 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
893
1049
  }, {
894
1050
  name: string;
895
1051
  id: string;
1052
+ featureRef: string;
896
1053
  model: {
897
1054
  fields: {
898
1055
  type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
@@ -929,7 +1086,6 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
929
1086
  }[];
930
1087
  }[] | undefined;
931
1088
  };
932
- featureRef: string;
933
1089
  service?: {
934
1090
  delete?: {
935
1091
  enabled?: boolean | undefined;
@@ -944,10 +1100,10 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
944
1100
  fields?: string[] | undefined;
945
1101
  transformerNames?: string[] | undefined;
946
1102
  } | undefined;
947
- transformers?: {
948
- type: string;
949
- id: string;
950
- }[] | undefined;
1103
+ transformers?: z.objectInputType<{
1104
+ readonly id: z.ZodString;
1105
+ readonly type: z.ZodString;
1106
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
951
1107
  } | undefined;
952
1108
  graphql?: {
953
1109
  objectType?: {
@@ -982,21 +1138,22 @@ export declare const createModelBaseSchema: (options: import("#src/schema/creato
982
1138
  } | undefined;
983
1139
  } | undefined;
984
1140
  }>;
985
- export declare const createModelSchema: (options: import("#src/schema/creator/index.js").DefinitionSchemaCreatorOptions) => import("#src/references/index.js").ZodRef<z.ZodObject<{
1141
+ export declare const createModelSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodEffects<z.ZodObject<{
986
1142
  id: z.ZodString;
987
1143
  name: z.ZodString;
988
- featureRef: import("#src/references/index.js").ZodRef<z.ZodString>;
1144
+ featureRef: z.ZodEffects<z.ZodString, string, string>;
989
1145
  model: z.ZodObject<{
990
- fields: z.ZodArray<z.ZodEffects<z.ZodEffects<import("#src/references/index.js").ZodRef<z.ZodObject<{
1146
+ fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1147
+ id: z.ZodString;
991
1148
  name: z.ZodString;
992
1149
  type: z.ZodEnum<["string", "uuid", "int", "boolean", "dateTime", "float", "decimal", "json", "date", "enum"]>;
993
1150
  isOptional: z.ZodDefault<z.ZodBoolean>;
994
- options: import("#src/references/index.js").ZodRef<z.ZodDefault<z.ZodEffects<z.ZodObject<{
1151
+ options: z.ZodEffects<z.ZodDefault<z.ZodEffects<z.ZodObject<{
995
1152
  default: z.ZodDefault<z.ZodString>;
996
1153
  genUuid: z.ZodOptional<z.ZodBoolean>;
997
1154
  updatedAt: z.ZodOptional<z.ZodBoolean>;
998
1155
  defaultToNow: z.ZodOptional<z.ZodBoolean>;
999
- enumRef: import("#src/references/index.js").ZodRef<z.ZodOptional<z.ZodString>>;
1156
+ enumRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1000
1157
  defaultEnumValueRef: z.ZodOptional<z.ZodString>;
1001
1158
  }, "strip", z.ZodTypeAny, {
1002
1159
  default: string;
@@ -1026,9 +1183,21 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1026
1183
  defaultToNow?: boolean | undefined;
1027
1184
  enumRef?: string | undefined;
1028
1185
  defaultEnumValueRef?: string | undefined;
1029
- }>>>;
1030
- } & {
1031
- id: z.ZodType<string, z.ZodAnyDef, string>;
1186
+ }>>, {
1187
+ defaultEnumValueRef?: string | undefined;
1188
+ default: string;
1189
+ genUuid?: boolean | undefined;
1190
+ updatedAt?: boolean | undefined;
1191
+ defaultToNow?: boolean | undefined;
1192
+ enumRef?: string | undefined;
1193
+ }, {
1194
+ default?: string | undefined;
1195
+ genUuid?: boolean | undefined;
1196
+ updatedAt?: boolean | undefined;
1197
+ defaultToNow?: boolean | undefined;
1198
+ enumRef?: string | undefined;
1199
+ defaultEnumValueRef?: string | undefined;
1200
+ } | undefined>;
1032
1201
  }, "strip", z.ZodTypeAny, {
1033
1202
  options: {
1034
1203
  defaultEnumValueRef?: string | undefined;
@@ -1055,7 +1224,33 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1055
1224
  defaultEnumValueRef?: string | undefined;
1056
1225
  } | undefined;
1057
1226
  isOptional?: boolean | undefined;
1058
- }>>, {
1227
+ }>, {
1228
+ options: {
1229
+ defaultEnumValueRef?: string | undefined;
1230
+ default: string;
1231
+ genUuid?: boolean | undefined;
1232
+ updatedAt?: boolean | undefined;
1233
+ defaultToNow?: boolean | undefined;
1234
+ enumRef?: string | undefined;
1235
+ };
1236
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1237
+ name: string;
1238
+ id: string;
1239
+ isOptional: boolean;
1240
+ }, {
1241
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1242
+ name: string;
1243
+ id: string;
1244
+ options?: {
1245
+ default?: string | undefined;
1246
+ genUuid?: boolean | undefined;
1247
+ updatedAt?: boolean | undefined;
1248
+ defaultToNow?: boolean | undefined;
1249
+ enumRef?: string | undefined;
1250
+ defaultEnumValueRef?: string | undefined;
1251
+ } | undefined;
1252
+ isOptional?: boolean | undefined;
1253
+ }>, {
1059
1254
  options: {
1060
1255
  defaultEnumValueRef?: string | undefined;
1061
1256
  default: string;
@@ -1108,13 +1303,13 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1108
1303
  } | undefined;
1109
1304
  isOptional?: boolean | undefined;
1110
1305
  }>, "many">;
1111
- relations: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodObject<{
1306
+ relations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1112
1307
  id: z.ZodString;
1113
1308
  foreignId: z.ZodDefault<z.ZodString>;
1114
1309
  name: z.ZodString;
1115
1310
  references: z.ZodArray<z.ZodObject<{
1116
- localRef: import("#src/references/index.js").ZodRef<z.ZodString>;
1117
- foreignRef: import("#src/references/index.js").ZodRef<z.ZodString>;
1311
+ localRef: z.ZodEffects<z.ZodString, string, string>;
1312
+ foreignRef: z.ZodEffects<z.ZodString, string, string>;
1118
1313
  }, "strip", z.ZodTypeAny, {
1119
1314
  localRef: string;
1120
1315
  foreignRef: string;
@@ -1150,18 +1345,41 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1150
1345
  onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
1151
1346
  foreignId?: string | undefined;
1152
1347
  onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
1153
- }>>, "many">>;
1154
- primaryKeyFieldRefs: z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">;
1155
- uniqueConstraints: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodObject<{
1348
+ }>, {
1349
+ name: string;
1350
+ id: string;
1351
+ onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
1352
+ references: {
1353
+ localRef: string;
1354
+ foreignRef: string;
1355
+ }[];
1356
+ modelRef: string;
1357
+ foreignId: string;
1358
+ foreignRelationName: string;
1359
+ onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
1360
+ }, {
1361
+ name: string;
1362
+ id: string;
1363
+ references: {
1364
+ localRef: string;
1365
+ foreignRef: string;
1366
+ }[];
1367
+ modelRef: string;
1368
+ foreignRelationName: string;
1369
+ onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
1370
+ foreignId?: string | undefined;
1371
+ onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
1372
+ }>, "many">>;
1373
+ primaryKeyFieldRefs: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1374
+ uniqueConstraints: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1375
+ id: z.ZodString;
1156
1376
  fields: z.ZodArray<z.ZodObject<{
1157
- fieldRef: import("#src/references/index.js").ZodRef<z.ZodString>;
1377
+ fieldRef: z.ZodEffects<z.ZodString, string, string>;
1158
1378
  }, "strip", z.ZodTypeAny, {
1159
1379
  fieldRef: string;
1160
1380
  }, {
1161
1381
  fieldRef: string;
1162
1382
  }>, "many">;
1163
- } & {
1164
- id: z.ZodType<string, z.ZodAnyDef, string>;
1165
1383
  }, "strip", z.ZodTypeAny, {
1166
1384
  id: string;
1167
1385
  fields: {
@@ -1172,7 +1390,17 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1172
1390
  fields: {
1173
1391
  fieldRef: string;
1174
1392
  }[];
1175
- }>>, "many">>;
1393
+ }>, {
1394
+ id: string;
1395
+ fields: {
1396
+ fieldRef: string;
1397
+ }[];
1398
+ }, {
1399
+ id: string;
1400
+ fields: {
1401
+ fieldRef: string;
1402
+ }[];
1403
+ }>, "many">>;
1176
1404
  }, "strip", z.ZodTypeAny, {
1177
1405
  fields: {
1178
1406
  options: {
@@ -1247,8 +1475,8 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1247
1475
  service: z.ZodDefault<z.ZodObject<{
1248
1476
  create: z.ZodDefault<z.ZodObject<{
1249
1477
  enabled: z.ZodDefault<z.ZodBoolean>;
1250
- fields: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1251
- transformerNames: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1478
+ fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1479
+ transformerNames: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1252
1480
  }, "strip", z.ZodTypeAny, {
1253
1481
  enabled: boolean;
1254
1482
  fields?: string[] | undefined;
@@ -1260,8 +1488,8 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1260
1488
  }>>;
1261
1489
  update: z.ZodDefault<z.ZodObject<{
1262
1490
  enabled: z.ZodDefault<z.ZodBoolean>;
1263
- fields: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1264
- transformerNames: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1491
+ fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1492
+ transformerNames: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1265
1493
  }, "strip", z.ZodTypeAny, {
1266
1494
  enabled: boolean;
1267
1495
  fields?: string[] | undefined;
@@ -1278,16 +1506,22 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1278
1506
  }, {
1279
1507
  enabled?: boolean | undefined;
1280
1508
  }>>;
1281
- transformers: z.ZodDefault<z.ZodArray<import("../../index.js").ZodWithPlugins<z.ZodObject<{
1282
- type: z.ZodString;
1283
- id: z.ZodString;
1284
- }, "strip", z.ZodTypeAny, {
1285
- type: string;
1286
- id: string;
1287
- }, {
1509
+ transformers: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
1510
+ readonly id: z.ZodString;
1511
+ readonly type: z.ZodString;
1512
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1513
+ readonly id: z.ZodString;
1514
+ readonly type: z.ZodString;
1515
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1516
+ readonly id: z.ZodString;
1517
+ readonly type: z.ZodString;
1518
+ }, z.ZodTypeAny, "passthrough">>, {
1288
1519
  type: string;
1289
1520
  id: string;
1290
- }>>, "many">>;
1521
+ }, z.objectInputType<{
1522
+ readonly id: z.ZodString;
1523
+ readonly type: z.ZodString;
1524
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1291
1525
  }, "strip", z.ZodTypeAny, {
1292
1526
  delete: {
1293
1527
  enabled: boolean;
@@ -1320,17 +1554,17 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1320
1554
  fields?: string[] | undefined;
1321
1555
  transformerNames?: string[] | undefined;
1322
1556
  } | undefined;
1323
- transformers?: {
1324
- type: string;
1325
- id: string;
1326
- }[] | undefined;
1557
+ transformers?: z.objectInputType<{
1558
+ readonly id: z.ZodString;
1559
+ readonly type: z.ZodString;
1560
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
1327
1561
  }>>;
1328
1562
  graphql: z.ZodOptional<z.ZodObject<{
1329
1563
  objectType: z.ZodDefault<z.ZodObject<{
1330
1564
  enabled: z.ZodDefault<z.ZodBoolean>;
1331
- fields: z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">;
1332
- localRelations: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1333
- foreignRelations: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1565
+ fields: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1566
+ localRelations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1567
+ foreignRelations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1334
1568
  }, "strip", z.ZodTypeAny, {
1335
1569
  enabled: boolean;
1336
1570
  fields: string[];
@@ -1345,7 +1579,7 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1345
1579
  queries: z.ZodDefault<z.ZodObject<{
1346
1580
  get: z.ZodOptional<z.ZodObject<{
1347
1581
  enabled: z.ZodOptional<z.ZodBoolean>;
1348
- roles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1582
+ roles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1349
1583
  }, "strip", z.ZodTypeAny, {
1350
1584
  enabled?: boolean | undefined;
1351
1585
  roles?: string[] | undefined;
@@ -1355,7 +1589,7 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1355
1589
  }>>;
1356
1590
  list: z.ZodOptional<z.ZodObject<{
1357
1591
  enabled: z.ZodOptional<z.ZodBoolean>;
1358
- roles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1592
+ roles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1359
1593
  }, "strip", z.ZodTypeAny, {
1360
1594
  enabled?: boolean | undefined;
1361
1595
  roles?: string[] | undefined;
@@ -1385,7 +1619,7 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1385
1619
  mutations: z.ZodDefault<z.ZodObject<{
1386
1620
  create: z.ZodDefault<z.ZodObject<{
1387
1621
  enabled: z.ZodOptional<z.ZodBoolean>;
1388
- roles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1622
+ roles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1389
1623
  }, "strip", z.ZodTypeAny, {
1390
1624
  enabled?: boolean | undefined;
1391
1625
  roles?: string[] | undefined;
@@ -1395,7 +1629,7 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1395
1629
  }>>;
1396
1630
  update: z.ZodDefault<z.ZodObject<{
1397
1631
  enabled: z.ZodOptional<z.ZodBoolean>;
1398
- roles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1632
+ roles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1399
1633
  }, "strip", z.ZodTypeAny, {
1400
1634
  enabled?: boolean | undefined;
1401
1635
  roles?: string[] | undefined;
@@ -1405,7 +1639,7 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1405
1639
  }>>;
1406
1640
  delete: z.ZodDefault<z.ZodObject<{
1407
1641
  enabled: z.ZodOptional<z.ZodBoolean>;
1408
- roles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1642
+ roles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1409
1643
  }, "strip", z.ZodTypeAny, {
1410
1644
  enabled?: boolean | undefined;
1411
1645
  roles?: string[] | undefined;
@@ -1503,11 +1737,10 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1503
1737
  } | undefined;
1504
1738
  } | undefined;
1505
1739
  }>>;
1506
- } & {
1507
- id: z.ZodType<string, z.ZodAnyDef, string>;
1508
1740
  }, "strip", z.ZodTypeAny, {
1509
1741
  name: string;
1510
1742
  id: string;
1743
+ featureRef: string;
1511
1744
  model: {
1512
1745
  fields: {
1513
1746
  options: {
@@ -1544,7 +1777,6 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1544
1777
  }[];
1545
1778
  }[] | undefined;
1546
1779
  };
1547
- featureRef: string;
1548
1780
  service: {
1549
1781
  delete: {
1550
1782
  enabled: boolean;
@@ -1599,6 +1831,7 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1599
1831
  }, {
1600
1832
  name: string;
1601
1833
  id: string;
1834
+ featureRef: string;
1602
1835
  model: {
1603
1836
  fields: {
1604
1837
  type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
@@ -1635,7 +1868,6 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1635
1868
  }[];
1636
1869
  }[] | undefined;
1637
1870
  };
1638
- featureRef: string;
1639
1871
  service?: {
1640
1872
  delete?: {
1641
1873
  enabled?: boolean | undefined;
@@ -1650,10 +1882,192 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1650
1882
  fields?: string[] | undefined;
1651
1883
  transformerNames?: string[] | undefined;
1652
1884
  } | undefined;
1653
- transformers?: {
1885
+ transformers?: z.objectInputType<{
1886
+ readonly id: z.ZodString;
1887
+ readonly type: z.ZodString;
1888
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
1889
+ } | undefined;
1890
+ graphql?: {
1891
+ objectType?: {
1892
+ fields: string[];
1893
+ enabled?: boolean | undefined;
1894
+ localRelations?: string[] | undefined;
1895
+ foreignRelations?: string[] | undefined;
1896
+ } | undefined;
1897
+ queries?: {
1898
+ get?: {
1899
+ enabled?: boolean | undefined;
1900
+ roles?: string[] | undefined;
1901
+ } | undefined;
1902
+ list?: {
1903
+ enabled?: boolean | undefined;
1904
+ roles?: string[] | undefined;
1905
+ } | undefined;
1906
+ } | undefined;
1907
+ mutations?: {
1908
+ delete?: {
1909
+ enabled?: boolean | undefined;
1910
+ roles?: string[] | undefined;
1911
+ } | undefined;
1912
+ create?: {
1913
+ enabled?: boolean | undefined;
1914
+ roles?: string[] | undefined;
1915
+ } | undefined;
1916
+ update?: {
1917
+ enabled?: boolean | undefined;
1918
+ roles?: string[] | undefined;
1919
+ } | undefined;
1920
+ } | undefined;
1921
+ } | undefined;
1922
+ }>, {
1923
+ name: string;
1924
+ id: string;
1925
+ featureRef: string;
1926
+ model: {
1927
+ fields: {
1928
+ options: {
1929
+ defaultEnumValueRef?: string | undefined;
1930
+ default: string;
1931
+ genUuid?: boolean | undefined;
1932
+ updatedAt?: boolean | undefined;
1933
+ defaultToNow?: boolean | undefined;
1934
+ enumRef?: string | undefined;
1935
+ };
1936
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1937
+ name: string;
1938
+ id: string;
1939
+ isOptional: boolean;
1940
+ }[];
1941
+ primaryKeyFieldRefs: string[];
1942
+ relations?: {
1943
+ name: string;
1944
+ id: string;
1945
+ onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
1946
+ references: {
1947
+ localRef: string;
1948
+ foreignRef: string;
1949
+ }[];
1950
+ modelRef: string;
1951
+ foreignId: string;
1952
+ foreignRelationName: string;
1953
+ onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
1954
+ }[] | undefined;
1955
+ uniqueConstraints?: {
1956
+ id: string;
1957
+ fields: {
1958
+ fieldRef: string;
1959
+ }[];
1960
+ }[] | undefined;
1961
+ };
1962
+ service: {
1963
+ delete: {
1964
+ enabled: boolean;
1965
+ };
1966
+ create: {
1967
+ enabled: boolean;
1968
+ fields?: string[] | undefined;
1969
+ transformerNames?: string[] | undefined;
1970
+ };
1971
+ update: {
1972
+ enabled: boolean;
1973
+ fields?: string[] | undefined;
1974
+ transformerNames?: string[] | undefined;
1975
+ };
1976
+ transformers: {
1654
1977
  type: string;
1655
1978
  id: string;
1979
+ }[];
1980
+ };
1981
+ graphql?: {
1982
+ objectType: {
1983
+ enabled: boolean;
1984
+ fields: string[];
1985
+ localRelations?: string[] | undefined;
1986
+ foreignRelations?: string[] | undefined;
1987
+ };
1988
+ queries: {
1989
+ get?: {
1990
+ enabled?: boolean | undefined;
1991
+ roles?: string[] | undefined;
1992
+ } | undefined;
1993
+ list?: {
1994
+ enabled?: boolean | undefined;
1995
+ roles?: string[] | undefined;
1996
+ } | undefined;
1997
+ };
1998
+ mutations: {
1999
+ delete: {
2000
+ enabled?: boolean | undefined;
2001
+ roles?: string[] | undefined;
2002
+ };
2003
+ create: {
2004
+ enabled?: boolean | undefined;
2005
+ roles?: string[] | undefined;
2006
+ };
2007
+ update: {
2008
+ enabled?: boolean | undefined;
2009
+ roles?: string[] | undefined;
2010
+ };
2011
+ };
2012
+ } | undefined;
2013
+ }, {
2014
+ name: string;
2015
+ id: string;
2016
+ featureRef: string;
2017
+ model: {
2018
+ fields: {
2019
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
2020
+ name: string;
2021
+ id: string;
2022
+ options?: {
2023
+ default?: string | undefined;
2024
+ genUuid?: boolean | undefined;
2025
+ updatedAt?: boolean | undefined;
2026
+ defaultToNow?: boolean | undefined;
2027
+ enumRef?: string | undefined;
2028
+ defaultEnumValueRef?: string | undefined;
2029
+ } | undefined;
2030
+ isOptional?: boolean | undefined;
2031
+ }[];
2032
+ primaryKeyFieldRefs: string[];
2033
+ relations?: {
2034
+ name: string;
2035
+ id: string;
2036
+ references: {
2037
+ localRef: string;
2038
+ foreignRef: string;
2039
+ }[];
2040
+ modelRef: string;
2041
+ foreignRelationName: string;
2042
+ onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
2043
+ foreignId?: string | undefined;
2044
+ onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
2045
+ }[] | undefined;
2046
+ uniqueConstraints?: {
2047
+ id: string;
2048
+ fields: {
2049
+ fieldRef: string;
2050
+ }[];
1656
2051
  }[] | undefined;
2052
+ };
2053
+ service?: {
2054
+ delete?: {
2055
+ enabled?: boolean | undefined;
2056
+ } | undefined;
2057
+ create?: {
2058
+ enabled?: boolean | undefined;
2059
+ fields?: string[] | undefined;
2060
+ transformerNames?: string[] | undefined;
2061
+ } | undefined;
2062
+ update?: {
2063
+ enabled?: boolean | undefined;
2064
+ fields?: string[] | undefined;
2065
+ transformerNames?: string[] | undefined;
2066
+ } | undefined;
2067
+ transformers?: z.objectInputType<{
2068
+ readonly id: z.ZodString;
2069
+ readonly type: z.ZodString;
2070
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
1657
2071
  } | undefined;
1658
2072
  graphql?: {
1659
2073
  objectType?: {
@@ -1687,7 +2101,7 @@ export declare const createModelSchema: (options: import("#src/schema/creator/in
1687
2101
  } | undefined;
1688
2102
  } | undefined;
1689
2103
  } | undefined;
1690
- }>>;
2104
+ }>;
1691
2105
  export type ModelConfig = def.InferOutput<typeof createModelSchema>;
1692
2106
  export type ModelConfigInput = def.InferInput<typeof createModelSchema>;
1693
2107
  //# sourceMappingURL=index.d.ts.map