@randock/nameshift-api-client 0.0.368 → 0.0.369
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/DomainsApi.d.ts +12 -1
- package/dist/apis/DomainsApi.js +53 -0
- package/dist/models/DomainVerificationStatusDto.d.ts +32 -0
- package/dist/models/DomainVerificationStatusDto.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/DomainsApi.ts +48 -0
- package/src/models/DomainVerificationStatusDto.ts +66 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -209,6 +209,7 @@ src/models/DomainTransferTldInformationDto.ts
|
|
|
209
209
|
src/models/DomainTransferTldInformationResultDto.ts
|
|
210
210
|
src/models/DomainTransferWorkflowDto.ts
|
|
211
211
|
src/models/DomainUrlDto.ts
|
|
212
|
+
src/models/DomainVerificationStatusDto.ts
|
|
212
213
|
src/models/EppBatchUpdateInput.ts
|
|
213
214
|
src/models/FixedCommissionPayloadDto.ts
|
|
214
215
|
src/models/FixedCommissionPayloadInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.369
|
|
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.369 --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
|
+
e9757b650d0dcf0fd82e26b59165d8ecd279491a163201fec6ec60fb2f12bfae496f183ec349ecaa19945462193209bc
|
|
@@ -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, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainAffiliateCommissionDto, SellerDomainTransferDto, StartAuctionInput, UpdateDomainInput, UpdateDomainTransferAuthCodeInput, UpdateDomainTransferIpsTagInput } from '../models/index';
|
|
13
|
+
import type { BatchImportPreviewDto, BatchUpdateDomainsInput, BulkUpdateDomainsWithFiltersInput, 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 DomainsApiCheckDomainVerificationRequest {
|
|
32
|
+
domainId: string;
|
|
33
|
+
}
|
|
31
34
|
export interface DomainsApiDeleteDomainsRequest {
|
|
32
35
|
deleteDomainsInput: DeleteDomainsInput;
|
|
33
36
|
}
|
|
@@ -121,6 +124,14 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
121
124
|
*
|
|
122
125
|
*/
|
|
123
126
|
checkDns(requestParameters: DomainsApiCheckDnsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
checkDomainVerificationRaw(requestParameters: DomainsApiCheckDomainVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainVerificationStatusDto>>;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
*/
|
|
134
|
+
checkDomainVerification(requestParameters: DomainsApiCheckDomainVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainVerificationStatusDto>;
|
|
124
135
|
/**
|
|
125
136
|
*
|
|
126
137
|
*/
|
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.checkDomainVerificationRaw = 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['domainId'] == null) {
|
|
387
|
+
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling checkDomainVerification().');
|
|
388
|
+
}
|
|
389
|
+
queryParameters = {};
|
|
390
|
+
headerParameters = {};
|
|
391
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
392
|
+
token = this.configuration.accessToken;
|
|
393
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
394
|
+
case 1:
|
|
395
|
+
tokenString = _a.sent();
|
|
396
|
+
if (tokenString) {
|
|
397
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
398
|
+
}
|
|
399
|
+
_a.label = 2;
|
|
400
|
+
case 2: return [4 /*yield*/, this.request({
|
|
401
|
+
path: "/private/domains/{domainId}/check-verification".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
402
|
+
method: 'POST',
|
|
403
|
+
headers: headerParameters,
|
|
404
|
+
query: queryParameters,
|
|
405
|
+
}, initOverrides)];
|
|
406
|
+
case 3:
|
|
407
|
+
response = _a.sent();
|
|
408
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainVerificationStatusDtoFromJSON)(jsonValue); })];
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
});
|
|
412
|
+
};
|
|
413
|
+
/**
|
|
414
|
+
*
|
|
415
|
+
*/
|
|
416
|
+
DomainsApi.prototype.checkDomainVerification = function (requestParameters, initOverrides) {
|
|
417
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
418
|
+
var response;
|
|
419
|
+
return __generator(this, function (_a) {
|
|
420
|
+
switch (_a.label) {
|
|
421
|
+
case 0: return [4 /*yield*/, this.checkDomainVerificationRaw(requestParameters, initOverrides)];
|
|
422
|
+
case 1:
|
|
423
|
+
response = _a.sent();
|
|
424
|
+
return [4 /*yield*/, response.value()];
|
|
425
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
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 DomainVerificationStatusDto
|
|
16
|
+
*/
|
|
17
|
+
export interface DomainVerificationStatusDto {
|
|
18
|
+
/**
|
|
19
|
+
* Whether the domain is verified
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof DomainVerificationStatusDto
|
|
22
|
+
*/
|
|
23
|
+
verified: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the DomainVerificationStatusDto interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfDomainVerificationStatusDto(value: object): value is DomainVerificationStatusDto;
|
|
29
|
+
export declare function DomainVerificationStatusDtoFromJSON(json: any): DomainVerificationStatusDto;
|
|
30
|
+
export declare function DomainVerificationStatusDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainVerificationStatusDto;
|
|
31
|
+
export declare function DomainVerificationStatusDtoToJSON(json: any): DomainVerificationStatusDto;
|
|
32
|
+
export declare function DomainVerificationStatusDtoToJSONTyped(value?: DomainVerificationStatusDto | 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.instanceOfDomainVerificationStatusDto = instanceOfDomainVerificationStatusDto;
|
|
17
|
+
exports.DomainVerificationStatusDtoFromJSON = DomainVerificationStatusDtoFromJSON;
|
|
18
|
+
exports.DomainVerificationStatusDtoFromJSONTyped = DomainVerificationStatusDtoFromJSONTyped;
|
|
19
|
+
exports.DomainVerificationStatusDtoToJSON = DomainVerificationStatusDtoToJSON;
|
|
20
|
+
exports.DomainVerificationStatusDtoToJSONTyped = DomainVerificationStatusDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DomainVerificationStatusDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDomainVerificationStatusDto(value) {
|
|
25
|
+
if (!('verified' in value) || value['verified'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function DomainVerificationStatusDtoFromJSON(json) {
|
|
30
|
+
return DomainVerificationStatusDtoFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function DomainVerificationStatusDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'verified': json['verified'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function DomainVerificationStatusDtoToJSON(json) {
|
|
41
|
+
return DomainVerificationStatusDtoToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function DomainVerificationStatusDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'verified': value['verified'],
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -174,6 +174,7 @@ export * from './DomainTransferTldInformationDto';
|
|
|
174
174
|
export * from './DomainTransferTldInformationResultDto';
|
|
175
175
|
export * from './DomainTransferWorkflowDto';
|
|
176
176
|
export * from './DomainUrlDto';
|
|
177
|
+
export * from './DomainVerificationStatusDto';
|
|
177
178
|
export * from './EppBatchUpdateInput';
|
|
178
179
|
export * from './FixedCommissionPayloadDto';
|
|
179
180
|
export * from './FixedCommissionPayloadInput';
|
package/dist/models/index.js
CHANGED
|
@@ -192,6 +192,7 @@ __exportStar(require("./DomainTransferTldInformationDto"), exports);
|
|
|
192
192
|
__exportStar(require("./DomainTransferTldInformationResultDto"), exports);
|
|
193
193
|
__exportStar(require("./DomainTransferWorkflowDto"), exports);
|
|
194
194
|
__exportStar(require("./DomainUrlDto"), exports);
|
|
195
|
+
__exportStar(require("./DomainVerificationStatusDto"), exports);
|
|
195
196
|
__exportStar(require("./EppBatchUpdateInput"), exports);
|
|
196
197
|
__exportStar(require("./FixedCommissionPayloadDto"), exports);
|
|
197
198
|
__exportStar(require("./FixedCommissionPayloadInput"), exports);
|
package/package.json
CHANGED
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -23,6 +23,7 @@ import type {
|
|
|
23
23
|
DomainExchangeRateDto,
|
|
24
24
|
DomainFiltersDto,
|
|
25
25
|
DomainUrlDto,
|
|
26
|
+
DomainVerificationStatusDto,
|
|
26
27
|
GetAllDomainTransfers200Response,
|
|
27
28
|
IntersectionDomainDtoWithHijackerDtoWithAccountDto,
|
|
28
29
|
List200Response2,
|
|
@@ -52,6 +53,8 @@ import {
|
|
|
52
53
|
DomainFiltersDtoToJSON,
|
|
53
54
|
DomainUrlDtoFromJSON,
|
|
54
55
|
DomainUrlDtoToJSON,
|
|
56
|
+
DomainVerificationStatusDtoFromJSON,
|
|
57
|
+
DomainVerificationStatusDtoToJSON,
|
|
55
58
|
GetAllDomainTransfers200ResponseFromJSON,
|
|
56
59
|
GetAllDomainTransfers200ResponseToJSON,
|
|
57
60
|
IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON,
|
|
@@ -98,6 +101,10 @@ export interface DomainsApiCheckDnsRequest {
|
|
|
98
101
|
domainId: string;
|
|
99
102
|
}
|
|
100
103
|
|
|
104
|
+
export interface DomainsApiCheckDomainVerificationRequest {
|
|
105
|
+
domainId: string;
|
|
106
|
+
}
|
|
107
|
+
|
|
101
108
|
export interface DomainsApiDeleteDomainsRequest {
|
|
102
109
|
deleteDomainsInput: DeleteDomainsInput;
|
|
103
110
|
}
|
|
@@ -408,6 +415,47 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
408
415
|
await this.checkDnsRaw(requestParameters, initOverrides);
|
|
409
416
|
}
|
|
410
417
|
|
|
418
|
+
/**
|
|
419
|
+
*
|
|
420
|
+
*/
|
|
421
|
+
async checkDomainVerificationRaw(requestParameters: DomainsApiCheckDomainVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainVerificationStatusDto>> {
|
|
422
|
+
if (requestParameters['domainId'] == null) {
|
|
423
|
+
throw new runtime.RequiredError(
|
|
424
|
+
'domainId',
|
|
425
|
+
'Required parameter "domainId" was null or undefined when calling checkDomainVerification().'
|
|
426
|
+
);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
const queryParameters: any = {};
|
|
430
|
+
|
|
431
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
432
|
+
|
|
433
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
434
|
+
const token = this.configuration.accessToken;
|
|
435
|
+
const tokenString = await token("bearer", []);
|
|
436
|
+
|
|
437
|
+
if (tokenString) {
|
|
438
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
const response = await this.request({
|
|
442
|
+
path: `/private/domains/{domainId}/check-verification`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
|
|
443
|
+
method: 'POST',
|
|
444
|
+
headers: headerParameters,
|
|
445
|
+
query: queryParameters,
|
|
446
|
+
}, initOverrides);
|
|
447
|
+
|
|
448
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DomainVerificationStatusDtoFromJSON(jsonValue));
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
*
|
|
453
|
+
*/
|
|
454
|
+
async checkDomainVerification(requestParameters: DomainsApiCheckDomainVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainVerificationStatusDto> {
|
|
455
|
+
const response = await this.checkDomainVerificationRaw(requestParameters, initOverrides);
|
|
456
|
+
return await response.value();
|
|
457
|
+
}
|
|
458
|
+
|
|
411
459
|
/**
|
|
412
460
|
*
|
|
413
461
|
*/
|
|
@@ -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 DomainVerificationStatusDto
|
|
20
|
+
*/
|
|
21
|
+
export interface DomainVerificationStatusDto {
|
|
22
|
+
/**
|
|
23
|
+
* Whether the domain is verified
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof DomainVerificationStatusDto
|
|
26
|
+
*/
|
|
27
|
+
verified: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the DomainVerificationStatusDto interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfDomainVerificationStatusDto(value: object): value is DomainVerificationStatusDto {
|
|
34
|
+
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function DomainVerificationStatusDtoFromJSON(json: any): DomainVerificationStatusDto {
|
|
39
|
+
return DomainVerificationStatusDtoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function DomainVerificationStatusDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainVerificationStatusDto {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'verified': json['verified'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function DomainVerificationStatusDtoToJSON(json: any): DomainVerificationStatusDto {
|
|
53
|
+
return DomainVerificationStatusDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function DomainVerificationStatusDtoToJSONTyped(value?: DomainVerificationStatusDto | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'verified': value['verified'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -176,6 +176,7 @@ export * from './DomainTransferTldInformationDto';
|
|
|
176
176
|
export * from './DomainTransferTldInformationResultDto';
|
|
177
177
|
export * from './DomainTransferWorkflowDto';
|
|
178
178
|
export * from './DomainUrlDto';
|
|
179
|
+
export * from './DomainVerificationStatusDto';
|
|
179
180
|
export * from './EppBatchUpdateInput';
|
|
180
181
|
export * from './FixedCommissionPayloadDto';
|
|
181
182
|
export * from './FixedCommissionPayloadInput';
|