Customer Royalti

This commit is contained in:
efrilm
2025-09-17 01:51:59 +07:00
parent 3d1b6eee39
commit 18ee652731
7 changed files with 656 additions and 23 deletions
+32 -21
View File
@@ -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
}