@randock/nameshift-api-client 0.0.331 → 0.0.332
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 +20 -0
- package/README.md +3 -3
- package/dist/apis/AuctionsPublicApi.d.ts +29 -0
- package/dist/apis/AuctionsPublicApi.js +124 -0
- package/dist/apis/BuyersApi.d.ts +54 -1
- package/dist/apis/BuyersApi.js +267 -0
- package/dist/apis/BuyersPublicApi.d.ts +23 -1
- package/dist/apis/BuyersPublicApi.js +90 -0
- package/dist/apis/DomainsApi.d.ts +13 -1
- package/dist/apis/DomainsApi.js +56 -0
- package/dist/apis/LeadsApi.d.ts +2 -5
- package/dist/apis/LeadsApi.js +4 -8
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AuctionBidDto.d.ts +51 -0
- package/dist/models/AuctionBidDto.js +64 -0
- package/dist/models/AuctionBidInput.d.ts +32 -0
- package/dist/models/AuctionBidInput.js +51 -0
- package/dist/models/AuctionBuyerDto.d.ts +74 -0
- package/dist/models/AuctionBuyerDto.js +79 -0
- package/dist/models/AuctionBuyerWithTokenDto.d.ts +39 -0
- package/dist/models/AuctionBuyerWithTokenDto.js +56 -0
- package/dist/models/AuctionDto.d.ts +82 -0
- package/dist/models/AuctionDto.js +85 -0
- package/dist/models/BuyerLeadListItemDto.d.ts +23 -0
- package/dist/models/BuyerLeadListItemDto.js +19 -1
- package/dist/models/DomainAuctionDto.d.ts +63 -0
- package/dist/models/DomainAuctionDto.js +72 -0
- package/dist/models/DomainSalesInformationDto.d.ts +12 -0
- package/dist/models/DomainSalesInformationDto.js +8 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +5 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +5 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +36 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +28 -1
- package/dist/models/LeadDto.d.ts +43 -0
- package/dist/models/LeadDto.js +33 -1
- package/dist/models/LeadLeaseToOwnConfigurationDto.d.ts +50 -0
- package/dist/models/LeadLeaseToOwnConfigurationDto.js +63 -0
- package/dist/models/LeadMessageData.d.ts +7 -0
- package/dist/models/LeadMessageData.js +5 -0
- package/dist/models/LeadMessageDataLeaseToOwn.d.ts +38 -0
- package/dist/models/LeadMessageDataLeaseToOwn.js +55 -0
- package/dist/models/LeadMessageDto.d.ts +16 -0
- package/dist/models/LeadMessageDto.js +14 -1
- package/dist/models/LeadOfferDto.d.ts +72 -0
- package/dist/models/LeadOfferDto.js +84 -0
- package/dist/models/LeadRentConfigurationDto.d.ts +38 -0
- package/dist/models/LeadRentConfigurationDto.js +55 -0
- package/dist/models/ListLeadsResultItem.d.ts +43 -0
- package/dist/models/ListLeadsResultItem.js +33 -1
- package/dist/models/ManualLeadLeaseToOwnDto.d.ts +12 -0
- package/dist/models/ManualLeadLeaseToOwnDto.js +8 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/PutBuyerLeadOfferInput.d.ts +22 -0
- package/dist/models/PutBuyerLeadOfferInput.js +14 -0
- package/dist/models/PutLeadOfferInput.d.ts +23 -1
- package/dist/models/PutLeadOfferInput.js +15 -3
- package/dist/models/RegisterAuctionBuyerPhoneInput.d.ts +47 -0
- package/dist/models/RegisterAuctionBuyerPhoneInput.js +64 -0
- package/dist/models/RegisterInput.d.ts +38 -0
- package/dist/models/RegisterInput.js +55 -0
- package/dist/models/RequestEmailOtpInput.d.ts +38 -0
- package/dist/models/RequestEmailOtpInput.js +55 -0
- package/dist/models/SellerLeadDetails.d.ts +43 -0
- package/dist/models/SellerLeadDetails.js +33 -1
- package/dist/models/StartAuctionInput.d.ts +51 -0
- package/dist/models/StartAuctionInput.js +62 -0
- package/dist/models/TaskListLeadDto.d.ts +43 -0
- package/dist/models/TaskListLeadDto.js +33 -1
- package/dist/models/TaskListLeadLeaseToOwnConfigurationDto.d.ts +50 -0
- package/dist/models/TaskListLeadLeaseToOwnConfigurationDto.js +63 -0
- package/dist/models/TaskListLeadOfferDto.d.ts +72 -0
- package/dist/models/TaskListLeadOfferDto.js +84 -0
- package/dist/models/TaskListLeadRentConfigurationDto.d.ts +38 -0
- package/dist/models/TaskListLeadRentConfigurationDto.js +55 -0
- package/dist/models/VerifyEmailOtpInput.d.ts +38 -0
- package/dist/models/VerifyEmailOtpInput.js +55 -0
- package/dist/models/VerifyPhoneOtpInput.d.ts +32 -0
- package/dist/models/VerifyPhoneOtpInput.js +51 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +19 -0
- package/package.json +1 -1
- package/src/apis/AuctionsPublicApi.ts +67 -0
- package/src/apis/BuyersApi.ts +249 -0
- package/src/apis/BuyersPublicApi.ts +88 -0
- package/src/apis/DomainsApi.ts +58 -0
- package/src/apis/LeadsApi.ts +3 -11
- package/src/apis/index.ts +1 -0
- package/src/models/AuctionBidDto.ts +101 -0
- package/src/models/AuctionBidInput.ts +66 -0
- package/src/models/AuctionBuyerDto.ts +129 -0
- package/src/models/AuctionBuyerWithTokenDto.ts +83 -0
- package/src/models/AuctionDto.ts +153 -0
- package/src/models/BuyerLeadListItemDto.ts +36 -0
- package/src/models/DomainAuctionDto.ts +119 -0
- package/src/models/DomainSalesInformationDto.ts +18 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +16 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
- package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +16 -0
- package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +61 -0
- package/src/models/LeadDto.ts +77 -0
- package/src/models/LeadLeaseToOwnConfigurationDto.ts +93 -0
- package/src/models/LeadMessageData.ts +16 -0
- package/src/models/LeadMessageDataLeaseToOwn.ts +75 -0
- package/src/models/LeadMessageDto.ts +20 -0
- package/src/models/LeadOfferDto.ts +132 -0
- package/src/models/LeadRentConfigurationDto.ts +75 -0
- package/src/models/ListLeadsResultItem.ts +77 -0
- package/src/models/ManualLeadLeaseToOwnDto.ts +18 -0
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/PutBuyerLeadOfferInput.ts +29 -0
- package/src/models/PutLeadOfferInput.ts +31 -3
- package/src/models/RegisterAuctionBuyerPhoneInput.ts +87 -0
- package/src/models/RegisterInput.ts +75 -0
- package/src/models/RequestEmailOtpInput.ts +75 -0
- package/src/models/SellerLeadDetails.ts +77 -0
- package/src/models/StartAuctionInput.ts +100 -0
- package/src/models/TaskListLeadDto.ts +77 -0
- package/src/models/TaskListLeadLeaseToOwnConfigurationDto.ts +93 -0
- package/src/models/TaskListLeadOfferDto.ts +132 -0
- package/src/models/TaskListLeadRentConfigurationDto.ts +75 -0
- package/src/models/VerifyEmailOtpInput.ts +75 -0
- package/src/models/VerifyPhoneOtpInput.ts +66 -0
- package/src/models/index.ts +19 -0
|
@@ -15,20 +15,29 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AuctionBuyerWithTokenDto,
|
|
18
19
|
LoginDto,
|
|
19
20
|
LoginInput,
|
|
20
21
|
RequestAccessTokenInput,
|
|
22
|
+
RequestEmailOtpInput,
|
|
21
23
|
ValidationException,
|
|
24
|
+
VerifyEmailOtpInput,
|
|
22
25
|
} from '../models/index';
|
|
23
26
|
import {
|
|
27
|
+
AuctionBuyerWithTokenDtoFromJSON,
|
|
28
|
+
AuctionBuyerWithTokenDtoToJSON,
|
|
24
29
|
LoginDtoFromJSON,
|
|
25
30
|
LoginDtoToJSON,
|
|
26
31
|
LoginInputFromJSON,
|
|
27
32
|
LoginInputToJSON,
|
|
28
33
|
RequestAccessTokenInputFromJSON,
|
|
29
34
|
RequestAccessTokenInputToJSON,
|
|
35
|
+
RequestEmailOtpInputFromJSON,
|
|
36
|
+
RequestEmailOtpInputToJSON,
|
|
30
37
|
ValidationExceptionFromJSON,
|
|
31
38
|
ValidationExceptionToJSON,
|
|
39
|
+
VerifyEmailOtpInputFromJSON,
|
|
40
|
+
VerifyEmailOtpInputToJSON,
|
|
32
41
|
} from '../models/index';
|
|
33
42
|
|
|
34
43
|
export interface BuyersPublicApiBuyerLoginRequest {
|
|
@@ -39,6 +48,14 @@ export interface BuyersPublicApiRequestAccessTokenRequest {
|
|
|
39
48
|
requestAccessTokenInput: RequestAccessTokenInput;
|
|
40
49
|
}
|
|
41
50
|
|
|
51
|
+
export interface BuyersPublicApiRequestEmailOtpRequest {
|
|
52
|
+
requestEmailOtpInput: RequestEmailOtpInput;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface BuyersPublicApiVerifyEmailOtpRequest {
|
|
56
|
+
verifyEmailOtpInput: VerifyEmailOtpInput;
|
|
57
|
+
}
|
|
58
|
+
|
|
42
59
|
/**
|
|
43
60
|
*
|
|
44
61
|
*/
|
|
@@ -115,4 +132,75 @@ export class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
115
132
|
await this.requestAccessTokenRaw(requestParameters, initOverrides);
|
|
116
133
|
}
|
|
117
134
|
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
async requestEmailOtpRaw(requestParameters: BuyersPublicApiRequestEmailOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
139
|
+
if (requestParameters['requestEmailOtpInput'] == null) {
|
|
140
|
+
throw new runtime.RequiredError(
|
|
141
|
+
'requestEmailOtpInput',
|
|
142
|
+
'Required parameter "requestEmailOtpInput" was null or undefined when calling requestEmailOtp().'
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
const queryParameters: any = {};
|
|
147
|
+
|
|
148
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
149
|
+
|
|
150
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
151
|
+
|
|
152
|
+
const response = await this.request({
|
|
153
|
+
path: `/buyers/auction/request-email-otp`,
|
|
154
|
+
method: 'POST',
|
|
155
|
+
headers: headerParameters,
|
|
156
|
+
query: queryParameters,
|
|
157
|
+
body: RequestEmailOtpInputToJSON(requestParameters['requestEmailOtpInput']),
|
|
158
|
+
}, initOverrides);
|
|
159
|
+
|
|
160
|
+
return new runtime.VoidApiResponse(response);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
*/
|
|
166
|
+
async requestEmailOtp(requestParameters: BuyersPublicApiRequestEmailOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
167
|
+
await this.requestEmailOtpRaw(requestParameters, initOverrides);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
*/
|
|
173
|
+
async verifyEmailOtpRaw(requestParameters: BuyersPublicApiVerifyEmailOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuctionBuyerWithTokenDto>> {
|
|
174
|
+
if (requestParameters['verifyEmailOtpInput'] == null) {
|
|
175
|
+
throw new runtime.RequiredError(
|
|
176
|
+
'verifyEmailOtpInput',
|
|
177
|
+
'Required parameter "verifyEmailOtpInput" was null or undefined when calling verifyEmailOtp().'
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
const queryParameters: any = {};
|
|
182
|
+
|
|
183
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
184
|
+
|
|
185
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
186
|
+
|
|
187
|
+
const response = await this.request({
|
|
188
|
+
path: `/buyers/auction/verify-email-otp`,
|
|
189
|
+
method: 'POST',
|
|
190
|
+
headers: headerParameters,
|
|
191
|
+
query: queryParameters,
|
|
192
|
+
body: VerifyEmailOtpInputToJSON(requestParameters['verifyEmailOtpInput']),
|
|
193
|
+
}, initOverrides);
|
|
194
|
+
|
|
195
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AuctionBuyerWithTokenDtoFromJSON(jsonValue));
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
*/
|
|
201
|
+
async verifyEmailOtp(requestParameters: BuyersPublicApiVerifyEmailOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuctionBuyerWithTokenDto> {
|
|
202
|
+
const response = await this.verifyEmailOtpRaw(requestParameters, initOverrides);
|
|
203
|
+
return await response.value();
|
|
204
|
+
}
|
|
205
|
+
|
|
118
206
|
}
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -29,6 +29,7 @@ import type {
|
|
|
29
29
|
NotFoundException,
|
|
30
30
|
SellerDomainAffiliateCommissionDto,
|
|
31
31
|
SellerDomainTransferDto,
|
|
32
|
+
StartAuctionInput,
|
|
32
33
|
UpdateDomainInput,
|
|
33
34
|
UpdateDomainTransferAuthCodeInput,
|
|
34
35
|
UpdateDomainTransferIpsTagInput,
|
|
@@ -63,6 +64,8 @@ import {
|
|
|
63
64
|
SellerDomainAffiliateCommissionDtoToJSON,
|
|
64
65
|
SellerDomainTransferDtoFromJSON,
|
|
65
66
|
SellerDomainTransferDtoToJSON,
|
|
67
|
+
StartAuctionInputFromJSON,
|
|
68
|
+
StartAuctionInputToJSON,
|
|
66
69
|
UpdateDomainInputFromJSON,
|
|
67
70
|
UpdateDomainInputToJSON,
|
|
68
71
|
UpdateDomainTransferAuthCodeInputFromJSON,
|
|
@@ -137,6 +140,11 @@ export interface DomainsApiListRequest {
|
|
|
137
140
|
sortBy?: Array<string>;
|
|
138
141
|
}
|
|
139
142
|
|
|
143
|
+
export interface DomainsApiStartAuctionRequest {
|
|
144
|
+
domainId: string;
|
|
145
|
+
startAuctionInput: StartAuctionInput;
|
|
146
|
+
}
|
|
147
|
+
|
|
140
148
|
export interface DomainsApiUpdateRequest {
|
|
141
149
|
domainId: string;
|
|
142
150
|
updateDomainInput: UpdateDomainInput;
|
|
@@ -857,6 +865,56 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
857
865
|
return await response.value();
|
|
858
866
|
}
|
|
859
867
|
|
|
868
|
+
/**
|
|
869
|
+
*
|
|
870
|
+
*/
|
|
871
|
+
async startAuctionRaw(requestParameters: DomainsApiStartAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
872
|
+
if (requestParameters['domainId'] == null) {
|
|
873
|
+
throw new runtime.RequiredError(
|
|
874
|
+
'domainId',
|
|
875
|
+
'Required parameter "domainId" was null or undefined when calling startAuction().'
|
|
876
|
+
);
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
if (requestParameters['startAuctionInput'] == null) {
|
|
880
|
+
throw new runtime.RequiredError(
|
|
881
|
+
'startAuctionInput',
|
|
882
|
+
'Required parameter "startAuctionInput" was null or undefined when calling startAuction().'
|
|
883
|
+
);
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
const queryParameters: any = {};
|
|
887
|
+
|
|
888
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
889
|
+
|
|
890
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
891
|
+
|
|
892
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
893
|
+
const token = this.configuration.accessToken;
|
|
894
|
+
const tokenString = await token("bearer", []);
|
|
895
|
+
|
|
896
|
+
if (tokenString) {
|
|
897
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
const response = await this.request({
|
|
901
|
+
path: `/private/domains/{domainId}/start-auction`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
|
|
902
|
+
method: 'POST',
|
|
903
|
+
headers: headerParameters,
|
|
904
|
+
query: queryParameters,
|
|
905
|
+
body: StartAuctionInputToJSON(requestParameters['startAuctionInput']),
|
|
906
|
+
}, initOverrides);
|
|
907
|
+
|
|
908
|
+
return new runtime.VoidApiResponse(response);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
*
|
|
913
|
+
*/
|
|
914
|
+
async startAuction(requestParameters: DomainsApiStartAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
915
|
+
await this.startAuctionRaw(requestParameters, initOverrides);
|
|
916
|
+
}
|
|
917
|
+
|
|
860
918
|
/**
|
|
861
919
|
*
|
|
862
920
|
*/
|
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -84,10 +84,6 @@ export interface LeadsApiGetLeadRequest {
|
|
|
84
84
|
leadId: string;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
export interface LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest {
|
|
88
|
-
date?: string;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
87
|
export interface LeadsApiGetManualLeadRequest {
|
|
92
88
|
leadId: string;
|
|
93
89
|
}
|
|
@@ -398,13 +394,9 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
398
394
|
/**
|
|
399
395
|
*
|
|
400
396
|
*/
|
|
401
|
-
async getLeadLeaseToOwnConfigurationPresetsRaw(
|
|
397
|
+
async getLeadLeaseToOwnConfigurationPresetsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadLeaseToOwnAndRentConfigurationPresetsDto>> {
|
|
402
398
|
const queryParameters: any = {};
|
|
403
399
|
|
|
404
|
-
if (requestParameters['date'] != null) {
|
|
405
|
-
queryParameters['date'] = requestParameters['date'];
|
|
406
|
-
}
|
|
407
|
-
|
|
408
400
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
409
401
|
|
|
410
402
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -428,8 +420,8 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
428
420
|
/**
|
|
429
421
|
*
|
|
430
422
|
*/
|
|
431
|
-
async getLeadLeaseToOwnConfigurationPresets(
|
|
432
|
-
const response = await this.getLeadLeaseToOwnConfigurationPresetsRaw(
|
|
423
|
+
async getLeadLeaseToOwnConfigurationPresets(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadLeaseToOwnAndRentConfigurationPresetsDto> {
|
|
424
|
+
const response = await this.getLeadLeaseToOwnConfigurationPresetsRaw(initOverrides);
|
|
433
425
|
return await response.value();
|
|
434
426
|
}
|
|
435
427
|
|
package/src/apis/index.ts
CHANGED
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
MoneyDtoToJSONTyped,
|
|
22
|
+
} from './MoneyDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AuctionBidDto
|
|
28
|
+
*/
|
|
29
|
+
export interface AuctionBidDto {
|
|
30
|
+
/**
|
|
31
|
+
* Auction Bid Id
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AuctionBidDto
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Auction Bid amount
|
|
38
|
+
* @type {MoneyDto}
|
|
39
|
+
* @memberof AuctionBidDto
|
|
40
|
+
*/
|
|
41
|
+
amount: MoneyDto;
|
|
42
|
+
/**
|
|
43
|
+
* Auction Bidder's nickname
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AuctionBidDto
|
|
46
|
+
*/
|
|
47
|
+
nickname: string;
|
|
48
|
+
/**
|
|
49
|
+
* Auction Bid createdAt
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof AuctionBidDto
|
|
52
|
+
*/
|
|
53
|
+
createdAt: Date;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the AuctionBidDto interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfAuctionBidDto(value: object): value is AuctionBidDto {
|
|
60
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
61
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
62
|
+
if (!('nickname' in value) || value['nickname'] === undefined) return false;
|
|
63
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function AuctionBidDtoFromJSON(json: any): AuctionBidDto {
|
|
68
|
+
return AuctionBidDtoFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function AuctionBidDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionBidDto {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'id': json['id'],
|
|
78
|
+
'amount': MoneyDtoFromJSON(json['amount']),
|
|
79
|
+
'nickname': json['nickname'],
|
|
80
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function AuctionBidDtoToJSON(json: any): AuctionBidDto {
|
|
85
|
+
return AuctionBidDtoToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function AuctionBidDtoToJSONTyped(value?: AuctionBidDto | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'amount': MoneyDtoToJSON(value['amount']),
|
|
97
|
+
'nickname': value['nickname'],
|
|
98
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -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 AuctionBidInput
|
|
20
|
+
*/
|
|
21
|
+
export interface AuctionBidInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AuctionBidInput
|
|
26
|
+
*/
|
|
27
|
+
amount: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AuctionBidInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAuctionBidInput(value: object): value is AuctionBidInput {
|
|
34
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AuctionBidInputFromJSON(json: any): AuctionBidInput {
|
|
39
|
+
return AuctionBidInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AuctionBidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionBidInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'amount': json['amount'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AuctionBidInputToJSON(json: any): AuctionBidInput {
|
|
53
|
+
return AuctionBidInputToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AuctionBidInputToJSONTyped(value?: AuctionBidInput | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'amount': value['amount'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,129 @@
|
|
|
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 AuctionBuyerDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AuctionBuyerDto {
|
|
22
|
+
/**
|
|
23
|
+
* Auction Buyer Id
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AuctionBuyerDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Buyer Id
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AuctionBuyerDto
|
|
32
|
+
*/
|
|
33
|
+
buyerId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Auction buyer firstname
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AuctionBuyerDto
|
|
38
|
+
*/
|
|
39
|
+
firstname: string;
|
|
40
|
+
/**
|
|
41
|
+
* Auction buyer lastname
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AuctionBuyerDto
|
|
44
|
+
*/
|
|
45
|
+
lastname: string;
|
|
46
|
+
/**
|
|
47
|
+
* Auction buyer phone number
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AuctionBuyerDto
|
|
50
|
+
*/
|
|
51
|
+
phone: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Auction buyer phone verified at
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof AuctionBuyerDto
|
|
56
|
+
*/
|
|
57
|
+
phoneVerifiedAt: Date | null;
|
|
58
|
+
/**
|
|
59
|
+
* Auction buyer KYC completed at
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof AuctionBuyerDto
|
|
62
|
+
*/
|
|
63
|
+
kycCompletedAt: Date | null;
|
|
64
|
+
/**
|
|
65
|
+
* Auction buyer creation date
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof AuctionBuyerDto
|
|
68
|
+
*/
|
|
69
|
+
createdAt: Date;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the AuctionBuyerDto interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfAuctionBuyerDto(value: object): value is AuctionBuyerDto {
|
|
76
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
77
|
+
if (!('buyerId' in value) || value['buyerId'] === undefined) return false;
|
|
78
|
+
if (!('firstname' in value) || value['firstname'] === undefined) return false;
|
|
79
|
+
if (!('lastname' in value) || value['lastname'] === undefined) return false;
|
|
80
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
81
|
+
if (!('phoneVerifiedAt' in value) || value['phoneVerifiedAt'] === undefined) return false;
|
|
82
|
+
if (!('kycCompletedAt' in value) || value['kycCompletedAt'] === undefined) return false;
|
|
83
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function AuctionBuyerDtoFromJSON(json: any): AuctionBuyerDto {
|
|
88
|
+
return AuctionBuyerDtoFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function AuctionBuyerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionBuyerDto {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'id': json['id'],
|
|
98
|
+
'buyerId': json['buyerId'],
|
|
99
|
+
'firstname': json['firstname'],
|
|
100
|
+
'lastname': json['lastname'],
|
|
101
|
+
'phone': json['phone'],
|
|
102
|
+
'phoneVerifiedAt': (json['phoneVerifiedAt'] == null ? null : new Date(json['phoneVerifiedAt'])),
|
|
103
|
+
'kycCompletedAt': (json['kycCompletedAt'] == null ? null : new Date(json['kycCompletedAt'])),
|
|
104
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function AuctionBuyerDtoToJSON(json: any): AuctionBuyerDto {
|
|
109
|
+
return AuctionBuyerDtoToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function AuctionBuyerDtoToJSONTyped(value?: AuctionBuyerDto | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'id': value['id'],
|
|
120
|
+
'buyerId': value['buyerId'],
|
|
121
|
+
'firstname': value['firstname'],
|
|
122
|
+
'lastname': value['lastname'],
|
|
123
|
+
'phone': value['phone'],
|
|
124
|
+
'phoneVerifiedAt': (value['phoneVerifiedAt'] == null ? null : (value['phoneVerifiedAt'] as any).toISOString()),
|
|
125
|
+
'kycCompletedAt': (value['kycCompletedAt'] == null ? null : (value['kycCompletedAt'] as any).toISOString()),
|
|
126
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
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 { AuctionBuyerDto } from './AuctionBuyerDto';
|
|
17
|
+
import {
|
|
18
|
+
AuctionBuyerDtoFromJSON,
|
|
19
|
+
AuctionBuyerDtoFromJSONTyped,
|
|
20
|
+
AuctionBuyerDtoToJSON,
|
|
21
|
+
AuctionBuyerDtoToJSONTyped,
|
|
22
|
+
} from './AuctionBuyerDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AuctionBuyerWithTokenDto
|
|
28
|
+
*/
|
|
29
|
+
export interface AuctionBuyerWithTokenDto {
|
|
30
|
+
/**
|
|
31
|
+
* Auction buyer token
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AuctionBuyerWithTokenDto
|
|
34
|
+
*/
|
|
35
|
+
token: string;
|
|
36
|
+
/**
|
|
37
|
+
* Auction buyer
|
|
38
|
+
* @type {AuctionBuyerDto}
|
|
39
|
+
* @memberof AuctionBuyerWithTokenDto
|
|
40
|
+
*/
|
|
41
|
+
auctionBuyer: AuctionBuyerDto | null;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the AuctionBuyerWithTokenDto interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfAuctionBuyerWithTokenDto(value: object): value is AuctionBuyerWithTokenDto {
|
|
48
|
+
if (!('token' in value) || value['token'] === undefined) return false;
|
|
49
|
+
if (!('auctionBuyer' in value) || value['auctionBuyer'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function AuctionBuyerWithTokenDtoFromJSON(json: any): AuctionBuyerWithTokenDto {
|
|
54
|
+
return AuctionBuyerWithTokenDtoFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function AuctionBuyerWithTokenDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionBuyerWithTokenDto {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'token': json['token'],
|
|
64
|
+
'auctionBuyer': AuctionBuyerDtoFromJSON(json['auctionBuyer']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function AuctionBuyerWithTokenDtoToJSON(json: any): AuctionBuyerWithTokenDto {
|
|
69
|
+
return AuctionBuyerWithTokenDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function AuctionBuyerWithTokenDtoToJSONTyped(value?: AuctionBuyerWithTokenDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'token': value['token'],
|
|
80
|
+
'auctionBuyer': AuctionBuyerDtoToJSON(value['auctionBuyer']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|