@oak-digital/types-4-strapi-2 1.0.6 → 1.0.8
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/lib/content-types/reader.js +5 -6
- package/lib/interface/builtinInterfaces.d.ts +330 -218
- package/lib/interface/builtinInterfaces.js +3 -3
- package/lib/program/InterfaceManager.d.ts +13 -186
- package/lib/readers/by-file.d.ts +13 -186
- package/lib/readers/load-strapi/index.d.ts +14 -186
- package/lib/readers/types/attributes.d.ts +374 -528
- package/lib/readers/types/attributes.js +1 -1
- package/lib/readers/types/component.d.ts +99 -62
- package/lib/readers/types/content-type.d.ts +125 -87
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/utils/casing/index.js +3 -3
- package/lib/utils/index.js +2 -3
- package/package.json +57 -49
- package/.editorconfig +0 -9
- package/.eslintrc.json +0 -49
- package/.github/workflows/publish.yml +0 -48
- package/.prettierrc.json +0 -8
|
@@ -4,18 +4,19 @@ export declare const baseAttribute: z.ZodObject<{
|
|
|
4
4
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
5
5
|
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
__t4s_required?: boolean;
|
|
7
8
|
pluginOptions?: any;
|
|
8
9
|
required?: boolean;
|
|
9
|
-
__t4s_required?: boolean;
|
|
10
10
|
}, {
|
|
11
|
+
__t4s_required?: boolean;
|
|
11
12
|
pluginOptions?: any;
|
|
12
13
|
required?: boolean;
|
|
13
|
-
__t4s_required?: boolean;
|
|
14
14
|
}>;
|
|
15
15
|
export declare const textAttribute: z.ZodObject<{
|
|
16
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
17
16
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
18
17
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
} & {
|
|
19
20
|
type: z.ZodEnum<["text", "string"]>;
|
|
20
21
|
}, "strip", z.ZodTypeAny, {
|
|
21
22
|
__t4s_required?: boolean;
|
|
@@ -30,9 +31,10 @@ export declare const textAttribute: z.ZodObject<{
|
|
|
30
31
|
}>;
|
|
31
32
|
export type TextAttribute = z.infer<typeof textAttribute>;
|
|
32
33
|
export declare const emailAttribute: z.ZodObject<{
|
|
33
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
34
34
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
35
35
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
} & {
|
|
36
38
|
type: z.ZodLiteral<"email">;
|
|
37
39
|
}, "strip", z.ZodTypeAny, {
|
|
38
40
|
__t4s_required?: boolean;
|
|
@@ -47,9 +49,10 @@ export declare const emailAttribute: z.ZodObject<{
|
|
|
47
49
|
}>;
|
|
48
50
|
export type EmailAttribute = z.infer<typeof emailAttribute>;
|
|
49
51
|
export declare const uidAttribute: z.ZodObject<{
|
|
50
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
51
52
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
52
53
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
} & {
|
|
53
56
|
type: z.ZodLiteral<"uid">;
|
|
54
57
|
targetField: z.ZodOptional<z.ZodString>;
|
|
55
58
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -67,9 +70,10 @@ export declare const uidAttribute: z.ZodObject<{
|
|
|
67
70
|
}>;
|
|
68
71
|
export type UidAttribute = z.infer<typeof uidAttribute>;
|
|
69
72
|
export declare const richTextAttribute: z.ZodObject<{
|
|
70
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
71
73
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
72
74
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
+
} & {
|
|
73
77
|
type: z.ZodLiteral<"richtext">;
|
|
74
78
|
}, "strip", z.ZodTypeAny, {
|
|
75
79
|
__t4s_required?: boolean;
|
|
@@ -84,9 +88,10 @@ export declare const richTextAttribute: z.ZodObject<{
|
|
|
84
88
|
}>;
|
|
85
89
|
export type RichTextAttribute = z.infer<typeof richTextAttribute>;
|
|
86
90
|
export declare const blocksAttribute: z.ZodObject<{
|
|
87
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
88
91
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
89
92
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
} & {
|
|
90
95
|
type: z.ZodLiteral<"blocks">;
|
|
91
96
|
}, "strip", z.ZodTypeAny, {
|
|
92
97
|
__t4s_required?: boolean;
|
|
@@ -100,9 +105,10 @@ export declare const blocksAttribute: z.ZodObject<{
|
|
|
100
105
|
type?: "blocks";
|
|
101
106
|
}>;
|
|
102
107
|
export declare const jsonAttribute: z.ZodObject<{
|
|
103
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
104
108
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
105
109
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
110
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
111
|
+
} & {
|
|
106
112
|
type: z.ZodLiteral<"json">;
|
|
107
113
|
}, "strip", z.ZodTypeAny, {
|
|
108
114
|
__t4s_required?: boolean;
|
|
@@ -117,9 +123,10 @@ export declare const jsonAttribute: z.ZodObject<{
|
|
|
117
123
|
}>;
|
|
118
124
|
export type JsonAttribute = z.infer<typeof jsonAttribute>;
|
|
119
125
|
export declare const passwordAttribute: z.ZodObject<{
|
|
120
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
121
126
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
122
127
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
+
} & {
|
|
123
130
|
type: z.ZodLiteral<"password">;
|
|
124
131
|
}, "strip", z.ZodTypeAny, {
|
|
125
132
|
__t4s_required?: boolean;
|
|
@@ -134,9 +141,10 @@ export declare const passwordAttribute: z.ZodObject<{
|
|
|
134
141
|
}>;
|
|
135
142
|
export type PasswordAttribute = z.infer<typeof passwordAttribute>;
|
|
136
143
|
export declare const integerAttribute: z.ZodObject<{
|
|
137
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
138
144
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
139
145
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
147
|
+
} & {
|
|
140
148
|
type: z.ZodLiteral<"integer">;
|
|
141
149
|
}, "strip", z.ZodTypeAny, {
|
|
142
150
|
__t4s_required?: boolean;
|
|
@@ -150,9 +158,10 @@ export declare const integerAttribute: z.ZodObject<{
|
|
|
150
158
|
type?: "integer";
|
|
151
159
|
}>;
|
|
152
160
|
export declare const floatAttribute: z.ZodObject<{
|
|
153
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
154
161
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
155
162
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
163
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
+
} & {
|
|
156
165
|
type: z.ZodLiteral<"float">;
|
|
157
166
|
}, "strip", z.ZodTypeAny, {
|
|
158
167
|
__t4s_required?: boolean;
|
|
@@ -166,9 +175,10 @@ export declare const floatAttribute: z.ZodObject<{
|
|
|
166
175
|
type?: "float";
|
|
167
176
|
}>;
|
|
168
177
|
export declare const bigIntAttribute: z.ZodObject<{
|
|
169
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
170
178
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
171
179
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
180
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
+
} & {
|
|
172
182
|
type: z.ZodLiteral<"biginteger">;
|
|
173
183
|
}, "strip", z.ZodTypeAny, {
|
|
174
184
|
__t4s_required?: boolean;
|
|
@@ -182,9 +192,10 @@ export declare const bigIntAttribute: z.ZodObject<{
|
|
|
182
192
|
type?: "biginteger";
|
|
183
193
|
}>;
|
|
184
194
|
export declare const decimalAttribute: z.ZodObject<{
|
|
185
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
186
195
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
187
196
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
197
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
198
|
+
} & {
|
|
188
199
|
type: z.ZodLiteral<"decimal">;
|
|
189
200
|
}, "strip", z.ZodTypeAny, {
|
|
190
201
|
__t4s_required?: boolean;
|
|
@@ -198,9 +209,10 @@ export declare const decimalAttribute: z.ZodObject<{
|
|
|
198
209
|
type?: "decimal";
|
|
199
210
|
}>;
|
|
200
211
|
export declare const numberAttribute: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
201
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
202
212
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
203
213
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
214
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
215
|
+
} & {
|
|
204
216
|
type: z.ZodLiteral<"integer">;
|
|
205
217
|
}, "strip", z.ZodTypeAny, {
|
|
206
218
|
__t4s_required?: boolean;
|
|
@@ -213,9 +225,10 @@ export declare const numberAttribute: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
213
225
|
required?: boolean;
|
|
214
226
|
type?: "integer";
|
|
215
227
|
}>, z.ZodObject<{
|
|
216
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
217
228
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
218
229
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
230
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
231
|
+
} & {
|
|
219
232
|
type: z.ZodLiteral<"float">;
|
|
220
233
|
}, "strip", z.ZodTypeAny, {
|
|
221
234
|
__t4s_required?: boolean;
|
|
@@ -228,9 +241,10 @@ export declare const numberAttribute: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
228
241
|
required?: boolean;
|
|
229
242
|
type?: "float";
|
|
230
243
|
}>, z.ZodObject<{
|
|
231
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
232
244
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
233
245
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
246
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
247
|
+
} & {
|
|
234
248
|
type: z.ZodLiteral<"biginteger">;
|
|
235
249
|
}, "strip", z.ZodTypeAny, {
|
|
236
250
|
__t4s_required?: boolean;
|
|
@@ -243,9 +257,10 @@ export declare const numberAttribute: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
243
257
|
required?: boolean;
|
|
244
258
|
type?: "biginteger";
|
|
245
259
|
}>, z.ZodObject<{
|
|
246
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
247
260
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
248
261
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
263
|
+
} & {
|
|
249
264
|
type: z.ZodLiteral<"decimal">;
|
|
250
265
|
}, "strip", z.ZodTypeAny, {
|
|
251
266
|
__t4s_required?: boolean;
|
|
@@ -260,9 +275,10 @@ export declare const numberAttribute: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
260
275
|
}>]>;
|
|
261
276
|
export type NumberAttribute = z.infer<typeof numberAttribute>;
|
|
262
277
|
export declare const enumAttribute: z.ZodObject<{
|
|
263
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
264
278
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
265
279
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
280
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
281
|
+
} & {
|
|
266
282
|
type: z.ZodLiteral<"enumeration">;
|
|
267
283
|
enum: z.ZodArray<z.ZodString, "many">;
|
|
268
284
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -280,9 +296,10 @@ export declare const enumAttribute: z.ZodObject<{
|
|
|
280
296
|
}>;
|
|
281
297
|
export type EnumAttribute = z.infer<typeof enumAttribute>;
|
|
282
298
|
export declare const dateOnlyAttribute: z.ZodObject<{
|
|
283
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
284
299
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
285
300
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
301
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
302
|
+
} & {
|
|
286
303
|
type: z.ZodLiteral<"date">;
|
|
287
304
|
}, "strip", z.ZodTypeAny, {
|
|
288
305
|
__t4s_required?: boolean;
|
|
@@ -296,9 +313,10 @@ export declare const dateOnlyAttribute: z.ZodObject<{
|
|
|
296
313
|
type?: "date";
|
|
297
314
|
}>;
|
|
298
315
|
export declare const dateTimeAttribute: z.ZodObject<{
|
|
299
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
300
316
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
301
317
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
318
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
319
|
+
} & {
|
|
302
320
|
type: z.ZodLiteral<"datetime">;
|
|
303
321
|
}, "strip", z.ZodTypeAny, {
|
|
304
322
|
__t4s_required?: boolean;
|
|
@@ -312,9 +330,10 @@ export declare const dateTimeAttribute: z.ZodObject<{
|
|
|
312
330
|
type?: "datetime";
|
|
313
331
|
}>;
|
|
314
332
|
export declare const timeAttribute: z.ZodObject<{
|
|
315
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
316
333
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
317
334
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
335
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
336
|
+
} & {
|
|
318
337
|
type: z.ZodLiteral<"time">;
|
|
319
338
|
}, "strip", z.ZodTypeAny, {
|
|
320
339
|
__t4s_required?: boolean;
|
|
@@ -328,9 +347,10 @@ export declare const timeAttribute: z.ZodObject<{
|
|
|
328
347
|
type?: "time";
|
|
329
348
|
}>;
|
|
330
349
|
export declare const dateAttribute: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
331
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
332
350
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
333
351
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
352
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
353
|
+
} & {
|
|
334
354
|
type: z.ZodLiteral<"date">;
|
|
335
355
|
}, "strip", z.ZodTypeAny, {
|
|
336
356
|
__t4s_required?: boolean;
|
|
@@ -343,9 +363,10 @@ export declare const dateAttribute: z.ZodDiscriminatedUnion<"type", [z.ZodObject
|
|
|
343
363
|
required?: boolean;
|
|
344
364
|
type?: "date";
|
|
345
365
|
}>, z.ZodObject<{
|
|
346
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
347
366
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
348
367
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
368
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
369
|
+
} & {
|
|
349
370
|
type: z.ZodLiteral<"datetime">;
|
|
350
371
|
}, "strip", z.ZodTypeAny, {
|
|
351
372
|
__t4s_required?: boolean;
|
|
@@ -358,9 +379,10 @@ export declare const dateAttribute: z.ZodDiscriminatedUnion<"type", [z.ZodObject
|
|
|
358
379
|
required?: boolean;
|
|
359
380
|
type?: "datetime";
|
|
360
381
|
}>, z.ZodObject<{
|
|
361
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
362
382
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
363
383
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
384
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
385
|
+
} & {
|
|
364
386
|
type: z.ZodLiteral<"time">;
|
|
365
387
|
}, "strip", z.ZodTypeAny, {
|
|
366
388
|
__t4s_required?: boolean;
|
|
@@ -375,9 +397,10 @@ export declare const dateAttribute: z.ZodDiscriminatedUnion<"type", [z.ZodObject
|
|
|
375
397
|
}>]>;
|
|
376
398
|
export type DateAttribute = z.infer<typeof dateAttribute>;
|
|
377
399
|
export declare const mediaAttribute: z.ZodObject<{
|
|
378
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
379
400
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
380
401
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
402
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
403
|
+
} & {
|
|
381
404
|
type: z.ZodLiteral<"media">;
|
|
382
405
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
383
406
|
allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
|
|
@@ -398,9 +421,10 @@ export declare const mediaAttribute: z.ZodObject<{
|
|
|
398
421
|
}>;
|
|
399
422
|
export type MediaAttribute = z.infer<typeof mediaAttribute>;
|
|
400
423
|
export declare const booleanAttribute: z.ZodObject<{
|
|
401
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
402
424
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
403
425
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
426
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
427
|
+
} & {
|
|
404
428
|
type: z.ZodLiteral<"boolean">;
|
|
405
429
|
}, "strip", z.ZodTypeAny, {
|
|
406
430
|
__t4s_required?: boolean;
|
|
@@ -415,9 +439,10 @@ export declare const booleanAttribute: z.ZodObject<{
|
|
|
415
439
|
}>;
|
|
416
440
|
export type BooleanAttribute = z.infer<typeof booleanAttribute>;
|
|
417
441
|
export declare const baseRelationAttribute: z.ZodObject<{
|
|
418
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
419
442
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
420
443
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
444
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
445
|
+
} & {
|
|
421
446
|
type: z.ZodLiteral<"relation">;
|
|
422
447
|
target: z.ZodString;
|
|
423
448
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -434,33 +459,37 @@ export declare const baseRelationAttribute: z.ZodObject<{
|
|
|
434
459
|
target?: string;
|
|
435
460
|
}>;
|
|
436
461
|
export declare const hasOneAttribute: z.ZodObject<{
|
|
437
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
438
462
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
439
463
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
464
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
465
|
+
} & {
|
|
440
466
|
type: z.ZodLiteral<"relation">;
|
|
441
467
|
target: z.ZodString;
|
|
468
|
+
} & {
|
|
442
469
|
relation: z.ZodLiteral<"oneToOne">;
|
|
443
470
|
}, "strip", z.ZodTypeAny, {
|
|
444
471
|
__t4s_required?: boolean;
|
|
445
472
|
pluginOptions?: any;
|
|
446
473
|
required?: boolean;
|
|
447
474
|
type?: "relation";
|
|
448
|
-
target?: string;
|
|
449
475
|
relation?: "oneToOne";
|
|
476
|
+
target?: string;
|
|
450
477
|
}, {
|
|
451
478
|
__t4s_required?: boolean;
|
|
452
479
|
pluginOptions?: any;
|
|
453
480
|
required?: boolean;
|
|
454
481
|
type?: "relation";
|
|
455
|
-
target?: string;
|
|
456
482
|
relation?: "oneToOne";
|
|
483
|
+
target?: string;
|
|
457
484
|
}>;
|
|
458
485
|
export declare const oneToOneAttribute: z.ZodObject<{
|
|
459
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
460
486
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
461
487
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
488
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
489
|
+
} & {
|
|
462
490
|
type: z.ZodLiteral<"relation">;
|
|
463
491
|
target: z.ZodString;
|
|
492
|
+
} & {
|
|
464
493
|
relation: z.ZodLiteral<"oneToOne">;
|
|
465
494
|
inversedBy: z.ZodString;
|
|
466
495
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -468,24 +497,26 @@ export declare const oneToOneAttribute: z.ZodObject<{
|
|
|
468
497
|
pluginOptions?: any;
|
|
469
498
|
required?: boolean;
|
|
470
499
|
type?: "relation";
|
|
471
|
-
target?: string;
|
|
472
500
|
relation?: "oneToOne";
|
|
501
|
+
target?: string;
|
|
473
502
|
inversedBy?: string;
|
|
474
503
|
}, {
|
|
475
504
|
__t4s_required?: boolean;
|
|
476
505
|
pluginOptions?: any;
|
|
477
506
|
required?: boolean;
|
|
478
507
|
type?: "relation";
|
|
479
|
-
target?: string;
|
|
480
508
|
relation?: "oneToOne";
|
|
509
|
+
target?: string;
|
|
481
510
|
inversedBy?: string;
|
|
482
511
|
}>;
|
|
483
512
|
export declare const belongsToManyAttribute: z.ZodObject<{
|
|
484
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
485
513
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
486
514
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
515
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
516
|
+
} & {
|
|
487
517
|
type: z.ZodLiteral<"relation">;
|
|
488
518
|
target: z.ZodString;
|
|
519
|
+
} & {
|
|
489
520
|
mappedBy: z.ZodString;
|
|
490
521
|
relation: z.ZodLiteral<"oneToMany">;
|
|
491
522
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -493,24 +524,26 @@ export declare const belongsToManyAttribute: z.ZodObject<{
|
|
|
493
524
|
pluginOptions?: any;
|
|
494
525
|
required?: boolean;
|
|
495
526
|
type?: "relation";
|
|
527
|
+
relation?: "oneToMany";
|
|
496
528
|
target?: string;
|
|
497
529
|
mappedBy?: string;
|
|
498
|
-
relation?: "oneToMany";
|
|
499
530
|
}, {
|
|
500
531
|
__t4s_required?: boolean;
|
|
501
532
|
pluginOptions?: any;
|
|
502
533
|
required?: boolean;
|
|
503
534
|
type?: "relation";
|
|
535
|
+
relation?: "oneToMany";
|
|
504
536
|
target?: string;
|
|
505
537
|
mappedBy?: string;
|
|
506
|
-
relation?: "oneToMany";
|
|
507
538
|
}>;
|
|
508
539
|
export declare const manyToOneAttribute: z.ZodObject<{
|
|
509
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
510
540
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
511
541
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
542
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
543
|
+
} & {
|
|
512
544
|
type: z.ZodLiteral<"relation">;
|
|
513
545
|
target: z.ZodString;
|
|
546
|
+
} & {
|
|
514
547
|
relation: z.ZodLiteral<"manyToOne">;
|
|
515
548
|
inversedBy: z.ZodString;
|
|
516
549
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -518,24 +551,26 @@ export declare const manyToOneAttribute: z.ZodObject<{
|
|
|
518
551
|
pluginOptions?: any;
|
|
519
552
|
required?: boolean;
|
|
520
553
|
type?: "relation";
|
|
521
|
-
target?: string;
|
|
522
554
|
relation?: "manyToOne";
|
|
555
|
+
target?: string;
|
|
523
556
|
inversedBy?: string;
|
|
524
557
|
}, {
|
|
525
558
|
__t4s_required?: boolean;
|
|
526
559
|
pluginOptions?: any;
|
|
527
560
|
required?: boolean;
|
|
528
561
|
type?: "relation";
|
|
529
|
-
target?: string;
|
|
530
562
|
relation?: "manyToOne";
|
|
563
|
+
target?: string;
|
|
531
564
|
inversedBy?: string;
|
|
532
565
|
}>;
|
|
533
566
|
export declare const manyToManyAttribute: z.ZodObject<{
|
|
534
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
535
567
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
536
568
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
569
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
570
|
+
} & {
|
|
537
571
|
type: z.ZodLiteral<"relation">;
|
|
538
572
|
target: z.ZodString;
|
|
573
|
+
} & {
|
|
539
574
|
relation: z.ZodLiteral<"manyToMany">;
|
|
540
575
|
inversedBy: z.ZodOptional<z.ZodString>;
|
|
541
576
|
mappedBy: z.ZodOptional<z.ZodString>;
|
|
@@ -544,8 +579,8 @@ export declare const manyToManyAttribute: z.ZodObject<{
|
|
|
544
579
|
pluginOptions?: any;
|
|
545
580
|
required?: boolean;
|
|
546
581
|
type?: "relation";
|
|
547
|
-
target?: string;
|
|
548
582
|
relation?: "manyToMany";
|
|
583
|
+
target?: string;
|
|
549
584
|
inversedBy?: string;
|
|
550
585
|
mappedBy?: string;
|
|
551
586
|
}, {
|
|
@@ -553,37 +588,40 @@ export declare const manyToManyAttribute: z.ZodObject<{
|
|
|
553
588
|
pluginOptions?: any;
|
|
554
589
|
required?: boolean;
|
|
555
590
|
type?: "relation";
|
|
556
|
-
target?: string;
|
|
557
591
|
relation?: "manyToMany";
|
|
592
|
+
target?: string;
|
|
558
593
|
inversedBy?: string;
|
|
559
594
|
mappedBy?: string;
|
|
560
595
|
}>;
|
|
561
596
|
export declare const hasManyAttribute: z.ZodObject<{
|
|
562
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
563
597
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
564
598
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
599
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
600
|
+
} & {
|
|
565
601
|
type: z.ZodLiteral<"relation">;
|
|
566
602
|
target: z.ZodString;
|
|
603
|
+
} & {
|
|
567
604
|
relation: z.ZodLiteral<"oneToMany">;
|
|
568
605
|
}, "strip", z.ZodTypeAny, {
|
|
569
606
|
__t4s_required?: boolean;
|
|
570
607
|
pluginOptions?: any;
|
|
571
608
|
required?: boolean;
|
|
572
609
|
type?: "relation";
|
|
573
|
-
target?: string;
|
|
574
610
|
relation?: "oneToMany";
|
|
611
|
+
target?: string;
|
|
575
612
|
}, {
|
|
576
613
|
__t4s_required?: boolean;
|
|
577
614
|
pluginOptions?: any;
|
|
578
615
|
required?: boolean;
|
|
579
616
|
type?: "relation";
|
|
580
|
-
target?: string;
|
|
581
617
|
relation?: "oneToMany";
|
|
618
|
+
target?: string;
|
|
582
619
|
}>;
|
|
583
620
|
export declare const morphToManyAttribute: z.ZodObject<{
|
|
584
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
585
621
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
586
622
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
623
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
624
|
+
} & {
|
|
587
625
|
type: z.ZodLiteral<"relation">;
|
|
588
626
|
relation: z.ZodLiteral<"morphToMany">;
|
|
589
627
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -600,9 +638,10 @@ export declare const morphToManyAttribute: z.ZodObject<{
|
|
|
600
638
|
relation?: "morphToMany";
|
|
601
639
|
}>;
|
|
602
640
|
export declare const morphOneAttribute: z.ZodObject<{
|
|
603
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
604
641
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
605
642
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
643
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
644
|
+
} & {
|
|
606
645
|
type: z.ZodLiteral<"relation">;
|
|
607
646
|
relation: z.ZodLiteral<"morphToOne">;
|
|
608
647
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -619,32 +658,36 @@ export declare const morphOneAttribute: z.ZodObject<{
|
|
|
619
658
|
relation?: "morphToOne";
|
|
620
659
|
}>;
|
|
621
660
|
export declare const relationAttribute: z.ZodUnion<[z.ZodObject<{
|
|
622
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
623
661
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
624
662
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
663
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
664
|
+
} & {
|
|
625
665
|
type: z.ZodLiteral<"relation">;
|
|
626
666
|
target: z.ZodString;
|
|
667
|
+
} & {
|
|
627
668
|
relation: z.ZodLiteral<"oneToOne">;
|
|
628
669
|
}, "strip", z.ZodTypeAny, {
|
|
629
670
|
__t4s_required?: boolean;
|
|
630
671
|
pluginOptions?: any;
|
|
631
672
|
required?: boolean;
|
|
632
673
|
type?: "relation";
|
|
633
|
-
target?: string;
|
|
634
674
|
relation?: "oneToOne";
|
|
675
|
+
target?: string;
|
|
635
676
|
}, {
|
|
636
677
|
__t4s_required?: boolean;
|
|
637
678
|
pluginOptions?: any;
|
|
638
679
|
required?: boolean;
|
|
639
680
|
type?: "relation";
|
|
640
|
-
target?: string;
|
|
641
681
|
relation?: "oneToOne";
|
|
682
|
+
target?: string;
|
|
642
683
|
}>, z.ZodObject<{
|
|
643
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
644
684
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
645
685
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
686
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
687
|
+
} & {
|
|
646
688
|
type: z.ZodLiteral<"relation">;
|
|
647
689
|
target: z.ZodString;
|
|
690
|
+
} & {
|
|
648
691
|
relation: z.ZodLiteral<"oneToOne">;
|
|
649
692
|
inversedBy: z.ZodString;
|
|
650
693
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -652,23 +695,25 @@ export declare const relationAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
652
695
|
pluginOptions?: any;
|
|
653
696
|
required?: boolean;
|
|
654
697
|
type?: "relation";
|
|
655
|
-
target?: string;
|
|
656
698
|
relation?: "oneToOne";
|
|
699
|
+
target?: string;
|
|
657
700
|
inversedBy?: string;
|
|
658
701
|
}, {
|
|
659
702
|
__t4s_required?: boolean;
|
|
660
703
|
pluginOptions?: any;
|
|
661
704
|
required?: boolean;
|
|
662
705
|
type?: "relation";
|
|
663
|
-
target?: string;
|
|
664
706
|
relation?: "oneToOne";
|
|
707
|
+
target?: string;
|
|
665
708
|
inversedBy?: string;
|
|
666
709
|
}>, z.ZodObject<{
|
|
667
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
668
710
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
669
711
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
712
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
713
|
+
} & {
|
|
670
714
|
type: z.ZodLiteral<"relation">;
|
|
671
715
|
target: z.ZodString;
|
|
716
|
+
} & {
|
|
672
717
|
mappedBy: z.ZodString;
|
|
673
718
|
relation: z.ZodLiteral<"oneToMany">;
|
|
674
719
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -676,23 +721,25 @@ export declare const relationAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
676
721
|
pluginOptions?: any;
|
|
677
722
|
required?: boolean;
|
|
678
723
|
type?: "relation";
|
|
724
|
+
relation?: "oneToMany";
|
|
679
725
|
target?: string;
|
|
680
726
|
mappedBy?: string;
|
|
681
|
-
relation?: "oneToMany";
|
|
682
727
|
}, {
|
|
683
728
|
__t4s_required?: boolean;
|
|
684
729
|
pluginOptions?: any;
|
|
685
730
|
required?: boolean;
|
|
686
731
|
type?: "relation";
|
|
732
|
+
relation?: "oneToMany";
|
|
687
733
|
target?: string;
|
|
688
734
|
mappedBy?: string;
|
|
689
|
-
relation?: "oneToMany";
|
|
690
735
|
}>, z.ZodObject<{
|
|
691
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
692
736
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
693
737
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
738
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
739
|
+
} & {
|
|
694
740
|
type: z.ZodLiteral<"relation">;
|
|
695
741
|
target: z.ZodString;
|
|
742
|
+
} & {
|
|
696
743
|
relation: z.ZodLiteral<"manyToOne">;
|
|
697
744
|
inversedBy: z.ZodString;
|
|
698
745
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -700,23 +747,25 @@ export declare const relationAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
700
747
|
pluginOptions?: any;
|
|
701
748
|
required?: boolean;
|
|
702
749
|
type?: "relation";
|
|
703
|
-
target?: string;
|
|
704
750
|
relation?: "manyToOne";
|
|
751
|
+
target?: string;
|
|
705
752
|
inversedBy?: string;
|
|
706
753
|
}, {
|
|
707
754
|
__t4s_required?: boolean;
|
|
708
755
|
pluginOptions?: any;
|
|
709
756
|
required?: boolean;
|
|
710
757
|
type?: "relation";
|
|
711
|
-
target?: string;
|
|
712
758
|
relation?: "manyToOne";
|
|
759
|
+
target?: string;
|
|
713
760
|
inversedBy?: string;
|
|
714
761
|
}>, z.ZodObject<{
|
|
715
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
716
762
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
717
763
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
764
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
765
|
+
} & {
|
|
718
766
|
type: z.ZodLiteral<"relation">;
|
|
719
767
|
target: z.ZodString;
|
|
768
|
+
} & {
|
|
720
769
|
relation: z.ZodLiteral<"manyToMany">;
|
|
721
770
|
inversedBy: z.ZodOptional<z.ZodString>;
|
|
722
771
|
mappedBy: z.ZodOptional<z.ZodString>;
|
|
@@ -725,8 +774,8 @@ export declare const relationAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
725
774
|
pluginOptions?: any;
|
|
726
775
|
required?: boolean;
|
|
727
776
|
type?: "relation";
|
|
728
|
-
target?: string;
|
|
729
777
|
relation?: "manyToMany";
|
|
778
|
+
target?: string;
|
|
730
779
|
inversedBy?: string;
|
|
731
780
|
mappedBy?: string;
|
|
732
781
|
}, {
|
|
@@ -734,35 +783,38 @@ export declare const relationAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
734
783
|
pluginOptions?: any;
|
|
735
784
|
required?: boolean;
|
|
736
785
|
type?: "relation";
|
|
737
|
-
target?: string;
|
|
738
786
|
relation?: "manyToMany";
|
|
787
|
+
target?: string;
|
|
739
788
|
inversedBy?: string;
|
|
740
789
|
mappedBy?: string;
|
|
741
790
|
}>, z.ZodObject<{
|
|
742
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
743
791
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
744
792
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
793
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
794
|
+
} & {
|
|
745
795
|
type: z.ZodLiteral<"relation">;
|
|
746
796
|
target: z.ZodString;
|
|
797
|
+
} & {
|
|
747
798
|
relation: z.ZodLiteral<"oneToMany">;
|
|
748
799
|
}, "strip", z.ZodTypeAny, {
|
|
749
800
|
__t4s_required?: boolean;
|
|
750
801
|
pluginOptions?: any;
|
|
751
802
|
required?: boolean;
|
|
752
803
|
type?: "relation";
|
|
753
|
-
target?: string;
|
|
754
804
|
relation?: "oneToMany";
|
|
805
|
+
target?: string;
|
|
755
806
|
}, {
|
|
756
807
|
__t4s_required?: boolean;
|
|
757
808
|
pluginOptions?: any;
|
|
758
809
|
required?: boolean;
|
|
759
810
|
type?: "relation";
|
|
760
|
-
target?: string;
|
|
761
811
|
relation?: "oneToMany";
|
|
812
|
+
target?: string;
|
|
762
813
|
}>, z.ZodObject<{
|
|
763
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
764
814
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
765
815
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
816
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
817
|
+
} & {
|
|
766
818
|
type: z.ZodLiteral<"relation">;
|
|
767
819
|
relation: z.ZodLiteral<"morphToMany">;
|
|
768
820
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -778,9 +830,10 @@ export declare const relationAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
778
830
|
type?: "relation";
|
|
779
831
|
relation?: "morphToMany";
|
|
780
832
|
}>, z.ZodObject<{
|
|
781
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
782
833
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
783
834
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
835
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
836
|
+
} & {
|
|
784
837
|
type: z.ZodLiteral<"relation">;
|
|
785
838
|
relation: z.ZodLiteral<"morphToOne">;
|
|
786
839
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -798,9 +851,10 @@ export declare const relationAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
798
851
|
}>]>;
|
|
799
852
|
export type RelationAttribute = z.infer<typeof relationAttribute>;
|
|
800
853
|
export declare const componentAttribute: z.ZodObject<{
|
|
801
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
802
854
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
803
855
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
856
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
857
|
+
} & {
|
|
804
858
|
type: z.ZodLiteral<"component">;
|
|
805
859
|
repeatable: z.ZodOptional<z.ZodBoolean>;
|
|
806
860
|
component: z.ZodString;
|
|
@@ -809,21 +863,22 @@ export declare const componentAttribute: z.ZodObject<{
|
|
|
809
863
|
pluginOptions?: any;
|
|
810
864
|
required?: boolean;
|
|
811
865
|
type?: "component";
|
|
812
|
-
repeatable?: boolean;
|
|
813
866
|
component?: string;
|
|
867
|
+
repeatable?: boolean;
|
|
814
868
|
}, {
|
|
815
869
|
__t4s_required?: boolean;
|
|
816
870
|
pluginOptions?: any;
|
|
817
871
|
required?: boolean;
|
|
818
872
|
type?: "component";
|
|
819
|
-
repeatable?: boolean;
|
|
820
873
|
component?: string;
|
|
874
|
+
repeatable?: boolean;
|
|
821
875
|
}>;
|
|
822
876
|
export type ComponentAttribute = z.infer<typeof componentAttribute>;
|
|
823
877
|
export declare const dynamiczoneAttribute: z.ZodObject<{
|
|
824
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
825
878
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
826
879
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
880
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
881
|
+
} & {
|
|
827
882
|
type: z.ZodLiteral<"dynamiczone">;
|
|
828
883
|
components: z.ZodArray<z.ZodString, "many">;
|
|
829
884
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -841,9 +896,10 @@ export declare const dynamiczoneAttribute: z.ZodObject<{
|
|
|
841
896
|
}>;
|
|
842
897
|
export type DynamiczoneAttribute = z.infer<typeof dynamiczoneAttribute>;
|
|
843
898
|
export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
844
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
845
899
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
846
900
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
901
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
902
|
+
} & {
|
|
847
903
|
type: z.ZodEnum<["text", "string"]>;
|
|
848
904
|
}, "strip", z.ZodTypeAny, {
|
|
849
905
|
__t4s_required?: boolean;
|
|
@@ -856,9 +912,10 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
856
912
|
required?: boolean;
|
|
857
913
|
type?: "string" | "text";
|
|
858
914
|
}>, z.ZodObject<{
|
|
859
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
860
915
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
861
916
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
917
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
918
|
+
} & {
|
|
862
919
|
type: z.ZodLiteral<"email">;
|
|
863
920
|
}, "strip", z.ZodTypeAny, {
|
|
864
921
|
__t4s_required?: boolean;
|
|
@@ -871,9 +928,10 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
871
928
|
required?: boolean;
|
|
872
929
|
type?: "email";
|
|
873
930
|
}>, z.ZodObject<{
|
|
874
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
875
931
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
876
932
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
933
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
934
|
+
} & {
|
|
877
935
|
type: z.ZodLiteral<"uid">;
|
|
878
936
|
targetField: z.ZodOptional<z.ZodString>;
|
|
879
937
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -889,9 +947,10 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
889
947
|
type?: "uid";
|
|
890
948
|
targetField?: string;
|
|
891
949
|
}>, z.ZodObject<{
|
|
892
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
893
950
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
894
951
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
952
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
953
|
+
} & {
|
|
895
954
|
type: z.ZodLiteral<"richtext">;
|
|
896
955
|
}, "strip", z.ZodTypeAny, {
|
|
897
956
|
__t4s_required?: boolean;
|
|
@@ -904,9 +963,10 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
904
963
|
required?: boolean;
|
|
905
964
|
type?: "richtext";
|
|
906
965
|
}>, z.ZodObject<{
|
|
907
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
908
966
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
909
967
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
968
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
969
|
+
} & {
|
|
910
970
|
type: z.ZodLiteral<"blocks">;
|
|
911
971
|
}, "strip", z.ZodTypeAny, {
|
|
912
972
|
__t4s_required?: boolean;
|
|
@@ -919,9 +979,10 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
919
979
|
required?: boolean;
|
|
920
980
|
type?: "blocks";
|
|
921
981
|
}>, z.ZodObject<{
|
|
922
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
923
982
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
924
983
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
984
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
985
|
+
} & {
|
|
925
986
|
type: z.ZodLiteral<"json">;
|
|
926
987
|
}, "strip", z.ZodTypeAny, {
|
|
927
988
|
__t4s_required?: boolean;
|
|
@@ -934,9 +995,10 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
934
995
|
required?: boolean;
|
|
935
996
|
type?: "json";
|
|
936
997
|
}>, z.ZodObject<{
|
|
937
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
938
998
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
939
999
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1000
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1001
|
+
} & {
|
|
940
1002
|
type: z.ZodLiteral<"password">;
|
|
941
1003
|
}, "strip", z.ZodTypeAny, {
|
|
942
1004
|
__t4s_required?: boolean;
|
|
@@ -949,9 +1011,10 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
949
1011
|
required?: boolean;
|
|
950
1012
|
type?: "password";
|
|
951
1013
|
}>, z.ZodObject<{
|
|
952
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
953
1014
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
954
1015
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1016
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1017
|
+
} & {
|
|
955
1018
|
type: z.ZodLiteral<"integer">;
|
|
956
1019
|
}, "strip", z.ZodTypeAny, {
|
|
957
1020
|
__t4s_required?: boolean;
|
|
@@ -964,9 +1027,10 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
964
1027
|
required?: boolean;
|
|
965
1028
|
type?: "integer";
|
|
966
1029
|
}>, z.ZodObject<{
|
|
967
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
968
1030
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
969
1031
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1032
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1033
|
+
} & {
|
|
970
1034
|
type: z.ZodLiteral<"float">;
|
|
971
1035
|
}, "strip", z.ZodTypeAny, {
|
|
972
1036
|
__t4s_required?: boolean;
|
|
@@ -979,9 +1043,10 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
979
1043
|
required?: boolean;
|
|
980
1044
|
type?: "float";
|
|
981
1045
|
}>, z.ZodObject<{
|
|
982
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
983
1046
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
984
1047
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1048
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1049
|
+
} & {
|
|
985
1050
|
type: z.ZodLiteral<"biginteger">;
|
|
986
1051
|
}, "strip", z.ZodTypeAny, {
|
|
987
1052
|
__t4s_required?: boolean;
|
|
@@ -994,9 +1059,10 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
994
1059
|
required?: boolean;
|
|
995
1060
|
type?: "biginteger";
|
|
996
1061
|
}>, z.ZodObject<{
|
|
997
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
998
1062
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
999
1063
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1064
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1065
|
+
} & {
|
|
1000
1066
|
type: z.ZodLiteral<"decimal">;
|
|
1001
1067
|
}, "strip", z.ZodTypeAny, {
|
|
1002
1068
|
__t4s_required?: boolean;
|
|
@@ -1009,9 +1075,10 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1009
1075
|
required?: boolean;
|
|
1010
1076
|
type?: "decimal";
|
|
1011
1077
|
}>, z.ZodObject<{
|
|
1012
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1013
1078
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1014
1079
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1080
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1081
|
+
} & {
|
|
1015
1082
|
type: z.ZodLiteral<"enumeration">;
|
|
1016
1083
|
enum: z.ZodArray<z.ZodString, "many">;
|
|
1017
1084
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1027,9 +1094,10 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1027
1094
|
type?: "enumeration";
|
|
1028
1095
|
enum?: string[];
|
|
1029
1096
|
}>, z.ZodObject<{
|
|
1030
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1031
1097
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1032
1098
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1099
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1100
|
+
} & {
|
|
1033
1101
|
type: z.ZodLiteral<"date">;
|
|
1034
1102
|
}, "strip", z.ZodTypeAny, {
|
|
1035
1103
|
__t4s_required?: boolean;
|
|
@@ -1042,9 +1110,10 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1042
1110
|
required?: boolean;
|
|
1043
1111
|
type?: "date";
|
|
1044
1112
|
}>, z.ZodObject<{
|
|
1045
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1046
1113
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1047
1114
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1115
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1116
|
+
} & {
|
|
1048
1117
|
type: z.ZodLiteral<"datetime">;
|
|
1049
1118
|
}, "strip", z.ZodTypeAny, {
|
|
1050
1119
|
__t4s_required?: boolean;
|
|
@@ -1057,9 +1126,10 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1057
1126
|
required?: boolean;
|
|
1058
1127
|
type?: "datetime";
|
|
1059
1128
|
}>, z.ZodObject<{
|
|
1060
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1061
1129
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1062
1130
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1131
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1132
|
+
} & {
|
|
1063
1133
|
type: z.ZodLiteral<"time">;
|
|
1064
1134
|
}, "strip", z.ZodTypeAny, {
|
|
1065
1135
|
__t4s_required?: boolean;
|
|
@@ -1072,9 +1142,10 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1072
1142
|
required?: boolean;
|
|
1073
1143
|
type?: "time";
|
|
1074
1144
|
}>, z.ZodObject<{
|
|
1075
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1076
1145
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1077
1146
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1147
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1148
|
+
} & {
|
|
1078
1149
|
type: z.ZodLiteral<"media">;
|
|
1079
1150
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
1080
1151
|
allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
|
|
@@ -1093,9 +1164,10 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1093
1164
|
multiple?: boolean;
|
|
1094
1165
|
allowedTypes?: ("images" | "videos" | "audios" | "files")[];
|
|
1095
1166
|
}>, z.ZodObject<{
|
|
1096
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1097
1167
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1098
1168
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1169
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1170
|
+
} & {
|
|
1099
1171
|
type: z.ZodLiteral<"boolean">;
|
|
1100
1172
|
}, "strip", z.ZodTypeAny, {
|
|
1101
1173
|
__t4s_required?: boolean;
|
|
@@ -1108,32 +1180,36 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1108
1180
|
required?: boolean;
|
|
1109
1181
|
type?: "boolean";
|
|
1110
1182
|
}>, z.ZodObject<{
|
|
1111
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1112
1183
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1113
1184
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1185
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1186
|
+
} & {
|
|
1114
1187
|
type: z.ZodLiteral<"relation">;
|
|
1115
1188
|
target: z.ZodString;
|
|
1189
|
+
} & {
|
|
1116
1190
|
relation: z.ZodLiteral<"oneToOne">;
|
|
1117
1191
|
}, "strip", z.ZodTypeAny, {
|
|
1118
1192
|
__t4s_required?: boolean;
|
|
1119
1193
|
pluginOptions?: any;
|
|
1120
1194
|
required?: boolean;
|
|
1121
1195
|
type?: "relation";
|
|
1122
|
-
target?: string;
|
|
1123
1196
|
relation?: "oneToOne";
|
|
1197
|
+
target?: string;
|
|
1124
1198
|
}, {
|
|
1125
1199
|
__t4s_required?: boolean;
|
|
1126
1200
|
pluginOptions?: any;
|
|
1127
1201
|
required?: boolean;
|
|
1128
1202
|
type?: "relation";
|
|
1129
|
-
target?: string;
|
|
1130
1203
|
relation?: "oneToOne";
|
|
1204
|
+
target?: string;
|
|
1131
1205
|
}>, z.ZodObject<{
|
|
1132
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1133
1206
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1134
1207
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1208
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1209
|
+
} & {
|
|
1135
1210
|
type: z.ZodLiteral<"relation">;
|
|
1136
1211
|
target: z.ZodString;
|
|
1212
|
+
} & {
|
|
1137
1213
|
relation: z.ZodLiteral<"oneToOne">;
|
|
1138
1214
|
inversedBy: z.ZodString;
|
|
1139
1215
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1141,23 +1217,25 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1141
1217
|
pluginOptions?: any;
|
|
1142
1218
|
required?: boolean;
|
|
1143
1219
|
type?: "relation";
|
|
1144
|
-
target?: string;
|
|
1145
1220
|
relation?: "oneToOne";
|
|
1221
|
+
target?: string;
|
|
1146
1222
|
inversedBy?: string;
|
|
1147
1223
|
}, {
|
|
1148
1224
|
__t4s_required?: boolean;
|
|
1149
1225
|
pluginOptions?: any;
|
|
1150
1226
|
required?: boolean;
|
|
1151
1227
|
type?: "relation";
|
|
1152
|
-
target?: string;
|
|
1153
1228
|
relation?: "oneToOne";
|
|
1229
|
+
target?: string;
|
|
1154
1230
|
inversedBy?: string;
|
|
1155
1231
|
}>, z.ZodObject<{
|
|
1156
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1157
1232
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1158
1233
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1234
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1235
|
+
} & {
|
|
1159
1236
|
type: z.ZodLiteral<"relation">;
|
|
1160
1237
|
target: z.ZodString;
|
|
1238
|
+
} & {
|
|
1161
1239
|
mappedBy: z.ZodString;
|
|
1162
1240
|
relation: z.ZodLiteral<"oneToMany">;
|
|
1163
1241
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1165,23 +1243,25 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1165
1243
|
pluginOptions?: any;
|
|
1166
1244
|
required?: boolean;
|
|
1167
1245
|
type?: "relation";
|
|
1246
|
+
relation?: "oneToMany";
|
|
1168
1247
|
target?: string;
|
|
1169
1248
|
mappedBy?: string;
|
|
1170
|
-
relation?: "oneToMany";
|
|
1171
1249
|
}, {
|
|
1172
1250
|
__t4s_required?: boolean;
|
|
1173
1251
|
pluginOptions?: any;
|
|
1174
1252
|
required?: boolean;
|
|
1175
1253
|
type?: "relation";
|
|
1254
|
+
relation?: "oneToMany";
|
|
1176
1255
|
target?: string;
|
|
1177
1256
|
mappedBy?: string;
|
|
1178
|
-
relation?: "oneToMany";
|
|
1179
1257
|
}>, z.ZodObject<{
|
|
1180
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1181
1258
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1182
1259
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1260
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1261
|
+
} & {
|
|
1183
1262
|
type: z.ZodLiteral<"relation">;
|
|
1184
1263
|
target: z.ZodString;
|
|
1264
|
+
} & {
|
|
1185
1265
|
relation: z.ZodLiteral<"manyToOne">;
|
|
1186
1266
|
inversedBy: z.ZodString;
|
|
1187
1267
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1189,23 +1269,25 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1189
1269
|
pluginOptions?: any;
|
|
1190
1270
|
required?: boolean;
|
|
1191
1271
|
type?: "relation";
|
|
1192
|
-
target?: string;
|
|
1193
1272
|
relation?: "manyToOne";
|
|
1273
|
+
target?: string;
|
|
1194
1274
|
inversedBy?: string;
|
|
1195
1275
|
}, {
|
|
1196
1276
|
__t4s_required?: boolean;
|
|
1197
1277
|
pluginOptions?: any;
|
|
1198
1278
|
required?: boolean;
|
|
1199
1279
|
type?: "relation";
|
|
1200
|
-
target?: string;
|
|
1201
1280
|
relation?: "manyToOne";
|
|
1281
|
+
target?: string;
|
|
1202
1282
|
inversedBy?: string;
|
|
1203
1283
|
}>, z.ZodObject<{
|
|
1204
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1205
1284
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1206
1285
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1286
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1287
|
+
} & {
|
|
1207
1288
|
type: z.ZodLiteral<"relation">;
|
|
1208
1289
|
target: z.ZodString;
|
|
1290
|
+
} & {
|
|
1209
1291
|
relation: z.ZodLiteral<"manyToMany">;
|
|
1210
1292
|
inversedBy: z.ZodOptional<z.ZodString>;
|
|
1211
1293
|
mappedBy: z.ZodOptional<z.ZodString>;
|
|
@@ -1214,8 +1296,8 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1214
1296
|
pluginOptions?: any;
|
|
1215
1297
|
required?: boolean;
|
|
1216
1298
|
type?: "relation";
|
|
1217
|
-
target?: string;
|
|
1218
1299
|
relation?: "manyToMany";
|
|
1300
|
+
target?: string;
|
|
1219
1301
|
inversedBy?: string;
|
|
1220
1302
|
mappedBy?: string;
|
|
1221
1303
|
}, {
|
|
@@ -1223,35 +1305,38 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1223
1305
|
pluginOptions?: any;
|
|
1224
1306
|
required?: boolean;
|
|
1225
1307
|
type?: "relation";
|
|
1226
|
-
target?: string;
|
|
1227
1308
|
relation?: "manyToMany";
|
|
1309
|
+
target?: string;
|
|
1228
1310
|
inversedBy?: string;
|
|
1229
1311
|
mappedBy?: string;
|
|
1230
1312
|
}>, z.ZodObject<{
|
|
1231
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1232
1313
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1233
1314
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1315
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1316
|
+
} & {
|
|
1234
1317
|
type: z.ZodLiteral<"relation">;
|
|
1235
1318
|
target: z.ZodString;
|
|
1319
|
+
} & {
|
|
1236
1320
|
relation: z.ZodLiteral<"oneToMany">;
|
|
1237
1321
|
}, "strip", z.ZodTypeAny, {
|
|
1238
1322
|
__t4s_required?: boolean;
|
|
1239
1323
|
pluginOptions?: any;
|
|
1240
1324
|
required?: boolean;
|
|
1241
1325
|
type?: "relation";
|
|
1242
|
-
target?: string;
|
|
1243
1326
|
relation?: "oneToMany";
|
|
1327
|
+
target?: string;
|
|
1244
1328
|
}, {
|
|
1245
1329
|
__t4s_required?: boolean;
|
|
1246
1330
|
pluginOptions?: any;
|
|
1247
1331
|
required?: boolean;
|
|
1248
1332
|
type?: "relation";
|
|
1249
|
-
target?: string;
|
|
1250
1333
|
relation?: "oneToMany";
|
|
1334
|
+
target?: string;
|
|
1251
1335
|
}>, z.ZodObject<{
|
|
1252
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1253
1336
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1254
1337
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1338
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1339
|
+
} & {
|
|
1255
1340
|
type: z.ZodLiteral<"relation">;
|
|
1256
1341
|
relation: z.ZodLiteral<"morphToMany">;
|
|
1257
1342
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1267,9 +1352,10 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1267
1352
|
type?: "relation";
|
|
1268
1353
|
relation?: "morphToMany";
|
|
1269
1354
|
}>, z.ZodObject<{
|
|
1270
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1271
1355
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1272
1356
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1357
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1358
|
+
} & {
|
|
1273
1359
|
type: z.ZodLiteral<"relation">;
|
|
1274
1360
|
relation: z.ZodLiteral<"morphToOne">;
|
|
1275
1361
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1285,9 +1371,10 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1285
1371
|
type?: "relation";
|
|
1286
1372
|
relation?: "morphToOne";
|
|
1287
1373
|
}>, z.ZodObject<{
|
|
1288
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1289
1374
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1290
1375
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1376
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1377
|
+
} & {
|
|
1291
1378
|
type: z.ZodLiteral<"component">;
|
|
1292
1379
|
repeatable: z.ZodOptional<z.ZodBoolean>;
|
|
1293
1380
|
component: z.ZodString;
|
|
@@ -1296,38 +1383,42 @@ export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1296
1383
|
pluginOptions?: any;
|
|
1297
1384
|
required?: boolean;
|
|
1298
1385
|
type?: "component";
|
|
1299
|
-
repeatable?: boolean;
|
|
1300
1386
|
component?: string;
|
|
1387
|
+
repeatable?: boolean;
|
|
1301
1388
|
}, {
|
|
1302
1389
|
__t4s_required?: boolean;
|
|
1303
1390
|
pluginOptions?: any;
|
|
1304
1391
|
required?: boolean;
|
|
1305
1392
|
type?: "component";
|
|
1306
|
-
repeatable?: boolean;
|
|
1307
1393
|
component?: string;
|
|
1394
|
+
repeatable?: boolean;
|
|
1308
1395
|
}>]>;
|
|
1309
1396
|
export type KnownAttribute = z.infer<typeof knownAttribute>;
|
|
1310
1397
|
export declare const anyAttribute: z.ZodObject<{
|
|
1311
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1312
1398
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1313
1399
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1400
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1401
|
+
} & {
|
|
1314
1402
|
type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
|
|
1315
1403
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1316
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1317
1404
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1318
1405
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1406
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1407
|
+
} & {
|
|
1319
1408
|
type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
|
|
1320
1409
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1321
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1322
1410
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1323
1411
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1412
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1413
|
+
} & {
|
|
1324
1414
|
type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
|
|
1325
1415
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1326
1416
|
export type AnyAttribute = z.infer<typeof anyAttribute>;
|
|
1327
1417
|
export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
1328
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1329
1418
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1330
1419
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1420
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1421
|
+
} & {
|
|
1331
1422
|
type: z.ZodEnum<["text", "string"]>;
|
|
1332
1423
|
}, "strip", z.ZodTypeAny, {
|
|
1333
1424
|
__t4s_required?: boolean;
|
|
@@ -1340,9 +1431,10 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1340
1431
|
required?: boolean;
|
|
1341
1432
|
type?: "string" | "text";
|
|
1342
1433
|
}>, z.ZodObject<{
|
|
1343
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1344
1434
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1345
1435
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1436
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1437
|
+
} & {
|
|
1346
1438
|
type: z.ZodLiteral<"email">;
|
|
1347
1439
|
}, "strip", z.ZodTypeAny, {
|
|
1348
1440
|
__t4s_required?: boolean;
|
|
@@ -1355,9 +1447,10 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1355
1447
|
required?: boolean;
|
|
1356
1448
|
type?: "email";
|
|
1357
1449
|
}>, z.ZodObject<{
|
|
1358
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1359
1450
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1360
1451
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1452
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1453
|
+
} & {
|
|
1361
1454
|
type: z.ZodLiteral<"uid">;
|
|
1362
1455
|
targetField: z.ZodOptional<z.ZodString>;
|
|
1363
1456
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1373,9 +1466,10 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1373
1466
|
type?: "uid";
|
|
1374
1467
|
targetField?: string;
|
|
1375
1468
|
}>, z.ZodObject<{
|
|
1376
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1377
1469
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1378
1470
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1471
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1472
|
+
} & {
|
|
1379
1473
|
type: z.ZodLiteral<"richtext">;
|
|
1380
1474
|
}, "strip", z.ZodTypeAny, {
|
|
1381
1475
|
__t4s_required?: boolean;
|
|
@@ -1388,9 +1482,10 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1388
1482
|
required?: boolean;
|
|
1389
1483
|
type?: "richtext";
|
|
1390
1484
|
}>, z.ZodObject<{
|
|
1391
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1392
1485
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1393
1486
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1487
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1488
|
+
} & {
|
|
1394
1489
|
type: z.ZodLiteral<"blocks">;
|
|
1395
1490
|
}, "strip", z.ZodTypeAny, {
|
|
1396
1491
|
__t4s_required?: boolean;
|
|
@@ -1403,9 +1498,10 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1403
1498
|
required?: boolean;
|
|
1404
1499
|
type?: "blocks";
|
|
1405
1500
|
}>, z.ZodObject<{
|
|
1406
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1407
1501
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1408
1502
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1503
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1504
|
+
} & {
|
|
1409
1505
|
type: z.ZodLiteral<"json">;
|
|
1410
1506
|
}, "strip", z.ZodTypeAny, {
|
|
1411
1507
|
__t4s_required?: boolean;
|
|
@@ -1418,9 +1514,10 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1418
1514
|
required?: boolean;
|
|
1419
1515
|
type?: "json";
|
|
1420
1516
|
}>, z.ZodObject<{
|
|
1421
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1422
1517
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1423
1518
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1519
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1520
|
+
} & {
|
|
1424
1521
|
type: z.ZodLiteral<"password">;
|
|
1425
1522
|
}, "strip", z.ZodTypeAny, {
|
|
1426
1523
|
__t4s_required?: boolean;
|
|
@@ -1433,9 +1530,10 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1433
1530
|
required?: boolean;
|
|
1434
1531
|
type?: "password";
|
|
1435
1532
|
}>, z.ZodObject<{
|
|
1436
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1437
1533
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1438
1534
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1535
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1536
|
+
} & {
|
|
1439
1537
|
type: z.ZodLiteral<"integer">;
|
|
1440
1538
|
}, "strip", z.ZodTypeAny, {
|
|
1441
1539
|
__t4s_required?: boolean;
|
|
@@ -1448,9 +1546,10 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1448
1546
|
required?: boolean;
|
|
1449
1547
|
type?: "integer";
|
|
1450
1548
|
}>, z.ZodObject<{
|
|
1451
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1452
1549
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1453
1550
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1551
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1552
|
+
} & {
|
|
1454
1553
|
type: z.ZodLiteral<"float">;
|
|
1455
1554
|
}, "strip", z.ZodTypeAny, {
|
|
1456
1555
|
__t4s_required?: boolean;
|
|
@@ -1463,9 +1562,10 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1463
1562
|
required?: boolean;
|
|
1464
1563
|
type?: "float";
|
|
1465
1564
|
}>, z.ZodObject<{
|
|
1466
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1467
1565
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1468
1566
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1567
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1568
|
+
} & {
|
|
1469
1569
|
type: z.ZodLiteral<"biginteger">;
|
|
1470
1570
|
}, "strip", z.ZodTypeAny, {
|
|
1471
1571
|
__t4s_required?: boolean;
|
|
@@ -1478,9 +1578,10 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1478
1578
|
required?: boolean;
|
|
1479
1579
|
type?: "biginteger";
|
|
1480
1580
|
}>, z.ZodObject<{
|
|
1481
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1482
1581
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1483
1582
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1583
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1584
|
+
} & {
|
|
1484
1585
|
type: z.ZodLiteral<"decimal">;
|
|
1485
1586
|
}, "strip", z.ZodTypeAny, {
|
|
1486
1587
|
__t4s_required?: boolean;
|
|
@@ -1493,9 +1594,10 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1493
1594
|
required?: boolean;
|
|
1494
1595
|
type?: "decimal";
|
|
1495
1596
|
}>, z.ZodObject<{
|
|
1496
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1497
1597
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1498
1598
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1599
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1600
|
+
} & {
|
|
1499
1601
|
type: z.ZodLiteral<"enumeration">;
|
|
1500
1602
|
enum: z.ZodArray<z.ZodString, "many">;
|
|
1501
1603
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1511,9 +1613,10 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1511
1613
|
type?: "enumeration";
|
|
1512
1614
|
enum?: string[];
|
|
1513
1615
|
}>, z.ZodObject<{
|
|
1514
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1515
1616
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1516
1617
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1618
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1619
|
+
} & {
|
|
1517
1620
|
type: z.ZodLiteral<"date">;
|
|
1518
1621
|
}, "strip", z.ZodTypeAny, {
|
|
1519
1622
|
__t4s_required?: boolean;
|
|
@@ -1526,9 +1629,10 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1526
1629
|
required?: boolean;
|
|
1527
1630
|
type?: "date";
|
|
1528
1631
|
}>, z.ZodObject<{
|
|
1529
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1530
1632
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1531
1633
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1634
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1635
|
+
} & {
|
|
1532
1636
|
type: z.ZodLiteral<"datetime">;
|
|
1533
1637
|
}, "strip", z.ZodTypeAny, {
|
|
1534
1638
|
__t4s_required?: boolean;
|
|
@@ -1541,9 +1645,10 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1541
1645
|
required?: boolean;
|
|
1542
1646
|
type?: "datetime";
|
|
1543
1647
|
}>, z.ZodObject<{
|
|
1544
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1545
1648
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1546
1649
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1650
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1651
|
+
} & {
|
|
1547
1652
|
type: z.ZodLiteral<"time">;
|
|
1548
1653
|
}, "strip", z.ZodTypeAny, {
|
|
1549
1654
|
__t4s_required?: boolean;
|
|
@@ -1556,9 +1661,10 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1556
1661
|
required?: boolean;
|
|
1557
1662
|
type?: "time";
|
|
1558
1663
|
}>, z.ZodObject<{
|
|
1559
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1560
1664
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1561
1665
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1666
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1667
|
+
} & {
|
|
1562
1668
|
type: z.ZodLiteral<"media">;
|
|
1563
1669
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
1564
1670
|
allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
|
|
@@ -1577,9 +1683,10 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1577
1683
|
multiple?: boolean;
|
|
1578
1684
|
allowedTypes?: ("images" | "videos" | "audios" | "files")[];
|
|
1579
1685
|
}>, z.ZodObject<{
|
|
1580
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1581
1686
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1582
1687
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1688
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1689
|
+
} & {
|
|
1583
1690
|
type: z.ZodLiteral<"boolean">;
|
|
1584
1691
|
}, "strip", z.ZodTypeAny, {
|
|
1585
1692
|
__t4s_required?: boolean;
|
|
@@ -1592,32 +1699,36 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1592
1699
|
required?: boolean;
|
|
1593
1700
|
type?: "boolean";
|
|
1594
1701
|
}>, z.ZodObject<{
|
|
1595
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1596
1702
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1597
1703
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1704
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1705
|
+
} & {
|
|
1598
1706
|
type: z.ZodLiteral<"relation">;
|
|
1599
1707
|
target: z.ZodString;
|
|
1708
|
+
} & {
|
|
1600
1709
|
relation: z.ZodLiteral<"oneToOne">;
|
|
1601
1710
|
}, "strip", z.ZodTypeAny, {
|
|
1602
1711
|
__t4s_required?: boolean;
|
|
1603
1712
|
pluginOptions?: any;
|
|
1604
1713
|
required?: boolean;
|
|
1605
1714
|
type?: "relation";
|
|
1606
|
-
target?: string;
|
|
1607
1715
|
relation?: "oneToOne";
|
|
1716
|
+
target?: string;
|
|
1608
1717
|
}, {
|
|
1609
1718
|
__t4s_required?: boolean;
|
|
1610
1719
|
pluginOptions?: any;
|
|
1611
1720
|
required?: boolean;
|
|
1612
1721
|
type?: "relation";
|
|
1613
|
-
target?: string;
|
|
1614
1722
|
relation?: "oneToOne";
|
|
1723
|
+
target?: string;
|
|
1615
1724
|
}>, z.ZodObject<{
|
|
1616
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1617
1725
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1618
1726
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1727
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1728
|
+
} & {
|
|
1619
1729
|
type: z.ZodLiteral<"relation">;
|
|
1620
1730
|
target: z.ZodString;
|
|
1731
|
+
} & {
|
|
1621
1732
|
relation: z.ZodLiteral<"oneToOne">;
|
|
1622
1733
|
inversedBy: z.ZodString;
|
|
1623
1734
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1625,23 +1736,25 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1625
1736
|
pluginOptions?: any;
|
|
1626
1737
|
required?: boolean;
|
|
1627
1738
|
type?: "relation";
|
|
1628
|
-
target?: string;
|
|
1629
1739
|
relation?: "oneToOne";
|
|
1740
|
+
target?: string;
|
|
1630
1741
|
inversedBy?: string;
|
|
1631
1742
|
}, {
|
|
1632
1743
|
__t4s_required?: boolean;
|
|
1633
1744
|
pluginOptions?: any;
|
|
1634
1745
|
required?: boolean;
|
|
1635
1746
|
type?: "relation";
|
|
1636
|
-
target?: string;
|
|
1637
1747
|
relation?: "oneToOne";
|
|
1748
|
+
target?: string;
|
|
1638
1749
|
inversedBy?: string;
|
|
1639
1750
|
}>, z.ZodObject<{
|
|
1640
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1641
1751
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1642
1752
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1753
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1754
|
+
} & {
|
|
1643
1755
|
type: z.ZodLiteral<"relation">;
|
|
1644
1756
|
target: z.ZodString;
|
|
1757
|
+
} & {
|
|
1645
1758
|
mappedBy: z.ZodString;
|
|
1646
1759
|
relation: z.ZodLiteral<"oneToMany">;
|
|
1647
1760
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1649,23 +1762,25 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1649
1762
|
pluginOptions?: any;
|
|
1650
1763
|
required?: boolean;
|
|
1651
1764
|
type?: "relation";
|
|
1765
|
+
relation?: "oneToMany";
|
|
1652
1766
|
target?: string;
|
|
1653
1767
|
mappedBy?: string;
|
|
1654
|
-
relation?: "oneToMany";
|
|
1655
1768
|
}, {
|
|
1656
1769
|
__t4s_required?: boolean;
|
|
1657
1770
|
pluginOptions?: any;
|
|
1658
1771
|
required?: boolean;
|
|
1659
1772
|
type?: "relation";
|
|
1773
|
+
relation?: "oneToMany";
|
|
1660
1774
|
target?: string;
|
|
1661
1775
|
mappedBy?: string;
|
|
1662
|
-
relation?: "oneToMany";
|
|
1663
1776
|
}>, z.ZodObject<{
|
|
1664
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1665
1777
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1666
1778
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1779
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1780
|
+
} & {
|
|
1667
1781
|
type: z.ZodLiteral<"relation">;
|
|
1668
1782
|
target: z.ZodString;
|
|
1783
|
+
} & {
|
|
1669
1784
|
relation: z.ZodLiteral<"manyToOne">;
|
|
1670
1785
|
inversedBy: z.ZodString;
|
|
1671
1786
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1673,23 +1788,25 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1673
1788
|
pluginOptions?: any;
|
|
1674
1789
|
required?: boolean;
|
|
1675
1790
|
type?: "relation";
|
|
1676
|
-
target?: string;
|
|
1677
1791
|
relation?: "manyToOne";
|
|
1792
|
+
target?: string;
|
|
1678
1793
|
inversedBy?: string;
|
|
1679
1794
|
}, {
|
|
1680
1795
|
__t4s_required?: boolean;
|
|
1681
1796
|
pluginOptions?: any;
|
|
1682
1797
|
required?: boolean;
|
|
1683
1798
|
type?: "relation";
|
|
1684
|
-
target?: string;
|
|
1685
1799
|
relation?: "manyToOne";
|
|
1800
|
+
target?: string;
|
|
1686
1801
|
inversedBy?: string;
|
|
1687
1802
|
}>, z.ZodObject<{
|
|
1688
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1689
1803
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1690
1804
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1805
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1806
|
+
} & {
|
|
1691
1807
|
type: z.ZodLiteral<"relation">;
|
|
1692
1808
|
target: z.ZodString;
|
|
1809
|
+
} & {
|
|
1693
1810
|
relation: z.ZodLiteral<"manyToMany">;
|
|
1694
1811
|
inversedBy: z.ZodOptional<z.ZodString>;
|
|
1695
1812
|
mappedBy: z.ZodOptional<z.ZodString>;
|
|
@@ -1698,8 +1815,8 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1698
1815
|
pluginOptions?: any;
|
|
1699
1816
|
required?: boolean;
|
|
1700
1817
|
type?: "relation";
|
|
1701
|
-
target?: string;
|
|
1702
1818
|
relation?: "manyToMany";
|
|
1819
|
+
target?: string;
|
|
1703
1820
|
inversedBy?: string;
|
|
1704
1821
|
mappedBy?: string;
|
|
1705
1822
|
}, {
|
|
@@ -1707,35 +1824,38 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1707
1824
|
pluginOptions?: any;
|
|
1708
1825
|
required?: boolean;
|
|
1709
1826
|
type?: "relation";
|
|
1710
|
-
target?: string;
|
|
1711
1827
|
relation?: "manyToMany";
|
|
1828
|
+
target?: string;
|
|
1712
1829
|
inversedBy?: string;
|
|
1713
1830
|
mappedBy?: string;
|
|
1714
1831
|
}>, z.ZodObject<{
|
|
1715
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1716
1832
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1717
1833
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1834
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1835
|
+
} & {
|
|
1718
1836
|
type: z.ZodLiteral<"relation">;
|
|
1719
1837
|
target: z.ZodString;
|
|
1838
|
+
} & {
|
|
1720
1839
|
relation: z.ZodLiteral<"oneToMany">;
|
|
1721
1840
|
}, "strip", z.ZodTypeAny, {
|
|
1722
1841
|
__t4s_required?: boolean;
|
|
1723
1842
|
pluginOptions?: any;
|
|
1724
1843
|
required?: boolean;
|
|
1725
1844
|
type?: "relation";
|
|
1726
|
-
target?: string;
|
|
1727
1845
|
relation?: "oneToMany";
|
|
1846
|
+
target?: string;
|
|
1728
1847
|
}, {
|
|
1729
1848
|
__t4s_required?: boolean;
|
|
1730
1849
|
pluginOptions?: any;
|
|
1731
1850
|
required?: boolean;
|
|
1732
1851
|
type?: "relation";
|
|
1733
|
-
target?: string;
|
|
1734
1852
|
relation?: "oneToMany";
|
|
1853
|
+
target?: string;
|
|
1735
1854
|
}>, z.ZodObject<{
|
|
1736
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1737
1855
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1738
1856
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1857
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1858
|
+
} & {
|
|
1739
1859
|
type: z.ZodLiteral<"relation">;
|
|
1740
1860
|
relation: z.ZodLiteral<"morphToMany">;
|
|
1741
1861
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1751,9 +1871,10 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1751
1871
|
type?: "relation";
|
|
1752
1872
|
relation?: "morphToMany";
|
|
1753
1873
|
}>, z.ZodObject<{
|
|
1754
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1755
1874
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1756
1875
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1876
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1877
|
+
} & {
|
|
1757
1878
|
type: z.ZodLiteral<"relation">;
|
|
1758
1879
|
relation: z.ZodLiteral<"morphToOne">;
|
|
1759
1880
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1769,9 +1890,10 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1769
1890
|
type?: "relation";
|
|
1770
1891
|
relation?: "morphToOne";
|
|
1771
1892
|
}>, z.ZodObject<{
|
|
1772
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1773
1893
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1774
1894
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1895
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1896
|
+
} & {
|
|
1775
1897
|
type: z.ZodLiteral<"component">;
|
|
1776
1898
|
repeatable: z.ZodOptional<z.ZodBoolean>;
|
|
1777
1899
|
component: z.ZodString;
|
|
@@ -1780,352 +1902,60 @@ export declare const attribute: z.ZodUnion<[z.ZodObject<{
|
|
|
1780
1902
|
pluginOptions?: any;
|
|
1781
1903
|
required?: boolean;
|
|
1782
1904
|
type?: "component";
|
|
1783
|
-
repeatable?: boolean;
|
|
1784
1905
|
component?: string;
|
|
1906
|
+
repeatable?: boolean;
|
|
1785
1907
|
}, {
|
|
1786
1908
|
__t4s_required?: boolean;
|
|
1787
1909
|
pluginOptions?: any;
|
|
1788
1910
|
required?: boolean;
|
|
1789
1911
|
type?: "component";
|
|
1790
|
-
repeatable?: boolean;
|
|
1791
1912
|
component?: string;
|
|
1913
|
+
repeatable?: boolean;
|
|
1792
1914
|
}>, z.ZodObject<{
|
|
1793
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1794
1915
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1795
1916
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1917
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1918
|
+
} & {
|
|
1796
1919
|
type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
|
|
1797
1920
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1798
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1799
1921
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1800
1922
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1923
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1924
|
+
} & {
|
|
1801
1925
|
type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
|
|
1802
1926
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1803
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1804
1927
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1805
1928
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1929
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1930
|
+
} & {
|
|
1806
1931
|
type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
|
|
1807
1932
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1808
1933
|
export type Attribute = z.infer<typeof attribute>;
|
|
1809
|
-
export declare const isKnownAttribute: <T extends
|
|
1810
|
-
|
|
1811
|
-
pluginOptions?: any;
|
|
1812
|
-
required?: boolean;
|
|
1813
|
-
type?: "string" | "text";
|
|
1814
|
-
} | {
|
|
1815
|
-
__t4s_required?: boolean;
|
|
1816
|
-
pluginOptions?: any;
|
|
1817
|
-
required?: boolean;
|
|
1818
|
-
type?: "email";
|
|
1819
|
-
} | {
|
|
1820
|
-
__t4s_required?: boolean;
|
|
1821
|
-
pluginOptions?: any;
|
|
1822
|
-
required?: boolean;
|
|
1823
|
-
type?: "uid";
|
|
1824
|
-
targetField?: string;
|
|
1825
|
-
} | {
|
|
1826
|
-
__t4s_required?: boolean;
|
|
1827
|
-
pluginOptions?: any;
|
|
1828
|
-
required?: boolean;
|
|
1829
|
-
type?: "richtext";
|
|
1830
|
-
} | {
|
|
1831
|
-
__t4s_required?: boolean;
|
|
1832
|
-
pluginOptions?: any;
|
|
1833
|
-
required?: boolean;
|
|
1834
|
-
type?: "blocks";
|
|
1835
|
-
} | {
|
|
1836
|
-
__t4s_required?: boolean;
|
|
1837
|
-
pluginOptions?: any;
|
|
1838
|
-
required?: boolean;
|
|
1839
|
-
type?: "json";
|
|
1840
|
-
} | {
|
|
1841
|
-
__t4s_required?: boolean;
|
|
1842
|
-
pluginOptions?: any;
|
|
1843
|
-
required?: boolean;
|
|
1844
|
-
type?: "password";
|
|
1845
|
-
} | {
|
|
1846
|
-
__t4s_required?: boolean;
|
|
1847
|
-
pluginOptions?: any;
|
|
1848
|
-
required?: boolean;
|
|
1849
|
-
type?: "integer";
|
|
1850
|
-
} | {
|
|
1851
|
-
__t4s_required?: boolean;
|
|
1852
|
-
pluginOptions?: any;
|
|
1853
|
-
required?: boolean;
|
|
1854
|
-
type?: "float";
|
|
1855
|
-
} | {
|
|
1856
|
-
__t4s_required?: boolean;
|
|
1857
|
-
pluginOptions?: any;
|
|
1858
|
-
required?: boolean;
|
|
1859
|
-
type?: "biginteger";
|
|
1860
|
-
} | {
|
|
1861
|
-
__t4s_required?: boolean;
|
|
1862
|
-
pluginOptions?: any;
|
|
1863
|
-
required?: boolean;
|
|
1864
|
-
type?: "decimal";
|
|
1865
|
-
} | {
|
|
1866
|
-
__t4s_required?: boolean;
|
|
1867
|
-
pluginOptions?: any;
|
|
1868
|
-
required?: boolean;
|
|
1869
|
-
type?: "enumeration";
|
|
1870
|
-
enum?: string[];
|
|
1871
|
-
} | {
|
|
1872
|
-
__t4s_required?: boolean;
|
|
1873
|
-
pluginOptions?: any;
|
|
1874
|
-
required?: boolean;
|
|
1875
|
-
type?: "date";
|
|
1876
|
-
} | {
|
|
1877
|
-
__t4s_required?: boolean;
|
|
1878
|
-
pluginOptions?: any;
|
|
1879
|
-
required?: boolean;
|
|
1880
|
-
type?: "datetime";
|
|
1881
|
-
} | {
|
|
1882
|
-
__t4s_required?: boolean;
|
|
1883
|
-
pluginOptions?: any;
|
|
1884
|
-
required?: boolean;
|
|
1885
|
-
type?: "time";
|
|
1886
|
-
} | {
|
|
1887
|
-
__t4s_required?: boolean;
|
|
1888
|
-
pluginOptions?: any;
|
|
1889
|
-
required?: boolean;
|
|
1890
|
-
type?: "media";
|
|
1891
|
-
multiple?: boolean;
|
|
1892
|
-
allowedTypes?: ("images" | "videos" | "audios" | "files")[];
|
|
1893
|
-
} | {
|
|
1894
|
-
__t4s_required?: boolean;
|
|
1895
|
-
pluginOptions?: any;
|
|
1896
|
-
required?: boolean;
|
|
1897
|
-
type?: "boolean";
|
|
1898
|
-
} | {
|
|
1899
|
-
__t4s_required?: boolean;
|
|
1900
|
-
pluginOptions?: any;
|
|
1901
|
-
required?: boolean;
|
|
1902
|
-
type?: "relation";
|
|
1903
|
-
target?: string;
|
|
1904
|
-
relation?: "oneToOne";
|
|
1905
|
-
} | {
|
|
1906
|
-
__t4s_required?: boolean;
|
|
1907
|
-
pluginOptions?: any;
|
|
1908
|
-
required?: boolean;
|
|
1909
|
-
type?: "relation";
|
|
1910
|
-
target?: string;
|
|
1911
|
-
relation?: "oneToOne";
|
|
1912
|
-
inversedBy?: string;
|
|
1913
|
-
} | {
|
|
1914
|
-
__t4s_required?: boolean;
|
|
1915
|
-
pluginOptions?: any;
|
|
1916
|
-
required?: boolean;
|
|
1917
|
-
type?: "relation";
|
|
1918
|
-
target?: string;
|
|
1919
|
-
mappedBy?: string;
|
|
1920
|
-
relation?: "oneToMany";
|
|
1921
|
-
} | {
|
|
1922
|
-
__t4s_required?: boolean;
|
|
1923
|
-
pluginOptions?: any;
|
|
1924
|
-
required?: boolean;
|
|
1925
|
-
type?: "relation";
|
|
1926
|
-
target?: string;
|
|
1927
|
-
relation?: "manyToOne";
|
|
1928
|
-
inversedBy?: string;
|
|
1929
|
-
} | {
|
|
1930
|
-
__t4s_required?: boolean;
|
|
1931
|
-
pluginOptions?: any;
|
|
1932
|
-
required?: boolean;
|
|
1933
|
-
type?: "relation";
|
|
1934
|
-
target?: string;
|
|
1935
|
-
relation?: "manyToMany";
|
|
1936
|
-
inversedBy?: string;
|
|
1937
|
-
mappedBy?: string;
|
|
1938
|
-
} | {
|
|
1939
|
-
__t4s_required?: boolean;
|
|
1940
|
-
pluginOptions?: any;
|
|
1941
|
-
required?: boolean;
|
|
1942
|
-
type?: "relation";
|
|
1943
|
-
target?: string;
|
|
1944
|
-
relation?: "oneToMany";
|
|
1945
|
-
} | {
|
|
1946
|
-
__t4s_required?: boolean;
|
|
1947
|
-
pluginOptions?: any;
|
|
1948
|
-
required?: boolean;
|
|
1949
|
-
type?: "relation";
|
|
1950
|
-
relation?: "morphToMany";
|
|
1951
|
-
} | {
|
|
1952
|
-
__t4s_required?: boolean;
|
|
1953
|
-
pluginOptions?: any;
|
|
1954
|
-
required?: boolean;
|
|
1955
|
-
type?: "relation";
|
|
1956
|
-
relation?: "morphToOne";
|
|
1957
|
-
} | {
|
|
1958
|
-
__t4s_required?: boolean;
|
|
1959
|
-
pluginOptions?: any;
|
|
1960
|
-
required?: boolean;
|
|
1961
|
-
type?: "component";
|
|
1962
|
-
repeatable?: boolean;
|
|
1963
|
-
component?: string;
|
|
1964
|
-
} | z.objectOutputType<{
|
|
1965
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1934
|
+
export declare const isKnownAttribute: <T extends Attribute>(attributeObject: T) => attributeObject is T & KnownAttribute;
|
|
1935
|
+
export declare const contentTypeAttribute: z.ZodUnion<[z.ZodObject<{
|
|
1966
1936
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
1967
1937
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1968
|
-
|
|
1969
|
-
}
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
type?: "string" | "text";
|
|
1974
|
-
} | {
|
|
1975
|
-
__t4s_required?: boolean;
|
|
1976
|
-
pluginOptions?: any;
|
|
1977
|
-
required?: boolean;
|
|
1978
|
-
type?: "email";
|
|
1979
|
-
} | {
|
|
1980
|
-
__t4s_required?: boolean;
|
|
1981
|
-
pluginOptions?: any;
|
|
1982
|
-
required?: boolean;
|
|
1983
|
-
type?: "uid";
|
|
1984
|
-
targetField?: string;
|
|
1985
|
-
} | {
|
|
1986
|
-
__t4s_required?: boolean;
|
|
1987
|
-
pluginOptions?: any;
|
|
1988
|
-
required?: boolean;
|
|
1989
|
-
type?: "richtext";
|
|
1990
|
-
} | {
|
|
1991
|
-
__t4s_required?: boolean;
|
|
1992
|
-
pluginOptions?: any;
|
|
1993
|
-
required?: boolean;
|
|
1994
|
-
type?: "blocks";
|
|
1995
|
-
} | {
|
|
1996
|
-
__t4s_required?: boolean;
|
|
1997
|
-
pluginOptions?: any;
|
|
1998
|
-
required?: boolean;
|
|
1999
|
-
type?: "json";
|
|
2000
|
-
} | {
|
|
2001
|
-
__t4s_required?: boolean;
|
|
2002
|
-
pluginOptions?: any;
|
|
2003
|
-
required?: boolean;
|
|
2004
|
-
type?: "password";
|
|
2005
|
-
} | {
|
|
2006
|
-
__t4s_required?: boolean;
|
|
2007
|
-
pluginOptions?: any;
|
|
2008
|
-
required?: boolean;
|
|
2009
|
-
type?: "integer";
|
|
2010
|
-
} | {
|
|
2011
|
-
__t4s_required?: boolean;
|
|
2012
|
-
pluginOptions?: any;
|
|
2013
|
-
required?: boolean;
|
|
2014
|
-
type?: "float";
|
|
2015
|
-
} | {
|
|
2016
|
-
__t4s_required?: boolean;
|
|
2017
|
-
pluginOptions?: any;
|
|
2018
|
-
required?: boolean;
|
|
2019
|
-
type?: "biginteger";
|
|
2020
|
-
} | {
|
|
2021
|
-
__t4s_required?: boolean;
|
|
2022
|
-
pluginOptions?: any;
|
|
2023
|
-
required?: boolean;
|
|
2024
|
-
type?: "decimal";
|
|
2025
|
-
} | {
|
|
2026
|
-
__t4s_required?: boolean;
|
|
2027
|
-
pluginOptions?: any;
|
|
2028
|
-
required?: boolean;
|
|
2029
|
-
type?: "enumeration";
|
|
2030
|
-
enum?: string[];
|
|
2031
|
-
} | {
|
|
2032
|
-
__t4s_required?: boolean;
|
|
2033
|
-
pluginOptions?: any;
|
|
2034
|
-
required?: boolean;
|
|
2035
|
-
type?: "date";
|
|
2036
|
-
} | {
|
|
2037
|
-
__t4s_required?: boolean;
|
|
2038
|
-
pluginOptions?: any;
|
|
2039
|
-
required?: boolean;
|
|
2040
|
-
type?: "datetime";
|
|
2041
|
-
} | {
|
|
2042
|
-
__t4s_required?: boolean;
|
|
2043
|
-
pluginOptions?: any;
|
|
2044
|
-
required?: boolean;
|
|
2045
|
-
type?: "time";
|
|
2046
|
-
} | {
|
|
2047
|
-
__t4s_required?: boolean;
|
|
2048
|
-
pluginOptions?: any;
|
|
2049
|
-
required?: boolean;
|
|
2050
|
-
type?: "media";
|
|
2051
|
-
multiple?: boolean;
|
|
2052
|
-
allowedTypes?: ("images" | "videos" | "audios" | "files")[];
|
|
2053
|
-
} | {
|
|
2054
|
-
__t4s_required?: boolean;
|
|
2055
|
-
pluginOptions?: any;
|
|
2056
|
-
required?: boolean;
|
|
2057
|
-
type?: "boolean";
|
|
2058
|
-
} | {
|
|
2059
|
-
__t4s_required?: boolean;
|
|
2060
|
-
pluginOptions?: any;
|
|
2061
|
-
required?: boolean;
|
|
2062
|
-
type?: "relation";
|
|
2063
|
-
target?: string;
|
|
2064
|
-
relation?: "oneToOne";
|
|
2065
|
-
} | {
|
|
2066
|
-
__t4s_required?: boolean;
|
|
2067
|
-
pluginOptions?: any;
|
|
2068
|
-
required?: boolean;
|
|
2069
|
-
type?: "relation";
|
|
2070
|
-
target?: string;
|
|
2071
|
-
relation?: "oneToOne";
|
|
2072
|
-
inversedBy?: string;
|
|
2073
|
-
} | {
|
|
2074
|
-
__t4s_required?: boolean;
|
|
2075
|
-
pluginOptions?: any;
|
|
2076
|
-
required?: boolean;
|
|
2077
|
-
type?: "relation";
|
|
2078
|
-
target?: string;
|
|
2079
|
-
mappedBy?: string;
|
|
2080
|
-
relation?: "oneToMany";
|
|
2081
|
-
} | {
|
|
2082
|
-
__t4s_required?: boolean;
|
|
2083
|
-
pluginOptions?: any;
|
|
2084
|
-
required?: boolean;
|
|
2085
|
-
type?: "relation";
|
|
2086
|
-
target?: string;
|
|
2087
|
-
relation?: "manyToOne";
|
|
2088
|
-
inversedBy?: string;
|
|
2089
|
-
} | {
|
|
2090
|
-
__t4s_required?: boolean;
|
|
2091
|
-
pluginOptions?: any;
|
|
2092
|
-
required?: boolean;
|
|
2093
|
-
type?: "relation";
|
|
2094
|
-
target?: string;
|
|
2095
|
-
relation?: "manyToMany";
|
|
2096
|
-
inversedBy?: string;
|
|
2097
|
-
mappedBy?: string;
|
|
2098
|
-
} | {
|
|
2099
|
-
__t4s_required?: boolean;
|
|
2100
|
-
pluginOptions?: any;
|
|
2101
|
-
required?: boolean;
|
|
2102
|
-
type?: "relation";
|
|
2103
|
-
target?: string;
|
|
2104
|
-
relation?: "oneToMany";
|
|
2105
|
-
} | {
|
|
2106
|
-
__t4s_required?: boolean;
|
|
2107
|
-
pluginOptions?: any;
|
|
2108
|
-
required?: boolean;
|
|
2109
|
-
type?: "relation";
|
|
2110
|
-
relation?: "morphToMany";
|
|
2111
|
-
} | {
|
|
1938
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1939
|
+
} & {
|
|
1940
|
+
type: z.ZodLiteral<"dynamiczone">;
|
|
1941
|
+
components: z.ZodArray<z.ZodString, "many">;
|
|
1942
|
+
}, "strip", z.ZodTypeAny, {
|
|
2112
1943
|
__t4s_required?: boolean;
|
|
2113
1944
|
pluginOptions?: any;
|
|
2114
1945
|
required?: boolean;
|
|
2115
|
-
type?: "
|
|
2116
|
-
|
|
2117
|
-
}
|
|
1946
|
+
type?: "dynamiczone";
|
|
1947
|
+
components?: string[];
|
|
1948
|
+
}, {
|
|
2118
1949
|
__t4s_required?: boolean;
|
|
2119
1950
|
pluginOptions?: any;
|
|
2120
1951
|
required?: boolean;
|
|
2121
|
-
type?: "
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
});
|
|
2125
|
-
export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
2126
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1952
|
+
type?: "dynamiczone";
|
|
1953
|
+
components?: string[];
|
|
1954
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
2127
1955
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2128
1956
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1957
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1958
|
+
} & {
|
|
2129
1959
|
type: z.ZodEnum<["text", "string"]>;
|
|
2130
1960
|
}, "strip", z.ZodTypeAny, {
|
|
2131
1961
|
__t4s_required?: boolean;
|
|
@@ -2138,9 +1968,10 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2138
1968
|
required?: boolean;
|
|
2139
1969
|
type?: "string" | "text";
|
|
2140
1970
|
}>, z.ZodObject<{
|
|
2141
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2142
1971
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2143
1972
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1973
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1974
|
+
} & {
|
|
2144
1975
|
type: z.ZodLiteral<"email">;
|
|
2145
1976
|
}, "strip", z.ZodTypeAny, {
|
|
2146
1977
|
__t4s_required?: boolean;
|
|
@@ -2153,9 +1984,10 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2153
1984
|
required?: boolean;
|
|
2154
1985
|
type?: "email";
|
|
2155
1986
|
}>, z.ZodObject<{
|
|
2156
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2157
1987
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2158
1988
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1989
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
1990
|
+
} & {
|
|
2159
1991
|
type: z.ZodLiteral<"uid">;
|
|
2160
1992
|
targetField: z.ZodOptional<z.ZodString>;
|
|
2161
1993
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2171,9 +2003,10 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2171
2003
|
type?: "uid";
|
|
2172
2004
|
targetField?: string;
|
|
2173
2005
|
}>, z.ZodObject<{
|
|
2174
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2175
2006
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2176
2007
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2008
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2009
|
+
} & {
|
|
2177
2010
|
type: z.ZodLiteral<"richtext">;
|
|
2178
2011
|
}, "strip", z.ZodTypeAny, {
|
|
2179
2012
|
__t4s_required?: boolean;
|
|
@@ -2186,9 +2019,10 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2186
2019
|
required?: boolean;
|
|
2187
2020
|
type?: "richtext";
|
|
2188
2021
|
}>, z.ZodObject<{
|
|
2189
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2190
2022
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2191
2023
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2024
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2025
|
+
} & {
|
|
2192
2026
|
type: z.ZodLiteral<"blocks">;
|
|
2193
2027
|
}, "strip", z.ZodTypeAny, {
|
|
2194
2028
|
__t4s_required?: boolean;
|
|
@@ -2201,9 +2035,10 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2201
2035
|
required?: boolean;
|
|
2202
2036
|
type?: "blocks";
|
|
2203
2037
|
}>, z.ZodObject<{
|
|
2204
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2205
2038
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2206
2039
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2040
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2041
|
+
} & {
|
|
2207
2042
|
type: z.ZodLiteral<"json">;
|
|
2208
2043
|
}, "strip", z.ZodTypeAny, {
|
|
2209
2044
|
__t4s_required?: boolean;
|
|
@@ -2216,9 +2051,10 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2216
2051
|
required?: boolean;
|
|
2217
2052
|
type?: "json";
|
|
2218
2053
|
}>, z.ZodObject<{
|
|
2219
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2220
2054
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2221
2055
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2056
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2057
|
+
} & {
|
|
2222
2058
|
type: z.ZodLiteral<"password">;
|
|
2223
2059
|
}, "strip", z.ZodTypeAny, {
|
|
2224
2060
|
__t4s_required?: boolean;
|
|
@@ -2231,9 +2067,10 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2231
2067
|
required?: boolean;
|
|
2232
2068
|
type?: "password";
|
|
2233
2069
|
}>, z.ZodObject<{
|
|
2234
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2235
2070
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2236
2071
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2072
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2073
|
+
} & {
|
|
2237
2074
|
type: z.ZodLiteral<"integer">;
|
|
2238
2075
|
}, "strip", z.ZodTypeAny, {
|
|
2239
2076
|
__t4s_required?: boolean;
|
|
@@ -2246,9 +2083,10 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2246
2083
|
required?: boolean;
|
|
2247
2084
|
type?: "integer";
|
|
2248
2085
|
}>, z.ZodObject<{
|
|
2249
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2250
2086
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2251
2087
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2088
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2089
|
+
} & {
|
|
2252
2090
|
type: z.ZodLiteral<"float">;
|
|
2253
2091
|
}, "strip", z.ZodTypeAny, {
|
|
2254
2092
|
__t4s_required?: boolean;
|
|
@@ -2261,9 +2099,10 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2261
2099
|
required?: boolean;
|
|
2262
2100
|
type?: "float";
|
|
2263
2101
|
}>, z.ZodObject<{
|
|
2264
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2265
2102
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2266
2103
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2104
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2105
|
+
} & {
|
|
2267
2106
|
type: z.ZodLiteral<"biginteger">;
|
|
2268
2107
|
}, "strip", z.ZodTypeAny, {
|
|
2269
2108
|
__t4s_required?: boolean;
|
|
@@ -2276,9 +2115,10 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2276
2115
|
required?: boolean;
|
|
2277
2116
|
type?: "biginteger";
|
|
2278
2117
|
}>, z.ZodObject<{
|
|
2279
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2280
2118
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2281
2119
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2120
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2121
|
+
} & {
|
|
2282
2122
|
type: z.ZodLiteral<"decimal">;
|
|
2283
2123
|
}, "strip", z.ZodTypeAny, {
|
|
2284
2124
|
__t4s_required?: boolean;
|
|
@@ -2291,9 +2131,10 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2291
2131
|
required?: boolean;
|
|
2292
2132
|
type?: "decimal";
|
|
2293
2133
|
}>, z.ZodObject<{
|
|
2294
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2295
2134
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2296
2135
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2136
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2137
|
+
} & {
|
|
2297
2138
|
type: z.ZodLiteral<"enumeration">;
|
|
2298
2139
|
enum: z.ZodArray<z.ZodString, "many">;
|
|
2299
2140
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2309,9 +2150,10 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2309
2150
|
type?: "enumeration";
|
|
2310
2151
|
enum?: string[];
|
|
2311
2152
|
}>, z.ZodObject<{
|
|
2312
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2313
2153
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2314
2154
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2155
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2156
|
+
} & {
|
|
2315
2157
|
type: z.ZodLiteral<"date">;
|
|
2316
2158
|
}, "strip", z.ZodTypeAny, {
|
|
2317
2159
|
__t4s_required?: boolean;
|
|
@@ -2324,9 +2166,10 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2324
2166
|
required?: boolean;
|
|
2325
2167
|
type?: "date";
|
|
2326
2168
|
}>, z.ZodObject<{
|
|
2327
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2328
2169
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2329
2170
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2171
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2172
|
+
} & {
|
|
2330
2173
|
type: z.ZodLiteral<"datetime">;
|
|
2331
2174
|
}, "strip", z.ZodTypeAny, {
|
|
2332
2175
|
__t4s_required?: boolean;
|
|
@@ -2339,9 +2182,10 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2339
2182
|
required?: boolean;
|
|
2340
2183
|
type?: "datetime";
|
|
2341
2184
|
}>, z.ZodObject<{
|
|
2342
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2343
2185
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2344
2186
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2187
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2188
|
+
} & {
|
|
2345
2189
|
type: z.ZodLiteral<"time">;
|
|
2346
2190
|
}, "strip", z.ZodTypeAny, {
|
|
2347
2191
|
__t4s_required?: boolean;
|
|
@@ -2354,9 +2198,10 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2354
2198
|
required?: boolean;
|
|
2355
2199
|
type?: "time";
|
|
2356
2200
|
}>, z.ZodObject<{
|
|
2357
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2358
2201
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2359
2202
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2203
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2204
|
+
} & {
|
|
2360
2205
|
type: z.ZodLiteral<"media">;
|
|
2361
2206
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
2362
2207
|
allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
|
|
@@ -2375,9 +2220,10 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2375
2220
|
multiple?: boolean;
|
|
2376
2221
|
allowedTypes?: ("images" | "videos" | "audios" | "files")[];
|
|
2377
2222
|
}>, z.ZodObject<{
|
|
2378
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2379
2223
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2380
2224
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2225
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2226
|
+
} & {
|
|
2381
2227
|
type: z.ZodLiteral<"boolean">;
|
|
2382
2228
|
}, "strip", z.ZodTypeAny, {
|
|
2383
2229
|
__t4s_required?: boolean;
|
|
@@ -2390,32 +2236,36 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2390
2236
|
required?: boolean;
|
|
2391
2237
|
type?: "boolean";
|
|
2392
2238
|
}>, z.ZodObject<{
|
|
2393
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2394
2239
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2395
2240
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2241
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2242
|
+
} & {
|
|
2396
2243
|
type: z.ZodLiteral<"relation">;
|
|
2397
2244
|
target: z.ZodString;
|
|
2245
|
+
} & {
|
|
2398
2246
|
relation: z.ZodLiteral<"oneToOne">;
|
|
2399
2247
|
}, "strip", z.ZodTypeAny, {
|
|
2400
2248
|
__t4s_required?: boolean;
|
|
2401
2249
|
pluginOptions?: any;
|
|
2402
2250
|
required?: boolean;
|
|
2403
2251
|
type?: "relation";
|
|
2404
|
-
target?: string;
|
|
2405
2252
|
relation?: "oneToOne";
|
|
2253
|
+
target?: string;
|
|
2406
2254
|
}, {
|
|
2407
2255
|
__t4s_required?: boolean;
|
|
2408
2256
|
pluginOptions?: any;
|
|
2409
2257
|
required?: boolean;
|
|
2410
2258
|
type?: "relation";
|
|
2411
|
-
target?: string;
|
|
2412
2259
|
relation?: "oneToOne";
|
|
2260
|
+
target?: string;
|
|
2413
2261
|
}>, z.ZodObject<{
|
|
2414
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2415
2262
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2416
2263
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2264
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2265
|
+
} & {
|
|
2417
2266
|
type: z.ZodLiteral<"relation">;
|
|
2418
2267
|
target: z.ZodString;
|
|
2268
|
+
} & {
|
|
2419
2269
|
relation: z.ZodLiteral<"oneToOne">;
|
|
2420
2270
|
inversedBy: z.ZodString;
|
|
2421
2271
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2423,23 +2273,25 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2423
2273
|
pluginOptions?: any;
|
|
2424
2274
|
required?: boolean;
|
|
2425
2275
|
type?: "relation";
|
|
2426
|
-
target?: string;
|
|
2427
2276
|
relation?: "oneToOne";
|
|
2277
|
+
target?: string;
|
|
2428
2278
|
inversedBy?: string;
|
|
2429
2279
|
}, {
|
|
2430
2280
|
__t4s_required?: boolean;
|
|
2431
2281
|
pluginOptions?: any;
|
|
2432
2282
|
required?: boolean;
|
|
2433
2283
|
type?: "relation";
|
|
2434
|
-
target?: string;
|
|
2435
2284
|
relation?: "oneToOne";
|
|
2285
|
+
target?: string;
|
|
2436
2286
|
inversedBy?: string;
|
|
2437
2287
|
}>, z.ZodObject<{
|
|
2438
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2439
2288
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2440
2289
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2290
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2291
|
+
} & {
|
|
2441
2292
|
type: z.ZodLiteral<"relation">;
|
|
2442
2293
|
target: z.ZodString;
|
|
2294
|
+
} & {
|
|
2443
2295
|
mappedBy: z.ZodString;
|
|
2444
2296
|
relation: z.ZodLiteral<"oneToMany">;
|
|
2445
2297
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2447,23 +2299,25 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2447
2299
|
pluginOptions?: any;
|
|
2448
2300
|
required?: boolean;
|
|
2449
2301
|
type?: "relation";
|
|
2302
|
+
relation?: "oneToMany";
|
|
2450
2303
|
target?: string;
|
|
2451
2304
|
mappedBy?: string;
|
|
2452
|
-
relation?: "oneToMany";
|
|
2453
2305
|
}, {
|
|
2454
2306
|
__t4s_required?: boolean;
|
|
2455
2307
|
pluginOptions?: any;
|
|
2456
2308
|
required?: boolean;
|
|
2457
2309
|
type?: "relation";
|
|
2310
|
+
relation?: "oneToMany";
|
|
2458
2311
|
target?: string;
|
|
2459
2312
|
mappedBy?: string;
|
|
2460
|
-
relation?: "oneToMany";
|
|
2461
2313
|
}>, z.ZodObject<{
|
|
2462
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2463
2314
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2464
2315
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2316
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2317
|
+
} & {
|
|
2465
2318
|
type: z.ZodLiteral<"relation">;
|
|
2466
2319
|
target: z.ZodString;
|
|
2320
|
+
} & {
|
|
2467
2321
|
relation: z.ZodLiteral<"manyToOne">;
|
|
2468
2322
|
inversedBy: z.ZodString;
|
|
2469
2323
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2471,23 +2325,25 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2471
2325
|
pluginOptions?: any;
|
|
2472
2326
|
required?: boolean;
|
|
2473
2327
|
type?: "relation";
|
|
2474
|
-
target?: string;
|
|
2475
2328
|
relation?: "manyToOne";
|
|
2329
|
+
target?: string;
|
|
2476
2330
|
inversedBy?: string;
|
|
2477
2331
|
}, {
|
|
2478
2332
|
__t4s_required?: boolean;
|
|
2479
2333
|
pluginOptions?: any;
|
|
2480
2334
|
required?: boolean;
|
|
2481
2335
|
type?: "relation";
|
|
2482
|
-
target?: string;
|
|
2483
2336
|
relation?: "manyToOne";
|
|
2337
|
+
target?: string;
|
|
2484
2338
|
inversedBy?: string;
|
|
2485
2339
|
}>, z.ZodObject<{
|
|
2486
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2487
2340
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2488
2341
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2342
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2343
|
+
} & {
|
|
2489
2344
|
type: z.ZodLiteral<"relation">;
|
|
2490
2345
|
target: z.ZodString;
|
|
2346
|
+
} & {
|
|
2491
2347
|
relation: z.ZodLiteral<"manyToMany">;
|
|
2492
2348
|
inversedBy: z.ZodOptional<z.ZodString>;
|
|
2493
2349
|
mappedBy: z.ZodOptional<z.ZodString>;
|
|
@@ -2496,8 +2352,8 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2496
2352
|
pluginOptions?: any;
|
|
2497
2353
|
required?: boolean;
|
|
2498
2354
|
type?: "relation";
|
|
2499
|
-
target?: string;
|
|
2500
2355
|
relation?: "manyToMany";
|
|
2356
|
+
target?: string;
|
|
2501
2357
|
inversedBy?: string;
|
|
2502
2358
|
mappedBy?: string;
|
|
2503
2359
|
}, {
|
|
@@ -2505,35 +2361,38 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2505
2361
|
pluginOptions?: any;
|
|
2506
2362
|
required?: boolean;
|
|
2507
2363
|
type?: "relation";
|
|
2508
|
-
target?: string;
|
|
2509
2364
|
relation?: "manyToMany";
|
|
2365
|
+
target?: string;
|
|
2510
2366
|
inversedBy?: string;
|
|
2511
2367
|
mappedBy?: string;
|
|
2512
2368
|
}>, z.ZodObject<{
|
|
2513
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2514
2369
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2515
2370
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2371
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2372
|
+
} & {
|
|
2516
2373
|
type: z.ZodLiteral<"relation">;
|
|
2517
2374
|
target: z.ZodString;
|
|
2375
|
+
} & {
|
|
2518
2376
|
relation: z.ZodLiteral<"oneToMany">;
|
|
2519
2377
|
}, "strip", z.ZodTypeAny, {
|
|
2520
2378
|
__t4s_required?: boolean;
|
|
2521
2379
|
pluginOptions?: any;
|
|
2522
2380
|
required?: boolean;
|
|
2523
2381
|
type?: "relation";
|
|
2524
|
-
target?: string;
|
|
2525
2382
|
relation?: "oneToMany";
|
|
2383
|
+
target?: string;
|
|
2526
2384
|
}, {
|
|
2527
2385
|
__t4s_required?: boolean;
|
|
2528
2386
|
pluginOptions?: any;
|
|
2529
2387
|
required?: boolean;
|
|
2530
2388
|
type?: "relation";
|
|
2531
|
-
target?: string;
|
|
2532
2389
|
relation?: "oneToMany";
|
|
2390
|
+
target?: string;
|
|
2533
2391
|
}>, z.ZodObject<{
|
|
2534
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2535
2392
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2536
2393
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2394
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2395
|
+
} & {
|
|
2537
2396
|
type: z.ZodLiteral<"relation">;
|
|
2538
2397
|
relation: z.ZodLiteral<"morphToMany">;
|
|
2539
2398
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2549,9 +2408,10 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2549
2408
|
type?: "relation";
|
|
2550
2409
|
relation?: "morphToMany";
|
|
2551
2410
|
}>, z.ZodObject<{
|
|
2552
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2553
2411
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2554
2412
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2413
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2414
|
+
} & {
|
|
2555
2415
|
type: z.ZodLiteral<"relation">;
|
|
2556
2416
|
relation: z.ZodLiteral<"morphToOne">;
|
|
2557
2417
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2567,9 +2427,10 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2567
2427
|
type?: "relation";
|
|
2568
2428
|
relation?: "morphToOne";
|
|
2569
2429
|
}>, z.ZodObject<{
|
|
2570
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2571
2430
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2572
2431
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2432
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2433
|
+
} & {
|
|
2573
2434
|
type: z.ZodLiteral<"component">;
|
|
2574
2435
|
repeatable: z.ZodOptional<z.ZodBoolean>;
|
|
2575
2436
|
component: z.ZodString;
|
|
@@ -2578,47 +2439,32 @@ export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
2578
2439
|
pluginOptions?: any;
|
|
2579
2440
|
required?: boolean;
|
|
2580
2441
|
type?: "component";
|
|
2581
|
-
repeatable?: boolean;
|
|
2582
2442
|
component?: string;
|
|
2443
|
+
repeatable?: boolean;
|
|
2583
2444
|
}, {
|
|
2584
2445
|
__t4s_required?: boolean;
|
|
2585
2446
|
pluginOptions?: any;
|
|
2586
2447
|
required?: boolean;
|
|
2587
2448
|
type?: "component";
|
|
2588
|
-
repeatable?: boolean;
|
|
2589
2449
|
component?: string;
|
|
2450
|
+
repeatable?: boolean;
|
|
2590
2451
|
}>, z.ZodObject<{
|
|
2591
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2592
2452
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2593
2453
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2454
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2455
|
+
} & {
|
|
2594
2456
|
type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
|
|
2595
2457
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2596
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2597
2458
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2598
2459
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2460
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2461
|
+
} & {
|
|
2599
2462
|
type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
|
|
2600
2463
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2601
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2602
2464
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
2603
2465
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2604
|
-
type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
|
|
2605
|
-
}, z.ZodTypeAny, "passthrough">>]>, z.ZodObject<{
|
|
2606
2466
|
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
components: z.ZodArray<z.ZodString, "many">;
|
|
2611
|
-
}, "strip", z.ZodTypeAny, {
|
|
2612
|
-
__t4s_required?: boolean;
|
|
2613
|
-
pluginOptions?: any;
|
|
2614
|
-
required?: boolean;
|
|
2615
|
-
type?: "dynamiczone";
|
|
2616
|
-
components?: string[];
|
|
2617
|
-
}, {
|
|
2618
|
-
__t4s_required?: boolean;
|
|
2619
|
-
pluginOptions?: any;
|
|
2620
|
-
required?: boolean;
|
|
2621
|
-
type?: "dynamiczone";
|
|
2622
|
-
components?: string[];
|
|
2623
|
-
}>]>;
|
|
2467
|
+
} & {
|
|
2468
|
+
type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
|
|
2469
|
+
}, z.ZodTypeAny, "passthrough">>]>]>;
|
|
2624
2470
|
export type ContentTypeAttribute = z.infer<typeof contentTypeAttribute>;
|