hostinger-api-sdk 0.0.8 → 0.0.10
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 +1911 -180
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1218 -170
- package/dist/api.js +1277 -37
- 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 +1218 -170
- package/dist/esm/api.js +1258 -31
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BillingCatalogApi.md +54 -0
- package/docs/BillingOrdersApi.md +63 -0
- package/docs/BillingPaymentMethodsApi.md +162 -0
- package/docs/BillingSubscriptionsApi.md +113 -0
- package/docs/BillingV1CatalogCatalogItemPriceResource.md +32 -0
- package/docs/BillingV1CatalogCatalogItemResource.md +26 -0
- package/docs/BillingV1OrderOrderBillingAddressResource.md +40 -0
- package/docs/BillingV1OrderOrderResource.md +36 -0
- package/docs/BillingV1OrderStoreRequest.md +24 -0
- package/docs/BillingV1OrderStoreRequestItemsInner.md +22 -0
- package/docs/BillingV1PaymentMethodPaymentMethodResource.md +36 -0
- package/docs/BillingV1SubscriptionCancelRequest.md +22 -0
- package/docs/BillingV1SubscriptionSubscriptionResource.md +42 -0
- package/docs/CommonSchemaErrorResponseSchema.md +22 -0
- package/docs/CommonSchemaPaginationMetaSchema.md +24 -0
- package/docs/CommonSchemaUnauthorizedResponseSchema.md +22 -0
- package/docs/CommonSchemaUnprocessableContentResponseSchema.md +24 -0
- package/docs/CommonSchemaUnprocessableContentResponseSchemaErrors.md +22 -0
- package/docs/CommonSuccessEmptyResource.md +20 -0
- package/docs/DNSSnapshotApi.md +175 -0
- package/docs/DNSV1SnapshotSnapshotResource.md +24 -0
- package/docs/DNSV1SnapshotSnapshotWithContentResource.md +26 -0
- package/docs/DNSV1ZoneDestroyRequest.md +20 -0
- package/docs/DNSV1ZoneDestroyRequestFiltersInner.md +22 -0
- package/docs/DNSV1ZoneNameRecordResource.md +22 -0
- package/docs/DNSV1ZoneRecordResource.md +26 -0
- package/docs/DNSV1ZoneResetRequest.md +24 -0
- package/docs/DNSV1ZoneUpdateRequest.md +22 -0
- package/docs/DNSV1ZoneUpdateRequestZoneInner.md +26 -0
- package/docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md +20 -0
- package/docs/DNSZoneApi.md +297 -0
- package/docs/DomainsAvailabilityApi.md +63 -0
- package/docs/DomainsForwardingApi.md +171 -0
- package/docs/DomainsPortfolioApi.md +439 -0
- package/docs/DomainsV1AvailabilityAvailabilityRequest.md +24 -0
- package/docs/DomainsV1AvailabilityAvailabilityResource.md +26 -0
- package/docs/DomainsV1DomainDomainExtendedResource.md +48 -0
- package/docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md +27 -0
- package/docs/DomainsV1DomainDomainExtendedResourceNameServers.md +23 -0
- package/docs/DomainsV1DomainDomainResource.md +30 -0
- package/docs/DomainsV1ForwardingForwardingResource.md +28 -0
- package/docs/DomainsV1ForwardingStoreRequest.md +24 -0
- package/docs/DomainsV1PortfolioPurchaseRequest.md +30 -0
- package/docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md +27 -0
- package/docs/DomainsV1PortfolioUpdateNameserversRequest.md +26 -0
- package/docs/DomainsV1WHOISProfileResource.md +34 -0
- package/docs/DomainsV1WHOISStoreRequest.md +28 -0
- package/docs/DomainsWHOISApi.md +279 -0
- package/docs/VPSActionsApi.md +121 -0
- package/docs/VPSBackupsApi.md +178 -0
- package/docs/VPSDataCentersApi.md +54 -0
- package/docs/VPSFirewallApi.md +577 -0
- package/docs/VPSGetActionListV1200Response.md +22 -0
- package/docs/VPSGetBackupListV1200Response.md +22 -0
- package/docs/VPSGetFirewallListV1200Response.md +22 -0
- package/docs/VPSGetPostInstallScriptListV1200Response.md +22 -0
- package/docs/VPSGetPublicKeyListV1200Response.md +22 -0
- package/docs/VPSMalwareScannerApi.md +172 -0
- package/docs/VPSOSTemplatesApi.md +108 -0
- package/docs/VPSPTRRecordsApi.md +115 -0
- package/docs/VPSPostInstallScriptsApi.md +284 -0
- package/docs/VPSPublicKeysApi.md +230 -0
- package/docs/VPSRecoveryApi.md +120 -0
- package/docs/VPSSnapshotsApi.md +223 -0
- package/docs/VPSV1ActionActionResource.md +28 -0
- package/docs/VPSV1BackupBackupResource.md +24 -0
- package/docs/VPSV1DataCenterDataCenterResource.md +28 -0
- package/docs/VPSV1FirewallFirewallResource.md +30 -0
- package/docs/VPSV1FirewallFirewallRuleResource.md +30 -0
- package/docs/VPSV1FirewallRulesStoreRequest.md +26 -0
- package/docs/VPSV1FirewallStoreRequest.md +20 -0
- package/docs/VPSV1IPAddressIPAddressResource.md +24 -0
- package/docs/VPSV1MalwareMetricsResource.md +30 -0
- package/docs/VPSV1MetricsMetricsCollection.md +30 -0
- package/docs/VPSV1MetricsMetricsResource.md +22 -0
- package/docs/VPSV1PostInstallScriptPostInstallScriptResource.md +28 -0
- package/docs/VPSV1PostInstallScriptStoreRequest.md +22 -0
- package/docs/VPSV1PublicKeyAttachRequest.md +20 -0
- package/docs/VPSV1PublicKeyPublicKeyResource.md +24 -0
- package/docs/VPSV1PublicKeyStoreRequest.md +22 -0
- package/docs/VPSV1SnapshotSnapshotResource.md +24 -0
- package/docs/VPSV1TemplateTemplateResource.md +26 -0
- package/docs/VPSV1VirtualMachineHostnameUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +22 -0
- package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +20 -0
- package/docs/VPSV1VirtualMachineRecreateRequest.md +24 -0
- package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachineSetupRequest.md +38 -0
- package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +22 -0
- package/docs/VPSV1VirtualMachineVirtualMachineResource.md +52 -0
- package/docs/VPSVirtualMachineApi.md +796 -0
- 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.37
|
|
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',
|
|
@@ -1427,19 +1452,191 @@ export class DNSZoneApi extends BaseAPI {
|
|
|
1427
1452
|
}
|
|
1428
1453
|
}
|
|
1429
1454
|
/**
|
|
1430
|
-
*
|
|
1455
|
+
* DomainsAvailabilityApi - axios parameter creator
|
|
1431
1456
|
* @export
|
|
1432
1457
|
*/
|
|
1433
|
-
export const
|
|
1458
|
+
export const DomainsAvailabilityApiAxiosParamCreator = function (configuration) {
|
|
1434
1459
|
return {
|
|
1435
1460
|
/**
|
|
1436
|
-
* This endpoint
|
|
1437
|
-
* @summary
|
|
1461
|
+
* 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.
|
|
1462
|
+
* @summary Check domain availability
|
|
1463
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
1438
1464
|
* @param {*} [options] Override http request option.
|
|
1439
1465
|
* @throws {RequiredError}
|
|
1440
1466
|
*/
|
|
1441
|
-
|
|
1442
|
-
|
|
1467
|
+
checkDomainAvailabilityV1: (domainsV1AvailabilityAvailabilityRequest_1, ...args_1) => __awaiter(this, [domainsV1AvailabilityAvailabilityRequest_1, ...args_1], void 0, function* (domainsV1AvailabilityAvailabilityRequest, options = {}) {
|
|
1468
|
+
// verify required parameter 'domainsV1AvailabilityAvailabilityRequest' is not null or undefined
|
|
1469
|
+
assertParamExists('checkDomainAvailabilityV1', 'domainsV1AvailabilityAvailabilityRequest', domainsV1AvailabilityAvailabilityRequest);
|
|
1470
|
+
const localVarPath = `/api/domains/v1/availability`;
|
|
1471
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1472
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1473
|
+
let baseOptions;
|
|
1474
|
+
if (configuration) {
|
|
1475
|
+
baseOptions = configuration.baseOptions;
|
|
1476
|
+
}
|
|
1477
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1478
|
+
const localVarHeaderParameter = {};
|
|
1479
|
+
const localVarQueryParameter = {};
|
|
1480
|
+
// authentication apiToken required
|
|
1481
|
+
// http bearer authentication required
|
|
1482
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1483
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1484
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1485
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1486
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1487
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1AvailabilityAvailabilityRequest, localVarRequestOptions, configuration);
|
|
1488
|
+
return {
|
|
1489
|
+
url: toPathString(localVarUrlObj),
|
|
1490
|
+
options: localVarRequestOptions,
|
|
1491
|
+
};
|
|
1492
|
+
}),
|
|
1493
|
+
};
|
|
1494
|
+
};
|
|
1495
|
+
/**
|
|
1496
|
+
* DomainsAvailabilityApi - functional programming interface
|
|
1497
|
+
* @export
|
|
1498
|
+
*/
|
|
1499
|
+
export const DomainsAvailabilityApiFp = function (configuration) {
|
|
1500
|
+
const localVarAxiosParamCreator = DomainsAvailabilityApiAxiosParamCreator(configuration);
|
|
1501
|
+
return {
|
|
1502
|
+
/**
|
|
1503
|
+
* 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.
|
|
1504
|
+
* @summary Check domain availability
|
|
1505
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
1506
|
+
* @param {*} [options] Override http request option.
|
|
1507
|
+
* @throws {RequiredError}
|
|
1508
|
+
*/
|
|
1509
|
+
checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options) {
|
|
1510
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1511
|
+
var _a, _b;
|
|
1512
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options);
|
|
1513
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsAvailabilityApi.checkDomainAvailabilityV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1514
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1515
|
+
});
|
|
1516
|
+
},
|
|
1517
|
+
};
|
|
1518
|
+
};
|
|
1519
|
+
/**
|
|
1520
|
+
* DomainsAvailabilityApi - factory interface
|
|
1521
|
+
* @export
|
|
1522
|
+
*/
|
|
1523
|
+
export const DomainsAvailabilityApiFactory = function (configuration, basePath, axios) {
|
|
1524
|
+
const localVarFp = DomainsAvailabilityApiFp(configuration);
|
|
1525
|
+
return {
|
|
1526
|
+
/**
|
|
1527
|
+
* 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.
|
|
1528
|
+
* @summary Check domain availability
|
|
1529
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
1530
|
+
* @param {*} [options] Override http request option.
|
|
1531
|
+
* @throws {RequiredError}
|
|
1532
|
+
*/
|
|
1533
|
+
checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options) {
|
|
1534
|
+
return localVarFp.checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(axios, basePath));
|
|
1535
|
+
},
|
|
1536
|
+
};
|
|
1537
|
+
};
|
|
1538
|
+
/**
|
|
1539
|
+
* DomainsAvailabilityApi - object-oriented interface
|
|
1540
|
+
* @export
|
|
1541
|
+
* @class DomainsAvailabilityApi
|
|
1542
|
+
* @extends {BaseAPI}
|
|
1543
|
+
*/
|
|
1544
|
+
export class DomainsAvailabilityApi extends BaseAPI {
|
|
1545
|
+
/**
|
|
1546
|
+
* 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.
|
|
1547
|
+
* @summary Check domain availability
|
|
1548
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
1549
|
+
* @param {*} [options] Override http request option.
|
|
1550
|
+
* @throws {RequiredError}
|
|
1551
|
+
* @memberof DomainsAvailabilityApi
|
|
1552
|
+
*/
|
|
1553
|
+
checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options) {
|
|
1554
|
+
return DomainsAvailabilityApiFp(this.configuration).checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
/**
|
|
1558
|
+
* DomainsForwardingApi - axios parameter creator
|
|
1559
|
+
* @export
|
|
1560
|
+
*/
|
|
1561
|
+
export const DomainsForwardingApiAxiosParamCreator = function (configuration) {
|
|
1562
|
+
return {
|
|
1563
|
+
/**
|
|
1564
|
+
* This endpoint creates domain forwarding data.
|
|
1565
|
+
* @summary Create forwarding data
|
|
1566
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
1567
|
+
* @param {*} [options] Override http request option.
|
|
1568
|
+
* @throws {RequiredError}
|
|
1569
|
+
*/
|
|
1570
|
+
createForwardingDataV1: (domainsV1ForwardingStoreRequest_1, ...args_1) => __awaiter(this, [domainsV1ForwardingStoreRequest_1, ...args_1], void 0, function* (domainsV1ForwardingStoreRequest, options = {}) {
|
|
1571
|
+
// verify required parameter 'domainsV1ForwardingStoreRequest' is not null or undefined
|
|
1572
|
+
assertParamExists('createForwardingDataV1', 'domainsV1ForwardingStoreRequest', domainsV1ForwardingStoreRequest);
|
|
1573
|
+
const localVarPath = `/api/domains/v1/forwarding`;
|
|
1574
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1575
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1576
|
+
let baseOptions;
|
|
1577
|
+
if (configuration) {
|
|
1578
|
+
baseOptions = configuration.baseOptions;
|
|
1579
|
+
}
|
|
1580
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1581
|
+
const localVarHeaderParameter = {};
|
|
1582
|
+
const localVarQueryParameter = {};
|
|
1583
|
+
// authentication apiToken required
|
|
1584
|
+
// http bearer authentication required
|
|
1585
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1586
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1587
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1588
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1589
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1590
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1ForwardingStoreRequest, localVarRequestOptions, configuration);
|
|
1591
|
+
return {
|
|
1592
|
+
url: toPathString(localVarUrlObj),
|
|
1593
|
+
options: localVarRequestOptions,
|
|
1594
|
+
};
|
|
1595
|
+
}),
|
|
1596
|
+
/**
|
|
1597
|
+
* This endpoint deletes domain forwarding data.
|
|
1598
|
+
* @summary Delete forwarding data
|
|
1599
|
+
* @param {string} domain Domain name
|
|
1600
|
+
* @param {*} [options] Override http request option.
|
|
1601
|
+
* @throws {RequiredError}
|
|
1602
|
+
*/
|
|
1603
|
+
deleteForwardingDataV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1604
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1605
|
+
assertParamExists('deleteForwardingDataV1', 'domain', domain);
|
|
1606
|
+
const localVarPath = `/api/domains/v1/forwarding/{domain}`
|
|
1607
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1608
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1609
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1610
|
+
let baseOptions;
|
|
1611
|
+
if (configuration) {
|
|
1612
|
+
baseOptions = configuration.baseOptions;
|
|
1613
|
+
}
|
|
1614
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1615
|
+
const localVarHeaderParameter = {};
|
|
1616
|
+
const localVarQueryParameter = {};
|
|
1617
|
+
// authentication apiToken required
|
|
1618
|
+
// http bearer authentication required
|
|
1619
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1620
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1621
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1622
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1623
|
+
return {
|
|
1624
|
+
url: toPathString(localVarUrlObj),
|
|
1625
|
+
options: localVarRequestOptions,
|
|
1626
|
+
};
|
|
1627
|
+
}),
|
|
1628
|
+
/**
|
|
1629
|
+
* This endpoint retrieves domain forwarding data.
|
|
1630
|
+
* @summary Get forwarding data
|
|
1631
|
+
* @param {string} domain Domain name
|
|
1632
|
+
* @param {*} [options] Override http request option.
|
|
1633
|
+
* @throws {RequiredError}
|
|
1634
|
+
*/
|
|
1635
|
+
getForwardingDataV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1636
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1637
|
+
assertParamExists('getForwardingDataV1', 'domain', domain);
|
|
1638
|
+
const localVarPath = `/api/domains/v1/forwarding/{domain}`
|
|
1639
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1443
1640
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1444
1641
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1445
1642
|
let baseOptions;
|
|
@@ -1463,62 +1660,1092 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
|
|
|
1463
1660
|
};
|
|
1464
1661
|
};
|
|
1465
1662
|
/**
|
|
1466
|
-
*
|
|
1663
|
+
* DomainsForwardingApi - functional programming interface
|
|
1467
1664
|
* @export
|
|
1468
1665
|
*/
|
|
1469
|
-
export const
|
|
1470
|
-
const localVarAxiosParamCreator =
|
|
1666
|
+
export const DomainsForwardingApiFp = function (configuration) {
|
|
1667
|
+
const localVarAxiosParamCreator = DomainsForwardingApiAxiosParamCreator(configuration);
|
|
1471
1668
|
return {
|
|
1472
1669
|
/**
|
|
1473
|
-
* This endpoint
|
|
1474
|
-
* @summary
|
|
1670
|
+
* This endpoint creates domain forwarding data.
|
|
1671
|
+
* @summary Create forwarding data
|
|
1672
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
1475
1673
|
* @param {*} [options] Override http request option.
|
|
1476
1674
|
* @throws {RequiredError}
|
|
1477
1675
|
*/
|
|
1478
|
-
|
|
1676
|
+
createForwardingDataV1(domainsV1ForwardingStoreRequest, options) {
|
|
1479
1677
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1480
1678
|
var _a, _b;
|
|
1481
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1482
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['
|
|
1679
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createForwardingDataV1(domainsV1ForwardingStoreRequest, options);
|
|
1680
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsForwardingApi.createForwardingDataV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1681
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1682
|
+
});
|
|
1683
|
+
},
|
|
1684
|
+
/**
|
|
1685
|
+
* This endpoint deletes domain forwarding data.
|
|
1686
|
+
* @summary Delete forwarding data
|
|
1687
|
+
* @param {string} domain Domain name
|
|
1688
|
+
* @param {*} [options] Override http request option.
|
|
1689
|
+
* @throws {RequiredError}
|
|
1690
|
+
*/
|
|
1691
|
+
deleteForwardingDataV1(domain, options) {
|
|
1692
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1693
|
+
var _a, _b;
|
|
1694
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteForwardingDataV1(domain, options);
|
|
1695
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsForwardingApi.deleteForwardingDataV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1696
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1697
|
+
});
|
|
1698
|
+
},
|
|
1699
|
+
/**
|
|
1700
|
+
* This endpoint retrieves domain forwarding data.
|
|
1701
|
+
* @summary Get forwarding data
|
|
1702
|
+
* @param {string} domain Domain name
|
|
1703
|
+
* @param {*} [options] Override http request option.
|
|
1704
|
+
* @throws {RequiredError}
|
|
1705
|
+
*/
|
|
1706
|
+
getForwardingDataV1(domain, options) {
|
|
1707
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1708
|
+
var _a, _b;
|
|
1709
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getForwardingDataV1(domain, options);
|
|
1710
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsForwardingApi.getForwardingDataV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1483
1711
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1484
1712
|
});
|
|
1485
1713
|
},
|
|
1486
1714
|
};
|
|
1487
1715
|
};
|
|
1488
1716
|
/**
|
|
1489
|
-
*
|
|
1717
|
+
* DomainsForwardingApi - factory interface
|
|
1490
1718
|
* @export
|
|
1491
1719
|
*/
|
|
1492
|
-
export const
|
|
1493
|
-
const localVarFp =
|
|
1720
|
+
export const DomainsForwardingApiFactory = function (configuration, basePath, axios) {
|
|
1721
|
+
const localVarFp = DomainsForwardingApiFp(configuration);
|
|
1494
1722
|
return {
|
|
1495
1723
|
/**
|
|
1496
|
-
* This endpoint
|
|
1497
|
-
* @summary
|
|
1724
|
+
* This endpoint creates domain forwarding data.
|
|
1725
|
+
* @summary Create forwarding data
|
|
1726
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
1498
1727
|
* @param {*} [options] Override http request option.
|
|
1499
1728
|
* @throws {RequiredError}
|
|
1500
1729
|
*/
|
|
1501
|
-
|
|
1502
|
-
return localVarFp.
|
|
1730
|
+
createForwardingDataV1(domainsV1ForwardingStoreRequest, options) {
|
|
1731
|
+
return localVarFp.createForwardingDataV1(domainsV1ForwardingStoreRequest, options).then((request) => request(axios, basePath));
|
|
1732
|
+
},
|
|
1733
|
+
/**
|
|
1734
|
+
* This endpoint deletes domain forwarding data.
|
|
1735
|
+
* @summary Delete forwarding data
|
|
1736
|
+
* @param {string} domain Domain name
|
|
1737
|
+
* @param {*} [options] Override http request option.
|
|
1738
|
+
* @throws {RequiredError}
|
|
1739
|
+
*/
|
|
1740
|
+
deleteForwardingDataV1(domain, options) {
|
|
1741
|
+
return localVarFp.deleteForwardingDataV1(domain, options).then((request) => request(axios, basePath));
|
|
1742
|
+
},
|
|
1743
|
+
/**
|
|
1744
|
+
* This endpoint retrieves domain forwarding data.
|
|
1745
|
+
* @summary Get forwarding data
|
|
1746
|
+
* @param {string} domain Domain name
|
|
1747
|
+
* @param {*} [options] Override http request option.
|
|
1748
|
+
* @throws {RequiredError}
|
|
1749
|
+
*/
|
|
1750
|
+
getForwardingDataV1(domain, options) {
|
|
1751
|
+
return localVarFp.getForwardingDataV1(domain, options).then((request) => request(axios, basePath));
|
|
1503
1752
|
},
|
|
1504
1753
|
};
|
|
1505
1754
|
};
|
|
1506
1755
|
/**
|
|
1507
|
-
*
|
|
1756
|
+
* DomainsForwardingApi - object-oriented interface
|
|
1508
1757
|
* @export
|
|
1509
|
-
* @class
|
|
1758
|
+
* @class DomainsForwardingApi
|
|
1510
1759
|
* @extends {BaseAPI}
|
|
1511
1760
|
*/
|
|
1512
|
-
export class
|
|
1761
|
+
export class DomainsForwardingApi extends BaseAPI {
|
|
1513
1762
|
/**
|
|
1514
|
-
* This endpoint
|
|
1515
|
-
* @summary
|
|
1763
|
+
* This endpoint creates domain forwarding data.
|
|
1764
|
+
* @summary Create forwarding data
|
|
1765
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
1516
1766
|
* @param {*} [options] Override http request option.
|
|
1517
1767
|
* @throws {RequiredError}
|
|
1518
|
-
* @memberof
|
|
1768
|
+
* @memberof DomainsForwardingApi
|
|
1519
1769
|
*/
|
|
1520
|
-
|
|
1521
|
-
return
|
|
1770
|
+
createForwardingDataV1(domainsV1ForwardingStoreRequest, options) {
|
|
1771
|
+
return DomainsForwardingApiFp(this.configuration).createForwardingDataV1(domainsV1ForwardingStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1772
|
+
}
|
|
1773
|
+
/**
|
|
1774
|
+
* This endpoint deletes domain forwarding data.
|
|
1775
|
+
* @summary Delete forwarding data
|
|
1776
|
+
* @param {string} domain Domain name
|
|
1777
|
+
* @param {*} [options] Override http request option.
|
|
1778
|
+
* @throws {RequiredError}
|
|
1779
|
+
* @memberof DomainsForwardingApi
|
|
1780
|
+
*/
|
|
1781
|
+
deleteForwardingDataV1(domain, options) {
|
|
1782
|
+
return DomainsForwardingApiFp(this.configuration).deleteForwardingDataV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
1783
|
+
}
|
|
1784
|
+
/**
|
|
1785
|
+
* This endpoint retrieves domain forwarding data.
|
|
1786
|
+
* @summary Get forwarding data
|
|
1787
|
+
* @param {string} domain Domain name
|
|
1788
|
+
* @param {*} [options] Override http request option.
|
|
1789
|
+
* @throws {RequiredError}
|
|
1790
|
+
* @memberof DomainsForwardingApi
|
|
1791
|
+
*/
|
|
1792
|
+
getForwardingDataV1(domain, options) {
|
|
1793
|
+
return DomainsForwardingApiFp(this.configuration).getForwardingDataV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
/**
|
|
1797
|
+
* DomainsPortfolioApi - axios parameter creator
|
|
1798
|
+
* @export
|
|
1799
|
+
*/
|
|
1800
|
+
export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
|
|
1801
|
+
return {
|
|
1802
|
+
/**
|
|
1803
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
1804
|
+
* @summary Disable domain lock
|
|
1805
|
+
* @param {string} domain Domain name
|
|
1806
|
+
* @param {*} [options] Override http request option.
|
|
1807
|
+
* @throws {RequiredError}
|
|
1808
|
+
*/
|
|
1809
|
+
disableDomainLockV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1810
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1811
|
+
assertParamExists('disableDomainLockV1', 'domain', domain);
|
|
1812
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
|
|
1813
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1814
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1815
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1816
|
+
let baseOptions;
|
|
1817
|
+
if (configuration) {
|
|
1818
|
+
baseOptions = configuration.baseOptions;
|
|
1819
|
+
}
|
|
1820
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1821
|
+
const localVarHeaderParameter = {};
|
|
1822
|
+
const localVarQueryParameter = {};
|
|
1823
|
+
// authentication apiToken required
|
|
1824
|
+
// http bearer authentication required
|
|
1825
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1826
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1827
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1828
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1829
|
+
return {
|
|
1830
|
+
url: toPathString(localVarUrlObj),
|
|
1831
|
+
options: localVarRequestOptions,
|
|
1832
|
+
};
|
|
1833
|
+
}),
|
|
1834
|
+
/**
|
|
1835
|
+
* 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.
|
|
1836
|
+
* @summary Disable privacy protection
|
|
1837
|
+
* @param {string} domain Domain name
|
|
1838
|
+
* @param {*} [options] Override http request option.
|
|
1839
|
+
* @throws {RequiredError}
|
|
1840
|
+
*/
|
|
1841
|
+
disablePrivacyProtectionV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1842
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1843
|
+
assertParamExists('disablePrivacyProtectionV1', 'domain', domain);
|
|
1844
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
|
|
1845
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1846
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1847
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1848
|
+
let baseOptions;
|
|
1849
|
+
if (configuration) {
|
|
1850
|
+
baseOptions = configuration.baseOptions;
|
|
1851
|
+
}
|
|
1852
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1853
|
+
const localVarHeaderParameter = {};
|
|
1854
|
+
const localVarQueryParameter = {};
|
|
1855
|
+
// authentication apiToken required
|
|
1856
|
+
// http bearer authentication required
|
|
1857
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1858
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1859
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1860
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1861
|
+
return {
|
|
1862
|
+
url: toPathString(localVarUrlObj),
|
|
1863
|
+
options: localVarRequestOptions,
|
|
1864
|
+
};
|
|
1865
|
+
}),
|
|
1866
|
+
/**
|
|
1867
|
+
* 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.
|
|
1868
|
+
* @summary Enable domain lock
|
|
1869
|
+
* @param {string} domain Domain name
|
|
1870
|
+
* @param {*} [options] Override http request option.
|
|
1871
|
+
* @throws {RequiredError}
|
|
1872
|
+
*/
|
|
1873
|
+
enableDomainLockV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1874
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1875
|
+
assertParamExists('enableDomainLockV1', 'domain', domain);
|
|
1876
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
|
|
1877
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1878
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1879
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1880
|
+
let baseOptions;
|
|
1881
|
+
if (configuration) {
|
|
1882
|
+
baseOptions = configuration.baseOptions;
|
|
1883
|
+
}
|
|
1884
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1885
|
+
const localVarHeaderParameter = {};
|
|
1886
|
+
const localVarQueryParameter = {};
|
|
1887
|
+
// authentication apiToken required
|
|
1888
|
+
// http bearer authentication required
|
|
1889
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1890
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1891
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1892
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1893
|
+
return {
|
|
1894
|
+
url: toPathString(localVarUrlObj),
|
|
1895
|
+
options: localVarRequestOptions,
|
|
1896
|
+
};
|
|
1897
|
+
}),
|
|
1898
|
+
/**
|
|
1899
|
+
* 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.
|
|
1900
|
+
* @summary Enable privacy protection
|
|
1901
|
+
* @param {string} domain Domain name
|
|
1902
|
+
* @param {*} [options] Override http request option.
|
|
1903
|
+
* @throws {RequiredError}
|
|
1904
|
+
*/
|
|
1905
|
+
enablePrivacyProtectionV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1906
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1907
|
+
assertParamExists('enablePrivacyProtectionV1', 'domain', domain);
|
|
1908
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
|
|
1909
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1910
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1911
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1912
|
+
let baseOptions;
|
|
1913
|
+
if (configuration) {
|
|
1914
|
+
baseOptions = configuration.baseOptions;
|
|
1915
|
+
}
|
|
1916
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1917
|
+
const localVarHeaderParameter = {};
|
|
1918
|
+
const localVarQueryParameter = {};
|
|
1919
|
+
// authentication apiToken required
|
|
1920
|
+
// http bearer authentication required
|
|
1921
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1922
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1923
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1924
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1925
|
+
return {
|
|
1926
|
+
url: toPathString(localVarUrlObj),
|
|
1927
|
+
options: localVarRequestOptions,
|
|
1928
|
+
};
|
|
1929
|
+
}),
|
|
1930
|
+
/**
|
|
1931
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
1932
|
+
* @summary Get domain list
|
|
1933
|
+
* @param {*} [options] Override http request option.
|
|
1934
|
+
* @throws {RequiredError}
|
|
1935
|
+
*/
|
|
1936
|
+
getDomainListV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1937
|
+
const localVarPath = `/api/domains/v1/portfolio`;
|
|
1938
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1939
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1940
|
+
let baseOptions;
|
|
1941
|
+
if (configuration) {
|
|
1942
|
+
baseOptions = configuration.baseOptions;
|
|
1943
|
+
}
|
|
1944
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1945
|
+
const localVarHeaderParameter = {};
|
|
1946
|
+
const localVarQueryParameter = {};
|
|
1947
|
+
// authentication apiToken required
|
|
1948
|
+
// http bearer authentication required
|
|
1949
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1950
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1951
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1952
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1953
|
+
return {
|
|
1954
|
+
url: toPathString(localVarUrlObj),
|
|
1955
|
+
options: localVarRequestOptions,
|
|
1956
|
+
};
|
|
1957
|
+
}),
|
|
1958
|
+
/**
|
|
1959
|
+
* This endpoint retrieves details for specified domain.
|
|
1960
|
+
* @summary Get domain
|
|
1961
|
+
* @param {string} domain Domain name
|
|
1962
|
+
* @param {*} [options] Override http request option.
|
|
1963
|
+
* @throws {RequiredError}
|
|
1964
|
+
*/
|
|
1965
|
+
getDomainV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1966
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1967
|
+
assertParamExists('getDomainV1', 'domain', domain);
|
|
1968
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}`
|
|
1969
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1970
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1971
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1972
|
+
let baseOptions;
|
|
1973
|
+
if (configuration) {
|
|
1974
|
+
baseOptions = configuration.baseOptions;
|
|
1975
|
+
}
|
|
1976
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1977
|
+
const localVarHeaderParameter = {};
|
|
1978
|
+
const localVarQueryParameter = {};
|
|
1979
|
+
// authentication apiToken required
|
|
1980
|
+
// http bearer authentication required
|
|
1981
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1982
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1983
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1984
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1985
|
+
return {
|
|
1986
|
+
url: toPathString(localVarUrlObj),
|
|
1987
|
+
options: localVarRequestOptions,
|
|
1988
|
+
};
|
|
1989
|
+
}),
|
|
1990
|
+
/**
|
|
1991
|
+
* This endpoint purchases and registers new domain. If registration fails, login to hPanel and check the domain registration status. If no payment method is provided, default will be used. If no WHOIS information is provided, default for that TLD will be used. Before making request make sure that WHOIS information for TLD exists. Some TLDs require `additional_details` to be provided and will be validated before making purchase.
|
|
1992
|
+
* @summary Purchase new domain
|
|
1993
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
1994
|
+
* @param {*} [options] Override http request option.
|
|
1995
|
+
* @throws {RequiredError}
|
|
1996
|
+
*/
|
|
1997
|
+
purchaseNewDomainV1: (domainsV1PortfolioPurchaseRequest_1, ...args_1) => __awaiter(this, [domainsV1PortfolioPurchaseRequest_1, ...args_1], void 0, function* (domainsV1PortfolioPurchaseRequest, options = {}) {
|
|
1998
|
+
// verify required parameter 'domainsV1PortfolioPurchaseRequest' is not null or undefined
|
|
1999
|
+
assertParamExists('purchaseNewDomainV1', 'domainsV1PortfolioPurchaseRequest', domainsV1PortfolioPurchaseRequest);
|
|
2000
|
+
const localVarPath = `/api/domains/v1/portfolio`;
|
|
2001
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2002
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2003
|
+
let baseOptions;
|
|
2004
|
+
if (configuration) {
|
|
2005
|
+
baseOptions = configuration.baseOptions;
|
|
2006
|
+
}
|
|
2007
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2008
|
+
const localVarHeaderParameter = {};
|
|
2009
|
+
const localVarQueryParameter = {};
|
|
2010
|
+
// authentication apiToken required
|
|
2011
|
+
// http bearer authentication required
|
|
2012
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2013
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2014
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2015
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2016
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2017
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioPurchaseRequest, localVarRequestOptions, configuration);
|
|
2018
|
+
return {
|
|
2019
|
+
url: toPathString(localVarUrlObj),
|
|
2020
|
+
options: localVarRequestOptions,
|
|
2021
|
+
};
|
|
2022
|
+
}),
|
|
2023
|
+
/**
|
|
2024
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
2025
|
+
* @summary Update nameservers
|
|
2026
|
+
* @param {string} domain Domain name
|
|
2027
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
2028
|
+
* @param {*} [options] Override http request option.
|
|
2029
|
+
* @throws {RequiredError}
|
|
2030
|
+
*/
|
|
2031
|
+
updateNameserversV1: (domain_1, domainsV1PortfolioUpdateNameserversRequest_1, ...args_1) => __awaiter(this, [domain_1, domainsV1PortfolioUpdateNameserversRequest_1, ...args_1], void 0, function* (domain, domainsV1PortfolioUpdateNameserversRequest, options = {}) {
|
|
2032
|
+
// verify required parameter 'domain' is not null or undefined
|
|
2033
|
+
assertParamExists('updateNameserversV1', 'domain', domain);
|
|
2034
|
+
// verify required parameter 'domainsV1PortfolioUpdateNameserversRequest' is not null or undefined
|
|
2035
|
+
assertParamExists('updateNameserversV1', 'domainsV1PortfolioUpdateNameserversRequest', domainsV1PortfolioUpdateNameserversRequest);
|
|
2036
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/nameservers`
|
|
2037
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
2038
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2039
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2040
|
+
let baseOptions;
|
|
2041
|
+
if (configuration) {
|
|
2042
|
+
baseOptions = configuration.baseOptions;
|
|
2043
|
+
}
|
|
2044
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2045
|
+
const localVarHeaderParameter = {};
|
|
2046
|
+
const localVarQueryParameter = {};
|
|
2047
|
+
// authentication apiToken required
|
|
2048
|
+
// http bearer authentication required
|
|
2049
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2050
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2051
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2052
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2053
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2054
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioUpdateNameserversRequest, localVarRequestOptions, configuration);
|
|
2055
|
+
return {
|
|
2056
|
+
url: toPathString(localVarUrlObj),
|
|
2057
|
+
options: localVarRequestOptions,
|
|
2058
|
+
};
|
|
2059
|
+
}),
|
|
2060
|
+
};
|
|
2061
|
+
};
|
|
2062
|
+
/**
|
|
2063
|
+
* DomainsPortfolioApi - functional programming interface
|
|
2064
|
+
* @export
|
|
2065
|
+
*/
|
|
2066
|
+
export const DomainsPortfolioApiFp = function (configuration) {
|
|
2067
|
+
const localVarAxiosParamCreator = DomainsPortfolioApiAxiosParamCreator(configuration);
|
|
2068
|
+
return {
|
|
2069
|
+
/**
|
|
2070
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
2071
|
+
* @summary Disable domain lock
|
|
2072
|
+
* @param {string} domain Domain name
|
|
2073
|
+
* @param {*} [options] Override http request option.
|
|
2074
|
+
* @throws {RequiredError}
|
|
2075
|
+
*/
|
|
2076
|
+
disableDomainLockV1(domain, options) {
|
|
2077
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2078
|
+
var _a, _b;
|
|
2079
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disableDomainLockV1(domain, options);
|
|
2080
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.disableDomainLockV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2081
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2082
|
+
});
|
|
2083
|
+
},
|
|
2084
|
+
/**
|
|
2085
|
+
* 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.
|
|
2086
|
+
* @summary Disable privacy protection
|
|
2087
|
+
* @param {string} domain Domain name
|
|
2088
|
+
* @param {*} [options] Override http request option.
|
|
2089
|
+
* @throws {RequiredError}
|
|
2090
|
+
*/
|
|
2091
|
+
disablePrivacyProtectionV1(domain, options) {
|
|
2092
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2093
|
+
var _a, _b;
|
|
2094
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disablePrivacyProtectionV1(domain, options);
|
|
2095
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.disablePrivacyProtectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2096
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2097
|
+
});
|
|
2098
|
+
},
|
|
2099
|
+
/**
|
|
2100
|
+
* 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.
|
|
2101
|
+
* @summary Enable domain lock
|
|
2102
|
+
* @param {string} domain Domain name
|
|
2103
|
+
* @param {*} [options] Override http request option.
|
|
2104
|
+
* @throws {RequiredError}
|
|
2105
|
+
*/
|
|
2106
|
+
enableDomainLockV1(domain, options) {
|
|
2107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2108
|
+
var _a, _b;
|
|
2109
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.enableDomainLockV1(domain, options);
|
|
2110
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.enableDomainLockV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2111
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2112
|
+
});
|
|
2113
|
+
},
|
|
2114
|
+
/**
|
|
2115
|
+
* 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.
|
|
2116
|
+
* @summary Enable privacy protection
|
|
2117
|
+
* @param {string} domain Domain name
|
|
2118
|
+
* @param {*} [options] Override http request option.
|
|
2119
|
+
* @throws {RequiredError}
|
|
2120
|
+
*/
|
|
2121
|
+
enablePrivacyProtectionV1(domain, options) {
|
|
2122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2123
|
+
var _a, _b;
|
|
2124
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.enablePrivacyProtectionV1(domain, options);
|
|
2125
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.enablePrivacyProtectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2126
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2127
|
+
});
|
|
2128
|
+
},
|
|
2129
|
+
/**
|
|
2130
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
2131
|
+
* @summary Get domain list
|
|
2132
|
+
* @param {*} [options] Override http request option.
|
|
2133
|
+
* @throws {RequiredError}
|
|
2134
|
+
*/
|
|
2135
|
+
getDomainListV1(options) {
|
|
2136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2137
|
+
var _a, _b;
|
|
2138
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainListV1(options);
|
|
2139
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.getDomainListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2140
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2141
|
+
});
|
|
2142
|
+
},
|
|
2143
|
+
/**
|
|
2144
|
+
* This endpoint retrieves details for specified domain.
|
|
2145
|
+
* @summary Get domain
|
|
2146
|
+
* @param {string} domain Domain name
|
|
2147
|
+
* @param {*} [options] Override http request option.
|
|
2148
|
+
* @throws {RequiredError}
|
|
2149
|
+
*/
|
|
2150
|
+
getDomainV1(domain, options) {
|
|
2151
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2152
|
+
var _a, _b;
|
|
2153
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainV1(domain, options);
|
|
2154
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.getDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2155
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2156
|
+
});
|
|
2157
|
+
},
|
|
2158
|
+
/**
|
|
2159
|
+
* This endpoint purchases and registers new domain. If registration fails, login to hPanel and check the domain registration status. If no payment method is provided, default will be used. If no WHOIS information is provided, default for that TLD will be used. Before making request make sure that WHOIS information for TLD exists. Some TLDs require `additional_details` to be provided and will be validated before making purchase.
|
|
2160
|
+
* @summary Purchase new domain
|
|
2161
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2162
|
+
* @param {*} [options] Override http request option.
|
|
2163
|
+
* @throws {RequiredError}
|
|
2164
|
+
*/
|
|
2165
|
+
purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options) {
|
|
2166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2167
|
+
var _a, _b;
|
|
2168
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options);
|
|
2169
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.purchaseNewDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2170
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2171
|
+
});
|
|
2172
|
+
},
|
|
2173
|
+
/**
|
|
2174
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
2175
|
+
* @summary Update nameservers
|
|
2176
|
+
* @param {string} domain Domain name
|
|
2177
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
2178
|
+
* @param {*} [options] Override http request option.
|
|
2179
|
+
* @throws {RequiredError}
|
|
2180
|
+
*/
|
|
2181
|
+
updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options) {
|
|
2182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2183
|
+
var _a, _b;
|
|
2184
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options);
|
|
2185
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.updateNameserversV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2186
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2187
|
+
});
|
|
2188
|
+
},
|
|
2189
|
+
};
|
|
2190
|
+
};
|
|
2191
|
+
/**
|
|
2192
|
+
* DomainsPortfolioApi - factory interface
|
|
2193
|
+
* @export
|
|
2194
|
+
*/
|
|
2195
|
+
export const DomainsPortfolioApiFactory = function (configuration, basePath, axios) {
|
|
2196
|
+
const localVarFp = DomainsPortfolioApiFp(configuration);
|
|
2197
|
+
return {
|
|
2198
|
+
/**
|
|
2199
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
2200
|
+
* @summary Disable domain lock
|
|
2201
|
+
* @param {string} domain Domain name
|
|
2202
|
+
* @param {*} [options] Override http request option.
|
|
2203
|
+
* @throws {RequiredError}
|
|
2204
|
+
*/
|
|
2205
|
+
disableDomainLockV1(domain, options) {
|
|
2206
|
+
return localVarFp.disableDomainLockV1(domain, options).then((request) => request(axios, basePath));
|
|
2207
|
+
},
|
|
2208
|
+
/**
|
|
2209
|
+
* 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.
|
|
2210
|
+
* @summary Disable privacy protection
|
|
2211
|
+
* @param {string} domain Domain name
|
|
2212
|
+
* @param {*} [options] Override http request option.
|
|
2213
|
+
* @throws {RequiredError}
|
|
2214
|
+
*/
|
|
2215
|
+
disablePrivacyProtectionV1(domain, options) {
|
|
2216
|
+
return localVarFp.disablePrivacyProtectionV1(domain, options).then((request) => request(axios, basePath));
|
|
2217
|
+
},
|
|
2218
|
+
/**
|
|
2219
|
+
* 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.
|
|
2220
|
+
* @summary Enable domain lock
|
|
2221
|
+
* @param {string} domain Domain name
|
|
2222
|
+
* @param {*} [options] Override http request option.
|
|
2223
|
+
* @throws {RequiredError}
|
|
2224
|
+
*/
|
|
2225
|
+
enableDomainLockV1(domain, options) {
|
|
2226
|
+
return localVarFp.enableDomainLockV1(domain, options).then((request) => request(axios, basePath));
|
|
2227
|
+
},
|
|
2228
|
+
/**
|
|
2229
|
+
* 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.
|
|
2230
|
+
* @summary Enable privacy protection
|
|
2231
|
+
* @param {string} domain Domain name
|
|
2232
|
+
* @param {*} [options] Override http request option.
|
|
2233
|
+
* @throws {RequiredError}
|
|
2234
|
+
*/
|
|
2235
|
+
enablePrivacyProtectionV1(domain, options) {
|
|
2236
|
+
return localVarFp.enablePrivacyProtectionV1(domain, options).then((request) => request(axios, basePath));
|
|
2237
|
+
},
|
|
2238
|
+
/**
|
|
2239
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
2240
|
+
* @summary Get domain list
|
|
2241
|
+
* @param {*} [options] Override http request option.
|
|
2242
|
+
* @throws {RequiredError}
|
|
2243
|
+
*/
|
|
2244
|
+
getDomainListV1(options) {
|
|
2245
|
+
return localVarFp.getDomainListV1(options).then((request) => request(axios, basePath));
|
|
2246
|
+
},
|
|
2247
|
+
/**
|
|
2248
|
+
* This endpoint retrieves details for specified domain.
|
|
2249
|
+
* @summary Get domain
|
|
2250
|
+
* @param {string} domain Domain name
|
|
2251
|
+
* @param {*} [options] Override http request option.
|
|
2252
|
+
* @throws {RequiredError}
|
|
2253
|
+
*/
|
|
2254
|
+
getDomainV1(domain, options) {
|
|
2255
|
+
return localVarFp.getDomainV1(domain, options).then((request) => request(axios, basePath));
|
|
2256
|
+
},
|
|
2257
|
+
/**
|
|
2258
|
+
* This endpoint purchases and registers new domain. If registration fails, login to hPanel and check the domain registration status. If no payment method is provided, default will be used. If no WHOIS information is provided, default for that TLD will be used. Before making request make sure that WHOIS information for TLD exists. Some TLDs require `additional_details` to be provided and will be validated before making purchase.
|
|
2259
|
+
* @summary Purchase new domain
|
|
2260
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2261
|
+
* @param {*} [options] Override http request option.
|
|
2262
|
+
* @throws {RequiredError}
|
|
2263
|
+
*/
|
|
2264
|
+
purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options) {
|
|
2265
|
+
return localVarFp.purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options).then((request) => request(axios, basePath));
|
|
2266
|
+
},
|
|
2267
|
+
/**
|
|
2268
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
2269
|
+
* @summary Update nameservers
|
|
2270
|
+
* @param {string} domain Domain name
|
|
2271
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
2272
|
+
* @param {*} [options] Override http request option.
|
|
2273
|
+
* @throws {RequiredError}
|
|
2274
|
+
*/
|
|
2275
|
+
updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options) {
|
|
2276
|
+
return localVarFp.updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options).then((request) => request(axios, basePath));
|
|
2277
|
+
},
|
|
2278
|
+
};
|
|
2279
|
+
};
|
|
2280
|
+
/**
|
|
2281
|
+
* DomainsPortfolioApi - object-oriented interface
|
|
2282
|
+
* @export
|
|
2283
|
+
* @class DomainsPortfolioApi
|
|
2284
|
+
* @extends {BaseAPI}
|
|
2285
|
+
*/
|
|
2286
|
+
export class DomainsPortfolioApi extends BaseAPI {
|
|
2287
|
+
/**
|
|
2288
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
2289
|
+
* @summary Disable domain lock
|
|
2290
|
+
* @param {string} domain Domain name
|
|
2291
|
+
* @param {*} [options] Override http request option.
|
|
2292
|
+
* @throws {RequiredError}
|
|
2293
|
+
* @memberof DomainsPortfolioApi
|
|
2294
|
+
*/
|
|
2295
|
+
disableDomainLockV1(domain, options) {
|
|
2296
|
+
return DomainsPortfolioApiFp(this.configuration).disableDomainLockV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
2297
|
+
}
|
|
2298
|
+
/**
|
|
2299
|
+
* 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.
|
|
2300
|
+
* @summary Disable privacy protection
|
|
2301
|
+
* @param {string} domain Domain name
|
|
2302
|
+
* @param {*} [options] Override http request option.
|
|
2303
|
+
* @throws {RequiredError}
|
|
2304
|
+
* @memberof DomainsPortfolioApi
|
|
2305
|
+
*/
|
|
2306
|
+
disablePrivacyProtectionV1(domain, options) {
|
|
2307
|
+
return DomainsPortfolioApiFp(this.configuration).disablePrivacyProtectionV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
2308
|
+
}
|
|
2309
|
+
/**
|
|
2310
|
+
* 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.
|
|
2311
|
+
* @summary Enable domain lock
|
|
2312
|
+
* @param {string} domain Domain name
|
|
2313
|
+
* @param {*} [options] Override http request option.
|
|
2314
|
+
* @throws {RequiredError}
|
|
2315
|
+
* @memberof DomainsPortfolioApi
|
|
2316
|
+
*/
|
|
2317
|
+
enableDomainLockV1(domain, options) {
|
|
2318
|
+
return DomainsPortfolioApiFp(this.configuration).enableDomainLockV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
2319
|
+
}
|
|
2320
|
+
/**
|
|
2321
|
+
* 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.
|
|
2322
|
+
* @summary Enable privacy protection
|
|
2323
|
+
* @param {string} domain Domain name
|
|
2324
|
+
* @param {*} [options] Override http request option.
|
|
2325
|
+
* @throws {RequiredError}
|
|
2326
|
+
* @memberof DomainsPortfolioApi
|
|
2327
|
+
*/
|
|
2328
|
+
enablePrivacyProtectionV1(domain, options) {
|
|
2329
|
+
return DomainsPortfolioApiFp(this.configuration).enablePrivacyProtectionV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
2330
|
+
}
|
|
2331
|
+
/**
|
|
2332
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
2333
|
+
* @summary Get domain list
|
|
2334
|
+
* @param {*} [options] Override http request option.
|
|
2335
|
+
* @throws {RequiredError}
|
|
2336
|
+
* @memberof DomainsPortfolioApi
|
|
2337
|
+
*/
|
|
2338
|
+
getDomainListV1(options) {
|
|
2339
|
+
return DomainsPortfolioApiFp(this.configuration).getDomainListV1(options).then((request) => request(this.axios, this.basePath));
|
|
2340
|
+
}
|
|
2341
|
+
/**
|
|
2342
|
+
* This endpoint retrieves details for specified domain.
|
|
2343
|
+
* @summary Get domain
|
|
2344
|
+
* @param {string} domain Domain name
|
|
2345
|
+
* @param {*} [options] Override http request option.
|
|
2346
|
+
* @throws {RequiredError}
|
|
2347
|
+
* @memberof DomainsPortfolioApi
|
|
2348
|
+
*/
|
|
2349
|
+
getDomainV1(domain, options) {
|
|
2350
|
+
return DomainsPortfolioApiFp(this.configuration).getDomainV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
2351
|
+
}
|
|
2352
|
+
/**
|
|
2353
|
+
* This endpoint purchases and registers new domain. If registration fails, login to hPanel and check the domain registration status. If no payment method is provided, default will be used. If no WHOIS information is provided, default for that TLD will be used. Before making request make sure that WHOIS information for TLD exists. Some TLDs require `additional_details` to be provided and will be validated before making purchase.
|
|
2354
|
+
* @summary Purchase new domain
|
|
2355
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2356
|
+
* @param {*} [options] Override http request option.
|
|
2357
|
+
* @throws {RequiredError}
|
|
2358
|
+
* @memberof DomainsPortfolioApi
|
|
2359
|
+
*/
|
|
2360
|
+
purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options) {
|
|
2361
|
+
return DomainsPortfolioApiFp(this.configuration).purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2362
|
+
}
|
|
2363
|
+
/**
|
|
2364
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
2365
|
+
* @summary Update nameservers
|
|
2366
|
+
* @param {string} domain Domain name
|
|
2367
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
2368
|
+
* @param {*} [options] Override http request option.
|
|
2369
|
+
* @throws {RequiredError}
|
|
2370
|
+
* @memberof DomainsPortfolioApi
|
|
2371
|
+
*/
|
|
2372
|
+
updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options) {
|
|
2373
|
+
return DomainsPortfolioApiFp(this.configuration).updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2374
|
+
}
|
|
2375
|
+
}
|
|
2376
|
+
/**
|
|
2377
|
+
* DomainsWHOISApi - axios parameter creator
|
|
2378
|
+
* @export
|
|
2379
|
+
*/
|
|
2380
|
+
export const DomainsWHOISApiAxiosParamCreator = function (configuration) {
|
|
2381
|
+
return {
|
|
2382
|
+
/**
|
|
2383
|
+
* This endpoint creates WHOIS contact profile.
|
|
2384
|
+
* @summary Create WHOIS profile
|
|
2385
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
2386
|
+
* @param {*} [options] Override http request option.
|
|
2387
|
+
* @throws {RequiredError}
|
|
2388
|
+
*/
|
|
2389
|
+
createWHOISProfileV1: (domainsV1WHOISStoreRequest_1, ...args_1) => __awaiter(this, [domainsV1WHOISStoreRequest_1, ...args_1], void 0, function* (domainsV1WHOISStoreRequest, options = {}) {
|
|
2390
|
+
// verify required parameter 'domainsV1WHOISStoreRequest' is not null or undefined
|
|
2391
|
+
assertParamExists('createWHOISProfileV1', 'domainsV1WHOISStoreRequest', domainsV1WHOISStoreRequest);
|
|
2392
|
+
const localVarPath = `/api/domains/v1/whois`;
|
|
2393
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2394
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2395
|
+
let baseOptions;
|
|
2396
|
+
if (configuration) {
|
|
2397
|
+
baseOptions = configuration.baseOptions;
|
|
2398
|
+
}
|
|
2399
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2400
|
+
const localVarHeaderParameter = {};
|
|
2401
|
+
const localVarQueryParameter = {};
|
|
2402
|
+
// authentication apiToken required
|
|
2403
|
+
// http bearer authentication required
|
|
2404
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2405
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2406
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2407
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2408
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2409
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1WHOISStoreRequest, localVarRequestOptions, configuration);
|
|
2410
|
+
return {
|
|
2411
|
+
url: toPathString(localVarUrlObj),
|
|
2412
|
+
options: localVarRequestOptions,
|
|
2413
|
+
};
|
|
2414
|
+
}),
|
|
2415
|
+
/**
|
|
2416
|
+
* This endpoint deletes WHOIS contact profile.
|
|
2417
|
+
* @summary Delete WHOIS profile
|
|
2418
|
+
* @param {number} whoisId WHOIS ID
|
|
2419
|
+
* @param {*} [options] Override http request option.
|
|
2420
|
+
* @throws {RequiredError}
|
|
2421
|
+
*/
|
|
2422
|
+
deleteWHOISProfileV1: (whoisId_1, ...args_1) => __awaiter(this, [whoisId_1, ...args_1], void 0, function* (whoisId, options = {}) {
|
|
2423
|
+
// verify required parameter 'whoisId' is not null or undefined
|
|
2424
|
+
assertParamExists('deleteWHOISProfileV1', 'whoisId', whoisId);
|
|
2425
|
+
const localVarPath = `/api/domains/v1/whois/{whoisId}`
|
|
2426
|
+
.replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
|
|
2427
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2428
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2429
|
+
let baseOptions;
|
|
2430
|
+
if (configuration) {
|
|
2431
|
+
baseOptions = configuration.baseOptions;
|
|
2432
|
+
}
|
|
2433
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2434
|
+
const localVarHeaderParameter = {};
|
|
2435
|
+
const localVarQueryParameter = {};
|
|
2436
|
+
// authentication apiToken required
|
|
2437
|
+
// http bearer authentication required
|
|
2438
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2439
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2440
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2441
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2442
|
+
return {
|
|
2443
|
+
url: toPathString(localVarUrlObj),
|
|
2444
|
+
options: localVarRequestOptions,
|
|
2445
|
+
};
|
|
2446
|
+
}),
|
|
2447
|
+
/**
|
|
2448
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
2449
|
+
* @summary Get WHOIS profile list
|
|
2450
|
+
* @param {string} [tld] Filter by TLD (without trailing dot)
|
|
2451
|
+
* @param {*} [options] Override http request option.
|
|
2452
|
+
* @throws {RequiredError}
|
|
2453
|
+
*/
|
|
2454
|
+
getWHOISProfileListV1: (tld_1, ...args_1) => __awaiter(this, [tld_1, ...args_1], void 0, function* (tld, options = {}) {
|
|
2455
|
+
const localVarPath = `/api/domains/v1/whois`;
|
|
2456
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2457
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2458
|
+
let baseOptions;
|
|
2459
|
+
if (configuration) {
|
|
2460
|
+
baseOptions = configuration.baseOptions;
|
|
2461
|
+
}
|
|
2462
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2463
|
+
const localVarHeaderParameter = {};
|
|
2464
|
+
const localVarQueryParameter = {};
|
|
2465
|
+
// authentication apiToken required
|
|
2466
|
+
// http bearer authentication required
|
|
2467
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2468
|
+
if (tld !== undefined) {
|
|
2469
|
+
localVarQueryParameter['tld'] = tld;
|
|
2470
|
+
}
|
|
2471
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2472
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2473
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2474
|
+
return {
|
|
2475
|
+
url: toPathString(localVarUrlObj),
|
|
2476
|
+
options: localVarRequestOptions,
|
|
2477
|
+
};
|
|
2478
|
+
}),
|
|
2479
|
+
/**
|
|
2480
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
2481
|
+
* @summary Get WHOIS profile usage
|
|
2482
|
+
* @param {number} whoisId WHOIS ID
|
|
2483
|
+
* @param {*} [options] Override http request option.
|
|
2484
|
+
* @throws {RequiredError}
|
|
2485
|
+
*/
|
|
2486
|
+
getWHOISProfileUsageV1: (whoisId_1, ...args_1) => __awaiter(this, [whoisId_1, ...args_1], void 0, function* (whoisId, options = {}) {
|
|
2487
|
+
// verify required parameter 'whoisId' is not null or undefined
|
|
2488
|
+
assertParamExists('getWHOISProfileUsageV1', 'whoisId', whoisId);
|
|
2489
|
+
const localVarPath = `/api/domains/v1/whois/{whoisId}/usage`
|
|
2490
|
+
.replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
|
|
2491
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2492
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2493
|
+
let baseOptions;
|
|
2494
|
+
if (configuration) {
|
|
2495
|
+
baseOptions = configuration.baseOptions;
|
|
2496
|
+
}
|
|
2497
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2498
|
+
const localVarHeaderParameter = {};
|
|
2499
|
+
const localVarQueryParameter = {};
|
|
2500
|
+
// authentication apiToken required
|
|
2501
|
+
// http bearer authentication required
|
|
2502
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2503
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2504
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2505
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2506
|
+
return {
|
|
2507
|
+
url: toPathString(localVarUrlObj),
|
|
2508
|
+
options: localVarRequestOptions,
|
|
2509
|
+
};
|
|
2510
|
+
}),
|
|
2511
|
+
/**
|
|
2512
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
2513
|
+
* @summary Get WHOIS profile
|
|
2514
|
+
* @param {number} whoisId WHOIS ID
|
|
2515
|
+
* @param {*} [options] Override http request option.
|
|
2516
|
+
* @throws {RequiredError}
|
|
2517
|
+
*/
|
|
2518
|
+
getWHOISProfileV1: (whoisId_1, ...args_1) => __awaiter(this, [whoisId_1, ...args_1], void 0, function* (whoisId, options = {}) {
|
|
2519
|
+
// verify required parameter 'whoisId' is not null or undefined
|
|
2520
|
+
assertParamExists('getWHOISProfileV1', 'whoisId', whoisId);
|
|
2521
|
+
const localVarPath = `/api/domains/v1/whois/{whoisId}`
|
|
2522
|
+
.replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
|
|
2523
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2524
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2525
|
+
let baseOptions;
|
|
2526
|
+
if (configuration) {
|
|
2527
|
+
baseOptions = configuration.baseOptions;
|
|
2528
|
+
}
|
|
2529
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2530
|
+
const localVarHeaderParameter = {};
|
|
2531
|
+
const localVarQueryParameter = {};
|
|
2532
|
+
// authentication apiToken required
|
|
2533
|
+
// http bearer authentication required
|
|
2534
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2535
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2536
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2537
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2538
|
+
return {
|
|
2539
|
+
url: toPathString(localVarUrlObj),
|
|
2540
|
+
options: localVarRequestOptions,
|
|
2541
|
+
};
|
|
2542
|
+
}),
|
|
2543
|
+
};
|
|
2544
|
+
};
|
|
2545
|
+
/**
|
|
2546
|
+
* DomainsWHOISApi - functional programming interface
|
|
2547
|
+
* @export
|
|
2548
|
+
*/
|
|
2549
|
+
export const DomainsWHOISApiFp = function (configuration) {
|
|
2550
|
+
const localVarAxiosParamCreator = DomainsWHOISApiAxiosParamCreator(configuration);
|
|
2551
|
+
return {
|
|
2552
|
+
/**
|
|
2553
|
+
* This endpoint creates WHOIS contact profile.
|
|
2554
|
+
* @summary Create WHOIS profile
|
|
2555
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
2556
|
+
* @param {*} [options] Override http request option.
|
|
2557
|
+
* @throws {RequiredError}
|
|
2558
|
+
*/
|
|
2559
|
+
createWHOISProfileV1(domainsV1WHOISStoreRequest, options) {
|
|
2560
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2561
|
+
var _a, _b;
|
|
2562
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWHOISProfileV1(domainsV1WHOISStoreRequest, options);
|
|
2563
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsWHOISApi.createWHOISProfileV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2564
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2565
|
+
});
|
|
2566
|
+
},
|
|
2567
|
+
/**
|
|
2568
|
+
* This endpoint deletes WHOIS contact profile.
|
|
2569
|
+
* @summary Delete WHOIS profile
|
|
2570
|
+
* @param {number} whoisId WHOIS ID
|
|
2571
|
+
* @param {*} [options] Override http request option.
|
|
2572
|
+
* @throws {RequiredError}
|
|
2573
|
+
*/
|
|
2574
|
+
deleteWHOISProfileV1(whoisId, options) {
|
|
2575
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2576
|
+
var _a, _b;
|
|
2577
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWHOISProfileV1(whoisId, options);
|
|
2578
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsWHOISApi.deleteWHOISProfileV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2579
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2580
|
+
});
|
|
2581
|
+
},
|
|
2582
|
+
/**
|
|
2583
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
2584
|
+
* @summary Get WHOIS profile list
|
|
2585
|
+
* @param {string} [tld] Filter by TLD (without trailing dot)
|
|
2586
|
+
* @param {*} [options] Override http request option.
|
|
2587
|
+
* @throws {RequiredError}
|
|
2588
|
+
*/
|
|
2589
|
+
getWHOISProfileListV1(tld, options) {
|
|
2590
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2591
|
+
var _a, _b;
|
|
2592
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWHOISProfileListV1(tld, options);
|
|
2593
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsWHOISApi.getWHOISProfileListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2594
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2595
|
+
});
|
|
2596
|
+
},
|
|
2597
|
+
/**
|
|
2598
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
2599
|
+
* @summary Get WHOIS profile usage
|
|
2600
|
+
* @param {number} whoisId WHOIS ID
|
|
2601
|
+
* @param {*} [options] Override http request option.
|
|
2602
|
+
* @throws {RequiredError}
|
|
2603
|
+
*/
|
|
2604
|
+
getWHOISProfileUsageV1(whoisId, options) {
|
|
2605
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2606
|
+
var _a, _b;
|
|
2607
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWHOISProfileUsageV1(whoisId, options);
|
|
2608
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsWHOISApi.getWHOISProfileUsageV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2609
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2610
|
+
});
|
|
2611
|
+
},
|
|
2612
|
+
/**
|
|
2613
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
2614
|
+
* @summary Get WHOIS profile
|
|
2615
|
+
* @param {number} whoisId WHOIS ID
|
|
2616
|
+
* @param {*} [options] Override http request option.
|
|
2617
|
+
* @throws {RequiredError}
|
|
2618
|
+
*/
|
|
2619
|
+
getWHOISProfileV1(whoisId, options) {
|
|
2620
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2621
|
+
var _a, _b;
|
|
2622
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWHOISProfileV1(whoisId, options);
|
|
2623
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsWHOISApi.getWHOISProfileV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2624
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2625
|
+
});
|
|
2626
|
+
},
|
|
2627
|
+
};
|
|
2628
|
+
};
|
|
2629
|
+
/**
|
|
2630
|
+
* DomainsWHOISApi - factory interface
|
|
2631
|
+
* @export
|
|
2632
|
+
*/
|
|
2633
|
+
export const DomainsWHOISApiFactory = function (configuration, basePath, axios) {
|
|
2634
|
+
const localVarFp = DomainsWHOISApiFp(configuration);
|
|
2635
|
+
return {
|
|
2636
|
+
/**
|
|
2637
|
+
* This endpoint creates WHOIS contact profile.
|
|
2638
|
+
* @summary Create WHOIS profile
|
|
2639
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
2640
|
+
* @param {*} [options] Override http request option.
|
|
2641
|
+
* @throws {RequiredError}
|
|
2642
|
+
*/
|
|
2643
|
+
createWHOISProfileV1(domainsV1WHOISStoreRequest, options) {
|
|
2644
|
+
return localVarFp.createWHOISProfileV1(domainsV1WHOISStoreRequest, options).then((request) => request(axios, basePath));
|
|
2645
|
+
},
|
|
2646
|
+
/**
|
|
2647
|
+
* This endpoint deletes WHOIS contact profile.
|
|
2648
|
+
* @summary Delete WHOIS profile
|
|
2649
|
+
* @param {number} whoisId WHOIS ID
|
|
2650
|
+
* @param {*} [options] Override http request option.
|
|
2651
|
+
* @throws {RequiredError}
|
|
2652
|
+
*/
|
|
2653
|
+
deleteWHOISProfileV1(whoisId, options) {
|
|
2654
|
+
return localVarFp.deleteWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
|
|
2655
|
+
},
|
|
2656
|
+
/**
|
|
2657
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
2658
|
+
* @summary Get WHOIS profile list
|
|
2659
|
+
* @param {string} [tld] Filter by TLD (without trailing dot)
|
|
2660
|
+
* @param {*} [options] Override http request option.
|
|
2661
|
+
* @throws {RequiredError}
|
|
2662
|
+
*/
|
|
2663
|
+
getWHOISProfileListV1(tld, options) {
|
|
2664
|
+
return localVarFp.getWHOISProfileListV1(tld, options).then((request) => request(axios, basePath));
|
|
2665
|
+
},
|
|
2666
|
+
/**
|
|
2667
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
2668
|
+
* @summary Get WHOIS profile usage
|
|
2669
|
+
* @param {number} whoisId WHOIS ID
|
|
2670
|
+
* @param {*} [options] Override http request option.
|
|
2671
|
+
* @throws {RequiredError}
|
|
2672
|
+
*/
|
|
2673
|
+
getWHOISProfileUsageV1(whoisId, options) {
|
|
2674
|
+
return localVarFp.getWHOISProfileUsageV1(whoisId, options).then((request) => request(axios, basePath));
|
|
2675
|
+
},
|
|
2676
|
+
/**
|
|
2677
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
2678
|
+
* @summary Get WHOIS profile
|
|
2679
|
+
* @param {number} whoisId WHOIS ID
|
|
2680
|
+
* @param {*} [options] Override http request option.
|
|
2681
|
+
* @throws {RequiredError}
|
|
2682
|
+
*/
|
|
2683
|
+
getWHOISProfileV1(whoisId, options) {
|
|
2684
|
+
return localVarFp.getWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
|
|
2685
|
+
},
|
|
2686
|
+
};
|
|
2687
|
+
};
|
|
2688
|
+
/**
|
|
2689
|
+
* DomainsWHOISApi - object-oriented interface
|
|
2690
|
+
* @export
|
|
2691
|
+
* @class DomainsWHOISApi
|
|
2692
|
+
* @extends {BaseAPI}
|
|
2693
|
+
*/
|
|
2694
|
+
export class DomainsWHOISApi extends BaseAPI {
|
|
2695
|
+
/**
|
|
2696
|
+
* This endpoint creates WHOIS contact profile.
|
|
2697
|
+
* @summary Create WHOIS profile
|
|
2698
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
2699
|
+
* @param {*} [options] Override http request option.
|
|
2700
|
+
* @throws {RequiredError}
|
|
2701
|
+
* @memberof DomainsWHOISApi
|
|
2702
|
+
*/
|
|
2703
|
+
createWHOISProfileV1(domainsV1WHOISStoreRequest, options) {
|
|
2704
|
+
return DomainsWHOISApiFp(this.configuration).createWHOISProfileV1(domainsV1WHOISStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2705
|
+
}
|
|
2706
|
+
/**
|
|
2707
|
+
* This endpoint deletes WHOIS contact profile.
|
|
2708
|
+
* @summary Delete WHOIS profile
|
|
2709
|
+
* @param {number} whoisId WHOIS ID
|
|
2710
|
+
* @param {*} [options] Override http request option.
|
|
2711
|
+
* @throws {RequiredError}
|
|
2712
|
+
* @memberof DomainsWHOISApi
|
|
2713
|
+
*/
|
|
2714
|
+
deleteWHOISProfileV1(whoisId, options) {
|
|
2715
|
+
return DomainsWHOISApiFp(this.configuration).deleteWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
2716
|
+
}
|
|
2717
|
+
/**
|
|
2718
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
2719
|
+
* @summary Get WHOIS profile list
|
|
2720
|
+
* @param {string} [tld] Filter by TLD (without trailing dot)
|
|
2721
|
+
* @param {*} [options] Override http request option.
|
|
2722
|
+
* @throws {RequiredError}
|
|
2723
|
+
* @memberof DomainsWHOISApi
|
|
2724
|
+
*/
|
|
2725
|
+
getWHOISProfileListV1(tld, options) {
|
|
2726
|
+
return DomainsWHOISApiFp(this.configuration).getWHOISProfileListV1(tld, options).then((request) => request(this.axios, this.basePath));
|
|
2727
|
+
}
|
|
2728
|
+
/**
|
|
2729
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
2730
|
+
* @summary Get WHOIS profile usage
|
|
2731
|
+
* @param {number} whoisId WHOIS ID
|
|
2732
|
+
* @param {*} [options] Override http request option.
|
|
2733
|
+
* @throws {RequiredError}
|
|
2734
|
+
* @memberof DomainsWHOISApi
|
|
2735
|
+
*/
|
|
2736
|
+
getWHOISProfileUsageV1(whoisId, options) {
|
|
2737
|
+
return DomainsWHOISApiFp(this.configuration).getWHOISProfileUsageV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
2738
|
+
}
|
|
2739
|
+
/**
|
|
2740
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
2741
|
+
* @summary Get WHOIS profile
|
|
2742
|
+
* @param {number} whoisId WHOIS ID
|
|
2743
|
+
* @param {*} [options] Override http request option.
|
|
2744
|
+
* @throws {RequiredError}
|
|
2745
|
+
* @memberof DomainsWHOISApi
|
|
2746
|
+
*/
|
|
2747
|
+
getWHOISProfileV1(whoisId, options) {
|
|
2748
|
+
return DomainsWHOISApiFp(this.configuration).getWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
1522
2749
|
}
|
|
1523
2750
|
}
|
|
1524
2751
|
/**
|