@nomalism-com/api 1.3.11 → 1.3.14
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 +9 -4
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -69,8 +69,9 @@ declare class Repository$1S 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
|
@@ -295,11 +295,16 @@ var Repository4 = class {
|
|
|
295
295
|
async resendLast({ owner_id }) {
|
|
296
296
|
await this.api.post(`${this.route}resend_last/${owner_id}`);
|
|
297
297
|
}
|
|
298
|
-
async markAllAsRead(
|
|
299
|
-
await this.api.put(`${this.route}mark_all_as_read/${
|
|
298
|
+
async markAllAsRead(params) {
|
|
299
|
+
await this.api.put(`${this.route}mark_all_as_read/${params.owner_id}`);
|
|
300
300
|
}
|
|
301
|
-
async markAllAsUnread(
|
|
302
|
-
await this.api.put(`${this.route}mark_all_as_unread/${
|
|
301
|
+
async markAllAsUnread(params) {
|
|
302
|
+
await this.api.put(`${this.route}mark_all_as_unread/${params.owner_id}`);
|
|
303
|
+
}
|
|
304
|
+
async publicMarkAllClientReadUnread(params) {
|
|
305
|
+
await this.api.put(
|
|
306
|
+
`${this.publicRoute}mark_all_client_read_unread/${params.owner_id}/${params.client_read}`
|
|
307
|
+
);
|
|
303
308
|
}
|
|
304
309
|
};
|
|
305
310
|
|
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": "1.3.
|
|
4
|
+
"version": "1.3.14",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -19,24 +19,24 @@
|
|
|
19
19
|
"scripts": {
|
|
20
20
|
"lint": "eslint --fix",
|
|
21
21
|
"prebuild": "rm -rf dist",
|
|
22
|
-
"build": "tsc --emitDeclarationOnly && tsup",
|
|
22
|
+
"build": "tsc --emitDeclarationOnly --skipLibCheck && tsup",
|
|
23
23
|
"prepack": "npm run lint && npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@nomalism-com/types": "^1.3.
|
|
26
|
+
"@nomalism-com/types": "^1.3.15",
|
|
27
27
|
"axios": "^1.13.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@swc/core": "^1.15.
|
|
30
|
+
"@swc/core": "^1.15.3",
|
|
31
31
|
"@types/node": "^24.10.1",
|
|
32
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
33
|
-
"@typescript-eslint/parser": "^8.
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
33
|
+
"@typescript-eslint/parser": "^8.48.0",
|
|
34
34
|
"eslint": "^9.39.1",
|
|
35
35
|
"eslint-config-prettier": "^10.1.8",
|
|
36
36
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
37
37
|
"eslint-plugin-prettier": "^5.5.4",
|
|
38
38
|
"prettier": "^3.6.2",
|
|
39
|
-
"tsup": "^8.5.
|
|
39
|
+
"tsup": "^8.5.1"
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|