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/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 0.0.
|
|
7
|
+
* API Version: 0.0.37
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -19,8 +19,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
22
|
+
exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1ActionActionResourceStateEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = void 0;
|
|
23
|
+
exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = void 0;
|
|
24
|
+
exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = void 0;
|
|
24
25
|
const axios_1 = require("axios");
|
|
25
26
|
// Some imports not used depending on template conditions
|
|
26
27
|
// @ts-ignore
|
|
@@ -96,6 +97,13 @@ exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = {
|
|
|
96
97
|
Srv: 'SRV',
|
|
97
98
|
Caa: 'CAA'
|
|
98
99
|
};
|
|
100
|
+
exports.DomainsV1DomainDomainExtendedResourceStatusEnum = {
|
|
101
|
+
Active: 'active',
|
|
102
|
+
PendingSetup: 'pending_setup',
|
|
103
|
+
Expired: 'expired',
|
|
104
|
+
Requested: 'requested',
|
|
105
|
+
PendingVerification: 'pending_verification'
|
|
106
|
+
};
|
|
99
107
|
exports.DomainsV1DomainDomainResourceTypeEnum = {
|
|
100
108
|
Domain: 'domain',
|
|
101
109
|
FreeDomain: 'free_domain'
|
|
@@ -103,7 +111,25 @@ exports.DomainsV1DomainDomainResourceTypeEnum = {
|
|
|
103
111
|
exports.DomainsV1DomainDomainResourceStatusEnum = {
|
|
104
112
|
Active: 'active',
|
|
105
113
|
PendingSetup: 'pending_setup',
|
|
106
|
-
Expired: 'expired'
|
|
114
|
+
Expired: 'expired',
|
|
115
|
+
Requested: 'requested',
|
|
116
|
+
PendingVerification: 'pending_verification'
|
|
117
|
+
};
|
|
118
|
+
exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = {
|
|
119
|
+
_301: '301',
|
|
120
|
+
_302: '302'
|
|
121
|
+
};
|
|
122
|
+
exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = {
|
|
123
|
+
_301: '301',
|
|
124
|
+
_302: '302'
|
|
125
|
+
};
|
|
126
|
+
exports.DomainsV1WHOISProfileResourceEntityTypeEnum = {
|
|
127
|
+
Individual: 'individual',
|
|
128
|
+
Organization: 'organization'
|
|
129
|
+
};
|
|
130
|
+
exports.DomainsV1WHOISStoreRequestEntityTypeEnum = {
|
|
131
|
+
Individual: 'individual',
|
|
132
|
+
Organization: 'organization'
|
|
107
133
|
};
|
|
108
134
|
exports.VPSV1ActionActionResourceStateEnum = {
|
|
109
135
|
Success: 'success',
|
|
@@ -1455,19 +1481,195 @@ class DNSZoneApi extends base_1.BaseAPI {
|
|
|
1455
1481
|
}
|
|
1456
1482
|
exports.DNSZoneApi = DNSZoneApi;
|
|
1457
1483
|
/**
|
|
1458
|
-
*
|
|
1484
|
+
* DomainsAvailabilityApi - axios parameter creator
|
|
1459
1485
|
* @export
|
|
1460
1486
|
*/
|
|
1461
|
-
const
|
|
1487
|
+
const DomainsAvailabilityApiAxiosParamCreator = function (configuration) {
|
|
1462
1488
|
return {
|
|
1463
1489
|
/**
|
|
1464
|
-
* This endpoint
|
|
1465
|
-
* @summary
|
|
1490
|
+
* 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.
|
|
1491
|
+
* @summary Check domain availability
|
|
1492
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
1466
1493
|
* @param {*} [options] Override http request option.
|
|
1467
1494
|
* @throws {RequiredError}
|
|
1468
1495
|
*/
|
|
1469
|
-
|
|
1470
|
-
|
|
1496
|
+
checkDomainAvailabilityV1: (domainsV1AvailabilityAvailabilityRequest_1, ...args_1) => __awaiter(this, [domainsV1AvailabilityAvailabilityRequest_1, ...args_1], void 0, function* (domainsV1AvailabilityAvailabilityRequest, options = {}) {
|
|
1497
|
+
// verify required parameter 'domainsV1AvailabilityAvailabilityRequest' is not null or undefined
|
|
1498
|
+
(0, common_1.assertParamExists)('checkDomainAvailabilityV1', 'domainsV1AvailabilityAvailabilityRequest', domainsV1AvailabilityAvailabilityRequest);
|
|
1499
|
+
const localVarPath = `/api/domains/v1/availability`;
|
|
1500
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1501
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1502
|
+
let baseOptions;
|
|
1503
|
+
if (configuration) {
|
|
1504
|
+
baseOptions = configuration.baseOptions;
|
|
1505
|
+
}
|
|
1506
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1507
|
+
const localVarHeaderParameter = {};
|
|
1508
|
+
const localVarQueryParameter = {};
|
|
1509
|
+
// authentication apiToken required
|
|
1510
|
+
// http bearer authentication required
|
|
1511
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1512
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1513
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1514
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1515
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1516
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainsV1AvailabilityAvailabilityRequest, localVarRequestOptions, configuration);
|
|
1517
|
+
return {
|
|
1518
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1519
|
+
options: localVarRequestOptions,
|
|
1520
|
+
};
|
|
1521
|
+
}),
|
|
1522
|
+
};
|
|
1523
|
+
};
|
|
1524
|
+
exports.DomainsAvailabilityApiAxiosParamCreator = DomainsAvailabilityApiAxiosParamCreator;
|
|
1525
|
+
/**
|
|
1526
|
+
* DomainsAvailabilityApi - functional programming interface
|
|
1527
|
+
* @export
|
|
1528
|
+
*/
|
|
1529
|
+
const DomainsAvailabilityApiFp = function (configuration) {
|
|
1530
|
+
const localVarAxiosParamCreator = (0, exports.DomainsAvailabilityApiAxiosParamCreator)(configuration);
|
|
1531
|
+
return {
|
|
1532
|
+
/**
|
|
1533
|
+
* 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.
|
|
1534
|
+
* @summary Check domain availability
|
|
1535
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
1536
|
+
* @param {*} [options] Override http request option.
|
|
1537
|
+
* @throws {RequiredError}
|
|
1538
|
+
*/
|
|
1539
|
+
checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options) {
|
|
1540
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1541
|
+
var _a, _b;
|
|
1542
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options);
|
|
1543
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsAvailabilityApi.checkDomainAvailabilityV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1544
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1545
|
+
});
|
|
1546
|
+
},
|
|
1547
|
+
};
|
|
1548
|
+
};
|
|
1549
|
+
exports.DomainsAvailabilityApiFp = DomainsAvailabilityApiFp;
|
|
1550
|
+
/**
|
|
1551
|
+
* DomainsAvailabilityApi - factory interface
|
|
1552
|
+
* @export
|
|
1553
|
+
*/
|
|
1554
|
+
const DomainsAvailabilityApiFactory = function (configuration, basePath, axios) {
|
|
1555
|
+
const localVarFp = (0, exports.DomainsAvailabilityApiFp)(configuration);
|
|
1556
|
+
return {
|
|
1557
|
+
/**
|
|
1558
|
+
* 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.
|
|
1559
|
+
* @summary Check domain availability
|
|
1560
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
1561
|
+
* @param {*} [options] Override http request option.
|
|
1562
|
+
* @throws {RequiredError}
|
|
1563
|
+
*/
|
|
1564
|
+
checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options) {
|
|
1565
|
+
return localVarFp.checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(axios, basePath));
|
|
1566
|
+
},
|
|
1567
|
+
};
|
|
1568
|
+
};
|
|
1569
|
+
exports.DomainsAvailabilityApiFactory = DomainsAvailabilityApiFactory;
|
|
1570
|
+
/**
|
|
1571
|
+
* DomainsAvailabilityApi - object-oriented interface
|
|
1572
|
+
* @export
|
|
1573
|
+
* @class DomainsAvailabilityApi
|
|
1574
|
+
* @extends {BaseAPI}
|
|
1575
|
+
*/
|
|
1576
|
+
class DomainsAvailabilityApi extends base_1.BaseAPI {
|
|
1577
|
+
/**
|
|
1578
|
+
* 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.
|
|
1579
|
+
* @summary Check domain availability
|
|
1580
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
1581
|
+
* @param {*} [options] Override http request option.
|
|
1582
|
+
* @throws {RequiredError}
|
|
1583
|
+
* @memberof DomainsAvailabilityApi
|
|
1584
|
+
*/
|
|
1585
|
+
checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options) {
|
|
1586
|
+
return (0, exports.DomainsAvailabilityApiFp)(this.configuration).checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
exports.DomainsAvailabilityApi = DomainsAvailabilityApi;
|
|
1590
|
+
/**
|
|
1591
|
+
* DomainsForwardingApi - axios parameter creator
|
|
1592
|
+
* @export
|
|
1593
|
+
*/
|
|
1594
|
+
const DomainsForwardingApiAxiosParamCreator = function (configuration) {
|
|
1595
|
+
return {
|
|
1596
|
+
/**
|
|
1597
|
+
* This endpoint creates domain forwarding data.
|
|
1598
|
+
* @summary Create forwarding data
|
|
1599
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
1600
|
+
* @param {*} [options] Override http request option.
|
|
1601
|
+
* @throws {RequiredError}
|
|
1602
|
+
*/
|
|
1603
|
+
createForwardingDataV1: (domainsV1ForwardingStoreRequest_1, ...args_1) => __awaiter(this, [domainsV1ForwardingStoreRequest_1, ...args_1], void 0, function* (domainsV1ForwardingStoreRequest, options = {}) {
|
|
1604
|
+
// verify required parameter 'domainsV1ForwardingStoreRequest' is not null or undefined
|
|
1605
|
+
(0, common_1.assertParamExists)('createForwardingDataV1', 'domainsV1ForwardingStoreRequest', domainsV1ForwardingStoreRequest);
|
|
1606
|
+
const localVarPath = `/api/domains/v1/forwarding`;
|
|
1607
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1608
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1609
|
+
let baseOptions;
|
|
1610
|
+
if (configuration) {
|
|
1611
|
+
baseOptions = configuration.baseOptions;
|
|
1612
|
+
}
|
|
1613
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1614
|
+
const localVarHeaderParameter = {};
|
|
1615
|
+
const localVarQueryParameter = {};
|
|
1616
|
+
// authentication apiToken required
|
|
1617
|
+
// http bearer authentication required
|
|
1618
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1619
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1620
|
+
(0, common_1.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
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainsV1ForwardingStoreRequest, localVarRequestOptions, configuration);
|
|
1624
|
+
return {
|
|
1625
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1626
|
+
options: localVarRequestOptions,
|
|
1627
|
+
};
|
|
1628
|
+
}),
|
|
1629
|
+
/**
|
|
1630
|
+
* This endpoint deletes domain forwarding data.
|
|
1631
|
+
* @summary Delete forwarding data
|
|
1632
|
+
* @param {string} domain Domain name
|
|
1633
|
+
* @param {*} [options] Override http request option.
|
|
1634
|
+
* @throws {RequiredError}
|
|
1635
|
+
*/
|
|
1636
|
+
deleteForwardingDataV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1637
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1638
|
+
(0, common_1.assertParamExists)('deleteForwardingDataV1', 'domain', domain);
|
|
1639
|
+
const localVarPath = `/api/domains/v1/forwarding/{domain}`
|
|
1640
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1641
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1642
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1643
|
+
let baseOptions;
|
|
1644
|
+
if (configuration) {
|
|
1645
|
+
baseOptions = configuration.baseOptions;
|
|
1646
|
+
}
|
|
1647
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1648
|
+
const localVarHeaderParameter = {};
|
|
1649
|
+
const localVarQueryParameter = {};
|
|
1650
|
+
// authentication apiToken required
|
|
1651
|
+
// http bearer authentication required
|
|
1652
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1653
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1654
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1655
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1656
|
+
return {
|
|
1657
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1658
|
+
options: localVarRequestOptions,
|
|
1659
|
+
};
|
|
1660
|
+
}),
|
|
1661
|
+
/**
|
|
1662
|
+
* This endpoint retrieves domain forwarding data.
|
|
1663
|
+
* @summary Get forwarding data
|
|
1664
|
+
* @param {string} domain Domain name
|
|
1665
|
+
* @param {*} [options] Override http request option.
|
|
1666
|
+
* @throws {RequiredError}
|
|
1667
|
+
*/
|
|
1668
|
+
getForwardingDataV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1669
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1670
|
+
(0, common_1.assertParamExists)('getForwardingDataV1', 'domain', domain);
|
|
1671
|
+
const localVarPath = `/api/domains/v1/forwarding/{domain}`
|
|
1672
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1471
1673
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1472
1674
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1473
1675
|
let baseOptions;
|
|
@@ -1490,69 +1692,1107 @@ const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
|
|
|
1490
1692
|
}),
|
|
1491
1693
|
};
|
|
1492
1694
|
};
|
|
1493
|
-
exports.
|
|
1695
|
+
exports.DomainsForwardingApiAxiosParamCreator = DomainsForwardingApiAxiosParamCreator;
|
|
1494
1696
|
/**
|
|
1495
|
-
*
|
|
1697
|
+
* DomainsForwardingApi - functional programming interface
|
|
1496
1698
|
* @export
|
|
1497
1699
|
*/
|
|
1498
|
-
const
|
|
1499
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
1700
|
+
const DomainsForwardingApiFp = function (configuration) {
|
|
1701
|
+
const localVarAxiosParamCreator = (0, exports.DomainsForwardingApiAxiosParamCreator)(configuration);
|
|
1500
1702
|
return {
|
|
1501
1703
|
/**
|
|
1502
|
-
* This endpoint
|
|
1503
|
-
* @summary
|
|
1704
|
+
* This endpoint creates domain forwarding data.
|
|
1705
|
+
* @summary Create forwarding data
|
|
1706
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
1504
1707
|
* @param {*} [options] Override http request option.
|
|
1505
1708
|
* @throws {RequiredError}
|
|
1506
1709
|
*/
|
|
1507
|
-
|
|
1710
|
+
createForwardingDataV1(domainsV1ForwardingStoreRequest, options) {
|
|
1508
1711
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1509
1712
|
var _a, _b;
|
|
1510
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1511
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['
|
|
1713
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createForwardingDataV1(domainsV1ForwardingStoreRequest, options);
|
|
1714
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsForwardingApi.createForwardingDataV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1715
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1716
|
+
});
|
|
1717
|
+
},
|
|
1718
|
+
/**
|
|
1719
|
+
* This endpoint deletes domain forwarding data.
|
|
1720
|
+
* @summary Delete forwarding data
|
|
1721
|
+
* @param {string} domain Domain name
|
|
1722
|
+
* @param {*} [options] Override http request option.
|
|
1723
|
+
* @throws {RequiredError}
|
|
1724
|
+
*/
|
|
1725
|
+
deleteForwardingDataV1(domain, options) {
|
|
1726
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1727
|
+
var _a, _b;
|
|
1728
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteForwardingDataV1(domain, options);
|
|
1729
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsForwardingApi.deleteForwardingDataV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1730
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1731
|
+
});
|
|
1732
|
+
},
|
|
1733
|
+
/**
|
|
1734
|
+
* This endpoint retrieves domain forwarding data.
|
|
1735
|
+
* @summary Get forwarding data
|
|
1736
|
+
* @param {string} domain Domain name
|
|
1737
|
+
* @param {*} [options] Override http request option.
|
|
1738
|
+
* @throws {RequiredError}
|
|
1739
|
+
*/
|
|
1740
|
+
getForwardingDataV1(domain, options) {
|
|
1741
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1742
|
+
var _a, _b;
|
|
1743
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getForwardingDataV1(domain, options);
|
|
1744
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsForwardingApi.getForwardingDataV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1512
1745
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1513
1746
|
});
|
|
1514
1747
|
},
|
|
1515
1748
|
};
|
|
1516
1749
|
};
|
|
1517
|
-
exports.
|
|
1750
|
+
exports.DomainsForwardingApiFp = DomainsForwardingApiFp;
|
|
1518
1751
|
/**
|
|
1519
|
-
*
|
|
1752
|
+
* DomainsForwardingApi - factory interface
|
|
1520
1753
|
* @export
|
|
1521
1754
|
*/
|
|
1522
|
-
const
|
|
1523
|
-
const localVarFp = (0, exports.
|
|
1755
|
+
const DomainsForwardingApiFactory = function (configuration, basePath, axios) {
|
|
1756
|
+
const localVarFp = (0, exports.DomainsForwardingApiFp)(configuration);
|
|
1524
1757
|
return {
|
|
1525
1758
|
/**
|
|
1526
|
-
* This endpoint
|
|
1527
|
-
* @summary
|
|
1759
|
+
* This endpoint creates domain forwarding data.
|
|
1760
|
+
* @summary Create forwarding data
|
|
1761
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
1528
1762
|
* @param {*} [options] Override http request option.
|
|
1529
1763
|
* @throws {RequiredError}
|
|
1530
1764
|
*/
|
|
1531
|
-
|
|
1532
|
-
return localVarFp.
|
|
1765
|
+
createForwardingDataV1(domainsV1ForwardingStoreRequest, options) {
|
|
1766
|
+
return localVarFp.createForwardingDataV1(domainsV1ForwardingStoreRequest, options).then((request) => request(axios, basePath));
|
|
1767
|
+
},
|
|
1768
|
+
/**
|
|
1769
|
+
* This endpoint deletes domain forwarding data.
|
|
1770
|
+
* @summary Delete forwarding data
|
|
1771
|
+
* @param {string} domain Domain name
|
|
1772
|
+
* @param {*} [options] Override http request option.
|
|
1773
|
+
* @throws {RequiredError}
|
|
1774
|
+
*/
|
|
1775
|
+
deleteForwardingDataV1(domain, options) {
|
|
1776
|
+
return localVarFp.deleteForwardingDataV1(domain, options).then((request) => request(axios, basePath));
|
|
1777
|
+
},
|
|
1778
|
+
/**
|
|
1779
|
+
* This endpoint retrieves domain forwarding data.
|
|
1780
|
+
* @summary Get forwarding data
|
|
1781
|
+
* @param {string} domain Domain name
|
|
1782
|
+
* @param {*} [options] Override http request option.
|
|
1783
|
+
* @throws {RequiredError}
|
|
1784
|
+
*/
|
|
1785
|
+
getForwardingDataV1(domain, options) {
|
|
1786
|
+
return localVarFp.getForwardingDataV1(domain, options).then((request) => request(axios, basePath));
|
|
1533
1787
|
},
|
|
1534
1788
|
};
|
|
1535
1789
|
};
|
|
1536
|
-
exports.
|
|
1790
|
+
exports.DomainsForwardingApiFactory = DomainsForwardingApiFactory;
|
|
1537
1791
|
/**
|
|
1538
|
-
*
|
|
1792
|
+
* DomainsForwardingApi - object-oriented interface
|
|
1539
1793
|
* @export
|
|
1540
|
-
* @class
|
|
1794
|
+
* @class DomainsForwardingApi
|
|
1541
1795
|
* @extends {BaseAPI}
|
|
1542
1796
|
*/
|
|
1543
|
-
class
|
|
1797
|
+
class DomainsForwardingApi extends base_1.BaseAPI {
|
|
1544
1798
|
/**
|
|
1545
|
-
* This endpoint
|
|
1546
|
-
* @summary
|
|
1799
|
+
* This endpoint creates domain forwarding data.
|
|
1800
|
+
* @summary Create forwarding data
|
|
1801
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
1547
1802
|
* @param {*} [options] Override http request option.
|
|
1548
1803
|
* @throws {RequiredError}
|
|
1549
|
-
* @memberof
|
|
1804
|
+
* @memberof DomainsForwardingApi
|
|
1550
1805
|
*/
|
|
1551
|
-
|
|
1552
|
-
return (0, exports.
|
|
1806
|
+
createForwardingDataV1(domainsV1ForwardingStoreRequest, options) {
|
|
1807
|
+
return (0, exports.DomainsForwardingApiFp)(this.configuration).createForwardingDataV1(domainsV1ForwardingStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1808
|
+
}
|
|
1809
|
+
/**
|
|
1810
|
+
* This endpoint deletes domain forwarding data.
|
|
1811
|
+
* @summary Delete forwarding data
|
|
1812
|
+
* @param {string} domain Domain name
|
|
1813
|
+
* @param {*} [options] Override http request option.
|
|
1814
|
+
* @throws {RequiredError}
|
|
1815
|
+
* @memberof DomainsForwardingApi
|
|
1816
|
+
*/
|
|
1817
|
+
deleteForwardingDataV1(domain, options) {
|
|
1818
|
+
return (0, exports.DomainsForwardingApiFp)(this.configuration).deleteForwardingDataV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
1819
|
+
}
|
|
1820
|
+
/**
|
|
1821
|
+
* This endpoint retrieves domain forwarding data.
|
|
1822
|
+
* @summary Get forwarding data
|
|
1823
|
+
* @param {string} domain Domain name
|
|
1824
|
+
* @param {*} [options] Override http request option.
|
|
1825
|
+
* @throws {RequiredError}
|
|
1826
|
+
* @memberof DomainsForwardingApi
|
|
1827
|
+
*/
|
|
1828
|
+
getForwardingDataV1(domain, options) {
|
|
1829
|
+
return (0, exports.DomainsForwardingApiFp)(this.configuration).getForwardingDataV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
1553
1830
|
}
|
|
1554
1831
|
}
|
|
1555
|
-
exports.
|
|
1832
|
+
exports.DomainsForwardingApi = DomainsForwardingApi;
|
|
1833
|
+
/**
|
|
1834
|
+
* DomainsPortfolioApi - axios parameter creator
|
|
1835
|
+
* @export
|
|
1836
|
+
*/
|
|
1837
|
+
const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
|
|
1838
|
+
return {
|
|
1839
|
+
/**
|
|
1840
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
1841
|
+
* @summary Disable domain lock
|
|
1842
|
+
* @param {string} domain Domain name
|
|
1843
|
+
* @param {*} [options] Override http request option.
|
|
1844
|
+
* @throws {RequiredError}
|
|
1845
|
+
*/
|
|
1846
|
+
disableDomainLockV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1847
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1848
|
+
(0, common_1.assertParamExists)('disableDomainLockV1', 'domain', domain);
|
|
1849
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
|
|
1850
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1851
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1852
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1853
|
+
let baseOptions;
|
|
1854
|
+
if (configuration) {
|
|
1855
|
+
baseOptions = configuration.baseOptions;
|
|
1856
|
+
}
|
|
1857
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1858
|
+
const localVarHeaderParameter = {};
|
|
1859
|
+
const localVarQueryParameter = {};
|
|
1860
|
+
// authentication apiToken required
|
|
1861
|
+
// http bearer authentication required
|
|
1862
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1863
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1864
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1865
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1866
|
+
return {
|
|
1867
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1868
|
+
options: localVarRequestOptions,
|
|
1869
|
+
};
|
|
1870
|
+
}),
|
|
1871
|
+
/**
|
|
1872
|
+
* 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.
|
|
1873
|
+
* @summary Disable privacy protection
|
|
1874
|
+
* @param {string} domain Domain name
|
|
1875
|
+
* @param {*} [options] Override http request option.
|
|
1876
|
+
* @throws {RequiredError}
|
|
1877
|
+
*/
|
|
1878
|
+
disablePrivacyProtectionV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1879
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1880
|
+
(0, common_1.assertParamExists)('disablePrivacyProtectionV1', 'domain', domain);
|
|
1881
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
|
|
1882
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1883
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1884
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1885
|
+
let baseOptions;
|
|
1886
|
+
if (configuration) {
|
|
1887
|
+
baseOptions = configuration.baseOptions;
|
|
1888
|
+
}
|
|
1889
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1890
|
+
const localVarHeaderParameter = {};
|
|
1891
|
+
const localVarQueryParameter = {};
|
|
1892
|
+
// authentication apiToken required
|
|
1893
|
+
// http bearer authentication required
|
|
1894
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1895
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1896
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1897
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1898
|
+
return {
|
|
1899
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1900
|
+
options: localVarRequestOptions,
|
|
1901
|
+
};
|
|
1902
|
+
}),
|
|
1903
|
+
/**
|
|
1904
|
+
* 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.
|
|
1905
|
+
* @summary Enable domain lock
|
|
1906
|
+
* @param {string} domain Domain name
|
|
1907
|
+
* @param {*} [options] Override http request option.
|
|
1908
|
+
* @throws {RequiredError}
|
|
1909
|
+
*/
|
|
1910
|
+
enableDomainLockV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1911
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1912
|
+
(0, common_1.assertParamExists)('enableDomainLockV1', 'domain', domain);
|
|
1913
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
|
|
1914
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1915
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1916
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1917
|
+
let baseOptions;
|
|
1918
|
+
if (configuration) {
|
|
1919
|
+
baseOptions = configuration.baseOptions;
|
|
1920
|
+
}
|
|
1921
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1922
|
+
const localVarHeaderParameter = {};
|
|
1923
|
+
const localVarQueryParameter = {};
|
|
1924
|
+
// authentication apiToken required
|
|
1925
|
+
// http bearer authentication required
|
|
1926
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1927
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1928
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1929
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1930
|
+
return {
|
|
1931
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1932
|
+
options: localVarRequestOptions,
|
|
1933
|
+
};
|
|
1934
|
+
}),
|
|
1935
|
+
/**
|
|
1936
|
+
* 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.
|
|
1937
|
+
* @summary Enable privacy protection
|
|
1938
|
+
* @param {string} domain Domain name
|
|
1939
|
+
* @param {*} [options] Override http request option.
|
|
1940
|
+
* @throws {RequiredError}
|
|
1941
|
+
*/
|
|
1942
|
+
enablePrivacyProtectionV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
1943
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1944
|
+
(0, common_1.assertParamExists)('enablePrivacyProtectionV1', 'domain', domain);
|
|
1945
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
|
|
1946
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1947
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1948
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1949
|
+
let baseOptions;
|
|
1950
|
+
if (configuration) {
|
|
1951
|
+
baseOptions = configuration.baseOptions;
|
|
1952
|
+
}
|
|
1953
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1954
|
+
const localVarHeaderParameter = {};
|
|
1955
|
+
const localVarQueryParameter = {};
|
|
1956
|
+
// authentication apiToken required
|
|
1957
|
+
// http bearer authentication required
|
|
1958
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1959
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1960
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1961
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1962
|
+
return {
|
|
1963
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1964
|
+
options: localVarRequestOptions,
|
|
1965
|
+
};
|
|
1966
|
+
}),
|
|
1967
|
+
/**
|
|
1968
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
1969
|
+
* @summary Get domain list
|
|
1970
|
+
* @param {*} [options] Override http request option.
|
|
1971
|
+
* @throws {RequiredError}
|
|
1972
|
+
*/
|
|
1973
|
+
getDomainListV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1974
|
+
const localVarPath = `/api/domains/v1/portfolio`;
|
|
1975
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1976
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1977
|
+
let baseOptions;
|
|
1978
|
+
if (configuration) {
|
|
1979
|
+
baseOptions = configuration.baseOptions;
|
|
1980
|
+
}
|
|
1981
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1982
|
+
const localVarHeaderParameter = {};
|
|
1983
|
+
const localVarQueryParameter = {};
|
|
1984
|
+
// authentication apiToken required
|
|
1985
|
+
// http bearer authentication required
|
|
1986
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1987
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1988
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1989
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1990
|
+
return {
|
|
1991
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1992
|
+
options: localVarRequestOptions,
|
|
1993
|
+
};
|
|
1994
|
+
}),
|
|
1995
|
+
/**
|
|
1996
|
+
* This endpoint retrieves details for specified domain.
|
|
1997
|
+
* @summary Get domain
|
|
1998
|
+
* @param {string} domain Domain name
|
|
1999
|
+
* @param {*} [options] Override http request option.
|
|
2000
|
+
* @throws {RequiredError}
|
|
2001
|
+
*/
|
|
2002
|
+
getDomainV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
2003
|
+
// verify required parameter 'domain' is not null or undefined
|
|
2004
|
+
(0, common_1.assertParamExists)('getDomainV1', 'domain', domain);
|
|
2005
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}`
|
|
2006
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
2007
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2008
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2009
|
+
let baseOptions;
|
|
2010
|
+
if (configuration) {
|
|
2011
|
+
baseOptions = configuration.baseOptions;
|
|
2012
|
+
}
|
|
2013
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2014
|
+
const localVarHeaderParameter = {};
|
|
2015
|
+
const localVarQueryParameter = {};
|
|
2016
|
+
// authentication apiToken required
|
|
2017
|
+
// http bearer authentication required
|
|
2018
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2019
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2020
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2021
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2022
|
+
return {
|
|
2023
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2024
|
+
options: localVarRequestOptions,
|
|
2025
|
+
};
|
|
2026
|
+
}),
|
|
2027
|
+
/**
|
|
2028
|
+
* 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.
|
|
2029
|
+
* @summary Purchase new domain
|
|
2030
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2031
|
+
* @param {*} [options] Override http request option.
|
|
2032
|
+
* @throws {RequiredError}
|
|
2033
|
+
*/
|
|
2034
|
+
purchaseNewDomainV1: (domainsV1PortfolioPurchaseRequest_1, ...args_1) => __awaiter(this, [domainsV1PortfolioPurchaseRequest_1, ...args_1], void 0, function* (domainsV1PortfolioPurchaseRequest, options = {}) {
|
|
2035
|
+
// verify required parameter 'domainsV1PortfolioPurchaseRequest' is not null or undefined
|
|
2036
|
+
(0, common_1.assertParamExists)('purchaseNewDomainV1', 'domainsV1PortfolioPurchaseRequest', domainsV1PortfolioPurchaseRequest);
|
|
2037
|
+
const localVarPath = `/api/domains/v1/portfolio`;
|
|
2038
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2039
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2040
|
+
let baseOptions;
|
|
2041
|
+
if (configuration) {
|
|
2042
|
+
baseOptions = configuration.baseOptions;
|
|
2043
|
+
}
|
|
2044
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2045
|
+
const localVarHeaderParameter = {};
|
|
2046
|
+
const localVarQueryParameter = {};
|
|
2047
|
+
// authentication apiToken required
|
|
2048
|
+
// http bearer authentication required
|
|
2049
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2050
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2051
|
+
(0, common_1.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 = (0, common_1.serializeDataIfNeeded)(domainsV1PortfolioPurchaseRequest, localVarRequestOptions, configuration);
|
|
2055
|
+
return {
|
|
2056
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2057
|
+
options: localVarRequestOptions,
|
|
2058
|
+
};
|
|
2059
|
+
}),
|
|
2060
|
+
/**
|
|
2061
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
2062
|
+
* @summary Update nameservers
|
|
2063
|
+
* @param {string} domain Domain name
|
|
2064
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
2065
|
+
* @param {*} [options] Override http request option.
|
|
2066
|
+
* @throws {RequiredError}
|
|
2067
|
+
*/
|
|
2068
|
+
updateNameserversV1: (domain_1, domainsV1PortfolioUpdateNameserversRequest_1, ...args_1) => __awaiter(this, [domain_1, domainsV1PortfolioUpdateNameserversRequest_1, ...args_1], void 0, function* (domain, domainsV1PortfolioUpdateNameserversRequest, options = {}) {
|
|
2069
|
+
// verify required parameter 'domain' is not null or undefined
|
|
2070
|
+
(0, common_1.assertParamExists)('updateNameserversV1', 'domain', domain);
|
|
2071
|
+
// verify required parameter 'domainsV1PortfolioUpdateNameserversRequest' is not null or undefined
|
|
2072
|
+
(0, common_1.assertParamExists)('updateNameserversV1', 'domainsV1PortfolioUpdateNameserversRequest', domainsV1PortfolioUpdateNameserversRequest);
|
|
2073
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/nameservers`
|
|
2074
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
2075
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2076
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2077
|
+
let baseOptions;
|
|
2078
|
+
if (configuration) {
|
|
2079
|
+
baseOptions = configuration.baseOptions;
|
|
2080
|
+
}
|
|
2081
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2082
|
+
const localVarHeaderParameter = {};
|
|
2083
|
+
const localVarQueryParameter = {};
|
|
2084
|
+
// authentication apiToken required
|
|
2085
|
+
// http bearer authentication required
|
|
2086
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2087
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2088
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2089
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2090
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2091
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainsV1PortfolioUpdateNameserversRequest, localVarRequestOptions, configuration);
|
|
2092
|
+
return {
|
|
2093
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2094
|
+
options: localVarRequestOptions,
|
|
2095
|
+
};
|
|
2096
|
+
}),
|
|
2097
|
+
};
|
|
2098
|
+
};
|
|
2099
|
+
exports.DomainsPortfolioApiAxiosParamCreator = DomainsPortfolioApiAxiosParamCreator;
|
|
2100
|
+
/**
|
|
2101
|
+
* DomainsPortfolioApi - functional programming interface
|
|
2102
|
+
* @export
|
|
2103
|
+
*/
|
|
2104
|
+
const DomainsPortfolioApiFp = function (configuration) {
|
|
2105
|
+
const localVarAxiosParamCreator = (0, exports.DomainsPortfolioApiAxiosParamCreator)(configuration);
|
|
2106
|
+
return {
|
|
2107
|
+
/**
|
|
2108
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
2109
|
+
* @summary Disable domain lock
|
|
2110
|
+
* @param {string} domain Domain name
|
|
2111
|
+
* @param {*} [options] Override http request option.
|
|
2112
|
+
* @throws {RequiredError}
|
|
2113
|
+
*/
|
|
2114
|
+
disableDomainLockV1(domain, options) {
|
|
2115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2116
|
+
var _a, _b;
|
|
2117
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disableDomainLockV1(domain, options);
|
|
2118
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.disableDomainLockV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2119
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2120
|
+
});
|
|
2121
|
+
},
|
|
2122
|
+
/**
|
|
2123
|
+
* 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.
|
|
2124
|
+
* @summary Disable privacy protection
|
|
2125
|
+
* @param {string} domain Domain name
|
|
2126
|
+
* @param {*} [options] Override http request option.
|
|
2127
|
+
* @throws {RequiredError}
|
|
2128
|
+
*/
|
|
2129
|
+
disablePrivacyProtectionV1(domain, options) {
|
|
2130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2131
|
+
var _a, _b;
|
|
2132
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disablePrivacyProtectionV1(domain, options);
|
|
2133
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.disablePrivacyProtectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2134
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2135
|
+
});
|
|
2136
|
+
},
|
|
2137
|
+
/**
|
|
2138
|
+
* 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.
|
|
2139
|
+
* @summary Enable domain lock
|
|
2140
|
+
* @param {string} domain Domain name
|
|
2141
|
+
* @param {*} [options] Override http request option.
|
|
2142
|
+
* @throws {RequiredError}
|
|
2143
|
+
*/
|
|
2144
|
+
enableDomainLockV1(domain, options) {
|
|
2145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2146
|
+
var _a, _b;
|
|
2147
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.enableDomainLockV1(domain, options);
|
|
2148
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.enableDomainLockV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2149
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2150
|
+
});
|
|
2151
|
+
},
|
|
2152
|
+
/**
|
|
2153
|
+
* 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.
|
|
2154
|
+
* @summary Enable privacy protection
|
|
2155
|
+
* @param {string} domain Domain name
|
|
2156
|
+
* @param {*} [options] Override http request option.
|
|
2157
|
+
* @throws {RequiredError}
|
|
2158
|
+
*/
|
|
2159
|
+
enablePrivacyProtectionV1(domain, options) {
|
|
2160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2161
|
+
var _a, _b;
|
|
2162
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.enablePrivacyProtectionV1(domain, options);
|
|
2163
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.enablePrivacyProtectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2164
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2165
|
+
});
|
|
2166
|
+
},
|
|
2167
|
+
/**
|
|
2168
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
2169
|
+
* @summary Get domain list
|
|
2170
|
+
* @param {*} [options] Override http request option.
|
|
2171
|
+
* @throws {RequiredError}
|
|
2172
|
+
*/
|
|
2173
|
+
getDomainListV1(options) {
|
|
2174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2175
|
+
var _a, _b;
|
|
2176
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainListV1(options);
|
|
2177
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.getDomainListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2178
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2179
|
+
});
|
|
2180
|
+
},
|
|
2181
|
+
/**
|
|
2182
|
+
* This endpoint retrieves details for specified domain.
|
|
2183
|
+
* @summary Get domain
|
|
2184
|
+
* @param {string} domain Domain name
|
|
2185
|
+
* @param {*} [options] Override http request option.
|
|
2186
|
+
* @throws {RequiredError}
|
|
2187
|
+
*/
|
|
2188
|
+
getDomainV1(domain, options) {
|
|
2189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2190
|
+
var _a, _b;
|
|
2191
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainV1(domain, options);
|
|
2192
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.getDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2193
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2194
|
+
});
|
|
2195
|
+
},
|
|
2196
|
+
/**
|
|
2197
|
+
* 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.
|
|
2198
|
+
* @summary Purchase new domain
|
|
2199
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2200
|
+
* @param {*} [options] Override http request option.
|
|
2201
|
+
* @throws {RequiredError}
|
|
2202
|
+
*/
|
|
2203
|
+
purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options) {
|
|
2204
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2205
|
+
var _a, _b;
|
|
2206
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options);
|
|
2207
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.purchaseNewDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2208
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2209
|
+
});
|
|
2210
|
+
},
|
|
2211
|
+
/**
|
|
2212
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
2213
|
+
* @summary Update nameservers
|
|
2214
|
+
* @param {string} domain Domain name
|
|
2215
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
2216
|
+
* @param {*} [options] Override http request option.
|
|
2217
|
+
* @throws {RequiredError}
|
|
2218
|
+
*/
|
|
2219
|
+
updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options) {
|
|
2220
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2221
|
+
var _a, _b;
|
|
2222
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options);
|
|
2223
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.updateNameserversV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2224
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2225
|
+
});
|
|
2226
|
+
},
|
|
2227
|
+
};
|
|
2228
|
+
};
|
|
2229
|
+
exports.DomainsPortfolioApiFp = DomainsPortfolioApiFp;
|
|
2230
|
+
/**
|
|
2231
|
+
* DomainsPortfolioApi - factory interface
|
|
2232
|
+
* @export
|
|
2233
|
+
*/
|
|
2234
|
+
const DomainsPortfolioApiFactory = function (configuration, basePath, axios) {
|
|
2235
|
+
const localVarFp = (0, exports.DomainsPortfolioApiFp)(configuration);
|
|
2236
|
+
return {
|
|
2237
|
+
/**
|
|
2238
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
2239
|
+
* @summary Disable domain lock
|
|
2240
|
+
* @param {string} domain Domain name
|
|
2241
|
+
* @param {*} [options] Override http request option.
|
|
2242
|
+
* @throws {RequiredError}
|
|
2243
|
+
*/
|
|
2244
|
+
disableDomainLockV1(domain, options) {
|
|
2245
|
+
return localVarFp.disableDomainLockV1(domain, options).then((request) => request(axios, basePath));
|
|
2246
|
+
},
|
|
2247
|
+
/**
|
|
2248
|
+
* 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.
|
|
2249
|
+
* @summary Disable privacy protection
|
|
2250
|
+
* @param {string} domain Domain name
|
|
2251
|
+
* @param {*} [options] Override http request option.
|
|
2252
|
+
* @throws {RequiredError}
|
|
2253
|
+
*/
|
|
2254
|
+
disablePrivacyProtectionV1(domain, options) {
|
|
2255
|
+
return localVarFp.disablePrivacyProtectionV1(domain, options).then((request) => request(axios, basePath));
|
|
2256
|
+
},
|
|
2257
|
+
/**
|
|
2258
|
+
* 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.
|
|
2259
|
+
* @summary Enable domain lock
|
|
2260
|
+
* @param {string} domain Domain name
|
|
2261
|
+
* @param {*} [options] Override http request option.
|
|
2262
|
+
* @throws {RequiredError}
|
|
2263
|
+
*/
|
|
2264
|
+
enableDomainLockV1(domain, options) {
|
|
2265
|
+
return localVarFp.enableDomainLockV1(domain, options).then((request) => request(axios, basePath));
|
|
2266
|
+
},
|
|
2267
|
+
/**
|
|
2268
|
+
* 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.
|
|
2269
|
+
* @summary Enable privacy protection
|
|
2270
|
+
* @param {string} domain Domain name
|
|
2271
|
+
* @param {*} [options] Override http request option.
|
|
2272
|
+
* @throws {RequiredError}
|
|
2273
|
+
*/
|
|
2274
|
+
enablePrivacyProtectionV1(domain, options) {
|
|
2275
|
+
return localVarFp.enablePrivacyProtectionV1(domain, options).then((request) => request(axios, basePath));
|
|
2276
|
+
},
|
|
2277
|
+
/**
|
|
2278
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
2279
|
+
* @summary Get domain list
|
|
2280
|
+
* @param {*} [options] Override http request option.
|
|
2281
|
+
* @throws {RequiredError}
|
|
2282
|
+
*/
|
|
2283
|
+
getDomainListV1(options) {
|
|
2284
|
+
return localVarFp.getDomainListV1(options).then((request) => request(axios, basePath));
|
|
2285
|
+
},
|
|
2286
|
+
/**
|
|
2287
|
+
* This endpoint retrieves details for specified domain.
|
|
2288
|
+
* @summary Get domain
|
|
2289
|
+
* @param {string} domain Domain name
|
|
2290
|
+
* @param {*} [options] Override http request option.
|
|
2291
|
+
* @throws {RequiredError}
|
|
2292
|
+
*/
|
|
2293
|
+
getDomainV1(domain, options) {
|
|
2294
|
+
return localVarFp.getDomainV1(domain, options).then((request) => request(axios, basePath));
|
|
2295
|
+
},
|
|
2296
|
+
/**
|
|
2297
|
+
* 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.
|
|
2298
|
+
* @summary Purchase new domain
|
|
2299
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2300
|
+
* @param {*} [options] Override http request option.
|
|
2301
|
+
* @throws {RequiredError}
|
|
2302
|
+
*/
|
|
2303
|
+
purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options) {
|
|
2304
|
+
return localVarFp.purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options).then((request) => request(axios, basePath));
|
|
2305
|
+
},
|
|
2306
|
+
/**
|
|
2307
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
2308
|
+
* @summary Update nameservers
|
|
2309
|
+
* @param {string} domain Domain name
|
|
2310
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
2311
|
+
* @param {*} [options] Override http request option.
|
|
2312
|
+
* @throws {RequiredError}
|
|
2313
|
+
*/
|
|
2314
|
+
updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options) {
|
|
2315
|
+
return localVarFp.updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options).then((request) => request(axios, basePath));
|
|
2316
|
+
},
|
|
2317
|
+
};
|
|
2318
|
+
};
|
|
2319
|
+
exports.DomainsPortfolioApiFactory = DomainsPortfolioApiFactory;
|
|
2320
|
+
/**
|
|
2321
|
+
* DomainsPortfolioApi - object-oriented interface
|
|
2322
|
+
* @export
|
|
2323
|
+
* @class DomainsPortfolioApi
|
|
2324
|
+
* @extends {BaseAPI}
|
|
2325
|
+
*/
|
|
2326
|
+
class DomainsPortfolioApi extends base_1.BaseAPI {
|
|
2327
|
+
/**
|
|
2328
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
2329
|
+
* @summary Disable domain lock
|
|
2330
|
+
* @param {string} domain Domain name
|
|
2331
|
+
* @param {*} [options] Override http request option.
|
|
2332
|
+
* @throws {RequiredError}
|
|
2333
|
+
* @memberof DomainsPortfolioApi
|
|
2334
|
+
*/
|
|
2335
|
+
disableDomainLockV1(domain, options) {
|
|
2336
|
+
return (0, exports.DomainsPortfolioApiFp)(this.configuration).disableDomainLockV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
2337
|
+
}
|
|
2338
|
+
/**
|
|
2339
|
+
* 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.
|
|
2340
|
+
* @summary Disable privacy protection
|
|
2341
|
+
* @param {string} domain Domain name
|
|
2342
|
+
* @param {*} [options] Override http request option.
|
|
2343
|
+
* @throws {RequiredError}
|
|
2344
|
+
* @memberof DomainsPortfolioApi
|
|
2345
|
+
*/
|
|
2346
|
+
disablePrivacyProtectionV1(domain, options) {
|
|
2347
|
+
return (0, exports.DomainsPortfolioApiFp)(this.configuration).disablePrivacyProtectionV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
2348
|
+
}
|
|
2349
|
+
/**
|
|
2350
|
+
* 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.
|
|
2351
|
+
* @summary Enable domain lock
|
|
2352
|
+
* @param {string} domain Domain name
|
|
2353
|
+
* @param {*} [options] Override http request option.
|
|
2354
|
+
* @throws {RequiredError}
|
|
2355
|
+
* @memberof DomainsPortfolioApi
|
|
2356
|
+
*/
|
|
2357
|
+
enableDomainLockV1(domain, options) {
|
|
2358
|
+
return (0, exports.DomainsPortfolioApiFp)(this.configuration).enableDomainLockV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
2359
|
+
}
|
|
2360
|
+
/**
|
|
2361
|
+
* 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.
|
|
2362
|
+
* @summary Enable privacy protection
|
|
2363
|
+
* @param {string} domain Domain name
|
|
2364
|
+
* @param {*} [options] Override http request option.
|
|
2365
|
+
* @throws {RequiredError}
|
|
2366
|
+
* @memberof DomainsPortfolioApi
|
|
2367
|
+
*/
|
|
2368
|
+
enablePrivacyProtectionV1(domain, options) {
|
|
2369
|
+
return (0, exports.DomainsPortfolioApiFp)(this.configuration).enablePrivacyProtectionV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
2370
|
+
}
|
|
2371
|
+
/**
|
|
2372
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
2373
|
+
* @summary Get domain list
|
|
2374
|
+
* @param {*} [options] Override http request option.
|
|
2375
|
+
* @throws {RequiredError}
|
|
2376
|
+
* @memberof DomainsPortfolioApi
|
|
2377
|
+
*/
|
|
2378
|
+
getDomainListV1(options) {
|
|
2379
|
+
return (0, exports.DomainsPortfolioApiFp)(this.configuration).getDomainListV1(options).then((request) => request(this.axios, this.basePath));
|
|
2380
|
+
}
|
|
2381
|
+
/**
|
|
2382
|
+
* This endpoint retrieves details for specified domain.
|
|
2383
|
+
* @summary Get domain
|
|
2384
|
+
* @param {string} domain Domain name
|
|
2385
|
+
* @param {*} [options] Override http request option.
|
|
2386
|
+
* @throws {RequiredError}
|
|
2387
|
+
* @memberof DomainsPortfolioApi
|
|
2388
|
+
*/
|
|
2389
|
+
getDomainV1(domain, options) {
|
|
2390
|
+
return (0, exports.DomainsPortfolioApiFp)(this.configuration).getDomainV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
2391
|
+
}
|
|
2392
|
+
/**
|
|
2393
|
+
* 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.
|
|
2394
|
+
* @summary Purchase new domain
|
|
2395
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2396
|
+
* @param {*} [options] Override http request option.
|
|
2397
|
+
* @throws {RequiredError}
|
|
2398
|
+
* @memberof DomainsPortfolioApi
|
|
2399
|
+
*/
|
|
2400
|
+
purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options) {
|
|
2401
|
+
return (0, exports.DomainsPortfolioApiFp)(this.configuration).purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2402
|
+
}
|
|
2403
|
+
/**
|
|
2404
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
2405
|
+
* @summary Update nameservers
|
|
2406
|
+
* @param {string} domain Domain name
|
|
2407
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
2408
|
+
* @param {*} [options] Override http request option.
|
|
2409
|
+
* @throws {RequiredError}
|
|
2410
|
+
* @memberof DomainsPortfolioApi
|
|
2411
|
+
*/
|
|
2412
|
+
updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options) {
|
|
2413
|
+
return (0, exports.DomainsPortfolioApiFp)(this.configuration).updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2416
|
+
exports.DomainsPortfolioApi = DomainsPortfolioApi;
|
|
2417
|
+
/**
|
|
2418
|
+
* DomainsWHOISApi - axios parameter creator
|
|
2419
|
+
* @export
|
|
2420
|
+
*/
|
|
2421
|
+
const DomainsWHOISApiAxiosParamCreator = function (configuration) {
|
|
2422
|
+
return {
|
|
2423
|
+
/**
|
|
2424
|
+
* This endpoint creates WHOIS contact profile.
|
|
2425
|
+
* @summary Create WHOIS profile
|
|
2426
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
2427
|
+
* @param {*} [options] Override http request option.
|
|
2428
|
+
* @throws {RequiredError}
|
|
2429
|
+
*/
|
|
2430
|
+
createWHOISProfileV1: (domainsV1WHOISStoreRequest_1, ...args_1) => __awaiter(this, [domainsV1WHOISStoreRequest_1, ...args_1], void 0, function* (domainsV1WHOISStoreRequest, options = {}) {
|
|
2431
|
+
// verify required parameter 'domainsV1WHOISStoreRequest' is not null or undefined
|
|
2432
|
+
(0, common_1.assertParamExists)('createWHOISProfileV1', 'domainsV1WHOISStoreRequest', domainsV1WHOISStoreRequest);
|
|
2433
|
+
const localVarPath = `/api/domains/v1/whois`;
|
|
2434
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2435
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2436
|
+
let baseOptions;
|
|
2437
|
+
if (configuration) {
|
|
2438
|
+
baseOptions = configuration.baseOptions;
|
|
2439
|
+
}
|
|
2440
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2441
|
+
const localVarHeaderParameter = {};
|
|
2442
|
+
const localVarQueryParameter = {};
|
|
2443
|
+
// authentication apiToken required
|
|
2444
|
+
// http bearer authentication required
|
|
2445
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2446
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2447
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2448
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2449
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2450
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainsV1WHOISStoreRequest, localVarRequestOptions, configuration);
|
|
2451
|
+
return {
|
|
2452
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2453
|
+
options: localVarRequestOptions,
|
|
2454
|
+
};
|
|
2455
|
+
}),
|
|
2456
|
+
/**
|
|
2457
|
+
* This endpoint deletes WHOIS contact profile.
|
|
2458
|
+
* @summary Delete WHOIS profile
|
|
2459
|
+
* @param {number} whoisId WHOIS ID
|
|
2460
|
+
* @param {*} [options] Override http request option.
|
|
2461
|
+
* @throws {RequiredError}
|
|
2462
|
+
*/
|
|
2463
|
+
deleteWHOISProfileV1: (whoisId_1, ...args_1) => __awaiter(this, [whoisId_1, ...args_1], void 0, function* (whoisId, options = {}) {
|
|
2464
|
+
// verify required parameter 'whoisId' is not null or undefined
|
|
2465
|
+
(0, common_1.assertParamExists)('deleteWHOISProfileV1', 'whoisId', whoisId);
|
|
2466
|
+
const localVarPath = `/api/domains/v1/whois/{whoisId}`
|
|
2467
|
+
.replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
|
|
2468
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2469
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2470
|
+
let baseOptions;
|
|
2471
|
+
if (configuration) {
|
|
2472
|
+
baseOptions = configuration.baseOptions;
|
|
2473
|
+
}
|
|
2474
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2475
|
+
const localVarHeaderParameter = {};
|
|
2476
|
+
const localVarQueryParameter = {};
|
|
2477
|
+
// authentication apiToken required
|
|
2478
|
+
// http bearer authentication required
|
|
2479
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2480
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2481
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2482
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2483
|
+
return {
|
|
2484
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2485
|
+
options: localVarRequestOptions,
|
|
2486
|
+
};
|
|
2487
|
+
}),
|
|
2488
|
+
/**
|
|
2489
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
2490
|
+
* @summary Get WHOIS profile list
|
|
2491
|
+
* @param {string} [tld] Filter by TLD (without trailing dot)
|
|
2492
|
+
* @param {*} [options] Override http request option.
|
|
2493
|
+
* @throws {RequiredError}
|
|
2494
|
+
*/
|
|
2495
|
+
getWHOISProfileListV1: (tld_1, ...args_1) => __awaiter(this, [tld_1, ...args_1], void 0, function* (tld, options = {}) {
|
|
2496
|
+
const localVarPath = `/api/domains/v1/whois`;
|
|
2497
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2498
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2499
|
+
let baseOptions;
|
|
2500
|
+
if (configuration) {
|
|
2501
|
+
baseOptions = configuration.baseOptions;
|
|
2502
|
+
}
|
|
2503
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2504
|
+
const localVarHeaderParameter = {};
|
|
2505
|
+
const localVarQueryParameter = {};
|
|
2506
|
+
// authentication apiToken required
|
|
2507
|
+
// http bearer authentication required
|
|
2508
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2509
|
+
if (tld !== undefined) {
|
|
2510
|
+
localVarQueryParameter['tld'] = tld;
|
|
2511
|
+
}
|
|
2512
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2513
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2514
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2515
|
+
return {
|
|
2516
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2517
|
+
options: localVarRequestOptions,
|
|
2518
|
+
};
|
|
2519
|
+
}),
|
|
2520
|
+
/**
|
|
2521
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
2522
|
+
* @summary Get WHOIS profile usage
|
|
2523
|
+
* @param {number} whoisId WHOIS ID
|
|
2524
|
+
* @param {*} [options] Override http request option.
|
|
2525
|
+
* @throws {RequiredError}
|
|
2526
|
+
*/
|
|
2527
|
+
getWHOISProfileUsageV1: (whoisId_1, ...args_1) => __awaiter(this, [whoisId_1, ...args_1], void 0, function* (whoisId, options = {}) {
|
|
2528
|
+
// verify required parameter 'whoisId' is not null or undefined
|
|
2529
|
+
(0, common_1.assertParamExists)('getWHOISProfileUsageV1', 'whoisId', whoisId);
|
|
2530
|
+
const localVarPath = `/api/domains/v1/whois/{whoisId}/usage`
|
|
2531
|
+
.replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
|
|
2532
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2533
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2534
|
+
let baseOptions;
|
|
2535
|
+
if (configuration) {
|
|
2536
|
+
baseOptions = configuration.baseOptions;
|
|
2537
|
+
}
|
|
2538
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2539
|
+
const localVarHeaderParameter = {};
|
|
2540
|
+
const localVarQueryParameter = {};
|
|
2541
|
+
// authentication apiToken required
|
|
2542
|
+
// http bearer authentication required
|
|
2543
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2544
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2545
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2546
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2547
|
+
return {
|
|
2548
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2549
|
+
options: localVarRequestOptions,
|
|
2550
|
+
};
|
|
2551
|
+
}),
|
|
2552
|
+
/**
|
|
2553
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
2554
|
+
* @summary Get WHOIS profile
|
|
2555
|
+
* @param {number} whoisId WHOIS ID
|
|
2556
|
+
* @param {*} [options] Override http request option.
|
|
2557
|
+
* @throws {RequiredError}
|
|
2558
|
+
*/
|
|
2559
|
+
getWHOISProfileV1: (whoisId_1, ...args_1) => __awaiter(this, [whoisId_1, ...args_1], void 0, function* (whoisId, options = {}) {
|
|
2560
|
+
// verify required parameter 'whoisId' is not null or undefined
|
|
2561
|
+
(0, common_1.assertParamExists)('getWHOISProfileV1', 'whoisId', whoisId);
|
|
2562
|
+
const localVarPath = `/api/domains/v1/whois/{whoisId}`
|
|
2563
|
+
.replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
|
|
2564
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2565
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2566
|
+
let baseOptions;
|
|
2567
|
+
if (configuration) {
|
|
2568
|
+
baseOptions = configuration.baseOptions;
|
|
2569
|
+
}
|
|
2570
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2571
|
+
const localVarHeaderParameter = {};
|
|
2572
|
+
const localVarQueryParameter = {};
|
|
2573
|
+
// authentication apiToken required
|
|
2574
|
+
// http bearer authentication required
|
|
2575
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2576
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2577
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2578
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2579
|
+
return {
|
|
2580
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2581
|
+
options: localVarRequestOptions,
|
|
2582
|
+
};
|
|
2583
|
+
}),
|
|
2584
|
+
};
|
|
2585
|
+
};
|
|
2586
|
+
exports.DomainsWHOISApiAxiosParamCreator = DomainsWHOISApiAxiosParamCreator;
|
|
2587
|
+
/**
|
|
2588
|
+
* DomainsWHOISApi - functional programming interface
|
|
2589
|
+
* @export
|
|
2590
|
+
*/
|
|
2591
|
+
const DomainsWHOISApiFp = function (configuration) {
|
|
2592
|
+
const localVarAxiosParamCreator = (0, exports.DomainsWHOISApiAxiosParamCreator)(configuration);
|
|
2593
|
+
return {
|
|
2594
|
+
/**
|
|
2595
|
+
* This endpoint creates WHOIS contact profile.
|
|
2596
|
+
* @summary Create WHOIS profile
|
|
2597
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
2598
|
+
* @param {*} [options] Override http request option.
|
|
2599
|
+
* @throws {RequiredError}
|
|
2600
|
+
*/
|
|
2601
|
+
createWHOISProfileV1(domainsV1WHOISStoreRequest, options) {
|
|
2602
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2603
|
+
var _a, _b;
|
|
2604
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWHOISProfileV1(domainsV1WHOISStoreRequest, options);
|
|
2605
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsWHOISApi.createWHOISProfileV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2606
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2607
|
+
});
|
|
2608
|
+
},
|
|
2609
|
+
/**
|
|
2610
|
+
* This endpoint deletes WHOIS contact profile.
|
|
2611
|
+
* @summary Delete WHOIS profile
|
|
2612
|
+
* @param {number} whoisId WHOIS ID
|
|
2613
|
+
* @param {*} [options] Override http request option.
|
|
2614
|
+
* @throws {RequiredError}
|
|
2615
|
+
*/
|
|
2616
|
+
deleteWHOISProfileV1(whoisId, options) {
|
|
2617
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2618
|
+
var _a, _b;
|
|
2619
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWHOISProfileV1(whoisId, options);
|
|
2620
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsWHOISApi.deleteWHOISProfileV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2621
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2622
|
+
});
|
|
2623
|
+
},
|
|
2624
|
+
/**
|
|
2625
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
2626
|
+
* @summary Get WHOIS profile list
|
|
2627
|
+
* @param {string} [tld] Filter by TLD (without trailing dot)
|
|
2628
|
+
* @param {*} [options] Override http request option.
|
|
2629
|
+
* @throws {RequiredError}
|
|
2630
|
+
*/
|
|
2631
|
+
getWHOISProfileListV1(tld, options) {
|
|
2632
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2633
|
+
var _a, _b;
|
|
2634
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWHOISProfileListV1(tld, options);
|
|
2635
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsWHOISApi.getWHOISProfileListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2636
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2637
|
+
});
|
|
2638
|
+
},
|
|
2639
|
+
/**
|
|
2640
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
2641
|
+
* @summary Get WHOIS profile usage
|
|
2642
|
+
* @param {number} whoisId WHOIS ID
|
|
2643
|
+
* @param {*} [options] Override http request option.
|
|
2644
|
+
* @throws {RequiredError}
|
|
2645
|
+
*/
|
|
2646
|
+
getWHOISProfileUsageV1(whoisId, options) {
|
|
2647
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2648
|
+
var _a, _b;
|
|
2649
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWHOISProfileUsageV1(whoisId, options);
|
|
2650
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsWHOISApi.getWHOISProfileUsageV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2651
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2652
|
+
});
|
|
2653
|
+
},
|
|
2654
|
+
/**
|
|
2655
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
2656
|
+
* @summary Get WHOIS profile
|
|
2657
|
+
* @param {number} whoisId WHOIS ID
|
|
2658
|
+
* @param {*} [options] Override http request option.
|
|
2659
|
+
* @throws {RequiredError}
|
|
2660
|
+
*/
|
|
2661
|
+
getWHOISProfileV1(whoisId, options) {
|
|
2662
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2663
|
+
var _a, _b;
|
|
2664
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWHOISProfileV1(whoisId, options);
|
|
2665
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsWHOISApi.getWHOISProfileV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2666
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2667
|
+
});
|
|
2668
|
+
},
|
|
2669
|
+
};
|
|
2670
|
+
};
|
|
2671
|
+
exports.DomainsWHOISApiFp = DomainsWHOISApiFp;
|
|
2672
|
+
/**
|
|
2673
|
+
* DomainsWHOISApi - factory interface
|
|
2674
|
+
* @export
|
|
2675
|
+
*/
|
|
2676
|
+
const DomainsWHOISApiFactory = function (configuration, basePath, axios) {
|
|
2677
|
+
const localVarFp = (0, exports.DomainsWHOISApiFp)(configuration);
|
|
2678
|
+
return {
|
|
2679
|
+
/**
|
|
2680
|
+
* This endpoint creates WHOIS contact profile.
|
|
2681
|
+
* @summary Create WHOIS profile
|
|
2682
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
2683
|
+
* @param {*} [options] Override http request option.
|
|
2684
|
+
* @throws {RequiredError}
|
|
2685
|
+
*/
|
|
2686
|
+
createWHOISProfileV1(domainsV1WHOISStoreRequest, options) {
|
|
2687
|
+
return localVarFp.createWHOISProfileV1(domainsV1WHOISStoreRequest, options).then((request) => request(axios, basePath));
|
|
2688
|
+
},
|
|
2689
|
+
/**
|
|
2690
|
+
* This endpoint deletes WHOIS contact profile.
|
|
2691
|
+
* @summary Delete WHOIS profile
|
|
2692
|
+
* @param {number} whoisId WHOIS ID
|
|
2693
|
+
* @param {*} [options] Override http request option.
|
|
2694
|
+
* @throws {RequiredError}
|
|
2695
|
+
*/
|
|
2696
|
+
deleteWHOISProfileV1(whoisId, options) {
|
|
2697
|
+
return localVarFp.deleteWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
|
|
2698
|
+
},
|
|
2699
|
+
/**
|
|
2700
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
2701
|
+
* @summary Get WHOIS profile list
|
|
2702
|
+
* @param {string} [tld] Filter by TLD (without trailing dot)
|
|
2703
|
+
* @param {*} [options] Override http request option.
|
|
2704
|
+
* @throws {RequiredError}
|
|
2705
|
+
*/
|
|
2706
|
+
getWHOISProfileListV1(tld, options) {
|
|
2707
|
+
return localVarFp.getWHOISProfileListV1(tld, options).then((request) => request(axios, basePath));
|
|
2708
|
+
},
|
|
2709
|
+
/**
|
|
2710
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
2711
|
+
* @summary Get WHOIS profile usage
|
|
2712
|
+
* @param {number} whoisId WHOIS ID
|
|
2713
|
+
* @param {*} [options] Override http request option.
|
|
2714
|
+
* @throws {RequiredError}
|
|
2715
|
+
*/
|
|
2716
|
+
getWHOISProfileUsageV1(whoisId, options) {
|
|
2717
|
+
return localVarFp.getWHOISProfileUsageV1(whoisId, options).then((request) => request(axios, basePath));
|
|
2718
|
+
},
|
|
2719
|
+
/**
|
|
2720
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
2721
|
+
* @summary Get WHOIS profile
|
|
2722
|
+
* @param {number} whoisId WHOIS ID
|
|
2723
|
+
* @param {*} [options] Override http request option.
|
|
2724
|
+
* @throws {RequiredError}
|
|
2725
|
+
*/
|
|
2726
|
+
getWHOISProfileV1(whoisId, options) {
|
|
2727
|
+
return localVarFp.getWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
|
|
2728
|
+
},
|
|
2729
|
+
};
|
|
2730
|
+
};
|
|
2731
|
+
exports.DomainsWHOISApiFactory = DomainsWHOISApiFactory;
|
|
2732
|
+
/**
|
|
2733
|
+
* DomainsWHOISApi - object-oriented interface
|
|
2734
|
+
* @export
|
|
2735
|
+
* @class DomainsWHOISApi
|
|
2736
|
+
* @extends {BaseAPI}
|
|
2737
|
+
*/
|
|
2738
|
+
class DomainsWHOISApi extends base_1.BaseAPI {
|
|
2739
|
+
/**
|
|
2740
|
+
* This endpoint creates WHOIS contact profile.
|
|
2741
|
+
* @summary Create WHOIS profile
|
|
2742
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
2743
|
+
* @param {*} [options] Override http request option.
|
|
2744
|
+
* @throws {RequiredError}
|
|
2745
|
+
* @memberof DomainsWHOISApi
|
|
2746
|
+
*/
|
|
2747
|
+
createWHOISProfileV1(domainsV1WHOISStoreRequest, options) {
|
|
2748
|
+
return (0, exports.DomainsWHOISApiFp)(this.configuration).createWHOISProfileV1(domainsV1WHOISStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2749
|
+
}
|
|
2750
|
+
/**
|
|
2751
|
+
* This endpoint deletes WHOIS contact profile.
|
|
2752
|
+
* @summary Delete WHOIS profile
|
|
2753
|
+
* @param {number} whoisId WHOIS ID
|
|
2754
|
+
* @param {*} [options] Override http request option.
|
|
2755
|
+
* @throws {RequiredError}
|
|
2756
|
+
* @memberof DomainsWHOISApi
|
|
2757
|
+
*/
|
|
2758
|
+
deleteWHOISProfileV1(whoisId, options) {
|
|
2759
|
+
return (0, exports.DomainsWHOISApiFp)(this.configuration).deleteWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
2760
|
+
}
|
|
2761
|
+
/**
|
|
2762
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
2763
|
+
* @summary Get WHOIS profile list
|
|
2764
|
+
* @param {string} [tld] Filter by TLD (without trailing dot)
|
|
2765
|
+
* @param {*} [options] Override http request option.
|
|
2766
|
+
* @throws {RequiredError}
|
|
2767
|
+
* @memberof DomainsWHOISApi
|
|
2768
|
+
*/
|
|
2769
|
+
getWHOISProfileListV1(tld, options) {
|
|
2770
|
+
return (0, exports.DomainsWHOISApiFp)(this.configuration).getWHOISProfileListV1(tld, options).then((request) => request(this.axios, this.basePath));
|
|
2771
|
+
}
|
|
2772
|
+
/**
|
|
2773
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
2774
|
+
* @summary Get WHOIS profile usage
|
|
2775
|
+
* @param {number} whoisId WHOIS ID
|
|
2776
|
+
* @param {*} [options] Override http request option.
|
|
2777
|
+
* @throws {RequiredError}
|
|
2778
|
+
* @memberof DomainsWHOISApi
|
|
2779
|
+
*/
|
|
2780
|
+
getWHOISProfileUsageV1(whoisId, options) {
|
|
2781
|
+
return (0, exports.DomainsWHOISApiFp)(this.configuration).getWHOISProfileUsageV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
2782
|
+
}
|
|
2783
|
+
/**
|
|
2784
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
2785
|
+
* @summary Get WHOIS profile
|
|
2786
|
+
* @param {number} whoisId WHOIS ID
|
|
2787
|
+
* @param {*} [options] Override http request option.
|
|
2788
|
+
* @throws {RequiredError}
|
|
2789
|
+
* @memberof DomainsWHOISApi
|
|
2790
|
+
*/
|
|
2791
|
+
getWHOISProfileV1(whoisId, options) {
|
|
2792
|
+
return (0, exports.DomainsWHOISApiFp)(this.configuration).getWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
2793
|
+
}
|
|
2794
|
+
}
|
|
2795
|
+
exports.DomainsWHOISApi = DomainsWHOISApi;
|
|
1556
2796
|
/**
|
|
1557
2797
|
* VPSActionsApi - axios parameter creator
|
|
1558
2798
|
* @export
|