@namiml/web-sdk
Version:
Nami Web SDK makes subscriptions & in-app purchases easy, with powerful built-in paywalls and A/B testing
22 lines (21 loc) • 586 B
TypeScript
import { NamiPurchase } from "./externals/purchase";
import { NamiSKU } from "./externals/sku";
export type IEntitlements = {
id: string;
entitlement_ref_id: string;
name: string;
description: string | null;
type: string;
expires?: string;
};
export type NamiEntitlement = {
activePurchases: NamiPurchase[];
desc: string;
name: string;
namiId: string;
purchasedSkus: NamiSKU[];
referenceId: string;
relatedSkus: NamiSKU[];
expires?: number;
};
export type NamiActiveEntitlementsHandler = (entitlement: NamiEntitlement[]) => void;