hostinger-api-sdk 2.4.4 → 2.5.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 +138 -9
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +96 -9
- package/dist/api.js +84 -9
- 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 +96 -9
- package/dist/esm/api.js +84 -9
- 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/ReachIntegrationsApi.md +60 -2
- package/docs/ReachV1StoresConnectionResource.md +24 -0
- package/docs/ReachV1StoresConnectionResourceStore.md +25 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.
|
|
7
|
+
* API Version: 2.5.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -26139,6 +26139,42 @@ const ReachIntegrationsApiAxiosParamCreator = function (configuration) {
|
|
|
26139
26139
|
options: localVarRequestOptions,
|
|
26140
26140
|
};
|
|
26141
26141
|
}),
|
|
26142
|
+
/**
|
|
26143
|
+
* Connect one of the customer\'s eCommerce stores to the profile, so Reach receives its customers and orders. Take `store_id` from the list eCommerce stores endpoint. Fails with not found (`ECOMMERCE_STORE_NOT_FOUND`) when the store is not one of the customer\'s own stores, also when the eCommerce service cannot be reached. Fails with a conflict (`ECOMMERCE_CONNECTION_ALREADY_EXISTS`) when the store is connected to any profile or this profile already has a store - to move a store to another plan, disconnect it from the profile that holds it first.
|
|
26144
|
+
* @summary Connect Ecommerce store
|
|
26145
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26146
|
+
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
26147
|
+
* @param {*} [options] Override http request option.
|
|
26148
|
+
* @throws {RequiredError}
|
|
26149
|
+
*/
|
|
26150
|
+
connectEcommerceStoreV1: (profileUuid_1, storeId_1, ...args_1) => __awaiter(this, [profileUuid_1, storeId_1, ...args_1], void 0, function* (profileUuid, storeId, options = {}) {
|
|
26151
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
26152
|
+
(0, common_1.assertParamExists)('connectEcommerceStoreV1', 'profileUuid', profileUuid);
|
|
26153
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
26154
|
+
(0, common_1.assertParamExists)('connectEcommerceStoreV1', 'storeId', storeId);
|
|
26155
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/ecommerce/stores/{storeId}`
|
|
26156
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
26157
|
+
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
|
|
26158
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26159
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26160
|
+
let baseOptions;
|
|
26161
|
+
if (configuration) {
|
|
26162
|
+
baseOptions = configuration.baseOptions;
|
|
26163
|
+
}
|
|
26164
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
26165
|
+
const localVarHeaderParameter = {};
|
|
26166
|
+
const localVarQueryParameter = {};
|
|
26167
|
+
// authentication apiToken required
|
|
26168
|
+
// http bearer authentication required
|
|
26169
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
26170
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
26171
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26172
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26173
|
+
return {
|
|
26174
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
26175
|
+
options: localVarRequestOptions,
|
|
26176
|
+
};
|
|
26177
|
+
}),
|
|
26142
26178
|
/**
|
|
26143
26179
|
* 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.
|
|
26144
26180
|
* @summary Disconnect AI Website Builder site
|
|
@@ -26177,7 +26213,7 @@ const ReachIntegrationsApiAxiosParamCreator = function (configuration) {
|
|
|
26177
26213
|
};
|
|
26178
26214
|
}),
|
|
26179
26215
|
/**
|
|
26180
|
-
* 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.
|
|
26216
|
+
* 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. To move the store to another plan, connect it to the new profile afterwards. Confirm the store and the plan with the customer before calling.
|
|
26181
26217
|
* @summary Disconnect Ecommerce store
|
|
26182
26218
|
* @param {string} profileUuid Profile uuid parameter
|
|
26183
26219
|
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
@@ -26282,7 +26318,7 @@ const ReachIntegrationsApiAxiosParamCreator = function (configuration) {
|
|
|
26282
26318
|
};
|
|
26283
26319
|
}),
|
|
26284
26320
|
/**
|
|
26285
|
-
* 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.
|
|
26321
|
+
* 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 connect or disconnect eCommerce store endpoint.
|
|
26286
26322
|
* @summary List Ecommerce stores
|
|
26287
26323
|
* @param {string} profileUuid Profile uuid parameter
|
|
26288
26324
|
* @param {*} [options] Override http request option.
|
|
@@ -26339,6 +26375,22 @@ const ReachIntegrationsApiFp = function (configuration) {
|
|
|
26339
26375
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26340
26376
|
});
|
|
26341
26377
|
},
|
|
26378
|
+
/**
|
|
26379
|
+
* Connect one of the customer\'s eCommerce stores to the profile, so Reach receives its customers and orders. Take `store_id` from the list eCommerce stores endpoint. Fails with not found (`ECOMMERCE_STORE_NOT_FOUND`) when the store is not one of the customer\'s own stores, also when the eCommerce service cannot be reached. Fails with a conflict (`ECOMMERCE_CONNECTION_ALREADY_EXISTS`) when the store is connected to any profile or this profile already has a store - to move a store to another plan, disconnect it from the profile that holds it first.
|
|
26380
|
+
* @summary Connect Ecommerce store
|
|
26381
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26382
|
+
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
26383
|
+
* @param {*} [options] Override http request option.
|
|
26384
|
+
* @throws {RequiredError}
|
|
26385
|
+
*/
|
|
26386
|
+
connectEcommerceStoreV1(profileUuid, storeId, options) {
|
|
26387
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26388
|
+
var _a, _b;
|
|
26389
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.connectEcommerceStoreV1(profileUuid, storeId, options);
|
|
26390
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachIntegrationsApi.connectEcommerceStoreV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
26391
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26392
|
+
});
|
|
26393
|
+
},
|
|
26342
26394
|
/**
|
|
26343
26395
|
* 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.
|
|
26344
26396
|
* @summary Disconnect AI Website Builder site
|
|
@@ -26356,7 +26408,7 @@ const ReachIntegrationsApiFp = function (configuration) {
|
|
|
26356
26408
|
});
|
|
26357
26409
|
},
|
|
26358
26410
|
/**
|
|
26359
|
-
* 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.
|
|
26411
|
+
* 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. To move the store to another plan, connect it to the new profile afterwards. Confirm the store and the plan with the customer before calling.
|
|
26360
26412
|
* @summary Disconnect Ecommerce store
|
|
26361
26413
|
* @param {string} profileUuid Profile uuid parameter
|
|
26362
26414
|
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
@@ -26403,7 +26455,7 @@ const ReachIntegrationsApiFp = function (configuration) {
|
|
|
26403
26455
|
});
|
|
26404
26456
|
},
|
|
26405
26457
|
/**
|
|
26406
|
-
* 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.
|
|
26458
|
+
* 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 connect or disconnect eCommerce store endpoint.
|
|
26407
26459
|
* @summary List Ecommerce stores
|
|
26408
26460
|
* @param {string} profileUuid Profile uuid parameter
|
|
26409
26461
|
* @param {*} [options] Override http request option.
|
|
@@ -26438,6 +26490,17 @@ const ReachIntegrationsApiFactory = function (configuration, basePath, axios) {
|
|
|
26438
26490
|
connectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderConnectRequest, options) {
|
|
26439
26491
|
return localVarFp.connectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderConnectRequest, options).then((request) => request(axios, basePath));
|
|
26440
26492
|
},
|
|
26493
|
+
/**
|
|
26494
|
+
* Connect one of the customer\'s eCommerce stores to the profile, so Reach receives its customers and orders. Take `store_id` from the list eCommerce stores endpoint. Fails with not found (`ECOMMERCE_STORE_NOT_FOUND`) when the store is not one of the customer\'s own stores, also when the eCommerce service cannot be reached. Fails with a conflict (`ECOMMERCE_CONNECTION_ALREADY_EXISTS`) when the store is connected to any profile or this profile already has a store - to move a store to another plan, disconnect it from the profile that holds it first.
|
|
26495
|
+
* @summary Connect Ecommerce store
|
|
26496
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26497
|
+
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
26498
|
+
* @param {*} [options] Override http request option.
|
|
26499
|
+
* @throws {RequiredError}
|
|
26500
|
+
*/
|
|
26501
|
+
connectEcommerceStoreV1(profileUuid, storeId, options) {
|
|
26502
|
+
return localVarFp.connectEcommerceStoreV1(profileUuid, storeId, options).then((request) => request(axios, basePath));
|
|
26503
|
+
},
|
|
26441
26504
|
/**
|
|
26442
26505
|
* 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.
|
|
26443
26506
|
* @summary Disconnect AI Website Builder site
|
|
@@ -26450,7 +26513,7 @@ const ReachIntegrationsApiFactory = function (configuration, basePath, axios) {
|
|
|
26450
26513
|
return localVarFp.disconnectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderDisconnectRequest, options).then((request) => request(axios, basePath));
|
|
26451
26514
|
},
|
|
26452
26515
|
/**
|
|
26453
|
-
* 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.
|
|
26516
|
+
* 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. To move the store to another plan, connect it to the new profile afterwards. Confirm the store and the plan with the customer before calling.
|
|
26454
26517
|
* @summary Disconnect Ecommerce store
|
|
26455
26518
|
* @param {string} profileUuid Profile uuid parameter
|
|
26456
26519
|
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
@@ -26482,7 +26545,7 @@ const ReachIntegrationsApiFactory = function (configuration, basePath, axios) {
|
|
|
26482
26545
|
return localVarFp.listConnectedWebsitesV1(profileUuid, options).then((request) => request(axios, basePath));
|
|
26483
26546
|
},
|
|
26484
26547
|
/**
|
|
26485
|
-
* 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.
|
|
26548
|
+
* 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 connect or disconnect eCommerce store endpoint.
|
|
26486
26549
|
* @summary List Ecommerce stores
|
|
26487
26550
|
* @param {string} profileUuid Profile uuid parameter
|
|
26488
26551
|
* @param {*} [options] Override http request option.
|
|
@@ -26513,6 +26576,18 @@ class ReachIntegrationsApi extends base_1.BaseAPI {
|
|
|
26513
26576
|
connectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderConnectRequest, options) {
|
|
26514
26577
|
return (0, exports.ReachIntegrationsApiFp)(this.configuration).connectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderConnectRequest, options).then((request) => request(this.axios, this.basePath));
|
|
26515
26578
|
}
|
|
26579
|
+
/**
|
|
26580
|
+
* Connect one of the customer\'s eCommerce stores to the profile, so Reach receives its customers and orders. Take `store_id` from the list eCommerce stores endpoint. Fails with not found (`ECOMMERCE_STORE_NOT_FOUND`) when the store is not one of the customer\'s own stores, also when the eCommerce service cannot be reached. Fails with a conflict (`ECOMMERCE_CONNECTION_ALREADY_EXISTS`) when the store is connected to any profile or this profile already has a store - to move a store to another plan, disconnect it from the profile that holds it first.
|
|
26581
|
+
* @summary Connect Ecommerce store
|
|
26582
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
26583
|
+
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
26584
|
+
* @param {*} [options] Override http request option.
|
|
26585
|
+
* @throws {RequiredError}
|
|
26586
|
+
* @memberof ReachIntegrationsApi
|
|
26587
|
+
*/
|
|
26588
|
+
connectEcommerceStoreV1(profileUuid, storeId, options) {
|
|
26589
|
+
return (0, exports.ReachIntegrationsApiFp)(this.configuration).connectEcommerceStoreV1(profileUuid, storeId, options).then((request) => request(this.axios, this.basePath));
|
|
26590
|
+
}
|
|
26516
26591
|
/**
|
|
26517
26592
|
* 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.
|
|
26518
26593
|
* @summary Disconnect AI Website Builder site
|
|
@@ -26526,7 +26601,7 @@ class ReachIntegrationsApi extends base_1.BaseAPI {
|
|
|
26526
26601
|
return (0, exports.ReachIntegrationsApiFp)(this.configuration).disconnectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderDisconnectRequest, options).then((request) => request(this.axios, this.basePath));
|
|
26527
26602
|
}
|
|
26528
26603
|
/**
|
|
26529
|
-
* 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.
|
|
26604
|
+
* 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. To move the store to another plan, connect it to the new profile afterwards. Confirm the store and the plan with the customer before calling.
|
|
26530
26605
|
* @summary Disconnect Ecommerce store
|
|
26531
26606
|
* @param {string} profileUuid Profile uuid parameter
|
|
26532
26607
|
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
@@ -26561,7 +26636,7 @@ class ReachIntegrationsApi extends base_1.BaseAPI {
|
|
|
26561
26636
|
return (0, exports.ReachIntegrationsApiFp)(this.configuration).listConnectedWebsitesV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
|
|
26562
26637
|
}
|
|
26563
26638
|
/**
|
|
26564
|
-
* 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.
|
|
26639
|
+
* 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 connect or disconnect eCommerce store endpoint.
|
|
26565
26640
|
* @summary List Ecommerce stores
|
|
26566
26641
|
* @param {string} profileUuid Profile uuid parameter
|
|
26567
26642
|
* @param {*} [options] Override http request option.
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.5.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.
|
|
7
|
+
* API Version: 2.5.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.5.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.
|
|
7
|
+
* API Version: 2.5.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.5.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.
|
|
7
|
+
* API Version: 2.5.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -16,7 +16,7 @@ class Configuration {
|
|
|
16
16
|
var _a;
|
|
17
17
|
this.accessToken = param.accessToken;
|
|
18
18
|
this.basePath = param.basePath;
|
|
19
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.5.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.5.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -15459,6 +15459,56 @@ export interface ReachV1ProfilesSettingsUpdateRequest {
|
|
|
15459
15459
|
*/
|
|
15460
15460
|
'sender_email': string | null;
|
|
15461
15461
|
}
|
|
15462
|
+
/**
|
|
15463
|
+
*
|
|
15464
|
+
* @export
|
|
15465
|
+
* @interface ReachV1StoresConnectionResource
|
|
15466
|
+
*/
|
|
15467
|
+
export interface ReachV1StoresConnectionResource {
|
|
15468
|
+
/**
|
|
15469
|
+
* UUID of the connection between the store and the profile.
|
|
15470
|
+
* @type {string}
|
|
15471
|
+
* @memberof ReachV1StoresConnectionResource
|
|
15472
|
+
*/
|
|
15473
|
+
'uuid': string;
|
|
15474
|
+
/**
|
|
15475
|
+
*
|
|
15476
|
+
* @type {string}
|
|
15477
|
+
* @memberof ReachV1StoresConnectionResource
|
|
15478
|
+
*/
|
|
15479
|
+
'store_id': string;
|
|
15480
|
+
/**
|
|
15481
|
+
*
|
|
15482
|
+
* @type {ReachV1StoresConnectionResourceStore}
|
|
15483
|
+
* @memberof ReachV1StoresConnectionResource
|
|
15484
|
+
*/
|
|
15485
|
+
'store': ReachV1StoresConnectionResourceStore | null;
|
|
15486
|
+
}
|
|
15487
|
+
/**
|
|
15488
|
+
* Reach store created for the connection.
|
|
15489
|
+
* @export
|
|
15490
|
+
* @interface ReachV1StoresConnectionResourceStore
|
|
15491
|
+
*/
|
|
15492
|
+
export interface ReachV1StoresConnectionResourceStore {
|
|
15493
|
+
/**
|
|
15494
|
+
*
|
|
15495
|
+
* @type {string}
|
|
15496
|
+
* @memberof ReachV1StoresConnectionResourceStore
|
|
15497
|
+
*/
|
|
15498
|
+
'uuid': string;
|
|
15499
|
+
/**
|
|
15500
|
+
*
|
|
15501
|
+
* @type {string}
|
|
15502
|
+
* @memberof ReachV1StoresConnectionResourceStore
|
|
15503
|
+
*/
|
|
15504
|
+
'currency': string | null;
|
|
15505
|
+
/**
|
|
15506
|
+
*
|
|
15507
|
+
* @type {string}
|
|
15508
|
+
* @memberof ReachV1StoresConnectionResourceStore
|
|
15509
|
+
*/
|
|
15510
|
+
'synced_at': string | null;
|
|
15511
|
+
}
|
|
15462
15512
|
/**
|
|
15463
15513
|
*
|
|
15464
15514
|
* @export
|
|
@@ -31540,6 +31590,15 @@ export declare const ReachIntegrationsApiAxiosParamCreator: (configuration?: Con
|
|
|
31540
31590
|
* @throws {RequiredError}
|
|
31541
31591
|
*/
|
|
31542
31592
|
connectAIWebsiteBuilderSiteV1: (profileUuid: string, reachV1WebsitesWebsiteBuilderConnectRequest: ReachV1WebsitesWebsiteBuilderConnectRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31593
|
+
/**
|
|
31594
|
+
* Connect one of the customer\'s eCommerce stores to the profile, so Reach receives its customers and orders. Take `store_id` from the list eCommerce stores endpoint. Fails with not found (`ECOMMERCE_STORE_NOT_FOUND`) when the store is not one of the customer\'s own stores, also when the eCommerce service cannot be reached. Fails with a conflict (`ECOMMERCE_CONNECTION_ALREADY_EXISTS`) when the store is connected to any profile or this profile already has a store - to move a store to another plan, disconnect it from the profile that holds it first.
|
|
31595
|
+
* @summary Connect Ecommerce store
|
|
31596
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
31597
|
+
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
31598
|
+
* @param {*} [options] Override http request option.
|
|
31599
|
+
* @throws {RequiredError}
|
|
31600
|
+
*/
|
|
31601
|
+
connectEcommerceStoreV1: (profileUuid: string, storeId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31543
31602
|
/**
|
|
31544
31603
|
* 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.
|
|
31545
31604
|
* @summary Disconnect AI Website Builder site
|
|
@@ -31550,7 +31609,7 @@ export declare const ReachIntegrationsApiAxiosParamCreator: (configuration?: Con
|
|
|
31550
31609
|
*/
|
|
31551
31610
|
disconnectAIWebsiteBuilderSiteV1: (profileUuid: string, reachV1WebsitesWebsiteBuilderDisconnectRequest: ReachV1WebsitesWebsiteBuilderDisconnectRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31552
31611
|
/**
|
|
31553
|
-
* 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.
|
|
31612
|
+
* 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. To move the store to another plan, connect it to the new profile afterwards. Confirm the store and the plan with the customer before calling.
|
|
31554
31613
|
* @summary Disconnect Ecommerce store
|
|
31555
31614
|
* @param {string} profileUuid Profile uuid parameter
|
|
31556
31615
|
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
@@ -31576,7 +31635,7 @@ export declare const ReachIntegrationsApiAxiosParamCreator: (configuration?: Con
|
|
|
31576
31635
|
*/
|
|
31577
31636
|
listConnectedWebsitesV1: (profileUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31578
31637
|
/**
|
|
31579
|
-
* 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.
|
|
31638
|
+
* 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 connect or disconnect eCommerce store endpoint.
|
|
31580
31639
|
* @summary List Ecommerce stores
|
|
31581
31640
|
* @param {string} profileUuid Profile uuid parameter
|
|
31582
31641
|
* @param {*} [options] Override http request option.
|
|
@@ -31598,6 +31657,15 @@ export declare const ReachIntegrationsApiFp: (configuration?: Configuration) =>
|
|
|
31598
31657
|
* @throws {RequiredError}
|
|
31599
31658
|
*/
|
|
31600
31659
|
connectAIWebsiteBuilderSiteV1(profileUuid: string, reachV1WebsitesWebsiteBuilderConnectRequest: ReachV1WebsitesWebsiteBuilderConnectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
31660
|
+
/**
|
|
31661
|
+
* Connect one of the customer\'s eCommerce stores to the profile, so Reach receives its customers and orders. Take `store_id` from the list eCommerce stores endpoint. Fails with not found (`ECOMMERCE_STORE_NOT_FOUND`) when the store is not one of the customer\'s own stores, also when the eCommerce service cannot be reached. Fails with a conflict (`ECOMMERCE_CONNECTION_ALREADY_EXISTS`) when the store is connected to any profile or this profile already has a store - to move a store to another plan, disconnect it from the profile that holds it first.
|
|
31662
|
+
* @summary Connect Ecommerce store
|
|
31663
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
31664
|
+
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
31665
|
+
* @param {*} [options] Override http request option.
|
|
31666
|
+
* @throws {RequiredError}
|
|
31667
|
+
*/
|
|
31668
|
+
connectEcommerceStoreV1(profileUuid: string, storeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1StoresConnectionResource>>;
|
|
31601
31669
|
/**
|
|
31602
31670
|
* 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.
|
|
31603
31671
|
* @summary Disconnect AI Website Builder site
|
|
@@ -31608,7 +31676,7 @@ export declare const ReachIntegrationsApiFp: (configuration?: Configuration) =>
|
|
|
31608
31676
|
*/
|
|
31609
31677
|
disconnectAIWebsiteBuilderSiteV1(profileUuid: string, reachV1WebsitesWebsiteBuilderDisconnectRequest: ReachV1WebsitesWebsiteBuilderDisconnectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
31610
31678
|
/**
|
|
31611
|
-
* 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.
|
|
31679
|
+
* 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. To move the store to another plan, connect it to the new profile afterwards. Confirm the store and the plan with the customer before calling.
|
|
31612
31680
|
* @summary Disconnect Ecommerce store
|
|
31613
31681
|
* @param {string} profileUuid Profile uuid parameter
|
|
31614
31682
|
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
@@ -31634,7 +31702,7 @@ export declare const ReachIntegrationsApiFp: (configuration?: Configuration) =>
|
|
|
31634
31702
|
*/
|
|
31635
31703
|
listConnectedWebsitesV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1WebsitesWebsiteResource>>>;
|
|
31636
31704
|
/**
|
|
31637
|
-
* 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.
|
|
31705
|
+
* 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 connect or disconnect eCommerce store endpoint.
|
|
31638
31706
|
* @summary List Ecommerce stores
|
|
31639
31707
|
* @param {string} profileUuid Profile uuid parameter
|
|
31640
31708
|
* @param {*} [options] Override http request option.
|
|
@@ -31656,6 +31724,15 @@ export declare const ReachIntegrationsApiFactory: (configuration?: Configuration
|
|
|
31656
31724
|
* @throws {RequiredError}
|
|
31657
31725
|
*/
|
|
31658
31726
|
connectAIWebsiteBuilderSiteV1(profileUuid: string, reachV1WebsitesWebsiteBuilderConnectRequest: ReachV1WebsitesWebsiteBuilderConnectRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
31727
|
+
/**
|
|
31728
|
+
* Connect one of the customer\'s eCommerce stores to the profile, so Reach receives its customers and orders. Take `store_id` from the list eCommerce stores endpoint. Fails with not found (`ECOMMERCE_STORE_NOT_FOUND`) when the store is not one of the customer\'s own stores, also when the eCommerce service cannot be reached. Fails with a conflict (`ECOMMERCE_CONNECTION_ALREADY_EXISTS`) when the store is connected to any profile or this profile already has a store - to move a store to another plan, disconnect it from the profile that holds it first.
|
|
31729
|
+
* @summary Connect Ecommerce store
|
|
31730
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
31731
|
+
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
31732
|
+
* @param {*} [options] Override http request option.
|
|
31733
|
+
* @throws {RequiredError}
|
|
31734
|
+
*/
|
|
31735
|
+
connectEcommerceStoreV1(profileUuid: string, storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1StoresConnectionResource>;
|
|
31659
31736
|
/**
|
|
31660
31737
|
* 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.
|
|
31661
31738
|
* @summary Disconnect AI Website Builder site
|
|
@@ -31666,7 +31743,7 @@ export declare const ReachIntegrationsApiFactory: (configuration?: Configuration
|
|
|
31666
31743
|
*/
|
|
31667
31744
|
disconnectAIWebsiteBuilderSiteV1(profileUuid: string, reachV1WebsitesWebsiteBuilderDisconnectRequest: ReachV1WebsitesWebsiteBuilderDisconnectRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
31668
31745
|
/**
|
|
31669
|
-
* 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.
|
|
31746
|
+
* 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. To move the store to another plan, connect it to the new profile afterwards. Confirm the store and the plan with the customer before calling.
|
|
31670
31747
|
* @summary Disconnect Ecommerce store
|
|
31671
31748
|
* @param {string} profileUuid Profile uuid parameter
|
|
31672
31749
|
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
@@ -31692,7 +31769,7 @@ export declare const ReachIntegrationsApiFactory: (configuration?: Configuration
|
|
|
31692
31769
|
*/
|
|
31693
31770
|
listConnectedWebsitesV1(profileUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1WebsitesWebsiteResource>>;
|
|
31694
31771
|
/**
|
|
31695
|
-
* 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.
|
|
31772
|
+
* 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 connect or disconnect eCommerce store endpoint.
|
|
31696
31773
|
* @summary List Ecommerce stores
|
|
31697
31774
|
* @param {string} profileUuid Profile uuid parameter
|
|
31698
31775
|
* @param {*} [options] Override http request option.
|
|
@@ -31717,6 +31794,16 @@ export declare class ReachIntegrationsApi extends BaseAPI {
|
|
|
31717
31794
|
* @memberof ReachIntegrationsApi
|
|
31718
31795
|
*/
|
|
31719
31796
|
connectAIWebsiteBuilderSiteV1(profileUuid: string, reachV1WebsitesWebsiteBuilderConnectRequest: ReachV1WebsitesWebsiteBuilderConnectRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
31797
|
+
/**
|
|
31798
|
+
* Connect one of the customer\'s eCommerce stores to the profile, so Reach receives its customers and orders. Take `store_id` from the list eCommerce stores endpoint. Fails with not found (`ECOMMERCE_STORE_NOT_FOUND`) when the store is not one of the customer\'s own stores, also when the eCommerce service cannot be reached. Fails with a conflict (`ECOMMERCE_CONNECTION_ALREADY_EXISTS`) when the store is connected to any profile or this profile already has a store - to move a store to another plan, disconnect it from the profile that holds it first.
|
|
31799
|
+
* @summary Connect Ecommerce store
|
|
31800
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
31801
|
+
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
31802
|
+
* @param {*} [options] Override http request option.
|
|
31803
|
+
* @throws {RequiredError}
|
|
31804
|
+
* @memberof ReachIntegrationsApi
|
|
31805
|
+
*/
|
|
31806
|
+
connectEcommerceStoreV1(profileUuid: string, storeId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1StoresConnectionResource, any, {}, any>>;
|
|
31720
31807
|
/**
|
|
31721
31808
|
* 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.
|
|
31722
31809
|
* @summary Disconnect AI Website Builder site
|
|
@@ -31728,7 +31815,7 @@ export declare class ReachIntegrationsApi extends BaseAPI {
|
|
|
31728
31815
|
*/
|
|
31729
31816
|
disconnectAIWebsiteBuilderSiteV1(profileUuid: string, reachV1WebsitesWebsiteBuilderDisconnectRequest: ReachV1WebsitesWebsiteBuilderDisconnectRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
31730
31817
|
/**
|
|
31731
|
-
* 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.
|
|
31818
|
+
* 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. To move the store to another plan, connect it to the new profile afterwards. Confirm the store and the plan with the customer before calling.
|
|
31732
31819
|
* @summary Disconnect Ecommerce store
|
|
31733
31820
|
* @param {string} profileUuid Profile uuid parameter
|
|
31734
31821
|
* @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
|
|
@@ -31757,7 +31844,7 @@ export declare class ReachIntegrationsApi extends BaseAPI {
|
|
|
31757
31844
|
*/
|
|
31758
31845
|
listConnectedWebsitesV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1WebsitesWebsiteResource[], any, {}, any>>;
|
|
31759
31846
|
/**
|
|
31760
|
-
* 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.
|
|
31847
|
+
* 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 connect or disconnect eCommerce store endpoint.
|
|
31761
31848
|
* @summary List Ecommerce stores
|
|
31762
31849
|
* @param {string} profileUuid Profile uuid parameter
|
|
31763
31850
|
* @param {*} [options] Override http request option.
|