@webiny/api-apw 5.37.5 → 5.37.6-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. package/ApwChangeRequestNotification.js +1 -3
  2. package/ApwCommentNotification.js +1 -3
  3. package/ApwContentReviewNotification.js +1 -3
  4. package/ApwContentUrlPlugin.js +1 -3
  5. package/ContentApwSettingsPlugin.js +1 -3
  6. package/crud/createChangeRequestMethods.js +1 -3
  7. package/crud/createCommentMethods.js +1 -3
  8. package/crud/createContentReviewMethods.js +1 -3
  9. package/crud/createReviewerMethods.js +1 -3
  10. package/crud/createWorkflowMethods.js +1 -3
  11. package/crud/index.js +1 -3
  12. package/crud/utils.js +1 -3
  13. package/index.d.ts +1 -1
  14. package/index.js +1 -3
  15. package/package.json +26 -26
  16. package/plugins/cms/CmsEntryApwSettingsGetterPlugin.js +1 -3
  17. package/plugins/cms/apwEntryPlugins.js +1 -3
  18. package/plugins/cms/index.js +1 -3
  19. package/plugins/cms/linkContentReviewToEntry.js +1 -3
  20. package/plugins/cms/linkWorkflowToEntry.js +1 -3
  21. package/plugins/cms/notifications/changeRequestNotification.js +1 -3
  22. package/plugins/cms/notifications/commentNotification.js +1 -3
  23. package/plugins/cms/notifications/contentReviewNotification.js +1 -3
  24. package/plugins/cms/notifications/contentUrl.js +1 -3
  25. package/plugins/cms/triggerContentReview.js +1 -3
  26. package/plugins/cms/updateContentReviewStatus.js +1 -3
  27. package/plugins/cms/utils.js +1 -3
  28. package/plugins/context.js +1 -3
  29. package/plugins/graphql/changeRequest.gql.js +1 -3
  30. package/plugins/graphql/comment.gql.js +1 -3
  31. package/plugins/graphql/contentReview.gql.js +1 -3
  32. package/plugins/graphql/reviewer.gql.js +1 -3
  33. package/plugins/graphql/workflow.gql.js +1 -3
  34. package/plugins/graphql.js +1 -3
  35. package/plugins/hooks/createReviewerFromIdentity.js +1 -3
  36. package/plugins/hooks/deleteChangeRequestsAfterContentReview.js +1 -3
  37. package/plugins/hooks/deleteCommentsAfterChangeRequest.js +1 -3
  38. package/plugins/hooks/index.js +1 -3
  39. package/plugins/hooks/initializeContentReviewSteps.js +1 -3
  40. package/plugins/hooks/initializeNotifications.js +1 -3
  41. package/plugins/hooks/listContentReviews.js +1 -3
  42. package/plugins/hooks/notifications/appUrl.js +1 -3
  43. package/plugins/hooks/notifications/changeRequestAfterCreate.js +1 -3
  44. package/plugins/hooks/notifications/changeRequestUrl.js +1 -3
  45. package/plugins/hooks/notifications/commentAfterCreate.js +1 -3
  46. package/plugins/hooks/notifications/commentUrl.js +1 -3
  47. package/plugins/hooks/notifications/contentReviewAfterCreate.js +1 -3
  48. package/plugins/hooks/notifications/contentReviewUrl.js +1 -3
  49. package/plugins/hooks/notifications/contentUrl.js +1 -3
  50. package/plugins/hooks/notifications/lastChangeRequestNotificationPlugin.js +1 -3
  51. package/plugins/hooks/notifications/lastCommentNotificationPlugin.js +1 -3
  52. package/plugins/hooks/notifications/lastContentReviewNotificationPlugin.js +1 -3
  53. package/plugins/hooks/notifications/reviewers.js +1 -3
  54. package/plugins/hooks/notifications/sendChangeRequestNotification.js +1 -3
  55. package/plugins/hooks/notifications/sendCommentNotification.js +1 -3
  56. package/plugins/hooks/notifications/sendContentReviewNotification.js +1 -3
  57. package/plugins/hooks/updatePendingChangeRequests.js +1 -3
  58. package/plugins/hooks/updateTotalComments.js +1 -3
  59. package/plugins/hooks/validateChangeRequest.js +1 -3
  60. package/plugins/hooks/validateComment.js +1 -3
  61. package/plugins/hooks/validateContentReview.js +1 -3
  62. package/plugins/pageBuilder/PageApwSettingsGetterPlugin.js +1 -3
  63. package/plugins/pageBuilder/apwContentPagePlugins.js +1 -3
  64. package/plugins/pageBuilder/extendPbPageSettingsSchema.js +1 -3
  65. package/plugins/pageBuilder/index.js +1 -3
  66. package/plugins/pageBuilder/linkContentReviewToPage.js +1 -3
  67. package/plugins/pageBuilder/linkWorkflowToPage.js +1 -3
  68. package/plugins/pageBuilder/notifications/changeRequestNotification.js +1 -3
  69. package/plugins/pageBuilder/notifications/commentNotification.js +1 -3
  70. package/plugins/pageBuilder/notifications/contentReviewNotification.js +1 -3
  71. package/plugins/pageBuilder/notifications/contentUrl.js +1 -3
  72. package/plugins/pageBuilder/triggerContentReview.js +1 -3
  73. package/plugins/pageBuilder/updateContentReviewStatus.js +1 -3
  74. package/plugins/pageBuilder/utils.js +1 -3
  75. package/plugins/utils.js +1 -3
  76. package/scheduler/createScheduleActionMethods.js +1 -3
  77. package/scheduler/handlers/executeAction/index.d.ts +1 -1
  78. package/scheduler/handlers/executeAction/index.js +1 -3
  79. package/scheduler/handlers/executeAction/plugins/ApplicationGraphQL.js +1 -3
  80. package/scheduler/handlers/executeAction/plugins/HeadlessCMSGraphQL.js +1 -3
  81. package/scheduler/handlers/executeAction/plugins/PageBuilderGraphQL.js +1 -3
  82. package/scheduler/handlers/executeAction/security.js +1 -3
  83. package/scheduler/handlers/scheduleAction/index.d.ts +1 -1
  84. package/scheduler/handlers/scheduleAction/index.js +1 -3
  85. package/scheduler/handlers/scheduleAction/scheduleAction.utils.js +1 -3
  86. package/scheduler/handlers/utils.d.ts +1 -1
  87. package/scheduler/handlers/utils.js +1 -3
  88. package/scheduler/index.js +1 -3
  89. package/scheduler/types.js +1 -3
  90. package/storageOperations/changeRequestStorageOperations.js +1 -3
  91. package/storageOperations/commentStorageOperations.js +1 -3
  92. package/storageOperations/contentReviewStorageOperations.js +1 -3
  93. package/storageOperations/index.js +1 -3
  94. package/storageOperations/models/changeRequest.model.js +1 -3
  95. package/storageOperations/models/comment.model.js +1 -3
  96. package/storageOperations/models/contentModelPluginFactory.js +1 -3
  97. package/storageOperations/models/contentReview.model.js +1 -3
  98. package/storageOperations/models/index.js +1 -3
  99. package/storageOperations/models/reviewer.model.js +1 -3
  100. package/storageOperations/models/utils.js +1 -3
  101. package/storageOperations/models/workflow.model.js +1 -3
  102. package/storageOperations/reviewerStorageOperations.js +1 -3
  103. package/storageOperations/types.js +1 -3
  104. package/storageOperations/workflowStorageOperations.js +1 -3
  105. package/types.js +1 -3
  106. package/utils/contentApwSettingsPlugin.js +1 -3
  107. package/utils/errors.js +1 -3
  108. package/utils/fieldResolver.js +1 -3
  109. package/utils/resolve.d.ts +1 -1
  110. package/utils/resolve.js +1 -3
@@ -33,6 +33,4 @@ class PageApwSettingsGetterPlugin extends _ContentApwSettingsPlugin.ContentApwSe
33
33
  return (_page$settings$apw2 = page.settings.apw) === null || _page$settings$apw2 === void 0 ? void 0 : _page$settings$apw2.contentReviewId;
34
34
  }
35
35
  }
36
- exports.PageApwSettingsGetterPlugin = PageApwSettingsGetterPlugin;
37
-
38
- //# sourceMappingURL=PageApwSettingsGetterPlugin.js.map
36
+ exports.PageApwSettingsGetterPlugin = PageApwSettingsGetterPlugin;
@@ -23,6 +23,4 @@ const apwContentPagePlugins = () => new _api.ContextPlugin(async context => {
23
23
  return true;
24
24
  });
25
25
  });
26
- exports.apwContentPagePlugins = apwContentPagePlugins;
27
-
28
- //# sourceMappingURL=apwContentPagePlugins.js.map
26
+ exports.apwContentPagePlugins = apwContentPagePlugins;
@@ -17,6 +17,4 @@ const extendPbPageSettingsSchema = () => new _plugins.GraphQLSchemaPlugin({
17
17
  }
18
18
  `
19
19
  });
20
- exports.extendPbPageSettingsSchema = extendPbPageSettingsSchema;
21
-
22
- //# sourceMappingURL=extendPbPageSettingsSchema.js.map
20
+ exports.extendPbPageSettingsSchema = extendPbPageSettingsSchema;
@@ -39,6 +39,4 @@ const apwPageBuilderHooks = params => {
39
39
  pageBuilder
40
40
  });
41
41
  };
42
- exports.apwPageBuilderHooks = apwPageBuilderHooks;
43
-
44
- //# sourceMappingURL=index.js.map
42
+ exports.apwPageBuilderHooks = apwPageBuilderHooks;
@@ -86,6 +86,4 @@ const linkContentReviewToPage = params => {
86
86
  }
87
87
  });
88
88
  };
89
- exports.linkContentReviewToPage = linkContentReviewToPage;
90
-
91
- //# sourceMappingURL=linkContentReviewToPage.js.map
89
+ exports.linkContentReviewToPage = linkContentReviewToPage;
@@ -161,6 +161,4 @@ const linkWorkflowToPage = params => {
161
161
  }
162
162
  });
163
163
  };
164
- exports.linkWorkflowToPage = linkWorkflowToPage;
165
-
166
- //# sourceMappingURL=linkWorkflowToPage.js.map
164
+ exports.linkWorkflowToPage = linkWorkflowToPage;
@@ -28,6 +28,4 @@ const createChangeRequestNotification = () => {
28
28
  plugin.name = `${plugin.type}.${_types.ApwContentTypes.PAGE}.default`;
29
29
  return plugin;
30
30
  };
31
- exports.createChangeRequestNotification = createChangeRequestNotification;
32
-
33
- //# sourceMappingURL=changeRequestNotification.js.map
31
+ exports.createChangeRequestNotification = createChangeRequestNotification;
@@ -28,6 +28,4 @@ const createCommentNotification = () => {
28
28
  plugin.name = `${plugin.type}.${_types.ApwContentTypes.PAGE}.default`;
29
29
  return plugin;
30
30
  };
31
- exports.createCommentNotification = createCommentNotification;
32
-
33
- //# sourceMappingURL=commentNotification.js.map
31
+ exports.createCommentNotification = createCommentNotification;
@@ -28,6 +28,4 @@ const createContentReviewNotification = () => {
28
28
  plugin.name = `${plugin.type}.${_types.ApwContentTypes.PAGE}.default`;
29
29
  return plugin;
30
30
  };
31
- exports.createContentReviewNotification = createContentReviewNotification;
32
-
33
- //# sourceMappingURL=contentReviewNotification.js.map
31
+ exports.createContentReviewNotification = createContentReviewNotification;
@@ -44,6 +44,4 @@ const createContentUrlPlugin = () => {
44
44
  });
45
45
  });
46
46
  };
47
- exports.createContentUrlPlugin = createContentUrlPlugin;
48
-
49
- //# sourceMappingURL=contentUrl.js.map
47
+ exports.createContentUrlPlugin = createContentUrlPlugin;
@@ -36,6 +36,4 @@ const triggerContentReview = params => {
36
36
  }
37
37
  });
38
38
  };
39
- exports.triggerContentReview = triggerContentReview;
40
-
41
- //# sourceMappingURL=triggerContentReview.js.map
39
+ exports.triggerContentReview = triggerContentReview;
@@ -64,6 +64,4 @@ const updateContentReviewStatus = params => {
64
64
  }
65
65
  });
66
66
  };
67
- exports.updateContentReviewStatus = updateContentReviewStatus;
68
-
69
- //# sourceMappingURL=updateContentReviewStatus.js.map
67
+ exports.updateContentReviewStatus = updateContentReviewStatus;
@@ -147,6 +147,4 @@ const updatePageSettings = async ({
147
147
  }
148
148
  }
149
149
  };
150
- exports.updatePageSettings = updatePageSettings;
151
-
152
- //# sourceMappingURL=utils.js.map
150
+ exports.updatePageSettings = updatePageSettings;
package/plugins/utils.js CHANGED
@@ -141,6 +141,4 @@ const workflowByCreatedOnDesc = (a, b) => {
141
141
  */
142
142
  return new Date(createdOnB).getTime() - new Date(createdOnA).getTime();
143
143
  };
144
- exports.workflowByCreatedOnDesc = workflowByCreatedOnDesc;
145
-
146
- //# sourceMappingURL=utils.js.map
144
+ exports.workflowByCreatedOnDesc = workflowByCreatedOnDesc;
@@ -122,6 +122,4 @@ function createScheduleActionMethods({
122
122
  return await storageOperations.deleteCurrentTask((0, _objectSpread2.default)({}, getTenantAndLocale()));
123
123
  }
124
124
  };
125
- }
126
-
127
- //# sourceMappingURL=createScheduleActionMethods.js.map
125
+ }
@@ -9,5 +9,5 @@ export interface HandlerArgs {
9
9
  interface Configuration {
10
10
  storageOperations: ApwScheduleActionStorageOperations;
11
11
  }
12
- export declare const executeActionHandlerPlugins: (config: Configuration) => ((import("@webiny/handler").HandlerResultPlugin<import("@webiny/handler/types").Context> | import("@webiny/db-dynamodb/plugins/definitions/ValueFilterPlugin").ValueFilterPlugin[][] | ContextPlugin<import("@webiny/handler-db/types").DbContext>[])[] | import("@webiny/handler-aws").RawEventHandler<HandlerArgs, import("@webiny/handler/types").Context, any> | ContextPlugin<import("@webiny/api/types").Context>)[];
12
+ export declare const executeActionHandlerPlugins: (config: Configuration) => ((import("@webiny/db-dynamodb/plugins/definitions/ValueFilterPlugin").ValueFilterPlugin[][] | import("@webiny/handler").HandlerResultPlugin<import("@webiny/handler/types").Context> | ContextPlugin<import("@webiny/handler-db/types").DbContext>[])[] | import("@webiny/handler-aws").RawEventHandler<HandlerArgs, import("@webiny/handler/types").Context, any> | ContextPlugin<import("@webiny/api/types").Context>)[];
13
13
  export {};
@@ -175,6 +175,4 @@ const createExecuteActionLambda = params => {
175
175
  const executeActionHandlerPlugins = config => [new _api.ContextPlugin(async context => {
176
176
  context.plugins.register([new _PageBuilderGraphQL.PageBuilderGraphQL(), new _HeadlessCMSGraphQL.HeadlessCMSGraphQL()]);
177
177
  }), (0, _utils.basePlugins)(), createExecuteActionLambda(config)];
178
- exports.executeActionHandlerPlugins = executeActionHandlerPlugins;
179
-
180
- //# sourceMappingURL=index.js.map
178
+ exports.executeActionHandlerPlugins = executeActionHandlerPlugins;
@@ -23,6 +23,4 @@ var _types = require("../../../types");
23
23
  var _utils = require("../../utils");
24
24
  class ApplicationGraphQL extends _Plugin.Plugin {}
25
25
  exports.ApplicationGraphQL = ApplicationGraphQL;
26
- (0, _defineProperty2.default)(ApplicationGraphQL, "type", "apw.scheduler.applicationGraphQL");
27
-
28
- //# sourceMappingURL=ApplicationGraphQL.js.map
26
+ (0, _defineProperty2.default)(ApplicationGraphQL, "type", "apw.scheduler.applicationGraphQL");
@@ -107,6 +107,4 @@ class HeadlessCMSGraphQL extends _ApplicationGraphQL.ApplicationGraphQL {
107
107
  };
108
108
  }
109
109
  }
110
- exports.HeadlessCMSGraphQL = HeadlessCMSGraphQL;
111
-
112
- //# sourceMappingURL=HeadlessCMSGraphQL.js.map
110
+ exports.HeadlessCMSGraphQL = HeadlessCMSGraphQL;
@@ -81,6 +81,4 @@ class PageBuilderGraphQL extends _ApplicationGraphQL.ApplicationGraphQL {
81
81
  };
82
82
  }
83
83
  }
84
- exports.PageBuilderGraphQL = PageBuilderGraphQL;
85
-
86
- //# sourceMappingURL=PageBuilderGraphQL.js.map
84
+ exports.PageBuilderGraphQL = PageBuilderGraphQL;
@@ -54,6 +54,4 @@ const createCustomAuth = ({
54
54
  });
55
55
  });
56
56
  };
57
- exports.createCustomAuth = createCustomAuth;
58
-
59
- //# sourceMappingURL=security.js.map
57
+ exports.createCustomAuth = createCustomAuth;
@@ -19,4 +19,4 @@ export interface Configuration {
19
19
  executeAction: string;
20
20
  };
21
21
  }
22
- export declare const scheduleActionHandlerPlugins: (config: Configuration) => ((import("@webiny/handler").HandlerResultPlugin<import("@webiny/handler/types").Context> | import("@webiny/db-dynamodb/plugins/definitions/ValueFilterPlugin").ValueFilterPlugin[][] | import("@webiny/api").ContextPlugin<import("@webiny/handler-db/types").DbContext>[])[] | import("@webiny/handler-aws").RawEventHandler<HandlerArgs, import("@webiny/handler/types").Context, any>)[];
22
+ export declare const scheduleActionHandlerPlugins: (config: Configuration) => ((import("@webiny/db-dynamodb/plugins/definitions/ValueFilterPlugin").ValueFilterPlugin[][] | import("@webiny/handler").HandlerResultPlugin<import("@webiny/handler/types").Context> | import("@webiny/api").ContextPlugin<import("@webiny/handler-db/types").DbContext>[])[] | import("@webiny/handler-aws").RawEventHandler<HandlerArgs, import("@webiny/handler/types").Context, any>)[];
@@ -145,6 +145,4 @@ const createScheduleActionLambda = params => {
145
145
  };
146
146
 
147
147
  const scheduleActionHandlerPlugins = config => [(0, _utils.basePlugins)(), createScheduleActionLambda(config)];
148
- exports.scheduleActionHandlerPlugins = scheduleActionHandlerPlugins;
149
-
150
- //# sourceMappingURL=index.js.map
148
+ exports.scheduleActionHandlerPlugins = scheduleActionHandlerPlugins;
@@ -150,6 +150,4 @@ const executeTask = async ({
150
150
  console.error(e);
151
151
  }
152
152
  };
153
- exports.executeTask = executeTask;
154
-
155
- //# sourceMappingURL=scheduleAction.utils.js.map
153
+ exports.executeTask = executeTask;
@@ -19,7 +19,7 @@ export declare const encodeToken: ({ id, tenant, locale }: EncodeTokenParams) =>
19
19
  export declare const TOKEN_PREFIX = "apw-";
20
20
  export declare const decodeToken: (token: string) => Partial<EncodeTokenParams>;
21
21
  export declare const documentClient: DocumentClient;
22
- export declare const basePlugins: () => (import("@webiny/handler").HandlerResultPlugin<import("@webiny/handler/types").Context> | import("@webiny/db-dynamodb/plugins/definitions/ValueFilterPlugin").ValueFilterPlugin[][] | import("@webiny/api").ContextPlugin<import("@webiny/handler-db/types").DbContext>[])[];
22
+ export declare const basePlugins: () => (import("@webiny/db-dynamodb/plugins/definitions/ValueFilterPlugin").ValueFilterPlugin[][] | import("@webiny/handler").HandlerResultPlugin<import("@webiny/handler/types").Context> | import("@webiny/api").ContextPlugin<import("@webiny/handler-db/types").DbContext>[])[];
23
23
  /**
24
24
  * Get APW settings record from DDB.
25
25
  */
@@ -127,6 +127,4 @@ const getApwSettings = async () => {
127
127
  eventTargetId: Item ? Item["eventTargetId"] : "eventTargetId"
128
128
  };
129
129
  };
130
- exports.getApwSettings = getApwSettings;
131
-
132
- //# sourceMappingURL=utils.js.map
130
+ exports.getApwSettings = getApwSettings;
@@ -21,6 +21,4 @@ const createScheduler = params => {
21
21
  storageOperations
22
22
  });
23
23
  };
24
- exports.createScheduler = createScheduler;
25
-
26
- //# sourceMappingURL=index.js.map
24
+ exports.createScheduler = createScheduler;
@@ -20,6 +20,4 @@ let InvocationTypes = /*#__PURE__*/function (InvocationTypes) {
20
20
  InvocationTypes["SCHEDULED"] = "scheduled";
21
21
  return InvocationTypes;
22
22
  }({});
23
- exports.InvocationTypes = InvocationTypes;
24
-
25
- //# sourceMappingURL=types.js.map
23
+ exports.InvocationTypes = InvocationTypes;
@@ -100,6 +100,4 @@ const createChangeRequestStorageOperations = params => {
100
100
  }
101
101
  };
102
102
  };
103
- exports.createChangeRequestStorageOperations = createChangeRequestStorageOperations;
104
-
105
- //# sourceMappingURL=changeRequestStorageOperations.js.map
103
+ exports.createChangeRequestStorageOperations = createChangeRequestStorageOperations;
@@ -114,6 +114,4 @@ const createCommentStorageOperations = ({
114
114
  }
115
115
  };
116
116
  };
117
- exports.createCommentStorageOperations = createCommentStorageOperations;
118
-
119
- //# sourceMappingURL=commentStorageOperations.js.map
117
+ exports.createCommentStorageOperations = createCommentStorageOperations;
@@ -73,6 +73,4 @@ const createContentReviewStorageOperations = ({
73
73
  }
74
74
  };
75
75
  };
76
- exports.createContentReviewStorageOperations = createContentReviewStorageOperations;
77
-
78
- //# sourceMappingURL=contentReviewStorageOperations.js.map
76
+ exports.createContentReviewStorageOperations = createContentReviewStorageOperations;
@@ -31,6 +31,4 @@ const createStorageOperations = params => {
31
31
  (0, _models.createApwModels)(context);
32
32
  return (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _reviewerStorageOperations.createReviewerStorageOperations)(params)), (0, _workflowStorageOperations.createWorkflowStorageOperations)(params)), (0, _contentReviewStorageOperations.createContentReviewStorageOperations)(params)), (0, _changeRequestStorageOperations.createChangeRequestStorageOperations)(params)), (0, _commentStorageOperations.createCommentStorageOperations)(params));
33
33
  };
34
- exports.createStorageOperations = createStorageOperations;
35
-
36
- //# sourceMappingURL=index.js.map
34
+ exports.createStorageOperations = createStorageOperations;
@@ -47,6 +47,4 @@ const createChangeRequestModelDefinition = () => {
47
47
  isPrivate: true
48
48
  };
49
49
  };
50
- exports.createChangeRequestModelDefinition = createChangeRequestModelDefinition;
51
-
52
- //# sourceMappingURL=changeRequest.model.js.map
50
+ exports.createChangeRequestModelDefinition = createChangeRequestModelDefinition;
@@ -49,6 +49,4 @@ const createCommentModelDefinition = ({
49
49
  isPrivate: true
50
50
  };
51
51
  };
52
- exports.createCommentModelDefinition = createCommentModelDefinition;
53
-
54
- //# sourceMappingURL=comment.model.js.map
52
+ exports.createCommentModelDefinition = createCommentModelDefinition;
@@ -17,6 +17,4 @@ const contentModelPluginFactory = params => {
17
17
  noValidate: true
18
18
  }));
19
19
  };
20
- exports.contentModelPluginFactory = contentModelPluginFactory;
21
-
22
- //# sourceMappingURL=contentModelPluginFactory.js.map
20
+ exports.contentModelPluginFactory = contentModelPluginFactory;
@@ -229,6 +229,4 @@ const createContentReviewModelDefinition = ({
229
229
  description: "",
230
230
  isPrivate: true
231
231
  });
232
- exports.createContentReviewModelDefinition = createContentReviewModelDefinition;
233
-
234
- //# sourceMappingURL=contentReview.model.js.map
232
+ exports.createContentReviewModelDefinition = createContentReviewModelDefinition;
@@ -86,6 +86,4 @@ const createApwModels = context => {
86
86
  */
87
87
  context.plugins.register([cmsGroupPlugin, cmsModelPlugins]);
88
88
  };
89
- exports.createApwModels = createApwModels;
90
-
91
- //# sourceMappingURL=index.js.map
89
+ exports.createApwModels = createApwModels;
@@ -60,6 +60,4 @@ const createReviewerModelDefinition = () => {
60
60
  isPrivate: true
61
61
  };
62
62
  };
63
- exports.createReviewerModelDefinition = createReviewerModelDefinition;
64
-
65
- //# sourceMappingURL=reviewer.model.js.map
63
+ exports.createReviewerModelDefinition = createReviewerModelDefinition;
@@ -30,6 +30,4 @@ const createModelField = params => {
30
30
  }
31
31
  };
32
32
  };
33
- exports.createModelField = createModelField;
34
-
35
- //# sourceMappingURL=utils.js.map
33
+ exports.createModelField = createModelField;
@@ -182,6 +182,4 @@ const createWorkflowModelDefinition = ({
182
182
  fields: [titleField(), stepsField([stepTitleField(), stepTypeField(), stepIdField(), stepReviewersField(reviewerModelId)]), scopeField([scopeTypeField(), scopeDataField([scopeDataPbCategories(), scopeDataPbPages(), scopeDataCmsModels(), scopeDataCmsEntries()])]), applicationField()],
183
183
  isPrivate: true
184
184
  });
185
- exports.createWorkflowModelDefinition = createWorkflowModelDefinition;
186
-
187
- //# sourceMappingURL=workflow.model.js.map
185
+ exports.createWorkflowModelDefinition = createWorkflowModelDefinition;
@@ -72,6 +72,4 @@ const createReviewerStorageOperations = ({
72
72
  }
73
73
  };
74
74
  };
75
- exports.createReviewerStorageOperations = createReviewerStorageOperations;
76
-
77
- //# sourceMappingURL=reviewerStorageOperations.js.map
75
+ exports.createReviewerStorageOperations = createReviewerStorageOperations;
@@ -2,6 +2,4 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
- });
6
-
7
- //# sourceMappingURL=types.js.map
5
+ });
@@ -89,6 +89,4 @@ const createWorkflowStorageOperations = params => {
89
89
  }
90
90
  };
91
91
  };
92
- exports.createWorkflowStorageOperations = createWorkflowStorageOperations;
93
-
94
- //# sourceMappingURL=workflowStorageOperations.js.map
92
+ exports.createWorkflowStorageOperations = createWorkflowStorageOperations;
package/types.js CHANGED
@@ -148,6 +148,4 @@ var ApwScheduleActionTypes = /*#__PURE__*/function (ApwScheduleActionTypes) {
148
148
  */
149
149
  /**
150
150
  * Headless CMS
151
- */
152
-
153
- //# sourceMappingURL=types.js.map
151
+ */
@@ -17,6 +17,4 @@ const getContentApwSettingsPlugin = params => {
17
17
  }
18
18
  throw new _handlerGraphql.NotFoundError(`Could not find a "ContentApwSettingsPlugin" for "${type}".`);
19
19
  };
20
- exports.getContentApwSettingsPlugin = getContentApwSettingsPlugin;
21
-
22
- //# sourceMappingURL=contentApwSettingsPlugin.js.map
20
+ exports.getContentApwSettingsPlugin = getContentApwSettingsPlugin;
package/utils/errors.js CHANGED
@@ -55,6 +55,4 @@ class NoSignOffProvidedError extends _error.default {
55
55
  });
56
56
  }
57
57
  }
58
- exports.NoSignOffProvidedError = NoSignOffProvidedError;
59
-
60
- //# sourceMappingURL=errors.js.map
58
+ exports.NoSignOffProvidedError = NoSignOffProvidedError;
@@ -41,6 +41,4 @@ const getTransformer = (model, fieldId) => ({
41
41
  model: model,
42
42
  field: model.fields.find(field => field.fieldId === fieldId)
43
43
  });
44
- exports.getTransformer = getTransformer;
45
-
46
- //# sourceMappingURL=fieldResolver.js.map
44
+ exports.getTransformer = getTransformer;
@@ -1,3 +1,3 @@
1
1
  import { Response, ErrorResponse } from "@webiny/handler-graphql";
2
- declare const _default: (fn: () => Promise<any>) => Promise<ErrorResponse | Response<any>>;
2
+ declare const _default: (fn: () => Promise<any>) => Promise<Response<any> | ErrorResponse>;
3
3
  export default _default;
package/utils/resolve.js CHANGED
@@ -12,6 +12,4 @@ var _default = async fn => {
12
12
  return new _handlerGraphql.ErrorResponse(e);
13
13
  }
14
14
  };
15
- exports.default = _default;
16
-
17
- //# sourceMappingURL=resolve.js.map
15
+ exports.default = _default;