@nomalism-com/types 0.22.110 → 0.22.112

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.
@@ -1,5 +1,6 @@
1
1
  import { type Cabide, type CabideProduct, type ProductImage, type ProductVirtuals, type UnitOfMeasure, type VatTax, type VatTaxZone, type ProductPromotionVirtuals, type ProductBaseVirtuals, type ProductSheet } from "../../../shared/entities";
2
2
  import * as IShared from "../../../shared/interface";
3
+ import * as IDocumentLine from "../../supply/documentLine/interfaces";
3
4
  export declare const Route = "product_sheets";
4
5
  export declare const UpperName = "ProductsSheets";
5
6
  export declare const LowerName: string;
@@ -217,7 +218,27 @@ export interface ICheckStockByIdsResponse {
217
218
  reference: string;
218
219
  available: number;
219
220
  }
221
+ export interface IFindForMobileResponse {
222
+ id: string;
223
+ type: IProductType;
224
+ dnt_come_anymore: boolean;
225
+ thumbnail: string | null;
226
+ cabide_product_color: string | null;
227
+ product_attributes: string;
228
+ virtual: Pick<IProductVirtuals, "price_sale" | "available" | "ordered_quantity" | "prison" | "reserved" | "total"> | null;
229
+ unit_of_measure_quantity: Pick<UnitOfMeasure, "notation" | "integer_only">;
230
+ origin_cabide_product: Pick<CabideProduct, "preco_final_1" | "preco_final_2"> | null;
231
+ promotions: IDocumentLine.IPromotions[];
232
+ }
233
+ export type IFindForMobileRequest = {
234
+ reference: string;
235
+ id?: never;
236
+ } | {
237
+ reference?: never;
238
+ id: string;
239
+ };
220
240
  export interface IRepository {
241
+ findForMobile(params: IFindForMobileRequest): Promise<IFindForMobileResponse | null>;
221
242
  findByReferenceOnSheets(params: IFindProductSheetByReference): Promise<IProductSheetsWithIndex>;
222
243
  findByReferenceOnNoma(params: IFindProductSheetByReference): Promise<IProduct | null>;
223
244
  createOrUpdateNomaFromGoogleSheets(params: IFindProductSheetByReference, body: IProduct): Promise<IProduct>;
@@ -61,7 +61,7 @@ export interface ICreateProductByCabideProductIdRequest {
61
61
  export interface IFindPaginatedRequest extends IShared.IFindByOwnerIdRequest, IShared.IPaginationRequest {
62
62
  }
63
63
  export type IFindWithPaginationResponse = IShared.IPaginationResponse<IFindCabideByOwnerResponse>;
64
- export interface IEntityFromCabide extends Pick<ProductSheet, "id" | "cabide_product_color" | "designation" | "vat_tax_id" | "id_provider" | "width"> {
64
+ export interface IEntityFromCabide extends Pick<ProductSheet, "id" | "cabide_product_color" | "designation" | "reference" | "vat_tax_id" | "id_provider" | "width"> {
65
65
  thumbnail: string | null;
66
66
  cabide_product: (CabideProduct & {
67
67
  cabide: Cabide;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.22.110",
12
+ "version": "0.22.112",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [