@nomalism-com/types 0.36.2 → 0.36.4
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/index.cjs
CHANGED
|
@@ -5013,7 +5013,7 @@ var entradaDeMaterialClientOrderBody = joi92.object().keys(entradaDeMaterialClie
|
|
|
5013
5013
|
var entradaDeMaterialStockBodyKeys = {
|
|
5014
5014
|
ef_dla_id: joi92.string().uuid().allow(null).required(),
|
|
5015
5015
|
ordered_quantity: joi92.number().positive().allow(0).required(),
|
|
5016
|
-
document_line_id: joi92.string().uuid().required(),
|
|
5016
|
+
document_line_id: joi92.string().uuid().allow(null).required(),
|
|
5017
5017
|
quantity: joi92.number().positive().allow(0).required(),
|
|
5018
5018
|
option: joi92.string().valid(...createMaterialEntranceStockOptions, ...createMaterialEntranceStockWithoutOrderOptions).allow(null).required(),
|
|
5019
5019
|
note: joi92.string().allow(null),
|
|
@@ -5031,8 +5031,8 @@ var entradaDeMaterialNCBodyKeys = {
|
|
|
5031
5031
|
};
|
|
5032
5032
|
var entradaDeMaterialNCBody = joi92.object().keys(entradaDeMaterialNCBodyKeys).messages(messages);
|
|
5033
5033
|
var entradaDeMaterialDocumentHeaderBodyKeys = {
|
|
5034
|
-
clientOrders: joi92.array().items(entradaDeMaterialClientOrderBody),
|
|
5035
|
-
stock: entradaDeMaterialStockBody,
|
|
5034
|
+
clientOrders: joi92.array().items(entradaDeMaterialClientOrderBody).required(),
|
|
5035
|
+
stock: joi92.array().items(entradaDeMaterialStockBody).required(),
|
|
5036
5036
|
not_ok: entradaDeMaterialNCBody
|
|
5037
5037
|
};
|
|
5038
5038
|
var entradaDeMaterialDocumentHeaderBody = joi92.object().keys(entradaDeMaterialDocumentHeaderBodyKeys).messages(messages);
|
package/dist/index.js
CHANGED
|
@@ -5013,7 +5013,7 @@ var entradaDeMaterialClientOrderBody = joi92.object().keys(entradaDeMaterialClie
|
|
|
5013
5013
|
var entradaDeMaterialStockBodyKeys = {
|
|
5014
5014
|
ef_dla_id: joi92.string().uuid().allow(null).required(),
|
|
5015
5015
|
ordered_quantity: joi92.number().positive().allow(0).required(),
|
|
5016
|
-
document_line_id: joi92.string().uuid().required(),
|
|
5016
|
+
document_line_id: joi92.string().uuid().allow(null).required(),
|
|
5017
5017
|
quantity: joi92.number().positive().allow(0).required(),
|
|
5018
5018
|
option: joi92.string().valid(...createMaterialEntranceStockOptions, ...createMaterialEntranceStockWithoutOrderOptions).allow(null).required(),
|
|
5019
5019
|
note: joi92.string().allow(null),
|
|
@@ -5031,8 +5031,8 @@ var entradaDeMaterialNCBodyKeys = {
|
|
|
5031
5031
|
};
|
|
5032
5032
|
var entradaDeMaterialNCBody = joi92.object().keys(entradaDeMaterialNCBodyKeys).messages(messages);
|
|
5033
5033
|
var entradaDeMaterialDocumentHeaderBodyKeys = {
|
|
5034
|
-
clientOrders: joi92.array().items(entradaDeMaterialClientOrderBody),
|
|
5035
|
-
stock: entradaDeMaterialStockBody,
|
|
5034
|
+
clientOrders: joi92.array().items(entradaDeMaterialClientOrderBody).required(),
|
|
5035
|
+
stock: joi92.array().items(entradaDeMaterialStockBody).required(),
|
|
5036
5036
|
not_ok: entradaDeMaterialNCBody
|
|
5037
5037
|
};
|
|
5038
5038
|
var entradaDeMaterialDocumentHeaderBody = joi92.object().keys(entradaDeMaterialDocumentHeaderBodyKeys).messages(messages);
|
|
@@ -49,7 +49,7 @@ export interface IGetMaterialEntranceInfoStock {
|
|
|
49
49
|
ordered_quantity: number;
|
|
50
50
|
}
|
|
51
51
|
export interface IEntradaDeMaterialStock extends IGetMaterialEntranceInfoStock {
|
|
52
|
-
document_line_id: string;
|
|
52
|
+
document_line_id: string | null;
|
|
53
53
|
quantity: number;
|
|
54
54
|
option: ICreateMaterialEntranceStockOption | ICreateMaterialEntranceStockWithoutOrderOption | null;
|
|
55
55
|
note: string | null;
|
package/package.json
CHANGED
|
@@ -92,7 +92,7 @@ export interface IGetMaterialEntranceInfoStock {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
export interface IEntradaDeMaterialStock extends IGetMaterialEntranceInfoStock {
|
|
95
|
-
document_line_id: string;
|
|
95
|
+
document_line_id: string | null;
|
|
96
96
|
quantity: number;
|
|
97
97
|
option:
|
|
98
98
|
| ICreateMaterialEntranceStockOption
|
|
@@ -47,7 +47,7 @@ const entradaDeMaterialStockBodyKeys: IShared.IRouteRequest<IEntradaDeMaterialSt
|
|
|
47
47
|
ef_dla_id: joi.string().uuid().allow(null).required(),
|
|
48
48
|
ordered_quantity: joi.number().positive().allow(0).required(),
|
|
49
49
|
|
|
50
|
-
document_line_id: joi.string().uuid().required(),
|
|
50
|
+
document_line_id: joi.string().uuid().allow(null).required(),
|
|
51
51
|
quantity: joi.number().positive().allow(0).required(),
|
|
52
52
|
option: joi
|
|
53
53
|
.string()
|
|
@@ -79,8 +79,8 @@ const entradaDeMaterialNCBodyKeys: IShared.IRouteRequest<IEntradaDeMaterialNC> =
|
|
|
79
79
|
const entradaDeMaterialNCBody = joi.object().keys(entradaDeMaterialNCBodyKeys).messages(messages);
|
|
80
80
|
|
|
81
81
|
const entradaDeMaterialDocumentHeaderBodyKeys: IShared.IRouteRequest<ISavedEmPickingData> = {
|
|
82
|
-
clientOrders: joi.array().items(entradaDeMaterialClientOrderBody),
|
|
83
|
-
stock: entradaDeMaterialStockBody,
|
|
82
|
+
clientOrders: joi.array().items(entradaDeMaterialClientOrderBody).required(),
|
|
83
|
+
stock: joi.array().items(entradaDeMaterialStockBody).required(),
|
|
84
84
|
not_ok: entradaDeMaterialNCBody,
|
|
85
85
|
};
|
|
86
86
|
|