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