@webiny/api-headless-cms 5.37.2 → 5.37.3-beta.1
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/constants.js +3 -1
- package/context.js +3 -1
- package/crud/contentEntry/afterDelete.js +3 -1
- package/crud/contentEntry/beforeCreate.js +3 -1
- package/crud/contentEntry/beforeUpdate.js +3 -1
- package/crud/contentEntry/entryDataValidation.js +3 -1
- package/crud/contentEntry/markLockedFields.js +3 -1
- package/crud/contentEntry/referenceFieldsMapping.js +3 -1
- package/crud/contentEntry/searchableFields.js +3 -1
- package/crud/contentEntry.crud.js +3 -1
- package/crud/contentModel/afterCreate.js +3 -1
- package/crud/contentModel/afterCreateFrom.js +3 -1
- package/crud/contentModel/afterDelete.js +3 -1
- package/crud/contentModel/afterUpdate.js +3 -1
- package/crud/contentModel/beforeCreate.js +3 -1
- package/crud/contentModel/beforeDelete.js +3 -1
- package/crud/contentModel/beforeUpdate.js +3 -1
- package/crud/contentModel/compatibility/modelApiName.js +3 -1
- package/crud/contentModel/contentModelManagerFactory.js +3 -1
- package/crud/contentModel/createFieldStorageId.js +3 -1
- package/crud/contentModel/defaultFields.js +3 -1
- package/crud/contentModel/fields/descriptionField.js +3 -1
- package/crud/contentModel/fields/imageField.js +3 -1
- package/crud/contentModel/fields/titleField.js +3 -1
- package/crud/contentModel/validate/endingAllowed.js +3 -1
- package/crud/contentModel/validate/isModelEndingAllowed.js +3 -1
- package/crud/contentModel/validate/modelId.js +3 -1
- package/crud/contentModel/validate/pluralApiName.js +3 -1
- package/crud/contentModel/validate/singularApiName.js +3 -1
- package/crud/contentModel/validateLayout.js +3 -1
- package/crud/contentModel/validateModel.js +3 -1
- package/crud/contentModel/validateModelFields.js +3 -1
- package/crud/contentModel/validation.d.ts +56 -56
- package/crud/contentModel/validation.js +3 -1
- package/crud/contentModel.crud.js +3 -1
- package/crud/contentModelGroup/beforeCreate.js +3 -1
- package/crud/contentModelGroup/beforeDelete.js +3 -1
- package/crud/contentModelGroup/beforeUpdate.js +3 -1
- package/crud/contentModelGroup/validation.d.ts +1 -1
- package/crud/contentModelGroup/validation.js +3 -1
- package/crud/contentModelGroup.crud.js +3 -1
- package/crud/settings.crud.js +3 -1
- package/crud/system.crud.js +3 -1
- package/fieldConverters/CmsModelDefaultFieldConverterPlugin.js +3 -1
- package/fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.js +3 -1
- package/fieldConverters/CmsModelObjectFieldConverterPlugin.js +3 -1
- package/fieldConverters/index.js +3 -1
- package/graphql/buildSchemaPlugins.js +3 -1
- package/graphql/checkEndpointAccess.js +3 -1
- package/graphql/createExecutableSchema.js +3 -1
- package/graphql/createRequestBody.js +3 -1
- package/graphql/formatErrorPayload.js +3 -1
- package/graphql/generateSchema.js +3 -1
- package/graphql/getSchema.js +3 -1
- package/graphql/graphQLHandlerFactory.js +3 -1
- package/graphql/handleRequest.js +3 -1
- package/graphql/index.d.ts +1 -1
- package/graphql/index.js +3 -1
- package/graphql/schema/baseContentSchema.js +3 -1
- package/graphql/schema/baseSchema.js +3 -1
- package/graphql/schema/contentEntries.js +3 -1
- package/graphql/schema/contentModelGroups.js +3 -1
- package/graphql/schema/contentModels.js +3 -1
- package/graphql/schema/createFieldResolvers.js +3 -1
- package/graphql/schema/createFieldTypePluginRecords.js +3 -1
- package/graphql/schema/createManageResolvers.js +3 -1
- package/graphql/schema/createManageSDL.js +3 -1
- package/graphql/schema/createPreviewResolvers.js +3 -1
- package/graphql/schema/createReadResolvers.js +3 -1
- package/graphql/schema/createReadSDL.js +3 -1
- package/graphql/schema/resolvers/commonFieldResolvers.js +3 -1
- package/graphql/schema/resolvers/manage/resolveCreate.js +3 -1
- package/graphql/schema/resolvers/manage/resolveCreateFrom.js +3 -1
- package/graphql/schema/resolvers/manage/resolveDelete.js +3 -1
- package/graphql/schema/resolvers/manage/resolveDeleteMultiple.js +3 -1
- package/graphql/schema/resolvers/manage/resolveGet.js +3 -1
- package/graphql/schema/resolvers/manage/resolveGetByIds.js +3 -1
- package/graphql/schema/resolvers/manage/resolveGetRevisions.js +3 -1
- package/graphql/schema/resolvers/manage/resolveGetUniqueFieldValues.js +3 -1
- package/graphql/schema/resolvers/manage/resolveList.js +3 -1
- package/graphql/schema/resolvers/manage/resolveMove.js +3 -1
- package/graphql/schema/resolvers/manage/resolvePublish.js +3 -1
- package/graphql/schema/resolvers/manage/resolveRepublish.js +3 -1
- package/graphql/schema/resolvers/manage/resolveUnpublish.js +3 -1
- package/graphql/schema/resolvers/manage/resolveUpdate.js +3 -1
- package/graphql/schema/resolvers/preview/resolveGet.js +3 -1
- package/graphql/schema/resolvers/preview/resolveList.js +3 -1
- package/graphql/schema/resolvers/read/resolveGet.js +3 -1
- package/graphql/schema/resolvers/read/resolveList.js +3 -1
- package/graphql/schema/schemaPlugins.js +3 -1
- package/graphql/system.js +3 -1
- package/graphqlFields/boolean.js +3 -1
- package/graphqlFields/datetime.js +3 -1
- package/graphqlFields/dynamicZone/dynamicZoneField.js +3 -1
- package/graphqlFields/dynamicZone/dynamicZoneStorage.js +3 -1
- package/graphqlFields/dynamicZone/index.js +3 -1
- package/graphqlFields/file.js +3 -1
- package/graphqlFields/helpers.js +3 -1
- package/graphqlFields/index.js +3 -1
- package/graphqlFields/longText.js +3 -1
- package/graphqlFields/number.js +3 -1
- package/graphqlFields/object.js +3 -1
- package/graphqlFields/ref.js +3 -1
- package/graphqlFields/richText.js +3 -1
- package/graphqlFields/text.js +3 -1
- package/index.d.ts +1 -1
- package/index.js +3 -1
- package/modelManager/DefaultCmsModelManager.js +3 -1
- package/modelManager/index.js +3 -1
- package/package.json +18 -18
- package/parameters/context.js +3 -1
- package/parameters/header.js +3 -1
- package/parameters/index.js +3 -1
- package/parameters/manual.js +3 -1
- package/parameters/path.js +3 -1
- package/plugins/CmsGraphQLSchemaPlugin.js +3 -1
- package/plugins/CmsGraphQLSchemaSorterPlugin.js +3 -1
- package/plugins/CmsGroupPlugin.js +3 -1
- package/plugins/CmsModelFieldConverterPlugin.js +3 -1
- package/plugins/CmsModelPlugin.js +3 -1
- package/plugins/CmsParametersPlugin.js +3 -1
- package/plugins/StorageOperationsCmsModelPlugin.js +3 -1
- package/plugins/StorageTransformPlugin.js +3 -1
- package/plugins/index.js +3 -1
- package/storage/default.js +3 -1
- package/storage/object.js +3 -1
- package/types.js +3 -1
- package/utils/access.js +3 -1
- package/utils/converters/Converter.js +3 -1
- package/utils/converters/ConverterCollection.js +3 -1
- package/utils/converters/valueKeyStorageConverter.js +3 -1
- package/utils/createTypeFromFields.js +3 -1
- package/utils/createTypeName.js +3 -1
- package/utils/entryStorage.js +3 -1
- package/utils/filterAsync.js +3 -1
- package/utils/getBaseFieldType.js +3 -1
- package/utils/getEntryDescription.js +3 -1
- package/utils/getEntryImage.js +3 -1
- package/utils/getEntryTitle.js +3 -1
- package/utils/getSchemaFromFieldPlugins.js +3 -1
- package/utils/incrementEntryIdVersion.js +3 -1
- package/utils/permissions/EntriesPermissions.js +3 -1
- package/utils/permissions/ModelGroupsPermissions.js +3 -1
- package/utils/permissions/ModelsPermissions.js +3 -1
- package/utils/permissions/SettingsPermissions.js +3 -1
- package/utils/renderFields.js +3 -1
- package/utils/renderGetFilterFields.js +3 -1
- package/utils/renderInputFields.js +3 -1
- package/utils/renderListFilterFields.js +3 -1
- package/utils/renderSortEnum.js +3 -1
- package/utils/toSlug.js +3 -1
- package/validators/dateGte.js +3 -1
- package/validators/dateLte.js +3 -1
- package/validators/dynamicZone.js +3 -1
- package/validators/gte.js +3 -1
- package/validators/in.js +3 -1
- package/validators/index.js +3 -1
- package/validators/lte.js +3 -1
- package/validators/maxLength.js +3 -1
- package/validators/minLength.js +3 -1
- package/validators/pattern.js +3 -1
- package/validators/patternPlugins/email.js +3 -1
- package/validators/patternPlugins/index.js +3 -1
- package/validators/patternPlugins/lowerCase.js +3 -1
- package/validators/patternPlugins/lowerCaseSpace.js +3 -1
- package/validators/patternPlugins/upperCase.js +3 -1
- package/validators/patternPlugins/upperCaseSpace.js +3 -1
- package/validators/patternPlugins/url.js +3 -1
- package/validators/required.js +3 -1
- package/validators/timeGte.js +3 -1
- package/validators/timeLte.js +3 -1
- package/validators/unique.js +3 -1
|
@@ -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
|
}>>>;
|
|
@@ -60,20 +60,20 @@ export declare const createModelCreateValidation: () => zod.ZodObject<{
|
|
|
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
62
|
name: string;
|
|
63
|
+
message: 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
72
|
name: string;
|
|
73
|
+
message: 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;
|
|
@@ -85,20 +85,20 @@ export declare const createModelCreateValidation: () => zod.ZodObject<{
|
|
|
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
87
|
name: string;
|
|
88
|
+
message: 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
97
|
name: string;
|
|
98
|
+
message: 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,8 +106,11 @@ 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
|
+
settings: {} & {
|
|
112
|
+
[k: string]: unknown;
|
|
113
|
+
};
|
|
111
114
|
storageId: string;
|
|
112
115
|
fieldId: string;
|
|
113
116
|
label: string;
|
|
@@ -115,27 +118,24 @@ export declare const createModelCreateValidation: () => zod.ZodObject<{
|
|
|
115
118
|
placeholderText: string | null;
|
|
116
119
|
validation: {
|
|
117
120
|
name: string;
|
|
121
|
+
message: string;
|
|
118
122
|
settings: {} & {
|
|
119
123
|
[k: string]: unknown;
|
|
120
124
|
};
|
|
121
|
-
message: string;
|
|
122
125
|
}[];
|
|
123
126
|
listValidation: {
|
|
124
127
|
name: string;
|
|
128
|
+
message: 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,8 +144,8 @@ export declare const createModelCreateValidation: () => zod.ZodObject<{
|
|
|
144
144
|
name: string;
|
|
145
145
|
} | undefined;
|
|
146
146
|
}, {
|
|
147
|
-
id: string;
|
|
148
147
|
type: string;
|
|
148
|
+
id: string;
|
|
149
149
|
fieldId: string;
|
|
150
150
|
label: string;
|
|
151
151
|
storageId?: string | 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;
|
|
@@ -183,10 +183,14 @@ export declare const createModelCreateValidation: () => zod.ZodObject<{
|
|
|
183
183
|
imageFieldId: zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodString>>>;
|
|
184
184
|
defaultFields: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
|
|
185
185
|
}, "strip", zod.ZodTypeAny, {
|
|
186
|
+
group: string;
|
|
186
187
|
name: string;
|
|
187
188
|
fields: {
|
|
188
|
-
id: string;
|
|
189
189
|
type: string;
|
|
190
|
+
id: string;
|
|
191
|
+
settings: {} & {
|
|
192
|
+
[k: string]: unknown;
|
|
193
|
+
};
|
|
190
194
|
storageId: string;
|
|
191
195
|
fieldId: string;
|
|
192
196
|
label: string;
|
|
@@ -194,27 +198,24 @@ export declare const createModelCreateValidation: () => zod.ZodObject<{
|
|
|
194
198
|
placeholderText: string | null;
|
|
195
199
|
validation: {
|
|
196
200
|
name: string;
|
|
201
|
+
message: string;
|
|
197
202
|
settings: {} & {
|
|
198
203
|
[k: string]: unknown;
|
|
199
204
|
};
|
|
200
|
-
message: string;
|
|
201
205
|
}[];
|
|
202
206
|
listValidation: {
|
|
203
207
|
name: string;
|
|
208
|
+
message: 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;
|
|
@@ -236,16 +236,16 @@ export declare const createModelCreateValidation: () => zod.ZodObject<{
|
|
|
236
236
|
imageFieldId?: string | null | undefined;
|
|
237
237
|
defaultFields?: boolean | null | undefined;
|
|
238
238
|
}, {
|
|
239
|
+
group: string;
|
|
239
240
|
name: 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;
|
|
248
|
+
id: string;
|
|
249
249
|
fieldId: string;
|
|
250
250
|
label: string;
|
|
251
251
|
storageId?: string | 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;
|
|
@@ -293,19 +293,19 @@ export declare const createModelCreateFromValidation: () => zod.ZodObject<{
|
|
|
293
293
|
icon: zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodString>>>;
|
|
294
294
|
locale: zod.ZodOptional<zod.ZodString>;
|
|
295
295
|
}, "strip", zod.ZodTypeAny, {
|
|
296
|
+
group: string;
|
|
296
297
|
name: string;
|
|
297
298
|
singularApiName: string;
|
|
298
299
|
pluralApiName: string;
|
|
299
|
-
group: string;
|
|
300
300
|
modelId?: string | undefined;
|
|
301
301
|
description?: string | null | undefined;
|
|
302
302
|
icon?: string | null | undefined;
|
|
303
303
|
locale?: string | undefined;
|
|
304
304
|
}, {
|
|
305
|
+
group: string;
|
|
305
306
|
name: string;
|
|
306
307
|
singularApiName: string;
|
|
307
308
|
pluralApiName: string;
|
|
308
|
-
group: string;
|
|
309
309
|
modelId?: string | undefined;
|
|
310
310
|
description?: string | null | undefined;
|
|
311
311
|
icon?: string | null | undefined;
|
|
@@ -335,26 +335,26 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
335
335
|
label: zod.ZodString;
|
|
336
336
|
selected: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
|
|
337
337
|
}, "strip", zod.ZodTypeAny, {
|
|
338
|
-
label: string;
|
|
339
338
|
value: string;
|
|
339
|
+
label: string;
|
|
340
340
|
selected: boolean;
|
|
341
341
|
}, {
|
|
342
|
-
label: string;
|
|
343
342
|
value: string;
|
|
343
|
+
label: string;
|
|
344
344
|
selected?: boolean | undefined;
|
|
345
345
|
}>, "many">>;
|
|
346
346
|
}, "strip", zod.ZodTypeAny, {
|
|
347
347
|
values: {
|
|
348
|
-
label: string;
|
|
349
348
|
value: string;
|
|
349
|
+
label: string;
|
|
350
350
|
selected: boolean;
|
|
351
351
|
}[];
|
|
352
352
|
enabled: boolean;
|
|
353
353
|
}, {
|
|
354
354
|
enabled: boolean;
|
|
355
355
|
values?: {
|
|
356
|
-
label: string;
|
|
357
356
|
value: string;
|
|
357
|
+
label: string;
|
|
358
358
|
selected?: boolean | undefined;
|
|
359
359
|
}[] | undefined;
|
|
360
360
|
}>>>;
|
|
@@ -371,20 +371,20 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
371
371
|
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>>;
|
|
372
372
|
}, "strip", zod.ZodTypeAny, {
|
|
373
373
|
name: string;
|
|
374
|
+
message: string;
|
|
374
375
|
settings: {} & {
|
|
375
376
|
[k: string]: unknown;
|
|
376
377
|
};
|
|
377
|
-
message: string;
|
|
378
378
|
}, {
|
|
379
379
|
name: string;
|
|
380
380
|
message?: string | undefined;
|
|
381
381
|
settings?: zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
382
382
|
}>, "many">>>>>, {
|
|
383
383
|
name: string;
|
|
384
|
+
message: string;
|
|
384
385
|
settings: {} & {
|
|
385
386
|
[k: string]: unknown;
|
|
386
387
|
};
|
|
387
|
-
message: string;
|
|
388
388
|
}[], {
|
|
389
389
|
name: string;
|
|
390
390
|
message?: string | undefined;
|
|
@@ -396,20 +396,20 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
396
396
|
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>>;
|
|
397
397
|
}, "strip", zod.ZodTypeAny, {
|
|
398
398
|
name: string;
|
|
399
|
+
message: string;
|
|
399
400
|
settings: {} & {
|
|
400
401
|
[k: string]: unknown;
|
|
401
402
|
};
|
|
402
|
-
message: string;
|
|
403
403
|
}, {
|
|
404
404
|
name: string;
|
|
405
405
|
message?: string | undefined;
|
|
406
406
|
settings?: zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
407
407
|
}>, "many">>>>>, {
|
|
408
408
|
name: string;
|
|
409
|
+
message: string;
|
|
409
410
|
settings: {} & {
|
|
410
411
|
[k: string]: unknown;
|
|
411
412
|
};
|
|
412
|
-
message: string;
|
|
413
413
|
}[], {
|
|
414
414
|
name: string;
|
|
415
415
|
message?: string | undefined;
|
|
@@ -417,8 +417,11 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
417
417
|
}[] | null | undefined>;
|
|
418
418
|
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>>;
|
|
419
419
|
}, "strip", zod.ZodTypeAny, {
|
|
420
|
-
id: string;
|
|
421
420
|
type: string;
|
|
421
|
+
id: string;
|
|
422
|
+
settings: {} & {
|
|
423
|
+
[k: string]: unknown;
|
|
424
|
+
};
|
|
422
425
|
storageId: string;
|
|
423
426
|
fieldId: string;
|
|
424
427
|
label: string;
|
|
@@ -426,27 +429,24 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
426
429
|
placeholderText: string | null;
|
|
427
430
|
validation: {
|
|
428
431
|
name: string;
|
|
432
|
+
message: string;
|
|
429
433
|
settings: {} & {
|
|
430
434
|
[k: string]: unknown;
|
|
431
435
|
};
|
|
432
|
-
message: string;
|
|
433
436
|
}[];
|
|
434
437
|
listValidation: {
|
|
435
438
|
name: string;
|
|
439
|
+
message: string;
|
|
436
440
|
settings: {} & {
|
|
437
441
|
[k: string]: unknown;
|
|
438
442
|
};
|
|
439
|
-
message: string;
|
|
440
443
|
}[];
|
|
441
444
|
multipleValues: boolean;
|
|
442
445
|
tags: string[];
|
|
443
|
-
settings: {} & {
|
|
444
|
-
[k: string]: unknown;
|
|
445
|
-
};
|
|
446
446
|
predefinedValues?: {
|
|
447
447
|
values: {
|
|
448
|
-
label: string;
|
|
449
448
|
value: string;
|
|
449
|
+
label: string;
|
|
450
450
|
selected: boolean;
|
|
451
451
|
}[];
|
|
452
452
|
enabled: boolean;
|
|
@@ -455,8 +455,8 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
455
455
|
name: string;
|
|
456
456
|
} | undefined;
|
|
457
457
|
}, {
|
|
458
|
-
id: string;
|
|
459
458
|
type: string;
|
|
459
|
+
id: string;
|
|
460
460
|
fieldId: string;
|
|
461
461
|
label: string;
|
|
462
462
|
storageId?: string | undefined;
|
|
@@ -467,8 +467,8 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
467
467
|
predefinedValues?: {
|
|
468
468
|
enabled: boolean;
|
|
469
469
|
values?: {
|
|
470
|
-
label: string;
|
|
471
470
|
value: string;
|
|
471
|
+
label: string;
|
|
472
472
|
selected?: boolean | undefined;
|
|
473
473
|
}[] | undefined;
|
|
474
474
|
} | undefined;
|
|
@@ -494,8 +494,11 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
494
494
|
tags: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
495
495
|
}, "strip", zod.ZodTypeAny, {
|
|
496
496
|
fields: {
|
|
497
|
-
id: string;
|
|
498
497
|
type: string;
|
|
498
|
+
id: string;
|
|
499
|
+
settings: {} & {
|
|
500
|
+
[k: string]: unknown;
|
|
501
|
+
};
|
|
499
502
|
storageId: string;
|
|
500
503
|
fieldId: string;
|
|
501
504
|
label: string;
|
|
@@ -503,27 +506,24 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
503
506
|
placeholderText: string | null;
|
|
504
507
|
validation: {
|
|
505
508
|
name: string;
|
|
509
|
+
message: string;
|
|
506
510
|
settings: {} & {
|
|
507
511
|
[k: string]: unknown;
|
|
508
512
|
};
|
|
509
|
-
message: string;
|
|
510
513
|
}[];
|
|
511
514
|
listValidation: {
|
|
512
515
|
name: string;
|
|
516
|
+
message: string;
|
|
513
517
|
settings: {} & {
|
|
514
518
|
[k: string]: unknown;
|
|
515
519
|
};
|
|
516
|
-
message: string;
|
|
517
520
|
}[];
|
|
518
521
|
multipleValues: boolean;
|
|
519
522
|
tags: string[];
|
|
520
|
-
settings: {} & {
|
|
521
|
-
[k: string]: unknown;
|
|
522
|
-
};
|
|
523
523
|
predefinedValues?: {
|
|
524
524
|
values: {
|
|
525
|
-
label: string;
|
|
526
525
|
value: string;
|
|
526
|
+
label: string;
|
|
527
527
|
selected: boolean;
|
|
528
528
|
}[];
|
|
529
529
|
enabled: boolean;
|
|
@@ -545,8 +545,8 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
545
545
|
tags?: string[] | undefined;
|
|
546
546
|
}, {
|
|
547
547
|
fields: {
|
|
548
|
-
id: string;
|
|
549
548
|
type: string;
|
|
549
|
+
id: string;
|
|
550
550
|
fieldId: string;
|
|
551
551
|
label: string;
|
|
552
552
|
storageId?: string | undefined;
|
|
@@ -557,8 +557,8 @@ export declare const createModelUpdateValidation: () => zod.ZodObject<{
|
|
|
557
557
|
predefinedValues?: {
|
|
558
558
|
enabled: boolean;
|
|
559
559
|
values?: {
|
|
560
|
-
label: string;
|
|
561
560
|
value: string;
|
|
561
|
+
label: string;
|
|
562
562
|
selected?: boolean | undefined;
|
|
563
563
|
}[] | undefined;
|
|
564
564
|
} | undefined;
|
|
@@ -142,4 +142,6 @@ const createModelUpdateValidation = () => {
|
|
|
142
142
|
tags: _zod.default.array(shortString).optional()
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
|
-
exports.createModelUpdateValidation = createModelUpdateValidation;
|
|
145
|
+
exports.createModelUpdateValidation = createModelUpdateValidation;
|
|
146
|
+
|
|
147
|
+
//# sourceMappingURL=validation.js.map
|
|
@@ -20,4 +20,6 @@ const assignBeforeGroupUpdate = params => {
|
|
|
20
20
|
throw new Error(`Cms Groups defined via plugins cannot be updated.`);
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
|
-
exports.assignBeforeGroupUpdate = assignBeforeGroupUpdate;
|
|
23
|
+
exports.assignBeforeGroupUpdate = assignBeforeGroupUpdate;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=beforeUpdate.js.map
|
|
@@ -5,9 +5,9 @@ export declare const createGroupCreateValidation: () => zod.ZodObject<{
|
|
|
5
5
|
description: zod.ZodEffects<zod.ZodOptional<zod.ZodString>, string, string | undefined>;
|
|
6
6
|
icon: zod.ZodString;
|
|
7
7
|
}, "strip", zod.ZodTypeAny, {
|
|
8
|
+
description: string;
|
|
8
9
|
name: string;
|
|
9
10
|
slug: string;
|
|
10
|
-
description: string;
|
|
11
11
|
icon: string;
|
|
12
12
|
}, {
|
|
13
13
|
name: string;
|
|
@@ -31,4 +31,6 @@ const createGroupUpdateValidation = () => {
|
|
|
31
31
|
icon: icon.optional()
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
|
-
exports.createGroupUpdateValidation = createGroupUpdateValidation;
|
|
34
|
+
exports.createGroupUpdateValidation = createGroupUpdateValidation;
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=validation.js.map
|
package/crud/settings.crud.js
CHANGED
package/crud/system.crud.js
CHANGED
|
@@ -50,4 +50,6 @@ class CmsModelDefaultFieldConverterPlugin extends _CmsModelFieldConverterPlugin.
|
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
exports.CmsModelDefaultFieldConverterPlugin = CmsModelDefaultFieldConverterPlugin;
|
|
53
|
+
exports.CmsModelDefaultFieldConverterPlugin = CmsModelDefaultFieldConverterPlugin;
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=CmsModelDefaultFieldConverterPlugin.js.map
|
|
@@ -200,4 +200,6 @@ class CmsModelDynamicZoneFieldConverterPlugin extends _CmsModelFieldConverterPlu
|
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
exports.CmsModelDynamicZoneFieldConverterPlugin = CmsModelDynamicZoneFieldConverterPlugin;
|
|
203
|
+
exports.CmsModelDynamicZoneFieldConverterPlugin = CmsModelDynamicZoneFieldConverterPlugin;
|
|
204
|
+
|
|
205
|
+
//# sourceMappingURL=CmsModelDynamicZoneFieldConverterPlugin.js.map
|
|
@@ -248,4 +248,6 @@ class CmsModelObjectFieldConverterPlugin extends _CmsModelFieldConverterPlugin.C
|
|
|
248
248
|
}, {});
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
|
-
exports.CmsModelObjectFieldConverterPlugin = CmsModelObjectFieldConverterPlugin;
|
|
251
|
+
exports.CmsModelObjectFieldConverterPlugin = CmsModelObjectFieldConverterPlugin;
|
|
252
|
+
|
|
253
|
+
//# sourceMappingURL=CmsModelObjectFieldConverterPlugin.js.map
|
package/fieldConverters/index.js
CHANGED
|
@@ -10,4 +10,6 @@ var _CmsModelDynamicZoneFieldConverterPlugin = require("./CmsModelDynamicZoneFie
|
|
|
10
10
|
const createFieldConverters = () => {
|
|
11
11
|
return [new _CmsModelObjectFieldConverterPlugin.CmsModelObjectFieldConverterPlugin(), new _CmsModelDynamicZoneFieldConverterPlugin.CmsModelDynamicZoneFieldConverterPlugin(), new _CmsModelDefaultFieldConverterPlugin.CmsModelDefaultFieldConverterPlugin()];
|
|
12
12
|
};
|
|
13
|
-
exports.createFieldConverters = createFieldConverters;
|
|
13
|
+
exports.createFieldConverters = createFieldConverters;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -20,4 +20,6 @@ const buildSchemaPlugins = async params => {
|
|
|
20
20
|
// Dynamic schema
|
|
21
21
|
...(await (0, _schemaPlugins.generateSchemaPlugins)(params))].filter(Boolean);
|
|
22
22
|
};
|
|
23
|
-
exports.buildSchemaPlugins = buildSchemaPlugins;
|
|
23
|
+
exports.buildSchemaPlugins = buildSchemaPlugins;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=buildSchemaPlugins.js.map
|
package/graphql/getSchema.js
CHANGED
package/graphql/handleRequest.js
CHANGED
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>
|
|
3
|
+
export declare const createGraphQL: (params: CreateGraphQLParams) => (import("@webiny/plugins/types").PluginCollection | import("@webiny/handler-graphql").GraphQLSchemaPlugin<import("../types").CmsContext>)[];
|
package/graphql/index.js
CHANGED
|
@@ -10,4 +10,6 @@ var _baseSchema = require("./schema/baseSchema");
|
|
|
10
10
|
const createGraphQL = params => {
|
|
11
11
|
return [...(0, _baseSchema.createBaseSchema)(), (0, _system.createSystemSchemaPlugin)(), (0, _graphQLHandlerFactory.graphQLHandlerFactory)(params)];
|
|
12
12
|
};
|
|
13
|
-
exports.createGraphQL = createGraphQL;
|
|
13
|
+
exports.createGraphQL = createGraphQL;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=index.js.map
|