@webiny/api-headless-cms 5.40.0-beta.0 → 5.40.0-beta.2
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/crud/contentModel/validation.d.ts +96 -96
- package/crud/contentModelGroup/validation.d.ts +1 -1
- package/graphql/index.d.ts +1 -1
- package/index.d.ts +1 -1
- package/package.json +19 -19
|
@@ -24,26 +24,26 @@ export declare const createModelCreateValidation: () => zod.ZodObject<{
|
|
|
24
24
|
label: zod.ZodString;
|
|
25
25
|
selected: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
|
|
26
26
|
}, "strip", zod.ZodTypeAny, {
|
|
27
|
-
value: string;
|
|
28
27
|
label: string;
|
|
28
|
+
value: string;
|
|
29
29
|
selected: boolean;
|
|
30
30
|
}, {
|
|
31
|
-
value: string;
|
|
32
31
|
label: string;
|
|
32
|
+
value: string;
|
|
33
33
|
selected?: boolean | undefined;
|
|
34
34
|
}>, "many">>;
|
|
35
35
|
}, "strip", zod.ZodTypeAny, {
|
|
36
36
|
values: {
|
|
37
|
-
value: string;
|
|
38
37
|
label: string;
|
|
38
|
+
value: string;
|
|
39
39
|
selected: boolean;
|
|
40
40
|
}[];
|
|
41
41
|
enabled: boolean;
|
|
42
42
|
}, {
|
|
43
43
|
enabled: boolean;
|
|
44
44
|
values?: {
|
|
45
|
-
value: string;
|
|
46
45
|
label: string;
|
|
46
|
+
value: string;
|
|
47
47
|
selected?: boolean | undefined;
|
|
48
48
|
}[] | undefined;
|
|
49
49
|
}>>>;
|
|
@@ -59,21 +59,21 @@ export declare const createModelCreateValidation: () => zod.ZodObject<{
|
|
|
59
59
|
message: zod.ZodDefault<zod.ZodOptional<zod.ZodString>>;
|
|
60
60
|
settings: zod.ZodDefault<zod.ZodEffects<zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>>>>, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | null | undefined>>;
|
|
61
61
|
}, "strip", zod.ZodTypeAny, {
|
|
62
|
-
message: string;
|
|
63
62
|
name: string;
|
|
64
63
|
settings: {} & {
|
|
65
64
|
[k: string]: unknown;
|
|
66
65
|
};
|
|
66
|
+
message: string;
|
|
67
67
|
}, {
|
|
68
68
|
name: string;
|
|
69
69
|
message?: string | undefined;
|
|
70
70
|
settings?: zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
71
71
|
}>, "many">>>>>, {
|
|
72
|
-
message: string;
|
|
73
72
|
name: string;
|
|
74
73
|
settings: {} & {
|
|
75
74
|
[k: string]: unknown;
|
|
76
75
|
};
|
|
76
|
+
message: string;
|
|
77
77
|
}[], {
|
|
78
78
|
name: string;
|
|
79
79
|
message?: string | undefined;
|
|
@@ -84,21 +84,21 @@ export declare const createModelCreateValidation: () => zod.ZodObject<{
|
|
|
84
84
|
message: zod.ZodDefault<zod.ZodOptional<zod.ZodString>>;
|
|
85
85
|
settings: zod.ZodDefault<zod.ZodEffects<zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>>>>, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | null | undefined>>;
|
|
86
86
|
}, "strip", zod.ZodTypeAny, {
|
|
87
|
-
message: string;
|
|
88
87
|
name: string;
|
|
89
88
|
settings: {} & {
|
|
90
89
|
[k: string]: unknown;
|
|
91
90
|
};
|
|
91
|
+
message: string;
|
|
92
92
|
}, {
|
|
93
93
|
name: string;
|
|
94
94
|
message?: string | undefined;
|
|
95
95
|
settings?: zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
96
96
|
}>, "many">>>>>, {
|
|
97
|
-
message: string;
|
|
98
97
|
name: string;
|
|
99
98
|
settings: {} & {
|
|
100
99
|
[k: string]: unknown;
|
|
101
100
|
};
|
|
101
|
+
message: string;
|
|
102
102
|
}[], {
|
|
103
103
|
name: string;
|
|
104
104
|
message?: string | undefined;
|
|
@@ -106,36 +106,36 @@ export declare const createModelCreateValidation: () => zod.ZodObject<{
|
|
|
106
106
|
}[] | null | undefined>;
|
|
107
107
|
settings: zod.ZodDefault<zod.ZodEffects<zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>>>>, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | null | undefined>>;
|
|
108
108
|
}, "strip", zod.ZodTypeAny, {
|
|
109
|
-
type: string;
|
|
110
109
|
id: string;
|
|
111
|
-
|
|
112
|
-
settings: {} & {
|
|
113
|
-
[k: string]: unknown;
|
|
114
|
-
};
|
|
110
|
+
type: string;
|
|
115
111
|
storageId: string;
|
|
116
112
|
fieldId: string;
|
|
113
|
+
label: string;
|
|
117
114
|
helpText: string | null;
|
|
118
115
|
placeholderText: string | null;
|
|
119
116
|
validation: {
|
|
120
|
-
message: string;
|
|
121
117
|
name: string;
|
|
122
118
|
settings: {} & {
|
|
123
119
|
[k: string]: unknown;
|
|
124
120
|
};
|
|
121
|
+
message: string;
|
|
125
122
|
}[];
|
|
126
123
|
listValidation: {
|
|
127
|
-
message: string;
|
|
128
124
|
name: string;
|
|
129
125
|
settings: {} & {
|
|
130
126
|
[k: string]: unknown;
|
|
131
127
|
};
|
|
128
|
+
message: string;
|
|
132
129
|
}[];
|
|
133
130
|
multipleValues: boolean;
|
|
134
131
|
tags: string[];
|
|
132
|
+
settings: {} & {
|
|
133
|
+
[k: string]: unknown;
|
|
134
|
+
};
|
|
135
135
|
predefinedValues?: {
|
|
136
136
|
values: {
|
|
137
|
-
value: string;
|
|
138
137
|
label: string;
|
|
138
|
+
value: string;
|
|
139
139
|
selected: boolean;
|
|
140
140
|
}[];
|
|
141
141
|
enabled: boolean;
|
|
@@ -144,10 +144,10 @@ export declare const createModelCreateValidation: () => zod.ZodObject<{
|
|
|
144
144
|
name: string;
|
|
145
145
|
} | undefined;
|
|
146
146
|
}, {
|
|
147
|
-
type: string;
|
|
148
147
|
id: string;
|
|
149
|
-
|
|
148
|
+
type: string;
|
|
150
149
|
fieldId: string;
|
|
150
|
+
label: string;
|
|
151
151
|
storageId?: string | undefined;
|
|
152
152
|
helpText?: string | null | undefined;
|
|
153
153
|
placeholderText?: string | null | undefined;
|
|
@@ -156,8 +156,8 @@ export declare const createModelCreateValidation: () => zod.ZodObject<{
|
|
|
156
156
|
predefinedValues?: {
|
|
157
157
|
enabled: boolean;
|
|
158
158
|
values?: {
|
|
159
|
-
value: string;
|
|
160
159
|
label: string;
|
|
160
|
+
value: string;
|
|
161
161
|
selected?: boolean | undefined;
|
|
162
162
|
}[] | undefined;
|
|
163
163
|
} | undefined;
|
|
@@ -184,38 +184,37 @@ export declare const createModelCreateValidation: () => zod.ZodObject<{
|
|
|
184
184
|
defaultFields: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
|
|
185
185
|
}, "strip", zod.ZodTypeAny, {
|
|
186
186
|
name: string;
|
|
187
|
-
group: string;
|
|
188
187
|
fields: {
|
|
189
|
-
type: string;
|
|
190
188
|
id: string;
|
|
191
|
-
|
|
192
|
-
settings: {} & {
|
|
193
|
-
[k: string]: unknown;
|
|
194
|
-
};
|
|
189
|
+
type: string;
|
|
195
190
|
storageId: string;
|
|
196
191
|
fieldId: string;
|
|
192
|
+
label: string;
|
|
197
193
|
helpText: string | null;
|
|
198
194
|
placeholderText: string | null;
|
|
199
195
|
validation: {
|
|
200
|
-
message: string;
|
|
201
196
|
name: string;
|
|
202
197
|
settings: {} & {
|
|
203
198
|
[k: string]: unknown;
|
|
204
199
|
};
|
|
200
|
+
message: string;
|
|
205
201
|
}[];
|
|
206
202
|
listValidation: {
|
|
207
|
-
message: string;
|
|
208
203
|
name: string;
|
|
209
204
|
settings: {} & {
|
|
210
205
|
[k: string]: unknown;
|
|
211
206
|
};
|
|
207
|
+
message: string;
|
|
212
208
|
}[];
|
|
213
209
|
multipleValues: boolean;
|
|
214
210
|
tags: string[];
|
|
211
|
+
settings: {} & {
|
|
212
|
+
[k: string]: unknown;
|
|
213
|
+
};
|
|
215
214
|
predefinedValues?: {
|
|
216
215
|
values: {
|
|
217
|
-
value: string;
|
|
218
216
|
label: string;
|
|
217
|
+
value: string;
|
|
219
218
|
selected: boolean;
|
|
220
219
|
}[];
|
|
221
220
|
enabled: boolean;
|
|
@@ -227,6 +226,7 @@ export declare const createModelCreateValidation: () => zod.ZodObject<{
|
|
|
227
226
|
layout: string[][];
|
|
228
227
|
singularApiName: string;
|
|
229
228
|
pluralApiName: string;
|
|
229
|
+
group: string;
|
|
230
230
|
modelId?: string | undefined;
|
|
231
231
|
description?: string | null | undefined;
|
|
232
232
|
icon?: string | null | undefined;
|
|
@@ -237,17 +237,17 @@ export declare const createModelCreateValidation: () => zod.ZodObject<{
|
|
|
237
237
|
defaultFields?: boolean | null | undefined;
|
|
238
238
|
}, {
|
|
239
239
|
name: string;
|
|
240
|
-
group: string;
|
|
241
240
|
singularApiName: string;
|
|
242
241
|
pluralApiName: string;
|
|
242
|
+
group: string;
|
|
243
243
|
modelId?: string | undefined;
|
|
244
244
|
description?: string | null | undefined;
|
|
245
245
|
icon?: string | null | undefined;
|
|
246
246
|
fields?: {
|
|
247
|
-
type: string;
|
|
248
247
|
id: string;
|
|
249
|
-
|
|
248
|
+
type: string;
|
|
250
249
|
fieldId: string;
|
|
250
|
+
label: string;
|
|
251
251
|
storageId?: string | undefined;
|
|
252
252
|
helpText?: string | null | undefined;
|
|
253
253
|
placeholderText?: string | null | undefined;
|
|
@@ -256,8 +256,8 @@ export declare const createModelCreateValidation: () => zod.ZodObject<{
|
|
|
256
256
|
predefinedValues?: {
|
|
257
257
|
enabled: boolean;
|
|
258
258
|
values?: {
|
|
259
|
-
value: string;
|
|
260
259
|
label: string;
|
|
260
|
+
value: string;
|
|
261
261
|
selected?: boolean | undefined;
|
|
262
262
|
}[] | undefined;
|
|
263
263
|
} | undefined;
|
|
@@ -308,26 +308,26 @@ export declare const createModelImportValidation: () => zod.ZodObject<{
|
|
|
308
308
|
label: zod.ZodString;
|
|
309
309
|
selected: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
|
|
310
310
|
}, "strip", zod.ZodTypeAny, {
|
|
311
|
-
value: string;
|
|
312
311
|
label: string;
|
|
312
|
+
value: string;
|
|
313
313
|
selected: boolean;
|
|
314
314
|
}, {
|
|
315
|
-
value: string;
|
|
316
315
|
label: string;
|
|
316
|
+
value: string;
|
|
317
317
|
selected?: boolean | undefined;
|
|
318
318
|
}>, "many">>;
|
|
319
319
|
}, "strip", zod.ZodTypeAny, {
|
|
320
320
|
values: {
|
|
321
|
-
value: string;
|
|
322
321
|
label: string;
|
|
322
|
+
value: string;
|
|
323
323
|
selected: boolean;
|
|
324
324
|
}[];
|
|
325
325
|
enabled: boolean;
|
|
326
326
|
}, {
|
|
327
327
|
enabled: boolean;
|
|
328
328
|
values?: {
|
|
329
|
-
value: string;
|
|
330
329
|
label: string;
|
|
330
|
+
value: string;
|
|
331
331
|
selected?: boolean | undefined;
|
|
332
332
|
}[] | undefined;
|
|
333
333
|
}>>>;
|
|
@@ -343,21 +343,21 @@ export declare const createModelImportValidation: () => zod.ZodObject<{
|
|
|
343
343
|
message: zod.ZodDefault<zod.ZodOptional<zod.ZodString>>;
|
|
344
344
|
settings: zod.ZodDefault<zod.ZodEffects<zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>>>>, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | null | undefined>>;
|
|
345
345
|
}, "strip", zod.ZodTypeAny, {
|
|
346
|
-
message: string;
|
|
347
346
|
name: string;
|
|
348
347
|
settings: {} & {
|
|
349
348
|
[k: string]: unknown;
|
|
350
349
|
};
|
|
350
|
+
message: string;
|
|
351
351
|
}, {
|
|
352
352
|
name: string;
|
|
353
353
|
message?: string | undefined;
|
|
354
354
|
settings?: zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
355
355
|
}>, "many">>>>>, {
|
|
356
|
-
message: string;
|
|
357
356
|
name: string;
|
|
358
357
|
settings: {} & {
|
|
359
358
|
[k: string]: unknown;
|
|
360
359
|
};
|
|
360
|
+
message: string;
|
|
361
361
|
}[], {
|
|
362
362
|
name: string;
|
|
363
363
|
message?: string | undefined;
|
|
@@ -368,21 +368,21 @@ export declare const createModelImportValidation: () => zod.ZodObject<{
|
|
|
368
368
|
message: zod.ZodDefault<zod.ZodOptional<zod.ZodString>>;
|
|
369
369
|
settings: zod.ZodDefault<zod.ZodEffects<zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>>>>, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | null | undefined>>;
|
|
370
370
|
}, "strip", zod.ZodTypeAny, {
|
|
371
|
-
message: string;
|
|
372
371
|
name: string;
|
|
373
372
|
settings: {} & {
|
|
374
373
|
[k: string]: unknown;
|
|
375
374
|
};
|
|
375
|
+
message: string;
|
|
376
376
|
}, {
|
|
377
377
|
name: string;
|
|
378
378
|
message?: string | undefined;
|
|
379
379
|
settings?: zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
380
380
|
}>, "many">>>>>, {
|
|
381
|
-
message: string;
|
|
382
381
|
name: string;
|
|
383
382
|
settings: {} & {
|
|
384
383
|
[k: string]: unknown;
|
|
385
384
|
};
|
|
385
|
+
message: string;
|
|
386
386
|
}[], {
|
|
387
387
|
name: string;
|
|
388
388
|
message?: string | undefined;
|
|
@@ -390,36 +390,36 @@ export declare const createModelImportValidation: () => zod.ZodObject<{
|
|
|
390
390
|
}[] | null | undefined>;
|
|
391
391
|
settings: zod.ZodDefault<zod.ZodEffects<zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>>>>, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | null | undefined>>;
|
|
392
392
|
}, "strip", zod.ZodTypeAny, {
|
|
393
|
-
type: string;
|
|
394
393
|
id: string;
|
|
395
|
-
|
|
396
|
-
settings: {} & {
|
|
397
|
-
[k: string]: unknown;
|
|
398
|
-
};
|
|
394
|
+
type: string;
|
|
399
395
|
storageId: string;
|
|
400
396
|
fieldId: string;
|
|
397
|
+
label: string;
|
|
401
398
|
helpText: string | null;
|
|
402
399
|
placeholderText: string | null;
|
|
403
400
|
validation: {
|
|
404
|
-
message: string;
|
|
405
401
|
name: string;
|
|
406
402
|
settings: {} & {
|
|
407
403
|
[k: string]: unknown;
|
|
408
404
|
};
|
|
405
|
+
message: string;
|
|
409
406
|
}[];
|
|
410
407
|
listValidation: {
|
|
411
|
-
message: string;
|
|
412
408
|
name: string;
|
|
413
409
|
settings: {} & {
|
|
414
410
|
[k: string]: unknown;
|
|
415
411
|
};
|
|
412
|
+
message: string;
|
|
416
413
|
}[];
|
|
417
414
|
multipleValues: boolean;
|
|
418
415
|
tags: string[];
|
|
416
|
+
settings: {} & {
|
|
417
|
+
[k: string]: unknown;
|
|
418
|
+
};
|
|
419
419
|
predefinedValues?: {
|
|
420
420
|
values: {
|
|
421
|
-
value: string;
|
|
422
421
|
label: string;
|
|
422
|
+
value: string;
|
|
423
423
|
selected: boolean;
|
|
424
424
|
}[];
|
|
425
425
|
enabled: boolean;
|
|
@@ -428,10 +428,10 @@ export declare const createModelImportValidation: () => zod.ZodObject<{
|
|
|
428
428
|
name: string;
|
|
429
429
|
} | undefined;
|
|
430
430
|
}, {
|
|
431
|
-
type: string;
|
|
432
431
|
id: string;
|
|
433
|
-
|
|
432
|
+
type: string;
|
|
434
433
|
fieldId: string;
|
|
434
|
+
label: string;
|
|
435
435
|
storageId?: string | undefined;
|
|
436
436
|
helpText?: string | null | undefined;
|
|
437
437
|
placeholderText?: string | null | undefined;
|
|
@@ -440,8 +440,8 @@ export declare const createModelImportValidation: () => zod.ZodObject<{
|
|
|
440
440
|
predefinedValues?: {
|
|
441
441
|
enabled: boolean;
|
|
442
442
|
values?: {
|
|
443
|
-
value: string;
|
|
444
443
|
label: string;
|
|
444
|
+
value: string;
|
|
445
445
|
selected?: boolean | undefined;
|
|
446
446
|
}[] | undefined;
|
|
447
447
|
} | undefined;
|
|
@@ -467,38 +467,37 @@ export declare const createModelImportValidation: () => zod.ZodObject<{
|
|
|
467
467
|
imageFieldId: zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodString>>>;
|
|
468
468
|
}, "strip", zod.ZodTypeAny, {
|
|
469
469
|
name: string;
|
|
470
|
-
group: string;
|
|
471
470
|
fields: {
|
|
472
|
-
type: string;
|
|
473
471
|
id: string;
|
|
474
|
-
|
|
475
|
-
settings: {} & {
|
|
476
|
-
[k: string]: unknown;
|
|
477
|
-
};
|
|
472
|
+
type: string;
|
|
478
473
|
storageId: string;
|
|
479
474
|
fieldId: string;
|
|
475
|
+
label: string;
|
|
480
476
|
helpText: string | null;
|
|
481
477
|
placeholderText: string | null;
|
|
482
478
|
validation: {
|
|
483
|
-
message: string;
|
|
484
479
|
name: string;
|
|
485
480
|
settings: {} & {
|
|
486
481
|
[k: string]: unknown;
|
|
487
482
|
};
|
|
483
|
+
message: string;
|
|
488
484
|
}[];
|
|
489
485
|
listValidation: {
|
|
490
|
-
message: string;
|
|
491
486
|
name: string;
|
|
492
487
|
settings: {} & {
|
|
493
488
|
[k: string]: unknown;
|
|
494
489
|
};
|
|
490
|
+
message: string;
|
|
495
491
|
}[];
|
|
496
492
|
multipleValues: boolean;
|
|
497
493
|
tags: string[];
|
|
494
|
+
settings: {} & {
|
|
495
|
+
[k: string]: unknown;
|
|
496
|
+
};
|
|
498
497
|
predefinedValues?: {
|
|
499
498
|
values: {
|
|
500
|
-
value: string;
|
|
501
499
|
label: string;
|
|
500
|
+
value: string;
|
|
502
501
|
selected: boolean;
|
|
503
502
|
}[];
|
|
504
503
|
enabled: boolean;
|
|
@@ -510,6 +509,7 @@ export declare const createModelImportValidation: () => zod.ZodObject<{
|
|
|
510
509
|
layout: string[][];
|
|
511
510
|
singularApiName: string;
|
|
512
511
|
pluralApiName: string;
|
|
512
|
+
group: string;
|
|
513
513
|
modelId?: string | undefined;
|
|
514
514
|
description?: string | null | undefined;
|
|
515
515
|
icon?: string | null | undefined;
|
|
@@ -519,12 +519,11 @@ export declare const createModelImportValidation: () => zod.ZodObject<{
|
|
|
519
519
|
imageFieldId?: string | null | undefined;
|
|
520
520
|
}, {
|
|
521
521
|
name: string;
|
|
522
|
-
group: string;
|
|
523
522
|
fields: {
|
|
524
|
-
type: string;
|
|
525
523
|
id: string;
|
|
526
|
-
|
|
524
|
+
type: string;
|
|
527
525
|
fieldId: string;
|
|
526
|
+
label: string;
|
|
528
527
|
storageId?: string | undefined;
|
|
529
528
|
helpText?: string | null | undefined;
|
|
530
529
|
placeholderText?: string | null | undefined;
|
|
@@ -533,8 +532,8 @@ export declare const createModelImportValidation: () => zod.ZodObject<{
|
|
|
533
532
|
predefinedValues?: {
|
|
534
533
|
enabled: boolean;
|
|
535
534
|
values?: {
|
|
536
|
-
value: string;
|
|
537
535
|
label: string;
|
|
536
|
+
value: string;
|
|
538
537
|
selected?: boolean | undefined;
|
|
539
538
|
}[] | undefined;
|
|
540
539
|
} | undefined;
|
|
@@ -557,6 +556,7 @@ export declare const createModelImportValidation: () => zod.ZodObject<{
|
|
|
557
556
|
singularApiName: string;
|
|
558
557
|
pluralApiName: string;
|
|
559
558
|
modelId: string;
|
|
559
|
+
group: string;
|
|
560
560
|
description?: string | null | undefined;
|
|
561
561
|
icon?: string | null | undefined;
|
|
562
562
|
tags?: string[] | undefined;
|
|
@@ -575,18 +575,18 @@ export declare const createModelCreateFromValidation: () => zod.ZodObject<{
|
|
|
575
575
|
locale: zod.ZodOptional<zod.ZodString>;
|
|
576
576
|
}, "strip", zod.ZodTypeAny, {
|
|
577
577
|
name: string;
|
|
578
|
-
group: string;
|
|
579
578
|
singularApiName: string;
|
|
580
579
|
pluralApiName: string;
|
|
580
|
+
group: string;
|
|
581
581
|
modelId?: string | undefined;
|
|
582
582
|
description?: string | null | undefined;
|
|
583
583
|
icon?: string | null | undefined;
|
|
584
584
|
locale?: string | undefined;
|
|
585
585
|
}, {
|
|
586
586
|
name: string;
|
|
587
|
-
group: string;
|
|
588
587
|
singularApiName: string;
|
|
589
588
|
pluralApiName: string;
|
|
589
|
+
group: string;
|
|
590
590
|
modelId?: string | undefined;
|
|
591
591
|
description?: string | null | undefined;
|
|
592
592
|
icon?: string | null | undefined;
|
|
@@ -616,26 +616,26 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
616
616
|
label: zod.ZodString;
|
|
617
617
|
selected: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
|
|
618
618
|
}, "strip", zod.ZodTypeAny, {
|
|
619
|
-
value: string;
|
|
620
619
|
label: string;
|
|
620
|
+
value: string;
|
|
621
621
|
selected: boolean;
|
|
622
622
|
}, {
|
|
623
|
-
value: string;
|
|
624
623
|
label: string;
|
|
624
|
+
value: string;
|
|
625
625
|
selected?: boolean | undefined;
|
|
626
626
|
}>, "many">>;
|
|
627
627
|
}, "strip", zod.ZodTypeAny, {
|
|
628
628
|
values: {
|
|
629
|
-
value: string;
|
|
630
629
|
label: string;
|
|
630
|
+
value: string;
|
|
631
631
|
selected: boolean;
|
|
632
632
|
}[];
|
|
633
633
|
enabled: boolean;
|
|
634
634
|
}, {
|
|
635
635
|
enabled: boolean;
|
|
636
636
|
values?: {
|
|
637
|
-
value: string;
|
|
638
637
|
label: string;
|
|
638
|
+
value: string;
|
|
639
639
|
selected?: boolean | undefined;
|
|
640
640
|
}[] | undefined;
|
|
641
641
|
}>>>;
|
|
@@ -651,21 +651,21 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
651
651
|
message: zod.ZodDefault<zod.ZodOptional<zod.ZodString>>;
|
|
652
652
|
settings: zod.ZodDefault<zod.ZodEffects<zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>>>>, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | null | undefined>>;
|
|
653
653
|
}, "strip", zod.ZodTypeAny, {
|
|
654
|
-
message: string;
|
|
655
654
|
name: string;
|
|
656
655
|
settings: {} & {
|
|
657
656
|
[k: string]: unknown;
|
|
658
657
|
};
|
|
658
|
+
message: string;
|
|
659
659
|
}, {
|
|
660
660
|
name: string;
|
|
661
661
|
message?: string | undefined;
|
|
662
662
|
settings?: zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
663
663
|
}>, "many">>>>>, {
|
|
664
|
-
message: string;
|
|
665
664
|
name: string;
|
|
666
665
|
settings: {} & {
|
|
667
666
|
[k: string]: unknown;
|
|
668
667
|
};
|
|
668
|
+
message: string;
|
|
669
669
|
}[], {
|
|
670
670
|
name: string;
|
|
671
671
|
message?: string | undefined;
|
|
@@ -676,21 +676,21 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
676
676
|
message: zod.ZodDefault<zod.ZodOptional<zod.ZodString>>;
|
|
677
677
|
settings: zod.ZodDefault<zod.ZodEffects<zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>>>>, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | null | undefined>>;
|
|
678
678
|
}, "strip", zod.ZodTypeAny, {
|
|
679
|
-
message: string;
|
|
680
679
|
name: string;
|
|
681
680
|
settings: {} & {
|
|
682
681
|
[k: string]: unknown;
|
|
683
682
|
};
|
|
683
|
+
message: string;
|
|
684
684
|
}, {
|
|
685
685
|
name: string;
|
|
686
686
|
message?: string | undefined;
|
|
687
687
|
settings?: zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
688
688
|
}>, "many">>>>>, {
|
|
689
|
-
message: string;
|
|
690
689
|
name: string;
|
|
691
690
|
settings: {} & {
|
|
692
691
|
[k: string]: unknown;
|
|
693
692
|
};
|
|
693
|
+
message: string;
|
|
694
694
|
}[], {
|
|
695
695
|
name: string;
|
|
696
696
|
message?: string | undefined;
|
|
@@ -698,36 +698,36 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
698
698
|
}[] | null | undefined>;
|
|
699
699
|
settings: zod.ZodDefault<zod.ZodEffects<zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>>>>, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | null | undefined>>;
|
|
700
700
|
}, "strip", zod.ZodTypeAny, {
|
|
701
|
-
type: string;
|
|
702
701
|
id: string;
|
|
703
|
-
|
|
704
|
-
settings: {} & {
|
|
705
|
-
[k: string]: unknown;
|
|
706
|
-
};
|
|
702
|
+
type: string;
|
|
707
703
|
storageId: string;
|
|
708
704
|
fieldId: string;
|
|
705
|
+
label: string;
|
|
709
706
|
helpText: string | null;
|
|
710
707
|
placeholderText: string | null;
|
|
711
708
|
validation: {
|
|
712
|
-
message: string;
|
|
713
709
|
name: string;
|
|
714
710
|
settings: {} & {
|
|
715
711
|
[k: string]: unknown;
|
|
716
712
|
};
|
|
713
|
+
message: string;
|
|
717
714
|
}[];
|
|
718
715
|
listValidation: {
|
|
719
|
-
message: string;
|
|
720
716
|
name: string;
|
|
721
717
|
settings: {} & {
|
|
722
718
|
[k: string]: unknown;
|
|
723
719
|
};
|
|
720
|
+
message: string;
|
|
724
721
|
}[];
|
|
725
722
|
multipleValues: boolean;
|
|
726
723
|
tags: string[];
|
|
724
|
+
settings: {} & {
|
|
725
|
+
[k: string]: unknown;
|
|
726
|
+
};
|
|
727
727
|
predefinedValues?: {
|
|
728
728
|
values: {
|
|
729
|
-
value: string;
|
|
730
729
|
label: string;
|
|
730
|
+
value: string;
|
|
731
731
|
selected: boolean;
|
|
732
732
|
}[];
|
|
733
733
|
enabled: boolean;
|
|
@@ -736,10 +736,10 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
736
736
|
name: string;
|
|
737
737
|
} | undefined;
|
|
738
738
|
}, {
|
|
739
|
-
type: string;
|
|
740
739
|
id: string;
|
|
741
|
-
|
|
740
|
+
type: string;
|
|
742
741
|
fieldId: string;
|
|
742
|
+
label: string;
|
|
743
743
|
storageId?: string | undefined;
|
|
744
744
|
helpText?: string | null | undefined;
|
|
745
745
|
placeholderText?: string | null | undefined;
|
|
@@ -748,8 +748,8 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
748
748
|
predefinedValues?: {
|
|
749
749
|
enabled: boolean;
|
|
750
750
|
values?: {
|
|
751
|
-
value: string;
|
|
752
751
|
label: string;
|
|
752
|
+
value: string;
|
|
753
753
|
selected?: boolean | undefined;
|
|
754
754
|
}[] | undefined;
|
|
755
755
|
} | undefined;
|
|
@@ -775,36 +775,36 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
775
775
|
tags: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
776
776
|
}, "strip", zod.ZodTypeAny, {
|
|
777
777
|
fields: {
|
|
778
|
-
type: string;
|
|
779
778
|
id: string;
|
|
780
|
-
|
|
781
|
-
settings: {} & {
|
|
782
|
-
[k: string]: unknown;
|
|
783
|
-
};
|
|
779
|
+
type: string;
|
|
784
780
|
storageId: string;
|
|
785
781
|
fieldId: string;
|
|
782
|
+
label: string;
|
|
786
783
|
helpText: string | null;
|
|
787
784
|
placeholderText: string | null;
|
|
788
785
|
validation: {
|
|
789
|
-
message: string;
|
|
790
786
|
name: string;
|
|
791
787
|
settings: {} & {
|
|
792
788
|
[k: string]: unknown;
|
|
793
789
|
};
|
|
790
|
+
message: string;
|
|
794
791
|
}[];
|
|
795
792
|
listValidation: {
|
|
796
|
-
message: string;
|
|
797
793
|
name: string;
|
|
798
794
|
settings: {} & {
|
|
799
795
|
[k: string]: unknown;
|
|
800
796
|
};
|
|
797
|
+
message: string;
|
|
801
798
|
}[];
|
|
802
799
|
multipleValues: boolean;
|
|
803
800
|
tags: string[];
|
|
801
|
+
settings: {} & {
|
|
802
|
+
[k: string]: unknown;
|
|
803
|
+
};
|
|
804
804
|
predefinedValues?: {
|
|
805
805
|
values: {
|
|
806
|
-
value: string;
|
|
807
806
|
label: string;
|
|
807
|
+
value: string;
|
|
808
808
|
selected: boolean;
|
|
809
809
|
}[];
|
|
810
810
|
enabled: boolean;
|
|
@@ -826,10 +826,10 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
826
826
|
tags?: string[] | undefined;
|
|
827
827
|
}, {
|
|
828
828
|
fields: {
|
|
829
|
-
type: string;
|
|
830
829
|
id: string;
|
|
831
|
-
|
|
830
|
+
type: string;
|
|
832
831
|
fieldId: string;
|
|
832
|
+
label: string;
|
|
833
833
|
storageId?: string | undefined;
|
|
834
834
|
helpText?: string | null | undefined;
|
|
835
835
|
placeholderText?: string | null | undefined;
|
|
@@ -838,8 +838,8 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
838
838
|
predefinedValues?: {
|
|
839
839
|
enabled: boolean;
|
|
840
840
|
values?: {
|
|
841
|
-
value: string;
|
|
842
841
|
label: string;
|
|
842
|
+
value: string;
|
|
843
843
|
selected?: boolean | undefined;
|
|
844
844
|
}[] | undefined;
|
|
845
845
|
} | undefined;
|
|
@@ -6,9 +6,9 @@ export declare const createGroupCreateValidation: () => zod.ZodObject<{
|
|
|
6
6
|
description: zod.ZodEffects<zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodString>>>, string, string | null | undefined>;
|
|
7
7
|
icon: zod.ZodString;
|
|
8
8
|
}, "strip", zod.ZodTypeAny, {
|
|
9
|
-
description: string;
|
|
10
9
|
name: string;
|
|
11
10
|
slug: string;
|
|
11
|
+
description: string;
|
|
12
12
|
icon: string;
|
|
13
13
|
id?: string | null | undefined;
|
|
14
14
|
}, {
|
package/graphql/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GraphQLHandlerFactoryParams } from "./graphQLHandlerFactory";
|
|
2
2
|
export declare type CreateGraphQLParams = GraphQLHandlerFactoryParams;
|
|
3
|
-
export declare const createGraphQL: (params: CreateGraphQLParams) => (import("@webiny/
|
|
3
|
+
export declare const createGraphQL: (params: CreateGraphQLParams) => (import("@webiny/handler-graphql").GraphQLSchemaPlugin<import("../types").CmsContext> | import("@webiny/plugins/types").PluginCollection | import("@webiny/api").ContextPlugin<import("@webiny/api/types").Context>)[];
|
package/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { entryFieldFromStorageTransform, entryFromStorageTransform, entryToStora
|
|
|
4
4
|
export * from "./utils/isHeadlessCmsReady";
|
|
5
5
|
export * from "./utils/createModelField";
|
|
6
6
|
export declare type CreateHeadlessCmsGraphQLParams = CreateGraphQLParams;
|
|
7
|
-
export declare const createHeadlessCmsGraphQL: (params?: CreateHeadlessCmsGraphQLParams) => (import("
|
|
7
|
+
export declare const createHeadlessCmsGraphQL: (params?: CreateHeadlessCmsGraphQLParams) => (import("./plugins").CmsParametersPlugin | import("@webiny/handler-graphql").GraphQLSchemaPlugin<import("./types").CmsContext> | import("@webiny/plugins/types").PluginCollection | import("@webiny/api").ContextPlugin<import("@webiny/api/types").Context> | import("./plugins").CmsRichTextRendererPlugin<string | undefined>)[];
|
|
8
8
|
export declare type ContentContextParams = CrudParams;
|
|
9
9
|
export declare const createHeadlessCmsContext: (params: ContentContextParams) => (import("./types").ModelManagerPlugin | import("./plugins").StorageTransformPlugin<any, any, import("./types").CmsModelField> | import("@webiny/api").ContextPlugin<import("./types").CmsContext> | import("./plugins").StorageTransformPlugin<any, any, import("./types").CmsModelDynamicZoneField> | import("./types").CmsModelFieldToGraphQLPlugin<any>[] | (import("./types").CmsModelFieldValidatorPlugin | import("./types").CmsModelFieldPatternValidatorPlugin[])[] | (import("./fieldConverters/CmsModelObjectFieldConverterPlugin").CmsModelObjectFieldConverterPlugin | import("./fieldConverters/CmsModelDefaultFieldConverterPlugin").CmsModelDefaultFieldConverterPlugin | import("./fieldConverters/CmsModelDynamicZoneFieldConverterPlugin").CmsModelDynamicZoneFieldConverterPlugin)[])[];
|
|
10
10
|
export * from "./graphqlFields";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-headless-cms",
|
|
3
|
-
"version": "5.40.0-beta.
|
|
3
|
+
"version": "5.40.0-beta.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms:base"
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@babel/runtime": "7.22.6",
|
|
22
22
|
"@graphql-tools/schema": "7.1.5",
|
|
23
|
-
"@webiny/api": "5.40.0-beta.
|
|
24
|
-
"@webiny/api-i18n": "5.40.0-beta.
|
|
25
|
-
"@webiny/api-security": "5.40.0-beta.
|
|
26
|
-
"@webiny/api-tenancy": "5.40.0-beta.
|
|
27
|
-
"@webiny/error": "5.40.0-beta.
|
|
28
|
-
"@webiny/handler": "5.40.0-beta.
|
|
29
|
-
"@webiny/handler-aws": "5.40.0-beta.
|
|
30
|
-
"@webiny/handler-db": "5.40.0-beta.
|
|
31
|
-
"@webiny/handler-graphql": "5.40.0-beta.
|
|
32
|
-
"@webiny/lexical-converter": "5.40.0-beta.
|
|
33
|
-
"@webiny/plugins": "5.40.0-beta.
|
|
34
|
-
"@webiny/pubsub": "5.40.0-beta.
|
|
35
|
-
"@webiny/utils": "5.40.0-beta.
|
|
36
|
-
"@webiny/validation": "5.40.0-beta.
|
|
23
|
+
"@webiny/api": "5.40.0-beta.2",
|
|
24
|
+
"@webiny/api-i18n": "5.40.0-beta.2",
|
|
25
|
+
"@webiny/api-security": "5.40.0-beta.2",
|
|
26
|
+
"@webiny/api-tenancy": "5.40.0-beta.2",
|
|
27
|
+
"@webiny/error": "5.40.0-beta.2",
|
|
28
|
+
"@webiny/handler": "5.40.0-beta.2",
|
|
29
|
+
"@webiny/handler-aws": "5.40.0-beta.2",
|
|
30
|
+
"@webiny/handler-db": "5.40.0-beta.2",
|
|
31
|
+
"@webiny/handler-graphql": "5.40.0-beta.2",
|
|
32
|
+
"@webiny/lexical-converter": "5.40.0-beta.2",
|
|
33
|
+
"@webiny/plugins": "5.40.0-beta.2",
|
|
34
|
+
"@webiny/pubsub": "5.40.0-beta.2",
|
|
35
|
+
"@webiny/utils": "5.40.0-beta.2",
|
|
36
|
+
"@webiny/validation": "5.40.0-beta.2",
|
|
37
37
|
"code-frame": "5.0.0",
|
|
38
38
|
"dot-prop": "6.0.1",
|
|
39
39
|
"graphql-tag": "2.12.6",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"@babel/cli": "7.22.6",
|
|
51
51
|
"@babel/core": "7.22.8",
|
|
52
52
|
"@babel/preset-env": "7.22.7",
|
|
53
|
-
"@webiny/api-wcp": "5.40.0-beta.
|
|
54
|
-
"@webiny/cli": "5.40.0-beta.
|
|
55
|
-
"@webiny/project-utils": "5.40.0-beta.
|
|
53
|
+
"@webiny/api-wcp": "5.40.0-beta.2",
|
|
54
|
+
"@webiny/cli": "5.40.0-beta.2",
|
|
55
|
+
"@webiny/project-utils": "5.40.0-beta.2",
|
|
56
56
|
"apollo-graphql": "0.9.7",
|
|
57
57
|
"get-yarn-workspaces": "1.0.2",
|
|
58
58
|
"graphql": "15.8.0",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"build": "yarn webiny run build",
|
|
73
73
|
"watch": "yarn webiny run watch"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "15e414a228687140ce2f30bd2f55763368e99827"
|
|
76
76
|
}
|