@nomalism-com/api 0.51.5 → 0.51.7
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 +7 -0
- package/dist/index.js +7 -0
- package/dist/modules/supply/documentLine.d.ts +1 -0
- package/package.json +2 -2
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`,
|
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`,
|
|
@@ -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;
|
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.7",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"prepare": "husky"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nomalism-com/types": "^0.51.
|
|
33
|
+
"@nomalism-com/types": "^0.51.7",
|
|
34
34
|
"axios": "^1.20.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|