@nomalism-com/api 0.10.13 → 0.10.15
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 declare const LabelOriginEnum: {
|
|
|
31
31
|
'Entrada de Material': "Entrada de Material";
|
|
32
32
|
Parcela: "Parcela";
|
|
33
33
|
}, checkPlotInPrisonOptions: readonly ["Por confirmar", "Devolver a stock", "Quebrar", "Devolver a fornecedor"], checkPlotsToReturnOptions: readonly ["Por tratar", "Levantar", "Enviar email", "Quebrar", "Devolver a stock"], labelOrigins: string[];
|
|
34
|
-
export declare const printLabelToPdfUrl: ({ product_id, plot_id, label_origin }: IPrintLabelParamsRequest, { quantity,
|
|
34
|
+
export declare const printLabelToPdfUrl: ({ product_id, plot_id, label_origin }: IPrintLabelParamsRequest, { quantity, pc_document_number }: IPrintLabelQueryRequest, token: string) => string;
|
|
35
35
|
export declare const findPlotsToReturn: (params: shared.IFindOptionalByOwnerIdRequest) => Promise<Entity.IFindPlotsToReturnResponse[]>, findPlotsToReturnProviders: () => Promise<shared.IFindMinifiedResponse[]>, disassociatePlot: (data: Entity.IDisassociatePlot) => Promise<void>, findInventoryLosses: () => Promise<Entity.IInventoryLossResponse[]>, findInventoryLossesProviders: () => Promise<shared.IFindMinifiedResponse[]>, checkPlotsToReturn: (params: Entity.ICheckPlotsToReturnRequest) => Promise<void>, checkPlotInPrison: (params: Entity.ICheckPlotInPrisonRequest) => Promise<void>, putPlotInPrison: (params: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").Plot | null>, removePlotFromPrison: (params: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").Plot | null>, findByOwnerId: (params: shared.IFindByOwnerIdRequest) => Promise<Entity.IFindByOwnerIdResponse[]>, findById: (id: string) => Promise<import("@nomalism-com/types/dist/shared/entities").Plot | null>, findPlotsInPrison: () => Promise<Entity.IFindPlotsInPrisonResponse[]>, findPlotsInPrisonProviders: () => Promise<shared.IFindMinifiedResponse[]>, unfoldPlot: (unfoldPlot: Entity.IUnfoldPlotRequest) => Promise<Entity.IUnfoldPlotResponse>, foldPlot: (data: Entity.IFoldPlotRequest) => Promise<Entity.IFoldPlotResponse>, createInventory: (data: Entity.ICreateInventoryRequest) => Promise<void>;
|
|
@@ -213,11 +213,11 @@ var repository = {
|
|
|
213
213
|
};
|
|
214
214
|
var printLabelToPdfUrl = function (_a, _b, token) {
|
|
215
215
|
var product_id = _a.product_id, plot_id = _a.plot_id, label_origin = _a.label_origin;
|
|
216
|
-
var quantity = _b.quantity,
|
|
216
|
+
var quantity = _b.quantity, pc_document_number = _b.pc_document_number;
|
|
217
217
|
var qs = new URLSearchParams();
|
|
218
218
|
qs.set('quantity', quantity.toString());
|
|
219
|
-
if (
|
|
220
|
-
qs.set('
|
|
219
|
+
if (pc_document_number) {
|
|
220
|
+
qs.set('pc_document_number', pc_document_number.toString());
|
|
221
221
|
}
|
|
222
222
|
qs.set('token', token);
|
|
223
223
|
return "".concat(exports.publicRoute, "print_label_pdf/").concat(product_id, "/").concat(plot_id, "/").concat(label_origin, "?").concat(qs.toString());
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.10.
|
|
12
|
+
"version": "0.10.15",
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/convert-units": "^2.3.7",
|
|
35
|
-
"@types/node": "^18.18.
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^6.7.
|
|
37
|
-
"@typescript-eslint/parser": "^6.7.
|
|
35
|
+
"@types/node": "^18.18.4",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^6.7.4",
|
|
37
|
+
"@typescript-eslint/parser": "^6.7.4",
|
|
38
38
|
"concurrently": "^8.2.1",
|
|
39
|
-
"eslint": "^8.
|
|
39
|
+
"eslint": "^8.51.0",
|
|
40
40
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
41
41
|
"eslint-config-prettier": "^9.0.0",
|
|
42
42
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"typescript": "^5.2.2"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@nomalism-com/types": "^0.10.
|
|
50
|
+
"@nomalism-com/types": "^0.10.16",
|
|
51
51
|
"axios": "^0.27.2"
|
|
52
52
|
}
|
|
53
53
|
}
|