@nomalism-com/api 0.16.9 → 0.16.11
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
|
};
|
|
@@ -21,7 +21,6 @@ export import ICreateFromHeaderRequest = Entity.ICreateFromHeaderRequest;
|
|
|
21
21
|
export import IGetActionsResponse = Entity.IGetActionsResponse;
|
|
22
22
|
export import ITaskCluster = shared.ITaskCluster;
|
|
23
23
|
export import IUnpaidDocumentResponse = Entity.IUnpaidDocumentResponse;
|
|
24
|
-
export import ICreateFromLinesRequest = Entity.ICreateFromLinesRequest;
|
|
25
24
|
export import IValueByVatTax = Entity.IValueByVatTax;
|
|
26
25
|
export import IFindProviderInvoiceRequest = Entity.IFindProviderInvoiceRequest;
|
|
27
26
|
export import IFindProviderInvoiceResponse = Entity.IFindProviderInvoiceResponse;
|
|
@@ -59,7 +58,6 @@ export default class Repository implements Entity.IApi {
|
|
|
59
58
|
create(body: ICreateRequest): Promise<IEntity>;
|
|
60
59
|
createFromHeader(body: ICreateFromHeaderRequest): Promise<ITaskCluster[]>;
|
|
61
60
|
createProductionOrder(body: ICreateProductionOrderRequest): Promise<void>;
|
|
62
|
-
createFromLines(body: ICreateFromLinesRequest): Promise<shared.IBrokerMessage<shared.IBrokerTopic>[]>;
|
|
63
61
|
update(selector: shared.IFindByIdRequest, body: IUpdateRequest): Promise<IEntity>;
|
|
64
62
|
deleteOne(selector: shared.IFindByIdRequest): Promise<void>;
|
|
65
63
|
getActions(selector: shared.IFindByIdRequest): Promise<IGetActionsResponse[]>;
|
|
@@ -238,19 +238,6 @@ var Repository = (function () {
|
|
|
238
238
|
});
|
|
239
239
|
});
|
|
240
240
|
};
|
|
241
|
-
Repository.prototype.createFromLines = function (body) {
|
|
242
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
243
|
-
var response;
|
|
244
|
-
return __generator(this, function (_a) {
|
|
245
|
-
switch (_a.label) {
|
|
246
|
-
case 0: return [4, this.api.post("".concat(this.route, "from_lines"), body)];
|
|
247
|
-
case 1:
|
|
248
|
-
response = _a.sent();
|
|
249
|
-
return [2, response.data];
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
});
|
|
253
|
-
};
|
|
254
241
|
Repository.prototype.update = function (selector, body) {
|
|
255
242
|
return __awaiter(this, void 0, void 0, function () {
|
|
256
243
|
var response;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.16.
|
|
12
|
+
"version": "0.16.11",
|
|
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.
|
|
50
|
+
"@nomalism-com/types": "^0.16.16",
|
|
51
51
|
"axios": "^0.27.2"
|
|
52
52
|
}
|
|
53
53
|
}
|