UNPKG

@benshi.ai/js-sdk

Version:

Benshi SDK

55 lines (46 loc) 920 B
export enum LoyaltyTypes { Level = "level", Milestone = "milestone", Promo = "promo" } export enum PromoAction { Apply = "apply", View = "view" } export enum PromoType { AddToCart = "add_to_cart", Coupon = "coupon" } export 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 enum MilestoneAction { Achieved = "achieved" } export interface MilestoneProperties { id: string, action: MilestoneAction }