@nomalism-com/types 0.9.474 → 0.9.476

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.
@@ -57,16 +57,19 @@ export declare const ICreateMaterialEntranceStockWithoutOrderOptionEnum: {
57
57
  export type ICreateMaterialEntranceStockWithoutOrderOption = (typeof ICreateMaterialEntranceStockWithoutOrderOptionEnum)[keyof typeof ICreateMaterialEntranceStockWithoutOrderOptionEnum];
58
58
  export declare const createMaterialEntranceStockWithoutOrderOptions: string[];
59
59
  export interface IFinalizarEntradaDeMaterialClientOrder extends IGetMaterialEntranceInfoClientOrder {
60
+ plot_id: string;
60
61
  quantity: number;
61
62
  option: ICreateMaterialEntranceClientOrderOption | null;
62
63
  }
63
64
  export interface IFinalizarEntradaDeMaterialStock extends IGetMaterialEntranceInfoStock {
65
+ plot_id: string;
64
66
  quantity: number;
65
67
  option: ICreateMaterialEntranceStockOption | ICreateMaterialEntranceStockWithoutOrderOption | null;
66
68
  }
67
69
  export interface IFinalizarEntradaDeMaterialNC {
68
70
  ef_dla_id: null;
69
71
  ordered_quantity: 0;
72
+ plot_id: string;
70
73
  quantity: number;
71
74
  option: null;
72
75
  }
@@ -24,6 +24,7 @@ var finalizarEntradaDeMaterialClientOrderBodyKeys = {
24
24
  pc_owner_id: joi_1.default.string().uuid().required(),
25
25
  pc_dh_number: joi_1.default.number().integer().positive().required(),
26
26
  pc_dla_id: joi_1.default.string().uuid().required(),
27
+ plot_id: joi_1.default.string().uuid().required(),
27
28
  quantity: joi_1.default.number().positive().allow(0).required(),
28
29
  option: (_a = joi_1.default
29
30
  .string())
@@ -37,6 +38,7 @@ var finalizarEntradaDeMaterialClientOrderBody = joi_1.default
37
38
  var finalizarEntradaDeMaterialStockBodyKeys = {
38
39
  ef_dla_id: joi_1.default.string().uuid().allow(null).required(),
39
40
  ordered_quantity: joi_1.default.number().positive().allow(0).required(),
41
+ plot_id: joi_1.default.string().uuid().required(),
40
42
  quantity: joi_1.default.number().positive().allow(0).required(),
41
43
  option: (_b = joi_1.default
42
44
  .string())
@@ -51,6 +53,7 @@ var finalizarEntradaDeMaterialStockBody = joi_1.default
51
53
  var finalizarEntradaDeMaterialNCBodyKeys = {
52
54
  ef_dla_id: joi_1.default.valid(null).required(),
53
55
  ordered_quantity: joi_1.default.number().valid(0).required(),
56
+ plot_id: joi_1.default.string().uuid().required(),
54
57
  quantity: joi_1.default.number().positive().allow(0).required(),
55
58
  option: joi_1.default.valid(null).required(),
56
59
  };
@@ -4,6 +4,7 @@ export type Entity = StockMovement;
4
4
  export declare const Route = "stock_movement";
5
5
  export declare const UpperName = "StockMovement";
6
6
  export declare const LowerName: string;
7
+ export type IFindByProviderResponse = Omit<StockMovement, 'product_id' | 'stock_to_date'>;
7
8
  export type IFindByOwnerIdResponse = Omit<StockMovement, 'product_id'>;
8
9
  export interface IExportCsvRequest {
9
10
  date: Date;
@@ -18,6 +19,7 @@ export interface IExportCsvResponse {
18
19
  unitOfMeasure: string;
19
20
  }
20
21
  export interface IRepository {
22
+ findByProvider(selector: IShared.IFindByIdNumberRequest): Promise<IFindByProviderResponse[]>;
21
23
  findByOwnerId(selector: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
22
24
  exportCsv(selector: IExportCsvRequest): Promise<IExportCsvResponse[]>;
23
25
  }
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.474",
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.61.0",
43
- "@typescript-eslint/parser": "^5.61.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.476",
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.61.0",
43
+ "@typescript-eslint/parser": "^5.61.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
+ }