Cloudtopiaa_Reseller_Frontend/src/data/reseller/mockData.ts
2025-08-04 19:39:59 +05:30

145 lines
3.6 KiB
TypeScript

export interface ResellerRecentActivity {
id: string;
type: 'customer_added' | 'instance_created' | 'payment_received' | 'support_ticket' | 'training_completed';
title: string;
description: string;
timestamp: string;
amount?: number;
currency?: 'USD' | 'INR';
}
export interface ResellerQuickAction {
id: string;
title: string;
description: string;
icon: string;
action: string;
color: string;
}
export interface ResellerDashboardStats {
totalRevenue: number;
activeCustomers: number;
cloudInstances: number;
commissionRate: number;
monthlyGrowth: number;
currency?: 'USD' | 'INR';
}
export const mockResellerDashboardStats: ResellerDashboardStats = {
totalRevenue: 4560000,
activeCustomers: 89,
cloudInstances: 67,
commissionRate: 15.0,
monthlyGrowth: 34.2,
currency: 'INR',
};
export const mockResellerRecentActivities: ResellerRecentActivity[] = [
{
id: '1',
type: 'customer_added',
title: 'New Customer Added',
description: 'Successfully onboarded TechCorp Solutions as a new customer',
timestamp: '2025-01-15T10:30:00Z',
amount: 50000,
currency: 'USD',
},
{
id: '2',
type: 'instance_created',
title: 'Cloud Instance Created',
description: 'Created new cloud instance for DataFlow Inc with 8GB RAM configuration',
timestamp: '2025-01-15T09:15:00Z',
amount: 1200,
currency: 'USD',
},
{
id: '3',
type: 'payment_received',
title: 'Payment Received',
description: 'Monthly payment of $2,500 received from CloudTech Solutions',
timestamp: '2025-01-15T08:45:00Z',
amount: 2500,
currency: 'USD',
},
{
id: '4',
type: 'support_ticket',
title: 'Support Ticket Resolved',
description: 'Successfully resolved high-priority support ticket for InnovateSoft',
timestamp: '2025-01-15T08:00:00Z',
},
{
id: '5',
type: 'training_completed',
title: 'Training Completed',
description: 'Completed advanced cloud services certification training',
timestamp: '2025-01-14T16:30:00Z',
},
];
export const mockResellerQuickActions: ResellerQuickAction[] = [
{
id: 'add-customer',
title: 'Add New Customer',
description: 'Onboard a new customer',
icon: 'UserPlus',
action: '/reseller-dashboard/customers/new',
color: 'primary',
},
{
id: 'create-instance',
title: 'Create Instance',
description: 'Set up new cloud instance',
icon: 'Cloud',
action: '/reseller-dashboard/instances/new',
color: 'success',
},
{
id: 'manage-billing',
title: 'Manage Billing',
description: 'Handle billing and payments',
icon: 'CreditCard',
action: '/reseller-dashboard/billing',
color: 'warning',
},
{
id: 'support-ticket',
title: 'Support Ticket',
description: 'Create support request',
icon: 'Headphones',
action: '/reseller-dashboard/support',
color: 'danger',
},
{
id: 'training-center',
title: 'Training Center',
description: 'Access training materials',
icon: 'BookOpen',
action: '/reseller-dashboard/training',
color: 'primary',
},
{
id: 'view-reports',
title: 'View Reports',
description: 'Generate performance reports',
icon: 'BarChart3',
action: '/reseller-dashboard/reports',
color: 'secondary',
},
];
export const mockResellerUser = {
id: '1',
email: 'john@techsolutions.com',
name: 'John Reseller',
role: 'reseller_admin' as const,
company: 'Tech Solutions Inc',
avatar: 'https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=150&h=150&fit=crop',
tier: 'gold' as const,
isVerified: true,
twoFactorEnabled: false,
region: 'North America',
commissionRate: 12,
};