@nomalism-com/types 0.40.30 → 0.40.32

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.cjs CHANGED
@@ -1204,8 +1204,8 @@ var updateBodyKeys4 = {
1204
1204
  var updateBody4 = joi6.object().keys(updateBodyKeys4).messages(messages);
1205
1205
  var markAllBodyKeys = {
1206
1206
  owner_id: joi6.string().uuid().required(),
1207
- read: joi6.boolean().required(),
1208
- client_read: joi6.boolean().required()
1207
+ read: joi6.boolean().optional(),
1208
+ client_read: joi6.boolean().optional()
1209
1209
  };
1210
1210
  var markAllBody = joi6.object().keys(markAllBodyKeys).messages(messages);
1211
1211
 
package/dist/index.js CHANGED
@@ -1204,8 +1204,8 @@ var updateBodyKeys4 = {
1204
1204
  var updateBody4 = joi6.object().keys(updateBodyKeys4).messages(messages);
1205
1205
  var markAllBodyKeys = {
1206
1206
  owner_id: joi6.string().uuid().required(),
1207
- read: joi6.boolean().required(),
1208
- client_read: joi6.boolean().required()
1207
+ read: joi6.boolean().optional(),
1208
+ client_read: joi6.boolean().optional()
1209
1209
  };
1210
1210
  var markAllBody = joi6.object().keys(markAllBodyKeys).messages(messages);
1211
1211
 
@@ -54,8 +54,8 @@ export interface IUpdateRequest {
54
54
  }
55
55
  export interface IMarkAllRequest {
56
56
  owner_id: string;
57
- read: boolean;
58
- client_read: boolean;
57
+ read?: boolean;
58
+ client_read?: boolean;
59
59
  }
60
60
  export interface IRepository {
61
61
  findActiveByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IPublicFindActiveByOwnerIdResponse>;
@@ -63,7 +63,7 @@ export interface IRepository {
63
63
  create(data: ICreateRequest): Promise<Chat>;
64
64
  update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
65
65
  deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
66
- markAllAsRead(params: IMarkAllRequest): Promise<void>;
67
- markAllAsUnread(params: IMarkAllRequest): Promise<void>;
66
+ markAllAsRead(body: IMarkAllRequest): Promise<void>;
67
+ markAllAsUnread(body: IMarkAllRequest): Promise<void>;
68
68
  }
69
69
  export type IController = IShared.IEntityWithUserToken<IRepository>;
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": "0.40.30",
4
+ "version": "0.40.32",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",