@fiado/type-kit 3.405.0 → 3.406.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,38 @@
1
+ import { ReceptionMethod } from "../enums/ReceptionMethod";
2
+ /**
3
+ * DTOs de la administración de payers desde el backoffice (v1: enabled + override de nombre).
4
+ * La lista de payers la dicta el catálogo UniTeller; la config es un overlay por payerCode.
5
+ * Dueño de la tabla RemittancePayerConfig_GT: remittance-business.
6
+ */
7
+ /** Item de la vista de backoffice (Ops): TODOS los payers del catálogo, también deshabilitados. */
8
+ export declare class RemittancePayerConfigItem {
9
+ payerCode: string;
10
+ countryISO: string;
11
+ /** Nombre efectivo: override de Ops si existe, si no el de UniTeller. */
12
+ name: string;
13
+ /** Nombre original de UniTeller (para mostrar/quitar el override). */
14
+ unirName: string;
15
+ receptionMethods: ReceptionMethod[];
16
+ enabled: boolean;
17
+ /** true si ya existe fila de config para ese payer (false = solo del catálogo). */
18
+ configured: boolean;
19
+ /** Logo de UniTeller, solo lectura (identificación visual en la lista). */
20
+ logoUrl?: string;
21
+ }
22
+ /** Response de GET /backoffice/config/payers (config chica, sin paginación). */
23
+ export declare class RemittancePayerConfigListResponse {
24
+ items: RemittancePayerConfigItem[];
25
+ }
26
+ /** Body de PUT /backoffice/config/payers/{payerCode}. Ambos opcionales (merge con lo existente); name=null quita el override. */
27
+ export declare class RemittancePayerConfigUpdateRequest {
28
+ enabled?: boolean;
29
+ name?: string | null;
30
+ }
31
+ /** Fila cruda de config (endpoint privado → connector, que la mergea al servir el catálogo). */
32
+ export declare class RemittancePayerConfigEntry {
33
+ payerCode: string;
34
+ countryISO: string;
35
+ enabled: boolean;
36
+ name?: string;
37
+ updatedAt: string;
38
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.RemittancePayerConfigEntry = exports.RemittancePayerConfigUpdateRequest = exports.RemittancePayerConfigListResponse = exports.RemittancePayerConfigItem = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /**
15
+ * DTOs de la administración de payers desde el backoffice (v1: enabled + override de nombre).
16
+ * La lista de payers la dicta el catálogo UniTeller; la config es un overlay por payerCode.
17
+ * Dueño de la tabla RemittancePayerConfig_GT: remittance-business.
18
+ */
19
+ /** Item de la vista de backoffice (Ops): TODOS los payers del catálogo, también deshabilitados. */
20
+ class RemittancePayerConfigItem {
21
+ }
22
+ exports.RemittancePayerConfigItem = RemittancePayerConfigItem;
23
+ /** Response de GET /backoffice/config/payers (config chica, sin paginación). */
24
+ class RemittancePayerConfigListResponse {
25
+ }
26
+ exports.RemittancePayerConfigListResponse = RemittancePayerConfigListResponse;
27
+ /** Body de PUT /backoffice/config/payers/{payerCode}. Ambos opcionales (merge con lo existente); name=null quita el override. */
28
+ class RemittancePayerConfigUpdateRequest {
29
+ }
30
+ exports.RemittancePayerConfigUpdateRequest = RemittancePayerConfigUpdateRequest;
31
+ __decorate([
32
+ (0, class_validator_1.IsOptional)(),
33
+ (0, class_validator_1.IsBoolean)(),
34
+ __metadata("design:type", Boolean)
35
+ ], RemittancePayerConfigUpdateRequest.prototype, "enabled", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsOptional)(),
38
+ (0, class_validator_1.IsString)(),
39
+ (0, class_validator_1.Length)(1, 60),
40
+ __metadata("design:type", String)
41
+ ], RemittancePayerConfigUpdateRequest.prototype, "name", void 0);
42
+ /** Fila cruda de config (endpoint privado → connector, que la mergea al servir el catálogo). */
43
+ class RemittancePayerConfigEntry {
44
+ }
45
+ exports.RemittancePayerConfigEntry = RemittancePayerConfigEntry;
@@ -46,5 +46,6 @@ export * from "./RemittanceRule";
46
46
  export * from "./RemittancePricingTable";
47
47
  export * from "./RemittanceExceptionCatalog";
48
48
  export * from "./RemittanceCountryConfig";
49
+ export * from "./RemittancePayerConfig";
49
50
  export * from "./RemittanceFavoriteItem";
50
51
  export * from "./RemittanceFavoriteListResponse";
@@ -62,5 +62,6 @@ __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("./RemittancePayerConfig"), exports);
65
66
  __exportStar(require("./RemittanceFavoriteItem"), exports);
66
67
  __exportStar(require("./RemittanceFavoriteListResponse"), exports);
@@ -5,6 +5,7 @@ export declare enum AuditEntityType {
5
5
  COHORT = "COHORT",
6
6
  COMMITTEE = "COMMITTEE",
7
7
  COUNTRY_CONFIG = "COUNTRY_CONFIG",
8
+ PAYER_CONFIG = "PAYER_CONFIG",
8
9
  SEGMENT = "SEGMENT",
9
10
  PRICING = "PRICING",
10
11
  PROMOTION = "PROMOTION",
@@ -9,6 +9,7 @@ var AuditEntityType;
9
9
  AuditEntityType["COHORT"] = "COHORT";
10
10
  AuditEntityType["COMMITTEE"] = "COMMITTEE";
11
11
  AuditEntityType["COUNTRY_CONFIG"] = "COUNTRY_CONFIG";
12
+ AuditEntityType["PAYER_CONFIG"] = "PAYER_CONFIG";
12
13
  AuditEntityType["SEGMENT"] = "SEGMENT";
13
14
  AuditEntityType["PRICING"] = "PRICING";
14
15
  AuditEntityType["PROMOTION"] = "PROMOTION";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.405.0",
3
+ "version": "3.406.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,50 @@
1
+ import { IsBoolean, IsOptional, IsString, Length } from "class-validator";
2
+ import { ReceptionMethod } from "../enums/ReceptionMethod";
3
+
4
+ /**
5
+ * DTOs de la administración de payers desde el backoffice (v1: enabled + override de nombre).
6
+ * La lista de payers la dicta el catálogo UniTeller; la config es un overlay por payerCode.
7
+ * Dueño de la tabla RemittancePayerConfig_GT: remittance-business.
8
+ */
9
+
10
+ /** Item de la vista de backoffice (Ops): TODOS los payers del catálogo, también deshabilitados. */
11
+ export class RemittancePayerConfigItem {
12
+ payerCode!: string;
13
+ countryISO!: string;
14
+ /** Nombre efectivo: override de Ops si existe, si no el de UniTeller. */
15
+ name!: string;
16
+ /** Nombre original de UniTeller (para mostrar/quitar el override). */
17
+ unirName!: string;
18
+ receptionMethods!: ReceptionMethod[];
19
+ enabled!: boolean;
20
+ /** true si ya existe fila de config para ese payer (false = solo del catálogo). */
21
+ configured!: boolean;
22
+ /** Logo de UniTeller, solo lectura (identificación visual en la lista). */
23
+ logoUrl?: string;
24
+ }
25
+
26
+ /** Response de GET /backoffice/config/payers (config chica, sin paginación). */
27
+ export class RemittancePayerConfigListResponse {
28
+ items!: RemittancePayerConfigItem[];
29
+ }
30
+
31
+ /** Body de PUT /backoffice/config/payers/{payerCode}. Ambos opcionales (merge con lo existente); name=null quita el override. */
32
+ export class RemittancePayerConfigUpdateRequest {
33
+ @IsOptional()
34
+ @IsBoolean()
35
+ enabled?: boolean;
36
+
37
+ @IsOptional()
38
+ @IsString()
39
+ @Length(1, 60)
40
+ name?: string | null;
41
+ }
42
+
43
+ /** Fila cruda de config (endpoint privado → connector, que la mergea al servir el catálogo). */
44
+ export class RemittancePayerConfigEntry {
45
+ payerCode!: string;
46
+ countryISO!: string;
47
+ enabled!: boolean;
48
+ name?: string;
49
+ updatedAt!: string;
50
+ }
@@ -46,5 +46,6 @@ export * from "./RemittanceRule";
46
46
  export * from "./RemittancePricingTable";
47
47
  export * from "./RemittanceExceptionCatalog";
48
48
  export * from "./RemittanceCountryConfig";
49
+ export * from "./RemittancePayerConfig";
49
50
  export * from "./RemittanceFavoriteItem";
50
51
  export * from "./RemittanceFavoriteListResponse";
@@ -5,6 +5,7 @@ export enum AuditEntityType {
5
5
  COHORT = "COHORT",
6
6
  COMMITTEE = "COMMITTEE",
7
7
  COUNTRY_CONFIG = "COUNTRY_CONFIG",
8
+ PAYER_CONFIG = "PAYER_CONFIG",
8
9
  SEGMENT = "SEGMENT",
9
10
  PRICING = "PRICING",
10
11
  PROMOTION = "PROMOTION",