hostinger-api-sdk 0.0.9 → 0.0.11
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 +2038 -238
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1434 -325
- package/dist/api.js +1371 -140
- 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 +1434 -325
- package/dist/esm/api.js +1342 -120
- 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/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.0.
|
|
6
|
+
* API Version: 0.0.68
|
|
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
|
|
@@ -92,6 +92,13 @@ export const DNSV1ZoneUpdateRequestZoneInnerTypeEnum = {
|
|
|
92
92
|
Srv: 'SRV',
|
|
93
93
|
Caa: 'CAA'
|
|
94
94
|
};
|
|
95
|
+
export const DomainsV1DomainDomainExtendedResourceStatusEnum = {
|
|
96
|
+
Active: 'active',
|
|
97
|
+
PendingSetup: 'pending_setup',
|
|
98
|
+
Expired: 'expired',
|
|
99
|
+
Requested: 'requested',
|
|
100
|
+
PendingVerification: 'pending_verification'
|
|
101
|
+
};
|
|
95
102
|
export const DomainsV1DomainDomainResourceTypeEnum = {
|
|
96
103
|
Domain: 'domain',
|
|
97
104
|
FreeDomain: 'free_domain'
|
|
@@ -99,7 +106,25 @@ export const DomainsV1DomainDomainResourceTypeEnum = {
|
|
|
99
106
|
export const DomainsV1DomainDomainResourceStatusEnum = {
|
|
100
107
|
Active: 'active',
|
|
101
108
|
PendingSetup: 'pending_setup',
|
|
102
|
-
Expired: 'expired'
|
|
109
|
+
Expired: 'expired',
|
|
110
|
+
Requested: 'requested',
|
|
111
|
+
PendingVerification: 'pending_verification'
|
|
112
|
+
};
|
|
113
|
+
export const DomainsV1ForwardingForwardingResourceRedirectTypeEnum = {
|
|
114
|
+
_301: '301',
|
|
115
|
+
_302: '302'
|
|
116
|
+
};
|
|
117
|
+
export const DomainsV1ForwardingStoreRequestRedirectTypeEnum = {
|
|
118
|
+
_301: '301',
|
|
119
|
+
_302: '302'
|
|
120
|
+
};
|
|
121
|
+
export const DomainsV1WHOISProfileResourceEntityTypeEnum = {
|
|
122
|
+
Individual: 'individual',
|
|
123
|
+
Organization: 'organization'
|
|
124
|
+
};
|
|
125
|
+
export const DomainsV1WHOISStoreRequestEntityTypeEnum = {
|
|
126
|
+
Individual: 'individual',
|
|
127
|
+
Organization: 'organization'
|
|
103
128
|
};
|
|
104
129
|
export const VPSV1ActionActionResourceStateEnum = {
|
|
105
130
|
Success: 'success',
|
|
@@ -177,10 +202,12 @@ export const BillingCatalogApiAxiosParamCreator = function (configuration) {
|
|
|
177
202
|
/**
|
|
178
203
|
* This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
|
|
179
204
|
* @summary Get catalog item list
|
|
205
|
+
* @param {GetCatalogItemListV1CategoryEnum} [category] Filter catalog items by category
|
|
206
|
+
* @param {string} [name] Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain
|
|
180
207
|
* @param {*} [options] Override http request option.
|
|
181
208
|
* @throws {RequiredError}
|
|
182
209
|
*/
|
|
183
|
-
getCatalogItemListV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
210
|
+
getCatalogItemListV1: (category_1, name_1, ...args_1) => __awaiter(this, [category_1, name_1, ...args_1], void 0, function* (category, name, options = {}) {
|
|
184
211
|
const localVarPath = `/api/billing/v1/catalog`;
|
|
185
212
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
186
213
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -194,6 +221,12 @@ export const BillingCatalogApiAxiosParamCreator = function (configuration) {
|
|
|
194
221
|
// authentication apiToken required
|
|
195
222
|
// http bearer authentication required
|
|
196
223
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
224
|
+
if (category !== undefined) {
|
|
225
|
+
localVarQueryParameter['category'] = category;
|
|
226
|
+
}
|
|
227
|
+
if (name !== undefined) {
|
|
228
|
+
localVarQueryParameter['name'] = name;
|
|
229
|
+
}
|
|
197
230
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
198
231
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
199
232
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -214,13 +247,15 @@ export const BillingCatalogApiFp = function (configuration) {
|
|
|
214
247
|
/**
|
|
215
248
|
* This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
|
|
216
249
|
* @summary Get catalog item list
|
|
250
|
+
* @param {GetCatalogItemListV1CategoryEnum} [category] Filter catalog items by category
|
|
251
|
+
* @param {string} [name] Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain
|
|
217
252
|
* @param {*} [options] Override http request option.
|
|
218
253
|
* @throws {RequiredError}
|
|
219
254
|
*/
|
|
220
|
-
getCatalogItemListV1(options) {
|
|
255
|
+
getCatalogItemListV1(category, name, options) {
|
|
221
256
|
return __awaiter(this, void 0, void 0, function* () {
|
|
222
257
|
var _a, _b;
|
|
223
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCatalogItemListV1(options);
|
|
258
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCatalogItemListV1(category, name, options);
|
|
224
259
|
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['BillingCatalogApi.getCatalogItemListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
225
260
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
226
261
|
});
|
|
@@ -237,11 +272,13 @@ export const BillingCatalogApiFactory = function (configuration, basePath, axios
|
|
|
237
272
|
/**
|
|
238
273
|
* This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
|
|
239
274
|
* @summary Get catalog item list
|
|
275
|
+
* @param {GetCatalogItemListV1CategoryEnum} [category] Filter catalog items by category
|
|
276
|
+
* @param {string} [name] Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain
|
|
240
277
|
* @param {*} [options] Override http request option.
|
|
241
278
|
* @throws {RequiredError}
|
|
242
279
|
*/
|
|
243
|
-
getCatalogItemListV1(options) {
|
|
244
|
-
return localVarFp.getCatalogItemListV1(options).then((request) => request(axios, basePath));
|
|
280
|
+
getCatalogItemListV1(category, name, options) {
|
|
281
|
+
return localVarFp.getCatalogItemListV1(category, name, options).then((request) => request(axios, basePath));
|
|
245
282
|
},
|
|
246
283
|
};
|
|
247
284
|
};
|
|
@@ -255,14 +292,23 @@ export class BillingCatalogApi extends BaseAPI {
|
|
|
255
292
|
/**
|
|
256
293
|
* This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
|
|
257
294
|
* @summary Get catalog item list
|
|
295
|
+
* @param {GetCatalogItemListV1CategoryEnum} [category] Filter catalog items by category
|
|
296
|
+
* @param {string} [name] Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain
|
|
258
297
|
* @param {*} [options] Override http request option.
|
|
259
298
|
* @throws {RequiredError}
|
|
260
299
|
* @memberof BillingCatalogApi
|
|
261
300
|
*/
|
|
262
|
-
getCatalogItemListV1(options) {
|
|
263
|
-
return BillingCatalogApiFp(this.configuration).getCatalogItemListV1(options).then((request) => request(this.axios, this.basePath));
|
|
301
|
+
getCatalogItemListV1(category, name, options) {
|
|
302
|
+
return BillingCatalogApiFp(this.configuration).getCatalogItemListV1(category, name, options).then((request) => request(this.axios, this.basePath));
|
|
264
303
|
}
|
|
265
304
|
}
|
|
305
|
+
/**
|
|
306
|
+
* @export
|
|
307
|
+
*/
|
|
308
|
+
export const GetCatalogItemListV1CategoryEnum = {
|
|
309
|
+
Domain: 'DOMAIN',
|
|
310
|
+
Vps: 'VPS'
|
|
311
|
+
};
|
|
266
312
|
/**
|
|
267
313
|
* BillingOrdersApi - axios parameter creator
|
|
268
314
|
* @export
|
|
@@ -270,10 +316,11 @@ export class BillingCatalogApi extends BaseAPI {
|
|
|
270
316
|
export const BillingOrdersApiAxiosParamCreator = function (configuration) {
|
|
271
317
|
return {
|
|
272
318
|
/**
|
|
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.
|
|
319
|
+
* This endpoint creates a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
274
320
|
* @summary Create new service order
|
|
275
321
|
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
276
322
|
* @param {*} [options] Override http request option.
|
|
323
|
+
* @deprecated
|
|
277
324
|
* @throws {RequiredError}
|
|
278
325
|
*/
|
|
279
326
|
createNewServiceOrderV1: (billingV1OrderStoreRequest_1, ...args_1) => __awaiter(this, [billingV1OrderStoreRequest_1, ...args_1], void 0, function* (billingV1OrderStoreRequest, options = {}) {
|
|
@@ -312,10 +359,11 @@ export const BillingOrdersApiFp = function (configuration) {
|
|
|
312
359
|
const localVarAxiosParamCreator = BillingOrdersApiAxiosParamCreator(configuration);
|
|
313
360
|
return {
|
|
314
361
|
/**
|
|
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.
|
|
362
|
+
* This endpoint creates a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
316
363
|
* @summary Create new service order
|
|
317
364
|
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
318
365
|
* @param {*} [options] Override http request option.
|
|
366
|
+
* @deprecated
|
|
319
367
|
* @throws {RequiredError}
|
|
320
368
|
*/
|
|
321
369
|
createNewServiceOrderV1(billingV1OrderStoreRequest, options) {
|
|
@@ -336,10 +384,11 @@ export const BillingOrdersApiFactory = function (configuration, basePath, axios)
|
|
|
336
384
|
const localVarFp = BillingOrdersApiFp(configuration);
|
|
337
385
|
return {
|
|
338
386
|
/**
|
|
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.
|
|
387
|
+
* This endpoint creates a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
340
388
|
* @summary Create new service order
|
|
341
389
|
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
342
390
|
* @param {*} [options] Override http request option.
|
|
391
|
+
* @deprecated
|
|
343
392
|
* @throws {RequiredError}
|
|
344
393
|
*/
|
|
345
394
|
createNewServiceOrderV1(billingV1OrderStoreRequest, options) {
|
|
@@ -355,10 +404,11 @@ export const BillingOrdersApiFactory = function (configuration, basePath, axios)
|
|
|
355
404
|
*/
|
|
356
405
|
export class BillingOrdersApi extends BaseAPI {
|
|
357
406
|
/**
|
|
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.
|
|
407
|
+
* This endpoint creates a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
359
408
|
* @summary Create new service order
|
|
360
409
|
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
361
410
|
* @param {*} [options] Override http request option.
|
|
411
|
+
* @deprecated
|
|
362
412
|
* @throws {RequiredError}
|
|
363
413
|
* @memberof BillingOrdersApi
|
|
364
414
|
*/
|
|
@@ -1433,7 +1483,7 @@ export class DNSZoneApi extends BaseAPI {
|
|
|
1433
1483
|
export const DomainsAvailabilityApiAxiosParamCreator = function (configuration) {
|
|
1434
1484
|
return {
|
|
1435
1485
|
/**
|
|
1436
|
-
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. Endpoint has rate limit of 10 requests per minute.
|
|
1486
|
+
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. If you want to get alternative domains with response, provide only one TLD in the request and set `with_alternatives` to `true`. TLDs should be provided without the leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute.
|
|
1437
1487
|
* @summary Check domain availability
|
|
1438
1488
|
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
1439
1489
|
* @param {*} [options] Override http request option.
|
|
@@ -1449,100 +1499,1052 @@ export const DomainsAvailabilityApiAxiosParamCreator = function (configuration)
|
|
|
1449
1499
|
if (configuration) {
|
|
1450
1500
|
baseOptions = configuration.baseOptions;
|
|
1451
1501
|
}
|
|
1452
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1502
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1503
|
+
const localVarHeaderParameter = {};
|
|
1504
|
+
const localVarQueryParameter = {};
|
|
1505
|
+
// authentication apiToken required
|
|
1506
|
+
// http bearer authentication required
|
|
1507
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1508
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1509
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1510
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1511
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1512
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1AvailabilityAvailabilityRequest, localVarRequestOptions, configuration);
|
|
1513
|
+
return {
|
|
1514
|
+
url: toPathString(localVarUrlObj),
|
|
1515
|
+
options: localVarRequestOptions,
|
|
1516
|
+
};
|
|
1517
|
+
}),
|
|
1518
|
+
};
|
|
1519
|
+
};
|
|
1520
|
+
/**
|
|
1521
|
+
* DomainsAvailabilityApi - functional programming interface
|
|
1522
|
+
* @export
|
|
1523
|
+
*/
|
|
1524
|
+
export const DomainsAvailabilityApiFp = function (configuration) {
|
|
1525
|
+
const localVarAxiosParamCreator = DomainsAvailabilityApiAxiosParamCreator(configuration);
|
|
1526
|
+
return {
|
|
1527
|
+
/**
|
|
1528
|
+
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. If you want to get alternative domains with response, provide only one TLD in the request and set `with_alternatives` to `true`. TLDs should be provided without the leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute.
|
|
1529
|
+
* @summary Check domain availability
|
|
1530
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
1531
|
+
* @param {*} [options] Override http request option.
|
|
1532
|
+
* @throws {RequiredError}
|
|
1533
|
+
*/
|
|
1534
|
+
checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options) {
|
|
1535
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1536
|
+
var _a, _b;
|
|
1537
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options);
|
|
1538
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsAvailabilityApi.checkDomainAvailabilityV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1539
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1540
|
+
});
|
|
1541
|
+
},
|
|
1542
|
+
};
|
|
1543
|
+
};
|
|
1544
|
+
/**
|
|
1545
|
+
* DomainsAvailabilityApi - factory interface
|
|
1546
|
+
* @export
|
|
1547
|
+
*/
|
|
1548
|
+
export const DomainsAvailabilityApiFactory = function (configuration, basePath, axios) {
|
|
1549
|
+
const localVarFp = DomainsAvailabilityApiFp(configuration);
|
|
1550
|
+
return {
|
|
1551
|
+
/**
|
|
1552
|
+
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. If you want to get alternative domains with response, provide only one TLD in the request and set `with_alternatives` to `true`. TLDs should be provided without the leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute.
|
|
1553
|
+
* @summary Check domain availability
|
|
1554
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
1555
|
+
* @param {*} [options] Override http request option.
|
|
1556
|
+
* @throws {RequiredError}
|
|
1557
|
+
*/
|
|
1558
|
+
checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options) {
|
|
1559
|
+
return localVarFp.checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(axios, basePath));
|
|
1560
|
+
},
|
|
1561
|
+
};
|
|
1562
|
+
};
|
|
1563
|
+
/**
|
|
1564
|
+
* DomainsAvailabilityApi - object-oriented interface
|
|
1565
|
+
* @export
|
|
1566
|
+
* @class DomainsAvailabilityApi
|
|
1567
|
+
* @extends {BaseAPI}
|
|
1568
|
+
*/
|
|
1569
|
+
export class DomainsAvailabilityApi extends BaseAPI {
|
|
1570
|
+
/**
|
|
1571
|
+
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. If you want to get alternative domains with response, provide only one TLD in the request and set `with_alternatives` to `true`. TLDs should be provided without the leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute.
|
|
1572
|
+
* @summary Check domain availability
|
|
1573
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
1574
|
+
* @param {*} [options] Override http request option.
|
|
1575
|
+
* @throws {RequiredError}
|
|
1576
|
+
* @memberof DomainsAvailabilityApi
|
|
1577
|
+
*/
|
|
1578
|
+
checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options) {
|
|
1579
|
+
return DomainsAvailabilityApiFp(this.configuration).checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
/**
|
|
1583
|
+
* DomainsForwardingApi - axios parameter creator
|
|
1584
|
+
* @export
|
|
1585
|
+
*/
|
|
1586
|
+
export const DomainsForwardingApiAxiosParamCreator = function (configuration) {
|
|
1587
|
+
return {
|
|
1588
|
+
/**
|
|
1589
|
+
* This endpoint creates domain forwarding data.
|
|
1590
|
+
* @summary Create forwarding data
|
|
1591
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
1592
|
+
* @param {*} [options] Override http request option.
|
|
1593
|
+
* @throws {RequiredError}
|
|
1594
|
+
*/
|
|
1595
|
+
createForwardingDataV1: (domainsV1ForwardingStoreRequest_1, ...args_1) => __awaiter(this, [domainsV1ForwardingStoreRequest_1, ...args_1], void 0, function* (domainsV1ForwardingStoreRequest, options = {}) {
|
|
1596
|
+
// verify required parameter 'domainsV1ForwardingStoreRequest' is not null or undefined
|
|
1597
|
+
assertParamExists('createForwardingDataV1', 'domainsV1ForwardingStoreRequest', domainsV1ForwardingStoreRequest);
|
|
1598
|
+
const localVarPath = `/api/domains/v1/forwarding`;
|
|
1599
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1600
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1601
|
+
let baseOptions;
|
|
1602
|
+
if (configuration) {
|
|
1603
|
+
baseOptions = configuration.baseOptions;
|
|
1604
|
+
}
|
|
1605
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1606
|
+
const localVarHeaderParameter = {};
|
|
1607
|
+
const localVarQueryParameter = {};
|
|
1608
|
+
// authentication apiToken required
|
|
1609
|
+
// http bearer authentication required
|
|
1610
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1611
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1612
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1613
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1614
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1615
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1ForwardingStoreRequest, localVarRequestOptions, configuration);
|
|
1616
|
+
return {
|
|
1617
|
+
url: toPathString(localVarUrlObj),
|
|
1618
|
+
options: localVarRequestOptions,
|
|
1619
|
+
};
|
|
1620
|
+
}),
|
|
1621
|
+
/**
|
|
1622
|
+
* This endpoint deletes domain forwarding data.
|
|
1623
|
+
* @summary Delete forwarding data
|
|
1624
|
+
* @param {string} domain Domain name
|
|
1625
|
+
* @param {*} [options] Override http request option.
|
|
1626
|
+
* @throws {RequiredError}
|
|
1627
|
+
*/
|
|
1628
|
+
deleteForwardingDataV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1629
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1630
|
+
assertParamExists('deleteForwardingDataV1', 'domain', domain);
|
|
1631
|
+
const localVarPath = `/api/domains/v1/forwarding/{domain}`
|
|
1632
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1633
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1634
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1635
|
+
let baseOptions;
|
|
1636
|
+
if (configuration) {
|
|
1637
|
+
baseOptions = configuration.baseOptions;
|
|
1638
|
+
}
|
|
1639
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1640
|
+
const localVarHeaderParameter = {};
|
|
1641
|
+
const localVarQueryParameter = {};
|
|
1642
|
+
// authentication apiToken required
|
|
1643
|
+
// http bearer authentication required
|
|
1644
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1645
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1646
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1647
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1648
|
+
return {
|
|
1649
|
+
url: toPathString(localVarUrlObj),
|
|
1650
|
+
options: localVarRequestOptions,
|
|
1651
|
+
};
|
|
1652
|
+
}),
|
|
1653
|
+
/**
|
|
1654
|
+
* This endpoint retrieves domain forwarding data.
|
|
1655
|
+
* @summary Get forwarding data
|
|
1656
|
+
* @param {string} domain Domain name
|
|
1657
|
+
* @param {*} [options] Override http request option.
|
|
1658
|
+
* @throws {RequiredError}
|
|
1659
|
+
*/
|
|
1660
|
+
getForwardingDataV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1661
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1662
|
+
assertParamExists('getForwardingDataV1', 'domain', domain);
|
|
1663
|
+
const localVarPath = `/api/domains/v1/forwarding/{domain}`
|
|
1664
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1665
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1666
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1667
|
+
let baseOptions;
|
|
1668
|
+
if (configuration) {
|
|
1669
|
+
baseOptions = configuration.baseOptions;
|
|
1670
|
+
}
|
|
1671
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1672
|
+
const localVarHeaderParameter = {};
|
|
1673
|
+
const localVarQueryParameter = {};
|
|
1674
|
+
// authentication apiToken required
|
|
1675
|
+
// http bearer authentication required
|
|
1676
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1677
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1678
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1679
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1680
|
+
return {
|
|
1681
|
+
url: toPathString(localVarUrlObj),
|
|
1682
|
+
options: localVarRequestOptions,
|
|
1683
|
+
};
|
|
1684
|
+
}),
|
|
1685
|
+
};
|
|
1686
|
+
};
|
|
1687
|
+
/**
|
|
1688
|
+
* DomainsForwardingApi - functional programming interface
|
|
1689
|
+
* @export
|
|
1690
|
+
*/
|
|
1691
|
+
export const DomainsForwardingApiFp = function (configuration) {
|
|
1692
|
+
const localVarAxiosParamCreator = DomainsForwardingApiAxiosParamCreator(configuration);
|
|
1693
|
+
return {
|
|
1694
|
+
/**
|
|
1695
|
+
* This endpoint creates domain forwarding data.
|
|
1696
|
+
* @summary Create forwarding data
|
|
1697
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
1698
|
+
* @param {*} [options] Override http request option.
|
|
1699
|
+
* @throws {RequiredError}
|
|
1700
|
+
*/
|
|
1701
|
+
createForwardingDataV1(domainsV1ForwardingStoreRequest, options) {
|
|
1702
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1703
|
+
var _a, _b;
|
|
1704
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createForwardingDataV1(domainsV1ForwardingStoreRequest, options);
|
|
1705
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsForwardingApi.createForwardingDataV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1706
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1707
|
+
});
|
|
1708
|
+
},
|
|
1709
|
+
/**
|
|
1710
|
+
* This endpoint deletes domain forwarding data.
|
|
1711
|
+
* @summary Delete forwarding data
|
|
1712
|
+
* @param {string} domain Domain name
|
|
1713
|
+
* @param {*} [options] Override http request option.
|
|
1714
|
+
* @throws {RequiredError}
|
|
1715
|
+
*/
|
|
1716
|
+
deleteForwardingDataV1(domain, options) {
|
|
1717
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1718
|
+
var _a, _b;
|
|
1719
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteForwardingDataV1(domain, options);
|
|
1720
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsForwardingApi.deleteForwardingDataV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1721
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1722
|
+
});
|
|
1723
|
+
},
|
|
1724
|
+
/**
|
|
1725
|
+
* This endpoint retrieves domain forwarding data.
|
|
1726
|
+
* @summary Get forwarding data
|
|
1727
|
+
* @param {string} domain Domain name
|
|
1728
|
+
* @param {*} [options] Override http request option.
|
|
1729
|
+
* @throws {RequiredError}
|
|
1730
|
+
*/
|
|
1731
|
+
getForwardingDataV1(domain, options) {
|
|
1732
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1733
|
+
var _a, _b;
|
|
1734
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getForwardingDataV1(domain, options);
|
|
1735
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsForwardingApi.getForwardingDataV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1736
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1737
|
+
});
|
|
1738
|
+
},
|
|
1739
|
+
};
|
|
1740
|
+
};
|
|
1741
|
+
/**
|
|
1742
|
+
* DomainsForwardingApi - factory interface
|
|
1743
|
+
* @export
|
|
1744
|
+
*/
|
|
1745
|
+
export const DomainsForwardingApiFactory = function (configuration, basePath, axios) {
|
|
1746
|
+
const localVarFp = DomainsForwardingApiFp(configuration);
|
|
1747
|
+
return {
|
|
1748
|
+
/**
|
|
1749
|
+
* This endpoint creates domain forwarding data.
|
|
1750
|
+
* @summary Create forwarding data
|
|
1751
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
1752
|
+
* @param {*} [options] Override http request option.
|
|
1753
|
+
* @throws {RequiredError}
|
|
1754
|
+
*/
|
|
1755
|
+
createForwardingDataV1(domainsV1ForwardingStoreRequest, options) {
|
|
1756
|
+
return localVarFp.createForwardingDataV1(domainsV1ForwardingStoreRequest, options).then((request) => request(axios, basePath));
|
|
1757
|
+
},
|
|
1758
|
+
/**
|
|
1759
|
+
* This endpoint deletes domain forwarding data.
|
|
1760
|
+
* @summary Delete forwarding data
|
|
1761
|
+
* @param {string} domain Domain name
|
|
1762
|
+
* @param {*} [options] Override http request option.
|
|
1763
|
+
* @throws {RequiredError}
|
|
1764
|
+
*/
|
|
1765
|
+
deleteForwardingDataV1(domain, options) {
|
|
1766
|
+
return localVarFp.deleteForwardingDataV1(domain, options).then((request) => request(axios, basePath));
|
|
1767
|
+
},
|
|
1768
|
+
/**
|
|
1769
|
+
* This endpoint retrieves domain forwarding data.
|
|
1770
|
+
* @summary Get forwarding data
|
|
1771
|
+
* @param {string} domain Domain name
|
|
1772
|
+
* @param {*} [options] Override http request option.
|
|
1773
|
+
* @throws {RequiredError}
|
|
1774
|
+
*/
|
|
1775
|
+
getForwardingDataV1(domain, options) {
|
|
1776
|
+
return localVarFp.getForwardingDataV1(domain, options).then((request) => request(axios, basePath));
|
|
1777
|
+
},
|
|
1778
|
+
};
|
|
1779
|
+
};
|
|
1780
|
+
/**
|
|
1781
|
+
* DomainsForwardingApi - object-oriented interface
|
|
1782
|
+
* @export
|
|
1783
|
+
* @class DomainsForwardingApi
|
|
1784
|
+
* @extends {BaseAPI}
|
|
1785
|
+
*/
|
|
1786
|
+
export class DomainsForwardingApi extends BaseAPI {
|
|
1787
|
+
/**
|
|
1788
|
+
* This endpoint creates domain forwarding data.
|
|
1789
|
+
* @summary Create forwarding data
|
|
1790
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
1791
|
+
* @param {*} [options] Override http request option.
|
|
1792
|
+
* @throws {RequiredError}
|
|
1793
|
+
* @memberof DomainsForwardingApi
|
|
1794
|
+
*/
|
|
1795
|
+
createForwardingDataV1(domainsV1ForwardingStoreRequest, options) {
|
|
1796
|
+
return DomainsForwardingApiFp(this.configuration).createForwardingDataV1(domainsV1ForwardingStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1797
|
+
}
|
|
1798
|
+
/**
|
|
1799
|
+
* This endpoint deletes domain forwarding data.
|
|
1800
|
+
* @summary Delete forwarding data
|
|
1801
|
+
* @param {string} domain Domain name
|
|
1802
|
+
* @param {*} [options] Override http request option.
|
|
1803
|
+
* @throws {RequiredError}
|
|
1804
|
+
* @memberof DomainsForwardingApi
|
|
1805
|
+
*/
|
|
1806
|
+
deleteForwardingDataV1(domain, options) {
|
|
1807
|
+
return DomainsForwardingApiFp(this.configuration).deleteForwardingDataV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
1808
|
+
}
|
|
1809
|
+
/**
|
|
1810
|
+
* This endpoint retrieves domain forwarding data.
|
|
1811
|
+
* @summary Get forwarding data
|
|
1812
|
+
* @param {string} domain Domain name
|
|
1813
|
+
* @param {*} [options] Override http request option.
|
|
1814
|
+
* @throws {RequiredError}
|
|
1815
|
+
* @memberof DomainsForwardingApi
|
|
1816
|
+
*/
|
|
1817
|
+
getForwardingDataV1(domain, options) {
|
|
1818
|
+
return DomainsForwardingApiFp(this.configuration).getForwardingDataV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
/**
|
|
1822
|
+
* DomainsPortfolioApi - axios parameter creator
|
|
1823
|
+
* @export
|
|
1824
|
+
*/
|
|
1825
|
+
export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
|
|
1826
|
+
return {
|
|
1827
|
+
/**
|
|
1828
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
1829
|
+
* @summary Disable domain lock
|
|
1830
|
+
* @param {string} domain Domain name
|
|
1831
|
+
* @param {*} [options] Override http request option.
|
|
1832
|
+
* @throws {RequiredError}
|
|
1833
|
+
*/
|
|
1834
|
+
disableDomainLockV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1835
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1836
|
+
assertParamExists('disableDomainLockV1', 'domain', domain);
|
|
1837
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
|
|
1838
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1839
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1840
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1841
|
+
let baseOptions;
|
|
1842
|
+
if (configuration) {
|
|
1843
|
+
baseOptions = configuration.baseOptions;
|
|
1844
|
+
}
|
|
1845
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1846
|
+
const localVarHeaderParameter = {};
|
|
1847
|
+
const localVarQueryParameter = {};
|
|
1848
|
+
// authentication apiToken required
|
|
1849
|
+
// http bearer authentication required
|
|
1850
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1851
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1852
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1853
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1854
|
+
return {
|
|
1855
|
+
url: toPathString(localVarUrlObj),
|
|
1856
|
+
options: localVarRequestOptions,
|
|
1857
|
+
};
|
|
1858
|
+
}),
|
|
1859
|
+
/**
|
|
1860
|
+
* This endpoint disables privacy protection for the domain. When privacy protection is disabled, the domain owner\'s personal information is visible in the public WHOIS database.
|
|
1861
|
+
* @summary Disable privacy protection
|
|
1862
|
+
* @param {string} domain Domain name
|
|
1863
|
+
* @param {*} [options] Override http request option.
|
|
1864
|
+
* @throws {RequiredError}
|
|
1865
|
+
*/
|
|
1866
|
+
disablePrivacyProtectionV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1867
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1868
|
+
assertParamExists('disablePrivacyProtectionV1', 'domain', domain);
|
|
1869
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
|
|
1870
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1871
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1872
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1873
|
+
let baseOptions;
|
|
1874
|
+
if (configuration) {
|
|
1875
|
+
baseOptions = configuration.baseOptions;
|
|
1876
|
+
}
|
|
1877
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1878
|
+
const localVarHeaderParameter = {};
|
|
1879
|
+
const localVarQueryParameter = {};
|
|
1880
|
+
// authentication apiToken required
|
|
1881
|
+
// http bearer authentication required
|
|
1882
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1883
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1884
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1885
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1886
|
+
return {
|
|
1887
|
+
url: toPathString(localVarUrlObj),
|
|
1888
|
+
options: localVarRequestOptions,
|
|
1889
|
+
};
|
|
1890
|
+
}),
|
|
1891
|
+
/**
|
|
1892
|
+
* This endpoint enables domain lock for the domain. When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock.
|
|
1893
|
+
* @summary Enable domain lock
|
|
1894
|
+
* @param {string} domain Domain name
|
|
1895
|
+
* @param {*} [options] Override http request option.
|
|
1896
|
+
* @throws {RequiredError}
|
|
1897
|
+
*/
|
|
1898
|
+
enableDomainLockV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1899
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1900
|
+
assertParamExists('enableDomainLockV1', 'domain', domain);
|
|
1901
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
|
|
1902
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1903
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1904
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1905
|
+
let baseOptions;
|
|
1906
|
+
if (configuration) {
|
|
1907
|
+
baseOptions = configuration.baseOptions;
|
|
1908
|
+
}
|
|
1909
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1910
|
+
const localVarHeaderParameter = {};
|
|
1911
|
+
const localVarQueryParameter = {};
|
|
1912
|
+
// authentication apiToken required
|
|
1913
|
+
// http bearer authentication required
|
|
1914
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1915
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1916
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1917
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1918
|
+
return {
|
|
1919
|
+
url: toPathString(localVarUrlObj),
|
|
1920
|
+
options: localVarRequestOptions,
|
|
1921
|
+
};
|
|
1922
|
+
}),
|
|
1923
|
+
/**
|
|
1924
|
+
* This endpoint enables privacy protection for the domain. When privacy protection is enabled, the domain owner\'s personal information is hidden from the public WHOIS database.
|
|
1925
|
+
* @summary Enable privacy protection
|
|
1926
|
+
* @param {string} domain Domain name
|
|
1927
|
+
* @param {*} [options] Override http request option.
|
|
1928
|
+
* @throws {RequiredError}
|
|
1929
|
+
*/
|
|
1930
|
+
enablePrivacyProtectionV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1931
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1932
|
+
assertParamExists('enablePrivacyProtectionV1', 'domain', domain);
|
|
1933
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
|
|
1934
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1935
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1936
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1937
|
+
let baseOptions;
|
|
1938
|
+
if (configuration) {
|
|
1939
|
+
baseOptions = configuration.baseOptions;
|
|
1940
|
+
}
|
|
1941
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1942
|
+
const localVarHeaderParameter = {};
|
|
1943
|
+
const localVarQueryParameter = {};
|
|
1944
|
+
// authentication apiToken required
|
|
1945
|
+
// http bearer authentication required
|
|
1946
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1947
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1948
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1949
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1950
|
+
return {
|
|
1951
|
+
url: toPathString(localVarUrlObj),
|
|
1952
|
+
options: localVarRequestOptions,
|
|
1953
|
+
};
|
|
1954
|
+
}),
|
|
1955
|
+
/**
|
|
1956
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
1957
|
+
* @summary Get domain list
|
|
1958
|
+
* @param {*} [options] Override http request option.
|
|
1959
|
+
* @throws {RequiredError}
|
|
1960
|
+
*/
|
|
1961
|
+
getDomainListV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1962
|
+
const localVarPath = `/api/domains/v1/portfolio`;
|
|
1963
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1964
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1965
|
+
let baseOptions;
|
|
1966
|
+
if (configuration) {
|
|
1967
|
+
baseOptions = configuration.baseOptions;
|
|
1968
|
+
}
|
|
1969
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1970
|
+
const localVarHeaderParameter = {};
|
|
1971
|
+
const localVarQueryParameter = {};
|
|
1972
|
+
// authentication apiToken required
|
|
1973
|
+
// http bearer authentication required
|
|
1974
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1975
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1976
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1977
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1978
|
+
return {
|
|
1979
|
+
url: toPathString(localVarUrlObj),
|
|
1980
|
+
options: localVarRequestOptions,
|
|
1981
|
+
};
|
|
1982
|
+
}),
|
|
1983
|
+
/**
|
|
1984
|
+
* This endpoint retrieves details for specified domain.
|
|
1985
|
+
* @summary Get domain
|
|
1986
|
+
* @param {string} domain Domain name
|
|
1987
|
+
* @param {*} [options] Override http request option.
|
|
1988
|
+
* @throws {RequiredError}
|
|
1989
|
+
*/
|
|
1990
|
+
getDomainV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1991
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1992
|
+
assertParamExists('getDomainV1', 'domain', domain);
|
|
1993
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}`
|
|
1994
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1995
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1996
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1997
|
+
let baseOptions;
|
|
1998
|
+
if (configuration) {
|
|
1999
|
+
baseOptions = configuration.baseOptions;
|
|
2000
|
+
}
|
|
2001
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2002
|
+
const localVarHeaderParameter = {};
|
|
2003
|
+
const localVarQueryParameter = {};
|
|
2004
|
+
// authentication apiToken required
|
|
2005
|
+
// http bearer authentication required
|
|
2006
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2007
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2008
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2009
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2010
|
+
return {
|
|
2011
|
+
url: toPathString(localVarUrlObj),
|
|
2012
|
+
options: localVarRequestOptions,
|
|
2013
|
+
};
|
|
2014
|
+
}),
|
|
2015
|
+
/**
|
|
2016
|
+
* This endpoint allows you to buy (purchase) and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check the domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, the default contact information for that TLD (Top-Level Domain) will be used. Before making a request, ensure that WHOIS information for the desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing the purchase. The required additional details vary by TLD.
|
|
2017
|
+
* @summary Purchase new domain
|
|
2018
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2019
|
+
* @param {*} [options] Override http request option.
|
|
2020
|
+
* @throws {RequiredError}
|
|
2021
|
+
*/
|
|
2022
|
+
purchaseNewDomainV1: (domainsV1PortfolioPurchaseRequest_1, ...args_1) => __awaiter(this, [domainsV1PortfolioPurchaseRequest_1, ...args_1], void 0, function* (domainsV1PortfolioPurchaseRequest, options = {}) {
|
|
2023
|
+
// verify required parameter 'domainsV1PortfolioPurchaseRequest' is not null or undefined
|
|
2024
|
+
assertParamExists('purchaseNewDomainV1', 'domainsV1PortfolioPurchaseRequest', domainsV1PortfolioPurchaseRequest);
|
|
2025
|
+
const localVarPath = `/api/domains/v1/portfolio`;
|
|
2026
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2027
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2028
|
+
let baseOptions;
|
|
2029
|
+
if (configuration) {
|
|
2030
|
+
baseOptions = configuration.baseOptions;
|
|
2031
|
+
}
|
|
2032
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2033
|
+
const localVarHeaderParameter = {};
|
|
2034
|
+
const localVarQueryParameter = {};
|
|
2035
|
+
// authentication apiToken required
|
|
2036
|
+
// http bearer authentication required
|
|
2037
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2038
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2039
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2040
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2041
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2042
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioPurchaseRequest, localVarRequestOptions, configuration);
|
|
2043
|
+
return {
|
|
2044
|
+
url: toPathString(localVarUrlObj),
|
|
2045
|
+
options: localVarRequestOptions,
|
|
2046
|
+
};
|
|
2047
|
+
}),
|
|
2048
|
+
/**
|
|
2049
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
2050
|
+
* @summary Update nameservers
|
|
2051
|
+
* @param {string} domain Domain name
|
|
2052
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
2053
|
+
* @param {*} [options] Override http request option.
|
|
2054
|
+
* @throws {RequiredError}
|
|
2055
|
+
*/
|
|
2056
|
+
updateNameserversV1: (domain_1, domainsV1PortfolioUpdateNameserversRequest_1, ...args_1) => __awaiter(this, [domain_1, domainsV1PortfolioUpdateNameserversRequest_1, ...args_1], void 0, function* (domain, domainsV1PortfolioUpdateNameserversRequest, options = {}) {
|
|
2057
|
+
// verify required parameter 'domain' is not null or undefined
|
|
2058
|
+
assertParamExists('updateNameserversV1', 'domain', domain);
|
|
2059
|
+
// verify required parameter 'domainsV1PortfolioUpdateNameserversRequest' is not null or undefined
|
|
2060
|
+
assertParamExists('updateNameserversV1', 'domainsV1PortfolioUpdateNameserversRequest', domainsV1PortfolioUpdateNameserversRequest);
|
|
2061
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/nameservers`
|
|
2062
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
2063
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2064
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2065
|
+
let baseOptions;
|
|
2066
|
+
if (configuration) {
|
|
2067
|
+
baseOptions = configuration.baseOptions;
|
|
2068
|
+
}
|
|
2069
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2070
|
+
const localVarHeaderParameter = {};
|
|
2071
|
+
const localVarQueryParameter = {};
|
|
2072
|
+
// authentication apiToken required
|
|
2073
|
+
// http bearer authentication required
|
|
2074
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2075
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2076
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2077
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2078
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2079
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioUpdateNameserversRequest, localVarRequestOptions, configuration);
|
|
2080
|
+
return {
|
|
2081
|
+
url: toPathString(localVarUrlObj),
|
|
2082
|
+
options: localVarRequestOptions,
|
|
2083
|
+
};
|
|
2084
|
+
}),
|
|
2085
|
+
};
|
|
2086
|
+
};
|
|
2087
|
+
/**
|
|
2088
|
+
* DomainsPortfolioApi - functional programming interface
|
|
2089
|
+
* @export
|
|
2090
|
+
*/
|
|
2091
|
+
export const DomainsPortfolioApiFp = function (configuration) {
|
|
2092
|
+
const localVarAxiosParamCreator = DomainsPortfolioApiAxiosParamCreator(configuration);
|
|
2093
|
+
return {
|
|
2094
|
+
/**
|
|
2095
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
2096
|
+
* @summary Disable domain lock
|
|
2097
|
+
* @param {string} domain Domain name
|
|
2098
|
+
* @param {*} [options] Override http request option.
|
|
2099
|
+
* @throws {RequiredError}
|
|
2100
|
+
*/
|
|
2101
|
+
disableDomainLockV1(domain, options) {
|
|
2102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2103
|
+
var _a, _b;
|
|
2104
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disableDomainLockV1(domain, options);
|
|
2105
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.disableDomainLockV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2106
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2107
|
+
});
|
|
2108
|
+
},
|
|
2109
|
+
/**
|
|
2110
|
+
* This endpoint disables privacy protection for the domain. When privacy protection is disabled, the domain owner\'s personal information is visible in the public WHOIS database.
|
|
2111
|
+
* @summary Disable privacy protection
|
|
2112
|
+
* @param {string} domain Domain name
|
|
2113
|
+
* @param {*} [options] Override http request option.
|
|
2114
|
+
* @throws {RequiredError}
|
|
2115
|
+
*/
|
|
2116
|
+
disablePrivacyProtectionV1(domain, options) {
|
|
2117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2118
|
+
var _a, _b;
|
|
2119
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disablePrivacyProtectionV1(domain, options);
|
|
2120
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.disablePrivacyProtectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2121
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2122
|
+
});
|
|
2123
|
+
},
|
|
2124
|
+
/**
|
|
2125
|
+
* This endpoint enables domain lock for the domain. When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock.
|
|
2126
|
+
* @summary Enable domain lock
|
|
2127
|
+
* @param {string} domain Domain name
|
|
2128
|
+
* @param {*} [options] Override http request option.
|
|
2129
|
+
* @throws {RequiredError}
|
|
2130
|
+
*/
|
|
2131
|
+
enableDomainLockV1(domain, options) {
|
|
2132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2133
|
+
var _a, _b;
|
|
2134
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.enableDomainLockV1(domain, options);
|
|
2135
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.enableDomainLockV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2136
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2137
|
+
});
|
|
2138
|
+
},
|
|
2139
|
+
/**
|
|
2140
|
+
* This endpoint enables privacy protection for the domain. When privacy protection is enabled, the domain owner\'s personal information is hidden from the public WHOIS database.
|
|
2141
|
+
* @summary Enable privacy protection
|
|
2142
|
+
* @param {string} domain Domain name
|
|
2143
|
+
* @param {*} [options] Override http request option.
|
|
2144
|
+
* @throws {RequiredError}
|
|
2145
|
+
*/
|
|
2146
|
+
enablePrivacyProtectionV1(domain, options) {
|
|
2147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2148
|
+
var _a, _b;
|
|
2149
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.enablePrivacyProtectionV1(domain, options);
|
|
2150
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.enablePrivacyProtectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2151
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2152
|
+
});
|
|
2153
|
+
},
|
|
2154
|
+
/**
|
|
2155
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
2156
|
+
* @summary Get domain list
|
|
2157
|
+
* @param {*} [options] Override http request option.
|
|
2158
|
+
* @throws {RequiredError}
|
|
2159
|
+
*/
|
|
2160
|
+
getDomainListV1(options) {
|
|
2161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2162
|
+
var _a, _b;
|
|
2163
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainListV1(options);
|
|
2164
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.getDomainListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2165
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2166
|
+
});
|
|
2167
|
+
},
|
|
2168
|
+
/**
|
|
2169
|
+
* This endpoint retrieves details for specified domain.
|
|
2170
|
+
* @summary Get domain
|
|
2171
|
+
* @param {string} domain Domain name
|
|
2172
|
+
* @param {*} [options] Override http request option.
|
|
2173
|
+
* @throws {RequiredError}
|
|
2174
|
+
*/
|
|
2175
|
+
getDomainV1(domain, options) {
|
|
2176
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2177
|
+
var _a, _b;
|
|
2178
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainV1(domain, options);
|
|
2179
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.getDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2180
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2181
|
+
});
|
|
2182
|
+
},
|
|
2183
|
+
/**
|
|
2184
|
+
* This endpoint allows you to buy (purchase) and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check the domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, the default contact information for that TLD (Top-Level Domain) will be used. Before making a request, ensure that WHOIS information for the desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing the purchase. The required additional details vary by TLD.
|
|
2185
|
+
* @summary Purchase new domain
|
|
2186
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2187
|
+
* @param {*} [options] Override http request option.
|
|
2188
|
+
* @throws {RequiredError}
|
|
2189
|
+
*/
|
|
2190
|
+
purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options) {
|
|
2191
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2192
|
+
var _a, _b;
|
|
2193
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options);
|
|
2194
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.purchaseNewDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2195
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2196
|
+
});
|
|
2197
|
+
},
|
|
2198
|
+
/**
|
|
2199
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
2200
|
+
* @summary Update nameservers
|
|
2201
|
+
* @param {string} domain Domain name
|
|
2202
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
2203
|
+
* @param {*} [options] Override http request option.
|
|
2204
|
+
* @throws {RequiredError}
|
|
2205
|
+
*/
|
|
2206
|
+
updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options) {
|
|
2207
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2208
|
+
var _a, _b;
|
|
2209
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options);
|
|
2210
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.updateNameserversV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2211
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2212
|
+
});
|
|
2213
|
+
},
|
|
2214
|
+
};
|
|
2215
|
+
};
|
|
2216
|
+
/**
|
|
2217
|
+
* DomainsPortfolioApi - factory interface
|
|
2218
|
+
* @export
|
|
2219
|
+
*/
|
|
2220
|
+
export const DomainsPortfolioApiFactory = function (configuration, basePath, axios) {
|
|
2221
|
+
const localVarFp = DomainsPortfolioApiFp(configuration);
|
|
2222
|
+
return {
|
|
2223
|
+
/**
|
|
2224
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
2225
|
+
* @summary Disable domain lock
|
|
2226
|
+
* @param {string} domain Domain name
|
|
2227
|
+
* @param {*} [options] Override http request option.
|
|
2228
|
+
* @throws {RequiredError}
|
|
2229
|
+
*/
|
|
2230
|
+
disableDomainLockV1(domain, options) {
|
|
2231
|
+
return localVarFp.disableDomainLockV1(domain, options).then((request) => request(axios, basePath));
|
|
2232
|
+
},
|
|
2233
|
+
/**
|
|
2234
|
+
* This endpoint disables privacy protection for the domain. When privacy protection is disabled, the domain owner\'s personal information is visible in the public WHOIS database.
|
|
2235
|
+
* @summary Disable privacy protection
|
|
2236
|
+
* @param {string} domain Domain name
|
|
2237
|
+
* @param {*} [options] Override http request option.
|
|
2238
|
+
* @throws {RequiredError}
|
|
2239
|
+
*/
|
|
2240
|
+
disablePrivacyProtectionV1(domain, options) {
|
|
2241
|
+
return localVarFp.disablePrivacyProtectionV1(domain, options).then((request) => request(axios, basePath));
|
|
2242
|
+
},
|
|
2243
|
+
/**
|
|
2244
|
+
* This endpoint enables domain lock for the domain. When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock.
|
|
2245
|
+
* @summary Enable domain lock
|
|
2246
|
+
* @param {string} domain Domain name
|
|
2247
|
+
* @param {*} [options] Override http request option.
|
|
2248
|
+
* @throws {RequiredError}
|
|
2249
|
+
*/
|
|
2250
|
+
enableDomainLockV1(domain, options) {
|
|
2251
|
+
return localVarFp.enableDomainLockV1(domain, options).then((request) => request(axios, basePath));
|
|
2252
|
+
},
|
|
2253
|
+
/**
|
|
2254
|
+
* This endpoint enables privacy protection for the domain. When privacy protection is enabled, the domain owner\'s personal information is hidden from the public WHOIS database.
|
|
2255
|
+
* @summary Enable privacy protection
|
|
2256
|
+
* @param {string} domain Domain name
|
|
2257
|
+
* @param {*} [options] Override http request option.
|
|
2258
|
+
* @throws {RequiredError}
|
|
2259
|
+
*/
|
|
2260
|
+
enablePrivacyProtectionV1(domain, options) {
|
|
2261
|
+
return localVarFp.enablePrivacyProtectionV1(domain, options).then((request) => request(axios, basePath));
|
|
2262
|
+
},
|
|
2263
|
+
/**
|
|
2264
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
2265
|
+
* @summary Get domain list
|
|
2266
|
+
* @param {*} [options] Override http request option.
|
|
2267
|
+
* @throws {RequiredError}
|
|
2268
|
+
*/
|
|
2269
|
+
getDomainListV1(options) {
|
|
2270
|
+
return localVarFp.getDomainListV1(options).then((request) => request(axios, basePath));
|
|
2271
|
+
},
|
|
2272
|
+
/**
|
|
2273
|
+
* This endpoint retrieves details for specified domain.
|
|
2274
|
+
* @summary Get domain
|
|
2275
|
+
* @param {string} domain Domain name
|
|
2276
|
+
* @param {*} [options] Override http request option.
|
|
2277
|
+
* @throws {RequiredError}
|
|
2278
|
+
*/
|
|
2279
|
+
getDomainV1(domain, options) {
|
|
2280
|
+
return localVarFp.getDomainV1(domain, options).then((request) => request(axios, basePath));
|
|
2281
|
+
},
|
|
2282
|
+
/**
|
|
2283
|
+
* This endpoint allows you to buy (purchase) and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check the domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, the default contact information for that TLD (Top-Level Domain) will be used. Before making a request, ensure that WHOIS information for the desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing the purchase. The required additional details vary by TLD.
|
|
2284
|
+
* @summary Purchase new domain
|
|
2285
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2286
|
+
* @param {*} [options] Override http request option.
|
|
2287
|
+
* @throws {RequiredError}
|
|
2288
|
+
*/
|
|
2289
|
+
purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options) {
|
|
2290
|
+
return localVarFp.purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options).then((request) => request(axios, basePath));
|
|
2291
|
+
},
|
|
2292
|
+
/**
|
|
2293
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
2294
|
+
* @summary Update nameservers
|
|
2295
|
+
* @param {string} domain Domain name
|
|
2296
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
2297
|
+
* @param {*} [options] Override http request option.
|
|
2298
|
+
* @throws {RequiredError}
|
|
2299
|
+
*/
|
|
2300
|
+
updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options) {
|
|
2301
|
+
return localVarFp.updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options).then((request) => request(axios, basePath));
|
|
2302
|
+
},
|
|
2303
|
+
};
|
|
2304
|
+
};
|
|
2305
|
+
/**
|
|
2306
|
+
* DomainsPortfolioApi - object-oriented interface
|
|
2307
|
+
* @export
|
|
2308
|
+
* @class DomainsPortfolioApi
|
|
2309
|
+
* @extends {BaseAPI}
|
|
2310
|
+
*/
|
|
2311
|
+
export class DomainsPortfolioApi extends BaseAPI {
|
|
2312
|
+
/**
|
|
2313
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
2314
|
+
* @summary Disable domain lock
|
|
2315
|
+
* @param {string} domain Domain name
|
|
2316
|
+
* @param {*} [options] Override http request option.
|
|
2317
|
+
* @throws {RequiredError}
|
|
2318
|
+
* @memberof DomainsPortfolioApi
|
|
2319
|
+
*/
|
|
2320
|
+
disableDomainLockV1(domain, options) {
|
|
2321
|
+
return DomainsPortfolioApiFp(this.configuration).disableDomainLockV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
2322
|
+
}
|
|
2323
|
+
/**
|
|
2324
|
+
* This endpoint disables privacy protection for the domain. When privacy protection is disabled, the domain owner\'s personal information is visible in the public WHOIS database.
|
|
2325
|
+
* @summary Disable privacy protection
|
|
2326
|
+
* @param {string} domain Domain name
|
|
2327
|
+
* @param {*} [options] Override http request option.
|
|
2328
|
+
* @throws {RequiredError}
|
|
2329
|
+
* @memberof DomainsPortfolioApi
|
|
2330
|
+
*/
|
|
2331
|
+
disablePrivacyProtectionV1(domain, options) {
|
|
2332
|
+
return DomainsPortfolioApiFp(this.configuration).disablePrivacyProtectionV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
2333
|
+
}
|
|
2334
|
+
/**
|
|
2335
|
+
* This endpoint enables domain lock for the domain. When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock.
|
|
2336
|
+
* @summary Enable domain lock
|
|
2337
|
+
* @param {string} domain Domain name
|
|
2338
|
+
* @param {*} [options] Override http request option.
|
|
2339
|
+
* @throws {RequiredError}
|
|
2340
|
+
* @memberof DomainsPortfolioApi
|
|
2341
|
+
*/
|
|
2342
|
+
enableDomainLockV1(domain, options) {
|
|
2343
|
+
return DomainsPortfolioApiFp(this.configuration).enableDomainLockV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
2344
|
+
}
|
|
2345
|
+
/**
|
|
2346
|
+
* This endpoint enables privacy protection for the domain. When privacy protection is enabled, the domain owner\'s personal information is hidden from the public WHOIS database.
|
|
2347
|
+
* @summary Enable privacy protection
|
|
2348
|
+
* @param {string} domain Domain name
|
|
2349
|
+
* @param {*} [options] Override http request option.
|
|
2350
|
+
* @throws {RequiredError}
|
|
2351
|
+
* @memberof DomainsPortfolioApi
|
|
2352
|
+
*/
|
|
2353
|
+
enablePrivacyProtectionV1(domain, options) {
|
|
2354
|
+
return DomainsPortfolioApiFp(this.configuration).enablePrivacyProtectionV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
2355
|
+
}
|
|
2356
|
+
/**
|
|
2357
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
2358
|
+
* @summary Get domain list
|
|
2359
|
+
* @param {*} [options] Override http request option.
|
|
2360
|
+
* @throws {RequiredError}
|
|
2361
|
+
* @memberof DomainsPortfolioApi
|
|
2362
|
+
*/
|
|
2363
|
+
getDomainListV1(options) {
|
|
2364
|
+
return DomainsPortfolioApiFp(this.configuration).getDomainListV1(options).then((request) => request(this.axios, this.basePath));
|
|
2365
|
+
}
|
|
2366
|
+
/**
|
|
2367
|
+
* This endpoint retrieves details for specified domain.
|
|
2368
|
+
* @summary Get domain
|
|
2369
|
+
* @param {string} domain Domain name
|
|
2370
|
+
* @param {*} [options] Override http request option.
|
|
2371
|
+
* @throws {RequiredError}
|
|
2372
|
+
* @memberof DomainsPortfolioApi
|
|
2373
|
+
*/
|
|
2374
|
+
getDomainV1(domain, options) {
|
|
2375
|
+
return DomainsPortfolioApiFp(this.configuration).getDomainV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
2376
|
+
}
|
|
2377
|
+
/**
|
|
2378
|
+
* This endpoint allows you to buy (purchase) and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check the domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, the default contact information for that TLD (Top-Level Domain) will be used. Before making a request, ensure that WHOIS information for the desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing the purchase. The required additional details vary by TLD.
|
|
2379
|
+
* @summary Purchase new domain
|
|
2380
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2381
|
+
* @param {*} [options] Override http request option.
|
|
2382
|
+
* @throws {RequiredError}
|
|
2383
|
+
* @memberof DomainsPortfolioApi
|
|
2384
|
+
*/
|
|
2385
|
+
purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options) {
|
|
2386
|
+
return DomainsPortfolioApiFp(this.configuration).purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2387
|
+
}
|
|
2388
|
+
/**
|
|
2389
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
2390
|
+
* @summary Update nameservers
|
|
2391
|
+
* @param {string} domain Domain name
|
|
2392
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
2393
|
+
* @param {*} [options] Override http request option.
|
|
2394
|
+
* @throws {RequiredError}
|
|
2395
|
+
* @memberof DomainsPortfolioApi
|
|
2396
|
+
*/
|
|
2397
|
+
updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options) {
|
|
2398
|
+
return DomainsPortfolioApiFp(this.configuration).updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
/**
|
|
2402
|
+
* DomainsWHOISApi - axios parameter creator
|
|
2403
|
+
* @export
|
|
2404
|
+
*/
|
|
2405
|
+
export const DomainsWHOISApiAxiosParamCreator = function (configuration) {
|
|
2406
|
+
return {
|
|
2407
|
+
/**
|
|
2408
|
+
* This endpoint creates WHOIS contact profile.
|
|
2409
|
+
* @summary Create WHOIS profile
|
|
2410
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
2411
|
+
* @param {*} [options] Override http request option.
|
|
2412
|
+
* @throws {RequiredError}
|
|
2413
|
+
*/
|
|
2414
|
+
createWHOISProfileV1: (domainsV1WHOISStoreRequest_1, ...args_1) => __awaiter(this, [domainsV1WHOISStoreRequest_1, ...args_1], void 0, function* (domainsV1WHOISStoreRequest, options = {}) {
|
|
2415
|
+
// verify required parameter 'domainsV1WHOISStoreRequest' is not null or undefined
|
|
2416
|
+
assertParamExists('createWHOISProfileV1', 'domainsV1WHOISStoreRequest', domainsV1WHOISStoreRequest);
|
|
2417
|
+
const localVarPath = `/api/domains/v1/whois`;
|
|
2418
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2419
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2420
|
+
let baseOptions;
|
|
2421
|
+
if (configuration) {
|
|
2422
|
+
baseOptions = configuration.baseOptions;
|
|
2423
|
+
}
|
|
2424
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2425
|
+
const localVarHeaderParameter = {};
|
|
2426
|
+
const localVarQueryParameter = {};
|
|
2427
|
+
// authentication apiToken required
|
|
2428
|
+
// http bearer authentication required
|
|
2429
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2430
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2431
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2432
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2433
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2434
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1WHOISStoreRequest, localVarRequestOptions, configuration);
|
|
2435
|
+
return {
|
|
2436
|
+
url: toPathString(localVarUrlObj),
|
|
2437
|
+
options: localVarRequestOptions,
|
|
2438
|
+
};
|
|
2439
|
+
}),
|
|
2440
|
+
/**
|
|
2441
|
+
* This endpoint deletes WHOIS contact profile.
|
|
2442
|
+
* @summary Delete WHOIS profile
|
|
2443
|
+
* @param {number} whoisId WHOIS ID
|
|
2444
|
+
* @param {*} [options] Override http request option.
|
|
2445
|
+
* @throws {RequiredError}
|
|
2446
|
+
*/
|
|
2447
|
+
deleteWHOISProfileV1: (whoisId_1, ...args_1) => __awaiter(this, [whoisId_1, ...args_1], void 0, function* (whoisId, options = {}) {
|
|
2448
|
+
// verify required parameter 'whoisId' is not null or undefined
|
|
2449
|
+
assertParamExists('deleteWHOISProfileV1', 'whoisId', whoisId);
|
|
2450
|
+
const localVarPath = `/api/domains/v1/whois/{whoisId}`
|
|
2451
|
+
.replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
|
|
2452
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2453
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2454
|
+
let baseOptions;
|
|
2455
|
+
if (configuration) {
|
|
2456
|
+
baseOptions = configuration.baseOptions;
|
|
2457
|
+
}
|
|
2458
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1453
2459
|
const localVarHeaderParameter = {};
|
|
1454
2460
|
const localVarQueryParameter = {};
|
|
1455
2461
|
// authentication apiToken required
|
|
1456
2462
|
// http bearer authentication required
|
|
1457
2463
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1458
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1459
2464
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1460
2465
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1461
2466
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1462
|
-
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1AvailabilityAvailabilityRequest, localVarRequestOptions, configuration);
|
|
1463
2467
|
return {
|
|
1464
2468
|
url: toPathString(localVarUrlObj),
|
|
1465
2469
|
options: localVarRequestOptions,
|
|
1466
2470
|
};
|
|
1467
2471
|
}),
|
|
1468
|
-
};
|
|
1469
|
-
};
|
|
1470
|
-
/**
|
|
1471
|
-
* DomainsAvailabilityApi - functional programming interface
|
|
1472
|
-
* @export
|
|
1473
|
-
*/
|
|
1474
|
-
export const DomainsAvailabilityApiFp = function (configuration) {
|
|
1475
|
-
const localVarAxiosParamCreator = DomainsAvailabilityApiAxiosParamCreator(configuration);
|
|
1476
|
-
return {
|
|
1477
2472
|
/**
|
|
1478
|
-
* This endpoint
|
|
1479
|
-
* @summary
|
|
1480
|
-
* @param {
|
|
2473
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
2474
|
+
* @summary Get WHOIS profile list
|
|
2475
|
+
* @param {string} [tld] Filter by TLD (without leading dot)
|
|
1481
2476
|
* @param {*} [options] Override http request option.
|
|
1482
2477
|
* @throws {RequiredError}
|
|
1483
2478
|
*/
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
};
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
2479
|
+
getWHOISProfileListV1: (tld_1, ...args_1) => __awaiter(this, [tld_1, ...args_1], void 0, function* (tld, options = {}) {
|
|
2480
|
+
const localVarPath = `/api/domains/v1/whois`;
|
|
2481
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2482
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2483
|
+
let baseOptions;
|
|
2484
|
+
if (configuration) {
|
|
2485
|
+
baseOptions = configuration.baseOptions;
|
|
2486
|
+
}
|
|
2487
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2488
|
+
const localVarHeaderParameter = {};
|
|
2489
|
+
const localVarQueryParameter = {};
|
|
2490
|
+
// authentication apiToken required
|
|
2491
|
+
// http bearer authentication required
|
|
2492
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2493
|
+
if (tld !== undefined) {
|
|
2494
|
+
localVarQueryParameter['tld'] = tld;
|
|
2495
|
+
}
|
|
2496
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2497
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2498
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2499
|
+
return {
|
|
2500
|
+
url: toPathString(localVarUrlObj),
|
|
2501
|
+
options: localVarRequestOptions,
|
|
2502
|
+
};
|
|
2503
|
+
}),
|
|
1501
2504
|
/**
|
|
1502
|
-
* This endpoint
|
|
1503
|
-
* @summary
|
|
1504
|
-
* @param {
|
|
2505
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
2506
|
+
* @summary Get WHOIS profile usage
|
|
2507
|
+
* @param {number} whoisId WHOIS ID
|
|
1505
2508
|
* @param {*} [options] Override http request option.
|
|
1506
2509
|
* @throws {RequiredError}
|
|
1507
2510
|
*/
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
};
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
* DomainsPortfolioApi - axios parameter creator
|
|
1534
|
-
* @export
|
|
1535
|
-
*/
|
|
1536
|
-
export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
|
|
1537
|
-
return {
|
|
2511
|
+
getWHOISProfileUsageV1: (whoisId_1, ...args_1) => __awaiter(this, [whoisId_1, ...args_1], void 0, function* (whoisId, options = {}) {
|
|
2512
|
+
// verify required parameter 'whoisId' is not null or undefined
|
|
2513
|
+
assertParamExists('getWHOISProfileUsageV1', 'whoisId', whoisId);
|
|
2514
|
+
const localVarPath = `/api/domains/v1/whois/{whoisId}/usage`
|
|
2515
|
+
.replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
|
|
2516
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2517
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2518
|
+
let baseOptions;
|
|
2519
|
+
if (configuration) {
|
|
2520
|
+
baseOptions = configuration.baseOptions;
|
|
2521
|
+
}
|
|
2522
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2523
|
+
const localVarHeaderParameter = {};
|
|
2524
|
+
const localVarQueryParameter = {};
|
|
2525
|
+
// authentication apiToken required
|
|
2526
|
+
// http bearer authentication required
|
|
2527
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2528
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2529
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2530
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2531
|
+
return {
|
|
2532
|
+
url: toPathString(localVarUrlObj),
|
|
2533
|
+
options: localVarRequestOptions,
|
|
2534
|
+
};
|
|
2535
|
+
}),
|
|
1538
2536
|
/**
|
|
1539
|
-
* This endpoint retrieves a
|
|
1540
|
-
* @summary Get
|
|
2537
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
2538
|
+
* @summary Get WHOIS profile
|
|
2539
|
+
* @param {number} whoisId WHOIS ID
|
|
1541
2540
|
* @param {*} [options] Override http request option.
|
|
1542
2541
|
* @throws {RequiredError}
|
|
1543
2542
|
*/
|
|
1544
|
-
|
|
1545
|
-
|
|
2543
|
+
getWHOISProfileV1: (whoisId_1, ...args_1) => __awaiter(this, [whoisId_1, ...args_1], void 0, function* (whoisId, options = {}) {
|
|
2544
|
+
// verify required parameter 'whoisId' is not null or undefined
|
|
2545
|
+
assertParamExists('getWHOISProfileV1', 'whoisId', whoisId);
|
|
2546
|
+
const localVarPath = `/api/domains/v1/whois/{whoisId}`
|
|
2547
|
+
.replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
|
|
1546
2548
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1547
2549
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1548
2550
|
let baseOptions;
|
|
@@ -1566,62 +2568,209 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
|
|
|
1566
2568
|
};
|
|
1567
2569
|
};
|
|
1568
2570
|
/**
|
|
1569
|
-
*
|
|
2571
|
+
* DomainsWHOISApi - functional programming interface
|
|
1570
2572
|
* @export
|
|
1571
2573
|
*/
|
|
1572
|
-
export const
|
|
1573
|
-
const localVarAxiosParamCreator =
|
|
2574
|
+
export const DomainsWHOISApiFp = function (configuration) {
|
|
2575
|
+
const localVarAxiosParamCreator = DomainsWHOISApiAxiosParamCreator(configuration);
|
|
1574
2576
|
return {
|
|
1575
2577
|
/**
|
|
1576
|
-
* This endpoint
|
|
1577
|
-
* @summary
|
|
2578
|
+
* This endpoint creates WHOIS contact profile.
|
|
2579
|
+
* @summary Create WHOIS profile
|
|
2580
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
1578
2581
|
* @param {*} [options] Override http request option.
|
|
1579
2582
|
* @throws {RequiredError}
|
|
1580
2583
|
*/
|
|
1581
|
-
|
|
2584
|
+
createWHOISProfileV1(domainsV1WHOISStoreRequest, options) {
|
|
1582
2585
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1583
2586
|
var _a, _b;
|
|
1584
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1585
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['
|
|
2587
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWHOISProfileV1(domainsV1WHOISStoreRequest, options);
|
|
2588
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsWHOISApi.createWHOISProfileV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2589
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2590
|
+
});
|
|
2591
|
+
},
|
|
2592
|
+
/**
|
|
2593
|
+
* This endpoint deletes WHOIS contact profile.
|
|
2594
|
+
* @summary Delete WHOIS profile
|
|
2595
|
+
* @param {number} whoisId WHOIS ID
|
|
2596
|
+
* @param {*} [options] Override http request option.
|
|
2597
|
+
* @throws {RequiredError}
|
|
2598
|
+
*/
|
|
2599
|
+
deleteWHOISProfileV1(whoisId, options) {
|
|
2600
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2601
|
+
var _a, _b;
|
|
2602
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWHOISProfileV1(whoisId, options);
|
|
2603
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsWHOISApi.deleteWHOISProfileV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2604
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2605
|
+
});
|
|
2606
|
+
},
|
|
2607
|
+
/**
|
|
2608
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
2609
|
+
* @summary Get WHOIS profile list
|
|
2610
|
+
* @param {string} [tld] Filter by TLD (without leading dot)
|
|
2611
|
+
* @param {*} [options] Override http request option.
|
|
2612
|
+
* @throws {RequiredError}
|
|
2613
|
+
*/
|
|
2614
|
+
getWHOISProfileListV1(tld, options) {
|
|
2615
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2616
|
+
var _a, _b;
|
|
2617
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWHOISProfileListV1(tld, options);
|
|
2618
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsWHOISApi.getWHOISProfileListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2619
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2620
|
+
});
|
|
2621
|
+
},
|
|
2622
|
+
/**
|
|
2623
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
2624
|
+
* @summary Get WHOIS profile usage
|
|
2625
|
+
* @param {number} whoisId WHOIS ID
|
|
2626
|
+
* @param {*} [options] Override http request option.
|
|
2627
|
+
* @throws {RequiredError}
|
|
2628
|
+
*/
|
|
2629
|
+
getWHOISProfileUsageV1(whoisId, options) {
|
|
2630
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2631
|
+
var _a, _b;
|
|
2632
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWHOISProfileUsageV1(whoisId, options);
|
|
2633
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsWHOISApi.getWHOISProfileUsageV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2634
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2635
|
+
});
|
|
2636
|
+
},
|
|
2637
|
+
/**
|
|
2638
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
2639
|
+
* @summary Get WHOIS profile
|
|
2640
|
+
* @param {number} whoisId WHOIS ID
|
|
2641
|
+
* @param {*} [options] Override http request option.
|
|
2642
|
+
* @throws {RequiredError}
|
|
2643
|
+
*/
|
|
2644
|
+
getWHOISProfileV1(whoisId, options) {
|
|
2645
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2646
|
+
var _a, _b;
|
|
2647
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWHOISProfileV1(whoisId, options);
|
|
2648
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsWHOISApi.getWHOISProfileV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1586
2649
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1587
2650
|
});
|
|
1588
2651
|
},
|
|
1589
2652
|
};
|
|
1590
2653
|
};
|
|
1591
2654
|
/**
|
|
1592
|
-
*
|
|
2655
|
+
* DomainsWHOISApi - factory interface
|
|
1593
2656
|
* @export
|
|
1594
2657
|
*/
|
|
1595
|
-
export const
|
|
1596
|
-
const localVarFp =
|
|
2658
|
+
export const DomainsWHOISApiFactory = function (configuration, basePath, axios) {
|
|
2659
|
+
const localVarFp = DomainsWHOISApiFp(configuration);
|
|
1597
2660
|
return {
|
|
1598
2661
|
/**
|
|
1599
|
-
* This endpoint
|
|
1600
|
-
* @summary
|
|
2662
|
+
* This endpoint creates WHOIS contact profile.
|
|
2663
|
+
* @summary Create WHOIS profile
|
|
2664
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
1601
2665
|
* @param {*} [options] Override http request option.
|
|
1602
2666
|
* @throws {RequiredError}
|
|
1603
2667
|
*/
|
|
1604
|
-
|
|
1605
|
-
return localVarFp.
|
|
2668
|
+
createWHOISProfileV1(domainsV1WHOISStoreRequest, options) {
|
|
2669
|
+
return localVarFp.createWHOISProfileV1(domainsV1WHOISStoreRequest, options).then((request) => request(axios, basePath));
|
|
2670
|
+
},
|
|
2671
|
+
/**
|
|
2672
|
+
* This endpoint deletes WHOIS contact profile.
|
|
2673
|
+
* @summary Delete WHOIS profile
|
|
2674
|
+
* @param {number} whoisId WHOIS ID
|
|
2675
|
+
* @param {*} [options] Override http request option.
|
|
2676
|
+
* @throws {RequiredError}
|
|
2677
|
+
*/
|
|
2678
|
+
deleteWHOISProfileV1(whoisId, options) {
|
|
2679
|
+
return localVarFp.deleteWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
|
|
2680
|
+
},
|
|
2681
|
+
/**
|
|
2682
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
2683
|
+
* @summary Get WHOIS profile list
|
|
2684
|
+
* @param {string} [tld] Filter by TLD (without leading dot)
|
|
2685
|
+
* @param {*} [options] Override http request option.
|
|
2686
|
+
* @throws {RequiredError}
|
|
2687
|
+
*/
|
|
2688
|
+
getWHOISProfileListV1(tld, options) {
|
|
2689
|
+
return localVarFp.getWHOISProfileListV1(tld, options).then((request) => request(axios, basePath));
|
|
2690
|
+
},
|
|
2691
|
+
/**
|
|
2692
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
2693
|
+
* @summary Get WHOIS profile usage
|
|
2694
|
+
* @param {number} whoisId WHOIS ID
|
|
2695
|
+
* @param {*} [options] Override http request option.
|
|
2696
|
+
* @throws {RequiredError}
|
|
2697
|
+
*/
|
|
2698
|
+
getWHOISProfileUsageV1(whoisId, options) {
|
|
2699
|
+
return localVarFp.getWHOISProfileUsageV1(whoisId, options).then((request) => request(axios, basePath));
|
|
2700
|
+
},
|
|
2701
|
+
/**
|
|
2702
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
2703
|
+
* @summary Get WHOIS profile
|
|
2704
|
+
* @param {number} whoisId WHOIS ID
|
|
2705
|
+
* @param {*} [options] Override http request option.
|
|
2706
|
+
* @throws {RequiredError}
|
|
2707
|
+
*/
|
|
2708
|
+
getWHOISProfileV1(whoisId, options) {
|
|
2709
|
+
return localVarFp.getWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
|
|
1606
2710
|
},
|
|
1607
2711
|
};
|
|
1608
2712
|
};
|
|
1609
2713
|
/**
|
|
1610
|
-
*
|
|
2714
|
+
* DomainsWHOISApi - object-oriented interface
|
|
1611
2715
|
* @export
|
|
1612
|
-
* @class
|
|
2716
|
+
* @class DomainsWHOISApi
|
|
1613
2717
|
* @extends {BaseAPI}
|
|
1614
2718
|
*/
|
|
1615
|
-
export class
|
|
2719
|
+
export class DomainsWHOISApi extends BaseAPI {
|
|
1616
2720
|
/**
|
|
1617
|
-
* This endpoint
|
|
1618
|
-
* @summary
|
|
2721
|
+
* This endpoint creates WHOIS contact profile.
|
|
2722
|
+
* @summary Create WHOIS profile
|
|
2723
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
1619
2724
|
* @param {*} [options] Override http request option.
|
|
1620
2725
|
* @throws {RequiredError}
|
|
1621
|
-
* @memberof
|
|
2726
|
+
* @memberof DomainsWHOISApi
|
|
1622
2727
|
*/
|
|
1623
|
-
|
|
1624
|
-
return
|
|
2728
|
+
createWHOISProfileV1(domainsV1WHOISStoreRequest, options) {
|
|
2729
|
+
return DomainsWHOISApiFp(this.configuration).createWHOISProfileV1(domainsV1WHOISStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2730
|
+
}
|
|
2731
|
+
/**
|
|
2732
|
+
* This endpoint deletes WHOIS contact profile.
|
|
2733
|
+
* @summary Delete WHOIS profile
|
|
2734
|
+
* @param {number} whoisId WHOIS ID
|
|
2735
|
+
* @param {*} [options] Override http request option.
|
|
2736
|
+
* @throws {RequiredError}
|
|
2737
|
+
* @memberof DomainsWHOISApi
|
|
2738
|
+
*/
|
|
2739
|
+
deleteWHOISProfileV1(whoisId, options) {
|
|
2740
|
+
return DomainsWHOISApiFp(this.configuration).deleteWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
2741
|
+
}
|
|
2742
|
+
/**
|
|
2743
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
2744
|
+
* @summary Get WHOIS profile list
|
|
2745
|
+
* @param {string} [tld] Filter by TLD (without leading dot)
|
|
2746
|
+
* @param {*} [options] Override http request option.
|
|
2747
|
+
* @throws {RequiredError}
|
|
2748
|
+
* @memberof DomainsWHOISApi
|
|
2749
|
+
*/
|
|
2750
|
+
getWHOISProfileListV1(tld, options) {
|
|
2751
|
+
return DomainsWHOISApiFp(this.configuration).getWHOISProfileListV1(tld, options).then((request) => request(this.axios, this.basePath));
|
|
2752
|
+
}
|
|
2753
|
+
/**
|
|
2754
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
2755
|
+
* @summary Get WHOIS profile usage
|
|
2756
|
+
* @param {number} whoisId WHOIS ID
|
|
2757
|
+
* @param {*} [options] Override http request option.
|
|
2758
|
+
* @throws {RequiredError}
|
|
2759
|
+
* @memberof DomainsWHOISApi
|
|
2760
|
+
*/
|
|
2761
|
+
getWHOISProfileUsageV1(whoisId, options) {
|
|
2762
|
+
return DomainsWHOISApiFp(this.configuration).getWHOISProfileUsageV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
2763
|
+
}
|
|
2764
|
+
/**
|
|
2765
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
2766
|
+
* @summary Get WHOIS profile
|
|
2767
|
+
* @param {number} whoisId WHOIS ID
|
|
2768
|
+
* @param {*} [options] Override http request option.
|
|
2769
|
+
* @throws {RequiredError}
|
|
2770
|
+
* @memberof DomainsWHOISApi
|
|
2771
|
+
*/
|
|
2772
|
+
getWHOISProfileV1(whoisId, options) {
|
|
2773
|
+
return DomainsWHOISApiFp(this.configuration).getWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
1625
2774
|
}
|
|
1626
2775
|
}
|
|
1627
2776
|
/**
|
|
@@ -4727,8 +5876,8 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
|
|
|
4727
5876
|
* This endpoint retrieves the historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime
|
|
4728
5877
|
* @summary Get metrics
|
|
4729
5878
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4730
|
-
* @param {string} dateFrom
|
|
4731
|
-
* @param {string} dateTo
|
|
5879
|
+
* @param {string} dateFrom
|
|
5880
|
+
* @param {string} dateTo
|
|
4732
5881
|
* @param {*} [options] Override http request option.
|
|
4733
5882
|
* @throws {RequiredError}
|
|
4734
5883
|
*/
|
|
@@ -4754,10 +5903,14 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
|
|
|
4754
5903
|
// http bearer authentication required
|
|
4755
5904
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4756
5905
|
if (dateFrom !== undefined) {
|
|
4757
|
-
localVarQueryParameter['date_from'] = dateFrom
|
|
5906
|
+
localVarQueryParameter['date_from'] = (dateFrom instanceof Date) ?
|
|
5907
|
+
dateFrom.toISOString() :
|
|
5908
|
+
dateFrom;
|
|
4758
5909
|
}
|
|
4759
5910
|
if (dateTo !== undefined) {
|
|
4760
|
-
localVarQueryParameter['date_to'] = dateTo
|
|
5911
|
+
localVarQueryParameter['date_to'] = (dateTo instanceof Date) ?
|
|
5912
|
+
dateTo.toISOString() :
|
|
5913
|
+
dateTo;
|
|
4761
5914
|
}
|
|
4762
5915
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4763
5916
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -4827,6 +5980,39 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
|
|
|
4827
5980
|
options: localVarRequestOptions,
|
|
4828
5981
|
};
|
|
4829
5982
|
}),
|
|
5983
|
+
/**
|
|
5984
|
+
* This endpoint allows you to buy (purchase) and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically.
|
|
5985
|
+
* @summary Purchase new virtual machine
|
|
5986
|
+
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
5987
|
+
* @param {*} [options] Override http request option.
|
|
5988
|
+
* @throws {RequiredError}
|
|
5989
|
+
*/
|
|
5990
|
+
purchaseNewVirtualMachineV1: (vPSV1VirtualMachinePurchaseRequest_1, ...args_1) => __awaiter(this, [vPSV1VirtualMachinePurchaseRequest_1, ...args_1], void 0, function* (vPSV1VirtualMachinePurchaseRequest, options = {}) {
|
|
5991
|
+
// verify required parameter 'vPSV1VirtualMachinePurchaseRequest' is not null or undefined
|
|
5992
|
+
assertParamExists('purchaseNewVirtualMachineV1', 'vPSV1VirtualMachinePurchaseRequest', vPSV1VirtualMachinePurchaseRequest);
|
|
5993
|
+
const localVarPath = `/api/vps/v1/virtual-machines`;
|
|
5994
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5995
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5996
|
+
let baseOptions;
|
|
5997
|
+
if (configuration) {
|
|
5998
|
+
baseOptions = configuration.baseOptions;
|
|
5999
|
+
}
|
|
6000
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6001
|
+
const localVarHeaderParameter = {};
|
|
6002
|
+
const localVarQueryParameter = {};
|
|
6003
|
+
// authentication apiToken required
|
|
6004
|
+
// http bearer authentication required
|
|
6005
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6006
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6007
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6008
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6009
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6010
|
+
localVarRequestOptions.data = serializeDataIfNeeded(vPSV1VirtualMachinePurchaseRequest, localVarRequestOptions, configuration);
|
|
6011
|
+
return {
|
|
6012
|
+
url: toPathString(localVarUrlObj),
|
|
6013
|
+
options: localVarRequestOptions,
|
|
6014
|
+
};
|
|
6015
|
+
}),
|
|
4830
6016
|
/**
|
|
4831
6017
|
* This endpoint will recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 8 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!**
|
|
4832
6018
|
* @summary Recreate virtual machine
|
|
@@ -5077,7 +6263,7 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
|
|
|
5077
6263
|
};
|
|
5078
6264
|
}),
|
|
5079
6265
|
/**
|
|
5080
|
-
* This endpoint will setup newly purchased virtual machine
|
|
6266
|
+
* This endpoint will setup newly purchased virtual machine with `initial` state.
|
|
5081
6267
|
* @summary Setup new virtual machine
|
|
5082
6268
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5083
6269
|
* @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest
|
|
@@ -5206,8 +6392,8 @@ export const VPSVirtualMachineApiFp = function (configuration) {
|
|
|
5206
6392
|
* This endpoint retrieves the historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime
|
|
5207
6393
|
* @summary Get metrics
|
|
5208
6394
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5209
|
-
* @param {string} dateFrom
|
|
5210
|
-
* @param {string} dateTo
|
|
6395
|
+
* @param {string} dateFrom
|
|
6396
|
+
* @param {string} dateTo
|
|
5211
6397
|
* @param {*} [options] Override http request option.
|
|
5212
6398
|
* @throws {RequiredError}
|
|
5213
6399
|
*/
|
|
@@ -5248,6 +6434,21 @@ export const VPSVirtualMachineApiFp = function (configuration) {
|
|
|
5248
6434
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5249
6435
|
});
|
|
5250
6436
|
},
|
|
6437
|
+
/**
|
|
6438
|
+
* This endpoint allows you to buy (purchase) and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically.
|
|
6439
|
+
* @summary Purchase new virtual machine
|
|
6440
|
+
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
6441
|
+
* @param {*} [options] Override http request option.
|
|
6442
|
+
* @throws {RequiredError}
|
|
6443
|
+
*/
|
|
6444
|
+
purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options) {
|
|
6445
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6446
|
+
var _a, _b;
|
|
6447
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options);
|
|
6448
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['VPSVirtualMachineApi.purchaseNewVirtualMachineV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6449
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6450
|
+
});
|
|
6451
|
+
},
|
|
5251
6452
|
/**
|
|
5252
6453
|
* This endpoint will recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 8 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!**
|
|
5253
6454
|
* @summary Recreate virtual machine
|
|
@@ -5359,7 +6560,7 @@ export const VPSVirtualMachineApiFp = function (configuration) {
|
|
|
5359
6560
|
});
|
|
5360
6561
|
},
|
|
5361
6562
|
/**
|
|
5362
|
-
* This endpoint will setup newly purchased virtual machine
|
|
6563
|
+
* This endpoint will setup newly purchased virtual machine with `initial` state.
|
|
5363
6564
|
* @summary Setup new virtual machine
|
|
5364
6565
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5365
6566
|
* @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest
|
|
@@ -5428,8 +6629,8 @@ export const VPSVirtualMachineApiFactory = function (configuration, basePath, ax
|
|
|
5428
6629
|
* This endpoint retrieves the historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime
|
|
5429
6630
|
* @summary Get metrics
|
|
5430
6631
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5431
|
-
* @param {string} dateFrom
|
|
5432
|
-
* @param {string} dateTo
|
|
6632
|
+
* @param {string} dateFrom
|
|
6633
|
+
* @param {string} dateTo
|
|
5433
6634
|
* @param {*} [options] Override http request option.
|
|
5434
6635
|
* @throws {RequiredError}
|
|
5435
6636
|
*/
|
|
@@ -5455,6 +6656,16 @@ export const VPSVirtualMachineApiFactory = function (configuration, basePath, ax
|
|
|
5455
6656
|
getVirtualMachineV1(virtualMachineId, options) {
|
|
5456
6657
|
return localVarFp.getVirtualMachineV1(virtualMachineId, options).then((request) => request(axios, basePath));
|
|
5457
6658
|
},
|
|
6659
|
+
/**
|
|
6660
|
+
* This endpoint allows you to buy (purchase) and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically.
|
|
6661
|
+
* @summary Purchase new virtual machine
|
|
6662
|
+
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
6663
|
+
* @param {*} [options] Override http request option.
|
|
6664
|
+
* @throws {RequiredError}
|
|
6665
|
+
*/
|
|
6666
|
+
purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options) {
|
|
6667
|
+
return localVarFp.purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options).then((request) => request(axios, basePath));
|
|
6668
|
+
},
|
|
5458
6669
|
/**
|
|
5459
6670
|
* This endpoint will recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 8 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!**
|
|
5460
6671
|
* @summary Recreate virtual machine
|
|
@@ -5531,7 +6742,7 @@ export const VPSVirtualMachineApiFactory = function (configuration, basePath, ax
|
|
|
5531
6742
|
return localVarFp.setRootPasswordV1(virtualMachineId, vPSV1VirtualMachineRootPasswordUpdateRequest, options).then((request) => request(axios, basePath));
|
|
5532
6743
|
},
|
|
5533
6744
|
/**
|
|
5534
|
-
* This endpoint will setup newly purchased virtual machine
|
|
6745
|
+
* This endpoint will setup newly purchased virtual machine with `initial` state.
|
|
5535
6746
|
* @summary Setup new virtual machine
|
|
5536
6747
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5537
6748
|
* @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest
|
|
@@ -5586,8 +6797,8 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
5586
6797
|
* This endpoint retrieves the historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime
|
|
5587
6798
|
* @summary Get metrics
|
|
5588
6799
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5589
|
-
* @param {string} dateFrom
|
|
5590
|
-
* @param {string} dateTo
|
|
6800
|
+
* @param {string} dateFrom
|
|
6801
|
+
* @param {string} dateTo
|
|
5591
6802
|
* @param {*} [options] Override http request option.
|
|
5592
6803
|
* @throws {RequiredError}
|
|
5593
6804
|
* @memberof VPSVirtualMachineApi
|
|
@@ -5616,6 +6827,17 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
5616
6827
|
getVirtualMachineV1(virtualMachineId, options) {
|
|
5617
6828
|
return VPSVirtualMachineApiFp(this.configuration).getVirtualMachineV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
|
|
5618
6829
|
}
|
|
6830
|
+
/**
|
|
6831
|
+
* This endpoint allows you to buy (purchase) and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically.
|
|
6832
|
+
* @summary Purchase new virtual machine
|
|
6833
|
+
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
6834
|
+
* @param {*} [options] Override http request option.
|
|
6835
|
+
* @throws {RequiredError}
|
|
6836
|
+
* @memberof VPSVirtualMachineApi
|
|
6837
|
+
*/
|
|
6838
|
+
purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options) {
|
|
6839
|
+
return VPSVirtualMachineApiFp(this.configuration).purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6840
|
+
}
|
|
5619
6841
|
/**
|
|
5620
6842
|
* This endpoint will recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 8 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!**
|
|
5621
6843
|
* @summary Recreate virtual machine
|
|
@@ -5699,7 +6921,7 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
5699
6921
|
return VPSVirtualMachineApiFp(this.configuration).setRootPasswordV1(virtualMachineId, vPSV1VirtualMachineRootPasswordUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5700
6922
|
}
|
|
5701
6923
|
/**
|
|
5702
|
-
* This endpoint will setup newly purchased virtual machine
|
|
6924
|
+
* This endpoint will setup newly purchased virtual machine with `initial` state.
|
|
5703
6925
|
* @summary Setup new virtual machine
|
|
5704
6926
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5705
6927
|
* @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest
|