storenest-commerce
Version:
Complete e-commerce SDK for Storenest platform with React components, multi-language support, secure checkout, and enterprise-grade security
39 lines (38 loc) • 946 B
TypeScript
export interface User {
id: string;
email: string;
name: string;
role: 'ADMIN' | 'SELLER' | 'CUSTOMER';
isActive: boolean;
createdAt: string;
updatedAt: string;
}
export interface UserShop {
id: number;
shopId: number;
email?: string;
name?: string;
surname?: string;
emailVerified?: string;
createdAt: string;
updatedAt: string;
}
export interface AuthResponse {
user: UserShop;
}
export interface LoginParams {
email: string;
password: string;
}
export interface RegisterParams {
email: string;
password: string;
name?: string;
surname?: string;
}
export declare function login(params: LoginParams): Promise<AuthResponse>;
export declare function register(params: RegisterParams): Promise<AuthResponse>;
export interface GuestUserParams {
guestId: string;
}
export declare function createOrGetGuestUser(params: GuestUserParams): Promise<AuthResponse>;