@nomalism-com/api 0.40.31 → 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.d.ts +3 -2
- package/dist/index.js +7 -4
- package/package.json +2 -2
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(
|
|
73
|
-
markAllAsUnread(
|
|
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,14 @@ 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(
|
|
298
|
-
await this.api.put(`${this.route}mark_all_as_read
|
|
297
|
+
async markAllAsRead(params) {
|
|
298
|
+
await this.api.put(`${this.route}mark_all_as_read/${params.owner_id}`);
|
|
299
299
|
}
|
|
300
|
-
async markAllAsUnread(
|
|
301
|
-
await this.api.put(`${this.route}mark_all_as_unread
|
|
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(`${this.publicRoute}mark_all_client_read_unread`, params);
|
|
302
305
|
}
|
|
303
306
|
};
|
|
304
307
|
|
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.
|
|
4
|
+
"version": "0.40.32",
|
|
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.
|
|
26
|
+
"@nomalism-com/types": "^0.40.33",
|
|
27
27
|
"axios": "^1.9.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|