@nomalism-com/types 0.9.438 → 0.9.440

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.
@@ -42,4 +42,4 @@ export interface IRepository {
42
42
  deleteOne: (params: IShared.IFindByIdRequest) => Promise<void>;
43
43
  }
44
44
  export type IController = IShared.IEntityWithUserToken<IRepository>;
45
- export type IApi = Omit<IRepository, 'dispatchSchedulePrintJob'>;
45
+ export type IApi = IRepository;
@@ -1,3 +1,4 @@
1
1
  import joi from 'joi';
2
+ export declare const dispatchSchedulePrintJobBody: joi.ObjectSchema<any>;
2
3
  export declare const findScheduleQuery: joi.ObjectSchema<any>;
3
4
  export declare const createSchedulePrintJobBody: joi.ObjectSchema<any>;
@@ -3,9 +3,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.createSchedulePrintJobBody = exports.findScheduleQuery = void 0;
6
+ exports.createSchedulePrintJobBody = exports.findScheduleQuery = exports.dispatchSchedulePrintJobBody = void 0;
7
7
  var joi_1 = __importDefault(require("joi"));
8
8
  var messages_1 = require("../../../shared/messages");
9
+ var dispatchSchedulePrintJobBodyKeys = {
10
+ last_print_job_id: joi_1.default.string().uuid().optional(),
11
+ mac_address: joi_1.default.string(),
12
+ printers_a4: joi_1.default.array().items(joi_1.default.string()),
13
+ printers_pos: joi_1.default.array().items(joi_1.default.string()),
14
+ };
15
+ exports.dispatchSchedulePrintJobBody = joi_1.default
16
+ .object()
17
+ .keys(dispatchSchedulePrintJobBodyKeys)
18
+ .messages(messages_1.messages);
9
19
  var findScheduleQueryKeys = {
10
20
  last_print_job_id: joi_1.default.string().uuid().optional(),
11
21
  npc_id: joi_1.default.string().uuid().required(),
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.9.438",
12
+ "version": "0.9.440",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [