@nomalism-com/types 0.9.516 → 0.9.517
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.
|
@@ -5,11 +5,12 @@ export type Entity = SavedEmPicking;
|
|
|
5
5
|
export declare const Route = "saved_em_picking";
|
|
6
6
|
export declare const UpperName = "SavedEmPicking";
|
|
7
7
|
export declare const LowerName: string;
|
|
8
|
+
export type ISavedEmPickingData = Pick<IUnfinishedPickingLineGroupExtended, 'clientOrders' | 'stock' | 'not_ok'>;
|
|
8
9
|
export interface ICreateRequest {
|
|
9
10
|
provider_id: string;
|
|
10
11
|
document_header_id: string;
|
|
11
12
|
group_id: string;
|
|
12
|
-
data:
|
|
13
|
+
data: ISavedEmPickingData;
|
|
13
14
|
}
|
|
14
15
|
export interface IRepository {
|
|
15
16
|
create(data: ICreateRequest): Promise<Entity>;
|
|
@@ -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.createBody =
|
|
16
|
+
exports.createBody = void 0;
|
|
17
17
|
var joi_1 = __importDefault(require("joi"));
|
|
18
18
|
var messages_1 = require("../../../shared/messages");
|
|
19
19
|
var interfaces_1 = require("../../document/materialEntrance/interfaces");
|
|
@@ -78,14 +78,14 @@ var entradaDeMaterialDocumentHeaderBodyKeys = {
|
|
|
78
78
|
product_id: joi_1.default.string().uuid().required(),
|
|
79
79
|
saved_id: joi_1.default.string().uuid().allow(null),
|
|
80
80
|
};
|
|
81
|
-
|
|
81
|
+
var entradaDeMaterialDocumentHeaderBody = joi_1.default
|
|
82
82
|
.object()
|
|
83
83
|
.keys(entradaDeMaterialDocumentHeaderBodyKeys)
|
|
84
84
|
.messages(messages_1.messages);
|
|
85
85
|
var createBodyKeys = {
|
|
86
|
-
data: joi_1.default.any(),
|
|
87
|
-
document_header_id: joi_1.default.string().uuid().required(),
|
|
88
86
|
provider_id: joi_1.default.string().uuid().required(),
|
|
87
|
+
document_header_id: joi_1.default.string().uuid().required(),
|
|
89
88
|
group_id: joi_1.default.string().uuid().required(),
|
|
89
|
+
data: entradaDeMaterialDocumentHeaderBody,
|
|
90
90
|
};
|
|
91
91
|
exports.createBody = joi_1.default.object().keys(createBodyKeys).messages(messages_1.messages);
|
|
@@ -9,6 +9,7 @@ import { IQueryParameterDatatype } from '../../modules/stock/queryParameter/inte
|
|
|
9
9
|
import * as IDocumentLine from '../../modules/supply/documentLine/interfaces';
|
|
10
10
|
import * as IProduct from '../../modules/stock/product/interface';
|
|
11
11
|
import * as IClientCurrentAccount from '../../modules/supply/clientCurrentAccount/interfaces';
|
|
12
|
+
import { ISavedEmPickingData } from '../../modules/stock/savedEmPicking/interfaces';
|
|
12
13
|
export type Attribute = {
|
|
13
14
|
id: string;
|
|
14
15
|
name: string;
|
|
@@ -1058,9 +1059,12 @@ export type ProviderProductView = {
|
|
|
1058
1059
|
};
|
|
1059
1060
|
export type SavedEmPicking = {
|
|
1060
1061
|
id: string;
|
|
1061
|
-
owner_id: string;
|
|
1062
1062
|
provider_id: string;
|
|
1063
|
-
group_id: string;
|
|
1064
1063
|
document_header_id: string;
|
|
1065
|
-
|
|
1064
|
+
group_id: string;
|
|
1065
|
+
data: ISavedEmPickingData;
|
|
1066
|
+
created_at: Date;
|
|
1067
|
+
updated_at: Date;
|
|
1068
|
+
created_by: string;
|
|
1069
|
+
updated_by: string;
|
|
1066
1070
|
};
|
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.6",
|
|
41
|
-
"@types/node": "^18.16.19",
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
43
|
-
"@typescript-eslint/parser": "^5.62.0",
|
|
44
|
-
"concurrently": "^8.2.0",
|
|
45
|
-
"eslint": "^8.44.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.6"
|
|
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.517",
|
|
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.6",
|
|
41
|
+
"@types/node": "^18.16.19",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
43
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
44
|
+
"concurrently": "^8.2.0",
|
|
45
|
+
"eslint": "^8.44.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.6"
|
|
54
|
+
}
|
|
55
|
+
}
|