@nomalism-com/api 0.16.5 → 0.16.6

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.
@@ -3,6 +3,7 @@ import { IModuleConstructor } from '../..';
3
3
  export import IUnfinishedPickingLineGroup = Entity.IUnfinishedPickingLineGroup;
4
4
  export import IUnfinishedPickingsResponse = Entity.IUnfinishedPickingsResponse;
5
5
  export import IPrintLabelParamsRequest = Entity.IPrintLabelParamsRequest;
6
+ export import IPrintLabelQueryRequest = Entity.IPrintLabelQueryRequest;
6
7
  export import IUnfinishedPickingLineGroupExtended = Entity.IUnfinishedPickingLineGroupExtended;
7
8
  export import IGetMaterialEntranceInfoStock = Entity.IGetMaterialEntranceInfoStock;
8
9
  export import IGetMaterialEntranceInfoClientOrder = Entity.IGetMaterialEntranceInfoClientOrder;
@@ -30,5 +31,5 @@ export default class Repository implements Entity.IApi {
30
31
  findUnfinishedPickings({ id, }: shared.IFindByIdRequest): Promise<IUnfinishedPickingsResponse[]>;
31
32
  finalizarEntradaMaterial(data: IFinalizarEntradaDeMaterialRequest): Promise<IFinalizarEntradaDeMaterialResponse>;
32
33
  undoEntradaMaterial(data: IUndoEntradaDeMaterialRequest): Promise<void>;
33
- printLabelToPdfUrl(data: IPrintLabelParamsRequest, token: string): string;
34
+ printLabelToPdfUrl({ document_line_id }: IPrintLabelParamsRequest, { quantity, pc_document_number }: IPrintLabelQueryRequest, token: string): string;
34
35
  }
@@ -90,10 +90,16 @@ var Repository = (function () {
90
90
  });
91
91
  });
92
92
  };
93
- Repository.prototype.printLabelToPdfUrl = function (data, token) {
93
+ Repository.prototype.printLabelToPdfUrl = function (_a, _b, token) {
94
+ var document_line_id = _a.document_line_id;
95
+ var quantity = _b.quantity, pc_document_number = _b.pc_document_number;
94
96
  var qs = new URLSearchParams();
97
+ qs.set('quantity', quantity.toString());
98
+ if (pc_document_number) {
99
+ qs.set('pc_document_number', pc_document_number.toString());
100
+ }
95
101
  qs.set('token', token);
96
- return "".concat(this.route, "print_label_pdf/").concat(data.document_line_assoc_id, "/").concat(data.quantity, "?").concat(qs.toString());
102
+ return "".concat(this.publicRoute, "print_label_pdf/").concat(document_line_id, "?").concat(qs.toString());
97
103
  };
98
104
  return Repository;
99
105
  }());
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.16.5",
12
+ "version": "0.16.6",
13
13
  "main": "dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [
@@ -47,7 +47,7 @@
47
47
  "typescript": "^5.3.3"
48
48
  },
49
49
  "dependencies": {
50
- "@nomalism-com/types": "^0.16.6",
50
+ "@nomalism-com/types": "^0.16.10",
51
51
  "axios": "^0.27.2"
52
52
  }
53
53
  }