@techtulp/choremanji-types 1.2.1 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,5 +20,7 @@ export declare enum ErrorType {
20
20
  TaskNotDone = "Task not done",
21
21
  TaskAlreadyConfirmed = "Task already confirmed",
22
22
  TaskAlreadyExcused = "Task already excused",
23
- AssigneeNotFound = "Assignee not found"
23
+ AssigneeNotFound = "Assignee not found",
24
+ RewardNotFound = "Reward not found",
25
+ InsufficientPoints = "Insufficient points"
24
26
  }
@@ -25,4 +25,6 @@ var ErrorType;
25
25
  ErrorType["TaskAlreadyConfirmed"] = "Task already confirmed";
26
26
  ErrorType["TaskAlreadyExcused"] = "Task already excused";
27
27
  ErrorType["AssigneeNotFound"] = "Assignee not found";
28
+ ErrorType["RewardNotFound"] = "Reward not found";
29
+ ErrorType["InsufficientPoints"] = "Insufficient points";
28
30
  })(ErrorType || (exports.ErrorType = ErrorType = {}));
package/dist/index.d.ts CHANGED
@@ -11,3 +11,4 @@ export * from './point-source';
11
11
  export * from './assignee.type';
12
12
  export * from './point-history.type';
13
13
  export * from './reward.type';
14
+ export * from './user.type';
package/dist/index.js CHANGED
@@ -27,3 +27,4 @@ __exportStar(require("./point-source"), exports);
27
27
  __exportStar(require("./assignee.type"), exports);
28
28
  __exportStar(require("./point-history.type"), exports);
29
29
  __exportStar(require("./reward.type"), exports);
30
+ __exportStar(require("./user.type"), exports);
@@ -0,0 +1,11 @@
1
+ import { Gender } from '.';
2
+ export interface UserType {
3
+ id: string;
4
+ name: string;
5
+ email: string;
6
+ role: string;
7
+ avatar?: string;
8
+ gender: Gender;
9
+ points: number;
10
+ family_id: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techtulp/choremanji-types",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": ["dist"],