hostinger-api-sdk 0.0.4 → 0.0.6

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.
@@ -14,7 +14,7 @@ jobs:
14
14
 
15
15
  - name: Bump version and push tag
16
16
  id: bump
17
- uses: hennejg/github-tag-action@v4.3.1
17
+ uses: mathieudutour/github-tag-action@v6.2
18
18
  with:
19
19
  github_token: ${{ secrets.GITHUB_TOKEN }}
20
20
  release_branches: main
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## hostinger-api-sdk@0.0.4
1
+ ## hostinger-api-sdk@0.0.6
2
2
 
3
3
  For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install hostinger-api-sdk@0.0.4 --save
8
+ npm install hostinger-api-sdk@0.0.6 --save
9
9
  ```
package/api.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.20
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
@@ -658,11 +658,11 @@ export interface DNSV1SnapshotSnapshotWithContentResource {
658
658
  */
659
659
  'reason'?: string;
660
660
  /**
661
- * Contents of the DNS zone
662
- * @type {string}
661
+ * Array of [`DNS.V1.Zone.RecordResource`](#model/dnsv1zonerecordresource)
662
+ * @type {Array<DNSV1ZoneRecordResource>}
663
663
  * @memberof DNSV1SnapshotSnapshotWithContentResource
664
664
  */
665
- 'snapshot'?: string;
665
+ 'snapshot'?: Array<DNSV1ZoneRecordResource>;
666
666
  /**
667
667
  *
668
668
  * @type {string}
@@ -694,13 +694,13 @@ export interface DNSV1ZoneDestroyRequestFiltersInner {
694
694
  * @type {string}
695
695
  * @memberof DNSV1ZoneDestroyRequestFiltersInner
696
696
  */
697
- 'name'?: string;
697
+ 'name': string;
698
698
  /**
699
699
  * Type of the record
700
700
  * @type {string}
701
701
  * @memberof DNSV1ZoneDestroyRequestFiltersInner
702
702
  */
703
- 'type'?: DNSV1ZoneDestroyRequestFiltersInnerTypeEnum;
703
+ 'type': DNSV1ZoneDestroyRequestFiltersInnerTypeEnum;
704
704
  }
705
705
 
706
706
  export const DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = {
@@ -2124,7 +2124,7 @@ export class BillingCatalogApi extends BaseAPI {
2124
2124
  export const BillingOrdersApiAxiosParamCreator = function (configuration?: Configuration) {
2125
2125
  return {
2126
2126
  /**
2127
- * 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.
2127
+ * 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.
2128
2128
  * @summary Create new service order
2129
2129
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2130
2130
  * @param {*} [options] Override http request option.
@@ -2174,7 +2174,7 @@ export const BillingOrdersApiFp = function(configuration?: Configuration) {
2174
2174
  const localVarAxiosParamCreator = BillingOrdersApiAxiosParamCreator(configuration)
2175
2175
  return {
2176
2176
  /**
2177
- * 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.
2177
+ * 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.
2178
2178
  * @summary Create new service order
2179
2179
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2180
2180
  * @param {*} [options] Override http request option.
@@ -2196,7 +2196,7 @@ export const BillingOrdersApiFactory = function (configuration?: Configuration,
2196
2196
  const localVarFp = BillingOrdersApiFp(configuration)
2197
2197
  return {
2198
2198
  /**
2199
- * 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.
2199
+ * 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.
2200
2200
  * @summary Create new service order
2201
2201
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2202
2202
  * @param {*} [options] Override http request option.
@@ -2216,7 +2216,7 @@ export const BillingOrdersApiFactory = function (configuration?: Configuration,
2216
2216
  */
2217
2217
  export class BillingOrdersApi extends BaseAPI {
2218
2218
  /**
2219
- * 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.
2219
+ * 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.
2220
2220
  * @summary Create new service order
2221
2221
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2222
2222
  * @param {*} [options] Override http request option.
@@ -2762,7 +2762,7 @@ export const DNSSnapshotApiAxiosParamCreator = function (configuration?: Configu
2762
2762
  assertParamExists('restoreSnapshotV1', 'domain', domain)
2763
2763
  // verify required parameter 'snapshotId' is not null or undefined
2764
2764
  assertParamExists('restoreSnapshotV1', 'snapshotId', snapshotId)
2765
- const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}`
2765
+ const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}/restore`
2766
2766
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
2767
2767
  .replace(`{${"snapshotId"}}`, encodeURIComponent(String(snapshotId)));
2768
2768
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -2939,7 +2939,7 @@ export class DNSSnapshotApi extends BaseAPI {
2939
2939
  export const DNSZoneApiAxiosParamCreator = function (configuration?: Configuration) {
2940
2940
  return {
2941
2941
  /**
2942
- * This endpoint deletes selected DNS records for the selected domain.
2942
+ * 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.
2943
2943
  * @summary Delete zone records
2944
2944
  * @param {string} domain Domain name
2945
2945
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -3065,7 +3065,7 @@ export const DNSZoneApiAxiosParamCreator = function (configuration?: Configurati
3065
3065
  };
3066
3066
  },
3067
3067
  /**
3068
- * 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.
3068
+ * 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.
3069
3069
  * @summary Update zone records
3070
3070
  * @param {string} domain Domain name
3071
3071
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -3163,7 +3163,7 @@ export const DNSZoneApiFp = function(configuration?: Configuration) {
3163
3163
  const localVarAxiosParamCreator = DNSZoneApiAxiosParamCreator(configuration)
3164
3164
  return {
3165
3165
  /**
3166
- * This endpoint deletes selected DNS records for the selected domain.
3166
+ * 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.
3167
3167
  * @summary Delete zone records
3168
3168
  * @param {string} domain Domain name
3169
3169
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -3201,7 +3201,7 @@ export const DNSZoneApiFp = function(configuration?: Configuration) {
3201
3201
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3202
3202
  },
3203
3203
  /**
3204
- * 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.
3204
+ * 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.
3205
3205
  * @summary Update zone records
3206
3206
  * @param {string} domain Domain name
3207
3207
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -3237,7 +3237,7 @@ export const DNSZoneApiFactory = function (configuration?: Configuration, basePa
3237
3237
  const localVarFp = DNSZoneApiFp(configuration)
3238
3238
  return {
3239
3239
  /**
3240
- * This endpoint deletes selected DNS records for the selected domain.
3240
+ * 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.
3241
3241
  * @summary Delete zone records
3242
3242
  * @param {string} domain Domain name
3243
3243
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -3269,7 +3269,7 @@ export const DNSZoneApiFactory = function (configuration?: Configuration, basePa
3269
3269
  return localVarFp.resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(axios, basePath));
3270
3270
  },
3271
3271
  /**
3272
- * 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.
3272
+ * 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.
3273
3273
  * @summary Update zone records
3274
3274
  * @param {string} domain Domain name
3275
3275
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -3301,7 +3301,7 @@ export const DNSZoneApiFactory = function (configuration?: Configuration, basePa
3301
3301
  */
3302
3302
  export class DNSZoneApi extends BaseAPI {
3303
3303
  /**
3304
- * This endpoint deletes selected DNS records for the selected domain.
3304
+ * 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.
3305
3305
  * @summary Delete zone records
3306
3306
  * @param {string} domain Domain name
3307
3307
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -3339,7 +3339,7 @@ export class DNSZoneApi extends BaseAPI {
3339
3339
  }
3340
3340
 
3341
3341
  /**
3342
- * 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.
3342
+ * 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.
3343
3343
  * @summary Update zone records
3344
3344
  * @param {string} domain Domain name
3345
3345
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
package/base.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.20
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/common.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.20
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/configuration.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.20
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
@@ -48,7 +48,7 @@ export class Configuration {
48
48
  this.baseOptions = {
49
49
  ...param.baseOptions,
50
50
  headers: {
51
- 'User-Agent': "hostinger-api-sdk-typescript/0.0.4",
51
+ 'User-Agent': "hostinger-api-sdk-typescript/0.0.6",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };
package/dist/api.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.20
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
@@ -635,11 +635,11 @@ export interface DNSV1SnapshotSnapshotWithContentResource {
635
635
  */
636
636
  'reason'?: string;
637
637
  /**
638
- * Contents of the DNS zone
639
- * @type {string}
638
+ * Array of [`DNS.V1.Zone.RecordResource`](#model/dnsv1zonerecordresource)
639
+ * @type {Array<DNSV1ZoneRecordResource>}
640
640
  * @memberof DNSV1SnapshotSnapshotWithContentResource
641
641
  */
642
- 'snapshot'?: string;
642
+ 'snapshot'?: Array<DNSV1ZoneRecordResource>;
643
643
  /**
644
644
  *
645
645
  * @type {string}
@@ -671,13 +671,13 @@ export interface DNSV1ZoneDestroyRequestFiltersInner {
671
671
  * @type {string}
672
672
  * @memberof DNSV1ZoneDestroyRequestFiltersInner
673
673
  */
674
- 'name'?: string;
674
+ 'name': string;
675
675
  /**
676
676
  * Type of the record
677
677
  * @type {string}
678
678
  * @memberof DNSV1ZoneDestroyRequestFiltersInner
679
679
  */
680
- 'type'?: DNSV1ZoneDestroyRequestFiltersInnerTypeEnum;
680
+ 'type': DNSV1ZoneDestroyRequestFiltersInnerTypeEnum;
681
681
  }
682
682
  export declare const DNSV1ZoneDestroyRequestFiltersInnerTypeEnum: {
683
683
  readonly A: "A";
@@ -2013,7 +2013,7 @@ export declare class BillingCatalogApi extends BaseAPI {
2013
2013
  */
2014
2014
  export declare const BillingOrdersApiAxiosParamCreator: (configuration?: Configuration) => {
2015
2015
  /**
2016
- * 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.
2016
+ * 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.
2017
2017
  * @summary Create new service order
2018
2018
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2019
2019
  * @param {*} [options] Override http request option.
@@ -2027,7 +2027,7 @@ export declare const BillingOrdersApiAxiosParamCreator: (configuration?: Configu
2027
2027
  */
2028
2028
  export declare const BillingOrdersApiFp: (configuration?: Configuration) => {
2029
2029
  /**
2030
- * 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.
2030
+ * 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.
2031
2031
  * @summary Create new service order
2032
2032
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2033
2033
  * @param {*} [options] Override http request option.
@@ -2041,7 +2041,7 @@ export declare const BillingOrdersApiFp: (configuration?: Configuration) => {
2041
2041
  */
2042
2042
  export declare const BillingOrdersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2043
2043
  /**
2044
- * 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.
2044
+ * 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.
2045
2045
  * @summary Create new service order
2046
2046
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2047
2047
  * @param {*} [options] Override http request option.
@@ -2057,7 +2057,7 @@ export declare const BillingOrdersApiFactory: (configuration?: Configuration, ba
2057
2057
  */
2058
2058
  export declare class BillingOrdersApi extends BaseAPI {
2059
2059
  /**
2060
- * 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.
2060
+ * 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.
2061
2061
  * @summary Create new service order
2062
2062
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2063
2063
  * @param {*} [options] Override http request option.
@@ -2418,7 +2418,7 @@ export declare class DNSSnapshotApi extends BaseAPI {
2418
2418
  */
2419
2419
  export declare const DNSZoneApiAxiosParamCreator: (configuration?: Configuration) => {
2420
2420
  /**
2421
- * This endpoint deletes selected DNS records for the selected domain.
2421
+ * 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.
2422
2422
  * @summary Delete zone records
2423
2423
  * @param {string} domain Domain name
2424
2424
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -2444,7 +2444,7 @@ export declare const DNSZoneApiAxiosParamCreator: (configuration?: Configuration
2444
2444
  */
2445
2445
  resetZoneRecordsV1: (domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2446
2446
  /**
2447
- * 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.
2447
+ * 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.
2448
2448
  * @summary Update zone records
2449
2449
  * @param {string} domain Domain name
2450
2450
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -2468,7 +2468,7 @@ export declare const DNSZoneApiAxiosParamCreator: (configuration?: Configuration
2468
2468
  */
2469
2469
  export declare const DNSZoneApiFp: (configuration?: Configuration) => {
2470
2470
  /**
2471
- * This endpoint deletes selected DNS records for the selected domain.
2471
+ * 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.
2472
2472
  * @summary Delete zone records
2473
2473
  * @param {string} domain Domain name
2474
2474
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -2494,7 +2494,7 @@ export declare const DNSZoneApiFp: (configuration?: Configuration) => {
2494
2494
  */
2495
2495
  resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
2496
2496
  /**
2497
- * 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.
2497
+ * 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.
2498
2498
  * @summary Update zone records
2499
2499
  * @param {string} domain Domain name
2500
2500
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -2518,7 +2518,7 @@ export declare const DNSZoneApiFp: (configuration?: Configuration) => {
2518
2518
  */
2519
2519
  export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2520
2520
  /**
2521
- * This endpoint deletes selected DNS records for the selected domain.
2521
+ * 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.
2522
2522
  * @summary Delete zone records
2523
2523
  * @param {string} domain Domain name
2524
2524
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -2544,7 +2544,7 @@ export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath
2544
2544
  */
2545
2545
  resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
2546
2546
  /**
2547
- * 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.
2547
+ * 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.
2548
2548
  * @summary Update zone records
2549
2549
  * @param {string} domain Domain name
2550
2550
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -2570,7 +2570,7 @@ export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath
2570
2570
  */
2571
2571
  export declare class DNSZoneApi extends BaseAPI {
2572
2572
  /**
2573
- * This endpoint deletes selected DNS records for the selected domain.
2573
+ * 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.
2574
2574
  * @summary Delete zone records
2575
2575
  * @param {string} domain Domain name
2576
2576
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -2599,7 +2599,7 @@ export declare class DNSZoneApi extends BaseAPI {
2599
2599
  */
2600
2600
  resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any>>;
2601
2601
  /**
2602
- * 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.
2602
+ * 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.
2603
2603
  * @summary Update zone records
2604
2604
  * @param {string} domain Domain name
2605
2605
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
package/dist/api.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.20
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
@@ -278,7 +278,7 @@ exports.BillingCatalogApi = BillingCatalogApi;
278
278
  const BillingOrdersApiAxiosParamCreator = function (configuration) {
279
279
  return {
280
280
  /**
281
- * 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.
281
+ * 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.
282
282
  * @summary Create new service order
283
283
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
284
284
  * @param {*} [options] Override http request option.
@@ -321,7 +321,7 @@ const BillingOrdersApiFp = function (configuration) {
321
321
  const localVarAxiosParamCreator = (0, exports.BillingOrdersApiAxiosParamCreator)(configuration);
322
322
  return {
323
323
  /**
324
- * 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.
324
+ * 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.
325
325
  * @summary Create new service order
326
326
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
327
327
  * @param {*} [options] Override http request option.
@@ -346,7 +346,7 @@ const BillingOrdersApiFactory = function (configuration, basePath, axios) {
346
346
  const localVarFp = (0, exports.BillingOrdersApiFp)(configuration);
347
347
  return {
348
348
  /**
349
- * 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.
349
+ * 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.
350
350
  * @summary Create new service order
351
351
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
352
352
  * @param {*} [options] Override http request option.
@@ -366,7 +366,7 @@ exports.BillingOrdersApiFactory = BillingOrdersApiFactory;
366
366
  */
367
367
  class BillingOrdersApi extends base_1.BaseAPI {
368
368
  /**
369
- * 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.
369
+ * 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.
370
370
  * @summary Create new service order
371
371
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
372
372
  * @param {*} [options] Override http request option.
@@ -875,7 +875,7 @@ const DNSSnapshotApiAxiosParamCreator = function (configuration) {
875
875
  (0, common_1.assertParamExists)('restoreSnapshotV1', 'domain', domain);
876
876
  // verify required parameter 'snapshotId' is not null or undefined
877
877
  (0, common_1.assertParamExists)('restoreSnapshotV1', 'snapshotId', snapshotId);
878
- const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}`
878
+ const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}/restore`
879
879
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
880
880
  .replace(`{${"snapshotId"}}`, encodeURIComponent(String(snapshotId)));
881
881
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1051,7 +1051,7 @@ exports.DNSSnapshotApi = DNSSnapshotApi;
1051
1051
  const DNSZoneApiAxiosParamCreator = function (configuration) {
1052
1052
  return {
1053
1053
  /**
1054
- * This endpoint deletes selected DNS records for the selected domain.
1054
+ * 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.
1055
1055
  * @summary Delete zone records
1056
1056
  * @param {string} domain Domain name
1057
1057
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -1157,7 +1157,7 @@ const DNSZoneApiAxiosParamCreator = function (configuration) {
1157
1157
  };
1158
1158
  }),
1159
1159
  /**
1160
- * 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.
1160
+ * 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.
1161
1161
  * @summary Update zone records
1162
1162
  * @param {string} domain Domain name
1163
1163
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -1241,7 +1241,7 @@ const DNSZoneApiFp = function (configuration) {
1241
1241
  const localVarAxiosParamCreator = (0, exports.DNSZoneApiAxiosParamCreator)(configuration);
1242
1242
  return {
1243
1243
  /**
1244
- * This endpoint deletes selected DNS records for the selected domain.
1244
+ * 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.
1245
1245
  * @summary Delete zone records
1246
1246
  * @param {string} domain Domain name
1247
1247
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -1288,7 +1288,7 @@ const DNSZoneApiFp = function (configuration) {
1288
1288
  });
1289
1289
  },
1290
1290
  /**
1291
- * 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.
1291
+ * 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.
1292
1292
  * @summary Update zone records
1293
1293
  * @param {string} domain Domain name
1294
1294
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -1330,7 +1330,7 @@ const DNSZoneApiFactory = function (configuration, basePath, axios) {
1330
1330
  const localVarFp = (0, exports.DNSZoneApiFp)(configuration);
1331
1331
  return {
1332
1332
  /**
1333
- * This endpoint deletes selected DNS records for the selected domain.
1333
+ * 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.
1334
1334
  * @summary Delete zone records
1335
1335
  * @param {string} domain Domain name
1336
1336
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -1362,7 +1362,7 @@ const DNSZoneApiFactory = function (configuration, basePath, axios) {
1362
1362
  return localVarFp.resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(axios, basePath));
1363
1363
  },
1364
1364
  /**
1365
- * 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.
1365
+ * 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.
1366
1366
  * @summary Update zone records
1367
1367
  * @param {string} domain Domain name
1368
1368
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -1394,7 +1394,7 @@ exports.DNSZoneApiFactory = DNSZoneApiFactory;
1394
1394
  */
1395
1395
  class DNSZoneApi extends base_1.BaseAPI {
1396
1396
  /**
1397
- * This endpoint deletes selected DNS records for the selected domain.
1397
+ * 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.
1398
1398
  * @summary Delete zone records
1399
1399
  * @param {string} domain Domain name
1400
1400
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -1429,7 +1429,7 @@ class DNSZoneApi extends base_1.BaseAPI {
1429
1429
  return (0, exports.DNSZoneApiFp)(this.configuration).resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(this.axios, this.basePath));
1430
1430
  }
1431
1431
  /**
1432
- * 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.
1432
+ * 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.
1433
1433
  * @summary Update zone records
1434
1434
  * @param {string} domain Domain name
1435
1435
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
package/dist/base.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.20
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: 0.0.17
7
+ * API Version: 0.0.20
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: 0.0.17
4
+ * API Version: 0.0.20
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: 0.0.17
7
+ * API Version: 0.0.20
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: 0.0.17
4
+ * API Version: 0.0.20
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: 0.0.17
7
+ * API Version: 0.0.20
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-api-sdk-typescript/0.0.4" }, (_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-api-sdk-typescript/0.0.6" }, (_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: 0.0.17
4
+ * API Version: 0.0.20
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
@@ -635,11 +635,11 @@ export interface DNSV1SnapshotSnapshotWithContentResource {
635
635
  */
636
636
  'reason'?: string;
637
637
  /**
638
- * Contents of the DNS zone
639
- * @type {string}
638
+ * Array of [`DNS.V1.Zone.RecordResource`](#model/dnsv1zonerecordresource)
639
+ * @type {Array<DNSV1ZoneRecordResource>}
640
640
  * @memberof DNSV1SnapshotSnapshotWithContentResource
641
641
  */
642
- 'snapshot'?: string;
642
+ 'snapshot'?: Array<DNSV1ZoneRecordResource>;
643
643
  /**
644
644
  *
645
645
  * @type {string}
@@ -671,13 +671,13 @@ export interface DNSV1ZoneDestroyRequestFiltersInner {
671
671
  * @type {string}
672
672
  * @memberof DNSV1ZoneDestroyRequestFiltersInner
673
673
  */
674
- 'name'?: string;
674
+ 'name': string;
675
675
  /**
676
676
  * Type of the record
677
677
  * @type {string}
678
678
  * @memberof DNSV1ZoneDestroyRequestFiltersInner
679
679
  */
680
- 'type'?: DNSV1ZoneDestroyRequestFiltersInnerTypeEnum;
680
+ 'type': DNSV1ZoneDestroyRequestFiltersInnerTypeEnum;
681
681
  }
682
682
  export declare const DNSV1ZoneDestroyRequestFiltersInnerTypeEnum: {
683
683
  readonly A: "A";
@@ -2013,7 +2013,7 @@ export declare class BillingCatalogApi extends BaseAPI {
2013
2013
  */
2014
2014
  export declare const BillingOrdersApiAxiosParamCreator: (configuration?: Configuration) => {
2015
2015
  /**
2016
- * 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.
2016
+ * 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.
2017
2017
  * @summary Create new service order
2018
2018
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2019
2019
  * @param {*} [options] Override http request option.
@@ -2027,7 +2027,7 @@ export declare const BillingOrdersApiAxiosParamCreator: (configuration?: Configu
2027
2027
  */
2028
2028
  export declare const BillingOrdersApiFp: (configuration?: Configuration) => {
2029
2029
  /**
2030
- * 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.
2030
+ * 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.
2031
2031
  * @summary Create new service order
2032
2032
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2033
2033
  * @param {*} [options] Override http request option.
@@ -2041,7 +2041,7 @@ export declare const BillingOrdersApiFp: (configuration?: Configuration) => {
2041
2041
  */
2042
2042
  export declare const BillingOrdersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2043
2043
  /**
2044
- * 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.
2044
+ * 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.
2045
2045
  * @summary Create new service order
2046
2046
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2047
2047
  * @param {*} [options] Override http request option.
@@ -2057,7 +2057,7 @@ export declare const BillingOrdersApiFactory: (configuration?: Configuration, ba
2057
2057
  */
2058
2058
  export declare class BillingOrdersApi extends BaseAPI {
2059
2059
  /**
2060
- * 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.
2060
+ * 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.
2061
2061
  * @summary Create new service order
2062
2062
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2063
2063
  * @param {*} [options] Override http request option.
@@ -2418,7 +2418,7 @@ export declare class DNSSnapshotApi extends BaseAPI {
2418
2418
  */
2419
2419
  export declare const DNSZoneApiAxiosParamCreator: (configuration?: Configuration) => {
2420
2420
  /**
2421
- * This endpoint deletes selected DNS records for the selected domain.
2421
+ * 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.
2422
2422
  * @summary Delete zone records
2423
2423
  * @param {string} domain Domain name
2424
2424
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -2444,7 +2444,7 @@ export declare const DNSZoneApiAxiosParamCreator: (configuration?: Configuration
2444
2444
  */
2445
2445
  resetZoneRecordsV1: (domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2446
2446
  /**
2447
- * 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.
2447
+ * 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.
2448
2448
  * @summary Update zone records
2449
2449
  * @param {string} domain Domain name
2450
2450
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -2468,7 +2468,7 @@ export declare const DNSZoneApiAxiosParamCreator: (configuration?: Configuration
2468
2468
  */
2469
2469
  export declare const DNSZoneApiFp: (configuration?: Configuration) => {
2470
2470
  /**
2471
- * This endpoint deletes selected DNS records for the selected domain.
2471
+ * 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.
2472
2472
  * @summary Delete zone records
2473
2473
  * @param {string} domain Domain name
2474
2474
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -2494,7 +2494,7 @@ export declare const DNSZoneApiFp: (configuration?: Configuration) => {
2494
2494
  */
2495
2495
  resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
2496
2496
  /**
2497
- * 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.
2497
+ * 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.
2498
2498
  * @summary Update zone records
2499
2499
  * @param {string} domain Domain name
2500
2500
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -2518,7 +2518,7 @@ export declare const DNSZoneApiFp: (configuration?: Configuration) => {
2518
2518
  */
2519
2519
  export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2520
2520
  /**
2521
- * This endpoint deletes selected DNS records for the selected domain.
2521
+ * 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.
2522
2522
  * @summary Delete zone records
2523
2523
  * @param {string} domain Domain name
2524
2524
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -2544,7 +2544,7 @@ export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath
2544
2544
  */
2545
2545
  resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
2546
2546
  /**
2547
- * 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.
2547
+ * 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.
2548
2548
  * @summary Update zone records
2549
2549
  * @param {string} domain Domain name
2550
2550
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -2570,7 +2570,7 @@ export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath
2570
2570
  */
2571
2571
  export declare class DNSZoneApi extends BaseAPI {
2572
2572
  /**
2573
- * This endpoint deletes selected DNS records for the selected domain.
2573
+ * 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.
2574
2574
  * @summary Delete zone records
2575
2575
  * @param {string} domain Domain name
2576
2576
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -2599,7 +2599,7 @@ export declare class DNSZoneApi extends BaseAPI {
2599
2599
  */
2600
2600
  resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any>>;
2601
2601
  /**
2602
- * 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.
2602
+ * 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.
2603
2603
  * @summary Update zone records
2604
2604
  * @param {string} domain Domain name
2605
2605
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
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.20
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.20
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.20
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.20
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.20
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.20
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.20
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.6" }, (_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.20
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.20
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.20
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.20
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.20
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.6",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {