@nomalism-com/types 0.22.100 → 0.22.101
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.
|
@@ -49,6 +49,7 @@ export interface ICreateRequest {
|
|
|
49
49
|
price_cost?: number;
|
|
50
50
|
price_sale?: number;
|
|
51
51
|
margin?: number;
|
|
52
|
+
max_discount?: number;
|
|
52
53
|
unit_of_measure_quantity_id?: string;
|
|
53
54
|
origin_cabide_product_id?: string | null;
|
|
54
55
|
cabide_product_color?: string | null;
|
|
@@ -200,6 +201,14 @@ export interface IFindByProductTypeResponse {
|
|
|
200
201
|
reference: string;
|
|
201
202
|
price: number;
|
|
202
203
|
}
|
|
204
|
+
export interface ICheckStockByIdsRequest {
|
|
205
|
+
ids: string[];
|
|
206
|
+
}
|
|
207
|
+
export interface ICheckStockByIdsResponse {
|
|
208
|
+
id: string;
|
|
209
|
+
reference: string;
|
|
210
|
+
available: number;
|
|
211
|
+
}
|
|
203
212
|
export interface IRepository {
|
|
204
213
|
findByReferenceOnSheets(params: IFindProductSheetByReference): Promise<IProductSheetsWithIndex>;
|
|
205
214
|
findByReferenceOnNoma(params: IFindProductSheetByReference): Promise<IProduct | null>;
|
|
@@ -211,5 +220,6 @@ export interface IRepository {
|
|
|
211
220
|
findSimilarProductsByName(params: IFindSimilarProductsByNameRequest): Promise<IFindSimilarProductsByNameResponse[]>;
|
|
212
221
|
findByProductType(params: IFindByProductTypeRequest): Promise<IFindByProductTypeResponse[]>;
|
|
213
222
|
googleSheetsFieldsByRef(selector: IFindByReferenceRequest): Promise<string>;
|
|
223
|
+
checkStockByIds(data: ICheckStockByIdsRequest): Promise<ICheckStockByIdsResponse[]>;
|
|
214
224
|
deleteOne(params: IShared.IFindByIdRequest): Promise<void>;
|
|
215
225
|
}
|