@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.
Files changed (57) hide show
  1. package/.openapi-generator/FILES +13 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +15 -1
  4. package/dist/apis/AdminApi.js +63 -0
  5. package/dist/apis/AuctionsApi.d.ts +32 -0
  6. package/dist/apis/AuctionsApi.js +143 -0
  7. package/dist/apis/BuyersApi.d.ts +15 -1
  8. package/dist/apis/BuyersApi.js +67 -4
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/models/AuctionListItemDto.d.ts +119 -0
  12. package/dist/models/AuctionListItemDto.js +114 -0
  13. package/dist/models/AuctionListItemDtoDomainInformation.d.ts +44 -0
  14. package/dist/models/AuctionListItemDtoDomainInformation.js +59 -0
  15. package/dist/models/AuctionListItemDtoSellerAccount.d.ts +50 -0
  16. package/dist/models/AuctionListItemDtoSellerAccount.js +63 -0
  17. package/dist/models/BuyerAuctionListItemDto.d.ts +125 -0
  18. package/dist/models/BuyerAuctionListItemDto.js +118 -0
  19. package/dist/models/BuyerAuctionListItemDtoDomainInformation.d.ts +44 -0
  20. package/dist/models/BuyerAuctionListItemDtoDomainInformation.js +59 -0
  21. package/dist/models/BuyerAuctionListItemDtoSellerAccount.d.ts +50 -0
  22. package/dist/models/BuyerAuctionListItemDtoSellerAccount.js +63 -0
  23. package/dist/models/BuyerSessionDto.d.ts +6 -0
  24. package/dist/models/BuyerSessionDto.js +4 -0
  25. package/dist/models/GetAllAuctions200Response.d.ts +47 -0
  26. package/dist/models/GetAllAuctions200Response.js +62 -0
  27. package/dist/models/GetAllAuctions200Response1.d.ts +47 -0
  28. package/dist/models/GetAllAuctions200Response1.js +62 -0
  29. package/dist/models/GetBuyerAuctions200Response.d.ts +47 -0
  30. package/dist/models/GetBuyerAuctions200Response.js +62 -0
  31. package/dist/models/SellerAuctionListItemDto.d.ts +119 -0
  32. package/dist/models/SellerAuctionListItemDto.js +114 -0
  33. package/dist/models/SellerAuctionListItemDtoDomainInformation.d.ts +44 -0
  34. package/dist/models/SellerAuctionListItemDtoDomainInformation.js +59 -0
  35. package/dist/models/SellerAuctionListItemDtoSellerAccount.d.ts +50 -0
  36. package/dist/models/SellerAuctionListItemDtoSellerAccount.js +63 -0
  37. package/dist/models/index.d.ts +12 -0
  38. package/dist/models/index.js +12 -0
  39. package/package.json +1 -1
  40. package/src/apis/AdminApi.ts +60 -0
  41. package/src/apis/AuctionsApi.ts +90 -0
  42. package/src/apis/BuyersApi.ts +64 -4
  43. package/src/apis/index.ts +1 -0
  44. package/src/models/AuctionListItemDto.ts +217 -0
  45. package/src/models/AuctionListItemDtoDomainInformation.ts +84 -0
  46. package/src/models/AuctionListItemDtoSellerAccount.ts +93 -0
  47. package/src/models/BuyerAuctionListItemDto.ts +226 -0
  48. package/src/models/BuyerAuctionListItemDtoDomainInformation.ts +84 -0
  49. package/src/models/BuyerAuctionListItemDtoSellerAccount.ts +93 -0
  50. package/src/models/BuyerSessionDto.ts +9 -0
  51. package/src/models/GetAllAuctions200Response.ts +106 -0
  52. package/src/models/GetAllAuctions200Response1.ts +106 -0
  53. package/src/models/GetBuyerAuctions200Response.ts +106 -0
  54. package/src/models/SellerAuctionListItemDto.ts +217 -0
  55. package/src/models/SellerAuctionListItemDtoDomainInformation.ts +84 -0
  56. package/src/models/SellerAuctionListItemDtoSellerAccount.ts +93 -0
  57. package/src/models/index.ts +12 -0
@@ -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
 
@@ -0,0 +1,106 @@
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 { PaginateResponseLinks } from './PaginateResponseLinks';
17
+ import {
18
+ PaginateResponseLinksFromJSON,
19
+ PaginateResponseLinksFromJSONTyped,
20
+ PaginateResponseLinksToJSON,
21
+ PaginateResponseLinksToJSONTyped,
22
+ } from './PaginateResponseLinks';
23
+ import type { AuctionListItemDto } from './AuctionListItemDto';
24
+ import {
25
+ AuctionListItemDtoFromJSON,
26
+ AuctionListItemDtoFromJSONTyped,
27
+ AuctionListItemDtoToJSON,
28
+ AuctionListItemDtoToJSONTyped,
29
+ } from './AuctionListItemDto';
30
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
31
+ import {
32
+ PaginateResponseMetaFromJSON,
33
+ PaginateResponseMetaFromJSONTyped,
34
+ PaginateResponseMetaToJSON,
35
+ PaginateResponseMetaToJSONTyped,
36
+ } from './PaginateResponseMeta';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface GetAllAuctions200Response
42
+ */
43
+ export interface GetAllAuctions200Response {
44
+ /**
45
+ *
46
+ * @type {Array<AuctionListItemDto>}
47
+ * @memberof GetAllAuctions200Response
48
+ */
49
+ data: Array<AuctionListItemDto>;
50
+ /**
51
+ *
52
+ * @type {PaginateResponseMeta}
53
+ * @memberof GetAllAuctions200Response
54
+ */
55
+ meta: PaginateResponseMeta;
56
+ /**
57
+ *
58
+ * @type {PaginateResponseLinks}
59
+ * @memberof GetAllAuctions200Response
60
+ */
61
+ links: PaginateResponseLinks;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the GetAllAuctions200Response interface.
66
+ */
67
+ export function instanceOfGetAllAuctions200Response(value: object): value is GetAllAuctions200Response {
68
+ if (!('data' in value) || value['data'] === undefined) return false;
69
+ if (!('meta' in value) || value['meta'] === undefined) return false;
70
+ if (!('links' in value) || value['links'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function GetAllAuctions200ResponseFromJSON(json: any): GetAllAuctions200Response {
75
+ return GetAllAuctions200ResponseFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function GetAllAuctions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllAuctions200Response {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'data': ((json['data'] as Array<any>).map(AuctionListItemDtoFromJSON)),
85
+ 'meta': PaginateResponseMetaFromJSON(json['meta']),
86
+ 'links': PaginateResponseLinksFromJSON(json['links']),
87
+ };
88
+ }
89
+
90
+ export function GetAllAuctions200ResponseToJSON(json: any): GetAllAuctions200Response {
91
+ return GetAllAuctions200ResponseToJSONTyped(json, false);
92
+ }
93
+
94
+ export function GetAllAuctions200ResponseToJSONTyped(value?: GetAllAuctions200Response | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+
99
+ return {
100
+
101
+ 'data': ((value['data'] as Array<any>).map(AuctionListItemDtoToJSON)),
102
+ 'meta': PaginateResponseMetaToJSON(value['meta']),
103
+ 'links': PaginateResponseLinksToJSON(value['links']),
104
+ };
105
+ }
106
+
@@ -0,0 +1,106 @@
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 { PaginateResponseLinks } from './PaginateResponseLinks';
17
+ import {
18
+ PaginateResponseLinksFromJSON,
19
+ PaginateResponseLinksFromJSONTyped,
20
+ PaginateResponseLinksToJSON,
21
+ PaginateResponseLinksToJSONTyped,
22
+ } from './PaginateResponseLinks';
23
+ import type { SellerAuctionListItemDto } from './SellerAuctionListItemDto';
24
+ import {
25
+ SellerAuctionListItemDtoFromJSON,
26
+ SellerAuctionListItemDtoFromJSONTyped,
27
+ SellerAuctionListItemDtoToJSON,
28
+ SellerAuctionListItemDtoToJSONTyped,
29
+ } from './SellerAuctionListItemDto';
30
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
31
+ import {
32
+ PaginateResponseMetaFromJSON,
33
+ PaginateResponseMetaFromJSONTyped,
34
+ PaginateResponseMetaToJSON,
35
+ PaginateResponseMetaToJSONTyped,
36
+ } from './PaginateResponseMeta';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface GetAllAuctions200Response1
42
+ */
43
+ export interface GetAllAuctions200Response1 {
44
+ /**
45
+ *
46
+ * @type {Array<SellerAuctionListItemDto>}
47
+ * @memberof GetAllAuctions200Response1
48
+ */
49
+ data: Array<SellerAuctionListItemDto>;
50
+ /**
51
+ *
52
+ * @type {PaginateResponseMeta}
53
+ * @memberof GetAllAuctions200Response1
54
+ */
55
+ meta: PaginateResponseMeta;
56
+ /**
57
+ *
58
+ * @type {PaginateResponseLinks}
59
+ * @memberof GetAllAuctions200Response1
60
+ */
61
+ links: PaginateResponseLinks;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the GetAllAuctions200Response1 interface.
66
+ */
67
+ export function instanceOfGetAllAuctions200Response1(value: object): value is GetAllAuctions200Response1 {
68
+ if (!('data' in value) || value['data'] === undefined) return false;
69
+ if (!('meta' in value) || value['meta'] === undefined) return false;
70
+ if (!('links' in value) || value['links'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function GetAllAuctions200Response1FromJSON(json: any): GetAllAuctions200Response1 {
75
+ return GetAllAuctions200Response1FromJSONTyped(json, false);
76
+ }
77
+
78
+ export function GetAllAuctions200Response1FromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllAuctions200Response1 {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'data': ((json['data'] as Array<any>).map(SellerAuctionListItemDtoFromJSON)),
85
+ 'meta': PaginateResponseMetaFromJSON(json['meta']),
86
+ 'links': PaginateResponseLinksFromJSON(json['links']),
87
+ };
88
+ }
89
+
90
+ export function GetAllAuctions200Response1ToJSON(json: any): GetAllAuctions200Response1 {
91
+ return GetAllAuctions200Response1ToJSONTyped(json, false);
92
+ }
93
+
94
+ export function GetAllAuctions200Response1ToJSONTyped(value?: GetAllAuctions200Response1 | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+
99
+ return {
100
+
101
+ 'data': ((value['data'] as Array<any>).map(SellerAuctionListItemDtoToJSON)),
102
+ 'meta': PaginateResponseMetaToJSON(value['meta']),
103
+ 'links': PaginateResponseLinksToJSON(value['links']),
104
+ };
105
+ }
106
+