@nomalism-com/api 0.51.11 → 0.51.12

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.cjs CHANGED
@@ -3245,6 +3245,20 @@ var Repository82 = class {
3245
3245
  );
3246
3246
  return response.status === 204 ? null : new Uint8Array(response.data);
3247
3247
  }
3248
+ async findPdfLanguages(params) {
3249
+ const response = await this.api.get(
3250
+ `${this.route}pdf_languages`,
3251
+ { params }
3252
+ );
3253
+ return response.data;
3254
+ }
3255
+ async createTranslation(body) {
3256
+ const response = await this.api.post(
3257
+ `${this.route}translation`,
3258
+ body
3259
+ );
3260
+ return response.data;
3261
+ }
3248
3262
  async create(body) {
3249
3263
  const response = await this.api.post(
3250
3264
  `${this.route}`,
package/dist/index.js CHANGED
@@ -3212,6 +3212,20 @@ var Repository82 = class {
3212
3212
  );
3213
3213
  return response.status === 204 ? null : new Uint8Array(response.data);
3214
3214
  }
3215
+ async findPdfLanguages(params) {
3216
+ const response = await this.api.get(
3217
+ `${this.route}pdf_languages`,
3218
+ { params }
3219
+ );
3220
+ return response.data;
3221
+ }
3222
+ async createTranslation(body) {
3223
+ const response = await this.api.post(
3224
+ `${this.route}translation`,
3225
+ body
3226
+ );
3227
+ return response.data;
3228
+ }
3215
3229
  async create(body) {
3216
3230
  const response = await this.api.post(
3217
3231
  `${this.route}`,
@@ -10,5 +10,7 @@ export default class Repository implements Nomalism.ExternalDocumentHeader.IRepo
10
10
  sendEmailDocument(body: Nomalism.ExternalDocumentHeader.ISendEmailDocumentRequest): Promise<void>;
11
11
  retry(body: Nomalism.shared.IFindByIdRequest): Promise<void>;
12
12
  viewPdf(selector: Nomalism.shared.IFindByIdRequest): Promise<Uint8Array | null>;
13
+ findPdfLanguages(params?: Nomalism.shared.IFindByOwnerIdRequest): Promise<Nomalism.ExternalDocumentHeader.IFindPdfLanguagesResponse>;
14
+ createTranslation(body: Nomalism.ExternalDocumentHeader.ICreateTranslationRequest): Promise<Nomalism.ExternalDocumentHeader.IPdfTranslation>;
13
15
  create(body: Nomalism.ExternalDocumentHeader.ICreateRequest): Promise<Nomalism.ExternalDocumentHeader.Entity>;
14
16
  }
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.51.11",
4
+ "version": "0.51.12",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -30,8 +30,8 @@
30
30
  "prepare": "husky"
31
31
  },
32
32
  "dependencies": {
33
- "@nomalism-com/types": "^0.51.10",
34
- "axios": "^1.20.0"
33
+ "@nomalism-com/types": "^0.51.11",
34
+ "axios": "^1.21.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@eslint/js": "^10.0.1",
@@ -47,7 +47,7 @@
47
47
  "lint-staged": "^17.6.0",
48
48
  "prettier": "^3.9.10",
49
49
  "tsup": "^9.0.0",
50
- "typescript-eslint": "^8.72.0"
50
+ "typescript-eslint": "^8.72.1"
51
51
  },
52
52
  "repository": {
53
53
  "type": "git",