@hy-capital/api-habit-tracker-types 1.0.2 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/user.d.ts +11 -2
- package/package.json +1 -1
- package/src/user.ts +13 -2
package/dist/user.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
export interface User {
|
2
2
|
id: number;
|
3
|
-
name: string;
|
3
|
+
name: string | null;
|
4
4
|
email: string;
|
5
5
|
clerk_id: string;
|
6
|
-
|
6
|
+
is_onboarding_done: boolean;
|
7
7
|
created_at: string;
|
8
8
|
updated_at: string;
|
9
9
|
}
|
@@ -11,3 +11,12 @@ export interface CreateUserRequest {
|
|
11
11
|
email: string;
|
12
12
|
clerk_id: string;
|
13
13
|
}
|
14
|
+
export interface UpsertUserRequest {
|
15
|
+
email: string;
|
16
|
+
clerk_id: string;
|
17
|
+
}
|
18
|
+
export interface UpdateUserRequest {
|
19
|
+
clerk_id: string;
|
20
|
+
name?: string;
|
21
|
+
is_onboarding_done?: boolean;
|
22
|
+
}
|
package/package.json
CHANGED
package/src/user.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
export interface User {
|
2
2
|
id: number;
|
3
|
-
name: string;
|
3
|
+
name: string | null;
|
4
4
|
email: string;
|
5
5
|
clerk_id: string;
|
6
|
-
|
6
|
+
is_onboarding_done: boolean;
|
7
7
|
created_at: string;
|
8
8
|
updated_at: string;
|
9
9
|
}
|
@@ -11,4 +11,15 @@ export interface User {
|
|
11
11
|
export interface CreateUserRequest {
|
12
12
|
email: string;
|
13
13
|
clerk_id: string;
|
14
|
+
}
|
15
|
+
|
16
|
+
export interface UpsertUserRequest {
|
17
|
+
email: string;
|
18
|
+
clerk_id: string;
|
19
|
+
}
|
20
|
+
|
21
|
+
export interface UpdateUserRequest {
|
22
|
+
clerk_id: string;
|
23
|
+
name?: string;
|
24
|
+
is_onboarding_done?: boolean;
|
14
25
|
}
|