phone auth, image uploading, address broken up

This commit is contained in:
jackiettran
2025-07-30 19:12:56 -04:00
parent 72d79596ce
commit 7c6c120969
17 changed files with 759 additions and 182 deletions

View File

@@ -5,7 +5,12 @@ export interface User {
firstName: string;
lastName: string;
phone?: string;
address?: string;
address1?: string;
address2?: string;
city?: string;
state?: string;
zipCode?: string;
country?: string;
profileImage?: string;
isVerified: boolean;
}
@@ -42,10 +47,16 @@ export interface Item {
pricePerMonth?: number;
replacementCost: number;
location: string;
address1?: string;
address2?: string;
city?: string;
state?: string;
zipCode?: string;
country?: string;
latitude?: number;
longitude?: number;
images: string[];
condition: 'excellent' | 'good' | 'fair' | 'poor';
condition: "excellent" | "good" | "fair" | "poor";
availability: boolean;
specifications: Record<string, any>;
rules?: string;
@@ -73,9 +84,9 @@ export interface Rental {
startDate: string;
endDate: string;
totalAmount: number;
status: 'pending' | 'confirmed' | 'active' | 'completed' | 'cancelled';
paymentStatus: 'pending' | 'paid' | 'refunded';
deliveryMethod: 'pickup' | 'delivery';
status: "pending" | "confirmed" | "active" | "completed" | "cancelled";
paymentStatus: "pending" | "paid" | "refunded";
deliveryMethod: "pickup" | "delivery";
deliveryAddress?: string;
notes?: string;
rating?: number;
@@ -86,4 +97,4 @@ export interface Rental {
owner?: User;
createdAt: string;
updatedAt: string;
}
}