@wix/auto_sdk_automations_automations-v-2 1.0.5 → 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.
Files changed (38) hide show
  1. package/build/{automations-v2-automation-automations-v-2.universal-BVuQcd6J.d.mts → cjs/automations-v2-automation-automations-v-2.universal-BsNMNocV.d.ts} +15 -3
  2. package/build/{internal → cjs}/index.d.ts +12 -4
  3. package/build/{internal → cjs}/index.js +57 -8
  4. package/build/cjs/index.js.map +1 -0
  5. package/build/{internal → cjs}/meta.d.ts +53 -2
  6. package/build/{meta.js → cjs/meta.js} +38 -0
  7. package/build/cjs/meta.js.map +1 -0
  8. package/build/{automations-v2-automation-automations-v-2.universal-BVuQcd6J.d.ts → es/automations-v2-automation-automations-v-2.universal-BsNMNocV.d.mts} +15 -3
  9. package/build/{internal → es}/index.d.mts +12 -4
  10. package/build/{internal → es}/index.mjs +56 -8
  11. package/build/es/index.mjs.map +1 -0
  12. package/build/{internal → es}/meta.d.mts +53 -2
  13. package/build/{internal → es}/meta.mjs +37 -0
  14. package/build/es/meta.mjs.map +1 -0
  15. package/build/es/package.json +3 -0
  16. package/build/internal/{automations-v2-automation-automations-v-2.universal-BVuQcd6J.d.ts → cjs/automations-v2-automation-automations-v-2.universal-BsNMNocV.d.ts} +15 -3
  17. package/build/{index.d.ts → internal/cjs/index.d.ts} +12 -4
  18. package/build/{index.js → internal/cjs/index.js} +57 -8
  19. package/build/internal/cjs/index.js.map +1 -0
  20. package/build/{meta.d.ts → internal/cjs/meta.d.ts} +53 -2
  21. package/build/internal/{meta.js → cjs/meta.js} +38 -0
  22. package/build/internal/cjs/meta.js.map +1 -0
  23. package/build/internal/{automations-v2-automation-automations-v-2.universal-BVuQcd6J.d.mts → es/automations-v2-automation-automations-v-2.universal-BsNMNocV.d.mts} +15 -3
  24. package/build/{index.d.mts → internal/es/index.d.mts} +12 -4
  25. package/build/{index.mjs → internal/es/index.mjs} +56 -8
  26. package/build/internal/es/index.mjs.map +1 -0
  27. package/build/{meta.d.mts → internal/es/meta.d.mts} +53 -2
  28. package/build/{meta.mjs → internal/es/meta.mjs} +37 -0
  29. package/build/internal/es/meta.mjs.map +1 -0
  30. package/package.json +10 -10
  31. package/build/index.js.map +0 -1
  32. package/build/index.mjs.map +0 -1
  33. package/build/internal/index.js.map +0 -1
  34. package/build/internal/index.mjs.map +0 -1
  35. package/build/internal/meta.js.map +0 -1
  36. package/build/internal/meta.mjs.map +0 -1
  37. package/build/meta.js.map +0 -1
  38. package/build/meta.mjs.map +0 -1
@@ -2349,8 +2349,6 @@ interface GeneratePreinstalledAutomationOptions {
2349
2349
  */
2350
2350
  appId?: string;
2351
2351
  }
2352
- interface QueryAutomationsOptions {
2353
- }
2354
2352
  interface QueryCursorResult {
2355
2353
  cursors: Cursors;
2356
2354
  hasNext: () => boolean;
@@ -2433,6 +2431,20 @@ interface AutomationsQueryBuilder {
2433
2431
  /** @documentationMaturity preview */
2434
2432
  find: () => Promise<AutomationsQueryResult>;
2435
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
+ }
2436
2448
  interface CopyAutomationOptions {
2437
2449
  /** Origin of the automation to copy. */
2438
2450
  origin?: OriginWithLiterals;
@@ -2538,4 +2550,4 @@ interface GetAutomationRevisionOptions {
2538
2550
  fields?: RequestedFieldsWithLiterals[];
2539
2551
  }
2540
2552
 
2541
- export { type Filter as $, type Automation as A, type BulkDeleteAutomationsResponse as B, type CopyAutomationOptions as C, Domain as D, ValidationErrorSeverity as E, ValidationErrorType as F, type GeneratePreinstalledAutomationOptions as G, ActionErrorType as H, AutomationValidationErrorValidationErrorType as I, AutomationErrorType as J, type AutomationOriginInfoOneOf as K, Language as L, type ActionSettings as M, Namespace as N, Operator as O, type PublishDraftAutomationResponse as P, type QueryAutomationsOptions as Q, RequestedFields as R, Status as S, TimeUnit as T, type UpdateAutomation as U, type ValidateAutomationOptions as V, WebhookIdentityType as W, type Enrichment as X, type AuditInfo as Y, type AuditInfoIdOneOf as Z, type AutomationConfiguration as _, type GeneratePreinstalledAutomationResponse as a, type DeletePreinstalledAutomationResponse as a$, type FutureDateActivationOffset as a0, type RateLimit as a1, type FilterValueSelection as a2, type ConditionExpressionGroup as a3, type Path as a4, type AppDefinedAction as a5, type ConditionAction as a6, type DelayAction as a7, type RateLimitAction as a8, type SetVariablesAction as a9, type TestUpdateApplicationAutomationRequest as aA, type TestUpdateApplicationAutomationResponse as aB, type MessageEnvelope as aC, type IdentificationData as aD, type IdentificationDataIdOneOf as aE, type CodeSnippet as aF, type CodeConditionAction as aG, type CreateAutomationRequest as aH, type CreateAutomationResponse as aI, type GetAutomationRequest as aJ, type GetAutomationResponse as aK, type UpdateAutomationRequest as aL, type UpdateAutomationResponse as aM, type DeleteAutomationRequest as aN, type DeleteAutomationResponse as aO, type BulkDeleteAutomationsRequest as aP, type BulkDeleteResult as aQ, type ItemMetadata as aR, type ApplicationError as aS, type BulkActionMetadata as aT, type CreatePreinstalledAutomationRequest as aU, type PreinstalledAutomationSpecInfo as aV, type OriginAutomationInfo as aW, type CreatePreinstalledAutomationResponse as aX, type UpdatePreinstalledAutomationRequest as aY, type UpdatePreinstalledAutomationResponse as aZ, type DeletePreinstalledAutomationRequest as a_, type OutputAction as aa, type SplitAction as ab, type Trigger as ac, type Action as ad, type ActionInfoOneOf as ae, type FilterableAppDefinedActions as af, type ApplicationOrigin as ag, type PreinstalledOrigin as ah, type AutomationSettings as ai, type DraftInfo as aj, type Enrichments as ak, type ExtendedFields as al, type AutomationMigrationRequest as am, type UpdatedWithPreviousEntity as an, type DeletedWithEntity as ao, type DraftPublished as ap, type DomainEvent as aq, type DomainEventBodyOneOf as ar, type EntityCreatedEvent as as, type RestoreInfo as at, type EntityUpdatedEvent as au, type EntityDeletedEvent as av, type ActionEvent as aw, type Empty as ax, type UpdateApplicationAutomationsRequest as ay, type UpdateApplicationAutomationsResponse as az, type AutomationsQueryBuilder as b, type GetAutomationActionSchemaRequest as b$, type GeneratePreinstalledAutomationRequest as b0, type QueryPreinstalledAutomationsForAppRequest as b1, type CursorQuery as b2, type CursorQueryPagingMethodOneOf as b3, type Sorting as b4, type CursorPaging as b5, type QueryPreinstalledAutomationsForAppResponse as b6, type CursorPagingMetadata as b7, type Cursors as b8, type QueryAutomationsRequest 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 QueryAutomationsResponse as ba, type GetAggregatedUsageInfoRequest as bb, type GetAggregatedUsageInfoResponse 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 CopyAutomationResponse 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 CreateDraftAutomationOptions as d, type CreateDraftAutomationResponse as e, type GetOrCreateDraftAutomationResponse as f, type UpdateDraftAutomation as g, type UpdateDraftAutomationResponse as h, type QueryAutomationsWithDraftsOptions as i, type QueryAutomationsWithDraftsResponse as j, type ValidateAutomationResponse as k, type ValidateAutomationByIdOptions as l, type ValidateAutomationByIdResponse as m, type GetAutomationRevisionOptions as n, type GetAutomationRevisionResponse as o, type AutomationCreatedEnvelope as p, type AutomationDeletedEnvelope as q, type AutomationUpdatedEnvelope as r, Type as s, Origin as t, SortOrder as u, State as v, SiteCreatedContext as w, DeleteStatus as x, TriggerValidationErrorValidationErrorType as y, TriggerErrorType as z };
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 };
@@ -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, Q as QueryAutomationsOptions, b as AutomationsQueryBuilder, C as CopyAutomationOptions, c as CopyAutomationResponse, d as CreateDraftAutomationOptions, e as CreateDraftAutomationResponse, f as GetOrCreateDraftAutomationResponse, g as UpdateDraftAutomation, h as UpdateDraftAutomationResponse, i as QueryAutomationsWithDraftsOptions, j as QueryAutomationsWithDraftsResponse, P as PublishDraftAutomationResponse, V as ValidateAutomationOptions, k as ValidateAutomationResponse, l as ValidateAutomationByIdOptions, m as ValidateAutomationByIdResponse, n as GetAutomationRevisionOptions, o as GetAutomationRevisionResponse, p as AutomationCreatedEnvelope, q as AutomationDeletedEnvelope, r as AutomationUpdatedEnvelope } from './automations-v2-automation-automations-v-2.universal-BVuQcd6J.js';
3
- export { ad as Action, bW as ActionConfigurationError, H as ActionErrorType, aw as ActionEvent, ae as ActionInfoOneOf, c3 as ActionProviderQuotaInfo, c4 as ActionQuotaInfo, M as ActionSettings, be as ActionUsageSummary, bU as ActionValidationError, bV as ActionValidationErrorErrorOneOf, bT as ActionValidationInfo, c9 as AdditionalInfo, a5 as AppDefinedAction, aS as ApplicationError, ag as ApplicationOrigin, bi as Asset, Y as AuditInfo, Z as AuditInfoIdOneOf, _ as AutomationConfiguration, bZ as AutomationConfigurationError, J as AutomationErrorType, am as AutomationMigrationRequest, K as AutomationOriginInfoOneOf, ai as AutomationSettings, bX as AutomationValidationError, bY as AutomationValidationErrorErrorOneOf, I as AutomationValidationErrorValidationErrorType, cg as AutomationsQueryResult, ce as BaseEventMetadata, aT as BulkActionMetadata, aP as BulkDeleteAutomationsRequest, aQ as BulkDeleteResult, c8 as CTA, aG as CodeConditionAction, aF as CodeSnippet, a6 as ConditionAction, a3 as ConditionExpressionGroup, bf as CopyAutomationRequest, aH as CreateAutomationRequest, aI as CreateAutomationResponse, bF as CreateDraftAutomationRequest, aU as CreatePreinstalledAutomationRequest, aX as CreatePreinstalledAutomationResponse, b5 as CursorPaging, b7 as CursorPagingMetadata, b2 as CursorQuery, b3 as CursorQueryPagingMethodOneOf, b8 as Cursors, a7 as DelayAction, aN as DeleteAutomationRequest, aO as DeleteAutomationResponse, bm as DeleteContext, bK as DeleteDraftAutomationRequest, bL as DeleteDraftAutomationResponse, a_ as DeletePreinstalledAutomationRequest, a$ as DeletePreinstalledAutomationResponse, x as DeleteStatus, ao as DeletedWithEntity, D as Domain, aq as DomainEvent, ar as DomainEventBodyOneOf, aj as DraftInfo, ap as DraftPublished, bJ as DraftsInfo, ax as Empty, X as Enrichment, ak as Enrichments, as as EntityCreatedEvent, av as EntityDeletedEvent, au as EntityUpdatedEvent, cf as EventMetadata, al as ExtendedFields, $ as Filter, a2 as FilterValueSelection, af as FilterableAppDefinedActions, a0 as FutureDateActivationOffset, b0 as GeneratePreinstalledAutomationRequest, c1 as GetActionsQuotaInfoRequest, c2 as GetActionsQuotaInfoResponse, bb as GetAggregatedUsageInfoRequest, bc as GetAggregatedUsageInfoResponse, b$ as GetAutomationActionSchemaRequest, c0 as GetAutomationActionSchemaResponse, aJ as GetAutomationRequest, aK as GetAutomationResponse, cd as GetAutomationRevisionRequest, bG as GetOrCreateDraftAutomationRequest, aD as IdentificationData, aE as IdentificationDataIdOneOf, aR as ItemMetadata, L as Language, aC 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, t as Origin, aW as OriginAutomationInfo, aa as OutputAction, a4 as Path, bD as PicassoAssigned, bE as PicassoUnassigned, c6 as Plan, aV as PreinstalledAutomationSpecInfo, ah as PreinstalledOrigin, bS as ProviderConfigurationError, bM as PublishDraftAutomationRequest, b9 as QueryAutomationsRequest, ba as QueryAutomationsResponse, bI as QueryAutomationsWithDraftsRequest, b1 as QueryPreinstalledAutomationsForAppRequest, b6 as QueryPreinstalledAutomationsForAppResponse, c7 as Quota, c5 as QuotaInfo, a1 as RateLimit, a8 as RateLimitAction, R as RequestedFields, at as RestoreInfo, bs as ServiceProvisioned, bt as ServiceRemoved, a9 as SetVariablesAction, bj as SiteCreated, w 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, u as SortOrder, b4 as Sorting, ab as SplitAction, v as State, S as Status, bx as StudioAssigned, by as StudioUnassigned, aA as TestUpdateApplicationAutomationRequest, aB as TestUpdateApplicationAutomationResponse, T as TimeUnit, ac as Trigger, bR as TriggerConfigurationError, z as TriggerErrorType, bd as TriggerUsageSummary, bP as TriggerValidationError, bQ as TriggerValidationErrorErrorOneOf, y as TriggerValidationErrorValidationErrorType, s as Type, ay as UpdateApplicationAutomationsRequest, az as UpdateApplicationAutomationsResponse, aL as UpdateAutomationRequest, aM as UpdateAutomationResponse, bH as UpdateDraftAutomationRequest, aY as UpdatePreinstalledAutomationRequest, aZ as UpdatePreinstalledAutomationResponse, an as UpdatedWithPreviousEntity, ca as UpgradeCTA, b_ as ValidateAutomationByIdRequest, bN as ValidateAutomationRequest, E as ValidationErrorSeverity, F as ValidationErrorType, bO as ValidationSettings, W as WebhookIdentityType } from './automations-v2-automation-automations-v-2.universal-BVuQcd6J.js';
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 {
@@ -68,7 +68,14 @@ interface QueryAutomationsSignature {
68
68
  *
69
69
  * Learn more about [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
70
70
  */
71
- (options?: QueryAutomationsOptions | undefined): AutomationsQueryBuilder;
71
+ (): AutomationsQueryBuilder;
72
+ }
73
+ declare function getAggregatedUsageInfo$1(httpClient: HttpClient): GetAggregatedUsageInfoSignature;
74
+ interface GetAggregatedUsageInfoSignature {
75
+ /**
76
+ * Get aggregated info
77
+ */
78
+ (options?: GetAggregatedUsageInfoOptions | undefined): Promise<GetAggregatedUsageInfoResponse>;
72
79
  }
73
80
  declare function copyAutomation$1(httpClient: HttpClient): CopyAutomationSignature;
74
81
  interface CopyAutomationSignature {
@@ -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, QueryAutomationsOptions, 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 };
@@ -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, [
@@ -997,14 +1016,11 @@ async function generatePreinstalledAutomation2(automation, options) {
997
1016
  throw transformedError;
998
1017
  }
999
1018
  }
1000
- function queryAutomations2(options) {
1001
- const { httpClient, sideEffects } = arguments[1];
1019
+ function queryAutomations2() {
1020
+ const { httpClient, sideEffects } = arguments[0];
1002
1021
  return (0, import_query_builder.queryBuilder)({
1003
1022
  func: async (payload) => {
1004
- const reqOpts = queryAutomations({
1005
- ...payload,
1006
- ...options ?? {}
1007
- });
1023
+ const reqOpts = queryAutomations(payload);
1008
1024
  sideEffects?.onSiteCall?.();
1009
1025
  try {
1010
1026
  const result = await httpClient.request(reqOpts);
@@ -1016,7 +1032,7 @@ function queryAutomations2(options) {
1016
1032
  }
1017
1033
  },
1018
1034
  requestTransformer: (query) => {
1019
- const args = [query, options];
1035
+ const args = [query, {}];
1020
1036
  return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1021
1037
  ...args?.[1],
1022
1038
  query: args?.[0]
@@ -1043,6 +1059,31 @@ function queryAutomations2(options) {
1043
1059
  transformationPaths: {}
1044
1060
  });
1045
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
+ }
1046
1087
  async function copyAutomation2(automationId, options) {
1047
1088
  const { httpClient, sideEffects } = arguments[2];
1048
1089
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1359,7 +1400,13 @@ function generatePreinstalledAutomation3(httpClient) {
1359
1400
  );
1360
1401
  }
1361
1402
  function queryAutomations3(httpClient) {
1362
- return (options) => queryAutomations2(
1403
+ return () => queryAutomations2(
1404
+ // @ts-ignore
1405
+ { httpClient }
1406
+ );
1407
+ }
1408
+ function getAggregatedUsageInfo3(httpClient) {
1409
+ return (options) => getAggregatedUsageInfo2(
1363
1410
  options,
1364
1411
  // @ts-ignore
1365
1412
  { httpClient }
@@ -1502,6 +1549,7 @@ var deleteAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModul
1502
1549
  var bulkDeleteAutomations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeleteAutomations3);
1503
1550
  var generatePreinstalledAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(generatePreinstalledAutomation3);
1504
1551
  var queryAutomations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryAutomations3);
1552
+ var getAggregatedUsageInfo4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAggregatedUsageInfo3);
1505
1553
  var copyAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(copyAutomation3);
1506
1554
  var createDraftAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createDraftAutomation3);
1507
1555
  var getOrCreateDraftAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOrCreateDraftAutomation3);
@@ -1545,6 +1593,7 @@ var onAutomationUpdated2 = (0, import_event_definition_modules.createEventModule
1545
1593
  deleteAutomation,
1546
1594
  deleteDraftAutomation,
1547
1595
  generatePreinstalledAutomation,
1596
+ getAggregatedUsageInfo,
1548
1597
  getAutomation,
1549
1598
  getAutomationRevision,
1550
1599
  getOrCreateDraftAutomation,