@hy-capital/api-habit-tracker-types 1.0.6 → 1.0.10

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 DbUserStat {
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
@@ -1,4 +1,4 @@
1
- export interface User {
1
+ export interface DbUser {
2
2
  id: number;
3
3
  name: string | null;
4
4
  email: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hy-capital/api-habit-tracker-types",
3
- "version": "1.0.6",
3
+ "version": "1.0.10",
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 DbUserStat {
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
@@ -1,4 +1,4 @@
1
- export interface User {
1
+ export interface DbUser {
2
2
  id: number;
3
3
  name: string | null;
4
4
  email: string;