@randock/nameshift-api-client 0.0.335 → 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 +13 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +15 -1
- package/dist/apis/AdminApi.js +63 -0
- 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 +119 -0
- package/dist/models/AuctionListItemDto.js +114 -0
- package/dist/models/AuctionListItemDtoDomainInformation.d.ts +44 -0
- package/dist/models/AuctionListItemDtoDomainInformation.js +59 -0
- package/dist/models/AuctionListItemDtoSellerAccount.d.ts +50 -0
- package/dist/models/AuctionListItemDtoSellerAccount.js +63 -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/GetAllAuctions200Response.d.ts +47 -0
- package/dist/models/GetAllAuctions200Response.js +62 -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 +12 -0
- package/dist/models/index.js +12 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +60 -0
- 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 +217 -0
- package/src/models/AuctionListItemDtoDomainInformation.ts +84 -0
- package/src/models/AuctionListItemDtoSellerAccount.ts +93 -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/GetAllAuctions200Response.ts +106 -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 +12 -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
|
@@ -0,0 +1,217 @@
|
|
|
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 { AuctionListItemDtoDomainInformation } from './AuctionListItemDtoDomainInformation';
|
|
24
|
+
import {
|
|
25
|
+
AuctionListItemDtoDomainInformationFromJSON,
|
|
26
|
+
AuctionListItemDtoDomainInformationFromJSONTyped,
|
|
27
|
+
AuctionListItemDtoDomainInformationToJSON,
|
|
28
|
+
AuctionListItemDtoDomainInformationToJSONTyped,
|
|
29
|
+
} from './AuctionListItemDtoDomainInformation';
|
|
30
|
+
import type { MoneyDto } from './MoneyDto';
|
|
31
|
+
import {
|
|
32
|
+
MoneyDtoFromJSON,
|
|
33
|
+
MoneyDtoFromJSONTyped,
|
|
34
|
+
MoneyDtoToJSON,
|
|
35
|
+
MoneyDtoToJSONTyped,
|
|
36
|
+
} from './MoneyDto';
|
|
37
|
+
import type { AuctionListItemDtoSellerAccount } from './AuctionListItemDtoSellerAccount';
|
|
38
|
+
import {
|
|
39
|
+
AuctionListItemDtoSellerAccountFromJSON,
|
|
40
|
+
AuctionListItemDtoSellerAccountFromJSONTyped,
|
|
41
|
+
AuctionListItemDtoSellerAccountToJSON,
|
|
42
|
+
AuctionListItemDtoSellerAccountToJSONTyped,
|
|
43
|
+
} from './AuctionListItemDtoSellerAccount';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface AuctionListItemDto
|
|
49
|
+
*/
|
|
50
|
+
export interface AuctionListItemDto {
|
|
51
|
+
/**
|
|
52
|
+
* Auction Id
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof AuctionListItemDto
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
/**
|
|
58
|
+
* Auction status
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof AuctionListItemDto
|
|
61
|
+
*/
|
|
62
|
+
status: AuctionListItemDtoStatusEnum;
|
|
63
|
+
/**
|
|
64
|
+
* Auction minimum bid
|
|
65
|
+
* @type {MoneyDto}
|
|
66
|
+
* @memberof AuctionListItemDto
|
|
67
|
+
*/
|
|
68
|
+
minimumBid: MoneyDto;
|
|
69
|
+
/**
|
|
70
|
+
* Auction reserve price
|
|
71
|
+
* @type {MoneyDto}
|
|
72
|
+
* @memberof AuctionListItemDto
|
|
73
|
+
*/
|
|
74
|
+
reservePrice: MoneyDto | null;
|
|
75
|
+
/**
|
|
76
|
+
* Auction highest bid
|
|
77
|
+
* @type {MoneyDto}
|
|
78
|
+
* @memberof AuctionListItemDto
|
|
79
|
+
*/
|
|
80
|
+
highestBid: MoneyDto | null;
|
|
81
|
+
/**
|
|
82
|
+
* Auction start date
|
|
83
|
+
* @type {Date}
|
|
84
|
+
* @memberof AuctionListItemDto
|
|
85
|
+
*/
|
|
86
|
+
startDate: Date;
|
|
87
|
+
/**
|
|
88
|
+
* Auction end date
|
|
89
|
+
* @type {Date}
|
|
90
|
+
* @memberof AuctionListItemDto
|
|
91
|
+
*/
|
|
92
|
+
endDate: Date;
|
|
93
|
+
/**
|
|
94
|
+
* Auction finished at
|
|
95
|
+
* @type {Date}
|
|
96
|
+
* @memberof AuctionListItemDto
|
|
97
|
+
*/
|
|
98
|
+
finishedAt: Date | null;
|
|
99
|
+
/**
|
|
100
|
+
* Auction creation date
|
|
101
|
+
* @type {Date}
|
|
102
|
+
* @memberof AuctionListItemDto
|
|
103
|
+
*/
|
|
104
|
+
createdAt: Date;
|
|
105
|
+
/**
|
|
106
|
+
* Auction domain information
|
|
107
|
+
* @type {AuctionListItemDtoDomainInformation}
|
|
108
|
+
* @memberof AuctionListItemDto
|
|
109
|
+
*/
|
|
110
|
+
domain: AuctionListItemDtoDomainInformation;
|
|
111
|
+
/**
|
|
112
|
+
* Auction seller account information
|
|
113
|
+
* @type {AuctionListItemDtoSellerAccount}
|
|
114
|
+
* @memberof AuctionListItemDto
|
|
115
|
+
*/
|
|
116
|
+
sellerAccount: AuctionListItemDtoSellerAccount;
|
|
117
|
+
/**
|
|
118
|
+
* Auction number of bids
|
|
119
|
+
* @type {number}
|
|
120
|
+
* @memberof AuctionListItemDto
|
|
121
|
+
*/
|
|
122
|
+
numberOfBids: number;
|
|
123
|
+
/**
|
|
124
|
+
* List of auction bids
|
|
125
|
+
* @type {Array<AuctionBidDto>}
|
|
126
|
+
* @memberof AuctionListItemDto
|
|
127
|
+
*/
|
|
128
|
+
bids: Array<AuctionBidDto>;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @export
|
|
134
|
+
*/
|
|
135
|
+
export const AuctionListItemDtoStatusEnum = {
|
|
136
|
+
SCHEDULED: 'scheduled',
|
|
137
|
+
ACTIVE: 'active',
|
|
138
|
+
ENDED: 'ended',
|
|
139
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
140
|
+
FINISHED: 'finished'
|
|
141
|
+
} as const;
|
|
142
|
+
export type AuctionListItemDtoStatusEnum = typeof AuctionListItemDtoStatusEnum[keyof typeof AuctionListItemDtoStatusEnum];
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Check if a given object implements the AuctionListItemDto interface.
|
|
147
|
+
*/
|
|
148
|
+
export function instanceOfAuctionListItemDto(value: object): value is AuctionListItemDto {
|
|
149
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
150
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
151
|
+
if (!('minimumBid' in value) || value['minimumBid'] === undefined) return false;
|
|
152
|
+
if (!('reservePrice' in value) || value['reservePrice'] === undefined) return false;
|
|
153
|
+
if (!('highestBid' in value) || value['highestBid'] === undefined) return false;
|
|
154
|
+
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
155
|
+
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
156
|
+
if (!('finishedAt' in value) || value['finishedAt'] === undefined) return false;
|
|
157
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
158
|
+
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
159
|
+
if (!('sellerAccount' in value) || value['sellerAccount'] === undefined) return false;
|
|
160
|
+
if (!('numberOfBids' in value) || value['numberOfBids'] === undefined) return false;
|
|
161
|
+
if (!('bids' in value) || value['bids'] === undefined) return false;
|
|
162
|
+
return true;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export function AuctionListItemDtoFromJSON(json: any): AuctionListItemDto {
|
|
166
|
+
return AuctionListItemDtoFromJSONTyped(json, false);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function AuctionListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionListItemDto {
|
|
170
|
+
if (json == null) {
|
|
171
|
+
return json;
|
|
172
|
+
}
|
|
173
|
+
return {
|
|
174
|
+
|
|
175
|
+
'id': json['id'],
|
|
176
|
+
'status': json['status'],
|
|
177
|
+
'minimumBid': MoneyDtoFromJSON(json['minimumBid']),
|
|
178
|
+
'reservePrice': MoneyDtoFromJSON(json['reservePrice']),
|
|
179
|
+
'highestBid': MoneyDtoFromJSON(json['highestBid']),
|
|
180
|
+
'startDate': (new Date(json['startDate'])),
|
|
181
|
+
'endDate': (new Date(json['endDate'])),
|
|
182
|
+
'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
|
|
183
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
184
|
+
'domain': AuctionListItemDtoDomainInformationFromJSON(json['domain']),
|
|
185
|
+
'sellerAccount': AuctionListItemDtoSellerAccountFromJSON(json['sellerAccount']),
|
|
186
|
+
'numberOfBids': json['numberOfBids'],
|
|
187
|
+
'bids': ((json['bids'] as Array<any>).map(AuctionBidDtoFromJSON)),
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export function AuctionListItemDtoToJSON(json: any): AuctionListItemDto {
|
|
192
|
+
return AuctionListItemDtoToJSONTyped(json, false);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export function AuctionListItemDtoToJSONTyped(value?: AuctionListItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
196
|
+
if (value == null) {
|
|
197
|
+
return value;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
return {
|
|
201
|
+
|
|
202
|
+
'id': value['id'],
|
|
203
|
+
'status': value['status'],
|
|
204
|
+
'minimumBid': MoneyDtoToJSON(value['minimumBid']),
|
|
205
|
+
'reservePrice': MoneyDtoToJSON(value['reservePrice']),
|
|
206
|
+
'highestBid': MoneyDtoToJSON(value['highestBid']),
|
|
207
|
+
'startDate': ((value['startDate']).toISOString()),
|
|
208
|
+
'endDate': ((value['endDate']).toISOString()),
|
|
209
|
+
'finishedAt': (value['finishedAt'] == null ? null : (value['finishedAt'] as any).toISOString()),
|
|
210
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
211
|
+
'domain': AuctionListItemDtoDomainInformationToJSON(value['domain']),
|
|
212
|
+
'sellerAccount': AuctionListItemDtoSellerAccountToJSON(value['sellerAccount']),
|
|
213
|
+
'numberOfBids': value['numberOfBids'],
|
|
214
|
+
'bids': ((value['bids'] as Array<any>).map(AuctionBidDtoToJSON)),
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
|
|
@@ -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 AuctionListItemDtoDomainInformation
|
|
20
|
+
*/
|
|
21
|
+
export interface AuctionListItemDtoDomainInformation {
|
|
22
|
+
/**
|
|
23
|
+
* Domain TLD
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AuctionListItemDtoDomainInformation
|
|
26
|
+
*/
|
|
27
|
+
tld: string;
|
|
28
|
+
/**
|
|
29
|
+
* Domain name
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AuctionListItemDtoDomainInformation
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Domain display name
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AuctionListItemDtoDomainInformation
|
|
38
|
+
*/
|
|
39
|
+
displayName: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the AuctionListItemDtoDomainInformation interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfAuctionListItemDtoDomainInformation(value: object): value is AuctionListItemDtoDomainInformation {
|
|
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 AuctionListItemDtoDomainInformationFromJSON(json: any): AuctionListItemDtoDomainInformation {
|
|
53
|
+
return AuctionListItemDtoDomainInformationFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AuctionListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionListItemDtoDomainInformation {
|
|
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 AuctionListItemDtoDomainInformationToJSON(json: any): AuctionListItemDtoDomainInformation {
|
|
69
|
+
return AuctionListItemDtoDomainInformationToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function AuctionListItemDtoDomainInformationToJSONTyped(value?: AuctionListItemDtoDomainInformation | 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 AuctionListItemDtoSellerAccount
|
|
20
|
+
*/
|
|
21
|
+
export interface AuctionListItemDtoSellerAccount {
|
|
22
|
+
/**
|
|
23
|
+
* Account ID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AuctionListItemDtoSellerAccount
|
|
26
|
+
*/
|
|
27
|
+
accountId: string;
|
|
28
|
+
/**
|
|
29
|
+
* Account identifier
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AuctionListItemDtoSellerAccount
|
|
32
|
+
*/
|
|
33
|
+
identifier: string;
|
|
34
|
+
/**
|
|
35
|
+
* Account name
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AuctionListItemDtoSellerAccount
|
|
38
|
+
*/
|
|
39
|
+
name: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Indicates if account is a business or not
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof AuctionListItemDtoSellerAccount
|
|
44
|
+
*/
|
|
45
|
+
isBusiness: boolean | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the AuctionListItemDtoSellerAccount interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfAuctionListItemDtoSellerAccount(value: object): value is AuctionListItemDtoSellerAccount {
|
|
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 AuctionListItemDtoSellerAccountFromJSON(json: any): AuctionListItemDtoSellerAccount {
|
|
60
|
+
return AuctionListItemDtoSellerAccountFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AuctionListItemDtoSellerAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionListItemDtoSellerAccount {
|
|
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 AuctionListItemDtoSellerAccountToJSON(json: any): AuctionListItemDtoSellerAccount {
|
|
77
|
+
return AuctionListItemDtoSellerAccountToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function AuctionListItemDtoSellerAccountToJSONTyped(value?: AuctionListItemDtoSellerAccount | 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
|
+
|