Spaces:
Running
Running
Download src/services/authTypes.ts from fouad12344321/front: direct link, hf CLI and curl.
- Browser
- Download file 909 Bytes
-
https://huggingface.co/spaces/fouad12344321/front/resolve/main/src/services/authTypes.ts
- Command line
-
hf download hf://spaces/fouad12344321/front/src/services/authTypes.ts
-
curl -L -o authTypes.ts https://huggingface.co/spaces/fouad12344321/front/resolve/main/src/services/authTypes.ts
909 Bytes
| export interface PreLoginRequest { | |
| email: string; | |
| password: string; | |
| } | |
| export interface FarmInfo { | |
| id: string; | |
| name: string; | |
| } | |
| export interface BackendAuthUser { | |
| id: string; | |
| email: string; | |
| role?: string; | |
| farmId?: string; | |
| modules?: string[]; | |
| name?: string; | |
| phone?: string; | |
| } | |
| export interface AuthLoginResult { | |
| token?: string; | |
| refreshToken?: string; | |
| expiresIn?: number; | |
| refreshExpiresIn?: number; | |
| user?: BackendAuthUser; | |
| requiresOTP: boolean; | |
| sessionToken?: string; | |
| message?: string; | |
| accountLocked?: boolean; | |
| } | |
| export interface PreLoginResponse { | |
| requiresFarmSelection: boolean; | |
| farms?: FarmInfo[]; | |
| loginResult?: AuthLoginResult; | |
| } | |
| export interface LoginRequest extends PreLoginRequest { | |
| farmId: string; | |
| } | |
| export interface AuthApiErrorPayload { | |
| statusCode?: number; | |
| message?: string | string[]; | |
| error?: string; | |
| timestamp?: string; | |
| path?: string; | |
| } | |