hostinger-api-sdk 2.3.0 → 2.4.1
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 +795 -13
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +481 -13
- package/dist/api.js +588 -23
- 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 +481 -13
- package/dist/esm/api.js +574 -13
- 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/DomainsPortfolioApi.md +1 -1
- package/docs/ReachCampaignsApi.md +1 -1
- package/docs/ReachIntegrationsApi.md +349 -0
- package/docs/ReachTemplatesApi.md +58 -1
- package/docs/ReachV1StoresStoreResource.md +32 -0
- package/docs/ReachV1StoresStoreResourceSalesChannelsInner.md +26 -0
- package/docs/ReachV1TemplatesTemplateDetailsResource.md +28 -0
- package/docs/ReachV1WebsitesWebsiteBuilderConnectRequest.md +21 -0
- package/docs/ReachV1WebsitesWebsiteBuilderDisconnectRequest.md +21 -0
- package/docs/ReachV1WebsitesWebsiteResource.md +22 -0
- package/docs/ReachV1WebsitesWordPressDisconnectRequest.md +21 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.4.1
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1053,6 +1053,19 @@ export const ReachV1ProfilesFeaturesPlanFeatureResourceFeatureEnum = {
|
|
|
1053
1053
|
Collaborators: 'Collaborators',
|
|
1054
1054
|
HtmlCodeEditor: 'HtmlCodeEditor'
|
|
1055
1055
|
};
|
|
1056
|
+
export const ReachV1StoresStoreResourceVersionEnum = {
|
|
1057
|
+
V2Standalone: 'v2_standalone'
|
|
1058
|
+
};
|
|
1059
|
+
export const ReachV1StoresStoreResourceConnectionStatusEnum = {
|
|
1060
|
+
Connected: 'connected',
|
|
1061
|
+
ConnectedToOtherProfile: 'connected_to_other_profile',
|
|
1062
|
+
NotConnected: 'not_connected'
|
|
1063
|
+
};
|
|
1064
|
+
export const ReachV1WebsitesWebsiteResourcePlatformTypeEnum = {
|
|
1065
|
+
Wordpress: 'wordpress',
|
|
1066
|
+
WebsiteBuilder: 'website_builder',
|
|
1067
|
+
Horizons: 'horizons'
|
|
1068
|
+
};
|
|
1056
1069
|
export const VPSV1ActionActionResourceStateEnum = {
|
|
1057
1070
|
Success: 'success',
|
|
1058
1071
|
Error: 'error',
|
|
@@ -7676,7 +7689,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
|
|
|
7676
7689
|
};
|
|
7677
7690
|
}),
|
|
7678
7691
|
/**
|
|
7679
|
-
* Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and
|
|
7692
|
+
* Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and with privacy protection. Use `Update domain nameservers` and `Disable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
|
|
7680
7693
|
* @summary Complete domain setup
|
|
7681
7694
|
* @param {string} domain Domain name
|
|
7682
7695
|
* @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
|
|
@@ -8059,7 +8072,7 @@ export const DomainsPortfolioApiFp = function (configuration) {
|
|
|
8059
8072
|
});
|
|
8060
8073
|
},
|
|
8061
8074
|
/**
|
|
8062
|
-
* Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and
|
|
8075
|
+
* Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and with privacy protection. Use `Update domain nameservers` and `Disable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
|
|
8063
8076
|
* @summary Complete domain setup
|
|
8064
8077
|
* @param {string} domain Domain name
|
|
8065
8078
|
* @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
|
|
@@ -8244,7 +8257,7 @@ export const DomainsPortfolioApiFactory = function (configuration, basePath, axi
|
|
|
8244
8257
|
return localVarFp.claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(axios, basePath));
|
|
8245
8258
|
},
|
|
8246
8259
|
/**
|
|
8247
|
-
* Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and
|
|
8260
|
+
* Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and with privacy protection. Use `Update domain nameservers` and `Disable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
|
|
8248
8261
|
* @summary Complete domain setup
|
|
8249
8262
|
* @param {string} domain Domain name
|
|
8250
8263
|
* @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
|
|
@@ -8375,7 +8388,7 @@ export class DomainsPortfolioApi extends BaseAPI {
|
|
|
8375
8388
|
return DomainsPortfolioApiFp(this.configuration).claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8376
8389
|
}
|
|
8377
8390
|
/**
|
|
8378
|
-
* Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and
|
|
8391
|
+
* Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and with privacy protection. Use `Update domain nameservers` and `Disable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
|
|
8379
8392
|
* @summary Complete domain setup
|
|
8380
8393
|
* @param {string} domain Domain name
|
|
8381
8394
|
* @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
|
|
@@ -23443,7 +23456,7 @@ export const ReachCampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
23443
23456
|
};
|
|
23444
23457
|
}),
|
|
23445
23458
|
/**
|
|
23446
|
-
* Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint.
|
|
23459
|
+
* Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint. The email content is not included: pass `template_uuid` to the get email template endpoint to read its HTML.
|
|
23447
23460
|
* @summary Get campaign details
|
|
23448
23461
|
* @param {string} profileUuid Profile uuid parameter
|
|
23449
23462
|
* @param {string} campaignUuid Campaign uuid parameter
|
|
@@ -23592,7 +23605,7 @@ export const ReachCampaignsApiFp = function (configuration) {
|
|
|
23592
23605
|
});
|
|
23593
23606
|
},
|
|
23594
23607
|
/**
|
|
23595
|
-
* Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint.
|
|
23608
|
+
* Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint. The email content is not included: pass `template_uuid` to the get email template endpoint to read its HTML.
|
|
23596
23609
|
* @summary Get campaign details
|
|
23597
23610
|
* @param {string} profileUuid Profile uuid parameter
|
|
23598
23611
|
* @param {string} campaignUuid Campaign uuid parameter
|
|
@@ -23664,7 +23677,7 @@ export const ReachCampaignsApiFactory = function (configuration, basePath, axios
|
|
|
23664
23677
|
return localVarFp.createADraftCampaignV1(profileUuid, reachV1CampaignsStoreRequest, options).then((request) => request(axios, basePath));
|
|
23665
23678
|
},
|
|
23666
23679
|
/**
|
|
23667
|
-
* Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint.
|
|
23680
|
+
* Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint. The email content is not included: pass `template_uuid` to the get email template endpoint to read its HTML.
|
|
23668
23681
|
* @summary Get campaign details
|
|
23669
23682
|
* @param {string} profileUuid Profile uuid parameter
|
|
23670
23683
|
* @param {string} campaignUuid Campaign uuid parameter
|
|
@@ -23722,7 +23735,7 @@ export class ReachCampaignsApi extends BaseAPI {
|
|
|
23722
23735
|
return ReachCampaignsApiFp(this.configuration).createADraftCampaignV1(profileUuid, reachV1CampaignsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
23723
23736
|
}
|
|
23724
23737
|
/**
|
|
23725
|
-
* Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint.
|
|
23738
|
+
* Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint. The email content is not included: pass `template_uuid` to the get email template endpoint to read its HTML.
|
|
23726
23739
|
* @summary Get campaign details
|
|
23727
23740
|
* @param {string} profileUuid Profile uuid parameter
|
|
23728
23741
|
* @param {string} campaignUuid Campaign uuid parameter
|
|
@@ -25723,6 +25736,479 @@ export const ListFormsV1StatusEnum = {
|
|
|
25723
25736
|
Paused: 'paused',
|
|
25724
25737
|
Draft: 'draft'
|
|
25725
25738
|
};
|
|
25739
|
+
/**
|
|
25740
|
+
* ReachIntegrationsApi - axios parameter creator
|
|
25741
|
+
* @export
|
|
25742
|
+
*/
|
|
25743
|
+
export const ReachIntegrationsApiAxiosParamCreator = function (configuration) {
|
|
25744
|
+
return {
|
|
25745
|
+
/**
|
|
25746
|
+
* Connect an AI Website Builder site the customer built manually to the profile, so its subscribers flow into Reach. Fails with not found when the customer owns no AI Website Builder site with that domain. Fails with `DOMAIN_ALREADY_EXISTS` when the domain is connected to any profile - to move a site to another plan, disconnect it from the old profile first - and with `WEBSITE_CONNECTION_ALREADY_EXISTS` when this profile already has an AI Website Builder site. The eCommerce store selling on the site, if it is not connected anywhere, is connected too. WordPress sites and sites made with the agentic AI Website Builder cannot be connected here.
|
|
25747
|
+
* @summary Connect AI Website Builder site
|
|
25748
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25749
|
+
* @param {ReachV1WebsitesWebsiteBuilderConnectRequest} reachV1WebsitesWebsiteBuilderConnectRequest
|
|
25750
|
+
* @param {*} [options] Override http request option.
|
|
25751
|
+
* @throws {RequiredError}
|
|
25752
|
+
*/
|
|
25753
|
+
connectAIWebsiteBuilderSiteV1: (profileUuid_1, reachV1WebsitesWebsiteBuilderConnectRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1WebsitesWebsiteBuilderConnectRequest_1, ...args_1], void 0, function* (profileUuid, reachV1WebsitesWebsiteBuilderConnectRequest, options = {}) {
|
|
25754
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25755
|
+
assertParamExists('connectAIWebsiteBuilderSiteV1', 'profileUuid', profileUuid);
|
|
25756
|
+
// verify required parameter 'reachV1WebsitesWebsiteBuilderConnectRequest' is not null or undefined
|
|
25757
|
+
assertParamExists('connectAIWebsiteBuilderSiteV1', 'reachV1WebsitesWebsiteBuilderConnectRequest', reachV1WebsitesWebsiteBuilderConnectRequest);
|
|
25758
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/websites/website-builder`
|
|
25759
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
25760
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25761
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25762
|
+
let baseOptions;
|
|
25763
|
+
if (configuration) {
|
|
25764
|
+
baseOptions = configuration.baseOptions;
|
|
25765
|
+
}
|
|
25766
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
25767
|
+
const localVarHeaderParameter = {};
|
|
25768
|
+
const localVarQueryParameter = {};
|
|
25769
|
+
// authentication apiToken required
|
|
25770
|
+
// http bearer authentication required
|
|
25771
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
25772
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25773
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25774
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25775
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25776
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1WebsitesWebsiteBuilderConnectRequest, localVarRequestOptions, configuration);
|
|
25777
|
+
return {
|
|
25778
|
+
url: toPathString(localVarUrlObj),
|
|
25779
|
+
options: localVarRequestOptions,
|
|
25780
|
+
};
|
|
25781
|
+
}),
|
|
25782
|
+
/**
|
|
25783
|
+
* Disconnect an AI Website Builder site from the profile; the site stops sending subscribers to Reach. Take `domain` from the list connected websites endpoint. Works for a site that was already deleted in the builder. Fails with not found when the domain is not connected to this profile. Contacts and any connected eCommerce store stay. The site stays disconnected until it is connected again, so confirm the site and the plan with the customer before calling.
|
|
25784
|
+
* @summary Disconnect AI Website Builder site
|
|
25785
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25786
|
+
* @param {ReachV1WebsitesWebsiteBuilderDisconnectRequest} reachV1WebsitesWebsiteBuilderDisconnectRequest
|
|
25787
|
+
* @param {*} [options] Override http request option.
|
|
25788
|
+
* @throws {RequiredError}
|
|
25789
|
+
*/
|
|
25790
|
+
disconnectAIWebsiteBuilderSiteV1: (profileUuid_1, reachV1WebsitesWebsiteBuilderDisconnectRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1WebsitesWebsiteBuilderDisconnectRequest_1, ...args_1], void 0, function* (profileUuid, reachV1WebsitesWebsiteBuilderDisconnectRequest, options = {}) {
|
|
25791
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25792
|
+
assertParamExists('disconnectAIWebsiteBuilderSiteV1', 'profileUuid', profileUuid);
|
|
25793
|
+
// verify required parameter 'reachV1WebsitesWebsiteBuilderDisconnectRequest' is not null or undefined
|
|
25794
|
+
assertParamExists('disconnectAIWebsiteBuilderSiteV1', 'reachV1WebsitesWebsiteBuilderDisconnectRequest', reachV1WebsitesWebsiteBuilderDisconnectRequest);
|
|
25795
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/websites/website-builder`
|
|
25796
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
25797
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25798
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25799
|
+
let baseOptions;
|
|
25800
|
+
if (configuration) {
|
|
25801
|
+
baseOptions = configuration.baseOptions;
|
|
25802
|
+
}
|
|
25803
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
25804
|
+
const localVarHeaderParameter = {};
|
|
25805
|
+
const localVarQueryParameter = {};
|
|
25806
|
+
// authentication apiToken required
|
|
25807
|
+
// http bearer authentication required
|
|
25808
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
25809
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25810
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25811
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25812
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25813
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1WebsitesWebsiteBuilderDisconnectRequest, localVarRequestOptions, configuration);
|
|
25814
|
+
return {
|
|
25815
|
+
url: toPathString(localVarUrlObj),
|
|
25816
|
+
options: localVarRequestOptions,
|
|
25817
|
+
};
|
|
25818
|
+
}),
|
|
25819
|
+
/**
|
|
25820
|
+
* Disconnect an eCommerce store from the profile. Reach stops receiving the store\'s customers and orders, and its products and coupons are removed from Reach; contacts and past orders stay. Take `store_id` from the list eCommerce stores endpoint; for a store that is `connected_to_other_profile`, call this with that profile. Also succeeds when the store is not connected to this profile, so success is not proof that anything was disconnected. Confirm the store and the plan with the customer before calling.
|
|
25821
|
+
* @summary Disconnect Ecommerce store
|
|
25822
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25823
|
+
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
25824
|
+
* @param {*} [options] Override http request option.
|
|
25825
|
+
* @throws {RequiredError}
|
|
25826
|
+
*/
|
|
25827
|
+
disconnectEcommerceStoreV1: (profileUuid_1, storeId_1, ...args_1) => __awaiter(this, [profileUuid_1, storeId_1, ...args_1], void 0, function* (profileUuid, storeId, options = {}) {
|
|
25828
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25829
|
+
assertParamExists('disconnectEcommerceStoreV1', 'profileUuid', profileUuid);
|
|
25830
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
25831
|
+
assertParamExists('disconnectEcommerceStoreV1', 'storeId', storeId);
|
|
25832
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/ecommerce/stores/{storeId}`
|
|
25833
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
25834
|
+
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
|
|
25835
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25836
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25837
|
+
let baseOptions;
|
|
25838
|
+
if (configuration) {
|
|
25839
|
+
baseOptions = configuration.baseOptions;
|
|
25840
|
+
}
|
|
25841
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
25842
|
+
const localVarHeaderParameter = {};
|
|
25843
|
+
const localVarQueryParameter = {};
|
|
25844
|
+
// authentication apiToken required
|
|
25845
|
+
// http bearer authentication required
|
|
25846
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
25847
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25848
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25849
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25850
|
+
return {
|
|
25851
|
+
url: toPathString(localVarUrlObj),
|
|
25852
|
+
options: localVarRequestOptions,
|
|
25853
|
+
};
|
|
25854
|
+
}),
|
|
25855
|
+
/**
|
|
25856
|
+
* Disconnect a WordPress site from the profile. The Reach plugin on the site stops sending subscribers and store data, and the site\'s products and coupons are removed from Reach; contacts and past orders stay. Take `domain` from the list connected websites endpoint. Fails with not found when the domain is not connected to this profile. This cannot be undone through the API - the customer reconnects from the WordPress plugin - so confirm the site and the plan with the customer before calling.
|
|
25857
|
+
* @summary Disconnect WordPress site
|
|
25858
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25859
|
+
* @param {ReachV1WebsitesWordPressDisconnectRequest} reachV1WebsitesWordPressDisconnectRequest
|
|
25860
|
+
* @param {*} [options] Override http request option.
|
|
25861
|
+
* @throws {RequiredError}
|
|
25862
|
+
*/
|
|
25863
|
+
disconnectWordPressSiteV1: (profileUuid_1, reachV1WebsitesWordPressDisconnectRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1WebsitesWordPressDisconnectRequest_1, ...args_1], void 0, function* (profileUuid, reachV1WebsitesWordPressDisconnectRequest, options = {}) {
|
|
25864
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25865
|
+
assertParamExists('disconnectWordPressSiteV1', 'profileUuid', profileUuid);
|
|
25866
|
+
// verify required parameter 'reachV1WebsitesWordPressDisconnectRequest' is not null or undefined
|
|
25867
|
+
assertParamExists('disconnectWordPressSiteV1', 'reachV1WebsitesWordPressDisconnectRequest', reachV1WebsitesWordPressDisconnectRequest);
|
|
25868
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/websites/wordpress`
|
|
25869
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
25870
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25871
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25872
|
+
let baseOptions;
|
|
25873
|
+
if (configuration) {
|
|
25874
|
+
baseOptions = configuration.baseOptions;
|
|
25875
|
+
}
|
|
25876
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
25877
|
+
const localVarHeaderParameter = {};
|
|
25878
|
+
const localVarQueryParameter = {};
|
|
25879
|
+
// authentication apiToken required
|
|
25880
|
+
// http bearer authentication required
|
|
25881
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
25882
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25883
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25884
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25885
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25886
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1WebsitesWordPressDisconnectRequest, localVarRequestOptions, configuration);
|
|
25887
|
+
return {
|
|
25888
|
+
url: toPathString(localVarUrlObj),
|
|
25889
|
+
options: localVarRequestOptions,
|
|
25890
|
+
};
|
|
25891
|
+
}),
|
|
25892
|
+
/**
|
|
25893
|
+
* Get the websites connected to the profile, each with its `domain` and `platform_type`. A domain is connected to at most one profile, so to find which plan a site is on, call this for each profile. Only connected sites are listed, not every website the customer owns, and eCommerce stores are not included - use the list eCommerce stores endpoint for those. Pass `domain` to the disconnect WordPress site or disconnect AI Website Builder site endpoint.
|
|
25894
|
+
* @summary List connected websites
|
|
25895
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25896
|
+
* @param {*} [options] Override http request option.
|
|
25897
|
+
* @throws {RequiredError}
|
|
25898
|
+
*/
|
|
25899
|
+
listConnectedWebsitesV1: (profileUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, ...args_1], void 0, function* (profileUuid, options = {}) {
|
|
25900
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25901
|
+
assertParamExists('listConnectedWebsitesV1', 'profileUuid', profileUuid);
|
|
25902
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/websites`
|
|
25903
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
25904
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25905
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25906
|
+
let baseOptions;
|
|
25907
|
+
if (configuration) {
|
|
25908
|
+
baseOptions = configuration.baseOptions;
|
|
25909
|
+
}
|
|
25910
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
25911
|
+
const localVarHeaderParameter = {};
|
|
25912
|
+
const localVarQueryParameter = {};
|
|
25913
|
+
// authentication apiToken required
|
|
25914
|
+
// http bearer authentication required
|
|
25915
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
25916
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25917
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25918
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25919
|
+
return {
|
|
25920
|
+
url: toPathString(localVarUrlObj),
|
|
25921
|
+
options: localVarRequestOptions,
|
|
25922
|
+
};
|
|
25923
|
+
}),
|
|
25924
|
+
/**
|
|
25925
|
+
* Get all of the customer\'s Hostinger eCommerce stores, each with its `store_id` and `connection_status` for the profile in the path. A store is connected to at most one profile. `connected_to_other_profile` does not name that profile - call this for each profile to find it. The list is empty, not an error, when the eCommerce service cannot be reached. Pass `store_id` to the disconnect eCommerce store endpoint. Connecting an AI Website Builder site connects the store selling on it.
|
|
25926
|
+
* @summary List Ecommerce stores
|
|
25927
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25928
|
+
* @param {*} [options] Override http request option.
|
|
25929
|
+
* @throws {RequiredError}
|
|
25930
|
+
*/
|
|
25931
|
+
listEcommerceStoresV1: (profileUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, ...args_1], void 0, function* (profileUuid, options = {}) {
|
|
25932
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25933
|
+
assertParamExists('listEcommerceStoresV1', 'profileUuid', profileUuid);
|
|
25934
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/ecommerce/stores`
|
|
25935
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
25936
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25937
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25938
|
+
let baseOptions;
|
|
25939
|
+
if (configuration) {
|
|
25940
|
+
baseOptions = configuration.baseOptions;
|
|
25941
|
+
}
|
|
25942
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
25943
|
+
const localVarHeaderParameter = {};
|
|
25944
|
+
const localVarQueryParameter = {};
|
|
25945
|
+
// authentication apiToken required
|
|
25946
|
+
// http bearer authentication required
|
|
25947
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
25948
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25949
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25950
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25951
|
+
return {
|
|
25952
|
+
url: toPathString(localVarUrlObj),
|
|
25953
|
+
options: localVarRequestOptions,
|
|
25954
|
+
};
|
|
25955
|
+
}),
|
|
25956
|
+
};
|
|
25957
|
+
};
|
|
25958
|
+
/**
|
|
25959
|
+
* ReachIntegrationsApi - functional programming interface
|
|
25960
|
+
* @export
|
|
25961
|
+
*/
|
|
25962
|
+
export const ReachIntegrationsApiFp = function (configuration) {
|
|
25963
|
+
const localVarAxiosParamCreator = ReachIntegrationsApiAxiosParamCreator(configuration);
|
|
25964
|
+
return {
|
|
25965
|
+
/**
|
|
25966
|
+
* Connect an AI Website Builder site the customer built manually to the profile, so its subscribers flow into Reach. Fails with not found when the customer owns no AI Website Builder site with that domain. Fails with `DOMAIN_ALREADY_EXISTS` when the domain is connected to any profile - to move a site to another plan, disconnect it from the old profile first - and with `WEBSITE_CONNECTION_ALREADY_EXISTS` when this profile already has an AI Website Builder site. The eCommerce store selling on the site, if it is not connected anywhere, is connected too. WordPress sites and sites made with the agentic AI Website Builder cannot be connected here.
|
|
25967
|
+
* @summary Connect AI Website Builder site
|
|
25968
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25969
|
+
* @param {ReachV1WebsitesWebsiteBuilderConnectRequest} reachV1WebsitesWebsiteBuilderConnectRequest
|
|
25970
|
+
* @param {*} [options] Override http request option.
|
|
25971
|
+
* @throws {RequiredError}
|
|
25972
|
+
*/
|
|
25973
|
+
connectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderConnectRequest, options) {
|
|
25974
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25975
|
+
var _a, _b;
|
|
25976
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.connectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderConnectRequest, options);
|
|
25977
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachIntegrationsApi.connectAIWebsiteBuilderSiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
25978
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25979
|
+
});
|
|
25980
|
+
},
|
|
25981
|
+
/**
|
|
25982
|
+
* Disconnect an AI Website Builder site from the profile; the site stops sending subscribers to Reach. Take `domain` from the list connected websites endpoint. Works for a site that was already deleted in the builder. Fails with not found when the domain is not connected to this profile. Contacts and any connected eCommerce store stay. The site stays disconnected until it is connected again, so confirm the site and the plan with the customer before calling.
|
|
25983
|
+
* @summary Disconnect AI Website Builder site
|
|
25984
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25985
|
+
* @param {ReachV1WebsitesWebsiteBuilderDisconnectRequest} reachV1WebsitesWebsiteBuilderDisconnectRequest
|
|
25986
|
+
* @param {*} [options] Override http request option.
|
|
25987
|
+
* @throws {RequiredError}
|
|
25988
|
+
*/
|
|
25989
|
+
disconnectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderDisconnectRequest, options) {
|
|
25990
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25991
|
+
var _a, _b;
|
|
25992
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disconnectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderDisconnectRequest, options);
|
|
25993
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachIntegrationsApi.disconnectAIWebsiteBuilderSiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
25994
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25995
|
+
});
|
|
25996
|
+
},
|
|
25997
|
+
/**
|
|
25998
|
+
* Disconnect an eCommerce store from the profile. Reach stops receiving the store\'s customers and orders, and its products and coupons are removed from Reach; contacts and past orders stay. Take `store_id` from the list eCommerce stores endpoint; for a store that is `connected_to_other_profile`, call this with that profile. Also succeeds when the store is not connected to this profile, so success is not proof that anything was disconnected. Confirm the store and the plan with the customer before calling.
|
|
25999
|
+
* @summary Disconnect Ecommerce store
|
|
26000
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26001
|
+
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
26002
|
+
* @param {*} [options] Override http request option.
|
|
26003
|
+
* @throws {RequiredError}
|
|
26004
|
+
*/
|
|
26005
|
+
disconnectEcommerceStoreV1(profileUuid, storeId, options) {
|
|
26006
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26007
|
+
var _a, _b;
|
|
26008
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disconnectEcommerceStoreV1(profileUuid, storeId, options);
|
|
26009
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachIntegrationsApi.disconnectEcommerceStoreV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
26010
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26011
|
+
});
|
|
26012
|
+
},
|
|
26013
|
+
/**
|
|
26014
|
+
* Disconnect a WordPress site from the profile. The Reach plugin on the site stops sending subscribers and store data, and the site\'s products and coupons are removed from Reach; contacts and past orders stay. Take `domain` from the list connected websites endpoint. Fails with not found when the domain is not connected to this profile. This cannot be undone through the API - the customer reconnects from the WordPress plugin - so confirm the site and the plan with the customer before calling.
|
|
26015
|
+
* @summary Disconnect WordPress site
|
|
26016
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26017
|
+
* @param {ReachV1WebsitesWordPressDisconnectRequest} reachV1WebsitesWordPressDisconnectRequest
|
|
26018
|
+
* @param {*} [options] Override http request option.
|
|
26019
|
+
* @throws {RequiredError}
|
|
26020
|
+
*/
|
|
26021
|
+
disconnectWordPressSiteV1(profileUuid, reachV1WebsitesWordPressDisconnectRequest, options) {
|
|
26022
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26023
|
+
var _a, _b;
|
|
26024
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disconnectWordPressSiteV1(profileUuid, reachV1WebsitesWordPressDisconnectRequest, options);
|
|
26025
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachIntegrationsApi.disconnectWordPressSiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
26026
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26027
|
+
});
|
|
26028
|
+
},
|
|
26029
|
+
/**
|
|
26030
|
+
* Get the websites connected to the profile, each with its `domain` and `platform_type`. A domain is connected to at most one profile, so to find which plan a site is on, call this for each profile. Only connected sites are listed, not every website the customer owns, and eCommerce stores are not included - use the list eCommerce stores endpoint for those. Pass `domain` to the disconnect WordPress site or disconnect AI Website Builder site endpoint.
|
|
26031
|
+
* @summary List connected websites
|
|
26032
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26033
|
+
* @param {*} [options] Override http request option.
|
|
26034
|
+
* @throws {RequiredError}
|
|
26035
|
+
*/
|
|
26036
|
+
listConnectedWebsitesV1(profileUuid, options) {
|
|
26037
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26038
|
+
var _a, _b;
|
|
26039
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listConnectedWebsitesV1(profileUuid, options);
|
|
26040
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachIntegrationsApi.listConnectedWebsitesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
26041
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26042
|
+
});
|
|
26043
|
+
},
|
|
26044
|
+
/**
|
|
26045
|
+
* Get all of the customer\'s Hostinger eCommerce stores, each with its `store_id` and `connection_status` for the profile in the path. A store is connected to at most one profile. `connected_to_other_profile` does not name that profile - call this for each profile to find it. The list is empty, not an error, when the eCommerce service cannot be reached. Pass `store_id` to the disconnect eCommerce store endpoint. Connecting an AI Website Builder site connects the store selling on it.
|
|
26046
|
+
* @summary List Ecommerce stores
|
|
26047
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26048
|
+
* @param {*} [options] Override http request option.
|
|
26049
|
+
* @throws {RequiredError}
|
|
26050
|
+
*/
|
|
26051
|
+
listEcommerceStoresV1(profileUuid, options) {
|
|
26052
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26053
|
+
var _a, _b;
|
|
26054
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listEcommerceStoresV1(profileUuid, options);
|
|
26055
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachIntegrationsApi.listEcommerceStoresV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
26056
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26057
|
+
});
|
|
26058
|
+
},
|
|
26059
|
+
};
|
|
26060
|
+
};
|
|
26061
|
+
/**
|
|
26062
|
+
* ReachIntegrationsApi - factory interface
|
|
26063
|
+
* @export
|
|
26064
|
+
*/
|
|
26065
|
+
export const ReachIntegrationsApiFactory = function (configuration, basePath, axios) {
|
|
26066
|
+
const localVarFp = ReachIntegrationsApiFp(configuration);
|
|
26067
|
+
return {
|
|
26068
|
+
/**
|
|
26069
|
+
* Connect an AI Website Builder site the customer built manually to the profile, so its subscribers flow into Reach. Fails with not found when the customer owns no AI Website Builder site with that domain. Fails with `DOMAIN_ALREADY_EXISTS` when the domain is connected to any profile - to move a site to another plan, disconnect it from the old profile first - and with `WEBSITE_CONNECTION_ALREADY_EXISTS` when this profile already has an AI Website Builder site. The eCommerce store selling on the site, if it is not connected anywhere, is connected too. WordPress sites and sites made with the agentic AI Website Builder cannot be connected here.
|
|
26070
|
+
* @summary Connect AI Website Builder site
|
|
26071
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26072
|
+
* @param {ReachV1WebsitesWebsiteBuilderConnectRequest} reachV1WebsitesWebsiteBuilderConnectRequest
|
|
26073
|
+
* @param {*} [options] Override http request option.
|
|
26074
|
+
* @throws {RequiredError}
|
|
26075
|
+
*/
|
|
26076
|
+
connectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderConnectRequest, options) {
|
|
26077
|
+
return localVarFp.connectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderConnectRequest, options).then((request) => request(axios, basePath));
|
|
26078
|
+
},
|
|
26079
|
+
/**
|
|
26080
|
+
* Disconnect an AI Website Builder site from the profile; the site stops sending subscribers to Reach. Take `domain` from the list connected websites endpoint. Works for a site that was already deleted in the builder. Fails with not found when the domain is not connected to this profile. Contacts and any connected eCommerce store stay. The site stays disconnected until it is connected again, so confirm the site and the plan with the customer before calling.
|
|
26081
|
+
* @summary Disconnect AI Website Builder site
|
|
26082
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26083
|
+
* @param {ReachV1WebsitesWebsiteBuilderDisconnectRequest} reachV1WebsitesWebsiteBuilderDisconnectRequest
|
|
26084
|
+
* @param {*} [options] Override http request option.
|
|
26085
|
+
* @throws {RequiredError}
|
|
26086
|
+
*/
|
|
26087
|
+
disconnectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderDisconnectRequest, options) {
|
|
26088
|
+
return localVarFp.disconnectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderDisconnectRequest, options).then((request) => request(axios, basePath));
|
|
26089
|
+
},
|
|
26090
|
+
/**
|
|
26091
|
+
* Disconnect an eCommerce store from the profile. Reach stops receiving the store\'s customers and orders, and its products and coupons are removed from Reach; contacts and past orders stay. Take `store_id` from the list eCommerce stores endpoint; for a store that is `connected_to_other_profile`, call this with that profile. Also succeeds when the store is not connected to this profile, so success is not proof that anything was disconnected. Confirm the store and the plan with the customer before calling.
|
|
26092
|
+
* @summary Disconnect Ecommerce store
|
|
26093
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26094
|
+
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
26095
|
+
* @param {*} [options] Override http request option.
|
|
26096
|
+
* @throws {RequiredError}
|
|
26097
|
+
*/
|
|
26098
|
+
disconnectEcommerceStoreV1(profileUuid, storeId, options) {
|
|
26099
|
+
return localVarFp.disconnectEcommerceStoreV1(profileUuid, storeId, options).then((request) => request(axios, basePath));
|
|
26100
|
+
},
|
|
26101
|
+
/**
|
|
26102
|
+
* Disconnect a WordPress site from the profile. The Reach plugin on the site stops sending subscribers and store data, and the site\'s products and coupons are removed from Reach; contacts and past orders stay. Take `domain` from the list connected websites endpoint. Fails with not found when the domain is not connected to this profile. This cannot be undone through the API - the customer reconnects from the WordPress plugin - so confirm the site and the plan with the customer before calling.
|
|
26103
|
+
* @summary Disconnect WordPress site
|
|
26104
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26105
|
+
* @param {ReachV1WebsitesWordPressDisconnectRequest} reachV1WebsitesWordPressDisconnectRequest
|
|
26106
|
+
* @param {*} [options] Override http request option.
|
|
26107
|
+
* @throws {RequiredError}
|
|
26108
|
+
*/
|
|
26109
|
+
disconnectWordPressSiteV1(profileUuid, reachV1WebsitesWordPressDisconnectRequest, options) {
|
|
26110
|
+
return localVarFp.disconnectWordPressSiteV1(profileUuid, reachV1WebsitesWordPressDisconnectRequest, options).then((request) => request(axios, basePath));
|
|
26111
|
+
},
|
|
26112
|
+
/**
|
|
26113
|
+
* Get the websites connected to the profile, each with its `domain` and `platform_type`. A domain is connected to at most one profile, so to find which plan a site is on, call this for each profile. Only connected sites are listed, not every website the customer owns, and eCommerce stores are not included - use the list eCommerce stores endpoint for those. Pass `domain` to the disconnect WordPress site or disconnect AI Website Builder site endpoint.
|
|
26114
|
+
* @summary List connected websites
|
|
26115
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26116
|
+
* @param {*} [options] Override http request option.
|
|
26117
|
+
* @throws {RequiredError}
|
|
26118
|
+
*/
|
|
26119
|
+
listConnectedWebsitesV1(profileUuid, options) {
|
|
26120
|
+
return localVarFp.listConnectedWebsitesV1(profileUuid, options).then((request) => request(axios, basePath));
|
|
26121
|
+
},
|
|
26122
|
+
/**
|
|
26123
|
+
* Get all of the customer\'s Hostinger eCommerce stores, each with its `store_id` and `connection_status` for the profile in the path. A store is connected to at most one profile. `connected_to_other_profile` does not name that profile - call this for each profile to find it. The list is empty, not an error, when the eCommerce service cannot be reached. Pass `store_id` to the disconnect eCommerce store endpoint. Connecting an AI Website Builder site connects the store selling on it.
|
|
26124
|
+
* @summary List Ecommerce stores
|
|
26125
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26126
|
+
* @param {*} [options] Override http request option.
|
|
26127
|
+
* @throws {RequiredError}
|
|
26128
|
+
*/
|
|
26129
|
+
listEcommerceStoresV1(profileUuid, options) {
|
|
26130
|
+
return localVarFp.listEcommerceStoresV1(profileUuid, options).then((request) => request(axios, basePath));
|
|
26131
|
+
},
|
|
26132
|
+
};
|
|
26133
|
+
};
|
|
26134
|
+
/**
|
|
26135
|
+
* ReachIntegrationsApi - object-oriented interface
|
|
26136
|
+
* @export
|
|
26137
|
+
* @class ReachIntegrationsApi
|
|
26138
|
+
* @extends {BaseAPI}
|
|
26139
|
+
*/
|
|
26140
|
+
export class ReachIntegrationsApi extends BaseAPI {
|
|
26141
|
+
/**
|
|
26142
|
+
* Connect an AI Website Builder site the customer built manually to the profile, so its subscribers flow into Reach. Fails with not found when the customer owns no AI Website Builder site with that domain. Fails with `DOMAIN_ALREADY_EXISTS` when the domain is connected to any profile - to move a site to another plan, disconnect it from the old profile first - and with `WEBSITE_CONNECTION_ALREADY_EXISTS` when this profile already has an AI Website Builder site. The eCommerce store selling on the site, if it is not connected anywhere, is connected too. WordPress sites and sites made with the agentic AI Website Builder cannot be connected here.
|
|
26143
|
+
* @summary Connect AI Website Builder site
|
|
26144
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26145
|
+
* @param {ReachV1WebsitesWebsiteBuilderConnectRequest} reachV1WebsitesWebsiteBuilderConnectRequest
|
|
26146
|
+
* @param {*} [options] Override http request option.
|
|
26147
|
+
* @throws {RequiredError}
|
|
26148
|
+
* @memberof ReachIntegrationsApi
|
|
26149
|
+
*/
|
|
26150
|
+
connectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderConnectRequest, options) {
|
|
26151
|
+
return ReachIntegrationsApiFp(this.configuration).connectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderConnectRequest, options).then((request) => request(this.axios, this.basePath));
|
|
26152
|
+
}
|
|
26153
|
+
/**
|
|
26154
|
+
* Disconnect an AI Website Builder site from the profile; the site stops sending subscribers to Reach. Take `domain` from the list connected websites endpoint. Works for a site that was already deleted in the builder. Fails with not found when the domain is not connected to this profile. Contacts and any connected eCommerce store stay. The site stays disconnected until it is connected again, so confirm the site and the plan with the customer before calling.
|
|
26155
|
+
* @summary Disconnect AI Website Builder site
|
|
26156
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26157
|
+
* @param {ReachV1WebsitesWebsiteBuilderDisconnectRequest} reachV1WebsitesWebsiteBuilderDisconnectRequest
|
|
26158
|
+
* @param {*} [options] Override http request option.
|
|
26159
|
+
* @throws {RequiredError}
|
|
26160
|
+
* @memberof ReachIntegrationsApi
|
|
26161
|
+
*/
|
|
26162
|
+
disconnectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderDisconnectRequest, options) {
|
|
26163
|
+
return ReachIntegrationsApiFp(this.configuration).disconnectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderDisconnectRequest, options).then((request) => request(this.axios, this.basePath));
|
|
26164
|
+
}
|
|
26165
|
+
/**
|
|
26166
|
+
* Disconnect an eCommerce store from the profile. Reach stops receiving the store\'s customers and orders, and its products and coupons are removed from Reach; contacts and past orders stay. Take `store_id` from the list eCommerce stores endpoint; for a store that is `connected_to_other_profile`, call this with that profile. Also succeeds when the store is not connected to this profile, so success is not proof that anything was disconnected. Confirm the store and the plan with the customer before calling.
|
|
26167
|
+
* @summary Disconnect Ecommerce store
|
|
26168
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26169
|
+
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
26170
|
+
* @param {*} [options] Override http request option.
|
|
26171
|
+
* @throws {RequiredError}
|
|
26172
|
+
* @memberof ReachIntegrationsApi
|
|
26173
|
+
*/
|
|
26174
|
+
disconnectEcommerceStoreV1(profileUuid, storeId, options) {
|
|
26175
|
+
return ReachIntegrationsApiFp(this.configuration).disconnectEcommerceStoreV1(profileUuid, storeId, options).then((request) => request(this.axios, this.basePath));
|
|
26176
|
+
}
|
|
26177
|
+
/**
|
|
26178
|
+
* Disconnect a WordPress site from the profile. The Reach plugin on the site stops sending subscribers and store data, and the site\'s products and coupons are removed from Reach; contacts and past orders stay. Take `domain` from the list connected websites endpoint. Fails with not found when the domain is not connected to this profile. This cannot be undone through the API - the customer reconnects from the WordPress plugin - so confirm the site and the plan with the customer before calling.
|
|
26179
|
+
* @summary Disconnect WordPress site
|
|
26180
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26181
|
+
* @param {ReachV1WebsitesWordPressDisconnectRequest} reachV1WebsitesWordPressDisconnectRequest
|
|
26182
|
+
* @param {*} [options] Override http request option.
|
|
26183
|
+
* @throws {RequiredError}
|
|
26184
|
+
* @memberof ReachIntegrationsApi
|
|
26185
|
+
*/
|
|
26186
|
+
disconnectWordPressSiteV1(profileUuid, reachV1WebsitesWordPressDisconnectRequest, options) {
|
|
26187
|
+
return ReachIntegrationsApiFp(this.configuration).disconnectWordPressSiteV1(profileUuid, reachV1WebsitesWordPressDisconnectRequest, options).then((request) => request(this.axios, this.basePath));
|
|
26188
|
+
}
|
|
26189
|
+
/**
|
|
26190
|
+
* Get the websites connected to the profile, each with its `domain` and `platform_type`. A domain is connected to at most one profile, so to find which plan a site is on, call this for each profile. Only connected sites are listed, not every website the customer owns, and eCommerce stores are not included - use the list eCommerce stores endpoint for those. Pass `domain` to the disconnect WordPress site or disconnect AI Website Builder site endpoint.
|
|
26191
|
+
* @summary List connected websites
|
|
26192
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26193
|
+
* @param {*} [options] Override http request option.
|
|
26194
|
+
* @throws {RequiredError}
|
|
26195
|
+
* @memberof ReachIntegrationsApi
|
|
26196
|
+
*/
|
|
26197
|
+
listConnectedWebsitesV1(profileUuid, options) {
|
|
26198
|
+
return ReachIntegrationsApiFp(this.configuration).listConnectedWebsitesV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
|
|
26199
|
+
}
|
|
26200
|
+
/**
|
|
26201
|
+
* Get all of the customer\'s Hostinger eCommerce stores, each with its `store_id` and `connection_status` for the profile in the path. A store is connected to at most one profile. `connected_to_other_profile` does not name that profile - call this for each profile to find it. The list is empty, not an error, when the eCommerce service cannot be reached. Pass `store_id` to the disconnect eCommerce store endpoint. Connecting an AI Website Builder site connects the store selling on it.
|
|
26202
|
+
* @summary List Ecommerce stores
|
|
26203
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26204
|
+
* @param {*} [options] Override http request option.
|
|
26205
|
+
* @throws {RequiredError}
|
|
26206
|
+
* @memberof ReachIntegrationsApi
|
|
26207
|
+
*/
|
|
26208
|
+
listEcommerceStoresV1(profileUuid, options) {
|
|
26209
|
+
return ReachIntegrationsApiFp(this.configuration).listEcommerceStoresV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
|
|
26210
|
+
}
|
|
26211
|
+
}
|
|
25726
26212
|
/**
|
|
25727
26213
|
* ReachProfilesApi - axios parameter creator
|
|
25728
26214
|
* @export
|
|
@@ -28139,7 +28625,43 @@ export const ReachTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
28139
28625
|
};
|
|
28140
28626
|
}),
|
|
28141
28627
|
/**
|
|
28142
|
-
* Get
|
|
28628
|
+
* Get one email template of the profile with its full HTML in `template_content`. A campaign\'s email content is its template: to read what a campaign sends, get the campaign and pass its `template_uuid` here. The HTML can be large, so fetch it only when the content itself is needed, never to browse or pick templates - the list email templates endpoint does that without content. Personalization tags such as `{{name}}` come back unrendered.
|
|
28629
|
+
* @summary Get email template
|
|
28630
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28631
|
+
* @param {string} templateUuid Template uuid parameter
|
|
28632
|
+
* @param {*} [options] Override http request option.
|
|
28633
|
+
* @throws {RequiredError}
|
|
28634
|
+
*/
|
|
28635
|
+
getEmailTemplateV1: (profileUuid_1, templateUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, templateUuid_1, ...args_1], void 0, function* (profileUuid, templateUuid, options = {}) {
|
|
28636
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
28637
|
+
assertParamExists('getEmailTemplateV1', 'profileUuid', profileUuid);
|
|
28638
|
+
// verify required parameter 'templateUuid' is not null or undefined
|
|
28639
|
+
assertParamExists('getEmailTemplateV1', 'templateUuid', templateUuid);
|
|
28640
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/templates/{templateUuid}`
|
|
28641
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
28642
|
+
.replace(`{${"templateUuid"}}`, encodeURIComponent(String(templateUuid)));
|
|
28643
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28644
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28645
|
+
let baseOptions;
|
|
28646
|
+
if (configuration) {
|
|
28647
|
+
baseOptions = configuration.baseOptions;
|
|
28648
|
+
}
|
|
28649
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
28650
|
+
const localVarHeaderParameter = {};
|
|
28651
|
+
const localVarQueryParameter = {};
|
|
28652
|
+
// authentication apiToken required
|
|
28653
|
+
// http bearer authentication required
|
|
28654
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
28655
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28656
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28657
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
28658
|
+
return {
|
|
28659
|
+
url: toPathString(localVarUrlObj),
|
|
28660
|
+
options: localVarRequestOptions,
|
|
28661
|
+
};
|
|
28662
|
+
}),
|
|
28663
|
+
/**
|
|
28664
|
+
* Get a list of the email templates in a profile, most recently updated first. Templates are the reusable email bodies a campaign is built from. The list is not paginated and only the metadata is returned, without the HTML content. Use the `uuid` of a template as the `template_uuid` when creating a campaign. To read one template\'s HTML use the get email template endpoint, and only when the content itself is needed.
|
|
28143
28665
|
* @summary List email templates
|
|
28144
28666
|
* @param {string} profileUuid Profile uuid parameter
|
|
28145
28667
|
* @param {*} [options] Override http request option.
|
|
@@ -28196,7 +28718,23 @@ export const ReachTemplatesApiFp = function (configuration) {
|
|
|
28196
28718
|
});
|
|
28197
28719
|
},
|
|
28198
28720
|
/**
|
|
28199
|
-
* Get
|
|
28721
|
+
* Get one email template of the profile with its full HTML in `template_content`. A campaign\'s email content is its template: to read what a campaign sends, get the campaign and pass its `template_uuid` here. The HTML can be large, so fetch it only when the content itself is needed, never to browse or pick templates - the list email templates endpoint does that without content. Personalization tags such as `{{name}}` come back unrendered.
|
|
28722
|
+
* @summary Get email template
|
|
28723
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28724
|
+
* @param {string} templateUuid Template uuid parameter
|
|
28725
|
+
* @param {*} [options] Override http request option.
|
|
28726
|
+
* @throws {RequiredError}
|
|
28727
|
+
*/
|
|
28728
|
+
getEmailTemplateV1(profileUuid, templateUuid, options) {
|
|
28729
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28730
|
+
var _a, _b;
|
|
28731
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEmailTemplateV1(profileUuid, templateUuid, options);
|
|
28732
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachTemplatesApi.getEmailTemplateV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
28733
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28734
|
+
});
|
|
28735
|
+
},
|
|
28736
|
+
/**
|
|
28737
|
+
* Get a list of the email templates in a profile, most recently updated first. Templates are the reusable email bodies a campaign is built from. The list is not paginated and only the metadata is returned, without the HTML content. Use the `uuid` of a template as the `template_uuid` when creating a campaign. To read one template\'s HTML use the get email template endpoint, and only when the content itself is needed.
|
|
28200
28738
|
* @summary List email templates
|
|
28201
28739
|
* @param {string} profileUuid Profile uuid parameter
|
|
28202
28740
|
* @param {*} [options] Override http request option.
|
|
@@ -28231,7 +28769,18 @@ export const ReachTemplatesApiFactory = function (configuration, basePath, axios
|
|
|
28231
28769
|
return localVarFp.createAnEmailTemplateV1(profileUuid, reachV1TemplatesStoreRequest, options).then((request) => request(axios, basePath));
|
|
28232
28770
|
},
|
|
28233
28771
|
/**
|
|
28234
|
-
* Get
|
|
28772
|
+
* Get one email template of the profile with its full HTML in `template_content`. A campaign\'s email content is its template: to read what a campaign sends, get the campaign and pass its `template_uuid` here. The HTML can be large, so fetch it only when the content itself is needed, never to browse or pick templates - the list email templates endpoint does that without content. Personalization tags such as `{{name}}` come back unrendered.
|
|
28773
|
+
* @summary Get email template
|
|
28774
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28775
|
+
* @param {string} templateUuid Template uuid parameter
|
|
28776
|
+
* @param {*} [options] Override http request option.
|
|
28777
|
+
* @throws {RequiredError}
|
|
28778
|
+
*/
|
|
28779
|
+
getEmailTemplateV1(profileUuid, templateUuid, options) {
|
|
28780
|
+
return localVarFp.getEmailTemplateV1(profileUuid, templateUuid, options).then((request) => request(axios, basePath));
|
|
28781
|
+
},
|
|
28782
|
+
/**
|
|
28783
|
+
* Get a list of the email templates in a profile, most recently updated first. Templates are the reusable email bodies a campaign is built from. The list is not paginated and only the metadata is returned, without the HTML content. Use the `uuid` of a template as the `template_uuid` when creating a campaign. To read one template\'s HTML use the get email template endpoint, and only when the content itself is needed.
|
|
28235
28784
|
* @summary List email templates
|
|
28236
28785
|
* @param {string} profileUuid Profile uuid parameter
|
|
28237
28786
|
* @param {*} [options] Override http request option.
|
|
@@ -28262,7 +28811,19 @@ export class ReachTemplatesApi extends BaseAPI {
|
|
|
28262
28811
|
return ReachTemplatesApiFp(this.configuration).createAnEmailTemplateV1(profileUuid, reachV1TemplatesStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
28263
28812
|
}
|
|
28264
28813
|
/**
|
|
28265
|
-
* Get
|
|
28814
|
+
* Get one email template of the profile with its full HTML in `template_content`. A campaign\'s email content is its template: to read what a campaign sends, get the campaign and pass its `template_uuid` here. The HTML can be large, so fetch it only when the content itself is needed, never to browse or pick templates - the list email templates endpoint does that without content. Personalization tags such as `{{name}}` come back unrendered.
|
|
28815
|
+
* @summary Get email template
|
|
28816
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28817
|
+
* @param {string} templateUuid Template uuid parameter
|
|
28818
|
+
* @param {*} [options] Override http request option.
|
|
28819
|
+
* @throws {RequiredError}
|
|
28820
|
+
* @memberof ReachTemplatesApi
|
|
28821
|
+
*/
|
|
28822
|
+
getEmailTemplateV1(profileUuid, templateUuid, options) {
|
|
28823
|
+
return ReachTemplatesApiFp(this.configuration).getEmailTemplateV1(profileUuid, templateUuid, options).then((request) => request(this.axios, this.basePath));
|
|
28824
|
+
}
|
|
28825
|
+
/**
|
|
28826
|
+
* Get a list of the email templates in a profile, most recently updated first. Templates are the reusable email bodies a campaign is built from. The list is not paginated and only the metadata is returned, without the HTML content. Use the `uuid` of a template as the `template_uuid` when creating a campaign. To read one template\'s HTML use the get email template endpoint, and only when the content itself is needed.
|
|
28266
28827
|
* @summary List email templates
|
|
28267
28828
|
* @param {string} profileUuid Profile uuid parameter
|
|
28268
28829
|
* @param {*} [options] Override http request option.
|