@nomalism-com/types 1.3.14 → 1.3.16
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 +11 -2
- package/dist/modules/stock/chat/interfaces.d.ts +8 -0
- package/dist/modules/stock/chat/route.schema.d.ts +1 -0
- package/dist/modules/ui/portal/interface.d.ts +1 -1
- package/dist/modules/user/tenant/interface.d.ts +2 -0
- package/dist/shared/entities/stock.d.ts +1 -0
- package/dist/shared/entities/user.d.ts +1 -0
- package/package.json +7 -7
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 = {};
|
|
@@ -3582,7 +3589,8 @@ var createBodyKeys44 = {
|
|
|
3582
3589
|
Timezone: joi10.string(),
|
|
3583
3590
|
telephone: joi10.string(),
|
|
3584
3591
|
fax: joi10.string(),
|
|
3585
|
-
website: joi10.string()
|
|
3592
|
+
website: joi10.string(),
|
|
3593
|
+
vat_tax_zone_saft_code: joi10.string().required()
|
|
3586
3594
|
};
|
|
3587
3595
|
var createBody45 = joi10.object().keys(createBodyKeys44).messages(messages);
|
|
3588
3596
|
var updateBodyKeys38 = {
|
|
@@ -3601,7 +3609,8 @@ var updateBodyKeys38 = {
|
|
|
3601
3609
|
Timezone: joi10.string(),
|
|
3602
3610
|
telephone: joi10.string(),
|
|
3603
3611
|
fax: joi10.string(),
|
|
3604
|
-
website: joi10.string()
|
|
3612
|
+
website: joi10.string(),
|
|
3613
|
+
vat_tax_zone_saft_code: joi10.string()
|
|
3605
3614
|
};
|
|
3606
3615
|
var updateBody38 = joi10.object().keys(updateBodyKeys38).messages(messages);
|
|
3607
3616
|
|
|
@@ -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>;
|
|
@@ -21,6 +21,7 @@ export interface ICreateRequest {
|
|
|
21
21
|
telephone?: string | null;
|
|
22
22
|
fax?: string | null;
|
|
23
23
|
website?: string | null;
|
|
24
|
+
vat_tax_zone_saft_code: string;
|
|
24
25
|
}
|
|
25
26
|
export interface IUpdateRequest {
|
|
26
27
|
name?: string;
|
|
@@ -39,6 +40,7 @@ export interface IUpdateRequest {
|
|
|
39
40
|
telephone?: string | null;
|
|
40
41
|
fax?: string | null;
|
|
41
42
|
website?: string | null;
|
|
43
|
+
vat_tax_zone_saft_code?: string;
|
|
42
44
|
}
|
|
43
45
|
export interface IRepository {
|
|
44
46
|
find(): Promise<Entity[]>;
|
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.16",
|
|
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.15.
|
|
29
|
+
"@swc/core": "^1.15.3",
|
|
30
30
|
"@types/node": "^24.10.1",
|
|
31
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
32
|
-
"@typescript-eslint/parser": "^8.
|
|
31
|
+
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
32
|
+
"@typescript-eslint/parser": "^8.48.0",
|
|
33
33
|
"eslint": "^9.39.1",
|
|
34
34
|
"eslint-config-prettier": "^10.1.8",
|
|
35
35
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
36
36
|
"eslint-plugin-prettier": "^5.5.4",
|
|
37
|
-
"prettier": "^3.
|
|
38
|
-
"tsup": "^8.5.
|
|
37
|
+
"prettier": "^3.7.1",
|
|
38
|
+
"tsup": "^8.5.1"
|
|
39
39
|
},
|
|
40
40
|
"repository": {
|
|
41
41
|
"type": "git",
|