@fiado/type-kit 3.280.0 → 3.281.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 (30) hide show
  1. package/bin/identity/enums/SelfieSourceEnum.d.ts +10 -0
  2. package/bin/identity/enums/SelfieSourceEnum.js +14 -0
  3. package/bin/phoneSales/DeviceVariantPriceRequestDto.d.ts +9 -0
  4. package/bin/phoneSales/DeviceVariantPriceRequestDto.js +29 -0
  5. package/bin/phoneSales/DeviceVariantPriceResponseDto.d.ts +6 -0
  6. package/bin/phoneSales/DeviceVariantPriceResponseDto.js +7 -0
  7. package/bin/phoneSales/SaleResponseDto.d.ts +8 -0
  8. package/bin/phoneSales/SetDeviceVariantPricesRequestDto.d.ts +8 -0
  9. package/bin/phoneSales/SetDeviceVariantPricesRequestDto.js +27 -0
  10. package/bin/phoneSales/enums/DeviceVariantStatusEnum.d.ts +4 -0
  11. package/bin/phoneSales/enums/DeviceVariantStatusEnum.js +8 -0
  12. package/bin/phoneSales/index.d.ts +4 -0
  13. package/bin/phoneSales/index.js +4 -0
  14. package/package.json +1 -1
  15. package/src/phoneSales/DeviceVariantPriceRequestDto.ts +14 -0
  16. package/src/phoneSales/DeviceVariantPriceResponseDto.ts +7 -0
  17. package/src/phoneSales/SaleResponseDto.ts +9 -0
  18. package/src/phoneSales/SetDeviceVariantPricesRequestDto.ts +13 -0
  19. package/src/phoneSales/enums/DeviceVariantStatusEnum.ts +4 -0
  20. package/src/phoneSales/index.ts +4 -0
  21. package/bin/benefitCenter/enums/BenefitFlowEnum.d.ts +0 -11
  22. package/bin/benefitCenter/enums/BenefitFlowEnum.js +0 -15
  23. package/bin/loanConfig/enums/ModifiableByRoleEnum.d.ts +0 -11
  24. package/bin/loanConfig/enums/ModifiableByRoleEnum.js +0 -15
  25. package/bin/places/dtos/CashInFeeDto.d.ts +0 -17
  26. package/bin/places/dtos/CashInFeeDto.js +0 -12
  27. package/bin/platformRbac/dtos/ResendOtpRequest.d.ts +0 -22
  28. package/bin/platformRbac/dtos/ResendOtpRequest.js +0 -36
  29. package/bin/platformRbac/dtos/ResendSelfRegisterOtpRequest.d.ts +0 -11
  30. package/bin/platformRbac/dtos/ResendSelfRegisterOtpRequest.js +0 -36
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Con qué criterio se resolvió cuál archivo de S3 es la selfie del usuario.
3
+ * Le dice al consumidor qué tan confiable es el match antes de mandarla a un facematch.
4
+ */
5
+ export declare enum SelfieSourceEnum {
6
+ /** Matcheó el verificationId de la verificación vigente en People. */
7
+ VERIFICATION = "VERIFICATION",
8
+ /** No hubo match por verificación: se tomó el archivo de selfie más reciente del bucket. */
9
+ LATEST = "LATEST"
10
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SelfieSourceEnum = void 0;
4
+ /**
5
+ * Con qué criterio se resolvió cuál archivo de S3 es la selfie del usuario.
6
+ * Le dice al consumidor qué tan confiable es el match antes de mandarla a un facematch.
7
+ */
8
+ var SelfieSourceEnum;
9
+ (function (SelfieSourceEnum) {
10
+ /** Matcheó el verificationId de la verificación vigente en People. */
11
+ SelfieSourceEnum["VERIFICATION"] = "VERIFICATION";
12
+ /** No hubo match por verificación: se tomó el archivo de selfie más reciente del bucket. */
13
+ SelfieSourceEnum["LATEST"] = "LATEST";
14
+ })(SelfieSourceEnum || (exports.SelfieSourceEnum = SelfieSourceEnum = {}));
@@ -0,0 +1,9 @@
1
+ import { CurrencyId } from '../currency';
2
+ /**
3
+ * Item de precio usado dentro de `SetDeviceVariantPricesRequestDto.prices`.
4
+ * No se expone como endpoint propio, solo como elemento anidado validado.
5
+ */
6
+ export declare class DeviceVariantPriceRequestDto {
7
+ currencyId: CurrencyId;
8
+ price: number;
9
+ }
@@ -0,0 +1,29 @@
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.DeviceVariantPriceRequestDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const currency_1 = require("../currency");
15
+ /**
16
+ * Item de precio usado dentro de `SetDeviceVariantPricesRequestDto.prices`.
17
+ * No se expone como endpoint propio, solo como elemento anidado validado.
18
+ */
19
+ class DeviceVariantPriceRequestDto {
20
+ }
21
+ exports.DeviceVariantPriceRequestDto = DeviceVariantPriceRequestDto;
22
+ __decorate([
23
+ (0, class_validator_1.IsEnum)(currency_1.CurrencyId),
24
+ __metadata("design:type", String)
25
+ ], DeviceVariantPriceRequestDto.prototype, "currencyId", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsNumber)(),
28
+ __metadata("design:type", Number)
29
+ ], DeviceVariantPriceRequestDto.prototype, "price", void 0);
@@ -0,0 +1,6 @@
1
+ import { CurrencyId } from '../currency';
2
+ /** Precio de una variante de dispositivo en una moneda especifica. */
3
+ export declare class DeviceVariantPriceResponseDto {
4
+ currencyId: CurrencyId;
5
+ price: number;
6
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeviceVariantPriceResponseDto = void 0;
4
+ /** Precio de una variante de dispositivo en una moneda especifica. */
5
+ class DeviceVariantPriceResponseDto {
6
+ }
7
+ exports.DeviceVariantPriceResponseDto = DeviceVariantPriceResponseDto;
@@ -1,3 +1,4 @@
1
+ import { CurrencyId } from '../currency';
1
2
  export declare class SaleResponseDto {
2
3
  id: string;
3
4
  referenceCode: string;
@@ -16,4 +17,11 @@ export declare class SaleResponseDto {
16
17
  variantModel: string | null;
17
18
  /** Color de la variante — mismo criterio de resolución/degradación que `variantModel`. */
18
19
  variantColor: string | null;
20
+ /**
21
+ * Monto realmente cobrado, congelado al momento de la venta (multi-moneda).
22
+ * `null` en ventas anteriores a la feature de multi-moneda — no tenían este dato.
23
+ */
24
+ chargedAmount: number | null;
25
+ /** Moneda en la que se cobró `chargedAmount` — mismo motivo de nullability. */
26
+ chargedCurrencyId: CurrencyId | null;
19
27
  }
@@ -0,0 +1,8 @@
1
+ import { DeviceVariantPriceRequestDto } from './DeviceVariantPriceRequestDto';
2
+ /**
3
+ * Upsert bulk de todos los precios (por moneda) de una variante de dispositivo.
4
+ * Reemplaza el set completo — no hay historial/versionado de precios previos.
5
+ */
6
+ export declare class SetDeviceVariantPricesRequestDto {
7
+ prices: DeviceVariantPriceRequestDto[];
8
+ }
@@ -0,0 +1,27 @@
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.SetDeviceVariantPricesRequestDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const DeviceVariantPriceRequestDto_1 = require("./DeviceVariantPriceRequestDto");
16
+ /**
17
+ * Upsert bulk de todos los precios (por moneda) de una variante de dispositivo.
18
+ * Reemplaza el set completo — no hay historial/versionado de precios previos.
19
+ */
20
+ class SetDeviceVariantPricesRequestDto {
21
+ }
22
+ exports.SetDeviceVariantPricesRequestDto = SetDeviceVariantPricesRequestDto;
23
+ __decorate([
24
+ (0, class_validator_1.ValidateNested)({ each: true }),
25
+ (0, class_transformer_1.Type)(() => DeviceVariantPriceRequestDto_1.DeviceVariantPriceRequestDto),
26
+ __metadata("design:type", Array)
27
+ ], SetDeviceVariantPricesRequestDto.prototype, "prices", void 0);
@@ -0,0 +1,4 @@
1
+ export declare enum DeviceVariantStatusEnum {
2
+ ACTIVE = "ACTIVE",
3
+ HIDDEN = "HIDDEN"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeviceVariantStatusEnum = void 0;
4
+ var DeviceVariantStatusEnum;
5
+ (function (DeviceVariantStatusEnum) {
6
+ DeviceVariantStatusEnum["ACTIVE"] = "ACTIVE";
7
+ DeviceVariantStatusEnum["HIDDEN"] = "HIDDEN";
8
+ })(DeviceVariantStatusEnum || (exports.DeviceVariantStatusEnum = DeviceVariantStatusEnum = {}));
@@ -6,4 +6,8 @@ export * from './SaleResponseDto';
6
6
  export * from './RedeemSaleCodeRequestDto';
7
7
  export * from './DeviceVariantImageUploadUrlRequestDto';
8
8
  export * from './DeviceVariantImageUploadUrlResponseDto';
9
+ export * from './DeviceVariantPriceResponseDto';
10
+ export * from './DeviceVariantPriceRequestDto';
11
+ export * from './SetDeviceVariantPricesRequestDto';
9
12
  export * from './enums/DeviceImageContentTypeEnum';
13
+ export * from './enums/DeviceVariantStatusEnum';
@@ -22,4 +22,8 @@ __exportStar(require("./SaleResponseDto"), exports);
22
22
  __exportStar(require("./RedeemSaleCodeRequestDto"), exports);
23
23
  __exportStar(require("./DeviceVariantImageUploadUrlRequestDto"), exports);
24
24
  __exportStar(require("./DeviceVariantImageUploadUrlResponseDto"), exports);
25
+ __exportStar(require("./DeviceVariantPriceResponseDto"), exports);
26
+ __exportStar(require("./DeviceVariantPriceRequestDto"), exports);
27
+ __exportStar(require("./SetDeviceVariantPricesRequestDto"), exports);
25
28
  __exportStar(require("./enums/DeviceImageContentTypeEnum"), exports);
29
+ __exportStar(require("./enums/DeviceVariantStatusEnum"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.280.0",
3
+ "version": "3.281.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,14 @@
1
+ import { IsEnum, IsNumber } from 'class-validator';
2
+ import { CurrencyId } from '../currency';
3
+
4
+ /**
5
+ * Item de precio usado dentro de `SetDeviceVariantPricesRequestDto.prices`.
6
+ * No se expone como endpoint propio, solo como elemento anidado validado.
7
+ */
8
+ export class DeviceVariantPriceRequestDto {
9
+ @IsEnum(CurrencyId)
10
+ currencyId!: CurrencyId;
11
+
12
+ @IsNumber()
13
+ price!: number;
14
+ }
@@ -0,0 +1,7 @@
1
+ import { CurrencyId } from '../currency';
2
+
3
+ /** Precio de una variante de dispositivo en una moneda especifica. */
4
+ export class DeviceVariantPriceResponseDto {
5
+ currencyId!: CurrencyId;
6
+ price!: number;
7
+ }
@@ -1,3 +1,5 @@
1
+ import { CurrencyId } from '../currency';
2
+
1
3
  export class SaleResponseDto {
2
4
  id!: string;
3
5
  referenceCode!: string;
@@ -16,6 +18,13 @@ export class SaleResponseDto {
16
18
  variantModel!: string | null;
17
19
  /** Color de la variante — mismo criterio de resolución/degradación que `variantModel`. */
18
20
  variantColor!: string | null;
21
+ /**
22
+ * Monto realmente cobrado, congelado al momento de la venta (multi-moneda).
23
+ * `null` en ventas anteriores a la feature de multi-moneda — no tenían este dato.
24
+ */
25
+ chargedAmount!: number | null;
26
+ /** Moneda en la que se cobró `chargedAmount` — mismo motivo de nullability. */
27
+ chargedCurrencyId!: CurrencyId | null;
19
28
  // Nota (v1, 2026-08-03): `buyerDirectorId` (arriba) sigue siendo el ID crudo del comprador a
20
29
  // propósito. Se evaluó agregar `buyerName` resuelto server-side (vía servicio de directorios,
21
30
  // @fiado/api-invoker IDirectoriesApi) pero requería wiring de infra pendiente
@@ -0,0 +1,13 @@
1
+ import { ValidateNested } from 'class-validator';
2
+ import { Type } from 'class-transformer';
3
+ import { DeviceVariantPriceRequestDto } from './DeviceVariantPriceRequestDto';
4
+
5
+ /**
6
+ * Upsert bulk de todos los precios (por moneda) de una variante de dispositivo.
7
+ * Reemplaza el set completo — no hay historial/versionado de precios previos.
8
+ */
9
+ export class SetDeviceVariantPricesRequestDto {
10
+ @ValidateNested({ each: true })
11
+ @Type(() => DeviceVariantPriceRequestDto)
12
+ prices!: DeviceVariantPriceRequestDto[];
13
+ }
@@ -0,0 +1,4 @@
1
+ export enum DeviceVariantStatusEnum {
2
+ ACTIVE = 'ACTIVE',
3
+ HIDDEN = 'HIDDEN',
4
+ }
@@ -6,4 +6,8 @@ export * from './SaleResponseDto';
6
6
  export * from './RedeemSaleCodeRequestDto';
7
7
  export * from './DeviceVariantImageUploadUrlRequestDto';
8
8
  export * from './DeviceVariantImageUploadUrlResponseDto';
9
+ export * from './DeviceVariantPriceResponseDto';
10
+ export * from './DeviceVariantPriceRequestDto';
11
+ export * from './SetDeviceVariantPricesRequestDto';
9
12
  export * from './enums/DeviceImageContentTypeEnum';
13
+ export * from './enums/DeviceVariantStatusEnum';
@@ -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,11 +0,0 @@
1
- /**
2
- * Rol RBAC mínimo que puede modificar un parámetro (RBAC a nivel de parámetro, modelo-datos §8).
3
- * `retailer_admin` = "Admin VentasLuga" de M6 §8. Valores = identificadores de rol de RBAC F0.
4
- * TD-004: confirmar mapeo super_admin ↔ platform_super_admin con el naming real de F0.
5
- * @enum {string}
6
- */
7
- export declare enum ModifiableByRoleEnum {
8
- SUPER_ADMIN = "super_admin",
9
- SOFOM_ADMIN = "sofom_admin",
10
- RETAILER_ADMIN = "retailer_admin"
11
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ModifiableByRoleEnum = void 0;
4
- /**
5
- * Rol RBAC mínimo que puede modificar un parámetro (RBAC a nivel de parámetro, modelo-datos §8).
6
- * `retailer_admin` = "Admin VentasLuga" de M6 §8. Valores = identificadores de rol de RBAC F0.
7
- * TD-004: confirmar mapeo super_admin ↔ platform_super_admin con el naming real de F0.
8
- * @enum {string}
9
- */
10
- var ModifiableByRoleEnum;
11
- (function (ModifiableByRoleEnum) {
12
- ModifiableByRoleEnum["SUPER_ADMIN"] = "super_admin";
13
- ModifiableByRoleEnum["SOFOM_ADMIN"] = "sofom_admin";
14
- ModifiableByRoleEnum["RETAILER_ADMIN"] = "retailer_admin";
15
- })(ModifiableByRoleEnum || (exports.ModifiableByRoleEnum = ModifiableByRoleEnum = {}));
@@ -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,22 +0,0 @@
1
- import { MfaMethodEnum } from '../enums/MfaMethodEnum';
2
- /**
3
- * Body del POST /auth/resend-otp (público, anónimo). DEC-RBAC-054.
4
- * Reenvía el OTP del login re-disparando el challenge real CUSTOM_AUTH (EMAIL_OTP) para la
5
- * identidad SIN password. `tenantId` obligatorio (DEC-064 — el picker ya lo resolvió, NO "solo email").
6
- * El email se normaliza lowercase server-side. Postura anti-enumeración: respuesta 200 genérica
7
- * siempre, sin filtrar existencia (ver AuthLoginManager.resendChallengeOtp).
8
- */
9
- export declare class ResendOtpRequest {
10
- email: string;
11
- tenantId: string;
12
- }
13
- /**
14
- * Respuesta del resend-otp. `session`/`mfaMethod` frescos del nuevo challenge CUSTOM_AUTH.
15
- * Plain sin validators (no validamos lo que mandamos al cliente — fiado-validation-and-dtos § 7).
16
- * Ambos opcionales: en los caminos de rechazo silencioso (anti-enumeración) o ramas sin CUSTOM_AUTH
17
- * el server responde 200 genérico sin session ni método.
18
- */
19
- export interface ResendOtpResponse {
20
- session?: string;
21
- mfaMethod?: MfaMethodEnum;
22
- }
@@ -1,36 +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.ResendOtpRequest = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const class_validator_1 = require("class-validator");
15
- /**
16
- * Body del POST /auth/resend-otp (público, anónimo). DEC-RBAC-054.
17
- * Reenvía el OTP del login re-disparando el challenge real CUSTOM_AUTH (EMAIL_OTP) para la
18
- * identidad SIN password. `tenantId` obligatorio (DEC-064 — el picker ya lo resolvió, NO "solo email").
19
- * El email se normaliza lowercase server-side. Postura anti-enumeración: respuesta 200 genérica
20
- * siempre, sin filtrar existencia (ver AuthLoginManager.resendChallengeOtp).
21
- */
22
- class ResendOtpRequest {
23
- }
24
- exports.ResendOtpRequest = ResendOtpRequest;
25
- __decorate([
26
- (0, class_transformer_1.Expose)(),
27
- (0, class_validator_1.IsEmail)(),
28
- (0, class_validator_1.IsNotEmpty)(),
29
- __metadata("design:type", String)
30
- ], ResendOtpRequest.prototype, "email", void 0);
31
- __decorate([
32
- (0, class_transformer_1.Expose)(),
33
- (0, class_validator_1.IsString)(),
34
- (0, class_validator_1.IsNotEmpty)(),
35
- __metadata("design:type", String)
36
- ], ResendOtpRequest.prototype, "tenantId", void 0);
@@ -1,11 +0,0 @@
1
- /**
2
- * Body del POST /self-register/resend-otp (público, anónimo). DEC-RBAC-054.
3
- * Re-envía el OTP del autoregistro (mecanismo messages-business, NO Cognito) tras validar un
4
- * `pending` existente. Misma postura anti-enumeración del start. El email se normaliza lowercase
5
- * server-side. DTO propio por endpoint (NO reusa SelfRegisterStartRequest, que exige roleId/scope/
6
- * scopeRef, ni SelfRegisterVerifyOtpRequest, que exige otp).
7
- */
8
- export declare class ResendSelfRegisterOtpRequest {
9
- tenantId: string;
10
- email: string;
11
- }
@@ -1,36 +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.ResendSelfRegisterOtpRequest = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const class_validator_1 = require("class-validator");
15
- /**
16
- * Body del POST /self-register/resend-otp (público, anónimo). DEC-RBAC-054.
17
- * Re-envía el OTP del autoregistro (mecanismo messages-business, NO Cognito) tras validar un
18
- * `pending` existente. Misma postura anti-enumeración del start. El email se normaliza lowercase
19
- * server-side. DTO propio por endpoint (NO reusa SelfRegisterStartRequest, que exige roleId/scope/
20
- * scopeRef, ni SelfRegisterVerifyOtpRequest, que exige otp).
21
- */
22
- class ResendSelfRegisterOtpRequest {
23
- }
24
- exports.ResendSelfRegisterOtpRequest = ResendSelfRegisterOtpRequest;
25
- __decorate([
26
- (0, class_transformer_1.Expose)(),
27
- (0, class_validator_1.IsString)(),
28
- (0, class_validator_1.IsNotEmpty)(),
29
- __metadata("design:type", String)
30
- ], ResendSelfRegisterOtpRequest.prototype, "tenantId", void 0);
31
- __decorate([
32
- (0, class_transformer_1.Expose)(),
33
- (0, class_validator_1.IsEmail)(),
34
- (0, class_validator_1.IsNotEmpty)(),
35
- __metadata("design:type", String)
36
- ], ResendSelfRegisterOtpRequest.prototype, "email", void 0);