@wix/auto_sdk_automations_automations-v-2 1.0.6 → 1.0.7
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-BsNMNocV.d.ts} +15 -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-BsNMNocV.d.mts} +15 -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-BsNMNocV.d.ts} +15 -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-BsNMNocV.d.mts} +15 -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
|
@@ -2431,6 +2431,20 @@ interface AutomationsQueryBuilder {
|
|
|
2431
2431
|
/** @documentationMaturity preview */
|
|
2432
2432
|
find: () => Promise<AutomationsQueryResult>;
|
|
2433
2433
|
}
|
|
2434
|
+
interface GetAggregatedUsageInfoOptions {
|
|
2435
|
+
/**
|
|
2436
|
+
* Filter in the following format:
|
|
2437
|
+
*
|
|
2438
|
+
* `"filter" :
|
|
2439
|
+
* {
|
|
2440
|
+
* "fieldName1": "value1",
|
|
2441
|
+
* "fieldName2":{"$operator":"value2"}
|
|
2442
|
+
* }`
|
|
2443
|
+
*
|
|
2444
|
+
* Learn more about [filters in API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#filters).
|
|
2445
|
+
*/
|
|
2446
|
+
filter?: Record<string, any> | null;
|
|
2447
|
+
}
|
|
2434
2448
|
interface CopyAutomationOptions {
|
|
2435
2449
|
/** Origin of the automation to copy. */
|
|
2436
2450
|
origin?: OriginWithLiterals;
|
|
@@ -2536,4 +2550,4 @@ interface GetAutomationRevisionOptions {
|
|
|
2536
2550
|
fields?: RequestedFieldsWithLiterals[];
|
|
2537
2551
|
}
|
|
2538
2552
|
|
|
2539
|
-
export { type
|
|
2553
|
+
export { type AutomationConfiguration as $, type Automation as A, type BulkDeleteAutomationsResponse as B, type CopyAutomationOptions as C, Domain as D, TriggerErrorType as E, ValidationErrorSeverity as F, type GeneratePreinstalledAutomationOptions as G, ValidationErrorType as H, ActionErrorType as I, AutomationValidationErrorValidationErrorType as J, AutomationErrorType as K, Language as L, type AutomationOriginInfoOneOf as M, Namespace as N, Operator as O, type PublishDraftAutomationResponse as P, type QueryAutomationsWithDraftsOptions as Q, RequestedFields as R, Status as S, TimeUnit as T, type UpdateAutomation as U, type ValidateAutomationOptions as V, WebhookIdentityType as W, type ActionSettings as X, type Enrichment as Y, type AuditInfo as Z, type AuditInfoIdOneOf as _, type GeneratePreinstalledAutomationResponse as a, type DeletePreinstalledAutomationRequest as a$, type Filter as a0, type FutureDateActivationOffset as a1, type RateLimit as a2, type FilterValueSelection as a3, type ConditionExpressionGroup as a4, type Path as a5, type AppDefinedAction as a6, type ConditionAction as a7, type DelayAction as a8, type RateLimitAction as a9, type UpdateApplicationAutomationsResponse as aA, type TestUpdateApplicationAutomationRequest as aB, type TestUpdateApplicationAutomationResponse as aC, type MessageEnvelope as aD, type IdentificationData as aE, type IdentificationDataIdOneOf as aF, type CodeSnippet as aG, type CodeConditionAction as aH, type CreateAutomationRequest as aI, type CreateAutomationResponse as aJ, type GetAutomationRequest as aK, type GetAutomationResponse as aL, type UpdateAutomationRequest as aM, type UpdateAutomationResponse as aN, type DeleteAutomationRequest as aO, type DeleteAutomationResponse as aP, type BulkDeleteAutomationsRequest as aQ, type BulkDeleteResult as aR, type ItemMetadata as aS, type ApplicationError as aT, type BulkActionMetadata as aU, type CreatePreinstalledAutomationRequest as aV, type PreinstalledAutomationSpecInfo as aW, type OriginAutomationInfo as aX, type CreatePreinstalledAutomationResponse as aY, type UpdatePreinstalledAutomationRequest as aZ, type UpdatePreinstalledAutomationResponse as a_, type SetVariablesAction as aa, type OutputAction as ab, type SplitAction as ac, type Trigger as ad, type Action as ae, type ActionInfoOneOf as af, type FilterableAppDefinedActions as ag, type ApplicationOrigin as ah, type PreinstalledOrigin as ai, type AutomationSettings as aj, type DraftInfo as ak, type Enrichments as al, type ExtendedFields as am, type AutomationMigrationRequest as an, type UpdatedWithPreviousEntity as ao, type DeletedWithEntity as ap, type DraftPublished as aq, type DomainEvent as ar, type DomainEventBodyOneOf as as, type EntityCreatedEvent as at, type RestoreInfo as au, type EntityUpdatedEvent as av, type EntityDeletedEvent as aw, type ActionEvent as ax, type Empty as ay, type UpdateApplicationAutomationsRequest as az, type AutomationsQueryBuilder as b, type GetAutomationActionSchemaRequest as b$, type DeletePreinstalledAutomationResponse as b0, type GeneratePreinstalledAutomationRequest as b1, type QueryPreinstalledAutomationsForAppRequest as b2, type CursorQuery as b3, type CursorQueryPagingMethodOneOf as b4, type Sorting as b5, type CursorPaging as b6, type QueryPreinstalledAutomationsForAppResponse as b7, type CursorPagingMetadata as b8, type Cursors as b9, type SitePurgedExternally as bA, type OdeditorAssigned as bB, type OdeditorUnassigned as bC, type PicassoAssigned as bD, type PicassoUnassigned as bE, type CreateDraftAutomationRequest as bF, type GetOrCreateDraftAutomationRequest as bG, type UpdateDraftAutomationRequest as bH, type QueryAutomationsWithDraftsRequest as bI, type DraftsInfo as bJ, type DeleteDraftAutomationRequest as bK, type DeleteDraftAutomationResponse as bL, type PublishDraftAutomationRequest as bM, type ValidateAutomationRequest as bN, type ValidationSettings as bO, type TriggerValidationError as bP, type TriggerValidationErrorErrorOneOf as bQ, type TriggerConfigurationError as bR, type ProviderConfigurationError as bS, type ActionValidationInfo as bT, type ActionValidationError as bU, type ActionValidationErrorErrorOneOf as bV, type ActionConfigurationError as bW, type AutomationValidationError as bX, type AutomationValidationErrorErrorOneOf as bY, type AutomationConfigurationError as bZ, type ValidateAutomationByIdRequest as b_, type QueryAutomationsRequest as ba, type QueryAutomationsResponse as bb, type GetAggregatedUsageInfoRequest as bc, type TriggerUsageSummary as bd, type ActionUsageSummary as be, type CopyAutomationRequest as bf, type MetaSiteSpecialEvent as bg, type MetaSiteSpecialEventPayloadOneOf as bh, type Asset as bi, type SiteCreated as bj, type SiteTransferred as bk, type SiteDeleted as bl, type DeleteContext as bm, type SiteUndeleted as bn, type SitePublished as bo, type SiteUnpublished as bp, type SiteMarkedAsTemplate as bq, type SiteMarkedAsWixSite as br, type ServiceProvisioned as bs, type ServiceRemoved as bt, type SiteRenamed as bu, type SiteHardDeleted as bv, type NamespaceChanged as bw, type StudioAssigned as bx, type StudioUnassigned as by, type SiteUrlChanged as bz, type GetAggregatedUsageInfoOptions as c, type GetAutomationActionSchemaResponse as c0, type GetActionsQuotaInfoRequest as c1, type GetActionsQuotaInfoResponse as c2, type ActionProviderQuotaInfo as c3, type ActionQuotaInfo as c4, type QuotaInfo as c5, type Plan as c6, type Quota as c7, type CTA as c8, type AdditionalInfo as c9, type UpgradeCTA as ca, type MigrateVeloActionAutomationsRequest as cb, type MigrateVeloActionAutomationsResponse as cc, type GetAutomationRevisionRequest as cd, type BaseEventMetadata as ce, type EventMetadata as cf, type AutomationsQueryResult as cg, type GetAggregatedUsageInfoResponse as d, type CopyAutomationResponse as e, type CreateDraftAutomationOptions as f, type CreateDraftAutomationResponse as g, type GetOrCreateDraftAutomationResponse as h, type UpdateDraftAutomation as i, type UpdateDraftAutomationResponse as j, type QueryAutomationsWithDraftsResponse as k, type ValidateAutomationResponse as l, type ValidateAutomationByIdOptions as m, type ValidateAutomationByIdResponse as n, type GetAutomationRevisionOptions as o, type GetAutomationRevisionResponse as p, type AutomationCreatedEnvelope as q, type AutomationDeletedEnvelope as r, type AutomationUpdatedEnvelope as s, Type as t, Origin as u, SortOrder as v, State as w, SiteCreatedContext as x, DeleteStatus as y, TriggerValidationErrorValidationErrorType as z };
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { A as Automation, U as UpdateAutomation, B as BulkDeleteAutomationsResponse, G as GeneratePreinstalledAutomationOptions, a as GeneratePreinstalledAutomationResponse, b as AutomationsQueryBuilder, C as CopyAutomationOptions,
|
|
3
|
-
export {
|
|
2
|
+
import { A as Automation, U as UpdateAutomation, B as BulkDeleteAutomationsResponse, G as GeneratePreinstalledAutomationOptions, a as GeneratePreinstalledAutomationResponse, b as AutomationsQueryBuilder, c as GetAggregatedUsageInfoOptions, d as GetAggregatedUsageInfoResponse, C as CopyAutomationOptions, e as CopyAutomationResponse, f as CreateDraftAutomationOptions, g as CreateDraftAutomationResponse, h as GetOrCreateDraftAutomationResponse, i as UpdateDraftAutomation, j as UpdateDraftAutomationResponse, Q as QueryAutomationsWithDraftsOptions, k as QueryAutomationsWithDraftsResponse, P as PublishDraftAutomationResponse, V as ValidateAutomationOptions, l as ValidateAutomationResponse, m as ValidateAutomationByIdOptions, n as ValidateAutomationByIdResponse, o as GetAutomationRevisionOptions, p as GetAutomationRevisionResponse, q as AutomationCreatedEnvelope, r as AutomationDeletedEnvelope, s as AutomationUpdatedEnvelope } from './automations-v2-automation-automations-v-2.universal-BsNMNocV.js';
|
|
3
|
+
export { ae as Action, bW as ActionConfigurationError, I as ActionErrorType, ax as ActionEvent, af as ActionInfoOneOf, c3 as ActionProviderQuotaInfo, c4 as ActionQuotaInfo, X as ActionSettings, be as ActionUsageSummary, bU as ActionValidationError, bV as ActionValidationErrorErrorOneOf, bT as ActionValidationInfo, c9 as AdditionalInfo, a6 as AppDefinedAction, aT as ApplicationError, ah as ApplicationOrigin, bi as Asset, Z as AuditInfo, _ as AuditInfoIdOneOf, $ as AutomationConfiguration, bZ as AutomationConfigurationError, K as AutomationErrorType, an as AutomationMigrationRequest, M as AutomationOriginInfoOneOf, aj as AutomationSettings, bX as AutomationValidationError, bY as AutomationValidationErrorErrorOneOf, J as AutomationValidationErrorValidationErrorType, cg as AutomationsQueryResult, ce as BaseEventMetadata, aU as BulkActionMetadata, aQ as BulkDeleteAutomationsRequest, aR as BulkDeleteResult, c8 as CTA, aH as CodeConditionAction, aG as CodeSnippet, a7 as ConditionAction, a4 as ConditionExpressionGroup, bf as CopyAutomationRequest, aI as CreateAutomationRequest, aJ as CreateAutomationResponse, bF as CreateDraftAutomationRequest, aV as CreatePreinstalledAutomationRequest, aY as CreatePreinstalledAutomationResponse, b6 as CursorPaging, b8 as CursorPagingMetadata, b3 as CursorQuery, b4 as CursorQueryPagingMethodOneOf, b9 as Cursors, a8 as DelayAction, aO as DeleteAutomationRequest, aP as DeleteAutomationResponse, bm as DeleteContext, bK as DeleteDraftAutomationRequest, bL as DeleteDraftAutomationResponse, a$ as DeletePreinstalledAutomationRequest, b0 as DeletePreinstalledAutomationResponse, y as DeleteStatus, ap as DeletedWithEntity, D as Domain, ar as DomainEvent, as as DomainEventBodyOneOf, ak as DraftInfo, aq as DraftPublished, bJ as DraftsInfo, ay as Empty, Y as Enrichment, al as Enrichments, at as EntityCreatedEvent, aw as EntityDeletedEvent, av as EntityUpdatedEvent, cf as EventMetadata, am as ExtendedFields, a0 as Filter, a3 as FilterValueSelection, ag as FilterableAppDefinedActions, a1 as FutureDateActivationOffset, b1 as GeneratePreinstalledAutomationRequest, c1 as GetActionsQuotaInfoRequest, c2 as GetActionsQuotaInfoResponse, bc as GetAggregatedUsageInfoRequest, b$ as GetAutomationActionSchemaRequest, c0 as GetAutomationActionSchemaResponse, aK as GetAutomationRequest, aL as GetAutomationResponse, cd as GetAutomationRevisionRequest, bG as GetOrCreateDraftAutomationRequest, aE as IdentificationData, aF as IdentificationDataIdOneOf, aS as ItemMetadata, L as Language, aD as MessageEnvelope, bg as MetaSiteSpecialEvent, bh as MetaSiteSpecialEventPayloadOneOf, cb as MigrateVeloActionAutomationsRequest, cc as MigrateVeloActionAutomationsResponse, N as Namespace, bw as NamespaceChanged, bB as OdeditorAssigned, bC as OdeditorUnassigned, O as Operator, u as Origin, aX as OriginAutomationInfo, ab as OutputAction, a5 as Path, bD as PicassoAssigned, bE as PicassoUnassigned, c6 as Plan, aW as PreinstalledAutomationSpecInfo, ai as PreinstalledOrigin, bS as ProviderConfigurationError, bM as PublishDraftAutomationRequest, ba as QueryAutomationsRequest, bb as QueryAutomationsResponse, bI as QueryAutomationsWithDraftsRequest, b2 as QueryPreinstalledAutomationsForAppRequest, b7 as QueryPreinstalledAutomationsForAppResponse, c7 as Quota, c5 as QuotaInfo, a2 as RateLimit, a9 as RateLimitAction, R as RequestedFields, au as RestoreInfo, bs as ServiceProvisioned, bt as ServiceRemoved, aa as SetVariablesAction, bj as SiteCreated, x as SiteCreatedContext, bl as SiteDeleted, bv as SiteHardDeleted, bq as SiteMarkedAsTemplate, br as SiteMarkedAsWixSite, bo as SitePublished, bA as SitePurgedExternally, bu as SiteRenamed, bk as SiteTransferred, bn as SiteUndeleted, bp as SiteUnpublished, bz as SiteUrlChanged, v as SortOrder, b5 as Sorting, ac as SplitAction, w as State, S as Status, bx as StudioAssigned, by as StudioUnassigned, aB as TestUpdateApplicationAutomationRequest, aC as TestUpdateApplicationAutomationResponse, T as TimeUnit, ad as Trigger, bR as TriggerConfigurationError, E as TriggerErrorType, bd as TriggerUsageSummary, bP as TriggerValidationError, bQ as TriggerValidationErrorErrorOneOf, z as TriggerValidationErrorValidationErrorType, t as Type, az as UpdateApplicationAutomationsRequest, aA as UpdateApplicationAutomationsResponse, aM as UpdateAutomationRequest, aN as UpdateAutomationResponse, bH as UpdateDraftAutomationRequest, aZ as UpdatePreinstalledAutomationRequest, a_ as UpdatePreinstalledAutomationResponse, ao as UpdatedWithPreviousEntity, ca as UpgradeCTA, b_ as ValidateAutomationByIdRequest, bN as ValidateAutomationRequest, F as ValidationErrorSeverity, H as ValidationErrorType, bO as ValidationSettings, W as WebhookIdentityType } from './automations-v2-automation-automations-v-2.universal-BsNMNocV.js';
|
|
4
4
|
|
|
5
5
|
declare function createAutomation$1(httpClient: HttpClient): CreateAutomationSignature;
|
|
6
6
|
interface CreateAutomationSignature {
|
|
@@ -70,6 +70,13 @@ interface QueryAutomationsSignature {
|
|
|
70
70
|
*/
|
|
71
71
|
(): AutomationsQueryBuilder;
|
|
72
72
|
}
|
|
73
|
+
declare function getAggregatedUsageInfo$1(httpClient: HttpClient): GetAggregatedUsageInfoSignature;
|
|
74
|
+
interface GetAggregatedUsageInfoSignature {
|
|
75
|
+
/**
|
|
76
|
+
* Get aggregated info
|
|
77
|
+
*/
|
|
78
|
+
(options?: GetAggregatedUsageInfoOptions | undefined): Promise<GetAggregatedUsageInfoResponse>;
|
|
79
|
+
}
|
|
73
80
|
declare function copyAutomation$1(httpClient: HttpClient): CopyAutomationSignature;
|
|
74
81
|
interface CopyAutomationSignature {
|
|
75
82
|
/**
|
|
@@ -176,6 +183,7 @@ declare const deleteAutomation: MaybeContext<BuildRESTFunction<typeof deleteAuto
|
|
|
176
183
|
declare const bulkDeleteAutomations: MaybeContext<BuildRESTFunction<typeof bulkDeleteAutomations$1> & typeof bulkDeleteAutomations$1>;
|
|
177
184
|
declare const generatePreinstalledAutomation: MaybeContext<BuildRESTFunction<typeof generatePreinstalledAutomation$1> & typeof generatePreinstalledAutomation$1>;
|
|
178
185
|
declare const queryAutomations: MaybeContext<BuildRESTFunction<typeof queryAutomations$1> & typeof queryAutomations$1>;
|
|
186
|
+
declare const getAggregatedUsageInfo: MaybeContext<BuildRESTFunction<typeof getAggregatedUsageInfo$1> & typeof getAggregatedUsageInfo$1>;
|
|
179
187
|
declare const copyAutomation: MaybeContext<BuildRESTFunction<typeof copyAutomation$1> & typeof copyAutomation$1>;
|
|
180
188
|
declare const createDraftAutomation: MaybeContext<BuildRESTFunction<typeof createDraftAutomation$1> & typeof createDraftAutomation$1>;
|
|
181
189
|
declare const getOrCreateDraftAutomation: MaybeContext<BuildRESTFunction<typeof getOrCreateDraftAutomation$1> & typeof getOrCreateDraftAutomation$1>;
|
|
@@ -199,4 +207,4 @@ declare const onAutomationDeleted: BuildEventDefinition<typeof onAutomationDelet
|
|
|
199
207
|
*/
|
|
200
208
|
declare const onAutomationUpdated: BuildEventDefinition<typeof onAutomationUpdated$1>;
|
|
201
209
|
|
|
202
|
-
export { Automation, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationUpdatedEnvelope, AutomationsQueryBuilder, BulkDeleteAutomationsResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, GetOrCreateDraftAutomationResponse, PublishDraftAutomationResponse, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, UpdateAutomation, UpdateDraftAutomation, UpdateDraftAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, ValidateAutomationOptions, ValidateAutomationResponse, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generatePreinstalledAutomation, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
|
|
210
|
+
export { Automation, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationUpdatedEnvelope, AutomationsQueryBuilder, BulkDeleteAutomationsResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, GetAggregatedUsageInfoOptions, GetAggregatedUsageInfoResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, GetOrCreateDraftAutomationResponse, PublishDraftAutomationResponse, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, UpdateAutomation, UpdateDraftAutomation, UpdateDraftAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, ValidateAutomationOptions, ValidateAutomationResponse, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generatePreinstalledAutomation, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
|
package/build/cjs/index.js
CHANGED
|
@@ -48,6 +48,7 @@ __export(index_exports, {
|
|
|
48
48
|
deleteAutomation: () => deleteAutomation4,
|
|
49
49
|
deleteDraftAutomation: () => deleteDraftAutomation4,
|
|
50
50
|
generatePreinstalledAutomation: () => generatePreinstalledAutomation4,
|
|
51
|
+
getAggregatedUsageInfo: () => getAggregatedUsageInfo4,
|
|
51
52
|
getAutomation: () => getAutomation4,
|
|
52
53
|
getAutomationRevision: () => getAutomationRevision4,
|
|
53
54
|
getOrCreateDraftAutomation: () => getOrCreateDraftAutomation4,
|
|
@@ -371,6 +372,24 @@ function queryAutomations(payload) {
|
|
|
371
372
|
}
|
|
372
373
|
return __queryAutomations;
|
|
373
374
|
}
|
|
375
|
+
function getAggregatedUsageInfo(payload) {
|
|
376
|
+
function __getAggregatedUsageInfo({ host }) {
|
|
377
|
+
const metadata = {
|
|
378
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
379
|
+
method: "GET",
|
|
380
|
+
methodFqn: "wix.automations.v2.AutomationsService.GetAggregatedUsageInfo",
|
|
381
|
+
packageName: PACKAGE_NAME,
|
|
382
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
383
|
+
protoPath: "/v2/automations/usage",
|
|
384
|
+
data: payload,
|
|
385
|
+
host
|
|
386
|
+
}),
|
|
387
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload, true)
|
|
388
|
+
};
|
|
389
|
+
return metadata;
|
|
390
|
+
}
|
|
391
|
+
return __getAggregatedUsageInfo;
|
|
392
|
+
}
|
|
374
393
|
function copyAutomation(payload) {
|
|
375
394
|
function __copyAutomation({ host }) {
|
|
376
395
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1040,6 +1059,31 @@ function queryAutomations2() {
|
|
|
1040
1059
|
transformationPaths: {}
|
|
1041
1060
|
});
|
|
1042
1061
|
}
|
|
1062
|
+
async function getAggregatedUsageInfo2(options) {
|
|
1063
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1064
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1065
|
+
filter: options?.filter
|
|
1066
|
+
});
|
|
1067
|
+
const reqOpts = getAggregatedUsageInfo(payload);
|
|
1068
|
+
sideEffects?.onSiteCall?.();
|
|
1069
|
+
try {
|
|
1070
|
+
const result = await httpClient.request(reqOpts);
|
|
1071
|
+
sideEffects?.onSuccess?.(result);
|
|
1072
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1073
|
+
} catch (err) {
|
|
1074
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1075
|
+
err,
|
|
1076
|
+
{
|
|
1077
|
+
spreadPathsToArguments: {},
|
|
1078
|
+
explicitPathsToArguments: { filter: "$[0].filter" },
|
|
1079
|
+
singleArgumentUnchanged: false
|
|
1080
|
+
},
|
|
1081
|
+
["options"]
|
|
1082
|
+
);
|
|
1083
|
+
sideEffects?.onError?.(err);
|
|
1084
|
+
throw transformedError;
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1043
1087
|
async function copyAutomation2(automationId, options) {
|
|
1044
1088
|
const { httpClient, sideEffects } = arguments[2];
|
|
1045
1089
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1361,6 +1405,13 @@ function queryAutomations3(httpClient) {
|
|
|
1361
1405
|
{ httpClient }
|
|
1362
1406
|
);
|
|
1363
1407
|
}
|
|
1408
|
+
function getAggregatedUsageInfo3(httpClient) {
|
|
1409
|
+
return (options) => getAggregatedUsageInfo2(
|
|
1410
|
+
options,
|
|
1411
|
+
// @ts-ignore
|
|
1412
|
+
{ httpClient }
|
|
1413
|
+
);
|
|
1414
|
+
}
|
|
1364
1415
|
function copyAutomation3(httpClient) {
|
|
1365
1416
|
return (automationId, options) => copyAutomation2(
|
|
1366
1417
|
automationId,
|
|
@@ -1498,6 +1549,7 @@ var deleteAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModul
|
|
|
1498
1549
|
var bulkDeleteAutomations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeleteAutomations3);
|
|
1499
1550
|
var generatePreinstalledAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(generatePreinstalledAutomation3);
|
|
1500
1551
|
var queryAutomations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryAutomations3);
|
|
1552
|
+
var getAggregatedUsageInfo4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAggregatedUsageInfo3);
|
|
1501
1553
|
var copyAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(copyAutomation3);
|
|
1502
1554
|
var createDraftAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createDraftAutomation3);
|
|
1503
1555
|
var getOrCreateDraftAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOrCreateDraftAutomation3);
|
|
@@ -1541,6 +1593,7 @@ var onAutomationUpdated2 = (0, import_event_definition_modules.createEventModule
|
|
|
1541
1593
|
deleteAutomation,
|
|
1542
1594
|
deleteDraftAutomation,
|
|
1543
1595
|
generatePreinstalledAutomation,
|
|
1596
|
+
getAggregatedUsageInfo,
|
|
1544
1597
|
getAutomation,
|
|
1545
1598
|
getAutomationRevision,
|
|
1546
1599
|
getOrCreateDraftAutomation,
|