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

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,4 +1,4 @@
1
- export interface UserStat {
1
+ export interface DbUserStat {
2
2
  user_id: number;
3
3
  type: 'Mental Clarity' | 'Purpose' | 'Discipline' | 'Mindset';
4
4
  initial_score: number;
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.9",
3
+ "version": "1.0.11",
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,4 +1,4 @@
1
- export interface UserStat {
1
+ export interface DbUserStat {
2
2
  user_id: number;
3
3
  type: 'Mental Clarity' | 'Purpose' | 'Discipline' | 'Mindset';
4
4
  initial_score: number;
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;