@webiny/api-headless-cms 5.39.0-beta.0 → 5.39.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/constants.d.ts +31 -0
- package/constants.js +48 -1
- package/constants.js.map +1 -1
- package/context.js +40 -34
- package/context.js.map +1 -1
- package/crud/contentEntry/entryDataFactories/createEntryData.d.ts +20 -0
- package/crud/contentEntry/entryDataFactories/createEntryData.js +228 -0
- package/crud/contentEntry/entryDataFactories/createEntryData.js.map +1 -0
- package/crud/contentEntry/entryDataFactories/createEntryRevisionFromData.d.ts +21 -0
- package/crud/contentEntry/entryDataFactories/createEntryRevisionFromData.js +114 -0
- package/crud/contentEntry/entryDataFactories/createEntryRevisionFromData.js.map +1 -0
- package/crud/contentEntry/entryDataFactories/createPublishEntryData.d.ts +13 -0
- package/crud/contentEntry/entryDataFactories/createPublishEntryData.js +61 -0
- package/crud/contentEntry/entryDataFactories/createPublishEntryData.js.map +1 -0
- package/crud/contentEntry/entryDataFactories/createRepublishEntryData.d.ts +12 -0
- package/crud/contentEntry/entryDataFactories/createRepublishEntryData.js +57 -0
- package/crud/contentEntry/entryDataFactories/createRepublishEntryData.js.map +1 -0
- package/crud/contentEntry/entryDataFactories/createUnpublishEntryData.d.ts +12 -0
- package/crud/contentEntry/entryDataFactories/createUnpublishEntryData.js +38 -0
- package/crud/contentEntry/entryDataFactories/createUnpublishEntryData.js.map +1 -0
- package/crud/contentEntry/entryDataFactories/createUpdateEntryData.d.ts +20 -0
- package/crud/contentEntry/entryDataFactories/createUpdateEntryData.js +122 -0
- package/crud/contentEntry/entryDataFactories/createUpdateEntryData.js.map +1 -0
- package/crud/contentEntry/entryDataFactories/index.d.ts +8 -0
- package/crud/contentEntry/entryDataFactories/index.js +95 -0
- package/crud/contentEntry/entryDataFactories/index.js.map +1 -0
- package/crud/contentEntry/entryDataFactories/mapAndCleanUpdatedInputData.d.ts +5 -0
- package/crud/contentEntry/entryDataFactories/mapAndCleanUpdatedInputData.js +36 -0
- package/crud/contentEntry/entryDataFactories/mapAndCleanUpdatedInputData.js.map +1 -0
- package/crud/contentEntry/entryDataFactories/statuses.d.ts +4 -0
- package/crud/contentEntry/entryDataFactories/statuses.js +15 -0
- package/crud/contentEntry/entryDataFactories/statuses.js.map +1 -0
- package/crud/contentEntry/entryDataValidation.js +29 -24
- package/crud/contentEntry/entryDataValidation.js.map +1 -1
- package/crud/contentEntry/markLockedFields.js +14 -9
- package/crud/contentEntry/markLockedFields.js.map +1 -1
- package/crud/contentEntry/referenceFieldsMapping.js +10 -12
- package/crud/contentEntry/referenceFieldsMapping.js.map +1 -1
- package/crud/contentEntry/searchableFields.js +2 -3
- package/crud/contentEntry/searchableFields.js.map +1 -1
- package/crud/contentEntry.crud.d.ts +1 -4
- package/crud/contentEntry.crud.js +140 -383
- package/crud/contentEntry.crud.js.map +1 -1
- package/crud/contentModel/fields/descriptionField.js +1 -1
- package/crud/contentModel/fields/descriptionField.js.map +1 -1
- package/crud/contentModel/fields/imageField.js +3 -7
- package/crud/contentModel/fields/imageField.js.map +1 -1
- package/crud/contentModel/fields/titleField.js +1 -1
- package/crud/contentModel/fields/titleField.js.map +1 -1
- package/crud/contentModel/listModelsFromDatabase.js +3 -4
- package/crud/contentModel/listModelsFromDatabase.js.map +1 -1
- package/crud/contentModel/validateModelFields.js +4 -5
- package/crud/contentModel/validateModelFields.js.map +1 -1
- package/crud/contentModel/validation.d.ts +96 -96
- package/crud/contentModel.crud.js +28 -26
- package/crud/contentModel.crud.js.map +1 -1
- package/crud/contentModelGroup/validation.d.ts +1 -1
- package/crud/contentModelGroup.crud.js +18 -15
- package/crud/contentModelGroup.crud.js.map +1 -1
- package/crud/system.crud.js +4 -4
- package/crud/system.crud.js.map +1 -1
- package/export/crud/exporting.js +2 -3
- package/export/crud/exporting.js.map +1 -1
- package/export/crud/importing.js +3 -3
- package/export/crud/importing.js.map +1 -1
- package/export/crud/imports/importData.js +30 -3
- package/export/crud/imports/importData.js.map +1 -1
- package/export/crud/imports/importGroups.js +15 -10
- package/export/crud/imports/importGroups.js.map +1 -1
- package/export/crud/imports/importModels.js +14 -12
- package/export/crud/imports/importModels.js.map +1 -1
- package/export/crud/imports/validateGroups.js +13 -7
- package/export/crud/imports/validateGroups.js.map +1 -1
- package/export/crud/imports/validateInput.js +15 -9
- package/export/crud/imports/validateInput.js.map +1 -1
- package/export/crud/imports/validateModels.d.ts +4 -1
- package/export/crud/imports/validateModels.js +24 -25
- package/export/crud/imports/validateModels.js.map +1 -1
- package/export/types.d.ts +2 -0
- package/export/types.js.map +1 -1
- package/fieldConverters/CmsModelDefaultFieldConverterPlugin.js +1 -6
- package/fieldConverters/CmsModelDefaultFieldConverterPlugin.js.map +1 -1
- package/fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.js +2 -7
- package/fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.js.map +1 -1
- package/fieldConverters/CmsModelObjectFieldConverterPlugin.js +44 -37
- package/fieldConverters/CmsModelObjectFieldConverterPlugin.js.map +1 -1
- package/graphql/getSchema.js +15 -9
- package/graphql/getSchema.js.map +1 -1
- package/graphql/index.d.ts +1 -1
- package/graphql/schema/baseContentSchema.js +6 -7
- package/graphql/schema/baseContentSchema.js.map +1 -1
- package/graphql/schema/baseSchema.js +1 -8
- package/graphql/schema/baseSchema.js.map +1 -1
- package/graphql/schema/contentEntries.js +44 -13
- package/graphql/schema/contentEntries.js.map +1 -1
- package/graphql/schema/contentModelGroups.js +1 -1
- package/graphql/schema/contentModelGroups.js.map +1 -1
- package/graphql/schema/contentModels.js +5 -5
- package/graphql/schema/contentModels.js.map +1 -1
- package/graphql/schema/createFieldResolvers.js +11 -11
- package/graphql/schema/createFieldResolvers.js.map +1 -1
- package/graphql/schema/createManageResolvers.js +6 -9
- package/graphql/schema/createManageResolvers.js.map +1 -1
- package/graphql/schema/createManageSDL.js +30 -24
- package/graphql/schema/createManageSDL.js.map +1 -1
- package/graphql/schema/createPreviewResolvers.js +4 -5
- package/graphql/schema/createPreviewResolvers.js.map +1 -1
- package/graphql/schema/createReadResolvers.js +4 -5
- package/graphql/schema/createReadResolvers.js.map +1 -1
- package/graphql/schema/createReadSDL.js +9 -4
- package/graphql/schema/createReadSDL.js.map +1 -1
- package/graphql/schema/resolvers/manage/resolveDelete.js +1 -1
- package/graphql/schema/resolvers/manage/resolveDelete.js.map +1 -1
- package/graphql/schema/resolvers/manage/resolveDeleteMultiple.js +1 -1
- package/graphql/schema/resolvers/manage/resolveDeleteMultiple.js.map +1 -1
- package/graphql/schema/resolvers/manage/resolveGet.js +9 -4
- package/graphql/schema/resolvers/manage/resolveGet.js.map +1 -1
- package/graphql/schema/resolvers/manage/resolvePublish.d.ts +1 -2
- package/graphql/schema/resolvers/manage/resolvePublish.js +1 -1
- package/graphql/schema/resolvers/manage/resolvePublish.js.map +1 -1
- package/graphql/schema/resolvers/preview/resolveGet.js +3 -4
- package/graphql/schema/resolvers/preview/resolveGet.js.map +1 -1
- package/graphql/schema/resolvers/read/resolveGet.js +3 -4
- package/graphql/schema/resolvers/read/resolveGet.js.map +1 -1
- package/graphqlFields/datetime.js +1 -2
- package/graphqlFields/datetime.js.map +1 -1
- package/graphqlFields/dynamicZone/dynamicZoneField.js +13 -13
- package/graphqlFields/dynamicZone/dynamicZoneField.js.map +1 -1
- package/graphqlFields/dynamicZone/dynamicZoneStorage.js +6 -6
- package/graphqlFields/dynamicZone/dynamicZoneStorage.js.map +1 -1
- package/graphqlFields/index.js +2 -1
- package/graphqlFields/index.js.map +1 -1
- package/graphqlFields/json.d.ts +2 -0
- package/graphqlFields/json.js +49 -0
- package/graphqlFields/json.js.map +1 -0
- package/graphqlFields/object.js +20 -28
- package/graphqlFields/object.js.map +1 -1
- package/graphqlFields/ref.js +24 -14
- package/graphqlFields/ref.js.map +1 -1
- package/graphqlFields/richText/RichTextPluginsProcessor.d.ts +6 -0
- package/graphqlFields/richText/RichTextPluginsProcessor.js +34 -0
- package/graphqlFields/richText/RichTextPluginsProcessor.js.map +1 -0
- package/graphqlFields/richText/richTextResolver.d.ts +7 -0
- package/graphqlFields/richText/richTextResolver.js +39 -0
- package/graphqlFields/richText/richTextResolver.js.map +1 -0
- package/graphqlFields/richText.js +8 -2
- package/graphqlFields/richText.js.map +1 -1
- package/htmlRenderer/LexicalRenderer.d.ts +5 -0
- package/htmlRenderer/LexicalRenderer.js +28 -0
- package/htmlRenderer/LexicalRenderer.js.map +1 -0
- package/htmlRenderer/createLexicalHTMLRenderer.d.ts +2 -0
- package/htmlRenderer/createLexicalHTMLRenderer.js +31 -0
- package/htmlRenderer/createLexicalHTMLRenderer.js.map +1 -0
- package/index.d.ts +1 -1
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/modelManager/DefaultCmsModelManager.js +0 -4
- package/modelManager/DefaultCmsModelManager.js.map +1 -1
- package/package.json +21 -19
- package/parameters/context.js +1 -1
- package/parameters/context.js.map +1 -1
- package/parameters/header.js +1 -2
- package/parameters/header.js.map +1 -1
- package/parameters/manual.js +6 -3
- package/parameters/manual.js.map +1 -1
- package/parameters/path.js +1 -2
- package/parameters/path.js.map +1 -1
- package/plugins/CmsGraphQLSchemaPlugin.js +3 -4
- package/plugins/CmsGraphQLSchemaPlugin.js.map +1 -1
- package/plugins/CmsGraphQLSchemaSorterPlugin.js +1 -4
- package/plugins/CmsGraphQLSchemaSorterPlugin.js.map +1 -1
- package/plugins/CmsGroupPlugin.js +4 -7
- package/plugins/CmsGroupPlugin.js.map +1 -1
- package/plugins/CmsModelFieldConverterPlugin.js +3 -4
- package/plugins/CmsModelFieldConverterPlugin.js.map +1 -1
- package/plugins/CmsModelPlugin.d.ts +6 -4
- package/plugins/CmsModelPlugin.js +52 -27
- package/plugins/CmsModelPlugin.js.map +1 -1
- package/plugins/CmsParametersPlugin.js +1 -4
- package/plugins/CmsParametersPlugin.js.map +1 -1
- package/plugins/CmsRichTextRendererPlugin.d.ts +24 -0
- package/plugins/CmsRichTextRendererPlugin.js +28 -0
- package/plugins/CmsRichTextRendererPlugin.js.map +1 -0
- package/plugins/StorageOperationsCmsModelPlugin.js +3 -6
- package/plugins/StorageOperationsCmsModelPlugin.js.map +1 -1
- package/plugins/StorageTransformPlugin.d.ts +2 -2
- package/plugins/StorageTransformPlugin.js +1 -4
- package/plugins/StorageTransformPlugin.js.map +1 -1
- package/plugins/index.d.ts +1 -0
- package/plugins/index.js +11 -0
- package/plugins/index.js.map +1 -1
- package/storage/index.d.ts +1 -0
- package/storage/index.js +15 -0
- package/storage/index.js.map +1 -0
- package/storage/json.d.ts +2 -0
- package/storage/json.js +27 -0
- package/storage/json.js.map +1 -0
- package/storage/object.js +5 -7
- package/storage/object.js.map +1 -1
- package/types.d.ts +182 -53
- package/types.js +0 -3
- package/types.js.map +1 -1
- package/utils/access.d.ts +0 -1
- package/utils/access.js +1 -10
- package/utils/access.js.map +1 -1
- package/utils/caching/Cache.js +3 -5
- package/utils/caching/Cache.js.map +1 -1
- package/utils/caching/CacheKey.js +0 -3
- package/utils/caching/CacheKey.js.map +1 -1
- package/utils/converters/Converter.js +1 -4
- package/utils/converters/Converter.js.map +1 -1
- package/utils/converters/ConverterCollection.js +10 -6
- package/utils/converters/ConverterCollection.js.map +1 -1
- package/utils/converters/valueKeyStorageConverter.js +3 -3
- package/utils/converters/valueKeyStorageConverter.js.map +1 -1
- package/utils/date.d.ts +2 -2
- package/utils/date.js +1 -1
- package/utils/date.js.map +1 -1
- package/utils/entryStorage.js +3 -3
- package/utils/entryStorage.js.map +1 -1
- package/utils/identity.d.ts +2 -0
- package/utils/identity.js +20 -0
- package/utils/identity.js.map +1 -0
- package/utils/permissions/ModelsPermissions.js +0 -3
- package/utils/permissions/ModelsPermissions.js.map +1 -1
- package/utils/renderGetFilterFields.js +2 -3
- package/utils/renderGetFilterFields.js.map +1 -1
- package/utils/renderListFilterFields.js +9 -3
- package/utils/renderListFilterFields.js.map +1 -1
- package/utils/renderSortEnum.js +2 -1
- package/utils/renderSortEnum.js.map +1 -1
- package/validators/gte.js +1 -2
- package/validators/gte.js.map +1 -1
- package/validators/in.js +1 -2
- package/validators/in.js.map +1 -1
- package/validators/lte.js +1 -2
- package/validators/lte.js.map +1 -1
- package/validators/maxLength.js +1 -2
- package/validators/maxLength.js.map +1 -1
- package/validators/minLength.js +1 -2
- package/validators/minLength.js.map +1 -1
- package/validators/pattern.js +2 -2
- package/validators/pattern.js.map +1 -1
- package/validators/timeGte.js +1 -2
- package/validators/timeGte.js.map +1 -1
- package/validators/timeLte.js +1 -2
- package/validators/timeLte.js.map +1 -1
- package/graphql/schema/resolvers/commonFieldResolvers.d.ts +0 -7
- package/graphql/schema/resolvers/commonFieldResolvers.js +0 -15
- package/graphql/schema/resolvers/commonFieldResolvers.js.map +0 -1
package/types.d.ts
CHANGED
|
@@ -141,7 +141,7 @@ export interface CmsModelFieldSettings {
|
|
|
141
141
|
*/
|
|
142
142
|
[key: string]: any;
|
|
143
143
|
}
|
|
144
|
-
export declare type CmsModelFieldType = "boolean" | "datetime" | "file" | "long-text" | "number" | "object" | "ref" | "rich-text" | "text" | "dynamicZone" | string;
|
|
144
|
+
export declare type CmsModelFieldType = "boolean" | "datetime" | "file" | "long-text" | "number" | "json" | "object" | "ref" | "rich-text" | "text" | "dynamicZone" | string;
|
|
145
145
|
/**
|
|
146
146
|
* A definition for content model field. This type exists on the app side as well.
|
|
147
147
|
*
|
|
@@ -258,9 +258,6 @@ export interface CmsModelDynamicZoneField extends CmsModelField {
|
|
|
258
258
|
export interface CmsModelFieldWithParent extends CmsModelField {
|
|
259
259
|
parent?: CmsModelFieldWithParent | null;
|
|
260
260
|
}
|
|
261
|
-
export interface CmsModelDynamicZoneFieldWithParent extends CmsModelDynamicZoneField {
|
|
262
|
-
parent?: CmsModelDynamicZoneFieldWithParent | null;
|
|
263
|
-
}
|
|
264
261
|
/**
|
|
265
262
|
* A definition for dateTime field to show possible type of the field in settings.
|
|
266
263
|
*/
|
|
@@ -584,7 +581,7 @@ export interface CmsModelFieldToGraphQLPlugin<TField extends CmsModelField = Cms
|
|
|
584
581
|
* fieldType: "myField"
|
|
585
582
|
* ```
|
|
586
583
|
*/
|
|
587
|
-
fieldType:
|
|
584
|
+
fieldType: CmsModelFieldType;
|
|
588
585
|
/**
|
|
589
586
|
* Is the field searchable via the GraphQL?
|
|
590
587
|
*
|
|
@@ -1383,27 +1380,88 @@ export interface CmsEntry<T = CmsEntryValues> {
|
|
|
1383
1380
|
*/
|
|
1384
1381
|
id: string;
|
|
1385
1382
|
/**
|
|
1386
|
-
*
|
|
1383
|
+
* Revision-level meta fields. 👇
|
|
1387
1384
|
*/
|
|
1388
|
-
createdBy: CmsIdentity;
|
|
1389
1385
|
/**
|
|
1390
|
-
*
|
|
1386
|
+
* An ISO 8601 date/time string.
|
|
1391
1387
|
*/
|
|
1392
|
-
|
|
1388
|
+
revisionCreatedOn: string;
|
|
1393
1389
|
/**
|
|
1394
|
-
*
|
|
1390
|
+
* An ISO 8601 date/time string.
|
|
1395
1391
|
*/
|
|
1396
|
-
|
|
1392
|
+
revisionSavedOn: string;
|
|
1393
|
+
/**
|
|
1394
|
+
* An ISO 8601 date/time string.
|
|
1395
|
+
*/
|
|
1396
|
+
revisionModifiedOn: string | null;
|
|
1397
|
+
/**
|
|
1398
|
+
* An ISO 8601 date/time string.
|
|
1399
|
+
*/
|
|
1400
|
+
revisionFirstPublishedOn: string | null;
|
|
1401
|
+
/**
|
|
1402
|
+
* An ISO 8601 date/time string.
|
|
1403
|
+
*/
|
|
1404
|
+
revisionLastPublishedOn: string | null;
|
|
1405
|
+
/**
|
|
1406
|
+
* Identity that last ionCreated the entry.
|
|
1407
|
+
*/
|
|
1408
|
+
revisionCreatedBy: CmsIdentity;
|
|
1409
|
+
/**
|
|
1410
|
+
* Identity that last ionSaved the entry.
|
|
1411
|
+
*/
|
|
1412
|
+
revisionSavedBy: CmsIdentity;
|
|
1413
|
+
/**
|
|
1414
|
+
* Identity that last ionModified the entry.
|
|
1415
|
+
*/
|
|
1416
|
+
revisionModifiedBy: CmsIdentity | null;
|
|
1397
1417
|
/**
|
|
1398
|
-
*
|
|
1399
|
-
|
|
1418
|
+
* Identity that first published the entry.
|
|
1419
|
+
*/
|
|
1420
|
+
revisionFirstPublishedBy: CmsIdentity | null;
|
|
1421
|
+
/**
|
|
1422
|
+
* Identity that last published the entry.
|
|
1423
|
+
*/
|
|
1424
|
+
revisionLastPublishedBy: CmsIdentity | null;
|
|
1425
|
+
/**
|
|
1426
|
+
* An ISO 8601 date/time string.
|
|
1400
1427
|
*/
|
|
1401
1428
|
createdOn: string;
|
|
1402
1429
|
/**
|
|
1403
|
-
*
|
|
1404
|
-
* Populated every time entry is saved.
|
|
1430
|
+
* An ISO 8601 date/time string.
|
|
1405
1431
|
*/
|
|
1406
1432
|
savedOn: string;
|
|
1433
|
+
/**
|
|
1434
|
+
* An ISO 8601 date/time string.
|
|
1435
|
+
*/
|
|
1436
|
+
modifiedOn: string | null;
|
|
1437
|
+
/**
|
|
1438
|
+
* An ISO 8601 date/time string.
|
|
1439
|
+
*/
|
|
1440
|
+
firstPublishedOn: string | null;
|
|
1441
|
+
/**
|
|
1442
|
+
* An ISO 8601 date/time string.
|
|
1443
|
+
*/
|
|
1444
|
+
lastPublishedOn: string | null;
|
|
1445
|
+
/**
|
|
1446
|
+
* Identity that last created the entry.
|
|
1447
|
+
*/
|
|
1448
|
+
createdBy: CmsIdentity;
|
|
1449
|
+
/**
|
|
1450
|
+
* Identity that last saved the entry.
|
|
1451
|
+
*/
|
|
1452
|
+
savedBy: CmsIdentity;
|
|
1453
|
+
/**
|
|
1454
|
+
* Identity that last modified the entry.
|
|
1455
|
+
*/
|
|
1456
|
+
modifiedBy: CmsIdentity | null;
|
|
1457
|
+
/**
|
|
1458
|
+
* Identity that first published the entry.
|
|
1459
|
+
*/
|
|
1460
|
+
firstPublishedBy: CmsIdentity | null;
|
|
1461
|
+
/**
|
|
1462
|
+
* Identity that last published the entry.
|
|
1463
|
+
*/
|
|
1464
|
+
lastPublishedBy: CmsIdentity | null;
|
|
1407
1465
|
/**
|
|
1408
1466
|
* Model ID of the definition for the entry.
|
|
1409
1467
|
* @see CmsModel
|
|
@@ -1414,11 +1472,6 @@ export interface CmsEntry<T = CmsEntryValues> {
|
|
|
1414
1472
|
* @see I18NLocale.code
|
|
1415
1473
|
*/
|
|
1416
1474
|
locale: string;
|
|
1417
|
-
/**
|
|
1418
|
-
* A string of Date.toISOString() type - if published.
|
|
1419
|
-
* Populated when entry is published.
|
|
1420
|
-
*/
|
|
1421
|
-
publishedOn?: string | null;
|
|
1422
1475
|
/**
|
|
1423
1476
|
* A revision version of the entry.
|
|
1424
1477
|
*/
|
|
@@ -1700,23 +1753,51 @@ export interface CmsEntryListWhere {
|
|
|
1700
1753
|
entryId_in?: string[];
|
|
1701
1754
|
entryId_not_in?: string[];
|
|
1702
1755
|
/**
|
|
1703
|
-
*
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1756
|
+
* Revision-level meta fields. 👇
|
|
1757
|
+
*/
|
|
1758
|
+
revisionCreatedBy?: string;
|
|
1759
|
+
revisionCreatedBy_not?: string;
|
|
1760
|
+
revisionCreatedBy_in?: string[];
|
|
1761
|
+
revisionCreatedBy_not_in?: string[];
|
|
1762
|
+
revisionModifiedBy?: string;
|
|
1763
|
+
revisionModifiedBy_not?: string;
|
|
1764
|
+
revisionModifiedBy_in?: string[];
|
|
1765
|
+
revisionModifiedBy_not_in?: string[];
|
|
1766
|
+
revisionSavedBy?: string;
|
|
1767
|
+
revisionSavedBy_not?: string;
|
|
1768
|
+
revisionSavedBy_in?: string[];
|
|
1769
|
+
revisionSavedBy_not_in?: string[];
|
|
1770
|
+
revisionFirstPublishedBy?: string;
|
|
1771
|
+
revisionFirstPublishedBy_not?: string;
|
|
1772
|
+
revisionFirstPublishedBy_in?: string[];
|
|
1773
|
+
revisionFirstPublishedBy_not_in?: string[];
|
|
1774
|
+
revisionLastPublishedBy?: string;
|
|
1775
|
+
revisionLastPublishedBy_not?: string;
|
|
1776
|
+
revisionLastPublishedBy_in?: string[];
|
|
1777
|
+
revisionLastPublishedBy_not_in?: string[];
|
|
1778
|
+
/**
|
|
1779
|
+
* Entry-level meta fields. 👇
|
|
1715
1780
|
*/
|
|
1716
1781
|
createdBy?: string;
|
|
1717
1782
|
createdBy_not?: string;
|
|
1718
1783
|
createdBy_in?: string[];
|
|
1719
1784
|
createdBy_not_in?: string[];
|
|
1785
|
+
modifiedBy?: string;
|
|
1786
|
+
modifiedBy_not?: string;
|
|
1787
|
+
modifiedBy_in?: string[];
|
|
1788
|
+
modifiedBy_not_in?: string[];
|
|
1789
|
+
savedBy?: string;
|
|
1790
|
+
savedBy_not?: string;
|
|
1791
|
+
savedBy_in?: string[];
|
|
1792
|
+
savedBy_not_in?: string[];
|
|
1793
|
+
firstPublishedBy?: string;
|
|
1794
|
+
firstPublishedBy_not?: string;
|
|
1795
|
+
firstPublishedBy_in?: string[];
|
|
1796
|
+
firstPublishedBy_not_in?: string[];
|
|
1797
|
+
lastPublishedBy?: string;
|
|
1798
|
+
lastPublishedBy_not?: string;
|
|
1799
|
+
lastPublishedBy_in?: string[];
|
|
1800
|
+
lastPublishedBy_not_in?: string[];
|
|
1720
1801
|
/**
|
|
1721
1802
|
* Version of the entry.
|
|
1722
1803
|
*
|
|
@@ -2008,12 +2089,33 @@ export interface EntryBeforeListTopicParams {
|
|
|
2008
2089
|
*/
|
|
2009
2090
|
export interface CreateCmsEntryInput {
|
|
2010
2091
|
id?: string;
|
|
2092
|
+
status?: CmsEntryStatus;
|
|
2093
|
+
/**
|
|
2094
|
+
* Entry-level meta fields. 👇
|
|
2095
|
+
*/
|
|
2011
2096
|
createdOn?: Date | string;
|
|
2097
|
+
modifiedOn?: Date | string | null;
|
|
2012
2098
|
savedOn?: Date | string;
|
|
2013
|
-
|
|
2014
|
-
createdBy?: CmsIdentity | null;
|
|
2099
|
+
createdBy?: CmsIdentity;
|
|
2015
2100
|
modifiedBy?: CmsIdentity | null;
|
|
2016
|
-
|
|
2101
|
+
savedBy?: CmsIdentity;
|
|
2102
|
+
firstPublishedOn?: Date | string;
|
|
2103
|
+
lastPublishedOn?: Date | string;
|
|
2104
|
+
firstPublishedBy?: CmsIdentity;
|
|
2105
|
+
lastPublishedBy?: CmsIdentity;
|
|
2106
|
+
/**
|
|
2107
|
+
* Revision-level meta fields. 👇
|
|
2108
|
+
*/
|
|
2109
|
+
revisionCreatedOn?: Date | string;
|
|
2110
|
+
revisionModifiedOn?: Date | string | null;
|
|
2111
|
+
revisionSavedOn?: Date | string;
|
|
2112
|
+
revisionCreatedBy?: CmsIdentity;
|
|
2113
|
+
revisionModifiedBy?: CmsIdentity | null;
|
|
2114
|
+
revisionSavedBy?: CmsIdentity;
|
|
2115
|
+
revisionFirstPublishedOn?: Date | string;
|
|
2116
|
+
revisionLastPublishedOn?: Date | string;
|
|
2117
|
+
revisionFirstPublishedBy?: CmsIdentity;
|
|
2118
|
+
revisionLastPublishedBy?: CmsIdentity;
|
|
2017
2119
|
wbyAco_location?: {
|
|
2018
2120
|
folderId?: string | null;
|
|
2019
2121
|
};
|
|
@@ -2027,12 +2129,32 @@ export interface CreateCmsEntryOptionsInput {
|
|
|
2027
2129
|
* @category CmsEntry
|
|
2028
2130
|
*/
|
|
2029
2131
|
export interface CreateFromCmsEntryInput {
|
|
2132
|
+
/**
|
|
2133
|
+
* Revision-level meta fields. 👇
|
|
2134
|
+
*/
|
|
2135
|
+
revisionCreatedOn?: Date;
|
|
2136
|
+
revisionSavedOn?: Date;
|
|
2137
|
+
revisionModifiedOn?: Date;
|
|
2138
|
+
revisionCreatedBy?: CmsIdentity;
|
|
2139
|
+
revisionModifiedBy?: CmsIdentity;
|
|
2140
|
+
revisionSavedBy?: CmsIdentity;
|
|
2141
|
+
revisionFirstPublishedOn?: Date | string;
|
|
2142
|
+
revisionLastPublishedOn?: Date | string;
|
|
2143
|
+
revisionFirstPublishedBy?: CmsIdentity;
|
|
2144
|
+
revisionLastPublishedBy?: CmsIdentity;
|
|
2145
|
+
/**
|
|
2146
|
+
* Entry-level meta fields. 👇
|
|
2147
|
+
*/
|
|
2030
2148
|
createdOn?: Date;
|
|
2031
2149
|
savedOn?: Date;
|
|
2032
|
-
|
|
2150
|
+
modifiedOn?: Date;
|
|
2033
2151
|
createdBy?: CmsIdentity;
|
|
2034
2152
|
modifiedBy?: CmsIdentity;
|
|
2035
|
-
|
|
2153
|
+
savedBy?: CmsIdentity;
|
|
2154
|
+
firstPublishedOn?: Date | string;
|
|
2155
|
+
lastPublishedOn?: Date | string;
|
|
2156
|
+
firstPublishedBy?: CmsIdentity;
|
|
2157
|
+
lastPublishedBy?: CmsIdentity;
|
|
2036
2158
|
[key: string]: any;
|
|
2037
2159
|
}
|
|
2038
2160
|
export interface CreateRevisionCmsEntryOptionsInput {
|
|
@@ -2043,12 +2165,32 @@ export interface CreateRevisionCmsEntryOptionsInput {
|
|
|
2043
2165
|
* @category CmsEntry
|
|
2044
2166
|
*/
|
|
2045
2167
|
export interface UpdateCmsEntryInput {
|
|
2168
|
+
/**
|
|
2169
|
+
* Revision-level meta fields. 👇
|
|
2170
|
+
*/
|
|
2171
|
+
revisionCreatedOn?: Date | string | null;
|
|
2172
|
+
revisionModifiedOn?: Date | string | null;
|
|
2173
|
+
revisionSavedOn?: Date | string | null;
|
|
2174
|
+
revisionFirstPublishedOn?: Date | string | null;
|
|
2175
|
+
revisionLastPublishedOn?: Date | string | null;
|
|
2176
|
+
revisionModifiedBy?: CmsIdentity | null;
|
|
2177
|
+
revisionCreatedBy?: CmsIdentity | null;
|
|
2178
|
+
revisionSavedBy?: CmsIdentity | null;
|
|
2179
|
+
revisionFirstPublishedBy?: CmsIdentity | null;
|
|
2180
|
+
revisionLastPublishedBy?: CmsIdentity | null;
|
|
2181
|
+
/**
|
|
2182
|
+
* Entry-level meta fields. 👇
|
|
2183
|
+
*/
|
|
2046
2184
|
createdOn?: Date | string | null;
|
|
2185
|
+
modifiedOn?: Date | string | null;
|
|
2047
2186
|
savedOn?: Date | string | null;
|
|
2048
|
-
|
|
2187
|
+
firstPublishedOn?: Date | string | null;
|
|
2188
|
+
lastPublishedOn?: Date | string | null;
|
|
2049
2189
|
createdBy?: CmsIdentity | null;
|
|
2050
2190
|
modifiedBy?: CmsIdentity | null;
|
|
2051
|
-
|
|
2191
|
+
savedBy?: CmsIdentity | null;
|
|
2192
|
+
firstPublishedBy?: CmsIdentity | null;
|
|
2193
|
+
lastPublishedBy?: CmsIdentity | null;
|
|
2052
2194
|
wbyAco_location?: {
|
|
2053
2195
|
folderId?: string | null;
|
|
2054
2196
|
};
|
|
@@ -2075,19 +2217,6 @@ export interface CmsDeleteEntryOptions {
|
|
|
2075
2217
|
*/
|
|
2076
2218
|
force?: boolean;
|
|
2077
2219
|
}
|
|
2078
|
-
/**
|
|
2079
|
-
* @category CmsEntry
|
|
2080
|
-
*/
|
|
2081
|
-
export interface CmsPublishEntryOptions {
|
|
2082
|
-
/**
|
|
2083
|
-
* By default, updatePublishedOn is "true". User can set it to "false" to skip the publishedOn field update.
|
|
2084
|
-
*/
|
|
2085
|
-
updatePublishedOn?: boolean;
|
|
2086
|
-
/**
|
|
2087
|
-
* By default, updateSavedOn is "true". User can set it to "false" to skip the publishedOn field update.
|
|
2088
|
-
*/
|
|
2089
|
-
updateSavedOn?: boolean;
|
|
2090
|
-
}
|
|
2091
2220
|
/**
|
|
2092
2221
|
* @category Context
|
|
2093
2222
|
* @category CmsEntry
|
|
@@ -2180,7 +2309,7 @@ export interface CmsEntryContext {
|
|
|
2180
2309
|
/**
|
|
2181
2310
|
* Publish entry.
|
|
2182
2311
|
*/
|
|
2183
|
-
publishEntry: (model: CmsModel, id: string
|
|
2312
|
+
publishEntry: (model: CmsModel, id: string) => Promise<CmsEntry>;
|
|
2184
2313
|
/**
|
|
2185
2314
|
* Unpublish entry.
|
|
2186
2315
|
*/
|