feat: add customer authentication and order dashboard

This commit is contained in:
2026-09-16 09:06:48 +03:30
parent f49ef11c9c
commit 7c55b3916c
31 changed files with 2193 additions and 53 deletions
+13
View File
@@ -0,0 +1,13 @@
import type {CustomerProfile} from '@/types/account';
const wait = () => new Promise(resolve => setTimeout(resolve, 350));
export async function saveProfile(profile: CustomerProfile): Promise<CustomerProfile> {
await wait();
/*
PATCH /me
Request: { "type": "corporate", "firstName": "...", "lastName": "...", "companyName": "...", "address": "..." }
Response: { "user": { "phone": "09123456789", "type": "corporate", "firstName": "...", "lastName": "..." } }
*/
return {...profile};
}