arky-sdk 0.3.144 → 0.3.146
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 +8 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/types.d.cts +2 -2
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1484,9 +1484,10 @@ var createNetworkApi = (apiConfig) => {
|
|
|
1484
1484
|
var createWorkflowApi = (apiConfig) => {
|
|
1485
1485
|
return {
|
|
1486
1486
|
async createWorkflow(params, options) {
|
|
1487
|
+
const businessId = params.businessId || apiConfig.businessId;
|
|
1487
1488
|
return apiConfig.httpClient.post(
|
|
1488
|
-
`/v1/businesses/${
|
|
1489
|
-
params,
|
|
1489
|
+
`/v1/businesses/${businessId}/workflows`,
|
|
1490
|
+
{ ...params, businessId },
|
|
1490
1491
|
options
|
|
1491
1492
|
);
|
|
1492
1493
|
},
|
|
@@ -1510,9 +1511,11 @@ var createWorkflowApi = (apiConfig) => {
|
|
|
1510
1511
|
);
|
|
1511
1512
|
},
|
|
1512
1513
|
async getWorkflows(params, options) {
|
|
1513
|
-
|
|
1514
|
+
const businessId = params?.businessId || apiConfig.businessId;
|
|
1515
|
+
const { businessId: _, ...queryParams } = params || {};
|
|
1516
|
+
return apiConfig.httpClient.get(`/v1/businesses/${businessId}/workflows`, {
|
|
1514
1517
|
...options,
|
|
1515
|
-
params
|
|
1518
|
+
params: Object.keys(queryParams).length > 0 ? queryParams : void 0
|
|
1516
1519
|
});
|
|
1517
1520
|
}
|
|
1518
1521
|
};
|
|
@@ -1904,7 +1907,7 @@ function nameToKey(name) {
|
|
|
1904
1907
|
}
|
|
1905
1908
|
|
|
1906
1909
|
// src/index.ts
|
|
1907
|
-
var SDK_VERSION = "0.3.
|
|
1910
|
+
var SDK_VERSION = "0.3.145";
|
|
1908
1911
|
var SUPPORTED_FRAMEWORKS = [
|
|
1909
1912
|
"astro",
|
|
1910
1913
|
"react",
|