@nomalism-com/types 0.16.1 → 0.16.3
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.
|
@@ -9,7 +9,7 @@ var messages_1 = require("../../../shared/messages");
|
|
|
9
9
|
var createInventoryRequestKeys = {
|
|
10
10
|
product_id: joi_1.default.string().uuid().required(),
|
|
11
11
|
plot_id: joi_1.default.string().uuid().allow(null).required(),
|
|
12
|
-
registered_quantity: joi_1.default.number().
|
|
12
|
+
registered_quantity: joi_1.default.number().allow(0).optional(),
|
|
13
13
|
inventory_quantity: joi_1.default.number().positive().allow(0).required(),
|
|
14
14
|
new_plot_id: joi_1.default.string().uuid().required(),
|
|
15
15
|
is_virtual: joi_1.default.boolean().default(false).optional(),
|
|
@@ -37,3 +37,6 @@ export interface IRepository {
|
|
|
37
37
|
findPlotsToReturnProviders(): Promise<IShared.IFindMinifiedResponse[]>;
|
|
38
38
|
}
|
|
39
39
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
40
|
+
export interface IApi extends Omit<IRepository, 'checkPlotsToReturn'> {
|
|
41
|
+
checkPlotsToReturn(params: ICheckPlotsToReturnRequest): Promise<void>;
|
|
42
|
+
}
|
|
@@ -564,7 +564,9 @@ export type DocumentLine = {
|
|
|
564
564
|
id: string;
|
|
565
565
|
product: IProduct.IEntityExtended | null;
|
|
566
566
|
product_id: string | null;
|
|
567
|
-
|
|
567
|
+
avg_unit_cost: number | null;
|
|
568
|
+
prison: boolean;
|
|
569
|
+
cativado: boolean;
|
|
568
570
|
document_line_group_id: string;
|
|
569
571
|
document_line_folder_id: string | null;
|
|
570
572
|
index: number;
|
|
@@ -577,8 +579,6 @@ export type DocumentLine = {
|
|
|
577
579
|
preco_venda: number;
|
|
578
580
|
client_tax: number;
|
|
579
581
|
client_discount: number;
|
|
580
|
-
avg_unit_cost: number | null;
|
|
581
|
-
prison: boolean;
|
|
582
582
|
provider_estimated_delivery_date: Date | null;
|
|
583
583
|
sent_to_client: boolean;
|
|
584
584
|
sent_to_provider: boolean;
|