@webiny/api-headless-cms 5.39.0 → 5.39.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
-
label: string;
|
|
28
27
|
value: string;
|
|
28
|
+
label: string;
|
|
29
29
|
selected: boolean;
|
|
30
30
|
}, {
|
|
31
|
-
label: string;
|
|
32
31
|
value: string;
|
|
32
|
+
label: string;
|
|
33
33
|
selected?: boolean | undefined;
|
|
34
34
|
}>, "many">>;
|
|
35
35
|
}, "strip", zod.ZodTypeAny, {
|
|
36
36
|
values: {
|
|
37
|
-
label: string;
|
|
38
37
|
value: string;
|
|
38
|
+
label: string;
|
|
39
39
|
selected: boolean;
|
|
40
40
|
}[];
|
|
41
41
|
enabled: boolean;
|
|
42
42
|
}, {
|
|
43
43
|
enabled: boolean;
|
|
44
44
|
values?: {
|
|
45
|
-
label: string;
|
|
46
45
|
value: string;
|
|
46
|
+
label: 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;
|
|
62
63
|
name: string;
|
|
63
64
|
settings: {} & {
|
|
64
65
|
[k: string]: unknown;
|
|
65
66
|
};
|
|
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;
|
|
72
73
|
name: string;
|
|
73
74
|
settings: {} & {
|
|
74
75
|
[k: string]: unknown;
|
|
75
76
|
};
|
|
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;
|
|
87
88
|
name: string;
|
|
88
89
|
settings: {} & {
|
|
89
90
|
[k: string]: unknown;
|
|
90
91
|
};
|
|
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;
|
|
97
98
|
name: string;
|
|
98
99
|
settings: {} & {
|
|
99
100
|
[k: string]: unknown;
|
|
100
101
|
};
|
|
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
|
-
id: string;
|
|
110
109
|
type: string;
|
|
110
|
+
id: string;
|
|
111
|
+
label: string;
|
|
112
|
+
settings: {} & {
|
|
113
|
+
[k: string]: unknown;
|
|
114
|
+
};
|
|
111
115
|
storageId: string;
|
|
112
116
|
fieldId: string;
|
|
113
|
-
label: string;
|
|
114
117
|
helpText: string | null;
|
|
115
118
|
placeholderText: string | null;
|
|
116
119
|
validation: {
|
|
120
|
+
message: string;
|
|
117
121
|
name: string;
|
|
118
122
|
settings: {} & {
|
|
119
123
|
[k: string]: unknown;
|
|
120
124
|
};
|
|
121
|
-
message: string;
|
|
122
125
|
}[];
|
|
123
126
|
listValidation: {
|
|
127
|
+
message: string;
|
|
124
128
|
name: string;
|
|
125
129
|
settings: {} & {
|
|
126
130
|
[k: string]: unknown;
|
|
127
131
|
};
|
|
128
|
-
message: string;
|
|
129
132
|
}[];
|
|
130
133
|
multipleValues: boolean;
|
|
131
134
|
tags: string[];
|
|
132
|
-
settings: {} & {
|
|
133
|
-
[k: string]: unknown;
|
|
134
|
-
};
|
|
135
135
|
predefinedValues?: {
|
|
136
136
|
values: {
|
|
137
|
-
label: string;
|
|
138
137
|
value: string;
|
|
138
|
+
label: 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
|
-
id: string;
|
|
148
147
|
type: string;
|
|
149
|
-
|
|
148
|
+
id: string;
|
|
150
149
|
label: string;
|
|
150
|
+
fieldId: 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
|
-
label: string;
|
|
160
159
|
value: string;
|
|
160
|
+
label: string;
|
|
161
161
|
selected?: boolean | undefined;
|
|
162
162
|
}[] | undefined;
|
|
163
163
|
} | undefined;
|
|
@@ -184,37 +184,38 @@ 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;
|
|
187
188
|
fields: {
|
|
188
|
-
id: string;
|
|
189
189
|
type: string;
|
|
190
|
+
id: string;
|
|
191
|
+
label: string;
|
|
192
|
+
settings: {} & {
|
|
193
|
+
[k: string]: unknown;
|
|
194
|
+
};
|
|
190
195
|
storageId: string;
|
|
191
196
|
fieldId: string;
|
|
192
|
-
label: string;
|
|
193
197
|
helpText: string | null;
|
|
194
198
|
placeholderText: string | null;
|
|
195
199
|
validation: {
|
|
200
|
+
message: string;
|
|
196
201
|
name: string;
|
|
197
202
|
settings: {} & {
|
|
198
203
|
[k: string]: unknown;
|
|
199
204
|
};
|
|
200
|
-
message: string;
|
|
201
205
|
}[];
|
|
202
206
|
listValidation: {
|
|
207
|
+
message: string;
|
|
203
208
|
name: string;
|
|
204
209
|
settings: {} & {
|
|
205
210
|
[k: string]: unknown;
|
|
206
211
|
};
|
|
207
|
-
message: string;
|
|
208
212
|
}[];
|
|
209
213
|
multipleValues: boolean;
|
|
210
214
|
tags: string[];
|
|
211
|
-
settings: {} & {
|
|
212
|
-
[k: string]: unknown;
|
|
213
|
-
};
|
|
214
215
|
predefinedValues?: {
|
|
215
216
|
values: {
|
|
216
|
-
label: string;
|
|
217
217
|
value: string;
|
|
218
|
+
label: string;
|
|
218
219
|
selected: boolean;
|
|
219
220
|
}[];
|
|
220
221
|
enabled: boolean;
|
|
@@ -226,7 +227,6 @@ export declare const createModelCreateValidation: () => zod.ZodObject<{
|
|
|
226
227
|
layout: string[][];
|
|
227
228
|
singularApiName: string;
|
|
228
229
|
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;
|
|
240
241
|
singularApiName: string;
|
|
241
242
|
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
|
-
id: string;
|
|
248
247
|
type: string;
|
|
249
|
-
|
|
248
|
+
id: string;
|
|
250
249
|
label: string;
|
|
250
|
+
fieldId: 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
|
-
label: string;
|
|
260
259
|
value: string;
|
|
260
|
+
label: 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
|
-
label: string;
|
|
312
311
|
value: string;
|
|
312
|
+
label: string;
|
|
313
313
|
selected: boolean;
|
|
314
314
|
}, {
|
|
315
|
-
label: string;
|
|
316
315
|
value: string;
|
|
316
|
+
label: string;
|
|
317
317
|
selected?: boolean | undefined;
|
|
318
318
|
}>, "many">>;
|
|
319
319
|
}, "strip", zod.ZodTypeAny, {
|
|
320
320
|
values: {
|
|
321
|
-
label: string;
|
|
322
321
|
value: string;
|
|
322
|
+
label: string;
|
|
323
323
|
selected: boolean;
|
|
324
324
|
}[];
|
|
325
325
|
enabled: boolean;
|
|
326
326
|
}, {
|
|
327
327
|
enabled: boolean;
|
|
328
328
|
values?: {
|
|
329
|
-
label: string;
|
|
330
329
|
value: string;
|
|
330
|
+
label: 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;
|
|
346
347
|
name: string;
|
|
347
348
|
settings: {} & {
|
|
348
349
|
[k: string]: unknown;
|
|
349
350
|
};
|
|
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;
|
|
356
357
|
name: string;
|
|
357
358
|
settings: {} & {
|
|
358
359
|
[k: string]: unknown;
|
|
359
360
|
};
|
|
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;
|
|
371
372
|
name: string;
|
|
372
373
|
settings: {} & {
|
|
373
374
|
[k: string]: unknown;
|
|
374
375
|
};
|
|
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;
|
|
381
382
|
name: string;
|
|
382
383
|
settings: {} & {
|
|
383
384
|
[k: string]: unknown;
|
|
384
385
|
};
|
|
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
|
-
id: string;
|
|
394
393
|
type: string;
|
|
394
|
+
id: string;
|
|
395
|
+
label: string;
|
|
396
|
+
settings: {} & {
|
|
397
|
+
[k: string]: unknown;
|
|
398
|
+
};
|
|
395
399
|
storageId: string;
|
|
396
400
|
fieldId: string;
|
|
397
|
-
label: string;
|
|
398
401
|
helpText: string | null;
|
|
399
402
|
placeholderText: string | null;
|
|
400
403
|
validation: {
|
|
404
|
+
message: string;
|
|
401
405
|
name: string;
|
|
402
406
|
settings: {} & {
|
|
403
407
|
[k: string]: unknown;
|
|
404
408
|
};
|
|
405
|
-
message: string;
|
|
406
409
|
}[];
|
|
407
410
|
listValidation: {
|
|
411
|
+
message: string;
|
|
408
412
|
name: string;
|
|
409
413
|
settings: {} & {
|
|
410
414
|
[k: string]: unknown;
|
|
411
415
|
};
|
|
412
|
-
message: string;
|
|
413
416
|
}[];
|
|
414
417
|
multipleValues: boolean;
|
|
415
418
|
tags: string[];
|
|
416
|
-
settings: {} & {
|
|
417
|
-
[k: string]: unknown;
|
|
418
|
-
};
|
|
419
419
|
predefinedValues?: {
|
|
420
420
|
values: {
|
|
421
|
-
label: string;
|
|
422
421
|
value: string;
|
|
422
|
+
label: 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
|
-
id: string;
|
|
432
431
|
type: string;
|
|
433
|
-
|
|
432
|
+
id: string;
|
|
434
433
|
label: string;
|
|
434
|
+
fieldId: 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
|
-
label: string;
|
|
444
443
|
value: string;
|
|
444
|
+
label: string;
|
|
445
445
|
selected?: boolean | undefined;
|
|
446
446
|
}[] | undefined;
|
|
447
447
|
} | undefined;
|
|
@@ -467,37 +467,38 @@ 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;
|
|
470
471
|
fields: {
|
|
471
|
-
id: string;
|
|
472
472
|
type: string;
|
|
473
|
+
id: string;
|
|
474
|
+
label: string;
|
|
475
|
+
settings: {} & {
|
|
476
|
+
[k: string]: unknown;
|
|
477
|
+
};
|
|
473
478
|
storageId: string;
|
|
474
479
|
fieldId: string;
|
|
475
|
-
label: string;
|
|
476
480
|
helpText: string | null;
|
|
477
481
|
placeholderText: string | null;
|
|
478
482
|
validation: {
|
|
483
|
+
message: string;
|
|
479
484
|
name: string;
|
|
480
485
|
settings: {} & {
|
|
481
486
|
[k: string]: unknown;
|
|
482
487
|
};
|
|
483
|
-
message: string;
|
|
484
488
|
}[];
|
|
485
489
|
listValidation: {
|
|
490
|
+
message: string;
|
|
486
491
|
name: string;
|
|
487
492
|
settings: {} & {
|
|
488
493
|
[k: string]: unknown;
|
|
489
494
|
};
|
|
490
|
-
message: string;
|
|
491
495
|
}[];
|
|
492
496
|
multipleValues: boolean;
|
|
493
497
|
tags: string[];
|
|
494
|
-
settings: {} & {
|
|
495
|
-
[k: string]: unknown;
|
|
496
|
-
};
|
|
497
498
|
predefinedValues?: {
|
|
498
499
|
values: {
|
|
499
|
-
label: string;
|
|
500
500
|
value: string;
|
|
501
|
+
label: string;
|
|
501
502
|
selected: boolean;
|
|
502
503
|
}[];
|
|
503
504
|
enabled: boolean;
|
|
@@ -509,7 +510,6 @@ export declare const createModelImportValidation: () => zod.ZodObject<{
|
|
|
509
510
|
layout: string[][];
|
|
510
511
|
singularApiName: string;
|
|
511
512
|
pluralApiName: string;
|
|
512
|
-
group: string;
|
|
513
513
|
modelId?: string | undefined;
|
|
514
514
|
description?: string | null | undefined;
|
|
515
515
|
icon?: string | null | undefined;
|
|
@@ -519,11 +519,12 @@ export declare const createModelImportValidation: () => zod.ZodObject<{
|
|
|
519
519
|
imageFieldId?: string | null | undefined;
|
|
520
520
|
}, {
|
|
521
521
|
name: string;
|
|
522
|
+
group: string;
|
|
522
523
|
fields: {
|
|
523
|
-
id: string;
|
|
524
524
|
type: string;
|
|
525
|
-
|
|
525
|
+
id: string;
|
|
526
526
|
label: string;
|
|
527
|
+
fieldId: string;
|
|
527
528
|
storageId?: string | undefined;
|
|
528
529
|
helpText?: string | null | undefined;
|
|
529
530
|
placeholderText?: string | null | undefined;
|
|
@@ -532,8 +533,8 @@ export declare const createModelImportValidation: () => zod.ZodObject<{
|
|
|
532
533
|
predefinedValues?: {
|
|
533
534
|
enabled: boolean;
|
|
534
535
|
values?: {
|
|
535
|
-
label: string;
|
|
536
536
|
value: string;
|
|
537
|
+
label: string;
|
|
537
538
|
selected?: boolean | undefined;
|
|
538
539
|
}[] | undefined;
|
|
539
540
|
} | undefined;
|
|
@@ -556,7 +557,6 @@ export declare const createModelImportValidation: () => zod.ZodObject<{
|
|
|
556
557
|
singularApiName: string;
|
|
557
558
|
pluralApiName: string;
|
|
558
559
|
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;
|
|
578
579
|
singularApiName: string;
|
|
579
580
|
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;
|
|
587
588
|
singularApiName: string;
|
|
588
589
|
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
|
-
label: string;
|
|
620
619
|
value: string;
|
|
620
|
+
label: string;
|
|
621
621
|
selected: boolean;
|
|
622
622
|
}, {
|
|
623
|
-
label: string;
|
|
624
623
|
value: string;
|
|
624
|
+
label: string;
|
|
625
625
|
selected?: boolean | undefined;
|
|
626
626
|
}>, "many">>;
|
|
627
627
|
}, "strip", zod.ZodTypeAny, {
|
|
628
628
|
values: {
|
|
629
|
-
label: string;
|
|
630
629
|
value: string;
|
|
630
|
+
label: string;
|
|
631
631
|
selected: boolean;
|
|
632
632
|
}[];
|
|
633
633
|
enabled: boolean;
|
|
634
634
|
}, {
|
|
635
635
|
enabled: boolean;
|
|
636
636
|
values?: {
|
|
637
|
-
label: string;
|
|
638
637
|
value: string;
|
|
638
|
+
label: 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;
|
|
654
655
|
name: string;
|
|
655
656
|
settings: {} & {
|
|
656
657
|
[k: string]: unknown;
|
|
657
658
|
};
|
|
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;
|
|
664
665
|
name: string;
|
|
665
666
|
settings: {} & {
|
|
666
667
|
[k: string]: unknown;
|
|
667
668
|
};
|
|
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;
|
|
679
680
|
name: string;
|
|
680
681
|
settings: {} & {
|
|
681
682
|
[k: string]: unknown;
|
|
682
683
|
};
|
|
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;
|
|
689
690
|
name: string;
|
|
690
691
|
settings: {} & {
|
|
691
692
|
[k: string]: unknown;
|
|
692
693
|
};
|
|
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
|
-
id: string;
|
|
702
701
|
type: string;
|
|
702
|
+
id: string;
|
|
703
|
+
label: string;
|
|
704
|
+
settings: {} & {
|
|
705
|
+
[k: string]: unknown;
|
|
706
|
+
};
|
|
703
707
|
storageId: string;
|
|
704
708
|
fieldId: string;
|
|
705
|
-
label: string;
|
|
706
709
|
helpText: string | null;
|
|
707
710
|
placeholderText: string | null;
|
|
708
711
|
validation: {
|
|
712
|
+
message: string;
|
|
709
713
|
name: string;
|
|
710
714
|
settings: {} & {
|
|
711
715
|
[k: string]: unknown;
|
|
712
716
|
};
|
|
713
|
-
message: string;
|
|
714
717
|
}[];
|
|
715
718
|
listValidation: {
|
|
719
|
+
message: string;
|
|
716
720
|
name: string;
|
|
717
721
|
settings: {} & {
|
|
718
722
|
[k: string]: unknown;
|
|
719
723
|
};
|
|
720
|
-
message: string;
|
|
721
724
|
}[];
|
|
722
725
|
multipleValues: boolean;
|
|
723
726
|
tags: string[];
|
|
724
|
-
settings: {} & {
|
|
725
|
-
[k: string]: unknown;
|
|
726
|
-
};
|
|
727
727
|
predefinedValues?: {
|
|
728
728
|
values: {
|
|
729
|
-
label: string;
|
|
730
729
|
value: string;
|
|
730
|
+
label: 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
|
-
id: string;
|
|
740
739
|
type: string;
|
|
741
|
-
|
|
740
|
+
id: string;
|
|
742
741
|
label: string;
|
|
742
|
+
fieldId: 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
|
-
label: string;
|
|
752
751
|
value: string;
|
|
752
|
+
label: 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
|
-
id: string;
|
|
779
778
|
type: string;
|
|
779
|
+
id: string;
|
|
780
|
+
label: string;
|
|
781
|
+
settings: {} & {
|
|
782
|
+
[k: string]: unknown;
|
|
783
|
+
};
|
|
780
784
|
storageId: string;
|
|
781
785
|
fieldId: string;
|
|
782
|
-
label: string;
|
|
783
786
|
helpText: string | null;
|
|
784
787
|
placeholderText: string | null;
|
|
785
788
|
validation: {
|
|
789
|
+
message: string;
|
|
786
790
|
name: string;
|
|
787
791
|
settings: {} & {
|
|
788
792
|
[k: string]: unknown;
|
|
789
793
|
};
|
|
790
|
-
message: string;
|
|
791
794
|
}[];
|
|
792
795
|
listValidation: {
|
|
796
|
+
message: string;
|
|
793
797
|
name: string;
|
|
794
798
|
settings: {} & {
|
|
795
799
|
[k: string]: unknown;
|
|
796
800
|
};
|
|
797
|
-
message: string;
|
|
798
801
|
}[];
|
|
799
802
|
multipleValues: boolean;
|
|
800
803
|
tags: string[];
|
|
801
|
-
settings: {} & {
|
|
802
|
-
[k: string]: unknown;
|
|
803
|
-
};
|
|
804
804
|
predefinedValues?: {
|
|
805
805
|
values: {
|
|
806
|
-
label: string;
|
|
807
806
|
value: string;
|
|
807
|
+
label: 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
|
-
id: string;
|
|
830
829
|
type: string;
|
|
831
|
-
|
|
830
|
+
id: string;
|
|
832
831
|
label: string;
|
|
832
|
+
fieldId: 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
|
-
label: string;
|
|
842
841
|
value: string;
|
|
842
|
+
label: 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;
|
|
9
10
|
name: string;
|
|
10
11
|
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/handler-graphql").GraphQLSchemaPlugin<import("../types").CmsContext> | import("@webiny/
|
|
3
|
+
export declare const createGraphQL: (params: CreateGraphQLParams) => (import("@webiny/plugins/types").PluginCollection | import("@webiny/handler-graphql").GraphQLSchemaPlugin<import("../types").CmsContext> | import("@webiny/api").ContextPlugin<import("@webiny/api/types").Context>)[];
|
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { CreateGraphQLParams } from "./graphql";
|
|
|
2
2
|
import { CrudParams } from "./context";
|
|
3
3
|
import { entryFieldFromStorageTransform, entryFromStorageTransform, entryToStorageTransform } from "./utils/entryStorage";
|
|
4
4
|
export declare type CreateHeadlessCmsGraphQLParams = CreateGraphQLParams;
|
|
5
|
-
export declare const createHeadlessCmsGraphQL: (params?: CreateHeadlessCmsGraphQLParams) => (import("./plugins").CmsParametersPlugin | import("@webiny/handler-graphql").GraphQLSchemaPlugin<import("./types").CmsContext> | import("@webiny/
|
|
5
|
+
export declare const createHeadlessCmsGraphQL: (params?: CreateHeadlessCmsGraphQLParams) => (import("@webiny/plugins/types").PluginCollection | import("./plugins").CmsParametersPlugin | import("@webiny/handler-graphql").GraphQLSchemaPlugin<import("./types").CmsContext> | import("@webiny/api").ContextPlugin<import("@webiny/api/types").Context> | import("./plugins").CmsRichTextRendererPlugin<string | undefined>)[];
|
|
6
6
|
export declare type ContentContextParams = CrudParams;
|
|
7
7
|
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)[])[];
|
|
8
8
|
export * from "./graphqlFields";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-headless-cms",
|
|
3
|
-
"version": "5.39.0",
|
|
3
|
+
"version": "5.39.1-beta.0",
|
|
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.39.0",
|
|
24
|
-
"@webiny/api-i18n": "5.39.0",
|
|
25
|
-
"@webiny/api-security": "5.39.0",
|
|
26
|
-
"@webiny/api-tenancy": "5.39.0",
|
|
27
|
-
"@webiny/error": "5.39.0",
|
|
28
|
-
"@webiny/handler": "5.39.0",
|
|
29
|
-
"@webiny/handler-aws": "5.39.0",
|
|
30
|
-
"@webiny/handler-db": "5.39.0",
|
|
31
|
-
"@webiny/handler-graphql": "5.39.0",
|
|
32
|
-
"@webiny/lexical-converter": "5.39.0",
|
|
33
|
-
"@webiny/plugins": "5.39.0",
|
|
34
|
-
"@webiny/pubsub": "5.39.0",
|
|
35
|
-
"@webiny/utils": "5.39.0",
|
|
36
|
-
"@webiny/validation": "5.39.0",
|
|
23
|
+
"@webiny/api": "5.39.1-beta.0",
|
|
24
|
+
"@webiny/api-i18n": "5.39.1-beta.0",
|
|
25
|
+
"@webiny/api-security": "5.39.1-beta.0",
|
|
26
|
+
"@webiny/api-tenancy": "5.39.1-beta.0",
|
|
27
|
+
"@webiny/error": "5.39.1-beta.0",
|
|
28
|
+
"@webiny/handler": "5.39.1-beta.0",
|
|
29
|
+
"@webiny/handler-aws": "5.39.1-beta.0",
|
|
30
|
+
"@webiny/handler-db": "5.39.1-beta.0",
|
|
31
|
+
"@webiny/handler-graphql": "5.39.1-beta.0",
|
|
32
|
+
"@webiny/lexical-converter": "5.39.1-beta.0",
|
|
33
|
+
"@webiny/plugins": "5.39.1-beta.0",
|
|
34
|
+
"@webiny/pubsub": "5.39.1-beta.0",
|
|
35
|
+
"@webiny/utils": "5.39.1-beta.0",
|
|
36
|
+
"@webiny/validation": "5.39.1-beta.0",
|
|
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.39.0",
|
|
54
|
-
"@webiny/cli": "5.39.0",
|
|
55
|
-
"@webiny/project-utils": "5.39.0",
|
|
53
|
+
"@webiny/api-wcp": "5.39.1-beta.0",
|
|
54
|
+
"@webiny/cli": "5.39.1-beta.0",
|
|
55
|
+
"@webiny/project-utils": "5.39.1-beta.0",
|
|
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": "4637f8570aa523ec1069e5907c3535c3dcdda5fe"
|
|
76
76
|
}
|