@namiml/web-sdk
Version:
Nami Web SDK makes subscriptions & in-app purchases easy, with powerful built-in paywalls and A/B testing
31 lines (30 loc) • 612 B
TypeScript
export interface ApiResponse<T> {
count: number;
next: number;
page_number: number;
previous: null;
results: T;
total_pages: number;
}
export type LoginPayload = {
external_id: string;
};
export type LoginResponse = {
external_id: string;
user_id: string;
};
export type Session = {
id?: string;
app_env?: string;
start_time?: Date;
end_time?: Date;
};
export type Impression = {
id?: string;
session?: string;
segment?: string;
call_to_action?: string;
app_env?: string;
url_params?: Record<string, string>;
launch_id?: string;
};