@nomalism-com/api 0.43.61 → 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 +2 -0
- package/dist/index.js +8 -0
- package/package.json +2 -2
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>;
|
|
@@ -1296,6 +1297,7 @@ declare class Repository$A implements Nomalism$1.EmailTemplate.IRepository {
|
|
|
1296
1297
|
update(selector: Nomalism$1.shared.IFindByIdRequest, data: Nomalism$1.EmailTemplate.IUpdateRequest): Promise<void>;
|
|
1297
1298
|
deleteOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
1298
1299
|
send(data: Nomalism$1.EmailTemplate.ISendRequest): Promise<void>;
|
|
1300
|
+
preview(selector: Nomalism$1.shared.IFindByIdRequest, data: Nomalism$1.EmailTemplate.EmailPreviewRequest): Promise<Nomalism$1.EmailTemplate.EmailPreviewResponse>;
|
|
1299
1301
|
}
|
|
1300
1302
|
|
|
1301
1303
|
declare namespace emailTemplate {
|
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
|
|
@@ -3117,6 +3121,10 @@ var Repository87 = class {
|
|
|
3117
3121
|
const response = await this.api.post(`${this.route}send`, data);
|
|
3118
3122
|
return response.data;
|
|
3119
3123
|
}
|
|
3124
|
+
async preview(selector, data) {
|
|
3125
|
+
const response = await this.api.post(`${this.route}preview/${selector.id}`, data);
|
|
3126
|
+
return response.data;
|
|
3127
|
+
}
|
|
3120
3128
|
};
|
|
3121
3129
|
|
|
3122
3130
|
// src/modules/integration/emailTemplateAttachment.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.
|
|
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.
|
|
26
|
+
"@nomalism-com/types": "^0.43.76",
|
|
27
27
|
"axios": "^1.13.6"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|