@techtulp/choremanji-types 1.0.1 → 1.0.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.
@@ -14,5 +14,8 @@ export declare enum ErrorType {
14
14
  UploadFailed = "Upload failed",
15
15
  ProfileNotFound = "Profile not found",
16
16
  TaskNotFound = "Task not found",
17
+ TaskNotStarted = "Task not started",
18
+ TaskAlreadyDone = "Task already done",
19
+ TaskExpired = "Task expired",
17
20
  AssigneeNotFound = "Assignee not found"
18
21
  }
@@ -18,5 +18,8 @@ var ErrorType;
18
18
  ErrorType["UploadFailed"] = "Upload failed";
19
19
  ErrorType["ProfileNotFound"] = "Profile not found";
20
20
  ErrorType["TaskNotFound"] = "Task not found";
21
+ ErrorType["TaskNotStarted"] = "Task not started";
22
+ ErrorType["TaskAlreadyDone"] = "Task already done";
23
+ ErrorType["TaskExpired"] = "Task expired";
21
24
  ErrorType["AssigneeNotFound"] = "Assignee not found";
22
25
  })(ErrorType || (exports.ErrorType = ErrorType = {}));
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { Frequency } from './frequency';
2
2
  import { Gender } from './gender';
3
3
  import { UserRole } from './user-role';
4
4
  import { Status } from './status';
5
- import { TaskSection } from './task-section.type';
5
+ import { TaskSection, TaskShow } from './task-section.type';
6
6
  import { ErrorType } from './error-type';
7
7
  import { GetManyType } from './get-many.type';
8
- export { Frequency, Gender, UserRole, Status, TaskSection, ErrorType, GetManyType };
8
+ export { Frequency, Gender, UserRole, Status, TaskSection, TaskShow, ErrorType, GetManyType };
@@ -1,13 +1,14 @@
1
1
  import { Status } from './status';
2
+ export interface TaskShow {
3
+ id: string;
4
+ title: string;
5
+ points: number;
6
+ status: Status;
7
+ frequency: string;
8
+ date?: string;
9
+ }
2
10
  export interface TaskSection {
3
11
  title: string;
4
12
  subtitle: string;
5
- tasks: Array<{
6
- id: string;
7
- title: string;
8
- points: number;
9
- status: Status;
10
- frequency: string;
11
- date?: string;
12
- }>;
13
+ tasks: TaskShow[];
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techtulp/choremanji-types",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": ["dist"],