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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/dist/definition/feature/feature-utils.js +1 -1
  2. package/dist/definition/feature/feature-utils.js.map +1 -1
  3. package/dist/definition/project-definition-container.d.ts +3 -2
  4. package/dist/definition/project-definition-container.d.ts.map +1 -1
  5. package/dist/definition/project-definition-container.js +8 -6
  6. package/dist/definition/project-definition-container.js.map +1 -1
  7. package/dist/definition/project-definition-container.test-utils.d.ts.map +1 -1
  8. package/dist/definition/project-definition-container.test-utils.js +3 -7
  9. package/dist/definition/project-definition-container.test-utils.js.map +1 -1
  10. package/dist/migrations/index.d.ts.map +1 -1
  11. package/dist/migrations/index.js +2 -0
  12. package/dist/migrations/index.js.map +1 -1
  13. package/dist/migrations/migration-015-null-parent-refs.d.ts +17 -0
  14. package/dist/migrations/migration-015-null-parent-refs.d.ts.map +1 -0
  15. package/dist/migrations/migration-015-null-parent-refs.js +20 -0
  16. package/dist/migrations/migration-015-null-parent-refs.js.map +1 -0
  17. package/dist/parser/parser.d.ts +2 -2
  18. package/dist/parser/parser.d.ts.map +1 -1
  19. package/dist/parser/parser.js +11 -7
  20. package/dist/parser/parser.js.map +1 -1
  21. package/dist/plugins/migrations/run-migrations.js.map +1 -1
  22. package/dist/plugins/schema/index.d.ts +0 -2
  23. package/dist/plugins/schema/index.d.ts.map +1 -1
  24. package/dist/plugins/schema/index.js +0 -2
  25. package/dist/plugins/schema/index.js.map +1 -1
  26. package/dist/plugins/spec/config-spec.d.ts +3 -3
  27. package/dist/plugins/spec/config-spec.d.ts.map +1 -1
  28. package/dist/plugins/spec/config-spec.js +3 -3
  29. package/dist/plugins/spec/config-spec.js.map +1 -1
  30. package/dist/references/{ref-builder.d.ts → definition-ref-builder.d.ts} +13 -137
  31. package/dist/references/definition-ref-builder.d.ts.map +1 -0
  32. package/dist/references/definition-ref-builder.js +242 -0
  33. package/dist/references/definition-ref-builder.js.map +1 -0
  34. package/dist/references/deserialize-schema.d.ts +12 -1
  35. package/dist/references/deserialize-schema.d.ts.map +1 -1
  36. package/dist/references/deserialize-schema.js +24 -4
  37. package/dist/references/deserialize-schema.js.map +1 -1
  38. package/dist/references/extend-parser-context-with-refs.d.ts +16 -0
  39. package/dist/references/extend-parser-context-with-refs.d.ts.map +1 -0
  40. package/dist/references/extend-parser-context-with-refs.js +82 -0
  41. package/dist/references/extend-parser-context-with-refs.js.map +1 -0
  42. package/dist/references/extract-definition-refs.d.ts +19 -0
  43. package/dist/references/extract-definition-refs.d.ts.map +1 -0
  44. package/dist/references/extract-definition-refs.js +63 -0
  45. package/dist/references/extract-definition-refs.js.map +1 -0
  46. package/dist/references/fix-ref-deletions.d.ts +6 -6
  47. package/dist/references/fix-ref-deletions.d.ts.map +1 -1
  48. package/dist/references/fix-ref-deletions.js +13 -5
  49. package/dist/references/fix-ref-deletions.js.map +1 -1
  50. package/dist/references/index.d.ts +2 -1
  51. package/dist/references/index.d.ts.map +1 -1
  52. package/dist/references/index.js +2 -1
  53. package/dist/references/index.js.map +1 -1
  54. package/dist/references/markers.d.ts +22 -0
  55. package/dist/references/markers.d.ts.map +1 -0
  56. package/dist/references/markers.js +21 -0
  57. package/dist/references/markers.js.map +1 -0
  58. package/dist/references/parse-schema-with-references.d.ts +2 -2
  59. package/dist/references/parse-schema-with-references.d.ts.map +1 -1
  60. package/dist/references/parse-schema-with-references.js +13 -4
  61. package/dist/references/parse-schema-with-references.js.map +1 -1
  62. package/dist/references/resolve-zod-ref-payload-names.d.ts +1 -1
  63. package/dist/references/resolve-zod-ref-payload-names.d.ts.map +1 -1
  64. package/dist/references/serialize-schema.d.ts +2 -2
  65. package/dist/references/serialize-schema.d.ts.map +1 -1
  66. package/dist/references/serialize-schema.js +4 -3
  67. package/dist/references/serialize-schema.js.map +1 -1
  68. package/dist/references/strip-ref-markers.d.ts +7 -0
  69. package/dist/references/strip-ref-markers.d.ts.map +1 -0
  70. package/dist/references/strip-ref-markers.js +22 -0
  71. package/dist/references/strip-ref-markers.js.map +1 -0
  72. package/dist/references/types.d.ts +2 -2
  73. package/dist/references/types.d.ts.map +1 -1
  74. package/dist/schema/apps/admin/app.d.ts +958 -200
  75. package/dist/schema/apps/admin/app.d.ts.map +1 -1
  76. package/dist/schema/apps/admin/app.js +2 -3
  77. package/dist/schema/apps/admin/app.js.map +1 -1
  78. package/dist/schema/apps/admin/sections/base.d.ts +15 -3
  79. package/dist/schema/apps/admin/sections/base.d.ts.map +1 -1
  80. package/dist/schema/apps/admin/sections/base.js +4 -4
  81. package/dist/schema/apps/admin/sections/base.js.map +1 -1
  82. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.d.ts +12 -6
  83. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.d.ts.map +1 -1
  84. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.js +9 -5
  85. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.js.map +1 -1
  86. package/dist/schema/apps/admin/sections/crud-form/built-in-input.d.ts +19 -19
  87. package/dist/schema/apps/admin/sections/crud-form/built-in-input.d.ts.map +1 -1
  88. package/dist/schema/apps/admin/sections/crud-form/built-in-input.js +18 -19
  89. package/dist/schema/apps/admin/sections/crud-form/built-in-input.js.map +1 -1
  90. package/dist/schema/apps/admin/sections/crud-form/types.d.ts +1 -1
  91. package/dist/schema/apps/admin/sections/crud-form/types.d.ts.map +1 -1
  92. package/dist/schema/apps/admin/sections/crud.d.ts +468 -130
  93. package/dist/schema/apps/admin/sections/crud.d.ts.map +1 -1
  94. package/dist/schema/apps/admin/sections/crud.js +14 -14
  95. package/dist/schema/apps/admin/sections/crud.js.map +1 -1
  96. package/dist/schema/apps/backend/index.d.ts +1 -1
  97. package/dist/schema/apps/types.d.ts +1 -1
  98. package/dist/schema/apps/types.js +1 -1
  99. package/dist/schema/apps/web/index.d.ts +2 -2
  100. package/dist/schema/apps/web/index.d.ts.map +1 -1
  101. package/dist/schema/apps/web/index.js +2 -3
  102. package/dist/schema/apps/web/index.js.map +1 -1
  103. package/dist/schema/auth/index.d.ts +1 -1
  104. package/dist/schema/auth/index.js +1 -1
  105. package/dist/schema/creator/schema-creator.d.ts +3 -2
  106. package/dist/schema/creator/schema-creator.d.ts.map +1 -1
  107. package/dist/schema/creator/schema-creator.js +8 -1
  108. package/dist/schema/creator/schema-creator.js.map +1 -1
  109. package/dist/schema/creator/types.d.ts +35 -2
  110. package/dist/schema/creator/types.d.ts.map +1 -1
  111. package/dist/schema/features/feature.d.ts +29 -15
  112. package/dist/schema/features/feature.d.ts.map +1 -1
  113. package/dist/schema/features/feature.js +7 -4
  114. package/dist/schema/features/feature.js.map +1 -1
  115. package/dist/schema/features/theme.d.ts +12 -12
  116. package/dist/schema/models/enums.d.ts +62 -19
  117. package/dist/schema/models/enums.d.ts.map +1 -1
  118. package/dist/schema/models/enums.js +5 -4
  119. package/dist/schema/models/enums.js.map +1 -1
  120. package/dist/schema/models/graphql.d.ts +9 -9
  121. package/dist/schema/models/graphql.d.ts.map +1 -1
  122. package/dist/schema/models/graphql.js +12 -13
  123. package/dist/schema/models/graphql.js.map +1 -1
  124. package/dist/schema/models/index.d.ts +545 -131
  125. package/dist/schema/models/index.d.ts.map +1 -1
  126. package/dist/schema/models/index.js +24 -19
  127. package/dist/schema/models/index.js.map +1 -1
  128. package/dist/schema/models/transformers/built-in-transformers.d.ts +87 -23
  129. package/dist/schema/models/transformers/built-in-transformers.d.ts.map +1 -1
  130. package/dist/schema/models/transformers/built-in-transformers.js +10 -10
  131. package/dist/schema/models/transformers/built-in-transformers.js.map +1 -1
  132. package/dist/schema/models/transformers/transformers.d.ts +14 -8
  133. package/dist/schema/models/transformers/transformers.d.ts.map +1 -1
  134. package/dist/schema/models/transformers/transformers.js +9 -5
  135. package/dist/schema/models/transformers/transformers.js.map +1 -1
  136. package/dist/schema/models/transformers/types.d.ts +4 -3
  137. package/dist/schema/models/transformers/types.d.ts.map +1 -1
  138. package/dist/schema/models/transformers/types.js +2 -4
  139. package/dist/schema/models/transformers/types.js.map +1 -1
  140. package/dist/schema/plugins/definition.d.ts +64 -70
  141. package/dist/schema/plugins/definition.d.ts.map +1 -1
  142. package/dist/schema/plugins/definition.js +18 -16
  143. package/dist/schema/plugins/definition.js.map +1 -1
  144. package/dist/schema/project-definition.d.ts +1960 -534
  145. package/dist/schema/project-definition.d.ts.map +1 -1
  146. package/dist/schema/project-definition.js +1 -2
  147. package/dist/schema/project-definition.js.map +1 -1
  148. package/dist/schema/settings.d.ts +15 -15
  149. package/dist/schema/template-extractor/index.d.ts +1 -1
  150. package/dist/tools/model-merger/model-merger.d.ts +6 -6
  151. package/dist/tools/model-merger/model-merger.d.ts.map +1 -1
  152. package/dist/web/hooks/index.d.ts +1 -1
  153. package/dist/web/hooks/index.d.ts.map +1 -1
  154. package/dist/web/hooks/index.js +1 -1
  155. package/dist/web/hooks/index.js.map +1 -1
  156. package/dist/web/hooks/use-definition-schema.d.ts +3 -0
  157. package/dist/web/hooks/use-definition-schema.d.ts.map +1 -0
  158. package/dist/web/hooks/use-definition-schema.js +7 -0
  159. package/dist/web/hooks/use-definition-schema.js.map +1 -0
  160. package/dist/web/hooks/use-project-definition.d.ts +3 -3
  161. package/dist/web/hooks/use-project-definition.d.ts.map +1 -1
  162. package/package.json +5 -5
  163. package/dist/plugins/schema/common.d.ts +0 -6
  164. package/dist/plugins/schema/common.d.ts.map +0 -1
  165. package/dist/plugins/schema/common.js +0 -2
  166. package/dist/plugins/schema/common.js.map +0 -1
  167. package/dist/plugins/schema/parser.d.ts +0 -19
  168. package/dist/plugins/schema/parser.d.ts.map +0 -1
  169. package/dist/plugins/schema/parser.js +0 -41
  170. package/dist/plugins/schema/parser.js.map +0 -1
  171. package/dist/plugins/schema/zod-with-plugins.d.ts +0 -12
  172. package/dist/plugins/schema/zod-with-plugins.d.ts.map +0 -1
  173. package/dist/plugins/schema/zod-with-plugins.js +0 -26
  174. package/dist/plugins/schema/zod-with-plugins.js.map +0 -1
  175. package/dist/references/ref-builder.d.ts.map +0 -1
  176. package/dist/references/ref-builder.js +0 -494
  177. package/dist/references/ref-builder.js.map +0 -1
  178. package/dist/web/hooks/use-plugin-enhanced-schema.d.ts +0 -4
  179. package/dist/web/hooks/use-plugin-enhanced-schema.d.ts.map +0 -1
  180. package/dist/web/hooks/use-plugin-enhanced-schema.js +0 -8
  181. package/dist/web/hooks/use-plugin-enhanced-schema.js.map +0 -1
@@ -1,16 +1,34 @@
1
1
  import { z } from 'zod';
2
2
  import type { def } from '#src/schema/creator/index.js';
3
3
  import type { AdminCrudSectionConfig } from './sections/index.js';
4
- export declare const createAdminSectionSchema: (options: import("#src/schema/creator/index.js").DefinitionSchemaCreatorOptions) => import("#src/references/index.js").ZodRef<import("#src/references/index.js").ZodRef<z.ZodObject<{
4
+ export declare const createAdminSectionSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodObject<{
5
+ id: z.ZodDefault<z.ZodString>;
6
+ name: z.ZodString;
7
+ featureRef: z.ZodEffects<z.ZodString, string, string>;
8
+ icon: z.ZodOptional<z.ZodString>;
9
+ type: z.ZodString;
10
+ }, "strip", z.ZodTypeAny, {
11
+ type: string;
12
+ name: string;
13
+ id: string;
14
+ featureRef: string;
15
+ icon?: string | undefined;
16
+ }, {
17
+ type: string;
18
+ name: string;
19
+ featureRef: string;
20
+ icon?: string | undefined;
21
+ id?: string | undefined;
22
+ }>, z.ZodObject<{
5
23
  type: z.ZodLiteral<"crud">;
6
- modelRef: import("#src/references/index.js").ZodRef<z.ZodString>;
24
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
7
25
  disableCreate: z.ZodOptional<z.ZodBoolean>;
8
26
  table: z.ZodObject<{
9
27
  columns: z.ZodArray<z.ZodObject<{
10
28
  label: z.ZodString;
11
29
  display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12
30
  type: z.ZodLiteral<"text">;
13
- modelFieldRef: import("#src/references/index.js").ZodRef<z.ZodString>;
31
+ modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
14
32
  }, "strip", z.ZodTypeAny, {
15
33
  type: "text";
16
34
  modelFieldRef: string;
@@ -19,7 +37,7 @@ export declare const createAdminSectionSchema: (options: import("#src/schema/cre
19
37
  modelFieldRef: string;
20
38
  }>, z.ZodObject<{
21
39
  type: z.ZodLiteral<"foreign">;
22
- localRelationRef: import("#src/references/index.js").ZodRef<z.ZodString>;
40
+ localRelationRef: z.ZodEffects<z.ZodString, string, string>;
23
41
  labelExpression: z.ZodString;
24
42
  valueExpression: z.ZodString;
25
43
  }, "strip", z.ZodTypeAny, {
@@ -84,54 +102,66 @@ export declare const createAdminSectionSchema: (options: import("#src/schema/cre
84
102
  }[];
85
103
  }>;
86
104
  form: z.ZodObject<{
87
- fields: z.ZodArray<import("../../../index.js").ZodWithPlugins<z.ZodObject<{
105
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
88
106
  type: z.ZodString;
89
107
  label: z.ZodString;
90
- }, "strip", z.ZodTypeAny, {
91
- type: string;
92
- label: string;
93
- }, {
108
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
109
+ type: z.ZodString;
110
+ label: z.ZodString;
111
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
112
+ type: z.ZodString;
113
+ label: z.ZodString;
114
+ }, z.ZodTypeAny, "passthrough">>, {
94
115
  type: string;
95
116
  label: string;
96
- }>>, "many">;
117
+ }, z.objectInputType<{
118
+ type: z.ZodString;
119
+ label: z.ZodString;
120
+ }, z.ZodTypeAny, "passthrough">>, "many">;
97
121
  }, "strip", z.ZodTypeAny, {
98
122
  fields: {
99
123
  type: string;
100
124
  label: string;
101
125
  }[];
102
126
  }, {
103
- fields: {
104
- type: string;
105
- label: string;
106
- }[];
127
+ fields: z.objectInputType<{
128
+ type: z.ZodString;
129
+ label: z.ZodString;
130
+ }, z.ZodTypeAny, "passthrough">[];
107
131
  }>;
108
- embeddedForms: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
132
+ embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
109
133
  id: z.ZodString;
110
134
  name: z.ZodString;
111
- modelRef: import("#src/references/index.js").ZodRef<z.ZodString>;
135
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
112
136
  includeIdField: z.ZodOptional<z.ZodBoolean>;
113
137
  type: z.ZodLiteral<"object">;
114
138
  form: z.ZodObject<{
115
- fields: z.ZodArray<import("../../../index.js").ZodWithPlugins<z.ZodObject<{
139
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
116
140
  type: z.ZodString;
117
141
  label: z.ZodString;
118
- }, "strip", z.ZodTypeAny, {
119
- type: string;
120
- label: string;
121
- }, {
142
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
143
+ type: z.ZodString;
144
+ label: z.ZodString;
145
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
146
+ type: z.ZodString;
147
+ label: z.ZodString;
148
+ }, z.ZodTypeAny, "passthrough">>, {
122
149
  type: string;
123
150
  label: string;
124
- }>>, "many">;
151
+ }, z.objectInputType<{
152
+ type: z.ZodString;
153
+ label: z.ZodString;
154
+ }, z.ZodTypeAny, "passthrough">>, "many">;
125
155
  }, "strip", z.ZodTypeAny, {
126
156
  fields: {
127
157
  type: string;
128
158
  label: string;
129
159
  }[];
130
160
  }, {
131
- fields: {
132
- type: string;
133
- label: string;
134
- }[];
161
+ fields: z.objectInputType<{
162
+ type: z.ZodString;
163
+ label: z.ZodString;
164
+ }, z.ZodTypeAny, "passthrough">[];
135
165
  }>;
136
166
  }, "strip", z.ZodTypeAny, {
137
167
  type: "object";
@@ -151,16 +181,16 @@ export declare const createAdminSectionSchema: (options: import("#src/schema/cre
151
181
  id: string;
152
182
  modelRef: string;
153
183
  form: {
154
- fields: {
155
- type: string;
156
- label: string;
157
- }[];
184
+ fields: z.objectInputType<{
185
+ type: z.ZodString;
186
+ label: z.ZodString;
187
+ }, z.ZodTypeAny, "passthrough">[];
158
188
  };
159
189
  includeIdField?: boolean | undefined;
160
190
  }>, z.ZodObject<{
161
191
  id: z.ZodString;
162
192
  name: z.ZodString;
163
- modelRef: import("#src/references/index.js").ZodRef<z.ZodString>;
193
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
164
194
  includeIdField: z.ZodOptional<z.ZodBoolean>;
165
195
  type: z.ZodLiteral<"list">;
166
196
  table: z.ZodObject<{
@@ -168,7 +198,7 @@ export declare const createAdminSectionSchema: (options: import("#src/schema/cre
168
198
  label: z.ZodString;
169
199
  display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
170
200
  type: z.ZodLiteral<"text">;
171
- modelFieldRef: import("#src/references/index.js").ZodRef<z.ZodString>;
201
+ modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
172
202
  }, "strip", z.ZodTypeAny, {
173
203
  type: "text";
174
204
  modelFieldRef: string;
@@ -177,7 +207,7 @@ export declare const createAdminSectionSchema: (options: import("#src/schema/cre
177
207
  modelFieldRef: string;
178
208
  }>, z.ZodObject<{
179
209
  type: z.ZodLiteral<"foreign">;
180
- localRelationRef: import("#src/references/index.js").ZodRef<z.ZodString>;
210
+ localRelationRef: z.ZodEffects<z.ZodString, string, string>;
181
211
  labelExpression: z.ZodString;
182
212
  valueExpression: z.ZodString;
183
213
  }, "strip", z.ZodTypeAny, {
@@ -242,26 +272,32 @@ export declare const createAdminSectionSchema: (options: import("#src/schema/cre
242
272
  }[];
243
273
  }>;
244
274
  form: z.ZodObject<{
245
- fields: z.ZodArray<import("../../../index.js").ZodWithPlugins<z.ZodObject<{
275
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
246
276
  type: z.ZodString;
247
277
  label: z.ZodString;
248
- }, "strip", z.ZodTypeAny, {
249
- type: string;
250
- label: string;
251
- }, {
278
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
279
+ type: z.ZodString;
280
+ label: z.ZodString;
281
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
282
+ type: z.ZodString;
283
+ label: z.ZodString;
284
+ }, z.ZodTypeAny, "passthrough">>, {
252
285
  type: string;
253
286
  label: string;
254
- }>>, "many">;
287
+ }, z.objectInputType<{
288
+ type: z.ZodString;
289
+ label: z.ZodString;
290
+ }, z.ZodTypeAny, "passthrough">>, "many">;
255
291
  }, "strip", z.ZodTypeAny, {
256
292
  fields: {
257
293
  type: string;
258
294
  label: string;
259
295
  }[];
260
296
  }, {
261
- fields: {
262
- type: string;
263
- label: string;
264
- }[];
297
+ fields: z.objectInputType<{
298
+ type: z.ZodString;
299
+ label: z.ZodString;
300
+ }, z.ZodTypeAny, "passthrough">[];
265
301
  }>;
266
302
  }, "strip", z.ZodTypeAny, {
267
303
  type: "list";
@@ -290,6 +326,44 @@ export declare const createAdminSectionSchema: (options: import("#src/schema/cre
290
326
  };
291
327
  includeIdField?: boolean | undefined;
292
328
  }, {
329
+ type: "list";
330
+ name: string;
331
+ id: string;
332
+ modelRef: string;
333
+ form: {
334
+ fields: z.objectInputType<{
335
+ type: z.ZodString;
336
+ label: z.ZodString;
337
+ }, z.ZodTypeAny, "passthrough">[];
338
+ };
339
+ table: {
340
+ columns: {
341
+ label: string;
342
+ display: {
343
+ type: "foreign";
344
+ localRelationRef: string;
345
+ labelExpression: string;
346
+ valueExpression: string;
347
+ } | {
348
+ type: "text";
349
+ modelFieldRef: string;
350
+ };
351
+ }[];
352
+ };
353
+ includeIdField?: boolean | undefined;
354
+ }>]>, {
355
+ type: "object";
356
+ name: string;
357
+ id: string;
358
+ modelRef: string;
359
+ form: {
360
+ fields: {
361
+ type: string;
362
+ label: string;
363
+ }[];
364
+ };
365
+ includeIdField?: boolean | undefined;
366
+ } | {
293
367
  type: "list";
294
368
  name: string;
295
369
  id: string;
@@ -315,17 +389,48 @@ export declare const createAdminSectionSchema: (options: import("#src/schema/cre
315
389
  }[];
316
390
  };
317
391
  includeIdField?: boolean | undefined;
318
- }>]>>, "many">>;
319
- id: z.ZodDefault<z.ZodString>;
320
- name: z.ZodString;
321
- featureRef: import("#src/references/index.js").ZodRef<z.ZodString>;
322
- icon: z.ZodOptional<z.ZodString>;
392
+ }, {
393
+ type: "object";
394
+ name: string;
395
+ id: string;
396
+ modelRef: string;
397
+ form: {
398
+ fields: z.objectInputType<{
399
+ type: z.ZodString;
400
+ label: z.ZodString;
401
+ }, z.ZodTypeAny, "passthrough">[];
402
+ };
403
+ includeIdField?: boolean | undefined;
404
+ } | {
405
+ type: "list";
406
+ name: string;
407
+ id: string;
408
+ modelRef: string;
409
+ form: {
410
+ fields: z.objectInputType<{
411
+ type: z.ZodString;
412
+ label: z.ZodString;
413
+ }, z.ZodTypeAny, "passthrough">[];
414
+ };
415
+ table: {
416
+ columns: {
417
+ label: string;
418
+ display: {
419
+ type: "foreign";
420
+ localRelationRef: string;
421
+ labelExpression: string;
422
+ valueExpression: string;
423
+ } | {
424
+ type: "text";
425
+ modelFieldRef: string;
426
+ };
427
+ }[];
428
+ };
429
+ includeIdField?: boolean | undefined;
430
+ }>, "many">>;
323
431
  }, "strip", z.ZodTypeAny, {
324
432
  type: "crud";
325
- name: string;
326
- id: string;
327
433
  modelRef: string;
328
- featureRef: string;
329
434
  form: {
330
435
  fields: {
331
436
  type: string;
@@ -346,7 +451,6 @@ export declare const createAdminSectionSchema: (options: import("#src/schema/cre
346
451
  };
347
452
  }[];
348
453
  };
349
- icon?: string | undefined;
350
454
  disableCreate?: boolean | undefined;
351
455
  embeddedForms?: ({
352
456
  type: "object";
@@ -389,9 +493,76 @@ export declare const createAdminSectionSchema: (options: import("#src/schema/cre
389
493
  })[] | undefined;
390
494
  }, {
391
495
  type: "crud";
392
- name: string;
393
496
  modelRef: string;
497
+ form: {
498
+ fields: z.objectInputType<{
499
+ type: z.ZodString;
500
+ label: z.ZodString;
501
+ }, z.ZodTypeAny, "passthrough">[];
502
+ };
503
+ table: {
504
+ columns: {
505
+ label: string;
506
+ display: {
507
+ type: "foreign";
508
+ localRelationRef: string;
509
+ labelExpression: string;
510
+ valueExpression: string;
511
+ } | {
512
+ type: "text";
513
+ modelFieldRef: string;
514
+ };
515
+ }[];
516
+ };
517
+ disableCreate?: boolean | undefined;
518
+ embeddedForms?: ({
519
+ type: "object";
520
+ name: string;
521
+ id: string;
522
+ modelRef: string;
523
+ form: {
524
+ fields: z.objectInputType<{
525
+ type: z.ZodString;
526
+ label: z.ZodString;
527
+ }, z.ZodTypeAny, "passthrough">[];
528
+ };
529
+ includeIdField?: boolean | undefined;
530
+ } | {
531
+ type: "list";
532
+ name: string;
533
+ id: string;
534
+ modelRef: string;
535
+ form: {
536
+ fields: z.objectInputType<{
537
+ type: z.ZodString;
538
+ label: z.ZodString;
539
+ }, z.ZodTypeAny, "passthrough">[];
540
+ };
541
+ table: {
542
+ columns: {
543
+ label: string;
544
+ display: {
545
+ type: "foreign";
546
+ localRelationRef: string;
547
+ labelExpression: string;
548
+ valueExpression: string;
549
+ } | {
550
+ type: "text";
551
+ modelFieldRef: string;
552
+ };
553
+ }[];
554
+ };
555
+ includeIdField?: boolean | undefined;
556
+ })[] | undefined;
557
+ }>>, {
558
+ type: string;
559
+ name: string;
560
+ id: string;
394
561
  featureRef: string;
562
+ icon?: string | undefined;
563
+ } & {
564
+ type: "crud";
565
+ modelRef: string;
395
566
  form: {
396
567
  fields: {
397
568
  type: string;
@@ -412,8 +583,6 @@ export declare const createAdminSectionSchema: (options: import("#src/schema/cre
412
583
  };
413
584
  }[];
414
585
  };
415
- icon?: string | undefined;
416
- id?: string | undefined;
417
586
  disableCreate?: boolean | undefined;
418
587
  embeddedForms?: ({
419
588
  type: "object";
@@ -454,32 +623,257 @@ export declare const createAdminSectionSchema: (options: import("#src/schema/cre
454
623
  };
455
624
  includeIdField?: boolean | undefined;
456
625
  })[] | undefined;
457
- }>>>;
458
- export type AdminSectionConfig = AdminCrudSectionConfig;
459
- export type AdminSectionConfigInput = def.InferInput<typeof createAdminSectionSchema>;
460
- export declare const createAdminAppSchema: (options: import("#src/schema/creator/index.js").DefinitionSchemaCreatorOptions) => z.ZodObject<{
461
- type: z.ZodLiteral<"admin">;
462
- allowedRoles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
463
- sections: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<import("#src/references/index.js").ZodRef<z.ZodObject<{
464
- type: z.ZodLiteral<"crud">;
465
- modelRef: import("#src/references/index.js").ZodRef<z.ZodString>;
466
- disableCreate: z.ZodOptional<z.ZodBoolean>;
467
- table: z.ZodObject<{
468
- columns: z.ZodArray<z.ZodObject<{
626
+ }, {
627
+ type: string;
628
+ name: string;
629
+ featureRef: string;
630
+ icon?: string | undefined;
631
+ id?: string | undefined;
632
+ } & {
633
+ type: "crud";
634
+ modelRef: string;
635
+ form: {
636
+ fields: z.objectInputType<{
637
+ type: z.ZodString;
638
+ label: z.ZodString;
639
+ }, z.ZodTypeAny, "passthrough">[];
640
+ };
641
+ table: {
642
+ columns: {
643
+ label: string;
644
+ display: {
645
+ type: "foreign";
646
+ localRelationRef: string;
647
+ labelExpression: string;
648
+ valueExpression: string;
649
+ } | {
650
+ type: "text";
651
+ modelFieldRef: string;
652
+ };
653
+ }[];
654
+ };
655
+ disableCreate?: boolean | undefined;
656
+ embeddedForms?: ({
657
+ type: "object";
658
+ name: string;
659
+ id: string;
660
+ modelRef: string;
661
+ form: {
662
+ fields: z.objectInputType<{
663
+ type: z.ZodString;
469
664
  label: z.ZodString;
470
- display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
471
- type: z.ZodLiteral<"text">;
472
- modelFieldRef: import("#src/references/index.js").ZodRef<z.ZodString>;
473
- }, "strip", z.ZodTypeAny, {
474
- type: "text";
475
- modelFieldRef: string;
476
- }, {
477
- type: "text";
478
- modelFieldRef: string;
479
- }>, z.ZodObject<{
480
- type: z.ZodLiteral<"foreign">;
481
- localRelationRef: import("#src/references/index.js").ZodRef<z.ZodString>;
482
- labelExpression: z.ZodString;
665
+ }, z.ZodTypeAny, "passthrough">[];
666
+ };
667
+ includeIdField?: boolean | undefined;
668
+ } | {
669
+ type: "list";
670
+ name: string;
671
+ id: string;
672
+ modelRef: string;
673
+ form: {
674
+ fields: z.objectInputType<{
675
+ type: z.ZodString;
676
+ label: z.ZodString;
677
+ }, z.ZodTypeAny, "passthrough">[];
678
+ };
679
+ table: {
680
+ columns: {
681
+ label: string;
682
+ display: {
683
+ type: "foreign";
684
+ localRelationRef: string;
685
+ labelExpression: string;
686
+ valueExpression: string;
687
+ } | {
688
+ type: "text";
689
+ modelFieldRef: string;
690
+ };
691
+ }[];
692
+ };
693
+ includeIdField?: boolean | undefined;
694
+ })[] | undefined;
695
+ }>, {
696
+ type: string;
697
+ name: string;
698
+ id: string;
699
+ featureRef: string;
700
+ icon?: string | undefined;
701
+ } & {
702
+ type: "crud";
703
+ modelRef: string;
704
+ form: {
705
+ fields: {
706
+ type: string;
707
+ label: string;
708
+ }[];
709
+ };
710
+ table: {
711
+ columns: {
712
+ label: string;
713
+ display: {
714
+ type: "foreign";
715
+ localRelationRef: string;
716
+ labelExpression: string;
717
+ valueExpression: string;
718
+ } | {
719
+ type: "text";
720
+ modelFieldRef: string;
721
+ };
722
+ }[];
723
+ };
724
+ disableCreate?: boolean | undefined;
725
+ embeddedForms?: ({
726
+ type: "object";
727
+ name: string;
728
+ id: string;
729
+ modelRef: string;
730
+ form: {
731
+ fields: {
732
+ type: string;
733
+ label: string;
734
+ }[];
735
+ };
736
+ includeIdField?: boolean | undefined;
737
+ } | {
738
+ type: "list";
739
+ name: string;
740
+ id: string;
741
+ modelRef: string;
742
+ form: {
743
+ fields: {
744
+ type: string;
745
+ label: string;
746
+ }[];
747
+ };
748
+ table: {
749
+ columns: {
750
+ label: string;
751
+ display: {
752
+ type: "foreign";
753
+ localRelationRef: string;
754
+ labelExpression: string;
755
+ valueExpression: string;
756
+ } | {
757
+ type: "text";
758
+ modelFieldRef: string;
759
+ };
760
+ }[];
761
+ };
762
+ includeIdField?: boolean | undefined;
763
+ })[] | undefined;
764
+ }, {
765
+ type: string;
766
+ name: string;
767
+ featureRef: string;
768
+ icon?: string | undefined;
769
+ id?: string | undefined;
770
+ } & {
771
+ type: "crud";
772
+ modelRef: string;
773
+ form: {
774
+ fields: z.objectInputType<{
775
+ type: z.ZodString;
776
+ label: z.ZodString;
777
+ }, z.ZodTypeAny, "passthrough">[];
778
+ };
779
+ table: {
780
+ columns: {
781
+ label: string;
782
+ display: {
783
+ type: "foreign";
784
+ localRelationRef: string;
785
+ labelExpression: string;
786
+ valueExpression: string;
787
+ } | {
788
+ type: "text";
789
+ modelFieldRef: string;
790
+ };
791
+ }[];
792
+ };
793
+ disableCreate?: boolean | undefined;
794
+ embeddedForms?: ({
795
+ type: "object";
796
+ name: string;
797
+ id: string;
798
+ modelRef: string;
799
+ form: {
800
+ fields: z.objectInputType<{
801
+ type: z.ZodString;
802
+ label: z.ZodString;
803
+ }, z.ZodTypeAny, "passthrough">[];
804
+ };
805
+ includeIdField?: boolean | undefined;
806
+ } | {
807
+ type: "list";
808
+ name: string;
809
+ id: string;
810
+ modelRef: string;
811
+ form: {
812
+ fields: z.objectInputType<{
813
+ type: z.ZodString;
814
+ label: z.ZodString;
815
+ }, z.ZodTypeAny, "passthrough">[];
816
+ };
817
+ table: {
818
+ columns: {
819
+ label: string;
820
+ display: {
821
+ type: "foreign";
822
+ localRelationRef: string;
823
+ labelExpression: string;
824
+ valueExpression: string;
825
+ } | {
826
+ type: "text";
827
+ modelFieldRef: string;
828
+ };
829
+ }[];
830
+ };
831
+ includeIdField?: boolean | undefined;
832
+ })[] | undefined;
833
+ }>;
834
+ export type AdminSectionConfig = AdminCrudSectionConfig;
835
+ export type AdminSectionConfigInput = def.InferInput<typeof createAdminSectionSchema>;
836
+ export declare const createAdminAppSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
837
+ type: z.ZodLiteral<"admin">;
838
+ allowedRoles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
839
+ sections: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodObject<{
840
+ id: z.ZodDefault<z.ZodString>;
841
+ name: z.ZodString;
842
+ featureRef: z.ZodEffects<z.ZodString, string, string>;
843
+ icon: z.ZodOptional<z.ZodString>;
844
+ type: z.ZodString;
845
+ }, "strip", z.ZodTypeAny, {
846
+ type: string;
847
+ name: string;
848
+ id: string;
849
+ featureRef: string;
850
+ icon?: string | undefined;
851
+ }, {
852
+ type: string;
853
+ name: string;
854
+ featureRef: string;
855
+ icon?: string | undefined;
856
+ id?: string | undefined;
857
+ }>, z.ZodObject<{
858
+ type: z.ZodLiteral<"crud">;
859
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
860
+ disableCreate: z.ZodOptional<z.ZodBoolean>;
861
+ table: z.ZodObject<{
862
+ columns: z.ZodArray<z.ZodObject<{
863
+ label: z.ZodString;
864
+ display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
865
+ type: z.ZodLiteral<"text">;
866
+ modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
867
+ }, "strip", z.ZodTypeAny, {
868
+ type: "text";
869
+ modelFieldRef: string;
870
+ }, {
871
+ type: "text";
872
+ modelFieldRef: string;
873
+ }>, z.ZodObject<{
874
+ type: z.ZodLiteral<"foreign">;
875
+ localRelationRef: z.ZodEffects<z.ZodString, string, string>;
876
+ labelExpression: z.ZodString;
483
877
  valueExpression: z.ZodString;
484
878
  }, "strip", z.ZodTypeAny, {
485
879
  type: "foreign";
@@ -543,54 +937,66 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
543
937
  }[];
544
938
  }>;
545
939
  form: z.ZodObject<{
546
- fields: z.ZodArray<import("../../../index.js").ZodWithPlugins<z.ZodObject<{
940
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
547
941
  type: z.ZodString;
548
942
  label: z.ZodString;
549
- }, "strip", z.ZodTypeAny, {
550
- type: string;
551
- label: string;
552
- }, {
943
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
944
+ type: z.ZodString;
945
+ label: z.ZodString;
946
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
947
+ type: z.ZodString;
948
+ label: z.ZodString;
949
+ }, z.ZodTypeAny, "passthrough">>, {
553
950
  type: string;
554
951
  label: string;
555
- }>>, "many">;
952
+ }, z.objectInputType<{
953
+ type: z.ZodString;
954
+ label: z.ZodString;
955
+ }, z.ZodTypeAny, "passthrough">>, "many">;
556
956
  }, "strip", z.ZodTypeAny, {
557
957
  fields: {
558
958
  type: string;
559
959
  label: string;
560
960
  }[];
561
961
  }, {
562
- fields: {
563
- type: string;
564
- label: string;
565
- }[];
962
+ fields: z.objectInputType<{
963
+ type: z.ZodString;
964
+ label: z.ZodString;
965
+ }, z.ZodTypeAny, "passthrough">[];
566
966
  }>;
567
- embeddedForms: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
967
+ embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
568
968
  id: z.ZodString;
569
969
  name: z.ZodString;
570
- modelRef: import("#src/references/index.js").ZodRef<z.ZodString>;
970
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
571
971
  includeIdField: z.ZodOptional<z.ZodBoolean>;
572
972
  type: z.ZodLiteral<"object">;
573
973
  form: z.ZodObject<{
574
- fields: z.ZodArray<import("../../../index.js").ZodWithPlugins<z.ZodObject<{
974
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
575
975
  type: z.ZodString;
576
976
  label: z.ZodString;
577
- }, "strip", z.ZodTypeAny, {
578
- type: string;
579
- label: string;
580
- }, {
977
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
978
+ type: z.ZodString;
979
+ label: z.ZodString;
980
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
981
+ type: z.ZodString;
982
+ label: z.ZodString;
983
+ }, z.ZodTypeAny, "passthrough">>, {
581
984
  type: string;
582
985
  label: string;
583
- }>>, "many">;
986
+ }, z.objectInputType<{
987
+ type: z.ZodString;
988
+ label: z.ZodString;
989
+ }, z.ZodTypeAny, "passthrough">>, "many">;
584
990
  }, "strip", z.ZodTypeAny, {
585
991
  fields: {
586
992
  type: string;
587
993
  label: string;
588
994
  }[];
589
995
  }, {
590
- fields: {
591
- type: string;
592
- label: string;
593
- }[];
996
+ fields: z.objectInputType<{
997
+ type: z.ZodString;
998
+ label: z.ZodString;
999
+ }, z.ZodTypeAny, "passthrough">[];
594
1000
  }>;
595
1001
  }, "strip", z.ZodTypeAny, {
596
1002
  type: "object";
@@ -610,16 +1016,16 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
610
1016
  id: string;
611
1017
  modelRef: string;
612
1018
  form: {
613
- fields: {
614
- type: string;
615
- label: string;
616
- }[];
1019
+ fields: z.objectInputType<{
1020
+ type: z.ZodString;
1021
+ label: z.ZodString;
1022
+ }, z.ZodTypeAny, "passthrough">[];
617
1023
  };
618
1024
  includeIdField?: boolean | undefined;
619
1025
  }>, z.ZodObject<{
620
1026
  id: z.ZodString;
621
1027
  name: z.ZodString;
622
- modelRef: import("#src/references/index.js").ZodRef<z.ZodString>;
1028
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
623
1029
  includeIdField: z.ZodOptional<z.ZodBoolean>;
624
1030
  type: z.ZodLiteral<"list">;
625
1031
  table: z.ZodObject<{
@@ -627,7 +1033,7 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
627
1033
  label: z.ZodString;
628
1034
  display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
629
1035
  type: z.ZodLiteral<"text">;
630
- modelFieldRef: import("#src/references/index.js").ZodRef<z.ZodString>;
1036
+ modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
631
1037
  }, "strip", z.ZodTypeAny, {
632
1038
  type: "text";
633
1039
  modelFieldRef: string;
@@ -636,7 +1042,7 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
636
1042
  modelFieldRef: string;
637
1043
  }>, z.ZodObject<{
638
1044
  type: z.ZodLiteral<"foreign">;
639
- localRelationRef: import("#src/references/index.js").ZodRef<z.ZodString>;
1045
+ localRelationRef: z.ZodEffects<z.ZodString, string, string>;
640
1046
  labelExpression: z.ZodString;
641
1047
  valueExpression: z.ZodString;
642
1048
  }, "strip", z.ZodTypeAny, {
@@ -663,17 +1069,248 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
663
1069
  };
664
1070
  }, {
665
1071
  label: string;
666
- display: {
667
- type: "foreign";
668
- localRelationRef: string;
669
- labelExpression: string;
670
- valueExpression: string;
671
- } | {
672
- type: "text";
673
- modelFieldRef: string;
674
- };
675
- }>, "many">;
676
- }, "strip", z.ZodTypeAny, {
1072
+ display: {
1073
+ type: "foreign";
1074
+ localRelationRef: string;
1075
+ labelExpression: string;
1076
+ valueExpression: string;
1077
+ } | {
1078
+ type: "text";
1079
+ modelFieldRef: string;
1080
+ };
1081
+ }>, "many">;
1082
+ }, "strip", z.ZodTypeAny, {
1083
+ columns: {
1084
+ label: string;
1085
+ display: {
1086
+ type: "foreign";
1087
+ localRelationRef: string;
1088
+ labelExpression: string;
1089
+ valueExpression: string;
1090
+ } | {
1091
+ type: "text";
1092
+ modelFieldRef: string;
1093
+ };
1094
+ }[];
1095
+ }, {
1096
+ columns: {
1097
+ label: string;
1098
+ display: {
1099
+ type: "foreign";
1100
+ localRelationRef: string;
1101
+ labelExpression: string;
1102
+ valueExpression: string;
1103
+ } | {
1104
+ type: "text";
1105
+ modelFieldRef: string;
1106
+ };
1107
+ }[];
1108
+ }>;
1109
+ form: z.ZodObject<{
1110
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
1111
+ type: z.ZodString;
1112
+ label: z.ZodString;
1113
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1114
+ type: z.ZodString;
1115
+ label: z.ZodString;
1116
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1117
+ type: z.ZodString;
1118
+ label: z.ZodString;
1119
+ }, z.ZodTypeAny, "passthrough">>, {
1120
+ type: string;
1121
+ label: string;
1122
+ }, z.objectInputType<{
1123
+ type: z.ZodString;
1124
+ label: z.ZodString;
1125
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1126
+ }, "strip", z.ZodTypeAny, {
1127
+ fields: {
1128
+ type: string;
1129
+ label: string;
1130
+ }[];
1131
+ }, {
1132
+ fields: z.objectInputType<{
1133
+ type: z.ZodString;
1134
+ label: z.ZodString;
1135
+ }, z.ZodTypeAny, "passthrough">[];
1136
+ }>;
1137
+ }, "strip", z.ZodTypeAny, {
1138
+ type: "list";
1139
+ name: string;
1140
+ id: string;
1141
+ modelRef: string;
1142
+ form: {
1143
+ fields: {
1144
+ type: string;
1145
+ label: string;
1146
+ }[];
1147
+ };
1148
+ table: {
1149
+ columns: {
1150
+ label: string;
1151
+ display: {
1152
+ type: "foreign";
1153
+ localRelationRef: string;
1154
+ labelExpression: string;
1155
+ valueExpression: string;
1156
+ } | {
1157
+ type: "text";
1158
+ modelFieldRef: string;
1159
+ };
1160
+ }[];
1161
+ };
1162
+ includeIdField?: boolean | undefined;
1163
+ }, {
1164
+ type: "list";
1165
+ name: string;
1166
+ id: string;
1167
+ modelRef: string;
1168
+ form: {
1169
+ fields: z.objectInputType<{
1170
+ type: z.ZodString;
1171
+ label: z.ZodString;
1172
+ }, z.ZodTypeAny, "passthrough">[];
1173
+ };
1174
+ table: {
1175
+ columns: {
1176
+ label: string;
1177
+ display: {
1178
+ type: "foreign";
1179
+ localRelationRef: string;
1180
+ labelExpression: string;
1181
+ valueExpression: string;
1182
+ } | {
1183
+ type: "text";
1184
+ modelFieldRef: string;
1185
+ };
1186
+ }[];
1187
+ };
1188
+ includeIdField?: boolean | undefined;
1189
+ }>]>, {
1190
+ type: "object";
1191
+ name: string;
1192
+ id: string;
1193
+ modelRef: string;
1194
+ form: {
1195
+ fields: {
1196
+ type: string;
1197
+ label: string;
1198
+ }[];
1199
+ };
1200
+ includeIdField?: boolean | undefined;
1201
+ } | {
1202
+ type: "list";
1203
+ name: string;
1204
+ id: string;
1205
+ modelRef: string;
1206
+ form: {
1207
+ fields: {
1208
+ type: string;
1209
+ label: string;
1210
+ }[];
1211
+ };
1212
+ table: {
1213
+ columns: {
1214
+ label: string;
1215
+ display: {
1216
+ type: "foreign";
1217
+ localRelationRef: string;
1218
+ labelExpression: string;
1219
+ valueExpression: string;
1220
+ } | {
1221
+ type: "text";
1222
+ modelFieldRef: string;
1223
+ };
1224
+ }[];
1225
+ };
1226
+ includeIdField?: boolean | undefined;
1227
+ }, {
1228
+ type: "object";
1229
+ name: string;
1230
+ id: string;
1231
+ modelRef: string;
1232
+ form: {
1233
+ fields: z.objectInputType<{
1234
+ type: z.ZodString;
1235
+ label: z.ZodString;
1236
+ }, z.ZodTypeAny, "passthrough">[];
1237
+ };
1238
+ includeIdField?: boolean | undefined;
1239
+ } | {
1240
+ type: "list";
1241
+ name: string;
1242
+ id: string;
1243
+ modelRef: string;
1244
+ form: {
1245
+ fields: z.objectInputType<{
1246
+ type: z.ZodString;
1247
+ label: z.ZodString;
1248
+ }, z.ZodTypeAny, "passthrough">[];
1249
+ };
1250
+ table: {
1251
+ columns: {
1252
+ label: string;
1253
+ display: {
1254
+ type: "foreign";
1255
+ localRelationRef: string;
1256
+ labelExpression: string;
1257
+ valueExpression: string;
1258
+ } | {
1259
+ type: "text";
1260
+ modelFieldRef: string;
1261
+ };
1262
+ }[];
1263
+ };
1264
+ includeIdField?: boolean | undefined;
1265
+ }>, "many">>;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ type: "crud";
1268
+ modelRef: string;
1269
+ form: {
1270
+ fields: {
1271
+ type: string;
1272
+ label: string;
1273
+ }[];
1274
+ };
1275
+ table: {
1276
+ columns: {
1277
+ label: string;
1278
+ display: {
1279
+ type: "foreign";
1280
+ localRelationRef: string;
1281
+ labelExpression: string;
1282
+ valueExpression: string;
1283
+ } | {
1284
+ type: "text";
1285
+ modelFieldRef: string;
1286
+ };
1287
+ }[];
1288
+ };
1289
+ disableCreate?: boolean | undefined;
1290
+ embeddedForms?: ({
1291
+ type: "object";
1292
+ name: string;
1293
+ id: string;
1294
+ modelRef: string;
1295
+ form: {
1296
+ fields: {
1297
+ type: string;
1298
+ label: string;
1299
+ }[];
1300
+ };
1301
+ includeIdField?: boolean | undefined;
1302
+ } | {
1303
+ type: "list";
1304
+ name: string;
1305
+ id: string;
1306
+ modelRef: string;
1307
+ form: {
1308
+ fields: {
1309
+ type: string;
1310
+ label: string;
1311
+ }[];
1312
+ };
1313
+ table: {
677
1314
  columns: {
678
1315
  label: string;
679
1316
  display: {
@@ -686,7 +1323,57 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
686
1323
  modelFieldRef: string;
687
1324
  };
688
1325
  }[];
689
- }, {
1326
+ };
1327
+ includeIdField?: boolean | undefined;
1328
+ })[] | undefined;
1329
+ }, {
1330
+ type: "crud";
1331
+ modelRef: string;
1332
+ form: {
1333
+ fields: z.objectInputType<{
1334
+ type: z.ZodString;
1335
+ label: z.ZodString;
1336
+ }, z.ZodTypeAny, "passthrough">[];
1337
+ };
1338
+ table: {
1339
+ columns: {
1340
+ label: string;
1341
+ display: {
1342
+ type: "foreign";
1343
+ localRelationRef: string;
1344
+ labelExpression: string;
1345
+ valueExpression: string;
1346
+ } | {
1347
+ type: "text";
1348
+ modelFieldRef: string;
1349
+ };
1350
+ }[];
1351
+ };
1352
+ disableCreate?: boolean | undefined;
1353
+ embeddedForms?: ({
1354
+ type: "object";
1355
+ name: string;
1356
+ id: string;
1357
+ modelRef: string;
1358
+ form: {
1359
+ fields: z.objectInputType<{
1360
+ type: z.ZodString;
1361
+ label: z.ZodString;
1362
+ }, z.ZodTypeAny, "passthrough">[];
1363
+ };
1364
+ includeIdField?: boolean | undefined;
1365
+ } | {
1366
+ type: "list";
1367
+ name: string;
1368
+ id: string;
1369
+ modelRef: string;
1370
+ form: {
1371
+ fields: z.objectInputType<{
1372
+ type: z.ZodString;
1373
+ label: z.ZodString;
1374
+ }, z.ZodTypeAny, "passthrough">[];
1375
+ };
1376
+ table: {
690
1377
  columns: {
691
1378
  label: string;
692
1379
  display: {
@@ -699,30 +1386,52 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
699
1386
  modelFieldRef: string;
700
1387
  };
701
1388
  }[];
702
- }>;
703
- form: z.ZodObject<{
704
- fields: z.ZodArray<import("../../../index.js").ZodWithPlugins<z.ZodObject<{
705
- type: z.ZodString;
706
- label: z.ZodString;
707
- }, "strip", z.ZodTypeAny, {
708
- type: string;
709
- label: string;
710
- }, {
711
- type: string;
712
- label: string;
713
- }>>, "many">;
714
- }, "strip", z.ZodTypeAny, {
715
- fields: {
716
- type: string;
717
- label: string;
718
- }[];
719
- }, {
1389
+ };
1390
+ includeIdField?: boolean | undefined;
1391
+ })[] | undefined;
1392
+ }>>, {
1393
+ type: string;
1394
+ name: string;
1395
+ id: string;
1396
+ featureRef: string;
1397
+ icon?: string | undefined;
1398
+ } & {
1399
+ type: "crud";
1400
+ modelRef: string;
1401
+ form: {
1402
+ fields: {
1403
+ type: string;
1404
+ label: string;
1405
+ }[];
1406
+ };
1407
+ table: {
1408
+ columns: {
1409
+ label: string;
1410
+ display: {
1411
+ type: "foreign";
1412
+ localRelationRef: string;
1413
+ labelExpression: string;
1414
+ valueExpression: string;
1415
+ } | {
1416
+ type: "text";
1417
+ modelFieldRef: string;
1418
+ };
1419
+ }[];
1420
+ };
1421
+ disableCreate?: boolean | undefined;
1422
+ embeddedForms?: ({
1423
+ type: "object";
1424
+ name: string;
1425
+ id: string;
1426
+ modelRef: string;
1427
+ form: {
720
1428
  fields: {
721
1429
  type: string;
722
1430
  label: string;
723
1431
  }[];
724
- }>;
725
- }, "strip", z.ZodTypeAny, {
1432
+ };
1433
+ includeIdField?: boolean | undefined;
1434
+ } | {
726
1435
  type: "list";
727
1436
  name: string;
728
1437
  id: string;
@@ -748,16 +1457,59 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
748
1457
  }[];
749
1458
  };
750
1459
  includeIdField?: boolean | undefined;
751
- }, {
1460
+ })[] | undefined;
1461
+ }, {
1462
+ type: string;
1463
+ name: string;
1464
+ featureRef: string;
1465
+ icon?: string | undefined;
1466
+ id?: string | undefined;
1467
+ } & {
1468
+ type: "crud";
1469
+ modelRef: string;
1470
+ form: {
1471
+ fields: z.objectInputType<{
1472
+ type: z.ZodString;
1473
+ label: z.ZodString;
1474
+ }, z.ZodTypeAny, "passthrough">[];
1475
+ };
1476
+ table: {
1477
+ columns: {
1478
+ label: string;
1479
+ display: {
1480
+ type: "foreign";
1481
+ localRelationRef: string;
1482
+ labelExpression: string;
1483
+ valueExpression: string;
1484
+ } | {
1485
+ type: "text";
1486
+ modelFieldRef: string;
1487
+ };
1488
+ }[];
1489
+ };
1490
+ disableCreate?: boolean | undefined;
1491
+ embeddedForms?: ({
1492
+ type: "object";
1493
+ name: string;
1494
+ id: string;
1495
+ modelRef: string;
1496
+ form: {
1497
+ fields: z.objectInputType<{
1498
+ type: z.ZodString;
1499
+ label: z.ZodString;
1500
+ }, z.ZodTypeAny, "passthrough">[];
1501
+ };
1502
+ includeIdField?: boolean | undefined;
1503
+ } | {
752
1504
  type: "list";
753
1505
  name: string;
754
1506
  id: string;
755
1507
  modelRef: string;
756
1508
  form: {
757
- fields: {
758
- type: string;
759
- label: string;
760
- }[];
1509
+ fields: z.objectInputType<{
1510
+ type: z.ZodString;
1511
+ label: z.ZodString;
1512
+ }, z.ZodTypeAny, "passthrough">[];
761
1513
  };
762
1514
  table: {
763
1515
  columns: {
@@ -774,17 +1526,16 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
774
1526
  }[];
775
1527
  };
776
1528
  includeIdField?: boolean | undefined;
777
- }>]>>, "many">>;
778
- id: z.ZodDefault<z.ZodString>;
779
- name: z.ZodString;
780
- featureRef: import("#src/references/index.js").ZodRef<z.ZodString>;
781
- icon: z.ZodOptional<z.ZodString>;
782
- }, "strip", z.ZodTypeAny, {
783
- type: "crud";
1529
+ })[] | undefined;
1530
+ }>, {
1531
+ type: string;
784
1532
  name: string;
785
1533
  id: string;
786
- modelRef: string;
787
1534
  featureRef: string;
1535
+ icon?: string | undefined;
1536
+ } & {
1537
+ type: "crud";
1538
+ modelRef: string;
788
1539
  form: {
789
1540
  fields: {
790
1541
  type: string;
@@ -805,7 +1556,6 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
805
1556
  };
806
1557
  }[];
807
1558
  };
808
- icon?: string | undefined;
809
1559
  disableCreate?: boolean | undefined;
810
1560
  embeddedForms?: ({
811
1561
  type: "object";
@@ -847,15 +1597,19 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
847
1597
  includeIdField?: boolean | undefined;
848
1598
  })[] | undefined;
849
1599
  }, {
850
- type: "crud";
1600
+ type: string;
851
1601
  name: string;
852
- modelRef: string;
853
1602
  featureRef: string;
1603
+ icon?: string | undefined;
1604
+ id?: string | undefined;
1605
+ } & {
1606
+ type: "crud";
1607
+ modelRef: string;
854
1608
  form: {
855
- fields: {
856
- type: string;
857
- label: string;
858
- }[];
1609
+ fields: z.objectInputType<{
1610
+ type: z.ZodString;
1611
+ label: z.ZodString;
1612
+ }, z.ZodTypeAny, "passthrough">[];
859
1613
  };
860
1614
  table: {
861
1615
  columns: {
@@ -871,8 +1625,6 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
871
1625
  };
872
1626
  }[];
873
1627
  };
874
- icon?: string | undefined;
875
- id?: string | undefined;
876
1628
  disableCreate?: boolean | undefined;
877
1629
  embeddedForms?: ({
878
1630
  type: "object";
@@ -880,10 +1632,10 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
880
1632
  id: string;
881
1633
  modelRef: string;
882
1634
  form: {
883
- fields: {
884
- type: string;
885
- label: string;
886
- }[];
1635
+ fields: z.objectInputType<{
1636
+ type: z.ZodString;
1637
+ label: z.ZodString;
1638
+ }, z.ZodTypeAny, "passthrough">[];
887
1639
  };
888
1640
  includeIdField?: boolean | undefined;
889
1641
  } | {
@@ -892,10 +1644,10 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
892
1644
  id: string;
893
1645
  modelRef: string;
894
1646
  form: {
895
- fields: {
896
- type: string;
897
- label: string;
898
- }[];
1647
+ fields: z.objectInputType<{
1648
+ type: z.ZodString;
1649
+ label: z.ZodString;
1650
+ }, z.ZodTypeAny, "passthrough">[];
899
1651
  };
900
1652
  table: {
901
1653
  columns: {
@@ -913,7 +1665,7 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
913
1665
  };
914
1666
  includeIdField?: boolean | undefined;
915
1667
  })[] | undefined;
916
- }>>>, "many">>;
1668
+ }>, "many">>;
917
1669
  id: z.ZodDefault<z.ZodString>;
918
1670
  name: z.ZodString;
919
1671
  packageLocation: z.ZodOptional<z.ZodString>;
@@ -923,12 +1675,15 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
923
1675
  id: string;
924
1676
  packageLocation?: string | undefined;
925
1677
  allowedRoles?: string[] | undefined;
926
- sections?: {
927
- type: "crud";
1678
+ sections?: ({
1679
+ type: string;
928
1680
  name: string;
929
1681
  id: string;
930
- modelRef: string;
931
1682
  featureRef: string;
1683
+ icon?: string | undefined;
1684
+ } & {
1685
+ type: "crud";
1686
+ modelRef: string;
932
1687
  form: {
933
1688
  fields: {
934
1689
  type: string;
@@ -949,7 +1704,6 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
949
1704
  };
950
1705
  }[];
951
1706
  };
952
- icon?: string | undefined;
953
1707
  disableCreate?: boolean | undefined;
954
1708
  embeddedForms?: ({
955
1709
  type: "object";
@@ -990,23 +1744,27 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
990
1744
  };
991
1745
  includeIdField?: boolean | undefined;
992
1746
  })[] | undefined;
993
- }[] | undefined;
1747
+ })[] | undefined;
994
1748
  }, {
995
1749
  type: "admin";
996
1750
  name: string;
997
1751
  id?: string | undefined;
998
1752
  packageLocation?: string | undefined;
999
1753
  allowedRoles?: string[] | undefined;
1000
- sections?: {
1001
- type: "crud";
1754
+ sections?: ({
1755
+ type: string;
1002
1756
  name: string;
1003
- modelRef: string;
1004
1757
  featureRef: string;
1758
+ icon?: string | undefined;
1759
+ id?: string | undefined;
1760
+ } & {
1761
+ type: "crud";
1762
+ modelRef: string;
1005
1763
  form: {
1006
- fields: {
1007
- type: string;
1008
- label: string;
1009
- }[];
1764
+ fields: z.objectInputType<{
1765
+ type: z.ZodString;
1766
+ label: z.ZodString;
1767
+ }, z.ZodTypeAny, "passthrough">[];
1010
1768
  };
1011
1769
  table: {
1012
1770
  columns: {
@@ -1022,8 +1780,6 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
1022
1780
  };
1023
1781
  }[];
1024
1782
  };
1025
- icon?: string | undefined;
1026
- id?: string | undefined;
1027
1783
  disableCreate?: boolean | undefined;
1028
1784
  embeddedForms?: ({
1029
1785
  type: "object";
@@ -1031,10 +1787,10 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
1031
1787
  id: string;
1032
1788
  modelRef: string;
1033
1789
  form: {
1034
- fields: {
1035
- type: string;
1036
- label: string;
1037
- }[];
1790
+ fields: z.objectInputType<{
1791
+ type: z.ZodString;
1792
+ label: z.ZodString;
1793
+ }, z.ZodTypeAny, "passthrough">[];
1038
1794
  };
1039
1795
  includeIdField?: boolean | undefined;
1040
1796
  } | {
@@ -1043,10 +1799,10 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
1043
1799
  id: string;
1044
1800
  modelRef: string;
1045
1801
  form: {
1046
- fields: {
1047
- type: string;
1048
- label: string;
1049
- }[];
1802
+ fields: z.objectInputType<{
1803
+ type: z.ZodString;
1804
+ label: z.ZodString;
1805
+ }, z.ZodTypeAny, "passthrough">[];
1050
1806
  };
1051
1807
  table: {
1052
1808
  columns: {
@@ -1064,7 +1820,7 @@ export declare const createAdminAppSchema: (options: import("#src/schema/creator
1064
1820
  };
1065
1821
  includeIdField?: boolean | undefined;
1066
1822
  })[] | undefined;
1067
- }[] | undefined;
1823
+ })[] | undefined;
1068
1824
  }>;
1069
1825
  export type AdminAppConfig = def.InferOutput<typeof createAdminAppSchema>;
1070
1826
  export declare const adminAppEntryType: import("../types.js").AppEntryType<{
@@ -1073,12 +1829,15 @@ export declare const adminAppEntryType: import("../types.js").AppEntryType<{
1073
1829
  id: string;
1074
1830
  packageLocation?: string | undefined;
1075
1831
  allowedRoles?: string[] | undefined;
1076
- sections?: {
1077
- type: "crud";
1832
+ sections?: ({
1833
+ type: string;
1078
1834
  name: string;
1079
1835
  id: string;
1080
- modelRef: string;
1081
1836
  featureRef: string;
1837
+ icon?: string | undefined;
1838
+ } & {
1839
+ type: "crud";
1840
+ modelRef: string;
1082
1841
  form: {
1083
1842
  fields: {
1084
1843
  type: string;
@@ -1099,7 +1858,6 @@ export declare const adminAppEntryType: import("../types.js").AppEntryType<{
1099
1858
  };
1100
1859
  }[];
1101
1860
  };
1102
- icon?: string | undefined;
1103
1861
  disableCreate?: boolean | undefined;
1104
1862
  embeddedForms?: ({
1105
1863
  type: "object";
@@ -1140,6 +1898,6 @@ export declare const adminAppEntryType: import("../types.js").AppEntryType<{
1140
1898
  };
1141
1899
  includeIdField?: boolean | undefined;
1142
1900
  })[] | undefined;
1143
- }[] | undefined;
1901
+ })[] | undefined;
1144
1902
  }>;
1145
1903
  //# sourceMappingURL=app.d.ts.map