@amaster.ai/client 1.1.67 → 1.1.69-beta.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/package.json +11 -11
- package/types/bpm.d.ts +24 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amaster.ai/client",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.69-beta.0",
|
|
4
4
|
"description": "Unified API client for Amaster platform - All services in one package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -72,16 +72,16 @@
|
|
|
72
72
|
"registry": "https://registry.npmjs.org/"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@amaster.ai/
|
|
76
|
-
"@amaster.ai/
|
|
77
|
-
"@amaster.ai/
|
|
78
|
-
"@amaster.ai/entity-client": "1.1.
|
|
79
|
-
"@amaster.ai/function-client": "1.1.
|
|
80
|
-
"@amaster.ai/
|
|
81
|
-
"@amaster.ai/
|
|
82
|
-
"@amaster.ai/
|
|
83
|
-
"@amaster.ai/tts-client": "1.1.
|
|
84
|
-
"@amaster.ai/workflow-client": "1.1.
|
|
75
|
+
"@amaster.ai/auth-client": "1.1.69-beta.0",
|
|
76
|
+
"@amaster.ai/bpm-client": "1.1.69-beta.0",
|
|
77
|
+
"@amaster.ai/copilot-client": "1.1.69-beta.0",
|
|
78
|
+
"@amaster.ai/entity-client": "1.1.69-beta.0",
|
|
79
|
+
"@amaster.ai/function-client": "1.1.69-beta.0",
|
|
80
|
+
"@amaster.ai/asr-client": "1.1.69-beta.0",
|
|
81
|
+
"@amaster.ai/http-client": "1.1.69-beta.0",
|
|
82
|
+
"@amaster.ai/s3-client": "1.1.69-beta.0",
|
|
83
|
+
"@amaster.ai/tts-client": "1.1.69-beta.0",
|
|
84
|
+
"@amaster.ai/workflow-client": "1.1.69-beta.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"axios": "^1.11.0"
|
package/types/bpm.d.ts
CHANGED
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
|
|
19
19
|
import type { ClientResult } from "./common";
|
|
20
20
|
import type { TaskPeopleMetadata } from "@amaster.ai/bpm-client";
|
|
21
|
-
export type { AssignmentPerson, TaskPeopleSnapshot, TaskPeopleMetadata } from "@amaster.ai/bpm-client";
|
|
21
|
+
export type { ApprovalTaskActions, ApprovalNotification, ApprovalExitActions, ApprovalActor, ApprovalExitResult, ApprovalWritebackStatus, ApprovalSignRelation, ApprovalSignResult, ApprovalOperationRecord, AssignmentPerson, TaskPeopleSnapshot, TaskPeopleMetadata } from "@amaster.ai/bpm-client";
|
|
22
|
+
import type { ApprovalTaskActions, ApprovalNotification, ApprovalExitActions, ApprovalActor, ApprovalExitResult, ApprovalWritebackStatus, ApprovalSignRelation, ApprovalSignResult, ApprovalOperationRecord } from "@amaster.ai/bpm-client";
|
|
22
23
|
|
|
23
24
|
// ==================== Variable Types ====================
|
|
24
25
|
|
|
@@ -708,10 +709,31 @@ export interface BpmClientAPI {
|
|
|
708
709
|
): Promise<ClientResult<Record<string, { value: CamundaVariableValue; type: string }>>>;
|
|
709
710
|
|
|
710
711
|
/**
|
|
711
|
-
* Delegate a task to another user
|
|
712
|
+
* Delegate a task to another user, then return it to its owner
|
|
712
713
|
*/
|
|
713
714
|
delegateTask(taskId: string, userId: string): Promise<ClientResult<null>>;
|
|
714
715
|
|
|
716
|
+
getApprovalTaskActions(taskId: string): Promise<ClientResult<ApprovalTaskActions>>;
|
|
717
|
+
getApprovalActor(): Promise<ClientResult<ApprovalActor>>;
|
|
718
|
+
delegateApprovalTask(taskId: string, userId: string, requestId?: string): Promise<ClientResult<ApprovalTaskActions>>;
|
|
719
|
+
transferApprovalTask(taskId: string, userId: string, requestId?: string): Promise<ClientResult<ApprovalTaskActions>>;
|
|
720
|
+
resolveApprovalTask(taskId: string, requestId?: string): Promise<ClientResult<ApprovalTaskActions>>;
|
|
721
|
+
getApprovalNotifications(category?: ApprovalNotification['category'], unreadOnly?: boolean): Promise<ClientResult<ApprovalNotification[]>>;
|
|
722
|
+
getApprovalNotification(id: string): Promise<ClientResult<ApprovalNotification>>;
|
|
723
|
+
markApprovalNotificationRead(id: string): Promise<ClientResult<null>>;
|
|
724
|
+
remindApprovalTask(taskId: string, requestId?: string): Promise<ClientResult<null>>;
|
|
725
|
+
copyApprovalTask(taskId: string, recipientUid: string, note?: string, requestId?: string): Promise<ClientResult<null>>;
|
|
726
|
+
getApprovalExitActions(instanceId: string): Promise<ClientResult<ApprovalExitActions>>;
|
|
727
|
+
withdrawApprovalInstance(instanceId: string, requestId?: string): Promise<ClientResult<ApprovalExitResult>>;
|
|
728
|
+
cancelApprovalInstance(instanceId: string, reason: string, requestId?: string): Promise<ClientResult<ApprovalExitResult>>;
|
|
729
|
+
getApprovalWritebackStatus(instanceId: string): Promise<ClientResult<ApprovalWritebackStatus>>;
|
|
730
|
+
retryApprovalWriteback(instanceId: string): Promise<ClientResult<ApprovalExitResult>>;
|
|
731
|
+
startApprovalPreSign(taskId: string, signerUid: string, requestId?: string): Promise<ClientResult<ApprovalSignRelation>>;
|
|
732
|
+
startApprovalPostSign(taskId: string, signerUid: string, variables: VariableSubmission['variables'], requestId?: string): Promise<ClientResult<ApprovalSignRelation>>;
|
|
733
|
+
decideApprovalSign(taskId: string, result: "approved" | "rejected", comment?: string, requestId?: string): Promise<ClientResult<ApprovalSignResult>>;
|
|
734
|
+
getApprovalSignHistory(instanceId: string): Promise<ClientResult<ApprovalSignRelation[]>>;
|
|
735
|
+
getApprovalOperationHistory(instanceId: string): Promise<ClientResult<ApprovalOperationRecord[]>>;
|
|
736
|
+
|
|
715
737
|
/**
|
|
716
738
|
* Get task form metadata
|
|
717
739
|
*/
|