import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { Blockchain } from "./blockchain.js"; import { Creator, Creator$Outbound } from "./creator.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { ItemCollection, ItemCollection$Outbound } from "./itemcollection.js"; import { ItemLastSale, ItemLastSale$Outbound } from "./itemlastsale.js"; import { ItemTransfer, ItemTransfer$Outbound } from "./itemtransfer.js"; import { Meta, Meta$Outbound } from "./meta.js"; import { Order, Order$Outbound } from "./order.js"; import { OriginOrders, OriginOrders$Outbound } from "./originorders.js"; export declare const ItemFeature: { readonly NotForSale: "NOT_FOR_SALE"; }; export type ItemFeature = ClosedEnum; export type Item = { /** * Item Id, has format `ETHEREUM:${token}:${tokenId}` */ id: string; blockchain: Blockchain; /** * Collection id */ collection?: string | undefined; /** * Blockchain contract address in Union format `ETHEREUM:${token}` */ contract?: string | undefined; tokenId?: string | undefined; /** * Creators of the target item */ creators: Array; /** * Blockchain address in Union format `${blockchainGroup}:${token}` */ ownerIfSingle?: string | undefined; ownerChangeDate?: Date | undefined; lazySupply: string; /** * Pending information about the item */ pending: Array; /** * Date and time of the item minting */ mintedAt: Date; /** * Filter condition to return only items that have been updated at this date */ lastUpdatedAt: Date; supply: string; meta?: Meta | undefined; /** * Item was deleted or not */ deleted: boolean; bestSellOrder?: Order | undefined; bestBidOrder?: Order | undefined; /** * Contains best bid order for each currency if exists */ bestBidOrdersByCurrency?: Array | undefined; originOrders?: Array | undefined; totalStock?: string | undefined; /** * Total count of users selling this item ATM */ sellers: number; lastSale?: ItemLastSale | undefined; self?: boolean | undefined; suspicious?: boolean | undefined; itemCollection?: ItemCollection | undefined; features?: Array | undefined; /** * Blockchain-specific information about this NFT item particular to that blockchain's data model */ extra?: { [k: string]: string; } | undefined; version?: number | undefined; }; /** @internal */ export declare const ItemFeature$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ItemFeature$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ItemFeature$ { /** @deprecated use `ItemFeature$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly NotForSale: "NOT_FOR_SALE"; }>; /** @deprecated use `ItemFeature$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly NotForSale: "NOT_FOR_SALE"; }>; } /** @internal */ export declare const Item$inboundSchema: z.ZodType; /** @internal */ export type Item$Outbound = { id: string; blockchain: string; collection?: string | undefined; contract?: string | undefined; tokenId?: string | undefined; creators: Array; ownerIfSingle?: string | undefined; ownerChangeDate?: string | undefined; lazySupply: string; pending: Array; mintedAt: string; lastUpdatedAt: string; supply: string; meta?: Meta$Outbound | undefined; deleted: boolean; bestSellOrder?: Order$Outbound | undefined; bestBidOrder?: Order$Outbound | undefined; bestBidOrdersByCurrency?: Array | undefined; originOrders?: Array | undefined; totalStock?: string | undefined; sellers: number; lastSale?: ItemLastSale$Outbound | undefined; self?: boolean | undefined; suspicious?: boolean | undefined; itemCollection?: ItemCollection$Outbound | undefined; features?: Array | undefined; extra?: { [k: string]: string; } | undefined; version?: number | undefined; }; /** @internal */ export declare const Item$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Item$ { /** @deprecated use `Item$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Item$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Item$Outbound` instead. */ type Outbound = Item$Outbound; } export declare function itemToJSON(item: Item): string; export declare function itemFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=item.d.ts.map