UNPKG

@benshi.ai/js-sdk

Version:

Benshi SDK

47 lines (46 loc) 957 B
export declare enum LoyaltyTypes { Level = "level", Milestone = "milestone", Promo = "promo" } export declare enum PromoAction { Apply = "apply", View = "view" } export declare enum PromoType { AddToCart = "add_to_cart", Coupon = "coupon" } export declare enum PromoItemType { Blood = "blood", Book = "book", Clothing = "clothing", Drug = "drug", Electronics = "electronics", Misc = "misc", Oxygen = "oxygen" } export interface PromoItem { id: string; type: PromoItemType; } export interface PromoProperties { id: string; action: PromoAction; items: PromoItem[]; title: string; type: PromoType; } export interface LevelProperties { prev_level: number; new_level: number; module_id?: string; meta?: any; } export declare enum MilestoneAction { Achieved = "achieved" } export interface MilestoneProperties { id: string; action: MilestoneAction; }