@nomalism-com/types 0.9.531 → 0.9.533
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.
|
@@ -8,15 +8,12 @@ export declare const LowerName: string;
|
|
|
8
8
|
export type IPlotVirtuals = PlotVirtuals;
|
|
9
9
|
export type IPlotVirtualExtended = PlotVirtuals & {
|
|
10
10
|
current_document_line: (Pick<IDocumentLine.Entity, 'id'> & {
|
|
11
|
-
virtual: IDocumentLine.IDocumentLineBaseVirtuals
|
|
12
|
-
extended_virtual: (IDocumentLine.IDocumentLineVirtuals & {
|
|
13
|
-
provider_start: (Pick<DocumentHeader, 'owner_id' | 'document_number'> & {
|
|
14
|
-
start_virtual: Pick<StartDocumentHeaderVirtuals, 'closed'> | null;
|
|
15
|
-
}) | null;
|
|
11
|
+
virtual: (IDocumentLine.IDocumentLineBaseVirtuals & {
|
|
16
12
|
client_start: (Pick<DocumentHeader, 'owner_id' | 'document_number'> & {
|
|
17
13
|
start_virtual: Pick<StartDocumentHeaderVirtuals, 'closed'> | null;
|
|
18
14
|
}) | null;
|
|
19
15
|
}) | null;
|
|
16
|
+
extended_virtual: IDocumentLine.IDocumentLineVirtuals | null;
|
|
20
17
|
}) | null;
|
|
21
18
|
};
|
|
22
19
|
export interface IFindDetailedResponse extends Entity {
|
|
@@ -36,11 +36,7 @@ export interface IEntityExtended extends IFindDetailedResponse {
|
|
|
36
36
|
}) | null;
|
|
37
37
|
}
|
|
38
38
|
export type IFindByIdResponse = Omit<IEntityExtended, ''>;
|
|
39
|
-
export
|
|
40
|
-
active?: boolean;
|
|
41
|
-
inactive?: boolean;
|
|
42
|
-
dnt_come_anymore?: boolean;
|
|
43
|
-
}
|
|
39
|
+
export type IFindRequest = Record<string, unknown>;
|
|
44
40
|
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
45
41
|
export interface IFindByOwnerIdResponse {
|
|
46
42
|
id: string;
|
|
@@ -86,11 +86,7 @@ exports.bulkUpdateBody = joi_1.default
|
|
|
86
86
|
.object()
|
|
87
87
|
.keys(bulkUpdateBodyKeys)
|
|
88
88
|
.messages(messages_1.messages);
|
|
89
|
-
var findQueryKeys = {
|
|
90
|
-
active: joi_1.default.boolean().default(false).optional(),
|
|
91
|
-
inactive: joi_1.default.boolean().default(false).optional(),
|
|
92
|
-
dnt_come_anymore: joi_1.default.boolean().default(false).optional(),
|
|
93
|
-
};
|
|
89
|
+
var findQueryKeys = {};
|
|
94
90
|
exports.findQuery = joi_1.default.object().keys(findQueryKeys).messages(messages_1.messages);
|
|
95
91
|
var findWithPaginationQueryKeys = __assign(__assign({}, findQueryKeys), { per_page: joi_1.default.number().integer().positive().default(10).optional(), current_page: joi_1.default.number().integer().positive().default(1).optional() });
|
|
96
92
|
exports.findWithPaginationQuery = joi_1.default
|
|
@@ -955,14 +955,13 @@ export type DocumentLineBaseVirtuals = {
|
|
|
955
955
|
returned_from_invoice_id: string | null;
|
|
956
956
|
return_id: string | null;
|
|
957
957
|
credit_note_id: string | null;
|
|
958
|
+
client_start_id: string | null;
|
|
959
|
+
provider_start_id: string | null;
|
|
958
960
|
};
|
|
959
961
|
export type DocumentLineVirtuals = {
|
|
960
962
|
document_line_id: string;
|
|
961
963
|
state: string;
|
|
962
964
|
provider_state: string;
|
|
963
|
-
client_start_id: string | null;
|
|
964
|
-
provider_start_id: string | null;
|
|
965
|
-
invoice_name: string | null;
|
|
966
965
|
};
|
|
967
966
|
export type StartDocumentHeaderLastUpdateVirtuals = {
|
|
968
967
|
p_id: string;
|
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.533",
|
|
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
|
+
}
|