@fiado/type-kit 3.468.0 → 3.469.0

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.
@@ -19,6 +19,16 @@ describe('retailCatalog — campos nuevos opcionales en respuestas', () => {
19
19
  expect(item.itemType).toBe('PRODUCT');
20
20
  });
21
21
 
22
+ it('StoreCatalogItem acepta description y sigue válido sin ella', () => {
23
+ const kit: Pick<RetailCatalog.StoreCatalogItem, 'sku' | 'description'> = {
24
+ sku: 'KIT-1',
25
+ description: 'Kit de arranque',
26
+ };
27
+ const plain: Pick<RetailCatalog.StoreCatalogItem, 'sku' | 'description'> = { sku: 'SKU-1' };
28
+ expect(kit.description).toBe('Kit de arranque');
29
+ expect(plain.description).toBeUndefined();
30
+ });
31
+
22
32
  it('la fila del lente en modo lista acepta itemType', () => {
23
33
  const row: Pick<RetailCatalog.InventoryLensListItem, 'sku' | 'itemType'> = {
24
34
  sku: 'SKU-1',
@@ -27,6 +27,8 @@ export interface StoreCatalogItem {
27
27
  components?: ProductComponent[];
28
28
  /** Producto físico o servicio. Ausente = PRODUCT. */
29
29
  itemType?: ItemTypeEnum;
30
+ /** Nombre visible para kits y servicios, que no tienen marca/modelo. */
31
+ description?: string;
30
32
  }
31
33
  /** Response de privateGetStoreStockCatalog. */
32
34
  export type GetStoreStockCatalogResponse = StoreCatalogItem[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.468.0",
3
+ "version": "3.469.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -28,6 +28,8 @@ export interface StoreCatalogItem {
28
28
  components?: ProductComponent[];
29
29
  /** Producto físico o servicio. Ausente = PRODUCT. */
30
30
  itemType?: ItemTypeEnum;
31
+ /** Nombre visible para kits y servicios, que no tienen marca/modelo. */
32
+ description?: string;
31
33
  }
32
34
 
33
35
  /** Response de privateGetStoreStockCatalog. */