@nomalism-com/api 0.51.11 → 0.51.13
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}`,
|
|
@@ -4833,6 +4847,13 @@ var Repository124 = class {
|
|
|
4833
4847
|
async updatePassword(selector, body) {
|
|
4834
4848
|
await this.api.put(`${this.route}password/${selector.id}`, body);
|
|
4835
4849
|
}
|
|
4850
|
+
async validatePin(body) {
|
|
4851
|
+
const response = await this.api.post(
|
|
4852
|
+
`${this.route}validate_pin`,
|
|
4853
|
+
body
|
|
4854
|
+
);
|
|
4855
|
+
return response.data;
|
|
4856
|
+
}
|
|
4836
4857
|
async updateOwnPin(body) {
|
|
4837
4858
|
await this.api.put(`${this.route}pin`, body);
|
|
4838
4859
|
}
|
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}`,
|
|
@@ -4800,6 +4814,13 @@ var Repository124 = class {
|
|
|
4800
4814
|
async updatePassword(selector, body) {
|
|
4801
4815
|
await this.api.put(`${this.route}password/${selector.id}`, body);
|
|
4802
4816
|
}
|
|
4817
|
+
async validatePin(body) {
|
|
4818
|
+
const response = await this.api.post(
|
|
4819
|
+
`${this.route}validate_pin`,
|
|
4820
|
+
body
|
|
4821
|
+
);
|
|
4822
|
+
return response.data;
|
|
4823
|
+
}
|
|
4803
4824
|
async updateOwnPin(body) {
|
|
4804
4825
|
await this.api.put(`${this.route}pin`, body);
|
|
4805
4826
|
}
|
|
@@ -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
|
}
|
|
@@ -9,5 +9,6 @@ export default class Repository implements Nomalism.StoreOperator.IRepository {
|
|
|
9
9
|
create(body: Nomalism.StoreOperator.ICreateRequest): Promise<string>;
|
|
10
10
|
update(selector: Nomalism.shared.IFindByIdRequest, body: Nomalism.StoreOperator.IUpdateRequest): Promise<void>;
|
|
11
11
|
updatePassword(selector: Nomalism.shared.IFindByIdRequest, body: Nomalism.StoreOperator.IUpdatePasswordRequest): Promise<void>;
|
|
12
|
+
validatePin(body: Nomalism.StoreOperator.IValidatePinRequest): Promise<Nomalism.StoreOperator.IFindResponse>;
|
|
12
13
|
updateOwnPin(body: Nomalism.StoreOperator.IUpdateOwnPinRequest): Promise<void>;
|
|
13
14
|
}
|
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.
|
|
4
|
+
"version": "0.51.13",
|
|
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.
|
|
34
|
-
"axios": "^1.
|
|
33
|
+
"@nomalism-com/types": "^0.51.13",
|
|
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.
|
|
50
|
+
"typescript-eslint": "^8.72.1"
|
|
51
51
|
},
|
|
52
52
|
"repository": {
|
|
53
53
|
"type": "git",
|