@nomalism-com/api 0.17.28 → 0.17.29

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.
@@ -31,5 +31,5 @@ export default class Repository implements Entity.IApi {
31
31
  findUnfinishedPickings({ id, }: shared.IFindByIdRequest): Promise<IUnfinishedPickingsResponse[]>;
32
32
  finalizarEntradaMaterial(data: IFinalizarEntradaDeMaterialRequest): Promise<IFinalizarEntradaDeMaterialResponse>;
33
33
  undoEntradaMaterial(data: IUndoEntradaDeMaterialRequest): Promise<void>;
34
- printLabelToPdfUrl({ document_line_id, product_id }: IPrintLabelParamsRequest, { quantity, pc_document_number, prison }: IPrintLabelQueryRequest, token: string): string;
34
+ printLabelToPdfUrl({ document_line_id, product_id }: IPrintLabelParamsRequest, { quantity, pc_document_number, prison, note }: IPrintLabelQueryRequest, token: string): string;
35
35
  }
@@ -92,12 +92,15 @@ var Repository = (function () {
92
92
  };
93
93
  Repository.prototype.printLabelToPdfUrl = function (_a, _b, token) {
94
94
  var document_line_id = _a.document_line_id, product_id = _a.product_id;
95
- var quantity = _b.quantity, pc_document_number = _b.pc_document_number, prison = _b.prison;
95
+ var quantity = _b.quantity, pc_document_number = _b.pc_document_number, prison = _b.prison, note = _b.note;
96
96
  var qs = new URLSearchParams();
97
97
  qs.set('quantity', quantity.toString());
98
98
  if (pc_document_number) {
99
99
  qs.set('pc_document_number', pc_document_number.toString());
100
100
  }
101
+ if (note) {
102
+ qs.set('note', note.toString());
103
+ }
101
104
  qs.set('prison', prison.toString());
102
105
  qs.set('token', token);
103
106
  return "".concat(this.publicRoute, "print_label_pdf/").concat(product_id, "/").concat(document_line_id, "?").concat(qs.toString());
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.17.28",
12
+ "version": "0.17.29",
13
13
  "main": "dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [