@nomalism-com/types 0.27.54 → 0.27.56

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,11 +185,11 @@ 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;
@@ -198,11 +198,13 @@ export interface IFindComposedForMobileResponse {
198
198
  thumbnail: string | null;
199
199
  attributes: string;
200
200
  compositions: string;
201
- virtual: Pick<IProductVirtuals, "price_sale" | "available" | "ordered_quantity" | "prison" | "reserved" | "total" | "inativa"> | null;
202
201
  unit_of_measure_quantity: Pick<UnitOfMeasure, "notation" | "integer_only">;
203
202
  origin_cabide_product: Pick<CabideProduct, "preco_final_1" | "preco_final_2"> | null;
204
203
  promotions: IDocumentLine.IPromotions[];
205
204
  }
205
+ export interface IFindStockForMobileResponse {
206
+ virtual: Pick<IProductVirtuals, "price_sale" | "available" | "ordered_quantity" | "prison" | "reserved" | "total" | "inativa"> | null;
207
+ }
206
208
  export type IFindForMobileRequest = {
207
209
  reference: string;
208
210
  id?: never;
@@ -216,8 +218,9 @@ export interface IProductLocation {
216
218
  }
217
219
  export interface IRepository {
218
220
  basicSearch(params: IBasicSearchRequest): Promise<IShared.IPaginationResponse<IBasicSearchResponse>>;
219
- findBasicForMobile(params: IFindForMobileRequest): Promise<IFindBasicForMobileResponse | null>;
220
- 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>;
221
224
  validateByRef(selector: IValidateByReferenceRequest): Promise<IEntityMinified | null>;
222
225
  findSimilarProductsByName(params: IFindSimilarProductsByNameRequest): Promise<IFindSimilarProductsByNameResponse[]>;
223
226
  findByProductType(params: IFindByProductTypeRequest): Promise<IFindByProductTypeResponse[]>;
@@ -40,6 +40,8 @@ export interface IDocumentLineDocuments {
40
40
  start_document_header_id?: string;
41
41
  pdf_link?: string;
42
42
  external_url?: string;
43
+ label?: string;
44
+ edh_id?: string;
43
45
  }
44
46
  export interface IHistory {
45
47
  what: string;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.27.54",
12
+ "version": "0.27.56",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [