hostinger-api-sdk 1.27.0 → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.28.0
7
+ * API Version: 1.29.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -25,9 +25,9 @@ exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethods
25
25
  exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsTransferApi = exports.DomainsTransferApiFactory = exports.DomainsTransferApiFp = exports.DomainsTransferApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsMoveApi = exports.DomainsMoveApiFactory = exports.DomainsMoveApiFp = exports.DomainsMoveApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = void 0;
26
26
  exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HostingCacheApi = exports.HostingCacheApiFactory = exports.HostingCacheApiFp = exports.HostingCacheApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.EcommerceProductsApi = void 0;
27
27
  exports.MailWebhooksApiFactory = exports.MailWebhooksApiFp = exports.MailWebhooksApiAxiosParamCreator = exports.ListOrdersV1SortEnum = exports.ListOrdersV1StatusEnum = exports.MailOrdersApi = exports.MailOrdersApiFactory = exports.MailOrdersApiFp = exports.MailOrdersApiAxiosParamCreator = exports.ListMailboxesV1SortEnum = exports.MailMailboxesApi = exports.MailMailboxesApiFactory = exports.MailMailboxesApiFp = exports.MailMailboxesApiAxiosParamCreator = exports.ListOutboundLogsV1StatusEnum = exports.ListMailboxActionLogsV1EventEnum = exports.ListInboundLogsV1StatusEnum = exports.ListActionLogsV1StatusEnum = exports.ListAccessLogsV1ProtocolEnum = exports.ListAccessLogsV1StatusEnum = exports.MailLogsApi = exports.MailLogsApiFactory = exports.MailLogsApiFp = exports.MailLogsApiAxiosParamCreator = exports.MailForwardersApi = exports.MailForwardersApiFactory = exports.MailForwardersApiFp = exports.MailForwardersApiAxiosParamCreator = exports.MailCatchallsApi = exports.MailCatchallsApiFactory = exports.MailCatchallsApiFp = exports.MailCatchallsApiAxiosParamCreator = exports.MailAutorepliesApi = exports.MailAutorepliesApiFactory = exports.MailAutorepliesApiFp = exports.MailAutorepliesApiAxiosParamCreator = exports.MailAliasesApi = exports.MailAliasesApiFactory = exports.MailAliasesApiFp = exports.MailAliasesApiAxiosParamCreator = exports.MailAPITokensApi = exports.MailAPITokensApiFactory = exports.MailAPITokensApiFp = exports.MailAPITokensApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = void 0;
28
- exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListProfileContactsV1SubscriptionStatusEnum = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ReachContactFieldsApi = exports.ReachContactFieldsApiFactory = exports.ReachContactFieldsApiFp = exports.ReachContactFieldsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = exports.MailWebhooksApi = void 0;
29
- exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = void 0;
30
- exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = void 0;
28
+ exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachTagsApi = exports.ReachTagsApiFactory = exports.ReachTagsApiFp = exports.ReachTagsApiAxiosParamCreator = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListProfileContactsV1SubscriptionStatusEnum = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ReachContactFieldsApi = exports.ReachContactFieldsApiFactory = exports.ReachContactFieldsApiFp = exports.ReachContactFieldsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = exports.MailWebhooksApi = void 0;
29
+ exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = void 0;
30
+ exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = void 0;
31
31
  const axios_1 = require("axios");
32
32
  // Some imports not used depending on template conditions
33
33
  // @ts-ignore
@@ -17474,6 +17474,676 @@ class ReachSegmentsApi extends base_1.BaseAPI {
17474
17474
  }
17475
17475
  }
17476
17476
  exports.ReachSegmentsApi = ReachSegmentsApi;
17477
+ /**
17478
+ * ReachTagsApi - axios parameter creator
17479
+ * @export
17480
+ */
17481
+ const ReachTagsApiAxiosParamCreator = function (configuration) {
17482
+ return {
17483
+ /**
17484
+ * Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
17485
+ * @summary Assign a contact to a tag
17486
+ * @param {string} profileUuid Profile uuid parameter
17487
+ * @param {string} tagUuid Tag uuid parameter
17488
+ * @param {string} contactUuid Contact uuid parameter
17489
+ * @param {*} [options] Override http request option.
17490
+ * @throws {RequiredError}
17491
+ */
17492
+ assignAContactToATagV1: (profileUuid_1, tagUuid_1, contactUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, contactUuid_1, ...args_1], void 0, function* (profileUuid, tagUuid, contactUuid, options = {}) {
17493
+ // verify required parameter 'profileUuid' is not null or undefined
17494
+ (0, common_1.assertParamExists)('assignAContactToATagV1', 'profileUuid', profileUuid);
17495
+ // verify required parameter 'tagUuid' is not null or undefined
17496
+ (0, common_1.assertParamExists)('assignAContactToATagV1', 'tagUuid', tagUuid);
17497
+ // verify required parameter 'contactUuid' is not null or undefined
17498
+ (0, common_1.assertParamExists)('assignAContactToATagV1', 'contactUuid', contactUuid);
17499
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid}`
17500
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
17501
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)))
17502
+ .replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
17503
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17504
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17505
+ let baseOptions;
17506
+ if (configuration) {
17507
+ baseOptions = configuration.baseOptions;
17508
+ }
17509
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
17510
+ const localVarHeaderParameter = {};
17511
+ const localVarQueryParameter = {};
17512
+ // authentication apiToken required
17513
+ // http bearer authentication required
17514
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
17515
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
17516
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17517
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17518
+ return {
17519
+ url: (0, common_1.toPathString)(localVarUrlObj),
17520
+ options: localVarRequestOptions,
17521
+ };
17522
+ }),
17523
+ /**
17524
+ * Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
17525
+ * @summary Assign contacts to a tag
17526
+ * @param {string} profileUuid Profile uuid parameter
17527
+ * @param {string} tagUuid Tag uuid parameter
17528
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
17529
+ * @param {*} [options] Override http request option.
17530
+ * @throws {RequiredError}
17531
+ */
17532
+ assignContactsToATagV1: (profileUuid_1, tagUuid_1, reachV1ContactsTagsManageContactsRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, reachV1ContactsTagsManageContactsRequest_1, ...args_1], void 0, function* (profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options = {}) {
17533
+ // verify required parameter 'profileUuid' is not null or undefined
17534
+ (0, common_1.assertParamExists)('assignContactsToATagV1', 'profileUuid', profileUuid);
17535
+ // verify required parameter 'tagUuid' is not null or undefined
17536
+ (0, common_1.assertParamExists)('assignContactsToATagV1', 'tagUuid', tagUuid);
17537
+ // verify required parameter 'reachV1ContactsTagsManageContactsRequest' is not null or undefined
17538
+ (0, common_1.assertParamExists)('assignContactsToATagV1', 'reachV1ContactsTagsManageContactsRequest', reachV1ContactsTagsManageContactsRequest);
17539
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts`
17540
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
17541
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
17542
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17543
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17544
+ let baseOptions;
17545
+ if (configuration) {
17546
+ baseOptions = configuration.baseOptions;
17547
+ }
17548
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
17549
+ const localVarHeaderParameter = {};
17550
+ const localVarQueryParameter = {};
17551
+ // authentication apiToken required
17552
+ // http bearer authentication required
17553
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
17554
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17555
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
17556
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17557
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17558
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsTagsManageContactsRequest, localVarRequestOptions, configuration);
17559
+ return {
17560
+ url: (0, common_1.toPathString)(localVarUrlObj),
17561
+ options: localVarRequestOptions,
17562
+ };
17563
+ }),
17564
+ /**
17565
+ * Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
17566
+ * @summary Create or find tags
17567
+ * @param {string} profileUuid Profile uuid parameter
17568
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
17569
+ * @param {*} [options] Override http request option.
17570
+ * @throws {RequiredError}
17571
+ */
17572
+ createOrFindTagsV1: (profileUuid_1, reachV1ContactsTagsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsTagsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsTagsStoreRequest, options = {}) {
17573
+ // verify required parameter 'profileUuid' is not null or undefined
17574
+ (0, common_1.assertParamExists)('createOrFindTagsV1', 'profileUuid', profileUuid);
17575
+ // verify required parameter 'reachV1ContactsTagsStoreRequest' is not null or undefined
17576
+ (0, common_1.assertParamExists)('createOrFindTagsV1', 'reachV1ContactsTagsStoreRequest', reachV1ContactsTagsStoreRequest);
17577
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags`
17578
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
17579
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17580
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17581
+ let baseOptions;
17582
+ if (configuration) {
17583
+ baseOptions = configuration.baseOptions;
17584
+ }
17585
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
17586
+ const localVarHeaderParameter = {};
17587
+ const localVarQueryParameter = {};
17588
+ // authentication apiToken required
17589
+ // http bearer authentication required
17590
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
17591
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17592
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
17593
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17594
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17595
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsTagsStoreRequest, localVarRequestOptions, configuration);
17596
+ return {
17597
+ url: (0, common_1.toPathString)(localVarUrlObj),
17598
+ options: localVarRequestOptions,
17599
+ };
17600
+ }),
17601
+ /**
17602
+ * Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
17603
+ * @summary Delete a tag
17604
+ * @param {string} profileUuid Profile uuid parameter
17605
+ * @param {string} tagUuid Tag uuid parameter
17606
+ * @param {*} [options] Override http request option.
17607
+ * @throws {RequiredError}
17608
+ */
17609
+ deleteATagV1: (profileUuid_1, tagUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, ...args_1], void 0, function* (profileUuid, tagUuid, options = {}) {
17610
+ // verify required parameter 'profileUuid' is not null or undefined
17611
+ (0, common_1.assertParamExists)('deleteATagV1', 'profileUuid', profileUuid);
17612
+ // verify required parameter 'tagUuid' is not null or undefined
17613
+ (0, common_1.assertParamExists)('deleteATagV1', 'tagUuid', tagUuid);
17614
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}`
17615
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
17616
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
17617
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17618
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17619
+ let baseOptions;
17620
+ if (configuration) {
17621
+ baseOptions = configuration.baseOptions;
17622
+ }
17623
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
17624
+ const localVarHeaderParameter = {};
17625
+ const localVarQueryParameter = {};
17626
+ // authentication apiToken required
17627
+ // http bearer authentication required
17628
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
17629
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
17630
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17631
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17632
+ return {
17633
+ url: (0, common_1.toPathString)(localVarUrlObj),
17634
+ options: localVarRequestOptions,
17635
+ };
17636
+ }),
17637
+ /**
17638
+ * Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
17639
+ * @summary List profile tags
17640
+ * @param {string} profileUuid Profile uuid parameter
17641
+ * @param {*} [options] Override http request option.
17642
+ * @throws {RequiredError}
17643
+ */
17644
+ listProfileTagsV1: (profileUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, ...args_1], void 0, function* (profileUuid, options = {}) {
17645
+ // verify required parameter 'profileUuid' is not null or undefined
17646
+ (0, common_1.assertParamExists)('listProfileTagsV1', 'profileUuid', profileUuid);
17647
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags`
17648
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
17649
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17650
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17651
+ let baseOptions;
17652
+ if (configuration) {
17653
+ baseOptions = configuration.baseOptions;
17654
+ }
17655
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
17656
+ const localVarHeaderParameter = {};
17657
+ const localVarQueryParameter = {};
17658
+ // authentication apiToken required
17659
+ // http bearer authentication required
17660
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
17661
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
17662
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17663
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17664
+ return {
17665
+ url: (0, common_1.toPathString)(localVarUrlObj),
17666
+ options: localVarRequestOptions,
17667
+ };
17668
+ }),
17669
+ /**
17670
+ * Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
17671
+ * @summary Remove a contact from a tag
17672
+ * @param {string} profileUuid Profile uuid parameter
17673
+ * @param {string} tagUuid Tag uuid parameter
17674
+ * @param {string} contactUuid Contact uuid parameter
17675
+ * @param {*} [options] Override http request option.
17676
+ * @throws {RequiredError}
17677
+ */
17678
+ removeAContactFromATagV1: (profileUuid_1, tagUuid_1, contactUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, contactUuid_1, ...args_1], void 0, function* (profileUuid, tagUuid, contactUuid, options = {}) {
17679
+ // verify required parameter 'profileUuid' is not null or undefined
17680
+ (0, common_1.assertParamExists)('removeAContactFromATagV1', 'profileUuid', profileUuid);
17681
+ // verify required parameter 'tagUuid' is not null or undefined
17682
+ (0, common_1.assertParamExists)('removeAContactFromATagV1', 'tagUuid', tagUuid);
17683
+ // verify required parameter 'contactUuid' is not null or undefined
17684
+ (0, common_1.assertParamExists)('removeAContactFromATagV1', 'contactUuid', contactUuid);
17685
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid}`
17686
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
17687
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)))
17688
+ .replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
17689
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17690
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17691
+ let baseOptions;
17692
+ if (configuration) {
17693
+ baseOptions = configuration.baseOptions;
17694
+ }
17695
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
17696
+ const localVarHeaderParameter = {};
17697
+ const localVarQueryParameter = {};
17698
+ // authentication apiToken required
17699
+ // http bearer authentication required
17700
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
17701
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
17702
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17703
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17704
+ return {
17705
+ url: (0, common_1.toPathString)(localVarUrlObj),
17706
+ options: localVarRequestOptions,
17707
+ };
17708
+ }),
17709
+ /**
17710
+ * Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
17711
+ * @summary Remove contacts from a tag
17712
+ * @param {string} profileUuid Profile uuid parameter
17713
+ * @param {string} tagUuid Tag uuid parameter
17714
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
17715
+ * @param {*} [options] Override http request option.
17716
+ * @throws {RequiredError}
17717
+ */
17718
+ removeContactsFromATagV1: (profileUuid_1, tagUuid_1, reachV1ContactsTagsManageContactsRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, reachV1ContactsTagsManageContactsRequest_1, ...args_1], void 0, function* (profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options = {}) {
17719
+ // verify required parameter 'profileUuid' is not null or undefined
17720
+ (0, common_1.assertParamExists)('removeContactsFromATagV1', 'profileUuid', profileUuid);
17721
+ // verify required parameter 'tagUuid' is not null or undefined
17722
+ (0, common_1.assertParamExists)('removeContactsFromATagV1', 'tagUuid', tagUuid);
17723
+ // verify required parameter 'reachV1ContactsTagsManageContactsRequest' is not null or undefined
17724
+ (0, common_1.assertParamExists)('removeContactsFromATagV1', 'reachV1ContactsTagsManageContactsRequest', reachV1ContactsTagsManageContactsRequest);
17725
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts`
17726
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
17727
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
17728
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17729
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17730
+ let baseOptions;
17731
+ if (configuration) {
17732
+ baseOptions = configuration.baseOptions;
17733
+ }
17734
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
17735
+ const localVarHeaderParameter = {};
17736
+ const localVarQueryParameter = {};
17737
+ // authentication apiToken required
17738
+ // http bearer authentication required
17739
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
17740
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17741
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
17742
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17743
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17744
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsTagsManageContactsRequest, localVarRequestOptions, configuration);
17745
+ return {
17746
+ url: (0, common_1.toPathString)(localVarUrlObj),
17747
+ options: localVarRequestOptions,
17748
+ };
17749
+ }),
17750
+ /**
17751
+ * Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
17752
+ * @summary Rename a tag
17753
+ * @param {string} profileUuid Profile uuid parameter
17754
+ * @param {string} tagUuid Tag uuid parameter
17755
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
17756
+ * @param {*} [options] Override http request option.
17757
+ * @throws {RequiredError}
17758
+ */
17759
+ renameATagV1: (profileUuid_1, tagUuid_1, reachV1ContactsTagsUpdateRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, reachV1ContactsTagsUpdateRequest_1, ...args_1], void 0, function* (profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options = {}) {
17760
+ // verify required parameter 'profileUuid' is not null or undefined
17761
+ (0, common_1.assertParamExists)('renameATagV1', 'profileUuid', profileUuid);
17762
+ // verify required parameter 'tagUuid' is not null or undefined
17763
+ (0, common_1.assertParamExists)('renameATagV1', 'tagUuid', tagUuid);
17764
+ // verify required parameter 'reachV1ContactsTagsUpdateRequest' is not null or undefined
17765
+ (0, common_1.assertParamExists)('renameATagV1', 'reachV1ContactsTagsUpdateRequest', reachV1ContactsTagsUpdateRequest);
17766
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}`
17767
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
17768
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
17769
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17770
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17771
+ let baseOptions;
17772
+ if (configuration) {
17773
+ baseOptions = configuration.baseOptions;
17774
+ }
17775
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
17776
+ const localVarHeaderParameter = {};
17777
+ const localVarQueryParameter = {};
17778
+ // authentication apiToken required
17779
+ // http bearer authentication required
17780
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
17781
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17782
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
17783
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17784
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17785
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsTagsUpdateRequest, localVarRequestOptions, configuration);
17786
+ return {
17787
+ url: (0, common_1.toPathString)(localVarUrlObj),
17788
+ options: localVarRequestOptions,
17789
+ };
17790
+ }),
17791
+ };
17792
+ };
17793
+ exports.ReachTagsApiAxiosParamCreator = ReachTagsApiAxiosParamCreator;
17794
+ /**
17795
+ * ReachTagsApi - functional programming interface
17796
+ * @export
17797
+ */
17798
+ const ReachTagsApiFp = function (configuration) {
17799
+ const localVarAxiosParamCreator = (0, exports.ReachTagsApiAxiosParamCreator)(configuration);
17800
+ return {
17801
+ /**
17802
+ * Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
17803
+ * @summary Assign a contact to a tag
17804
+ * @param {string} profileUuid Profile uuid parameter
17805
+ * @param {string} tagUuid Tag uuid parameter
17806
+ * @param {string} contactUuid Contact uuid parameter
17807
+ * @param {*} [options] Override http request option.
17808
+ * @throws {RequiredError}
17809
+ */
17810
+ assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options) {
17811
+ return __awaiter(this, void 0, void 0, function* () {
17812
+ var _a, _b;
17813
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options);
17814
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.assignAContactToATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17815
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17816
+ });
17817
+ },
17818
+ /**
17819
+ * Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
17820
+ * @summary Assign contacts to a tag
17821
+ * @param {string} profileUuid Profile uuid parameter
17822
+ * @param {string} tagUuid Tag uuid parameter
17823
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
17824
+ * @param {*} [options] Override http request option.
17825
+ * @throws {RequiredError}
17826
+ */
17827
+ assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
17828
+ return __awaiter(this, void 0, void 0, function* () {
17829
+ var _a, _b;
17830
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options);
17831
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.assignContactsToATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17832
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17833
+ });
17834
+ },
17835
+ /**
17836
+ * Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
17837
+ * @summary Create or find tags
17838
+ * @param {string} profileUuid Profile uuid parameter
17839
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
17840
+ * @param {*} [options] Override http request option.
17841
+ * @throws {RequiredError}
17842
+ */
17843
+ createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options) {
17844
+ return __awaiter(this, void 0, void 0, function* () {
17845
+ var _a, _b;
17846
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options);
17847
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.createOrFindTagsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17848
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17849
+ });
17850
+ },
17851
+ /**
17852
+ * Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
17853
+ * @summary Delete a tag
17854
+ * @param {string} profileUuid Profile uuid parameter
17855
+ * @param {string} tagUuid Tag uuid parameter
17856
+ * @param {*} [options] Override http request option.
17857
+ * @throws {RequiredError}
17858
+ */
17859
+ deleteATagV1(profileUuid, tagUuid, options) {
17860
+ return __awaiter(this, void 0, void 0, function* () {
17861
+ var _a, _b;
17862
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteATagV1(profileUuid, tagUuid, options);
17863
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.deleteATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17864
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17865
+ });
17866
+ },
17867
+ /**
17868
+ * Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
17869
+ * @summary List profile tags
17870
+ * @param {string} profileUuid Profile uuid parameter
17871
+ * @param {*} [options] Override http request option.
17872
+ * @throws {RequiredError}
17873
+ */
17874
+ listProfileTagsV1(profileUuid, options) {
17875
+ return __awaiter(this, void 0, void 0, function* () {
17876
+ var _a, _b;
17877
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfileTagsV1(profileUuid, options);
17878
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.listProfileTagsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17879
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17880
+ });
17881
+ },
17882
+ /**
17883
+ * Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
17884
+ * @summary Remove a contact from a tag
17885
+ * @param {string} profileUuid Profile uuid parameter
17886
+ * @param {string} tagUuid Tag uuid parameter
17887
+ * @param {string} contactUuid Contact uuid parameter
17888
+ * @param {*} [options] Override http request option.
17889
+ * @throws {RequiredError}
17890
+ */
17891
+ removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options) {
17892
+ return __awaiter(this, void 0, void 0, function* () {
17893
+ var _a, _b;
17894
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options);
17895
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.removeAContactFromATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17896
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17897
+ });
17898
+ },
17899
+ /**
17900
+ * Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
17901
+ * @summary Remove contacts from a tag
17902
+ * @param {string} profileUuid Profile uuid parameter
17903
+ * @param {string} tagUuid Tag uuid parameter
17904
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
17905
+ * @param {*} [options] Override http request option.
17906
+ * @throws {RequiredError}
17907
+ */
17908
+ removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
17909
+ return __awaiter(this, void 0, void 0, function* () {
17910
+ var _a, _b;
17911
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options);
17912
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.removeContactsFromATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17913
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17914
+ });
17915
+ },
17916
+ /**
17917
+ * Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
17918
+ * @summary Rename a tag
17919
+ * @param {string} profileUuid Profile uuid parameter
17920
+ * @param {string} tagUuid Tag uuid parameter
17921
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
17922
+ * @param {*} [options] Override http request option.
17923
+ * @throws {RequiredError}
17924
+ */
17925
+ renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options) {
17926
+ return __awaiter(this, void 0, void 0, function* () {
17927
+ var _a, _b;
17928
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options);
17929
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.renameATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17930
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17931
+ });
17932
+ },
17933
+ };
17934
+ };
17935
+ exports.ReachTagsApiFp = ReachTagsApiFp;
17936
+ /**
17937
+ * ReachTagsApi - factory interface
17938
+ * @export
17939
+ */
17940
+ const ReachTagsApiFactory = function (configuration, basePath, axios) {
17941
+ const localVarFp = (0, exports.ReachTagsApiFp)(configuration);
17942
+ return {
17943
+ /**
17944
+ * Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
17945
+ * @summary Assign a contact to a tag
17946
+ * @param {string} profileUuid Profile uuid parameter
17947
+ * @param {string} tagUuid Tag uuid parameter
17948
+ * @param {string} contactUuid Contact uuid parameter
17949
+ * @param {*} [options] Override http request option.
17950
+ * @throws {RequiredError}
17951
+ */
17952
+ assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options) {
17953
+ return localVarFp.assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(axios, basePath));
17954
+ },
17955
+ /**
17956
+ * Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
17957
+ * @summary Assign contacts to a tag
17958
+ * @param {string} profileUuid Profile uuid parameter
17959
+ * @param {string} tagUuid Tag uuid parameter
17960
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
17961
+ * @param {*} [options] Override http request option.
17962
+ * @throws {RequiredError}
17963
+ */
17964
+ assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
17965
+ return localVarFp.assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(axios, basePath));
17966
+ },
17967
+ /**
17968
+ * Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
17969
+ * @summary Create or find tags
17970
+ * @param {string} profileUuid Profile uuid parameter
17971
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
17972
+ * @param {*} [options] Override http request option.
17973
+ * @throws {RequiredError}
17974
+ */
17975
+ createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options) {
17976
+ return localVarFp.createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options).then((request) => request(axios, basePath));
17977
+ },
17978
+ /**
17979
+ * Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
17980
+ * @summary Delete a tag
17981
+ * @param {string} profileUuid Profile uuid parameter
17982
+ * @param {string} tagUuid Tag uuid parameter
17983
+ * @param {*} [options] Override http request option.
17984
+ * @throws {RequiredError}
17985
+ */
17986
+ deleteATagV1(profileUuid, tagUuid, options) {
17987
+ return localVarFp.deleteATagV1(profileUuid, tagUuid, options).then((request) => request(axios, basePath));
17988
+ },
17989
+ /**
17990
+ * Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
17991
+ * @summary List profile tags
17992
+ * @param {string} profileUuid Profile uuid parameter
17993
+ * @param {*} [options] Override http request option.
17994
+ * @throws {RequiredError}
17995
+ */
17996
+ listProfileTagsV1(profileUuid, options) {
17997
+ return localVarFp.listProfileTagsV1(profileUuid, options).then((request) => request(axios, basePath));
17998
+ },
17999
+ /**
18000
+ * Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
18001
+ * @summary Remove a contact from a tag
18002
+ * @param {string} profileUuid Profile uuid parameter
18003
+ * @param {string} tagUuid Tag uuid parameter
18004
+ * @param {string} contactUuid Contact uuid parameter
18005
+ * @param {*} [options] Override http request option.
18006
+ * @throws {RequiredError}
18007
+ */
18008
+ removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options) {
18009
+ return localVarFp.removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(axios, basePath));
18010
+ },
18011
+ /**
18012
+ * Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
18013
+ * @summary Remove contacts from a tag
18014
+ * @param {string} profileUuid Profile uuid parameter
18015
+ * @param {string} tagUuid Tag uuid parameter
18016
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
18017
+ * @param {*} [options] Override http request option.
18018
+ * @throws {RequiredError}
18019
+ */
18020
+ removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
18021
+ return localVarFp.removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(axios, basePath));
18022
+ },
18023
+ /**
18024
+ * Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
18025
+ * @summary Rename a tag
18026
+ * @param {string} profileUuid Profile uuid parameter
18027
+ * @param {string} tagUuid Tag uuid parameter
18028
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
18029
+ * @param {*} [options] Override http request option.
18030
+ * @throws {RequiredError}
18031
+ */
18032
+ renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options) {
18033
+ return localVarFp.renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options).then((request) => request(axios, basePath));
18034
+ },
18035
+ };
18036
+ };
18037
+ exports.ReachTagsApiFactory = ReachTagsApiFactory;
18038
+ /**
18039
+ * ReachTagsApi - object-oriented interface
18040
+ * @export
18041
+ * @class ReachTagsApi
18042
+ * @extends {BaseAPI}
18043
+ */
18044
+ class ReachTagsApi extends base_1.BaseAPI {
18045
+ /**
18046
+ * Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
18047
+ * @summary Assign a contact to a tag
18048
+ * @param {string} profileUuid Profile uuid parameter
18049
+ * @param {string} tagUuid Tag uuid parameter
18050
+ * @param {string} contactUuid Contact uuid parameter
18051
+ * @param {*} [options] Override http request option.
18052
+ * @throws {RequiredError}
18053
+ * @memberof ReachTagsApi
18054
+ */
18055
+ assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options) {
18056
+ return (0, exports.ReachTagsApiFp)(this.configuration).assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
18057
+ }
18058
+ /**
18059
+ * Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
18060
+ * @summary Assign contacts to a tag
18061
+ * @param {string} profileUuid Profile uuid parameter
18062
+ * @param {string} tagUuid Tag uuid parameter
18063
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
18064
+ * @param {*} [options] Override http request option.
18065
+ * @throws {RequiredError}
18066
+ * @memberof ReachTagsApi
18067
+ */
18068
+ assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
18069
+ return (0, exports.ReachTagsApiFp)(this.configuration).assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(this.axios, this.basePath));
18070
+ }
18071
+ /**
18072
+ * Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
18073
+ * @summary Create or find tags
18074
+ * @param {string} profileUuid Profile uuid parameter
18075
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
18076
+ * @param {*} [options] Override http request option.
18077
+ * @throws {RequiredError}
18078
+ * @memberof ReachTagsApi
18079
+ */
18080
+ createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options) {
18081
+ return (0, exports.ReachTagsApiFp)(this.configuration).createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options).then((request) => request(this.axios, this.basePath));
18082
+ }
18083
+ /**
18084
+ * Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
18085
+ * @summary Delete a tag
18086
+ * @param {string} profileUuid Profile uuid parameter
18087
+ * @param {string} tagUuid Tag uuid parameter
18088
+ * @param {*} [options] Override http request option.
18089
+ * @throws {RequiredError}
18090
+ * @memberof ReachTagsApi
18091
+ */
18092
+ deleteATagV1(profileUuid, tagUuid, options) {
18093
+ return (0, exports.ReachTagsApiFp)(this.configuration).deleteATagV1(profileUuid, tagUuid, options).then((request) => request(this.axios, this.basePath));
18094
+ }
18095
+ /**
18096
+ * Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
18097
+ * @summary List profile tags
18098
+ * @param {string} profileUuid Profile uuid parameter
18099
+ * @param {*} [options] Override http request option.
18100
+ * @throws {RequiredError}
18101
+ * @memberof ReachTagsApi
18102
+ */
18103
+ listProfileTagsV1(profileUuid, options) {
18104
+ return (0, exports.ReachTagsApiFp)(this.configuration).listProfileTagsV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
18105
+ }
18106
+ /**
18107
+ * Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
18108
+ * @summary Remove a contact from a tag
18109
+ * @param {string} profileUuid Profile uuid parameter
18110
+ * @param {string} tagUuid Tag uuid parameter
18111
+ * @param {string} contactUuid Contact uuid parameter
18112
+ * @param {*} [options] Override http request option.
18113
+ * @throws {RequiredError}
18114
+ * @memberof ReachTagsApi
18115
+ */
18116
+ removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options) {
18117
+ return (0, exports.ReachTagsApiFp)(this.configuration).removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
18118
+ }
18119
+ /**
18120
+ * Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
18121
+ * @summary Remove contacts from a tag
18122
+ * @param {string} profileUuid Profile uuid parameter
18123
+ * @param {string} tagUuid Tag uuid parameter
18124
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
18125
+ * @param {*} [options] Override http request option.
18126
+ * @throws {RequiredError}
18127
+ * @memberof ReachTagsApi
18128
+ */
18129
+ removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
18130
+ return (0, exports.ReachTagsApiFp)(this.configuration).removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(this.axios, this.basePath));
18131
+ }
18132
+ /**
18133
+ * Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
18134
+ * @summary Rename a tag
18135
+ * @param {string} profileUuid Profile uuid parameter
18136
+ * @param {string} tagUuid Tag uuid parameter
18137
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
18138
+ * @param {*} [options] Override http request option.
18139
+ * @throws {RequiredError}
18140
+ * @memberof ReachTagsApi
18141
+ */
18142
+ renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options) {
18143
+ return (0, exports.ReachTagsApiFp)(this.configuration).renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
18144
+ }
18145
+ }
18146
+ exports.ReachTagsApi = ReachTagsApi;
17477
18147
  /**
17478
18148
  * VPSActionsApi - axios parameter creator
17479
18149
  * @export