hostinger-api-sdk 2.2.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +909 -115
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +520 -40
- 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 +520 -40
- 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/ReachCampaignsApi.md +1 -1
- package/docs/ReachContactsApi.md +1 -1
- package/docs/ReachIntegrationsApi.md +349 -0
- package/docs/ReachTemplatesApi.md +58 -1
- package/docs/ReachV1ContactsBulkStoreRequestContactsInner.md +2 -0
- package/docs/{ReachV1ContactsUpdateRequestFieldsInner.md → ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner.md} +3 -3
- package/docs/ReachV1ContactsStoreRequest.md +2 -0
- package/docs/ReachV1ContactsUpdateRequest.md +1 -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.0
|
|
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
|
|
@@ -13209,6 +13209,37 @@ export interface ReachV1ContactsBulkStoreRequestContactsInner {
|
|
|
13209
13209
|
* @memberof ReachV1ContactsBulkStoreRequestContactsInner
|
|
13210
13210
|
*/
|
|
13211
13211
|
'phone': string | null;
|
|
13212
|
+
/**
|
|
13213
|
+
* Custom field values to set on the contact. For a contact whose email already exists, only fields that have no value yet are filled. Unknown field UUIDs and values that do not match the field type are skipped.
|
|
13214
|
+
* @type {Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>}
|
|
13215
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInner
|
|
13216
|
+
*/
|
|
13217
|
+
'fields': Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>;
|
|
13218
|
+
}
|
|
13219
|
+
/**
|
|
13220
|
+
*
|
|
13221
|
+
* @export
|
|
13222
|
+
* @interface ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
13223
|
+
*/
|
|
13224
|
+
export interface ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner {
|
|
13225
|
+
/**
|
|
13226
|
+
*
|
|
13227
|
+
* @type {string}
|
|
13228
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
13229
|
+
*/
|
|
13230
|
+
'uuid': string;
|
|
13231
|
+
/**
|
|
13232
|
+
* For the scalar field types
|
|
13233
|
+
* @type {string}
|
|
13234
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
13235
|
+
*/
|
|
13236
|
+
'value': string | null;
|
|
13237
|
+
/**
|
|
13238
|
+
* For the choice field types
|
|
13239
|
+
* @type {Array<string>}
|
|
13240
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
13241
|
+
*/
|
|
13242
|
+
'selected_option_uuids': Array<string>;
|
|
13212
13243
|
}
|
|
13213
13244
|
/**
|
|
13214
13245
|
*
|
|
@@ -14532,6 +14563,12 @@ export interface ReachV1ContactsStoreRequest {
|
|
|
14532
14563
|
* @memberof ReachV1ContactsStoreRequest
|
|
14533
14564
|
*/
|
|
14534
14565
|
'tag_uuids': Array<string>;
|
|
14566
|
+
/**
|
|
14567
|
+
* Custom field values to set on the contact. When a contact with this email already exists, only fields that have no value yet are filled. Unknown field UUIDs and values that do not match the field type are skipped.
|
|
14568
|
+
* @type {Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>}
|
|
14569
|
+
* @memberof ReachV1ContactsStoreRequest
|
|
14570
|
+
*/
|
|
14571
|
+
'fields': Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>;
|
|
14535
14572
|
}
|
|
14536
14573
|
/**
|
|
14537
14574
|
* Contacts to assign to, or remove from, a tag
|
|
@@ -14661,10 +14698,10 @@ export interface ReachV1ContactsUpdateRequest {
|
|
|
14661
14698
|
'note': string | null;
|
|
14662
14699
|
/**
|
|
14663
14700
|
* Set custom field values. Omit to leave untouched, send an empty array to clear them all.
|
|
14664
|
-
* @type {Array<
|
|
14701
|
+
* @type {Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>}
|
|
14665
14702
|
* @memberof ReachV1ContactsUpdateRequest
|
|
14666
14703
|
*/
|
|
14667
|
-
'fields': Array<
|
|
14704
|
+
'fields': Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>;
|
|
14668
14705
|
}
|
|
14669
14706
|
|
|
14670
14707
|
export const ReachV1ContactsUpdateRequestSubscriptionStatusEnum = {
|
|
@@ -14676,31 +14713,6 @@ export const ReachV1ContactsUpdateRequestSubscriptionStatusEnum = {
|
|
|
14676
14713
|
|
|
14677
14714
|
export type ReachV1ContactsUpdateRequestSubscriptionStatusEnum = typeof ReachV1ContactsUpdateRequestSubscriptionStatusEnum[keyof typeof ReachV1ContactsUpdateRequestSubscriptionStatusEnum];
|
|
14678
14715
|
|
|
14679
|
-
/**
|
|
14680
|
-
*
|
|
14681
|
-
* @export
|
|
14682
|
-
* @interface ReachV1ContactsUpdateRequestFieldsInner
|
|
14683
|
-
*/
|
|
14684
|
-
export interface ReachV1ContactsUpdateRequestFieldsInner {
|
|
14685
|
-
/**
|
|
14686
|
-
*
|
|
14687
|
-
* @type {string}
|
|
14688
|
-
* @memberof ReachV1ContactsUpdateRequestFieldsInner
|
|
14689
|
-
*/
|
|
14690
|
-
'uuid': string;
|
|
14691
|
-
/**
|
|
14692
|
-
* For the scalar field types
|
|
14693
|
-
* @type {string}
|
|
14694
|
-
* @memberof ReachV1ContactsUpdateRequestFieldsInner
|
|
14695
|
-
*/
|
|
14696
|
-
'value': string | null;
|
|
14697
|
-
/**
|
|
14698
|
-
* For the choice field types
|
|
14699
|
-
* @type {Array<string>}
|
|
14700
|
-
* @memberof ReachV1ContactsUpdateRequestFieldsInner
|
|
14701
|
-
*/
|
|
14702
|
-
'selected_option_uuids': Array<string>;
|
|
14703
|
-
}
|
|
14704
14716
|
/**
|
|
14705
14717
|
* Tags every future submitter of the form receives
|
|
14706
14718
|
* @export
|
|
@@ -15730,6 +15742,100 @@ export interface ReachV1ProfilesSettingsUpdateRequest {
|
|
|
15730
15742
|
*/
|
|
15731
15743
|
'sender_email': string | null;
|
|
15732
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
|
+
}
|
|
15733
15839
|
/**
|
|
15734
15840
|
* Create a reusable email template
|
|
15735
15841
|
* @export
|
|
@@ -15749,6 +15855,43 @@ export interface ReachV1TemplatesStoreRequest {
|
|
|
15749
15855
|
*/
|
|
15750
15856
|
'title': string | null;
|
|
15751
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
|
+
}
|
|
15752
15895
|
/**
|
|
15753
15896
|
*
|
|
15754
15897
|
* @export
|
|
@@ -15780,6 +15923,73 @@ export interface ReachV1TemplatesTemplateResource {
|
|
|
15780
15923
|
*/
|
|
15781
15924
|
'updated_at': string | null;
|
|
15782
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
|
+
}
|
|
15783
15993
|
/**
|
|
15784
15994
|
*
|
|
15785
15995
|
* @export
|
|
@@ -42600,7 +42810,7 @@ export const ReachCampaignsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
42600
42810
|
};
|
|
42601
42811
|
},
|
|
42602
42812
|
/**
|
|
42603
|
-
* 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.
|
|
42604
42814
|
* @summary Get campaign details
|
|
42605
42815
|
* @param {string} profileUuid Profile uuid parameter
|
|
42606
42816
|
* @param {string} campaignUuid Campaign uuid parameter
|
|
@@ -42770,7 +42980,7 @@ export const ReachCampaignsApiFp = function(configuration?: Configuration) {
|
|
|
42770
42980
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42771
42981
|
},
|
|
42772
42982
|
/**
|
|
42773
|
-
* 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.
|
|
42774
42984
|
* @summary Get campaign details
|
|
42775
42985
|
* @param {string} profileUuid Profile uuid parameter
|
|
42776
42986
|
* @param {string} campaignUuid Campaign uuid parameter
|
|
@@ -42834,7 +43044,7 @@ export const ReachCampaignsApiFactory = function (configuration?: Configuration,
|
|
|
42834
43044
|
return localVarFp.createADraftCampaignV1(profileUuid, reachV1CampaignsStoreRequest, options).then((request) => request(axios, basePath));
|
|
42835
43045
|
},
|
|
42836
43046
|
/**
|
|
42837
|
-
* 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.
|
|
42838
43048
|
* @summary Get campaign details
|
|
42839
43049
|
* @param {string} profileUuid Profile uuid parameter
|
|
42840
43050
|
* @param {string} campaignUuid Campaign uuid parameter
|
|
@@ -42894,7 +43104,7 @@ export class ReachCampaignsApi extends BaseAPI {
|
|
|
42894
43104
|
}
|
|
42895
43105
|
|
|
42896
43106
|
/**
|
|
42897
|
-
* 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.
|
|
42898
43108
|
* @summary Get campaign details
|
|
42899
43109
|
* @param {string} profileUuid Profile uuid parameter
|
|
42900
43110
|
* @param {string} campaignUuid Campaign uuid parameter
|
|
@@ -43374,7 +43584,7 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
43374
43584
|
};
|
|
43375
43585
|
},
|
|
43376
43586
|
/**
|
|
43377
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
43587
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
43378
43588
|
* @summary Create contacts in bulk
|
|
43379
43589
|
* @param {string} profileUuid Profile uuid parameter
|
|
43380
43590
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -43804,7 +44014,7 @@ export const ReachContactsApiFp = function(configuration?: Configuration) {
|
|
|
43804
44014
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
43805
44015
|
},
|
|
43806
44016
|
/**
|
|
43807
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
44017
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
43808
44018
|
* @summary Create contacts in bulk
|
|
43809
44019
|
* @param {string} profileUuid Profile uuid parameter
|
|
43810
44020
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -43948,7 +44158,7 @@ export const ReachContactsApiFactory = function (configuration?: Configuration,
|
|
|
43948
44158
|
return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
|
|
43949
44159
|
},
|
|
43950
44160
|
/**
|
|
43951
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
44161
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
43952
44162
|
* @summary Create contacts in bulk
|
|
43953
44163
|
* @param {string} profileUuid Profile uuid parameter
|
|
43954
44164
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -44076,7 +44286,7 @@ export class ReachContactsApi extends BaseAPI {
|
|
|
44076
44286
|
}
|
|
44077
44287
|
|
|
44078
44288
|
/**
|
|
44079
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
44289
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
44080
44290
|
* @summary Create contacts in bulk
|
|
44081
44291
|
* @param {string} profileUuid Profile uuid parameter
|
|
44082
44292
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -45036,25 +45246,25 @@ export type ListFormsV1StatusEnum = typeof ListFormsV1StatusEnum[keyof typeof Li
|
|
|
45036
45246
|
|
|
45037
45247
|
|
|
45038
45248
|
/**
|
|
45039
|
-
*
|
|
45249
|
+
* ReachIntegrationsApi - axios parameter creator
|
|
45040
45250
|
* @export
|
|
45041
45251
|
*/
|
|
45042
|
-
export const
|
|
45252
|
+
export const ReachIntegrationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
45043
45253
|
return {
|
|
45044
45254
|
/**
|
|
45045
|
-
* Connect
|
|
45046
|
-
* @summary Connect
|
|
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
|
|
45047
45257
|
* @param {string} profileUuid Profile uuid parameter
|
|
45048
|
-
* @param {
|
|
45258
|
+
* @param {ReachV1WebsitesWebsiteBuilderConnectRequest} reachV1WebsitesWebsiteBuilderConnectRequest
|
|
45049
45259
|
* @param {*} [options] Override http request option.
|
|
45050
45260
|
* @throws {RequiredError}
|
|
45051
45261
|
*/
|
|
45052
|
-
|
|
45262
|
+
connectAIWebsiteBuilderSiteV1: async (profileUuid: string, reachV1WebsitesWebsiteBuilderConnectRequest: ReachV1WebsitesWebsiteBuilderConnectRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45053
45263
|
// verify required parameter 'profileUuid' is not null or undefined
|
|
45054
|
-
assertParamExists('
|
|
45055
|
-
// verify required parameter '
|
|
45056
|
-
assertParamExists('
|
|
45057
|
-
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/
|
|
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`
|
|
45058
45268
|
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
45059
45269
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45060
45270
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -45078,7 +45288,7 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
45078
45288
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45079
45289
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45080
45290
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
45081
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
45291
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1WebsitesWebsiteBuilderConnectRequest, localVarRequestOptions, configuration)
|
|
45082
45292
|
|
|
45083
45293
|
return {
|
|
45084
45294
|
url: toPathString(localVarUrlObj),
|
|
@@ -45086,19 +45296,19 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
45086
45296
|
};
|
|
45087
45297
|
},
|
|
45088
45298
|
/**
|
|
45089
|
-
* Disconnect
|
|
45090
|
-
* @summary
|
|
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
|
|
45091
45301
|
* @param {string} profileUuid Profile uuid parameter
|
|
45092
|
-
* @param {
|
|
45302
|
+
* @param {ReachV1WebsitesWebsiteBuilderDisconnectRequest} reachV1WebsitesWebsiteBuilderDisconnectRequest
|
|
45093
45303
|
* @param {*} [options] Override http request option.
|
|
45094
45304
|
* @throws {RequiredError}
|
|
45095
45305
|
*/
|
|
45096
|
-
|
|
45306
|
+
disconnectAIWebsiteBuilderSiteV1: async (profileUuid: string, reachV1WebsitesWebsiteBuilderDisconnectRequest: ReachV1WebsitesWebsiteBuilderDisconnectRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45097
45307
|
// verify required parameter 'profileUuid' is not null or undefined
|
|
45098
|
-
assertParamExists('
|
|
45099
|
-
// verify required parameter '
|
|
45100
|
-
assertParamExists('
|
|
45101
|
-
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/
|
|
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`
|
|
45102
45312
|
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
45103
45313
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45104
45314
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -45122,7 +45332,7 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
45122
45332
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45123
45333
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45124
45334
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
45125
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
45335
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1WebsitesWebsiteBuilderDisconnectRequest, localVarRequestOptions, configuration)
|
|
45126
45336
|
|
|
45127
45337
|
return {
|
|
45128
45338
|
url: toPathString(localVarUrlObj),
|
|
@@ -45130,17 +45340,21 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
45130
45340
|
};
|
|
45131
45341
|
},
|
|
45132
45342
|
/**
|
|
45133
|
-
*
|
|
45134
|
-
* @summary
|
|
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
|
|
45135
45345
|
* @param {string} profileUuid Profile uuid parameter
|
|
45346
|
+
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
45136
45347
|
* @param {*} [options] Override http request option.
|
|
45137
45348
|
* @throws {RequiredError}
|
|
45138
45349
|
*/
|
|
45139
|
-
|
|
45350
|
+
disconnectEcommerceStoreV1: async (profileUuid: string, storeId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45140
45351
|
// verify required parameter 'profileUuid' is not null or undefined
|
|
45141
|
-
assertParamExists('
|
|
45142
|
-
|
|
45143
|
-
|
|
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)));
|
|
45144
45358
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45145
45359
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45146
45360
|
let baseOptions;
|
|
@@ -45148,7 +45362,7 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
45148
45362
|
baseOptions = configuration.baseOptions;
|
|
45149
45363
|
}
|
|
45150
45364
|
|
|
45151
|
-
const localVarRequestOptions = { method: '
|
|
45365
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
45152
45366
|
const localVarHeaderParameter = {} as any;
|
|
45153
45367
|
const localVarQueryParameter = {} as any;
|
|
45154
45368
|
|
|
@@ -45168,16 +45382,19 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
45168
45382
|
};
|
|
45169
45383
|
},
|
|
45170
45384
|
/**
|
|
45171
|
-
*
|
|
45172
|
-
* @summary
|
|
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
|
|
45173
45387
|
* @param {string} profileUuid Profile uuid parameter
|
|
45388
|
+
* @param {ReachV1WebsitesWordPressDisconnectRequest} reachV1WebsitesWordPressDisconnectRequest
|
|
45174
45389
|
* @param {*} [options] Override http request option.
|
|
45175
45390
|
* @throws {RequiredError}
|
|
45176
45391
|
*/
|
|
45177
|
-
|
|
45392
|
+
disconnectWordPressSiteV1: async (profileUuid: string, reachV1WebsitesWordPressDisconnectRequest: ReachV1WebsitesWordPressDisconnectRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45178
45393
|
// verify required parameter 'profileUuid' is not null or undefined
|
|
45179
|
-
assertParamExists('
|
|
45180
|
-
|
|
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`
|
|
45181
45398
|
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
45182
45399
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45183
45400
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -45186,7 +45403,7 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
45186
45403
|
baseOptions = configuration.baseOptions;
|
|
45187
45404
|
}
|
|
45188
45405
|
|
|
45189
|
-
const localVarRequestOptions = { method: '
|
|
45406
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
45190
45407
|
const localVarHeaderParameter = {} as any;
|
|
45191
45408
|
const localVarQueryParameter = {} as any;
|
|
45192
45409
|
|
|
@@ -45196,47 +45413,12 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
45196
45413
|
|
|
45197
45414
|
|
|
45198
45415
|
|
|
45199
|
-
|
|
45200
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45201
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
45202
|
-
|
|
45203
|
-
return {
|
|
45204
|
-
url: toPathString(localVarUrlObj),
|
|
45205
|
-
options: localVarRequestOptions,
|
|
45206
|
-
};
|
|
45207
|
-
},
|
|
45208
|
-
/**
|
|
45209
|
-
* Get the profile\'s saved sender identity and brand details. Read the default sender before creating a campaign instead of asking the customer, and reuse the brand fields when generating email content. Any field can be `null` for a profile that never filled its settings in. This does not check that the sending domain is verified, use the connected sending domain endpoint for that.
|
|
45210
|
-
* @summary Get profile settings
|
|
45211
|
-
* @param {string} profileUuid Profile uuid parameter
|
|
45212
|
-
* @param {*} [options] Override http request option.
|
|
45213
|
-
* @throws {RequiredError}
|
|
45214
|
-
*/
|
|
45215
|
-
getProfileSettingsV1: async (profileUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45216
|
-
// verify required parameter 'profileUuid' is not null or undefined
|
|
45217
|
-
assertParamExists('getProfileSettingsV1', 'profileUuid', profileUuid)
|
|
45218
|
-
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/settings`
|
|
45219
|
-
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
45220
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45221
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45222
|
-
let baseOptions;
|
|
45223
|
-
if (configuration) {
|
|
45224
|
-
baseOptions = configuration.baseOptions;
|
|
45225
|
-
}
|
|
45226
|
-
|
|
45227
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
45228
|
-
const localVarHeaderParameter = {} as any;
|
|
45229
|
-
const localVarQueryParameter = {} as any;
|
|
45230
|
-
|
|
45231
|
-
// authentication apiToken required
|
|
45232
|
-
// http bearer authentication required
|
|
45233
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
45234
|
-
|
|
45416
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
45235
45417
|
|
|
45236
|
-
|
|
45237
45418
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45238
45419
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45239
45420
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
45421
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1WebsitesWordPressDisconnectRequest, localVarRequestOptions, configuration)
|
|
45240
45422
|
|
|
45241
45423
|
return {
|
|
45242
45424
|
url: toPathString(localVarUrlObj),
|
|
@@ -45244,16 +45426,549 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
45244
45426
|
};
|
|
45245
45427
|
},
|
|
45246
45428
|
/**
|
|
45247
|
-
* Get
|
|
45248
|
-
* @summary
|
|
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
|
|
45249
45431
|
* @param {string} profileUuid Profile uuid parameter
|
|
45250
45432
|
* @param {*} [options] Override http request option.
|
|
45251
45433
|
* @throws {RequiredError}
|
|
45252
45434
|
*/
|
|
45253
|
-
|
|
45435
|
+
listConnectedWebsitesV1: async (profileUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45254
45436
|
// verify required parameter 'profileUuid' is not null or undefined
|
|
45255
|
-
assertParamExists('
|
|
45256
|
-
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/
|
|
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
|
+
|
|
45753
|
+
/**
|
|
45754
|
+
* ReachProfilesApi - axios parameter creator
|
|
45755
|
+
* @export
|
|
45756
|
+
*/
|
|
45757
|
+
export const ReachProfilesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
45758
|
+
return {
|
|
45759
|
+
/**
|
|
45760
|
+
* Connect a sending domain to the profile so emails can be sent from addresses on it. Connecting does not make the domain ready to send: check the DNS status endpoint next for records that are still missing. A domain the account owns or has already verified connects immediately. Any other domain starts a TXT ownership verification and returns `409`; complete the verification in Reach, then retry. Returns `422` when the profile or another profile already has the domain, the domain is blocked, or its ownership cannot be verified. An already connected domain is never replaced. On success the sender address of draft and scheduled campaigns, and of published automation and double opt-in emails, moves onto the new domain in the background, keeping the part before the `@`.
|
|
45761
|
+
* @summary Connect sending domain
|
|
45762
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45763
|
+
* @param {ReachV1ProfilesDomainsConnectRequest} reachV1ProfilesDomainsConnectRequest
|
|
45764
|
+
* @param {*} [options] Override http request option.
|
|
45765
|
+
* @throws {RequiredError}
|
|
45766
|
+
*/
|
|
45767
|
+
connectSendingDomainV1: async (profileUuid: string, reachV1ProfilesDomainsConnectRequest: ReachV1ProfilesDomainsConnectRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45768
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
45769
|
+
assertParamExists('connectSendingDomainV1', 'profileUuid', profileUuid)
|
|
45770
|
+
// verify required parameter 'reachV1ProfilesDomainsConnectRequest' is not null or undefined
|
|
45771
|
+
assertParamExists('connectSendingDomainV1', 'reachV1ProfilesDomainsConnectRequest', reachV1ProfilesDomainsConnectRequest)
|
|
45772
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/domains`
|
|
45773
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
45774
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45775
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45776
|
+
let baseOptions;
|
|
45777
|
+
if (configuration) {
|
|
45778
|
+
baseOptions = configuration.baseOptions;
|
|
45779
|
+
}
|
|
45780
|
+
|
|
45781
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
45782
|
+
const localVarHeaderParameter = {} as any;
|
|
45783
|
+
const localVarQueryParameter = {} as any;
|
|
45784
|
+
|
|
45785
|
+
// authentication apiToken required
|
|
45786
|
+
// http bearer authentication required
|
|
45787
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
45788
|
+
|
|
45789
|
+
|
|
45790
|
+
|
|
45791
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
45792
|
+
|
|
45793
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45794
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45795
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
45796
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ProfilesDomainsConnectRequest, localVarRequestOptions, configuration)
|
|
45797
|
+
|
|
45798
|
+
return {
|
|
45799
|
+
url: toPathString(localVarUrlObj),
|
|
45800
|
+
options: localVarRequestOptions,
|
|
45801
|
+
};
|
|
45802
|
+
},
|
|
45803
|
+
/**
|
|
45804
|
+
* Disconnect the sending domain from the profile. The domain record is removed, so the profile has no sending domain afterwards and campaigns cannot be sent until a domain is connected again. Sender addresses already stored on campaigns, automations and settings are left untouched and keep pointing at the removed domain. A domain that is not connected to the profile also succeeds, so success is not proof that anything was deleted. DNS records at the DNS provider are not removed. To switch domains, delete this one and connect the new one. Confirm the domain with the customer before calling.
|
|
45805
|
+
* @summary Delete sending domain
|
|
45806
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45807
|
+
* @param {ReachV1ProfilesDomainsDisconnectRequest} reachV1ProfilesDomainsDisconnectRequest
|
|
45808
|
+
* @param {*} [options] Override http request option.
|
|
45809
|
+
* @throws {RequiredError}
|
|
45810
|
+
*/
|
|
45811
|
+
deleteSendingDomainV1: async (profileUuid: string, reachV1ProfilesDomainsDisconnectRequest: ReachV1ProfilesDomainsDisconnectRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45812
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
45813
|
+
assertParamExists('deleteSendingDomainV1', 'profileUuid', profileUuid)
|
|
45814
|
+
// verify required parameter 'reachV1ProfilesDomainsDisconnectRequest' is not null or undefined
|
|
45815
|
+
assertParamExists('deleteSendingDomainV1', 'reachV1ProfilesDomainsDisconnectRequest', reachV1ProfilesDomainsDisconnectRequest)
|
|
45816
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/domains`
|
|
45817
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
45818
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45819
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45820
|
+
let baseOptions;
|
|
45821
|
+
if (configuration) {
|
|
45822
|
+
baseOptions = configuration.baseOptions;
|
|
45823
|
+
}
|
|
45824
|
+
|
|
45825
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
45826
|
+
const localVarHeaderParameter = {} as any;
|
|
45827
|
+
const localVarQueryParameter = {} as any;
|
|
45828
|
+
|
|
45829
|
+
// authentication apiToken required
|
|
45830
|
+
// http bearer authentication required
|
|
45831
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
45832
|
+
|
|
45833
|
+
|
|
45834
|
+
|
|
45835
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
45836
|
+
|
|
45837
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45838
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45839
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
45840
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ProfilesDomainsDisconnectRequest, localVarRequestOptions, configuration)
|
|
45841
|
+
|
|
45842
|
+
return {
|
|
45843
|
+
url: toPathString(localVarUrlObj),
|
|
45844
|
+
options: localVarRequestOptions,
|
|
45845
|
+
};
|
|
45846
|
+
},
|
|
45847
|
+
/**
|
|
45848
|
+
* Get the sending domain connected to the profile, its verification status and any suspended sender addresses. Campaigns only go out once a domain is connected and active, so this is the cheapest way to check that precondition before building one. A profile with no domain connected returns the same shape with every field set to `null`. For the individual MX, SPF, DKIM and DMARC records behind the status, use the DNS status endpoint.
|
|
45849
|
+
* @summary Get connected sending domain
|
|
45850
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45851
|
+
* @param {*} [options] Override http request option.
|
|
45852
|
+
* @throws {RequiredError}
|
|
45853
|
+
*/
|
|
45854
|
+
getConnectedSendingDomainV1: async (profileUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45855
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
45856
|
+
assertParamExists('getConnectedSendingDomainV1', 'profileUuid', profileUuid)
|
|
45857
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/domains`
|
|
45858
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
45859
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45860
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45861
|
+
let baseOptions;
|
|
45862
|
+
if (configuration) {
|
|
45863
|
+
baseOptions = configuration.baseOptions;
|
|
45864
|
+
}
|
|
45865
|
+
|
|
45866
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
45867
|
+
const localVarHeaderParameter = {} as any;
|
|
45868
|
+
const localVarQueryParameter = {} as any;
|
|
45869
|
+
|
|
45870
|
+
// authentication apiToken required
|
|
45871
|
+
// http bearer authentication required
|
|
45872
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
45873
|
+
|
|
45874
|
+
|
|
45875
|
+
|
|
45876
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45877
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45878
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
45879
|
+
|
|
45880
|
+
return {
|
|
45881
|
+
url: toPathString(localVarUrlObj),
|
|
45882
|
+
options: localVarRequestOptions,
|
|
45883
|
+
};
|
|
45884
|
+
},
|
|
45885
|
+
/**
|
|
45886
|
+
* Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
|
|
45887
|
+
* @summary Get profile domain DNS status
|
|
45888
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45889
|
+
* @param {*} [options] Override http request option.
|
|
45890
|
+
* @throws {RequiredError}
|
|
45891
|
+
*/
|
|
45892
|
+
getProfileDomainDNSStatusV1: async (profileUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45893
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
45894
|
+
assertParamExists('getProfileDomainDNSStatusV1', 'profileUuid', profileUuid)
|
|
45895
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/domains/dns-status`
|
|
45896
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
45897
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45898
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45899
|
+
let baseOptions;
|
|
45900
|
+
if (configuration) {
|
|
45901
|
+
baseOptions = configuration.baseOptions;
|
|
45902
|
+
}
|
|
45903
|
+
|
|
45904
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
45905
|
+
const localVarHeaderParameter = {} as any;
|
|
45906
|
+
const localVarQueryParameter = {} as any;
|
|
45907
|
+
|
|
45908
|
+
// authentication apiToken required
|
|
45909
|
+
// http bearer authentication required
|
|
45910
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
45911
|
+
|
|
45912
|
+
|
|
45913
|
+
|
|
45914
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45915
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45916
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
45917
|
+
|
|
45918
|
+
return {
|
|
45919
|
+
url: toPathString(localVarUrlObj),
|
|
45920
|
+
options: localVarRequestOptions,
|
|
45921
|
+
};
|
|
45922
|
+
},
|
|
45923
|
+
/**
|
|
45924
|
+
* Get the profile\'s saved sender identity and brand details. Read the default sender before creating a campaign instead of asking the customer, and reuse the brand fields when generating email content. Any field can be `null` for a profile that never filled its settings in. This does not check that the sending domain is verified, use the connected sending domain endpoint for that.
|
|
45925
|
+
* @summary Get profile settings
|
|
45926
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45927
|
+
* @param {*} [options] Override http request option.
|
|
45928
|
+
* @throws {RequiredError}
|
|
45929
|
+
*/
|
|
45930
|
+
getProfileSettingsV1: async (profileUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45931
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
45932
|
+
assertParamExists('getProfileSettingsV1', 'profileUuid', profileUuid)
|
|
45933
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/settings`
|
|
45934
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
45935
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45936
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45937
|
+
let baseOptions;
|
|
45938
|
+
if (configuration) {
|
|
45939
|
+
baseOptions = configuration.baseOptions;
|
|
45940
|
+
}
|
|
45941
|
+
|
|
45942
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
45943
|
+
const localVarHeaderParameter = {} as any;
|
|
45944
|
+
const localVarQueryParameter = {} as any;
|
|
45945
|
+
|
|
45946
|
+
// authentication apiToken required
|
|
45947
|
+
// http bearer authentication required
|
|
45948
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
45949
|
+
|
|
45950
|
+
|
|
45951
|
+
|
|
45952
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45953
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45954
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
45955
|
+
|
|
45956
|
+
return {
|
|
45957
|
+
url: toPathString(localVarUrlObj),
|
|
45958
|
+
options: localVarRequestOptions,
|
|
45959
|
+
};
|
|
45960
|
+
},
|
|
45961
|
+
/**
|
|
45962
|
+
* Get how much of the plan is left for the current period. Two things to keep in mind before you build alerting on this. The period is a calendar month rather than a billing anniversary, so the counters reset on the 1st no matter when the subscription started. And usage is tracked per order, so every profile on the same order shares one pool and reports the same numbers here. Only the current period is available, past usage is not kept.
|
|
45963
|
+
* @summary Get remaining plan limits
|
|
45964
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45965
|
+
* @param {*} [options] Override http request option.
|
|
45966
|
+
* @throws {RequiredError}
|
|
45967
|
+
*/
|
|
45968
|
+
getRemainingPlanLimitsV1: async (profileUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45969
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
45970
|
+
assertParamExists('getRemainingPlanLimitsV1', 'profileUuid', profileUuid)
|
|
45971
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/limits`
|
|
45257
45972
|
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
45258
45973
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45259
45974
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -47612,7 +48327,49 @@ export const ReachTemplatesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
47612
48327
|
};
|
|
47613
48328
|
},
|
|
47614
48329
|
/**
|
|
47615
|
-
* 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.
|
|
47616
48373
|
* @summary List email templates
|
|
47617
48374
|
* @param {string} profileUuid Profile uuid parameter
|
|
47618
48375
|
* @param {*} [options] Override http request option.
|
|
@@ -47673,7 +48430,20 @@ export const ReachTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
47673
48430
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
47674
48431
|
},
|
|
47675
48432
|
/**
|
|
47676
|
-
* 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.
|
|
47677
48447
|
* @summary List email templates
|
|
47678
48448
|
* @param {string} profileUuid Profile uuid parameter
|
|
47679
48449
|
* @param {*} [options] Override http request option.
|
|
@@ -47706,7 +48476,18 @@ export const ReachTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
47706
48476
|
return localVarFp.createAnEmailTemplateV1(profileUuid, reachV1TemplatesStoreRequest, options).then((request) => request(axios, basePath));
|
|
47707
48477
|
},
|
|
47708
48478
|
/**
|
|
47709
|
-
* 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.
|
|
47710
48491
|
* @summary List email templates
|
|
47711
48492
|
* @param {string} profileUuid Profile uuid parameter
|
|
47712
48493
|
* @param {*} [options] Override http request option.
|
|
@@ -47739,7 +48520,20 @@ export class ReachTemplatesApi extends BaseAPI {
|
|
|
47739
48520
|
}
|
|
47740
48521
|
|
|
47741
48522
|
/**
|
|
47742
|
-
* 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.
|
|
47743
48537
|
* @summary List email templates
|
|
47744
48538
|
* @param {string} profileUuid Profile uuid parameter
|
|
47745
48539
|
* @param {*} [options] Override http request option.
|