@nomalism-com/types 0.22.98 → 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>;
@@ -210,5 +219,7 @@ export interface IRepository {
210
219
  validateByRef(selector: IValidateByReferenceRequest): Promise<IEntityMinified | null>;
211
220
  findSimilarProductsByName(params: IFindSimilarProductsByNameRequest): Promise<IFindSimilarProductsByNameResponse[]>;
212
221
  findByProductType(params: IFindByProductTypeRequest): Promise<IFindByProductTypeResponse[]>;
222
+ googleSheetsFieldsByRef(selector: IFindByReferenceRequest): Promise<string>;
223
+ checkStockByIds(data: ICheckStockByIdsRequest): Promise<ICheckStockByIdsResponse[]>;
213
224
  deleteOne(params: IShared.IFindByIdRequest): Promise<void>;
214
225
  }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.22.98",
12
+ "version": "0.22.101",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [