hostinger-api-sdk 1.21.1 → 1.23.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/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.22.0
7
+ * API Version: 1.24.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
@@ -3373,6 +3373,41 @@ const BillingSubscriptionsApiAxiosParamCreator = function (configuration) {
3373
3373
  options: localVarRequestOptions,
3374
3374
  };
3375
3375
  }),
3376
+ /**
3377
+ * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
3378
+ * @summary Renew subscription
3379
+ * @param {string} subscriptionId Subscription ID
3380
+ * @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
3381
+ * @param {*} [options] Override http request option.
3382
+ * @throws {RequiredError}
3383
+ */
3384
+ renewSubscriptionV1: (subscriptionId_1, billingV1SubscriptionRenewalRenewRequest_1, ...args_1) => __awaiter(this, [subscriptionId_1, billingV1SubscriptionRenewalRenewRequest_1, ...args_1], void 0, function* (subscriptionId, billingV1SubscriptionRenewalRenewRequest, options = {}) {
3385
+ // verify required parameter 'subscriptionId' is not null or undefined
3386
+ (0, common_1.assertParamExists)('renewSubscriptionV1', 'subscriptionId', subscriptionId);
3387
+ const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}/renew`
3388
+ .replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
3389
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3390
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3391
+ let baseOptions;
3392
+ if (configuration) {
3393
+ baseOptions = configuration.baseOptions;
3394
+ }
3395
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3396
+ const localVarHeaderParameter = {};
3397
+ const localVarQueryParameter = {};
3398
+ // authentication apiToken required
3399
+ // http bearer authentication required
3400
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3401
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3402
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3403
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3404
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3405
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(billingV1SubscriptionRenewalRenewRequest, localVarRequestOptions, configuration);
3406
+ return {
3407
+ url: (0, common_1.toPathString)(localVarUrlObj),
3408
+ options: localVarRequestOptions,
3409
+ };
3410
+ }),
3376
3411
  };
3377
3412
  };
3378
3413
  exports.BillingSubscriptionsApiAxiosParamCreator = BillingSubscriptionsApiAxiosParamCreator;
@@ -3427,6 +3462,22 @@ const BillingSubscriptionsApiFp = function (configuration) {
3427
3462
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3428
3463
  });
3429
3464
  },
3465
+ /**
3466
+ * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
3467
+ * @summary Renew subscription
3468
+ * @param {string} subscriptionId Subscription ID
3469
+ * @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
3470
+ * @param {*} [options] Override http request option.
3471
+ * @throws {RequiredError}
3472
+ */
3473
+ renewSubscriptionV1(subscriptionId, billingV1SubscriptionRenewalRenewRequest, options) {
3474
+ return __awaiter(this, void 0, void 0, function* () {
3475
+ var _a, _b;
3476
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.renewSubscriptionV1(subscriptionId, billingV1SubscriptionRenewalRenewRequest, options);
3477
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['BillingSubscriptionsApi.renewSubscriptionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3478
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3479
+ });
3480
+ },
3430
3481
  };
3431
3482
  };
3432
3483
  exports.BillingSubscriptionsApiFp = BillingSubscriptionsApiFp;
@@ -3466,6 +3517,17 @@ const BillingSubscriptionsApiFactory = function (configuration, basePath, axios)
3466
3517
  getSubscriptionListV1(options) {
3467
3518
  return localVarFp.getSubscriptionListV1(options).then((request) => request(axios, basePath));
3468
3519
  },
3520
+ /**
3521
+ * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
3522
+ * @summary Renew subscription
3523
+ * @param {string} subscriptionId Subscription ID
3524
+ * @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
3525
+ * @param {*} [options] Override http request option.
3526
+ * @throws {RequiredError}
3527
+ */
3528
+ renewSubscriptionV1(subscriptionId, billingV1SubscriptionRenewalRenewRequest, options) {
3529
+ return localVarFp.renewSubscriptionV1(subscriptionId, billingV1SubscriptionRenewalRenewRequest, options).then((request) => request(axios, basePath));
3530
+ },
3469
3531
  };
3470
3532
  };
3471
3533
  exports.BillingSubscriptionsApiFactory = BillingSubscriptionsApiFactory;
@@ -3508,6 +3570,18 @@ class BillingSubscriptionsApi extends base_1.BaseAPI {
3508
3570
  getSubscriptionListV1(options) {
3509
3571
  return (0, exports.BillingSubscriptionsApiFp)(this.configuration).getSubscriptionListV1(options).then((request) => request(this.axios, this.basePath));
3510
3572
  }
3573
+ /**
3574
+ * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
3575
+ * @summary Renew subscription
3576
+ * @param {string} subscriptionId Subscription ID
3577
+ * @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
3578
+ * @param {*} [options] Override http request option.
3579
+ * @throws {RequiredError}
3580
+ * @memberof BillingSubscriptionsApi
3581
+ */
3582
+ renewSubscriptionV1(subscriptionId, billingV1SubscriptionRenewalRenewRequest, options) {
3583
+ return (0, exports.BillingSubscriptionsApiFp)(this.configuration).renewSubscriptionV1(subscriptionId, billingV1SubscriptionRenewalRenewRequest, options).then((request) => request(this.axios, this.basePath));
3584
+ }
3511
3585
  }
3512
3586
  exports.BillingSubscriptionsApi = BillingSubscriptionsApi;
3513
3587
  /**
@@ -5763,6 +5837,70 @@ const DomainsWHOISApiAxiosParamCreator = function (configuration) {
5763
5837
  options: localVarRequestOptions,
5764
5838
  };
5765
5839
  }),
5840
+ /**
5841
+ * Set WHOIS contact profile as default. The default profile is pre-selected for the TLD it belongs to when registering new domains. Use this endpoint to avoid picking contact information for every registration.
5842
+ * @summary Set WHOIS profile as default
5843
+ * @param {number} whoisId WHOIS ID
5844
+ * @param {*} [options] Override http request option.
5845
+ * @throws {RequiredError}
5846
+ */
5847
+ setWHOISProfileAsDefaultV1: (whoisId_1, ...args_1) => __awaiter(this, [whoisId_1, ...args_1], void 0, function* (whoisId, options = {}) {
5848
+ // verify required parameter 'whoisId' is not null or undefined
5849
+ (0, common_1.assertParamExists)('setWHOISProfileAsDefaultV1', 'whoisId', whoisId);
5850
+ const localVarPath = `/api/domains/v1/whois/default/{whoisId}`
5851
+ .replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
5852
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5853
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5854
+ let baseOptions;
5855
+ if (configuration) {
5856
+ baseOptions = configuration.baseOptions;
5857
+ }
5858
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
5859
+ const localVarHeaderParameter = {};
5860
+ const localVarQueryParameter = {};
5861
+ // authentication apiToken required
5862
+ // http bearer authentication required
5863
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5864
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5865
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5866
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5867
+ return {
5868
+ url: (0, common_1.toPathString)(localVarUrlObj),
5869
+ options: localVarRequestOptions,
5870
+ };
5871
+ }),
5872
+ /**
5873
+ * Unset WHOIS contact profile as default. The profile itself is kept, it is only no longer pre-selected for its TLD. Use this endpoint to stop reusing contact information for new registrations.
5874
+ * @summary Unset default WHOIS profile
5875
+ * @param {number} whoisId WHOIS ID
5876
+ * @param {*} [options] Override http request option.
5877
+ * @throws {RequiredError}
5878
+ */
5879
+ unsetDefaultWHOISProfileV1: (whoisId_1, ...args_1) => __awaiter(this, [whoisId_1, ...args_1], void 0, function* (whoisId, options = {}) {
5880
+ // verify required parameter 'whoisId' is not null or undefined
5881
+ (0, common_1.assertParamExists)('unsetDefaultWHOISProfileV1', 'whoisId', whoisId);
5882
+ const localVarPath = `/api/domains/v1/whois/default/{whoisId}`
5883
+ .replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
5884
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5885
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5886
+ let baseOptions;
5887
+ if (configuration) {
5888
+ baseOptions = configuration.baseOptions;
5889
+ }
5890
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5891
+ const localVarHeaderParameter = {};
5892
+ const localVarQueryParameter = {};
5893
+ // authentication apiToken required
5894
+ // http bearer authentication required
5895
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5896
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5897
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5898
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5899
+ return {
5900
+ url: (0, common_1.toPathString)(localVarUrlObj),
5901
+ options: localVarRequestOptions,
5902
+ };
5903
+ }),
5766
5904
  };
5767
5905
  };
5768
5906
  exports.DomainsWHOISApiAxiosParamCreator = DomainsWHOISApiAxiosParamCreator;
@@ -5848,6 +5986,36 @@ const DomainsWHOISApiFp = function (configuration) {
5848
5986
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5849
5987
  });
5850
5988
  },
5989
+ /**
5990
+ * Set WHOIS contact profile as default. The default profile is pre-selected for the TLD it belongs to when registering new domains. Use this endpoint to avoid picking contact information for every registration.
5991
+ * @summary Set WHOIS profile as default
5992
+ * @param {number} whoisId WHOIS ID
5993
+ * @param {*} [options] Override http request option.
5994
+ * @throws {RequiredError}
5995
+ */
5996
+ setWHOISProfileAsDefaultV1(whoisId, options) {
5997
+ return __awaiter(this, void 0, void 0, function* () {
5998
+ var _a, _b;
5999
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setWHOISProfileAsDefaultV1(whoisId, options);
6000
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsWHOISApi.setWHOISProfileAsDefaultV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6001
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6002
+ });
6003
+ },
6004
+ /**
6005
+ * Unset WHOIS contact profile as default. The profile itself is kept, it is only no longer pre-selected for its TLD. Use this endpoint to stop reusing contact information for new registrations.
6006
+ * @summary Unset default WHOIS profile
6007
+ * @param {number} whoisId WHOIS ID
6008
+ * @param {*} [options] Override http request option.
6009
+ * @throws {RequiredError}
6010
+ */
6011
+ unsetDefaultWHOISProfileV1(whoisId, options) {
6012
+ return __awaiter(this, void 0, void 0, function* () {
6013
+ var _a, _b;
6014
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unsetDefaultWHOISProfileV1(whoisId, options);
6015
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsWHOISApi.unsetDefaultWHOISProfileV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6016
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6017
+ });
6018
+ },
5851
6019
  };
5852
6020
  };
5853
6021
  exports.DomainsWHOISApiFp = DomainsWHOISApiFp;
@@ -5908,6 +6076,26 @@ const DomainsWHOISApiFactory = function (configuration, basePath, axios) {
5908
6076
  getWHOISProfileV1(whoisId, options) {
5909
6077
  return localVarFp.getWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
5910
6078
  },
6079
+ /**
6080
+ * Set WHOIS contact profile as default. The default profile is pre-selected for the TLD it belongs to when registering new domains. Use this endpoint to avoid picking contact information for every registration.
6081
+ * @summary Set WHOIS profile as default
6082
+ * @param {number} whoisId WHOIS ID
6083
+ * @param {*} [options] Override http request option.
6084
+ * @throws {RequiredError}
6085
+ */
6086
+ setWHOISProfileAsDefaultV1(whoisId, options) {
6087
+ return localVarFp.setWHOISProfileAsDefaultV1(whoisId, options).then((request) => request(axios, basePath));
6088
+ },
6089
+ /**
6090
+ * Unset WHOIS contact profile as default. The profile itself is kept, it is only no longer pre-selected for its TLD. Use this endpoint to stop reusing contact information for new registrations.
6091
+ * @summary Unset default WHOIS profile
6092
+ * @param {number} whoisId WHOIS ID
6093
+ * @param {*} [options] Override http request option.
6094
+ * @throws {RequiredError}
6095
+ */
6096
+ unsetDefaultWHOISProfileV1(whoisId, options) {
6097
+ return localVarFp.unsetDefaultWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
6098
+ },
5911
6099
  };
5912
6100
  };
5913
6101
  exports.DomainsWHOISApiFactory = DomainsWHOISApiFactory;
@@ -5973,6 +6161,28 @@ class DomainsWHOISApi extends base_1.BaseAPI {
5973
6161
  getWHOISProfileV1(whoisId, options) {
5974
6162
  return (0, exports.DomainsWHOISApiFp)(this.configuration).getWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
5975
6163
  }
6164
+ /**
6165
+ * Set WHOIS contact profile as default. The default profile is pre-selected for the TLD it belongs to when registering new domains. Use this endpoint to avoid picking contact information for every registration.
6166
+ * @summary Set WHOIS profile as default
6167
+ * @param {number} whoisId WHOIS ID
6168
+ * @param {*} [options] Override http request option.
6169
+ * @throws {RequiredError}
6170
+ * @memberof DomainsWHOISApi
6171
+ */
6172
+ setWHOISProfileAsDefaultV1(whoisId, options) {
6173
+ return (0, exports.DomainsWHOISApiFp)(this.configuration).setWHOISProfileAsDefaultV1(whoisId, options).then((request) => request(this.axios, this.basePath));
6174
+ }
6175
+ /**
6176
+ * Unset WHOIS contact profile as default. The profile itself is kept, it is only no longer pre-selected for its TLD. Use this endpoint to stop reusing contact information for new registrations.
6177
+ * @summary Unset default WHOIS profile
6178
+ * @param {number} whoisId WHOIS ID
6179
+ * @param {*} [options] Override http request option.
6180
+ * @throws {RequiredError}
6181
+ * @memberof DomainsWHOISApi
6182
+ */
6183
+ unsetDefaultWHOISProfileV1(whoisId, options) {
6184
+ return (0, exports.DomainsWHOISApiFp)(this.configuration).unsetDefaultWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
6185
+ }
5976
6186
  }
5977
6187
  exports.DomainsWHOISApi = DomainsWHOISApi;
5978
6188
  /**
@@ -19785,7 +19995,7 @@ const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
19785
19995
  };
19786
19996
  }),
19787
19997
  /**
19788
- * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
19998
+ * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. This is a compute-only power state change and does not affect billing. To stop future charges, disable auto-renewal on the owning subscription. Use this endpoint to power off running VPS instances.
19789
19999
  * @summary Stop virtual machine
19790
20000
  * @param {number} virtualMachineId Virtual Machine ID
19791
20001
  * @param {*} [options] Override http request option.
@@ -20045,7 +20255,7 @@ const VPSVirtualMachineApiFp = function (configuration) {
20045
20255
  });
20046
20256
  },
20047
20257
  /**
20048
- * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
20258
+ * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. This is a compute-only power state change and does not affect billing. To stop future charges, disable auto-renewal on the owning subscription. Use this endpoint to power off running VPS instances.
20049
20259
  * @summary Stop virtual machine
20050
20260
  * @param {number} virtualMachineId Virtual Machine ID
20051
20261
  * @param {*} [options] Override http request option.
@@ -20218,7 +20428,7 @@ const VPSVirtualMachineApiFactory = function (configuration, basePath, axios) {
20218
20428
  return localVarFp.startVirtualMachineV1(virtualMachineId, options).then((request) => request(axios, basePath));
20219
20429
  },
20220
20430
  /**
20221
- * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
20431
+ * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. This is a compute-only power state change and does not affect billing. To stop future charges, disable auto-renewal on the owning subscription. Use this endpoint to power off running VPS instances.
20222
20432
  * @summary Stop virtual machine
20223
20433
  * @param {number} virtualMachineId Virtual Machine ID
20224
20434
  * @param {*} [options] Override http request option.
@@ -20400,7 +20610,7 @@ class VPSVirtualMachineApi extends base_1.BaseAPI {
20400
20610
  return (0, exports.VPSVirtualMachineApiFp)(this.configuration).startVirtualMachineV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
20401
20611
  }
20402
20612
  /**
20403
- * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
20613
+ * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. This is a compute-only power state change and does not affect billing. To stop future charges, disable auto-renewal on the owning subscription. Use this endpoint to power off running VPS instances.
20404
20614
  * @summary Stop virtual machine
20405
20615
  * @param {number} virtualMachineId Virtual Machine ID
20406
20616
  * @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: 1.22.0
4
+ * API Version: 1.24.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: 1.22.0
7
+ * API Version: 1.24.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: 1.22.0
4
+ * API Version: 1.24.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: 1.22.0
7
+ * API Version: 1.24.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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.22.0
4
+ * API Version: 1.24.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
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.22.0
7
+ * API Version: 1.24.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/1.21.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
19
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.23.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**