@baseplate-dev/project-builder-lib 0.3.0 → 0.3.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 (129) hide show
  1. package/dist/compiler/admin-crud-action-spec.d.ts +26 -0
  2. package/dist/compiler/admin-crud-action-spec.d.ts.map +1 -0
  3. package/dist/compiler/admin-crud-action-spec.js +29 -0
  4. package/dist/compiler/admin-crud-action-spec.js.map +1 -0
  5. package/dist/compiler/admin-crud-column-compiler-spec.d.ts +28 -0
  6. package/dist/compiler/admin-crud-column-compiler-spec.d.ts.map +1 -0
  7. package/dist/compiler/admin-crud-column-compiler-spec.js +35 -0
  8. package/dist/compiler/admin-crud-column-compiler-spec.js.map +1 -0
  9. package/dist/compiler/admin-crud-input-spec.d.ts +2 -2
  10. package/dist/compiler/admin-crud-input-spec.d.ts.map +1 -1
  11. package/dist/compiler/admin-crud-input-spec.js.map +1 -1
  12. package/dist/compiler/index.d.ts +2 -0
  13. package/dist/compiler/index.d.ts.map +1 -1
  14. package/dist/compiler/index.js +2 -0
  15. package/dist/compiler/index.js.map +1 -1
  16. package/dist/migrations/index.d.ts.map +1 -1
  17. package/dist/migrations/index.js +4 -0
  18. package/dist/migrations/index.js.map +1 -1
  19. package/dist/migrations/migration-018-crud-name-field-ref.d.ts +69 -0
  20. package/dist/migrations/migration-018-crud-name-field-ref.d.ts.map +1 -0
  21. package/dist/migrations/migration-018-crud-name-field-ref.js +49 -0
  22. package/dist/migrations/migration-018-crud-name-field-ref.js.map +1 -0
  23. package/dist/migrations/migration-019-column-type-based.d.ts +90 -0
  24. package/dist/migrations/migration-019-column-type-based.d.ts.map +1 -0
  25. package/dist/migrations/migration-019-column-type-based.js +79 -0
  26. package/dist/migrations/migration-019-column-type-based.js.map +1 -0
  27. package/dist/parser/parser.d.ts.map +1 -1
  28. package/dist/parser/parser.js +8 -2
  29. package/dist/parser/parser.js.map +1 -1
  30. package/dist/plugins/spec/auth-config-spec.d.ts +2 -0
  31. package/dist/plugins/spec/auth-config-spec.d.ts.map +1 -1
  32. package/dist/plugins/spec/auth-config-spec.js.map +1 -1
  33. package/dist/references/definition-ref-builder.d.ts.map +1 -1
  34. package/dist/references/definition-ref-builder.js +5 -1
  35. package/dist/references/definition-ref-builder.js.map +1 -1
  36. package/dist/schema/apps/web/admin/admin.d.ts +660 -744
  37. package/dist/schema/apps/web/admin/admin.d.ts.map +1 -1
  38. package/dist/schema/apps/web/admin/sections/crud-actions/admin-action-spec.d.ts +17 -0
  39. package/dist/schema/apps/web/admin/sections/crud-actions/admin-action-spec.d.ts.map +1 -0
  40. package/dist/schema/apps/web/admin/sections/crud-actions/admin-action-spec.js +30 -0
  41. package/dist/schema/apps/web/admin/sections/crud-actions/admin-action-spec.js.map +1 -0
  42. package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.d.ts +33 -0
  43. package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.d.ts.map +1 -0
  44. package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.js +24 -0
  45. package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.js.map +1 -0
  46. package/dist/schema/apps/web/admin/sections/crud-actions/built-in-actions.d.ts +37 -0
  47. package/dist/schema/apps/web/admin/sections/crud-actions/built-in-actions.d.ts.map +1 -0
  48. package/dist/schema/apps/web/admin/sections/crud-actions/built-in-actions.js +22 -0
  49. package/dist/schema/apps/web/admin/sections/crud-actions/built-in-actions.js.map +1 -0
  50. package/dist/schema/apps/web/admin/sections/crud-actions/index.d.ts +5 -0
  51. package/dist/schema/apps/web/admin/sections/crud-actions/index.d.ts.map +1 -0
  52. package/dist/schema/apps/web/admin/sections/crud-actions/index.js +5 -0
  53. package/dist/schema/apps/web/admin/sections/crud-actions/index.js.map +1 -0
  54. package/dist/schema/apps/web/admin/sections/crud-actions/types.d.ts +24 -0
  55. package/dist/schema/apps/web/admin/sections/crud-actions/types.d.ts.map +1 -0
  56. package/dist/schema/apps/web/admin/sections/crud-actions/types.js +18 -0
  57. package/dist/schema/apps/web/admin/sections/crud-actions/types.js.map +1 -0
  58. package/dist/schema/apps/web/admin/sections/crud-columns/admin-column-spec.d.ts +17 -0
  59. package/dist/schema/apps/web/admin/sections/crud-columns/admin-column-spec.d.ts.map +1 -0
  60. package/dist/schema/apps/web/admin/sections/crud-columns/admin-column-spec.js +30 -0
  61. package/dist/schema/apps/web/admin/sections/crud-columns/admin-column-spec.js.map +1 -0
  62. package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.d.ts +33 -0
  63. package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.d.ts.map +1 -0
  64. package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.js +24 -0
  65. package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.js.map +1 -0
  66. package/dist/schema/apps/web/admin/sections/crud-columns/built-in-columns.d.ts +51 -0
  67. package/dist/schema/apps/web/admin/sections/crud-columns/built-in-columns.d.ts.map +1 -0
  68. package/dist/schema/apps/web/admin/sections/crud-columns/built-in-columns.js +37 -0
  69. package/dist/schema/apps/web/admin/sections/crud-columns/built-in-columns.js.map +1 -0
  70. package/dist/schema/apps/web/admin/sections/crud-columns/index.d.ts +5 -0
  71. package/dist/schema/apps/web/admin/sections/crud-columns/index.d.ts.map +1 -0
  72. package/dist/schema/apps/web/admin/sections/crud-columns/index.js +5 -0
  73. package/dist/schema/apps/web/admin/sections/crud-columns/index.js.map +1 -0
  74. package/dist/schema/apps/web/admin/sections/crud-columns/types.d.ts +24 -0
  75. package/dist/schema/apps/web/admin/sections/crud-columns/types.d.ts.map +1 -0
  76. package/dist/schema/apps/web/admin/sections/crud-columns/types.js +18 -0
  77. package/dist/schema/apps/web/admin/sections/crud-columns/types.js.map +1 -0
  78. package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.d.ts +14 -1
  79. package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.d.ts.map +1 -1
  80. package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.js +10 -2
  81. package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.js.map +1 -1
  82. package/dist/schema/apps/web/admin/sections/crud-form/built-in-input.d.ts +70 -22
  83. package/dist/schema/apps/web/admin/sections/crud-form/built-in-input.d.ts.map +1 -1
  84. package/dist/schema/apps/web/admin/sections/crud-form/built-in-input.js +7 -7
  85. package/dist/schema/apps/web/admin/sections/crud-form/built-in-input.js.map +1 -1
  86. package/dist/schema/apps/web/admin/sections/crud-form/types.d.ts +5 -0
  87. package/dist/schema/apps/web/admin/sections/crud-form/types.d.ts.map +1 -1
  88. package/dist/schema/apps/web/admin/sections/crud-form/types.js +7 -0
  89. package/dist/schema/apps/web/admin/sections/crud-form/types.js.map +1 -1
  90. package/dist/schema/apps/web/admin/sections/crud.d.ts +418 -580
  91. package/dist/schema/apps/web/admin/sections/crud.d.ts.map +1 -1
  92. package/dist/schema/apps/web/admin/sections/crud.js +17 -34
  93. package/dist/schema/apps/web/admin/sections/crud.js.map +1 -1
  94. package/dist/schema/apps/web/admin/sections/index.d.ts +2 -0
  95. package/dist/schema/apps/web/admin/sections/index.d.ts.map +1 -1
  96. package/dist/schema/apps/web/admin/sections/index.js +2 -0
  97. package/dist/schema/apps/web/admin/sections/index.js.map +1 -1
  98. package/dist/schema/apps/web/admin/sections/types.d.ts +1 -0
  99. package/dist/schema/apps/web/admin/sections/types.d.ts.map +1 -1
  100. package/dist/schema/apps/web/admin/sections/types.js +3 -0
  101. package/dist/schema/apps/web/admin/sections/types.js.map +1 -1
  102. package/dist/schema/apps/web/web-app.d.ts +423 -495
  103. package/dist/schema/apps/web/web-app.d.ts.map +1 -1
  104. package/dist/schema/creator/extend-parser-context-with-defaults.d.ts +1 -1
  105. package/dist/schema/creator/extend-parser-context-with-defaults.d.ts.map +1 -1
  106. package/dist/schema/creator/extend-parser-context-with-defaults.js +9 -2
  107. package/dist/schema/creator/extend-parser-context-with-defaults.js.map +1 -1
  108. package/dist/schema/models/index.d.ts +128 -4
  109. package/dist/schema/models/index.d.ts.map +1 -1
  110. package/dist/schema/models/index.js +1 -1
  111. package/dist/schema/models/index.js.map +1 -1
  112. package/dist/schema/project-definition.d.ts +981 -1083
  113. package/dist/schema/project-definition.d.ts.map +1 -1
  114. package/dist/web/specs/admin-crud-action-web-spec.d.ts +32 -0
  115. package/dist/web/specs/admin-crud-action-web-spec.d.ts.map +1 -0
  116. package/dist/web/specs/admin-crud-action-web-spec.js +35 -0
  117. package/dist/web/specs/admin-crud-action-web-spec.js.map +1 -0
  118. package/dist/web/specs/admin-crud-column-web-spec.d.ts +33 -0
  119. package/dist/web/specs/admin-crud-column-web-spec.d.ts.map +1 -0
  120. package/dist/web/specs/admin-crud-column-web-spec.js +35 -0
  121. package/dist/web/specs/admin-crud-column-web-spec.js.map +1 -0
  122. package/dist/web/specs/admin-crud-input-web-spec.d.ts +4 -4
  123. package/dist/web/specs/admin-crud-input-web-spec.d.ts.map +1 -1
  124. package/dist/web/specs/admin-crud-input-web-spec.js.map +1 -1
  125. package/dist/web/specs/index.d.ts +2 -0
  126. package/dist/web/specs/index.d.ts.map +1 -1
  127. package/dist/web/specs/index.js +2 -0
  128. package/dist/web/specs/index.js.map +1 -1
  129. package/package.json +5 -5
@@ -1,110 +1,5 @@
1
1
  import { z } from 'zod';
2
2
  import type { def } from '#src/schema/creator/index.js';
3
- export declare const createAdminCrudForeignDisplaySchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
4
- type: z.ZodLiteral<"foreign">;
5
- localRelationRef: z.ZodEffects<z.ZodString, string, string>;
6
- labelExpression: z.ZodString;
7
- valueExpression: z.ZodString;
8
- }, "strip", z.ZodTypeAny, {
9
- type: "foreign";
10
- localRelationRef: string;
11
- labelExpression: string;
12
- valueExpression: string;
13
- }, {
14
- type: "foreign";
15
- localRelationRef: string;
16
- labelExpression: string;
17
- valueExpression: string;
18
- }>;
19
- export type AdminCrudForeignDisplayConfig = def.InferOutput<typeof createAdminCrudForeignDisplaySchema>;
20
- export declare const createAdminCrudTextDisplaySchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
21
- type: z.ZodLiteral<"text">;
22
- modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
23
- }, "strip", z.ZodTypeAny, {
24
- type: "text";
25
- modelFieldRef: string;
26
- }, {
27
- type: "text";
28
- modelFieldRef: string;
29
- }>;
30
- export type AdminCrudTextDisplayConfig = def.InferOutput<typeof createAdminCrudTextDisplaySchema>;
31
- export declare const createAdminCrudDisplaySchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
32
- type: z.ZodLiteral<"text">;
33
- modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
34
- }, "strip", z.ZodTypeAny, {
35
- type: "text";
36
- modelFieldRef: string;
37
- }, {
38
- type: "text";
39
- modelFieldRef: string;
40
- }>, z.ZodObject<{
41
- type: z.ZodLiteral<"foreign">;
42
- localRelationRef: z.ZodEffects<z.ZodString, string, string>;
43
- labelExpression: z.ZodString;
44
- valueExpression: z.ZodString;
45
- }, "strip", z.ZodTypeAny, {
46
- type: "foreign";
47
- localRelationRef: string;
48
- labelExpression: string;
49
- valueExpression: string;
50
- }, {
51
- type: "foreign";
52
- localRelationRef: string;
53
- labelExpression: string;
54
- valueExpression: string;
55
- }>]>;
56
- export declare const adminCrudDisplayTypes: readonly ["text", "foreign"];
57
- export type AdminCrudDisplayConfig = def.InferOutput<typeof createAdminCrudDisplaySchema>;
58
- export declare const createAdminCrudTableColumnSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
59
- label: z.ZodString;
60
- display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
61
- type: z.ZodLiteral<"text">;
62
- modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
63
- }, "strip", z.ZodTypeAny, {
64
- type: "text";
65
- modelFieldRef: string;
66
- }, {
67
- type: "text";
68
- modelFieldRef: string;
69
- }>, z.ZodObject<{
70
- type: z.ZodLiteral<"foreign">;
71
- localRelationRef: z.ZodEffects<z.ZodString, string, string>;
72
- labelExpression: z.ZodString;
73
- valueExpression: z.ZodString;
74
- }, "strip", z.ZodTypeAny, {
75
- type: "foreign";
76
- localRelationRef: string;
77
- labelExpression: string;
78
- valueExpression: string;
79
- }, {
80
- type: "foreign";
81
- localRelationRef: string;
82
- labelExpression: string;
83
- valueExpression: string;
84
- }>]>;
85
- }, "strip", z.ZodTypeAny, {
86
- label: string;
87
- display: {
88
- type: "foreign";
89
- localRelationRef: string;
90
- labelExpression: string;
91
- valueExpression: string;
92
- } | {
93
- type: "text";
94
- modelFieldRef: string;
95
- };
96
- }, {
97
- label: string;
98
- display: {
99
- type: "foreign";
100
- localRelationRef: string;
101
- labelExpression: string;
102
- valueExpression: string;
103
- } | {
104
- type: "text";
105
- modelFieldRef: string;
106
- };
107
- }>;
108
3
  export declare const createAdminCrudEmbeddedObjectSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
109
4
  id: z.ZodString;
110
5
  name: z.ZodString;
@@ -112,29 +7,44 @@ export declare const createAdminCrudEmbeddedObjectSchema: (context: import("#src
112
7
  includeIdField: z.ZodOptional<z.ZodBoolean>;
113
8
  type: z.ZodLiteral<"object">;
114
9
  form: z.ZodObject<{
115
- fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
10
+ fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
11
+ id: z.ZodDefault<z.ZodString>;
116
12
  type: z.ZodString;
117
13
  label: z.ZodString;
118
14
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
15
+ id: z.ZodDefault<z.ZodString>;
16
+ type: z.ZodString;
17
+ label: z.ZodString;
18
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
19
+ id: z.ZodDefault<z.ZodString>;
20
+ type: z.ZodString;
21
+ label: z.ZodString;
22
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
23
+ id: z.ZodDefault<z.ZodString>;
119
24
  type: z.ZodString;
120
25
  label: z.ZodString;
121
26
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
27
+ id: z.ZodDefault<z.ZodString>;
122
28
  type: z.ZodString;
123
29
  label: z.ZodString;
124
30
  }, z.ZodTypeAny, "passthrough">>, {
125
31
  type: string;
32
+ id: string;
126
33
  label: string;
127
34
  }, z.objectInputType<{
35
+ id: z.ZodDefault<z.ZodString>;
128
36
  type: z.ZodString;
129
37
  label: z.ZodString;
130
38
  }, z.ZodTypeAny, "passthrough">>, "many">;
131
39
  }, "strip", z.ZodTypeAny, {
132
40
  fields: {
133
41
  type: string;
42
+ id: string;
134
43
  label: string;
135
44
  }[];
136
45
  }, {
137
46
  fields: z.objectInputType<{
47
+ id: z.ZodDefault<z.ZodString>;
138
48
  type: z.ZodString;
139
49
  label: z.ZodString;
140
50
  }, z.ZodTypeAny, "passthrough">[];
@@ -147,6 +57,7 @@ export declare const createAdminCrudEmbeddedObjectSchema: (context: import("#src
147
57
  form: {
148
58
  fields: {
149
59
  type: string;
60
+ id: string;
150
61
  label: string;
151
62
  }[];
152
63
  };
@@ -158,6 +69,7 @@ export declare const createAdminCrudEmbeddedObjectSchema: (context: import("#src
158
69
  modelRef: string;
159
70
  form: {
160
71
  fields: z.objectInputType<{
72
+ id: z.ZodDefault<z.ZodString>;
161
73
  type: z.ZodString;
162
74
  label: z.ZodString;
163
75
  }, z.ZodTypeAny, "passthrough">[];
@@ -171,107 +83,87 @@ export declare const createAdminCrudEmbeddedListSchema: (context: import("#src/s
171
83
  includeIdField: z.ZodOptional<z.ZodBoolean>;
172
84
  type: z.ZodLiteral<"list">;
173
85
  table: z.ZodObject<{
174
- columns: z.ZodArray<z.ZodObject<{
175
- label: z.ZodString;
176
- display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
177
- type: z.ZodLiteral<"text">;
178
- modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
179
- }, "strip", z.ZodTypeAny, {
180
- type: "text";
181
- modelFieldRef: string;
182
- }, {
183
- type: "text";
184
- modelFieldRef: string;
185
- }>, z.ZodObject<{
186
- type: z.ZodLiteral<"foreign">;
187
- localRelationRef: z.ZodEffects<z.ZodString, string, string>;
188
- labelExpression: z.ZodString;
189
- valueExpression: z.ZodString;
190
- }, "strip", z.ZodTypeAny, {
191
- type: "foreign";
192
- localRelationRef: string;
193
- labelExpression: string;
194
- valueExpression: string;
195
- }, {
196
- type: "foreign";
197
- localRelationRef: string;
198
- labelExpression: string;
199
- valueExpression: string;
200
- }>]>;
201
- }, "strip", z.ZodTypeAny, {
202
- label: string;
203
- display: {
204
- type: "foreign";
205
- localRelationRef: string;
206
- labelExpression: string;
207
- valueExpression: string;
208
- } | {
209
- type: "text";
210
- modelFieldRef: string;
211
- };
212
- }, {
86
+ columns: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
87
+ id: z.ZodDefault<z.ZodString>;
88
+ type: z.ZodString;
89
+ label: z.ZodString;
90
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
91
+ id: z.ZodDefault<z.ZodString>;
92
+ type: z.ZodString;
93
+ label: z.ZodString;
94
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
95
+ id: z.ZodDefault<z.ZodString>;
96
+ type: z.ZodString;
97
+ label: z.ZodString;
98
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
99
+ id: z.ZodDefault<z.ZodString>;
100
+ type: z.ZodString;
101
+ label: z.ZodString;
102
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
103
+ id: z.ZodDefault<z.ZodString>;
104
+ type: z.ZodString;
105
+ label: z.ZodString;
106
+ }, z.ZodTypeAny, "passthrough">>, {
107
+ type: string;
108
+ id: string;
213
109
  label: string;
214
- display: {
215
- type: "foreign";
216
- localRelationRef: string;
217
- labelExpression: string;
218
- valueExpression: string;
219
- } | {
220
- type: "text";
221
- modelFieldRef: string;
222
- };
223
- }>, "many">;
110
+ }, z.objectInputType<{
111
+ id: z.ZodDefault<z.ZodString>;
112
+ type: z.ZodString;
113
+ label: z.ZodString;
114
+ }, z.ZodTypeAny, "passthrough">>, "many">;
224
115
  }, "strip", z.ZodTypeAny, {
225
116
  columns: {
117
+ type: string;
118
+ id: string;
226
119
  label: string;
227
- display: {
228
- type: "foreign";
229
- localRelationRef: string;
230
- labelExpression: string;
231
- valueExpression: string;
232
- } | {
233
- type: "text";
234
- modelFieldRef: string;
235
- };
236
120
  }[];
237
121
  }, {
238
- columns: {
239
- label: string;
240
- display: {
241
- type: "foreign";
242
- localRelationRef: string;
243
- labelExpression: string;
244
- valueExpression: string;
245
- } | {
246
- type: "text";
247
- modelFieldRef: string;
248
- };
249
- }[];
122
+ columns: z.objectInputType<{
123
+ id: z.ZodDefault<z.ZodString>;
124
+ type: z.ZodString;
125
+ label: z.ZodString;
126
+ }, z.ZodTypeAny, "passthrough">[];
250
127
  }>;
251
128
  form: z.ZodObject<{
252
- fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
129
+ fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
130
+ id: z.ZodDefault<z.ZodString>;
253
131
  type: z.ZodString;
254
132
  label: z.ZodString;
255
133
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
134
+ id: z.ZodDefault<z.ZodString>;
135
+ type: z.ZodString;
136
+ label: z.ZodString;
137
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
138
+ id: z.ZodDefault<z.ZodString>;
139
+ type: z.ZodString;
140
+ label: z.ZodString;
141
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
142
+ id: z.ZodDefault<z.ZodString>;
256
143
  type: z.ZodString;
257
144
  label: z.ZodString;
258
145
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
146
+ id: z.ZodDefault<z.ZodString>;
259
147
  type: z.ZodString;
260
148
  label: z.ZodString;
261
149
  }, z.ZodTypeAny, "passthrough">>, {
262
150
  type: string;
151
+ id: string;
263
152
  label: string;
264
153
  }, z.objectInputType<{
154
+ id: z.ZodDefault<z.ZodString>;
265
155
  type: z.ZodString;
266
156
  label: z.ZodString;
267
157
  }, z.ZodTypeAny, "passthrough">>, "many">;
268
158
  }, "strip", z.ZodTypeAny, {
269
159
  fields: {
270
160
  type: string;
161
+ id: string;
271
162
  label: string;
272
163
  }[];
273
164
  }, {
274
165
  fields: z.objectInputType<{
166
+ id: z.ZodDefault<z.ZodString>;
275
167
  type: z.ZodString;
276
168
  label: z.ZodString;
277
169
  }, z.ZodTypeAny, "passthrough">[];
@@ -284,21 +176,15 @@ export declare const createAdminCrudEmbeddedListSchema: (context: import("#src/s
284
176
  form: {
285
177
  fields: {
286
178
  type: string;
179
+ id: string;
287
180
  label: string;
288
181
  }[];
289
182
  };
290
183
  table: {
291
184
  columns: {
185
+ type: string;
186
+ id: string;
292
187
  label: string;
293
- display: {
294
- type: "foreign";
295
- localRelationRef: string;
296
- labelExpression: string;
297
- valueExpression: string;
298
- } | {
299
- type: "text";
300
- modelFieldRef: string;
301
- };
302
188
  }[];
303
189
  };
304
190
  includeIdField?: boolean | undefined;
@@ -309,23 +195,17 @@ export declare const createAdminCrudEmbeddedListSchema: (context: import("#src/s
309
195
  modelRef: string;
310
196
  form: {
311
197
  fields: z.objectInputType<{
198
+ id: z.ZodDefault<z.ZodString>;
312
199
  type: z.ZodString;
313
200
  label: z.ZodString;
314
201
  }, z.ZodTypeAny, "passthrough">[];
315
202
  };
316
203
  table: {
317
- columns: {
318
- label: string;
319
- display: {
320
- type: "foreign";
321
- localRelationRef: string;
322
- labelExpression: string;
323
- valueExpression: string;
324
- } | {
325
- type: "text";
326
- modelFieldRef: string;
327
- };
328
- }[];
204
+ columns: z.objectInputType<{
205
+ id: z.ZodDefault<z.ZodString>;
206
+ type: z.ZodString;
207
+ label: z.ZodString;
208
+ }, z.ZodTypeAny, "passthrough">[];
329
209
  };
330
210
  includeIdField?: boolean | undefined;
331
211
  }>;
@@ -336,29 +216,44 @@ export declare const createAdminCrudEmbeddedFormSchema: (context: import("#src/s
336
216
  includeIdField: z.ZodOptional<z.ZodBoolean>;
337
217
  type: z.ZodLiteral<"object">;
338
218
  form: z.ZodObject<{
339
- fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
219
+ fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
220
+ id: z.ZodDefault<z.ZodString>;
340
221
  type: z.ZodString;
341
222
  label: z.ZodString;
342
223
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
224
+ id: z.ZodDefault<z.ZodString>;
225
+ type: z.ZodString;
226
+ label: z.ZodString;
227
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
228
+ id: z.ZodDefault<z.ZodString>;
229
+ type: z.ZodString;
230
+ label: z.ZodString;
231
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
232
+ id: z.ZodDefault<z.ZodString>;
343
233
  type: z.ZodString;
344
234
  label: z.ZodString;
345
235
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
236
+ id: z.ZodDefault<z.ZodString>;
346
237
  type: z.ZodString;
347
238
  label: z.ZodString;
348
239
  }, z.ZodTypeAny, "passthrough">>, {
349
240
  type: string;
241
+ id: string;
350
242
  label: string;
351
243
  }, z.objectInputType<{
244
+ id: z.ZodDefault<z.ZodString>;
352
245
  type: z.ZodString;
353
246
  label: z.ZodString;
354
247
  }, z.ZodTypeAny, "passthrough">>, "many">;
355
248
  }, "strip", z.ZodTypeAny, {
356
249
  fields: {
357
250
  type: string;
251
+ id: string;
358
252
  label: string;
359
253
  }[];
360
254
  }, {
361
255
  fields: z.objectInputType<{
256
+ id: z.ZodDefault<z.ZodString>;
362
257
  type: z.ZodString;
363
258
  label: z.ZodString;
364
259
  }, z.ZodTypeAny, "passthrough">[];
@@ -371,6 +266,7 @@ export declare const createAdminCrudEmbeddedFormSchema: (context: import("#src/s
371
266
  form: {
372
267
  fields: {
373
268
  type: string;
269
+ id: string;
374
270
  label: string;
375
271
  }[];
376
272
  };
@@ -382,6 +278,7 @@ export declare const createAdminCrudEmbeddedFormSchema: (context: import("#src/s
382
278
  modelRef: string;
383
279
  form: {
384
280
  fields: z.objectInputType<{
281
+ id: z.ZodDefault<z.ZodString>;
385
282
  type: z.ZodString;
386
283
  label: z.ZodString;
387
284
  }, z.ZodTypeAny, "passthrough">[];
@@ -394,107 +291,87 @@ export declare const createAdminCrudEmbeddedFormSchema: (context: import("#src/s
394
291
  includeIdField: z.ZodOptional<z.ZodBoolean>;
395
292
  type: z.ZodLiteral<"list">;
396
293
  table: z.ZodObject<{
397
- columns: z.ZodArray<z.ZodObject<{
398
- label: z.ZodString;
399
- display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
400
- type: z.ZodLiteral<"text">;
401
- modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
402
- }, "strip", z.ZodTypeAny, {
403
- type: "text";
404
- modelFieldRef: string;
405
- }, {
406
- type: "text";
407
- modelFieldRef: string;
408
- }>, z.ZodObject<{
409
- type: z.ZodLiteral<"foreign">;
410
- localRelationRef: z.ZodEffects<z.ZodString, string, string>;
411
- labelExpression: z.ZodString;
412
- valueExpression: z.ZodString;
413
- }, "strip", z.ZodTypeAny, {
414
- type: "foreign";
415
- localRelationRef: string;
416
- labelExpression: string;
417
- valueExpression: string;
418
- }, {
419
- type: "foreign";
420
- localRelationRef: string;
421
- labelExpression: string;
422
- valueExpression: string;
423
- }>]>;
424
- }, "strip", z.ZodTypeAny, {
425
- label: string;
426
- display: {
427
- type: "foreign";
428
- localRelationRef: string;
429
- labelExpression: string;
430
- valueExpression: string;
431
- } | {
432
- type: "text";
433
- modelFieldRef: string;
434
- };
435
- }, {
294
+ columns: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
295
+ id: z.ZodDefault<z.ZodString>;
296
+ type: z.ZodString;
297
+ label: z.ZodString;
298
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
299
+ id: z.ZodDefault<z.ZodString>;
300
+ type: z.ZodString;
301
+ label: z.ZodString;
302
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
303
+ id: z.ZodDefault<z.ZodString>;
304
+ type: z.ZodString;
305
+ label: z.ZodString;
306
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
307
+ id: z.ZodDefault<z.ZodString>;
308
+ type: z.ZodString;
309
+ label: z.ZodString;
310
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
311
+ id: z.ZodDefault<z.ZodString>;
312
+ type: z.ZodString;
313
+ label: z.ZodString;
314
+ }, z.ZodTypeAny, "passthrough">>, {
315
+ type: string;
316
+ id: string;
436
317
  label: string;
437
- display: {
438
- type: "foreign";
439
- localRelationRef: string;
440
- labelExpression: string;
441
- valueExpression: string;
442
- } | {
443
- type: "text";
444
- modelFieldRef: string;
445
- };
446
- }>, "many">;
318
+ }, z.objectInputType<{
319
+ id: z.ZodDefault<z.ZodString>;
320
+ type: z.ZodString;
321
+ label: z.ZodString;
322
+ }, z.ZodTypeAny, "passthrough">>, "many">;
447
323
  }, "strip", z.ZodTypeAny, {
448
324
  columns: {
325
+ type: string;
326
+ id: string;
449
327
  label: string;
450
- display: {
451
- type: "foreign";
452
- localRelationRef: string;
453
- labelExpression: string;
454
- valueExpression: string;
455
- } | {
456
- type: "text";
457
- modelFieldRef: string;
458
- };
459
328
  }[];
460
329
  }, {
461
- columns: {
462
- label: string;
463
- display: {
464
- type: "foreign";
465
- localRelationRef: string;
466
- labelExpression: string;
467
- valueExpression: string;
468
- } | {
469
- type: "text";
470
- modelFieldRef: string;
471
- };
472
- }[];
330
+ columns: z.objectInputType<{
331
+ id: z.ZodDefault<z.ZodString>;
332
+ type: z.ZodString;
333
+ label: z.ZodString;
334
+ }, z.ZodTypeAny, "passthrough">[];
473
335
  }>;
474
336
  form: z.ZodObject<{
475
- fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
337
+ fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
338
+ id: z.ZodDefault<z.ZodString>;
476
339
  type: z.ZodString;
477
340
  label: z.ZodString;
478
341
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
342
+ id: z.ZodDefault<z.ZodString>;
343
+ type: z.ZodString;
344
+ label: z.ZodString;
345
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
346
+ id: z.ZodDefault<z.ZodString>;
347
+ type: z.ZodString;
348
+ label: z.ZodString;
349
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
350
+ id: z.ZodDefault<z.ZodString>;
479
351
  type: z.ZodString;
480
352
  label: z.ZodString;
481
353
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
354
+ id: z.ZodDefault<z.ZodString>;
482
355
  type: z.ZodString;
483
356
  label: z.ZodString;
484
357
  }, z.ZodTypeAny, "passthrough">>, {
485
358
  type: string;
359
+ id: string;
486
360
  label: string;
487
361
  }, z.objectInputType<{
362
+ id: z.ZodDefault<z.ZodString>;
488
363
  type: z.ZodString;
489
364
  label: z.ZodString;
490
365
  }, z.ZodTypeAny, "passthrough">>, "many">;
491
366
  }, "strip", z.ZodTypeAny, {
492
367
  fields: {
493
368
  type: string;
369
+ id: string;
494
370
  label: string;
495
371
  }[];
496
372
  }, {
497
373
  fields: z.objectInputType<{
374
+ id: z.ZodDefault<z.ZodString>;
498
375
  type: z.ZodString;
499
376
  label: z.ZodString;
500
377
  }, z.ZodTypeAny, "passthrough">[];
@@ -507,21 +384,15 @@ export declare const createAdminCrudEmbeddedFormSchema: (context: import("#src/s
507
384
  form: {
508
385
  fields: {
509
386
  type: string;
387
+ id: string;
510
388
  label: string;
511
389
  }[];
512
390
  };
513
391
  table: {
514
392
  columns: {
393
+ type: string;
394
+ id: string;
515
395
  label: string;
516
- display: {
517
- type: "foreign";
518
- localRelationRef: string;
519
- labelExpression: string;
520
- valueExpression: string;
521
- } | {
522
- type: "text";
523
- modelFieldRef: string;
524
- };
525
396
  }[];
526
397
  };
527
398
  includeIdField?: boolean | undefined;
@@ -532,23 +403,17 @@ export declare const createAdminCrudEmbeddedFormSchema: (context: import("#src/s
532
403
  modelRef: string;
533
404
  form: {
534
405
  fields: z.objectInputType<{
406
+ id: z.ZodDefault<z.ZodString>;
535
407
  type: z.ZodString;
536
408
  label: z.ZodString;
537
409
  }, z.ZodTypeAny, "passthrough">[];
538
410
  };
539
411
  table: {
540
- columns: {
541
- label: string;
542
- display: {
543
- type: "foreign";
544
- localRelationRef: string;
545
- labelExpression: string;
546
- valueExpression: string;
547
- } | {
548
- type: "text";
549
- modelFieldRef: string;
550
- };
551
- }[];
412
+ columns: z.objectInputType<{
413
+ id: z.ZodDefault<z.ZodString>;
414
+ type: z.ZodString;
415
+ label: z.ZodString;
416
+ }, z.ZodTypeAny, "passthrough">[];
552
417
  };
553
418
  includeIdField?: boolean | undefined;
554
419
  }>]>, {
@@ -559,6 +424,7 @@ export declare const createAdminCrudEmbeddedFormSchema: (context: import("#src/s
559
424
  form: {
560
425
  fields: {
561
426
  type: string;
427
+ id: string;
562
428
  label: string;
563
429
  }[];
564
430
  };
@@ -571,21 +437,15 @@ export declare const createAdminCrudEmbeddedFormSchema: (context: import("#src/s
571
437
  form: {
572
438
  fields: {
573
439
  type: string;
440
+ id: string;
574
441
  label: string;
575
442
  }[];
576
443
  };
577
444
  table: {
578
445
  columns: {
446
+ type: string;
447
+ id: string;
579
448
  label: string;
580
- display: {
581
- type: "foreign";
582
- localRelationRef: string;
583
- labelExpression: string;
584
- valueExpression: string;
585
- } | {
586
- type: "text";
587
- modelFieldRef: string;
588
- };
589
449
  }[];
590
450
  };
591
451
  includeIdField?: boolean | undefined;
@@ -596,6 +456,7 @@ export declare const createAdminCrudEmbeddedFormSchema: (context: import("#src/s
596
456
  modelRef: string;
597
457
  form: {
598
458
  fields: z.objectInputType<{
459
+ id: z.ZodDefault<z.ZodString>;
599
460
  type: z.ZodString;
600
461
  label: z.ZodString;
601
462
  }, z.ZodTypeAny, "passthrough">[];
@@ -608,23 +469,17 @@ export declare const createAdminCrudEmbeddedFormSchema: (context: import("#src/s
608
469
  modelRef: string;
609
470
  form: {
610
471
  fields: z.objectInputType<{
472
+ id: z.ZodDefault<z.ZodString>;
611
473
  type: z.ZodString;
612
474
  label: z.ZodString;
613
475
  }, z.ZodTypeAny, "passthrough">[];
614
476
  };
615
477
  table: {
616
- columns: {
617
- label: string;
618
- display: {
619
- type: "foreign";
620
- localRelationRef: string;
621
- labelExpression: string;
622
- valueExpression: string;
623
- } | {
624
- type: "text";
625
- modelFieldRef: string;
626
- };
627
- }[];
478
+ columns: z.objectInputType<{
479
+ id: z.ZodDefault<z.ZodString>;
480
+ type: z.ZodString;
481
+ label: z.ZodString;
482
+ }, z.ZodTypeAny, "passthrough">[];
628
483
  };
629
484
  includeIdField?: boolean | undefined;
630
485
  }>;
@@ -651,109 +506,137 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
651
506
  }>, z.ZodObject<{
652
507
  type: z.ZodLiteral<"crud">;
653
508
  modelRef: z.ZodEffects<z.ZodString, string, string>;
509
+ nameFieldRef: z.ZodEffects<z.ZodString, string, string>;
654
510
  disableCreate: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
655
511
  table: z.ZodObject<{
656
- columns: z.ZodArray<z.ZodObject<{
657
- label: z.ZodString;
658
- display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
659
- type: z.ZodLiteral<"text">;
660
- modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
661
- }, "strip", z.ZodTypeAny, {
662
- type: "text";
663
- modelFieldRef: string;
664
- }, {
665
- type: "text";
666
- modelFieldRef: string;
667
- }>, z.ZodObject<{
668
- type: z.ZodLiteral<"foreign">;
669
- localRelationRef: z.ZodEffects<z.ZodString, string, string>;
670
- labelExpression: z.ZodString;
671
- valueExpression: z.ZodString;
672
- }, "strip", z.ZodTypeAny, {
673
- type: "foreign";
674
- localRelationRef: string;
675
- labelExpression: string;
676
- valueExpression: string;
677
- }, {
678
- type: "foreign";
679
- localRelationRef: string;
680
- labelExpression: string;
681
- valueExpression: string;
682
- }>]>;
683
- }, "strip", z.ZodTypeAny, {
684
- label: string;
685
- display: {
686
- type: "foreign";
687
- localRelationRef: string;
688
- labelExpression: string;
689
- valueExpression: string;
690
- } | {
691
- type: "text";
692
- modelFieldRef: string;
693
- };
694
- }, {
512
+ columns: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
513
+ id: z.ZodDefault<z.ZodString>;
514
+ type: z.ZodString;
515
+ label: z.ZodString;
516
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
517
+ id: z.ZodDefault<z.ZodString>;
518
+ type: z.ZodString;
519
+ label: z.ZodString;
520
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
521
+ id: z.ZodDefault<z.ZodString>;
522
+ type: z.ZodString;
523
+ label: z.ZodString;
524
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
525
+ id: z.ZodDefault<z.ZodString>;
526
+ type: z.ZodString;
527
+ label: z.ZodString;
528
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
529
+ id: z.ZodDefault<z.ZodString>;
530
+ type: z.ZodString;
531
+ label: z.ZodString;
532
+ }, z.ZodTypeAny, "passthrough">>, {
533
+ type: string;
534
+ id: string;
695
535
  label: string;
696
- display: {
697
- type: "foreign";
698
- localRelationRef: string;
699
- labelExpression: string;
700
- valueExpression: string;
701
- } | {
702
- type: "text";
703
- modelFieldRef: string;
704
- };
705
- }>, "many">;
536
+ }, z.objectInputType<{
537
+ id: z.ZodDefault<z.ZodString>;
538
+ type: z.ZodString;
539
+ label: z.ZodString;
540
+ }, z.ZodTypeAny, "passthrough">>, "many">;
541
+ actions: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
542
+ id: z.ZodDefault<z.ZodString>;
543
+ type: z.ZodString;
544
+ position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
545
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
546
+ id: z.ZodDefault<z.ZodString>;
547
+ type: z.ZodString;
548
+ position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
549
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
550
+ id: z.ZodDefault<z.ZodString>;
551
+ type: z.ZodString;
552
+ position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
553
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
554
+ id: z.ZodDefault<z.ZodString>;
555
+ type: z.ZodString;
556
+ position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
557
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
558
+ id: z.ZodDefault<z.ZodString>;
559
+ type: z.ZodString;
560
+ position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
561
+ }, z.ZodTypeAny, "passthrough">>, {
562
+ type: string;
563
+ id: string;
564
+ position: "inline" | "dropdown";
565
+ }, z.objectInputType<{
566
+ id: z.ZodDefault<z.ZodString>;
567
+ type: z.ZodString;
568
+ position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
569
+ }, z.ZodTypeAny, "passthrough">>, "many">>, {
570
+ type: string;
571
+ id: string;
572
+ position: "inline" | "dropdown";
573
+ }[] | undefined, z.objectInputType<{
574
+ id: z.ZodDefault<z.ZodString>;
575
+ type: z.ZodString;
576
+ position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
577
+ }, z.ZodTypeAny, "passthrough">[] | undefined>;
706
578
  }, "strip", z.ZodTypeAny, {
707
579
  columns: {
580
+ type: string;
581
+ id: string;
708
582
  label: string;
709
- display: {
710
- type: "foreign";
711
- localRelationRef: string;
712
- labelExpression: string;
713
- valueExpression: string;
714
- } | {
715
- type: "text";
716
- modelFieldRef: string;
717
- };
718
583
  }[];
584
+ actions?: {
585
+ type: string;
586
+ id: string;
587
+ position: "inline" | "dropdown";
588
+ }[] | undefined;
719
589
  }, {
720
- columns: {
721
- label: string;
722
- display: {
723
- type: "foreign";
724
- localRelationRef: string;
725
- labelExpression: string;
726
- valueExpression: string;
727
- } | {
728
- type: "text";
729
- modelFieldRef: string;
730
- };
731
- }[];
590
+ columns: z.objectInputType<{
591
+ id: z.ZodDefault<z.ZodString>;
592
+ type: z.ZodString;
593
+ label: z.ZodString;
594
+ }, z.ZodTypeAny, "passthrough">[];
595
+ actions?: z.objectInputType<{
596
+ id: z.ZodDefault<z.ZodString>;
597
+ type: z.ZodString;
598
+ position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
599
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
732
600
  }>;
733
601
  form: z.ZodObject<{
734
- fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
602
+ fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
603
+ id: z.ZodDefault<z.ZodString>;
735
604
  type: z.ZodString;
736
605
  label: z.ZodString;
737
606
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
607
+ id: z.ZodDefault<z.ZodString>;
738
608
  type: z.ZodString;
739
609
  label: z.ZodString;
740
610
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
611
+ id: z.ZodDefault<z.ZodString>;
612
+ type: z.ZodString;
613
+ label: z.ZodString;
614
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
615
+ id: z.ZodDefault<z.ZodString>;
616
+ type: z.ZodString;
617
+ label: z.ZodString;
618
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
619
+ id: z.ZodDefault<z.ZodString>;
741
620
  type: z.ZodString;
742
621
  label: z.ZodString;
743
622
  }, z.ZodTypeAny, "passthrough">>, {
744
623
  type: string;
624
+ id: string;
745
625
  label: string;
746
626
  }, z.objectInputType<{
627
+ id: z.ZodDefault<z.ZodString>;
747
628
  type: z.ZodString;
748
629
  label: z.ZodString;
749
630
  }, z.ZodTypeAny, "passthrough">>, "many">;
750
631
  }, "strip", z.ZodTypeAny, {
751
632
  fields: {
752
633
  type: string;
634
+ id: string;
753
635
  label: string;
754
636
  }[];
755
637
  }, {
756
638
  fields: z.objectInputType<{
639
+ id: z.ZodDefault<z.ZodString>;
757
640
  type: z.ZodString;
758
641
  label: z.ZodString;
759
642
  }, z.ZodTypeAny, "passthrough">[];
@@ -765,29 +648,44 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
765
648
  includeIdField: z.ZodOptional<z.ZodBoolean>;
766
649
  type: z.ZodLiteral<"object">;
767
650
  form: z.ZodObject<{
768
- fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
651
+ fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
652
+ id: z.ZodDefault<z.ZodString>;
769
653
  type: z.ZodString;
770
654
  label: z.ZodString;
771
655
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
656
+ id: z.ZodDefault<z.ZodString>;
657
+ type: z.ZodString;
658
+ label: z.ZodString;
659
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
660
+ id: z.ZodDefault<z.ZodString>;
661
+ type: z.ZodString;
662
+ label: z.ZodString;
663
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
664
+ id: z.ZodDefault<z.ZodString>;
772
665
  type: z.ZodString;
773
666
  label: z.ZodString;
774
667
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
668
+ id: z.ZodDefault<z.ZodString>;
775
669
  type: z.ZodString;
776
670
  label: z.ZodString;
777
671
  }, z.ZodTypeAny, "passthrough">>, {
778
672
  type: string;
673
+ id: string;
779
674
  label: string;
780
675
  }, z.objectInputType<{
676
+ id: z.ZodDefault<z.ZodString>;
781
677
  type: z.ZodString;
782
678
  label: z.ZodString;
783
679
  }, z.ZodTypeAny, "passthrough">>, "many">;
784
680
  }, "strip", z.ZodTypeAny, {
785
681
  fields: {
786
682
  type: string;
683
+ id: string;
787
684
  label: string;
788
685
  }[];
789
686
  }, {
790
687
  fields: z.objectInputType<{
688
+ id: z.ZodDefault<z.ZodString>;
791
689
  type: z.ZodString;
792
690
  label: z.ZodString;
793
691
  }, z.ZodTypeAny, "passthrough">[];
@@ -800,6 +698,7 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
800
698
  form: {
801
699
  fields: {
802
700
  type: string;
701
+ id: string;
803
702
  label: string;
804
703
  }[];
805
704
  };
@@ -811,6 +710,7 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
811
710
  modelRef: string;
812
711
  form: {
813
712
  fields: z.objectInputType<{
713
+ id: z.ZodDefault<z.ZodString>;
814
714
  type: z.ZodString;
815
715
  label: z.ZodString;
816
716
  }, z.ZodTypeAny, "passthrough">[];
@@ -823,107 +723,87 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
823
723
  includeIdField: z.ZodOptional<z.ZodBoolean>;
824
724
  type: z.ZodLiteral<"list">;
825
725
  table: z.ZodObject<{
826
- columns: z.ZodArray<z.ZodObject<{
726
+ columns: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
727
+ id: z.ZodDefault<z.ZodString>;
728
+ type: z.ZodString;
827
729
  label: z.ZodString;
828
- display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
829
- type: z.ZodLiteral<"text">;
830
- modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
831
- }, "strip", z.ZodTypeAny, {
832
- type: "text";
833
- modelFieldRef: string;
834
- }, {
835
- type: "text";
836
- modelFieldRef: string;
837
- }>, z.ZodObject<{
838
- type: z.ZodLiteral<"foreign">;
839
- localRelationRef: z.ZodEffects<z.ZodString, string, string>;
840
- labelExpression: z.ZodString;
841
- valueExpression: z.ZodString;
842
- }, "strip", z.ZodTypeAny, {
843
- type: "foreign";
844
- localRelationRef: string;
845
- labelExpression: string;
846
- valueExpression: string;
847
- }, {
848
- type: "foreign";
849
- localRelationRef: string;
850
- labelExpression: string;
851
- valueExpression: string;
852
- }>]>;
853
- }, "strip", z.ZodTypeAny, {
854
- label: string;
855
- display: {
856
- type: "foreign";
857
- localRelationRef: string;
858
- labelExpression: string;
859
- valueExpression: string;
860
- } | {
861
- type: "text";
862
- modelFieldRef: string;
863
- };
864
- }, {
730
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
731
+ id: z.ZodDefault<z.ZodString>;
732
+ type: z.ZodString;
733
+ label: z.ZodString;
734
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
735
+ id: z.ZodDefault<z.ZodString>;
736
+ type: z.ZodString;
737
+ label: z.ZodString;
738
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
739
+ id: z.ZodDefault<z.ZodString>;
740
+ type: z.ZodString;
741
+ label: z.ZodString;
742
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
743
+ id: z.ZodDefault<z.ZodString>;
744
+ type: z.ZodString;
745
+ label: z.ZodString;
746
+ }, z.ZodTypeAny, "passthrough">>, {
747
+ type: string;
748
+ id: string;
865
749
  label: string;
866
- display: {
867
- type: "foreign";
868
- localRelationRef: string;
869
- labelExpression: string;
870
- valueExpression: string;
871
- } | {
872
- type: "text";
873
- modelFieldRef: string;
874
- };
875
- }>, "many">;
750
+ }, z.objectInputType<{
751
+ id: z.ZodDefault<z.ZodString>;
752
+ type: z.ZodString;
753
+ label: z.ZodString;
754
+ }, z.ZodTypeAny, "passthrough">>, "many">;
876
755
  }, "strip", z.ZodTypeAny, {
877
756
  columns: {
757
+ type: string;
758
+ id: string;
878
759
  label: string;
879
- display: {
880
- type: "foreign";
881
- localRelationRef: string;
882
- labelExpression: string;
883
- valueExpression: string;
884
- } | {
885
- type: "text";
886
- modelFieldRef: string;
887
- };
888
760
  }[];
889
761
  }, {
890
- columns: {
891
- label: string;
892
- display: {
893
- type: "foreign";
894
- localRelationRef: string;
895
- labelExpression: string;
896
- valueExpression: string;
897
- } | {
898
- type: "text";
899
- modelFieldRef: string;
900
- };
901
- }[];
762
+ columns: z.objectInputType<{
763
+ id: z.ZodDefault<z.ZodString>;
764
+ type: z.ZodString;
765
+ label: z.ZodString;
766
+ }, z.ZodTypeAny, "passthrough">[];
902
767
  }>;
903
768
  form: z.ZodObject<{
904
- fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
769
+ fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
770
+ id: z.ZodDefault<z.ZodString>;
905
771
  type: z.ZodString;
906
772
  label: z.ZodString;
907
773
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
774
+ id: z.ZodDefault<z.ZodString>;
775
+ type: z.ZodString;
776
+ label: z.ZodString;
777
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
778
+ id: z.ZodDefault<z.ZodString>;
779
+ type: z.ZodString;
780
+ label: z.ZodString;
781
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
782
+ id: z.ZodDefault<z.ZodString>;
908
783
  type: z.ZodString;
909
784
  label: z.ZodString;
910
785
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
786
+ id: z.ZodDefault<z.ZodString>;
911
787
  type: z.ZodString;
912
788
  label: z.ZodString;
913
789
  }, z.ZodTypeAny, "passthrough">>, {
914
790
  type: string;
791
+ id: string;
915
792
  label: string;
916
793
  }, z.objectInputType<{
794
+ id: z.ZodDefault<z.ZodString>;
917
795
  type: z.ZodString;
918
796
  label: z.ZodString;
919
797
  }, z.ZodTypeAny, "passthrough">>, "many">;
920
798
  }, "strip", z.ZodTypeAny, {
921
799
  fields: {
922
800
  type: string;
801
+ id: string;
923
802
  label: string;
924
803
  }[];
925
804
  }, {
926
805
  fields: z.objectInputType<{
806
+ id: z.ZodDefault<z.ZodString>;
927
807
  type: z.ZodString;
928
808
  label: z.ZodString;
929
809
  }, z.ZodTypeAny, "passthrough">[];
@@ -936,21 +816,15 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
936
816
  form: {
937
817
  fields: {
938
818
  type: string;
819
+ id: string;
939
820
  label: string;
940
821
  }[];
941
822
  };
942
823
  table: {
943
824
  columns: {
825
+ type: string;
826
+ id: string;
944
827
  label: string;
945
- display: {
946
- type: "foreign";
947
- localRelationRef: string;
948
- labelExpression: string;
949
- valueExpression: string;
950
- } | {
951
- type: "text";
952
- modelFieldRef: string;
953
- };
954
828
  }[];
955
829
  };
956
830
  includeIdField?: boolean | undefined;
@@ -961,23 +835,17 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
961
835
  modelRef: string;
962
836
  form: {
963
837
  fields: z.objectInputType<{
838
+ id: z.ZodDefault<z.ZodString>;
964
839
  type: z.ZodString;
965
840
  label: z.ZodString;
966
841
  }, z.ZodTypeAny, "passthrough">[];
967
842
  };
968
843
  table: {
969
- columns: {
970
- label: string;
971
- display: {
972
- type: "foreign";
973
- localRelationRef: string;
974
- labelExpression: string;
975
- valueExpression: string;
976
- } | {
977
- type: "text";
978
- modelFieldRef: string;
979
- };
980
- }[];
844
+ columns: z.objectInputType<{
845
+ id: z.ZodDefault<z.ZodString>;
846
+ type: z.ZodString;
847
+ label: z.ZodString;
848
+ }, z.ZodTypeAny, "passthrough">[];
981
849
  };
982
850
  includeIdField?: boolean | undefined;
983
851
  }>]>, {
@@ -988,6 +856,7 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
988
856
  form: {
989
857
  fields: {
990
858
  type: string;
859
+ id: string;
991
860
  label: string;
992
861
  }[];
993
862
  };
@@ -1000,21 +869,15 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
1000
869
  form: {
1001
870
  fields: {
1002
871
  type: string;
872
+ id: string;
1003
873
  label: string;
1004
874
  }[];
1005
875
  };
1006
876
  table: {
1007
877
  columns: {
878
+ type: string;
879
+ id: string;
1008
880
  label: string;
1009
- display: {
1010
- type: "foreign";
1011
- localRelationRef: string;
1012
- labelExpression: string;
1013
- valueExpression: string;
1014
- } | {
1015
- type: "text";
1016
- modelFieldRef: string;
1017
- };
1018
881
  }[];
1019
882
  };
1020
883
  includeIdField?: boolean | undefined;
@@ -1025,6 +888,7 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
1025
888
  modelRef: string;
1026
889
  form: {
1027
890
  fields: z.objectInputType<{
891
+ id: z.ZodDefault<z.ZodString>;
1028
892
  type: z.ZodString;
1029
893
  label: z.ZodString;
1030
894
  }, z.ZodTypeAny, "passthrough">[];
@@ -1037,23 +901,17 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
1037
901
  modelRef: string;
1038
902
  form: {
1039
903
  fields: z.objectInputType<{
904
+ id: z.ZodDefault<z.ZodString>;
1040
905
  type: z.ZodString;
1041
906
  label: z.ZodString;
1042
907
  }, z.ZodTypeAny, "passthrough">[];
1043
908
  };
1044
909
  table: {
1045
- columns: {
1046
- label: string;
1047
- display: {
1048
- type: "foreign";
1049
- localRelationRef: string;
1050
- labelExpression: string;
1051
- valueExpression: string;
1052
- } | {
1053
- type: "text";
1054
- modelFieldRef: string;
1055
- };
1056
- }[];
910
+ columns: z.objectInputType<{
911
+ id: z.ZodDefault<z.ZodString>;
912
+ type: z.ZodString;
913
+ label: z.ZodString;
914
+ }, z.ZodTypeAny, "passthrough">[];
1057
915
  };
1058
916
  includeIdField?: boolean | undefined;
1059
917
  }>, "many">>;
@@ -1063,23 +921,23 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
1063
921
  form: {
1064
922
  fields: {
1065
923
  type: string;
924
+ id: string;
1066
925
  label: string;
1067
926
  }[];
1068
927
  };
1069
928
  table: {
1070
929
  columns: {
930
+ type: string;
931
+ id: string;
1071
932
  label: string;
1072
- display: {
1073
- type: "foreign";
1074
- localRelationRef: string;
1075
- labelExpression: string;
1076
- valueExpression: string;
1077
- } | {
1078
- type: "text";
1079
- modelFieldRef: string;
1080
- };
1081
933
  }[];
934
+ actions?: {
935
+ type: string;
936
+ id: string;
937
+ position: "inline" | "dropdown";
938
+ }[] | undefined;
1082
939
  };
940
+ nameFieldRef: string;
1083
941
  disableCreate?: boolean | undefined;
1084
942
  embeddedForms?: ({
1085
943
  type: "object";
@@ -1089,6 +947,7 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
1089
947
  form: {
1090
948
  fields: {
1091
949
  type: string;
950
+ id: string;
1092
951
  label: string;
1093
952
  }[];
1094
953
  };
@@ -1101,21 +960,15 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
1101
960
  form: {
1102
961
  fields: {
1103
962
  type: string;
963
+ id: string;
1104
964
  label: string;
1105
965
  }[];
1106
966
  };
1107
967
  table: {
1108
968
  columns: {
969
+ type: string;
970
+ id: string;
1109
971
  label: string;
1110
- display: {
1111
- type: "foreign";
1112
- localRelationRef: string;
1113
- labelExpression: string;
1114
- valueExpression: string;
1115
- } | {
1116
- type: "text";
1117
- modelFieldRef: string;
1118
- };
1119
972
  }[];
1120
973
  };
1121
974
  includeIdField?: boolean | undefined;
@@ -1125,24 +978,24 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
1125
978
  modelRef: string;
1126
979
  form: {
1127
980
  fields: z.objectInputType<{
981
+ id: z.ZodDefault<z.ZodString>;
1128
982
  type: z.ZodString;
1129
983
  label: z.ZodString;
1130
984
  }, z.ZodTypeAny, "passthrough">[];
1131
985
  };
1132
986
  table: {
1133
- columns: {
1134
- label: string;
1135
- display: {
1136
- type: "foreign";
1137
- localRelationRef: string;
1138
- labelExpression: string;
1139
- valueExpression: string;
1140
- } | {
1141
- type: "text";
1142
- modelFieldRef: string;
1143
- };
1144
- }[];
987
+ columns: z.objectInputType<{
988
+ id: z.ZodDefault<z.ZodString>;
989
+ type: z.ZodString;
990
+ label: z.ZodString;
991
+ }, z.ZodTypeAny, "passthrough">[];
992
+ actions?: z.objectInputType<{
993
+ id: z.ZodDefault<z.ZodString>;
994
+ type: z.ZodString;
995
+ position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
996
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
1145
997
  };
998
+ nameFieldRef: string;
1146
999
  disableCreate?: boolean | undefined;
1147
1000
  embeddedForms?: ({
1148
1001
  type: "object";
@@ -1151,6 +1004,7 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
1151
1004
  modelRef: string;
1152
1005
  form: {
1153
1006
  fields: z.objectInputType<{
1007
+ id: z.ZodDefault<z.ZodString>;
1154
1008
  type: z.ZodString;
1155
1009
  label: z.ZodString;
1156
1010
  }, z.ZodTypeAny, "passthrough">[];
@@ -1163,23 +1017,17 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
1163
1017
  modelRef: string;
1164
1018
  form: {
1165
1019
  fields: z.objectInputType<{
1020
+ id: z.ZodDefault<z.ZodString>;
1166
1021
  type: z.ZodString;
1167
1022
  label: z.ZodString;
1168
1023
  }, z.ZodTypeAny, "passthrough">[];
1169
1024
  };
1170
1025
  table: {
1171
- columns: {
1172
- label: string;
1173
- display: {
1174
- type: "foreign";
1175
- localRelationRef: string;
1176
- labelExpression: string;
1177
- valueExpression: string;
1178
- } | {
1179
- type: "text";
1180
- modelFieldRef: string;
1181
- };
1182
- }[];
1026
+ columns: z.objectInputType<{
1027
+ id: z.ZodDefault<z.ZodString>;
1028
+ type: z.ZodString;
1029
+ label: z.ZodString;
1030
+ }, z.ZodTypeAny, "passthrough">[];
1183
1031
  };
1184
1032
  includeIdField?: boolean | undefined;
1185
1033
  })[] | undefined;
@@ -1195,23 +1043,23 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
1195
1043
  form: {
1196
1044
  fields: {
1197
1045
  type: string;
1046
+ id: string;
1198
1047
  label: string;
1199
1048
  }[];
1200
1049
  };
1201
1050
  table: {
1202
1051
  columns: {
1052
+ type: string;
1053
+ id: string;
1203
1054
  label: string;
1204
- display: {
1205
- type: "foreign";
1206
- localRelationRef: string;
1207
- labelExpression: string;
1208
- valueExpression: string;
1209
- } | {
1210
- type: "text";
1211
- modelFieldRef: string;
1212
- };
1213
1055
  }[];
1056
+ actions?: {
1057
+ type: string;
1058
+ id: string;
1059
+ position: "inline" | "dropdown";
1060
+ }[] | undefined;
1214
1061
  };
1062
+ nameFieldRef: string;
1215
1063
  disableCreate?: boolean | undefined;
1216
1064
  embeddedForms?: ({
1217
1065
  type: "object";
@@ -1221,6 +1069,7 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
1221
1069
  form: {
1222
1070
  fields: {
1223
1071
  type: string;
1072
+ id: string;
1224
1073
  label: string;
1225
1074
  }[];
1226
1075
  };
@@ -1233,21 +1082,15 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
1233
1082
  form: {
1234
1083
  fields: {
1235
1084
  type: string;
1085
+ id: string;
1236
1086
  label: string;
1237
1087
  }[];
1238
1088
  };
1239
1089
  table: {
1240
1090
  columns: {
1091
+ type: string;
1092
+ id: string;
1241
1093
  label: string;
1242
- display: {
1243
- type: "foreign";
1244
- localRelationRef: string;
1245
- labelExpression: string;
1246
- valueExpression: string;
1247
- } | {
1248
- type: "text";
1249
- modelFieldRef: string;
1250
- };
1251
1094
  }[];
1252
1095
  };
1253
1096
  includeIdField?: boolean | undefined;
@@ -1263,24 +1106,24 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
1263
1106
  modelRef: string;
1264
1107
  form: {
1265
1108
  fields: z.objectInputType<{
1109
+ id: z.ZodDefault<z.ZodString>;
1266
1110
  type: z.ZodString;
1267
1111
  label: z.ZodString;
1268
1112
  }, z.ZodTypeAny, "passthrough">[];
1269
1113
  };
1270
1114
  table: {
1271
- columns: {
1272
- label: string;
1273
- display: {
1274
- type: "foreign";
1275
- localRelationRef: string;
1276
- labelExpression: string;
1277
- valueExpression: string;
1278
- } | {
1279
- type: "text";
1280
- modelFieldRef: string;
1281
- };
1282
- }[];
1115
+ columns: z.objectInputType<{
1116
+ id: z.ZodDefault<z.ZodString>;
1117
+ type: z.ZodString;
1118
+ label: z.ZodString;
1119
+ }, z.ZodTypeAny, "passthrough">[];
1120
+ actions?: z.objectInputType<{
1121
+ id: z.ZodDefault<z.ZodString>;
1122
+ type: z.ZodString;
1123
+ position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
1124
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
1283
1125
  };
1126
+ nameFieldRef: string;
1284
1127
  disableCreate?: boolean | undefined;
1285
1128
  embeddedForms?: ({
1286
1129
  type: "object";
@@ -1289,6 +1132,7 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
1289
1132
  modelRef: string;
1290
1133
  form: {
1291
1134
  fields: z.objectInputType<{
1135
+ id: z.ZodDefault<z.ZodString>;
1292
1136
  type: z.ZodString;
1293
1137
  label: z.ZodString;
1294
1138
  }, z.ZodTypeAny, "passthrough">[];
@@ -1301,23 +1145,17 @@ export declare const createAdminCrudSectionSchema: (context: import("#src/schema
1301
1145
  modelRef: string;
1302
1146
  form: {
1303
1147
  fields: z.objectInputType<{
1148
+ id: z.ZodDefault<z.ZodString>;
1304
1149
  type: z.ZodString;
1305
1150
  label: z.ZodString;
1306
1151
  }, z.ZodTypeAny, "passthrough">[];
1307
1152
  };
1308
1153
  table: {
1309
- columns: {
1310
- label: string;
1311
- display: {
1312
- type: "foreign";
1313
- localRelationRef: string;
1314
- labelExpression: string;
1315
- valueExpression: string;
1316
- } | {
1317
- type: "text";
1318
- modelFieldRef: string;
1319
- };
1320
- }[];
1154
+ columns: z.objectInputType<{
1155
+ id: z.ZodDefault<z.ZodString>;
1156
+ type: z.ZodString;
1157
+ label: z.ZodString;
1158
+ }, z.ZodTypeAny, "passthrough">[];
1321
1159
  };
1322
1160
  includeIdField?: boolean | undefined;
1323
1161
  })[] | undefined;