@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.
- package/_test_/unit/collection/authorizeCollectionMovementRequest.test.ts +33 -0
- package/_test_/unit/reconciliation/reconciliationCatalogs.test.ts +9 -0
- package/_test_/unit/reconciliation/reconciliationRequests.test.ts +23 -4
- package/_test_/unit/transferNote/transferNoteConfigAndPrivate.test.ts +23 -8
- package/bin/collection/dtos/AuthorizeCollectionMovementRequest.d.ts +1 -0
- package/bin/collection/dtos/AuthorizeCollectionMovementRequest.js +6 -0
- package/bin/reconciliation/constants/reconciliationErrorHttpStatus.d.ts +7 -3
- package/bin/reconciliation/constants/reconciliationErrorHttpStatus.js +4 -1
- package/bin/reconciliation/dtos/requests/PrivateReconciliationRequests.d.ts +49 -13
- package/bin/reconciliation/dtos/requests/PrivateReconciliationRequests.js +61 -13
- package/bin/reconciliation/dtos/requests/reconciliationRequestDecorators.d.ts +1 -3
- package/bin/reconciliation/dtos/requests/reconciliationRequestDecorators.js +3 -10
- package/bin/reconciliation/enums/ReconciliationFeedErrorCodeEnum.d.ts +4 -1
- package/bin/reconciliation/enums/ReconciliationFeedErrorCodeEnum.js +3 -0
- package/bin/transferNote/constants/transferNoteValidation.d.ts +2 -0
- package/bin/transferNote/constants/transferNoteValidation.js +3 -1
- package/bin/transferNote/dtos/requests/PrivateTransferNoteRequests.d.ts +41 -11
- package/bin/transferNote/dtos/requests/PrivateTransferNoteRequests.js +51 -11
- package/bin/transferNote/dtos/requests/transferNoteRequestDecorators.d.ts +4 -0
- package/bin/transferNote/dtos/requests/transferNoteRequestDecorators.js +26 -0
- package/package.json +1 -1
- package/src/collection/dtos/AuthorizeCollectionMovementRequest.ts +3 -1
- package/src/reconciliation/constants/reconciliationErrorHttpStatus.ts +6 -3
- package/src/reconciliation/dtos/requests/PrivateReconciliationRequests.ts +86 -26
- package/src/reconciliation/dtos/requests/reconciliationRequestDecorators.ts +2 -11
- package/src/reconciliation/enums/ReconciliationFeedErrorCodeEnum.ts +3 -0
- package/src/transferNote/constants/transferNoteValidation.ts +3 -0
- package/src/transferNote/dtos/requests/PrivateTransferNoteRequests.ts +72 -22
- package/src/transferNote/dtos/requests/transferNoteRequestDecorators.ts +33 -2
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
2
|
+
import { plainToInstance } from 'class-transformer';
|
|
3
|
+
import { validate } from 'class-validator';
|
|
4
|
+
import { AuthorizeCollectionMovementRequest } from '../../../src/collection/index';
|
|
5
|
+
|
|
6
|
+
const VALID = {
|
|
7
|
+
executionId: 'exec-1',
|
|
8
|
+
directoryId: 'dir-1',
|
|
9
|
+
provider: 'wallet',
|
|
10
|
+
mechanism: 'MXN_DIRECT',
|
|
11
|
+
amount: 100,
|
|
12
|
+
currencyId: 'MXN',
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
async function invalidProperties(body: Record<string, unknown>): Promise<string[]> {
|
|
16
|
+
const dto = plainToInstance(AuthorizeCollectionMovementRequest, body);
|
|
17
|
+
return (await validate(dto as object)).map((e) => e.property);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
describe('AuthorizeCollectionMovementRequest.tenantId', () => {
|
|
21
|
+
it('acepta el request sin tenantId', async () => {
|
|
22
|
+
expect(await invalidProperties(VALID)).toEqual([]);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('acepta el tenant SOFOM del intento de cobro', async () => {
|
|
26
|
+
expect(await invalidProperties({ ...VALID, tenantId: 'surekeep' })).toEqual([]);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
it('rechaza tenantId vacío o no string', async () => {
|
|
30
|
+
expect(await invalidProperties({ ...VALID, tenantId: '' })).toEqual(['tenantId']);
|
|
31
|
+
expect(await invalidProperties({ ...VALID, tenantId: 42 })).toEqual(['tenantId']);
|
|
32
|
+
});
|
|
33
|
+
});
|
|
@@ -106,6 +106,15 @@ describe('catálogos de reconciliation', () => {
|
|
|
106
106
|
expect(RECONCILIATION_FEED_ERROR_HTTP_STATUS[ReconciliationFeedErrorCodeEnum.FEED_RECORD_NOT_FOUND]).toBe(404);
|
|
107
107
|
});
|
|
108
108
|
|
|
109
|
+
it('codes del feed genérico con su status', () => {
|
|
110
|
+
expect(Object.values(ReconciliationFeedErrorCodeEnum).sort()).toEqual(
|
|
111
|
+
['FEED_CONCEPT_NOT_SUPPORTED', 'FEED_RECORD_NOT_FOUND', 'FEED_SOURCE_UNAVAILABLE', 'INVALID_FEED_QUERY'],
|
|
112
|
+
);
|
|
113
|
+
expect(RECONCILIATION_FEED_ERROR_HTTP_STATUS[ReconciliationFeedErrorCodeEnum.FEED_CONCEPT_NOT_SUPPORTED]).toBe(400);
|
|
114
|
+
expect(RECONCILIATION_FEED_ERROR_HTTP_STATUS[ReconciliationFeedErrorCodeEnum.INVALID_FEED_QUERY]).toBe(400);
|
|
115
|
+
expect(RECONCILIATION_FEED_ERROR_HTTP_STATUS[ReconciliationFeedErrorCodeEnum.FEED_SOURCE_UNAVAILABLE]).toBe(502);
|
|
116
|
+
});
|
|
117
|
+
|
|
109
118
|
it('nombres de los eventos que publica y consume el motor', () => {
|
|
110
119
|
expect(RECONCILIATION_EVENTS_SOURCE).toBe('fiado.reconciliation');
|
|
111
120
|
expect(ReconciliationEventDetailTypeEnum.RECONCILIATION_ITEM_MATCHED).toBe('reconciliation.ReconciliationItemMatched');
|
|
@@ -35,7 +35,8 @@ function errorsOf<T extends object>(cls: new () => T, payload: Record<string, un
|
|
|
35
35
|
return validateSync(dto).map((e) => e.property);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
const
|
|
38
|
+
const service = { tenantId: 'surekeep', author: 'conciliacion-dashboard' };
|
|
39
|
+
const operator = { ...service, actorId: 'aZ3x9Qk-azure-ad-sub_01' };
|
|
39
40
|
|
|
40
41
|
describe('definiciones', () => {
|
|
41
42
|
it('configurar pide un estado válido y listas de sandbox opcionales', () => {
|
|
@@ -138,7 +139,7 @@ describe('resolución, reactivación y notas', () => {
|
|
|
138
139
|
});
|
|
139
140
|
|
|
140
141
|
describe('espejo privado', () => {
|
|
141
|
-
it('agrega tenantId, author y
|
|
142
|
+
it('agrega tenantId, author y actorId a la versión pública', () => {
|
|
142
143
|
expect(
|
|
143
144
|
errorsOf(PrivateResolveReconciliationItemRequest, {
|
|
144
145
|
...operator,
|
|
@@ -150,7 +151,7 @@ describe('espejo privado', () => {
|
|
|
150
151
|
type: ReconciliationResolutionTypeEnum.EXCLUDE,
|
|
151
152
|
reason: 'prueba interna',
|
|
152
153
|
});
|
|
153
|
-
expect(missing).toEqual(expect.arrayContaining(['tenantId', 'author', '
|
|
154
|
+
expect(missing).toEqual(expect.arrayContaining(['tenantId', 'author', 'actorId']));
|
|
154
155
|
expect(errorsOf(PrivateAddReconciliationItemNoteRequest, { ...operator, actor: 'no-es-correo', text: 'revisar con tesorería' })).toContain(
|
|
155
156
|
'actor',
|
|
156
157
|
);
|
|
@@ -167,11 +168,29 @@ describe('espejo privado', () => {
|
|
|
167
168
|
expect(errorsOf(PrivateRunReconciliationRequest, { ...operator, definitionId: 'm8-gateway-bank', periodKey: '2026-10-29' })).toEqual(
|
|
168
169
|
[],
|
|
169
170
|
);
|
|
170
|
-
expect(errorsOf(PrivateGetReconciliationItemQuery, { tenantId: 'surekeep', author: 'x' })).toContain('
|
|
171
|
+
expect(errorsOf(PrivateGetReconciliationItemQuery, { tenantId: 'surekeep', author: 'x' })).toContain('actorId');
|
|
171
172
|
expect(errorsOf(PrivateListReconciliationItemsQuery, { ...operator, definitionId: 'm8-gateway-sofom' })).toEqual([]);
|
|
172
173
|
});
|
|
173
174
|
});
|
|
174
175
|
|
|
176
|
+
describe('operador del espejo', () => {
|
|
177
|
+
it('viaja por actorId, que no puede ser un email; actor (email) es opcional', () => {
|
|
178
|
+
const { PrivateReconciliationOperatorCaller } = Reconciliation;
|
|
179
|
+
expect(errorsOf(PrivateReconciliationOperatorCaller, operator)).toEqual([]);
|
|
180
|
+
expect(errorsOf(PrivateReconciliationOperatorCaller, { ...operator, actor: 'operador@fsa.mx' })).toEqual([]);
|
|
181
|
+
expect(errorsOf(PrivateReconciliationOperatorCaller, service)).toContain('actorId');
|
|
182
|
+
expect(errorsOf(PrivateReconciliationOperatorCaller, { ...service, actorId: 'operador@fsa.mx' })).toContain('actorId');
|
|
183
|
+
expect(
|
|
184
|
+
errorsOf(PrivateResolveReconciliationItemRequest, {
|
|
185
|
+
...service,
|
|
186
|
+
actorId: 'operador@fsa.mx',
|
|
187
|
+
type: ReconciliationResolutionTypeEnum.EXCLUDE,
|
|
188
|
+
reason: 'prueba interna',
|
|
189
|
+
}),
|
|
190
|
+
).toContain('actorId');
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
|
|
175
194
|
describe('feed genérico de los dueños', () => {
|
|
176
195
|
it('lista por tenant y ventana, con cursor opcional', () => {
|
|
177
196
|
expect(
|
|
@@ -30,7 +30,8 @@ function errorsOf<T extends object>(cls: new () => T, payload: Record<string, un
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
const service = { tenantId: 'surekeep', author: 'conciliacion-dashboard' };
|
|
33
|
-
const
|
|
33
|
+
const actorId = 'aZ3x9Qk-azure-ad-sub_01';
|
|
34
|
+
const caller = { ...service, actorId };
|
|
34
35
|
const longReason = 'emisión manual por corte fallido del lunes';
|
|
35
36
|
|
|
36
37
|
describe('UpdateTransferNoteConfigRequest', () => {
|
|
@@ -97,12 +98,15 @@ describe('UpdateTransferNoteConfigRequest', () => {
|
|
|
97
98
|
});
|
|
98
99
|
|
|
99
100
|
describe('espejo privado', () => {
|
|
100
|
-
it('agrega tenantId, author y
|
|
101
|
+
it('agrega tenantId, author y actorId a la versión pública', () => {
|
|
101
102
|
expect(errorsOf(PrivateIssueTransferNoteRequest, { ...caller, pairKey: 'p-1', isoWeek: '2026-W43', reason: longReason })).toEqual([]);
|
|
102
103
|
expect(errorsOf(PrivateIssueTransferNoteRequest, { pairKey: 'p-1', isoWeek: '2026-W43', reason: longReason })).toEqual(
|
|
103
|
-
expect.arrayContaining(['tenantId', 'author', '
|
|
104
|
+
expect.arrayContaining(['tenantId', 'author', 'actorId']),
|
|
104
105
|
);
|
|
105
106
|
expect(errorsOf(PrivateIssueTransferNoteRequest, { ...caller, actor: 'operador', pairKey: 'p-1', isoWeek: '2026-W43', reason: longReason })).toContain('actor');
|
|
107
|
+
expect(
|
|
108
|
+
errorsOf(PrivateIssueTransferNoteRequest, { ...caller, actorId: 'operador@fsa.mx', pairKey: 'p-1', isoWeek: '2026-W43', reason: longReason }),
|
|
109
|
+
).toContain('actorId');
|
|
106
110
|
expect(
|
|
107
111
|
errorsOf(PrivateCaptureTransferNoteSpeiRequest, {
|
|
108
112
|
...caller,
|
|
@@ -113,21 +117,32 @@ describe('espejo privado', () => {
|
|
|
113
117
|
).toEqual([]);
|
|
114
118
|
});
|
|
115
119
|
|
|
116
|
-
it('las lecturas privadas también exigen author y
|
|
120
|
+
it('las lecturas privadas también exigen author y actorId', () => {
|
|
117
121
|
expect(errorsOf(PrivateGetTransferNoteQuery, caller)).toEqual([]);
|
|
118
|
-
expect(errorsOf(PrivateGetTransferNoteQuery, { tenantId: 'surekeep' })).toEqual(expect.arrayContaining(['author', '
|
|
122
|
+
expect(errorsOf(PrivateGetTransferNoteQuery, { tenantId: 'surekeep' })).toEqual(expect.arrayContaining(['author', 'actorId']));
|
|
119
123
|
expect(errorsOf(PrivateListTransferNotesQuery, { ...caller, limit: '20' })).toEqual([]);
|
|
120
124
|
});
|
|
121
125
|
|
|
122
|
-
it('confirm-settlement pide el caller con el
|
|
126
|
+
it('confirm-settlement pide el caller con el id del operador', () => {
|
|
123
127
|
expect(errorsOf(PrivateConfirmTransferNoteSettlementRequest, caller)).toEqual([]);
|
|
124
|
-
expect(errorsOf(PrivateConfirmTransferNoteSettlementRequest, service)).toContain('
|
|
128
|
+
expect(errorsOf(PrivateConfirmTransferNoteSettlementRequest, service)).toContain('actorId');
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
it('el operador viaja por actorId; actor (email) es opcional', () => {
|
|
132
|
+
const { PrivateTransferNoteOperatorCaller } = TransferNote;
|
|
133
|
+
expect(errorsOf(PrivateTransferNoteOperatorCaller, caller)).toEqual([]);
|
|
134
|
+
expect(errorsOf(PrivateTransferNoteOperatorCaller, { ...caller, actor: 'operador@fsa.mx' })).toEqual([]);
|
|
135
|
+
expect(errorsOf(PrivateTransferNoteOperatorCaller, service)).toContain('actorId');
|
|
136
|
+
expect(errorsOf(PrivateTransferNoteOperatorCaller, { ...service, actorId: '' })).toContain('actorId');
|
|
137
|
+
expect(errorsOf(PrivateTransferNoteOperatorCaller, { ...service, actorId: 'operador@fsa.mx' })).toContain('actorId');
|
|
138
|
+
expect(errorsOf(PrivateTransferNoteOperatorCaller, { ...service, actorId: 'x'.repeat(129) })).toContain('actorId');
|
|
139
|
+
expect(errorsOf(PrivateTransferNoteOperatorCaller, { ...caller, actor: 'no-es-correo' })).toContain('actor');
|
|
125
140
|
});
|
|
126
141
|
|
|
127
142
|
it('el corte manual pide tenant, semana y author', () => {
|
|
128
143
|
expect(errorsOf(PrivateRunTransferNoteCutoffRequest, { ...service, isoWeek: '2026-W43' })).toEqual([]);
|
|
129
144
|
expect(errorsOf(PrivateRunTransferNoteCutoffRequest, { ...service, isoWeek: 'W43' })).toContain('isoWeek');
|
|
130
|
-
expect(Object.keys(plainToInstance(PrivateRunTransferNoteCutoffRequest, caller, { excludeExtraneousValues: true }))).not.toContain('
|
|
145
|
+
expect(Object.keys(plainToInstance(PrivateRunTransferNoteCutoffRequest, caller, { excludeExtraneousValues: true }))).not.toContain('actorId');
|
|
131
146
|
});
|
|
132
147
|
|
|
133
148
|
it('el ajuste es idempotente por adjustmentKey y lleva monto entero distinto de cero', () => {
|
|
@@ -11,6 +11,7 @@ export declare class AuthorizeCollectionMovementRequest {
|
|
|
11
11
|
intentId?: string;
|
|
12
12
|
chargeId?: string;
|
|
13
13
|
holdTxId?: string;
|
|
14
|
+
tenantId?: string;
|
|
14
15
|
/**
|
|
15
16
|
* Tarifa con la que se registra el cobro. Presente, el movimiento deja además una transacción
|
|
16
17
|
* Fiado: asiento contable, historial visible para el cliente y comisión declarada. Ausente, el
|
|
@@ -57,6 +57,12 @@ __decorate([
|
|
|
57
57
|
(0, class_validator_1.IsString)(),
|
|
58
58
|
__metadata("design:type", String)
|
|
59
59
|
], AuthorizeCollectionMovementRequest.prototype, "holdTxId", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
(0, class_validator_1.IsString)(),
|
|
63
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], AuthorizeCollectionMovementRequest.prototype, "tenantId", void 0);
|
|
60
66
|
__decorate([
|
|
61
67
|
(0, class_validator_1.IsOptional)(),
|
|
62
68
|
(0, class_validator_1.ValidateNested)(),
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ReconciliationErrorCodeEnum as C } from '../enums/ReconciliationErrorCodeEnum';
|
|
2
|
-
import { ReconciliationFeedErrorCodeEnum } from '../enums/ReconciliationFeedErrorCodeEnum';
|
|
3
2
|
/** Status HTTP de cada code: 404 no existe · 409 conflicto de estado · 422 regla de negocio · 502 falló el dueño del dinero. */
|
|
4
3
|
export declare const RECONCILIATION_ERROR_HTTP_STATUS: Readonly<Record<C, 404 | 409 | 422 | 502>>;
|
|
5
|
-
/** Status HTTP de los codes del feed genérico. */
|
|
6
|
-
export declare const RECONCILIATION_FEED_ERROR_HTTP_STATUS:
|
|
4
|
+
/** Status HTTP de los codes del feed genérico: 400 request inválido · 404 no existe · 502 falló la fuente. */
|
|
5
|
+
export declare const RECONCILIATION_FEED_ERROR_HTTP_STATUS: {
|
|
6
|
+
readonly FEED_RECORD_NOT_FOUND: 404;
|
|
7
|
+
readonly FEED_CONCEPT_NOT_SUPPORTED: 400;
|
|
8
|
+
readonly INVALID_FEED_QUERY: 400;
|
|
9
|
+
readonly FEED_SOURCE_UNAVAILABLE: 502;
|
|
10
|
+
};
|
|
@@ -17,7 +17,10 @@ exports.RECONCILIATION_ERROR_HTTP_STATUS = {
|
|
|
17
17
|
[ReconciliationErrorCodeEnum_1.ReconciliationErrorCodeEnum.ITEM_ADJUSTED]: 409,
|
|
18
18
|
[ReconciliationErrorCodeEnum_1.ReconciliationErrorCodeEnum.AUTHOR_NOT_ALLOWED]: 422,
|
|
19
19
|
};
|
|
20
|
-
/** Status HTTP de los codes del feed genérico. */
|
|
20
|
+
/** Status HTTP de los codes del feed genérico: 400 request inválido · 404 no existe · 502 falló la fuente. */
|
|
21
21
|
exports.RECONCILIATION_FEED_ERROR_HTTP_STATUS = {
|
|
22
22
|
[ReconciliationFeedErrorCodeEnum_1.ReconciliationFeedErrorCodeEnum.FEED_RECORD_NOT_FOUND]: 404,
|
|
23
|
+
[ReconciliationFeedErrorCodeEnum_1.ReconciliationFeedErrorCodeEnum.FEED_CONCEPT_NOT_SUPPORTED]: 400,
|
|
24
|
+
[ReconciliationFeedErrorCodeEnum_1.ReconciliationFeedErrorCodeEnum.INVALID_FEED_QUERY]: 400,
|
|
25
|
+
[ReconciliationFeedErrorCodeEnum_1.ReconciliationFeedErrorCodeEnum.FEED_SOURCE_UNAVAILABLE]: 502,
|
|
23
26
|
};
|
|
@@ -5,9 +5,12 @@ export declare class PrivateReconciliationCaller {
|
|
|
5
5
|
tenantId: string;
|
|
6
6
|
author: string;
|
|
7
7
|
}
|
|
8
|
-
/** Caller del espejo que llama fiado-dashboard;
|
|
8
|
+
/** Caller del espejo que llama fiado-dashboard; el operador viaja por `actorId`. */
|
|
9
9
|
export declare class PrivateReconciliationOperatorCaller extends PrivateReconciliationCaller {
|
|
10
|
-
|
|
10
|
+
/** `sub` de Azure AD del operador del dashboard. */
|
|
11
|
+
actorId: string;
|
|
12
|
+
/** @deprecated Solo para la auditoría de loan-retail-audit. */
|
|
13
|
+
actor?: string;
|
|
11
14
|
}
|
|
12
15
|
/** Query de privateGetReconciliationItem. */
|
|
13
16
|
export declare class PrivateGetReconciliationItemQuery extends PrivateReconciliationOperatorCaller {
|
|
@@ -16,65 +19,98 @@ export declare class PrivateGetReconciliationItemQuery extends PrivateReconcilia
|
|
|
16
19
|
export declare class PrivateListReconciliationDefinitionsQuery extends ListReconciliationDefinitionsQuery {
|
|
17
20
|
tenantId: string;
|
|
18
21
|
author: string;
|
|
19
|
-
|
|
22
|
+
/** `sub` de Azure AD del operador del dashboard. */
|
|
23
|
+
actorId: string;
|
|
24
|
+
/** @deprecated Solo para la auditoría de loan-retail-audit. */
|
|
25
|
+
actor?: string;
|
|
20
26
|
}
|
|
21
27
|
/** Body de privateConfigureReconciliationDefinition. */
|
|
22
28
|
export declare class PrivateConfigureReconciliationDefinitionRequest extends ConfigureReconciliationDefinitionRequest {
|
|
23
29
|
tenantId: string;
|
|
24
30
|
author: string;
|
|
25
|
-
|
|
31
|
+
/** `sub` de Azure AD del operador del dashboard. */
|
|
32
|
+
actorId: string;
|
|
33
|
+
/** @deprecated Solo para la auditoría de loan-retail-audit. */
|
|
34
|
+
actor?: string;
|
|
26
35
|
}
|
|
27
36
|
/** Query de privateListReconciliationRuns. */
|
|
28
37
|
export declare class PrivateListReconciliationRunsQuery extends ListReconciliationRunsQuery {
|
|
29
38
|
tenantId: string;
|
|
30
39
|
author: string;
|
|
31
|
-
|
|
40
|
+
/** `sub` de Azure AD del operador del dashboard. */
|
|
41
|
+
actorId: string;
|
|
42
|
+
/** @deprecated Solo para la auditoría de loan-retail-audit. */
|
|
43
|
+
actor?: string;
|
|
32
44
|
}
|
|
33
45
|
/** Body de privateRunReconciliation: responde 202 con `runId`. */
|
|
34
46
|
export declare class PrivateRunReconciliationRequest extends RunReconciliationRequest {
|
|
35
47
|
tenantId: string;
|
|
36
48
|
author: string;
|
|
37
|
-
|
|
49
|
+
/** `sub` de Azure AD del operador del dashboard. */
|
|
50
|
+
actorId: string;
|
|
51
|
+
/** @deprecated Solo para la auditoría de loan-retail-audit. */
|
|
52
|
+
actor?: string;
|
|
38
53
|
}
|
|
39
54
|
/** Query de privateGetReconciliationMatrix. */
|
|
40
55
|
export declare class PrivateGetReconciliationMatrixQuery extends GetReconciliationMatrixQuery {
|
|
41
56
|
tenantId: string;
|
|
42
57
|
author: string;
|
|
43
|
-
|
|
58
|
+
/** `sub` de Azure AD del operador del dashboard. */
|
|
59
|
+
actorId: string;
|
|
60
|
+
/** @deprecated Solo para la auditoría de loan-retail-audit. */
|
|
61
|
+
actor?: string;
|
|
44
62
|
}
|
|
45
63
|
/** Query de privateGetReconciliationOverview. */
|
|
46
64
|
export declare class PrivateGetReconciliationOverviewQuery extends GetReconciliationOverviewQuery {
|
|
47
65
|
tenantId: string;
|
|
48
66
|
author: string;
|
|
49
|
-
|
|
67
|
+
/** `sub` de Azure AD del operador del dashboard. */
|
|
68
|
+
actorId: string;
|
|
69
|
+
/** @deprecated Solo para la auditoría de loan-retail-audit. */
|
|
70
|
+
actor?: string;
|
|
50
71
|
}
|
|
51
72
|
/** Query de privateGetReconciliationSummary. */
|
|
52
73
|
export declare class PrivateGetReconciliationSummaryQuery extends GetReconciliationSummaryQuery {
|
|
53
74
|
tenantId: string;
|
|
54
75
|
author: string;
|
|
55
|
-
|
|
76
|
+
/** `sub` de Azure AD del operador del dashboard. */
|
|
77
|
+
actorId: string;
|
|
78
|
+
/** @deprecated Solo para la auditoría de loan-retail-audit. */
|
|
79
|
+
actor?: string;
|
|
56
80
|
}
|
|
57
81
|
/** Query de privateListReconciliationItems. */
|
|
58
82
|
export declare class PrivateListReconciliationItemsQuery extends ListReconciliationItemsQuery {
|
|
59
83
|
tenantId: string;
|
|
60
84
|
author: string;
|
|
61
|
-
|
|
85
|
+
/** `sub` de Azure AD del operador del dashboard. */
|
|
86
|
+
actorId: string;
|
|
87
|
+
/** @deprecated Solo para la auditoría de loan-retail-audit. */
|
|
88
|
+
actor?: string;
|
|
62
89
|
}
|
|
63
90
|
/** Body de privateResolveReconciliationItem. */
|
|
64
91
|
export declare class PrivateResolveReconciliationItemRequest extends ResolveReconciliationItemRequest {
|
|
65
92
|
tenantId: string;
|
|
66
93
|
author: string;
|
|
67
|
-
|
|
94
|
+
/** `sub` de Azure AD del operador del dashboard. */
|
|
95
|
+
actorId: string;
|
|
96
|
+
/** @deprecated Solo para la auditoría de loan-retail-audit. */
|
|
97
|
+
actor?: string;
|
|
68
98
|
}
|
|
69
99
|
/** Body de privateReactivateReconciliationItem. */
|
|
70
100
|
export declare class PrivateReactivateReconciliationItemRequest extends ReactivateReconciliationItemRequest {
|
|
71
101
|
tenantId: string;
|
|
72
102
|
author: string;
|
|
73
|
-
|
|
103
|
+
/** `sub` de Azure AD del operador del dashboard. */
|
|
104
|
+
actorId: string;
|
|
105
|
+
/** @deprecated Solo para la auditoría de loan-retail-audit. */
|
|
106
|
+
actor?: string;
|
|
74
107
|
}
|
|
75
108
|
/** Body de privateAddReconciliationItemNote. */
|
|
76
109
|
export declare class PrivateAddReconciliationItemNoteRequest extends AddReconciliationItemNoteRequest {
|
|
77
110
|
tenantId: string;
|
|
78
111
|
author: string;
|
|
79
|
-
|
|
112
|
+
/** `sub` de Azure AD del operador del dashboard. */
|
|
113
|
+
actorId: string;
|
|
114
|
+
/** @deprecated Solo para la auditoría de loan-retail-audit. */
|
|
115
|
+
actor?: string;
|
|
80
116
|
}
|
|
@@ -25,12 +25,16 @@ __decorate([
|
|
|
25
25
|
(0, reconciliationRequestDecorators_1.RequiredId)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], PrivateReconciliationCaller.prototype, "author", void 0);
|
|
28
|
-
/** Caller del espejo que llama fiado-dashboard;
|
|
28
|
+
/** Caller del espejo que llama fiado-dashboard; el operador viaja por `actorId`. */
|
|
29
29
|
class PrivateReconciliationOperatorCaller extends PrivateReconciliationCaller {
|
|
30
30
|
}
|
|
31
31
|
exports.PrivateReconciliationOperatorCaller = PrivateReconciliationOperatorCaller;
|
|
32
32
|
__decorate([
|
|
33
|
-
(0, reconciliationRequestDecorators_1.
|
|
33
|
+
(0, reconciliationRequestDecorators_1.RequiredActorId)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], PrivateReconciliationOperatorCaller.prototype, "actorId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, reconciliationRequestDecorators_1.OptionalEmail)(),
|
|
34
38
|
__metadata("design:type", String)
|
|
35
39
|
], PrivateReconciliationOperatorCaller.prototype, "actor", void 0);
|
|
36
40
|
/** Query de privateGetReconciliationItem. */
|
|
@@ -50,7 +54,11 @@ __decorate([
|
|
|
50
54
|
__metadata("design:type", String)
|
|
51
55
|
], PrivateListReconciliationDefinitionsQuery.prototype, "author", void 0);
|
|
52
56
|
__decorate([
|
|
53
|
-
(0, reconciliationRequestDecorators_1.
|
|
57
|
+
(0, reconciliationRequestDecorators_1.RequiredActorId)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], PrivateListReconciliationDefinitionsQuery.prototype, "actorId", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, reconciliationRequestDecorators_1.OptionalEmail)(),
|
|
54
62
|
__metadata("design:type", String)
|
|
55
63
|
], PrivateListReconciliationDefinitionsQuery.prototype, "actor", void 0);
|
|
56
64
|
/** Body de privateConfigureReconciliationDefinition. */
|
|
@@ -66,7 +74,11 @@ __decorate([
|
|
|
66
74
|
__metadata("design:type", String)
|
|
67
75
|
], PrivateConfigureReconciliationDefinitionRequest.prototype, "author", void 0);
|
|
68
76
|
__decorate([
|
|
69
|
-
(0, reconciliationRequestDecorators_1.
|
|
77
|
+
(0, reconciliationRequestDecorators_1.RequiredActorId)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], PrivateConfigureReconciliationDefinitionRequest.prototype, "actorId", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, reconciliationRequestDecorators_1.OptionalEmail)(),
|
|
70
82
|
__metadata("design:type", String)
|
|
71
83
|
], PrivateConfigureReconciliationDefinitionRequest.prototype, "actor", void 0);
|
|
72
84
|
/** Query de privateListReconciliationRuns. */
|
|
@@ -82,7 +94,11 @@ __decorate([
|
|
|
82
94
|
__metadata("design:type", String)
|
|
83
95
|
], PrivateListReconciliationRunsQuery.prototype, "author", void 0);
|
|
84
96
|
__decorate([
|
|
85
|
-
(0, reconciliationRequestDecorators_1.
|
|
97
|
+
(0, reconciliationRequestDecorators_1.RequiredActorId)(),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], PrivateListReconciliationRunsQuery.prototype, "actorId", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, reconciliationRequestDecorators_1.OptionalEmail)(),
|
|
86
102
|
__metadata("design:type", String)
|
|
87
103
|
], PrivateListReconciliationRunsQuery.prototype, "actor", void 0);
|
|
88
104
|
/** Body de privateRunReconciliation: responde 202 con `runId`. */
|
|
@@ -98,7 +114,11 @@ __decorate([
|
|
|
98
114
|
__metadata("design:type", String)
|
|
99
115
|
], PrivateRunReconciliationRequest.prototype, "author", void 0);
|
|
100
116
|
__decorate([
|
|
101
|
-
(0, reconciliationRequestDecorators_1.
|
|
117
|
+
(0, reconciliationRequestDecorators_1.RequiredActorId)(),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], PrivateRunReconciliationRequest.prototype, "actorId", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, reconciliationRequestDecorators_1.OptionalEmail)(),
|
|
102
122
|
__metadata("design:type", String)
|
|
103
123
|
], PrivateRunReconciliationRequest.prototype, "actor", void 0);
|
|
104
124
|
/** Query de privateGetReconciliationMatrix. */
|
|
@@ -114,7 +134,11 @@ __decorate([
|
|
|
114
134
|
__metadata("design:type", String)
|
|
115
135
|
], PrivateGetReconciliationMatrixQuery.prototype, "author", void 0);
|
|
116
136
|
__decorate([
|
|
117
|
-
(0, reconciliationRequestDecorators_1.
|
|
137
|
+
(0, reconciliationRequestDecorators_1.RequiredActorId)(),
|
|
138
|
+
__metadata("design:type", String)
|
|
139
|
+
], PrivateGetReconciliationMatrixQuery.prototype, "actorId", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, reconciliationRequestDecorators_1.OptionalEmail)(),
|
|
118
142
|
__metadata("design:type", String)
|
|
119
143
|
], PrivateGetReconciliationMatrixQuery.prototype, "actor", void 0);
|
|
120
144
|
/** Query de privateGetReconciliationOverview. */
|
|
@@ -130,7 +154,11 @@ __decorate([
|
|
|
130
154
|
__metadata("design:type", String)
|
|
131
155
|
], PrivateGetReconciliationOverviewQuery.prototype, "author", void 0);
|
|
132
156
|
__decorate([
|
|
133
|
-
(0, reconciliationRequestDecorators_1.
|
|
157
|
+
(0, reconciliationRequestDecorators_1.RequiredActorId)(),
|
|
158
|
+
__metadata("design:type", String)
|
|
159
|
+
], PrivateGetReconciliationOverviewQuery.prototype, "actorId", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, reconciliationRequestDecorators_1.OptionalEmail)(),
|
|
134
162
|
__metadata("design:type", String)
|
|
135
163
|
], PrivateGetReconciliationOverviewQuery.prototype, "actor", void 0);
|
|
136
164
|
/** Query de privateGetReconciliationSummary. */
|
|
@@ -146,7 +174,11 @@ __decorate([
|
|
|
146
174
|
__metadata("design:type", String)
|
|
147
175
|
], PrivateGetReconciliationSummaryQuery.prototype, "author", void 0);
|
|
148
176
|
__decorate([
|
|
149
|
-
(0, reconciliationRequestDecorators_1.
|
|
177
|
+
(0, reconciliationRequestDecorators_1.RequiredActorId)(),
|
|
178
|
+
__metadata("design:type", String)
|
|
179
|
+
], PrivateGetReconciliationSummaryQuery.prototype, "actorId", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, reconciliationRequestDecorators_1.OptionalEmail)(),
|
|
150
182
|
__metadata("design:type", String)
|
|
151
183
|
], PrivateGetReconciliationSummaryQuery.prototype, "actor", void 0);
|
|
152
184
|
/** Query de privateListReconciliationItems. */
|
|
@@ -162,7 +194,11 @@ __decorate([
|
|
|
162
194
|
__metadata("design:type", String)
|
|
163
195
|
], PrivateListReconciliationItemsQuery.prototype, "author", void 0);
|
|
164
196
|
__decorate([
|
|
165
|
-
(0, reconciliationRequestDecorators_1.
|
|
197
|
+
(0, reconciliationRequestDecorators_1.RequiredActorId)(),
|
|
198
|
+
__metadata("design:type", String)
|
|
199
|
+
], PrivateListReconciliationItemsQuery.prototype, "actorId", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
(0, reconciliationRequestDecorators_1.OptionalEmail)(),
|
|
166
202
|
__metadata("design:type", String)
|
|
167
203
|
], PrivateListReconciliationItemsQuery.prototype, "actor", void 0);
|
|
168
204
|
/** Body de privateResolveReconciliationItem. */
|
|
@@ -178,7 +214,11 @@ __decorate([
|
|
|
178
214
|
__metadata("design:type", String)
|
|
179
215
|
], PrivateResolveReconciliationItemRequest.prototype, "author", void 0);
|
|
180
216
|
__decorate([
|
|
181
|
-
(0, reconciliationRequestDecorators_1.
|
|
217
|
+
(0, reconciliationRequestDecorators_1.RequiredActorId)(),
|
|
218
|
+
__metadata("design:type", String)
|
|
219
|
+
], PrivateResolveReconciliationItemRequest.prototype, "actorId", void 0);
|
|
220
|
+
__decorate([
|
|
221
|
+
(0, reconciliationRequestDecorators_1.OptionalEmail)(),
|
|
182
222
|
__metadata("design:type", String)
|
|
183
223
|
], PrivateResolveReconciliationItemRequest.prototype, "actor", void 0);
|
|
184
224
|
/** Body de privateReactivateReconciliationItem. */
|
|
@@ -194,7 +234,11 @@ __decorate([
|
|
|
194
234
|
__metadata("design:type", String)
|
|
195
235
|
], PrivateReactivateReconciliationItemRequest.prototype, "author", void 0);
|
|
196
236
|
__decorate([
|
|
197
|
-
(0, reconciliationRequestDecorators_1.
|
|
237
|
+
(0, reconciliationRequestDecorators_1.RequiredActorId)(),
|
|
238
|
+
__metadata("design:type", String)
|
|
239
|
+
], PrivateReactivateReconciliationItemRequest.prototype, "actorId", void 0);
|
|
240
|
+
__decorate([
|
|
241
|
+
(0, reconciliationRequestDecorators_1.OptionalEmail)(),
|
|
198
242
|
__metadata("design:type", String)
|
|
199
243
|
], PrivateReactivateReconciliationItemRequest.prototype, "actor", void 0);
|
|
200
244
|
/** Body de privateAddReconciliationItemNote. */
|
|
@@ -210,6 +254,10 @@ __decorate([
|
|
|
210
254
|
__metadata("design:type", String)
|
|
211
255
|
], PrivateAddReconciliationItemNoteRequest.prototype, "author", void 0);
|
|
212
256
|
__decorate([
|
|
213
|
-
(0, reconciliationRequestDecorators_1.
|
|
257
|
+
(0, reconciliationRequestDecorators_1.RequiredActorId)(),
|
|
258
|
+
__metadata("design:type", String)
|
|
259
|
+
], PrivateAddReconciliationItemNoteRequest.prototype, "actorId", void 0);
|
|
260
|
+
__decorate([
|
|
261
|
+
(0, reconciliationRequestDecorators_1.OptionalEmail)(),
|
|
214
262
|
__metadata("design:type", String)
|
|
215
263
|
], PrivateAddReconciliationItemNoteRequest.prototype, "actor", void 0);
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export { PageLimit, PageToken, RequiredEmail, RequiredId, RequiredReason } from '../../../transferNote/dtos/requests/transferNoteRequestDecorators';
|
|
1
|
+
export { OptionalEmail, PageLimit, PageToken, RequiredActorId, RequiredEmail, RequiredId, RequiredReason } from '../../../transferNote/dtos/requests/transferNoteRequestDecorators';
|
|
2
2
|
/** Periodo obligatorio: día, semana ISO o mes. */
|
|
3
3
|
export declare function PeriodKey(): PropertyDecorator;
|
|
4
4
|
/** Texto de 10+ caracteres sin contar espacios de relleno. */
|
|
5
5
|
export declare function NoteText(): PropertyDecorator;
|
|
6
|
-
/** Email opcional. */
|
|
7
|
-
export declare function OptionalEmail(): PropertyDecorator;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RequiredReason = exports.RequiredId = exports.RequiredEmail = exports.PageToken = exports.PageLimit = void 0;
|
|
3
|
+
exports.RequiredReason = exports.RequiredId = exports.RequiredEmail = exports.RequiredActorId = exports.PageToken = exports.PageLimit = exports.OptionalEmail = void 0;
|
|
4
4
|
exports.PeriodKey = PeriodKey;
|
|
5
5
|
exports.NoteText = NoteText;
|
|
6
|
-
exports.OptionalEmail = OptionalEmail;
|
|
7
6
|
const class_transformer_1 = require("class-transformer");
|
|
8
7
|
const class_validator_1 = require("class-validator");
|
|
9
8
|
const reconciliationValidation_1 = require("../../constants/reconciliationValidation");
|
|
10
9
|
var transferNoteRequestDecorators_1 = require("../../../transferNote/dtos/requests/transferNoteRequestDecorators");
|
|
10
|
+
Object.defineProperty(exports, "OptionalEmail", { enumerable: true, get: function () { return transferNoteRequestDecorators_1.OptionalEmail; } });
|
|
11
11
|
Object.defineProperty(exports, "PageLimit", { enumerable: true, get: function () { return transferNoteRequestDecorators_1.PageLimit; } });
|
|
12
12
|
Object.defineProperty(exports, "PageToken", { enumerable: true, get: function () { return transferNoteRequestDecorators_1.PageToken; } });
|
|
13
|
+
Object.defineProperty(exports, "RequiredActorId", { enumerable: true, get: function () { return transferNoteRequestDecorators_1.RequiredActorId; } });
|
|
13
14
|
Object.defineProperty(exports, "RequiredEmail", { enumerable: true, get: function () { return transferNoteRequestDecorators_1.RequiredEmail; } });
|
|
14
15
|
Object.defineProperty(exports, "RequiredId", { enumerable: true, get: function () { return transferNoteRequestDecorators_1.RequiredId; } });
|
|
15
16
|
Object.defineProperty(exports, "RequiredReason", { enumerable: true, get: function () { return transferNoteRequestDecorators_1.RequiredReason; } });
|
|
@@ -29,11 +30,3 @@ function NoteText() {
|
|
|
29
30
|
(0, class_validator_1.MinLength)(reconciliationValidation_1.RECONCILIATION_MIN_NOTE_LENGTH)(target, key);
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
|
-
/** Email opcional. */
|
|
33
|
-
function OptionalEmail() {
|
|
34
|
-
return (target, key) => {
|
|
35
|
-
(0, class_transformer_1.Expose)()(target, key);
|
|
36
|
-
(0, class_validator_1.IsOptional)()(target, key);
|
|
37
|
-
(0, class_validator_1.IsEmail)()(target, key);
|
|
38
|
-
};
|
|
39
|
-
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/** Codes del feed genérico que implementa cada dueño del dato. */
|
|
2
2
|
export declare enum ReconciliationFeedErrorCodeEnum {
|
|
3
|
-
FEED_RECORD_NOT_FOUND = "FEED_RECORD_NOT_FOUND"
|
|
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
|
}
|
|
@@ -5,4 +5,7 @@ exports.ReconciliationFeedErrorCodeEnum = void 0;
|
|
|
5
5
|
var ReconciliationFeedErrorCodeEnum;
|
|
6
6
|
(function (ReconciliationFeedErrorCodeEnum) {
|
|
7
7
|
ReconciliationFeedErrorCodeEnum["FEED_RECORD_NOT_FOUND"] = "FEED_RECORD_NOT_FOUND";
|
|
8
|
+
ReconciliationFeedErrorCodeEnum["FEED_CONCEPT_NOT_SUPPORTED"] = "FEED_CONCEPT_NOT_SUPPORTED";
|
|
9
|
+
ReconciliationFeedErrorCodeEnum["INVALID_FEED_QUERY"] = "INVALID_FEED_QUERY";
|
|
10
|
+
ReconciliationFeedErrorCodeEnum["FEED_SOURCE_UNAVAILABLE"] = "FEED_SOURCE_UNAVAILABLE";
|
|
8
11
|
})(ReconciliationFeedErrorCodeEnum || (exports.ReconciliationFeedErrorCodeEnum = ReconciliationFeedErrorCodeEnum = {}));
|
|
@@ -5,3 +5,5 @@ export declare const TRANSFER_NOTE_ISO_WEEK_PATTERN: RegExp;
|
|
|
5
5
|
/** CLABE interbancaria de 18 dígitos. */
|
|
6
6
|
export declare const TRANSFER_NOTE_CLABE_PATTERN: RegExp;
|
|
7
7
|
export declare const TRANSFER_NOTE_MAX_PAGE_SIZE = 100;
|
|
8
|
+
/** Largo máximo del id del operador (`sub` de Azure AD). */
|
|
9
|
+
export declare const TRANSFER_NOTE_ACTOR_ID_MAX_LENGTH = 128;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TRANSFER_NOTE_MAX_PAGE_SIZE = exports.TRANSFER_NOTE_CLABE_PATTERN = exports.TRANSFER_NOTE_ISO_WEEK_PATTERN = exports.TRANSFER_NOTE_MIN_REASON_LENGTH = void 0;
|
|
3
|
+
exports.TRANSFER_NOTE_ACTOR_ID_MAX_LENGTH = exports.TRANSFER_NOTE_MAX_PAGE_SIZE = exports.TRANSFER_NOTE_CLABE_PATTERN = exports.TRANSFER_NOTE_ISO_WEEK_PATTERN = exports.TRANSFER_NOTE_MIN_REASON_LENGTH = void 0;
|
|
4
4
|
/** Largo mínimo de la razón de una emisión manual y de una objeción. */
|
|
5
5
|
exports.TRANSFER_NOTE_MIN_REASON_LENGTH = 20;
|
|
6
6
|
/** Semana ISO `YYYY-Www`, p. ej. `2026-W43`. */
|
|
@@ -8,3 +8,5 @@ exports.TRANSFER_NOTE_ISO_WEEK_PATTERN = /^\d{4}-W(0[1-9]|[1-4]\d|5[0-3])$/;
|
|
|
8
8
|
/** CLABE interbancaria de 18 dígitos. */
|
|
9
9
|
exports.TRANSFER_NOTE_CLABE_PATTERN = /^\d{18}$/;
|
|
10
10
|
exports.TRANSFER_NOTE_MAX_PAGE_SIZE = 100;
|
|
11
|
+
/** Largo máximo del id del operador (`sub` de Azure AD). */
|
|
12
|
+
exports.TRANSFER_NOTE_ACTOR_ID_MAX_LENGTH = 128;
|