@universalis-ffxiv/universalis-client 0.1.0

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/dist/v1.d.ts ADDED
@@ -0,0 +1,1158 @@
1
+ export interface IClient {
2
+ /**
3
+ * Returns all data centers supported by the API.
4
+ * @return Success
5
+ */
6
+ dataCenters(): Promise<DataCenter[]>;
7
+ /**
8
+ * Returns the IDs and names of all worlds supported by the API.
9
+ * @return Success
10
+ */
11
+ worlds(): Promise<World[]>;
12
+ /**
13
+ * Returns the content object associated with the provided content ID. Please note that this endpoint is largely untested,
14
+ and may return inconsistent data at times.
15
+ * @param contentId The ID of the content object to retrieve.
16
+ * @return Success
17
+ */
18
+ content(contentId: string): Promise<ContentView>;
19
+ /**
20
+ * Get the least-recently updated items on the specified world or data center, along with the upload times for each item.
21
+ * @param world (optional) The world to request data for.
22
+ * @param dcName (optional) The data center to request data for.
23
+ * @param entries (optional) The number of entries to return (default 50, max 200).
24
+ * @return Success
25
+ */
26
+ leastRecentlyUpdated(world?: string | undefined, dcName?: string | undefined, entries?: string | undefined): Promise<MostRecentlyUpdatedItemsView>;
27
+ /**
28
+ * Retrieves the data currently shown on the market board for the requested item and world or data center.
29
+ Up to 100 item IDs can be comma-separated in order to retrieve data for multiple items at once.
30
+ * @param itemIds The item ID or comma-separated item IDs to retrieve data for.
31
+ * @param worldDcRegion The world, data center, or region to retrieve data for. This may be an ID or a name. Regions should be specified as Japan, Europe, North-America, Oceania, China, or 中国.
32
+ * @param listings (optional) The number of listings to return per item. By default, all listings will be returned.
33
+ * @param entries (optional) The number of recent history entries to return per item. By default, a maximum of 5 entries will be returned.
34
+ * @param hq (optional) Filter for HQ listings and entries. By default, both HQ and NQ listings and entries will be returned.
35
+ * @param statsWithin (optional) The amount of time before now to calculate stats over, in milliseconds. By default, this is 7 days.
36
+ * @param entriesWithin (optional) The amount of time before now to take entries within, in seconds. Negative values will be ignored.
37
+ * @param fields (optional) A comma separated list of fields that should be included in the response, if omitted will return all fields.
38
+ For example, if you're only interested in the listings price per unit you can set this to listings.pricePerUnit.
39
+ Note that querying multiple items changes the response schema, which should be reflected in the value provided
40
+ for this field. In this case, querying the price per unit requires setting this field to
41
+ items.listings.pricePerUnit.
42
+ * @param user_Agent (optional)
43
+ * @param cF_Connecting_IP (optional)
44
+ * @return Data retrieved successfully.
45
+ */
46
+ api(itemIds: string, worldDcRegion: string, listings?: string | undefined, entries?: string | undefined, hq?: string | undefined, statsWithin?: string | undefined, entriesWithin?: string | undefined, fields?: string | undefined, user_Agent?: string | undefined, cF_Connecting_IP?: string | undefined): Promise<CurrentlyShownMultiView>;
47
+ /**
48
+ * Retrieves the history data for the requested item and world or data center.
49
+ Up to 100 item IDs can be comma-separated in order to retrieve data for multiple items at once.
50
+ * @param itemIds The item ID or comma-separated item IDs to retrieve data for.
51
+ * @param worldDcRegion The world or data center to retrieve data for. This may be an ID or a name. Regions should be specified as Japan, Europe, North-America, Oceania, China, or 中国.
52
+ * @param entries (optional) The number of entries to return per item. By default, this is set to 1800, but may be set to a maximum of 99999.
53
+ * @param statsWithin (optional) The amount of time before now to calculate stats over, in milliseconds. By default, this is 7 days.
54
+ * @param entriesWithin (optional) The amount of time before entriesUntil or now to take entries within, in seconds. Negative values will be ignored. By default, this is 7 days.
55
+ * @param entriesUntil (optional) The UNIX timestamp in seconds to take entries until. Negative values will be ignored. By default, this is current time.
56
+ * @param minSalePrice (optional) The inclusive minimum unit sale price of entries to return.
57
+ * @param maxSalePrice (optional) The inclusive maximum unit sale price of entries to return.
58
+ * @param user_Agent (optional)
59
+ * @param cF_Connecting_IP (optional)
60
+ * @return Data retrieved successfully.
61
+ */
62
+ history(itemIds: string, worldDcRegion: string, entries?: string | undefined, statsWithin?: string | undefined, entriesWithin?: string | undefined, entriesUntil?: string | undefined, minSalePrice?: number | undefined, maxSalePrice?: number | undefined, user_Agent?: string | undefined, cF_Connecting_IP?: string | undefined): Promise<HistoryMultiView>;
63
+ /**
64
+ * Retrieves the current tax rate data for the specified world. This data is provided by the Retainer Vocate in each major city.
65
+ * @param world (optional) The world or to retrieve data for. This may be an ID or a name.
66
+ * @param user_Agent (optional)
67
+ * @return Data retrieved successfully.
68
+ */
69
+ taxRates(world?: string | undefined, user_Agent?: string | undefined): Promise<TaxRatesView>;
70
+ /**
71
+ * Returns the set of marketable item IDs.
72
+ * @return Success
73
+ */
74
+ marketable(): Promise<number[]>;
75
+ /**
76
+ * Get the most-recently updated items on the specified world or data center, along with the upload times for each item.
77
+ * @param world (optional) The world to request data for.
78
+ * @param dcName (optional) The data center to request data for.
79
+ * @param entries (optional) The number of entries to return (default 50, max 200).
80
+ * @return Success
81
+ */
82
+ mostRecentlyUpdated(world?: string | undefined, dcName?: string | undefined, entries?: string | undefined): Promise<MostRecentlyUpdatedItemsView>;
83
+ /**
84
+ * Returns a list of some of the most recently updated items on the website. This endpoint
85
+ is a legacy endpoint and does not include any data on which worlds or data centers the updates happened on.
86
+ * @return Success
87
+ */
88
+ recentlyUpdated(): Promise<RecentlyUpdatedItemsView>;
89
+ /**
90
+ * @param body (optional)
91
+ * @return Success
92
+ */
93
+ upload(apiKey: string, body?: UploadParameters | undefined): Promise<void>;
94
+ /**
95
+ * Returns the total upload counts for each client application that uploads data to Universalis.
96
+ * @return Success
97
+ */
98
+ uploaderUploadCounts(): Promise<SourceUploadCountView[]>;
99
+ /**
100
+ * Returns the world upload counts and proportions of the total uploads for each world.
101
+ * @return Success
102
+ */
103
+ worldUploadCounts(): Promise<{
104
+ [key: string]: WorldUploadCountView;
105
+ }>;
106
+ /**
107
+ * Returns the number of uploads per day over the past 30 days.
108
+ * @return Success
109
+ */
110
+ uploadHistory(): Promise<UploadCountHistoryView>;
111
+ /**
112
+ * Retrieves a user list.
113
+ * @param listId The ID of the list to retrieve.
114
+ * @return Data retrieved successfully.
115
+ */
116
+ lists(listId: string): Promise<UserListView>;
117
+ /**
118
+ * Connect to the WebSocket endpoint of the API. Requires a valid WebSocket client.
119
+ * @return Success
120
+ */
121
+ ws(): Promise<void>;
122
+ /**
123
+ * Connect to the WebSocket dev endpoint of the API. Requires a valid WebSocket client.
124
+ * @return Success
125
+ */
126
+ wsDev(): Promise<void>;
127
+ }
128
+ export declare class Client implements IClient {
129
+ private http;
130
+ private baseUrl;
131
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
132
+ constructor(baseUrl?: string, http?: {
133
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
134
+ });
135
+ /**
136
+ * Returns all data centers supported by the API.
137
+ * @return Success
138
+ */
139
+ dataCenters(): Promise<DataCenter[]>;
140
+ protected processDataCenters(response: Response): Promise<DataCenter[]>;
141
+ /**
142
+ * Returns the IDs and names of all worlds supported by the API.
143
+ * @return Success
144
+ */
145
+ worlds(): Promise<World[]>;
146
+ protected processWorlds(response: Response): Promise<World[]>;
147
+ /**
148
+ * Returns the content object associated with the provided content ID. Please note that this endpoint is largely untested,
149
+ and may return inconsistent data at times.
150
+ * @param contentId The ID of the content object to retrieve.
151
+ * @return Success
152
+ */
153
+ content(contentId: string): Promise<ContentView>;
154
+ protected processContent(response: Response): Promise<ContentView>;
155
+ /**
156
+ * Get the least-recently updated items on the specified world or data center, along with the upload times for each item.
157
+ * @param world (optional) The world to request data for.
158
+ * @param dcName (optional) The data center to request data for.
159
+ * @param entries (optional) The number of entries to return (default 50, max 200).
160
+ * @return Success
161
+ */
162
+ leastRecentlyUpdated(world?: string | undefined, dcName?: string | undefined, entries?: string | undefined): Promise<MostRecentlyUpdatedItemsView>;
163
+ protected processLeastRecentlyUpdated(response: Response): Promise<MostRecentlyUpdatedItemsView>;
164
+ /**
165
+ * Retrieves the data currently shown on the market board for the requested item and world or data center.
166
+ Up to 100 item IDs can be comma-separated in order to retrieve data for multiple items at once.
167
+ * @param itemIds The item ID or comma-separated item IDs to retrieve data for.
168
+ * @param worldDcRegion The world, data center, or region to retrieve data for. This may be an ID or a name. Regions should be specified as Japan, Europe, North-America, Oceania, China, or 中国.
169
+ * @param listings (optional) The number of listings to return per item. By default, all listings will be returned.
170
+ * @param entries (optional) The number of recent history entries to return per item. By default, a maximum of 5 entries will be returned.
171
+ * @param hq (optional) Filter for HQ listings and entries. By default, both HQ and NQ listings and entries will be returned.
172
+ * @param statsWithin (optional) The amount of time before now to calculate stats over, in milliseconds. By default, this is 7 days.
173
+ * @param entriesWithin (optional) The amount of time before now to take entries within, in seconds. Negative values will be ignored.
174
+ * @param fields (optional) A comma separated list of fields that should be included in the response, if omitted will return all fields.
175
+ For example, if you're only interested in the listings price per unit you can set this to listings.pricePerUnit.
176
+ Note that querying multiple items changes the response schema, which should be reflected in the value provided
177
+ for this field. In this case, querying the price per unit requires setting this field to
178
+ items.listings.pricePerUnit.
179
+ * @param user_Agent (optional)
180
+ * @param cF_Connecting_IP (optional)
181
+ * @return Data retrieved successfully.
182
+ */
183
+ api(itemIds: string, worldDcRegion: string, listings?: string | undefined, entries?: string | undefined, hq?: string | undefined, statsWithin?: string | undefined, entriesWithin?: string | undefined, fields?: string | undefined, user_Agent?: string | undefined, cF_Connecting_IP?: string | undefined): Promise<CurrentlyShownMultiView>;
184
+ protected processApi(response: Response): Promise<CurrentlyShownMultiView>;
185
+ /**
186
+ * Retrieves the history data for the requested item and world or data center.
187
+ Up to 100 item IDs can be comma-separated in order to retrieve data for multiple items at once.
188
+ * @param itemIds The item ID or comma-separated item IDs to retrieve data for.
189
+ * @param worldDcRegion The world or data center to retrieve data for. This may be an ID or a name. Regions should be specified as Japan, Europe, North-America, Oceania, China, or 中国.
190
+ * @param entries (optional) The number of entries to return per item. By default, this is set to 1800, but may be set to a maximum of 99999.
191
+ * @param statsWithin (optional) The amount of time before now to calculate stats over, in milliseconds. By default, this is 7 days.
192
+ * @param entriesWithin (optional) The amount of time before entriesUntil or now to take entries within, in seconds. Negative values will be ignored. By default, this is 7 days.
193
+ * @param entriesUntil (optional) The UNIX timestamp in seconds to take entries until. Negative values will be ignored. By default, this is current time.
194
+ * @param minSalePrice (optional) The inclusive minimum unit sale price of entries to return.
195
+ * @param maxSalePrice (optional) The inclusive maximum unit sale price of entries to return.
196
+ * @param user_Agent (optional)
197
+ * @param cF_Connecting_IP (optional)
198
+ * @return Data retrieved successfully.
199
+ */
200
+ history(itemIds: string, worldDcRegion: string, entries?: string | undefined, statsWithin?: string | undefined, entriesWithin?: string | undefined, entriesUntil?: string | undefined, minSalePrice?: number | undefined, maxSalePrice?: number | undefined, user_Agent?: string | undefined, cF_Connecting_IP?: string | undefined): Promise<HistoryMultiView>;
201
+ protected processHistory(response: Response): Promise<HistoryMultiView>;
202
+ /**
203
+ * Retrieves the current tax rate data for the specified world. This data is provided by the Retainer Vocate in each major city.
204
+ * @param world (optional) The world or to retrieve data for. This may be an ID or a name.
205
+ * @param user_Agent (optional)
206
+ * @return Data retrieved successfully.
207
+ */
208
+ taxRates(world?: string | undefined, user_Agent?: string | undefined): Promise<TaxRatesView>;
209
+ protected processTaxRates(response: Response): Promise<TaxRatesView>;
210
+ /**
211
+ * Returns the set of marketable item IDs.
212
+ * @return Success
213
+ */
214
+ marketable(): Promise<number[]>;
215
+ protected processMarketable(response: Response): Promise<number[]>;
216
+ /**
217
+ * Get the most-recently updated items on the specified world or data center, along with the upload times for each item.
218
+ * @param world (optional) The world to request data for.
219
+ * @param dcName (optional) The data center to request data for.
220
+ * @param entries (optional) The number of entries to return (default 50, max 200).
221
+ * @return Success
222
+ */
223
+ mostRecentlyUpdated(world?: string | undefined, dcName?: string | undefined, entries?: string | undefined): Promise<MostRecentlyUpdatedItemsView>;
224
+ protected processMostRecentlyUpdated(response: Response): Promise<MostRecentlyUpdatedItemsView>;
225
+ /**
226
+ * Returns a list of some of the most recently updated items on the website. This endpoint
227
+ is a legacy endpoint and does not include any data on which worlds or data centers the updates happened on.
228
+ * @return Success
229
+ */
230
+ recentlyUpdated(): Promise<RecentlyUpdatedItemsView>;
231
+ protected processRecentlyUpdated(response: Response): Promise<RecentlyUpdatedItemsView>;
232
+ /**
233
+ * @param body (optional)
234
+ * @return Success
235
+ */
236
+ upload(apiKey: string, body?: UploadParameters | undefined): Promise<void>;
237
+ protected processUpload(response: Response): Promise<void>;
238
+ /**
239
+ * Returns the total upload counts for each client application that uploads data to Universalis.
240
+ * @return Success
241
+ */
242
+ uploaderUploadCounts(): Promise<SourceUploadCountView[]>;
243
+ protected processUploaderUploadCounts(response: Response): Promise<SourceUploadCountView[]>;
244
+ /**
245
+ * Returns the world upload counts and proportions of the total uploads for each world.
246
+ * @return Success
247
+ */
248
+ worldUploadCounts(): Promise<{
249
+ [key: string]: WorldUploadCountView;
250
+ }>;
251
+ protected processWorldUploadCounts(response: Response): Promise<{
252
+ [key: string]: WorldUploadCountView;
253
+ }>;
254
+ /**
255
+ * Returns the number of uploads per day over the past 30 days.
256
+ * @return Success
257
+ */
258
+ uploadHistory(): Promise<UploadCountHistoryView>;
259
+ protected processUploadHistory(response: Response): Promise<UploadCountHistoryView>;
260
+ /**
261
+ * Retrieves a user list.
262
+ * @param listId The ID of the list to retrieve.
263
+ * @return Data retrieved successfully.
264
+ */
265
+ lists(listId: string): Promise<UserListView>;
266
+ protected processLists(response: Response): Promise<UserListView>;
267
+ /**
268
+ * Connect to the WebSocket endpoint of the API. Requires a valid WebSocket client.
269
+ * @return Success
270
+ */
271
+ ws(): Promise<void>;
272
+ protected processWs(response: Response): Promise<void>;
273
+ /**
274
+ * Connect to the WebSocket dev endpoint of the API. Requires a valid WebSocket client.
275
+ * @return Success
276
+ */
277
+ wsDev(): Promise<void>;
278
+ protected processWsDev(response: Response): Promise<void>;
279
+ }
280
+ export declare class ProblemDetails implements IProblemDetails {
281
+ type?: string | undefined;
282
+ title?: string | undefined;
283
+ status?: number | undefined;
284
+ detail?: string | undefined;
285
+ instance?: string | undefined;
286
+ [key: string]: any;
287
+ constructor(data?: IProblemDetails);
288
+ init(_data?: any): void;
289
+ static fromJS(data: any): ProblemDetails;
290
+ toJSON(data?: any): any;
291
+ }
292
+ export interface IProblemDetails {
293
+ type?: string | undefined;
294
+ title?: string | undefined;
295
+ status?: number | undefined;
296
+ detail?: string | undefined;
297
+ instance?: string | undefined;
298
+ [key: string]: any;
299
+ }
300
+ export declare class Listing implements IListing {
301
+ listingID?: any | undefined;
302
+ hq?: any | undefined;
303
+ pricePerUnit?: number | undefined;
304
+ quantity?: number | undefined;
305
+ retainerName?: string | undefined;
306
+ retainerID?: any | undefined;
307
+ retainerCity?: number | undefined;
308
+ creatorName?: string | undefined;
309
+ onMannequin?: any | undefined;
310
+ sellerID?: any | undefined;
311
+ creatorID?: any | undefined;
312
+ stainID?: number | undefined;
313
+ lastReviewTime?: number | undefined;
314
+ materia?: Materia[] | undefined;
315
+ constructor(data?: IListing);
316
+ init(_data?: any): void;
317
+ static fromJS(data: any): Listing;
318
+ toJSON(data?: any): any;
319
+ }
320
+ export interface IListing {
321
+ listingID?: any | undefined;
322
+ hq?: any | undefined;
323
+ pricePerUnit?: number | undefined;
324
+ quantity?: number | undefined;
325
+ retainerName?: string | undefined;
326
+ retainerID?: any | undefined;
327
+ retainerCity?: number | undefined;
328
+ creatorName?: string | undefined;
329
+ onMannequin?: any | undefined;
330
+ sellerID?: any | undefined;
331
+ creatorID?: any | undefined;
332
+ stainID?: number | undefined;
333
+ lastReviewTime?: number | undefined;
334
+ materia?: Materia[] | undefined;
335
+ }
336
+ export declare class MarketTaxRates implements IMarketTaxRates {
337
+ limsaLominsa?: number | undefined;
338
+ gridania?: number | undefined;
339
+ uldah?: number | undefined;
340
+ ishgard?: number | undefined;
341
+ kugane?: number | undefined;
342
+ crystarium?: number | undefined;
343
+ sharlayan?: number | undefined;
344
+ tuliyollal?: number | undefined;
345
+ constructor(data?: IMarketTaxRates);
346
+ init(_data?: any): void;
347
+ static fromJS(data: any): MarketTaxRates;
348
+ toJSON(data?: any): any;
349
+ }
350
+ export interface IMarketTaxRates {
351
+ limsaLominsa?: number | undefined;
352
+ gridania?: number | undefined;
353
+ uldah?: number | undefined;
354
+ ishgard?: number | undefined;
355
+ kugane?: number | undefined;
356
+ crystarium?: number | undefined;
357
+ sharlayan?: number | undefined;
358
+ tuliyollal?: number | undefined;
359
+ }
360
+ export declare class Materia implements IMateria {
361
+ slotID?: number | undefined;
362
+ materiaID?: number | undefined;
363
+ constructor(data?: IMateria);
364
+ init(_data?: any): void;
365
+ static fromJS(data: any): Materia;
366
+ toJSON(data?: any): any;
367
+ }
368
+ export interface IMateria {
369
+ slotID?: number | undefined;
370
+ materiaID?: number | undefined;
371
+ }
372
+ export declare class Sale implements ISale {
373
+ hq?: any | undefined;
374
+ pricePerUnit?: number | undefined;
375
+ quantity?: number | undefined;
376
+ buyerName?: string | undefined;
377
+ onMannequin?: any | undefined;
378
+ sellerID?: any | undefined;
379
+ buyerID?: any | undefined;
380
+ timestamp?: number | undefined;
381
+ constructor(data?: ISale);
382
+ init(_data?: any): void;
383
+ static fromJS(data: any): Sale;
384
+ toJSON(data?: any): any;
385
+ }
386
+ export interface ISale {
387
+ hq?: any | undefined;
388
+ pricePerUnit?: number | undefined;
389
+ quantity?: number | undefined;
390
+ buyerName?: string | undefined;
391
+ onMannequin?: any | undefined;
392
+ sellerID?: any | undefined;
393
+ buyerID?: any | undefined;
394
+ timestamp?: number | undefined;
395
+ }
396
+ export declare class UploadParameters implements IUploadParameters {
397
+ uploaderID?: any | undefined;
398
+ worldID?: number | undefined;
399
+ itemID?: number | undefined;
400
+ marketTaxRates: MarketTaxRates;
401
+ listings?: Listing[] | undefined;
402
+ entries?: Sale[] | undefined;
403
+ contentID?: any | undefined;
404
+ characterName?: string | undefined;
405
+ constructor(data?: IUploadParameters);
406
+ init(_data?: any): void;
407
+ static fromJS(data: any): UploadParameters;
408
+ toJSON(data?: any): any;
409
+ }
410
+ export interface IUploadParameters {
411
+ uploaderID?: any | undefined;
412
+ worldID?: number | undefined;
413
+ itemID?: number | undefined;
414
+ marketTaxRates: MarketTaxRates;
415
+ listings?: Listing[] | undefined;
416
+ entries?: Sale[] | undefined;
417
+ contentID?: any | undefined;
418
+ characterName?: string | undefined;
419
+ }
420
+ export declare class CurrentlyShownMultiView implements ICurrentlyShownMultiView {
421
+ /** The item IDs that were requested. */
422
+ itemIDs?: number[] | undefined;
423
+ /** The item data that was requested, as a list. Use the nested item IDs
424
+ to pull the item you want, or consider using the v2 endpoint instead. */
425
+ items?: CurrentlyShownView[] | undefined;
426
+ /** The ID of the world requested, if applicable. */
427
+ worldID?: number | undefined;
428
+ /** The name of the DC requested, if applicable. */
429
+ dcName?: string | undefined;
430
+ /** The name of the region requested, if applicable. */
431
+ regionName?: string | undefined;
432
+ /** A list of IDs that could not be resolved to any item data. */
433
+ unresolvedItems?: number[] | undefined;
434
+ /** The name of the world requested, if applicable. */
435
+ worldName?: string | undefined;
436
+ constructor(data?: ICurrentlyShownMultiView);
437
+ init(_data?: any): void;
438
+ static fromJS(data: any): CurrentlyShownMultiView;
439
+ toJSON(data?: any): any;
440
+ }
441
+ export interface ICurrentlyShownMultiView {
442
+ /** The item IDs that were requested. */
443
+ itemIDs?: number[] | undefined;
444
+ /** The item data that was requested, as a list. Use the nested item IDs
445
+ to pull the item you want, or consider using the v2 endpoint instead. */
446
+ items?: CurrentlyShownView[] | undefined;
447
+ /** The ID of the world requested, if applicable. */
448
+ worldID?: number | undefined;
449
+ /** The name of the DC requested, if applicable. */
450
+ dcName?: string | undefined;
451
+ /** The name of the region requested, if applicable. */
452
+ regionName?: string | undefined;
453
+ /** A list of IDs that could not be resolved to any item data. */
454
+ unresolvedItems?: number[] | undefined;
455
+ /** The name of the world requested, if applicable. */
456
+ worldName?: string | undefined;
457
+ }
458
+ export declare class CurrentlyShownView implements ICurrentlyShownView {
459
+ /** The item ID. */
460
+ itemID: number;
461
+ /** The world ID, if applicable. */
462
+ worldID?: number | undefined;
463
+ /** The last upload time for this endpoint, in milliseconds since the UNIX epoch. */
464
+ lastUploadTime: number;
465
+ /** The currently-shown listings. */
466
+ listings?: ListingView[] | undefined;
467
+ /** The currently-shown sales. */
468
+ recentHistory?: SaleView[] | undefined;
469
+ /** The DC name, if applicable. */
470
+ dcName?: string | undefined;
471
+ /** The region name, if applicable. */
472
+ regionName?: string | undefined;
473
+ /** The average listing price. */
474
+ currentAveragePrice: number;
475
+ /** The average NQ listing price. */
476
+ currentAveragePriceNQ: number;
477
+ /** The average HQ listing price. */
478
+ currentAveragePriceHQ: number;
479
+ /** The average number of sales per day, over the past seven days (or the entirety of the shown sales, whichever comes first).
480
+ This number will tend to be the same for every item, because the number of shown sales is the same and over the same period.
481
+ This statistic is more useful in historical queries. */
482
+ regularSaleVelocity: number;
483
+ /** The average number of NQ sales per day, over the past seven days (or the entirety of the shown sales, whichever comes first).
484
+ This number will tend to be the same for every item, because the number of shown sales is the same and over the same period.
485
+ This statistic is more useful in historical queries. */
486
+ nqSaleVelocity: number;
487
+ /** The average number of HQ sales per day, over the past seven days (or the entirety of the shown sales, whichever comes first).
488
+ This number will tend to be the same for every item, because the number of shown sales is the same and over the same period.
489
+ This statistic is more useful in historical queries. */
490
+ hqSaleVelocity: number;
491
+ /** The average sale price. */
492
+ averagePrice: number;
493
+ /** The average NQ sale price. */
494
+ averagePriceNQ: number;
495
+ /** The average HQ sale price. */
496
+ averagePriceHQ: number;
497
+ /** The minimum listing price. */
498
+ minPrice: number;
499
+ /** The minimum NQ listing price. */
500
+ minPriceNQ: number;
501
+ /** The minimum HQ listing price. */
502
+ minPriceHQ: number;
503
+ /** The maximum listing price. */
504
+ maxPrice: number;
505
+ /** The maximum NQ listing price. */
506
+ maxPriceNQ: number;
507
+ /** The maximum HQ listing price. */
508
+ maxPriceHQ: number;
509
+ /** A map of quantities to listing counts, representing the number of listings of each quantity. */
510
+ stackSizeHistogram?: {
511
+ [key: string]: number;
512
+ } | undefined;
513
+ /** A map of quantities to NQ listing counts, representing the number of listings of each quantity. */
514
+ stackSizeHistogramNQ?: {
515
+ [key: string]: number;
516
+ } | undefined;
517
+ /** A map of quantities to HQ listing counts, representing the number of listings of each quantity. */
518
+ stackSizeHistogramHQ?: {
519
+ [key: string]: number;
520
+ } | undefined;
521
+ /** The world name, if applicable. */
522
+ worldName?: string | undefined;
523
+ /** The last upload times in milliseconds since epoch for each world in the response, if this is a DC request. */
524
+ worldUploadTimes?: {
525
+ [key: string]: number;
526
+ } | undefined;
527
+ /** The number of listings retrieved for the request. When using the "listings" limit parameter, this may be
528
+ different from the number of sale entries returned in an API response. */
529
+ listingsCount: number;
530
+ /** The number of sale entries retrieved for the request. When using the "entries" limit parameter, this may be
531
+ different from the number of sale entries returned in an API response. */
532
+ recentHistoryCount: number;
533
+ /** The number of items (not listings) up for sale. */
534
+ unitsForSale: number;
535
+ /** The number of items (not sale entries) sold over the retrieved sales. */
536
+ unitsSold: number;
537
+ /** Whether this item has ever been updated. Useful for newly-released items. */
538
+ readonly hasData: boolean;
539
+ constructor(data?: ICurrentlyShownView);
540
+ init(_data?: any): void;
541
+ static fromJS(data: any): CurrentlyShownView;
542
+ toJSON(data?: any): any;
543
+ }
544
+ export interface ICurrentlyShownView {
545
+ /** The item ID. */
546
+ itemID: number;
547
+ /** The world ID, if applicable. */
548
+ worldID?: number | undefined;
549
+ /** The last upload time for this endpoint, in milliseconds since the UNIX epoch. */
550
+ lastUploadTime: number;
551
+ /** The currently-shown listings. */
552
+ listings?: ListingView[] | undefined;
553
+ /** The currently-shown sales. */
554
+ recentHistory?: SaleView[] | undefined;
555
+ /** The DC name, if applicable. */
556
+ dcName?: string | undefined;
557
+ /** The region name, if applicable. */
558
+ regionName?: string | undefined;
559
+ /** The average listing price. */
560
+ currentAveragePrice: number;
561
+ /** The average NQ listing price. */
562
+ currentAveragePriceNQ: number;
563
+ /** The average HQ listing price. */
564
+ currentAveragePriceHQ: number;
565
+ /** The average number of sales per day, over the past seven days (or the entirety of the shown sales, whichever comes first).
566
+ This number will tend to be the same for every item, because the number of shown sales is the same and over the same period.
567
+ This statistic is more useful in historical queries. */
568
+ regularSaleVelocity: number;
569
+ /** The average number of NQ sales per day, over the past seven days (or the entirety of the shown sales, whichever comes first).
570
+ This number will tend to be the same for every item, because the number of shown sales is the same and over the same period.
571
+ This statistic is more useful in historical queries. */
572
+ nqSaleVelocity: number;
573
+ /** The average number of HQ sales per day, over the past seven days (or the entirety of the shown sales, whichever comes first).
574
+ This number will tend to be the same for every item, because the number of shown sales is the same and over the same period.
575
+ This statistic is more useful in historical queries. */
576
+ hqSaleVelocity: number;
577
+ /** The average sale price. */
578
+ averagePrice: number;
579
+ /** The average NQ sale price. */
580
+ averagePriceNQ: number;
581
+ /** The average HQ sale price. */
582
+ averagePriceHQ: number;
583
+ /** The minimum listing price. */
584
+ minPrice: number;
585
+ /** The minimum NQ listing price. */
586
+ minPriceNQ: number;
587
+ /** The minimum HQ listing price. */
588
+ minPriceHQ: number;
589
+ /** The maximum listing price. */
590
+ maxPrice: number;
591
+ /** The maximum NQ listing price. */
592
+ maxPriceNQ: number;
593
+ /** The maximum HQ listing price. */
594
+ maxPriceHQ: number;
595
+ /** A map of quantities to listing counts, representing the number of listings of each quantity. */
596
+ stackSizeHistogram?: {
597
+ [key: string]: number;
598
+ } | undefined;
599
+ /** A map of quantities to NQ listing counts, representing the number of listings of each quantity. */
600
+ stackSizeHistogramNQ?: {
601
+ [key: string]: number;
602
+ } | undefined;
603
+ /** A map of quantities to HQ listing counts, representing the number of listings of each quantity. */
604
+ stackSizeHistogramHQ?: {
605
+ [key: string]: number;
606
+ } | undefined;
607
+ /** The world name, if applicable. */
608
+ worldName?: string | undefined;
609
+ /** The last upload times in milliseconds since epoch for each world in the response, if this is a DC request. */
610
+ worldUploadTimes?: {
611
+ [key: string]: number;
612
+ } | undefined;
613
+ /** The number of listings retrieved for the request. When using the "listings" limit parameter, this may be
614
+ different from the number of sale entries returned in an API response. */
615
+ listingsCount: number;
616
+ /** The number of sale entries retrieved for the request. When using the "entries" limit parameter, this may be
617
+ different from the number of sale entries returned in an API response. */
618
+ recentHistoryCount: number;
619
+ /** The number of items (not listings) up for sale. */
620
+ unitsForSale: number;
621
+ /** The number of items (not sale entries) sold over the retrieved sales. */
622
+ unitsSold: number;
623
+ /** Whether this item has ever been updated. Useful for newly-released items. */
624
+ hasData: boolean;
625
+ }
626
+ export declare class ContentView implements IContentView {
627
+ /** The content ID of the object. */
628
+ contentID?: string | undefined;
629
+ /** The content type of this object. */
630
+ contentType?: string | undefined;
631
+ /** The character name associated with this character object, if this is one. */
632
+ characterName?: string | undefined;
633
+ constructor(data?: IContentView);
634
+ init(_data?: any): void;
635
+ static fromJS(data: any): ContentView;
636
+ toJSON(data?: any): any;
637
+ }
638
+ export interface IContentView {
639
+ /** The content ID of the object. */
640
+ contentID?: string | undefined;
641
+ /** The content type of this object. */
642
+ contentType?: string | undefined;
643
+ /** The character name associated with this character object, if this is one. */
644
+ characterName?: string | undefined;
645
+ }
646
+ export declare class MostRecentlyUpdatedItemsView implements IMostRecentlyUpdatedItemsView {
647
+ /** A list of item upload information in timestamp-descending order. */
648
+ items?: WorldItemRecencyView[] | undefined;
649
+ constructor(data?: IMostRecentlyUpdatedItemsView);
650
+ init(_data?: any): void;
651
+ static fromJS(data: any): MostRecentlyUpdatedItemsView;
652
+ toJSON(data?: any): any;
653
+ }
654
+ export interface IMostRecentlyUpdatedItemsView {
655
+ /** A list of item upload information in timestamp-descending order. */
656
+ items?: WorldItemRecencyView[] | undefined;
657
+ }
658
+ export declare class RecentlyUpdatedItemsView implements IRecentlyUpdatedItemsView {
659
+ /** A list of item IDs, with the most recent first. */
660
+ items?: number[] | undefined;
661
+ constructor(data?: IRecentlyUpdatedItemsView);
662
+ init(_data?: any): void;
663
+ static fromJS(data: any): RecentlyUpdatedItemsView;
664
+ toJSON(data?: any): any;
665
+ }
666
+ export interface IRecentlyUpdatedItemsView {
667
+ /** A list of item IDs, with the most recent first. */
668
+ items?: number[] | undefined;
669
+ }
670
+ export declare class SourceUploadCountView implements ISourceUploadCountView {
671
+ /** The name of the client application. */
672
+ sourceName?: string | undefined;
673
+ /** The number of uploads originating from the client application. */
674
+ uploadCount: number;
675
+ constructor(data?: ISourceUploadCountView);
676
+ init(_data?: any): void;
677
+ static fromJS(data: any): SourceUploadCountView;
678
+ toJSON(data?: any): any;
679
+ }
680
+ export interface ISourceUploadCountView {
681
+ /** The name of the client application. */
682
+ sourceName?: string | undefined;
683
+ /** The number of uploads originating from the client application. */
684
+ uploadCount: number;
685
+ }
686
+ export declare class UploadCountHistoryView implements IUploadCountHistoryView {
687
+ /** The list of upload counts per day, over the past 30 days. */
688
+ uploadCountByDay?: number[] | undefined;
689
+ constructor(data?: IUploadCountHistoryView);
690
+ init(_data?: any): void;
691
+ static fromJS(data: any): UploadCountHistoryView;
692
+ toJSON(data?: any): any;
693
+ }
694
+ export interface IUploadCountHistoryView {
695
+ /** The list of upload counts per day, over the past 30 days. */
696
+ uploadCountByDay?: number[] | undefined;
697
+ }
698
+ export declare class WorldItemRecencyView implements IWorldItemRecencyView {
699
+ /** The item ID. */
700
+ itemID: number;
701
+ /** The last upload time for the item on the listed world. */
702
+ lastUploadTime: number;
703
+ /** The world ID. */
704
+ worldID: number;
705
+ /** The world name. */
706
+ worldName?: string | undefined;
707
+ constructor(data?: IWorldItemRecencyView);
708
+ init(_data?: any): void;
709
+ static fromJS(data: any): WorldItemRecencyView;
710
+ toJSON(data?: any): any;
711
+ }
712
+ export interface IWorldItemRecencyView {
713
+ /** The item ID. */
714
+ itemID: number;
715
+ /** The last upload time for the item on the listed world. */
716
+ lastUploadTime: number;
717
+ /** The world ID. */
718
+ worldID: number;
719
+ /** The world name. */
720
+ worldName?: string | undefined;
721
+ }
722
+ export declare class WorldUploadCountView implements IWorldUploadCountView {
723
+ /** The number of times an upload has occurred on this world. */
724
+ count: number;
725
+ /** The proportion of uploads on this world to the total number of uploads. */
726
+ proportion: number;
727
+ constructor(data?: IWorldUploadCountView);
728
+ init(_data?: any): void;
729
+ static fromJS(data: any): WorldUploadCountView;
730
+ toJSON(data?: any): any;
731
+ }
732
+ export interface IWorldUploadCountView {
733
+ /** The number of times an upload has occurred on this world. */
734
+ count: number;
735
+ /** The proportion of uploads on this world to the total number of uploads. */
736
+ proportion: number;
737
+ }
738
+ export declare class HistoryMultiView implements IHistoryMultiView {
739
+ /** The item IDs that were requested. */
740
+ itemIDs?: number[] | undefined;
741
+ /** The item data that was requested, as a list. Use the nested item IDs
742
+ to pull the item you want, or consider using the v2 endpoint instead. */
743
+ items?: HistoryView[] | undefined;
744
+ /** The ID of the world requested, if applicable. */
745
+ worldID?: number | undefined;
746
+ /** The name of the DC requested, if applicable. */
747
+ dcName?: string | undefined;
748
+ /** The name of the region requested, if applicable. */
749
+ regionName?: string | undefined;
750
+ /** A list of IDs that could not be resolved to any item data. */
751
+ unresolvedItems?: number[] | undefined;
752
+ /** The name of the world requested, if applicable. */
753
+ worldName?: string | undefined;
754
+ constructor(data?: IHistoryMultiView);
755
+ init(_data?: any): void;
756
+ static fromJS(data: any): HistoryMultiView;
757
+ toJSON(data?: any): any;
758
+ }
759
+ export interface IHistoryMultiView {
760
+ /** The item IDs that were requested. */
761
+ itemIDs?: number[] | undefined;
762
+ /** The item data that was requested, as a list. Use the nested item IDs
763
+ to pull the item you want, or consider using the v2 endpoint instead. */
764
+ items?: HistoryView[] | undefined;
765
+ /** The ID of the world requested, if applicable. */
766
+ worldID?: number | undefined;
767
+ /** The name of the DC requested, if applicable. */
768
+ dcName?: string | undefined;
769
+ /** The name of the region requested, if applicable. */
770
+ regionName?: string | undefined;
771
+ /** A list of IDs that could not be resolved to any item data. */
772
+ unresolvedItems?: number[] | undefined;
773
+ /** The name of the world requested, if applicable. */
774
+ worldName?: string | undefined;
775
+ }
776
+ export declare class HistoryView implements IHistoryView {
777
+ /** The item ID. */
778
+ itemID: number;
779
+ /** The world ID, if applicable. */
780
+ worldID?: number | undefined;
781
+ /** The last upload time for this endpoint, in milliseconds since the UNIX epoch. */
782
+ lastUploadTime: number;
783
+ /** The historical sales. */
784
+ entries?: MinimizedSaleView[] | undefined;
785
+ /** The DC name, if applicable. */
786
+ dcName?: string | undefined;
787
+ /** The region name, if applicable. */
788
+ regionName?: string | undefined;
789
+ /** A map of quantities to sale counts, representing the number of sales of each quantity. */
790
+ stackSizeHistogram?: {
791
+ [key: string]: number;
792
+ } | undefined;
793
+ /** A map of quantities to NQ sale counts, representing the number of sales of each quantity. */
794
+ stackSizeHistogramNQ?: {
795
+ [key: string]: number;
796
+ } | undefined;
797
+ /** A map of quantities to HQ sale counts, representing the number of sales of each quantity. */
798
+ stackSizeHistogramHQ?: {
799
+ [key: string]: number;
800
+ } | undefined;
801
+ /** The average number of sales per day, over the past seven days (or the entirety of the shown sales, whichever comes first). */
802
+ regularSaleVelocity: number;
803
+ /** The average number of NQ sales per day, over the past seven days (or the entirety of the shown sales, whichever comes first). */
804
+ nqSaleVelocity: number;
805
+ /** The average number of HQ sales per day, over the past seven days (or the entirety of the shown sales, whichever comes first). */
806
+ hqSaleVelocity: number;
807
+ /** The world name, if applicable. */
808
+ worldName?: string | undefined;
809
+ constructor(data?: IHistoryView);
810
+ init(_data?: any): void;
811
+ static fromJS(data: any): HistoryView;
812
+ toJSON(data?: any): any;
813
+ }
814
+ export interface IHistoryView {
815
+ /** The item ID. */
816
+ itemID: number;
817
+ /** The world ID, if applicable. */
818
+ worldID?: number | undefined;
819
+ /** The last upload time for this endpoint, in milliseconds since the UNIX epoch. */
820
+ lastUploadTime: number;
821
+ /** The historical sales. */
822
+ entries?: MinimizedSaleView[] | undefined;
823
+ /** The DC name, if applicable. */
824
+ dcName?: string | undefined;
825
+ /** The region name, if applicable. */
826
+ regionName?: string | undefined;
827
+ /** A map of quantities to sale counts, representing the number of sales of each quantity. */
828
+ stackSizeHistogram?: {
829
+ [key: string]: number;
830
+ } | undefined;
831
+ /** A map of quantities to NQ sale counts, representing the number of sales of each quantity. */
832
+ stackSizeHistogramNQ?: {
833
+ [key: string]: number;
834
+ } | undefined;
835
+ /** A map of quantities to HQ sale counts, representing the number of sales of each quantity. */
836
+ stackSizeHistogramHQ?: {
837
+ [key: string]: number;
838
+ } | undefined;
839
+ /** The average number of sales per day, over the past seven days (or the entirety of the shown sales, whichever comes first). */
840
+ regularSaleVelocity: number;
841
+ /** The average number of NQ sales per day, over the past seven days (or the entirety of the shown sales, whichever comes first). */
842
+ nqSaleVelocity: number;
843
+ /** The average number of HQ sales per day, over the past seven days (or the entirety of the shown sales, whichever comes first). */
844
+ hqSaleVelocity: number;
845
+ /** The world name, if applicable. */
846
+ worldName?: string | undefined;
847
+ }
848
+ export declare class ListingView implements IListingView {
849
+ /** The time that this listing was posted, in seconds since the UNIX epoch. */
850
+ lastReviewTime: number;
851
+ /** The price per unit sold. */
852
+ pricePerUnit: number;
853
+ /** The stack size sold. */
854
+ quantity: number;
855
+ /** The ID of the dye on this item. */
856
+ stainID: number;
857
+ /** The world name, if applicable. */
858
+ worldName?: string | undefined;
859
+ /** The world ID, if applicable. */
860
+ worldID?: number | undefined;
861
+ /** The creator's character name. */
862
+ creatorName?: string | undefined;
863
+ /** A SHA256 hash of the creator's ID. */
864
+ creatorID?: string | undefined;
865
+ /** Whether or not the item is high-quality. */
866
+ hq: boolean;
867
+ /** Whether or not the item is crafted. */
868
+ isCrafted: boolean;
869
+ /** The ID of this listing. */
870
+ listingID?: string | undefined;
871
+ /** The materia on this item. */
872
+ materia?: MateriaView[] | undefined;
873
+ /** Whether or not the item is being sold on a mannequin. */
874
+ onMannequin: boolean;
875
+ /** The city ID of the retainer. This is a game ID; all possible values can be seen at
876
+ https://xivapi.com/Town.
877
+
878
+ Limsa Lominsa = 1
879
+ Gridania = 2
880
+ Ul'dah = 3
881
+ Ishgard = 4
882
+ Kugane = 7
883
+ Crystarium = 10
884
+ Old Sharlayan = 12 */
885
+ retainerCity: number;
886
+ /** The retainer's ID. */
887
+ retainerID?: string | undefined;
888
+ /** The retainer's name. */
889
+ retainerName?: string | undefined;
890
+ /** A SHA256 hash of the seller's ID. */
891
+ sellerID?: string | undefined;
892
+ /** The total price. */
893
+ total: number;
894
+ /** The Gil sales tax (GST) to be added to the total price during purchase. */
895
+ tax: number;
896
+ constructor(data?: IListingView);
897
+ init(_data?: any): void;
898
+ static fromJS(data: any): ListingView;
899
+ toJSON(data?: any): any;
900
+ }
901
+ export interface IListingView {
902
+ /** The time that this listing was posted, in seconds since the UNIX epoch. */
903
+ lastReviewTime: number;
904
+ /** The price per unit sold. */
905
+ pricePerUnit: number;
906
+ /** The stack size sold. */
907
+ quantity: number;
908
+ /** The ID of the dye on this item. */
909
+ stainID: number;
910
+ /** The world name, if applicable. */
911
+ worldName?: string | undefined;
912
+ /** The world ID, if applicable. */
913
+ worldID?: number | undefined;
914
+ /** The creator's character name. */
915
+ creatorName?: string | undefined;
916
+ /** A SHA256 hash of the creator's ID. */
917
+ creatorID?: string | undefined;
918
+ /** Whether or not the item is high-quality. */
919
+ hq: boolean;
920
+ /** Whether or not the item is crafted. */
921
+ isCrafted: boolean;
922
+ /** The ID of this listing. */
923
+ listingID?: string | undefined;
924
+ /** The materia on this item. */
925
+ materia?: MateriaView[] | undefined;
926
+ /** Whether or not the item is being sold on a mannequin. */
927
+ onMannequin: boolean;
928
+ /** The city ID of the retainer. This is a game ID; all possible values can be seen at
929
+ https://xivapi.com/Town.
930
+
931
+ Limsa Lominsa = 1
932
+ Gridania = 2
933
+ Ul'dah = 3
934
+ Ishgard = 4
935
+ Kugane = 7
936
+ Crystarium = 10
937
+ Old Sharlayan = 12 */
938
+ retainerCity: number;
939
+ /** The retainer's ID. */
940
+ retainerID?: string | undefined;
941
+ /** The retainer's name. */
942
+ retainerName?: string | undefined;
943
+ /** A SHA256 hash of the seller's ID. */
944
+ sellerID?: string | undefined;
945
+ /** The total price. */
946
+ total: number;
947
+ /** The Gil sales tax (GST) to be added to the total price during purchase. */
948
+ tax: number;
949
+ }
950
+ export declare class MateriaView implements IMateriaView {
951
+ /** The materia slot. */
952
+ slotID: number;
953
+ /** The materia item ID. */
954
+ materiaID: number;
955
+ constructor(data?: IMateriaView);
956
+ init(_data?: any): void;
957
+ static fromJS(data: any): MateriaView;
958
+ toJSON(data?: any): any;
959
+ }
960
+ export interface IMateriaView {
961
+ /** The materia slot. */
962
+ slotID: number;
963
+ /** The materia item ID. */
964
+ materiaID: number;
965
+ }
966
+ export declare class MinimizedSaleView implements IMinimizedSaleView {
967
+ /** Whether or not the item was high-quality. */
968
+ hq: boolean;
969
+ /** The price per unit sold. */
970
+ pricePerUnit: number;
971
+ /** The stack size sold. */
972
+ quantity: number;
973
+ /** The buyer's character name. This may be null. */
974
+ buyerName?: string | undefined;
975
+ /** Whether or not this was purchased from a mannequin. This may be null. */
976
+ onMannequin?: boolean | undefined;
977
+ /** The sale time, in seconds since the UNIX epoch. */
978
+ timestamp: number;
979
+ /** The world name, if applicable. */
980
+ worldName?: string | undefined;
981
+ /** The world ID, if applicable. */
982
+ worldID?: number | undefined;
983
+ constructor(data?: IMinimizedSaleView);
984
+ init(_data?: any): void;
985
+ static fromJS(data: any): MinimizedSaleView;
986
+ toJSON(data?: any): any;
987
+ }
988
+ export interface IMinimizedSaleView {
989
+ /** Whether or not the item was high-quality. */
990
+ hq: boolean;
991
+ /** The price per unit sold. */
992
+ pricePerUnit: number;
993
+ /** The stack size sold. */
994
+ quantity: number;
995
+ /** The buyer's character name. This may be null. */
996
+ buyerName?: string | undefined;
997
+ /** Whether or not this was purchased from a mannequin. This may be null. */
998
+ onMannequin?: boolean | undefined;
999
+ /** The sale time, in seconds since the UNIX epoch. */
1000
+ timestamp: number;
1001
+ /** The world name, if applicable. */
1002
+ worldName?: string | undefined;
1003
+ /** The world ID, if applicable. */
1004
+ worldID?: number | undefined;
1005
+ }
1006
+ export declare class SaleView implements ISaleView {
1007
+ /** Whether or not the item was high-quality. */
1008
+ hq: boolean;
1009
+ /** The price per unit sold. */
1010
+ pricePerUnit: number;
1011
+ /** The stack size sold. */
1012
+ quantity: number;
1013
+ /** The sale time, in seconds since the UNIX epoch. */
1014
+ timestamp: number;
1015
+ /** Whether or not this was purchased from a mannequin. This may be null. */
1016
+ onMannequin?: boolean | undefined;
1017
+ /** The world name, if applicable. */
1018
+ worldName?: string | undefined;
1019
+ /** The world ID, if applicable. */
1020
+ worldID?: number | undefined;
1021
+ /** The buyer name. */
1022
+ buyerName?: string | undefined;
1023
+ /** The total price. */
1024
+ total: number;
1025
+ constructor(data?: ISaleView);
1026
+ init(_data?: any): void;
1027
+ static fromJS(data: any): SaleView;
1028
+ toJSON(data?: any): any;
1029
+ }
1030
+ export interface ISaleView {
1031
+ /** Whether or not the item was high-quality. */
1032
+ hq: boolean;
1033
+ /** The price per unit sold. */
1034
+ pricePerUnit: number;
1035
+ /** The stack size sold. */
1036
+ quantity: number;
1037
+ /** The sale time, in seconds since the UNIX epoch. */
1038
+ timestamp: number;
1039
+ /** Whether or not this was purchased from a mannequin. This may be null. */
1040
+ onMannequin?: boolean | undefined;
1041
+ /** The world name, if applicable. */
1042
+ worldName?: string | undefined;
1043
+ /** The world ID, if applicable. */
1044
+ worldID?: number | undefined;
1045
+ /** The buyer name. */
1046
+ buyerName?: string | undefined;
1047
+ /** The total price. */
1048
+ total: number;
1049
+ }
1050
+ export declare class TaxRatesView implements ITaxRatesView {
1051
+ /** The percent retainer tax in Limsa Lominsa. */
1052
+ limsa_Lominsa: number;
1053
+ /** The percent retainer tax in Gridania. */
1054
+ gridania: number;
1055
+ /** The percent retainer tax in Ul'dah. */
1056
+ uldah: number;
1057
+ /** The percent retainer tax in Ishgard. */
1058
+ ishgard: number;
1059
+ /** The percent retainer tax in Kugane. */
1060
+ kugane: number;
1061
+ /** The percent retainer tax in the Crystarium. */
1062
+ crystarium: number;
1063
+ /** The percent retainer tax in Old Sharlayan. */
1064
+ old_Sharlayan: number;
1065
+ /** The percent retainer tax in Tuliyollal. */
1066
+ tuliyollal: number;
1067
+ constructor(data?: ITaxRatesView);
1068
+ init(_data?: any): void;
1069
+ static fromJS(data: any): TaxRatesView;
1070
+ toJSON(data?: any): any;
1071
+ }
1072
+ export interface ITaxRatesView {
1073
+ /** The percent retainer tax in Limsa Lominsa. */
1074
+ limsa_Lominsa: number;
1075
+ /** The percent retainer tax in Gridania. */
1076
+ gridania: number;
1077
+ /** The percent retainer tax in Ul'dah. */
1078
+ uldah: number;
1079
+ /** The percent retainer tax in Ishgard. */
1080
+ ishgard: number;
1081
+ /** The percent retainer tax in Kugane. */
1082
+ kugane: number;
1083
+ /** The percent retainer tax in the Crystarium. */
1084
+ crystarium: number;
1085
+ /** The percent retainer tax in Old Sharlayan. */
1086
+ old_Sharlayan: number;
1087
+ /** The percent retainer tax in Tuliyollal. */
1088
+ tuliyollal: number;
1089
+ }
1090
+ export declare class UserListView implements IUserListView {
1091
+ /** The list's ID. */
1092
+ id?: string | undefined;
1093
+ /** The time that this list was created, in milliseconds since the UNIX epoch. */
1094
+ created?: string | undefined;
1095
+ /** The time that this list was updated, in milliseconds since the UNIX epoch. */
1096
+ updated?: string | undefined;
1097
+ /** The name of this list. */
1098
+ name?: string | undefined;
1099
+ /** The IDs of the list items. */
1100
+ itemIDs?: number[] | undefined;
1101
+ constructor(data?: IUserListView);
1102
+ init(_data?: any): void;
1103
+ static fromJS(data: any): UserListView;
1104
+ toJSON(data?: any): any;
1105
+ }
1106
+ export interface IUserListView {
1107
+ /** The list's ID. */
1108
+ id?: string | undefined;
1109
+ /** The time that this list was created, in milliseconds since the UNIX epoch. */
1110
+ created?: string | undefined;
1111
+ /** The time that this list was updated, in milliseconds since the UNIX epoch. */
1112
+ updated?: string | undefined;
1113
+ /** The name of this list. */
1114
+ name?: string | undefined;
1115
+ /** The IDs of the list items. */
1116
+ itemIDs?: number[] | undefined;
1117
+ }
1118
+ export declare class DataCenter implements IDataCenter {
1119
+ name?: string | undefined;
1120
+ region?: string | undefined;
1121
+ worlds?: number[] | undefined;
1122
+ constructor(data?: IDataCenter);
1123
+ init(_data?: any): void;
1124
+ static fromJS(data: any): DataCenter;
1125
+ toJSON(data?: any): any;
1126
+ }
1127
+ export interface IDataCenter {
1128
+ name?: string | undefined;
1129
+ region?: string | undefined;
1130
+ worlds?: number[] | undefined;
1131
+ }
1132
+ export declare class World implements IWorld {
1133
+ id: number;
1134
+ name?: string | undefined;
1135
+ constructor(data?: IWorld);
1136
+ init(_data?: any): void;
1137
+ static fromJS(data: any): World;
1138
+ toJSON(data?: any): any;
1139
+ }
1140
+ export interface IWorld {
1141
+ id: number;
1142
+ name?: string | undefined;
1143
+ }
1144
+ export declare class SwaggerException extends Error {
1145
+ message: string;
1146
+ status: number;
1147
+ response: string;
1148
+ headers: {
1149
+ [key: string]: any;
1150
+ };
1151
+ result: any;
1152
+ constructor(message: string, status: number, response: string, headers: {
1153
+ [key: string]: any;
1154
+ }, result: any);
1155
+ protected isSwaggerException: boolean;
1156
+ static isSwaggerException(obj: any): obj is SwaggerException;
1157
+ }
1158
+ //# sourceMappingURL=v1.d.ts.map