@nomalism-com/types 0.19.14 → 0.19.16

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, ProductPromotionVirtuals, CabideProduct, Cabide } 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 IProductAttribute from '../productAttribute/interface';
4
4
  import * as IProductPart from '../productPart/interface';
5
5
  export type Entity = Product;
@@ -7,6 +7,7 @@ export declare const Route = "product";
7
7
  export declare const UpperName = "Product";
8
8
  export declare const LowerName: string;
9
9
  export type IProductVirtuals = ProductVirtuals;
10
+ export type IProductBaseVirtuals = ProductBaseVirtuals;
10
11
  export type IProductPromotionVirtuals = ProductPromotionVirtuals;
11
12
  interface IFindDetailedResponse extends Entity {
12
13
  unit_of_measure_quantity: UnitOfMeasure;
@@ -21,7 +22,7 @@ interface IFindDetailedResponse extends Entity {
21
22
  vat_tax: VatTax & {
22
23
  vat_tax_zones: VatTaxZone[];
23
24
  };
24
- virtual: IProductVirtuals | null;
25
+ virtual: ProductBaseVirtuals | null;
25
26
  promotions: IProductPromotionVirtuals[];
26
27
  }
27
28
  export interface IEntityExtended extends IFindDetailedResponse {
@@ -182,7 +183,7 @@ export interface ILabelResponse {
182
183
  name: {
183
184
  name: string;
184
185
  } | null;
185
- virtual: ProductVirtuals | null;
186
+ virtual: ProductBaseVirtuals | null;
186
187
  promotion_price: number | null;
187
188
  product_attributes: {
188
189
  value: string;
@@ -21,7 +21,7 @@ export type IStateType = 'Abertos' | 'Fechados';
21
21
  export declare const cabideTypes: string[];
22
22
  export interface IFindByIdResponse extends Entity {
23
23
  product: {
24
- virtual: Pick<Product.IProductVirtuals, 'reference'> | null;
24
+ virtual: Pick<Product.IProductBaseVirtuals, 'reference'> | null;
25
25
  };
26
26
  }
27
27
  export interface ICreateRequest {
@@ -89,6 +89,7 @@ export import ProviderCurrentAccount = Stock.ProviderCurrentAccount;
89
89
  export import VatValidation = Stock.VatValidation;
90
90
  export import Connections = View.Connections;
91
91
  export import Channels = View.Channels;
92
+ export import ProductBaseVirtuals = Stock.ProductBaseVirtuals;
92
93
  export import ProductVirtuals = Stock.ProductVirtuals;
93
94
  export import ProductPromotionVirtuals = Stock.ProductPromotionVirtuals;
94
95
  export import MoloniRequest = Stock.MoloniRequest;
@@ -882,6 +882,14 @@ export type ProductPromotionVirtuals = {
882
882
  exclusive_to_client_id: string | null;
883
883
  exclusive_to_location_id: string | null;
884
884
  };
885
+ export type ProductBaseVirtuals = {
886
+ product_id: string;
887
+ reference: string;
888
+ designation: string;
889
+ price_cost: number;
890
+ price_sale: number;
891
+ last_avg_unit_cost: number;
892
+ };
885
893
  export type ProductVirtuals = {
886
894
  product_id: string;
887
895
  inactive: boolean;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.19.14",
12
+ "version": "0.19.16",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [