@oak-digital/types-4-strapi-2 1.0.6 → 1.0.7

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.
@@ -1,818 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const strapiComponent: z.ZodObject<{
3
- collectionName: z.ZodString;
4
- attributes: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
5
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
6
- pluginOptions: z.ZodOptional<z.ZodAny>;
7
- required: z.ZodOptional<z.ZodBoolean>;
8
- type: z.ZodEnum<["text", "string"]>;
9
- }, "strip", z.ZodTypeAny, {
10
- __t4s_required?: boolean;
11
- pluginOptions?: any;
12
- required?: boolean;
13
- type?: "string" | "text";
14
- }, {
15
- __t4s_required?: boolean;
16
- pluginOptions?: any;
17
- required?: boolean;
18
- type?: "string" | "text";
19
- }>, z.ZodObject<{
20
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
21
- pluginOptions: z.ZodOptional<z.ZodAny>;
22
- required: z.ZodOptional<z.ZodBoolean>;
23
- type: z.ZodLiteral<"email">;
24
- }, "strip", z.ZodTypeAny, {
25
- __t4s_required?: boolean;
26
- pluginOptions?: any;
27
- required?: boolean;
28
- type?: "email";
29
- }, {
30
- __t4s_required?: boolean;
31
- pluginOptions?: any;
32
- required?: boolean;
33
- type?: "email";
34
- }>, z.ZodObject<{
35
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
36
- pluginOptions: z.ZodOptional<z.ZodAny>;
37
- required: z.ZodOptional<z.ZodBoolean>;
38
- type: z.ZodLiteral<"uid">;
39
- targetField: z.ZodOptional<z.ZodString>;
40
- }, "strip", z.ZodTypeAny, {
41
- __t4s_required?: boolean;
42
- pluginOptions?: any;
43
- required?: boolean;
44
- type?: "uid";
45
- targetField?: string;
46
- }, {
47
- __t4s_required?: boolean;
48
- pluginOptions?: any;
49
- required?: boolean;
50
- type?: "uid";
51
- targetField?: string;
52
- }>, z.ZodObject<{
53
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
54
- pluginOptions: z.ZodOptional<z.ZodAny>;
55
- required: z.ZodOptional<z.ZodBoolean>;
56
- type: z.ZodLiteral<"richtext">;
57
- }, "strip", z.ZodTypeAny, {
58
- __t4s_required?: boolean;
59
- pluginOptions?: any;
60
- required?: boolean;
61
- type?: "richtext";
62
- }, {
63
- __t4s_required?: boolean;
64
- pluginOptions?: any;
65
- required?: boolean;
66
- type?: "richtext";
67
- }>, z.ZodObject<{
68
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
69
- pluginOptions: z.ZodOptional<z.ZodAny>;
70
- required: z.ZodOptional<z.ZodBoolean>;
71
- type: z.ZodLiteral<"blocks">;
72
- }, "strip", z.ZodTypeAny, {
73
- __t4s_required?: boolean;
74
- pluginOptions?: any;
75
- required?: boolean;
76
- type?: "blocks";
77
- }, {
78
- __t4s_required?: boolean;
79
- pluginOptions?: any;
80
- required?: boolean;
81
- type?: "blocks";
82
- }>, z.ZodObject<{
83
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
84
- pluginOptions: z.ZodOptional<z.ZodAny>;
85
- required: z.ZodOptional<z.ZodBoolean>;
86
- type: z.ZodLiteral<"json">;
87
- }, "strip", z.ZodTypeAny, {
88
- __t4s_required?: boolean;
89
- pluginOptions?: any;
90
- required?: boolean;
91
- type?: "json";
92
- }, {
93
- __t4s_required?: boolean;
94
- pluginOptions?: any;
95
- required?: boolean;
96
- type?: "json";
97
- }>, z.ZodObject<{
98
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
99
- pluginOptions: z.ZodOptional<z.ZodAny>;
100
- required: z.ZodOptional<z.ZodBoolean>;
101
- type: z.ZodLiteral<"password">;
102
- }, "strip", z.ZodTypeAny, {
103
- __t4s_required?: boolean;
104
- pluginOptions?: any;
105
- required?: boolean;
106
- type?: "password";
107
- }, {
108
- __t4s_required?: boolean;
109
- pluginOptions?: any;
110
- required?: boolean;
111
- type?: "password";
112
- }>, z.ZodObject<{
113
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
114
- pluginOptions: z.ZodOptional<z.ZodAny>;
115
- required: z.ZodOptional<z.ZodBoolean>;
116
- type: z.ZodLiteral<"integer">;
117
- }, "strip", z.ZodTypeAny, {
118
- __t4s_required?: boolean;
119
- pluginOptions?: any;
120
- required?: boolean;
121
- type?: "integer";
122
- }, {
123
- __t4s_required?: boolean;
124
- pluginOptions?: any;
125
- required?: boolean;
126
- type?: "integer";
127
- }>, z.ZodObject<{
128
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
129
- pluginOptions: z.ZodOptional<z.ZodAny>;
130
- required: z.ZodOptional<z.ZodBoolean>;
131
- type: z.ZodLiteral<"float">;
132
- }, "strip", z.ZodTypeAny, {
133
- __t4s_required?: boolean;
134
- pluginOptions?: any;
135
- required?: boolean;
136
- type?: "float";
137
- }, {
138
- __t4s_required?: boolean;
139
- pluginOptions?: any;
140
- required?: boolean;
141
- type?: "float";
142
- }>, z.ZodObject<{
143
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
144
- pluginOptions: z.ZodOptional<z.ZodAny>;
145
- required: z.ZodOptional<z.ZodBoolean>;
146
- type: z.ZodLiteral<"biginteger">;
147
- }, "strip", z.ZodTypeAny, {
148
- __t4s_required?: boolean;
149
- pluginOptions?: any;
150
- required?: boolean;
151
- type?: "biginteger";
152
- }, {
153
- __t4s_required?: boolean;
154
- pluginOptions?: any;
155
- required?: boolean;
156
- type?: "biginteger";
157
- }>, z.ZodObject<{
158
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
159
- pluginOptions: z.ZodOptional<z.ZodAny>;
160
- required: z.ZodOptional<z.ZodBoolean>;
161
- type: z.ZodLiteral<"decimal">;
162
- }, "strip", z.ZodTypeAny, {
163
- __t4s_required?: boolean;
164
- pluginOptions?: any;
165
- required?: boolean;
166
- type?: "decimal";
167
- }, {
168
- __t4s_required?: boolean;
169
- pluginOptions?: any;
170
- required?: boolean;
171
- type?: "decimal";
172
- }>, z.ZodObject<{
173
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
174
- pluginOptions: z.ZodOptional<z.ZodAny>;
175
- required: z.ZodOptional<z.ZodBoolean>;
176
- type: z.ZodLiteral<"enumeration">;
177
- enum: z.ZodArray<z.ZodString, "many">;
178
- }, "strip", z.ZodTypeAny, {
179
- __t4s_required?: boolean;
180
- pluginOptions?: any;
181
- required?: boolean;
182
- type?: "enumeration";
183
- enum?: string[];
184
- }, {
185
- __t4s_required?: boolean;
186
- pluginOptions?: any;
187
- required?: boolean;
188
- type?: "enumeration";
189
- enum?: string[];
190
- }>, z.ZodObject<{
191
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
192
- pluginOptions: z.ZodOptional<z.ZodAny>;
193
- required: z.ZodOptional<z.ZodBoolean>;
194
- type: z.ZodLiteral<"date">;
195
- }, "strip", z.ZodTypeAny, {
196
- __t4s_required?: boolean;
197
- pluginOptions?: any;
198
- required?: boolean;
199
- type?: "date";
200
- }, {
201
- __t4s_required?: boolean;
202
- pluginOptions?: any;
203
- required?: boolean;
204
- type?: "date";
205
- }>, z.ZodObject<{
206
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
207
- pluginOptions: z.ZodOptional<z.ZodAny>;
208
- required: z.ZodOptional<z.ZodBoolean>;
209
- type: z.ZodLiteral<"datetime">;
210
- }, "strip", z.ZodTypeAny, {
211
- __t4s_required?: boolean;
212
- pluginOptions?: any;
213
- required?: boolean;
214
- type?: "datetime";
215
- }, {
216
- __t4s_required?: boolean;
217
- pluginOptions?: any;
218
- required?: boolean;
219
- type?: "datetime";
220
- }>, z.ZodObject<{
221
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
222
- pluginOptions: z.ZodOptional<z.ZodAny>;
223
- required: z.ZodOptional<z.ZodBoolean>;
224
- type: z.ZodLiteral<"time">;
225
- }, "strip", z.ZodTypeAny, {
226
- __t4s_required?: boolean;
227
- pluginOptions?: any;
228
- required?: boolean;
229
- type?: "time";
230
- }, {
231
- __t4s_required?: boolean;
232
- pluginOptions?: any;
233
- required?: boolean;
234
- type?: "time";
235
- }>, z.ZodObject<{
236
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
237
- pluginOptions: z.ZodOptional<z.ZodAny>;
238
- required: z.ZodOptional<z.ZodBoolean>;
239
- type: z.ZodLiteral<"media">;
240
- multiple: z.ZodOptional<z.ZodBoolean>;
241
- allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
242
- }, "strip", z.ZodTypeAny, {
243
- __t4s_required?: boolean;
244
- pluginOptions?: any;
245
- required?: boolean;
246
- type?: "media";
247
- multiple?: boolean;
248
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
249
- }, {
250
- __t4s_required?: boolean;
251
- pluginOptions?: any;
252
- required?: boolean;
253
- type?: "media";
254
- multiple?: boolean;
255
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
256
- }>, z.ZodObject<{
257
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
258
- pluginOptions: z.ZodOptional<z.ZodAny>;
259
- required: z.ZodOptional<z.ZodBoolean>;
260
- type: z.ZodLiteral<"boolean">;
261
- }, "strip", z.ZodTypeAny, {
262
- __t4s_required?: boolean;
263
- pluginOptions?: any;
264
- required?: boolean;
265
- type?: "boolean";
266
- }, {
267
- __t4s_required?: boolean;
268
- pluginOptions?: any;
269
- required?: boolean;
270
- type?: "boolean";
271
- }>, z.ZodObject<{
272
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
273
- pluginOptions: z.ZodOptional<z.ZodAny>;
274
- required: z.ZodOptional<z.ZodBoolean>;
275
- type: z.ZodLiteral<"relation">;
276
- target: z.ZodString;
277
- relation: z.ZodLiteral<"oneToOne">;
278
- }, "strip", z.ZodTypeAny, {
279
- __t4s_required?: boolean;
280
- pluginOptions?: any;
281
- required?: boolean;
282
- type?: "relation";
283
- target?: string;
284
- relation?: "oneToOne";
285
- }, {
286
- __t4s_required?: boolean;
287
- pluginOptions?: any;
288
- required?: boolean;
289
- type?: "relation";
290
- target?: string;
291
- relation?: "oneToOne";
292
- }>, z.ZodObject<{
293
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
294
- pluginOptions: z.ZodOptional<z.ZodAny>;
295
- required: z.ZodOptional<z.ZodBoolean>;
296
- type: z.ZodLiteral<"relation">;
297
- target: z.ZodString;
298
- relation: z.ZodLiteral<"oneToOne">;
299
- inversedBy: z.ZodString;
300
- }, "strip", z.ZodTypeAny, {
301
- __t4s_required?: boolean;
302
- pluginOptions?: any;
303
- required?: boolean;
304
- type?: "relation";
305
- target?: string;
306
- relation?: "oneToOne";
307
- inversedBy?: string;
308
- }, {
309
- __t4s_required?: boolean;
310
- pluginOptions?: any;
311
- required?: boolean;
312
- type?: "relation";
313
- target?: string;
314
- relation?: "oneToOne";
315
- inversedBy?: string;
316
- }>, z.ZodObject<{
317
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
318
- pluginOptions: z.ZodOptional<z.ZodAny>;
319
- required: z.ZodOptional<z.ZodBoolean>;
320
- type: z.ZodLiteral<"relation">;
321
- target: z.ZodString;
322
- mappedBy: z.ZodString;
323
- relation: z.ZodLiteral<"oneToMany">;
324
- }, "strip", z.ZodTypeAny, {
325
- __t4s_required?: boolean;
326
- pluginOptions?: any;
327
- required?: boolean;
328
- type?: "relation";
329
- target?: string;
330
- mappedBy?: string;
331
- relation?: "oneToMany";
332
- }, {
333
- __t4s_required?: boolean;
334
- pluginOptions?: any;
335
- required?: boolean;
336
- type?: "relation";
337
- target?: string;
338
- mappedBy?: string;
339
- relation?: "oneToMany";
340
- }>, z.ZodObject<{
341
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
342
- pluginOptions: z.ZodOptional<z.ZodAny>;
343
- required: z.ZodOptional<z.ZodBoolean>;
344
- type: z.ZodLiteral<"relation">;
345
- target: z.ZodString;
346
- relation: z.ZodLiteral<"manyToOne">;
347
- inversedBy: z.ZodString;
348
- }, "strip", z.ZodTypeAny, {
349
- __t4s_required?: boolean;
350
- pluginOptions?: any;
351
- required?: boolean;
352
- type?: "relation";
353
- target?: string;
354
- relation?: "manyToOne";
355
- inversedBy?: string;
356
- }, {
357
- __t4s_required?: boolean;
358
- pluginOptions?: any;
359
- required?: boolean;
360
- type?: "relation";
361
- target?: string;
362
- relation?: "manyToOne";
363
- inversedBy?: string;
364
- }>, z.ZodObject<{
365
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
366
- pluginOptions: z.ZodOptional<z.ZodAny>;
367
- required: z.ZodOptional<z.ZodBoolean>;
368
- type: z.ZodLiteral<"relation">;
369
- target: z.ZodString;
370
- relation: z.ZodLiteral<"manyToMany">;
371
- inversedBy: z.ZodOptional<z.ZodString>;
372
- mappedBy: z.ZodOptional<z.ZodString>;
373
- }, "strip", z.ZodTypeAny, {
374
- __t4s_required?: boolean;
375
- pluginOptions?: any;
376
- required?: boolean;
377
- type?: "relation";
378
- target?: string;
379
- relation?: "manyToMany";
380
- inversedBy?: string;
381
- mappedBy?: string;
382
- }, {
383
- __t4s_required?: boolean;
384
- pluginOptions?: any;
385
- required?: boolean;
386
- type?: "relation";
387
- target?: string;
388
- relation?: "manyToMany";
389
- inversedBy?: string;
390
- mappedBy?: string;
391
- }>, z.ZodObject<{
392
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
393
- pluginOptions: z.ZodOptional<z.ZodAny>;
394
- required: z.ZodOptional<z.ZodBoolean>;
395
- type: z.ZodLiteral<"relation">;
396
- target: z.ZodString;
397
- relation: z.ZodLiteral<"oneToMany">;
398
- }, "strip", z.ZodTypeAny, {
399
- __t4s_required?: boolean;
400
- pluginOptions?: any;
401
- required?: boolean;
402
- type?: "relation";
403
- target?: string;
404
- relation?: "oneToMany";
405
- }, {
406
- __t4s_required?: boolean;
407
- pluginOptions?: any;
408
- required?: boolean;
409
- type?: "relation";
410
- target?: string;
411
- relation?: "oneToMany";
412
- }>, z.ZodObject<{
413
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
414
- pluginOptions: z.ZodOptional<z.ZodAny>;
415
- required: z.ZodOptional<z.ZodBoolean>;
416
- type: z.ZodLiteral<"relation">;
417
- relation: z.ZodLiteral<"morphToMany">;
418
- }, "strip", z.ZodTypeAny, {
419
- __t4s_required?: boolean;
420
- pluginOptions?: any;
421
- required?: boolean;
422
- type?: "relation";
423
- relation?: "morphToMany";
424
- }, {
425
- __t4s_required?: boolean;
426
- pluginOptions?: any;
427
- required?: boolean;
428
- type?: "relation";
429
- relation?: "morphToMany";
430
- }>, z.ZodObject<{
431
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
432
- pluginOptions: z.ZodOptional<z.ZodAny>;
433
- required: z.ZodOptional<z.ZodBoolean>;
434
- type: z.ZodLiteral<"relation">;
435
- relation: z.ZodLiteral<"morphToOne">;
436
- }, "strip", z.ZodTypeAny, {
437
- __t4s_required?: boolean;
438
- pluginOptions?: any;
439
- required?: boolean;
440
- type?: "relation";
441
- relation?: "morphToOne";
442
- }, {
443
- __t4s_required?: boolean;
444
- pluginOptions?: any;
445
- required?: boolean;
446
- type?: "relation";
447
- relation?: "morphToOne";
448
- }>, z.ZodObject<{
449
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
450
- pluginOptions: z.ZodOptional<z.ZodAny>;
451
- required: z.ZodOptional<z.ZodBoolean>;
452
- type: z.ZodLiteral<"component">;
453
- repeatable: z.ZodOptional<z.ZodBoolean>;
454
- component: z.ZodString;
455
- }, "strip", z.ZodTypeAny, {
456
- __t4s_required?: boolean;
457
- pluginOptions?: any;
458
- required?: boolean;
459
- type?: "component";
460
- repeatable?: boolean;
461
- component?: string;
462
- }, {
463
- __t4s_required?: boolean;
464
- pluginOptions?: any;
465
- required?: boolean;
466
- type?: "component";
467
- repeatable?: boolean;
468
- component?: string;
469
- }>, z.ZodObject<{
470
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
471
- pluginOptions: z.ZodOptional<z.ZodAny>;
472
- required: z.ZodOptional<z.ZodBoolean>;
473
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
474
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
475
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
476
- pluginOptions: z.ZodOptional<z.ZodAny>;
477
- required: z.ZodOptional<z.ZodBoolean>;
478
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
479
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
480
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
481
- pluginOptions: z.ZodOptional<z.ZodAny>;
482
- required: z.ZodOptional<z.ZodBoolean>;
483
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
484
- }, z.ZodTypeAny, "passthrough">>]>>;
485
- options: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
486
- uid: z.ZodOptional<z.ZodString>;
487
- }, "strip", z.ZodTypeAny, {
488
- collectionName?: string;
489
- attributes?: Record<string, {
490
- __t4s_required?: boolean;
491
- pluginOptions?: any;
492
- required?: boolean;
493
- type?: "string" | "text";
494
- } | {
495
- __t4s_required?: boolean;
496
- pluginOptions?: any;
497
- required?: boolean;
498
- type?: "email";
499
- } | {
500
- __t4s_required?: boolean;
501
- pluginOptions?: any;
502
- required?: boolean;
503
- type?: "uid";
504
- targetField?: string;
505
- } | {
506
- __t4s_required?: boolean;
507
- pluginOptions?: any;
508
- required?: boolean;
509
- type?: "richtext";
510
- } | {
511
- __t4s_required?: boolean;
512
- pluginOptions?: any;
513
- required?: boolean;
514
- type?: "blocks";
515
- } | {
516
- __t4s_required?: boolean;
517
- pluginOptions?: any;
518
- required?: boolean;
519
- type?: "json";
520
- } | {
521
- __t4s_required?: boolean;
522
- pluginOptions?: any;
523
- required?: boolean;
524
- type?: "password";
525
- } | {
526
- __t4s_required?: boolean;
527
- pluginOptions?: any;
528
- required?: boolean;
529
- type?: "integer";
530
- } | {
531
- __t4s_required?: boolean;
532
- pluginOptions?: any;
533
- required?: boolean;
534
- type?: "float";
535
- } | {
536
- __t4s_required?: boolean;
537
- pluginOptions?: any;
538
- required?: boolean;
539
- type?: "biginteger";
540
- } | {
541
- __t4s_required?: boolean;
542
- pluginOptions?: any;
543
- required?: boolean;
544
- type?: "decimal";
545
- } | {
546
- __t4s_required?: boolean;
547
- pluginOptions?: any;
548
- required?: boolean;
549
- type?: "enumeration";
550
- enum?: string[];
551
- } | {
552
- __t4s_required?: boolean;
553
- pluginOptions?: any;
554
- required?: boolean;
555
- type?: "date";
556
- } | {
557
- __t4s_required?: boolean;
558
- pluginOptions?: any;
559
- required?: boolean;
560
- type?: "datetime";
561
- } | {
562
- __t4s_required?: boolean;
563
- pluginOptions?: any;
564
- required?: boolean;
565
- type?: "time";
566
- } | {
567
- __t4s_required?: boolean;
568
- pluginOptions?: any;
569
- required?: boolean;
570
- type?: "media";
571
- multiple?: boolean;
572
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
573
- } | {
574
- __t4s_required?: boolean;
575
- pluginOptions?: any;
576
- required?: boolean;
577
- type?: "boolean";
578
- } | {
579
- __t4s_required?: boolean;
580
- pluginOptions?: any;
581
- required?: boolean;
582
- type?: "relation";
583
- target?: string;
584
- relation?: "oneToOne";
585
- } | {
586
- __t4s_required?: boolean;
587
- pluginOptions?: any;
588
- required?: boolean;
589
- type?: "relation";
590
- target?: string;
591
- relation?: "oneToOne";
592
- inversedBy?: string;
593
- } | {
594
- __t4s_required?: boolean;
595
- pluginOptions?: any;
596
- required?: boolean;
597
- type?: "relation";
598
- target?: string;
599
- mappedBy?: string;
600
- relation?: "oneToMany";
601
- } | {
602
- __t4s_required?: boolean;
603
- pluginOptions?: any;
604
- required?: boolean;
605
- type?: "relation";
606
- target?: string;
607
- relation?: "manyToOne";
608
- inversedBy?: string;
609
- } | {
610
- __t4s_required?: boolean;
611
- pluginOptions?: any;
612
- required?: boolean;
613
- type?: "relation";
614
- target?: string;
615
- relation?: "manyToMany";
616
- inversedBy?: string;
617
- mappedBy?: string;
618
- } | {
619
- __t4s_required?: boolean;
620
- pluginOptions?: any;
621
- required?: boolean;
622
- type?: "relation";
623
- target?: string;
624
- relation?: "oneToMany";
625
- } | {
626
- __t4s_required?: boolean;
627
- pluginOptions?: any;
628
- required?: boolean;
629
- type?: "relation";
630
- relation?: "morphToMany";
631
- } | {
632
- __t4s_required?: boolean;
633
- pluginOptions?: any;
634
- required?: boolean;
635
- type?: "relation";
636
- relation?: "morphToOne";
637
- } | {
638
- __t4s_required?: boolean;
639
- pluginOptions?: any;
640
- required?: boolean;
641
- type?: "component";
642
- repeatable?: boolean;
643
- component?: string;
644
- } | z.objectOutputType<{
645
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
646
- pluginOptions: z.ZodOptional<z.ZodAny>;
647
- required: z.ZodOptional<z.ZodBoolean>;
648
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
649
- }, z.ZodTypeAny, "passthrough">>;
650
- options?: {};
651
- uid?: string;
652
- }, {
653
- collectionName?: string;
654
- attributes?: Record<string, {
655
- __t4s_required?: boolean;
656
- pluginOptions?: any;
657
- required?: boolean;
658
- type?: "string" | "text";
659
- } | {
660
- __t4s_required?: boolean;
661
- pluginOptions?: any;
662
- required?: boolean;
663
- type?: "email";
664
- } | {
665
- __t4s_required?: boolean;
666
- pluginOptions?: any;
667
- required?: boolean;
668
- type?: "uid";
669
- targetField?: string;
670
- } | {
671
- __t4s_required?: boolean;
672
- pluginOptions?: any;
673
- required?: boolean;
674
- type?: "richtext";
675
- } | {
676
- __t4s_required?: boolean;
677
- pluginOptions?: any;
678
- required?: boolean;
679
- type?: "blocks";
680
- } | {
681
- __t4s_required?: boolean;
682
- pluginOptions?: any;
683
- required?: boolean;
684
- type?: "json";
685
- } | {
686
- __t4s_required?: boolean;
687
- pluginOptions?: any;
688
- required?: boolean;
689
- type?: "password";
690
- } | {
691
- __t4s_required?: boolean;
692
- pluginOptions?: any;
693
- required?: boolean;
694
- type?: "integer";
695
- } | {
696
- __t4s_required?: boolean;
697
- pluginOptions?: any;
698
- required?: boolean;
699
- type?: "float";
700
- } | {
701
- __t4s_required?: boolean;
702
- pluginOptions?: any;
703
- required?: boolean;
704
- type?: "biginteger";
705
- } | {
706
- __t4s_required?: boolean;
707
- pluginOptions?: any;
708
- required?: boolean;
709
- type?: "decimal";
710
- } | {
711
- __t4s_required?: boolean;
712
- pluginOptions?: any;
713
- required?: boolean;
714
- type?: "enumeration";
715
- enum?: string[];
716
- } | {
717
- __t4s_required?: boolean;
718
- pluginOptions?: any;
719
- required?: boolean;
720
- type?: "date";
721
- } | {
722
- __t4s_required?: boolean;
723
- pluginOptions?: any;
724
- required?: boolean;
725
- type?: "datetime";
726
- } | {
727
- __t4s_required?: boolean;
728
- pluginOptions?: any;
729
- required?: boolean;
730
- type?: "time";
731
- } | {
732
- __t4s_required?: boolean;
733
- pluginOptions?: any;
734
- required?: boolean;
735
- type?: "media";
736
- multiple?: boolean;
737
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
738
- } | {
739
- __t4s_required?: boolean;
740
- pluginOptions?: any;
741
- required?: boolean;
742
- type?: "boolean";
743
- } | {
744
- __t4s_required?: boolean;
745
- pluginOptions?: any;
746
- required?: boolean;
747
- type?: "relation";
748
- target?: string;
749
- relation?: "oneToOne";
750
- } | {
751
- __t4s_required?: boolean;
752
- pluginOptions?: any;
753
- required?: boolean;
754
- type?: "relation";
755
- target?: string;
756
- relation?: "oneToOne";
757
- inversedBy?: string;
758
- } | {
759
- __t4s_required?: boolean;
760
- pluginOptions?: any;
761
- required?: boolean;
762
- type?: "relation";
763
- target?: string;
764
- mappedBy?: string;
765
- relation?: "oneToMany";
766
- } | {
767
- __t4s_required?: boolean;
768
- pluginOptions?: any;
769
- required?: boolean;
770
- type?: "relation";
771
- target?: string;
772
- relation?: "manyToOne";
773
- inversedBy?: string;
774
- } | {
775
- __t4s_required?: boolean;
776
- pluginOptions?: any;
777
- required?: boolean;
778
- type?: "relation";
779
- target?: string;
780
- relation?: "manyToMany";
781
- inversedBy?: string;
782
- mappedBy?: string;
783
- } | {
784
- __t4s_required?: boolean;
785
- pluginOptions?: any;
786
- required?: boolean;
787
- type?: "relation";
788
- target?: string;
789
- relation?: "oneToMany";
790
- } | {
791
- __t4s_required?: boolean;
792
- pluginOptions?: any;
793
- required?: boolean;
794
- type?: "relation";
795
- relation?: "morphToMany";
796
- } | {
797
- __t4s_required?: boolean;
798
- pluginOptions?: any;
799
- required?: boolean;
800
- type?: "relation";
801
- relation?: "morphToOne";
802
- } | {
803
- __t4s_required?: boolean;
804
- pluginOptions?: any;
805
- required?: boolean;
806
- type?: "component";
807
- repeatable?: boolean;
808
- component?: string;
809
- } | z.objectInputType<{
810
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
811
- pluginOptions: z.ZodOptional<z.ZodAny>;
812
- required: z.ZodOptional<z.ZodBoolean>;
813
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
814
- }, z.ZodTypeAny, "passthrough">>;
815
- options?: {};
816
- uid?: string;
817
- }>;
818
- export type StrapiComponent = z.infer<typeof strapiComponent>;