-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
50 lines (45 loc) · 994 Bytes
/
Copy pathtypes.ts
File metadata and controls
50 lines (45 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
export enum ProjectStatus {
PENDING = 'PENDING',
SCOPING = 'SCOPING',
IN_PROGRESS = 'IN_PROGRESS',
COMPLETED = 'COMPLETED',
CANCELLED = 'CANCELLED'
}
export enum PaymentStatus {
UNPAID = 'UNPAID',
PENDING_VERIFICATION = 'PENDING_VERIFICATION',
PAID = 'PAID',
REFUNDED = 'REFUNDED'
}
export interface Project {
id: string;
userId: string;
userEmail: string;
userName?: string;
contactEmail?: string;
title: string;
description: string;
budget: number;
status: ProjectStatus;
paymentStatus: PaymentStatus;
createdAt: string;
techStack?: string[];
showOnLanding?: boolean;
liveUrl?: string;
isFreeTrial?: boolean;
paymentMethod?: 'jazzcash' | 'easypaisa' | 'bank';
senderName?: string;
transactionId?: string;
}
export interface User {
id: string;
email: string;
name: string;
avatar?: string;
role: 'admin' | 'client';
emailVerified: boolean;
}
export interface AuthState {
user: User | null;
isAuthenticated: boolean;
}