@webiny/api-apw 5.37.5 → 5.37.6-beta.0
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.
- package/ApwChangeRequestNotification.js +1 -3
- package/ApwCommentNotification.js +1 -3
- package/ApwContentReviewNotification.js +1 -3
- package/ApwContentUrlPlugin.js +1 -3
- package/ContentApwSettingsPlugin.js +1 -3
- package/crud/createChangeRequestMethods.js +1 -3
- package/crud/createCommentMethods.js +1 -3
- package/crud/createContentReviewMethods.js +1 -3
- package/crud/createReviewerMethods.js +1 -3
- package/crud/createWorkflowMethods.js +1 -3
- package/crud/index.js +1 -3
- package/crud/utils.js +1 -3
- package/index.d.ts +1 -1
- package/index.js +1 -3
- package/package.json +26 -26
- package/plugins/cms/CmsEntryApwSettingsGetterPlugin.js +1 -3
- package/plugins/cms/apwEntryPlugins.js +1 -3
- package/plugins/cms/index.js +1 -3
- package/plugins/cms/linkContentReviewToEntry.js +1 -3
- package/plugins/cms/linkWorkflowToEntry.js +1 -3
- package/plugins/cms/notifications/changeRequestNotification.js +1 -3
- package/plugins/cms/notifications/commentNotification.js +1 -3
- package/plugins/cms/notifications/contentReviewNotification.js +1 -3
- package/plugins/cms/notifications/contentUrl.js +1 -3
- package/plugins/cms/triggerContentReview.js +1 -3
- package/plugins/cms/updateContentReviewStatus.js +1 -3
- package/plugins/cms/utils.js +1 -3
- package/plugins/context.js +1 -3
- package/plugins/graphql/changeRequest.gql.js +1 -3
- package/plugins/graphql/comment.gql.js +1 -3
- package/plugins/graphql/contentReview.gql.js +1 -3
- package/plugins/graphql/reviewer.gql.js +1 -3
- package/plugins/graphql/workflow.gql.js +1 -3
- package/plugins/graphql.js +1 -3
- package/plugins/hooks/createReviewerFromIdentity.js +1 -3
- package/plugins/hooks/deleteChangeRequestsAfterContentReview.js +1 -3
- package/plugins/hooks/deleteCommentsAfterChangeRequest.js +1 -3
- package/plugins/hooks/index.js +1 -3
- package/plugins/hooks/initializeContentReviewSteps.js +1 -3
- package/plugins/hooks/initializeNotifications.js +1 -3
- package/plugins/hooks/listContentReviews.js +1 -3
- package/plugins/hooks/notifications/appUrl.js +1 -3
- package/plugins/hooks/notifications/changeRequestAfterCreate.js +1 -3
- package/plugins/hooks/notifications/changeRequestUrl.js +1 -3
- package/plugins/hooks/notifications/commentAfterCreate.js +1 -3
- package/plugins/hooks/notifications/commentUrl.js +1 -3
- package/plugins/hooks/notifications/contentReviewAfterCreate.js +1 -3
- package/plugins/hooks/notifications/contentReviewUrl.js +1 -3
- package/plugins/hooks/notifications/contentUrl.js +1 -3
- package/plugins/hooks/notifications/lastChangeRequestNotificationPlugin.js +1 -3
- package/plugins/hooks/notifications/lastCommentNotificationPlugin.js +1 -3
- package/plugins/hooks/notifications/lastContentReviewNotificationPlugin.js +1 -3
- package/plugins/hooks/notifications/reviewers.js +1 -3
- package/plugins/hooks/notifications/sendChangeRequestNotification.js +1 -3
- package/plugins/hooks/notifications/sendCommentNotification.js +1 -3
- package/plugins/hooks/notifications/sendContentReviewNotification.js +1 -3
- package/plugins/hooks/updatePendingChangeRequests.js +1 -3
- package/plugins/hooks/updateTotalComments.js +1 -3
- package/plugins/hooks/validateChangeRequest.js +1 -3
- package/plugins/hooks/validateComment.js +1 -3
- package/plugins/hooks/validateContentReview.js +1 -3
- package/plugins/pageBuilder/PageApwSettingsGetterPlugin.js +1 -3
- package/plugins/pageBuilder/apwContentPagePlugins.js +1 -3
- package/plugins/pageBuilder/extendPbPageSettingsSchema.js +1 -3
- package/plugins/pageBuilder/index.js +1 -3
- package/plugins/pageBuilder/linkContentReviewToPage.js +1 -3
- package/plugins/pageBuilder/linkWorkflowToPage.js +1 -3
- package/plugins/pageBuilder/notifications/changeRequestNotification.js +1 -3
- package/plugins/pageBuilder/notifications/commentNotification.js +1 -3
- package/plugins/pageBuilder/notifications/contentReviewNotification.js +1 -3
- package/plugins/pageBuilder/notifications/contentUrl.js +1 -3
- package/plugins/pageBuilder/triggerContentReview.js +1 -3
- package/plugins/pageBuilder/updateContentReviewStatus.js +1 -3
- package/plugins/pageBuilder/utils.js +1 -3
- package/plugins/utils.js +1 -3
- package/scheduler/createScheduleActionMethods.js +1 -3
- package/scheduler/handlers/executeAction/index.d.ts +1 -1
- package/scheduler/handlers/executeAction/index.js +1 -3
- package/scheduler/handlers/executeAction/plugins/ApplicationGraphQL.js +1 -3
- package/scheduler/handlers/executeAction/plugins/HeadlessCMSGraphQL.js +1 -3
- package/scheduler/handlers/executeAction/plugins/PageBuilderGraphQL.js +1 -3
- package/scheduler/handlers/executeAction/security.js +1 -3
- package/scheduler/handlers/scheduleAction/index.d.ts +1 -1
- package/scheduler/handlers/scheduleAction/index.js +1 -3
- package/scheduler/handlers/scheduleAction/scheduleAction.utils.js +1 -3
- package/scheduler/handlers/utils.d.ts +1 -1
- package/scheduler/handlers/utils.js +1 -3
- package/scheduler/index.js +1 -3
- package/scheduler/types.js +1 -3
- package/storageOperations/changeRequestStorageOperations.js +1 -3
- package/storageOperations/commentStorageOperations.js +1 -3
- package/storageOperations/contentReviewStorageOperations.js +1 -3
- package/storageOperations/index.js +1 -3
- package/storageOperations/models/changeRequest.model.js +1 -3
- package/storageOperations/models/comment.model.js +1 -3
- package/storageOperations/models/contentModelPluginFactory.js +1 -3
- package/storageOperations/models/contentReview.model.js +1 -3
- package/storageOperations/models/index.js +1 -3
- package/storageOperations/models/reviewer.model.js +1 -3
- package/storageOperations/models/utils.js +1 -3
- package/storageOperations/models/workflow.model.js +1 -3
- package/storageOperations/reviewerStorageOperations.js +1 -3
- package/storageOperations/types.js +1 -3
- package/storageOperations/workflowStorageOperations.js +1 -3
- package/types.js +1 -3
- package/utils/contentApwSettingsPlugin.js +1 -3
- package/utils/errors.js +1 -3
- package/utils/fieldResolver.js +1 -3
- package/utils/resolve.d.ts +1 -1
- 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;
|
|
@@ -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;
|
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;
|
|
@@ -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/
|
|
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");
|
|
@@ -19,4 +19,4 @@ export interface Configuration {
|
|
|
19
19
|
executeAction: string;
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
export declare const scheduleActionHandlerPlugins: (config: Configuration) => ((import("@webiny/
|
|
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;
|
|
@@ -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/
|
|
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
|
*/
|
package/scheduler/index.js
CHANGED
package/scheduler/types.js
CHANGED
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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
|
@@ -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
package/utils/fieldResolver.js
CHANGED
|
@@ -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;
|
package/utils/resolve.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Response, ErrorResponse } from "@webiny/handler-graphql";
|
|
2
|
-
declare const _default: (fn: () => Promise<any>) => Promise<
|
|
2
|
+
declare const _default: (fn: () => Promise<any>) => Promise<Response<any> | ErrorResponse>;
|
|
3
3
|
export default _default;
|