hostinger-api-sdk 1.26.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.
- package/README.md +2 -2
- package/api.ts +1625 -119
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1074 -13
- package/dist/api.js +1067 -216
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +1074 -13
- package/dist/esm/api.js +1051 -205
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ReachContactFieldsApi.md +239 -0
- package/docs/ReachContactsApi.md +308 -4
- package/docs/ReachListProfileContactsV1200Response.md +22 -0
- package/docs/ReachV1ContactsBulkStoreRequest.md +25 -0
- package/docs/ReachV1ContactsBulkStoreRequestContactsInner.md +26 -0
- package/docs/ReachV1ContactsContactDetailsResource.md +46 -0
- package/docs/ReachV1ContactsFieldsContactFieldOptionResource.md +24 -0
- package/docs/ReachV1ContactsFieldsContactFieldResource.md +30 -0
- package/docs/ReachV1ContactsFieldsContactFieldValueResource.md +33 -0
- package/docs/ReachV1ContactsFieldsStoreRequest.md +25 -0
- package/docs/ReachV1ContactsFieldsUpdateRequest.md +23 -0
- package/docs/ReachV1ContactsFieldsUpdateRequestOptionsInner.md +22 -0
- package/docs/ReachV1ContactsProfileContactResource.md +38 -0
- package/docs/ReachV1ContactsProfileContactUpdateResource.md +34 -0
- package/docs/ReachV1ContactsTagsTagResource.md +26 -0
- package/docs/ReachV1ContactsUpdateRequest.md +33 -0
- package/docs/ReachV1ContactsUpdateRequestFieldsInner.md +24 -0
- package/index.ts +1 -1
- 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.
|
|
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
|
|
@@ -20,13 +20,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
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.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
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
|
|
@@ -359,23 +360,92 @@ exports.MailV1WebhooksWebhookSecretResourceStatusEnum = {
|
|
|
359
360
|
Disabled: 'disabled',
|
|
360
361
|
Paused: 'paused'
|
|
361
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
|
+
};
|
|
362
378
|
exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = {
|
|
363
379
|
Subscribed: 'subscribed',
|
|
364
|
-
Unsubscribed: 'unsubscribed'
|
|
380
|
+
Unsubscribed: 'unsubscribed',
|
|
381
|
+
Confirmed: 'confirmed',
|
|
382
|
+
Pending: 'pending'
|
|
365
383
|
};
|
|
366
384
|
exports.ReachV1ContactsContactResourceSourceEnum = {
|
|
367
385
|
Sync: 'sync',
|
|
368
386
|
Import: 'import',
|
|
369
|
-
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'
|
|
370
434
|
};
|
|
371
435
|
exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = {
|
|
372
436
|
Subscribed: 'subscribed',
|
|
373
|
-
Unsubscribed: 'unsubscribed'
|
|
437
|
+
Unsubscribed: 'unsubscribed',
|
|
438
|
+
Confirmed: 'confirmed',
|
|
439
|
+
Pending: 'pending'
|
|
374
440
|
};
|
|
375
441
|
exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = {
|
|
376
442
|
Sync: 'sync',
|
|
377
443
|
Import: 'import',
|
|
378
|
-
Manual: 'manual'
|
|
444
|
+
Manual: 'manual',
|
|
445
|
+
Api: 'api',
|
|
446
|
+
Form: 'form',
|
|
447
|
+
Checkout: 'checkout',
|
|
448
|
+
Horizons: 'horizons'
|
|
379
449
|
};
|
|
380
450
|
exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = {
|
|
381
451
|
And: 'AND',
|
|
@@ -429,6 +499,16 @@ exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = {
|
|
|
429
499
|
Tag: 'tag',
|
|
430
500
|
Campaigns: 'campaigns'
|
|
431
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
|
+
};
|
|
432
512
|
exports.VPSV1ActionActionResourceStateEnum = {
|
|
433
513
|
Success: 'success',
|
|
434
514
|
Error: 'error',
|
|
@@ -15641,59 +15721,25 @@ exports.ListWebhooksV1StatusEnum = {
|
|
|
15641
15721
|
Paused: 'paused'
|
|
15642
15722
|
};
|
|
15643
15723
|
/**
|
|
15644
|
-
*
|
|
15724
|
+
* ReachContactFieldsApi - axios parameter creator
|
|
15645
15725
|
* @export
|
|
15646
15726
|
*/
|
|
15647
|
-
const
|
|
15727
|
+
const ReachContactFieldsApiAxiosParamCreator = function (configuration) {
|
|
15648
15728
|
return {
|
|
15649
15729
|
/**
|
|
15650
|
-
*
|
|
15651
|
-
* @summary Create a
|
|
15652
|
-
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
15653
|
-
* @param {*} [options] Override http request option.
|
|
15654
|
-
* @deprecated
|
|
15655
|
-
* @throws {RequiredError}
|
|
15656
|
-
*/
|
|
15657
|
-
createANewContactV1: (reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsStoreRequest, options = {}) {
|
|
15658
|
-
// verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
|
|
15659
|
-
(0, common_1.assertParamExists)('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
|
|
15660
|
-
const localVarPath = `/api/reach/v1/contacts`;
|
|
15661
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15662
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15663
|
-
let baseOptions;
|
|
15664
|
-
if (configuration) {
|
|
15665
|
-
baseOptions = configuration.baseOptions;
|
|
15666
|
-
}
|
|
15667
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
15668
|
-
const localVarHeaderParameter = {};
|
|
15669
|
-
const localVarQueryParameter = {};
|
|
15670
|
-
// authentication apiToken required
|
|
15671
|
-
// http bearer authentication required
|
|
15672
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
15673
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15674
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15675
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15676
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15677
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
|
|
15678
|
-
return {
|
|
15679
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15680
|
-
options: localVarRequestOptions,
|
|
15681
|
-
};
|
|
15682
|
-
}),
|
|
15683
|
-
/**
|
|
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 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
|
|
15686
15732
|
* @param {string} profileUuid Profile uuid parameter
|
|
15687
|
-
* @param {
|
|
15733
|
+
* @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
|
|
15688
15734
|
* @param {*} [options] Override http request option.
|
|
15689
15735
|
* @throws {RequiredError}
|
|
15690
15736
|
*/
|
|
15691
|
-
|
|
15737
|
+
createAContactFieldV1: (profileUuid_1, reachV1ContactsFieldsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsFieldsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsFieldsStoreRequest, options = {}) {
|
|
15692
15738
|
// verify required parameter 'profileUuid' is not null or undefined
|
|
15693
|
-
(0, common_1.assertParamExists)('
|
|
15694
|
-
// verify required parameter '
|
|
15695
|
-
(0, common_1.assertParamExists)('
|
|
15696
|
-
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`
|
|
15697
15743
|
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
15698
15744
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15699
15745
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -15711,24 +15757,28 @@ const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
|
15711
15757
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15712
15758
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15713
15759
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15714
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
15760
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsFieldsStoreRequest, localVarRequestOptions, configuration);
|
|
15715
15761
|
return {
|
|
15716
15762
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15717
15763
|
options: localVarRequestOptions,
|
|
15718
15764
|
};
|
|
15719
15765
|
}),
|
|
15720
15766
|
/**
|
|
15721
|
-
* Delete a contact with the
|
|
15722
|
-
* @summary Delete a contact
|
|
15723
|
-
* @param {string}
|
|
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
|
|
15724
15771
|
* @param {*} [options] Override http request option.
|
|
15725
15772
|
* @throws {RequiredError}
|
|
15726
15773
|
*/
|
|
15727
|
-
|
|
15728
|
-
// verify required parameter '
|
|
15729
|
-
(0, common_1.assertParamExists)('
|
|
15730
|
-
|
|
15731
|
-
|
|
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)));
|
|
15732
15782
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15733
15783
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15734
15784
|
let baseOptions;
|
|
@@ -15750,14 +15800,17 @@ const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
|
15750
15800
|
};
|
|
15751
15801
|
}),
|
|
15752
15802
|
/**
|
|
15753
|
-
* Get
|
|
15754
|
-
* @summary List contact
|
|
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
|
|
15755
15806
|
* @param {*} [options] Override http request option.
|
|
15756
|
-
* @deprecated
|
|
15757
15807
|
* @throws {RequiredError}
|
|
15758
15808
|
*/
|
|
15759
|
-
|
|
15760
|
-
|
|
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)));
|
|
15761
15814
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15762
15815
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15763
15816
|
let baseOptions;
|
|
@@ -15779,40 +15832,41 @@ const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
|
15779
15832
|
};
|
|
15780
15833
|
}),
|
|
15781
15834
|
/**
|
|
15782
|
-
*
|
|
15783
|
-
* @summary
|
|
15784
|
-
* @param {string}
|
|
15785
|
-
* @param {
|
|
15786
|
-
* @param {
|
|
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
|
|
15787
15840
|
* @param {*} [options] Override http request option.
|
|
15788
15841
|
* @throws {RequiredError}
|
|
15789
15842
|
*/
|
|
15790
|
-
|
|
15791
|
-
|
|
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)));
|
|
15792
15853
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15793
15854
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15794
15855
|
let baseOptions;
|
|
15795
15856
|
if (configuration) {
|
|
15796
15857
|
baseOptions = configuration.baseOptions;
|
|
15797
15858
|
}
|
|
15798
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
15859
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
15799
15860
|
const localVarHeaderParameter = {};
|
|
15800
15861
|
const localVarQueryParameter = {};
|
|
15801
15862
|
// authentication apiToken required
|
|
15802
15863
|
// http bearer authentication required
|
|
15803
15864
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
15804
|
-
|
|
15805
|
-
localVarQueryParameter['group_uuid'] = groupUuid;
|
|
15806
|
-
}
|
|
15807
|
-
if (subscriptionStatus !== undefined) {
|
|
15808
|
-
localVarQueryParameter['subscription_status'] = subscriptionStatus;
|
|
15809
|
-
}
|
|
15810
|
-
if (page !== undefined) {
|
|
15811
|
-
localVarQueryParameter['page'] = page;
|
|
15812
|
-
}
|
|
15865
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15813
15866
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15814
15867
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15815
15868
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15869
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsFieldsUpdateRequest, localVarRequestOptions, configuration);
|
|
15816
15870
|
return {
|
|
15817
15871
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15818
15872
|
options: localVarRequestOptions,
|
|
@@ -15820,234 +15874,1031 @@ const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
|
15820
15874
|
}),
|
|
15821
15875
|
};
|
|
15822
15876
|
};
|
|
15823
|
-
exports.
|
|
15877
|
+
exports.ReachContactFieldsApiAxiosParamCreator = ReachContactFieldsApiAxiosParamCreator;
|
|
15824
15878
|
/**
|
|
15825
|
-
*
|
|
15879
|
+
* ReachContactFieldsApi - functional programming interface
|
|
15826
15880
|
* @export
|
|
15827
15881
|
*/
|
|
15828
|
-
const
|
|
15829
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
15882
|
+
const ReachContactFieldsApiFp = function (configuration) {
|
|
15883
|
+
const localVarAxiosParamCreator = (0, exports.ReachContactFieldsApiAxiosParamCreator)(configuration);
|
|
15830
15884
|
return {
|
|
15831
15885
|
/**
|
|
15832
|
-
*
|
|
15833
|
-
* @summary Create a
|
|
15834
|
-
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
15835
|
-
* @param {*} [options] Override http request option.
|
|
15836
|
-
* @deprecated
|
|
15837
|
-
* @throws {RequiredError}
|
|
15838
|
-
*/
|
|
15839
|
-
createANewContactV1(reachV1ContactsStoreRequest, options) {
|
|
15840
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
15841
|
-
var _a, _b;
|
|
15842
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createANewContactV1(reachV1ContactsStoreRequest, options);
|
|
15843
|
-
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;
|
|
15844
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15845
|
-
});
|
|
15846
|
-
},
|
|
15847
|
-
/**
|
|
15848
|
-
* 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.
|
|
15849
|
-
* @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
|
|
15850
15888
|
* @param {string} profileUuid Profile uuid parameter
|
|
15851
|
-
* @param {
|
|
15889
|
+
* @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
|
|
15852
15890
|
* @param {*} [options] Override http request option.
|
|
15853
15891
|
* @throws {RequiredError}
|
|
15854
15892
|
*/
|
|
15855
|
-
|
|
15893
|
+
createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options) {
|
|
15856
15894
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15857
15895
|
var _a, _b;
|
|
15858
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
15859
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['
|
|
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;
|
|
15860
15898
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15861
15899
|
});
|
|
15862
15900
|
},
|
|
15863
15901
|
/**
|
|
15864
|
-
* Delete a contact with the
|
|
15865
|
-
* @summary Delete a contact
|
|
15866
|
-
* @param {string}
|
|
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
|
|
15867
15906
|
* @param {*} [options] Override http request option.
|
|
15868
15907
|
* @throws {RequiredError}
|
|
15869
15908
|
*/
|
|
15870
|
-
|
|
15909
|
+
deleteAContactFieldV1(profileUuid, fieldUuid, options) {
|
|
15871
15910
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15872
15911
|
var _a, _b;
|
|
15873
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
15874
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['
|
|
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;
|
|
15875
15914
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15876
15915
|
});
|
|
15877
15916
|
},
|
|
15878
15917
|
/**
|
|
15879
|
-
* Get
|
|
15880
|
-
* @summary List contact
|
|
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
|
|
15881
15921
|
* @param {*} [options] Override http request option.
|
|
15882
|
-
* @deprecated
|
|
15883
15922
|
* @throws {RequiredError}
|
|
15884
15923
|
*/
|
|
15885
|
-
|
|
15924
|
+
listContactFieldsV1(profileUuid, options) {
|
|
15886
15925
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15887
15926
|
var _a, _b;
|
|
15888
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
15889
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['
|
|
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;
|
|
15890
15929
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15891
15930
|
});
|
|
15892
15931
|
},
|
|
15893
15932
|
/**
|
|
15894
|
-
*
|
|
15895
|
-
* @summary
|
|
15896
|
-
* @param {string}
|
|
15897
|
-
* @param {
|
|
15898
|
-
* @param {
|
|
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
|
|
15899
15938
|
* @param {*} [options] Override http request option.
|
|
15900
15939
|
* @throws {RequiredError}
|
|
15901
15940
|
*/
|
|
15902
|
-
|
|
15941
|
+
updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options) {
|
|
15903
15942
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15904
15943
|
var _a, _b;
|
|
15905
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
15906
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['
|
|
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;
|
|
15907
15946
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15908
15947
|
});
|
|
15909
15948
|
},
|
|
15910
15949
|
};
|
|
15911
15950
|
};
|
|
15912
|
-
exports.
|
|
15951
|
+
exports.ReachContactFieldsApiFp = ReachContactFieldsApiFp;
|
|
15913
15952
|
/**
|
|
15914
|
-
*
|
|
15953
|
+
* ReachContactFieldsApi - factory interface
|
|
15915
15954
|
* @export
|
|
15916
15955
|
*/
|
|
15917
|
-
const
|
|
15918
|
-
const localVarFp = (0, exports.
|
|
15956
|
+
const ReachContactFieldsApiFactory = function (configuration, basePath, axios) {
|
|
15957
|
+
const localVarFp = (0, exports.ReachContactFieldsApiFp)(configuration);
|
|
15919
15958
|
return {
|
|
15920
15959
|
/**
|
|
15921
|
-
*
|
|
15922
|
-
* @summary Create a
|
|
15923
|
-
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
15924
|
-
* @param {*} [options] Override http request option.
|
|
15925
|
-
* @deprecated
|
|
15926
|
-
* @throws {RequiredError}
|
|
15927
|
-
*/
|
|
15928
|
-
createANewContactV1(reachV1ContactsStoreRequest, options) {
|
|
15929
|
-
return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
|
|
15930
|
-
},
|
|
15931
|
-
/**
|
|
15932
|
-
* 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.
|
|
15933
|
-
* @summary Create new contacts
|
|
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
|
|
15934
15962
|
* @param {string} profileUuid Profile uuid parameter
|
|
15935
|
-
* @param {
|
|
15963
|
+
* @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
|
|
15936
15964
|
* @param {*} [options] Override http request option.
|
|
15937
15965
|
* @throws {RequiredError}
|
|
15938
15966
|
*/
|
|
15939
|
-
|
|
15940
|
-
return localVarFp.
|
|
15967
|
+
createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options) {
|
|
15968
|
+
return localVarFp.createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options).then((request) => request(axios, basePath));
|
|
15941
15969
|
},
|
|
15942
15970
|
/**
|
|
15943
|
-
* Delete a contact with the
|
|
15944
|
-
* @summary Delete a contact
|
|
15945
|
-
* @param {string}
|
|
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
|
|
15946
15975
|
* @param {*} [options] Override http request option.
|
|
15947
15976
|
* @throws {RequiredError}
|
|
15948
15977
|
*/
|
|
15949
|
-
|
|
15950
|
-
return localVarFp.
|
|
15978
|
+
deleteAContactFieldV1(profileUuid, fieldUuid, options) {
|
|
15979
|
+
return localVarFp.deleteAContactFieldV1(profileUuid, fieldUuid, options).then((request) => request(axios, basePath));
|
|
15951
15980
|
},
|
|
15952
15981
|
/**
|
|
15953
|
-
* Get
|
|
15954
|
-
* @summary List contact
|
|
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
|
|
15955
15985
|
* @param {*} [options] Override http request option.
|
|
15956
|
-
* @deprecated
|
|
15957
15986
|
* @throws {RequiredError}
|
|
15958
15987
|
*/
|
|
15959
|
-
|
|
15960
|
-
return localVarFp.
|
|
15988
|
+
listContactFieldsV1(profileUuid, options) {
|
|
15989
|
+
return localVarFp.listContactFieldsV1(profileUuid, options).then((request) => request(axios, basePath));
|
|
15961
15990
|
},
|
|
15962
15991
|
/**
|
|
15963
|
-
*
|
|
15964
|
-
* @summary
|
|
15965
|
-
* @param {string}
|
|
15966
|
-
* @param {
|
|
15967
|
-
* @param {
|
|
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
|
|
15968
15997
|
* @param {*} [options] Override http request option.
|
|
15969
15998
|
* @throws {RequiredError}
|
|
15970
15999
|
*/
|
|
15971
|
-
|
|
15972
|
-
return localVarFp.
|
|
16000
|
+
updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options) {
|
|
16001
|
+
return localVarFp.updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options).then((request) => request(axios, basePath));
|
|
15973
16002
|
},
|
|
15974
16003
|
};
|
|
15975
16004
|
};
|
|
15976
|
-
exports.
|
|
16005
|
+
exports.ReachContactFieldsApiFactory = ReachContactFieldsApiFactory;
|
|
15977
16006
|
/**
|
|
15978
|
-
*
|
|
16007
|
+
* ReachContactFieldsApi - object-oriented interface
|
|
15979
16008
|
* @export
|
|
15980
|
-
* @class
|
|
16009
|
+
* @class ReachContactFieldsApi
|
|
15981
16010
|
* @extends {BaseAPI}
|
|
15982
16011
|
*/
|
|
15983
|
-
class
|
|
15984
|
-
/**
|
|
15985
|
-
* 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.
|
|
15986
|
-
* @summary Create a new contact
|
|
15987
|
-
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
15988
|
-
* @param {*} [options] Override http request option.
|
|
15989
|
-
* @deprecated
|
|
15990
|
-
* @throws {RequiredError}
|
|
15991
|
-
* @memberof ReachContactsApi
|
|
15992
|
-
*/
|
|
15993
|
-
createANewContactV1(reachV1ContactsStoreRequest, options) {
|
|
15994
|
-
return (0, exports.ReachContactsApiFp)(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15995
|
-
}
|
|
16012
|
+
class ReachContactFieldsApi extends base_1.BaseAPI {
|
|
15996
16013
|
/**
|
|
15997
|
-
*
|
|
15998
|
-
* @summary Create
|
|
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
|
|
15999
16016
|
* @param {string} profileUuid Profile uuid parameter
|
|
16000
|
-
* @param {
|
|
16017
|
+
* @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
|
|
16001
16018
|
* @param {*} [options] Override http request option.
|
|
16002
16019
|
* @throws {RequiredError}
|
|
16003
|
-
* @memberof
|
|
16020
|
+
* @memberof ReachContactFieldsApi
|
|
16004
16021
|
*/
|
|
16005
|
-
|
|
16006
|
-
return (0, exports.
|
|
16022
|
+
createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options) {
|
|
16023
|
+
return (0, exports.ReachContactFieldsApiFp)(this.configuration).createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16007
16024
|
}
|
|
16008
16025
|
/**
|
|
16009
|
-
* Delete a contact with the
|
|
16010
|
-
* @summary Delete a contact
|
|
16011
|
-
* @param {string}
|
|
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
|
|
16012
16030
|
* @param {*} [options] Override http request option.
|
|
16013
16031
|
* @throws {RequiredError}
|
|
16014
|
-
* @memberof
|
|
16032
|
+
* @memberof ReachContactFieldsApi
|
|
16015
16033
|
*/
|
|
16016
|
-
|
|
16017
|
-
return (0, exports.
|
|
16034
|
+
deleteAContactFieldV1(profileUuid, fieldUuid, options) {
|
|
16035
|
+
return (0, exports.ReachContactFieldsApiFp)(this.configuration).deleteAContactFieldV1(profileUuid, fieldUuid, options).then((request) => request(this.axios, this.basePath));
|
|
16018
16036
|
}
|
|
16019
16037
|
/**
|
|
16020
|
-
* Get
|
|
16021
|
-
* @summary List contact
|
|
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
|
|
16022
16041
|
* @param {*} [options] Override http request option.
|
|
16023
|
-
* @deprecated
|
|
16024
16042
|
* @throws {RequiredError}
|
|
16025
|
-
* @memberof
|
|
16043
|
+
* @memberof ReachContactFieldsApi
|
|
16026
16044
|
*/
|
|
16027
|
-
|
|
16028
|
-
return (0, exports.
|
|
16045
|
+
listContactFieldsV1(profileUuid, options) {
|
|
16046
|
+
return (0, exports.ReachContactFieldsApiFp)(this.configuration).listContactFieldsV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
|
|
16029
16047
|
}
|
|
16030
16048
|
/**
|
|
16031
|
-
*
|
|
16032
|
-
* @summary
|
|
16033
|
-
* @param {string}
|
|
16034
|
-
* @param {
|
|
16035
|
-
* @param {
|
|
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
|
|
16036
16054
|
* @param {*} [options] Override http request option.
|
|
16037
16055
|
* @throws {RequiredError}
|
|
16038
|
-
* @memberof
|
|
16056
|
+
* @memberof ReachContactFieldsApi
|
|
16039
16057
|
*/
|
|
16040
|
-
|
|
16041
|
-
return (0, exports.
|
|
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));
|
|
16042
16060
|
}
|
|
16043
16061
|
}
|
|
16044
|
-
exports.
|
|
16062
|
+
exports.ReachContactFieldsApi = ReachContactFieldsApi;
|
|
16045
16063
|
/**
|
|
16064
|
+
* ReachContactsApi - axios parameter creator
|
|
16046
16065
|
* @export
|
|
16047
16066
|
*/
|
|
16048
|
-
|
|
16049
|
-
|
|
16050
|
-
|
|
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.
|
|
16633
|
+
* @summary Create a new contact
|
|
16634
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
16635
|
+
* @param {*} [options] Override http request option.
|
|
16636
|
+
* @deprecated
|
|
16637
|
+
* @throws {RequiredError}
|
|
16638
|
+
*/
|
|
16639
|
+
createANewContactV1(reachV1ContactsStoreRequest, options) {
|
|
16640
|
+
return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
|
|
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
|
+
},
|
|
16653
|
+
/**
|
|
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.
|
|
16655
|
+
* @summary Create new contacts
|
|
16656
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
16657
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
16658
|
+
* @param {*} [options] Override http request option.
|
|
16659
|
+
* @throws {RequiredError}
|
|
16660
|
+
*/
|
|
16661
|
+
createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options) {
|
|
16662
|
+
return localVarFp.createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
|
|
16663
|
+
},
|
|
16664
|
+
/**
|
|
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.
|
|
16666
|
+
* @summary Delete a contact
|
|
16667
|
+
* @param {string} uuid UUID of the contact to delete
|
|
16668
|
+
* @param {*} [options] Override http request option.
|
|
16669
|
+
* @deprecated
|
|
16670
|
+
* @throws {RequiredError}
|
|
16671
|
+
*/
|
|
16672
|
+
deleteAContactV1(uuid, options) {
|
|
16673
|
+
return localVarFp.deleteAContactV1(uuid, options).then((request) => request(axios, basePath));
|
|
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
|
+
},
|
|
16697
|
+
/**
|
|
16698
|
+
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
16699
|
+
* @summary List contact groups
|
|
16700
|
+
* @param {*} [options] Override http request option.
|
|
16701
|
+
* @deprecated
|
|
16702
|
+
* @throws {RequiredError}
|
|
16703
|
+
*/
|
|
16704
|
+
listContactGroupsV1(options) {
|
|
16705
|
+
return localVarFp.listContactGroupsV1(options).then((request) => request(axios, basePath));
|
|
16706
|
+
},
|
|
16707
|
+
/**
|
|
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.
|
|
16709
|
+
* @summary List contacts
|
|
16710
|
+
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
16711
|
+
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
16712
|
+
* @param {number} [page] Page number
|
|
16713
|
+
* @param {*} [options] Override http request option.
|
|
16714
|
+
* @deprecated
|
|
16715
|
+
* @throws {RequiredError}
|
|
16716
|
+
*/
|
|
16717
|
+
listContactsV1(groupUuid, subscriptionStatus, page, options) {
|
|
16718
|
+
return localVarFp.listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(axios, basePath));
|
|
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
|
+
},
|
|
16747
|
+
};
|
|
16748
|
+
};
|
|
16749
|
+
exports.ReachContactsApiFactory = ReachContactsApiFactory;
|
|
16750
|
+
/**
|
|
16751
|
+
* ReachContactsApi - object-oriented interface
|
|
16752
|
+
* @export
|
|
16753
|
+
* @class ReachContactsApi
|
|
16754
|
+
* @extends {BaseAPI}
|
|
16755
|
+
*/
|
|
16756
|
+
class ReachContactsApi extends base_1.BaseAPI {
|
|
16757
|
+
/**
|
|
16758
|
+
* 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.
|
|
16759
|
+
* @summary Create a new contact
|
|
16760
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
16761
|
+
* @param {*} [options] Override http request option.
|
|
16762
|
+
* @deprecated
|
|
16763
|
+
* @throws {RequiredError}
|
|
16764
|
+
* @memberof ReachContactsApi
|
|
16765
|
+
*/
|
|
16766
|
+
createANewContactV1(reachV1ContactsStoreRequest, options) {
|
|
16767
|
+
return (0, exports.ReachContactsApiFp)(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
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
|
+
}
|
|
16781
|
+
/**
|
|
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.
|
|
16783
|
+
* @summary Create new contacts
|
|
16784
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
16785
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
16786
|
+
* @param {*} [options] Override http request option.
|
|
16787
|
+
* @throws {RequiredError}
|
|
16788
|
+
* @memberof ReachContactsApi
|
|
16789
|
+
*/
|
|
16790
|
+
createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options) {
|
|
16791
|
+
return (0, exports.ReachContactsApiFp)(this.configuration).createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16792
|
+
}
|
|
16793
|
+
/**
|
|
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.
|
|
16795
|
+
* @summary Delete a contact
|
|
16796
|
+
* @param {string} uuid UUID of the contact to delete
|
|
16797
|
+
* @param {*} [options] Override http request option.
|
|
16798
|
+
* @deprecated
|
|
16799
|
+
* @throws {RequiredError}
|
|
16800
|
+
* @memberof ReachContactsApi
|
|
16801
|
+
*/
|
|
16802
|
+
deleteAContactV1(uuid, options) {
|
|
16803
|
+
return (0, exports.ReachContactsApiFp)(this.configuration).deleteAContactV1(uuid, options).then((request) => request(this.axios, this.basePath));
|
|
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
|
+
}
|
|
16829
|
+
/**
|
|
16830
|
+
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
16831
|
+
* @summary List contact groups
|
|
16832
|
+
* @param {*} [options] Override http request option.
|
|
16833
|
+
* @deprecated
|
|
16834
|
+
* @throws {RequiredError}
|
|
16835
|
+
* @memberof ReachContactsApi
|
|
16836
|
+
*/
|
|
16837
|
+
listContactGroupsV1(options) {
|
|
16838
|
+
return (0, exports.ReachContactsApiFp)(this.configuration).listContactGroupsV1(options).then((request) => request(this.axios, this.basePath));
|
|
16839
|
+
}
|
|
16840
|
+
/**
|
|
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.
|
|
16842
|
+
* @summary List contacts
|
|
16843
|
+
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
16844
|
+
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
16845
|
+
* @param {number} [page] Page number
|
|
16846
|
+
* @param {*} [options] Override http request option.
|
|
16847
|
+
* @deprecated
|
|
16848
|
+
* @throws {RequiredError}
|
|
16849
|
+
* @memberof ReachContactsApi
|
|
16850
|
+
*/
|
|
16851
|
+
listContactsV1(groupUuid, subscriptionStatus, page, options) {
|
|
16852
|
+
return (0, exports.ReachContactsApiFp)(this.configuration).listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(this.axios, this.basePath));
|
|
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
|
+
}
|
|
16883
|
+
}
|
|
16884
|
+
exports.ReachContactsApi = ReachContactsApi;
|
|
16885
|
+
/**
|
|
16886
|
+
* @export
|
|
16887
|
+
*/
|
|
16888
|
+
exports.ListContactsV1SubscriptionStatusEnum = {
|
|
16889
|
+
Subscribed: 'subscribed',
|
|
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'
|
|
16051
16902
|
};
|
|
16052
16903
|
/**
|
|
16053
16904
|
* ReachProfilesApi - axios parameter creator
|