@nicefer/types 1.0.27 → 1.0.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.
package/dist/products.js CHANGED
@@ -4,3 +4,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  ;
5
5
  ;
6
6
  ;
7
+ ;
@@ -13,6 +13,7 @@ export interface CategoryType {
13
13
  title: string;
14
14
  type: 'clothes' | 'gifts' | 'perfumes' | 'electric';
15
15
  icon: string;
16
+ hidden?: boolean;
16
17
  categories: Category[];
17
18
  }
18
19
  export interface ProductCategoryInDB {
@@ -1,5 +1,5 @@
1
1
  import { PaymentInDB } from "./payments";
2
- import { ProductCategoryInDB } from "./product-category";
2
+ import { CategoryType, ProductCategoryInDB } from "./product-category";
3
3
  import { RProduct, RSupplier } from "./replenishment";
4
4
  export interface ProductFirstOptionTypeValue {
5
5
  value: string;
@@ -23,7 +23,7 @@ export interface ProductInDB {
23
23
  category: ProductCategoryInDB;
24
24
  brand: string | null | undefined;
25
25
  coverImg?: ProductVariantImage;
26
- type: 'clothes' | 'perfumes';
26
+ type: CategoryType['type'];
27
27
  countries?: string[];
28
28
  /**
29
29
  * Opciones con las que se identificará cada variante de este producto,
@@ -35,6 +35,7 @@ export interface ProductInDB {
35
35
  optionsToSelect: ProductOptionToSelect[];
36
36
  /** Peso en libras */
37
37
  weightLbs?: number;
38
+ /** @deprecated */
38
39
  ccy: PaymentInDB['ccy'];
39
40
  status: 'active' | 'inactive' | 'discontinued';
40
41
  tags: string[];
@@ -65,7 +66,7 @@ export interface ProductVariantInDB {
65
66
  }[];
66
67
  /**
67
68
  * Warehouses dónde está disponible esta variante.
68
- * Cada ```key``` del objeto es el id del warehouse y su valor será {@link ProductVariantWarehouseFK}.
69
+ * Cada ```key``` del objeto es el id del warehouse y su valor será {@link VariantWarehouseFK}.
69
70
  *
70
71
  * @note Se usa esta nueva manera para poder usar los FieldValue (serverTimestamp, etc) de Firestore,
71
72
  * ya que en los arrays no funcionan.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nicefer/types",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "Tipos compartidos para Nicefer",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",