Add OTP-first customer signup and product catalog PDF field.

Registration collects name and phone, verifies SMS, then asks for a password only for new Meshkee accounts. Product add/edit supports an optional catalog PDF.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-09-27 08:57:08 +03:30
co-authored by Cursor
parent e2950fa20e
commit 6d85a217e1
12 changed files with 746 additions and 292 deletions
+2
View File
@@ -9,6 +9,8 @@ export type {
OtpSendResponse,
OtpVerifyResponse,
RegisterResponse,
SignupStartResponse,
SignupVerifyResponse,
HandoffCreateResponse,
UserProfile,
} from './types/auth'
+21
View File
@@ -63,9 +63,30 @@ export interface RegisterResponse {
passwordPending?: boolean
/** True when an existing Meshkee account password was already replaced. */
passwordUpdated?: boolean
/** True when this signup linked an existing Meshkee account. */
existingAccount?: boolean
registeredBusiness?: { id: string; name: string; slug: string }
}
export interface SignupStartResponse {
enabled: boolean
requiresOtp: boolean
message: string
expiresInSeconds?: number
/** Present when SMS is disabled — skip OTP and continue with complete. */
registrationToken?: string
existingAccount?: boolean
sites?: string[]
}
export interface SignupVerifyResponse {
verified: boolean
existingAccount: boolean
sites: string[]
registrationToken: string
message: string
}
export interface OtpSendResponse {
enabled: boolean
message: string