@webiny/api-apw 0.0.0-unstable.e3f4727c56 → 0.0.0-unstable.e53eceafb5

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 (310) hide show
  1. package/ApwChangeRequestNotification.d.ts +1 -1
  2. package/ApwChangeRequestNotification.js +4 -6
  3. package/ApwChangeRequestNotification.js.map +1 -1
  4. package/ApwCommentNotification.d.ts +1 -1
  5. package/ApwCommentNotification.js +4 -6
  6. package/ApwCommentNotification.js.map +1 -1
  7. package/ApwContentReviewNotification.d.ts +1 -1
  8. package/ApwContentReviewNotification.js +4 -6
  9. package/ApwContentReviewNotification.js.map +1 -1
  10. package/ApwContentUrlPlugin.d.ts +1 -1
  11. package/ApwContentUrlPlugin.js +4 -6
  12. package/ApwContentUrlPlugin.js.map +1 -1
  13. package/ContentApwSettingsPlugin.d.ts +1 -1
  14. package/ContentApwSettingsPlugin.js +5 -4
  15. package/ContentApwSettingsPlugin.js.map +1 -1
  16. package/README.md +3 -3
  17. package/crud/createChangeRequestMethods.d.ts +1 -1
  18. package/crud/createChangeRequestMethods.js +3 -1
  19. package/crud/createChangeRequestMethods.js.map +1 -1
  20. package/crud/createCommentMethods.d.ts +1 -1
  21. package/crud/createCommentMethods.js +3 -1
  22. package/crud/createCommentMethods.js.map +1 -1
  23. package/crud/createContentReviewMethods.d.ts +2 -2
  24. package/crud/createContentReviewMethods.js +57 -32
  25. package/crud/createContentReviewMethods.js.map +1 -1
  26. package/crud/createReviewerMethods.d.ts +1 -1
  27. package/crud/createReviewerMethods.js +3 -1
  28. package/crud/createReviewerMethods.js.map +1 -1
  29. package/crud/createWorkflowMethods.d.ts +1 -1
  30. package/crud/createWorkflowMethods.js +3 -1
  31. package/crud/createWorkflowMethods.js.map +1 -1
  32. package/crud/index.d.ts +1 -1
  33. package/crud/index.js +6 -5
  34. package/crud/index.js.map +1 -1
  35. package/crud/utils.d.ts +2 -2
  36. package/crud/utils.js +8 -8
  37. package/crud/utils.js.map +1 -1
  38. package/index.d.ts +2 -2
  39. package/index.js +4 -3
  40. package/index.js.map +1 -1
  41. package/package.json +32 -50
  42. package/plugins/cms/CmsEntryApwSettingsGetterPlugin.d.ts +1 -1
  43. package/plugins/cms/CmsEntryApwSettingsGetterPlugin.js +5 -5
  44. package/plugins/cms/CmsEntryApwSettingsGetterPlugin.js.map +1 -1
  45. package/plugins/cms/apwEntryPlugins.d.ts +2 -2
  46. package/plugins/cms/apwEntryPlugins.js +19 -7
  47. package/plugins/cms/apwEntryPlugins.js.map +1 -1
  48. package/plugins/cms/index.d.ts +4 -4
  49. package/plugins/cms/index.js +3 -1
  50. package/plugins/cms/index.js.map +1 -1
  51. package/plugins/cms/linkContentReviewToEntry.d.ts +2 -2
  52. package/plugins/cms/linkContentReviewToEntry.js +5 -4
  53. package/plugins/cms/linkContentReviewToEntry.js.map +1 -1
  54. package/plugins/cms/linkWorkflowToEntry.d.ts +2 -2
  55. package/plugins/cms/linkWorkflowToEntry.js +17 -16
  56. package/plugins/cms/linkWorkflowToEntry.js.map +1 -1
  57. package/plugins/cms/notifications/changeRequestNotification.js +3 -1
  58. package/plugins/cms/notifications/changeRequestNotification.js.map +1 -1
  59. package/plugins/cms/notifications/commentNotification.js +3 -1
  60. package/plugins/cms/notifications/commentNotification.js.map +1 -1
  61. package/plugins/cms/notifications/contentReviewNotification.js +3 -1
  62. package/plugins/cms/notifications/contentReviewNotification.js.map +1 -1
  63. package/plugins/cms/notifications/contentUrl.js +3 -1
  64. package/plugins/cms/notifications/contentUrl.js.map +1 -1
  65. package/plugins/cms/triggerContentReview.d.ts +2 -2
  66. package/plugins/cms/triggerContentReview.js +6 -5
  67. package/plugins/cms/triggerContentReview.js.map +1 -1
  68. package/plugins/cms/updateContentReviewStatus.d.ts +3 -3
  69. package/plugins/cms/updateContentReviewStatus.js +15 -13
  70. package/plugins/cms/updateContentReviewStatus.js.map +1 -1
  71. package/plugins/cms/utils.d.ts +5 -4
  72. package/plugins/cms/utils.js +19 -13
  73. package/plugins/cms/utils.js.map +1 -1
  74. package/plugins/context.d.ts +2 -2
  75. package/plugins/context.js +3 -1
  76. package/plugins/context.js.map +1 -1
  77. package/plugins/graphql/changeRequest.gql.d.ts +1 -1
  78. package/plugins/graphql/changeRequest.gql.js +16 -13
  79. package/plugins/graphql/changeRequest.gql.js.map +1 -1
  80. package/plugins/graphql/comment.gql.d.ts +1 -1
  81. package/plugins/graphql/comment.gql.js +41 -36
  82. package/plugins/graphql/comment.gql.js.map +1 -1
  83. package/plugins/graphql/contentReview.gql.d.ts +1 -1
  84. package/plugins/graphql/contentReview.gql.js +26 -17
  85. package/plugins/graphql/contentReview.gql.js.map +1 -1
  86. package/plugins/graphql/reviewer.gql.d.ts +1 -1
  87. package/plugins/graphql/reviewer.gql.js +15 -13
  88. package/plugins/graphql/reviewer.gql.js.map +1 -1
  89. package/plugins/graphql/utils.d.ts +2 -0
  90. package/plugins/graphql/utils.js +10 -0
  91. package/plugins/graphql/utils.js.map +1 -0
  92. package/plugins/graphql/workflow.gql.d.ts +1 -1
  93. package/plugins/graphql/workflow.gql.js +15 -13
  94. package/plugins/graphql/workflow.gql.js.map +1 -1
  95. package/plugins/graphql.d.ts +1 -1
  96. package/plugins/graphql.js +4 -2
  97. package/plugins/graphql.js.map +1 -1
  98. package/plugins/hooks/createReviewerFromIdentity.d.ts +1 -1
  99. package/plugins/hooks/createReviewerFromIdentity.js +4 -2
  100. package/plugins/hooks/createReviewerFromIdentity.js.map +1 -1
  101. package/plugins/hooks/deleteChangeRequestsAfterContentReview.d.ts +1 -1
  102. package/plugins/hooks/deleteChangeRequestsAfterContentReview.js +3 -1
  103. package/plugins/hooks/deleteChangeRequestsAfterContentReview.js.map +1 -1
  104. package/plugins/hooks/deleteCommentsAfterChangeRequest.d.ts +1 -1
  105. package/plugins/hooks/deleteCommentsAfterChangeRequest.js +3 -1
  106. package/plugins/hooks/deleteCommentsAfterChangeRequest.js.map +1 -1
  107. package/plugins/hooks/index.d.ts +1 -1
  108. package/plugins/hooks/index.js +3 -1
  109. package/plugins/hooks/index.js.map +1 -1
  110. package/plugins/hooks/initializeContentReviewSteps.d.ts +1 -1
  111. package/plugins/hooks/initializeContentReviewSteps.js +6 -4
  112. package/plugins/hooks/initializeContentReviewSteps.js.map +1 -1
  113. package/plugins/hooks/initializeNotifications.d.ts +1 -1
  114. package/plugins/hooks/initializeNotifications.js +3 -1
  115. package/plugins/hooks/initializeNotifications.js.map +1 -1
  116. package/plugins/hooks/listContentReviews.d.ts +3 -3
  117. package/plugins/hooks/listContentReviews.js +4 -2
  118. package/plugins/hooks/listContentReviews.js.map +1 -1
  119. package/plugins/hooks/notifications/changeRequestAfterCreate.d.ts +1 -1
  120. package/plugins/hooks/notifications/changeRequestAfterCreate.js +8 -11
  121. package/plugins/hooks/notifications/changeRequestAfterCreate.js.map +1 -1
  122. package/plugins/hooks/notifications/changeRequestUrl.js +3 -1
  123. package/plugins/hooks/notifications/changeRequestUrl.js.map +1 -1
  124. package/plugins/hooks/notifications/commentAfterCreate.d.ts +1 -1
  125. package/plugins/hooks/notifications/commentAfterCreate.js +8 -11
  126. package/plugins/hooks/notifications/commentAfterCreate.js.map +1 -1
  127. package/plugins/hooks/notifications/commentUrl.js +3 -1
  128. package/plugins/hooks/notifications/commentUrl.js.map +1 -1
  129. package/plugins/hooks/notifications/contentReviewAfterCreate.d.ts +1 -1
  130. package/plugins/hooks/notifications/contentReviewAfterCreate.js +9 -12
  131. package/plugins/hooks/notifications/contentReviewAfterCreate.js.map +1 -1
  132. package/plugins/hooks/notifications/contentReviewUrl.js +3 -1
  133. package/plugins/hooks/notifications/contentReviewUrl.js.map +1 -1
  134. package/plugins/hooks/notifications/contentUrl.d.ts +2 -2
  135. package/plugins/hooks/notifications/contentUrl.js +3 -1
  136. package/plugins/hooks/notifications/contentUrl.js.map +1 -1
  137. package/plugins/hooks/notifications/getAppUrl.d.ts +2 -0
  138. package/plugins/hooks/notifications/getAppUrl.js +19 -0
  139. package/plugins/hooks/notifications/getAppUrl.js.map +1 -0
  140. package/plugins/hooks/notifications/lastChangeRequestNotificationPlugin.d.ts +1 -1
  141. package/plugins/hooks/notifications/lastChangeRequestNotificationPlugin.js +3 -1
  142. package/plugins/hooks/notifications/lastChangeRequestNotificationPlugin.js.map +1 -1
  143. package/plugins/hooks/notifications/lastCommentNotificationPlugin.d.ts +1 -1
  144. package/plugins/hooks/notifications/lastCommentNotificationPlugin.js +3 -1
  145. package/plugins/hooks/notifications/lastCommentNotificationPlugin.js.map +1 -1
  146. package/plugins/hooks/notifications/lastContentReviewNotificationPlugin.d.ts +1 -1
  147. package/plugins/hooks/notifications/lastContentReviewNotificationPlugin.js +3 -1
  148. package/plugins/hooks/notifications/lastContentReviewNotificationPlugin.js.map +1 -1
  149. package/plugins/hooks/notifications/reviewers.d.ts +1 -1
  150. package/plugins/hooks/notifications/reviewers.js +18 -15
  151. package/plugins/hooks/notifications/reviewers.js.map +1 -1
  152. package/plugins/hooks/notifications/sendChangeRequestNotification.d.ts +1 -1
  153. package/plugins/hooks/notifications/sendChangeRequestNotification.js +3 -1
  154. package/plugins/hooks/notifications/sendChangeRequestNotification.js.map +1 -1
  155. package/plugins/hooks/notifications/sendCommentNotification.d.ts +1 -1
  156. package/plugins/hooks/notifications/sendCommentNotification.js +3 -1
  157. package/plugins/hooks/notifications/sendCommentNotification.js.map +1 -1
  158. package/plugins/hooks/notifications/sendContentReviewNotification.d.ts +1 -1
  159. package/plugins/hooks/notifications/sendContentReviewNotification.js +3 -1
  160. package/plugins/hooks/notifications/sendContentReviewNotification.js.map +1 -1
  161. package/plugins/hooks/updatePendingChangeRequests.d.ts +1 -1
  162. package/plugins/hooks/updatePendingChangeRequests.js +8 -6
  163. package/plugins/hooks/updatePendingChangeRequests.js.map +1 -1
  164. package/plugins/hooks/updateTotalComments.d.ts +1 -1
  165. package/plugins/hooks/updateTotalComments.js +22 -15
  166. package/plugins/hooks/updateTotalComments.js.map +1 -1
  167. package/plugins/hooks/validateChangeRequest.d.ts +1 -1
  168. package/plugins/hooks/validateChangeRequest.js +3 -1
  169. package/plugins/hooks/validateChangeRequest.js.map +1 -1
  170. package/plugins/hooks/validateComment.d.ts +1 -1
  171. package/plugins/hooks/validateComment.js +3 -1
  172. package/plugins/hooks/validateComment.js.map +1 -1
  173. package/plugins/hooks/validateContentReview.d.ts +1 -1
  174. package/plugins/hooks/validateContentReview.js +3 -1
  175. package/plugins/hooks/validateContentReview.js.map +1 -1
  176. package/plugins/pageBuilder/PageApwSettingsGetterPlugin.d.ts +2 -1
  177. package/plugins/pageBuilder/PageApwSettingsGetterPlugin.js +5 -5
  178. package/plugins/pageBuilder/PageApwSettingsGetterPlugin.js.map +1 -1
  179. package/plugins/pageBuilder/apwContentPagePlugins.d.ts +1 -1
  180. package/plugins/pageBuilder/apwContentPagePlugins.js +3 -1
  181. package/plugins/pageBuilder/apwContentPagePlugins.js.map +1 -1
  182. package/plugins/pageBuilder/extendPbPageSettingsSchema.d.ts +1 -1
  183. package/plugins/pageBuilder/extendPbPageSettingsSchema.js +3 -1
  184. package/plugins/pageBuilder/extendPbPageSettingsSchema.js.map +1 -1
  185. package/plugins/pageBuilder/index.d.ts +4 -4
  186. package/plugins/pageBuilder/index.js +3 -1
  187. package/plugins/pageBuilder/index.js.map +1 -1
  188. package/plugins/pageBuilder/linkContentReviewToPage.d.ts +2 -2
  189. package/plugins/pageBuilder/linkContentReviewToPage.js +16 -12
  190. package/plugins/pageBuilder/linkContentReviewToPage.js.map +1 -1
  191. package/plugins/pageBuilder/linkWorkflowToPage.d.ts +2 -2
  192. package/plugins/pageBuilder/linkWorkflowToPage.js +13 -12
  193. package/plugins/pageBuilder/linkWorkflowToPage.js.map +1 -1
  194. package/plugins/pageBuilder/notifications/changeRequestNotification.js +3 -1
  195. package/plugins/pageBuilder/notifications/changeRequestNotification.js.map +1 -1
  196. package/plugins/pageBuilder/notifications/commentNotification.js +3 -1
  197. package/plugins/pageBuilder/notifications/commentNotification.js.map +1 -1
  198. package/plugins/pageBuilder/notifications/contentReviewNotification.js +3 -1
  199. package/plugins/pageBuilder/notifications/contentReviewNotification.js.map +1 -1
  200. package/plugins/pageBuilder/notifications/contentUrl.js +3 -1
  201. package/plugins/pageBuilder/notifications/contentUrl.js.map +1 -1
  202. package/plugins/pageBuilder/triggerContentReview.d.ts +2 -2
  203. package/plugins/pageBuilder/triggerContentReview.js +5 -4
  204. package/plugins/pageBuilder/triggerContentReview.js.map +1 -1
  205. package/plugins/pageBuilder/updateContentReviewStatus.d.ts +3 -3
  206. package/plugins/pageBuilder/updateContentReviewStatus.js +13 -10
  207. package/plugins/pageBuilder/updateContentReviewStatus.js.map +1 -1
  208. package/plugins/pageBuilder/utils.d.ts +4 -4
  209. package/plugins/pageBuilder/utils.js +7 -6
  210. package/plugins/pageBuilder/utils.js.map +1 -1
  211. package/plugins/utils.d.ts +7 -6
  212. package/plugins/utils.js +12 -8
  213. package/plugins/utils.js.map +1 -1
  214. package/scheduler/createScheduleActionMethods.d.ts +1 -1
  215. package/scheduler/createScheduleActionMethods.js +105 -66
  216. package/scheduler/createScheduleActionMethods.js.map +1 -1
  217. package/scheduler/handlers/executeAction/index.d.ts +2 -2
  218. package/scheduler/handlers/executeAction/index.js +30 -9
  219. package/scheduler/handlers/executeAction/index.js.map +1 -1
  220. package/scheduler/handlers/executeAction/plugins/ApplicationGraphQL.js +5 -4
  221. package/scheduler/handlers/executeAction/plugins/ApplicationGraphQL.js.map +1 -1
  222. package/scheduler/handlers/executeAction/plugins/HeadlessCMSGraphQL.d.ts +2 -1
  223. package/scheduler/handlers/executeAction/plugins/HeadlessCMSGraphQL.js +6 -7
  224. package/scheduler/handlers/executeAction/plugins/HeadlessCMSGraphQL.js.map +1 -1
  225. package/scheduler/handlers/executeAction/plugins/PageBuilderGraphQL.d.ts +3 -2
  226. package/scheduler/handlers/executeAction/plugins/PageBuilderGraphQL.js +4 -7
  227. package/scheduler/handlers/executeAction/plugins/PageBuilderGraphQL.js.map +1 -1
  228. package/scheduler/handlers/executeAction/security.d.ts +2 -2
  229. package/scheduler/handlers/executeAction/security.js +3 -1
  230. package/scheduler/handlers/executeAction/security.js.map +1 -1
  231. package/scheduler/handlers/scheduleAction/index.d.ts +2 -2
  232. package/scheduler/handlers/scheduleAction/index.js +20 -15
  233. package/scheduler/handlers/scheduleAction/index.js.map +1 -1
  234. package/scheduler/handlers/scheduleAction/scheduleAction.utils.d.ts +3 -3
  235. package/scheduler/handlers/scheduleAction/scheduleAction.utils.js +19 -14
  236. package/scheduler/handlers/scheduleAction/scheduleAction.utils.js.map +1 -1
  237. package/scheduler/handlers/utils.d.ts +2 -3
  238. package/scheduler/handlers/utils.js +20 -13
  239. package/scheduler/handlers/utils.js.map +1 -1
  240. package/scheduler/index.d.ts +1 -1
  241. package/scheduler/index.js +3 -1
  242. package/scheduler/index.js.map +1 -1
  243. package/scheduler/types.d.ts +20 -36
  244. package/scheduler/types.js +11 -17
  245. package/scheduler/types.js.map +1 -1
  246. package/storageOperations/changeRequestStorageOperations.d.ts +2 -2
  247. package/storageOperations/changeRequestStorageOperations.js +44 -23
  248. package/storageOperations/changeRequestStorageOperations.js.map +1 -1
  249. package/storageOperations/commentStorageOperations.d.ts +3 -3
  250. package/storageOperations/commentStorageOperations.js +17 -24
  251. package/storageOperations/commentStorageOperations.js.map +1 -1
  252. package/storageOperations/contentReviewStorageOperations.d.ts +3 -3
  253. package/storageOperations/contentReviewStorageOperations.js +20 -25
  254. package/storageOperations/contentReviewStorageOperations.js.map +1 -1
  255. package/storageOperations/index.d.ts +3 -9
  256. package/storageOperations/index.js +11 -16
  257. package/storageOperations/index.js.map +1 -1
  258. package/storageOperations/models/changeRequest.model.d.ts +1 -2
  259. package/storageOperations/models/changeRequest.model.js +10 -11
  260. package/storageOperations/models/changeRequest.model.js.map +1 -1
  261. package/storageOperations/models/comment.model.d.ts +1 -2
  262. package/storageOperations/models/comment.model.js +10 -11
  263. package/storageOperations/models/comment.model.js.map +1 -1
  264. package/storageOperations/models/contentReview.model.d.ts +1 -2
  265. package/storageOperations/models/contentReview.model.js +16 -15
  266. package/storageOperations/models/contentReview.model.js.map +1 -1
  267. package/storageOperations/models/index.d.ts +1 -1
  268. package/storageOperations/models/index.js +11 -31
  269. package/storageOperations/models/index.js.map +1 -1
  270. package/storageOperations/models/reviewer.model.d.ts +1 -2
  271. package/storageOperations/models/reviewer.model.js +11 -12
  272. package/storageOperations/models/reviewer.model.js.map +1 -1
  273. package/storageOperations/models/utils.d.ts +2 -2
  274. package/storageOperations/models/utils.js +3 -1
  275. package/storageOperations/models/utils.js.map +1 -1
  276. package/storageOperations/models/workflow.model.d.ts +2 -3
  277. package/storageOperations/models/workflow.model.js +22 -23
  278. package/storageOperations/models/workflow.model.js.map +1 -1
  279. package/storageOperations/reviewerStorageOperations.d.ts +3 -3
  280. package/storageOperations/reviewerStorageOperations.js +24 -34
  281. package/storageOperations/reviewerStorageOperations.js.map +1 -1
  282. package/storageOperations/types.d.ts +2 -2
  283. package/storageOperations/types.js +3 -1
  284. package/storageOperations/types.js.map +1 -1
  285. package/storageOperations/workflowStorageOperations.d.ts +2 -2
  286. package/storageOperations/workflowStorageOperations.js +25 -28
  287. package/storageOperations/workflowStorageOperations.js.map +1 -1
  288. package/types.d.ts +54 -53
  289. package/types.js +121 -29
  290. package/types.js.map +1 -1
  291. package/utils/contentApwSettingsPlugin.d.ts +2 -2
  292. package/utils/contentApwSettingsPlugin.js +3 -1
  293. package/utils/contentApwSettingsPlugin.js.map +1 -1
  294. package/utils/errors.js +3 -1
  295. package/utils/errors.js.map +1 -1
  296. package/utils/fieldResolver.d.ts +2 -2
  297. package/utils/fieldResolver.js +7 -7
  298. package/utils/fieldResolver.js.map +1 -1
  299. package/utils/pickEntryFieldValues.d.ts +3 -0
  300. package/utils/pickEntryFieldValues.js +30 -0
  301. package/utils/pickEntryFieldValues.js.map +1 -0
  302. package/utils/resolve.d.ts +1 -1
  303. package/utils/resolve.js +3 -1
  304. package/utils/resolve.js.map +1 -1
  305. package/plugins/hooks/notifications/appUrl.d.ts +0 -2
  306. package/plugins/hooks/notifications/appUrl.js +0 -18
  307. package/plugins/hooks/notifications/appUrl.js.map +0 -1
  308. package/storageOperations/models/contentModelPluginFactory.d.ts +0 -8
  309. package/storageOperations/models/contentModelPluginFactory.js +0 -19
  310. package/storageOperations/models/contentModelPluginFactory.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import { CmsModel } from \"@webiny/api-headless-cms/types\";\nimport {\n ApwReviewerStorageOperations as BaseApwReviewerStorageOperations,\n ApwWorkflowStorageOperations as BaseApwWorkflowStorageOperations,\n ApwContentReviewStorageOperations as BaseApwContentReviewStorageOperations,\n ApwChangeRequestStorageOperations as BaseApwChangeRequestStorageOperations,\n ApwCommentStorageOperations as BaseApwCommentStorageOperations\n} from \"~/types\";\n\nexport interface ApwCommentStorageOperations extends BaseApwCommentStorageOperations {\n /**\n * @internal\n */\n getCommentModel(): Promise<CmsModel>;\n}\n\nexport interface ApwReviewerStorageOperations extends BaseApwReviewerStorageOperations {\n /**\n * @internal\n */\n getReviewerModel(): Promise<CmsModel>;\n}\n\nexport interface ApwWorkflowStorageOperations extends BaseApwWorkflowStorageOperations {\n /**\n * @internal\n */\n getWorkflowModel(): Promise<CmsModel>;\n}\n\nexport interface ApwContentReviewStorageOperations extends BaseApwContentReviewStorageOperations {\n /**\n * @internal\n */\n getContentReviewModel(): Promise<CmsModel>;\n}\n\nexport interface ApwChangeRequestStorageOperations extends BaseApwChangeRequestStorageOperations {\n /**\n * @internal\n */\n getChangeRequestModel(): Promise<CmsModel>;\n}\n\nexport interface ApwStorageOperations\n extends ApwReviewerStorageOperations,\n ApwWorkflowStorageOperations,\n ApwContentReviewStorageOperations,\n ApwChangeRequestStorageOperations,\n ApwCommentStorageOperations {}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type { CmsModel } from \"@webiny/api-headless-cms/types\";\nimport type {\n ApwReviewerStorageOperations as BaseApwReviewerStorageOperations,\n ApwWorkflowStorageOperations as BaseApwWorkflowStorageOperations,\n ApwContentReviewStorageOperations as BaseApwContentReviewStorageOperations,\n ApwChangeRequestStorageOperations as BaseApwChangeRequestStorageOperations,\n ApwCommentStorageOperations as BaseApwCommentStorageOperations\n} from \"~/types\";\n\nexport interface ApwCommentStorageOperations extends BaseApwCommentStorageOperations {\n /**\n * @internal\n */\n getCommentModel(): Promise<CmsModel>;\n}\n\nexport interface ApwReviewerStorageOperations extends BaseApwReviewerStorageOperations {\n /**\n * @internal\n */\n getReviewerModel(): Promise<CmsModel>;\n}\n\nexport interface ApwWorkflowStorageOperations extends BaseApwWorkflowStorageOperations {\n /**\n * @internal\n */\n getWorkflowModel(): Promise<CmsModel>;\n}\n\nexport interface ApwContentReviewStorageOperations extends BaseApwContentReviewStorageOperations {\n /**\n * @internal\n */\n getContentReviewModel(): Promise<CmsModel>;\n}\n\nexport interface ApwChangeRequestStorageOperations extends BaseApwChangeRequestStorageOperations {\n /**\n * @internal\n */\n getChangeRequestModel(): Promise<CmsModel>;\n}\n\nexport interface ApwStorageOperations\n extends ApwReviewerStorageOperations,\n ApwWorkflowStorageOperations,\n ApwContentReviewStorageOperations,\n ApwChangeRequestStorageOperations,\n ApwCommentStorageOperations {}\n"],"mappings":"","ignoreList":[]}
@@ -1,3 +1,3 @@
1
- import { ApwWorkflowStorageOperations } from "./types";
2
- import { CreateApwStorageOperationsParams } from "./index";
1
+ import type { ApwWorkflowStorageOperations } from "./types";
2
+ import type { CreateApwStorageOperationsParams } from "./index";
3
3
  export declare const createWorkflowStorageOperations: (params: CreateApwStorageOperationsParams) => ApwWorkflowStorageOperations;
@@ -5,29 +5,27 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.createWorkflowStorageOperations = void 0;
8
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
9
- var _index = require("./index");
8
+ var _pickEntryFieldValues = require("../utils/pickEntryFieldValues");
10
9
  var _error = _interopRequireDefault(require("@webiny/error"));
11
10
  var _workflow = require("./models/workflow.model");
12
11
  const formatReviewersForRefInput = (data, modelId) => {
13
- return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, data), {}, {
14
- steps: data.steps.map(step => (0, _objectSpread2.default)((0, _objectSpread2.default)({}, step), {}, {
12
+ return {
13
+ ...data,
14
+ steps: data.steps.map(step => ({
15
+ ...step,
15
16
  reviewers: step.reviewers.map(id => ({
16
17
  id,
17
18
  modelId
18
19
  }))
19
20
  }))
20
- });
21
+ };
21
22
  };
22
23
  const createWorkflowStorageOperations = params => {
23
24
  const {
24
- cms,
25
- security
25
+ cms
26
26
  } = params;
27
27
  const getWorkflowModel = async () => {
28
- security.disableAuthorization();
29
28
  const model = await cms.getModel(_workflow.WORKFLOW_MODEL_ID);
30
- security.enableAuthorization();
31
29
  if (!model) {
32
30
  throw new _error.default(`Could not find "${_workflow.WORKFLOW_MODEL_ID}" model.`, "MODEL_NOT_FOUND_ERROR");
33
31
  }
@@ -37,31 +35,28 @@ const createWorkflowStorageOperations = params => {
37
35
  id
38
36
  }) => {
39
37
  const model = await getWorkflowModel();
40
- security.disableAuthorization();
41
38
  const entry = await cms.getEntryById(model, id);
42
- security.enableAuthorization();
43
- return (0, _index.getFieldValues)(entry, _index.baseFields);
39
+ return (0, _pickEntryFieldValues.pickEntryFieldValues)(entry);
44
40
  };
45
41
  return {
46
42
  getWorkflowModel,
47
43
  getWorkflow,
48
44
  async listWorkflows(params) {
49
45
  const model = await getWorkflowModel();
50
- security.disableAuthorization();
51
- const [entries, meta] = await cms.listLatestEntries(model, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, params), {}, {
52
- where: (0, _objectSpread2.default)({}, params.where || {})
53
- }));
54
- security.enableAuthorization();
55
- return [entries.map(entry => (0, _index.getFieldValues)(entry, _index.baseFields)), meta];
46
+ const [entries, meta] = await cms.listLatestEntries(model, {
47
+ ...params,
48
+ where: {
49
+ ...params.where
50
+ }
51
+ });
52
+ return [entries.map(_pickEntryFieldValues.pickEntryFieldValues), meta];
56
53
  },
57
54
  async createWorkflow(params) {
58
55
  const model = await getWorkflowModel();
59
56
  const reviewerModel = await this.getReviewerModel();
60
57
  const data = formatReviewersForRefInput(params.data, reviewerModel.modelId);
61
- security.disableAuthorization();
62
58
  const entry = await cms.createEntry(model, data);
63
- security.enableAuthorization();
64
- return (0, _index.getFieldValues)(entry, _index.baseFields);
59
+ return (0, _pickEntryFieldValues.pickEntryFieldValues)(entry);
65
60
  },
66
61
  async updateWorkflow(params) {
67
62
  const model = await getWorkflowModel();
@@ -73,20 +68,22 @@ const createWorkflowStorageOperations = params => {
73
68
  const existingEntry = await getWorkflow({
74
69
  id: params.id
75
70
  });
76
- const input = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, existingEntry), params.data);
71
+ const input = {
72
+ ...existingEntry,
73
+ ...params.data,
74
+ savedOn: new Date()
75
+ };
77
76
  const data = formatReviewersForRefInput(input, reviewerModel.modelId);
78
- security.disableAuthorization();
79
77
  const entry = await cms.updateEntry(model, params.id, data);
80
- security.enableAuthorization();
81
- return (0, _index.getFieldValues)(entry, _index.baseFields);
78
+ return (0, _pickEntryFieldValues.pickEntryFieldValues)(entry);
82
79
  },
83
80
  async deleteWorkflow(params) {
84
81
  const model = await getWorkflowModel();
85
- security.disableAuthorization();
86
82
  await cms.deleteEntry(model, params.id);
87
- security.enableAuthorization();
88
83
  return true;
89
84
  }
90
85
  };
91
86
  };
92
- exports.createWorkflowStorageOperations = createWorkflowStorageOperations;
87
+ exports.createWorkflowStorageOperations = createWorkflowStorageOperations;
88
+
89
+ //# sourceMappingURL=workflowStorageOperations.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["formatReviewersForRefInput","data","modelId","steps","map","step","reviewers","id","createWorkflowStorageOperations","params","cms","security","getWorkflowModel","disableAuthorization","model","getModel","WORKFLOW_MODEL_ID","enableAuthorization","WebinyError","getWorkflow","entry","getEntryById","getFieldValues","baseFields","listWorkflows","entries","meta","listLatestEntries","where","createWorkflow","reviewerModel","getReviewerModel","createEntry","updateWorkflow","existingEntry","input","updateEntry","deleteWorkflow","deleteEntry"],"sources":["workflowStorageOperations.ts"],"sourcesContent":["import { CreateApwWorkflowParams } from \"~/types\";\nimport { ApwStorageOperations, ApwWorkflowStorageOperations } from \"./types\";\nimport {\n baseFields,\n CreateApwStorageOperationsParams,\n getFieldValues\n} from \"~/storageOperations/index\";\nimport WebinyError from \"@webiny/error\";\nimport { WORKFLOW_MODEL_ID } from \"~/storageOperations/models/workflow.model\";\n\ntype ReviewersRefInput = CreateApwWorkflowParams<{ modelId: string; id: string }>;\n\nconst formatReviewersForRefInput = (\n data: CreateApwWorkflowParams,\n modelId: string\n): ReviewersRefInput => {\n return {\n ...data,\n steps: data.steps.map(step => ({\n ...step,\n reviewers: step.reviewers.map(id => ({\n id,\n modelId\n }))\n }))\n };\n};\n\nexport const createWorkflowStorageOperations = (\n params: CreateApwStorageOperationsParams\n): ApwWorkflowStorageOperations => {\n const { cms, security } = params;\n const getWorkflowModel = async () => {\n security.disableAuthorization();\n const model = await cms.getModel(WORKFLOW_MODEL_ID);\n security.enableAuthorization();\n if (!model) {\n throw new WebinyError(\n `Could not find \"${WORKFLOW_MODEL_ID}\" model.`,\n \"MODEL_NOT_FOUND_ERROR\"\n );\n }\n return model;\n };\n const getWorkflow: ApwWorkflowStorageOperations[\"getWorkflow\"] = async ({ id }) => {\n const model = await getWorkflowModel();\n security.disableAuthorization();\n const entry = await cms.getEntryById(model, id);\n security.enableAuthorization();\n return getFieldValues(entry, baseFields);\n };\n return {\n getWorkflowModel,\n getWorkflow,\n async listWorkflows(params) {\n const model = await getWorkflowModel();\n security.disableAuthorization();\n const [entries, meta] = await cms.listLatestEntries(model, {\n ...params,\n where: {\n ...(params.where || {})\n }\n });\n security.enableAuthorization();\n return [entries.map(entry => getFieldValues(entry, baseFields)), meta];\n },\n async createWorkflow(this: ApwStorageOperations, params) {\n const model = await getWorkflowModel();\n const reviewerModel = await this.getReviewerModel();\n\n const data = formatReviewersForRefInput(params.data, reviewerModel.modelId);\n security.disableAuthorization();\n const entry = await cms.createEntry(model, data);\n security.enableAuthorization();\n\n return getFieldValues(entry, baseFields);\n },\n async updateWorkflow(this: ApwStorageOperations, params) {\n const model = await getWorkflowModel();\n const reviewerModel = await this.getReviewerModel();\n /**\n * We're fetching the existing entry here because we're not accepting \"app\" field as input,\n * but, we still need to retain its value after the \"update\" operation.\n */\n const existingEntry = await getWorkflow({ id: params.id });\n const input = {\n ...existingEntry,\n ...params.data\n };\n const data = formatReviewersForRefInput(\n input as CreateApwWorkflowParams,\n reviewerModel.modelId\n );\n security.disableAuthorization();\n const entry = await cms.updateEntry(model, params.id, data);\n security.enableAuthorization();\n return getFieldValues(entry, baseFields);\n },\n async deleteWorkflow(params) {\n const model = await getWorkflowModel();\n security.disableAuthorization();\n await cms.deleteEntry(model, params.id);\n security.enableAuthorization();\n return true;\n }\n };\n};\n"],"mappings":"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"}
1
+ {"version":3,"names":["_pickEntryFieldValues","require","_error","_interopRequireDefault","_workflow","formatReviewersForRefInput","data","modelId","steps","map","step","reviewers","id","createWorkflowStorageOperations","params","cms","getWorkflowModel","model","getModel","WORKFLOW_MODEL_ID","WebinyError","getWorkflow","entry","getEntryById","pickEntryFieldValues","listWorkflows","entries","meta","listLatestEntries","where","createWorkflow","reviewerModel","getReviewerModel","createEntry","updateWorkflow","existingEntry","input","savedOn","Date","updateEntry","deleteWorkflow","deleteEntry","exports"],"sources":["workflowStorageOperations.ts"],"sourcesContent":["import type { ApwWorkflow, CreateApwWorkflowParams } from \"~/types\";\nimport type { ApwStorageOperations, ApwWorkflowStorageOperations } from \"./types\";\nimport type { CreateApwStorageOperationsParams } from \"~/storageOperations/index\";\nimport { pickEntryFieldValues } from \"~/utils/pickEntryFieldValues\";\nimport WebinyError from \"@webiny/error\";\nimport { WORKFLOW_MODEL_ID } from \"~/storageOperations/models/workflow.model\";\n\ntype ReviewersRefInput = CreateApwWorkflowParams<{ modelId: string; id: string }>;\n\nconst formatReviewersForRefInput = (\n data: CreateApwWorkflowParams,\n modelId: string\n): ReviewersRefInput => {\n return {\n ...data,\n steps: data.steps.map(step => ({\n ...step,\n reviewers: step.reviewers.map(id => ({\n id,\n modelId\n }))\n }))\n };\n};\n\nexport const createWorkflowStorageOperations = (\n params: CreateApwStorageOperationsParams\n): ApwWorkflowStorageOperations => {\n const { cms } = params;\n const getWorkflowModel = async () => {\n const model = await cms.getModel(WORKFLOW_MODEL_ID);\n if (!model) {\n throw new WebinyError(\n `Could not find \"${WORKFLOW_MODEL_ID}\" model.`,\n \"MODEL_NOT_FOUND_ERROR\"\n );\n }\n return model;\n };\n const getWorkflow: ApwWorkflowStorageOperations[\"getWorkflow\"] = async ({ id }) => {\n const model = await getWorkflowModel();\n const entry = await cms.getEntryById(model, id);\n return pickEntryFieldValues(entry);\n };\n return {\n getWorkflowModel,\n getWorkflow,\n async listWorkflows(params) {\n const model = await getWorkflowModel();\n\n const [entries, meta] = await cms.listLatestEntries(model, {\n ...params,\n where: {\n ...params.where\n }\n });\n return [entries.map(pickEntryFieldValues<ApwWorkflow>), meta];\n },\n async createWorkflow(this: ApwStorageOperations, params) {\n const model = await getWorkflowModel();\n const reviewerModel = await this.getReviewerModel();\n\n const data = formatReviewersForRefInput(params.data, reviewerModel.modelId);\n\n const entry = await cms.createEntry(model, data);\n\n return pickEntryFieldValues(entry);\n },\n async updateWorkflow(this: ApwStorageOperations, params) {\n const model = await getWorkflowModel();\n const reviewerModel = await this.getReviewerModel();\n /**\n * We're fetching the existing entry here because we're not accepting \"app\" field as input,\n * but, we still need to retain its value after the \"update\" operation.\n */\n const existingEntry = await getWorkflow({ id: params.id });\n const input = {\n ...existingEntry,\n ...params.data,\n savedOn: new Date()\n };\n const data = formatReviewersForRefInput(\n input as CreateApwWorkflowParams,\n reviewerModel.modelId\n );\n\n const entry = await cms.updateEntry(model, params.id, data);\n\n return pickEntryFieldValues(entry);\n },\n async deleteWorkflow(params) {\n const model = await getWorkflowModel();\n\n await cms.deleteEntry(model, params.id);\n return true;\n }\n };\n};\n"],"mappings":"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","ignoreList":[]}
package/types.d.ts CHANGED
@@ -1,17 +1,16 @@
1
- import { CmsEntry as BaseCmsEntry, CmsModel, OnEntryBeforePublishTopicParams, OnEntryAfterPublishTopicParams, OnEntryAfterUnpublishTopicParams } from "@webiny/api-headless-cms/types";
2
- import { Page, OnPageBeforeCreateTopicParams, OnPageBeforeCreateFromTopicParams, OnPageBeforeUpdateTopicParams, OnPageBeforePublishTopicParams, PageSettings } from "@webiny/api-page-builder/types";
3
- import { Context } from "@webiny/api/types";
4
- import { PageBuilderContextObject } from "@webiny/api-page-builder/graphql/types";
5
- import { SecurityIdentity, SecurityPermission } from "@webiny/api-security/types";
6
- import { I18NLocale } from "@webiny/api-i18n/types";
7
- import { Tenant } from "@webiny/api-tenancy/types";
8
- import { Topic } from "@webiny/pubsub/types";
9
- import { ApwScheduleActionCrud, ScheduleActionContext } from "./scheduler/types";
10
- import HandlerClient from "@webiny/handler-client/HandlerClient";
11
- import { PluginsContainer } from "@webiny/plugins";
12
- import { WcpContextObject } from "@webiny/api-wcp/types";
13
- import { MailerContext } from "@webiny/api-mailer/types";
14
- import { AdminSettingsContext } from "@webiny/api-admin-settings/types";
1
+ import type { CmsEntry as BaseCmsEntry, OnEntryBeforePublishTopicParams, OnEntryAfterPublishTopicParams, OnEntryAfterUnpublishTopicParams, CmsEntryListSort } from "@webiny/api-headless-cms/types";
2
+ import type { Page, OnPageBeforeCreateTopicParams, OnPageBeforeCreateFromTopicParams, OnPageBeforeUpdateTopicParams, OnPageBeforePublishTopicParams, PageSettings } from "@webiny/api-page-builder/types";
3
+ import type { Context } from "@webiny/api/types";
4
+ import type { PageBuilderContextObject } from "@webiny/api-page-builder/graphql/types";
5
+ import type { SecurityIdentity, SecurityPermission } from "@webiny/api-security/types";
6
+ import type { I18NLocale } from "@webiny/api-i18n/types";
7
+ import type { Tenant } from "@webiny/api-tenancy/types";
8
+ import type { Topic } from "@webiny/pubsub/types";
9
+ import type { ApwScheduleActionCrud, ScheduleActionContext } from "./scheduler/types";
10
+ import type HandlerClient from "@webiny/handler-client/HandlerClient";
11
+ import type { PluginsContainer } from "@webiny/plugins";
12
+ import type { WcpContextObject } from "@webiny/api-wcp/types";
13
+ import type { MailerContext } from "@webiny/api-mailer/types";
15
14
  export interface ApwCmsEntry extends BaseCmsEntry {
16
15
  title: string;
17
16
  meta: {
@@ -46,7 +45,7 @@ export interface ListWhere {
46
45
  }
47
46
  export interface ListParams {
48
47
  where?: ListWhere;
49
- sort?: string[];
48
+ sort?: CmsEntryListSort;
50
49
  limit?: number;
51
50
  after?: string | null;
52
51
  }
@@ -77,10 +76,10 @@ export interface PageSettingsWithWorkflow extends PageSettings {
77
76
  export interface PageWithWorkflow extends Page {
78
77
  settings: PageSettingsWithWorkflow;
79
78
  }
80
- export declare type ApwOnPageBeforeCreateTopicParams = OnPageBeforeCreateTopicParams<PageWithWorkflow>;
81
- export declare type ApwOnPageBeforeCreateFromTopicParams = OnPageBeforeCreateFromTopicParams<PageWithWorkflow>;
82
- export declare type ApwOnPageBeforeUpdateTopicParams = OnPageBeforeUpdateTopicParams<PageWithWorkflow>;
83
- export declare type ApwOnPageBeforePublishTopicParams = OnPageBeforePublishTopicParams<PageWithWorkflow>;
79
+ export type ApwOnPageBeforeCreateTopicParams = OnPageBeforeCreateTopicParams<PageWithWorkflow>;
80
+ export type ApwOnPageBeforeCreateFromTopicParams = OnPageBeforeCreateFromTopicParams<PageWithWorkflow>;
81
+ export type ApwOnPageBeforeUpdateTopicParams = OnPageBeforeUpdateTopicParams<PageWithWorkflow>;
82
+ export type ApwOnPageBeforePublishTopicParams = OnPageBeforePublishTopicParams<PageWithWorkflow>;
84
83
  export declare enum WorkflowScopeTypes {
85
84
  DEFAULT = "default",
86
85
  CUSTOM = "custom"
@@ -99,7 +98,7 @@ export declare enum ApwWorkflowApplications {
99
98
  *
100
99
  * @category General
101
100
  */
102
- export interface CreatedBy {
101
+ export interface ApwIdentity {
103
102
  /**
104
103
  * ID if the user.
105
104
  */
@@ -117,8 +116,11 @@ export interface ApwBaseFields {
117
116
  id: string;
118
117
  entryId: string;
119
118
  createdOn: string;
119
+ modifiedOn: string | null;
120
120
  savedOn: string;
121
- createdBy: CreatedBy;
121
+ createdBy: ApwIdentity;
122
+ modifiedBy: ApwIdentity;
123
+ savedBy: ApwIdentity;
122
124
  }
123
125
  export interface ApwReviewer extends ApwBaseFields {
124
126
  identityId: string;
@@ -151,7 +153,7 @@ export interface ApwContentReviewStep {
151
153
  pendingChangeRequests: number;
152
154
  totalComments: number;
153
155
  signOffProvidedOn: string | null;
154
- signOffProvidedBy: CreatedBy | null;
156
+ signOffProvidedBy: ApwIdentity | null;
155
157
  }
156
158
  export interface ApwContentReview extends ApwBaseFields {
157
159
  title: string;
@@ -190,7 +192,7 @@ export declare enum ApwContentReviewStatus {
190
192
  READY_TO_BE_PUBLISHED = "readyToBePublished",
191
193
  PUBLISHED = "published"
192
194
  }
193
- export declare type ApwContentReviewListFilter = ApwContentReviewStatus | "requiresMyAttention";
195
+ export type ApwContentReviewListFilter = ApwContentReviewStatus | "requiresMyAttention";
194
196
  export interface ApwWorkflowStep<TReviewer = ApwReviewer> {
195
197
  title: string;
196
198
  type: ApwWorkflowStepTypes;
@@ -280,7 +282,7 @@ interface BaseApwCrud<TEntry, TCreateEntryParams, TUpdateEntryParams> {
280
282
  get(id: string): Promise<TEntry>;
281
283
  create(data: TCreateEntryParams): Promise<TEntry>;
282
284
  update(id: string, data: TUpdateEntryParams): Promise<TEntry>;
283
- delete(id: string): Promise<Boolean>;
285
+ delete(id: string): Promise<boolean>;
284
286
  }
285
287
  export interface ApwWorkflowCrud extends BaseApwCrud<ApwWorkflow, CreateApwWorkflowParams, UpdateApwWorkflowParams> {
286
288
  list(params?: ListWorkflowsParams): Promise<[ApwWorkflow[], ListMeta]>;
@@ -349,14 +351,14 @@ export interface ApwChangeRequestCrud extends BaseApwCrud<ApwChangeRequest, Crea
349
351
  }
350
352
  export interface ApwContentReviewCrud extends BaseApwCrud<ApwContentReview, CreateApwContentReviewParams, UpdateApwContentReviewParams> {
351
353
  list(params: ApwContentReviewListParams): Promise<[ApwContentReview[], ListMeta]>;
352
- provideSignOff(id: string, step: string): Promise<Boolean>;
353
- retractSignOff(id: string, step: string): Promise<Boolean>;
354
+ provideSignOff(id: string, step: string): Promise<boolean>;
355
+ retractSignOff(id: string, step: string): Promise<boolean>;
354
356
  isReviewRequired(data: ApwContentReviewContent): Promise<{
355
357
  isReviewRequired: boolean;
356
358
  contentReviewId?: string | null;
357
359
  }>;
358
- publishContent(id: string, datetime?: string): Promise<Boolean>;
359
- unpublishContent(id: string, datetime?: string): Promise<Boolean>;
360
+ publishContent(id: string, datetime?: string): Promise<boolean>;
361
+ unpublishContent(id: string, datetime?: string): Promise<boolean>;
360
362
  scheduleAction(data: ApwScheduleActionData): Promise<string>;
361
363
  deleteScheduledAction(id: string): Promise<boolean>;
362
364
  /**
@@ -370,15 +372,15 @@ export interface ApwContentReviewCrud extends BaseApwCrud<ApwContentReview, Crea
370
372
  onContentReviewAfterDelete: Topic<OnContentReviewAfterDeleteTopicParams>;
371
373
  onContentReviewBeforeList: Topic<OnContentReviewBeforeListTopicParams>;
372
374
  }
373
- export declare type ContentGetter = (id: string, settings: {
375
+ export type ContentGetter = (id: string, settings: {
374
376
  modelId?: string;
375
377
  }) => Promise<PageWithWorkflow | ApwCmsEntry | null>;
376
- export declare type ContentPublisher = (id: string, settings: {
378
+ export type ContentPublisher = (id: string, settings: {
377
379
  modelId?: string;
378
- }) => Promise<Boolean | null>;
379
- export declare type ContentUnPublisher = (id: string, settings: {
380
+ }) => Promise<boolean | null>;
381
+ export type ContentUnPublisher = (id: string, settings: {
380
382
  modelId?: string;
381
- }) => Promise<Boolean | null>;
383
+ }) => Promise<boolean | null>;
382
384
  export interface AdvancedPublishingWorkflow {
383
385
  addContentGetter: (type: ApwContentTypes, func: ContentGetter) => void;
384
386
  getContentGetter: (type: ApwContentTypes) => ContentGetter;
@@ -393,7 +395,7 @@ export interface AdvancedPublishingWorkflow {
393
395
  contentReview: ApwContentReviewCrud;
394
396
  scheduleAction: ApwScheduleActionCrud;
395
397
  }
396
- export interface ApwContext extends Context, MailerContext, AdminSettingsContext {
398
+ export interface ApwContext extends Context, MailerContext {
397
399
  apw: AdvancedPublishingWorkflow;
398
400
  pageBuilder: PageBuilderContextObject;
399
401
  wcp: WcpContextObject;
@@ -417,7 +419,7 @@ export interface CreateApwParams {
417
419
  interface StorageOperationsGetReviewerParams {
418
420
  id: string;
419
421
  }
420
- declare type StorageOperationsListReviewersParams = ApwReviewerListParams;
422
+ type StorageOperationsListReviewersParams = ApwReviewerListParams;
421
423
  interface CreateApwReviewerData {
422
424
  identityId: string;
423
425
  displayName: string | null;
@@ -446,8 +448,8 @@ interface StorageOperationsGetParams {
446
448
  interface StorageOperationsDeleteParams {
447
449
  id: string;
448
450
  }
449
- declare type StorageOperationsGetWorkflowParams = StorageOperationsGetParams;
450
- declare type StorageOperationsListWorkflowsParams = ListParams;
451
+ type StorageOperationsGetWorkflowParams = StorageOperationsGetParams;
452
+ type StorageOperationsListWorkflowsParams = ListParams;
451
453
  interface StorageOperationsCreateWorkflowParams {
452
454
  data: CreateApwWorkflowParams;
453
455
  }
@@ -455,8 +457,8 @@ interface StorageOperationsUpdateWorkflowParams {
455
457
  id: string;
456
458
  data: UpdateApwWorkflowParams;
457
459
  }
458
- declare type StorageOperationsDeleteWorkflowParams = StorageOperationsDeleteParams;
459
- declare type StorageOperationsGetContentReviewParams = StorageOperationsGetParams;
460
+ type StorageOperationsDeleteWorkflowParams = StorageOperationsDeleteParams;
461
+ type StorageOperationsGetContentReviewParams = StorageOperationsGetParams;
460
462
  export interface ApwContentReviewListParams extends ListParams {
461
463
  where: ListWhere & {
462
464
  reviewStatus?: ApwContentReviewListFilter;
@@ -466,7 +468,7 @@ export interface ApwContentReviewListParams extends ListParams {
466
468
  workflowId_in?: string[];
467
469
  };
468
470
  }
469
- declare type StorageOperationsListContentReviewsParams = ApwContentReviewListParams;
471
+ type StorageOperationsListContentReviewsParams = ApwContentReviewListParams;
470
472
  interface StorageOperationsCreateContentReviewParams {
471
473
  data: CreateApwContentReviewParams;
472
474
  }
@@ -474,9 +476,9 @@ interface StorageOperationsUpdateContentReviewParams {
474
476
  id: string;
475
477
  data: UpdateApwContentReviewParams;
476
478
  }
477
- declare type StorageOperationsDeleteContentReviewParams = StorageOperationsDeleteParams;
478
- declare type StorageOperationsGetChangeRequestParams = StorageOperationsGetParams;
479
- declare type StorageOperationsListChangeRequestsParams = ApwChangeRequestListParams;
479
+ type StorageOperationsDeleteContentReviewParams = StorageOperationsDeleteParams;
480
+ type StorageOperationsGetChangeRequestParams = StorageOperationsGetParams;
481
+ type StorageOperationsListChangeRequestsParams = ApwChangeRequestListParams;
480
482
  interface StorageOperationsCreateChangeRequestParams {
481
483
  data: CreateApwChangeRequestParams;
482
484
  }
@@ -484,10 +486,10 @@ interface StorageOperationsUpdateChangeRequestParams {
484
486
  id: string;
485
487
  data: UpdateApwChangeRequestParams;
486
488
  }
487
- declare type StorageOperationsDeleteChangeRequestParams = StorageOperationsDeleteParams;
488
- declare type StorageOperationsGetCommentParams = StorageOperationsGetParams;
489
- declare type StorageOperationsDeleteCommentParams = StorageOperationsDeleteParams;
490
- declare type StorageOperationsListCommentsParams = ApwCommentListParams;
489
+ type StorageOperationsDeleteChangeRequestParams = StorageOperationsDeleteParams;
490
+ type StorageOperationsGetCommentParams = StorageOperationsGetParams;
491
+ type StorageOperationsDeleteCommentParams = StorageOperationsDeleteParams;
492
+ type StorageOperationsListCommentsParams = ApwCommentListParams;
491
493
  interface StorageOperationsCreateCommentParams {
492
494
  data: CreateApwCommentParams;
493
495
  }
@@ -500,35 +502,35 @@ export interface ApwReviewerStorageOperations {
500
502
  listReviewers(params: StorageOperationsListReviewersParams): Promise<[ApwReviewer[], ListMeta]>;
501
503
  createReviewer(params: StorageOperationsCreateReviewerParams): Promise<ApwReviewer>;
502
504
  updateReviewer(params: StorageOperationsUpdateReviewerParams): Promise<ApwReviewer>;
503
- deleteReviewer(params: StorageOperationsDeleteReviewerParams): Promise<Boolean>;
505
+ deleteReviewer(params: StorageOperationsDeleteReviewerParams): Promise<boolean>;
504
506
  }
505
507
  export interface ApwWorkflowStorageOperations {
506
508
  getWorkflow(params: StorageOperationsGetWorkflowParams): Promise<ApwWorkflow>;
507
509
  listWorkflows(params: StorageOperationsListWorkflowsParams): Promise<[ApwWorkflow[], ListMeta]>;
508
510
  createWorkflow(params: StorageOperationsCreateWorkflowParams): Promise<ApwWorkflow>;
509
511
  updateWorkflow(params: StorageOperationsUpdateWorkflowParams): Promise<ApwWorkflow>;
510
- deleteWorkflow(params: StorageOperationsDeleteWorkflowParams): Promise<Boolean>;
512
+ deleteWorkflow(params: StorageOperationsDeleteWorkflowParams): Promise<boolean>;
511
513
  }
512
514
  export interface ApwContentReviewStorageOperations {
513
515
  getContentReview(params: StorageOperationsGetContentReviewParams): Promise<ApwContentReview>;
514
516
  listContentReviews(params: StorageOperationsListContentReviewsParams): Promise<[ApwContentReview[], ListMeta]>;
515
517
  createContentReview(params: StorageOperationsCreateContentReviewParams): Promise<ApwContentReview>;
516
518
  updateContentReview(params: StorageOperationsUpdateContentReviewParams): Promise<ApwContentReview>;
517
- deleteContentReview(params: StorageOperationsDeleteContentReviewParams): Promise<Boolean>;
519
+ deleteContentReview(params: StorageOperationsDeleteContentReviewParams): Promise<boolean>;
518
520
  }
519
521
  export interface ApwChangeRequestStorageOperations {
520
522
  getChangeRequest(params: StorageOperationsGetChangeRequestParams): Promise<ApwChangeRequest>;
521
523
  listChangeRequests(params: StorageOperationsListChangeRequestsParams): Promise<[ApwChangeRequest[], ListMeta]>;
522
524
  createChangeRequest(params: StorageOperationsCreateChangeRequestParams): Promise<ApwChangeRequest>;
523
525
  updateChangeRequest(params: StorageOperationsUpdateChangeRequestParams): Promise<ApwChangeRequest>;
524
- deleteChangeRequest(params: StorageOperationsDeleteChangeRequestParams): Promise<Boolean>;
526
+ deleteChangeRequest(params: StorageOperationsDeleteChangeRequestParams): Promise<boolean>;
525
527
  }
526
528
  export interface ApwCommentStorageOperations {
527
529
  getComment(params: StorageOperationsGetCommentParams): Promise<ApwComment>;
528
530
  listComments(params: StorageOperationsListCommentsParams): Promise<[ApwComment[], ListMeta]>;
529
531
  createComment(params: StorageOperationsCreateCommentParams): Promise<ApwComment>;
530
532
  updateComment(params: StorageOperationsUpdateCommentParams): Promise<ApwComment>;
531
- deleteComment(params: StorageOperationsDeleteCommentParams): Promise<Boolean>;
533
+ deleteComment(params: StorageOperationsDeleteCommentParams): Promise<boolean>;
532
534
  }
533
535
  export interface ApwStorageOperations extends ApwReviewerStorageOperations, ApwWorkflowStorageOperations, ApwContentReviewStorageOperations, ApwChangeRequestStorageOperations, ApwCommentStorageOperations {
534
536
  }
@@ -736,7 +738,6 @@ export interface OnWorkflowBeforeDeleteTopicParams {
736
738
  export interface OnWorkflowAfterDeleteTopicParams {
737
739
  workflow: ApwWorkflow;
738
740
  }
739
- export declare type WorkflowModelDefinition = Pick<CmsModel, "name" | "modelId" | "layout" | "titleFieldId" | "description" | "fields" | "isPrivate">;
740
741
  /**
741
742
  * Headless CMS
742
743
  */
package/types.js CHANGED
@@ -4,52 +4,144 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.WorkflowScopeTypes = exports.ApwWorkflowStepTypes = exports.ApwWorkflowApplications = exports.ApwContentTypes = exports.ApwContentReviewStepStatus = exports.ApwContentReviewStatus = void 0;
7
- let ApwContentTypes;
8
- exports.ApwContentTypes = ApwContentTypes;
9
- (function (ApwContentTypes) {
7
+ let ApwContentTypes = exports.ApwContentTypes = /*#__PURE__*/function (ApwContentTypes) {
10
8
  ApwContentTypes["PAGE"] = "page";
11
9
  ApwContentTypes["CMS_ENTRY"] = "cms_entry";
12
- })(ApwContentTypes || (exports.ApwContentTypes = ApwContentTypes = {}));
13
- let WorkflowScopeTypes;
14
- exports.WorkflowScopeTypes = WorkflowScopeTypes;
15
- (function (WorkflowScopeTypes) {
10
+ return ApwContentTypes;
11
+ }({});
12
+ let WorkflowScopeTypes = exports.WorkflowScopeTypes = /*#__PURE__*/function (WorkflowScopeTypes) {
16
13
  WorkflowScopeTypes["DEFAULT"] = "default";
17
14
  WorkflowScopeTypes["CUSTOM"] = "custom";
18
- })(WorkflowScopeTypes || (exports.WorkflowScopeTypes = WorkflowScopeTypes = {}));
19
- let ApwContentReviewStepStatus;
20
- exports.ApwContentReviewStepStatus = ApwContentReviewStepStatus;
21
- (function (ApwContentReviewStepStatus) {
15
+ return WorkflowScopeTypes;
16
+ }({});
17
+ let ApwContentReviewStepStatus = exports.ApwContentReviewStepStatus = /*#__PURE__*/function (ApwContentReviewStepStatus) {
22
18
  ApwContentReviewStepStatus["DONE"] = "done";
23
19
  ApwContentReviewStepStatus["ACTIVE"] = "active";
24
20
  ApwContentReviewStepStatus["INACTIVE"] = "inactive";
25
- })(ApwContentReviewStepStatus || (exports.ApwContentReviewStepStatus = ApwContentReviewStepStatus = {}));
26
- let ApwWorkflowApplications;
21
+ return ApwContentReviewStepStatus;
22
+ }({});
23
+ let ApwWorkflowApplications = exports.ApwWorkflowApplications = /*#__PURE__*/function (ApwWorkflowApplications) {
24
+ ApwWorkflowApplications["PB"] = "pageBuilder";
25
+ ApwWorkflowApplications["CMS"] = "cms";
26
+ return ApwWorkflowApplications;
27
+ }({});
27
28
  /**
28
29
  * A interface describing the reference to a user that created some data in the database.
29
30
  *
30
31
  * @category General
31
32
  */
32
- exports.ApwWorkflowApplications = ApwWorkflowApplications;
33
- (function (ApwWorkflowApplications) {
34
- ApwWorkflowApplications["PB"] = "pageBuilder";
35
- ApwWorkflowApplications["CMS"] = "cms";
36
- })(ApwWorkflowApplications || (exports.ApwWorkflowApplications = ApwWorkflowApplications = {}));
37
- let ApwWorkflowStepTypes;
38
- exports.ApwWorkflowStepTypes = ApwWorkflowStepTypes;
39
- (function (ApwWorkflowStepTypes) {
33
+ let ApwWorkflowStepTypes = exports.ApwWorkflowStepTypes = /*#__PURE__*/function (ApwWorkflowStepTypes) {
40
34
  ApwWorkflowStepTypes["MANDATORY_BLOCKING"] = "mandatoryBlocking";
41
35
  ApwWorkflowStepTypes["MANDATORY_NON_BLOCKING"] = "mandatoryNonBlocking";
42
36
  ApwWorkflowStepTypes["NON_MANDATORY"] = "notMandatory";
43
- })(ApwWorkflowStepTypes || (exports.ApwWorkflowStepTypes = ApwWorkflowStepTypes = {}));
44
- let ApwContentReviewStatus;
45
- exports.ApwContentReviewStatus = ApwContentReviewStatus;
46
- (function (ApwContentReviewStatus) {
37
+ return ApwWorkflowStepTypes;
38
+ }({});
39
+ let ApwContentReviewStatus = exports.ApwContentReviewStatus = /*#__PURE__*/function (ApwContentReviewStatus) {
47
40
  ApwContentReviewStatus["UNDER_REVIEW"] = "underReview";
48
41
  ApwContentReviewStatus["READY_TO_BE_PUBLISHED"] = "readyToBePublished";
49
42
  ApwContentReviewStatus["PUBLISHED"] = "published";
50
- })(ApwContentReviewStatus || (exports.ApwContentReviewStatus = ApwContentReviewStatus = {}));
51
- var ApwScheduleActionTypes;
52
- (function (ApwScheduleActionTypes) {
43
+ return ApwContentReviewStatus;
44
+ }({});
45
+ var ApwScheduleActionTypes = /*#__PURE__*/function (ApwScheduleActionTypes) {
53
46
  ApwScheduleActionTypes["PUBLISH"] = "publish";
54
47
  ApwScheduleActionTypes["UNPUBLISH"] = "unpublish";
55
- })(ApwScheduleActionTypes || (ApwScheduleActionTypes = {}));
48
+ return ApwScheduleActionTypes;
49
+ }(ApwScheduleActionTypes || {});
50
+ /**
51
+ * @category Lifecycle events
52
+ */
53
+ /**
54
+ * @category Lifecycle events
55
+ */
56
+ /**
57
+ * @category Lifecycle events
58
+ */
59
+ /**
60
+ * @category Lifecycle events
61
+ */
62
+ /**
63
+ * @category Lifecycle events
64
+ */
65
+ /**
66
+ * @category Lifecycle events
67
+ */
68
+ /**
69
+ * @category Lifecycle events
70
+ */
71
+ /**
72
+ * @category Lifecycle events
73
+ */
74
+ /**
75
+ * @category Lifecycle events
76
+ */
77
+ /**
78
+ * @category Lifecycle events
79
+ */
80
+ /**
81
+ * @category Lifecycle events
82
+ */
83
+ /**
84
+ * @category Lifecycle events
85
+ */
86
+ /**
87
+ * @category Lifecycle events
88
+ */
89
+ /**
90
+ * @category Lifecycle events
91
+ */
92
+ /**
93
+ * @category Lifecycle events
94
+ */
95
+ /**
96
+ * @category Lifecycle events
97
+ */
98
+ /**
99
+ * @category Lifecycle events
100
+ */
101
+ /**
102
+ * @category Lifecycle events
103
+ */
104
+ /**
105
+ * @category Lifecycle events
106
+ */
107
+ /**
108
+ * @category Lifecycle events
109
+ */
110
+ /**
111
+ * @category Lifecycle events
112
+ */
113
+ /**
114
+ * @category Lifecycle events
115
+ */
116
+ /**
117
+ * @category Lifecycle events
118
+ */
119
+ /**
120
+ * @category Lifecycle events
121
+ */
122
+ /**
123
+ * @category Lifecycle events
124
+ */
125
+ /**
126
+ * @category Lifecycle events
127
+ */
128
+ /**
129
+ * @category Lifecycle events
130
+ */
131
+ /**
132
+ * @category Lifecycle events
133
+ */
134
+ /**
135
+ * @category Lifecycle events
136
+ */
137
+ /**
138
+ * @category Lifecycle events
139
+ */
140
+ /**
141
+ * @category Lifecycle events
142
+ */
143
+ /**
144
+ * Headless CMS
145
+ */
146
+
147
+ //# sourceMappingURL=types.js.map