@nomalism-com/types 0.9.444 → 0.9.446
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.
|
@@ -23,6 +23,7 @@ export interface IUpdateRequest {
|
|
|
23
23
|
}
|
|
24
24
|
export interface IRepository {
|
|
25
25
|
find: () => Promise<IFindDetailedResponse[]>;
|
|
26
|
+
findByOwnerId: (selector: IShared.IFindByOwnerIdRequest) => Promise<Entity[]>;
|
|
26
27
|
update: (params: IShared.IFindByIdRequest, data: IUpdateRequest) => Promise<Entity | null>;
|
|
27
28
|
}
|
|
28
29
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -35,11 +35,13 @@ export interface IUpdateRequest {
|
|
|
35
35
|
input?: boolean;
|
|
36
36
|
output?: boolean;
|
|
37
37
|
}
|
|
38
|
+
export type IFindByOwnerIdResponse = Entity;
|
|
38
39
|
export interface IRepository {
|
|
39
40
|
find(): Promise<Entity[]>;
|
|
40
41
|
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
41
42
|
create(data: ICreateRequest): Promise<Entity>;
|
|
42
43
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
43
44
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
45
|
+
findByOwnerId(selector: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
44
46
|
}
|
|
45
47
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IDocumentTypeUserType } from '../documentType/interfaces';
|
|
1
2
|
export declare const Route = "order_management";
|
|
2
3
|
export declare const UpperName = "OrderManagement";
|
|
3
4
|
export declare const LowerName: string;
|
|
@@ -45,7 +46,10 @@ export interface IFindProductHistoryProviderOrder {
|
|
|
45
46
|
export interface IFindProductHistoryMovement {
|
|
46
47
|
date: Date;
|
|
47
48
|
document_name: string;
|
|
48
|
-
|
|
49
|
+
link_user_type: IDocumentTypeUserType | null;
|
|
50
|
+
link_owner_id: string | null;
|
|
51
|
+
link_document_number: number | null;
|
|
52
|
+
link_closed: boolean | null;
|
|
49
53
|
quantity_in: number;
|
|
50
54
|
quantity_out: number;
|
|
51
55
|
stock_to_date: number;
|
|
@@ -997,6 +997,7 @@ export type StockMovement = {
|
|
|
997
997
|
product_id: string;
|
|
998
998
|
emission_date: Date;
|
|
999
999
|
name: string;
|
|
1000
|
+
link_user_type: IDocumentTypeUserType | null;
|
|
1000
1001
|
link_owner_id: string | null;
|
|
1001
1002
|
link_document_number: number | null;
|
|
1002
1003
|
link_closed: boolean | 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.6",
|
|
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.446",
|
|
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.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
|
+
}
|