@webiny/api-headless-cms-tasks 0.0.0-unstable.61c048f412 → 0.0.0-unstable.6f45466a1d

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.
@@ -9,7 +9,7 @@ declare class DeleteModelTaskDefinition implements TaskDefinition.Interface<IDel
9
9
  title: string;
10
10
  maxIterations: number;
11
11
  isPrivate: boolean;
12
- databaseLogs: boolean;
12
+ disableDatabaseLogs: boolean;
13
13
  description: string;
14
14
  constructor(context: CmsContext.Interface);
15
15
  run(params: IRunParams): Promise<TaskDefinition.Result<IDeleteModelTaskInput, IDeleteModelTaskOutput>>;
@@ -6,7 +6,7 @@ class DeleteModelTaskDefinition {
6
6
  title = "Delete model and all of the entries";
7
7
  maxIterations = 50;
8
8
  isPrivate = true;
9
- databaseLogs = false;
9
+ disableDatabaseLogs = true;
10
10
  description = "Delete a content model and all associated entries.";
11
11
  constructor(context) {
12
12
  this.context = context;
@@ -1 +1 @@
1
- {"version":3,"names":["TaskDefinition","CmsContext","DELETE_MODEL_TASK","DeleteModelTaskDefinition","id","title","maxIterations","isPrivate","databaseLogs","description","constructor","context","run","params","DeleteModel","runner","ex","controller","response","error","createInputValidation","validator","modelId","string","lastDeletedId","optional","DeleteModelTask","createImplementation","implementation","dependencies"],"sources":["DeleteModelTask.ts"],"sourcesContent":["import type { IDeleteModelTaskInput } from \"./types.js\";\nimport type { IDeleteModelTaskOutput } from \"./types.js\";\nimport { TaskDefinition } from \"@webiny/api-core/features/task/TaskDefinition/index.js\";\nimport { CmsContext } from \"@webiny/api-headless-cms/features/shared/abstractions.js\";\nimport { DELETE_MODEL_TASK } from \"~/constants.js\";\n\ntype IRunParams = TaskDefinition.RunParams<IDeleteModelTaskInput, IDeleteModelTaskOutput>;\n\nclass DeleteModelTaskDefinition\n implements TaskDefinition.Interface<IDeleteModelTaskInput, IDeleteModelTaskOutput>\n{\n id = DELETE_MODEL_TASK;\n title = \"Delete model and all of the entries\";\n maxIterations = 50;\n isPrivate = true;\n databaseLogs = false;\n description = \"Delete a content model and all associated entries.\";\n\n constructor(private context: CmsContext.Interface) {}\n\n async run(params: IRunParams) {\n const { DeleteModel } = await import(\n /* webpackChunkName: \"createDeleteModel\" */ \"./DeleteModel.js\"\n );\n\n try {\n const runner = new DeleteModel(this.context);\n return await runner.run(params);\n } catch (ex) {\n return params.controller.response.error(ex);\n }\n }\n\n createInputValidation({ validator }: TaskDefinition.CreateInputValidationParams) {\n return {\n modelId: validator.string(),\n lastDeletedId: validator.string().optional()\n };\n }\n}\n\nexport const DeleteModelTask = TaskDefinition.createImplementation({\n implementation: DeleteModelTaskDefinition,\n dependencies: [CmsContext]\n});\n"],"mappings":"AAEA,SAASA,cAAc,QAAQ,wDAAwD;AACvF,SAASC,UAAU,QAAQ,0DAA0D;AACrF,SAASC,iBAAiB;AAI1B,MAAMC,yBAAyB,CAE/B;EACIC,EAAE,GAAGF,iBAAiB;EACtBG,KAAK,GAAG,qCAAqC;EAC7CC,aAAa,GAAG,EAAE;EAClBC,SAAS,GAAG,IAAI;EAChBC,YAAY,GAAG,KAAK;EACpBC,WAAW,GAAG,oDAAoD;EAElEC,WAAWA,CAASC,OAA6B,EAAE;IAAA,KAA/BA,OAA6B,GAA7BA,OAA6B;EAAG;EAEpD,MAAMC,GAAGA,CAACC,MAAkB,EAAE;IAC1B,MAAM;MAAEC;IAAY,CAAC,GAAG,MAAM,MAAM,CAChC,6DACJ,CAAC;IAED,IAAI;MACA,MAAMC,MAAM,GAAG,IAAID,WAAW,CAAC,IAAI,CAACH,OAAO,CAAC;MAC5C,OAAO,MAAMI,MAAM,CAACH,GAAG,CAACC,MAAM,CAAC;IACnC,CAAC,CAAC,OAAOG,EAAE,EAAE;MACT,OAAOH,MAAM,CAACI,UAAU,CAACC,QAAQ,CAACC,KAAK,CAACH,EAAE,CAAC;IAC/C;EACJ;EAEAI,qBAAqBA,CAAC;IAAEC;EAAsD,CAAC,EAAE;IAC7E,OAAO;MACHC,OAAO,EAAED,SAAS,CAACE,MAAM,CAAC,CAAC;MAC3BC,aAAa,EAAEH,SAAS,CAACE,MAAM,CAAC,CAAC,CAACE,QAAQ,CAAC;IAC/C,CAAC;EACL;AACJ;AAEA,OAAO,MAAMC,eAAe,GAAG1B,cAAc,CAAC2B,oBAAoB,CAAC;EAC/DC,cAAc,EAAEzB,yBAAyB;EACzC0B,YAAY,EAAE,CAAC5B,UAAU;AAC7B,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["TaskDefinition","CmsContext","DELETE_MODEL_TASK","DeleteModelTaskDefinition","id","title","maxIterations","isPrivate","disableDatabaseLogs","description","constructor","context","run","params","DeleteModel","runner","ex","controller","response","error","createInputValidation","validator","modelId","string","lastDeletedId","optional","DeleteModelTask","createImplementation","implementation","dependencies"],"sources":["DeleteModelTask.ts"],"sourcesContent":["import type { IDeleteModelTaskInput } from \"./types.js\";\nimport type { IDeleteModelTaskOutput } from \"./types.js\";\nimport { TaskDefinition } from \"@webiny/api-core/features/task/TaskDefinition/index.js\";\nimport { CmsContext } from \"@webiny/api-headless-cms/features/shared/abstractions.js\";\nimport { DELETE_MODEL_TASK } from \"~/constants.js\";\n\ntype IRunParams = TaskDefinition.RunParams<IDeleteModelTaskInput, IDeleteModelTaskOutput>;\n\nclass DeleteModelTaskDefinition\n implements TaskDefinition.Interface<IDeleteModelTaskInput, IDeleteModelTaskOutput>\n{\n id = DELETE_MODEL_TASK;\n title = \"Delete model and all of the entries\";\n maxIterations = 50;\n isPrivate = true;\n disableDatabaseLogs = true;\n description = \"Delete a content model and all associated entries.\";\n\n constructor(private context: CmsContext.Interface) {}\n\n async run(params: IRunParams) {\n const { DeleteModel } = await import(\n /* webpackChunkName: \"createDeleteModel\" */ \"./DeleteModel.js\"\n );\n\n try {\n const runner = new DeleteModel(this.context);\n return await runner.run(params);\n } catch (ex) {\n return params.controller.response.error(ex);\n }\n }\n\n createInputValidation({ validator }: TaskDefinition.CreateInputValidationParams) {\n return {\n modelId: validator.string(),\n lastDeletedId: validator.string().optional()\n };\n }\n}\n\nexport const DeleteModelTask = TaskDefinition.createImplementation({\n implementation: DeleteModelTaskDefinition,\n dependencies: [CmsContext]\n});\n"],"mappings":"AAEA,SAASA,cAAc,QAAQ,wDAAwD;AACvF,SAASC,UAAU,QAAQ,0DAA0D;AACrF,SAASC,iBAAiB;AAI1B,MAAMC,yBAAyB,CAE/B;EACIC,EAAE,GAAGF,iBAAiB;EACtBG,KAAK,GAAG,qCAAqC;EAC7CC,aAAa,GAAG,EAAE;EAClBC,SAAS,GAAG,IAAI;EAChBC,mBAAmB,GAAG,IAAI;EAC1BC,WAAW,GAAG,oDAAoD;EAElEC,WAAWA,CAASC,OAA6B,EAAE;IAAA,KAA/BA,OAA6B,GAA7BA,OAA6B;EAAG;EAEpD,MAAMC,GAAGA,CAACC,MAAkB,EAAE;IAC1B,MAAM;MAAEC;IAAY,CAAC,GAAG,MAAM,MAAM,CAChC,6DACJ,CAAC;IAED,IAAI;MACA,MAAMC,MAAM,GAAG,IAAID,WAAW,CAAC,IAAI,CAACH,OAAO,CAAC;MAC5C,OAAO,MAAMI,MAAM,CAACH,GAAG,CAACC,MAAM,CAAC;IACnC,CAAC,CAAC,OAAOG,EAAE,EAAE;MACT,OAAOH,MAAM,CAACI,UAAU,CAACC,QAAQ,CAACC,KAAK,CAACH,EAAE,CAAC;IAC/C;EACJ;EAEAI,qBAAqBA,CAAC;IAAEC;EAAsD,CAAC,EAAE;IAC7E,OAAO;MACHC,OAAO,EAAED,SAAS,CAACE,MAAM,CAAC,CAAC;MAC3BC,aAAa,EAAEH,SAAS,CAACE,MAAM,CAAC,CAAC,CAACE,QAAQ,CAAC;IAC/C,CAAC;EACL;AACJ;AAEA,OAAO,MAAMC,eAAe,GAAG1B,cAAc,CAAC2B,oBAAoB,CAAC;EAC/DC,cAAc,EAAEzB,yBAAyB;EACzC0B,YAAY,EAAE,CAAC5B,UAAU;AAC7B,CAAC,CAAC","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/api-headless-cms-tasks",
3
- "version": "0.0.0-unstable.61c048f412",
3
+ "version": "0.0.0-unstable.6f45466a1d",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "description": "Background tasks for Webiny Headless CMS",
@@ -14,27 +14,27 @@
14
14
  },
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
- "@webiny/api": "0.0.0-unstable.61c048f412",
18
- "@webiny/api-aco": "0.0.0-unstable.61c048f412",
19
- "@webiny/api-headless-cms": "0.0.0-unstable.61c048f412",
20
- "@webiny/api-headless-cms-bulk-actions": "0.0.0-unstable.61c048f412",
21
- "@webiny/api-headless-cms-import-export": "0.0.0-unstable.61c048f412",
22
- "@webiny/db": "0.0.0-unstable.61c048f412",
23
- "@webiny/error": "0.0.0-unstable.61c048f412",
24
- "@webiny/feature": "0.0.0-unstable.61c048f412",
25
- "@webiny/handler-graphql": "0.0.0-unstable.61c048f412",
26
- "@webiny/tasks": "0.0.0-unstable.61c048f412",
27
- "@webiny/utils": "0.0.0-unstable.61c048f412",
17
+ "@webiny/api": "0.0.0-unstable.6f45466a1d",
18
+ "@webiny/api-aco": "0.0.0-unstable.6f45466a1d",
19
+ "@webiny/api-headless-cms": "0.0.0-unstable.6f45466a1d",
20
+ "@webiny/api-headless-cms-bulk-actions": "0.0.0-unstable.6f45466a1d",
21
+ "@webiny/api-headless-cms-import-export": "0.0.0-unstable.6f45466a1d",
22
+ "@webiny/db": "0.0.0-unstable.6f45466a1d",
23
+ "@webiny/error": "0.0.0-unstable.6f45466a1d",
24
+ "@webiny/feature": "0.0.0-unstable.6f45466a1d",
25
+ "@webiny/handler-graphql": "0.0.0-unstable.6f45466a1d",
26
+ "@webiny/tasks": "0.0.0-unstable.6f45466a1d",
27
+ "@webiny/utils": "0.0.0-unstable.6f45466a1d",
28
28
  "zod": "3.25.76"
29
29
  },
30
30
  "devDependencies": {
31
- "@webiny/api-core": "0.0.0-unstable.61c048f412",
32
- "@webiny/build-tools": "0.0.0-unstable.61c048f412",
33
- "@webiny/handler": "0.0.0-unstable.61c048f412",
34
- "@webiny/handler-aws": "0.0.0-unstable.61c048f412",
35
- "@webiny/plugins": "0.0.0-unstable.61c048f412",
36
- "@webiny/project-utils": "0.0.0-unstable.61c048f412",
37
- "@webiny/wcp": "0.0.0-unstable.61c048f412",
31
+ "@webiny/api-core": "0.0.0-unstable.6f45466a1d",
32
+ "@webiny/build-tools": "0.0.0-unstable.6f45466a1d",
33
+ "@webiny/handler": "0.0.0-unstable.6f45466a1d",
34
+ "@webiny/handler-aws": "0.0.0-unstable.6f45466a1d",
35
+ "@webiny/plugins": "0.0.0-unstable.6f45466a1d",
36
+ "@webiny/project-utils": "0.0.0-unstable.6f45466a1d",
37
+ "@webiny/wcp": "0.0.0-unstable.6f45466a1d",
38
38
  "typescript": "5.9.3",
39
39
  "vitest": "3.2.4"
40
40
  },
@@ -42,5 +42,5 @@
42
42
  "access": "public",
43
43
  "directory": "dist"
44
44
  },
45
- "gitHead": "61c048f412d6b4aa70c1d105aab21e3fa69730f3"
45
+ "gitHead": "6f45466a1d9fb94f6156923501eb90ac303b81a5"
46
46
  }