@fiado/type-kit 3.365.0 → 3.366.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,27 @@
1
+ import type { WizardSessionLookupStatusEnum } from '../enums/WizardSessionLookupStatusEnum';
2
+ import type { WizardStateEnum } from '../enums/WizardStateEnum';
3
+ import type { WizardStepEnum } from '../enums/WizardStepEnum';
4
+ /**
5
+ * Una entrada del lote de sesiones del wizard: traduce un `wizardSessionId` a la tienda, el cliente
6
+ * y el equipo de esa venta. Campo AUSENTE = «no lo se»; presente en `null` = dato afirmado como nulo.
7
+ */
8
+ export interface WizardSessionLookupEntry {
9
+ wizardSessionId: string;
10
+ status: WizardSessionLookupStatusEnum;
11
+ /** Todos los campos de abajo viajan SOLO con `status: OK`. */
12
+ retailerId?: string;
13
+ storeId?: string;
14
+ /** `null` mientras el KYC no haya dado de alta al cliente. */
15
+ retailCustomerId?: string | null;
16
+ state?: WizardStateEnum;
17
+ currentStep?: WizardStepEnum;
18
+ /** SKU del equipo reservado; `null` si la venta no llego al paso del producto. */
19
+ sku?: string | null;
20
+ /** Ficha comercial CONGELADA al reservar. `null` si no hay equipo reservado. */
21
+ productBrand?: string | null;
22
+ productModel?: string | null;
23
+ productCapacity?: string | null;
24
+ /** La venta que cerro esta sesion; `null` si todavia no cerro. */
25
+ saleId?: string | null;
26
+ folio?: string | null;
27
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import type { WizardSessionLookupEntry } from '../WizardSessionLookupEntry';
2
+ /**
3
+ * `GET /private/wizard-sessions/batch` — una entrada por cada id pedido, en el MISMO orden.
4
+ * `unavailableCount` hace ruidoso el resultado parcial: sin el, el caller no sabe que le falto algo.
5
+ */
6
+ export interface WizardSessionLookupResponse {
7
+ items: WizardSessionLookupEntry[];
8
+ unavailableCount: number;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Como se resolvio cada id pedido a `GET /private/wizard-sessions/batch`. Hay una entrada por id.
3
+ * `NOT_FOUND` y `UNAVAILABLE` NO son lo mismo: colapsarlos afirma «no tiene» cuando fue «no se leyo».
4
+ */
5
+ export declare enum WizardSessionLookupStatusEnum {
6
+ /** La sesion existe y se leyo completa. */
7
+ OK = "OK",
8
+ /** No existe esa sesion en el silo. Es un dato POSITIVO, no una ausencia. */
9
+ NOT_FOUND = "NOT_FOUND",
10
+ /** No se pudo leer esa sesion. El caller reintenta SOLO ese id. */
11
+ UNAVAILABLE = "UNAVAILABLE",
12
+ /** Ese id no tiene forma de id. Reintentarlo nunca va a servir: el caller lo mando mal. */
13
+ INVALID_ID = "INVALID_ID"
14
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WizardSessionLookupStatusEnum = void 0;
4
+ /**
5
+ * Como se resolvio cada id pedido a `GET /private/wizard-sessions/batch`. Hay una entrada por id.
6
+ * `NOT_FOUND` y `UNAVAILABLE` NO son lo mismo: colapsarlos afirma «no tiene» cuando fue «no se leyo».
7
+ */
8
+ var WizardSessionLookupStatusEnum;
9
+ (function (WizardSessionLookupStatusEnum) {
10
+ /** La sesion existe y se leyo completa. */
11
+ WizardSessionLookupStatusEnum["OK"] = "OK";
12
+ /** No existe esa sesion en el silo. Es un dato POSITIVO, no una ausencia. */
13
+ WizardSessionLookupStatusEnum["NOT_FOUND"] = "NOT_FOUND";
14
+ /** No se pudo leer esa sesion. El caller reintenta SOLO ese id. */
15
+ WizardSessionLookupStatusEnum["UNAVAILABLE"] = "UNAVAILABLE";
16
+ /** Ese id no tiene forma de id. Reintentarlo nunca va a servir: el caller lo mando mal. */
17
+ WizardSessionLookupStatusEnum["INVALID_ID"] = "INVALID_ID";
18
+ })(WizardSessionLookupStatusEnum || (exports.WizardSessionLookupStatusEnum = WizardSessionLookupStatusEnum = {}));
@@ -121,3 +121,6 @@ export * from './events/SaleCancelledV1';
121
121
  export * from './events/SaleCompletedV2';
122
122
  export * from './events/SaleCancelledV2';
123
123
  export * from './events/SessionExpiredV1';
124
+ export * from './enums/WizardSessionLookupStatusEnum';
125
+ export * from './dtos/WizardSessionLookupEntry';
126
+ export * from './dtos/responses/WizardSessionLookupResponse';
@@ -152,3 +152,7 @@ __exportStar(require("./events/SaleCancelledV1"), exports);
152
152
  __exportStar(require("./events/SaleCompletedV2"), exports);
153
153
  __exportStar(require("./events/SaleCancelledV2"), exports);
154
154
  __exportStar(require("./events/SessionExpiredV1"), exports);
155
+ // Lookup privado por lote (GET /private/wizard-sessions/batch)
156
+ __exportStar(require("./enums/WizardSessionLookupStatusEnum"), exports);
157
+ __exportStar(require("./dtos/WizardSessionLookupEntry"), exports);
158
+ __exportStar(require("./dtos/responses/WizardSessionLookupResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.365.0",
3
+ "version": "3.366.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,28 @@
1
+ import type { WizardSessionLookupStatusEnum } from '../enums/WizardSessionLookupStatusEnum';
2
+ import type { WizardStateEnum } from '../enums/WizardStateEnum';
3
+ import type { WizardStepEnum } from '../enums/WizardStepEnum';
4
+
5
+ /**
6
+ * Una entrada del lote de sesiones del wizard: traduce un `wizardSessionId` a la tienda, el cliente
7
+ * y el equipo de esa venta. Campo AUSENTE = «no lo se»; presente en `null` = dato afirmado como nulo.
8
+ */
9
+ export interface WizardSessionLookupEntry {
10
+ wizardSessionId: string;
11
+ status: WizardSessionLookupStatusEnum;
12
+ /** Todos los campos de abajo viajan SOLO con `status: OK`. */
13
+ retailerId?: string;
14
+ storeId?: string;
15
+ /** `null` mientras el KYC no haya dado de alta al cliente. */
16
+ retailCustomerId?: string | null;
17
+ state?: WizardStateEnum;
18
+ currentStep?: WizardStepEnum;
19
+ /** SKU del equipo reservado; `null` si la venta no llego al paso del producto. */
20
+ sku?: string | null;
21
+ /** Ficha comercial CONGELADA al reservar. `null` si no hay equipo reservado. */
22
+ productBrand?: string | null;
23
+ productModel?: string | null;
24
+ productCapacity?: string | null;
25
+ /** La venta que cerro esta sesion; `null` si todavia no cerro. */
26
+ saleId?: string | null;
27
+ folio?: string | null;
28
+ }
@@ -0,0 +1,10 @@
1
+ import type { WizardSessionLookupEntry } from '../WizardSessionLookupEntry';
2
+
3
+ /**
4
+ * `GET /private/wizard-sessions/batch` — una entrada por cada id pedido, en el MISMO orden.
5
+ * `unavailableCount` hace ruidoso el resultado parcial: sin el, el caller no sabe que le falto algo.
6
+ */
7
+ export interface WizardSessionLookupResponse {
8
+ items: WizardSessionLookupEntry[];
9
+ unavailableCount: number;
10
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Como se resolvio cada id pedido a `GET /private/wizard-sessions/batch`. Hay una entrada por id.
3
+ * `NOT_FOUND` y `UNAVAILABLE` NO son lo mismo: colapsarlos afirma «no tiene» cuando fue «no se leyo».
4
+ */
5
+ export enum WizardSessionLookupStatusEnum {
6
+ /** La sesion existe y se leyo completa. */
7
+ OK = 'OK',
8
+ /** No existe esa sesion en el silo. Es un dato POSITIVO, no una ausencia. */
9
+ NOT_FOUND = 'NOT_FOUND',
10
+ /** No se pudo leer esa sesion. El caller reintenta SOLO ese id. */
11
+ UNAVAILABLE = 'UNAVAILABLE',
12
+ /** Ese id no tiene forma de id. Reintentarlo nunca va a servir: el caller lo mando mal. */
13
+ INVALID_ID = 'INVALID_ID',
14
+ }
@@ -148,3 +148,8 @@ export * from './events/SaleCancelledV1';
148
148
  export * from './events/SaleCompletedV2';
149
149
  export * from './events/SaleCancelledV2';
150
150
  export * from './events/SessionExpiredV1';
151
+
152
+ // Lookup privado por lote (GET /private/wizard-sessions/batch)
153
+ export * from './enums/WizardSessionLookupStatusEnum';
154
+ export * from './dtos/WizardSessionLookupEntry';
155
+ export * from './dtos/responses/WizardSessionLookupResponse';