@webiny/api-headless-cms-tasks-ddb-es 6.0.0-alpha.4 β 6.0.0-rc.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/README.md +10 -14
- package/index.d.ts +1 -1
- package/index.js +6 -44
- package/index.js.map +1 -1
- package/package.json +8 -11
- package/types.d.ts +1 -1
- package/types.js +1 -5
- package/types.js.map +1 -1
package/README.md
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
# @webiny/api-headless-cms-tasks-ddb-es
|
|
2
|
-
|
|
3
|
-
[!
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Or if you prefer yarn:
|
|
13
|
-
```
|
|
14
|
-
yarn add @webiny/api-headless-cms-tasks-ddb-es
|
|
15
|
-
```
|
|
2
|
+
|
|
3
|
+
> [!NOTE]
|
|
4
|
+
> This package is part of the [Webiny](https://www.webiny.com) monorepo.
|
|
5
|
+
> Itβs **included in every Webiny project by default** and is not meant to be used as a standalone package.
|
|
6
|
+
|
|
7
|
+
π **Documentation:** [https://www.webiny.com/docs](https://www.webiny.com/docs)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
_This README file is automatically generated during the publish process._
|
package/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const createHcmsTasks: () => (
|
|
1
|
+
export declare const createHcmsTasks: () => (import("../../api/src").ContextPlugin<import("../../api/src/types").Context> | ((import("../../handler-aws/src").EventBridgeEventHandler<"WebinyEmptyTrashBin", Record<string, any>, any> | import("../../handler/src").HandlerOnRequestPlugin<import("../../handler/src/types").Context>)[] | import("../../handler/src").BeforeHandlerPlugin<import("@webiny/api-headless-cms-bulk-actions/types").HcmsBulkActionsContext> | import("../../api/src").ContextPlugin<import("../../api/src/types").Context>)[] | import("../../plugins/src/types").Plugin[])[];
|
package/index.js
CHANGED
|
@@ -1,48 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports.createHcmsTasks = void 0;
|
|
7
|
-
var _apiHeadlessCmsBulkActions = require("@webiny/api-headless-cms-bulk-actions");
|
|
8
|
-
var _apiHeadlessCmsImportExport = require("@webiny/api-headless-cms-import-export");
|
|
9
|
-
var _apiHeadlessCmsTasks = require("@webiny/api-headless-cms-tasks");
|
|
10
|
-
const createEsBulkActionEntriesTasks = () => {
|
|
11
|
-
return [(0, _apiHeadlessCmsBulkActions.createBulkAction)({
|
|
12
|
-
name: "delete",
|
|
13
|
-
dataLoader: _apiHeadlessCmsBulkActions.createListDeletedEntries,
|
|
14
|
-
dataProcessor: _apiHeadlessCmsBulkActions.createDeleteEntry,
|
|
15
|
-
batchSize: 1000
|
|
16
|
-
}), (0, _apiHeadlessCmsBulkActions.createBulkAction)({
|
|
17
|
-
name: "moveToFolder",
|
|
18
|
-
dataLoader: _apiHeadlessCmsBulkActions.createListLatestEntries,
|
|
19
|
-
dataProcessor: _apiHeadlessCmsBulkActions.createMoveEntryToFolder,
|
|
20
|
-
batchSize: 1000
|
|
21
|
-
}), (0, _apiHeadlessCmsBulkActions.createBulkAction)({
|
|
22
|
-
name: "moveToTrash",
|
|
23
|
-
dataLoader: _apiHeadlessCmsBulkActions.createListLatestEntries,
|
|
24
|
-
dataProcessor: _apiHeadlessCmsBulkActions.createMoveEntryToTrash,
|
|
25
|
-
batchSize: 1000
|
|
26
|
-
}), (0, _apiHeadlessCmsBulkActions.createBulkAction)({
|
|
27
|
-
name: "publish",
|
|
28
|
-
dataLoader: _apiHeadlessCmsBulkActions.createListNotPublishedEntries,
|
|
29
|
-
dataProcessor: _apiHeadlessCmsBulkActions.createPublishEntry,
|
|
1
|
+
import { createEmptyTrashBinsTask, createHcmsBulkActions } from "@webiny/api-headless-cms-bulk-actions";
|
|
2
|
+
import { createHeadlessCmsImportExport } from "@webiny/api-headless-cms-import-export";
|
|
3
|
+
import { createDeleteModelTask } from "@webiny/api-headless-cms-tasks";
|
|
4
|
+
export const createHcmsTasks = () => {
|
|
5
|
+
return [createHcmsBulkActions({
|
|
30
6
|
batchSize: 1000
|
|
31
|
-
}), (
|
|
32
|
-
name: "unpublish",
|
|
33
|
-
dataLoader: _apiHeadlessCmsBulkActions.createListPublishedEntries,
|
|
34
|
-
dataProcessor: _apiHeadlessCmsBulkActions.createUnpublishEntry,
|
|
35
|
-
batchSize: 1000
|
|
36
|
-
}), (0, _apiHeadlessCmsBulkActions.createBulkAction)({
|
|
37
|
-
name: "restore",
|
|
38
|
-
dataLoader: _apiHeadlessCmsBulkActions.createListDeletedEntries,
|
|
39
|
-
dataProcessor: _apiHeadlessCmsBulkActions.createRestoreEntryFromTrash,
|
|
40
|
-
batchSize: 1000
|
|
41
|
-
})];
|
|
42
|
-
};
|
|
43
|
-
const createHcmsTasks = () => {
|
|
44
|
-
return [(0, _apiHeadlessCmsBulkActions.createHcmsBulkActions)(), createEsBulkActionEntriesTasks(), (0, _apiHeadlessCmsBulkActions.createEmptyTrashBinsTask)(), (0, _apiHeadlessCmsImportExport.createHeadlessCmsImportExport)(), (0, _apiHeadlessCmsTasks.createDeleteModelTask)()];
|
|
7
|
+
}), createEmptyTrashBinsTask(), createHeadlessCmsImportExport(), createDeleteModelTask()];
|
|
45
8
|
};
|
|
46
|
-
exports.createHcmsTasks = createHcmsTasks;
|
|
47
9
|
|
|
48
10
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["createEmptyTrashBinsTask","createHcmsBulkActions","createHeadlessCmsImportExport","createDeleteModelTask","createHcmsTasks","batchSize"],"sources":["index.ts"],"sourcesContent":["import {\n createEmptyTrashBinsTask,\n createHcmsBulkActions\n} from \"@webiny/api-headless-cms-bulk-actions\";\nimport { createHeadlessCmsImportExport } from \"@webiny/api-headless-cms-import-export\";\nimport { createDeleteModelTask } from \"@webiny/api-headless-cms-tasks\";\n\nexport const createHcmsTasks = () => {\n return [\n createHcmsBulkActions({ batchSize: 1000 }),\n createEmptyTrashBinsTask(),\n createHeadlessCmsImportExport(),\n createDeleteModelTask()\n ];\n};\n"],"mappings":"AAAA,SACIA,wBAAwB,EACxBC,qBAAqB,QAClB,uCAAuC;AAC9C,SAASC,6BAA6B,QAAQ,wCAAwC;AACtF,SAASC,qBAAqB,QAAQ,gCAAgC;AAEtE,OAAO,MAAMC,eAAe,GAAGA,CAAA,KAAM;EACjC,OAAO,CACHH,qBAAqB,CAAC;IAAEI,SAAS,EAAE;EAAK,CAAC,CAAC,EAC1CL,wBAAwB,CAAC,CAAC,EAC1BE,6BAA6B,CAAC,CAAC,EAC/BC,qBAAqB,CAAC,CAAC,CAC1B;AACL,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-headless-cms-tasks-ddb-es",
|
|
3
|
-
"version": "6.0.0-
|
|
3
|
+
"version": "6.0.0-rc.0",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"main": "index.js",
|
|
5
6
|
"description": "Background tasks for Webiny Headless CMS - DDB+ES",
|
|
6
7
|
"keywords": [
|
|
@@ -13,21 +14,17 @@
|
|
|
13
14
|
},
|
|
14
15
|
"license": "MIT",
|
|
15
16
|
"dependencies": {
|
|
16
|
-
"@webiny/api-headless-cms-bulk-actions": "6.0.0-
|
|
17
|
-
"@webiny/api-headless-cms-import-export": "6.0.0-
|
|
18
|
-
"@webiny/api-headless-cms-tasks": "6.0.0-
|
|
17
|
+
"@webiny/api-headless-cms-bulk-actions": "6.0.0-rc.0",
|
|
18
|
+
"@webiny/api-headless-cms-import-export": "6.0.0-rc.0",
|
|
19
|
+
"@webiny/api-headless-cms-tasks": "6.0.0-rc.0"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|
|
21
|
-
"@webiny/
|
|
22
|
-
"typescript": "5.
|
|
23
|
-
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"build": "node ../cli/bin.js run build",
|
|
26
|
-
"watch": "node ../cli/bin.js run watch"
|
|
22
|
+
"@webiny/build-tools": "6.0.0-rc.0",
|
|
23
|
+
"typescript": "5.9.3"
|
|
27
24
|
},
|
|
28
25
|
"publishConfig": {
|
|
29
26
|
"access": "public",
|
|
30
27
|
"directory": "dist"
|
|
31
28
|
},
|
|
32
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "0f2aa699f4642e550ab62c96fcd050e8d02345c9"
|
|
33
30
|
}
|
package/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { HcmsBulkActionsContext } from "@webiny/api-headless-cms-bulk-actions/types";
|
|
1
|
+
import type { HcmsBulkActionsContext } from "@webiny/api-headless-cms-bulk-actions/types.js";
|
|
2
2
|
export type HcmsTasksContext = HcmsBulkActionsContext;
|
package/types.js
CHANGED
package/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type { HcmsBulkActionsContext } from \"@webiny/api-headless-cms-bulk-actions/types\";\n\nexport type HcmsTasksContext = HcmsBulkActionsContext;\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type { HcmsBulkActionsContext } from \"@webiny/api-headless-cms-bulk-actions/types.js\";\n\nexport type HcmsTasksContext = HcmsBulkActionsContext;\n"],"mappings":"","ignoreList":[]}
|