@nomalism-com/types 0.17.4 → 0.17.5

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.
@@ -53,6 +53,7 @@ export interface IPurchaseFromProviderRequest {
53
53
  value: number;
54
54
  observations?: string | null;
55
55
  };
56
+ note?: string;
56
57
  }
57
58
  export interface IRepository {
58
59
  findUnpaidMaterialEntrance(selector: IShared.IFindByIdRequest): Promise<IUnpaidMaterialEntranceResponse>;
@@ -26,6 +26,7 @@ var purchaseFromProviderBodyKeys = {
26
26
  observations: joi_1.default.string().allow('', null).optional(),
27
27
  })
28
28
  .optional(),
29
+ note: joi_1.default.string().optional(),
29
30
  };
30
31
  exports.purchaseFromProviderBody = joi_1.default
31
32
  .object()
@@ -1,5 +1,4 @@
1
1
  import * as IShared from '../../../shared/interface';
2
- import * as IDocumentLineNote from '../../supply/documentLineNote/interfaces';
3
2
  export declare const Route = "quebra";
4
3
  export declare const UpperName = "Quebra";
5
4
  export declare const LowerName: string;
@@ -19,7 +18,7 @@ export interface IInventoryLossResponse {
19
18
  export interface ICreateManyProducts {
20
19
  id: string;
21
20
  quantity: number;
22
- note?: IDocumentLineNote.ICreateRequest;
21
+ note?: string;
23
22
  }
24
23
  export interface ICreateManyRequest {
25
24
  products: ICreateManyProducts[];
@@ -6,11 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.createQuebraBody = void 0;
7
7
  var joi_1 = __importDefault(require("joi"));
8
8
  var messages_1 = require("../../../shared/messages");
9
- var route_schema_1 = require("../../supply/documentLineNote/route.schema");
10
9
  var productsCreateQuebraKeys = {
11
10
  id: joi_1.default.string().uuid().required(),
12
11
  quantity: joi_1.default.number().positive().required(),
13
- note: joi_1.default.object().keys(route_schema_1.createBodyKeys).optional(),
12
+ note: joi_1.default.string().optional(),
14
13
  };
15
14
  var createQuebraKeys = {
16
15
  products: joi_1.default
@@ -29,8 +29,9 @@ export interface ICheckLinesInPrisonRequest {
29
29
  lines: ICheckLinesInPrisonLinesRequest[];
30
30
  }
31
31
  export interface ICreateLinesInPrisonProduct {
32
- product_id: string;
32
+ id: string;
33
33
  quantity: number;
34
+ note?: string;
34
35
  }
35
36
  export interface ICreateLinesInPrisonRequest {
36
37
  products: ICreateLinesInPrisonProduct[];
@@ -33,8 +33,9 @@ exports.createLinesInPrisonBody = joi_1.default
33
33
  .items(joi_1.default
34
34
  .object()
35
35
  .keys({
36
- product_id: joi_1.default.string().uuid().required(),
37
- quantity: joi_1.default.number().positive().allow(0).required(),
36
+ id: joi_1.default.string().uuid().required(),
37
+ quantity: joi_1.default.number().positive().required(),
38
+ note: joi_1.default.string().optional(),
38
39
  })
39
40
  .required())
40
41
  .required(),
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.17.4",
12
+ "version": "0.17.5",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [