@webiny/api-apw 0.0.0-ee-vpcs.549378cf03

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 (316) hide show
  1. package/ApwChangeRequestNotification.d.ts +27 -0
  2. package/ApwChangeRequestNotification.js +40 -0
  3. package/ApwChangeRequestNotification.js.map +1 -0
  4. package/ApwCommentNotification.d.ts +27 -0
  5. package/ApwCommentNotification.js +40 -0
  6. package/ApwCommentNotification.js.map +1 -0
  7. package/ApwContentReviewNotification.d.ts +26 -0
  8. package/ApwContentReviewNotification.js +40 -0
  9. package/ApwContentReviewNotification.js.map +1 -0
  10. package/ApwContentUrlPlugin.d.ts +19 -0
  11. package/ApwContentUrlPlugin.js +40 -0
  12. package/ApwContentUrlPlugin.js.map +1 -0
  13. package/ContentApwSettingsPlugin.d.ts +10 -0
  14. package/ContentApwSettingsPlugin.js +17 -0
  15. package/ContentApwSettingsPlugin.js.map +1 -0
  16. package/LICENSE +21 -0
  17. package/README.md +34 -0
  18. package/crud/createChangeRequestMethods.d.ts +2 -0
  19. package/crud/createChangeRequestMethods.js +98 -0
  20. package/crud/createChangeRequestMethods.js.map +1 -0
  21. package/crud/createCommentMethods.d.ts +2 -0
  22. package/crud/createCommentMethods.js +99 -0
  23. package/crud/createCommentMethods.js.map +1 -0
  24. package/crud/createContentReviewMethods.d.ts +10 -0
  25. package/crud/createContentReviewMethods.js +562 -0
  26. package/crud/createContentReviewMethods.js.map +1 -0
  27. package/crud/createReviewerMethods.d.ts +2 -0
  28. package/crud/createReviewerMethods.js +99 -0
  29. package/crud/createReviewerMethods.js.map +1 -0
  30. package/crud/createWorkflowMethods.d.ts +2 -0
  31. package/crud/createWorkflowMethods.js +118 -0
  32. package/crud/createWorkflowMethods.js.map +1 -0
  33. package/crud/index.d.ts +2 -0
  34. package/crud/index.js +96 -0
  35. package/crud/index.js.map +1 -0
  36. package/crud/utils.d.ts +21 -0
  37. package/crud/utils.js +138 -0
  38. package/crud/utils.js.map +1 -0
  39. package/index.d.ts +4 -0
  40. package/index.js +38 -0
  41. package/index.js.map +1 -0
  42. package/package.json +76 -0
  43. package/plugins/cms/CmsEntryApwSettingsGetterPlugin.d.ts +10 -0
  44. package/plugins/cms/CmsEntryApwSettingsGetterPlugin.js +51 -0
  45. package/plugins/cms/CmsEntryApwSettingsGetterPlugin.js.map +1 -0
  46. package/plugins/cms/README.md +49 -0
  47. package/plugins/cms/apwEntryPlugins.d.ts +8 -0
  48. package/plugins/cms/apwEntryPlugins.js +46 -0
  49. package/plugins/cms/apwEntryPlugins.js.map +1 -0
  50. package/plugins/cms/index.d.ts +12 -0
  51. package/plugins/cms/index.js +45 -0
  52. package/plugins/cms/index.js.map +1 -0
  53. package/plugins/cms/linkContentReviewToEntry.d.ts +8 -0
  54. package/plugins/cms/linkContentReviewToEntry.js +108 -0
  55. package/plugins/cms/linkContentReviewToEntry.js.map +1 -0
  56. package/plugins/cms/linkWorkflowToEntry.d.ts +8 -0
  57. package/plugins/cms/linkWorkflowToEntry.js +166 -0
  58. package/plugins/cms/linkWorkflowToEntry.js.map +1 -0
  59. package/plugins/cms/notifications/changeRequestNotification.d.ts +1 -0
  60. package/plugins/cms/notifications/changeRequestNotification.js +35 -0
  61. package/plugins/cms/notifications/changeRequestNotification.js.map +1 -0
  62. package/plugins/cms/notifications/commentNotification.d.ts +1 -0
  63. package/plugins/cms/notifications/commentNotification.js +35 -0
  64. package/plugins/cms/notifications/commentNotification.js.map +1 -0
  65. package/plugins/cms/notifications/contentReviewNotification.d.ts +1 -0
  66. package/plugins/cms/notifications/contentReviewNotification.js +35 -0
  67. package/plugins/cms/notifications/contentReviewNotification.js.map +1 -0
  68. package/plugins/cms/notifications/contentUrl.d.ts +8 -0
  69. package/plugins/cms/notifications/contentUrl.js +60 -0
  70. package/plugins/cms/notifications/contentUrl.js.map +1 -0
  71. package/plugins/cms/triggerContentReview.d.ts +8 -0
  72. package/plugins/cms/triggerContentReview.js +59 -0
  73. package/plugins/cms/triggerContentReview.js.map +1 -0
  74. package/plugins/cms/updateContentReviewStatus.d.ts +10 -0
  75. package/plugins/cms/updateContentReviewStatus.js +97 -0
  76. package/plugins/cms/updateContentReviewStatus.js.map +1 -0
  77. package/plugins/cms/utils.d.ts +27 -0
  78. package/plugins/cms/utils.js +207 -0
  79. package/plugins/cms/utils.js.map +1 -0
  80. package/plugins/context.d.ts +5 -0
  81. package/plugins/context.js +146 -0
  82. package/plugins/context.js.map +1 -0
  83. package/plugins/graphql/changeRequest.gql.d.ts +4 -0
  84. package/plugins/graphql/changeRequest.gql.js +155 -0
  85. package/plugins/graphql/changeRequest.gql.js.map +1 -0
  86. package/plugins/graphql/comment.gql.d.ts +4 -0
  87. package/plugins/graphql/comment.gql.js +160 -0
  88. package/plugins/graphql/comment.gql.js.map +1 -0
  89. package/plugins/graphql/contentReview.gql.d.ts +4 -0
  90. package/plugins/graphql/contentReview.gql.js +382 -0
  91. package/plugins/graphql/contentReview.gql.js.map +1 -0
  92. package/plugins/graphql/reviewer.gql.d.ts +4 -0
  93. package/plugins/graphql/reviewer.gql.js +116 -0
  94. package/plugins/graphql/reviewer.gql.js.map +1 -0
  95. package/plugins/graphql/workflow.gql.d.ts +4 -0
  96. package/plugins/graphql/workflow.gql.js +205 -0
  97. package/plugins/graphql/workflow.gql.js.map +1 -0
  98. package/plugins/graphql.d.ts +4 -0
  99. package/plugins/graphql.js +95 -0
  100. package/plugins/graphql.js.map +1 -0
  101. package/plugins/hooks/createReviewerFromIdentity.d.ts +2 -0
  102. package/plugins/hooks/createReviewerFromIdentity.js +82 -0
  103. package/plugins/hooks/createReviewerFromIdentity.js.map +1 -0
  104. package/plugins/hooks/deleteChangeRequestsAfterContentReview.d.ts +2 -0
  105. package/plugins/hooks/deleteChangeRequestsAfterContentReview.js +67 -0
  106. package/plugins/hooks/deleteChangeRequestsAfterContentReview.js.map +1 -0
  107. package/plugins/hooks/deleteCommentsAfterChangeRequest.d.ts +2 -0
  108. package/plugins/hooks/deleteCommentsAfterChangeRequest.js +59 -0
  109. package/plugins/hooks/deleteCommentsAfterChangeRequest.js.map +1 -0
  110. package/plugins/hooks/index.d.ts +3 -0
  111. package/plugins/hooks/index.js +74 -0
  112. package/plugins/hooks/index.js.map +1 -0
  113. package/plugins/hooks/initializeContentReviewSteps.d.ts +2 -0
  114. package/plugins/hooks/initializeContentReviewSteps.js +86 -0
  115. package/plugins/hooks/initializeContentReviewSteps.js.map +1 -0
  116. package/plugins/hooks/initializeNotifications.d.ts +2 -0
  117. package/plugins/hooks/initializeNotifications.js +20 -0
  118. package/plugins/hooks/initializeNotifications.js.map +1 -0
  119. package/plugins/hooks/listContentReviews.d.ts +10 -0
  120. package/plugins/hooks/listContentReviews.js +68 -0
  121. package/plugins/hooks/listContentReviews.js.map +1 -0
  122. package/plugins/hooks/notifications/appUrl.d.ts +2 -0
  123. package/plugins/hooks/notifications/appUrl.js +22 -0
  124. package/plugins/hooks/notifications/appUrl.js.map +1 -0
  125. package/plugins/hooks/notifications/changeRequestAfterCreate.d.ts +2 -0
  126. package/plugins/hooks/notifications/changeRequestAfterCreate.js +144 -0
  127. package/plugins/hooks/notifications/changeRequestAfterCreate.js.map +1 -0
  128. package/plugins/hooks/notifications/changeRequestUrl.d.ts +8 -0
  129. package/plugins/hooks/notifications/changeRequestUrl.js +31 -0
  130. package/plugins/hooks/notifications/changeRequestUrl.js.map +1 -0
  131. package/plugins/hooks/notifications/commentAfterCreate.d.ts +2 -0
  132. package/plugins/hooks/notifications/commentAfterCreate.js +157 -0
  133. package/plugins/hooks/notifications/commentAfterCreate.js.map +1 -0
  134. package/plugins/hooks/notifications/commentUrl.d.ts +8 -0
  135. package/plugins/hooks/notifications/commentUrl.js +31 -0
  136. package/plugins/hooks/notifications/commentUrl.js.map +1 -0
  137. package/plugins/hooks/notifications/contentReviewAfterCreate.d.ts +2 -0
  138. package/plugins/hooks/notifications/contentReviewAfterCreate.js +122 -0
  139. package/plugins/hooks/notifications/contentReviewAfterCreate.js.map +1 -0
  140. package/plugins/hooks/notifications/contentReviewUrl.d.ts +7 -0
  141. package/plugins/hooks/notifications/contentReviewUrl.js +30 -0
  142. package/plugins/hooks/notifications/contentReviewUrl.js.map +1 -0
  143. package/plugins/hooks/notifications/contentUrl.d.ts +7 -0
  144. package/plugins/hooks/notifications/contentUrl.js +29 -0
  145. package/plugins/hooks/notifications/contentUrl.js.map +1 -0
  146. package/plugins/hooks/notifications/lastChangeRequestNotificationPlugin.d.ts +11 -0
  147. package/plugins/hooks/notifications/lastChangeRequestNotificationPlugin.js +25 -0
  148. package/plugins/hooks/notifications/lastChangeRequestNotificationPlugin.js.map +1 -0
  149. package/plugins/hooks/notifications/lastCommentNotificationPlugin.d.ts +11 -0
  150. package/plugins/hooks/notifications/lastCommentNotificationPlugin.js +25 -0
  151. package/plugins/hooks/notifications/lastCommentNotificationPlugin.js.map +1 -0
  152. package/plugins/hooks/notifications/lastContentReviewNotificationPlugin.d.ts +11 -0
  153. package/plugins/hooks/notifications/lastContentReviewNotificationPlugin.js +25 -0
  154. package/plugins/hooks/notifications/lastContentReviewNotificationPlugin.js.map +1 -0
  155. package/plugins/hooks/notifications/reviewers.d.ts +15 -0
  156. package/plugins/hooks/notifications/reviewers.js +51 -0
  157. package/plugins/hooks/notifications/reviewers.js.map +1 -0
  158. package/plugins/hooks/notifications/sendChangeRequestNotification.d.ts +2 -0
  159. package/plugins/hooks/notifications/sendChangeRequestNotification.js +52 -0
  160. package/plugins/hooks/notifications/sendChangeRequestNotification.js.map +1 -0
  161. package/plugins/hooks/notifications/sendCommentNotification.d.ts +2 -0
  162. package/plugins/hooks/notifications/sendCommentNotification.js +52 -0
  163. package/plugins/hooks/notifications/sendCommentNotification.js.map +1 -0
  164. package/plugins/hooks/notifications/sendContentReviewNotification.d.ts +2 -0
  165. package/plugins/hooks/notifications/sendContentReviewNotification.js +52 -0
  166. package/plugins/hooks/notifications/sendContentReviewNotification.js.map +1 -0
  167. package/plugins/hooks/updatePendingChangeRequests.d.ts +2 -0
  168. package/plugins/hooks/updatePendingChangeRequests.js +94 -0
  169. package/plugins/hooks/updatePendingChangeRequests.js.map +1 -0
  170. package/plugins/hooks/updateTotalComments.d.ts +3 -0
  171. package/plugins/hooks/updateTotalComments.js +153 -0
  172. package/plugins/hooks/updateTotalComments.js.map +1 -0
  173. package/plugins/hooks/validateChangeRequest.d.ts +2 -0
  174. package/plugins/hooks/validateChangeRequest.js +89 -0
  175. package/plugins/hooks/validateChangeRequest.js.map +1 -0
  176. package/plugins/hooks/validateComment.d.ts +2 -0
  177. package/plugins/hooks/validateComment.js +57 -0
  178. package/plugins/hooks/validateComment.js.map +1 -0
  179. package/plugins/hooks/validateContentReview.d.ts +2 -0
  180. package/plugins/hooks/validateContentReview.js +38 -0
  181. package/plugins/hooks/validateContentReview.js.map +1 -0
  182. package/plugins/pageBuilder/PageApwSettingsGetterPlugin.d.ts +9 -0
  183. package/plugins/pageBuilder/PageApwSettingsGetterPlugin.js +51 -0
  184. package/plugins/pageBuilder/PageApwSettingsGetterPlugin.js.map +1 -0
  185. package/plugins/pageBuilder/apwContentPagePlugins.d.ts +3 -0
  186. package/plugins/pageBuilder/apwContentPagePlugins.js +30 -0
  187. package/plugins/pageBuilder/apwContentPagePlugins.js.map +1 -0
  188. package/plugins/pageBuilder/extendPbPageSettingsSchema.d.ts +3 -0
  189. package/plugins/pageBuilder/extendPbPageSettingsSchema.js +25 -0
  190. package/plugins/pageBuilder/extendPbPageSettingsSchema.js.map +1 -0
  191. package/plugins/pageBuilder/index.d.ts +11 -0
  192. package/plugins/pageBuilder/index.js +53 -0
  193. package/plugins/pageBuilder/index.js.map +1 -0
  194. package/plugins/pageBuilder/linkContentReviewToPage.d.ts +8 -0
  195. package/plugins/pageBuilder/linkContentReviewToPage.js +105 -0
  196. package/plugins/pageBuilder/linkContentReviewToPage.js.map +1 -0
  197. package/plugins/pageBuilder/linkWorkflowToPage.d.ts +8 -0
  198. package/plugins/pageBuilder/linkWorkflowToPage.js +194 -0
  199. package/plugins/pageBuilder/linkWorkflowToPage.js.map +1 -0
  200. package/plugins/pageBuilder/notifications/changeRequestNotification.d.ts +1 -0
  201. package/plugins/pageBuilder/notifications/changeRequestNotification.js +35 -0
  202. package/plugins/pageBuilder/notifications/changeRequestNotification.js.map +1 -0
  203. package/plugins/pageBuilder/notifications/commentNotification.d.ts +1 -0
  204. package/plugins/pageBuilder/notifications/commentNotification.js +35 -0
  205. package/plugins/pageBuilder/notifications/commentNotification.js.map +1 -0
  206. package/plugins/pageBuilder/notifications/contentReviewNotification.d.ts +1 -0
  207. package/plugins/pageBuilder/notifications/contentReviewNotification.js +35 -0
  208. package/plugins/pageBuilder/notifications/contentReviewNotification.js.map +1 -0
  209. package/plugins/pageBuilder/notifications/contentUrl.d.ts +1 -0
  210. package/plugins/pageBuilder/notifications/contentUrl.js +53 -0
  211. package/plugins/pageBuilder/notifications/contentUrl.js.map +1 -0
  212. package/plugins/pageBuilder/triggerContentReview.d.ts +8 -0
  213. package/plugins/pageBuilder/triggerContentReview.js +50 -0
  214. package/plugins/pageBuilder/triggerContentReview.js.map +1 -0
  215. package/plugins/pageBuilder/updateContentReviewStatus.d.ts +10 -0
  216. package/plugins/pageBuilder/updateContentReviewStatus.js +79 -0
  217. package/plugins/pageBuilder/updateContentReviewStatus.js.map +1 -0
  218. package/plugins/pageBuilder/utils.d.ts +22 -0
  219. package/plugins/pageBuilder/utils.js +184 -0
  220. package/plugins/pageBuilder/utils.js.map +1 -0
  221. package/plugins/utils.d.ts +35 -0
  222. package/plugins/utils.js +187 -0
  223. package/plugins/utils.js.map +1 -0
  224. package/scheduler/createScheduleActionMethods.d.ts +2 -0
  225. package/scheduler/createScheduleActionMethods.js +149 -0
  226. package/scheduler/createScheduleActionMethods.js.map +1 -0
  227. package/scheduler/handlers/executeAction/index.d.ts +13 -0
  228. package/scheduler/handlers/executeAction/index.js +172 -0
  229. package/scheduler/handlers/executeAction/index.js.map +1 -0
  230. package/scheduler/handlers/executeAction/plugins/ApplicationGraphQL.d.ts +13 -0
  231. package/scheduler/handlers/executeAction/plugins/ApplicationGraphQL.js +17 -0
  232. package/scheduler/handlers/executeAction/plugins/ApplicationGraphQL.js.map +1 -0
  233. package/scheduler/handlers/executeAction/plugins/HeadlessCMSGraphQL.d.ts +11 -0
  234. package/scheduler/handlers/executeAction/plugins/HeadlessCMSGraphQL.js +126 -0
  235. package/scheduler/handlers/executeAction/plugins/HeadlessCMSGraphQL.js.map +1 -0
  236. package/scheduler/handlers/executeAction/plugins/PageBuilderGraphQL.d.ts +11 -0
  237. package/scheduler/handlers/executeAction/plugins/PageBuilderGraphQL.js +163 -0
  238. package/scheduler/handlers/executeAction/plugins/PageBuilderGraphQL.js.map +1 -0
  239. package/scheduler/handlers/executeAction/security.d.ts +4 -0
  240. package/scheduler/handlers/executeAction/security.js +68 -0
  241. package/scheduler/handlers/executeAction/security.js.map +1 -0
  242. package/scheduler/handlers/scheduleAction/index.d.ts +22 -0
  243. package/scheduler/handlers/scheduleAction/index.js +164 -0
  244. package/scheduler/handlers/scheduleAction/index.js.map +1 -0
  245. package/scheduler/handlers/scheduleAction/scheduleAction.utils.d.ts +24 -0
  246. package/scheduler/handlers/scheduleAction/scheduleAction.utils.js +172 -0
  247. package/scheduler/handlers/scheduleAction/scheduleAction.utils.js.map +1 -0
  248. package/scheduler/handlers/utils.d.ts +33 -0
  249. package/scheduler/handlers/utils.js +168 -0
  250. package/scheduler/handlers/utils.js.map +1 -0
  251. package/scheduler/index.d.ts +2 -0
  252. package/scheduler/index.js +27 -0
  253. package/scheduler/index.js.map +1 -0
  254. package/scheduler/types.d.ts +171 -0
  255. package/scheduler/types.js +34 -0
  256. package/scheduler/types.js.map +1 -0
  257. package/storageOperations/changeRequestStorageOperations.d.ts +3 -0
  258. package/storageOperations/changeRequestStorageOperations.js +122 -0
  259. package/storageOperations/changeRequestStorageOperations.js.map +1 -0
  260. package/storageOperations/commentStorageOperations.d.ts +3 -0
  261. package/storageOperations/commentStorageOperations.js +138 -0
  262. package/storageOperations/commentStorageOperations.js.map +1 -0
  263. package/storageOperations/contentReviewStorageOperations.d.ts +3 -0
  264. package/storageOperations/contentReviewStorageOperations.js +93 -0
  265. package/storageOperations/contentReviewStorageOperations.js.map +1 -0
  266. package/storageOperations/index.d.ts +15 -0
  267. package/storageOperations/index.js +48 -0
  268. package/storageOperations/index.js.map +1 -0
  269. package/storageOperations/models/changeRequest.model.d.ts +3 -0
  270. package/storageOperations/models/changeRequest.model.js +59 -0
  271. package/storageOperations/models/changeRequest.model.js.map +1 -0
  272. package/storageOperations/models/comment.model.d.ts +7 -0
  273. package/storageOperations/models/comment.model.js +60 -0
  274. package/storageOperations/models/comment.model.js.map +1 -0
  275. package/storageOperations/models/contentModelPluginFactory.d.ts +15 -0
  276. package/storageOperations/models/contentModelPluginFactory.js +28 -0
  277. package/storageOperations/models/contentModelPluginFactory.js.map +1 -0
  278. package/storageOperations/models/contentReview.model.d.ts +7 -0
  279. package/storageOperations/models/contentReview.model.js +258 -0
  280. package/storageOperations/models/contentReview.model.js.map +1 -0
  281. package/storageOperations/models/index.d.ts +2 -0
  282. package/storageOperations/models/index.js +115 -0
  283. package/storageOperations/models/index.js.map +1 -0
  284. package/storageOperations/models/reviewer.model.d.ts +3 -0
  285. package/storageOperations/models/reviewer.model.js +71 -0
  286. package/storageOperations/models/reviewer.model.js.map +1 -0
  287. package/storageOperations/models/utils.d.ts +3 -0
  288. package/storageOperations/models/utils.js +37 -0
  289. package/storageOperations/models/utils.js.map +1 -0
  290. package/storageOperations/models/workflow.model.d.ts +12 -0
  291. package/storageOperations/models/workflow.model.js +208 -0
  292. package/storageOperations/models/workflow.model.js.map +1 -0
  293. package/storageOperations/reviewerStorageOperations.d.ts +3 -0
  294. package/storageOperations/reviewerStorageOperations.js +97 -0
  295. package/storageOperations/reviewerStorageOperations.js.map +1 -0
  296. package/storageOperations/types.d.ts +34 -0
  297. package/storageOperations/types.js +5 -0
  298. package/storageOperations/types.js.map +1 -0
  299. package/storageOperations/workflowStorageOperations.d.ts +3 -0
  300. package/storageOperations/workflowStorageOperations.js +111 -0
  301. package/storageOperations/workflowStorageOperations.js.map +1 -0
  302. package/types.d.ts +752 -0
  303. package/types.js +69 -0
  304. package/types.js.map +1 -0
  305. package/utils/contentApwSettingsPlugin.d.ts +9 -0
  306. package/utils/contentApwSettingsPlugin.js +26 -0
  307. package/utils/contentApwSettingsPlugin.js.map +1 -0
  308. package/utils/errors.d.ts +16 -0
  309. package/utils/errors.js +75 -0
  310. package/utils/errors.js.map +1 -0
  311. package/utils/fieldResolver.d.ts +16 -0
  312. package/utils/fieldResolver.js +54 -0
  313. package/utils/fieldResolver.js.map +1 -0
  314. package/utils/resolve.d.ts +3 -0
  315. package/utils/resolve.js +18 -0
  316. package/utils/resolve.js.map +1 -0
package/types.d.ts ADDED
@@ -0,0 +1,752 @@
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";
15
+ export interface ApwCmsEntry extends BaseCmsEntry {
16
+ title: string;
17
+ meta: {
18
+ apw?: {
19
+ contentReviewId?: string | null;
20
+ workflowId?: string | null;
21
+ };
22
+ };
23
+ }
24
+ export interface ApwFile {
25
+ id: string;
26
+ key: string;
27
+ size: number;
28
+ type: string;
29
+ name: string;
30
+ }
31
+ export interface ListWhere {
32
+ /**
33
+ * Fields.
34
+ */
35
+ id?: string;
36
+ id_in?: string[];
37
+ id_not?: string;
38
+ id_not_in?: string[];
39
+ /**
40
+ * Who created the entry?
41
+ */
42
+ createdBy?: string;
43
+ createdBy_not?: string;
44
+ createdBy_in?: string[];
45
+ createdBy_not_in?: string[];
46
+ }
47
+ export interface ListParams {
48
+ where?: ListWhere;
49
+ sort?: string[];
50
+ limit?: number;
51
+ after?: string | null;
52
+ }
53
+ export interface ListMeta {
54
+ /**
55
+ * A cursor for pagination.
56
+ */
57
+ cursor: string | null;
58
+ /**
59
+ * Is there more items to load?
60
+ */
61
+ hasMoreItems: boolean;
62
+ /**
63
+ * Total count of the items in the storage.
64
+ */
65
+ totalCount: number;
66
+ }
67
+ export declare enum ApwContentTypes {
68
+ PAGE = "page",
69
+ CMS_ENTRY = "cms_entry"
70
+ }
71
+ export interface PageSettingsWithWorkflow extends PageSettings {
72
+ apw: {
73
+ workflowId: string;
74
+ contentReviewId: string | null;
75
+ };
76
+ }
77
+ export interface PageWithWorkflow extends Page {
78
+ settings: PageSettingsWithWorkflow;
79
+ }
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>;
84
+ export declare enum WorkflowScopeTypes {
85
+ DEFAULT = "default",
86
+ CUSTOM = "custom"
87
+ }
88
+ export declare enum ApwContentReviewStepStatus {
89
+ DONE = "done",
90
+ ACTIVE = "active",
91
+ INACTIVE = "inactive"
92
+ }
93
+ export declare enum ApwWorkflowApplications {
94
+ PB = "pageBuilder",
95
+ CMS = "cms"
96
+ }
97
+ /**
98
+ * A interface describing the reference to a user that created some data in the database.
99
+ *
100
+ * @category General
101
+ */
102
+ export interface CreatedBy {
103
+ /**
104
+ * ID if the user.
105
+ */
106
+ id: string;
107
+ /**
108
+ * Full name of the user.
109
+ */
110
+ displayName: string | null;
111
+ /**
112
+ * Type of the user (admin, user)
113
+ */
114
+ type: string;
115
+ }
116
+ export interface ApwBaseFields {
117
+ id: string;
118
+ entryId: string;
119
+ createdOn: string;
120
+ savedOn: string;
121
+ createdBy: CreatedBy;
122
+ }
123
+ export interface ApwReviewer extends ApwBaseFields {
124
+ identityId: string;
125
+ displayName: string | null;
126
+ type: string;
127
+ email?: string;
128
+ }
129
+ export interface ApwReviewerWithEmail extends Omit<ApwReviewer, "email"> {
130
+ email: string;
131
+ }
132
+ export interface ApwComment extends ApwBaseFields {
133
+ body: Record<string, any>;
134
+ changeRequest: string;
135
+ step: string;
136
+ media: ApwFile;
137
+ }
138
+ export interface ApwChangeRequest extends ApwBaseFields {
139
+ body: Record<string, any>;
140
+ title: string;
141
+ resolved: boolean;
142
+ step: string;
143
+ media: ApwFile;
144
+ }
145
+ export interface ApwContentReviewStep {
146
+ type: ApwWorkflowStepTypes;
147
+ title: string;
148
+ slug: string;
149
+ reviewers: ApwReviewer[];
150
+ status: ApwContentReviewStepStatus;
151
+ pendingChangeRequests: number;
152
+ totalComments: number;
153
+ signOffProvidedOn: string | null;
154
+ signOffProvidedBy: CreatedBy | null;
155
+ }
156
+ export interface ApwContentReview extends ApwBaseFields {
157
+ title: string;
158
+ reviewStatus: ApwContentReviewStatus;
159
+ content: ApwContentReviewContent;
160
+ steps: Array<ApwContentReviewStep>;
161
+ latestCommentId: string | null;
162
+ workflowId: string;
163
+ }
164
+ export interface ApwWorkflow extends ApwBaseFields {
165
+ title: string;
166
+ steps: ApwWorkflowStep[];
167
+ scope: ApwWorkflowScope;
168
+ app: ApwWorkflowApplications;
169
+ }
170
+ interface ApwWorkflowScopeCmsEntry {
171
+ id: string;
172
+ modelId: string;
173
+ }
174
+ export interface ApwWorkflowScope {
175
+ type: WorkflowScopeTypes;
176
+ data: {
177
+ categories?: string[];
178
+ pages?: string[];
179
+ models?: string[];
180
+ entries?: ApwWorkflowScopeCmsEntry[];
181
+ };
182
+ }
183
+ export declare enum ApwWorkflowStepTypes {
184
+ MANDATORY_BLOCKING = "mandatoryBlocking",
185
+ MANDATORY_NON_BLOCKING = "mandatoryNonBlocking",
186
+ NON_MANDATORY = "notMandatory"
187
+ }
188
+ export declare enum ApwContentReviewStatus {
189
+ UNDER_REVIEW = "underReview",
190
+ READY_TO_BE_PUBLISHED = "readyToBePublished",
191
+ PUBLISHED = "published"
192
+ }
193
+ export declare type ApwContentReviewListFilter = ApwContentReviewStatus | "requiresMyAttention";
194
+ export interface ApwWorkflowStep<TReviewer = ApwReviewer> {
195
+ title: string;
196
+ type: ApwWorkflowStepTypes;
197
+ reviewers: TReviewer[];
198
+ id: string;
199
+ }
200
+ export interface ApwContentReviewStep extends ApwWorkflowStep {
201
+ status: ApwContentReviewStepStatus;
202
+ pendingChangeRequests: number;
203
+ }
204
+ export interface CreateApwWorkflowParams<TReviewer = string> {
205
+ app: ApwWorkflowApplications;
206
+ title: string;
207
+ scope: ApwWorkflowScope;
208
+ steps: ApwWorkflowStep<TReviewer>[];
209
+ }
210
+ export interface UpdateApwWorkflowParams<TReviewer = string> {
211
+ title?: string;
212
+ scope?: ApwWorkflowScope;
213
+ steps?: ApwWorkflowStep<TReviewer>[];
214
+ }
215
+ export interface ListWorkflowsParams extends ListParams {
216
+ where?: ListWhere & {
217
+ app?: ApwWorkflowApplications;
218
+ };
219
+ }
220
+ interface CreateApwCommentParams {
221
+ body: Record<string, any>;
222
+ changeRequest: string;
223
+ step: string;
224
+ media: ApwFile;
225
+ }
226
+ interface UpdateApwCommentParams {
227
+ body: Record<string, any>;
228
+ }
229
+ interface CreateApwChangeRequestParams {
230
+ title: string;
231
+ step: string;
232
+ body: Record<string, any>;
233
+ resolved: boolean;
234
+ media: Record<string, any>;
235
+ }
236
+ interface UpdateApwChangeRequestParams {
237
+ title: string;
238
+ body: Record<string, any>;
239
+ resolved: boolean;
240
+ media: Record<string, any>;
241
+ }
242
+ declare enum ApwScheduleActionTypes {
243
+ PUBLISH = "publish",
244
+ UNPUBLISH = "unpublish"
245
+ }
246
+ export interface ApwScheduleActionData {
247
+ action: ApwScheduleActionTypes;
248
+ type: ApwContentTypes;
249
+ datetime: string;
250
+ entryId: string;
251
+ /**
252
+ * We will add modelId to the data for now.
253
+ * TODO extract in separate package?
254
+ */
255
+ modelId?: string;
256
+ }
257
+ export interface ApwContentReviewContent {
258
+ id: string;
259
+ type: ApwContentTypes;
260
+ settings: {
261
+ modelId?: string;
262
+ };
263
+ scheduledOn?: string | null;
264
+ scheduledBy?: string | null;
265
+ scheduledActionId?: string | null;
266
+ publishedBy?: string | null;
267
+ }
268
+ export interface CreateApwContentReviewParams {
269
+ content: ApwContentReviewContent;
270
+ reviewStatus: ApwContentReviewStatus;
271
+ workflowId?: string;
272
+ }
273
+ export interface UpdateApwContentReviewParams {
274
+ title?: string;
275
+ steps?: ApwContentReviewStep[];
276
+ reviewStatus?: ApwContentReviewStatus;
277
+ content?: ApwContentReviewContent;
278
+ }
279
+ interface BaseApwCrud<TEntry, TCreateEntryParams, TUpdateEntryParams> {
280
+ get(id: string): Promise<TEntry>;
281
+ create(data: TCreateEntryParams): Promise<TEntry>;
282
+ update(id: string, data: TUpdateEntryParams): Promise<TEntry>;
283
+ delete(id: string): Promise<Boolean>;
284
+ }
285
+ export interface ApwWorkflowCrud extends BaseApwCrud<ApwWorkflow, CreateApwWorkflowParams, UpdateApwWorkflowParams> {
286
+ list(params?: ListWorkflowsParams): Promise<[ApwWorkflow[], ListMeta]>;
287
+ /**
288
+ * Lifecycle events
289
+ */
290
+ onWorkflowBeforeCreate: Topic<OnWorkflowBeforeCreateTopicParams>;
291
+ onWorkflowAfterCreate: Topic<OnWorkflowAfterCreateTopicParams>;
292
+ onWorkflowBeforeUpdate: Topic<OnWorkflowBeforeUpdateTopicParams>;
293
+ onWorkflowAfterUpdate: Topic<OnWorkflowAfterUpdateTopicParams>;
294
+ onWorkflowBeforeDelete: Topic<OnWorkflowBeforeDeleteTopicParams>;
295
+ onWorkflowAfterDelete: Topic<OnWorkflowAfterDeleteTopicParams>;
296
+ }
297
+ export interface ApwReviewerListParams extends ListParams {
298
+ where: ListParams["where"] & {
299
+ identityId?: string;
300
+ };
301
+ }
302
+ export interface ApwReviewerCrud extends BaseApwCrud<ApwReviewer, CreateApwReviewerData, UpdateApwReviewerData> {
303
+ list(params: ApwReviewerListParams): Promise<[ApwReviewer[], ListMeta]>;
304
+ /**
305
+ * Lifecycle events
306
+ */
307
+ onReviewerBeforeCreate: Topic<OnReviewerBeforeCreateTopicParams>;
308
+ onReviewerAfterCreate: Topic<OnReviewerAfterCreateTopicParams>;
309
+ onReviewerBeforeUpdate: Topic<OnReviewerBeforeUpdateTopicParams>;
310
+ onReviewerAfterUpdate: Topic<OnReviewerAfterUpdateTopicParams>;
311
+ onReviewerBeforeDelete: Topic<OnReviewerBeforeDeleteTopicParams>;
312
+ onReviewerAfterDelete: Topic<OnReviewerAfterDeleteTopicParams>;
313
+ }
314
+ export interface ApwCommentListParams extends ListParams {
315
+ where: ListParams["where"] & {
316
+ changeRequest?: {
317
+ id?: string;
318
+ };
319
+ };
320
+ }
321
+ export interface ApwCommentCrud extends BaseApwCrud<ApwComment, CreateApwCommentParams, UpdateApwCommentParams> {
322
+ list(params: ApwCommentListParams): Promise<[ApwComment[], ListMeta]>;
323
+ /**
324
+ * Lifecycle events
325
+ */
326
+ onCommentBeforeCreate: Topic<OnCommentBeforeCreateTopicParams>;
327
+ onCommentAfterCreate: Topic<OnCommentAfterCreateTopicParams>;
328
+ onCommentBeforeUpdate: Topic<OnCommentBeforeUpdateTopicParams>;
329
+ onCommentAfterUpdate: Topic<OnCommentAfterUpdateTopicParams>;
330
+ onCommentBeforeDelete: Topic<OnCommentBeforeDeleteTopicParams>;
331
+ onCommentAfterDelete: Topic<OnCommentAfterDeleteTopicParams>;
332
+ }
333
+ export interface ApwChangeRequestListParams extends ListParams {
334
+ where: ListParams["where"] & {
335
+ step?: string;
336
+ };
337
+ }
338
+ export interface ApwChangeRequestCrud extends BaseApwCrud<ApwChangeRequest, CreateApwChangeRequestParams, UpdateApwChangeRequestParams> {
339
+ list(params: ApwChangeRequestListParams): Promise<[ApwChangeRequest[], ListMeta]>;
340
+ /**
341
+ * Lifecycle events
342
+ */
343
+ onChangeRequestBeforeCreate: Topic<OnChangeRequestBeforeCreateTopicParams>;
344
+ onChangeRequestAfterCreate: Topic<OnChangeRequestAfterCreateTopicParams>;
345
+ onChangeRequestBeforeUpdate: Topic<OnChangeRequestBeforeUpdateTopicParams>;
346
+ onChangeRequestAfterUpdate: Topic<OnChangeRequestAfterUpdateTopicParams>;
347
+ onChangeRequestBeforeDelete: Topic<OnChangeRequestBeforeDeleteTopicParams>;
348
+ onChangeRequestAfterDelete: Topic<OnChangeRequestAfterDeleteTopicParams>;
349
+ }
350
+ export interface ApwContentReviewCrud extends BaseApwCrud<ApwContentReview, CreateApwContentReviewParams, UpdateApwContentReviewParams> {
351
+ list(params: ApwContentReviewListParams): Promise<[ApwContentReview[], ListMeta]>;
352
+ provideSignOff(id: string, step: string): Promise<Boolean>;
353
+ retractSignOff(id: string, step: string): Promise<Boolean>;
354
+ isReviewRequired(data: ApwContentReviewContent): Promise<{
355
+ isReviewRequired: boolean;
356
+ contentReviewId?: string | null;
357
+ }>;
358
+ publishContent(id: string, datetime?: string): Promise<Boolean>;
359
+ unpublishContent(id: string, datetime?: string): Promise<Boolean>;
360
+ scheduleAction(data: ApwScheduleActionData): Promise<string>;
361
+ deleteScheduledAction(id: string): Promise<boolean>;
362
+ /**
363
+ * Lifecycle events
364
+ */
365
+ onContentReviewBeforeCreate: Topic<OnContentReviewBeforeCreateTopicParams>;
366
+ onContentReviewAfterCreate: Topic<OnContentReviewAfterCreateTopicParams>;
367
+ onContentReviewBeforeUpdate: Topic<OnContentReviewBeforeUpdateTopicParams>;
368
+ onContentReviewAfterUpdate: Topic<OnContentReviewAfterUpdateTopicParams>;
369
+ onContentReviewBeforeDelete: Topic<OnContentReviewBeforeDeleteTopicParams>;
370
+ onContentReviewAfterDelete: Topic<OnContentReviewAfterDeleteTopicParams>;
371
+ onContentReviewBeforeList: Topic<OnContentReviewBeforeListTopicParams>;
372
+ }
373
+ export declare type ContentGetter = (id: string, settings: {
374
+ modelId?: string;
375
+ }) => Promise<PageWithWorkflow | ApwCmsEntry | null>;
376
+ export declare type ContentPublisher = (id: string, settings: {
377
+ modelId?: string;
378
+ }) => Promise<Boolean | null>;
379
+ export declare type ContentUnPublisher = (id: string, settings: {
380
+ modelId?: string;
381
+ }) => Promise<Boolean | null>;
382
+ export interface AdvancedPublishingWorkflow {
383
+ addContentGetter: (type: ApwContentTypes, func: ContentGetter) => void;
384
+ getContentGetter: (type: ApwContentTypes) => ContentGetter;
385
+ addContentPublisher: (type: ApwContentTypes, func: ContentPublisher) => void;
386
+ getContentPublisher: (type: ApwContentTypes) => ContentPublisher;
387
+ addContentUnPublisher: (type: ApwContentTypes, func: ContentUnPublisher) => void;
388
+ getContentUnPublisher: (type: ApwContentTypes) => ContentUnPublisher;
389
+ workflow: ApwWorkflowCrud;
390
+ reviewer: ApwReviewerCrud;
391
+ comment: ApwCommentCrud;
392
+ changeRequest: ApwChangeRequestCrud;
393
+ contentReview: ApwContentReviewCrud;
394
+ scheduleAction: ApwScheduleActionCrud;
395
+ }
396
+ export interface ApwContext extends Context, MailerContext, AdminSettingsContext {
397
+ apw: AdvancedPublishingWorkflow;
398
+ pageBuilder: PageBuilderContextObject;
399
+ wcp: WcpContextObject;
400
+ scheduleAction: ScheduleActionContext["scheduleAction"];
401
+ }
402
+ export interface LifeCycleHookCallbackParams {
403
+ apw: ApwContext["apw"];
404
+ security: ApwContext["security"];
405
+ cms?: ApwContext["cms"];
406
+ }
407
+ export interface CreateApwParams {
408
+ getLocale: () => I18NLocale;
409
+ getIdentity: () => SecurityIdentity;
410
+ getTenant: () => Tenant;
411
+ getPermission: (name: string) => Promise<SecurityPermission | null>;
412
+ storageOperations: ApwStorageOperations;
413
+ scheduler: ApwScheduleActionCrud;
414
+ handlerClient: HandlerClient;
415
+ plugins: PluginsContainer;
416
+ }
417
+ interface StorageOperationsGetReviewerParams {
418
+ id: string;
419
+ }
420
+ declare type StorageOperationsListReviewersParams = ApwReviewerListParams;
421
+ interface CreateApwReviewerData {
422
+ identityId: string;
423
+ displayName: string | null;
424
+ type: string;
425
+ email?: string | null;
426
+ }
427
+ interface UpdateApwReviewerData {
428
+ identityId: string;
429
+ displayName: string | null;
430
+ type: string;
431
+ email?: string | null;
432
+ }
433
+ interface StorageOperationsCreateReviewerParams {
434
+ data: CreateApwReviewerData;
435
+ }
436
+ interface StorageOperationsUpdateReviewerParams {
437
+ id: string;
438
+ data: UpdateApwReviewerData;
439
+ }
440
+ interface StorageOperationsDeleteReviewerParams {
441
+ id: string;
442
+ }
443
+ interface StorageOperationsGetParams {
444
+ id: string;
445
+ }
446
+ interface StorageOperationsDeleteParams {
447
+ id: string;
448
+ }
449
+ declare type StorageOperationsGetWorkflowParams = StorageOperationsGetParams;
450
+ declare type StorageOperationsListWorkflowsParams = ListParams;
451
+ interface StorageOperationsCreateWorkflowParams {
452
+ data: CreateApwWorkflowParams;
453
+ }
454
+ interface StorageOperationsUpdateWorkflowParams {
455
+ id: string;
456
+ data: UpdateApwWorkflowParams;
457
+ }
458
+ declare type StorageOperationsDeleteWorkflowParams = StorageOperationsDeleteParams;
459
+ declare type StorageOperationsGetContentReviewParams = StorageOperationsGetParams;
460
+ export interface ApwContentReviewListParams extends ListParams {
461
+ where: ListWhere & {
462
+ reviewStatus?: ApwContentReviewListFilter;
463
+ title?: string;
464
+ title_contains?: string;
465
+ workflowId?: string;
466
+ workflowId_in?: string[];
467
+ };
468
+ }
469
+ declare type StorageOperationsListContentReviewsParams = ApwContentReviewListParams;
470
+ interface StorageOperationsCreateContentReviewParams {
471
+ data: CreateApwContentReviewParams;
472
+ }
473
+ interface StorageOperationsUpdateContentReviewParams {
474
+ id: string;
475
+ data: UpdateApwContentReviewParams;
476
+ }
477
+ declare type StorageOperationsDeleteContentReviewParams = StorageOperationsDeleteParams;
478
+ declare type StorageOperationsGetChangeRequestParams = StorageOperationsGetParams;
479
+ declare type StorageOperationsListChangeRequestsParams = ApwChangeRequestListParams;
480
+ interface StorageOperationsCreateChangeRequestParams {
481
+ data: CreateApwChangeRequestParams;
482
+ }
483
+ interface StorageOperationsUpdateChangeRequestParams {
484
+ id: string;
485
+ data: UpdateApwChangeRequestParams;
486
+ }
487
+ declare type StorageOperationsDeleteChangeRequestParams = StorageOperationsDeleteParams;
488
+ declare type StorageOperationsGetCommentParams = StorageOperationsGetParams;
489
+ declare type StorageOperationsDeleteCommentParams = StorageOperationsDeleteParams;
490
+ declare type StorageOperationsListCommentsParams = ApwCommentListParams;
491
+ interface StorageOperationsCreateCommentParams {
492
+ data: CreateApwCommentParams;
493
+ }
494
+ interface StorageOperationsUpdateCommentParams {
495
+ id: string;
496
+ data: UpdateApwCommentParams;
497
+ }
498
+ export interface ApwReviewerStorageOperations {
499
+ getReviewer(params: StorageOperationsGetReviewerParams): Promise<ApwReviewer>;
500
+ listReviewers(params: StorageOperationsListReviewersParams): Promise<[ApwReviewer[], ListMeta]>;
501
+ createReviewer(params: StorageOperationsCreateReviewerParams): Promise<ApwReviewer>;
502
+ updateReviewer(params: StorageOperationsUpdateReviewerParams): Promise<ApwReviewer>;
503
+ deleteReviewer(params: StorageOperationsDeleteReviewerParams): Promise<Boolean>;
504
+ }
505
+ export interface ApwWorkflowStorageOperations {
506
+ getWorkflow(params: StorageOperationsGetWorkflowParams): Promise<ApwWorkflow>;
507
+ listWorkflows(params: StorageOperationsListWorkflowsParams): Promise<[ApwWorkflow[], ListMeta]>;
508
+ createWorkflow(params: StorageOperationsCreateWorkflowParams): Promise<ApwWorkflow>;
509
+ updateWorkflow(params: StorageOperationsUpdateWorkflowParams): Promise<ApwWorkflow>;
510
+ deleteWorkflow(params: StorageOperationsDeleteWorkflowParams): Promise<Boolean>;
511
+ }
512
+ export interface ApwContentReviewStorageOperations {
513
+ getContentReview(params: StorageOperationsGetContentReviewParams): Promise<ApwContentReview>;
514
+ listContentReviews(params: StorageOperationsListContentReviewsParams): Promise<[ApwContentReview[], ListMeta]>;
515
+ createContentReview(params: StorageOperationsCreateContentReviewParams): Promise<ApwContentReview>;
516
+ updateContentReview(params: StorageOperationsUpdateContentReviewParams): Promise<ApwContentReview>;
517
+ deleteContentReview(params: StorageOperationsDeleteContentReviewParams): Promise<Boolean>;
518
+ }
519
+ export interface ApwChangeRequestStorageOperations {
520
+ getChangeRequest(params: StorageOperationsGetChangeRequestParams): Promise<ApwChangeRequest>;
521
+ listChangeRequests(params: StorageOperationsListChangeRequestsParams): Promise<[ApwChangeRequest[], ListMeta]>;
522
+ createChangeRequest(params: StorageOperationsCreateChangeRequestParams): Promise<ApwChangeRequest>;
523
+ updateChangeRequest(params: StorageOperationsUpdateChangeRequestParams): Promise<ApwChangeRequest>;
524
+ deleteChangeRequest(params: StorageOperationsDeleteChangeRequestParams): Promise<Boolean>;
525
+ }
526
+ export interface ApwCommentStorageOperations {
527
+ getComment(params: StorageOperationsGetCommentParams): Promise<ApwComment>;
528
+ listComments(params: StorageOperationsListCommentsParams): Promise<[ApwComment[], ListMeta]>;
529
+ createComment(params: StorageOperationsCreateCommentParams): Promise<ApwComment>;
530
+ updateComment(params: StorageOperationsUpdateCommentParams): Promise<ApwComment>;
531
+ deleteComment(params: StorageOperationsDeleteCommentParams): Promise<Boolean>;
532
+ }
533
+ export interface ApwStorageOperations extends ApwReviewerStorageOperations, ApwWorkflowStorageOperations, ApwContentReviewStorageOperations, ApwChangeRequestStorageOperations, ApwCommentStorageOperations {
534
+ }
535
+ /**
536
+ * @category Lifecycle events
537
+ */
538
+ export interface OnCommentBeforeCreateTopicParams {
539
+ input: CreateApwCommentParams;
540
+ }
541
+ /**
542
+ * @category Lifecycle events
543
+ */
544
+ export interface OnCommentAfterCreateTopicParams {
545
+ comment: ApwComment;
546
+ }
547
+ /**
548
+ * @category Lifecycle events
549
+ */
550
+ export interface OnCommentBeforeUpdateTopicParams {
551
+ original: ApwComment;
552
+ input: Record<string, any>;
553
+ }
554
+ /**
555
+ * @category Lifecycle events
556
+ */
557
+ export interface OnCommentAfterUpdateTopicParams {
558
+ original: ApwComment;
559
+ comment: ApwComment;
560
+ input: Record<string, any>;
561
+ }
562
+ /**
563
+ * @category Lifecycle events
564
+ */
565
+ export interface OnCommentBeforeDeleteTopicParams {
566
+ comment: ApwComment;
567
+ }
568
+ /**
569
+ * @category Lifecycle events
570
+ */
571
+ export interface OnCommentAfterDeleteTopicParams {
572
+ comment: ApwComment;
573
+ }
574
+ /**
575
+ * @category Lifecycle events
576
+ */
577
+ export interface OnChangeRequestBeforeCreateTopicParams {
578
+ input: CreateApwChangeRequestParams;
579
+ }
580
+ /**
581
+ * @category Lifecycle events
582
+ */
583
+ export interface OnChangeRequestAfterCreateTopicParams {
584
+ changeRequest: ApwChangeRequest;
585
+ }
586
+ /**
587
+ * @category Lifecycle events
588
+ */
589
+ export interface OnChangeRequestBeforeUpdateTopicParams {
590
+ original: ApwChangeRequest;
591
+ input: Record<string, any>;
592
+ }
593
+ /**
594
+ * @category Lifecycle events
595
+ */
596
+ export interface OnChangeRequestAfterUpdateTopicParams {
597
+ original: ApwChangeRequest;
598
+ changeRequest: ApwChangeRequest;
599
+ input: Record<string, any>;
600
+ }
601
+ /**
602
+ * @category Lifecycle events
603
+ */
604
+ export interface OnChangeRequestBeforeDeleteTopicParams {
605
+ changeRequest: ApwChangeRequest;
606
+ }
607
+ /**
608
+ * @category Lifecycle events
609
+ */
610
+ export interface OnChangeRequestAfterDeleteTopicParams {
611
+ changeRequest: ApwChangeRequest;
612
+ }
613
+ /**
614
+ * @category Lifecycle events
615
+ */
616
+ export interface OnContentReviewBeforeCreateTopicParams {
617
+ input: CreateApwContentReviewParams;
618
+ }
619
+ /**
620
+ * @category Lifecycle events
621
+ */
622
+ export interface OnContentReviewAfterCreateTopicParams {
623
+ contentReview: ApwContentReview;
624
+ }
625
+ /**
626
+ * @category Lifecycle events
627
+ */
628
+ export interface OnContentReviewBeforeUpdateTopicParams {
629
+ original: ApwContentReview;
630
+ input: Record<string, any>;
631
+ }
632
+ /**
633
+ * @category Lifecycle events
634
+ */
635
+ export interface OnContentReviewAfterUpdateTopicParams {
636
+ original: ApwContentReview;
637
+ contentReview: ApwContentReview;
638
+ input: Record<string, any>;
639
+ }
640
+ /**
641
+ * @category Lifecycle events
642
+ */
643
+ export interface OnContentReviewBeforeDeleteTopicParams {
644
+ contentReview: ApwContentReview;
645
+ }
646
+ /**
647
+ * @category Lifecycle events
648
+ */
649
+ export interface OnContentReviewAfterDeleteTopicParams {
650
+ contentReview: ApwContentReview;
651
+ }
652
+ /**
653
+ * @category Lifecycle events
654
+ */
655
+ export interface OnContentReviewBeforeListTopicParams {
656
+ where: ApwContentReviewListParams["where"];
657
+ }
658
+ export interface CreateApwReviewerParams {
659
+ type: string;
660
+ }
661
+ /**
662
+ * @category Lifecycle events
663
+ */
664
+ export interface OnReviewerBeforeCreateTopicParams {
665
+ input: CreateApwReviewerParams;
666
+ }
667
+ /**
668
+ * @category Lifecycle events
669
+ */
670
+ export interface OnReviewerAfterCreateTopicParams {
671
+ reviewer: ApwReviewer;
672
+ }
673
+ /**
674
+ * @category Lifecycle events
675
+ */
676
+ export interface OnReviewerBeforeUpdateTopicParams {
677
+ original: ApwReviewer;
678
+ input: Record<string, any>;
679
+ }
680
+ /**
681
+ * @category Lifecycle events
682
+ */
683
+ export interface OnReviewerAfterUpdateTopicParams {
684
+ original: ApwReviewer;
685
+ reviewer: ApwReviewer;
686
+ input: Record<string, any>;
687
+ }
688
+ /**
689
+ * @category Lifecycle events
690
+ */
691
+ export interface OnReviewerBeforeDeleteTopicParams {
692
+ reviewer: ApwReviewer;
693
+ }
694
+ /**
695
+ * @category Lifecycle events
696
+ */
697
+ export interface OnReviewerAfterDeleteTopicParams {
698
+ reviewer: ApwReviewer;
699
+ }
700
+ /**
701
+ * @category Lifecycle events
702
+ */
703
+ export interface OnWorkflowBeforeCreateTopicParams {
704
+ input: CreateApwWorkflowParams;
705
+ }
706
+ /**
707
+ * @category Lifecycle events
708
+ */
709
+ export interface OnWorkflowAfterCreateTopicParams {
710
+ workflow: ApwWorkflow;
711
+ }
712
+ /**
713
+ * @category Lifecycle events
714
+ */
715
+ export interface OnWorkflowBeforeUpdateTopicParams {
716
+ original: ApwWorkflow;
717
+ input: Record<string, any>;
718
+ }
719
+ /**
720
+ * @category Lifecycle events
721
+ */
722
+ export interface OnWorkflowAfterUpdateTopicParams {
723
+ original: ApwWorkflow;
724
+ workflow: ApwWorkflow;
725
+ input: Record<string, any>;
726
+ }
727
+ /**
728
+ * @category Lifecycle events
729
+ */
730
+ export interface OnWorkflowBeforeDeleteTopicParams {
731
+ workflow: ApwWorkflow;
732
+ }
733
+ /**
734
+ * @category Lifecycle events
735
+ */
736
+ export interface OnWorkflowAfterDeleteTopicParams {
737
+ workflow: ApwWorkflow;
738
+ }
739
+ export declare type WorkflowModelDefinition = Pick<CmsModel, "name" | "modelId" | "layout" | "titleFieldId" | "description" | "fields" | "isPrivate">;
740
+ /**
741
+ * Headless CMS
742
+ */
743
+ export interface OnCmsEntryBeforePublishTopicParams extends Omit<OnEntryBeforePublishTopicParams, "entry"> {
744
+ entry: ApwCmsEntry;
745
+ }
746
+ export interface OnCmsEntryAfterPublishTopicParams extends Omit<OnEntryAfterPublishTopicParams, "entry"> {
747
+ entry: ApwCmsEntry;
748
+ }
749
+ export interface OnCmsEntryAfterUnpublishTopicParams extends Omit<OnEntryAfterUnpublishTopicParams, "entry"> {
750
+ entry: ApwCmsEntry;
751
+ }
752
+ export {};