@randock/nameshift-api-client 0.0.80 → 0.0.82
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 +2 -2
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +11 -10
- package/dist/apis/BuyersApi.js +47 -42
- package/dist/models/DomainTransferDetailWorkflowStepDto.d.ts +7 -0
- package/dist/models/DomainTransferDetailWorkflowStepDto.js +5 -0
- package/dist/models/DomainTransferDetailsDto.d.ts +4 -4
- package/dist/models/DomainTransferDetailsDto.js +4 -4
- package/dist/models/DomainTransferDetailsValidationDto.d.ts +94 -0
- package/dist/models/DomainTransferDetailsValidationDto.js +92 -0
- package/dist/models/SetDomainTransferConfirmationInput.d.ts +51 -0
- package/dist/models/SetDomainTransferConfirmationInput.js +62 -0
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +2 -2
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +58 -44
- package/src/models/DomainTransferDetailWorkflowStepDto.ts +15 -0
- package/src/models/DomainTransferDetailsDto.ts +12 -12
- package/src/models/DomainTransferDetailsValidationDto.ts +152 -0
- package/src/models/SetDomainTransferConfirmationInput.ts +90 -0
- package/src/models/index.ts +2 -2
- package/dist/models/DomainTransferDetailsBuyerConfirmationDto.d.ts +0 -37
- package/dist/models/DomainTransferDetailsBuyerConfirmationDto.js +0 -51
- package/dist/models/DomainTransferDetailsDtoBuyerConfirmation.d.ts +0 -37
- package/dist/models/DomainTransferDetailsDtoBuyerConfirmation.js +0 -51
- package/src/models/DomainTransferDetailsBuyerConfirmationDto.ts +0 -70
- package/src/models/DomainTransferDetailsDtoBuyerConfirmation.ts +0 -70
|
@@ -0,0 +1,51 @@
|
|
|
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 SetDomainTransferConfirmationInput
|
|
16
|
+
*/
|
|
17
|
+
export interface SetDomainTransferConfirmationInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof SetDomainTransferConfirmationInput
|
|
22
|
+
*/
|
|
23
|
+
confirmationValue: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SetDomainTransferConfirmationInput
|
|
28
|
+
*/
|
|
29
|
+
confirmationReason: SetDomainTransferConfirmationInputConfirmationReasonEnum | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SetDomainTransferConfirmationInput
|
|
34
|
+
*/
|
|
35
|
+
confirmationReasonText: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const SetDomainTransferConfirmationInputConfirmationReasonEnum: {
|
|
41
|
+
readonly INVALID_AUTH_CODE: "invalid_auth_code";
|
|
42
|
+
readonly OTHER: "other";
|
|
43
|
+
};
|
|
44
|
+
export type SetDomainTransferConfirmationInputConfirmationReasonEnum = typeof SetDomainTransferConfirmationInputConfirmationReasonEnum[keyof typeof SetDomainTransferConfirmationInputConfirmationReasonEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the SetDomainTransferConfirmationInput interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfSetDomainTransferConfirmationInput(value: object): value is SetDomainTransferConfirmationInput;
|
|
49
|
+
export declare function SetDomainTransferConfirmationInputFromJSON(json: any): SetDomainTransferConfirmationInput;
|
|
50
|
+
export declare function SetDomainTransferConfirmationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetDomainTransferConfirmationInput;
|
|
51
|
+
export declare function SetDomainTransferConfirmationInputToJSON(value?: SetDomainTransferConfirmationInput | null): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.SetDomainTransferConfirmationInputToJSON = exports.SetDomainTransferConfirmationInputFromJSONTyped = exports.SetDomainTransferConfirmationInputFromJSON = exports.instanceOfSetDomainTransferConfirmationInput = exports.SetDomainTransferConfirmationInputConfirmationReasonEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
exports.SetDomainTransferConfirmationInputConfirmationReasonEnum = {
|
|
21
|
+
INVALID_AUTH_CODE: 'invalid_auth_code',
|
|
22
|
+
OTHER: 'other'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the SetDomainTransferConfirmationInput interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfSetDomainTransferConfirmationInput(value) {
|
|
28
|
+
if (!('confirmationValue' in value) || value['confirmationValue'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('confirmationReason' in value) || value['confirmationReason'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('confirmationReasonText' in value) || value['confirmationReasonText'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfSetDomainTransferConfirmationInput = instanceOfSetDomainTransferConfirmationInput;
|
|
37
|
+
function SetDomainTransferConfirmationInputFromJSON(json) {
|
|
38
|
+
return SetDomainTransferConfirmationInputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.SetDomainTransferConfirmationInputFromJSON = SetDomainTransferConfirmationInputFromJSON;
|
|
41
|
+
function SetDomainTransferConfirmationInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'confirmationValue': json['confirmationValue'],
|
|
47
|
+
'confirmationReason': json['confirmationReason'],
|
|
48
|
+
'confirmationReasonText': json['confirmationReasonText'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.SetDomainTransferConfirmationInputFromJSONTyped = SetDomainTransferConfirmationInputFromJSONTyped;
|
|
52
|
+
function SetDomainTransferConfirmationInputToJSON(value) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'confirmationValue': value['confirmationValue'],
|
|
58
|
+
'confirmationReason': value['confirmationReason'],
|
|
59
|
+
'confirmationReasonText': value['confirmationReasonText'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
exports.SetDomainTransferConfirmationInputToJSON = SetDomainTransferConfirmationInputToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -25,15 +25,14 @@ export * from './DomainTransferAgentDto';
|
|
|
25
25
|
export * from './DomainTransferDetailWorkflowStepActionDto';
|
|
26
26
|
export * from './DomainTransferDetailWorkflowStepDto';
|
|
27
27
|
export * from './DomainTransferDetailsAuthCodeDto';
|
|
28
|
-
export * from './DomainTransferDetailsBuyerConfirmationDto';
|
|
29
28
|
export * from './DomainTransferDetailsDomainDto';
|
|
30
29
|
export * from './DomainTransferDetailsDto';
|
|
31
30
|
export * from './DomainTransferDetailsDtoAuthCode';
|
|
32
|
-
export * from './DomainTransferDetailsDtoBuyerConfirmation';
|
|
33
31
|
export * from './DomainTransferDetailsOrderBuyerDto';
|
|
34
32
|
export * from './DomainTransferDetailsOrderDto';
|
|
35
33
|
export * from './DomainTransferDetailsOrderSellerDto';
|
|
36
34
|
export * from './DomainTransferDetailsOrderSellerUserDto';
|
|
35
|
+
export * from './DomainTransferDetailsValidationDto';
|
|
37
36
|
export * from './DomainTransferDomainDto';
|
|
38
37
|
export * from './DomainTransferDto';
|
|
39
38
|
export * from './DomainTransferDtoAgent';
|
|
@@ -92,6 +91,7 @@ export * from './SellerDomainTransferDto';
|
|
|
92
91
|
export * from './SellerDomainTransferDtoAuthCode';
|
|
93
92
|
export * from './SellerDomainTransferListItemDomainDto';
|
|
94
93
|
export * from './SellerDomainTransferListItemDto';
|
|
94
|
+
export * from './SetDomainTransferConfirmationInput';
|
|
95
95
|
export * from './SetNewPasswordInput';
|
|
96
96
|
export * from './StoreBuyerLocaleInput';
|
|
97
97
|
export * from './StoreUserLocaleInput';
|
package/dist/models/index.js
CHANGED
|
@@ -43,15 +43,14 @@ __exportStar(require("./DomainTransferAgentDto"), exports);
|
|
|
43
43
|
__exportStar(require("./DomainTransferDetailWorkflowStepActionDto"), exports);
|
|
44
44
|
__exportStar(require("./DomainTransferDetailWorkflowStepDto"), exports);
|
|
45
45
|
__exportStar(require("./DomainTransferDetailsAuthCodeDto"), exports);
|
|
46
|
-
__exportStar(require("./DomainTransferDetailsBuyerConfirmationDto"), exports);
|
|
47
46
|
__exportStar(require("./DomainTransferDetailsDomainDto"), exports);
|
|
48
47
|
__exportStar(require("./DomainTransferDetailsDto"), exports);
|
|
49
48
|
__exportStar(require("./DomainTransferDetailsDtoAuthCode"), exports);
|
|
50
|
-
__exportStar(require("./DomainTransferDetailsDtoBuyerConfirmation"), exports);
|
|
51
49
|
__exportStar(require("./DomainTransferDetailsOrderBuyerDto"), exports);
|
|
52
50
|
__exportStar(require("./DomainTransferDetailsOrderDto"), exports);
|
|
53
51
|
__exportStar(require("./DomainTransferDetailsOrderSellerDto"), exports);
|
|
54
52
|
__exportStar(require("./DomainTransferDetailsOrderSellerUserDto"), exports);
|
|
53
|
+
__exportStar(require("./DomainTransferDetailsValidationDto"), exports);
|
|
55
54
|
__exportStar(require("./DomainTransferDomainDto"), exports);
|
|
56
55
|
__exportStar(require("./DomainTransferDto"), exports);
|
|
57
56
|
__exportStar(require("./DomainTransferDtoAgent"), exports);
|
|
@@ -110,6 +109,7 @@ __exportStar(require("./SellerDomainTransferDto"), exports);
|
|
|
110
109
|
__exportStar(require("./SellerDomainTransferDtoAuthCode"), exports);
|
|
111
110
|
__exportStar(require("./SellerDomainTransferListItemDomainDto"), exports);
|
|
112
111
|
__exportStar(require("./SellerDomainTransferListItemDto"), exports);
|
|
112
|
+
__exportStar(require("./SetDomainTransferConfirmationInput"), exports);
|
|
113
113
|
__exportStar(require("./SetNewPasswordInput"), exports);
|
|
114
114
|
__exportStar(require("./StoreBuyerLocaleInput"), exports);
|
|
115
115
|
__exportStar(require("./StoreUserLocaleInput"), exports);
|
package/package.json
CHANGED
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
BuyerUserDto,
|
|
21
21
|
GetBuyerTransfers200Response,
|
|
22
22
|
NotFoundException,
|
|
23
|
+
SetDomainTransferConfirmationInput,
|
|
23
24
|
StoreBuyerLocaleInput,
|
|
24
25
|
ThrottlerException,
|
|
25
26
|
ValidationException,
|
|
@@ -35,6 +36,8 @@ import {
|
|
|
35
36
|
GetBuyerTransfers200ResponseToJSON,
|
|
36
37
|
NotFoundExceptionFromJSON,
|
|
37
38
|
NotFoundExceptionToJSON,
|
|
39
|
+
SetDomainTransferConfirmationInputFromJSON,
|
|
40
|
+
SetDomainTransferConfirmationInputToJSON,
|
|
38
41
|
StoreBuyerLocaleInputFromJSON,
|
|
39
42
|
StoreBuyerLocaleInputToJSON,
|
|
40
43
|
ThrottlerExceptionFromJSON,
|
|
@@ -43,10 +46,6 @@ import {
|
|
|
43
46
|
ValidationExceptionToJSON,
|
|
44
47
|
} from '../models/index';
|
|
45
48
|
|
|
46
|
-
export interface BuyersApiConfirmDomainTransferRequest {
|
|
47
|
-
transferId: string;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
49
|
export interface BuyersApiGetBuyerTransfersRequest {
|
|
51
50
|
filter?: object;
|
|
52
51
|
page?: number;
|
|
@@ -58,6 +57,11 @@ export interface BuyersApiGetTransferAuthCodeRequest {
|
|
|
58
57
|
transferId: string;
|
|
59
58
|
}
|
|
60
59
|
|
|
60
|
+
export interface BuyersApiPatchDomainTransferConfirmationRequest {
|
|
61
|
+
transferId: string;
|
|
62
|
+
setDomainTransferConfirmationInput: SetDomainTransferConfirmationInput;
|
|
63
|
+
}
|
|
64
|
+
|
|
61
65
|
export interface BuyersApiSetLocaleRequest {
|
|
62
66
|
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
63
67
|
}
|
|
@@ -101,46 +105,6 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
101
105
|
return await response.value();
|
|
102
106
|
}
|
|
103
107
|
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
*/
|
|
107
|
-
async confirmDomainTransferRaw(requestParameters: BuyersApiConfirmDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
108
|
-
if (requestParameters['transferId'] == null) {
|
|
109
|
-
throw new runtime.RequiredError(
|
|
110
|
-
'transferId',
|
|
111
|
-
'Required parameter "transferId" was null or undefined when calling confirmDomainTransfer().'
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
const queryParameters: any = {};
|
|
116
|
-
|
|
117
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
118
|
-
|
|
119
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
120
|
-
const token = this.configuration.accessToken;
|
|
121
|
-
const tokenString = await token("bearer", []);
|
|
122
|
-
|
|
123
|
-
if (tokenString) {
|
|
124
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
const response = await this.request({
|
|
128
|
-
path: `/buyers/private/transfers/{transferId}/confirm`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
|
|
129
|
-
method: 'PATCH',
|
|
130
|
-
headers: headerParameters,
|
|
131
|
-
query: queryParameters,
|
|
132
|
-
}, initOverrides);
|
|
133
|
-
|
|
134
|
-
return new runtime.VoidApiResponse(response);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
*
|
|
139
|
-
*/
|
|
140
|
-
async confirmDomainTransfer(requestParameters: BuyersApiConfirmDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
141
|
-
await this.confirmDomainTransferRaw(requestParameters, initOverrides);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
108
|
/**
|
|
145
109
|
*
|
|
146
110
|
*/
|
|
@@ -232,6 +196,56 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
232
196
|
return await response.value();
|
|
233
197
|
}
|
|
234
198
|
|
|
199
|
+
/**
|
|
200
|
+
*
|
|
201
|
+
*/
|
|
202
|
+
async patchDomainTransferConfirmationRaw(requestParameters: BuyersApiPatchDomainTransferConfirmationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
203
|
+
if (requestParameters['transferId'] == null) {
|
|
204
|
+
throw new runtime.RequiredError(
|
|
205
|
+
'transferId',
|
|
206
|
+
'Required parameter "transferId" was null or undefined when calling patchDomainTransferConfirmation().'
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
if (requestParameters['setDomainTransferConfirmationInput'] == null) {
|
|
211
|
+
throw new runtime.RequiredError(
|
|
212
|
+
'setDomainTransferConfirmationInput',
|
|
213
|
+
'Required parameter "setDomainTransferConfirmationInput" was null or undefined when calling patchDomainTransferConfirmation().'
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
const queryParameters: any = {};
|
|
218
|
+
|
|
219
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
220
|
+
|
|
221
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
222
|
+
|
|
223
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
224
|
+
const token = this.configuration.accessToken;
|
|
225
|
+
const tokenString = await token("bearer", []);
|
|
226
|
+
|
|
227
|
+
if (tokenString) {
|
|
228
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
const response = await this.request({
|
|
232
|
+
path: `/buyers/private/transfers/{transferId}/confirmation`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
|
|
233
|
+
method: 'PATCH',
|
|
234
|
+
headers: headerParameters,
|
|
235
|
+
query: queryParameters,
|
|
236
|
+
body: SetDomainTransferConfirmationInputToJSON(requestParameters['setDomainTransferConfirmationInput']),
|
|
237
|
+
}, initOverrides);
|
|
238
|
+
|
|
239
|
+
return new runtime.VoidApiResponse(response);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
*/
|
|
245
|
+
async patchDomainTransferConfirmation(requestParameters: BuyersApiPatchDomainTransferConfirmationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
246
|
+
await this.patchDomainTransferConfirmationRaw(requestParameters, initOverrides);
|
|
247
|
+
}
|
|
248
|
+
|
|
235
249
|
/**
|
|
236
250
|
*
|
|
237
251
|
*/
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
DomainTransferDetailWorkflowStepActionDtoFromJSONTyped,
|
|
20
20
|
DomainTransferDetailWorkflowStepActionDtoToJSON,
|
|
21
21
|
} from './DomainTransferDetailWorkflowStepActionDto';
|
|
22
|
+
import type { DomainTransferDetailsValidationDto } from './DomainTransferDetailsValidationDto';
|
|
23
|
+
import {
|
|
24
|
+
DomainTransferDetailsValidationDtoFromJSON,
|
|
25
|
+
DomainTransferDetailsValidationDtoFromJSONTyped,
|
|
26
|
+
DomainTransferDetailsValidationDtoToJSON,
|
|
27
|
+
} from './DomainTransferDetailsValidationDto';
|
|
22
28
|
|
|
23
29
|
/**
|
|
24
30
|
*
|
|
@@ -62,6 +68,12 @@ export interface DomainTransferDetailWorkflowStepDto {
|
|
|
62
68
|
* @memberof DomainTransferDetailWorkflowStepDto
|
|
63
69
|
*/
|
|
64
70
|
actions: Array<DomainTransferDetailWorkflowStepActionDto>;
|
|
71
|
+
/**
|
|
72
|
+
* The domain transfer workflow step validations
|
|
73
|
+
* @type {Array<DomainTransferDetailsValidationDto>}
|
|
74
|
+
* @memberof DomainTransferDetailWorkflowStepDto
|
|
75
|
+
*/
|
|
76
|
+
validations: Array<DomainTransferDetailsValidationDto>;
|
|
65
77
|
}
|
|
66
78
|
|
|
67
79
|
|
|
@@ -86,6 +98,7 @@ export function instanceOfDomainTransferDetailWorkflowStepDto(value: object): va
|
|
|
86
98
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
87
99
|
if (!('requirements' in value) || value['requirements'] === undefined) return false;
|
|
88
100
|
if (!('actions' in value) || value['actions'] === undefined) return false;
|
|
101
|
+
if (!('validations' in value) || value['validations'] === undefined) return false;
|
|
89
102
|
return true;
|
|
90
103
|
}
|
|
91
104
|
|
|
@@ -105,6 +118,7 @@ export function DomainTransferDetailWorkflowStepDtoFromJSONTyped(json: any, igno
|
|
|
105
118
|
'createdAt': (new Date(json['createdAt'])),
|
|
106
119
|
'requirements': json['requirements'],
|
|
107
120
|
'actions': ((json['actions'] as Array<any>).map(DomainTransferDetailWorkflowStepActionDtoFromJSON)),
|
|
121
|
+
'validations': ((json['validations'] as Array<any>).map(DomainTransferDetailsValidationDtoFromJSON)),
|
|
108
122
|
};
|
|
109
123
|
}
|
|
110
124
|
|
|
@@ -120,6 +134,7 @@ export function DomainTransferDetailWorkflowStepDtoToJSON(value?: DomainTransfer
|
|
|
120
134
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
121
135
|
'requirements': value['requirements'],
|
|
122
136
|
'actions': ((value['actions'] as Array<any>).map(DomainTransferDetailWorkflowStepActionDtoToJSON)),
|
|
137
|
+
'validations': ((value['validations'] as Array<any>).map(DomainTransferDetailsValidationDtoToJSON)),
|
|
123
138
|
};
|
|
124
139
|
}
|
|
125
140
|
|
|
@@ -13,12 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { DomainTransferDetailsDtoBuyerConfirmation } from './DomainTransferDetailsDtoBuyerConfirmation';
|
|
17
|
-
import {
|
|
18
|
-
DomainTransferDetailsDtoBuyerConfirmationFromJSON,
|
|
19
|
-
DomainTransferDetailsDtoBuyerConfirmationFromJSONTyped,
|
|
20
|
-
DomainTransferDetailsDtoBuyerConfirmationToJSON,
|
|
21
|
-
} from './DomainTransferDetailsDtoBuyerConfirmation';
|
|
22
16
|
import type { DomainTransferDetailsDtoAuthCode } from './DomainTransferDetailsDtoAuthCode';
|
|
23
17
|
import {
|
|
24
18
|
DomainTransferDetailsDtoAuthCodeFromJSON,
|
|
@@ -31,6 +25,12 @@ import {
|
|
|
31
25
|
DomainTransferDetailsOrderDtoFromJSONTyped,
|
|
32
26
|
DomainTransferDetailsOrderDtoToJSON,
|
|
33
27
|
} from './DomainTransferDetailsOrderDto';
|
|
28
|
+
import type { DomainTransferDetailsValidationDto } from './DomainTransferDetailsValidationDto';
|
|
29
|
+
import {
|
|
30
|
+
DomainTransferDetailsValidationDtoFromJSON,
|
|
31
|
+
DomainTransferDetailsValidationDtoFromJSONTyped,
|
|
32
|
+
DomainTransferDetailsValidationDtoToJSON,
|
|
33
|
+
} from './DomainTransferDetailsValidationDto';
|
|
34
34
|
import type { DomainTransferDetailWorkflowStepDto } from './DomainTransferDetailWorkflowStepDto';
|
|
35
35
|
import {
|
|
36
36
|
DomainTransferDetailWorkflowStepDtoFromJSON,
|
|
@@ -87,11 +87,11 @@ export interface DomainTransferDetailsDto {
|
|
|
87
87
|
*/
|
|
88
88
|
authCode: DomainTransferDetailsDtoAuthCode | null;
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
91
|
-
* @type {
|
|
90
|
+
* The domain transfer validations
|
|
91
|
+
* @type {Array<DomainTransferDetailsValidationDto>}
|
|
92
92
|
* @memberof DomainTransferDetailsDto
|
|
93
93
|
*/
|
|
94
|
-
|
|
94
|
+
validations: Array<DomainTransferDetailsValidationDto>;
|
|
95
95
|
/**
|
|
96
96
|
* The domain transfer creation date
|
|
97
97
|
* @type {Date}
|
|
@@ -130,7 +130,7 @@ export function instanceOfDomainTransferDetailsDto(value: object): value is Doma
|
|
|
130
130
|
if (!('order' in value) || value['order'] === undefined) return false;
|
|
131
131
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
132
132
|
if (!('authCode' in value) || value['authCode'] === undefined) return false;
|
|
133
|
-
if (!('
|
|
133
|
+
if (!('validations' in value) || value['validations'] === undefined) return false;
|
|
134
134
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
135
135
|
if (!('workflow' in value) || value['workflow'] === undefined) return false;
|
|
136
136
|
return true;
|
|
@@ -152,7 +152,7 @@ export function DomainTransferDetailsDtoFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
152
152
|
'order': DomainTransferDetailsOrderDtoFromJSON(json['order']),
|
|
153
153
|
'status': json['status'],
|
|
154
154
|
'authCode': DomainTransferDetailsDtoAuthCodeFromJSON(json['authCode']),
|
|
155
|
-
'
|
|
155
|
+
'validations': ((json['validations'] as Array<any>).map(DomainTransferDetailsValidationDtoFromJSON)),
|
|
156
156
|
'createdAt': (new Date(json['createdAt'])),
|
|
157
157
|
'workflow': ((json['workflow'] as Array<any>).map(DomainTransferDetailWorkflowStepDtoFromJSON)),
|
|
158
158
|
};
|
|
@@ -170,7 +170,7 @@ export function DomainTransferDetailsDtoToJSON(value?: DomainTransferDetailsDto
|
|
|
170
170
|
'order': DomainTransferDetailsOrderDtoToJSON(value['order']),
|
|
171
171
|
'status': value['status'],
|
|
172
172
|
'authCode': DomainTransferDetailsDtoAuthCodeToJSON(value['authCode']),
|
|
173
|
-
'
|
|
173
|
+
'validations': ((value['validations'] as Array<any>).map(DomainTransferDetailsValidationDtoToJSON)),
|
|
174
174
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
175
175
|
'workflow': ((value['workflow'] as Array<any>).map(DomainTransferDetailWorkflowStepDtoToJSON)),
|
|
176
176
|
};
|
|
@@ -0,0 +1,152 @@
|
|
|
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 DomainTransferDetailsValidationDto
|
|
20
|
+
*/
|
|
21
|
+
export interface DomainTransferDetailsValidationDto {
|
|
22
|
+
/**
|
|
23
|
+
* The domain transfer validation reason
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DomainTransferDetailsValidationDto
|
|
26
|
+
*/
|
|
27
|
+
reason: DomainTransferDetailsValidationDtoReasonEnum | null;
|
|
28
|
+
/**
|
|
29
|
+
* The domain transfer validation validator
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DomainTransferDetailsValidationDto
|
|
32
|
+
*/
|
|
33
|
+
validator: DomainTransferDetailsValidationDtoValidatorEnum;
|
|
34
|
+
/**
|
|
35
|
+
* The domain transfer validation id
|
|
36
|
+
* @type {object}
|
|
37
|
+
* @memberof DomainTransferDetailsValidationDto
|
|
38
|
+
*/
|
|
39
|
+
id: object;
|
|
40
|
+
/**
|
|
41
|
+
* The domain transfer workflow step id
|
|
42
|
+
* @type {object}
|
|
43
|
+
* @memberof DomainTransferDetailsValidationDto
|
|
44
|
+
*/
|
|
45
|
+
domainTransferWorkflowStepId: object | null;
|
|
46
|
+
/**
|
|
47
|
+
* The domain transfer validation success value
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof DomainTransferDetailsValidationDto
|
|
50
|
+
*/
|
|
51
|
+
success: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* The domain transfer validation reason text
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof DomainTransferDetailsValidationDto
|
|
56
|
+
*/
|
|
57
|
+
reasonText: string;
|
|
58
|
+
/**
|
|
59
|
+
* The domain transfer validation creation date
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof DomainTransferDetailsValidationDto
|
|
62
|
+
*/
|
|
63
|
+
createdAt: Date;
|
|
64
|
+
/**
|
|
65
|
+
* The domain transfer validation date
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof DomainTransferDetailsValidationDto
|
|
68
|
+
*/
|
|
69
|
+
validatedAt: Date | null;
|
|
70
|
+
/**
|
|
71
|
+
* The domain transfer finished at date
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof DomainTransferDetailsValidationDto
|
|
74
|
+
*/
|
|
75
|
+
finishedAt: Date | null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export const DomainTransferDetailsValidationDtoReasonEnum = {
|
|
83
|
+
INVALID_AUTH_CODE: 'invalid_auth_code',
|
|
84
|
+
OTHER: 'other'
|
|
85
|
+
} as const;
|
|
86
|
+
export type DomainTransferDetailsValidationDtoReasonEnum = typeof DomainTransferDetailsValidationDtoReasonEnum[keyof typeof DomainTransferDetailsValidationDtoReasonEnum];
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export const DomainTransferDetailsValidationDtoValidatorEnum = {
|
|
92
|
+
BUYER: 'buyer'
|
|
93
|
+
} as const;
|
|
94
|
+
export type DomainTransferDetailsValidationDtoValidatorEnum = typeof DomainTransferDetailsValidationDtoValidatorEnum[keyof typeof DomainTransferDetailsValidationDtoValidatorEnum];
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the DomainTransferDetailsValidationDto interface.
|
|
99
|
+
*/
|
|
100
|
+
export function instanceOfDomainTransferDetailsValidationDto(value: object): value is DomainTransferDetailsValidationDto {
|
|
101
|
+
if (!('reason' in value) || value['reason'] === undefined) return false;
|
|
102
|
+
if (!('validator' in value) || value['validator'] === undefined) return false;
|
|
103
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
104
|
+
if (!('domainTransferWorkflowStepId' in value) || value['domainTransferWorkflowStepId'] === undefined) return false;
|
|
105
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
106
|
+
if (!('reasonText' in value) || value['reasonText'] === undefined) return false;
|
|
107
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
108
|
+
if (!('validatedAt' in value) || value['validatedAt'] === undefined) return false;
|
|
109
|
+
if (!('finishedAt' in value) || value['finishedAt'] === undefined) return false;
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function DomainTransferDetailsValidationDtoFromJSON(json: any): DomainTransferDetailsValidationDto {
|
|
114
|
+
return DomainTransferDetailsValidationDtoFromJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function DomainTransferDetailsValidationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTransferDetailsValidationDto {
|
|
118
|
+
if (json == null) {
|
|
119
|
+
return json;
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
|
|
123
|
+
'reason': json['reason'],
|
|
124
|
+
'validator': json['validator'],
|
|
125
|
+
'id': json['id'],
|
|
126
|
+
'domainTransferWorkflowStepId': json['domainTransferWorkflowStepId'],
|
|
127
|
+
'success': json['success'],
|
|
128
|
+
'reasonText': json['reasonText'],
|
|
129
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
130
|
+
'validatedAt': (json['validatedAt'] == null ? null : new Date(json['validatedAt'])),
|
|
131
|
+
'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function DomainTransferDetailsValidationDtoToJSON(value?: DomainTransferDetailsValidationDto | null): any {
|
|
136
|
+
if (value == null) {
|
|
137
|
+
return value;
|
|
138
|
+
}
|
|
139
|
+
return {
|
|
140
|
+
|
|
141
|
+
'reason': value['reason'],
|
|
142
|
+
'validator': value['validator'],
|
|
143
|
+
'id': value['id'],
|
|
144
|
+
'domainTransferWorkflowStepId': value['domainTransferWorkflowStepId'],
|
|
145
|
+
'success': value['success'],
|
|
146
|
+
'reasonText': value['reasonText'],
|
|
147
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
148
|
+
'validatedAt': (value['validatedAt'] == null ? null : (value['validatedAt'] as any).toISOString()),
|
|
149
|
+
'finishedAt': (value['finishedAt'] == null ? null : (value['finishedAt'] as any).toISOString()),
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 SetDomainTransferConfirmationInput
|
|
20
|
+
*/
|
|
21
|
+
export interface SetDomainTransferConfirmationInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof SetDomainTransferConfirmationInput
|
|
26
|
+
*/
|
|
27
|
+
confirmationValue: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SetDomainTransferConfirmationInput
|
|
32
|
+
*/
|
|
33
|
+
confirmationReason: SetDomainTransferConfirmationInputConfirmationReasonEnum | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SetDomainTransferConfirmationInput
|
|
38
|
+
*/
|
|
39
|
+
confirmationReasonText: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const SetDomainTransferConfirmationInputConfirmationReasonEnum = {
|
|
47
|
+
INVALID_AUTH_CODE: 'invalid_auth_code',
|
|
48
|
+
OTHER: 'other'
|
|
49
|
+
} as const;
|
|
50
|
+
export type SetDomainTransferConfirmationInputConfirmationReasonEnum = typeof SetDomainTransferConfirmationInputConfirmationReasonEnum[keyof typeof SetDomainTransferConfirmationInputConfirmationReasonEnum];
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the SetDomainTransferConfirmationInput interface.
|
|
55
|
+
*/
|
|
56
|
+
export function instanceOfSetDomainTransferConfirmationInput(value: object): value is SetDomainTransferConfirmationInput {
|
|
57
|
+
if (!('confirmationValue' in value) || value['confirmationValue'] === undefined) return false;
|
|
58
|
+
if (!('confirmationReason' in value) || value['confirmationReason'] === undefined) return false;
|
|
59
|
+
if (!('confirmationReasonText' in value) || value['confirmationReasonText'] === undefined) return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function SetDomainTransferConfirmationInputFromJSON(json: any): SetDomainTransferConfirmationInput {
|
|
64
|
+
return SetDomainTransferConfirmationInputFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function SetDomainTransferConfirmationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetDomainTransferConfirmationInput {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'confirmationValue': json['confirmationValue'],
|
|
74
|
+
'confirmationReason': json['confirmationReason'],
|
|
75
|
+
'confirmationReasonText': json['confirmationReasonText'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function SetDomainTransferConfirmationInputToJSON(value?: SetDomainTransferConfirmationInput | null): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'confirmationValue': value['confirmationValue'],
|
|
86
|
+
'confirmationReason': value['confirmationReason'],
|
|
87
|
+
'confirmationReasonText': value['confirmationReasonText'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|