hostinger-api-sdk 1.26.0 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +2789 -531
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1522 -78
- package/dist/api.js +2011 -490
- 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 +1522 -78
- package/dist/esm/api.js +1935 -423
- 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/ReachTagsApi.md +483 -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/ReachV1ContactsTagsManageContactsRequest.md +23 -0
- package/docs/ReachV1ContactsTagsStoreRequest.md +21 -0
- package/docs/ReachV1ContactsTagsTagResource.md +26 -0
- package/docs/ReachV1ContactsTagsUpdateRequest.md +21 -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.29.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -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.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachTagsApi = exports.ReachTagsApiFactory = exports.ReachTagsApiFp = exports.ReachTagsApiAxiosParamCreator = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListProfileContactsV1SubscriptionStatusEnum = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ReachContactFieldsApi = exports.ReachContactFieldsApiFactory = exports.ReachContactFieldsApiFp = exports.ReachContactFieldsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = exports.MailWebhooksApi = void 0;
|
|
29
|
+
exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = void 0;
|
|
30
|
+
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = void 0;
|
|
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,453 +15874,1778 @@ 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.
|
|
16045
|
-
/**
|
|
16046
|
-
* @export
|
|
16047
|
-
*/
|
|
16048
|
-
exports.ListContactsV1SubscriptionStatusEnum = {
|
|
16049
|
-
Subscribed: 'subscribed',
|
|
16050
|
-
Unsubscribed: 'unsubscribed'
|
|
16051
|
-
};
|
|
16062
|
+
exports.ReachContactFieldsApi = ReachContactFieldsApi;
|
|
16052
16063
|
/**
|
|
16053
|
-
*
|
|
16064
|
+
* ReachContactsApi - axios parameter creator
|
|
16054
16065
|
* @export
|
|
16055
16066
|
*/
|
|
16056
|
-
const
|
|
16067
|
+
const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
16057
16068
|
return {
|
|
16058
16069
|
/**
|
|
16059
|
-
*
|
|
16060
|
-
* @summary
|
|
16061
|
-
* @param {
|
|
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
|
|
16062
16073
|
* @param {*} [options] Override http request option.
|
|
16074
|
+
* @deprecated
|
|
16063
16075
|
* @throws {RequiredError}
|
|
16064
16076
|
*/
|
|
16065
|
-
|
|
16066
|
-
// verify required parameter '
|
|
16067
|
-
(0, common_1.assertParamExists)('
|
|
16068
|
-
const localVarPath = `/api/reach/v1/
|
|
16069
|
-
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
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`;
|
|
16070
16081
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16071
16082
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16072
16083
|
let baseOptions;
|
|
16073
16084
|
if (configuration) {
|
|
16074
16085
|
baseOptions = configuration.baseOptions;
|
|
16075
16086
|
}
|
|
16076
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
16087
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16077
16088
|
const localVarHeaderParameter = {};
|
|
16078
16089
|
const localVarQueryParameter = {};
|
|
16079
16090
|
// authentication apiToken required
|
|
16080
16091
|
// http bearer authentication required
|
|
16081
16092
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
16093
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16082
16094
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16083
16095
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16084
16096
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16097
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
|
|
16085
16098
|
return {
|
|
16086
16099
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16087
16100
|
options: localVarRequestOptions,
|
|
16088
16101
|
};
|
|
16089
16102
|
}),
|
|
16090
16103
|
/**
|
|
16091
|
-
*
|
|
16092
|
-
* @summary
|
|
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
|
|
16093
16108
|
* @param {*} [options] Override http request option.
|
|
16094
16109
|
* @throws {RequiredError}
|
|
16095
16110
|
*/
|
|
16096
|
-
|
|
16097
|
-
|
|
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)));
|
|
16098
16118
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16099
16119
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16100
16120
|
let baseOptions;
|
|
16101
16121
|
if (configuration) {
|
|
16102
16122
|
baseOptions = configuration.baseOptions;
|
|
16103
16123
|
}
|
|
16104
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
16124
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16105
16125
|
const localVarHeaderParameter = {};
|
|
16106
16126
|
const localVarQueryParameter = {};
|
|
16107
16127
|
// authentication apiToken required
|
|
16108
16128
|
// http bearer authentication required
|
|
16109
16129
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
16130
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16110
16131
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16111
16132
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16112
16133
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16134
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsBulkStoreRequest, localVarRequestOptions, configuration);
|
|
16113
16135
|
return {
|
|
16114
16136
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16115
16137
|
options: localVarRequestOptions,
|
|
16116
16138
|
};
|
|
16117
16139
|
}),
|
|
16118
|
-
};
|
|
16119
|
-
};
|
|
16120
|
-
exports.ReachProfilesApiAxiosParamCreator = ReachProfilesApiAxiosParamCreator;
|
|
16121
|
-
/**
|
|
16122
|
-
* ReachProfilesApi - functional programming interface
|
|
16123
|
-
* @export
|
|
16124
|
-
*/
|
|
16125
|
-
const ReachProfilesApiFp = function (configuration) {
|
|
16126
|
-
const localVarAxiosParamCreator = (0, exports.ReachProfilesApiAxiosParamCreator)(configuration);
|
|
16127
|
-
return {
|
|
16128
16140
|
/**
|
|
16129
|
-
*
|
|
16130
|
-
* @summary
|
|
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
|
|
16131
16143
|
* @param {string} profileUuid Profile uuid parameter
|
|
16144
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
16132
16145
|
* @param {*} [options] Override http request option.
|
|
16133
16146
|
* @throws {RequiredError}
|
|
16134
16147
|
*/
|
|
16135
|
-
|
|
16136
|
-
|
|
16137
|
-
|
|
16138
|
-
|
|
16139
|
-
|
|
16140
|
-
|
|
16141
|
-
|
|
16142
|
-
|
|
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
|
+
}),
|
|
16143
16177
|
/**
|
|
16144
|
-
* This endpoint
|
|
16145
|
-
* @summary
|
|
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
|
|
16146
16181
|
* @param {*} [options] Override http request option.
|
|
16182
|
+
* @deprecated
|
|
16147
16183
|
* @throws {RequiredError}
|
|
16148
16184
|
*/
|
|
16149
|
-
|
|
16150
|
-
|
|
16151
|
-
|
|
16152
|
-
|
|
16153
|
-
|
|
16154
|
-
|
|
16155
|
-
|
|
16156
|
-
|
|
16157
|
-
|
|
16158
|
-
|
|
16159
|
-
|
|
16160
|
-
|
|
16161
|
-
|
|
16162
|
-
|
|
16163
|
-
|
|
16164
|
-
|
|
16165
|
-
|
|
16166
|
-
|
|
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
|
+
}),
|
|
16167
16210
|
/**
|
|
16168
|
-
*
|
|
16169
|
-
* @summary
|
|
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
|
|
16170
16213
|
* @param {string} profileUuid Profile uuid parameter
|
|
16214
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
16171
16215
|
* @param {*} [options] Override http request option.
|
|
16172
16216
|
* @throws {RequiredError}
|
|
16173
16217
|
*/
|
|
16174
|
-
|
|
16175
|
-
|
|
16176
|
-
|
|
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
|
+
}),
|
|
16177
16246
|
/**
|
|
16178
|
-
*
|
|
16179
|
-
* @summary
|
|
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
|
|
16180
16251
|
* @param {*} [options] Override http request option.
|
|
16181
16252
|
* @throws {RequiredError}
|
|
16182
16253
|
*/
|
|
16183
|
-
|
|
16184
|
-
|
|
16185
|
-
|
|
16186
|
-
|
|
16187
|
-
|
|
16188
|
-
|
|
16189
|
-
|
|
16190
|
-
|
|
16191
|
-
|
|
16192
|
-
|
|
16193
|
-
|
|
16194
|
-
|
|
16195
|
-
|
|
16196
|
-
|
|
16197
|
-
|
|
16198
|
-
|
|
16199
|
-
|
|
16200
|
-
|
|
16201
|
-
|
|
16202
|
-
|
|
16203
|
-
|
|
16204
|
-
|
|
16205
|
-
|
|
16206
|
-
|
|
16207
|
-
|
|
16208
|
-
|
|
16209
|
-
|
|
16210
|
-
|
|
16211
|
-
* @throws {RequiredError}
|
|
16212
|
-
* @memberof ReachProfilesApi
|
|
16213
|
-
*/
|
|
16214
|
-
listProfilesV1(options) {
|
|
16215
|
-
return (0, exports.ReachProfilesApiFp)(this.configuration).listProfilesV1(options).then((request) => request(this.axios, this.basePath));
|
|
16216
|
-
}
|
|
16217
|
-
}
|
|
16218
|
-
exports.ReachProfilesApi = ReachProfilesApi;
|
|
16219
|
-
/**
|
|
16220
|
-
* ReachSegmentsApi - axios parameter creator
|
|
16221
|
-
* @export
|
|
16222
|
-
*/
|
|
16223
|
-
const ReachSegmentsApiAxiosParamCreator = function (configuration) {
|
|
16224
|
-
return {
|
|
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
|
+
}),
|
|
16225
16282
|
/**
|
|
16226
|
-
*
|
|
16227
|
-
* @summary
|
|
16228
|
-
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
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
|
|
16229
16285
|
* @param {*} [options] Override http request option.
|
|
16286
|
+
* @deprecated
|
|
16230
16287
|
* @throws {RequiredError}
|
|
16231
16288
|
*/
|
|
16232
|
-
|
|
16233
|
-
|
|
16234
|
-
|
|
16235
|
-
const
|
|
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'
|
|
16902
|
+
};
|
|
16903
|
+
/**
|
|
16904
|
+
* ReachProfilesApi - axios parameter creator
|
|
16905
|
+
* @export
|
|
16906
|
+
*/
|
|
16907
|
+
const ReachProfilesApiAxiosParamCreator = function (configuration) {
|
|
16908
|
+
return {
|
|
16909
|
+
/**
|
|
16910
|
+
* Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
|
|
16911
|
+
* @summary Get profile domain DNS status
|
|
16912
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
16913
|
+
* @param {*} [options] Override http request option.
|
|
16914
|
+
* @throws {RequiredError}
|
|
16915
|
+
*/
|
|
16916
|
+
getProfileDomainDNSStatusV1: (profileUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, ...args_1], void 0, function* (profileUuid, options = {}) {
|
|
16917
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
16918
|
+
(0, common_1.assertParamExists)('getProfileDomainDNSStatusV1', 'profileUuid', profileUuid);
|
|
16919
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/domains/dns-status`
|
|
16920
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
16921
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16922
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16923
|
+
let baseOptions;
|
|
16924
|
+
if (configuration) {
|
|
16925
|
+
baseOptions = configuration.baseOptions;
|
|
16926
|
+
}
|
|
16927
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
16928
|
+
const localVarHeaderParameter = {};
|
|
16929
|
+
const localVarQueryParameter = {};
|
|
16930
|
+
// authentication apiToken required
|
|
16931
|
+
// http bearer authentication required
|
|
16932
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
16933
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16934
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16935
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16936
|
+
return {
|
|
16937
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16938
|
+
options: localVarRequestOptions,
|
|
16939
|
+
};
|
|
16940
|
+
}),
|
|
16941
|
+
/**
|
|
16942
|
+
* This endpoint returns all profiles available to the client, including their basic information.
|
|
16943
|
+
* @summary List Profiles
|
|
16944
|
+
* @param {*} [options] Override http request option.
|
|
16945
|
+
* @throws {RequiredError}
|
|
16946
|
+
*/
|
|
16947
|
+
listProfilesV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
16948
|
+
const localVarPath = `/api/reach/v1/profiles`;
|
|
16949
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16950
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16951
|
+
let baseOptions;
|
|
16952
|
+
if (configuration) {
|
|
16953
|
+
baseOptions = configuration.baseOptions;
|
|
16954
|
+
}
|
|
16955
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
16956
|
+
const localVarHeaderParameter = {};
|
|
16957
|
+
const localVarQueryParameter = {};
|
|
16958
|
+
// authentication apiToken required
|
|
16959
|
+
// http bearer authentication required
|
|
16960
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
16961
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16962
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16963
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16964
|
+
return {
|
|
16965
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16966
|
+
options: localVarRequestOptions,
|
|
16967
|
+
};
|
|
16968
|
+
}),
|
|
16969
|
+
};
|
|
16970
|
+
};
|
|
16971
|
+
exports.ReachProfilesApiAxiosParamCreator = ReachProfilesApiAxiosParamCreator;
|
|
16972
|
+
/**
|
|
16973
|
+
* ReachProfilesApi - functional programming interface
|
|
16974
|
+
* @export
|
|
16975
|
+
*/
|
|
16976
|
+
const ReachProfilesApiFp = function (configuration) {
|
|
16977
|
+
const localVarAxiosParamCreator = (0, exports.ReachProfilesApiAxiosParamCreator)(configuration);
|
|
16978
|
+
return {
|
|
16979
|
+
/**
|
|
16980
|
+
* Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
|
|
16981
|
+
* @summary Get profile domain DNS status
|
|
16982
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
16983
|
+
* @param {*} [options] Override http request option.
|
|
16984
|
+
* @throws {RequiredError}
|
|
16985
|
+
*/
|
|
16986
|
+
getProfileDomainDNSStatusV1(profileUuid, options) {
|
|
16987
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16988
|
+
var _a, _b;
|
|
16989
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProfileDomainDNSStatusV1(profileUuid, options);
|
|
16990
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachProfilesApi.getProfileDomainDNSStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
16991
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16992
|
+
});
|
|
16993
|
+
},
|
|
16994
|
+
/**
|
|
16995
|
+
* This endpoint returns all profiles available to the client, including their basic information.
|
|
16996
|
+
* @summary List Profiles
|
|
16997
|
+
* @param {*} [options] Override http request option.
|
|
16998
|
+
* @throws {RequiredError}
|
|
16999
|
+
*/
|
|
17000
|
+
listProfilesV1(options) {
|
|
17001
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17002
|
+
var _a, _b;
|
|
17003
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfilesV1(options);
|
|
17004
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachProfilesApi.listProfilesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17005
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17006
|
+
});
|
|
17007
|
+
},
|
|
17008
|
+
};
|
|
17009
|
+
};
|
|
17010
|
+
exports.ReachProfilesApiFp = ReachProfilesApiFp;
|
|
17011
|
+
/**
|
|
17012
|
+
* ReachProfilesApi - factory interface
|
|
17013
|
+
* @export
|
|
17014
|
+
*/
|
|
17015
|
+
const ReachProfilesApiFactory = function (configuration, basePath, axios) {
|
|
17016
|
+
const localVarFp = (0, exports.ReachProfilesApiFp)(configuration);
|
|
17017
|
+
return {
|
|
17018
|
+
/**
|
|
17019
|
+
* Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
|
|
17020
|
+
* @summary Get profile domain DNS status
|
|
17021
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17022
|
+
* @param {*} [options] Override http request option.
|
|
17023
|
+
* @throws {RequiredError}
|
|
17024
|
+
*/
|
|
17025
|
+
getProfileDomainDNSStatusV1(profileUuid, options) {
|
|
17026
|
+
return localVarFp.getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(axios, basePath));
|
|
17027
|
+
},
|
|
17028
|
+
/**
|
|
17029
|
+
* This endpoint returns all profiles available to the client, including their basic information.
|
|
17030
|
+
* @summary List Profiles
|
|
17031
|
+
* @param {*} [options] Override http request option.
|
|
17032
|
+
* @throws {RequiredError}
|
|
17033
|
+
*/
|
|
17034
|
+
listProfilesV1(options) {
|
|
17035
|
+
return localVarFp.listProfilesV1(options).then((request) => request(axios, basePath));
|
|
17036
|
+
},
|
|
17037
|
+
};
|
|
17038
|
+
};
|
|
17039
|
+
exports.ReachProfilesApiFactory = ReachProfilesApiFactory;
|
|
17040
|
+
/**
|
|
17041
|
+
* ReachProfilesApi - object-oriented interface
|
|
17042
|
+
* @export
|
|
17043
|
+
* @class ReachProfilesApi
|
|
17044
|
+
* @extends {BaseAPI}
|
|
17045
|
+
*/
|
|
17046
|
+
class ReachProfilesApi extends base_1.BaseAPI {
|
|
17047
|
+
/**
|
|
17048
|
+
* Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
|
|
17049
|
+
* @summary Get profile domain DNS status
|
|
17050
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17051
|
+
* @param {*} [options] Override http request option.
|
|
17052
|
+
* @throws {RequiredError}
|
|
17053
|
+
* @memberof ReachProfilesApi
|
|
17054
|
+
*/
|
|
17055
|
+
getProfileDomainDNSStatusV1(profileUuid, options) {
|
|
17056
|
+
return (0, exports.ReachProfilesApiFp)(this.configuration).getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
|
|
17057
|
+
}
|
|
17058
|
+
/**
|
|
17059
|
+
* This endpoint returns all profiles available to the client, including their basic information.
|
|
17060
|
+
* @summary List Profiles
|
|
17061
|
+
* @param {*} [options] Override http request option.
|
|
17062
|
+
* @throws {RequiredError}
|
|
17063
|
+
* @memberof ReachProfilesApi
|
|
17064
|
+
*/
|
|
17065
|
+
listProfilesV1(options) {
|
|
17066
|
+
return (0, exports.ReachProfilesApiFp)(this.configuration).listProfilesV1(options).then((request) => request(this.axios, this.basePath));
|
|
17067
|
+
}
|
|
17068
|
+
}
|
|
17069
|
+
exports.ReachProfilesApi = ReachProfilesApi;
|
|
17070
|
+
/**
|
|
17071
|
+
* ReachSegmentsApi - axios parameter creator
|
|
17072
|
+
* @export
|
|
17073
|
+
*/
|
|
17074
|
+
const ReachSegmentsApiAxiosParamCreator = function (configuration) {
|
|
17075
|
+
return {
|
|
17076
|
+
/**
|
|
17077
|
+
* Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.
|
|
17078
|
+
* @summary Create a new contact segment
|
|
17079
|
+
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
17080
|
+
* @param {*} [options] Override http request option.
|
|
17081
|
+
* @throws {RequiredError}
|
|
17082
|
+
*/
|
|
17083
|
+
createANewContactSegmentV1: (reachV1ContactsSegmentsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsSegmentsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsSegmentsStoreRequest, options = {}) {
|
|
17084
|
+
// verify required parameter 'reachV1ContactsSegmentsStoreRequest' is not null or undefined
|
|
17085
|
+
(0, common_1.assertParamExists)('createANewContactSegmentV1', 'reachV1ContactsSegmentsStoreRequest', reachV1ContactsSegmentsStoreRequest);
|
|
17086
|
+
const localVarPath = `/api/reach/v1/segmentation/segments`;
|
|
17087
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17088
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17089
|
+
let baseOptions;
|
|
17090
|
+
if (configuration) {
|
|
17091
|
+
baseOptions = configuration.baseOptions;
|
|
17092
|
+
}
|
|
17093
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
17094
|
+
const localVarHeaderParameter = {};
|
|
17095
|
+
const localVarQueryParameter = {};
|
|
17096
|
+
// authentication apiToken required
|
|
17097
|
+
// http bearer authentication required
|
|
17098
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17099
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17100
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17101
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17102
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17103
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsSegmentsStoreRequest, localVarRequestOptions, configuration);
|
|
17104
|
+
return {
|
|
17105
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17106
|
+
options: localVarRequestOptions,
|
|
17107
|
+
};
|
|
17108
|
+
}),
|
|
17109
|
+
/**
|
|
17110
|
+
* Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.
|
|
17111
|
+
* @summary Get segment details
|
|
17112
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17113
|
+
* @param {*} [options] Override http request option.
|
|
17114
|
+
* @throws {RequiredError}
|
|
17115
|
+
*/
|
|
17116
|
+
getSegmentDetailsV1: (segmentUuid_1, ...args_1) => __awaiter(this, [segmentUuid_1, ...args_1], void 0, function* (segmentUuid, options = {}) {
|
|
17117
|
+
// verify required parameter 'segmentUuid' is not null or undefined
|
|
17118
|
+
(0, common_1.assertParamExists)('getSegmentDetailsV1', 'segmentUuid', segmentUuid);
|
|
17119
|
+
const localVarPath = `/api/reach/v1/segmentation/segments/{segmentUuid}`
|
|
17120
|
+
.replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
|
|
17121
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17122
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17123
|
+
let baseOptions;
|
|
17124
|
+
if (configuration) {
|
|
17125
|
+
baseOptions = configuration.baseOptions;
|
|
17126
|
+
}
|
|
17127
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
17128
|
+
const localVarHeaderParameter = {};
|
|
17129
|
+
const localVarQueryParameter = {};
|
|
17130
|
+
// authentication apiToken required
|
|
17131
|
+
// http bearer authentication required
|
|
17132
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17133
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17134
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17135
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17136
|
+
return {
|
|
17137
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17138
|
+
options: localVarRequestOptions,
|
|
17139
|
+
};
|
|
17140
|
+
}),
|
|
17141
|
+
/**
|
|
17142
|
+
* Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
|
|
17143
|
+
* @summary List profile segment contacts
|
|
17144
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17145
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17146
|
+
* @param {number} [page] Page number
|
|
17147
|
+
* @param {number} [perPage] Number of items per page
|
|
17148
|
+
* @param {*} [options] Override http request option.
|
|
17149
|
+
* @throws {RequiredError}
|
|
17150
|
+
*/
|
|
17151
|
+
listProfileSegmentContactsV1: (profileUuid_1, segmentUuid_1, page_1, perPage_1, ...args_1) => __awaiter(this, [profileUuid_1, segmentUuid_1, page_1, perPage_1, ...args_1], void 0, function* (profileUuid, segmentUuid, page, perPage, options = {}) {
|
|
17152
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
17153
|
+
(0, common_1.assertParamExists)('listProfileSegmentContactsV1', 'profileUuid', profileUuid);
|
|
17154
|
+
// verify required parameter 'segmentUuid' is not null or undefined
|
|
17155
|
+
(0, common_1.assertParamExists)('listProfileSegmentContactsV1', 'segmentUuid', segmentUuid);
|
|
17156
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts`
|
|
17157
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
17158
|
+
.replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
|
|
17159
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17160
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17161
|
+
let baseOptions;
|
|
17162
|
+
if (configuration) {
|
|
17163
|
+
baseOptions = configuration.baseOptions;
|
|
17164
|
+
}
|
|
17165
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
17166
|
+
const localVarHeaderParameter = {};
|
|
17167
|
+
const localVarQueryParameter = {};
|
|
17168
|
+
// authentication apiToken required
|
|
17169
|
+
// http bearer authentication required
|
|
17170
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17171
|
+
if (page !== undefined) {
|
|
17172
|
+
localVarQueryParameter['page'] = page;
|
|
17173
|
+
}
|
|
17174
|
+
if (perPage !== undefined) {
|
|
17175
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
17176
|
+
}
|
|
17177
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17178
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17179
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17180
|
+
return {
|
|
17181
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17182
|
+
options: localVarRequestOptions,
|
|
17183
|
+
};
|
|
17184
|
+
}),
|
|
17185
|
+
/**
|
|
17186
|
+
* Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
|
|
17187
|
+
* @summary List segment contacts
|
|
17188
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17189
|
+
* @param {number} [page] Page number
|
|
17190
|
+
* @param {number} [perPage] Number of items per page
|
|
17191
|
+
* @param {*} [options] Override http request option.
|
|
17192
|
+
* @throws {RequiredError}
|
|
17193
|
+
*/
|
|
17194
|
+
listSegmentContactsV1: (segmentUuid_1, page_1, perPage_1, ...args_1) => __awaiter(this, [segmentUuid_1, page_1, perPage_1, ...args_1], void 0, function* (segmentUuid, page, perPage, options = {}) {
|
|
17195
|
+
// verify required parameter 'segmentUuid' is not null or undefined
|
|
17196
|
+
(0, common_1.assertParamExists)('listSegmentContactsV1', 'segmentUuid', segmentUuid);
|
|
17197
|
+
const localVarPath = `/api/reach/v1/segmentation/segments/{segmentUuid}/contacts`
|
|
17198
|
+
.replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
|
|
17199
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17200
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17201
|
+
let baseOptions;
|
|
17202
|
+
if (configuration) {
|
|
17203
|
+
baseOptions = configuration.baseOptions;
|
|
17204
|
+
}
|
|
17205
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
17206
|
+
const localVarHeaderParameter = {};
|
|
17207
|
+
const localVarQueryParameter = {};
|
|
17208
|
+
// authentication apiToken required
|
|
17209
|
+
// http bearer authentication required
|
|
17210
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17211
|
+
if (page !== undefined) {
|
|
17212
|
+
localVarQueryParameter['page'] = page;
|
|
17213
|
+
}
|
|
17214
|
+
if (perPage !== undefined) {
|
|
17215
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
17216
|
+
}
|
|
17217
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17218
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17219
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17220
|
+
return {
|
|
17221
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17222
|
+
options: localVarRequestOptions,
|
|
17223
|
+
};
|
|
17224
|
+
}),
|
|
17225
|
+
/**
|
|
17226
|
+
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
|
|
17227
|
+
* @summary List segments
|
|
17228
|
+
* @param {*} [options] Override http request option.
|
|
17229
|
+
* @throws {RequiredError}
|
|
17230
|
+
*/
|
|
17231
|
+
listSegmentsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
17232
|
+
const localVarPath = `/api/reach/v1/segmentation/segments`;
|
|
17233
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17234
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17235
|
+
let baseOptions;
|
|
17236
|
+
if (configuration) {
|
|
17237
|
+
baseOptions = configuration.baseOptions;
|
|
17238
|
+
}
|
|
17239
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
17240
|
+
const localVarHeaderParameter = {};
|
|
17241
|
+
const localVarQueryParameter = {};
|
|
17242
|
+
// authentication apiToken required
|
|
17243
|
+
// http bearer authentication required
|
|
17244
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17245
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17246
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17247
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17248
|
+
return {
|
|
17249
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17250
|
+
options: localVarRequestOptions,
|
|
17251
|
+
};
|
|
17252
|
+
}),
|
|
17253
|
+
};
|
|
17254
|
+
};
|
|
17255
|
+
exports.ReachSegmentsApiAxiosParamCreator = ReachSegmentsApiAxiosParamCreator;
|
|
17256
|
+
/**
|
|
17257
|
+
* ReachSegmentsApi - functional programming interface
|
|
17258
|
+
* @export
|
|
17259
|
+
*/
|
|
17260
|
+
const ReachSegmentsApiFp = function (configuration) {
|
|
17261
|
+
const localVarAxiosParamCreator = (0, exports.ReachSegmentsApiAxiosParamCreator)(configuration);
|
|
17262
|
+
return {
|
|
17263
|
+
/**
|
|
17264
|
+
* Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.
|
|
17265
|
+
* @summary Create a new contact segment
|
|
17266
|
+
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
17267
|
+
* @param {*} [options] Override http request option.
|
|
17268
|
+
* @throws {RequiredError}
|
|
17269
|
+
*/
|
|
17270
|
+
createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
|
|
17271
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17272
|
+
var _a, _b;
|
|
17273
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options);
|
|
17274
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.createANewContactSegmentV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17275
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17276
|
+
});
|
|
17277
|
+
},
|
|
17278
|
+
/**
|
|
17279
|
+
* Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.
|
|
17280
|
+
* @summary Get segment details
|
|
17281
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17282
|
+
* @param {*} [options] Override http request option.
|
|
17283
|
+
* @throws {RequiredError}
|
|
17284
|
+
*/
|
|
17285
|
+
getSegmentDetailsV1(segmentUuid, options) {
|
|
17286
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17287
|
+
var _a, _b;
|
|
17288
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSegmentDetailsV1(segmentUuid, options);
|
|
17289
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.getSegmentDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17290
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17291
|
+
});
|
|
17292
|
+
},
|
|
17293
|
+
/**
|
|
17294
|
+
* Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
|
|
17295
|
+
* @summary List profile segment contacts
|
|
17296
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17297
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17298
|
+
* @param {number} [page] Page number
|
|
17299
|
+
* @param {number} [perPage] Number of items per page
|
|
17300
|
+
* @param {*} [options] Override http request option.
|
|
17301
|
+
* @throws {RequiredError}
|
|
17302
|
+
*/
|
|
17303
|
+
listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
|
|
17304
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17305
|
+
var _a, _b;
|
|
17306
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options);
|
|
17307
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.listProfileSegmentContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17308
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17309
|
+
});
|
|
17310
|
+
},
|
|
17311
|
+
/**
|
|
17312
|
+
* Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
|
|
17313
|
+
* @summary List segment contacts
|
|
17314
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17315
|
+
* @param {number} [page] Page number
|
|
17316
|
+
* @param {number} [perPage] Number of items per page
|
|
17317
|
+
* @param {*} [options] Override http request option.
|
|
17318
|
+
* @throws {RequiredError}
|
|
17319
|
+
*/
|
|
17320
|
+
listSegmentContactsV1(segmentUuid, page, perPage, options) {
|
|
17321
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17322
|
+
var _a, _b;
|
|
17323
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSegmentContactsV1(segmentUuid, page, perPage, options);
|
|
17324
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.listSegmentContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17325
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17326
|
+
});
|
|
17327
|
+
},
|
|
17328
|
+
/**
|
|
17329
|
+
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
|
|
17330
|
+
* @summary List segments
|
|
17331
|
+
* @param {*} [options] Override http request option.
|
|
17332
|
+
* @throws {RequiredError}
|
|
17333
|
+
*/
|
|
17334
|
+
listSegmentsV1(options) {
|
|
17335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17336
|
+
var _a, _b;
|
|
17337
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSegmentsV1(options);
|
|
17338
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.listSegmentsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17339
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17340
|
+
});
|
|
17341
|
+
},
|
|
17342
|
+
};
|
|
17343
|
+
};
|
|
17344
|
+
exports.ReachSegmentsApiFp = ReachSegmentsApiFp;
|
|
17345
|
+
/**
|
|
17346
|
+
* ReachSegmentsApi - factory interface
|
|
17347
|
+
* @export
|
|
17348
|
+
*/
|
|
17349
|
+
const ReachSegmentsApiFactory = function (configuration, basePath, axios) {
|
|
17350
|
+
const localVarFp = (0, exports.ReachSegmentsApiFp)(configuration);
|
|
17351
|
+
return {
|
|
17352
|
+
/**
|
|
17353
|
+
* Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.
|
|
17354
|
+
* @summary Create a new contact segment
|
|
17355
|
+
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
17356
|
+
* @param {*} [options] Override http request option.
|
|
17357
|
+
* @throws {RequiredError}
|
|
17358
|
+
*/
|
|
17359
|
+
createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
|
|
17360
|
+
return localVarFp.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(axios, basePath));
|
|
17361
|
+
},
|
|
17362
|
+
/**
|
|
17363
|
+
* Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.
|
|
17364
|
+
* @summary Get segment details
|
|
17365
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17366
|
+
* @param {*} [options] Override http request option.
|
|
17367
|
+
* @throws {RequiredError}
|
|
17368
|
+
*/
|
|
17369
|
+
getSegmentDetailsV1(segmentUuid, options) {
|
|
17370
|
+
return localVarFp.getSegmentDetailsV1(segmentUuid, options).then((request) => request(axios, basePath));
|
|
17371
|
+
},
|
|
17372
|
+
/**
|
|
17373
|
+
* Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
|
|
17374
|
+
* @summary List profile segment contacts
|
|
17375
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17376
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17377
|
+
* @param {number} [page] Page number
|
|
17378
|
+
* @param {number} [perPage] Number of items per page
|
|
17379
|
+
* @param {*} [options] Override http request option.
|
|
17380
|
+
* @throws {RequiredError}
|
|
17381
|
+
*/
|
|
17382
|
+
listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
|
|
17383
|
+
return localVarFp.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
|
|
17384
|
+
},
|
|
17385
|
+
/**
|
|
17386
|
+
* Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
|
|
17387
|
+
* @summary List segment contacts
|
|
17388
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17389
|
+
* @param {number} [page] Page number
|
|
17390
|
+
* @param {number} [perPage] Number of items per page
|
|
17391
|
+
* @param {*} [options] Override http request option.
|
|
17392
|
+
* @throws {RequiredError}
|
|
17393
|
+
*/
|
|
17394
|
+
listSegmentContactsV1(segmentUuid, page, perPage, options) {
|
|
17395
|
+
return localVarFp.listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
|
|
17396
|
+
},
|
|
17397
|
+
/**
|
|
17398
|
+
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
|
|
17399
|
+
* @summary List segments
|
|
17400
|
+
* @param {*} [options] Override http request option.
|
|
17401
|
+
* @throws {RequiredError}
|
|
17402
|
+
*/
|
|
17403
|
+
listSegmentsV1(options) {
|
|
17404
|
+
return localVarFp.listSegmentsV1(options).then((request) => request(axios, basePath));
|
|
17405
|
+
},
|
|
17406
|
+
};
|
|
17407
|
+
};
|
|
17408
|
+
exports.ReachSegmentsApiFactory = ReachSegmentsApiFactory;
|
|
17409
|
+
/**
|
|
17410
|
+
* ReachSegmentsApi - object-oriented interface
|
|
17411
|
+
* @export
|
|
17412
|
+
* @class ReachSegmentsApi
|
|
17413
|
+
* @extends {BaseAPI}
|
|
17414
|
+
*/
|
|
17415
|
+
class ReachSegmentsApi extends base_1.BaseAPI {
|
|
17416
|
+
/**
|
|
17417
|
+
* Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.
|
|
17418
|
+
* @summary Create a new contact segment
|
|
17419
|
+
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
17420
|
+
* @param {*} [options] Override http request option.
|
|
17421
|
+
* @throws {RequiredError}
|
|
17422
|
+
* @memberof ReachSegmentsApi
|
|
17423
|
+
*/
|
|
17424
|
+
createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
|
|
17425
|
+
return (0, exports.ReachSegmentsApiFp)(this.configuration).createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17426
|
+
}
|
|
17427
|
+
/**
|
|
17428
|
+
* Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.
|
|
17429
|
+
* @summary Get segment details
|
|
17430
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17431
|
+
* @param {*} [options] Override http request option.
|
|
17432
|
+
* @throws {RequiredError}
|
|
17433
|
+
* @memberof ReachSegmentsApi
|
|
17434
|
+
*/
|
|
17435
|
+
getSegmentDetailsV1(segmentUuid, options) {
|
|
17436
|
+
return (0, exports.ReachSegmentsApiFp)(this.configuration).getSegmentDetailsV1(segmentUuid, options).then((request) => request(this.axios, this.basePath));
|
|
17437
|
+
}
|
|
17438
|
+
/**
|
|
17439
|
+
* Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
|
|
17440
|
+
* @summary List profile segment contacts
|
|
17441
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17442
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17443
|
+
* @param {number} [page] Page number
|
|
17444
|
+
* @param {number} [perPage] Number of items per page
|
|
17445
|
+
* @param {*} [options] Override http request option.
|
|
17446
|
+
* @throws {RequiredError}
|
|
17447
|
+
* @memberof ReachSegmentsApi
|
|
17448
|
+
*/
|
|
17449
|
+
listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
|
|
17450
|
+
return (0, exports.ReachSegmentsApiFp)(this.configuration).listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
17451
|
+
}
|
|
17452
|
+
/**
|
|
17453
|
+
* Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
|
|
17454
|
+
* @summary List segment contacts
|
|
17455
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17456
|
+
* @param {number} [page] Page number
|
|
17457
|
+
* @param {number} [perPage] Number of items per page
|
|
17458
|
+
* @param {*} [options] Override http request option.
|
|
17459
|
+
* @throws {RequiredError}
|
|
17460
|
+
* @memberof ReachSegmentsApi
|
|
17461
|
+
*/
|
|
17462
|
+
listSegmentContactsV1(segmentUuid, page, perPage, options) {
|
|
17463
|
+
return (0, exports.ReachSegmentsApiFp)(this.configuration).listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
17464
|
+
}
|
|
17465
|
+
/**
|
|
17466
|
+
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
|
|
17467
|
+
* @summary List segments
|
|
17468
|
+
* @param {*} [options] Override http request option.
|
|
17469
|
+
* @throws {RequiredError}
|
|
17470
|
+
* @memberof ReachSegmentsApi
|
|
17471
|
+
*/
|
|
17472
|
+
listSegmentsV1(options) {
|
|
17473
|
+
return (0, exports.ReachSegmentsApiFp)(this.configuration).listSegmentsV1(options).then((request) => request(this.axios, this.basePath));
|
|
17474
|
+
}
|
|
17475
|
+
}
|
|
17476
|
+
exports.ReachSegmentsApi = ReachSegmentsApi;
|
|
17477
|
+
/**
|
|
17478
|
+
* ReachTagsApi - axios parameter creator
|
|
17479
|
+
* @export
|
|
17480
|
+
*/
|
|
17481
|
+
const ReachTagsApiAxiosParamCreator = function (configuration) {
|
|
17482
|
+
return {
|
|
17483
|
+
/**
|
|
17484
|
+
* Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
|
|
17485
|
+
* @summary Assign a contact to a tag
|
|
17486
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17487
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
17488
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
17489
|
+
* @param {*} [options] Override http request option.
|
|
17490
|
+
* @throws {RequiredError}
|
|
17491
|
+
*/
|
|
17492
|
+
assignAContactToATagV1: (profileUuid_1, tagUuid_1, contactUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, contactUuid_1, ...args_1], void 0, function* (profileUuid, tagUuid, contactUuid, options = {}) {
|
|
17493
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
17494
|
+
(0, common_1.assertParamExists)('assignAContactToATagV1', 'profileUuid', profileUuid);
|
|
17495
|
+
// verify required parameter 'tagUuid' is not null or undefined
|
|
17496
|
+
(0, common_1.assertParamExists)('assignAContactToATagV1', 'tagUuid', tagUuid);
|
|
17497
|
+
// verify required parameter 'contactUuid' is not null or undefined
|
|
17498
|
+
(0, common_1.assertParamExists)('assignAContactToATagV1', 'contactUuid', contactUuid);
|
|
17499
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid}`
|
|
17500
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
17501
|
+
.replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)))
|
|
17502
|
+
.replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
|
|
17503
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17504
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17505
|
+
let baseOptions;
|
|
17506
|
+
if (configuration) {
|
|
17507
|
+
baseOptions = configuration.baseOptions;
|
|
17508
|
+
}
|
|
17509
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
17510
|
+
const localVarHeaderParameter = {};
|
|
17511
|
+
const localVarQueryParameter = {};
|
|
17512
|
+
// authentication apiToken required
|
|
17513
|
+
// http bearer authentication required
|
|
17514
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17515
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17516
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17517
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17518
|
+
return {
|
|
17519
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17520
|
+
options: localVarRequestOptions,
|
|
17521
|
+
};
|
|
17522
|
+
}),
|
|
17523
|
+
/**
|
|
17524
|
+
* Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
|
|
17525
|
+
* @summary Assign contacts to a tag
|
|
17526
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17527
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
17528
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
17529
|
+
* @param {*} [options] Override http request option.
|
|
17530
|
+
* @throws {RequiredError}
|
|
17531
|
+
*/
|
|
17532
|
+
assignContactsToATagV1: (profileUuid_1, tagUuid_1, reachV1ContactsTagsManageContactsRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, reachV1ContactsTagsManageContactsRequest_1, ...args_1], void 0, function* (profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options = {}) {
|
|
17533
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
17534
|
+
(0, common_1.assertParamExists)('assignContactsToATagV1', 'profileUuid', profileUuid);
|
|
17535
|
+
// verify required parameter 'tagUuid' is not null or undefined
|
|
17536
|
+
(0, common_1.assertParamExists)('assignContactsToATagV1', 'tagUuid', tagUuid);
|
|
17537
|
+
// verify required parameter 'reachV1ContactsTagsManageContactsRequest' is not null or undefined
|
|
17538
|
+
(0, common_1.assertParamExists)('assignContactsToATagV1', 'reachV1ContactsTagsManageContactsRequest', reachV1ContactsTagsManageContactsRequest);
|
|
17539
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts`
|
|
17540
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
17541
|
+
.replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
|
|
17542
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17543
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17544
|
+
let baseOptions;
|
|
17545
|
+
if (configuration) {
|
|
17546
|
+
baseOptions = configuration.baseOptions;
|
|
17547
|
+
}
|
|
17548
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
17549
|
+
const localVarHeaderParameter = {};
|
|
17550
|
+
const localVarQueryParameter = {};
|
|
17551
|
+
// authentication apiToken required
|
|
17552
|
+
// http bearer authentication required
|
|
17553
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17554
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17555
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17556
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17557
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17558
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsTagsManageContactsRequest, localVarRequestOptions, configuration);
|
|
17559
|
+
return {
|
|
17560
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17561
|
+
options: localVarRequestOptions,
|
|
17562
|
+
};
|
|
17563
|
+
}),
|
|
17564
|
+
/**
|
|
17565
|
+
* Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
|
|
17566
|
+
* @summary Create or find tags
|
|
17567
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17568
|
+
* @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
|
|
17569
|
+
* @param {*} [options] Override http request option.
|
|
17570
|
+
* @throws {RequiredError}
|
|
17571
|
+
*/
|
|
17572
|
+
createOrFindTagsV1: (profileUuid_1, reachV1ContactsTagsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsTagsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsTagsStoreRequest, options = {}) {
|
|
17573
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
17574
|
+
(0, common_1.assertParamExists)('createOrFindTagsV1', 'profileUuid', profileUuid);
|
|
17575
|
+
// verify required parameter 'reachV1ContactsTagsStoreRequest' is not null or undefined
|
|
17576
|
+
(0, common_1.assertParamExists)('createOrFindTagsV1', 'reachV1ContactsTagsStoreRequest', reachV1ContactsTagsStoreRequest);
|
|
17577
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags`
|
|
17578
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
17579
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17580
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17581
|
+
let baseOptions;
|
|
17582
|
+
if (configuration) {
|
|
17583
|
+
baseOptions = configuration.baseOptions;
|
|
17584
|
+
}
|
|
17585
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
17586
|
+
const localVarHeaderParameter = {};
|
|
17587
|
+
const localVarQueryParameter = {};
|
|
17588
|
+
// authentication apiToken required
|
|
17589
|
+
// http bearer authentication required
|
|
17590
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17591
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17592
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17593
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17594
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17595
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsTagsStoreRequest, localVarRequestOptions, configuration);
|
|
17596
|
+
return {
|
|
17597
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17598
|
+
options: localVarRequestOptions,
|
|
17599
|
+
};
|
|
17600
|
+
}),
|
|
17601
|
+
/**
|
|
17602
|
+
* Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
|
|
17603
|
+
* @summary Delete a tag
|
|
17604
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17605
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
17606
|
+
* @param {*} [options] Override http request option.
|
|
17607
|
+
* @throws {RequiredError}
|
|
17608
|
+
*/
|
|
17609
|
+
deleteATagV1: (profileUuid_1, tagUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, ...args_1], void 0, function* (profileUuid, tagUuid, options = {}) {
|
|
17610
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
17611
|
+
(0, common_1.assertParamExists)('deleteATagV1', 'profileUuid', profileUuid);
|
|
17612
|
+
// verify required parameter 'tagUuid' is not null or undefined
|
|
17613
|
+
(0, common_1.assertParamExists)('deleteATagV1', 'tagUuid', tagUuid);
|
|
17614
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}`
|
|
17615
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
17616
|
+
.replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
|
|
16236
17617
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16237
17618
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16238
17619
|
let baseOptions;
|
|
16239
17620
|
if (configuration) {
|
|
16240
17621
|
baseOptions = configuration.baseOptions;
|
|
16241
17622
|
}
|
|
16242
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
17623
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
16243
17624
|
const localVarHeaderParameter = {};
|
|
16244
17625
|
const localVarQueryParameter = {};
|
|
16245
17626
|
// authentication apiToken required
|
|
16246
17627
|
// http bearer authentication required
|
|
16247
17628
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
16248
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16249
17629
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16250
17630
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16251
17631
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16252
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsSegmentsStoreRequest, localVarRequestOptions, configuration);
|
|
16253
17632
|
return {
|
|
16254
17633
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16255
17634
|
options: localVarRequestOptions,
|
|
16256
17635
|
};
|
|
16257
17636
|
}),
|
|
16258
17637
|
/**
|
|
16259
|
-
* Get
|
|
16260
|
-
* @summary
|
|
16261
|
-
* @param {string}
|
|
17638
|
+
* Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
|
|
17639
|
+
* @summary List profile tags
|
|
17640
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
16262
17641
|
* @param {*} [options] Override http request option.
|
|
16263
17642
|
* @throws {RequiredError}
|
|
16264
17643
|
*/
|
|
16265
|
-
|
|
16266
|
-
// verify required parameter '
|
|
16267
|
-
(0, common_1.assertParamExists)('
|
|
16268
|
-
const localVarPath = `/api/reach/v1/
|
|
16269
|
-
.replace(`{${"
|
|
17644
|
+
listProfileTagsV1: (profileUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, ...args_1], void 0, function* (profileUuid, options = {}) {
|
|
17645
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
17646
|
+
(0, common_1.assertParamExists)('listProfileTagsV1', 'profileUuid', profileUuid);
|
|
17647
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags`
|
|
17648
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
16270
17649
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16271
17650
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16272
17651
|
let baseOptions;
|
|
@@ -16288,41 +17667,37 @@ const ReachSegmentsApiAxiosParamCreator = function (configuration) {
|
|
|
16288
17667
|
};
|
|
16289
17668
|
}),
|
|
16290
17669
|
/**
|
|
16291
|
-
*
|
|
16292
|
-
* @summary
|
|
17670
|
+
* Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
|
|
17671
|
+
* @summary Remove a contact from a tag
|
|
16293
17672
|
* @param {string} profileUuid Profile uuid parameter
|
|
16294
|
-
* @param {string}
|
|
16295
|
-
* @param {
|
|
16296
|
-
* @param {number} [perPage] Number of items per page
|
|
17673
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
17674
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
16297
17675
|
* @param {*} [options] Override http request option.
|
|
16298
17676
|
* @throws {RequiredError}
|
|
16299
17677
|
*/
|
|
16300
|
-
|
|
17678
|
+
removeAContactFromATagV1: (profileUuid_1, tagUuid_1, contactUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, contactUuid_1, ...args_1], void 0, function* (profileUuid, tagUuid, contactUuid, options = {}) {
|
|
16301
17679
|
// verify required parameter 'profileUuid' is not null or undefined
|
|
16302
|
-
(0, common_1.assertParamExists)('
|
|
16303
|
-
// verify required parameter '
|
|
16304
|
-
(0, common_1.assertParamExists)('
|
|
16305
|
-
|
|
17680
|
+
(0, common_1.assertParamExists)('removeAContactFromATagV1', 'profileUuid', profileUuid);
|
|
17681
|
+
// verify required parameter 'tagUuid' is not null or undefined
|
|
17682
|
+
(0, common_1.assertParamExists)('removeAContactFromATagV1', 'tagUuid', tagUuid);
|
|
17683
|
+
// verify required parameter 'contactUuid' is not null or undefined
|
|
17684
|
+
(0, common_1.assertParamExists)('removeAContactFromATagV1', 'contactUuid', contactUuid);
|
|
17685
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid}`
|
|
16306
17686
|
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
16307
|
-
.replace(`{${"
|
|
17687
|
+
.replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)))
|
|
17688
|
+
.replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
|
|
16308
17689
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16309
17690
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16310
17691
|
let baseOptions;
|
|
16311
17692
|
if (configuration) {
|
|
16312
17693
|
baseOptions = configuration.baseOptions;
|
|
16313
17694
|
}
|
|
16314
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
17695
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
16315
17696
|
const localVarHeaderParameter = {};
|
|
16316
17697
|
const localVarQueryParameter = {};
|
|
16317
17698
|
// authentication apiToken required
|
|
16318
17699
|
// http bearer authentication required
|
|
16319
17700
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
16320
|
-
if (page !== undefined) {
|
|
16321
|
-
localVarQueryParameter['page'] = page;
|
|
16322
|
-
}
|
|
16323
|
-
if (perPage !== undefined) {
|
|
16324
|
-
localVarQueryParameter['per_page'] = perPage;
|
|
16325
|
-
}
|
|
16326
17701
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16327
17702
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16328
17703
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -16332,68 +17707,82 @@ const ReachSegmentsApiAxiosParamCreator = function (configuration) {
|
|
|
16332
17707
|
};
|
|
16333
17708
|
}),
|
|
16334
17709
|
/**
|
|
16335
|
-
*
|
|
16336
|
-
* @summary
|
|
16337
|
-
* @param {string}
|
|
16338
|
-
* @param {
|
|
16339
|
-
* @param {
|
|
17710
|
+
* Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
|
|
17711
|
+
* @summary Remove contacts from a tag
|
|
17712
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17713
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
17714
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
16340
17715
|
* @param {*} [options] Override http request option.
|
|
16341
17716
|
* @throws {RequiredError}
|
|
16342
17717
|
*/
|
|
16343
|
-
|
|
16344
|
-
// verify required parameter '
|
|
16345
|
-
(0, common_1.assertParamExists)('
|
|
16346
|
-
|
|
16347
|
-
|
|
17718
|
+
removeContactsFromATagV1: (profileUuid_1, tagUuid_1, reachV1ContactsTagsManageContactsRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, reachV1ContactsTagsManageContactsRequest_1, ...args_1], void 0, function* (profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options = {}) {
|
|
17719
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
17720
|
+
(0, common_1.assertParamExists)('removeContactsFromATagV1', 'profileUuid', profileUuid);
|
|
17721
|
+
// verify required parameter 'tagUuid' is not null or undefined
|
|
17722
|
+
(0, common_1.assertParamExists)('removeContactsFromATagV1', 'tagUuid', tagUuid);
|
|
17723
|
+
// verify required parameter 'reachV1ContactsTagsManageContactsRequest' is not null or undefined
|
|
17724
|
+
(0, common_1.assertParamExists)('removeContactsFromATagV1', 'reachV1ContactsTagsManageContactsRequest', reachV1ContactsTagsManageContactsRequest);
|
|
17725
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts`
|
|
17726
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
17727
|
+
.replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
|
|
16348
17728
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16349
17729
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16350
17730
|
let baseOptions;
|
|
16351
17731
|
if (configuration) {
|
|
16352
17732
|
baseOptions = configuration.baseOptions;
|
|
16353
17733
|
}
|
|
16354
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
17734
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
16355
17735
|
const localVarHeaderParameter = {};
|
|
16356
17736
|
const localVarQueryParameter = {};
|
|
16357
17737
|
// authentication apiToken required
|
|
16358
17738
|
// http bearer authentication required
|
|
16359
17739
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
16360
|
-
|
|
16361
|
-
localVarQueryParameter['page'] = page;
|
|
16362
|
-
}
|
|
16363
|
-
if (perPage !== undefined) {
|
|
16364
|
-
localVarQueryParameter['per_page'] = perPage;
|
|
16365
|
-
}
|
|
17740
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16366
17741
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16367
17742
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16368
17743
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17744
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsTagsManageContactsRequest, localVarRequestOptions, configuration);
|
|
16369
17745
|
return {
|
|
16370
17746
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16371
17747
|
options: localVarRequestOptions,
|
|
16372
17748
|
};
|
|
16373
17749
|
}),
|
|
16374
17750
|
/**
|
|
16375
|
-
*
|
|
16376
|
-
* @summary
|
|
17751
|
+
* Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
|
|
17752
|
+
* @summary Rename a tag
|
|
17753
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17754
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
17755
|
+
* @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
|
|
16377
17756
|
* @param {*} [options] Override http request option.
|
|
16378
17757
|
* @throws {RequiredError}
|
|
16379
17758
|
*/
|
|
16380
|
-
|
|
16381
|
-
|
|
17759
|
+
renameATagV1: (profileUuid_1, tagUuid_1, reachV1ContactsTagsUpdateRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, reachV1ContactsTagsUpdateRequest_1, ...args_1], void 0, function* (profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options = {}) {
|
|
17760
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
17761
|
+
(0, common_1.assertParamExists)('renameATagV1', 'profileUuid', profileUuid);
|
|
17762
|
+
// verify required parameter 'tagUuid' is not null or undefined
|
|
17763
|
+
(0, common_1.assertParamExists)('renameATagV1', 'tagUuid', tagUuid);
|
|
17764
|
+
// verify required parameter 'reachV1ContactsTagsUpdateRequest' is not null or undefined
|
|
17765
|
+
(0, common_1.assertParamExists)('renameATagV1', 'reachV1ContactsTagsUpdateRequest', reachV1ContactsTagsUpdateRequest);
|
|
17766
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}`
|
|
17767
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
17768
|
+
.replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
|
|
16382
17769
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16383
17770
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16384
17771
|
let baseOptions;
|
|
16385
17772
|
if (configuration) {
|
|
16386
17773
|
baseOptions = configuration.baseOptions;
|
|
16387
17774
|
}
|
|
16388
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
17775
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
16389
17776
|
const localVarHeaderParameter = {};
|
|
16390
17777
|
const localVarQueryParameter = {};
|
|
16391
17778
|
// authentication apiToken required
|
|
16392
17779
|
// http bearer authentication required
|
|
16393
17780
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17781
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16394
17782
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16395
17783
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16396
17784
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17785
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsTagsUpdateRequest, localVarRequestOptions, configuration);
|
|
16397
17786
|
return {
|
|
16398
17787
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16399
17788
|
options: localVarRequestOptions,
|
|
@@ -16401,228 +17790,360 @@ const ReachSegmentsApiAxiosParamCreator = function (configuration) {
|
|
|
16401
17790
|
}),
|
|
16402
17791
|
};
|
|
16403
17792
|
};
|
|
16404
|
-
exports.
|
|
17793
|
+
exports.ReachTagsApiAxiosParamCreator = ReachTagsApiAxiosParamCreator;
|
|
16405
17794
|
/**
|
|
16406
|
-
*
|
|
17795
|
+
* ReachTagsApi - functional programming interface
|
|
16407
17796
|
* @export
|
|
16408
17797
|
*/
|
|
16409
|
-
const
|
|
16410
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
17798
|
+
const ReachTagsApiFp = function (configuration) {
|
|
17799
|
+
const localVarAxiosParamCreator = (0, exports.ReachTagsApiAxiosParamCreator)(configuration);
|
|
16411
17800
|
return {
|
|
16412
17801
|
/**
|
|
16413
|
-
*
|
|
16414
|
-
* @summary
|
|
16415
|
-
* @param {
|
|
17802
|
+
* Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
|
|
17803
|
+
* @summary Assign a contact to a tag
|
|
17804
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17805
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
17806
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
16416
17807
|
* @param {*} [options] Override http request option.
|
|
16417
17808
|
* @throws {RequiredError}
|
|
16418
17809
|
*/
|
|
16419
|
-
|
|
17810
|
+
assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options) {
|
|
16420
17811
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16421
17812
|
var _a, _b;
|
|
16422
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
16423
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['
|
|
17813
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options);
|
|
17814
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.assignAContactToATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
16424
17815
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16425
17816
|
});
|
|
16426
17817
|
},
|
|
16427
17818
|
/**
|
|
16428
|
-
*
|
|
16429
|
-
* @summary
|
|
16430
|
-
* @param {string}
|
|
17819
|
+
* Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
|
|
17820
|
+
* @summary Assign contacts to a tag
|
|
17821
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17822
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
17823
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
16431
17824
|
* @param {*} [options] Override http request option.
|
|
16432
17825
|
* @throws {RequiredError}
|
|
16433
17826
|
*/
|
|
16434
|
-
|
|
17827
|
+
assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
|
|
16435
17828
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16436
17829
|
var _a, _b;
|
|
16437
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
16438
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['
|
|
17830
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options);
|
|
17831
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.assignContactsToATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
16439
17832
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16440
17833
|
});
|
|
16441
17834
|
},
|
|
16442
17835
|
/**
|
|
16443
|
-
*
|
|
16444
|
-
* @summary
|
|
17836
|
+
* Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
|
|
17837
|
+
* @summary Create or find tags
|
|
16445
17838
|
* @param {string} profileUuid Profile uuid parameter
|
|
16446
|
-
* @param {
|
|
16447
|
-
* @param {number} [page] Page number
|
|
16448
|
-
* @param {number} [perPage] Number of items per page
|
|
17839
|
+
* @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
|
|
16449
17840
|
* @param {*} [options] Override http request option.
|
|
16450
17841
|
* @throws {RequiredError}
|
|
16451
17842
|
*/
|
|
16452
|
-
|
|
17843
|
+
createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options) {
|
|
16453
17844
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16454
17845
|
var _a, _b;
|
|
16455
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
16456
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['
|
|
17846
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options);
|
|
17847
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.createOrFindTagsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
16457
17848
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16458
17849
|
});
|
|
16459
17850
|
},
|
|
16460
17851
|
/**
|
|
16461
|
-
*
|
|
16462
|
-
* @summary
|
|
16463
|
-
* @param {string}
|
|
16464
|
-
* @param {
|
|
16465
|
-
* @param {number} [perPage] Number of items per page
|
|
17852
|
+
* Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
|
|
17853
|
+
* @summary Delete a tag
|
|
17854
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17855
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
16466
17856
|
* @param {*} [options] Override http request option.
|
|
16467
17857
|
* @throws {RequiredError}
|
|
16468
17858
|
*/
|
|
16469
|
-
|
|
17859
|
+
deleteATagV1(profileUuid, tagUuid, options) {
|
|
16470
17860
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16471
17861
|
var _a, _b;
|
|
16472
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
16473
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['
|
|
17862
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteATagV1(profileUuid, tagUuid, options);
|
|
17863
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.deleteATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
16474
17864
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16475
17865
|
});
|
|
16476
17866
|
},
|
|
16477
17867
|
/**
|
|
16478
|
-
* Get
|
|
16479
|
-
* @summary List
|
|
17868
|
+
* Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
|
|
17869
|
+
* @summary List profile tags
|
|
17870
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
16480
17871
|
* @param {*} [options] Override http request option.
|
|
16481
17872
|
* @throws {RequiredError}
|
|
16482
17873
|
*/
|
|
16483
|
-
|
|
17874
|
+
listProfileTagsV1(profileUuid, options) {
|
|
16484
17875
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16485
17876
|
var _a, _b;
|
|
16486
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
16487
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['
|
|
17877
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfileTagsV1(profileUuid, options);
|
|
17878
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.listProfileTagsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17879
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17880
|
+
});
|
|
17881
|
+
},
|
|
17882
|
+
/**
|
|
17883
|
+
* Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
|
|
17884
|
+
* @summary Remove a contact from a tag
|
|
17885
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17886
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
17887
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
17888
|
+
* @param {*} [options] Override http request option.
|
|
17889
|
+
* @throws {RequiredError}
|
|
17890
|
+
*/
|
|
17891
|
+
removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options) {
|
|
17892
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17893
|
+
var _a, _b;
|
|
17894
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options);
|
|
17895
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.removeAContactFromATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17896
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17897
|
+
});
|
|
17898
|
+
},
|
|
17899
|
+
/**
|
|
17900
|
+
* Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
|
|
17901
|
+
* @summary Remove contacts from a tag
|
|
17902
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17903
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
17904
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
17905
|
+
* @param {*} [options] Override http request option.
|
|
17906
|
+
* @throws {RequiredError}
|
|
17907
|
+
*/
|
|
17908
|
+
removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
|
|
17909
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17910
|
+
var _a, _b;
|
|
17911
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options);
|
|
17912
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.removeContactsFromATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17913
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17914
|
+
});
|
|
17915
|
+
},
|
|
17916
|
+
/**
|
|
17917
|
+
* Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
|
|
17918
|
+
* @summary Rename a tag
|
|
17919
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17920
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
17921
|
+
* @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
|
|
17922
|
+
* @param {*} [options] Override http request option.
|
|
17923
|
+
* @throws {RequiredError}
|
|
17924
|
+
*/
|
|
17925
|
+
renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options) {
|
|
17926
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17927
|
+
var _a, _b;
|
|
17928
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options);
|
|
17929
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.renameATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
16488
17930
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16489
17931
|
});
|
|
16490
17932
|
},
|
|
16491
17933
|
};
|
|
16492
17934
|
};
|
|
16493
|
-
exports.
|
|
17935
|
+
exports.ReachTagsApiFp = ReachTagsApiFp;
|
|
16494
17936
|
/**
|
|
16495
|
-
*
|
|
17937
|
+
* ReachTagsApi - factory interface
|
|
16496
17938
|
* @export
|
|
16497
17939
|
*/
|
|
16498
|
-
const
|
|
16499
|
-
const localVarFp = (0, exports.
|
|
17940
|
+
const ReachTagsApiFactory = function (configuration, basePath, axios) {
|
|
17941
|
+
const localVarFp = (0, exports.ReachTagsApiFp)(configuration);
|
|
16500
17942
|
return {
|
|
16501
17943
|
/**
|
|
16502
|
-
*
|
|
16503
|
-
* @summary
|
|
16504
|
-
* @param {
|
|
17944
|
+
* Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
|
|
17945
|
+
* @summary Assign a contact to a tag
|
|
17946
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17947
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
17948
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
16505
17949
|
* @param {*} [options] Override http request option.
|
|
16506
17950
|
* @throws {RequiredError}
|
|
16507
17951
|
*/
|
|
16508
|
-
|
|
16509
|
-
return localVarFp.
|
|
17952
|
+
assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options) {
|
|
17953
|
+
return localVarFp.assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(axios, basePath));
|
|
16510
17954
|
},
|
|
16511
17955
|
/**
|
|
16512
|
-
*
|
|
16513
|
-
* @summary
|
|
16514
|
-
* @param {string}
|
|
17956
|
+
* Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
|
|
17957
|
+
* @summary Assign contacts to a tag
|
|
17958
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17959
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
17960
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
16515
17961
|
* @param {*} [options] Override http request option.
|
|
16516
17962
|
* @throws {RequiredError}
|
|
16517
17963
|
*/
|
|
16518
|
-
|
|
16519
|
-
return localVarFp.
|
|
17964
|
+
assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
|
|
17965
|
+
return localVarFp.assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(axios, basePath));
|
|
16520
17966
|
},
|
|
16521
17967
|
/**
|
|
16522
|
-
*
|
|
16523
|
-
* @summary
|
|
17968
|
+
* Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
|
|
17969
|
+
* @summary Create or find tags
|
|
16524
17970
|
* @param {string} profileUuid Profile uuid parameter
|
|
16525
|
-
* @param {
|
|
16526
|
-
* @param {number} [page] Page number
|
|
16527
|
-
* @param {number} [perPage] Number of items per page
|
|
17971
|
+
* @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
|
|
16528
17972
|
* @param {*} [options] Override http request option.
|
|
16529
17973
|
* @throws {RequiredError}
|
|
16530
17974
|
*/
|
|
16531
|
-
|
|
16532
|
-
return localVarFp.
|
|
17975
|
+
createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options) {
|
|
17976
|
+
return localVarFp.createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options).then((request) => request(axios, basePath));
|
|
16533
17977
|
},
|
|
16534
17978
|
/**
|
|
16535
|
-
*
|
|
16536
|
-
* @summary
|
|
16537
|
-
* @param {string}
|
|
16538
|
-
* @param {
|
|
16539
|
-
* @param {number} [perPage] Number of items per page
|
|
17979
|
+
* Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
|
|
17980
|
+
* @summary Delete a tag
|
|
17981
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17982
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
16540
17983
|
* @param {*} [options] Override http request option.
|
|
16541
17984
|
* @throws {RequiredError}
|
|
16542
17985
|
*/
|
|
16543
|
-
|
|
16544
|
-
return localVarFp.
|
|
17986
|
+
deleteATagV1(profileUuid, tagUuid, options) {
|
|
17987
|
+
return localVarFp.deleteATagV1(profileUuid, tagUuid, options).then((request) => request(axios, basePath));
|
|
16545
17988
|
},
|
|
16546
17989
|
/**
|
|
16547
|
-
* Get
|
|
16548
|
-
* @summary List
|
|
17990
|
+
* Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
|
|
17991
|
+
* @summary List profile tags
|
|
17992
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
16549
17993
|
* @param {*} [options] Override http request option.
|
|
16550
17994
|
* @throws {RequiredError}
|
|
16551
17995
|
*/
|
|
16552
|
-
|
|
16553
|
-
return localVarFp.
|
|
17996
|
+
listProfileTagsV1(profileUuid, options) {
|
|
17997
|
+
return localVarFp.listProfileTagsV1(profileUuid, options).then((request) => request(axios, basePath));
|
|
17998
|
+
},
|
|
17999
|
+
/**
|
|
18000
|
+
* Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
|
|
18001
|
+
* @summary Remove a contact from a tag
|
|
18002
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
18003
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
18004
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
18005
|
+
* @param {*} [options] Override http request option.
|
|
18006
|
+
* @throws {RequiredError}
|
|
18007
|
+
*/
|
|
18008
|
+
removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options) {
|
|
18009
|
+
return localVarFp.removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(axios, basePath));
|
|
18010
|
+
},
|
|
18011
|
+
/**
|
|
18012
|
+
* Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
|
|
18013
|
+
* @summary Remove contacts from a tag
|
|
18014
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
18015
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
18016
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
18017
|
+
* @param {*} [options] Override http request option.
|
|
18018
|
+
* @throws {RequiredError}
|
|
18019
|
+
*/
|
|
18020
|
+
removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
|
|
18021
|
+
return localVarFp.removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(axios, basePath));
|
|
18022
|
+
},
|
|
18023
|
+
/**
|
|
18024
|
+
* Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
|
|
18025
|
+
* @summary Rename a tag
|
|
18026
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
18027
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
18028
|
+
* @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
|
|
18029
|
+
* @param {*} [options] Override http request option.
|
|
18030
|
+
* @throws {RequiredError}
|
|
18031
|
+
*/
|
|
18032
|
+
renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options) {
|
|
18033
|
+
return localVarFp.renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options).then((request) => request(axios, basePath));
|
|
16554
18034
|
},
|
|
16555
18035
|
};
|
|
16556
18036
|
};
|
|
16557
|
-
exports.
|
|
18037
|
+
exports.ReachTagsApiFactory = ReachTagsApiFactory;
|
|
16558
18038
|
/**
|
|
16559
|
-
*
|
|
18039
|
+
* ReachTagsApi - object-oriented interface
|
|
16560
18040
|
* @export
|
|
16561
|
-
* @class
|
|
18041
|
+
* @class ReachTagsApi
|
|
16562
18042
|
* @extends {BaseAPI}
|
|
16563
18043
|
*/
|
|
16564
|
-
class
|
|
18044
|
+
class ReachTagsApi extends base_1.BaseAPI {
|
|
16565
18045
|
/**
|
|
16566
|
-
*
|
|
16567
|
-
* @summary
|
|
16568
|
-
* @param {
|
|
18046
|
+
* Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
|
|
18047
|
+
* @summary Assign a contact to a tag
|
|
18048
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
18049
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
18050
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
16569
18051
|
* @param {*} [options] Override http request option.
|
|
16570
18052
|
* @throws {RequiredError}
|
|
16571
|
-
* @memberof
|
|
18053
|
+
* @memberof ReachTagsApi
|
|
16572
18054
|
*/
|
|
16573
|
-
|
|
16574
|
-
return (0, exports.
|
|
18055
|
+
assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options) {
|
|
18056
|
+
return (0, exports.ReachTagsApiFp)(this.configuration).assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
|
|
16575
18057
|
}
|
|
16576
18058
|
/**
|
|
16577
|
-
*
|
|
16578
|
-
* @summary
|
|
16579
|
-
* @param {string}
|
|
18059
|
+
* Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
|
|
18060
|
+
* @summary Assign contacts to a tag
|
|
18061
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
18062
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
18063
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
16580
18064
|
* @param {*} [options] Override http request option.
|
|
16581
18065
|
* @throws {RequiredError}
|
|
16582
|
-
* @memberof
|
|
18066
|
+
* @memberof ReachTagsApi
|
|
16583
18067
|
*/
|
|
16584
|
-
|
|
16585
|
-
return (0, exports.
|
|
18068
|
+
assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
|
|
18069
|
+
return (0, exports.ReachTagsApiFp)(this.configuration).assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16586
18070
|
}
|
|
16587
18071
|
/**
|
|
16588
|
-
*
|
|
16589
|
-
* @summary
|
|
18072
|
+
* Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
|
|
18073
|
+
* @summary Create or find tags
|
|
16590
18074
|
* @param {string} profileUuid Profile uuid parameter
|
|
16591
|
-
* @param {
|
|
16592
|
-
* @param {number} [page] Page number
|
|
16593
|
-
* @param {number} [perPage] Number of items per page
|
|
18075
|
+
* @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
|
|
16594
18076
|
* @param {*} [options] Override http request option.
|
|
16595
18077
|
* @throws {RequiredError}
|
|
16596
|
-
* @memberof
|
|
18078
|
+
* @memberof ReachTagsApi
|
|
16597
18079
|
*/
|
|
16598
|
-
|
|
16599
|
-
return (0, exports.
|
|
18080
|
+
createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options) {
|
|
18081
|
+
return (0, exports.ReachTagsApiFp)(this.configuration).createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16600
18082
|
}
|
|
16601
18083
|
/**
|
|
16602
|
-
*
|
|
16603
|
-
* @summary
|
|
16604
|
-
* @param {string}
|
|
16605
|
-
* @param {
|
|
16606
|
-
* @param {number} [perPage] Number of items per page
|
|
18084
|
+
* Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
|
|
18085
|
+
* @summary Delete a tag
|
|
18086
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
18087
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
16607
18088
|
* @param {*} [options] Override http request option.
|
|
16608
18089
|
* @throws {RequiredError}
|
|
16609
|
-
* @memberof
|
|
18090
|
+
* @memberof ReachTagsApi
|
|
16610
18091
|
*/
|
|
16611
|
-
|
|
16612
|
-
return (0, exports.
|
|
18092
|
+
deleteATagV1(profileUuid, tagUuid, options) {
|
|
18093
|
+
return (0, exports.ReachTagsApiFp)(this.configuration).deleteATagV1(profileUuid, tagUuid, options).then((request) => request(this.axios, this.basePath));
|
|
16613
18094
|
}
|
|
16614
18095
|
/**
|
|
16615
|
-
* Get
|
|
16616
|
-
* @summary List
|
|
18096
|
+
* Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
|
|
18097
|
+
* @summary List profile tags
|
|
18098
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
16617
18099
|
* @param {*} [options] Override http request option.
|
|
16618
18100
|
* @throws {RequiredError}
|
|
16619
|
-
* @memberof
|
|
18101
|
+
* @memberof ReachTagsApi
|
|
16620
18102
|
*/
|
|
16621
|
-
|
|
16622
|
-
return (0, exports.
|
|
18103
|
+
listProfileTagsV1(profileUuid, options) {
|
|
18104
|
+
return (0, exports.ReachTagsApiFp)(this.configuration).listProfileTagsV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
|
|
18105
|
+
}
|
|
18106
|
+
/**
|
|
18107
|
+
* Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
|
|
18108
|
+
* @summary Remove a contact from a tag
|
|
18109
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
18110
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
18111
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
18112
|
+
* @param {*} [options] Override http request option.
|
|
18113
|
+
* @throws {RequiredError}
|
|
18114
|
+
* @memberof ReachTagsApi
|
|
18115
|
+
*/
|
|
18116
|
+
removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options) {
|
|
18117
|
+
return (0, exports.ReachTagsApiFp)(this.configuration).removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
|
|
18118
|
+
}
|
|
18119
|
+
/**
|
|
18120
|
+
* Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
|
|
18121
|
+
* @summary Remove contacts from a tag
|
|
18122
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
18123
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
18124
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
18125
|
+
* @param {*} [options] Override http request option.
|
|
18126
|
+
* @throws {RequiredError}
|
|
18127
|
+
* @memberof ReachTagsApi
|
|
18128
|
+
*/
|
|
18129
|
+
removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
|
|
18130
|
+
return (0, exports.ReachTagsApiFp)(this.configuration).removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18131
|
+
}
|
|
18132
|
+
/**
|
|
18133
|
+
* Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
|
|
18134
|
+
* @summary Rename a tag
|
|
18135
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
18136
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
18137
|
+
* @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
|
|
18138
|
+
* @param {*} [options] Override http request option.
|
|
18139
|
+
* @throws {RequiredError}
|
|
18140
|
+
* @memberof ReachTagsApi
|
|
18141
|
+
*/
|
|
18142
|
+
renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options) {
|
|
18143
|
+
return (0, exports.ReachTagsApiFp)(this.configuration).renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16623
18144
|
}
|
|
16624
18145
|
}
|
|
16625
|
-
exports.
|
|
18146
|
+
exports.ReachTagsApi = ReachTagsApi;
|
|
16626
18147
|
/**
|
|
16627
18148
|
* VPSActionsApi - axios parameter creator
|
|
16628
18149
|
* @export
|