@fiado/type-kit 3.259.0 → 3.260.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.
Files changed (33) hide show
  1. package/bin/helpdesk/dtos/ZendeskInternalAlertRequest.d.ts +18 -0
  2. package/bin/{walletFunding/dtos/CancelFundingReferenceRequest.js → helpdesk/dtos/ZendeskInternalAlertRequest.js} +18 -16
  3. package/bin/helpdesk/enums/InternalAlertChannelEnum.d.ts +7 -0
  4. package/bin/helpdesk/enums/InternalAlertChannelEnum.js +11 -0
  5. package/bin/helpdesk/enums/ZendeskAlertKindEnum.d.ts +7 -0
  6. package/bin/helpdesk/enums/ZendeskAlertKindEnum.js +11 -0
  7. package/bin/helpdesk/index.d.ts +4 -0
  8. package/bin/helpdesk/index.js +5 -0
  9. package/bin/helpdesk/interfaces/IZendeskAlertMessage.d.ts +6 -0
  10. package/bin/helpdesk/interfaces/IZendeskAlertMessage.js +2 -0
  11. package/bin/loanCredit/dtos/requests/UpdateActivationChecklistRequest.d.ts +11 -0
  12. package/bin/loanCredit/dtos/requests/UpdateActivationChecklistRequest.js +46 -0
  13. package/bin/loanCredit/enums/ClientLevelEnum.d.ts +11 -0
  14. package/bin/loanCredit/enums/ClientLevelEnum.js +15 -0
  15. package/package.json +1 -1
  16. package/src/helpdesk/dtos/ZendeskInternalAlertRequest.ts +31 -0
  17. package/src/helpdesk/enums/InternalAlertChannelEnum.ts +7 -0
  18. package/src/helpdesk/enums/ZendeskAlertKindEnum.ts +7 -0
  19. package/src/helpdesk/index.ts +7 -1
  20. package/src/helpdesk/interfaces/IZendeskAlertMessage.ts +7 -0
  21. package/bin/benefitCenter/enums/BenefitFlowEnum.d.ts +0 -11
  22. package/bin/benefitCenter/enums/BenefitFlowEnum.js +0 -15
  23. package/bin/places/dtos/CashInFeeDto.d.ts +0 -17
  24. package/bin/places/dtos/CashInFeeDto.js +0 -12
  25. package/bin/platformRbac/dtos/CompleteMyProfileRequest.d.ts +0 -9
  26. package/bin/platformRbac/dtos/CompleteMyProfileRequest.js +0 -34
  27. package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +0 -14
  28. package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +0 -15
  29. package/bin/walletFunding/dtos/CancelFundingReferenceResponse.js +0 -13
  30. package/bin/walletFunding/dtos/CancelWalletFundingRequest.d.ts +0 -3
  31. package/bin/walletFunding/dtos/CancelWalletFundingRequest.js +0 -21
  32. package/bin/walletFunding/dtos/CancelWalletFundingResponse.d.ts +0 -7
  33. package/bin/walletFunding/dtos/CancelWalletFundingResponse.js +0 -6
@@ -0,0 +1,18 @@
1
+ import { InternalAlertChannel } from "../enums/InternalAlertChannelEnum";
2
+ /**
3
+ * Alerta interna sobre un usuario. Se publica en la cola de alertamiento y zendesk-business
4
+ * la convierte en una nota interna de Zendesk: solo la ven los agentes, el usuario nunca.
5
+ *
6
+ * El asunto del ticket lo genera zendesk-business — es el único campo que el usuario podría
7
+ * llegar a ver, así que no lo escribe el caller.
8
+ */
9
+ export declare class ZendeskInternalAlertRequest {
10
+ /** Usuario sobre el que se alerta. */
11
+ directoryId: string;
12
+ /** Detalle del problema. Acá va lo sensible: es lo que se escribe como nota interna. */
13
+ note: string;
14
+ /** Decide el ruteo en Zendesk (tag, vista y equipo). */
15
+ channel: InternalAlertChannel;
16
+ /** Id del evento origen, para rastrear la alerta de vuelta. */
17
+ reference?: string;
18
+ }
@@ -9,33 +9,35 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CancelFundingReferenceRequest = void 0;
12
+ exports.ZendeskInternalAlertRequest = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ const InternalAlertChannelEnum_1 = require("../enums/InternalAlertChannelEnum");
14
15
  /**
15
- * Body para cancelar una referencia de funding ya creada. La referencia/fundingId
16
- * viaja en la URL (`/funding/{moduleName}/{fundingId}/cancel`); este body aporta
17
- * el contexto del solicitante + idempotencia.
16
+ * Alerta interna sobre un usuario. Se publica en la cola de alertamiento y zendesk-business
17
+ * la convierte en una nota interna de Zendesk: solo la ven los agentes, el usuario nunca.
18
18
  *
19
- * NOTA: shape inferido desde el uso en `@fiado/api-invoker`
20
- * (benefits-marketplace / equality-connector) confirmar con el dueño del
21
- * módulo walletFunding / el lambda equality-connector que implementa el cancel.
19
+ * El asunto del ticket lo genera zendesk-business — es el único campo que el usuario podría
20
+ * llegar a ver, así que no lo escribe el caller.
22
21
  */
23
- class CancelFundingReferenceRequest {
22
+ class ZendeskInternalAlertRequest {
24
23
  }
25
- exports.CancelFundingReferenceRequest = CancelFundingReferenceRequest;
24
+ exports.ZendeskInternalAlertRequest = ZendeskInternalAlertRequest;
26
25
  __decorate([
26
+ (0, class_validator_1.IsNotEmpty)(),
27
27
  (0, class_validator_1.IsString)(),
28
- (0, class_validator_1.MaxLength)(64),
29
28
  __metadata("design:type", String)
30
- ], CancelFundingReferenceRequest.prototype, "directoryId", void 0);
29
+ ], ZendeskInternalAlertRequest.prototype, "directoryId", void 0);
31
30
  __decorate([
32
- (0, class_validator_1.IsOptional)(),
31
+ (0, class_validator_1.IsNotEmpty)(),
33
32
  (0, class_validator_1.IsString)(),
34
- (0, class_validator_1.MaxLength)(256),
35
33
  __metadata("design:type", String)
36
- ], CancelFundingReferenceRequest.prototype, "reason", void 0);
34
+ ], ZendeskInternalAlertRequest.prototype, "note", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsEnum)(InternalAlertChannelEnum_1.InternalAlertChannel),
37
+ __metadata("design:type", String)
38
+ ], ZendeskInternalAlertRequest.prototype, "channel", void 0);
37
39
  __decorate([
38
40
  (0, class_validator_1.IsString)(),
39
- (0, class_validator_1.MaxLength)(64),
41
+ (0, class_validator_1.IsOptional)(),
40
42
  __metadata("design:type", String)
41
- ], CancelFundingReferenceRequest.prototype, "idempotencyKey", void 0);
43
+ ], ZendeskInternalAlertRequest.prototype, "reference", void 0);
@@ -0,0 +1,7 @@
1
+ /** Canal de una alerta interna: decide el ruteo dentro de Zendesk (tag, vista y equipo). */
2
+ export declare enum InternalAlertChannel {
3
+ /** Alertas operativas que resuelve el equipo interno sin involucrar al usuario. */
4
+ INTERNAL = "INTERNAL",
5
+ /** Alertas de cumplimiento regulatorio. El usuario no puede enterarse. */
6
+ COMPLIANCE = "COMPLIANCE"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InternalAlertChannel = void 0;
4
+ /** Canal de una alerta interna: decide el ruteo dentro de Zendesk (tag, vista y equipo). */
5
+ var InternalAlertChannel;
6
+ (function (InternalAlertChannel) {
7
+ /** Alertas operativas que resuelve el equipo interno sin involucrar al usuario. */
8
+ InternalAlertChannel["INTERNAL"] = "INTERNAL";
9
+ /** Alertas de cumplimiento regulatorio. El usuario no puede enterarse. */
10
+ InternalAlertChannel["COMPLIANCE"] = "COMPLIANCE";
11
+ })(InternalAlertChannel || (exports.InternalAlertChannel = InternalAlertChannel = {}));
@@ -0,0 +1,7 @@
1
+ /** Discrimina qué transporta un mensaje de la cola de alertamiento de Zendesk. */
2
+ export declare enum ZendeskAlertKind {
3
+ /** Nota interna en un ticket: solo la ven los agentes. */
4
+ INTERNAL_NOTE = "INTERNAL_NOTE",
5
+ /** Mensaje proactivo al chat del usuario. */
6
+ PROACTIVE_MESSAGE = "PROACTIVE_MESSAGE"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ZendeskAlertKind = void 0;
4
+ /** Discrimina qué transporta un mensaje de la cola de alertamiento de Zendesk. */
5
+ var ZendeskAlertKind;
6
+ (function (ZendeskAlertKind) {
7
+ /** Nota interna en un ticket: solo la ven los agentes. */
8
+ ZendeskAlertKind["INTERNAL_NOTE"] = "INTERNAL_NOTE";
9
+ /** Mensaje proactivo al chat del usuario. */
10
+ ZendeskAlertKind["PROACTIVE_MESSAGE"] = "PROACTIVE_MESSAGE";
11
+ })(ZendeskAlertKind || (exports.ZendeskAlertKind = ZendeskAlertKind = {}));
@@ -1,2 +1,6 @@
1
1
  export * from './dtos/HelpdeskCreateUserRequest';
2
2
  export * from './dtos/HelpdeskCreateTicketRequest';
3
+ export * from './dtos/ZendeskInternalAlertRequest';
4
+ export * from './enums/InternalAlertChannelEnum';
5
+ export * from './enums/ZendeskAlertKindEnum';
6
+ export * from './interfaces/IZendeskAlertMessage';
@@ -16,3 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./dtos/HelpdeskCreateUserRequest"), exports);
18
18
  __exportStar(require("./dtos/HelpdeskCreateTicketRequest"), exports);
19
+ // Alertamiento interno (cola de Zendesk)
20
+ __exportStar(require("./dtos/ZendeskInternalAlertRequest"), exports);
21
+ __exportStar(require("./enums/InternalAlertChannelEnum"), exports);
22
+ __exportStar(require("./enums/ZendeskAlertKindEnum"), exports);
23
+ __exportStar(require("./interfaces/IZendeskAlertMessage"), exports);
@@ -0,0 +1,6 @@
1
+ import { ZendeskAlertKind } from "../enums/ZendeskAlertKindEnum";
2
+ /** Sobre de un mensaje de la cola de alertamiento: `kind` decide cómo interpretar `payload`. */
3
+ export interface IZendeskAlertMessage<TPayload = unknown> {
4
+ kind: ZendeskAlertKind;
5
+ payload: TPayload;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Body de PUT /credits/:creditId/checklist (loan-credit-business). Marca condiciones de activación
3
+ * cumplidas. Solo se mandan las que cambian; en F3 las marcarán los flujos de firma de contrato
4
+ * (`downPayment` + `contractSigned`) y de enrolamiento MDM (`imeiEnrolled` + `lockVerified`).
5
+ */
6
+ export declare class UpdateActivationChecklistRequest {
7
+ downPayment?: boolean;
8
+ contractSigned?: boolean;
9
+ imeiEnrolled?: boolean;
10
+ lockVerified?: boolean;
11
+ }
@@ -0,0 +1,46 @@
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.UpdateActivationChecklistRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ /**
16
+ * Body de PUT /credits/:creditId/checklist (loan-credit-business). Marca condiciones de activación
17
+ * cumplidas. Solo se mandan las que cambian; en F3 las marcarán los flujos de firma de contrato
18
+ * (`downPayment` + `contractSigned`) y de enrolamiento MDM (`imeiEnrolled` + `lockVerified`).
19
+ */
20
+ class UpdateActivationChecklistRequest {
21
+ }
22
+ exports.UpdateActivationChecklistRequest = UpdateActivationChecklistRequest;
23
+ __decorate([
24
+ (0, class_transformer_1.Expose)(),
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_validator_1.IsBoolean)(),
27
+ __metadata("design:type", Boolean)
28
+ ], UpdateActivationChecklistRequest.prototype, "downPayment", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsBoolean)(),
33
+ __metadata("design:type", Boolean)
34
+ ], UpdateActivationChecklistRequest.prototype, "contractSigned", void 0);
35
+ __decorate([
36
+ (0, class_transformer_1.Expose)(),
37
+ (0, class_validator_1.IsOptional)(),
38
+ (0, class_validator_1.IsBoolean)(),
39
+ __metadata("design:type", Boolean)
40
+ ], UpdateActivationChecklistRequest.prototype, "imeiEnrolled", void 0);
41
+ __decorate([
42
+ (0, class_transformer_1.Expose)(),
43
+ (0, class_validator_1.IsOptional)(),
44
+ (0, class_validator_1.IsBoolean)(),
45
+ __metadata("design:type", Boolean)
46
+ ], UpdateActivationChecklistRequest.prototype, "lockVerified", void 0);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Nivel del cliente según su SCI (M7/05_MOTOR §3.2): 21-60 Bronce · 61-80 Plata · 81-100 Oro.
3
+ * Distinto de `CreditPlanLevelEnum` de loanOfferings (que además tiene `ALL` para planes):
4
+ * un CLIENTE nunca es `ALL`.
5
+ * @enum {string}
6
+ */
7
+ export declare enum ClientLevelEnum {
8
+ BRONZE = "BRONZE",
9
+ SILVER = "SILVER",
10
+ GOLD = "GOLD"
11
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClientLevelEnum = void 0;
4
+ /**
5
+ * Nivel del cliente según su SCI (M7/05_MOTOR §3.2): 21-60 Bronce · 61-80 Plata · 81-100 Oro.
6
+ * Distinto de `CreditPlanLevelEnum` de loanOfferings (que además tiene `ALL` para planes):
7
+ * un CLIENTE nunca es `ALL`.
8
+ * @enum {string}
9
+ */
10
+ var ClientLevelEnum;
11
+ (function (ClientLevelEnum) {
12
+ ClientLevelEnum["BRONZE"] = "BRONZE";
13
+ ClientLevelEnum["SILVER"] = "SILVER";
14
+ ClientLevelEnum["GOLD"] = "GOLD";
15
+ })(ClientLevelEnum || (exports.ClientLevelEnum = ClientLevelEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.259.0",
3
+ "version": "3.260.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,31 @@
1
+ import { IsEnum, IsNotEmpty, IsOptional, IsString } from "class-validator";
2
+ import { InternalAlertChannel } from "../enums/InternalAlertChannelEnum";
3
+
4
+ /**
5
+ * Alerta interna sobre un usuario. Se publica en la cola de alertamiento y zendesk-business
6
+ * la convierte en una nota interna de Zendesk: solo la ven los agentes, el usuario nunca.
7
+ *
8
+ * El asunto del ticket lo genera zendesk-business — es el único campo que el usuario podría
9
+ * llegar a ver, así que no lo escribe el caller.
10
+ */
11
+ export class ZendeskInternalAlertRequest {
12
+
13
+ /** Usuario sobre el que se alerta. */
14
+ @IsNotEmpty()
15
+ @IsString()
16
+ directoryId: string;
17
+
18
+ /** Detalle del problema. Acá va lo sensible: es lo que se escribe como nota interna. */
19
+ @IsNotEmpty()
20
+ @IsString()
21
+ note: string;
22
+
23
+ /** Decide el ruteo en Zendesk (tag, vista y equipo). */
24
+ @IsEnum(InternalAlertChannel)
25
+ channel: InternalAlertChannel;
26
+
27
+ /** Id del evento origen, para rastrear la alerta de vuelta. */
28
+ @IsString()
29
+ @IsOptional()
30
+ reference?: string;
31
+ }
@@ -0,0 +1,7 @@
1
+ /** Canal de una alerta interna: decide el ruteo dentro de Zendesk (tag, vista y equipo). */
2
+ export enum InternalAlertChannel {
3
+ /** Alertas operativas que resuelve el equipo interno sin involucrar al usuario. */
4
+ INTERNAL = 'INTERNAL',
5
+ /** Alertas de cumplimiento regulatorio. El usuario no puede enterarse. */
6
+ COMPLIANCE = 'COMPLIANCE'
7
+ }
@@ -0,0 +1,7 @@
1
+ /** Discrimina qué transporta un mensaje de la cola de alertamiento de Zendesk. */
2
+ export enum ZendeskAlertKind {
3
+ /** Nota interna en un ticket: solo la ven los agentes. */
4
+ INTERNAL_NOTE = 'INTERNAL_NOTE',
5
+ /** Mensaje proactivo al chat del usuario. */
6
+ PROACTIVE_MESSAGE = 'PROACTIVE_MESSAGE'
7
+ }
@@ -1,2 +1,8 @@
1
1
  export * from './dtos/HelpdeskCreateUserRequest';
2
- export * from './dtos/HelpdeskCreateTicketRequest';
2
+ export * from './dtos/HelpdeskCreateTicketRequest';
3
+
4
+ // Alertamiento interno (cola de Zendesk)
5
+ export * from './dtos/ZendeskInternalAlertRequest';
6
+ export * from './enums/InternalAlertChannelEnum';
7
+ export * from './enums/ZendeskAlertKindEnum';
8
+ export * from './interfaces/IZendeskAlertMessage';
@@ -0,0 +1,7 @@
1
+ import { ZendeskAlertKind } from "../enums/ZendeskAlertKindEnum";
2
+
3
+ /** Sobre de un mensaje de la cola de alertamiento: `kind` decide cómo interpretar `payload`. */
4
+ export interface IZendeskAlertMessage<TPayload = unknown> {
5
+ kind: ZendeskAlertKind;
6
+ payload: TPayload;
7
+ }
@@ -1,11 +0,0 @@
1
- export declare enum BenefitFlowEnum {
2
- TOPUPS = "TOPUPS",
3
- BILL_PAYMENT = "BILL_PAYMENT",
4
- CREDIT = "CREDIT",
5
- INSURANCE = "INSURANCE",
6
- DONATION = "DONATION",
7
- PHARMACY = "PHARMACY",
8
- REMITTANCE = "REMITTANCE",
9
- /** Fondeo de wallet PCF con efectivo via provider externo (Equality/Passport, OpenPay, …) — spec 13. */
10
- WALLET_FUNDING = "WALLET_FUNDING"
11
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BenefitFlowEnum = void 0;
4
- var BenefitFlowEnum;
5
- (function (BenefitFlowEnum) {
6
- BenefitFlowEnum["TOPUPS"] = "TOPUPS";
7
- BenefitFlowEnum["BILL_PAYMENT"] = "BILL_PAYMENT";
8
- BenefitFlowEnum["CREDIT"] = "CREDIT";
9
- BenefitFlowEnum["INSURANCE"] = "INSURANCE";
10
- BenefitFlowEnum["DONATION"] = "DONATION";
11
- BenefitFlowEnum["PHARMACY"] = "PHARMACY";
12
- BenefitFlowEnum["REMITTANCE"] = "REMITTANCE";
13
- /** Fondeo de wallet PCF con efectivo via provider externo (Equality/Passport, OpenPay, …) — spec 13. */
14
- BenefitFlowEnum["WALLET_FUNDING"] = "WALLET_FUNDING";
15
- })(BenefitFlowEnum || (exports.BenefitFlowEnum = BenefitFlowEnum = {}));
@@ -1,17 +0,0 @@
1
- import { CurrencyId } from '../../currency/enums/CurrencyId';
2
- /**
3
- * Comisión que cobra un punto de cash-in (lo que el lambda MUESTRA, no cobra).
4
- * - GreenDot (US): representativo por cadena → `fixed` + `cap` (cada tienda cobra hasta el tope).
5
- * - Passport (MX): por red → `fixed` + `percentage`.
6
- * Response DTO — sin decoradores de validación.
7
- */
8
- export declare class CashInFeeDto {
9
- /** Comisión fija, en la moneda del país. */
10
- fixed?: number;
11
- /** Porcentaje del monto depositado (0–100). */
12
- percentage?: number;
13
- /** Tope máximo de comisión (GreenDot: el asociado cobra hasta este cap). */
14
- cap?: number;
15
- /** Moneda del fee: USD (GreenDot) | MXN (Passport). */
16
- currency: CurrencyId;
17
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CashInFeeDto = void 0;
4
- /**
5
- * Comisión que cobra un punto de cash-in (lo que el lambda MUESTRA, no cobra).
6
- * - GreenDot (US): representativo por cadena → `fixed` + `cap` (cada tienda cobra hasta el tope).
7
- * - Passport (MX): por red → `fixed` + `percentage`.
8
- * Response DTO — sin decoradores de validación.
9
- */
10
- class CashInFeeDto {
11
- }
12
- exports.CashInFeeDto = CashInFeeDto;
@@ -1,9 +0,0 @@
1
- /**
2
- * Body del PUT /me/profile/complete (autenticado, gate post-MFA del autoregistro). DEC-RBAC-034.
3
- * Opera sobre el propio usuario (cognitoSub del token). Valida nombre + los `userFieldDefs` requeridos
4
- * del tenant (422 MISSING_REQUIRED_FIELDS si faltan) y flipea `profileComplete=true`.
5
- */
6
- export declare class CompleteMyProfileRequest {
7
- displayName: string;
8
- customFields?: Record<string, string>;
9
- }
@@ -1,34 +0,0 @@
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.CompleteMyProfileRequest = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const class_validator_1 = require("class-validator");
15
- /**
16
- * Body del PUT /me/profile/complete (autenticado, gate post-MFA del autoregistro). DEC-RBAC-034.
17
- * Opera sobre el propio usuario (cognitoSub del token). Valida nombre + los `userFieldDefs` requeridos
18
- * del tenant (422 MISSING_REQUIRED_FIELDS si faltan) y flipea `profileComplete=true`.
19
- */
20
- class CompleteMyProfileRequest {
21
- }
22
- exports.CompleteMyProfileRequest = CompleteMyProfileRequest;
23
- __decorate([
24
- (0, class_transformer_1.Expose)(),
25
- (0, class_validator_1.IsString)(),
26
- (0, class_validator_1.IsNotEmpty)(),
27
- __metadata("design:type", String)
28
- ], CompleteMyProfileRequest.prototype, "displayName", void 0);
29
- __decorate([
30
- (0, class_transformer_1.Expose)(),
31
- (0, class_validator_1.IsOptional)(),
32
- (0, class_validator_1.IsObject)(),
33
- __metadata("design:type", Object)
34
- ], CompleteMyProfileRequest.prototype, "customFields", void 0);
@@ -1,14 +0,0 @@
1
- /**
2
- * Body para cancelar una referencia de funding ya creada. La referencia/fundingId
3
- * viaja en la URL (`/funding/{moduleName}/{fundingId}/cancel`); este body aporta
4
- * el contexto del solicitante + idempotencia.
5
- *
6
- * NOTA: shape inferido desde el uso en `@fiado/api-invoker`
7
- * (benefits-marketplace / equality-connector) — confirmar con el dueño del
8
- * módulo walletFunding / el lambda equality-connector que implementa el cancel.
9
- */
10
- export declare class CancelFundingReferenceRequest {
11
- directoryId: string;
12
- reason?: string;
13
- idempotencyKey: string;
14
- }
@@ -1,15 +0,0 @@
1
- import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
2
- import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
3
- /**
4
- * Respuesta de la cancelación de una referencia de funding. Mismo estilo que
5
- * CreateFundingReferenceResponse.
6
- *
7
- * NOTA: shape inferido desde el uso en `@fiado/api-invoker` — confirmar con el
8
- * dueño del módulo walletFunding / el lambda equality-connector.
9
- */
10
- export declare class CancelFundingReferenceResponse {
11
- /** Referencia cancelada (misma PK que se creó). */
12
- reference: string;
13
- status: BenefitPaymentStatusEnum;
14
- errorCode?: WalletFundingErrorCodeEnum;
15
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CancelFundingReferenceResponse = void 0;
4
- /**
5
- * Respuesta de la cancelación de una referencia de funding. Mismo estilo que
6
- * CreateFundingReferenceResponse.
7
- *
8
- * NOTA: shape inferido desde el uso en `@fiado/api-invoker` — confirmar con el
9
- * dueño del módulo walletFunding / el lambda equality-connector.
10
- */
11
- class CancelFundingReferenceResponse {
12
- }
13
- exports.CancelFundingReferenceResponse = CancelFundingReferenceResponse;
@@ -1,3 +0,0 @@
1
- export declare class CancelWalletFundingRequest {
2
- idempotencyKey: string;
3
- }
@@ -1,21 +0,0 @@
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.CancelWalletFundingRequest = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class CancelWalletFundingRequest {
15
- }
16
- exports.CancelWalletFundingRequest = CancelWalletFundingRequest;
17
- __decorate([
18
- (0, class_validator_1.IsString)(),
19
- (0, class_validator_1.MaxLength)(64),
20
- __metadata("design:type", String)
21
- ], CancelWalletFundingRequest.prototype, "idempotencyKey", void 0);
@@ -1,7 +0,0 @@
1
- import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
2
- import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
3
- export declare class CancelWalletFundingResponse {
4
- status: BenefitPaymentStatusEnum;
5
- errorCode?: WalletFundingErrorCodeEnum;
6
- fundingId?: string;
7
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CancelWalletFundingResponse = void 0;
4
- class CancelWalletFundingResponse {
5
- }
6
- exports.CancelWalletFundingResponse = CancelWalletFundingResponse;