@webiny/api-headless-cms-scheduler 6.4.5 → 6.6.0-alpha.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/CmsSchedulerFeature.d.ts +4 -0
- package/{context.js → CmsSchedulerFeature.js} +14 -11
- package/CmsSchedulerFeature.js.map +1 -0
- package/index.d.ts +1 -2
- package/index.js +1 -7
- package/package.json +11 -16
- package/context.d.ts +0 -2
- package/context.js.map +0 -1
- package/index.js.map +0 -1
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createFeature } from "@webiny/feature/api";
|
|
2
2
|
import { CancelScheduledActionOnEntryChangeFeature } from "./features/CancelScheduledActionOnEntryChange/feature.js";
|
|
3
3
|
import { NamespaceHandler } from "./features/NamespaceHandler/NamespaceHandler.js";
|
|
4
4
|
import { PublishEntryActionHandler } from "./features/PublishActionHandler/PublishEntryActionHandler.js";
|
|
5
5
|
import { UnpublishEntryActionHandler } from "./features/UnpublishActionHandler/UnpublishEntryActionHandler.js";
|
|
6
6
|
import { SchedulePublishEntryUseCase } from "./features/SchedulePublishEntryUseCase/SchedulePublishEntryUseCase.js";
|
|
7
7
|
import { ScheduleUnpublishEntryUseCase } from "./features/ScheduleUnpublishEntryUseCase/ScheduleUnpublishEntryUseCase.js";
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
const CmsSchedulerFeature = createFeature({
|
|
9
|
+
name: "CmsScheduler",
|
|
10
|
+
register (container) {
|
|
11
|
+
container.register(NamespaceHandler);
|
|
12
|
+
container.register(PublishEntryActionHandler);
|
|
13
|
+
container.register(UnpublishEntryActionHandler);
|
|
14
|
+
container.register(SchedulePublishEntryUseCase);
|
|
15
|
+
container.register(ScheduleUnpublishEntryUseCase);
|
|
16
|
+
CancelScheduledActionOnEntryChangeFeature.register(container);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export { CmsSchedulerFeature };
|
|
17
20
|
|
|
18
|
-
//# sourceMappingURL=
|
|
21
|
+
//# sourceMappingURL=CmsSchedulerFeature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CmsSchedulerFeature.js","sources":["../src/CmsSchedulerFeature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/api\";\nimport { CancelScheduledActionOnEntryChangeFeature } from \"~/features/CancelScheduledActionOnEntryChange/feature.js\";\nimport { NamespaceHandler } from \"~/features/NamespaceHandler/NamespaceHandler.js\";\nimport { PublishEntryActionHandler } from \"~/features/PublishActionHandler/PublishEntryActionHandler.js\";\nimport { UnpublishEntryActionHandler } from \"~/features/UnpublishActionHandler/UnpublishEntryActionHandler.js\";\nimport { SchedulePublishEntryUseCase } from \"~/features/SchedulePublishEntryUseCase/SchedulePublishEntryUseCase.js\";\nimport { ScheduleUnpublishEntryUseCase } from \"~/features/ScheduleUnpublishEntryUseCase/ScheduleUnpublishEntryUseCase.js\";\n\nexport const CmsSchedulerFeature = createFeature({\n name: \"CmsScheduler\",\n register(container) {\n // Pure DI registration (was a request-time ContextPlugin — none of it needs ctx/post-auth).\n container.register(NamespaceHandler);\n container.register(PublishEntryActionHandler);\n container.register(UnpublishEntryActionHandler);\n container.register(SchedulePublishEntryUseCase);\n container.register(ScheduleUnpublishEntryUseCase);\n\n CancelScheduledActionOnEntryChangeFeature.register(container);\n }\n});\n"],"names":["CmsSchedulerFeature","createFeature","container","NamespaceHandler","PublishEntryActionHandler","UnpublishEntryActionHandler","SchedulePublishEntryUseCase","ScheduleUnpublishEntryUseCase","CancelScheduledActionOnEntryChangeFeature"],"mappings":";;;;;;;AAQO,MAAMA,sBAAsBC,cAAc;IAC7C,MAAM;IACN,UAASC,SAAS;QAEdA,UAAU,QAAQ,CAACC;QACnBD,UAAU,QAAQ,CAACE;QACnBF,UAAU,QAAQ,CAACG;QACnBH,UAAU,QAAQ,CAACI;QACnBJ,UAAU,QAAQ,CAACK;QAEnBC,0CAA0C,QAAQ,CAACN;IACvD;AACJ"}
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const createHeadlessCmsScheduler: () => ContextPlugin[];
|
|
1
|
+
export { CmsSchedulerFeature } from "./CmsSchedulerFeature.js";
|
package/index.js
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const createHeadlessCmsScheduler = ()=>[
|
|
3
|
-
createHeadlessCmsScheduleContext()
|
|
4
|
-
];
|
|
5
|
-
export { createHeadlessCmsScheduler };
|
|
6
|
-
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { CmsSchedulerFeature } from "./CmsSchedulerFeature.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-headless-cms-scheduler",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.0-alpha.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -17,23 +17,18 @@
|
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@webiny/api": "6.
|
|
21
|
-
"@webiny/api-headless-cms": "6.
|
|
22
|
-
"@webiny/api-scheduler": "6.
|
|
23
|
-
"@webiny/feature": "6.
|
|
24
|
-
"@webiny/handler-graphql": "6.4.5"
|
|
20
|
+
"@webiny/api": "6.6.0-alpha.0",
|
|
21
|
+
"@webiny/api-headless-cms": "6.6.0-alpha.0",
|
|
22
|
+
"@webiny/api-scheduler": "6.6.0-alpha.0",
|
|
23
|
+
"@webiny/feature": "6.6.0-alpha.0"
|
|
25
24
|
},
|
|
26
25
|
"devDependencies": {
|
|
27
|
-
"@webiny/api-core": "6.
|
|
28
|
-
"@webiny/
|
|
29
|
-
"@webiny/
|
|
30
|
-
"@webiny/
|
|
31
|
-
"@webiny/
|
|
32
|
-
"
|
|
33
|
-
"@webiny/project-utils": "6.4.5",
|
|
34
|
-
"@webiny/wcp": "6.4.5",
|
|
35
|
-
"aws-sdk-client-mock": "4.1.0",
|
|
36
|
-
"typescript": "6.0.3",
|
|
26
|
+
"@webiny/api-core": "6.6.0-alpha.0",
|
|
27
|
+
"@webiny/api-headless-cms-testing": "6.6.0-alpha.0",
|
|
28
|
+
"@webiny/api-opensearch": "6.6.0-alpha.0",
|
|
29
|
+
"@webiny/build-tools": "6.6.0-alpha.0",
|
|
30
|
+
"@webiny/project-utils": "6.6.0-alpha.0",
|
|
31
|
+
"typescript": "7.0.2",
|
|
37
32
|
"vitest": "4.1.10"
|
|
38
33
|
},
|
|
39
34
|
"publishConfig": {
|
package/context.d.ts
DELETED
package/context.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sources":["../src/context.ts"],"sourcesContent":["import { ContextPlugin } from \"@webiny/api\";\nimport { CancelScheduledActionOnEntryChangeFeature } from \"~/features/CancelScheduledActionOnEntryChange/feature.js\";\nimport { NamespaceHandler } from \"~/features/NamespaceHandler/NamespaceHandler.js\";\nimport { PublishEntryActionHandler } from \"~/features/PublishActionHandler/PublishEntryActionHandler.js\";\nimport { UnpublishEntryActionHandler } from \"~/features/UnpublishActionHandler/UnpublishEntryActionHandler.js\";\nimport { SchedulePublishEntryUseCase } from \"~/features/SchedulePublishEntryUseCase/SchedulePublishEntryUseCase.js\";\nimport { ScheduleUnpublishEntryUseCase } from \"~/features/ScheduleUnpublishEntryUseCase/ScheduleUnpublishEntryUseCase.js\";\n\nexport const createHeadlessCmsScheduleContext = () => {\n return new ContextPlugin(async context => {\n context.container.register(NamespaceHandler);\n context.container.register(PublishEntryActionHandler);\n context.container.register(UnpublishEntryActionHandler);\n context.container.register(SchedulePublishEntryUseCase);\n context.container.register(ScheduleUnpublishEntryUseCase);\n\n CancelScheduledActionOnEntryChangeFeature.register(context.container);\n });\n};\n"],"names":["createHeadlessCmsScheduleContext","ContextPlugin","context","NamespaceHandler","PublishEntryActionHandler","UnpublishEntryActionHandler","SchedulePublishEntryUseCase","ScheduleUnpublishEntryUseCase","CancelScheduledActionOnEntryChangeFeature"],"mappings":";;;;;;;AAQO,MAAMA,mCAAmC,IACrC,IAAIC,cAAc,OAAMC;QAC3BA,QAAQ,SAAS,CAAC,QAAQ,CAACC;QAC3BD,QAAQ,SAAS,CAAC,QAAQ,CAACE;QAC3BF,QAAQ,SAAS,CAAC,QAAQ,CAACG;QAC3BH,QAAQ,SAAS,CAAC,QAAQ,CAACI;QAC3BJ,QAAQ,SAAS,CAAC,QAAQ,CAACK;QAE3BC,0CAA0C,QAAQ,CAACN,QAAQ,SAAS;IACxE"}
|
package/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { createHeadlessCmsScheduleContext } from \"~/context.js\";\nimport { ContextPlugin } from \"@webiny/api\";\n\nexport const createHeadlessCmsScheduler = (): ContextPlugin[] => {\n return [createHeadlessCmsScheduleContext()];\n};\n"],"names":["createHeadlessCmsScheduler","createHeadlessCmsScheduleContext"],"mappings":";AAGO,MAAMA,6BAA6B,IAC/B;QAACC;KAAmC"}
|