hostinger-api-sdk 0.0.4 → 0.0.7

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: 0.0.17
6
+ * API Version: 0.0.24
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
@@ -270,7 +270,7 @@ export class BillingCatalogApi extends BaseAPI {
270
270
  export const BillingOrdersApiAxiosParamCreator = function (configuration) {
271
271
  return {
272
272
  /**
273
- * This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatically renewal.
273
+ * This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
274
274
  * @summary Create new service order
275
275
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
276
276
  * @param {*} [options] Override http request option.
@@ -312,7 +312,7 @@ export const BillingOrdersApiFp = function (configuration) {
312
312
  const localVarAxiosParamCreator = BillingOrdersApiAxiosParamCreator(configuration);
313
313
  return {
314
314
  /**
315
- * This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatically renewal.
315
+ * This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
316
316
  * @summary Create new service order
317
317
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
318
318
  * @param {*} [options] Override http request option.
@@ -336,7 +336,7 @@ export const BillingOrdersApiFactory = function (configuration, basePath, axios)
336
336
  const localVarFp = BillingOrdersApiFp(configuration);
337
337
  return {
338
338
  /**
339
- * This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatically renewal.
339
+ * This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
340
340
  * @summary Create new service order
341
341
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
342
342
  * @param {*} [options] Override http request option.
@@ -355,7 +355,7 @@ export const BillingOrdersApiFactory = function (configuration, basePath, axios)
355
355
  */
356
356
  export class BillingOrdersApi extends BaseAPI {
357
357
  /**
358
- * This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatically renewal.
358
+ * This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
359
359
  * @summary Create new service order
360
360
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
361
361
  * @param {*} [options] Override http request option.
@@ -855,7 +855,7 @@ export const DNSSnapshotApiAxiosParamCreator = function (configuration) {
855
855
  assertParamExists('restoreSnapshotV1', 'domain', domain);
856
856
  // verify required parameter 'snapshotId' is not null or undefined
857
857
  assertParamExists('restoreSnapshotV1', 'snapshotId', snapshotId);
858
- const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}`
858
+ const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}/restore`
859
859
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
860
860
  .replace(`{${"snapshotId"}}`, encodeURIComponent(String(snapshotId)));
861
861
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1027,7 +1027,7 @@ export class DNSSnapshotApi extends BaseAPI {
1027
1027
  export const DNSZoneApiAxiosParamCreator = function (configuration) {
1028
1028
  return {
1029
1029
  /**
1030
- * This endpoint deletes selected DNS records for the selected domain.
1030
+ * This endpoint deletes DNS records for the selected domain. To filter which records to delete, add the `name` of the record and `type` to the filter. Multiple filters can be provided with single request. If you have multiple records with the same name and type, and you want to delete only part of them, refer to the `Update zone records` endpoint.
1031
1031
  * @summary Delete zone records
1032
1032
  * @param {string} domain Domain name
1033
1033
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -1133,7 +1133,7 @@ export const DNSZoneApiAxiosParamCreator = function (configuration) {
1133
1133
  };
1134
1134
  }),
1135
1135
  /**
1136
- * This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
1136
+ * This endpoint updates DNS records for the selected domain. Using `overwrite = true` will replace existing records with the provided ones. Otherwise existing records will be updated and new records will be added.
1137
1137
  * @summary Update zone records
1138
1138
  * @param {string} domain Domain name
1139
1139
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -1216,7 +1216,7 @@ export const DNSZoneApiFp = function (configuration) {
1216
1216
  const localVarAxiosParamCreator = DNSZoneApiAxiosParamCreator(configuration);
1217
1217
  return {
1218
1218
  /**
1219
- * This endpoint deletes selected DNS records for the selected domain.
1219
+ * This endpoint deletes DNS records for the selected domain. To filter which records to delete, add the `name` of the record and `type` to the filter. Multiple filters can be provided with single request. If you have multiple records with the same name and type, and you want to delete only part of them, refer to the `Update zone records` endpoint.
1220
1220
  * @summary Delete zone records
1221
1221
  * @param {string} domain Domain name
1222
1222
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -1263,7 +1263,7 @@ export const DNSZoneApiFp = function (configuration) {
1263
1263
  });
1264
1264
  },
1265
1265
  /**
1266
- * This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
1266
+ * This endpoint updates DNS records for the selected domain. Using `overwrite = true` will replace existing records with the provided ones. Otherwise existing records will be updated and new records will be added.
1267
1267
  * @summary Update zone records
1268
1268
  * @param {string} domain Domain name
1269
1269
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -1304,7 +1304,7 @@ export const DNSZoneApiFactory = function (configuration, basePath, axios) {
1304
1304
  const localVarFp = DNSZoneApiFp(configuration);
1305
1305
  return {
1306
1306
  /**
1307
- * This endpoint deletes selected DNS records for the selected domain.
1307
+ * This endpoint deletes DNS records for the selected domain. To filter which records to delete, add the `name` of the record and `type` to the filter. Multiple filters can be provided with single request. If you have multiple records with the same name and type, and you want to delete only part of them, refer to the `Update zone records` endpoint.
1308
1308
  * @summary Delete zone records
1309
1309
  * @param {string} domain Domain name
1310
1310
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -1336,7 +1336,7 @@ export const DNSZoneApiFactory = function (configuration, basePath, axios) {
1336
1336
  return localVarFp.resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(axios, basePath));
1337
1337
  },
1338
1338
  /**
1339
- * This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
1339
+ * This endpoint updates DNS records for the selected domain. Using `overwrite = true` will replace existing records with the provided ones. Otherwise existing records will be updated and new records will be added.
1340
1340
  * @summary Update zone records
1341
1341
  * @param {string} domain Domain name
1342
1342
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -1367,7 +1367,7 @@ export const DNSZoneApiFactory = function (configuration, basePath, axios) {
1367
1367
  */
1368
1368
  export class DNSZoneApi extends BaseAPI {
1369
1369
  /**
1370
- * This endpoint deletes selected DNS records for the selected domain.
1370
+ * This endpoint deletes DNS records for the selected domain. To filter which records to delete, add the `name` of the record and `type` to the filter. Multiple filters can be provided with single request. If you have multiple records with the same name and type, and you want to delete only part of them, refer to the `Update zone records` endpoint.
1371
1371
  * @summary Delete zone records
1372
1372
  * @param {string} domain Domain name
1373
1373
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -1402,7 +1402,7 @@ export class DNSZoneApi extends BaseAPI {
1402
1402
  return DNSZoneApiFp(this.configuration).resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(this.axios, this.basePath));
1403
1403
  }
1404
1404
  /**
1405
- * This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
1405
+ * This endpoint updates DNS records for the selected domain. Using `overwrite = true` will replace existing records with the provided ones. Otherwise existing records will be updated and new records will be added.
1406
1406
  * @summary Update zone records
1407
1407
  * @param {string} domain Domain name
1408
1408
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 0.0.17
4
+ * API Version: 0.0.24
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: 0.0.17
6
+ * API Version: 0.0.24
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: 0.0.17
4
+ * API Version: 0.0.24
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: 0.0.17
6
+ * API Version: 0.0.24
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: 0.0.17
4
+ * API Version: 0.0.24
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: 0.0.17
6
+ * API Version: 0.0.24
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-api-sdk-typescript/0.0.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-api-sdk-typescript/0.0.7" }, (_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: 0.0.17
4
+ * API Version: 0.0.24
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: 0.0.17
6
+ * API Version: 0.0.24
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: 0.0.17
4
+ * API Version: 0.0.24
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: 0.0.17
7
+ * API Version: 0.0.24
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/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 0.0.17
6
+ * API Version: 0.0.24
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": "0.0.4",
3
+ "version": "0.0.7",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {