@nomalism-com/types 0.22.27 → 0.22.29

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, Cabide } from "../../../shared/entities";
2
+ import { Attribute, Product, ProductName, UnitOfMeasure, ProductSubCategory, ProductCategory, TypeOfInventory, ProductImage, VatTax, VatTaxZone, ProductVirtuals, ProductBaseVirtuals, ProductPromotionVirtuals, CabideProduct } 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,9 +12,6 @@ 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;
18
15
  virtual: ProductBaseVirtuals | null;
19
16
  }
20
17
  export interface IEntityWithStock extends Entity {
@@ -33,9 +30,6 @@ export interface IEntityWithStock extends Entity {
33
30
  promotions: IProductPromotionVirtuals[];
34
31
  product_images: ProductImage[];
35
32
  product_parts: IProductPart.IFindByRefProduct[];
36
- cabide_product: (CabideProduct & {
37
- cabide: Cabide;
38
- }) | null;
39
33
  extended_virtual: ProductVirtuals | null;
40
34
  }
41
35
  export interface IEntityMinified {
@@ -1,7 +1,6 @@
1
- import { CabideProduct } from '../../../shared/entities';
2
- import * as IShared from '../../../shared/interface';
3
- import * as Attribute from '../../stock/attribute/interfaces';
4
- import * as Product from '../../stock/product/interface';
1
+ import { CabideProduct } from "../../../shared/entities";
2
+ import * as IShared from "../../../shared/interface";
3
+ import * as Attribute from "../../stock/attribute/interfaces";
5
4
  export type Entity = CabideProduct;
6
5
  export declare const Route = "cabide_product";
7
6
  export declare const UpperName = "CabideProduct";
@@ -65,11 +64,6 @@ export interface IFindCabideByOwnerResponse extends Entity {
65
64
  maintenance_assocs: number;
66
65
  };
67
66
  }[];
68
- cabide_product: {
69
- _count: {
70
- cabide_order_products: number;
71
- };
72
- } | null;
73
67
  _count: {
74
68
  product_attributes: number;
75
69
  };
@@ -88,10 +82,8 @@ export interface IRepository {
88
82
  findById(select: IShared.IFindByIdRequest): Promise<IFindCabideByOwnerResponse | null>;
89
83
  findByOwner(selector: IShared.IFindByOwnerIdRequest): Promise<IFindCabideByOwnerResponse[]>;
90
84
  findByOwnerPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
91
- findProductByCabideProductId(selector: IShared.IFindByIdRequest): Promise<Product.IEntityFromCabide[]>;
92
85
  create(data: ICreateRequest): Promise<Entity>;
93
86
  update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
94
- createProductByCabideProductId(data: ICreateProductByCabideProductIdRequest): Promise<Product.IEntityFromCabide>;
95
87
  deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
96
88
  }
97
89
  export type IController = IShared.IEntityWithUserToken<IRepository>;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.22.27",
12
+ "version": "0.22.29",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [