@nomalism-com/api 0.43.60 → 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 +3 -0
- package/dist/index.js +12 -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 {
|
|
@@ -1741,6 +1742,8 @@ declare class Repository$3 implements Nomalism$1.LLM.IRepository {
|
|
|
1741
1742
|
private api;
|
|
1742
1743
|
constructor({ api, route }: IModuleConstructor);
|
|
1743
1744
|
prompt(data: Nomalism$1.LLM.IPromptRequest, { onChunk, onDone, onError }: Nomalism$1.LLM.IPromptResponse): Nomalism$1.LLM.IPromptAbortController;
|
|
1745
|
+
translate(body: Nomalism$1.LLM.ITranslateRequest): Promise<string>;
|
|
1746
|
+
identifyLanguage(body: Nomalism$1.LLM.IIdentifyLanguageRequest): Promise<string>;
|
|
1744
1747
|
}
|
|
1745
1748
|
|
|
1746
1749
|
declare namespace llm {
|
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
|
|
@@ -4039,6 +4043,14 @@ var Repository120 = class {
|
|
|
4039
4043
|
})();
|
|
4040
4044
|
return { abort: () => ac.abort() };
|
|
4041
4045
|
}
|
|
4046
|
+
async translate(body) {
|
|
4047
|
+
const response = await this.api.post(`${this.route}translate`, body);
|
|
4048
|
+
return response.data;
|
|
4049
|
+
}
|
|
4050
|
+
async identifyLanguage(body) {
|
|
4051
|
+
const response = await this.api.post(`${this.route}identify_language`, body);
|
|
4052
|
+
return response.data;
|
|
4053
|
+
}
|
|
4042
4054
|
};
|
|
4043
4055
|
|
|
4044
4056
|
// src/modules/integration/patchNotes.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": {
|