diff --git a/src/types/auctions.d.ts b/src/types/auctions.d.ts index 3574fe9..a68cc79 100644 --- a/src/types/auctions.d.ts +++ b/src/types/auctions.d.ts @@ -37,8 +37,8 @@ interface SponsoredListingAuction extends AuctionBase { interface BannerAuction extends AuctionBase { type: "banners"; - device: DeviceType; slotId: string; + device?: DeviceType; } export interface TopsortAuction { diff --git a/src/types/events.d.ts b/src/types/events.d.ts index 8a311b1..3fcc44b 100644 --- a/src/types/events.d.ts +++ b/src/types/events.d.ts @@ -1,27 +1,33 @@ interface Placement { path: string; + position?: number; + page?: number; + pageSize?: number; + productId?: string; + categoryIds?: string[]; + searchQuery?: string; } export interface Entity { - type: "product"; + type: "product" | "vendor"; id: string; } interface Impression { - resolvedBidId?: string; - entity?: Entity; - additionalAttribution?: Entity; - placement: Placement; occurredAt: string; opaqueUserId: string; id: string; + resolvedBidId?: string; + entity?: Entity; + additionalAttribution?: Entity; + placement?: Placement; } interface Click { resolvedBidId?: string; entity?: Entity; additionalAttribution?: Entity; - placement: Placement; + placement?: Placement; occurredAt: string; opaqueUserId: string; id: string; @@ -31,6 +37,7 @@ interface Item { productId: string; quantity: number; unitPrice: number; + vendorId?: string; } interface Purchase {