Customer Royalti
This commit is contained in:
@@ -1,29 +1,40 @@
|
||||
export interface Customer {
|
||||
id: string;
|
||||
organization_id: string;
|
||||
name: string;
|
||||
email?: string;
|
||||
phone?: string;
|
||||
address?: string;
|
||||
is_default: boolean;
|
||||
is_active: boolean;
|
||||
metadata: Record<string, any>;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
id: string
|
||||
organization_id: string
|
||||
name: string
|
||||
email?: string
|
||||
phone?: string
|
||||
address?: string
|
||||
is_default: boolean
|
||||
is_active: boolean
|
||||
metadata: Record<string, any>
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
export interface Customers {
|
||||
data: Customer[];
|
||||
total_count: number;
|
||||
page: number;
|
||||
limit: number;
|
||||
total_pages: number;
|
||||
data: Customer[]
|
||||
total_count: number
|
||||
page: number
|
||||
limit: number
|
||||
total_pages: number
|
||||
}
|
||||
|
||||
export interface CustomerRequest {
|
||||
name: string;
|
||||
email?: string;
|
||||
phone?: string;
|
||||
address?: string;
|
||||
is_active?: boolean;
|
||||
name: string
|
||||
email?: string
|
||||
phone?: string
|
||||
address?: string
|
||||
is_active?: boolean
|
||||
}
|
||||
|
||||
export interface CustomerAnalytics {
|
||||
id: string
|
||||
name: string
|
||||
email?: string
|
||||
phone?: string
|
||||
totalPoints: number
|
||||
totalSpent?: number
|
||||
loyaltyTier?: string // Bronze, Silver, Gold, dst
|
||||
lastTransactionDate?: Date
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user