@fiado/type-kit 3.615.0 → 3.617.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/loanOfferings/segmentCohorts.test.ts +11 -2
- package/_test_/unit/loanRetailAudit/m8AuditCatalog.test.ts +58 -0
- package/_test_/unit/reconciliation/reconciliationCatalogs.test.ts +126 -0
- package/_test_/unit/reconciliation/reconciliationRequests.test.ts +208 -0
- package/_test_/unit/reconciliation/reconciliationShapes.test.ts +74 -0
- package/_test_/unit/retailWizard/privateGetSale.test.ts +59 -0
- package/_test_/unit/transaction/transactionCreateRequestM8.test.ts +27 -0
- package/_test_/unit/transactionProcessor/reconciliationAdjustment.test.ts +63 -0
- package/_test_/unit/transferNote/transferNoteConfigAndPrivate.test.ts +202 -0
- package/_test_/unit/transferNote/transferNoteEventsAndFeeds.test.ts +112 -0
- package/_test_/unit/transferNote/transferNoteRequests.test.ts +138 -0
- package/bin/index.d.ts +2 -0
- package/bin/index.js +7 -1
- package/bin/loanOfferings/dtos/requests/CreateSegmentRequest.d.ts +2 -0
- package/bin/loanOfferings/dtos/requests/CreateSegmentRequest.js +7 -0
- package/bin/loanOfferings/dtos/requests/UpdateSegmentRequest.d.ts +2 -0
- package/bin/loanOfferings/dtos/requests/UpdateSegmentRequest.js +7 -0
- package/bin/loanOfferings/dtos/responses/SegmentResponse.d.ts +2 -0
- package/bin/loanRetailAudit/enums/AuditTrailActionEnum.d.ts +12 -1
- package/bin/loanRetailAudit/enums/AuditTrailActionEnum.js +12 -0
- package/bin/loanRetailAudit/enums/LoanAuditEntityTypeEnum.d.ts +5 -1
- package/bin/loanRetailAudit/enums/LoanAuditEntityTypeEnum.js +4 -0
- package/bin/reconciliation/constants/reconciliationErrorHttpStatus.d.ts +6 -0
- package/bin/reconciliation/constants/reconciliationErrorHttpStatus.js +23 -0
- package/bin/reconciliation/constants/reconciliationValidation.d.ts +8 -0
- package/bin/reconciliation/constants/reconciliationValidation.js +11 -0
- package/bin/reconciliation/dtos/ReconciliationDefinition.d.ts +42 -0
- package/bin/reconciliation/dtos/ReconciliationDefinition.js +2 -0
- package/bin/reconciliation/dtos/ReconciliationFeedRecord.d.ts +42 -0
- package/bin/reconciliation/dtos/ReconciliationFeedRecord.js +2 -0
- package/bin/reconciliation/dtos/ReconciliationItem.d.ts +77 -0
- package/bin/reconciliation/dtos/ReconciliationItem.js +2 -0
- package/bin/reconciliation/dtos/ReconciliationRun.d.ts +28 -0
- package/bin/reconciliation/dtos/ReconciliationRun.js +2 -0
- package/bin/reconciliation/dtos/requests/PrivateReconciliationRequests.d.ts +80 -0
- package/bin/reconciliation/dtos/requests/PrivateReconciliationRequests.js +215 -0
- package/bin/reconciliation/dtos/requests/ReconciliationActionRequests.d.ts +30 -0
- package/bin/reconciliation/dtos/requests/ReconciliationActionRequests.js +105 -0
- package/bin/reconciliation/dtos/requests/ReconciliationFeedRequests.d.ts +23 -0
- package/bin/reconciliation/dtos/requests/ReconciliationFeedRequests.js +71 -0
- package/bin/reconciliation/dtos/requests/ReconciliationQueries.d.ts +54 -0
- package/bin/reconciliation/dtos/requests/ReconciliationQueries.js +192 -0
- package/bin/reconciliation/dtos/requests/reconciliationRequestDecorators.d.ts +7 -0
- package/bin/reconciliation/dtos/requests/reconciliationRequestDecorators.js +39 -0
- package/bin/reconciliation/dtos/responses/PrivateReconciliationResponses.d.ts +13 -0
- package/bin/reconciliation/dtos/responses/PrivateReconciliationResponses.js +2 -0
- package/bin/reconciliation/dtos/responses/ReconciliationFeedResponses.d.ts +7 -0
- package/bin/reconciliation/dtos/responses/ReconciliationFeedResponses.js +2 -0
- package/bin/reconciliation/dtos/responses/ReconciliationResponses.d.ts +81 -0
- package/bin/reconciliation/dtos/responses/ReconciliationResponses.js +2 -0
- package/bin/reconciliation/enums/ReconciliationDefinitionStatusEnum.d.ts +6 -0
- package/bin/reconciliation/enums/ReconciliationDefinitionStatusEnum.js +10 -0
- package/bin/reconciliation/enums/ReconciliationErrorCodeEnum.d.ts +24 -0
- package/bin/reconciliation/enums/ReconciliationErrorCodeEnum.js +28 -0
- package/bin/reconciliation/enums/ReconciliationExportFormatEnum.d.ts +5 -0
- package/bin/reconciliation/enums/ReconciliationExportFormatEnum.js +9 -0
- package/bin/reconciliation/enums/ReconciliationFeedConceptEnum.d.ts +16 -0
- package/bin/reconciliation/enums/ReconciliationFeedConceptEnum.js +20 -0
- package/bin/reconciliation/enums/ReconciliationFeedErrorCodeEnum.d.ts +4 -0
- package/bin/reconciliation/enums/ReconciliationFeedErrorCodeEnum.js +8 -0
- package/bin/reconciliation/enums/ReconciliationFeedOwnerEnum.d.ts +9 -0
- package/bin/reconciliation/enums/ReconciliationFeedOwnerEnum.js +13 -0
- package/bin/reconciliation/enums/ReconciliationItemStateEnum.d.ts +23 -0
- package/bin/reconciliation/enums/ReconciliationItemStateEnum.js +27 -0
- package/bin/reconciliation/enums/ReconciliationLayerEnum.d.ts +8 -0
- package/bin/reconciliation/enums/ReconciliationLayerEnum.js +12 -0
- package/bin/reconciliation/enums/ReconciliationPeriodEnum.d.ts +6 -0
- package/bin/reconciliation/enums/ReconciliationPeriodEnum.js +10 -0
- package/bin/reconciliation/enums/ReconciliationResolutionArchiveReasonEnum.d.ts +6 -0
- package/bin/reconciliation/enums/ReconciliationResolutionArchiveReasonEnum.js +10 -0
- package/bin/reconciliation/enums/ReconciliationResolutionStatusEnum.d.ts +9 -0
- package/bin/reconciliation/enums/ReconciliationResolutionStatusEnum.js +13 -0
- package/bin/reconciliation/enums/ReconciliationResolutionTypeEnum.d.ts +7 -0
- package/bin/reconciliation/enums/ReconciliationResolutionTypeEnum.js +11 -0
- package/bin/reconciliation/enums/ReconciliationRuleTypeEnum.d.ts +7 -0
- package/bin/reconciliation/enums/ReconciliationRuleTypeEnum.js +11 -0
- package/bin/reconciliation/enums/ReconciliationRunStatusEnum.d.ts +6 -0
- package/bin/reconciliation/enums/ReconciliationRunStatusEnum.js +10 -0
- package/bin/reconciliation/enums/ReconciliationSourceRoleEnum.d.ts +6 -0
- package/bin/reconciliation/enums/ReconciliationSourceRoleEnum.js +10 -0
- package/bin/reconciliation/events/ReconciliationItemMatchedEventDetail.d.ts +22 -0
- package/bin/reconciliation/events/ReconciliationItemMatchedEventDetail.js +14 -0
- package/bin/reconciliation/index.d.ts +29 -0
- package/bin/reconciliation/index.js +51 -0
- package/bin/retailWizard/catalog/privateSaleDetailFields.d.ts +3 -0
- package/bin/retailWizard/catalog/privateSaleDetailFields.js +16 -0
- package/bin/retailWizard/constants/retailWizardValidation.d.ts +2 -0
- package/bin/retailWizard/constants/retailWizardValidation.js +5 -0
- package/bin/retailWizard/dtos/requests/PrivateGetSaleRequest.d.ts +8 -0
- package/bin/retailWizard/dtos/requests/PrivateGetSaleRequest.js +42 -0
- package/bin/retailWizard/dtos/responses/PrivateGetSaleResponse.d.ts +16 -0
- package/bin/retailWizard/dtos/responses/PrivateGetSaleResponse.js +2 -0
- package/bin/retailWizard/index.d.ts +4 -0
- package/bin/retailWizard/index.js +5 -0
- package/bin/transaction/dtos/TransactionCreateRequest.d.ts +4 -0
- package/bin/transaction/dtos/TransactionCreateRequest.js +12 -0
- package/bin/transactionProcessor/dtos/PrivateAuthorizeReconciliationAdjustmentRequest.d.ts +30 -0
- package/bin/transactionProcessor/dtos/PrivateAuthorizeReconciliationAdjustmentRequest.js +107 -0
- package/bin/transactionProcessor/dtos/PrivateAuthorizeReconciliationAdjustmentResponse.d.ts +7 -0
- package/bin/transactionProcessor/dtos/PrivateAuthorizeReconciliationAdjustmentResponse.js +2 -0
- package/bin/transactionProcessor/dtos/ReconciliationAdjustmentReference.d.ts +5 -0
- package/bin/transactionProcessor/dtos/ReconciliationAdjustmentReference.js +30 -0
- package/bin/transactionProcessor/index.d.ts +3 -0
- package/bin/transactionProcessor/index.js +3 -0
- package/bin/transferNote/constants/transferNoteDefaultFees.d.ts +5 -0
- package/bin/transferNote/constants/transferNoteDefaultFees.js +9 -0
- package/bin/transferNote/constants/transferNoteErrorHttpStatus.d.ts +3 -0
- package/bin/transferNote/constants/transferNoteErrorHttpStatus.js +30 -0
- package/bin/transferNote/constants/transferNoteValidation.d.ts +7 -0
- package/bin/transferNote/constants/transferNoteValidation.js +10 -0
- package/bin/transferNote/dtos/TransferNote.d.ts +81 -0
- package/bin/transferNote/dtos/TransferNote.js +2 -0
- package/bin/transferNote/dtos/TransferNoteConfigRecords.d.ts +50 -0
- package/bin/transferNote/dtos/TransferNoteConfigRecords.js +2 -0
- package/bin/transferNote/dtos/TransferNoteFeedRecords.d.ts +38 -0
- package/bin/transferNote/dtos/TransferNoteFeedRecords.js +2 -0
- package/bin/transferNote/dtos/TransferNoteHistoryEntry.d.ts +16 -0
- package/bin/transferNote/dtos/TransferNoteHistoryEntry.js +2 -0
- package/bin/transferNote/dtos/TransferNoteItem.d.ts +36 -0
- package/bin/transferNote/dtos/TransferNoteItem.js +2 -0
- package/bin/transferNote/dtos/TransferNoteSignedUrl.d.ts +5 -0
- package/bin/transferNote/dtos/TransferNoteSignedUrl.js +2 -0
- package/bin/transferNote/dtos/requests/PrivateTransferNoteRequests.d.ts +105 -0
- package/bin/transferNote/dtos/requests/PrivateTransferNoteRequests.js +256 -0
- package/bin/transferNote/dtos/requests/RetailerTransferNoteRequests.d.ts +20 -0
- package/bin/transferNote/dtos/requests/RetailerTransferNoteRequests.js +47 -0
- package/bin/transferNote/dtos/requests/TransferNoteActionRequests.d.ts +33 -0
- package/bin/transferNote/dtos/requests/TransferNoteActionRequests.js +104 -0
- package/bin/transferNote/dtos/requests/TransferNoteConfigRequests.d.ts +38 -0
- package/bin/transferNote/dtos/requests/TransferNoteConfigRequests.js +152 -0
- package/bin/transferNote/dtos/requests/TransferNoteQueries.d.ts +29 -0
- package/bin/transferNote/dtos/requests/TransferNoteQueries.js +107 -0
- package/bin/transferNote/dtos/requests/transferNoteRequestDecorators.d.ts +14 -0
- package/bin/transferNote/dtos/requests/transferNoteRequestDecorators.js +73 -0
- package/bin/transferNote/dtos/responses/PrivateTransferNoteResponses.d.ts +26 -0
- package/bin/transferNote/dtos/responses/PrivateTransferNoteResponses.js +2 -0
- package/bin/transferNote/dtos/responses/RetailerTransferNoteResponses.d.ts +13 -0
- package/bin/transferNote/dtos/responses/RetailerTransferNoteResponses.js +2 -0
- package/bin/transferNote/dtos/responses/TransferNoteConfigResponses.d.ts +6 -0
- package/bin/transferNote/dtos/responses/TransferNoteConfigResponses.js +2 -0
- package/bin/transferNote/dtos/responses/TransferNoteResponses.d.ts +44 -0
- package/bin/transferNote/dtos/responses/TransferNoteResponses.js +2 -0
- package/bin/transferNote/enums/TransferNoteConceptEnum.d.ts +16 -0
- package/bin/transferNote/enums/TransferNoteConceptEnum.js +20 -0
- package/bin/transferNote/enums/TransferNoteConceptSignEnum.d.ts +5 -0
- package/bin/transferNote/enums/TransferNoteConceptSignEnum.js +9 -0
- package/bin/transferNote/enums/TransferNoteConfigRecordTypeEnum.d.ts +7 -0
- package/bin/transferNote/enums/TransferNoteConfigRecordTypeEnum.js +11 -0
- package/bin/transferNote/enums/TransferNoteConfirmationSourceEnum.d.ts +5 -0
- package/bin/transferNote/enums/TransferNoteConfirmationSourceEnum.js +9 -0
- package/bin/transferNote/enums/TransferNoteConfirmationTypeEnum.d.ts +5 -0
- package/bin/transferNote/enums/TransferNoteConfirmationTypeEnum.js +9 -0
- package/bin/transferNote/enums/TransferNoteDisputeCategoryEnum.d.ts +7 -0
- package/bin/transferNote/enums/TransferNoteDisputeCategoryEnum.js +11 -0
- package/bin/transferNote/enums/TransferNoteDisputeDecisionEnum.d.ts +5 -0
- package/bin/transferNote/enums/TransferNoteDisputeDecisionEnum.js +9 -0
- package/bin/transferNote/enums/TransferNoteErrorCodeEnum.d.ts +32 -0
- package/bin/transferNote/enums/TransferNoteErrorCodeEnum.js +36 -0
- package/bin/transferNote/enums/TransferNoteFeedConceptEnum.d.ts +5 -0
- package/bin/transferNote/enums/TransferNoteFeedConceptEnum.js +9 -0
- package/bin/transferNote/enums/TransferNoteHistoryActionEnum.d.ts +13 -0
- package/bin/transferNote/enums/TransferNoteHistoryActionEnum.js +17 -0
- package/bin/transferNote/enums/TransferNoteIssueOriginEnum.d.ts +6 -0
- package/bin/transferNote/enums/TransferNoteIssueOriginEnum.js +10 -0
- package/bin/transferNote/enums/TransferNoteItemStatusEnum.d.ts +5 -0
- package/bin/transferNote/enums/TransferNoteItemStatusEnum.js +9 -0
- package/bin/transferNote/enums/TransferNotePartyTypeEnum.d.ts +6 -0
- package/bin/transferNote/enums/TransferNotePartyTypeEnum.js +10 -0
- package/bin/transferNote/enums/TransferNoteStatusEnum.d.ts +9 -0
- package/bin/transferNote/enums/TransferNoteStatusEnum.js +13 -0
- package/bin/transferNote/events/TransferNoteReconciledEventDetail.d.ts +17 -0
- package/bin/transferNote/events/TransferNoteReconciledEventDetail.js +13 -0
- package/bin/transferNote/index.d.ts +34 -0
- package/bin/transferNote/index.js +56 -0
- package/bin/transferNote/validators/IsTransferNoteSelectionConstraint.d.ts +6 -0
- package/bin/transferNote/validators/IsTransferNoteSelectionConstraint.js +28 -0
- package/package.json +1 -1
- package/src/index.ts +8 -0
- package/src/loanOfferings/dtos/requests/CreateSegmentRequest.ts +7 -0
- package/src/loanOfferings/dtos/requests/UpdateSegmentRequest.ts +7 -0
- package/src/loanOfferings/dtos/responses/SegmentResponse.ts +2 -0
- package/src/loanRetailAudit/enums/AuditTrailActionEnum.ts +12 -0
- package/src/loanRetailAudit/enums/LoanAuditEntityTypeEnum.ts +4 -0
- package/src/reconciliation/constants/reconciliationErrorHttpStatus.ts +22 -0
- package/src/reconciliation/constants/reconciliationValidation.ts +11 -0
- package/src/reconciliation/dtos/ReconciliationDefinition.ts +44 -0
- package/src/reconciliation/dtos/ReconciliationFeedRecord.ts +44 -0
- package/src/reconciliation/dtos/ReconciliationItem.ts +84 -0
- package/src/reconciliation/dtos/ReconciliationRun.ts +31 -0
- package/src/reconciliation/dtos/requests/PrivateReconciliationRequests.ts +166 -0
- package/src/reconciliation/dtos/requests/ReconciliationActionRequests.ts +77 -0
- package/src/reconciliation/dtos/requests/ReconciliationFeedRequests.ts +47 -0
- package/src/reconciliation/dtos/requests/ReconciliationQueries.ts +148 -0
- package/src/reconciliation/dtos/requests/reconciliationRequestDecorators.ts +32 -0
- package/src/reconciliation/dtos/responses/PrivateReconciliationResponses.ts +27 -0
- package/src/reconciliation/dtos/responses/ReconciliationFeedResponses.ts +9 -0
- package/src/reconciliation/dtos/responses/ReconciliationResponses.ts +101 -0
- package/src/reconciliation/enums/ReconciliationDefinitionStatusEnum.ts +6 -0
- package/src/reconciliation/enums/ReconciliationErrorCodeEnum.ts +24 -0
- package/src/reconciliation/enums/ReconciliationExportFormatEnum.ts +5 -0
- package/src/reconciliation/enums/ReconciliationFeedConceptEnum.ts +19 -0
- package/src/reconciliation/enums/ReconciliationFeedErrorCodeEnum.ts +4 -0
- package/src/reconciliation/enums/ReconciliationFeedOwnerEnum.ts +9 -0
- package/src/reconciliation/enums/ReconciliationItemStateEnum.ts +23 -0
- package/src/reconciliation/enums/ReconciliationLayerEnum.ts +8 -0
- package/src/reconciliation/enums/ReconciliationPeriodEnum.ts +6 -0
- package/src/reconciliation/enums/ReconciliationResolutionArchiveReasonEnum.ts +6 -0
- package/src/reconciliation/enums/ReconciliationResolutionStatusEnum.ts +9 -0
- package/src/reconciliation/enums/ReconciliationResolutionTypeEnum.ts +7 -0
- package/src/reconciliation/enums/ReconciliationRuleTypeEnum.ts +7 -0
- package/src/reconciliation/enums/ReconciliationRunStatusEnum.ts +6 -0
- package/src/reconciliation/enums/ReconciliationSourceRoleEnum.ts +6 -0
- package/src/reconciliation/events/ReconciliationItemMatchedEventDetail.ts +25 -0
- package/src/reconciliation/index.ts +40 -0
- package/src/retailWizard/catalog/privateSaleDetailFields.ts +15 -0
- package/src/retailWizard/constants/retailWizardValidation.ts +2 -0
- package/src/retailWizard/dtos/requests/PrivateGetSaleRequest.ts +26 -0
- package/src/retailWizard/dtos/responses/PrivateGetSaleResponse.ts +16 -0
- package/src/retailWizard/index.ts +6 -0
- package/src/transaction/dtos/TransactionCreateRequest.ts +12 -0
- package/src/transactionProcessor/dtos/PrivateAuthorizeReconciliationAdjustmentRequest.ts +101 -0
- package/src/transactionProcessor/dtos/PrivateAuthorizeReconciliationAdjustmentResponse.ts +7 -0
- package/src/transactionProcessor/dtos/ReconciliationAdjustmentReference.ts +15 -0
- package/src/transactionProcessor/index.ts +3 -0
- package/src/transferNote/constants/transferNoteDefaultFees.ts +7 -0
- package/src/transferNote/constants/transferNoteErrorHttpStatus.ts +28 -0
- package/src/transferNote/constants/transferNoteValidation.ts +10 -0
- package/src/transferNote/dtos/TransferNote.ts +89 -0
- package/src/transferNote/dtos/TransferNoteConfigRecords.ts +55 -0
- package/src/transferNote/dtos/TransferNoteFeedRecords.ts +35 -0
- package/src/transferNote/dtos/TransferNoteHistoryEntry.ts +17 -0
- package/src/transferNote/dtos/TransferNoteItem.ts +38 -0
- package/src/transferNote/dtos/TransferNoteSignedUrl.ts +5 -0
- package/src/transferNote/dtos/requests/PrivateTransferNoteRequests.ts +195 -0
- package/src/transferNote/dtos/requests/RetailerTransferNoteRequests.ts +28 -0
- package/src/transferNote/dtos/requests/TransferNoteActionRequests.ts +72 -0
- package/src/transferNote/dtos/requests/TransferNoteConfigRequests.ts +115 -0
- package/src/transferNote/dtos/requests/TransferNoteQueries.ts +78 -0
- package/src/transferNote/dtos/requests/transferNoteRequestDecorators.ts +72 -0
- package/src/transferNote/dtos/responses/PrivateTransferNoteResponses.ts +36 -0
- package/src/transferNote/dtos/responses/RetailerTransferNoteResponses.ts +19 -0
- package/src/transferNote/dtos/responses/TransferNoteConfigResponses.ts +8 -0
- package/src/transferNote/dtos/responses/TransferNoteResponses.ts +51 -0
- package/src/transferNote/enums/TransferNoteConceptEnum.ts +16 -0
- package/src/transferNote/enums/TransferNoteConceptSignEnum.ts +5 -0
- package/src/transferNote/enums/TransferNoteConfigRecordTypeEnum.ts +7 -0
- package/src/transferNote/enums/TransferNoteConfirmationSourceEnum.ts +5 -0
- package/src/transferNote/enums/TransferNoteConfirmationTypeEnum.ts +5 -0
- package/src/transferNote/enums/TransferNoteDisputeCategoryEnum.ts +7 -0
- package/src/transferNote/enums/TransferNoteDisputeDecisionEnum.ts +5 -0
- package/src/transferNote/enums/TransferNoteErrorCodeEnum.ts +34 -0
- package/src/transferNote/enums/TransferNoteFeedConceptEnum.ts +5 -0
- package/src/transferNote/enums/TransferNoteHistoryActionEnum.ts +13 -0
- package/src/transferNote/enums/TransferNoteIssueOriginEnum.ts +6 -0
- package/src/transferNote/enums/TransferNoteItemStatusEnum.ts +5 -0
- package/src/transferNote/enums/TransferNotePartyTypeEnum.ts +6 -0
- package/src/transferNote/enums/TransferNoteStatusEnum.ts +9 -0
- package/src/transferNote/events/TransferNoteReconciledEventDetail.ts +22 -0
- package/src/transferNote/index.ts +45 -0
- package/src/transferNote/validators/IsTransferNoteSelectionConstraint.ts +16 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AddReconciliationItemNoteRequest,
|
|
3
|
+
ConfigureReconciliationDefinitionRequest,
|
|
4
|
+
ReactivateReconciliationItemRequest,
|
|
5
|
+
ResolveReconciliationItemRequest,
|
|
6
|
+
RunReconciliationRequest,
|
|
7
|
+
} from './ReconciliationActionRequests';
|
|
8
|
+
import {
|
|
9
|
+
GetReconciliationMatrixQuery,
|
|
10
|
+
GetReconciliationOverviewQuery,
|
|
11
|
+
GetReconciliationSummaryQuery,
|
|
12
|
+
ListReconciliationDefinitionsQuery,
|
|
13
|
+
ListReconciliationItemsQuery,
|
|
14
|
+
ListReconciliationRunsQuery,
|
|
15
|
+
} from './ReconciliationQueries';
|
|
16
|
+
import { RequiredEmail, RequiredId } from './reconciliationRequestDecorators';
|
|
17
|
+
|
|
18
|
+
/** Tenant y servicio que llama; el lambda valida `author` contra su lista permitida. */
|
|
19
|
+
export class PrivateReconciliationCaller {
|
|
20
|
+
@RequiredId()
|
|
21
|
+
tenantId!: string;
|
|
22
|
+
|
|
23
|
+
@RequiredId()
|
|
24
|
+
author!: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Caller del espejo que llama fiado-dashboard; `actor` es el email del operador de la sesión. */
|
|
28
|
+
export class PrivateReconciliationOperatorCaller extends PrivateReconciliationCaller {
|
|
29
|
+
@RequiredEmail()
|
|
30
|
+
actor!: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** Query de privateGetReconciliationItem. */
|
|
34
|
+
export class PrivateGetReconciliationItemQuery extends PrivateReconciliationOperatorCaller {}
|
|
35
|
+
|
|
36
|
+
/** Query de privateListReconciliationDefinitions. */
|
|
37
|
+
export class PrivateListReconciliationDefinitionsQuery extends ListReconciliationDefinitionsQuery {
|
|
38
|
+
@RequiredId()
|
|
39
|
+
tenantId!: string;
|
|
40
|
+
|
|
41
|
+
@RequiredId()
|
|
42
|
+
author!: string;
|
|
43
|
+
|
|
44
|
+
@RequiredEmail()
|
|
45
|
+
actor!: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** Body de privateConfigureReconciliationDefinition. */
|
|
49
|
+
export class PrivateConfigureReconciliationDefinitionRequest extends ConfigureReconciliationDefinitionRequest {
|
|
50
|
+
@RequiredId()
|
|
51
|
+
tenantId!: string;
|
|
52
|
+
|
|
53
|
+
@RequiredId()
|
|
54
|
+
author!: string;
|
|
55
|
+
|
|
56
|
+
@RequiredEmail()
|
|
57
|
+
actor!: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** Query de privateListReconciliationRuns. */
|
|
61
|
+
export class PrivateListReconciliationRunsQuery extends ListReconciliationRunsQuery {
|
|
62
|
+
@RequiredId()
|
|
63
|
+
tenantId!: string;
|
|
64
|
+
|
|
65
|
+
@RequiredId()
|
|
66
|
+
author!: string;
|
|
67
|
+
|
|
68
|
+
@RequiredEmail()
|
|
69
|
+
actor!: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** Body de privateRunReconciliation: responde 202 con `runId`. */
|
|
73
|
+
export class PrivateRunReconciliationRequest extends RunReconciliationRequest {
|
|
74
|
+
@RequiredId()
|
|
75
|
+
tenantId!: string;
|
|
76
|
+
|
|
77
|
+
@RequiredId()
|
|
78
|
+
author!: string;
|
|
79
|
+
|
|
80
|
+
@RequiredEmail()
|
|
81
|
+
actor!: string;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** Query de privateGetReconciliationMatrix. */
|
|
85
|
+
export class PrivateGetReconciliationMatrixQuery extends GetReconciliationMatrixQuery {
|
|
86
|
+
@RequiredId()
|
|
87
|
+
tenantId!: string;
|
|
88
|
+
|
|
89
|
+
@RequiredId()
|
|
90
|
+
author!: string;
|
|
91
|
+
|
|
92
|
+
@RequiredEmail()
|
|
93
|
+
actor!: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** Query de privateGetReconciliationOverview. */
|
|
97
|
+
export class PrivateGetReconciliationOverviewQuery extends GetReconciliationOverviewQuery {
|
|
98
|
+
@RequiredId()
|
|
99
|
+
tenantId!: string;
|
|
100
|
+
|
|
101
|
+
@RequiredId()
|
|
102
|
+
author!: string;
|
|
103
|
+
|
|
104
|
+
@RequiredEmail()
|
|
105
|
+
actor!: string;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** Query de privateGetReconciliationSummary. */
|
|
109
|
+
export class PrivateGetReconciliationSummaryQuery extends GetReconciliationSummaryQuery {
|
|
110
|
+
@RequiredId()
|
|
111
|
+
tenantId!: string;
|
|
112
|
+
|
|
113
|
+
@RequiredId()
|
|
114
|
+
author!: string;
|
|
115
|
+
|
|
116
|
+
@RequiredEmail()
|
|
117
|
+
actor!: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/** Query de privateListReconciliationItems. */
|
|
121
|
+
export class PrivateListReconciliationItemsQuery extends ListReconciliationItemsQuery {
|
|
122
|
+
@RequiredId()
|
|
123
|
+
tenantId!: string;
|
|
124
|
+
|
|
125
|
+
@RequiredId()
|
|
126
|
+
author!: string;
|
|
127
|
+
|
|
128
|
+
@RequiredEmail()
|
|
129
|
+
actor!: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/** Body de privateResolveReconciliationItem. */
|
|
133
|
+
export class PrivateResolveReconciliationItemRequest extends ResolveReconciliationItemRequest {
|
|
134
|
+
@RequiredId()
|
|
135
|
+
tenantId!: string;
|
|
136
|
+
|
|
137
|
+
@RequiredId()
|
|
138
|
+
author!: string;
|
|
139
|
+
|
|
140
|
+
@RequiredEmail()
|
|
141
|
+
actor!: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/** Body de privateReactivateReconciliationItem. */
|
|
145
|
+
export class PrivateReactivateReconciliationItemRequest extends ReactivateReconciliationItemRequest {
|
|
146
|
+
@RequiredId()
|
|
147
|
+
tenantId!: string;
|
|
148
|
+
|
|
149
|
+
@RequiredId()
|
|
150
|
+
author!: string;
|
|
151
|
+
|
|
152
|
+
@RequiredEmail()
|
|
153
|
+
actor!: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/** Body de privateAddReconciliationItemNote. */
|
|
157
|
+
export class PrivateAddReconciliationItemNoteRequest extends AddReconciliationItemNoteRequest {
|
|
158
|
+
@RequiredId()
|
|
159
|
+
tenantId!: string;
|
|
160
|
+
|
|
161
|
+
@RequiredId()
|
|
162
|
+
author!: string;
|
|
163
|
+
|
|
164
|
+
@RequiredEmail()
|
|
165
|
+
actor!: string;
|
|
166
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { ArrayUnique, IsArray, IsEnum, IsInt, IsISO8601, IsNotEmpty, IsOptional, IsString, Min } from 'class-validator';
|
|
3
|
+
import { ReconciliationDefinitionStatusEnum } from '../../enums/ReconciliationDefinitionStatusEnum';
|
|
4
|
+
import { ReconciliationResolutionTypeEnum } from '../../enums/ReconciliationResolutionTypeEnum';
|
|
5
|
+
import { NoteText, PeriodKey, RequiredId, RequiredReason } from './reconciliationRequestDecorators';
|
|
6
|
+
|
|
7
|
+
/** Body de publicConfigureReconciliationDefinition. */
|
|
8
|
+
export class ConfigureReconciliationDefinitionRequest {
|
|
9
|
+
@Expose()
|
|
10
|
+
@IsEnum(ReconciliationDefinitionStatusEnum)
|
|
11
|
+
status!: ReconciliationDefinitionStatusEnum;
|
|
12
|
+
|
|
13
|
+
@Expose()
|
|
14
|
+
@IsOptional()
|
|
15
|
+
@IsInt()
|
|
16
|
+
@Min(0)
|
|
17
|
+
amountToleranceCents?: number;
|
|
18
|
+
|
|
19
|
+
@Expose()
|
|
20
|
+
@IsOptional()
|
|
21
|
+
@IsInt()
|
|
22
|
+
@Min(0)
|
|
23
|
+
waitBusinessDays?: number;
|
|
24
|
+
|
|
25
|
+
/** Reemplaza la lista completa de retailers de prueba. */
|
|
26
|
+
@Expose()
|
|
27
|
+
@IsOptional()
|
|
28
|
+
@IsArray()
|
|
29
|
+
@ArrayUnique()
|
|
30
|
+
@IsString({ each: true })
|
|
31
|
+
@IsNotEmpty({ each: true })
|
|
32
|
+
sandboxRetailerIds?: string[];
|
|
33
|
+
|
|
34
|
+
@Expose()
|
|
35
|
+
@IsOptional()
|
|
36
|
+
@IsArray()
|
|
37
|
+
@ArrayUnique()
|
|
38
|
+
@IsString({ each: true })
|
|
39
|
+
@IsNotEmpty({ each: true })
|
|
40
|
+
sandboxDirectoryIds?: string[];
|
|
41
|
+
|
|
42
|
+
@Expose()
|
|
43
|
+
@IsOptional()
|
|
44
|
+
@IsISO8601()
|
|
45
|
+
activeFrom?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** Body de publicRunReconciliation: responde 202 con `runId` y corre asíncrono. */
|
|
49
|
+
export class RunReconciliationRequest {
|
|
50
|
+
@RequiredId()
|
|
51
|
+
definitionId!: string;
|
|
52
|
+
|
|
53
|
+
@PeriodKey()
|
|
54
|
+
periodKey!: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** Body de publicResolveReconciliationItem; el monto del ajuste lo calcula el motor. */
|
|
58
|
+
export class ResolveReconciliationItemRequest {
|
|
59
|
+
@Expose()
|
|
60
|
+
@IsEnum(ReconciliationResolutionTypeEnum)
|
|
61
|
+
type!: ReconciliationResolutionTypeEnum;
|
|
62
|
+
|
|
63
|
+
@RequiredReason()
|
|
64
|
+
reason!: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** Body de publicReactivateReconciliationItem. */
|
|
68
|
+
export class ReactivateReconciliationItemRequest {
|
|
69
|
+
@RequiredReason()
|
|
70
|
+
reason!: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** Body de publicAddReconciliationItemNote; no cambia el estado. */
|
|
74
|
+
export class AddReconciliationItemNoteRequest {
|
|
75
|
+
@NoteText()
|
|
76
|
+
text!: string;
|
|
77
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsEnum, IsISO8601 } from 'class-validator';
|
|
3
|
+
import { ReconciliationFeedConceptEnum } from '../../enums/ReconciliationFeedConceptEnum';
|
|
4
|
+
import { OptionalEmail, PageToken, RequiredId } from './reconciliationRequestDecorators';
|
|
5
|
+
|
|
6
|
+
/** Path de privateListReconciliationFeed; cada dueño responde solo sus conceptos. */
|
|
7
|
+
export class ReconciliationFeedPathParams {
|
|
8
|
+
@Expose()
|
|
9
|
+
@IsEnum(ReconciliationFeedConceptEnum)
|
|
10
|
+
concept!: ReconciliationFeedConceptEnum;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** Path de privateGetReconciliationFeedRecord. */
|
|
14
|
+
export class ReconciliationFeedRecordPathParams extends ReconciliationFeedPathParams {
|
|
15
|
+
@RequiredId()
|
|
16
|
+
recordId!: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** Query de privateListReconciliationFeed: ventana ISO 8601 por `occurredAt`, páginas de 500. */
|
|
20
|
+
export class PrivateListReconciliationFeedQuery {
|
|
21
|
+
@RequiredId()
|
|
22
|
+
tenantId!: string;
|
|
23
|
+
|
|
24
|
+
@Expose()
|
|
25
|
+
@IsISO8601()
|
|
26
|
+
from!: string;
|
|
27
|
+
|
|
28
|
+
@Expose()
|
|
29
|
+
@IsISO8601()
|
|
30
|
+
to!: string;
|
|
31
|
+
|
|
32
|
+
@PageToken()
|
|
33
|
+
cursor?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Query de privateGetReconciliationFeedRecord; `author` y `actor` van al registro de acceso del dueño. */
|
|
37
|
+
export class PrivateGetReconciliationFeedRecordQuery {
|
|
38
|
+
@RequiredId()
|
|
39
|
+
tenantId!: string;
|
|
40
|
+
|
|
41
|
+
@RequiredId()
|
|
42
|
+
author!: string;
|
|
43
|
+
|
|
44
|
+
/** Email del operador cuando la lectura sale del detalle de una partida. */
|
|
45
|
+
@OptionalEmail()
|
|
46
|
+
actor?: string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { Expose, Type } from 'class-transformer';
|
|
2
|
+
import { IsEnum, IsInt, IsISO8601, IsOptional, IsString, Matches, Max, Min } from 'class-validator';
|
|
3
|
+
import { TransferNotePartyTypeEnum } from '../../../transferNote/enums/TransferNotePartyTypeEnum';
|
|
4
|
+
import { RECONCILIATION_MONTH_PATTERN } from '../../constants/reconciliationValidation';
|
|
5
|
+
import { ReconciliationDefinitionStatusEnum } from '../../enums/ReconciliationDefinitionStatusEnum';
|
|
6
|
+
import { ReconciliationExportFormatEnum } from '../../enums/ReconciliationExportFormatEnum';
|
|
7
|
+
import { ReconciliationFeedConceptEnum } from '../../enums/ReconciliationFeedConceptEnum';
|
|
8
|
+
import { ReconciliationItemStateEnum } from '../../enums/ReconciliationItemStateEnum';
|
|
9
|
+
import { ReconciliationLayerEnum } from '../../enums/ReconciliationLayerEnum';
|
|
10
|
+
import { ReconciliationRuleTypeEnum } from '../../enums/ReconciliationRuleTypeEnum';
|
|
11
|
+
import { ReconciliationRunStatusEnum } from '../../enums/ReconciliationRunStatusEnum';
|
|
12
|
+
import { PageLimit, PageToken, PeriodKey, RequiredId } from './reconciliationRequestDecorators';
|
|
13
|
+
|
|
14
|
+
/** Query de publicListReconciliationDefinitions. */
|
|
15
|
+
export class ListReconciliationDefinitionsQuery {
|
|
16
|
+
@Expose()
|
|
17
|
+
@IsOptional()
|
|
18
|
+
@IsString()
|
|
19
|
+
module?: string;
|
|
20
|
+
|
|
21
|
+
@Expose()
|
|
22
|
+
@IsOptional()
|
|
23
|
+
@IsEnum(ReconciliationRuleTypeEnum)
|
|
24
|
+
ruleType?: ReconciliationRuleTypeEnum;
|
|
25
|
+
|
|
26
|
+
@Expose()
|
|
27
|
+
@IsOptional()
|
|
28
|
+
@IsEnum(ReconciliationDefinitionStatusEnum)
|
|
29
|
+
status?: ReconciliationDefinitionStatusEnum;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** Query de publicListReconciliationRuns. */
|
|
33
|
+
export class ListReconciliationRunsQuery {
|
|
34
|
+
@RequiredId()
|
|
35
|
+
definitionId!: string;
|
|
36
|
+
|
|
37
|
+
@IsOptional()
|
|
38
|
+
@PeriodKey()
|
|
39
|
+
periodKey?: string;
|
|
40
|
+
|
|
41
|
+
@Expose()
|
|
42
|
+
@IsOptional()
|
|
43
|
+
@IsEnum(ReconciliationRunStatusEnum)
|
|
44
|
+
status?: ReconciliationRunStatusEnum;
|
|
45
|
+
|
|
46
|
+
@PageLimit()
|
|
47
|
+
limit?: number;
|
|
48
|
+
|
|
49
|
+
@PageToken()
|
|
50
|
+
nextToken?: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** Query de publicGetReconciliationMatrix: conteos por mes del año. */
|
|
54
|
+
export class GetReconciliationMatrixQuery {
|
|
55
|
+
@RequiredId()
|
|
56
|
+
definitionId!: string;
|
|
57
|
+
|
|
58
|
+
@Expose()
|
|
59
|
+
@Type(() => Number)
|
|
60
|
+
@IsInt()
|
|
61
|
+
@Min(2000)
|
|
62
|
+
@Max(2100)
|
|
63
|
+
year!: number;
|
|
64
|
+
|
|
65
|
+
@Expose()
|
|
66
|
+
@IsOptional()
|
|
67
|
+
@IsEnum(ReconciliationFeedConceptEnum)
|
|
68
|
+
concept?: ReconciliationFeedConceptEnum;
|
|
69
|
+
|
|
70
|
+
@Expose()
|
|
71
|
+
@IsOptional()
|
|
72
|
+
@IsString()
|
|
73
|
+
counterpartyId?: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** Query de publicGetReconciliationOverview: resumen por contraparte de la pantalla 04. */
|
|
77
|
+
export class GetReconciliationOverviewQuery {
|
|
78
|
+
@Expose()
|
|
79
|
+
@IsOptional()
|
|
80
|
+
@IsEnum(TransferNotePartyTypeEnum)
|
|
81
|
+
counterpartyType?: TransferNotePartyTypeEnum;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** Query de publicGetReconciliationSummary: resumen por capa de un periodo. */
|
|
85
|
+
export class GetReconciliationSummaryQuery {
|
|
86
|
+
@RequiredId()
|
|
87
|
+
definitionId!: string;
|
|
88
|
+
|
|
89
|
+
@PeriodKey()
|
|
90
|
+
periodKey!: string;
|
|
91
|
+
|
|
92
|
+
@Expose()
|
|
93
|
+
@IsOptional()
|
|
94
|
+
@IsEnum(ReconciliationLayerEnum)
|
|
95
|
+
layer?: ReconciliationLayerEnum;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/** Query de publicListReconciliationItems; `state=TEST` da la lista de sandbox. */
|
|
99
|
+
export class ListReconciliationItemsQuery {
|
|
100
|
+
@RequiredId()
|
|
101
|
+
definitionId!: string;
|
|
102
|
+
|
|
103
|
+
@IsOptional()
|
|
104
|
+
@PeriodKey()
|
|
105
|
+
periodKey?: string;
|
|
106
|
+
|
|
107
|
+
@Expose()
|
|
108
|
+
@IsOptional()
|
|
109
|
+
@Matches(RECONCILIATION_MONTH_PATTERN)
|
|
110
|
+
month?: string;
|
|
111
|
+
|
|
112
|
+
/** Rango de `periodKey`, fechas ISO 8601. */
|
|
113
|
+
@Expose()
|
|
114
|
+
@IsOptional()
|
|
115
|
+
@IsISO8601()
|
|
116
|
+
from?: string;
|
|
117
|
+
|
|
118
|
+
@Expose()
|
|
119
|
+
@IsOptional()
|
|
120
|
+
@IsISO8601()
|
|
121
|
+
to?: string;
|
|
122
|
+
|
|
123
|
+
@Expose()
|
|
124
|
+
@IsOptional()
|
|
125
|
+
@IsEnum(ReconciliationItemStateEnum)
|
|
126
|
+
state?: ReconciliationItemStateEnum;
|
|
127
|
+
|
|
128
|
+
@Expose()
|
|
129
|
+
@IsOptional()
|
|
130
|
+
@IsEnum(ReconciliationFeedConceptEnum)
|
|
131
|
+
concept?: ReconciliationFeedConceptEnum;
|
|
132
|
+
|
|
133
|
+
@Expose()
|
|
134
|
+
@IsOptional()
|
|
135
|
+
@IsString()
|
|
136
|
+
counterpartyId?: string;
|
|
137
|
+
|
|
138
|
+
@Expose()
|
|
139
|
+
@IsOptional()
|
|
140
|
+
@IsEnum(ReconciliationExportFormatEnum)
|
|
141
|
+
format?: ReconciliationExportFormatEnum;
|
|
142
|
+
|
|
143
|
+
@PageLimit()
|
|
144
|
+
limit?: number;
|
|
145
|
+
|
|
146
|
+
@PageToken()
|
|
147
|
+
nextToken?: string;
|
|
148
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Expose, Transform } from 'class-transformer';
|
|
2
|
+
import { IsEmail, IsOptional, IsString, Matches, MinLength } from 'class-validator';
|
|
3
|
+
import { RECONCILIATION_MIN_NOTE_LENGTH, RECONCILIATION_PERIOD_KEY_PATTERN } from '../../constants/reconciliationValidation';
|
|
4
|
+
|
|
5
|
+
export { PageLimit, PageToken, RequiredEmail, RequiredId, RequiredReason } from '../../../transferNote/dtos/requests/transferNoteRequestDecorators';
|
|
6
|
+
|
|
7
|
+
/** Periodo obligatorio: día, semana ISO o mes. */
|
|
8
|
+
export function PeriodKey(): PropertyDecorator {
|
|
9
|
+
return (target, key) => {
|
|
10
|
+
Expose()(target, key);
|
|
11
|
+
Matches(RECONCILIATION_PERIOD_KEY_PATTERN)(target, key);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** Texto de 10+ caracteres sin contar espacios de relleno. */
|
|
16
|
+
export function NoteText(): PropertyDecorator {
|
|
17
|
+
return (target, key) => {
|
|
18
|
+
Expose()(target, key);
|
|
19
|
+
Transform(({ value }) => (typeof value === 'string' ? value.trim() : value))(target, key);
|
|
20
|
+
IsString()(target, key);
|
|
21
|
+
MinLength(RECONCILIATION_MIN_NOTE_LENGTH)(target, key);
|
|
22
|
+
};
|
|
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
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AddReconciliationItemNoteResponse,
|
|
3
|
+
ConfigureReconciliationDefinitionResponse,
|
|
4
|
+
GetReconciliationItemResponse,
|
|
5
|
+
GetReconciliationMatrixResponse,
|
|
6
|
+
GetReconciliationOverviewResponse,
|
|
7
|
+
GetReconciliationSummaryResponse,
|
|
8
|
+
ListReconciliationDefinitionsResponse,
|
|
9
|
+
ListReconciliationItemsResponse,
|
|
10
|
+
ListReconciliationRunsResponse,
|
|
11
|
+
ReactivateReconciliationItemResponse,
|
|
12
|
+
ResolveReconciliationItemResponse,
|
|
13
|
+
RunReconciliationResponse,
|
|
14
|
+
} from './ReconciliationResponses';
|
|
15
|
+
|
|
16
|
+
export type PrivateListReconciliationDefinitionsResponse = ListReconciliationDefinitionsResponse;
|
|
17
|
+
export type PrivateConfigureReconciliationDefinitionResponse = ConfigureReconciliationDefinitionResponse;
|
|
18
|
+
export type PrivateListReconciliationRunsResponse = ListReconciliationRunsResponse;
|
|
19
|
+
export type PrivateRunReconciliationResponse = RunReconciliationResponse;
|
|
20
|
+
export type PrivateGetReconciliationMatrixResponse = GetReconciliationMatrixResponse;
|
|
21
|
+
export type PrivateGetReconciliationOverviewResponse = GetReconciliationOverviewResponse;
|
|
22
|
+
export type PrivateGetReconciliationSummaryResponse = GetReconciliationSummaryResponse;
|
|
23
|
+
export type PrivateListReconciliationItemsResponse = ListReconciliationItemsResponse;
|
|
24
|
+
export type PrivateGetReconciliationItemResponse = GetReconciliationItemResponse;
|
|
25
|
+
export type PrivateResolveReconciliationItemResponse = ResolveReconciliationItemResponse;
|
|
26
|
+
export type PrivateReactivateReconciliationItemResponse = ReactivateReconciliationItemResponse;
|
|
27
|
+
export type PrivateAddReconciliationItemNoteResponse = AddReconciliationItemNoteResponse;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReconciliationFeedRecord } from '../ReconciliationFeedRecord';
|
|
2
|
+
|
|
3
|
+
/** Página de un feed; sin `cursor` no hay más. Notas lo usa con sus propios registros. */
|
|
4
|
+
export interface PrivateListReconciliationFeedResponse<TRecord = ReconciliationFeedRecord> {
|
|
5
|
+
records: TRecord[];
|
|
6
|
+
cursor?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type PrivateGetReconciliationFeedRecordResponse<TRecord = ReconciliationFeedRecord> = TRecord;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { TransferNotePartyTypeEnum } from '../../../transferNote/enums/TransferNotePartyTypeEnum';
|
|
2
|
+
import { ReconciliationLayerEnum } from '../../enums/ReconciliationLayerEnum';
|
|
3
|
+
import { ReconciliationRuleTypeEnum } from '../../enums/ReconciliationRuleTypeEnum';
|
|
4
|
+
import { ReconciliationDefinition } from '../ReconciliationDefinition';
|
|
5
|
+
import {
|
|
6
|
+
ReconciliationItem,
|
|
7
|
+
ReconciliationItemLiveDetail,
|
|
8
|
+
ReconciliationItemNote,
|
|
9
|
+
ReconciliationResolutionHistoryEntry,
|
|
10
|
+
} from '../ReconciliationItem';
|
|
11
|
+
import { ReconciliationRun, ReconciliationStateCount } from '../ReconciliationRun';
|
|
12
|
+
|
|
13
|
+
export interface ListReconciliationDefinitionsResponse {
|
|
14
|
+
items: ReconciliationDefinition[];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type ConfigureReconciliationDefinitionResponse = ReconciliationDefinition;
|
|
18
|
+
|
|
19
|
+
export interface ListReconciliationRunsResponse {
|
|
20
|
+
items: ReconciliationRun[];
|
|
21
|
+
nextToken?: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Respuesta 202 de la corrida manual. */
|
|
25
|
+
export interface RunReconciliationResponse {
|
|
26
|
+
runId: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** Conteos de una celda; las resueltas a mano y las ajustadas cuentan en OK con su marca. */
|
|
30
|
+
export interface ReconciliationMatrixCounts {
|
|
31
|
+
counts: ReconciliationStateCount[];
|
|
32
|
+
manuallyResolvedCount: number;
|
|
33
|
+
adjustedCount: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface ReconciliationMatrixRow extends ReconciliationMatrixCounts {
|
|
37
|
+
/** Mes `YYYY-MM`. */
|
|
38
|
+
month: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** Matriz anual; TEST no cuenta. */
|
|
42
|
+
export interface GetReconciliationMatrixResponse {
|
|
43
|
+
definitionId: string;
|
|
44
|
+
ruleType: ReconciliationRuleTypeEnum;
|
|
45
|
+
year: number;
|
|
46
|
+
expectedSideName?: string;
|
|
47
|
+
executedSideName?: string;
|
|
48
|
+
rows: ReconciliationMatrixRow[];
|
|
49
|
+
total: ReconciliationMatrixCounts;
|
|
50
|
+
lastRunAt?: string;
|
|
51
|
+
nextRunAt?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface ReconciliationCounterpartyOverview {
|
|
55
|
+
counterpartyType: TransferNotePartyTypeEnum;
|
|
56
|
+
counterpartyId: string;
|
|
57
|
+
okCount: number;
|
|
58
|
+
differenceCount: number;
|
|
59
|
+
lastRunAt?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** Salud de la conciliación por contraparte, no la mora. */
|
|
63
|
+
export interface GetReconciliationOverviewResponse {
|
|
64
|
+
items: ReconciliationCounterpartyOverview[];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface ReconciliationLayerSummary {
|
|
68
|
+
layer: ReconciliationLayerEnum;
|
|
69
|
+
counts: ReconciliationStateCount[];
|
|
70
|
+
expectedAmountCents?: number;
|
|
71
|
+
executedAmountCents?: number;
|
|
72
|
+
differenceCents?: number;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface GetReconciliationSummaryResponse {
|
|
76
|
+
definitionId: string;
|
|
77
|
+
periodKey: string;
|
|
78
|
+
layers: ReconciliationLayerSummary[];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** Con `format=csv` el cuerpo es `text/csv` con las mismas columnas. */
|
|
82
|
+
export interface ListReconciliationItemsResponse {
|
|
83
|
+
items: ReconciliationItem[];
|
|
84
|
+
total: number;
|
|
85
|
+
nextToken?: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** Partida con sus notas, su historial y el detalle en vivo. */
|
|
89
|
+
export interface GetReconciliationItemResponse extends ReconciliationItem {
|
|
90
|
+
notes: ReconciliationItemNote[];
|
|
91
|
+
resolutionHistory: ReconciliationResolutionHistoryEntry[];
|
|
92
|
+
liveDetail: ReconciliationItemLiveDetail;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/** El mismo ajuste repetido devuelve la primera resolución. */
|
|
96
|
+
export type ResolveReconciliationItemResponse = ReconciliationItem;
|
|
97
|
+
export type ReactivateReconciliationItemResponse = ReconciliationItem;
|
|
98
|
+
|
|
99
|
+
export interface AddReconciliationItemNoteResponse {
|
|
100
|
+
notes: ReconciliationItemNote[];
|
|
101
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Codes de error de reconciliation-engine-business; el status de cada uno está en
|
|
3
|
+
* `RECONCILIATION_ERROR_HTTP_STATUS`. Las clases `DomainError` viven en el lambda.
|
|
4
|
+
*/
|
|
5
|
+
export enum ReconciliationErrorCodeEnum {
|
|
6
|
+
DEFINITION_NOT_FOUND = 'DEFINITION_NOT_FOUND',
|
|
7
|
+
RUN_IN_PROGRESS = 'RUN_IN_PROGRESS',
|
|
8
|
+
ITEM_NOT_FOUND = 'ITEM_NOT_FOUND',
|
|
9
|
+
/** La partida ya tiene otra resolución; el mismo ajuste repetido responde 200 con el primero. */
|
|
10
|
+
ITEM_ALREADY_RESOLVED = 'ITEM_ALREADY_RESOLVED',
|
|
11
|
+
ADJUSTMENT_IN_PROGRESS = 'ADJUSTMENT_IN_PROGRESS',
|
|
12
|
+
/** Faltó lo ejecutado o fue de menos: se corrige en el origen y la partida sigue abierta. */
|
|
13
|
+
ADJUSTMENT_UNDER_EXECUTED = 'ADJUSTMENT_UNDER_EXECUTED',
|
|
14
|
+
/** La partida está en OK. */
|
|
15
|
+
ADJUSTMENT_NOT_ALLOWED = 'ADJUSTMENT_NOT_ALLOWED',
|
|
16
|
+
/** El dueño del dinero rechazó el ajuste. */
|
|
17
|
+
ADJUSTMENT_REJECTED = 'ADJUSTMENT_REJECTED',
|
|
18
|
+
/** El dueño del dinero no respondió. */
|
|
19
|
+
ADJUSTMENT_UNAVAILABLE = 'ADJUSTMENT_UNAVAILABLE',
|
|
20
|
+
/** Una partida ajustada no se reactiva. */
|
|
21
|
+
ITEM_ADJUSTED = 'ITEM_ADJUSTED',
|
|
22
|
+
/** El `author` del espejo privado no está en la lista permitida del lambda. */
|
|
23
|
+
AUTHOR_NOT_ALLOWED = 'AUTHOR_NOT_ALLOWED',
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TransferNoteConceptEnum } from '../../transferNote/enums/TransferNoteConceptEnum';
|
|
2
|
+
import { TransferNoteFeedConceptEnum } from '../../transferNote/enums/TransferNoteFeedConceptEnum';
|
|
3
|
+
|
|
4
|
+
/** Conceptos de `GET /private/reconciliation-feeds/{concept}`; reusa los strings de transferNote. */
|
|
5
|
+
export enum ReconciliationFeedConceptEnum {
|
|
6
|
+
INSTALLMENT_COLLECTION = TransferNoteConceptEnum.INSTALLMENT_COLLECTION,
|
|
7
|
+
CREDIT_PROMOTION_REIMBURSEMENT = TransferNoteConceptEnum.CREDIT_PROMOTION_REIMBURSEMENT,
|
|
8
|
+
SALE_PROMOTION_REIMBURSEMENT = TransferNoteConceptEnum.SALE_PROMOTION_REIMBURSEMENT,
|
|
9
|
+
/** Apagado hasta que exista el pago a la wallet del vendedor. */
|
|
10
|
+
SALE_COMMISSION = TransferNoteConceptEnum.SALE_COMMISSION,
|
|
11
|
+
DEVICE_PAYMENT = TransferNoteConceptEnum.DEVICE_PAYMENT,
|
|
12
|
+
DOWN_PAYMENT = TransferNoteConceptEnum.DOWN_PAYMENT,
|
|
13
|
+
/** Un registro por crédito con contrato firmado, incluidos los cancelados dentro de 7 días. */
|
|
14
|
+
SIGNED_CREDIT = 'SIGNED_CREDIT',
|
|
15
|
+
/** Movimientos de las cuentas del gateway. */
|
|
16
|
+
GATEWAY_LEDGER = 'GATEWAY_LEDGER',
|
|
17
|
+
TRANSFER_NOTE_ITEM = TransferNoteFeedConceptEnum.TRANSFER_NOTE_ITEM,
|
|
18
|
+
TRANSFER_NOTE_SETTLEMENT = TransferNoteFeedConceptEnum.TRANSFER_NOTE_SETTLEMENT,
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Lambda dueño de un feed; el valor es el nombre del lambda al que llama el motor. */
|
|
2
|
+
export enum ReconciliationFeedOwnerEnum {
|
|
3
|
+
LOAN_CREDIT_BUSINESS = 'loan-credit-business',
|
|
4
|
+
LOAN_OFFERINGS_BUSINESS = 'loan-offerings-business',
|
|
5
|
+
RETAIL_CUSTOMER_BUSINESS = 'retail-customer-business',
|
|
6
|
+
RETAIL_WIZARD_BUSINESS = 'retail-wizard-business',
|
|
7
|
+
TRANSACTION_BUSINESS = 'transaction-business',
|
|
8
|
+
TRANSFER_NOTE_BUSINESS = 'transfer-note-business',
|
|
9
|
+
}
|