@nomalism-com/types 0.9.475 → 0.9.477
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.
|
@@ -48,6 +48,7 @@ var createUpdateDeleteBodyResponseKeys = {
|
|
|
48
48
|
location_id: joi_1.default.string().uuid().required(),
|
|
49
49
|
origin_id: joi_1.default.string().allow(null).optional(),
|
|
50
50
|
prison: joi_1.default.boolean().required(),
|
|
51
|
+
is_virtual: joi_1.default.boolean().required(),
|
|
51
52
|
pre_sale_id: joi_1.default.string().uuid().required(),
|
|
52
53
|
observations: joi_1.default.string().allow(null),
|
|
53
54
|
avg_unit_cost: joi_1.default.number().positive().allow(null).required(),
|
|
@@ -62,6 +63,7 @@ exports.findOwnerIdBodyResponsekeys = {
|
|
|
62
63
|
virtual: joi_1.default.any(),
|
|
63
64
|
origin_id: joi_1.default.string().allow(null).optional(),
|
|
64
65
|
prison: joi_1.default.boolean().required(),
|
|
66
|
+
is_virtual: joi_1.default.boolean().required(),
|
|
65
67
|
pre_sale_id: joi_1.default.string().uuid().required(),
|
|
66
68
|
observations: joi_1.default.string().allow(null),
|
|
67
69
|
avg_unit_cost: joi_1.default.number().positive(),
|
|
@@ -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
|
}
|
|
@@ -134,6 +134,7 @@ export type Plot = {
|
|
|
134
134
|
product_id: string;
|
|
135
135
|
avg_unit_cost: number | null;
|
|
136
136
|
prison: boolean;
|
|
137
|
+
is_virtual: boolean;
|
|
137
138
|
pre_sale_id: string | null;
|
|
138
139
|
quantity: number;
|
|
139
140
|
location_id: string | null;
|
|
@@ -884,7 +885,9 @@ export type ProductVirtuals = {
|
|
|
884
885
|
reference: string;
|
|
885
886
|
prison: number;
|
|
886
887
|
cart: number;
|
|
888
|
+
cart_virtual: number;
|
|
887
889
|
reserved: number;
|
|
890
|
+
virtual: number;
|
|
888
891
|
negative: number;
|
|
889
892
|
available: number;
|
|
890
893
|
total: number;
|