@baseplate-dev/project-builder-lib 0.2.5 → 0.3.0

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 (171) hide show
  1. package/dist/compiler/app-compiler-spec.d.ts +1 -1
  2. package/dist/compiler/app-compiler-spec.d.ts.map +1 -1
  3. package/dist/definition/apps/app-utils.d.ts +9 -1
  4. package/dist/definition/apps/app-utils.d.ts.map +1 -1
  5. package/dist/definition/apps/app-utils.js +13 -5
  6. package/dist/definition/apps/app-utils.js.map +1 -1
  7. package/dist/definition/plugins/plugin-utils.d.ts +18 -6
  8. package/dist/definition/plugins/plugin-utils.d.ts.map +1 -1
  9. package/dist/definition/plugins/plugin-utils.js +40 -13
  10. package/dist/definition/plugins/plugin-utils.js.map +1 -1
  11. package/dist/migrations/index.d.ts.map +1 -1
  12. package/dist/migrations/index.js +4 -0
  13. package/dist/migrations/index.js.map +1 -1
  14. package/dist/migrations/migration-016-web-admin-config.d.ts +34 -0
  15. package/dist/migrations/migration-016-web-admin-config.d.ts.map +1 -0
  16. package/dist/migrations/migration-016-web-admin-config.js +43 -0
  17. package/dist/migrations/migration-016-web-admin-config.js.map +1 -0
  18. package/dist/migrations/migration-017-rename-auth-plugin.d.ts +21 -0
  19. package/dist/migrations/migration-017-rename-auth-plugin.d.ts.map +1 -0
  20. package/dist/migrations/migration-017-rename-auth-plugin.js +60 -0
  21. package/dist/migrations/migration-017-rename-auth-plugin.js.map +1 -0
  22. package/dist/parser/parser.d.ts +10 -1
  23. package/dist/parser/parser.d.ts.map +1 -1
  24. package/dist/parser/parser.js +27 -2
  25. package/dist/parser/parser.js.map +1 -1
  26. package/dist/plugin-tools/plugin-loader.d.ts +13 -1
  27. package/dist/plugin-tools/plugin-loader.d.ts.map +1 -1
  28. package/dist/plugin-tools/plugin-loader.js +95 -36
  29. package/dist/plugin-tools/plugin-loader.js.map +1 -1
  30. package/dist/plugins/imports/index.d.ts +1 -0
  31. package/dist/plugins/imports/index.d.ts.map +1 -1
  32. package/dist/plugins/imports/index.js +1 -0
  33. package/dist/plugins/imports/index.js.map +1 -1
  34. package/dist/plugins/imports/loader.d.ts +2 -2
  35. package/dist/plugins/imports/loader.d.ts.map +1 -1
  36. package/dist/plugins/imports/loader.js +4 -4
  37. package/dist/plugins/imports/loader.js.map +1 -1
  38. package/dist/plugins/imports/types.d.ts +1 -1
  39. package/dist/plugins/imports/types.d.ts.map +1 -1
  40. package/dist/plugins/imports/utils.d.ts +21 -0
  41. package/dist/plugins/imports/utils.d.ts.map +1 -0
  42. package/dist/plugins/imports/utils.js +33 -0
  43. package/dist/plugins/imports/utils.js.map +1 -0
  44. package/dist/plugins/index.d.ts +0 -1
  45. package/dist/plugins/index.d.ts.map +1 -1
  46. package/dist/plugins/index.js +0 -1
  47. package/dist/plugins/index.js.map +1 -1
  48. package/dist/plugins/metadata/types.d.ts +17 -3
  49. package/dist/plugins/metadata/types.d.ts.map +1 -1
  50. package/dist/plugins/metadata/types.js +9 -1
  51. package/dist/plugins/metadata/types.js.map +1 -1
  52. package/dist/plugins/plugins.test-utils.d.ts.map +1 -1
  53. package/dist/plugins/plugins.test-utils.js +2 -1
  54. package/dist/plugins/plugins.test-utils.js.map +1 -1
  55. package/dist/plugins/spec/auth-config-spec.d.ts +0 -2
  56. package/dist/plugins/spec/auth-config-spec.d.ts.map +1 -1
  57. package/dist/plugins/spec/auth-config-spec.js.map +1 -1
  58. package/dist/plugins/spec/auth-model-config-spec.d.ts +15 -0
  59. package/dist/plugins/spec/auth-model-config-spec.d.ts.map +1 -0
  60. package/dist/plugins/spec/auth-model-config-spec.js +6 -0
  61. package/dist/plugins/spec/auth-model-config-spec.js.map +1 -0
  62. package/dist/plugins/spec/config-spec.d.ts +2 -2
  63. package/dist/plugins/spec/config-spec.d.ts.map +1 -1
  64. package/dist/plugins/spec/index.d.ts +1 -0
  65. package/dist/plugins/spec/index.d.ts.map +1 -1
  66. package/dist/plugins/spec/index.js +1 -0
  67. package/dist/plugins/spec/index.js.map +1 -1
  68. package/dist/plugins/spec/web-config-spec.d.ts +3 -3
  69. package/dist/plugins/spec/web-config-spec.d.ts.map +1 -1
  70. package/dist/plugins/spec/web-config-spec.js +6 -6
  71. package/dist/plugins/spec/web-config-spec.js.map +1 -1
  72. package/dist/schema/apps/index.d.ts +0 -1
  73. package/dist/schema/apps/index.d.ts.map +1 -1
  74. package/dist/schema/apps/index.js +0 -1
  75. package/dist/schema/apps/index.js.map +1 -1
  76. package/dist/schema/apps/{admin/app.d.ts → web/admin/admin.d.ts} +233 -32
  77. package/dist/schema/apps/{admin/app.d.ts.map → web/admin/admin.d.ts.map} +1 -1
  78. package/dist/schema/apps/web/admin/admin.js +22 -0
  79. package/dist/schema/apps/web/admin/admin.js.map +1 -0
  80. package/dist/schema/apps/web/admin/index.d.ts +3 -0
  81. package/dist/schema/apps/web/admin/index.d.ts.map +1 -0
  82. package/dist/schema/apps/web/admin/index.js +3 -0
  83. package/dist/schema/apps/web/admin/index.js.map +1 -0
  84. package/dist/schema/apps/{admin → web/admin}/sections/base.d.ts +1 -1
  85. package/dist/schema/apps/web/admin/sections/base.d.ts.map +1 -0
  86. package/dist/schema/apps/web/admin/sections/base.js.map +1 -0
  87. package/dist/schema/apps/{admin → web/admin}/sections/crud-form/admin-crud-input.d.ts +1 -1
  88. package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.d.ts.map +1 -0
  89. package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.js.map +1 -0
  90. package/dist/schema/apps/web/admin/sections/crud-form/admin-input-spec.d.ts.map +1 -0
  91. package/dist/schema/apps/web/admin/sections/crud-form/admin-input-spec.js.map +1 -0
  92. package/dist/schema/apps/web/admin/sections/crud-form/built-in-input.d.ts.map +1 -0
  93. package/dist/schema/apps/web/admin/sections/crud-form/built-in-input.js.map +1 -0
  94. package/dist/schema/apps/web/admin/sections/crud-form/index.d.ts.map +1 -0
  95. package/dist/schema/apps/web/admin/sections/crud-form/index.js.map +1 -0
  96. package/dist/schema/apps/web/admin/sections/crud-form/types.d.ts.map +1 -0
  97. package/dist/schema/apps/web/admin/sections/crud-form/types.js.map +1 -0
  98. package/dist/schema/apps/{admin → web/admin}/sections/crud.d.ts +1 -1
  99. package/dist/schema/apps/web/admin/sections/crud.d.ts.map +1 -0
  100. package/dist/schema/apps/{admin → web/admin}/sections/crud.js +1 -1
  101. package/dist/schema/apps/web/admin/sections/crud.js.map +1 -0
  102. package/dist/schema/apps/web/admin/sections/index.d.ts.map +1 -0
  103. package/dist/schema/apps/web/admin/sections/index.js.map +1 -0
  104. package/dist/schema/apps/web/admin/sections/types.d.ts.map +1 -0
  105. package/dist/schema/apps/{admin → web/admin}/sections/types.js +1 -1
  106. package/dist/schema/apps/web/admin/sections/types.js.map +1 -0
  107. package/dist/schema/apps/web/index.d.ts +2 -49
  108. package/dist/schema/apps/web/index.d.ts.map +1 -1
  109. package/dist/schema/apps/web/index.js +2 -21
  110. package/dist/schema/apps/web/index.js.map +1 -1
  111. package/dist/schema/apps/web/web-app.d.ts +1540 -0
  112. package/dist/schema/apps/web/web-app.d.ts.map +1 -0
  113. package/dist/schema/apps/web/web-app.js +17 -0
  114. package/dist/schema/apps/web/web-app.js.map +1 -0
  115. package/dist/schema/features/theme.d.ts +11 -11
  116. package/dist/schema/models/index.d.ts +6 -6
  117. package/dist/schema/project-definition.d.ts +2619 -1775
  118. package/dist/schema/project-definition.d.ts.map +1 -1
  119. package/dist/schema/project-definition.js +0 -2
  120. package/dist/schema/project-definition.js.map +1 -1
  121. package/dist/schema/settings.d.ts +14 -14
  122. package/dist/tools/model-merger/model-merger.d.ts +7 -7
  123. package/dist/tools/model-merger/model-merger.d.ts.map +1 -1
  124. package/dist/tools/model-merger/model-merger.js +37 -13
  125. package/dist/tools/model-merger/model-merger.js.map +1 -1
  126. package/dist/web/specs/admin-crud-input-web-spec.d.ts +2 -2
  127. package/dist/web/specs/admin-crud-input-web-spec.d.ts.map +1 -1
  128. package/dist/web/specs/model-transformer-web-spec.d.ts +2 -2
  129. package/dist/web/specs/model-transformer-web-spec.d.ts.map +1 -1
  130. package/package.json +9 -8
  131. package/dist/plugins/manifest/manifest.d.ts +0 -13
  132. package/dist/plugins/manifest/manifest.d.ts.map +0 -1
  133. package/dist/plugins/manifest/manifest.js +0 -6
  134. package/dist/plugins/manifest/manifest.js.map +0 -1
  135. package/dist/schema/apps/admin/app.js +0 -27
  136. package/dist/schema/apps/admin/app.js.map +0 -1
  137. package/dist/schema/apps/admin/index.d.ts +0 -3
  138. package/dist/schema/apps/admin/index.d.ts.map +0 -1
  139. package/dist/schema/apps/admin/index.js +0 -3
  140. package/dist/schema/apps/admin/index.js.map +0 -1
  141. package/dist/schema/apps/admin/sections/base.d.ts.map +0 -1
  142. package/dist/schema/apps/admin/sections/base.js.map +0 -1
  143. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.d.ts.map +0 -1
  144. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.js.map +0 -1
  145. package/dist/schema/apps/admin/sections/crud-form/admin-input-spec.d.ts.map +0 -1
  146. package/dist/schema/apps/admin/sections/crud-form/admin-input-spec.js.map +0 -1
  147. package/dist/schema/apps/admin/sections/crud-form/built-in-input.d.ts.map +0 -1
  148. package/dist/schema/apps/admin/sections/crud-form/built-in-input.js.map +0 -1
  149. package/dist/schema/apps/admin/sections/crud-form/index.d.ts.map +0 -1
  150. package/dist/schema/apps/admin/sections/crud-form/index.js.map +0 -1
  151. package/dist/schema/apps/admin/sections/crud-form/types.d.ts.map +0 -1
  152. package/dist/schema/apps/admin/sections/crud-form/types.js.map +0 -1
  153. package/dist/schema/apps/admin/sections/crud.d.ts.map +0 -1
  154. package/dist/schema/apps/admin/sections/crud.js.map +0 -1
  155. package/dist/schema/apps/admin/sections/index.d.ts.map +0 -1
  156. package/dist/schema/apps/admin/sections/index.js.map +0 -1
  157. package/dist/schema/apps/admin/sections/types.d.ts.map +0 -1
  158. package/dist/schema/apps/admin/sections/types.js.map +0 -1
  159. /package/dist/schema/apps/{admin → web/admin}/sections/base.js +0 -0
  160. /package/dist/schema/apps/{admin → web/admin}/sections/crud-form/admin-crud-input.js +0 -0
  161. /package/dist/schema/apps/{admin → web/admin}/sections/crud-form/admin-input-spec.d.ts +0 -0
  162. /package/dist/schema/apps/{admin → web/admin}/sections/crud-form/admin-input-spec.js +0 -0
  163. /package/dist/schema/apps/{admin → web/admin}/sections/crud-form/built-in-input.d.ts +0 -0
  164. /package/dist/schema/apps/{admin → web/admin}/sections/crud-form/built-in-input.js +0 -0
  165. /package/dist/schema/apps/{admin → web/admin}/sections/crud-form/index.d.ts +0 -0
  166. /package/dist/schema/apps/{admin → web/admin}/sections/crud-form/index.js +0 -0
  167. /package/dist/schema/apps/{admin → web/admin}/sections/crud-form/types.d.ts +0 -0
  168. /package/dist/schema/apps/{admin → web/admin}/sections/crud-form/types.js +0 -0
  169. /package/dist/schema/apps/{admin → web/admin}/sections/index.d.ts +0 -0
  170. /package/dist/schema/apps/{admin → web/admin}/sections/index.js +0 -0
  171. /package/dist/schema/apps/{admin → web/admin}/sections/types.d.ts +0 -0
@@ -0,0 +1,1540 @@
1
+ import { z } from 'zod';
2
+ import type { def } from '#src/schema/creator/index.js';
3
+ export declare const createWebAppSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
4
+ type: z.ZodLiteral<"web">;
5
+ includeAuth: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
6
+ title: z.ZodDefault<z.ZodString>;
7
+ description: z.ZodDefault<z.ZodString>;
8
+ includeUploadComponents: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
9
+ enableSubscriptions: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
10
+ adminApp: z.ZodEffects<z.ZodOptional<z.ZodObject<{
11
+ enabled: z.ZodBoolean;
12
+ pathPrefix: z.ZodDefault<z.ZodString>;
13
+ allowedRoles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
14
+ sections: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodObject<{
15
+ id: z.ZodDefault<z.ZodString>;
16
+ name: z.ZodString;
17
+ featureRef: z.ZodEffects<z.ZodString, string, string>;
18
+ icon: z.ZodOptional<z.ZodString>;
19
+ type: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ type: string;
22
+ name: string;
23
+ id: string;
24
+ featureRef: string;
25
+ icon?: string | undefined;
26
+ }, {
27
+ type: string;
28
+ name: string;
29
+ featureRef: string;
30
+ icon?: string | undefined;
31
+ id?: string | undefined;
32
+ }>, z.ZodObject<{
33
+ type: z.ZodLiteral<"crud">;
34
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
35
+ disableCreate: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
36
+ table: z.ZodObject<{
37
+ columns: z.ZodArray<z.ZodObject<{
38
+ label: z.ZodString;
39
+ display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
40
+ type: z.ZodLiteral<"text">;
41
+ modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ type: "text";
44
+ modelFieldRef: string;
45
+ }, {
46
+ type: "text";
47
+ modelFieldRef: string;
48
+ }>, z.ZodObject<{
49
+ type: z.ZodLiteral<"foreign">;
50
+ localRelationRef: z.ZodEffects<z.ZodString, string, string>;
51
+ labelExpression: z.ZodString;
52
+ valueExpression: z.ZodString;
53
+ }, "strip", z.ZodTypeAny, {
54
+ type: "foreign";
55
+ localRelationRef: string;
56
+ labelExpression: string;
57
+ valueExpression: string;
58
+ }, {
59
+ type: "foreign";
60
+ localRelationRef: string;
61
+ labelExpression: string;
62
+ valueExpression: string;
63
+ }>]>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ label: string;
66
+ display: {
67
+ type: "foreign";
68
+ localRelationRef: string;
69
+ labelExpression: string;
70
+ valueExpression: string;
71
+ } | {
72
+ type: "text";
73
+ modelFieldRef: string;
74
+ };
75
+ }, {
76
+ label: string;
77
+ display: {
78
+ type: "foreign";
79
+ localRelationRef: string;
80
+ labelExpression: string;
81
+ valueExpression: string;
82
+ } | {
83
+ type: "text";
84
+ modelFieldRef: string;
85
+ };
86
+ }>, "many">;
87
+ }, "strip", z.ZodTypeAny, {
88
+ columns: {
89
+ label: string;
90
+ display: {
91
+ type: "foreign";
92
+ localRelationRef: string;
93
+ labelExpression: string;
94
+ valueExpression: string;
95
+ } | {
96
+ type: "text";
97
+ modelFieldRef: string;
98
+ };
99
+ }[];
100
+ }, {
101
+ columns: {
102
+ label: string;
103
+ display: {
104
+ type: "foreign";
105
+ localRelationRef: string;
106
+ labelExpression: string;
107
+ valueExpression: string;
108
+ } | {
109
+ type: "text";
110
+ modelFieldRef: string;
111
+ };
112
+ }[];
113
+ }>;
114
+ form: z.ZodObject<{
115
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
116
+ type: z.ZodString;
117
+ label: z.ZodString;
118
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
119
+ type: z.ZodString;
120
+ label: z.ZodString;
121
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
122
+ type: z.ZodString;
123
+ label: z.ZodString;
124
+ }, z.ZodTypeAny, "passthrough">>, {
125
+ type: string;
126
+ label: string;
127
+ }, z.objectInputType<{
128
+ type: z.ZodString;
129
+ label: z.ZodString;
130
+ }, z.ZodTypeAny, "passthrough">>, "many">;
131
+ }, "strip", z.ZodTypeAny, {
132
+ fields: {
133
+ type: string;
134
+ label: string;
135
+ }[];
136
+ }, {
137
+ fields: z.objectInputType<{
138
+ type: z.ZodString;
139
+ label: z.ZodString;
140
+ }, z.ZodTypeAny, "passthrough">[];
141
+ }>;
142
+ embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
143
+ id: z.ZodString;
144
+ name: z.ZodString;
145
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
146
+ includeIdField: z.ZodOptional<z.ZodBoolean>;
147
+ type: z.ZodLiteral<"object">;
148
+ form: z.ZodObject<{
149
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
150
+ type: z.ZodString;
151
+ label: z.ZodString;
152
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
153
+ type: z.ZodString;
154
+ label: z.ZodString;
155
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
156
+ type: z.ZodString;
157
+ label: z.ZodString;
158
+ }, z.ZodTypeAny, "passthrough">>, {
159
+ type: string;
160
+ label: string;
161
+ }, z.objectInputType<{
162
+ type: z.ZodString;
163
+ label: z.ZodString;
164
+ }, z.ZodTypeAny, "passthrough">>, "many">;
165
+ }, "strip", z.ZodTypeAny, {
166
+ fields: {
167
+ type: string;
168
+ label: string;
169
+ }[];
170
+ }, {
171
+ fields: z.objectInputType<{
172
+ type: z.ZodString;
173
+ label: z.ZodString;
174
+ }, z.ZodTypeAny, "passthrough">[];
175
+ }>;
176
+ }, "strip", z.ZodTypeAny, {
177
+ type: "object";
178
+ name: string;
179
+ id: string;
180
+ modelRef: string;
181
+ form: {
182
+ fields: {
183
+ type: string;
184
+ label: string;
185
+ }[];
186
+ };
187
+ includeIdField?: boolean | undefined;
188
+ }, {
189
+ type: "object";
190
+ name: string;
191
+ id: string;
192
+ modelRef: string;
193
+ form: {
194
+ fields: z.objectInputType<{
195
+ type: z.ZodString;
196
+ label: z.ZodString;
197
+ }, z.ZodTypeAny, "passthrough">[];
198
+ };
199
+ includeIdField?: boolean | undefined;
200
+ }>, z.ZodObject<{
201
+ id: z.ZodString;
202
+ name: z.ZodString;
203
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
204
+ includeIdField: z.ZodOptional<z.ZodBoolean>;
205
+ type: z.ZodLiteral<"list">;
206
+ table: z.ZodObject<{
207
+ columns: z.ZodArray<z.ZodObject<{
208
+ label: z.ZodString;
209
+ display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
210
+ type: z.ZodLiteral<"text">;
211
+ modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
212
+ }, "strip", z.ZodTypeAny, {
213
+ type: "text";
214
+ modelFieldRef: string;
215
+ }, {
216
+ type: "text";
217
+ modelFieldRef: string;
218
+ }>, z.ZodObject<{
219
+ type: z.ZodLiteral<"foreign">;
220
+ localRelationRef: z.ZodEffects<z.ZodString, string, string>;
221
+ labelExpression: z.ZodString;
222
+ valueExpression: z.ZodString;
223
+ }, "strip", z.ZodTypeAny, {
224
+ type: "foreign";
225
+ localRelationRef: string;
226
+ labelExpression: string;
227
+ valueExpression: string;
228
+ }, {
229
+ type: "foreign";
230
+ localRelationRef: string;
231
+ labelExpression: string;
232
+ valueExpression: string;
233
+ }>]>;
234
+ }, "strip", z.ZodTypeAny, {
235
+ label: string;
236
+ display: {
237
+ type: "foreign";
238
+ localRelationRef: string;
239
+ labelExpression: string;
240
+ valueExpression: string;
241
+ } | {
242
+ type: "text";
243
+ modelFieldRef: string;
244
+ };
245
+ }, {
246
+ label: string;
247
+ display: {
248
+ type: "foreign";
249
+ localRelationRef: string;
250
+ labelExpression: string;
251
+ valueExpression: string;
252
+ } | {
253
+ type: "text";
254
+ modelFieldRef: string;
255
+ };
256
+ }>, "many">;
257
+ }, "strip", z.ZodTypeAny, {
258
+ columns: {
259
+ label: string;
260
+ display: {
261
+ type: "foreign";
262
+ localRelationRef: string;
263
+ labelExpression: string;
264
+ valueExpression: string;
265
+ } | {
266
+ type: "text";
267
+ modelFieldRef: string;
268
+ };
269
+ }[];
270
+ }, {
271
+ columns: {
272
+ label: string;
273
+ display: {
274
+ type: "foreign";
275
+ localRelationRef: string;
276
+ labelExpression: string;
277
+ valueExpression: string;
278
+ } | {
279
+ type: "text";
280
+ modelFieldRef: string;
281
+ };
282
+ }[];
283
+ }>;
284
+ form: z.ZodObject<{
285
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
286
+ type: z.ZodString;
287
+ label: z.ZodString;
288
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
289
+ type: z.ZodString;
290
+ label: z.ZodString;
291
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
292
+ type: z.ZodString;
293
+ label: z.ZodString;
294
+ }, z.ZodTypeAny, "passthrough">>, {
295
+ type: string;
296
+ label: string;
297
+ }, z.objectInputType<{
298
+ type: z.ZodString;
299
+ label: z.ZodString;
300
+ }, z.ZodTypeAny, "passthrough">>, "many">;
301
+ }, "strip", z.ZodTypeAny, {
302
+ fields: {
303
+ type: string;
304
+ label: string;
305
+ }[];
306
+ }, {
307
+ fields: z.objectInputType<{
308
+ type: z.ZodString;
309
+ label: z.ZodString;
310
+ }, z.ZodTypeAny, "passthrough">[];
311
+ }>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ type: "list";
314
+ name: string;
315
+ id: string;
316
+ modelRef: string;
317
+ form: {
318
+ fields: {
319
+ type: string;
320
+ label: string;
321
+ }[];
322
+ };
323
+ table: {
324
+ columns: {
325
+ label: string;
326
+ display: {
327
+ type: "foreign";
328
+ localRelationRef: string;
329
+ labelExpression: string;
330
+ valueExpression: string;
331
+ } | {
332
+ type: "text";
333
+ modelFieldRef: string;
334
+ };
335
+ }[];
336
+ };
337
+ includeIdField?: boolean | undefined;
338
+ }, {
339
+ type: "list";
340
+ name: string;
341
+ id: string;
342
+ modelRef: string;
343
+ form: {
344
+ fields: z.objectInputType<{
345
+ type: z.ZodString;
346
+ label: z.ZodString;
347
+ }, z.ZodTypeAny, "passthrough">[];
348
+ };
349
+ table: {
350
+ columns: {
351
+ label: string;
352
+ display: {
353
+ type: "foreign";
354
+ localRelationRef: string;
355
+ labelExpression: string;
356
+ valueExpression: string;
357
+ } | {
358
+ type: "text";
359
+ modelFieldRef: string;
360
+ };
361
+ }[];
362
+ };
363
+ includeIdField?: boolean | undefined;
364
+ }>]>, {
365
+ type: "object";
366
+ name: string;
367
+ id: string;
368
+ modelRef: string;
369
+ form: {
370
+ fields: {
371
+ type: string;
372
+ label: string;
373
+ }[];
374
+ };
375
+ includeIdField?: boolean | undefined;
376
+ } | {
377
+ type: "list";
378
+ name: string;
379
+ id: string;
380
+ modelRef: string;
381
+ form: {
382
+ fields: {
383
+ type: string;
384
+ label: string;
385
+ }[];
386
+ };
387
+ table: {
388
+ columns: {
389
+ label: string;
390
+ display: {
391
+ type: "foreign";
392
+ localRelationRef: string;
393
+ labelExpression: string;
394
+ valueExpression: string;
395
+ } | {
396
+ type: "text";
397
+ modelFieldRef: string;
398
+ };
399
+ }[];
400
+ };
401
+ includeIdField?: boolean | undefined;
402
+ }, {
403
+ type: "object";
404
+ name: string;
405
+ id: string;
406
+ modelRef: string;
407
+ form: {
408
+ fields: z.objectInputType<{
409
+ type: z.ZodString;
410
+ label: z.ZodString;
411
+ }, z.ZodTypeAny, "passthrough">[];
412
+ };
413
+ includeIdField?: boolean | undefined;
414
+ } | {
415
+ type: "list";
416
+ name: string;
417
+ id: string;
418
+ modelRef: string;
419
+ form: {
420
+ fields: z.objectInputType<{
421
+ type: z.ZodString;
422
+ label: z.ZodString;
423
+ }, z.ZodTypeAny, "passthrough">[];
424
+ };
425
+ table: {
426
+ columns: {
427
+ label: string;
428
+ display: {
429
+ type: "foreign";
430
+ localRelationRef: string;
431
+ labelExpression: string;
432
+ valueExpression: string;
433
+ } | {
434
+ type: "text";
435
+ modelFieldRef: string;
436
+ };
437
+ }[];
438
+ };
439
+ includeIdField?: boolean | undefined;
440
+ }>, "many">>;
441
+ }, "strip", z.ZodTypeAny, {
442
+ type: "crud";
443
+ modelRef: string;
444
+ form: {
445
+ fields: {
446
+ type: string;
447
+ label: string;
448
+ }[];
449
+ };
450
+ table: {
451
+ columns: {
452
+ label: string;
453
+ display: {
454
+ type: "foreign";
455
+ localRelationRef: string;
456
+ labelExpression: string;
457
+ valueExpression: string;
458
+ } | {
459
+ type: "text";
460
+ modelFieldRef: string;
461
+ };
462
+ }[];
463
+ };
464
+ disableCreate?: boolean | undefined;
465
+ embeddedForms?: ({
466
+ type: "object";
467
+ name: string;
468
+ id: string;
469
+ modelRef: string;
470
+ form: {
471
+ fields: {
472
+ type: string;
473
+ label: string;
474
+ }[];
475
+ };
476
+ includeIdField?: boolean | undefined;
477
+ } | {
478
+ type: "list";
479
+ name: string;
480
+ id: string;
481
+ modelRef: string;
482
+ form: {
483
+ fields: {
484
+ type: string;
485
+ label: string;
486
+ }[];
487
+ };
488
+ table: {
489
+ columns: {
490
+ label: string;
491
+ display: {
492
+ type: "foreign";
493
+ localRelationRef: string;
494
+ labelExpression: string;
495
+ valueExpression: string;
496
+ } | {
497
+ type: "text";
498
+ modelFieldRef: string;
499
+ };
500
+ }[];
501
+ };
502
+ includeIdField?: boolean | undefined;
503
+ })[] | undefined;
504
+ }, {
505
+ type: "crud";
506
+ modelRef: string;
507
+ form: {
508
+ fields: z.objectInputType<{
509
+ type: z.ZodString;
510
+ label: z.ZodString;
511
+ }, z.ZodTypeAny, "passthrough">[];
512
+ };
513
+ table: {
514
+ columns: {
515
+ 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
+ }[];
526
+ };
527
+ disableCreate?: boolean | undefined;
528
+ embeddedForms?: ({
529
+ type: "object";
530
+ name: string;
531
+ id: string;
532
+ modelRef: string;
533
+ form: {
534
+ fields: z.objectInputType<{
535
+ type: z.ZodString;
536
+ label: z.ZodString;
537
+ }, z.ZodTypeAny, "passthrough">[];
538
+ };
539
+ includeIdField?: boolean | undefined;
540
+ } | {
541
+ type: "list";
542
+ name: string;
543
+ id: string;
544
+ modelRef: string;
545
+ form: {
546
+ fields: z.objectInputType<{
547
+ type: z.ZodString;
548
+ label: z.ZodString;
549
+ }, z.ZodTypeAny, "passthrough">[];
550
+ };
551
+ table: {
552
+ columns: {
553
+ label: string;
554
+ display: {
555
+ type: "foreign";
556
+ localRelationRef: string;
557
+ labelExpression: string;
558
+ valueExpression: string;
559
+ } | {
560
+ type: "text";
561
+ modelFieldRef: string;
562
+ };
563
+ }[];
564
+ };
565
+ includeIdField?: boolean | undefined;
566
+ })[] | undefined;
567
+ }>>, {
568
+ type: string;
569
+ name: string;
570
+ id: string;
571
+ featureRef: string;
572
+ icon?: string | undefined;
573
+ } & {
574
+ type: "crud";
575
+ modelRef: string;
576
+ form: {
577
+ fields: {
578
+ type: string;
579
+ label: string;
580
+ }[];
581
+ };
582
+ table: {
583
+ columns: {
584
+ label: string;
585
+ display: {
586
+ type: "foreign";
587
+ localRelationRef: string;
588
+ labelExpression: string;
589
+ valueExpression: string;
590
+ } | {
591
+ type: "text";
592
+ modelFieldRef: string;
593
+ };
594
+ }[];
595
+ };
596
+ disableCreate?: boolean | undefined;
597
+ embeddedForms?: ({
598
+ type: "object";
599
+ name: string;
600
+ id: string;
601
+ modelRef: string;
602
+ form: {
603
+ fields: {
604
+ type: string;
605
+ label: string;
606
+ }[];
607
+ };
608
+ includeIdField?: boolean | undefined;
609
+ } | {
610
+ type: "list";
611
+ name: string;
612
+ id: string;
613
+ modelRef: string;
614
+ form: {
615
+ fields: {
616
+ type: string;
617
+ label: string;
618
+ }[];
619
+ };
620
+ table: {
621
+ columns: {
622
+ label: string;
623
+ display: {
624
+ type: "foreign";
625
+ localRelationRef: string;
626
+ labelExpression: string;
627
+ valueExpression: string;
628
+ } | {
629
+ type: "text";
630
+ modelFieldRef: string;
631
+ };
632
+ }[];
633
+ };
634
+ includeIdField?: boolean | undefined;
635
+ })[] | undefined;
636
+ }, {
637
+ type: string;
638
+ name: string;
639
+ featureRef: string;
640
+ icon?: string | undefined;
641
+ id?: string | undefined;
642
+ } & {
643
+ type: "crud";
644
+ modelRef: string;
645
+ form: {
646
+ fields: z.objectInputType<{
647
+ type: z.ZodString;
648
+ label: z.ZodString;
649
+ }, z.ZodTypeAny, "passthrough">[];
650
+ };
651
+ table: {
652
+ columns: {
653
+ label: string;
654
+ display: {
655
+ type: "foreign";
656
+ localRelationRef: string;
657
+ labelExpression: string;
658
+ valueExpression: string;
659
+ } | {
660
+ type: "text";
661
+ modelFieldRef: string;
662
+ };
663
+ }[];
664
+ };
665
+ disableCreate?: boolean | undefined;
666
+ embeddedForms?: ({
667
+ type: "object";
668
+ name: string;
669
+ id: string;
670
+ modelRef: string;
671
+ form: {
672
+ fields: z.objectInputType<{
673
+ type: z.ZodString;
674
+ label: z.ZodString;
675
+ }, z.ZodTypeAny, "passthrough">[];
676
+ };
677
+ includeIdField?: boolean | undefined;
678
+ } | {
679
+ type: "list";
680
+ name: string;
681
+ id: string;
682
+ modelRef: string;
683
+ form: {
684
+ fields: z.objectInputType<{
685
+ type: z.ZodString;
686
+ label: z.ZodString;
687
+ }, z.ZodTypeAny, "passthrough">[];
688
+ };
689
+ table: {
690
+ columns: {
691
+ label: string;
692
+ display: {
693
+ type: "foreign";
694
+ localRelationRef: string;
695
+ labelExpression: string;
696
+ valueExpression: string;
697
+ } | {
698
+ type: "text";
699
+ modelFieldRef: string;
700
+ };
701
+ }[];
702
+ };
703
+ includeIdField?: boolean | undefined;
704
+ })[] | undefined;
705
+ }>, {
706
+ type: string;
707
+ name: string;
708
+ id: string;
709
+ featureRef: string;
710
+ icon?: string | undefined;
711
+ } & {
712
+ type: "crud";
713
+ modelRef: string;
714
+ form: {
715
+ fields: {
716
+ type: string;
717
+ label: string;
718
+ }[];
719
+ };
720
+ table: {
721
+ columns: {
722
+ label: string;
723
+ display: {
724
+ type: "foreign";
725
+ localRelationRef: string;
726
+ labelExpression: string;
727
+ valueExpression: string;
728
+ } | {
729
+ type: "text";
730
+ modelFieldRef: string;
731
+ };
732
+ }[];
733
+ };
734
+ disableCreate?: boolean | undefined;
735
+ embeddedForms?: ({
736
+ type: "object";
737
+ name: string;
738
+ id: string;
739
+ modelRef: string;
740
+ form: {
741
+ fields: {
742
+ type: string;
743
+ label: string;
744
+ }[];
745
+ };
746
+ includeIdField?: boolean | undefined;
747
+ } | {
748
+ type: "list";
749
+ name: string;
750
+ id: string;
751
+ modelRef: string;
752
+ form: {
753
+ fields: {
754
+ type: string;
755
+ label: string;
756
+ }[];
757
+ };
758
+ table: {
759
+ columns: {
760
+ label: string;
761
+ display: {
762
+ type: "foreign";
763
+ localRelationRef: string;
764
+ labelExpression: string;
765
+ valueExpression: string;
766
+ } | {
767
+ type: "text";
768
+ modelFieldRef: string;
769
+ };
770
+ }[];
771
+ };
772
+ includeIdField?: boolean | undefined;
773
+ })[] | undefined;
774
+ }, {
775
+ type: string;
776
+ name: string;
777
+ featureRef: string;
778
+ icon?: string | undefined;
779
+ id?: string | undefined;
780
+ } & {
781
+ type: "crud";
782
+ modelRef: string;
783
+ form: {
784
+ fields: z.objectInputType<{
785
+ type: z.ZodString;
786
+ label: z.ZodString;
787
+ }, z.ZodTypeAny, "passthrough">[];
788
+ };
789
+ table: {
790
+ columns: {
791
+ label: string;
792
+ display: {
793
+ type: "foreign";
794
+ localRelationRef: string;
795
+ labelExpression: string;
796
+ valueExpression: string;
797
+ } | {
798
+ type: "text";
799
+ modelFieldRef: string;
800
+ };
801
+ }[];
802
+ };
803
+ disableCreate?: boolean | undefined;
804
+ embeddedForms?: ({
805
+ type: "object";
806
+ name: string;
807
+ id: string;
808
+ modelRef: string;
809
+ form: {
810
+ fields: z.objectInputType<{
811
+ type: z.ZodString;
812
+ label: z.ZodString;
813
+ }, z.ZodTypeAny, "passthrough">[];
814
+ };
815
+ includeIdField?: boolean | undefined;
816
+ } | {
817
+ type: "list";
818
+ name: string;
819
+ id: string;
820
+ modelRef: string;
821
+ form: {
822
+ fields: z.objectInputType<{
823
+ type: z.ZodString;
824
+ label: z.ZodString;
825
+ }, z.ZodTypeAny, "passthrough">[];
826
+ };
827
+ table: {
828
+ columns: {
829
+ label: string;
830
+ display: {
831
+ type: "foreign";
832
+ localRelationRef: string;
833
+ labelExpression: string;
834
+ valueExpression: string;
835
+ } | {
836
+ type: "text";
837
+ modelFieldRef: string;
838
+ };
839
+ }[];
840
+ };
841
+ includeIdField?: boolean | undefined;
842
+ })[] | undefined;
843
+ }>, "many">>, ({
844
+ type: string;
845
+ name: string;
846
+ id: string;
847
+ featureRef: string;
848
+ icon?: string | undefined;
849
+ } & {
850
+ type: "crud";
851
+ modelRef: string;
852
+ form: {
853
+ fields: {
854
+ type: string;
855
+ label: string;
856
+ }[];
857
+ };
858
+ table: {
859
+ columns: {
860
+ label: string;
861
+ display: {
862
+ type: "foreign";
863
+ localRelationRef: string;
864
+ labelExpression: string;
865
+ valueExpression: string;
866
+ } | {
867
+ type: "text";
868
+ modelFieldRef: string;
869
+ };
870
+ }[];
871
+ };
872
+ disableCreate?: boolean | undefined;
873
+ embeddedForms?: ({
874
+ type: "object";
875
+ name: string;
876
+ id: string;
877
+ modelRef: string;
878
+ form: {
879
+ fields: {
880
+ type: string;
881
+ label: string;
882
+ }[];
883
+ };
884
+ includeIdField?: boolean | undefined;
885
+ } | {
886
+ type: "list";
887
+ name: string;
888
+ id: string;
889
+ modelRef: string;
890
+ form: {
891
+ fields: {
892
+ type: string;
893
+ label: string;
894
+ }[];
895
+ };
896
+ table: {
897
+ columns: {
898
+ label: string;
899
+ display: {
900
+ type: "foreign";
901
+ localRelationRef: string;
902
+ labelExpression: string;
903
+ valueExpression: string;
904
+ } | {
905
+ type: "text";
906
+ modelFieldRef: string;
907
+ };
908
+ }[];
909
+ };
910
+ includeIdField?: boolean | undefined;
911
+ })[] | undefined;
912
+ })[] | undefined, ({
913
+ type: string;
914
+ name: string;
915
+ featureRef: string;
916
+ icon?: string | undefined;
917
+ id?: string | undefined;
918
+ } & {
919
+ type: "crud";
920
+ modelRef: string;
921
+ form: {
922
+ fields: z.objectInputType<{
923
+ type: z.ZodString;
924
+ label: z.ZodString;
925
+ }, z.ZodTypeAny, "passthrough">[];
926
+ };
927
+ table: {
928
+ columns: {
929
+ label: string;
930
+ display: {
931
+ type: "foreign";
932
+ localRelationRef: string;
933
+ labelExpression: string;
934
+ valueExpression: string;
935
+ } | {
936
+ type: "text";
937
+ modelFieldRef: string;
938
+ };
939
+ }[];
940
+ };
941
+ disableCreate?: boolean | undefined;
942
+ embeddedForms?: ({
943
+ type: "object";
944
+ name: string;
945
+ id: string;
946
+ modelRef: string;
947
+ form: {
948
+ fields: z.objectInputType<{
949
+ type: z.ZodString;
950
+ label: z.ZodString;
951
+ }, z.ZodTypeAny, "passthrough">[];
952
+ };
953
+ includeIdField?: boolean | undefined;
954
+ } | {
955
+ type: "list";
956
+ name: string;
957
+ id: string;
958
+ modelRef: string;
959
+ form: {
960
+ fields: z.objectInputType<{
961
+ type: z.ZodString;
962
+ label: z.ZodString;
963
+ }, z.ZodTypeAny, "passthrough">[];
964
+ };
965
+ table: {
966
+ columns: {
967
+ label: string;
968
+ display: {
969
+ type: "foreign";
970
+ localRelationRef: string;
971
+ labelExpression: string;
972
+ valueExpression: string;
973
+ } | {
974
+ type: "text";
975
+ modelFieldRef: string;
976
+ };
977
+ }[];
978
+ };
979
+ includeIdField?: boolean | undefined;
980
+ })[] | undefined;
981
+ })[] | undefined>;
982
+ }, "strip", z.ZodTypeAny, {
983
+ enabled: boolean;
984
+ pathPrefix: string;
985
+ allowedRoles?: string[] | undefined;
986
+ sections?: ({
987
+ type: string;
988
+ name: string;
989
+ id: string;
990
+ featureRef: string;
991
+ icon?: string | undefined;
992
+ } & {
993
+ type: "crud";
994
+ modelRef: string;
995
+ form: {
996
+ fields: {
997
+ type: string;
998
+ label: string;
999
+ }[];
1000
+ };
1001
+ table: {
1002
+ columns: {
1003
+ label: string;
1004
+ display: {
1005
+ type: "foreign";
1006
+ localRelationRef: string;
1007
+ labelExpression: string;
1008
+ valueExpression: string;
1009
+ } | {
1010
+ type: "text";
1011
+ modelFieldRef: string;
1012
+ };
1013
+ }[];
1014
+ };
1015
+ disableCreate?: boolean | undefined;
1016
+ embeddedForms?: ({
1017
+ type: "object";
1018
+ name: string;
1019
+ id: string;
1020
+ modelRef: string;
1021
+ form: {
1022
+ fields: {
1023
+ type: string;
1024
+ label: string;
1025
+ }[];
1026
+ };
1027
+ includeIdField?: boolean | undefined;
1028
+ } | {
1029
+ type: "list";
1030
+ name: string;
1031
+ id: string;
1032
+ modelRef: string;
1033
+ form: {
1034
+ fields: {
1035
+ type: string;
1036
+ label: string;
1037
+ }[];
1038
+ };
1039
+ table: {
1040
+ columns: {
1041
+ label: string;
1042
+ display: {
1043
+ type: "foreign";
1044
+ localRelationRef: string;
1045
+ labelExpression: string;
1046
+ valueExpression: string;
1047
+ } | {
1048
+ type: "text";
1049
+ modelFieldRef: string;
1050
+ };
1051
+ }[];
1052
+ };
1053
+ includeIdField?: boolean | undefined;
1054
+ })[] | undefined;
1055
+ })[] | undefined;
1056
+ }, {
1057
+ enabled: boolean;
1058
+ pathPrefix?: string | undefined;
1059
+ allowedRoles?: string[] | undefined;
1060
+ sections?: ({
1061
+ type: string;
1062
+ name: string;
1063
+ featureRef: string;
1064
+ icon?: string | undefined;
1065
+ id?: string | undefined;
1066
+ } & {
1067
+ type: "crud";
1068
+ modelRef: string;
1069
+ form: {
1070
+ fields: z.objectInputType<{
1071
+ type: z.ZodString;
1072
+ label: z.ZodString;
1073
+ }, z.ZodTypeAny, "passthrough">[];
1074
+ };
1075
+ table: {
1076
+ columns: {
1077
+ label: string;
1078
+ display: {
1079
+ type: "foreign";
1080
+ localRelationRef: string;
1081
+ labelExpression: string;
1082
+ valueExpression: string;
1083
+ } | {
1084
+ type: "text";
1085
+ modelFieldRef: string;
1086
+ };
1087
+ }[];
1088
+ };
1089
+ disableCreate?: boolean | undefined;
1090
+ embeddedForms?: ({
1091
+ type: "object";
1092
+ name: string;
1093
+ id: string;
1094
+ modelRef: string;
1095
+ form: {
1096
+ fields: z.objectInputType<{
1097
+ type: z.ZodString;
1098
+ label: z.ZodString;
1099
+ }, z.ZodTypeAny, "passthrough">[];
1100
+ };
1101
+ includeIdField?: boolean | undefined;
1102
+ } | {
1103
+ type: "list";
1104
+ name: string;
1105
+ id: string;
1106
+ modelRef: string;
1107
+ form: {
1108
+ fields: z.objectInputType<{
1109
+ type: z.ZodString;
1110
+ label: z.ZodString;
1111
+ }, z.ZodTypeAny, "passthrough">[];
1112
+ };
1113
+ table: {
1114
+ columns: {
1115
+ label: string;
1116
+ display: {
1117
+ type: "foreign";
1118
+ localRelationRef: string;
1119
+ labelExpression: string;
1120
+ valueExpression: string;
1121
+ } | {
1122
+ type: "text";
1123
+ modelFieldRef: string;
1124
+ };
1125
+ }[];
1126
+ };
1127
+ includeIdField?: boolean | undefined;
1128
+ })[] | undefined;
1129
+ })[] | undefined;
1130
+ }>>, {
1131
+ enabled: boolean;
1132
+ pathPrefix: string;
1133
+ allowedRoles?: string[] | undefined;
1134
+ sections?: ({
1135
+ type: string;
1136
+ name: string;
1137
+ id: string;
1138
+ featureRef: string;
1139
+ icon?: string | undefined;
1140
+ } & {
1141
+ type: "crud";
1142
+ modelRef: string;
1143
+ form: {
1144
+ fields: {
1145
+ type: string;
1146
+ label: string;
1147
+ }[];
1148
+ };
1149
+ table: {
1150
+ columns: {
1151
+ label: string;
1152
+ display: {
1153
+ type: "foreign";
1154
+ localRelationRef: string;
1155
+ labelExpression: string;
1156
+ valueExpression: string;
1157
+ } | {
1158
+ type: "text";
1159
+ modelFieldRef: string;
1160
+ };
1161
+ }[];
1162
+ };
1163
+ disableCreate?: boolean | undefined;
1164
+ embeddedForms?: ({
1165
+ type: "object";
1166
+ name: string;
1167
+ id: string;
1168
+ modelRef: string;
1169
+ form: {
1170
+ fields: {
1171
+ type: string;
1172
+ label: string;
1173
+ }[];
1174
+ };
1175
+ includeIdField?: boolean | undefined;
1176
+ } | {
1177
+ type: "list";
1178
+ name: string;
1179
+ id: string;
1180
+ modelRef: string;
1181
+ form: {
1182
+ fields: {
1183
+ type: string;
1184
+ label: string;
1185
+ }[];
1186
+ };
1187
+ table: {
1188
+ columns: {
1189
+ label: string;
1190
+ display: {
1191
+ type: "foreign";
1192
+ localRelationRef: string;
1193
+ labelExpression: string;
1194
+ valueExpression: string;
1195
+ } | {
1196
+ type: "text";
1197
+ modelFieldRef: string;
1198
+ };
1199
+ }[];
1200
+ };
1201
+ includeIdField?: boolean | undefined;
1202
+ })[] | undefined;
1203
+ })[] | undefined;
1204
+ } | undefined, {
1205
+ enabled: boolean;
1206
+ pathPrefix?: string | undefined;
1207
+ allowedRoles?: string[] | undefined;
1208
+ sections?: ({
1209
+ type: string;
1210
+ name: string;
1211
+ featureRef: string;
1212
+ icon?: string | undefined;
1213
+ id?: string | undefined;
1214
+ } & {
1215
+ type: "crud";
1216
+ modelRef: string;
1217
+ form: {
1218
+ fields: z.objectInputType<{
1219
+ type: z.ZodString;
1220
+ label: z.ZodString;
1221
+ }, z.ZodTypeAny, "passthrough">[];
1222
+ };
1223
+ table: {
1224
+ columns: {
1225
+ label: string;
1226
+ display: {
1227
+ type: "foreign";
1228
+ localRelationRef: string;
1229
+ labelExpression: string;
1230
+ valueExpression: string;
1231
+ } | {
1232
+ type: "text";
1233
+ modelFieldRef: string;
1234
+ };
1235
+ }[];
1236
+ };
1237
+ disableCreate?: boolean | undefined;
1238
+ embeddedForms?: ({
1239
+ type: "object";
1240
+ name: string;
1241
+ id: string;
1242
+ modelRef: string;
1243
+ form: {
1244
+ fields: z.objectInputType<{
1245
+ type: z.ZodString;
1246
+ label: z.ZodString;
1247
+ }, z.ZodTypeAny, "passthrough">[];
1248
+ };
1249
+ includeIdField?: boolean | undefined;
1250
+ } | {
1251
+ type: "list";
1252
+ name: string;
1253
+ id: string;
1254
+ modelRef: string;
1255
+ form: {
1256
+ fields: z.objectInputType<{
1257
+ type: z.ZodString;
1258
+ label: z.ZodString;
1259
+ }, z.ZodTypeAny, "passthrough">[];
1260
+ };
1261
+ table: {
1262
+ columns: {
1263
+ label: string;
1264
+ display: {
1265
+ type: "foreign";
1266
+ localRelationRef: string;
1267
+ labelExpression: string;
1268
+ valueExpression: string;
1269
+ } | {
1270
+ type: "text";
1271
+ modelFieldRef: string;
1272
+ };
1273
+ }[];
1274
+ };
1275
+ includeIdField?: boolean | undefined;
1276
+ })[] | undefined;
1277
+ })[] | undefined;
1278
+ } | undefined>;
1279
+ id: z.ZodDefault<z.ZodString>;
1280
+ name: z.ZodString;
1281
+ packageLocation: z.ZodOptional<z.ZodString>;
1282
+ }, "strip", z.ZodTypeAny, {
1283
+ type: "web";
1284
+ name: string;
1285
+ description: string;
1286
+ id: string;
1287
+ title: string;
1288
+ packageLocation?: string | undefined;
1289
+ enableSubscriptions?: boolean | undefined;
1290
+ includeAuth?: boolean | undefined;
1291
+ includeUploadComponents?: boolean | undefined;
1292
+ adminApp?: {
1293
+ enabled: boolean;
1294
+ pathPrefix: string;
1295
+ allowedRoles?: string[] | undefined;
1296
+ sections?: ({
1297
+ type: string;
1298
+ name: string;
1299
+ id: string;
1300
+ featureRef: string;
1301
+ icon?: string | undefined;
1302
+ } & {
1303
+ type: "crud";
1304
+ modelRef: string;
1305
+ form: {
1306
+ fields: {
1307
+ type: string;
1308
+ label: string;
1309
+ }[];
1310
+ };
1311
+ table: {
1312
+ columns: {
1313
+ label: string;
1314
+ display: {
1315
+ type: "foreign";
1316
+ localRelationRef: string;
1317
+ labelExpression: string;
1318
+ valueExpression: string;
1319
+ } | {
1320
+ type: "text";
1321
+ modelFieldRef: string;
1322
+ };
1323
+ }[];
1324
+ };
1325
+ disableCreate?: boolean | undefined;
1326
+ embeddedForms?: ({
1327
+ type: "object";
1328
+ name: string;
1329
+ id: string;
1330
+ modelRef: string;
1331
+ form: {
1332
+ fields: {
1333
+ type: string;
1334
+ label: string;
1335
+ }[];
1336
+ };
1337
+ includeIdField?: boolean | undefined;
1338
+ } | {
1339
+ type: "list";
1340
+ name: string;
1341
+ id: string;
1342
+ modelRef: string;
1343
+ form: {
1344
+ fields: {
1345
+ type: string;
1346
+ label: string;
1347
+ }[];
1348
+ };
1349
+ table: {
1350
+ columns: {
1351
+ label: string;
1352
+ display: {
1353
+ type: "foreign";
1354
+ localRelationRef: string;
1355
+ labelExpression: string;
1356
+ valueExpression: string;
1357
+ } | {
1358
+ type: "text";
1359
+ modelFieldRef: string;
1360
+ };
1361
+ }[];
1362
+ };
1363
+ includeIdField?: boolean | undefined;
1364
+ })[] | undefined;
1365
+ })[] | undefined;
1366
+ } | undefined;
1367
+ }, {
1368
+ type: "web";
1369
+ name: string;
1370
+ description?: string | undefined;
1371
+ id?: string | undefined;
1372
+ packageLocation?: string | undefined;
1373
+ enableSubscriptions?: boolean | undefined;
1374
+ includeAuth?: boolean | undefined;
1375
+ title?: string | undefined;
1376
+ includeUploadComponents?: boolean | undefined;
1377
+ adminApp?: {
1378
+ enabled: boolean;
1379
+ pathPrefix?: string | undefined;
1380
+ allowedRoles?: string[] | undefined;
1381
+ sections?: ({
1382
+ type: string;
1383
+ name: string;
1384
+ featureRef: string;
1385
+ icon?: string | undefined;
1386
+ id?: string | undefined;
1387
+ } & {
1388
+ type: "crud";
1389
+ modelRef: string;
1390
+ form: {
1391
+ fields: z.objectInputType<{
1392
+ type: z.ZodString;
1393
+ label: z.ZodString;
1394
+ }, z.ZodTypeAny, "passthrough">[];
1395
+ };
1396
+ table: {
1397
+ columns: {
1398
+ label: string;
1399
+ display: {
1400
+ type: "foreign";
1401
+ localRelationRef: string;
1402
+ labelExpression: string;
1403
+ valueExpression: string;
1404
+ } | {
1405
+ type: "text";
1406
+ modelFieldRef: string;
1407
+ };
1408
+ }[];
1409
+ };
1410
+ disableCreate?: boolean | undefined;
1411
+ embeddedForms?: ({
1412
+ type: "object";
1413
+ name: string;
1414
+ id: string;
1415
+ modelRef: string;
1416
+ form: {
1417
+ fields: z.objectInputType<{
1418
+ type: z.ZodString;
1419
+ label: z.ZodString;
1420
+ }, z.ZodTypeAny, "passthrough">[];
1421
+ };
1422
+ includeIdField?: boolean | undefined;
1423
+ } | {
1424
+ type: "list";
1425
+ name: string;
1426
+ id: string;
1427
+ modelRef: string;
1428
+ form: {
1429
+ fields: z.objectInputType<{
1430
+ type: z.ZodString;
1431
+ label: z.ZodString;
1432
+ }, z.ZodTypeAny, "passthrough">[];
1433
+ };
1434
+ table: {
1435
+ columns: {
1436
+ label: string;
1437
+ display: {
1438
+ type: "foreign";
1439
+ localRelationRef: string;
1440
+ labelExpression: string;
1441
+ valueExpression: string;
1442
+ } | {
1443
+ type: "text";
1444
+ modelFieldRef: string;
1445
+ };
1446
+ }[];
1447
+ };
1448
+ includeIdField?: boolean | undefined;
1449
+ })[] | undefined;
1450
+ })[] | undefined;
1451
+ } | undefined;
1452
+ }>;
1453
+ export type WebAppConfig = def.InferOutput<typeof createWebAppSchema>;
1454
+ export declare const webAppEntryType: import("../types.js").AppEntryType<{
1455
+ type: "web";
1456
+ name: string;
1457
+ description: string;
1458
+ id: string;
1459
+ title: string;
1460
+ packageLocation?: string | undefined;
1461
+ enableSubscriptions?: boolean | undefined;
1462
+ includeAuth?: boolean | undefined;
1463
+ includeUploadComponents?: boolean | undefined;
1464
+ adminApp?: {
1465
+ enabled: boolean;
1466
+ pathPrefix: string;
1467
+ allowedRoles?: string[] | undefined;
1468
+ sections?: ({
1469
+ type: string;
1470
+ name: string;
1471
+ id: string;
1472
+ featureRef: string;
1473
+ icon?: string | undefined;
1474
+ } & {
1475
+ type: "crud";
1476
+ modelRef: string;
1477
+ form: {
1478
+ fields: {
1479
+ type: string;
1480
+ label: string;
1481
+ }[];
1482
+ };
1483
+ table: {
1484
+ columns: {
1485
+ label: string;
1486
+ display: {
1487
+ type: "foreign";
1488
+ localRelationRef: string;
1489
+ labelExpression: string;
1490
+ valueExpression: string;
1491
+ } | {
1492
+ type: "text";
1493
+ modelFieldRef: string;
1494
+ };
1495
+ }[];
1496
+ };
1497
+ disableCreate?: boolean | undefined;
1498
+ embeddedForms?: ({
1499
+ type: "object";
1500
+ name: string;
1501
+ id: string;
1502
+ modelRef: string;
1503
+ form: {
1504
+ fields: {
1505
+ type: string;
1506
+ label: string;
1507
+ }[];
1508
+ };
1509
+ includeIdField?: boolean | undefined;
1510
+ } | {
1511
+ type: "list";
1512
+ name: string;
1513
+ id: string;
1514
+ modelRef: string;
1515
+ form: {
1516
+ fields: {
1517
+ type: string;
1518
+ label: string;
1519
+ }[];
1520
+ };
1521
+ table: {
1522
+ columns: {
1523
+ label: string;
1524
+ display: {
1525
+ type: "foreign";
1526
+ localRelationRef: string;
1527
+ labelExpression: string;
1528
+ valueExpression: string;
1529
+ } | {
1530
+ type: "text";
1531
+ modelFieldRef: string;
1532
+ };
1533
+ }[];
1534
+ };
1535
+ includeIdField?: boolean | undefined;
1536
+ })[] | undefined;
1537
+ })[] | undefined;
1538
+ } | undefined;
1539
+ }>;
1540
+ //# sourceMappingURL=web-app.d.ts.map