@fiado/type-kit 3.579.0 → 3.580.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.
@@ -0,0 +1,23 @@
1
+ import 'reflect-metadata';
2
+ import { InventoryItemStatusEnum, type RenewedReservationLine } from '../../../src/retailCatalog';
3
+ import { WizardLineStatusEnum } from '../../../src/retailWizard';
4
+
5
+ describe('RenewedReservationLine', () => {
6
+ it('acepta una línea renovada sin status ni lostReason', () => {
7
+ const renewed: RenewedReservationLine = { lineId: 'L1', reservationId: 'r', expiresAt: '2026-10-25T00:30:00.000Z' };
8
+ expect(renewed.status).toBeUndefined();
9
+ expect(renewed.lostReason).toBeUndefined();
10
+ });
11
+
12
+ it('acepta una línea marcada LOST con el estado que dejó Central', () => {
13
+ const lost: RenewedReservationLine = {
14
+ lineId: 'L1',
15
+ reservationId: 'r',
16
+ expiresAt: '2026-10-25T00:30:00.000Z',
17
+ status: WizardLineStatusEnum.LOST,
18
+ lostReason: InventoryItemStatusEnum.SOLD,
19
+ };
20
+ expect(lost.status).toBe('LOST');
21
+ expect(lost.lostReason).toBe('SOLD');
22
+ });
23
+ });
@@ -1,8 +1,14 @@
1
+ import type { WizardLineStatusEnum } from '../../../retailWizard/enums/WizardLineStatusEnum';
2
+ import type { InventoryItemStatusEnum } from '../../enums/InventoryItemStatusEnum';
1
3
  /** Vencimiento nuevo de una línea renovada. */
2
4
  export interface RenewedReservationLine {
3
5
  lineId: string;
4
6
  reservationId: string;
5
7
  expiresAt: string;
8
+ /** Solo presente si la renovación no pudo sostener la pieza (LOST). */
9
+ status?: WizardLineStatusEnum;
10
+ /** Solo en LOST: estado en que Central dejó la pieza (SOLD, IN_TRANSIT o DAMAGED). */
11
+ lostReason?: InventoryItemStatusEnum;
6
12
  }
7
13
  /** Response de privateRenewReservations. */
8
14
  export interface RenewReservationsResponse {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.579.0",
3
+ "version": "3.580.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,8 +1,15 @@
1
+ import type { WizardLineStatusEnum } from '../../../retailWizard/enums/WizardLineStatusEnum';
2
+ import type { InventoryItemStatusEnum } from '../../enums/InventoryItemStatusEnum';
3
+
1
4
  /** Vencimiento nuevo de una línea renovada. */
2
5
  export interface RenewedReservationLine {
3
6
  lineId: string;
4
7
  reservationId: string;
5
8
  expiresAt: string;
9
+ /** Solo presente si la renovación no pudo sostener la pieza (LOST). */
10
+ status?: WizardLineStatusEnum;
11
+ /** Solo en LOST: estado en que Central dejó la pieza (SOLD, IN_TRANSIT o DAMAGED). */
12
+ lostReason?: InventoryItemStatusEnum;
6
13
  }
7
14
 
8
15
  /** Response de privateRenewReservations. */