@webiny/api-workflows 0.0.0-unstable.ac6ebf63c6 → 0.0.0-unstable.c27f4d8a31

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.
Files changed (35) hide show
  1. package/domain/workflowState/errors.js +1 -1
  2. package/domain/workflowState/errors.js.map +1 -1
  3. package/features/notifications/ListNotificationTypes/ListNotificationTypesUseCase.js +1 -2
  4. package/features/notifications/ListNotificationTypes/ListNotificationTypesUseCase.js.map +1 -1
  5. package/features/workflow/CreateWorkflow/CreateWorkflowUseCase.js +1 -2
  6. package/features/workflow/CreateWorkflow/CreateWorkflowUseCase.js.map +1 -1
  7. package/features/workflow/DeleteWorkflow/DeleteWorkflowUseCase.js +1 -2
  8. package/features/workflow/DeleteWorkflow/DeleteWorkflowUseCase.js.map +1 -1
  9. package/features/workflow/UpdateWorkflow/UpdateWorkflowUseCase.js +1 -2
  10. package/features/workflow/UpdateWorkflow/UpdateWorkflowUseCase.js.map +1 -1
  11. package/features/workflowState/ListWorkflowStates/abstractions.d.ts +18 -3
  12. package/features/workflowState/ListWorkflowStates/abstractions.js.map +1 -1
  13. package/graphql/validation/approveWorkflowState.d.ts +1 -7
  14. package/graphql/validation/cancelWorkflowState.d.ts +1 -5
  15. package/graphql/validation/createWorkflowState.d.ts +1 -9
  16. package/graphql/validation/deleteWorkflow.d.ts +1 -7
  17. package/graphql/validation/getTargetWorkflowState.d.ts +1 -7
  18. package/graphql/validation/getWorkflow.d.ts +1 -7
  19. package/graphql/validation/getWorkflowState.d.ts +1 -5
  20. package/graphql/validation/listWorkflowStates.d.ts +14 -96
  21. package/graphql/validation/listWorkflows.d.ts +6 -36
  22. package/graphql/validation/rejectWorkflowState.d.ts +1 -7
  23. package/graphql/validation/startWorkflowState.d.ts +1 -5
  24. package/graphql/validation/step.d.ts +8 -36
  25. package/graphql/validation/storeWorkflow.d.ts +14 -86
  26. package/graphql/validation/takeOverWorkflowStateStep.d.ts +1 -5
  27. package/graphql/validation/workflow.d.ts +13 -60
  28. package/graphql/workflowState.js +36 -7
  29. package/graphql/workflowState.js.map +1 -1
  30. package/index.js +6 -4
  31. package/index.js.map +1 -1
  32. package/package.json +16 -16
  33. package/types.d.ts +11 -4
  34. package/types.js +1 -5
  35. package/types.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/api-workflows",
3
- "version": "0.0.0-unstable.ac6ebf63c6",
3
+ "version": "0.0.0-unstable.c27f4d8a31",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "description": "Workflows API",
@@ -14,28 +14,28 @@
14
14
  },
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
- "@webiny/api": "0.0.0-unstable.ac6ebf63c6",
18
- "@webiny/api-core": "0.0.0-unstable.ac6ebf63c6",
19
- "@webiny/api-headless-cms": "0.0.0-unstable.ac6ebf63c6",
20
- "@webiny/api-mailer": "0.0.0-unstable.ac6ebf63c6",
21
- "@webiny/feature": "0.0.0-unstable.ac6ebf63c6",
22
- "@webiny/handler": "0.0.0-unstable.ac6ebf63c6",
23
- "@webiny/handler-graphql": "0.0.0-unstable.ac6ebf63c6",
24
- "@webiny/utils": "0.0.0-unstable.ac6ebf63c6",
25
- "zod": "3.25.76"
17
+ "@webiny/api": "0.0.0-unstable.c27f4d8a31",
18
+ "@webiny/api-core": "0.0.0-unstable.c27f4d8a31",
19
+ "@webiny/api-headless-cms": "0.0.0-unstable.c27f4d8a31",
20
+ "@webiny/api-mailer": "0.0.0-unstable.c27f4d8a31",
21
+ "@webiny/feature": "0.0.0-unstable.c27f4d8a31",
22
+ "@webiny/handler": "0.0.0-unstable.c27f4d8a31",
23
+ "@webiny/handler-graphql": "0.0.0-unstable.c27f4d8a31",
24
+ "@webiny/utils": "0.0.0-unstable.c27f4d8a31",
25
+ "zod": "4.3.6"
26
26
  },
27
27
  "devDependencies": {
28
- "@webiny/build-tools": "0.0.0-unstable.ac6ebf63c6",
29
- "@webiny/plugins": "0.0.0-unstable.ac6ebf63c6",
30
- "@webiny/project-utils": "0.0.0-unstable.ac6ebf63c6",
31
- "@webiny/testing": "0.0.0-unstable.ac6ebf63c6",
28
+ "@webiny/build-tools": "0.0.0-unstable.c27f4d8a31",
29
+ "@webiny/plugins": "0.0.0-unstable.c27f4d8a31",
30
+ "@webiny/project-utils": "0.0.0-unstable.c27f4d8a31",
31
+ "@webiny/testing": "0.0.0-unstable.c27f4d8a31",
32
32
  "type-fest": "5.4.4",
33
33
  "typescript": "5.9.3",
34
- "vitest": "3.2.4"
34
+ "vitest": "4.0.18"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public",
38
38
  "directory": "dist"
39
39
  },
40
- "gitHead": "ac6ebf63c6de308703d41f2c1b375e03cd96b813"
40
+ "gitHead": "c27f4d8a31c3af1570817797441855292b6c1f20"
41
41
  }
package/types.d.ts CHANGED
@@ -1,13 +1,20 @@
1
1
  import type { SecurityPermission } from "@webiny/api-core/types/security.js";
2
- export declare enum WorkflowsSecurityPermissionAccessLevel {
3
- NO = "no",
4
- YES = "yes"
2
+ export interface ICmsEntryWorkflowState {
3
+ state: string;
4
+ workflowId: string;
5
+ stepId: string;
6
+ stepName: string;
5
7
  }
6
8
  export interface IWorkflowsSecurityPermission extends SecurityPermission {
7
- editor: WorkflowsSecurityPermissionAccessLevel;
9
+ editor: boolean;
8
10
  }
9
11
  export interface IMeta {
10
12
  totalCount: number;
11
13
  hasMoreItems: boolean;
12
14
  cursor: string | null;
13
15
  }
16
+ declare module "@webiny/api-headless-cms/types/types.js" {
17
+ interface IEntrySystem {
18
+ workflow?: ICmsEntryWorkflowState | null;
19
+ }
20
+ }
package/types.js CHANGED
@@ -1,7 +1,3 @@
1
- export let WorkflowsSecurityPermissionAccessLevel = /*#__PURE__*/function (WorkflowsSecurityPermissionAccessLevel) {
2
- WorkflowsSecurityPermissionAccessLevel["NO"] = "no";
3
- WorkflowsSecurityPermissionAccessLevel["YES"] = "yes";
4
- return WorkflowsSecurityPermissionAccessLevel;
5
- }({});
1
+ export {};
6
2
 
7
3
  //# sourceMappingURL=types.js.map
package/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["WorkflowsSecurityPermissionAccessLevel"],"sources":["types.ts"],"sourcesContent":["import type { SecurityPermission } from \"@webiny/api-core/types/security.js\";\n\nexport enum WorkflowsSecurityPermissionAccessLevel {\n NO = \"no\",\n YES = \"yes\"\n}\n\nexport interface IWorkflowsSecurityPermission extends SecurityPermission {\n editor: WorkflowsSecurityPermissionAccessLevel;\n}\n\nexport interface IMeta {\n totalCount: number;\n hasMoreItems: boolean;\n cursor: string | null;\n}\n"],"mappings":"AAEA,WAAYA,sCAAsC,0BAAtCA,sCAAsC;EAAtCA,sCAAsC;EAAtCA,sCAAsC;EAAA,OAAtCA,sCAAsC;AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type { SecurityPermission } from \"@webiny/api-core/types/security.js\";\n\nexport interface ICmsEntryWorkflowState {\n state: string;\n workflowId: string;\n stepId: string;\n stepName: string;\n}\n\nexport interface IWorkflowsSecurityPermission extends SecurityPermission {\n editor: boolean;\n}\n\nexport interface IMeta {\n totalCount: number;\n hasMoreItems: boolean;\n cursor: string | null;\n}\n\ndeclare module \"@webiny/api-headless-cms/types/types.js\" {\n export interface IEntrySystem {\n workflow?: ICmsEntryWorkflowState | null;\n }\n}\n"],"mappings":"","ignoreList":[]}