hostinger-api-sdk 1.25.0 → 1.27.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.
Files changed (51) hide show
  1. package/README.md +2 -2
  2. package/api.ts +6549 -4800
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +1357 -138
  7. package/dist/api.js +1143 -144
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +1357 -138
  15. package/dist/esm/api.js +1130 -136
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/DomainsPortfolioApi.md +56 -0
  27. package/docs/DomainsTransferApi.md +56 -0
  28. package/docs/DomainsV1PortfolioClaimRequest.md +24 -0
  29. package/docs/{DomainsV1PortfolioPurchaseRequestDomainContacts.md → DomainsV1PortfolioClaimRequestDomainContacts.md} +3 -3
  30. package/docs/DomainsV1PortfolioClaimResource.md +24 -0
  31. package/docs/DomainsV1PortfolioPurchaseRequest.md +1 -1
  32. package/docs/DomainsV1TransferClaimRequest.md +26 -0
  33. package/docs/ReachContactFieldsApi.md +239 -0
  34. package/docs/ReachContactsApi.md +308 -4
  35. package/docs/ReachListProfileContactsV1200Response.md +22 -0
  36. package/docs/ReachV1ContactsBulkStoreRequest.md +25 -0
  37. package/docs/ReachV1ContactsBulkStoreRequestContactsInner.md +26 -0
  38. package/docs/ReachV1ContactsContactDetailsResource.md +46 -0
  39. package/docs/ReachV1ContactsFieldsContactFieldOptionResource.md +24 -0
  40. package/docs/ReachV1ContactsFieldsContactFieldResource.md +30 -0
  41. package/docs/ReachV1ContactsFieldsContactFieldValueResource.md +33 -0
  42. package/docs/ReachV1ContactsFieldsStoreRequest.md +25 -0
  43. package/docs/ReachV1ContactsFieldsUpdateRequest.md +23 -0
  44. package/docs/ReachV1ContactsFieldsUpdateRequestOptionsInner.md +22 -0
  45. package/docs/ReachV1ContactsProfileContactResource.md +38 -0
  46. package/docs/ReachV1ContactsProfileContactUpdateResource.md +34 -0
  47. package/docs/ReachV1ContactsTagsTagResource.md +26 -0
  48. package/docs/ReachV1ContactsUpdateRequest.md +33 -0
  49. package/docs/ReachV1ContactsUpdateRequestFieldsInner.md +24 -0
  50. package/index.ts +1 -1
  51. package/package.json +1 -1
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.26.0
7
+ * API Version: 1.28.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
@@ -19,14 +19,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
19
19
  });
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.MailV1SchemaUpdateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaEventsEnum = exports.MailV1SchemaCreateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaCreateWebhookRequestSchemaEventsEnum = exports.MailV1OrdersOrderResourceStatusEnum = exports.MailV1MailboxesMailboxResourceStatusEnum = exports.MailV1LogsMailboxActionsMailboxActionLogResourceEventEnum = exports.MailV1LogsActionActionLogResourceResponseStatusEnum = exports.MailV1ApiTokensApiTokenResourceTypeEnum = exports.MailV1ApiTokensApiTokenCreatedResourceTypeEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsVulnerabilityResourceSeverityEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1WHOISChangeUpdateRequestChangeForEnum = exports.DomainsV1MoveMoveResourceStatusEnum = exports.DomainsV1IRTPVerificationResourceStatusEnum = exports.DomainsV1ForwardingUpdateRequestRedirectTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = exports.AgencyHostingV1WebsitesWebsiteResourceStateEnum = exports.AgencyHostingV1WebsitesWebsiteProcessResourceStatusEnum = exports.AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = exports.AgencyHostingV1SetupsCreateSetupRequestTypeEnum = void 0;
23
- exports.AgencyHostingDatacentersApiFactory = exports.AgencyHostingDatacentersApiFp = exports.AgencyHostingDatacentersApiAxiosParamCreator = exports.AgencyHostingDatabasesApi = exports.AgencyHostingDatabasesApiFactory = exports.AgencyHostingDatabasesApiFp = exports.AgencyHostingDatabasesApiAxiosParamCreator = exports.AgencyHostingCronJobsApi = exports.AgencyHostingCronJobsApiFactory = exports.AgencyHostingCronJobsApiFp = exports.AgencyHostingCronJobsApiAxiosParamCreator = exports.AgencyHostingCacheApi = exports.AgencyHostingCacheApiFactory = exports.AgencyHostingCacheApiFp = exports.AgencyHostingCacheApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.MailV1WebhooksWebhookSecretResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceEventsEnum = exports.MailV1WebhooksWebhookResourceStatusEnum = exports.MailV1WebhooksWebhookResourceEventsEnum = exports.MailV1WebhooksWebhookCreatedResourceStatusEnum = exports.MailV1WebhooksWebhookCreatedResourceEventsEnum = void 0;
24
- exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.AgencyHostingWordPressApi = exports.AgencyHostingWordPressApiFactory = exports.AgencyHostingWordPressApiFp = exports.AgencyHostingWordPressApiAxiosParamCreator = exports.AgencyHostingWebsitesApi = exports.AgencyHostingWebsitesApiFactory = exports.AgencyHostingWebsitesApiFp = exports.AgencyHostingWebsitesApiAxiosParamCreator = exports.AgencyHostingWebsiteSetupsApi = exports.AgencyHostingWebsiteSetupsApiFactory = exports.AgencyHostingWebsiteSetupsApiFp = exports.AgencyHostingWebsiteSetupsApiAxiosParamCreator = exports.AgencyHostingOrdersApi = exports.AgencyHostingOrdersApiFactory = exports.AgencyHostingOrdersApiFp = exports.AgencyHostingOrdersApiAxiosParamCreator = exports.AgencyHostingFilesApi = exports.AgencyHostingFilesApiFactory = exports.AgencyHostingFilesApiFp = exports.AgencyHostingFilesApiAxiosParamCreator = exports.AgencyHostingDomainsApi = exports.AgencyHostingDomainsApiFactory = exports.AgencyHostingDomainsApiFp = exports.AgencyHostingDomainsApiAxiosParamCreator = exports.AgencyHostingDatacentersApi = void 0;
25
- exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.EcommerceProductsApi = 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 = void 0;
26
- exports.MailAliasesApiAxiosParamCreator = exports.MailAPITokensApi = exports.MailAPITokensApiFactory = exports.MailAPITokensApiFp = exports.MailAPITokensApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = 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 = void 0;
27
- exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = exports.MailWebhooksApi = 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 = void 0;
28
- 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 = 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 = void 0;
29
- exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = 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 = void 0;
22
+ exports.MailV1SchemaUpdateWebhookRequestSchemaEventsEnum = exports.MailV1SchemaCreateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaCreateWebhookRequestSchemaEventsEnum = exports.MailV1OrdersOrderResourceStatusEnum = exports.MailV1MailboxesMailboxResourceStatusEnum = exports.MailV1LogsMailboxActionsMailboxActionLogResourceEventEnum = exports.MailV1LogsActionActionLogResourceResponseStatusEnum = exports.MailV1ApiTokensApiTokenResourceTypeEnum = exports.MailV1ApiTokensApiTokenCreatedResourceTypeEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsVulnerabilityResourceSeverityEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1WHOISChangeUpdateRequestChangeForEnum = exports.DomainsV1PortfolioClaimResourceStatusEnum = exports.DomainsV1MoveMoveResourceStatusEnum = exports.DomainsV1IRTPVerificationResourceStatusEnum = exports.DomainsV1ForwardingUpdateRequestRedirectTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = exports.AgencyHostingV1WebsitesWebsiteResourceStateEnum = exports.AgencyHostingV1WebsitesWebsiteProcessResourceStatusEnum = exports.AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = exports.AgencyHostingV1SetupsCreateSetupRequestTypeEnum = void 0;
23
+ exports.AgencyHostingCacheApi = exports.AgencyHostingCacheApiFactory = exports.AgencyHostingCacheApiFp = exports.AgencyHostingCacheApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsUpdateRequestSubscriptionStatusEnum = exports.ReachV1ContactsTagsTagResourceTypeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = exports.ReachV1ContactsProfileContactResourceSourceEnum = exports.ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsFieldsStoreRequestTypeEnum = exports.ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = exports.ReachV1ContactsFieldsContactFieldResourceTypeEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactDetailsResourceSourceEnum = exports.ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = exports.MailV1WebhooksWebhookSecretResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceEventsEnum = exports.MailV1WebhooksWebhookResourceStatusEnum = exports.MailV1WebhooksWebhookResourceEventsEnum = exports.MailV1WebhooksWebhookCreatedResourceStatusEnum = exports.MailV1WebhooksWebhookCreatedResourceEventsEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaStatusEnum = void 0;
24
+ exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.AgencyHostingWordPressApi = exports.AgencyHostingWordPressApiFactory = exports.AgencyHostingWordPressApiFp = exports.AgencyHostingWordPressApiAxiosParamCreator = exports.AgencyHostingWebsitesApi = exports.AgencyHostingWebsitesApiFactory = exports.AgencyHostingWebsitesApiFp = exports.AgencyHostingWebsitesApiAxiosParamCreator = exports.AgencyHostingWebsiteSetupsApi = exports.AgencyHostingWebsiteSetupsApiFactory = exports.AgencyHostingWebsiteSetupsApiFp = exports.AgencyHostingWebsiteSetupsApiAxiosParamCreator = exports.AgencyHostingOrdersApi = exports.AgencyHostingOrdersApiFactory = exports.AgencyHostingOrdersApiFp = exports.AgencyHostingOrdersApiAxiosParamCreator = exports.AgencyHostingFilesApi = exports.AgencyHostingFilesApiFactory = exports.AgencyHostingFilesApiFp = exports.AgencyHostingFilesApiAxiosParamCreator = exports.AgencyHostingDomainsApi = exports.AgencyHostingDomainsApiFactory = exports.AgencyHostingDomainsApiFp = exports.AgencyHostingDomainsApiAxiosParamCreator = exports.AgencyHostingDatacentersApi = exports.AgencyHostingDatacentersApiFactory = exports.AgencyHostingDatacentersApiFp = exports.AgencyHostingDatacentersApiAxiosParamCreator = exports.AgencyHostingDatabasesApi = exports.AgencyHostingDatabasesApiFactory = exports.AgencyHostingDatabasesApiFp = exports.AgencyHostingDatabasesApiAxiosParamCreator = exports.AgencyHostingCronJobsApi = exports.AgencyHostingCronJobsApiFactory = exports.AgencyHostingCronJobsApiFp = exports.AgencyHostingCronJobsApiAxiosParamCreator = void 0;
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
+ 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
+ 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;
30
31
  const axios_1 = require("axios");
31
32
  // Some imports not used depending on template conditions
32
33
  // @ts-ignore
@@ -167,6 +168,16 @@ exports.DomainsV1MoveMoveResourceStatusEnum = {
167
168
  Activating: 'activating',
168
169
  Completed: 'completed'
169
170
  };
171
+ exports.DomainsV1PortfolioClaimResourceStatusEnum = {
172
+ Active: 'active',
173
+ PendingSetup: 'pending_setup',
174
+ Expired: 'expired',
175
+ Requested: 'requested',
176
+ PendingVerification: 'pending_verification',
177
+ Deleted: 'deleted',
178
+ Suspended: 'suspended',
179
+ Failed: 'failed'
180
+ };
170
181
  exports.DomainsV1WHOISChangeUpdateRequestChangeForEnum = {
171
182
  Owner: 'owner',
172
183
  Admin: 'admin',
@@ -349,23 +360,92 @@ exports.MailV1WebhooksWebhookSecretResourceStatusEnum = {
349
360
  Disabled: 'disabled',
350
361
  Paused: 'paused'
351
362
  };
363
+ exports.ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = {
364
+ Subscribed: 'subscribed',
365
+ Unsubscribed: 'unsubscribed',
366
+ Confirmed: 'confirmed',
367
+ Pending: 'pending'
368
+ };
369
+ exports.ReachV1ContactsContactDetailsResourceSourceEnum = {
370
+ Sync: 'sync',
371
+ Import: 'import',
372
+ Manual: 'manual',
373
+ Api: 'api',
374
+ Form: 'form',
375
+ Checkout: 'checkout',
376
+ Horizons: 'horizons'
377
+ };
352
378
  exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = {
353
379
  Subscribed: 'subscribed',
354
- Unsubscribed: 'unsubscribed'
380
+ Unsubscribed: 'unsubscribed',
381
+ Confirmed: 'confirmed',
382
+ Pending: 'pending'
355
383
  };
356
384
  exports.ReachV1ContactsContactResourceSourceEnum = {
357
385
  Sync: 'sync',
358
386
  Import: 'import',
359
- Manual: 'manual'
387
+ Manual: 'manual',
388
+ Api: 'api',
389
+ Form: 'form',
390
+ Checkout: 'checkout',
391
+ Horizons: 'horizons'
392
+ };
393
+ exports.ReachV1ContactsFieldsContactFieldResourceTypeEnum = {
394
+ Text: 'text',
395
+ Number: 'number',
396
+ Date: 'date',
397
+ SingleChoice: 'single_choice',
398
+ MultiChoice: 'multi_choice'
399
+ };
400
+ exports.ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = {
401
+ Text: 'text',
402
+ Number: 'number',
403
+ Date: 'date',
404
+ SingleChoice: 'single_choice',
405
+ MultiChoice: 'multi_choice'
406
+ };
407
+ exports.ReachV1ContactsFieldsStoreRequestTypeEnum = {
408
+ Text: 'text',
409
+ Number: 'number',
410
+ Date: 'date',
411
+ SingleChoice: 'single_choice',
412
+ MultiChoice: 'multi_choice'
413
+ };
414
+ exports.ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = {
415
+ Subscribed: 'subscribed',
416
+ Unsubscribed: 'unsubscribed',
417
+ Confirmed: 'confirmed',
418
+ Pending: 'pending'
419
+ };
420
+ exports.ReachV1ContactsProfileContactResourceSourceEnum = {
421
+ Sync: 'sync',
422
+ Import: 'import',
423
+ Manual: 'manual',
424
+ Api: 'api',
425
+ Form: 'form',
426
+ Checkout: 'checkout',
427
+ Horizons: 'horizons'
428
+ };
429
+ exports.ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = {
430
+ Subscribed: 'subscribed',
431
+ Unsubscribed: 'unsubscribed',
432
+ Confirmed: 'confirmed',
433
+ Pending: 'pending'
360
434
  };
361
435
  exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = {
362
436
  Subscribed: 'subscribed',
363
- Unsubscribed: 'unsubscribed'
437
+ Unsubscribed: 'unsubscribed',
438
+ Confirmed: 'confirmed',
439
+ Pending: 'pending'
364
440
  };
365
441
  exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = {
366
442
  Sync: 'sync',
367
443
  Import: 'import',
368
- Manual: 'manual'
444
+ Manual: 'manual',
445
+ Api: 'api',
446
+ Form: 'form',
447
+ Checkout: 'checkout',
448
+ Horizons: 'horizons'
369
449
  };
370
450
  exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = {
371
451
  And: 'AND',
@@ -419,6 +499,16 @@ exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = {
419
499
  Tag: 'tag',
420
500
  Campaigns: 'campaigns'
421
501
  };
502
+ exports.ReachV1ContactsTagsTagResourceTypeEnum = {
503
+ Form: 'form',
504
+ Custom: 'custom'
505
+ };
506
+ exports.ReachV1ContactsUpdateRequestSubscriptionStatusEnum = {
507
+ Subscribed: 'subscribed',
508
+ Unsubscribed: 'unsubscribed',
509
+ Confirmed: 'confirmed',
510
+ Pending: 'pending'
511
+ };
422
512
  exports.VPSV1ActionActionResourceStateEnum = {
423
513
  Success: 'success',
424
514
  Error: 'error',
@@ -5396,6 +5486,39 @@ exports.DomainsMoveApi = DomainsMoveApi;
5396
5486
  */
5397
5487
  const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
5398
5488
  return {
5489
+ /**
5490
+ * Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
5491
+ * @summary Claim free domain
5492
+ * @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
5493
+ * @param {*} [options] Override http request option.
5494
+ * @throws {RequiredError}
5495
+ */
5496
+ claimFreeDomainV1: (domainsV1PortfolioClaimRequest_1, ...args_1) => __awaiter(this, [domainsV1PortfolioClaimRequest_1, ...args_1], void 0, function* (domainsV1PortfolioClaimRequest, options = {}) {
5497
+ // verify required parameter 'domainsV1PortfolioClaimRequest' is not null or undefined
5498
+ (0, common_1.assertParamExists)('claimFreeDomainV1', 'domainsV1PortfolioClaimRequest', domainsV1PortfolioClaimRequest);
5499
+ const localVarPath = `/api/domains/v1/portfolio/claim`;
5500
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5501
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5502
+ let baseOptions;
5503
+ if (configuration) {
5504
+ baseOptions = configuration.baseOptions;
5505
+ }
5506
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5507
+ const localVarHeaderParameter = {};
5508
+ const localVarQueryParameter = {};
5509
+ // authentication apiToken required
5510
+ // http bearer authentication required
5511
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5512
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5513
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5514
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5515
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5516
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainsV1PortfolioClaimRequest, localVarRequestOptions, configuration);
5517
+ return {
5518
+ url: (0, common_1.toPathString)(localVarUrlObj),
5519
+ options: localVarRequestOptions,
5520
+ };
5521
+ }),
5399
5522
  /**
5400
5523
  * Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
5401
5524
  * @summary Disable domain lock
@@ -5728,6 +5851,21 @@ exports.DomainsPortfolioApiAxiosParamCreator = DomainsPortfolioApiAxiosParamCrea
5728
5851
  const DomainsPortfolioApiFp = function (configuration) {
5729
5852
  const localVarAxiosParamCreator = (0, exports.DomainsPortfolioApiAxiosParamCreator)(configuration);
5730
5853
  return {
5854
+ /**
5855
+ * Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
5856
+ * @summary Claim free domain
5857
+ * @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
5858
+ * @param {*} [options] Override http request option.
5859
+ * @throws {RequiredError}
5860
+ */
5861
+ claimFreeDomainV1(domainsV1PortfolioClaimRequest, options) {
5862
+ return __awaiter(this, void 0, void 0, function* () {
5863
+ var _a, _b;
5864
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.claimFreeDomainV1(domainsV1PortfolioClaimRequest, options);
5865
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.claimFreeDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5866
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5867
+ });
5868
+ },
5731
5869
  /**
5732
5870
  * Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
5733
5871
  * @summary Disable domain lock
@@ -5888,6 +6026,16 @@ exports.DomainsPortfolioApiFp = DomainsPortfolioApiFp;
5888
6026
  const DomainsPortfolioApiFactory = function (configuration, basePath, axios) {
5889
6027
  const localVarFp = (0, exports.DomainsPortfolioApiFp)(configuration);
5890
6028
  return {
6029
+ /**
6030
+ * Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
6031
+ * @summary Claim free domain
6032
+ * @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
6033
+ * @param {*} [options] Override http request option.
6034
+ * @throws {RequiredError}
6035
+ */
6036
+ claimFreeDomainV1(domainsV1PortfolioClaimRequest, options) {
6037
+ return localVarFp.claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(axios, basePath));
6038
+ },
5891
6039
  /**
5892
6040
  * Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
5893
6041
  * @summary Disable domain lock
@@ -5998,6 +6146,17 @@ exports.DomainsPortfolioApiFactory = DomainsPortfolioApiFactory;
5998
6146
  * @extends {BaseAPI}
5999
6147
  */
6000
6148
  class DomainsPortfolioApi extends base_1.BaseAPI {
6149
+ /**
6150
+ * Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
6151
+ * @summary Claim free domain
6152
+ * @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
6153
+ * @param {*} [options] Override http request option.
6154
+ * @throws {RequiredError}
6155
+ * @memberof DomainsPortfolioApi
6156
+ */
6157
+ claimFreeDomainV1(domainsV1PortfolioClaimRequest, options) {
6158
+ return (0, exports.DomainsPortfolioApiFp)(this.configuration).claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(this.axios, this.basePath));
6159
+ }
6001
6160
  /**
6002
6161
  * Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
6003
6162
  * @summary Disable domain lock
@@ -6116,6 +6275,39 @@ exports.DomainsPortfolioApi = DomainsPortfolioApi;
6116
6275
  */
6117
6276
  const DomainsTransferApiAxiosParamCreator = function (configuration) {
6118
6277
  return {
6278
+ /**
6279
+ * Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
6280
+ * @summary Claim free domain transfer
6281
+ * @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
6282
+ * @param {*} [options] Override http request option.
6283
+ * @throws {RequiredError}
6284
+ */
6285
+ claimFreeDomainTransferV1: (domainsV1TransferClaimRequest_1, ...args_1) => __awaiter(this, [domainsV1TransferClaimRequest_1, ...args_1], void 0, function* (domainsV1TransferClaimRequest, options = {}) {
6286
+ // verify required parameter 'domainsV1TransferClaimRequest' is not null or undefined
6287
+ (0, common_1.assertParamExists)('claimFreeDomainTransferV1', 'domainsV1TransferClaimRequest', domainsV1TransferClaimRequest);
6288
+ const localVarPath = `/api/domains/v1/transfers/claim`;
6289
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6290
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6291
+ let baseOptions;
6292
+ if (configuration) {
6293
+ baseOptions = configuration.baseOptions;
6294
+ }
6295
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6296
+ const localVarHeaderParameter = {};
6297
+ const localVarQueryParameter = {};
6298
+ // authentication apiToken required
6299
+ // http bearer authentication required
6300
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6301
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6302
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6303
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6304
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6305
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainsV1TransferClaimRequest, localVarRequestOptions, configuration);
6306
+ return {
6307
+ url: (0, common_1.toPathString)(localVarUrlObj),
6308
+ options: localVarRequestOptions,
6309
+ };
6310
+ }),
6119
6311
  /**
6120
6312
  * Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
6121
6313
  * @summary Get transfer list
@@ -6186,6 +6378,21 @@ exports.DomainsTransferApiAxiosParamCreator = DomainsTransferApiAxiosParamCreato
6186
6378
  const DomainsTransferApiFp = function (configuration) {
6187
6379
  const localVarAxiosParamCreator = (0, exports.DomainsTransferApiAxiosParamCreator)(configuration);
6188
6380
  return {
6381
+ /**
6382
+ * Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
6383
+ * @summary Claim free domain transfer
6384
+ * @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
6385
+ * @param {*} [options] Override http request option.
6386
+ * @throws {RequiredError}
6387
+ */
6388
+ claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options) {
6389
+ return __awaiter(this, void 0, void 0, function* () {
6390
+ var _a, _b;
6391
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options);
6392
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsTransferApi.claimFreeDomainTransferV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6393
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6394
+ });
6395
+ },
6189
6396
  /**
6190
6397
  * Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
6191
6398
  * @summary Get transfer list
@@ -6225,6 +6432,16 @@ exports.DomainsTransferApiFp = DomainsTransferApiFp;
6225
6432
  const DomainsTransferApiFactory = function (configuration, basePath, axios) {
6226
6433
  const localVarFp = (0, exports.DomainsTransferApiFp)(configuration);
6227
6434
  return {
6435
+ /**
6436
+ * Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
6437
+ * @summary Claim free domain transfer
6438
+ * @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
6439
+ * @param {*} [options] Override http request option.
6440
+ * @throws {RequiredError}
6441
+ */
6442
+ claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options) {
6443
+ return localVarFp.claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options).then((request) => request(axios, basePath));
6444
+ },
6228
6445
  /**
6229
6446
  * Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
6230
6447
  * @summary Get transfer list
@@ -6254,6 +6471,17 @@ exports.DomainsTransferApiFactory = DomainsTransferApiFactory;
6254
6471
  * @extends {BaseAPI}
6255
6472
  */
6256
6473
  class DomainsTransferApi extends base_1.BaseAPI {
6474
+ /**
6475
+ * Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
6476
+ * @summary Claim free domain transfer
6477
+ * @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
6478
+ * @param {*} [options] Override http request option.
6479
+ * @throws {RequiredError}
6480
+ * @memberof DomainsTransferApi
6481
+ */
6482
+ claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options) {
6483
+ return (0, exports.DomainsTransferApiFp)(this.configuration).claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options).then((request) => request(this.axios, this.basePath));
6484
+ }
6257
6485
  /**
6258
6486
  * Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
6259
6487
  * @summary Get transfer list
@@ -15493,59 +15721,25 @@ exports.ListWebhooksV1StatusEnum = {
15493
15721
  Paused: 'paused'
15494
15722
  };
15495
15723
  /**
15496
- * ReachContactsApi - axios parameter creator
15724
+ * ReachContactFieldsApi - axios parameter creator
15497
15725
  * @export
15498
15726
  */
15499
- const ReachContactsApiAxiosParamCreator = function (configuration) {
15727
+ const ReachContactFieldsApiAxiosParamCreator = function (configuration) {
15500
15728
  return {
15501
15729
  /**
15502
- * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
15503
- * @summary Create a new contact
15504
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
15505
- * @param {*} [options] Override http request option.
15506
- * @deprecated
15507
- * @throws {RequiredError}
15508
- */
15509
- createANewContactV1: (reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsStoreRequest, options = {}) {
15510
- // verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
15511
- (0, common_1.assertParamExists)('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
15512
- const localVarPath = `/api/reach/v1/contacts`;
15513
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
15514
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15515
- let baseOptions;
15516
- if (configuration) {
15517
- baseOptions = configuration.baseOptions;
15518
- }
15519
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15520
- const localVarHeaderParameter = {};
15521
- const localVarQueryParameter = {};
15522
- // authentication apiToken required
15523
- // http bearer authentication required
15524
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
15525
- localVarHeaderParameter['Content-Type'] = 'application/json';
15526
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15527
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15528
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15529
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
15530
- return {
15531
- url: (0, common_1.toPathString)(localVarUrlObj),
15532
- options: localVarRequestOptions,
15533
- };
15534
- }),
15535
- /**
15536
- * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
15537
- * @summary Create new contacts
15730
+ * Define a new custom contact field in a profile. The `slug` is derived from the label and, like the field type, cannot be changed later. Use the returned uuid to set values on contacts.
15731
+ * @summary Create a contact field
15538
15732
  * @param {string} profileUuid Profile uuid parameter
15539
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
15733
+ * @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
15540
15734
  * @param {*} [options] Override http request option.
15541
15735
  * @throws {RequiredError}
15542
15736
  */
15543
- createNewContactsV1: (profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsStoreRequest, options = {}) {
15737
+ createAContactFieldV1: (profileUuid_1, reachV1ContactsFieldsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsFieldsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsFieldsStoreRequest, options = {}) {
15544
15738
  // verify required parameter 'profileUuid' is not null or undefined
15545
- (0, common_1.assertParamExists)('createNewContactsV1', 'profileUuid', profileUuid);
15546
- // verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
15547
- (0, common_1.assertParamExists)('createNewContactsV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
15548
- const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts`
15739
+ (0, common_1.assertParamExists)('createAContactFieldV1', 'profileUuid', profileUuid);
15740
+ // verify required parameter 'reachV1ContactsFieldsStoreRequest' is not null or undefined
15741
+ (0, common_1.assertParamExists)('createAContactFieldV1', 'reachV1ContactsFieldsStoreRequest', reachV1ContactsFieldsStoreRequest);
15742
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/fields`
15549
15743
  .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
15550
15744
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15551
15745
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -15563,24 +15757,28 @@ const ReachContactsApiAxiosParamCreator = function (configuration) {
15563
15757
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15564
15758
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15565
15759
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15566
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
15760
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsFieldsStoreRequest, localVarRequestOptions, configuration);
15567
15761
  return {
15568
15762
  url: (0, common_1.toPathString)(localVarUrlObj),
15569
15763
  options: localVarRequestOptions,
15570
15764
  };
15571
15765
  }),
15572
15766
  /**
15573
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
15574
- * @summary Delete a contact
15575
- * @param {string} uuid UUID of the contact to delete
15767
+ * Delete a custom contact field. Every value contacts hold for the field is deleted with it, and for the choice types so are its options. The contacts themselves are not affected.
15768
+ * @summary Delete a contact field
15769
+ * @param {string} profileUuid Profile uuid parameter
15770
+ * @param {string} fieldUuid Contact field uuid parameter
15576
15771
  * @param {*} [options] Override http request option.
15577
15772
  * @throws {RequiredError}
15578
15773
  */
15579
- deleteAContactV1: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
15580
- // verify required parameter 'uuid' is not null or undefined
15581
- (0, common_1.assertParamExists)('deleteAContactV1', 'uuid', uuid);
15582
- const localVarPath = `/api/reach/v1/contacts/{uuid}`
15583
- .replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
15774
+ deleteAContactFieldV1: (profileUuid_1, fieldUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, fieldUuid_1, ...args_1], void 0, function* (profileUuid, fieldUuid, options = {}) {
15775
+ // verify required parameter 'profileUuid' is not null or undefined
15776
+ (0, common_1.assertParamExists)('deleteAContactFieldV1', 'profileUuid', profileUuid);
15777
+ // verify required parameter 'fieldUuid' is not null or undefined
15778
+ (0, common_1.assertParamExists)('deleteAContactFieldV1', 'fieldUuid', fieldUuid);
15779
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/fields/{fieldUuid}`
15780
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
15781
+ .replace(`{${"fieldUuid"}}`, encodeURIComponent(String(fieldUuid)));
15584
15782
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15585
15783
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15586
15784
  let baseOptions;
@@ -15602,14 +15800,17 @@ const ReachContactsApiAxiosParamCreator = function (configuration) {
15602
15800
  };
15603
15801
  }),
15604
15802
  /**
15605
- * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
15606
- * @summary List contact groups
15803
+ * Get the custom contact fields defined in a profile. Custom fields let you store your own attributes on contacts. The returned uuids are what you pass to the contact update endpoint to set values, and choice fields also list the options available to pick from.
15804
+ * @summary List contact fields
15805
+ * @param {string} profileUuid Profile uuid parameter
15607
15806
  * @param {*} [options] Override http request option.
15608
- * @deprecated
15609
15807
  * @throws {RequiredError}
15610
15808
  */
15611
- listContactGroupsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
15612
- const localVarPath = `/api/reach/v1/contacts/groups`;
15809
+ listContactFieldsV1: (profileUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, ...args_1], void 0, function* (profileUuid, options = {}) {
15810
+ // verify required parameter 'profileUuid' is not null or undefined
15811
+ (0, common_1.assertParamExists)('listContactFieldsV1', 'profileUuid', profileUuid);
15812
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/fields`
15813
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
15613
15814
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15614
15815
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15615
15816
  let baseOptions;
@@ -15631,40 +15832,41 @@ const ReachContactsApiAxiosParamCreator = function (configuration) {
15631
15832
  };
15632
15833
  }),
15633
15834
  /**
15634
- * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
15635
- * @summary List contacts
15636
- * @param {string} [groupUuid] Filter contacts by group UUID
15637
- * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
15638
- * @param {number} [page] Page number
15835
+ * Rename a custom contact field and, for the choice types, replace its option set. Options carrying a uuid are kept and relabelled, options without one are created, and any existing option left out of the list is deleted along with the values contacts hold for it. The field type and slug cannot be changed.
15836
+ * @summary Update a contact field
15837
+ * @param {string} profileUuid Profile uuid parameter
15838
+ * @param {string} fieldUuid Contact field uuid parameter
15839
+ * @param {ReachV1ContactsFieldsUpdateRequest} reachV1ContactsFieldsUpdateRequest
15639
15840
  * @param {*} [options] Override http request option.
15640
15841
  * @throws {RequiredError}
15641
15842
  */
15642
- listContactsV1: (groupUuid_1, subscriptionStatus_1, page_1, ...args_1) => __awaiter(this, [groupUuid_1, subscriptionStatus_1, page_1, ...args_1], void 0, function* (groupUuid, subscriptionStatus, page, options = {}) {
15643
- const localVarPath = `/api/reach/v1/contacts`;
15843
+ updateAContactFieldV1: (profileUuid_1, fieldUuid_1, reachV1ContactsFieldsUpdateRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, fieldUuid_1, reachV1ContactsFieldsUpdateRequest_1, ...args_1], void 0, function* (profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options = {}) {
15844
+ // verify required parameter 'profileUuid' is not null or undefined
15845
+ (0, common_1.assertParamExists)('updateAContactFieldV1', 'profileUuid', profileUuid);
15846
+ // verify required parameter 'fieldUuid' is not null or undefined
15847
+ (0, common_1.assertParamExists)('updateAContactFieldV1', 'fieldUuid', fieldUuid);
15848
+ // verify required parameter 'reachV1ContactsFieldsUpdateRequest' is not null or undefined
15849
+ (0, common_1.assertParamExists)('updateAContactFieldV1', 'reachV1ContactsFieldsUpdateRequest', reachV1ContactsFieldsUpdateRequest);
15850
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/fields/{fieldUuid}`
15851
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
15852
+ .replace(`{${"fieldUuid"}}`, encodeURIComponent(String(fieldUuid)));
15644
15853
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15645
15854
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15646
15855
  let baseOptions;
15647
15856
  if (configuration) {
15648
15857
  baseOptions = configuration.baseOptions;
15649
15858
  }
15650
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15859
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
15651
15860
  const localVarHeaderParameter = {};
15652
15861
  const localVarQueryParameter = {};
15653
15862
  // authentication apiToken required
15654
15863
  // http bearer authentication required
15655
15864
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
15656
- if (groupUuid !== undefined) {
15657
- localVarQueryParameter['group_uuid'] = groupUuid;
15658
- }
15659
- if (subscriptionStatus !== undefined) {
15660
- localVarQueryParameter['subscription_status'] = subscriptionStatus;
15661
- }
15662
- if (page !== undefined) {
15663
- localVarQueryParameter['page'] = page;
15664
- }
15865
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15665
15866
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15666
15867
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15667
15868
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15869
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsFieldsUpdateRequest, localVarRequestOptions, configuration);
15668
15870
  return {
15669
15871
  url: (0, common_1.toPathString)(localVarUrlObj),
15670
15872
  options: localVarRequestOptions,
@@ -15672,105 +15874,762 @@ const ReachContactsApiAxiosParamCreator = function (configuration) {
15672
15874
  }),
15673
15875
  };
15674
15876
  };
15675
- exports.ReachContactsApiAxiosParamCreator = ReachContactsApiAxiosParamCreator;
15877
+ exports.ReachContactFieldsApiAxiosParamCreator = ReachContactFieldsApiAxiosParamCreator;
15676
15878
  /**
15677
- * ReachContactsApi - functional programming interface
15879
+ * ReachContactFieldsApi - functional programming interface
15678
15880
  * @export
15679
15881
  */
15680
- const ReachContactsApiFp = function (configuration) {
15681
- const localVarAxiosParamCreator = (0, exports.ReachContactsApiAxiosParamCreator)(configuration);
15882
+ const ReachContactFieldsApiFp = function (configuration) {
15883
+ const localVarAxiosParamCreator = (0, exports.ReachContactFieldsApiAxiosParamCreator)(configuration);
15682
15884
  return {
15683
15885
  /**
15684
- * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
15685
- * @summary Create a new contact
15686
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
15687
- * @param {*} [options] Override http request option.
15688
- * @deprecated
15689
- * @throws {RequiredError}
15690
- */
15691
- createANewContactV1(reachV1ContactsStoreRequest, options) {
15692
- return __awaiter(this, void 0, void 0, function* () {
15693
- var _a, _b;
15694
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createANewContactV1(reachV1ContactsStoreRequest, options);
15695
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.createANewContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15696
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15697
- });
15698
- },
15699
- /**
15700
- * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
15701
- * @summary Create new contacts
15886
+ * Define a new custom contact field in a profile. The `slug` is derived from the label and, like the field type, cannot be changed later. Use the returned uuid to set values on contacts.
15887
+ * @summary Create a contact field
15702
15888
  * @param {string} profileUuid Profile uuid parameter
15703
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
15889
+ * @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
15704
15890
  * @param {*} [options] Override http request option.
15705
15891
  * @throws {RequiredError}
15706
15892
  */
15707
- createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options) {
15893
+ createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options) {
15708
15894
  return __awaiter(this, void 0, void 0, function* () {
15709
15895
  var _a, _b;
15710
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options);
15711
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.createNewContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15896
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options);
15897
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactFieldsApi.createAContactFieldV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15712
15898
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15713
15899
  });
15714
15900
  },
15715
15901
  /**
15716
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
15717
- * @summary Delete a contact
15718
- * @param {string} uuid UUID of the contact to delete
15902
+ * Delete a custom contact field. Every value contacts hold for the field is deleted with it, and for the choice types so are its options. The contacts themselves are not affected.
15903
+ * @summary Delete a contact field
15904
+ * @param {string} profileUuid Profile uuid parameter
15905
+ * @param {string} fieldUuid Contact field uuid parameter
15719
15906
  * @param {*} [options] Override http request option.
15720
15907
  * @throws {RequiredError}
15721
15908
  */
15722
- deleteAContactV1(uuid, options) {
15909
+ deleteAContactFieldV1(profileUuid, fieldUuid, options) {
15723
15910
  return __awaiter(this, void 0, void 0, function* () {
15724
15911
  var _a, _b;
15725
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAContactV1(uuid, options);
15726
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.deleteAContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15912
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAContactFieldV1(profileUuid, fieldUuid, options);
15913
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactFieldsApi.deleteAContactFieldV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15727
15914
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15728
15915
  });
15729
15916
  },
15730
15917
  /**
15731
- * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
15732
- * @summary List contact groups
15918
+ * Get the custom contact fields defined in a profile. Custom fields let you store your own attributes on contacts. The returned uuids are what you pass to the contact update endpoint to set values, and choice fields also list the options available to pick from.
15919
+ * @summary List contact fields
15920
+ * @param {string} profileUuid Profile uuid parameter
15733
15921
  * @param {*} [options] Override http request option.
15734
- * @deprecated
15735
15922
  * @throws {RequiredError}
15736
15923
  */
15737
- listContactGroupsV1(options) {
15924
+ listContactFieldsV1(profileUuid, options) {
15738
15925
  return __awaiter(this, void 0, void 0, function* () {
15739
15926
  var _a, _b;
15740
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactGroupsV1(options);
15741
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.listContactGroupsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15927
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactFieldsV1(profileUuid, options);
15928
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactFieldsApi.listContactFieldsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15742
15929
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15743
15930
  });
15744
15931
  },
15745
15932
  /**
15746
- * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
15747
- * @summary List contacts
15748
- * @param {string} [groupUuid] Filter contacts by group UUID
15749
- * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
15750
- * @param {number} [page] Page number
15933
+ * Rename a custom contact field and, for the choice types, replace its option set. Options carrying a uuid are kept and relabelled, options without one are created, and any existing option left out of the list is deleted along with the values contacts hold for it. The field type and slug cannot be changed.
15934
+ * @summary Update a contact field
15935
+ * @param {string} profileUuid Profile uuid parameter
15936
+ * @param {string} fieldUuid Contact field uuid parameter
15937
+ * @param {ReachV1ContactsFieldsUpdateRequest} reachV1ContactsFieldsUpdateRequest
15751
15938
  * @param {*} [options] Override http request option.
15752
15939
  * @throws {RequiredError}
15753
15940
  */
15754
- listContactsV1(groupUuid, subscriptionStatus, page, options) {
15941
+ updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options) {
15755
15942
  return __awaiter(this, void 0, void 0, function* () {
15756
15943
  var _a, _b;
15757
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactsV1(groupUuid, subscriptionStatus, page, options);
15758
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.listContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15944
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options);
15945
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactFieldsApi.updateAContactFieldV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15759
15946
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15760
15947
  });
15761
15948
  },
15762
15949
  };
15763
15950
  };
15764
- exports.ReachContactsApiFp = ReachContactsApiFp;
15951
+ exports.ReachContactFieldsApiFp = ReachContactFieldsApiFp;
15765
15952
  /**
15766
- * ReachContactsApi - factory interface
15953
+ * ReachContactFieldsApi - factory interface
15767
15954
  * @export
15768
15955
  */
15769
- const ReachContactsApiFactory = function (configuration, basePath, axios) {
15770
- const localVarFp = (0, exports.ReachContactsApiFp)(configuration);
15956
+ const ReachContactFieldsApiFactory = function (configuration, basePath, axios) {
15957
+ const localVarFp = (0, exports.ReachContactFieldsApiFp)(configuration);
15771
15958
  return {
15772
15959
  /**
15773
- * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
15960
+ * Define a new custom contact field in a profile. The `slug` is derived from the label and, like the field type, cannot be changed later. Use the returned uuid to set values on contacts.
15961
+ * @summary Create a contact field
15962
+ * @param {string} profileUuid Profile uuid parameter
15963
+ * @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
15964
+ * @param {*} [options] Override http request option.
15965
+ * @throws {RequiredError}
15966
+ */
15967
+ createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options) {
15968
+ return localVarFp.createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options).then((request) => request(axios, basePath));
15969
+ },
15970
+ /**
15971
+ * Delete a custom contact field. Every value contacts hold for the field is deleted with it, and for the choice types so are its options. The contacts themselves are not affected.
15972
+ * @summary Delete a contact field
15973
+ * @param {string} profileUuid Profile uuid parameter
15974
+ * @param {string} fieldUuid Contact field uuid parameter
15975
+ * @param {*} [options] Override http request option.
15976
+ * @throws {RequiredError}
15977
+ */
15978
+ deleteAContactFieldV1(profileUuid, fieldUuid, options) {
15979
+ return localVarFp.deleteAContactFieldV1(profileUuid, fieldUuid, options).then((request) => request(axios, basePath));
15980
+ },
15981
+ /**
15982
+ * Get the custom contact fields defined in a profile. Custom fields let you store your own attributes on contacts. The returned uuids are what you pass to the contact update endpoint to set values, and choice fields also list the options available to pick from.
15983
+ * @summary List contact fields
15984
+ * @param {string} profileUuid Profile uuid parameter
15985
+ * @param {*} [options] Override http request option.
15986
+ * @throws {RequiredError}
15987
+ */
15988
+ listContactFieldsV1(profileUuid, options) {
15989
+ return localVarFp.listContactFieldsV1(profileUuid, options).then((request) => request(axios, basePath));
15990
+ },
15991
+ /**
15992
+ * Rename a custom contact field and, for the choice types, replace its option set. Options carrying a uuid are kept and relabelled, options without one are created, and any existing option left out of the list is deleted along with the values contacts hold for it. The field type and slug cannot be changed.
15993
+ * @summary Update a contact field
15994
+ * @param {string} profileUuid Profile uuid parameter
15995
+ * @param {string} fieldUuid Contact field uuid parameter
15996
+ * @param {ReachV1ContactsFieldsUpdateRequest} reachV1ContactsFieldsUpdateRequest
15997
+ * @param {*} [options] Override http request option.
15998
+ * @throws {RequiredError}
15999
+ */
16000
+ updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options) {
16001
+ return localVarFp.updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options).then((request) => request(axios, basePath));
16002
+ },
16003
+ };
16004
+ };
16005
+ exports.ReachContactFieldsApiFactory = ReachContactFieldsApiFactory;
16006
+ /**
16007
+ * ReachContactFieldsApi - object-oriented interface
16008
+ * @export
16009
+ * @class ReachContactFieldsApi
16010
+ * @extends {BaseAPI}
16011
+ */
16012
+ class ReachContactFieldsApi extends base_1.BaseAPI {
16013
+ /**
16014
+ * Define a new custom contact field in a profile. The `slug` is derived from the label and, like the field type, cannot be changed later. Use the returned uuid to set values on contacts.
16015
+ * @summary Create a contact field
16016
+ * @param {string} profileUuid Profile uuid parameter
16017
+ * @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
16018
+ * @param {*} [options] Override http request option.
16019
+ * @throws {RequiredError}
16020
+ * @memberof ReachContactFieldsApi
16021
+ */
16022
+ createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options) {
16023
+ return (0, exports.ReachContactFieldsApiFp)(this.configuration).createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options).then((request) => request(this.axios, this.basePath));
16024
+ }
16025
+ /**
16026
+ * Delete a custom contact field. Every value contacts hold for the field is deleted with it, and for the choice types so are its options. The contacts themselves are not affected.
16027
+ * @summary Delete a contact field
16028
+ * @param {string} profileUuid Profile uuid parameter
16029
+ * @param {string} fieldUuid Contact field uuid parameter
16030
+ * @param {*} [options] Override http request option.
16031
+ * @throws {RequiredError}
16032
+ * @memberof ReachContactFieldsApi
16033
+ */
16034
+ deleteAContactFieldV1(profileUuid, fieldUuid, options) {
16035
+ return (0, exports.ReachContactFieldsApiFp)(this.configuration).deleteAContactFieldV1(profileUuid, fieldUuid, options).then((request) => request(this.axios, this.basePath));
16036
+ }
16037
+ /**
16038
+ * Get the custom contact fields defined in a profile. Custom fields let you store your own attributes on contacts. The returned uuids are what you pass to the contact update endpoint to set values, and choice fields also list the options available to pick from.
16039
+ * @summary List contact fields
16040
+ * @param {string} profileUuid Profile uuid parameter
16041
+ * @param {*} [options] Override http request option.
16042
+ * @throws {RequiredError}
16043
+ * @memberof ReachContactFieldsApi
16044
+ */
16045
+ listContactFieldsV1(profileUuid, options) {
16046
+ return (0, exports.ReachContactFieldsApiFp)(this.configuration).listContactFieldsV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
16047
+ }
16048
+ /**
16049
+ * Rename a custom contact field and, for the choice types, replace its option set. Options carrying a uuid are kept and relabelled, options without one are created, and any existing option left out of the list is deleted along with the values contacts hold for it. The field type and slug cannot be changed.
16050
+ * @summary Update a contact field
16051
+ * @param {string} profileUuid Profile uuid parameter
16052
+ * @param {string} fieldUuid Contact field uuid parameter
16053
+ * @param {ReachV1ContactsFieldsUpdateRequest} reachV1ContactsFieldsUpdateRequest
16054
+ * @param {*} [options] Override http request option.
16055
+ * @throws {RequiredError}
16056
+ * @memberof ReachContactFieldsApi
16057
+ */
16058
+ updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options) {
16059
+ return (0, exports.ReachContactFieldsApiFp)(this.configuration).updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
16060
+ }
16061
+ }
16062
+ exports.ReachContactFieldsApi = ReachContactFieldsApi;
16063
+ /**
16064
+ * ReachContactsApi - axios parameter creator
16065
+ * @export
16066
+ */
16067
+ const ReachContactsApiAxiosParamCreator = function (configuration) {
16068
+ return {
16069
+ /**
16070
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
16071
+ * @summary Create a new contact
16072
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
16073
+ * @param {*} [options] Override http request option.
16074
+ * @deprecated
16075
+ * @throws {RequiredError}
16076
+ */
16077
+ createANewContactV1: (reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsStoreRequest, options = {}) {
16078
+ // verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
16079
+ (0, common_1.assertParamExists)('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
16080
+ const localVarPath = `/api/reach/v1/contacts`;
16081
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16082
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16083
+ let baseOptions;
16084
+ if (configuration) {
16085
+ baseOptions = configuration.baseOptions;
16086
+ }
16087
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
16088
+ const localVarHeaderParameter = {};
16089
+ const localVarQueryParameter = {};
16090
+ // authentication apiToken required
16091
+ // http bearer authentication required
16092
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
16093
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16094
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16095
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16096
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16097
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
16098
+ return {
16099
+ url: (0, common_1.toPathString)(localVarUrlObj),
16100
+ options: localVarRequestOptions,
16101
+ };
16102
+ }),
16103
+ /**
16104
+ * Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are left as they are. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
16105
+ * @summary Create contacts in bulk
16106
+ * @param {string} profileUuid Profile uuid parameter
16107
+ * @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
16108
+ * @param {*} [options] Override http request option.
16109
+ * @throws {RequiredError}
16110
+ */
16111
+ createContactsInBulkV1: (profileUuid_1, reachV1ContactsBulkStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsBulkStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsBulkStoreRequest, options = {}) {
16112
+ // verify required parameter 'profileUuid' is not null or undefined
16113
+ (0, common_1.assertParamExists)('createContactsInBulkV1', 'profileUuid', profileUuid);
16114
+ // verify required parameter 'reachV1ContactsBulkStoreRequest' is not null or undefined
16115
+ (0, common_1.assertParamExists)('createContactsInBulkV1', 'reachV1ContactsBulkStoreRequest', reachV1ContactsBulkStoreRequest);
16116
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/bulk`
16117
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
16118
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16119
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16120
+ let baseOptions;
16121
+ if (configuration) {
16122
+ baseOptions = configuration.baseOptions;
16123
+ }
16124
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
16125
+ const localVarHeaderParameter = {};
16126
+ const localVarQueryParameter = {};
16127
+ // authentication apiToken required
16128
+ // http bearer authentication required
16129
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
16130
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16131
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16132
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16133
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16134
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsBulkStoreRequest, localVarRequestOptions, configuration);
16135
+ return {
16136
+ url: (0, common_1.toPathString)(localVarUrlObj),
16137
+ options: localVarRequestOptions,
16138
+ };
16139
+ }),
16140
+ /**
16141
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
16142
+ * @summary Create new contacts
16143
+ * @param {string} profileUuid Profile uuid parameter
16144
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
16145
+ * @param {*} [options] Override http request option.
16146
+ * @throws {RequiredError}
16147
+ */
16148
+ createNewContactsV1: (profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsStoreRequest, options = {}) {
16149
+ // verify required parameter 'profileUuid' is not null or undefined
16150
+ (0, common_1.assertParamExists)('createNewContactsV1', 'profileUuid', profileUuid);
16151
+ // verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
16152
+ (0, common_1.assertParamExists)('createNewContactsV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
16153
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts`
16154
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
16155
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16156
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16157
+ let baseOptions;
16158
+ if (configuration) {
16159
+ baseOptions = configuration.baseOptions;
16160
+ }
16161
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
16162
+ const localVarHeaderParameter = {};
16163
+ const localVarQueryParameter = {};
16164
+ // authentication apiToken required
16165
+ // http bearer authentication required
16166
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
16167
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16168
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16169
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16170
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16171
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
16172
+ return {
16173
+ url: (0, common_1.toPathString)(localVarUrlObj),
16174
+ options: localVarRequestOptions,
16175
+ };
16176
+ }),
16177
+ /**
16178
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot delete contacts of any other profile. Use `DELETE /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}` instead.
16179
+ * @summary Delete a contact
16180
+ * @param {string} uuid UUID of the contact to delete
16181
+ * @param {*} [options] Override http request option.
16182
+ * @deprecated
16183
+ * @throws {RequiredError}
16184
+ */
16185
+ deleteAContactV1: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
16186
+ // verify required parameter 'uuid' is not null or undefined
16187
+ (0, common_1.assertParamExists)('deleteAContactV1', 'uuid', uuid);
16188
+ const localVarPath = `/api/reach/v1/contacts/{uuid}`
16189
+ .replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
16190
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16191
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16192
+ let baseOptions;
16193
+ if (configuration) {
16194
+ baseOptions = configuration.baseOptions;
16195
+ }
16196
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
16197
+ const localVarHeaderParameter = {};
16198
+ const localVarQueryParameter = {};
16199
+ // authentication apiToken required
16200
+ // http bearer authentication required
16201
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
16202
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16203
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16204
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16205
+ return {
16206
+ url: (0, common_1.toPathString)(localVarUrlObj),
16207
+ options: localVarRequestOptions,
16208
+ };
16209
+ }),
16210
+ /**
16211
+ * Permanently delete a contact from a profile. The contact is removed together with its custom field values and tag assignments.
16212
+ * @summary Delete a profile contact
16213
+ * @param {string} profileUuid Profile uuid parameter
16214
+ * @param {string} contactUuid Contact uuid parameter
16215
+ * @param {*} [options] Override http request option.
16216
+ * @throws {RequiredError}
16217
+ */
16218
+ deleteAProfileContactV1: (profileUuid_1, contactUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, contactUuid_1, ...args_1], void 0, function* (profileUuid, contactUuid, options = {}) {
16219
+ // verify required parameter 'profileUuid' is not null or undefined
16220
+ (0, common_1.assertParamExists)('deleteAProfileContactV1', 'profileUuid', profileUuid);
16221
+ // verify required parameter 'contactUuid' is not null or undefined
16222
+ (0, common_1.assertParamExists)('deleteAProfileContactV1', 'contactUuid', contactUuid);
16223
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`
16224
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
16225
+ .replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
16226
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16227
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16228
+ let baseOptions;
16229
+ if (configuration) {
16230
+ baseOptions = configuration.baseOptions;
16231
+ }
16232
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
16233
+ const localVarHeaderParameter = {};
16234
+ const localVarQueryParameter = {};
16235
+ // authentication apiToken required
16236
+ // http bearer authentication required
16237
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
16238
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16239
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16240
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16241
+ return {
16242
+ url: (0, common_1.toPathString)(localVarUrlObj),
16243
+ options: localVarRequestOptions,
16244
+ };
16245
+ }),
16246
+ /**
16247
+ * Get the full details of a single contact. Alongside the contact\'s own attributes this returns the tags assigned to it and the values it holds for the profile\'s custom contact fields.
16248
+ * @summary Get contact details
16249
+ * @param {string} profileUuid Profile uuid parameter
16250
+ * @param {string} contactUuid Contact uuid parameter
16251
+ * @param {*} [options] Override http request option.
16252
+ * @throws {RequiredError}
16253
+ */
16254
+ getContactDetailsV1: (profileUuid_1, contactUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, contactUuid_1, ...args_1], void 0, function* (profileUuid, contactUuid, options = {}) {
16255
+ // verify required parameter 'profileUuid' is not null or undefined
16256
+ (0, common_1.assertParamExists)('getContactDetailsV1', 'profileUuid', profileUuid);
16257
+ // verify required parameter 'contactUuid' is not null or undefined
16258
+ (0, common_1.assertParamExists)('getContactDetailsV1', 'contactUuid', contactUuid);
16259
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`
16260
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
16261
+ .replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
16262
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16263
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16264
+ let baseOptions;
16265
+ if (configuration) {
16266
+ baseOptions = configuration.baseOptions;
16267
+ }
16268
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16269
+ const localVarHeaderParameter = {};
16270
+ const localVarQueryParameter = {};
16271
+ // authentication apiToken required
16272
+ // http bearer authentication required
16273
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
16274
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16275
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16276
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16277
+ return {
16278
+ url: (0, common_1.toPathString)(localVarUrlObj),
16279
+ options: localVarRequestOptions,
16280
+ };
16281
+ }),
16282
+ /**
16283
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
16284
+ * @summary List contact groups
16285
+ * @param {*} [options] Override http request option.
16286
+ * @deprecated
16287
+ * @throws {RequiredError}
16288
+ */
16289
+ listContactGroupsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
16290
+ const localVarPath = `/api/reach/v1/contacts/groups`;
16291
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16292
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16293
+ let baseOptions;
16294
+ if (configuration) {
16295
+ baseOptions = configuration.baseOptions;
16296
+ }
16297
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16298
+ const localVarHeaderParameter = {};
16299
+ const localVarQueryParameter = {};
16300
+ // authentication apiToken required
16301
+ // http bearer authentication required
16302
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
16303
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16304
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16305
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16306
+ return {
16307
+ url: (0, common_1.toPathString)(localVarUrlObj),
16308
+ options: localVarRequestOptions,
16309
+ };
16310
+ }),
16311
+ /**
16312
+ * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list contacts of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/contacts` instead, which also replaces the group filter with a tag filter.
16313
+ * @summary List contacts
16314
+ * @param {string} [groupUuid] Filter contacts by group UUID
16315
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
16316
+ * @param {number} [page] Page number
16317
+ * @param {*} [options] Override http request option.
16318
+ * @deprecated
16319
+ * @throws {RequiredError}
16320
+ */
16321
+ listContactsV1: (groupUuid_1, subscriptionStatus_1, page_1, ...args_1) => __awaiter(this, [groupUuid_1, subscriptionStatus_1, page_1, ...args_1], void 0, function* (groupUuid, subscriptionStatus, page, options = {}) {
16322
+ const localVarPath = `/api/reach/v1/contacts`;
16323
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16324
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16325
+ let baseOptions;
16326
+ if (configuration) {
16327
+ baseOptions = configuration.baseOptions;
16328
+ }
16329
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16330
+ const localVarHeaderParameter = {};
16331
+ const localVarQueryParameter = {};
16332
+ // authentication apiToken required
16333
+ // http bearer authentication required
16334
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
16335
+ if (groupUuid !== undefined) {
16336
+ localVarQueryParameter['group_uuid'] = groupUuid;
16337
+ }
16338
+ if (subscriptionStatus !== undefined) {
16339
+ localVarQueryParameter['subscription_status'] = subscriptionStatus;
16340
+ }
16341
+ if (page !== undefined) {
16342
+ localVarQueryParameter['page'] = page;
16343
+ }
16344
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16345
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16346
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16347
+ return {
16348
+ url: (0, common_1.toPathString)(localVarUrlObj),
16349
+ options: localVarRequestOptions,
16350
+ };
16351
+ }),
16352
+ /**
16353
+ * Get a paginated list of contacts belonging to a profile. Contacts can be filtered by subscription status, by tag, and by an email search term. The `meta.total` field of the response is the number of contacts matching the filters, so calling this endpoint without filters gives the profile\'s total contact count.
16354
+ * @summary List profile contacts
16355
+ * @param {string} profileUuid Profile uuid parameter
16356
+ * @param {ListProfileContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
16357
+ * @param {string} [tagUuid] Filter contacts by tag UUID
16358
+ * @param {string} [search] Search contacts by email
16359
+ * @param {number} [page] Page number
16360
+ * @param {number} [perPage] Number of items per page
16361
+ * @param {*} [options] Override http request option.
16362
+ * @throws {RequiredError}
16363
+ */
16364
+ listProfileContactsV1: (profileUuid_1, subscriptionStatus_1, tagUuid_1, search_1, page_1, perPage_1, ...args_1) => __awaiter(this, [profileUuid_1, subscriptionStatus_1, tagUuid_1, search_1, page_1, perPage_1, ...args_1], void 0, function* (profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options = {}) {
16365
+ // verify required parameter 'profileUuid' is not null or undefined
16366
+ (0, common_1.assertParamExists)('listProfileContactsV1', 'profileUuid', profileUuid);
16367
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts`
16368
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
16369
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16370
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16371
+ let baseOptions;
16372
+ if (configuration) {
16373
+ baseOptions = configuration.baseOptions;
16374
+ }
16375
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16376
+ const localVarHeaderParameter = {};
16377
+ const localVarQueryParameter = {};
16378
+ // authentication apiToken required
16379
+ // http bearer authentication required
16380
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
16381
+ if (subscriptionStatus !== undefined) {
16382
+ localVarQueryParameter['subscription_status'] = subscriptionStatus;
16383
+ }
16384
+ if (tagUuid !== undefined) {
16385
+ localVarQueryParameter['tag_uuid'] = tagUuid;
16386
+ }
16387
+ if (search !== undefined) {
16388
+ localVarQueryParameter['search'] = search;
16389
+ }
16390
+ if (page !== undefined) {
16391
+ localVarQueryParameter['page'] = page;
16392
+ }
16393
+ if (perPage !== undefined) {
16394
+ localVarQueryParameter['per_page'] = perPage;
16395
+ }
16396
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16397
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16398
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16399
+ return {
16400
+ url: (0, common_1.toPathString)(localVarUrlObj),
16401
+ options: localVarRequestOptions,
16402
+ };
16403
+ }),
16404
+ /**
16405
+ * Update a contact\'s attributes and custom field values. Only the properties present in the request body are changed, so a partial body is enough to change a single attribute. Sending a property as `null` clears it. The response carries the contact\'s core attributes. Read back its tags, custom field values, source and note with `GET /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`.
16406
+ * @summary Update a contact
16407
+ * @param {string} profileUuid Profile uuid parameter
16408
+ * @param {string} contactUuid Contact uuid parameter
16409
+ * @param {ReachV1ContactsUpdateRequest} reachV1ContactsUpdateRequest
16410
+ * @param {*} [options] Override http request option.
16411
+ * @throws {RequiredError}
16412
+ */
16413
+ updateAContactV1: (profileUuid_1, contactUuid_1, reachV1ContactsUpdateRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, contactUuid_1, reachV1ContactsUpdateRequest_1, ...args_1], void 0, function* (profileUuid, contactUuid, reachV1ContactsUpdateRequest, options = {}) {
16414
+ // verify required parameter 'profileUuid' is not null or undefined
16415
+ (0, common_1.assertParamExists)('updateAContactV1', 'profileUuid', profileUuid);
16416
+ // verify required parameter 'contactUuid' is not null or undefined
16417
+ (0, common_1.assertParamExists)('updateAContactV1', 'contactUuid', contactUuid);
16418
+ // verify required parameter 'reachV1ContactsUpdateRequest' is not null or undefined
16419
+ (0, common_1.assertParamExists)('updateAContactV1', 'reachV1ContactsUpdateRequest', reachV1ContactsUpdateRequest);
16420
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`
16421
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
16422
+ .replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
16423
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16424
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16425
+ let baseOptions;
16426
+ if (configuration) {
16427
+ baseOptions = configuration.baseOptions;
16428
+ }
16429
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
16430
+ const localVarHeaderParameter = {};
16431
+ const localVarQueryParameter = {};
16432
+ // authentication apiToken required
16433
+ // http bearer authentication required
16434
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
16435
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16436
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16437
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16438
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16439
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsUpdateRequest, localVarRequestOptions, configuration);
16440
+ return {
16441
+ url: (0, common_1.toPathString)(localVarUrlObj),
16442
+ options: localVarRequestOptions,
16443
+ };
16444
+ }),
16445
+ };
16446
+ };
16447
+ exports.ReachContactsApiAxiosParamCreator = ReachContactsApiAxiosParamCreator;
16448
+ /**
16449
+ * ReachContactsApi - functional programming interface
16450
+ * @export
16451
+ */
16452
+ const ReachContactsApiFp = function (configuration) {
16453
+ const localVarAxiosParamCreator = (0, exports.ReachContactsApiAxiosParamCreator)(configuration);
16454
+ return {
16455
+ /**
16456
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
16457
+ * @summary Create a new contact
16458
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
16459
+ * @param {*} [options] Override http request option.
16460
+ * @deprecated
16461
+ * @throws {RequiredError}
16462
+ */
16463
+ createANewContactV1(reachV1ContactsStoreRequest, options) {
16464
+ return __awaiter(this, void 0, void 0, function* () {
16465
+ var _a, _b;
16466
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createANewContactV1(reachV1ContactsStoreRequest, options);
16467
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.createANewContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16468
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16469
+ });
16470
+ },
16471
+ /**
16472
+ * Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are left as they are. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
16473
+ * @summary Create contacts in bulk
16474
+ * @param {string} profileUuid Profile uuid parameter
16475
+ * @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
16476
+ * @param {*} [options] Override http request option.
16477
+ * @throws {RequiredError}
16478
+ */
16479
+ createContactsInBulkV1(profileUuid, reachV1ContactsBulkStoreRequest, options) {
16480
+ return __awaiter(this, void 0, void 0, function* () {
16481
+ var _a, _b;
16482
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createContactsInBulkV1(profileUuid, reachV1ContactsBulkStoreRequest, options);
16483
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.createContactsInBulkV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16484
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16485
+ });
16486
+ },
16487
+ /**
16488
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
16489
+ * @summary Create new contacts
16490
+ * @param {string} profileUuid Profile uuid parameter
16491
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
16492
+ * @param {*} [options] Override http request option.
16493
+ * @throws {RequiredError}
16494
+ */
16495
+ createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options) {
16496
+ return __awaiter(this, void 0, void 0, function* () {
16497
+ var _a, _b;
16498
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options);
16499
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.createNewContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16500
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16501
+ });
16502
+ },
16503
+ /**
16504
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot delete contacts of any other profile. Use `DELETE /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}` instead.
16505
+ * @summary Delete a contact
16506
+ * @param {string} uuid UUID of the contact to delete
16507
+ * @param {*} [options] Override http request option.
16508
+ * @deprecated
16509
+ * @throws {RequiredError}
16510
+ */
16511
+ deleteAContactV1(uuid, options) {
16512
+ return __awaiter(this, void 0, void 0, function* () {
16513
+ var _a, _b;
16514
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAContactV1(uuid, options);
16515
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.deleteAContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16516
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16517
+ });
16518
+ },
16519
+ /**
16520
+ * Permanently delete a contact from a profile. The contact is removed together with its custom field values and tag assignments.
16521
+ * @summary Delete a profile contact
16522
+ * @param {string} profileUuid Profile uuid parameter
16523
+ * @param {string} contactUuid Contact uuid parameter
16524
+ * @param {*} [options] Override http request option.
16525
+ * @throws {RequiredError}
16526
+ */
16527
+ deleteAProfileContactV1(profileUuid, contactUuid, options) {
16528
+ return __awaiter(this, void 0, void 0, function* () {
16529
+ var _a, _b;
16530
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAProfileContactV1(profileUuid, contactUuid, options);
16531
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.deleteAProfileContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16532
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16533
+ });
16534
+ },
16535
+ /**
16536
+ * Get the full details of a single contact. Alongside the contact\'s own attributes this returns the tags assigned to it and the values it holds for the profile\'s custom contact fields.
16537
+ * @summary Get contact details
16538
+ * @param {string} profileUuid Profile uuid parameter
16539
+ * @param {string} contactUuid Contact uuid parameter
16540
+ * @param {*} [options] Override http request option.
16541
+ * @throws {RequiredError}
16542
+ */
16543
+ getContactDetailsV1(profileUuid, contactUuid, options) {
16544
+ return __awaiter(this, void 0, void 0, function* () {
16545
+ var _a, _b;
16546
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getContactDetailsV1(profileUuid, contactUuid, options);
16547
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.getContactDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16548
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16549
+ });
16550
+ },
16551
+ /**
16552
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
16553
+ * @summary List contact groups
16554
+ * @param {*} [options] Override http request option.
16555
+ * @deprecated
16556
+ * @throws {RequiredError}
16557
+ */
16558
+ listContactGroupsV1(options) {
16559
+ return __awaiter(this, void 0, void 0, function* () {
16560
+ var _a, _b;
16561
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactGroupsV1(options);
16562
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.listContactGroupsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16563
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16564
+ });
16565
+ },
16566
+ /**
16567
+ * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list contacts of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/contacts` instead, which also replaces the group filter with a tag filter.
16568
+ * @summary List contacts
16569
+ * @param {string} [groupUuid] Filter contacts by group UUID
16570
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
16571
+ * @param {number} [page] Page number
16572
+ * @param {*} [options] Override http request option.
16573
+ * @deprecated
16574
+ * @throws {RequiredError}
16575
+ */
16576
+ listContactsV1(groupUuid, subscriptionStatus, page, options) {
16577
+ return __awaiter(this, void 0, void 0, function* () {
16578
+ var _a, _b;
16579
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactsV1(groupUuid, subscriptionStatus, page, options);
16580
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.listContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16581
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16582
+ });
16583
+ },
16584
+ /**
16585
+ * Get a paginated list of contacts belonging to a profile. Contacts can be filtered by subscription status, by tag, and by an email search term. The `meta.total` field of the response is the number of contacts matching the filters, so calling this endpoint without filters gives the profile\'s total contact count.
16586
+ * @summary List profile contacts
16587
+ * @param {string} profileUuid Profile uuid parameter
16588
+ * @param {ListProfileContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
16589
+ * @param {string} [tagUuid] Filter contacts by tag UUID
16590
+ * @param {string} [search] Search contacts by email
16591
+ * @param {number} [page] Page number
16592
+ * @param {number} [perPage] Number of items per page
16593
+ * @param {*} [options] Override http request option.
16594
+ * @throws {RequiredError}
16595
+ */
16596
+ listProfileContactsV1(profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options) {
16597
+ return __awaiter(this, void 0, void 0, function* () {
16598
+ var _a, _b;
16599
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfileContactsV1(profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options);
16600
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.listProfileContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16601
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16602
+ });
16603
+ },
16604
+ /**
16605
+ * Update a contact\'s attributes and custom field values. Only the properties present in the request body are changed, so a partial body is enough to change a single attribute. Sending a property as `null` clears it. The response carries the contact\'s core attributes. Read back its tags, custom field values, source and note with `GET /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`.
16606
+ * @summary Update a contact
16607
+ * @param {string} profileUuid Profile uuid parameter
16608
+ * @param {string} contactUuid Contact uuid parameter
16609
+ * @param {ReachV1ContactsUpdateRequest} reachV1ContactsUpdateRequest
16610
+ * @param {*} [options] Override http request option.
16611
+ * @throws {RequiredError}
16612
+ */
16613
+ updateAContactV1(profileUuid, contactUuid, reachV1ContactsUpdateRequest, options) {
16614
+ return __awaiter(this, void 0, void 0, function* () {
16615
+ var _a, _b;
16616
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAContactV1(profileUuid, contactUuid, reachV1ContactsUpdateRequest, options);
16617
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.updateAContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16618
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16619
+ });
16620
+ },
16621
+ };
16622
+ };
16623
+ exports.ReachContactsApiFp = ReachContactsApiFp;
16624
+ /**
16625
+ * ReachContactsApi - factory interface
16626
+ * @export
16627
+ */
16628
+ const ReachContactsApiFactory = function (configuration, basePath, axios) {
16629
+ const localVarFp = (0, exports.ReachContactsApiFp)(configuration);
16630
+ return {
16631
+ /**
16632
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
15774
16633
  * @summary Create a new contact
15775
16634
  * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
15776
16635
  * @param {*} [options] Override http request option.
@@ -15780,6 +16639,17 @@ const ReachContactsApiFactory = function (configuration, basePath, axios) {
15780
16639
  createANewContactV1(reachV1ContactsStoreRequest, options) {
15781
16640
  return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
15782
16641
  },
16642
+ /**
16643
+ * Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are left as they are. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
16644
+ * @summary Create contacts in bulk
16645
+ * @param {string} profileUuid Profile uuid parameter
16646
+ * @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
16647
+ * @param {*} [options] Override http request option.
16648
+ * @throws {RequiredError}
16649
+ */
16650
+ createContactsInBulkV1(profileUuid, reachV1ContactsBulkStoreRequest, options) {
16651
+ return localVarFp.createContactsInBulkV1(profileUuid, reachV1ContactsBulkStoreRequest, options).then((request) => request(axios, basePath));
16652
+ },
15783
16653
  /**
15784
16654
  * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
15785
16655
  * @summary Create new contacts
@@ -15792,15 +16662,38 @@ const ReachContactsApiFactory = function (configuration, basePath, axios) {
15792
16662
  return localVarFp.createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
15793
16663
  },
15794
16664
  /**
15795
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
16665
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot delete contacts of any other profile. Use `DELETE /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}` instead.
15796
16666
  * @summary Delete a contact
15797
16667
  * @param {string} uuid UUID of the contact to delete
15798
16668
  * @param {*} [options] Override http request option.
16669
+ * @deprecated
15799
16670
  * @throws {RequiredError}
15800
16671
  */
15801
16672
  deleteAContactV1(uuid, options) {
15802
16673
  return localVarFp.deleteAContactV1(uuid, options).then((request) => request(axios, basePath));
15803
16674
  },
16675
+ /**
16676
+ * Permanently delete a contact from a profile. The contact is removed together with its custom field values and tag assignments.
16677
+ * @summary Delete a profile contact
16678
+ * @param {string} profileUuid Profile uuid parameter
16679
+ * @param {string} contactUuid Contact uuid parameter
16680
+ * @param {*} [options] Override http request option.
16681
+ * @throws {RequiredError}
16682
+ */
16683
+ deleteAProfileContactV1(profileUuid, contactUuid, options) {
16684
+ return localVarFp.deleteAProfileContactV1(profileUuid, contactUuid, options).then((request) => request(axios, basePath));
16685
+ },
16686
+ /**
16687
+ * Get the full details of a single contact. Alongside the contact\'s own attributes this returns the tags assigned to it and the values it holds for the profile\'s custom contact fields.
16688
+ * @summary Get contact details
16689
+ * @param {string} profileUuid Profile uuid parameter
16690
+ * @param {string} contactUuid Contact uuid parameter
16691
+ * @param {*} [options] Override http request option.
16692
+ * @throws {RequiredError}
16693
+ */
16694
+ getContactDetailsV1(profileUuid, contactUuid, options) {
16695
+ return localVarFp.getContactDetailsV1(profileUuid, contactUuid, options).then((request) => request(axios, basePath));
16696
+ },
15804
16697
  /**
15805
16698
  * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
15806
16699
  * @summary List contact groups
@@ -15812,17 +16705,45 @@ const ReachContactsApiFactory = function (configuration, basePath, axios) {
15812
16705
  return localVarFp.listContactGroupsV1(options).then((request) => request(axios, basePath));
15813
16706
  },
15814
16707
  /**
15815
- * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
16708
+ * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list contacts of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/contacts` instead, which also replaces the group filter with a tag filter.
15816
16709
  * @summary List contacts
15817
16710
  * @param {string} [groupUuid] Filter contacts by group UUID
15818
16711
  * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
15819
16712
  * @param {number} [page] Page number
15820
16713
  * @param {*} [options] Override http request option.
16714
+ * @deprecated
15821
16715
  * @throws {RequiredError}
15822
16716
  */
15823
16717
  listContactsV1(groupUuid, subscriptionStatus, page, options) {
15824
16718
  return localVarFp.listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(axios, basePath));
15825
16719
  },
16720
+ /**
16721
+ * Get a paginated list of contacts belonging to a profile. Contacts can be filtered by subscription status, by tag, and by an email search term. The `meta.total` field of the response is the number of contacts matching the filters, so calling this endpoint without filters gives the profile\'s total contact count.
16722
+ * @summary List profile contacts
16723
+ * @param {string} profileUuid Profile uuid parameter
16724
+ * @param {ListProfileContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
16725
+ * @param {string} [tagUuid] Filter contacts by tag UUID
16726
+ * @param {string} [search] Search contacts by email
16727
+ * @param {number} [page] Page number
16728
+ * @param {number} [perPage] Number of items per page
16729
+ * @param {*} [options] Override http request option.
16730
+ * @throws {RequiredError}
16731
+ */
16732
+ listProfileContactsV1(profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options) {
16733
+ return localVarFp.listProfileContactsV1(profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options).then((request) => request(axios, basePath));
16734
+ },
16735
+ /**
16736
+ * Update a contact\'s attributes and custom field values. Only the properties present in the request body are changed, so a partial body is enough to change a single attribute. Sending a property as `null` clears it. The response carries the contact\'s core attributes. Read back its tags, custom field values, source and note with `GET /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`.
16737
+ * @summary Update a contact
16738
+ * @param {string} profileUuid Profile uuid parameter
16739
+ * @param {string} contactUuid Contact uuid parameter
16740
+ * @param {ReachV1ContactsUpdateRequest} reachV1ContactsUpdateRequest
16741
+ * @param {*} [options] Override http request option.
16742
+ * @throws {RequiredError}
16743
+ */
16744
+ updateAContactV1(profileUuid, contactUuid, reachV1ContactsUpdateRequest, options) {
16745
+ return localVarFp.updateAContactV1(profileUuid, contactUuid, reachV1ContactsUpdateRequest, options).then((request) => request(axios, basePath));
16746
+ },
15826
16747
  };
15827
16748
  };
15828
16749
  exports.ReachContactsApiFactory = ReachContactsApiFactory;
@@ -15845,6 +16766,18 @@ class ReachContactsApi extends base_1.BaseAPI {
15845
16766
  createANewContactV1(reachV1ContactsStoreRequest, options) {
15846
16767
  return (0, exports.ReachContactsApiFp)(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
15847
16768
  }
16769
+ /**
16770
+ * Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are left as they are. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
16771
+ * @summary Create contacts in bulk
16772
+ * @param {string} profileUuid Profile uuid parameter
16773
+ * @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
16774
+ * @param {*} [options] Override http request option.
16775
+ * @throws {RequiredError}
16776
+ * @memberof ReachContactsApi
16777
+ */
16778
+ createContactsInBulkV1(profileUuid, reachV1ContactsBulkStoreRequest, options) {
16779
+ return (0, exports.ReachContactsApiFp)(this.configuration).createContactsInBulkV1(profileUuid, reachV1ContactsBulkStoreRequest, options).then((request) => request(this.axios, this.basePath));
16780
+ }
15848
16781
  /**
15849
16782
  * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
15850
16783
  * @summary Create new contacts
@@ -15858,16 +16791,41 @@ class ReachContactsApi extends base_1.BaseAPI {
15858
16791
  return (0, exports.ReachContactsApiFp)(this.configuration).createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
15859
16792
  }
15860
16793
  /**
15861
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
16794
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot delete contacts of any other profile. Use `DELETE /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}` instead.
15862
16795
  * @summary Delete a contact
15863
16796
  * @param {string} uuid UUID of the contact to delete
15864
16797
  * @param {*} [options] Override http request option.
16798
+ * @deprecated
15865
16799
  * @throws {RequiredError}
15866
16800
  * @memberof ReachContactsApi
15867
16801
  */
15868
16802
  deleteAContactV1(uuid, options) {
15869
16803
  return (0, exports.ReachContactsApiFp)(this.configuration).deleteAContactV1(uuid, options).then((request) => request(this.axios, this.basePath));
15870
16804
  }
16805
+ /**
16806
+ * Permanently delete a contact from a profile. The contact is removed together with its custom field values and tag assignments.
16807
+ * @summary Delete a profile contact
16808
+ * @param {string} profileUuid Profile uuid parameter
16809
+ * @param {string} contactUuid Contact uuid parameter
16810
+ * @param {*} [options] Override http request option.
16811
+ * @throws {RequiredError}
16812
+ * @memberof ReachContactsApi
16813
+ */
16814
+ deleteAProfileContactV1(profileUuid, contactUuid, options) {
16815
+ return (0, exports.ReachContactsApiFp)(this.configuration).deleteAProfileContactV1(profileUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
16816
+ }
16817
+ /**
16818
+ * Get the full details of a single contact. Alongside the contact\'s own attributes this returns the tags assigned to it and the values it holds for the profile\'s custom contact fields.
16819
+ * @summary Get contact details
16820
+ * @param {string} profileUuid Profile uuid parameter
16821
+ * @param {string} contactUuid Contact uuid parameter
16822
+ * @param {*} [options] Override http request option.
16823
+ * @throws {RequiredError}
16824
+ * @memberof ReachContactsApi
16825
+ */
16826
+ getContactDetailsV1(profileUuid, contactUuid, options) {
16827
+ return (0, exports.ReachContactsApiFp)(this.configuration).getContactDetailsV1(profileUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
16828
+ }
15871
16829
  /**
15872
16830
  * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
15873
16831
  * @summary List contact groups
@@ -15880,18 +16838,48 @@ class ReachContactsApi extends base_1.BaseAPI {
15880
16838
  return (0, exports.ReachContactsApiFp)(this.configuration).listContactGroupsV1(options).then((request) => request(this.axios, this.basePath));
15881
16839
  }
15882
16840
  /**
15883
- * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
16841
+ * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list contacts of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/contacts` instead, which also replaces the group filter with a tag filter.
15884
16842
  * @summary List contacts
15885
16843
  * @param {string} [groupUuid] Filter contacts by group UUID
15886
16844
  * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
15887
16845
  * @param {number} [page] Page number
15888
16846
  * @param {*} [options] Override http request option.
16847
+ * @deprecated
15889
16848
  * @throws {RequiredError}
15890
16849
  * @memberof ReachContactsApi
15891
16850
  */
15892
16851
  listContactsV1(groupUuid, subscriptionStatus, page, options) {
15893
16852
  return (0, exports.ReachContactsApiFp)(this.configuration).listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(this.axios, this.basePath));
15894
16853
  }
16854
+ /**
16855
+ * Get a paginated list of contacts belonging to a profile. Contacts can be filtered by subscription status, by tag, and by an email search term. The `meta.total` field of the response is the number of contacts matching the filters, so calling this endpoint without filters gives the profile\'s total contact count.
16856
+ * @summary List profile contacts
16857
+ * @param {string} profileUuid Profile uuid parameter
16858
+ * @param {ListProfileContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
16859
+ * @param {string} [tagUuid] Filter contacts by tag UUID
16860
+ * @param {string} [search] Search contacts by email
16861
+ * @param {number} [page] Page number
16862
+ * @param {number} [perPage] Number of items per page
16863
+ * @param {*} [options] Override http request option.
16864
+ * @throws {RequiredError}
16865
+ * @memberof ReachContactsApi
16866
+ */
16867
+ listProfileContactsV1(profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options) {
16868
+ return (0, exports.ReachContactsApiFp)(this.configuration).listProfileContactsV1(profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options).then((request) => request(this.axios, this.basePath));
16869
+ }
16870
+ /**
16871
+ * Update a contact\'s attributes and custom field values. Only the properties present in the request body are changed, so a partial body is enough to change a single attribute. Sending a property as `null` clears it. The response carries the contact\'s core attributes. Read back its tags, custom field values, source and note with `GET /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`.
16872
+ * @summary Update a contact
16873
+ * @param {string} profileUuid Profile uuid parameter
16874
+ * @param {string} contactUuid Contact uuid parameter
16875
+ * @param {ReachV1ContactsUpdateRequest} reachV1ContactsUpdateRequest
16876
+ * @param {*} [options] Override http request option.
16877
+ * @throws {RequiredError}
16878
+ * @memberof ReachContactsApi
16879
+ */
16880
+ updateAContactV1(profileUuid, contactUuid, reachV1ContactsUpdateRequest, options) {
16881
+ return (0, exports.ReachContactsApiFp)(this.configuration).updateAContactV1(profileUuid, contactUuid, reachV1ContactsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
16882
+ }
15895
16883
  }
15896
16884
  exports.ReachContactsApi = ReachContactsApi;
15897
16885
  /**
@@ -15899,7 +16887,18 @@ exports.ReachContactsApi = ReachContactsApi;
15899
16887
  */
15900
16888
  exports.ListContactsV1SubscriptionStatusEnum = {
15901
16889
  Subscribed: 'subscribed',
15902
- Unsubscribed: 'unsubscribed'
16890
+ Unsubscribed: 'unsubscribed',
16891
+ Confirmed: 'confirmed',
16892
+ Pending: 'pending'
16893
+ };
16894
+ /**
16895
+ * @export
16896
+ */
16897
+ exports.ListProfileContactsV1SubscriptionStatusEnum = {
16898
+ Subscribed: 'subscribed',
16899
+ Unsubscribed: 'unsubscribed',
16900
+ Confirmed: 'confirmed',
16901
+ Pending: 'pending'
15903
16902
  };
15904
16903
  /**
15905
16904
  * ReachProfilesApi - axios parameter creator