arky-sdk 0.3.149 → 0.3.151
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/dist/index.cjs +25 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +27 -11
- package/dist/types.d.ts +27 -11
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1524,6 +1524,31 @@ var createWorkflowApi = (apiConfig) => {
|
|
|
1524
1524
|
async triggerWorkflow(params, options) {
|
|
1525
1525
|
const { secret, ...input } = params;
|
|
1526
1526
|
return apiConfig.httpClient.post(`/v1/workflows/trigger/${secret}`, input, options);
|
|
1527
|
+
},
|
|
1528
|
+
/**
|
|
1529
|
+
* Get executions for a workflow
|
|
1530
|
+
*/
|
|
1531
|
+
async getWorkflowExecutions(params, options) {
|
|
1532
|
+
const businessId = params.businessId || apiConfig.businessId;
|
|
1533
|
+
const { workflowId, limit, cursor } = params;
|
|
1534
|
+
return apiConfig.httpClient.get(
|
|
1535
|
+
`/v1/businesses/${businessId}/workflows/${workflowId}/executions`,
|
|
1536
|
+
{
|
|
1537
|
+
...options,
|
|
1538
|
+
params: { limit, cursor }
|
|
1539
|
+
}
|
|
1540
|
+
);
|
|
1541
|
+
},
|
|
1542
|
+
/**
|
|
1543
|
+
* Get a specific workflow execution
|
|
1544
|
+
*/
|
|
1545
|
+
async getWorkflowExecution(params, options) {
|
|
1546
|
+
const businessId = params.businessId || apiConfig.businessId;
|
|
1547
|
+
const { workflowId, executionId } = params;
|
|
1548
|
+
return apiConfig.httpClient.get(
|
|
1549
|
+
`/v1/businesses/${businessId}/workflows/${workflowId}/executions/${executionId}`,
|
|
1550
|
+
options
|
|
1551
|
+
);
|
|
1527
1552
|
}
|
|
1528
1553
|
};
|
|
1529
1554
|
};
|