@fiado/type-kit 3.84.0 → 3.86.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 (87) hide show
  1. package/_test_/unit/platformRbac/enums/__snapshots__/permissionBits.test.ts.snap +3 -1
  2. package/bin/platformRbac/enums/Permission.d.ts +3 -1
  3. package/bin/platformRbac/enums/Permission.js +8 -0
  4. package/package.json +1 -1
  5. package/src/platformRbac/enums/Permission.ts +8 -0
  6. package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.d.ts +0 -22
  7. package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.js +0 -91
  8. package/bin/benefitCenter/dtos/FieldOverrideRequest.d.ts +0 -19
  9. package/bin/benefitCenter/dtos/FieldOverrideRequest.js +0 -80
  10. package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.d.ts +0 -9
  11. package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.js +0 -29
  12. package/bin/benefitCenter/enums/LeafOverrideStatusEnum.d.ts +0 -10
  13. package/bin/benefitCenter/enums/LeafOverrideStatusEnum.js +0 -14
  14. package/bin/cognitoBackofficeConnector/dtos/MfaPoolConfig.d.ts +0 -7
  15. package/bin/cognitoBackofficeConnector/dtos/MfaPoolConfig.js +0 -36
  16. package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.d.ts +0 -17
  17. package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.js +0 -39
  18. package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.d.ts +0 -13
  19. package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.js +0 -71
  20. package/bin/comission-business/dtos/GenerateReportRequest.d.ts +0 -10
  21. package/bin/comission-business/dtos/GenerateReportRequest.js +0 -2
  22. package/bin/comission-business/dtos/GenerateReportResponse.d.ts +0 -6
  23. package/bin/comission-business/dtos/GenerateReportResponse.js +0 -2
  24. package/bin/comission-business/enums/PaymentStatusEnum.d.ts +0 -5
  25. package/bin/comission-business/enums/PaymentStatusEnum.js +0 -9
  26. package/bin/credit/dtos/CreditBannerStateResponse.d.ts +0 -10
  27. package/bin/credit/dtos/CreditBannerStateResponse.js +0 -6
  28. package/bin/credit/dtos/CreditDetailResponse.d.ts +0 -23
  29. package/bin/credit/dtos/CreditDetailResponse.js +0 -6
  30. package/bin/credit/dtos/CreditEligibilityResponse.d.ts +0 -9
  31. package/bin/credit/dtos/CreditEligibilityResponse.js +0 -6
  32. package/bin/credit/dtos/CreditMovementResponse.d.ts +0 -20
  33. package/bin/credit/dtos/CreditMovementResponse.js +0 -9
  34. package/bin/credit/dtos/CreditRequestCreate.d.ts +0 -4
  35. package/bin/credit/dtos/CreditRequestCreate.js +0 -26
  36. package/bin/credit/dtos/CreditRequestResponse.d.ts +0 -7
  37. package/bin/credit/dtos/CreditRequestResponse.js +0 -6
  38. package/bin/credit/dtos/CreditScheduleResponse.d.ts +0 -18
  39. package/bin/credit/dtos/CreditScheduleResponse.js +0 -9
  40. package/bin/credit/dtos/CreditStatementResponse.d.ts +0 -11
  41. package/bin/credit/dtos/CreditStatementResponse.js +0 -9
  42. package/bin/credit/dtos/EarlyPaymentRequest.d.ts +0 -7
  43. package/bin/credit/dtos/EarlyPaymentRequest.js +0 -37
  44. package/bin/credit/dtos/EarlyPaymentResponse.d.ts +0 -11
  45. package/bin/credit/dtos/EarlyPaymentResponse.js +0 -6
  46. package/bin/credit/dtos/internal/CreditBalanceRequest.d.ts +0 -3
  47. package/bin/credit/dtos/internal/CreditBalanceRequest.js +0 -21
  48. package/bin/credit/dtos/internal/CreditCollectionRequest.d.ts +0 -11
  49. package/bin/credit/dtos/internal/CreditCollectionRequest.js +0 -59
  50. package/bin/credit/dtos/internal/CreditCollectionResponse.d.ts +0 -12
  51. package/bin/credit/dtos/internal/CreditCollectionResponse.js +0 -6
  52. package/bin/credit/dtos/internal/CreditDisbursementRequest.d.ts +0 -7
  53. package/bin/credit/dtos/internal/CreditDisbursementRequest.js +0 -43
  54. package/bin/credit/dtos/internal/CreditDisbursementResponse.d.ts +0 -8
  55. package/bin/credit/dtos/internal/CreditDisbursementResponse.js +0 -6
  56. package/bin/credit/dtos/internal/CreditProfileRequest.d.ts +0 -3
  57. package/bin/credit/dtos/internal/CreditProfileRequest.js +0 -23
  58. package/bin/credit/dtos/internal/CreditReversalRequest.d.ts +0 -5
  59. package/bin/credit/dtos/internal/CreditReversalRequest.js +0 -31
  60. package/bin/credit/dtos/internal/CreditReversalResponse.d.ts +0 -7
  61. package/bin/credit/dtos/internal/CreditReversalResponse.js +0 -6
  62. package/bin/credit/dtos/internal/CreditTransferLoancoRequest.d.ts +0 -8
  63. package/bin/credit/dtos/internal/CreditTransferLoancoRequest.js +0 -46
  64. package/bin/credit/dtos/internal/CreditTransferLoancoResponse.d.ts +0 -8
  65. package/bin/credit/dtos/internal/CreditTransferLoancoResponse.js +0 -6
  66. package/bin/credit/dtos/internal/DocumentSignRequest.d.ts +0 -3
  67. package/bin/credit/dtos/internal/DocumentSignRequest.js +0 -21
  68. package/bin/credit/dtos/internal/LienApplyRequest.d.ts +0 -7
  69. package/bin/credit/dtos/internal/LienApplyRequest.js +0 -45
  70. package/bin/credit/enums/CollectionFrequencyEnum.d.ts +0 -5
  71. package/bin/credit/enums/CollectionFrequencyEnum.js +0 -9
  72. package/bin/credit/enums/CreditOperationEnum.d.ts +0 -11
  73. package/bin/credit/enums/CreditOperationEnum.js +0 -15
  74. package/bin/credit/enums/CreditStatusEnum.d.ts +0 -12
  75. package/bin/credit/enums/CreditStatusEnum.js +0 -16
  76. package/bin/credit/enums/DelinquencyLevelEnum.d.ts +0 -9
  77. package/bin/credit/enums/DelinquencyLevelEnum.js +0 -13
  78. package/bin/credit/enums/DocumentTypeEnum.d.ts +0 -8
  79. package/bin/credit/enums/DocumentTypeEnum.js +0 -12
  80. package/bin/credit/enums/OfferStatusEnum.d.ts +0 -8
  81. package/bin/credit/enums/OfferStatusEnum.js +0 -12
  82. package/bin/credit/enums/PaymentTypeEnum.d.ts +0 -9
  83. package/bin/credit/enums/PaymentTypeEnum.js +0 -13
  84. package/bin/credit/enums/ReconciliationStatusEnum.d.ts +0 -6
  85. package/bin/credit/enums/ReconciliationStatusEnum.js +0 -10
  86. package/bin/credit/enums/TransferStatusEnum.d.ts +0 -8
  87. package/bin/credit/enums/TransferStatusEnum.js +0 -12
@@ -1,6 +1,6 @@
1
1
  // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
- exports[`PERMISSION_BIT_ORDER PERMS_VERSION es número estable 1`] = `231160135`;
3
+ exports[`PERMISSION_BIT_ORDER PERMS_VERSION es número estable 1`] = `3492726697`;
4
4
 
5
5
  exports[`PERMISSION_BIT_ORDER append-only: snapshot del ORDEN COMPLETO (rompe ante cualquier reorden/inserción) 1`] = `
6
6
  [
@@ -118,5 +118,7 @@ exports[`PERMISSION_BIT_ORDER append-only: snapshot del ORDEN COMPLETO (rompe an
118
118
  "agents.export.run",
119
119
  "agents.catalog.view",
120
120
  "agents.group.manage",
121
+ "agents.group.user.manage",
122
+ "agents.person.create",
121
123
  ]
122
124
  `;
@@ -130,6 +130,7 @@ export declare enum Permission {
130
130
  AGENTS_PERSON_SEARCH = "agents.person.search",
131
131
  AGENTS_PERSON_VIEW = "agents.person.view",
132
132
  AGENTS_PERSON_UPDATE = "agents.person.update",
133
+ AGENTS_PERSON_CREATE = "agents.person.create",
133
134
  AGENTS_DOCUMENT_VIEW = "agents.document.view",
134
135
  AGENTS_DOCUMENT_UPLOAD = "agents.document.upload",
135
136
  AGENTS_ADDRESS_VIEW = "agents.address.view",
@@ -142,7 +143,8 @@ export declare enum Permission {
142
143
  AGENTS_NOTIFICATION_SEND = "agents.notification.send",
143
144
  AGENTS_EXPORT_RUN = "agents.export.run",
144
145
  AGENTS_CATALOG_VIEW = "agents.catalog.view",
145
- AGENTS_GROUP_MANAGE = "agents.group.manage"
146
+ AGENTS_GROUP_MANAGE = "agents.group.manage",
147
+ AGENTS_GROUP_USER_MANAGE = "agents.group.user.manage"
146
148
  }
147
149
  /**
148
150
  * Orden CANÓNICO y APPEND-ONLY de los permisos para el bitset del token.
@@ -171,6 +171,7 @@ var Permission;
171
171
  Permission["AGENTS_PERSON_SEARCH"] = "agents.person.search";
172
172
  Permission["AGENTS_PERSON_VIEW"] = "agents.person.view";
173
173
  Permission["AGENTS_PERSON_UPDATE"] = "agents.person.update";
174
+ Permission["AGENTS_PERSON_CREATE"] = "agents.person.create";
174
175
  Permission["AGENTS_DOCUMENT_VIEW"] = "agents.document.view";
175
176
  Permission["AGENTS_DOCUMENT_UPLOAD"] = "agents.document.upload";
176
177
  Permission["AGENTS_ADDRESS_VIEW"] = "agents.address.view";
@@ -185,6 +186,9 @@ var Permission;
185
186
  Permission["AGENTS_CATALOG_VIEW"] = "agents.catalog.view";
186
187
  // Gestión de grupos del tenant AGENTS (scope TENANT — el operador). Espejo de retail.retailer.manage.
187
188
  Permission["AGENTS_GROUP_MANAGE"] = "agents.group.manage";
189
+ // Gestión de usuarios DENTRO de un grupo (scope GROUP — el group_owner/admin sobre su grupo; el
190
+ // operador la cubre por TENANT). Crea usuarios + asigna roles group_* acotado al groupId. DEC-102.
191
+ Permission["AGENTS_GROUP_USER_MANAGE"] = "agents.group.user.manage";
188
192
  })(Permission || (exports.Permission = Permission = {}));
189
193
  /**
190
194
  * Orden CANÓNICO y APPEND-ONLY de los permisos para el bitset del token.
@@ -313,6 +317,10 @@ exports.PERMISSION_BIT_ORDER = [
313
317
  Permission.AGENTS_EXPORT_RUN,
314
318
  Permission.AGENTS_CATALOG_VIEW,
315
319
  Permission.AGENTS_GROUP_MANAGE,
320
+ Permission.AGENTS_GROUP_USER_MANAGE,
321
+ // Append-only: nuevo permiso agregado 2026-06-18 (DEC-A2-02). Va al FINAL para no correr los bits
322
+ // existentes (PERMS_VERSION cambia, pero los índices previos se conservan).
323
+ Permission.AGENTS_PERSON_CREATE,
316
324
  ];
317
325
  function djb2(input) {
318
326
  let h = 5381;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.84.0",
3
+ "version": "3.86.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -172,6 +172,7 @@ export enum Permission {
172
172
  AGENTS_PERSON_SEARCH = 'agents.person.search',
173
173
  AGENTS_PERSON_VIEW = 'agents.person.view',
174
174
  AGENTS_PERSON_UPDATE = 'agents.person.update',
175
+ AGENTS_PERSON_CREATE = 'agents.person.create',
175
176
  AGENTS_DOCUMENT_VIEW = 'agents.document.view',
176
177
  AGENTS_DOCUMENT_UPLOAD = 'agents.document.upload',
177
178
  AGENTS_ADDRESS_VIEW = 'agents.address.view',
@@ -186,6 +187,9 @@ export enum Permission {
186
187
  AGENTS_CATALOG_VIEW = 'agents.catalog.view',
187
188
  // Gestión de grupos del tenant AGENTS (scope TENANT — el operador). Espejo de retail.retailer.manage.
188
189
  AGENTS_GROUP_MANAGE = 'agents.group.manage',
190
+ // Gestión de usuarios DENTRO de un grupo (scope GROUP — el group_owner/admin sobre su grupo; el
191
+ // operador la cubre por TENANT). Crea usuarios + asigna roles group_* acotado al groupId. DEC-102.
192
+ AGENTS_GROUP_USER_MANAGE = 'agents.group.user.manage',
189
193
  }
190
194
 
191
195
  /**
@@ -315,6 +319,10 @@ export const PERMISSION_BIT_ORDER: readonly Permission[] = [
315
319
  Permission.AGENTS_EXPORT_RUN,
316
320
  Permission.AGENTS_CATALOG_VIEW,
317
321
  Permission.AGENTS_GROUP_MANAGE,
322
+ Permission.AGENTS_GROUP_USER_MANAGE,
323
+ // Append-only: nuevo permiso agregado 2026-06-18 (DEC-A2-02). Va al FINAL para no correr los bits
324
+ // existentes (PERMS_VERSION cambia, pero los índices previos se conservan).
325
+ Permission.AGENTS_PERSON_CREATE,
318
326
  ] as const;
319
327
 
320
328
  function djb2(input: string): number {
@@ -1,22 +0,0 @@
1
- import { InputSchemaOverrideRequest } from "./InputSchemaOverrideRequest";
2
- /**
3
- * Body de PUT /backoffice/leaves/{leafId}. Upsert parcial:
4
- * - undefined → no se toca
5
- * - string/number/boolean seteado → pisa el valor previo del override
6
- * - null NO se acepta (para borrar un campo, usar DELETE /fields/{fieldName})
7
- *
8
- * Si todos los campos llegan undefined → 400 INVALID_PATCH_PAYLOAD.
9
- */
10
- export declare class BackofficeLeafOverrideUpsertRequest {
11
- serviceName?: string;
12
- logo?: string;
13
- description?: string;
14
- helpText?: string;
15
- serviceOrder?: number;
16
- subcategoryOrder?: number;
17
- enabled?: boolean;
18
- category?: string;
19
- subcategory?: string;
20
- requiresReferenceVerification?: boolean;
21
- inputSchema?: InputSchemaOverrideRequest;
22
- }
@@ -1,91 +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.BackofficeLeafOverrideUpsertRequest = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const InputSchemaOverrideRequest_1 = require("./InputSchemaOverrideRequest");
16
- /**
17
- * Body de PUT /backoffice/leaves/{leafId}. Upsert parcial:
18
- * - undefined → no se toca
19
- * - string/number/boolean seteado → pisa el valor previo del override
20
- * - null NO se acepta (para borrar un campo, usar DELETE /fields/{fieldName})
21
- *
22
- * Si todos los campos llegan undefined → 400 INVALID_PATCH_PAYLOAD.
23
- */
24
- class BackofficeLeafOverrideUpsertRequest {
25
- }
26
- exports.BackofficeLeafOverrideUpsertRequest = BackofficeLeafOverrideUpsertRequest;
27
- __decorate([
28
- (0, class_validator_1.IsOptional)(),
29
- (0, class_validator_1.IsString)(),
30
- (0, class_validator_1.MaxLength)(120),
31
- __metadata("design:type", String)
32
- ], BackofficeLeafOverrideUpsertRequest.prototype, "serviceName", void 0);
33
- __decorate([
34
- (0, class_validator_1.IsOptional)(),
35
- (0, class_validator_1.IsUrl)({ protocols: ["https"], require_protocol: true }),
36
- (0, class_validator_1.MaxLength)(500),
37
- __metadata("design:type", String)
38
- ], BackofficeLeafOverrideUpsertRequest.prototype, "logo", void 0);
39
- __decorate([
40
- (0, class_validator_1.IsOptional)(),
41
- (0, class_validator_1.IsString)(),
42
- (0, class_validator_1.MaxLength)(2000),
43
- __metadata("design:type", String)
44
- ], BackofficeLeafOverrideUpsertRequest.prototype, "description", void 0);
45
- __decorate([
46
- (0, class_validator_1.IsOptional)(),
47
- (0, class_validator_1.IsString)(),
48
- (0, class_validator_1.MaxLength)(1000),
49
- __metadata("design:type", String)
50
- ], BackofficeLeafOverrideUpsertRequest.prototype, "helpText", void 0);
51
- __decorate([
52
- (0, class_validator_1.IsOptional)(),
53
- (0, class_validator_1.IsInt)(),
54
- (0, class_validator_1.Min)(0),
55
- __metadata("design:type", Number)
56
- ], BackofficeLeafOverrideUpsertRequest.prototype, "serviceOrder", void 0);
57
- __decorate([
58
- (0, class_validator_1.IsOptional)(),
59
- (0, class_validator_1.IsInt)(),
60
- (0, class_validator_1.Min)(0),
61
- __metadata("design:type", Number)
62
- ], BackofficeLeafOverrideUpsertRequest.prototype, "subcategoryOrder", void 0);
63
- __decorate([
64
- (0, class_validator_1.IsOptional)(),
65
- (0, class_validator_1.IsBoolean)(),
66
- __metadata("design:type", Boolean)
67
- ], BackofficeLeafOverrideUpsertRequest.prototype, "enabled", void 0);
68
- __decorate([
69
- (0, class_validator_1.IsOptional)(),
70
- (0, class_validator_1.IsString)(),
71
- (0, class_validator_1.MaxLength)(60),
72
- (0, class_validator_1.Matches)(/^[A-Z][A-Z0-9_ ]*$/, { message: "category must be uppercase with underscores or spaces" }),
73
- __metadata("design:type", String)
74
- ], BackofficeLeafOverrideUpsertRequest.prototype, "category", void 0);
75
- __decorate([
76
- (0, class_validator_1.IsOptional)(),
77
- (0, class_validator_1.IsString)(),
78
- (0, class_validator_1.MaxLength)(60),
79
- __metadata("design:type", String)
80
- ], BackofficeLeafOverrideUpsertRequest.prototype, "subcategory", void 0);
81
- __decorate([
82
- (0, class_validator_1.IsOptional)(),
83
- (0, class_validator_1.IsBoolean)(),
84
- __metadata("design:type", Boolean)
85
- ], BackofficeLeafOverrideUpsertRequest.prototype, "requiresReferenceVerification", void 0);
86
- __decorate([
87
- (0, class_validator_1.IsOptional)(),
88
- (0, class_validator_1.ValidateNested)(),
89
- (0, class_transformer_1.Type)(() => InputSchemaOverrideRequest_1.InputSchemaOverrideRequest),
90
- __metadata("design:type", InputSchemaOverrideRequest_1.InputSchemaOverrideRequest)
91
- ], BackofficeLeafOverrideUpsertRequest.prototype, "inputSchema", void 0);
@@ -1,19 +0,0 @@
1
- import { InputFieldTypeEnum } from "../enums/InputFieldTypeEnum";
2
- import { InputValidation } from "./InputValidation";
3
- import { SelectOption } from "./SelectOption";
4
- /**
5
- * Override parcial de un field individual del `inputSchema` por `key`.
6
- * El admin no puede agregar ni quitar fields — solo editar los existentes.
7
- */
8
- export declare class FieldOverrideRequest {
9
- key: string;
10
- type?: InputFieldTypeEnum;
11
- label?: string;
12
- placeholder?: string;
13
- required?: boolean;
14
- helpImage?: string;
15
- showHelp?: boolean;
16
- options?: SelectOption[];
17
- dependsOn?: string;
18
- validation?: InputValidation;
19
- }
@@ -1,80 +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.FieldOverrideRequest = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const InputFieldTypeEnum_1 = require("../enums/InputFieldTypeEnum");
16
- const InputValidation_1 = require("./InputValidation");
17
- const SelectOption_1 = require("./SelectOption");
18
- /**
19
- * Override parcial de un field individual del `inputSchema` por `key`.
20
- * El admin no puede agregar ni quitar fields — solo editar los existentes.
21
- */
22
- class FieldOverrideRequest {
23
- }
24
- exports.FieldOverrideRequest = FieldOverrideRequest;
25
- __decorate([
26
- (0, class_validator_1.IsString)(),
27
- (0, class_validator_1.IsNotEmpty)(),
28
- __metadata("design:type", String)
29
- ], FieldOverrideRequest.prototype, "key", void 0);
30
- __decorate([
31
- (0, class_validator_1.IsOptional)(),
32
- (0, class_validator_1.IsEnum)(InputFieldTypeEnum_1.InputFieldTypeEnum),
33
- __metadata("design:type", String)
34
- ], FieldOverrideRequest.prototype, "type", void 0);
35
- __decorate([
36
- (0, class_validator_1.IsOptional)(),
37
- (0, class_validator_1.IsString)(),
38
- (0, class_validator_1.MaxLength)(120),
39
- __metadata("design:type", String)
40
- ], FieldOverrideRequest.prototype, "label", void 0);
41
- __decorate([
42
- (0, class_validator_1.IsOptional)(),
43
- (0, class_validator_1.IsString)(),
44
- (0, class_validator_1.MaxLength)(120),
45
- __metadata("design:type", String)
46
- ], FieldOverrideRequest.prototype, "placeholder", void 0);
47
- __decorate([
48
- (0, class_validator_1.IsOptional)(),
49
- (0, class_validator_1.IsBoolean)(),
50
- __metadata("design:type", Boolean)
51
- ], FieldOverrideRequest.prototype, "required", void 0);
52
- __decorate([
53
- (0, class_validator_1.IsOptional)(),
54
- (0, class_validator_1.IsUrl)({ protocols: ["https"], require_protocol: true }),
55
- __metadata("design:type", String)
56
- ], FieldOverrideRequest.prototype, "helpImage", void 0);
57
- __decorate([
58
- (0, class_validator_1.IsOptional)(),
59
- (0, class_validator_1.IsBoolean)(),
60
- __metadata("design:type", Boolean)
61
- ], FieldOverrideRequest.prototype, "showHelp", void 0);
62
- __decorate([
63
- (0, class_validator_1.IsOptional)(),
64
- (0, class_validator_1.IsArray)(),
65
- (0, class_validator_1.ValidateNested)({ each: true }),
66
- (0, class_transformer_1.Type)(() => SelectOption_1.SelectOption),
67
- __metadata("design:type", Array)
68
- ], FieldOverrideRequest.prototype, "options", void 0);
69
- __decorate([
70
- (0, class_validator_1.IsOptional)(),
71
- (0, class_validator_1.IsString)(),
72
- (0, class_validator_1.MaxLength)(60),
73
- __metadata("design:type", String)
74
- ], FieldOverrideRequest.prototype, "dependsOn", void 0);
75
- __decorate([
76
- (0, class_validator_1.IsOptional)(),
77
- (0, class_validator_1.ValidateNested)(),
78
- (0, class_transformer_1.Type)(() => InputValidation_1.InputValidation),
79
- __metadata("design:type", InputValidation_1.InputValidation)
80
- ], FieldOverrideRequest.prototype, "validation", void 0);
@@ -1,9 +0,0 @@
1
- import { FieldOverrideRequest } from "./FieldOverrideRequest";
2
- /**
3
- * Override del inputSchema completo. El array `fieldOverrides[]` lista overrides
4
- * parciales por `key`. La validación cruzada de que cada `key` exista en el
5
- * inputSchema del conector la hace el manager (no se puede expresar con class-validator).
6
- */
7
- export declare class InputSchemaOverrideRequest {
8
- fieldOverrides: FieldOverrideRequest[];
9
- }
@@ -1,29 +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.InputSchemaOverrideRequest = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const FieldOverrideRequest_1 = require("./FieldOverrideRequest");
16
- /**
17
- * Override del inputSchema completo. El array `fieldOverrides[]` lista overrides
18
- * parciales por `key`. La validación cruzada de que cada `key` exista en el
19
- * inputSchema del conector la hace el manager (no se puede expresar con class-validator).
20
- */
21
- class InputSchemaOverrideRequest {
22
- }
23
- exports.InputSchemaOverrideRequest = InputSchemaOverrideRequest;
24
- __decorate([
25
- (0, class_validator_1.IsArray)(),
26
- (0, class_validator_1.ValidateNested)({ each: true }),
27
- (0, class_transformer_1.Type)(() => FieldOverrideRequest_1.FieldOverrideRequest),
28
- __metadata("design:type", Array)
29
- ], InputSchemaOverrideRequest.prototype, "fieldOverrides", void 0);
@@ -1,10 +0,0 @@
1
- /**
2
- * Estado de un leaf en el listado del backoffice de overrides.
3
- *
4
- * - ACTIVE: el override (si existe) tiene un base correspondiente en el catálogo del conector.
5
- * - ORPHANED: existe override pero el conector ya no devuelve este leafId — el provider lo retiró.
6
- */
7
- export declare enum LeafOverrideStatusEnum {
8
- ACTIVE = "ACTIVE",
9
- ORPHANED = "ORPHANED"
10
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LeafOverrideStatusEnum = void 0;
4
- /**
5
- * Estado de un leaf en el listado del backoffice de overrides.
6
- *
7
- * - ACTIVE: el override (si existe) tiene un base correspondiente en el catálogo del conector.
8
- * - ORPHANED: existe override pero el conector ya no devuelve este leafId — el provider lo retiró.
9
- */
10
- var LeafOverrideStatusEnum;
11
- (function (LeafOverrideStatusEnum) {
12
- LeafOverrideStatusEnum["ACTIVE"] = "ACTIVE";
13
- LeafOverrideStatusEnum["ORPHANED"] = "ORPHANED";
14
- })(LeafOverrideStatusEnum || (exports.LeafOverrideStatusEnum = LeafOverrideStatusEnum = {}));
@@ -1,7 +0,0 @@
1
- declare const ALLOWED_MFA_TYPES: readonly ["SOFTWARE_TOKEN_MFA"];
2
- export type AllowedMfaType = (typeof ALLOWED_MFA_TYPES)[number];
3
- export declare class MfaPoolConfig {
4
- requireMfa: boolean;
5
- mfaTypes: AllowedMfaType[];
6
- }
7
- export {};
@@ -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.MfaPoolConfig = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const class_validator_1 = require("class-validator");
15
- const MfaTypesRequiresOne_1 = require("../validators/MfaTypesRequiresOne");
16
- // EMAIL_OTP removido (3.41.0): el cognito-backoffice-connector no provisiona
17
- // EmailMfaConfiguration a nivel pool (requiere infra SES que no está montada
18
- // y la integración con messages-lambda aún no tiene diseño). Ver TD-020 +
19
- // DEC-001 en cognito-backoffice-connector/docs/. Si se reintroduce, agregar
20
- // 'EMAIL_OTP' a este array.
21
- const ALLOWED_MFA_TYPES = ['SOFTWARE_TOKEN_MFA'];
22
- class MfaPoolConfig {
23
- }
24
- exports.MfaPoolConfig = MfaPoolConfig;
25
- __decorate([
26
- (0, class_transformer_1.Expose)(),
27
- (0, class_validator_1.IsBoolean)(),
28
- __metadata("design:type", Boolean)
29
- ], MfaPoolConfig.prototype, "requireMfa", void 0);
30
- __decorate([
31
- (0, class_transformer_1.Expose)(),
32
- (0, class_validator_1.IsArray)(),
33
- (0, class_validator_1.IsIn)(ALLOWED_MFA_TYPES, { each: true }),
34
- (0, class_validator_1.Validate)(MfaTypesRequiresOne_1.MfaTypesRequiresOne),
35
- __metadata("design:type", Array)
36
- ], MfaPoolConfig.prototype, "mfaTypes", void 0);
@@ -1,17 +0,0 @@
1
- import { ValidatorConstraintInterface, ValidationArguments } from 'class-validator';
2
- /**
3
- * Cross-field validator: si `requireMfa: true`, entonces `mfaTypes` debe tener
4
- * al menos 1 elemento. Si `requireMfa: false`, `mfaTypes` puede ser vacío.
5
- *
6
- * Razón: cuando el pool nace con MFA habilitado, el connector llama
7
- * `SetUserPoolMfaConfigCommand` con la lista de tipos del DTO. Si el array
8
- * llega vacío con `requireMfa: true`, el SDK rechaza con InvalidParameterException
9
- * y el pool queda en estado inconsistente (MfaConfiguration:'ON' sin tipos).
10
- * Mejor rechazar en validación del DTO antes de tocar AWS.
11
- *
12
- * Ver pivote v1.4.1 TD-017 cerrado + spec doc §1 R3.
13
- */
14
- export declare class MfaTypesRequiresOne implements ValidatorConstraintInterface {
15
- validate(mfaTypes: unknown, args: ValidationArguments): boolean;
16
- defaultMessage(): string;
17
- }
@@ -1,39 +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
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.MfaTypesRequiresOne = void 0;
10
- const class_validator_1 = require("class-validator");
11
- /**
12
- * Cross-field validator: si `requireMfa: true`, entonces `mfaTypes` debe tener
13
- * al menos 1 elemento. Si `requireMfa: false`, `mfaTypes` puede ser vacío.
14
- *
15
- * Razón: cuando el pool nace con MFA habilitado, el connector llama
16
- * `SetUserPoolMfaConfigCommand` con la lista de tipos del DTO. Si el array
17
- * llega vacío con `requireMfa: true`, el SDK rechaza con InvalidParameterException
18
- * y el pool queda en estado inconsistente (MfaConfiguration:'ON' sin tipos).
19
- * Mejor rechazar en validación del DTO antes de tocar AWS.
20
- *
21
- * Ver pivote v1.4.1 TD-017 cerrado + spec doc §1 R3.
22
- */
23
- let MfaTypesRequiresOne = class MfaTypesRequiresOne {
24
- validate(mfaTypes, args) {
25
- const obj = args.object;
26
- if (obj.requireMfa === true) {
27
- return Array.isArray(mfaTypes) && mfaTypes.length >= 1;
28
- }
29
- // requireMfa: false → cualquier mfaTypes pasa.
30
- return true;
31
- }
32
- defaultMessage() {
33
- return 'mfaTypes requiere al menos un tipo cuando requireMfa=true';
34
- }
35
- };
36
- exports.MfaTypesRequiresOne = MfaTypesRequiresOne;
37
- exports.MfaTypesRequiresOne = MfaTypesRequiresOne = __decorate([
38
- (0, class_validator_1.ValidatorConstraint)({ name: 'MfaTypesRequiresOneWhenMfaRequired', async: false })
39
- ], MfaTypesRequiresOne);
@@ -1,13 +0,0 @@
1
- export declare class SignUpBackofficeRequest {
2
- name: string;
3
- phoneNumber: string;
4
- countryOfBirth: string;
5
- MEX_DebitAccountWish: boolean;
6
- USA_DebitAccountWish: boolean;
7
- countryOfDomicile: string;
8
- myReferralCode?: string;
9
- referralCode?: string;
10
- groupId?: string;
11
- isAgent: boolean;
12
- agentGroupId?: string;
13
- }
@@ -1,71 +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.SignUpBackofficeRequest = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class SignUpBackofficeRequest {
15
- }
16
- exports.SignUpBackofficeRequest = SignUpBackofficeRequest;
17
- __decorate([
18
- (0, class_validator_1.IsString)(),
19
- (0, class_validator_1.IsNotEmpty)(),
20
- __metadata("design:type", String)
21
- ], SignUpBackofficeRequest.prototype, "name", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.IsNotEmpty)(),
25
- __metadata("design:type", String)
26
- ], SignUpBackofficeRequest.prototype, "phoneNumber", void 0);
27
- __decorate([
28
- (0, class_validator_1.IsString)(),
29
- (0, class_validator_1.IsNotEmpty)(),
30
- __metadata("design:type", String)
31
- ], SignUpBackofficeRequest.prototype, "countryOfBirth", void 0);
32
- __decorate([
33
- (0, class_validator_1.IsBoolean)(),
34
- (0, class_validator_1.IsNotEmpty)(),
35
- __metadata("design:type", Boolean)
36
- ], SignUpBackofficeRequest.prototype, "MEX_DebitAccountWish", void 0);
37
- __decorate([
38
- (0, class_validator_1.IsBoolean)(),
39
- (0, class_validator_1.IsNotEmpty)(),
40
- __metadata("design:type", Boolean)
41
- ], SignUpBackofficeRequest.prototype, "USA_DebitAccountWish", void 0);
42
- __decorate([
43
- (0, class_validator_1.IsString)(),
44
- (0, class_validator_1.IsNotEmpty)(),
45
- __metadata("design:type", String)
46
- ], SignUpBackofficeRequest.prototype, "countryOfDomicile", void 0);
47
- __decorate([
48
- (0, class_validator_1.IsString)(),
49
- (0, class_validator_1.IsOptional)(),
50
- __metadata("design:type", String)
51
- ], SignUpBackofficeRequest.prototype, "myReferralCode", void 0);
52
- __decorate([
53
- (0, class_validator_1.IsString)(),
54
- (0, class_validator_1.IsOptional)(),
55
- __metadata("design:type", String)
56
- ], SignUpBackofficeRequest.prototype, "referralCode", void 0);
57
- __decorate([
58
- (0, class_validator_1.IsString)(),
59
- (0, class_validator_1.IsOptional)(),
60
- __metadata("design:type", String)
61
- ], SignUpBackofficeRequest.prototype, "groupId", void 0);
62
- __decorate([
63
- (0, class_validator_1.IsBoolean)(),
64
- (0, class_validator_1.IsNotEmpty)(),
65
- __metadata("design:type", Boolean)
66
- ], SignUpBackofficeRequest.prototype, "isAgent", void 0);
67
- __decorate([
68
- (0, class_validator_1.IsString)(),
69
- (0, class_validator_1.IsOptional)(),
70
- __metadata("design:type", String)
71
- ], SignUpBackofficeRequest.prototype, "agentGroupId", void 0);
@@ -1,10 +0,0 @@
1
- import { CountryId } from "../../country";
2
- import { ReportConceptEnum } from "../enums/ReportConceptEnum";
3
- export interface GenerateReportRequest {
4
- dateFrom: string;
5
- dateTo: string;
6
- groupId?: string;
7
- currency: CountryId;
8
- amountPerReferral: number;
9
- concept: ReportConceptEnum;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export interface GenerateReportResponse {
2
- success: boolean;
3
- message: string;
4
- reportId?: string;
5
- totalRecords?: number;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export declare enum PaymentStatusEnum {
2
- PENDING = "PENDING",
3
- PAID = "PAID",
4
- NOT_APPLICABLE = "NOT_APPLICABLE"
5
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentStatusEnum = void 0;
4
- var PaymentStatusEnum;
5
- (function (PaymentStatusEnum) {
6
- PaymentStatusEnum["PENDING"] = "PENDING";
7
- PaymentStatusEnum["PAID"] = "PAID";
8
- PaymentStatusEnum["NOT_APPLICABLE"] = "NOT_APPLICABLE";
9
- })(PaymentStatusEnum || (exports.PaymentStatusEnum = PaymentStatusEnum = {}));
@@ -1,10 +0,0 @@
1
- import { OfferStatusEnum } from "../enums/OfferStatusEnum";
2
- import { CreditStatusEnum } from "../enums/CreditStatusEnum";
3
- export declare class CreditBannerStateResponse {
4
- showBanner: boolean;
5
- bannerType: 'NURTURING' | 'OFFER_AVAILABLE' | 'ACTIVE_CREDIT' | 'NONE';
6
- offerStatus: OfferStatusEnum | null;
7
- creditStatus: CreditStatusEnum | null;
8
- message: string | null;
9
- maxOfferAmount: number | null;
10
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreditBannerStateResponse = void 0;
4
- class CreditBannerStateResponse {
5
- }
6
- exports.CreditBannerStateResponse = CreditBannerStateResponse;