@fiado/type-kit 3.268.0 → 3.270.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/collection/dtos/CollectionProductConfigDto.d.ts +13 -0
  2. package/bin/collection/dtos/CollectionProductConfigDto.js +59 -0
  3. package/bin/collection/dtos/CollectionSourceDto.d.ts +10 -0
  4. package/bin/collection/dtos/CollectionSourceDto.js +43 -0
  5. package/bin/collection/dtos/RetryPolicyDto.d.ts +5 -0
  6. package/bin/collection/dtos/RetryPolicyDto.js +29 -0
  7. package/bin/collection/dtos/UpsertProductConfigRequest.d.ts +12 -0
  8. package/bin/collection/dtos/UpsertProductConfigRequest.js +43 -0
  9. package/bin/collection/index.d.ts +4 -0
  10. package/bin/collection/index.js +4 -0
  11. package/bin/identity/dtos/PeopleResponse.d.ts +4 -0
  12. package/bin/platformRbac/dtos/CompleteMyProfileRequest.d.ts +9 -0
  13. package/bin/platformRbac/dtos/{ResendOtpRequest.js → CompleteMyProfileRequest.js} +12 -14
  14. package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +14 -0
  15. package/bin/walletFunding/dtos/CancelFundingReferenceRequest.js +41 -0
  16. package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +15 -0
  17. package/bin/walletFunding/dtos/CancelFundingReferenceResponse.js +13 -0
  18. package/bin/walletFunding/dtos/CancelWalletFundingRequest.d.ts +3 -0
  19. package/bin/walletFunding/dtos/CancelWalletFundingRequest.js +21 -0
  20. package/bin/walletFunding/dtos/CancelWalletFundingResponse.d.ts +7 -0
  21. package/bin/walletFunding/dtos/CancelWalletFundingResponse.js +6 -0
  22. package/package.json +1 -1
  23. package/src/collection/dtos/CollectionProductConfigDto.ts +16 -0
  24. package/src/collection/dtos/CollectionSourceDto.ts +12 -0
  25. package/src/collection/dtos/RetryPolicyDto.ts +7 -0
  26. package/src/collection/dtos/UpsertProductConfigRequest.ts +15 -0
  27. package/src/collection/index.ts +4 -0
  28. package/src/identity/dtos/PeopleResponse.ts +7 -0
  29. package/bin/loanConfig/enums/ModifiableByRoleEnum.d.ts +0 -11
  30. package/bin/loanConfig/enums/ModifiableByRoleEnum.js +0 -15
  31. package/bin/platformRbac/dtos/ResendOtpRequest.d.ts +0 -22
  32. package/bin/platformRbac/dtos/ResendSelfRegisterOtpRequest.d.ts +0 -11
  33. package/bin/platformRbac/dtos/ResendSelfRegisterOtpRequest.js +0 -36
@@ -0,0 +1,13 @@
1
+ import { CollectionSourceDto } from './CollectionSourceDto';
2
+ import { RetryPolicyDto } from './RetryPolicyDto';
3
+ export declare class CollectionProductConfigDto {
4
+ tenantId: string;
5
+ productId: string;
6
+ version: number;
7
+ sources: CollectionSourceDto[];
8
+ allowPartial: boolean;
9
+ retryPolicy: RetryPolicyDto;
10
+ reportTargets: string[];
11
+ createdBy: string;
12
+ updatedBy: string;
13
+ }
@@ -0,0 +1,59 @@
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.CollectionProductConfigDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const CollectionSourceDto_1 = require("./CollectionSourceDto");
16
+ const RetryPolicyDto_1 = require("./RetryPolicyDto");
17
+ class CollectionProductConfigDto {
18
+ }
19
+ exports.CollectionProductConfigDto = CollectionProductConfigDto;
20
+ __decorate([
21
+ (0, class_validator_1.IsString)(),
22
+ __metadata("design:type", String)
23
+ ], CollectionProductConfigDto.prototype, "tenantId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsString)(),
26
+ __metadata("design:type", String)
27
+ ], CollectionProductConfigDto.prototype, "productId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsInt)(),
30
+ __metadata("design:type", Number)
31
+ ], CollectionProductConfigDto.prototype, "version", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsArray)(),
34
+ (0, class_validator_1.ValidateNested)({ each: true }),
35
+ (0, class_transformer_1.Type)(() => CollectionSourceDto_1.CollectionSourceDto),
36
+ __metadata("design:type", Array)
37
+ ], CollectionProductConfigDto.prototype, "sources", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsBoolean)(),
40
+ __metadata("design:type", Boolean)
41
+ ], CollectionProductConfigDto.prototype, "allowPartial", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.ValidateNested)(),
44
+ (0, class_transformer_1.Type)(() => RetryPolicyDto_1.RetryPolicyDto),
45
+ __metadata("design:type", RetryPolicyDto_1.RetryPolicyDto)
46
+ ], CollectionProductConfigDto.prototype, "retryPolicy", void 0);
47
+ __decorate([
48
+ (0, class_validator_1.IsArray)(),
49
+ (0, class_validator_1.IsString)({ each: true }),
50
+ __metadata("design:type", Array)
51
+ ], CollectionProductConfigDto.prototype, "reportTargets", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsString)(),
54
+ __metadata("design:type", String)
55
+ ], CollectionProductConfigDto.prototype, "createdBy", void 0);
56
+ __decorate([
57
+ (0, class_validator_1.IsString)(),
58
+ __metadata("design:type", String)
59
+ ], CollectionProductConfigDto.prototype, "updatedBy", void 0);
@@ -0,0 +1,10 @@
1
+ import { MechanismType } from '../enums/MechanismType';
2
+ import { CurrencyId } from '../../currency/enums/CurrencyId';
3
+ export declare class CollectionSourceDto {
4
+ order: number;
5
+ wallet: string;
6
+ currency: CurrencyId;
7
+ mechanism: MechanismType;
8
+ provider: string;
9
+ fxPolicy?: string;
10
+ }
@@ -0,0 +1,43 @@
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.CollectionSourceDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const MechanismType_1 = require("../enums/MechanismType");
15
+ const CurrencyId_1 = require("../../currency/enums/CurrencyId");
16
+ class CollectionSourceDto {
17
+ }
18
+ exports.CollectionSourceDto = CollectionSourceDto;
19
+ __decorate([
20
+ (0, class_validator_1.IsInt)(),
21
+ __metadata("design:type", Number)
22
+ ], CollectionSourceDto.prototype, "order", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsString)(),
25
+ __metadata("design:type", String)
26
+ ], CollectionSourceDto.prototype, "wallet", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsEnum)(CurrencyId_1.CurrencyId),
29
+ __metadata("design:type", String)
30
+ ], CollectionSourceDto.prototype, "currency", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsEnum)(MechanismType_1.MechanismType),
33
+ __metadata("design:type", String)
34
+ ], CollectionSourceDto.prototype, "mechanism", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsString)(),
37
+ __metadata("design:type", String)
38
+ ], CollectionSourceDto.prototype, "provider", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsOptional)(),
41
+ (0, class_validator_1.IsString)(),
42
+ __metadata("design:type", String)
43
+ ], CollectionSourceDto.prototype, "fxPolicy", void 0);
@@ -0,0 +1,5 @@
1
+ export declare class RetryPolicyDto {
2
+ maxAttempts: number;
3
+ backoffSeconds: number;
4
+ awaitingWindowDays?: number;
5
+ }
@@ -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.RetryPolicyDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class RetryPolicyDto {
15
+ }
16
+ exports.RetryPolicyDto = RetryPolicyDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsInt)(),
19
+ __metadata("design:type", Number)
20
+ ], RetryPolicyDto.prototype, "maxAttempts", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsInt)(),
23
+ __metadata("design:type", Number)
24
+ ], RetryPolicyDto.prototype, "backoffSeconds", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsOptional)(),
27
+ (0, class_validator_1.IsInt)(),
28
+ __metadata("design:type", Number)
29
+ ], RetryPolicyDto.prototype, "awaitingWindowDays", void 0);
@@ -0,0 +1,12 @@
1
+ import { CollectionSourceDto } from './CollectionSourceDto';
2
+ import { RetryPolicyDto } from './RetryPolicyDto';
3
+ /**
4
+ * Body de PUT /collection/products/:tenantId/:productId/config.
5
+ * tenantId/productId van en el path, no en el body.
6
+ */
7
+ export declare class UpsertProductConfigRequest {
8
+ sources: CollectionSourceDto[];
9
+ allowPartial: boolean;
10
+ retryPolicy: RetryPolicyDto;
11
+ reportTargets: string[];
12
+ }
@@ -0,0 +1,43 @@
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.UpsertProductConfigRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const CollectionSourceDto_1 = require("./CollectionSourceDto");
16
+ const RetryPolicyDto_1 = require("./RetryPolicyDto");
17
+ /**
18
+ * Body de PUT /collection/products/:tenantId/:productId/config.
19
+ * tenantId/productId van en el path, no en el body.
20
+ */
21
+ class UpsertProductConfigRequest {
22
+ }
23
+ exports.UpsertProductConfigRequest = UpsertProductConfigRequest;
24
+ __decorate([
25
+ (0, class_validator_1.IsArray)(),
26
+ (0, class_validator_1.ValidateNested)({ each: true }),
27
+ (0, class_transformer_1.Type)(() => CollectionSourceDto_1.CollectionSourceDto),
28
+ __metadata("design:type", Array)
29
+ ], UpsertProductConfigRequest.prototype, "sources", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsBoolean)(),
32
+ __metadata("design:type", Boolean)
33
+ ], UpsertProductConfigRequest.prototype, "allowPartial", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.ValidateNested)(),
36
+ (0, class_transformer_1.Type)(() => RetryPolicyDto_1.RetryPolicyDto),
37
+ __metadata("design:type", RetryPolicyDto_1.RetryPolicyDto)
38
+ ], UpsertProductConfigRequest.prototype, "retryPolicy", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsArray)(),
41
+ (0, class_validator_1.IsString)({ each: true }),
42
+ __metadata("design:type", Array)
43
+ ], UpsertProductConfigRequest.prototype, "reportTargets", void 0);
@@ -9,3 +9,7 @@ export * from './dtos/RegisterCollectibleRequest';
9
9
  export * from './dtos/CollectionResultEvent';
10
10
  export * from './dtos/AuthorizeCollectionMovementRequest';
11
11
  export * from './dtos/AuthorizeCollectionMovementResponse';
12
+ export * from './dtos/RetryPolicyDto';
13
+ export * from './dtos/CollectionSourceDto';
14
+ export * from './dtos/CollectionProductConfigDto';
15
+ export * from './dtos/UpsertProductConfigRequest';
@@ -27,3 +27,7 @@ __exportStar(require("./dtos/RegisterCollectibleRequest"), exports);
27
27
  __exportStar(require("./dtos/CollectionResultEvent"), exports);
28
28
  __exportStar(require("./dtos/AuthorizeCollectionMovementRequest"), exports);
29
29
  __exportStar(require("./dtos/AuthorizeCollectionMovementResponse"), exports);
30
+ __exportStar(require("./dtos/RetryPolicyDto"), exports);
31
+ __exportStar(require("./dtos/CollectionSourceDto"), exports);
32
+ __exportStar(require("./dtos/CollectionProductConfigDto"), exports);
33
+ __exportStar(require("./dtos/UpsertProductConfigRequest"), exports);
@@ -42,6 +42,10 @@ export declare class PeopleResponse {
42
42
  occupation: string | null;
43
43
  MXN_MonthlyIncome: string | null;
44
44
  MXN_MonthlyExtraSupport: string | null;
45
+ USD_MonthlyIncome: string | null;
46
+ USD_MonthlyExtraSupport: string | null;
47
+ incomeExchangeRate: string | null;
48
+ incomeExchangeRateAt: string | null;
45
49
  MXN_FundsPurpose: string | null;
46
50
  MXN_UsageMonthly: string | null;
47
51
  MXN_MaximumTX: string | null;
@@ -0,0 +1,9 @@
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
+ }
@@ -9,28 +9,26 @@ 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.ResendOtpRequest = void 0;
12
+ exports.CompleteMyProfileRequest = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const class_validator_1 = require("class-validator");
15
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).
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`.
21
19
  */
22
- class ResendOtpRequest {
20
+ class CompleteMyProfileRequest {
23
21
  }
24
- exports.ResendOtpRequest = ResendOtpRequest;
22
+ exports.CompleteMyProfileRequest = CompleteMyProfileRequest;
25
23
  __decorate([
26
24
  (0, class_transformer_1.Expose)(),
27
- (0, class_validator_1.IsEmail)(),
25
+ (0, class_validator_1.IsString)(),
28
26
  (0, class_validator_1.IsNotEmpty)(),
29
27
  __metadata("design:type", String)
30
- ], ResendOtpRequest.prototype, "email", void 0);
28
+ ], CompleteMyProfileRequest.prototype, "displayName", void 0);
31
29
  __decorate([
32
30
  (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);
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsObject)(),
33
+ __metadata("design:type", Object)
34
+ ], CompleteMyProfileRequest.prototype, "customFields", void 0);
@@ -0,0 +1,14 @@
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
+ }
@@ -0,0 +1,41 @@
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.CancelFundingReferenceRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /**
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.
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.
22
+ */
23
+ class CancelFundingReferenceRequest {
24
+ }
25
+ exports.CancelFundingReferenceRequest = CancelFundingReferenceRequest;
26
+ __decorate([
27
+ (0, class_validator_1.IsString)(),
28
+ (0, class_validator_1.MaxLength)(64),
29
+ __metadata("design:type", String)
30
+ ], CancelFundingReferenceRequest.prototype, "directoryId", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsOptional)(),
33
+ (0, class_validator_1.IsString)(),
34
+ (0, class_validator_1.MaxLength)(256),
35
+ __metadata("design:type", String)
36
+ ], CancelFundingReferenceRequest.prototype, "reason", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsString)(),
39
+ (0, class_validator_1.MaxLength)(64),
40
+ __metadata("design:type", String)
41
+ ], CancelFundingReferenceRequest.prototype, "idempotencyKey", void 0);
@@ -0,0 +1,15 @@
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
+ }
@@ -0,0 +1,13 @@
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;
@@ -0,0 +1,3 @@
1
+ export declare class CancelWalletFundingRequest {
2
+ idempotencyKey: string;
3
+ }
@@ -0,0 +1,21 @@
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);
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CancelWalletFundingResponse = void 0;
4
+ class CancelWalletFundingResponse {
5
+ }
6
+ exports.CancelWalletFundingResponse = CancelWalletFundingResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.268.0",
3
+ "version": "3.270.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,16 @@
1
+ import { IsString, IsInt, IsArray, IsBoolean, ValidateNested } from 'class-validator';
2
+ import { Type } from 'class-transformer';
3
+ import { CollectionSourceDto } from './CollectionSourceDto';
4
+ import { RetryPolicyDto } from './RetryPolicyDto';
5
+
6
+ export class CollectionProductConfigDto {
7
+ @IsString() tenantId!: string;
8
+ @IsString() productId!: string;
9
+ @IsInt() version!: number;
10
+ @IsArray() @ValidateNested({ each: true }) @Type(() => CollectionSourceDto) sources!: CollectionSourceDto[];
11
+ @IsBoolean() allowPartial!: boolean;
12
+ @ValidateNested() @Type(() => RetryPolicyDto) retryPolicy!: RetryPolicyDto;
13
+ @IsArray() @IsString({ each: true }) reportTargets!: string[];
14
+ @IsString() createdBy!: string;
15
+ @IsString() updatedBy!: string;
16
+ }
@@ -0,0 +1,12 @@
1
+ import { IsString, IsInt, IsEnum, IsOptional } from 'class-validator';
2
+ import { MechanismType } from '../enums/MechanismType';
3
+ import { CurrencyId } from '../../currency/enums/CurrencyId';
4
+
5
+ export class CollectionSourceDto {
6
+ @IsInt() order!: number;
7
+ @IsString() wallet!: string;
8
+ @IsEnum(CurrencyId) currency!: CurrencyId;
9
+ @IsEnum(MechanismType) mechanism!: MechanismType;
10
+ @IsString() provider!: string;
11
+ @IsOptional() @IsString() fxPolicy?: string;
12
+ }
@@ -0,0 +1,7 @@
1
+ import { IsInt, IsOptional } from 'class-validator';
2
+
3
+ export class RetryPolicyDto {
4
+ @IsInt() maxAttempts!: number;
5
+ @IsInt() backoffSeconds!: number;
6
+ @IsOptional() @IsInt() awaitingWindowDays?: number;
7
+ }
@@ -0,0 +1,15 @@
1
+ import { IsString, IsArray, IsBoolean, ValidateNested } from 'class-validator';
2
+ import { Type } from 'class-transformer';
3
+ import { CollectionSourceDto } from './CollectionSourceDto';
4
+ import { RetryPolicyDto } from './RetryPolicyDto';
5
+
6
+ /**
7
+ * Body de PUT /collection/products/:tenantId/:productId/config.
8
+ * tenantId/productId van en el path, no en el body.
9
+ */
10
+ export class UpsertProductConfigRequest {
11
+ @IsArray() @ValidateNested({ each: true }) @Type(() => CollectionSourceDto) sources!: CollectionSourceDto[];
12
+ @IsBoolean() allowPartial!: boolean;
13
+ @ValidateNested() @Type(() => RetryPolicyDto) retryPolicy!: RetryPolicyDto;
14
+ @IsArray() @IsString({ each: true }) reportTargets!: string[];
15
+ }
@@ -12,3 +12,7 @@ export * from './dtos/RegisterCollectibleRequest';
12
12
  export * from './dtos/CollectionResultEvent';
13
13
  export * from './dtos/AuthorizeCollectionMovementRequest';
14
14
  export * from './dtos/AuthorizeCollectionMovementResponse';
15
+ export * from './dtos/RetryPolicyDto';
16
+ export * from './dtos/CollectionSourceDto';
17
+ export * from './dtos/CollectionProductConfigDto';
18
+ export * from './dtos/UpsertProductConfigRequest';
@@ -45,6 +45,13 @@ export class PeopleResponse {
45
45
  occupation: string | null;
46
46
  MXN_MonthlyIncome: string | null;
47
47
  MXN_MonthlyExtraSupport: string | null;
48
+ // Modelo de dos slots por moneda (DEC-018): el usuario declara en una moneda y el backend
49
+ // autocompleta el espejo. MXN_* es canónico, USD_* es espejo. incomeExchangeRateAt es la marca
50
+ // que congela el backend al guardar cualquier slot (señal de "el usuario contestó", DEC-020).
51
+ USD_MonthlyIncome: string | null;
52
+ USD_MonthlyExtraSupport: string | null;
53
+ incomeExchangeRate: string | null;
54
+ incomeExchangeRateAt: string | null;
48
55
  MXN_FundsPurpose: string | null;
49
56
  MXN_UsageMonthly: string | null;
50
57
  MXN_MaximumTX: string | null;
@@ -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,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,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);