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

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,6 @@
1
+ import { DbUser } from './user';
2
+ import { DbUserStat } from './user-stat';
3
+ export interface FrontendUser {
4
+ user: DbUser;
5
+ user_stats: DbUserStat[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './user';
2
2
  export * from './user-stat';
3
+ export * from './frontend-user';
package/dist/index.js CHANGED
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./user"), exports);
18
18
  __exportStar(require("./user-stat"), exports);
19
+ __exportStar(require("./frontend-user"), exports);
@@ -1,6 +1,7 @@
1
+ export type StatType = 'Sleep' | 'Diet' | 'Exercise' | 'Calmness' | 'Public speaking' | 'Productivity';
1
2
  export interface DbUserStat {
2
3
  user_id: number;
3
- type: 'Mental Clarity' | 'Purpose' | 'Discipline' | 'Mindset';
4
+ type: StatType;
4
5
  initial_score: number;
5
6
  current_score: number;
6
7
  potential_score: number;
@@ -9,7 +10,7 @@ export interface DbUserStat {
9
10
  }
10
11
  export interface UpsertUserStatRequest {
11
12
  user_id: number;
12
- type: 'Mental Clarity' | 'Purpose' | 'Discipline' | 'Mindset';
13
+ type: StatType;
13
14
  initial_score: number;
14
15
  current_score: number;
15
16
  potential_score: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hy-capital/api-habit-tracker-types",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,7 @@
1
+ import {DbUser} from './user';
2
+ import {DbUserStat} from './user-stat';
3
+
4
+ export interface FrontendUser {
5
+ user: DbUser;
6
+ user_stats: DbUserStat[];
7
+ }
package/src/index.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './user';
2
- export * from './user-stat';
2
+ export * from './user-stat';
3
+ export * from './frontend-user';
package/src/user-stat.ts CHANGED
@@ -1,6 +1,8 @@
1
+ export type StatType = 'Sleep' | 'Diet' | 'Exercise' | 'Calmness' | 'Public speaking' | 'Productivity';
2
+
1
3
  export interface DbUserStat {
2
4
  user_id: number;
3
- type: 'Mental Clarity' | 'Purpose' | 'Discipline' | 'Mindset';
5
+ type: StatType;
4
6
  initial_score: number;
5
7
  current_score: number;
6
8
  potential_score: number;
@@ -10,7 +12,7 @@ export interface DbUserStat {
10
12
 
11
13
  export interface UpsertUserStatRequest {
12
14
  user_id: number;
13
- type: 'Mental Clarity' | 'Purpose' | 'Discipline' | 'Mindset';
15
+ type: StatType;
14
16
  initial_score: number;
15
17
  current_score: number;
16
18
  potential_score: number;