@managemint-solutions/entities 1.0.26 → 1.0.28

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.
@@ -0,0 +1,11 @@
1
+ import { AuditTrailAction, AuditTrailEntityType } from "../enum";
2
+ export type GetAuditTrailDto = {
3
+ page: number;
4
+ page_size: number;
5
+ created_after?: Date | null;
6
+ created_before?: Date | null;
7
+ created_by?: string | null;
8
+ action?: AuditTrailAction | null;
9
+ entity_type?: AuditTrailEntityType | null;
10
+ entity_id?: string | null;
11
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ export declare enum AuditTrailAction {
2
+ INSERT = "INSERT",
3
+ UPDATE = "UPDATE",
4
+ ARCHIVE = "ARCHIVE",
5
+ UNARCHIVE = "UNARCHIVE",
6
+ DELETE = "DELETE",
7
+ RESTORE = "RESTORE"
8
+ }
9
+ export declare enum AuditTrailEntityType {
10
+ ORGANIZATION = "organizations",
11
+ USER = "users",
12
+ PERMISSION = "permission",
13
+ STATUS = "statuses",
14
+ ADDITIONAL_DETAILS = "additional_details",
15
+ SUPPORTING_FILES = "supporting_files",
16
+ NOTES = "notes",
17
+ CLIENTS = "clients",
18
+ PROJECTS = "projects",
19
+ TASKS = "tasks",
20
+ TIMESHEETS = "timesheets"
21
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuditTrailEntityType = exports.AuditTrailAction = void 0;
4
+ var AuditTrailAction;
5
+ (function (AuditTrailAction) {
6
+ AuditTrailAction["INSERT"] = "INSERT";
7
+ AuditTrailAction["UPDATE"] = "UPDATE";
8
+ AuditTrailAction["ARCHIVE"] = "ARCHIVE";
9
+ AuditTrailAction["UNARCHIVE"] = "UNARCHIVE";
10
+ AuditTrailAction["DELETE"] = "DELETE";
11
+ AuditTrailAction["RESTORE"] = "RESTORE";
12
+ })(AuditTrailAction || (exports.AuditTrailAction = AuditTrailAction = {}));
13
+ var AuditTrailEntityType;
14
+ (function (AuditTrailEntityType) {
15
+ AuditTrailEntityType["ORGANIZATION"] = "organizations";
16
+ AuditTrailEntityType["USER"] = "users";
17
+ AuditTrailEntityType["PERMISSION"] = "permission";
18
+ AuditTrailEntityType["STATUS"] = "statuses";
19
+ AuditTrailEntityType["ADDITIONAL_DETAILS"] = "additional_details";
20
+ AuditTrailEntityType["SUPPORTING_FILES"] = "supporting_files";
21
+ AuditTrailEntityType["NOTES"] = "notes";
22
+ AuditTrailEntityType["CLIENTS"] = "clients";
23
+ AuditTrailEntityType["PROJECTS"] = "projects";
24
+ AuditTrailEntityType["TASKS"] = "tasks";
25
+ AuditTrailEntityType["TIMESHEETS"] = "timesheets";
26
+ })(AuditTrailEntityType || (exports.AuditTrailEntityType = AuditTrailEntityType = {}));
@@ -0,0 +1,16 @@
1
+ import { UserIdentity } from "../users";
2
+ import { AuditTrailAction, AuditTrailEntityType } from "./enum";
3
+ export type AuditTrailEntity = {
4
+ mms_id: string;
5
+ created_at: Date;
6
+ created_by: UserIdentity | null;
7
+ action: AuditTrailAction;
8
+ entity_type: AuditTrailEntityType;
9
+ entity_id: string;
10
+ changes: Record<string, {
11
+ old: any;
12
+ new: any;
13
+ }>;
14
+ related_entity_type: AuditTrailEntityType | null;
15
+ related_entity_id: string | null;
16
+ };
@@ -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": "@managemint-solutions/entities",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
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": {
@@ -14,129 +14,10 @@
14
14
  "author": "Scott Bebington <scottbebington@gmail.com>",
15
15
  "type": "commonjs",
16
16
  "exports": {
17
- "./common": {
18
- "types": "./dist/common/index.d.ts",
19
- "default": "./dist/common/index.js"
20
- },
21
-
22
- "./auth": {
23
- "types": "./dist/auth/index.d.ts",
24
- "default": "./dist/auth/index.js"
25
- },
26
- "./auth/dto": {
27
- "types": "./dist/auth/dto/index.d.ts",
28
- "default": "./dist/auth/dto/index.js"
29
- },
30
-
31
- "./clients": {
32
- "types": "./dist/clients/index.d.ts",
33
- "default": "./dist/clients/index.js"
34
- },
35
- "./clients/dto": {
36
- "types": "./dist/clients/dto/index.d.ts",
37
- "default": "./dist/clients/dto/index.js"
38
- },
39
-
40
- "./status": {
41
- "types": "./dist/status/index.d.ts",
42
- "default": "./dist/status/index.js"
43
- },
44
- "./status/dto": {
45
- "types": "./dist/status/dto/index.d.ts",
46
- "default": "./dist/status/dto/index.js"
47
- },
48
- "./status/enum": {
49
- "types": "./dist/status/enum/index.d.ts",
50
- "default": "./dist/status/enum/index.js"
51
- },
52
-
53
- "./users": {
54
- "types": "./dist/users/index.d.ts",
55
- "default": "./dist/users/index.js"
56
- },
57
- "./users/dto": {
58
- "types": "./dist/users/dto/index.d.ts",
59
- "default": "./dist/users/dto/index.js"
60
- },
61
- "./users/enum": {
62
- "types": "./dist/users/enum/index.d.ts",
63
- "default": "./dist/users/enum/index.js"
64
- },
65
-
66
- "./organization": {
67
- "types": "./dist/organization/index.d.ts",
68
- "default": "./dist/organization/index.js"
69
- },
70
- "./organization/dto": {
71
- "types": "./dist/organization/dto/index.d.ts",
72
- "default": "./dist/organization/dto/index.js"
73
- },
74
- "./organization/enum": {
75
- "types": "./dist/organization/enum/index.d.ts",
76
- "default": "./dist/organization/enum/index.js"
77
- },
78
-
79
- "./modules/enum": {
80
- "types": "./dist/modules/enum/index.d.ts",
81
- "default": "./dist/modules/enum/index.js"
82
- },
83
-
84
- "./payments/enum": {
85
- "types": "./dist/payments/enum/index.d.ts",
86
- "default": "./dist/payments/enum/index.js"
87
- },
88
-
89
- "./subscription/enum": {
90
- "types": "./dist/subscription/enum/index.d.ts",
91
- "default": "./dist/subscription/enum/index.js"
92
- },
93
-
94
- "./notes": {
95
- "types": "./dist/notes/index.d.ts",
96
- "default": "./dist/notes/index.js"
97
- },
98
- "./notes/dto": {
99
- "types": "./dist/notes/dto/index.d.ts",
100
- "default": "./dist/notes/dto/index.js"
101
- },
102
- "./notes/enum": {
103
- "types": "./dist/notes/enum/index.d.ts",
104
- "default": "./dist/notes/enum/index.js"
105
- },
106
-
107
- "./additional-details": {
108
- "types": "./dist/additional-details/index.d.ts",
109
- "default": "./dist/additional-details/index.js"
110
- },
111
- "./additional-details/dto": {
112
- "types": "./dist/additional-details/dto/index.d.ts",
113
- "default": "./dist/additional-details/dto/index.js"
114
- },
115
- "./additional-details/enum": {
116
- "types": "./dist/additional-details/enum/index.d.ts",
117
- "default": "./dist/additional-details/enum/index.js"
118
- },
119
-
120
- "./supporting-files": {
121
- "types": "./dist/supporting-files/index.d.ts",
122
- "default": "./dist/supporting-files/index.js"
123
- },
124
- "./supporting-files/dto": {
125
- "types": "./dist/supporting-files/dto/index.d.ts",
126
- "default": "./dist/supporting-files/dto/index.js"
127
- },
128
- "./supporting-files/enum": {
129
- "types": "./dist/supporting-files/enum/index.d.ts",
130
- "default": "./dist/supporting-files/enum/index.js"
131
- },
132
-
133
- "./projects": {
134
- "types": "./dist/projects/index.d.ts",
135
- "default": "./dist/projects/index.js"
136
- },
137
- "./projects/dto": {
138
- "types": "./dist/projects/dto/index.d.ts",
139
- "default": "./dist/projects/dto/index.js"
17
+ "./package.json": "./package.json",
18
+ "./*": {
19
+ "types": "./dist/*/index.d.ts",
20
+ "default": "./dist/*/index.js"
140
21
  }
141
22
  },
142
23
  "scripts": {