@bpmsoftwaresolutions/ai-engine-client 1.1.47 → 1.1.48
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 +1 -1
- package/src/index.js +54 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const DEFAULT_TIMEOUT_MS = 30000;
|
|
2
|
-
export const AI_ENGINE_CLIENT_VERSION = '1.1.
|
|
2
|
+
export const AI_ENGINE_CLIENT_VERSION = '1.1.48';
|
|
3
3
|
export const GOVERNED_MUTATION_REQUIRED_CAPABILITIES = [
|
|
4
4
|
'executeVerifiedMutation',
|
|
5
5
|
'post_mutation_verification',
|
|
@@ -394,6 +394,13 @@ export class AIEngineClient {
|
|
|
394
394
|
};
|
|
395
395
|
this.projections = {
|
|
396
396
|
render: (request) => this.renderProjection(request),
|
|
397
|
+
getTransferHomeProjection: () => this.getLogaTransferHomeProjection(),
|
|
398
|
+
getTransferInboxProjection: (query) => this.getLogaTransferInboxProjection(query),
|
|
399
|
+
getTransferPacketProjection: (workTransferPacketId) => this.getLogaTransferPacketProjection(workTransferPacketId),
|
|
400
|
+
getTransferNegotiationEventsProjection: (query) => this.getLogaTransferNegotiationEventsProjection(query),
|
|
401
|
+
getTransferFrictionLaneProjection: (query) => this.getLogaTransferFrictionLaneProjection(query),
|
|
402
|
+
getTransferReceiptsProjection: (query) => this.getLogaTransferReceiptsProjection(query),
|
|
403
|
+
getTransferClosureReviewProjection: (workTransferPacketId) => this.getLogaTransferClosureReviewProjection(workTransferPacketId),
|
|
397
404
|
};
|
|
398
405
|
this.actions = {
|
|
399
406
|
submit: (request) => this.submitActionIntent(request),
|
|
@@ -2609,6 +2616,52 @@ export class AIEngineClient {
|
|
|
2609
2616
|
return this._requestLogaProjection(`/api/operator/projections/evidence-packets/${packetKey}`);
|
|
2610
2617
|
}
|
|
2611
2618
|
|
|
2619
|
+
async getLogaTransferHomeProjection() {
|
|
2620
|
+
return this._requestLogaProjection('/api/operator/projections/transfers/home');
|
|
2621
|
+
}
|
|
2622
|
+
|
|
2623
|
+
async getLogaTransferInboxProjection({ workflowRunId, recipientAgentSessionId, recipientRoleKey } = {}) {
|
|
2624
|
+
return this._requestLogaProjection('/api/operator/projections/transfers/inbox', {
|
|
2625
|
+
query: {
|
|
2626
|
+
workflow_run_id: workflowRunId,
|
|
2627
|
+
recipient_agent_session_id: recipientAgentSessionId,
|
|
2628
|
+
recipient_role_key: recipientRoleKey,
|
|
2629
|
+
},
|
|
2630
|
+
});
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
async getLogaTransferPacketProjection(workTransferPacketId) {
|
|
2634
|
+
return this._requestLogaProjection(`/api/operator/projections/transfers/${workTransferPacketId}`);
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
async getLogaTransferNegotiationEventsProjection({ workTransferPacketId, workflowRunId } = {}) {
|
|
2638
|
+
const path = workTransferPacketId
|
|
2639
|
+
? `/api/operator/projections/transfers/${workTransferPacketId}/negotiation-events`
|
|
2640
|
+
: '/api/operator/projections/transfers/negotiation-events';
|
|
2641
|
+
return this._requestLogaProjection(path, {
|
|
2642
|
+
query: { workflow_run_id: workflowRunId },
|
|
2643
|
+
});
|
|
2644
|
+
}
|
|
2645
|
+
|
|
2646
|
+
async getLogaTransferFrictionLaneProjection({ workflowRunId } = {}) {
|
|
2647
|
+
return this._requestLogaProjection('/api/operator/projections/transfers/friction-lane', {
|
|
2648
|
+
query: { workflow_run_id: workflowRunId },
|
|
2649
|
+
});
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2652
|
+
async getLogaTransferReceiptsProjection({ workTransferPacketId, workflowRunId } = {}) {
|
|
2653
|
+
return this._requestLogaProjection('/api/operator/projections/transfers/receipts', {
|
|
2654
|
+
query: {
|
|
2655
|
+
work_transfer_packet_id: workTransferPacketId,
|
|
2656
|
+
workflow_run_id: workflowRunId,
|
|
2657
|
+
},
|
|
2658
|
+
});
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
async getLogaTransferClosureReviewProjection(workTransferPacketId) {
|
|
2662
|
+
return this._requestLogaProjection(`/api/operator/projections/transfers/${workTransferPacketId}/closure-review`);
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2612
2665
|
async submitUxGateRemediation({
|
|
2613
2666
|
projectionType,
|
|
2614
2667
|
projectionId,
|