@nomalism-com/types 0.9.512 → 0.9.514
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 +12 -21
- package/dist/modules/document/materialEntrance/route.schema.js +0 -68
- package/dist/modules/document/purchase/interfaces.d.ts +1 -1
- package/dist/modules/stock/savedEmPicking/route.schema.d.ts +1 -0
- package/dist/modules/stock/savedEmPicking/route.schema.js +77 -1
- package/dist/modules/supply/documentLine/interfaces.d.ts +2 -2
- package/dist/modules/supply/documentLine/route.schema.js +2 -2
- package/dist/shared/entities/stock.d.ts +1 -1
- package/package.json +55 -55
|
@@ -20,10 +20,12 @@ export interface IGetMaterialEntranceInfoClientOrder {
|
|
|
20
20
|
pc_virtual_name: string;
|
|
21
21
|
pc_dla_id: string;
|
|
22
22
|
}
|
|
23
|
-
export interface
|
|
23
|
+
export interface IEntradaDeMaterialClientOrder extends IGetMaterialEntranceInfoClientOrder {
|
|
24
24
|
plot_id: string;
|
|
25
25
|
quantity: number;
|
|
26
26
|
option: ICreateMaterialEntranceClientOrderOption | null;
|
|
27
|
+
observation: string | null;
|
|
28
|
+
printed: string | null;
|
|
27
29
|
}
|
|
28
30
|
export declare const ICreateMaterialEntranceStockWithoutOrderOptionEnum: {
|
|
29
31
|
'Vai criar nova linha na PF': 'Vai criar nova linha na PF';
|
|
@@ -44,37 +46,27 @@ export interface IGetMaterialEntranceInfoStock {
|
|
|
44
46
|
ef_dla_id: string | null;
|
|
45
47
|
ordered_quantity: number;
|
|
46
48
|
}
|
|
47
|
-
export interface
|
|
49
|
+
export interface IEntradaDeMaterialStock extends IGetMaterialEntranceInfoStock {
|
|
48
50
|
plot_id: string;
|
|
49
51
|
quantity: number;
|
|
50
52
|
option: ICreateMaterialEntranceStockOption | ICreateMaterialEntranceStockWithoutOrderOption | null;
|
|
53
|
+
observation: string | null;
|
|
54
|
+
printed: string | null;
|
|
51
55
|
}
|
|
52
|
-
export interface
|
|
56
|
+
export interface IEntradaDeMaterialNC {
|
|
53
57
|
ef_dla_id: null;
|
|
54
58
|
ordered_quantity: 0;
|
|
55
59
|
plot_id: string;
|
|
56
60
|
quantity: number;
|
|
57
61
|
option: null;
|
|
58
|
-
}
|
|
59
|
-
export interface IFinalizarEntradaDeMaterialNCExtended extends IFinalizarEntradaDeMaterialNC {
|
|
60
|
-
observation: string | null;
|
|
61
|
-
}
|
|
62
|
-
export interface IFinalizarEntradaDeMaterialStockExtended extends IFinalizarEntradaDeMaterialStock {
|
|
63
|
-
observation: string | null;
|
|
64
|
-
}
|
|
65
|
-
export interface IFinalizarEntradaDeMaterialClientOrderExtended extends IFinalizarEntradaDeMaterialClientOrder {
|
|
66
62
|
observation: string | null;
|
|
67
|
-
|
|
68
|
-
export interface IFinalizarEntradaDeMaterialDocumentHeader {
|
|
69
|
-
clientOrders: IFinalizarEntradaDeMaterialClientOrder[];
|
|
70
|
-
stock: IFinalizarEntradaDeMaterialStock;
|
|
71
|
-
not_ok: IFinalizarEntradaDeMaterialNC;
|
|
63
|
+
printed: string | null;
|
|
72
64
|
}
|
|
73
65
|
export interface IGetMaterialEntranceInfoResponse {
|
|
74
|
-
clientOrders:
|
|
75
|
-
stock:
|
|
76
|
-
not_ok:
|
|
77
|
-
|
|
66
|
+
clientOrders: IEntradaDeMaterialClientOrder[];
|
|
67
|
+
stock: IEntradaDeMaterialStock;
|
|
68
|
+
not_ok: IEntradaDeMaterialNC;
|
|
69
|
+
saved_id: string | null;
|
|
78
70
|
}
|
|
79
71
|
export interface IUnfinishedPickingLineGroup {
|
|
80
72
|
groupId: string;
|
|
@@ -92,7 +84,6 @@ export interface IUndoEntradaDeMaterialRequest {
|
|
|
92
84
|
}
|
|
93
85
|
export interface IFinalizarEntradaDeMaterialRequest {
|
|
94
86
|
provider_id: string;
|
|
95
|
-
document_header: IFinalizarEntradaDeMaterialDocumentHeader[];
|
|
96
87
|
}
|
|
97
88
|
export interface IPrintLabelParamsRequest {
|
|
98
89
|
document_line_assoc_id: string;
|
|
@@ -1,81 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
-
if (ar || !(i in from)) {
|
|
5
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
-
ar[i] = from[i];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
-
};
|
|
11
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
4
|
};
|
|
14
|
-
var _a, _b;
|
|
15
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
6
|
exports.printLabelQuery = exports.printLabelParams = exports.undoEntradaDeMaterialBody = exports.finalizarEntradaDeMaterialBody = void 0;
|
|
17
7
|
var joi_1 = __importDefault(require("joi"));
|
|
18
8
|
var messages_1 = require("../../../shared/messages");
|
|
19
|
-
var interfaces_1 = require("./interfaces");
|
|
20
|
-
var finalizarEntradaDeMaterialClientOrderBodyKeys = {
|
|
21
|
-
ef_dla_id: joi_1.default.string().uuid().required(),
|
|
22
|
-
ordered_quantity: joi_1.default.number().positive().required(),
|
|
23
|
-
pc_virtual_name: joi_1.default.string().required(),
|
|
24
|
-
pc_owner_id: joi_1.default.string().uuid().required(),
|
|
25
|
-
pc_dh_number: joi_1.default.number().integer().positive().required(),
|
|
26
|
-
pc_dla_id: joi_1.default.string().uuid().required(),
|
|
27
|
-
plot_id: joi_1.default.string().uuid().required(),
|
|
28
|
-
quantity: joi_1.default.number().positive().allow(0).required(),
|
|
29
|
-
option: (_a = joi_1.default
|
|
30
|
-
.string())
|
|
31
|
-
.valid.apply(_a, interfaces_1.createMaterialEntranceClientOrderOptions).allow(null)
|
|
32
|
-
.required(),
|
|
33
|
-
};
|
|
34
|
-
var finalizarEntradaDeMaterialClientOrderBody = joi_1.default
|
|
35
|
-
.object()
|
|
36
|
-
.keys(finalizarEntradaDeMaterialClientOrderBodyKeys)
|
|
37
|
-
.messages(messages_1.messages);
|
|
38
|
-
var finalizarEntradaDeMaterialStockBodyKeys = {
|
|
39
|
-
ef_dla_id: joi_1.default.string().uuid().allow(null).required(),
|
|
40
|
-
ordered_quantity: joi_1.default.number().positive().allow(0).required(),
|
|
41
|
-
plot_id: joi_1.default.string().uuid().required(),
|
|
42
|
-
quantity: joi_1.default.number().positive().allow(0).required(),
|
|
43
|
-
option: (_b = joi_1.default
|
|
44
|
-
.string())
|
|
45
|
-
.valid.apply(_b, __spreadArray(__spreadArray([], interfaces_1.createMaterialEntranceStockOptions, false), interfaces_1.createMaterialEntranceStockWithoutOrderOptions, false)).allow(null)
|
|
46
|
-
.required(),
|
|
47
|
-
};
|
|
48
|
-
var finalizarEntradaDeMaterialStockBody = joi_1.default
|
|
49
|
-
.object()
|
|
50
|
-
.keys(finalizarEntradaDeMaterialStockBodyKeys)
|
|
51
|
-
.required()
|
|
52
|
-
.messages(messages_1.messages);
|
|
53
|
-
var finalizarEntradaDeMaterialNCBodyKeys = {
|
|
54
|
-
ef_dla_id: joi_1.default.valid(null).required(),
|
|
55
|
-
ordered_quantity: joi_1.default.number().valid(0).required(),
|
|
56
|
-
plot_id: joi_1.default.string().uuid().required(),
|
|
57
|
-
quantity: joi_1.default.number().positive().allow(0).required(),
|
|
58
|
-
option: joi_1.default.valid(null).required(),
|
|
59
|
-
};
|
|
60
|
-
var finalizarEntradaDeMaterialNCBody = joi_1.default
|
|
61
|
-
.object()
|
|
62
|
-
.keys(finalizarEntradaDeMaterialNCBodyKeys)
|
|
63
|
-
.messages(messages_1.messages);
|
|
64
|
-
var finalizarEntradaDeMaterialDocumentHeaderBodyKeys = {
|
|
65
|
-
clientOrders: joi_1.default.array().items(finalizarEntradaDeMaterialClientOrderBody),
|
|
66
|
-
stock: finalizarEntradaDeMaterialStockBody,
|
|
67
|
-
not_ok: finalizarEntradaDeMaterialNCBody,
|
|
68
|
-
};
|
|
69
|
-
var finalizarEntradaDeMaterialDocumentHeaderBody = joi_1.default
|
|
70
|
-
.object()
|
|
71
|
-
.keys(finalizarEntradaDeMaterialDocumentHeaderBodyKeys)
|
|
72
|
-
.messages(messages_1.messages);
|
|
73
9
|
var finalizarEntradaDeMaterialBodyKeys = {
|
|
74
10
|
provider_id: joi_1.default.string().uuid().required(),
|
|
75
|
-
document_header: joi_1.default
|
|
76
|
-
.array()
|
|
77
|
-
.items(finalizarEntradaDeMaterialDocumentHeaderBody)
|
|
78
|
-
.required(),
|
|
79
11
|
};
|
|
80
12
|
exports.finalizarEntradaDeMaterialBody = joi_1.default
|
|
81
13
|
.object()
|
|
@@ -4,7 +4,7 @@ export declare const UpperName = "Purchase";
|
|
|
4
4
|
export declare const LowerName: string;
|
|
5
5
|
export type IUnpaidMaterialEntranceLineType = 'Por comprar' | 'Comprado' | 'Devolvido' | 'Prisão';
|
|
6
6
|
export interface IUnpaidMaterialEntranceLineResponse {
|
|
7
|
-
group: string
|
|
7
|
+
group: string;
|
|
8
8
|
document_line_ids: string[];
|
|
9
9
|
product_id: string;
|
|
10
10
|
reference: string;
|
|
@@ -1,11 +1,87 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
+
if (ar || !(i in from)) {
|
|
5
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
+
ar[i] = from[i];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
+
};
|
|
2
11
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
13
|
};
|
|
14
|
+
var _a, _b;
|
|
5
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.createBody = void 0;
|
|
16
|
+
exports.createBody = exports.entradaDeMaterialDocumentHeaderBody = void 0;
|
|
7
17
|
var joi_1 = __importDefault(require("joi"));
|
|
8
18
|
var messages_1 = require("../../../shared/messages");
|
|
19
|
+
var interfaces_1 = require("../../document/materialEntrance/interfaces");
|
|
20
|
+
var entradaDeMaterialClientOrderBodyKeys = {
|
|
21
|
+
ef_dla_id: joi_1.default.string().uuid().required(),
|
|
22
|
+
ordered_quantity: joi_1.default.number().positive().required(),
|
|
23
|
+
pc_virtual_name: joi_1.default.string().required(),
|
|
24
|
+
pc_owner_id: joi_1.default.string().uuid().required(),
|
|
25
|
+
pc_dh_number: joi_1.default.number().integer().positive().required(),
|
|
26
|
+
pc_dla_id: joi_1.default.string().uuid().required(),
|
|
27
|
+
plot_id: joi_1.default.string().uuid().required(),
|
|
28
|
+
quantity: joi_1.default.number().positive().allow(0).required(),
|
|
29
|
+
option: (_a = joi_1.default
|
|
30
|
+
.string())
|
|
31
|
+
.valid.apply(_a, interfaces_1.createMaterialEntranceClientOrderOptions).allow(null)
|
|
32
|
+
.required(),
|
|
33
|
+
observation: joi_1.default.string().allow(null),
|
|
34
|
+
printed: joi_1.default.string().allow(null),
|
|
35
|
+
};
|
|
36
|
+
var entradaDeMaterialClientOrderBody = joi_1.default
|
|
37
|
+
.object()
|
|
38
|
+
.keys(entradaDeMaterialClientOrderBodyKeys)
|
|
39
|
+
.messages(messages_1.messages);
|
|
40
|
+
var entradaDeMaterialStockBodyKeys = {
|
|
41
|
+
ef_dla_id: joi_1.default.string().uuid().allow(null).required(),
|
|
42
|
+
ordered_quantity: joi_1.default.number().positive().allow(0).required(),
|
|
43
|
+
plot_id: joi_1.default.string().uuid().required(),
|
|
44
|
+
quantity: joi_1.default.number().positive().allow(0).required(),
|
|
45
|
+
option: (_b = joi_1.default
|
|
46
|
+
.string())
|
|
47
|
+
.valid.apply(_b, __spreadArray(__spreadArray([], interfaces_1.createMaterialEntranceStockOptions, false), interfaces_1.createMaterialEntranceStockWithoutOrderOptions, false)).allow(null)
|
|
48
|
+
.required(),
|
|
49
|
+
observation: joi_1.default.string().allow(null),
|
|
50
|
+
printed: joi_1.default.string().allow(null),
|
|
51
|
+
};
|
|
52
|
+
var entradaDeMaterialStockBody = joi_1.default
|
|
53
|
+
.object()
|
|
54
|
+
.keys(entradaDeMaterialStockBodyKeys)
|
|
55
|
+
.required()
|
|
56
|
+
.messages(messages_1.messages);
|
|
57
|
+
var entradaDeMaterialNCBodyKeys = {
|
|
58
|
+
ef_dla_id: joi_1.default.valid(null).required(),
|
|
59
|
+
ordered_quantity: joi_1.default.number().valid(0).required(),
|
|
60
|
+
plot_id: joi_1.default.string().uuid().required(),
|
|
61
|
+
quantity: joi_1.default.number().positive().allow(0).required(),
|
|
62
|
+
option: joi_1.default.valid(null).required(),
|
|
63
|
+
observation: joi_1.default.string().allow(null),
|
|
64
|
+
printed: joi_1.default.string().allow(null),
|
|
65
|
+
};
|
|
66
|
+
var entradaDeMaterialNCBody = joi_1.default
|
|
67
|
+
.object()
|
|
68
|
+
.keys(entradaDeMaterialNCBodyKeys)
|
|
69
|
+
.messages(messages_1.messages);
|
|
70
|
+
var entradaDeMaterialDocumentHeaderBodyKeys = {
|
|
71
|
+
clientOrders: joi_1.default.array().items(entradaDeMaterialClientOrderBody),
|
|
72
|
+
stock: entradaDeMaterialStockBody,
|
|
73
|
+
not_ok: entradaDeMaterialNCBody,
|
|
74
|
+
ef_dla_ids: joi_1.default.array().items(joi_1.default.string().uuid().required()).required(),
|
|
75
|
+
groupId: joi_1.default.string().uuid().required(),
|
|
76
|
+
ordered_quantity: joi_1.default.number().positive().allow(0).required(),
|
|
77
|
+
product: joi_1.default.any(),
|
|
78
|
+
product_id: joi_1.default.string().uuid().required(),
|
|
79
|
+
saved_id: joi_1.default.string().uuid().allow(null),
|
|
80
|
+
};
|
|
81
|
+
exports.entradaDeMaterialDocumentHeaderBody = joi_1.default
|
|
82
|
+
.object()
|
|
83
|
+
.keys(entradaDeMaterialDocumentHeaderBodyKeys)
|
|
84
|
+
.messages(messages_1.messages);
|
|
9
85
|
var createBodyKeys = {
|
|
10
86
|
data: joi_1.default.any(),
|
|
11
87
|
document_header_id: joi_1.default.string().uuid().required(),
|
|
@@ -144,7 +144,7 @@ export interface ICreateRequest extends Omit<IDocumentLineAssoc.ICreateRequest,
|
|
|
144
144
|
provider_tax: number;
|
|
145
145
|
provider_discount: number;
|
|
146
146
|
document_line_folder_id: string | null;
|
|
147
|
-
group
|
|
147
|
+
group?: string;
|
|
148
148
|
data: IData;
|
|
149
149
|
metadata: IMetadata;
|
|
150
150
|
}
|
|
@@ -158,7 +158,7 @@ export interface IUpdateRequest {
|
|
|
158
158
|
provider_tax?: number;
|
|
159
159
|
provider_discount?: number;
|
|
160
160
|
document_line_folder_id?: string | null;
|
|
161
|
-
group?: string
|
|
161
|
+
group?: string;
|
|
162
162
|
sent_to_client?: boolean;
|
|
163
163
|
sent_to_provider?: boolean;
|
|
164
164
|
}
|
|
@@ -30,7 +30,7 @@ var createBodyKeys = {
|
|
|
30
30
|
.default(0)
|
|
31
31
|
.max(99)
|
|
32
32
|
.required(),
|
|
33
|
-
group: joi_1.default.string().
|
|
33
|
+
group: joi_1.default.string().optional(),
|
|
34
34
|
data: joi_1.default
|
|
35
35
|
.object()
|
|
36
36
|
.pattern(joi_1.default.string(), joi_1.default.object().keys({
|
|
@@ -53,7 +53,7 @@ var updateBodyKeys = {
|
|
|
53
53
|
preco_custo: joi_1.default.number().positive().allow(0).optional(),
|
|
54
54
|
provider_tax: joi_1.default.number().positive().allow(0).optional(),
|
|
55
55
|
provider_discount: joi_1.default.number().positive().allow(0).max(99).optional(),
|
|
56
|
-
group: joi_1.default.string().
|
|
56
|
+
group: joi_1.default.string().optional(),
|
|
57
57
|
sent_to_client: joi_1.default.boolean().optional(),
|
|
58
58
|
sent_to_provider: joi_1.default.boolean().optional(),
|
|
59
59
|
};
|
|
@@ -574,7 +574,7 @@ export type DocumentLine = {
|
|
|
574
574
|
product: IProduct.IEntityExtended | null;
|
|
575
575
|
product_id: string | null;
|
|
576
576
|
plot_id: string | null;
|
|
577
|
-
group: string
|
|
577
|
+
group: string;
|
|
578
578
|
document_line_folder_id: string | null;
|
|
579
579
|
index: number;
|
|
580
580
|
data: IDocumentLine.IData;
|
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.514",
|
|
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
|
+
}
|