Skip to content

Commit

Permalink
Update NamiPaywallEvent type
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Jun 21, 2024
1 parent 4242cb5 commit 351c973
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,22 +299,21 @@ export type NamiPurchasesState =
| 'unknown';

export type NamiPaywallEvent = {
action: NamiPaywallAction,
campaignId: string,
paywallId: string,
campaignName?: string,
campaignType?: string,
campaignLabel?: string,
campaignUrl?: string,
paywallName?: string,
segmentId?: string,
externalSegmentId?: string,
deeplinkUrl?: string,
skuId?: string,
componentChangeId?: string,
componentChangeName?: string,
purchaseError?: string,
purchases?: NamiPurchase[],
action: NamiPaywallAction;
campaignId?: string;
campaignName?: string;
campaignType?: string;
campaignLabel?: string;
campaignUrl?: string;
paywallId?: string;
paywallName?: string;
componentChange?: NamiPaywallComponentChange;
segmentId?: string;
externalSegmentId?: string;
deeplinkUrl?: string;
sku?: NamiSKU;
purchaseError?: string;
purchases?: NamiPurchase[];
}

export type NamiPaywallActionHandler = (event: NamiPaywallEvent) => void;
Expand Down

0 comments on commit 351c973

Please sign in to comment.