68 lines
1.6 KiB
Plaintext
68 lines
1.6 KiB
Plaintext
export interface User {
|
|
uid: string;
|
|
email: string;
|
|
displayName?: string;
|
|
credits: number;
|
|
createdAt: Date;
|
|
referralCode: string;
|
|
referredBy?: string;
|
|
}
|
|
|
|
export interface ServiceRequest {
|
|
id: string;
|
|
userId: string;
|
|
serviceType: 'nie' | 'rental' | 'plumber' | 'restaurant' | 'other';
|
|
serviceLevel: 1 | 2 | 3 | 4 | 5;
|
|
status: 'pending' | 'in_progress' | 'completed' | 'cancelled';
|
|
description: string;
|
|
createdAt: Date;
|
|
completedAt?: Date;
|
|
creditsUsed: number;
|
|
}
|
|
|
|
export interface ServiceLevel {
|
|
level: number;
|
|
name: string;
|
|
description: string;
|
|
credits: number;
|
|
features: string[];
|
|
}
|
|
|
|
export const SERVICE_LEVELS: ServiceLevel[] = [
|
|
{
|
|
level: 1,
|
|
name: 'Find Options',
|
|
description: 'Get recommendations',
|
|
credits: 1,
|
|
features: ['AI-powered search', 'Top 3 recommendations', 'Basic info']
|
|
},
|
|
{
|
|
level: 2,
|
|
name: 'Call For You',
|
|
description: 'We make the call',
|
|
credits: 2,
|
|
features: ['Everything in Level 1', 'AI calls on your behalf', 'Get availability']
|
|
},
|
|
{
|
|
level: 3,
|
|
name: 'Book It',
|
|
description: 'Complete booking',
|
|
credits: 3,
|
|
features: ['Everything in Level 2', 'Complete booking', 'Confirmation details']
|
|
},
|
|
{
|
|
level: 4,
|
|
name: 'Book It Premium',
|
|
description: 'Premium booking service',
|
|
credits: 4,
|
|
features: ['Everything in Level 3', 'Priority support', 'Cancellation handling']
|
|
},
|
|
{
|
|
level: 5,
|
|
name: 'Full Follow-up',
|
|
description: 'Complete concierge',
|
|
credits: 5,
|
|
features: ['Everything in Level 4', 'Full follow-up', 'Issue resolution', '24/7 support']
|
|
}
|
|
];
|