@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.
Files changed (29) hide show
  1. 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
  2. package/build/cjs/index.d.ts +11 -3
  3. package/build/cjs/index.js +53 -0
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/meta.d.ts +53 -2
  6. package/build/cjs/meta.js +38 -0
  7. package/build/cjs/meta.js.map +1 -1
  8. 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
  9. package/build/es/index.d.mts +11 -3
  10. package/build/es/index.mjs +52 -0
  11. package/build/es/index.mjs.map +1 -1
  12. package/build/es/meta.d.mts +53 -2
  13. package/build/es/meta.mjs +37 -0
  14. package/build/es/meta.mjs.map +1 -1
  15. 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
  16. package/build/internal/cjs/index.d.ts +11 -3
  17. package/build/internal/cjs/index.js +53 -0
  18. package/build/internal/cjs/index.js.map +1 -1
  19. package/build/internal/cjs/meta.d.ts +53 -2
  20. package/build/internal/cjs/meta.js +38 -0
  21. package/build/internal/cjs/meta.js.map +1 -1
  22. 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
  23. package/build/internal/es/index.d.mts +11 -3
  24. package/build/internal/es/index.mjs +52 -0
  25. package/build/internal/es/index.mjs.map +1 -1
  26. package/build/internal/es/meta.d.mts +53 -2
  27. package/build/internal/es/meta.mjs +37 -0
  28. package/build/internal/es/meta.mjs.map +1 -1
  29. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { aG as CreateAutomationRequest$1, aH as CreateAutomationResponse$1, aI as GetAutomationRequest$1, aJ as GetAutomationResponse$1, aK as UpdateAutomationRequest$1, aL as UpdateAutomationResponse$1, aM as DeleteAutomationRequest$1, aN as DeleteAutomationResponse$1, aO as BulkDeleteAutomationsRequest$1, B as BulkDeleteAutomationsResponse$1, a$ as GeneratePreinstalledAutomationRequest$1, a as GeneratePreinstalledAutomationResponse$1, b8 as QueryAutomationsRequest$1, b9 as QueryAutomationsResponse$1, be as CopyAutomationRequest$1, c as CopyAutomationResponse$1, bE as CreateDraftAutomationRequest$1, e as CreateDraftAutomationResponse$1, bF as GetOrCreateDraftAutomationRequest$1, f as GetOrCreateDraftAutomationResponse$1, bG as UpdateDraftAutomationRequest$1, h as UpdateDraftAutomationResponse$1, bH as QueryAutomationsWithDraftsRequest$1, i as QueryAutomationsWithDraftsResponse$1, bJ as DeleteDraftAutomationRequest$1, bK as DeleteDraftAutomationResponse$1, bL as PublishDraftAutomationRequest$1, P as PublishDraftAutomationResponse$1, bM as ValidateAutomationRequest$1, j as ValidateAutomationResponse$1, bZ as ValidateAutomationByIdRequest$1, l as ValidateAutomationByIdResponse$1, cc as GetAutomationRevisionRequest$1, n as GetAutomationRevisionResponse$1 } from './automations-v2-automation-automations-v-2.universal-CUoGClWF.mjs';
1
+ import { aI as CreateAutomationRequest$1, aJ as CreateAutomationResponse$1, aK as GetAutomationRequest$1, aL as GetAutomationResponse$1, aM as UpdateAutomationRequest$1, aN as UpdateAutomationResponse$1, aO as DeleteAutomationRequest$1, aP as DeleteAutomationResponse$1, aQ as BulkDeleteAutomationsRequest$1, B as BulkDeleteAutomationsResponse$1, b1 as GeneratePreinstalledAutomationRequest$1, a as GeneratePreinstalledAutomationResponse$1, bc as QueryAutomationsRequest$1, bd as QueryAutomationsResponse$1, be as GetAggregatedUsageInfoRequest$1, d as GetAggregatedUsageInfoResponse$1, bh as CopyAutomationRequest$1, e as CopyAutomationResponse$1, bH as CreateDraftAutomationRequest$1, g as CreateDraftAutomationResponse$1, bI as GetOrCreateDraftAutomationRequest$1, h as GetOrCreateDraftAutomationResponse$1, bJ as UpdateDraftAutomationRequest$1, j as UpdateDraftAutomationResponse$1, bK as QueryAutomationsWithDraftsRequest$1, k as QueryAutomationsWithDraftsResponse$1, bM as DeleteDraftAutomationRequest$1, bN as DeleteDraftAutomationResponse$1, bO as PublishDraftAutomationRequest$1, P as PublishDraftAutomationResponse$1, bP as ValidateAutomationRequest$1, l as ValidateAutomationResponse$1, c0 as ValidateAutomationByIdRequest$1, n as ValidateAutomationByIdResponse$1, cf as GetAutomationRevisionRequest$1, p as GetAutomationRevisionResponse$1 } from './automations-v2-automation-automations-v-2.universal-BCyd22mR.mjs';
2
2
 
3
3
  interface Automation extends AutomationOriginInfoOneOf {
4
4
  /** When the origin of the automation is `APPLICATION`, the details of the app that created it. */
@@ -757,6 +757,56 @@ interface QueryAutomationsResponse {
757
757
  /** Paging metadata. */
758
758
  pagingMetadata?: CursorPagingMetadata;
759
759
  }
760
+ interface GetAggregatedUsageInfoRequest {
761
+ /**
762
+ * Filter in the following format:
763
+ *
764
+ * `"filter" :
765
+ * {
766
+ * "fieldName1": "value1",
767
+ * "fieldName2":{"$operator":"value2"}
768
+ * }`
769
+ *
770
+ * Learn more about [filters in API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#filters).
771
+ */
772
+ filter?: Record<string, any> | null;
773
+ }
774
+ interface GetAggregatedUsageInfoResponse {
775
+ /** Triggers in use. */
776
+ triggersUsageSummary?: TriggerUsageSummary[];
777
+ /** Actions in use */
778
+ actionsUsageSummary?: ActionUsageSummary[];
779
+ }
780
+ interface TriggerUsageSummary {
781
+ /**
782
+ * ID of the app that defined the trigger.
783
+ * @format GUID
784
+ */
785
+ appId?: string;
786
+ /**
787
+ * Trigger key.
788
+ * @minLength 1
789
+ * @maxLength 100
790
+ */
791
+ triggerKey?: string;
792
+ /** Number of automations that include this trigger. */
793
+ automationsCount?: number;
794
+ }
795
+ interface ActionUsageSummary {
796
+ /**
797
+ * ID of the app that defined the action.
798
+ * @format GUID
799
+ */
800
+ appId?: string;
801
+ /**
802
+ * Action key.
803
+ * @minLength 1
804
+ * @maxLength 100
805
+ */
806
+ actionKey?: string;
807
+ /** Number of automations that include this action. */
808
+ automationsCount?: number;
809
+ }
760
810
  interface CopyAutomationRequest {
761
811
  /**
762
812
  * ID of the automation to copy.
@@ -1139,6 +1189,7 @@ declare function deleteAutomation(): __PublicMethodMetaInfo<'DELETE', {
1139
1189
  declare function bulkDeleteAutomations(): __PublicMethodMetaInfo<'POST', {}, BulkDeleteAutomationsRequest$1, BulkDeleteAutomationsRequest, BulkDeleteAutomationsResponse$1, BulkDeleteAutomationsResponse>;
1140
1190
  declare function generatePreinstalledAutomation(): __PublicMethodMetaInfo<'POST', {}, GeneratePreinstalledAutomationRequest$1, GeneratePreinstalledAutomationRequest, GeneratePreinstalledAutomationResponse$1, GeneratePreinstalledAutomationResponse>;
1141
1191
  declare function queryAutomations(): __PublicMethodMetaInfo<'POST', {}, QueryAutomationsRequest$1, QueryAutomationsRequest, QueryAutomationsResponse$1, QueryAutomationsResponse>;
1192
+ declare function getAggregatedUsageInfo(): __PublicMethodMetaInfo<'GET', {}, GetAggregatedUsageInfoRequest$1, GetAggregatedUsageInfoRequest, GetAggregatedUsageInfoResponse$1, GetAggregatedUsageInfoResponse>;
1142
1193
  declare function copyAutomation(): __PublicMethodMetaInfo<'POST', {
1143
1194
  automationId: string;
1144
1195
  }, CopyAutomationRequest$1, CopyAutomationRequest, CopyAutomationResponse$1, CopyAutomationResponse>;
@@ -1164,4 +1215,4 @@ declare function getAutomationRevision(): __PublicMethodMetaInfo<'GET', {
1164
1215
  automationId: string;
1165
1216
  }, GetAutomationRevisionRequest$1, GetAutomationRevisionRequest, GetAutomationRevisionResponse$1, GetAutomationRevisionResponse>;
1166
1217
 
1167
- export { type __PublicMethodMetaInfo, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generatePreinstalledAutomation, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
1218
+ export { type __PublicMethodMetaInfo, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generatePreinstalledAutomation, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
package/build/es/meta.mjs CHANGED
@@ -294,6 +294,24 @@ function queryAutomations(payload) {
294
294
  }
295
295
  return __queryAutomations;
296
296
  }
297
+ function getAggregatedUsageInfo(payload) {
298
+ function __getAggregatedUsageInfo({ host }) {
299
+ const metadata = {
300
+ entityFqdn: "wix.automations.v2.automation",
301
+ method: "GET",
302
+ methodFqn: "wix.automations.v2.AutomationsService.GetAggregatedUsageInfo",
303
+ packageName: PACKAGE_NAME,
304
+ url: resolveWixAutomationsV2AutomationsServiceUrl({
305
+ protoPath: "/v2/automations/usage",
306
+ data: payload,
307
+ host
308
+ }),
309
+ params: toURLSearchParams(payload, true)
310
+ };
311
+ return metadata;
312
+ }
313
+ return __getAggregatedUsageInfo;
314
+ }
297
315
  function copyAutomation(payload) {
298
316
  function __copyAutomation({ host }) {
299
317
  const serializedData = transformPaths(payload, [
@@ -718,6 +736,24 @@ function queryAutomations2() {
718
736
  __originalResponseType: null
719
737
  };
720
738
  }
739
+ function getAggregatedUsageInfo2() {
740
+ const payload = {};
741
+ const getRequestOptions = getAggregatedUsageInfo(payload);
742
+ const getUrl = (context) => {
743
+ const { url } = getRequestOptions(context);
744
+ return url;
745
+ };
746
+ return {
747
+ getUrl,
748
+ httpMethod: "GET",
749
+ path: "/v2/automations/usage",
750
+ pathParams: {},
751
+ __requestType: null,
752
+ __originalRequestType: null,
753
+ __responseType: null,
754
+ __originalResponseType: null
755
+ };
756
+ }
721
757
  function copyAutomation2() {
722
758
  const payload = { automationId: ":automationId" };
723
759
  const getRequestOptions = copyAutomation(payload);
@@ -906,6 +942,7 @@ export {
906
942
  deleteAutomation2 as deleteAutomation,
907
943
  deleteDraftAutomation2 as deleteDraftAutomation,
908
944
  generatePreinstalledAutomation2 as generatePreinstalledAutomation,
945
+ getAggregatedUsageInfo2 as getAggregatedUsageInfo,
909
946
  getAutomation2 as getAutomation,
910
947
  getAutomationRevision2 as getAutomationRevision,
911
948
  getOrCreateDraftAutomation2 as getOrCreateDraftAutomation,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/automations-v2-automation-automations-v-2.http.ts","../../src/automations-v2-automation-automations-v-2.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixAutomationsV2AutomationRevisionsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/automations-service',\n destPath: '',\n },\n {\n srcPath: '/_api/automations-service',\n destPath: '/api',\n },\n ],\n 'platform.rise.ai': [\n {\n srcPath: '/v2/automations',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/automations-service',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/automations-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/automations-service',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveWixAutomationsV2AutomationsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/automations-service',\n destPath: '',\n },\n {\n srcPath: '/_api/automations-service',\n destPath: '/api',\n },\n ],\n 'platform.rise.ai': [\n {\n srcPath: '/v2/automations',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/automations-service',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/automations-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/automations-service',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_automations_automations-v-2';\n\n/** Creates an automation. */\nexport function createAutomation(payload: object): RequestOptionsFactory<any> {\n function __createAutomation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.CreateAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createAutomation;\n}\n\n/** Retrieves an automation by ID. */\nexport function getAutomation(payload: object): RequestOptionsFactory<any> {\n function __getAutomation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'GET' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.GetAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/{automationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getAutomation;\n}\n\n/**\n * Updates the specified automation.\n *\n * When an automation is updated, its `revision` property is incremented by 1. When updating an automation, you must specify the current revision number.\n */\nexport function updateAutomation(payload: object): RequestOptionsFactory<any> {\n function __updateAutomation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'PATCH' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.UpdateAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/{automation.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateAutomation;\n}\n\n/** Deletes the specified automation. */\nexport function deleteAutomation(payload: object): RequestOptionsFactory<any> {\n function __deleteAutomation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'DELETE' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.DeleteAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/{automationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteAutomation;\n}\n\n/** Deletes one or more automations. */\nexport function bulkDeleteAutomations(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteAutomations({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.BulkDeleteAutomations',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/bulk/automations/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteAutomations;\n}\n\n/**\n * Generates a preinstalled automation from another automation.\n *\n * Calls the action providers for changes needed to make a preinstalled automation, such as changes made to email template.\n *\n * > **Note**: You must have an account permission to edit an app.\n */\nexport function generatePreinstalledAutomation(\n payload: object\n): RequestOptionsFactory<any> {\n function __generatePreinstalledAutomation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.v2.AutomationsService.GeneratePreinstalledAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/preinstalled-automation/generate',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __generatePreinstalledAutomation;\n}\n\n/**\n * Retrieves a list of automations. This includes both automations overridden on a site and preinstalled automations. If a preinstalled automation has been overridden on the site, the method returns the override automation.\n *\n * > **Note**: The method only returns automations by apps installed on the site.\n *\n * Learn more about [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).\n */\nexport function queryAutomations(payload: object): RequestOptionsFactory<any> {\n function __queryAutomations({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.QueryAutomations',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automations.createdDate' },\n { path: 'automations.updatedDate' },\n { path: 'automations.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryAutomations;\n}\n\n/**\n * Creates a copy of an action with a new ID, and changes the action's input mapping if necessary.\n *\n * The action copy isn't saved automatically. To save it, the user must perform an action\n * such as clicking the **Save** button.\n */\nexport function copyAutomation(payload: object): RequestOptionsFactory<any> {\n function __copyAutomation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.CopyAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/{automationId}/copy',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __copyAutomation;\n}\n\n/** Creates a draft automation. */\nexport function createDraftAutomation(\n payload: object\n): RequestOptionsFactory<any> {\n function __createDraftAutomation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.CreateDraftAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/drafts',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createDraftAutomation;\n}\n\n/**\n * Retrieves the draft of the specified automation. If a draft doesn't exist, the method creates one.\n *\n * > **Note**: If the specified automation is a draft, the method returns it.\n */\nexport function getOrCreateDraftAutomation(\n payload: object\n): RequestOptionsFactory<any> {\n function __getOrCreateDraftAutomation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.v2.AutomationsService.GetOrCreateDraftAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath:\n '/v2/automations/drafts/get-or-create/original-automation-id/{originalAutomationId}',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getOrCreateDraftAutomation;\n}\n\n/** Updates a draft automation. */\nexport function updateDraftAutomation(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateDraftAutomation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'PATCH' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.UpdateDraftAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/drafts/{automation.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateDraftAutomation;\n}\n\n/**\n * Retrieves a list of automations, including drafts. Max query filter depth is 3.\n *\n * Relevant automations for the query are returned. This includes automations created on the site and pre-installed automations.\n * If there's an existing override for a pre-installed automation, the override is returned in the query result.\n * The query only returns automations from apps that are installed on the site.\n *\n * - new drafts that are not related to existing automations will be returned in the list\n * - the response will contain a map of originalAutomationId => relatedDrafts\n *\n * To learn about working with _Query_ endpoints, see\n * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),\n * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),\n * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).\n */\nexport function queryAutomationsWithDrafts(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryAutomationsWithDrafts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.v2.AutomationsService.QueryAutomationsWithDrafts',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/query-with-drafts',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automations.createdDate' },\n { path: 'automations.updatedDate' },\n { path: 'automations.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryAutomationsWithDrafts;\n}\n\n/** Deletes a draft automation. */\nexport function deleteDraftAutomation(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteDraftAutomation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'DELETE' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.DeleteDraftAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/drafts/{automationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteDraftAutomation;\n}\n\n/** Publishes a draft automation. This applies any changes to the live automation. */\nexport function publishDraftAutomation(\n payload: object\n): RequestOptionsFactory<any> {\n function __publishDraftAutomation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.PublishDraftAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/drafts/{automationId}/publish',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __publishDraftAutomation;\n}\n\n/** Validates the specified automation. */\nexport function validateAutomation(\n payload: object\n): RequestOptionsFactory<any> {\n function __validateAutomation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.ValidateAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/validate',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __validateAutomation;\n}\n\n/** Validates the automation specified by ID. */\nexport function validateAutomationById(\n payload: object\n): RequestOptionsFactory<any> {\n function __validateAutomationById({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.ValidateAutomationById',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/{automationId}/validate',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __validateAutomationById;\n}\n\n/** Gets the specified automation revision. */\nexport function getAutomationRevision(\n payload: object\n): RequestOptionsFactory<any> {\n function __getAutomationRevision({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'GET' as any,\n methodFqn:\n 'wix.automations.v2.AutomationRevisionsService.GetAutomationRevision',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationRevisionsServiceUrl({\n protoPath: '/v1/automation-revisions/{automationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getAutomationRevision;\n}\n","import * as ambassadorWixAutomationsV2Automation from './automations-v2-automation-automations-v-2.http.js';\nimport * as ambassadorWixAutomationsV2AutomationTypes from './automations-v2-automation-automations-v-2.types.js';\nimport * as ambassadorWixAutomationsV2AutomationUniversalTypes from './automations-v2-automation-automations-v-2.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createAutomation(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsV2AutomationUniversalTypes.CreateAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.CreateAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.CreateAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.CreateAutomationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.createAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/automations',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getAutomation(): __PublicMethodMetaInfo<\n 'GET',\n { automationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.GetAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.GetAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.GetAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.GetAutomationResponse\n> {\n const payload = { automationId: ':automationId' } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.getAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/automations/{automationId}',\n pathParams: { automationId: 'automationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateAutomation(): __PublicMethodMetaInfo<\n 'PATCH',\n { automationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.UpdateAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.UpdateAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.UpdateAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.UpdateAutomationResponse\n> {\n const payload = { automation: { id: ':automationId' } } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.updateAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/automations/{automation.id}',\n pathParams: { automationId: 'automationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteAutomation(): __PublicMethodMetaInfo<\n 'DELETE',\n { automationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.DeleteAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.DeleteAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.DeleteAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.DeleteAutomationResponse\n> {\n const payload = { automationId: ':automationId' } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.deleteAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v2/automations/{automationId}',\n pathParams: { automationId: 'automationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkDeleteAutomations(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsV2AutomationUniversalTypes.BulkDeleteAutomationsRequest,\n ambassadorWixAutomationsV2AutomationTypes.BulkDeleteAutomationsRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.BulkDeleteAutomationsResponse,\n ambassadorWixAutomationsV2AutomationTypes.BulkDeleteAutomationsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.bulkDeleteAutomations(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/bulk/automations/delete',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function generatePreinstalledAutomation(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsV2AutomationUniversalTypes.GeneratePreinstalledAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.GeneratePreinstalledAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.GeneratePreinstalledAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.GeneratePreinstalledAutomationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.generatePreinstalledAutomation(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/preinstalled-automation/generate',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryAutomations(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsV2AutomationUniversalTypes.QueryAutomationsRequest,\n ambassadorWixAutomationsV2AutomationTypes.QueryAutomationsRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.QueryAutomationsResponse,\n ambassadorWixAutomationsV2AutomationTypes.QueryAutomationsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.queryAutomations(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/automations/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function copyAutomation(): __PublicMethodMetaInfo<\n 'POST',\n { automationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.CopyAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.CopyAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.CopyAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.CopyAutomationResponse\n> {\n const payload = { automationId: ':automationId' } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.copyAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/automations/{automationId}/copy',\n pathParams: { automationId: 'automationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createDraftAutomation(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsV2AutomationUniversalTypes.CreateDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.CreateDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.CreateDraftAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.CreateDraftAutomationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.createDraftAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/automations/drafts',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getOrCreateDraftAutomation(): __PublicMethodMetaInfo<\n 'POST',\n { originalAutomationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.GetOrCreateDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.GetOrCreateDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.GetOrCreateDraftAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.GetOrCreateDraftAutomationResponse\n> {\n const payload = { originalAutomationId: ':originalAutomationId' } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.getOrCreateDraftAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/automations/drafts/get-or-create/original-automation-id/{originalAutomationId}',\n pathParams: { originalAutomationId: 'originalAutomationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateDraftAutomation(): __PublicMethodMetaInfo<\n 'PATCH',\n { automationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.UpdateDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.UpdateDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.UpdateDraftAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.UpdateDraftAutomationResponse\n> {\n const payload = { automation: { id: ':automationId' } } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.updateDraftAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/automations/drafts/{automation.id}',\n pathParams: { automationId: 'automationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryAutomationsWithDrafts(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsV2AutomationUniversalTypes.QueryAutomationsWithDraftsRequest,\n ambassadorWixAutomationsV2AutomationTypes.QueryAutomationsWithDraftsRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.QueryAutomationsWithDraftsResponse,\n ambassadorWixAutomationsV2AutomationTypes.QueryAutomationsWithDraftsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.queryAutomationsWithDrafts(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/automations/query-with-drafts',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteDraftAutomation(): __PublicMethodMetaInfo<\n 'DELETE',\n { automationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.DeleteDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.DeleteDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.DeleteDraftAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.DeleteDraftAutomationResponse\n> {\n const payload = { automationId: ':automationId' } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.deleteDraftAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v2/automations/drafts/{automationId}',\n pathParams: { automationId: 'automationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function publishDraftAutomation(): __PublicMethodMetaInfo<\n 'POST',\n { automationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.PublishDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.PublishDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.PublishDraftAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.PublishDraftAutomationResponse\n> {\n const payload = { automationId: ':automationId' } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.publishDraftAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/automations/drafts/{automationId}/publish',\n pathParams: { automationId: 'automationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function validateAutomation(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsV2AutomationUniversalTypes.ValidateAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.ValidateAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.ValidateAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.ValidateAutomationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.validateAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/automations/validate',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function validateAutomationById(): __PublicMethodMetaInfo<\n 'POST',\n { automationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.ValidateAutomationByIdRequest,\n ambassadorWixAutomationsV2AutomationTypes.ValidateAutomationByIdRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.ValidateAutomationByIdResponse,\n ambassadorWixAutomationsV2AutomationTypes.ValidateAutomationByIdResponse\n> {\n const payload = { automationId: ':automationId' } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.validateAutomationById(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/automations/{automationId}/validate',\n pathParams: { automationId: 'automationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getAutomationRevision(): __PublicMethodMetaInfo<\n 'GET',\n { automationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.GetAutomationRevisionRequest,\n ambassadorWixAutomationsV2AutomationTypes.GetAutomationRevisionRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.GetAutomationRevisionResponse,\n ambassadorWixAutomationsV2AutomationTypes.GetAutomationRevisionResponse\n> {\n const payload = { automationId: ':automationId' } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.getAutomationRevision(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/automation-revisions/{automationId}',\n pathParams: { automationId: 'automationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,qDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;A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d;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACiC,mBAAmB,OAAO;AAEjE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,0BAOd;AACA,QAAM,UAAU,EAAE,cAAc,gBAAgB;AAEhD,QAAM,oBACiC,uBAAuB,OAAO;AAErE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,cAAc,eAAe;AAAA,IAC3C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,yBAOd;AACA,QAAM,UAAU,EAAE,cAAc,gBAAgB;AAEhD,QAAM,oBACiC,sBAAsB,OAAO;AAEpE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,cAAc,eAAe;AAAA,IAC3C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","createAutomation","getAutomation","updateAutomation","deleteAutomation","bulkDeleteAutomations","generatePreinstalledAutomation","queryAutomations","copyAutomation","createDraftAutomation","getOrCreateDraftAutomation","updateDraftAutomation","queryAutomationsWithDrafts","deleteDraftAutomation","publishDraftAutomation","validateAutomation","validateAutomationById","getAutomationRevision"]}
1
+ {"version":3,"sources":["../../src/automations-v2-automation-automations-v-2.http.ts","../../src/automations-v2-automation-automations-v-2.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixAutomationsV2AutomationRevisionsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/automations-service',\n destPath: '',\n },\n {\n srcPath: '/_api/automations-service',\n destPath: '/api',\n },\n ],\n 'platform.rise.ai': [\n {\n srcPath: '/v2/automations',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/automations-service',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/automations-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/automations-service',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveWixAutomationsV2AutomationsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/automations-service',\n destPath: '',\n },\n {\n srcPath: '/_api/automations-service',\n destPath: '/api',\n },\n ],\n 'platform.rise.ai': [\n {\n srcPath: '/v2/automations',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/automations-service',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/automations-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/automations-service',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_automations_automations-v-2';\n\n/** Creates an automation. */\nexport function createAutomation(payload: object): RequestOptionsFactory<any> {\n function __createAutomation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.CreateAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createAutomation;\n}\n\n/** Retrieves an automation by ID. */\nexport function getAutomation(payload: object): RequestOptionsFactory<any> {\n function __getAutomation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'GET' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.GetAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/{automationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getAutomation;\n}\n\n/**\n * Updates the specified automation.\n *\n * When an automation is updated, its `revision` property is incremented by 1. When updating an automation, you must specify the current revision number.\n */\nexport function updateAutomation(payload: object): RequestOptionsFactory<any> {\n function __updateAutomation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'PATCH' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.UpdateAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/{automation.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateAutomation;\n}\n\n/** Deletes the specified automation. */\nexport function deleteAutomation(payload: object): RequestOptionsFactory<any> {\n function __deleteAutomation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'DELETE' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.DeleteAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/{automationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteAutomation;\n}\n\n/** Deletes one or more automations. */\nexport function bulkDeleteAutomations(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteAutomations({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.BulkDeleteAutomations',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/bulk/automations/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteAutomations;\n}\n\n/**\n * Generates a preinstalled automation from another automation.\n *\n * Calls the action providers for changes needed to make a preinstalled automation, such as changes made to email template.\n *\n * > **Note**: You must have an account permission to edit an app.\n */\nexport function generatePreinstalledAutomation(\n payload: object\n): RequestOptionsFactory<any> {\n function __generatePreinstalledAutomation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.v2.AutomationsService.GeneratePreinstalledAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/preinstalled-automation/generate',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __generatePreinstalledAutomation;\n}\n\n/**\n * Retrieves a list of automations. This includes both automations overridden on a site and preinstalled automations. If a preinstalled automation has been overridden on the site, the method returns the override automation.\n *\n * > **Note**: The method only returns automations by apps installed on the site.\n *\n * Learn more about [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).\n */\nexport function queryAutomations(payload: object): RequestOptionsFactory<any> {\n function __queryAutomations({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.QueryAutomations',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automations.createdDate' },\n { path: 'automations.updatedDate' },\n { path: 'automations.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryAutomations;\n}\n\n/** Get aggregated info */\nexport function getAggregatedUsageInfo(\n payload: object\n): RequestOptionsFactory<any> {\n function __getAggregatedUsageInfo({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'GET' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.GetAggregatedUsageInfo',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/usage',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n };\n\n return metadata;\n }\n\n return __getAggregatedUsageInfo;\n}\n\n/**\n * Creates a copy of an action with a new ID, and changes the action's input mapping if necessary.\n *\n * The action copy isn't saved automatically. To save it, the user must perform an action\n * such as clicking the **Save** button.\n */\nexport function copyAutomation(payload: object): RequestOptionsFactory<any> {\n function __copyAutomation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.CopyAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/{automationId}/copy',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __copyAutomation;\n}\n\n/** Creates a draft automation. */\nexport function createDraftAutomation(\n payload: object\n): RequestOptionsFactory<any> {\n function __createDraftAutomation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.CreateDraftAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/drafts',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createDraftAutomation;\n}\n\n/**\n * Retrieves the draft of the specified automation. If a draft doesn't exist, the method creates one.\n *\n * > **Note**: If the specified automation is a draft, the method returns it.\n */\nexport function getOrCreateDraftAutomation(\n payload: object\n): RequestOptionsFactory<any> {\n function __getOrCreateDraftAutomation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.v2.AutomationsService.GetOrCreateDraftAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath:\n '/v2/automations/drafts/get-or-create/original-automation-id/{originalAutomationId}',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getOrCreateDraftAutomation;\n}\n\n/** Updates a draft automation. */\nexport function updateDraftAutomation(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateDraftAutomation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'PATCH' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.UpdateDraftAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/drafts/{automation.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateDraftAutomation;\n}\n\n/**\n * Retrieves a list of automations, including drafts. Max query filter depth is 3.\n *\n * Relevant automations for the query are returned. This includes automations created on the site and pre-installed automations.\n * If there's an existing override for a pre-installed automation, the override is returned in the query result.\n * The query only returns automations from apps that are installed on the site.\n *\n * - new drafts that are not related to existing automations will be returned in the list\n * - the response will contain a map of originalAutomationId => relatedDrafts\n *\n * To learn about working with _Query_ endpoints, see\n * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),\n * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),\n * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).\n */\nexport function queryAutomationsWithDrafts(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryAutomationsWithDrafts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.v2.AutomationsService.QueryAutomationsWithDrafts',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/query-with-drafts',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automations.createdDate' },\n { path: 'automations.updatedDate' },\n { path: 'automations.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryAutomationsWithDrafts;\n}\n\n/** Deletes a draft automation. */\nexport function deleteDraftAutomation(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteDraftAutomation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'DELETE' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.DeleteDraftAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/drafts/{automationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteDraftAutomation;\n}\n\n/** Publishes a draft automation. This applies any changes to the live automation. */\nexport function publishDraftAutomation(\n payload: object\n): RequestOptionsFactory<any> {\n function __publishDraftAutomation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.PublishDraftAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/drafts/{automationId}/publish',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __publishDraftAutomation;\n}\n\n/** Validates the specified automation. */\nexport function validateAutomation(\n payload: object\n): RequestOptionsFactory<any> {\n function __validateAutomation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.ValidateAutomation',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/validate',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __validateAutomation;\n}\n\n/** Validates the automation specified by ID. */\nexport function validateAutomationById(\n payload: object\n): RequestOptionsFactory<any> {\n function __validateAutomationById({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'POST' as any,\n methodFqn: 'wix.automations.v2.AutomationsService.ValidateAutomationById',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationsServiceUrl({\n protoPath: '/v2/automations/{automationId}/validate',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __validateAutomationById;\n}\n\n/** Gets the specified automation revision. */\nexport function getAutomationRevision(\n payload: object\n): RequestOptionsFactory<any> {\n function __getAutomationRevision({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.v2.automation',\n method: 'GET' as any,\n methodFqn:\n 'wix.automations.v2.AutomationRevisionsService.GetAutomationRevision',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsV2AutomationRevisionsServiceUrl({\n protoPath: '/v1/automation-revisions/{automationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getAutomationRevision;\n}\n","import * as ambassadorWixAutomationsV2Automation from './automations-v2-automation-automations-v-2.http.js';\nimport * as ambassadorWixAutomationsV2AutomationTypes from './automations-v2-automation-automations-v-2.types.js';\nimport * as ambassadorWixAutomationsV2AutomationUniversalTypes from './automations-v2-automation-automations-v-2.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createAutomation(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsV2AutomationUniversalTypes.CreateAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.CreateAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.CreateAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.CreateAutomationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.createAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/automations',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getAutomation(): __PublicMethodMetaInfo<\n 'GET',\n { automationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.GetAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.GetAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.GetAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.GetAutomationResponse\n> {\n const payload = { automationId: ':automationId' } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.getAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/automations/{automationId}',\n pathParams: { automationId: 'automationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateAutomation(): __PublicMethodMetaInfo<\n 'PATCH',\n { automationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.UpdateAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.UpdateAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.UpdateAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.UpdateAutomationResponse\n> {\n const payload = { automation: { id: ':automationId' } } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.updateAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/automations/{automation.id}',\n pathParams: { automationId: 'automationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteAutomation(): __PublicMethodMetaInfo<\n 'DELETE',\n { automationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.DeleteAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.DeleteAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.DeleteAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.DeleteAutomationResponse\n> {\n const payload = { automationId: ':automationId' } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.deleteAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v2/automations/{automationId}',\n pathParams: { automationId: 'automationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkDeleteAutomations(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsV2AutomationUniversalTypes.BulkDeleteAutomationsRequest,\n ambassadorWixAutomationsV2AutomationTypes.BulkDeleteAutomationsRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.BulkDeleteAutomationsResponse,\n ambassadorWixAutomationsV2AutomationTypes.BulkDeleteAutomationsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.bulkDeleteAutomations(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/bulk/automations/delete',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function generatePreinstalledAutomation(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsV2AutomationUniversalTypes.GeneratePreinstalledAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.GeneratePreinstalledAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.GeneratePreinstalledAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.GeneratePreinstalledAutomationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.generatePreinstalledAutomation(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/preinstalled-automation/generate',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryAutomations(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsV2AutomationUniversalTypes.QueryAutomationsRequest,\n ambassadorWixAutomationsV2AutomationTypes.QueryAutomationsRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.QueryAutomationsResponse,\n ambassadorWixAutomationsV2AutomationTypes.QueryAutomationsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.queryAutomations(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/automations/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getAggregatedUsageInfo(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixAutomationsV2AutomationUniversalTypes.GetAggregatedUsageInfoRequest,\n ambassadorWixAutomationsV2AutomationTypes.GetAggregatedUsageInfoRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.GetAggregatedUsageInfoResponse,\n ambassadorWixAutomationsV2AutomationTypes.GetAggregatedUsageInfoResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.getAggregatedUsageInfo(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/automations/usage',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function copyAutomation(): __PublicMethodMetaInfo<\n 'POST',\n { automationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.CopyAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.CopyAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.CopyAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.CopyAutomationResponse\n> {\n const payload = { automationId: ':automationId' } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.copyAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/automations/{automationId}/copy',\n pathParams: { automationId: 'automationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createDraftAutomation(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsV2AutomationUniversalTypes.CreateDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.CreateDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.CreateDraftAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.CreateDraftAutomationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.createDraftAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/automations/drafts',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getOrCreateDraftAutomation(): __PublicMethodMetaInfo<\n 'POST',\n { originalAutomationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.GetOrCreateDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.GetOrCreateDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.GetOrCreateDraftAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.GetOrCreateDraftAutomationResponse\n> {\n const payload = { originalAutomationId: ':originalAutomationId' } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.getOrCreateDraftAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/automations/drafts/get-or-create/original-automation-id/{originalAutomationId}',\n pathParams: { originalAutomationId: 'originalAutomationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateDraftAutomation(): __PublicMethodMetaInfo<\n 'PATCH',\n { automationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.UpdateDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.UpdateDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.UpdateDraftAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.UpdateDraftAutomationResponse\n> {\n const payload = { automation: { id: ':automationId' } } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.updateDraftAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/automations/drafts/{automation.id}',\n pathParams: { automationId: 'automationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryAutomationsWithDrafts(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsV2AutomationUniversalTypes.QueryAutomationsWithDraftsRequest,\n ambassadorWixAutomationsV2AutomationTypes.QueryAutomationsWithDraftsRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.QueryAutomationsWithDraftsResponse,\n ambassadorWixAutomationsV2AutomationTypes.QueryAutomationsWithDraftsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.queryAutomationsWithDrafts(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/automations/query-with-drafts',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteDraftAutomation(): __PublicMethodMetaInfo<\n 'DELETE',\n { automationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.DeleteDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.DeleteDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.DeleteDraftAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.DeleteDraftAutomationResponse\n> {\n const payload = { automationId: ':automationId' } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.deleteDraftAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v2/automations/drafts/{automationId}',\n pathParams: { automationId: 'automationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function publishDraftAutomation(): __PublicMethodMetaInfo<\n 'POST',\n { automationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.PublishDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.PublishDraftAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.PublishDraftAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.PublishDraftAutomationResponse\n> {\n const payload = { automationId: ':automationId' } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.publishDraftAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/automations/drafts/{automationId}/publish',\n pathParams: { automationId: 'automationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function validateAutomation(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsV2AutomationUniversalTypes.ValidateAutomationRequest,\n ambassadorWixAutomationsV2AutomationTypes.ValidateAutomationRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.ValidateAutomationResponse,\n ambassadorWixAutomationsV2AutomationTypes.ValidateAutomationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.validateAutomation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/automations/validate',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function validateAutomationById(): __PublicMethodMetaInfo<\n 'POST',\n { automationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.ValidateAutomationByIdRequest,\n ambassadorWixAutomationsV2AutomationTypes.ValidateAutomationByIdRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.ValidateAutomationByIdResponse,\n ambassadorWixAutomationsV2AutomationTypes.ValidateAutomationByIdResponse\n> {\n const payload = { automationId: ':automationId' } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.validateAutomationById(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/automations/{automationId}/validate',\n pathParams: { automationId: 'automationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getAutomationRevision(): __PublicMethodMetaInfo<\n 'GET',\n { automationId: string },\n ambassadorWixAutomationsV2AutomationUniversalTypes.GetAutomationRevisionRequest,\n ambassadorWixAutomationsV2AutomationTypes.GetAutomationRevisionRequest,\n ambassadorWixAutomationsV2AutomationUniversalTypes.GetAutomationRevisionResponse,\n ambassadorWixAutomationsV2AutomationTypes.GetAutomationRevisionResponse\n> {\n const payload = { automationId: ':automationId' } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsV2Automation.getAutomationRevision(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/automation-revisions/{automationId}',\n pathParams: { automationId: 'automationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,qDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,SAAS,6CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MAC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AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACiC,mBAAmB,OAAO;AAEjE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,0BAOd;AACA,QAAM,UAAU,EAAE,cAAc,gBAAgB;AAEhD,QAAM,oBACiC,uBAAuB,OAAO;AAErE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,cAAc,eAAe;AAAA,IAC3C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,yBAOd;AACA,QAAM,UAAU,EAAE,cAAc,gBAAgB;AAEhD,QAAM,oBACiC,sBAAsB,OAAO;AAEpE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,cAAc,eAAe;AAAA,IAC3C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","createAutomation","getAutomation","updateAutomation","deleteAutomation","bulkDeleteAutomations","generatePreinstalledAutomation","queryAutomations","getAggregatedUsageInfo","copyAutomation","createDraftAutomation","getOrCreateDraftAutomation","updateDraftAutomation","queryAutomationsWithDrafts","deleteDraftAutomation","publishDraftAutomation","validateAutomation","validateAutomationById","getAutomationRevision"]}
@@ -1198,6 +1198,19 @@ interface Cursors {
1198
1198
  */
1199
1199
  prev?: string | null;
1200
1200
  }
1201
+ interface QueryPreinstalledAutomationsRequest {
1202
+ /**
1203
+ * Query.
1204
+ * Learn more about [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language).
1205
+ */
1206
+ query?: CursorQuery;
1207
+ }
1208
+ interface QueryPreinstalledAutomationsResponse {
1209
+ /** Automations. */
1210
+ automations?: Automation[];
1211
+ /** Paging metadata. */
1212
+ pagingMetadata?: CursorPagingMetadata;
1213
+ }
1201
1214
  interface QueryAutomationsRequest {
1202
1215
  /**
1203
1216
  * Query.
@@ -2431,6 +2444,20 @@ interface AutomationsQueryBuilder {
2431
2444
  /** @documentationMaturity preview */
2432
2445
  find: () => Promise<AutomationsQueryResult>;
2433
2446
  }
2447
+ interface GetAggregatedUsageInfoOptions {
2448
+ /**
2449
+ * Filter in the following format:
2450
+ *
2451
+ * `"filter" :
2452
+ * {
2453
+ * "fieldName1": "value1",
2454
+ * "fieldName2":{"$operator":"value2"}
2455
+ * }`
2456
+ *
2457
+ * Learn more about [filters in API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#filters).
2458
+ */
2459
+ filter?: Record<string, any> | null;
2460
+ }
2434
2461
  interface CopyAutomationOptions {
2435
2462
  /** Origin of the automation to copy. */
2436
2463
  origin?: OriginWithLiterals;
@@ -2536,4 +2563,4 @@ interface GetAutomationRevisionOptions {
2536
2563
  fields?: RequestedFieldsWithLiterals[];
2537
2564
  }
2538
2565
 
2539
- export { type FutureDateActivationOffset as $, type Automation as A, type BulkDeleteAutomationsResponse as B, type CopyAutomationOptions as C, Domain as D, ValidationErrorType as E, ActionErrorType as F, type GeneratePreinstalledAutomationOptions as G, AutomationValidationErrorValidationErrorType as H, AutomationErrorType as I, type AutomationOriginInfoOneOf as J, type ActionSettings as K, Language as L, type Enrichment 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 AuditInfo as X, type AuditInfoIdOneOf as Y, type AutomationConfiguration as Z, type Filter as _, type GeneratePreinstalledAutomationResponse as a, type GeneratePreinstalledAutomationRequest as a$, type RateLimit as a0, type FilterValueSelection as a1, type ConditionExpressionGroup as a2, type Path as a3, type AppDefinedAction as a4, type ConditionAction as a5, type DelayAction as a6, type RateLimitAction as a7, type SetVariablesAction as a8, type OutputAction as a9, type TestUpdateApplicationAutomationResponse as aA, type MessageEnvelope as aB, type IdentificationData as aC, type IdentificationDataIdOneOf as aD, type CodeSnippet as aE, type CodeConditionAction as aF, type CreateAutomationRequest as aG, type CreateAutomationResponse as aH, type GetAutomationRequest as aI, type GetAutomationResponse as aJ, type UpdateAutomationRequest as aK, type UpdateAutomationResponse as aL, type DeleteAutomationRequest as aM, type DeleteAutomationResponse as aN, type BulkDeleteAutomationsRequest as aO, type BulkDeleteResult as aP, type ItemMetadata as aQ, type ApplicationError as aR, type BulkActionMetadata as aS, type CreatePreinstalledAutomationRequest as aT, type PreinstalledAutomationSpecInfo as aU, type OriginAutomationInfo as aV, type CreatePreinstalledAutomationResponse as aW, type UpdatePreinstalledAutomationRequest as aX, type UpdatePreinstalledAutomationResponse as aY, type DeletePreinstalledAutomationRequest as aZ, type DeletePreinstalledAutomationResponse as a_, type SplitAction as aa, type Trigger as ab, type Action as ac, type ActionInfoOneOf as ad, type FilterableAppDefinedActions as ae, type ApplicationOrigin as af, type PreinstalledOrigin as ag, type AutomationSettings as ah, type DraftInfo as ai, type Enrichments as aj, type ExtendedFields as ak, type AutomationMigrationRequest as al, type UpdatedWithPreviousEntity as am, type DeletedWithEntity as an, type DraftPublished as ao, type DomainEvent as ap, type DomainEventBodyOneOf as aq, type EntityCreatedEvent as ar, type RestoreInfo as as, type EntityUpdatedEvent as at, type EntityDeletedEvent as au, type ActionEvent as av, type Empty as aw, type UpdateApplicationAutomationsRequest as ax, type UpdateApplicationAutomationsResponse as ay, type TestUpdateApplicationAutomationRequest as az, type AutomationsQueryBuilder as b, type GetAutomationActionSchemaResponse as b$, type QueryPreinstalledAutomationsForAppRequest as b0, type CursorQuery as b1, type CursorQueryPagingMethodOneOf as b2, type Sorting as b3, type CursorPaging as b4, type QueryPreinstalledAutomationsForAppResponse as b5, type CursorPagingMetadata as b6, type Cursors as b7, type QueryAutomationsRequest as b8, type QueryAutomationsResponse as b9, type OdeditorAssigned as bA, type OdeditorUnassigned as bB, type PicassoAssigned as bC, type PicassoUnassigned as bD, type CreateDraftAutomationRequest as bE, type GetOrCreateDraftAutomationRequest as bF, type UpdateDraftAutomationRequest as bG, type QueryAutomationsWithDraftsRequest as bH, type DraftsInfo as bI, type DeleteDraftAutomationRequest as bJ, type DeleteDraftAutomationResponse as bK, type PublishDraftAutomationRequest as bL, type ValidateAutomationRequest as bM, type ValidationSettings as bN, type TriggerValidationError as bO, type TriggerValidationErrorErrorOneOf as bP, type TriggerConfigurationError as bQ, type ProviderConfigurationError as bR, type ActionValidationInfo as bS, type ActionValidationError as bT, type ActionValidationErrorErrorOneOf as bU, type ActionConfigurationError as bV, type AutomationValidationError as bW, type AutomationValidationErrorErrorOneOf as bX, type AutomationConfigurationError as bY, type ValidateAutomationByIdRequest as bZ, type GetAutomationActionSchemaRequest as b_, type GetAggregatedUsageInfoRequest as ba, type GetAggregatedUsageInfoResponse as bb, type TriggerUsageSummary as bc, type ActionUsageSummary as bd, type CopyAutomationRequest as be, type MetaSiteSpecialEvent as bf, type MetaSiteSpecialEventPayloadOneOf as bg, type Asset as bh, type SiteCreated as bi, type SiteTransferred as bj, type SiteDeleted as bk, type DeleteContext as bl, type SiteUndeleted as bm, type SitePublished as bn, type SiteUnpublished as bo, type SiteMarkedAsTemplate as bp, type SiteMarkedAsWixSite as bq, type ServiceProvisioned as br, type ServiceRemoved as bs, type SiteRenamed as bt, type SiteHardDeleted as bu, type NamespaceChanged as bv, type StudioAssigned as bw, type StudioUnassigned as bx, type SiteUrlChanged as by, type SitePurgedExternally as bz, type CopyAutomationResponse as c, type GetActionsQuotaInfoRequest as c0, type GetActionsQuotaInfoResponse as c1, type ActionProviderQuotaInfo as c2, type ActionQuotaInfo as c3, type QuotaInfo as c4, type Plan as c5, type Quota as c6, type CTA as c7, type AdditionalInfo as c8, type UpgradeCTA as c9, type MigrateVeloActionAutomationsRequest as ca, type MigrateVeloActionAutomationsResponse as cb, type GetAutomationRevisionRequest as cc, type BaseEventMetadata as cd, type EventMetadata as ce, type AutomationsQueryResult as cf, type CreateDraftAutomationOptions as d, type CreateDraftAutomationResponse as e, type GetOrCreateDraftAutomationResponse as f, type UpdateDraftAutomation as g, type UpdateDraftAutomationResponse as h, type QueryAutomationsWithDraftsResponse as i, type ValidateAutomationResponse as j, type ValidateAutomationByIdOptions as k, type ValidateAutomationByIdResponse as l, type GetAutomationRevisionOptions as m, type GetAutomationRevisionResponse as n, type AutomationCreatedEnvelope as o, type AutomationDeletedEnvelope as p, type AutomationUpdatedEnvelope as q, Type as r, Origin as s, SortOrder as t, State as u, SiteCreatedContext as v, DeleteStatus as w, TriggerValidationErrorValidationErrorType as x, TriggerErrorType as y, ValidationErrorSeverity as z };
2566
+ 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 AutomationConfigurationError 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 StudioUnassigned as bA, type SiteUrlChanged as bB, type SitePurgedExternally as bC, type OdeditorAssigned as bD, type OdeditorUnassigned as bE, type PicassoAssigned as bF, type PicassoUnassigned as bG, type CreateDraftAutomationRequest as bH, type GetOrCreateDraftAutomationRequest as bI, type UpdateDraftAutomationRequest as bJ, type QueryAutomationsWithDraftsRequest as bK, type DraftsInfo as bL, type DeleteDraftAutomationRequest as bM, type DeleteDraftAutomationResponse as bN, type PublishDraftAutomationRequest as bO, type ValidateAutomationRequest as bP, type ValidationSettings as bQ, type TriggerValidationError as bR, type TriggerValidationErrorErrorOneOf as bS, type TriggerConfigurationError as bT, type ProviderConfigurationError as bU, type ActionValidationInfo as bV, type ActionValidationError as bW, type ActionValidationErrorErrorOneOf as bX, type ActionConfigurationError as bY, type AutomationValidationError as bZ, type AutomationValidationErrorErrorOneOf as b_, type QueryPreinstalledAutomationsRequest as ba, type QueryPreinstalledAutomationsResponse as bb, type QueryAutomationsRequest as bc, type QueryAutomationsResponse as bd, type GetAggregatedUsageInfoRequest as be, type TriggerUsageSummary as bf, type ActionUsageSummary as bg, type CopyAutomationRequest as bh, type MetaSiteSpecialEvent as bi, type MetaSiteSpecialEventPayloadOneOf as bj, type Asset as bk, type SiteCreated as bl, type SiteTransferred as bm, type SiteDeleted as bn, type DeleteContext as bo, type SiteUndeleted as bp, type SitePublished as bq, type SiteUnpublished as br, type SiteMarkedAsTemplate as bs, type SiteMarkedAsWixSite as bt, type ServiceProvisioned as bu, type ServiceRemoved as bv, type SiteRenamed as bw, type SiteHardDeleted as bx, type NamespaceChanged as by, type StudioAssigned as bz, type GetAggregatedUsageInfoOptions as c, type ValidateAutomationByIdRequest as c0, type GetAutomationActionSchemaRequest as c1, type GetAutomationActionSchemaResponse as c2, type GetActionsQuotaInfoRequest as c3, type GetActionsQuotaInfoResponse as c4, type ActionProviderQuotaInfo as c5, type ActionQuotaInfo as c6, type QuotaInfo as c7, type Plan as c8, type Quota as c9, type CTA as ca, type AdditionalInfo as cb, type UpgradeCTA as cc, type MigrateVeloActionAutomationsRequest as cd, type MigrateVeloActionAutomationsResponse as ce, type GetAutomationRevisionRequest as cf, type BaseEventMetadata as cg, type EventMetadata as ch, type AutomationsQueryResult as ci, 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, b as AutomationsQueryBuilder, C as CopyAutomationOptions, c as CopyAutomationResponse, d as CreateDraftAutomationOptions, e as CreateDraftAutomationResponse, f as GetOrCreateDraftAutomationResponse, g as UpdateDraftAutomation, h as UpdateDraftAutomationResponse, Q as QueryAutomationsWithDraftsOptions, i as QueryAutomationsWithDraftsResponse, P as PublishDraftAutomationResponse, V as ValidateAutomationOptions, j as ValidateAutomationResponse, k as ValidateAutomationByIdOptions, l as ValidateAutomationByIdResponse, m as GetAutomationRevisionOptions, n as GetAutomationRevisionResponse, o as AutomationCreatedEnvelope, p as AutomationDeletedEnvelope, q as AutomationUpdatedEnvelope } from './automations-v2-automation-automations-v-2.universal-CUoGClWF.js';
3
- export { ac as Action, bV as ActionConfigurationError, F as ActionErrorType, av as ActionEvent, ad as ActionInfoOneOf, c2 as ActionProviderQuotaInfo, c3 as ActionQuotaInfo, K as ActionSettings, bd as ActionUsageSummary, bT as ActionValidationError, bU as ActionValidationErrorErrorOneOf, bS as ActionValidationInfo, c8 as AdditionalInfo, a4 as AppDefinedAction, aR as ApplicationError, af as ApplicationOrigin, bh as Asset, X as AuditInfo, Y as AuditInfoIdOneOf, Z as AutomationConfiguration, bY as AutomationConfigurationError, I as AutomationErrorType, al as AutomationMigrationRequest, J as AutomationOriginInfoOneOf, ah as AutomationSettings, bW as AutomationValidationError, bX as AutomationValidationErrorErrorOneOf, H as AutomationValidationErrorValidationErrorType, cf as AutomationsQueryResult, cd as BaseEventMetadata, aS as BulkActionMetadata, aO as BulkDeleteAutomationsRequest, aP as BulkDeleteResult, c7 as CTA, aF as CodeConditionAction, aE as CodeSnippet, a5 as ConditionAction, a2 as ConditionExpressionGroup, be as CopyAutomationRequest, aG as CreateAutomationRequest, aH as CreateAutomationResponse, bE as CreateDraftAutomationRequest, aT as CreatePreinstalledAutomationRequest, aW as CreatePreinstalledAutomationResponse, b4 as CursorPaging, b6 as CursorPagingMetadata, b1 as CursorQuery, b2 as CursorQueryPagingMethodOneOf, b7 as Cursors, a6 as DelayAction, aM as DeleteAutomationRequest, aN as DeleteAutomationResponse, bl as DeleteContext, bJ as DeleteDraftAutomationRequest, bK as DeleteDraftAutomationResponse, aZ as DeletePreinstalledAutomationRequest, a_ as DeletePreinstalledAutomationResponse, w as DeleteStatus, an as DeletedWithEntity, D as Domain, ap as DomainEvent, aq as DomainEventBodyOneOf, ai as DraftInfo, ao as DraftPublished, bI as DraftsInfo, aw as Empty, M as Enrichment, aj as Enrichments, ar as EntityCreatedEvent, au as EntityDeletedEvent, at as EntityUpdatedEvent, ce as EventMetadata, ak as ExtendedFields, _ as Filter, a1 as FilterValueSelection, ae as FilterableAppDefinedActions, $ as FutureDateActivationOffset, a$ as GeneratePreinstalledAutomationRequest, c0 as GetActionsQuotaInfoRequest, c1 as GetActionsQuotaInfoResponse, ba as GetAggregatedUsageInfoRequest, bb as GetAggregatedUsageInfoResponse, b_ as GetAutomationActionSchemaRequest, b$ as GetAutomationActionSchemaResponse, aI as GetAutomationRequest, aJ as GetAutomationResponse, cc as GetAutomationRevisionRequest, bF as GetOrCreateDraftAutomationRequest, aC as IdentificationData, aD as IdentificationDataIdOneOf, aQ as ItemMetadata, L as Language, aB as MessageEnvelope, bf as MetaSiteSpecialEvent, bg as MetaSiteSpecialEventPayloadOneOf, ca as MigrateVeloActionAutomationsRequest, cb as MigrateVeloActionAutomationsResponse, N as Namespace, bv as NamespaceChanged, bA as OdeditorAssigned, bB as OdeditorUnassigned, O as Operator, s as Origin, aV as OriginAutomationInfo, a9 as OutputAction, a3 as Path, bC as PicassoAssigned, bD as PicassoUnassigned, c5 as Plan, aU as PreinstalledAutomationSpecInfo, ag as PreinstalledOrigin, bR as ProviderConfigurationError, bL as PublishDraftAutomationRequest, b8 as QueryAutomationsRequest, b9 as QueryAutomationsResponse, bH as QueryAutomationsWithDraftsRequest, b0 as QueryPreinstalledAutomationsForAppRequest, b5 as QueryPreinstalledAutomationsForAppResponse, c6 as Quota, c4 as QuotaInfo, a0 as RateLimit, a7 as RateLimitAction, R as RequestedFields, as as RestoreInfo, br as ServiceProvisioned, bs as ServiceRemoved, a8 as SetVariablesAction, bi as SiteCreated, v as SiteCreatedContext, bk as SiteDeleted, bu as SiteHardDeleted, bp as SiteMarkedAsTemplate, bq as SiteMarkedAsWixSite, bn as SitePublished, bz as SitePurgedExternally, bt as SiteRenamed, bj as SiteTransferred, bm as SiteUndeleted, bo as SiteUnpublished, by as SiteUrlChanged, t as SortOrder, b3 as Sorting, aa as SplitAction, u as State, S as Status, bw as StudioAssigned, bx as StudioUnassigned, az as TestUpdateApplicationAutomationRequest, aA as TestUpdateApplicationAutomationResponse, T as TimeUnit, ab as Trigger, bQ as TriggerConfigurationError, y as TriggerErrorType, bc as TriggerUsageSummary, bO as TriggerValidationError, bP as TriggerValidationErrorErrorOneOf, x as TriggerValidationErrorValidationErrorType, r as Type, ax as UpdateApplicationAutomationsRequest, ay as UpdateApplicationAutomationsResponse, aK as UpdateAutomationRequest, aL as UpdateAutomationResponse, bG as UpdateDraftAutomationRequest, aX as UpdatePreinstalledAutomationRequest, aY as UpdatePreinstalledAutomationResponse, am as UpdatedWithPreviousEntity, c9 as UpgradeCTA, bZ as ValidateAutomationByIdRequest, bM as ValidateAutomationRequest, z as ValidationErrorSeverity, E as ValidationErrorType, bN as ValidationSettings, W as WebhookIdentityType } from './automations-v2-automation-automations-v-2.universal-CUoGClWF.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-BCyd22mR.js';
3
+ export { ae as Action, bY as ActionConfigurationError, I as ActionErrorType, ax as ActionEvent, af as ActionInfoOneOf, c5 as ActionProviderQuotaInfo, c6 as ActionQuotaInfo, X as ActionSettings, bg as ActionUsageSummary, bW as ActionValidationError, bX as ActionValidationErrorErrorOneOf, bV as ActionValidationInfo, cb as AdditionalInfo, a6 as AppDefinedAction, aT as ApplicationError, ah as ApplicationOrigin, bk as Asset, Z as AuditInfo, _ as AuditInfoIdOneOf, $ as AutomationConfiguration, b$ as AutomationConfigurationError, K as AutomationErrorType, an as AutomationMigrationRequest, M as AutomationOriginInfoOneOf, aj as AutomationSettings, bZ as AutomationValidationError, b_ as AutomationValidationErrorErrorOneOf, J as AutomationValidationErrorValidationErrorType, ci as AutomationsQueryResult, cg as BaseEventMetadata, aU as BulkActionMetadata, aQ as BulkDeleteAutomationsRequest, aR as BulkDeleteResult, ca as CTA, aH as CodeConditionAction, aG as CodeSnippet, a7 as ConditionAction, a4 as ConditionExpressionGroup, bh as CopyAutomationRequest, aI as CreateAutomationRequest, aJ as CreateAutomationResponse, bH 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, bo as DeleteContext, bM as DeleteDraftAutomationRequest, bN 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, bL as DraftsInfo, ay as Empty, Y as Enrichment, al as Enrichments, at as EntityCreatedEvent, aw as EntityDeletedEvent, av as EntityUpdatedEvent, ch as EventMetadata, am as ExtendedFields, a0 as Filter, a3 as FilterValueSelection, ag as FilterableAppDefinedActions, a1 as FutureDateActivationOffset, b1 as GeneratePreinstalledAutomationRequest, c3 as GetActionsQuotaInfoRequest, c4 as GetActionsQuotaInfoResponse, be as GetAggregatedUsageInfoRequest, c1 as GetAutomationActionSchemaRequest, c2 as GetAutomationActionSchemaResponse, aK as GetAutomationRequest, aL as GetAutomationResponse, cf as GetAutomationRevisionRequest, bI as GetOrCreateDraftAutomationRequest, aE as IdentificationData, aF as IdentificationDataIdOneOf, aS as ItemMetadata, L as Language, aD as MessageEnvelope, bi as MetaSiteSpecialEvent, bj as MetaSiteSpecialEventPayloadOneOf, cd as MigrateVeloActionAutomationsRequest, ce as MigrateVeloActionAutomationsResponse, N as Namespace, by as NamespaceChanged, bD as OdeditorAssigned, bE as OdeditorUnassigned, O as Operator, u as Origin, aX as OriginAutomationInfo, ab as OutputAction, a5 as Path, bF as PicassoAssigned, bG as PicassoUnassigned, c8 as Plan, aW as PreinstalledAutomationSpecInfo, ai as PreinstalledOrigin, bU as ProviderConfigurationError, bO as PublishDraftAutomationRequest, bc as QueryAutomationsRequest, bd as QueryAutomationsResponse, bK as QueryAutomationsWithDraftsRequest, b2 as QueryPreinstalledAutomationsForAppRequest, b7 as QueryPreinstalledAutomationsForAppResponse, ba as QueryPreinstalledAutomationsRequest, bb as QueryPreinstalledAutomationsResponse, c9 as Quota, c7 as QuotaInfo, a2 as RateLimit, a9 as RateLimitAction, R as RequestedFields, au as RestoreInfo, bu as ServiceProvisioned, bv as ServiceRemoved, aa as SetVariablesAction, bl as SiteCreated, x as SiteCreatedContext, bn as SiteDeleted, bx as SiteHardDeleted, bs as SiteMarkedAsTemplate, bt as SiteMarkedAsWixSite, bq as SitePublished, bC as SitePurgedExternally, bw as SiteRenamed, bm as SiteTransferred, bp as SiteUndeleted, br as SiteUnpublished, bB as SiteUrlChanged, v as SortOrder, b5 as Sorting, ac as SplitAction, w as State, S as Status, bz as StudioAssigned, bA as StudioUnassigned, aB as TestUpdateApplicationAutomationRequest, aC as TestUpdateApplicationAutomationResponse, T as TimeUnit, ad as Trigger, bT as TriggerConfigurationError, E as TriggerErrorType, bf as TriggerUsageSummary, bR as TriggerValidationError, bS as TriggerValidationErrorErrorOneOf, z as TriggerValidationErrorValidationErrorType, t as Type, az as UpdateApplicationAutomationsRequest, aA as UpdateApplicationAutomationsResponse, aM as UpdateAutomationRequest, aN as UpdateAutomationResponse, bJ as UpdateDraftAutomationRequest, aZ as UpdatePreinstalledAutomationRequest, a_ as UpdatePreinstalledAutomationResponse, ao as UpdatedWithPreviousEntity, cc as UpgradeCTA, c0 as ValidateAutomationByIdRequest, bP as ValidateAutomationRequest, F as ValidationErrorSeverity, H as ValidationErrorType, bQ as ValidationSettings, W as WebhookIdentityType } from './automations-v2-automation-automations-v-2.universal-BCyd22mR.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 };