@randock/nameshift-api-client 0.0.414 → 0.0.416
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/.openapi-generator/FILES +1 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +11 -0
- package/dist/apis/AdminApi.js +51 -0
- package/dist/apis/DomainsApi.d.ts +12 -1
- package/dist/apis/DomainsApi.js +53 -0
- package/dist/models/CheckDomainsNsInput.d.ts +32 -0
- package/dist/models/CheckDomainsNsInput.js +51 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +44 -0
- package/src/apis/DomainsApi.ts +50 -0
- package/src/models/CheckDomainsNsInput.ts +66 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -161,6 +161,7 @@ src/models/ChangeOrderStatusInput.ts
|
|
|
161
161
|
src/models/ChangeSubscriptionStatusInput.ts
|
|
162
162
|
src/models/ChangeUserEmailWithOtpInput.ts
|
|
163
163
|
src/models/ChartDataPoint.ts
|
|
164
|
+
src/models/CheckDomainsNsInput.ts
|
|
164
165
|
src/models/CommissionAccountDto.ts
|
|
165
166
|
src/models/CommissionAction.ts
|
|
166
167
|
src/models/CommissionAddUpdateActionInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.416
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.416 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
f30e21a6153185b7a918343c48db474b1a18d41f1b5e155995774daf35c54abdb0535522e11bdbeba30b3d38be3b6452
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -186,6 +186,9 @@ export interface AdminApiPostAdminExecuteDomainTransferStepActionRequest {
|
|
|
186
186
|
export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
|
|
187
187
|
sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
|
|
188
188
|
}
|
|
189
|
+
export interface AdminApiPurgeDomainCdnCacheRequest {
|
|
190
|
+
domainId: string;
|
|
191
|
+
}
|
|
189
192
|
export interface AdminApiRemoveDomainLockRequest {
|
|
190
193
|
domainId: string;
|
|
191
194
|
lockId: string;
|
|
@@ -585,6 +588,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
585
588
|
*
|
|
586
589
|
*/
|
|
587
590
|
postAiPriceNegotiatorAgentChatMessage(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LeadMessageDto>>;
|
|
591
|
+
/**
|
|
592
|
+
*
|
|
593
|
+
*/
|
|
594
|
+
purgeDomainCdnCacheRaw(requestParameters: AdminApiPurgeDomainCdnCacheRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
595
|
+
/**
|
|
596
|
+
*
|
|
597
|
+
*/
|
|
598
|
+
purgeDomainCdnCache(requestParameters: AdminApiPurgeDomainCdnCacheRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
588
599
|
/**
|
|
589
600
|
*
|
|
590
601
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -2597,6 +2597,57 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
2597
2597
|
});
|
|
2598
2598
|
});
|
|
2599
2599
|
};
|
|
2600
|
+
/**
|
|
2601
|
+
*
|
|
2602
|
+
*/
|
|
2603
|
+
AdminApi.prototype.purgeDomainCdnCacheRaw = function (requestParameters, initOverrides) {
|
|
2604
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2605
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
2606
|
+
return __generator(this, function (_a) {
|
|
2607
|
+
switch (_a.label) {
|
|
2608
|
+
case 0:
|
|
2609
|
+
if (requestParameters['domainId'] == null) {
|
|
2610
|
+
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling purgeDomainCdnCache().');
|
|
2611
|
+
}
|
|
2612
|
+
queryParameters = {};
|
|
2613
|
+
headerParameters = {};
|
|
2614
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
2615
|
+
token = this.configuration.accessToken;
|
|
2616
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
2617
|
+
case 1:
|
|
2618
|
+
tokenString = _a.sent();
|
|
2619
|
+
if (tokenString) {
|
|
2620
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
2621
|
+
}
|
|
2622
|
+
_a.label = 2;
|
|
2623
|
+
case 2: return [4 /*yield*/, this.request({
|
|
2624
|
+
path: "/admin/domains/{domainId}/purge-cdn-cache".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
2625
|
+
method: 'POST',
|
|
2626
|
+
headers: headerParameters,
|
|
2627
|
+
query: queryParameters,
|
|
2628
|
+
}, initOverrides)];
|
|
2629
|
+
case 3:
|
|
2630
|
+
response = _a.sent();
|
|
2631
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
2632
|
+
}
|
|
2633
|
+
});
|
|
2634
|
+
});
|
|
2635
|
+
};
|
|
2636
|
+
/**
|
|
2637
|
+
*
|
|
2638
|
+
*/
|
|
2639
|
+
AdminApi.prototype.purgeDomainCdnCache = function (requestParameters, initOverrides) {
|
|
2640
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2641
|
+
return __generator(this, function (_a) {
|
|
2642
|
+
switch (_a.label) {
|
|
2643
|
+
case 0: return [4 /*yield*/, this.purgeDomainCdnCacheRaw(requestParameters, initOverrides)];
|
|
2644
|
+
case 1:
|
|
2645
|
+
_a.sent();
|
|
2646
|
+
return [2 /*return*/];
|
|
2647
|
+
}
|
|
2648
|
+
});
|
|
2649
|
+
});
|
|
2650
|
+
};
|
|
2600
2651
|
/**
|
|
2601
2652
|
*
|
|
2602
2653
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchImportPreviewDto, BatchUpdateDomainsInput, BulkUpdateDomainsWithFiltersInput, DeleteDomainsInput, DomainExchangeRateDto, DomainFiltersDto, DomainUrlDto, DomainVerificationStatusDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainAffiliateCommissionDto, SellerDomainTransferDto, StartAuctionInput, UpdateDomainInput, UpdateDomainTransferAuthCodeInput, UpdateDomainTransferIpsTagInput } from '../models/index';
|
|
13
|
+
import type { BatchImportPreviewDto, BatchUpdateDomainsInput, BulkUpdateDomainsWithFiltersInput, CheckDomainsNsInput, DeleteDomainsInput, DomainExchangeRateDto, DomainFiltersDto, DomainUrlDto, DomainVerificationStatusDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainAffiliateCommissionDto, SellerDomainTransferDto, StartAuctionInput, UpdateDomainInput, UpdateDomainTransferAuthCodeInput, UpdateDomainTransferIpsTagInput } from '../models/index';
|
|
14
14
|
export interface DomainsApiBatchImportRequest {
|
|
15
15
|
file?: Blob | null;
|
|
16
16
|
domains?: Array<string>;
|
|
@@ -28,6 +28,9 @@ export interface DomainsApiBulkUpdateDomainsWithFiltersRequest {
|
|
|
28
28
|
export interface DomainsApiCheckDnsRequest {
|
|
29
29
|
domainId: string;
|
|
30
30
|
}
|
|
31
|
+
export interface DomainsApiCheckDnsBatchRequest {
|
|
32
|
+
checkDomainsNsInput: CheckDomainsNsInput;
|
|
33
|
+
}
|
|
31
34
|
export interface DomainsApiCheckDomainVerificationRequest {
|
|
32
35
|
domainId: string;
|
|
33
36
|
}
|
|
@@ -124,6 +127,14 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
124
127
|
*
|
|
125
128
|
*/
|
|
126
129
|
checkDns(requestParameters: DomainsApiCheckDnsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
*/
|
|
133
|
+
checkDnsBatchRaw(requestParameters: DomainsApiCheckDnsBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
*/
|
|
137
|
+
checkDnsBatch(requestParameters: DomainsApiCheckDnsBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
127
138
|
/**
|
|
128
139
|
*
|
|
129
140
|
*/
|
package/dist/apis/DomainsApi.js
CHANGED
|
@@ -374,6 +374,59 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
374
374
|
});
|
|
375
375
|
});
|
|
376
376
|
};
|
|
377
|
+
/**
|
|
378
|
+
*
|
|
379
|
+
*/
|
|
380
|
+
DomainsApi.prototype.checkDnsBatchRaw = function (requestParameters, initOverrides) {
|
|
381
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
382
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
383
|
+
return __generator(this, function (_a) {
|
|
384
|
+
switch (_a.label) {
|
|
385
|
+
case 0:
|
|
386
|
+
if (requestParameters['checkDomainsNsInput'] == null) {
|
|
387
|
+
throw new runtime.RequiredError('checkDomainsNsInput', 'Required parameter "checkDomainsNsInput" was null or undefined when calling checkDnsBatch().');
|
|
388
|
+
}
|
|
389
|
+
queryParameters = {};
|
|
390
|
+
headerParameters = {};
|
|
391
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
392
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
393
|
+
token = this.configuration.accessToken;
|
|
394
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
395
|
+
case 1:
|
|
396
|
+
tokenString = _a.sent();
|
|
397
|
+
if (tokenString) {
|
|
398
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
399
|
+
}
|
|
400
|
+
_a.label = 2;
|
|
401
|
+
case 2: return [4 /*yield*/, this.request({
|
|
402
|
+
path: "/private/domains/check_ns",
|
|
403
|
+
method: 'POST',
|
|
404
|
+
headers: headerParameters,
|
|
405
|
+
query: queryParameters,
|
|
406
|
+
body: (0, index_1.CheckDomainsNsInputToJSON)(requestParameters['checkDomainsNsInput']),
|
|
407
|
+
}, initOverrides)];
|
|
408
|
+
case 3:
|
|
409
|
+
response = _a.sent();
|
|
410
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
});
|
|
414
|
+
};
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
*/
|
|
418
|
+
DomainsApi.prototype.checkDnsBatch = function (requestParameters, initOverrides) {
|
|
419
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
420
|
+
return __generator(this, function (_a) {
|
|
421
|
+
switch (_a.label) {
|
|
422
|
+
case 0: return [4 /*yield*/, this.checkDnsBatchRaw(requestParameters, initOverrides)];
|
|
423
|
+
case 1:
|
|
424
|
+
_a.sent();
|
|
425
|
+
return [2 /*return*/];
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
});
|
|
429
|
+
};
|
|
377
430
|
/**
|
|
378
431
|
*
|
|
379
432
|
*/
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CheckDomainsNsInput
|
|
16
|
+
*/
|
|
17
|
+
export interface CheckDomainsNsInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof CheckDomainsNsInput
|
|
22
|
+
*/
|
|
23
|
+
domainIds: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CheckDomainsNsInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCheckDomainsNsInput(value: object): value is CheckDomainsNsInput;
|
|
29
|
+
export declare function CheckDomainsNsInputFromJSON(json: any): CheckDomainsNsInput;
|
|
30
|
+
export declare function CheckDomainsNsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckDomainsNsInput;
|
|
31
|
+
export declare function CheckDomainsNsInputToJSON(json: any): CheckDomainsNsInput;
|
|
32
|
+
export declare function CheckDomainsNsInputToJSONTyped(value?: CheckDomainsNsInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCheckDomainsNsInput = instanceOfCheckDomainsNsInput;
|
|
17
|
+
exports.CheckDomainsNsInputFromJSON = CheckDomainsNsInputFromJSON;
|
|
18
|
+
exports.CheckDomainsNsInputFromJSONTyped = CheckDomainsNsInputFromJSONTyped;
|
|
19
|
+
exports.CheckDomainsNsInputToJSON = CheckDomainsNsInputToJSON;
|
|
20
|
+
exports.CheckDomainsNsInputToJSONTyped = CheckDomainsNsInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CheckDomainsNsInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCheckDomainsNsInput(value) {
|
|
25
|
+
if (!('domainIds' in value) || value['domainIds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function CheckDomainsNsInputFromJSON(json) {
|
|
30
|
+
return CheckDomainsNsInputFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function CheckDomainsNsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'domainIds': json['domainIds'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function CheckDomainsNsInputToJSON(json) {
|
|
41
|
+
return CheckDomainsNsInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function CheckDomainsNsInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'domainIds': value['domainIds'],
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -124,6 +124,7 @@ export * from './ChangeOrderStatusInput';
|
|
|
124
124
|
export * from './ChangeSubscriptionStatusInput';
|
|
125
125
|
export * from './ChangeUserEmailWithOtpInput';
|
|
126
126
|
export * from './ChartDataPoint';
|
|
127
|
+
export * from './CheckDomainsNsInput';
|
|
127
128
|
export * from './CommissionAccountDto';
|
|
128
129
|
export * from './CommissionAction';
|
|
129
130
|
export * from './CommissionAddUpdateActionInput';
|
package/dist/models/index.js
CHANGED
|
@@ -142,6 +142,7 @@ __exportStar(require("./ChangeOrderStatusInput"), exports);
|
|
|
142
142
|
__exportStar(require("./ChangeSubscriptionStatusInput"), exports);
|
|
143
143
|
__exportStar(require("./ChangeUserEmailWithOtpInput"), exports);
|
|
144
144
|
__exportStar(require("./ChartDataPoint"), exports);
|
|
145
|
+
__exportStar(require("./CheckDomainsNsInput"), exports);
|
|
145
146
|
__exportStar(require("./CommissionAccountDto"), exports);
|
|
146
147
|
__exportStar(require("./CommissionAction"), exports);
|
|
147
148
|
__exportStar(require("./CommissionAddUpdateActionInput"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -370,6 +370,10 @@ export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
|
|
|
370
370
|
sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
+
export interface AdminApiPurgeDomainCdnCacheRequest {
|
|
374
|
+
domainId: string;
|
|
375
|
+
}
|
|
376
|
+
|
|
373
377
|
export interface AdminApiRemoveDomainLockRequest {
|
|
374
378
|
domainId: string;
|
|
375
379
|
lockId: string;
|
|
@@ -2424,6 +2428,46 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
2424
2428
|
return await response.value();
|
|
2425
2429
|
}
|
|
2426
2430
|
|
|
2431
|
+
/**
|
|
2432
|
+
*
|
|
2433
|
+
*/
|
|
2434
|
+
async purgeDomainCdnCacheRaw(requestParameters: AdminApiPurgeDomainCdnCacheRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
2435
|
+
if (requestParameters['domainId'] == null) {
|
|
2436
|
+
throw new runtime.RequiredError(
|
|
2437
|
+
'domainId',
|
|
2438
|
+
'Required parameter "domainId" was null or undefined when calling purgeDomainCdnCache().'
|
|
2439
|
+
);
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
const queryParameters: any = {};
|
|
2443
|
+
|
|
2444
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2445
|
+
|
|
2446
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2447
|
+
const token = this.configuration.accessToken;
|
|
2448
|
+
const tokenString = await token("bearer", []);
|
|
2449
|
+
|
|
2450
|
+
if (tokenString) {
|
|
2451
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2454
|
+
const response = await this.request({
|
|
2455
|
+
path: `/admin/domains/{domainId}/purge-cdn-cache`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
|
|
2456
|
+
method: 'POST',
|
|
2457
|
+
headers: headerParameters,
|
|
2458
|
+
query: queryParameters,
|
|
2459
|
+
}, initOverrides);
|
|
2460
|
+
|
|
2461
|
+
return new runtime.VoidApiResponse(response);
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
/**
|
|
2465
|
+
*
|
|
2466
|
+
*/
|
|
2467
|
+
async purgeDomainCdnCache(requestParameters: AdminApiPurgeDomainCdnCacheRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
2468
|
+
await this.purgeDomainCdnCacheRaw(requestParameters, initOverrides);
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2427
2471
|
/**
|
|
2428
2472
|
*
|
|
2429
2473
|
*/
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -19,6 +19,7 @@ import type {
|
|
|
19
19
|
BatchImportPreviewDto,
|
|
20
20
|
BatchUpdateDomainsInput,
|
|
21
21
|
BulkUpdateDomainsWithFiltersInput,
|
|
22
|
+
CheckDomainsNsInput,
|
|
22
23
|
DeleteDomainsInput,
|
|
23
24
|
DomainExchangeRateDto,
|
|
24
25
|
DomainFiltersDto,
|
|
@@ -45,6 +46,8 @@ import {
|
|
|
45
46
|
BatchUpdateDomainsInputToJSON,
|
|
46
47
|
BulkUpdateDomainsWithFiltersInputFromJSON,
|
|
47
48
|
BulkUpdateDomainsWithFiltersInputToJSON,
|
|
49
|
+
CheckDomainsNsInputFromJSON,
|
|
50
|
+
CheckDomainsNsInputToJSON,
|
|
48
51
|
DeleteDomainsInputFromJSON,
|
|
49
52
|
DeleteDomainsInputToJSON,
|
|
50
53
|
DomainExchangeRateDtoFromJSON,
|
|
@@ -101,6 +104,10 @@ export interface DomainsApiCheckDnsRequest {
|
|
|
101
104
|
domainId: string;
|
|
102
105
|
}
|
|
103
106
|
|
|
107
|
+
export interface DomainsApiCheckDnsBatchRequest {
|
|
108
|
+
checkDomainsNsInput: CheckDomainsNsInput;
|
|
109
|
+
}
|
|
110
|
+
|
|
104
111
|
export interface DomainsApiCheckDomainVerificationRequest {
|
|
105
112
|
domainId: string;
|
|
106
113
|
}
|
|
@@ -415,6 +422,49 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
415
422
|
await this.checkDnsRaw(requestParameters, initOverrides);
|
|
416
423
|
}
|
|
417
424
|
|
|
425
|
+
/**
|
|
426
|
+
*
|
|
427
|
+
*/
|
|
428
|
+
async checkDnsBatchRaw(requestParameters: DomainsApiCheckDnsBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
429
|
+
if (requestParameters['checkDomainsNsInput'] == null) {
|
|
430
|
+
throw new runtime.RequiredError(
|
|
431
|
+
'checkDomainsNsInput',
|
|
432
|
+
'Required parameter "checkDomainsNsInput" was null or undefined when calling checkDnsBatch().'
|
|
433
|
+
);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
const queryParameters: any = {};
|
|
437
|
+
|
|
438
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
439
|
+
|
|
440
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
441
|
+
|
|
442
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
443
|
+
const token = this.configuration.accessToken;
|
|
444
|
+
const tokenString = await token("bearer", []);
|
|
445
|
+
|
|
446
|
+
if (tokenString) {
|
|
447
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
const response = await this.request({
|
|
451
|
+
path: `/private/domains/check_ns`,
|
|
452
|
+
method: 'POST',
|
|
453
|
+
headers: headerParameters,
|
|
454
|
+
query: queryParameters,
|
|
455
|
+
body: CheckDomainsNsInputToJSON(requestParameters['checkDomainsNsInput']),
|
|
456
|
+
}, initOverrides);
|
|
457
|
+
|
|
458
|
+
return new runtime.VoidApiResponse(response);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
*/
|
|
464
|
+
async checkDnsBatch(requestParameters: DomainsApiCheckDnsBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
465
|
+
await this.checkDnsBatchRaw(requestParameters, initOverrides);
|
|
466
|
+
}
|
|
467
|
+
|
|
418
468
|
/**
|
|
419
469
|
*
|
|
420
470
|
*/
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CheckDomainsNsInput
|
|
20
|
+
*/
|
|
21
|
+
export interface CheckDomainsNsInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof CheckDomainsNsInput
|
|
26
|
+
*/
|
|
27
|
+
domainIds: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the CheckDomainsNsInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfCheckDomainsNsInput(value: object): value is CheckDomainsNsInput {
|
|
34
|
+
if (!('domainIds' in value) || value['domainIds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function CheckDomainsNsInputFromJSON(json: any): CheckDomainsNsInput {
|
|
39
|
+
return CheckDomainsNsInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function CheckDomainsNsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckDomainsNsInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'domainIds': json['domainIds'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function CheckDomainsNsInputToJSON(json: any): CheckDomainsNsInput {
|
|
53
|
+
return CheckDomainsNsInputToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function CheckDomainsNsInputToJSONTyped(value?: CheckDomainsNsInput | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'domainIds': value['domainIds'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -126,6 +126,7 @@ export * from './ChangeOrderStatusInput';
|
|
|
126
126
|
export * from './ChangeSubscriptionStatusInput';
|
|
127
127
|
export * from './ChangeUserEmailWithOtpInput';
|
|
128
128
|
export * from './ChartDataPoint';
|
|
129
|
+
export * from './CheckDomainsNsInput';
|
|
129
130
|
export * from './CommissionAccountDto';
|
|
130
131
|
export * from './CommissionAction';
|
|
131
132
|
export * from './CommissionAddUpdateActionInput';
|