@fiado/type-kit 3.17.0 → 3.19.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 (91) hide show
  1. package/bin/benefitCenter/dtos/BannerCreateRequest.d.ts +7 -1
  2. package/bin/benefitCenter/dtos/BannerCreateRequest.js +1 -0
  3. package/bin/benefitCenter/dtos/BannerUpdateRequest.d.ts +7 -1
  4. package/bin/benefitCenter/dtos/BannerUpdateRequest.js +1 -1
  5. package/bin/benefitCenter/dtos/BenefitCreateRequest.d.ts +7 -1
  6. package/bin/benefitCenter/dtos/BenefitCreateRequest.js +1 -0
  7. package/bin/benefitCenter/dtos/BenefitUpdateRequest.d.ts +7 -1
  8. package/bin/benefitCenter/dtos/BenefitUpdateRequest.js +1 -1
  9. package/package.json +1 -1
  10. package/src/benefitCenter/dtos/BannerCreateRequest.ts +9 -1
  11. package/src/benefitCenter/dtos/BannerUpdateRequest.ts +9 -2
  12. package/src/benefitCenter/dtos/BenefitCreateRequest.ts +9 -1
  13. package/src/benefitCenter/dtos/BenefitUpdateRequest.ts +9 -2
  14. package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.d.ts +0 -22
  15. package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.js +0 -91
  16. package/bin/benefitCenter/dtos/FieldOverrideRequest.d.ts +0 -19
  17. package/bin/benefitCenter/dtos/FieldOverrideRequest.js +0 -80
  18. package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.d.ts +0 -9
  19. package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.js +0 -29
  20. package/bin/benefitCenter/enums/LeafOverrideStatusEnum.d.ts +0 -10
  21. package/bin/benefitCenter/enums/LeafOverrideStatusEnum.js +0 -14
  22. package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.d.ts +0 -13
  23. package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.js +0 -71
  24. package/bin/comission-business/dtos/GenerateReportRequest.d.ts +0 -10
  25. package/bin/comission-business/dtos/GenerateReportRequest.js +0 -2
  26. package/bin/comission-business/dtos/GenerateReportResponse.d.ts +0 -6
  27. package/bin/comission-business/dtos/GenerateReportResponse.js +0 -2
  28. package/bin/comission-business/enums/PaymentStatusEnum.d.ts +0 -5
  29. package/bin/comission-business/enums/PaymentStatusEnum.js +0 -9
  30. package/bin/credit/dtos/CreditBannerStateResponse.d.ts +0 -10
  31. package/bin/credit/dtos/CreditBannerStateResponse.js +0 -6
  32. package/bin/credit/dtos/CreditDetailResponse.d.ts +0 -23
  33. package/bin/credit/dtos/CreditDetailResponse.js +0 -6
  34. package/bin/credit/dtos/CreditEligibilityResponse.d.ts +0 -9
  35. package/bin/credit/dtos/CreditEligibilityResponse.js +0 -6
  36. package/bin/credit/dtos/CreditMovementResponse.d.ts +0 -20
  37. package/bin/credit/dtos/CreditMovementResponse.js +0 -9
  38. package/bin/credit/dtos/CreditRequestCreate.d.ts +0 -4
  39. package/bin/credit/dtos/CreditRequestCreate.js +0 -26
  40. package/bin/credit/dtos/CreditRequestResponse.d.ts +0 -7
  41. package/bin/credit/dtos/CreditRequestResponse.js +0 -6
  42. package/bin/credit/dtos/CreditScheduleResponse.d.ts +0 -18
  43. package/bin/credit/dtos/CreditScheduleResponse.js +0 -9
  44. package/bin/credit/dtos/CreditStatementResponse.d.ts +0 -11
  45. package/bin/credit/dtos/CreditStatementResponse.js +0 -9
  46. package/bin/credit/dtos/EarlyPaymentRequest.d.ts +0 -7
  47. package/bin/credit/dtos/EarlyPaymentRequest.js +0 -37
  48. package/bin/credit/dtos/EarlyPaymentResponse.d.ts +0 -11
  49. package/bin/credit/dtos/EarlyPaymentResponse.js +0 -6
  50. package/bin/credit/dtos/internal/CreditBalanceRequest.d.ts +0 -3
  51. package/bin/credit/dtos/internal/CreditBalanceRequest.js +0 -21
  52. package/bin/credit/dtos/internal/CreditCollectionRequest.d.ts +0 -11
  53. package/bin/credit/dtos/internal/CreditCollectionRequest.js +0 -59
  54. package/bin/credit/dtos/internal/CreditCollectionResponse.d.ts +0 -12
  55. package/bin/credit/dtos/internal/CreditCollectionResponse.js +0 -6
  56. package/bin/credit/dtos/internal/CreditDisbursementRequest.d.ts +0 -7
  57. package/bin/credit/dtos/internal/CreditDisbursementRequest.js +0 -43
  58. package/bin/credit/dtos/internal/CreditDisbursementResponse.d.ts +0 -8
  59. package/bin/credit/dtos/internal/CreditDisbursementResponse.js +0 -6
  60. package/bin/credit/dtos/internal/CreditProfileRequest.d.ts +0 -3
  61. package/bin/credit/dtos/internal/CreditProfileRequest.js +0 -23
  62. package/bin/credit/dtos/internal/CreditReversalRequest.d.ts +0 -5
  63. package/bin/credit/dtos/internal/CreditReversalRequest.js +0 -31
  64. package/bin/credit/dtos/internal/CreditReversalResponse.d.ts +0 -7
  65. package/bin/credit/dtos/internal/CreditReversalResponse.js +0 -6
  66. package/bin/credit/dtos/internal/CreditTransferLoancoRequest.d.ts +0 -8
  67. package/bin/credit/dtos/internal/CreditTransferLoancoRequest.js +0 -46
  68. package/bin/credit/dtos/internal/CreditTransferLoancoResponse.d.ts +0 -8
  69. package/bin/credit/dtos/internal/CreditTransferLoancoResponse.js +0 -6
  70. package/bin/credit/dtos/internal/DocumentSignRequest.d.ts +0 -3
  71. package/bin/credit/dtos/internal/DocumentSignRequest.js +0 -21
  72. package/bin/credit/dtos/internal/LienApplyRequest.d.ts +0 -7
  73. package/bin/credit/dtos/internal/LienApplyRequest.js +0 -45
  74. package/bin/credit/enums/CollectionFrequencyEnum.d.ts +0 -5
  75. package/bin/credit/enums/CollectionFrequencyEnum.js +0 -9
  76. package/bin/credit/enums/CreditOperationEnum.d.ts +0 -11
  77. package/bin/credit/enums/CreditOperationEnum.js +0 -15
  78. package/bin/credit/enums/CreditStatusEnum.d.ts +0 -12
  79. package/bin/credit/enums/CreditStatusEnum.js +0 -16
  80. package/bin/credit/enums/DelinquencyLevelEnum.d.ts +0 -9
  81. package/bin/credit/enums/DelinquencyLevelEnum.js +0 -13
  82. package/bin/credit/enums/DocumentTypeEnum.d.ts +0 -8
  83. package/bin/credit/enums/DocumentTypeEnum.js +0 -12
  84. package/bin/credit/enums/OfferStatusEnum.d.ts +0 -8
  85. package/bin/credit/enums/OfferStatusEnum.js +0 -12
  86. package/bin/credit/enums/PaymentTypeEnum.d.ts +0 -9
  87. package/bin/credit/enums/PaymentTypeEnum.js +0 -13
  88. package/bin/credit/enums/ReconciliationStatusEnum.d.ts +0 -6
  89. package/bin/credit/enums/ReconciliationStatusEnum.js +0 -10
  90. package/bin/credit/enums/TransferStatusEnum.d.ts +0 -8
  91. package/bin/credit/enums/TransferStatusEnum.js +0 -12
@@ -17,5 +17,11 @@ export declare class BannerCreateRequest {
17
17
  endDate?: number;
18
18
  content: BannerContentRequest;
19
19
  action?: BannerActionRequest;
20
- rulesVisibility: Record<string, unknown>;
20
+ /**
21
+ * Reglas de visibilidad. `null` se acepta como "banner público"
22
+ * (visible a todos los usuarios); `undefined` también — el backend
23
+ * normaliza ambos a "sin regla". Si se envía un objeto, debe pasar
24
+ * la validación del VisibilityRulesValidator.
25
+ */
26
+ rulesVisibility?: Record<string, unknown> | null;
21
27
  }
@@ -66,6 +66,7 @@ __decorate([
66
66
  __metadata("design:type", BannerActionRequest_1.BannerActionRequest)
67
67
  ], BannerCreateRequest.prototype, "action", void 0);
68
68
  __decorate([
69
+ (0, class_validator_1.ValidateIf)((_, value) => value !== null && value !== undefined),
69
70
  (0, class_validator_1.IsObject)(),
70
71
  __metadata("design:type", Object)
71
72
  ], BannerCreateRequest.prototype, "rulesVisibility", void 0);
@@ -16,5 +16,11 @@ export declare class BannerUpdateRequest {
16
16
  endDate?: number;
17
17
  content?: BannerContentRequest;
18
18
  action?: BannerActionRequest;
19
- rulesVisibility?: Record<string, unknown>;
19
+ /**
20
+ * Reglas de visibilidad — patch parcial:
21
+ * - `undefined` → no toca el campo existente.
22
+ * - `null` → limpia la regla (banner se vuelve público).
23
+ * - objeto → reemplaza la regla; debe pasar VisibilityRulesValidator.
24
+ */
25
+ rulesVisibility?: Record<string, unknown> | null;
20
26
  }
@@ -70,7 +70,7 @@ __decorate([
70
70
  __metadata("design:type", BannerActionRequest_1.BannerActionRequest)
71
71
  ], BannerUpdateRequest.prototype, "action", void 0);
72
72
  __decorate([
73
- (0, class_validator_1.IsOptional)(),
73
+ (0, class_validator_1.ValidateIf)((_, value) => value !== null && value !== undefined),
74
74
  (0, class_validator_1.IsObject)(),
75
75
  __metadata("design:type", Object)
76
76
  ], BannerUpdateRequest.prototype, "rulesVisibility", void 0);
@@ -16,5 +16,11 @@ export declare class BenefitCreateRequest {
16
16
  flow: BenefitFlowEnum;
17
17
  translationKey?: string;
18
18
  moduleConfig: BenefitModuleConfigRequest;
19
- rulesVisibility: Record<string, unknown>;
19
+ /**
20
+ * Reglas de visibilidad. `null` se acepta como "beneficio público"
21
+ * (visible a todos los usuarios); `undefined` también — el backend
22
+ * normaliza ambos a "sin regla". Si se envía un objeto, debe pasar
23
+ * la validación del VisibilityRulesValidator.
24
+ */
25
+ rulesVisibility?: Record<string, unknown> | null;
20
26
  }
@@ -68,6 +68,7 @@ __decorate([
68
68
  __metadata("design:type", BenefitModuleConfigRequest_1.BenefitModuleConfigRequest)
69
69
  ], BenefitCreateRequest.prototype, "moduleConfig", void 0);
70
70
  __decorate([
71
+ (0, class_validator_1.ValidateIf)((_, value) => value !== null && value !== undefined),
71
72
  (0, class_validator_1.IsObject)(),
72
73
  __metadata("design:type", Object)
73
74
  ], BenefitCreateRequest.prototype, "rulesVisibility", void 0);
@@ -10,5 +10,11 @@ export declare class BenefitUpdateRequest {
10
10
  flow?: BenefitFlowEnum;
11
11
  translationKey?: string;
12
12
  moduleConfig?: BenefitModuleConfigRequest;
13
- rulesVisibility?: Record<string, unknown>;
13
+ /**
14
+ * Reglas de visibilidad — patch parcial:
15
+ * - `undefined` → no toca el campo existente.
16
+ * - `null` → limpia la regla (beneficio se vuelve público).
17
+ * - objeto → reemplaza la regla; debe pasar VisibilityRulesValidator.
18
+ */
19
+ rulesVisibility?: Record<string, unknown> | null;
14
20
  }
@@ -61,7 +61,7 @@ __decorate([
61
61
  __metadata("design:type", BenefitModuleConfigRequest_1.BenefitModuleConfigRequest)
62
62
  ], BenefitUpdateRequest.prototype, "moduleConfig", void 0);
63
63
  __decorate([
64
- (0, class_validator_1.IsOptional)(),
64
+ (0, class_validator_1.ValidateIf)((_, value) => value !== null && value !== undefined),
65
65
  (0, class_validator_1.IsObject)(),
66
66
  __metadata("design:type", Object)
67
67
  ], BenefitUpdateRequest.prototype, "rulesVisibility", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.17.0",
3
+ "version": "3.19.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -8,6 +8,7 @@ import {
8
8
  IsOptional,
9
9
  IsString,
10
10
  Min,
11
+ ValidateIf,
11
12
  ValidateNested,
12
13
  } from "class-validator";
13
14
  import { Type } from "class-transformer";
@@ -54,6 +55,13 @@ export class BannerCreateRequest {
54
55
  @Type(() => BannerActionRequest)
55
56
  action?: BannerActionRequest;
56
57
 
58
+ /**
59
+ * Reglas de visibilidad. `null` se acepta como "banner público"
60
+ * (visible a todos los usuarios); `undefined` también — el backend
61
+ * normaliza ambos a "sin regla". Si se envía un objeto, debe pasar
62
+ * la validación del VisibilityRulesValidator.
63
+ */
64
+ @ValidateIf((_, value) => value !== null && value !== undefined)
57
65
  @IsObject()
58
- rulesVisibility!: Record<string, unknown>;
66
+ rulesVisibility?: Record<string, unknown> | null;
59
67
  }
@@ -7,6 +7,7 @@ import {
7
7
  IsOptional,
8
8
  IsString,
9
9
  Min,
10
+ ValidateIf,
10
11
  ValidateNested,
11
12
  } from "class-validator";
12
13
  import { Type } from "class-transformer";
@@ -44,7 +45,13 @@ export class BannerUpdateRequest {
44
45
  @Type(() => BannerActionRequest)
45
46
  action?: BannerActionRequest;
46
47
 
47
- @IsOptional()
48
+ /**
49
+ * Reglas de visibilidad — patch parcial:
50
+ * - `undefined` → no toca el campo existente.
51
+ * - `null` → limpia la regla (banner se vuelve público).
52
+ * - objeto → reemplaza la regla; debe pasar VisibilityRulesValidator.
53
+ */
54
+ @ValidateIf((_, value) => value !== null && value !== undefined)
48
55
  @IsObject()
49
- rulesVisibility?: Record<string, unknown>;
56
+ rulesVisibility?: Record<string, unknown> | null;
50
57
  }
@@ -6,6 +6,7 @@ import {
6
6
  IsOptional,
7
7
  IsString,
8
8
  Min,
9
+ ValidateIf,
9
10
  ValidateNested,
10
11
  } from "class-validator";
11
12
  import { Type } from "class-transformer";
@@ -54,6 +55,13 @@ export class BenefitCreateRequest {
54
55
  @Type(() => BenefitModuleConfigRequest)
55
56
  moduleConfig!: BenefitModuleConfigRequest;
56
57
 
58
+ /**
59
+ * Reglas de visibilidad. `null` se acepta como "beneficio público"
60
+ * (visible a todos los usuarios); `undefined` también — el backend
61
+ * normaliza ambos a "sin regla". Si se envía un objeto, debe pasar
62
+ * la validación del VisibilityRulesValidator.
63
+ */
64
+ @ValidateIf((_, value) => value !== null && value !== undefined)
57
65
  @IsObject()
58
- rulesVisibility!: Record<string, unknown>;
66
+ rulesVisibility?: Record<string, unknown> | null;
59
67
  }
@@ -5,6 +5,7 @@ import {
5
5
  IsOptional,
6
6
  IsString,
7
7
  Min,
8
+ ValidateIf,
8
9
  ValidateNested,
9
10
  } from "class-validator";
10
11
  import { Type } from "class-transformer";
@@ -28,7 +29,13 @@ export class BenefitUpdateRequest {
28
29
  @Type(() => BenefitModuleConfigRequest)
29
30
  moduleConfig?: BenefitModuleConfigRequest;
30
31
 
31
- @IsOptional()
32
+ /**
33
+ * Reglas de visibilidad — patch parcial:
34
+ * - `undefined` → no toca el campo existente.
35
+ * - `null` → limpia la regla (beneficio se vuelve público).
36
+ * - objeto → reemplaza la regla; debe pasar VisibilityRulesValidator.
37
+ */
38
+ @ValidateIf((_, value) => value !== null && value !== undefined)
32
39
  @IsObject()
33
- rulesVisibility?: Record<string, unknown>;
40
+ rulesVisibility?: Record<string, unknown> | null;
34
41
  }
@@ -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,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;