@nomalism-com/types 0.45.44 → 0.45.46
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.
package/dist/index.cjs
CHANGED
|
@@ -5790,10 +5790,13 @@ __export(route_schema_exports117, {
|
|
|
5790
5790
|
printLocationsBody: () => printLocationsBody
|
|
5791
5791
|
});
|
|
5792
5792
|
import joi118 from "joi";
|
|
5793
|
-
var
|
|
5794
|
-
locations_ids: joi118.string().required()
|
|
5795
|
-
|
|
5796
|
-
|
|
5793
|
+
var printLocationsBody = joi118.object({
|
|
5794
|
+
locations_ids: joi118.array().items(joi118.string().required()).required(),
|
|
5795
|
+
printer: joi118.object({
|
|
5796
|
+
id: joi118.string().uuid().required(),
|
|
5797
|
+
name: joi118.string().required()
|
|
5798
|
+
}).required()
|
|
5799
|
+
}).messages(messages);
|
|
5797
5800
|
|
|
5798
5801
|
// src/index.ts
|
|
5799
5802
|
var index_default = main_exports;
|
package/dist/index.js
CHANGED
|
@@ -5790,10 +5790,13 @@ __export(route_schema_exports117, {
|
|
|
5790
5790
|
printLocationsBody: () => printLocationsBody
|
|
5791
5791
|
});
|
|
5792
5792
|
import joi118 from "joi";
|
|
5793
|
-
var
|
|
5794
|
-
locations_ids: joi118.string().required()
|
|
5795
|
-
|
|
5796
|
-
|
|
5793
|
+
var printLocationsBody = joi118.object({
|
|
5794
|
+
locations_ids: joi118.array().items(joi118.string().required()).required(),
|
|
5795
|
+
printer: joi118.object({
|
|
5796
|
+
id: joi118.string().uuid().required(),
|
|
5797
|
+
name: joi118.string().required()
|
|
5798
|
+
}).required()
|
|
5799
|
+
}).messages(messages);
|
|
5797
5800
|
|
|
5798
5801
|
// src/index.ts
|
|
5799
5802
|
var index_default = main_exports;
|
|
@@ -113,8 +113,14 @@ export interface IPrintLabelQueryRequest {
|
|
|
113
113
|
quantity: number;
|
|
114
114
|
note?: string;
|
|
115
115
|
}
|
|
116
|
-
export
|
|
116
|
+
export type IInclude = 'selectedOnly' | 'all' | 'none';
|
|
117
|
+
export interface IPrintOptions {
|
|
117
118
|
groupLabel: boolean;
|
|
119
|
+
stockOrders: IInclude;
|
|
120
|
+
notOk: IInclude;
|
|
121
|
+
clientOrders: IInclude;
|
|
122
|
+
}
|
|
123
|
+
export interface IPrintBulkLabelRequest extends IPrintOptions {
|
|
118
124
|
saved_em_picking_ids: string;
|
|
119
125
|
token: string;
|
|
120
126
|
}
|
|
@@ -2,6 +2,10 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
export declare const Route = "mobile_print";
|
|
3
3
|
export interface IPrintLocations {
|
|
4
4
|
locations_ids: string[];
|
|
5
|
+
printer: {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
5
9
|
}
|
|
6
10
|
export interface IRepository {
|
|
7
11
|
printLocations(data: IPrintLocations): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/types",
|
|
3
3
|
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
4
|
-
"version": "0.45.
|
|
4
|
+
"version": "0.45.46",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@swc/core": "^1.15.40",
|
|
33
33
|
"@types/node": "^24.12.4",
|
|
34
|
-
"@typescript-eslint/eslint-plugin": "^8.60.
|
|
35
|
-
"@typescript-eslint/parser": "^8.60.
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^8.60.1",
|
|
35
|
+
"@typescript-eslint/parser": "^8.60.1",
|
|
36
36
|
"eslint": "^9.39.4",
|
|
37
37
|
"eslint-config-prettier": "^10.1.8",
|
|
38
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
38
|
+
"eslint-import-resolver-typescript": "^4.4.5",
|
|
39
39
|
"eslint-plugin-prettier": "^5.5.6",
|
|
40
40
|
"prettier": "^3.8.3",
|
|
41
41
|
"tsup": "^8.5.1"
|