@randock/nameshift-api-client 0.0.111 → 0.0.112
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 +3 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.js +1 -1
- package/dist/apis/AdminApi.d.ts +24 -1
- package/dist/apis/AdminApi.js +109 -0
- package/dist/apis/DomainsApi.d.ts +3 -3
- package/dist/apis/DomainsApi.js +1 -1
- package/dist/apis/LeadsApi.d.ts +3 -3
- package/dist/apis/LeadsApi.js +1 -1
- package/dist/models/AccountSettingsDto.d.ts +50 -0
- package/dist/models/AccountSettingsDto.js +59 -0
- package/dist/models/AdminAccountSettingsInput.d.ts +31 -0
- package/dist/models/AdminAccountSettingsInput.js +44 -0
- package/dist/models/List200Response.d.ts +3 -3
- package/dist/models/List200Response.js +3 -3
- package/dist/models/List200Response1.d.ts +3 -3
- package/dist/models/List200Response1.js +3 -3
- package/dist/models/ThrottlerException.d.ts +43 -0
- package/dist/models/ThrottlerException.js +54 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +4 -1
- package/src/apis/AccountsPublicApi.ts +3 -0
- package/src/apis/AdminApi.ts +109 -0
- package/src/apis/BuyersApi.ts +3 -0
- package/src/apis/BuyersPublicApi.ts +3 -0
- package/src/apis/DomainsApi.ts +9 -6
- package/src/apis/DomainsPublicApi.ts +3 -0
- package/src/apis/LeadsApi.ts +9 -6
- package/src/apis/LeadsPublicApi.ts +3 -0
- package/src/apis/OrdersPublicApi.ts +3 -0
- package/src/apis/StripePublicApi.ts +3 -0
- package/src/apis/UsersApi.ts +3 -0
- package/src/apis/UsersPublicApi.ts +3 -0
- package/src/models/AccountSettingsDto.ts +95 -0
- package/src/models/AdminAccountSettingsInput.ts +60 -0
- package/src/models/List200Response.ts +9 -9
- package/src/models/List200Response1.ts +9 -9
- package/src/models/ThrottlerException.ts +79 -0
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfThrottlerException = instanceOfThrottlerException;
|
|
17
|
+
exports.ThrottlerExceptionFromJSON = ThrottlerExceptionFromJSON;
|
|
18
|
+
exports.ThrottlerExceptionFromJSONTyped = ThrottlerExceptionFromJSONTyped;
|
|
19
|
+
exports.ThrottlerExceptionToJSON = ThrottlerExceptionToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the ThrottlerException interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfThrottlerException(value) {
|
|
24
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function ThrottlerExceptionFromJSON(json) {
|
|
33
|
+
return ThrottlerExceptionFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function ThrottlerExceptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'statusCode': json['statusCode'],
|
|
42
|
+
'message': json['message'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function ThrottlerExceptionToJSON(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
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from './AccountDto';
|
|
2
2
|
export * from './AccountMetricsDto';
|
|
3
3
|
export * from './AccountPaymentProviderSessionDto';
|
|
4
|
+
export * from './AccountSettingsDto';
|
|
4
5
|
export * from './AccountSettingsInput';
|
|
5
6
|
export * from './AddressDto';
|
|
7
|
+
export * from './AdminAccountSettingsInput';
|
|
6
8
|
export * from './AdminGetAllDomainTransfers200Response';
|
|
7
9
|
export * from './BadRequestException';
|
|
8
10
|
export * from './BatchReadBuyerLeadMessageInput';
|
|
@@ -108,6 +110,7 @@ export * from './SetDomainTransferConfirmationInput';
|
|
|
108
110
|
export * from './SetNewPasswordInput';
|
|
109
111
|
export * from './StoreBuyerLocaleInput';
|
|
110
112
|
export * from './StoreUserLocaleInput';
|
|
113
|
+
export * from './ThrottlerException';
|
|
111
114
|
export * from './UpdateDomainInput';
|
|
112
115
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
113
116
|
export * from './UpdateLeadInput';
|
package/dist/models/index.js
CHANGED
|
@@ -19,8 +19,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./AccountDto"), exports);
|
|
20
20
|
__exportStar(require("./AccountMetricsDto"), exports);
|
|
21
21
|
__exportStar(require("./AccountPaymentProviderSessionDto"), exports);
|
|
22
|
+
__exportStar(require("./AccountSettingsDto"), exports);
|
|
22
23
|
__exportStar(require("./AccountSettingsInput"), exports);
|
|
23
24
|
__exportStar(require("./AddressDto"), exports);
|
|
25
|
+
__exportStar(require("./AdminAccountSettingsInput"), exports);
|
|
24
26
|
__exportStar(require("./AdminGetAllDomainTransfers200Response"), exports);
|
|
25
27
|
__exportStar(require("./BadRequestException"), exports);
|
|
26
28
|
__exportStar(require("./BatchReadBuyerLeadMessageInput"), exports);
|
|
@@ -126,6 +128,7 @@ __exportStar(require("./SetDomainTransferConfirmationInput"), exports);
|
|
|
126
128
|
__exportStar(require("./SetNewPasswordInput"), exports);
|
|
127
129
|
__exportStar(require("./StoreBuyerLocaleInput"), exports);
|
|
128
130
|
__exportStar(require("./StoreUserLocaleInput"), exports);
|
|
131
|
+
__exportStar(require("./ThrottlerException"), exports);
|
|
129
132
|
__exportStar(require("./UpdateDomainInput"), exports);
|
|
130
133
|
__exportStar(require("./UpdateDomainTransferAuthCodeInput"), exports);
|
|
131
134
|
__exportStar(require("./UpdateLeadInput"), exports);
|
package/package.json
CHANGED
package/src/apis/AccountsApi.ts
CHANGED
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
CreateAccountPaymentProviderInput,
|
|
21
21
|
IntersectionAccountDtoWithSettingsDto,
|
|
22
22
|
NotFoundException,
|
|
23
|
+
ThrottlerException,
|
|
23
24
|
ValidationException,
|
|
24
25
|
} from '../models/index';
|
|
25
26
|
import {
|
|
@@ -33,6 +34,8 @@ import {
|
|
|
33
34
|
IntersectionAccountDtoWithSettingsDtoToJSON,
|
|
34
35
|
NotFoundExceptionFromJSON,
|
|
35
36
|
NotFoundExceptionToJSON,
|
|
37
|
+
ThrottlerExceptionFromJSON,
|
|
38
|
+
ThrottlerExceptionToJSON,
|
|
36
39
|
ValidationExceptionFromJSON,
|
|
37
40
|
ValidationExceptionToJSON,
|
|
38
41
|
} from '../models/index';
|
|
@@ -215,7 +218,7 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
215
218
|
}
|
|
216
219
|
const response = await this.request({
|
|
217
220
|
path: `/private/accounts/{accountId}/settings`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
218
|
-
method: '
|
|
221
|
+
method: 'PATCH',
|
|
219
222
|
headers: headerParameters,
|
|
220
223
|
query: queryParameters,
|
|
221
224
|
body: AccountSettingsInputToJSON(requestParameters['accountSettingsInput']),
|
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
ConflictException,
|
|
19
19
|
RegisterAccountInput,
|
|
20
|
+
ThrottlerException,
|
|
20
21
|
ValidationException,
|
|
21
22
|
} from '../models/index';
|
|
22
23
|
import {
|
|
@@ -24,6 +25,8 @@ import {
|
|
|
24
25
|
ConflictExceptionToJSON,
|
|
25
26
|
RegisterAccountInputFromJSON,
|
|
26
27
|
RegisterAccountInputToJSON,
|
|
28
|
+
ThrottlerExceptionFromJSON,
|
|
29
|
+
ThrottlerExceptionToJSON,
|
|
27
30
|
ValidationExceptionFromJSON,
|
|
28
31
|
ValidationExceptionToJSON,
|
|
29
32
|
} from '../models/index';
|
package/src/apis/AdminApi.ts
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AccountSettingsDto,
|
|
19
|
+
AdminAccountSettingsInput,
|
|
18
20
|
AdminGetAllDomainTransfers200Response,
|
|
19
21
|
BadRequestException,
|
|
20
22
|
ChangeOrderStatusInput,
|
|
@@ -23,9 +25,14 @@ import type {
|
|
|
23
25
|
GetAllOwnedDomains200Response,
|
|
24
26
|
ListAccounts200Response,
|
|
25
27
|
NotFoundException,
|
|
28
|
+
ThrottlerException,
|
|
26
29
|
ValidationException,
|
|
27
30
|
} from '../models/index';
|
|
28
31
|
import {
|
|
32
|
+
AccountSettingsDtoFromJSON,
|
|
33
|
+
AccountSettingsDtoToJSON,
|
|
34
|
+
AdminAccountSettingsInputFromJSON,
|
|
35
|
+
AdminAccountSettingsInputToJSON,
|
|
29
36
|
AdminGetAllDomainTransfers200ResponseFromJSON,
|
|
30
37
|
AdminGetAllDomainTransfers200ResponseToJSON,
|
|
31
38
|
BadRequestExceptionFromJSON,
|
|
@@ -42,6 +49,8 @@ import {
|
|
|
42
49
|
ListAccounts200ResponseToJSON,
|
|
43
50
|
NotFoundExceptionFromJSON,
|
|
44
51
|
NotFoundExceptionToJSON,
|
|
52
|
+
ThrottlerExceptionFromJSON,
|
|
53
|
+
ThrottlerExceptionToJSON,
|
|
45
54
|
ValidationExceptionFromJSON,
|
|
46
55
|
ValidationExceptionToJSON,
|
|
47
56
|
} from '../models/index';
|
|
@@ -58,6 +67,10 @@ export interface AdminApiChangeOrderStatusRequest {
|
|
|
58
67
|
changeOrderStatusInput: ChangeOrderStatusInput;
|
|
59
68
|
}
|
|
60
69
|
|
|
70
|
+
export interface AdminApiGetAccountSettingsRequest {
|
|
71
|
+
accountId: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
61
74
|
export interface AdminApiGetAdminDomainTransferDetailsRequest {
|
|
62
75
|
transferId: string;
|
|
63
76
|
}
|
|
@@ -89,6 +102,11 @@ export interface AdminApiListAccountsRequest {
|
|
|
89
102
|
sortBy?: Array<string>;
|
|
90
103
|
}
|
|
91
104
|
|
|
105
|
+
export interface AdminApiUpdateAccountSettingsRequest {
|
|
106
|
+
accountId: string;
|
|
107
|
+
adminAccountSettingsInput: AdminAccountSettingsInput;
|
|
108
|
+
}
|
|
109
|
+
|
|
92
110
|
/**
|
|
93
111
|
*
|
|
94
112
|
*/
|
|
@@ -194,6 +212,47 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
194
212
|
await this.changeOrderStatusRaw(requestParameters, initOverrides);
|
|
195
213
|
}
|
|
196
214
|
|
|
215
|
+
/**
|
|
216
|
+
*
|
|
217
|
+
*/
|
|
218
|
+
async getAccountSettingsRaw(requestParameters: AdminApiGetAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountSettingsDto>> {
|
|
219
|
+
if (requestParameters['accountId'] == null) {
|
|
220
|
+
throw new runtime.RequiredError(
|
|
221
|
+
'accountId',
|
|
222
|
+
'Required parameter "accountId" was null or undefined when calling getAccountSettings().'
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
const queryParameters: any = {};
|
|
227
|
+
|
|
228
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
229
|
+
|
|
230
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
231
|
+
const token = this.configuration.accessToken;
|
|
232
|
+
const tokenString = await token("bearer", []);
|
|
233
|
+
|
|
234
|
+
if (tokenString) {
|
|
235
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
const response = await this.request({
|
|
239
|
+
path: `/admin/accounts/{accountId}/settings`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
240
|
+
method: 'GET',
|
|
241
|
+
headers: headerParameters,
|
|
242
|
+
query: queryParameters,
|
|
243
|
+
}, initOverrides);
|
|
244
|
+
|
|
245
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccountSettingsDtoFromJSON(jsonValue));
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
*/
|
|
251
|
+
async getAccountSettings(requestParameters: AdminApiGetAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountSettingsDto> {
|
|
252
|
+
const response = await this.getAccountSettingsRaw(requestParameters, initOverrides);
|
|
253
|
+
return await response.value();
|
|
254
|
+
}
|
|
255
|
+
|
|
197
256
|
/**
|
|
198
257
|
*
|
|
199
258
|
*/
|
|
@@ -439,4 +498,54 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
439
498
|
return await response.value();
|
|
440
499
|
}
|
|
441
500
|
|
|
501
|
+
/**
|
|
502
|
+
*
|
|
503
|
+
*/
|
|
504
|
+
async updateAccountSettingsRaw(requestParameters: AdminApiUpdateAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
505
|
+
if (requestParameters['accountId'] == null) {
|
|
506
|
+
throw new runtime.RequiredError(
|
|
507
|
+
'accountId',
|
|
508
|
+
'Required parameter "accountId" was null or undefined when calling updateAccountSettings().'
|
|
509
|
+
);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
if (requestParameters['adminAccountSettingsInput'] == null) {
|
|
513
|
+
throw new runtime.RequiredError(
|
|
514
|
+
'adminAccountSettingsInput',
|
|
515
|
+
'Required parameter "adminAccountSettingsInput" was null or undefined when calling updateAccountSettings().'
|
|
516
|
+
);
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
const queryParameters: any = {};
|
|
520
|
+
|
|
521
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
522
|
+
|
|
523
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
524
|
+
|
|
525
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
526
|
+
const token = this.configuration.accessToken;
|
|
527
|
+
const tokenString = await token("bearer", []);
|
|
528
|
+
|
|
529
|
+
if (tokenString) {
|
|
530
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
const response = await this.request({
|
|
534
|
+
path: `/admin/accounts/{accountId}/settings`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
535
|
+
method: 'PATCH',
|
|
536
|
+
headers: headerParameters,
|
|
537
|
+
query: queryParameters,
|
|
538
|
+
body: AdminAccountSettingsInputToJSON(requestParameters['adminAccountSettingsInput']),
|
|
539
|
+
}, initOverrides);
|
|
540
|
+
|
|
541
|
+
return new runtime.VoidApiResponse(response);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
*
|
|
546
|
+
*/
|
|
547
|
+
async updateAccountSettings(requestParameters: AdminApiUpdateAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
548
|
+
await this.updateAccountSettingsRaw(requestParameters, initOverrides);
|
|
549
|
+
}
|
|
550
|
+
|
|
442
551
|
}
|
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -30,6 +30,7 @@ import type {
|
|
|
30
30
|
PutBuyerLeadOfferInput,
|
|
31
31
|
SetDomainTransferConfirmationInput,
|
|
32
32
|
StoreBuyerLocaleInput,
|
|
33
|
+
ThrottlerException,
|
|
33
34
|
ValidationException,
|
|
34
35
|
} from '../models/index';
|
|
35
36
|
import {
|
|
@@ -63,6 +64,8 @@ import {
|
|
|
63
64
|
SetDomainTransferConfirmationInputToJSON,
|
|
64
65
|
StoreBuyerLocaleInputFromJSON,
|
|
65
66
|
StoreBuyerLocaleInputToJSON,
|
|
67
|
+
ThrottlerExceptionFromJSON,
|
|
68
|
+
ThrottlerExceptionToJSON,
|
|
66
69
|
ValidationExceptionFromJSON,
|
|
67
70
|
ValidationExceptionToJSON,
|
|
68
71
|
} from '../models/index';
|
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
LoginDto,
|
|
19
19
|
LoginInput,
|
|
20
20
|
RequestAccessTokenInput,
|
|
21
|
+
ThrottlerException,
|
|
21
22
|
ValidationException,
|
|
22
23
|
} from '../models/index';
|
|
23
24
|
import {
|
|
@@ -27,6 +28,8 @@ import {
|
|
|
27
28
|
LoginInputToJSON,
|
|
28
29
|
RequestAccessTokenInputFromJSON,
|
|
29
30
|
RequestAccessTokenInputToJSON,
|
|
31
|
+
ThrottlerExceptionFromJSON,
|
|
32
|
+
ThrottlerExceptionToJSON,
|
|
30
33
|
ValidationExceptionFromJSON,
|
|
31
34
|
ValidationExceptionToJSON,
|
|
32
35
|
} from '../models/index';
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -20,9 +20,10 @@ import type {
|
|
|
20
20
|
DomainDto,
|
|
21
21
|
GetAllDomainTransfers200Response,
|
|
22
22
|
IntersectionDomainDtoWithHijackerDtoWithAccountDto,
|
|
23
|
-
|
|
23
|
+
List200Response1,
|
|
24
24
|
NotFoundException,
|
|
25
25
|
SellerDomainTransferDto,
|
|
26
|
+
ThrottlerException,
|
|
26
27
|
UpdateDomainInput,
|
|
27
28
|
UpdateDomainTransferAuthCodeInput,
|
|
28
29
|
ValidationException,
|
|
@@ -38,12 +39,14 @@ import {
|
|
|
38
39
|
GetAllDomainTransfers200ResponseToJSON,
|
|
39
40
|
IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON,
|
|
40
41
|
IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON,
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
List200Response1FromJSON,
|
|
43
|
+
List200Response1ToJSON,
|
|
43
44
|
NotFoundExceptionFromJSON,
|
|
44
45
|
NotFoundExceptionToJSON,
|
|
45
46
|
SellerDomainTransferDtoFromJSON,
|
|
46
47
|
SellerDomainTransferDtoToJSON,
|
|
48
|
+
ThrottlerExceptionFromJSON,
|
|
49
|
+
ThrottlerExceptionToJSON,
|
|
47
50
|
UpdateDomainInputFromJSON,
|
|
48
51
|
UpdateDomainInputToJSON,
|
|
49
52
|
UpdateDomainTransferAuthCodeInputFromJSON,
|
|
@@ -425,7 +428,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
425
428
|
/**
|
|
426
429
|
*
|
|
427
430
|
*/
|
|
428
|
-
async listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
431
|
+
async listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response1>> {
|
|
429
432
|
const queryParameters: any = {};
|
|
430
433
|
|
|
431
434
|
if (requestParameters['filter'] != null) {
|
|
@@ -461,13 +464,13 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
461
464
|
query: queryParameters,
|
|
462
465
|
}, initOverrides);
|
|
463
466
|
|
|
464
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
467
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => List200Response1FromJSON(jsonValue));
|
|
465
468
|
}
|
|
466
469
|
|
|
467
470
|
/**
|
|
468
471
|
*
|
|
469
472
|
*/
|
|
470
|
-
async list(requestParameters: DomainsApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
473
|
+
async list(requestParameters: DomainsApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response1> {
|
|
471
474
|
const response = await this.listRaw(requestParameters, initOverrides);
|
|
472
475
|
return await response.value();
|
|
473
476
|
}
|
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
IntersectionDomainSalesInformationDtoWithDomainStatsDto,
|
|
19
19
|
NotFoundException,
|
|
20
|
+
ThrottlerException,
|
|
20
21
|
ValidationException,
|
|
21
22
|
} from '../models/index';
|
|
22
23
|
import {
|
|
@@ -24,6 +25,8 @@ import {
|
|
|
24
25
|
IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON,
|
|
25
26
|
NotFoundExceptionFromJSON,
|
|
26
27
|
NotFoundExceptionToJSON,
|
|
28
|
+
ThrottlerExceptionFromJSON,
|
|
29
|
+
ThrottlerExceptionToJSON,
|
|
27
30
|
ValidationExceptionFromJSON,
|
|
28
31
|
ValidationExceptionToJSON,
|
|
29
32
|
} from '../models/index';
|
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -19,10 +19,11 @@ import type {
|
|
|
19
19
|
BatchReadSellerLeadMessageInput,
|
|
20
20
|
CreateLeadMessageInput,
|
|
21
21
|
IntersectionLeadDtoWithLeadDetailsDto,
|
|
22
|
-
|
|
22
|
+
List200Response,
|
|
23
23
|
ListLeadMessagesDto,
|
|
24
24
|
ObjectId,
|
|
25
25
|
PutLeadOfferInput,
|
|
26
|
+
ThrottlerException,
|
|
26
27
|
ValidationException,
|
|
27
28
|
} from '../models/index';
|
|
28
29
|
import {
|
|
@@ -34,14 +35,16 @@ import {
|
|
|
34
35
|
CreateLeadMessageInputToJSON,
|
|
35
36
|
IntersectionLeadDtoWithLeadDetailsDtoFromJSON,
|
|
36
37
|
IntersectionLeadDtoWithLeadDetailsDtoToJSON,
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
List200ResponseFromJSON,
|
|
39
|
+
List200ResponseToJSON,
|
|
39
40
|
ListLeadMessagesDtoFromJSON,
|
|
40
41
|
ListLeadMessagesDtoToJSON,
|
|
41
42
|
ObjectIdFromJSON,
|
|
42
43
|
ObjectIdToJSON,
|
|
43
44
|
PutLeadOfferInputFromJSON,
|
|
44
45
|
PutLeadOfferInputToJSON,
|
|
46
|
+
ThrottlerExceptionFromJSON,
|
|
47
|
+
ThrottlerExceptionToJSON,
|
|
45
48
|
ValidationExceptionFromJSON,
|
|
46
49
|
ValidationExceptionToJSON,
|
|
47
50
|
} from '../models/index';
|
|
@@ -311,7 +314,7 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
311
314
|
/**
|
|
312
315
|
*
|
|
313
316
|
*/
|
|
314
|
-
async listRaw(requestParameters: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
317
|
+
async listRaw(requestParameters: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response>> {
|
|
315
318
|
const queryParameters: any = {};
|
|
316
319
|
|
|
317
320
|
if (requestParameters['filter'] != null) {
|
|
@@ -347,13 +350,13 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
347
350
|
query: queryParameters,
|
|
348
351
|
}, initOverrides);
|
|
349
352
|
|
|
350
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
353
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => List200ResponseFromJSON(jsonValue));
|
|
351
354
|
}
|
|
352
355
|
|
|
353
356
|
/**
|
|
354
357
|
*
|
|
355
358
|
*/
|
|
356
|
-
async list(requestParameters: LeadsApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
359
|
+
async list(requestParameters: LeadsApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response> {
|
|
357
360
|
const response = await this.listRaw(requestParameters, initOverrides);
|
|
358
361
|
return await response.value();
|
|
359
362
|
}
|
|
@@ -21,6 +21,7 @@ import type {
|
|
|
21
21
|
NotFoundException,
|
|
22
22
|
ObjectId,
|
|
23
23
|
PublicLeadDto,
|
|
24
|
+
ThrottlerException,
|
|
24
25
|
UpdateLeadInput,
|
|
25
26
|
ValidationException,
|
|
26
27
|
VerifyLeadInput,
|
|
@@ -38,6 +39,8 @@ import {
|
|
|
38
39
|
ObjectIdToJSON,
|
|
39
40
|
PublicLeadDtoFromJSON,
|
|
40
41
|
PublicLeadDtoToJSON,
|
|
42
|
+
ThrottlerExceptionFromJSON,
|
|
43
|
+
ThrottlerExceptionToJSON,
|
|
41
44
|
UpdateLeadInputFromJSON,
|
|
42
45
|
UpdateLeadInputToJSON,
|
|
43
46
|
ValidationExceptionFromJSON,
|
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
NotFoundException,
|
|
21
21
|
ObjectId,
|
|
22
22
|
OrderDto,
|
|
23
|
+
ThrottlerException,
|
|
23
24
|
UpdateOrderInput,
|
|
24
25
|
ValidationException,
|
|
25
26
|
} from '../models/index';
|
|
@@ -34,6 +35,8 @@ import {
|
|
|
34
35
|
ObjectIdToJSON,
|
|
35
36
|
OrderDtoFromJSON,
|
|
36
37
|
OrderDtoToJSON,
|
|
38
|
+
ThrottlerExceptionFromJSON,
|
|
39
|
+
ThrottlerExceptionToJSON,
|
|
37
40
|
UpdateOrderInputFromJSON,
|
|
38
41
|
UpdateOrderInputToJSON,
|
|
39
42
|
ValidationExceptionFromJSON,
|
|
@@ -15,9 +15,12 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ThrottlerException,
|
|
18
19
|
ValidationException,
|
|
19
20
|
} from '../models/index';
|
|
20
21
|
import {
|
|
22
|
+
ThrottlerExceptionFromJSON,
|
|
23
|
+
ThrottlerExceptionToJSON,
|
|
21
24
|
ValidationExceptionFromJSON,
|
|
22
25
|
ValidationExceptionToJSON,
|
|
23
26
|
} from '../models/index';
|
package/src/apis/UsersApi.ts
CHANGED
|
@@ -16,11 +16,14 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
StoreUserLocaleInput,
|
|
19
|
+
ThrottlerException,
|
|
19
20
|
ValidationException,
|
|
20
21
|
} from '../models/index';
|
|
21
22
|
import {
|
|
22
23
|
StoreUserLocaleInputFromJSON,
|
|
23
24
|
StoreUserLocaleInputToJSON,
|
|
25
|
+
ThrottlerExceptionFromJSON,
|
|
26
|
+
ThrottlerExceptionToJSON,
|
|
24
27
|
ValidationExceptionFromJSON,
|
|
25
28
|
ValidationExceptionToJSON,
|
|
26
29
|
} from '../models/index';
|
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
LoginInput,
|
|
21
21
|
NotFoundException,
|
|
22
22
|
SetNewPasswordInput,
|
|
23
|
+
ThrottlerException,
|
|
23
24
|
UserPasswordResetDto,
|
|
24
25
|
ValidationException,
|
|
25
26
|
} from '../models/index';
|
|
@@ -34,6 +35,8 @@ import {
|
|
|
34
35
|
NotFoundExceptionToJSON,
|
|
35
36
|
SetNewPasswordInputFromJSON,
|
|
36
37
|
SetNewPasswordInputToJSON,
|
|
38
|
+
ThrottlerExceptionFromJSON,
|
|
39
|
+
ThrottlerExceptionToJSON,
|
|
37
40
|
UserPasswordResetDtoFromJSON,
|
|
38
41
|
UserPasswordResetDtoToJSON,
|
|
39
42
|
ValidationExceptionFromJSON,
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
import type { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
} from './MoneyDto';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface AccountSettingsDto
|
|
27
|
+
*/
|
|
28
|
+
export interface AccountSettingsDto {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {MoneyDto}
|
|
32
|
+
* @memberof AccountSettingsDto
|
|
33
|
+
*/
|
|
34
|
+
defaultStartingOffer: MoneyDto;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {MoneyDto}
|
|
38
|
+
* @memberof AccountSettingsDto
|
|
39
|
+
*/
|
|
40
|
+
minBuyNow: MoneyDto;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof AccountSettingsDto
|
|
45
|
+
*/
|
|
46
|
+
defaultCurrencyCode: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {boolean}
|
|
50
|
+
* @memberof AccountSettingsDto
|
|
51
|
+
*/
|
|
52
|
+
automaticPayouts: boolean;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the AccountSettingsDto interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfAccountSettingsDto(value: object): value is AccountSettingsDto {
|
|
59
|
+
if (!('defaultStartingOffer' in value) || value['defaultStartingOffer'] === undefined) return false;
|
|
60
|
+
if (!('minBuyNow' in value) || value['minBuyNow'] === undefined) return false;
|
|
61
|
+
if (!('defaultCurrencyCode' in value) || value['defaultCurrencyCode'] === undefined) return false;
|
|
62
|
+
if (!('automaticPayouts' in value) || value['automaticPayouts'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function AccountSettingsDtoFromJSON(json: any): AccountSettingsDto {
|
|
67
|
+
return AccountSettingsDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function AccountSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsDto {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'defaultStartingOffer': MoneyDtoFromJSON(json['defaultStartingOffer']),
|
|
77
|
+
'minBuyNow': MoneyDtoFromJSON(json['minBuyNow']),
|
|
78
|
+
'defaultCurrencyCode': json['defaultCurrencyCode'],
|
|
79
|
+
'automaticPayouts': json['automaticPayouts'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function AccountSettingsDtoToJSON(value?: AccountSettingsDto | null): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'defaultStartingOffer': MoneyDtoToJSON(value['defaultStartingOffer']),
|
|
90
|
+
'minBuyNow': MoneyDtoToJSON(value['minBuyNow']),
|
|
91
|
+
'defaultCurrencyCode': value['defaultCurrencyCode'],
|
|
92
|
+
'automaticPayouts': value['automaticPayouts'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|