@randock/nameshift-api-client 0.0.62 → 0.0.64
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 -1
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +12 -1
- package/dist/apis/BuyersApi.js +53 -0
- package/dist/apis/BuyersPublicApi.d.ts +12 -1
- package/dist/apis/BuyersPublicApi.js +44 -0
- package/dist/models/BuyerDomainTransferAuthCodeDto.d.ts +31 -0
- package/dist/models/BuyerDomainTransferAuthCodeDto.js +47 -0
- package/dist/models/RequestAccessTokenInput.d.ts +31 -0
- package/dist/models/RequestAccessTokenInput.js +47 -0
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +0 -3
- package/src/apis/BuyersApi.ts +48 -0
- package/src/apis/BuyersPublicApi.ts +42 -0
- package/src/apis/DomainsApi.ts +0 -3
- package/src/apis/DomainsPublicApi.ts +0 -3
- package/src/apis/LeadsPublicApi.ts +0 -3
- package/src/apis/UsersPublicApi.ts +0 -3
- package/src/models/BuyerDomainTransferAuthCodeDto.ts +61 -0
- package/src/models/RequestAccessTokenInput.ts +61 -0
- package/src/models/index.ts +2 -1
- package/dist/models/NotFoundException.d.ts +0 -43
- package/dist/models/NotFoundException.js +0 -55
- package/src/models/NotFoundException.ts +0 -79
package/.openapi-generator/FILES
CHANGED
|
@@ -25,6 +25,7 @@ src/models/AccountSettingsInput.ts
|
|
|
25
25
|
src/models/AdminGetAllDomainTransfers200Response.ts
|
|
26
26
|
src/models/BatchUpdateDomainsInput.ts
|
|
27
27
|
src/models/BuyDomainInput.ts
|
|
28
|
+
src/models/BuyerDomainTransferAuthCodeDto.ts
|
|
28
29
|
src/models/BuyerDomainTransferListItemDomainDto.ts
|
|
29
30
|
src/models/BuyerDomainTransferListItemDto.ts
|
|
30
31
|
src/models/BuyerUserDto.ts
|
|
@@ -68,7 +69,6 @@ src/models/LoginDto.ts
|
|
|
68
69
|
src/models/LoginInput.ts
|
|
69
70
|
src/models/MoneyDto.ts
|
|
70
71
|
src/models/MoneyInput.ts
|
|
71
|
-
src/models/NotFoundException.ts
|
|
72
72
|
src/models/ObjectId.ts
|
|
73
73
|
src/models/PaginateResponse.ts
|
|
74
74
|
src/models/PaginateResponseLinks.ts
|
|
@@ -79,6 +79,7 @@ src/models/PublicLeadDtoLastOffer.ts
|
|
|
79
79
|
src/models/PutLeadInput.ts
|
|
80
80
|
src/models/RegisterAccountInput.ts
|
|
81
81
|
src/models/RelatedSellerDomain.ts
|
|
82
|
+
src/models/RequestAccessTokenInput.ts
|
|
82
83
|
src/models/SecurityUserDto.ts
|
|
83
84
|
src/models/SellerDomainTransferAuthCodeDto.ts
|
|
84
85
|
src/models/SellerDomainTransferDomainDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.64
|
|
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.64 --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
|
+
01b75105ea368b9e25c881bacb88b1f5df499fc6598d01f3a7ff74806107160fc34b9a1c800cae77424beac82af3d6b3
|
package/dist/apis/BuyersApi.d.ts
CHANGED
|
@@ -10,13 +10,16 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BuyerUserDto, GetBuyerTransfers200Response, StoreBuyerLocaleInput } from '../models/index';
|
|
13
|
+
import type { BuyerDomainTransferAuthCodeDto, BuyerUserDto, GetBuyerTransfers200Response, StoreBuyerLocaleInput } from '../models/index';
|
|
14
14
|
export interface BuyersApiGetBuyerTransfersRequest {
|
|
15
15
|
filter?: object;
|
|
16
16
|
page?: number;
|
|
17
17
|
limit?: number;
|
|
18
18
|
sortBy?: Array<string>;
|
|
19
19
|
}
|
|
20
|
+
export interface BuyersApiGetTransferAuthCodeRequest {
|
|
21
|
+
transferId: string;
|
|
22
|
+
}
|
|
20
23
|
export interface BuyersApiSetLocaleRequest {
|
|
21
24
|
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
22
25
|
}
|
|
@@ -40,6 +43,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
40
43
|
*
|
|
41
44
|
*/
|
|
42
45
|
getBuyerTransfers(requestParameters?: BuyersApiGetBuyerTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerTransfers200Response>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
getTransferAuthCodeRaw(requestParameters: BuyersApiGetTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerDomainTransferAuthCodeDto>>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
getTransferAuthCode(requestParameters: BuyersApiGetTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerDomainTransferAuthCodeDto>;
|
|
43
54
|
/**
|
|
44
55
|
*
|
|
45
56
|
*/
|
package/dist/apis/BuyersApi.js
CHANGED
|
@@ -188,6 +188,59 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
188
188
|
});
|
|
189
189
|
});
|
|
190
190
|
};
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
*/
|
|
194
|
+
BuyersApi.prototype.getTransferAuthCodeRaw = function (requestParameters, initOverrides) {
|
|
195
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
196
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
197
|
+
return __generator(this, function (_a) {
|
|
198
|
+
switch (_a.label) {
|
|
199
|
+
case 0:
|
|
200
|
+
if (requestParameters['transferId'] == null) {
|
|
201
|
+
throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling getTransferAuthCode().');
|
|
202
|
+
}
|
|
203
|
+
queryParameters = {};
|
|
204
|
+
headerParameters = {};
|
|
205
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
206
|
+
token = this.configuration.accessToken;
|
|
207
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
208
|
+
case 1:
|
|
209
|
+
tokenString = _a.sent();
|
|
210
|
+
if (tokenString) {
|
|
211
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
212
|
+
}
|
|
213
|
+
_a.label = 2;
|
|
214
|
+
case 2: return [4 /*yield*/, this.request({
|
|
215
|
+
path: "/buyers/private/transfers/{transferId}/auth-code".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
|
|
216
|
+
method: 'GET',
|
|
217
|
+
headers: headerParameters,
|
|
218
|
+
query: queryParameters,
|
|
219
|
+
}, initOverrides)];
|
|
220
|
+
case 3:
|
|
221
|
+
response = _a.sent();
|
|
222
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BuyerDomainTransferAuthCodeDtoFromJSON)(jsonValue); })];
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
*/
|
|
230
|
+
BuyersApi.prototype.getTransferAuthCode = function (requestParameters, initOverrides) {
|
|
231
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
232
|
+
var response;
|
|
233
|
+
return __generator(this, function (_a) {
|
|
234
|
+
switch (_a.label) {
|
|
235
|
+
case 0: return [4 /*yield*/, this.getTransferAuthCodeRaw(requestParameters, initOverrides)];
|
|
236
|
+
case 1:
|
|
237
|
+
response = _a.sent();
|
|
238
|
+
return [4 /*yield*/, response.value()];
|
|
239
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
};
|
|
191
244
|
/**
|
|
192
245
|
*
|
|
193
246
|
*/
|
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { LoginDto, LoginInput } from '../models/index';
|
|
13
|
+
import type { LoginDto, LoginInput, RequestAccessTokenInput } from '../models/index';
|
|
14
14
|
export interface BuyersPublicApiBuyerLoginRequest {
|
|
15
15
|
loginInput: LoginInput;
|
|
16
16
|
}
|
|
17
|
+
export interface BuyersPublicApiRequestAccessTokenRequest {
|
|
18
|
+
requestAccessTokenInput: RequestAccessTokenInput;
|
|
19
|
+
}
|
|
17
20
|
/**
|
|
18
21
|
*
|
|
19
22
|
*/
|
|
@@ -26,4 +29,12 @@ export declare class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
26
29
|
*
|
|
27
30
|
*/
|
|
28
31
|
buyerLogin(requestParameters: BuyersPublicApiBuyerLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginDto>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
requestAccessTokenRaw(requestParameters: BuyersPublicApiRequestAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
requestAccessToken(requestParameters: BuyersPublicApiRequestAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
29
40
|
}
|
|
@@ -121,6 +121,50 @@ var BuyersPublicApi = /** @class */ (function (_super) {
|
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
BuyersPublicApi.prototype.requestAccessTokenRaw = function (requestParameters, initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
129
|
+
var queryParameters, headerParameters, response;
|
|
130
|
+
return __generator(this, function (_a) {
|
|
131
|
+
switch (_a.label) {
|
|
132
|
+
case 0:
|
|
133
|
+
if (requestParameters['requestAccessTokenInput'] == null) {
|
|
134
|
+
throw new runtime.RequiredError('requestAccessTokenInput', 'Required parameter "requestAccessTokenInput" was null or undefined when calling requestAccessToken().');
|
|
135
|
+
}
|
|
136
|
+
queryParameters = {};
|
|
137
|
+
headerParameters = {};
|
|
138
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
139
|
+
return [4 /*yield*/, this.request({
|
|
140
|
+
path: "/buyers/request-access-token",
|
|
141
|
+
method: 'POST',
|
|
142
|
+
headers: headerParameters,
|
|
143
|
+
query: queryParameters,
|
|
144
|
+
body: (0, index_1.RequestAccessTokenInputToJSON)(requestParameters['requestAccessTokenInput']),
|
|
145
|
+
}, initOverrides)];
|
|
146
|
+
case 1:
|
|
147
|
+
response = _a.sent();
|
|
148
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
156
|
+
BuyersPublicApi.prototype.requestAccessToken = function (requestParameters, initOverrides) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
158
|
+
return __generator(this, function (_a) {
|
|
159
|
+
switch (_a.label) {
|
|
160
|
+
case 0: return [4 /*yield*/, this.requestAccessTokenRaw(requestParameters, initOverrides)];
|
|
161
|
+
case 1:
|
|
162
|
+
_a.sent();
|
|
163
|
+
return [2 /*return*/];
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
};
|
|
124
168
|
return BuyersPublicApi;
|
|
125
169
|
}(runtime.BaseAPI));
|
|
126
170
|
exports.BuyersPublicApi = BuyersPublicApi;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 BuyerDomainTransferAuthCodeDto
|
|
16
|
+
*/
|
|
17
|
+
export interface BuyerDomainTransferAuthCodeDto {
|
|
18
|
+
/**
|
|
19
|
+
* Transfer auth code
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BuyerDomainTransferAuthCodeDto
|
|
22
|
+
*/
|
|
23
|
+
authCode: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the BuyerDomainTransferAuthCodeDto interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfBuyerDomainTransferAuthCodeDto(value: object): value is BuyerDomainTransferAuthCodeDto;
|
|
29
|
+
export declare function BuyerDomainTransferAuthCodeDtoFromJSON(json: any): BuyerDomainTransferAuthCodeDto;
|
|
30
|
+
export declare function BuyerDomainTransferAuthCodeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerDomainTransferAuthCodeDto;
|
|
31
|
+
export declare function BuyerDomainTransferAuthCodeDtoToJSON(value?: BuyerDomainTransferAuthCodeDto | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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.BuyerDomainTransferAuthCodeDtoToJSON = exports.BuyerDomainTransferAuthCodeDtoFromJSONTyped = exports.BuyerDomainTransferAuthCodeDtoFromJSON = exports.instanceOfBuyerDomainTransferAuthCodeDto = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the BuyerDomainTransferAuthCodeDto interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfBuyerDomainTransferAuthCodeDto(value) {
|
|
21
|
+
if (!('authCode' in value) || value['authCode'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfBuyerDomainTransferAuthCodeDto = instanceOfBuyerDomainTransferAuthCodeDto;
|
|
26
|
+
function BuyerDomainTransferAuthCodeDtoFromJSON(json) {
|
|
27
|
+
return BuyerDomainTransferAuthCodeDtoFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.BuyerDomainTransferAuthCodeDtoFromJSON = BuyerDomainTransferAuthCodeDtoFromJSON;
|
|
30
|
+
function BuyerDomainTransferAuthCodeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'authCode': json['authCode'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.BuyerDomainTransferAuthCodeDtoFromJSONTyped = BuyerDomainTransferAuthCodeDtoFromJSONTyped;
|
|
39
|
+
function BuyerDomainTransferAuthCodeDtoToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'authCode': value['authCode'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.BuyerDomainTransferAuthCodeDtoToJSON = BuyerDomainTransferAuthCodeDtoToJSON;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 RequestAccessTokenInput
|
|
16
|
+
*/
|
|
17
|
+
export interface RequestAccessTokenInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RequestAccessTokenInput
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the RequestAccessTokenInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfRequestAccessTokenInput(value: object): value is RequestAccessTokenInput;
|
|
29
|
+
export declare function RequestAccessTokenInputFromJSON(json: any): RequestAccessTokenInput;
|
|
30
|
+
export declare function RequestAccessTokenInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestAccessTokenInput;
|
|
31
|
+
export declare function RequestAccessTokenInputToJSON(value?: RequestAccessTokenInput | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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.RequestAccessTokenInputToJSON = exports.RequestAccessTokenInputFromJSONTyped = exports.RequestAccessTokenInputFromJSON = exports.instanceOfRequestAccessTokenInput = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the RequestAccessTokenInput interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfRequestAccessTokenInput(value) {
|
|
21
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfRequestAccessTokenInput = instanceOfRequestAccessTokenInput;
|
|
26
|
+
function RequestAccessTokenInputFromJSON(json) {
|
|
27
|
+
return RequestAccessTokenInputFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.RequestAccessTokenInputFromJSON = RequestAccessTokenInputFromJSON;
|
|
30
|
+
function RequestAccessTokenInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'email': json['email'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.RequestAccessTokenInputFromJSONTyped = RequestAccessTokenInputFromJSONTyped;
|
|
39
|
+
function RequestAccessTokenInputToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'email': value['email'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.RequestAccessTokenInputToJSON = RequestAccessTokenInputToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './AccountSettingsInput';
|
|
|
6
6
|
export * from './AdminGetAllDomainTransfers200Response';
|
|
7
7
|
export * from './BatchUpdateDomainsInput';
|
|
8
8
|
export * from './BuyDomainInput';
|
|
9
|
+
export * from './BuyerDomainTransferAuthCodeDto';
|
|
9
10
|
export * from './BuyerDomainTransferListItemDomainDto';
|
|
10
11
|
export * from './BuyerDomainTransferListItemDto';
|
|
11
12
|
export * from './BuyerUserDto';
|
|
@@ -49,7 +50,6 @@ export * from './LoginDto';
|
|
|
49
50
|
export * from './LoginInput';
|
|
50
51
|
export * from './MoneyDto';
|
|
51
52
|
export * from './MoneyInput';
|
|
52
|
-
export * from './NotFoundException';
|
|
53
53
|
export * from './ObjectId';
|
|
54
54
|
export * from './PaginateResponse';
|
|
55
55
|
export * from './PaginateResponseLinks';
|
|
@@ -60,6 +60,7 @@ export * from './PublicLeadDtoLastOffer';
|
|
|
60
60
|
export * from './PutLeadInput';
|
|
61
61
|
export * from './RegisterAccountInput';
|
|
62
62
|
export * from './RelatedSellerDomain';
|
|
63
|
+
export * from './RequestAccessTokenInput';
|
|
63
64
|
export * from './SecurityUserDto';
|
|
64
65
|
export * from './SellerDomainTransferAuthCodeDto';
|
|
65
66
|
export * from './SellerDomainTransferDomainDto';
|
package/dist/models/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __exportStar(require("./AccountSettingsInput"), exports);
|
|
|
24
24
|
__exportStar(require("./AdminGetAllDomainTransfers200Response"), exports);
|
|
25
25
|
__exportStar(require("./BatchUpdateDomainsInput"), exports);
|
|
26
26
|
__exportStar(require("./BuyDomainInput"), exports);
|
|
27
|
+
__exportStar(require("./BuyerDomainTransferAuthCodeDto"), exports);
|
|
27
28
|
__exportStar(require("./BuyerDomainTransferListItemDomainDto"), exports);
|
|
28
29
|
__exportStar(require("./BuyerDomainTransferListItemDto"), exports);
|
|
29
30
|
__exportStar(require("./BuyerUserDto"), exports);
|
|
@@ -67,7 +68,6 @@ __exportStar(require("./LoginDto"), exports);
|
|
|
67
68
|
__exportStar(require("./LoginInput"), exports);
|
|
68
69
|
__exportStar(require("./MoneyDto"), exports);
|
|
69
70
|
__exportStar(require("./MoneyInput"), exports);
|
|
70
|
-
__exportStar(require("./NotFoundException"), exports);
|
|
71
71
|
__exportStar(require("./ObjectId"), exports);
|
|
72
72
|
__exportStar(require("./PaginateResponse"), exports);
|
|
73
73
|
__exportStar(require("./PaginateResponseLinks"), exports);
|
|
@@ -78,6 +78,7 @@ __exportStar(require("./PublicLeadDtoLastOffer"), exports);
|
|
|
78
78
|
__exportStar(require("./PutLeadInput"), exports);
|
|
79
79
|
__exportStar(require("./RegisterAccountInput"), exports);
|
|
80
80
|
__exportStar(require("./RelatedSellerDomain"), exports);
|
|
81
|
+
__exportStar(require("./RequestAccessTokenInput"), exports);
|
|
81
82
|
__exportStar(require("./SecurityUserDto"), exports);
|
|
82
83
|
__exportStar(require("./SellerDomainTransferAuthCodeDto"), exports);
|
|
83
84
|
__exportStar(require("./SellerDomainTransferDomainDto"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -18,7 +18,6 @@ import type {
|
|
|
18
18
|
AdminGetAllDomainTransfers200Response,
|
|
19
19
|
ChangeOrderStatusInput,
|
|
20
20
|
ListAccounts200Response,
|
|
21
|
-
NotFoundException,
|
|
22
21
|
ThrottlerException,
|
|
23
22
|
ValidationException,
|
|
24
23
|
} from '../models/index';
|
|
@@ -29,8 +28,6 @@ import {
|
|
|
29
28
|
ChangeOrderStatusInputToJSON,
|
|
30
29
|
ListAccounts200ResponseFromJSON,
|
|
31
30
|
ListAccounts200ResponseToJSON,
|
|
32
|
-
NotFoundExceptionFromJSON,
|
|
33
|
-
NotFoundExceptionToJSON,
|
|
34
31
|
ThrottlerExceptionFromJSON,
|
|
35
32
|
ThrottlerExceptionToJSON,
|
|
36
33
|
ValidationExceptionFromJSON,
|
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
BuyerDomainTransferAuthCodeDto,
|
|
18
19
|
BuyerUserDto,
|
|
19
20
|
GetBuyerTransfers200Response,
|
|
20
21
|
StoreBuyerLocaleInput,
|
|
@@ -22,6 +23,8 @@ import type {
|
|
|
22
23
|
ValidationException,
|
|
23
24
|
} from '../models/index';
|
|
24
25
|
import {
|
|
26
|
+
BuyerDomainTransferAuthCodeDtoFromJSON,
|
|
27
|
+
BuyerDomainTransferAuthCodeDtoToJSON,
|
|
25
28
|
BuyerUserDtoFromJSON,
|
|
26
29
|
BuyerUserDtoToJSON,
|
|
27
30
|
GetBuyerTransfers200ResponseFromJSON,
|
|
@@ -41,6 +44,10 @@ export interface BuyersApiGetBuyerTransfersRequest {
|
|
|
41
44
|
sortBy?: Array<string>;
|
|
42
45
|
}
|
|
43
46
|
|
|
47
|
+
export interface BuyersApiGetTransferAuthCodeRequest {
|
|
48
|
+
transferId: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
44
51
|
export interface BuyersApiSetLocaleRequest {
|
|
45
52
|
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
46
53
|
}
|
|
@@ -134,6 +141,47 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
134
141
|
return await response.value();
|
|
135
142
|
}
|
|
136
143
|
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
*/
|
|
147
|
+
async getTransferAuthCodeRaw(requestParameters: BuyersApiGetTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerDomainTransferAuthCodeDto>> {
|
|
148
|
+
if (requestParameters['transferId'] == null) {
|
|
149
|
+
throw new runtime.RequiredError(
|
|
150
|
+
'transferId',
|
|
151
|
+
'Required parameter "transferId" was null or undefined when calling getTransferAuthCode().'
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const queryParameters: any = {};
|
|
156
|
+
|
|
157
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
158
|
+
|
|
159
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
160
|
+
const token = this.configuration.accessToken;
|
|
161
|
+
const tokenString = await token("bearer", []);
|
|
162
|
+
|
|
163
|
+
if (tokenString) {
|
|
164
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
const response = await this.request({
|
|
168
|
+
path: `/buyers/private/transfers/{transferId}/auth-code`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
|
|
169
|
+
method: 'GET',
|
|
170
|
+
headers: headerParameters,
|
|
171
|
+
query: queryParameters,
|
|
172
|
+
}, initOverrides);
|
|
173
|
+
|
|
174
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BuyerDomainTransferAuthCodeDtoFromJSON(jsonValue));
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
180
|
+
async getTransferAuthCode(requestParameters: BuyersApiGetTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerDomainTransferAuthCodeDto> {
|
|
181
|
+
const response = await this.getTransferAuthCodeRaw(requestParameters, initOverrides);
|
|
182
|
+
return await response.value();
|
|
183
|
+
}
|
|
184
|
+
|
|
137
185
|
/**
|
|
138
186
|
*
|
|
139
187
|
*/
|
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
LoginDto,
|
|
19
19
|
LoginInput,
|
|
20
|
+
RequestAccessTokenInput,
|
|
20
21
|
ThrottlerException,
|
|
21
22
|
ValidationException,
|
|
22
23
|
} from '../models/index';
|
|
@@ -25,6 +26,8 @@ import {
|
|
|
25
26
|
LoginDtoToJSON,
|
|
26
27
|
LoginInputFromJSON,
|
|
27
28
|
LoginInputToJSON,
|
|
29
|
+
RequestAccessTokenInputFromJSON,
|
|
30
|
+
RequestAccessTokenInputToJSON,
|
|
28
31
|
ThrottlerExceptionFromJSON,
|
|
29
32
|
ThrottlerExceptionToJSON,
|
|
30
33
|
ValidationExceptionFromJSON,
|
|
@@ -35,6 +38,10 @@ export interface BuyersPublicApiBuyerLoginRequest {
|
|
|
35
38
|
loginInput: LoginInput;
|
|
36
39
|
}
|
|
37
40
|
|
|
41
|
+
export interface BuyersPublicApiRequestAccessTokenRequest {
|
|
42
|
+
requestAccessTokenInput: RequestAccessTokenInput;
|
|
43
|
+
}
|
|
44
|
+
|
|
38
45
|
/**
|
|
39
46
|
*
|
|
40
47
|
*/
|
|
@@ -76,4 +83,39 @@ export class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
76
83
|
return await response.value();
|
|
77
84
|
}
|
|
78
85
|
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
*/
|
|
89
|
+
async requestAccessTokenRaw(requestParameters: BuyersPublicApiRequestAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
90
|
+
if (requestParameters['requestAccessTokenInput'] == null) {
|
|
91
|
+
throw new runtime.RequiredError(
|
|
92
|
+
'requestAccessTokenInput',
|
|
93
|
+
'Required parameter "requestAccessTokenInput" was null or undefined when calling requestAccessToken().'
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const queryParameters: any = {};
|
|
98
|
+
|
|
99
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
100
|
+
|
|
101
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
102
|
+
|
|
103
|
+
const response = await this.request({
|
|
104
|
+
path: `/buyers/request-access-token`,
|
|
105
|
+
method: 'POST',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
body: RequestAccessTokenInputToJSON(requestParameters['requestAccessTokenInput']),
|
|
109
|
+
}, initOverrides);
|
|
110
|
+
|
|
111
|
+
return new runtime.VoidApiResponse(response);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
async requestAccessToken(requestParameters: BuyersPublicApiRequestAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
118
|
+
await this.requestAccessTokenRaw(requestParameters, initOverrides);
|
|
119
|
+
}
|
|
120
|
+
|
|
79
121
|
}
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -21,7 +21,6 @@ import type {
|
|
|
21
21
|
GetAllDomainTransfers200Response,
|
|
22
22
|
IntersectionDomainDtoWithHijackerDtoWithAccountDto,
|
|
23
23
|
List200Response,
|
|
24
|
-
NotFoundException,
|
|
25
24
|
SellerDomainTransferDto,
|
|
26
25
|
ThrottlerException,
|
|
27
26
|
UpdateDomainInput,
|
|
@@ -41,8 +40,6 @@ import {
|
|
|
41
40
|
IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON,
|
|
42
41
|
List200ResponseFromJSON,
|
|
43
42
|
List200ResponseToJSON,
|
|
44
|
-
NotFoundExceptionFromJSON,
|
|
45
|
-
NotFoundExceptionToJSON,
|
|
46
43
|
SellerDomainTransferDtoFromJSON,
|
|
47
44
|
SellerDomainTransferDtoToJSON,
|
|
48
45
|
ThrottlerExceptionFromJSON,
|
|
@@ -17,7 +17,6 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
BuyDomainInput,
|
|
19
19
|
DomainSalesInformationDto,
|
|
20
|
-
NotFoundException,
|
|
21
20
|
ObjectId,
|
|
22
21
|
ThrottlerException,
|
|
23
22
|
ValidationException,
|
|
@@ -27,8 +26,6 @@ import {
|
|
|
27
26
|
BuyDomainInputToJSON,
|
|
28
27
|
DomainSalesInformationDtoFromJSON,
|
|
29
28
|
DomainSalesInformationDtoToJSON,
|
|
30
|
-
NotFoundExceptionFromJSON,
|
|
31
|
-
NotFoundExceptionToJSON,
|
|
32
29
|
ObjectIdFromJSON,
|
|
33
30
|
ObjectIdToJSON,
|
|
34
31
|
ThrottlerExceptionFromJSON,
|
|
@@ -17,7 +17,6 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
CreateLeadInput,
|
|
19
19
|
LeadStatusDto,
|
|
20
|
-
NotFoundException,
|
|
21
20
|
ObjectId,
|
|
22
21
|
PublicLeadDto,
|
|
23
22
|
ThrottlerException,
|
|
@@ -29,8 +28,6 @@ import {
|
|
|
29
28
|
CreateLeadInputToJSON,
|
|
30
29
|
LeadStatusDtoFromJSON,
|
|
31
30
|
LeadStatusDtoToJSON,
|
|
32
|
-
NotFoundExceptionFromJSON,
|
|
33
|
-
NotFoundExceptionToJSON,
|
|
34
31
|
ObjectIdFromJSON,
|
|
35
32
|
ObjectIdToJSON,
|
|
36
33
|
PublicLeadDtoFromJSON,
|
|
@@ -18,7 +18,6 @@ import type {
|
|
|
18
18
|
ForgotPasswordRequestInput,
|
|
19
19
|
LoginDto,
|
|
20
20
|
LoginInput,
|
|
21
|
-
NotFoundException,
|
|
22
21
|
SetNewPasswordInput,
|
|
23
22
|
ThrottlerException,
|
|
24
23
|
UserPasswordResetDto,
|
|
@@ -31,8 +30,6 @@ import {
|
|
|
31
30
|
LoginDtoToJSON,
|
|
32
31
|
LoginInputFromJSON,
|
|
33
32
|
LoginInputToJSON,
|
|
34
|
-
NotFoundExceptionFromJSON,
|
|
35
|
-
NotFoundExceptionToJSON,
|
|
36
33
|
SetNewPasswordInputFromJSON,
|
|
37
34
|
SetNewPasswordInputToJSON,
|
|
38
35
|
ThrottlerExceptionFromJSON,
|
|
@@ -0,0 +1,61 @@
|
|
|
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 BuyerDomainTransferAuthCodeDto
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerDomainTransferAuthCodeDto {
|
|
22
|
+
/**
|
|
23
|
+
* Transfer auth code
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BuyerDomainTransferAuthCodeDto
|
|
26
|
+
*/
|
|
27
|
+
authCode: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the BuyerDomainTransferAuthCodeDto interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfBuyerDomainTransferAuthCodeDto(value: object): value is BuyerDomainTransferAuthCodeDto {
|
|
34
|
+
if (!('authCode' in value) || value['authCode'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function BuyerDomainTransferAuthCodeDtoFromJSON(json: any): BuyerDomainTransferAuthCodeDto {
|
|
39
|
+
return BuyerDomainTransferAuthCodeDtoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function BuyerDomainTransferAuthCodeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerDomainTransferAuthCodeDto {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'authCode': json['authCode'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function BuyerDomainTransferAuthCodeDtoToJSON(value?: BuyerDomainTransferAuthCodeDto | null): any {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'authCode': value['authCode'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
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 RequestAccessTokenInput
|
|
20
|
+
*/
|
|
21
|
+
export interface RequestAccessTokenInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RequestAccessTokenInput
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the RequestAccessTokenInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfRequestAccessTokenInput(value: object): value is RequestAccessTokenInput {
|
|
34
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function RequestAccessTokenInputFromJSON(json: any): RequestAccessTokenInput {
|
|
39
|
+
return RequestAccessTokenInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function RequestAccessTokenInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestAccessTokenInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'email': json['email'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function RequestAccessTokenInputToJSON(value?: RequestAccessTokenInput | null): any {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'email': value['email'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './AccountSettingsInput';
|
|
|
8
8
|
export * from './AdminGetAllDomainTransfers200Response';
|
|
9
9
|
export * from './BatchUpdateDomainsInput';
|
|
10
10
|
export * from './BuyDomainInput';
|
|
11
|
+
export * from './BuyerDomainTransferAuthCodeDto';
|
|
11
12
|
export * from './BuyerDomainTransferListItemDomainDto';
|
|
12
13
|
export * from './BuyerDomainTransferListItemDto';
|
|
13
14
|
export * from './BuyerUserDto';
|
|
@@ -51,7 +52,6 @@ export * from './LoginDto';
|
|
|
51
52
|
export * from './LoginInput';
|
|
52
53
|
export * from './MoneyDto';
|
|
53
54
|
export * from './MoneyInput';
|
|
54
|
-
export * from './NotFoundException';
|
|
55
55
|
export * from './ObjectId';
|
|
56
56
|
export * from './PaginateResponse';
|
|
57
57
|
export * from './PaginateResponseLinks';
|
|
@@ -62,6 +62,7 @@ export * from './PublicLeadDtoLastOffer';
|
|
|
62
62
|
export * from './PutLeadInput';
|
|
63
63
|
export * from './RegisterAccountInput';
|
|
64
64
|
export * from './RelatedSellerDomain';
|
|
65
|
+
export * from './RequestAccessTokenInput';
|
|
65
66
|
export * from './SecurityUserDto';
|
|
66
67
|
export * from './SellerDomainTransferAuthCodeDto';
|
|
67
68
|
export * from './SellerDomainTransferDomainDto';
|
|
@@ -1,43 +0,0 @@
|
|
|
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 NotFoundException
|
|
16
|
-
*/
|
|
17
|
-
export interface NotFoundException {
|
|
18
|
-
/**
|
|
19
|
-
* Exception name
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof NotFoundException
|
|
22
|
-
*/
|
|
23
|
-
name: string;
|
|
24
|
-
/**
|
|
25
|
-
* http status code
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof NotFoundException
|
|
28
|
-
*/
|
|
29
|
-
statusCode: number;
|
|
30
|
-
/**
|
|
31
|
-
* error message
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof NotFoundException
|
|
34
|
-
*/
|
|
35
|
-
message: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the NotFoundException interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfNotFoundException(value: object): value is NotFoundException;
|
|
41
|
-
export declare function NotFoundExceptionFromJSON(json: any): NotFoundException;
|
|
42
|
-
export declare function NotFoundExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotFoundException;
|
|
43
|
-
export declare function NotFoundExceptionToJSON(value?: NotFoundException | null): any;
|
|
@@ -1,55 +0,0 @@
|
|
|
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.NotFoundExceptionToJSON = exports.NotFoundExceptionFromJSONTyped = exports.NotFoundExceptionFromJSON = exports.instanceOfNotFoundException = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the NotFoundException interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfNotFoundException(value) {
|
|
21
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
24
|
-
return false;
|
|
25
|
-
if (!('message' in value) || value['message'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
exports.instanceOfNotFoundException = instanceOfNotFoundException;
|
|
30
|
-
function NotFoundExceptionFromJSON(json) {
|
|
31
|
-
return NotFoundExceptionFromJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
exports.NotFoundExceptionFromJSON = NotFoundExceptionFromJSON;
|
|
34
|
-
function NotFoundExceptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (json == null) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'name': json['name'],
|
|
40
|
-
'statusCode': json['statusCode'],
|
|
41
|
-
'message': json['message'],
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
exports.NotFoundExceptionFromJSONTyped = NotFoundExceptionFromJSONTyped;
|
|
45
|
-
function NotFoundExceptionToJSON(value) {
|
|
46
|
-
if (value == null) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
'name': value['name'],
|
|
51
|
-
'statusCode': value['statusCode'],
|
|
52
|
-
'message': value['message'],
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
exports.NotFoundExceptionToJSON = NotFoundExceptionToJSON;
|
|
@@ -1,79 +0,0 @@
|
|
|
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 NotFoundException
|
|
20
|
-
*/
|
|
21
|
-
export interface NotFoundException {
|
|
22
|
-
/**
|
|
23
|
-
* Exception name
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof NotFoundException
|
|
26
|
-
*/
|
|
27
|
-
name: string;
|
|
28
|
-
/**
|
|
29
|
-
* http status code
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof NotFoundException
|
|
32
|
-
*/
|
|
33
|
-
statusCode: number;
|
|
34
|
-
/**
|
|
35
|
-
* error message
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof NotFoundException
|
|
38
|
-
*/
|
|
39
|
-
message: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the NotFoundException interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfNotFoundException(value: object): value is NotFoundException {
|
|
46
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
|
-
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
48
|
-
if (!('message' in value) || value['message'] === undefined) return false;
|
|
49
|
-
return true;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function NotFoundExceptionFromJSON(json: any): NotFoundException {
|
|
53
|
-
return NotFoundExceptionFromJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function NotFoundExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotFoundException {
|
|
57
|
-
if (json == null) {
|
|
58
|
-
return json;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'name': json['name'],
|
|
63
|
-
'statusCode': json['statusCode'],
|
|
64
|
-
'message': json['message'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function NotFoundExceptionToJSON(value?: NotFoundException | null): any {
|
|
69
|
-
if (value == null) {
|
|
70
|
-
return value;
|
|
71
|
-
}
|
|
72
|
-
return {
|
|
73
|
-
|
|
74
|
-
'name': value['name'],
|
|
75
|
-
'statusCode': value['statusCode'],
|
|
76
|
-
'message': value['message'],
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
|