@managemint-solutions/entities 1.0.13 → 1.0.14

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.
@@ -1,6 +1,6 @@
1
1
  import { UUID } from 'crypto';
2
2
  import { UserIdentity } from '../users';
3
- import { Status } from '../status';
3
+ import { StatusEntity } from '../status';
4
4
  export type ClientIdentity = {
5
5
  mms_id: UUID;
6
6
  name: string;
@@ -10,7 +10,7 @@ export type ClientSummary = {
10
10
  created_at: Date;
11
11
  name: string;
12
12
  email: string;
13
- status: Status | null;
13
+ status: StatusEntity | null;
14
14
  created_by: UserIdentity;
15
15
  };
16
16
  export type ClientEntity = {
@@ -19,7 +19,7 @@ export type ClientEntity = {
19
19
  name: string;
20
20
  email: string;
21
21
  phone: string;
22
- status: Status | null;
22
+ status: StatusEntity | null;
23
23
  contract_client: boolean;
24
24
  contracted_hours: number | null;
25
25
  updated_at: Date | null;
@@ -0,0 +1,16 @@
1
+ import { StatusEntityTypes } from "../enum";
2
+ export type StatusIdDto = {
3
+ statusId: string;
4
+ };
5
+ export type GetStatusesDto = {
6
+ entity: StatusEntityTypes;
7
+ };
8
+ export type AddStatusDto = {
9
+ label: string;
10
+ colour: string;
11
+ entity: StatusEntityTypes;
12
+ };
13
+ export type UpdateStatusDto = {
14
+ label: string;
15
+ colour: string;
16
+ };
@@ -1,2 +1 @@
1
- "use strict";
2
- // Status DTOs
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare enum StatusEntityTypes {
2
+ CLIENT = "clients",
3
+ PROJECT = "projects",
4
+ TASK = "tasks"
5
+ }
@@ -0,0 +1,7 @@
1
+ export var StatusEntityTypes;
2
+ (function (StatusEntityTypes) {
3
+ StatusEntityTypes["CLIENT"] = "clients";
4
+ StatusEntityTypes["PROJECT"] = "projects";
5
+ StatusEntityTypes["TASK"] = "tasks";
6
+ })(StatusEntityTypes || (StatusEntityTypes = {}));
7
+ ;
@@ -1,5 +1,5 @@
1
1
  import { UUID } from 'crypto';
2
- export type Status = {
2
+ export type StatusEntity = {
3
3
  mms_id: UUID;
4
4
  label: string;
5
5
  colour: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managemint-solutions/entities",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Entity types used by both the api and portal",
5
5
  "homepage": "https://github.com/ManageMint-Solutions/managemint-solutions-entities#readme",
6
6
  "bugs": {