@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
@@ -35,232 +35,37 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
35
35
  enableAxios?: boolean | undefined;
36
36
  }>, z.ZodObject<{
37
37
  type: z.ZodLiteral<"web">;
38
- includeAuth: z.ZodOptional<z.ZodBoolean>;
39
- title: z.ZodOptional<z.ZodString>;
40
- description: z.ZodOptional<z.ZodString>;
41
- allowedRoles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
42
- includeUploadComponents: z.ZodOptional<z.ZodBoolean>;
43
- enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
44
- id: z.ZodDefault<z.ZodString>;
45
- name: z.ZodString;
46
- packageLocation: z.ZodOptional<z.ZodString>;
47
- }, "strip", z.ZodTypeAny, {
48
- type: "web";
49
- name: string;
50
- id: string;
51
- description?: string | undefined;
52
- packageLocation?: string | undefined;
53
- allowedRoles?: string[] | undefined;
54
- enableSubscriptions?: boolean | undefined;
55
- includeAuth?: boolean | undefined;
56
- title?: string | undefined;
57
- includeUploadComponents?: boolean | undefined;
58
- }, {
59
- type: "web";
60
- name: string;
61
- description?: string | undefined;
62
- id?: string | undefined;
63
- packageLocation?: string | undefined;
64
- allowedRoles?: string[] | undefined;
65
- enableSubscriptions?: boolean | undefined;
66
- includeAuth?: boolean | undefined;
67
- title?: string | undefined;
68
- includeUploadComponents?: boolean | undefined;
69
- }>, z.ZodObject<{
70
- type: z.ZodLiteral<"admin">;
71
- allowedRoles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
72
- sections: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodObject<{
73
- id: z.ZodDefault<z.ZodString>;
74
- name: z.ZodString;
75
- featureRef: z.ZodEffects<z.ZodString, string, string>;
76
- icon: z.ZodOptional<z.ZodString>;
77
- type: z.ZodString;
78
- }, "strip", z.ZodTypeAny, {
79
- type: string;
80
- name: string;
81
- id: string;
82
- featureRef: string;
83
- icon?: string | undefined;
84
- }, {
85
- type: string;
86
- name: string;
87
- featureRef: string;
88
- icon?: string | undefined;
89
- id?: string | undefined;
90
- }>, z.ZodObject<{
91
- type: z.ZodLiteral<"crud">;
92
- modelRef: z.ZodEffects<z.ZodString, string, string>;
93
- disableCreate: z.ZodOptional<z.ZodBoolean>;
94
- table: z.ZodObject<{
95
- columns: z.ZodArray<z.ZodObject<{
96
- label: z.ZodString;
97
- display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
98
- type: z.ZodLiteral<"text">;
99
- modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
100
- }, "strip", z.ZodTypeAny, {
101
- type: "text";
102
- modelFieldRef: string;
103
- }, {
104
- type: "text";
105
- modelFieldRef: string;
106
- }>, z.ZodObject<{
107
- type: z.ZodLiteral<"foreign">;
108
- localRelationRef: z.ZodEffects<z.ZodString, string, string>;
109
- labelExpression: z.ZodString;
110
- valueExpression: z.ZodString;
111
- }, "strip", z.ZodTypeAny, {
112
- type: "foreign";
113
- localRelationRef: string;
114
- labelExpression: string;
115
- valueExpression: string;
116
- }, {
117
- type: "foreign";
118
- localRelationRef: string;
119
- labelExpression: string;
120
- valueExpression: string;
121
- }>]>;
122
- }, "strip", z.ZodTypeAny, {
123
- label: string;
124
- display: {
125
- type: "foreign";
126
- localRelationRef: string;
127
- labelExpression: string;
128
- valueExpression: string;
129
- } | {
130
- type: "text";
131
- modelFieldRef: string;
132
- };
133
- }, {
134
- label: string;
135
- display: {
136
- type: "foreign";
137
- localRelationRef: string;
138
- labelExpression: string;
139
- valueExpression: string;
140
- } | {
141
- type: "text";
142
- modelFieldRef: string;
143
- };
144
- }>, "many">;
145
- }, "strip", z.ZodTypeAny, {
146
- columns: {
147
- label: string;
148
- display: {
149
- type: "foreign";
150
- localRelationRef: string;
151
- labelExpression: string;
152
- valueExpression: string;
153
- } | {
154
- type: "text";
155
- modelFieldRef: string;
156
- };
157
- }[];
158
- }, {
159
- columns: {
160
- label: string;
161
- display: {
162
- type: "foreign";
163
- localRelationRef: string;
164
- labelExpression: string;
165
- valueExpression: string;
166
- } | {
167
- type: "text";
168
- modelFieldRef: string;
169
- };
170
- }[];
171
- }>;
172
- form: z.ZodObject<{
173
- fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
174
- type: z.ZodString;
175
- label: z.ZodString;
176
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
177
- type: z.ZodString;
178
- label: z.ZodString;
179
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
180
- type: z.ZodString;
181
- label: z.ZodString;
182
- }, z.ZodTypeAny, "passthrough">>, {
183
- type: string;
184
- label: string;
185
- }, z.objectInputType<{
186
- type: z.ZodString;
187
- label: z.ZodString;
188
- }, z.ZodTypeAny, "passthrough">>, "many">;
189
- }, "strip", z.ZodTypeAny, {
190
- fields: {
191
- type: string;
192
- label: string;
193
- }[];
194
- }, {
195
- fields: z.objectInputType<{
196
- type: z.ZodString;
197
- label: z.ZodString;
198
- }, z.ZodTypeAny, "passthrough">[];
199
- }>;
200
- embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
201
- id: z.ZodString;
38
+ includeAuth: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
39
+ title: z.ZodDefault<z.ZodString>;
40
+ description: z.ZodDefault<z.ZodString>;
41
+ includeUploadComponents: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
42
+ enableSubscriptions: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
43
+ adminApp: z.ZodEffects<z.ZodOptional<z.ZodObject<{
44
+ enabled: z.ZodBoolean;
45
+ pathPrefix: z.ZodDefault<z.ZodString>;
46
+ allowedRoles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
47
+ sections: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodObject<{
48
+ id: z.ZodDefault<z.ZodString>;
202
49
  name: z.ZodString;
203
- modelRef: z.ZodEffects<z.ZodString, string, string>;
204
- includeIdField: z.ZodOptional<z.ZodBoolean>;
205
- type: z.ZodLiteral<"object">;
206
- form: z.ZodObject<{
207
- fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
208
- type: z.ZodString;
209
- label: z.ZodString;
210
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
211
- type: z.ZodString;
212
- label: z.ZodString;
213
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
214
- type: z.ZodString;
215
- label: z.ZodString;
216
- }, z.ZodTypeAny, "passthrough">>, {
217
- type: string;
218
- label: string;
219
- }, z.objectInputType<{
220
- type: z.ZodString;
221
- label: z.ZodString;
222
- }, z.ZodTypeAny, "passthrough">>, "many">;
223
- }, "strip", z.ZodTypeAny, {
224
- fields: {
225
- type: string;
226
- label: string;
227
- }[];
228
- }, {
229
- fields: z.objectInputType<{
230
- type: z.ZodString;
231
- label: z.ZodString;
232
- }, z.ZodTypeAny, "passthrough">[];
233
- }>;
50
+ featureRef: z.ZodEffects<z.ZodString, string, string>;
51
+ icon: z.ZodOptional<z.ZodString>;
52
+ type: z.ZodString;
234
53
  }, "strip", z.ZodTypeAny, {
235
- type: "object";
54
+ type: string;
236
55
  name: string;
237
56
  id: string;
238
- modelRef: string;
239
- form: {
240
- fields: {
241
- type: string;
242
- label: string;
243
- }[];
244
- };
245
- includeIdField?: boolean | undefined;
57
+ featureRef: string;
58
+ icon?: string | undefined;
246
59
  }, {
247
- type: "object";
60
+ type: string;
248
61
  name: string;
249
- id: string;
250
- modelRef: string;
251
- form: {
252
- fields: z.objectInputType<{
253
- type: z.ZodString;
254
- label: z.ZodString;
255
- }, z.ZodTypeAny, "passthrough">[];
256
- };
257
- includeIdField?: boolean | undefined;
62
+ featureRef: string;
63
+ icon?: string | undefined;
64
+ id?: string | undefined;
258
65
  }>, z.ZodObject<{
259
- id: z.ZodString;
260
- name: z.ZodString;
66
+ type: z.ZodLiteral<"crud">;
261
67
  modelRef: z.ZodEffects<z.ZodString, string, string>;
262
- includeIdField: z.ZodOptional<z.ZodBoolean>;
263
- type: z.ZodLiteral<"list">;
68
+ disableCreate: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
264
69
  table: z.ZodObject<{
265
70
  columns: z.ZodArray<z.ZodObject<{
266
71
  label: z.ZodString;
@@ -367,163 +172,439 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
367
172
  label: z.ZodString;
368
173
  }, z.ZodTypeAny, "passthrough">[];
369
174
  }>;
370
- }, "strip", z.ZodTypeAny, {
371
- type: "list";
372
- name: string;
373
- id: string;
374
- modelRef: string;
375
- form: {
376
- fields: {
377
- type: string;
378
- label: string;
379
- }[];
380
- };
381
- table: {
382
- columns: {
383
- label: string;
384
- display: {
385
- type: "foreign";
386
- localRelationRef: string;
387
- labelExpression: string;
388
- valueExpression: string;
389
- } | {
390
- type: "text";
391
- modelFieldRef: string;
392
- };
393
- }[];
394
- };
395
- includeIdField?: boolean | undefined;
396
- }, {
397
- type: "list";
398
- name: string;
399
- id: string;
400
- modelRef: string;
401
- form: {
402
- fields: z.objectInputType<{
403
- type: z.ZodString;
404
- label: z.ZodString;
405
- }, z.ZodTypeAny, "passthrough">[];
406
- };
407
- table: {
408
- columns: {
409
- label: string;
410
- display: {
411
- type: "foreign";
412
- localRelationRef: string;
413
- labelExpression: string;
414
- valueExpression: string;
415
- } | {
416
- type: "text";
417
- modelFieldRef: string;
418
- };
419
- }[];
420
- };
421
- includeIdField?: boolean | undefined;
422
- }>]>, {
423
- type: "object";
424
- name: string;
425
- id: string;
426
- modelRef: string;
427
- form: {
428
- fields: {
429
- type: string;
430
- label: string;
431
- }[];
432
- };
433
- includeIdField?: boolean | undefined;
434
- } | {
435
- type: "list";
436
- name: string;
437
- id: string;
438
- modelRef: string;
439
- form: {
440
- fields: {
441
- type: string;
442
- label: string;
443
- }[];
444
- };
445
- table: {
446
- columns: {
447
- label: string;
448
- display: {
449
- type: "foreign";
450
- localRelationRef: string;
451
- labelExpression: string;
452
- valueExpression: string;
453
- } | {
454
- type: "text";
455
- modelFieldRef: string;
456
- };
457
- }[];
458
- };
459
- includeIdField?: boolean | undefined;
460
- }, {
461
- type: "object";
462
- name: string;
463
- id: string;
464
- modelRef: string;
465
- form: {
466
- fields: z.objectInputType<{
467
- type: z.ZodString;
468
- label: z.ZodString;
469
- }, z.ZodTypeAny, "passthrough">[];
470
- };
471
- includeIdField?: boolean | undefined;
472
- } | {
473
- type: "list";
474
- name: string;
475
- id: string;
476
- modelRef: string;
477
- form: {
478
- fields: z.objectInputType<{
479
- type: z.ZodString;
480
- label: z.ZodString;
481
- }, z.ZodTypeAny, "passthrough">[];
482
- };
483
- table: {
484
- columns: {
485
- label: string;
486
- display: {
487
- type: "foreign";
488
- localRelationRef: string;
489
- labelExpression: string;
490
- valueExpression: string;
491
- } | {
492
- type: "text";
493
- modelFieldRef: string;
494
- };
495
- }[];
496
- };
497
- includeIdField?: boolean | undefined;
498
- }>, "many">>;
499
- }, "strip", z.ZodTypeAny, {
500
- type: "crud";
501
- modelRef: string;
502
- form: {
503
- fields: {
504
- type: string;
505
- label: string;
506
- }[];
507
- };
508
- table: {
509
- columns: {
510
- label: string;
511
- display: {
512
- type: "foreign";
513
- localRelationRef: string;
514
- labelExpression: string;
515
- valueExpression: string;
516
- } | {
517
- type: "text";
518
- modelFieldRef: string;
519
- };
520
- }[];
521
- };
522
- disableCreate?: boolean | undefined;
523
- embeddedForms?: ({
524
- type: "object";
525
- name: string;
175
+ embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
176
+ id: z.ZodString;
177
+ name: z.ZodString;
178
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
179
+ includeIdField: z.ZodOptional<z.ZodBoolean>;
180
+ type: z.ZodLiteral<"object">;
181
+ form: z.ZodObject<{
182
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
183
+ type: z.ZodString;
184
+ label: z.ZodString;
185
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
186
+ type: z.ZodString;
187
+ label: z.ZodString;
188
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
189
+ type: z.ZodString;
190
+ label: z.ZodString;
191
+ }, z.ZodTypeAny, "passthrough">>, {
192
+ type: string;
193
+ label: string;
194
+ }, z.objectInputType<{
195
+ type: z.ZodString;
196
+ label: z.ZodString;
197
+ }, z.ZodTypeAny, "passthrough">>, "many">;
198
+ }, "strip", z.ZodTypeAny, {
199
+ fields: {
200
+ type: string;
201
+ label: string;
202
+ }[];
203
+ }, {
204
+ fields: z.objectInputType<{
205
+ type: z.ZodString;
206
+ label: z.ZodString;
207
+ }, z.ZodTypeAny, "passthrough">[];
208
+ }>;
209
+ }, "strip", z.ZodTypeAny, {
210
+ type: "object";
211
+ name: string;
212
+ id: string;
213
+ modelRef: string;
214
+ form: {
215
+ fields: {
216
+ type: string;
217
+ label: string;
218
+ }[];
219
+ };
220
+ includeIdField?: boolean | undefined;
221
+ }, {
222
+ type: "object";
223
+ name: string;
224
+ id: string;
225
+ modelRef: string;
226
+ form: {
227
+ fields: z.objectInputType<{
228
+ type: z.ZodString;
229
+ label: z.ZodString;
230
+ }, z.ZodTypeAny, "passthrough">[];
231
+ };
232
+ includeIdField?: boolean | undefined;
233
+ }>, z.ZodObject<{
234
+ id: z.ZodString;
235
+ name: z.ZodString;
236
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
237
+ includeIdField: z.ZodOptional<z.ZodBoolean>;
238
+ type: z.ZodLiteral<"list">;
239
+ table: z.ZodObject<{
240
+ columns: z.ZodArray<z.ZodObject<{
241
+ label: z.ZodString;
242
+ display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
243
+ type: z.ZodLiteral<"text">;
244
+ modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ type: "text";
247
+ modelFieldRef: string;
248
+ }, {
249
+ type: "text";
250
+ modelFieldRef: string;
251
+ }>, z.ZodObject<{
252
+ type: z.ZodLiteral<"foreign">;
253
+ localRelationRef: z.ZodEffects<z.ZodString, string, string>;
254
+ labelExpression: z.ZodString;
255
+ valueExpression: z.ZodString;
256
+ }, "strip", z.ZodTypeAny, {
257
+ type: "foreign";
258
+ localRelationRef: string;
259
+ labelExpression: string;
260
+ valueExpression: string;
261
+ }, {
262
+ type: "foreign";
263
+ localRelationRef: string;
264
+ labelExpression: string;
265
+ valueExpression: string;
266
+ }>]>;
267
+ }, "strip", z.ZodTypeAny, {
268
+ label: string;
269
+ display: {
270
+ type: "foreign";
271
+ localRelationRef: string;
272
+ labelExpression: string;
273
+ valueExpression: string;
274
+ } | {
275
+ type: "text";
276
+ modelFieldRef: string;
277
+ };
278
+ }, {
279
+ label: string;
280
+ display: {
281
+ type: "foreign";
282
+ localRelationRef: string;
283
+ labelExpression: string;
284
+ valueExpression: string;
285
+ } | {
286
+ type: "text";
287
+ modelFieldRef: string;
288
+ };
289
+ }>, "many">;
290
+ }, "strip", z.ZodTypeAny, {
291
+ columns: {
292
+ 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
+ }[];
303
+ }, {
304
+ columns: {
305
+ label: string;
306
+ display: {
307
+ type: "foreign";
308
+ localRelationRef: string;
309
+ labelExpression: string;
310
+ valueExpression: string;
311
+ } | {
312
+ type: "text";
313
+ modelFieldRef: string;
314
+ };
315
+ }[];
316
+ }>;
317
+ form: z.ZodObject<{
318
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
319
+ type: z.ZodString;
320
+ label: z.ZodString;
321
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
322
+ type: z.ZodString;
323
+ label: z.ZodString;
324
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
325
+ type: z.ZodString;
326
+ label: z.ZodString;
327
+ }, z.ZodTypeAny, "passthrough">>, {
328
+ type: string;
329
+ label: string;
330
+ }, z.objectInputType<{
331
+ type: z.ZodString;
332
+ label: z.ZodString;
333
+ }, z.ZodTypeAny, "passthrough">>, "many">;
334
+ }, "strip", z.ZodTypeAny, {
335
+ fields: {
336
+ type: string;
337
+ label: string;
338
+ }[];
339
+ }, {
340
+ fields: z.objectInputType<{
341
+ type: z.ZodString;
342
+ label: z.ZodString;
343
+ }, z.ZodTypeAny, "passthrough">[];
344
+ }>;
345
+ }, "strip", z.ZodTypeAny, {
346
+ type: "list";
347
+ name: string;
348
+ id: string;
349
+ modelRef: string;
350
+ form: {
351
+ fields: {
352
+ type: string;
353
+ label: string;
354
+ }[];
355
+ };
356
+ table: {
357
+ columns: {
358
+ label: string;
359
+ display: {
360
+ type: "foreign";
361
+ localRelationRef: string;
362
+ labelExpression: string;
363
+ valueExpression: string;
364
+ } | {
365
+ type: "text";
366
+ modelFieldRef: string;
367
+ };
368
+ }[];
369
+ };
370
+ includeIdField?: boolean | undefined;
371
+ }, {
372
+ type: "list";
373
+ name: string;
374
+ id: string;
375
+ modelRef: string;
376
+ form: {
377
+ fields: z.objectInputType<{
378
+ type: z.ZodString;
379
+ label: z.ZodString;
380
+ }, z.ZodTypeAny, "passthrough">[];
381
+ };
382
+ table: {
383
+ columns: {
384
+ label: string;
385
+ display: {
386
+ type: "foreign";
387
+ localRelationRef: string;
388
+ labelExpression: string;
389
+ valueExpression: string;
390
+ } | {
391
+ type: "text";
392
+ modelFieldRef: string;
393
+ };
394
+ }[];
395
+ };
396
+ includeIdField?: boolean | undefined;
397
+ }>]>, {
398
+ type: "object";
399
+ name: string;
400
+ id: string;
401
+ modelRef: string;
402
+ form: {
403
+ fields: {
404
+ type: string;
405
+ label: string;
406
+ }[];
407
+ };
408
+ includeIdField?: boolean | undefined;
409
+ } | {
410
+ type: "list";
411
+ name: string;
412
+ id: string;
413
+ modelRef: string;
414
+ form: {
415
+ fields: {
416
+ type: string;
417
+ label: string;
418
+ }[];
419
+ };
420
+ table: {
421
+ columns: {
422
+ label: string;
423
+ display: {
424
+ type: "foreign";
425
+ localRelationRef: string;
426
+ labelExpression: string;
427
+ valueExpression: string;
428
+ } | {
429
+ type: "text";
430
+ modelFieldRef: string;
431
+ };
432
+ }[];
433
+ };
434
+ includeIdField?: boolean | undefined;
435
+ }, {
436
+ type: "object";
437
+ name: string;
438
+ id: string;
439
+ modelRef: string;
440
+ form: {
441
+ fields: z.objectInputType<{
442
+ type: z.ZodString;
443
+ label: z.ZodString;
444
+ }, z.ZodTypeAny, "passthrough">[];
445
+ };
446
+ includeIdField?: boolean | undefined;
447
+ } | {
448
+ type: "list";
449
+ name: string;
450
+ id: string;
451
+ modelRef: string;
452
+ form: {
453
+ fields: z.objectInputType<{
454
+ type: z.ZodString;
455
+ label: z.ZodString;
456
+ }, z.ZodTypeAny, "passthrough">[];
457
+ };
458
+ table: {
459
+ columns: {
460
+ label: string;
461
+ display: {
462
+ type: "foreign";
463
+ localRelationRef: string;
464
+ labelExpression: string;
465
+ valueExpression: string;
466
+ } | {
467
+ type: "text";
468
+ modelFieldRef: string;
469
+ };
470
+ }[];
471
+ };
472
+ includeIdField?: boolean | undefined;
473
+ }>, "many">>;
474
+ }, "strip", z.ZodTypeAny, {
475
+ type: "crud";
476
+ modelRef: string;
477
+ form: {
478
+ fields: {
479
+ type: string;
480
+ label: string;
481
+ }[];
482
+ };
483
+ table: {
484
+ columns: {
485
+ label: string;
486
+ display: {
487
+ type: "foreign";
488
+ localRelationRef: string;
489
+ labelExpression: string;
490
+ valueExpression: string;
491
+ } | {
492
+ type: "text";
493
+ modelFieldRef: string;
494
+ };
495
+ }[];
496
+ };
497
+ disableCreate?: boolean | undefined;
498
+ embeddedForms?: ({
499
+ type: "object";
500
+ name: string;
501
+ id: string;
502
+ modelRef: string;
503
+ form: {
504
+ fields: {
505
+ type: string;
506
+ label: string;
507
+ }[];
508
+ };
509
+ includeIdField?: boolean | undefined;
510
+ } | {
511
+ type: "list";
512
+ name: string;
513
+ id: string;
514
+ modelRef: string;
515
+ form: {
516
+ fields: {
517
+ type: string;
518
+ label: string;
519
+ }[];
520
+ };
521
+ table: {
522
+ columns: {
523
+ label: string;
524
+ display: {
525
+ type: "foreign";
526
+ localRelationRef: string;
527
+ labelExpression: string;
528
+ valueExpression: string;
529
+ } | {
530
+ type: "text";
531
+ modelFieldRef: string;
532
+ };
533
+ }[];
534
+ };
535
+ includeIdField?: boolean | undefined;
536
+ })[] | undefined;
537
+ }, {
538
+ type: "crud";
539
+ modelRef: string;
540
+ form: {
541
+ fields: z.objectInputType<{
542
+ type: z.ZodString;
543
+ label: z.ZodString;
544
+ }, z.ZodTypeAny, "passthrough">[];
545
+ };
546
+ table: {
547
+ columns: {
548
+ label: string;
549
+ display: {
550
+ type: "foreign";
551
+ localRelationRef: string;
552
+ labelExpression: string;
553
+ valueExpression: string;
554
+ } | {
555
+ type: "text";
556
+ modelFieldRef: string;
557
+ };
558
+ }[];
559
+ };
560
+ disableCreate?: boolean | undefined;
561
+ embeddedForms?: ({
562
+ type: "object";
563
+ name: string;
564
+ id: string;
565
+ modelRef: string;
566
+ form: {
567
+ fields: z.objectInputType<{
568
+ type: z.ZodString;
569
+ label: z.ZodString;
570
+ }, z.ZodTypeAny, "passthrough">[];
571
+ };
572
+ includeIdField?: boolean | undefined;
573
+ } | {
574
+ type: "list";
575
+ name: string;
576
+ id: string;
577
+ modelRef: string;
578
+ form: {
579
+ fields: z.objectInputType<{
580
+ type: z.ZodString;
581
+ label: z.ZodString;
582
+ }, z.ZodTypeAny, "passthrough">[];
583
+ };
584
+ table: {
585
+ columns: {
586
+ label: string;
587
+ display: {
588
+ type: "foreign";
589
+ localRelationRef: string;
590
+ labelExpression: string;
591
+ valueExpression: string;
592
+ } | {
593
+ type: "text";
594
+ modelFieldRef: string;
595
+ };
596
+ }[];
597
+ };
598
+ includeIdField?: boolean | undefined;
599
+ })[] | undefined;
600
+ }>>, {
601
+ type: string;
602
+ name: string;
526
603
  id: string;
604
+ featureRef: string;
605
+ icon?: string | undefined;
606
+ } & {
607
+ type: "crud";
527
608
  modelRef: string;
528
609
  form: {
529
610
  fields: {
@@ -531,11 +612,137 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
531
612
  label: string;
532
613
  }[];
533
614
  };
534
- includeIdField?: boolean | undefined;
535
- } | {
536
- type: "list";
615
+ 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
+ }[];
628
+ };
629
+ disableCreate?: boolean | undefined;
630
+ embeddedForms?: ({
631
+ type: "object";
632
+ name: string;
633
+ id: string;
634
+ modelRef: string;
635
+ form: {
636
+ fields: {
637
+ type: string;
638
+ label: string;
639
+ }[];
640
+ };
641
+ includeIdField?: boolean | undefined;
642
+ } | {
643
+ type: "list";
644
+ name: string;
645
+ id: string;
646
+ modelRef: string;
647
+ form: {
648
+ fields: {
649
+ type: string;
650
+ label: string;
651
+ }[];
652
+ };
653
+ table: {
654
+ columns: {
655
+ label: string;
656
+ display: {
657
+ type: "foreign";
658
+ localRelationRef: string;
659
+ labelExpression: string;
660
+ valueExpression: string;
661
+ } | {
662
+ type: "text";
663
+ modelFieldRef: string;
664
+ };
665
+ }[];
666
+ };
667
+ includeIdField?: boolean | undefined;
668
+ })[] | undefined;
669
+ }, {
670
+ type: string;
671
+ name: string;
672
+ featureRef: string;
673
+ icon?: string | undefined;
674
+ id?: string | undefined;
675
+ } & {
676
+ type: "crud";
677
+ modelRef: string;
678
+ form: {
679
+ fields: z.objectInputType<{
680
+ type: z.ZodString;
681
+ label: z.ZodString;
682
+ }, z.ZodTypeAny, "passthrough">[];
683
+ };
684
+ table: {
685
+ columns: {
686
+ label: string;
687
+ display: {
688
+ type: "foreign";
689
+ localRelationRef: string;
690
+ labelExpression: string;
691
+ valueExpression: string;
692
+ } | {
693
+ type: "text";
694
+ modelFieldRef: string;
695
+ };
696
+ }[];
697
+ };
698
+ disableCreate?: boolean | undefined;
699
+ embeddedForms?: ({
700
+ type: "object";
701
+ name: string;
702
+ id: string;
703
+ modelRef: string;
704
+ form: {
705
+ fields: z.objectInputType<{
706
+ type: z.ZodString;
707
+ label: z.ZodString;
708
+ }, z.ZodTypeAny, "passthrough">[];
709
+ };
710
+ includeIdField?: boolean | undefined;
711
+ } | {
712
+ type: "list";
713
+ name: string;
714
+ id: string;
715
+ modelRef: string;
716
+ form: {
717
+ fields: z.objectInputType<{
718
+ type: z.ZodString;
719
+ label: z.ZodString;
720
+ }, z.ZodTypeAny, "passthrough">[];
721
+ };
722
+ table: {
723
+ columns: {
724
+ label: string;
725
+ display: {
726
+ type: "foreign";
727
+ localRelationRef: string;
728
+ labelExpression: string;
729
+ valueExpression: string;
730
+ } | {
731
+ type: "text";
732
+ modelFieldRef: string;
733
+ };
734
+ }[];
735
+ };
736
+ includeIdField?: boolean | undefined;
737
+ })[] | undefined;
738
+ }>, {
739
+ type: string;
537
740
  name: string;
538
741
  id: string;
742
+ featureRef: string;
743
+ icon?: string | undefined;
744
+ } & {
745
+ type: "crud";
539
746
  modelRef: string;
540
747
  form: {
541
748
  fields: {
@@ -557,48 +764,54 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
557
764
  };
558
765
  }[];
559
766
  };
560
- includeIdField?: boolean | undefined;
561
- })[] | undefined;
562
- }, {
563
- type: "crud";
564
- modelRef: string;
565
- form: {
566
- fields: z.objectInputType<{
567
- type: z.ZodString;
568
- label: z.ZodString;
569
- }, z.ZodTypeAny, "passthrough">[];
570
- };
571
- table: {
572
- columns: {
573
- label: string;
574
- display: {
575
- type: "foreign";
576
- localRelationRef: string;
577
- labelExpression: string;
578
- valueExpression: string;
579
- } | {
580
- type: "text";
581
- modelFieldRef: string;
767
+ disableCreate?: boolean | undefined;
768
+ embeddedForms?: ({
769
+ type: "object";
770
+ name: string;
771
+ id: string;
772
+ modelRef: string;
773
+ form: {
774
+ fields: {
775
+ type: string;
776
+ label: string;
777
+ }[];
582
778
  };
583
- }[];
584
- };
585
- disableCreate?: boolean | undefined;
586
- embeddedForms?: ({
587
- type: "object";
588
- name: string;
589
- id: string;
590
- modelRef: string;
591
- form: {
592
- fields: z.objectInputType<{
593
- type: z.ZodString;
594
- label: z.ZodString;
595
- }, z.ZodTypeAny, "passthrough">[];
596
- };
597
- includeIdField?: boolean | undefined;
598
- } | {
599
- type: "list";
779
+ includeIdField?: boolean | undefined;
780
+ } | {
781
+ type: "list";
782
+ name: string;
783
+ id: string;
784
+ modelRef: string;
785
+ form: {
786
+ fields: {
787
+ type: string;
788
+ label: string;
789
+ }[];
790
+ };
791
+ table: {
792
+ columns: {
793
+ label: string;
794
+ display: {
795
+ type: "foreign";
796
+ localRelationRef: string;
797
+ labelExpression: string;
798
+ valueExpression: string;
799
+ } | {
800
+ type: "text";
801
+ modelFieldRef: string;
802
+ };
803
+ }[];
804
+ };
805
+ includeIdField?: boolean | undefined;
806
+ })[] | undefined;
807
+ }, {
808
+ type: string;
600
809
  name: string;
601
- id: string;
810
+ featureRef: string;
811
+ icon?: string | undefined;
812
+ id?: string | undefined;
813
+ } & {
814
+ type: "crud";
602
815
  modelRef: string;
603
816
  form: {
604
817
  fields: z.objectInputType<{
@@ -620,54 +833,54 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
620
833
  };
621
834
  }[];
622
835
  };
623
- includeIdField?: boolean | undefined;
624
- })[] | undefined;
625
- }>>, {
626
- type: string;
627
- name: string;
628
- id: string;
629
- featureRef: string;
630
- icon?: string | undefined;
631
- } & {
632
- type: "crud";
633
- modelRef: string;
634
- form: {
635
- fields: {
636
- type: string;
637
- label: string;
638
- }[];
639
- };
640
- table: {
641
- columns: {
642
- label: string;
643
- display: {
644
- type: "foreign";
645
- localRelationRef: string;
646
- labelExpression: string;
647
- valueExpression: string;
648
- } | {
649
- type: "text";
650
- modelFieldRef: string;
836
+ disableCreate?: boolean | undefined;
837
+ embeddedForms?: ({
838
+ type: "object";
839
+ name: string;
840
+ id: string;
841
+ modelRef: string;
842
+ form: {
843
+ fields: z.objectInputType<{
844
+ type: z.ZodString;
845
+ label: z.ZodString;
846
+ }, z.ZodTypeAny, "passthrough">[];
651
847
  };
652
- }[];
653
- };
654
- disableCreate?: boolean | undefined;
655
- embeddedForms?: ({
656
- type: "object";
657
- name: string;
658
- id: string;
659
- modelRef: string;
660
- form: {
661
- fields: {
662
- type: string;
663
- label: string;
664
- }[];
665
- };
666
- includeIdField?: boolean | undefined;
667
- } | {
668
- type: "list";
848
+ includeIdField?: boolean | undefined;
849
+ } | {
850
+ type: "list";
851
+ name: string;
852
+ id: string;
853
+ modelRef: string;
854
+ form: {
855
+ fields: z.objectInputType<{
856
+ type: z.ZodString;
857
+ label: z.ZodString;
858
+ }, z.ZodTypeAny, "passthrough">[];
859
+ };
860
+ table: {
861
+ columns: {
862
+ label: string;
863
+ display: {
864
+ type: "foreign";
865
+ localRelationRef: string;
866
+ labelExpression: string;
867
+ valueExpression: string;
868
+ } | {
869
+ type: "text";
870
+ modelFieldRef: string;
871
+ };
872
+ }[];
873
+ };
874
+ includeIdField?: boolean | undefined;
875
+ })[] | undefined;
876
+ }>, "many">>, ({
877
+ type: string;
669
878
  name: string;
670
879
  id: string;
880
+ featureRef: string;
881
+ icon?: string | undefined;
882
+ } & {
883
+ type: "crud";
671
884
  modelRef: string;
672
885
  form: {
673
886
  fields: {
@@ -689,54 +902,54 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
689
902
  };
690
903
  }[];
691
904
  };
692
- includeIdField?: boolean | undefined;
693
- })[] | undefined;
694
- }, {
695
- type: string;
696
- name: string;
697
- featureRef: string;
698
- icon?: string | undefined;
699
- id?: string | undefined;
700
- } & {
701
- type: "crud";
702
- modelRef: string;
703
- form: {
704
- fields: z.objectInputType<{
705
- type: z.ZodString;
706
- label: z.ZodString;
707
- }, z.ZodTypeAny, "passthrough">[];
708
- };
709
- table: {
710
- columns: {
711
- label: string;
712
- display: {
713
- type: "foreign";
714
- localRelationRef: string;
715
- labelExpression: string;
716
- valueExpression: string;
717
- } | {
718
- type: "text";
719
- modelFieldRef: string;
905
+ disableCreate?: boolean | undefined;
906
+ embeddedForms?: ({
907
+ type: "object";
908
+ name: string;
909
+ id: string;
910
+ modelRef: string;
911
+ form: {
912
+ fields: {
913
+ type: string;
914
+ label: string;
915
+ }[];
720
916
  };
721
- }[];
722
- };
723
- disableCreate?: boolean | undefined;
724
- embeddedForms?: ({
725
- type: "object";
726
- name: string;
727
- id: string;
728
- modelRef: string;
729
- form: {
730
- fields: z.objectInputType<{
731
- type: z.ZodString;
732
- label: z.ZodString;
733
- }, z.ZodTypeAny, "passthrough">[];
734
- };
735
- includeIdField?: boolean | undefined;
736
- } | {
737
- type: "list";
917
+ includeIdField?: boolean | undefined;
918
+ } | {
919
+ type: "list";
920
+ name: string;
921
+ id: string;
922
+ modelRef: string;
923
+ form: {
924
+ fields: {
925
+ type: string;
926
+ label: string;
927
+ }[];
928
+ };
929
+ table: {
930
+ columns: {
931
+ label: string;
932
+ display: {
933
+ type: "foreign";
934
+ localRelationRef: string;
935
+ labelExpression: string;
936
+ valueExpression: string;
937
+ } | {
938
+ type: "text";
939
+ modelFieldRef: string;
940
+ };
941
+ }[];
942
+ };
943
+ includeIdField?: boolean | undefined;
944
+ })[] | undefined;
945
+ })[] | undefined, ({
946
+ type: string;
738
947
  name: string;
739
- id: string;
948
+ featureRef: string;
949
+ icon?: string | undefined;
950
+ id?: string | undefined;
951
+ } & {
952
+ type: "crud";
740
953
  modelRef: string;
741
954
  form: {
742
955
  fields: z.objectInputType<{
@@ -758,54 +971,59 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
758
971
  };
759
972
  }[];
760
973
  };
761
- includeIdField?: boolean | undefined;
762
- })[] | undefined;
763
- }>, {
764
- type: string;
765
- name: string;
766
- id: string;
767
- featureRef: string;
768
- icon?: string | undefined;
769
- } & {
770
- type: "crud";
771
- modelRef: string;
772
- form: {
773
- fields: {
774
- type: string;
775
- label: string;
776
- }[];
777
- };
778
- table: {
779
- columns: {
780
- label: string;
781
- display: {
782
- type: "foreign";
783
- localRelationRef: string;
784
- labelExpression: string;
785
- valueExpression: string;
786
- } | {
787
- type: "text";
788
- modelFieldRef: string;
974
+ disableCreate?: boolean | undefined;
975
+ embeddedForms?: ({
976
+ type: "object";
977
+ name: string;
978
+ id: string;
979
+ modelRef: string;
980
+ form: {
981
+ fields: z.objectInputType<{
982
+ type: z.ZodString;
983
+ label: z.ZodString;
984
+ }, z.ZodTypeAny, "passthrough">[];
789
985
  };
790
- }[];
791
- };
792
- disableCreate?: boolean | undefined;
793
- embeddedForms?: ({
794
- type: "object";
795
- name: string;
796
- id: string;
797
- modelRef: string;
798
- form: {
799
- fields: {
800
- type: string;
801
- label: string;
802
- }[];
803
- };
804
- includeIdField?: boolean | undefined;
805
- } | {
806
- type: "list";
986
+ includeIdField?: boolean | undefined;
987
+ } | {
988
+ type: "list";
989
+ name: string;
990
+ id: string;
991
+ modelRef: string;
992
+ form: {
993
+ fields: z.objectInputType<{
994
+ type: z.ZodString;
995
+ label: z.ZodString;
996
+ }, z.ZodTypeAny, "passthrough">[];
997
+ };
998
+ table: {
999
+ columns: {
1000
+ label: string;
1001
+ display: {
1002
+ type: "foreign";
1003
+ localRelationRef: string;
1004
+ labelExpression: string;
1005
+ valueExpression: string;
1006
+ } | {
1007
+ type: "text";
1008
+ modelFieldRef: string;
1009
+ };
1010
+ }[];
1011
+ };
1012
+ includeIdField?: boolean | undefined;
1013
+ })[] | undefined;
1014
+ })[] | undefined>;
1015
+ }, "strip", z.ZodTypeAny, {
1016
+ enabled: boolean;
1017
+ pathPrefix: string;
1018
+ allowedRoles?: string[] | undefined;
1019
+ sections?: ({
1020
+ type: string;
807
1021
  name: string;
808
1022
  id: string;
1023
+ featureRef: string;
1024
+ icon?: string | undefined;
1025
+ } & {
1026
+ type: "crud";
809
1027
  modelRef: string;
810
1028
  form: {
811
1029
  fields: {
@@ -827,54 +1045,59 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
827
1045
  };
828
1046
  }[];
829
1047
  };
830
- includeIdField?: boolean | undefined;
1048
+ disableCreate?: boolean | undefined;
1049
+ embeddedForms?: ({
1050
+ type: "object";
1051
+ name: string;
1052
+ id: string;
1053
+ modelRef: string;
1054
+ form: {
1055
+ fields: {
1056
+ type: string;
1057
+ label: string;
1058
+ }[];
1059
+ };
1060
+ includeIdField?: boolean | undefined;
1061
+ } | {
1062
+ type: "list";
1063
+ name: string;
1064
+ id: string;
1065
+ modelRef: string;
1066
+ form: {
1067
+ fields: {
1068
+ type: string;
1069
+ label: string;
1070
+ }[];
1071
+ };
1072
+ table: {
1073
+ columns: {
1074
+ label: string;
1075
+ display: {
1076
+ type: "foreign";
1077
+ localRelationRef: string;
1078
+ labelExpression: string;
1079
+ valueExpression: string;
1080
+ } | {
1081
+ type: "text";
1082
+ modelFieldRef: string;
1083
+ };
1084
+ }[];
1085
+ };
1086
+ includeIdField?: boolean | undefined;
1087
+ })[] | undefined;
831
1088
  })[] | undefined;
832
1089
  }, {
833
- type: string;
834
- name: string;
835
- featureRef: string;
836
- icon?: string | undefined;
837
- id?: string | undefined;
838
- } & {
839
- type: "crud";
840
- modelRef: string;
841
- form: {
842
- fields: z.objectInputType<{
843
- type: z.ZodString;
844
- label: z.ZodString;
845
- }, z.ZodTypeAny, "passthrough">[];
846
- };
847
- table: {
848
- columns: {
849
- label: string;
850
- display: {
851
- type: "foreign";
852
- localRelationRef: string;
853
- labelExpression: string;
854
- valueExpression: string;
855
- } | {
856
- type: "text";
857
- modelFieldRef: string;
858
- };
859
- }[];
860
- };
861
- disableCreate?: boolean | undefined;
862
- embeddedForms?: ({
863
- type: "object";
864
- name: string;
865
- id: string;
866
- modelRef: string;
867
- form: {
868
- fields: z.objectInputType<{
869
- type: z.ZodString;
870
- label: z.ZodString;
871
- }, z.ZodTypeAny, "passthrough">[];
872
- };
873
- includeIdField?: boolean | undefined;
874
- } | {
875
- type: "list";
1090
+ enabled: boolean;
1091
+ pathPrefix?: string | undefined;
1092
+ allowedRoles?: string[] | undefined;
1093
+ sections?: ({
1094
+ type: string;
876
1095
  name: string;
877
- id: string;
1096
+ featureRef: string;
1097
+ icon?: string | undefined;
1098
+ id?: string | undefined;
1099
+ } & {
1100
+ type: "crud";
878
1101
  modelRef: string;
879
1102
  form: {
880
1103
  fields: z.objectInputType<{
@@ -896,64 +1119,59 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
896
1119
  };
897
1120
  }[];
898
1121
  };
899
- includeIdField?: boolean | undefined;
900
- })[] | undefined;
901
- }>, "many">>;
902
- id: z.ZodDefault<z.ZodString>;
903
- name: z.ZodString;
904
- packageLocation: z.ZodOptional<z.ZodString>;
905
- }, "strip", z.ZodTypeAny, {
906
- type: "admin";
907
- name: string;
908
- id: string;
909
- packageLocation?: string | undefined;
910
- allowedRoles?: string[] | undefined;
911
- sections?: ({
912
- type: string;
913
- name: string;
914
- id: string;
915
- featureRef: string;
916
- icon?: string | undefined;
917
- } & {
918
- type: "crud";
919
- modelRef: string;
920
- form: {
921
- fields: {
922
- type: string;
923
- label: string;
924
- }[];
925
- };
926
- table: {
927
- columns: {
928
- label: string;
929
- display: {
930
- type: "foreign";
931
- localRelationRef: string;
932
- labelExpression: string;
933
- valueExpression: string;
934
- } | {
935
- type: "text";
936
- modelFieldRef: string;
1122
+ disableCreate?: boolean | undefined;
1123
+ embeddedForms?: ({
1124
+ type: "object";
1125
+ name: string;
1126
+ id: string;
1127
+ modelRef: string;
1128
+ form: {
1129
+ fields: z.objectInputType<{
1130
+ type: z.ZodString;
1131
+ label: z.ZodString;
1132
+ }, z.ZodTypeAny, "passthrough">[];
937
1133
  };
938
- }[];
939
- };
940
- disableCreate?: boolean | undefined;
941
- embeddedForms?: ({
942
- type: "object";
943
- name: string;
944
- id: string;
945
- modelRef: string;
946
- form: {
947
- fields: {
948
- type: string;
949
- label: string;
950
- }[];
951
- };
952
- includeIdField?: boolean | undefined;
953
- } | {
954
- type: "list";
1134
+ includeIdField?: boolean | undefined;
1135
+ } | {
1136
+ type: "list";
1137
+ name: string;
1138
+ id: string;
1139
+ modelRef: string;
1140
+ form: {
1141
+ fields: z.objectInputType<{
1142
+ type: z.ZodString;
1143
+ label: z.ZodString;
1144
+ }, z.ZodTypeAny, "passthrough">[];
1145
+ };
1146
+ table: {
1147
+ columns: {
1148
+ label: string;
1149
+ display: {
1150
+ type: "foreign";
1151
+ localRelationRef: string;
1152
+ labelExpression: string;
1153
+ valueExpression: string;
1154
+ } | {
1155
+ type: "text";
1156
+ modelFieldRef: string;
1157
+ };
1158
+ }[];
1159
+ };
1160
+ includeIdField?: boolean | undefined;
1161
+ })[] | undefined;
1162
+ })[] | undefined;
1163
+ }>>, {
1164
+ enabled: boolean;
1165
+ pathPrefix: string;
1166
+ allowedRoles?: string[] | undefined;
1167
+ sections?: ({
1168
+ type: string;
955
1169
  name: string;
956
1170
  id: string;
1171
+ featureRef: string;
1172
+ icon?: string | undefined;
1173
+ } & {
1174
+ type: "crud";
957
1175
  modelRef: string;
958
1176
  form: {
959
1177
  fields: {
@@ -975,61 +1193,59 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
975
1193
  };
976
1194
  }[];
977
1195
  };
978
- includeIdField?: boolean | undefined;
979
- })[] | undefined;
980
- })[] | undefined;
981
- }, {
982
- type: "admin";
983
- name: string;
984
- id?: string | undefined;
985
- packageLocation?: string | undefined;
986
- allowedRoles?: string[] | undefined;
987
- sections?: ({
988
- type: string;
989
- name: string;
990
- featureRef: string;
991
- icon?: string | undefined;
992
- id?: string | undefined;
993
- } & {
994
- type: "crud";
995
- modelRef: string;
996
- form: {
997
- fields: z.objectInputType<{
998
- type: z.ZodString;
999
- label: z.ZodString;
1000
- }, z.ZodTypeAny, "passthrough">[];
1001
- };
1002
- table: {
1003
- columns: {
1004
- label: string;
1005
- display: {
1006
- type: "foreign";
1007
- localRelationRef: string;
1008
- labelExpression: string;
1009
- valueExpression: string;
1010
- } | {
1011
- type: "text";
1012
- modelFieldRef: string;
1196
+ disableCreate?: boolean | undefined;
1197
+ embeddedForms?: ({
1198
+ type: "object";
1199
+ name: string;
1200
+ id: string;
1201
+ modelRef: string;
1202
+ form: {
1203
+ fields: {
1204
+ type: string;
1205
+ label: string;
1206
+ }[];
1013
1207
  };
1014
- }[];
1015
- };
1016
- disableCreate?: boolean | undefined;
1017
- embeddedForms?: ({
1018
- type: "object";
1019
- name: string;
1020
- id: string;
1021
- modelRef: string;
1022
- form: {
1023
- fields: z.objectInputType<{
1024
- type: z.ZodString;
1025
- label: z.ZodString;
1026
- }, z.ZodTypeAny, "passthrough">[];
1027
- };
1028
- includeIdField?: boolean | undefined;
1029
- } | {
1030
- type: "list";
1208
+ includeIdField?: boolean | undefined;
1209
+ } | {
1210
+ type: "list";
1211
+ name: string;
1212
+ id: string;
1213
+ modelRef: string;
1214
+ form: {
1215
+ fields: {
1216
+ type: string;
1217
+ label: string;
1218
+ }[];
1219
+ };
1220
+ table: {
1221
+ columns: {
1222
+ label: string;
1223
+ display: {
1224
+ type: "foreign";
1225
+ localRelationRef: string;
1226
+ labelExpression: string;
1227
+ valueExpression: string;
1228
+ } | {
1229
+ type: "text";
1230
+ modelFieldRef: string;
1231
+ };
1232
+ }[];
1233
+ };
1234
+ includeIdField?: boolean | undefined;
1235
+ })[] | undefined;
1236
+ })[] | undefined;
1237
+ } | undefined, {
1238
+ enabled: boolean;
1239
+ pathPrefix?: string | undefined;
1240
+ allowedRoles?: string[] | undefined;
1241
+ sections?: ({
1242
+ type: string;
1031
1243
  name: string;
1032
- id: string;
1244
+ featureRef: string;
1245
+ icon?: string | undefined;
1246
+ id?: string | undefined;
1247
+ } & {
1248
+ type: "crud";
1033
1249
  modelRef: string;
1034
1250
  form: {
1035
1251
  fields: z.objectInputType<{
@@ -1051,61 +1267,73 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
1051
1267
  };
1052
1268
  }[];
1053
1269
  };
1054
- includeIdField?: boolean | undefined;
1270
+ disableCreate?: boolean | undefined;
1271
+ embeddedForms?: ({
1272
+ type: "object";
1273
+ name: string;
1274
+ id: string;
1275
+ modelRef: string;
1276
+ form: {
1277
+ fields: z.objectInputType<{
1278
+ type: z.ZodString;
1279
+ label: z.ZodString;
1280
+ }, z.ZodTypeAny, "passthrough">[];
1281
+ };
1282
+ includeIdField?: boolean | undefined;
1283
+ } | {
1284
+ type: "list";
1285
+ name: string;
1286
+ id: string;
1287
+ modelRef: string;
1288
+ form: {
1289
+ fields: z.objectInputType<{
1290
+ type: z.ZodString;
1291
+ label: z.ZodString;
1292
+ }, z.ZodTypeAny, "passthrough">[];
1293
+ };
1294
+ table: {
1295
+ columns: {
1296
+ label: string;
1297
+ display: {
1298
+ type: "foreign";
1299
+ localRelationRef: string;
1300
+ labelExpression: string;
1301
+ valueExpression: string;
1302
+ } | {
1303
+ type: "text";
1304
+ modelFieldRef: string;
1305
+ };
1306
+ }[];
1307
+ };
1308
+ includeIdField?: boolean | undefined;
1309
+ })[] | undefined;
1055
1310
  })[] | undefined;
1056
- })[] | undefined;
1057
- }>]>, {
1058
- type: "admin";
1311
+ } | undefined>;
1312
+ id: z.ZodDefault<z.ZodString>;
1313
+ name: z.ZodString;
1314
+ packageLocation: z.ZodOptional<z.ZodString>;
1315
+ }, "strip", z.ZodTypeAny, {
1316
+ type: "web";
1059
1317
  name: string;
1318
+ description: string;
1060
1319
  id: string;
1320
+ title: string;
1061
1321
  packageLocation?: string | undefined;
1062
- allowedRoles?: string[] | undefined;
1063
- sections?: ({
1064
- type: string;
1065
- name: string;
1066
- id: string;
1067
- featureRef: string;
1068
- icon?: string | undefined;
1069
- } & {
1070
- type: "crud";
1071
- modelRef: string;
1072
- form: {
1073
- fields: {
1074
- type: string;
1075
- label: string;
1076
- }[];
1077
- };
1078
- table: {
1079
- columns: {
1080
- label: string;
1081
- display: {
1082
- type: "foreign";
1083
- localRelationRef: string;
1084
- labelExpression: string;
1085
- valueExpression: string;
1086
- } | {
1087
- type: "text";
1088
- modelFieldRef: string;
1089
- };
1090
- }[];
1091
- };
1092
- disableCreate?: boolean | undefined;
1093
- embeddedForms?: ({
1094
- type: "object";
1095
- name: string;
1096
- id: string;
1097
- modelRef: string;
1098
- form: {
1099
- fields: {
1100
- type: string;
1101
- label: string;
1102
- }[];
1103
- };
1104
- includeIdField?: boolean | undefined;
1105
- } | {
1106
- type: "list";
1322
+ enableSubscriptions?: boolean | undefined;
1323
+ includeAuth?: boolean | undefined;
1324
+ includeUploadComponents?: boolean | undefined;
1325
+ adminApp?: {
1326
+ enabled: boolean;
1327
+ pathPrefix: string;
1328
+ allowedRoles?: string[] | undefined;
1329
+ sections?: ({
1330
+ type: string;
1107
1331
  name: string;
1108
1332
  id: string;
1333
+ featureRef: string;
1334
+ icon?: string | undefined;
1335
+ } & {
1336
+ type: "crud";
1109
1337
  modelRef: string;
1110
1338
  form: {
1111
1339
  fields: {
@@ -1127,83 +1355,70 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
1127
1355
  };
1128
1356
  }[];
1129
1357
  };
1130
- includeIdField?: boolean | undefined;
1358
+ disableCreate?: boolean | undefined;
1359
+ embeddedForms?: ({
1360
+ type: "object";
1361
+ name: string;
1362
+ id: string;
1363
+ modelRef: string;
1364
+ form: {
1365
+ fields: {
1366
+ type: string;
1367
+ label: string;
1368
+ }[];
1369
+ };
1370
+ includeIdField?: boolean | undefined;
1371
+ } | {
1372
+ type: "list";
1373
+ name: string;
1374
+ id: string;
1375
+ modelRef: string;
1376
+ form: {
1377
+ fields: {
1378
+ type: string;
1379
+ label: string;
1380
+ }[];
1381
+ };
1382
+ table: {
1383
+ columns: {
1384
+ label: string;
1385
+ display: {
1386
+ type: "foreign";
1387
+ localRelationRef: string;
1388
+ labelExpression: string;
1389
+ valueExpression: string;
1390
+ } | {
1391
+ type: "text";
1392
+ modelFieldRef: string;
1393
+ };
1394
+ }[];
1395
+ };
1396
+ includeIdField?: boolean | undefined;
1397
+ })[] | undefined;
1131
1398
  })[] | undefined;
1132
- })[] | undefined;
1133
- } | {
1134
- type: "backend";
1135
- name: string;
1136
- id: string;
1137
- packageLocation?: string | undefined;
1138
- enableStripe?: boolean | undefined;
1139
- enableRedis?: boolean | undefined;
1140
- enableBullQueue?: boolean | undefined;
1141
- enablePostmark?: boolean | undefined;
1142
- enableSubscriptions?: boolean | undefined;
1143
- enableAxios?: boolean | undefined;
1144
- } | {
1399
+ } | undefined;
1400
+ }, {
1145
1401
  type: "web";
1146
1402
  name: string;
1147
- id: string;
1148
1403
  description?: string | undefined;
1404
+ id?: string | undefined;
1149
1405
  packageLocation?: string | undefined;
1150
- allowedRoles?: string[] | undefined;
1151
1406
  enableSubscriptions?: boolean | undefined;
1152
1407
  includeAuth?: boolean | undefined;
1153
1408
  title?: string | undefined;
1154
1409
  includeUploadComponents?: boolean | undefined;
1155
- }, {
1156
- type: "admin";
1157
- name: string;
1158
- id?: string | undefined;
1159
- packageLocation?: string | undefined;
1160
- allowedRoles?: string[] | undefined;
1161
- sections?: ({
1162
- type: string;
1163
- name: string;
1164
- featureRef: string;
1165
- icon?: string | undefined;
1166
- id?: string | undefined;
1167
- } & {
1168
- type: "crud";
1169
- modelRef: string;
1170
- form: {
1171
- fields: z.objectInputType<{
1172
- type: z.ZodString;
1173
- label: z.ZodString;
1174
- }, z.ZodTypeAny, "passthrough">[];
1175
- };
1176
- table: {
1177
- columns: {
1178
- label: string;
1179
- display: {
1180
- type: "foreign";
1181
- localRelationRef: string;
1182
- labelExpression: string;
1183
- valueExpression: string;
1184
- } | {
1185
- type: "text";
1186
- modelFieldRef: string;
1187
- };
1188
- }[];
1189
- };
1190
- disableCreate?: boolean | undefined;
1191
- embeddedForms?: ({
1192
- type: "object";
1193
- name: string;
1194
- id: string;
1195
- modelRef: string;
1196
- form: {
1197
- fields: z.objectInputType<{
1198
- type: z.ZodString;
1199
- label: z.ZodString;
1200
- }, z.ZodTypeAny, "passthrough">[];
1201
- };
1202
- includeIdField?: boolean | undefined;
1203
- } | {
1204
- type: "list";
1410
+ adminApp?: {
1411
+ enabled: boolean;
1412
+ pathPrefix?: string | undefined;
1413
+ allowedRoles?: string[] | undefined;
1414
+ sections?: ({
1415
+ type: string;
1205
1416
  name: string;
1206
- id: string;
1417
+ featureRef: string;
1418
+ icon?: string | undefined;
1419
+ id?: string | undefined;
1420
+ } & {
1421
+ type: "crud";
1207
1422
  modelRef: string;
1208
1423
  form: {
1209
1424
  fields: z.objectInputType<{
@@ -1225,13 +1440,52 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
1225
1440
  };
1226
1441
  }[];
1227
1442
  };
1228
- includeIdField?: boolean | undefined;
1443
+ disableCreate?: boolean | undefined;
1444
+ embeddedForms?: ({
1445
+ type: "object";
1446
+ name: string;
1447
+ id: string;
1448
+ modelRef: string;
1449
+ form: {
1450
+ fields: z.objectInputType<{
1451
+ type: z.ZodString;
1452
+ label: z.ZodString;
1453
+ }, z.ZodTypeAny, "passthrough">[];
1454
+ };
1455
+ includeIdField?: boolean | undefined;
1456
+ } | {
1457
+ type: "list";
1458
+ name: string;
1459
+ id: string;
1460
+ modelRef: string;
1461
+ form: {
1462
+ fields: z.objectInputType<{
1463
+ type: z.ZodString;
1464
+ label: z.ZodString;
1465
+ }, z.ZodTypeAny, "passthrough">[];
1466
+ };
1467
+ table: {
1468
+ columns: {
1469
+ label: string;
1470
+ display: {
1471
+ type: "foreign";
1472
+ localRelationRef: string;
1473
+ labelExpression: string;
1474
+ valueExpression: string;
1475
+ } | {
1476
+ type: "text";
1477
+ modelFieldRef: string;
1478
+ };
1479
+ }[];
1480
+ };
1481
+ includeIdField?: boolean | undefined;
1482
+ })[] | undefined;
1229
1483
  })[] | undefined;
1230
- })[] | undefined;
1231
- } | {
1484
+ } | undefined;
1485
+ }>]>, {
1232
1486
  type: "backend";
1233
1487
  name: string;
1234
- id?: string | undefined;
1488
+ id: string;
1235
1489
  packageLocation?: string | undefined;
1236
1490
  enableStripe?: boolean | undefined;
1237
1491
  enableRedis?: boolean | undefined;
@@ -1242,161 +1496,33 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
1242
1496
  } | {
1243
1497
  type: "web";
1244
1498
  name: string;
1245
- description?: string | undefined;
1246
- id?: string | undefined;
1499
+ description: string;
1500
+ id: string;
1501
+ title: string;
1247
1502
  packageLocation?: string | undefined;
1248
- allowedRoles?: string[] | undefined;
1249
1503
  enableSubscriptions?: boolean | undefined;
1250
1504
  includeAuth?: boolean | undefined;
1251
- title?: string | undefined;
1252
1505
  includeUploadComponents?: boolean | undefined;
1253
- }>;
1254
- export type AppConfig = def.InferOutput<typeof createAppSchema>;
1255
- export declare const createProjectDefinitionSchema: (context: import("./creator/types.js").DefinitionSchemaParserContext) => z.ZodObject<{
1256
- cliVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1257
- apps: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1258
- type: z.ZodLiteral<"backend">;
1259
- enableStripe: z.ZodOptional<z.ZodBoolean>;
1260
- enableRedis: z.ZodOptional<z.ZodBoolean>;
1261
- enableBullQueue: z.ZodOptional<z.ZodBoolean>;
1262
- enablePostmark: z.ZodOptional<z.ZodBoolean>;
1263
- enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
1264
- enableAxios: z.ZodOptional<z.ZodBoolean>;
1265
- id: z.ZodDefault<z.ZodString>;
1266
- name: z.ZodString;
1267
- packageLocation: z.ZodOptional<z.ZodString>;
1268
- }, "strip", z.ZodTypeAny, {
1269
- type: "backend";
1270
- name: string;
1271
- id: string;
1272
- packageLocation?: string | undefined;
1273
- enableStripe?: boolean | undefined;
1274
- enableRedis?: boolean | undefined;
1275
- enableBullQueue?: boolean | undefined;
1276
- enablePostmark?: boolean | undefined;
1277
- enableSubscriptions?: boolean | undefined;
1278
- enableAxios?: boolean | undefined;
1279
- }, {
1280
- type: "backend";
1281
- name: string;
1282
- id?: string | undefined;
1283
- packageLocation?: string | undefined;
1284
- enableStripe?: boolean | undefined;
1285
- enableRedis?: boolean | undefined;
1286
- enableBullQueue?: boolean | undefined;
1287
- enablePostmark?: boolean | undefined;
1288
- enableSubscriptions?: boolean | undefined;
1289
- enableAxios?: boolean | undefined;
1290
- }>, z.ZodObject<{
1291
- type: z.ZodLiteral<"web">;
1292
- includeAuth: z.ZodOptional<z.ZodBoolean>;
1293
- title: z.ZodOptional<z.ZodString>;
1294
- description: z.ZodOptional<z.ZodString>;
1295
- allowedRoles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1296
- includeUploadComponents: z.ZodOptional<z.ZodBoolean>;
1297
- enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
1298
- id: z.ZodDefault<z.ZodString>;
1299
- name: z.ZodString;
1300
- packageLocation: z.ZodOptional<z.ZodString>;
1301
- }, "strip", z.ZodTypeAny, {
1302
- type: "web";
1303
- name: string;
1304
- id: string;
1305
- description?: string | undefined;
1306
- packageLocation?: string | undefined;
1307
- allowedRoles?: string[] | undefined;
1308
- enableSubscriptions?: boolean | undefined;
1309
- includeAuth?: boolean | undefined;
1310
- title?: string | undefined;
1311
- includeUploadComponents?: boolean | undefined;
1312
- }, {
1313
- type: "web";
1314
- name: string;
1315
- description?: string | undefined;
1316
- id?: string | undefined;
1317
- packageLocation?: string | undefined;
1506
+ adminApp?: {
1507
+ enabled: boolean;
1508
+ pathPrefix: string;
1318
1509
  allowedRoles?: string[] | undefined;
1319
- enableSubscriptions?: boolean | undefined;
1320
- includeAuth?: boolean | undefined;
1321
- title?: string | undefined;
1322
- includeUploadComponents?: boolean | undefined;
1323
- }>, z.ZodObject<{
1324
- type: z.ZodLiteral<"admin">;
1325
- allowedRoles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1326
- sections: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodObject<{
1327
- id: z.ZodDefault<z.ZodString>;
1328
- name: z.ZodString;
1329
- featureRef: z.ZodEffects<z.ZodString, string, string>;
1330
- icon: z.ZodOptional<z.ZodString>;
1331
- type: z.ZodString;
1332
- }, "strip", z.ZodTypeAny, {
1510
+ sections?: ({
1333
1511
  type: string;
1334
1512
  name: string;
1335
1513
  id: string;
1336
1514
  featureRef: string;
1337
1515
  icon?: string | undefined;
1338
- }, {
1339
- type: string;
1340
- name: string;
1341
- featureRef: string;
1342
- icon?: string | undefined;
1343
- id?: string | undefined;
1344
- }>, z.ZodObject<{
1345
- type: z.ZodLiteral<"crud">;
1346
- modelRef: z.ZodEffects<z.ZodString, string, string>;
1347
- disableCreate: z.ZodOptional<z.ZodBoolean>;
1348
- table: z.ZodObject<{
1349
- columns: z.ZodArray<z.ZodObject<{
1350
- label: z.ZodString;
1351
- display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1352
- type: z.ZodLiteral<"text">;
1353
- modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
1354
- }, "strip", z.ZodTypeAny, {
1355
- type: "text";
1356
- modelFieldRef: string;
1357
- }, {
1358
- type: "text";
1359
- modelFieldRef: string;
1360
- }>, z.ZodObject<{
1361
- type: z.ZodLiteral<"foreign">;
1362
- localRelationRef: z.ZodEffects<z.ZodString, string, string>;
1363
- labelExpression: z.ZodString;
1364
- valueExpression: z.ZodString;
1365
- }, "strip", z.ZodTypeAny, {
1366
- type: "foreign";
1367
- localRelationRef: string;
1368
- labelExpression: string;
1369
- valueExpression: string;
1370
- }, {
1371
- type: "foreign";
1372
- localRelationRef: string;
1373
- labelExpression: string;
1374
- valueExpression: string;
1375
- }>]>;
1376
- }, "strip", z.ZodTypeAny, {
1377
- label: string;
1378
- display: {
1379
- type: "foreign";
1380
- localRelationRef: string;
1381
- labelExpression: string;
1382
- valueExpression: string;
1383
- } | {
1384
- type: "text";
1385
- modelFieldRef: string;
1386
- };
1387
- }, {
1516
+ } & {
1517
+ type: "crud";
1518
+ modelRef: string;
1519
+ form: {
1520
+ fields: {
1521
+ type: string;
1388
1522
  label: string;
1389
- display: {
1390
- type: "foreign";
1391
- localRelationRef: string;
1392
- labelExpression: string;
1393
- valueExpression: string;
1394
- } | {
1395
- type: "text";
1396
- modelFieldRef: string;
1397
- };
1398
- }>, "many">;
1399
- }, "strip", z.ZodTypeAny, {
1523
+ }[];
1524
+ };
1525
+ table: {
1400
1526
  columns: {
1401
1527
  label: string;
1402
1528
  display: {
@@ -1409,7 +1535,90 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
1409
1535
  modelFieldRef: string;
1410
1536
  };
1411
1537
  }[];
1412
- }, {
1538
+ };
1539
+ disableCreate?: boolean | undefined;
1540
+ embeddedForms?: ({
1541
+ type: "object";
1542
+ name: string;
1543
+ id: string;
1544
+ modelRef: string;
1545
+ form: {
1546
+ fields: {
1547
+ type: string;
1548
+ label: string;
1549
+ }[];
1550
+ };
1551
+ includeIdField?: boolean | undefined;
1552
+ } | {
1553
+ type: "list";
1554
+ name: string;
1555
+ id: string;
1556
+ modelRef: string;
1557
+ form: {
1558
+ fields: {
1559
+ type: string;
1560
+ label: string;
1561
+ }[];
1562
+ };
1563
+ table: {
1564
+ columns: {
1565
+ label: string;
1566
+ display: {
1567
+ type: "foreign";
1568
+ localRelationRef: string;
1569
+ labelExpression: string;
1570
+ valueExpression: string;
1571
+ } | {
1572
+ type: "text";
1573
+ modelFieldRef: string;
1574
+ };
1575
+ }[];
1576
+ };
1577
+ includeIdField?: boolean | undefined;
1578
+ })[] | undefined;
1579
+ })[] | undefined;
1580
+ } | undefined;
1581
+ }, {
1582
+ type: "backend";
1583
+ name: string;
1584
+ id?: string | undefined;
1585
+ packageLocation?: string | undefined;
1586
+ enableStripe?: boolean | undefined;
1587
+ enableRedis?: boolean | undefined;
1588
+ enableBullQueue?: boolean | undefined;
1589
+ enablePostmark?: boolean | undefined;
1590
+ enableSubscriptions?: boolean | undefined;
1591
+ enableAxios?: boolean | undefined;
1592
+ } | {
1593
+ type: "web";
1594
+ name: string;
1595
+ description?: string | undefined;
1596
+ id?: string | undefined;
1597
+ packageLocation?: string | undefined;
1598
+ enableSubscriptions?: boolean | undefined;
1599
+ includeAuth?: boolean | undefined;
1600
+ title?: string | undefined;
1601
+ includeUploadComponents?: boolean | undefined;
1602
+ adminApp?: {
1603
+ enabled: boolean;
1604
+ pathPrefix?: string | undefined;
1605
+ allowedRoles?: string[] | undefined;
1606
+ sections?: ({
1607
+ type: string;
1608
+ name: string;
1609
+ featureRef: string;
1610
+ icon?: string | undefined;
1611
+ id?: string | undefined;
1612
+ } & {
1613
+ type: "crud";
1614
+ modelRef: string;
1615
+ form: {
1616
+ fields: z.objectInputType<{
1617
+ type: z.ZodString;
1618
+ label: z.ZodString;
1619
+ }, z.ZodTypeAny, "passthrough">[];
1620
+ };
1621
+ table: {
1413
1622
  columns: {
1414
1623
  label: string;
1415
1624
  display: {
@@ -1422,99 +1631,119 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
1422
1631
  modelFieldRef: string;
1423
1632
  };
1424
1633
  }[];
1425
- }>;
1426
- form: z.ZodObject<{
1427
- fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
1428
- type: z.ZodString;
1429
- label: z.ZodString;
1430
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1431
- type: z.ZodString;
1432
- label: z.ZodString;
1433
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1434
- type: z.ZodString;
1435
- label: z.ZodString;
1436
- }, z.ZodTypeAny, "passthrough">>, {
1437
- type: string;
1438
- label: string;
1439
- }, z.objectInputType<{
1440
- type: z.ZodString;
1441
- label: z.ZodString;
1442
- }, z.ZodTypeAny, "passthrough">>, "many">;
1443
- }, "strip", z.ZodTypeAny, {
1444
- fields: {
1445
- type: string;
1446
- label: string;
1447
- }[];
1448
- }, {
1449
- fields: z.objectInputType<{
1450
- type: z.ZodString;
1451
- label: z.ZodString;
1452
- }, z.ZodTypeAny, "passthrough">[];
1453
- }>;
1454
- embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1455
- id: z.ZodString;
1456
- name: z.ZodString;
1457
- modelRef: z.ZodEffects<z.ZodString, string, string>;
1458
- includeIdField: z.ZodOptional<z.ZodBoolean>;
1459
- type: z.ZodLiteral<"object">;
1460
- form: z.ZodObject<{
1461
- fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
1462
- type: z.ZodString;
1463
- label: z.ZodString;
1464
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1465
- type: z.ZodString;
1466
- label: z.ZodString;
1467
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1468
- type: z.ZodString;
1469
- label: z.ZodString;
1470
- }, z.ZodTypeAny, "passthrough">>, {
1471
- type: string;
1472
- label: string;
1473
- }, z.objectInputType<{
1634
+ };
1635
+ disableCreate?: boolean | undefined;
1636
+ embeddedForms?: ({
1637
+ type: "object";
1638
+ name: string;
1639
+ id: string;
1640
+ modelRef: string;
1641
+ form: {
1642
+ fields: z.objectInputType<{
1474
1643
  type: z.ZodString;
1475
1644
  label: z.ZodString;
1476
- }, z.ZodTypeAny, "passthrough">>, "many">;
1477
- }, "strip", z.ZodTypeAny, {
1478
- fields: {
1479
- type: string;
1480
- label: string;
1481
- }[];
1482
- }, {
1645
+ }, z.ZodTypeAny, "passthrough">[];
1646
+ };
1647
+ includeIdField?: boolean | undefined;
1648
+ } | {
1649
+ type: "list";
1650
+ name: string;
1651
+ id: string;
1652
+ modelRef: string;
1653
+ form: {
1483
1654
  fields: z.objectInputType<{
1484
1655
  type: z.ZodString;
1485
1656
  label: z.ZodString;
1486
1657
  }, z.ZodTypeAny, "passthrough">[];
1487
- }>;
1658
+ };
1659
+ table: {
1660
+ columns: {
1661
+ label: string;
1662
+ display: {
1663
+ type: "foreign";
1664
+ localRelationRef: string;
1665
+ labelExpression: string;
1666
+ valueExpression: string;
1667
+ } | {
1668
+ type: "text";
1669
+ modelFieldRef: string;
1670
+ };
1671
+ }[];
1672
+ };
1673
+ includeIdField?: boolean | undefined;
1674
+ })[] | undefined;
1675
+ })[] | undefined;
1676
+ } | undefined;
1677
+ }>;
1678
+ export type AppConfig = def.InferOutput<typeof createAppSchema>;
1679
+ export declare const createProjectDefinitionSchema: (context: import("./creator/types.js").DefinitionSchemaParserContext) => z.ZodObject<{
1680
+ cliVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1681
+ apps: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1682
+ type: z.ZodLiteral<"backend">;
1683
+ enableStripe: z.ZodOptional<z.ZodBoolean>;
1684
+ enableRedis: z.ZodOptional<z.ZodBoolean>;
1685
+ enableBullQueue: z.ZodOptional<z.ZodBoolean>;
1686
+ enablePostmark: z.ZodOptional<z.ZodBoolean>;
1687
+ enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
1688
+ enableAxios: z.ZodOptional<z.ZodBoolean>;
1689
+ id: z.ZodDefault<z.ZodString>;
1690
+ name: z.ZodString;
1691
+ packageLocation: z.ZodOptional<z.ZodString>;
1692
+ }, "strip", z.ZodTypeAny, {
1693
+ type: "backend";
1694
+ name: string;
1695
+ id: string;
1696
+ packageLocation?: string | undefined;
1697
+ enableStripe?: boolean | undefined;
1698
+ enableRedis?: boolean | undefined;
1699
+ enableBullQueue?: boolean | undefined;
1700
+ enablePostmark?: boolean | undefined;
1701
+ enableSubscriptions?: boolean | undefined;
1702
+ enableAxios?: boolean | undefined;
1703
+ }, {
1704
+ type: "backend";
1705
+ name: string;
1706
+ id?: string | undefined;
1707
+ packageLocation?: string | undefined;
1708
+ enableStripe?: boolean | undefined;
1709
+ enableRedis?: boolean | undefined;
1710
+ enableBullQueue?: boolean | undefined;
1711
+ enablePostmark?: boolean | undefined;
1712
+ enableSubscriptions?: boolean | undefined;
1713
+ enableAxios?: boolean | undefined;
1714
+ }>, z.ZodObject<{
1715
+ type: z.ZodLiteral<"web">;
1716
+ includeAuth: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
1717
+ title: z.ZodDefault<z.ZodString>;
1718
+ description: z.ZodDefault<z.ZodString>;
1719
+ includeUploadComponents: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
1720
+ enableSubscriptions: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
1721
+ adminApp: z.ZodEffects<z.ZodOptional<z.ZodObject<{
1722
+ enabled: z.ZodBoolean;
1723
+ pathPrefix: z.ZodDefault<z.ZodString>;
1724
+ allowedRoles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
1725
+ sections: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodObject<{
1726
+ id: z.ZodDefault<z.ZodString>;
1727
+ name: z.ZodString;
1728
+ featureRef: z.ZodEffects<z.ZodString, string, string>;
1729
+ icon: z.ZodOptional<z.ZodString>;
1730
+ type: z.ZodString;
1488
1731
  }, "strip", z.ZodTypeAny, {
1489
- type: "object";
1732
+ type: string;
1490
1733
  name: string;
1491
1734
  id: string;
1492
- modelRef: string;
1493
- form: {
1494
- fields: {
1495
- type: string;
1496
- label: string;
1497
- }[];
1498
- };
1499
- includeIdField?: boolean | undefined;
1735
+ featureRef: string;
1736
+ icon?: string | undefined;
1500
1737
  }, {
1501
- type: "object";
1738
+ type: string;
1502
1739
  name: string;
1503
- id: string;
1504
- modelRef: string;
1505
- form: {
1506
- fields: z.objectInputType<{
1507
- type: z.ZodString;
1508
- label: z.ZodString;
1509
- }, z.ZodTypeAny, "passthrough">[];
1510
- };
1511
- includeIdField?: boolean | undefined;
1740
+ featureRef: string;
1741
+ icon?: string | undefined;
1742
+ id?: string | undefined;
1512
1743
  }>, z.ZodObject<{
1513
- id: z.ZodString;
1514
- name: z.ZodString;
1744
+ type: z.ZodLiteral<"crud">;
1515
1745
  modelRef: z.ZodEffects<z.ZodString, string, string>;
1516
- includeIdField: z.ZodOptional<z.ZodBoolean>;
1517
- type: z.ZodLiteral<"list">;
1746
+ disableCreate: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
1518
1747
  table: z.ZodObject<{
1519
1748
  columns: z.ZodArray<z.ZodObject<{
1520
1749
  label: z.ZodString;
@@ -1621,74 +1850,307 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
1621
1850
  label: z.ZodString;
1622
1851
  }, z.ZodTypeAny, "passthrough">[];
1623
1852
  }>;
1853
+ embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1854
+ id: z.ZodString;
1855
+ name: z.ZodString;
1856
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
1857
+ includeIdField: z.ZodOptional<z.ZodBoolean>;
1858
+ type: z.ZodLiteral<"object">;
1859
+ form: z.ZodObject<{
1860
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
1861
+ type: z.ZodString;
1862
+ label: z.ZodString;
1863
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1864
+ type: z.ZodString;
1865
+ label: z.ZodString;
1866
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1867
+ type: z.ZodString;
1868
+ label: z.ZodString;
1869
+ }, z.ZodTypeAny, "passthrough">>, {
1870
+ type: string;
1871
+ label: string;
1872
+ }, z.objectInputType<{
1873
+ type: z.ZodString;
1874
+ label: z.ZodString;
1875
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1876
+ }, "strip", z.ZodTypeAny, {
1877
+ fields: {
1878
+ type: string;
1879
+ label: string;
1880
+ }[];
1881
+ }, {
1882
+ fields: z.objectInputType<{
1883
+ type: z.ZodString;
1884
+ label: z.ZodString;
1885
+ }, z.ZodTypeAny, "passthrough">[];
1886
+ }>;
1887
+ }, "strip", z.ZodTypeAny, {
1888
+ type: "object";
1889
+ name: string;
1890
+ id: string;
1891
+ modelRef: string;
1892
+ form: {
1893
+ fields: {
1894
+ type: string;
1895
+ label: string;
1896
+ }[];
1897
+ };
1898
+ includeIdField?: boolean | undefined;
1899
+ }, {
1900
+ type: "object";
1901
+ name: string;
1902
+ id: string;
1903
+ modelRef: string;
1904
+ form: {
1905
+ fields: z.objectInputType<{
1906
+ type: z.ZodString;
1907
+ label: z.ZodString;
1908
+ }, z.ZodTypeAny, "passthrough">[];
1909
+ };
1910
+ includeIdField?: boolean | undefined;
1911
+ }>, z.ZodObject<{
1912
+ id: z.ZodString;
1913
+ name: z.ZodString;
1914
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
1915
+ includeIdField: z.ZodOptional<z.ZodBoolean>;
1916
+ type: z.ZodLiteral<"list">;
1917
+ table: z.ZodObject<{
1918
+ columns: z.ZodArray<z.ZodObject<{
1919
+ label: z.ZodString;
1920
+ display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1921
+ type: z.ZodLiteral<"text">;
1922
+ modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
1923
+ }, "strip", z.ZodTypeAny, {
1924
+ type: "text";
1925
+ modelFieldRef: string;
1926
+ }, {
1927
+ type: "text";
1928
+ modelFieldRef: string;
1929
+ }>, z.ZodObject<{
1930
+ type: z.ZodLiteral<"foreign">;
1931
+ localRelationRef: z.ZodEffects<z.ZodString, string, string>;
1932
+ labelExpression: z.ZodString;
1933
+ valueExpression: z.ZodString;
1934
+ }, "strip", z.ZodTypeAny, {
1935
+ type: "foreign";
1936
+ localRelationRef: string;
1937
+ labelExpression: string;
1938
+ valueExpression: string;
1939
+ }, {
1940
+ type: "foreign";
1941
+ localRelationRef: string;
1942
+ labelExpression: string;
1943
+ valueExpression: string;
1944
+ }>]>;
1945
+ }, "strip", z.ZodTypeAny, {
1946
+ label: string;
1947
+ display: {
1948
+ type: "foreign";
1949
+ localRelationRef: string;
1950
+ labelExpression: string;
1951
+ valueExpression: string;
1952
+ } | {
1953
+ type: "text";
1954
+ modelFieldRef: string;
1955
+ };
1956
+ }, {
1957
+ label: string;
1958
+ display: {
1959
+ type: "foreign";
1960
+ localRelationRef: string;
1961
+ labelExpression: string;
1962
+ valueExpression: string;
1963
+ } | {
1964
+ type: "text";
1965
+ modelFieldRef: string;
1966
+ };
1967
+ }>, "many">;
1968
+ }, "strip", z.ZodTypeAny, {
1969
+ columns: {
1970
+ label: string;
1971
+ display: {
1972
+ type: "foreign";
1973
+ localRelationRef: string;
1974
+ labelExpression: string;
1975
+ valueExpression: string;
1976
+ } | {
1977
+ type: "text";
1978
+ modelFieldRef: string;
1979
+ };
1980
+ }[];
1981
+ }, {
1982
+ columns: {
1983
+ label: string;
1984
+ display: {
1985
+ type: "foreign";
1986
+ localRelationRef: string;
1987
+ labelExpression: string;
1988
+ valueExpression: string;
1989
+ } | {
1990
+ type: "text";
1991
+ modelFieldRef: string;
1992
+ };
1993
+ }[];
1994
+ }>;
1995
+ form: z.ZodObject<{
1996
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
1997
+ type: z.ZodString;
1998
+ label: z.ZodString;
1999
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2000
+ type: z.ZodString;
2001
+ label: z.ZodString;
2002
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2003
+ type: z.ZodString;
2004
+ label: z.ZodString;
2005
+ }, z.ZodTypeAny, "passthrough">>, {
2006
+ type: string;
2007
+ label: string;
2008
+ }, z.objectInputType<{
2009
+ type: z.ZodString;
2010
+ label: z.ZodString;
2011
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2012
+ }, "strip", z.ZodTypeAny, {
2013
+ fields: {
2014
+ type: string;
2015
+ label: string;
2016
+ }[];
2017
+ }, {
2018
+ fields: z.objectInputType<{
2019
+ type: z.ZodString;
2020
+ label: z.ZodString;
2021
+ }, z.ZodTypeAny, "passthrough">[];
2022
+ }>;
2023
+ }, "strip", z.ZodTypeAny, {
2024
+ type: "list";
2025
+ name: string;
2026
+ id: string;
2027
+ modelRef: string;
2028
+ form: {
2029
+ fields: {
2030
+ type: string;
2031
+ label: string;
2032
+ }[];
2033
+ };
2034
+ table: {
2035
+ columns: {
2036
+ label: string;
2037
+ display: {
2038
+ type: "foreign";
2039
+ localRelationRef: string;
2040
+ labelExpression: string;
2041
+ valueExpression: string;
2042
+ } | {
2043
+ type: "text";
2044
+ modelFieldRef: string;
2045
+ };
2046
+ }[];
2047
+ };
2048
+ includeIdField?: boolean | undefined;
2049
+ }, {
2050
+ type: "list";
2051
+ name: string;
2052
+ id: string;
2053
+ modelRef: string;
2054
+ form: {
2055
+ fields: z.objectInputType<{
2056
+ type: z.ZodString;
2057
+ label: z.ZodString;
2058
+ }, z.ZodTypeAny, "passthrough">[];
2059
+ };
2060
+ table: {
2061
+ columns: {
2062
+ label: string;
2063
+ display: {
2064
+ type: "foreign";
2065
+ localRelationRef: string;
2066
+ labelExpression: string;
2067
+ valueExpression: string;
2068
+ } | {
2069
+ type: "text";
2070
+ modelFieldRef: string;
2071
+ };
2072
+ }[];
2073
+ };
2074
+ includeIdField?: boolean | undefined;
2075
+ }>]>, {
2076
+ type: "object";
2077
+ name: string;
2078
+ id: string;
2079
+ modelRef: string;
2080
+ form: {
2081
+ fields: {
2082
+ type: string;
2083
+ label: string;
2084
+ }[];
2085
+ };
2086
+ includeIdField?: boolean | undefined;
2087
+ } | {
2088
+ type: "list";
2089
+ name: string;
2090
+ id: string;
2091
+ modelRef: string;
2092
+ form: {
2093
+ fields: {
2094
+ type: string;
2095
+ label: string;
2096
+ }[];
2097
+ };
2098
+ table: {
2099
+ columns: {
2100
+ label: string;
2101
+ display: {
2102
+ type: "foreign";
2103
+ localRelationRef: string;
2104
+ labelExpression: string;
2105
+ valueExpression: string;
2106
+ } | {
2107
+ type: "text";
2108
+ modelFieldRef: string;
2109
+ };
2110
+ }[];
2111
+ };
2112
+ includeIdField?: boolean | undefined;
2113
+ }, {
2114
+ type: "object";
2115
+ name: string;
2116
+ id: string;
2117
+ modelRef: string;
2118
+ form: {
2119
+ fields: z.objectInputType<{
2120
+ type: z.ZodString;
2121
+ label: z.ZodString;
2122
+ }, z.ZodTypeAny, "passthrough">[];
2123
+ };
2124
+ includeIdField?: boolean | undefined;
2125
+ } | {
2126
+ type: "list";
2127
+ name: string;
2128
+ id: string;
2129
+ modelRef: string;
2130
+ form: {
2131
+ fields: z.objectInputType<{
2132
+ type: z.ZodString;
2133
+ label: z.ZodString;
2134
+ }, z.ZodTypeAny, "passthrough">[];
2135
+ };
2136
+ table: {
2137
+ columns: {
2138
+ label: string;
2139
+ display: {
2140
+ type: "foreign";
2141
+ localRelationRef: string;
2142
+ labelExpression: string;
2143
+ valueExpression: string;
2144
+ } | {
2145
+ type: "text";
2146
+ modelFieldRef: string;
2147
+ };
2148
+ }[];
2149
+ };
2150
+ includeIdField?: boolean | undefined;
2151
+ }>, "many">>;
1624
2152
  }, "strip", z.ZodTypeAny, {
1625
- type: "list";
1626
- name: string;
1627
- id: string;
1628
- modelRef: string;
1629
- form: {
1630
- fields: {
1631
- type: string;
1632
- label: string;
1633
- }[];
1634
- };
1635
- table: {
1636
- columns: {
1637
- label: string;
1638
- display: {
1639
- type: "foreign";
1640
- localRelationRef: string;
1641
- labelExpression: string;
1642
- valueExpression: string;
1643
- } | {
1644
- type: "text";
1645
- modelFieldRef: string;
1646
- };
1647
- }[];
1648
- };
1649
- includeIdField?: boolean | undefined;
1650
- }, {
1651
- type: "list";
1652
- name: string;
1653
- id: string;
1654
- modelRef: string;
1655
- form: {
1656
- fields: z.objectInputType<{
1657
- type: z.ZodString;
1658
- label: z.ZodString;
1659
- }, z.ZodTypeAny, "passthrough">[];
1660
- };
1661
- table: {
1662
- columns: {
1663
- label: string;
1664
- display: {
1665
- type: "foreign";
1666
- localRelationRef: string;
1667
- labelExpression: string;
1668
- valueExpression: string;
1669
- } | {
1670
- type: "text";
1671
- modelFieldRef: string;
1672
- };
1673
- }[];
1674
- };
1675
- includeIdField?: boolean | undefined;
1676
- }>]>, {
1677
- type: "object";
1678
- name: string;
1679
- id: string;
1680
- modelRef: string;
1681
- form: {
1682
- fields: {
1683
- type: string;
1684
- label: string;
1685
- }[];
1686
- };
1687
- includeIdField?: boolean | undefined;
1688
- } | {
1689
- type: "list";
1690
- name: string;
1691
- id: string;
2153
+ type: "crud";
1692
2154
  modelRef: string;
1693
2155
  form: {
1694
2156
  fields: {
@@ -1710,23 +2172,48 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
1710
2172
  };
1711
2173
  }[];
1712
2174
  };
1713
- includeIdField?: boolean | undefined;
2175
+ disableCreate?: boolean | undefined;
2176
+ embeddedForms?: ({
2177
+ type: "object";
2178
+ name: string;
2179
+ id: string;
2180
+ modelRef: string;
2181
+ form: {
2182
+ fields: {
2183
+ type: string;
2184
+ label: string;
2185
+ }[];
2186
+ };
2187
+ includeIdField?: boolean | undefined;
2188
+ } | {
2189
+ type: "list";
2190
+ name: string;
2191
+ id: string;
2192
+ modelRef: string;
2193
+ form: {
2194
+ fields: {
2195
+ type: string;
2196
+ label: string;
2197
+ }[];
2198
+ };
2199
+ table: {
2200
+ columns: {
2201
+ label: string;
2202
+ display: {
2203
+ type: "foreign";
2204
+ localRelationRef: string;
2205
+ labelExpression: string;
2206
+ valueExpression: string;
2207
+ } | {
2208
+ type: "text";
2209
+ modelFieldRef: string;
2210
+ };
2211
+ }[];
2212
+ };
2213
+ includeIdField?: boolean | undefined;
2214
+ })[] | undefined;
1714
2215
  }, {
1715
- type: "object";
1716
- name: string;
1717
- id: string;
1718
- modelRef: string;
1719
- form: {
1720
- fields: z.objectInputType<{
1721
- type: z.ZodString;
1722
- label: z.ZodString;
1723
- }, z.ZodTypeAny, "passthrough">[];
1724
- };
1725
- includeIdField?: boolean | undefined;
1726
- } | {
1727
- type: "list";
1728
- name: string;
1729
- id: string;
2216
+ type: "crud";
1730
2217
  modelRef: string;
1731
2218
  form: {
1732
2219
  fields: z.objectInputType<{
@@ -1748,48 +2235,54 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
1748
2235
  };
1749
2236
  }[];
1750
2237
  };
1751
- includeIdField?: boolean | undefined;
1752
- }>, "many">>;
1753
- }, "strip", z.ZodTypeAny, {
1754
- type: "crud";
1755
- modelRef: string;
1756
- form: {
1757
- fields: {
1758
- type: string;
1759
- label: string;
1760
- }[];
1761
- };
1762
- table: {
1763
- columns: {
1764
- label: string;
1765
- display: {
1766
- type: "foreign";
1767
- localRelationRef: string;
1768
- labelExpression: string;
1769
- valueExpression: string;
1770
- } | {
1771
- type: "text";
1772
- modelFieldRef: string;
2238
+ disableCreate?: boolean | undefined;
2239
+ embeddedForms?: ({
2240
+ type: "object";
2241
+ name: string;
2242
+ id: string;
2243
+ modelRef: string;
2244
+ form: {
2245
+ fields: z.objectInputType<{
2246
+ type: z.ZodString;
2247
+ label: z.ZodString;
2248
+ }, z.ZodTypeAny, "passthrough">[];
1773
2249
  };
1774
- }[];
1775
- };
1776
- disableCreate?: boolean | undefined;
1777
- embeddedForms?: ({
1778
- type: "object";
1779
- name: string;
1780
- id: string;
1781
- modelRef: string;
1782
- form: {
1783
- fields: {
1784
- type: string;
1785
- label: string;
1786
- }[];
1787
- };
1788
- includeIdField?: boolean | undefined;
1789
- } | {
1790
- type: "list";
2250
+ includeIdField?: boolean | undefined;
2251
+ } | {
2252
+ type: "list";
2253
+ name: string;
2254
+ id: string;
2255
+ modelRef: string;
2256
+ form: {
2257
+ fields: z.objectInputType<{
2258
+ type: z.ZodString;
2259
+ label: z.ZodString;
2260
+ }, z.ZodTypeAny, "passthrough">[];
2261
+ };
2262
+ table: {
2263
+ columns: {
2264
+ label: string;
2265
+ display: {
2266
+ type: "foreign";
2267
+ localRelationRef: string;
2268
+ labelExpression: string;
2269
+ valueExpression: string;
2270
+ } | {
2271
+ type: "text";
2272
+ modelFieldRef: string;
2273
+ };
2274
+ }[];
2275
+ };
2276
+ includeIdField?: boolean | undefined;
2277
+ })[] | undefined;
2278
+ }>>, {
2279
+ type: string;
1791
2280
  name: string;
1792
2281
  id: string;
2282
+ featureRef: string;
2283
+ icon?: string | undefined;
2284
+ } & {
2285
+ type: "crud";
1793
2286
  modelRef: string;
1794
2287
  form: {
1795
2288
  fields: {
@@ -1811,48 +2304,54 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
1811
2304
  };
1812
2305
  }[];
1813
2306
  };
1814
- includeIdField?: boolean | undefined;
1815
- })[] | undefined;
1816
- }, {
1817
- type: "crud";
1818
- modelRef: string;
1819
- form: {
1820
- fields: z.objectInputType<{
1821
- type: z.ZodString;
1822
- label: z.ZodString;
1823
- }, z.ZodTypeAny, "passthrough">[];
1824
- };
1825
- table: {
1826
- columns: {
1827
- label: string;
1828
- display: {
1829
- type: "foreign";
1830
- localRelationRef: string;
1831
- labelExpression: string;
1832
- valueExpression: string;
1833
- } | {
1834
- type: "text";
1835
- modelFieldRef: string;
2307
+ disableCreate?: boolean | undefined;
2308
+ embeddedForms?: ({
2309
+ type: "object";
2310
+ name: string;
2311
+ id: string;
2312
+ modelRef: string;
2313
+ form: {
2314
+ fields: {
2315
+ type: string;
2316
+ label: string;
2317
+ }[];
1836
2318
  };
1837
- }[];
1838
- };
1839
- disableCreate?: boolean | undefined;
1840
- embeddedForms?: ({
1841
- type: "object";
1842
- name: string;
1843
- id: string;
1844
- modelRef: string;
1845
- form: {
1846
- fields: z.objectInputType<{
1847
- type: z.ZodString;
1848
- label: z.ZodString;
1849
- }, z.ZodTypeAny, "passthrough">[];
1850
- };
1851
- includeIdField?: boolean | undefined;
1852
- } | {
1853
- type: "list";
2319
+ includeIdField?: boolean | undefined;
2320
+ } | {
2321
+ type: "list";
2322
+ name: string;
2323
+ id: string;
2324
+ modelRef: string;
2325
+ form: {
2326
+ fields: {
2327
+ type: string;
2328
+ label: string;
2329
+ }[];
2330
+ };
2331
+ table: {
2332
+ columns: {
2333
+ label: string;
2334
+ display: {
2335
+ type: "foreign";
2336
+ localRelationRef: string;
2337
+ labelExpression: string;
2338
+ valueExpression: string;
2339
+ } | {
2340
+ type: "text";
2341
+ modelFieldRef: string;
2342
+ };
2343
+ }[];
2344
+ };
2345
+ includeIdField?: boolean | undefined;
2346
+ })[] | undefined;
2347
+ }, {
2348
+ type: string;
1854
2349
  name: string;
1855
- id: string;
2350
+ featureRef: string;
2351
+ icon?: string | undefined;
2352
+ id?: string | undefined;
2353
+ } & {
2354
+ type: "crud";
1856
2355
  modelRef: string;
1857
2356
  form: {
1858
2357
  fields: z.objectInputType<{
@@ -1874,54 +2373,54 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
1874
2373
  };
1875
2374
  }[];
1876
2375
  };
1877
- includeIdField?: boolean | undefined;
1878
- })[] | undefined;
1879
- }>>, {
1880
- type: string;
1881
- name: string;
1882
- id: string;
1883
- featureRef: string;
1884
- icon?: string | undefined;
1885
- } & {
1886
- type: "crud";
1887
- modelRef: string;
1888
- form: {
1889
- fields: {
1890
- type: string;
1891
- label: string;
1892
- }[];
1893
- };
1894
- table: {
1895
- columns: {
1896
- label: string;
1897
- display: {
1898
- type: "foreign";
1899
- localRelationRef: string;
1900
- labelExpression: string;
1901
- valueExpression: string;
1902
- } | {
1903
- type: "text";
1904
- modelFieldRef: string;
2376
+ disableCreate?: boolean | undefined;
2377
+ embeddedForms?: ({
2378
+ type: "object";
2379
+ name: string;
2380
+ id: string;
2381
+ modelRef: string;
2382
+ form: {
2383
+ fields: z.objectInputType<{
2384
+ type: z.ZodString;
2385
+ label: z.ZodString;
2386
+ }, z.ZodTypeAny, "passthrough">[];
1905
2387
  };
1906
- }[];
1907
- };
1908
- disableCreate?: boolean | undefined;
1909
- embeddedForms?: ({
1910
- type: "object";
1911
- name: string;
1912
- id: string;
1913
- modelRef: string;
1914
- form: {
1915
- fields: {
1916
- type: string;
1917
- label: string;
1918
- }[];
1919
- };
1920
- includeIdField?: boolean | undefined;
1921
- } | {
1922
- type: "list";
2388
+ includeIdField?: boolean | undefined;
2389
+ } | {
2390
+ type: "list";
2391
+ name: string;
2392
+ id: string;
2393
+ modelRef: string;
2394
+ form: {
2395
+ fields: z.objectInputType<{
2396
+ type: z.ZodString;
2397
+ label: z.ZodString;
2398
+ }, z.ZodTypeAny, "passthrough">[];
2399
+ };
2400
+ table: {
2401
+ columns: {
2402
+ label: string;
2403
+ display: {
2404
+ type: "foreign";
2405
+ localRelationRef: string;
2406
+ labelExpression: string;
2407
+ valueExpression: string;
2408
+ } | {
2409
+ type: "text";
2410
+ modelFieldRef: string;
2411
+ };
2412
+ }[];
2413
+ };
2414
+ includeIdField?: boolean | undefined;
2415
+ })[] | undefined;
2416
+ }>, {
2417
+ type: string;
1923
2418
  name: string;
1924
2419
  id: string;
2420
+ featureRef: string;
2421
+ icon?: string | undefined;
2422
+ } & {
2423
+ type: "crud";
1925
2424
  modelRef: string;
1926
2425
  form: {
1927
2426
  fields: {
@@ -1943,54 +2442,54 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
1943
2442
  };
1944
2443
  }[];
1945
2444
  };
1946
- includeIdField?: boolean | undefined;
1947
- })[] | undefined;
1948
- }, {
1949
- type: string;
1950
- name: string;
1951
- featureRef: string;
1952
- icon?: string | undefined;
1953
- id?: string | undefined;
1954
- } & {
1955
- type: "crud";
1956
- modelRef: string;
1957
- form: {
1958
- fields: z.objectInputType<{
1959
- type: z.ZodString;
1960
- label: z.ZodString;
1961
- }, z.ZodTypeAny, "passthrough">[];
1962
- };
1963
- table: {
1964
- columns: {
1965
- label: string;
1966
- display: {
1967
- type: "foreign";
1968
- localRelationRef: string;
1969
- labelExpression: string;
1970
- valueExpression: string;
1971
- } | {
1972
- type: "text";
1973
- modelFieldRef: string;
2445
+ disableCreate?: boolean | undefined;
2446
+ embeddedForms?: ({
2447
+ type: "object";
2448
+ name: string;
2449
+ id: string;
2450
+ modelRef: string;
2451
+ form: {
2452
+ fields: {
2453
+ type: string;
2454
+ label: string;
2455
+ }[];
1974
2456
  };
1975
- }[];
1976
- };
1977
- disableCreate?: boolean | undefined;
1978
- embeddedForms?: ({
1979
- type: "object";
1980
- name: string;
1981
- id: string;
1982
- modelRef: string;
1983
- form: {
1984
- fields: z.objectInputType<{
1985
- type: z.ZodString;
1986
- label: z.ZodString;
1987
- }, z.ZodTypeAny, "passthrough">[];
1988
- };
1989
- includeIdField?: boolean | undefined;
1990
- } | {
1991
- type: "list";
2457
+ includeIdField?: boolean | undefined;
2458
+ } | {
2459
+ type: "list";
2460
+ name: string;
2461
+ id: string;
2462
+ modelRef: string;
2463
+ form: {
2464
+ fields: {
2465
+ type: string;
2466
+ label: string;
2467
+ }[];
2468
+ };
2469
+ table: {
2470
+ columns: {
2471
+ label: string;
2472
+ display: {
2473
+ type: "foreign";
2474
+ localRelationRef: string;
2475
+ labelExpression: string;
2476
+ valueExpression: string;
2477
+ } | {
2478
+ type: "text";
2479
+ modelFieldRef: string;
2480
+ };
2481
+ }[];
2482
+ };
2483
+ includeIdField?: boolean | undefined;
2484
+ })[] | undefined;
2485
+ }, {
2486
+ type: string;
1992
2487
  name: string;
1993
- id: string;
2488
+ featureRef: string;
2489
+ icon?: string | undefined;
2490
+ id?: string | undefined;
2491
+ } & {
2492
+ type: "crud";
1994
2493
  modelRef: string;
1995
2494
  form: {
1996
2495
  fields: z.objectInputType<{
@@ -2012,54 +2511,54 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2012
2511
  };
2013
2512
  }[];
2014
2513
  };
2015
- includeIdField?: boolean | undefined;
2016
- })[] | undefined;
2017
- }>, {
2018
- type: string;
2019
- name: string;
2020
- id: string;
2021
- featureRef: string;
2022
- icon?: string | undefined;
2023
- } & {
2024
- type: "crud";
2025
- modelRef: string;
2026
- form: {
2027
- fields: {
2028
- type: string;
2029
- label: string;
2030
- }[];
2031
- };
2032
- table: {
2033
- columns: {
2034
- label: string;
2035
- display: {
2036
- type: "foreign";
2037
- localRelationRef: string;
2038
- labelExpression: string;
2039
- valueExpression: string;
2040
- } | {
2041
- type: "text";
2042
- modelFieldRef: string;
2514
+ disableCreate?: boolean | undefined;
2515
+ embeddedForms?: ({
2516
+ type: "object";
2517
+ name: string;
2518
+ id: string;
2519
+ modelRef: string;
2520
+ form: {
2521
+ fields: z.objectInputType<{
2522
+ type: z.ZodString;
2523
+ label: z.ZodString;
2524
+ }, z.ZodTypeAny, "passthrough">[];
2043
2525
  };
2044
- }[];
2045
- };
2046
- disableCreate?: boolean | undefined;
2047
- embeddedForms?: ({
2048
- type: "object";
2049
- name: string;
2050
- id: string;
2051
- modelRef: string;
2052
- form: {
2053
- fields: {
2054
- type: string;
2055
- label: string;
2056
- }[];
2057
- };
2058
- includeIdField?: boolean | undefined;
2059
- } | {
2060
- type: "list";
2526
+ includeIdField?: boolean | undefined;
2527
+ } | {
2528
+ type: "list";
2529
+ name: string;
2530
+ id: string;
2531
+ modelRef: string;
2532
+ form: {
2533
+ fields: z.objectInputType<{
2534
+ type: z.ZodString;
2535
+ label: z.ZodString;
2536
+ }, z.ZodTypeAny, "passthrough">[];
2537
+ };
2538
+ table: {
2539
+ columns: {
2540
+ label: string;
2541
+ display: {
2542
+ type: "foreign";
2543
+ localRelationRef: string;
2544
+ labelExpression: string;
2545
+ valueExpression: string;
2546
+ } | {
2547
+ type: "text";
2548
+ modelFieldRef: string;
2549
+ };
2550
+ }[];
2551
+ };
2552
+ includeIdField?: boolean | undefined;
2553
+ })[] | undefined;
2554
+ }>, "many">>, ({
2555
+ type: string;
2061
2556
  name: string;
2062
2557
  id: string;
2558
+ featureRef: string;
2559
+ icon?: string | undefined;
2560
+ } & {
2561
+ type: "crud";
2063
2562
  modelRef: string;
2064
2563
  form: {
2065
2564
  fields: {
@@ -2081,54 +2580,54 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2081
2580
  };
2082
2581
  }[];
2083
2582
  };
2084
- includeIdField?: boolean | undefined;
2085
- })[] | undefined;
2086
- }, {
2087
- type: string;
2088
- name: string;
2089
- featureRef: string;
2090
- icon?: string | undefined;
2091
- id?: string | undefined;
2092
- } & {
2093
- type: "crud";
2094
- modelRef: string;
2095
- form: {
2096
- fields: z.objectInputType<{
2097
- type: z.ZodString;
2098
- label: z.ZodString;
2099
- }, z.ZodTypeAny, "passthrough">[];
2100
- };
2101
- table: {
2102
- columns: {
2103
- label: string;
2104
- display: {
2105
- type: "foreign";
2106
- localRelationRef: string;
2107
- labelExpression: string;
2108
- valueExpression: string;
2109
- } | {
2110
- type: "text";
2111
- modelFieldRef: string;
2583
+ disableCreate?: boolean | undefined;
2584
+ embeddedForms?: ({
2585
+ type: "object";
2586
+ name: string;
2587
+ id: string;
2588
+ modelRef: string;
2589
+ form: {
2590
+ fields: {
2591
+ type: string;
2592
+ label: string;
2593
+ }[];
2112
2594
  };
2113
- }[];
2114
- };
2115
- disableCreate?: boolean | undefined;
2116
- embeddedForms?: ({
2117
- type: "object";
2118
- name: string;
2119
- id: string;
2120
- modelRef: string;
2121
- form: {
2122
- fields: z.objectInputType<{
2123
- type: z.ZodString;
2124
- label: z.ZodString;
2125
- }, z.ZodTypeAny, "passthrough">[];
2126
- };
2127
- includeIdField?: boolean | undefined;
2128
- } | {
2129
- type: "list";
2595
+ includeIdField?: boolean | undefined;
2596
+ } | {
2597
+ type: "list";
2598
+ name: string;
2599
+ id: string;
2600
+ modelRef: string;
2601
+ form: {
2602
+ fields: {
2603
+ type: string;
2604
+ label: string;
2605
+ }[];
2606
+ };
2607
+ table: {
2608
+ columns: {
2609
+ label: string;
2610
+ display: {
2611
+ type: "foreign";
2612
+ localRelationRef: string;
2613
+ labelExpression: string;
2614
+ valueExpression: string;
2615
+ } | {
2616
+ type: "text";
2617
+ modelFieldRef: string;
2618
+ };
2619
+ }[];
2620
+ };
2621
+ includeIdField?: boolean | undefined;
2622
+ })[] | undefined;
2623
+ })[] | undefined, ({
2624
+ type: string;
2130
2625
  name: string;
2131
- id: string;
2626
+ featureRef: string;
2627
+ icon?: string | undefined;
2628
+ id?: string | undefined;
2629
+ } & {
2630
+ type: "crud";
2132
2631
  modelRef: string;
2133
2632
  form: {
2134
2633
  fields: z.objectInputType<{
@@ -2150,64 +2649,59 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2150
2649
  };
2151
2650
  }[];
2152
2651
  };
2153
- includeIdField?: boolean | undefined;
2154
- })[] | undefined;
2155
- }>, "many">>;
2156
- id: z.ZodDefault<z.ZodString>;
2157
- name: z.ZodString;
2158
- packageLocation: z.ZodOptional<z.ZodString>;
2159
- }, "strip", z.ZodTypeAny, {
2160
- type: "admin";
2161
- name: string;
2162
- id: string;
2163
- packageLocation?: string | undefined;
2164
- allowedRoles?: string[] | undefined;
2165
- sections?: ({
2166
- type: string;
2167
- name: string;
2168
- id: string;
2169
- featureRef: string;
2170
- icon?: string | undefined;
2171
- } & {
2172
- type: "crud";
2173
- modelRef: string;
2174
- form: {
2175
- fields: {
2176
- type: string;
2177
- label: string;
2178
- }[];
2179
- };
2180
- table: {
2181
- columns: {
2182
- label: string;
2183
- display: {
2184
- type: "foreign";
2185
- localRelationRef: string;
2186
- labelExpression: string;
2187
- valueExpression: string;
2188
- } | {
2189
- type: "text";
2190
- modelFieldRef: string;
2191
- };
2192
- }[];
2193
- };
2194
- disableCreate?: boolean | undefined;
2195
- embeddedForms?: ({
2196
- type: "object";
2197
- name: string;
2198
- id: string;
2199
- modelRef: string;
2200
- form: {
2201
- fields: {
2202
- type: string;
2203
- label: string;
2204
- }[];
2205
- };
2206
- includeIdField?: boolean | undefined;
2207
- } | {
2208
- type: "list";
2652
+ disableCreate?: boolean | undefined;
2653
+ embeddedForms?: ({
2654
+ type: "object";
2655
+ name: string;
2656
+ id: string;
2657
+ modelRef: string;
2658
+ form: {
2659
+ fields: z.objectInputType<{
2660
+ type: z.ZodString;
2661
+ label: z.ZodString;
2662
+ }, z.ZodTypeAny, "passthrough">[];
2663
+ };
2664
+ includeIdField?: boolean | undefined;
2665
+ } | {
2666
+ type: "list";
2667
+ name: string;
2668
+ id: string;
2669
+ modelRef: string;
2670
+ form: {
2671
+ fields: z.objectInputType<{
2672
+ type: z.ZodString;
2673
+ label: z.ZodString;
2674
+ }, z.ZodTypeAny, "passthrough">[];
2675
+ };
2676
+ table: {
2677
+ columns: {
2678
+ label: string;
2679
+ display: {
2680
+ type: "foreign";
2681
+ localRelationRef: string;
2682
+ labelExpression: string;
2683
+ valueExpression: string;
2684
+ } | {
2685
+ type: "text";
2686
+ modelFieldRef: string;
2687
+ };
2688
+ }[];
2689
+ };
2690
+ includeIdField?: boolean | undefined;
2691
+ })[] | undefined;
2692
+ })[] | undefined>;
2693
+ }, "strip", z.ZodTypeAny, {
2694
+ enabled: boolean;
2695
+ pathPrefix: string;
2696
+ allowedRoles?: string[] | undefined;
2697
+ sections?: ({
2698
+ type: string;
2209
2699
  name: string;
2210
2700
  id: string;
2701
+ featureRef: string;
2702
+ icon?: string | undefined;
2703
+ } & {
2704
+ type: "crud";
2211
2705
  modelRef: string;
2212
2706
  form: {
2213
2707
  fields: {
@@ -2229,49 +2723,59 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2229
2723
  };
2230
2724
  }[];
2231
2725
  };
2232
- includeIdField?: boolean | undefined;
2233
- })[] | undefined;
2234
- })[] | undefined;
2235
- }, {
2236
- type: "admin";
2237
- name: string;
2238
- id?: string | undefined;
2239
- packageLocation?: string | undefined;
2240
- allowedRoles?: string[] | undefined;
2241
- sections?: ({
2242
- type: string;
2243
- name: string;
2244
- featureRef: string;
2245
- icon?: string | undefined;
2246
- id?: string | undefined;
2247
- } & {
2248
- type: "crud";
2249
- modelRef: string;
2250
- form: {
2251
- fields: z.objectInputType<{
2252
- type: z.ZodString;
2253
- label: z.ZodString;
2254
- }, z.ZodTypeAny, "passthrough">[];
2255
- };
2256
- table: {
2257
- columns: {
2258
- label: string;
2259
- display: {
2260
- type: "foreign";
2261
- localRelationRef: string;
2262
- labelExpression: string;
2263
- valueExpression: string;
2264
- } | {
2265
- type: "text";
2266
- modelFieldRef: string;
2726
+ disableCreate?: boolean | undefined;
2727
+ embeddedForms?: ({
2728
+ type: "object";
2729
+ name: string;
2730
+ id: string;
2731
+ modelRef: string;
2732
+ form: {
2733
+ fields: {
2734
+ type: string;
2735
+ label: string;
2736
+ }[];
2267
2737
  };
2268
- }[];
2269
- };
2270
- disableCreate?: boolean | undefined;
2271
- embeddedForms?: ({
2272
- type: "object";
2738
+ includeIdField?: boolean | undefined;
2739
+ } | {
2740
+ type: "list";
2741
+ name: string;
2742
+ id: string;
2743
+ modelRef: string;
2744
+ form: {
2745
+ fields: {
2746
+ type: string;
2747
+ label: string;
2748
+ }[];
2749
+ };
2750
+ table: {
2751
+ columns: {
2752
+ label: string;
2753
+ display: {
2754
+ type: "foreign";
2755
+ localRelationRef: string;
2756
+ labelExpression: string;
2757
+ valueExpression: string;
2758
+ } | {
2759
+ type: "text";
2760
+ modelFieldRef: string;
2761
+ };
2762
+ }[];
2763
+ };
2764
+ includeIdField?: boolean | undefined;
2765
+ })[] | undefined;
2766
+ })[] | undefined;
2767
+ }, {
2768
+ enabled: boolean;
2769
+ pathPrefix?: string | undefined;
2770
+ allowedRoles?: string[] | undefined;
2771
+ sections?: ({
2772
+ type: string;
2273
2773
  name: string;
2274
- id: string;
2774
+ featureRef: string;
2775
+ icon?: string | undefined;
2776
+ id?: string | undefined;
2777
+ } & {
2778
+ type: "crud";
2275
2779
  modelRef: string;
2276
2780
  form: {
2277
2781
  fields: z.objectInputType<{
@@ -2279,11 +2783,147 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2279
2783
  label: z.ZodString;
2280
2784
  }, z.ZodTypeAny, "passthrough">[];
2281
2785
  };
2282
- includeIdField?: boolean | undefined;
2283
- } | {
2284
- type: "list";
2786
+ table: {
2787
+ columns: {
2788
+ label: string;
2789
+ display: {
2790
+ type: "foreign";
2791
+ localRelationRef: string;
2792
+ labelExpression: string;
2793
+ valueExpression: string;
2794
+ } | {
2795
+ type: "text";
2796
+ modelFieldRef: string;
2797
+ };
2798
+ }[];
2799
+ };
2800
+ disableCreate?: boolean | undefined;
2801
+ embeddedForms?: ({
2802
+ type: "object";
2803
+ name: string;
2804
+ id: string;
2805
+ modelRef: string;
2806
+ form: {
2807
+ fields: z.objectInputType<{
2808
+ type: z.ZodString;
2809
+ label: z.ZodString;
2810
+ }, z.ZodTypeAny, "passthrough">[];
2811
+ };
2812
+ includeIdField?: boolean | undefined;
2813
+ } | {
2814
+ type: "list";
2815
+ name: string;
2816
+ id: string;
2817
+ modelRef: string;
2818
+ form: {
2819
+ fields: z.objectInputType<{
2820
+ type: z.ZodString;
2821
+ label: z.ZodString;
2822
+ }, z.ZodTypeAny, "passthrough">[];
2823
+ };
2824
+ table: {
2825
+ columns: {
2826
+ label: string;
2827
+ display: {
2828
+ type: "foreign";
2829
+ localRelationRef: string;
2830
+ labelExpression: string;
2831
+ valueExpression: string;
2832
+ } | {
2833
+ type: "text";
2834
+ modelFieldRef: string;
2835
+ };
2836
+ }[];
2837
+ };
2838
+ includeIdField?: boolean | undefined;
2839
+ })[] | undefined;
2840
+ })[] | undefined;
2841
+ }>>, {
2842
+ enabled: boolean;
2843
+ pathPrefix: string;
2844
+ allowedRoles?: string[] | undefined;
2845
+ sections?: ({
2846
+ type: string;
2285
2847
  name: string;
2286
2848
  id: string;
2849
+ featureRef: string;
2850
+ icon?: string | undefined;
2851
+ } & {
2852
+ type: "crud";
2853
+ modelRef: string;
2854
+ form: {
2855
+ fields: {
2856
+ type: string;
2857
+ label: string;
2858
+ }[];
2859
+ };
2860
+ table: {
2861
+ columns: {
2862
+ label: string;
2863
+ display: {
2864
+ type: "foreign";
2865
+ localRelationRef: string;
2866
+ labelExpression: string;
2867
+ valueExpression: string;
2868
+ } | {
2869
+ type: "text";
2870
+ modelFieldRef: string;
2871
+ };
2872
+ }[];
2873
+ };
2874
+ disableCreate?: boolean | undefined;
2875
+ embeddedForms?: ({
2876
+ type: "object";
2877
+ name: string;
2878
+ id: string;
2879
+ modelRef: string;
2880
+ form: {
2881
+ fields: {
2882
+ type: string;
2883
+ label: string;
2884
+ }[];
2885
+ };
2886
+ includeIdField?: boolean | undefined;
2887
+ } | {
2888
+ type: "list";
2889
+ name: string;
2890
+ id: string;
2891
+ modelRef: string;
2892
+ form: {
2893
+ fields: {
2894
+ type: string;
2895
+ label: string;
2896
+ }[];
2897
+ };
2898
+ table: {
2899
+ columns: {
2900
+ label: string;
2901
+ display: {
2902
+ type: "foreign";
2903
+ localRelationRef: string;
2904
+ labelExpression: string;
2905
+ valueExpression: string;
2906
+ } | {
2907
+ type: "text";
2908
+ modelFieldRef: string;
2909
+ };
2910
+ }[];
2911
+ };
2912
+ includeIdField?: boolean | undefined;
2913
+ })[] | undefined;
2914
+ })[] | undefined;
2915
+ } | undefined, {
2916
+ enabled: boolean;
2917
+ pathPrefix?: string | undefined;
2918
+ allowedRoles?: string[] | undefined;
2919
+ sections?: ({
2920
+ type: string;
2921
+ name: string;
2922
+ featureRef: string;
2923
+ icon?: string | undefined;
2924
+ id?: string | undefined;
2925
+ } & {
2926
+ type: "crud";
2287
2927
  modelRef: string;
2288
2928
  form: {
2289
2929
  fields: z.objectInputType<{
@@ -2305,61 +2945,73 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2305
2945
  };
2306
2946
  }[];
2307
2947
  };
2308
- includeIdField?: boolean | undefined;
2948
+ disableCreate?: boolean | undefined;
2949
+ embeddedForms?: ({
2950
+ type: "object";
2951
+ name: string;
2952
+ id: string;
2953
+ modelRef: string;
2954
+ form: {
2955
+ fields: z.objectInputType<{
2956
+ type: z.ZodString;
2957
+ label: z.ZodString;
2958
+ }, z.ZodTypeAny, "passthrough">[];
2959
+ };
2960
+ includeIdField?: boolean | undefined;
2961
+ } | {
2962
+ type: "list";
2963
+ name: string;
2964
+ id: string;
2965
+ modelRef: string;
2966
+ form: {
2967
+ fields: z.objectInputType<{
2968
+ type: z.ZodString;
2969
+ label: z.ZodString;
2970
+ }, z.ZodTypeAny, "passthrough">[];
2971
+ };
2972
+ table: {
2973
+ columns: {
2974
+ label: string;
2975
+ display: {
2976
+ type: "foreign";
2977
+ localRelationRef: string;
2978
+ labelExpression: string;
2979
+ valueExpression: string;
2980
+ } | {
2981
+ type: "text";
2982
+ modelFieldRef: string;
2983
+ };
2984
+ }[];
2985
+ };
2986
+ includeIdField?: boolean | undefined;
2987
+ })[] | undefined;
2309
2988
  })[] | undefined;
2310
- })[] | undefined;
2311
- }>]>, {
2312
- type: "admin";
2989
+ } | undefined>;
2990
+ id: z.ZodDefault<z.ZodString>;
2991
+ name: z.ZodString;
2992
+ packageLocation: z.ZodOptional<z.ZodString>;
2993
+ }, "strip", z.ZodTypeAny, {
2994
+ type: "web";
2313
2995
  name: string;
2996
+ description: string;
2314
2997
  id: string;
2998
+ title: string;
2315
2999
  packageLocation?: string | undefined;
2316
- allowedRoles?: string[] | undefined;
2317
- sections?: ({
2318
- type: string;
2319
- name: string;
2320
- id: string;
2321
- featureRef: string;
2322
- icon?: string | undefined;
2323
- } & {
2324
- type: "crud";
2325
- modelRef: string;
2326
- form: {
2327
- fields: {
2328
- type: string;
2329
- label: string;
2330
- }[];
2331
- };
2332
- table: {
2333
- columns: {
2334
- label: string;
2335
- display: {
2336
- type: "foreign";
2337
- localRelationRef: string;
2338
- labelExpression: string;
2339
- valueExpression: string;
2340
- } | {
2341
- type: "text";
2342
- modelFieldRef: string;
2343
- };
2344
- }[];
2345
- };
2346
- disableCreate?: boolean | undefined;
2347
- embeddedForms?: ({
2348
- type: "object";
2349
- name: string;
2350
- id: string;
2351
- modelRef: string;
2352
- form: {
2353
- fields: {
2354
- type: string;
2355
- label: string;
2356
- }[];
2357
- };
2358
- includeIdField?: boolean | undefined;
2359
- } | {
2360
- type: "list";
3000
+ enableSubscriptions?: boolean | undefined;
3001
+ includeAuth?: boolean | undefined;
3002
+ includeUploadComponents?: boolean | undefined;
3003
+ adminApp?: {
3004
+ enabled: boolean;
3005
+ pathPrefix: string;
3006
+ allowedRoles?: string[] | undefined;
3007
+ sections?: ({
3008
+ type: string;
2361
3009
  name: string;
2362
3010
  id: string;
3011
+ featureRef: string;
3012
+ icon?: string | undefined;
3013
+ } & {
3014
+ type: "crud";
2363
3015
  modelRef: string;
2364
3016
  form: {
2365
3017
  fields: {
@@ -2381,71 +3033,70 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2381
3033
  };
2382
3034
  }[];
2383
3035
  };
2384
- includeIdField?: boolean | undefined;
3036
+ disableCreate?: boolean | undefined;
3037
+ embeddedForms?: ({
3038
+ type: "object";
3039
+ name: string;
3040
+ id: string;
3041
+ modelRef: string;
3042
+ form: {
3043
+ fields: {
3044
+ type: string;
3045
+ label: string;
3046
+ }[];
3047
+ };
3048
+ includeIdField?: boolean | undefined;
3049
+ } | {
3050
+ type: "list";
3051
+ name: string;
3052
+ id: string;
3053
+ modelRef: string;
3054
+ form: {
3055
+ fields: {
3056
+ type: string;
3057
+ label: string;
3058
+ }[];
3059
+ };
3060
+ table: {
3061
+ columns: {
3062
+ label: string;
3063
+ display: {
3064
+ type: "foreign";
3065
+ localRelationRef: string;
3066
+ labelExpression: string;
3067
+ valueExpression: string;
3068
+ } | {
3069
+ type: "text";
3070
+ modelFieldRef: string;
3071
+ };
3072
+ }[];
3073
+ };
3074
+ includeIdField?: boolean | undefined;
3075
+ })[] | undefined;
2385
3076
  })[] | undefined;
2386
- })[] | undefined;
2387
- } | {
2388
- type: "backend";
2389
- name: string;
2390
- id: string;
2391
- packageLocation?: string | undefined;
2392
- enableStripe?: boolean | undefined;
2393
- enableRedis?: boolean | undefined;
2394
- enableBullQueue?: boolean | undefined;
2395
- enablePostmark?: boolean | undefined;
2396
- enableSubscriptions?: boolean | undefined;
2397
- enableAxios?: boolean | undefined;
2398
- } | {
3077
+ } | undefined;
3078
+ }, {
2399
3079
  type: "web";
2400
3080
  name: string;
2401
- id: string;
2402
3081
  description?: string | undefined;
3082
+ id?: string | undefined;
2403
3083
  packageLocation?: string | undefined;
2404
- allowedRoles?: string[] | undefined;
2405
3084
  enableSubscriptions?: boolean | undefined;
2406
3085
  includeAuth?: boolean | undefined;
2407
3086
  title?: string | undefined;
2408
3087
  includeUploadComponents?: boolean | undefined;
2409
- }, {
2410
- type: "admin";
2411
- name: string;
2412
- id?: string | undefined;
2413
- packageLocation?: string | undefined;
2414
- allowedRoles?: string[] | undefined;
2415
- sections?: ({
2416
- type: string;
2417
- name: string;
2418
- featureRef: string;
2419
- icon?: string | undefined;
2420
- id?: string | undefined;
2421
- } & {
2422
- type: "crud";
2423
- modelRef: string;
2424
- form: {
2425
- fields: z.objectInputType<{
2426
- type: z.ZodString;
2427
- label: z.ZodString;
2428
- }, z.ZodTypeAny, "passthrough">[];
2429
- };
2430
- table: {
2431
- columns: {
2432
- label: string;
2433
- display: {
2434
- type: "foreign";
2435
- localRelationRef: string;
2436
- labelExpression: string;
2437
- valueExpression: string;
2438
- } | {
2439
- type: "text";
2440
- modelFieldRef: string;
2441
- };
2442
- }[];
2443
- };
2444
- disableCreate?: boolean | undefined;
2445
- embeddedForms?: ({
2446
- type: "object";
3088
+ adminApp?: {
3089
+ enabled: boolean;
3090
+ pathPrefix?: string | undefined;
3091
+ allowedRoles?: string[] | undefined;
3092
+ sections?: ({
3093
+ type: string;
2447
3094
  name: string;
2448
- id: string;
3095
+ featureRef: string;
3096
+ icon?: string | undefined;
3097
+ id?: string | undefined;
3098
+ } & {
3099
+ type: "crud";
2449
3100
  modelRef: string;
2450
3101
  form: {
2451
3102
  fields: z.objectInputType<{
@@ -2453,17 +3104,101 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2453
3104
  label: z.ZodString;
2454
3105
  }, z.ZodTypeAny, "passthrough">[];
2455
3106
  };
2456
- includeIdField?: boolean | undefined;
2457
- } | {
2458
- type: "list";
3107
+ table: {
3108
+ columns: {
3109
+ label: string;
3110
+ display: {
3111
+ type: "foreign";
3112
+ localRelationRef: string;
3113
+ labelExpression: string;
3114
+ valueExpression: string;
3115
+ } | {
3116
+ type: "text";
3117
+ modelFieldRef: string;
3118
+ };
3119
+ }[];
3120
+ };
3121
+ disableCreate?: boolean | undefined;
3122
+ embeddedForms?: ({
3123
+ type: "object";
3124
+ name: string;
3125
+ id: string;
3126
+ modelRef: string;
3127
+ form: {
3128
+ fields: z.objectInputType<{
3129
+ type: z.ZodString;
3130
+ label: z.ZodString;
3131
+ }, z.ZodTypeAny, "passthrough">[];
3132
+ };
3133
+ includeIdField?: boolean | undefined;
3134
+ } | {
3135
+ type: "list";
3136
+ name: string;
3137
+ id: string;
3138
+ modelRef: string;
3139
+ form: {
3140
+ fields: z.objectInputType<{
3141
+ type: z.ZodString;
3142
+ label: z.ZodString;
3143
+ }, z.ZodTypeAny, "passthrough">[];
3144
+ };
3145
+ table: {
3146
+ columns: {
3147
+ label: string;
3148
+ display: {
3149
+ type: "foreign";
3150
+ localRelationRef: string;
3151
+ labelExpression: string;
3152
+ valueExpression: string;
3153
+ } | {
3154
+ type: "text";
3155
+ modelFieldRef: string;
3156
+ };
3157
+ }[];
3158
+ };
3159
+ includeIdField?: boolean | undefined;
3160
+ })[] | undefined;
3161
+ })[] | undefined;
3162
+ } | undefined;
3163
+ }>]>, {
3164
+ type: "backend";
3165
+ name: string;
3166
+ id: string;
3167
+ packageLocation?: string | undefined;
3168
+ enableStripe?: boolean | undefined;
3169
+ enableRedis?: boolean | undefined;
3170
+ enableBullQueue?: boolean | undefined;
3171
+ enablePostmark?: boolean | undefined;
3172
+ enableSubscriptions?: boolean | undefined;
3173
+ enableAxios?: boolean | undefined;
3174
+ } | {
3175
+ type: "web";
3176
+ name: string;
3177
+ description: string;
3178
+ id: string;
3179
+ title: string;
3180
+ packageLocation?: string | undefined;
3181
+ enableSubscriptions?: boolean | undefined;
3182
+ includeAuth?: boolean | undefined;
3183
+ includeUploadComponents?: boolean | undefined;
3184
+ adminApp?: {
3185
+ enabled: boolean;
3186
+ pathPrefix: string;
3187
+ allowedRoles?: string[] | undefined;
3188
+ sections?: ({
3189
+ type: string;
2459
3190
  name: string;
2460
3191
  id: string;
3192
+ featureRef: string;
3193
+ icon?: string | undefined;
3194
+ } & {
3195
+ type: "crud";
2461
3196
  modelRef: string;
2462
3197
  form: {
2463
- fields: z.objectInputType<{
2464
- type: z.ZodString;
2465
- label: z.ZodString;
2466
- }, z.ZodTypeAny, "passthrough">[];
3198
+ fields: {
3199
+ type: string;
3200
+ label: string;
3201
+ }[];
2467
3202
  };
2468
3203
  table: {
2469
3204
  columns: {
@@ -2479,10 +3214,49 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2479
3214
  };
2480
3215
  }[];
2481
3216
  };
2482
- includeIdField?: boolean | undefined;
3217
+ disableCreate?: boolean | undefined;
3218
+ embeddedForms?: ({
3219
+ type: "object";
3220
+ name: string;
3221
+ id: string;
3222
+ modelRef: string;
3223
+ form: {
3224
+ fields: {
3225
+ type: string;
3226
+ label: string;
3227
+ }[];
3228
+ };
3229
+ includeIdField?: boolean | undefined;
3230
+ } | {
3231
+ type: "list";
3232
+ name: string;
3233
+ id: string;
3234
+ modelRef: string;
3235
+ form: {
3236
+ fields: {
3237
+ type: string;
3238
+ label: string;
3239
+ }[];
3240
+ };
3241
+ table: {
3242
+ columns: {
3243
+ label: string;
3244
+ display: {
3245
+ type: "foreign";
3246
+ localRelationRef: string;
3247
+ labelExpression: string;
3248
+ valueExpression: string;
3249
+ } | {
3250
+ type: "text";
3251
+ modelFieldRef: string;
3252
+ };
3253
+ }[];
3254
+ };
3255
+ includeIdField?: boolean | undefined;
3256
+ })[] | undefined;
2483
3257
  })[] | undefined;
2484
- })[] | undefined;
2485
- } | {
3258
+ } | undefined;
3259
+ }, {
2486
3260
  type: "backend";
2487
3261
  name: string;
2488
3262
  id?: string | undefined;
@@ -2499,11 +3273,85 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2499
3273
  description?: string | undefined;
2500
3274
  id?: string | undefined;
2501
3275
  packageLocation?: string | undefined;
2502
- allowedRoles?: string[] | undefined;
2503
3276
  enableSubscriptions?: boolean | undefined;
2504
3277
  includeAuth?: boolean | undefined;
2505
3278
  title?: string | undefined;
2506
3279
  includeUploadComponents?: boolean | undefined;
3280
+ adminApp?: {
3281
+ enabled: boolean;
3282
+ pathPrefix?: string | undefined;
3283
+ allowedRoles?: string[] | undefined;
3284
+ sections?: ({
3285
+ type: string;
3286
+ name: string;
3287
+ featureRef: string;
3288
+ icon?: string | undefined;
3289
+ id?: string | undefined;
3290
+ } & {
3291
+ type: "crud";
3292
+ modelRef: string;
3293
+ form: {
3294
+ fields: z.objectInputType<{
3295
+ type: z.ZodString;
3296
+ label: z.ZodString;
3297
+ }, z.ZodTypeAny, "passthrough">[];
3298
+ };
3299
+ table: {
3300
+ columns: {
3301
+ label: string;
3302
+ display: {
3303
+ type: "foreign";
3304
+ localRelationRef: string;
3305
+ labelExpression: string;
3306
+ valueExpression: string;
3307
+ } | {
3308
+ type: "text";
3309
+ modelFieldRef: string;
3310
+ };
3311
+ }[];
3312
+ };
3313
+ disableCreate?: boolean | undefined;
3314
+ embeddedForms?: ({
3315
+ type: "object";
3316
+ name: string;
3317
+ id: string;
3318
+ modelRef: string;
3319
+ form: {
3320
+ fields: z.objectInputType<{
3321
+ type: z.ZodString;
3322
+ label: z.ZodString;
3323
+ }, z.ZodTypeAny, "passthrough">[];
3324
+ };
3325
+ includeIdField?: boolean | undefined;
3326
+ } | {
3327
+ type: "list";
3328
+ name: string;
3329
+ id: string;
3330
+ modelRef: string;
3331
+ form: {
3332
+ fields: z.objectInputType<{
3333
+ type: z.ZodString;
3334
+ label: z.ZodString;
3335
+ }, z.ZodTypeAny, "passthrough">[];
3336
+ };
3337
+ table: {
3338
+ columns: {
3339
+ label: string;
3340
+ display: {
3341
+ type: "foreign";
3342
+ localRelationRef: string;
3343
+ labelExpression: string;
3344
+ valueExpression: string;
3345
+ } | {
3346
+ type: "text";
3347
+ modelFieldRef: string;
3348
+ };
3349
+ }[];
3350
+ };
3351
+ includeIdField?: boolean | undefined;
3352
+ })[] | undefined;
3353
+ })[] | undefined;
3354
+ } | undefined;
2507
3355
  }>, "many">>;
2508
3356
  features: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
2509
3357
  id: z.ZodString;
@@ -3212,7 +4060,6 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3212
4060
  }, "strip", z.ZodTypeAny, {
3213
4061
  name: string;
3214
4062
  id: string;
3215
- featureRef: string;
3216
4063
  model: {
3217
4064
  fields: {
3218
4065
  options: {
@@ -3249,6 +4096,7 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3249
4096
  }[];
3250
4097
  }[] | undefined;
3251
4098
  };
4099
+ featureRef: string;
3252
4100
  service: {
3253
4101
  delete: {
3254
4102
  enabled: boolean;
@@ -3303,7 +4151,6 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3303
4151
  }, {
3304
4152
  name: string;
3305
4153
  id: string;
3306
- featureRef: string;
3307
4154
  model: {
3308
4155
  fields: {
3309
4156
  type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
@@ -3340,6 +4187,7 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3340
4187
  }[];
3341
4188
  }[] | undefined;
3342
4189
  };
4190
+ featureRef: string;
3343
4191
  service?: {
3344
4192
  delete?: {
3345
4193
  enabled?: boolean | undefined;
@@ -3394,7 +4242,6 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3394
4242
  }>, {
3395
4243
  name: string;
3396
4244
  id: string;
3397
- featureRef: string;
3398
4245
  model: {
3399
4246
  fields: {
3400
4247
  options: {
@@ -3431,6 +4278,7 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3431
4278
  }[];
3432
4279
  }[] | undefined;
3433
4280
  };
4281
+ featureRef: string;
3434
4282
  service: {
3435
4283
  delete: {
3436
4284
  enabled: boolean;
@@ -3485,7 +4333,6 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3485
4333
  }, {
3486
4334
  name: string;
3487
4335
  id: string;
3488
- featureRef: string;
3489
4336
  model: {
3490
4337
  fields: {
3491
4338
  type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
@@ -3522,6 +4369,7 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3522
4369
  }[];
3523
4370
  }[] | undefined;
3524
4371
  };
4372
+ featureRef: string;
3525
4373
  service?: {
3526
4374
  delete?: {
3527
4375
  enabled?: boolean | undefined;
@@ -3785,14 +4633,14 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3785
4633
  };
3786
4634
  }>;
3787
4635
  colors: z.ZodObject<{
3788
- light: z.ZodRecord<z.ZodEnum<["link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", ...("link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring")[]]>, z.ZodString>;
3789
- dark: z.ZodRecord<z.ZodEnum<["link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", ...("link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring")[]]>, z.ZodString>;
4636
+ light: z.ZodRecord<z.ZodEnum<["link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", ...("link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring")[]]>, z.ZodString>;
4637
+ dark: z.ZodRecord<z.ZodEnum<["link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", ...("link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring")[]]>, z.ZodString>;
3790
4638
  }, "strip", z.ZodTypeAny, {
3791
- light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3792
- dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4639
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4640
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3793
4641
  }, {
3794
- light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3795
- dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4642
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4643
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3796
4644
  }>;
3797
4645
  }, "strip", z.ZodTypeAny, {
3798
4646
  palettes: {
@@ -3808,8 +4656,8 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3808
4656
  };
3809
4657
  };
3810
4658
  colors: {
3811
- light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3812
- dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4659
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4660
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3813
4661
  };
3814
4662
  }, {
3815
4663
  palettes: {
@@ -3825,8 +4673,8 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3825
4673
  };
3826
4674
  };
3827
4675
  colors: {
3828
- light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3829
- dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4676
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4677
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3830
4678
  };
3831
4679
  }>>;
3832
4680
  }, "strip", z.ZodTypeAny, {
@@ -3853,8 +4701,8 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3853
4701
  };
3854
4702
  };
3855
4703
  colors: {
3856
- light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3857
- dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4704
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4705
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3858
4706
  };
3859
4707
  } | undefined;
3860
4708
  }, {
@@ -3881,64 +4729,45 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3881
4729
  };
3882
4730
  };
3883
4731
  colors: {
3884
- light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3885
- dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4732
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4733
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3886
4734
  };
3887
4735
  } | undefined;
3888
4736
  }>;
3889
4737
  }, "strip", z.ZodTypeAny, {
3890
4738
  apps: ({
3891
- type: "admin";
4739
+ type: "backend";
3892
4740
  name: string;
3893
4741
  id: string;
3894
4742
  packageLocation?: string | undefined;
3895
- allowedRoles?: string[] | undefined;
3896
- sections?: ({
3897
- type: string;
3898
- name: string;
3899
- id: string;
3900
- featureRef: string;
3901
- icon?: string | undefined;
3902
- } & {
3903
- type: "crud";
3904
- modelRef: string;
3905
- form: {
3906
- fields: {
3907
- type: string;
3908
- label: string;
3909
- }[];
3910
- };
3911
- table: {
3912
- columns: {
3913
- label: string;
3914
- display: {
3915
- type: "foreign";
3916
- localRelationRef: string;
3917
- labelExpression: string;
3918
- valueExpression: string;
3919
- } | {
3920
- type: "text";
3921
- modelFieldRef: string;
3922
- };
3923
- }[];
3924
- };
3925
- disableCreate?: boolean | undefined;
3926
- embeddedForms?: ({
3927
- type: "object";
3928
- name: string;
3929
- id: string;
3930
- modelRef: string;
3931
- form: {
3932
- fields: {
3933
- type: string;
3934
- label: string;
3935
- }[];
3936
- };
3937
- includeIdField?: boolean | undefined;
3938
- } | {
3939
- type: "list";
4743
+ enableStripe?: boolean | undefined;
4744
+ enableRedis?: boolean | undefined;
4745
+ enableBullQueue?: boolean | undefined;
4746
+ enablePostmark?: boolean | undefined;
4747
+ enableSubscriptions?: boolean | undefined;
4748
+ enableAxios?: boolean | undefined;
4749
+ } | {
4750
+ type: "web";
4751
+ name: string;
4752
+ description: string;
4753
+ id: string;
4754
+ title: string;
4755
+ packageLocation?: string | undefined;
4756
+ enableSubscriptions?: boolean | undefined;
4757
+ includeAuth?: boolean | undefined;
4758
+ includeUploadComponents?: boolean | undefined;
4759
+ adminApp?: {
4760
+ enabled: boolean;
4761
+ pathPrefix: string;
4762
+ allowedRoles?: string[] | undefined;
4763
+ sections?: ({
4764
+ type: string;
3940
4765
  name: string;
3941
4766
  id: string;
4767
+ featureRef: string;
4768
+ icon?: string | undefined;
4769
+ } & {
4770
+ type: "crud";
3942
4771
  modelRef: string;
3943
4772
  form: {
3944
4773
  fields: {
@@ -3960,31 +4789,48 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3960
4789
  };
3961
4790
  }[];
3962
4791
  };
3963
- includeIdField?: boolean | undefined;
4792
+ disableCreate?: boolean | undefined;
4793
+ embeddedForms?: ({
4794
+ type: "object";
4795
+ name: string;
4796
+ id: string;
4797
+ modelRef: string;
4798
+ form: {
4799
+ fields: {
4800
+ type: string;
4801
+ label: string;
4802
+ }[];
4803
+ };
4804
+ includeIdField?: boolean | undefined;
4805
+ } | {
4806
+ type: "list";
4807
+ name: string;
4808
+ id: string;
4809
+ modelRef: string;
4810
+ form: {
4811
+ fields: {
4812
+ type: string;
4813
+ label: string;
4814
+ }[];
4815
+ };
4816
+ table: {
4817
+ columns: {
4818
+ label: string;
4819
+ display: {
4820
+ type: "foreign";
4821
+ localRelationRef: string;
4822
+ labelExpression: string;
4823
+ valueExpression: string;
4824
+ } | {
4825
+ type: "text";
4826
+ modelFieldRef: string;
4827
+ };
4828
+ }[];
4829
+ };
4830
+ includeIdField?: boolean | undefined;
4831
+ })[] | undefined;
3964
4832
  })[] | undefined;
3965
- })[] | undefined;
3966
- } | {
3967
- type: "backend";
3968
- name: string;
3969
- id: string;
3970
- packageLocation?: string | undefined;
3971
- enableStripe?: boolean | undefined;
3972
- enableRedis?: boolean | undefined;
3973
- enableBullQueue?: boolean | undefined;
3974
- enablePostmark?: boolean | undefined;
3975
- enableSubscriptions?: boolean | undefined;
3976
- enableAxios?: boolean | undefined;
3977
- } | {
3978
- type: "web";
3979
- name: string;
3980
- id: string;
3981
- description?: string | undefined;
3982
- packageLocation?: string | undefined;
3983
- allowedRoles?: string[] | undefined;
3984
- enableSubscriptions?: boolean | undefined;
3985
- includeAuth?: boolean | undefined;
3986
- title?: string | undefined;
3987
- includeUploadComponents?: boolean | undefined;
4833
+ } | undefined;
3988
4834
  })[];
3989
4835
  features: {
3990
4836
  name: string;
@@ -3994,7 +4840,6 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3994
4840
  models: {
3995
4841
  name: string;
3996
4842
  id: string;
3997
- featureRef: string;
3998
4843
  model: {
3999
4844
  fields: {
4000
4845
  options: {
@@ -4031,6 +4876,7 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
4031
4876
  }[];
4032
4877
  }[] | undefined;
4033
4878
  };
4879
+ featureRef: string;
4034
4880
  service: {
4035
4881
  delete: {
4036
4882
  enabled: boolean;
@@ -4109,8 +4955,8 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
4109
4955
  };
4110
4956
  };
4111
4957
  colors: {
4112
- light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4113
- dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4958
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4959
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4114
4960
  };
4115
4961
  } | undefined;
4116
4962
  };
@@ -4160,8 +5006,8 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
4160
5006
  };
4161
5007
  };
4162
5008
  colors: {
4163
- light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4164
- dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
5009
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
5010
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4165
5011
  };
4166
5012
  } | undefined;
4167
5013
  };
@@ -4175,57 +5021,38 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
4175
5021
  }, z.ZodTypeAny, "passthrough">[] | undefined;
4176
5022
  cliVersion?: string | null | undefined;
4177
5023
  apps?: ({
4178
- type: "admin";
5024
+ type: "backend";
4179
5025
  name: string;
4180
5026
  id?: string | undefined;
4181
5027
  packageLocation?: string | undefined;
4182
- allowedRoles?: string[] | undefined;
4183
- sections?: ({
4184
- type: string;
4185
- name: string;
4186
- featureRef: string;
4187
- icon?: string | undefined;
4188
- id?: string | undefined;
4189
- } & {
4190
- type: "crud";
4191
- modelRef: string;
4192
- form: {
4193
- fields: z.objectInputType<{
4194
- type: z.ZodString;
4195
- label: z.ZodString;
4196
- }, z.ZodTypeAny, "passthrough">[];
4197
- };
4198
- table: {
4199
- columns: {
4200
- label: string;
4201
- display: {
4202
- type: "foreign";
4203
- localRelationRef: string;
4204
- labelExpression: string;
4205
- valueExpression: string;
4206
- } | {
4207
- type: "text";
4208
- modelFieldRef: string;
4209
- };
4210
- }[];
4211
- };
4212
- disableCreate?: boolean | undefined;
4213
- embeddedForms?: ({
4214
- type: "object";
4215
- name: string;
4216
- id: string;
4217
- modelRef: string;
4218
- form: {
4219
- fields: z.objectInputType<{
4220
- type: z.ZodString;
4221
- label: z.ZodString;
4222
- }, z.ZodTypeAny, "passthrough">[];
4223
- };
4224
- includeIdField?: boolean | undefined;
4225
- } | {
4226
- type: "list";
5028
+ enableStripe?: boolean | undefined;
5029
+ enableRedis?: boolean | undefined;
5030
+ enableBullQueue?: boolean | undefined;
5031
+ enablePostmark?: boolean | undefined;
5032
+ enableSubscriptions?: boolean | undefined;
5033
+ enableAxios?: boolean | undefined;
5034
+ } | {
5035
+ type: "web";
5036
+ name: string;
5037
+ description?: string | undefined;
5038
+ id?: string | undefined;
5039
+ packageLocation?: string | undefined;
5040
+ enableSubscriptions?: boolean | undefined;
5041
+ includeAuth?: boolean | undefined;
5042
+ title?: string | undefined;
5043
+ includeUploadComponents?: boolean | undefined;
5044
+ adminApp?: {
5045
+ enabled: boolean;
5046
+ pathPrefix?: string | undefined;
5047
+ allowedRoles?: string[] | undefined;
5048
+ sections?: ({
5049
+ type: string;
4227
5050
  name: string;
4228
- id: string;
5051
+ featureRef: string;
5052
+ icon?: string | undefined;
5053
+ id?: string | undefined;
5054
+ } & {
5055
+ type: "crud";
4229
5056
  modelRef: string;
4230
5057
  form: {
4231
5058
  fields: z.objectInputType<{
@@ -4247,31 +5074,48 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
4247
5074
  };
4248
5075
  }[];
4249
5076
  };
4250
- includeIdField?: boolean | undefined;
5077
+ disableCreate?: boolean | undefined;
5078
+ embeddedForms?: ({
5079
+ type: "object";
5080
+ name: string;
5081
+ id: string;
5082
+ modelRef: string;
5083
+ form: {
5084
+ fields: z.objectInputType<{
5085
+ type: z.ZodString;
5086
+ label: z.ZodString;
5087
+ }, z.ZodTypeAny, "passthrough">[];
5088
+ };
5089
+ includeIdField?: boolean | undefined;
5090
+ } | {
5091
+ type: "list";
5092
+ name: string;
5093
+ id: string;
5094
+ modelRef: string;
5095
+ form: {
5096
+ fields: z.objectInputType<{
5097
+ type: z.ZodString;
5098
+ label: z.ZodString;
5099
+ }, z.ZodTypeAny, "passthrough">[];
5100
+ };
5101
+ table: {
5102
+ columns: {
5103
+ label: string;
5104
+ display: {
5105
+ type: "foreign";
5106
+ localRelationRef: string;
5107
+ labelExpression: string;
5108
+ valueExpression: string;
5109
+ } | {
5110
+ type: "text";
5111
+ modelFieldRef: string;
5112
+ };
5113
+ }[];
5114
+ };
5115
+ includeIdField?: boolean | undefined;
5116
+ })[] | undefined;
4251
5117
  })[] | undefined;
4252
- })[] | undefined;
4253
- } | {
4254
- type: "backend";
4255
- name: string;
4256
- id?: string | undefined;
4257
- packageLocation?: string | undefined;
4258
- enableStripe?: boolean | undefined;
4259
- enableRedis?: boolean | undefined;
4260
- enableBullQueue?: boolean | undefined;
4261
- enablePostmark?: boolean | undefined;
4262
- enableSubscriptions?: boolean | undefined;
4263
- enableAxios?: boolean | undefined;
4264
- } | {
4265
- type: "web";
4266
- name: string;
4267
- description?: string | undefined;
4268
- id?: string | undefined;
4269
- packageLocation?: string | undefined;
4270
- allowedRoles?: string[] | undefined;
4271
- enableSubscriptions?: boolean | undefined;
4272
- includeAuth?: boolean | undefined;
4273
- title?: string | undefined;
4274
- includeUploadComponents?: boolean | undefined;
5118
+ } | undefined;
4275
5119
  })[] | undefined;
4276
5120
  features?: {
4277
5121
  name: string;
@@ -4281,7 +5125,6 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
4281
5125
  models?: {
4282
5126
  name: string;
4283
5127
  id: string;
4284
- featureRef: string;
4285
5128
  model: {
4286
5129
  fields: {
4287
5130
  type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
@@ -4318,6 +5161,7 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
4318
5161
  }[];
4319
5162
  }[] | undefined;
4320
5163
  };
5164
+ featureRef: string;
4321
5165
  service?: {
4322
5166
  delete?: {
4323
5167
  enabled?: boolean | undefined;