For a given App, get: Listings, ListingsCounts when setting countsOnly: true, or ListingsStats when settings both countsOnly & collectionStats: true. Optional filters: status, lastUpdatedAt.
Copy export type ListingAppProps = {
appId: string;
status?: ListingStatus;
countsOnly?: boolean;
collectionStats?: boolean;
lastUpdatedAt?: number;
includeForeignSlots?: boolean;
}
Copy const listings = await assetlayer.listings.app({
appId: 'appId',
status: 'active',
});
const listingsCounts = await assetlayer.listings.app({
appId: 'appId',
status: 'active',
countsOnly: true
});
const listingsStats = await assetlayer.listings.app({
appId: 'appId',
status: 'active',
countsOnly: true,
collectionStats: true
});
Copy type ReturnType = Listing[] | ListingsCounts | ListingsStats;