hostinger-api-sdk 1.21.1 → 1.23.0
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/README.md +2 -2
- package/api.ts +247 -5
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +393 -271
- package/dist/api.js +215 -5
- 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 +393 -271
- package/dist/esm/api.js +215 -5
- 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/docs/BillingSubscriptionsApi.md +59 -0
- package/docs/BillingV1SubscriptionRenewalRenewRequest.md +22 -0
- package/docs/DomainsWHOISApi.md +108 -0
- package/docs/VPSVirtualMachineApi.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## hostinger-api-sdk@1.
|
|
1
|
+
## hostinger-api-sdk@1.23.0
|
|
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@1.
|
|
8
|
+
npm install hostinger-api-sdk@1.23.0 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.24.0
|
|
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
|
|
@@ -1791,6 +1791,25 @@ export const BillingV1SubscriptionCancelRequestCancelOptionEnum = {
|
|
|
1791
1791
|
|
|
1792
1792
|
export type BillingV1SubscriptionCancelRequestCancelOptionEnum = typeof BillingV1SubscriptionCancelRequestCancelOptionEnum[keyof typeof BillingV1SubscriptionCancelRequestCancelOptionEnum];
|
|
1793
1793
|
|
|
1794
|
+
/**
|
|
1795
|
+
*
|
|
1796
|
+
* @export
|
|
1797
|
+
* @interface BillingV1SubscriptionRenewalRenewRequest
|
|
1798
|
+
*/
|
|
1799
|
+
export interface BillingV1SubscriptionRenewalRenewRequest {
|
|
1800
|
+
/**
|
|
1801
|
+
* Payment method ID, default will be used if not provided
|
|
1802
|
+
* @type {number}
|
|
1803
|
+
* @memberof BillingV1SubscriptionRenewalRenewRequest
|
|
1804
|
+
*/
|
|
1805
|
+
'payment_method_id': number;
|
|
1806
|
+
/**
|
|
1807
|
+
* Discount coupon codes
|
|
1808
|
+
* @type {Array<any>}
|
|
1809
|
+
* @memberof BillingV1SubscriptionRenewalRenewRequest
|
|
1810
|
+
*/
|
|
1811
|
+
'coupons': Array<any>;
|
|
1812
|
+
}
|
|
1794
1813
|
/**
|
|
1795
1814
|
*
|
|
1796
1815
|
* @export
|
|
@@ -13519,6 +13538,48 @@ export const BillingSubscriptionsApiAxiosParamCreator = function (configuration?
|
|
|
13519
13538
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13520
13539
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13521
13540
|
|
|
13541
|
+
return {
|
|
13542
|
+
url: toPathString(localVarUrlObj),
|
|
13543
|
+
options: localVarRequestOptions,
|
|
13544
|
+
};
|
|
13545
|
+
},
|
|
13546
|
+
/**
|
|
13547
|
+
* Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
|
|
13548
|
+
* @summary Renew subscription
|
|
13549
|
+
* @param {string} subscriptionId Subscription ID
|
|
13550
|
+
* @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
|
|
13551
|
+
* @param {*} [options] Override http request option.
|
|
13552
|
+
* @throws {RequiredError}
|
|
13553
|
+
*/
|
|
13554
|
+
renewSubscriptionV1: async (subscriptionId: string, billingV1SubscriptionRenewalRenewRequest?: BillingV1SubscriptionRenewalRenewRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13555
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
13556
|
+
assertParamExists('renewSubscriptionV1', 'subscriptionId', subscriptionId)
|
|
13557
|
+
const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}/renew`
|
|
13558
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
13559
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13560
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13561
|
+
let baseOptions;
|
|
13562
|
+
if (configuration) {
|
|
13563
|
+
baseOptions = configuration.baseOptions;
|
|
13564
|
+
}
|
|
13565
|
+
|
|
13566
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
13567
|
+
const localVarHeaderParameter = {} as any;
|
|
13568
|
+
const localVarQueryParameter = {} as any;
|
|
13569
|
+
|
|
13570
|
+
// authentication apiToken required
|
|
13571
|
+
// http bearer authentication required
|
|
13572
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13573
|
+
|
|
13574
|
+
|
|
13575
|
+
|
|
13576
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13577
|
+
|
|
13578
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13579
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13580
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13581
|
+
localVarRequestOptions.data = serializeDataIfNeeded(billingV1SubscriptionRenewalRenewRequest, localVarRequestOptions, configuration)
|
|
13582
|
+
|
|
13522
13583
|
return {
|
|
13523
13584
|
url: toPathString(localVarUrlObj),
|
|
13524
13585
|
options: localVarRequestOptions,
|
|
@@ -13569,6 +13630,19 @@ export const BillingSubscriptionsApiFp = function(configuration?: Configuration)
|
|
|
13569
13630
|
const localVarOperationServerBasePath = operationServerMap['BillingSubscriptionsApi.getSubscriptionListV1']?.[0]?.url;
|
|
13570
13631
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13571
13632
|
},
|
|
13633
|
+
/**
|
|
13634
|
+
* Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
|
|
13635
|
+
* @summary Renew subscription
|
|
13636
|
+
* @param {string} subscriptionId Subscription ID
|
|
13637
|
+
* @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
|
|
13638
|
+
* @param {*} [options] Override http request option.
|
|
13639
|
+
* @throws {RequiredError}
|
|
13640
|
+
*/
|
|
13641
|
+
async renewSubscriptionV1(subscriptionId: string, billingV1SubscriptionRenewalRenewRequest?: BillingV1SubscriptionRenewalRenewRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingV1OrderOrderResource>> {
|
|
13642
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.renewSubscriptionV1(subscriptionId, billingV1SubscriptionRenewalRenewRequest, options);
|
|
13643
|
+
const localVarOperationServerBasePath = operationServerMap['BillingSubscriptionsApi.renewSubscriptionV1']?.[0]?.url;
|
|
13644
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13645
|
+
},
|
|
13572
13646
|
}
|
|
13573
13647
|
};
|
|
13574
13648
|
|
|
@@ -13608,6 +13682,17 @@ export const BillingSubscriptionsApiFactory = function (configuration?: Configur
|
|
|
13608
13682
|
getSubscriptionListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<BillingV1SubscriptionSubscriptionResource>> {
|
|
13609
13683
|
return localVarFp.getSubscriptionListV1(options).then((request) => request(axios, basePath));
|
|
13610
13684
|
},
|
|
13685
|
+
/**
|
|
13686
|
+
* Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
|
|
13687
|
+
* @summary Renew subscription
|
|
13688
|
+
* @param {string} subscriptionId Subscription ID
|
|
13689
|
+
* @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
|
|
13690
|
+
* @param {*} [options] Override http request option.
|
|
13691
|
+
* @throws {RequiredError}
|
|
13692
|
+
*/
|
|
13693
|
+
renewSubscriptionV1(subscriptionId: string, billingV1SubscriptionRenewalRenewRequest?: BillingV1SubscriptionRenewalRenewRequest, options?: RawAxiosRequestConfig): AxiosPromise<BillingV1OrderOrderResource> {
|
|
13694
|
+
return localVarFp.renewSubscriptionV1(subscriptionId, billingV1SubscriptionRenewalRenewRequest, options).then((request) => request(axios, basePath));
|
|
13695
|
+
},
|
|
13611
13696
|
};
|
|
13612
13697
|
};
|
|
13613
13698
|
|
|
@@ -13652,6 +13737,19 @@ export class BillingSubscriptionsApi extends BaseAPI {
|
|
|
13652
13737
|
public getSubscriptionListV1(options?: RawAxiosRequestConfig) {
|
|
13653
13738
|
return BillingSubscriptionsApiFp(this.configuration).getSubscriptionListV1(options).then((request) => request(this.axios, this.basePath));
|
|
13654
13739
|
}
|
|
13740
|
+
|
|
13741
|
+
/**
|
|
13742
|
+
* Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
|
|
13743
|
+
* @summary Renew subscription
|
|
13744
|
+
* @param {string} subscriptionId Subscription ID
|
|
13745
|
+
* @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
|
|
13746
|
+
* @param {*} [options] Override http request option.
|
|
13747
|
+
* @throws {RequiredError}
|
|
13748
|
+
* @memberof BillingSubscriptionsApi
|
|
13749
|
+
*/
|
|
13750
|
+
public renewSubscriptionV1(subscriptionId: string, billingV1SubscriptionRenewalRenewRequest?: BillingV1SubscriptionRenewalRenewRequest, options?: RawAxiosRequestConfig) {
|
|
13751
|
+
return BillingSubscriptionsApiFp(this.configuration).renewSubscriptionV1(subscriptionId, billingV1SubscriptionRenewalRenewRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13752
|
+
}
|
|
13655
13753
|
}
|
|
13656
13754
|
|
|
13657
13755
|
|
|
@@ -16053,6 +16151,82 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration?: Config
|
|
|
16053
16151
|
|
|
16054
16152
|
|
|
16055
16153
|
|
|
16154
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16155
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16156
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16157
|
+
|
|
16158
|
+
return {
|
|
16159
|
+
url: toPathString(localVarUrlObj),
|
|
16160
|
+
options: localVarRequestOptions,
|
|
16161
|
+
};
|
|
16162
|
+
},
|
|
16163
|
+
/**
|
|
16164
|
+
* Set WHOIS contact profile as default. The default profile is pre-selected for the TLD it belongs to when registering new domains. Use this endpoint to avoid picking contact information for every registration.
|
|
16165
|
+
* @summary Set WHOIS profile as default
|
|
16166
|
+
* @param {number} whoisId WHOIS ID
|
|
16167
|
+
* @param {*} [options] Override http request option.
|
|
16168
|
+
* @throws {RequiredError}
|
|
16169
|
+
*/
|
|
16170
|
+
setWHOISProfileAsDefaultV1: async (whoisId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16171
|
+
// verify required parameter 'whoisId' is not null or undefined
|
|
16172
|
+
assertParamExists('setWHOISProfileAsDefaultV1', 'whoisId', whoisId)
|
|
16173
|
+
const localVarPath = `/api/domains/v1/whois/default/{whoisId}`
|
|
16174
|
+
.replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
|
|
16175
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16176
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16177
|
+
let baseOptions;
|
|
16178
|
+
if (configuration) {
|
|
16179
|
+
baseOptions = configuration.baseOptions;
|
|
16180
|
+
}
|
|
16181
|
+
|
|
16182
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
16183
|
+
const localVarHeaderParameter = {} as any;
|
|
16184
|
+
const localVarQueryParameter = {} as any;
|
|
16185
|
+
|
|
16186
|
+
// authentication apiToken required
|
|
16187
|
+
// http bearer authentication required
|
|
16188
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
16189
|
+
|
|
16190
|
+
|
|
16191
|
+
|
|
16192
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16193
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16194
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16195
|
+
|
|
16196
|
+
return {
|
|
16197
|
+
url: toPathString(localVarUrlObj),
|
|
16198
|
+
options: localVarRequestOptions,
|
|
16199
|
+
};
|
|
16200
|
+
},
|
|
16201
|
+
/**
|
|
16202
|
+
* Unset WHOIS contact profile as default. The profile itself is kept, it is only no longer pre-selected for its TLD. Use this endpoint to stop reusing contact information for new registrations.
|
|
16203
|
+
* @summary Unset default WHOIS profile
|
|
16204
|
+
* @param {number} whoisId WHOIS ID
|
|
16205
|
+
* @param {*} [options] Override http request option.
|
|
16206
|
+
* @throws {RequiredError}
|
|
16207
|
+
*/
|
|
16208
|
+
unsetDefaultWHOISProfileV1: async (whoisId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16209
|
+
// verify required parameter 'whoisId' is not null or undefined
|
|
16210
|
+
assertParamExists('unsetDefaultWHOISProfileV1', 'whoisId', whoisId)
|
|
16211
|
+
const localVarPath = `/api/domains/v1/whois/default/{whoisId}`
|
|
16212
|
+
.replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
|
|
16213
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16214
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16215
|
+
let baseOptions;
|
|
16216
|
+
if (configuration) {
|
|
16217
|
+
baseOptions = configuration.baseOptions;
|
|
16218
|
+
}
|
|
16219
|
+
|
|
16220
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
16221
|
+
const localVarHeaderParameter = {} as any;
|
|
16222
|
+
const localVarQueryParameter = {} as any;
|
|
16223
|
+
|
|
16224
|
+
// authentication apiToken required
|
|
16225
|
+
// http bearer authentication required
|
|
16226
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
16227
|
+
|
|
16228
|
+
|
|
16229
|
+
|
|
16056
16230
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16057
16231
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16058
16232
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -16132,6 +16306,30 @@ export const DomainsWHOISApiFp = function(configuration?: Configuration) {
|
|
|
16132
16306
|
const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.getWHOISProfileV1']?.[0]?.url;
|
|
16133
16307
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16134
16308
|
},
|
|
16309
|
+
/**
|
|
16310
|
+
* Set WHOIS contact profile as default. The default profile is pre-selected for the TLD it belongs to when registering new domains. Use this endpoint to avoid picking contact information for every registration.
|
|
16311
|
+
* @summary Set WHOIS profile as default
|
|
16312
|
+
* @param {number} whoisId WHOIS ID
|
|
16313
|
+
* @param {*} [options] Override http request option.
|
|
16314
|
+
* @throws {RequiredError}
|
|
16315
|
+
*/
|
|
16316
|
+
async setWHOISProfileAsDefaultV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
16317
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setWHOISProfileAsDefaultV1(whoisId, options);
|
|
16318
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.setWHOISProfileAsDefaultV1']?.[0]?.url;
|
|
16319
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16320
|
+
},
|
|
16321
|
+
/**
|
|
16322
|
+
* Unset WHOIS contact profile as default. The profile itself is kept, it is only no longer pre-selected for its TLD. Use this endpoint to stop reusing contact information for new registrations.
|
|
16323
|
+
* @summary Unset default WHOIS profile
|
|
16324
|
+
* @param {number} whoisId WHOIS ID
|
|
16325
|
+
* @param {*} [options] Override http request option.
|
|
16326
|
+
* @throws {RequiredError}
|
|
16327
|
+
*/
|
|
16328
|
+
async unsetDefaultWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
16329
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unsetDefaultWHOISProfileV1(whoisId, options);
|
|
16330
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.unsetDefaultWHOISProfileV1']?.[0]?.url;
|
|
16331
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16332
|
+
},
|
|
16135
16333
|
}
|
|
16136
16334
|
};
|
|
16137
16335
|
|
|
@@ -16192,6 +16390,26 @@ export const DomainsWHOISApiFactory = function (configuration?: Configuration, b
|
|
|
16192
16390
|
getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1WHOISProfileResource> {
|
|
16193
16391
|
return localVarFp.getWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
|
|
16194
16392
|
},
|
|
16393
|
+
/**
|
|
16394
|
+
* Set WHOIS contact profile as default. The default profile is pre-selected for the TLD it belongs to when registering new domains. Use this endpoint to avoid picking contact information for every registration.
|
|
16395
|
+
* @summary Set WHOIS profile as default
|
|
16396
|
+
* @param {number} whoisId WHOIS ID
|
|
16397
|
+
* @param {*} [options] Override http request option.
|
|
16398
|
+
* @throws {RequiredError}
|
|
16399
|
+
*/
|
|
16400
|
+
setWHOISProfileAsDefaultV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
16401
|
+
return localVarFp.setWHOISProfileAsDefaultV1(whoisId, options).then((request) => request(axios, basePath));
|
|
16402
|
+
},
|
|
16403
|
+
/**
|
|
16404
|
+
* Unset WHOIS contact profile as default. The profile itself is kept, it is only no longer pre-selected for its TLD. Use this endpoint to stop reusing contact information for new registrations.
|
|
16405
|
+
* @summary Unset default WHOIS profile
|
|
16406
|
+
* @param {number} whoisId WHOIS ID
|
|
16407
|
+
* @param {*} [options] Override http request option.
|
|
16408
|
+
* @throws {RequiredError}
|
|
16409
|
+
*/
|
|
16410
|
+
unsetDefaultWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
16411
|
+
return localVarFp.unsetDefaultWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
|
|
16412
|
+
},
|
|
16195
16413
|
};
|
|
16196
16414
|
};
|
|
16197
16415
|
|
|
@@ -16261,6 +16479,30 @@ export class DomainsWHOISApi extends BaseAPI {
|
|
|
16261
16479
|
public getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig) {
|
|
16262
16480
|
return DomainsWHOISApiFp(this.configuration).getWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
16263
16481
|
}
|
|
16482
|
+
|
|
16483
|
+
/**
|
|
16484
|
+
* Set WHOIS contact profile as default. The default profile is pre-selected for the TLD it belongs to when registering new domains. Use this endpoint to avoid picking contact information for every registration.
|
|
16485
|
+
* @summary Set WHOIS profile as default
|
|
16486
|
+
* @param {number} whoisId WHOIS ID
|
|
16487
|
+
* @param {*} [options] Override http request option.
|
|
16488
|
+
* @throws {RequiredError}
|
|
16489
|
+
* @memberof DomainsWHOISApi
|
|
16490
|
+
*/
|
|
16491
|
+
public setWHOISProfileAsDefaultV1(whoisId: number, options?: RawAxiosRequestConfig) {
|
|
16492
|
+
return DomainsWHOISApiFp(this.configuration).setWHOISProfileAsDefaultV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
16493
|
+
}
|
|
16494
|
+
|
|
16495
|
+
/**
|
|
16496
|
+
* Unset WHOIS contact profile as default. The profile itself is kept, it is only no longer pre-selected for its TLD. Use this endpoint to stop reusing contact information for new registrations.
|
|
16497
|
+
* @summary Unset default WHOIS profile
|
|
16498
|
+
* @param {number} whoisId WHOIS ID
|
|
16499
|
+
* @param {*} [options] Override http request option.
|
|
16500
|
+
* @throws {RequiredError}
|
|
16501
|
+
* @memberof DomainsWHOISApi
|
|
16502
|
+
*/
|
|
16503
|
+
public unsetDefaultWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig) {
|
|
16504
|
+
return DomainsWHOISApiFp(this.configuration).unsetDefaultWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
16505
|
+
}
|
|
16264
16506
|
}
|
|
16265
16507
|
|
|
16266
16508
|
|
|
@@ -30984,7 +31226,7 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration?: C
|
|
|
30984
31226
|
};
|
|
30985
31227
|
},
|
|
30986
31228
|
/**
|
|
30987
|
-
* Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
|
|
31229
|
+
* Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. This is a compute-only power state change and does not affect billing. To stop future charges, disable auto-renewal on the owning subscription. Use this endpoint to power off running VPS instances.
|
|
30988
31230
|
* @summary Stop virtual machine
|
|
30989
31231
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
30990
31232
|
* @param {*} [options] Override http request option.
|
|
@@ -31208,7 +31450,7 @@ export const VPSVirtualMachineApiFp = function(configuration?: Configuration) {
|
|
|
31208
31450
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31209
31451
|
},
|
|
31210
31452
|
/**
|
|
31211
|
-
* Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
|
|
31453
|
+
* Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. This is a compute-only power state change and does not affect billing. To stop future charges, disable auto-renewal on the owning subscription. Use this endpoint to power off running VPS instances.
|
|
31212
31454
|
* @summary Stop virtual machine
|
|
31213
31455
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
31214
31456
|
* @param {*} [options] Override http request option.
|
|
@@ -31378,7 +31620,7 @@ export const VPSVirtualMachineApiFactory = function (configuration?: Configurati
|
|
|
31378
31620
|
return localVarFp.startVirtualMachineV1(virtualMachineId, options).then((request) => request(axios, basePath));
|
|
31379
31621
|
},
|
|
31380
31622
|
/**
|
|
31381
|
-
* Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
|
|
31623
|
+
* Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. This is a compute-only power state change and does not affect billing. To stop future charges, disable auto-renewal on the owning subscription. Use this endpoint to power off running VPS instances.
|
|
31382
31624
|
* @summary Stop virtual machine
|
|
31383
31625
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
31384
31626
|
* @param {*} [options] Override http request option.
|
|
@@ -31574,7 +31816,7 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
31574
31816
|
}
|
|
31575
31817
|
|
|
31576
31818
|
/**
|
|
31577
|
-
* Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
|
|
31819
|
+
* Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. This is a compute-only power state change and does not affect billing. To stop future charges, disable auto-renewal on the owning subscription. Use this endpoint to power off running VPS instances.
|
|
31578
31820
|
* @summary Stop virtual machine
|
|
31579
31821
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
31580
31822
|
* @param {*} [options] Override http request option.
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.24.0
|
|
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: 1.
|
|
6
|
+
* API Version: 1.24.0
|
|
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
|
|
@@ -106,6 +106,6 @@ export const toPathString = function (url: URL) {
|
|
|
106
106
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
107
107
|
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
108
108
|
const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
|
|
109
|
-
return axios.request<T, R>(axiosRequestArgs)
|
|
109
|
+
return axios.request<T, R>(axiosRequestArgs) as Promise<R>;
|
|
110
110
|
};
|
|
111
111
|
}
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.24.0
|
|
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-typescript-sdk/1.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/1.23.0",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|