@nomalism-com/api 0.10.9 → 0.10.12
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 }: IPrintLabelQueryRequest, token: string) => string;
|
|
34
|
+
export declare const printLabelToPdfUrl: ({ product_id, plot_id, label_origin }: IPrintLabelParamsRequest, { quantity, pc_name }: 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,9 +213,12 @@ 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_name = _b.pc_name;
|
|
217
217
|
var qs = new URLSearchParams();
|
|
218
218
|
qs.set('quantity', quantity.toString());
|
|
219
|
+
if (pc_name) {
|
|
220
|
+
qs.set('pc_name', pc_name);
|
|
221
|
+
}
|
|
219
222
|
qs.set('token', token);
|
|
220
223
|
return "".concat(exports.publicRoute, "print_label_pdf/").concat(product_id, "/").concat(plot_id, "/").concat(label_origin, "?").concat(qs.toString());
|
|
221
224
|
};
|
package/package.json
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@nomalism-com/api",
|
|
3
|
-
"description": "A nomalism API package for performing HTTP requests on API endpoints",
|
|
4
|
-
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"nomalism",
|
|
7
|
-
"api",
|
|
8
|
-
"types",
|
|
9
|
-
"typescript",
|
|
10
|
-
"helper"
|
|
11
|
-
],
|
|
12
|
-
"version": "0.10.
|
|
13
|
-
"main": "dist/index.js",
|
|
14
|
-
"types": "./dist/index.d.ts",
|
|
15
|
-
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
],
|
|
18
|
-
"license": "UNLICENSED",
|
|
19
|
-
"homepage": "https://gitlab.com/nomalism-develop/api",
|
|
20
|
-
"bugs": {
|
|
21
|
-
"url": "https://gitlab.com/nomalism-develop/api/issues"
|
|
22
|
-
},
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "git+https://gitlab.com/nomalism-develop/api.git"
|
|
26
|
-
},
|
|
27
|
-
"scripts": {
|
|
28
|
-
"lint": "eslint src --ext .ts,.js --ignore-pattern node_modules --ignore-pattern dist --cache",
|
|
29
|
-
"build": "rm -rf dist && tsc --project tsconfig.json",
|
|
30
|
-
"start": "tsx --tsconfig ./tsconfig.json src/index.ts",
|
|
31
|
-
"prepack": "concurrently --success all \"npm run lint\" \"npm run build\" \"npm run start\""
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@types/convert-units": "^2.3.7",
|
|
35
|
-
"@types/node": "^18.18.1",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^6.7.3",
|
|
37
|
-
"@typescript-eslint/parser": "^6.7.3",
|
|
38
|
-
"concurrently": "^8.2.1",
|
|
39
|
-
"eslint": "^8.50.0",
|
|
40
|
-
"eslint-config-airbnb-base": "^15.0.0",
|
|
41
|
-
"eslint-config-prettier": "^9.0.0",
|
|
42
|
-
"eslint-import-resolver-typescript": "^3.6.1",
|
|
43
|
-
"eslint-plugin-import": "^2.28.1",
|
|
44
|
-
"eslint-plugin-prettier": "^5.0.0",
|
|
45
|
-
"prettier": "^3.0.3",
|
|
46
|
-
"tsx": "^3.13.0",
|
|
47
|
-
"typescript": "^5.2.2"
|
|
48
|
-
},
|
|
49
|
-
"dependencies": {
|
|
50
|
-
"@nomalism-com/types": "^0.10.
|
|
51
|
-
"axios": "^0.27.2"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@nomalism-com/api",
|
|
3
|
+
"description": "A nomalism API package for performing HTTP requests on API endpoints",
|
|
4
|
+
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"nomalism",
|
|
7
|
+
"api",
|
|
8
|
+
"types",
|
|
9
|
+
"typescript",
|
|
10
|
+
"helper"
|
|
11
|
+
],
|
|
12
|
+
"version": "0.10.12",
|
|
13
|
+
"main": "dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"license": "UNLICENSED",
|
|
19
|
+
"homepage": "https://gitlab.com/nomalism-develop/api",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://gitlab.com/nomalism-develop/api/issues"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://gitlab.com/nomalism-develop/api.git"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"lint": "eslint src --ext .ts,.js --ignore-pattern node_modules --ignore-pattern dist --cache",
|
|
29
|
+
"build": "rm -rf dist && tsc --project tsconfig.json",
|
|
30
|
+
"start": "tsx --tsconfig ./tsconfig.json src/index.ts",
|
|
31
|
+
"prepack": "concurrently --success all \"npm run lint\" \"npm run build\" \"npm run start\""
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/convert-units": "^2.3.7",
|
|
35
|
+
"@types/node": "^18.18.1",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^6.7.3",
|
|
37
|
+
"@typescript-eslint/parser": "^6.7.3",
|
|
38
|
+
"concurrently": "^8.2.1",
|
|
39
|
+
"eslint": "^8.50.0",
|
|
40
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
41
|
+
"eslint-config-prettier": "^9.0.0",
|
|
42
|
+
"eslint-import-resolver-typescript": "^3.6.1",
|
|
43
|
+
"eslint-plugin-import": "^2.28.1",
|
|
44
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
45
|
+
"prettier": "^3.0.3",
|
|
46
|
+
"tsx": "^3.13.0",
|
|
47
|
+
"typescript": "^5.2.2"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@nomalism-com/types": "^0.10.11",
|
|
51
|
+
"axios": "^0.27.2"
|
|
52
|
+
}
|
|
53
|
+
}
|