@nomalism-com/types 1.3.13 → 1.3.15
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.
- package/dist/index.js +14 -1
- package/dist/modules/stock/chat/interfaces.d.ts +8 -0
- package/dist/modules/stock/chat/route.schema.d.ts +1 -0
- package/dist/modules/supply/documentType/interfaces.d.ts +6 -0
- package/dist/modules/ui/portal/interface.d.ts +1 -1
- package/dist/shared/entities/stock.d.ts +1 -0
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -1173,6 +1173,7 @@ var findByPostalCodeBody = joi10.object().keys(findByPostalCodeBodyKeys).message
|
|
|
1173
1173
|
var route_schema_exports5 = {};
|
|
1174
1174
|
__export(route_schema_exports5, {
|
|
1175
1175
|
createBody: () => createBody5,
|
|
1176
|
+
markAllClientReadUnreadParams: () => markAllClientReadUnreadParams,
|
|
1176
1177
|
updateBody: () => updateBody4
|
|
1177
1178
|
});
|
|
1178
1179
|
var createBodyKeys5 = {
|
|
@@ -1191,9 +1192,15 @@ var updateBodyKeys4 = {
|
|
|
1191
1192
|
email_opened: joi10.boolean().optional(),
|
|
1192
1193
|
email_clicked: joi10.boolean().optional(),
|
|
1193
1194
|
read: joi10.boolean().optional(),
|
|
1195
|
+
client_read: joi10.boolean().optional(),
|
|
1194
1196
|
username: joi10.string().optional()
|
|
1195
1197
|
};
|
|
1196
1198
|
var updateBody4 = joi10.object().keys(updateBodyKeys4).messages(messages);
|
|
1199
|
+
var markAllClientReadUnreadParamsKeys = {
|
|
1200
|
+
owner_id: joi10.string().uuid().required(),
|
|
1201
|
+
client_read: joi10.boolean().required()
|
|
1202
|
+
};
|
|
1203
|
+
var markAllClientReadUnreadParams = joi10.object().keys(markAllClientReadUnreadParamsKeys).messages(messages);
|
|
1197
1204
|
|
|
1198
1205
|
// src/modules/user/commissioner/interface.ts
|
|
1199
1206
|
var interface_exports5 = {};
|
|
@@ -1419,7 +1426,13 @@ var DocumentTypeCodeTypeEnum = {
|
|
|
1419
1426
|
FP: "FP",
|
|
1420
1427
|
RDP: "RDP",
|
|
1421
1428
|
NRCL: "NRCL",
|
|
1422
|
-
FPM: "FPM"
|
|
1429
|
+
FPM: "FPM",
|
|
1430
|
+
FTM: "FTM",
|
|
1431
|
+
FRM: "FRM",
|
|
1432
|
+
FSM: "FSM",
|
|
1433
|
+
NCM: "NCM",
|
|
1434
|
+
ADM: "ADM",
|
|
1435
|
+
NCADM: "NCADM"
|
|
1423
1436
|
};
|
|
1424
1437
|
var documentTypeCodeTypes = Object.keys(DocumentTypeCodeTypeEnum);
|
|
1425
1438
|
|
|
@@ -15,10 +15,12 @@ export interface IChatBalloon {
|
|
|
15
15
|
chat?: Pick<Entity, 'message'> & {
|
|
16
16
|
id?: string;
|
|
17
17
|
read?: boolean;
|
|
18
|
+
client_read?: boolean;
|
|
18
19
|
};
|
|
19
20
|
file?: Pick<File, 'multimedia_id' | 'filename'> & {
|
|
20
21
|
id?: string;
|
|
21
22
|
read?: boolean;
|
|
23
|
+
client_read?: boolean;
|
|
22
24
|
};
|
|
23
25
|
created_at: Date;
|
|
24
26
|
created_by: string;
|
|
@@ -46,8 +48,13 @@ export interface IUpdateRequest {
|
|
|
46
48
|
email_opened?: boolean;
|
|
47
49
|
email_clicked?: boolean;
|
|
48
50
|
read?: boolean;
|
|
51
|
+
client_read?: boolean;
|
|
49
52
|
username?: string;
|
|
50
53
|
}
|
|
54
|
+
export interface IMarkAllClientReadUnreadRequest {
|
|
55
|
+
owner_id: string;
|
|
56
|
+
client_read: boolean;
|
|
57
|
+
}
|
|
51
58
|
export interface IRepository {
|
|
52
59
|
findActiveByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IPublicFindActiveByOwnerIdResponse>;
|
|
53
60
|
resendLast(params: IShared.IFindByOwnerIdRequest): Promise<void>;
|
|
@@ -56,5 +63,6 @@ export interface IRepository {
|
|
|
56
63
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
57
64
|
markAllAsRead(params: IShared.IFindByOwnerIdRequest): Promise<void>;
|
|
58
65
|
markAllAsUnread(params: IShared.IFindByOwnerIdRequest): Promise<void>;
|
|
66
|
+
publicMarkAllClientReadUnread(params: IMarkAllClientReadUnreadRequest): Promise<void>;
|
|
59
67
|
}
|
|
60
68
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -55,6 +55,12 @@ export declare const DocumentTypeCodeTypeEnum: {
|
|
|
55
55
|
RDP: 'RDP';
|
|
56
56
|
NRCL: 'NRCL';
|
|
57
57
|
FPM: 'FPM';
|
|
58
|
+
FTM: 'FTM';
|
|
59
|
+
FRM: 'FRM';
|
|
60
|
+
FSM: 'FSM';
|
|
61
|
+
NCM: 'NCM';
|
|
62
|
+
ADM: 'ADM';
|
|
63
|
+
NCADM: 'NCADM';
|
|
58
64
|
};
|
|
59
65
|
export type IDocumentTypeCodeType = (typeof DocumentTypeCodeTypeEnum)[keyof typeof DocumentTypeCodeTypeEnum];
|
|
60
66
|
export declare const documentTypeCodeTypes: string[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/types",
|
|
3
3
|
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.15",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
"prepack": "npm run lint && npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"joi": "^18.0.
|
|
26
|
+
"joi": "^18.0.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@swc/core": "^1.
|
|
30
|
-
"@types/node": "^24.
|
|
31
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
32
|
-
"@typescript-eslint/parser": "^8.
|
|
33
|
-
"eslint": "^9.
|
|
34
|
-
"eslint-config-prettier": "^10.1.
|
|
35
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
36
|
-
"eslint-plugin-prettier": "^5.4
|
|
37
|
-
"prettier": "^3.
|
|
38
|
-
"tsup": "^8.5.
|
|
29
|
+
"@swc/core": "^1.15.3",
|
|
30
|
+
"@types/node": "^24.10.1",
|
|
31
|
+
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
32
|
+
"@typescript-eslint/parser": "^8.48.0",
|
|
33
|
+
"eslint": "^9.39.1",
|
|
34
|
+
"eslint-config-prettier": "^10.1.8",
|
|
35
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
36
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
37
|
+
"prettier": "^3.6.2",
|
|
38
|
+
"tsup": "^8.5.1"
|
|
39
39
|
},
|
|
40
40
|
"repository": {
|
|
41
41
|
"type": "git",
|