@baseplate-dev/project-builder-lib 0.4.0 → 0.4.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 (215) hide show
  1. package/dist/definition/model/model-field-utils.d.ts.map +1 -1
  2. package/dist/definition/model/model-field-utils.js +3 -7
  3. package/dist/definition/model/model-field-utils.js.map +1 -1
  4. package/dist/definition/plugins/plugin-utils.d.ts +3 -2
  5. package/dist/definition/plugins/plugin-utils.d.ts.map +1 -1
  6. package/dist/definition/plugins/plugin-utils.js +15 -6
  7. package/dist/definition/plugins/plugin-utils.js.map +1 -1
  8. package/dist/definition/project-definition-container.test-utils.d.ts.map +1 -1
  9. package/dist/definition/project-definition-container.test-utils.js +2 -2
  10. package/dist/definition/project-definition-container.test-utils.js.map +1 -1
  11. package/dist/migrations/index.d.ts.map +1 -1
  12. package/dist/migrations/index.js +2 -0
  13. package/dist/migrations/index.js.map +1 -1
  14. package/dist/migrations/migration-021-migrate-bullmq-to-plugin.d.ts +42 -0
  15. package/dist/migrations/migration-021-migrate-bullmq-to-plugin.d.ts.map +1 -0
  16. package/dist/migrations/migration-021-migrate-bullmq-to-plugin.js +76 -0
  17. package/dist/migrations/migration-021-migrate-bullmq-to-plugin.js.map +1 -0
  18. package/dist/parser/parser.d.ts.map +1 -1
  19. package/dist/parser/parser.js +1 -0
  20. package/dist/parser/parser.js.map +1 -1
  21. package/dist/plugins/metadata/types.d.ts +7 -126
  22. package/dist/plugins/metadata/types.d.ts.map +1 -1
  23. package/dist/plugins/plugins.test-utils.d.ts +0 -8
  24. package/dist/plugins/plugins.test-utils.d.ts.map +1 -1
  25. package/dist/plugins/plugins.test-utils.js +0 -19
  26. package/dist/plugins/plugins.test-utils.js.map +1 -1
  27. package/dist/references/collect-refs.d.ts +20 -0
  28. package/dist/references/collect-refs.d.ts.map +1 -0
  29. package/dist/references/collect-refs.js +67 -0
  30. package/dist/references/collect-refs.js.map +1 -0
  31. package/dist/references/definition-ref-builder.d.ts +24 -154
  32. package/dist/references/definition-ref-builder.d.ts.map +1 -1
  33. package/dist/references/definition-ref-builder.js +0 -207
  34. package/dist/references/definition-ref-builder.js.map +1 -1
  35. package/dist/references/deserialize-schema.d.ts +2 -2
  36. package/dist/references/deserialize-schema.d.ts.map +1 -1
  37. package/dist/references/deserialize-schema.js +3 -0
  38. package/dist/references/deserialize-schema.js.map +1 -1
  39. package/dist/references/extend-parser-context-with-refs.d.ts +12 -7
  40. package/dist/references/extend-parser-context-with-refs.d.ts.map +1 -1
  41. package/dist/references/extend-parser-context-with-refs.js +111 -58
  42. package/dist/references/extend-parser-context-with-refs.js.map +1 -1
  43. package/dist/references/extract-definition-refs.d.ts +20 -13
  44. package/dist/references/extract-definition-refs.d.ts.map +1 -1
  45. package/dist/references/extract-definition-refs.js +50 -58
  46. package/dist/references/extract-definition-refs.js.map +1 -1
  47. package/dist/references/fix-ref-deletions.js.map +1 -1
  48. package/dist/references/index.d.ts +1 -0
  49. package/dist/references/index.d.ts.map +1 -1
  50. package/dist/references/index.js +1 -0
  51. package/dist/references/index.js.map +1 -1
  52. package/dist/references/markers.d.ts +28 -14
  53. package/dist/references/markers.d.ts.map +1 -1
  54. package/dist/references/markers.js.map +1 -1
  55. package/dist/references/parse-schema-with-references.d.ts.map +1 -1
  56. package/dist/references/parse-schema-with-references.js +0 -2
  57. package/dist/references/parse-schema-with-references.js.map +1 -1
  58. package/dist/references/ref-context-slot.d.ts +84 -0
  59. package/dist/references/ref-context-slot.d.ts.map +1 -0
  60. package/dist/references/ref-context-slot.js +38 -0
  61. package/dist/references/ref-context-slot.js.map +1 -0
  62. package/dist/references/resolve-slots.d.ts +38 -0
  63. package/dist/references/resolve-slots.d.ts.map +1 -0
  64. package/dist/references/resolve-slots.js +86 -0
  65. package/dist/references/resolve-slots.js.map +1 -0
  66. package/dist/references/resolve-zod-ref-payload-names.d.ts +2 -2
  67. package/dist/references/resolve-zod-ref-payload-names.d.ts.map +1 -1
  68. package/dist/references/resolve-zod-ref-payload-names.js +18 -7
  69. package/dist/references/resolve-zod-ref-payload-names.js.map +1 -1
  70. package/dist/references/serialize-schema.d.ts +1 -1
  71. package/dist/references/serialize-schema.d.ts.map +1 -1
  72. package/dist/references/serialize-schema.js +3 -1
  73. package/dist/references/serialize-schema.js.map +1 -1
  74. package/dist/references/types.d.ts +5 -6
  75. package/dist/references/types.d.ts.map +1 -1
  76. package/dist/schema/apps/backend/index.d.ts +4 -22
  77. package/dist/schema/apps/backend/index.d.ts.map +1 -1
  78. package/dist/schema/apps/backend/index.js +3 -4
  79. package/dist/schema/apps/backend/index.js.map +1 -1
  80. package/dist/schema/apps/base.d.ts +4 -12
  81. package/dist/schema/apps/base.d.ts.map +1 -1
  82. package/dist/schema/apps/web/admin/admin.d.ts +270 -1699
  83. package/dist/schema/apps/web/admin/admin.d.ts.map +1 -1
  84. package/dist/schema/apps/web/admin/admin.js +9 -10
  85. package/dist/schema/apps/web/admin/admin.js.map +1 -1
  86. package/dist/schema/apps/web/admin/sections/base.d.ts +2 -14
  87. package/dist/schema/apps/web/admin/sections/base.d.ts.map +1 -1
  88. package/dist/schema/apps/web/admin/sections/crud-actions/admin-action-spec.d.ts +2 -2
  89. package/dist/schema/apps/web/admin/sections/crud-actions/admin-action-spec.d.ts.map +1 -1
  90. package/dist/schema/apps/web/admin/sections/crud-actions/admin-action-spec.js.map +1 -1
  91. package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.d.ts +13 -24
  92. package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.d.ts.map +1 -1
  93. package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.js +10 -19
  94. package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.js.map +1 -1
  95. package/dist/schema/apps/web/admin/sections/crud-actions/built-in-actions.d.ts +10 -22
  96. package/dist/schema/apps/web/admin/sections/crud-actions/built-in-actions.d.ts.map +1 -1
  97. package/dist/schema/apps/web/admin/sections/crud-actions/types.d.ts +8 -12
  98. package/dist/schema/apps/web/admin/sections/crud-actions/types.d.ts.map +1 -1
  99. package/dist/schema/apps/web/admin/sections/crud-actions/types.js +1 -1
  100. package/dist/schema/apps/web/admin/sections/crud-actions/types.js.map +1 -1
  101. package/dist/schema/apps/web/admin/sections/crud-columns/admin-column-spec.d.ts +2 -3
  102. package/dist/schema/apps/web/admin/sections/crud-columns/admin-column-spec.d.ts.map +1 -1
  103. package/dist/schema/apps/web/admin/sections/crud-columns/admin-column-spec.js.map +1 -1
  104. package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.d.ts +11 -23
  105. package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.d.ts.map +1 -1
  106. package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.js +12 -20
  107. package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.js.map +1 -1
  108. package/dist/schema/apps/web/admin/sections/crud-columns/built-in-columns.d.ts +8 -30
  109. package/dist/schema/apps/web/admin/sections/crud-columns/built-in-columns.d.ts.map +1 -1
  110. package/dist/schema/apps/web/admin/sections/crud-columns/built-in-columns.js +6 -6
  111. package/dist/schema/apps/web/admin/sections/crud-columns/built-in-columns.js.map +1 -1
  112. package/dist/schema/apps/web/admin/sections/crud-columns/types.d.ts +15 -12
  113. package/dist/schema/apps/web/admin/sections/crud-columns/types.d.ts.map +1 -1
  114. package/dist/schema/apps/web/admin/sections/crud-columns/types.js +1 -1
  115. package/dist/schema/apps/web/admin/sections/crud-columns/types.js.map +1 -1
  116. package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.d.ts +12 -23
  117. package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.d.ts.map +1 -1
  118. package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.js +13 -20
  119. package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.js.map +1 -1
  120. package/dist/schema/apps/web/admin/sections/crud-form/admin-input-spec.d.ts +2 -3
  121. package/dist/schema/apps/web/admin/sections/crud-form/admin-input-spec.d.ts.map +1 -1
  122. package/dist/schema/apps/web/admin/sections/crud-form/admin-input-spec.js.map +1 -1
  123. package/dist/schema/apps/web/admin/sections/crud-form/built-in-input.d.ts +40 -123
  124. package/dist/schema/apps/web/admin/sections/crud-form/built-in-input.d.ts.map +1 -1
  125. package/dist/schema/apps/web/admin/sections/crud-form/built-in-input.js +15 -14
  126. package/dist/schema/apps/web/admin/sections/crud-form/built-in-input.js.map +1 -1
  127. package/dist/schema/apps/web/admin/sections/crud-form/types.d.ts +17 -12
  128. package/dist/schema/apps/web/admin/sections/crud-form/types.d.ts.map +1 -1
  129. package/dist/schema/apps/web/admin/sections/crud-form/types.js +1 -1
  130. package/dist/schema/apps/web/admin/sections/crud-form/types.js.map +1 -1
  131. package/dist/schema/apps/web/admin/sections/crud.d.ts +202 -930
  132. package/dist/schema/apps/web/admin/sections/crud.d.ts.map +1 -1
  133. package/dist/schema/apps/web/admin/sections/crud.js +32 -26
  134. package/dist/schema/apps/web/admin/sections/crud.js.map +1 -1
  135. package/dist/schema/apps/web/web-app.d.ts +196 -1257
  136. package/dist/schema/apps/web/web-app.d.ts.map +1 -1
  137. package/dist/schema/apps/web/web-app.js +4 -4
  138. package/dist/schema/apps/web/web-app.js.map +1 -1
  139. package/dist/schema/creator/extend-parser-context-with-defaults.d.ts +2 -2
  140. package/dist/schema/creator/extend-parser-context-with-defaults.d.ts.map +1 -1
  141. package/dist/schema/creator/extend-parser-context-with-defaults.js +8 -15
  142. package/dist/schema/creator/extend-parser-context-with-defaults.js.map +1 -1
  143. package/dist/schema/creator/infer-types.d.ts +21 -4
  144. package/dist/schema/creator/infer-types.d.ts.map +1 -1
  145. package/dist/schema/creator/schema-creator.d.ts +46 -2
  146. package/dist/schema/creator/schema-creator.d.ts.map +1 -1
  147. package/dist/schema/creator/schema-creator.js +53 -0
  148. package/dist/schema/creator/schema-creator.js.map +1 -1
  149. package/dist/schema/creator/types.d.ts +11 -6
  150. package/dist/schema/creator/types.d.ts.map +1 -1
  151. package/dist/schema/features/feature.d.ts +14 -22
  152. package/dist/schema/features/feature.d.ts.map +1 -1
  153. package/dist/schema/models/enums.d.ts +34 -84
  154. package/dist/schema/models/enums.d.ts.map +1 -1
  155. package/dist/schema/models/enums.js +8 -8
  156. package/dist/schema/models/enums.js.map +1 -1
  157. package/dist/schema/models/graphql.d.ts +16 -163
  158. package/dist/schema/models/graphql.d.ts.map +1 -1
  159. package/dist/schema/models/graphql.js +8 -6
  160. package/dist/schema/models/graphql.js.map +1 -1
  161. package/dist/schema/models/index.d.ts +293 -1827
  162. package/dist/schema/models/index.d.ts.map +1 -1
  163. package/dist/schema/models/index.js +53 -54
  164. package/dist/schema/models/index.js.map +1 -1
  165. package/dist/schema/models/transformers/built-in-transformers.d.ts +20 -58
  166. package/dist/schema/models/transformers/built-in-transformers.d.ts.map +1 -1
  167. package/dist/schema/models/transformers/built-in-transformers.js +8 -9
  168. package/dist/schema/models/transformers/built-in-transformers.js.map +1 -1
  169. package/dist/schema/models/transformers/model-transformer-spec.d.ts +3 -4
  170. package/dist/schema/models/transformers/model-transformer-spec.d.ts.map +1 -1
  171. package/dist/schema/models/transformers/model-transformer-spec.js +3 -4
  172. package/dist/schema/models/transformers/model-transformer-spec.js.map +1 -1
  173. package/dist/schema/models/transformers/transformers.d.ts +7 -16
  174. package/dist/schema/models/transformers/transformers.d.ts.map +1 -1
  175. package/dist/schema/models/transformers/transformers.js +8 -13
  176. package/dist/schema/models/transformers/transformers.js.map +1 -1
  177. package/dist/schema/models/transformers/types.d.ts +14 -10
  178. package/dist/schema/models/transformers/types.d.ts.map +1 -1
  179. package/dist/schema/models/transformers/types.js +1 -1
  180. package/dist/schema/models/transformers/types.js.map +1 -1
  181. package/dist/schema/plugins/definition.d.ts +67 -95
  182. package/dist/schema/plugins/definition.d.ts.map +1 -1
  183. package/dist/schema/plugins/definition.js +8 -11
  184. package/dist/schema/plugins/definition.js.map +1 -1
  185. package/dist/schema/project-definition.d.ts +869 -4669
  186. package/dist/schema/project-definition.d.ts.map +1 -1
  187. package/dist/schema/project-definition.js +7 -9
  188. package/dist/schema/project-definition.js.map +1 -1
  189. package/dist/schema/settings/general.d.ts +3 -33
  190. package/dist/schema/settings/general.d.ts.map +1 -1
  191. package/dist/schema/settings/infrastructure.d.ts +2 -24
  192. package/dist/schema/settings/infrastructure.d.ts.map +1 -1
  193. package/dist/schema/settings/monorepo.d.ts +1 -15
  194. package/dist/schema/settings/monorepo.d.ts.map +1 -1
  195. package/dist/schema/settings/settings.d.ts +105 -242
  196. package/dist/schema/settings/settings.d.ts.map +1 -1
  197. package/dist/schema/settings/template-extractor.d.ts +1 -36
  198. package/dist/schema/settings/template-extractor.d.ts.map +1 -1
  199. package/dist/schema/settings/theme.d.ts +175 -259
  200. package/dist/schema/settings/theme.d.ts.map +1 -1
  201. package/dist/schema/settings/theme.js +1 -1
  202. package/dist/schema/settings/theme.js.map +1 -1
  203. package/dist/tools/model-merger/model-merger.d.ts +28 -28
  204. package/dist/tools/model-merger/model-merger.d.ts.map +1 -1
  205. package/dist/tools/model-merger/model-merger.js +5 -2
  206. package/dist/tools/model-merger/model-merger.js.map +1 -1
  207. package/dist/utils/theme.d.ts.map +1 -1
  208. package/dist/utils/theme.js +3 -4
  209. package/dist/utils/theme.js.map +1 -1
  210. package/dist/web/hooks/use-definition-schema.d.ts +9 -2
  211. package/dist/web/hooks/use-definition-schema.d.ts.map +1 -1
  212. package/dist/web/hooks/use-definition-schema.js +7 -1
  213. package/dist/web/hooks/use-definition-schema.js.map +1 -1
  214. package/package.json +7 -7
  215. package/dist/index.js.map +0 -1
@@ -4,62 +4,11 @@ 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: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
8
- id: z.ZodString;
9
- name: z.ZodString;
10
- type: z.ZodEnum<["string", "uuid", "int", "boolean", "dateTime", "float", "decimal", "json", "date", "enum"]>;
11
- isOptional: z.ZodDefault<z.ZodBoolean>;
12
- options: z.ZodEffects<z.ZodDefault<z.ZodEffects<z.ZodObject<{
13
- default: z.ZodDefault<z.ZodString>;
14
- genUuid: z.ZodOptional<z.ZodBoolean>;
15
- updatedAt: z.ZodOptional<z.ZodBoolean>;
16
- defaultToNow: z.ZodOptional<z.ZodBoolean>;
17
- enumRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
18
- defaultEnumValueRef: z.ZodOptional<z.ZodString>;
19
- }, "strip", z.ZodTypeAny, {
20
- default: string;
21
- genUuid?: boolean | undefined;
22
- updatedAt?: boolean | undefined;
23
- defaultToNow?: boolean | undefined;
24
- enumRef?: string | undefined;
25
- defaultEnumValueRef?: string | undefined;
26
- }, {
27
- default?: string | undefined;
28
- genUuid?: boolean | undefined;
29
- updatedAt?: boolean | undefined;
30
- defaultToNow?: boolean | undefined;
31
- enumRef?: string | undefined;
32
- defaultEnumValueRef?: string | undefined;
33
- }>, {
34
- defaultEnumValueRef?: string | undefined;
35
- default: string;
36
- genUuid?: boolean | undefined;
37
- updatedAt?: boolean | undefined;
38
- defaultToNow?: boolean | undefined;
39
- enumRef?: string | undefined;
40
- }, {
41
- default?: string | undefined;
42
- genUuid?: boolean | undefined;
43
- updatedAt?: boolean | undefined;
44
- defaultToNow?: boolean | undefined;
45
- enumRef?: string | undefined;
46
- defaultEnumValueRef?: string | undefined;
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>;
62
- }, "strip", z.ZodTypeAny, {
7
+ export declare const createModelScalarFieldSchema: import("#src/schema/creator/index.js").DefinitionSchemaCreatorWithSlots<z.ZodPipe<z.ZodType<{
8
+ id: string;
9
+ name: string;
10
+ type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
11
+ isOptional: boolean;
63
12
  options: {
64
13
  defaultEnumValueRef?: string | undefined;
65
14
  default: string;
@@ -68,14 +17,11 @@ export declare const createModelScalarFieldSchema: (context: import("#src/schema
68
17
  defaultToNow?: boolean | undefined;
69
18
  enumRef?: string | undefined;
70
19
  };
71
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
72
- name: string;
73
- id: string;
74
- isOptional: boolean;
75
20
  }, {
76
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
77
- name: string;
78
21
  id: string;
22
+ name: string;
23
+ type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
24
+ isOptional?: boolean | undefined;
79
25
  options?: {
80
26
  default?: string | undefined;
81
27
  genUuid?: boolean | undefined;
@@ -84,8 +30,11 @@ export declare const createModelScalarFieldSchema: (context: import("#src/schema
84
30
  enumRef?: string | undefined;
85
31
  defaultEnumValueRef?: string | undefined;
86
32
  } | undefined;
87
- isOptional?: boolean | undefined;
88
- }>, {
33
+ }, z.core.$ZodTypeInternals<{
34
+ id: string;
35
+ name: string;
36
+ type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
37
+ isOptional: boolean;
89
38
  options: {
90
39
  defaultEnumValueRef?: string | undefined;
91
40
  default: string;
@@ -94,14 +43,11 @@ export declare const createModelScalarFieldSchema: (context: import("#src/schema
94
43
  defaultToNow?: boolean | undefined;
95
44
  enumRef?: string | undefined;
96
45
  };
97
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
98
- name: string;
99
- id: string;
100
- isOptional: boolean;
101
46
  }, {
102
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
103
- name: string;
104
47
  id: string;
48
+ name: string;
49
+ type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
50
+ isOptional?: boolean | undefined;
105
51
  options?: {
106
52
  default?: string | undefined;
107
53
  genUuid?: boolean | undefined;
@@ -110,8 +56,11 @@ export declare const createModelScalarFieldSchema: (context: import("#src/schema
110
56
  enumRef?: string | undefined;
111
57
  defaultEnumValueRef?: string | undefined;
112
58
  } | undefined;
113
- isOptional?: boolean | undefined;
114
- }>, {
59
+ }>>, z.ZodTransform<{
60
+ id: string;
61
+ name: string;
62
+ type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
63
+ isOptional: boolean;
115
64
  options: {
116
65
  defaultEnumValueRef?: string | undefined;
117
66
  default: string;
@@ -120,24 +69,11 @@ export declare const createModelScalarFieldSchema: (context: import("#src/schema
120
69
  defaultToNow?: boolean | undefined;
121
70
  enumRef?: string | undefined;
122
71
  };
123
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
124
- name: string;
125
- id: string;
126
- isOptional: boolean;
127
72
  }, {
128
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
129
- name: string;
130
73
  id: string;
131
- options?: {
132
- default?: string | undefined;
133
- genUuid?: boolean | undefined;
134
- updatedAt?: boolean | undefined;
135
- defaultToNow?: boolean | undefined;
136
- enumRef?: string | undefined;
137
- defaultEnumValueRef?: string | undefined;
138
- } | undefined;
139
- isOptional?: boolean | undefined;
140
- }>, {
74
+ name: string;
75
+ type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
76
+ isOptional: boolean;
141
77
  options: {
142
78
  defaultEnumValueRef?: string | undefined;
143
79
  default: string;
@@ -146,106 +82,66 @@ export declare const createModelScalarFieldSchema: (context: import("#src/schema
146
82
  defaultToNow?: boolean | undefined;
147
83
  enumRef?: string | undefined;
148
84
  };
149
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
150
- name: string;
151
- id: string;
152
- isOptional: boolean;
153
- }, {
154
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
155
- name: string;
156
- id: string;
157
- options?: {
158
- default?: string | undefined;
159
- genUuid?: boolean | undefined;
160
- updatedAt?: boolean | undefined;
161
- defaultToNow?: boolean | undefined;
162
- enumRef?: string | undefined;
163
- defaultEnumValueRef?: string | undefined;
164
- } | undefined;
165
- isOptional?: boolean | undefined;
85
+ }>>, {
86
+ modelSlot: import("#src/references/index.js").DefinitionEntityType<false>;
166
87
  }>;
167
88
  export type ModelScalarFieldConfig = def.InferOutput<typeof createModelScalarFieldSchema>;
168
89
  export type ModelScalarFieldConfigInput = def.InferInput<typeof createModelScalarFieldSchema>;
169
90
  export declare const REFERENTIAL_ACTIONS: readonly ["Cascade", "Restrict", "NoAction", "SetNull", "SetDefault"];
170
- export declare const createModelRelationFieldSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodEffects<z.ZodObject<{
171
- id: z.ZodString;
172
- foreignId: z.ZodDefault<z.ZodString>;
173
- name: z.ZodString;
174
- references: z.ZodArray<z.ZodObject<{
175
- localRef: z.ZodEffects<z.ZodString, string, string>;
176
- foreignRef: z.ZodEffects<z.ZodString, string, string>;
177
- }, "strip", z.ZodTypeAny, {
178
- localRef: string;
179
- foreignRef: string;
180
- }, {
181
- localRef: string;
182
- foreignRef: string;
183
- }>, "many">;
184
- modelRef: z.ZodString;
185
- foreignRelationName: z.ZodString;
186
- onDelete: z.ZodDefault<z.ZodEnum<["Cascade", "Restrict", "NoAction", "SetNull", "SetDefault"]>>;
187
- onUpdate: z.ZodDefault<z.ZodEnum<["Cascade", "Restrict", "NoAction", "SetNull", "SetDefault"]>>;
188
- }, "strip", z.ZodTypeAny, {
189
- name: string;
91
+ export declare const createModelRelationFieldSchema: import("#src/schema/creator/index.js").DefinitionSchemaCreatorWithSlots<z.ZodType<{
190
92
  id: string;
191
- onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
93
+ foreignId: string;
94
+ name: string;
192
95
  references: {
193
96
  localRef: string;
194
97
  foreignRef: string;
195
98
  }[];
196
99
  modelRef: string;
197
- foreignId: string;
198
100
  foreignRelationName: string;
101
+ onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
199
102
  onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
200
103
  }, {
201
- name: string;
202
104
  id: string;
105
+ name: string;
203
106
  references: {
204
107
  localRef: string;
205
108
  foreignRef: string;
206
109
  }[];
207
110
  modelRef: string;
208
111
  foreignRelationName: string;
209
- onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
210
112
  foreignId?: string | undefined;
113
+ onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
211
114
  onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
212
- }>, {
213
- name: string;
115
+ }, z.core.$ZodTypeInternals<{
214
116
  id: string;
215
- onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
117
+ foreignId: string;
118
+ name: string;
216
119
  references: {
217
120
  localRef: string;
218
121
  foreignRef: string;
219
122
  }[];
220
123
  modelRef: string;
221
- foreignId: string;
222
124
  foreignRelationName: string;
125
+ onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
223
126
  onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
224
127
  }, {
225
- name: string;
226
128
  id: string;
129
+ name: string;
227
130
  references: {
228
131
  localRef: string;
229
132
  foreignRef: string;
230
133
  }[];
231
134
  modelRef: string;
232
135
  foreignRelationName: string;
233
- onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
234
136
  foreignId?: string | undefined;
137
+ onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
235
138
  onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
139
+ }>>, {
140
+ modelSlot: import("#src/references/index.js").DefinitionEntityType<false>;
236
141
  }>;
237
142
  export type ModelRelationFieldConfig = def.InferOutput<typeof createModelRelationFieldSchema>;
238
143
  export type ModelRelationFieldConfigInput = def.InferInput<typeof createModelRelationFieldSchema>;
239
- export declare const createModelUniqueConstraintSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodEffects<z.ZodObject<{
240
- id: z.ZodString;
241
- fields: z.ZodArray<z.ZodObject<{
242
- fieldRef: z.ZodEffects<z.ZodString, string, string>;
243
- }, "strip", z.ZodTypeAny, {
244
- fieldRef: string;
245
- }, {
246
- fieldRef: string;
247
- }>, "many">;
248
- }, "strip", z.ZodTypeAny, {
144
+ export declare const createModelUniqueConstraintSchema: import("#src/schema/creator/index.js").DefinitionSchemaCreatorWithSlots<z.ZodType<{
249
145
  id: string;
250
146
  fields: {
251
147
  fieldRef: string;
@@ -255,7 +151,7 @@ export declare const createModelUniqueConstraintSchema: (context: import("#src/s
255
151
  fields: {
256
152
  fieldRef: string;
257
153
  }[];
258
- }>, {
154
+ }, z.core.$ZodTypeInternals<{
259
155
  id: string;
260
156
  fields: {
261
157
  fieldRef: string;
@@ -265,184 +161,43 @@ export declare const createModelUniqueConstraintSchema: (context: import("#src/s
265
161
  fields: {
266
162
  fieldRef: string;
267
163
  }[];
164
+ }>>, {
165
+ modelSlot: import("#src/references/index.js").DefinitionEntityType<false>;
268
166
  }>;
269
167
  export type ModelUniqueConstraintConfig = def.InferOutput<typeof createModelUniqueConstraintSchema>;
270
168
  export type ModelUniqueConstraintConfigInput = def.InferInput<typeof createModelUniqueConstraintSchema>;
271
- export declare const createModelServiceSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
169
+ export declare const createModelServiceSchema: import("#src/schema/creator/index.js").DefinitionSchemaCreatorWithSlots<z.ZodObject<{
272
170
  create: z.ZodDefault<z.ZodObject<{
273
171
  enabled: z.ZodDefault<z.ZodBoolean>;
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">>;
276
- }, "strip", z.ZodTypeAny, {
277
- enabled: boolean;
278
- fields?: string[] | undefined;
279
- transformerNames?: string[] | undefined;
280
- }, {
281
- enabled?: boolean | undefined;
282
- fields?: string[] | undefined;
283
- transformerNames?: string[] | undefined;
284
- }>>;
172
+ fields: z.ZodOptional<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
173
+ transformerNames: z.ZodOptional<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
174
+ }, z.core.$strip>>;
285
175
  update: z.ZodDefault<z.ZodObject<{
286
176
  enabled: z.ZodDefault<z.ZodBoolean>;
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">>;
289
- }, "strip", z.ZodTypeAny, {
290
- enabled: boolean;
291
- fields?: string[] | undefined;
292
- transformerNames?: string[] | undefined;
293
- }, {
294
- enabled?: boolean | undefined;
295
- fields?: string[] | undefined;
296
- transformerNames?: string[] | undefined;
297
- }>>;
177
+ fields: z.ZodOptional<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
178
+ transformerNames: z.ZodOptional<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
179
+ }, z.core.$strip>>;
298
180
  delete: z.ZodDefault<z.ZodObject<{
299
181
  enabled: z.ZodDefault<z.ZodBoolean>;
300
- }, "strip", z.ZodTypeAny, {
301
- enabled: boolean;
302
- }, {
303
- enabled?: boolean | undefined;
304
- }>>;
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">>, {
315
- type: string;
316
- id: string;
317
- }, z.objectInputType<{
318
- readonly id: z.ZodString;
319
- readonly type: z.ZodString;
320
- }, z.ZodTypeAny, "passthrough">>, "many">>;
321
- }, "strip", z.ZodTypeAny, {
322
- delete: {
323
- enabled: boolean;
324
- };
325
- create: {
326
- enabled: boolean;
327
- fields?: string[] | undefined;
328
- transformerNames?: string[] | undefined;
329
- };
330
- update: {
331
- enabled: boolean;
332
- fields?: string[] | undefined;
333
- transformerNames?: string[] | undefined;
334
- };
335
- transformers: {
336
- type: string;
337
- id: string;
338
- }[];
339
- }, {
340
- delete?: {
341
- enabled?: boolean | undefined;
342
- } | undefined;
343
- create?: {
344
- enabled?: boolean | undefined;
345
- fields?: string[] | undefined;
346
- transformerNames?: string[] | undefined;
347
- } | undefined;
348
- update?: {
349
- enabled?: boolean | undefined;
350
- fields?: string[] | undefined;
351
- transformerNames?: string[] | undefined;
352
- } | undefined;
353
- transformers?: z.objectInputType<{
182
+ }, z.core.$strip>>;
183
+ transformers: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
354
184
  readonly id: z.ZodString;
355
185
  readonly type: z.ZodString;
356
- }, z.ZodTypeAny, "passthrough">[] | undefined;
186
+ }, z.core.$loose>], "type">>>;
187
+ }, z.core.$strip>, {
188
+ modelSlot: import("#src/references/index.js").DefinitionEntityType<false>;
357
189
  }>;
358
190
  export type ModelServiceConfig = def.InferOutput<typeof createModelServiceSchema>;
359
- export declare const createModelBaseSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
191
+ export declare const createModelBaseSchema: import("#src/schema/creator/index.js").DefinitionSchemaCreatorWithSlots<z.ZodObject<{
360
192
  id: z.ZodString;
361
193
  name: z.ZodString;
362
- featureRef: z.ZodEffects<z.ZodString, string, string>;
194
+ featureRef: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
363
195
  model: z.ZodObject<{
364
- fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
365
- id: z.ZodString;
366
- name: z.ZodString;
367
- type: z.ZodEnum<["string", "uuid", "int", "boolean", "dateTime", "float", "decimal", "json", "date", "enum"]>;
368
- isOptional: z.ZodDefault<z.ZodBoolean>;
369
- options: z.ZodEffects<z.ZodDefault<z.ZodEffects<z.ZodObject<{
370
- default: z.ZodDefault<z.ZodString>;
371
- genUuid: z.ZodOptional<z.ZodBoolean>;
372
- updatedAt: z.ZodOptional<z.ZodBoolean>;
373
- defaultToNow: z.ZodOptional<z.ZodBoolean>;
374
- enumRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
375
- defaultEnumValueRef: z.ZodOptional<z.ZodString>;
376
- }, "strip", z.ZodTypeAny, {
377
- default: string;
378
- genUuid?: boolean | undefined;
379
- updatedAt?: boolean | undefined;
380
- defaultToNow?: boolean | undefined;
381
- enumRef?: string | undefined;
382
- defaultEnumValueRef?: string | undefined;
383
- }, {
384
- default?: string | undefined;
385
- genUuid?: boolean | undefined;
386
- updatedAt?: boolean | undefined;
387
- defaultToNow?: boolean | undefined;
388
- enumRef?: string | undefined;
389
- defaultEnumValueRef?: string | undefined;
390
- }>, {
391
- defaultEnumValueRef?: string | undefined;
392
- default: string;
393
- genUuid?: boolean | undefined;
394
- updatedAt?: boolean | undefined;
395
- defaultToNow?: boolean | undefined;
396
- enumRef?: string | undefined;
397
- }, {
398
- default?: string | undefined;
399
- genUuid?: boolean | undefined;
400
- updatedAt?: boolean | undefined;
401
- defaultToNow?: boolean | undefined;
402
- enumRef?: string | undefined;
403
- defaultEnumValueRef?: string | undefined;
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>;
419
- }, "strip", z.ZodTypeAny, {
420
- options: {
421
- defaultEnumValueRef?: string | undefined;
422
- default: string;
423
- genUuid?: boolean | undefined;
424
- updatedAt?: boolean | undefined;
425
- defaultToNow?: boolean | undefined;
426
- enumRef?: string | undefined;
427
- };
428
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
429
- name: string;
196
+ fields: z.ZodArray<z.ZodPipe<z.ZodType<{
430
197
  id: string;
431
- isOptional: boolean;
432
- }, {
433
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
434
198
  name: string;
435
- id: string;
436
- options?: {
437
- default?: string | undefined;
438
- genUuid?: boolean | undefined;
439
- updatedAt?: boolean | undefined;
440
- defaultToNow?: boolean | undefined;
441
- enumRef?: string | undefined;
442
- defaultEnumValueRef?: string | undefined;
443
- } | undefined;
444
- isOptional?: boolean | undefined;
445
- }>, {
199
+ type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
200
+ isOptional: boolean;
446
201
  options: {
447
202
  defaultEnumValueRef?: string | undefined;
448
203
  default: string;
@@ -451,14 +206,11 @@ export declare const createModelBaseSchema: (context: import("#src/schema/creato
451
206
  defaultToNow?: boolean | undefined;
452
207
  enumRef?: string | undefined;
453
208
  };
454
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
455
- name: string;
456
- id: string;
457
- isOptional: boolean;
458
209
  }, {
459
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
460
- name: string;
461
210
  id: string;
211
+ name: string;
212
+ type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
213
+ isOptional?: boolean | undefined;
462
214
  options?: {
463
215
  default?: string | undefined;
464
216
  genUuid?: boolean | undefined;
@@ -467,1444 +219,151 @@ export declare const createModelBaseSchema: (context: import("#src/schema/creato
467
219
  enumRef?: string | undefined;
468
220
  defaultEnumValueRef?: string | undefined;
469
221
  } | undefined;
470
- isOptional?: boolean | undefined;
471
- }>, {
472
- options: {
473
- defaultEnumValueRef?: string | undefined;
474
- default: string;
475
- genUuid?: boolean | undefined;
476
- updatedAt?: boolean | undefined;
477
- defaultToNow?: boolean | undefined;
478
- enumRef?: string | undefined;
479
- };
480
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
481
- name: string;
222
+ }, z.core.$ZodTypeInternals<{
482
223
  id: string;
483
- isOptional: boolean;
484
- }, {
485
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
486
224
  name: string;
487
- id: string;
488
- options?: {
489
- default?: string | undefined;
490
- genUuid?: boolean | undefined;
491
- updatedAt?: boolean | undefined;
492
- defaultToNow?: boolean | undefined;
493
- enumRef?: string | undefined;
494
- defaultEnumValueRef?: string | undefined;
495
- } | undefined;
496
- isOptional?: boolean | undefined;
497
- }>, {
225
+ type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
226
+ isOptional: boolean;
498
227
  options: {
499
228
  defaultEnumValueRef?: string | undefined;
500
229
  default: string;
501
230
  genUuid?: boolean | undefined;
502
- updatedAt?: boolean | undefined;
503
- defaultToNow?: boolean | undefined;
504
- enumRef?: string | undefined;
505
- };
506
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
507
- name: string;
508
- id: string;
509
- isOptional: boolean;
510
- }, {
511
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
512
- name: string;
513
- id: string;
514
- options?: {
515
- default?: string | undefined;
516
- genUuid?: boolean | undefined;
517
- updatedAt?: boolean | undefined;
518
- defaultToNow?: boolean | undefined;
519
- enumRef?: string | undefined;
520
- defaultEnumValueRef?: string | undefined;
521
- } | undefined;
522
- isOptional?: boolean | undefined;
523
- }>, "many">;
524
- relations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
525
- id: z.ZodString;
526
- foreignId: z.ZodDefault<z.ZodString>;
527
- name: z.ZodString;
528
- references: z.ZodArray<z.ZodObject<{
529
- localRef: z.ZodEffects<z.ZodString, string, string>;
530
- foreignRef: z.ZodEffects<z.ZodString, string, string>;
531
- }, "strip", z.ZodTypeAny, {
532
- localRef: string;
533
- foreignRef: string;
534
- }, {
535
- localRef: string;
536
- foreignRef: string;
537
- }>, "many">;
538
- modelRef: z.ZodString;
539
- foreignRelationName: z.ZodString;
540
- onDelete: z.ZodDefault<z.ZodEnum<["Cascade", "Restrict", "NoAction", "SetNull", "SetDefault"]>>;
541
- onUpdate: z.ZodDefault<z.ZodEnum<["Cascade", "Restrict", "NoAction", "SetNull", "SetDefault"]>>;
542
- }, "strip", z.ZodTypeAny, {
543
- name: string;
544
- id: string;
545
- onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
546
- references: {
547
- localRef: string;
548
- foreignRef: string;
549
- }[];
550
- modelRef: string;
551
- foreignId: string;
552
- foreignRelationName: string;
553
- onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
554
- }, {
555
- name: string;
556
- id: string;
557
- references: {
558
- localRef: string;
559
- foreignRef: string;
560
- }[];
561
- modelRef: string;
562
- foreignRelationName: string;
563
- onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
564
- foreignId?: string | undefined;
565
- onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
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;
594
- fields: z.ZodArray<z.ZodObject<{
595
- fieldRef: z.ZodEffects<z.ZodString, string, string>;
596
- }, "strip", z.ZodTypeAny, {
597
- fieldRef: string;
598
- }, {
599
- fieldRef: string;
600
- }>, "many">;
601
- }, "strip", z.ZodTypeAny, {
602
- id: string;
603
- fields: {
604
- fieldRef: string;
605
- }[];
606
- }, {
607
- id: string;
608
- fields: {
609
- fieldRef: string;
610
- }[];
611
- }>, {
612
- id: string;
613
- fields: {
614
- fieldRef: string;
615
- }[];
616
- }, {
617
- id: string;
618
- fields: {
619
- fieldRef: string;
620
- }[];
621
- }>, "many">>;
622
- }, "strip", z.ZodTypeAny, {
623
- fields: {
624
- options: {
625
- defaultEnumValueRef?: string | undefined;
626
- default: string;
627
- genUuid?: boolean | undefined;
628
- updatedAt?: boolean | undefined;
629
- defaultToNow?: boolean | undefined;
630
- enumRef?: string | undefined;
631
- };
632
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
633
- name: string;
634
- id: string;
635
- isOptional: boolean;
636
- }[];
637
- primaryKeyFieldRefs: string[];
638
- relations?: {
639
- name: string;
640
- id: string;
641
- onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
642
- references: {
643
- localRef: string;
644
- foreignRef: string;
645
- }[];
646
- modelRef: string;
647
- foreignId: string;
648
- foreignRelationName: string;
649
- onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
650
- }[] | undefined;
651
- uniqueConstraints?: {
652
- id: string;
653
- fields: {
654
- fieldRef: string;
655
- }[];
656
- }[] | undefined;
657
- }, {
658
- fields: {
659
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
660
- name: string;
661
- id: string;
662
- options?: {
663
- default?: string | undefined;
664
- genUuid?: boolean | undefined;
665
- updatedAt?: boolean | undefined;
666
- defaultToNow?: boolean | undefined;
667
- enumRef?: string | undefined;
668
- defaultEnumValueRef?: string | undefined;
669
- } | undefined;
670
- isOptional?: boolean | undefined;
671
- }[];
672
- primaryKeyFieldRefs: string[];
673
- relations?: {
674
- name: string;
675
- id: string;
676
- references: {
677
- localRef: string;
678
- foreignRef: string;
679
- }[];
680
- modelRef: string;
681
- foreignRelationName: string;
682
- onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
683
- foreignId?: string | undefined;
684
- onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
685
- }[] | undefined;
686
- uniqueConstraints?: {
687
- id: string;
688
- fields: {
689
- fieldRef: string;
690
- }[];
691
- }[] | undefined;
692
- }>;
693
- service: z.ZodDefault<z.ZodObject<{
694
- create: z.ZodDefault<z.ZodObject<{
695
- enabled: z.ZodDefault<z.ZodBoolean>;
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">>;
698
- }, "strip", z.ZodTypeAny, {
699
- enabled: boolean;
700
- fields?: string[] | undefined;
701
- transformerNames?: string[] | undefined;
702
- }, {
703
- enabled?: boolean | undefined;
704
- fields?: string[] | undefined;
705
- transformerNames?: string[] | undefined;
706
- }>>;
707
- update: z.ZodDefault<z.ZodObject<{
708
- enabled: z.ZodDefault<z.ZodBoolean>;
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">>;
711
- }, "strip", z.ZodTypeAny, {
712
- enabled: boolean;
713
- fields?: string[] | undefined;
714
- transformerNames?: string[] | undefined;
715
- }, {
716
- enabled?: boolean | undefined;
717
- fields?: string[] | undefined;
718
- transformerNames?: string[] | undefined;
719
- }>>;
720
- delete: z.ZodDefault<z.ZodObject<{
721
- enabled: z.ZodDefault<z.ZodBoolean>;
722
- }, "strip", z.ZodTypeAny, {
723
- enabled: boolean;
724
- }, {
725
- enabled?: boolean | undefined;
726
- }>>;
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">>, {
737
- type: string;
738
- id: string;
739
- }, z.objectInputType<{
740
- readonly id: z.ZodString;
741
- readonly type: z.ZodString;
742
- }, z.ZodTypeAny, "passthrough">>, "many">>;
743
- }, "strip", z.ZodTypeAny, {
744
- delete: {
745
- enabled: boolean;
746
- };
747
- create: {
748
- enabled: boolean;
749
- fields?: string[] | undefined;
750
- transformerNames?: string[] | undefined;
751
- };
752
- update: {
753
- enabled: boolean;
754
- fields?: string[] | undefined;
755
- transformerNames?: string[] | undefined;
756
- };
757
- transformers: {
758
- type: string;
759
- id: string;
760
- }[];
761
- }, {
762
- delete?: {
763
- enabled?: boolean | undefined;
764
- } | undefined;
765
- create?: {
766
- enabled?: boolean | undefined;
767
- fields?: string[] | undefined;
768
- transformerNames?: string[] | undefined;
769
- } | undefined;
770
- update?: {
771
- enabled?: boolean | undefined;
772
- fields?: string[] | undefined;
773
- transformerNames?: string[] | undefined;
774
- } | undefined;
775
- transformers?: z.objectInputType<{
776
- readonly id: z.ZodString;
777
- readonly type: z.ZodString;
778
- }, z.ZodTypeAny, "passthrough">[] | undefined;
779
- }>>;
780
- graphql: z.ZodEffects<z.ZodOptional<z.ZodOptional<z.ZodObject<{
781
- objectType: z.ZodEffects<z.ZodOptional<z.ZodObject<{
782
- enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
783
- fields: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
784
- localRelations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
785
- foreignRelations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
786
- }, "strip", z.ZodTypeAny, {
787
- enabled?: boolean | undefined;
788
- fields?: string[] | undefined;
789
- localRelations?: string[] | undefined;
790
- foreignRelations?: string[] | undefined;
791
- }, {
792
- enabled?: boolean | undefined;
793
- fields?: string[] | undefined;
794
- localRelations?: string[] | undefined;
795
- foreignRelations?: string[] | undefined;
796
- }>>, {
797
- enabled?: boolean | undefined;
798
- fields?: string[] | undefined;
799
- localRelations?: string[] | undefined;
800
- foreignRelations?: string[] | undefined;
801
- } | undefined, {
802
- enabled?: boolean | undefined;
803
- fields?: string[] | undefined;
804
- localRelations?: string[] | undefined;
805
- foreignRelations?: string[] | undefined;
806
- } | undefined>;
807
- queries: z.ZodEffects<z.ZodOptional<z.ZodObject<{
808
- get: z.ZodEffects<z.ZodOptional<z.ZodObject<{
809
- enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
810
- roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
811
- }, "strip", z.ZodTypeAny, {
812
- enabled?: boolean | undefined;
813
- roles?: string[] | undefined;
814
- }, {
815
- enabled?: boolean | undefined;
816
- roles?: string[] | undefined;
817
- }>>, {
818
- enabled?: boolean | undefined;
819
- roles?: string[] | undefined;
820
- } | undefined, {
821
- enabled?: boolean | undefined;
822
- roles?: string[] | undefined;
823
- } | undefined>;
824
- list: z.ZodEffects<z.ZodOptional<z.ZodObject<{
825
- enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
826
- roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
827
- }, "strip", z.ZodTypeAny, {
828
- enabled?: boolean | undefined;
829
- roles?: string[] | undefined;
830
- }, {
831
- enabled?: boolean | undefined;
832
- roles?: string[] | undefined;
833
- }>>, {
834
- enabled?: boolean | undefined;
835
- roles?: string[] | undefined;
836
- } | undefined, {
837
- enabled?: boolean | undefined;
838
- roles?: string[] | undefined;
839
- } | undefined>;
840
- }, "strip", z.ZodTypeAny, {
841
- get?: {
842
- enabled?: boolean | undefined;
843
- roles?: string[] | undefined;
844
- } | undefined;
845
- list?: {
846
- enabled?: boolean | undefined;
847
- roles?: string[] | undefined;
848
- } | undefined;
849
- }, {
850
- get?: {
851
- enabled?: boolean | undefined;
852
- roles?: string[] | undefined;
853
- } | undefined;
854
- list?: {
855
- enabled?: boolean | undefined;
856
- roles?: string[] | undefined;
857
- } | undefined;
858
- }>>, {
859
- get?: {
860
- enabled?: boolean | undefined;
861
- roles?: string[] | undefined;
862
- } | undefined;
863
- list?: {
864
- enabled?: boolean | undefined;
865
- roles?: string[] | undefined;
866
- } | undefined;
867
- } | undefined, {
868
- get?: {
869
- enabled?: boolean | undefined;
870
- roles?: string[] | undefined;
871
- } | undefined;
872
- list?: {
873
- enabled?: boolean | undefined;
874
- roles?: string[] | undefined;
875
- } | undefined;
876
- } | undefined>;
877
- mutations: z.ZodEffects<z.ZodOptional<z.ZodObject<{
878
- create: z.ZodEffects<z.ZodOptional<z.ZodObject<{
879
- enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
880
- roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
881
- }, "strip", z.ZodTypeAny, {
882
- enabled?: boolean | undefined;
883
- roles?: string[] | undefined;
884
- }, {
885
- enabled?: boolean | undefined;
886
- roles?: string[] | undefined;
887
- }>>, {
888
- enabled?: boolean | undefined;
889
- roles?: string[] | undefined;
890
- } | undefined, {
891
- enabled?: boolean | undefined;
892
- roles?: string[] | undefined;
893
- } | undefined>;
894
- update: z.ZodEffects<z.ZodOptional<z.ZodObject<{
895
- enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
896
- roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
897
- }, "strip", z.ZodTypeAny, {
898
- enabled?: boolean | undefined;
899
- roles?: string[] | undefined;
900
- }, {
901
- enabled?: boolean | undefined;
902
- roles?: string[] | undefined;
903
- }>>, {
904
- enabled?: boolean | undefined;
905
- roles?: string[] | undefined;
906
- } | undefined, {
907
- enabled?: boolean | undefined;
908
- roles?: string[] | undefined;
909
- } | undefined>;
910
- delete: z.ZodEffects<z.ZodOptional<z.ZodObject<{
911
- enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
912
- roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
913
- }, "strip", z.ZodTypeAny, {
914
- enabled?: boolean | undefined;
915
- roles?: string[] | undefined;
916
- }, {
917
- enabled?: boolean | undefined;
918
- roles?: string[] | undefined;
919
- }>>, {
920
- enabled?: boolean | undefined;
921
- roles?: string[] | undefined;
922
- } | undefined, {
923
- enabled?: boolean | undefined;
924
- roles?: string[] | undefined;
925
- } | undefined>;
926
- }, "strip", z.ZodTypeAny, {
927
- delete?: {
928
- enabled?: boolean | undefined;
929
- roles?: string[] | undefined;
930
- } | undefined;
931
- create?: {
932
- enabled?: boolean | undefined;
933
- roles?: string[] | undefined;
934
- } | undefined;
935
- update?: {
936
- enabled?: boolean | undefined;
937
- roles?: string[] | undefined;
938
- } | undefined;
939
- }, {
940
- delete?: {
941
- enabled?: boolean | undefined;
942
- roles?: string[] | undefined;
943
- } | undefined;
944
- create?: {
945
- enabled?: boolean | undefined;
946
- roles?: string[] | undefined;
947
- } | undefined;
948
- update?: {
949
- enabled?: boolean | undefined;
950
- roles?: string[] | undefined;
951
- } | undefined;
952
- }>>, {
953
- delete?: {
954
- enabled?: boolean | undefined;
955
- roles?: string[] | undefined;
956
- } | undefined;
957
- create?: {
958
- enabled?: boolean | undefined;
959
- roles?: string[] | undefined;
960
- } | undefined;
961
- update?: {
962
- enabled?: boolean | undefined;
963
- roles?: string[] | undefined;
964
- } | undefined;
965
- } | undefined, {
966
- delete?: {
967
- enabled?: boolean | undefined;
968
- roles?: string[] | undefined;
969
- } | undefined;
970
- create?: {
971
- enabled?: boolean | undefined;
972
- roles?: string[] | undefined;
973
- } | undefined;
974
- update?: {
975
- enabled?: boolean | undefined;
976
- roles?: string[] | undefined;
977
- } | undefined;
978
- } | undefined>;
979
- }, "strip", z.ZodTypeAny, {
980
- objectType?: {
981
- enabled?: boolean | undefined;
982
- fields?: string[] | undefined;
983
- localRelations?: string[] | undefined;
984
- foreignRelations?: string[] | undefined;
985
- } | undefined;
986
- queries?: {
987
- get?: {
988
- enabled?: boolean | undefined;
989
- roles?: string[] | undefined;
990
- } | undefined;
991
- list?: {
992
- enabled?: boolean | undefined;
993
- roles?: string[] | undefined;
994
- } | undefined;
995
- } | undefined;
996
- mutations?: {
997
- delete?: {
998
- enabled?: boolean | undefined;
999
- roles?: string[] | undefined;
1000
- } | undefined;
1001
- create?: {
1002
- enabled?: boolean | undefined;
1003
- roles?: string[] | undefined;
1004
- } | undefined;
1005
- update?: {
1006
- enabled?: boolean | undefined;
1007
- roles?: string[] | undefined;
1008
- } | undefined;
1009
- } | undefined;
1010
- }, {
1011
- objectType?: {
1012
- enabled?: boolean | undefined;
1013
- fields?: string[] | undefined;
1014
- localRelations?: string[] | undefined;
1015
- foreignRelations?: string[] | undefined;
1016
- } | undefined;
1017
- queries?: {
1018
- get?: {
1019
- enabled?: boolean | undefined;
1020
- roles?: string[] | undefined;
1021
- } | undefined;
1022
- list?: {
1023
- enabled?: boolean | undefined;
1024
- roles?: string[] | undefined;
1025
- } | undefined;
1026
- } | undefined;
1027
- mutations?: {
1028
- delete?: {
1029
- enabled?: boolean | undefined;
1030
- roles?: string[] | undefined;
1031
- } | undefined;
1032
- create?: {
1033
- enabled?: boolean | undefined;
1034
- roles?: string[] | undefined;
1035
- } | undefined;
1036
- update?: {
1037
- enabled?: boolean | undefined;
1038
- roles?: string[] | undefined;
1039
- } | undefined;
1040
- } | undefined;
1041
- }>>>, {
1042
- objectType?: {
1043
- enabled?: boolean | undefined;
1044
- fields?: string[] | undefined;
1045
- localRelations?: string[] | undefined;
1046
- foreignRelations?: string[] | undefined;
1047
- } | undefined;
1048
- queries?: {
1049
- get?: {
1050
- enabled?: boolean | undefined;
1051
- roles?: string[] | undefined;
1052
- } | undefined;
1053
- list?: {
1054
- enabled?: boolean | undefined;
1055
- roles?: string[] | undefined;
1056
- } | undefined;
1057
- } | undefined;
1058
- mutations?: {
1059
- delete?: {
1060
- enabled?: boolean | undefined;
1061
- roles?: string[] | undefined;
1062
- } | undefined;
1063
- create?: {
1064
- enabled?: boolean | undefined;
1065
- roles?: string[] | undefined;
1066
- } | undefined;
1067
- update?: {
1068
- enabled?: boolean | undefined;
1069
- roles?: string[] | undefined;
1070
- } | undefined;
1071
- } | undefined;
1072
- } | undefined, {
1073
- objectType?: {
1074
- enabled?: boolean | undefined;
1075
- fields?: string[] | undefined;
1076
- localRelations?: string[] | undefined;
1077
- foreignRelations?: string[] | undefined;
1078
- } | undefined;
1079
- queries?: {
1080
- get?: {
1081
- enabled?: boolean | undefined;
1082
- roles?: string[] | undefined;
1083
- } | undefined;
1084
- list?: {
1085
- enabled?: boolean | undefined;
1086
- roles?: string[] | undefined;
1087
- } | undefined;
1088
- } | undefined;
1089
- mutations?: {
1090
- delete?: {
1091
- enabled?: boolean | undefined;
1092
- roles?: string[] | undefined;
1093
- } | undefined;
1094
- create?: {
1095
- enabled?: boolean | undefined;
1096
- roles?: string[] | undefined;
1097
- } | undefined;
1098
- update?: {
1099
- enabled?: boolean | undefined;
1100
- roles?: string[] | undefined;
1101
- } | undefined;
1102
- } | undefined;
1103
- } | undefined>;
1104
- }, "strip", z.ZodTypeAny, {
1105
- name: string;
1106
- id: string;
1107
- model: {
1108
- fields: {
1109
- options: {
1110
- defaultEnumValueRef?: string | undefined;
1111
- default: string;
1112
- genUuid?: boolean | undefined;
1113
- updatedAt?: boolean | undefined;
1114
- defaultToNow?: boolean | undefined;
1115
- enumRef?: string | undefined;
1116
- };
1117
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1118
- name: string;
1119
- id: string;
1120
- isOptional: boolean;
1121
- }[];
1122
- primaryKeyFieldRefs: string[];
1123
- relations?: {
1124
- name: string;
1125
- id: string;
1126
- onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
1127
- references: {
1128
- localRef: string;
1129
- foreignRef: string;
1130
- }[];
1131
- modelRef: string;
1132
- foreignId: string;
1133
- foreignRelationName: string;
1134
- onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
1135
- }[] | undefined;
1136
- uniqueConstraints?: {
1137
- id: string;
1138
- fields: {
1139
- fieldRef: string;
1140
- }[];
1141
- }[] | undefined;
1142
- };
1143
- featureRef: string;
1144
- service: {
1145
- delete: {
1146
- enabled: boolean;
1147
- };
1148
- create: {
1149
- enabled: boolean;
1150
- fields?: string[] | undefined;
1151
- transformerNames?: string[] | undefined;
1152
- };
1153
- update: {
1154
- enabled: boolean;
1155
- fields?: string[] | undefined;
1156
- transformerNames?: string[] | undefined;
1157
- };
1158
- transformers: {
1159
- type: string;
1160
- id: string;
1161
- }[];
1162
- };
1163
- graphql?: {
1164
- objectType?: {
1165
- enabled?: boolean | undefined;
1166
- fields?: string[] | undefined;
1167
- localRelations?: string[] | undefined;
1168
- foreignRelations?: string[] | undefined;
1169
- } | undefined;
1170
- queries?: {
1171
- get?: {
1172
- enabled?: boolean | undefined;
1173
- roles?: string[] | undefined;
1174
- } | undefined;
1175
- list?: {
1176
- enabled?: boolean | undefined;
1177
- roles?: string[] | undefined;
1178
- } | undefined;
1179
- } | undefined;
1180
- mutations?: {
1181
- delete?: {
1182
- enabled?: boolean | undefined;
1183
- roles?: string[] | undefined;
1184
- } | undefined;
1185
- create?: {
1186
- enabled?: boolean | undefined;
1187
- roles?: string[] | undefined;
1188
- } | undefined;
1189
- update?: {
1190
- enabled?: boolean | undefined;
1191
- roles?: string[] | undefined;
1192
- } | undefined;
1193
- } | undefined;
1194
- } | undefined;
1195
- }, {
1196
- name: string;
1197
- id: string;
1198
- model: {
1199
- fields: {
1200
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1201
- name: string;
1202
- id: string;
1203
- options?: {
1204
- default?: string | undefined;
1205
- genUuid?: boolean | undefined;
1206
- updatedAt?: boolean | undefined;
1207
- defaultToNow?: boolean | undefined;
1208
- enumRef?: string | undefined;
1209
- defaultEnumValueRef?: string | undefined;
1210
- } | undefined;
1211
- isOptional?: boolean | undefined;
1212
- }[];
1213
- primaryKeyFieldRefs: string[];
1214
- relations?: {
1215
- name: string;
1216
- id: string;
1217
- references: {
1218
- localRef: string;
1219
- foreignRef: string;
1220
- }[];
1221
- modelRef: string;
1222
- foreignRelationName: string;
1223
- onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
1224
- foreignId?: string | undefined;
1225
- onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
1226
- }[] | undefined;
1227
- uniqueConstraints?: {
1228
- id: string;
1229
- fields: {
1230
- fieldRef: string;
1231
- }[];
1232
- }[] | undefined;
1233
- };
1234
- featureRef: string;
1235
- service?: {
1236
- delete?: {
1237
- enabled?: boolean | undefined;
1238
- } | undefined;
1239
- create?: {
1240
- enabled?: boolean | undefined;
1241
- fields?: string[] | undefined;
1242
- transformerNames?: string[] | undefined;
1243
- } | undefined;
1244
- update?: {
1245
- enabled?: boolean | undefined;
1246
- fields?: string[] | undefined;
1247
- transformerNames?: string[] | undefined;
1248
- } | undefined;
1249
- transformers?: z.objectInputType<{
1250
- readonly id: z.ZodString;
1251
- readonly type: z.ZodString;
1252
- }, z.ZodTypeAny, "passthrough">[] | undefined;
1253
- } | undefined;
1254
- graphql?: {
1255
- objectType?: {
1256
- enabled?: boolean | undefined;
1257
- fields?: string[] | undefined;
1258
- localRelations?: string[] | undefined;
1259
- foreignRelations?: string[] | undefined;
1260
- } | undefined;
1261
- queries?: {
1262
- get?: {
1263
- enabled?: boolean | undefined;
1264
- roles?: string[] | undefined;
1265
- } | undefined;
1266
- list?: {
1267
- enabled?: boolean | undefined;
1268
- roles?: string[] | undefined;
1269
- } | undefined;
1270
- } | undefined;
1271
- mutations?: {
1272
- delete?: {
1273
- enabled?: boolean | undefined;
1274
- roles?: string[] | undefined;
1275
- } | undefined;
1276
- create?: {
1277
- enabled?: boolean | undefined;
1278
- roles?: string[] | undefined;
1279
- } | undefined;
1280
- update?: {
1281
- enabled?: boolean | undefined;
1282
- roles?: string[] | undefined;
1283
- } | undefined;
1284
- } | undefined;
1285
- } | undefined;
1286
- }>;
1287
- export declare const createModelSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodEffects<z.ZodObject<{
1288
- id: z.ZodString;
1289
- name: z.ZodString;
1290
- featureRef: z.ZodEffects<z.ZodString, string, string>;
1291
- model: z.ZodObject<{
1292
- fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1293
- id: z.ZodString;
1294
- name: z.ZodString;
1295
- type: z.ZodEnum<["string", "uuid", "int", "boolean", "dateTime", "float", "decimal", "json", "date", "enum"]>;
1296
- isOptional: z.ZodDefault<z.ZodBoolean>;
1297
- options: z.ZodEffects<z.ZodDefault<z.ZodEffects<z.ZodObject<{
1298
- default: z.ZodDefault<z.ZodString>;
1299
- genUuid: z.ZodOptional<z.ZodBoolean>;
1300
- updatedAt: z.ZodOptional<z.ZodBoolean>;
1301
- defaultToNow: z.ZodOptional<z.ZodBoolean>;
1302
- enumRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1303
- defaultEnumValueRef: z.ZodOptional<z.ZodString>;
1304
- }, "strip", z.ZodTypeAny, {
1305
- default: string;
1306
- genUuid?: boolean | undefined;
1307
- updatedAt?: boolean | undefined;
1308
- defaultToNow?: boolean | undefined;
1309
- enumRef?: string | undefined;
1310
- defaultEnumValueRef?: string | undefined;
1311
- }, {
1312
- default?: string | undefined;
1313
- genUuid?: boolean | undefined;
1314
- updatedAt?: boolean | undefined;
1315
- defaultToNow?: boolean | undefined;
1316
- enumRef?: string | undefined;
1317
- defaultEnumValueRef?: string | undefined;
1318
- }>, {
1319
- defaultEnumValueRef?: string | undefined;
1320
- default: string;
1321
- genUuid?: boolean | undefined;
1322
- updatedAt?: boolean | undefined;
1323
- defaultToNow?: boolean | undefined;
1324
- enumRef?: string | undefined;
1325
- }, {
1326
- default?: string | undefined;
1327
- genUuid?: boolean | undefined;
1328
- updatedAt?: boolean | undefined;
1329
- defaultToNow?: boolean | undefined;
1330
- enumRef?: string | undefined;
1331
- defaultEnumValueRef?: string | undefined;
1332
- }>>, {
1333
- defaultEnumValueRef?: string | undefined;
1334
- default: string;
1335
- genUuid?: boolean | undefined;
1336
- updatedAt?: boolean | undefined;
1337
- defaultToNow?: boolean | undefined;
1338
- enumRef?: string | undefined;
1339
- }, {
1340
- default?: string | undefined;
1341
- genUuid?: boolean | undefined;
1342
- updatedAt?: boolean | undefined;
1343
- defaultToNow?: boolean | undefined;
1344
- enumRef?: string | undefined;
1345
- defaultEnumValueRef?: string | undefined;
1346
- } | undefined>;
1347
- }, "strip", z.ZodTypeAny, {
1348
- options: {
1349
- defaultEnumValueRef?: string | undefined;
1350
- default: string;
1351
- genUuid?: boolean | undefined;
1352
- updatedAt?: boolean | undefined;
1353
- defaultToNow?: boolean | undefined;
1354
- enumRef?: string | undefined;
1355
- };
1356
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1357
- name: string;
1358
- id: string;
1359
- isOptional: boolean;
1360
- }, {
1361
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1362
- name: string;
1363
- id: string;
1364
- options?: {
1365
- default?: string | undefined;
1366
- genUuid?: boolean | undefined;
1367
- updatedAt?: boolean | undefined;
1368
- defaultToNow?: boolean | undefined;
1369
- enumRef?: string | undefined;
1370
- defaultEnumValueRef?: string | undefined;
1371
- } | undefined;
1372
- isOptional?: boolean | undefined;
1373
- }>, {
1374
- options: {
1375
- defaultEnumValueRef?: string | undefined;
1376
- default: string;
1377
- genUuid?: boolean | undefined;
1378
- updatedAt?: boolean | undefined;
1379
- defaultToNow?: boolean | undefined;
1380
- enumRef?: string | undefined;
1381
- };
1382
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1383
- name: string;
1384
- id: string;
1385
- isOptional: boolean;
1386
- }, {
1387
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1388
- name: string;
1389
- id: string;
1390
- options?: {
1391
- default?: string | undefined;
1392
- genUuid?: boolean | undefined;
1393
- updatedAt?: boolean | undefined;
1394
- defaultToNow?: boolean | undefined;
1395
- enumRef?: string | undefined;
1396
- defaultEnumValueRef?: string | undefined;
1397
- } | undefined;
1398
- isOptional?: boolean | undefined;
1399
- }>, {
1400
- options: {
1401
- defaultEnumValueRef?: string | undefined;
1402
- default: string;
1403
- genUuid?: boolean | undefined;
1404
- updatedAt?: boolean | undefined;
1405
- defaultToNow?: boolean | undefined;
1406
- enumRef?: string | undefined;
1407
- };
1408
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1409
- name: string;
1410
- id: string;
1411
- isOptional: boolean;
1412
- }, {
1413
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1414
- name: string;
1415
- id: string;
1416
- options?: {
1417
- default?: string | undefined;
1418
- genUuid?: boolean | undefined;
1419
- updatedAt?: boolean | undefined;
1420
- defaultToNow?: boolean | undefined;
1421
- enumRef?: string | undefined;
1422
- defaultEnumValueRef?: string | undefined;
1423
- } | undefined;
1424
- isOptional?: boolean | undefined;
1425
- }>, {
1426
- options: {
1427
- defaultEnumValueRef?: string | undefined;
1428
- default: string;
1429
- genUuid?: boolean | undefined;
1430
- updatedAt?: boolean | undefined;
1431
- defaultToNow?: boolean | undefined;
1432
- enumRef?: string | undefined;
1433
- };
1434
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1435
- name: string;
1436
- id: string;
1437
- isOptional: boolean;
1438
- }, {
1439
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1440
- name: string;
1441
- id: string;
1442
- options?: {
1443
- default?: string | undefined;
1444
- genUuid?: boolean | undefined;
1445
- updatedAt?: boolean | undefined;
1446
- defaultToNow?: boolean | undefined;
1447
- enumRef?: string | undefined;
1448
- defaultEnumValueRef?: string | undefined;
1449
- } | undefined;
1450
- isOptional?: boolean | undefined;
1451
- }>, "many">;
1452
- relations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1453
- id: z.ZodString;
1454
- foreignId: z.ZodDefault<z.ZodString>;
1455
- name: z.ZodString;
1456
- references: z.ZodArray<z.ZodObject<{
1457
- localRef: z.ZodEffects<z.ZodString, string, string>;
1458
- foreignRef: z.ZodEffects<z.ZodString, string, string>;
1459
- }, "strip", z.ZodTypeAny, {
1460
- localRef: string;
1461
- foreignRef: string;
1462
- }, {
1463
- localRef: string;
1464
- foreignRef: string;
1465
- }>, "many">;
1466
- modelRef: z.ZodString;
1467
- foreignRelationName: z.ZodString;
1468
- onDelete: z.ZodDefault<z.ZodEnum<["Cascade", "Restrict", "NoAction", "SetNull", "SetDefault"]>>;
1469
- onUpdate: z.ZodDefault<z.ZodEnum<["Cascade", "Restrict", "NoAction", "SetNull", "SetDefault"]>>;
1470
- }, "strip", z.ZodTypeAny, {
1471
- name: string;
1472
- id: string;
1473
- onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
1474
- references: {
1475
- localRef: string;
1476
- foreignRef: string;
1477
- }[];
1478
- modelRef: string;
1479
- foreignId: string;
1480
- foreignRelationName: string;
1481
- onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
1482
- }, {
1483
- name: string;
1484
- id: string;
1485
- references: {
1486
- localRef: string;
1487
- foreignRef: string;
1488
- }[];
1489
- modelRef: string;
1490
- foreignRelationName: string;
1491
- onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
1492
- foreignId?: string | undefined;
1493
- onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
1494
- }>, {
1495
- name: string;
1496
- id: string;
1497
- onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
1498
- references: {
1499
- localRef: string;
1500
- foreignRef: string;
1501
- }[];
1502
- modelRef: string;
1503
- foreignId: string;
1504
- foreignRelationName: string;
1505
- onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
1506
- }, {
1507
- name: string;
1508
- id: string;
1509
- references: {
1510
- localRef: string;
1511
- foreignRef: string;
1512
- }[];
1513
- modelRef: string;
1514
- foreignRelationName: string;
1515
- onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
1516
- foreignId?: string | undefined;
1517
- onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
1518
- }>, "many">>;
1519
- primaryKeyFieldRefs: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1520
- uniqueConstraints: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1521
- id: z.ZodString;
1522
- fields: z.ZodArray<z.ZodObject<{
1523
- fieldRef: z.ZodEffects<z.ZodString, string, string>;
1524
- }, "strip", z.ZodTypeAny, {
1525
- fieldRef: string;
1526
- }, {
1527
- fieldRef: string;
1528
- }>, "many">;
1529
- }, "strip", z.ZodTypeAny, {
1530
- id: string;
1531
- fields: {
1532
- fieldRef: string;
1533
- }[];
1534
- }, {
1535
- id: string;
1536
- fields: {
1537
- fieldRef: string;
1538
- }[];
1539
- }>, {
1540
- id: string;
1541
- fields: {
1542
- fieldRef: string;
1543
- }[];
1544
- }, {
1545
- id: string;
1546
- fields: {
1547
- fieldRef: string;
1548
- }[];
1549
- }>, "many">>;
1550
- }, "strip", z.ZodTypeAny, {
1551
- fields: {
1552
- options: {
1553
- defaultEnumValueRef?: string | undefined;
1554
- default: string;
1555
- genUuid?: boolean | undefined;
1556
- updatedAt?: boolean | undefined;
1557
- defaultToNow?: boolean | undefined;
1558
- enumRef?: string | undefined;
1559
- };
1560
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1561
- name: string;
1562
- id: string;
1563
- isOptional: boolean;
1564
- }[];
1565
- primaryKeyFieldRefs: string[];
1566
- relations?: {
1567
- name: string;
1568
- id: string;
1569
- onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
1570
- references: {
1571
- localRef: string;
1572
- foreignRef: string;
1573
- }[];
1574
- modelRef: string;
1575
- foreignId: string;
1576
- foreignRelationName: string;
1577
- onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
1578
- }[] | undefined;
1579
- uniqueConstraints?: {
1580
- id: string;
1581
- fields: {
1582
- fieldRef: string;
1583
- }[];
1584
- }[] | undefined;
1585
- }, {
1586
- fields: {
1587
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1588
- name: string;
1589
- id: string;
1590
- options?: {
1591
- default?: string | undefined;
1592
- genUuid?: boolean | undefined;
1593
- updatedAt?: boolean | undefined;
1594
- defaultToNow?: boolean | undefined;
1595
- enumRef?: string | undefined;
1596
- defaultEnumValueRef?: string | undefined;
1597
- } | undefined;
1598
- isOptional?: boolean | undefined;
1599
- }[];
1600
- primaryKeyFieldRefs: string[];
1601
- relations?: {
1602
- name: string;
1603
- id: string;
1604
- references: {
1605
- localRef: string;
1606
- foreignRef: string;
1607
- }[];
1608
- modelRef: string;
1609
- foreignRelationName: string;
1610
- onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
1611
- foreignId?: string | undefined;
1612
- onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
1613
- }[] | undefined;
1614
- uniqueConstraints?: {
1615
- id: string;
1616
- fields: {
1617
- fieldRef: string;
1618
- }[];
1619
- }[] | undefined;
1620
- }>;
1621
- service: z.ZodDefault<z.ZodObject<{
1622
- create: z.ZodDefault<z.ZodObject<{
1623
- enabled: z.ZodDefault<z.ZodBoolean>;
1624
- fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1625
- transformerNames: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1626
- }, "strip", z.ZodTypeAny, {
1627
- enabled: boolean;
1628
- fields?: string[] | undefined;
1629
- transformerNames?: string[] | undefined;
1630
- }, {
1631
- enabled?: boolean | undefined;
1632
- fields?: string[] | undefined;
1633
- transformerNames?: string[] | undefined;
1634
- }>>;
1635
- update: z.ZodDefault<z.ZodObject<{
1636
- enabled: z.ZodDefault<z.ZodBoolean>;
1637
- fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1638
- transformerNames: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1639
- }, "strip", z.ZodTypeAny, {
1640
- enabled: boolean;
1641
- fields?: string[] | undefined;
1642
- transformerNames?: string[] | undefined;
1643
- }, {
1644
- enabled?: boolean | undefined;
1645
- fields?: string[] | undefined;
1646
- transformerNames?: string[] | undefined;
1647
- }>>;
1648
- delete: z.ZodDefault<z.ZodObject<{
1649
- enabled: z.ZodDefault<z.ZodBoolean>;
1650
- }, "strip", z.ZodTypeAny, {
1651
- enabled: boolean;
1652
- }, {
1653
- enabled?: boolean | undefined;
1654
- }>>;
1655
- transformers: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
1656
- readonly id: z.ZodString;
1657
- readonly type: z.ZodString;
1658
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1659
- readonly id: z.ZodString;
1660
- readonly type: z.ZodString;
1661
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1662
- readonly id: z.ZodString;
1663
- readonly type: z.ZodString;
1664
- }, z.ZodTypeAny, "passthrough">>, {
1665
- type: string;
1666
- id: string;
1667
- }, z.objectInputType<{
1668
- readonly id: z.ZodString;
1669
- readonly type: z.ZodString;
1670
- }, z.ZodTypeAny, "passthrough">>, "many">>;
1671
- }, "strip", z.ZodTypeAny, {
1672
- delete: {
1673
- enabled: boolean;
1674
- };
1675
- create: {
1676
- enabled: boolean;
1677
- fields?: string[] | undefined;
1678
- transformerNames?: string[] | undefined;
1679
- };
1680
- update: {
1681
- enabled: boolean;
1682
- fields?: string[] | undefined;
1683
- transformerNames?: string[] | undefined;
1684
- };
1685
- transformers: {
1686
- type: string;
1687
- id: string;
1688
- }[];
1689
- }, {
1690
- delete?: {
1691
- enabled?: boolean | undefined;
1692
- } | undefined;
1693
- create?: {
1694
- enabled?: boolean | undefined;
1695
- fields?: string[] | undefined;
1696
- transformerNames?: string[] | undefined;
1697
- } | undefined;
1698
- update?: {
1699
- enabled?: boolean | undefined;
1700
- fields?: string[] | undefined;
1701
- transformerNames?: string[] | undefined;
1702
- } | undefined;
1703
- transformers?: z.objectInputType<{
1704
- readonly id: z.ZodString;
1705
- readonly type: z.ZodString;
1706
- }, z.ZodTypeAny, "passthrough">[] | undefined;
1707
- }>>;
1708
- graphql: z.ZodEffects<z.ZodOptional<z.ZodOptional<z.ZodObject<{
1709
- objectType: z.ZodEffects<z.ZodOptional<z.ZodObject<{
1710
- enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
1711
- fields: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
1712
- localRelations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
1713
- foreignRelations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
1714
- }, "strip", z.ZodTypeAny, {
1715
- enabled?: boolean | undefined;
1716
- fields?: string[] | undefined;
1717
- localRelations?: string[] | undefined;
1718
- foreignRelations?: string[] | undefined;
1719
- }, {
1720
- enabled?: boolean | undefined;
1721
- fields?: string[] | undefined;
1722
- localRelations?: string[] | undefined;
1723
- foreignRelations?: string[] | undefined;
1724
- }>>, {
1725
- enabled?: boolean | undefined;
1726
- fields?: string[] | undefined;
1727
- localRelations?: string[] | undefined;
1728
- foreignRelations?: string[] | undefined;
1729
- } | undefined, {
1730
- enabled?: boolean | undefined;
1731
- fields?: string[] | undefined;
1732
- localRelations?: string[] | undefined;
1733
- foreignRelations?: string[] | undefined;
1734
- } | undefined>;
1735
- queries: z.ZodEffects<z.ZodOptional<z.ZodObject<{
1736
- get: z.ZodEffects<z.ZodOptional<z.ZodObject<{
1737
- enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
1738
- roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
1739
- }, "strip", z.ZodTypeAny, {
1740
- enabled?: boolean | undefined;
1741
- roles?: string[] | undefined;
1742
- }, {
1743
- enabled?: boolean | undefined;
1744
- roles?: string[] | undefined;
1745
- }>>, {
1746
- enabled?: boolean | undefined;
1747
- roles?: string[] | undefined;
1748
- } | undefined, {
1749
- enabled?: boolean | undefined;
1750
- roles?: string[] | undefined;
1751
- } | undefined>;
1752
- list: z.ZodEffects<z.ZodOptional<z.ZodObject<{
1753
- enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
1754
- roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
1755
- }, "strip", z.ZodTypeAny, {
1756
- enabled?: boolean | undefined;
1757
- roles?: string[] | undefined;
1758
- }, {
1759
- enabled?: boolean | undefined;
1760
- roles?: string[] | undefined;
1761
- }>>, {
1762
- enabled?: boolean | undefined;
1763
- roles?: string[] | undefined;
1764
- } | undefined, {
1765
- enabled?: boolean | undefined;
1766
- roles?: string[] | undefined;
1767
- } | undefined>;
1768
- }, "strip", z.ZodTypeAny, {
1769
- get?: {
1770
- enabled?: boolean | undefined;
1771
- roles?: string[] | undefined;
1772
- } | undefined;
1773
- list?: {
1774
- enabled?: boolean | undefined;
1775
- roles?: string[] | undefined;
1776
- } | undefined;
1777
- }, {
1778
- get?: {
1779
- enabled?: boolean | undefined;
1780
- roles?: string[] | undefined;
1781
- } | undefined;
1782
- list?: {
1783
- enabled?: boolean | undefined;
1784
- roles?: string[] | undefined;
1785
- } | undefined;
1786
- }>>, {
1787
- get?: {
1788
- enabled?: boolean | undefined;
1789
- roles?: string[] | undefined;
1790
- } | undefined;
1791
- list?: {
1792
- enabled?: boolean | undefined;
1793
- roles?: string[] | undefined;
1794
- } | undefined;
1795
- } | undefined, {
1796
- get?: {
1797
- enabled?: boolean | undefined;
1798
- roles?: string[] | undefined;
1799
- } | undefined;
1800
- list?: {
1801
- enabled?: boolean | undefined;
1802
- roles?: string[] | undefined;
1803
- } | undefined;
1804
- } | undefined>;
1805
- mutations: z.ZodEffects<z.ZodOptional<z.ZodObject<{
1806
- create: z.ZodEffects<z.ZodOptional<z.ZodObject<{
1807
- enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
1808
- roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
1809
- }, "strip", z.ZodTypeAny, {
1810
- enabled?: boolean | undefined;
1811
- roles?: string[] | undefined;
1812
- }, {
1813
- enabled?: boolean | undefined;
1814
- roles?: string[] | undefined;
1815
- }>>, {
1816
- enabled?: boolean | undefined;
1817
- roles?: string[] | undefined;
1818
- } | undefined, {
1819
- enabled?: boolean | undefined;
1820
- roles?: string[] | undefined;
1821
- } | undefined>;
1822
- update: z.ZodEffects<z.ZodOptional<z.ZodObject<{
1823
- enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
1824
- roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
1825
- }, "strip", z.ZodTypeAny, {
1826
- enabled?: boolean | undefined;
1827
- roles?: string[] | undefined;
1828
- }, {
1829
- enabled?: boolean | undefined;
1830
- roles?: string[] | undefined;
1831
- }>>, {
1832
- enabled?: boolean | undefined;
1833
- roles?: string[] | undefined;
1834
- } | undefined, {
1835
- enabled?: boolean | undefined;
1836
- roles?: string[] | undefined;
1837
- } | undefined>;
1838
- delete: z.ZodEffects<z.ZodOptional<z.ZodObject<{
1839
- enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
1840
- roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
1841
- }, "strip", z.ZodTypeAny, {
1842
- enabled?: boolean | undefined;
1843
- roles?: string[] | undefined;
1844
- }, {
1845
- enabled?: boolean | undefined;
1846
- roles?: string[] | undefined;
1847
- }>>, {
1848
- enabled?: boolean | undefined;
1849
- roles?: string[] | undefined;
1850
- } | undefined, {
1851
- enabled?: boolean | undefined;
1852
- roles?: string[] | undefined;
1853
- } | undefined>;
1854
- }, "strip", z.ZodTypeAny, {
1855
- delete?: {
1856
- enabled?: boolean | undefined;
1857
- roles?: string[] | undefined;
1858
- } | undefined;
1859
- create?: {
1860
- enabled?: boolean | undefined;
1861
- roles?: string[] | undefined;
1862
- } | undefined;
1863
- update?: {
1864
- enabled?: boolean | undefined;
1865
- roles?: string[] | undefined;
1866
- } | undefined;
1867
- }, {
1868
- delete?: {
1869
- enabled?: boolean | undefined;
1870
- roles?: string[] | undefined;
1871
- } | undefined;
1872
- create?: {
1873
- enabled?: boolean | undefined;
1874
- roles?: string[] | undefined;
1875
- } | undefined;
1876
- update?: {
1877
- enabled?: boolean | undefined;
1878
- roles?: string[] | undefined;
1879
- } | undefined;
1880
- }>>, {
1881
- delete?: {
1882
- enabled?: boolean | undefined;
1883
- roles?: string[] | undefined;
1884
- } | undefined;
1885
- create?: {
1886
- enabled?: boolean | undefined;
1887
- roles?: string[] | undefined;
1888
- } | undefined;
1889
- update?: {
1890
- enabled?: boolean | undefined;
1891
- roles?: string[] | undefined;
1892
- } | undefined;
1893
- } | undefined, {
1894
- delete?: {
1895
- enabled?: boolean | undefined;
1896
- roles?: string[] | undefined;
1897
- } | undefined;
1898
- create?: {
1899
- enabled?: boolean | undefined;
1900
- roles?: string[] | undefined;
1901
- } | undefined;
1902
- update?: {
1903
- enabled?: boolean | undefined;
1904
- roles?: string[] | undefined;
231
+ updatedAt?: boolean | undefined;
232
+ defaultToNow?: boolean | undefined;
233
+ enumRef?: string | undefined;
234
+ };
235
+ }, {
236
+ id: string;
237
+ name: string;
238
+ type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
239
+ isOptional?: boolean | undefined;
240
+ options?: {
241
+ default?: string | undefined;
242
+ genUuid?: boolean | undefined;
243
+ updatedAt?: boolean | undefined;
244
+ defaultToNow?: boolean | undefined;
245
+ enumRef?: string | undefined;
246
+ defaultEnumValueRef?: string | undefined;
1905
247
  } | undefined;
1906
- } | undefined>;
1907
- }, "strip", z.ZodTypeAny, {
248
+ }>>, z.ZodTransform<{
249
+ id: string;
250
+ name: string;
251
+ type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
252
+ isOptional: boolean;
253
+ options: {
254
+ defaultEnumValueRef?: string | undefined;
255
+ default: string;
256
+ genUuid?: boolean | undefined;
257
+ updatedAt?: boolean | undefined;
258
+ defaultToNow?: boolean | undefined;
259
+ enumRef?: string | undefined;
260
+ };
261
+ }, {
262
+ id: string;
263
+ name: string;
264
+ type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
265
+ isOptional: boolean;
266
+ options: {
267
+ defaultEnumValueRef?: string | undefined;
268
+ default: string;
269
+ genUuid?: boolean | undefined;
270
+ updatedAt?: boolean | undefined;
271
+ defaultToNow?: boolean | undefined;
272
+ enumRef?: string | undefined;
273
+ };
274
+ }>>>;
275
+ relations: z.ZodOptional<z.ZodArray<z.ZodType<{
276
+ id: string;
277
+ foreignId: string;
278
+ name: string;
279
+ references: {
280
+ localRef: string;
281
+ foreignRef: string;
282
+ }[];
283
+ modelRef: string;
284
+ foreignRelationName: string;
285
+ onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
286
+ onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
287
+ }, {
288
+ id: string;
289
+ name: string;
290
+ references: {
291
+ localRef: string;
292
+ foreignRef: string;
293
+ }[];
294
+ modelRef: string;
295
+ foreignRelationName: string;
296
+ foreignId?: string | undefined;
297
+ onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
298
+ onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
299
+ }, z.core.$ZodTypeInternals<{
300
+ id: string;
301
+ foreignId: string;
302
+ name: string;
303
+ references: {
304
+ localRef: string;
305
+ foreignRef: string;
306
+ }[];
307
+ modelRef: string;
308
+ foreignRelationName: string;
309
+ onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
310
+ onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
311
+ }, {
312
+ id: string;
313
+ name: string;
314
+ references: {
315
+ localRef: string;
316
+ foreignRef: string;
317
+ }[];
318
+ modelRef: string;
319
+ foreignRelationName: string;
320
+ foreignId?: string | undefined;
321
+ onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
322
+ onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
323
+ }>>>>;
324
+ primaryKeyFieldRefs: z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
325
+ uniqueConstraints: z.ZodOptional<z.ZodArray<z.ZodType<{
326
+ id: string;
327
+ fields: {
328
+ fieldRef: string;
329
+ }[];
330
+ }, {
331
+ id: string;
332
+ fields: {
333
+ fieldRef: string;
334
+ }[];
335
+ }, z.core.$ZodTypeInternals<{
336
+ id: string;
337
+ fields: {
338
+ fieldRef: string;
339
+ }[];
340
+ }, {
341
+ id: string;
342
+ fields: {
343
+ fieldRef: string;
344
+ }[];
345
+ }>>>>;
346
+ }, z.core.$strip>;
347
+ service: z.ZodDefault<z.ZodObject<{
348
+ create: z.ZodDefault<z.ZodObject<{
349
+ enabled: z.ZodDefault<z.ZodBoolean>;
350
+ fields: z.ZodOptional<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
351
+ transformerNames: z.ZodOptional<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
352
+ }, z.core.$strip>>;
353
+ update: z.ZodDefault<z.ZodObject<{
354
+ enabled: z.ZodDefault<z.ZodBoolean>;
355
+ fields: z.ZodOptional<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
356
+ transformerNames: z.ZodOptional<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
357
+ }, z.core.$strip>>;
358
+ delete: z.ZodDefault<z.ZodObject<{
359
+ enabled: z.ZodDefault<z.ZodBoolean>;
360
+ }, z.core.$strip>>;
361
+ transformers: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
362
+ readonly id: z.ZodString;
363
+ readonly type: z.ZodString;
364
+ }, z.core.$loose>], "type">>>;
365
+ }, z.core.$strip>>;
366
+ graphql: z.ZodOptional<z.ZodType<{
1908
367
  objectType?: {
1909
368
  enabled?: boolean | undefined;
1910
369
  fields?: string[] | undefined;
@@ -1922,20 +381,20 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
1922
381
  } | undefined;
1923
382
  } | undefined;
1924
383
  mutations?: {
1925
- delete?: {
384
+ create?: {
1926
385
  enabled?: boolean | undefined;
1927
386
  roles?: string[] | undefined;
1928
387
  } | undefined;
1929
- create?: {
388
+ update?: {
1930
389
  enabled?: boolean | undefined;
1931
390
  roles?: string[] | undefined;
1932
391
  } | undefined;
1933
- update?: {
392
+ delete?: {
1934
393
  enabled?: boolean | undefined;
1935
394
  roles?: string[] | undefined;
1936
395
  } | undefined;
1937
396
  } | undefined;
1938
- }, {
397
+ } | undefined, {
1939
398
  objectType?: {
1940
399
  enabled?: boolean | undefined;
1941
400
  fields?: string[] | undefined;
@@ -1953,20 +412,20 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
1953
412
  } | undefined;
1954
413
  } | undefined;
1955
414
  mutations?: {
1956
- delete?: {
415
+ create?: {
1957
416
  enabled?: boolean | undefined;
1958
417
  roles?: string[] | undefined;
1959
418
  } | undefined;
1960
- create?: {
419
+ update?: {
1961
420
  enabled?: boolean | undefined;
1962
421
  roles?: string[] | undefined;
1963
422
  } | undefined;
1964
- update?: {
423
+ delete?: {
1965
424
  enabled?: boolean | undefined;
1966
425
  roles?: string[] | undefined;
1967
426
  } | undefined;
1968
427
  } | undefined;
1969
- }>>>, {
428
+ } | undefined, z.core.$ZodTypeInternals<{
1970
429
  objectType?: {
1971
430
  enabled?: boolean | undefined;
1972
431
  fields?: string[] | undefined;
@@ -1984,15 +443,15 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
1984
443
  } | undefined;
1985
444
  } | undefined;
1986
445
  mutations?: {
1987
- delete?: {
446
+ create?: {
1988
447
  enabled?: boolean | undefined;
1989
448
  roles?: string[] | undefined;
1990
449
  } | undefined;
1991
- create?: {
450
+ update?: {
1992
451
  enabled?: boolean | undefined;
1993
452
  roles?: string[] | undefined;
1994
453
  } | undefined;
1995
- update?: {
454
+ delete?: {
1996
455
  enabled?: boolean | undefined;
1997
456
  roles?: string[] | undefined;
1998
457
  } | undefined;
@@ -2015,25 +474,33 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
2015
474
  } | undefined;
2016
475
  } | undefined;
2017
476
  mutations?: {
2018
- delete?: {
477
+ create?: {
2019
478
  enabled?: boolean | undefined;
2020
479
  roles?: string[] | undefined;
2021
480
  } | undefined;
2022
- create?: {
481
+ update?: {
2023
482
  enabled?: boolean | undefined;
2024
483
  roles?: string[] | undefined;
2025
484
  } | undefined;
2026
- update?: {
485
+ delete?: {
2027
486
  enabled?: boolean | undefined;
2028
487
  roles?: string[] | undefined;
2029
488
  } | undefined;
2030
489
  } | undefined;
2031
- } | undefined>;
2032
- }, "strip", z.ZodTypeAny, {
2033
- name: string;
490
+ } | undefined>>>;
491
+ }, z.core.$strip>, {
492
+ modelSlot: import("#src/references/index.js").DefinitionEntityType<false>;
493
+ }>;
494
+ export declare const createModelSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodType<{
2034
495
  id: string;
496
+ name: string;
497
+ featureRef: string;
2035
498
  model: {
2036
499
  fields: {
500
+ id: string;
501
+ name: string;
502
+ type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
503
+ isOptional: boolean;
2037
504
  options: {
2038
505
  defaultEnumValueRef?: string | undefined;
2039
506
  default: string;
@@ -2042,23 +509,19 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
2042
509
  defaultToNow?: boolean | undefined;
2043
510
  enumRef?: string | undefined;
2044
511
  };
2045
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
2046
- name: string;
2047
- id: string;
2048
- isOptional: boolean;
2049
512
  }[];
2050
513
  primaryKeyFieldRefs: string[];
2051
514
  relations?: {
2052
- name: string;
2053
515
  id: string;
2054
- onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
516
+ foreignId: string;
517
+ name: string;
2055
518
  references: {
2056
519
  localRef: string;
2057
520
  foreignRef: string;
2058
521
  }[];
2059
522
  modelRef: string;
2060
- foreignId: string;
2061
523
  foreignRelationName: string;
524
+ onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
2062
525
  onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
2063
526
  }[] | undefined;
2064
527
  uniqueConstraints?: {
@@ -2068,11 +531,7 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
2068
531
  }[];
2069
532
  }[] | undefined;
2070
533
  };
2071
- featureRef: string;
2072
534
  service: {
2073
- delete: {
2074
- enabled: boolean;
2075
- };
2076
535
  create: {
2077
536
  enabled: boolean;
2078
537
  fields?: string[] | undefined;
@@ -2083,9 +542,13 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
2083
542
  fields?: string[] | undefined;
2084
543
  transformerNames?: string[] | undefined;
2085
544
  };
545
+ delete: {
546
+ enabled: boolean;
547
+ };
2086
548
  transformers: {
2087
- type: string;
549
+ [x: string]: unknown;
2088
550
  id: string;
551
+ type: string;
2089
552
  }[];
2090
553
  };
2091
554
  graphql?: {
@@ -2106,28 +569,30 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
2106
569
  } | undefined;
2107
570
  } | undefined;
2108
571
  mutations?: {
2109
- delete?: {
572
+ create?: {
2110
573
  enabled?: boolean | undefined;
2111
574
  roles?: string[] | undefined;
2112
575
  } | undefined;
2113
- create?: {
576
+ update?: {
2114
577
  enabled?: boolean | undefined;
2115
578
  roles?: string[] | undefined;
2116
579
  } | undefined;
2117
- update?: {
580
+ delete?: {
2118
581
  enabled?: boolean | undefined;
2119
582
  roles?: string[] | undefined;
2120
583
  } | undefined;
2121
584
  } | undefined;
2122
585
  } | undefined;
2123
586
  }, {
2124
- name: string;
2125
587
  id: string;
588
+ name: string;
589
+ featureRef: string;
2126
590
  model: {
2127
591
  fields: {
2128
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
2129
- name: string;
2130
592
  id: string;
593
+ name: string;
594
+ type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
595
+ isOptional?: boolean | undefined;
2131
596
  options?: {
2132
597
  default?: string | undefined;
2133
598
  genUuid?: boolean | undefined;
@@ -2136,20 +601,19 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
2136
601
  enumRef?: string | undefined;
2137
602
  defaultEnumValueRef?: string | undefined;
2138
603
  } | undefined;
2139
- isOptional?: boolean | undefined;
2140
604
  }[];
2141
605
  primaryKeyFieldRefs: string[];
2142
606
  relations?: {
2143
- name: string;
2144
607
  id: string;
608
+ name: string;
2145
609
  references: {
2146
610
  localRef: string;
2147
611
  foreignRef: string;
2148
612
  }[];
2149
613
  modelRef: string;
2150
614
  foreignRelationName: string;
2151
- onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
2152
615
  foreignId?: string | undefined;
616
+ onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
2153
617
  onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
2154
618
  }[] | undefined;
2155
619
  uniqueConstraints?: {
@@ -2159,11 +623,7 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
2159
623
  }[];
2160
624
  }[] | undefined;
2161
625
  };
2162
- featureRef: string;
2163
626
  service?: {
2164
- delete?: {
2165
- enabled?: boolean | undefined;
2166
- } | undefined;
2167
627
  create?: {
2168
628
  enabled?: boolean | undefined;
2169
629
  fields?: string[] | undefined;
@@ -2174,10 +634,14 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
2174
634
  fields?: string[] | undefined;
2175
635
  transformerNames?: string[] | undefined;
2176
636
  } | undefined;
2177
- transformers?: z.objectInputType<{
2178
- readonly id: z.ZodString;
2179
- readonly type: z.ZodString;
2180
- }, z.ZodTypeAny, "passthrough">[] | undefined;
637
+ delete?: {
638
+ enabled?: boolean | undefined;
639
+ } | undefined;
640
+ transformers?: {
641
+ [x: string]: unknown;
642
+ id: string;
643
+ type: string;
644
+ }[] | undefined;
2181
645
  } | undefined;
2182
646
  graphql?: {
2183
647
  objectType?: {
@@ -2197,25 +661,30 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
2197
661
  } | undefined;
2198
662
  } | undefined;
2199
663
  mutations?: {
2200
- delete?: {
664
+ create?: {
2201
665
  enabled?: boolean | undefined;
2202
666
  roles?: string[] | undefined;
2203
667
  } | undefined;
2204
- create?: {
668
+ update?: {
2205
669
  enabled?: boolean | undefined;
2206
670
  roles?: string[] | undefined;
2207
671
  } | undefined;
2208
- update?: {
672
+ delete?: {
2209
673
  enabled?: boolean | undefined;
2210
674
  roles?: string[] | undefined;
2211
675
  } | undefined;
2212
676
  } | undefined;
2213
677
  } | undefined;
2214
- }>, {
2215
- name: string;
678
+ }, z.core.$ZodTypeInternals<{
2216
679
  id: string;
680
+ name: string;
681
+ featureRef: string;
2217
682
  model: {
2218
683
  fields: {
684
+ id: string;
685
+ name: string;
686
+ type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
687
+ isOptional: boolean;
2219
688
  options: {
2220
689
  defaultEnumValueRef?: string | undefined;
2221
690
  default: string;
@@ -2224,23 +693,19 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
2224
693
  defaultToNow?: boolean | undefined;
2225
694
  enumRef?: string | undefined;
2226
695
  };
2227
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
2228
- name: string;
2229
- id: string;
2230
- isOptional: boolean;
2231
696
  }[];
2232
697
  primaryKeyFieldRefs: string[];
2233
698
  relations?: {
2234
- name: string;
2235
699
  id: string;
2236
- onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
700
+ foreignId: string;
701
+ name: string;
2237
702
  references: {
2238
703
  localRef: string;
2239
704
  foreignRef: string;
2240
705
  }[];
2241
706
  modelRef: string;
2242
- foreignId: string;
2243
707
  foreignRelationName: string;
708
+ onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
2244
709
  onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
2245
710
  }[] | undefined;
2246
711
  uniqueConstraints?: {
@@ -2250,11 +715,7 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
2250
715
  }[];
2251
716
  }[] | undefined;
2252
717
  };
2253
- featureRef: string;
2254
718
  service: {
2255
- delete: {
2256
- enabled: boolean;
2257
- };
2258
719
  create: {
2259
720
  enabled: boolean;
2260
721
  fields?: string[] | undefined;
@@ -2265,9 +726,13 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
2265
726
  fields?: string[] | undefined;
2266
727
  transformerNames?: string[] | undefined;
2267
728
  };
729
+ delete: {
730
+ enabled: boolean;
731
+ };
2268
732
  transformers: {
2269
- type: string;
733
+ [x: string]: unknown;
2270
734
  id: string;
735
+ type: string;
2271
736
  }[];
2272
737
  };
2273
738
  graphql?: {
@@ -2288,28 +753,30 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
2288
753
  } | undefined;
2289
754
  } | undefined;
2290
755
  mutations?: {
2291
- delete?: {
756
+ create?: {
2292
757
  enabled?: boolean | undefined;
2293
758
  roles?: string[] | undefined;
2294
759
  } | undefined;
2295
- create?: {
760
+ update?: {
2296
761
  enabled?: boolean | undefined;
2297
762
  roles?: string[] | undefined;
2298
763
  } | undefined;
2299
- update?: {
764
+ delete?: {
2300
765
  enabled?: boolean | undefined;
2301
766
  roles?: string[] | undefined;
2302
767
  } | undefined;
2303
768
  } | undefined;
2304
769
  } | undefined;
2305
770
  }, {
2306
- name: string;
2307
771
  id: string;
772
+ name: string;
773
+ featureRef: string;
2308
774
  model: {
2309
775
  fields: {
2310
- type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
2311
- name: string;
2312
776
  id: string;
777
+ name: string;
778
+ type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
779
+ isOptional?: boolean | undefined;
2313
780
  options?: {
2314
781
  default?: string | undefined;
2315
782
  genUuid?: boolean | undefined;
@@ -2318,20 +785,19 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
2318
785
  enumRef?: string | undefined;
2319
786
  defaultEnumValueRef?: string | undefined;
2320
787
  } | undefined;
2321
- isOptional?: boolean | undefined;
2322
788
  }[];
2323
789
  primaryKeyFieldRefs: string[];
2324
790
  relations?: {
2325
- name: string;
2326
791
  id: string;
792
+ name: string;
2327
793
  references: {
2328
794
  localRef: string;
2329
795
  foreignRef: string;
2330
796
  }[];
2331
797
  modelRef: string;
2332
798
  foreignRelationName: string;
2333
- onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
2334
799
  foreignId?: string | undefined;
800
+ onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
2335
801
  onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
2336
802
  }[] | undefined;
2337
803
  uniqueConstraints?: {
@@ -2341,11 +807,7 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
2341
807
  }[];
2342
808
  }[] | undefined;
2343
809
  };
2344
- featureRef: string;
2345
810
  service?: {
2346
- delete?: {
2347
- enabled?: boolean | undefined;
2348
- } | undefined;
2349
811
  create?: {
2350
812
  enabled?: boolean | undefined;
2351
813
  fields?: string[] | undefined;
@@ -2356,10 +818,14 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
2356
818
  fields?: string[] | undefined;
2357
819
  transformerNames?: string[] | undefined;
2358
820
  } | undefined;
2359
- transformers?: z.objectInputType<{
2360
- readonly id: z.ZodString;
2361
- readonly type: z.ZodString;
2362
- }, z.ZodTypeAny, "passthrough">[] | undefined;
821
+ delete?: {
822
+ enabled?: boolean | undefined;
823
+ } | undefined;
824
+ transformers?: {
825
+ [x: string]: unknown;
826
+ id: string;
827
+ type: string;
828
+ }[] | undefined;
2363
829
  } | undefined;
2364
830
  graphql?: {
2365
831
  objectType?: {
@@ -2379,21 +845,21 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
2379
845
  } | undefined;
2380
846
  } | undefined;
2381
847
  mutations?: {
2382
- delete?: {
848
+ create?: {
2383
849
  enabled?: boolean | undefined;
2384
850
  roles?: string[] | undefined;
2385
851
  } | undefined;
2386
- create?: {
852
+ update?: {
2387
853
  enabled?: boolean | undefined;
2388
854
  roles?: string[] | undefined;
2389
855
  } | undefined;
2390
- update?: {
856
+ delete?: {
2391
857
  enabled?: boolean | undefined;
2392
858
  roles?: string[] | undefined;
2393
859
  } | undefined;
2394
860
  } | undefined;
2395
861
  } | undefined;
2396
- }>;
862
+ }>>;
2397
863
  export type ModelConfig = def.InferOutput<typeof createModelSchema>;
2398
864
  export type ModelConfigInput = def.InferInput<typeof createModelSchema>;
2399
865
  //# sourceMappingURL=index.d.ts.map