hostinger-api-sdk 0.0.4 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build-release.yaml +1 -1
- package/README.md +2 -2
- package/api.ts +210 -216
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +209 -215
- package/dist/api.js +14 -14
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +209 -215
- package/dist/esm/api.js +14 -14
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 0.0.
|
|
7
|
+
* API Version: 0.0.24
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -278,7 +278,7 @@ exports.BillingCatalogApi = BillingCatalogApi;
|
|
|
278
278
|
const BillingOrdersApiAxiosParamCreator = function (configuration) {
|
|
279
279
|
return {
|
|
280
280
|
/**
|
|
281
|
-
* This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for
|
|
281
|
+
* This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
282
282
|
* @summary Create new service order
|
|
283
283
|
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
284
284
|
* @param {*} [options] Override http request option.
|
|
@@ -321,7 +321,7 @@ const BillingOrdersApiFp = function (configuration) {
|
|
|
321
321
|
const localVarAxiosParamCreator = (0, exports.BillingOrdersApiAxiosParamCreator)(configuration);
|
|
322
322
|
return {
|
|
323
323
|
/**
|
|
324
|
-
* This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for
|
|
324
|
+
* This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
325
325
|
* @summary Create new service order
|
|
326
326
|
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
327
327
|
* @param {*} [options] Override http request option.
|
|
@@ -346,7 +346,7 @@ const BillingOrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
346
346
|
const localVarFp = (0, exports.BillingOrdersApiFp)(configuration);
|
|
347
347
|
return {
|
|
348
348
|
/**
|
|
349
|
-
* This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for
|
|
349
|
+
* This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
350
350
|
* @summary Create new service order
|
|
351
351
|
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
352
352
|
* @param {*} [options] Override http request option.
|
|
@@ -366,7 +366,7 @@ exports.BillingOrdersApiFactory = BillingOrdersApiFactory;
|
|
|
366
366
|
*/
|
|
367
367
|
class BillingOrdersApi extends base_1.BaseAPI {
|
|
368
368
|
/**
|
|
369
|
-
* This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for
|
|
369
|
+
* This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
370
370
|
* @summary Create new service order
|
|
371
371
|
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
372
372
|
* @param {*} [options] Override http request option.
|
|
@@ -875,7 +875,7 @@ const DNSSnapshotApiAxiosParamCreator = function (configuration) {
|
|
|
875
875
|
(0, common_1.assertParamExists)('restoreSnapshotV1', 'domain', domain);
|
|
876
876
|
// verify required parameter 'snapshotId' is not null or undefined
|
|
877
877
|
(0, common_1.assertParamExists)('restoreSnapshotV1', 'snapshotId', snapshotId);
|
|
878
|
-
const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}`
|
|
878
|
+
const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}/restore`
|
|
879
879
|
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
|
|
880
880
|
.replace(`{${"snapshotId"}}`, encodeURIComponent(String(snapshotId)));
|
|
881
881
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1051,7 +1051,7 @@ exports.DNSSnapshotApi = DNSSnapshotApi;
|
|
|
1051
1051
|
const DNSZoneApiAxiosParamCreator = function (configuration) {
|
|
1052
1052
|
return {
|
|
1053
1053
|
/**
|
|
1054
|
-
* This endpoint deletes
|
|
1054
|
+
* This endpoint deletes DNS records for the selected domain. To filter which records to delete, add the `name` of the record and `type` to the filter. Multiple filters can be provided with single request. If you have multiple records with the same name and type, and you want to delete only part of them, refer to the `Update zone records` endpoint.
|
|
1055
1055
|
* @summary Delete zone records
|
|
1056
1056
|
* @param {string} domain Domain name
|
|
1057
1057
|
* @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
|
|
@@ -1157,7 +1157,7 @@ const DNSZoneApiAxiosParamCreator = function (configuration) {
|
|
|
1157
1157
|
};
|
|
1158
1158
|
}),
|
|
1159
1159
|
/**
|
|
1160
|
-
* This endpoint updates DNS records for the selected domain.
|
|
1160
|
+
* This endpoint updates DNS records for the selected domain. Using `overwrite = true` will replace existing records with the provided ones. Otherwise existing records will be updated and new records will be added.
|
|
1161
1161
|
* @summary Update zone records
|
|
1162
1162
|
* @param {string} domain Domain name
|
|
1163
1163
|
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
@@ -1241,7 +1241,7 @@ const DNSZoneApiFp = function (configuration) {
|
|
|
1241
1241
|
const localVarAxiosParamCreator = (0, exports.DNSZoneApiAxiosParamCreator)(configuration);
|
|
1242
1242
|
return {
|
|
1243
1243
|
/**
|
|
1244
|
-
* This endpoint deletes
|
|
1244
|
+
* This endpoint deletes DNS records for the selected domain. To filter which records to delete, add the `name` of the record and `type` to the filter. Multiple filters can be provided with single request. If you have multiple records with the same name and type, and you want to delete only part of them, refer to the `Update zone records` endpoint.
|
|
1245
1245
|
* @summary Delete zone records
|
|
1246
1246
|
* @param {string} domain Domain name
|
|
1247
1247
|
* @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
|
|
@@ -1288,7 +1288,7 @@ const DNSZoneApiFp = function (configuration) {
|
|
|
1288
1288
|
});
|
|
1289
1289
|
},
|
|
1290
1290
|
/**
|
|
1291
|
-
* This endpoint updates DNS records for the selected domain.
|
|
1291
|
+
* This endpoint updates DNS records for the selected domain. Using `overwrite = true` will replace existing records with the provided ones. Otherwise existing records will be updated and new records will be added.
|
|
1292
1292
|
* @summary Update zone records
|
|
1293
1293
|
* @param {string} domain Domain name
|
|
1294
1294
|
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
@@ -1330,7 +1330,7 @@ const DNSZoneApiFactory = function (configuration, basePath, axios) {
|
|
|
1330
1330
|
const localVarFp = (0, exports.DNSZoneApiFp)(configuration);
|
|
1331
1331
|
return {
|
|
1332
1332
|
/**
|
|
1333
|
-
* This endpoint deletes
|
|
1333
|
+
* This endpoint deletes DNS records for the selected domain. To filter which records to delete, add the `name` of the record and `type` to the filter. Multiple filters can be provided with single request. If you have multiple records with the same name and type, and you want to delete only part of them, refer to the `Update zone records` endpoint.
|
|
1334
1334
|
* @summary Delete zone records
|
|
1335
1335
|
* @param {string} domain Domain name
|
|
1336
1336
|
* @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
|
|
@@ -1362,7 +1362,7 @@ const DNSZoneApiFactory = function (configuration, basePath, axios) {
|
|
|
1362
1362
|
return localVarFp.resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(axios, basePath));
|
|
1363
1363
|
},
|
|
1364
1364
|
/**
|
|
1365
|
-
* This endpoint updates DNS records for the selected domain.
|
|
1365
|
+
* This endpoint updates DNS records for the selected domain. Using `overwrite = true` will replace existing records with the provided ones. Otherwise existing records will be updated and new records will be added.
|
|
1366
1366
|
* @summary Update zone records
|
|
1367
1367
|
* @param {string} domain Domain name
|
|
1368
1368
|
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
@@ -1394,7 +1394,7 @@ exports.DNSZoneApiFactory = DNSZoneApiFactory;
|
|
|
1394
1394
|
*/
|
|
1395
1395
|
class DNSZoneApi extends base_1.BaseAPI {
|
|
1396
1396
|
/**
|
|
1397
|
-
* This endpoint deletes
|
|
1397
|
+
* This endpoint deletes DNS records for the selected domain. To filter which records to delete, add the `name` of the record and `type` to the filter. Multiple filters can be provided with single request. If you have multiple records with the same name and type, and you want to delete only part of them, refer to the `Update zone records` endpoint.
|
|
1398
1398
|
* @summary Delete zone records
|
|
1399
1399
|
* @param {string} domain Domain name
|
|
1400
1400
|
* @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
|
|
@@ -1429,7 +1429,7 @@ class DNSZoneApi extends base_1.BaseAPI {
|
|
|
1429
1429
|
return (0, exports.DNSZoneApiFp)(this.configuration).resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1430
1430
|
}
|
|
1431
1431
|
/**
|
|
1432
|
-
* This endpoint updates DNS records for the selected domain.
|
|
1432
|
+
* This endpoint updates DNS records for the selected domain. Using `overwrite = true` will replace existing records with the provided ones. Otherwise existing records will be updated and new records will be added.
|
|
1433
1433
|
* @summary Update zone records
|
|
1434
1434
|
* @param {string} domain Domain name
|
|
1435
1435
|
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.0.
|
|
4
|
+
* API Version: 0.0.24
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 0.0.
|
|
7
|
+
* API Version: 0.0.24
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.0.
|
|
4
|
+
* API Version: 0.0.24
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 0.0.
|
|
7
|
+
* API Version: 0.0.24
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.0.
|
|
4
|
+
* API Version: 0.0.24
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 0.0.
|
|
7
|
+
* API Version: 0.0.24
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -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.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-api-sdk-typescript/0.0.7" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|