@nomalism-com/api 0.51.6 → 0.51.8
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
|
@@ -3009,6 +3009,13 @@ var Repository75 = class {
|
|
|
3009
3009
|
async updateMany(data) {
|
|
3010
3010
|
await this.api.post(`${this.route}update_many`, data);
|
|
3011
3011
|
}
|
|
3012
|
+
async updateVat(data) {
|
|
3013
|
+
const response = await this.api.put(
|
|
3014
|
+
`${this.route}update_vat`,
|
|
3015
|
+
data
|
|
3016
|
+
);
|
|
3017
|
+
return response.data;
|
|
3018
|
+
}
|
|
3012
3019
|
async updateManyByDocumentHeader(params, data) {
|
|
3013
3020
|
await this.api.post(
|
|
3014
3021
|
`${this.route}update_many_by_document_header_id`,
|
|
@@ -3220,6 +3227,13 @@ var Repository82 = class {
|
|
|
3220
3227
|
async retry(body) {
|
|
3221
3228
|
await this.api.post(`${this.route}retry`, body);
|
|
3222
3229
|
}
|
|
3230
|
+
async viewPdf(selector) {
|
|
3231
|
+
const response = await this.api.get(
|
|
3232
|
+
`${this.route}view_pdf/${selector.id}`,
|
|
3233
|
+
{ responseType: "arraybuffer" }
|
|
3234
|
+
);
|
|
3235
|
+
return response.status === 204 ? null : new Uint8Array(response.data);
|
|
3236
|
+
}
|
|
3223
3237
|
async create(body) {
|
|
3224
3238
|
const response = await this.api.post(
|
|
3225
3239
|
`${this.route}`,
|
package/dist/index.js
CHANGED
|
@@ -2976,6 +2976,13 @@ var Repository75 = class {
|
|
|
2976
2976
|
async updateMany(data) {
|
|
2977
2977
|
await this.api.post(`${this.route}update_many`, data);
|
|
2978
2978
|
}
|
|
2979
|
+
async updateVat(data) {
|
|
2980
|
+
const response = await this.api.put(
|
|
2981
|
+
`${this.route}update_vat`,
|
|
2982
|
+
data
|
|
2983
|
+
);
|
|
2984
|
+
return response.data;
|
|
2985
|
+
}
|
|
2979
2986
|
async updateManyByDocumentHeader(params, data) {
|
|
2980
2987
|
await this.api.post(
|
|
2981
2988
|
`${this.route}update_many_by_document_header_id`,
|
|
@@ -3187,6 +3194,13 @@ var Repository82 = class {
|
|
|
3187
3194
|
async retry(body) {
|
|
3188
3195
|
await this.api.post(`${this.route}retry`, body);
|
|
3189
3196
|
}
|
|
3197
|
+
async viewPdf(selector) {
|
|
3198
|
+
const response = await this.api.get(
|
|
3199
|
+
`${this.route}view_pdf/${selector.id}`,
|
|
3200
|
+
{ responseType: "arraybuffer" }
|
|
3201
|
+
);
|
|
3202
|
+
return response.status === 204 ? null : new Uint8Array(response.data);
|
|
3203
|
+
}
|
|
3190
3204
|
async create(body) {
|
|
3191
3205
|
const response = await this.api.post(
|
|
3192
3206
|
`${this.route}`,
|
|
@@ -8,6 +8,7 @@ export default class Repository implements Nomalism.DocumentLine.IRepository {
|
|
|
8
8
|
create(body: Nomalism.DocumentLine.ICreateRequest[]): Promise<Nomalism.DocumentLineAssoc.IEntityExtended[]>;
|
|
9
9
|
update(selector: Nomalism.shared.IFindByIdRequest, body: Nomalism.DocumentLine.IUpdateRequest): Promise<void>;
|
|
10
10
|
updateMany(data: Nomalism.DocumentLine.IUpdateManyRequest): Promise<void>;
|
|
11
|
+
updateVat(data: Nomalism.DocumentLine.IUpdateVatRequest): Promise<Nomalism.DocumentLine.IUpdateVatResponse>;
|
|
11
12
|
updateManyByDocumentHeader(params: Nomalism.shared.IFindByIdRequest, data: Nomalism.DocumentLine.IUpdateManyByDocumentHeaderRequest): Promise<void>;
|
|
12
13
|
deleteMany(document_line_ids: string[]): Promise<void>;
|
|
13
14
|
printLabelToPdfUrl({ document_line_ids }: Nomalism.DocumentLine.IPrintLabelParamsRequest, { token }: Nomalism.DocumentLine.IPrintLabelQueryRequest): string;
|
|
@@ -9,5 +9,6 @@ export default class Repository implements Nomalism.ExternalDocumentHeader.IRepo
|
|
|
9
9
|
deleteOne(params?: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.ExternalDocumentHeader.Entity | null>;
|
|
10
10
|
sendEmailDocument(body: Nomalism.ExternalDocumentHeader.ISendEmailDocumentRequest): Promise<void>;
|
|
11
11
|
retry(body: Nomalism.shared.IFindByIdRequest): Promise<void>;
|
|
12
|
+
viewPdf(selector: Nomalism.shared.IFindByIdRequest): Promise<Uint8Array | null>;
|
|
12
13
|
create(body: Nomalism.ExternalDocumentHeader.ICreateRequest): Promise<Nomalism.ExternalDocumentHeader.Entity>;
|
|
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.8",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"prepare": "husky"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nomalism-com/types": "^0.51.
|
|
33
|
+
"@nomalism-com/types": "^0.51.8",
|
|
34
34
|
"axios": "^1.20.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@eslint/js": "^10.0.1",
|
|
38
|
-
"@swc/core": "^1.16.
|
|
38
|
+
"@swc/core": "^1.16.20",
|
|
39
39
|
"@types/node": "^26.6.5",
|
|
40
40
|
"@typescript-eslint/eslint-plugin": "^8.62.0",
|
|
41
41
|
"@typescript-eslint/parser": "^8.62.0",
|