@fiado/type-kit 3.618.0 → 3.620.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 (29) hide show
  1. package/_test_/unit/collection/authorizeCollectionMovementRequest.test.ts +33 -0
  2. package/_test_/unit/reconciliation/reconciliationCatalogs.test.ts +9 -0
  3. package/_test_/unit/reconciliation/reconciliationRequests.test.ts +23 -4
  4. package/_test_/unit/transferNote/transferNoteConfigAndPrivate.test.ts +23 -8
  5. package/bin/collection/dtos/AuthorizeCollectionMovementRequest.d.ts +1 -0
  6. package/bin/collection/dtos/AuthorizeCollectionMovementRequest.js +6 -0
  7. package/bin/reconciliation/constants/reconciliationErrorHttpStatus.d.ts +7 -3
  8. package/bin/reconciliation/constants/reconciliationErrorHttpStatus.js +4 -1
  9. package/bin/reconciliation/dtos/requests/PrivateReconciliationRequests.d.ts +49 -13
  10. package/bin/reconciliation/dtos/requests/PrivateReconciliationRequests.js +61 -13
  11. package/bin/reconciliation/dtos/requests/reconciliationRequestDecorators.d.ts +1 -3
  12. package/bin/reconciliation/dtos/requests/reconciliationRequestDecorators.js +3 -10
  13. package/bin/reconciliation/enums/ReconciliationFeedErrorCodeEnum.d.ts +4 -1
  14. package/bin/reconciliation/enums/ReconciliationFeedErrorCodeEnum.js +3 -0
  15. package/bin/transferNote/constants/transferNoteValidation.d.ts +2 -0
  16. package/bin/transferNote/constants/transferNoteValidation.js +3 -1
  17. package/bin/transferNote/dtos/requests/PrivateTransferNoteRequests.d.ts +41 -11
  18. package/bin/transferNote/dtos/requests/PrivateTransferNoteRequests.js +51 -11
  19. package/bin/transferNote/dtos/requests/transferNoteRequestDecorators.d.ts +4 -0
  20. package/bin/transferNote/dtos/requests/transferNoteRequestDecorators.js +26 -0
  21. package/package.json +1 -1
  22. package/src/collection/dtos/AuthorizeCollectionMovementRequest.ts +3 -1
  23. package/src/reconciliation/constants/reconciliationErrorHttpStatus.ts +6 -3
  24. package/src/reconciliation/dtos/requests/PrivateReconciliationRequests.ts +86 -26
  25. package/src/reconciliation/dtos/requests/reconciliationRequestDecorators.ts +2 -11
  26. package/src/reconciliation/enums/ReconciliationFeedErrorCodeEnum.ts +3 -0
  27. package/src/transferNote/constants/transferNoteValidation.ts +3 -0
  28. package/src/transferNote/dtos/requests/PrivateTransferNoteRequests.ts +72 -22
  29. package/src/transferNote/dtos/requests/transferNoteRequestDecorators.ts +33 -2
@@ -6,45 +6,66 @@ export declare class PrivateTransferNoteCaller {
6
6
  tenantId: string;
7
7
  author: string;
8
8
  }
9
- /** Caller del espejo que llama fiado-dashboard; `actor` es el email del operador de la sesión. */
9
+ /** Caller del espejo que llama fiado-dashboard; el operador viaja por `actorId`. */
10
10
  export declare class PrivateTransferNoteOperatorCaller extends PrivateTransferNoteCaller {
11
- actor: string;
11
+ /** `sub` de Azure AD del operador del dashboard. */
12
+ actorId: string;
13
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
14
+ actor?: string;
12
15
  }
13
16
  /** Body de privatePreviewTransferNote. */
14
17
  export declare class PrivatePreviewTransferNoteRequest extends PreviewTransferNoteRequest {
15
18
  tenantId: string;
16
19
  author: string;
17
- actor: string;
20
+ /** `sub` de Azure AD del operador del dashboard. */
21
+ actorId: string;
22
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
23
+ actor?: string;
18
24
  }
19
25
  /** Body de privateIssueTransferNote. */
20
26
  export declare class PrivateIssueTransferNoteRequest extends IssueTransferNoteRequest {
21
27
  tenantId: string;
22
28
  author: string;
23
- actor: string;
29
+ /** `sub` de Azure AD del operador del dashboard. */
30
+ actorId: string;
31
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
32
+ actor?: string;
24
33
  }
25
34
  /** Body de privateCaptureTransferNoteSpei. */
26
35
  export declare class PrivateCaptureTransferNoteSpeiRequest extends CaptureTransferNoteSpeiRequest {
27
36
  tenantId: string;
28
37
  author: string;
29
- actor: string;
38
+ /** `sub` de Azure AD del operador del dashboard. */
39
+ actorId: string;
40
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
41
+ actor?: string;
30
42
  }
31
43
  /** Body de privateRevertTransferNoteSpei. */
32
44
  export declare class PrivateRevertTransferNoteSpeiRequest extends RevertTransferNoteSpeiRequest {
33
45
  tenantId: string;
34
46
  author: string;
35
- actor: string;
47
+ /** `sub` de Azure AD del operador del dashboard. */
48
+ actorId: string;
49
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
50
+ actor?: string;
36
51
  }
37
52
  /** Body de privateCancelTransferNote. */
38
53
  export declare class PrivateCancelTransferNoteRequest extends CancelTransferNoteRequest {
39
54
  tenantId: string;
40
55
  author: string;
41
- actor: string;
56
+ /** `sub` de Azure AD del operador del dashboard. */
57
+ actorId: string;
58
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
59
+ actor?: string;
42
60
  }
43
61
  /** Body de privateResolveTransferNoteDispute. */
44
62
  export declare class PrivateResolveTransferNoteDisputeRequest extends ResolveTransferNoteDisputeRequest {
45
63
  tenantId: string;
46
64
  author: string;
47
- actor: string;
65
+ /** `sub` de Azure AD del operador del dashboard. */
66
+ actorId: string;
67
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
68
+ actor?: string;
48
69
  }
49
70
  /** Body de privateConfirmTransferNoteReception. */
50
71
  export declare class PrivateConfirmTransferNoteReceptionRequest extends PrivateTransferNoteOperatorCaller {
@@ -71,19 +92,28 @@ export declare class PrivateGetTransferNotePdfQuery extends PrivateTransferNoteO
71
92
  export declare class PrivateListTransferNotesQuery extends ListTransferNotesQuery {
72
93
  tenantId: string;
73
94
  author: string;
74
- actor: string;
95
+ /** `sub` de Azure AD del operador del dashboard. */
96
+ actorId: string;
97
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
98
+ actor?: string;
75
99
  }
76
100
  /** Query de privateListTransferNotePool. */
77
101
  export declare class PrivateListTransferNotePoolQuery extends ListTransferNotePoolQuery {
78
102
  tenantId: string;
79
103
  author: string;
80
- actor: string;
104
+ /** `sub` de Azure AD del operador del dashboard. */
105
+ actorId: string;
106
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
107
+ actor?: string;
81
108
  }
82
109
  /** Query de privateListTransferNoteItems. */
83
110
  export declare class PrivateListTransferNoteItemsQuery extends ListTransferNoteItemsQuery {
84
111
  tenantId: string;
85
112
  author: string;
86
- actor: string;
113
+ /** `sub` de Azure AD del operador del dashboard. */
114
+ actorId: string;
115
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
116
+ actor?: string;
87
117
  }
88
118
  /** Body de privateRunTransferNoteCutoff: responde 202 con `runId` y corre asíncrono. */
89
119
  export declare class PrivateRunTransferNoteCutoffRequest extends PrivateTransferNoteCaller {
@@ -29,12 +29,16 @@ __decorate([
29
29
  (0, transferNoteRequestDecorators_1.RequiredId)(),
30
30
  __metadata("design:type", String)
31
31
  ], PrivateTransferNoteCaller.prototype, "author", void 0);
32
- /** Caller del espejo que llama fiado-dashboard; `actor` es el email del operador de la sesión. */
32
+ /** Caller del espejo que llama fiado-dashboard; el operador viaja por `actorId`. */
33
33
  class PrivateTransferNoteOperatorCaller extends PrivateTransferNoteCaller {
34
34
  }
35
35
  exports.PrivateTransferNoteOperatorCaller = PrivateTransferNoteOperatorCaller;
36
36
  __decorate([
37
- (0, transferNoteRequestDecorators_1.RequiredEmail)(),
37
+ (0, transferNoteRequestDecorators_1.RequiredActorId)(),
38
+ __metadata("design:type", String)
39
+ ], PrivateTransferNoteOperatorCaller.prototype, "actorId", void 0);
40
+ __decorate([
41
+ (0, transferNoteRequestDecorators_1.OptionalEmail)(),
38
42
  __metadata("design:type", String)
39
43
  ], PrivateTransferNoteOperatorCaller.prototype, "actor", void 0);
40
44
  /** Body de privatePreviewTransferNote. */
@@ -50,7 +54,11 @@ __decorate([
50
54
  __metadata("design:type", String)
51
55
  ], PrivatePreviewTransferNoteRequest.prototype, "author", void 0);
52
56
  __decorate([
53
- (0, transferNoteRequestDecorators_1.RequiredEmail)(),
57
+ (0, transferNoteRequestDecorators_1.RequiredActorId)(),
58
+ __metadata("design:type", String)
59
+ ], PrivatePreviewTransferNoteRequest.prototype, "actorId", void 0);
60
+ __decorate([
61
+ (0, transferNoteRequestDecorators_1.OptionalEmail)(),
54
62
  __metadata("design:type", String)
55
63
  ], PrivatePreviewTransferNoteRequest.prototype, "actor", void 0);
56
64
  /** Body de privateIssueTransferNote. */
@@ -66,7 +74,11 @@ __decorate([
66
74
  __metadata("design:type", String)
67
75
  ], PrivateIssueTransferNoteRequest.prototype, "author", void 0);
68
76
  __decorate([
69
- (0, transferNoteRequestDecorators_1.RequiredEmail)(),
77
+ (0, transferNoteRequestDecorators_1.RequiredActorId)(),
78
+ __metadata("design:type", String)
79
+ ], PrivateIssueTransferNoteRequest.prototype, "actorId", void 0);
80
+ __decorate([
81
+ (0, transferNoteRequestDecorators_1.OptionalEmail)(),
70
82
  __metadata("design:type", String)
71
83
  ], PrivateIssueTransferNoteRequest.prototype, "actor", void 0);
72
84
  /** Body de privateCaptureTransferNoteSpei. */
@@ -82,7 +94,11 @@ __decorate([
82
94
  __metadata("design:type", String)
83
95
  ], PrivateCaptureTransferNoteSpeiRequest.prototype, "author", void 0);
84
96
  __decorate([
85
- (0, transferNoteRequestDecorators_1.RequiredEmail)(),
97
+ (0, transferNoteRequestDecorators_1.RequiredActorId)(),
98
+ __metadata("design:type", String)
99
+ ], PrivateCaptureTransferNoteSpeiRequest.prototype, "actorId", void 0);
100
+ __decorate([
101
+ (0, transferNoteRequestDecorators_1.OptionalEmail)(),
86
102
  __metadata("design:type", String)
87
103
  ], PrivateCaptureTransferNoteSpeiRequest.prototype, "actor", void 0);
88
104
  /** Body de privateRevertTransferNoteSpei. */
@@ -98,7 +114,11 @@ __decorate([
98
114
  __metadata("design:type", String)
99
115
  ], PrivateRevertTransferNoteSpeiRequest.prototype, "author", void 0);
100
116
  __decorate([
101
- (0, transferNoteRequestDecorators_1.RequiredEmail)(),
117
+ (0, transferNoteRequestDecorators_1.RequiredActorId)(),
118
+ __metadata("design:type", String)
119
+ ], PrivateRevertTransferNoteSpeiRequest.prototype, "actorId", void 0);
120
+ __decorate([
121
+ (0, transferNoteRequestDecorators_1.OptionalEmail)(),
102
122
  __metadata("design:type", String)
103
123
  ], PrivateRevertTransferNoteSpeiRequest.prototype, "actor", void 0);
104
124
  /** Body de privateCancelTransferNote. */
@@ -114,7 +134,11 @@ __decorate([
114
134
  __metadata("design:type", String)
115
135
  ], PrivateCancelTransferNoteRequest.prototype, "author", void 0);
116
136
  __decorate([
117
- (0, transferNoteRequestDecorators_1.RequiredEmail)(),
137
+ (0, transferNoteRequestDecorators_1.RequiredActorId)(),
138
+ __metadata("design:type", String)
139
+ ], PrivateCancelTransferNoteRequest.prototype, "actorId", void 0);
140
+ __decorate([
141
+ (0, transferNoteRequestDecorators_1.OptionalEmail)(),
118
142
  __metadata("design:type", String)
119
143
  ], PrivateCancelTransferNoteRequest.prototype, "actor", void 0);
120
144
  /** Body de privateResolveTransferNoteDispute. */
@@ -130,7 +154,11 @@ __decorate([
130
154
  __metadata("design:type", String)
131
155
  ], PrivateResolveTransferNoteDisputeRequest.prototype, "author", void 0);
132
156
  __decorate([
133
- (0, transferNoteRequestDecorators_1.RequiredEmail)(),
157
+ (0, transferNoteRequestDecorators_1.RequiredActorId)(),
158
+ __metadata("design:type", String)
159
+ ], PrivateResolveTransferNoteDisputeRequest.prototype, "actorId", void 0);
160
+ __decorate([
161
+ (0, transferNoteRequestDecorators_1.OptionalEmail)(),
134
162
  __metadata("design:type", String)
135
163
  ], PrivateResolveTransferNoteDisputeRequest.prototype, "actor", void 0);
136
164
  /** Body de privateConfirmTransferNoteReception. */
@@ -174,7 +202,11 @@ __decorate([
174
202
  __metadata("design:type", String)
175
203
  ], PrivateListTransferNotesQuery.prototype, "author", void 0);
176
204
  __decorate([
177
- (0, transferNoteRequestDecorators_1.RequiredEmail)(),
205
+ (0, transferNoteRequestDecorators_1.RequiredActorId)(),
206
+ __metadata("design:type", String)
207
+ ], PrivateListTransferNotesQuery.prototype, "actorId", void 0);
208
+ __decorate([
209
+ (0, transferNoteRequestDecorators_1.OptionalEmail)(),
178
210
  __metadata("design:type", String)
179
211
  ], PrivateListTransferNotesQuery.prototype, "actor", void 0);
180
212
  /** Query de privateListTransferNotePool. */
@@ -190,7 +222,11 @@ __decorate([
190
222
  __metadata("design:type", String)
191
223
  ], PrivateListTransferNotePoolQuery.prototype, "author", void 0);
192
224
  __decorate([
193
- (0, transferNoteRequestDecorators_1.RequiredEmail)(),
225
+ (0, transferNoteRequestDecorators_1.RequiredActorId)(),
226
+ __metadata("design:type", String)
227
+ ], PrivateListTransferNotePoolQuery.prototype, "actorId", void 0);
228
+ __decorate([
229
+ (0, transferNoteRequestDecorators_1.OptionalEmail)(),
194
230
  __metadata("design:type", String)
195
231
  ], PrivateListTransferNotePoolQuery.prototype, "actor", void 0);
196
232
  /** Query de privateListTransferNoteItems. */
@@ -206,7 +242,11 @@ __decorate([
206
242
  __metadata("design:type", String)
207
243
  ], PrivateListTransferNoteItemsQuery.prototype, "author", void 0);
208
244
  __decorate([
209
- (0, transferNoteRequestDecorators_1.RequiredEmail)(),
245
+ (0, transferNoteRequestDecorators_1.RequiredActorId)(),
246
+ __metadata("design:type", String)
247
+ ], PrivateListTransferNoteItemsQuery.prototype, "actorId", void 0);
248
+ __decorate([
249
+ (0, transferNoteRequestDecorators_1.OptionalEmail)(),
210
250
  __metadata("design:type", String)
211
251
  ], PrivateListTransferNoteItemsQuery.prototype, "actor", void 0);
212
252
  /** Body de privateRunTransferNoteCutoff: responde 202 con `runId` y corre asíncrono. */
@@ -6,6 +6,10 @@ export declare function RequiredReason(): PropertyDecorator;
6
6
  export declare function RequiredId(): PropertyDecorator;
7
7
  /** Email obligatorio. */
8
8
  export declare function RequiredEmail(): PropertyDecorator;
9
+ /** Email opcional. */
10
+ export declare function OptionalEmail(): PropertyDecorator;
11
+ /** Id obligatorio del operador: no vacío, acotado y nunca con forma de email. */
12
+ export declare function RequiredActorId(): PropertyDecorator;
9
13
  /** Semana ISO opcional `YYYY-Www`. */
10
14
  export declare function OptionalIsoWeek(): PropertyDecorator;
11
15
  /** Tamaño de página opcional, 1 a 100, llega como string en el query. */
@@ -4,6 +4,8 @@ exports.LongReason = LongReason;
4
4
  exports.RequiredReason = RequiredReason;
5
5
  exports.RequiredId = RequiredId;
6
6
  exports.RequiredEmail = RequiredEmail;
7
+ exports.OptionalEmail = OptionalEmail;
8
+ exports.RequiredActorId = RequiredActorId;
7
9
  exports.OptionalIsoWeek = OptionalIsoWeek;
8
10
  exports.PageLimit = PageLimit;
9
11
  exports.PageToken = PageToken;
@@ -44,6 +46,30 @@ function RequiredEmail() {
44
46
  (0, class_validator_1.IsEmail)()(target, key);
45
47
  };
46
48
  }
49
+ /** Email opcional. */
50
+ function OptionalEmail() {
51
+ return (target, key) => {
52
+ (0, class_transformer_1.Expose)()(target, key);
53
+ (0, class_validator_1.IsOptional)()(target, key);
54
+ (0, class_validator_1.IsEmail)()(target, key);
55
+ };
56
+ }
57
+ /** Id obligatorio del operador: no vacío, acotado y nunca con forma de email. */
58
+ function RequiredActorId() {
59
+ return (target, key) => {
60
+ (0, class_transformer_1.Expose)()(target, key);
61
+ (0, class_validator_1.IsString)()(target, key);
62
+ (0, class_validator_1.IsNotEmpty)()(target, key);
63
+ (0, class_validator_1.MaxLength)(transferNoteValidation_1.TRANSFER_NOTE_ACTOR_ID_MAX_LENGTH)(target, key);
64
+ (0, class_validator_1.ValidateBy)({
65
+ name: 'isNotEmail',
66
+ validator: {
67
+ validate: (value) => typeof value === 'string' && !(0, class_validator_1.isEmail)(value),
68
+ defaultMessage: () => '$property no puede ser un email',
69
+ },
70
+ })(target, key);
71
+ };
72
+ }
47
73
  /** Semana ISO opcional `YYYY-Www`. */
48
74
  function OptionalIsoWeek() {
49
75
  return (target, key) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.618.0",
3
+ "version": "3.620.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { IsString, IsEnum, IsOptional, ValidateNested, IsNumber, IsBoolean } from 'class-validator';
1
+ import { IsString, IsEnum, IsOptional, ValidateNested, IsNumber, IsBoolean, IsNotEmpty } from 'class-validator';
2
2
  import { Type } from 'class-transformer';
3
3
  import { MechanismType } from '../enums/MechanismType';
4
4
  import { CurrencyId } from '../../currency/enums/CurrencyId';
@@ -14,6 +14,8 @@ export class AuthorizeCollectionMovementRequest {
14
14
  @IsOptional() @IsString() intentId?: string;
15
15
  @IsOptional() @IsString() chargeId?: string;
16
16
  @IsOptional() @IsString() holdTxId?: string;
17
+ // Tenant SOFOM del intento de cobro; transaction-processor lo asienta como `sofomTenantId`.
18
+ @IsOptional() @IsString() @IsNotEmpty() tenantId?: string;
17
19
 
18
20
  /**
19
21
  * Tarifa con la que se registra el cobro. Presente, el movimiento deja además una transacción
@@ -16,7 +16,10 @@ export const RECONCILIATION_ERROR_HTTP_STATUS: Readonly<Record<C, 404 | 409 | 42
16
16
  [C.AUTHOR_NOT_ALLOWED]: 422,
17
17
  };
18
18
 
19
- /** Status HTTP de los codes del feed genérico. */
20
- export const RECONCILIATION_FEED_ERROR_HTTP_STATUS: Readonly<Record<ReconciliationFeedErrorCodeEnum, 404>> = {
19
+ /** Status HTTP de los codes del feed genérico: 400 request inválido · 404 no existe · 502 falló la fuente. */
20
+ export const RECONCILIATION_FEED_ERROR_HTTP_STATUS = {
21
21
  [ReconciliationFeedErrorCodeEnum.FEED_RECORD_NOT_FOUND]: 404,
22
- };
22
+ [ReconciliationFeedErrorCodeEnum.FEED_CONCEPT_NOT_SUPPORTED]: 400,
23
+ [ReconciliationFeedErrorCodeEnum.INVALID_FEED_QUERY]: 400,
24
+ [ReconciliationFeedErrorCodeEnum.FEED_SOURCE_UNAVAILABLE]: 502,
25
+ } as const satisfies Readonly<Record<ReconciliationFeedErrorCodeEnum, 400 | 404 | 502>>;
@@ -13,7 +13,7 @@ import {
13
13
  ListReconciliationItemsQuery,
14
14
  ListReconciliationRunsQuery,
15
15
  } from './ReconciliationQueries';
16
- import { RequiredEmail, RequiredId } from './reconciliationRequestDecorators';
16
+ import { OptionalEmail, RequiredActorId, RequiredId } from './reconciliationRequestDecorators';
17
17
 
18
18
  /** Tenant y servicio que llama; el lambda valida `author` contra su lista permitida. */
19
19
  export class PrivateReconciliationCaller {
@@ -24,10 +24,15 @@ export class PrivateReconciliationCaller {
24
24
  author!: string;
25
25
  }
26
26
 
27
- /** Caller del espejo que llama fiado-dashboard; `actor` es el email del operador de la sesión. */
27
+ /** Caller del espejo que llama fiado-dashboard; el operador viaja por `actorId`. */
28
28
  export class PrivateReconciliationOperatorCaller extends PrivateReconciliationCaller {
29
- @RequiredEmail()
30
- actor!: string;
29
+ /** `sub` de Azure AD del operador del dashboard. */
30
+ @RequiredActorId()
31
+ actorId!: string;
32
+
33
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
34
+ @OptionalEmail()
35
+ actor?: string;
31
36
  }
32
37
 
33
38
  /** Query de privateGetReconciliationItem. */
@@ -41,8 +46,13 @@ export class PrivateListReconciliationDefinitionsQuery extends ListReconciliatio
41
46
  @RequiredId()
42
47
  author!: string;
43
48
 
44
- @RequiredEmail()
45
- actor!: string;
49
+ /** `sub` de Azure AD del operador del dashboard. */
50
+ @RequiredActorId()
51
+ actorId!: string;
52
+
53
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
54
+ @OptionalEmail()
55
+ actor?: string;
46
56
  }
47
57
 
48
58
  /** Body de privateConfigureReconciliationDefinition. */
@@ -53,8 +63,13 @@ export class PrivateConfigureReconciliationDefinitionRequest extends ConfigureRe
53
63
  @RequiredId()
54
64
  author!: string;
55
65
 
56
- @RequiredEmail()
57
- actor!: string;
66
+ /** `sub` de Azure AD del operador del dashboard. */
67
+ @RequiredActorId()
68
+ actorId!: string;
69
+
70
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
71
+ @OptionalEmail()
72
+ actor?: string;
58
73
  }
59
74
 
60
75
  /** Query de privateListReconciliationRuns. */
@@ -65,8 +80,13 @@ export class PrivateListReconciliationRunsQuery extends ListReconciliationRunsQu
65
80
  @RequiredId()
66
81
  author!: string;
67
82
 
68
- @RequiredEmail()
69
- actor!: string;
83
+ /** `sub` de Azure AD del operador del dashboard. */
84
+ @RequiredActorId()
85
+ actorId!: string;
86
+
87
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
88
+ @OptionalEmail()
89
+ actor?: string;
70
90
  }
71
91
 
72
92
  /** Body de privateRunReconciliation: responde 202 con `runId`. */
@@ -77,8 +97,13 @@ export class PrivateRunReconciliationRequest extends RunReconciliationRequest {
77
97
  @RequiredId()
78
98
  author!: string;
79
99
 
80
- @RequiredEmail()
81
- actor!: string;
100
+ /** `sub` de Azure AD del operador del dashboard. */
101
+ @RequiredActorId()
102
+ actorId!: string;
103
+
104
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
105
+ @OptionalEmail()
106
+ actor?: string;
82
107
  }
83
108
 
84
109
  /** Query de privateGetReconciliationMatrix. */
@@ -89,8 +114,13 @@ export class PrivateGetReconciliationMatrixQuery extends GetReconciliationMatrix
89
114
  @RequiredId()
90
115
  author!: string;
91
116
 
92
- @RequiredEmail()
93
- actor!: string;
117
+ /** `sub` de Azure AD del operador del dashboard. */
118
+ @RequiredActorId()
119
+ actorId!: string;
120
+
121
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
122
+ @OptionalEmail()
123
+ actor?: string;
94
124
  }
95
125
 
96
126
  /** Query de privateGetReconciliationOverview. */
@@ -101,8 +131,13 @@ export class PrivateGetReconciliationOverviewQuery extends GetReconciliationOver
101
131
  @RequiredId()
102
132
  author!: string;
103
133
 
104
- @RequiredEmail()
105
- actor!: string;
134
+ /** `sub` de Azure AD del operador del dashboard. */
135
+ @RequiredActorId()
136
+ actorId!: string;
137
+
138
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
139
+ @OptionalEmail()
140
+ actor?: string;
106
141
  }
107
142
 
108
143
  /** Query de privateGetReconciliationSummary. */
@@ -113,8 +148,13 @@ export class PrivateGetReconciliationSummaryQuery extends GetReconciliationSumma
113
148
  @RequiredId()
114
149
  author!: string;
115
150
 
116
- @RequiredEmail()
117
- actor!: string;
151
+ /** `sub` de Azure AD del operador del dashboard. */
152
+ @RequiredActorId()
153
+ actorId!: string;
154
+
155
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
156
+ @OptionalEmail()
157
+ actor?: string;
118
158
  }
119
159
 
120
160
  /** Query de privateListReconciliationItems. */
@@ -125,8 +165,13 @@ export class PrivateListReconciliationItemsQuery extends ListReconciliationItems
125
165
  @RequiredId()
126
166
  author!: string;
127
167
 
128
- @RequiredEmail()
129
- actor!: string;
168
+ /** `sub` de Azure AD del operador del dashboard. */
169
+ @RequiredActorId()
170
+ actorId!: string;
171
+
172
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
173
+ @OptionalEmail()
174
+ actor?: string;
130
175
  }
131
176
 
132
177
  /** Body de privateResolveReconciliationItem. */
@@ -137,8 +182,13 @@ export class PrivateResolveReconciliationItemRequest extends ResolveReconciliati
137
182
  @RequiredId()
138
183
  author!: string;
139
184
 
140
- @RequiredEmail()
141
- actor!: string;
185
+ /** `sub` de Azure AD del operador del dashboard. */
186
+ @RequiredActorId()
187
+ actorId!: string;
188
+
189
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
190
+ @OptionalEmail()
191
+ actor?: string;
142
192
  }
143
193
 
144
194
  /** Body de privateReactivateReconciliationItem. */
@@ -149,8 +199,13 @@ export class PrivateReactivateReconciliationItemRequest extends ReactivateReconc
149
199
  @RequiredId()
150
200
  author!: string;
151
201
 
152
- @RequiredEmail()
153
- actor!: string;
202
+ /** `sub` de Azure AD del operador del dashboard. */
203
+ @RequiredActorId()
204
+ actorId!: string;
205
+
206
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
207
+ @OptionalEmail()
208
+ actor?: string;
154
209
  }
155
210
 
156
211
  /** Body de privateAddReconciliationItemNote. */
@@ -161,6 +216,11 @@ export class PrivateAddReconciliationItemNoteRequest extends AddReconciliationIt
161
216
  @RequiredId()
162
217
  author!: string;
163
218
 
164
- @RequiredEmail()
165
- actor!: string;
219
+ /** `sub` de Azure AD del operador del dashboard. */
220
+ @RequiredActorId()
221
+ actorId!: string;
222
+
223
+ /** @deprecated Solo para la auditoría de loan-retail-audit. */
224
+ @OptionalEmail()
225
+ actor?: string;
166
226
  }
@@ -1,8 +1,8 @@
1
1
  import { Expose, Transform } from 'class-transformer';
2
- import { IsEmail, IsOptional, IsString, Matches, MinLength } from 'class-validator';
2
+ import { IsString, Matches, MinLength } from 'class-validator';
3
3
  import { RECONCILIATION_MIN_NOTE_LENGTH, RECONCILIATION_PERIOD_KEY_PATTERN } from '../../constants/reconciliationValidation';
4
4
 
5
- export { PageLimit, PageToken, RequiredEmail, RequiredId, RequiredReason } from '../../../transferNote/dtos/requests/transferNoteRequestDecorators';
5
+ export { OptionalEmail, PageLimit, PageToken, RequiredActorId, RequiredEmail, RequiredId, RequiredReason } from '../../../transferNote/dtos/requests/transferNoteRequestDecorators';
6
6
 
7
7
  /** Periodo obligatorio: día, semana ISO o mes. */
8
8
  export function PeriodKey(): PropertyDecorator {
@@ -21,12 +21,3 @@ export function NoteText(): PropertyDecorator {
21
21
  MinLength(RECONCILIATION_MIN_NOTE_LENGTH)(target, key);
22
22
  };
23
23
  }
24
-
25
- /** Email opcional. */
26
- export function OptionalEmail(): PropertyDecorator {
27
- return (target, key) => {
28
- Expose()(target, key);
29
- IsOptional()(target, key);
30
- IsEmail()(target, key);
31
- };
32
- }
@@ -1,4 +1,7 @@
1
1
  /** Codes del feed genérico que implementa cada dueño del dato. */
2
2
  export enum ReconciliationFeedErrorCodeEnum {
3
3
  FEED_RECORD_NOT_FOUND = 'FEED_RECORD_NOT_FOUND',
4
+ FEED_CONCEPT_NOT_SUPPORTED = 'FEED_CONCEPT_NOT_SUPPORTED',
5
+ INVALID_FEED_QUERY = 'INVALID_FEED_QUERY',
6
+ FEED_SOURCE_UNAVAILABLE = 'FEED_SOURCE_UNAVAILABLE',
4
7
  }
@@ -8,3 +8,6 @@ export const TRANSFER_NOTE_ISO_WEEK_PATTERN = /^\d{4}-W(0[1-9]|[1-4]\d|5[0-3])$/
8
8
  export const TRANSFER_NOTE_CLABE_PATTERN = /^\d{18}$/;
9
9
 
10
10
  export const TRANSFER_NOTE_MAX_PAGE_SIZE = 100;
11
+
12
+ /** Largo máximo del id del operador (`sub` de Azure AD). */
13
+ export const TRANSFER_NOTE_ACTOR_ID_MAX_LENGTH = 128;