@nomalism-com/types 0.45.44 → 0.45.45
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;
|
|
@@ -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.45",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|