@wix/auto_sdk_automations_automations-v-2 1.0.6 → 1.0.8
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/build/cjs/{automations-v2-automation-automations-v-2.universal-CUoGClWF.d.ts → automations-v2-automation-automations-v-2.universal-BCyd22mR.d.ts} +28 -1
- package/build/cjs/index.d.ts +11 -3
- package/build/cjs/index.js +53 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +53 -2
- package/build/cjs/meta.js +38 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{automations-v2-automation-automations-v-2.universal-CUoGClWF.d.mts → automations-v2-automation-automations-v-2.universal-BCyd22mR.d.mts} +28 -1
- package/build/es/index.d.mts +11 -3
- package/build/es/index.mjs +52 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/meta.d.mts +53 -2
- package/build/es/meta.mjs +37 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{automations-v2-automation-automations-v-2.universal-CUoGClWF.d.ts → automations-v2-automation-automations-v-2.universal-BCyd22mR.d.ts} +28 -1
- package/build/internal/cjs/index.d.ts +11 -3
- package/build/internal/cjs/index.js +53 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +53 -2
- package/build/internal/cjs/meta.js +38 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{automations-v2-automation-automations-v-2.universal-CUoGClWF.d.mts → automations-v2-automation-automations-v-2.universal-BCyd22mR.d.mts} +28 -1
- package/build/internal/es/index.d.mts +11 -3
- package/build/internal/es/index.mjs +52 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +53 -2
- package/build/internal/es/meta.mjs +37 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/index.mjs
CHANGED
|
@@ -308,6 +308,24 @@ function queryAutomations(payload) {
|
|
|
308
308
|
}
|
|
309
309
|
return __queryAutomations;
|
|
310
310
|
}
|
|
311
|
+
function getAggregatedUsageInfo(payload) {
|
|
312
|
+
function __getAggregatedUsageInfo({ host }) {
|
|
313
|
+
const metadata = {
|
|
314
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
315
|
+
method: "GET",
|
|
316
|
+
methodFqn: "wix.automations.v2.AutomationsService.GetAggregatedUsageInfo",
|
|
317
|
+
packageName: PACKAGE_NAME,
|
|
318
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
319
|
+
protoPath: "/v2/automations/usage",
|
|
320
|
+
data: payload,
|
|
321
|
+
host
|
|
322
|
+
}),
|
|
323
|
+
params: toURLSearchParams(payload, true)
|
|
324
|
+
};
|
|
325
|
+
return metadata;
|
|
326
|
+
}
|
|
327
|
+
return __getAggregatedUsageInfo;
|
|
328
|
+
}
|
|
311
329
|
function copyAutomation(payload) {
|
|
312
330
|
function __copyAutomation({ host }) {
|
|
313
331
|
const serializedData = transformPaths(payload, [
|
|
@@ -977,6 +995,31 @@ function queryAutomations2() {
|
|
|
977
995
|
transformationPaths: {}
|
|
978
996
|
});
|
|
979
997
|
}
|
|
998
|
+
async function getAggregatedUsageInfo2(options) {
|
|
999
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1000
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1001
|
+
filter: options?.filter
|
|
1002
|
+
});
|
|
1003
|
+
const reqOpts = getAggregatedUsageInfo(payload);
|
|
1004
|
+
sideEffects?.onSiteCall?.();
|
|
1005
|
+
try {
|
|
1006
|
+
const result = await httpClient.request(reqOpts);
|
|
1007
|
+
sideEffects?.onSuccess?.(result);
|
|
1008
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1009
|
+
} catch (err) {
|
|
1010
|
+
const transformedError = sdkTransformError(
|
|
1011
|
+
err,
|
|
1012
|
+
{
|
|
1013
|
+
spreadPathsToArguments: {},
|
|
1014
|
+
explicitPathsToArguments: { filter: "$[0].filter" },
|
|
1015
|
+
singleArgumentUnchanged: false
|
|
1016
|
+
},
|
|
1017
|
+
["options"]
|
|
1018
|
+
);
|
|
1019
|
+
sideEffects?.onError?.(err);
|
|
1020
|
+
throw transformedError;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
980
1023
|
async function copyAutomation2(automationId, options) {
|
|
981
1024
|
const { httpClient, sideEffects } = arguments[2];
|
|
982
1025
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1298,6 +1341,13 @@ function queryAutomations3(httpClient) {
|
|
|
1298
1341
|
{ httpClient }
|
|
1299
1342
|
);
|
|
1300
1343
|
}
|
|
1344
|
+
function getAggregatedUsageInfo3(httpClient) {
|
|
1345
|
+
return (options) => getAggregatedUsageInfo2(
|
|
1346
|
+
options,
|
|
1347
|
+
// @ts-ignore
|
|
1348
|
+
{ httpClient }
|
|
1349
|
+
);
|
|
1350
|
+
}
|
|
1301
1351
|
function copyAutomation3(httpClient) {
|
|
1302
1352
|
return (automationId, options) => copyAutomation2(
|
|
1303
1353
|
automationId,
|
|
@@ -1435,6 +1485,7 @@ var deleteAutomation4 = /* @__PURE__ */ createRESTModule(deleteAutomation3);
|
|
|
1435
1485
|
var bulkDeleteAutomations4 = /* @__PURE__ */ createRESTModule(bulkDeleteAutomations3);
|
|
1436
1486
|
var generatePreinstalledAutomation4 = /* @__PURE__ */ createRESTModule(generatePreinstalledAutomation3);
|
|
1437
1487
|
var queryAutomations4 = /* @__PURE__ */ createRESTModule(queryAutomations3);
|
|
1488
|
+
var getAggregatedUsageInfo4 = /* @__PURE__ */ createRESTModule(getAggregatedUsageInfo3);
|
|
1438
1489
|
var copyAutomation4 = /* @__PURE__ */ createRESTModule(copyAutomation3);
|
|
1439
1490
|
var createDraftAutomation4 = /* @__PURE__ */ createRESTModule(createDraftAutomation3);
|
|
1440
1491
|
var getOrCreateDraftAutomation4 = /* @__PURE__ */ createRESTModule(getOrCreateDraftAutomation3);
|
|
@@ -1477,6 +1528,7 @@ export {
|
|
|
1477
1528
|
deleteAutomation4 as deleteAutomation,
|
|
1478
1529
|
deleteDraftAutomation4 as deleteDraftAutomation,
|
|
1479
1530
|
generatePreinstalledAutomation4 as generatePreinstalledAutomation,
|
|
1531
|
+
getAggregatedUsageInfo4 as getAggregatedUsageInfo,
|
|
1480
1532
|
getAutomation4 as getAutomation,
|
|
1481
1533
|
getAutomationRevision4 as getAutomationRevision,
|
|
1482
1534
|
getOrCreateDraftAutomation4 as getOrCreateDraftAutomation,
|