@nomalism-com/api 0.16.8 → 0.16.10

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 }: IPrintLabelQueryRequest, token: string): string;
34
+ printLabelToPdfUrl({ document_line_id, product_id }: IPrintLabelParamsRequest, { quantity, pc_document_number, prison }: IPrintLabelQueryRequest, token: string): string;
35
35
  }
@@ -92,12 +92,13 @@ 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;
95
+ var quantity = _b.quantity, pc_document_number = _b.pc_document_number, prison = _b.prison;
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
+ qs.set('prison', prison.toString());
101
102
  qs.set('token', token);
102
103
  return "".concat(this.publicRoute, "print_label_pdf/").concat(product_id, "/").concat(document_line_id, "?").concat(qs.toString());
103
104
  };
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.16.8",
12
+ "version": "0.16.10",
13
13
  "main": "dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [
@@ -32,9 +32,9 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/convert-units": "^2.3.9",
35
- "@types/node": "^20.10.5",
36
- "@typescript-eslint/eslint-plugin": "^6.16.0",
37
- "@typescript-eslint/parser": "^6.16.0",
35
+ "@types/node": "^20.10.6",
36
+ "@typescript-eslint/eslint-plugin": "^6.17.0",
37
+ "@typescript-eslint/parser": "^6.17.0",
38
38
  "concurrently": "^8.2.2",
39
39
  "eslint": "^8.56.0",
40
40
  "eslint-config-airbnb-base": "^15.0.0",
@@ -47,7 +47,7 @@
47
47
  "typescript": "^5.3.3"
48
48
  },
49
49
  "dependencies": {
50
- "@nomalism-com/types": "^0.16.12",
50
+ "@nomalism-com/types": "^0.16.15",
51
51
  "axios": "^0.27.2"
52
52
  }
53
53
  }