@fiado/type-kit 3.310.0 → 3.310.1

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,44 @@
1
+ import { ReceptionMethod } from "../enums/ReceptionMethod";
2
+ import { RemittanceCountryISO } from "../enums/RemittanceCountryISO";
3
+ /**
4
+ * Estado del beneficiario tal como lo ve el listado de favoritos de remesa.
5
+ * `UNKNOWN` = no se pudo enriquecer (el connector no respondió, o respondió y ese
6
+ * beneficiario no vino en su lista — favorito huérfano).
7
+ */
8
+ export type RemittanceFavoriteStatus = "ACTIVE" | "DEACTIVATED" | "UNKNOWN";
9
+ /**
10
+ * Ítem de `GET /remittance/favorites`. Shape PLANO: mezcla lo propio de
11
+ * benefits-marketplace (alias, foto, orden, uso) con los datos vivos del beneficiario
12
+ * que devuelve uniteller-connector.
13
+ *
14
+ * Los campos del beneficiario son opcionales porque el listado degrada al snapshot
15
+ * denormalizado local cuando el connector no está disponible (`enriched: false`).
16
+ */
17
+ export declare class RemittanceFavoriteItem {
18
+ id: string;
19
+ alias: string | null;
20
+ photo: string | null;
21
+ position: number;
22
+ usageCount: number;
23
+ lastUsedAt: number;
24
+ /** Handle opaco de UNIR. Viaja en claro, igual que en `FavoriteItem`. */
25
+ beneficiaryId: string;
26
+ firstName?: string;
27
+ middleName?: string;
28
+ lastName?: string;
29
+ secondLastName?: string;
30
+ phone?: string;
31
+ countryISO?: RemittanceCountryISO;
32
+ currencyISO?: string;
33
+ receptionMethod?: ReceptionMethod;
34
+ payerCode?: string;
35
+ payerName?: string;
36
+ payerBranchCode?: string;
37
+ payerBranchName?: string;
38
+ /** Cuenta completa para display (pedido de producto 2026-08-11). */
39
+ accNumber?: string;
40
+ accNumberLastFour?: string;
41
+ status: RemittanceFavoriteStatus;
42
+ /** `false` cuando el item se sirve solo con el snapshot denormalizado local. */
43
+ enriched: boolean;
44
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RemittanceFavoriteItem = void 0;
4
+ /**
5
+ * Ítem de `GET /remittance/favorites`. Shape PLANO: mezcla lo propio de
6
+ * benefits-marketplace (alias, foto, orden, uso) con los datos vivos del beneficiario
7
+ * que devuelve uniteller-connector.
8
+ *
9
+ * Los campos del beneficiario son opcionales porque el listado degrada al snapshot
10
+ * denormalizado local cuando el connector no está disponible (`enriched: false`).
11
+ */
12
+ class RemittanceFavoriteItem {
13
+ }
14
+ exports.RemittanceFavoriteItem = RemittanceFavoriteItem;
@@ -0,0 +1,14 @@
1
+ import { RemittanceFavoriteItem } from "./RemittanceFavoriteItem";
2
+ /**
3
+ * Respuesta de `GET /remittance/favorites`.
4
+ *
5
+ * `totalActive` / `maxActive` son el cupo de beneficiarios de UniTeller: son
6
+ * GLOBALES del usuario y NO se ven afectados por el filtro `countryISO` — sirven
7
+ * para que el front sepa si puede dar de alta otro beneficiario. Ambos quedan
8
+ * ausentes si el connector no respondió.
9
+ */
10
+ export declare class RemittanceFavoriteListResponse {
11
+ items: RemittanceFavoriteItem[];
12
+ totalActive?: number;
13
+ maxActive?: number;
14
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RemittanceFavoriteListResponse = void 0;
4
+ /**
5
+ * Respuesta de `GET /remittance/favorites`.
6
+ *
7
+ * `totalActive` / `maxActive` son el cupo de beneficiarios de UniTeller: son
8
+ * GLOBALES del usuario y NO se ven afectados por el filtro `countryISO` — sirven
9
+ * para que el front sepa si puede dar de alta otro beneficiario. Ambos quedan
10
+ * ausentes si el connector no respondió.
11
+ */
12
+ class RemittanceFavoriteListResponse {
13
+ }
14
+ exports.RemittanceFavoriteListResponse = RemittanceFavoriteListResponse;
@@ -46,3 +46,5 @@ export * from "./RemittanceRule";
46
46
  export * from "./RemittancePricingTable";
47
47
  export * from "./RemittanceExceptionCatalog";
48
48
  export * from "./RemittanceCountryConfig";
49
+ export * from "./RemittanceFavoriteItem";
50
+ export * from "./RemittanceFavoriteListResponse";
@@ -62,3 +62,5 @@ __exportStar(require("./RemittanceRule"), exports);
62
62
  __exportStar(require("./RemittancePricingTable"), exports);
63
63
  __exportStar(require("./RemittanceExceptionCatalog"), exports);
64
64
  __exportStar(require("./RemittanceCountryConfig"), exports);
65
+ __exportStar(require("./RemittanceFavoriteItem"), exports);
66
+ __exportStar(require("./RemittanceFavoriteListResponse"), exports);
@@ -7,5 +7,6 @@ export declare enum RemittanceCountryISO {
7
7
  GT = "GT",
8
8
  SV = "SV",
9
9
  HN = "HN",
10
+ NI = "NI",
10
11
  MX = "MX"
11
12
  }
@@ -11,5 +11,6 @@ var RemittanceCountryISO;
11
11
  RemittanceCountryISO["GT"] = "GT";
12
12
  RemittanceCountryISO["SV"] = "SV";
13
13
  RemittanceCountryISO["HN"] = "HN";
14
+ RemittanceCountryISO["NI"] = "NI";
14
15
  RemittanceCountryISO["MX"] = "MX";
15
16
  })(RemittanceCountryISO || (exports.RemittanceCountryISO = RemittanceCountryISO = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.310.0",
3
+ "version": "3.310.1",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,51 @@
1
+ import { ReceptionMethod } from "../enums/ReceptionMethod";
2
+ import { RemittanceCountryISO } from "../enums/RemittanceCountryISO";
3
+
4
+ /**
5
+ * Estado del beneficiario tal como lo ve el listado de favoritos de remesa.
6
+ * `UNKNOWN` = no se pudo enriquecer (el connector no respondió, o respondió y ese
7
+ * beneficiario no vino en su lista — favorito huérfano).
8
+ */
9
+ export type RemittanceFavoriteStatus = "ACTIVE" | "DEACTIVATED" | "UNKNOWN";
10
+
11
+ /**
12
+ * Ítem de `GET /remittance/favorites`. Shape PLANO: mezcla lo propio de
13
+ * benefits-marketplace (alias, foto, orden, uso) con los datos vivos del beneficiario
14
+ * que devuelve uniteller-connector.
15
+ *
16
+ * Los campos del beneficiario son opcionales porque el listado degrada al snapshot
17
+ * denormalizado local cuando el connector no está disponible (`enriched: false`).
18
+ */
19
+ export class RemittanceFavoriteItem {
20
+ // ─── Propios de benefits-marketplace (tabla BenefitFavorite_GT) ───
21
+ id!: string;
22
+ alias!: string | null;
23
+ photo!: string | null;
24
+ position!: number;
25
+ usageCount!: number;
26
+ lastUsedAt!: number;
27
+
28
+ // ─── Del beneficiario (uniteller-connector vía api-invoker) ───
29
+ /** Handle opaco de UNIR. Viaja en claro, igual que en `FavoriteItem`. */
30
+ beneficiaryId!: string;
31
+ firstName?: string;
32
+ middleName?: string;
33
+ lastName?: string;
34
+ secondLastName?: string;
35
+ phone?: string;
36
+ countryISO?: RemittanceCountryISO;
37
+ currencyISO?: string;
38
+ receptionMethod?: ReceptionMethod;
39
+ payerCode?: string;
40
+ payerName?: string;
41
+ payerBranchCode?: string;
42
+ payerBranchName?: string;
43
+ /** Cuenta completa para display (pedido de producto 2026-08-11). */
44
+ accNumber?: string;
45
+ accNumberLastFour?: string;
46
+
47
+ // ─── Meta ───
48
+ status!: RemittanceFavoriteStatus;
49
+ /** `false` cuando el item se sirve solo con el snapshot denormalizado local. */
50
+ enriched!: boolean;
51
+ }
@@ -0,0 +1,15 @@
1
+ import { RemittanceFavoriteItem } from "./RemittanceFavoriteItem";
2
+
3
+ /**
4
+ * Respuesta de `GET /remittance/favorites`.
5
+ *
6
+ * `totalActive` / `maxActive` son el cupo de beneficiarios de UniTeller: son
7
+ * GLOBALES del usuario y NO se ven afectados por el filtro `countryISO` — sirven
8
+ * para que el front sepa si puede dar de alta otro beneficiario. Ambos quedan
9
+ * ausentes si el connector no respondió.
10
+ */
11
+ export class RemittanceFavoriteListResponse {
12
+ items!: RemittanceFavoriteItem[];
13
+ totalActive?: number;
14
+ maxActive?: number;
15
+ }
@@ -46,3 +46,5 @@ export * from "./RemittanceRule";
46
46
  export * from "./RemittancePricingTable";
47
47
  export * from "./RemittanceExceptionCatalog";
48
48
  export * from "./RemittanceCountryConfig";
49
+ export * from "./RemittanceFavoriteItem";
50
+ export * from "./RemittanceFavoriteListResponse";
@@ -7,5 +7,6 @@ export enum RemittanceCountryISO {
7
7
  GT = "GT",
8
8
  SV = "SV",
9
9
  HN = "HN",
10
+ NI = "NI",
10
11
  MX = "MX",
11
12
  }