Skip to content

Commit 8fbffd6

Browse files
committed
chore: sdk update
1 parent a33ee30 commit 8fbffd6

File tree

7 files changed

+27
-27
lines changed

7 files changed

+27
-27
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
## hostinger-api-sdk@0.0.4
1+
## hostinger-api-sdk@0.0.6
22

33
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
44

55
### Usage
66

77
```
8-
npm install hostinger-api-sdk@0.0.4 --save
8+
npm install hostinger-api-sdk@0.0.6 --save
99
```

api.ts

+19-19
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 0.0.17
6+
* API Version: 0.0.20
77
*
88
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
* 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 {
658658
*/
659659
'reason'?: string;
660660
/**
661-
* Contents of the DNS zone
662-
* @type {string}
661+
* Array of [`DNS.V1.Zone.RecordResource`](#model/dnsv1zonerecordresource)
662+
* @type {Array<DNSV1ZoneRecordResource>}
663663
* @memberof DNSV1SnapshotSnapshotWithContentResource
664664
*/
665-
'snapshot'?: string;
665+
'snapshot'?: Array<DNSV1ZoneRecordResource>;
666666
/**
667667
*
668668
* @type {string}
@@ -694,13 +694,13 @@ export interface DNSV1ZoneDestroyRequestFiltersInner {
694694
* @type {string}
695695
* @memberof DNSV1ZoneDestroyRequestFiltersInner
696696
*/
697-
'name'?: string;
697+
'name': string;
698698
/**
699699
* Type of the record
700700
* @type {string}
701701
* @memberof DNSV1ZoneDestroyRequestFiltersInner
702702
*/
703-
'type'?: DNSV1ZoneDestroyRequestFiltersInnerTypeEnum;
703+
'type': DNSV1ZoneDestroyRequestFiltersInnerTypeEnum;
704704
}
705705

706706
export const DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = {
@@ -2124,7 +2124,7 @@ export class BillingCatalogApi extends BaseAPI {
21242124
export const BillingOrdersApiAxiosParamCreator = function (configuration?: Configuration) {
21252125
return {
21262126
/**
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.
21282128
* @summary Create new service order
21292129
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
21302130
* @param {*} [options] Override http request option.
@@ -2174,7 +2174,7 @@ export const BillingOrdersApiFp = function(configuration?: Configuration) {
21742174
const localVarAxiosParamCreator = BillingOrdersApiAxiosParamCreator(configuration)
21752175
return {
21762176
/**
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.
21782178
* @summary Create new service order
21792179
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
21802180
* @param {*} [options] Override http request option.
@@ -2196,7 +2196,7 @@ export const BillingOrdersApiFactory = function (configuration?: Configuration,
21962196
const localVarFp = BillingOrdersApiFp(configuration)
21972197
return {
21982198
/**
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.
22002200
* @summary Create new service order
22012201
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
22022202
* @param {*} [options] Override http request option.
@@ -2216,7 +2216,7 @@ export const BillingOrdersApiFactory = function (configuration?: Configuration,
22162216
*/
22172217
export class BillingOrdersApi extends BaseAPI {
22182218
/**
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.
22202220
* @summary Create new service order
22212221
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
22222222
* @param {*} [options] Override http request option.
@@ -2762,7 +2762,7 @@ export const DNSSnapshotApiAxiosParamCreator = function (configuration?: Configu
27622762
assertParamExists('restoreSnapshotV1', 'domain', domain)
27632763
// verify required parameter 'snapshotId' is not null or undefined
27642764
assertParamExists('restoreSnapshotV1', 'snapshotId', snapshotId)
2765-
const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}`
2765+
const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}/restore`
27662766
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
27672767
.replace(`{${"snapshotId"}}`, encodeURIComponent(String(snapshotId)));
27682768
// use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -2939,7 +2939,7 @@ export class DNSSnapshotApi extends BaseAPI {
29392939
export const DNSZoneApiAxiosParamCreator = function (configuration?: Configuration) {
29402940
return {
29412941
/**
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.
29432943
* @summary Delete zone records
29442944
* @param {string} domain Domain name
29452945
* @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -3065,7 +3065,7 @@ export const DNSZoneApiAxiosParamCreator = function (configuration?: Configurati
30653065
};
30663066
},
30673067
/**
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.
30693069
* @summary Update zone records
30703070
* @param {string} domain Domain name
30713071
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -3163,7 +3163,7 @@ export const DNSZoneApiFp = function(configuration?: Configuration) {
31633163
const localVarAxiosParamCreator = DNSZoneApiAxiosParamCreator(configuration)
31643164
return {
31653165
/**
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.
31673167
* @summary Delete zone records
31683168
* @param {string} domain Domain name
31693169
* @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -3201,7 +3201,7 @@ export const DNSZoneApiFp = function(configuration?: Configuration) {
32013201
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32023202
},
32033203
/**
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.
32053205
* @summary Update zone records
32063206
* @param {string} domain Domain name
32073207
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -3237,7 +3237,7 @@ export const DNSZoneApiFactory = function (configuration?: Configuration, basePa
32373237
const localVarFp = DNSZoneApiFp(configuration)
32383238
return {
32393239
/**
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.
32413241
* @summary Delete zone records
32423242
* @param {string} domain Domain name
32433243
* @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -3269,7 +3269,7 @@ export const DNSZoneApiFactory = function (configuration?: Configuration, basePa
32693269
return localVarFp.resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(axios, basePath));
32703270
},
32713271
/**
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.
32733273
* @summary Update zone records
32743274
* @param {string} domain Domain name
32753275
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
@@ -3301,7 +3301,7 @@ export const DNSZoneApiFactory = function (configuration?: Configuration, basePa
33013301
*/
33023302
export class DNSZoneApi extends BaseAPI {
33033303
/**
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.
33053305
* @summary Delete zone records
33063306
* @param {string} domain Domain name
33073307
* @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
@@ -3339,7 +3339,7 @@ export class DNSZoneApi extends BaseAPI {
33393339
}
33403340

33413341
/**
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.
33433343
* @summary Update zone records
33443344
* @param {string} domain Domain name
33453345
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest

base.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 0.0.17
6+
* API Version: 0.0.20
77
*
88
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

common.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 0.0.17
6+
* API Version: 0.0.20
77
*
88
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

configuration.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 0.0.17
6+
* API Version: 0.0.20
77
*
88
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
* 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 {
4848
this.baseOptions = {
4949
...param.baseOptions,
5050
headers: {
51-
'User-Agent': "hostinger-api-sdk-typescript/0.0.4",
51+
'User-Agent': "hostinger-api-sdk-typescript/0.0.6",
5252
...param.baseOptions?.headers,
5353
},
5454
};

index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 0.0.17
6+
* API Version: 0.0.20
77
*
88
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hostinger-api-sdk",
3-
"version": "0.0.4",
3+
"version": "0.0.6",
44
"description": "Hostinger API TypeScript SDK",
55
"author": "Hostinger",
66
"repository": {

0 commit comments

Comments
 (0)