@nomalism-com/types 0.22.44 → 0.22.46

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,5 @@
1
1
  import * as IShared from "../../../shared/interface";
2
- import { Attribute, Product, ProductName, UnitOfMeasure, ProductSubCategory, ProductCategory, TypeOfInventory, ProductImage, VatTax, VatTaxZone, ProductVirtuals, ProductBaseVirtuals, ProductPromotionVirtuals, CabideProduct } from "../../../shared/entities";
2
+ import { Attribute, Product, ProductName, UnitOfMeasure, ProductSubCategory, ProductCategory, TypeOfInventory, ProductImage, VatTax, VatTaxZone, ProductVirtuals, ProductBaseVirtuals, ProductPromotionVirtuals, CabideProduct, Cabide } from "../../../shared/entities";
3
3
  import * as IProductPart from "../productPart/interface";
4
4
  import * as IProductAttribute from "../productAttribute/interface";
5
5
  import * as IDocumentLine from "../../supply/documentLine/interfaces";
@@ -12,6 +12,9 @@ export type IProductBaseVirtuals = ProductBaseVirtuals;
12
12
  export type IProductPromotionVirtuals = ProductPromotionVirtuals;
13
13
  export interface IEntityFromCabide extends Pick<Entity, "id" | "cabide_product_color" | "designation" | "vat_tax_id" | "id_provider" | "width"> {
14
14
  thumbnail: string | null;
15
+ cabide_product: (CabideProduct & {
16
+ cabide: Cabide;
17
+ }) | null;
15
18
  virtual: ProductBaseVirtuals | null;
16
19
  }
17
20
  export interface IEntityWithStock extends Entity {
@@ -30,6 +33,9 @@ export interface IEntityWithStock extends Entity {
30
33
  promotions: IProductPromotionVirtuals[];
31
34
  product_images: ProductImage[];
32
35
  product_parts: IProductPart.IFindByRefProduct[];
36
+ cabide_product: (CabideProduct & {
37
+ cabide: Cabide;
38
+ }) | null;
33
39
  extended_virtual: ProductVirtuals | null;
34
40
  }
35
41
  export interface IEntityMinified {
@@ -19,8 +19,7 @@ export interface IProductsForNomaResponse {
19
19
  }
20
20
  export interface IProduct extends Omit<IProductsForNomaResponse, "values"> {
21
21
  id: string;
22
- created_at: Date;
23
- updated_at: Date;
22
+ designation: string;
24
23
  values: IProductFromSheetsValues;
25
24
  imported_from_sheets: boolean;
26
25
  id_provider: number;
@@ -43,6 +42,8 @@ export interface IProduct extends Omit<IProductsForNomaResponse, "values"> {
43
42
  };
44
43
  promotions: IProductPromotionVirtuals[];
45
44
  product_images: ProductImage[];
45
+ created_at: Date;
46
+ updated_at: Date;
46
47
  }
47
48
  export interface IProductSheetsWithIndex {
48
49
  index: number;
@@ -72,9 +72,9 @@ export interface IProductBase {
72
72
  price_sale: number;
73
73
  designation: string;
74
74
  vat_tax_id: string;
75
- compositions: string;
76
- maintenances: string;
77
- attributes: string;
75
+ compositions?: string;
76
+ maintenances?: string;
77
+ attributes?: string;
78
78
  }
79
79
  export interface IRepository {
80
80
  findById(select: IShared.IFindByIdRequest): Promise<IFindCabideByOwnerResponse | null>;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.22.44",
12
+ "version": "0.22.46",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [