@nomalism-com/types 0.9.432 → 0.9.434
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/modules/document/materialEntrance/interfaces.d.ts +7 -0
- package/dist/modules/document/materialEntrance/route.schema.d.ts +2 -0
- package/dist/modules/document/materialEntrance/route.schema.js +16 -1
- package/dist/modules/supply/documentHeader/interfaces.d.ts +3 -1
- package/package.json +55 -55
|
@@ -79,6 +79,13 @@ export interface IFinalizarEntradaDeMaterialRequest {
|
|
|
79
79
|
provider_id: string;
|
|
80
80
|
document_header: IFinalizarEntradaDeMaterialDocumentHeader[];
|
|
81
81
|
}
|
|
82
|
+
export interface IPrintLabelParamsRequest {
|
|
83
|
+
document_line_assoc_id: string;
|
|
84
|
+
quantity: number;
|
|
85
|
+
}
|
|
86
|
+
export interface IPrintLabelQueryRequest {
|
|
87
|
+
token: string;
|
|
88
|
+
}
|
|
82
89
|
interface IRepository {
|
|
83
90
|
finalizarEntradaMaterial(data: IFinalizarEntradaDeMaterialRequest): Promise<IShared.IBrokerMessage<IShared.IBrokerTopic>[]>;
|
|
84
91
|
undoEntradaMaterial(data: IUndoEntradaDeMaterialRequest): Promise<void>;
|
|
@@ -2,3 +2,5 @@ import joi from 'joi';
|
|
|
2
2
|
export declare const finalizarEntradaDeMaterialBody: joi.ObjectSchema<any>;
|
|
3
3
|
export declare const undoEntradaDeMaterialBody: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const getMaterialEntranceInfoQuery: joi.ObjectSchema<any>;
|
|
5
|
+
export declare const printLabelParams: joi.ObjectSchema<any>;
|
|
6
|
+
export declare const printLabelQuery: joi.ObjectSchema<any>;
|
|
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
var _a, _b;
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.getMaterialEntranceInfoQuery = exports.undoEntradaDeMaterialBody = exports.finalizarEntradaDeMaterialBody = void 0;
|
|
16
|
+
exports.printLabelQuery = exports.printLabelParams = exports.getMaterialEntranceInfoQuery = exports.undoEntradaDeMaterialBody = exports.finalizarEntradaDeMaterialBody = void 0;
|
|
17
17
|
var joi_1 = __importDefault(require("joi"));
|
|
18
18
|
var messages_1 = require("../../../shared/messages");
|
|
19
19
|
var interfaces_1 = require("./interfaces");
|
|
@@ -95,3 +95,18 @@ exports.getMaterialEntranceInfoQuery = joi_1.default
|
|
|
95
95
|
.object()
|
|
96
96
|
.keys(getMaterialEntranceInfoQueryKeys)
|
|
97
97
|
.messages(messages_1.messages);
|
|
98
|
+
var printLabelParamsKeys = {
|
|
99
|
+
document_line_assoc_id: joi_1.default.string().uuid().required(),
|
|
100
|
+
quantity: joi_1.default.number().positive().required(),
|
|
101
|
+
};
|
|
102
|
+
exports.printLabelParams = joi_1.default
|
|
103
|
+
.object()
|
|
104
|
+
.keys(printLabelParamsKeys)
|
|
105
|
+
.messages(messages_1.messages);
|
|
106
|
+
var printLabelQueryKeys = {
|
|
107
|
+
token: joi_1.default.string().required(),
|
|
108
|
+
};
|
|
109
|
+
exports.printLabelQuery = joi_1.default
|
|
110
|
+
.object()
|
|
111
|
+
.keys(printLabelQueryKeys)
|
|
112
|
+
.messages(messages_1.messages);
|
|
@@ -290,7 +290,9 @@ export interface ITransferOwnershipRequest {
|
|
|
290
290
|
document_header_id: string;
|
|
291
291
|
client_id: string;
|
|
292
292
|
}
|
|
293
|
-
export type IFindResponse = Pick<Entity, 'document_number' | 'id'
|
|
293
|
+
export type IFindResponse = Pick<Entity, 'document_number' | 'id'> & {
|
|
294
|
+
legacy_id: string | null;
|
|
295
|
+
};
|
|
294
296
|
export type IUpdateManyWithPersona = {
|
|
295
297
|
id: string;
|
|
296
298
|
name: string | null;
|
package/package.json
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@nomalism-com/types",
|
|
3
|
-
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
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.9.
|
|
13
|
-
"main": "./dist/index.js",
|
|
14
|
-
"types": "./dist/index.d.ts",
|
|
15
|
-
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
],
|
|
18
|
-
"browserslist": "> 0.25%, not dead",
|
|
19
|
-
"license": "UNLICENSED",
|
|
20
|
-
"homepage": "https://gitlab.com/nomalism-develop/types",
|
|
21
|
-
"bugs": {
|
|
22
|
-
"url": "https://gitlab.com/nomalism-develop/types/issues"
|
|
23
|
-
},
|
|
24
|
-
"repository": {
|
|
25
|
-
"type": "git",
|
|
26
|
-
"url": "git+https://gitlab.com/nomalism-develop/types.git"
|
|
27
|
-
},
|
|
28
|
-
"scripts": {
|
|
29
|
-
"lint": "eslint src --ext .ts,.js --ignore-pattern node_modules --ignore-pattern dist --cache",
|
|
30
|
-
"build": "rm -rf dist && tsc --project tsconfig.json",
|
|
31
|
-
"start": "tsx --tsconfig ./tsconfig.json src/index.ts",
|
|
32
|
-
"prepack": "concurrently --success all \"npm run lint\" \"npm run build\" \"npm run start\""
|
|
33
|
-
},
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"convert-units": "^2.3.4",
|
|
36
|
-
"joi": "^17.9.2",
|
|
37
|
-
"joi-to-swagger": "^6.2.0"
|
|
38
|
-
},
|
|
39
|
-
"devDependencies": {
|
|
40
|
-
"@types/convert-units": "^2.3.5",
|
|
41
|
-
"@types/node": "^18.16.18",
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "^5.60.0",
|
|
43
|
-
"@typescript-eslint/parser": "^5.60.0",
|
|
44
|
-
"concurrently": "^8.2.0",
|
|
45
|
-
"eslint": "^8.43.0",
|
|
46
|
-
"eslint-config-airbnb-base": "^15.0.0",
|
|
47
|
-
"eslint-config-prettier": "^8.8.0",
|
|
48
|
-
"eslint-import-resolver-typescript": "^3.5.5",
|
|
49
|
-
"eslint-plugin-import": "^2.27.5",
|
|
50
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
51
|
-
"prettier": "^2.8.8",
|
|
52
|
-
"tsx": "^3.12.7",
|
|
53
|
-
"typescript": "^5.1.3"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@nomalism-com/types",
|
|
3
|
+
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
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.9.434",
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"browserslist": "> 0.25%, not dead",
|
|
19
|
+
"license": "UNLICENSED",
|
|
20
|
+
"homepage": "https://gitlab.com/nomalism-develop/types",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://gitlab.com/nomalism-develop/types/issues"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://gitlab.com/nomalism-develop/types.git"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"lint": "eslint src --ext .ts,.js --ignore-pattern node_modules --ignore-pattern dist --cache",
|
|
30
|
+
"build": "rm -rf dist && tsc --project tsconfig.json",
|
|
31
|
+
"start": "tsx --tsconfig ./tsconfig.json src/index.ts",
|
|
32
|
+
"prepack": "concurrently --success all \"npm run lint\" \"npm run build\" \"npm run start\""
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"convert-units": "^2.3.4",
|
|
36
|
+
"joi": "^17.9.2",
|
|
37
|
+
"joi-to-swagger": "^6.2.0"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@types/convert-units": "^2.3.5",
|
|
41
|
+
"@types/node": "^18.16.18",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^5.60.0",
|
|
43
|
+
"@typescript-eslint/parser": "^5.60.0",
|
|
44
|
+
"concurrently": "^8.2.0",
|
|
45
|
+
"eslint": "^8.43.0",
|
|
46
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
47
|
+
"eslint-config-prettier": "^8.8.0",
|
|
48
|
+
"eslint-import-resolver-typescript": "^3.5.5",
|
|
49
|
+
"eslint-plugin-import": "^2.27.5",
|
|
50
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
51
|
+
"prettier": "^2.8.8",
|
|
52
|
+
"tsx": "^3.12.7",
|
|
53
|
+
"typescript": "^5.1.3"
|
|
54
|
+
}
|
|
55
|
+
}
|