{"version":3,"sources":["../../../src/automations-v1-automations-custom-trigger-custom-trigger.http.ts","../../../src/automations-v1-automations-custom-trigger-custom-trigger.meta.ts"],"sourcesContent":["import { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressCrmAutomationsAutomationsCustomTriggerAutomationsCustomTriggerServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'bo._base_domain_': [\n      {\n        srcPath: '/_serverless/crm-automations-utils',\n        destPath: '',\n      },\n    ],\n    'wixbo.ai': [\n      {\n        srcPath: '/_serverless/crm-automations-utils',\n        destPath: '',\n      },\n    ],\n    'wix-bo.com': [\n      {\n        srcPath: '/_serverless/crm-automations-utils',\n        destPath: '',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_serverless/crm-automations-utils',\n        destPath: '',\n      },\n    ],\n    'dev._base_domain_': [\n      {\n        srcPath: '/_serverless/crm-automations-utils',\n        destPath: '',\n      },\n    ],\n    'platform.rise.ai': [\n      {\n        srcPath: '/_serverless/crm-automations-utils',\n        destPath: '',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_serverless/crm-automations-utils',\n        destPath: '',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_serverless/crm-automations-utils',\n        destPath: '',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_serverless/crm-automations-utils',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/_serverless/crm-automations-utils',\n        destPath: '',\n      },\n    ],\n    'editor.wixapps.net': [\n      {\n        srcPath: '/_serverless/crm-automations-utils',\n        destPath: '',\n      },\n    ],\n    'apps._base_domain_': [\n      {\n        srcPath: '/_serverless/crm-automations-utils',\n        destPath: '',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_serverless/crm-automations-utils',\n        destPath: '',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_serverless/crm-automations-utils',\n        destPath: '',\n      },\n      {\n        srcPath: '/_api/_serverless/crm-automations-utils',\n        destPath: '',\n      },\n    ],\n    'api._api_base_domain_': [\n      {\n        srcPath: '/crm-automations-utils',\n        destPath: '',\n      },\n    ],\n    'payments.base44.com': [\n      {\n        srcPath: '/_serverless/crm-automations-utils',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_automations_custom-trigger';\n\n/** Runs the automation associated with the trigger ID that you pass to it. */\nexport function runTrigger(payload: object): RequestOptionsFactory<any> {\n  function __runTrigger({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.v1.automations_custom_trigger',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.crm.automations.automations_custom_trigger.AutomationsCustomTriggerService.RunTrigger',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressCrmAutomationsAutomationsCustomTriggerAutomationsCustomTriggerServiceUrl(\n        { protoPath: '/v1/trigger-custom', data: payload, host }\n      ),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __runTrigger;\n}\n\nexport function bulkUpdateMainEntityTags(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkUpdateMainEntityTags({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.v1.automations_custom_trigger',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.crm.automations.automations_custom_trigger.AutomationsCustomTriggerService.BulkUpdateMainEntityTags',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressCrmAutomationsAutomationsCustomTriggerAutomationsCustomTriggerServiceUrl(\n        { protoPath: '/v1/bulk-update-main-entity-tags', data: payload, host }\n      ),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __bulkUpdateMainEntityTags;\n}\n\nexport function bulkUpdateMainEntityTagsByFilter(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkUpdateMainEntityTagsByFilter({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.v1.automations_custom_trigger',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.crm.automations.automations_custom_trigger.AutomationsCustomTriggerService.BulkUpdateMainEntityTagsByFilter',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressCrmAutomationsAutomationsCustomTriggerAutomationsCustomTriggerServiceUrl(\n        {\n          protoPath: '/v1/bulk-update-main-entity-tags-by-filter',\n          data: payload,\n          host,\n        }\n      ),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __bulkUpdateMainEntityTagsByFilter;\n}\n","import * as ambassadorWixAutomationsV1AutomationsCustomTrigger from './automations-v1-automations-custom-trigger-custom-trigger.http.js';\nimport * as ambassadorWixAutomationsV1AutomationsCustomTriggerTypes from './automations-v1-automations-custom-trigger-custom-trigger.types.js';\nimport * as ambassadorWixAutomationsV1AutomationsCustomTriggerUniversalTypes from './automations-v1-automations-custom-trigger-custom-trigger.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 runTrigger(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixAutomationsV1AutomationsCustomTriggerUniversalTypes.RunTriggerRequest,\n  ambassadorWixAutomationsV1AutomationsCustomTriggerTypes.RunTriggerRequest,\n  ambassadorWixAutomationsV1AutomationsCustomTriggerUniversalTypes.RunTriggerResponse,\n  ambassadorWixAutomationsV1AutomationsCustomTriggerTypes.RunTriggerResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAutomationsV1AutomationsCustomTrigger.runTrigger(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: '/v1/trigger-custom',\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 bulkUpdateMainEntityTags(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixAutomationsV1AutomationsCustomTriggerUniversalTypes.BulkUpdateMainEntityTagsRequest,\n  ambassadorWixAutomationsV1AutomationsCustomTriggerTypes.BulkUpdateMainEntityTagsRequest,\n  ambassadorWixAutomationsV1AutomationsCustomTriggerUniversalTypes.BulkUpdateMainEntityTagsResponse,\n  ambassadorWixAutomationsV1AutomationsCustomTriggerTypes.BulkUpdateMainEntityTagsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAutomationsV1AutomationsCustomTrigger.bulkUpdateMainEntityTags(\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: '/v1/bulk-update-main-entity-tags',\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 bulkUpdateMainEntityTagsByFilter(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixAutomationsV1AutomationsCustomTriggerUniversalTypes.BulkUpdateMainEntityTagsByFilterRequest,\n  ambassadorWixAutomationsV1AutomationsCustomTriggerTypes.BulkUpdateMainEntityTagsByFilterRequest,\n  ambassadorWixAutomationsV1AutomationsCustomTriggerUniversalTypes.BulkUpdateMainEntityTagsByFilterResponse,\n  ambassadorWixAutomationsV1AutomationsCustomTriggerTypes.BulkUpdateMainEntityTagsByFilterResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAutomationsV1AutomationsCustomTrigger.bulkUpdateMainEntityTagsByFilter(\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: '/v1/bulk-update-main-entity-tags-by-filter',\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 {\n  MainEntity as MainEntityOriginal,\n  Tags as TagsOriginal,\n  TagList as TagListOriginal,\n  RunTriggerRequest as RunTriggerRequestOriginal,\n  RunTriggerResponse as RunTriggerResponseOriginal,\n  BulkUpdateMainEntityTagsRequest as BulkUpdateMainEntityTagsRequestOriginal,\n  BulkUpdateMainEntityTagsResponse as BulkUpdateMainEntityTagsResponseOriginal,\n  BulkUpdateMainEntityTagsByFilterRequest as BulkUpdateMainEntityTagsByFilterRequestOriginal,\n  BulkUpdateMainEntityTagsByFilterResponse as BulkUpdateMainEntityTagsByFilterResponseOriginal,\n} from './automations-v1-automations-custom-trigger-custom-trigger.types.js';\n"],"mappings":";AAAA,SAAS,kBAAkB;AAI3B,SAAS,2FACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA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