@duke333/builder-contracts 0.1.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.
- package/LICENSE +21 -0
- package/README.md +33 -0
- package/dist/index.d.ts +1841 -0
- package/dist/index.js +357 -0
- package/dist/index.js.map +1 -0
- package/package.json +35 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1841 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const builderDefinitionTypeSchema: z.ZodEnum<{
|
|
4
|
+
form: "form";
|
|
5
|
+
list: "list";
|
|
6
|
+
}>;
|
|
7
|
+
type BuilderDefinitionType = z.infer<typeof builderDefinitionTypeSchema>;
|
|
8
|
+
declare const builderDatasourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9
|
+
type: z.ZodLiteral<"dbTable">;
|
|
10
|
+
tableName: z.ZodString;
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
+
type: z.ZodLiteral<"apiEndpoint">;
|
|
13
|
+
basePath: z.ZodString;
|
|
14
|
+
listPath: z.ZodOptional<z.ZodString>;
|
|
15
|
+
createPath: z.ZodOptional<z.ZodString>;
|
|
16
|
+
updatePath: z.ZodOptional<z.ZodString>;
|
|
17
|
+
deletePath: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>], "type">;
|
|
19
|
+
type BuilderDatasource = z.infer<typeof builderDatasourceSchema>;
|
|
20
|
+
declare const builderDbColumnSchema: z.ZodObject<{
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
label: z.ZodString;
|
|
23
|
+
dataType: z.ZodString;
|
|
24
|
+
nullable: z.ZodBoolean;
|
|
25
|
+
fieldType: z.ZodEnum<{
|
|
26
|
+
number: "number";
|
|
27
|
+
date: "date";
|
|
28
|
+
text: "text";
|
|
29
|
+
money: "money";
|
|
30
|
+
checkbox: "checkbox";
|
|
31
|
+
}>;
|
|
32
|
+
sortable: z.ZodBoolean;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
type BuilderDbColumn = z.infer<typeof builderDbColumnSchema>;
|
|
35
|
+
declare const builderDbTableSchema: z.ZodObject<{
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
label: z.ZodString;
|
|
38
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
label: z.ZodString;
|
|
41
|
+
dataType: z.ZodString;
|
|
42
|
+
nullable: z.ZodBoolean;
|
|
43
|
+
fieldType: z.ZodEnum<{
|
|
44
|
+
number: "number";
|
|
45
|
+
date: "date";
|
|
46
|
+
text: "text";
|
|
47
|
+
money: "money";
|
|
48
|
+
checkbox: "checkbox";
|
|
49
|
+
}>;
|
|
50
|
+
sortable: z.ZodBoolean;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
lookupColumns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
label: z.ZodString;
|
|
55
|
+
dataType: z.ZodString;
|
|
56
|
+
nullable: z.ZodBoolean;
|
|
57
|
+
fieldType: z.ZodEnum<{
|
|
58
|
+
number: "number";
|
|
59
|
+
date: "date";
|
|
60
|
+
text: "text";
|
|
61
|
+
money: "money";
|
|
62
|
+
checkbox: "checkbox";
|
|
63
|
+
}>;
|
|
64
|
+
sortable: z.ZodBoolean;
|
|
65
|
+
}, z.core.$strip>>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
type BuilderDbTable = z.infer<typeof builderDbTableSchema>;
|
|
68
|
+
declare const builderFieldTypeSchema: z.ZodEnum<{
|
|
69
|
+
number: "number";
|
|
70
|
+
date: "date";
|
|
71
|
+
text: "text";
|
|
72
|
+
money: "money";
|
|
73
|
+
checkbox: "checkbox";
|
|
74
|
+
textarea: "textarea";
|
|
75
|
+
select: "select";
|
|
76
|
+
}>;
|
|
77
|
+
type BuilderFieldType = z.infer<typeof builderFieldTypeSchema>;
|
|
78
|
+
declare const builderSelectOptionSchema: z.ZodObject<{
|
|
79
|
+
label: z.ZodString;
|
|
80
|
+
value: z.ZodString;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
type BuilderSelectOption = z.infer<typeof builderSelectOptionSchema>;
|
|
83
|
+
declare const builderSelectOptionsSourceSchema: z.ZodObject<{
|
|
84
|
+
type: z.ZodLiteral<"dbTable">;
|
|
85
|
+
tableName: z.ZodString;
|
|
86
|
+
valueField: z.ZodString;
|
|
87
|
+
labelField: z.ZodString;
|
|
88
|
+
searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
89
|
+
filterBy: z.ZodOptional<z.ZodObject<{
|
|
90
|
+
field: z.ZodString;
|
|
91
|
+
valueFromField: z.ZodString;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
type BuilderSelectOptionsSource = z.infer<typeof builderSelectOptionsSourceSchema>;
|
|
95
|
+
declare const builderFormSubformSchema: z.ZodObject<{
|
|
96
|
+
key: z.ZodString;
|
|
97
|
+
label: z.ZodString;
|
|
98
|
+
viewId: z.ZodUUID;
|
|
99
|
+
parentField: z.ZodString;
|
|
100
|
+
childField: z.ZodString;
|
|
101
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
102
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
type BuilderFormSubform = z.infer<typeof builderFormSubformSchema>;
|
|
105
|
+
declare const builderFieldTriggerEventSchema: z.ZodEnum<{
|
|
106
|
+
onChange: "onChange";
|
|
107
|
+
onBlur: "onBlur";
|
|
108
|
+
}>;
|
|
109
|
+
type BuilderFieldTriggerEvent = z.infer<typeof builderFieldTriggerEventSchema>;
|
|
110
|
+
declare const builderFieldTriggerSchema: z.ZodObject<{
|
|
111
|
+
event: z.ZodEnum<{
|
|
112
|
+
onChange: "onChange";
|
|
113
|
+
onBlur: "onBlur";
|
|
114
|
+
}>;
|
|
115
|
+
action: z.ZodString;
|
|
116
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
117
|
+
debounceMs: z.ZodDefault<z.ZodNumber>;
|
|
118
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
type BuilderFieldTrigger = z.infer<typeof builderFieldTriggerSchema>;
|
|
121
|
+
declare const builderFieldSchema: z.ZodObject<{
|
|
122
|
+
key: z.ZodString;
|
|
123
|
+
label: z.ZodString;
|
|
124
|
+
type: z.ZodEnum<{
|
|
125
|
+
number: "number";
|
|
126
|
+
date: "date";
|
|
127
|
+
text: "text";
|
|
128
|
+
money: "money";
|
|
129
|
+
checkbox: "checkbox";
|
|
130
|
+
textarea: "textarea";
|
|
131
|
+
select: "select";
|
|
132
|
+
}>;
|
|
133
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
134
|
+
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
135
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
|
136
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
137
|
+
description: z.ZodOptional<z.ZodString>;
|
|
138
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
139
|
+
label: z.ZodString;
|
|
140
|
+
value: z.ZodString;
|
|
141
|
+
}, z.core.$strip>>>;
|
|
142
|
+
optionsSource: z.ZodOptional<z.ZodObject<{
|
|
143
|
+
type: z.ZodLiteral<"dbTable">;
|
|
144
|
+
tableName: z.ZodString;
|
|
145
|
+
valueField: z.ZodString;
|
|
146
|
+
labelField: z.ZodString;
|
|
147
|
+
searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
148
|
+
filterBy: z.ZodOptional<z.ZodObject<{
|
|
149
|
+
field: z.ZodString;
|
|
150
|
+
valueFromField: z.ZodString;
|
|
151
|
+
}, z.core.$strip>>;
|
|
152
|
+
}, z.core.$strip>>;
|
|
153
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
154
|
+
event: z.ZodEnum<{
|
|
155
|
+
onChange: "onChange";
|
|
156
|
+
onBlur: "onBlur";
|
|
157
|
+
}>;
|
|
158
|
+
action: z.ZodString;
|
|
159
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
160
|
+
debounceMs: z.ZodDefault<z.ZodNumber>;
|
|
161
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
162
|
+
}, z.core.$strip>>>;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
type BuilderField = z.infer<typeof builderFieldSchema>;
|
|
165
|
+
declare const builderColumnSchema: z.ZodObject<{
|
|
166
|
+
key: z.ZodString;
|
|
167
|
+
label: z.ZodString;
|
|
168
|
+
sortable: z.ZodDefault<z.ZodBoolean>;
|
|
169
|
+
align: z.ZodDefault<z.ZodEnum<{
|
|
170
|
+
left: "left";
|
|
171
|
+
right: "right";
|
|
172
|
+
}>>;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
type BuilderColumn = z.infer<typeof builderColumnSchema>;
|
|
175
|
+
declare const builderFormLayoutFieldSchema: z.ZodObject<{
|
|
176
|
+
key: z.ZodString;
|
|
177
|
+
span: z.ZodDefault<z.ZodNumber>;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
type BuilderFormLayoutField = z.infer<typeof builderFormLayoutFieldSchema>;
|
|
180
|
+
declare const builderFormLayoutGroupSchema: z.ZodObject<{
|
|
181
|
+
id: z.ZodString;
|
|
182
|
+
title: z.ZodOptional<z.ZodString>;
|
|
183
|
+
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>]>>;
|
|
184
|
+
fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
185
|
+
key: z.ZodString;
|
|
186
|
+
span: z.ZodDefault<z.ZodNumber>;
|
|
187
|
+
}, z.core.$strip>>>;
|
|
188
|
+
}, z.core.$strip>;
|
|
189
|
+
type BuilderFormLayoutGroup = z.infer<typeof builderFormLayoutGroupSchema>;
|
|
190
|
+
declare const builderFormLayoutSchema: z.ZodObject<{
|
|
191
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
192
|
+
id: z.ZodString;
|
|
193
|
+
title: z.ZodOptional<z.ZodString>;
|
|
194
|
+
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>]>>;
|
|
195
|
+
fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
196
|
+
key: z.ZodString;
|
|
197
|
+
span: z.ZodDefault<z.ZodNumber>;
|
|
198
|
+
}, z.core.$strip>>>;
|
|
199
|
+
}, z.core.$strip>>>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
type BuilderFormLayout = z.infer<typeof builderFormLayoutSchema>;
|
|
202
|
+
declare const builderFormSchema: z.ZodObject<{
|
|
203
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
204
|
+
key: z.ZodString;
|
|
205
|
+
label: z.ZodString;
|
|
206
|
+
type: z.ZodEnum<{
|
|
207
|
+
number: "number";
|
|
208
|
+
date: "date";
|
|
209
|
+
text: "text";
|
|
210
|
+
money: "money";
|
|
211
|
+
checkbox: "checkbox";
|
|
212
|
+
textarea: "textarea";
|
|
213
|
+
select: "select";
|
|
214
|
+
}>;
|
|
215
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
216
|
+
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
217
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
|
218
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
219
|
+
description: z.ZodOptional<z.ZodString>;
|
|
220
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
221
|
+
label: z.ZodString;
|
|
222
|
+
value: z.ZodString;
|
|
223
|
+
}, z.core.$strip>>>;
|
|
224
|
+
optionsSource: z.ZodOptional<z.ZodObject<{
|
|
225
|
+
type: z.ZodLiteral<"dbTable">;
|
|
226
|
+
tableName: z.ZodString;
|
|
227
|
+
valueField: z.ZodString;
|
|
228
|
+
labelField: z.ZodString;
|
|
229
|
+
searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
230
|
+
filterBy: z.ZodOptional<z.ZodObject<{
|
|
231
|
+
field: z.ZodString;
|
|
232
|
+
valueFromField: z.ZodString;
|
|
233
|
+
}, z.core.$strip>>;
|
|
234
|
+
}, z.core.$strip>>;
|
|
235
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
236
|
+
event: z.ZodEnum<{
|
|
237
|
+
onChange: "onChange";
|
|
238
|
+
onBlur: "onBlur";
|
|
239
|
+
}>;
|
|
240
|
+
action: z.ZodString;
|
|
241
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
242
|
+
debounceMs: z.ZodDefault<z.ZodNumber>;
|
|
243
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
244
|
+
}, z.core.$strip>>>;
|
|
245
|
+
}, z.core.$strip>>;
|
|
246
|
+
layout: z.ZodOptional<z.ZodObject<{
|
|
247
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
248
|
+
id: z.ZodString;
|
|
249
|
+
title: z.ZodOptional<z.ZodString>;
|
|
250
|
+
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>]>>;
|
|
251
|
+
fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
252
|
+
key: z.ZodString;
|
|
253
|
+
span: z.ZodDefault<z.ZodNumber>;
|
|
254
|
+
}, z.core.$strip>>>;
|
|
255
|
+
}, z.core.$strip>>>;
|
|
256
|
+
}, z.core.$strip>>;
|
|
257
|
+
subforms: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
258
|
+
key: z.ZodString;
|
|
259
|
+
label: z.ZodString;
|
|
260
|
+
viewId: z.ZodUUID;
|
|
261
|
+
parentField: z.ZodString;
|
|
262
|
+
childField: z.ZodString;
|
|
263
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
264
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
265
|
+
}, z.core.$strip>>>;
|
|
266
|
+
}, z.core.$strip>;
|
|
267
|
+
type BuilderFormSchema = z.infer<typeof builderFormSchema>;
|
|
268
|
+
declare const builderListSchema: z.ZodObject<{
|
|
269
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
270
|
+
key: z.ZodString;
|
|
271
|
+
label: z.ZodString;
|
|
272
|
+
sortable: z.ZodDefault<z.ZodBoolean>;
|
|
273
|
+
align: z.ZodDefault<z.ZodEnum<{
|
|
274
|
+
left: "left";
|
|
275
|
+
right: "right";
|
|
276
|
+
}>>;
|
|
277
|
+
}, z.core.$strip>>;
|
|
278
|
+
}, z.core.$strip>;
|
|
279
|
+
type BuilderListSchema = z.infer<typeof builderListSchema>;
|
|
280
|
+
type BuilderPermission = string;
|
|
281
|
+
declare const permissionSchema: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
282
|
+
declare const builderFormTriggerEventSchema: z.ZodEnum<{
|
|
283
|
+
beforeCreate: "beforeCreate";
|
|
284
|
+
afterCreate: "afterCreate";
|
|
285
|
+
beforeUpdate: "beforeUpdate";
|
|
286
|
+
afterUpdate: "afterUpdate";
|
|
287
|
+
}>;
|
|
288
|
+
type BuilderFormTriggerEvent = z.infer<typeof builderFormTriggerEventSchema>;
|
|
289
|
+
declare const builderListTriggerEventSchema: z.ZodEnum<{
|
|
290
|
+
beforeRead: "beforeRead";
|
|
291
|
+
afterRead: "afterRead";
|
|
292
|
+
beforeDelete: "beforeDelete";
|
|
293
|
+
afterDelete: "afterDelete";
|
|
294
|
+
}>;
|
|
295
|
+
type BuilderListTriggerEvent = z.infer<typeof builderListTriggerEventSchema>;
|
|
296
|
+
declare const builderTriggerEventSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
297
|
+
beforeCreate: "beforeCreate";
|
|
298
|
+
afterCreate: "afterCreate";
|
|
299
|
+
beforeUpdate: "beforeUpdate";
|
|
300
|
+
afterUpdate: "afterUpdate";
|
|
301
|
+
}>, z.ZodEnum<{
|
|
302
|
+
beforeRead: "beforeRead";
|
|
303
|
+
afterRead: "afterRead";
|
|
304
|
+
beforeDelete: "beforeDelete";
|
|
305
|
+
afterDelete: "afterDelete";
|
|
306
|
+
}>]>;
|
|
307
|
+
type BuilderTriggerEvent = z.infer<typeof builderTriggerEventSchema>;
|
|
308
|
+
declare const builderTriggerSchema: z.ZodObject<{
|
|
309
|
+
event: z.ZodUnion<readonly [z.ZodEnum<{
|
|
310
|
+
beforeCreate: "beforeCreate";
|
|
311
|
+
afterCreate: "afterCreate";
|
|
312
|
+
beforeUpdate: "beforeUpdate";
|
|
313
|
+
afterUpdate: "afterUpdate";
|
|
314
|
+
}>, z.ZodEnum<{
|
|
315
|
+
beforeRead: "beforeRead";
|
|
316
|
+
afterRead: "afterRead";
|
|
317
|
+
beforeDelete: "beforeDelete";
|
|
318
|
+
afterDelete: "afterDelete";
|
|
319
|
+
}>]>;
|
|
320
|
+
action: z.ZodEnum<{
|
|
321
|
+
callApi: "callApi";
|
|
322
|
+
webhook: "webhook";
|
|
323
|
+
audit: "audit";
|
|
324
|
+
notify: "notify";
|
|
325
|
+
validate: "validate";
|
|
326
|
+
}>;
|
|
327
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
328
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
329
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
330
|
+
}, z.core.$strip>;
|
|
331
|
+
type BuilderTrigger = z.infer<typeof builderTriggerSchema>;
|
|
332
|
+
declare const builderFormTriggerSchema: z.ZodObject<{
|
|
333
|
+
action: z.ZodEnum<{
|
|
334
|
+
callApi: "callApi";
|
|
335
|
+
webhook: "webhook";
|
|
336
|
+
audit: "audit";
|
|
337
|
+
notify: "notify";
|
|
338
|
+
validate: "validate";
|
|
339
|
+
}>;
|
|
340
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
341
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
342
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
343
|
+
event: z.ZodEnum<{
|
|
344
|
+
beforeCreate: "beforeCreate";
|
|
345
|
+
afterCreate: "afterCreate";
|
|
346
|
+
beforeUpdate: "beforeUpdate";
|
|
347
|
+
afterUpdate: "afterUpdate";
|
|
348
|
+
}>;
|
|
349
|
+
}, z.core.$strip>;
|
|
350
|
+
type BuilderFormTrigger = z.infer<typeof builderFormTriggerSchema>;
|
|
351
|
+
declare const builderListTriggerSchema: z.ZodObject<{
|
|
352
|
+
action: z.ZodEnum<{
|
|
353
|
+
callApi: "callApi";
|
|
354
|
+
webhook: "webhook";
|
|
355
|
+
audit: "audit";
|
|
356
|
+
notify: "notify";
|
|
357
|
+
validate: "validate";
|
|
358
|
+
}>;
|
|
359
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
360
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
361
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
362
|
+
event: z.ZodEnum<{
|
|
363
|
+
beforeRead: "beforeRead";
|
|
364
|
+
afterRead: "afterRead";
|
|
365
|
+
beforeDelete: "beforeDelete";
|
|
366
|
+
afterDelete: "afterDelete";
|
|
367
|
+
}>;
|
|
368
|
+
}, z.core.$strip>;
|
|
369
|
+
type BuilderListTrigger = z.infer<typeof builderListTriggerSchema>;
|
|
370
|
+
declare const builderFormRecordSchema: z.ZodObject<{
|
|
371
|
+
id: z.ZodUUID;
|
|
372
|
+
title: z.ZodString;
|
|
373
|
+
description: z.ZodNullable<z.ZodString>;
|
|
374
|
+
version: z.ZodNumber;
|
|
375
|
+
createdAt: z.ZodISODateTime;
|
|
376
|
+
updatedAt: z.ZodISODateTime;
|
|
377
|
+
source: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
378
|
+
type: z.ZodLiteral<"dbTable">;
|
|
379
|
+
tableName: z.ZodString;
|
|
380
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
381
|
+
type: z.ZodLiteral<"apiEndpoint">;
|
|
382
|
+
basePath: z.ZodString;
|
|
383
|
+
listPath: z.ZodOptional<z.ZodString>;
|
|
384
|
+
createPath: z.ZodOptional<z.ZodString>;
|
|
385
|
+
updatePath: z.ZodOptional<z.ZodString>;
|
|
386
|
+
deletePath: z.ZodOptional<z.ZodString>;
|
|
387
|
+
}, z.core.$strip>], "type">>;
|
|
388
|
+
type: z.ZodLiteral<"form">;
|
|
389
|
+
schema: z.ZodObject<{
|
|
390
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
391
|
+
key: z.ZodString;
|
|
392
|
+
label: z.ZodString;
|
|
393
|
+
type: z.ZodEnum<{
|
|
394
|
+
number: "number";
|
|
395
|
+
date: "date";
|
|
396
|
+
text: "text";
|
|
397
|
+
money: "money";
|
|
398
|
+
checkbox: "checkbox";
|
|
399
|
+
textarea: "textarea";
|
|
400
|
+
select: "select";
|
|
401
|
+
}>;
|
|
402
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
403
|
+
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
404
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
|
405
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
406
|
+
description: z.ZodOptional<z.ZodString>;
|
|
407
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
408
|
+
label: z.ZodString;
|
|
409
|
+
value: z.ZodString;
|
|
410
|
+
}, z.core.$strip>>>;
|
|
411
|
+
optionsSource: z.ZodOptional<z.ZodObject<{
|
|
412
|
+
type: z.ZodLiteral<"dbTable">;
|
|
413
|
+
tableName: z.ZodString;
|
|
414
|
+
valueField: z.ZodString;
|
|
415
|
+
labelField: z.ZodString;
|
|
416
|
+
searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
417
|
+
filterBy: z.ZodOptional<z.ZodObject<{
|
|
418
|
+
field: z.ZodString;
|
|
419
|
+
valueFromField: z.ZodString;
|
|
420
|
+
}, z.core.$strip>>;
|
|
421
|
+
}, z.core.$strip>>;
|
|
422
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
423
|
+
event: z.ZodEnum<{
|
|
424
|
+
onChange: "onChange";
|
|
425
|
+
onBlur: "onBlur";
|
|
426
|
+
}>;
|
|
427
|
+
action: z.ZodString;
|
|
428
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
429
|
+
debounceMs: z.ZodDefault<z.ZodNumber>;
|
|
430
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
431
|
+
}, z.core.$strip>>>;
|
|
432
|
+
}, z.core.$strip>>;
|
|
433
|
+
layout: z.ZodOptional<z.ZodObject<{
|
|
434
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
435
|
+
id: z.ZodString;
|
|
436
|
+
title: z.ZodOptional<z.ZodString>;
|
|
437
|
+
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>]>>;
|
|
438
|
+
fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
439
|
+
key: z.ZodString;
|
|
440
|
+
span: z.ZodDefault<z.ZodNumber>;
|
|
441
|
+
}, z.core.$strip>>>;
|
|
442
|
+
}, z.core.$strip>>>;
|
|
443
|
+
}, z.core.$strip>>;
|
|
444
|
+
subforms: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
445
|
+
key: z.ZodString;
|
|
446
|
+
label: z.ZodString;
|
|
447
|
+
viewId: z.ZodUUID;
|
|
448
|
+
parentField: z.ZodString;
|
|
449
|
+
childField: z.ZodString;
|
|
450
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
451
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
452
|
+
}, z.core.$strip>>>;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
455
|
+
action: z.ZodEnum<{
|
|
456
|
+
callApi: "callApi";
|
|
457
|
+
webhook: "webhook";
|
|
458
|
+
audit: "audit";
|
|
459
|
+
notify: "notify";
|
|
460
|
+
validate: "validate";
|
|
461
|
+
}>;
|
|
462
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
463
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
464
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
465
|
+
event: z.ZodEnum<{
|
|
466
|
+
beforeCreate: "beforeCreate";
|
|
467
|
+
afterCreate: "afterCreate";
|
|
468
|
+
beforeUpdate: "beforeUpdate";
|
|
469
|
+
afterUpdate: "afterUpdate";
|
|
470
|
+
}>;
|
|
471
|
+
}, z.core.$strip>>>;
|
|
472
|
+
}, z.core.$strip>;
|
|
473
|
+
type BuilderForm = z.infer<typeof builderFormRecordSchema>;
|
|
474
|
+
declare const builderListRecordSchema: z.ZodObject<{
|
|
475
|
+
id: z.ZodUUID;
|
|
476
|
+
title: z.ZodString;
|
|
477
|
+
description: z.ZodNullable<z.ZodString>;
|
|
478
|
+
version: z.ZodNumber;
|
|
479
|
+
createdAt: z.ZodISODateTime;
|
|
480
|
+
updatedAt: z.ZodISODateTime;
|
|
481
|
+
source: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
482
|
+
type: z.ZodLiteral<"dbTable">;
|
|
483
|
+
tableName: z.ZodString;
|
|
484
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
485
|
+
type: z.ZodLiteral<"apiEndpoint">;
|
|
486
|
+
basePath: z.ZodString;
|
|
487
|
+
listPath: z.ZodOptional<z.ZodString>;
|
|
488
|
+
createPath: z.ZodOptional<z.ZodString>;
|
|
489
|
+
updatePath: z.ZodOptional<z.ZodString>;
|
|
490
|
+
deletePath: z.ZodOptional<z.ZodString>;
|
|
491
|
+
}, z.core.$strip>], "type">>;
|
|
492
|
+
type: z.ZodLiteral<"list">;
|
|
493
|
+
schema: z.ZodObject<{
|
|
494
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
495
|
+
key: z.ZodString;
|
|
496
|
+
label: z.ZodString;
|
|
497
|
+
sortable: z.ZodDefault<z.ZodBoolean>;
|
|
498
|
+
align: z.ZodDefault<z.ZodEnum<{
|
|
499
|
+
left: "left";
|
|
500
|
+
right: "right";
|
|
501
|
+
}>>;
|
|
502
|
+
}, z.core.$strip>>;
|
|
503
|
+
}, z.core.$strip>;
|
|
504
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
505
|
+
action: z.ZodEnum<{
|
|
506
|
+
callApi: "callApi";
|
|
507
|
+
webhook: "webhook";
|
|
508
|
+
audit: "audit";
|
|
509
|
+
notify: "notify";
|
|
510
|
+
validate: "validate";
|
|
511
|
+
}>;
|
|
512
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
513
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
514
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
515
|
+
event: z.ZodEnum<{
|
|
516
|
+
beforeRead: "beforeRead";
|
|
517
|
+
afterRead: "afterRead";
|
|
518
|
+
beforeDelete: "beforeDelete";
|
|
519
|
+
afterDelete: "afterDelete";
|
|
520
|
+
}>;
|
|
521
|
+
}, z.core.$strip>>>;
|
|
522
|
+
}, z.core.$strip>;
|
|
523
|
+
type BuilderList = z.infer<typeof builderListRecordSchema>;
|
|
524
|
+
declare const builderDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
525
|
+
id: z.ZodUUID;
|
|
526
|
+
title: z.ZodString;
|
|
527
|
+
description: z.ZodNullable<z.ZodString>;
|
|
528
|
+
version: z.ZodNumber;
|
|
529
|
+
createdAt: z.ZodISODateTime;
|
|
530
|
+
updatedAt: z.ZodISODateTime;
|
|
531
|
+
source: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
532
|
+
type: z.ZodLiteral<"dbTable">;
|
|
533
|
+
tableName: z.ZodString;
|
|
534
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
535
|
+
type: z.ZodLiteral<"apiEndpoint">;
|
|
536
|
+
basePath: z.ZodString;
|
|
537
|
+
listPath: z.ZodOptional<z.ZodString>;
|
|
538
|
+
createPath: z.ZodOptional<z.ZodString>;
|
|
539
|
+
updatePath: z.ZodOptional<z.ZodString>;
|
|
540
|
+
deletePath: z.ZodOptional<z.ZodString>;
|
|
541
|
+
}, z.core.$strip>], "type">>;
|
|
542
|
+
type: z.ZodLiteral<"form">;
|
|
543
|
+
schema: z.ZodObject<{
|
|
544
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
545
|
+
key: z.ZodString;
|
|
546
|
+
label: z.ZodString;
|
|
547
|
+
type: z.ZodEnum<{
|
|
548
|
+
number: "number";
|
|
549
|
+
date: "date";
|
|
550
|
+
text: "text";
|
|
551
|
+
money: "money";
|
|
552
|
+
checkbox: "checkbox";
|
|
553
|
+
textarea: "textarea";
|
|
554
|
+
select: "select";
|
|
555
|
+
}>;
|
|
556
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
557
|
+
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
558
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
|
559
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
560
|
+
description: z.ZodOptional<z.ZodString>;
|
|
561
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
562
|
+
label: z.ZodString;
|
|
563
|
+
value: z.ZodString;
|
|
564
|
+
}, z.core.$strip>>>;
|
|
565
|
+
optionsSource: z.ZodOptional<z.ZodObject<{
|
|
566
|
+
type: z.ZodLiteral<"dbTable">;
|
|
567
|
+
tableName: z.ZodString;
|
|
568
|
+
valueField: z.ZodString;
|
|
569
|
+
labelField: z.ZodString;
|
|
570
|
+
searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
571
|
+
filterBy: z.ZodOptional<z.ZodObject<{
|
|
572
|
+
field: z.ZodString;
|
|
573
|
+
valueFromField: z.ZodString;
|
|
574
|
+
}, z.core.$strip>>;
|
|
575
|
+
}, z.core.$strip>>;
|
|
576
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
577
|
+
event: z.ZodEnum<{
|
|
578
|
+
onChange: "onChange";
|
|
579
|
+
onBlur: "onBlur";
|
|
580
|
+
}>;
|
|
581
|
+
action: z.ZodString;
|
|
582
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
583
|
+
debounceMs: z.ZodDefault<z.ZodNumber>;
|
|
584
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
585
|
+
}, z.core.$strip>>>;
|
|
586
|
+
}, z.core.$strip>>;
|
|
587
|
+
layout: z.ZodOptional<z.ZodObject<{
|
|
588
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
589
|
+
id: z.ZodString;
|
|
590
|
+
title: z.ZodOptional<z.ZodString>;
|
|
591
|
+
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>]>>;
|
|
592
|
+
fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
593
|
+
key: z.ZodString;
|
|
594
|
+
span: z.ZodDefault<z.ZodNumber>;
|
|
595
|
+
}, z.core.$strip>>>;
|
|
596
|
+
}, z.core.$strip>>>;
|
|
597
|
+
}, z.core.$strip>>;
|
|
598
|
+
subforms: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
599
|
+
key: z.ZodString;
|
|
600
|
+
label: z.ZodString;
|
|
601
|
+
viewId: z.ZodUUID;
|
|
602
|
+
parentField: z.ZodString;
|
|
603
|
+
childField: z.ZodString;
|
|
604
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
605
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
606
|
+
}, z.core.$strip>>>;
|
|
607
|
+
}, z.core.$strip>;
|
|
608
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
609
|
+
action: z.ZodEnum<{
|
|
610
|
+
callApi: "callApi";
|
|
611
|
+
webhook: "webhook";
|
|
612
|
+
audit: "audit";
|
|
613
|
+
notify: "notify";
|
|
614
|
+
validate: "validate";
|
|
615
|
+
}>;
|
|
616
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
617
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
618
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
619
|
+
event: z.ZodEnum<{
|
|
620
|
+
beforeCreate: "beforeCreate";
|
|
621
|
+
afterCreate: "afterCreate";
|
|
622
|
+
beforeUpdate: "beforeUpdate";
|
|
623
|
+
afterUpdate: "afterUpdate";
|
|
624
|
+
}>;
|
|
625
|
+
}, z.core.$strip>>>;
|
|
626
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
627
|
+
id: z.ZodUUID;
|
|
628
|
+
title: z.ZodString;
|
|
629
|
+
description: z.ZodNullable<z.ZodString>;
|
|
630
|
+
version: z.ZodNumber;
|
|
631
|
+
createdAt: z.ZodISODateTime;
|
|
632
|
+
updatedAt: z.ZodISODateTime;
|
|
633
|
+
source: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
634
|
+
type: z.ZodLiteral<"dbTable">;
|
|
635
|
+
tableName: z.ZodString;
|
|
636
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
637
|
+
type: z.ZodLiteral<"apiEndpoint">;
|
|
638
|
+
basePath: z.ZodString;
|
|
639
|
+
listPath: z.ZodOptional<z.ZodString>;
|
|
640
|
+
createPath: z.ZodOptional<z.ZodString>;
|
|
641
|
+
updatePath: z.ZodOptional<z.ZodString>;
|
|
642
|
+
deletePath: z.ZodOptional<z.ZodString>;
|
|
643
|
+
}, z.core.$strip>], "type">>;
|
|
644
|
+
type: z.ZodLiteral<"list">;
|
|
645
|
+
schema: z.ZodObject<{
|
|
646
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
647
|
+
key: z.ZodString;
|
|
648
|
+
label: z.ZodString;
|
|
649
|
+
sortable: z.ZodDefault<z.ZodBoolean>;
|
|
650
|
+
align: z.ZodDefault<z.ZodEnum<{
|
|
651
|
+
left: "left";
|
|
652
|
+
right: "right";
|
|
653
|
+
}>>;
|
|
654
|
+
}, z.core.$strip>>;
|
|
655
|
+
}, z.core.$strip>;
|
|
656
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
657
|
+
action: z.ZodEnum<{
|
|
658
|
+
callApi: "callApi";
|
|
659
|
+
webhook: "webhook";
|
|
660
|
+
audit: "audit";
|
|
661
|
+
notify: "notify";
|
|
662
|
+
validate: "validate";
|
|
663
|
+
}>;
|
|
664
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
665
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
666
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
667
|
+
event: z.ZodEnum<{
|
|
668
|
+
beforeRead: "beforeRead";
|
|
669
|
+
afterRead: "afterRead";
|
|
670
|
+
beforeDelete: "beforeDelete";
|
|
671
|
+
afterDelete: "afterDelete";
|
|
672
|
+
}>;
|
|
673
|
+
}, z.core.$strip>>>;
|
|
674
|
+
}, z.core.$strip>], "type">;
|
|
675
|
+
type BuilderDefinition = z.infer<typeof builderDefinitionSchema>;
|
|
676
|
+
declare const builderViewSchema: z.ZodObject<{
|
|
677
|
+
id: z.ZodUUID;
|
|
678
|
+
title: z.ZodString;
|
|
679
|
+
description: z.ZodNullable<z.ZodString>;
|
|
680
|
+
version: z.ZodNumber;
|
|
681
|
+
createdAt: z.ZodISODateTime;
|
|
682
|
+
updatedAt: z.ZodISODateTime;
|
|
683
|
+
formId: z.ZodNullable<z.ZodUUID>;
|
|
684
|
+
listId: z.ZodNullable<z.ZodUUID>;
|
|
685
|
+
form: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
686
|
+
id: z.ZodUUID;
|
|
687
|
+
title: z.ZodString;
|
|
688
|
+
description: z.ZodNullable<z.ZodString>;
|
|
689
|
+
version: z.ZodNumber;
|
|
690
|
+
createdAt: z.ZodISODateTime;
|
|
691
|
+
updatedAt: z.ZodISODateTime;
|
|
692
|
+
source: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
693
|
+
type: z.ZodLiteral<"dbTable">;
|
|
694
|
+
tableName: z.ZodString;
|
|
695
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
696
|
+
type: z.ZodLiteral<"apiEndpoint">;
|
|
697
|
+
basePath: z.ZodString;
|
|
698
|
+
listPath: z.ZodOptional<z.ZodString>;
|
|
699
|
+
createPath: z.ZodOptional<z.ZodString>;
|
|
700
|
+
updatePath: z.ZodOptional<z.ZodString>;
|
|
701
|
+
deletePath: z.ZodOptional<z.ZodString>;
|
|
702
|
+
}, z.core.$strip>], "type">>;
|
|
703
|
+
type: z.ZodLiteral<"form">;
|
|
704
|
+
schema: z.ZodObject<{
|
|
705
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
706
|
+
key: z.ZodString;
|
|
707
|
+
label: z.ZodString;
|
|
708
|
+
type: z.ZodEnum<{
|
|
709
|
+
number: "number";
|
|
710
|
+
date: "date";
|
|
711
|
+
text: "text";
|
|
712
|
+
money: "money";
|
|
713
|
+
checkbox: "checkbox";
|
|
714
|
+
textarea: "textarea";
|
|
715
|
+
select: "select";
|
|
716
|
+
}>;
|
|
717
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
718
|
+
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
719
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
|
720
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
721
|
+
description: z.ZodOptional<z.ZodString>;
|
|
722
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
723
|
+
label: z.ZodString;
|
|
724
|
+
value: z.ZodString;
|
|
725
|
+
}, z.core.$strip>>>;
|
|
726
|
+
optionsSource: z.ZodOptional<z.ZodObject<{
|
|
727
|
+
type: z.ZodLiteral<"dbTable">;
|
|
728
|
+
tableName: z.ZodString;
|
|
729
|
+
valueField: z.ZodString;
|
|
730
|
+
labelField: z.ZodString;
|
|
731
|
+
searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
732
|
+
filterBy: z.ZodOptional<z.ZodObject<{
|
|
733
|
+
field: z.ZodString;
|
|
734
|
+
valueFromField: z.ZodString;
|
|
735
|
+
}, z.core.$strip>>;
|
|
736
|
+
}, z.core.$strip>>;
|
|
737
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
738
|
+
event: z.ZodEnum<{
|
|
739
|
+
onChange: "onChange";
|
|
740
|
+
onBlur: "onBlur";
|
|
741
|
+
}>;
|
|
742
|
+
action: z.ZodString;
|
|
743
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
744
|
+
debounceMs: z.ZodDefault<z.ZodNumber>;
|
|
745
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
746
|
+
}, z.core.$strip>>>;
|
|
747
|
+
}, z.core.$strip>>;
|
|
748
|
+
layout: z.ZodOptional<z.ZodObject<{
|
|
749
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
750
|
+
id: z.ZodString;
|
|
751
|
+
title: z.ZodOptional<z.ZodString>;
|
|
752
|
+
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>]>>;
|
|
753
|
+
fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
754
|
+
key: z.ZodString;
|
|
755
|
+
span: z.ZodDefault<z.ZodNumber>;
|
|
756
|
+
}, z.core.$strip>>>;
|
|
757
|
+
}, z.core.$strip>>>;
|
|
758
|
+
}, z.core.$strip>>;
|
|
759
|
+
subforms: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
760
|
+
key: z.ZodString;
|
|
761
|
+
label: z.ZodString;
|
|
762
|
+
viewId: z.ZodUUID;
|
|
763
|
+
parentField: z.ZodString;
|
|
764
|
+
childField: z.ZodString;
|
|
765
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
766
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
767
|
+
}, z.core.$strip>>>;
|
|
768
|
+
}, z.core.$strip>;
|
|
769
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
770
|
+
action: z.ZodEnum<{
|
|
771
|
+
callApi: "callApi";
|
|
772
|
+
webhook: "webhook";
|
|
773
|
+
audit: "audit";
|
|
774
|
+
notify: "notify";
|
|
775
|
+
validate: "validate";
|
|
776
|
+
}>;
|
|
777
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
778
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
779
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
780
|
+
event: z.ZodEnum<{
|
|
781
|
+
beforeCreate: "beforeCreate";
|
|
782
|
+
afterCreate: "afterCreate";
|
|
783
|
+
beforeUpdate: "beforeUpdate";
|
|
784
|
+
afterUpdate: "afterUpdate";
|
|
785
|
+
}>;
|
|
786
|
+
}, z.core.$strip>>>;
|
|
787
|
+
}, z.core.$strip>>>;
|
|
788
|
+
list: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
789
|
+
id: z.ZodUUID;
|
|
790
|
+
title: z.ZodString;
|
|
791
|
+
description: z.ZodNullable<z.ZodString>;
|
|
792
|
+
version: z.ZodNumber;
|
|
793
|
+
createdAt: z.ZodISODateTime;
|
|
794
|
+
updatedAt: z.ZodISODateTime;
|
|
795
|
+
source: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
796
|
+
type: z.ZodLiteral<"dbTable">;
|
|
797
|
+
tableName: z.ZodString;
|
|
798
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
799
|
+
type: z.ZodLiteral<"apiEndpoint">;
|
|
800
|
+
basePath: z.ZodString;
|
|
801
|
+
listPath: z.ZodOptional<z.ZodString>;
|
|
802
|
+
createPath: z.ZodOptional<z.ZodString>;
|
|
803
|
+
updatePath: z.ZodOptional<z.ZodString>;
|
|
804
|
+
deletePath: z.ZodOptional<z.ZodString>;
|
|
805
|
+
}, z.core.$strip>], "type">>;
|
|
806
|
+
type: z.ZodLiteral<"list">;
|
|
807
|
+
schema: z.ZodObject<{
|
|
808
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
809
|
+
key: z.ZodString;
|
|
810
|
+
label: z.ZodString;
|
|
811
|
+
sortable: z.ZodDefault<z.ZodBoolean>;
|
|
812
|
+
align: z.ZodDefault<z.ZodEnum<{
|
|
813
|
+
left: "left";
|
|
814
|
+
right: "right";
|
|
815
|
+
}>>;
|
|
816
|
+
}, z.core.$strip>>;
|
|
817
|
+
}, z.core.$strip>;
|
|
818
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
819
|
+
action: z.ZodEnum<{
|
|
820
|
+
callApi: "callApi";
|
|
821
|
+
webhook: "webhook";
|
|
822
|
+
audit: "audit";
|
|
823
|
+
notify: "notify";
|
|
824
|
+
validate: "validate";
|
|
825
|
+
}>;
|
|
826
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
827
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
828
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
829
|
+
event: z.ZodEnum<{
|
|
830
|
+
beforeRead: "beforeRead";
|
|
831
|
+
afterRead: "afterRead";
|
|
832
|
+
beforeDelete: "beforeDelete";
|
|
833
|
+
afterDelete: "afterDelete";
|
|
834
|
+
}>;
|
|
835
|
+
}, z.core.$strip>>>;
|
|
836
|
+
}, z.core.$strip>>>;
|
|
837
|
+
permissionRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
838
|
+
permissionWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
839
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
840
|
+
event: z.ZodUnion<readonly [z.ZodEnum<{
|
|
841
|
+
beforeCreate: "beforeCreate";
|
|
842
|
+
afterCreate: "afterCreate";
|
|
843
|
+
beforeUpdate: "beforeUpdate";
|
|
844
|
+
afterUpdate: "afterUpdate";
|
|
845
|
+
}>, z.ZodEnum<{
|
|
846
|
+
beforeRead: "beforeRead";
|
|
847
|
+
afterRead: "afterRead";
|
|
848
|
+
beforeDelete: "beforeDelete";
|
|
849
|
+
afterDelete: "afterDelete";
|
|
850
|
+
}>]>;
|
|
851
|
+
action: z.ZodEnum<{
|
|
852
|
+
callApi: "callApi";
|
|
853
|
+
webhook: "webhook";
|
|
854
|
+
audit: "audit";
|
|
855
|
+
notify: "notify";
|
|
856
|
+
validate: "validate";
|
|
857
|
+
}>;
|
|
858
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
859
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
860
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
861
|
+
}, z.core.$strip>>>;
|
|
862
|
+
}, z.core.$strip>;
|
|
863
|
+
type BuilderView = z.infer<typeof builderViewSchema>;
|
|
864
|
+
declare const listBuilderFormsQuerySchema: z.ZodObject<{
|
|
865
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
866
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
867
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
868
|
+
search: z.ZodOptional<z.ZodString>;
|
|
869
|
+
}, z.core.$strip>;
|
|
870
|
+
type ListBuilderFormsQuery = z.infer<typeof listBuilderFormsQuerySchema>;
|
|
871
|
+
declare const listBuilderFormsResponseSchema: z.ZodObject<{
|
|
872
|
+
items: z.ZodArray<z.ZodObject<{
|
|
873
|
+
id: z.ZodUUID;
|
|
874
|
+
title: z.ZodString;
|
|
875
|
+
description: z.ZodNullable<z.ZodString>;
|
|
876
|
+
version: z.ZodNumber;
|
|
877
|
+
createdAt: z.ZodISODateTime;
|
|
878
|
+
updatedAt: z.ZodISODateTime;
|
|
879
|
+
source: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
880
|
+
type: z.ZodLiteral<"dbTable">;
|
|
881
|
+
tableName: z.ZodString;
|
|
882
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
883
|
+
type: z.ZodLiteral<"apiEndpoint">;
|
|
884
|
+
basePath: z.ZodString;
|
|
885
|
+
listPath: z.ZodOptional<z.ZodString>;
|
|
886
|
+
createPath: z.ZodOptional<z.ZodString>;
|
|
887
|
+
updatePath: z.ZodOptional<z.ZodString>;
|
|
888
|
+
deletePath: z.ZodOptional<z.ZodString>;
|
|
889
|
+
}, z.core.$strip>], "type">>;
|
|
890
|
+
type: z.ZodLiteral<"form">;
|
|
891
|
+
schema: z.ZodObject<{
|
|
892
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
893
|
+
key: z.ZodString;
|
|
894
|
+
label: z.ZodString;
|
|
895
|
+
type: z.ZodEnum<{
|
|
896
|
+
number: "number";
|
|
897
|
+
date: "date";
|
|
898
|
+
text: "text";
|
|
899
|
+
money: "money";
|
|
900
|
+
checkbox: "checkbox";
|
|
901
|
+
textarea: "textarea";
|
|
902
|
+
select: "select";
|
|
903
|
+
}>;
|
|
904
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
905
|
+
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
906
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
|
907
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
908
|
+
description: z.ZodOptional<z.ZodString>;
|
|
909
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
910
|
+
label: z.ZodString;
|
|
911
|
+
value: z.ZodString;
|
|
912
|
+
}, z.core.$strip>>>;
|
|
913
|
+
optionsSource: z.ZodOptional<z.ZodObject<{
|
|
914
|
+
type: z.ZodLiteral<"dbTable">;
|
|
915
|
+
tableName: z.ZodString;
|
|
916
|
+
valueField: z.ZodString;
|
|
917
|
+
labelField: z.ZodString;
|
|
918
|
+
searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
919
|
+
filterBy: z.ZodOptional<z.ZodObject<{
|
|
920
|
+
field: z.ZodString;
|
|
921
|
+
valueFromField: z.ZodString;
|
|
922
|
+
}, z.core.$strip>>;
|
|
923
|
+
}, z.core.$strip>>;
|
|
924
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
925
|
+
event: z.ZodEnum<{
|
|
926
|
+
onChange: "onChange";
|
|
927
|
+
onBlur: "onBlur";
|
|
928
|
+
}>;
|
|
929
|
+
action: z.ZodString;
|
|
930
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
931
|
+
debounceMs: z.ZodDefault<z.ZodNumber>;
|
|
932
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
933
|
+
}, z.core.$strip>>>;
|
|
934
|
+
}, z.core.$strip>>;
|
|
935
|
+
layout: z.ZodOptional<z.ZodObject<{
|
|
936
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
937
|
+
id: z.ZodString;
|
|
938
|
+
title: z.ZodOptional<z.ZodString>;
|
|
939
|
+
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>]>>;
|
|
940
|
+
fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
941
|
+
key: z.ZodString;
|
|
942
|
+
span: z.ZodDefault<z.ZodNumber>;
|
|
943
|
+
}, z.core.$strip>>>;
|
|
944
|
+
}, z.core.$strip>>>;
|
|
945
|
+
}, z.core.$strip>>;
|
|
946
|
+
subforms: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
947
|
+
key: z.ZodString;
|
|
948
|
+
label: z.ZodString;
|
|
949
|
+
viewId: z.ZodUUID;
|
|
950
|
+
parentField: z.ZodString;
|
|
951
|
+
childField: z.ZodString;
|
|
952
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
953
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
954
|
+
}, z.core.$strip>>>;
|
|
955
|
+
}, z.core.$strip>;
|
|
956
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
957
|
+
action: z.ZodEnum<{
|
|
958
|
+
callApi: "callApi";
|
|
959
|
+
webhook: "webhook";
|
|
960
|
+
audit: "audit";
|
|
961
|
+
notify: "notify";
|
|
962
|
+
validate: "validate";
|
|
963
|
+
}>;
|
|
964
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
965
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
966
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
967
|
+
event: z.ZodEnum<{
|
|
968
|
+
beforeCreate: "beforeCreate";
|
|
969
|
+
afterCreate: "afterCreate";
|
|
970
|
+
beforeUpdate: "beforeUpdate";
|
|
971
|
+
afterUpdate: "afterUpdate";
|
|
972
|
+
}>;
|
|
973
|
+
}, z.core.$strip>>>;
|
|
974
|
+
}, z.core.$strip>>;
|
|
975
|
+
total: z.ZodNumber;
|
|
976
|
+
page: z.ZodNumber;
|
|
977
|
+
pageSize: z.ZodNumber;
|
|
978
|
+
}, z.core.$strip>;
|
|
979
|
+
type ListBuilderFormsResponse = z.infer<typeof listBuilderFormsResponseSchema>;
|
|
980
|
+
declare const createBuilderFormSchema: z.ZodObject<{
|
|
981
|
+
title: z.ZodString;
|
|
982
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
983
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
984
|
+
type: z.ZodLiteral<"dbTable">;
|
|
985
|
+
tableName: z.ZodString;
|
|
986
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
987
|
+
type: z.ZodLiteral<"apiEndpoint">;
|
|
988
|
+
basePath: z.ZodString;
|
|
989
|
+
listPath: z.ZodOptional<z.ZodString>;
|
|
990
|
+
createPath: z.ZodOptional<z.ZodString>;
|
|
991
|
+
updatePath: z.ZodOptional<z.ZodString>;
|
|
992
|
+
deletePath: z.ZodOptional<z.ZodString>;
|
|
993
|
+
}, z.core.$strip>], "type">>>;
|
|
994
|
+
schema: z.ZodObject<{
|
|
995
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
996
|
+
key: z.ZodString;
|
|
997
|
+
label: z.ZodString;
|
|
998
|
+
type: z.ZodEnum<{
|
|
999
|
+
number: "number";
|
|
1000
|
+
date: "date";
|
|
1001
|
+
text: "text";
|
|
1002
|
+
money: "money";
|
|
1003
|
+
checkbox: "checkbox";
|
|
1004
|
+
textarea: "textarea";
|
|
1005
|
+
select: "select";
|
|
1006
|
+
}>;
|
|
1007
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1008
|
+
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
1009
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
|
1010
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
1011
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1012
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1013
|
+
label: z.ZodString;
|
|
1014
|
+
value: z.ZodString;
|
|
1015
|
+
}, z.core.$strip>>>;
|
|
1016
|
+
optionsSource: z.ZodOptional<z.ZodObject<{
|
|
1017
|
+
type: z.ZodLiteral<"dbTable">;
|
|
1018
|
+
tableName: z.ZodString;
|
|
1019
|
+
valueField: z.ZodString;
|
|
1020
|
+
labelField: z.ZodString;
|
|
1021
|
+
searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1022
|
+
filterBy: z.ZodOptional<z.ZodObject<{
|
|
1023
|
+
field: z.ZodString;
|
|
1024
|
+
valueFromField: z.ZodString;
|
|
1025
|
+
}, z.core.$strip>>;
|
|
1026
|
+
}, z.core.$strip>>;
|
|
1027
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1028
|
+
event: z.ZodEnum<{
|
|
1029
|
+
onChange: "onChange";
|
|
1030
|
+
onBlur: "onBlur";
|
|
1031
|
+
}>;
|
|
1032
|
+
action: z.ZodString;
|
|
1033
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1034
|
+
debounceMs: z.ZodDefault<z.ZodNumber>;
|
|
1035
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1036
|
+
}, z.core.$strip>>>;
|
|
1037
|
+
}, z.core.$strip>>;
|
|
1038
|
+
layout: z.ZodOptional<z.ZodObject<{
|
|
1039
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1040
|
+
id: z.ZodString;
|
|
1041
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1042
|
+
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>]>>;
|
|
1043
|
+
fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1044
|
+
key: z.ZodString;
|
|
1045
|
+
span: z.ZodDefault<z.ZodNumber>;
|
|
1046
|
+
}, z.core.$strip>>>;
|
|
1047
|
+
}, z.core.$strip>>>;
|
|
1048
|
+
}, z.core.$strip>>;
|
|
1049
|
+
subforms: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1050
|
+
key: z.ZodString;
|
|
1051
|
+
label: z.ZodString;
|
|
1052
|
+
viewId: z.ZodUUID;
|
|
1053
|
+
parentField: z.ZodString;
|
|
1054
|
+
childField: z.ZodString;
|
|
1055
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1056
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1057
|
+
}, z.core.$strip>>>;
|
|
1058
|
+
}, z.core.$strip>;
|
|
1059
|
+
triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1060
|
+
action: z.ZodEnum<{
|
|
1061
|
+
callApi: "callApi";
|
|
1062
|
+
webhook: "webhook";
|
|
1063
|
+
audit: "audit";
|
|
1064
|
+
notify: "notify";
|
|
1065
|
+
validate: "validate";
|
|
1066
|
+
}>;
|
|
1067
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1068
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
1069
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1070
|
+
event: z.ZodEnum<{
|
|
1071
|
+
beforeCreate: "beforeCreate";
|
|
1072
|
+
afterCreate: "afterCreate";
|
|
1073
|
+
beforeUpdate: "beforeUpdate";
|
|
1074
|
+
afterUpdate: "afterUpdate";
|
|
1075
|
+
}>;
|
|
1076
|
+
}, z.core.$strip>>>;
|
|
1077
|
+
}, z.core.$strip>;
|
|
1078
|
+
type CreateBuilderFormInput = z.infer<typeof createBuilderFormSchema>;
|
|
1079
|
+
declare const updateBuilderFormSchema: z.ZodObject<{
|
|
1080
|
+
title: z.ZodString;
|
|
1081
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1082
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1083
|
+
type: z.ZodLiteral<"dbTable">;
|
|
1084
|
+
tableName: z.ZodString;
|
|
1085
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1086
|
+
type: z.ZodLiteral<"apiEndpoint">;
|
|
1087
|
+
basePath: z.ZodString;
|
|
1088
|
+
listPath: z.ZodOptional<z.ZodString>;
|
|
1089
|
+
createPath: z.ZodOptional<z.ZodString>;
|
|
1090
|
+
updatePath: z.ZodOptional<z.ZodString>;
|
|
1091
|
+
deletePath: z.ZodOptional<z.ZodString>;
|
|
1092
|
+
}, z.core.$strip>], "type">>>;
|
|
1093
|
+
schema: z.ZodObject<{
|
|
1094
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
1095
|
+
key: z.ZodString;
|
|
1096
|
+
label: z.ZodString;
|
|
1097
|
+
type: z.ZodEnum<{
|
|
1098
|
+
number: "number";
|
|
1099
|
+
date: "date";
|
|
1100
|
+
text: "text";
|
|
1101
|
+
money: "money";
|
|
1102
|
+
checkbox: "checkbox";
|
|
1103
|
+
textarea: "textarea";
|
|
1104
|
+
select: "select";
|
|
1105
|
+
}>;
|
|
1106
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1107
|
+
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
1108
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
|
1109
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
1110
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1111
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1112
|
+
label: z.ZodString;
|
|
1113
|
+
value: z.ZodString;
|
|
1114
|
+
}, z.core.$strip>>>;
|
|
1115
|
+
optionsSource: z.ZodOptional<z.ZodObject<{
|
|
1116
|
+
type: z.ZodLiteral<"dbTable">;
|
|
1117
|
+
tableName: z.ZodString;
|
|
1118
|
+
valueField: z.ZodString;
|
|
1119
|
+
labelField: z.ZodString;
|
|
1120
|
+
searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1121
|
+
filterBy: z.ZodOptional<z.ZodObject<{
|
|
1122
|
+
field: z.ZodString;
|
|
1123
|
+
valueFromField: z.ZodString;
|
|
1124
|
+
}, z.core.$strip>>;
|
|
1125
|
+
}, z.core.$strip>>;
|
|
1126
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1127
|
+
event: z.ZodEnum<{
|
|
1128
|
+
onChange: "onChange";
|
|
1129
|
+
onBlur: "onBlur";
|
|
1130
|
+
}>;
|
|
1131
|
+
action: z.ZodString;
|
|
1132
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1133
|
+
debounceMs: z.ZodDefault<z.ZodNumber>;
|
|
1134
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1135
|
+
}, z.core.$strip>>>;
|
|
1136
|
+
}, z.core.$strip>>;
|
|
1137
|
+
layout: z.ZodOptional<z.ZodObject<{
|
|
1138
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1139
|
+
id: z.ZodString;
|
|
1140
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1141
|
+
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>]>>;
|
|
1142
|
+
fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1143
|
+
key: z.ZodString;
|
|
1144
|
+
span: z.ZodDefault<z.ZodNumber>;
|
|
1145
|
+
}, z.core.$strip>>>;
|
|
1146
|
+
}, z.core.$strip>>>;
|
|
1147
|
+
}, z.core.$strip>>;
|
|
1148
|
+
subforms: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1149
|
+
key: z.ZodString;
|
|
1150
|
+
label: z.ZodString;
|
|
1151
|
+
viewId: z.ZodUUID;
|
|
1152
|
+
parentField: z.ZodString;
|
|
1153
|
+
childField: z.ZodString;
|
|
1154
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1155
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1156
|
+
}, z.core.$strip>>>;
|
|
1157
|
+
}, z.core.$strip>;
|
|
1158
|
+
triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1159
|
+
action: z.ZodEnum<{
|
|
1160
|
+
callApi: "callApi";
|
|
1161
|
+
webhook: "webhook";
|
|
1162
|
+
audit: "audit";
|
|
1163
|
+
notify: "notify";
|
|
1164
|
+
validate: "validate";
|
|
1165
|
+
}>;
|
|
1166
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1167
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
1168
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1169
|
+
event: z.ZodEnum<{
|
|
1170
|
+
beforeCreate: "beforeCreate";
|
|
1171
|
+
afterCreate: "afterCreate";
|
|
1172
|
+
beforeUpdate: "beforeUpdate";
|
|
1173
|
+
afterUpdate: "afterUpdate";
|
|
1174
|
+
}>;
|
|
1175
|
+
}, z.core.$strip>>>;
|
|
1176
|
+
version: z.ZodNumber;
|
|
1177
|
+
}, z.core.$strip>;
|
|
1178
|
+
type UpdateBuilderFormInput = z.infer<typeof updateBuilderFormSchema>;
|
|
1179
|
+
declare const listBuilderListsQuerySchema: z.ZodObject<{
|
|
1180
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1181
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1182
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
1183
|
+
search: z.ZodOptional<z.ZodString>;
|
|
1184
|
+
}, z.core.$strip>;
|
|
1185
|
+
type ListBuilderListsQuery = z.infer<typeof listBuilderListsQuerySchema>;
|
|
1186
|
+
declare const listBuilderListsResponseSchema: z.ZodObject<{
|
|
1187
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1188
|
+
id: z.ZodUUID;
|
|
1189
|
+
title: z.ZodString;
|
|
1190
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1191
|
+
version: z.ZodNumber;
|
|
1192
|
+
createdAt: z.ZodISODateTime;
|
|
1193
|
+
updatedAt: z.ZodISODateTime;
|
|
1194
|
+
source: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1195
|
+
type: z.ZodLiteral<"dbTable">;
|
|
1196
|
+
tableName: z.ZodString;
|
|
1197
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1198
|
+
type: z.ZodLiteral<"apiEndpoint">;
|
|
1199
|
+
basePath: z.ZodString;
|
|
1200
|
+
listPath: z.ZodOptional<z.ZodString>;
|
|
1201
|
+
createPath: z.ZodOptional<z.ZodString>;
|
|
1202
|
+
updatePath: z.ZodOptional<z.ZodString>;
|
|
1203
|
+
deletePath: z.ZodOptional<z.ZodString>;
|
|
1204
|
+
}, z.core.$strip>], "type">>;
|
|
1205
|
+
type: z.ZodLiteral<"list">;
|
|
1206
|
+
schema: z.ZodObject<{
|
|
1207
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
1208
|
+
key: z.ZodString;
|
|
1209
|
+
label: z.ZodString;
|
|
1210
|
+
sortable: z.ZodDefault<z.ZodBoolean>;
|
|
1211
|
+
align: z.ZodDefault<z.ZodEnum<{
|
|
1212
|
+
left: "left";
|
|
1213
|
+
right: "right";
|
|
1214
|
+
}>>;
|
|
1215
|
+
}, z.core.$strip>>;
|
|
1216
|
+
}, z.core.$strip>;
|
|
1217
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1218
|
+
action: z.ZodEnum<{
|
|
1219
|
+
callApi: "callApi";
|
|
1220
|
+
webhook: "webhook";
|
|
1221
|
+
audit: "audit";
|
|
1222
|
+
notify: "notify";
|
|
1223
|
+
validate: "validate";
|
|
1224
|
+
}>;
|
|
1225
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1226
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
1227
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1228
|
+
event: z.ZodEnum<{
|
|
1229
|
+
beforeRead: "beforeRead";
|
|
1230
|
+
afterRead: "afterRead";
|
|
1231
|
+
beforeDelete: "beforeDelete";
|
|
1232
|
+
afterDelete: "afterDelete";
|
|
1233
|
+
}>;
|
|
1234
|
+
}, z.core.$strip>>>;
|
|
1235
|
+
}, z.core.$strip>>;
|
|
1236
|
+
total: z.ZodNumber;
|
|
1237
|
+
page: z.ZodNumber;
|
|
1238
|
+
pageSize: z.ZodNumber;
|
|
1239
|
+
}, z.core.$strip>;
|
|
1240
|
+
type ListBuilderListsResponse = z.infer<typeof listBuilderListsResponseSchema>;
|
|
1241
|
+
declare const createBuilderListSchema: z.ZodObject<{
|
|
1242
|
+
title: z.ZodString;
|
|
1243
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1244
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1245
|
+
type: z.ZodLiteral<"dbTable">;
|
|
1246
|
+
tableName: z.ZodString;
|
|
1247
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1248
|
+
type: z.ZodLiteral<"apiEndpoint">;
|
|
1249
|
+
basePath: z.ZodString;
|
|
1250
|
+
listPath: z.ZodOptional<z.ZodString>;
|
|
1251
|
+
createPath: z.ZodOptional<z.ZodString>;
|
|
1252
|
+
updatePath: z.ZodOptional<z.ZodString>;
|
|
1253
|
+
deletePath: z.ZodOptional<z.ZodString>;
|
|
1254
|
+
}, z.core.$strip>], "type">>>;
|
|
1255
|
+
schema: z.ZodObject<{
|
|
1256
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
1257
|
+
key: z.ZodString;
|
|
1258
|
+
label: z.ZodString;
|
|
1259
|
+
sortable: z.ZodDefault<z.ZodBoolean>;
|
|
1260
|
+
align: z.ZodDefault<z.ZodEnum<{
|
|
1261
|
+
left: "left";
|
|
1262
|
+
right: "right";
|
|
1263
|
+
}>>;
|
|
1264
|
+
}, z.core.$strip>>;
|
|
1265
|
+
}, z.core.$strip>;
|
|
1266
|
+
triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1267
|
+
action: z.ZodEnum<{
|
|
1268
|
+
callApi: "callApi";
|
|
1269
|
+
webhook: "webhook";
|
|
1270
|
+
audit: "audit";
|
|
1271
|
+
notify: "notify";
|
|
1272
|
+
validate: "validate";
|
|
1273
|
+
}>;
|
|
1274
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1275
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
1276
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1277
|
+
event: z.ZodEnum<{
|
|
1278
|
+
beforeRead: "beforeRead";
|
|
1279
|
+
afterRead: "afterRead";
|
|
1280
|
+
beforeDelete: "beforeDelete";
|
|
1281
|
+
afterDelete: "afterDelete";
|
|
1282
|
+
}>;
|
|
1283
|
+
}, z.core.$strip>>>;
|
|
1284
|
+
}, z.core.$strip>;
|
|
1285
|
+
type CreateBuilderListInput = z.infer<typeof createBuilderListSchema>;
|
|
1286
|
+
declare const updateBuilderListSchema: z.ZodObject<{
|
|
1287
|
+
title: z.ZodString;
|
|
1288
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1289
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1290
|
+
type: z.ZodLiteral<"dbTable">;
|
|
1291
|
+
tableName: z.ZodString;
|
|
1292
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1293
|
+
type: z.ZodLiteral<"apiEndpoint">;
|
|
1294
|
+
basePath: z.ZodString;
|
|
1295
|
+
listPath: z.ZodOptional<z.ZodString>;
|
|
1296
|
+
createPath: z.ZodOptional<z.ZodString>;
|
|
1297
|
+
updatePath: z.ZodOptional<z.ZodString>;
|
|
1298
|
+
deletePath: z.ZodOptional<z.ZodString>;
|
|
1299
|
+
}, z.core.$strip>], "type">>>;
|
|
1300
|
+
schema: z.ZodObject<{
|
|
1301
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
1302
|
+
key: z.ZodString;
|
|
1303
|
+
label: z.ZodString;
|
|
1304
|
+
sortable: z.ZodDefault<z.ZodBoolean>;
|
|
1305
|
+
align: z.ZodDefault<z.ZodEnum<{
|
|
1306
|
+
left: "left";
|
|
1307
|
+
right: "right";
|
|
1308
|
+
}>>;
|
|
1309
|
+
}, z.core.$strip>>;
|
|
1310
|
+
}, z.core.$strip>;
|
|
1311
|
+
triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1312
|
+
action: z.ZodEnum<{
|
|
1313
|
+
callApi: "callApi";
|
|
1314
|
+
webhook: "webhook";
|
|
1315
|
+
audit: "audit";
|
|
1316
|
+
notify: "notify";
|
|
1317
|
+
validate: "validate";
|
|
1318
|
+
}>;
|
|
1319
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1320
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
1321
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1322
|
+
event: z.ZodEnum<{
|
|
1323
|
+
beforeRead: "beforeRead";
|
|
1324
|
+
afterRead: "afterRead";
|
|
1325
|
+
beforeDelete: "beforeDelete";
|
|
1326
|
+
afterDelete: "afterDelete";
|
|
1327
|
+
}>;
|
|
1328
|
+
}, z.core.$strip>>>;
|
|
1329
|
+
version: z.ZodNumber;
|
|
1330
|
+
}, z.core.$strip>;
|
|
1331
|
+
type UpdateBuilderListInput = z.infer<typeof updateBuilderListSchema>;
|
|
1332
|
+
declare const listBuilderViewsQuerySchema: z.ZodObject<{
|
|
1333
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1334
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1335
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
1336
|
+
search: z.ZodOptional<z.ZodString>;
|
|
1337
|
+
}, z.core.$strip>;
|
|
1338
|
+
type ListBuilderViewsQuery = z.infer<typeof listBuilderViewsQuerySchema>;
|
|
1339
|
+
declare const listBuilderViewsResponseSchema: z.ZodObject<{
|
|
1340
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1341
|
+
id: z.ZodUUID;
|
|
1342
|
+
title: z.ZodString;
|
|
1343
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1344
|
+
version: z.ZodNumber;
|
|
1345
|
+
createdAt: z.ZodISODateTime;
|
|
1346
|
+
updatedAt: z.ZodISODateTime;
|
|
1347
|
+
formId: z.ZodNullable<z.ZodUUID>;
|
|
1348
|
+
listId: z.ZodNullable<z.ZodUUID>;
|
|
1349
|
+
form: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1350
|
+
id: z.ZodUUID;
|
|
1351
|
+
title: z.ZodString;
|
|
1352
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1353
|
+
version: z.ZodNumber;
|
|
1354
|
+
createdAt: z.ZodISODateTime;
|
|
1355
|
+
updatedAt: z.ZodISODateTime;
|
|
1356
|
+
source: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1357
|
+
type: z.ZodLiteral<"dbTable">;
|
|
1358
|
+
tableName: z.ZodString;
|
|
1359
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1360
|
+
type: z.ZodLiteral<"apiEndpoint">;
|
|
1361
|
+
basePath: z.ZodString;
|
|
1362
|
+
listPath: z.ZodOptional<z.ZodString>;
|
|
1363
|
+
createPath: z.ZodOptional<z.ZodString>;
|
|
1364
|
+
updatePath: z.ZodOptional<z.ZodString>;
|
|
1365
|
+
deletePath: z.ZodOptional<z.ZodString>;
|
|
1366
|
+
}, z.core.$strip>], "type">>;
|
|
1367
|
+
type: z.ZodLiteral<"form">;
|
|
1368
|
+
schema: z.ZodObject<{
|
|
1369
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
1370
|
+
key: z.ZodString;
|
|
1371
|
+
label: z.ZodString;
|
|
1372
|
+
type: z.ZodEnum<{
|
|
1373
|
+
number: "number";
|
|
1374
|
+
date: "date";
|
|
1375
|
+
text: "text";
|
|
1376
|
+
money: "money";
|
|
1377
|
+
checkbox: "checkbox";
|
|
1378
|
+
textarea: "textarea";
|
|
1379
|
+
select: "select";
|
|
1380
|
+
}>;
|
|
1381
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1382
|
+
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
1383
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
|
1384
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
1385
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1386
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1387
|
+
label: z.ZodString;
|
|
1388
|
+
value: z.ZodString;
|
|
1389
|
+
}, z.core.$strip>>>;
|
|
1390
|
+
optionsSource: z.ZodOptional<z.ZodObject<{
|
|
1391
|
+
type: z.ZodLiteral<"dbTable">;
|
|
1392
|
+
tableName: z.ZodString;
|
|
1393
|
+
valueField: z.ZodString;
|
|
1394
|
+
labelField: z.ZodString;
|
|
1395
|
+
searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1396
|
+
filterBy: z.ZodOptional<z.ZodObject<{
|
|
1397
|
+
field: z.ZodString;
|
|
1398
|
+
valueFromField: z.ZodString;
|
|
1399
|
+
}, z.core.$strip>>;
|
|
1400
|
+
}, z.core.$strip>>;
|
|
1401
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1402
|
+
event: z.ZodEnum<{
|
|
1403
|
+
onChange: "onChange";
|
|
1404
|
+
onBlur: "onBlur";
|
|
1405
|
+
}>;
|
|
1406
|
+
action: z.ZodString;
|
|
1407
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1408
|
+
debounceMs: z.ZodDefault<z.ZodNumber>;
|
|
1409
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1410
|
+
}, z.core.$strip>>>;
|
|
1411
|
+
}, z.core.$strip>>;
|
|
1412
|
+
layout: z.ZodOptional<z.ZodObject<{
|
|
1413
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1414
|
+
id: z.ZodString;
|
|
1415
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1416
|
+
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>]>>;
|
|
1417
|
+
fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1418
|
+
key: z.ZodString;
|
|
1419
|
+
span: z.ZodDefault<z.ZodNumber>;
|
|
1420
|
+
}, z.core.$strip>>>;
|
|
1421
|
+
}, z.core.$strip>>>;
|
|
1422
|
+
}, z.core.$strip>>;
|
|
1423
|
+
subforms: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1424
|
+
key: z.ZodString;
|
|
1425
|
+
label: z.ZodString;
|
|
1426
|
+
viewId: z.ZodUUID;
|
|
1427
|
+
parentField: z.ZodString;
|
|
1428
|
+
childField: z.ZodString;
|
|
1429
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1430
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1431
|
+
}, z.core.$strip>>>;
|
|
1432
|
+
}, z.core.$strip>;
|
|
1433
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1434
|
+
action: z.ZodEnum<{
|
|
1435
|
+
callApi: "callApi";
|
|
1436
|
+
webhook: "webhook";
|
|
1437
|
+
audit: "audit";
|
|
1438
|
+
notify: "notify";
|
|
1439
|
+
validate: "validate";
|
|
1440
|
+
}>;
|
|
1441
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1442
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
1443
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1444
|
+
event: z.ZodEnum<{
|
|
1445
|
+
beforeCreate: "beforeCreate";
|
|
1446
|
+
afterCreate: "afterCreate";
|
|
1447
|
+
beforeUpdate: "beforeUpdate";
|
|
1448
|
+
afterUpdate: "afterUpdate";
|
|
1449
|
+
}>;
|
|
1450
|
+
}, z.core.$strip>>>;
|
|
1451
|
+
}, z.core.$strip>>>;
|
|
1452
|
+
list: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1453
|
+
id: z.ZodUUID;
|
|
1454
|
+
title: z.ZodString;
|
|
1455
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1456
|
+
version: z.ZodNumber;
|
|
1457
|
+
createdAt: z.ZodISODateTime;
|
|
1458
|
+
updatedAt: z.ZodISODateTime;
|
|
1459
|
+
source: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1460
|
+
type: z.ZodLiteral<"dbTable">;
|
|
1461
|
+
tableName: z.ZodString;
|
|
1462
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1463
|
+
type: z.ZodLiteral<"apiEndpoint">;
|
|
1464
|
+
basePath: z.ZodString;
|
|
1465
|
+
listPath: z.ZodOptional<z.ZodString>;
|
|
1466
|
+
createPath: z.ZodOptional<z.ZodString>;
|
|
1467
|
+
updatePath: z.ZodOptional<z.ZodString>;
|
|
1468
|
+
deletePath: z.ZodOptional<z.ZodString>;
|
|
1469
|
+
}, z.core.$strip>], "type">>;
|
|
1470
|
+
type: z.ZodLiteral<"list">;
|
|
1471
|
+
schema: z.ZodObject<{
|
|
1472
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
1473
|
+
key: z.ZodString;
|
|
1474
|
+
label: z.ZodString;
|
|
1475
|
+
sortable: z.ZodDefault<z.ZodBoolean>;
|
|
1476
|
+
align: z.ZodDefault<z.ZodEnum<{
|
|
1477
|
+
left: "left";
|
|
1478
|
+
right: "right";
|
|
1479
|
+
}>>;
|
|
1480
|
+
}, z.core.$strip>>;
|
|
1481
|
+
}, z.core.$strip>;
|
|
1482
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1483
|
+
action: z.ZodEnum<{
|
|
1484
|
+
callApi: "callApi";
|
|
1485
|
+
webhook: "webhook";
|
|
1486
|
+
audit: "audit";
|
|
1487
|
+
notify: "notify";
|
|
1488
|
+
validate: "validate";
|
|
1489
|
+
}>;
|
|
1490
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1491
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
1492
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1493
|
+
event: z.ZodEnum<{
|
|
1494
|
+
beforeRead: "beforeRead";
|
|
1495
|
+
afterRead: "afterRead";
|
|
1496
|
+
beforeDelete: "beforeDelete";
|
|
1497
|
+
afterDelete: "afterDelete";
|
|
1498
|
+
}>;
|
|
1499
|
+
}, z.core.$strip>>>;
|
|
1500
|
+
}, z.core.$strip>>>;
|
|
1501
|
+
permissionRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1502
|
+
permissionWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1503
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1504
|
+
event: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1505
|
+
beforeCreate: "beforeCreate";
|
|
1506
|
+
afterCreate: "afterCreate";
|
|
1507
|
+
beforeUpdate: "beforeUpdate";
|
|
1508
|
+
afterUpdate: "afterUpdate";
|
|
1509
|
+
}>, z.ZodEnum<{
|
|
1510
|
+
beforeRead: "beforeRead";
|
|
1511
|
+
afterRead: "afterRead";
|
|
1512
|
+
beforeDelete: "beforeDelete";
|
|
1513
|
+
afterDelete: "afterDelete";
|
|
1514
|
+
}>]>;
|
|
1515
|
+
action: z.ZodEnum<{
|
|
1516
|
+
callApi: "callApi";
|
|
1517
|
+
webhook: "webhook";
|
|
1518
|
+
audit: "audit";
|
|
1519
|
+
notify: "notify";
|
|
1520
|
+
validate: "validate";
|
|
1521
|
+
}>;
|
|
1522
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1523
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
1524
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1525
|
+
}, z.core.$strip>>>;
|
|
1526
|
+
}, z.core.$strip>>;
|
|
1527
|
+
total: z.ZodNumber;
|
|
1528
|
+
page: z.ZodNumber;
|
|
1529
|
+
pageSize: z.ZodNumber;
|
|
1530
|
+
}, z.core.$strip>;
|
|
1531
|
+
type ListBuilderViewsResponse = z.infer<typeof listBuilderViewsResponseSchema>;
|
|
1532
|
+
declare const createBuilderViewSchema: z.ZodObject<{
|
|
1533
|
+
title: z.ZodString;
|
|
1534
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1535
|
+
formId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1536
|
+
listId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1537
|
+
permissionRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1538
|
+
permissionWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1539
|
+
triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1540
|
+
event: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1541
|
+
beforeCreate: "beforeCreate";
|
|
1542
|
+
afterCreate: "afterCreate";
|
|
1543
|
+
beforeUpdate: "beforeUpdate";
|
|
1544
|
+
afterUpdate: "afterUpdate";
|
|
1545
|
+
}>, z.ZodEnum<{
|
|
1546
|
+
beforeRead: "beforeRead";
|
|
1547
|
+
afterRead: "afterRead";
|
|
1548
|
+
beforeDelete: "beforeDelete";
|
|
1549
|
+
afterDelete: "afterDelete";
|
|
1550
|
+
}>]>;
|
|
1551
|
+
action: z.ZodEnum<{
|
|
1552
|
+
callApi: "callApi";
|
|
1553
|
+
webhook: "webhook";
|
|
1554
|
+
audit: "audit";
|
|
1555
|
+
notify: "notify";
|
|
1556
|
+
validate: "validate";
|
|
1557
|
+
}>;
|
|
1558
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1559
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
1560
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1561
|
+
}, z.core.$strip>>>;
|
|
1562
|
+
}, z.core.$strip>;
|
|
1563
|
+
type CreateBuilderViewInput = z.infer<typeof createBuilderViewSchema>;
|
|
1564
|
+
declare const updateBuilderViewSchema: z.ZodObject<{
|
|
1565
|
+
title: z.ZodString;
|
|
1566
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1567
|
+
formId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1568
|
+
listId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1569
|
+
permissionRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1570
|
+
permissionWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1571
|
+
triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1572
|
+
event: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1573
|
+
beforeCreate: "beforeCreate";
|
|
1574
|
+
afterCreate: "afterCreate";
|
|
1575
|
+
beforeUpdate: "beforeUpdate";
|
|
1576
|
+
afterUpdate: "afterUpdate";
|
|
1577
|
+
}>, z.ZodEnum<{
|
|
1578
|
+
beforeRead: "beforeRead";
|
|
1579
|
+
afterRead: "afterRead";
|
|
1580
|
+
beforeDelete: "beforeDelete";
|
|
1581
|
+
afterDelete: "afterDelete";
|
|
1582
|
+
}>]>;
|
|
1583
|
+
action: z.ZodEnum<{
|
|
1584
|
+
callApi: "callApi";
|
|
1585
|
+
webhook: "webhook";
|
|
1586
|
+
audit: "audit";
|
|
1587
|
+
notify: "notify";
|
|
1588
|
+
validate: "validate";
|
|
1589
|
+
}>;
|
|
1590
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1591
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
1592
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1593
|
+
}, z.core.$strip>>>;
|
|
1594
|
+
version: z.ZodNumber;
|
|
1595
|
+
}, z.core.$strip>;
|
|
1596
|
+
type UpdateBuilderViewInput = z.infer<typeof updateBuilderViewSchema>;
|
|
1597
|
+
declare const replicateBuilderEntitySchema: z.ZodObject<{
|
|
1598
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1599
|
+
}, z.core.$strip>;
|
|
1600
|
+
type ReplicateBuilderEntityInput = z.infer<typeof replicateBuilderEntitySchema>;
|
|
1601
|
+
declare const builderViewEntrySchema: z.ZodObject<{
|
|
1602
|
+
id: z.ZodUUID;
|
|
1603
|
+
viewId: z.ZodUUID;
|
|
1604
|
+
values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1605
|
+
version: z.ZodNumber;
|
|
1606
|
+
createdAt: z.ZodISODateTime;
|
|
1607
|
+
updatedAt: z.ZodISODateTime;
|
|
1608
|
+
}, z.core.$strip>;
|
|
1609
|
+
type BuilderViewEntry = z.infer<typeof builderViewEntrySchema>;
|
|
1610
|
+
declare const listBuilderFieldOptionsQuerySchema: z.ZodObject<{
|
|
1611
|
+
search: z.ZodOptional<z.ZodString>;
|
|
1612
|
+
}, z.core.$loose>;
|
|
1613
|
+
type ListBuilderFieldOptionsQuery = z.infer<typeof listBuilderFieldOptionsQuerySchema> & {
|
|
1614
|
+
depends?: Record<string, string>;
|
|
1615
|
+
};
|
|
1616
|
+
declare const listBuilderFieldOptionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1617
|
+
label: z.ZodString;
|
|
1618
|
+
value: z.ZodString;
|
|
1619
|
+
}, z.core.$strip>>;
|
|
1620
|
+
type ListBuilderFieldOptionsResponse = z.infer<typeof listBuilderFieldOptionsResponseSchema>;
|
|
1621
|
+
declare const runBuilderFieldTriggerSchema: z.ZodObject<{
|
|
1622
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
1623
|
+
values: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1624
|
+
}, z.core.$strip>;
|
|
1625
|
+
type RunBuilderFieldTriggerInput = z.infer<typeof runBuilderFieldTriggerSchema>;
|
|
1626
|
+
declare const builderFieldTriggerToastSchema: z.ZodObject<{
|
|
1627
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
1628
|
+
error: "error";
|
|
1629
|
+
success: "success";
|
|
1630
|
+
info: "info";
|
|
1631
|
+
warning: "warning";
|
|
1632
|
+
}>>;
|
|
1633
|
+
message: z.ZodString;
|
|
1634
|
+
}, z.core.$strip>;
|
|
1635
|
+
type BuilderFieldTriggerToast = z.infer<typeof builderFieldTriggerToastSchema>;
|
|
1636
|
+
declare const builderFieldTriggerPatchSchema: z.ZodObject<{
|
|
1637
|
+
field: z.ZodString;
|
|
1638
|
+
value: z.ZodUnknown;
|
|
1639
|
+
}, z.core.$strip>;
|
|
1640
|
+
type BuilderFieldTriggerPatch = z.infer<typeof builderFieldTriggerPatchSchema>;
|
|
1641
|
+
declare const builderFieldTriggerResponseSchema: z.ZodObject<{
|
|
1642
|
+
schema: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1643
|
+
field: z.ZodString;
|
|
1644
|
+
value: z.ZodUnknown;
|
|
1645
|
+
}, z.core.$strip>>>;
|
|
1646
|
+
valuesPatch: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1647
|
+
fieldErrors: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1648
|
+
toast: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1649
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
1650
|
+
error: "error";
|
|
1651
|
+
success: "success";
|
|
1652
|
+
info: "info";
|
|
1653
|
+
warning: "warning";
|
|
1654
|
+
}>>;
|
|
1655
|
+
message: z.ZodString;
|
|
1656
|
+
}, z.core.$strip>>>;
|
|
1657
|
+
}, z.core.$strip>;
|
|
1658
|
+
type BuilderFieldTriggerResponse = z.infer<typeof builderFieldTriggerResponseSchema>;
|
|
1659
|
+
declare const listBuilderViewEntriesQuerySchema: z.ZodObject<{
|
|
1660
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1661
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1662
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
1663
|
+
search: z.ZodOptional<z.ZodString>;
|
|
1664
|
+
filterField: z.ZodOptional<z.ZodString>;
|
|
1665
|
+
filterValue: z.ZodOptional<z.ZodString>;
|
|
1666
|
+
}, z.core.$strip>;
|
|
1667
|
+
type ListBuilderViewEntriesQuery = z.infer<typeof listBuilderViewEntriesQuerySchema>;
|
|
1668
|
+
declare const listBuilderViewEntriesResponseSchema: z.ZodObject<{
|
|
1669
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1670
|
+
id: z.ZodUUID;
|
|
1671
|
+
viewId: z.ZodUUID;
|
|
1672
|
+
values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1673
|
+
version: z.ZodNumber;
|
|
1674
|
+
createdAt: z.ZodISODateTime;
|
|
1675
|
+
updatedAt: z.ZodISODateTime;
|
|
1676
|
+
}, z.core.$strip>>;
|
|
1677
|
+
total: z.ZodNumber;
|
|
1678
|
+
page: z.ZodNumber;
|
|
1679
|
+
pageSize: z.ZodNumber;
|
|
1680
|
+
}, z.core.$strip>;
|
|
1681
|
+
type ListBuilderViewEntriesResponse = z.infer<typeof listBuilderViewEntriesResponseSchema>;
|
|
1682
|
+
declare const createBuilderViewEntrySchema: z.ZodObject<{
|
|
1683
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
1684
|
+
values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1685
|
+
}, z.core.$strip>;
|
|
1686
|
+
type CreateBuilderViewEntryInput = z.infer<typeof createBuilderViewEntrySchema>;
|
|
1687
|
+
declare const builderCompositeDataRowSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1688
|
+
type BuilderCompositeDataRow = z.infer<typeof builderCompositeDataRowSchema>;
|
|
1689
|
+
declare const builderCompositeDataSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
1690
|
+
type BuilderCompositeData = z.infer<typeof builderCompositeDataSchema>;
|
|
1691
|
+
declare const createCompositeBuilderViewEntrySchema: z.ZodObject<{
|
|
1692
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
1693
|
+
}, z.core.$strip>;
|
|
1694
|
+
type CreateCompositeBuilderViewEntryInput = z.infer<typeof createCompositeBuilderViewEntrySchema>;
|
|
1695
|
+
declare const updateCompositeBuilderViewEntrySchema: z.ZodObject<{
|
|
1696
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
1697
|
+
}, z.core.$strip>;
|
|
1698
|
+
type UpdateCompositeBuilderViewEntryInput = z.infer<typeof updateCompositeBuilderViewEntrySchema>;
|
|
1699
|
+
declare const updateBuilderViewEntrySchema: z.ZodObject<{
|
|
1700
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
1701
|
+
values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1702
|
+
version: z.ZodNumber;
|
|
1703
|
+
}, z.core.$strip>;
|
|
1704
|
+
type UpdateBuilderViewEntryInput = z.infer<typeof updateBuilderViewEntrySchema>;
|
|
1705
|
+
|
|
1706
|
+
type builder_BuilderColumn = BuilderColumn;
|
|
1707
|
+
type builder_BuilderCompositeData = BuilderCompositeData;
|
|
1708
|
+
type builder_BuilderCompositeDataRow = BuilderCompositeDataRow;
|
|
1709
|
+
type builder_BuilderDatasource = BuilderDatasource;
|
|
1710
|
+
type builder_BuilderDbColumn = BuilderDbColumn;
|
|
1711
|
+
type builder_BuilderDbTable = BuilderDbTable;
|
|
1712
|
+
type builder_BuilderDefinition = BuilderDefinition;
|
|
1713
|
+
type builder_BuilderDefinitionType = BuilderDefinitionType;
|
|
1714
|
+
type builder_BuilderField = BuilderField;
|
|
1715
|
+
type builder_BuilderFieldTrigger = BuilderFieldTrigger;
|
|
1716
|
+
type builder_BuilderFieldTriggerEvent = BuilderFieldTriggerEvent;
|
|
1717
|
+
type builder_BuilderFieldTriggerPatch = BuilderFieldTriggerPatch;
|
|
1718
|
+
type builder_BuilderFieldTriggerResponse = BuilderFieldTriggerResponse;
|
|
1719
|
+
type builder_BuilderFieldTriggerToast = BuilderFieldTriggerToast;
|
|
1720
|
+
type builder_BuilderFieldType = BuilderFieldType;
|
|
1721
|
+
type builder_BuilderForm = BuilderForm;
|
|
1722
|
+
type builder_BuilderFormLayout = BuilderFormLayout;
|
|
1723
|
+
type builder_BuilderFormLayoutField = BuilderFormLayoutField;
|
|
1724
|
+
type builder_BuilderFormLayoutGroup = BuilderFormLayoutGroup;
|
|
1725
|
+
type builder_BuilderFormSchema = BuilderFormSchema;
|
|
1726
|
+
type builder_BuilderFormSubform = BuilderFormSubform;
|
|
1727
|
+
type builder_BuilderFormTrigger = BuilderFormTrigger;
|
|
1728
|
+
type builder_BuilderFormTriggerEvent = BuilderFormTriggerEvent;
|
|
1729
|
+
type builder_BuilderList = BuilderList;
|
|
1730
|
+
type builder_BuilderListSchema = BuilderListSchema;
|
|
1731
|
+
type builder_BuilderListTrigger = BuilderListTrigger;
|
|
1732
|
+
type builder_BuilderListTriggerEvent = BuilderListTriggerEvent;
|
|
1733
|
+
type builder_BuilderPermission = BuilderPermission;
|
|
1734
|
+
type builder_BuilderSelectOption = BuilderSelectOption;
|
|
1735
|
+
type builder_BuilderSelectOptionsSource = BuilderSelectOptionsSource;
|
|
1736
|
+
type builder_BuilderTrigger = BuilderTrigger;
|
|
1737
|
+
type builder_BuilderTriggerEvent = BuilderTriggerEvent;
|
|
1738
|
+
type builder_BuilderView = BuilderView;
|
|
1739
|
+
type builder_BuilderViewEntry = BuilderViewEntry;
|
|
1740
|
+
type builder_CreateBuilderFormInput = CreateBuilderFormInput;
|
|
1741
|
+
type builder_CreateBuilderListInput = CreateBuilderListInput;
|
|
1742
|
+
type builder_CreateBuilderViewEntryInput = CreateBuilderViewEntryInput;
|
|
1743
|
+
type builder_CreateBuilderViewInput = CreateBuilderViewInput;
|
|
1744
|
+
type builder_CreateCompositeBuilderViewEntryInput = CreateCompositeBuilderViewEntryInput;
|
|
1745
|
+
type builder_ListBuilderFieldOptionsQuery = ListBuilderFieldOptionsQuery;
|
|
1746
|
+
type builder_ListBuilderFieldOptionsResponse = ListBuilderFieldOptionsResponse;
|
|
1747
|
+
type builder_ListBuilderFormsQuery = ListBuilderFormsQuery;
|
|
1748
|
+
type builder_ListBuilderFormsResponse = ListBuilderFormsResponse;
|
|
1749
|
+
type builder_ListBuilderListsQuery = ListBuilderListsQuery;
|
|
1750
|
+
type builder_ListBuilderListsResponse = ListBuilderListsResponse;
|
|
1751
|
+
type builder_ListBuilderViewEntriesQuery = ListBuilderViewEntriesQuery;
|
|
1752
|
+
type builder_ListBuilderViewEntriesResponse = ListBuilderViewEntriesResponse;
|
|
1753
|
+
type builder_ListBuilderViewsQuery = ListBuilderViewsQuery;
|
|
1754
|
+
type builder_ListBuilderViewsResponse = ListBuilderViewsResponse;
|
|
1755
|
+
type builder_ReplicateBuilderEntityInput = ReplicateBuilderEntityInput;
|
|
1756
|
+
type builder_RunBuilderFieldTriggerInput = RunBuilderFieldTriggerInput;
|
|
1757
|
+
type builder_UpdateBuilderFormInput = UpdateBuilderFormInput;
|
|
1758
|
+
type builder_UpdateBuilderListInput = UpdateBuilderListInput;
|
|
1759
|
+
type builder_UpdateBuilderViewEntryInput = UpdateBuilderViewEntryInput;
|
|
1760
|
+
type builder_UpdateBuilderViewInput = UpdateBuilderViewInput;
|
|
1761
|
+
type builder_UpdateCompositeBuilderViewEntryInput = UpdateCompositeBuilderViewEntryInput;
|
|
1762
|
+
declare const builder_builderColumnSchema: typeof builderColumnSchema;
|
|
1763
|
+
declare const builder_builderCompositeDataRowSchema: typeof builderCompositeDataRowSchema;
|
|
1764
|
+
declare const builder_builderCompositeDataSchema: typeof builderCompositeDataSchema;
|
|
1765
|
+
declare const builder_builderDatasourceSchema: typeof builderDatasourceSchema;
|
|
1766
|
+
declare const builder_builderDbColumnSchema: typeof builderDbColumnSchema;
|
|
1767
|
+
declare const builder_builderDbTableSchema: typeof builderDbTableSchema;
|
|
1768
|
+
declare const builder_builderDefinitionSchema: typeof builderDefinitionSchema;
|
|
1769
|
+
declare const builder_builderDefinitionTypeSchema: typeof builderDefinitionTypeSchema;
|
|
1770
|
+
declare const builder_builderFieldSchema: typeof builderFieldSchema;
|
|
1771
|
+
declare const builder_builderFieldTriggerEventSchema: typeof builderFieldTriggerEventSchema;
|
|
1772
|
+
declare const builder_builderFieldTriggerPatchSchema: typeof builderFieldTriggerPatchSchema;
|
|
1773
|
+
declare const builder_builderFieldTriggerResponseSchema: typeof builderFieldTriggerResponseSchema;
|
|
1774
|
+
declare const builder_builderFieldTriggerSchema: typeof builderFieldTriggerSchema;
|
|
1775
|
+
declare const builder_builderFieldTriggerToastSchema: typeof builderFieldTriggerToastSchema;
|
|
1776
|
+
declare const builder_builderFieldTypeSchema: typeof builderFieldTypeSchema;
|
|
1777
|
+
declare const builder_builderFormLayoutFieldSchema: typeof builderFormLayoutFieldSchema;
|
|
1778
|
+
declare const builder_builderFormLayoutGroupSchema: typeof builderFormLayoutGroupSchema;
|
|
1779
|
+
declare const builder_builderFormLayoutSchema: typeof builderFormLayoutSchema;
|
|
1780
|
+
declare const builder_builderFormRecordSchema: typeof builderFormRecordSchema;
|
|
1781
|
+
declare const builder_builderFormSchema: typeof builderFormSchema;
|
|
1782
|
+
declare const builder_builderFormSubformSchema: typeof builderFormSubformSchema;
|
|
1783
|
+
declare const builder_builderFormTriggerEventSchema: typeof builderFormTriggerEventSchema;
|
|
1784
|
+
declare const builder_builderFormTriggerSchema: typeof builderFormTriggerSchema;
|
|
1785
|
+
declare const builder_builderListRecordSchema: typeof builderListRecordSchema;
|
|
1786
|
+
declare const builder_builderListSchema: typeof builderListSchema;
|
|
1787
|
+
declare const builder_builderListTriggerEventSchema: typeof builderListTriggerEventSchema;
|
|
1788
|
+
declare const builder_builderListTriggerSchema: typeof builderListTriggerSchema;
|
|
1789
|
+
declare const builder_builderSelectOptionSchema: typeof builderSelectOptionSchema;
|
|
1790
|
+
declare const builder_builderSelectOptionsSourceSchema: typeof builderSelectOptionsSourceSchema;
|
|
1791
|
+
declare const builder_builderTriggerEventSchema: typeof builderTriggerEventSchema;
|
|
1792
|
+
declare const builder_builderTriggerSchema: typeof builderTriggerSchema;
|
|
1793
|
+
declare const builder_builderViewEntrySchema: typeof builderViewEntrySchema;
|
|
1794
|
+
declare const builder_builderViewSchema: typeof builderViewSchema;
|
|
1795
|
+
declare const builder_createBuilderFormSchema: typeof createBuilderFormSchema;
|
|
1796
|
+
declare const builder_createBuilderListSchema: typeof createBuilderListSchema;
|
|
1797
|
+
declare const builder_createBuilderViewEntrySchema: typeof createBuilderViewEntrySchema;
|
|
1798
|
+
declare const builder_createBuilderViewSchema: typeof createBuilderViewSchema;
|
|
1799
|
+
declare const builder_createCompositeBuilderViewEntrySchema: typeof createCompositeBuilderViewEntrySchema;
|
|
1800
|
+
declare const builder_listBuilderFieldOptionsQuerySchema: typeof listBuilderFieldOptionsQuerySchema;
|
|
1801
|
+
declare const builder_listBuilderFieldOptionsResponseSchema: typeof listBuilderFieldOptionsResponseSchema;
|
|
1802
|
+
declare const builder_listBuilderFormsQuerySchema: typeof listBuilderFormsQuerySchema;
|
|
1803
|
+
declare const builder_listBuilderFormsResponseSchema: typeof listBuilderFormsResponseSchema;
|
|
1804
|
+
declare const builder_listBuilderListsQuerySchema: typeof listBuilderListsQuerySchema;
|
|
1805
|
+
declare const builder_listBuilderListsResponseSchema: typeof listBuilderListsResponseSchema;
|
|
1806
|
+
declare const builder_listBuilderViewEntriesQuerySchema: typeof listBuilderViewEntriesQuerySchema;
|
|
1807
|
+
declare const builder_listBuilderViewEntriesResponseSchema: typeof listBuilderViewEntriesResponseSchema;
|
|
1808
|
+
declare const builder_listBuilderViewsQuerySchema: typeof listBuilderViewsQuerySchema;
|
|
1809
|
+
declare const builder_listBuilderViewsResponseSchema: typeof listBuilderViewsResponseSchema;
|
|
1810
|
+
declare const builder_permissionSchema: typeof permissionSchema;
|
|
1811
|
+
declare const builder_replicateBuilderEntitySchema: typeof replicateBuilderEntitySchema;
|
|
1812
|
+
declare const builder_runBuilderFieldTriggerSchema: typeof runBuilderFieldTriggerSchema;
|
|
1813
|
+
declare const builder_updateBuilderFormSchema: typeof updateBuilderFormSchema;
|
|
1814
|
+
declare const builder_updateBuilderListSchema: typeof updateBuilderListSchema;
|
|
1815
|
+
declare const builder_updateBuilderViewEntrySchema: typeof updateBuilderViewEntrySchema;
|
|
1816
|
+
declare const builder_updateBuilderViewSchema: typeof updateBuilderViewSchema;
|
|
1817
|
+
declare const builder_updateCompositeBuilderViewEntrySchema: typeof updateCompositeBuilderViewEntrySchema;
|
|
1818
|
+
declare namespace builder {
|
|
1819
|
+
export { type builder_BuilderColumn as BuilderColumn, type builder_BuilderCompositeData as BuilderCompositeData, type builder_BuilderCompositeDataRow as BuilderCompositeDataRow, type builder_BuilderDatasource as BuilderDatasource, type builder_BuilderDbColumn as BuilderDbColumn, type builder_BuilderDbTable as BuilderDbTable, type builder_BuilderDefinition as BuilderDefinition, type builder_BuilderDefinitionType as BuilderDefinitionType, type builder_BuilderField as BuilderField, type builder_BuilderFieldTrigger as BuilderFieldTrigger, type builder_BuilderFieldTriggerEvent as BuilderFieldTriggerEvent, type builder_BuilderFieldTriggerPatch as BuilderFieldTriggerPatch, type builder_BuilderFieldTriggerResponse as BuilderFieldTriggerResponse, type builder_BuilderFieldTriggerToast as BuilderFieldTriggerToast, type builder_BuilderFieldType as BuilderFieldType, type builder_BuilderForm as BuilderForm, type builder_BuilderFormLayout as BuilderFormLayout, type builder_BuilderFormLayoutField as BuilderFormLayoutField, type builder_BuilderFormLayoutGroup as BuilderFormLayoutGroup, type builder_BuilderFormSchema as BuilderFormSchema, type builder_BuilderFormSubform as BuilderFormSubform, type builder_BuilderFormTrigger as BuilderFormTrigger, type builder_BuilderFormTriggerEvent as BuilderFormTriggerEvent, type builder_BuilderList as BuilderList, type builder_BuilderListSchema as BuilderListSchema, type builder_BuilderListTrigger as BuilderListTrigger, type builder_BuilderListTriggerEvent as BuilderListTriggerEvent, type builder_BuilderPermission as BuilderPermission, type builder_BuilderSelectOption as BuilderSelectOption, type builder_BuilderSelectOptionsSource as BuilderSelectOptionsSource, type builder_BuilderTrigger as BuilderTrigger, type builder_BuilderTriggerEvent as BuilderTriggerEvent, type builder_BuilderView as BuilderView, type builder_BuilderViewEntry as BuilderViewEntry, type builder_CreateBuilderFormInput as CreateBuilderFormInput, type builder_CreateBuilderListInput as CreateBuilderListInput, type builder_CreateBuilderViewEntryInput as CreateBuilderViewEntryInput, type builder_CreateBuilderViewInput as CreateBuilderViewInput, type builder_CreateCompositeBuilderViewEntryInput as CreateCompositeBuilderViewEntryInput, type builder_ListBuilderFieldOptionsQuery as ListBuilderFieldOptionsQuery, type builder_ListBuilderFieldOptionsResponse as ListBuilderFieldOptionsResponse, type builder_ListBuilderFormsQuery as ListBuilderFormsQuery, type builder_ListBuilderFormsResponse as ListBuilderFormsResponse, type builder_ListBuilderListsQuery as ListBuilderListsQuery, type builder_ListBuilderListsResponse as ListBuilderListsResponse, type builder_ListBuilderViewEntriesQuery as ListBuilderViewEntriesQuery, type builder_ListBuilderViewEntriesResponse as ListBuilderViewEntriesResponse, type builder_ListBuilderViewsQuery as ListBuilderViewsQuery, type builder_ListBuilderViewsResponse as ListBuilderViewsResponse, type builder_ReplicateBuilderEntityInput as ReplicateBuilderEntityInput, type builder_RunBuilderFieldTriggerInput as RunBuilderFieldTriggerInput, type builder_UpdateBuilderFormInput as UpdateBuilderFormInput, type builder_UpdateBuilderListInput as UpdateBuilderListInput, type builder_UpdateBuilderViewEntryInput as UpdateBuilderViewEntryInput, type builder_UpdateBuilderViewInput as UpdateBuilderViewInput, type builder_UpdateCompositeBuilderViewEntryInput as UpdateCompositeBuilderViewEntryInput, builder_builderColumnSchema as builderColumnSchema, builder_builderCompositeDataRowSchema as builderCompositeDataRowSchema, builder_builderCompositeDataSchema as builderCompositeDataSchema, builder_builderDatasourceSchema as builderDatasourceSchema, builder_builderDbColumnSchema as builderDbColumnSchema, builder_builderDbTableSchema as builderDbTableSchema, builder_builderDefinitionSchema as builderDefinitionSchema, builder_builderDefinitionTypeSchema as builderDefinitionTypeSchema, builder_builderFieldSchema as builderFieldSchema, builder_builderFieldTriggerEventSchema as builderFieldTriggerEventSchema, builder_builderFieldTriggerPatchSchema as builderFieldTriggerPatchSchema, builder_builderFieldTriggerResponseSchema as builderFieldTriggerResponseSchema, builder_builderFieldTriggerSchema as builderFieldTriggerSchema, builder_builderFieldTriggerToastSchema as builderFieldTriggerToastSchema, builder_builderFieldTypeSchema as builderFieldTypeSchema, builder_builderFormLayoutFieldSchema as builderFormLayoutFieldSchema, builder_builderFormLayoutGroupSchema as builderFormLayoutGroupSchema, builder_builderFormLayoutSchema as builderFormLayoutSchema, builder_builderFormRecordSchema as builderFormRecordSchema, builder_builderFormSchema as builderFormSchema, builder_builderFormSubformSchema as builderFormSubformSchema, builder_builderFormTriggerEventSchema as builderFormTriggerEventSchema, builder_builderFormTriggerSchema as builderFormTriggerSchema, builder_builderListRecordSchema as builderListRecordSchema, builder_builderListSchema as builderListSchema, builder_builderListTriggerEventSchema as builderListTriggerEventSchema, builder_builderListTriggerSchema as builderListTriggerSchema, builder_builderSelectOptionSchema as builderSelectOptionSchema, builder_builderSelectOptionsSourceSchema as builderSelectOptionsSourceSchema, builder_builderTriggerEventSchema as builderTriggerEventSchema, builder_builderTriggerSchema as builderTriggerSchema, builder_builderViewEntrySchema as builderViewEntrySchema, builder_builderViewSchema as builderViewSchema, builder_createBuilderFormSchema as createBuilderFormSchema, builder_createBuilderListSchema as createBuilderListSchema, builder_createBuilderViewEntrySchema as createBuilderViewEntrySchema, builder_createBuilderViewSchema as createBuilderViewSchema, builder_createCompositeBuilderViewEntrySchema as createCompositeBuilderViewEntrySchema, builder_listBuilderFieldOptionsQuerySchema as listBuilderFieldOptionsQuerySchema, builder_listBuilderFieldOptionsResponseSchema as listBuilderFieldOptionsResponseSchema, builder_listBuilderFormsQuerySchema as listBuilderFormsQuerySchema, builder_listBuilderFormsResponseSchema as listBuilderFormsResponseSchema, builder_listBuilderListsQuerySchema as listBuilderListsQuerySchema, builder_listBuilderListsResponseSchema as listBuilderListsResponseSchema, builder_listBuilderViewEntriesQuerySchema as listBuilderViewEntriesQuerySchema, builder_listBuilderViewEntriesResponseSchema as listBuilderViewEntriesResponseSchema, builder_listBuilderViewsQuerySchema as listBuilderViewsQuerySchema, builder_listBuilderViewsResponseSchema as listBuilderViewsResponseSchema, builder_permissionSchema as permissionSchema, builder_replicateBuilderEntitySchema as replicateBuilderEntitySchema, builder_runBuilderFieldTriggerSchema as runBuilderFieldTriggerSchema, builder_updateBuilderFormSchema as updateBuilderFormSchema, builder_updateBuilderListSchema as updateBuilderListSchema, builder_updateBuilderViewEntrySchema as updateBuilderViewEntrySchema, builder_updateBuilderViewSchema as updateBuilderViewSchema, builder_updateCompositeBuilderViewEntrySchema as updateCompositeBuilderViewEntrySchema };
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
declare const paginationQuerySchema: z.ZodObject<{
|
|
1823
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1824
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1825
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
1826
|
+
search: z.ZodOptional<z.ZodString>;
|
|
1827
|
+
}, z.core.$strip>;
|
|
1828
|
+
declare function paginatedSchema<T extends z.ZodType>(item: T): z.ZodObject<{
|
|
1829
|
+
items: z.ZodArray<T>;
|
|
1830
|
+
total: z.ZodNumber;
|
|
1831
|
+
page: z.ZodNumber;
|
|
1832
|
+
pageSize: z.ZodNumber;
|
|
1833
|
+
}, z.core.$strip>;
|
|
1834
|
+
type Paginated<T> = {
|
|
1835
|
+
items: T[];
|
|
1836
|
+
total: number;
|
|
1837
|
+
page: number;
|
|
1838
|
+
pageSize: number;
|
|
1839
|
+
};
|
|
1840
|
+
|
|
1841
|
+
export { type Paginated, type BuilderPermission as Permission, builder, paginatedSchema, paginationQuerySchema };
|