@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
|
|
188
|
+
export interface IFindReferenceAndIdForMobileResponse {
|
|
189
189
|
id: string;
|
|
190
190
|
reference: string;
|
|
191
191
|
}
|
|
192
|
-
export interface
|
|
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
|
-
|
|
220
|
-
|
|
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[]>;
|