@randock/nameshift-api-client 0.0.264 → 0.0.266
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 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +11 -0
- package/dist/apis/AdminApi.js +51 -0
- package/dist/apis/DomainsPublicApi.d.ts +11 -2
- package/dist/apis/DomainsPublicApi.js +49 -3
- package/dist/models/AccountAliasDto.d.ts +6 -0
- package/dist/models/AccountAliasDto.js +4 -0
- package/dist/models/AccountSettingsAliasDto.d.ts +38 -0
- package/dist/models/AccountSettingsAliasDto.js +55 -0
- package/dist/models/AccountSettingsDto.d.ts +7 -0
- package/dist/models/AccountSettingsDto.js +5 -0
- package/dist/models/DomainTldsDto.d.ts +32 -0
- package/dist/models/DomainTldsDto.js +51 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +44 -0
- package/src/apis/DomainsPublicApi.ts +42 -1
- package/src/models/AccountAliasDto.ts +9 -0
- package/src/models/AccountSettingsAliasDto.ts +75 -0
- package/src/models/AccountSettingsDto.ts +16 -0
- package/src/models/DomainTldsDto.ts +66 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -36,6 +36,7 @@ src/models/AccountNotificationReadStatusDto.ts
|
|
|
36
36
|
src/models/AccountOnboardingDto.ts
|
|
37
37
|
src/models/AccountOnboardingSessionDto.ts
|
|
38
38
|
src/models/AccountPayoutDto.ts
|
|
39
|
+
src/models/AccountSettingsAliasDto.ts
|
|
39
40
|
src/models/AccountSettingsDto.ts
|
|
40
41
|
src/models/AccountSettingsInput.ts
|
|
41
42
|
src/models/AccountSettingsLeaseToOwnConfigurationDto.ts
|
|
@@ -100,6 +101,7 @@ src/models/DomainSalesInformationLeaseToOwnConfigurationDto.ts
|
|
|
100
101
|
src/models/DomainSalesInformationRentConfigurationDto.ts
|
|
101
102
|
src/models/DomainSellerDto.ts
|
|
102
103
|
src/models/DomainStatsDto.ts
|
|
104
|
+
src/models/DomainTldsDto.ts
|
|
103
105
|
src/models/DomainTransferAgentDto.ts
|
|
104
106
|
src/models/DomainTransferDetailSellerPayoutInvoiceDto.ts
|
|
105
107
|
src/models/DomainTransferDetailWorkflowStepActionDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.266
|
|
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.266 --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
|
+
f8566b38e2ef07550df50b5eb1bd37ddabb63452674501c0c6e1c1e24bc4c87e98ce3e3ca3d3646c717e8bb40ed73854
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -107,6 +107,9 @@ export interface AdminApiUpdateAccountSettingsRequest {
|
|
|
107
107
|
accountId: string;
|
|
108
108
|
adminAccountSettingsInput: AdminAccountSettingsInput;
|
|
109
109
|
}
|
|
110
|
+
export interface AdminApiVerifyAccountAliasRequest {
|
|
111
|
+
accountId: string;
|
|
112
|
+
}
|
|
110
113
|
export interface AdminApiVerifyBankAccountRequest {
|
|
111
114
|
bankAccountId: string;
|
|
112
115
|
}
|
|
@@ -290,6 +293,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
290
293
|
*
|
|
291
294
|
*/
|
|
292
295
|
updateAccountSettings(requestParameters: AdminApiUpdateAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
296
|
+
/**
|
|
297
|
+
*
|
|
298
|
+
*/
|
|
299
|
+
verifyAccountAliasRaw(requestParameters: AdminApiVerifyAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
300
|
+
/**
|
|
301
|
+
*
|
|
302
|
+
*/
|
|
303
|
+
verifyAccountAlias(requestParameters: AdminApiVerifyAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
293
304
|
/**
|
|
294
305
|
*
|
|
295
306
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -1333,6 +1333,57 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
1333
1333
|
});
|
|
1334
1334
|
});
|
|
1335
1335
|
};
|
|
1336
|
+
/**
|
|
1337
|
+
*
|
|
1338
|
+
*/
|
|
1339
|
+
AdminApi.prototype.verifyAccountAliasRaw = function (requestParameters, initOverrides) {
|
|
1340
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1341
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1342
|
+
return __generator(this, function (_a) {
|
|
1343
|
+
switch (_a.label) {
|
|
1344
|
+
case 0:
|
|
1345
|
+
if (requestParameters['accountId'] == null) {
|
|
1346
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling verifyAccountAlias().');
|
|
1347
|
+
}
|
|
1348
|
+
queryParameters = {};
|
|
1349
|
+
headerParameters = {};
|
|
1350
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1351
|
+
token = this.configuration.accessToken;
|
|
1352
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1353
|
+
case 1:
|
|
1354
|
+
tokenString = _a.sent();
|
|
1355
|
+
if (tokenString) {
|
|
1356
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1357
|
+
}
|
|
1358
|
+
_a.label = 2;
|
|
1359
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1360
|
+
path: "/admin/accounts/{accountId}/alias/verify".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
1361
|
+
method: 'POST',
|
|
1362
|
+
headers: headerParameters,
|
|
1363
|
+
query: queryParameters,
|
|
1364
|
+
}, initOverrides)];
|
|
1365
|
+
case 3:
|
|
1366
|
+
response = _a.sent();
|
|
1367
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1368
|
+
}
|
|
1369
|
+
});
|
|
1370
|
+
});
|
|
1371
|
+
};
|
|
1372
|
+
/**
|
|
1373
|
+
*
|
|
1374
|
+
*/
|
|
1375
|
+
AdminApi.prototype.verifyAccountAlias = function (requestParameters, initOverrides) {
|
|
1376
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1377
|
+
return __generator(this, function (_a) {
|
|
1378
|
+
switch (_a.label) {
|
|
1379
|
+
case 0: return [4 /*yield*/, this.verifyAccountAliasRaw(requestParameters, initOverrides)];
|
|
1380
|
+
case 1:
|
|
1381
|
+
_a.sent();
|
|
1382
|
+
return [2 /*return*/];
|
|
1383
|
+
}
|
|
1384
|
+
});
|
|
1385
|
+
});
|
|
1386
|
+
};
|
|
1336
1387
|
/**
|
|
1337
1388
|
*
|
|
1338
1389
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { DomainSalesInformationDto, List200Response3, SortDto } from '../models/index';
|
|
13
|
+
import type { DomainSalesInformationDto, DomainTldsDto, List200Response3, SortDto } from '../models/index';
|
|
14
14
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
15
15
|
domainName: string;
|
|
16
16
|
includeStats?: boolean;
|
|
@@ -18,6 +18,7 @@ export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
|
18
18
|
installments?: number;
|
|
19
19
|
}
|
|
20
20
|
export interface DomainsPublicApiListRequest {
|
|
21
|
+
fuzzy: boolean;
|
|
21
22
|
limit?: number;
|
|
22
23
|
sort?: Array<SortDto>;
|
|
23
24
|
filter?: string;
|
|
@@ -28,6 +29,14 @@ export interface DomainsPublicApiListRequest {
|
|
|
28
29
|
*
|
|
29
30
|
*/
|
|
30
31
|
export declare class DomainsPublicApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
getAllTldsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTldsDto>>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
getAllTlds(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTldsDto>;
|
|
31
40
|
/**
|
|
32
41
|
*
|
|
33
42
|
*/
|
|
@@ -43,5 +52,5 @@ export declare class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
43
52
|
/**
|
|
44
53
|
*
|
|
45
54
|
*/
|
|
46
|
-
list(requestParameters
|
|
55
|
+
list(requestParameters: DomainsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response3>;
|
|
47
56
|
}
|
|
@@ -75,6 +75,47 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function DomainsPublicApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
DomainsPublicApi.prototype.getAllTldsRaw = function (initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
queryParameters = {};
|
|
88
|
+
headerParameters = {};
|
|
89
|
+
return [4 /*yield*/, this.request({
|
|
90
|
+
path: "/domains/tlds",
|
|
91
|
+
method: 'GET',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
}, initOverrides)];
|
|
95
|
+
case 1:
|
|
96
|
+
response = _a.sent();
|
|
97
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainTldsDtoFromJSON)(jsonValue); })];
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
DomainsPublicApi.prototype.getAllTlds = function (initOverrides) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
107
|
+
var response;
|
|
108
|
+
return __generator(this, function (_a) {
|
|
109
|
+
switch (_a.label) {
|
|
110
|
+
case 0: return [4 /*yield*/, this.getAllTldsRaw(initOverrides)];
|
|
111
|
+
case 1:
|
|
112
|
+
response = _a.sent();
|
|
113
|
+
return [4 /*yield*/, response.value()];
|
|
114
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
};
|
|
78
119
|
/**
|
|
79
120
|
*
|
|
80
121
|
*/
|
|
@@ -137,7 +178,13 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
137
178
|
return __generator(this, function (_a) {
|
|
138
179
|
switch (_a.label) {
|
|
139
180
|
case 0:
|
|
181
|
+
if (requestParameters['fuzzy'] == null) {
|
|
182
|
+
throw new runtime.RequiredError('fuzzy', 'Required parameter "fuzzy" was null or undefined when calling list().');
|
|
183
|
+
}
|
|
140
184
|
queryParameters = {};
|
|
185
|
+
if (requestParameters['fuzzy'] != null) {
|
|
186
|
+
queryParameters['fuzzy'] = requestParameters['fuzzy'];
|
|
187
|
+
}
|
|
141
188
|
if (requestParameters['limit'] != null) {
|
|
142
189
|
queryParameters['limit'] = requestParameters['limit'];
|
|
143
190
|
}
|
|
@@ -170,10 +217,9 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
170
217
|
/**
|
|
171
218
|
*
|
|
172
219
|
*/
|
|
173
|
-
DomainsPublicApi.prototype.list = function () {
|
|
174
|
-
return __awaiter(this,
|
|
220
|
+
DomainsPublicApi.prototype.list = function (requestParameters, initOverrides) {
|
|
221
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
175
222
|
var response;
|
|
176
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
177
223
|
return __generator(this, function (_a) {
|
|
178
224
|
switch (_a.label) {
|
|
179
225
|
case 0: return [4 /*yield*/, this.listRaw(requestParameters, initOverrides)];
|
|
@@ -21,6 +21,12 @@ export interface AccountAliasDto {
|
|
|
21
21
|
* @memberof AccountAliasDto
|
|
22
22
|
*/
|
|
23
23
|
alias: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof AccountAliasDto
|
|
28
|
+
*/
|
|
29
|
+
verified: boolean;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* Check if a given object implements the AccountAliasDto interface.
|
|
@@ -24,6 +24,8 @@ exports.AccountAliasDtoToJSONTyped = AccountAliasDtoToJSONTyped;
|
|
|
24
24
|
function instanceOfAccountAliasDto(value) {
|
|
25
25
|
if (!('alias' in value) || value['alias'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('verified' in value) || value['verified'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
return true;
|
|
28
30
|
}
|
|
29
31
|
function AccountAliasDtoFromJSON(json) {
|
|
@@ -35,6 +37,7 @@ function AccountAliasDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
37
|
}
|
|
36
38
|
return {
|
|
37
39
|
'alias': json['alias'],
|
|
40
|
+
'verified': json['verified'],
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
43
|
function AccountAliasDtoToJSON(json) {
|
|
@@ -47,5 +50,6 @@ function AccountAliasDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
47
50
|
}
|
|
48
51
|
return {
|
|
49
52
|
'alias': value['alias'],
|
|
53
|
+
'verified': value['verified'],
|
|
50
54
|
};
|
|
51
55
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 AccountSettingsAliasDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountSettingsAliasDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AccountSettingsAliasDto
|
|
22
|
+
*/
|
|
23
|
+
alias: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof AccountSettingsAliasDto
|
|
28
|
+
*/
|
|
29
|
+
verified: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AccountSettingsAliasDto interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAccountSettingsAliasDto(value: object): value is AccountSettingsAliasDto;
|
|
35
|
+
export declare function AccountSettingsAliasDtoFromJSON(json: any): AccountSettingsAliasDto;
|
|
36
|
+
export declare function AccountSettingsAliasDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsAliasDto;
|
|
37
|
+
export declare function AccountSettingsAliasDtoToJSON(json: any): AccountSettingsAliasDto;
|
|
38
|
+
export declare function AccountSettingsAliasDtoToJSONTyped(value?: AccountSettingsAliasDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfAccountSettingsAliasDto = instanceOfAccountSettingsAliasDto;
|
|
17
|
+
exports.AccountSettingsAliasDtoFromJSON = AccountSettingsAliasDtoFromJSON;
|
|
18
|
+
exports.AccountSettingsAliasDtoFromJSONTyped = AccountSettingsAliasDtoFromJSONTyped;
|
|
19
|
+
exports.AccountSettingsAliasDtoToJSON = AccountSettingsAliasDtoToJSON;
|
|
20
|
+
exports.AccountSettingsAliasDtoToJSONTyped = AccountSettingsAliasDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AccountSettingsAliasDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAccountSettingsAliasDto(value) {
|
|
25
|
+
if (!('alias' in value) || value['alias'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('verified' in value) || value['verified'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AccountSettingsAliasDtoFromJSON(json) {
|
|
32
|
+
return AccountSettingsAliasDtoFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AccountSettingsAliasDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'alias': json['alias'],
|
|
40
|
+
'verified': json['verified'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AccountSettingsAliasDtoToJSON(json) {
|
|
44
|
+
return AccountSettingsAliasDtoToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AccountSettingsAliasDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'alias': value['alias'],
|
|
53
|
+
'verified': value['verified'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { MoneyDto } from './MoneyDto';
|
|
13
13
|
import type { AccountSettingsSidnDto } from './AccountSettingsSidnDto';
|
|
14
|
+
import type { AccountSettingsAliasDto } from './AccountSettingsAliasDto';
|
|
14
15
|
import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
15
16
|
import type { LandingPageSettingsDto } from './LandingPageSettingsDto';
|
|
16
17
|
import type { AccountSettingsRentConfigurationDto } from './AccountSettingsRentConfigurationDto';
|
|
@@ -74,6 +75,12 @@ export interface AccountSettingsDto {
|
|
|
74
75
|
* @memberof AccountSettingsDto
|
|
75
76
|
*/
|
|
76
77
|
avatar: string | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {AccountSettingsAliasDto}
|
|
81
|
+
* @memberof AccountSettingsDto
|
|
82
|
+
*/
|
|
83
|
+
alias: AccountSettingsAliasDto;
|
|
77
84
|
}
|
|
78
85
|
/**
|
|
79
86
|
* Check if a given object implements the AccountSettingsDto interface.
|
|
@@ -20,6 +20,7 @@ exports.AccountSettingsDtoToJSON = AccountSettingsDtoToJSON;
|
|
|
20
20
|
exports.AccountSettingsDtoToJSONTyped = AccountSettingsDtoToJSONTyped;
|
|
21
21
|
var MoneyDto_1 = require("./MoneyDto");
|
|
22
22
|
var AccountSettingsSidnDto_1 = require("./AccountSettingsSidnDto");
|
|
23
|
+
var AccountSettingsAliasDto_1 = require("./AccountSettingsAliasDto");
|
|
23
24
|
var AccountSettingsLeaseToOwnConfigurationDto_1 = require("./AccountSettingsLeaseToOwnConfigurationDto");
|
|
24
25
|
var LandingPageSettingsDto_1 = require("./LandingPageSettingsDto");
|
|
25
26
|
var AccountSettingsRentConfigurationDto_1 = require("./AccountSettingsRentConfigurationDto");
|
|
@@ -45,6 +46,8 @@ function instanceOfAccountSettingsDto(value) {
|
|
|
45
46
|
return false;
|
|
46
47
|
if (!('avatar' in value) || value['avatar'] === undefined)
|
|
47
48
|
return false;
|
|
49
|
+
if (!('alias' in value) || value['alias'] === undefined)
|
|
50
|
+
return false;
|
|
48
51
|
return true;
|
|
49
52
|
}
|
|
50
53
|
function AccountSettingsDtoFromJSON(json) {
|
|
@@ -64,6 +67,7 @@ function AccountSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
67
|
'sidn': (0, AccountSettingsSidnDto_1.AccountSettingsSidnDtoFromJSON)(json['sidn']),
|
|
65
68
|
'description': json['description'],
|
|
66
69
|
'avatar': json['avatar'],
|
|
70
|
+
'alias': (0, AccountSettingsAliasDto_1.AccountSettingsAliasDtoFromJSON)(json['alias']),
|
|
67
71
|
};
|
|
68
72
|
}
|
|
69
73
|
function AccountSettingsDtoToJSON(json) {
|
|
@@ -84,5 +88,6 @@ function AccountSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
84
88
|
'sidn': (0, AccountSettingsSidnDto_1.AccountSettingsSidnDtoToJSON)(value['sidn']),
|
|
85
89
|
'description': value['description'],
|
|
86
90
|
'avatar': value['avatar'],
|
|
91
|
+
'alias': (0, AccountSettingsAliasDto_1.AccountSettingsAliasDtoToJSON)(value['alias']),
|
|
87
92
|
};
|
|
88
93
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DomainTldsDto
|
|
16
|
+
*/
|
|
17
|
+
export interface DomainTldsDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof DomainTldsDto
|
|
22
|
+
*/
|
|
23
|
+
tlds: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the DomainTldsDto interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfDomainTldsDto(value: object): value is DomainTldsDto;
|
|
29
|
+
export declare function DomainTldsDtoFromJSON(json: any): DomainTldsDto;
|
|
30
|
+
export declare function DomainTldsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTldsDto;
|
|
31
|
+
export declare function DomainTldsDtoToJSON(json: any): DomainTldsDto;
|
|
32
|
+
export declare function DomainTldsDtoToJSONTyped(value?: DomainTldsDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDomainTldsDto = instanceOfDomainTldsDto;
|
|
17
|
+
exports.DomainTldsDtoFromJSON = DomainTldsDtoFromJSON;
|
|
18
|
+
exports.DomainTldsDtoFromJSONTyped = DomainTldsDtoFromJSONTyped;
|
|
19
|
+
exports.DomainTldsDtoToJSON = DomainTldsDtoToJSON;
|
|
20
|
+
exports.DomainTldsDtoToJSONTyped = DomainTldsDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DomainTldsDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDomainTldsDto(value) {
|
|
25
|
+
if (!('tlds' in value) || value['tlds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function DomainTldsDtoFromJSON(json) {
|
|
30
|
+
return DomainTldsDtoFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function DomainTldsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'tlds': json['tlds'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function DomainTldsDtoToJSON(json) {
|
|
41
|
+
return DomainTldsDtoToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function DomainTldsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'tlds': value['tlds'],
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './AccountNotificationReadStatusDto';
|
|
|
9
9
|
export * from './AccountOnboardingDto';
|
|
10
10
|
export * from './AccountOnboardingSessionDto';
|
|
11
11
|
export * from './AccountPayoutDto';
|
|
12
|
+
export * from './AccountSettingsAliasDto';
|
|
12
13
|
export * from './AccountSettingsDto';
|
|
13
14
|
export * from './AccountSettingsInput';
|
|
14
15
|
export * from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
@@ -73,6 +74,7 @@ export * from './DomainSalesInformationLeaseToOwnConfigurationDto';
|
|
|
73
74
|
export * from './DomainSalesInformationRentConfigurationDto';
|
|
74
75
|
export * from './DomainSellerDto';
|
|
75
76
|
export * from './DomainStatsDto';
|
|
77
|
+
export * from './DomainTldsDto';
|
|
76
78
|
export * from './DomainTransferAgentDto';
|
|
77
79
|
export * from './DomainTransferDetailSellerPayoutInvoiceDto';
|
|
78
80
|
export * from './DomainTransferDetailWorkflowStepActionDto';
|
package/dist/models/index.js
CHANGED
|
@@ -27,6 +27,7 @@ __exportStar(require("./AccountNotificationReadStatusDto"), exports);
|
|
|
27
27
|
__exportStar(require("./AccountOnboardingDto"), exports);
|
|
28
28
|
__exportStar(require("./AccountOnboardingSessionDto"), exports);
|
|
29
29
|
__exportStar(require("./AccountPayoutDto"), exports);
|
|
30
|
+
__exportStar(require("./AccountSettingsAliasDto"), exports);
|
|
30
31
|
__exportStar(require("./AccountSettingsDto"), exports);
|
|
31
32
|
__exportStar(require("./AccountSettingsInput"), exports);
|
|
32
33
|
__exportStar(require("./AccountSettingsLeaseToOwnConfigurationDto"), exports);
|
|
@@ -91,6 +92,7 @@ __exportStar(require("./DomainSalesInformationLeaseToOwnConfigurationDto"), expo
|
|
|
91
92
|
__exportStar(require("./DomainSalesInformationRentConfigurationDto"), exports);
|
|
92
93
|
__exportStar(require("./DomainSellerDto"), exports);
|
|
93
94
|
__exportStar(require("./DomainStatsDto"), exports);
|
|
95
|
+
__exportStar(require("./DomainTldsDto"), exports);
|
|
94
96
|
__exportStar(require("./DomainTransferAgentDto"), exports);
|
|
95
97
|
__exportStar(require("./DomainTransferDetailSellerPayoutInvoiceDto"), exports);
|
|
96
98
|
__exportStar(require("./DomainTransferDetailWorkflowStepActionDto"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -203,6 +203,10 @@ export interface AdminApiUpdateAccountSettingsRequest {
|
|
|
203
203
|
adminAccountSettingsInput: AdminAccountSettingsInput;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
+
export interface AdminApiVerifyAccountAliasRequest {
|
|
207
|
+
accountId: string;
|
|
208
|
+
}
|
|
209
|
+
|
|
206
210
|
export interface AdminApiVerifyBankAccountRequest {
|
|
207
211
|
bankAccountId: string;
|
|
208
212
|
}
|
|
@@ -1233,6 +1237,46 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1233
1237
|
await this.updateAccountSettingsRaw(requestParameters, initOverrides);
|
|
1234
1238
|
}
|
|
1235
1239
|
|
|
1240
|
+
/**
|
|
1241
|
+
*
|
|
1242
|
+
*/
|
|
1243
|
+
async verifyAccountAliasRaw(requestParameters: AdminApiVerifyAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1244
|
+
if (requestParameters['accountId'] == null) {
|
|
1245
|
+
throw new runtime.RequiredError(
|
|
1246
|
+
'accountId',
|
|
1247
|
+
'Required parameter "accountId" was null or undefined when calling verifyAccountAlias().'
|
|
1248
|
+
);
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
const queryParameters: any = {};
|
|
1252
|
+
|
|
1253
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1254
|
+
|
|
1255
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1256
|
+
const token = this.configuration.accessToken;
|
|
1257
|
+
const tokenString = await token("bearer", []);
|
|
1258
|
+
|
|
1259
|
+
if (tokenString) {
|
|
1260
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
const response = await this.request({
|
|
1264
|
+
path: `/admin/accounts/{accountId}/alias/verify`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
1265
|
+
method: 'POST',
|
|
1266
|
+
headers: headerParameters,
|
|
1267
|
+
query: queryParameters,
|
|
1268
|
+
}, initOverrides);
|
|
1269
|
+
|
|
1270
|
+
return new runtime.VoidApiResponse(response);
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
*
|
|
1275
|
+
*/
|
|
1276
|
+
async verifyAccountAlias(requestParameters: AdminApiVerifyAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1277
|
+
await this.verifyAccountAliasRaw(requestParameters, initOverrides);
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1236
1280
|
/**
|
|
1237
1281
|
*
|
|
1238
1282
|
*/
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
DomainSalesInformationDto,
|
|
19
|
+
DomainTldsDto,
|
|
19
20
|
List200Response3,
|
|
20
21
|
NotFoundException,
|
|
21
22
|
SortDto,
|
|
@@ -25,6 +26,8 @@ import type {
|
|
|
25
26
|
import {
|
|
26
27
|
DomainSalesInformationDtoFromJSON,
|
|
27
28
|
DomainSalesInformationDtoToJSON,
|
|
29
|
+
DomainTldsDtoFromJSON,
|
|
30
|
+
DomainTldsDtoToJSON,
|
|
28
31
|
List200Response3FromJSON,
|
|
29
32
|
List200Response3ToJSON,
|
|
30
33
|
NotFoundExceptionFromJSON,
|
|
@@ -45,6 +48,7 @@ export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
export interface DomainsPublicApiListRequest {
|
|
51
|
+
fuzzy: boolean;
|
|
48
52
|
limit?: number;
|
|
49
53
|
sort?: Array<SortDto>;
|
|
50
54
|
filter?: string;
|
|
@@ -57,6 +61,32 @@ export interface DomainsPublicApiListRequest {
|
|
|
57
61
|
*/
|
|
58
62
|
export class DomainsPublicApi extends runtime.BaseAPI {
|
|
59
63
|
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
async getAllTldsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTldsDto>> {
|
|
68
|
+
const queryParameters: any = {};
|
|
69
|
+
|
|
70
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
71
|
+
|
|
72
|
+
const response = await this.request({
|
|
73
|
+
path: `/domains/tlds`,
|
|
74
|
+
method: 'GET',
|
|
75
|
+
headers: headerParameters,
|
|
76
|
+
query: queryParameters,
|
|
77
|
+
}, initOverrides);
|
|
78
|
+
|
|
79
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DomainTldsDtoFromJSON(jsonValue));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
async getAllTlds(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTldsDto> {
|
|
86
|
+
const response = await this.getAllTldsRaw(initOverrides);
|
|
87
|
+
return await response.value();
|
|
88
|
+
}
|
|
89
|
+
|
|
60
90
|
/**
|
|
61
91
|
*
|
|
62
92
|
*/
|
|
@@ -106,8 +136,19 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
106
136
|
*
|
|
107
137
|
*/
|
|
108
138
|
async listRaw(requestParameters: DomainsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response3>> {
|
|
139
|
+
if (requestParameters['fuzzy'] == null) {
|
|
140
|
+
throw new runtime.RequiredError(
|
|
141
|
+
'fuzzy',
|
|
142
|
+
'Required parameter "fuzzy" was null or undefined when calling list().'
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
109
146
|
const queryParameters: any = {};
|
|
110
147
|
|
|
148
|
+
if (requestParameters['fuzzy'] != null) {
|
|
149
|
+
queryParameters['fuzzy'] = requestParameters['fuzzy'];
|
|
150
|
+
}
|
|
151
|
+
|
|
111
152
|
if (requestParameters['limit'] != null) {
|
|
112
153
|
queryParameters['limit'] = requestParameters['limit'];
|
|
113
154
|
}
|
|
@@ -143,7 +184,7 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
143
184
|
/**
|
|
144
185
|
*
|
|
145
186
|
*/
|
|
146
|
-
async list(requestParameters: DomainsPublicApiListRequest
|
|
187
|
+
async list(requestParameters: DomainsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response3> {
|
|
147
188
|
const response = await this.listRaw(requestParameters, initOverrides);
|
|
148
189
|
return await response.value();
|
|
149
190
|
}
|
|
@@ -25,6 +25,12 @@ export interface AccountAliasDto {
|
|
|
25
25
|
* @memberof AccountAliasDto
|
|
26
26
|
*/
|
|
27
27
|
alias: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof AccountAliasDto
|
|
32
|
+
*/
|
|
33
|
+
verified: boolean;
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
/**
|
|
@@ -32,6 +38,7 @@ export interface AccountAliasDto {
|
|
|
32
38
|
*/
|
|
33
39
|
export function instanceOfAccountAliasDto(value: object): value is AccountAliasDto {
|
|
34
40
|
if (!('alias' in value) || value['alias'] === undefined) return false;
|
|
41
|
+
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
35
42
|
return true;
|
|
36
43
|
}
|
|
37
44
|
|
|
@@ -46,6 +53,7 @@ export function AccountAliasDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
46
53
|
return {
|
|
47
54
|
|
|
48
55
|
'alias': json['alias'],
|
|
56
|
+
'verified': json['verified'],
|
|
49
57
|
};
|
|
50
58
|
}
|
|
51
59
|
|
|
@@ -61,6 +69,7 @@ export function AccountAliasDtoToJSONTyped(value?: AccountAliasDto | null, ignor
|
|
|
61
69
|
return {
|
|
62
70
|
|
|
63
71
|
'alias': value['alias'],
|
|
72
|
+
'verified': value['verified'],
|
|
64
73
|
};
|
|
65
74
|
}
|
|
66
75
|
|
|
@@ -0,0 +1,75 @@
|
|
|
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 AccountSettingsAliasDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AccountSettingsAliasDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AccountSettingsAliasDto
|
|
26
|
+
*/
|
|
27
|
+
alias: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof AccountSettingsAliasDto
|
|
32
|
+
*/
|
|
33
|
+
verified: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AccountSettingsAliasDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfAccountSettingsAliasDto(value: object): value is AccountSettingsAliasDto {
|
|
40
|
+
if (!('alias' in value) || value['alias'] === undefined) return false;
|
|
41
|
+
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AccountSettingsAliasDtoFromJSON(json: any): AccountSettingsAliasDto {
|
|
46
|
+
return AccountSettingsAliasDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AccountSettingsAliasDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsAliasDto {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'alias': json['alias'],
|
|
56
|
+
'verified': json['verified'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AccountSettingsAliasDtoToJSON(json: any): AccountSettingsAliasDto {
|
|
61
|
+
return AccountSettingsAliasDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function AccountSettingsAliasDtoToJSONTyped(value?: AccountSettingsAliasDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'alias': value['alias'],
|
|
72
|
+
'verified': value['verified'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
AccountSettingsSidnDtoToJSON,
|
|
28
28
|
AccountSettingsSidnDtoToJSONTyped,
|
|
29
29
|
} from './AccountSettingsSidnDto';
|
|
30
|
+
import type { AccountSettingsAliasDto } from './AccountSettingsAliasDto';
|
|
31
|
+
import {
|
|
32
|
+
AccountSettingsAliasDtoFromJSON,
|
|
33
|
+
AccountSettingsAliasDtoFromJSONTyped,
|
|
34
|
+
AccountSettingsAliasDtoToJSON,
|
|
35
|
+
AccountSettingsAliasDtoToJSONTyped,
|
|
36
|
+
} from './AccountSettingsAliasDto';
|
|
30
37
|
import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
31
38
|
import {
|
|
32
39
|
AccountSettingsLeaseToOwnConfigurationDtoFromJSON,
|
|
@@ -109,6 +116,12 @@ export interface AccountSettingsDto {
|
|
|
109
116
|
* @memberof AccountSettingsDto
|
|
110
117
|
*/
|
|
111
118
|
avatar: string | null;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {AccountSettingsAliasDto}
|
|
122
|
+
* @memberof AccountSettingsDto
|
|
123
|
+
*/
|
|
124
|
+
alias: AccountSettingsAliasDto;
|
|
112
125
|
}
|
|
113
126
|
|
|
114
127
|
/**
|
|
@@ -124,6 +137,7 @@ export function instanceOfAccountSettingsDto(value: object): value is AccountSet
|
|
|
124
137
|
if (!('sidn' in value) || value['sidn'] === undefined) return false;
|
|
125
138
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
126
139
|
if (!('avatar' in value) || value['avatar'] === undefined) return false;
|
|
140
|
+
if (!('alias' in value) || value['alias'] === undefined) return false;
|
|
127
141
|
return true;
|
|
128
142
|
}
|
|
129
143
|
|
|
@@ -146,6 +160,7 @@ export function AccountSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
146
160
|
'sidn': AccountSettingsSidnDtoFromJSON(json['sidn']),
|
|
147
161
|
'description': json['description'],
|
|
148
162
|
'avatar': json['avatar'],
|
|
163
|
+
'alias': AccountSettingsAliasDtoFromJSON(json['alias']),
|
|
149
164
|
};
|
|
150
165
|
}
|
|
151
166
|
|
|
@@ -169,6 +184,7 @@ export function AccountSettingsDtoToJSONTyped(value?: AccountSettingsDto | null,
|
|
|
169
184
|
'sidn': AccountSettingsSidnDtoToJSON(value['sidn']),
|
|
170
185
|
'description': value['description'],
|
|
171
186
|
'avatar': value['avatar'],
|
|
187
|
+
'alias': AccountSettingsAliasDtoToJSON(value['alias']),
|
|
172
188
|
};
|
|
173
189
|
}
|
|
174
190
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DomainTldsDto
|
|
20
|
+
*/
|
|
21
|
+
export interface DomainTldsDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof DomainTldsDto
|
|
26
|
+
*/
|
|
27
|
+
tlds: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the DomainTldsDto interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfDomainTldsDto(value: object): value is DomainTldsDto {
|
|
34
|
+
if (!('tlds' in value) || value['tlds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function DomainTldsDtoFromJSON(json: any): DomainTldsDto {
|
|
39
|
+
return DomainTldsDtoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function DomainTldsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTldsDto {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'tlds': json['tlds'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function DomainTldsDtoToJSON(json: any): DomainTldsDto {
|
|
53
|
+
return DomainTldsDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function DomainTldsDtoToJSONTyped(value?: DomainTldsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'tlds': value['tlds'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './AccountNotificationReadStatusDto';
|
|
|
11
11
|
export * from './AccountOnboardingDto';
|
|
12
12
|
export * from './AccountOnboardingSessionDto';
|
|
13
13
|
export * from './AccountPayoutDto';
|
|
14
|
+
export * from './AccountSettingsAliasDto';
|
|
14
15
|
export * from './AccountSettingsDto';
|
|
15
16
|
export * from './AccountSettingsInput';
|
|
16
17
|
export * from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
@@ -75,6 +76,7 @@ export * from './DomainSalesInformationLeaseToOwnConfigurationDto';
|
|
|
75
76
|
export * from './DomainSalesInformationRentConfigurationDto';
|
|
76
77
|
export * from './DomainSellerDto';
|
|
77
78
|
export * from './DomainStatsDto';
|
|
79
|
+
export * from './DomainTldsDto';
|
|
78
80
|
export * from './DomainTransferAgentDto';
|
|
79
81
|
export * from './DomainTransferDetailSellerPayoutInvoiceDto';
|
|
80
82
|
export * from './DomainTransferDetailWorkflowStepActionDto';
|