Skip to content

Commit

Permalink
fix: add parameters as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
barbmarcio committed Aug 5, 2024
1 parent d102429 commit 506655d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/types/auctions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ interface SponsoredListingAuction extends AuctionBase {

interface BannerAuction extends AuctionBase {
type: "banners";
device: DeviceType;
slotId: string;
device?: DeviceType;
}

export interface TopsortAuction {
Expand Down
19 changes: 13 additions & 6 deletions src/types/events.d.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -31,6 +37,7 @@ interface Item {
productId: string;
quantity: number;
unitPrice: number;
vendorId?: string;
}

interface Purchase {
Expand Down

0 comments on commit 506655d

Please sign in to comment.