@nomalism-com/api 0.43.62 → 0.43.63

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
@@ -67,6 +67,7 @@ declare class Repository$1T implements Nomalism$1.Chat.IRepository {
67
67
  markAllAsRead({ id }: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
68
68
  markAllAsUnread({ id }: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
69
69
  publicMarkAllClientReadUnread(params: Nomalism$1.Chat.IMarkAllClientReadUnreadRequest): Promise<void>;
70
+ translate(body: Nomalism$1.Chat.ITranslateRequest): Promise<string>;
70
71
  }
71
72
 
72
73
  type IPaginationResponse$4 = Nomalism$1.shared.IPaginationResponse<Nomalism$1.Commissioner.IFindResponse>;
package/dist/index.js CHANGED
@@ -297,6 +297,10 @@ var Repository4 = class {
297
297
  `${this.route}mark_all_client_read_unread/${params.chat_document_header_id}/${params.client_read}`
298
298
  );
299
299
  }
300
+ async translate(body) {
301
+ const response = await this.api.post(`${this.route}translate`, body);
302
+ return response.data;
303
+ }
300
304
  };
301
305
 
302
306
  // src/modules/user/commissioner.ts
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.43.62",
4
+ "version": "0.43.63",
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.43.74",
26
+ "@nomalism-com/types": "^0.43.76",
27
27
  "axios": "^1.13.6"
28
28
  },
29
29
  "devDependencies": {