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:
co-authored by
Cursor
parent
e2950fa20e
commit
6d85a217e1
@@ -9,6 +9,8 @@ export type {
|
||||
OtpSendResponse,
|
||||
OtpVerifyResponse,
|
||||
RegisterResponse,
|
||||
SignupStartResponse,
|
||||
SignupVerifyResponse,
|
||||
HandoffCreateResponse,
|
||||
UserProfile,
|
||||
} from './types/auth'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user