@nomalism-com/api 0.45.8 → 0.45.10
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.js
CHANGED
|
@@ -1041,6 +1041,16 @@ var Repository24 = class {
|
|
|
1041
1041
|
});
|
|
1042
1042
|
return response.data;
|
|
1043
1043
|
}
|
|
1044
|
+
async update(id, multipartFormData, headers) {
|
|
1045
|
+
await this.api.post(`${this.route}upload_and_update/${id}`, multipartFormData, {
|
|
1046
|
+
headers: {
|
|
1047
|
+
...headers || {},
|
|
1048
|
+
"content-type": "multipart/form-data"
|
|
1049
|
+
},
|
|
1050
|
+
maxBodyLength: Infinity,
|
|
1051
|
+
maxContentLength: Infinity
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
1044
1054
|
};
|
|
1045
1055
|
|
|
1046
1056
|
// src/modules/integration/observation.ts
|
|
@@ -4208,6 +4218,10 @@ var Repository119 = class {
|
|
|
4208
4218
|
const response = await this.api.post(`${this.route}identify_language`, body);
|
|
4209
4219
|
return response.data;
|
|
4210
4220
|
}
|
|
4221
|
+
async identifyAndTranslate(body) {
|
|
4222
|
+
const response = await this.api.post(`${this.route}identify_and_translate`, body);
|
|
4223
|
+
return response.data;
|
|
4224
|
+
}
|
|
4211
4225
|
};
|
|
4212
4226
|
|
|
4213
4227
|
// src/modules/integration/patchNotes.ts
|
|
@@ -7,4 +7,5 @@ export default class Repository implements Nomalism.Multimedia.IApi {
|
|
|
7
7
|
constructor({ api, route }: IModuleConstructor);
|
|
8
8
|
getUrl(multimediaId: string, download?: boolean): string;
|
|
9
9
|
create(multipartFormData: any, headers?: RawAxiosRequestHeaders): Promise<Nomalism.Multimedia.Entity>;
|
|
10
|
+
update(id: string, multipartFormData: any, headers?: RawAxiosRequestHeaders): Promise<void>;
|
|
10
11
|
}
|
|
@@ -7,4 +7,5 @@ export default class Repository implements Nomalism.LLM.IRepository {
|
|
|
7
7
|
prompt(data: Nomalism.LLM.IPromptRequest, { onChunk, onDone, onError }: Nomalism.LLM.IPromptResponse): Nomalism.LLM.IPromptAbortController;
|
|
8
8
|
translate(body: Nomalism.LLM.ITranslateRequest): Promise<string>;
|
|
9
9
|
identifyLanguage(body: Nomalism.LLM.IIdentifyLanguageRequest): Promise<string>;
|
|
10
|
+
identifyAndTranslate(body: Nomalism.LLM.ITranslateRequest): Promise<Nomalism.LLM.IIdentifyAndTranslateResponse>;
|
|
10
11
|
}
|
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.45.
|
|
4
|
+
"version": "0.45.10",
|
|
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.45.
|
|
26
|
+
"@nomalism-com/types": "^0.45.12",
|
|
27
27
|
"axios": "^1.16.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|