@nomalism-com/types 0.27.53 → 0.27.55

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.
@@ -185,25 +185,26 @@ export interface ICheckStockByIdsResponse {
185
185
  reference: string;
186
186
  available: number;
187
187
  }
188
- export interface IFindBasicForMobileResponse {
188
+ export interface IFindReferenceAndIdForMobileResponse {
189
189
  id: string;
190
190
  reference: string;
191
191
  }
192
- export interface IFindComposedForMobileResponse {
192
+ export interface IFindDataForMobileResponse {
193
193
  id: string;
194
194
  reference: string;
195
195
  designation: string;
196
196
  type: IProductType;
197
197
  state: IProductSheetState;
198
198
  thumbnail: string | null;
199
- cabide_product_color: string | null;
200
199
  attributes: string;
201
200
  compositions: string;
202
- virtual: Pick<IProductVirtuals, "price_sale" | "available" | "ordered_quantity" | "prison" | "reserved" | "total" | "inativa"> | null;
203
201
  unit_of_measure_quantity: Pick<UnitOfMeasure, "notation" | "integer_only">;
204
202
  origin_cabide_product: Pick<CabideProduct, "preco_final_1" | "preco_final_2"> | null;
205
203
  promotions: IDocumentLine.IPromotions[];
206
204
  }
205
+ export interface IFindStockForMobileResponse {
206
+ virtual: Pick<IProductVirtuals, "price_sale" | "available" | "ordered_quantity" | "prison" | "reserved" | "total" | "inativa"> | null;
207
+ }
207
208
  export type IFindForMobileRequest = {
208
209
  reference: string;
209
210
  id?: never;
@@ -217,8 +218,9 @@ export interface IProductLocation {
217
218
  }
218
219
  export interface IRepository {
219
220
  basicSearch(params: IBasicSearchRequest): Promise<IShared.IPaginationResponse<IBasicSearchResponse>>;
220
- findBasicForMobile(params: IFindForMobileRequest): Promise<IFindBasicForMobileResponse | null>;
221
- findComposedForMobile(params: IFindForMobileRequest): Promise<IFindComposedForMobileResponse | null>;
221
+ findReferenceAndIdForMobile(params: IFindForMobileRequest): Promise<IFindReferenceAndIdForMobileResponse | null>;
222
+ findDataForMobile(params: IShared.IFindByIdRequest): Promise<IFindDataForMobileResponse | null>;
223
+ findStockForMobile(params: IShared.IFindByIdRequest): Promise<IFindStockForMobileResponse | null>;
222
224
  validateByRef(selector: IValidateByReferenceRequest): Promise<IEntityMinified | null>;
223
225
  findSimilarProductsByName(params: IFindSimilarProductsByNameRequest): Promise<IFindSimilarProductsByNameResponse[]>;
224
226
  findByProductType(params: IFindByProductTypeRequest): Promise<IFindByProductTypeResponse[]>;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.27.53",
12
+ "version": "0.27.55",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [