arky-sdk 0.4.77 → 0.4.78
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 +18 -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 +18 -0
- package/dist/index.js.map +1 -1
- package/dist/types.d.cts +13 -1
- package/dist/types.d.ts +13 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1255,6 +1255,24 @@ var createWorkflowApi = (apiConfig) => {
|
|
|
1255
1255
|
async triggerWorkflow(params, options) {
|
|
1256
1256
|
const { secret, ...payload } = params;
|
|
1257
1257
|
return apiConfig.httpClient.post(`/v1/workflows/trigger/${secret}`, payload, options);
|
|
1258
|
+
},
|
|
1259
|
+
async getWorkflowExecutions(params, options) {
|
|
1260
|
+
const businessId = params.businessId || apiConfig.businessId;
|
|
1261
|
+
const { businessId: _, workflowId, ...queryParams } = params;
|
|
1262
|
+
return apiConfig.httpClient.get(
|
|
1263
|
+
`/v1/businesses/${businessId}/workflows/${workflowId}/executions`,
|
|
1264
|
+
{
|
|
1265
|
+
...options,
|
|
1266
|
+
params: Object.keys(queryParams).length > 0 ? queryParams : void 0
|
|
1267
|
+
}
|
|
1268
|
+
);
|
|
1269
|
+
},
|
|
1270
|
+
async getWorkflowExecution(params, options) {
|
|
1271
|
+
const businessId = params.businessId || apiConfig.businessId;
|
|
1272
|
+
return apiConfig.httpClient.get(
|
|
1273
|
+
`/v1/businesses/${businessId}/workflows/${params.workflowId}/executions/${params.executionId}`,
|
|
1274
|
+
options
|
|
1275
|
+
);
|
|
1258
1276
|
}
|
|
1259
1277
|
};
|
|
1260
1278
|
};
|