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/api.ts
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
|
|
@@ -15742,6 +15742,100 @@ export interface ReachV1ProfilesSettingsUpdateRequest {
|
|
|
15742
15742
|
*/
|
|
15743
15743
|
'sender_email': string | null;
|
|
15744
15744
|
}
|
|
15745
|
+
/**
|
|
15746
|
+
*
|
|
15747
|
+
* @export
|
|
15748
|
+
* @interface ReachV1StoresStoreResource
|
|
15749
|
+
*/
|
|
15750
|
+
export interface ReachV1StoresStoreResource {
|
|
15751
|
+
/**
|
|
15752
|
+
* Pass this to the disconnect eCommerce store endpoint.
|
|
15753
|
+
* @type {string}
|
|
15754
|
+
* @memberof ReachV1StoresStoreResource
|
|
15755
|
+
*/
|
|
15756
|
+
'store_id': string;
|
|
15757
|
+
/**
|
|
15758
|
+
*
|
|
15759
|
+
* @type {string}
|
|
15760
|
+
* @memberof ReachV1StoresStoreResource
|
|
15761
|
+
*/
|
|
15762
|
+
'business_name': string | null;
|
|
15763
|
+
/**
|
|
15764
|
+
*
|
|
15765
|
+
* @type {string}
|
|
15766
|
+
* @memberof ReachV1StoresStoreResource
|
|
15767
|
+
*/
|
|
15768
|
+
'domain': string | null;
|
|
15769
|
+
/**
|
|
15770
|
+
*
|
|
15771
|
+
* @type {string}
|
|
15772
|
+
* @memberof ReachV1StoresStoreResource
|
|
15773
|
+
*/
|
|
15774
|
+
'logo_url': string | null;
|
|
15775
|
+
/**
|
|
15776
|
+
*
|
|
15777
|
+
* @type {string}
|
|
15778
|
+
* @memberof ReachV1StoresStoreResource
|
|
15779
|
+
*/
|
|
15780
|
+
'version': ReachV1StoresStoreResourceVersionEnum | null;
|
|
15781
|
+
/**
|
|
15782
|
+
* Storefronts of the store.
|
|
15783
|
+
* @type {Array<ReachV1StoresStoreResourceSalesChannelsInner>}
|
|
15784
|
+
* @memberof ReachV1StoresStoreResource
|
|
15785
|
+
*/
|
|
15786
|
+
'sales_channels': Array<ReachV1StoresStoreResourceSalesChannelsInner>;
|
|
15787
|
+
/**
|
|
15788
|
+
* `connected` to the profile in the path, `connected_to_other_profile` when another profile of the account holds it, or `not_connected`.
|
|
15789
|
+
* @type {string}
|
|
15790
|
+
* @memberof ReachV1StoresStoreResource
|
|
15791
|
+
*/
|
|
15792
|
+
'connection_status': ReachV1StoresStoreResourceConnectionStatusEnum;
|
|
15793
|
+
}
|
|
15794
|
+
|
|
15795
|
+
export const ReachV1StoresStoreResourceVersionEnum = {
|
|
15796
|
+
V2Standalone: 'v2_standalone'
|
|
15797
|
+
} as const;
|
|
15798
|
+
|
|
15799
|
+
export type ReachV1StoresStoreResourceVersionEnum = typeof ReachV1StoresStoreResourceVersionEnum[keyof typeof ReachV1StoresStoreResourceVersionEnum];
|
|
15800
|
+
export const ReachV1StoresStoreResourceConnectionStatusEnum = {
|
|
15801
|
+
Connected: 'connected',
|
|
15802
|
+
ConnectedToOtherProfile: 'connected_to_other_profile',
|
|
15803
|
+
NotConnected: 'not_connected'
|
|
15804
|
+
} as const;
|
|
15805
|
+
|
|
15806
|
+
export type ReachV1StoresStoreResourceConnectionStatusEnum = typeof ReachV1StoresStoreResourceConnectionStatusEnum[keyof typeof ReachV1StoresStoreResourceConnectionStatusEnum];
|
|
15807
|
+
|
|
15808
|
+
/**
|
|
15809
|
+
*
|
|
15810
|
+
* @export
|
|
15811
|
+
* @interface ReachV1StoresStoreResourceSalesChannelsInner
|
|
15812
|
+
*/
|
|
15813
|
+
export interface ReachV1StoresStoreResourceSalesChannelsInner {
|
|
15814
|
+
/**
|
|
15815
|
+
*
|
|
15816
|
+
* @type {string}
|
|
15817
|
+
* @memberof ReachV1StoresStoreResourceSalesChannelsInner
|
|
15818
|
+
*/
|
|
15819
|
+
'id': string;
|
|
15820
|
+
/**
|
|
15821
|
+
*
|
|
15822
|
+
* @type {string}
|
|
15823
|
+
* @memberof ReachV1StoresStoreResourceSalesChannelsInner
|
|
15824
|
+
*/
|
|
15825
|
+
'name': string | null;
|
|
15826
|
+
/**
|
|
15827
|
+
*
|
|
15828
|
+
* @type {string}
|
|
15829
|
+
* @memberof ReachV1StoresStoreResourceSalesChannelsInner
|
|
15830
|
+
*/
|
|
15831
|
+
'type': string | null;
|
|
15832
|
+
/**
|
|
15833
|
+
*
|
|
15834
|
+
* @type {string}
|
|
15835
|
+
* @memberof ReachV1StoresStoreResourceSalesChannelsInner
|
|
15836
|
+
*/
|
|
15837
|
+
'domain': string | null;
|
|
15838
|
+
}
|
|
15745
15839
|
/**
|
|
15746
15840
|
* Create a reusable email template
|
|
15747
15841
|
* @export
|
|
@@ -15761,6 +15855,43 @@ export interface ReachV1TemplatesStoreRequest {
|
|
|
15761
15855
|
*/
|
|
15762
15856
|
'title': string | null;
|
|
15763
15857
|
}
|
|
15858
|
+
/**
|
|
15859
|
+
*
|
|
15860
|
+
* @export
|
|
15861
|
+
* @interface ReachV1TemplatesTemplateDetailsResource
|
|
15862
|
+
*/
|
|
15863
|
+
export interface ReachV1TemplatesTemplateDetailsResource {
|
|
15864
|
+
/**
|
|
15865
|
+
* Pass this as the `template_uuid` of a campaign.
|
|
15866
|
+
* @type {string}
|
|
15867
|
+
* @memberof ReachV1TemplatesTemplateDetailsResource
|
|
15868
|
+
*/
|
|
15869
|
+
'uuid': string;
|
|
15870
|
+
/**
|
|
15871
|
+
* Null for templates that were never named.
|
|
15872
|
+
* @type {string}
|
|
15873
|
+
* @memberof ReachV1TemplatesTemplateDetailsResource
|
|
15874
|
+
*/
|
|
15875
|
+
'title': string | null;
|
|
15876
|
+
/**
|
|
15877
|
+
* Full HTML of the template, with personalization tags such as `{{name}}` unrendered. Null when the stored HTML cannot be read.
|
|
15878
|
+
* @type {string}
|
|
15879
|
+
* @memberof ReachV1TemplatesTemplateDetailsResource
|
|
15880
|
+
*/
|
|
15881
|
+
'template_content': string | null;
|
|
15882
|
+
/**
|
|
15883
|
+
*
|
|
15884
|
+
* @type {string}
|
|
15885
|
+
* @memberof ReachV1TemplatesTemplateDetailsResource
|
|
15886
|
+
*/
|
|
15887
|
+
'created_at': string | null;
|
|
15888
|
+
/**
|
|
15889
|
+
*
|
|
15890
|
+
* @type {string}
|
|
15891
|
+
* @memberof ReachV1TemplatesTemplateDetailsResource
|
|
15892
|
+
*/
|
|
15893
|
+
'updated_at': string | null;
|
|
15894
|
+
}
|
|
15764
15895
|
/**
|
|
15765
15896
|
*
|
|
15766
15897
|
* @export
|
|
@@ -15792,6 +15923,73 @@ export interface ReachV1TemplatesTemplateResource {
|
|
|
15792
15923
|
*/
|
|
15793
15924
|
'updated_at': string | null;
|
|
15794
15925
|
}
|
|
15926
|
+
/**
|
|
15927
|
+
* AI Website Builder site to connect to the profile
|
|
15928
|
+
* @export
|
|
15929
|
+
* @interface ReachV1WebsitesWebsiteBuilderConnectRequest
|
|
15930
|
+
*/
|
|
15931
|
+
export interface ReachV1WebsitesWebsiteBuilderConnectRequest {
|
|
15932
|
+
/**
|
|
15933
|
+
*
|
|
15934
|
+
* @type {string}
|
|
15935
|
+
* @memberof ReachV1WebsitesWebsiteBuilderConnectRequest
|
|
15936
|
+
*/
|
|
15937
|
+
'domain': string;
|
|
15938
|
+
}
|
|
15939
|
+
/**
|
|
15940
|
+
* AI Website Builder site to disconnect from the profile
|
|
15941
|
+
* @export
|
|
15942
|
+
* @interface ReachV1WebsitesWebsiteBuilderDisconnectRequest
|
|
15943
|
+
*/
|
|
15944
|
+
export interface ReachV1WebsitesWebsiteBuilderDisconnectRequest {
|
|
15945
|
+
/**
|
|
15946
|
+
*
|
|
15947
|
+
* @type {string}
|
|
15948
|
+
* @memberof ReachV1WebsitesWebsiteBuilderDisconnectRequest
|
|
15949
|
+
*/
|
|
15950
|
+
'domain': string;
|
|
15951
|
+
}
|
|
15952
|
+
/**
|
|
15953
|
+
*
|
|
15954
|
+
* @export
|
|
15955
|
+
* @interface ReachV1WebsitesWebsiteResource
|
|
15956
|
+
*/
|
|
15957
|
+
export interface ReachV1WebsitesWebsiteResource {
|
|
15958
|
+
/**
|
|
15959
|
+
* Pass this to the disconnect endpoint matching `platform_type`.
|
|
15960
|
+
* @type {string}
|
|
15961
|
+
* @memberof ReachV1WebsitesWebsiteResource
|
|
15962
|
+
*/
|
|
15963
|
+
'domain': string;
|
|
15964
|
+
/**
|
|
15965
|
+
* `wordpress`, `website_builder` (AI Website Builder site built manually) or `horizons` (site built with the agentic AI Website Builder).
|
|
15966
|
+
* @type {string}
|
|
15967
|
+
* @memberof ReachV1WebsitesWebsiteResource
|
|
15968
|
+
*/
|
|
15969
|
+
'platform_type': ReachV1WebsitesWebsiteResourcePlatformTypeEnum;
|
|
15970
|
+
}
|
|
15971
|
+
|
|
15972
|
+
export const ReachV1WebsitesWebsiteResourcePlatformTypeEnum = {
|
|
15973
|
+
Wordpress: 'wordpress',
|
|
15974
|
+
WebsiteBuilder: 'website_builder',
|
|
15975
|
+
Horizons: 'horizons'
|
|
15976
|
+
} as const;
|
|
15977
|
+
|
|
15978
|
+
export type ReachV1WebsitesWebsiteResourcePlatformTypeEnum = typeof ReachV1WebsitesWebsiteResourcePlatformTypeEnum[keyof typeof ReachV1WebsitesWebsiteResourcePlatformTypeEnum];
|
|
15979
|
+
|
|
15980
|
+
/**
|
|
15981
|
+
* WordPress site to disconnect from the profile
|
|
15982
|
+
* @export
|
|
15983
|
+
* @interface ReachV1WebsitesWordPressDisconnectRequest
|
|
15984
|
+
*/
|
|
15985
|
+
export interface ReachV1WebsitesWordPressDisconnectRequest {
|
|
15986
|
+
/**
|
|
15987
|
+
*
|
|
15988
|
+
* @type {string}
|
|
15989
|
+
* @memberof ReachV1WebsitesWordPressDisconnectRequest
|
|
15990
|
+
*/
|
|
15991
|
+
'domain': string;
|
|
15992
|
+
}
|
|
15795
15993
|
/**
|
|
15796
15994
|
*
|
|
15797
15995
|
* @export
|
|
@@ -25699,7 +25897,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
|
|
|
25699
25897
|
};
|
|
25700
25898
|
},
|
|
25701
25899
|
/**
|
|
25702
|
-
* 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
|
|
25900
|
+
* 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.
|
|
25703
25901
|
* @summary Complete domain setup
|
|
25704
25902
|
* @param {string} domain Domain name
|
|
25705
25903
|
* @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
|
|
@@ -26149,7 +26347,7 @@ export const DomainsPortfolioApiFp = function(configuration?: Configuration) {
|
|
|
26149
26347
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26150
26348
|
},
|
|
26151
26349
|
/**
|
|
26152
|
-
* 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
|
|
26350
|
+
* 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.
|
|
26153
26351
|
* @summary Complete domain setup
|
|
26154
26352
|
* @param {string} domain Domain name
|
|
26155
26353
|
* @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
|
|
@@ -26302,7 +26500,7 @@ export const DomainsPortfolioApiFactory = function (configuration?: Configuratio
|
|
|
26302
26500
|
return localVarFp.claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(axios, basePath));
|
|
26303
26501
|
},
|
|
26304
26502
|
/**
|
|
26305
|
-
* 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
|
|
26503
|
+
* 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.
|
|
26306
26504
|
* @summary Complete domain setup
|
|
26307
26505
|
* @param {string} domain Domain name
|
|
26308
26506
|
* @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
|
|
@@ -26435,7 +26633,7 @@ export class DomainsPortfolioApi extends BaseAPI {
|
|
|
26435
26633
|
}
|
|
26436
26634
|
|
|
26437
26635
|
/**
|
|
26438
|
-
* 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
|
|
26636
|
+
* 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.
|
|
26439
26637
|
* @summary Complete domain setup
|
|
26440
26638
|
* @param {string} domain Domain name
|
|
26441
26639
|
* @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
|
|
@@ -42612,7 +42810,7 @@ export const ReachCampaignsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
42612
42810
|
};
|
|
42613
42811
|
},
|
|
42614
42812
|
/**
|
|
42615
|
-
* 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.
|
|
42813
|
+
* 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.
|
|
42616
42814
|
* @summary Get campaign details
|
|
42617
42815
|
* @param {string} profileUuid Profile uuid parameter
|
|
42618
42816
|
* @param {string} campaignUuid Campaign uuid parameter
|
|
@@ -42782,7 +42980,7 @@ export const ReachCampaignsApiFp = function(configuration?: Configuration) {
|
|
|
42782
42980
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42783
42981
|
},
|
|
42784
42982
|
/**
|
|
42785
|
-
* 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.
|
|
42983
|
+
* 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.
|
|
42786
42984
|
* @summary Get campaign details
|
|
42787
42985
|
* @param {string} profileUuid Profile uuid parameter
|
|
42788
42986
|
* @param {string} campaignUuid Campaign uuid parameter
|
|
@@ -42846,7 +43044,7 @@ export const ReachCampaignsApiFactory = function (configuration?: Configuration,
|
|
|
42846
43044
|
return localVarFp.createADraftCampaignV1(profileUuid, reachV1CampaignsStoreRequest, options).then((request) => request(axios, basePath));
|
|
42847
43045
|
},
|
|
42848
43046
|
/**
|
|
42849
|
-
* 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.
|
|
43047
|
+
* 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.
|
|
42850
43048
|
* @summary Get campaign details
|
|
42851
43049
|
* @param {string} profileUuid Profile uuid parameter
|
|
42852
43050
|
* @param {string} campaignUuid Campaign uuid parameter
|
|
@@ -42906,7 +43104,7 @@ export class ReachCampaignsApi extends BaseAPI {
|
|
|
42906
43104
|
}
|
|
42907
43105
|
|
|
42908
43106
|
/**
|
|
42909
|
-
* 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.
|
|
43107
|
+
* 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.
|
|
42910
43108
|
* @summary Get campaign details
|
|
42911
43109
|
* @param {string} profileUuid Profile uuid parameter
|
|
42912
43110
|
* @param {string} campaignUuid Campaign uuid parameter
|
|
@@ -45047,6 +45245,511 @@ export const ListFormsV1StatusEnum = {
|
|
|
45047
45245
|
export type ListFormsV1StatusEnum = typeof ListFormsV1StatusEnum[keyof typeof ListFormsV1StatusEnum];
|
|
45048
45246
|
|
|
45049
45247
|
|
|
45248
|
+
/**
|
|
45249
|
+
* ReachIntegrationsApi - axios parameter creator
|
|
45250
|
+
* @export
|
|
45251
|
+
*/
|
|
45252
|
+
export const ReachIntegrationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
45253
|
+
return {
|
|
45254
|
+
/**
|
|
45255
|
+
* 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.
|
|
45256
|
+
* @summary Connect AI Website Builder site
|
|
45257
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45258
|
+
* @param {ReachV1WebsitesWebsiteBuilderConnectRequest} reachV1WebsitesWebsiteBuilderConnectRequest
|
|
45259
|
+
* @param {*} [options] Override http request option.
|
|
45260
|
+
* @throws {RequiredError}
|
|
45261
|
+
*/
|
|
45262
|
+
connectAIWebsiteBuilderSiteV1: async (profileUuid: string, reachV1WebsitesWebsiteBuilderConnectRequest: ReachV1WebsitesWebsiteBuilderConnectRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45263
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
45264
|
+
assertParamExists('connectAIWebsiteBuilderSiteV1', 'profileUuid', profileUuid)
|
|
45265
|
+
// verify required parameter 'reachV1WebsitesWebsiteBuilderConnectRequest' is not null or undefined
|
|
45266
|
+
assertParamExists('connectAIWebsiteBuilderSiteV1', 'reachV1WebsitesWebsiteBuilderConnectRequest', reachV1WebsitesWebsiteBuilderConnectRequest)
|
|
45267
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/websites/website-builder`
|
|
45268
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
45269
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45270
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45271
|
+
let baseOptions;
|
|
45272
|
+
if (configuration) {
|
|
45273
|
+
baseOptions = configuration.baseOptions;
|
|
45274
|
+
}
|
|
45275
|
+
|
|
45276
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
45277
|
+
const localVarHeaderParameter = {} as any;
|
|
45278
|
+
const localVarQueryParameter = {} as any;
|
|
45279
|
+
|
|
45280
|
+
// authentication apiToken required
|
|
45281
|
+
// http bearer authentication required
|
|
45282
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
45283
|
+
|
|
45284
|
+
|
|
45285
|
+
|
|
45286
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
45287
|
+
|
|
45288
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45289
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45290
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
45291
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1WebsitesWebsiteBuilderConnectRequest, localVarRequestOptions, configuration)
|
|
45292
|
+
|
|
45293
|
+
return {
|
|
45294
|
+
url: toPathString(localVarUrlObj),
|
|
45295
|
+
options: localVarRequestOptions,
|
|
45296
|
+
};
|
|
45297
|
+
},
|
|
45298
|
+
/**
|
|
45299
|
+
* 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.
|
|
45300
|
+
* @summary Disconnect AI Website Builder site
|
|
45301
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45302
|
+
* @param {ReachV1WebsitesWebsiteBuilderDisconnectRequest} reachV1WebsitesWebsiteBuilderDisconnectRequest
|
|
45303
|
+
* @param {*} [options] Override http request option.
|
|
45304
|
+
* @throws {RequiredError}
|
|
45305
|
+
*/
|
|
45306
|
+
disconnectAIWebsiteBuilderSiteV1: async (profileUuid: string, reachV1WebsitesWebsiteBuilderDisconnectRequest: ReachV1WebsitesWebsiteBuilderDisconnectRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45307
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
45308
|
+
assertParamExists('disconnectAIWebsiteBuilderSiteV1', 'profileUuid', profileUuid)
|
|
45309
|
+
// verify required parameter 'reachV1WebsitesWebsiteBuilderDisconnectRequest' is not null or undefined
|
|
45310
|
+
assertParamExists('disconnectAIWebsiteBuilderSiteV1', 'reachV1WebsitesWebsiteBuilderDisconnectRequest', reachV1WebsitesWebsiteBuilderDisconnectRequest)
|
|
45311
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/websites/website-builder`
|
|
45312
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
45313
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45314
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45315
|
+
let baseOptions;
|
|
45316
|
+
if (configuration) {
|
|
45317
|
+
baseOptions = configuration.baseOptions;
|
|
45318
|
+
}
|
|
45319
|
+
|
|
45320
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
45321
|
+
const localVarHeaderParameter = {} as any;
|
|
45322
|
+
const localVarQueryParameter = {} as any;
|
|
45323
|
+
|
|
45324
|
+
// authentication apiToken required
|
|
45325
|
+
// http bearer authentication required
|
|
45326
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
45327
|
+
|
|
45328
|
+
|
|
45329
|
+
|
|
45330
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
45331
|
+
|
|
45332
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45333
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45334
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
45335
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1WebsitesWebsiteBuilderDisconnectRequest, localVarRequestOptions, configuration)
|
|
45336
|
+
|
|
45337
|
+
return {
|
|
45338
|
+
url: toPathString(localVarUrlObj),
|
|
45339
|
+
options: localVarRequestOptions,
|
|
45340
|
+
};
|
|
45341
|
+
},
|
|
45342
|
+
/**
|
|
45343
|
+
* 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.
|
|
45344
|
+
* @summary Disconnect Ecommerce store
|
|
45345
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45346
|
+
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
45347
|
+
* @param {*} [options] Override http request option.
|
|
45348
|
+
* @throws {RequiredError}
|
|
45349
|
+
*/
|
|
45350
|
+
disconnectEcommerceStoreV1: async (profileUuid: string, storeId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45351
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
45352
|
+
assertParamExists('disconnectEcommerceStoreV1', 'profileUuid', profileUuid)
|
|
45353
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
45354
|
+
assertParamExists('disconnectEcommerceStoreV1', 'storeId', storeId)
|
|
45355
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/ecommerce/stores/{storeId}`
|
|
45356
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
45357
|
+
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
|
|
45358
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45359
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45360
|
+
let baseOptions;
|
|
45361
|
+
if (configuration) {
|
|
45362
|
+
baseOptions = configuration.baseOptions;
|
|
45363
|
+
}
|
|
45364
|
+
|
|
45365
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
45366
|
+
const localVarHeaderParameter = {} as any;
|
|
45367
|
+
const localVarQueryParameter = {} as any;
|
|
45368
|
+
|
|
45369
|
+
// authentication apiToken required
|
|
45370
|
+
// http bearer authentication required
|
|
45371
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
45372
|
+
|
|
45373
|
+
|
|
45374
|
+
|
|
45375
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45376
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45377
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
45378
|
+
|
|
45379
|
+
return {
|
|
45380
|
+
url: toPathString(localVarUrlObj),
|
|
45381
|
+
options: localVarRequestOptions,
|
|
45382
|
+
};
|
|
45383
|
+
},
|
|
45384
|
+
/**
|
|
45385
|
+
* 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.
|
|
45386
|
+
* @summary Disconnect WordPress site
|
|
45387
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45388
|
+
* @param {ReachV1WebsitesWordPressDisconnectRequest} reachV1WebsitesWordPressDisconnectRequest
|
|
45389
|
+
* @param {*} [options] Override http request option.
|
|
45390
|
+
* @throws {RequiredError}
|
|
45391
|
+
*/
|
|
45392
|
+
disconnectWordPressSiteV1: async (profileUuid: string, reachV1WebsitesWordPressDisconnectRequest: ReachV1WebsitesWordPressDisconnectRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45393
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
45394
|
+
assertParamExists('disconnectWordPressSiteV1', 'profileUuid', profileUuid)
|
|
45395
|
+
// verify required parameter 'reachV1WebsitesWordPressDisconnectRequest' is not null or undefined
|
|
45396
|
+
assertParamExists('disconnectWordPressSiteV1', 'reachV1WebsitesWordPressDisconnectRequest', reachV1WebsitesWordPressDisconnectRequest)
|
|
45397
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/websites/wordpress`
|
|
45398
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
45399
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45400
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45401
|
+
let baseOptions;
|
|
45402
|
+
if (configuration) {
|
|
45403
|
+
baseOptions = configuration.baseOptions;
|
|
45404
|
+
}
|
|
45405
|
+
|
|
45406
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
45407
|
+
const localVarHeaderParameter = {} as any;
|
|
45408
|
+
const localVarQueryParameter = {} as any;
|
|
45409
|
+
|
|
45410
|
+
// authentication apiToken required
|
|
45411
|
+
// http bearer authentication required
|
|
45412
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
45413
|
+
|
|
45414
|
+
|
|
45415
|
+
|
|
45416
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
45417
|
+
|
|
45418
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45419
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45420
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
45421
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1WebsitesWordPressDisconnectRequest, localVarRequestOptions, configuration)
|
|
45422
|
+
|
|
45423
|
+
return {
|
|
45424
|
+
url: toPathString(localVarUrlObj),
|
|
45425
|
+
options: localVarRequestOptions,
|
|
45426
|
+
};
|
|
45427
|
+
},
|
|
45428
|
+
/**
|
|
45429
|
+
* 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.
|
|
45430
|
+
* @summary List connected websites
|
|
45431
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45432
|
+
* @param {*} [options] Override http request option.
|
|
45433
|
+
* @throws {RequiredError}
|
|
45434
|
+
*/
|
|
45435
|
+
listConnectedWebsitesV1: async (profileUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45436
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
45437
|
+
assertParamExists('listConnectedWebsitesV1', 'profileUuid', profileUuid)
|
|
45438
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/websites`
|
|
45439
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
45440
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45441
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45442
|
+
let baseOptions;
|
|
45443
|
+
if (configuration) {
|
|
45444
|
+
baseOptions = configuration.baseOptions;
|
|
45445
|
+
}
|
|
45446
|
+
|
|
45447
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
45448
|
+
const localVarHeaderParameter = {} as any;
|
|
45449
|
+
const localVarQueryParameter = {} as any;
|
|
45450
|
+
|
|
45451
|
+
// authentication apiToken required
|
|
45452
|
+
// http bearer authentication required
|
|
45453
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
45454
|
+
|
|
45455
|
+
|
|
45456
|
+
|
|
45457
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45458
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45459
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
45460
|
+
|
|
45461
|
+
return {
|
|
45462
|
+
url: toPathString(localVarUrlObj),
|
|
45463
|
+
options: localVarRequestOptions,
|
|
45464
|
+
};
|
|
45465
|
+
},
|
|
45466
|
+
/**
|
|
45467
|
+
* 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.
|
|
45468
|
+
* @summary List Ecommerce stores
|
|
45469
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45470
|
+
* @param {*} [options] Override http request option.
|
|
45471
|
+
* @throws {RequiredError}
|
|
45472
|
+
*/
|
|
45473
|
+
listEcommerceStoresV1: async (profileUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45474
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
45475
|
+
assertParamExists('listEcommerceStoresV1', 'profileUuid', profileUuid)
|
|
45476
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/ecommerce/stores`
|
|
45477
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
45478
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45479
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45480
|
+
let baseOptions;
|
|
45481
|
+
if (configuration) {
|
|
45482
|
+
baseOptions = configuration.baseOptions;
|
|
45483
|
+
}
|
|
45484
|
+
|
|
45485
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
45486
|
+
const localVarHeaderParameter = {} as any;
|
|
45487
|
+
const localVarQueryParameter = {} as any;
|
|
45488
|
+
|
|
45489
|
+
// authentication apiToken required
|
|
45490
|
+
// http bearer authentication required
|
|
45491
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
45492
|
+
|
|
45493
|
+
|
|
45494
|
+
|
|
45495
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45496
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45497
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
45498
|
+
|
|
45499
|
+
return {
|
|
45500
|
+
url: toPathString(localVarUrlObj),
|
|
45501
|
+
options: localVarRequestOptions,
|
|
45502
|
+
};
|
|
45503
|
+
},
|
|
45504
|
+
}
|
|
45505
|
+
};
|
|
45506
|
+
|
|
45507
|
+
/**
|
|
45508
|
+
* ReachIntegrationsApi - functional programming interface
|
|
45509
|
+
* @export
|
|
45510
|
+
*/
|
|
45511
|
+
export const ReachIntegrationsApiFp = function(configuration?: Configuration) {
|
|
45512
|
+
const localVarAxiosParamCreator = ReachIntegrationsApiAxiosParamCreator(configuration)
|
|
45513
|
+
return {
|
|
45514
|
+
/**
|
|
45515
|
+
* 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.
|
|
45516
|
+
* @summary Connect AI Website Builder site
|
|
45517
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45518
|
+
* @param {ReachV1WebsitesWebsiteBuilderConnectRequest} reachV1WebsitesWebsiteBuilderConnectRequest
|
|
45519
|
+
* @param {*} [options] Override http request option.
|
|
45520
|
+
* @throws {RequiredError}
|
|
45521
|
+
*/
|
|
45522
|
+
async connectAIWebsiteBuilderSiteV1(profileUuid: string, reachV1WebsitesWebsiteBuilderConnectRequest: ReachV1WebsitesWebsiteBuilderConnectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
45523
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.connectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderConnectRequest, options);
|
|
45524
|
+
const localVarOperationServerBasePath = operationServerMap['ReachIntegrationsApi.connectAIWebsiteBuilderSiteV1']?.[0]?.url;
|
|
45525
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
45526
|
+
},
|
|
45527
|
+
/**
|
|
45528
|
+
* 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.
|
|
45529
|
+
* @summary Disconnect AI Website Builder site
|
|
45530
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45531
|
+
* @param {ReachV1WebsitesWebsiteBuilderDisconnectRequest} reachV1WebsitesWebsiteBuilderDisconnectRequest
|
|
45532
|
+
* @param {*} [options] Override http request option.
|
|
45533
|
+
* @throws {RequiredError}
|
|
45534
|
+
*/
|
|
45535
|
+
async disconnectAIWebsiteBuilderSiteV1(profileUuid: string, reachV1WebsitesWebsiteBuilderDisconnectRequest: ReachV1WebsitesWebsiteBuilderDisconnectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
45536
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.disconnectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderDisconnectRequest, options);
|
|
45537
|
+
const localVarOperationServerBasePath = operationServerMap['ReachIntegrationsApi.disconnectAIWebsiteBuilderSiteV1']?.[0]?.url;
|
|
45538
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
45539
|
+
},
|
|
45540
|
+
/**
|
|
45541
|
+
* 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.
|
|
45542
|
+
* @summary Disconnect Ecommerce store
|
|
45543
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45544
|
+
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
45545
|
+
* @param {*} [options] Override http request option.
|
|
45546
|
+
* @throws {RequiredError}
|
|
45547
|
+
*/
|
|
45548
|
+
async disconnectEcommerceStoreV1(profileUuid: string, storeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
45549
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.disconnectEcommerceStoreV1(profileUuid, storeId, options);
|
|
45550
|
+
const localVarOperationServerBasePath = operationServerMap['ReachIntegrationsApi.disconnectEcommerceStoreV1']?.[0]?.url;
|
|
45551
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
45552
|
+
},
|
|
45553
|
+
/**
|
|
45554
|
+
* 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.
|
|
45555
|
+
* @summary Disconnect WordPress site
|
|
45556
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45557
|
+
* @param {ReachV1WebsitesWordPressDisconnectRequest} reachV1WebsitesWordPressDisconnectRequest
|
|
45558
|
+
* @param {*} [options] Override http request option.
|
|
45559
|
+
* @throws {RequiredError}
|
|
45560
|
+
*/
|
|
45561
|
+
async disconnectWordPressSiteV1(profileUuid: string, reachV1WebsitesWordPressDisconnectRequest: ReachV1WebsitesWordPressDisconnectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
45562
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.disconnectWordPressSiteV1(profileUuid, reachV1WebsitesWordPressDisconnectRequest, options);
|
|
45563
|
+
const localVarOperationServerBasePath = operationServerMap['ReachIntegrationsApi.disconnectWordPressSiteV1']?.[0]?.url;
|
|
45564
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
45565
|
+
},
|
|
45566
|
+
/**
|
|
45567
|
+
* 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.
|
|
45568
|
+
* @summary List connected websites
|
|
45569
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45570
|
+
* @param {*} [options] Override http request option.
|
|
45571
|
+
* @throws {RequiredError}
|
|
45572
|
+
*/
|
|
45573
|
+
async listConnectedWebsitesV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1WebsitesWebsiteResource>>> {
|
|
45574
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listConnectedWebsitesV1(profileUuid, options);
|
|
45575
|
+
const localVarOperationServerBasePath = operationServerMap['ReachIntegrationsApi.listConnectedWebsitesV1']?.[0]?.url;
|
|
45576
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
45577
|
+
},
|
|
45578
|
+
/**
|
|
45579
|
+
* 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.
|
|
45580
|
+
* @summary List Ecommerce stores
|
|
45581
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45582
|
+
* @param {*} [options] Override http request option.
|
|
45583
|
+
* @throws {RequiredError}
|
|
45584
|
+
*/
|
|
45585
|
+
async listEcommerceStoresV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1StoresStoreResource>>> {
|
|
45586
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listEcommerceStoresV1(profileUuid, options);
|
|
45587
|
+
const localVarOperationServerBasePath = operationServerMap['ReachIntegrationsApi.listEcommerceStoresV1']?.[0]?.url;
|
|
45588
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
45589
|
+
},
|
|
45590
|
+
}
|
|
45591
|
+
};
|
|
45592
|
+
|
|
45593
|
+
/**
|
|
45594
|
+
* ReachIntegrationsApi - factory interface
|
|
45595
|
+
* @export
|
|
45596
|
+
*/
|
|
45597
|
+
export const ReachIntegrationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
45598
|
+
const localVarFp = ReachIntegrationsApiFp(configuration)
|
|
45599
|
+
return {
|
|
45600
|
+
/**
|
|
45601
|
+
* 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.
|
|
45602
|
+
* @summary Connect AI Website Builder site
|
|
45603
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45604
|
+
* @param {ReachV1WebsitesWebsiteBuilderConnectRequest} reachV1WebsitesWebsiteBuilderConnectRequest
|
|
45605
|
+
* @param {*} [options] Override http request option.
|
|
45606
|
+
* @throws {RequiredError}
|
|
45607
|
+
*/
|
|
45608
|
+
connectAIWebsiteBuilderSiteV1(profileUuid: string, reachV1WebsitesWebsiteBuilderConnectRequest: ReachV1WebsitesWebsiteBuilderConnectRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
45609
|
+
return localVarFp.connectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderConnectRequest, options).then((request) => request(axios, basePath));
|
|
45610
|
+
},
|
|
45611
|
+
/**
|
|
45612
|
+
* 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.
|
|
45613
|
+
* @summary Disconnect AI Website Builder site
|
|
45614
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45615
|
+
* @param {ReachV1WebsitesWebsiteBuilderDisconnectRequest} reachV1WebsitesWebsiteBuilderDisconnectRequest
|
|
45616
|
+
* @param {*} [options] Override http request option.
|
|
45617
|
+
* @throws {RequiredError}
|
|
45618
|
+
*/
|
|
45619
|
+
disconnectAIWebsiteBuilderSiteV1(profileUuid: string, reachV1WebsitesWebsiteBuilderDisconnectRequest: ReachV1WebsitesWebsiteBuilderDisconnectRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
45620
|
+
return localVarFp.disconnectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderDisconnectRequest, options).then((request) => request(axios, basePath));
|
|
45621
|
+
},
|
|
45622
|
+
/**
|
|
45623
|
+
* 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.
|
|
45624
|
+
* @summary Disconnect Ecommerce store
|
|
45625
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45626
|
+
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
45627
|
+
* @param {*} [options] Override http request option.
|
|
45628
|
+
* @throws {RequiredError}
|
|
45629
|
+
*/
|
|
45630
|
+
disconnectEcommerceStoreV1(profileUuid: string, storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
45631
|
+
return localVarFp.disconnectEcommerceStoreV1(profileUuid, storeId, options).then((request) => request(axios, basePath));
|
|
45632
|
+
},
|
|
45633
|
+
/**
|
|
45634
|
+
* 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.
|
|
45635
|
+
* @summary Disconnect WordPress site
|
|
45636
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45637
|
+
* @param {ReachV1WebsitesWordPressDisconnectRequest} reachV1WebsitesWordPressDisconnectRequest
|
|
45638
|
+
* @param {*} [options] Override http request option.
|
|
45639
|
+
* @throws {RequiredError}
|
|
45640
|
+
*/
|
|
45641
|
+
disconnectWordPressSiteV1(profileUuid: string, reachV1WebsitesWordPressDisconnectRequest: ReachV1WebsitesWordPressDisconnectRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
45642
|
+
return localVarFp.disconnectWordPressSiteV1(profileUuid, reachV1WebsitesWordPressDisconnectRequest, options).then((request) => request(axios, basePath));
|
|
45643
|
+
},
|
|
45644
|
+
/**
|
|
45645
|
+
* 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.
|
|
45646
|
+
* @summary List connected websites
|
|
45647
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45648
|
+
* @param {*} [options] Override http request option.
|
|
45649
|
+
* @throws {RequiredError}
|
|
45650
|
+
*/
|
|
45651
|
+
listConnectedWebsitesV1(profileUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1WebsitesWebsiteResource>> {
|
|
45652
|
+
return localVarFp.listConnectedWebsitesV1(profileUuid, options).then((request) => request(axios, basePath));
|
|
45653
|
+
},
|
|
45654
|
+
/**
|
|
45655
|
+
* 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.
|
|
45656
|
+
* @summary List Ecommerce stores
|
|
45657
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45658
|
+
* @param {*} [options] Override http request option.
|
|
45659
|
+
* @throws {RequiredError}
|
|
45660
|
+
*/
|
|
45661
|
+
listEcommerceStoresV1(profileUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1StoresStoreResource>> {
|
|
45662
|
+
return localVarFp.listEcommerceStoresV1(profileUuid, options).then((request) => request(axios, basePath));
|
|
45663
|
+
},
|
|
45664
|
+
};
|
|
45665
|
+
};
|
|
45666
|
+
|
|
45667
|
+
/**
|
|
45668
|
+
* ReachIntegrationsApi - object-oriented interface
|
|
45669
|
+
* @export
|
|
45670
|
+
* @class ReachIntegrationsApi
|
|
45671
|
+
* @extends {BaseAPI}
|
|
45672
|
+
*/
|
|
45673
|
+
export class ReachIntegrationsApi extends BaseAPI {
|
|
45674
|
+
/**
|
|
45675
|
+
* 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.
|
|
45676
|
+
* @summary Connect AI Website Builder site
|
|
45677
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45678
|
+
* @param {ReachV1WebsitesWebsiteBuilderConnectRequest} reachV1WebsitesWebsiteBuilderConnectRequest
|
|
45679
|
+
* @param {*} [options] Override http request option.
|
|
45680
|
+
* @throws {RequiredError}
|
|
45681
|
+
* @memberof ReachIntegrationsApi
|
|
45682
|
+
*/
|
|
45683
|
+
public connectAIWebsiteBuilderSiteV1(profileUuid: string, reachV1WebsitesWebsiteBuilderConnectRequest: ReachV1WebsitesWebsiteBuilderConnectRequest, options?: RawAxiosRequestConfig) {
|
|
45684
|
+
return ReachIntegrationsApiFp(this.configuration).connectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderConnectRequest, options).then((request) => request(this.axios, this.basePath));
|
|
45685
|
+
}
|
|
45686
|
+
|
|
45687
|
+
/**
|
|
45688
|
+
* 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.
|
|
45689
|
+
* @summary Disconnect AI Website Builder site
|
|
45690
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45691
|
+
* @param {ReachV1WebsitesWebsiteBuilderDisconnectRequest} reachV1WebsitesWebsiteBuilderDisconnectRequest
|
|
45692
|
+
* @param {*} [options] Override http request option.
|
|
45693
|
+
* @throws {RequiredError}
|
|
45694
|
+
* @memberof ReachIntegrationsApi
|
|
45695
|
+
*/
|
|
45696
|
+
public disconnectAIWebsiteBuilderSiteV1(profileUuid: string, reachV1WebsitesWebsiteBuilderDisconnectRequest: ReachV1WebsitesWebsiteBuilderDisconnectRequest, options?: RawAxiosRequestConfig) {
|
|
45697
|
+
return ReachIntegrationsApiFp(this.configuration).disconnectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderDisconnectRequest, options).then((request) => request(this.axios, this.basePath));
|
|
45698
|
+
}
|
|
45699
|
+
|
|
45700
|
+
/**
|
|
45701
|
+
* 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.
|
|
45702
|
+
* @summary Disconnect Ecommerce store
|
|
45703
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45704
|
+
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
45705
|
+
* @param {*} [options] Override http request option.
|
|
45706
|
+
* @throws {RequiredError}
|
|
45707
|
+
* @memberof ReachIntegrationsApi
|
|
45708
|
+
*/
|
|
45709
|
+
public disconnectEcommerceStoreV1(profileUuid: string, storeId: string, options?: RawAxiosRequestConfig) {
|
|
45710
|
+
return ReachIntegrationsApiFp(this.configuration).disconnectEcommerceStoreV1(profileUuid, storeId, options).then((request) => request(this.axios, this.basePath));
|
|
45711
|
+
}
|
|
45712
|
+
|
|
45713
|
+
/**
|
|
45714
|
+
* 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.
|
|
45715
|
+
* @summary Disconnect WordPress site
|
|
45716
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45717
|
+
* @param {ReachV1WebsitesWordPressDisconnectRequest} reachV1WebsitesWordPressDisconnectRequest
|
|
45718
|
+
* @param {*} [options] Override http request option.
|
|
45719
|
+
* @throws {RequiredError}
|
|
45720
|
+
* @memberof ReachIntegrationsApi
|
|
45721
|
+
*/
|
|
45722
|
+
public disconnectWordPressSiteV1(profileUuid: string, reachV1WebsitesWordPressDisconnectRequest: ReachV1WebsitesWordPressDisconnectRequest, options?: RawAxiosRequestConfig) {
|
|
45723
|
+
return ReachIntegrationsApiFp(this.configuration).disconnectWordPressSiteV1(profileUuid, reachV1WebsitesWordPressDisconnectRequest, options).then((request) => request(this.axios, this.basePath));
|
|
45724
|
+
}
|
|
45725
|
+
|
|
45726
|
+
/**
|
|
45727
|
+
* 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.
|
|
45728
|
+
* @summary List connected websites
|
|
45729
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45730
|
+
* @param {*} [options] Override http request option.
|
|
45731
|
+
* @throws {RequiredError}
|
|
45732
|
+
* @memberof ReachIntegrationsApi
|
|
45733
|
+
*/
|
|
45734
|
+
public listConnectedWebsitesV1(profileUuid: string, options?: RawAxiosRequestConfig) {
|
|
45735
|
+
return ReachIntegrationsApiFp(this.configuration).listConnectedWebsitesV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
|
|
45736
|
+
}
|
|
45737
|
+
|
|
45738
|
+
/**
|
|
45739
|
+
* 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.
|
|
45740
|
+
* @summary List Ecommerce stores
|
|
45741
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45742
|
+
* @param {*} [options] Override http request option.
|
|
45743
|
+
* @throws {RequiredError}
|
|
45744
|
+
* @memberof ReachIntegrationsApi
|
|
45745
|
+
*/
|
|
45746
|
+
public listEcommerceStoresV1(profileUuid: string, options?: RawAxiosRequestConfig) {
|
|
45747
|
+
return ReachIntegrationsApiFp(this.configuration).listEcommerceStoresV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
|
|
45748
|
+
}
|
|
45749
|
+
}
|
|
45750
|
+
|
|
45751
|
+
|
|
45752
|
+
|
|
45050
45753
|
/**
|
|
45051
45754
|
* ReachProfilesApi - axios parameter creator
|
|
45052
45755
|
* @export
|
|
@@ -47624,7 +48327,49 @@ export const ReachTemplatesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
47624
48327
|
};
|
|
47625
48328
|
},
|
|
47626
48329
|
/**
|
|
47627
|
-
* Get
|
|
48330
|
+
* 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.
|
|
48331
|
+
* @summary Get email template
|
|
48332
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
48333
|
+
* @param {string} templateUuid Template uuid parameter
|
|
48334
|
+
* @param {*} [options] Override http request option.
|
|
48335
|
+
* @throws {RequiredError}
|
|
48336
|
+
*/
|
|
48337
|
+
getEmailTemplateV1: async (profileUuid: string, templateUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48338
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
48339
|
+
assertParamExists('getEmailTemplateV1', 'profileUuid', profileUuid)
|
|
48340
|
+
// verify required parameter 'templateUuid' is not null or undefined
|
|
48341
|
+
assertParamExists('getEmailTemplateV1', 'templateUuid', templateUuid)
|
|
48342
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/templates/{templateUuid}`
|
|
48343
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
48344
|
+
.replace(`{${"templateUuid"}}`, encodeURIComponent(String(templateUuid)));
|
|
48345
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48346
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48347
|
+
let baseOptions;
|
|
48348
|
+
if (configuration) {
|
|
48349
|
+
baseOptions = configuration.baseOptions;
|
|
48350
|
+
}
|
|
48351
|
+
|
|
48352
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
48353
|
+
const localVarHeaderParameter = {} as any;
|
|
48354
|
+
const localVarQueryParameter = {} as any;
|
|
48355
|
+
|
|
48356
|
+
// authentication apiToken required
|
|
48357
|
+
// http bearer authentication required
|
|
48358
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
48359
|
+
|
|
48360
|
+
|
|
48361
|
+
|
|
48362
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
48363
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
48364
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
48365
|
+
|
|
48366
|
+
return {
|
|
48367
|
+
url: toPathString(localVarUrlObj),
|
|
48368
|
+
options: localVarRequestOptions,
|
|
48369
|
+
};
|
|
48370
|
+
},
|
|
48371
|
+
/**
|
|
48372
|
+
* 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.
|
|
47628
48373
|
* @summary List email templates
|
|
47629
48374
|
* @param {string} profileUuid Profile uuid parameter
|
|
47630
48375
|
* @param {*} [options] Override http request option.
|
|
@@ -47685,7 +48430,20 @@ export const ReachTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
47685
48430
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
47686
48431
|
},
|
|
47687
48432
|
/**
|
|
47688
|
-
* Get
|
|
48433
|
+
* 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.
|
|
48434
|
+
* @summary Get email template
|
|
48435
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
48436
|
+
* @param {string} templateUuid Template uuid parameter
|
|
48437
|
+
* @param {*} [options] Override http request option.
|
|
48438
|
+
* @throws {RequiredError}
|
|
48439
|
+
*/
|
|
48440
|
+
async getEmailTemplateV1(profileUuid: string, templateUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1TemplatesTemplateDetailsResource>> {
|
|
48441
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEmailTemplateV1(profileUuid, templateUuid, options);
|
|
48442
|
+
const localVarOperationServerBasePath = operationServerMap['ReachTemplatesApi.getEmailTemplateV1']?.[0]?.url;
|
|
48443
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
48444
|
+
},
|
|
48445
|
+
/**
|
|
48446
|
+
* 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.
|
|
47689
48447
|
* @summary List email templates
|
|
47690
48448
|
* @param {string} profileUuid Profile uuid parameter
|
|
47691
48449
|
* @param {*} [options] Override http request option.
|
|
@@ -47718,7 +48476,18 @@ export const ReachTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
47718
48476
|
return localVarFp.createAnEmailTemplateV1(profileUuid, reachV1TemplatesStoreRequest, options).then((request) => request(axios, basePath));
|
|
47719
48477
|
},
|
|
47720
48478
|
/**
|
|
47721
|
-
* Get
|
|
48479
|
+
* 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.
|
|
48480
|
+
* @summary Get email template
|
|
48481
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
48482
|
+
* @param {string} templateUuid Template uuid parameter
|
|
48483
|
+
* @param {*} [options] Override http request option.
|
|
48484
|
+
* @throws {RequiredError}
|
|
48485
|
+
*/
|
|
48486
|
+
getEmailTemplateV1(profileUuid: string, templateUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1TemplatesTemplateDetailsResource> {
|
|
48487
|
+
return localVarFp.getEmailTemplateV1(profileUuid, templateUuid, options).then((request) => request(axios, basePath));
|
|
48488
|
+
},
|
|
48489
|
+
/**
|
|
48490
|
+
* 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.
|
|
47722
48491
|
* @summary List email templates
|
|
47723
48492
|
* @param {string} profileUuid Profile uuid parameter
|
|
47724
48493
|
* @param {*} [options] Override http request option.
|
|
@@ -47751,7 +48520,20 @@ export class ReachTemplatesApi extends BaseAPI {
|
|
|
47751
48520
|
}
|
|
47752
48521
|
|
|
47753
48522
|
/**
|
|
47754
|
-
* Get
|
|
48523
|
+
* 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.
|
|
48524
|
+
* @summary Get email template
|
|
48525
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
48526
|
+
* @param {string} templateUuid Template uuid parameter
|
|
48527
|
+
* @param {*} [options] Override http request option.
|
|
48528
|
+
* @throws {RequiredError}
|
|
48529
|
+
* @memberof ReachTemplatesApi
|
|
48530
|
+
*/
|
|
48531
|
+
public getEmailTemplateV1(profileUuid: string, templateUuid: string, options?: RawAxiosRequestConfig) {
|
|
48532
|
+
return ReachTemplatesApiFp(this.configuration).getEmailTemplateV1(profileUuid, templateUuid, options).then((request) => request(this.axios, this.basePath));
|
|
48533
|
+
}
|
|
48534
|
+
|
|
48535
|
+
/**
|
|
48536
|
+
* 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.
|
|
47755
48537
|
* @summary List email templates
|
|
47756
48538
|
* @param {string} profileUuid Profile uuid parameter
|
|
47757
48539
|
* @param {*} [options] Override http request option.
|