@randock/nameshift-api-client 0.0.336 → 0.0.337
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 +9 -0
- package/README.md +3 -3
- package/dist/apis/AuctionsApi.d.ts +32 -0
- package/dist/apis/AuctionsApi.js +143 -0
- package/dist/apis/BuyersApi.d.ts +15 -1
- package/dist/apis/BuyersApi.js +67 -4
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AuctionListItemDto.d.ts +8 -0
- package/dist/models/AuctionListItemDto.js +6 -0
- package/dist/models/BuyerAuctionListItemDto.d.ts +125 -0
- package/dist/models/BuyerAuctionListItemDto.js +118 -0
- package/dist/models/BuyerAuctionListItemDtoDomainInformation.d.ts +44 -0
- package/dist/models/BuyerAuctionListItemDtoDomainInformation.js +59 -0
- package/dist/models/BuyerAuctionListItemDtoSellerAccount.d.ts +50 -0
- package/dist/models/BuyerAuctionListItemDtoSellerAccount.js +63 -0
- package/dist/models/BuyerSessionDto.d.ts +6 -0
- package/dist/models/BuyerSessionDto.js +4 -0
- package/dist/models/GetAllAuctions200Response1.d.ts +47 -0
- package/dist/models/GetAllAuctions200Response1.js +62 -0
- package/dist/models/GetBuyerAuctions200Response.d.ts +47 -0
- package/dist/models/GetBuyerAuctions200Response.js +62 -0
- package/dist/models/SellerAuctionListItemDto.d.ts +119 -0
- package/dist/models/SellerAuctionListItemDto.js +114 -0
- package/dist/models/SellerAuctionListItemDtoDomainInformation.d.ts +44 -0
- package/dist/models/SellerAuctionListItemDtoDomainInformation.js +59 -0
- package/dist/models/SellerAuctionListItemDtoSellerAccount.d.ts +50 -0
- package/dist/models/SellerAuctionListItemDtoSellerAccount.js +63 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/AuctionsApi.ts +90 -0
- package/src/apis/BuyersApi.ts +64 -4
- package/src/apis/index.ts +1 -0
- package/src/models/AuctionListItemDto.ts +17 -0
- package/src/models/BuyerAuctionListItemDto.ts +226 -0
- package/src/models/BuyerAuctionListItemDtoDomainInformation.ts +84 -0
- package/src/models/BuyerAuctionListItemDtoSellerAccount.ts +93 -0
- package/src/models/BuyerSessionDto.ts +9 -0
- package/src/models/GetAllAuctions200Response1.ts +106 -0
- package/src/models/GetBuyerAuctions200Response.ts +106 -0
- package/src/models/SellerAuctionListItemDto.ts +217 -0
- package/src/models/SellerAuctionListItemDtoDomainInformation.ts +84 -0
- package/src/models/SellerAuctionListItemDtoSellerAccount.ts +93 -0
- package/src/models/index.ts +8 -0
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -28,6 +28,7 @@ import type {
|
|
|
28
28
|
BuyerSessionDto,
|
|
29
29
|
BuyerTaskDetailsDto,
|
|
30
30
|
CreateBuyerLeadMessageInput,
|
|
31
|
+
GetBuyerAuctions200Response,
|
|
31
32
|
GetBuyerInvoices200Response,
|
|
32
33
|
GetBuyerLeads200Response,
|
|
33
34
|
GetBuyerSubscriptions200Response,
|
|
@@ -77,6 +78,8 @@ import {
|
|
|
77
78
|
BuyerTaskDetailsDtoToJSON,
|
|
78
79
|
CreateBuyerLeadMessageInputFromJSON,
|
|
79
80
|
CreateBuyerLeadMessageInputToJSON,
|
|
81
|
+
GetBuyerAuctions200ResponseFromJSON,
|
|
82
|
+
GetBuyerAuctions200ResponseToJSON,
|
|
80
83
|
GetBuyerInvoices200ResponseFromJSON,
|
|
81
84
|
GetBuyerInvoices200ResponseToJSON,
|
|
82
85
|
GetBuyerLeads200ResponseFromJSON,
|
|
@@ -165,6 +168,13 @@ export interface BuyersApiDownloadBuyerNotificationAttachmentRequest {
|
|
|
165
168
|
attachmentId: string;
|
|
166
169
|
}
|
|
167
170
|
|
|
171
|
+
export interface BuyersApiGetBuyerAuctionsRequest {
|
|
172
|
+
filter?: object;
|
|
173
|
+
page?: number;
|
|
174
|
+
limit?: number;
|
|
175
|
+
sortBy?: Array<string>;
|
|
176
|
+
}
|
|
177
|
+
|
|
168
178
|
export interface BuyersApiGetBuyerInvoicesRequest {
|
|
169
179
|
filter?: object;
|
|
170
180
|
page?: number;
|
|
@@ -394,7 +404,7 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
394
404
|
}
|
|
395
405
|
}
|
|
396
406
|
const response = await this.request({
|
|
397
|
-
path: `/buyers/private/
|
|
407
|
+
path: `/buyers/private/auctions/{auctionId}/bid`.replace(`{${"auctionId"}}`, encodeURIComponent(String(requestParameters['auctionId']))),
|
|
398
408
|
method: 'POST',
|
|
399
409
|
headers: headerParameters,
|
|
400
410
|
query: queryParameters,
|
|
@@ -798,6 +808,56 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
798
808
|
return await response.value();
|
|
799
809
|
}
|
|
800
810
|
|
|
811
|
+
/**
|
|
812
|
+
*
|
|
813
|
+
*/
|
|
814
|
+
async getBuyerAuctionsRaw(requestParameters: BuyersApiGetBuyerAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetBuyerAuctions200Response>> {
|
|
815
|
+
const queryParameters: any = {};
|
|
816
|
+
|
|
817
|
+
if (requestParameters['filter'] != null) {
|
|
818
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
if (requestParameters['page'] != null) {
|
|
822
|
+
queryParameters['page'] = requestParameters['page'];
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
if (requestParameters['limit'] != null) {
|
|
826
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
if (requestParameters['sortBy'] != null) {
|
|
830
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
834
|
+
|
|
835
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
836
|
+
const token = this.configuration.accessToken;
|
|
837
|
+
const tokenString = await token("bearer", []);
|
|
838
|
+
|
|
839
|
+
if (tokenString) {
|
|
840
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
const response = await this.request({
|
|
844
|
+
path: `/buyers/private/auctions`,
|
|
845
|
+
method: 'GET',
|
|
846
|
+
headers: headerParameters,
|
|
847
|
+
query: queryParameters,
|
|
848
|
+
}, initOverrides);
|
|
849
|
+
|
|
850
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetBuyerAuctions200ResponseFromJSON(jsonValue));
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
*
|
|
855
|
+
*/
|
|
856
|
+
async getBuyerAuctions(requestParameters: BuyersApiGetBuyerAuctionsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerAuctions200Response> {
|
|
857
|
+
const response = await this.getBuyerAuctionsRaw(requestParameters, initOverrides);
|
|
858
|
+
return await response.value();
|
|
859
|
+
}
|
|
860
|
+
|
|
801
861
|
/**
|
|
802
862
|
*
|
|
803
863
|
*/
|
|
@@ -1447,7 +1507,7 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
1447
1507
|
}
|
|
1448
1508
|
}
|
|
1449
1509
|
const response = await this.request({
|
|
1450
|
-
path: `/buyers/private/
|
|
1510
|
+
path: `/buyers/private/auctions/register`,
|
|
1451
1511
|
method: 'POST',
|
|
1452
1512
|
headers: headerParameters,
|
|
1453
1513
|
query: queryParameters,
|
|
@@ -1490,7 +1550,7 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
1490
1550
|
}
|
|
1491
1551
|
}
|
|
1492
1552
|
const response = await this.request({
|
|
1493
|
-
path: `/buyers/private/
|
|
1553
|
+
path: `/buyers/private/auctions/register-phone`,
|
|
1494
1554
|
method: 'POST',
|
|
1495
1555
|
headers: headerParameters,
|
|
1496
1556
|
query: queryParameters,
|
|
@@ -1849,7 +1909,7 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
1849
1909
|
}
|
|
1850
1910
|
}
|
|
1851
1911
|
const response = await this.request({
|
|
1852
|
-
path: `/buyers/private/
|
|
1912
|
+
path: `/buyers/private/auctions/verify-phone-otp`,
|
|
1853
1913
|
method: 'POST',
|
|
1854
1914
|
headers: headerParameters,
|
|
1855
1915
|
query: queryParameters,
|
package/src/apis/index.ts
CHANGED
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AuctionBidDto } from './AuctionBidDto';
|
|
17
|
+
import {
|
|
18
|
+
AuctionBidDtoFromJSON,
|
|
19
|
+
AuctionBidDtoFromJSONTyped,
|
|
20
|
+
AuctionBidDtoToJSON,
|
|
21
|
+
AuctionBidDtoToJSONTyped,
|
|
22
|
+
} from './AuctionBidDto';
|
|
16
23
|
import type { AuctionListItemDtoDomainInformation } from './AuctionListItemDtoDomainInformation';
|
|
17
24
|
import {
|
|
18
25
|
AuctionListItemDtoDomainInformationFromJSON,
|
|
@@ -113,6 +120,12 @@ export interface AuctionListItemDto {
|
|
|
113
120
|
* @memberof AuctionListItemDto
|
|
114
121
|
*/
|
|
115
122
|
numberOfBids: number;
|
|
123
|
+
/**
|
|
124
|
+
* List of auction bids
|
|
125
|
+
* @type {Array<AuctionBidDto>}
|
|
126
|
+
* @memberof AuctionListItemDto
|
|
127
|
+
*/
|
|
128
|
+
bids: Array<AuctionBidDto>;
|
|
116
129
|
}
|
|
117
130
|
|
|
118
131
|
|
|
@@ -123,6 +136,7 @@ export const AuctionListItemDtoStatusEnum = {
|
|
|
123
136
|
SCHEDULED: 'scheduled',
|
|
124
137
|
ACTIVE: 'active',
|
|
125
138
|
ENDED: 'ended',
|
|
139
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
126
140
|
FINISHED: 'finished'
|
|
127
141
|
} as const;
|
|
128
142
|
export type AuctionListItemDtoStatusEnum = typeof AuctionListItemDtoStatusEnum[keyof typeof AuctionListItemDtoStatusEnum];
|
|
@@ -144,6 +158,7 @@ export function instanceOfAuctionListItemDto(value: object): value is AuctionLis
|
|
|
144
158
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
145
159
|
if (!('sellerAccount' in value) || value['sellerAccount'] === undefined) return false;
|
|
146
160
|
if (!('numberOfBids' in value) || value['numberOfBids'] === undefined) return false;
|
|
161
|
+
if (!('bids' in value) || value['bids'] === undefined) return false;
|
|
147
162
|
return true;
|
|
148
163
|
}
|
|
149
164
|
|
|
@@ -169,6 +184,7 @@ export function AuctionListItemDtoFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
169
184
|
'domain': AuctionListItemDtoDomainInformationFromJSON(json['domain']),
|
|
170
185
|
'sellerAccount': AuctionListItemDtoSellerAccountFromJSON(json['sellerAccount']),
|
|
171
186
|
'numberOfBids': json['numberOfBids'],
|
|
187
|
+
'bids': ((json['bids'] as Array<any>).map(AuctionBidDtoFromJSON)),
|
|
172
188
|
};
|
|
173
189
|
}
|
|
174
190
|
|
|
@@ -195,6 +211,7 @@ export function AuctionListItemDtoToJSONTyped(value?: AuctionListItemDto | null,
|
|
|
195
211
|
'domain': AuctionListItemDtoDomainInformationToJSON(value['domain']),
|
|
196
212
|
'sellerAccount': AuctionListItemDtoSellerAccountToJSON(value['sellerAccount']),
|
|
197
213
|
'numberOfBids': value['numberOfBids'],
|
|
214
|
+
'bids': ((value['bids'] as Array<any>).map(AuctionBidDtoToJSON)),
|
|
198
215
|
};
|
|
199
216
|
}
|
|
200
217
|
|
|
@@ -0,0 +1,226 @@
|
|
|
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 { AuctionBidDto } from './AuctionBidDto';
|
|
17
|
+
import {
|
|
18
|
+
AuctionBidDtoFromJSON,
|
|
19
|
+
AuctionBidDtoFromJSONTyped,
|
|
20
|
+
AuctionBidDtoToJSON,
|
|
21
|
+
AuctionBidDtoToJSONTyped,
|
|
22
|
+
} from './AuctionBidDto';
|
|
23
|
+
import type { BuyerAuctionListItemDtoSellerAccount } from './BuyerAuctionListItemDtoSellerAccount';
|
|
24
|
+
import {
|
|
25
|
+
BuyerAuctionListItemDtoSellerAccountFromJSON,
|
|
26
|
+
BuyerAuctionListItemDtoSellerAccountFromJSONTyped,
|
|
27
|
+
BuyerAuctionListItemDtoSellerAccountToJSON,
|
|
28
|
+
BuyerAuctionListItemDtoSellerAccountToJSONTyped,
|
|
29
|
+
} from './BuyerAuctionListItemDtoSellerAccount';
|
|
30
|
+
import type { BuyerAuctionListItemDtoDomainInformation } from './BuyerAuctionListItemDtoDomainInformation';
|
|
31
|
+
import {
|
|
32
|
+
BuyerAuctionListItemDtoDomainInformationFromJSON,
|
|
33
|
+
BuyerAuctionListItemDtoDomainInformationFromJSONTyped,
|
|
34
|
+
BuyerAuctionListItemDtoDomainInformationToJSON,
|
|
35
|
+
BuyerAuctionListItemDtoDomainInformationToJSONTyped,
|
|
36
|
+
} from './BuyerAuctionListItemDtoDomainInformation';
|
|
37
|
+
import type { MoneyDto } from './MoneyDto';
|
|
38
|
+
import {
|
|
39
|
+
MoneyDtoFromJSON,
|
|
40
|
+
MoneyDtoFromJSONTyped,
|
|
41
|
+
MoneyDtoToJSON,
|
|
42
|
+
MoneyDtoToJSONTyped,
|
|
43
|
+
} from './MoneyDto';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface BuyerAuctionListItemDto
|
|
49
|
+
*/
|
|
50
|
+
export interface BuyerAuctionListItemDto {
|
|
51
|
+
/**
|
|
52
|
+
* Auction Id
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof BuyerAuctionListItemDto
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
/**
|
|
58
|
+
* Auction status
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof BuyerAuctionListItemDto
|
|
61
|
+
*/
|
|
62
|
+
status: BuyerAuctionListItemDtoStatusEnum;
|
|
63
|
+
/**
|
|
64
|
+
* Auction minimum bid
|
|
65
|
+
* @type {MoneyDto}
|
|
66
|
+
* @memberof BuyerAuctionListItemDto
|
|
67
|
+
*/
|
|
68
|
+
minimumBid: MoneyDto;
|
|
69
|
+
/**
|
|
70
|
+
* Auction reserve price
|
|
71
|
+
* @type {MoneyDto}
|
|
72
|
+
* @memberof BuyerAuctionListItemDto
|
|
73
|
+
*/
|
|
74
|
+
reservePrice: MoneyDto | null;
|
|
75
|
+
/**
|
|
76
|
+
* Auction highest bid
|
|
77
|
+
* @type {MoneyDto}
|
|
78
|
+
* @memberof BuyerAuctionListItemDto
|
|
79
|
+
*/
|
|
80
|
+
highestBid: MoneyDto | null;
|
|
81
|
+
/**
|
|
82
|
+
* Auction start date
|
|
83
|
+
* @type {Date}
|
|
84
|
+
* @memberof BuyerAuctionListItemDto
|
|
85
|
+
*/
|
|
86
|
+
startDate: Date;
|
|
87
|
+
/**
|
|
88
|
+
* Auction end date
|
|
89
|
+
* @type {Date}
|
|
90
|
+
* @memberof BuyerAuctionListItemDto
|
|
91
|
+
*/
|
|
92
|
+
endDate: Date;
|
|
93
|
+
/**
|
|
94
|
+
* Auction finished at
|
|
95
|
+
* @type {Date}
|
|
96
|
+
* @memberof BuyerAuctionListItemDto
|
|
97
|
+
*/
|
|
98
|
+
finishedAt: Date | null;
|
|
99
|
+
/**
|
|
100
|
+
* Auction creation date
|
|
101
|
+
* @type {Date}
|
|
102
|
+
* @memberof BuyerAuctionListItemDto
|
|
103
|
+
*/
|
|
104
|
+
createdAt: Date;
|
|
105
|
+
/**
|
|
106
|
+
* Auction domain information
|
|
107
|
+
* @type {BuyerAuctionListItemDtoDomainInformation}
|
|
108
|
+
* @memberof BuyerAuctionListItemDto
|
|
109
|
+
*/
|
|
110
|
+
domain: BuyerAuctionListItemDtoDomainInformation;
|
|
111
|
+
/**
|
|
112
|
+
* Auction seller account information
|
|
113
|
+
* @type {BuyerAuctionListItemDtoSellerAccount}
|
|
114
|
+
* @memberof BuyerAuctionListItemDto
|
|
115
|
+
*/
|
|
116
|
+
sellerAccount: BuyerAuctionListItemDtoSellerAccount;
|
|
117
|
+
/**
|
|
118
|
+
* Auction number of bids
|
|
119
|
+
* @type {number}
|
|
120
|
+
* @memberof BuyerAuctionListItemDto
|
|
121
|
+
*/
|
|
122
|
+
numberOfBids: number;
|
|
123
|
+
/**
|
|
124
|
+
* List of auction bids
|
|
125
|
+
* @type {Array<AuctionBidDto>}
|
|
126
|
+
* @memberof BuyerAuctionListItemDto
|
|
127
|
+
*/
|
|
128
|
+
bids: Array<AuctionBidDto>;
|
|
129
|
+
/**
|
|
130
|
+
* Auction order ID
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof BuyerAuctionListItemDto
|
|
133
|
+
*/
|
|
134
|
+
orderId: string | null;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @export
|
|
140
|
+
*/
|
|
141
|
+
export const BuyerAuctionListItemDtoStatusEnum = {
|
|
142
|
+
SCHEDULED: 'scheduled',
|
|
143
|
+
ACTIVE: 'active',
|
|
144
|
+
ENDED: 'ended',
|
|
145
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
146
|
+
FINISHED: 'finished'
|
|
147
|
+
} as const;
|
|
148
|
+
export type BuyerAuctionListItemDtoStatusEnum = typeof BuyerAuctionListItemDtoStatusEnum[keyof typeof BuyerAuctionListItemDtoStatusEnum];
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Check if a given object implements the BuyerAuctionListItemDto interface.
|
|
153
|
+
*/
|
|
154
|
+
export function instanceOfBuyerAuctionListItemDto(value: object): value is BuyerAuctionListItemDto {
|
|
155
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
156
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
157
|
+
if (!('minimumBid' in value) || value['minimumBid'] === undefined) return false;
|
|
158
|
+
if (!('reservePrice' in value) || value['reservePrice'] === undefined) return false;
|
|
159
|
+
if (!('highestBid' in value) || value['highestBid'] === undefined) return false;
|
|
160
|
+
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
161
|
+
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
162
|
+
if (!('finishedAt' in value) || value['finishedAt'] === undefined) return false;
|
|
163
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
164
|
+
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
165
|
+
if (!('sellerAccount' in value) || value['sellerAccount'] === undefined) return false;
|
|
166
|
+
if (!('numberOfBids' in value) || value['numberOfBids'] === undefined) return false;
|
|
167
|
+
if (!('bids' in value) || value['bids'] === undefined) return false;
|
|
168
|
+
if (!('orderId' in value) || value['orderId'] === undefined) return false;
|
|
169
|
+
return true;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export function BuyerAuctionListItemDtoFromJSON(json: any): BuyerAuctionListItemDto {
|
|
173
|
+
return BuyerAuctionListItemDtoFromJSONTyped(json, false);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export function BuyerAuctionListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerAuctionListItemDto {
|
|
177
|
+
if (json == null) {
|
|
178
|
+
return json;
|
|
179
|
+
}
|
|
180
|
+
return {
|
|
181
|
+
|
|
182
|
+
'id': json['id'],
|
|
183
|
+
'status': json['status'],
|
|
184
|
+
'minimumBid': MoneyDtoFromJSON(json['minimumBid']),
|
|
185
|
+
'reservePrice': MoneyDtoFromJSON(json['reservePrice']),
|
|
186
|
+
'highestBid': MoneyDtoFromJSON(json['highestBid']),
|
|
187
|
+
'startDate': (new Date(json['startDate'])),
|
|
188
|
+
'endDate': (new Date(json['endDate'])),
|
|
189
|
+
'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
|
|
190
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
191
|
+
'domain': BuyerAuctionListItemDtoDomainInformationFromJSON(json['domain']),
|
|
192
|
+
'sellerAccount': BuyerAuctionListItemDtoSellerAccountFromJSON(json['sellerAccount']),
|
|
193
|
+
'numberOfBids': json['numberOfBids'],
|
|
194
|
+
'bids': ((json['bids'] as Array<any>).map(AuctionBidDtoFromJSON)),
|
|
195
|
+
'orderId': json['orderId'],
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export function BuyerAuctionListItemDtoToJSON(json: any): BuyerAuctionListItemDto {
|
|
200
|
+
return BuyerAuctionListItemDtoToJSONTyped(json, false);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export function BuyerAuctionListItemDtoToJSONTyped(value?: BuyerAuctionListItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
204
|
+
if (value == null) {
|
|
205
|
+
return value;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
return {
|
|
209
|
+
|
|
210
|
+
'id': value['id'],
|
|
211
|
+
'status': value['status'],
|
|
212
|
+
'minimumBid': MoneyDtoToJSON(value['minimumBid']),
|
|
213
|
+
'reservePrice': MoneyDtoToJSON(value['reservePrice']),
|
|
214
|
+
'highestBid': MoneyDtoToJSON(value['highestBid']),
|
|
215
|
+
'startDate': ((value['startDate']).toISOString()),
|
|
216
|
+
'endDate': ((value['endDate']).toISOString()),
|
|
217
|
+
'finishedAt': (value['finishedAt'] == null ? null : (value['finishedAt'] as any).toISOString()),
|
|
218
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
219
|
+
'domain': BuyerAuctionListItemDtoDomainInformationToJSON(value['domain']),
|
|
220
|
+
'sellerAccount': BuyerAuctionListItemDtoSellerAccountToJSON(value['sellerAccount']),
|
|
221
|
+
'numberOfBids': value['numberOfBids'],
|
|
222
|
+
'bids': ((value['bids'] as Array<any>).map(AuctionBidDtoToJSON)),
|
|
223
|
+
'orderId': value['orderId'],
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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 BuyerAuctionListItemDtoDomainInformation
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerAuctionListItemDtoDomainInformation {
|
|
22
|
+
/**
|
|
23
|
+
* Domain TLD
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BuyerAuctionListItemDtoDomainInformation
|
|
26
|
+
*/
|
|
27
|
+
tld: string;
|
|
28
|
+
/**
|
|
29
|
+
* Domain name
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BuyerAuctionListItemDtoDomainInformation
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Domain display name
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BuyerAuctionListItemDtoDomainInformation
|
|
38
|
+
*/
|
|
39
|
+
displayName: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the BuyerAuctionListItemDtoDomainInformation interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfBuyerAuctionListItemDtoDomainInformation(value: object): value is BuyerAuctionListItemDtoDomainInformation {
|
|
46
|
+
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function BuyerAuctionListItemDtoDomainInformationFromJSON(json: any): BuyerAuctionListItemDtoDomainInformation {
|
|
53
|
+
return BuyerAuctionListItemDtoDomainInformationFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function BuyerAuctionListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerAuctionListItemDtoDomainInformation {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'tld': json['tld'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'displayName': json['displayName'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function BuyerAuctionListItemDtoDomainInformationToJSON(json: any): BuyerAuctionListItemDtoDomainInformation {
|
|
69
|
+
return BuyerAuctionListItemDtoDomainInformationToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function BuyerAuctionListItemDtoDomainInformationToJSONTyped(value?: BuyerAuctionListItemDtoDomainInformation | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'tld': value['tld'],
|
|
80
|
+
'name': value['name'],
|
|
81
|
+
'displayName': value['displayName'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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 BuyerAuctionListItemDtoSellerAccount
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerAuctionListItemDtoSellerAccount {
|
|
22
|
+
/**
|
|
23
|
+
* Account ID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BuyerAuctionListItemDtoSellerAccount
|
|
26
|
+
*/
|
|
27
|
+
accountId: string;
|
|
28
|
+
/**
|
|
29
|
+
* Account identifier
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BuyerAuctionListItemDtoSellerAccount
|
|
32
|
+
*/
|
|
33
|
+
identifier: string;
|
|
34
|
+
/**
|
|
35
|
+
* Account name
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BuyerAuctionListItemDtoSellerAccount
|
|
38
|
+
*/
|
|
39
|
+
name: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Indicates if account is a business or not
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof BuyerAuctionListItemDtoSellerAccount
|
|
44
|
+
*/
|
|
45
|
+
isBusiness: boolean | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the BuyerAuctionListItemDtoSellerAccount interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfBuyerAuctionListItemDtoSellerAccount(value: object): value is BuyerAuctionListItemDtoSellerAccount {
|
|
52
|
+
if (!('accountId' in value) || value['accountId'] === undefined) return false;
|
|
53
|
+
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
54
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
55
|
+
if (!('isBusiness' in value) || value['isBusiness'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function BuyerAuctionListItemDtoSellerAccountFromJSON(json: any): BuyerAuctionListItemDtoSellerAccount {
|
|
60
|
+
return BuyerAuctionListItemDtoSellerAccountFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function BuyerAuctionListItemDtoSellerAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerAuctionListItemDtoSellerAccount {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'accountId': json['accountId'],
|
|
70
|
+
'identifier': json['identifier'],
|
|
71
|
+
'name': json['name'],
|
|
72
|
+
'isBusiness': json['isBusiness'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function BuyerAuctionListItemDtoSellerAccountToJSON(json: any): BuyerAuctionListItemDtoSellerAccount {
|
|
77
|
+
return BuyerAuctionListItemDtoSellerAccountToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function BuyerAuctionListItemDtoSellerAccountToJSONTyped(value?: BuyerAuctionListItemDtoSellerAccount | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'accountId': value['accountId'],
|
|
88
|
+
'identifier': value['identifier'],
|
|
89
|
+
'name': value['name'],
|
|
90
|
+
'isBusiness': value['isBusiness'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -67,6 +67,12 @@ export interface BuyerSessionDto {
|
|
|
67
67
|
* @memberof BuyerSessionDto
|
|
68
68
|
*/
|
|
69
69
|
unreadNotificationsNumber: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof BuyerSessionDto
|
|
74
|
+
*/
|
|
75
|
+
hasAuctions: boolean;
|
|
70
76
|
}
|
|
71
77
|
|
|
72
78
|
|
|
@@ -92,6 +98,7 @@ export function instanceOfBuyerSessionDto(value: object): value is BuyerSessionD
|
|
|
92
98
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
93
99
|
if (!('hasSubscriptions' in value) || value['hasSubscriptions'] === undefined) return false;
|
|
94
100
|
if (!('unreadNotificationsNumber' in value) || value['unreadNotificationsNumber'] === undefined) return false;
|
|
101
|
+
if (!('hasAuctions' in value) || value['hasAuctions'] === undefined) return false;
|
|
95
102
|
return true;
|
|
96
103
|
}
|
|
97
104
|
|
|
@@ -113,6 +120,7 @@ export function BuyerSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
113
120
|
'type': json['type'],
|
|
114
121
|
'hasSubscriptions': json['hasSubscriptions'],
|
|
115
122
|
'unreadNotificationsNumber': json['unreadNotificationsNumber'],
|
|
123
|
+
'hasAuctions': json['hasAuctions'],
|
|
116
124
|
};
|
|
117
125
|
}
|
|
118
126
|
|
|
@@ -135,6 +143,7 @@ export function BuyerSessionDtoToJSONTyped(value?: BuyerSessionDto | null, ignor
|
|
|
135
143
|
'type': value['type'],
|
|
136
144
|
'hasSubscriptions': value['hasSubscriptions'],
|
|
137
145
|
'unreadNotificationsNumber': value['unreadNotificationsNumber'],
|
|
146
|
+
'hasAuctions': value['hasAuctions'],
|
|
138
147
|
};
|
|
139
148
|
}
|
|
140
149
|
|