@nomalism-com/types 0.9.513 → 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.
|
@@ -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;
|
|
@@ -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
|
+
}
|