@managemint-solutions/entities 1.0.16 → 1.0.17

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,20 @@
1
+ import { AdditionalDetailsTypes } from "../enum";
2
+ export type AdditionalDetailsIdDto = {
3
+ additionalDetailsId: string;
4
+ };
5
+ export type GetAdditionalDetailsDto = {
6
+ entity: string;
7
+ entityId: string;
8
+ };
9
+ export type AddAdditionalDetailsDto = {
10
+ key: string;
11
+ value: string | number | boolean | Date | URL;
12
+ type: AdditionalDetailsTypes;
13
+ copyable: boolean;
14
+ };
15
+ export type UpdateAdditionalDetailsDto = {
16
+ key: string;
17
+ value: string | number | boolean | Date | URL;
18
+ type: AdditionalDetailsTypes;
19
+ copyable: boolean;
20
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ export declare enum AdditionalDetailsEntityTypes {
2
+ CLIENT = "clients",
3
+ PROJECT = "projects",
4
+ BUDGET_EXPENSE = "budget_expenses",
5
+ TASKS = "tasks"
6
+ }
7
+ /**
8
+ * Expected value examples by `type`:
9
+ * - Text (`string`): "John Smith", "Invoice 1001"
10
+ * - Number (`number`): 42, 3.14, -10
11
+ * - Boolean (`boolean`): true, false
12
+ * - DATE (`date`):
13
+ * - Input accepts string date values (e.g. "2026-04-22", "2026-04-22T10:30:00Z").
14
+ * - Returned value may be cast to a Date object by the service layer.
15
+ * - URL (`url`):
16
+ * - Input accepts string URL values with http/https (e.g. "https://example.com/path").
17
+ * - Returned value may be cast to a URL object by the service layer.
18
+ */
19
+ export declare enum AdditionalDetailsTypes {
20
+ Text = "string",
21
+ Number = "number",
22
+ Boolean = "boolean",
23
+ DATE = "date",
24
+ URL = "url"
25
+ }
@@ -0,0 +1,28 @@
1
+ export var AdditionalDetailsEntityTypes;
2
+ (function (AdditionalDetailsEntityTypes) {
3
+ AdditionalDetailsEntityTypes["CLIENT"] = "clients";
4
+ AdditionalDetailsEntityTypes["PROJECT"] = "projects";
5
+ AdditionalDetailsEntityTypes["BUDGET_EXPENSE"] = "budget_expenses";
6
+ AdditionalDetailsEntityTypes["TASKS"] = "tasks";
7
+ })(AdditionalDetailsEntityTypes || (AdditionalDetailsEntityTypes = {}));
8
+ ;
9
+ /**
10
+ * Expected value examples by `type`:
11
+ * - Text (`string`): "John Smith", "Invoice 1001"
12
+ * - Number (`number`): 42, 3.14, -10
13
+ * - Boolean (`boolean`): true, false
14
+ * - DATE (`date`):
15
+ * - Input accepts string date values (e.g. "2026-04-22", "2026-04-22T10:30:00Z").
16
+ * - Returned value may be cast to a Date object by the service layer.
17
+ * - URL (`url`):
18
+ * - Input accepts string URL values with http/https (e.g. "https://example.com/path").
19
+ * - Returned value may be cast to a URL object by the service layer.
20
+ */
21
+ export var AdditionalDetailsTypes;
22
+ (function (AdditionalDetailsTypes) {
23
+ AdditionalDetailsTypes["Text"] = "string";
24
+ AdditionalDetailsTypes["Number"] = "number";
25
+ AdditionalDetailsTypes["Boolean"] = "boolean";
26
+ AdditionalDetailsTypes["DATE"] = "date";
27
+ AdditionalDetailsTypes["URL"] = "url";
28
+ })(AdditionalDetailsTypes || (AdditionalDetailsTypes = {}));
@@ -0,0 +1,9 @@
1
+ import { UUID } from "crypto";
2
+ import { AdditionalDetailsTypes } from "./enum";
3
+ export type AdditionalDetailEntity = {
4
+ mms_id: UUID;
5
+ key: string;
6
+ value: string | number | boolean | Date | URL;
7
+ type: AdditionalDetailsTypes;
8
+ copyable: boolean;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ export type NoteIdDto = {
2
+ noteId: string;
3
+ };
4
+ export type GetNotesDto = {
5
+ entity: string;
6
+ entityId: string;
7
+ };
8
+ export type AddNoteDto = {
9
+ content: string;
10
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export declare enum NotesEntityTypes {
2
+ CLIENT = "clients",
3
+ PROJECT = "projects",
4
+ BUDGET_EXPENSE = "budget_expenses",
5
+ TASKS = "tasks"
6
+ }
@@ -0,0 +1,8 @@
1
+ export var NotesEntityTypes;
2
+ (function (NotesEntityTypes) {
3
+ NotesEntityTypes["CLIENT"] = "clients";
4
+ NotesEntityTypes["PROJECT"] = "projects";
5
+ NotesEntityTypes["BUDGET_EXPENSE"] = "budget_expenses";
6
+ NotesEntityTypes["TASKS"] = "tasks";
7
+ })(NotesEntityTypes || (NotesEntityTypes = {}));
8
+ ;
@@ -0,0 +1,9 @@
1
+ import { UUID } from "crypto";
2
+ import { UserIdentity } from "../users";
3
+ export type NoteEntity = {
4
+ mms_id: UUID;
5
+ created_at: Date;
6
+ user: UserIdentity;
7
+ content: string;
8
+ pinned: boolean;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managemint-solutions/entities",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
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": {
@@ -89,6 +89,32 @@
89
89
  "./subscription/enum": {
90
90
  "types": "./dist/subscription/enum/index.d.ts",
91
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"
92
118
  }
93
119
  },
94
120
  "scripts": {