@nomalism-com/types 0.10.38 → 0.10.40
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/stock/plot/interface.d.ts +2 -0
- package/dist/modules/stock/plot/route.schema.js +2 -0
- package/dist/modules/stock/productImage/interface.d.ts +2 -0
- package/dist/modules/stock/productImage/route.schema.js +2 -0
- package/dist/modules/supply/cabideProduct/interface.d.ts +8 -0
- package/dist/modules/supply/cabideProduct/route.schema.js +8 -0
- package/dist/modules/supply/preSale/interface.d.ts +4 -0
- package/dist/modules/supply/preSale/route.schema.js +2 -0
- package/package.json +1 -1
|
@@ -169,6 +169,8 @@ export interface ICreateInventoryRequest {
|
|
|
169
169
|
inventory_quantity: number;
|
|
170
170
|
new_plot_id: string;
|
|
171
171
|
is_virtual?: boolean;
|
|
172
|
+
created_by?: string;
|
|
173
|
+
updated_by?: string;
|
|
172
174
|
}
|
|
173
175
|
export interface IRepository {
|
|
174
176
|
findById(id: string): Promise<Entity | null>;
|
|
@@ -99,6 +99,8 @@ var createInventoryRequestKeys = {
|
|
|
99
99
|
inventory_quantity: joi_1.default.number().positive().allow(0).required(),
|
|
100
100
|
new_plot_id: joi_1.default.string().uuid().required(),
|
|
101
101
|
is_virtual: joi_1.default.boolean().default(false).optional(),
|
|
102
|
+
created_by: joi_1.default.string().uuid().optional(),
|
|
103
|
+
updated_by: joi_1.default.string().uuid().optional(),
|
|
102
104
|
};
|
|
103
105
|
exports.createInventoryRequest = joi_1.default
|
|
104
106
|
.object()
|
|
@@ -14,6 +14,8 @@ var createBodyKeys = {
|
|
|
14
14
|
.valid.apply(_a, interface_1.imageTypes).required(),
|
|
15
15
|
product_id: joi_1.default.string().uuid().required(),
|
|
16
16
|
multimedia_id: joi_1.default.string().uuid().required(),
|
|
17
|
+
created_by: joi_1.default.string().uuid().optional(),
|
|
18
|
+
updated_by: joi_1.default.string().uuid().optional(),
|
|
17
19
|
};
|
|
18
20
|
exports.createBody = joi_1.default.object().keys(createBodyKeys).messages(messages_1.messages);
|
|
19
21
|
var updateBodyKeys = {
|
|
@@ -14,6 +14,9 @@ export interface ICreateRequest {
|
|
|
14
14
|
preco_final_1?: number;
|
|
15
15
|
preco_final_2?: number;
|
|
16
16
|
preco_final_3?: number;
|
|
17
|
+
preco_venda_1?: number;
|
|
18
|
+
preco_venda_2?: number;
|
|
19
|
+
preco_venda_3?: number;
|
|
17
20
|
portes_1?: number;
|
|
18
21
|
portes_2?: number;
|
|
19
22
|
portes_3?: number;
|
|
@@ -31,6 +34,9 @@ export interface IUpdateRequest {
|
|
|
31
34
|
preco_final_1?: number;
|
|
32
35
|
preco_final_2?: number;
|
|
33
36
|
preco_final_3?: number;
|
|
37
|
+
preco_venda_1?: number;
|
|
38
|
+
preco_venda_2?: number;
|
|
39
|
+
preco_venda_3?: number;
|
|
34
40
|
portes_1?: number;
|
|
35
41
|
portes_2?: number;
|
|
36
42
|
portes_3?: number;
|
|
@@ -72,6 +78,8 @@ export interface IFindCabideByOwnerResponse extends Entity {
|
|
|
72
78
|
export interface ICreateProductByCabideProductIdRequest {
|
|
73
79
|
cabide_product_id: string;
|
|
74
80
|
cabide_product_color: string;
|
|
81
|
+
created_by?: string;
|
|
82
|
+
updated_by?: string;
|
|
75
83
|
}
|
|
76
84
|
export interface IFindPaginatedRequest extends IShared.IFindByOwnerIdRequest, IShared.IPaginationRequest {
|
|
77
85
|
}
|
|
@@ -14,6 +14,9 @@ var createBodyKeys = {
|
|
|
14
14
|
preco_final_1: joi_1.default.number().positive().allow(0).optional(),
|
|
15
15
|
preco_final_2: joi_1.default.number().positive().allow(0).optional(),
|
|
16
16
|
preco_final_3: joi_1.default.number().positive().allow(0).optional(),
|
|
17
|
+
preco_venda_1: joi_1.default.number().positive().allow(0).optional(),
|
|
18
|
+
preco_venda_2: joi_1.default.number().positive().allow(0).optional(),
|
|
19
|
+
preco_venda_3: joi_1.default.number().positive().allow(0).optional(),
|
|
17
20
|
portes_1: joi_1.default.number().positive().allow(0).optional(),
|
|
18
21
|
portes_2: joi_1.default.number().positive().allow(0).optional(),
|
|
19
22
|
portes_3: joi_1.default.number().positive().allow(0).optional(),
|
|
@@ -32,6 +35,9 @@ var updateBodyKeys = {
|
|
|
32
35
|
preco_final_1: joi_1.default.number().positive().optional(),
|
|
33
36
|
preco_final_2: joi_1.default.number().positive().optional(),
|
|
34
37
|
preco_final_3: joi_1.default.number().positive().optional(),
|
|
38
|
+
preco_venda_1: joi_1.default.number().positive().optional(),
|
|
39
|
+
preco_venda_2: joi_1.default.number().positive().optional(),
|
|
40
|
+
preco_venda_3: joi_1.default.number().positive().optional(),
|
|
35
41
|
portes_1: joi_1.default.number().positive().optional(),
|
|
36
42
|
portes_2: joi_1.default.number().positive().optional(),
|
|
37
43
|
portes_3: joi_1.default.number().positive().optional(),
|
|
@@ -46,6 +52,8 @@ exports.updateBody = joi_1.default.object().keys(updateBodyKeys).messages(messag
|
|
|
46
52
|
var createByProductIdBodyKeys = {
|
|
47
53
|
cabide_product_id: joi_1.default.string().uuid().required(),
|
|
48
54
|
cabide_product_color: joi_1.default.string().required(),
|
|
55
|
+
created_by: joi_1.default.string().uuid().optional(),
|
|
56
|
+
updated_by: joi_1.default.string().uuid().optional(),
|
|
49
57
|
};
|
|
50
58
|
exports.createByProductIdBody = joi_1.default
|
|
51
59
|
.object()
|
|
@@ -27,10 +27,12 @@ export interface IUpdateRequest {
|
|
|
27
27
|
barcode?: string;
|
|
28
28
|
plot?: IPreSaleData | null;
|
|
29
29
|
product?: IPreSaleData | null;
|
|
30
|
+
updated_by?: string;
|
|
30
31
|
}
|
|
31
32
|
export interface IUpdatePreSaleQuantityRequest {
|
|
32
33
|
type: 'plot' | 'product';
|
|
33
34
|
quantity: number;
|
|
35
|
+
updated_by?: string;
|
|
34
36
|
}
|
|
35
37
|
interface IRemovePlotOrPreSaleProduct {
|
|
36
38
|
plot_id?: string;
|
|
@@ -40,6 +42,8 @@ export type IRemovePlotOrPreSaleProductRequest = IShared.RequireOnlyOne<IRemoveP
|
|
|
40
42
|
export interface ICreateRequest {
|
|
41
43
|
plot?: IPreSaleData;
|
|
42
44
|
product?: IPreSaleData;
|
|
45
|
+
created_by?: string;
|
|
46
|
+
updated_by?: string;
|
|
43
47
|
}
|
|
44
48
|
export interface IImportToClientProposalRequest {
|
|
45
49
|
pre_sale_id: string;
|
|
@@ -13,6 +13,8 @@ var schemaTypePlot = joi_1.default.object().keys({
|
|
|
13
13
|
var createBodyKeys = {
|
|
14
14
|
plot: schemaTypePlot,
|
|
15
15
|
product: schemaTypePlot,
|
|
16
|
+
created_by: joi_1.default.string().uuid().optional(),
|
|
17
|
+
updated_by: joi_1.default.string().uuid().optional(),
|
|
16
18
|
};
|
|
17
19
|
exports.createBody = joi_1.default
|
|
18
20
|
.object()
|