@nomalism-com/api 0.40.31 → 0.40.33

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.d.ts CHANGED
@@ -69,8 +69,9 @@ declare class Repository$1R implements Nomalism$1.Chat.IRepository {
69
69
  update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.Chat.IUpdateRequest): Promise<void>;
70
70
  deleteOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
71
71
  resendLast({ owner_id }: Nomalism$1.shared.IFindByOwnerIdRequest): Promise<void>;
72
- markAllAsRead(body: Nomalism$1.Chat.IMarkAllRequest): Promise<void>;
73
- markAllAsUnread(body: Nomalism$1.Chat.IMarkAllRequest): Promise<void>;
72
+ markAllAsRead(params: Nomalism$1.shared.IFindByOwnerIdRequest): Promise<void>;
73
+ markAllAsUnread(params: Nomalism$1.shared.IFindByOwnerIdRequest): Promise<void>;
74
+ publicMarkAllClientReadUnread(params: Nomalism$1.Chat.IMarkAllClientReadUnreadRequest): Promise<void>;
74
75
  }
75
76
 
76
77
  type IPaginationResponse$4 = Nomalism$1.shared.IPaginationResponse<Nomalism$1.Commissioner.IFindResponse>;
package/dist/index.js CHANGED
@@ -294,11 +294,16 @@ var Repository4 = class {
294
294
  async resendLast({ owner_id }) {
295
295
  await this.api.post(`${this.route}resend_last/${owner_id}`);
296
296
  }
297
- async markAllAsRead(body) {
298
- await this.api.put(`${this.route}mark_all_as_read`, body);
297
+ async markAllAsRead(params) {
298
+ await this.api.put(`${this.route}mark_all_as_read/${params.owner_id}`);
299
299
  }
300
- async markAllAsUnread(body) {
301
- await this.api.put(`${this.route}mark_all_as_unread`, body);
300
+ async markAllAsUnread(params) {
301
+ await this.api.put(`${this.route}mark_all_as_unread/${params.owner_id}`);
302
+ }
303
+ async publicMarkAllClientReadUnread(params) {
304
+ await this.api.put(
305
+ `${this.publicRoute}mark_all_client_read_unread/${params.owner_id}/${params.client_read}`
306
+ );
302
307
  }
303
308
  };
304
309
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nomalism-com/api",
3
3
  "description": "A nomalism API package for performing HTTP requests on API endpoints",
4
- "version": "0.40.31",
4
+ "version": "0.40.33",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -23,7 +23,7 @@
23
23
  "prepack": "npm run lint && npm run build"
24
24
  },
25
25
  "dependencies": {
26
- "@nomalism-com/types": "^0.40.32",
26
+ "@nomalism-com/types": "^0.40.33",
27
27
  "axios": "^1.9.0"
28
28
  },
29
29
  "devDependencies": {