@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.
Files changed (250) hide show
  1. package/constants.d.ts +31 -0
  2. package/constants.js +48 -1
  3. package/constants.js.map +1 -1
  4. package/context.js +40 -34
  5. package/context.js.map +1 -1
  6. package/crud/contentEntry/entryDataFactories/createEntryData.d.ts +20 -0
  7. package/crud/contentEntry/entryDataFactories/createEntryData.js +228 -0
  8. package/crud/contentEntry/entryDataFactories/createEntryData.js.map +1 -0
  9. package/crud/contentEntry/entryDataFactories/createEntryRevisionFromData.d.ts +21 -0
  10. package/crud/contentEntry/entryDataFactories/createEntryRevisionFromData.js +114 -0
  11. package/crud/contentEntry/entryDataFactories/createEntryRevisionFromData.js.map +1 -0
  12. package/crud/contentEntry/entryDataFactories/createPublishEntryData.d.ts +13 -0
  13. package/crud/contentEntry/entryDataFactories/createPublishEntryData.js +61 -0
  14. package/crud/contentEntry/entryDataFactories/createPublishEntryData.js.map +1 -0
  15. package/crud/contentEntry/entryDataFactories/createRepublishEntryData.d.ts +12 -0
  16. package/crud/contentEntry/entryDataFactories/createRepublishEntryData.js +57 -0
  17. package/crud/contentEntry/entryDataFactories/createRepublishEntryData.js.map +1 -0
  18. package/crud/contentEntry/entryDataFactories/createUnpublishEntryData.d.ts +12 -0
  19. package/crud/contentEntry/entryDataFactories/createUnpublishEntryData.js +38 -0
  20. package/crud/contentEntry/entryDataFactories/createUnpublishEntryData.js.map +1 -0
  21. package/crud/contentEntry/entryDataFactories/createUpdateEntryData.d.ts +20 -0
  22. package/crud/contentEntry/entryDataFactories/createUpdateEntryData.js +122 -0
  23. package/crud/contentEntry/entryDataFactories/createUpdateEntryData.js.map +1 -0
  24. package/crud/contentEntry/entryDataFactories/index.d.ts +8 -0
  25. package/crud/contentEntry/entryDataFactories/index.js +95 -0
  26. package/crud/contentEntry/entryDataFactories/index.js.map +1 -0
  27. package/crud/contentEntry/entryDataFactories/mapAndCleanUpdatedInputData.d.ts +5 -0
  28. package/crud/contentEntry/entryDataFactories/mapAndCleanUpdatedInputData.js +36 -0
  29. package/crud/contentEntry/entryDataFactories/mapAndCleanUpdatedInputData.js.map +1 -0
  30. package/crud/contentEntry/entryDataFactories/statuses.d.ts +4 -0
  31. package/crud/contentEntry/entryDataFactories/statuses.js +15 -0
  32. package/crud/contentEntry/entryDataFactories/statuses.js.map +1 -0
  33. package/crud/contentEntry/entryDataValidation.js +29 -24
  34. package/crud/contentEntry/entryDataValidation.js.map +1 -1
  35. package/crud/contentEntry/markLockedFields.js +14 -9
  36. package/crud/contentEntry/markLockedFields.js.map +1 -1
  37. package/crud/contentEntry/referenceFieldsMapping.js +10 -12
  38. package/crud/contentEntry/referenceFieldsMapping.js.map +1 -1
  39. package/crud/contentEntry/searchableFields.js +2 -3
  40. package/crud/contentEntry/searchableFields.js.map +1 -1
  41. package/crud/contentEntry.crud.d.ts +1 -4
  42. package/crud/contentEntry.crud.js +140 -383
  43. package/crud/contentEntry.crud.js.map +1 -1
  44. package/crud/contentModel/fields/descriptionField.js +1 -1
  45. package/crud/contentModel/fields/descriptionField.js.map +1 -1
  46. package/crud/contentModel/fields/imageField.js +3 -7
  47. package/crud/contentModel/fields/imageField.js.map +1 -1
  48. package/crud/contentModel/fields/titleField.js +1 -1
  49. package/crud/contentModel/fields/titleField.js.map +1 -1
  50. package/crud/contentModel/listModelsFromDatabase.js +3 -4
  51. package/crud/contentModel/listModelsFromDatabase.js.map +1 -1
  52. package/crud/contentModel/validateModelFields.js +4 -5
  53. package/crud/contentModel/validateModelFields.js.map +1 -1
  54. package/crud/contentModel/validation.d.ts +96 -96
  55. package/crud/contentModel.crud.js +28 -26
  56. package/crud/contentModel.crud.js.map +1 -1
  57. package/crud/contentModelGroup/validation.d.ts +1 -1
  58. package/crud/contentModelGroup.crud.js +18 -15
  59. package/crud/contentModelGroup.crud.js.map +1 -1
  60. package/crud/system.crud.js +4 -4
  61. package/crud/system.crud.js.map +1 -1
  62. package/export/crud/exporting.js +2 -3
  63. package/export/crud/exporting.js.map +1 -1
  64. package/export/crud/importing.js +3 -3
  65. package/export/crud/importing.js.map +1 -1
  66. package/export/crud/imports/importData.js +30 -3
  67. package/export/crud/imports/importData.js.map +1 -1
  68. package/export/crud/imports/importGroups.js +15 -10
  69. package/export/crud/imports/importGroups.js.map +1 -1
  70. package/export/crud/imports/importModels.js +14 -12
  71. package/export/crud/imports/importModels.js.map +1 -1
  72. package/export/crud/imports/validateGroups.js +13 -7
  73. package/export/crud/imports/validateGroups.js.map +1 -1
  74. package/export/crud/imports/validateInput.js +15 -9
  75. package/export/crud/imports/validateInput.js.map +1 -1
  76. package/export/crud/imports/validateModels.d.ts +4 -1
  77. package/export/crud/imports/validateModels.js +24 -25
  78. package/export/crud/imports/validateModels.js.map +1 -1
  79. package/export/types.d.ts +2 -0
  80. package/export/types.js.map +1 -1
  81. package/fieldConverters/CmsModelDefaultFieldConverterPlugin.js +1 -6
  82. package/fieldConverters/CmsModelDefaultFieldConverterPlugin.js.map +1 -1
  83. package/fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.js +2 -7
  84. package/fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.js.map +1 -1
  85. package/fieldConverters/CmsModelObjectFieldConverterPlugin.js +44 -37
  86. package/fieldConverters/CmsModelObjectFieldConverterPlugin.js.map +1 -1
  87. package/graphql/getSchema.js +15 -9
  88. package/graphql/getSchema.js.map +1 -1
  89. package/graphql/index.d.ts +1 -1
  90. package/graphql/schema/baseContentSchema.js +6 -7
  91. package/graphql/schema/baseContentSchema.js.map +1 -1
  92. package/graphql/schema/baseSchema.js +1 -8
  93. package/graphql/schema/baseSchema.js.map +1 -1
  94. package/graphql/schema/contentEntries.js +44 -13
  95. package/graphql/schema/contentEntries.js.map +1 -1
  96. package/graphql/schema/contentModelGroups.js +1 -1
  97. package/graphql/schema/contentModelGroups.js.map +1 -1
  98. package/graphql/schema/contentModels.js +5 -5
  99. package/graphql/schema/contentModels.js.map +1 -1
  100. package/graphql/schema/createFieldResolvers.js +11 -11
  101. package/graphql/schema/createFieldResolvers.js.map +1 -1
  102. package/graphql/schema/createManageResolvers.js +6 -9
  103. package/graphql/schema/createManageResolvers.js.map +1 -1
  104. package/graphql/schema/createManageSDL.js +30 -24
  105. package/graphql/schema/createManageSDL.js.map +1 -1
  106. package/graphql/schema/createPreviewResolvers.js +4 -5
  107. package/graphql/schema/createPreviewResolvers.js.map +1 -1
  108. package/graphql/schema/createReadResolvers.js +4 -5
  109. package/graphql/schema/createReadResolvers.js.map +1 -1
  110. package/graphql/schema/createReadSDL.js +9 -4
  111. package/graphql/schema/createReadSDL.js.map +1 -1
  112. package/graphql/schema/resolvers/manage/resolveDelete.js +1 -1
  113. package/graphql/schema/resolvers/manage/resolveDelete.js.map +1 -1
  114. package/graphql/schema/resolvers/manage/resolveDeleteMultiple.js +1 -1
  115. package/graphql/schema/resolvers/manage/resolveDeleteMultiple.js.map +1 -1
  116. package/graphql/schema/resolvers/manage/resolveGet.js +9 -4
  117. package/graphql/schema/resolvers/manage/resolveGet.js.map +1 -1
  118. package/graphql/schema/resolvers/manage/resolvePublish.d.ts +1 -2
  119. package/graphql/schema/resolvers/manage/resolvePublish.js +1 -1
  120. package/graphql/schema/resolvers/manage/resolvePublish.js.map +1 -1
  121. package/graphql/schema/resolvers/preview/resolveGet.js +3 -4
  122. package/graphql/schema/resolvers/preview/resolveGet.js.map +1 -1
  123. package/graphql/schema/resolvers/read/resolveGet.js +3 -4
  124. package/graphql/schema/resolvers/read/resolveGet.js.map +1 -1
  125. package/graphqlFields/datetime.js +1 -2
  126. package/graphqlFields/datetime.js.map +1 -1
  127. package/graphqlFields/dynamicZone/dynamicZoneField.js +13 -13
  128. package/graphqlFields/dynamicZone/dynamicZoneField.js.map +1 -1
  129. package/graphqlFields/dynamicZone/dynamicZoneStorage.js +6 -6
  130. package/graphqlFields/dynamicZone/dynamicZoneStorage.js.map +1 -1
  131. package/graphqlFields/index.js +2 -1
  132. package/graphqlFields/index.js.map +1 -1
  133. package/graphqlFields/json.d.ts +2 -0
  134. package/graphqlFields/json.js +49 -0
  135. package/graphqlFields/json.js.map +1 -0
  136. package/graphqlFields/object.js +20 -28
  137. package/graphqlFields/object.js.map +1 -1
  138. package/graphqlFields/ref.js +24 -14
  139. package/graphqlFields/ref.js.map +1 -1
  140. package/graphqlFields/richText/RichTextPluginsProcessor.d.ts +6 -0
  141. package/graphqlFields/richText/RichTextPluginsProcessor.js +34 -0
  142. package/graphqlFields/richText/RichTextPluginsProcessor.js.map +1 -0
  143. package/graphqlFields/richText/richTextResolver.d.ts +7 -0
  144. package/graphqlFields/richText/richTextResolver.js +39 -0
  145. package/graphqlFields/richText/richTextResolver.js.map +1 -0
  146. package/graphqlFields/richText.js +8 -2
  147. package/graphqlFields/richText.js.map +1 -1
  148. package/htmlRenderer/LexicalRenderer.d.ts +5 -0
  149. package/htmlRenderer/LexicalRenderer.js +28 -0
  150. package/htmlRenderer/LexicalRenderer.js.map +1 -0
  151. package/htmlRenderer/createLexicalHTMLRenderer.d.ts +2 -0
  152. package/htmlRenderer/createLexicalHTMLRenderer.js +31 -0
  153. package/htmlRenderer/createLexicalHTMLRenderer.js.map +1 -0
  154. package/index.d.ts +1 -1
  155. package/index.js +4 -4
  156. package/index.js.map +1 -1
  157. package/modelManager/DefaultCmsModelManager.js +0 -4
  158. package/modelManager/DefaultCmsModelManager.js.map +1 -1
  159. package/package.json +21 -19
  160. package/parameters/context.js +1 -1
  161. package/parameters/context.js.map +1 -1
  162. package/parameters/header.js +1 -2
  163. package/parameters/header.js.map +1 -1
  164. package/parameters/manual.js +6 -3
  165. package/parameters/manual.js.map +1 -1
  166. package/parameters/path.js +1 -2
  167. package/parameters/path.js.map +1 -1
  168. package/plugins/CmsGraphQLSchemaPlugin.js +3 -4
  169. package/plugins/CmsGraphQLSchemaPlugin.js.map +1 -1
  170. package/plugins/CmsGraphQLSchemaSorterPlugin.js +1 -4
  171. package/plugins/CmsGraphQLSchemaSorterPlugin.js.map +1 -1
  172. package/plugins/CmsGroupPlugin.js +4 -7
  173. package/plugins/CmsGroupPlugin.js.map +1 -1
  174. package/plugins/CmsModelFieldConverterPlugin.js +3 -4
  175. package/plugins/CmsModelFieldConverterPlugin.js.map +1 -1
  176. package/plugins/CmsModelPlugin.d.ts +6 -4
  177. package/plugins/CmsModelPlugin.js +52 -27
  178. package/plugins/CmsModelPlugin.js.map +1 -1
  179. package/plugins/CmsParametersPlugin.js +1 -4
  180. package/plugins/CmsParametersPlugin.js.map +1 -1
  181. package/plugins/CmsRichTextRendererPlugin.d.ts +24 -0
  182. package/plugins/CmsRichTextRendererPlugin.js +28 -0
  183. package/plugins/CmsRichTextRendererPlugin.js.map +1 -0
  184. package/plugins/StorageOperationsCmsModelPlugin.js +3 -6
  185. package/plugins/StorageOperationsCmsModelPlugin.js.map +1 -1
  186. package/plugins/StorageTransformPlugin.d.ts +2 -2
  187. package/plugins/StorageTransformPlugin.js +1 -4
  188. package/plugins/StorageTransformPlugin.js.map +1 -1
  189. package/plugins/index.d.ts +1 -0
  190. package/plugins/index.js +11 -0
  191. package/plugins/index.js.map +1 -1
  192. package/storage/index.d.ts +1 -0
  193. package/storage/index.js +15 -0
  194. package/storage/index.js.map +1 -0
  195. package/storage/json.d.ts +2 -0
  196. package/storage/json.js +27 -0
  197. package/storage/json.js.map +1 -0
  198. package/storage/object.js +5 -7
  199. package/storage/object.js.map +1 -1
  200. package/types.d.ts +182 -53
  201. package/types.js +0 -3
  202. package/types.js.map +1 -1
  203. package/utils/access.d.ts +0 -1
  204. package/utils/access.js +1 -10
  205. package/utils/access.js.map +1 -1
  206. package/utils/caching/Cache.js +3 -5
  207. package/utils/caching/Cache.js.map +1 -1
  208. package/utils/caching/CacheKey.js +0 -3
  209. package/utils/caching/CacheKey.js.map +1 -1
  210. package/utils/converters/Converter.js +1 -4
  211. package/utils/converters/Converter.js.map +1 -1
  212. package/utils/converters/ConverterCollection.js +10 -6
  213. package/utils/converters/ConverterCollection.js.map +1 -1
  214. package/utils/converters/valueKeyStorageConverter.js +3 -3
  215. package/utils/converters/valueKeyStorageConverter.js.map +1 -1
  216. package/utils/date.d.ts +2 -2
  217. package/utils/date.js +1 -1
  218. package/utils/date.js.map +1 -1
  219. package/utils/entryStorage.js +3 -3
  220. package/utils/entryStorage.js.map +1 -1
  221. package/utils/identity.d.ts +2 -0
  222. package/utils/identity.js +20 -0
  223. package/utils/identity.js.map +1 -0
  224. package/utils/permissions/ModelsPermissions.js +0 -3
  225. package/utils/permissions/ModelsPermissions.js.map +1 -1
  226. package/utils/renderGetFilterFields.js +2 -3
  227. package/utils/renderGetFilterFields.js.map +1 -1
  228. package/utils/renderListFilterFields.js +9 -3
  229. package/utils/renderListFilterFields.js.map +1 -1
  230. package/utils/renderSortEnum.js +2 -1
  231. package/utils/renderSortEnum.js.map +1 -1
  232. package/validators/gte.js +1 -2
  233. package/validators/gte.js.map +1 -1
  234. package/validators/in.js +1 -2
  235. package/validators/in.js.map +1 -1
  236. package/validators/lte.js +1 -2
  237. package/validators/lte.js.map +1 -1
  238. package/validators/maxLength.js +1 -2
  239. package/validators/maxLength.js.map +1 -1
  240. package/validators/minLength.js +1 -2
  241. package/validators/minLength.js.map +1 -1
  242. package/validators/pattern.js +2 -2
  243. package/validators/pattern.js.map +1 -1
  244. package/validators/timeGte.js +1 -2
  245. package/validators/timeGte.js.map +1 -1
  246. package/validators/timeLte.js +1 -2
  247. package/validators/timeLte.js.map +1 -1
  248. package/graphql/schema/resolvers/commonFieldResolvers.d.ts +0 -7
  249. package/graphql/schema/resolvers/commonFieldResolvers.js +0 -15
  250. 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: string;
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
- * CreatedBy object reference.
1383
+ * Revision-level meta fields. 👇
1387
1384
  */
1388
- createdBy: CmsIdentity;
1389
1385
  /**
1390
- * OwnedBy object reference. Can be different from CreatedBy.
1386
+ * An ISO 8601 date/time string.
1391
1387
  */
1392
- ownedBy: CmsIdentity;
1388
+ revisionCreatedOn: string;
1393
1389
  /**
1394
- * ModifiedBy object reference. Last person who modified the entry.
1390
+ * An ISO 8601 date/time string.
1395
1391
  */
1396
- modifiedBy?: CmsIdentity | null;
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
- * A string of Date.toISOString() type.
1399
- * Populated on creation.
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
- * A string of Date.toISOString() type.
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
- * Contains the owner of the entry. An "owner" is the identity who originally created the entry.
1704
- * Subsequent revisions can be created by other identities, and those will be stored in `createdBy`,
1705
- * but the `owner` is always the original author of the entry.
1706
- *
1707
- * Can be sent via the API or set internal if user can see only their own entries.
1708
- */
1709
- ownedBy?: string;
1710
- ownedBy_not?: string;
1711
- ownedBy_in?: string[];
1712
- ownedBy_not_in?: string[];
1713
- /**
1714
- * Who created the entry?
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
- publishedOn?: Date | string;
2014
- createdBy?: CmsIdentity | null;
2099
+ createdBy?: CmsIdentity;
2015
2100
  modifiedBy?: CmsIdentity | null;
2016
- ownedBy?: CmsIdentity | null;
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
- publishedOn?: Date;
2150
+ modifiedOn?: Date;
2033
2151
  createdBy?: CmsIdentity;
2034
2152
  modifiedBy?: CmsIdentity;
2035
- ownedBy?: CmsIdentity;
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
- publishedOn?: Date | string | null;
2187
+ firstPublishedOn?: Date | string | null;
2188
+ lastPublishedOn?: Date | string | null;
2049
2189
  createdBy?: CmsIdentity | null;
2050
2190
  modifiedBy?: CmsIdentity | null;
2051
- ownedBy?: CmsIdentity;
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, options?: CmsPublishEntryOptions) => Promise<CmsEntry>;
2312
+ publishEntry: (model: CmsModel, id: string) => Promise<CmsEntry>;
2184
2313
  /**
2185
2314
  * Unpublish entry.
2186
2315
  */
package/types.js CHANGED
@@ -334,9 +334,6 @@ exports.CONTENT_ENTRY_STATUS = void 0;
334
334
  /**
335
335
  * @category CmsEntry
336
336
  */
337
- /**
338
- * @category CmsEntry
339
- */
340
337
  /**
341
338
  * @category Context
342
339
  * @category CmsEntry