@randock/nameshift-api-client 0.0.40 → 0.0.42
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 +6 -3
- package/README.md +3 -3
- package/dist/apis/AccountsPublicApi.d.ts +1 -46
- package/dist/apis/AccountsPublicApi.js +0 -181
- package/dist/apis/AdminApi.d.ts +1 -14
- package/dist/apis/AdminApi.js +0 -59
- package/dist/apis/DomainsApi.d.ts +24 -1
- package/dist/apis/DomainsApi.js +111 -0
- package/dist/apis/UsersPublicApi.d.ts +63 -0
- package/dist/apis/UsersPublicApi.js +261 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/GetAllDomainTransfers200Response.d.ts +3 -3
- package/dist/models/GetAllDomainTransfers200Response.js +3 -3
- package/dist/models/LoginDto.d.ts +37 -0
- package/dist/models/LoginDto.js +51 -0
- package/dist/models/SellerDomainTransferAuthCodeDto.d.ts +37 -0
- package/dist/models/SellerDomainTransferAuthCodeDto.js +51 -0
- package/dist/models/SellerDomainTransferDto.d.ts +17 -10
- package/dist/models/SellerDomainTransferDto.js +15 -10
- package/dist/models/SellerDomainTransferDtoAuthCode.d.ts +37 -0
- package/dist/models/SellerDomainTransferDtoAuthCode.js +51 -0
- package/dist/models/SellerDomainTransferListItemDomainDto.d.ts +43 -0
- package/dist/models/SellerDomainTransferListItemDomainDto.js +55 -0
- package/dist/models/SellerDomainTransferListItemDto.d.ts +74 -0
- package/dist/models/SellerDomainTransferListItemDto.js +80 -0
- package/dist/models/index.d.ts +5 -3
- package/dist/models/index.js +5 -3
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +0 -3
- package/src/apis/AccountsPublicApi.ts +0 -184
- package/src/apis/AdminApi.ts +0 -69
- package/src/apis/DomainsApi.ts +107 -3
- package/src/apis/UsersPublicApi.ts +214 -0
- package/src/apis/index.ts +1 -0
- package/src/models/GetAllDomainTransfers200Response.ts +9 -9
- package/src/models/{TokenDto.ts → LoginDto.ts} +18 -9
- package/src/models/SellerDomainTransferAuthCodeDto.ts +70 -0
- package/src/models/SellerDomainTransferDto.ts +29 -14
- package/src/models/SellerDomainTransferDtoAuthCode.ts +70 -0
- package/src/models/SellerDomainTransferListItemDomainDto.ts +79 -0
- package/src/models/SellerDomainTransferListItemDto.ts +126 -0
- package/src/models/index.ts +5 -3
- package/dist/models/ForbiddenException.d.ts +0 -43
- package/dist/models/ForbiddenException.js +0 -55
- package/dist/models/TokenDto.d.ts +0 -31
- package/dist/models/TokenDto.js +0 -47
- package/dist/models/UnauthorizedException.d.ts +0 -43
- package/dist/models/UnauthorizedException.js +0 -55
- package/src/models/ForbiddenException.ts +0 -79
- package/src/models/UnauthorizedException.ts +0 -79
package/src/apis/AdminApi.ts
CHANGED
|
@@ -17,11 +17,9 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
AdminGetAllDomainTransfers200Response,
|
|
19
19
|
ChangeOrderStatusInput,
|
|
20
|
-
ForbiddenException,
|
|
21
20
|
ListAccounts200Response,
|
|
22
21
|
NotFoundException,
|
|
23
22
|
ThrottlerException,
|
|
24
|
-
UpdateDomainTransferAuthCodeInput,
|
|
25
23
|
ValidationException,
|
|
26
24
|
} from '../models/index';
|
|
27
25
|
import {
|
|
@@ -29,26 +27,16 @@ import {
|
|
|
29
27
|
AdminGetAllDomainTransfers200ResponseToJSON,
|
|
30
28
|
ChangeOrderStatusInputFromJSON,
|
|
31
29
|
ChangeOrderStatusInputToJSON,
|
|
32
|
-
ForbiddenExceptionFromJSON,
|
|
33
|
-
ForbiddenExceptionToJSON,
|
|
34
30
|
ListAccounts200ResponseFromJSON,
|
|
35
31
|
ListAccounts200ResponseToJSON,
|
|
36
32
|
NotFoundExceptionFromJSON,
|
|
37
33
|
NotFoundExceptionToJSON,
|
|
38
34
|
ThrottlerExceptionFromJSON,
|
|
39
35
|
ThrottlerExceptionToJSON,
|
|
40
|
-
UpdateDomainTransferAuthCodeInputFromJSON,
|
|
41
|
-
UpdateDomainTransferAuthCodeInputToJSON,
|
|
42
36
|
ValidationExceptionFromJSON,
|
|
43
37
|
ValidationExceptionToJSON,
|
|
44
38
|
} from '../models/index';
|
|
45
39
|
|
|
46
|
-
export interface AdminApiAdminChangeDomainTransferAuthCodeRequest {
|
|
47
|
-
domainId: string;
|
|
48
|
-
transferId: string;
|
|
49
|
-
updateDomainTransferAuthCodeInput: UpdateDomainTransferAuthCodeInput;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
40
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
53
41
|
filter?: object;
|
|
54
42
|
page?: number;
|
|
@@ -73,63 +61,6 @@ export interface AdminApiListAccountsRequest {
|
|
|
73
61
|
*/
|
|
74
62
|
export class AdminApi extends runtime.BaseAPI {
|
|
75
63
|
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
*/
|
|
79
|
-
async adminChangeDomainTransferAuthCodeRaw(requestParameters: AdminApiAdminChangeDomainTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
80
|
-
if (requestParameters['domainId'] == null) {
|
|
81
|
-
throw new runtime.RequiredError(
|
|
82
|
-
'domainId',
|
|
83
|
-
'Required parameter "domainId" was null or undefined when calling adminChangeDomainTransferAuthCode().'
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
if (requestParameters['transferId'] == null) {
|
|
88
|
-
throw new runtime.RequiredError(
|
|
89
|
-
'transferId',
|
|
90
|
-
'Required parameter "transferId" was null or undefined when calling adminChangeDomainTransferAuthCode().'
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
if (requestParameters['updateDomainTransferAuthCodeInput'] == null) {
|
|
95
|
-
throw new runtime.RequiredError(
|
|
96
|
-
'updateDomainTransferAuthCodeInput',
|
|
97
|
-
'Required parameter "updateDomainTransferAuthCodeInput" was null or undefined when calling adminChangeDomainTransferAuthCode().'
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
const queryParameters: any = {};
|
|
102
|
-
|
|
103
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
104
|
-
|
|
105
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
106
|
-
|
|
107
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
108
|
-
const token = this.configuration.accessToken;
|
|
109
|
-
const tokenString = await token("bearer", []);
|
|
110
|
-
|
|
111
|
-
if (tokenString) {
|
|
112
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
const response = await this.request({
|
|
116
|
-
path: `/admin/domains/{domainId}/transfers/{transferId}/auth-code`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))).replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
|
|
117
|
-
method: 'PATCH',
|
|
118
|
-
headers: headerParameters,
|
|
119
|
-
query: queryParameters,
|
|
120
|
-
body: UpdateDomainTransferAuthCodeInputToJSON(requestParameters['updateDomainTransferAuthCodeInput']),
|
|
121
|
-
}, initOverrides);
|
|
122
|
-
|
|
123
|
-
return new runtime.VoidApiResponse(response);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
*
|
|
128
|
-
*/
|
|
129
|
-
async adminChangeDomainTransferAuthCode(requestParameters: AdminApiAdminChangeDomainTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
130
|
-
await this.adminChangeDomainTransferAuthCodeRaw(requestParameters, initOverrides);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
64
|
/**
|
|
134
65
|
*
|
|
135
66
|
*/
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -22,9 +22,10 @@ import type {
|
|
|
22
22
|
IntersectionDomainDtoWithHijackerDtoWithAccountDto,
|
|
23
23
|
List200Response,
|
|
24
24
|
NotFoundException,
|
|
25
|
+
SellerDomainTransferDto,
|
|
25
26
|
ThrottlerException,
|
|
26
|
-
UnauthorizedException,
|
|
27
27
|
UpdateDomainInput,
|
|
28
|
+
UpdateDomainTransferAuthCodeInput,
|
|
28
29
|
ValidationException,
|
|
29
30
|
} from '../models/index';
|
|
30
31
|
import {
|
|
@@ -42,12 +43,14 @@ import {
|
|
|
42
43
|
List200ResponseToJSON,
|
|
43
44
|
NotFoundExceptionFromJSON,
|
|
44
45
|
NotFoundExceptionToJSON,
|
|
46
|
+
SellerDomainTransferDtoFromJSON,
|
|
47
|
+
SellerDomainTransferDtoToJSON,
|
|
45
48
|
ThrottlerExceptionFromJSON,
|
|
46
49
|
ThrottlerExceptionToJSON,
|
|
47
|
-
UnauthorizedExceptionFromJSON,
|
|
48
|
-
UnauthorizedExceptionToJSON,
|
|
49
50
|
UpdateDomainInputFromJSON,
|
|
50
51
|
UpdateDomainInputToJSON,
|
|
52
|
+
UpdateDomainTransferAuthCodeInputFromJSON,
|
|
53
|
+
UpdateDomainTransferAuthCodeInputToJSON,
|
|
51
54
|
ValidationExceptionFromJSON,
|
|
52
55
|
ValidationExceptionToJSON,
|
|
53
56
|
} from '../models/index';
|
|
@@ -80,6 +83,10 @@ export interface DomainsApiGetAllDomainTransfersRequest {
|
|
|
80
83
|
sortBy?: Array<string>;
|
|
81
84
|
}
|
|
82
85
|
|
|
86
|
+
export interface DomainsApiGetDomainTransferRequest {
|
|
87
|
+
transferId: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
83
90
|
export interface DomainsApiListRequest {
|
|
84
91
|
filter?: object;
|
|
85
92
|
page?: number;
|
|
@@ -92,6 +99,11 @@ export interface DomainsApiUpdateRequest {
|
|
|
92
99
|
updateDomainInput: UpdateDomainInput;
|
|
93
100
|
}
|
|
94
101
|
|
|
102
|
+
export interface DomainsApiUpdateDomainTransferAuthCodeRequest {
|
|
103
|
+
transferId: string;
|
|
104
|
+
updateDomainTransferAuthCodeInput: UpdateDomainTransferAuthCodeInput;
|
|
105
|
+
}
|
|
106
|
+
|
|
95
107
|
/**
|
|
96
108
|
*
|
|
97
109
|
*/
|
|
@@ -372,6 +384,47 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
372
384
|
return await response.value();
|
|
373
385
|
}
|
|
374
386
|
|
|
387
|
+
/**
|
|
388
|
+
*
|
|
389
|
+
*/
|
|
390
|
+
async getDomainTransferRaw(requestParameters: DomainsApiGetDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SellerDomainTransferDto>> {
|
|
391
|
+
if (requestParameters['transferId'] == null) {
|
|
392
|
+
throw new runtime.RequiredError(
|
|
393
|
+
'transferId',
|
|
394
|
+
'Required parameter "transferId" was null or undefined when calling getDomainTransfer().'
|
|
395
|
+
);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
const queryParameters: any = {};
|
|
399
|
+
|
|
400
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
401
|
+
|
|
402
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
403
|
+
const token = this.configuration.accessToken;
|
|
404
|
+
const tokenString = await token("bearer", []);
|
|
405
|
+
|
|
406
|
+
if (tokenString) {
|
|
407
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
const response = await this.request({
|
|
411
|
+
path: `/domains/transfers/{transferId}`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
|
|
412
|
+
method: 'GET',
|
|
413
|
+
headers: headerParameters,
|
|
414
|
+
query: queryParameters,
|
|
415
|
+
}, initOverrides);
|
|
416
|
+
|
|
417
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SellerDomainTransferDtoFromJSON(jsonValue));
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
*
|
|
422
|
+
*/
|
|
423
|
+
async getDomainTransfer(requestParameters: DomainsApiGetDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SellerDomainTransferDto> {
|
|
424
|
+
const response = await this.getDomainTransferRaw(requestParameters, initOverrides);
|
|
425
|
+
return await response.value();
|
|
426
|
+
}
|
|
427
|
+
|
|
375
428
|
/**
|
|
376
429
|
*
|
|
377
430
|
*/
|
|
@@ -473,4 +526,55 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
473
526
|
return await response.value();
|
|
474
527
|
}
|
|
475
528
|
|
|
529
|
+
/**
|
|
530
|
+
*
|
|
531
|
+
*/
|
|
532
|
+
async updateDomainTransferAuthCodeRaw(requestParameters: DomainsApiUpdateDomainTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SellerDomainTransferDto>> {
|
|
533
|
+
if (requestParameters['transferId'] == null) {
|
|
534
|
+
throw new runtime.RequiredError(
|
|
535
|
+
'transferId',
|
|
536
|
+
'Required parameter "transferId" was null or undefined when calling updateDomainTransferAuthCode().'
|
|
537
|
+
);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
if (requestParameters['updateDomainTransferAuthCodeInput'] == null) {
|
|
541
|
+
throw new runtime.RequiredError(
|
|
542
|
+
'updateDomainTransferAuthCodeInput',
|
|
543
|
+
'Required parameter "updateDomainTransferAuthCodeInput" was null or undefined when calling updateDomainTransferAuthCode().'
|
|
544
|
+
);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
const queryParameters: any = {};
|
|
548
|
+
|
|
549
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
550
|
+
|
|
551
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
552
|
+
|
|
553
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
554
|
+
const token = this.configuration.accessToken;
|
|
555
|
+
const tokenString = await token("bearer", []);
|
|
556
|
+
|
|
557
|
+
if (tokenString) {
|
|
558
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
const response = await this.request({
|
|
562
|
+
path: `/domains/transfers/{transferId}/auth-code`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
|
|
563
|
+
method: 'PATCH',
|
|
564
|
+
headers: headerParameters,
|
|
565
|
+
query: queryParameters,
|
|
566
|
+
body: UpdateDomainTransferAuthCodeInputToJSON(requestParameters['updateDomainTransferAuthCodeInput']),
|
|
567
|
+
}, initOverrides);
|
|
568
|
+
|
|
569
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SellerDomainTransferDtoFromJSON(jsonValue));
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
*
|
|
574
|
+
*/
|
|
575
|
+
async updateDomainTransferAuthCode(requestParameters: DomainsApiUpdateDomainTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SellerDomainTransferDto> {
|
|
576
|
+
const response = await this.updateDomainTransferAuthCodeRaw(requestParameters, initOverrides);
|
|
577
|
+
return await response.value();
|
|
578
|
+
}
|
|
579
|
+
|
|
476
580
|
}
|
|
@@ -0,0 +1,214 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ForgotPasswordRequestInput,
|
|
19
|
+
LoginDto,
|
|
20
|
+
LoginInput,
|
|
21
|
+
NotFoundException,
|
|
22
|
+
SetNewPasswordInput,
|
|
23
|
+
ThrottlerException,
|
|
24
|
+
UserPasswordResetDto,
|
|
25
|
+
ValidationException,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
import {
|
|
28
|
+
ForgotPasswordRequestInputFromJSON,
|
|
29
|
+
ForgotPasswordRequestInputToJSON,
|
|
30
|
+
LoginDtoFromJSON,
|
|
31
|
+
LoginDtoToJSON,
|
|
32
|
+
LoginInputFromJSON,
|
|
33
|
+
LoginInputToJSON,
|
|
34
|
+
NotFoundExceptionFromJSON,
|
|
35
|
+
NotFoundExceptionToJSON,
|
|
36
|
+
SetNewPasswordInputFromJSON,
|
|
37
|
+
SetNewPasswordInputToJSON,
|
|
38
|
+
ThrottlerExceptionFromJSON,
|
|
39
|
+
ThrottlerExceptionToJSON,
|
|
40
|
+
UserPasswordResetDtoFromJSON,
|
|
41
|
+
UserPasswordResetDtoToJSON,
|
|
42
|
+
ValidationExceptionFromJSON,
|
|
43
|
+
ValidationExceptionToJSON,
|
|
44
|
+
} from '../models/index';
|
|
45
|
+
|
|
46
|
+
export interface UsersPublicApiForgotPasswordRequestRequest {
|
|
47
|
+
forgotPasswordRequestInput: ForgotPasswordRequestInput;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface UsersPublicApiGetForgotPasswordRequestRequest {
|
|
51
|
+
passwordRequestId: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface UsersPublicApiLoginRequest {
|
|
55
|
+
loginInput: LoginInput;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface UsersPublicApiPostNewPasswordRequest {
|
|
59
|
+
passwordRequestId: string;
|
|
60
|
+
setNewPasswordInput: SetNewPasswordInput;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
export class UsersPublicApi extends runtime.BaseAPI {
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
async forgotPasswordRequestRaw(requestParameters: UsersPublicApiForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
72
|
+
if (requestParameters['forgotPasswordRequestInput'] == null) {
|
|
73
|
+
throw new runtime.RequiredError(
|
|
74
|
+
'forgotPasswordRequestInput',
|
|
75
|
+
'Required parameter "forgotPasswordRequestInput" was null or undefined when calling forgotPasswordRequest().'
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const queryParameters: any = {};
|
|
80
|
+
|
|
81
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
82
|
+
|
|
83
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
84
|
+
|
|
85
|
+
const response = await this.request({
|
|
86
|
+
path: `/users/forgot-password-request`,
|
|
87
|
+
method: 'POST',
|
|
88
|
+
headers: headerParameters,
|
|
89
|
+
query: queryParameters,
|
|
90
|
+
body: ForgotPasswordRequestInputToJSON(requestParameters['forgotPasswordRequestInput']),
|
|
91
|
+
}, initOverrides);
|
|
92
|
+
|
|
93
|
+
return new runtime.VoidApiResponse(response);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
99
|
+
async forgotPasswordRequest(requestParameters: UsersPublicApiForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
100
|
+
await this.forgotPasswordRequestRaw(requestParameters, initOverrides);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
async getForgotPasswordRequestRaw(requestParameters: UsersPublicApiGetForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserPasswordResetDto>> {
|
|
107
|
+
if (requestParameters['passwordRequestId'] == null) {
|
|
108
|
+
throw new runtime.RequiredError(
|
|
109
|
+
'passwordRequestId',
|
|
110
|
+
'Required parameter "passwordRequestId" was null or undefined when calling getForgotPasswordRequest().'
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const queryParameters: any = {};
|
|
115
|
+
|
|
116
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
117
|
+
|
|
118
|
+
const response = await this.request({
|
|
119
|
+
path: `/users/forgot-password-request/{passwordRequestId}`.replace(`{${"passwordRequestId"}}`, encodeURIComponent(String(requestParameters['passwordRequestId']))),
|
|
120
|
+
method: 'GET',
|
|
121
|
+
headers: headerParameters,
|
|
122
|
+
query: queryParameters,
|
|
123
|
+
}, initOverrides);
|
|
124
|
+
|
|
125
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserPasswordResetDtoFromJSON(jsonValue));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
async getForgotPasswordRequest(requestParameters: UsersPublicApiGetForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserPasswordResetDto> {
|
|
132
|
+
const response = await this.getForgotPasswordRequestRaw(requestParameters, initOverrides);
|
|
133
|
+
return await response.value();
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
139
|
+
async loginRaw(requestParameters: UsersPublicApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginDto>> {
|
|
140
|
+
if (requestParameters['loginInput'] == null) {
|
|
141
|
+
throw new runtime.RequiredError(
|
|
142
|
+
'loginInput',
|
|
143
|
+
'Required parameter "loginInput" was null or undefined when calling login().'
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
const queryParameters: any = {};
|
|
148
|
+
|
|
149
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
150
|
+
|
|
151
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
152
|
+
|
|
153
|
+
const response = await this.request({
|
|
154
|
+
path: `/users/login`,
|
|
155
|
+
method: 'POST',
|
|
156
|
+
headers: headerParameters,
|
|
157
|
+
query: queryParameters,
|
|
158
|
+
body: LoginInputToJSON(requestParameters['loginInput']),
|
|
159
|
+
}, initOverrides);
|
|
160
|
+
|
|
161
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LoginDtoFromJSON(jsonValue));
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
*/
|
|
167
|
+
async login(requestParameters: UsersPublicApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginDto> {
|
|
168
|
+
const response = await this.loginRaw(requestParameters, initOverrides);
|
|
169
|
+
return await response.value();
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
*/
|
|
175
|
+
async postNewPasswordRaw(requestParameters: UsersPublicApiPostNewPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
176
|
+
if (requestParameters['passwordRequestId'] == null) {
|
|
177
|
+
throw new runtime.RequiredError(
|
|
178
|
+
'passwordRequestId',
|
|
179
|
+
'Required parameter "passwordRequestId" was null or undefined when calling postNewPassword().'
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (requestParameters['setNewPasswordInput'] == null) {
|
|
184
|
+
throw new runtime.RequiredError(
|
|
185
|
+
'setNewPasswordInput',
|
|
186
|
+
'Required parameter "setNewPasswordInput" was null or undefined when calling postNewPassword().'
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
const queryParameters: any = {};
|
|
191
|
+
|
|
192
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
193
|
+
|
|
194
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
195
|
+
|
|
196
|
+
const response = await this.request({
|
|
197
|
+
path: `/users/forgot-password-request/{passwordRequestId}`.replace(`{${"passwordRequestId"}}`, encodeURIComponent(String(requestParameters['passwordRequestId']))),
|
|
198
|
+
method: 'POST',
|
|
199
|
+
headers: headerParameters,
|
|
200
|
+
query: queryParameters,
|
|
201
|
+
body: SetNewPasswordInputToJSON(requestParameters['setNewPasswordInput']),
|
|
202
|
+
}, initOverrides);
|
|
203
|
+
|
|
204
|
+
return new runtime.VoidApiResponse(response);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
*/
|
|
210
|
+
async postNewPassword(requestParameters: UsersPublicApiPostNewPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
211
|
+
await this.postNewPasswordRaw(requestParameters, initOverrides);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
PaginateResponseLinksFromJSONTyped,
|
|
20
20
|
PaginateResponseLinksToJSON,
|
|
21
21
|
} from './PaginateResponseLinks';
|
|
22
|
-
import type {
|
|
22
|
+
import type { SellerDomainTransferListItemDto } from './SellerDomainTransferListItemDto';
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from './
|
|
24
|
+
SellerDomainTransferListItemDtoFromJSON,
|
|
25
|
+
SellerDomainTransferListItemDtoFromJSONTyped,
|
|
26
|
+
SellerDomainTransferListItemDtoToJSON,
|
|
27
|
+
} from './SellerDomainTransferListItemDto';
|
|
28
28
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
29
29
|
import {
|
|
30
30
|
PaginateResponseMetaFromJSON,
|
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
export interface GetAllDomainTransfers200Response {
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {Array<
|
|
43
|
+
* @type {Array<SellerDomainTransferListItemDto>}
|
|
44
44
|
* @memberof GetAllDomainTransfers200Response
|
|
45
45
|
*/
|
|
46
|
-
data: Array<
|
|
46
|
+
data: Array<SellerDomainTransferListItemDto>;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {PaginateResponseMeta}
|
|
@@ -78,7 +78,7 @@ export function GetAllDomainTransfers200ResponseFromJSONTyped(json: any, ignoreD
|
|
|
78
78
|
}
|
|
79
79
|
return {
|
|
80
80
|
|
|
81
|
-
'data': ((json['data'] as Array<any>).map(
|
|
81
|
+
'data': ((json['data'] as Array<any>).map(SellerDomainTransferListItemDtoFromJSON)),
|
|
82
82
|
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
83
83
|
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
84
84
|
};
|
|
@@ -90,7 +90,7 @@ export function GetAllDomainTransfers200ResponseToJSON(value?: GetAllDomainTrans
|
|
|
90
90
|
}
|
|
91
91
|
return {
|
|
92
92
|
|
|
93
|
-
'data': ((value['data'] as Array<any>).map(
|
|
93
|
+
'data': ((value['data'] as Array<any>).map(SellerDomainTransferListItemDtoToJSON)),
|
|
94
94
|
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
95
95
|
'links': PaginateResponseLinksToJSON(value['links']),
|
|
96
96
|
};
|
|
@@ -16,46 +16,55 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface LoginDto
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface LoginDto {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof LoginDto
|
|
26
26
|
*/
|
|
27
27
|
token: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LoginDto
|
|
32
|
+
*/
|
|
33
|
+
locale: string;
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
/**
|
|
31
|
-
* Check if a given object implements the
|
|
37
|
+
* Check if a given object implements the LoginDto interface.
|
|
32
38
|
*/
|
|
33
|
-
export function
|
|
39
|
+
export function instanceOfLoginDto(value: object): boolean {
|
|
34
40
|
if (!('token' in value)) return false;
|
|
41
|
+
if (!('locale' in value)) return false;
|
|
35
42
|
return true;
|
|
36
43
|
}
|
|
37
44
|
|
|
38
|
-
export function
|
|
39
|
-
return
|
|
45
|
+
export function LoginDtoFromJSON(json: any): LoginDto {
|
|
46
|
+
return LoginDtoFromJSONTyped(json, false);
|
|
40
47
|
}
|
|
41
48
|
|
|
42
|
-
export function
|
|
49
|
+
export function LoginDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginDto {
|
|
43
50
|
if (json == null) {
|
|
44
51
|
return json;
|
|
45
52
|
}
|
|
46
53
|
return {
|
|
47
54
|
|
|
48
55
|
'token': json['token'],
|
|
56
|
+
'locale': json['locale'],
|
|
49
57
|
};
|
|
50
58
|
}
|
|
51
59
|
|
|
52
|
-
export function
|
|
60
|
+
export function LoginDtoToJSON(value?: LoginDto | null): any {
|
|
53
61
|
if (value == null) {
|
|
54
62
|
return value;
|
|
55
63
|
}
|
|
56
64
|
return {
|
|
57
65
|
|
|
58
66
|
'token': value['token'],
|
|
67
|
+
'locale': value['locale'],
|
|
59
68
|
};
|
|
60
69
|
}
|
|
61
70
|
|
|
@@ -0,0 +1,70 @@
|
|
|
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 SellerDomainTransferAuthCodeDto
|
|
20
|
+
*/
|
|
21
|
+
export interface SellerDomainTransferAuthCodeDto {
|
|
22
|
+
/**
|
|
23
|
+
* The domain transfer auth code value
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SellerDomainTransferAuthCodeDto
|
|
26
|
+
*/
|
|
27
|
+
value: string;
|
|
28
|
+
/**
|
|
29
|
+
* The domain transfer auth code expiry date
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof SellerDomainTransferAuthCodeDto
|
|
32
|
+
*/
|
|
33
|
+
expiryDate: Date;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SellerDomainTransferAuthCodeDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfSellerDomainTransferAuthCodeDto(value: object): boolean {
|
|
40
|
+
if (!('value' in value)) return false;
|
|
41
|
+
if (!('expiryDate' in value)) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function SellerDomainTransferAuthCodeDtoFromJSON(json: any): SellerDomainTransferAuthCodeDto {
|
|
46
|
+
return SellerDomainTransferAuthCodeDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SellerDomainTransferAuthCodeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerDomainTransferAuthCodeDto {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'value': json['value'],
|
|
56
|
+
'expiryDate': (new Date(json['expiryDate'])),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SellerDomainTransferAuthCodeDtoToJSON(value?: SellerDomainTransferAuthCodeDto | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'value': value['value'],
|
|
67
|
+
'expiryDate': ((value['expiryDate']).toISOString()),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|