@nomalism-com/types 0.17.4 → 0.17.6
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.
- package/dist/modules/document/purchase/interfaces.d.ts +1 -0
- package/dist/modules/document/purchase/route.schema.js +1 -0
- package/dist/modules/document/quebra/interfaces.d.ts +1 -2
- package/dist/modules/document/quebra/route.schema.js +1 -2
- package/dist/modules/stock/prison/interface.d.ts +4 -1
- package/dist/modules/stock/prison/route.schema.js +3 -2
- package/package.json +1 -1
|
@@ -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>;
|
|
@@ -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?:
|
|
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.
|
|
12
|
+
note: joi_1.default.string().optional(),
|
|
14
13
|
};
|
|
15
14
|
var createQuebraKeys = {
|
|
16
15
|
products: joi_1.default
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DocumentLineNote } from 'shared/entities';
|
|
1
2
|
import * as IShared from '../../../shared/interface';
|
|
2
3
|
export declare const Route = "prison";
|
|
3
4
|
export declare const UpperName = "Prison";
|
|
@@ -15,6 +16,7 @@ export interface IFindLinesInPrisonResponse {
|
|
|
15
16
|
reference: string;
|
|
16
17
|
};
|
|
17
18
|
};
|
|
19
|
+
notes: DocumentLineNote[];
|
|
18
20
|
updated_by: string;
|
|
19
21
|
updated_at: Date;
|
|
20
22
|
}
|
|
@@ -29,8 +31,9 @@ export interface ICheckLinesInPrisonRequest {
|
|
|
29
31
|
lines: ICheckLinesInPrisonLinesRequest[];
|
|
30
32
|
}
|
|
31
33
|
export interface ICreateLinesInPrisonProduct {
|
|
32
|
-
|
|
34
|
+
id: string;
|
|
33
35
|
quantity: number;
|
|
36
|
+
note?: string;
|
|
34
37
|
}
|
|
35
38
|
export interface ICreateLinesInPrisonRequest {
|
|
36
39
|
products: ICreateLinesInPrisonProduct[];
|
|
@@ -33,8 +33,9 @@ exports.createLinesInPrisonBody = joi_1.default
|
|
|
33
33
|
.items(joi_1.default
|
|
34
34
|
.object()
|
|
35
35
|
.keys({
|
|
36
|
-
|
|
37
|
-
quantity: joi_1.default.number().positive().
|
|
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(),
|