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

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './user';
2
+ export * from './user-stat';
package/dist/index.js CHANGED
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./user"), exports);
18
+ __exportStar(require("./user-stat"), exports);
@@ -0,0 +1,16 @@
1
+ export interface UserStat {
2
+ user_id: number;
3
+ type: 'Mental Clarity' | 'Purpose' | 'Discipline' | 'Mindset';
4
+ initial_score: number;
5
+ current_score: number;
6
+ potential_score: number;
7
+ created_at: string;
8
+ updated_at: string;
9
+ }
10
+ export interface UpsertUserStatRequest {
11
+ user_id: number;
12
+ type: 'Mental Clarity' | 'Purpose' | 'Discipline' | 'Mindset';
13
+ initial_score: number;
14
+ current_score: number;
15
+ potential_score: number;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/user.d.ts CHANGED
@@ -11,6 +11,10 @@ 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
+ }
14
18
  export interface UpdateUserRequest {
15
19
  clerk_id: string;
16
20
  name?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hy-capital/api-habit-tracker-types",
3
- "version": "1.0.5",
3
+ "version": "1.0.9",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -1 +1,2 @@
1
- export * from './user';
1
+ export * from './user';
2
+ export * from './user-stat';
@@ -0,0 +1,17 @@
1
+ export interface UserStat {
2
+ user_id: number;
3
+ type: 'Mental Clarity' | 'Purpose' | 'Discipline' | 'Mindset';
4
+ initial_score: number;
5
+ current_score: number;
6
+ potential_score: number;
7
+ created_at: string;
8
+ updated_at: string;
9
+ }
10
+
11
+ export interface UpsertUserStatRequest {
12
+ user_id: number;
13
+ type: 'Mental Clarity' | 'Purpose' | 'Discipline' | 'Mindset';
14
+ initial_score: number;
15
+ current_score: number;
16
+ potential_score: number;
17
+ }
package/src/user.ts CHANGED
@@ -8,12 +8,16 @@ export interface User {
8
8
  updated_at: string;
9
9
  }
10
10
 
11
-
12
11
  export interface CreateUserRequest {
13
12
  email: string;
14
13
  clerk_id: string;
15
14
  }
16
15
 
16
+ export interface UpsertUserRequest {
17
+ email: string;
18
+ clerk_id: string;
19
+ }
20
+
17
21
  export interface UpdateUserRequest {
18
22
  clerk_id: string;
19
23
  name?: string;