@firela/api-types 0.0.0-canary.0327ab9e → 0.0.0-canary.074c27d4
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/dist/index.d.mts +124 -18
- package/dist/index.d.ts +124 -18
- package/dist/index.js +27 -0
- package/dist/index.mjs +27 -0
- package/package.json +1 -1
- package/src/generated/schemas.gen.ts +143 -11
- package/src/generated/services.gen.ts +32 -0
- package/src/generated/types.gen.ts +172 -18
package/dist/index.d.mts
CHANGED
|
@@ -513,6 +513,54 @@ type BatchTransactionResponseDto = {
|
|
|
513
513
|
*/
|
|
514
514
|
failed: Array<BatchTransactionErrorDto>;
|
|
515
515
|
};
|
|
516
|
+
type CorrectTransactionDto = {
|
|
517
|
+
/**
|
|
518
|
+
* Transaction date (ISO 8601 format)
|
|
519
|
+
*/
|
|
520
|
+
date: string;
|
|
521
|
+
/**
|
|
522
|
+
* Transaction flag: * (cleared), ! (pending)
|
|
523
|
+
*/
|
|
524
|
+
flag?: '*' | '!';
|
|
525
|
+
/**
|
|
526
|
+
* Payee name
|
|
527
|
+
*/
|
|
528
|
+
payee?: string;
|
|
529
|
+
/**
|
|
530
|
+
* Transaction narration/description
|
|
531
|
+
*/
|
|
532
|
+
narration: string;
|
|
533
|
+
/**
|
|
534
|
+
* Transaction tags (without # prefix)
|
|
535
|
+
*/
|
|
536
|
+
tags?: Array<string>;
|
|
537
|
+
/**
|
|
538
|
+
* Transaction links (without ^ prefix)
|
|
539
|
+
*/
|
|
540
|
+
links?: Array<string>;
|
|
541
|
+
/**
|
|
542
|
+
* Transaction postings (minimum 1, typically 2 for double-entry)
|
|
543
|
+
*/
|
|
544
|
+
postings: Array<CreatePostingDto>;
|
|
545
|
+
/**
|
|
546
|
+
* Transaction-level metadata
|
|
547
|
+
*/
|
|
548
|
+
meta?: {
|
|
549
|
+
[key: string]: unknown;
|
|
550
|
+
};
|
|
551
|
+
/**
|
|
552
|
+
* Unique key for idempotent transaction creation. If provided, duplicate requests with the same key will return the existing transaction.
|
|
553
|
+
*/
|
|
554
|
+
idempotencyKey?: string;
|
|
555
|
+
/**
|
|
556
|
+
* Auto-create accounts if not found. When true, missing accounts will be automatically created. When false (default for API), missing accounts will cause a validation error. Set to true for quick entry scenarios where you want to create accounts on-the-fly.
|
|
557
|
+
*/
|
|
558
|
+
autoCreateAccounts?: boolean;
|
|
559
|
+
/**
|
|
560
|
+
* Reason for correcting/superseding the original transaction
|
|
561
|
+
*/
|
|
562
|
+
correctionReason?: string;
|
|
563
|
+
};
|
|
516
564
|
type PostingDetailDto = {
|
|
517
565
|
/**
|
|
518
566
|
* Posting ID
|
|
@@ -523,9 +571,9 @@ type PostingDetailDto = {
|
|
|
523
571
|
*/
|
|
524
572
|
accountId: string;
|
|
525
573
|
/**
|
|
526
|
-
*
|
|
574
|
+
* Fully-qualified Beancount account path
|
|
527
575
|
*/
|
|
528
|
-
|
|
576
|
+
account: string;
|
|
529
577
|
/**
|
|
530
578
|
* Amount as decimal string. Typed optional but always present in responses: interpolation fills any MISSING posting before it is persisted or returned.
|
|
531
579
|
*/
|
|
@@ -609,9 +657,9 @@ type TransactionDetailDto = {
|
|
|
609
657
|
*/
|
|
610
658
|
status: 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
|
|
611
659
|
/**
|
|
612
|
-
* Source type (
|
|
660
|
+
* Source type (free-form string from transaction metadata, e.g. import, api)
|
|
613
661
|
*/
|
|
614
|
-
sourceType?:
|
|
662
|
+
sourceType?: string;
|
|
615
663
|
/**
|
|
616
664
|
* Source platform (e.g., alipay, wechat)
|
|
617
665
|
*/
|
|
@@ -636,6 +684,14 @@ type TransactionDetailDto = {
|
|
|
636
684
|
* Correction reason (if voided or superseded)
|
|
637
685
|
*/
|
|
638
686
|
correctionReason?: string;
|
|
687
|
+
/**
|
|
688
|
+
* ID of the transaction that supersedes this one (set when status=SUPERSEDED)
|
|
689
|
+
*/
|
|
690
|
+
supersededBy?: string;
|
|
691
|
+
/**
|
|
692
|
+
* ID of the transaction this one corrected/replaced (back-link on the replacement)
|
|
693
|
+
*/
|
|
694
|
+
originalTxn?: string;
|
|
639
695
|
};
|
|
640
696
|
/**
|
|
641
697
|
* Transaction flag
|
|
@@ -645,10 +701,6 @@ type flag2 = 'CLEARED' | 'PENDING' | 'PADDING' | 'SUMMARIZE' | 'TRANSFER' | 'CON
|
|
|
645
701
|
* Transaction status
|
|
646
702
|
*/
|
|
647
703
|
type status2 = 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
|
|
648
|
-
/**
|
|
649
|
-
* Source type (how the transaction was created)
|
|
650
|
-
*/
|
|
651
|
-
type sourceType = 'NLP' | 'CSV' | 'OCR' | 'API';
|
|
652
704
|
type TransactionListResponseDto = {
|
|
653
705
|
/**
|
|
654
706
|
* List of transactions
|
|
@@ -775,9 +827,9 @@ type TransactionSummaryDto = {
|
|
|
775
827
|
*/
|
|
776
828
|
accountName?: string;
|
|
777
829
|
/**
|
|
778
|
-
* Source type (
|
|
830
|
+
* Source type (free-form string from transaction metadata, e.g. import, api)
|
|
779
831
|
*/
|
|
780
|
-
sourceType?:
|
|
832
|
+
sourceType?: string;
|
|
781
833
|
/**
|
|
782
834
|
* Source platform (e.g., alipay, wechat)
|
|
783
835
|
*/
|
|
@@ -819,7 +871,7 @@ type ReviewSummaryDto = {
|
|
|
819
871
|
*/
|
|
820
872
|
matchReasons: Array<string>;
|
|
821
873
|
/**
|
|
822
|
-
* Source type (
|
|
874
|
+
* Source type (free-form string from transaction metadata, e.g. import, api)
|
|
823
875
|
*/
|
|
824
876
|
sourceType: string;
|
|
825
877
|
/**
|
|
@@ -906,7 +958,7 @@ type DecisionOptionDto = {
|
|
|
906
958
|
/**
|
|
907
959
|
* The action value to submit (e.g., UPGRADE_REPLACE, ACCEPT)
|
|
908
960
|
*/
|
|
909
|
-
value:
|
|
961
|
+
value: 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
|
|
910
962
|
/**
|
|
911
963
|
* i18n message key for display label (e.g., review.payee.accept.label)
|
|
912
964
|
*/
|
|
@@ -920,6 +972,10 @@ type DecisionOptionDto = {
|
|
|
920
972
|
*/
|
|
921
973
|
recommended?: boolean;
|
|
922
974
|
};
|
|
975
|
+
/**
|
|
976
|
+
* The action value to submit (e.g., UPGRADE_REPLACE, ACCEPT)
|
|
977
|
+
*/
|
|
978
|
+
type value = 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
|
|
923
979
|
type ReviewDetailDto = {
|
|
924
980
|
/**
|
|
925
981
|
* Review item ID
|
|
@@ -956,7 +1012,7 @@ type ReviewDetailDto = {
|
|
|
956
1012
|
*/
|
|
957
1013
|
matchReasons: Array<string>;
|
|
958
1014
|
/**
|
|
959
|
-
* Source type (
|
|
1015
|
+
* Source type (free-form string from transaction metadata, e.g. import, api)
|
|
960
1016
|
*/
|
|
961
1017
|
sourceType: string;
|
|
962
1018
|
/**
|
|
@@ -1008,9 +1064,9 @@ type ReviewDetailDto = {
|
|
|
1008
1064
|
};
|
|
1009
1065
|
type ResolveReviewDto = {
|
|
1010
1066
|
/**
|
|
1011
|
-
* Decision action.
|
|
1067
|
+
* Decision action. Valid actions vary by review type — see DecisionOptionDto.value returned by the review detail endpoint.
|
|
1012
1068
|
*/
|
|
1013
|
-
action:
|
|
1069
|
+
action: 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
|
|
1014
1070
|
/**
|
|
1015
1071
|
* Additional data for the decision (e.g., selected account ID)
|
|
1016
1072
|
*/
|
|
@@ -1018,6 +1074,10 @@ type ResolveReviewDto = {
|
|
|
1018
1074
|
[key: string]: unknown;
|
|
1019
1075
|
};
|
|
1020
1076
|
};
|
|
1077
|
+
/**
|
|
1078
|
+
* Decision action. Valid actions vary by review type — see DecisionOptionDto.value returned by the review detail endpoint.
|
|
1079
|
+
*/
|
|
1080
|
+
type action = 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
|
|
1021
1081
|
type ResolveResultDto = {
|
|
1022
1082
|
/**
|
|
1023
1083
|
* Whether resolution was successful
|
|
@@ -1072,7 +1132,7 @@ type BatchResolveDto = {
|
|
|
1072
1132
|
/**
|
|
1073
1133
|
* Decision action to apply to all items
|
|
1074
1134
|
*/
|
|
1075
|
-
action:
|
|
1135
|
+
action: 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
|
|
1076
1136
|
/**
|
|
1077
1137
|
* Additional data for the decision
|
|
1078
1138
|
*/
|
|
@@ -3448,7 +3508,7 @@ type status4 = 'success' | 'pending' | 'error';
|
|
|
3448
3508
|
/**
|
|
3449
3509
|
* Action taken or requested
|
|
3450
3510
|
*/
|
|
3451
|
-
type
|
|
3511
|
+
type action2 = 'created' | 'ask' | 'confirm' | 'confirm_duplicate' | 'confirm_rule' | 'confirm_account' | 'confirm_payee' | 'cancel';
|
|
3452
3512
|
/**
|
|
3453
3513
|
* Transaction intent detected by EntityRouter (v6.0: 5 core intents). Frontend uses this to render scenario-specific form fields.
|
|
3454
3514
|
*/
|
|
@@ -4097,6 +4157,18 @@ type TransactionControllerCreateBatchData = {
|
|
|
4097
4157
|
requestBody: BatchCreateTransactionDto;
|
|
4098
4158
|
};
|
|
4099
4159
|
type TransactionControllerCreateBatchResponse = BatchTransactionResponseDto;
|
|
4160
|
+
type TransactionControllerCorrectData = {
|
|
4161
|
+
/**
|
|
4162
|
+
* Original transaction ID to correct
|
|
4163
|
+
*/
|
|
4164
|
+
id: string;
|
|
4165
|
+
/**
|
|
4166
|
+
* Region code for tenant context
|
|
4167
|
+
*/
|
|
4168
|
+
region: 'cn' | 'us' | 'de' | 'gb';
|
|
4169
|
+
requestBody: CorrectTransactionDto;
|
|
4170
|
+
};
|
|
4171
|
+
type TransactionControllerCorrectResponse = TransactionDetailDto;
|
|
4100
4172
|
type TransactionControllerSuggestTagsData = {
|
|
4101
4173
|
/**
|
|
4102
4174
|
* Max suggestions (1-100, default 10)
|
|
@@ -5332,6 +5404,29 @@ type $OpenApiTs = {
|
|
|
5332
5404
|
};
|
|
5333
5405
|
};
|
|
5334
5406
|
};
|
|
5407
|
+
'/api/v1/{region}/bean/transactions/{id}/correct': {
|
|
5408
|
+
post: {
|
|
5409
|
+
req: TransactionControllerCorrectData;
|
|
5410
|
+
res: {
|
|
5411
|
+
/**
|
|
5412
|
+
* Corrected transaction created
|
|
5413
|
+
*/
|
|
5414
|
+
201: TransactionDetailDto;
|
|
5415
|
+
/**
|
|
5416
|
+
* Original transaction not found
|
|
5417
|
+
*/
|
|
5418
|
+
404: ApiProblemResponseDto;
|
|
5419
|
+
/**
|
|
5420
|
+
* Original no longer ACTIVE (concurrent modification)
|
|
5421
|
+
*/
|
|
5422
|
+
409: ApiProblemResponseDto;
|
|
5423
|
+
/**
|
|
5424
|
+
* Pipeline validation failed (does not balance, invalid accounts)
|
|
5425
|
+
*/
|
|
5426
|
+
422: ApiProblemResponseDto;
|
|
5427
|
+
};
|
|
5428
|
+
};
|
|
5429
|
+
};
|
|
5335
5430
|
'/api/v1/{region}/bean/transactions/tags': {
|
|
5336
5431
|
get: {
|
|
5337
5432
|
req: TransactionControllerSuggestTagsData;
|
|
@@ -7197,6 +7292,17 @@ declare class BeanTransactionsService {
|
|
|
7197
7292
|
* @throws ApiError
|
|
7198
7293
|
*/
|
|
7199
7294
|
static transactionControllerCreateBatch(data: TransactionControllerCreateBatchData): CancelablePromise<TransactionControllerCreateBatchResponse>;
|
|
7295
|
+
/**
|
|
7296
|
+
* Correct (supersede) a transaction
|
|
7297
|
+
* Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
|
|
7298
|
+
* @param data The data for the request.
|
|
7299
|
+
* @param data.id Original transaction ID to correct
|
|
7300
|
+
* @param data.region Region code for tenant context
|
|
7301
|
+
* @param data.requestBody
|
|
7302
|
+
* @returns TransactionDetailDto Corrected transaction created
|
|
7303
|
+
* @throws ApiError
|
|
7304
|
+
*/
|
|
7305
|
+
static transactionControllerCorrect(data: TransactionControllerCorrectData): CancelablePromise<TransactionControllerCorrectResponse>;
|
|
7200
7306
|
/**
|
|
7201
7307
|
* Suggest transaction tags
|
|
7202
7308
|
* Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
|
|
@@ -7476,4 +7582,4 @@ type OpenAPIConfig = {
|
|
|
7476
7582
|
};
|
|
7477
7583
|
declare const OpenAPI: OpenAPIConfig;
|
|
7478
7584
|
|
|
7479
|
-
export { type $OpenApiTs, type AccountControllerCloseData, type AccountControllerCloseResponse, type AccountControllerCreateData, type AccountControllerCreateResponse, type AccountControllerDeleteData, type AccountControllerDeleteResponse, type AccountControllerFindAllData, type AccountControllerFindAllResponse, type AccountControllerFindOneData, type AccountControllerFindOneResponse, type AccountControllerReopenData, type AccountControllerReopenResponse, type AccountControllerUpdateData, type AccountControllerUpdateResponse, type AccountExchangeRateWarningDto, type AccountItemDto, type AccountItemWithAssetClassDto, type AccountListResponseDto, type AccountResponseDto, type AccountStandardListResponseDto, type AccountStandardResponseDto, type AccountStandardsControllerGetRegionsData, type AccountStandardsControllerGetRegionsResponse, type AccountStandardsControllerGetTemplateMetadataData, type AccountStandardsControllerGetTemplateMetadataResponse, type AccountStandardsControllerGetTemplatesData, type AccountStandardsControllerGetTemplatesResponse, type AccountsResponseDto, type AccountsSummaryDto, type AmountRangeDto, type AnonymousLoginDto, type ApiKeysControllerCreateApiKeyResponse, type ApiProblemResponseDto, type AssetClassAccountsResponseDto, type AssetClassGroupDto, type AssetClassSummaryDto, type AuthControllerAccessTokenLoginData, type AuthControllerAccessTokenLoginResponse, type BackfillSnapshotsBody, type BackfillSnapshotsResponse, type BalanceByCurrencyDto, type BalanceControllerGetBalanceData, type BalanceControllerGetBalanceResponse, type BalanceControllerGetMultiCurrencyBalanceData, type BalanceControllerGetMultiCurrencyBalanceResponse, type BalanceResponseDto, type BatchCreateTransactionDto, type BatchResolveDto, type BatchResolveResultDto, type BatchTransactionErrorDto, type BatchTransactionResponseDto, BeanAccountsService, BeanBalancesService, BeanCommoditiesService, BeanTransactionsService, type BulkCreateRulesDto, type BulkCreateRulesResponseDto, type CacheControllerFlushCacheResponse, type CashFlowByCurrencyDto, type CashFlowResponseDto, type CloseAccountDto, type CommodityControllerBulkCreateData, type CommodityControllerBulkCreateResponse, type CommodityControllerCreateData, type CommodityControllerCreateResponse, type CommodityControllerDeleteData, type CommodityControllerDeleteResponse, type CommodityControllerFindAllData, type CommodityControllerFindAllResponse, type CommodityControllerFindOneData, type CommodityControllerFindOneResponse, type CommodityControllerGetOrCreateData, type CommodityControllerGetOrCreateResponse, type CommodityControllerUpdateData, type CommodityControllerUpdateResponse, type CommodityListResponseDto, type CommodityResponseDto, type ConfirmMatchDto, type ConvertedCashFlowDto, type ConvertedNetWorthDto, type CreateAccountDto, type CreateCommodityDto, type CreatePayeeDto, type CreatePayeeProfileDto, type CreatePlatformDto, type CreatePostingDto, type CreateRecurringRuleDto, type CreateRuleFromTransactionDto, type CreateTransactionDto, type CreateTransactionRuleDto, type CurrencyBalanceDto, type DashboardControllerGetAccountsData, type DashboardControllerGetAccountsResponse, type DashboardControllerGetCashFlowData, type DashboardControllerGetCashFlowResponse, type DashboardControllerGetNetWorthData, type DashboardControllerGetNetWorthResponse, type DecisionOptionDto, type DeleteOwnUserDto, type EnterNowDto, type ExchangeRateControllerGetExchangeRateData, type ExchangeRateControllerGetExchangeRateResponse, type ExchangeRateWarningDto, type ExpectedTransactionControllerConfirmMatchData, type ExpectedTransactionControllerConfirmMatchResponse, type ExpectedTransactionControllerEnterNowData, type ExpectedTransactionControllerEnterNowResponse, type ExpectedTransactionControllerFindAllData, type ExpectedTransactionControllerFindAllResponse, type ExpectedTransactionControllerFindOneData, type ExpectedTransactionControllerFindOneResponse, type ExpectedTransactionControllerFindOverdueData, type ExpectedTransactionControllerFindOverdueResponse, type ExpectedTransactionControllerSkipData, type ExpectedTransactionControllerSkipResponse, type ExpectedTransactionControllerUndoSkipData, type ExpectedTransactionControllerUndoSkipResponse, type ExpectedTransactionControllerUnmatchData, type ExpectedTransactionControllerUnmatchResponse, type ExpectedTransactionListResponseDto, type ExpectedTransactionResponseDto, type ExpectedTransactionRuleDto, type ExportControllerExportBeancountResponse, type ExportRulesResponseDto, type FileImportControllerIdentifyFileData, type FileImportControllerIdentifyFileResponse, type FileImportControllerImportBeancountData, type FileImportControllerImportBeancountResponse, type FileImportControllerImportFileData, type FileImportControllerImportFileResponse, type FileImportDto, type ForecastControllerGetForecastData, type ForecastControllerGetForecastResponse, type ForecastItemDto, type ForecastResponseDto, type GenerateSnapshotBody, type GenerateSnapshotResponse, type HealthControllerCheckDatabaseResponse, type HealthControllerCheckOpenBbResponse, type HealthControllerCheckRedisResponse, type HealthControllerGetCircuitBreakersHealthResponse, type HealthControllerGetHealthResponse, type HealthControllerGetMetricsResponse, type HealthControllerResetCircuitBreakerData, type HealthControllerResetCircuitBreakerResponse, HealthService, type IdentifyResultDto, type ImportErrorDto, type ImportResultDto, type ImporterConfigControllerGetConfigData, type ImporterConfigControllerGetConfigResponse, type ImporterConfigControllerResetConfigData, type ImporterConfigControllerResetConfigResponse, type ImporterConfigControllerUpdateConfigData, type ImporterConfigControllerUpdateConfigResponse, type ImporterConfigDataDto, type ImporterConfigDto, type InfoControllerGetInfoResponse, type MapperDefaultsDto, type MonthlyForecastDto, type MultiCurrencyBalanceResponseDto, type MultiCurrencyPointDto, type NetWorthByCurrencyDto, type NetWorthResponseDto, type NlpAccountConfirmationDataDto, type NlpAlternativePayeeDto, type NlpControllerClearSessionData, type NlpControllerClearSessionResponse, type NlpControllerGetSessionData, type NlpControllerGetSessionResponse, type NlpControllerProcessNaturalLanguageData, type NlpControllerProcessNaturalLanguageResponse, type NlpDefaultAccountsDto, type NlpDuplicateConfirmationDataDto, type NlpParsedDataDto, type NlpPayeeConfirmationDataDto, type NlpResponseDto, type NlpRuleConfirmationDataDto, type NlpSimilarityDto, type NlpSourceTransactionDto, type NlpSuggestedAccountDto, type NlpSuggestedAccountsDto, type NlpSuggestedPayeeDto, type NlpTargetTransactionDto, type NlpTransactionInfoDto, OpenAPI, type OpenAPIConfig, type ParserTelemetryReportDto, type PayeeAutocompleteResponseDto, type PayeeControllerAutocompleteData, type PayeeControllerAutocompleteResponse, type PayeeControllerCreateData, type PayeeControllerCreateResponse, type PayeeControllerDeleteData, type PayeeControllerDeleteResponse, type PayeeControllerFindAllData, type PayeeControllerFindAllResponse, type PayeeControllerFindOneData, type PayeeControllerFindOneResponse, type PayeeControllerGetTopPayeesData, type PayeeControllerGetTopPayeesResponse, type PayeeControllerUpdateData, type PayeeControllerUpdateResponse, type PayeeListResponseDto, type PayeeProfileAdminControllerCreateData, type PayeeProfileAdminControllerCreateResponse, type PayeeProfileAdminControllerDeleteData, type PayeeProfileAdminControllerDeleteResponse, type PayeeProfileAdminControllerFindAllData, type PayeeProfileAdminControllerFindAllResponse, type PayeeProfileAdminControllerFindOneData, type PayeeProfileAdminControllerFindOneResponse, type PayeeProfileAdminControllerUnverifyData, type PayeeProfileAdminControllerUnverifyResponse, type PayeeProfileAdminControllerUpdateData, type PayeeProfileAdminControllerUpdateResponse, type PayeeProfileAdminControllerVerifyData, type PayeeProfileAdminControllerVerifyResponse, type PayeeProfileListResponseDto, type PayeeProfileResponseDto, type PayeeResponseDto, type PayeeStatsResponseDto, type PlatformControllerCreateData, type PlatformControllerCreateResponse, type PlatformControllerDeleteData, type PlatformControllerDeleteResponse, type PlatformControllerFindAllResponse, type PlatformControllerGetPlatformListResponse, type PlatformControllerMatchPlatformsData, type PlatformControllerMatchPlatformsResponse, type PlatformControllerUpdateData, type PlatformControllerUpdateResponse, type PlatformGroupDto, type PortfolioTrendsResponseDto, type PostingDetailDto, type PostingResponseDto, type ProcessNlpDto, type PropertyControllerDeleteData, type PropertyControllerDeleteResponse, type PropertyControllerGetAllResponse, type PropertyControllerGetByKeyData, type PropertyControllerGetByKeyResponse, type PropertyControllerUpdateData, type PropertyControllerUpdateResponse, type ProviderSyncConfigDto, type ProviderSyncControllerGetSupportedProvidersData, type ProviderSyncControllerGetSupportedProvidersResponse, type ProviderSyncControllerIsProviderSupportedData, type ProviderSyncControllerIsProviderSupportedResponse, type ProviderSyncControllerSyncData, type ProviderSyncControllerSyncResponse, type ProviderSyncDto, type ProviderSyncResponseDto, ProviderSyncService, type RecurringMatchInfoDto, type RecurringRuleControllerCreateData, type RecurringRuleControllerCreateFromTransactionData, type RecurringRuleControllerCreateFromTransactionResponse, type RecurringRuleControllerCreateResponse, type RecurringRuleControllerDeleteData, type RecurringRuleControllerDeleteResponse, type RecurringRuleControllerFindAllData, type RecurringRuleControllerFindAllResponse, type RecurringRuleControllerFindOneData, type RecurringRuleControllerFindOneResponse, type RecurringRuleControllerGetWithStatsData, type RecurringRuleControllerGetWithStatsResponse, type RecurringRuleControllerUpdateData, type RecurringRuleControllerUpdateResponse, type RecurringRuleResponseDto, type RecurringRuleWithStatsResponseDto, type RecurringSuggestionDto, type RegionConfigDto, type RegionInfoDto, type RegionsMetadataResponseDto, type ReopenAccountDto, type ReportingControllerBackfillSnapshotsData, type ReportingControllerBackfillSnapshotsResponse, type ReportingControllerGenerateSnapshotData, type ReportingControllerGenerateSnapshotResponse, type ReportingControllerGetPortfolioTrendsData, type ReportingControllerGetPortfolioTrendsResponse, type ResolveResultDto, type ResolveReviewDto, type ReviewControllerBatchResolveData, type ReviewControllerBatchResolveResponse, type ReviewControllerFindAllData, type ReviewControllerFindAllResponse, type ReviewControllerFindOneData, type ReviewControllerFindOneResponse, type ReviewControllerGetStatsData, type ReviewControllerGetStatsResponse, type ReviewControllerResolveData, type ReviewControllerResolveResponse, type ReviewControllerUndoData, type ReviewControllerUndoResponse, type ReviewDetailDto, type ReviewItemPreviewDto, type ReviewListResponseDto, type ReviewStatsDto, type ReviewSummaryDto, type RuleStatisticsResponseDto, type SignupDto, type SupportedProvidersResponseDto, type TagSuggestionDto, type TagSuggestionsResponseDto, type TelemetryControllerReportTelemetryData, type TelemetryControllerReportTelemetryResponse, type TemplateMetadataDto, type TemplateMetadataResponseDto, type TestRuleDto, type TestRuleResponseDto, type TimeSeriesPointDto, type TransactionControllerCreateBatchData, type TransactionControllerCreateBatchResponse, type TransactionControllerCreateData, type TransactionControllerCreateResponse, type TransactionControllerDeleteData, type TransactionControllerDeleteResponse, type TransactionControllerGetDetailData, type TransactionControllerGetDetailResponse, type TransactionControllerListData, type TransactionControllerListResponse, type TransactionControllerSuggestTagsData, type TransactionControllerSuggestTagsResponse, type TransactionControllerUpdateData, type TransactionControllerUpdateResponse, type TransactionDetailDto, type TransactionListResponseDto, type TransactionResponseDto, type TransactionRuleControllerBulkCreateData, type TransactionRuleControllerBulkCreateResponse, type TransactionRuleControllerCreateData, type TransactionRuleControllerCreateResponse, type TransactionRuleControllerDeleteData, type TransactionRuleControllerDeleteResponse, type TransactionRuleControllerExportData, type TransactionRuleControllerExportResponse, type TransactionRuleControllerGetDetailData, type TransactionRuleControllerGetDetailResponse, type TransactionRuleControllerGetStatisticsData, type TransactionRuleControllerGetStatisticsResponse, type TransactionRuleControllerListData, type TransactionRuleControllerListResponse, type TransactionRuleControllerTestData, type TransactionRuleControllerTestResponse, type TransactionRuleControllerUpdateData, type TransactionRuleControllerUpdateResponse, type TransactionRuleControllerValidateData, type TransactionRuleControllerValidateResponse, type TransactionRuleListResponseDto, type TransactionRuleResponseDto, type TransactionSummaryDto, type TrendSummaryDto, type UndoResultDto, type UpdateAccountDto, type UpdateCommodityDto, type UpdateConfigDataDto, type UpdateImporterConfigDto, type UpdateMapperDefaultsDto, type UpdatePayeeDto, type UpdatePayeeProfileDto, type UpdatePlatformDto, type UpdatePropertyDto, type UpdateRecurringRuleDto, type UpdateTransactionDto, type UpdateTransactionRuleDto, type UpdateUserSettingDto, type UserControllerDeleteOwnUserData, type UserControllerDeleteOwnUserResponse, type UserControllerDeleteUserData, type UserControllerDeleteUserResponse, type UserControllerGetAllUserSettingsByPageData, type UserControllerGetAllUserSettingsByPageResponse, type UserControllerGetAssetLiabilitySummaryResponse, type UserControllerGetUserData, type UserControllerGetUserInfoData, type UserControllerGetUserInfoResponse, type UserControllerGetUserResponse, type UserControllerSignupUserData, type UserControllerSignupUserResponse, type UserControllerUpdateUserSettingData, type UserControllerUpdateUserSettingResponse, type ValidateRuleDto, type ValidateRuleResponseDto, type VersionedConfigDto, type action, type assetClass, type assetSubType, type bookingMethod, type branchType, type category, type colorScheme, type confidenceLevel, type conflictStrategy, type dataSource, type equitySubType, type flag, type flag2, type frequency, type importerId, type intent, type investmentAction, type learningSource, type liabilitySubType, type matchLogic, type paymentSource, type period, type source, type sourceType, type status, type status2, type status3, type status4, type suggestedFrequency, type type, type type2, type type3, type viewMode };
|
|
7585
|
+
export { type $OpenApiTs, type AccountControllerCloseData, type AccountControllerCloseResponse, type AccountControllerCreateData, type AccountControllerCreateResponse, type AccountControllerDeleteData, type AccountControllerDeleteResponse, type AccountControllerFindAllData, type AccountControllerFindAllResponse, type AccountControllerFindOneData, type AccountControllerFindOneResponse, type AccountControllerReopenData, type AccountControllerReopenResponse, type AccountControllerUpdateData, type AccountControllerUpdateResponse, type AccountExchangeRateWarningDto, type AccountItemDto, type AccountItemWithAssetClassDto, type AccountListResponseDto, type AccountResponseDto, type AccountStandardListResponseDto, type AccountStandardResponseDto, type AccountStandardsControllerGetRegionsData, type AccountStandardsControllerGetRegionsResponse, type AccountStandardsControllerGetTemplateMetadataData, type AccountStandardsControllerGetTemplateMetadataResponse, type AccountStandardsControllerGetTemplatesData, type AccountStandardsControllerGetTemplatesResponse, type AccountsResponseDto, type AccountsSummaryDto, type AmountRangeDto, type AnonymousLoginDto, type ApiKeysControllerCreateApiKeyResponse, type ApiProblemResponseDto, type AssetClassAccountsResponseDto, type AssetClassGroupDto, type AssetClassSummaryDto, type AuthControllerAccessTokenLoginData, type AuthControllerAccessTokenLoginResponse, type BackfillSnapshotsBody, type BackfillSnapshotsResponse, type BalanceByCurrencyDto, type BalanceControllerGetBalanceData, type BalanceControllerGetBalanceResponse, type BalanceControllerGetMultiCurrencyBalanceData, type BalanceControllerGetMultiCurrencyBalanceResponse, type BalanceResponseDto, type BatchCreateTransactionDto, type BatchResolveDto, type BatchResolveResultDto, type BatchTransactionErrorDto, type BatchTransactionResponseDto, BeanAccountsService, BeanBalancesService, BeanCommoditiesService, BeanTransactionsService, type BulkCreateRulesDto, type BulkCreateRulesResponseDto, type CacheControllerFlushCacheResponse, type CashFlowByCurrencyDto, type CashFlowResponseDto, type CloseAccountDto, type CommodityControllerBulkCreateData, type CommodityControllerBulkCreateResponse, type CommodityControllerCreateData, type CommodityControllerCreateResponse, type CommodityControllerDeleteData, type CommodityControllerDeleteResponse, type CommodityControllerFindAllData, type CommodityControllerFindAllResponse, type CommodityControllerFindOneData, type CommodityControllerFindOneResponse, type CommodityControllerGetOrCreateData, type CommodityControllerGetOrCreateResponse, type CommodityControllerUpdateData, type CommodityControllerUpdateResponse, type CommodityListResponseDto, type CommodityResponseDto, type ConfirmMatchDto, type ConvertedCashFlowDto, type ConvertedNetWorthDto, type CorrectTransactionDto, type CreateAccountDto, type CreateCommodityDto, type CreatePayeeDto, type CreatePayeeProfileDto, type CreatePlatformDto, type CreatePostingDto, type CreateRecurringRuleDto, type CreateRuleFromTransactionDto, type CreateTransactionDto, type CreateTransactionRuleDto, type CurrencyBalanceDto, type DashboardControllerGetAccountsData, type DashboardControllerGetAccountsResponse, type DashboardControllerGetCashFlowData, type DashboardControllerGetCashFlowResponse, type DashboardControllerGetNetWorthData, type DashboardControllerGetNetWorthResponse, type DecisionOptionDto, type DeleteOwnUserDto, type EnterNowDto, type ExchangeRateControllerGetExchangeRateData, type ExchangeRateControllerGetExchangeRateResponse, type ExchangeRateWarningDto, type ExpectedTransactionControllerConfirmMatchData, type ExpectedTransactionControllerConfirmMatchResponse, type ExpectedTransactionControllerEnterNowData, type ExpectedTransactionControllerEnterNowResponse, type ExpectedTransactionControllerFindAllData, type ExpectedTransactionControllerFindAllResponse, type ExpectedTransactionControllerFindOneData, type ExpectedTransactionControllerFindOneResponse, type ExpectedTransactionControllerFindOverdueData, type ExpectedTransactionControllerFindOverdueResponse, type ExpectedTransactionControllerSkipData, type ExpectedTransactionControllerSkipResponse, type ExpectedTransactionControllerUndoSkipData, type ExpectedTransactionControllerUndoSkipResponse, type ExpectedTransactionControllerUnmatchData, type ExpectedTransactionControllerUnmatchResponse, type ExpectedTransactionListResponseDto, type ExpectedTransactionResponseDto, type ExpectedTransactionRuleDto, type ExportControllerExportBeancountResponse, type ExportRulesResponseDto, type FileImportControllerIdentifyFileData, type FileImportControllerIdentifyFileResponse, type FileImportControllerImportBeancountData, type FileImportControllerImportBeancountResponse, type FileImportControllerImportFileData, type FileImportControllerImportFileResponse, type FileImportDto, type ForecastControllerGetForecastData, type ForecastControllerGetForecastResponse, type ForecastItemDto, type ForecastResponseDto, type GenerateSnapshotBody, type GenerateSnapshotResponse, type HealthControllerCheckDatabaseResponse, type HealthControllerCheckOpenBbResponse, type HealthControllerCheckRedisResponse, type HealthControllerGetCircuitBreakersHealthResponse, type HealthControllerGetHealthResponse, type HealthControllerGetMetricsResponse, type HealthControllerResetCircuitBreakerData, type HealthControllerResetCircuitBreakerResponse, HealthService, type IdentifyResultDto, type ImportErrorDto, type ImportResultDto, type ImporterConfigControllerGetConfigData, type ImporterConfigControllerGetConfigResponse, type ImporterConfigControllerResetConfigData, type ImporterConfigControllerResetConfigResponse, type ImporterConfigControllerUpdateConfigData, type ImporterConfigControllerUpdateConfigResponse, type ImporterConfigDataDto, type ImporterConfigDto, type InfoControllerGetInfoResponse, type MapperDefaultsDto, type MonthlyForecastDto, type MultiCurrencyBalanceResponseDto, type MultiCurrencyPointDto, type NetWorthByCurrencyDto, type NetWorthResponseDto, type NlpAccountConfirmationDataDto, type NlpAlternativePayeeDto, type NlpControllerClearSessionData, type NlpControllerClearSessionResponse, type NlpControllerGetSessionData, type NlpControllerGetSessionResponse, type NlpControllerProcessNaturalLanguageData, type NlpControllerProcessNaturalLanguageResponse, type NlpDefaultAccountsDto, type NlpDuplicateConfirmationDataDto, type NlpParsedDataDto, type NlpPayeeConfirmationDataDto, type NlpResponseDto, type NlpRuleConfirmationDataDto, type NlpSimilarityDto, type NlpSourceTransactionDto, type NlpSuggestedAccountDto, type NlpSuggestedAccountsDto, type NlpSuggestedPayeeDto, type NlpTargetTransactionDto, type NlpTransactionInfoDto, OpenAPI, type OpenAPIConfig, type ParserTelemetryReportDto, type PayeeAutocompleteResponseDto, type PayeeControllerAutocompleteData, type PayeeControllerAutocompleteResponse, type PayeeControllerCreateData, type PayeeControllerCreateResponse, type PayeeControllerDeleteData, type PayeeControllerDeleteResponse, type PayeeControllerFindAllData, type PayeeControllerFindAllResponse, type PayeeControllerFindOneData, type PayeeControllerFindOneResponse, type PayeeControllerGetTopPayeesData, type PayeeControllerGetTopPayeesResponse, type PayeeControllerUpdateData, type PayeeControllerUpdateResponse, type PayeeListResponseDto, type PayeeProfileAdminControllerCreateData, type PayeeProfileAdminControllerCreateResponse, type PayeeProfileAdminControllerDeleteData, type PayeeProfileAdminControllerDeleteResponse, type PayeeProfileAdminControllerFindAllData, type PayeeProfileAdminControllerFindAllResponse, type PayeeProfileAdminControllerFindOneData, type PayeeProfileAdminControllerFindOneResponse, type PayeeProfileAdminControllerUnverifyData, type PayeeProfileAdminControllerUnverifyResponse, type PayeeProfileAdminControllerUpdateData, type PayeeProfileAdminControllerUpdateResponse, type PayeeProfileAdminControllerVerifyData, type PayeeProfileAdminControllerVerifyResponse, type PayeeProfileListResponseDto, type PayeeProfileResponseDto, type PayeeResponseDto, type PayeeStatsResponseDto, type PlatformControllerCreateData, type PlatformControllerCreateResponse, type PlatformControllerDeleteData, type PlatformControllerDeleteResponse, type PlatformControllerFindAllResponse, type PlatformControllerGetPlatformListResponse, type PlatformControllerMatchPlatformsData, type PlatformControllerMatchPlatformsResponse, type PlatformControllerUpdateData, type PlatformControllerUpdateResponse, type PlatformGroupDto, type PortfolioTrendsResponseDto, type PostingDetailDto, type PostingResponseDto, type ProcessNlpDto, type PropertyControllerDeleteData, type PropertyControllerDeleteResponse, type PropertyControllerGetAllResponse, type PropertyControllerGetByKeyData, type PropertyControllerGetByKeyResponse, type PropertyControllerUpdateData, type PropertyControllerUpdateResponse, type ProviderSyncConfigDto, type ProviderSyncControllerGetSupportedProvidersData, type ProviderSyncControllerGetSupportedProvidersResponse, type ProviderSyncControllerIsProviderSupportedData, type ProviderSyncControllerIsProviderSupportedResponse, type ProviderSyncControllerSyncData, type ProviderSyncControllerSyncResponse, type ProviderSyncDto, type ProviderSyncResponseDto, ProviderSyncService, type RecurringMatchInfoDto, type RecurringRuleControllerCreateData, type RecurringRuleControllerCreateFromTransactionData, type RecurringRuleControllerCreateFromTransactionResponse, type RecurringRuleControllerCreateResponse, type RecurringRuleControllerDeleteData, type RecurringRuleControllerDeleteResponse, type RecurringRuleControllerFindAllData, type RecurringRuleControllerFindAllResponse, type RecurringRuleControllerFindOneData, type RecurringRuleControllerFindOneResponse, type RecurringRuleControllerGetWithStatsData, type RecurringRuleControllerGetWithStatsResponse, type RecurringRuleControllerUpdateData, type RecurringRuleControllerUpdateResponse, type RecurringRuleResponseDto, type RecurringRuleWithStatsResponseDto, type RecurringSuggestionDto, type RegionConfigDto, type RegionInfoDto, type RegionsMetadataResponseDto, type ReopenAccountDto, type ReportingControllerBackfillSnapshotsData, type ReportingControllerBackfillSnapshotsResponse, type ReportingControllerGenerateSnapshotData, type ReportingControllerGenerateSnapshotResponse, type ReportingControllerGetPortfolioTrendsData, type ReportingControllerGetPortfolioTrendsResponse, type ResolveResultDto, type ResolveReviewDto, type ReviewControllerBatchResolveData, type ReviewControllerBatchResolveResponse, type ReviewControllerFindAllData, type ReviewControllerFindAllResponse, type ReviewControllerFindOneData, type ReviewControllerFindOneResponse, type ReviewControllerGetStatsData, type ReviewControllerGetStatsResponse, type ReviewControllerResolveData, type ReviewControllerResolveResponse, type ReviewControllerUndoData, type ReviewControllerUndoResponse, type ReviewDetailDto, type ReviewItemPreviewDto, type ReviewListResponseDto, type ReviewStatsDto, type ReviewSummaryDto, type RuleStatisticsResponseDto, type SignupDto, type SupportedProvidersResponseDto, type TagSuggestionDto, type TagSuggestionsResponseDto, type TelemetryControllerReportTelemetryData, type TelemetryControllerReportTelemetryResponse, type TemplateMetadataDto, type TemplateMetadataResponseDto, type TestRuleDto, type TestRuleResponseDto, type TimeSeriesPointDto, type TransactionControllerCorrectData, type TransactionControllerCorrectResponse, type TransactionControllerCreateBatchData, type TransactionControllerCreateBatchResponse, type TransactionControllerCreateData, type TransactionControllerCreateResponse, type TransactionControllerDeleteData, type TransactionControllerDeleteResponse, type TransactionControllerGetDetailData, type TransactionControllerGetDetailResponse, type TransactionControllerListData, type TransactionControllerListResponse, type TransactionControllerSuggestTagsData, type TransactionControllerSuggestTagsResponse, type TransactionControllerUpdateData, type TransactionControllerUpdateResponse, type TransactionDetailDto, type TransactionListResponseDto, type TransactionResponseDto, type TransactionRuleControllerBulkCreateData, type TransactionRuleControllerBulkCreateResponse, type TransactionRuleControllerCreateData, type TransactionRuleControllerCreateResponse, type TransactionRuleControllerDeleteData, type TransactionRuleControllerDeleteResponse, type TransactionRuleControllerExportData, type TransactionRuleControllerExportResponse, type TransactionRuleControllerGetDetailData, type TransactionRuleControllerGetDetailResponse, type TransactionRuleControllerGetStatisticsData, type TransactionRuleControllerGetStatisticsResponse, type TransactionRuleControllerListData, type TransactionRuleControllerListResponse, type TransactionRuleControllerTestData, type TransactionRuleControllerTestResponse, type TransactionRuleControllerUpdateData, type TransactionRuleControllerUpdateResponse, type TransactionRuleControllerValidateData, type TransactionRuleControllerValidateResponse, type TransactionRuleListResponseDto, type TransactionRuleResponseDto, type TransactionSummaryDto, type TrendSummaryDto, type UndoResultDto, type UpdateAccountDto, type UpdateCommodityDto, type UpdateConfigDataDto, type UpdateImporterConfigDto, type UpdateMapperDefaultsDto, type UpdatePayeeDto, type UpdatePayeeProfileDto, type UpdatePlatformDto, type UpdatePropertyDto, type UpdateRecurringRuleDto, type UpdateTransactionDto, type UpdateTransactionRuleDto, type UpdateUserSettingDto, type UserControllerDeleteOwnUserData, type UserControllerDeleteOwnUserResponse, type UserControllerDeleteUserData, type UserControllerDeleteUserResponse, type UserControllerGetAllUserSettingsByPageData, type UserControllerGetAllUserSettingsByPageResponse, type UserControllerGetAssetLiabilitySummaryResponse, type UserControllerGetUserData, type UserControllerGetUserInfoData, type UserControllerGetUserInfoResponse, type UserControllerGetUserResponse, type UserControllerSignupUserData, type UserControllerSignupUserResponse, type UserControllerUpdateUserSettingData, type UserControllerUpdateUserSettingResponse, type ValidateRuleDto, type ValidateRuleResponseDto, type VersionedConfigDto, type action, type action2, type assetClass, type assetSubType, type bookingMethod, type branchType, type category, type colorScheme, type confidenceLevel, type conflictStrategy, type dataSource, type equitySubType, type flag, type flag2, type frequency, type importerId, type intent, type investmentAction, type learningSource, type liabilitySubType, type matchLogic, type paymentSource, type period, type source, type status, type status2, type status3, type status4, type suggestedFrequency, type type, type type2, type type3, type value, type viewMode };
|
package/dist/index.d.ts
CHANGED
|
@@ -513,6 +513,54 @@ type BatchTransactionResponseDto = {
|
|
|
513
513
|
*/
|
|
514
514
|
failed: Array<BatchTransactionErrorDto>;
|
|
515
515
|
};
|
|
516
|
+
type CorrectTransactionDto = {
|
|
517
|
+
/**
|
|
518
|
+
* Transaction date (ISO 8601 format)
|
|
519
|
+
*/
|
|
520
|
+
date: string;
|
|
521
|
+
/**
|
|
522
|
+
* Transaction flag: * (cleared), ! (pending)
|
|
523
|
+
*/
|
|
524
|
+
flag?: '*' | '!';
|
|
525
|
+
/**
|
|
526
|
+
* Payee name
|
|
527
|
+
*/
|
|
528
|
+
payee?: string;
|
|
529
|
+
/**
|
|
530
|
+
* Transaction narration/description
|
|
531
|
+
*/
|
|
532
|
+
narration: string;
|
|
533
|
+
/**
|
|
534
|
+
* Transaction tags (without # prefix)
|
|
535
|
+
*/
|
|
536
|
+
tags?: Array<string>;
|
|
537
|
+
/**
|
|
538
|
+
* Transaction links (without ^ prefix)
|
|
539
|
+
*/
|
|
540
|
+
links?: Array<string>;
|
|
541
|
+
/**
|
|
542
|
+
* Transaction postings (minimum 1, typically 2 for double-entry)
|
|
543
|
+
*/
|
|
544
|
+
postings: Array<CreatePostingDto>;
|
|
545
|
+
/**
|
|
546
|
+
* Transaction-level metadata
|
|
547
|
+
*/
|
|
548
|
+
meta?: {
|
|
549
|
+
[key: string]: unknown;
|
|
550
|
+
};
|
|
551
|
+
/**
|
|
552
|
+
* Unique key for idempotent transaction creation. If provided, duplicate requests with the same key will return the existing transaction.
|
|
553
|
+
*/
|
|
554
|
+
idempotencyKey?: string;
|
|
555
|
+
/**
|
|
556
|
+
* Auto-create accounts if not found. When true, missing accounts will be automatically created. When false (default for API), missing accounts will cause a validation error. Set to true for quick entry scenarios where you want to create accounts on-the-fly.
|
|
557
|
+
*/
|
|
558
|
+
autoCreateAccounts?: boolean;
|
|
559
|
+
/**
|
|
560
|
+
* Reason for correcting/superseding the original transaction
|
|
561
|
+
*/
|
|
562
|
+
correctionReason?: string;
|
|
563
|
+
};
|
|
516
564
|
type PostingDetailDto = {
|
|
517
565
|
/**
|
|
518
566
|
* Posting ID
|
|
@@ -523,9 +571,9 @@ type PostingDetailDto = {
|
|
|
523
571
|
*/
|
|
524
572
|
accountId: string;
|
|
525
573
|
/**
|
|
526
|
-
*
|
|
574
|
+
* Fully-qualified Beancount account path
|
|
527
575
|
*/
|
|
528
|
-
|
|
576
|
+
account: string;
|
|
529
577
|
/**
|
|
530
578
|
* Amount as decimal string. Typed optional but always present in responses: interpolation fills any MISSING posting before it is persisted or returned.
|
|
531
579
|
*/
|
|
@@ -609,9 +657,9 @@ type TransactionDetailDto = {
|
|
|
609
657
|
*/
|
|
610
658
|
status: 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
|
|
611
659
|
/**
|
|
612
|
-
* Source type (
|
|
660
|
+
* Source type (free-form string from transaction metadata, e.g. import, api)
|
|
613
661
|
*/
|
|
614
|
-
sourceType?:
|
|
662
|
+
sourceType?: string;
|
|
615
663
|
/**
|
|
616
664
|
* Source platform (e.g., alipay, wechat)
|
|
617
665
|
*/
|
|
@@ -636,6 +684,14 @@ type TransactionDetailDto = {
|
|
|
636
684
|
* Correction reason (if voided or superseded)
|
|
637
685
|
*/
|
|
638
686
|
correctionReason?: string;
|
|
687
|
+
/**
|
|
688
|
+
* ID of the transaction that supersedes this one (set when status=SUPERSEDED)
|
|
689
|
+
*/
|
|
690
|
+
supersededBy?: string;
|
|
691
|
+
/**
|
|
692
|
+
* ID of the transaction this one corrected/replaced (back-link on the replacement)
|
|
693
|
+
*/
|
|
694
|
+
originalTxn?: string;
|
|
639
695
|
};
|
|
640
696
|
/**
|
|
641
697
|
* Transaction flag
|
|
@@ -645,10 +701,6 @@ type flag2 = 'CLEARED' | 'PENDING' | 'PADDING' | 'SUMMARIZE' | 'TRANSFER' | 'CON
|
|
|
645
701
|
* Transaction status
|
|
646
702
|
*/
|
|
647
703
|
type status2 = 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
|
|
648
|
-
/**
|
|
649
|
-
* Source type (how the transaction was created)
|
|
650
|
-
*/
|
|
651
|
-
type sourceType = 'NLP' | 'CSV' | 'OCR' | 'API';
|
|
652
704
|
type TransactionListResponseDto = {
|
|
653
705
|
/**
|
|
654
706
|
* List of transactions
|
|
@@ -775,9 +827,9 @@ type TransactionSummaryDto = {
|
|
|
775
827
|
*/
|
|
776
828
|
accountName?: string;
|
|
777
829
|
/**
|
|
778
|
-
* Source type (
|
|
830
|
+
* Source type (free-form string from transaction metadata, e.g. import, api)
|
|
779
831
|
*/
|
|
780
|
-
sourceType?:
|
|
832
|
+
sourceType?: string;
|
|
781
833
|
/**
|
|
782
834
|
* Source platform (e.g., alipay, wechat)
|
|
783
835
|
*/
|
|
@@ -819,7 +871,7 @@ type ReviewSummaryDto = {
|
|
|
819
871
|
*/
|
|
820
872
|
matchReasons: Array<string>;
|
|
821
873
|
/**
|
|
822
|
-
* Source type (
|
|
874
|
+
* Source type (free-form string from transaction metadata, e.g. import, api)
|
|
823
875
|
*/
|
|
824
876
|
sourceType: string;
|
|
825
877
|
/**
|
|
@@ -906,7 +958,7 @@ type DecisionOptionDto = {
|
|
|
906
958
|
/**
|
|
907
959
|
* The action value to submit (e.g., UPGRADE_REPLACE, ACCEPT)
|
|
908
960
|
*/
|
|
909
|
-
value:
|
|
961
|
+
value: 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
|
|
910
962
|
/**
|
|
911
963
|
* i18n message key for display label (e.g., review.payee.accept.label)
|
|
912
964
|
*/
|
|
@@ -920,6 +972,10 @@ type DecisionOptionDto = {
|
|
|
920
972
|
*/
|
|
921
973
|
recommended?: boolean;
|
|
922
974
|
};
|
|
975
|
+
/**
|
|
976
|
+
* The action value to submit (e.g., UPGRADE_REPLACE, ACCEPT)
|
|
977
|
+
*/
|
|
978
|
+
type value = 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
|
|
923
979
|
type ReviewDetailDto = {
|
|
924
980
|
/**
|
|
925
981
|
* Review item ID
|
|
@@ -956,7 +1012,7 @@ type ReviewDetailDto = {
|
|
|
956
1012
|
*/
|
|
957
1013
|
matchReasons: Array<string>;
|
|
958
1014
|
/**
|
|
959
|
-
* Source type (
|
|
1015
|
+
* Source type (free-form string from transaction metadata, e.g. import, api)
|
|
960
1016
|
*/
|
|
961
1017
|
sourceType: string;
|
|
962
1018
|
/**
|
|
@@ -1008,9 +1064,9 @@ type ReviewDetailDto = {
|
|
|
1008
1064
|
};
|
|
1009
1065
|
type ResolveReviewDto = {
|
|
1010
1066
|
/**
|
|
1011
|
-
* Decision action.
|
|
1067
|
+
* Decision action. Valid actions vary by review type — see DecisionOptionDto.value returned by the review detail endpoint.
|
|
1012
1068
|
*/
|
|
1013
|
-
action:
|
|
1069
|
+
action: 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
|
|
1014
1070
|
/**
|
|
1015
1071
|
* Additional data for the decision (e.g., selected account ID)
|
|
1016
1072
|
*/
|
|
@@ -1018,6 +1074,10 @@ type ResolveReviewDto = {
|
|
|
1018
1074
|
[key: string]: unknown;
|
|
1019
1075
|
};
|
|
1020
1076
|
};
|
|
1077
|
+
/**
|
|
1078
|
+
* Decision action. Valid actions vary by review type — see DecisionOptionDto.value returned by the review detail endpoint.
|
|
1079
|
+
*/
|
|
1080
|
+
type action = 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
|
|
1021
1081
|
type ResolveResultDto = {
|
|
1022
1082
|
/**
|
|
1023
1083
|
* Whether resolution was successful
|
|
@@ -1072,7 +1132,7 @@ type BatchResolveDto = {
|
|
|
1072
1132
|
/**
|
|
1073
1133
|
* Decision action to apply to all items
|
|
1074
1134
|
*/
|
|
1075
|
-
action:
|
|
1135
|
+
action: 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
|
|
1076
1136
|
/**
|
|
1077
1137
|
* Additional data for the decision
|
|
1078
1138
|
*/
|
|
@@ -3448,7 +3508,7 @@ type status4 = 'success' | 'pending' | 'error';
|
|
|
3448
3508
|
/**
|
|
3449
3509
|
* Action taken or requested
|
|
3450
3510
|
*/
|
|
3451
|
-
type
|
|
3511
|
+
type action2 = 'created' | 'ask' | 'confirm' | 'confirm_duplicate' | 'confirm_rule' | 'confirm_account' | 'confirm_payee' | 'cancel';
|
|
3452
3512
|
/**
|
|
3453
3513
|
* Transaction intent detected by EntityRouter (v6.0: 5 core intents). Frontend uses this to render scenario-specific form fields.
|
|
3454
3514
|
*/
|
|
@@ -4097,6 +4157,18 @@ type TransactionControllerCreateBatchData = {
|
|
|
4097
4157
|
requestBody: BatchCreateTransactionDto;
|
|
4098
4158
|
};
|
|
4099
4159
|
type TransactionControllerCreateBatchResponse = BatchTransactionResponseDto;
|
|
4160
|
+
type TransactionControllerCorrectData = {
|
|
4161
|
+
/**
|
|
4162
|
+
* Original transaction ID to correct
|
|
4163
|
+
*/
|
|
4164
|
+
id: string;
|
|
4165
|
+
/**
|
|
4166
|
+
* Region code for tenant context
|
|
4167
|
+
*/
|
|
4168
|
+
region: 'cn' | 'us' | 'de' | 'gb';
|
|
4169
|
+
requestBody: CorrectTransactionDto;
|
|
4170
|
+
};
|
|
4171
|
+
type TransactionControllerCorrectResponse = TransactionDetailDto;
|
|
4100
4172
|
type TransactionControllerSuggestTagsData = {
|
|
4101
4173
|
/**
|
|
4102
4174
|
* Max suggestions (1-100, default 10)
|
|
@@ -5332,6 +5404,29 @@ type $OpenApiTs = {
|
|
|
5332
5404
|
};
|
|
5333
5405
|
};
|
|
5334
5406
|
};
|
|
5407
|
+
'/api/v1/{region}/bean/transactions/{id}/correct': {
|
|
5408
|
+
post: {
|
|
5409
|
+
req: TransactionControllerCorrectData;
|
|
5410
|
+
res: {
|
|
5411
|
+
/**
|
|
5412
|
+
* Corrected transaction created
|
|
5413
|
+
*/
|
|
5414
|
+
201: TransactionDetailDto;
|
|
5415
|
+
/**
|
|
5416
|
+
* Original transaction not found
|
|
5417
|
+
*/
|
|
5418
|
+
404: ApiProblemResponseDto;
|
|
5419
|
+
/**
|
|
5420
|
+
* Original no longer ACTIVE (concurrent modification)
|
|
5421
|
+
*/
|
|
5422
|
+
409: ApiProblemResponseDto;
|
|
5423
|
+
/**
|
|
5424
|
+
* Pipeline validation failed (does not balance, invalid accounts)
|
|
5425
|
+
*/
|
|
5426
|
+
422: ApiProblemResponseDto;
|
|
5427
|
+
};
|
|
5428
|
+
};
|
|
5429
|
+
};
|
|
5335
5430
|
'/api/v1/{region}/bean/transactions/tags': {
|
|
5336
5431
|
get: {
|
|
5337
5432
|
req: TransactionControllerSuggestTagsData;
|
|
@@ -7197,6 +7292,17 @@ declare class BeanTransactionsService {
|
|
|
7197
7292
|
* @throws ApiError
|
|
7198
7293
|
*/
|
|
7199
7294
|
static transactionControllerCreateBatch(data: TransactionControllerCreateBatchData): CancelablePromise<TransactionControllerCreateBatchResponse>;
|
|
7295
|
+
/**
|
|
7296
|
+
* Correct (supersede) a transaction
|
|
7297
|
+
* Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
|
|
7298
|
+
* @param data The data for the request.
|
|
7299
|
+
* @param data.id Original transaction ID to correct
|
|
7300
|
+
* @param data.region Region code for tenant context
|
|
7301
|
+
* @param data.requestBody
|
|
7302
|
+
* @returns TransactionDetailDto Corrected transaction created
|
|
7303
|
+
* @throws ApiError
|
|
7304
|
+
*/
|
|
7305
|
+
static transactionControllerCorrect(data: TransactionControllerCorrectData): CancelablePromise<TransactionControllerCorrectResponse>;
|
|
7200
7306
|
/**
|
|
7201
7307
|
* Suggest transaction tags
|
|
7202
7308
|
* Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
|
|
@@ -7476,4 +7582,4 @@ type OpenAPIConfig = {
|
|
|
7476
7582
|
};
|
|
7477
7583
|
declare const OpenAPI: OpenAPIConfig;
|
|
7478
7584
|
|
|
7479
|
-
export { type $OpenApiTs, type AccountControllerCloseData, type AccountControllerCloseResponse, type AccountControllerCreateData, type AccountControllerCreateResponse, type AccountControllerDeleteData, type AccountControllerDeleteResponse, type AccountControllerFindAllData, type AccountControllerFindAllResponse, type AccountControllerFindOneData, type AccountControllerFindOneResponse, type AccountControllerReopenData, type AccountControllerReopenResponse, type AccountControllerUpdateData, type AccountControllerUpdateResponse, type AccountExchangeRateWarningDto, type AccountItemDto, type AccountItemWithAssetClassDto, type AccountListResponseDto, type AccountResponseDto, type AccountStandardListResponseDto, type AccountStandardResponseDto, type AccountStandardsControllerGetRegionsData, type AccountStandardsControllerGetRegionsResponse, type AccountStandardsControllerGetTemplateMetadataData, type AccountStandardsControllerGetTemplateMetadataResponse, type AccountStandardsControllerGetTemplatesData, type AccountStandardsControllerGetTemplatesResponse, type AccountsResponseDto, type AccountsSummaryDto, type AmountRangeDto, type AnonymousLoginDto, type ApiKeysControllerCreateApiKeyResponse, type ApiProblemResponseDto, type AssetClassAccountsResponseDto, type AssetClassGroupDto, type AssetClassSummaryDto, type AuthControllerAccessTokenLoginData, type AuthControllerAccessTokenLoginResponse, type BackfillSnapshotsBody, type BackfillSnapshotsResponse, type BalanceByCurrencyDto, type BalanceControllerGetBalanceData, type BalanceControllerGetBalanceResponse, type BalanceControllerGetMultiCurrencyBalanceData, type BalanceControllerGetMultiCurrencyBalanceResponse, type BalanceResponseDto, type BatchCreateTransactionDto, type BatchResolveDto, type BatchResolveResultDto, type BatchTransactionErrorDto, type BatchTransactionResponseDto, BeanAccountsService, BeanBalancesService, BeanCommoditiesService, BeanTransactionsService, type BulkCreateRulesDto, type BulkCreateRulesResponseDto, type CacheControllerFlushCacheResponse, type CashFlowByCurrencyDto, type CashFlowResponseDto, type CloseAccountDto, type CommodityControllerBulkCreateData, type CommodityControllerBulkCreateResponse, type CommodityControllerCreateData, type CommodityControllerCreateResponse, type CommodityControllerDeleteData, type CommodityControllerDeleteResponse, type CommodityControllerFindAllData, type CommodityControllerFindAllResponse, type CommodityControllerFindOneData, type CommodityControllerFindOneResponse, type CommodityControllerGetOrCreateData, type CommodityControllerGetOrCreateResponse, type CommodityControllerUpdateData, type CommodityControllerUpdateResponse, type CommodityListResponseDto, type CommodityResponseDto, type ConfirmMatchDto, type ConvertedCashFlowDto, type ConvertedNetWorthDto, type CreateAccountDto, type CreateCommodityDto, type CreatePayeeDto, type CreatePayeeProfileDto, type CreatePlatformDto, type CreatePostingDto, type CreateRecurringRuleDto, type CreateRuleFromTransactionDto, type CreateTransactionDto, type CreateTransactionRuleDto, type CurrencyBalanceDto, type DashboardControllerGetAccountsData, type DashboardControllerGetAccountsResponse, type DashboardControllerGetCashFlowData, type DashboardControllerGetCashFlowResponse, type DashboardControllerGetNetWorthData, type DashboardControllerGetNetWorthResponse, type DecisionOptionDto, type DeleteOwnUserDto, type EnterNowDto, type ExchangeRateControllerGetExchangeRateData, type ExchangeRateControllerGetExchangeRateResponse, type ExchangeRateWarningDto, type ExpectedTransactionControllerConfirmMatchData, type ExpectedTransactionControllerConfirmMatchResponse, type ExpectedTransactionControllerEnterNowData, type ExpectedTransactionControllerEnterNowResponse, type ExpectedTransactionControllerFindAllData, type ExpectedTransactionControllerFindAllResponse, type ExpectedTransactionControllerFindOneData, type ExpectedTransactionControllerFindOneResponse, type ExpectedTransactionControllerFindOverdueData, type ExpectedTransactionControllerFindOverdueResponse, type ExpectedTransactionControllerSkipData, type ExpectedTransactionControllerSkipResponse, type ExpectedTransactionControllerUndoSkipData, type ExpectedTransactionControllerUndoSkipResponse, type ExpectedTransactionControllerUnmatchData, type ExpectedTransactionControllerUnmatchResponse, type ExpectedTransactionListResponseDto, type ExpectedTransactionResponseDto, type ExpectedTransactionRuleDto, type ExportControllerExportBeancountResponse, type ExportRulesResponseDto, type FileImportControllerIdentifyFileData, type FileImportControllerIdentifyFileResponse, type FileImportControllerImportBeancountData, type FileImportControllerImportBeancountResponse, type FileImportControllerImportFileData, type FileImportControllerImportFileResponse, type FileImportDto, type ForecastControllerGetForecastData, type ForecastControllerGetForecastResponse, type ForecastItemDto, type ForecastResponseDto, type GenerateSnapshotBody, type GenerateSnapshotResponse, type HealthControllerCheckDatabaseResponse, type HealthControllerCheckOpenBbResponse, type HealthControllerCheckRedisResponse, type HealthControllerGetCircuitBreakersHealthResponse, type HealthControllerGetHealthResponse, type HealthControllerGetMetricsResponse, type HealthControllerResetCircuitBreakerData, type HealthControllerResetCircuitBreakerResponse, HealthService, type IdentifyResultDto, type ImportErrorDto, type ImportResultDto, type ImporterConfigControllerGetConfigData, type ImporterConfigControllerGetConfigResponse, type ImporterConfigControllerResetConfigData, type ImporterConfigControllerResetConfigResponse, type ImporterConfigControllerUpdateConfigData, type ImporterConfigControllerUpdateConfigResponse, type ImporterConfigDataDto, type ImporterConfigDto, type InfoControllerGetInfoResponse, type MapperDefaultsDto, type MonthlyForecastDto, type MultiCurrencyBalanceResponseDto, type MultiCurrencyPointDto, type NetWorthByCurrencyDto, type NetWorthResponseDto, type NlpAccountConfirmationDataDto, type NlpAlternativePayeeDto, type NlpControllerClearSessionData, type NlpControllerClearSessionResponse, type NlpControllerGetSessionData, type NlpControllerGetSessionResponse, type NlpControllerProcessNaturalLanguageData, type NlpControllerProcessNaturalLanguageResponse, type NlpDefaultAccountsDto, type NlpDuplicateConfirmationDataDto, type NlpParsedDataDto, type NlpPayeeConfirmationDataDto, type NlpResponseDto, type NlpRuleConfirmationDataDto, type NlpSimilarityDto, type NlpSourceTransactionDto, type NlpSuggestedAccountDto, type NlpSuggestedAccountsDto, type NlpSuggestedPayeeDto, type NlpTargetTransactionDto, type NlpTransactionInfoDto, OpenAPI, type OpenAPIConfig, type ParserTelemetryReportDto, type PayeeAutocompleteResponseDto, type PayeeControllerAutocompleteData, type PayeeControllerAutocompleteResponse, type PayeeControllerCreateData, type PayeeControllerCreateResponse, type PayeeControllerDeleteData, type PayeeControllerDeleteResponse, type PayeeControllerFindAllData, type PayeeControllerFindAllResponse, type PayeeControllerFindOneData, type PayeeControllerFindOneResponse, type PayeeControllerGetTopPayeesData, type PayeeControllerGetTopPayeesResponse, type PayeeControllerUpdateData, type PayeeControllerUpdateResponse, type PayeeListResponseDto, type PayeeProfileAdminControllerCreateData, type PayeeProfileAdminControllerCreateResponse, type PayeeProfileAdminControllerDeleteData, type PayeeProfileAdminControllerDeleteResponse, type PayeeProfileAdminControllerFindAllData, type PayeeProfileAdminControllerFindAllResponse, type PayeeProfileAdminControllerFindOneData, type PayeeProfileAdminControllerFindOneResponse, type PayeeProfileAdminControllerUnverifyData, type PayeeProfileAdminControllerUnverifyResponse, type PayeeProfileAdminControllerUpdateData, type PayeeProfileAdminControllerUpdateResponse, type PayeeProfileAdminControllerVerifyData, type PayeeProfileAdminControllerVerifyResponse, type PayeeProfileListResponseDto, type PayeeProfileResponseDto, type PayeeResponseDto, type PayeeStatsResponseDto, type PlatformControllerCreateData, type PlatformControllerCreateResponse, type PlatformControllerDeleteData, type PlatformControllerDeleteResponse, type PlatformControllerFindAllResponse, type PlatformControllerGetPlatformListResponse, type PlatformControllerMatchPlatformsData, type PlatformControllerMatchPlatformsResponse, type PlatformControllerUpdateData, type PlatformControllerUpdateResponse, type PlatformGroupDto, type PortfolioTrendsResponseDto, type PostingDetailDto, type PostingResponseDto, type ProcessNlpDto, type PropertyControllerDeleteData, type PropertyControllerDeleteResponse, type PropertyControllerGetAllResponse, type PropertyControllerGetByKeyData, type PropertyControllerGetByKeyResponse, type PropertyControllerUpdateData, type PropertyControllerUpdateResponse, type ProviderSyncConfigDto, type ProviderSyncControllerGetSupportedProvidersData, type ProviderSyncControllerGetSupportedProvidersResponse, type ProviderSyncControllerIsProviderSupportedData, type ProviderSyncControllerIsProviderSupportedResponse, type ProviderSyncControllerSyncData, type ProviderSyncControllerSyncResponse, type ProviderSyncDto, type ProviderSyncResponseDto, ProviderSyncService, type RecurringMatchInfoDto, type RecurringRuleControllerCreateData, type RecurringRuleControllerCreateFromTransactionData, type RecurringRuleControllerCreateFromTransactionResponse, type RecurringRuleControllerCreateResponse, type RecurringRuleControllerDeleteData, type RecurringRuleControllerDeleteResponse, type RecurringRuleControllerFindAllData, type RecurringRuleControllerFindAllResponse, type RecurringRuleControllerFindOneData, type RecurringRuleControllerFindOneResponse, type RecurringRuleControllerGetWithStatsData, type RecurringRuleControllerGetWithStatsResponse, type RecurringRuleControllerUpdateData, type RecurringRuleControllerUpdateResponse, type RecurringRuleResponseDto, type RecurringRuleWithStatsResponseDto, type RecurringSuggestionDto, type RegionConfigDto, type RegionInfoDto, type RegionsMetadataResponseDto, type ReopenAccountDto, type ReportingControllerBackfillSnapshotsData, type ReportingControllerBackfillSnapshotsResponse, type ReportingControllerGenerateSnapshotData, type ReportingControllerGenerateSnapshotResponse, type ReportingControllerGetPortfolioTrendsData, type ReportingControllerGetPortfolioTrendsResponse, type ResolveResultDto, type ResolveReviewDto, type ReviewControllerBatchResolveData, type ReviewControllerBatchResolveResponse, type ReviewControllerFindAllData, type ReviewControllerFindAllResponse, type ReviewControllerFindOneData, type ReviewControllerFindOneResponse, type ReviewControllerGetStatsData, type ReviewControllerGetStatsResponse, type ReviewControllerResolveData, type ReviewControllerResolveResponse, type ReviewControllerUndoData, type ReviewControllerUndoResponse, type ReviewDetailDto, type ReviewItemPreviewDto, type ReviewListResponseDto, type ReviewStatsDto, type ReviewSummaryDto, type RuleStatisticsResponseDto, type SignupDto, type SupportedProvidersResponseDto, type TagSuggestionDto, type TagSuggestionsResponseDto, type TelemetryControllerReportTelemetryData, type TelemetryControllerReportTelemetryResponse, type TemplateMetadataDto, type TemplateMetadataResponseDto, type TestRuleDto, type TestRuleResponseDto, type TimeSeriesPointDto, type TransactionControllerCreateBatchData, type TransactionControllerCreateBatchResponse, type TransactionControllerCreateData, type TransactionControllerCreateResponse, type TransactionControllerDeleteData, type TransactionControllerDeleteResponse, type TransactionControllerGetDetailData, type TransactionControllerGetDetailResponse, type TransactionControllerListData, type TransactionControllerListResponse, type TransactionControllerSuggestTagsData, type TransactionControllerSuggestTagsResponse, type TransactionControllerUpdateData, type TransactionControllerUpdateResponse, type TransactionDetailDto, type TransactionListResponseDto, type TransactionResponseDto, type TransactionRuleControllerBulkCreateData, type TransactionRuleControllerBulkCreateResponse, type TransactionRuleControllerCreateData, type TransactionRuleControllerCreateResponse, type TransactionRuleControllerDeleteData, type TransactionRuleControllerDeleteResponse, type TransactionRuleControllerExportData, type TransactionRuleControllerExportResponse, type TransactionRuleControllerGetDetailData, type TransactionRuleControllerGetDetailResponse, type TransactionRuleControllerGetStatisticsData, type TransactionRuleControllerGetStatisticsResponse, type TransactionRuleControllerListData, type TransactionRuleControllerListResponse, type TransactionRuleControllerTestData, type TransactionRuleControllerTestResponse, type TransactionRuleControllerUpdateData, type TransactionRuleControllerUpdateResponse, type TransactionRuleControllerValidateData, type TransactionRuleControllerValidateResponse, type TransactionRuleListResponseDto, type TransactionRuleResponseDto, type TransactionSummaryDto, type TrendSummaryDto, type UndoResultDto, type UpdateAccountDto, type UpdateCommodityDto, type UpdateConfigDataDto, type UpdateImporterConfigDto, type UpdateMapperDefaultsDto, type UpdatePayeeDto, type UpdatePayeeProfileDto, type UpdatePlatformDto, type UpdatePropertyDto, type UpdateRecurringRuleDto, type UpdateTransactionDto, type UpdateTransactionRuleDto, type UpdateUserSettingDto, type UserControllerDeleteOwnUserData, type UserControllerDeleteOwnUserResponse, type UserControllerDeleteUserData, type UserControllerDeleteUserResponse, type UserControllerGetAllUserSettingsByPageData, type UserControllerGetAllUserSettingsByPageResponse, type UserControllerGetAssetLiabilitySummaryResponse, type UserControllerGetUserData, type UserControllerGetUserInfoData, type UserControllerGetUserInfoResponse, type UserControllerGetUserResponse, type UserControllerSignupUserData, type UserControllerSignupUserResponse, type UserControllerUpdateUserSettingData, type UserControllerUpdateUserSettingResponse, type ValidateRuleDto, type ValidateRuleResponseDto, type VersionedConfigDto, type action, type assetClass, type assetSubType, type bookingMethod, type branchType, type category, type colorScheme, type confidenceLevel, type conflictStrategy, type dataSource, type equitySubType, type flag, type flag2, type frequency, type importerId, type intent, type investmentAction, type learningSource, type liabilitySubType, type matchLogic, type paymentSource, type period, type source, type sourceType, type status, type status2, type status3, type status4, type suggestedFrequency, type type, type type2, type type3, type viewMode };
|
|
7585
|
+
export { type $OpenApiTs, type AccountControllerCloseData, type AccountControllerCloseResponse, type AccountControllerCreateData, type AccountControllerCreateResponse, type AccountControllerDeleteData, type AccountControllerDeleteResponse, type AccountControllerFindAllData, type AccountControllerFindAllResponse, type AccountControllerFindOneData, type AccountControllerFindOneResponse, type AccountControllerReopenData, type AccountControllerReopenResponse, type AccountControllerUpdateData, type AccountControllerUpdateResponse, type AccountExchangeRateWarningDto, type AccountItemDto, type AccountItemWithAssetClassDto, type AccountListResponseDto, type AccountResponseDto, type AccountStandardListResponseDto, type AccountStandardResponseDto, type AccountStandardsControllerGetRegionsData, type AccountStandardsControllerGetRegionsResponse, type AccountStandardsControllerGetTemplateMetadataData, type AccountStandardsControllerGetTemplateMetadataResponse, type AccountStandardsControllerGetTemplatesData, type AccountStandardsControllerGetTemplatesResponse, type AccountsResponseDto, type AccountsSummaryDto, type AmountRangeDto, type AnonymousLoginDto, type ApiKeysControllerCreateApiKeyResponse, type ApiProblemResponseDto, type AssetClassAccountsResponseDto, type AssetClassGroupDto, type AssetClassSummaryDto, type AuthControllerAccessTokenLoginData, type AuthControllerAccessTokenLoginResponse, type BackfillSnapshotsBody, type BackfillSnapshotsResponse, type BalanceByCurrencyDto, type BalanceControllerGetBalanceData, type BalanceControllerGetBalanceResponse, type BalanceControllerGetMultiCurrencyBalanceData, type BalanceControllerGetMultiCurrencyBalanceResponse, type BalanceResponseDto, type BatchCreateTransactionDto, type BatchResolveDto, type BatchResolveResultDto, type BatchTransactionErrorDto, type BatchTransactionResponseDto, BeanAccountsService, BeanBalancesService, BeanCommoditiesService, BeanTransactionsService, type BulkCreateRulesDto, type BulkCreateRulesResponseDto, type CacheControllerFlushCacheResponse, type CashFlowByCurrencyDto, type CashFlowResponseDto, type CloseAccountDto, type CommodityControllerBulkCreateData, type CommodityControllerBulkCreateResponse, type CommodityControllerCreateData, type CommodityControllerCreateResponse, type CommodityControllerDeleteData, type CommodityControllerDeleteResponse, type CommodityControllerFindAllData, type CommodityControllerFindAllResponse, type CommodityControllerFindOneData, type CommodityControllerFindOneResponse, type CommodityControllerGetOrCreateData, type CommodityControllerGetOrCreateResponse, type CommodityControllerUpdateData, type CommodityControllerUpdateResponse, type CommodityListResponseDto, type CommodityResponseDto, type ConfirmMatchDto, type ConvertedCashFlowDto, type ConvertedNetWorthDto, type CorrectTransactionDto, type CreateAccountDto, type CreateCommodityDto, type CreatePayeeDto, type CreatePayeeProfileDto, type CreatePlatformDto, type CreatePostingDto, type CreateRecurringRuleDto, type CreateRuleFromTransactionDto, type CreateTransactionDto, type CreateTransactionRuleDto, type CurrencyBalanceDto, type DashboardControllerGetAccountsData, type DashboardControllerGetAccountsResponse, type DashboardControllerGetCashFlowData, type DashboardControllerGetCashFlowResponse, type DashboardControllerGetNetWorthData, type DashboardControllerGetNetWorthResponse, type DecisionOptionDto, type DeleteOwnUserDto, type EnterNowDto, type ExchangeRateControllerGetExchangeRateData, type ExchangeRateControllerGetExchangeRateResponse, type ExchangeRateWarningDto, type ExpectedTransactionControllerConfirmMatchData, type ExpectedTransactionControllerConfirmMatchResponse, type ExpectedTransactionControllerEnterNowData, type ExpectedTransactionControllerEnterNowResponse, type ExpectedTransactionControllerFindAllData, type ExpectedTransactionControllerFindAllResponse, type ExpectedTransactionControllerFindOneData, type ExpectedTransactionControllerFindOneResponse, type ExpectedTransactionControllerFindOverdueData, type ExpectedTransactionControllerFindOverdueResponse, type ExpectedTransactionControllerSkipData, type ExpectedTransactionControllerSkipResponse, type ExpectedTransactionControllerUndoSkipData, type ExpectedTransactionControllerUndoSkipResponse, type ExpectedTransactionControllerUnmatchData, type ExpectedTransactionControllerUnmatchResponse, type ExpectedTransactionListResponseDto, type ExpectedTransactionResponseDto, type ExpectedTransactionRuleDto, type ExportControllerExportBeancountResponse, type ExportRulesResponseDto, type FileImportControllerIdentifyFileData, type FileImportControllerIdentifyFileResponse, type FileImportControllerImportBeancountData, type FileImportControllerImportBeancountResponse, type FileImportControllerImportFileData, type FileImportControllerImportFileResponse, type FileImportDto, type ForecastControllerGetForecastData, type ForecastControllerGetForecastResponse, type ForecastItemDto, type ForecastResponseDto, type GenerateSnapshotBody, type GenerateSnapshotResponse, type HealthControllerCheckDatabaseResponse, type HealthControllerCheckOpenBbResponse, type HealthControllerCheckRedisResponse, type HealthControllerGetCircuitBreakersHealthResponse, type HealthControllerGetHealthResponse, type HealthControllerGetMetricsResponse, type HealthControllerResetCircuitBreakerData, type HealthControllerResetCircuitBreakerResponse, HealthService, type IdentifyResultDto, type ImportErrorDto, type ImportResultDto, type ImporterConfigControllerGetConfigData, type ImporterConfigControllerGetConfigResponse, type ImporterConfigControllerResetConfigData, type ImporterConfigControllerResetConfigResponse, type ImporterConfigControllerUpdateConfigData, type ImporterConfigControllerUpdateConfigResponse, type ImporterConfigDataDto, type ImporterConfigDto, type InfoControllerGetInfoResponse, type MapperDefaultsDto, type MonthlyForecastDto, type MultiCurrencyBalanceResponseDto, type MultiCurrencyPointDto, type NetWorthByCurrencyDto, type NetWorthResponseDto, type NlpAccountConfirmationDataDto, type NlpAlternativePayeeDto, type NlpControllerClearSessionData, type NlpControllerClearSessionResponse, type NlpControllerGetSessionData, type NlpControllerGetSessionResponse, type NlpControllerProcessNaturalLanguageData, type NlpControllerProcessNaturalLanguageResponse, type NlpDefaultAccountsDto, type NlpDuplicateConfirmationDataDto, type NlpParsedDataDto, type NlpPayeeConfirmationDataDto, type NlpResponseDto, type NlpRuleConfirmationDataDto, type NlpSimilarityDto, type NlpSourceTransactionDto, type NlpSuggestedAccountDto, type NlpSuggestedAccountsDto, type NlpSuggestedPayeeDto, type NlpTargetTransactionDto, type NlpTransactionInfoDto, OpenAPI, type OpenAPIConfig, type ParserTelemetryReportDto, type PayeeAutocompleteResponseDto, type PayeeControllerAutocompleteData, type PayeeControllerAutocompleteResponse, type PayeeControllerCreateData, type PayeeControllerCreateResponse, type PayeeControllerDeleteData, type PayeeControllerDeleteResponse, type PayeeControllerFindAllData, type PayeeControllerFindAllResponse, type PayeeControllerFindOneData, type PayeeControllerFindOneResponse, type PayeeControllerGetTopPayeesData, type PayeeControllerGetTopPayeesResponse, type PayeeControllerUpdateData, type PayeeControllerUpdateResponse, type PayeeListResponseDto, type PayeeProfileAdminControllerCreateData, type PayeeProfileAdminControllerCreateResponse, type PayeeProfileAdminControllerDeleteData, type PayeeProfileAdminControllerDeleteResponse, type PayeeProfileAdminControllerFindAllData, type PayeeProfileAdminControllerFindAllResponse, type PayeeProfileAdminControllerFindOneData, type PayeeProfileAdminControllerFindOneResponse, type PayeeProfileAdminControllerUnverifyData, type PayeeProfileAdminControllerUnverifyResponse, type PayeeProfileAdminControllerUpdateData, type PayeeProfileAdminControllerUpdateResponse, type PayeeProfileAdminControllerVerifyData, type PayeeProfileAdminControllerVerifyResponse, type PayeeProfileListResponseDto, type PayeeProfileResponseDto, type PayeeResponseDto, type PayeeStatsResponseDto, type PlatformControllerCreateData, type PlatformControllerCreateResponse, type PlatformControllerDeleteData, type PlatformControllerDeleteResponse, type PlatformControllerFindAllResponse, type PlatformControllerGetPlatformListResponse, type PlatformControllerMatchPlatformsData, type PlatformControllerMatchPlatformsResponse, type PlatformControllerUpdateData, type PlatformControllerUpdateResponse, type PlatformGroupDto, type PortfolioTrendsResponseDto, type PostingDetailDto, type PostingResponseDto, type ProcessNlpDto, type PropertyControllerDeleteData, type PropertyControllerDeleteResponse, type PropertyControllerGetAllResponse, type PropertyControllerGetByKeyData, type PropertyControllerGetByKeyResponse, type PropertyControllerUpdateData, type PropertyControllerUpdateResponse, type ProviderSyncConfigDto, type ProviderSyncControllerGetSupportedProvidersData, type ProviderSyncControllerGetSupportedProvidersResponse, type ProviderSyncControllerIsProviderSupportedData, type ProviderSyncControllerIsProviderSupportedResponse, type ProviderSyncControllerSyncData, type ProviderSyncControllerSyncResponse, type ProviderSyncDto, type ProviderSyncResponseDto, ProviderSyncService, type RecurringMatchInfoDto, type RecurringRuleControllerCreateData, type RecurringRuleControllerCreateFromTransactionData, type RecurringRuleControllerCreateFromTransactionResponse, type RecurringRuleControllerCreateResponse, type RecurringRuleControllerDeleteData, type RecurringRuleControllerDeleteResponse, type RecurringRuleControllerFindAllData, type RecurringRuleControllerFindAllResponse, type RecurringRuleControllerFindOneData, type RecurringRuleControllerFindOneResponse, type RecurringRuleControllerGetWithStatsData, type RecurringRuleControllerGetWithStatsResponse, type RecurringRuleControllerUpdateData, type RecurringRuleControllerUpdateResponse, type RecurringRuleResponseDto, type RecurringRuleWithStatsResponseDto, type RecurringSuggestionDto, type RegionConfigDto, type RegionInfoDto, type RegionsMetadataResponseDto, type ReopenAccountDto, type ReportingControllerBackfillSnapshotsData, type ReportingControllerBackfillSnapshotsResponse, type ReportingControllerGenerateSnapshotData, type ReportingControllerGenerateSnapshotResponse, type ReportingControllerGetPortfolioTrendsData, type ReportingControllerGetPortfolioTrendsResponse, type ResolveResultDto, type ResolveReviewDto, type ReviewControllerBatchResolveData, type ReviewControllerBatchResolveResponse, type ReviewControllerFindAllData, type ReviewControllerFindAllResponse, type ReviewControllerFindOneData, type ReviewControllerFindOneResponse, type ReviewControllerGetStatsData, type ReviewControllerGetStatsResponse, type ReviewControllerResolveData, type ReviewControllerResolveResponse, type ReviewControllerUndoData, type ReviewControllerUndoResponse, type ReviewDetailDto, type ReviewItemPreviewDto, type ReviewListResponseDto, type ReviewStatsDto, type ReviewSummaryDto, type RuleStatisticsResponseDto, type SignupDto, type SupportedProvidersResponseDto, type TagSuggestionDto, type TagSuggestionsResponseDto, type TelemetryControllerReportTelemetryData, type TelemetryControllerReportTelemetryResponse, type TemplateMetadataDto, type TemplateMetadataResponseDto, type TestRuleDto, type TestRuleResponseDto, type TimeSeriesPointDto, type TransactionControllerCorrectData, type TransactionControllerCorrectResponse, type TransactionControllerCreateBatchData, type TransactionControllerCreateBatchResponse, type TransactionControllerCreateData, type TransactionControllerCreateResponse, type TransactionControllerDeleteData, type TransactionControllerDeleteResponse, type TransactionControllerGetDetailData, type TransactionControllerGetDetailResponse, type TransactionControllerListData, type TransactionControllerListResponse, type TransactionControllerSuggestTagsData, type TransactionControllerSuggestTagsResponse, type TransactionControllerUpdateData, type TransactionControllerUpdateResponse, type TransactionDetailDto, type TransactionListResponseDto, type TransactionResponseDto, type TransactionRuleControllerBulkCreateData, type TransactionRuleControllerBulkCreateResponse, type TransactionRuleControllerCreateData, type TransactionRuleControllerCreateResponse, type TransactionRuleControllerDeleteData, type TransactionRuleControllerDeleteResponse, type TransactionRuleControllerExportData, type TransactionRuleControllerExportResponse, type TransactionRuleControllerGetDetailData, type TransactionRuleControllerGetDetailResponse, type TransactionRuleControllerGetStatisticsData, type TransactionRuleControllerGetStatisticsResponse, type TransactionRuleControllerListData, type TransactionRuleControllerListResponse, type TransactionRuleControllerTestData, type TransactionRuleControllerTestResponse, type TransactionRuleControllerUpdateData, type TransactionRuleControllerUpdateResponse, type TransactionRuleControllerValidateData, type TransactionRuleControllerValidateResponse, type TransactionRuleListResponseDto, type TransactionRuleResponseDto, type TransactionSummaryDto, type TrendSummaryDto, type UndoResultDto, type UpdateAccountDto, type UpdateCommodityDto, type UpdateConfigDataDto, type UpdateImporterConfigDto, type UpdateMapperDefaultsDto, type UpdatePayeeDto, type UpdatePayeeProfileDto, type UpdatePlatformDto, type UpdatePropertyDto, type UpdateRecurringRuleDto, type UpdateTransactionDto, type UpdateTransactionRuleDto, type UpdateUserSettingDto, type UserControllerDeleteOwnUserData, type UserControllerDeleteOwnUserResponse, type UserControllerDeleteUserData, type UserControllerDeleteUserResponse, type UserControllerGetAllUserSettingsByPageData, type UserControllerGetAllUserSettingsByPageResponse, type UserControllerGetAssetLiabilitySummaryResponse, type UserControllerGetUserData, type UserControllerGetUserInfoData, type UserControllerGetUserInfoResponse, type UserControllerGetUserResponse, type UserControllerSignupUserData, type UserControllerSignupUserResponse, type UserControllerUpdateUserSettingData, type UserControllerUpdateUserSettingResponse, type ValidateRuleDto, type ValidateRuleResponseDto, type VersionedConfigDto, type action, type action2, type assetClass, type assetSubType, type bookingMethod, type branchType, type category, type colorScheme, type confidenceLevel, type conflictStrategy, type dataSource, type equitySubType, type flag, type flag2, type frequency, type importerId, type intent, type investmentAction, type learningSource, type liabilitySubType, type matchLogic, type paymentSource, type period, type source, type status, type status2, type status3, type status4, type suggestedFrequency, type type, type type2, type type3, type value, type viewMode };
|
package/dist/index.js
CHANGED
|
@@ -720,6 +720,33 @@ var BeanTransactionsService = class {
|
|
|
720
720
|
}
|
|
721
721
|
});
|
|
722
722
|
}
|
|
723
|
+
/**
|
|
724
|
+
* Correct (supersede) a transaction
|
|
725
|
+
* Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
|
|
726
|
+
* @param data The data for the request.
|
|
727
|
+
* @param data.id Original transaction ID to correct
|
|
728
|
+
* @param data.region Region code for tenant context
|
|
729
|
+
* @param data.requestBody
|
|
730
|
+
* @returns TransactionDetailDto Corrected transaction created
|
|
731
|
+
* @throws ApiError
|
|
732
|
+
*/
|
|
733
|
+
static transactionControllerCorrect(data) {
|
|
734
|
+
return request(OpenAPI, {
|
|
735
|
+
method: "POST",
|
|
736
|
+
url: "/api/v1/{region}/bean/transactions/{id}/correct",
|
|
737
|
+
path: {
|
|
738
|
+
id: data.id,
|
|
739
|
+
region: data.region
|
|
740
|
+
},
|
|
741
|
+
body: data.requestBody,
|
|
742
|
+
mediaType: "application/json",
|
|
743
|
+
errors: {
|
|
744
|
+
404: "Original transaction not found",
|
|
745
|
+
409: "Original no longer ACTIVE (concurrent modification)",
|
|
746
|
+
422: "Pipeline validation failed (does not balance, invalid accounts)"
|
|
747
|
+
}
|
|
748
|
+
});
|
|
749
|
+
}
|
|
723
750
|
/**
|
|
724
751
|
* Suggest transaction tags
|
|
725
752
|
* Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
|
package/dist/index.mjs
CHANGED
|
@@ -688,6 +688,33 @@ var BeanTransactionsService = class {
|
|
|
688
688
|
}
|
|
689
689
|
});
|
|
690
690
|
}
|
|
691
|
+
/**
|
|
692
|
+
* Correct (supersede) a transaction
|
|
693
|
+
* Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
|
|
694
|
+
* @param data The data for the request.
|
|
695
|
+
* @param data.id Original transaction ID to correct
|
|
696
|
+
* @param data.region Region code for tenant context
|
|
697
|
+
* @param data.requestBody
|
|
698
|
+
* @returns TransactionDetailDto Corrected transaction created
|
|
699
|
+
* @throws ApiError
|
|
700
|
+
*/
|
|
701
|
+
static transactionControllerCorrect(data) {
|
|
702
|
+
return request(OpenAPI, {
|
|
703
|
+
method: "POST",
|
|
704
|
+
url: "/api/v1/{region}/bean/transactions/{id}/correct",
|
|
705
|
+
path: {
|
|
706
|
+
id: data.id,
|
|
707
|
+
region: data.region
|
|
708
|
+
},
|
|
709
|
+
body: data.requestBody,
|
|
710
|
+
mediaType: "application/json",
|
|
711
|
+
errors: {
|
|
712
|
+
404: "Original transaction not found",
|
|
713
|
+
409: "Original no longer ACTIVE (concurrent modification)",
|
|
714
|
+
422: "Pipeline validation failed (does not balance, invalid accounts)"
|
|
715
|
+
}
|
|
716
|
+
});
|
|
717
|
+
}
|
|
691
718
|
/**
|
|
692
719
|
* Suggest transaction tags
|
|
693
720
|
* Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
|
package/package.json
CHANGED
|
@@ -841,6 +841,85 @@ export const $BatchTransactionResponseDto = {
|
|
|
841
841
|
required: ['succeeded', 'failed']
|
|
842
842
|
} as const;
|
|
843
843
|
|
|
844
|
+
export const $CorrectTransactionDto = {
|
|
845
|
+
type: 'object',
|
|
846
|
+
properties: {
|
|
847
|
+
date: {
|
|
848
|
+
type: 'string',
|
|
849
|
+
description: 'Transaction date (ISO 8601 format)',
|
|
850
|
+
example: '2024-11-28'
|
|
851
|
+
},
|
|
852
|
+
flag: {
|
|
853
|
+
type: 'string',
|
|
854
|
+
description: 'Transaction flag: * (cleared), ! (pending)',
|
|
855
|
+
enum: ['*', '!'],
|
|
856
|
+
example: '*'
|
|
857
|
+
},
|
|
858
|
+
payee: {
|
|
859
|
+
type: 'string',
|
|
860
|
+
description: 'Payee name',
|
|
861
|
+
example: 'Whole Foods Market'
|
|
862
|
+
},
|
|
863
|
+
narration: {
|
|
864
|
+
type: 'string',
|
|
865
|
+
description: 'Transaction narration/description',
|
|
866
|
+
example: 'Grocery shopping'
|
|
867
|
+
},
|
|
868
|
+
tags: {
|
|
869
|
+
description: 'Transaction tags (without # prefix)',
|
|
870
|
+
example: ['vacation', 'personal'],
|
|
871
|
+
type: 'array',
|
|
872
|
+
items: {
|
|
873
|
+
type: 'string'
|
|
874
|
+
}
|
|
875
|
+
},
|
|
876
|
+
links: {
|
|
877
|
+
description: 'Transaction links (without ^ prefix)',
|
|
878
|
+
example: ['invoice-123'],
|
|
879
|
+
type: 'array',
|
|
880
|
+
items: {
|
|
881
|
+
type: 'string'
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
postings: {
|
|
885
|
+
description:
|
|
886
|
+
'Transaction postings (minimum 1, typically 2 for double-entry)',
|
|
887
|
+
type: 'array',
|
|
888
|
+
items: {
|
|
889
|
+
$ref: '#/components/schemas/CreatePostingDto'
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
meta: {
|
|
893
|
+
type: 'object',
|
|
894
|
+
description: 'Transaction-level metadata',
|
|
895
|
+
example: {
|
|
896
|
+
invoice: '12345'
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
idempotencyKey: {
|
|
900
|
+
type: 'string',
|
|
901
|
+
description:
|
|
902
|
+
'Unique key for idempotent transaction creation. If provided, duplicate requests with the same key will return the existing transaction.',
|
|
903
|
+
example: 'import-2024-01-15-batch-001',
|
|
904
|
+
maxLength: 128
|
|
905
|
+
},
|
|
906
|
+
autoCreateAccounts: {
|
|
907
|
+
type: 'boolean',
|
|
908
|
+
description:
|
|
909
|
+
'Auto-create accounts if not found. When true, missing accounts will be automatically created. When false (default for API), missing accounts will cause a validation error. Set to true for quick entry scenarios where you want to create accounts on-the-fly.',
|
|
910
|
+
default: true,
|
|
911
|
+
example: true
|
|
912
|
+
},
|
|
913
|
+
correctionReason: {
|
|
914
|
+
type: 'string',
|
|
915
|
+
description: 'Reason for correcting/superseding the original transaction',
|
|
916
|
+
example: 'Wrong amount — corrected from receipt',
|
|
917
|
+
maxLength: 500
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
required: ['date', 'narration', 'postings']
|
|
921
|
+
} as const;
|
|
922
|
+
|
|
844
923
|
export const $PostingDetailDto = {
|
|
845
924
|
type: 'object',
|
|
846
925
|
properties: {
|
|
@@ -854,9 +933,9 @@ export const $PostingDetailDto = {
|
|
|
854
933
|
description: 'Account ID',
|
|
855
934
|
example: 'clh1234567890abcdef'
|
|
856
935
|
},
|
|
857
|
-
|
|
936
|
+
account: {
|
|
858
937
|
type: 'string',
|
|
859
|
-
description: '
|
|
938
|
+
description: 'Fully-qualified Beancount account path',
|
|
860
939
|
example: 'Assets:Bank:Checking'
|
|
861
940
|
},
|
|
862
941
|
units: {
|
|
@@ -905,7 +984,7 @@ export const $PostingDetailDto = {
|
|
|
905
984
|
description: 'Posting metadata'
|
|
906
985
|
}
|
|
907
986
|
},
|
|
908
|
-
required: ['id', 'accountId', '
|
|
987
|
+
required: ['id', 'accountId', 'account']
|
|
909
988
|
} as const;
|
|
910
989
|
|
|
911
990
|
export const $TransactionDetailDto = {
|
|
@@ -977,8 +1056,8 @@ export const $TransactionDetailDto = {
|
|
|
977
1056
|
},
|
|
978
1057
|
sourceType: {
|
|
979
1058
|
type: 'string',
|
|
980
|
-
description:
|
|
981
|
-
|
|
1059
|
+
description:
|
|
1060
|
+
'Source type (free-form string from transaction metadata, e.g. import, api)'
|
|
982
1061
|
},
|
|
983
1062
|
sourcePlatform: {
|
|
984
1063
|
type: 'string',
|
|
@@ -1011,6 +1090,18 @@ export const $TransactionDetailDto = {
|
|
|
1011
1090
|
type: 'string',
|
|
1012
1091
|
description: 'Correction reason (if voided or superseded)',
|
|
1013
1092
|
example: 'Duplicate entry'
|
|
1093
|
+
},
|
|
1094
|
+
supersededBy: {
|
|
1095
|
+
type: 'string',
|
|
1096
|
+
description:
|
|
1097
|
+
'ID of the transaction that supersedes this one (set when status=SUPERSEDED)',
|
|
1098
|
+
example: 'clh1234567890abcdef'
|
|
1099
|
+
},
|
|
1100
|
+
originalTxn: {
|
|
1101
|
+
type: 'string',
|
|
1102
|
+
description:
|
|
1103
|
+
'ID of the transaction this one corrected/replaced (back-link on the replacement)',
|
|
1104
|
+
example: 'clh1234567890abcdef'
|
|
1014
1105
|
}
|
|
1015
1106
|
},
|
|
1016
1107
|
required: [
|
|
@@ -1235,8 +1326,8 @@ export const $TransactionSummaryDto = {
|
|
|
1235
1326
|
},
|
|
1236
1327
|
sourceType: {
|
|
1237
1328
|
type: 'string',
|
|
1238
|
-
description:
|
|
1239
|
-
|
|
1329
|
+
description:
|
|
1330
|
+
'Source type (free-form string from transaction metadata, e.g. import, api)'
|
|
1240
1331
|
},
|
|
1241
1332
|
sourcePlatform: {
|
|
1242
1333
|
type: 'string',
|
|
@@ -1303,7 +1394,8 @@ export const $ReviewSummaryDto = {
|
|
|
1303
1394
|
},
|
|
1304
1395
|
sourceType: {
|
|
1305
1396
|
type: 'string',
|
|
1306
|
-
description:
|
|
1397
|
+
description:
|
|
1398
|
+
'Source type (free-form string from transaction metadata, e.g. import, api)'
|
|
1307
1399
|
},
|
|
1308
1400
|
sourcePlatform: {
|
|
1309
1401
|
type: 'string',
|
|
@@ -1413,7 +1505,20 @@ export const $DecisionOptionDto = {
|
|
|
1413
1505
|
properties: {
|
|
1414
1506
|
value: {
|
|
1415
1507
|
type: 'string',
|
|
1416
|
-
description: 'The action value to submit (e.g., UPGRADE_REPLACE, ACCEPT)'
|
|
1508
|
+
description: 'The action value to submit (e.g., UPGRADE_REPLACE, ACCEPT)',
|
|
1509
|
+
enum: [
|
|
1510
|
+
'UPGRADE_REPLACE',
|
|
1511
|
+
'LINK_KEEP_BOTH',
|
|
1512
|
+
'IGNORE_NEW',
|
|
1513
|
+
'CONFIRM_DIFFERENT',
|
|
1514
|
+
'ACCEPT',
|
|
1515
|
+
'REJECT',
|
|
1516
|
+
'ACCEPT_AND_LEARN',
|
|
1517
|
+
'CHOOSE_OTHER',
|
|
1518
|
+
'CANCEL',
|
|
1519
|
+
'FIX',
|
|
1520
|
+
'IGNORE'
|
|
1521
|
+
]
|
|
1417
1522
|
},
|
|
1418
1523
|
labelKey: {
|
|
1419
1524
|
type: 'string',
|
|
@@ -1488,7 +1593,8 @@ export const $ReviewDetailDto = {
|
|
|
1488
1593
|
},
|
|
1489
1594
|
sourceType: {
|
|
1490
1595
|
type: 'string',
|
|
1491
|
-
description:
|
|
1596
|
+
description:
|
|
1597
|
+
'Source type (free-form string from transaction metadata, e.g. import, api)'
|
|
1492
1598
|
},
|
|
1493
1599
|
sourcePlatform: {
|
|
1494
1600
|
type: 'string',
|
|
@@ -1568,7 +1674,20 @@ export const $ResolveReviewDto = {
|
|
|
1568
1674
|
action: {
|
|
1569
1675
|
type: 'string',
|
|
1570
1676
|
description:
|
|
1571
|
-
'Decision action.
|
|
1677
|
+
'Decision action. Valid actions vary by review type — see DecisionOptionDto.value returned by the review detail endpoint.',
|
|
1678
|
+
enum: [
|
|
1679
|
+
'UPGRADE_REPLACE',
|
|
1680
|
+
'LINK_KEEP_BOTH',
|
|
1681
|
+
'IGNORE_NEW',
|
|
1682
|
+
'CONFIRM_DIFFERENT',
|
|
1683
|
+
'ACCEPT',
|
|
1684
|
+
'REJECT',
|
|
1685
|
+
'ACCEPT_AND_LEARN',
|
|
1686
|
+
'CHOOSE_OTHER',
|
|
1687
|
+
'CANCEL',
|
|
1688
|
+
'FIX',
|
|
1689
|
+
'IGNORE'
|
|
1690
|
+
],
|
|
1572
1691
|
example: 'ACCEPT'
|
|
1573
1692
|
},
|
|
1574
1693
|
data: {
|
|
@@ -1659,6 +1778,19 @@ export const $BatchResolveDto = {
|
|
|
1659
1778
|
action: {
|
|
1660
1779
|
type: 'string',
|
|
1661
1780
|
description: 'Decision action to apply to all items',
|
|
1781
|
+
enum: [
|
|
1782
|
+
'UPGRADE_REPLACE',
|
|
1783
|
+
'LINK_KEEP_BOTH',
|
|
1784
|
+
'IGNORE_NEW',
|
|
1785
|
+
'CONFIRM_DIFFERENT',
|
|
1786
|
+
'ACCEPT',
|
|
1787
|
+
'REJECT',
|
|
1788
|
+
'ACCEPT_AND_LEARN',
|
|
1789
|
+
'CHOOSE_OTHER',
|
|
1790
|
+
'CANCEL',
|
|
1791
|
+
'FIX',
|
|
1792
|
+
'IGNORE'
|
|
1793
|
+
],
|
|
1662
1794
|
example: 'ACCEPT'
|
|
1663
1795
|
},
|
|
1664
1796
|
data: {
|
|
@@ -29,6 +29,8 @@ import type {
|
|
|
29
29
|
TransactionControllerListResponse,
|
|
30
30
|
TransactionControllerCreateBatchData,
|
|
31
31
|
TransactionControllerCreateBatchResponse,
|
|
32
|
+
TransactionControllerCorrectData,
|
|
33
|
+
TransactionControllerCorrectResponse,
|
|
32
34
|
TransactionControllerSuggestTagsData,
|
|
33
35
|
TransactionControllerSuggestTagsResponse,
|
|
34
36
|
TransactionControllerGetDetailData,
|
|
@@ -605,6 +607,36 @@ export class BeanTransactionsService {
|
|
|
605
607
|
});
|
|
606
608
|
}
|
|
607
609
|
|
|
610
|
+
/**
|
|
611
|
+
* Correct (supersede) a transaction
|
|
612
|
+
* Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
|
|
613
|
+
* @param data The data for the request.
|
|
614
|
+
* @param data.id Original transaction ID to correct
|
|
615
|
+
* @param data.region Region code for tenant context
|
|
616
|
+
* @param data.requestBody
|
|
617
|
+
* @returns TransactionDetailDto Corrected transaction created
|
|
618
|
+
* @throws ApiError
|
|
619
|
+
*/
|
|
620
|
+
public static transactionControllerCorrect(
|
|
621
|
+
data: TransactionControllerCorrectData
|
|
622
|
+
): CancelablePromise<TransactionControllerCorrectResponse> {
|
|
623
|
+
return __request(OpenAPI, {
|
|
624
|
+
method: 'POST',
|
|
625
|
+
url: '/api/v1/{region}/bean/transactions/{id}/correct',
|
|
626
|
+
path: {
|
|
627
|
+
id: data.id,
|
|
628
|
+
region: data.region
|
|
629
|
+
},
|
|
630
|
+
body: data.requestBody,
|
|
631
|
+
mediaType: 'application/json',
|
|
632
|
+
errors: {
|
|
633
|
+
404: 'Original transaction not found',
|
|
634
|
+
409: 'Original no longer ACTIVE (concurrent modification)',
|
|
635
|
+
422: 'Pipeline validation failed (does not balance, invalid accounts)'
|
|
636
|
+
}
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
|
|
608
640
|
/**
|
|
609
641
|
* Suggest transaction tags
|
|
610
642
|
* Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
|
|
@@ -561,6 +561,55 @@ export type BatchTransactionResponseDto = {
|
|
|
561
561
|
failed: Array<BatchTransactionErrorDto>;
|
|
562
562
|
};
|
|
563
563
|
|
|
564
|
+
export type CorrectTransactionDto = {
|
|
565
|
+
/**
|
|
566
|
+
* Transaction date (ISO 8601 format)
|
|
567
|
+
*/
|
|
568
|
+
date: string;
|
|
569
|
+
/**
|
|
570
|
+
* Transaction flag: * (cleared), ! (pending)
|
|
571
|
+
*/
|
|
572
|
+
flag?: '*' | '!';
|
|
573
|
+
/**
|
|
574
|
+
* Payee name
|
|
575
|
+
*/
|
|
576
|
+
payee?: string;
|
|
577
|
+
/**
|
|
578
|
+
* Transaction narration/description
|
|
579
|
+
*/
|
|
580
|
+
narration: string;
|
|
581
|
+
/**
|
|
582
|
+
* Transaction tags (without # prefix)
|
|
583
|
+
*/
|
|
584
|
+
tags?: Array<string>;
|
|
585
|
+
/**
|
|
586
|
+
* Transaction links (without ^ prefix)
|
|
587
|
+
*/
|
|
588
|
+
links?: Array<string>;
|
|
589
|
+
/**
|
|
590
|
+
* Transaction postings (minimum 1, typically 2 for double-entry)
|
|
591
|
+
*/
|
|
592
|
+
postings: Array<CreatePostingDto>;
|
|
593
|
+
/**
|
|
594
|
+
* Transaction-level metadata
|
|
595
|
+
*/
|
|
596
|
+
meta?: {
|
|
597
|
+
[key: string]: unknown;
|
|
598
|
+
};
|
|
599
|
+
/**
|
|
600
|
+
* Unique key for idempotent transaction creation. If provided, duplicate requests with the same key will return the existing transaction.
|
|
601
|
+
*/
|
|
602
|
+
idempotencyKey?: string;
|
|
603
|
+
/**
|
|
604
|
+
* Auto-create accounts if not found. When true, missing accounts will be automatically created. When false (default for API), missing accounts will cause a validation error. Set to true for quick entry scenarios where you want to create accounts on-the-fly.
|
|
605
|
+
*/
|
|
606
|
+
autoCreateAccounts?: boolean;
|
|
607
|
+
/**
|
|
608
|
+
* Reason for correcting/superseding the original transaction
|
|
609
|
+
*/
|
|
610
|
+
correctionReason?: string;
|
|
611
|
+
};
|
|
612
|
+
|
|
564
613
|
export type PostingDetailDto = {
|
|
565
614
|
/**
|
|
566
615
|
* Posting ID
|
|
@@ -571,9 +620,9 @@ export type PostingDetailDto = {
|
|
|
571
620
|
*/
|
|
572
621
|
accountId: string;
|
|
573
622
|
/**
|
|
574
|
-
*
|
|
623
|
+
* Fully-qualified Beancount account path
|
|
575
624
|
*/
|
|
576
|
-
|
|
625
|
+
account: string;
|
|
577
626
|
/**
|
|
578
627
|
* Amount as decimal string. Typed optional but always present in responses: interpolation fills any MISSING posting before it is persisted or returned.
|
|
579
628
|
*/
|
|
@@ -664,9 +713,9 @@ export type TransactionDetailDto = {
|
|
|
664
713
|
*/
|
|
665
714
|
status: 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
|
|
666
715
|
/**
|
|
667
|
-
* Source type (
|
|
716
|
+
* Source type (free-form string from transaction metadata, e.g. import, api)
|
|
668
717
|
*/
|
|
669
|
-
sourceType?:
|
|
718
|
+
sourceType?: string;
|
|
670
719
|
/**
|
|
671
720
|
* Source platform (e.g., alipay, wechat)
|
|
672
721
|
*/
|
|
@@ -691,6 +740,14 @@ export type TransactionDetailDto = {
|
|
|
691
740
|
* Correction reason (if voided or superseded)
|
|
692
741
|
*/
|
|
693
742
|
correctionReason?: string;
|
|
743
|
+
/**
|
|
744
|
+
* ID of the transaction that supersedes this one (set when status=SUPERSEDED)
|
|
745
|
+
*/
|
|
746
|
+
supersededBy?: string;
|
|
747
|
+
/**
|
|
748
|
+
* ID of the transaction this one corrected/replaced (back-link on the replacement)
|
|
749
|
+
*/
|
|
750
|
+
originalTxn?: string;
|
|
694
751
|
};
|
|
695
752
|
|
|
696
753
|
/**
|
|
@@ -709,11 +766,6 @@ export type flag2 =
|
|
|
709
766
|
*/
|
|
710
767
|
export type status2 = 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
|
|
711
768
|
|
|
712
|
-
/**
|
|
713
|
-
* Source type (how the transaction was created)
|
|
714
|
-
*/
|
|
715
|
-
export type sourceType = 'NLP' | 'CSV' | 'OCR' | 'API';
|
|
716
|
-
|
|
717
769
|
export type TransactionListResponseDto = {
|
|
718
770
|
/**
|
|
719
771
|
* List of transactions
|
|
@@ -852,9 +904,9 @@ export type TransactionSummaryDto = {
|
|
|
852
904
|
*/
|
|
853
905
|
accountName?: string;
|
|
854
906
|
/**
|
|
855
|
-
* Source type (
|
|
907
|
+
* Source type (free-form string from transaction metadata, e.g. import, api)
|
|
856
908
|
*/
|
|
857
|
-
sourceType?:
|
|
909
|
+
sourceType?: string;
|
|
858
910
|
/**
|
|
859
911
|
* Source platform (e.g., alipay, wechat)
|
|
860
912
|
*/
|
|
@@ -902,7 +954,7 @@ export type ReviewSummaryDto = {
|
|
|
902
954
|
*/
|
|
903
955
|
matchReasons: Array<string>;
|
|
904
956
|
/**
|
|
905
|
-
* Source type (
|
|
957
|
+
* Source type (free-form string from transaction metadata, e.g. import, api)
|
|
906
958
|
*/
|
|
907
959
|
sourceType: string;
|
|
908
960
|
/**
|
|
@@ -1000,7 +1052,18 @@ export type DecisionOptionDto = {
|
|
|
1000
1052
|
/**
|
|
1001
1053
|
* The action value to submit (e.g., UPGRADE_REPLACE, ACCEPT)
|
|
1002
1054
|
*/
|
|
1003
|
-
value:
|
|
1055
|
+
value:
|
|
1056
|
+
| 'UPGRADE_REPLACE'
|
|
1057
|
+
| 'LINK_KEEP_BOTH'
|
|
1058
|
+
| 'IGNORE_NEW'
|
|
1059
|
+
| 'CONFIRM_DIFFERENT'
|
|
1060
|
+
| 'ACCEPT'
|
|
1061
|
+
| 'REJECT'
|
|
1062
|
+
| 'ACCEPT_AND_LEARN'
|
|
1063
|
+
| 'CHOOSE_OTHER'
|
|
1064
|
+
| 'CANCEL'
|
|
1065
|
+
| 'FIX'
|
|
1066
|
+
| 'IGNORE';
|
|
1004
1067
|
/**
|
|
1005
1068
|
* i18n message key for display label (e.g., review.payee.accept.label)
|
|
1006
1069
|
*/
|
|
@@ -1015,6 +1078,22 @@ export type DecisionOptionDto = {
|
|
|
1015
1078
|
recommended?: boolean;
|
|
1016
1079
|
};
|
|
1017
1080
|
|
|
1081
|
+
/**
|
|
1082
|
+
* The action value to submit (e.g., UPGRADE_REPLACE, ACCEPT)
|
|
1083
|
+
*/
|
|
1084
|
+
export type value =
|
|
1085
|
+
| 'UPGRADE_REPLACE'
|
|
1086
|
+
| 'LINK_KEEP_BOTH'
|
|
1087
|
+
| 'IGNORE_NEW'
|
|
1088
|
+
| 'CONFIRM_DIFFERENT'
|
|
1089
|
+
| 'ACCEPT'
|
|
1090
|
+
| 'REJECT'
|
|
1091
|
+
| 'ACCEPT_AND_LEARN'
|
|
1092
|
+
| 'CHOOSE_OTHER'
|
|
1093
|
+
| 'CANCEL'
|
|
1094
|
+
| 'FIX'
|
|
1095
|
+
| 'IGNORE';
|
|
1096
|
+
|
|
1018
1097
|
export type ReviewDetailDto = {
|
|
1019
1098
|
/**
|
|
1020
1099
|
* Review item ID
|
|
@@ -1056,7 +1135,7 @@ export type ReviewDetailDto = {
|
|
|
1056
1135
|
*/
|
|
1057
1136
|
matchReasons: Array<string>;
|
|
1058
1137
|
/**
|
|
1059
|
-
* Source type (
|
|
1138
|
+
* Source type (free-form string from transaction metadata, e.g. import, api)
|
|
1060
1139
|
*/
|
|
1061
1140
|
sourceType: string;
|
|
1062
1141
|
/**
|
|
@@ -1109,9 +1188,20 @@ export type ReviewDetailDto = {
|
|
|
1109
1188
|
|
|
1110
1189
|
export type ResolveReviewDto = {
|
|
1111
1190
|
/**
|
|
1112
|
-
* Decision action.
|
|
1191
|
+
* Decision action. Valid actions vary by review type — see DecisionOptionDto.value returned by the review detail endpoint.
|
|
1113
1192
|
*/
|
|
1114
|
-
action:
|
|
1193
|
+
action:
|
|
1194
|
+
| 'UPGRADE_REPLACE'
|
|
1195
|
+
| 'LINK_KEEP_BOTH'
|
|
1196
|
+
| 'IGNORE_NEW'
|
|
1197
|
+
| 'CONFIRM_DIFFERENT'
|
|
1198
|
+
| 'ACCEPT'
|
|
1199
|
+
| 'REJECT'
|
|
1200
|
+
| 'ACCEPT_AND_LEARN'
|
|
1201
|
+
| 'CHOOSE_OTHER'
|
|
1202
|
+
| 'CANCEL'
|
|
1203
|
+
| 'FIX'
|
|
1204
|
+
| 'IGNORE';
|
|
1115
1205
|
/**
|
|
1116
1206
|
* Additional data for the decision (e.g., selected account ID)
|
|
1117
1207
|
*/
|
|
@@ -1120,6 +1210,22 @@ export type ResolveReviewDto = {
|
|
|
1120
1210
|
};
|
|
1121
1211
|
};
|
|
1122
1212
|
|
|
1213
|
+
/**
|
|
1214
|
+
* Decision action. Valid actions vary by review type — see DecisionOptionDto.value returned by the review detail endpoint.
|
|
1215
|
+
*/
|
|
1216
|
+
export type action =
|
|
1217
|
+
| 'UPGRADE_REPLACE'
|
|
1218
|
+
| 'LINK_KEEP_BOTH'
|
|
1219
|
+
| 'IGNORE_NEW'
|
|
1220
|
+
| 'CONFIRM_DIFFERENT'
|
|
1221
|
+
| 'ACCEPT'
|
|
1222
|
+
| 'REJECT'
|
|
1223
|
+
| 'ACCEPT_AND_LEARN'
|
|
1224
|
+
| 'CHOOSE_OTHER'
|
|
1225
|
+
| 'CANCEL'
|
|
1226
|
+
| 'FIX'
|
|
1227
|
+
| 'IGNORE';
|
|
1228
|
+
|
|
1123
1229
|
export type ResolveResultDto = {
|
|
1124
1230
|
/**
|
|
1125
1231
|
* Whether resolution was successful
|
|
@@ -1176,7 +1282,18 @@ export type BatchResolveDto = {
|
|
|
1176
1282
|
/**
|
|
1177
1283
|
* Decision action to apply to all items
|
|
1178
1284
|
*/
|
|
1179
|
-
action:
|
|
1285
|
+
action:
|
|
1286
|
+
| 'UPGRADE_REPLACE'
|
|
1287
|
+
| 'LINK_KEEP_BOTH'
|
|
1288
|
+
| 'IGNORE_NEW'
|
|
1289
|
+
| 'CONFIRM_DIFFERENT'
|
|
1290
|
+
| 'ACCEPT'
|
|
1291
|
+
| 'REJECT'
|
|
1292
|
+
| 'ACCEPT_AND_LEARN'
|
|
1293
|
+
| 'CHOOSE_OTHER'
|
|
1294
|
+
| 'CANCEL'
|
|
1295
|
+
| 'FIX'
|
|
1296
|
+
| 'IGNORE';
|
|
1180
1297
|
/**
|
|
1181
1298
|
* Additional data for the decision
|
|
1182
1299
|
*/
|
|
@@ -3839,7 +3956,7 @@ export type status4 = 'success' | 'pending' | 'error';
|
|
|
3839
3956
|
/**
|
|
3840
3957
|
* Action taken or requested
|
|
3841
3958
|
*/
|
|
3842
|
-
export type
|
|
3959
|
+
export type action2 =
|
|
3843
3960
|
| 'created'
|
|
3844
3961
|
| 'ask'
|
|
3845
3962
|
| 'confirm'
|
|
@@ -4581,6 +4698,20 @@ export type TransactionControllerCreateBatchData = {
|
|
|
4581
4698
|
export type TransactionControllerCreateBatchResponse =
|
|
4582
4699
|
BatchTransactionResponseDto;
|
|
4583
4700
|
|
|
4701
|
+
export type TransactionControllerCorrectData = {
|
|
4702
|
+
/**
|
|
4703
|
+
* Original transaction ID to correct
|
|
4704
|
+
*/
|
|
4705
|
+
id: string;
|
|
4706
|
+
/**
|
|
4707
|
+
* Region code for tenant context
|
|
4708
|
+
*/
|
|
4709
|
+
region: 'cn' | 'us' | 'de' | 'gb';
|
|
4710
|
+
requestBody: CorrectTransactionDto;
|
|
4711
|
+
};
|
|
4712
|
+
|
|
4713
|
+
export type TransactionControllerCorrectResponse = TransactionDetailDto;
|
|
4714
|
+
|
|
4584
4715
|
export type TransactionControllerSuggestTagsData = {
|
|
4585
4716
|
/**
|
|
4586
4717
|
* Max suggestions (1-100, default 10)
|
|
@@ -6081,6 +6212,29 @@ export type $OpenApiTs = {
|
|
|
6081
6212
|
};
|
|
6082
6213
|
};
|
|
6083
6214
|
};
|
|
6215
|
+
'/api/v1/{region}/bean/transactions/{id}/correct': {
|
|
6216
|
+
post: {
|
|
6217
|
+
req: TransactionControllerCorrectData;
|
|
6218
|
+
res: {
|
|
6219
|
+
/**
|
|
6220
|
+
* Corrected transaction created
|
|
6221
|
+
*/
|
|
6222
|
+
201: TransactionDetailDto;
|
|
6223
|
+
/**
|
|
6224
|
+
* Original transaction not found
|
|
6225
|
+
*/
|
|
6226
|
+
404: ApiProblemResponseDto;
|
|
6227
|
+
/**
|
|
6228
|
+
* Original no longer ACTIVE (concurrent modification)
|
|
6229
|
+
*/
|
|
6230
|
+
409: ApiProblemResponseDto;
|
|
6231
|
+
/**
|
|
6232
|
+
* Pipeline validation failed (does not balance, invalid accounts)
|
|
6233
|
+
*/
|
|
6234
|
+
422: ApiProblemResponseDto;
|
|
6235
|
+
};
|
|
6236
|
+
};
|
|
6237
|
+
};
|
|
6084
6238
|
'/api/v1/{region}/bean/transactions/tags': {
|
|
6085
6239
|
get: {
|
|
6086
6240
|
req: TransactionControllerSuggestTagsData;
|