hostinger-api-sdk 0.0.3 → 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/CODEOWNERS ADDED
@@ -0,0 +1 @@
1
+ * @hostinger/vps-team-dev
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## hostinger-api-sdk@0.0.3
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.3 --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.16
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 = {
@@ -1966,9 +1966,21 @@ export interface VPSV1VirtualMachineVirtualMachineResource {
1966
1966
 
1967
1967
  export const VPSV1VirtualMachineVirtualMachineResourceStateEnum = {
1968
1968
  Running: 'running',
1969
+ Starting: 'starting',
1970
+ Stopping: 'stopping',
1969
1971
  Stopped: 'stopped',
1970
1972
  Creating: 'creating',
1971
- Initial: 'initial'
1973
+ Initial: 'initial',
1974
+ Error: 'error',
1975
+ Suspending: 'suspending',
1976
+ Unsuspending: 'unsuspending',
1977
+ Suspended: 'suspended',
1978
+ Destroying: 'destroying',
1979
+ Destroyed: 'destroyed',
1980
+ Recreating: 'recreating',
1981
+ Restoring: 'restoring',
1982
+ Recovery: 'recovery',
1983
+ StoppingRecovery: 'stopping_recovery'
1972
1984
  } as const;
1973
1985
 
1974
1986
  export type VPSV1VirtualMachineVirtualMachineResourceStateEnum = typeof VPSV1VirtualMachineVirtualMachineResourceStateEnum[keyof typeof VPSV1VirtualMachineVirtualMachineResourceStateEnum];
@@ -2112,7 +2124,7 @@ export class BillingCatalogApi extends BaseAPI {
2112
2124
  export const BillingOrdersApiAxiosParamCreator = function (configuration?: Configuration) {
2113
2125
  return {
2114
2126
  /**
2115
- * 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.
2116
2128
  * @summary Create new service order
2117
2129
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2118
2130
  * @param {*} [options] Override http request option.
@@ -2162,7 +2174,7 @@ export const BillingOrdersApiFp = function(configuration?: Configuration) {
2162
2174
  const localVarAxiosParamCreator = BillingOrdersApiAxiosParamCreator(configuration)
2163
2175
  return {
2164
2176
  /**
2165
- * 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.
2166
2178
  * @summary Create new service order
2167
2179
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2168
2180
  * @param {*} [options] Override http request option.
@@ -2184,7 +2196,7 @@ export const BillingOrdersApiFactory = function (configuration?: Configuration,
2184
2196
  const localVarFp = BillingOrdersApiFp(configuration)
2185
2197
  return {
2186
2198
  /**
2187
- * 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.
2188
2200
  * @summary Create new service order
2189
2201
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2190
2202
  * @param {*} [options] Override http request option.
@@ -2204,7 +2216,7 @@ export const BillingOrdersApiFactory = function (configuration?: Configuration,
2204
2216
  */
2205
2217
  export class BillingOrdersApi extends BaseAPI {
2206
2218
  /**
2207
- * 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.
2208
2220
  * @summary Create new service order
2209
2221
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2210
2222
  * @param {*} [options] Override http request option.
@@ -2750,7 +2762,7 @@ export const DNSSnapshotApiAxiosParamCreator = function (configuration?: Configu
2750
2762
  assertParamExists('restoreSnapshotV1', 'domain', domain)
2751
2763
  // verify required parameter 'snapshotId' is not null or undefined
2752
2764
  assertParamExists('restoreSnapshotV1', 'snapshotId', snapshotId)
2753
- const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}`
2765
+ const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}/restore`
2754
2766
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
2755
2767
  .replace(`{${"snapshotId"}}`, encodeURIComponent(String(snapshotId)));
2756
2768
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -2927,7 +2939,7 @@ export class DNSSnapshotApi extends BaseAPI {
2927
2939
  export const DNSZoneApiAxiosParamCreator = function (configuration?: Configuration) {
2928
2940
  return {
2929
2941
  /**
2930
- * 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.
2931
2943
  * @summary Delete zone records
2932
2944
  * @param {string} domain Domain name
2933
2945
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -3053,7 +3065,7 @@ export const DNSZoneApiAxiosParamCreator = function (configuration?: Configurati
3053
3065
  };
3054
3066
  },
3055
3067
  /**
3056
- * 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.
3057
3069
  * @summary Update zone records
3058
3070
  * @param {string} domain Domain name
3059
3071
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -3151,7 +3163,7 @@ export const DNSZoneApiFp = function(configuration?: Configuration) {
3151
3163
  const localVarAxiosParamCreator = DNSZoneApiAxiosParamCreator(configuration)
3152
3164
  return {
3153
3165
  /**
3154
- * 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.
3155
3167
  * @summary Delete zone records
3156
3168
  * @param {string} domain Domain name
3157
3169
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -3189,7 +3201,7 @@ export const DNSZoneApiFp = function(configuration?: Configuration) {
3189
3201
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3190
3202
  },
3191
3203
  /**
3192
- * 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.
3193
3205
  * @summary Update zone records
3194
3206
  * @param {string} domain Domain name
3195
3207
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -3225,7 +3237,7 @@ export const DNSZoneApiFactory = function (configuration?: Configuration, basePa
3225
3237
  const localVarFp = DNSZoneApiFp(configuration)
3226
3238
  return {
3227
3239
  /**
3228
- * 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.
3229
3241
  * @summary Delete zone records
3230
3242
  * @param {string} domain Domain name
3231
3243
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -3257,7 +3269,7 @@ export const DNSZoneApiFactory = function (configuration?: Configuration, basePa
3257
3269
  return localVarFp.resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(axios, basePath));
3258
3270
  },
3259
3271
  /**
3260
- * 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.
3261
3273
  * @summary Update zone records
3262
3274
  * @param {string} domain Domain name
3263
3275
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -3289,7 +3301,7 @@ export const DNSZoneApiFactory = function (configuration?: Configuration, basePa
3289
3301
  */
3290
3302
  export class DNSZoneApi extends BaseAPI {
3291
3303
  /**
3292
- * 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.
3293
3305
  * @summary Delete zone records
3294
3306
  * @param {string} domain Domain name
3295
3307
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -3327,7 +3339,7 @@ export class DNSZoneApi extends BaseAPI {
3327
3339
  }
3328
3340
 
3329
3341
  /**
3330
- * 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.
3331
3343
  * @summary Update zone records
3332
3344
  * @param {string} domain Domain name
3333
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.16
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.16
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.16
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.3",
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.16
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";
@@ -1912,9 +1912,21 @@ export interface VPSV1VirtualMachineVirtualMachineResource {
1912
1912
  }
1913
1913
  export declare const VPSV1VirtualMachineVirtualMachineResourceStateEnum: {
1914
1914
  readonly Running: "running";
1915
+ readonly Starting: "starting";
1916
+ readonly Stopping: "stopping";
1915
1917
  readonly Stopped: "stopped";
1916
1918
  readonly Creating: "creating";
1917
1919
  readonly Initial: "initial";
1920
+ readonly Error: "error";
1921
+ readonly Suspending: "suspending";
1922
+ readonly Unsuspending: "unsuspending";
1923
+ readonly Suspended: "suspended";
1924
+ readonly Destroying: "destroying";
1925
+ readonly Destroyed: "destroyed";
1926
+ readonly Recreating: "recreating";
1927
+ readonly Restoring: "restoring";
1928
+ readonly Recovery: "recovery";
1929
+ readonly StoppingRecovery: "stopping_recovery";
1918
1930
  };
1919
1931
  export type VPSV1VirtualMachineVirtualMachineResourceStateEnum = typeof VPSV1VirtualMachineVirtualMachineResourceStateEnum[keyof typeof VPSV1VirtualMachineVirtualMachineResourceStateEnum];
1920
1932
  export declare const VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum: {
@@ -2001,7 +2013,7 @@ export declare class BillingCatalogApi extends BaseAPI {
2001
2013
  */
2002
2014
  export declare const BillingOrdersApiAxiosParamCreator: (configuration?: Configuration) => {
2003
2015
  /**
2004
- * 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.
2005
2017
  * @summary Create new service order
2006
2018
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2007
2019
  * @param {*} [options] Override http request option.
@@ -2015,7 +2027,7 @@ export declare const BillingOrdersApiAxiosParamCreator: (configuration?: Configu
2015
2027
  */
2016
2028
  export declare const BillingOrdersApiFp: (configuration?: Configuration) => {
2017
2029
  /**
2018
- * 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.
2019
2031
  * @summary Create new service order
2020
2032
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2021
2033
  * @param {*} [options] Override http request option.
@@ -2029,7 +2041,7 @@ export declare const BillingOrdersApiFp: (configuration?: Configuration) => {
2029
2041
  */
2030
2042
  export declare const BillingOrdersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2031
2043
  /**
2032
- * 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.
2033
2045
  * @summary Create new service order
2034
2046
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2035
2047
  * @param {*} [options] Override http request option.
@@ -2045,7 +2057,7 @@ export declare const BillingOrdersApiFactory: (configuration?: Configuration, ba
2045
2057
  */
2046
2058
  export declare class BillingOrdersApi extends BaseAPI {
2047
2059
  /**
2048
- * 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.
2049
2061
  * @summary Create new service order
2050
2062
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2051
2063
  * @param {*} [options] Override http request option.
@@ -2406,7 +2418,7 @@ export declare class DNSSnapshotApi extends BaseAPI {
2406
2418
  */
2407
2419
  export declare const DNSZoneApiAxiosParamCreator: (configuration?: Configuration) => {
2408
2420
  /**
2409
- * 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.
2410
2422
  * @summary Delete zone records
2411
2423
  * @param {string} domain Domain name
2412
2424
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -2432,7 +2444,7 @@ export declare const DNSZoneApiAxiosParamCreator: (configuration?: Configuration
2432
2444
  */
2433
2445
  resetZoneRecordsV1: (domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2434
2446
  /**
2435
- * 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.
2436
2448
  * @summary Update zone records
2437
2449
  * @param {string} domain Domain name
2438
2450
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -2456,7 +2468,7 @@ export declare const DNSZoneApiAxiosParamCreator: (configuration?: Configuration
2456
2468
  */
2457
2469
  export declare const DNSZoneApiFp: (configuration?: Configuration) => {
2458
2470
  /**
2459
- * 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.
2460
2472
  * @summary Delete zone records
2461
2473
  * @param {string} domain Domain name
2462
2474
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -2482,7 +2494,7 @@ export declare const DNSZoneApiFp: (configuration?: Configuration) => {
2482
2494
  */
2483
2495
  resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
2484
2496
  /**
2485
- * 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.
2486
2498
  * @summary Update zone records
2487
2499
  * @param {string} domain Domain name
2488
2500
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -2506,7 +2518,7 @@ export declare const DNSZoneApiFp: (configuration?: Configuration) => {
2506
2518
  */
2507
2519
  export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2508
2520
  /**
2509
- * 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.
2510
2522
  * @summary Delete zone records
2511
2523
  * @param {string} domain Domain name
2512
2524
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -2532,7 +2544,7 @@ export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath
2532
2544
  */
2533
2545
  resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
2534
2546
  /**
2535
- * 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.
2536
2548
  * @summary Update zone records
2537
2549
  * @param {string} domain Domain name
2538
2550
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -2558,7 +2570,7 @@ export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath
2558
2570
  */
2559
2571
  export declare class DNSZoneApi extends BaseAPI {
2560
2572
  /**
2561
- * 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.
2562
2574
  * @summary Delete zone records
2563
2575
  * @param {string} domain Domain name
2564
2576
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -2587,7 +2599,7 @@ export declare class DNSZoneApi extends BaseAPI {
2587
2599
  */
2588
2600
  resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any>>;
2589
2601
  /**
2590
- * 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.
2591
2603
  * @summary Update zone records
2592
2604
  * @param {string} domain Domain name
2593
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.16
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
@@ -152,9 +152,21 @@ exports.VPSV1FirewallRulesStoreRequestSourceEnum = {
152
152
  };
153
153
  exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = {
154
154
  Running: 'running',
155
+ Starting: 'starting',
156
+ Stopping: 'stopping',
155
157
  Stopped: 'stopped',
156
158
  Creating: 'creating',
157
- Initial: 'initial'
159
+ Initial: 'initial',
160
+ Error: 'error',
161
+ Suspending: 'suspending',
162
+ Unsuspending: 'unsuspending',
163
+ Suspended: 'suspended',
164
+ Destroying: 'destroying',
165
+ Destroyed: 'destroyed',
166
+ Recreating: 'recreating',
167
+ Restoring: 'restoring',
168
+ Recovery: 'recovery',
169
+ StoppingRecovery: 'stopping_recovery'
158
170
  };
159
171
  exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = {
160
172
  Unlocked: 'unlocked',
@@ -266,7 +278,7 @@ exports.BillingCatalogApi = BillingCatalogApi;
266
278
  const BillingOrdersApiAxiosParamCreator = function (configuration) {
267
279
  return {
268
280
  /**
269
- * 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.
270
282
  * @summary Create new service order
271
283
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
272
284
  * @param {*} [options] Override http request option.
@@ -309,7 +321,7 @@ const BillingOrdersApiFp = function (configuration) {
309
321
  const localVarAxiosParamCreator = (0, exports.BillingOrdersApiAxiosParamCreator)(configuration);
310
322
  return {
311
323
  /**
312
- * 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.
313
325
  * @summary Create new service order
314
326
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
315
327
  * @param {*} [options] Override http request option.
@@ -334,7 +346,7 @@ const BillingOrdersApiFactory = function (configuration, basePath, axios) {
334
346
  const localVarFp = (0, exports.BillingOrdersApiFp)(configuration);
335
347
  return {
336
348
  /**
337
- * 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.
338
350
  * @summary Create new service order
339
351
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
340
352
  * @param {*} [options] Override http request option.
@@ -354,7 +366,7 @@ exports.BillingOrdersApiFactory = BillingOrdersApiFactory;
354
366
  */
355
367
  class BillingOrdersApi extends base_1.BaseAPI {
356
368
  /**
357
- * 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.
358
370
  * @summary Create new service order
359
371
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
360
372
  * @param {*} [options] Override http request option.
@@ -863,7 +875,7 @@ const DNSSnapshotApiAxiosParamCreator = function (configuration) {
863
875
  (0, common_1.assertParamExists)('restoreSnapshotV1', 'domain', domain);
864
876
  // verify required parameter 'snapshotId' is not null or undefined
865
877
  (0, common_1.assertParamExists)('restoreSnapshotV1', 'snapshotId', snapshotId);
866
- const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}`
878
+ const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}/restore`
867
879
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
868
880
  .replace(`{${"snapshotId"}}`, encodeURIComponent(String(snapshotId)));
869
881
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1039,7 +1051,7 @@ exports.DNSSnapshotApi = DNSSnapshotApi;
1039
1051
  const DNSZoneApiAxiosParamCreator = function (configuration) {
1040
1052
  return {
1041
1053
  /**
1042
- * 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.
1043
1055
  * @summary Delete zone records
1044
1056
  * @param {string} domain Domain name
1045
1057
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -1145,7 +1157,7 @@ const DNSZoneApiAxiosParamCreator = function (configuration) {
1145
1157
  };
1146
1158
  }),
1147
1159
  /**
1148
- * 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.
1149
1161
  * @summary Update zone records
1150
1162
  * @param {string} domain Domain name
1151
1163
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -1229,7 +1241,7 @@ const DNSZoneApiFp = function (configuration) {
1229
1241
  const localVarAxiosParamCreator = (0, exports.DNSZoneApiAxiosParamCreator)(configuration);
1230
1242
  return {
1231
1243
  /**
1232
- * 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.
1233
1245
  * @summary Delete zone records
1234
1246
  * @param {string} domain Domain name
1235
1247
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -1276,7 +1288,7 @@ const DNSZoneApiFp = function (configuration) {
1276
1288
  });
1277
1289
  },
1278
1290
  /**
1279
- * 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.
1280
1292
  * @summary Update zone records
1281
1293
  * @param {string} domain Domain name
1282
1294
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -1318,7 +1330,7 @@ const DNSZoneApiFactory = function (configuration, basePath, axios) {
1318
1330
  const localVarFp = (0, exports.DNSZoneApiFp)(configuration);
1319
1331
  return {
1320
1332
  /**
1321
- * 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.
1322
1334
  * @summary Delete zone records
1323
1335
  * @param {string} domain Domain name
1324
1336
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -1350,7 +1362,7 @@ const DNSZoneApiFactory = function (configuration, basePath, axios) {
1350
1362
  return localVarFp.resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(axios, basePath));
1351
1363
  },
1352
1364
  /**
1353
- * 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.
1354
1366
  * @summary Update zone records
1355
1367
  * @param {string} domain Domain name
1356
1368
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -1382,7 +1394,7 @@ exports.DNSZoneApiFactory = DNSZoneApiFactory;
1382
1394
  */
1383
1395
  class DNSZoneApi extends base_1.BaseAPI {
1384
1396
  /**
1385
- * 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.
1386
1398
  * @summary Delete zone records
1387
1399
  * @param {string} domain Domain name
1388
1400
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -1417,7 +1429,7 @@ class DNSZoneApi extends base_1.BaseAPI {
1417
1429
  return (0, exports.DNSZoneApiFp)(this.configuration).resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(this.axios, this.basePath));
1418
1430
  }
1419
1431
  /**
1420
- * 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.
1421
1433
  * @summary Update zone records
1422
1434
  * @param {string} domain Domain name
1423
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.16
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.16
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.16
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.16
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.16
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.16
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.3" }, (_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.16
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";
@@ -1912,9 +1912,21 @@ export interface VPSV1VirtualMachineVirtualMachineResource {
1912
1912
  }
1913
1913
  export declare const VPSV1VirtualMachineVirtualMachineResourceStateEnum: {
1914
1914
  readonly Running: "running";
1915
+ readonly Starting: "starting";
1916
+ readonly Stopping: "stopping";
1915
1917
  readonly Stopped: "stopped";
1916
1918
  readonly Creating: "creating";
1917
1919
  readonly Initial: "initial";
1920
+ readonly Error: "error";
1921
+ readonly Suspending: "suspending";
1922
+ readonly Unsuspending: "unsuspending";
1923
+ readonly Suspended: "suspended";
1924
+ readonly Destroying: "destroying";
1925
+ readonly Destroyed: "destroyed";
1926
+ readonly Recreating: "recreating";
1927
+ readonly Restoring: "restoring";
1928
+ readonly Recovery: "recovery";
1929
+ readonly StoppingRecovery: "stopping_recovery";
1918
1930
  };
1919
1931
  export type VPSV1VirtualMachineVirtualMachineResourceStateEnum = typeof VPSV1VirtualMachineVirtualMachineResourceStateEnum[keyof typeof VPSV1VirtualMachineVirtualMachineResourceStateEnum];
1920
1932
  export declare const VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum: {
@@ -2001,7 +2013,7 @@ export declare class BillingCatalogApi extends BaseAPI {
2001
2013
  */
2002
2014
  export declare const BillingOrdersApiAxiosParamCreator: (configuration?: Configuration) => {
2003
2015
  /**
2004
- * 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.
2005
2017
  * @summary Create new service order
2006
2018
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2007
2019
  * @param {*} [options] Override http request option.
@@ -2015,7 +2027,7 @@ export declare const BillingOrdersApiAxiosParamCreator: (configuration?: Configu
2015
2027
  */
2016
2028
  export declare const BillingOrdersApiFp: (configuration?: Configuration) => {
2017
2029
  /**
2018
- * 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.
2019
2031
  * @summary Create new service order
2020
2032
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2021
2033
  * @param {*} [options] Override http request option.
@@ -2029,7 +2041,7 @@ export declare const BillingOrdersApiFp: (configuration?: Configuration) => {
2029
2041
  */
2030
2042
  export declare const BillingOrdersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2031
2043
  /**
2032
- * 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.
2033
2045
  * @summary Create new service order
2034
2046
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2035
2047
  * @param {*} [options] Override http request option.
@@ -2045,7 +2057,7 @@ export declare const BillingOrdersApiFactory: (configuration?: Configuration, ba
2045
2057
  */
2046
2058
  export declare class BillingOrdersApi extends BaseAPI {
2047
2059
  /**
2048
- * 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.
2049
2061
  * @summary Create new service order
2050
2062
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2051
2063
  * @param {*} [options] Override http request option.
@@ -2406,7 +2418,7 @@ export declare class DNSSnapshotApi extends BaseAPI {
2406
2418
  */
2407
2419
  export declare const DNSZoneApiAxiosParamCreator: (configuration?: Configuration) => {
2408
2420
  /**
2409
- * 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.
2410
2422
  * @summary Delete zone records
2411
2423
  * @param {string} domain Domain name
2412
2424
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -2432,7 +2444,7 @@ export declare const DNSZoneApiAxiosParamCreator: (configuration?: Configuration
2432
2444
  */
2433
2445
  resetZoneRecordsV1: (domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2434
2446
  /**
2435
- * 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.
2436
2448
  * @summary Update zone records
2437
2449
  * @param {string} domain Domain name
2438
2450
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -2456,7 +2468,7 @@ export declare const DNSZoneApiAxiosParamCreator: (configuration?: Configuration
2456
2468
  */
2457
2469
  export declare const DNSZoneApiFp: (configuration?: Configuration) => {
2458
2470
  /**
2459
- * 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.
2460
2472
  * @summary Delete zone records
2461
2473
  * @param {string} domain Domain name
2462
2474
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -2482,7 +2494,7 @@ export declare const DNSZoneApiFp: (configuration?: Configuration) => {
2482
2494
  */
2483
2495
  resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
2484
2496
  /**
2485
- * 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.
2486
2498
  * @summary Update zone records
2487
2499
  * @param {string} domain Domain name
2488
2500
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -2506,7 +2518,7 @@ export declare const DNSZoneApiFp: (configuration?: Configuration) => {
2506
2518
  */
2507
2519
  export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2508
2520
  /**
2509
- * 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.
2510
2522
  * @summary Delete zone records
2511
2523
  * @param {string} domain Domain name
2512
2524
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -2532,7 +2544,7 @@ export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath
2532
2544
  */
2533
2545
  resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
2534
2546
  /**
2535
- * 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.
2536
2548
  * @summary Update zone records
2537
2549
  * @param {string} domain Domain name
2538
2550
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -2558,7 +2570,7 @@ export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath
2558
2570
  */
2559
2571
  export declare class DNSZoneApi extends BaseAPI {
2560
2572
  /**
2561
- * 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.
2562
2574
  * @summary Delete zone records
2563
2575
  * @param {string} domain Domain name
2564
2576
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -2587,7 +2599,7 @@ export declare class DNSZoneApi extends BaseAPI {
2587
2599
  */
2588
2600
  resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any>>;
2589
2601
  /**
2590
- * 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.
2591
2603
  * @summary Update zone records
2592
2604
  * @param {string} domain Domain name
2593
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.16
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
@@ -148,9 +148,21 @@ export const VPSV1FirewallRulesStoreRequestSourceEnum = {
148
148
  };
149
149
  export const VPSV1VirtualMachineVirtualMachineResourceStateEnum = {
150
150
  Running: 'running',
151
+ Starting: 'starting',
152
+ Stopping: 'stopping',
151
153
  Stopped: 'stopped',
152
154
  Creating: 'creating',
153
- Initial: 'initial'
155
+ Initial: 'initial',
156
+ Error: 'error',
157
+ Suspending: 'suspending',
158
+ Unsuspending: 'unsuspending',
159
+ Suspended: 'suspended',
160
+ Destroying: 'destroying',
161
+ Destroyed: 'destroyed',
162
+ Recreating: 'recreating',
163
+ Restoring: 'restoring',
164
+ Recovery: 'recovery',
165
+ StoppingRecovery: 'stopping_recovery'
154
166
  };
155
167
  export const VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = {
156
168
  Unlocked: 'unlocked',
@@ -258,7 +270,7 @@ export class BillingCatalogApi extends BaseAPI {
258
270
  export const BillingOrdersApiAxiosParamCreator = function (configuration) {
259
271
  return {
260
272
  /**
261
- * 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.
262
274
  * @summary Create new service order
263
275
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
264
276
  * @param {*} [options] Override http request option.
@@ -300,7 +312,7 @@ export const BillingOrdersApiFp = function (configuration) {
300
312
  const localVarAxiosParamCreator = BillingOrdersApiAxiosParamCreator(configuration);
301
313
  return {
302
314
  /**
303
- * 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.
304
316
  * @summary Create new service order
305
317
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
306
318
  * @param {*} [options] Override http request option.
@@ -324,7 +336,7 @@ export const BillingOrdersApiFactory = function (configuration, basePath, axios)
324
336
  const localVarFp = BillingOrdersApiFp(configuration);
325
337
  return {
326
338
  /**
327
- * 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.
328
340
  * @summary Create new service order
329
341
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
330
342
  * @param {*} [options] Override http request option.
@@ -343,7 +355,7 @@ export const BillingOrdersApiFactory = function (configuration, basePath, axios)
343
355
  */
344
356
  export class BillingOrdersApi extends BaseAPI {
345
357
  /**
346
- * 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.
347
359
  * @summary Create new service order
348
360
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
349
361
  * @param {*} [options] Override http request option.
@@ -843,7 +855,7 @@ export const DNSSnapshotApiAxiosParamCreator = function (configuration) {
843
855
  assertParamExists('restoreSnapshotV1', 'domain', domain);
844
856
  // verify required parameter 'snapshotId' is not null or undefined
845
857
  assertParamExists('restoreSnapshotV1', 'snapshotId', snapshotId);
846
- const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}`
858
+ const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}/restore`
847
859
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
848
860
  .replace(`{${"snapshotId"}}`, encodeURIComponent(String(snapshotId)));
849
861
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1015,7 +1027,7 @@ export class DNSSnapshotApi extends BaseAPI {
1015
1027
  export const DNSZoneApiAxiosParamCreator = function (configuration) {
1016
1028
  return {
1017
1029
  /**
1018
- * 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.
1019
1031
  * @summary Delete zone records
1020
1032
  * @param {string} domain Domain name
1021
1033
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -1121,7 +1133,7 @@ export const DNSZoneApiAxiosParamCreator = function (configuration) {
1121
1133
  };
1122
1134
  }),
1123
1135
  /**
1124
- * 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.
1125
1137
  * @summary Update zone records
1126
1138
  * @param {string} domain Domain name
1127
1139
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -1204,7 +1216,7 @@ export const DNSZoneApiFp = function (configuration) {
1204
1216
  const localVarAxiosParamCreator = DNSZoneApiAxiosParamCreator(configuration);
1205
1217
  return {
1206
1218
  /**
1207
- * 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.
1208
1220
  * @summary Delete zone records
1209
1221
  * @param {string} domain Domain name
1210
1222
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -1251,7 +1263,7 @@ export const DNSZoneApiFp = function (configuration) {
1251
1263
  });
1252
1264
  },
1253
1265
  /**
1254
- * 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.
1255
1267
  * @summary Update zone records
1256
1268
  * @param {string} domain Domain name
1257
1269
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -1292,7 +1304,7 @@ export const DNSZoneApiFactory = function (configuration, basePath, axios) {
1292
1304
  const localVarFp = DNSZoneApiFp(configuration);
1293
1305
  return {
1294
1306
  /**
1295
- * 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.
1296
1308
  * @summary Delete zone records
1297
1309
  * @param {string} domain Domain name
1298
1310
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -1324,7 +1336,7 @@ export const DNSZoneApiFactory = function (configuration, basePath, axios) {
1324
1336
  return localVarFp.resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(axios, basePath));
1325
1337
  },
1326
1338
  /**
1327
- * 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.
1328
1340
  * @summary Update zone records
1329
1341
  * @param {string} domain Domain name
1330
1342
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -1355,7 +1367,7 @@ export const DNSZoneApiFactory = function (configuration, basePath, axios) {
1355
1367
  */
1356
1368
  export class DNSZoneApi extends BaseAPI {
1357
1369
  /**
1358
- * 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.
1359
1371
  * @summary Delete zone records
1360
1372
  * @param {string} domain Domain name
1361
1373
  * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -1390,7 +1402,7 @@ export class DNSZoneApi extends BaseAPI {
1390
1402
  return DNSZoneApiFp(this.configuration).resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(this.axios, this.basePath));
1391
1403
  }
1392
1404
  /**
1393
- * 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.
1394
1406
  * @summary Update zone records
1395
1407
  * @param {string} domain Domain name
1396
1408
  * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 0.0.16
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.16
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.16
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.16
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.16
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.16
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.3" }, (_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.16
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.16
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.16
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.16
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.16
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.3",
3
+ "version": "0.0.6",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {