-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
executable file
·42 lines (30 loc) · 951 Bytes
/
types.ts
File metadata and controls
executable file
·42 lines (30 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Generated TypeScript definitions for BaseApi
// Do not edit manually - regenerate with: php mason types:generate
export type UUID = string;
export type Envelope<T> = { data: T };
export interface ErrorResponse {
error: string;
requestId: string;
errors?: Record<string, string>;
}
export interface GetHealthRequestQuery {
db?: string;
}
export type GetHealthResponse = Envelope<any>;
export interface PostHealthRequestBody {
db?: string;
}
export type PostHealthResponse = Envelope<any>;
export interface PostSignupRequestBody {
name?: string;
email?: string;
password?: string;
}
export type PostSignupResponse = Envelope<{ user: any[] }>;
export interface PostLoginRequestBody {
email?: string;
password?: string;
}
export type PostLoginResponse = Envelope<{ user: any[] }>;
export type PostLogoutResponse = Envelope<{ message: string }>;
export type GetMeResponse = Envelope<{ user: any[] }>;