@5minds/processcube_app_sdk 6.1.0 → 6.2.0-alpha.2

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 (55) hide show
  1. package/build/client/actions-C6ZNF7JX.mjs +1 -0
  2. package/build/client/components/BPMNViewer.css +1 -1
  3. package/build/client/components/BPMNViewer.d.ts +5 -2
  4. package/build/client/components/DiagramDocumentationInspector.css +1 -1
  5. package/build/client/components/DiagramDocumentationInspector.d.ts +16 -6
  6. package/build/client/components/DocumentationViewer.css +1 -1
  7. package/build/client/components/DropdownMenu.css +1 -1
  8. package/build/client/components/DynamicUi/DynamicUi.css +1 -1
  9. package/build/client/components/ProcessInstanceInspector/CommandPalette.css +1 -0
  10. package/build/client/components/ProcessInstanceInspector/CommandPalette.d.ts +13 -0
  11. package/build/client/components/ProcessInstanceInspector/FlowNodeButton.d.ts +8 -0
  12. package/build/client/components/ProcessInstanceInspector/FlowNodeButtonsContainer.d.ts +6 -0
  13. package/build/client/components/ProcessInstanceInspector/GoToButton.d.ts +4 -0
  14. package/build/client/components/ProcessInstanceInspector/ListButton.d.ts +3 -0
  15. package/build/client/components/ProcessInstanceInspector/PlayButton.d.ts +15 -0
  16. package/build/client/components/ProcessInstanceInspector/ProcessButton.d.ts +7 -0
  17. package/build/client/components/ProcessInstanceInspector/ProcessButtonSeparator.d.ts +1 -0
  18. package/build/client/components/ProcessInstanceInspector/ProcessButtonsContainer.d.ts +2 -0
  19. package/build/client/components/ProcessInstanceInspector/ProcessInstanceInspector.css +1 -0
  20. package/build/client/components/ProcessInstanceInspector/ProcessInstanceInspector.d.ts +28 -0
  21. package/build/client/components/ProcessInstanceInspector/RefreshProcessButton.d.ts +5 -0
  22. package/build/client/components/ProcessInstanceInspector/RetryButton.d.ts +5 -0
  23. package/build/client/components/ProcessInstanceInspector/RetryDialog.css +1 -0
  24. package/build/client/components/ProcessInstanceInspector/RetryDialog.d.ts +8 -0
  25. package/build/client/components/ProcessInstanceInspector/RetryProcessButton.d.ts +6 -0
  26. package/build/client/components/ProcessInstanceInspector/TerminateProcessButton.d.ts +6 -0
  27. package/build/client/components/ProcessInstanceInspector/TokenInspector.d.ts +7 -0
  28. package/build/client/components/ProcessInstanceInspector/TokenInspectorButton.d.ts +8 -0
  29. package/build/client/components/ProcessInstanceInspector/index.d.ts +1 -0
  30. package/build/client/components/SplitterLayout.css +1 -1
  31. package/build/client/components/bpmnViewerComponent/bpmnViewer.d.ts +3 -0
  32. package/build/client/components/bpmnViewerComponent/bpmnViewerOverlayCreator.d.ts +3 -0
  33. package/build/client/components/bpmnViewerComponent/executionCount.d.ts +3 -0
  34. package/build/client/components/bpmnViewerComponent/flowNodeButtonArea.d.ts +3 -0
  35. package/build/client/components/bpmnViewerComponent/flowNodeColorArea.d.ts +3 -0
  36. package/build/client/components/bpmnViewerComponent/flowNodeInfoComponent.d.ts +3 -0
  37. package/build/client/components/bpmnViewerComponent/flowNodeOverlay.d.ts +3 -0
  38. package/build/client/components/bpmnViewerComponent/gotoButton.d.ts +3 -0
  39. package/build/client/components/bpmnViewerComponent/playButton.d.ts +3 -0
  40. package/build/client/components/bpmnViewerComponent/retryButton.d.ts +3 -0
  41. package/build/client/index.cjs +14 -12
  42. package/build/client/index.d.ts +1 -0
  43. package/build/client/index.mjs +14 -12
  44. package/build/client/root.css +1 -1
  45. package/build/client/utils/warnOnceForDeprecation.d.ts +1 -0
  46. package/build/server/actions.d.ts +7 -0
  47. package/build/server/index.cjs +1 -1
  48. package/build/server/index.d.ts +1 -0
  49. package/build/server/index.mjs +2 -2
  50. package/build/server/lib/ProcessInstanceFunctions.d.ts +52 -10
  51. package/build/server/lib/UserTaskFunctions.d.ts +16 -12
  52. package/build/server/server-actions/ManualTaskActions.d.ts +2 -0
  53. package/build/server/server-actions/UntypedTaskActions.d.ts +2 -0
  54. package/build/server/server-actions/index.d.ts +2 -0
  55. package/package.json +10 -7
@@ -2,6 +2,9 @@ import { DataModels } from '@5minds/processcube_engine_client';
2
2
  import type { Identity, UserTaskResult } from '@5minds/processcube_engine_sdk';
3
3
  import { UserTaskInstance, UserTaskList } from '../../common';
4
4
  import { Client } from './internal/EngineClient';
5
+ type OptionsWithBoolIdentity = Omit<Parameters<typeof Client.userTasks.query>[1], 'identity'> & {
6
+ identity?: Identity | boolean;
7
+ };
5
8
  /**
6
9
  * If there is no UserTask waiting, this function will wait for the next UserTask to be created.
7
10
  * If there is already a UserTask waiting, this function will return it.
@@ -10,14 +13,14 @@ import { Client } from './internal/EngineClient';
10
13
  * @param filterBy.correlationId The ID of the correlation which contains the UserTask
11
14
  * @param filterBy.processInstanceId The ID of the ProcessInstance the UserTask belongs to
12
15
  * @param filterBy.flowNodeId The UserTask FlowNode ID (BPMN)
13
- * @param identity The Identity of the User
16
+ * @param identity The Identity of the User or true if the implied identity should be used
14
17
  * @returns {Promise<UserTaskInstance>} The created UserTask.
15
18
  */
16
19
  export declare function waitForUserTask(filterBy?: {
17
20
  correlationId?: string;
18
21
  processInstanceId?: string;
19
22
  flowNodeId?: string;
20
- }, identity?: Identity): Promise<UserTaskInstance>;
23
+ }, identity?: Identity | boolean): Promise<UserTaskInstance>;
21
24
  /**
22
25
  * The FilterBy object can be used to filter the result set of the finishUserTaskAndGetNext function.
23
26
  * The next UserTask will be returned based on the given filter options.
@@ -34,50 +37,50 @@ export type FilterBy = {
34
37
  * @param flowNodeInstanceId The ID of the flowNodeInstance to finish
35
38
  * @param FilterBy Additional filter options for the next UserTask
36
39
  * @param result The result of the UserTask
37
- * @param identity The Identity of the User
40
+ * @param identity The Identity of the User or true if the implied identity should be used
38
41
  * @returns {Promise<UserTaskInstance>} The next UserTask based on the given filter options.
39
42
  */
40
- export declare function finishUserTaskAndGetNext(flowNodeInstanceId: string, filterBy?: FilterBy, result?: UserTaskResult, identity?: Identity): Promise<UserTaskInstance | null>;
41
- export declare function getUserTasks(...args: Parameters<typeof Client.userTasks.query>): Promise<UserTaskList>;
43
+ export declare function finishUserTaskAndGetNext(flowNodeInstanceId: string, filterBy?: FilterBy, result?: UserTaskResult, identity?: Identity | boolean): Promise<UserTaskInstance | null>;
44
+ export declare function getUserTasks(query: DataModels.FlowNodeInstances.UserTaskQuery, options?: OptionsWithBoolIdentity): Promise<UserTaskList>;
42
45
  /**
43
46
  *
44
47
  * @param options Additional options for the query e.g. {@link DataModels.Iam.Identity} or {@link DataModels.FlowNodeInstances.FlowNodeInstanceSortSettings}
45
48
  * @returns {Promise<UserTaskList>}
46
49
  */
47
- export declare function getWaitingUserTasks(options?: Parameters<typeof Client.userTasks.query>[1]): Promise<UserTaskList>;
50
+ export declare function getWaitingUserTasks(options?: OptionsWithBoolIdentity): Promise<UserTaskList>;
48
51
  /**
49
52
  *
50
53
  * @param processInstanceId The Process Instance ID
51
54
  * @param options Additional options for the query e.g. {@link DataModels.Iam.Identity} or {@link DataModels.FlowNodeInstances.FlowNodeInstanceSortSettings}
52
55
  * @returns {Promise<UserTaskList>}
53
56
  */
54
- export declare function getWaitingUserTasksByProcessInstanceId(processInstanceId: string | Array<string>, options?: Parameters<typeof Client.userTasks.query>[1]): Promise<UserTaskList>;
57
+ export declare function getWaitingUserTasksByProcessInstanceId(processInstanceId: string | Array<string>, options?: OptionsWithBoolIdentity): Promise<UserTaskList>;
55
58
  /**
56
59
  *
57
60
  * @param flowNodeId The UserTasks ID (BPMN)
58
61
  * @param options Additional options for the query e.g. {@link DataModels.Iam.Identity} or {@link DataModels.FlowNodeInstances.FlowNodeInstanceSortSettings}
59
62
  * @returns {Promise<UserTaskList>}
60
63
  */
61
- export declare function getWaitingUserTasksByFlowNodeId(flowNodeId: string | string[], options?: Parameters<typeof Client.userTasks.query>[1]): Promise<UserTaskList>;
64
+ export declare function getWaitingUserTasksByFlowNodeId(flowNodeId: string | string[], options?: OptionsWithBoolIdentity): Promise<UserTaskList>;
62
65
  /**
63
66
  *
64
67
  * @param flowNodeInstanceId The UserTask Instance ID
65
68
  * @param options Additional options for the query e.g. {@link DataModels.Iam.Identity}
66
69
  * @returns {Promise<UserTaskInstance | null>}
67
70
  */
68
- export declare function getWaitingUserTaskByFlowNodeInstanceId(flowNodeInstanceId: string, options?: Parameters<typeof Client.userTasks.query>[1]): Promise<UserTaskInstance | null>;
71
+ export declare function getWaitingUserTaskByFlowNodeInstanceId(flowNodeInstanceId: string, options?: OptionsWithBoolIdentity): Promise<UserTaskInstance | null>;
69
72
  /**
70
73
  * @param correlationId The Correlation ID
71
74
  * @param options Additional options for the query e.g. {@link DataModels.Iam.Identity}
72
75
  * @returns {Promise<UserTaskList>}
73
76
  */
74
- export declare function getWaitingUserTasksByCorrelationId(correlationId: string, options?: Parameters<typeof Client.userTasks.query>[1]): Promise<UserTaskList>;
77
+ export declare function getWaitingUserTasksByCorrelationId(correlationId: string, options?: OptionsWithBoolIdentity): Promise<UserTaskList>;
75
78
  /**
76
79
  * @param identity The identity of the user
77
80
  * @param options Additional options for the query e.g. {@link DataModels.FlowNodeInstances.FlowNodeInstanceSortSettings}
78
81
  * @returns {Promise<UserTaskList>}
79
82
  */
80
- export declare function getReservedUserTasksByIdentity(identity: DataModels.Iam.Identity, options?: {
83
+ export declare function getReservedUserTasksByIdentity(identity?: Identity, options?: {
81
84
  offset?: number;
82
85
  limit?: number;
83
86
  sortSettings?: DataModels.FlowNodeInstances.FlowNodeInstanceSortSettings;
@@ -97,8 +100,9 @@ export declare function cancelReservedUserTask(identity: DataModels.Iam.Identity
97
100
  * @param options Additional options for the query e.g. {@link DataModels.FlowNodeInstances.FlowNodeInstanceSortSettings}
98
101
  * @returns {Promise<UserTaskList>}
99
102
  */
100
- export declare function getAssignedUserTasksByIdentity(identity: DataModels.Iam.Identity, options?: {
103
+ export declare function getAssignedUserTasksByIdentity(identity?: Identity, options?: {
101
104
  offset?: number;
102
105
  limit?: number;
103
106
  sortSettings?: DataModels.FlowNodeInstances.FlowNodeInstanceSortSettings;
104
107
  }): Promise<UserTaskList>;
108
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { EngineClient } from '@5minds/processcube_engine_client';
2
+ export declare function finishManualTask(...args: Parameters<typeof EngineClient.prototype.manualTasks.finishManualTask>): ReturnType<typeof EngineClient.prototype.manualTasks.finishManualTask>;
@@ -0,0 +1,2 @@
1
+ import type { EngineClient } from '@5minds/processcube_engine_client';
2
+ export declare function finishUntypedTask(...args: Parameters<typeof EngineClient.prototype.untypedTasks.finishTask>): ReturnType<typeof EngineClient.prototype.untypedTasks.finishTask>;
@@ -1,3 +1,5 @@
1
1
  export * from './NavigationActions';
2
2
  export * from './ProcessInstanceActions';
3
+ export * from './ManualTaskActions';
3
4
  export * from './UserTaskActions';
5
+ export * from './UntypedTaskActions';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/processcube_app_sdk",
3
- "version": "6.1.0",
3
+ "version": "6.2.0-alpha.2",
4
4
  "description": "The SDK for ProcessCube Apps",
5
5
  "type": "module",
6
6
  "main": "build/common/index.cjs",
@@ -74,7 +74,7 @@
74
74
  ],
75
75
  "devDependencies": {
76
76
  "@tailwindcss/forms": "^0.5.7",
77
- "@trivago/prettier-plugin-sort-imports": "^4.3.0",
77
+ "@trivago/prettier-plugin-sort-imports": "^5.0.0",
78
78
  "@types/node": "^20.11.17",
79
79
  "@types/react": "^18.2.22",
80
80
  "@types/react-dom": "^18.3.0",
@@ -96,20 +96,23 @@
96
96
  "react": ">=18.0.0"
97
97
  },
98
98
  "dependencies": {
99
- "@5minds/processcube_engine_client": "5.1.0",
100
- "@5minds/processcube_engine_sdk": "6.0.0",
101
- "@headlessui/react": "^2.0.0",
102
- "bpmn-js": "^17.6.0",
99
+ "@5minds/processcube_engine_client": "2024-2",
100
+ "@5minds/processcube_engine_sdk": "2024-2",
101
+ "@headlessui/react": "^2.1.1",
102
+ "@heroicons/react": "^2.1.4",
103
103
  "@monaco-editor/react": "^4.6.0",
104
- "@nextui-org/react": "^2.2.9",
104
+ "@heroui/react": "^2.6.14",
105
+ "bpmn-js": "^17.6.0",
105
106
  "chokidar": "^3.5.3",
106
107
  "client-only": "^0.0.1",
107
108
  "esbuild": "^0.24.0",
108
109
  "isomorphic-dompurify": "^2.0.0",
109
110
  "jwt-decode": "^4.0.0",
111
+ "lodash": "^4.17.21",
110
112
  "marked": "^14.0.0",
111
113
  "only-server": "^0.0.1",
112
114
  "openid-client": "^5.5.0",
115
+ "react-dom": "^18.3.1",
113
116
  "react-is": "^18.2.0",
114
117
  "react-markdown": "^9.0.1",
115
118
  "rehype-autolink-headings": "^7.1.0",