hostinger-api-sdk 2.4.4 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.4.4
6
+ * API Version: 2.5.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -25857,6 +25857,42 @@ export const ReachIntegrationsApiAxiosParamCreator = function (configuration) {
25857
25857
  options: localVarRequestOptions,
25858
25858
  };
25859
25859
  }),
25860
+ /**
25861
+ * 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.
25862
+ * @summary Connect Ecommerce store
25863
+ * @param {string} profileUuid Profile uuid parameter
25864
+ * @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
25865
+ * @param {*} [options] Override http request option.
25866
+ * @throws {RequiredError}
25867
+ */
25868
+ connectEcommerceStoreV1: (profileUuid_1, storeId_1, ...args_1) => __awaiter(this, [profileUuid_1, storeId_1, ...args_1], void 0, function* (profileUuid, storeId, options = {}) {
25869
+ // verify required parameter 'profileUuid' is not null or undefined
25870
+ assertParamExists('connectEcommerceStoreV1', 'profileUuid', profileUuid);
25871
+ // verify required parameter 'storeId' is not null or undefined
25872
+ assertParamExists('connectEcommerceStoreV1', 'storeId', storeId);
25873
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/ecommerce/stores/{storeId}`
25874
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
25875
+ .replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
25876
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
25877
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
25878
+ let baseOptions;
25879
+ if (configuration) {
25880
+ baseOptions = configuration.baseOptions;
25881
+ }
25882
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
25883
+ const localVarHeaderParameter = {};
25884
+ const localVarQueryParameter = {};
25885
+ // authentication apiToken required
25886
+ // http bearer authentication required
25887
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
25888
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
25889
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25890
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
25891
+ return {
25892
+ url: toPathString(localVarUrlObj),
25893
+ options: localVarRequestOptions,
25894
+ };
25895
+ }),
25860
25896
  /**
25861
25897
  * 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.
25862
25898
  * @summary Disconnect AI Website Builder site
@@ -25895,7 +25931,7 @@ export const ReachIntegrationsApiAxiosParamCreator = function (configuration) {
25895
25931
  };
25896
25932
  }),
25897
25933
  /**
25898
- * 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.
25934
+ * 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.
25899
25935
  * @summary Disconnect Ecommerce store
25900
25936
  * @param {string} profileUuid Profile uuid parameter
25901
25937
  * @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
@@ -26000,7 +26036,7 @@ export const ReachIntegrationsApiAxiosParamCreator = function (configuration) {
26000
26036
  };
26001
26037
  }),
26002
26038
  /**
26003
- * 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.
26039
+ * 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.
26004
26040
  * @summary List Ecommerce stores
26005
26041
  * @param {string} profileUuid Profile uuid parameter
26006
26042
  * @param {*} [options] Override http request option.
@@ -26056,6 +26092,22 @@ export const ReachIntegrationsApiFp = function (configuration) {
26056
26092
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26057
26093
  });
26058
26094
  },
26095
+ /**
26096
+ * 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.
26097
+ * @summary Connect Ecommerce store
26098
+ * @param {string} profileUuid Profile uuid parameter
26099
+ * @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
26100
+ * @param {*} [options] Override http request option.
26101
+ * @throws {RequiredError}
26102
+ */
26103
+ connectEcommerceStoreV1(profileUuid, storeId, options) {
26104
+ return __awaiter(this, void 0, void 0, function* () {
26105
+ var _a, _b;
26106
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.connectEcommerceStoreV1(profileUuid, storeId, options);
26107
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachIntegrationsApi.connectEcommerceStoreV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
26108
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26109
+ });
26110
+ },
26059
26111
  /**
26060
26112
  * 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.
26061
26113
  * @summary Disconnect AI Website Builder site
@@ -26073,7 +26125,7 @@ export const ReachIntegrationsApiFp = function (configuration) {
26073
26125
  });
26074
26126
  },
26075
26127
  /**
26076
- * 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.
26128
+ * 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.
26077
26129
  * @summary Disconnect Ecommerce store
26078
26130
  * @param {string} profileUuid Profile uuid parameter
26079
26131
  * @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
@@ -26120,7 +26172,7 @@ export const ReachIntegrationsApiFp = function (configuration) {
26120
26172
  });
26121
26173
  },
26122
26174
  /**
26123
- * Get all of the customer\'s Hostinger eCommerce stores, each with its `store_id` and `connection_status` for the profile in the path. A store is connected to at most one profile. `connected_to_other_profile` does not name that profile - call this for each profile to find it. The list is empty, not an error, when the eCommerce service cannot be reached. Pass `store_id` to the disconnect eCommerce store endpoint. Connecting an AI Website Builder site connects the store selling on it.
26175
+ * 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.
26124
26176
  * @summary List Ecommerce stores
26125
26177
  * @param {string} profileUuid Profile uuid parameter
26126
26178
  * @param {*} [options] Override http request option.
@@ -26154,6 +26206,17 @@ export const ReachIntegrationsApiFactory = function (configuration, basePath, ax
26154
26206
  connectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderConnectRequest, options) {
26155
26207
  return localVarFp.connectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderConnectRequest, options).then((request) => request(axios, basePath));
26156
26208
  },
26209
+ /**
26210
+ * 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.
26211
+ * @summary Connect Ecommerce store
26212
+ * @param {string} profileUuid Profile uuid parameter
26213
+ * @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
26214
+ * @param {*} [options] Override http request option.
26215
+ * @throws {RequiredError}
26216
+ */
26217
+ connectEcommerceStoreV1(profileUuid, storeId, options) {
26218
+ return localVarFp.connectEcommerceStoreV1(profileUuid, storeId, options).then((request) => request(axios, basePath));
26219
+ },
26157
26220
  /**
26158
26221
  * 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.
26159
26222
  * @summary Disconnect AI Website Builder site
@@ -26166,7 +26229,7 @@ export const ReachIntegrationsApiFactory = function (configuration, basePath, ax
26166
26229
  return localVarFp.disconnectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderDisconnectRequest, options).then((request) => request(axios, basePath));
26167
26230
  },
26168
26231
  /**
26169
- * 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.
26232
+ * 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.
26170
26233
  * @summary Disconnect Ecommerce store
26171
26234
  * @param {string} profileUuid Profile uuid parameter
26172
26235
  * @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
@@ -26198,7 +26261,7 @@ export const ReachIntegrationsApiFactory = function (configuration, basePath, ax
26198
26261
  return localVarFp.listConnectedWebsitesV1(profileUuid, options).then((request) => request(axios, basePath));
26199
26262
  },
26200
26263
  /**
26201
- * Get all of the customer\'s Hostinger eCommerce stores, each with its `store_id` and `connection_status` for the profile in the path. A store is connected to at most one profile. `connected_to_other_profile` does not name that profile - call this for each profile to find it. The list is empty, not an error, when the eCommerce service cannot be reached. Pass `store_id` to the disconnect eCommerce store endpoint. Connecting an AI Website Builder site connects the store selling on it.
26264
+ * 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.
26202
26265
  * @summary List Ecommerce stores
26203
26266
  * @param {string} profileUuid Profile uuid parameter
26204
26267
  * @param {*} [options] Override http request option.
@@ -26228,6 +26291,18 @@ export class ReachIntegrationsApi extends BaseAPI {
26228
26291
  connectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderConnectRequest, options) {
26229
26292
  return ReachIntegrationsApiFp(this.configuration).connectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderConnectRequest, options).then((request) => request(this.axios, this.basePath));
26230
26293
  }
26294
+ /**
26295
+ * 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.
26296
+ * @summary Connect Ecommerce store
26297
+ * @param {string} profileUuid Profile uuid parameter
26298
+ * @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
26299
+ * @param {*} [options] Override http request option.
26300
+ * @throws {RequiredError}
26301
+ * @memberof ReachIntegrationsApi
26302
+ */
26303
+ connectEcommerceStoreV1(profileUuid, storeId, options) {
26304
+ return ReachIntegrationsApiFp(this.configuration).connectEcommerceStoreV1(profileUuid, storeId, options).then((request) => request(this.axios, this.basePath));
26305
+ }
26231
26306
  /**
26232
26307
  * 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.
26233
26308
  * @summary Disconnect AI Website Builder site
@@ -26241,7 +26316,7 @@ export class ReachIntegrationsApi extends BaseAPI {
26241
26316
  return ReachIntegrationsApiFp(this.configuration).disconnectAIWebsiteBuilderSiteV1(profileUuid, reachV1WebsitesWebsiteBuilderDisconnectRequest, options).then((request) => request(this.axios, this.basePath));
26242
26317
  }
26243
26318
  /**
26244
- * 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.
26319
+ * 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.
26245
26320
  * @summary Disconnect Ecommerce store
26246
26321
  * @param {string} profileUuid Profile uuid parameter
26247
26322
  * @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
@@ -26276,7 +26351,7 @@ export class ReachIntegrationsApi extends BaseAPI {
26276
26351
  return ReachIntegrationsApiFp(this.configuration).listConnectedWebsitesV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
26277
26352
  }
26278
26353
  /**
26279
- * 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.
26354
+ * 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.
26280
26355
  * @summary List Ecommerce stores
26281
26356
  * @param {string} profileUuid Profile uuid parameter
26282
26357
  * @param {*} [options] Override http request option.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.4.4
4
+ * API Version: 2.5.1
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/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.4.4
6
+ * API Version: 2.5.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.4.4
4
+ * API Version: 2.5.1
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
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.4.4
6
+ * API Version: 2.5.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.4.4
4
+ * API Version: 2.5.1
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
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.4.4
6
+ * API Version: 2.5.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.4.4" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.5.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.4.4
4
+ * API Version: 2.5.1
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/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.4.4
6
+ * API Version: 2.5.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.4.4
4
+ * API Version: 2.5.1
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/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.4.4
7
+ * API Version: 2.5.1
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
@@ -5,6 +5,7 @@ All URIs are relative to *https://developers.hostinger.com*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**connectAIWebsiteBuilderSiteV1**](#connectaiwebsitebuildersitev1) | **POST** /api/reach/v1/profiles/{profileUuid}/websites/website-builder | Connect AI Website Builder site|
8
+ |[**connectEcommerceStoreV1**](#connectecommercestorev1) | **POST** /api/reach/v1/profiles/{profileUuid}/ecommerce/stores/{storeId} | Connect Ecommerce store|
8
9
  |[**disconnectAIWebsiteBuilderSiteV1**](#disconnectaiwebsitebuildersitev1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/websites/website-builder | Disconnect AI Website Builder site|
9
10
  |[**disconnectEcommerceStoreV1**](#disconnectecommercestorev1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/ecommerce/stores/{storeId} | Disconnect Ecommerce store|
10
11
  |[**disconnectWordPressSiteV1**](#disconnectwordpresssitev1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/websites/wordpress | Disconnect WordPress site|
@@ -69,6 +70,63 @@ const { status, data } = await apiInstance.connectAIWebsiteBuilderSiteV1(
69
70
 
70
71
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
71
72
 
73
+ # **connectEcommerceStoreV1**
74
+ > ReachV1StoresConnectionResource connectEcommerceStoreV1()
75
+
76
+ 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.
77
+
78
+ ### Example
79
+
80
+ ```typescript
81
+ import {
82
+ ReachIntegrationsApi,
83
+ Configuration
84
+ } from '@hostinger/sdk';
85
+
86
+ const configuration = new Configuration();
87
+ const apiInstance = new ReachIntegrationsApi(configuration);
88
+
89
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
90
+ let storeId: string; //Hostinger eCommerce store ID, as returned by the eCommerce stores list (default to undefined)
91
+
92
+ const { status, data } = await apiInstance.connectEcommerceStoreV1(
93
+ profileUuid,
94
+ storeId
95
+ );
96
+ ```
97
+
98
+ ### Parameters
99
+
100
+ |Name | Type | Description | Notes|
101
+ |------------- | ------------- | ------------- | -------------|
102
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
103
+ | **storeId** | [**string**] | Hostinger eCommerce store ID, as returned by the eCommerce stores list | defaults to undefined|
104
+
105
+
106
+ ### Return type
107
+
108
+ **ReachV1StoresConnectionResource**
109
+
110
+ ### Authorization
111
+
112
+ [apiToken](../README.md#apiToken)
113
+
114
+ ### HTTP request headers
115
+
116
+ - **Content-Type**: Not defined
117
+ - **Accept**: application/json
118
+
119
+
120
+ ### HTTP response details
121
+ | Status code | Description | Response headers |
122
+ |-------------|-------------|------------------|
123
+ |**200** | Success response | - |
124
+ |**401** | Unauthenticated response | - |
125
+ |**409** | Conflict response. &#x60;Retry-After&#x60;, when present, is the number of seconds to wait before retrying. | * Retry-After - Seconds to wait before retrying the request <br> |
126
+ |**500** | Error response | - |
127
+
128
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
129
+
72
130
  # **disconnectAIWebsiteBuilderSiteV1**
73
131
  > CommonSuccessEmptyResource disconnectAIWebsiteBuilderSiteV1(reachV1WebsitesWebsiteBuilderDisconnectRequest)
74
132
 
@@ -130,7 +188,7 @@ const { status, data } = await apiInstance.disconnectAIWebsiteBuilderSiteV1(
130
188
  # **disconnectEcommerceStoreV1**
131
189
  > CommonSuccessEmptyResource disconnectEcommerceStoreV1()
132
190
 
133
- 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.
191
+ 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.
134
192
 
135
193
  ### Example
136
194
 
@@ -297,7 +355,7 @@ const { status, data } = await apiInstance.listConnectedWebsitesV1(
297
355
  # **listEcommerceStoresV1**
298
356
  > Array<ReachV1StoresStoreResource> listEcommerceStoresV1()
299
357
 
300
- 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.
358
+ 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.
301
359
 
302
360
  ### Example
303
361
 
@@ -0,0 +1,24 @@
1
+ # ReachV1StoresConnectionResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **uuid** | **string** | UUID of the connection between the store and the profile. | [optional] [default to undefined]
9
+ **store_id** | **string** | | [optional] [default to undefined]
10
+ **store** | [**ReachV1StoresConnectionResourceStore**](ReachV1StoresConnectionResourceStore.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ReachV1StoresConnectionResource } from '@hostinger/sdk';
16
+
17
+ const instance: ReachV1StoresConnectionResource = {
18
+ uuid,
19
+ store_id,
20
+ store,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,25 @@
1
+ # ReachV1StoresConnectionResourceStore
2
+
3
+ Reach store created for the connection.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **uuid** | **string** | | [optional] [default to undefined]
10
+ **currency** | **string** | | [optional] [default to undefined]
11
+ **synced_at** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ReachV1StoresConnectionResourceStore } from '@hostinger/sdk';
17
+
18
+ const instance: ReachV1StoresConnectionResourceStore = {
19
+ uuid,
20
+ currency,
21
+ synced_at,
22
+ };
23
+ ```
24
+
25
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.4.4
6
+ * API Version: 2.5.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "2.4.4",
3
+ "version": "2.5.1",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {