import { JSONSchema, ValidateFunction } from '../validation'; import { ChainId } from './chain-id'; import { EmoteCategory, EmotePlayMode, EmoteOutcomeType } from '../platform'; import { Network } from './network'; import { NFT } from './nft'; import { NFTCategory } from './nft-category'; import { Rarity } from './rarity'; import { WearableCategory } from '../platform/item/wearable/wearable-category'; import { GenderFilterOption, WearableGender } from './wearable-gender'; export type Item = { id: string; name: string; thumbnail: string; url: string; category: NFTCategory; contractAddress: string; itemId: string; rarity: Rarity; price: string; available: number; isOnSale: boolean; creator: string; beneficiary: string | null; createdAt: number; updatedAt: number; reviewedAt: number; soldAt: number; data: NFT['data']; network: Network.ETHEREUM | Network.MATIC; chainId: ChainId; urn: string; /** The timestamp in seconds since epoch when the item was listed for sale for the first time */ firstListedAt: number | null; picks?: { pickedByUser?: boolean; count: number; }; /** The following fields are for the items for the Marketplace's catalog */ minPrice?: string; minListingPrice?: string | null; maxListingPrice?: string | null; listings?: number | null; owners?: number | null; /** A description of the utility the item has in the explorer */ utility?: string; tradeId?: string; tradeExpiresAt?: number; tradeContractAddress?: string; }; export type ItemFilters = { first?: number; skip?: number; sortBy?: ItemSortBy; category?: NFTCategory; /** The address or the addresses of the creators to filter for */ creator?: string | string[]; rarities?: Rarity[]; isSoldOut?: boolean; isOnSale?: boolean; search?: string; isWearableHead?: boolean; isWearableAccessory?: boolean; isWearableSmart?: boolean; wearableCategory?: WearableCategory; wearableGenders?: (WearableGender | GenderFilterOption)[]; emoteCategory?: EmoteCategory; emoteGenders?: (WearableGender | GenderFilterOption)[]; emotePlayMode?: EmotePlayMode | EmotePlayMode[]; ids?: string[]; contractAddresses?: string[]; itemId?: string; network?: Network; /** * Returns items whose price is greater or equal to this value */ minPrice?: string; /** * Returns items whose price is smaller or equal to this value */ maxPrice?: string; urns?: string[]; /** * Returns emotes that have sound */ emoteHasSound?: boolean; /** * Returns emotes that have additional geomtry */ emoteHasGeometry?: boolean; /** * Returns emotes that have an outcome type */ emoteOutcomeType?: EmoteOutcomeType; }; export declare enum ItemSortBy { NAME = "name", NEWEST = "newest", RECENTLY_REVIEWED = "recently_reviewed", RECENTLY_SOLD = "recently_sold", RECENTLY_LISTED = "recently_listed", CHEAPEST = "cheapest" } export declare namespace Item { const schema: JSONSchema; const validate: ValidateFunction; } //# sourceMappingURL=item.d.ts.map