@nomalism-com/types 0.9.562 → 0.9.563
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.
|
@@ -19,24 +19,16 @@ export interface ICreateSchedulePrintJobRequest {
|
|
|
19
19
|
export interface IDispatchSchedulePrintJobResponse {
|
|
20
20
|
npc_id: string;
|
|
21
21
|
secret?: string | null;
|
|
22
|
-
}
|
|
23
|
-
export interface IFindScheduleRequest {
|
|
24
|
-
last_print_job_id?: string;
|
|
25
|
-
npc_id: string;
|
|
26
|
-
secret?: string | null;
|
|
27
|
-
}
|
|
28
|
-
export interface IFindScheduleResponse {
|
|
29
22
|
print_job?: {
|
|
30
23
|
id: string;
|
|
31
24
|
moloni_json?: unknown;
|
|
32
25
|
external_url?: string | null;
|
|
33
26
|
printer_id: string;
|
|
27
|
+
orientation: 'landscape' | 'portrait';
|
|
34
28
|
};
|
|
35
|
-
secret?: string | null;
|
|
36
29
|
}
|
|
37
30
|
export interface IRepository {
|
|
38
31
|
dispatchSchedulePrintJob: (data: IDispatchSchedulePrintJobRequest) => Promise<IDispatchSchedulePrintJobResponse>;
|
|
39
|
-
findSchedule: (data: IFindScheduleRequest) => Promise<IFindScheduleResponse>;
|
|
40
32
|
findByOwner: (data: IShared.IFindByOwnerIdRequest) => Promise<Entity[]>;
|
|
41
33
|
create: (data: ICreateSchedulePrintJobRequest) => Promise<Entity>;
|
|
42
34
|
deleteOne: (params: IShared.IFindByIdRequest) => Promise<void>;
|
|
@@ -3,7 +3,7 @@ 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.
|
|
6
|
+
exports.createSchedulePrintJobBody = exports.dispatchSchedulePrintJobBody = void 0;
|
|
7
7
|
var joi_1 = __importDefault(require("joi"));
|
|
8
8
|
var messages_1 = require("../../../shared/messages");
|
|
9
9
|
var dispatchSchedulePrintJobBodyKeys = {
|
|
@@ -16,15 +16,6 @@ exports.dispatchSchedulePrintJobBody = joi_1.default
|
|
|
16
16
|
.object()
|
|
17
17
|
.keys(dispatchSchedulePrintJobBodyKeys)
|
|
18
18
|
.messages(messages_1.messages);
|
|
19
|
-
var findScheduleQueryKeys = {
|
|
20
|
-
last_print_job_id: joi_1.default.string().uuid().optional(),
|
|
21
|
-
npc_id: joi_1.default.string().uuid().required(),
|
|
22
|
-
secret: joi_1.default.string().allow(null).optional(),
|
|
23
|
-
};
|
|
24
|
-
exports.findScheduleQuery = joi_1.default
|
|
25
|
-
.object()
|
|
26
|
-
.keys(findScheduleQueryKeys)
|
|
27
|
-
.messages(messages_1.messages);
|
|
28
19
|
var createSchedulePrintJobBodyKeys = {
|
|
29
20
|
external_document_id: joi_1.default.string().optional(),
|
|
30
21
|
multimedia_id: joi_1.default.string().uuid().optional(),
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.9.
|
|
12
|
+
"version": "0.9.563",
|
|
13
13
|
"main": "./dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -38,18 +38,18 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/convert-units": "^2.3.7",
|
|
41
|
-
"@types/node": "^18.
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "^6.7.
|
|
43
|
-
"@typescript-eslint/parser": "^6.7.
|
|
41
|
+
"@types/node": "^18.18.0",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^6.7.3",
|
|
43
|
+
"@typescript-eslint/parser": "^6.7.3",
|
|
44
44
|
"concurrently": "^8.2.1",
|
|
45
|
-
"eslint": "^8.
|
|
45
|
+
"eslint": "^8.50.0",
|
|
46
46
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
47
47
|
"eslint-config-prettier": "^9.0.0",
|
|
48
48
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
49
49
|
"eslint-plugin-import": "^2.28.1",
|
|
50
50
|
"eslint-plugin-prettier": "^5.0.0",
|
|
51
51
|
"prettier": "^3.0.3",
|
|
52
|
-
"tsx": "^3.
|
|
52
|
+
"tsx": "^3.13.0",
|
|
53
53
|
"typescript": "^5.2.2"
|
|
54
54
|
}
|
|
55
55
|
}
|