@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 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,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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hy-capital/api-habit-tracker-types",
3
- "version": "1.0.2",
3
+ "version": "1.0.6",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "types": "dist/index.d.ts",
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
- is_on_boarding_done: boolean;
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
  }