@hy-capital/api-habit-tracker-types 1.0.2 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
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
- is_on_boarding_done: boolean;
6
+ is_onboarding_done: boolean;
7
7
  created_at: string;
8
8
  updated_at: string;
9
9
  }
@@ -11,3 +11,8 @@ export interface CreateUserRequest {
11
11
  email: string;
12
12
  clerk_id: string;
13
13
  }
14
+ export interface UpdateUserRequest {
15
+ clerk_id: string;
16
+ name?: string;
17
+ is_onboarding_done?: boolean;
18
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hy-capital/api-habit-tracker-types",
3
- "version": "1.0.2",
3
+ "version": "1.0.5",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "types": "dist/index.d.ts",
package/src/user.ts CHANGED
@@ -1,14 +1,21 @@
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
- is_on_boarding_done: boolean;
6
+ is_onboarding_done: boolean;
7
7
  created_at: string;
8
8
  updated_at: string;
9
9
  }
10
10
 
11
+
11
12
  export interface CreateUserRequest {
12
13
  email: string;
13
14
  clerk_id: string;
15
+ }
16
+
17
+ export interface UpdateUserRequest {
18
+ clerk_id: string;
19
+ name?: string;
20
+ is_onboarding_done?: boolean;
14
21
  }