@webiny/api-apw 5.43.3 → 6.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/ApwChangeRequestNotification.d.ts +1 -1
  2. package/ApwChangeRequestNotification.js.map +1 -1
  3. package/ApwCommentNotification.d.ts +1 -1
  4. package/ApwCommentNotification.js.map +1 -1
  5. package/ApwContentReviewNotification.d.ts +1 -1
  6. package/ApwContentReviewNotification.js.map +1 -1
  7. package/ApwContentUrlPlugin.d.ts +1 -1
  8. package/ApwContentUrlPlugin.js.map +1 -1
  9. package/ContentApwSettingsPlugin.d.ts +1 -1
  10. package/ContentApwSettingsPlugin.js.map +1 -1
  11. package/crud/createChangeRequestMethods.d.ts +1 -1
  12. package/crud/createChangeRequestMethods.js.map +1 -1
  13. package/crud/createCommentMethods.d.ts +1 -1
  14. package/crud/createCommentMethods.js.map +1 -1
  15. package/crud/createContentReviewMethods.d.ts +2 -2
  16. package/crud/createContentReviewMethods.js.map +1 -1
  17. package/crud/createReviewerMethods.d.ts +1 -1
  18. package/crud/createReviewerMethods.js.map +1 -1
  19. package/crud/createWorkflowMethods.d.ts +1 -1
  20. package/crud/createWorkflowMethods.js.map +1 -1
  21. package/crud/index.d.ts +1 -1
  22. package/crud/index.js.map +1 -1
  23. package/crud/utils.d.ts +2 -2
  24. package/crud/utils.js.map +1 -1
  25. package/index.d.ts +2 -2
  26. package/index.js +4 -5
  27. package/index.js.map +1 -1
  28. package/package.json +23 -24
  29. package/plugins/cms/CmsEntryApwSettingsGetterPlugin.d.ts +1 -1
  30. package/plugins/cms/CmsEntryApwSettingsGetterPlugin.js.map +1 -1
  31. package/plugins/cms/apwEntryPlugins.d.ts +2 -2
  32. package/plugins/cms/apwEntryPlugins.js.map +1 -1
  33. package/plugins/cms/index.d.ts +4 -4
  34. package/plugins/cms/index.js.map +1 -1
  35. package/plugins/cms/linkContentReviewToEntry.d.ts +2 -2
  36. package/plugins/cms/linkContentReviewToEntry.js.map +1 -1
  37. package/plugins/cms/linkWorkflowToEntry.d.ts +2 -2
  38. package/plugins/cms/linkWorkflowToEntry.js.map +1 -1
  39. package/plugins/cms/triggerContentReview.d.ts +2 -2
  40. package/plugins/cms/triggerContentReview.js.map +1 -1
  41. package/plugins/cms/updateContentReviewStatus.d.ts +3 -3
  42. package/plugins/cms/updateContentReviewStatus.js.map +1 -1
  43. package/plugins/cms/utils.d.ts +2 -2
  44. package/plugins/cms/utils.js.map +1 -1
  45. package/plugins/context.d.ts +3 -3
  46. package/plugins/context.js +3 -14
  47. package/plugins/context.js.map +1 -1
  48. package/plugins/graphql/changeRequest.gql.d.ts +1 -1
  49. package/plugins/graphql/changeRequest.gql.js.map +1 -1
  50. package/plugins/graphql/comment.gql.d.ts +1 -1
  51. package/plugins/graphql/comment.gql.js.map +1 -1
  52. package/plugins/graphql/contentReview.gql.d.ts +1 -1
  53. package/plugins/graphql/contentReview.gql.js.map +1 -1
  54. package/plugins/graphql/reviewer.gql.d.ts +1 -1
  55. package/plugins/graphql/reviewer.gql.js.map +1 -1
  56. package/plugins/graphql/workflow.gql.d.ts +1 -1
  57. package/plugins/graphql/workflow.gql.js.map +1 -1
  58. package/plugins/graphql.d.ts +1 -1
  59. package/plugins/graphql.js.map +1 -1
  60. package/plugins/hooks/createReviewerFromIdentity.d.ts +1 -1
  61. package/plugins/hooks/createReviewerFromIdentity.js.map +1 -1
  62. package/plugins/hooks/deleteChangeRequestsAfterContentReview.d.ts +1 -1
  63. package/plugins/hooks/deleteChangeRequestsAfterContentReview.js.map +1 -1
  64. package/plugins/hooks/deleteCommentsAfterChangeRequest.d.ts +1 -1
  65. package/plugins/hooks/deleteCommentsAfterChangeRequest.js.map +1 -1
  66. package/plugins/hooks/index.d.ts +1 -1
  67. package/plugins/hooks/index.js.map +1 -1
  68. package/plugins/hooks/initializeContentReviewSteps.d.ts +1 -1
  69. package/plugins/hooks/initializeContentReviewSteps.js.map +1 -1
  70. package/plugins/hooks/initializeNotifications.d.ts +1 -1
  71. package/plugins/hooks/initializeNotifications.js.map +1 -1
  72. package/plugins/hooks/listContentReviews.d.ts +3 -3
  73. package/plugins/hooks/listContentReviews.js.map +1 -1
  74. package/plugins/hooks/notifications/changeRequestAfterCreate.d.ts +1 -1
  75. package/plugins/hooks/notifications/changeRequestAfterCreate.js +2 -2
  76. package/plugins/hooks/notifications/changeRequestAfterCreate.js.map +1 -1
  77. package/plugins/hooks/notifications/commentAfterCreate.d.ts +1 -1
  78. package/plugins/hooks/notifications/commentAfterCreate.js +2 -2
  79. package/plugins/hooks/notifications/commentAfterCreate.js.map +1 -1
  80. package/plugins/hooks/notifications/contentReviewAfterCreate.d.ts +1 -1
  81. package/plugins/hooks/notifications/contentReviewAfterCreate.js +2 -2
  82. package/plugins/hooks/notifications/contentReviewAfterCreate.js.map +1 -1
  83. package/plugins/hooks/notifications/contentUrl.d.ts +2 -2
  84. package/plugins/hooks/notifications/contentUrl.js.map +1 -1
  85. package/plugins/hooks/notifications/getAppUrl.d.ts +2 -0
  86. package/plugins/hooks/notifications/getAppUrl.js +19 -0
  87. package/plugins/hooks/notifications/getAppUrl.js.map +1 -0
  88. package/plugins/hooks/notifications/lastChangeRequestNotificationPlugin.d.ts +1 -1
  89. package/plugins/hooks/notifications/lastChangeRequestNotificationPlugin.js.map +1 -1
  90. package/plugins/hooks/notifications/lastCommentNotificationPlugin.d.ts +1 -1
  91. package/plugins/hooks/notifications/lastCommentNotificationPlugin.js.map +1 -1
  92. package/plugins/hooks/notifications/lastContentReviewNotificationPlugin.d.ts +1 -1
  93. package/plugins/hooks/notifications/lastContentReviewNotificationPlugin.js.map +1 -1
  94. package/plugins/hooks/notifications/reviewers.d.ts +1 -1
  95. package/plugins/hooks/notifications/reviewers.js.map +1 -1
  96. package/plugins/hooks/notifications/sendChangeRequestNotification.d.ts +1 -1
  97. package/plugins/hooks/notifications/sendChangeRequestNotification.js.map +1 -1
  98. package/plugins/hooks/notifications/sendCommentNotification.d.ts +1 -1
  99. package/plugins/hooks/notifications/sendCommentNotification.js.map +1 -1
  100. package/plugins/hooks/notifications/sendContentReviewNotification.d.ts +1 -1
  101. package/plugins/hooks/notifications/sendContentReviewNotification.js.map +1 -1
  102. package/plugins/hooks/updatePendingChangeRequests.d.ts +1 -1
  103. package/plugins/hooks/updatePendingChangeRequests.js.map +1 -1
  104. package/plugins/hooks/updateTotalComments.d.ts +1 -1
  105. package/plugins/hooks/updateTotalComments.js.map +1 -1
  106. package/plugins/hooks/validateChangeRequest.d.ts +1 -1
  107. package/plugins/hooks/validateChangeRequest.js.map +1 -1
  108. package/plugins/hooks/validateComment.d.ts +1 -1
  109. package/plugins/hooks/validateComment.js.map +1 -1
  110. package/plugins/hooks/validateContentReview.d.ts +1 -1
  111. package/plugins/hooks/validateContentReview.js.map +1 -1
  112. package/plugins/utils.d.ts +4 -3
  113. package/plugins/utils.js.map +1 -1
  114. package/scheduler/createScheduleActionMethods.d.ts +1 -1
  115. package/scheduler/createScheduleActionMethods.js.map +1 -1
  116. package/scheduler/handlers/executeAction/index.d.ts +1 -1
  117. package/scheduler/handlers/executeAction/index.js.map +1 -1
  118. package/scheduler/handlers/executeAction/plugins/HeadlessCMSGraphQL.d.ts +2 -1
  119. package/scheduler/handlers/executeAction/plugins/HeadlessCMSGraphQL.js.map +1 -1
  120. package/scheduler/handlers/executeAction/plugins/PageBuilderGraphQL.d.ts +3 -2
  121. package/scheduler/handlers/executeAction/plugins/PageBuilderGraphQL.js.map +1 -1
  122. package/scheduler/handlers/executeAction/security.d.ts +2 -2
  123. package/scheduler/handlers/executeAction/security.js.map +1 -1
  124. package/scheduler/handlers/scheduleAction/index.d.ts +1 -1
  125. package/scheduler/handlers/scheduleAction/index.js.map +1 -1
  126. package/scheduler/handlers/scheduleAction/scheduleAction.utils.d.ts +3 -3
  127. package/scheduler/handlers/scheduleAction/scheduleAction.utils.js.map +1 -1
  128. package/scheduler/index.d.ts +1 -1
  129. package/scheduler/index.js.map +1 -1
  130. package/scheduler/types.d.ts +5 -5
  131. package/scheduler/types.js.map +1 -1
  132. package/storageOperations/changeRequestStorageOperations.d.ts +2 -2
  133. package/storageOperations/changeRequestStorageOperations.js.map +1 -1
  134. package/storageOperations/commentStorageOperations.d.ts +2 -2
  135. package/storageOperations/commentStorageOperations.js.map +1 -1
  136. package/storageOperations/contentReviewStorageOperations.d.ts +2 -2
  137. package/storageOperations/contentReviewStorageOperations.js.map +1 -1
  138. package/storageOperations/index.d.ts +3 -3
  139. package/storageOperations/index.js.map +1 -1
  140. package/storageOperations/models/contentReview.model.js.map +1 -1
  141. package/storageOperations/models/index.d.ts +1 -1
  142. package/storageOperations/models/index.js.map +1 -1
  143. package/storageOperations/models/utils.d.ts +2 -2
  144. package/storageOperations/models/utils.js.map +1 -1
  145. package/storageOperations/models/workflow.model.d.ts +1 -1
  146. package/storageOperations/models/workflow.model.js.map +1 -1
  147. package/storageOperations/reviewerStorageOperations.d.ts +2 -2
  148. package/storageOperations/reviewerStorageOperations.js.map +1 -1
  149. package/storageOperations/types.d.ts +2 -2
  150. package/storageOperations/types.js.map +1 -1
  151. package/storageOperations/workflowStorageOperations.d.ts +2 -2
  152. package/storageOperations/workflowStorageOperations.js.map +1 -1
  153. package/types.d.ts +13 -30
  154. package/types.js.map +1 -1
  155. package/utils/contentApwSettingsPlugin.d.ts +2 -2
  156. package/utils/contentApwSettingsPlugin.js.map +1 -1
  157. package/utils/fieldResolver.d.ts +2 -2
  158. package/utils/fieldResolver.js.map +1 -1
  159. package/utils/pickEntryFieldValues.d.ts +1 -1
  160. package/utils/pickEntryFieldValues.js.map +1 -1
  161. package/utils/resolve.d.ts +1 -1
  162. package/plugins/hooks/notifications/appUrl.d.ts +0 -2
  163. package/plugins/hooks/notifications/appUrl.js +0 -20
  164. package/plugins/hooks/notifications/appUrl.js.map +0 -1
  165. package/plugins/pageBuilder/PageApwSettingsGetterPlugin.d.ts +0 -9
  166. package/plugins/pageBuilder/PageApwSettingsGetterPlugin.js +0 -36
  167. package/plugins/pageBuilder/PageApwSettingsGetterPlugin.js.map +0 -1
  168. package/plugins/pageBuilder/apwContentPagePlugins.d.ts +0 -3
  169. package/plugins/pageBuilder/apwContentPagePlugins.js +0 -28
  170. package/plugins/pageBuilder/apwContentPagePlugins.js.map +0 -1
  171. package/plugins/pageBuilder/extendPbPageSettingsSchema.d.ts +0 -3
  172. package/plugins/pageBuilder/extendPbPageSettingsSchema.js +0 -22
  173. package/plugins/pageBuilder/extendPbPageSettingsSchema.js.map +0 -1
  174. package/plugins/pageBuilder/index.d.ts +0 -11
  175. package/plugins/pageBuilder/index.js +0 -44
  176. package/plugins/pageBuilder/index.js.map +0 -1
  177. package/plugins/pageBuilder/linkContentReviewToPage.d.ts +0 -8
  178. package/plugins/pageBuilder/linkContentReviewToPage.js +0 -93
  179. package/plugins/pageBuilder/linkContentReviewToPage.js.map +0 -1
  180. package/plugins/pageBuilder/linkWorkflowToPage.d.ts +0 -8
  181. package/plugins/pageBuilder/linkWorkflowToPage.js +0 -165
  182. package/plugins/pageBuilder/linkWorkflowToPage.js.map +0 -1
  183. package/plugins/pageBuilder/notifications/changeRequestNotification.d.ts +0 -1
  184. package/plugins/pageBuilder/notifications/changeRequestNotification.js +0 -33
  185. package/plugins/pageBuilder/notifications/changeRequestNotification.js.map +0 -1
  186. package/plugins/pageBuilder/notifications/commentNotification.d.ts +0 -1
  187. package/plugins/pageBuilder/notifications/commentNotification.js +0 -33
  188. package/plugins/pageBuilder/notifications/commentNotification.js.map +0 -1
  189. package/plugins/pageBuilder/notifications/contentReviewNotification.d.ts +0 -1
  190. package/plugins/pageBuilder/notifications/contentReviewNotification.js +0 -33
  191. package/plugins/pageBuilder/notifications/contentReviewNotification.js.map +0 -1
  192. package/plugins/pageBuilder/notifications/contentUrl.d.ts +0 -1
  193. package/plugins/pageBuilder/notifications/contentUrl.js +0 -49
  194. package/plugins/pageBuilder/notifications/contentUrl.js.map +0 -1
  195. package/plugins/pageBuilder/triggerContentReview.d.ts +0 -8
  196. package/plugins/pageBuilder/triggerContentReview.js +0 -40
  197. package/plugins/pageBuilder/triggerContentReview.js.map +0 -1
  198. package/plugins/pageBuilder/updateContentReviewStatus.d.ts +0 -10
  199. package/plugins/pageBuilder/updateContentReviewStatus.js +0 -70
  200. package/plugins/pageBuilder/updateContentReviewStatus.js.map +0 -1
  201. package/plugins/pageBuilder/utils.d.ts +0 -22
  202. package/plugins/pageBuilder/utils.js +0 -151
  203. package/plugins/pageBuilder/utils.js.map +0 -1
@@ -1,3 +1,3 @@
1
1
  import { Response, ErrorResponse } from "@webiny/handler-graphql";
2
- declare const _default: (fn: () => Promise<any>) => Promise<Response<any> | ErrorResponse>;
2
+ declare const _default: (fn: () => Promise<any>) => Promise<ErrorResponse | Response<any>>;
3
3
  export default _default;
@@ -1,2 +0,0 @@
1
- import { ApwContext } from "../../../types";
2
- export declare const getAppUrl: (context: ApwContext) => Promise<import("@webiny/api-admin-settings/types").AdminSettings | null>;
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getAppUrl = void 0;
7
- const getAppUrl = async context => {
8
- const tenant = context.tenancy.getCurrentTenant().id;
9
- try {
10
- return await context.settings.getSettings(tenant);
11
- } catch (ex) {
12
- if (ex.code !== "NOT_FOUND") {
13
- throw ex;
14
- }
15
- }
16
- return null;
17
- };
18
- exports.getAppUrl = getAppUrl;
19
-
20
- //# sourceMappingURL=appUrl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["getAppUrl","context","tenant","tenancy","getCurrentTenant","id","settings","getSettings","ex","code","exports"],"sources":["appUrl.ts"],"sourcesContent":["import { ApwContext } from \"~/types\";\n\nexport const getAppUrl = async (context: ApwContext) => {\n const tenant = context.tenancy.getCurrentTenant().id;\n try {\n return await context.settings.getSettings(tenant);\n } catch (ex) {\n if (ex.code !== \"NOT_FOUND\") {\n throw ex;\n }\n }\n return null;\n};\n"],"mappings":";;;;;;AAEO,MAAMA,SAAS,GAAG,MAAOC,OAAmB,IAAK;EACpD,MAAMC,MAAM,GAAGD,OAAO,CAACE,OAAO,CAACC,gBAAgB,CAAC,CAAC,CAACC,EAAE;EACpD,IAAI;IACA,OAAO,MAAMJ,OAAO,CAACK,QAAQ,CAACC,WAAW,CAACL,MAAM,CAAC;EACrD,CAAC,CAAC,OAAOM,EAAE,EAAE;IACT,IAAIA,EAAE,CAACC,IAAI,KAAK,WAAW,EAAE;MACzB,MAAMD,EAAE;IACZ;EACJ;EACA,OAAO,IAAI;AACf,CAAC;AAACE,OAAA,CAAAV,SAAA,GAAAA,SAAA","ignoreList":[]}
@@ -1,9 +0,0 @@
1
- import { ContentApwSettingsPlugin } from "../../ContentApwSettingsPlugin";
2
- import { ApwContentTypes, PageWithWorkflow } from "../../types";
3
- export declare class PageApwSettingsGetterPlugin extends ContentApwSettingsPlugin {
4
- canUse(type: ApwContentTypes): boolean;
5
- setWorkflowId(page: PageWithWorkflow, id: string | null): void;
6
- getWorkflowId(page: PageWithWorkflow): string | null;
7
- setContentReviewId(page: PageWithWorkflow, id: string | null): void;
8
- getContentReviewId(page: PageWithWorkflow): string | null;
9
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.PageApwSettingsGetterPlugin = void 0;
8
- var _ContentApwSettingsPlugin = require("../../ContentApwSettingsPlugin");
9
- var _types = require("../../types");
10
- var _set = _interopRequireDefault(require("lodash/set"));
11
- class PageApwSettingsGetterPlugin extends _ContentApwSettingsPlugin.ContentApwSettingsPlugin {
12
- canUse(type) {
13
- return type === _types.ApwContentTypes.PAGE;
14
- }
15
- setWorkflowId(page, id) {
16
- page.settings = (0, _set.default)(page.settings || {}, "apw.workflowId", id);
17
- }
18
- getWorkflowId(page) {
19
- if (!page.settings) {
20
- return null;
21
- }
22
- return page.settings.apw?.workflowId || null;
23
- }
24
- setContentReviewId(page, id) {
25
- page.settings = (0, _set.default)(page.settings || {}, "apw.contentReviewId", id);
26
- }
27
- getContentReviewId(page) {
28
- if (!page.settings) {
29
- return null;
30
- }
31
- return page.settings.apw?.contentReviewId;
32
- }
33
- }
34
- exports.PageApwSettingsGetterPlugin = PageApwSettingsGetterPlugin;
35
-
36
- //# sourceMappingURL=PageApwSettingsGetterPlugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_ContentApwSettingsPlugin","require","_types","_set","_interopRequireDefault","PageApwSettingsGetterPlugin","ContentApwSettingsPlugin","canUse","type","ApwContentTypes","PAGE","setWorkflowId","page","id","settings","set","getWorkflowId","apw","workflowId","setContentReviewId","getContentReviewId","contentReviewId","exports"],"sources":["PageApwSettingsGetterPlugin.ts"],"sourcesContent":["import { ContentApwSettingsPlugin } from \"~/ContentApwSettingsPlugin\";\nimport { ApwContentTypes, PageWithWorkflow } from \"~/types\";\nimport set from \"lodash/set\";\n\nexport class PageApwSettingsGetterPlugin extends ContentApwSettingsPlugin {\n public override canUse(type: ApwContentTypes): boolean {\n return type === ApwContentTypes.PAGE;\n }\n\n public override setWorkflowId(page: PageWithWorkflow, id: string | null) {\n page.settings = set(page.settings || {}, \"apw.workflowId\", id);\n }\n\n public override getWorkflowId(page: PageWithWorkflow): string | null {\n if (!page.settings) {\n return null;\n }\n return page.settings.apw?.workflowId || null;\n }\n\n public override setContentReviewId(page: PageWithWorkflow, id: string | null) {\n page.settings = set(page.settings || {}, \"apw.contentReviewId\", id);\n }\n\n public override getContentReviewId(page: PageWithWorkflow): string | null {\n if (!page.settings) {\n return null;\n }\n return page.settings.apw?.contentReviewId;\n }\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,yBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,IAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEO,MAAMI,2BAA2B,SAASC,kDAAwB,CAAC;EACtDC,MAAMA,CAACC,IAAqB,EAAW;IACnD,OAAOA,IAAI,KAAKC,sBAAe,CAACC,IAAI;EACxC;EAEgBC,aAAaA,CAACC,IAAsB,EAAEC,EAAiB,EAAE;IACrED,IAAI,CAACE,QAAQ,GAAG,IAAAC,YAAG,EAACH,IAAI,CAACE,QAAQ,IAAI,CAAC,CAAC,EAAE,gBAAgB,EAAED,EAAE,CAAC;EAClE;EAEgBG,aAAaA,CAACJ,IAAsB,EAAiB;IACjE,IAAI,CAACA,IAAI,CAACE,QAAQ,EAAE;MAChB,OAAO,IAAI;IACf;IACA,OAAOF,IAAI,CAACE,QAAQ,CAACG,GAAG,EAAEC,UAAU,IAAI,IAAI;EAChD;EAEgBC,kBAAkBA,CAACP,IAAsB,EAAEC,EAAiB,EAAE;IAC1ED,IAAI,CAACE,QAAQ,GAAG,IAAAC,YAAG,EAACH,IAAI,CAACE,QAAQ,IAAI,CAAC,CAAC,EAAE,qBAAqB,EAAED,EAAE,CAAC;EACvE;EAEgBO,kBAAkBA,CAACR,IAAsB,EAAiB;IACtE,IAAI,CAACA,IAAI,CAACE,QAAQ,EAAE;MAChB,OAAO,IAAI;IACf;IACA,OAAOF,IAAI,CAACE,QAAQ,CAACG,GAAG,EAAEI,eAAe;EAC7C;AACJ;AAACC,OAAA,CAAAjB,2BAAA,GAAAA,2BAAA","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- import { ContextPlugin } from "@webiny/api";
2
- import { ApwContext } from "../../types";
3
- export declare const apwContentPagePlugins: () => ContextPlugin<ApwContext>;
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.apwContentPagePlugins = void 0;
7
- var _api = require("@webiny/api");
8
- var _types = require("../../types");
9
- const apwContentPagePlugins = () => new _api.ContextPlugin(async context => {
10
- const {
11
- apw,
12
- pageBuilder
13
- } = context;
14
- apw.addContentGetter(_types.ApwContentTypes.PAGE, async id => {
15
- return pageBuilder.getPage(id);
16
- });
17
- apw.addContentPublisher(_types.ApwContentTypes.PAGE, async id => {
18
- await pageBuilder.publishPage(id);
19
- return true;
20
- });
21
- apw.addContentUnPublisher(_types.ApwContentTypes.PAGE, async id => {
22
- await pageBuilder.unpublishPage(id);
23
- return true;
24
- });
25
- });
26
- exports.apwContentPagePlugins = apwContentPagePlugins;
27
-
28
- //# sourceMappingURL=apwContentPagePlugins.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_api","require","_types","apwContentPagePlugins","ContextPlugin","context","apw","pageBuilder","addContentGetter","ApwContentTypes","PAGE","id","getPage","addContentPublisher","publishPage","addContentUnPublisher","unpublishPage","exports"],"sources":["apwContentPagePlugins.ts"],"sourcesContent":["import { ContextPlugin } from \"@webiny/api\";\nimport { ApwContentTypes, ApwContext, PageWithWorkflow } from \"~/types\";\n\nexport const apwContentPagePlugins = () =>\n new ContextPlugin<ApwContext>(async context => {\n const { apw, pageBuilder } = context;\n\n apw.addContentGetter(ApwContentTypes.PAGE, async id => {\n return pageBuilder.getPage<PageWithWorkflow>(id);\n });\n\n apw.addContentPublisher(ApwContentTypes.PAGE, async id => {\n await pageBuilder.publishPage<PageWithWorkflow>(id);\n return true;\n });\n\n apw.addContentUnPublisher(ApwContentTypes.PAGE, async id => {\n await pageBuilder.unpublishPage<PageWithWorkflow>(id);\n return true;\n });\n });\n"],"mappings":";;;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,MAAME,qBAAqB,GAAGA,CAAA,KACjC,IAAIC,kBAAa,CAAa,MAAMC,OAAO,IAAI;EAC3C,MAAM;IAAEC,GAAG;IAAEC;EAAY,CAAC,GAAGF,OAAO;EAEpCC,GAAG,CAACE,gBAAgB,CAACC,sBAAe,CAACC,IAAI,EAAE,MAAMC,EAAE,IAAI;IACnD,OAAOJ,WAAW,CAACK,OAAO,CAAmBD,EAAE,CAAC;EACpD,CAAC,CAAC;EAEFL,GAAG,CAACO,mBAAmB,CAACJ,sBAAe,CAACC,IAAI,EAAE,MAAMC,EAAE,IAAI;IACtD,MAAMJ,WAAW,CAACO,WAAW,CAAmBH,EAAE,CAAC;IACnD,OAAO,IAAI;EACf,CAAC,CAAC;EAEFL,GAAG,CAACS,qBAAqB,CAACN,sBAAe,CAACC,IAAI,EAAE,MAAMC,EAAE,IAAI;IACxD,MAAMJ,WAAW,CAACS,aAAa,CAAmBL,EAAE,CAAC;IACrD,OAAO,IAAI;EACf,CAAC,CAAC;AACN,CAAC,CAAC;AAACM,OAAA,CAAAd,qBAAA,GAAAA,qBAAA","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- import { GraphQLSchemaPlugin } from "@webiny/handler-graphql/plugins";
2
- import { ApwContext } from "../../types";
3
- export declare const extendPbPageSettingsSchema: () => GraphQLSchemaPlugin<ApwContext>;
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.extendPbPageSettingsSchema = void 0;
7
- var _plugins = require("@webiny/handler-graphql/plugins");
8
- const extendPbPageSettingsSchema = () => new _plugins.GraphQLSchemaPlugin({
9
- typeDefs: /* GraphQL */`
10
- type PbApwPageSettings {
11
- workflowId: ID
12
- contentReviewId: ID
13
- }
14
-
15
- extend type PbPageSettings {
16
- apw: PbApwPageSettings
17
- }
18
- `
19
- });
20
- exports.extendPbPageSettingsSchema = extendPbPageSettingsSchema;
21
-
22
- //# sourceMappingURL=extendPbPageSettingsSchema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_plugins","require","extendPbPageSettingsSchema","GraphQLSchemaPlugin","typeDefs","exports"],"sources":["extendPbPageSettingsSchema.ts"],"sourcesContent":["import { GraphQLSchemaPlugin } from \"@webiny/handler-graphql/plugins\";\nimport { ApwContext } from \"~/types\";\n\nexport const extendPbPageSettingsSchema = () =>\n new GraphQLSchemaPlugin<ApwContext>({\n typeDefs: /* GraphQL */ `\n type PbApwPageSettings {\n workflowId: ID\n contentReviewId: ID\n }\n\n extend type PbPageSettings {\n apw: PbApwPageSettings\n }\n `\n });\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAGO,MAAMC,0BAA0B,GAAGA,CAAA,KACtC,IAAIC,4BAAmB,CAAa;EAChCC,QAAQ,EAAE,aAAc;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI,CAAC,CAAC;AAACC,OAAA,CAAAH,0BAAA,GAAAA,0BAAA","ignoreList":[]}
@@ -1,11 +0,0 @@
1
- import { Security } from "@webiny/api-security/types";
2
- import { PageBuilderContextObject } from "@webiny/api-page-builder/graphql/types";
3
- import { AdvancedPublishingWorkflow } from "../../types";
4
- import { PluginsContainer } from "@webiny/plugins";
5
- export interface ApwPageBuilderPluginsParams {
6
- pageBuilder: PageBuilderContextObject;
7
- apw: AdvancedPublishingWorkflow;
8
- security: Security;
9
- plugins: PluginsContainer;
10
- }
11
- export declare const apwPageBuilderHooks: (params: ApwPageBuilderPluginsParams) => void;
@@ -1,44 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.apwPageBuilderHooks = void 0;
7
- var _triggerContentReview = require("./triggerContentReview");
8
- var _linkContentReviewToPage = require("./linkContentReviewToPage");
9
- var _updateContentReviewStatus = require("./updateContentReviewStatus");
10
- var _linkWorkflowToPage = require("./linkWorkflowToPage");
11
- var _PageApwSettingsGetterPlugin = require("./PageApwSettingsGetterPlugin");
12
- var _commentNotification = require("./notifications/commentNotification");
13
- var _contentUrl = require("./notifications/contentUrl");
14
- var _changeRequestNotification = require("./notifications/changeRequestNotification");
15
- var _contentReviewNotification = require("./notifications/contentReviewNotification");
16
- const apwPageBuilderHooks = params => {
17
- const {
18
- pageBuilder,
19
- apw,
20
- security,
21
- plugins
22
- } = params;
23
- plugins.register([new _PageApwSettingsGetterPlugin.PageApwSettingsGetterPlugin(), (0, _commentNotification.createCommentNotification)(), (0, _changeRequestNotification.createChangeRequestNotification)(), (0, _contentUrl.createContentUrlPlugin)(), (0, _contentReviewNotification.createContentReviewNotification)()]);
24
- (0, _triggerContentReview.triggerContentReview)({
25
- apw,
26
- pageBuilder
27
- });
28
- (0, _linkContentReviewToPage.linkContentReviewToPage)({
29
- apw,
30
- pageBuilder
31
- });
32
- (0, _updateContentReviewStatus.updateContentReviewStatus)({
33
- apw,
34
- pageBuilder,
35
- security
36
- });
37
- (0, _linkWorkflowToPage.linkWorkflowToPage)({
38
- apw,
39
- pageBuilder
40
- });
41
- };
42
- exports.apwPageBuilderHooks = apwPageBuilderHooks;
43
-
44
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_triggerContentReview","require","_linkContentReviewToPage","_updateContentReviewStatus","_linkWorkflowToPage","_PageApwSettingsGetterPlugin","_commentNotification","_contentUrl","_changeRequestNotification","_contentReviewNotification","apwPageBuilderHooks","params","pageBuilder","apw","security","plugins","register","PageApwSettingsGetterPlugin","createCommentNotification","createChangeRequestNotification","createContentUrlPlugin","createContentReviewNotification","triggerContentReview","linkContentReviewToPage","updateContentReviewStatus","linkWorkflowToPage","exports"],"sources":["index.ts"],"sourcesContent":["import { Security } from \"@webiny/api-security/types\";\nimport { PageBuilderContextObject } from \"@webiny/api-page-builder/graphql/types\";\nimport { AdvancedPublishingWorkflow } from \"~/types\";\nimport { triggerContentReview } from \"./triggerContentReview\";\nimport { linkContentReviewToPage } from \"./linkContentReviewToPage\";\nimport { updateContentReviewStatus } from \"./updateContentReviewStatus\";\nimport { linkWorkflowToPage } from \"./linkWorkflowToPage\";\nimport { PluginsContainer } from \"@webiny/plugins\";\nimport { PageApwSettingsGetterPlugin } from \"~/plugins/pageBuilder/PageApwSettingsGetterPlugin\";\nimport { createCommentNotification } from \"./notifications/commentNotification\";\nimport { createContentUrlPlugin } from \"./notifications/contentUrl\";\nimport { createChangeRequestNotification } from \"./notifications/changeRequestNotification\";\nimport { createContentReviewNotification } from \"./notifications/contentReviewNotification\";\n\nexport interface ApwPageBuilderPluginsParams {\n pageBuilder: PageBuilderContextObject;\n apw: AdvancedPublishingWorkflow;\n security: Security;\n plugins: PluginsContainer;\n}\n\nexport const apwPageBuilderHooks = (params: ApwPageBuilderPluginsParams) => {\n const { pageBuilder, apw, security, plugins } = params;\n\n plugins.register([\n new PageApwSettingsGetterPlugin(),\n createCommentNotification(),\n createChangeRequestNotification(),\n createContentUrlPlugin(),\n createContentReviewNotification()\n ]);\n\n triggerContentReview({\n apw,\n pageBuilder\n });\n linkContentReviewToPage({\n apw,\n pageBuilder\n });\n updateContentReviewStatus({\n apw,\n pageBuilder,\n security\n });\n linkWorkflowToPage({\n apw,\n pageBuilder\n });\n};\n"],"mappings":";;;;;;AAGA,IAAAA,qBAAA,GAAAC,OAAA;AACA,IAAAC,wBAAA,GAAAD,OAAA;AACA,IAAAE,0BAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AAEA,IAAAI,4BAAA,GAAAJ,OAAA;AACA,IAAAK,oBAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,0BAAA,GAAAP,OAAA;AACA,IAAAQ,0BAAA,GAAAR,OAAA;AASO,MAAMS,mBAAmB,GAAIC,MAAmC,IAAK;EACxE,MAAM;IAAEC,WAAW;IAAEC,GAAG;IAAEC,QAAQ;IAAEC;EAAQ,CAAC,GAAGJ,MAAM;EAEtDI,OAAO,CAACC,QAAQ,CAAC,CACb,IAAIC,wDAA2B,CAAC,CAAC,EACjC,IAAAC,8CAAyB,EAAC,CAAC,EAC3B,IAAAC,0DAA+B,EAAC,CAAC,EACjC,IAAAC,kCAAsB,EAAC,CAAC,EACxB,IAAAC,0DAA+B,EAAC,CAAC,CACpC,CAAC;EAEF,IAAAC,0CAAoB,EAAC;IACjBT,GAAG;IACHD;EACJ,CAAC,CAAC;EACF,IAAAW,gDAAuB,EAAC;IACpBV,GAAG;IACHD;EACJ,CAAC,CAAC;EACF,IAAAY,oDAAyB,EAAC;IACtBX,GAAG;IACHD,WAAW;IACXE;EACJ,CAAC,CAAC;EACF,IAAAW,sCAAkB,EAAC;IACfZ,GAAG;IACHD;EACJ,CAAC,CAAC;AACN,CAAC;AAACc,OAAA,CAAAhB,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -1,8 +0,0 @@
1
- import { AdvancedPublishingWorkflow } from "../../types";
2
- import { PageBuilderContextObject } from "@webiny/api-page-builder/graphql/types";
3
- interface LinkContentReviewToPageParams {
4
- apw: AdvancedPublishingWorkflow;
5
- pageBuilder: PageBuilderContextObject;
6
- }
7
- export declare const linkContentReviewToPage: (params: LinkContentReviewToPageParams) => void;
8
- export {};
@@ -1,93 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.linkContentReviewToPage = void 0;
8
- var _error = _interopRequireDefault(require("@webiny/error"));
9
- var _types = require("../../types");
10
- var _utils = require("./utils");
11
- const linkContentReviewToPage = params => {
12
- const {
13
- apw,
14
- pageBuilder
15
- } = params;
16
- apw.contentReview.onContentReviewAfterCreate.subscribe(async ({
17
- contentReview
18
- }) => {
19
- const {
20
- content
21
- } = contentReview;
22
- if (content.type !== _types.ApwContentTypes.PAGE) {
23
- return;
24
- }
25
- await (0, _utils.updatePageSettings)({
26
- getPage: pageBuilder.getPage,
27
- updatePage: pageBuilder.updatePage,
28
- uniquePageId: content.id,
29
- getNewSettings: settings => {
30
- return {
31
- ...settings,
32
- apw: {
33
- ...(settings.apw || {}),
34
- contentReviewId: contentReview.id
35
- }
36
- };
37
- }
38
- });
39
- });
40
- apw.contentReview.onContentReviewAfterDelete.subscribe(async ({
41
- contentReview
42
- }) => {
43
- const {
44
- content
45
- } = contentReview;
46
- if (content.type !== _types.ApwContentTypes.PAGE) {
47
- return;
48
- }
49
- await (0, _utils.updatePageSettings)({
50
- getPage: pageBuilder.getPage,
51
- updatePage: pageBuilder.updatePage,
52
- uniquePageId: content.id,
53
- getNewSettings: settings => {
54
- return {
55
- ...settings,
56
- apw: {
57
- ...(settings.apw || {}),
58
- contentReviewId: null
59
- }
60
- };
61
- }
62
- });
63
- });
64
- pageBuilder.onPageBeforeDelete.subscribe(async ({
65
- page
66
- }) => {
67
- const contentReviewId = page.settings?.apw?.contentReviewId;
68
- if (!contentReviewId) {
69
- return;
70
- }
71
- let contentReview;
72
- try {
73
- contentReview = await apw.contentReview.get(contentReviewId);
74
- } catch (ex) {
75
- /**
76
- * We're handling the case whereby "contentReviewId" is still linked to page;
77
- * even when the contentReview entry has been deleted. In that case, we'll allow page deletion.
78
- */
79
- if (ex.code !== "NOT_FOUND") {
80
- throw ex;
81
- }
82
- }
83
- if (contentReview) {
84
- throw new _error.default(`Cannot delete the page because a peer review has been requested. Please delete the review first.`, "CANNOT_DELETE_REVIEW_EXIST", {
85
- contentReviewId,
86
- page
87
- });
88
- }
89
- });
90
- };
91
- exports.linkContentReviewToPage = linkContentReviewToPage;
92
-
93
- //# sourceMappingURL=linkContentReviewToPage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_error","_interopRequireDefault","require","_types","_utils","linkContentReviewToPage","params","apw","pageBuilder","contentReview","onContentReviewAfterCreate","subscribe","content","type","ApwContentTypes","PAGE","updatePageSettings","getPage","updatePage","uniquePageId","id","getNewSettings","settings","contentReviewId","onContentReviewAfterDelete","onPageBeforeDelete","page","get","ex","code","Error","exports"],"sources":["linkContentReviewToPage.ts"],"sourcesContent":["import Error from \"@webiny/error\";\nimport { AdvancedPublishingWorkflow, ApwContentTypes } from \"~/types\";\nimport { updatePageSettings } from \"./utils\";\nimport { PageBuilderContextObject } from \"@webiny/api-page-builder/graphql/types\";\n\ninterface LinkContentReviewToPageParams {\n apw: AdvancedPublishingWorkflow;\n pageBuilder: PageBuilderContextObject;\n}\n\nexport const linkContentReviewToPage = (params: LinkContentReviewToPageParams) => {\n const { apw, pageBuilder } = params;\n\n apw.contentReview.onContentReviewAfterCreate.subscribe(async ({ contentReview }) => {\n const { content } = contentReview;\n\n if (content.type !== ApwContentTypes.PAGE) {\n return;\n }\n await updatePageSettings({\n getPage: pageBuilder.getPage,\n updatePage: pageBuilder.updatePage,\n uniquePageId: content.id,\n getNewSettings: settings => {\n return {\n ...settings,\n apw: {\n ...(settings.apw || {}),\n contentReviewId: contentReview.id\n }\n };\n }\n });\n });\n\n apw.contentReview.onContentReviewAfterDelete.subscribe(async ({ contentReview }) => {\n const { content } = contentReview;\n\n if (content.type !== ApwContentTypes.PAGE) {\n return;\n }\n await updatePageSettings({\n getPage: pageBuilder.getPage,\n updatePage: pageBuilder.updatePage,\n uniquePageId: content.id,\n getNewSettings: settings => {\n return {\n ...settings,\n apw: {\n ...(settings.apw || {}),\n contentReviewId: null\n }\n };\n }\n });\n });\n\n pageBuilder.onPageBeforeDelete.subscribe(async ({ page }) => {\n const contentReviewId = page.settings?.apw?.contentReviewId;\n if (!contentReviewId) {\n return;\n }\n\n let contentReview;\n try {\n contentReview = await apw.contentReview.get(contentReviewId);\n } catch (ex) {\n /**\n * We're handling the case whereby \"contentReviewId\" is still linked to page;\n * even when the contentReview entry has been deleted. In that case, we'll allow page deletion.\n */\n if (ex.code !== \"NOT_FOUND\") {\n throw ex;\n }\n }\n\n if (contentReview) {\n throw new Error(\n `Cannot delete the page because a peer review has been requested. Please delete the review first.`,\n \"CANNOT_DELETE_REVIEW_EXIST\",\n {\n contentReviewId,\n page\n }\n );\n }\n });\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAQO,MAAMG,uBAAuB,GAAIC,MAAqC,IAAK;EAC9E,MAAM;IAAEC,GAAG;IAAEC;EAAY,CAAC,GAAGF,MAAM;EAEnCC,GAAG,CAACE,aAAa,CAACC,0BAA0B,CAACC,SAAS,CAAC,OAAO;IAAEF;EAAc,CAAC,KAAK;IAChF,MAAM;MAAEG;IAAQ,CAAC,GAAGH,aAAa;IAEjC,IAAIG,OAAO,CAACC,IAAI,KAAKC,sBAAe,CAACC,IAAI,EAAE;MACvC;IACJ;IACA,MAAM,IAAAC,yBAAkB,EAAC;MACrBC,OAAO,EAAET,WAAW,CAACS,OAAO;MAC5BC,UAAU,EAAEV,WAAW,CAACU,UAAU;MAClCC,YAAY,EAAEP,OAAO,CAACQ,EAAE;MACxBC,cAAc,EAAEC,QAAQ,IAAI;QACxB,OAAO;UACH,GAAGA,QAAQ;UACXf,GAAG,EAAE;YACD,IAAIe,QAAQ,CAACf,GAAG,IAAI,CAAC,CAAC,CAAC;YACvBgB,eAAe,EAAEd,aAAa,CAACW;UACnC;QACJ,CAAC;MACL;IACJ,CAAC,CAAC;EACN,CAAC,CAAC;EAEFb,GAAG,CAACE,aAAa,CAACe,0BAA0B,CAACb,SAAS,CAAC,OAAO;IAAEF;EAAc,CAAC,KAAK;IAChF,MAAM;MAAEG;IAAQ,CAAC,GAAGH,aAAa;IAEjC,IAAIG,OAAO,CAACC,IAAI,KAAKC,sBAAe,CAACC,IAAI,EAAE;MACvC;IACJ;IACA,MAAM,IAAAC,yBAAkB,EAAC;MACrBC,OAAO,EAAET,WAAW,CAACS,OAAO;MAC5BC,UAAU,EAAEV,WAAW,CAACU,UAAU;MAClCC,YAAY,EAAEP,OAAO,CAACQ,EAAE;MACxBC,cAAc,EAAEC,QAAQ,IAAI;QACxB,OAAO;UACH,GAAGA,QAAQ;UACXf,GAAG,EAAE;YACD,IAAIe,QAAQ,CAACf,GAAG,IAAI,CAAC,CAAC,CAAC;YACvBgB,eAAe,EAAE;UACrB;QACJ,CAAC;MACL;IACJ,CAAC,CAAC;EACN,CAAC,CAAC;EAEFf,WAAW,CAACiB,kBAAkB,CAACd,SAAS,CAAC,OAAO;IAAEe;EAAK,CAAC,KAAK;IACzD,MAAMH,eAAe,GAAGG,IAAI,CAACJ,QAAQ,EAAEf,GAAG,EAAEgB,eAAe;IAC3D,IAAI,CAACA,eAAe,EAAE;MAClB;IACJ;IAEA,IAAId,aAAa;IACjB,IAAI;MACAA,aAAa,GAAG,MAAMF,GAAG,CAACE,aAAa,CAACkB,GAAG,CAACJ,eAAe,CAAC;IAChE,CAAC,CAAC,OAAOK,EAAE,EAAE;MACT;AACZ;AACA;AACA;MACY,IAAIA,EAAE,CAACC,IAAI,KAAK,WAAW,EAAE;QACzB,MAAMD,EAAE;MACZ;IACJ;IAEA,IAAInB,aAAa,EAAE;MACf,MAAM,IAAIqB,cAAK,CACX,kGAAkG,EAClG,4BAA4B,EAC5B;QACIP,eAAe;QACfG;MACJ,CACJ,CAAC;IACL;EACJ,CAAC,CAAC;AACN,CAAC;AAACK,OAAA,CAAA1B,uBAAA,GAAAA,uBAAA","ignoreList":[]}
@@ -1,8 +0,0 @@
1
- import { AdvancedPublishingWorkflow } from "../../types";
2
- import { PageBuilderContextObject } from "@webiny/api-page-builder/graphql/types";
3
- interface LinkWorkflowToPageParams {
4
- apw: AdvancedPublishingWorkflow;
5
- pageBuilder: PageBuilderContextObject;
6
- }
7
- export declare const linkWorkflowToPage: (params: LinkWorkflowToPageParams) => void;
8
- export {};
@@ -1,165 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.linkWorkflowToPage = void 0;
8
- var _set = _interopRequireDefault(require("lodash/set"));
9
- var _types = require("../../types");
10
- var _utils = require("./utils");
11
- const linkWorkflowToPage = params => {
12
- const {
13
- apw,
14
- pageBuilder
15
- } = params;
16
- pageBuilder.onPageBeforeCreate.subscribe(async ({
17
- page
18
- }) => {
19
- await (0, _utils.assignWorkflowToPage)({
20
- listWorkflow: apw.workflow.list,
21
- page
22
- });
23
- });
24
- pageBuilder.onPageBeforeCreateFrom.subscribe(async params => {
25
- const {
26
- page,
27
- original
28
- } = params;
29
- /**
30
- * If the previous revision(original) already had the "contentReviewId",
31
- * we need to unlink it so that new "contentReview" can be request for the new revision.
32
- */
33
- const previousContentReviewId = original.settings.apw?.contentReviewId;
34
- if (previousContentReviewId) {
35
- page.settings.apw.contentReviewId = null;
36
- }
37
-
38
- /**
39
- * If the previous revision(original) already had the "workflowId",
40
- * we don't need to do anything we'll just let it be copied over.
41
- */
42
- const previousWorkflowId = original.settings.apw?.workflowId;
43
- if (previousWorkflowId) {
44
- return;
45
- }
46
- /**
47
- * Lookup and assign "workflowId".
48
- */
49
- await (0, _utils.assignWorkflowToPage)({
50
- listWorkflow: apw.workflow.list,
51
- page
52
- });
53
- });
54
- pageBuilder.onPageBeforeUpdate.subscribe(async params => {
55
- const {
56
- page,
57
- original
58
- } = params;
59
- const prevApwWorkflowId = original.settings?.apw;
60
- const currentApwWorkflowId = page.settings?.apw;
61
- /**
62
- * Make sure the apw property doesn't get lost between updates.
63
- * It can happen because we run modal validation in "onBeforePageUpdate" event,
64
- * which doesn't have the "apw" property.
65
- */
66
- if (prevApwWorkflowId && !currentApwWorkflowId) {
67
- page.settings.apw = original.settings.apw;
68
- }
69
- /*
70
- * If there is a linked "contentReview" for this page and the page "title" has changed.
71
- * Let's update the "title" field in "contentReview".
72
- */
73
- const linkedContentReviewId = page.settings.apw?.contentReviewId;
74
- const prevTitle = original.title;
75
- const newTitle = page.title;
76
- if (linkedContentReviewId && prevTitle !== newTitle) {
77
- await apw.contentReview.update(linkedContentReviewId, {
78
- title: newTitle
79
- });
80
- }
81
- });
82
- /**
83
- * Link created workflow to associated pages.
84
- */
85
- apw.workflow.onWorkflowAfterCreate.subscribe(async ({
86
- workflow
87
- }) => {
88
- const {
89
- scope
90
- } = workflow;
91
- if (workflow.app !== _types.ApwWorkflowApplications.PB) {
92
- return;
93
- }
94
- /**
95
- * If the workflow has pages in it's scope, we'll link that workflow for each of those pages.
96
- */
97
- if ((0, _utils.hasPages)(workflow) === false) {
98
- return;
99
- }
100
- const pages = scope.data?.pages || [];
101
- for (const pid of pages) {
102
- await (0, _utils.updatePageSettings)({
103
- getPage: pageBuilder.getPage,
104
- updatePage: pageBuilder.updatePage,
105
- uniquePageId: pid,
106
- getNewSettings: settings => {
107
- return (0, _set.default)(settings, "apw.workflowId", workflow.id);
108
- }
109
- });
110
- }
111
- });
112
- /**
113
- * Link updated workflow to associated pages.
114
- */
115
- apw.workflow.onWorkflowAfterUpdate.subscribe(async ({
116
- workflow,
117
- original
118
- }) => {
119
- const {
120
- scope
121
- } = workflow;
122
- if (workflow.app !== _types.ApwWorkflowApplications.PB) {
123
- return;
124
- }
125
- const {
126
- scope: prevScope
127
- } = original;
128
- /**
129
- * If the workflow has pages in it's scope and there is a change in that page list,
130
- * we'll update the workflow link for corresponding pages.
131
- */
132
- if ((0, _utils.hasPages)(workflow) === false || (0, _utils.shouldUpdatePages)(scope, prevScope) === false) {
133
- return;
134
- }
135
- const previousPages = prevScope.data?.pages || [];
136
- const currentPages = scope.data?.pages || [];
137
- const {
138
- removedPages,
139
- addedPages
140
- } = (0, _utils.getPagesDiff)(currentPages, previousPages);
141
- for (const pid of addedPages) {
142
- await (0, _utils.updatePageSettings)({
143
- getPage: pageBuilder.getPage,
144
- updatePage: pageBuilder.updatePage,
145
- uniquePageId: pid,
146
- getNewSettings: settings => {
147
- return (0, _set.default)(settings, "apw.workflowId", workflow.id);
148
- }
149
- });
150
- }
151
- for (const pid of removedPages) {
152
- await (0, _utils.updatePageSettings)({
153
- getPage: pageBuilder.getPage,
154
- updatePage: pageBuilder.updatePage,
155
- uniquePageId: pid,
156
- getNewSettings: settings => {
157
- return (0, _set.default)(settings, "apw.workflowId", null);
158
- }
159
- });
160
- }
161
- });
162
- };
163
- exports.linkWorkflowToPage = linkWorkflowToPage;
164
-
165
- //# sourceMappingURL=linkWorkflowToPage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_set","_interopRequireDefault","require","_types","_utils","linkWorkflowToPage","params","apw","pageBuilder","onPageBeforeCreate","subscribe","page","assignWorkflowToPage","listWorkflow","workflow","list","onPageBeforeCreateFrom","original","previousContentReviewId","settings","contentReviewId","previousWorkflowId","workflowId","onPageBeforeUpdate","prevApwWorkflowId","currentApwWorkflowId","linkedContentReviewId","prevTitle","title","newTitle","contentReview","update","onWorkflowAfterCreate","scope","app","ApwWorkflowApplications","PB","hasPages","pages","data","pid","updatePageSettings","getPage","updatePage","uniquePageId","getNewSettings","set","id","onWorkflowAfterUpdate","prevScope","shouldUpdatePages","previousPages","currentPages","removedPages","addedPages","getPagesDiff","exports"],"sources":["linkWorkflowToPage.ts"],"sourcesContent":["import set from \"lodash/set\";\nimport {\n AdvancedPublishingWorkflow,\n ApwOnPageBeforeCreateFromTopicParams,\n ApwOnPageBeforeCreateTopicParams,\n ApwOnPageBeforeUpdateTopicParams,\n ApwWorkflowApplications\n} from \"~/types\";\nimport {\n assignWorkflowToPage,\n getPagesDiff,\n hasPages,\n shouldUpdatePages,\n updatePageSettings\n} from \"./utils\";\nimport { PageBuilderContextObject } from \"@webiny/api-page-builder/graphql/types\";\n\ninterface LinkWorkflowToPageParams {\n apw: AdvancedPublishingWorkflow;\n pageBuilder: PageBuilderContextObject;\n}\n\nexport const linkWorkflowToPage = (params: LinkWorkflowToPageParams) => {\n const { apw, pageBuilder } = params;\n\n pageBuilder.onPageBeforeCreate.subscribe<ApwOnPageBeforeCreateTopicParams>(async ({ page }) => {\n await assignWorkflowToPage({ listWorkflow: apw.workflow.list, page });\n });\n pageBuilder.onPageBeforeCreateFrom.subscribe<ApwOnPageBeforeCreateFromTopicParams>(\n async params => {\n const { page, original } = params;\n /**\n * If the previous revision(original) already had the \"contentReviewId\",\n * we need to unlink it so that new \"contentReview\" can be request for the new revision.\n */\n const previousContentReviewId = original.settings.apw?.contentReviewId;\n if (previousContentReviewId) {\n page.settings.apw.contentReviewId = null;\n }\n\n /**\n * If the previous revision(original) already had the \"workflowId\",\n * we don't need to do anything we'll just let it be copied over.\n */\n const previousWorkflowId = original.settings.apw?.workflowId;\n if (previousWorkflowId) {\n return;\n }\n /**\n * Lookup and assign \"workflowId\".\n */\n await assignWorkflowToPage({ listWorkflow: apw.workflow.list, page });\n }\n );\n pageBuilder.onPageBeforeUpdate.subscribe<ApwOnPageBeforeUpdateTopicParams>(async params => {\n const { page, original } = params;\n const prevApwWorkflowId = original.settings?.apw;\n const currentApwWorkflowId = page.settings?.apw;\n /**\n * Make sure the apw property doesn't get lost between updates.\n * It can happen because we run modal validation in \"onBeforePageUpdate\" event,\n * which doesn't have the \"apw\" property.\n */\n if (prevApwWorkflowId && !currentApwWorkflowId) {\n page.settings.apw = original.settings.apw;\n }\n /*\n * If there is a linked \"contentReview\" for this page and the page \"title\" has changed.\n * Let's update the \"title\" field in \"contentReview\".\n */\n const linkedContentReviewId = page.settings.apw?.contentReviewId;\n const prevTitle = original.title;\n const newTitle = page.title;\n\n if (linkedContentReviewId && prevTitle !== newTitle) {\n await apw.contentReview.update(linkedContentReviewId, { title: newTitle });\n }\n });\n /**\n * Link created workflow to associated pages.\n */\n apw.workflow.onWorkflowAfterCreate.subscribe(async ({ workflow }) => {\n const { scope } = workflow;\n if (workflow.app !== ApwWorkflowApplications.PB) {\n return;\n }\n /**\n * If the workflow has pages in it's scope, we'll link that workflow for each of those pages.\n */\n if (hasPages(workflow) === false) {\n return;\n }\n const pages = scope.data?.pages || [];\n\n for (const pid of pages) {\n await updatePageSettings({\n getPage: pageBuilder.getPage,\n updatePage: pageBuilder.updatePage,\n uniquePageId: pid,\n getNewSettings: settings => {\n return set(settings, \"apw.workflowId\", workflow.id);\n }\n });\n }\n });\n /**\n * Link updated workflow to associated pages.\n */\n apw.workflow.onWorkflowAfterUpdate.subscribe(async ({ workflow, original }) => {\n const { scope } = workflow;\n if (workflow.app !== ApwWorkflowApplications.PB) {\n return;\n }\n const { scope: prevScope } = original;\n /**\n * If the workflow has pages in it's scope and there is a change in that page list,\n * we'll update the workflow link for corresponding pages.\n */\n if (hasPages(workflow) === false || shouldUpdatePages(scope, prevScope) === false) {\n return;\n }\n\n const previousPages = prevScope.data?.pages || [];\n const currentPages = scope.data?.pages || [];\n\n const { removedPages, addedPages } = getPagesDiff(currentPages, previousPages);\n for (const pid of addedPages) {\n await updatePageSettings({\n getPage: pageBuilder.getPage,\n updatePage: pageBuilder.updatePage,\n uniquePageId: pid,\n getNewSettings: settings => {\n return set(settings, \"apw.workflowId\", workflow.id);\n }\n });\n }\n for (const pid of removedPages) {\n await updatePageSettings({\n getPage: pageBuilder.getPage,\n updatePage: pageBuilder.updatePage,\n uniquePageId: pid,\n getNewSettings: settings => {\n return set(settings, \"apw.workflowId\", null);\n }\n });\n }\n });\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,IAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAOA,IAAAE,MAAA,GAAAF,OAAA;AAcO,MAAMG,kBAAkB,GAAIC,MAAgC,IAAK;EACpE,MAAM;IAAEC,GAAG;IAAEC;EAAY,CAAC,GAAGF,MAAM;EAEnCE,WAAW,CAACC,kBAAkB,CAACC,SAAS,CAAmC,OAAO;IAAEC;EAAK,CAAC,KAAK;IAC3F,MAAM,IAAAC,2BAAoB,EAAC;MAAEC,YAAY,EAAEN,GAAG,CAACO,QAAQ,CAACC,IAAI;MAAEJ;IAAK,CAAC,CAAC;EACzE,CAAC,CAAC;EACFH,WAAW,CAACQ,sBAAsB,CAACN,SAAS,CACxC,MAAMJ,MAAM,IAAI;IACZ,MAAM;MAAEK,IAAI;MAAEM;IAAS,CAAC,GAAGX,MAAM;IACjC;AACZ;AACA;AACA;IACY,MAAMY,uBAAuB,GAAGD,QAAQ,CAACE,QAAQ,CAACZ,GAAG,EAAEa,eAAe;IACtE,IAAIF,uBAAuB,EAAE;MACzBP,IAAI,CAACQ,QAAQ,CAACZ,GAAG,CAACa,eAAe,GAAG,IAAI;IAC5C;;IAEA;AACZ;AACA;AACA;IACY,MAAMC,kBAAkB,GAAGJ,QAAQ,CAACE,QAAQ,CAACZ,GAAG,EAAEe,UAAU;IAC5D,IAAID,kBAAkB,EAAE;MACpB;IACJ;IACA;AACZ;AACA;IACY,MAAM,IAAAT,2BAAoB,EAAC;MAAEC,YAAY,EAAEN,GAAG,CAACO,QAAQ,CAACC,IAAI;MAAEJ;IAAK,CAAC,CAAC;EACzE,CACJ,CAAC;EACDH,WAAW,CAACe,kBAAkB,CAACb,SAAS,CAAmC,MAAMJ,MAAM,IAAI;IACvF,MAAM;MAAEK,IAAI;MAAEM;IAAS,CAAC,GAAGX,MAAM;IACjC,MAAMkB,iBAAiB,GAAGP,QAAQ,CAACE,QAAQ,EAAEZ,GAAG;IAChD,MAAMkB,oBAAoB,GAAGd,IAAI,CAACQ,QAAQ,EAAEZ,GAAG;IAC/C;AACR;AACA;AACA;AACA;IACQ,IAAIiB,iBAAiB,IAAI,CAACC,oBAAoB,EAAE;MAC5Cd,IAAI,CAACQ,QAAQ,CAACZ,GAAG,GAAGU,QAAQ,CAACE,QAAQ,CAACZ,GAAG;IAC7C;IACA;AACR;AACA;AACA;IACQ,MAAMmB,qBAAqB,GAAGf,IAAI,CAACQ,QAAQ,CAACZ,GAAG,EAAEa,eAAe;IAChE,MAAMO,SAAS,GAAGV,QAAQ,CAACW,KAAK;IAChC,MAAMC,QAAQ,GAAGlB,IAAI,CAACiB,KAAK;IAE3B,IAAIF,qBAAqB,IAAIC,SAAS,KAAKE,QAAQ,EAAE;MACjD,MAAMtB,GAAG,CAACuB,aAAa,CAACC,MAAM,CAACL,qBAAqB,EAAE;QAAEE,KAAK,EAAEC;MAAS,CAAC,CAAC;IAC9E;EACJ,CAAC,CAAC;EACF;AACJ;AACA;EACItB,GAAG,CAACO,QAAQ,CAACkB,qBAAqB,CAACtB,SAAS,CAAC,OAAO;IAAEI;EAAS,CAAC,KAAK;IACjE,MAAM;MAAEmB;IAAM,CAAC,GAAGnB,QAAQ;IAC1B,IAAIA,QAAQ,CAACoB,GAAG,KAAKC,8BAAuB,CAACC,EAAE,EAAE;MAC7C;IACJ;IACA;AACR;AACA;IACQ,IAAI,IAAAC,eAAQ,EAACvB,QAAQ,CAAC,KAAK,KAAK,EAAE;MAC9B;IACJ;IACA,MAAMwB,KAAK,GAAGL,KAAK,CAACM,IAAI,EAAED,KAAK,IAAI,EAAE;IAErC,KAAK,MAAME,GAAG,IAAIF,KAAK,EAAE;MACrB,MAAM,IAAAG,yBAAkB,EAAC;QACrBC,OAAO,EAAElC,WAAW,CAACkC,OAAO;QAC5BC,UAAU,EAAEnC,WAAW,CAACmC,UAAU;QAClCC,YAAY,EAAEJ,GAAG;QACjBK,cAAc,EAAE1B,QAAQ,IAAI;UACxB,OAAO,IAAA2B,YAAG,EAAC3B,QAAQ,EAAE,gBAAgB,EAAEL,QAAQ,CAACiC,EAAE,CAAC;QACvD;MACJ,CAAC,CAAC;IACN;EACJ,CAAC,CAAC;EACF;AACJ;AACA;EACIxC,GAAG,CAACO,QAAQ,CAACkC,qBAAqB,CAACtC,SAAS,CAAC,OAAO;IAAEI,QAAQ;IAAEG;EAAS,CAAC,KAAK;IAC3E,MAAM;MAAEgB;IAAM,CAAC,GAAGnB,QAAQ;IAC1B,IAAIA,QAAQ,CAACoB,GAAG,KAAKC,8BAAuB,CAACC,EAAE,EAAE;MAC7C;IACJ;IACA,MAAM;MAAEH,KAAK,EAAEgB;IAAU,CAAC,GAAGhC,QAAQ;IACrC;AACR;AACA;AACA;IACQ,IAAI,IAAAoB,eAAQ,EAACvB,QAAQ,CAAC,KAAK,KAAK,IAAI,IAAAoC,wBAAiB,EAACjB,KAAK,EAAEgB,SAAS,CAAC,KAAK,KAAK,EAAE;MAC/E;IACJ;IAEA,MAAME,aAAa,GAAGF,SAAS,CAACV,IAAI,EAAED,KAAK,IAAI,EAAE;IACjD,MAAMc,YAAY,GAAGnB,KAAK,CAACM,IAAI,EAAED,KAAK,IAAI,EAAE;IAE5C,MAAM;MAAEe,YAAY;MAAEC;IAAW,CAAC,GAAG,IAAAC,mBAAY,EAACH,YAAY,EAAED,aAAa,CAAC;IAC9E,KAAK,MAAMX,GAAG,IAAIc,UAAU,EAAE;MAC1B,MAAM,IAAAb,yBAAkB,EAAC;QACrBC,OAAO,EAAElC,WAAW,CAACkC,OAAO;QAC5BC,UAAU,EAAEnC,WAAW,CAACmC,UAAU;QAClCC,YAAY,EAAEJ,GAAG;QACjBK,cAAc,EAAE1B,QAAQ,IAAI;UACxB,OAAO,IAAA2B,YAAG,EAAC3B,QAAQ,EAAE,gBAAgB,EAAEL,QAAQ,CAACiC,EAAE,CAAC;QACvD;MACJ,CAAC,CAAC;IACN;IACA,KAAK,MAAMP,GAAG,IAAIa,YAAY,EAAE;MAC5B,MAAM,IAAAZ,yBAAkB,EAAC;QACrBC,OAAO,EAAElC,WAAW,CAACkC,OAAO;QAC5BC,UAAU,EAAEnC,WAAW,CAACmC,UAAU;QAClCC,YAAY,EAAEJ,GAAG;QACjBK,cAAc,EAAE1B,QAAQ,IAAI;UACxB,OAAO,IAAA2B,YAAG,EAAC3B,QAAQ,EAAE,gBAAgB,EAAE,IAAI,CAAC;QAChD;MACJ,CAAC,CAAC;IACN;EACJ,CAAC,CAAC;AACN,CAAC;AAACqC,OAAA,CAAAnD,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- export declare const createChangeRequestNotification: () => import("../../../ApwChangeRequestNotification").ApwChangeRequestNotification;
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.createChangeRequestNotification = void 0;
7
- var _types = require("../../../types");
8
- var _ApwChangeRequestNotification = require("../../../ApwChangeRequestNotification");
9
- const createChangeRequestNotification = () => {
10
- const plugin = (0, _ApwChangeRequestNotification.createApwChangeRequestNotification)(_types.ApwContentTypes.PAGE, params => {
11
- const {
12
- changeRequestUrl,
13
- contentUrl
14
- } = params;
15
- return {
16
- text: `
17
- Hi,<br /><br />
18
-
19
- You have received a <a href="${changeRequestUrl}">change request</a>, for <a href="${contentUrl}">this</a> page.<br /><br />
20
-
21
- Here are the full URLs:<br /><br />
22
-
23
- Change Request: ${changeRequestUrl}<br />
24
- Page: ${contentUrl}
25
- `
26
- };
27
- });
28
- plugin.name = `${plugin.type}.${_types.ApwContentTypes.PAGE}.default`;
29
- return plugin;
30
- };
31
- exports.createChangeRequestNotification = createChangeRequestNotification;
32
-
33
- //# sourceMappingURL=changeRequestNotification.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_types","require","_ApwChangeRequestNotification","createChangeRequestNotification","plugin","createApwChangeRequestNotification","ApwContentTypes","PAGE","params","changeRequestUrl","contentUrl","text","name","type","exports"],"sources":["changeRequestNotification.ts"],"sourcesContent":["import { ApwContentTypes } from \"~/types\";\nimport { createApwChangeRequestNotification } from \"~/ApwChangeRequestNotification\";\n\nexport const createChangeRequestNotification = () => {\n const plugin = createApwChangeRequestNotification(ApwContentTypes.PAGE, params => {\n const { changeRequestUrl, contentUrl } = params;\n return {\n text: `\n Hi,<br /><br />\n \n You have received a <a href=\"${changeRequestUrl}\">change request</a>, for <a href=\"${contentUrl}\">this</a> page.<br /><br />\n \n Here are the full URLs:<br /><br />\n \n Change Request: ${changeRequestUrl}<br />\n Page: ${contentUrl}\n `\n };\n });\n\n plugin.name = `${plugin.type}.${ApwContentTypes.PAGE}.default`;\n\n return plugin;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,6BAAA,GAAAD,OAAA;AAEO,MAAME,+BAA+B,GAAGA,CAAA,KAAM;EACjD,MAAMC,MAAM,GAAG,IAAAC,gEAAkC,EAACC,sBAAe,CAACC,IAAI,EAAEC,MAAM,IAAI;IAC9E,MAAM;MAAEC,gBAAgB;MAAEC;IAAW,CAAC,GAAGF,MAAM;IAC/C,OAAO;MACHG,IAAI,EAAE;AAClB;AACA;AACA,+CAA+CF,gBAAgB,sCAAsCC,UAAU;AAC/G;AACA;AACA;AACA,kCAAkCD,gBAAgB;AAClD,wBAAwBC,UAAU;AAClC;IACQ,CAAC;EACL,CAAC,CAAC;EAEFN,MAAM,CAACQ,IAAI,GAAG,GAAGR,MAAM,CAACS,IAAI,IAAIP,sBAAe,CAACC,IAAI,UAAU;EAE9D,OAAOH,MAAM;AACjB,CAAC;AAACU,OAAA,CAAAX,+BAAA,GAAAA,+BAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- export declare const createCommentNotification: () => import("../../../ApwCommentNotification").ApwCommentNotification;
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.createCommentNotification = void 0;
7
- var _ApwCommentNotification = require("../../../ApwCommentNotification");
8
- var _types = require("../../../types");
9
- const createCommentNotification = () => {
10
- const plugin = (0, _ApwCommentNotification.createApwCommentNotification)(_types.ApwContentTypes.PAGE, params => {
11
- const {
12
- commentUrl,
13
- contentUrl
14
- } = params;
15
- return {
16
- text: `
17
- Hi,<br /><br />
18
-
19
- You have received a <a href="${commentUrl}">comment</a>, on a change request, for <a href="${contentUrl}">this</a> page.<br /><br />
20
-
21
- Here are the full URLs:<br /><br />
22
-
23
- Comment: ${commentUrl}<br />
24
- Page: ${contentUrl}
25
- `
26
- };
27
- });
28
- plugin.name = `${plugin.type}.${_types.ApwContentTypes.PAGE}.default`;
29
- return plugin;
30
- };
31
- exports.createCommentNotification = createCommentNotification;
32
-
33
- //# sourceMappingURL=commentNotification.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_ApwCommentNotification","require","_types","createCommentNotification","plugin","createApwCommentNotification","ApwContentTypes","PAGE","params","commentUrl","contentUrl","text","name","type","exports"],"sources":["commentNotification.ts"],"sourcesContent":["import { createApwCommentNotification } from \"~/ApwCommentNotification\";\nimport { ApwContentTypes } from \"~/types\";\n\nexport const createCommentNotification = () => {\n const plugin = createApwCommentNotification(ApwContentTypes.PAGE, params => {\n const { commentUrl, contentUrl } = params;\n return {\n text: `\n Hi,<br /><br />\n \n You have received a <a href=\"${commentUrl}\">comment</a>, on a change request, for <a href=\"${contentUrl}\">this</a> page.<br /><br />\n \n Here are the full URLs:<br /><br />\n \n Comment: ${commentUrl}<br />\n Page: ${contentUrl}\n `\n };\n });\n\n plugin.name = `${plugin.type}.${ApwContentTypes.PAGE}.default`;\n\n return plugin;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,MAAME,yBAAyB,GAAGA,CAAA,KAAM;EAC3C,MAAMC,MAAM,GAAG,IAAAC,oDAA4B,EAACC,sBAAe,CAACC,IAAI,EAAEC,MAAM,IAAI;IACxE,MAAM;MAAEC,UAAU;MAAEC;IAAW,CAAC,GAAGF,MAAM;IACzC,OAAO;MACHG,IAAI,EAAE;AAClB;AACA;AACA,+CAA+CF,UAAU,oDAAoDC,UAAU;AACvH;AACA;AACA;AACA,2BAA2BD,UAAU;AACrC,wBAAwBC,UAAU;AAClC;IACQ,CAAC;EACL,CAAC,CAAC;EAEFN,MAAM,CAACQ,IAAI,GAAG,GAAGR,MAAM,CAACS,IAAI,IAAIP,sBAAe,CAACC,IAAI,UAAU;EAE9D,OAAOH,MAAM;AACjB,CAAC;AAACU,OAAA,CAAAX,yBAAA,GAAAA,yBAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- export declare const createContentReviewNotification: () => import("../../../ApwContentReviewNotification").ApwContentReviewNotification;