KtUniversalis

expect object KtUniversalis
actual object KtUniversalis
actual object KtUniversalis

Functions

Link copied to clipboard
expect suspend fun getAvailableDataCenters(): List<DataCenter>

Returns all data centers supported by the Universalis API.

actual suspend fun getAvailableDataCenters(): List<DataCenter>

Returns all data centers supported by the Universalis API.

actual suspend fun getAvailableDataCenters(): List<DataCenter>

Returns all data centers supported by the Universalis API.

getAvailableDataCentersAsync
Link copied to clipboard

Returns all data centers supported by the Universalis API.

Returns all data centers supported by the Universalis API. For use outside of Kotlin coroutines.

Link copied to clipboard
expect suspend fun getAvailableWorlds(): List<World>

Returns the IDs and names of all worlds supported by the Universalis API.

actual suspend fun getAvailableWorlds(): List<World>

Returns the IDs and names of all worlds supported by the Universalis API.

actual suspend fun getAvailableWorlds(): List<World>

Returns the IDs and names of all worlds supported by the Universalis API.

getAvailableWorldsAsync
Link copied to clipboard

Returns the IDs and names of all worlds supported by the Universalis API.

Returns the IDs and names of all worlds supported by the Universalis API. For use outside of Kotlin coroutines.

Link copied to clipboard
expect suspend fun getLeastRecentlyUpdatedItems(world: String? = null, dcName: String? = null, entries: Int? = null): RecentlyUpdatedItems

Returns the least-recently updated items on the specified world or data center, along with the upload times for each item.

actual suspend fun getLeastRecentlyUpdatedItems(world: String?, dcName: String?, entries: Int?): RecentlyUpdatedItems

Returns the least-recently updated items on the specified world or data center, along with the upload times for each item.

actual suspend fun getLeastRecentlyUpdatedItems(world: String?, dcName: String?, entries: Int?): RecentlyUpdatedItems

Returns the least-recently updated items on the specified world or data center, along with the upload times for each item.

getLeastRecentlyUpdatedItemsAsync
Link copied to clipboard
fun getLeastRecentlyUpdatedItemsAsync(world: String? = null, dcName: String? = null, entries: Int? = null): Promise<RecentlyUpdatedItems>

Returns the least-recently updated items on the specified world or data center, along with the upload times for each item.

fun getLeastRecentlyUpdatedItemsAsync(world: String? = null, dcName: String? = null, entries: Int? = null): CompletableFuture<RecentlyUpdatedItems>

Returns the least-recently updated items on the specified world or data center, along with the upload times for each item. For use outside of Kotlin coroutines.

Link copied to clipboard
expect suspend fun getMarketableItems(): List<Int>

Returns a list of marketable item IDs.

actual suspend fun getMarketableItems(): List<Int>

Returns a list of marketable item IDs.

actual suspend fun getMarketableItems(): List<Int>

Returns a list of marketable item IDs.

getMarketableItemsAsync
Link copied to clipboard

Returns an array of marketable item IDs.

Returns a list of marketable item IDs. For use outside of Kotlin coroutines.

Link copied to clipboard
expect suspend fun getMarketBoardCurrentData(worldDcRegion: String, itemIds: List<Int>, listings: Int? = null, entries: Int? = null, noGst: Boolean? = null, hq: Boolean? = null, statsWithin: Int? = null, entriesWithin: Int? = null, fields: List<String>? = null): CurrentlyShown

Returns the data currently shown on the market board for the requested list of item IDs and world or data center.

actual suspend fun getMarketBoardCurrentData(worldDcRegion: String, itemIds: List<Int>, listings: Int?, entries: Int?, noGst: Boolean?, hq: Boolean?, statsWithin: Int?, entriesWithin: Int?, fields: List<String>?): CurrentlyShown

Returns the data currently shown on the market board for the requested list of item IDs and world or data center.

actual suspend fun getMarketBoardCurrentData(worldDcRegion: String, itemIds: List<Int>, listings: Int?, entries: Int?, noGst: Boolean?, hq: Boolean?, statsWithin: Int?, entriesWithin: Int?, fields: List<String>?): CurrentlyShown

Returns the data currently shown on the market board for the requested array of item IDs and world or data center.

Link copied to clipboard
fun getMarketBoardCurrentDataAsync(worldDcRegion: String, itemIds: IntArray, listings: Int? = null, entries: Int? = null, noGst: Boolean? = null, hq: Boolean? = null, statsWithin: Int? = null, entriesWithin: Int? = null, fields: Array<String>? = null): Promise<CurrentlyShown>

Returns the data currently shown on the market board for the requested array of item IDs and world or data center.

fun getMarketBoardCurrentDataAsync(worldDcRegion: String, itemIds: List<Int>, listings: Int? = null, entries: Int? = null, noGst: Boolean? = null, hq: Boolean? = null, statsWithin: Int? = null, entriesWithin: Int? = null, fields: List<String>? = null): CompletableFuture<CurrentlyShown>

Returns the data currently shown on the market board for the requested array of item IDs and world or data center. For use outside of Kotlin coroutines.

Link copied to clipboard
expect suspend fun getMarketBoardSaleHistory(worldDcRegion: String, itemIds: List<Int>, entriesToReturn: Int? = null, statsWithin: Int? = null, entriesWithin: Int? = null): History

Returns the history data for the requested list of item IDs and world or data center.

actual suspend fun getMarketBoardSaleHistory(worldDcRegion: String, itemIds: List<Int>, entriesToReturn: Int?, statsWithin: Int?, entriesWithin: Int?): History

Returns the history data for the requested list of item IDs and world or data center.

actual suspend fun getMarketBoardSaleHistory(worldDcRegion: String, itemIds: List<Int>, entriesToReturn: Int?, statsWithin: Int?, entriesWithin: Int?): History

Returns the history data for the requested array of item IDs and world or data center.

Link copied to clipboard
fun getMarketBoardSaleHistoryAsync(worldDcRegion: String, itemIds: IntArray, entriesToReturn: Int? = null, statsWithin: Int? = null, entriesWithin: Int? = null): Promise<History>

Returns the history data for the requested array of item IDs and world or data center.

fun getMarketBoardSaleHistoryAsync(worldDcRegion: String, itemIds: List<Int>, entriesToReturn: Int? = null, statsWithin: Int? = null, entriesWithin: Int? = null): CompletableFuture<History>

Returns the history data for the requested array of item IDs and world or data center. For use outside of Kotlin coroutines.

Link copied to clipboard
expect suspend fun getMarketTaxRates(world: String): TaxRates

Returns the current tax rate data for the specified world.

actual suspend fun getMarketTaxRates(world: String): TaxRates

Returns the current tax rate data for the specified world.

actual suspend fun getMarketTaxRates(world: String): TaxRates

Returns the current tax rate data for the specified world.

getMarketTaxRatesAsync
Link copied to clipboard

Returns the current tax rate data for the specified world.

Returns the current tax rate data for the specified world. For use outside of Kotlin coroutines.

Link copied to clipboard
expect suspend fun getMostRecentlyUpdatedItems(world: String? = null, dcName: String? = null, entries: Int? = null): RecentlyUpdatedItems

Returns the most-recently updated items on the specified world or data center, along with the upload times for each item.

actual suspend fun getMostRecentlyUpdatedItems(world: String?, dcName: String?, entries: Int?): RecentlyUpdatedItems

Returns the most-recently updated items on the specified world or data center, along with the upload times for each item.

actual suspend fun getMostRecentlyUpdatedItems(world: String?, dcName: String?, entries: Int?): RecentlyUpdatedItems

Returns the most-recently updated items on the specified world or data center, along with the upload times for each item.

getMostRecentlyUpdatedItemsAsync
Link copied to clipboard
fun getMostRecentlyUpdatedItemsAsync(world: String? = null, dcName: String? = null, entries: Int? = null): Promise<RecentlyUpdatedItems>

Returns the most-recently updated items on the specified world or data center, along with the upload times for each item.

fun getMostRecentlyUpdatedItemsAsync(world: String? = null, dcName: String? = null, entries: Int? = null): CompletableFuture<RecentlyUpdatedItems>

Returns the most-recently updated items on the specified world or data center, along with the upload times for each item. For use outside of Kotlin coroutines.

Link copied to clipboard

Returns the total upload counts for each client application that uploads data to Universalis.

Returns the total upload counts for each client application that uploads data to Universalis.

Returns the total upload counts for each client application that uploads data to Universalis.

getUploadCountsByUploadApplicationAsync
Link copied to clipboard

Returns the total upload counts for each client application that uploads data to Universalis.

Returns the total upload counts for each client application that uploads data to Universalis. For use outside of Kotlin coroutines.

Link copied to clipboard

Returns the world upload counts and proportions of the total uploads for each world

Returns the world upload counts and proportions of the total uploads for each world.

Returns the world upload counts and proportions of the total uploads for each world

getUploadCountsByWorldAsync
Link copied to clipboard

Returns the world upload counts and proportions of the total uploads for each world.

Returns the world upload counts and proportions of the total uploads for each world. For use outside of Kotlin coroutines.

Link copied to clipboard
expect suspend fun getUploadsPerDay(): UploadCountHistory

Returns the number of uploads per day over the past 30 days.

actual suspend fun getUploadsPerDay(): UploadCountHistory

Returns the number of uploads per day over the past 30 days.

actual suspend fun getUploadsPerDay(): UploadCountHistory

Returns the number of uploads per day over the past 30 days.

getUploadsPerDayAsync
Link copied to clipboard

Returns the number of uploads per day over the past 30 days.

Returns the number of uploads per day over the past 30 days. For use outside of Kotlin coroutines.

Link copied to clipboard
fun toObject(map: Map<String, Any>): dynamic

Converts a Map to a plain JavaScript object.