@firela/api-types 0.0.0-canary.294433f8 → 0.0.0-canary.29f4f85
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 +2992 -2066
- package/dist/index.d.ts +2992 -2066
- package/dist/index.js +33 -6
- package/dist/index.mjs +33 -6
- package/package.json +1 -1
- package/src/generated/schemas.gen.ts +3570 -2169
- package/src/generated/services.gen.ts +1215 -945
- package/src/generated/types.gen.ts +24705 -2530
|
@@ -31,6 +31,8 @@ import type {
|
|
|
31
31
|
TransactionControllerListResponse,
|
|
32
32
|
TransactionControllerCreateBatchData,
|
|
33
33
|
TransactionControllerCreateBatchResponse,
|
|
34
|
+
TransactionControllerBatchVoidData,
|
|
35
|
+
TransactionControllerBatchVoidResponse,
|
|
34
36
|
TransactionControllerCorrectData,
|
|
35
37
|
TransactionControllerCorrectResponse,
|
|
36
38
|
TransactionControllerSuggestTagsData,
|
|
@@ -57,6 +59,48 @@ import type {
|
|
|
57
59
|
ReviewControllerUndoResponse,
|
|
58
60
|
ReviewControllerBatchResolveData,
|
|
59
61
|
ReviewControllerBatchResolveResponse,
|
|
62
|
+
TransactionRuleControllerCreateData,
|
|
63
|
+
TransactionRuleControllerCreateResponse,
|
|
64
|
+
TransactionRuleControllerListData,
|
|
65
|
+
TransactionRuleControllerListResponse,
|
|
66
|
+
TransactionRuleControllerValidateData,
|
|
67
|
+
TransactionRuleControllerValidateResponse,
|
|
68
|
+
TransactionRuleControllerBulkCreateData,
|
|
69
|
+
TransactionRuleControllerBulkCreateResponse,
|
|
70
|
+
TransactionRuleControllerExportData,
|
|
71
|
+
TransactionRuleControllerExportResponse,
|
|
72
|
+
TransactionRuleControllerGetStatisticsData,
|
|
73
|
+
TransactionRuleControllerGetStatisticsResponse,
|
|
74
|
+
TransactionRuleControllerGetDetailData,
|
|
75
|
+
TransactionRuleControllerGetDetailResponse,
|
|
76
|
+
TransactionRuleControllerUpdateData,
|
|
77
|
+
TransactionRuleControllerUpdateResponse,
|
|
78
|
+
TransactionRuleControllerDeleteData,
|
|
79
|
+
TransactionRuleControllerDeleteResponse,
|
|
80
|
+
TransactionRuleControllerTestData,
|
|
81
|
+
TransactionRuleControllerTestResponse,
|
|
82
|
+
UserControllerDeleteOwnUserData,
|
|
83
|
+
UserControllerDeleteOwnUserResponse,
|
|
84
|
+
UserControllerGetUserData,
|
|
85
|
+
UserControllerGetUserResponse,
|
|
86
|
+
UserControllerSignupUserData,
|
|
87
|
+
UserControllerSignupUserResponse,
|
|
88
|
+
UserControllerDeleteUserData,
|
|
89
|
+
UserControllerDeleteUserResponse,
|
|
90
|
+
UserControllerGetUserInfoData,
|
|
91
|
+
UserControllerGetUserInfoResponse,
|
|
92
|
+
UserControllerUpdateUserSettingData,
|
|
93
|
+
UserControllerUpdateUserSettingResponse,
|
|
94
|
+
UserControllerGetAllUserSettingsByPageData,
|
|
95
|
+
UserControllerGetAllUserSettingsByPageResponse,
|
|
96
|
+
UserControllerGetAssetLiabilitySummaryResponse,
|
|
97
|
+
PropertyControllerGetAllResponse,
|
|
98
|
+
PropertyControllerGetByKeyData,
|
|
99
|
+
PropertyControllerGetByKeyResponse,
|
|
100
|
+
PropertyControllerUpdateData,
|
|
101
|
+
PropertyControllerUpdateResponse,
|
|
102
|
+
PropertyControllerDeleteData,
|
|
103
|
+
PropertyControllerDeleteResponse,
|
|
60
104
|
PayeeControllerCreateData,
|
|
61
105
|
PayeeControllerCreateResponse,
|
|
62
106
|
PayeeControllerFindAllData,
|
|
@@ -85,6 +129,7 @@ import type {
|
|
|
85
129
|
PayeeProfileAdminControllerVerifyResponse,
|
|
86
130
|
PayeeProfileAdminControllerUnverifyData,
|
|
87
131
|
PayeeProfileAdminControllerUnverifyResponse,
|
|
132
|
+
PayeeProfileControllerListActiveResponse,
|
|
88
133
|
CommodityControllerCreateData,
|
|
89
134
|
CommodityControllerCreateResponse,
|
|
90
135
|
CommodityControllerFindAllData,
|
|
@@ -99,6 +144,14 @@ import type {
|
|
|
99
144
|
CommodityControllerGetOrCreateResponse,
|
|
100
145
|
CommodityControllerBulkCreateData,
|
|
101
146
|
CommodityControllerBulkCreateResponse,
|
|
147
|
+
ReportingControllerGetPortfolioTrendsData,
|
|
148
|
+
ReportingControllerGetPortfolioTrendsResponse,
|
|
149
|
+
ReportingControllerGetCashFlowTrendsData,
|
|
150
|
+
ReportingControllerGetCashFlowTrendsResponse,
|
|
151
|
+
ReportingControllerGenerateSnapshotData,
|
|
152
|
+
ReportingControllerGenerateSnapshotResponse,
|
|
153
|
+
ReportingControllerBackfillSnapshotsData,
|
|
154
|
+
ReportingControllerBackfillSnapshotsResponse,
|
|
102
155
|
PriceControllerCreateData,
|
|
103
156
|
PriceControllerCreateResponse,
|
|
104
157
|
PriceControllerFindAllData,
|
|
@@ -143,56 +196,8 @@ import type {
|
|
|
143
196
|
ExpectedTransactionControllerEnterNowResponse,
|
|
144
197
|
ForecastControllerGetForecastData,
|
|
145
198
|
ForecastControllerGetForecastResponse,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
ReportingControllerGetCashFlowTrendsData,
|
|
149
|
-
ReportingControllerGetCashFlowTrendsResponse,
|
|
150
|
-
ReportingControllerGenerateSnapshotData,
|
|
151
|
-
ReportingControllerGenerateSnapshotResponse,
|
|
152
|
-
ReportingControllerBackfillSnapshotsData,
|
|
153
|
-
ReportingControllerBackfillSnapshotsResponse,
|
|
154
|
-
UserControllerDeleteOwnUserData,
|
|
155
|
-
UserControllerDeleteOwnUserResponse,
|
|
156
|
-
UserControllerGetUserData,
|
|
157
|
-
UserControllerGetUserResponse,
|
|
158
|
-
UserControllerSignupUserData,
|
|
159
|
-
UserControllerSignupUserResponse,
|
|
160
|
-
UserControllerDeleteUserData,
|
|
161
|
-
UserControllerDeleteUserResponse,
|
|
162
|
-
UserControllerGetUserInfoData,
|
|
163
|
-
UserControllerGetUserInfoResponse,
|
|
164
|
-
UserControllerUpdateUserSettingData,
|
|
165
|
-
UserControllerUpdateUserSettingResponse,
|
|
166
|
-
UserControllerGetAllUserSettingsByPageData,
|
|
167
|
-
UserControllerGetAllUserSettingsByPageResponse,
|
|
168
|
-
UserControllerGetAssetLiabilitySummaryResponse,
|
|
169
|
-
PropertyControllerGetAllResponse,
|
|
170
|
-
PropertyControllerGetByKeyData,
|
|
171
|
-
PropertyControllerGetByKeyResponse,
|
|
172
|
-
PropertyControllerUpdateData,
|
|
173
|
-
PropertyControllerUpdateResponse,
|
|
174
|
-
PropertyControllerDeleteData,
|
|
175
|
-
PropertyControllerDeleteResponse,
|
|
176
|
-
TransactionRuleControllerCreateData,
|
|
177
|
-
TransactionRuleControllerCreateResponse,
|
|
178
|
-
TransactionRuleControllerListData,
|
|
179
|
-
TransactionRuleControllerListResponse,
|
|
180
|
-
TransactionRuleControllerValidateData,
|
|
181
|
-
TransactionRuleControllerValidateResponse,
|
|
182
|
-
TransactionRuleControllerBulkCreateData,
|
|
183
|
-
TransactionRuleControllerBulkCreateResponse,
|
|
184
|
-
TransactionRuleControllerExportData,
|
|
185
|
-
TransactionRuleControllerExportResponse,
|
|
186
|
-
TransactionRuleControllerGetStatisticsData,
|
|
187
|
-
TransactionRuleControllerGetStatisticsResponse,
|
|
188
|
-
TransactionRuleControllerGetDetailData,
|
|
189
|
-
TransactionRuleControllerGetDetailResponse,
|
|
190
|
-
TransactionRuleControllerUpdateData,
|
|
191
|
-
TransactionRuleControllerUpdateResponse,
|
|
192
|
-
TransactionRuleControllerDeleteData,
|
|
193
|
-
TransactionRuleControllerDeleteResponse,
|
|
194
|
-
TransactionRuleControllerTestData,
|
|
195
|
-
TransactionRuleControllerTestResponse,
|
|
199
|
+
CategoryCatalogControllerListData,
|
|
200
|
+
CategoryCatalogControllerListResponse,
|
|
196
201
|
EventControllerCreateData,
|
|
197
202
|
EventControllerCreateResponse,
|
|
198
203
|
EventControllerFindAllData,
|
|
@@ -215,6 +220,7 @@ import type {
|
|
|
215
220
|
ReconciliationControllerPadResponse,
|
|
216
221
|
ReconciliationControllerHistoryData,
|
|
217
222
|
ReconciliationControllerHistoryResponse,
|
|
223
|
+
ExportControllerExportBeancountData,
|
|
218
224
|
ExportControllerExportBeancountResponse,
|
|
219
225
|
FileImportControllerImportFileData,
|
|
220
226
|
FileImportControllerImportFileResponse,
|
|
@@ -257,9 +263,12 @@ import type {
|
|
|
257
263
|
PlatformControllerFindAllResponse,
|
|
258
264
|
PlatformControllerCreateData,
|
|
259
265
|
PlatformControllerCreateResponse,
|
|
266
|
+
PlatformControllerGetPlatformListData,
|
|
260
267
|
PlatformControllerGetPlatformListResponse,
|
|
261
268
|
PlatformControllerMatchPlatformsData,
|
|
262
269
|
PlatformControllerMatchPlatformsResponse,
|
|
270
|
+
PlatformControllerGetPlatformStandardsData,
|
|
271
|
+
PlatformControllerGetPlatformStandardsResponse,
|
|
263
272
|
PlatformControllerUpdateData,
|
|
264
273
|
PlatformControllerUpdateResponse,
|
|
265
274
|
PlatformControllerDeleteData,
|
|
@@ -272,11 +281,17 @@ import type {
|
|
|
272
281
|
DashboardControllerGetCashFlowResponse,
|
|
273
282
|
DashboardControllerGetExpensesData,
|
|
274
283
|
DashboardControllerGetExpensesResponse,
|
|
284
|
+
DashboardControllerGetAdvisorContextData,
|
|
285
|
+
DashboardControllerGetAdvisorContextResponse,
|
|
275
286
|
HoldingPnlControllerGetHoldingPnlData,
|
|
276
287
|
HoldingPnlControllerGetHoldingPnlResponse,
|
|
277
288
|
ApiKeysControllerCreateApiKeyResponse,
|
|
278
289
|
AuthControllerAccessTokenLoginData,
|
|
279
290
|
AuthControllerAccessTokenLoginResponse,
|
|
291
|
+
AuthControllerAdvisorTokenLoginData,
|
|
292
|
+
AuthControllerAdvisorTokenLoginResponse,
|
|
293
|
+
ParserContributionControllerCreateData,
|
|
294
|
+
ParserContributionControllerCreateResponse,
|
|
280
295
|
CacheControllerFlushCacheResponse,
|
|
281
296
|
ExchangeRateControllerGetExchangeRateData,
|
|
282
297
|
ExchangeRateControllerGetExchangeRateResponse,
|
|
@@ -288,7 +303,11 @@ import type {
|
|
|
288
303
|
HealthControllerResetCircuitBreakerData,
|
|
289
304
|
HealthControllerResetCircuitBreakerResponse,
|
|
290
305
|
HealthControllerGetMetricsResponse,
|
|
291
|
-
InfoControllerGetInfoResponse
|
|
306
|
+
InfoControllerGetInfoResponse,
|
|
307
|
+
SymbolControllerSearchData,
|
|
308
|
+
SymbolControllerSearchResponse,
|
|
309
|
+
SymbolControllerGetQuoteData,
|
|
310
|
+
SymbolControllerGetQuoteResponse
|
|
292
311
|
} from './types.gen';
|
|
293
312
|
|
|
294
313
|
export class BeanAccountsService {
|
|
@@ -326,7 +345,7 @@ export class BeanAccountsService {
|
|
|
326
345
|
* @param data.type Filter by account type
|
|
327
346
|
* @param data.status Filter by status
|
|
328
347
|
* @param data.isCustom Filter by custom (user-created) accounts only
|
|
329
|
-
* @param data.search Search term
|
|
348
|
+
* @param data.search Search term matched against account path and user-set display name (case-insensitive)
|
|
330
349
|
* @param data.limit Maximum number of results
|
|
331
350
|
* @param data.offset Number of results to skip
|
|
332
351
|
* @returns AccountListResponseDto Accounts retrieved successfully
|
|
@@ -407,7 +426,7 @@ export class BeanAccountsService {
|
|
|
407
426
|
|
|
408
427
|
/**
|
|
409
428
|
* Delete account
|
|
410
|
-
* Deletes an account (only if no transactions)
|
|
429
|
+
* Deletes an account (only if no active transactions; voided/superseded residual postings are cleaned up)
|
|
411
430
|
* @param data The data for the request.
|
|
412
431
|
* @param data.id Account UUID
|
|
413
432
|
* @param data.region Region code for tenant context
|
|
@@ -426,7 +445,7 @@ export class BeanAccountsService {
|
|
|
426
445
|
},
|
|
427
446
|
errors: {
|
|
428
447
|
404: 'Account not found',
|
|
429
|
-
409: 'Account has transactions and cannot be deleted'
|
|
448
|
+
409: 'Account has active transactions and cannot be deleted'
|
|
430
449
|
}
|
|
431
450
|
});
|
|
432
451
|
}
|
|
@@ -522,11 +541,11 @@ export class BeanAccountsService {
|
|
|
522
541
|
export class BeanAccountStandardsService {
|
|
523
542
|
/**
|
|
524
543
|
* Get account templates
|
|
525
|
-
* Returns predefined account templates for a region. Supports filtering by account type and search term.
|
|
544
|
+
* Returns predefined account templates for a region. Supports filtering by account type and search term. Not-yet-open region codes return the universal-only catalog (#759).
|
|
526
545
|
* @param data The data for the request.
|
|
527
|
-
* @param data.region Region code (
|
|
546
|
+
* @param data.region Region code (any ISO alpha-2; not-yet-open codes return the universal-only catalog)
|
|
528
547
|
* @param data.type Filter by account type
|
|
529
|
-
* @param data.search Search term for path or
|
|
548
|
+
* @param data.search Search term for path, description, aliases, or localized display name
|
|
530
549
|
* @returns AccountStandardListResponseDto Account templates retrieved successfully
|
|
531
550
|
* @throws ApiError
|
|
532
551
|
*/
|
|
@@ -550,7 +569,7 @@ export class BeanAccountStandardsService {
|
|
|
550
569
|
* Get template metadata for an account path
|
|
551
570
|
* Returns root type for a template path.
|
|
552
571
|
* @param data The data for the request.
|
|
553
|
-
* @param data.region Region code for tenant context
|
|
572
|
+
* @param data.region Region code for tenant context. Not-yet-open codes degrade to the universal-only catalog (#759)
|
|
554
573
|
* @param data.path Account path to check
|
|
555
574
|
* @returns TemplateMetadataResponseDto Template metadata retrieved successfully
|
|
556
575
|
* @throws ApiError
|
|
@@ -572,9 +591,9 @@ export class BeanAccountStandardsService {
|
|
|
572
591
|
|
|
573
592
|
/**
|
|
574
593
|
* Get available regions with hierarchy
|
|
575
|
-
* Returns
|
|
594
|
+
* Returns the full region catalog (every ISO 3166-1 entry) with an 'open' flag and inheritance metadata (#759)
|
|
576
595
|
* @param data The data for the request.
|
|
577
|
-
* @param data.region Region code for tenant context
|
|
596
|
+
* @param data.region Region code for tenant context. Not-yet-open codes degrade to the universal-only catalog (#759)
|
|
578
597
|
* @returns RegionsMetadataResponseDto Regions metadata retrieved successfully
|
|
579
598
|
* @throws ApiError
|
|
580
599
|
*/
|
|
@@ -631,10 +650,11 @@ export class BeanTransactionsService {
|
|
|
631
650
|
* @param data.offset Number of items to skip (default: 0)
|
|
632
651
|
* @param data.dateFrom Filter by start date (inclusive), format: YYYY-MM-DD
|
|
633
652
|
* @param data.dateTo Filter by end date (inclusive), format: YYYY-MM-DD
|
|
634
|
-
* @param data.status Filter by transaction status
|
|
653
|
+
* @param data.status Filter by transaction status: single value, comma-separated multi-value (e.g. VOIDED,SUPERSEDED), or ALL to include audit rows. Defaults to ACTIVE-only (ADR-0128; previously unfiltered — breaking change).
|
|
635
654
|
* @param data.search Search in narration and payee fields (max 200 chars)
|
|
636
655
|
* @param data.accountId Filter by account ID (transactions with postings to this account)
|
|
637
|
-
* @param data.category Filter by ADR-0075 functional category (Group segment); matches any posting to an
|
|
656
|
+
* @param data.category Filter by ADR-0075 functional category (Group segment); matches any posting to an account whose derived Group segment equals this value. Must be accompanied by flow (ADR-0126).
|
|
657
|
+
* @param data.flow Required when category is present (400 otherwise) and vice versa (ADR-0126). Restricts the category account set to the flow root (income → Income:, expense → Expenses:) and drives the per-leg sign normalization of row viewpointAmount and the summary. OpenAPI cannot express conditional requiredness — the pairing is enforced at runtime.
|
|
638
658
|
* @returns TransactionListResponseDto Transaction list
|
|
639
659
|
* @throws ApiError
|
|
640
660
|
*/
|
|
@@ -655,7 +675,8 @@ export class BeanTransactionsService {
|
|
|
655
675
|
status: data.status,
|
|
656
676
|
search: data.search,
|
|
657
677
|
accountId: data.accountId,
|
|
658
|
-
category: data.category
|
|
678
|
+
category: data.category,
|
|
679
|
+
flow: data.flow
|
|
659
680
|
},
|
|
660
681
|
errors: {
|
|
661
682
|
400: 'Validation failed',
|
|
@@ -692,6 +713,34 @@ export class BeanTransactionsService {
|
|
|
692
713
|
});
|
|
693
714
|
}
|
|
694
715
|
|
|
716
|
+
/**
|
|
717
|
+
* Batch void transactions
|
|
718
|
+
* Soft-deletes (VOIDED) a batch of the caller's ACTIVE transactions in one DB transaction. Voiding releases each row's importId dedup slot, so re-importing the same file after an undo batch-void imports every row again instead of skipping them as duplicates.
|
|
719
|
+
* @param data The data for the request.
|
|
720
|
+
* @param data.region Region code for tenant context
|
|
721
|
+
* @param data.requestBody Batch void request (1-500 unique transaction IDs)
|
|
722
|
+
* @returns BatchVoidResultDto Batch void result: count of rows voided plus ids not found / no longer ACTIVE
|
|
723
|
+
* @throws ApiError
|
|
724
|
+
*/
|
|
725
|
+
public static transactionControllerBatchVoid(
|
|
726
|
+
data: TransactionControllerBatchVoidData
|
|
727
|
+
): CancelablePromise<TransactionControllerBatchVoidResponse> {
|
|
728
|
+
return __request(OpenAPI, {
|
|
729
|
+
method: 'POST',
|
|
730
|
+
url: '/api/v1/{region}/bean/transactions/batch-void',
|
|
731
|
+
path: {
|
|
732
|
+
region: data.region
|
|
733
|
+
},
|
|
734
|
+
body: data.requestBody,
|
|
735
|
+
mediaType: 'application/json',
|
|
736
|
+
errors: {
|
|
737
|
+
400: 'Validation failed (empty, over 500, duplicate or non-string ids)',
|
|
738
|
+
401: 'Authentication required',
|
|
739
|
+
403: 'Batch contains ids owned by another user — whole request rejected, nothing committed'
|
|
740
|
+
}
|
|
741
|
+
});
|
|
742
|
+
}
|
|
743
|
+
|
|
695
744
|
/**
|
|
696
745
|
* Correct (supersede) a transaction
|
|
697
746
|
* Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
|
|
@@ -1036,1126 +1085,1080 @@ export class BeanReviewsService {
|
|
|
1036
1085
|
}
|
|
1037
1086
|
}
|
|
1038
1087
|
|
|
1039
|
-
export class
|
|
1088
|
+
export class BeanTransactionRulesService {
|
|
1040
1089
|
/**
|
|
1041
|
-
* Create a new
|
|
1042
|
-
* Creates a new
|
|
1090
|
+
* Create a new transaction rule (or upsert if upsertByPayee=true)
|
|
1091
|
+
* Creates a new rule. If upsertByPayee=true, updates existing rule matching payeeKeywords[0] instead of creating duplicate.
|
|
1043
1092
|
* @param data The data for the request.
|
|
1093
|
+
* @param data.region Region code for tenant context
|
|
1044
1094
|
* @param data.requestBody
|
|
1045
|
-
* @returns
|
|
1095
|
+
* @returns TransactionRuleResponseDto Rule updated successfully (upsert mode)
|
|
1046
1096
|
* @throws ApiError
|
|
1047
1097
|
*/
|
|
1048
|
-
public static
|
|
1049
|
-
data:
|
|
1050
|
-
): CancelablePromise<
|
|
1098
|
+
public static transactionRuleControllerCreate(
|
|
1099
|
+
data: TransactionRuleControllerCreateData
|
|
1100
|
+
): CancelablePromise<TransactionRuleControllerCreateResponse> {
|
|
1051
1101
|
return __request(OpenAPI, {
|
|
1052
1102
|
method: 'POST',
|
|
1053
|
-
url: '/api/v1/bean/
|
|
1103
|
+
url: '/api/v1/{region}/bean/transaction-rules',
|
|
1104
|
+
path: {
|
|
1105
|
+
region: data.region
|
|
1106
|
+
},
|
|
1054
1107
|
body: data.requestBody,
|
|
1055
1108
|
mediaType: 'application/json',
|
|
1056
1109
|
errors: {
|
|
1057
|
-
400: '
|
|
1058
|
-
|
|
1110
|
+
400: 'Validation failed',
|
|
1111
|
+
401: 'Unauthorized',
|
|
1112
|
+
409: 'Resource conflict - another process is updating this rule'
|
|
1059
1113
|
}
|
|
1060
1114
|
});
|
|
1061
1115
|
}
|
|
1062
1116
|
|
|
1063
1117
|
/**
|
|
1064
|
-
*
|
|
1065
|
-
* Returns all payee mappings for the authenticated user with optional filtering
|
|
1118
|
+
* Get all transaction rules for user
|
|
1066
1119
|
* @param data The data for the request.
|
|
1067
|
-
* @param data.
|
|
1068
|
-
* @param data.
|
|
1069
|
-
* @param data.
|
|
1070
|
-
* @param data.
|
|
1071
|
-
* @param data.
|
|
1072
|
-
* @
|
|
1120
|
+
* @param data.region Region code for tenant context
|
|
1121
|
+
* @param data.limit Max results per page (default: 20, max: 100)
|
|
1122
|
+
* @param data.offset Pagination offset (default: 0)
|
|
1123
|
+
* @param data.enabled Filter by enabled status
|
|
1124
|
+
* @param data.learningSource Filter by learning source. Omit this parameter or pass empty string to get manually created rules (learningSource is null in database).
|
|
1125
|
+
* @param data.autoApplyEnabled Filter by auto-apply status
|
|
1126
|
+
* @returns TransactionRuleListResponseDto List of rules
|
|
1073
1127
|
* @throws ApiError
|
|
1074
1128
|
*/
|
|
1075
|
-
public static
|
|
1076
|
-
data:
|
|
1077
|
-
): CancelablePromise<
|
|
1129
|
+
public static transactionRuleControllerList(
|
|
1130
|
+
data: TransactionRuleControllerListData
|
|
1131
|
+
): CancelablePromise<TransactionRuleControllerListResponse> {
|
|
1078
1132
|
return __request(OpenAPI, {
|
|
1079
1133
|
method: 'GET',
|
|
1080
|
-
url: '/api/v1/bean/
|
|
1134
|
+
url: '/api/v1/{region}/bean/transaction-rules',
|
|
1135
|
+
path: {
|
|
1136
|
+
region: data.region
|
|
1137
|
+
},
|
|
1081
1138
|
query: {
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1139
|
+
limit: data.limit,
|
|
1140
|
+
offset: data.offset,
|
|
1141
|
+
enabled: data.enabled,
|
|
1142
|
+
learningSource: data.learningSource,
|
|
1143
|
+
autoApplyEnabled: data.autoApplyEnabled
|
|
1144
|
+
},
|
|
1145
|
+
errors: {
|
|
1146
|
+
401: 'Unauthorized'
|
|
1087
1147
|
}
|
|
1088
1148
|
});
|
|
1089
1149
|
}
|
|
1090
1150
|
|
|
1091
1151
|
/**
|
|
1092
|
-
*
|
|
1093
|
-
* Returns active payee names matching the query, sorted by recent usage. Used for transaction input autocomplete.
|
|
1152
|
+
* Validate transaction rule configuration
|
|
1094
1153
|
* @param data The data for the request.
|
|
1095
|
-
* @param data.
|
|
1096
|
-
* @param data.
|
|
1097
|
-
* @returns
|
|
1154
|
+
* @param data.region Region code for tenant context
|
|
1155
|
+
* @param data.requestBody
|
|
1156
|
+
* @returns ValidateRuleResponseDto Validation result
|
|
1098
1157
|
* @throws ApiError
|
|
1099
1158
|
*/
|
|
1100
|
-
public static
|
|
1101
|
-
data:
|
|
1102
|
-
): CancelablePromise<
|
|
1159
|
+
public static transactionRuleControllerValidate(
|
|
1160
|
+
data: TransactionRuleControllerValidateData
|
|
1161
|
+
): CancelablePromise<TransactionRuleControllerValidateResponse> {
|
|
1103
1162
|
return __request(OpenAPI, {
|
|
1104
|
-
method: '
|
|
1105
|
-
url: '/api/v1/bean/
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1163
|
+
method: 'POST',
|
|
1164
|
+
url: '/api/v1/{region}/bean/transaction-rules/validate',
|
|
1165
|
+
path: {
|
|
1166
|
+
region: data.region
|
|
1167
|
+
},
|
|
1168
|
+
body: data.requestBody,
|
|
1169
|
+
mediaType: 'application/json',
|
|
1170
|
+
errors: {
|
|
1171
|
+
400: 'Validation failed',
|
|
1172
|
+
401: 'Unauthorized'
|
|
1109
1173
|
}
|
|
1110
1174
|
});
|
|
1111
1175
|
}
|
|
1112
1176
|
|
|
1113
1177
|
/**
|
|
1114
|
-
*
|
|
1115
|
-
* Returns the most frequently used payees, sorted by use count. Used for statistics and analytics.
|
|
1178
|
+
* Bulk create transaction rules
|
|
1116
1179
|
* @param data The data for the request.
|
|
1117
|
-
* @param data.
|
|
1118
|
-
* @
|
|
1180
|
+
* @param data.region Region code for tenant context
|
|
1181
|
+
* @param data.requestBody
|
|
1182
|
+
* @returns BulkCreateRulesResponseDto Bulk create completed
|
|
1119
1183
|
* @throws ApiError
|
|
1120
1184
|
*/
|
|
1121
|
-
public static
|
|
1122
|
-
data:
|
|
1123
|
-
): CancelablePromise<
|
|
1185
|
+
public static transactionRuleControllerBulkCreate(
|
|
1186
|
+
data: TransactionRuleControllerBulkCreateData
|
|
1187
|
+
): CancelablePromise<TransactionRuleControllerBulkCreateResponse> {
|
|
1124
1188
|
return __request(OpenAPI, {
|
|
1125
|
-
method: '
|
|
1126
|
-
url: '/api/v1/bean/
|
|
1127
|
-
|
|
1128
|
-
|
|
1189
|
+
method: 'POST',
|
|
1190
|
+
url: '/api/v1/{region}/bean/transaction-rules/bulk',
|
|
1191
|
+
path: {
|
|
1192
|
+
region: data.region
|
|
1193
|
+
},
|
|
1194
|
+
body: data.requestBody,
|
|
1195
|
+
mediaType: 'application/json',
|
|
1196
|
+
errors: {
|
|
1197
|
+
400: 'Invalid bulk create data',
|
|
1198
|
+
401: 'Unauthorized'
|
|
1129
1199
|
}
|
|
1130
1200
|
});
|
|
1131
1201
|
}
|
|
1132
1202
|
|
|
1133
1203
|
/**
|
|
1134
|
-
*
|
|
1135
|
-
* Returns a specific payee mapping by its UUID
|
|
1204
|
+
* Export transaction rules
|
|
1136
1205
|
* @param data The data for the request.
|
|
1137
|
-
* @param data.
|
|
1138
|
-
* @
|
|
1206
|
+
* @param data.format Export format (currently only JSON supported)
|
|
1207
|
+
* @param data.region Region code for tenant context
|
|
1208
|
+
* @returns ExportRulesResponseDto Exported rules
|
|
1139
1209
|
* @throws ApiError
|
|
1140
1210
|
*/
|
|
1141
|
-
public static
|
|
1142
|
-
data:
|
|
1143
|
-
): CancelablePromise<
|
|
1211
|
+
public static transactionRuleControllerExport(
|
|
1212
|
+
data: TransactionRuleControllerExportData
|
|
1213
|
+
): CancelablePromise<TransactionRuleControllerExportResponse> {
|
|
1144
1214
|
return __request(OpenAPI, {
|
|
1145
1215
|
method: 'GET',
|
|
1146
|
-
url: '/api/v1/bean/
|
|
1216
|
+
url: '/api/v1/{region}/bean/transaction-rules/export/{format}',
|
|
1147
1217
|
path: {
|
|
1148
|
-
|
|
1218
|
+
format: data.format,
|
|
1219
|
+
region: data.region
|
|
1149
1220
|
},
|
|
1150
1221
|
errors: {
|
|
1151
|
-
|
|
1152
|
-
|
|
1222
|
+
400: 'Unsupported format',
|
|
1223
|
+
401: 'Unauthorized'
|
|
1153
1224
|
}
|
|
1154
1225
|
});
|
|
1155
1226
|
}
|
|
1156
1227
|
|
|
1157
1228
|
/**
|
|
1158
|
-
*
|
|
1159
|
-
* Updates a payee mapping. The payee name cannot be changed after creation.
|
|
1229
|
+
* Get transaction rule statistics
|
|
1160
1230
|
* @param data The data for the request.
|
|
1161
|
-
* @param data.
|
|
1162
|
-
* @param data.
|
|
1163
|
-
* @returns
|
|
1231
|
+
* @param data.period Statistics time period
|
|
1232
|
+
* @param data.region Region code for tenant context
|
|
1233
|
+
* @returns RuleStatisticsResponseDto Rule statistics
|
|
1164
1234
|
* @throws ApiError
|
|
1165
1235
|
*/
|
|
1166
|
-
public static
|
|
1167
|
-
data:
|
|
1168
|
-
): CancelablePromise<
|
|
1236
|
+
public static transactionRuleControllerGetStatistics(
|
|
1237
|
+
data: TransactionRuleControllerGetStatisticsData
|
|
1238
|
+
): CancelablePromise<TransactionRuleControllerGetStatisticsResponse> {
|
|
1169
1239
|
return __request(OpenAPI, {
|
|
1170
|
-
method: '
|
|
1171
|
-
url: '/api/v1/bean/
|
|
1240
|
+
method: 'GET',
|
|
1241
|
+
url: '/api/v1/{region}/bean/transaction-rules/statistics/{period}',
|
|
1172
1242
|
path: {
|
|
1173
|
-
|
|
1243
|
+
period: data.period,
|
|
1244
|
+
region: data.region
|
|
1174
1245
|
},
|
|
1175
|
-
body: data.requestBody,
|
|
1176
|
-
mediaType: 'application/json',
|
|
1177
1246
|
errors: {
|
|
1178
|
-
|
|
1179
|
-
404: 'Payee not found'
|
|
1247
|
+
401: 'Unauthorized'
|
|
1180
1248
|
}
|
|
1181
1249
|
});
|
|
1182
1250
|
}
|
|
1183
1251
|
|
|
1184
1252
|
/**
|
|
1185
|
-
*
|
|
1186
|
-
* Soft deletes a payee by marking it as inactive. Inactive payees will not appear in autocomplete suggestions.
|
|
1253
|
+
* Get transaction rule detail
|
|
1187
1254
|
* @param data The data for the request.
|
|
1188
|
-
* @param data.
|
|
1189
|
-
* @
|
|
1255
|
+
* @param data.ruleId Rule ID
|
|
1256
|
+
* @param data.region Region code for tenant context
|
|
1257
|
+
* @returns TransactionRuleResponseDto Rule details
|
|
1190
1258
|
* @throws ApiError
|
|
1191
1259
|
*/
|
|
1192
|
-
public static
|
|
1193
|
-
data:
|
|
1194
|
-
): CancelablePromise<
|
|
1260
|
+
public static transactionRuleControllerGetDetail(
|
|
1261
|
+
data: TransactionRuleControllerGetDetailData
|
|
1262
|
+
): CancelablePromise<TransactionRuleControllerGetDetailResponse> {
|
|
1195
1263
|
return __request(OpenAPI, {
|
|
1196
|
-
method: '
|
|
1197
|
-
url: '/api/v1/bean/
|
|
1264
|
+
method: 'GET',
|
|
1265
|
+
url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
|
|
1198
1266
|
path: {
|
|
1199
|
-
|
|
1267
|
+
ruleId: data.ruleId,
|
|
1268
|
+
region: data.region
|
|
1200
1269
|
},
|
|
1201
1270
|
errors: {
|
|
1202
|
-
|
|
1271
|
+
401: 'Unauthorized',
|
|
1272
|
+
403: 'Forbidden - not owner of rule',
|
|
1273
|
+
404: 'Rule not found'
|
|
1203
1274
|
}
|
|
1204
1275
|
});
|
|
1205
1276
|
}
|
|
1206
|
-
}
|
|
1207
1277
|
|
|
1208
|
-
export class AdminPayeeProfilesService {
|
|
1209
1278
|
/**
|
|
1210
|
-
*
|
|
1211
|
-
* Creates a new global payee profile. The canonical name must be unique (case-insensitive).
|
|
1279
|
+
* Update a transaction rule
|
|
1212
1280
|
* @param data The data for the request.
|
|
1281
|
+
* @param data.ruleId Rule ID to update
|
|
1282
|
+
* @param data.region Region code for tenant context
|
|
1213
1283
|
* @param data.requestBody
|
|
1214
|
-
* @returns
|
|
1284
|
+
* @returns TransactionRuleResponseDto Rule updated successfully
|
|
1215
1285
|
* @throws ApiError
|
|
1216
1286
|
*/
|
|
1217
|
-
public static
|
|
1218
|
-
data:
|
|
1219
|
-
): CancelablePromise<
|
|
1287
|
+
public static transactionRuleControllerUpdate(
|
|
1288
|
+
data: TransactionRuleControllerUpdateData
|
|
1289
|
+
): CancelablePromise<TransactionRuleControllerUpdateResponse> {
|
|
1220
1290
|
return __request(OpenAPI, {
|
|
1221
|
-
method: '
|
|
1222
|
-
url: '/api/v1/
|
|
1291
|
+
method: 'PUT',
|
|
1292
|
+
url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
|
|
1293
|
+
path: {
|
|
1294
|
+
ruleId: data.ruleId,
|
|
1295
|
+
region: data.region
|
|
1296
|
+
},
|
|
1223
1297
|
body: data.requestBody,
|
|
1224
1298
|
mediaType: 'application/json',
|
|
1225
1299
|
errors: {
|
|
1226
1300
|
400: 'Validation failed',
|
|
1227
|
-
|
|
1228
|
-
|
|
1301
|
+
401: 'Unauthorized',
|
|
1302
|
+
403: 'Forbidden - not owner of rule',
|
|
1303
|
+
404: 'Rule not found',
|
|
1304
|
+
409: 'Resource conflict - rule is being modified by another process'
|
|
1229
1305
|
}
|
|
1230
1306
|
});
|
|
1231
1307
|
}
|
|
1232
1308
|
|
|
1233
1309
|
/**
|
|
1234
|
-
*
|
|
1235
|
-
* Returns all payee profiles with optional filtering by category, country, verification status, etc.
|
|
1310
|
+
* Delete a transaction rule
|
|
1236
1311
|
* @param data The data for the request.
|
|
1237
|
-
* @param data.
|
|
1238
|
-
* @param data.
|
|
1239
|
-
* @
|
|
1240
|
-
* @param data.isActive Filter by active status (default: true - show only active)
|
|
1241
|
-
* @param data.verified Filter by verification status. true = verified only, false = unverified only
|
|
1242
|
-
* @param data.dataSource Filter by data source
|
|
1243
|
-
* @returns PayeeProfileListResponseDto Payee profiles retrieved successfully
|
|
1312
|
+
* @param data.ruleId Rule ID to delete
|
|
1313
|
+
* @param data.region Region code for tenant context
|
|
1314
|
+
* @returns void Rule deleted successfully
|
|
1244
1315
|
* @throws ApiError
|
|
1245
1316
|
*/
|
|
1246
|
-
public static
|
|
1247
|
-
data:
|
|
1248
|
-
): CancelablePromise<
|
|
1317
|
+
public static transactionRuleControllerDelete(
|
|
1318
|
+
data: TransactionRuleControllerDeleteData
|
|
1319
|
+
): CancelablePromise<TransactionRuleControllerDeleteResponse> {
|
|
1249
1320
|
return __request(OpenAPI, {
|
|
1250
|
-
method: '
|
|
1251
|
-
url: '/api/v1/
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
country: data.country,
|
|
1256
|
-
isActive: data.isActive,
|
|
1257
|
-
verified: data.verified,
|
|
1258
|
-
dataSource: data.dataSource
|
|
1321
|
+
method: 'DELETE',
|
|
1322
|
+
url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
|
|
1323
|
+
path: {
|
|
1324
|
+
ruleId: data.ruleId,
|
|
1325
|
+
region: data.region
|
|
1259
1326
|
},
|
|
1260
1327
|
errors: {
|
|
1261
|
-
|
|
1328
|
+
401: 'Unauthorized',
|
|
1329
|
+
403: 'Forbidden - not owner of rule',
|
|
1330
|
+
404: 'Rule not found',
|
|
1331
|
+
409: 'Resource conflict - rule is being modified by another process'
|
|
1262
1332
|
}
|
|
1263
1333
|
});
|
|
1264
1334
|
}
|
|
1265
1335
|
|
|
1266
1336
|
/**
|
|
1267
|
-
*
|
|
1268
|
-
* Returns a single payee profile by its ID.
|
|
1337
|
+
* Test rule matching
|
|
1269
1338
|
* @param data The data for the request.
|
|
1270
|
-
* @param data.
|
|
1271
|
-
* @
|
|
1339
|
+
* @param data.ruleId Rule ID to test
|
|
1340
|
+
* @param data.region Region code for tenant context
|
|
1341
|
+
* @param data.requestBody
|
|
1342
|
+
* @returns TestRuleResponseDto Test result
|
|
1272
1343
|
* @throws ApiError
|
|
1273
1344
|
*/
|
|
1274
|
-
public static
|
|
1275
|
-
data:
|
|
1276
|
-
): CancelablePromise<
|
|
1345
|
+
public static transactionRuleControllerTest(
|
|
1346
|
+
data: TransactionRuleControllerTestData
|
|
1347
|
+
): CancelablePromise<TransactionRuleControllerTestResponse> {
|
|
1277
1348
|
return __request(OpenAPI, {
|
|
1278
|
-
method: '
|
|
1279
|
-
url: '/api/v1/
|
|
1349
|
+
method: 'POST',
|
|
1350
|
+
url: '/api/v1/{region}/bean/transaction-rules/{ruleId}/test',
|
|
1280
1351
|
path: {
|
|
1281
|
-
|
|
1352
|
+
ruleId: data.ruleId,
|
|
1353
|
+
region: data.region
|
|
1282
1354
|
},
|
|
1355
|
+
body: data.requestBody,
|
|
1356
|
+
mediaType: 'application/json',
|
|
1283
1357
|
errors: {
|
|
1284
|
-
|
|
1285
|
-
|
|
1358
|
+
401: 'Unauthorized',
|
|
1359
|
+
403: 'Forbidden - not owner of rule',
|
|
1360
|
+
404: 'Rule not found'
|
|
1286
1361
|
}
|
|
1287
1362
|
});
|
|
1288
1363
|
}
|
|
1364
|
+
}
|
|
1289
1365
|
|
|
1366
|
+
export class UsersService {
|
|
1290
1367
|
/**
|
|
1291
|
-
*
|
|
1292
|
-
* Updates an existing payee profile. The canonical name cannot be changed.
|
|
1368
|
+
* Delete own user account
|
|
1293
1369
|
* @param data The data for the request.
|
|
1294
|
-
* @param data.id Payee profile ID (UUID)
|
|
1295
1370
|
* @param data.requestBody
|
|
1296
|
-
* @returns
|
|
1371
|
+
* @returns void User deleted successfully
|
|
1297
1372
|
* @throws ApiError
|
|
1298
1373
|
*/
|
|
1299
|
-
public static
|
|
1300
|
-
data:
|
|
1301
|
-
): CancelablePromise<
|
|
1374
|
+
public static userControllerDeleteOwnUser(
|
|
1375
|
+
data: UserControllerDeleteOwnUserData
|
|
1376
|
+
): CancelablePromise<UserControllerDeleteOwnUserResponse> {
|
|
1302
1377
|
return __request(OpenAPI, {
|
|
1303
|
-
method: '
|
|
1304
|
-
url: '/api/v1/
|
|
1305
|
-
path: {
|
|
1306
|
-
id: data.id
|
|
1307
|
-
},
|
|
1378
|
+
method: 'DELETE',
|
|
1379
|
+
url: '/api/v1/users',
|
|
1308
1380
|
body: data.requestBody,
|
|
1309
1381
|
mediaType: 'application/json',
|
|
1310
1382
|
errors: {
|
|
1311
|
-
403: '
|
|
1312
|
-
404: 'Payee profile not found'
|
|
1383
|
+
403: 'Invalid access token'
|
|
1313
1384
|
}
|
|
1314
1385
|
});
|
|
1315
1386
|
}
|
|
1316
1387
|
|
|
1317
1388
|
/**
|
|
1318
|
-
*
|
|
1319
|
-
* Marks a payee profile as inactive (soft delete). The profile cannot be deleted if it is referenced by user payees.
|
|
1389
|
+
* Get current authenticated user
|
|
1320
1390
|
* @param data The data for the request.
|
|
1321
|
-
* @param data.
|
|
1322
|
-
* @returns
|
|
1391
|
+
* @param data.acceptLanguage
|
|
1392
|
+
* @returns UserResponseDto User retrieved successfully
|
|
1323
1393
|
* @throws ApiError
|
|
1324
1394
|
*/
|
|
1325
|
-
public static
|
|
1326
|
-
data:
|
|
1327
|
-
): CancelablePromise<
|
|
1395
|
+
public static userControllerGetUser(
|
|
1396
|
+
data: UserControllerGetUserData
|
|
1397
|
+
): CancelablePromise<UserControllerGetUserResponse> {
|
|
1328
1398
|
return __request(OpenAPI, {
|
|
1329
|
-
method: '
|
|
1330
|
-
url: '/api/v1/
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
},
|
|
1334
|
-
errors: {
|
|
1335
|
-
403: 'Admin access required',
|
|
1336
|
-
404: 'Payee profile not found',
|
|
1337
|
-
409: 'Payee profile is in use and cannot be deleted'
|
|
1399
|
+
method: 'GET',
|
|
1400
|
+
url: '/api/v1/users',
|
|
1401
|
+
headers: {
|
|
1402
|
+
'accept-language': data.acceptLanguage
|
|
1338
1403
|
}
|
|
1339
1404
|
});
|
|
1340
1405
|
}
|
|
1341
1406
|
|
|
1342
1407
|
/**
|
|
1343
|
-
*
|
|
1344
|
-
*
|
|
1408
|
+
* Sign up new user
|
|
1409
|
+
* Create a new account with auto-generated access token. Protected by Cloudflare Turnstile to prevent automated signup (when enabled).
|
|
1345
1410
|
* @param data The data for the request.
|
|
1346
|
-
* @param data.
|
|
1347
|
-
* @returns
|
|
1411
|
+
* @param data.requestBody
|
|
1412
|
+
* @returns SignupResponseDto User created successfully
|
|
1348
1413
|
* @throws ApiError
|
|
1349
1414
|
*/
|
|
1350
|
-
public static
|
|
1351
|
-
data:
|
|
1352
|
-
): CancelablePromise<
|
|
1415
|
+
public static userControllerSignupUser(
|
|
1416
|
+
data: UserControllerSignupUserData
|
|
1417
|
+
): CancelablePromise<UserControllerSignupUserResponse> {
|
|
1353
1418
|
return __request(OpenAPI, {
|
|
1354
1419
|
method: 'POST',
|
|
1355
|
-
url: '/api/v1/
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
},
|
|
1420
|
+
url: '/api/v1/users',
|
|
1421
|
+
body: data.requestBody,
|
|
1422
|
+
mediaType: 'application/json',
|
|
1359
1423
|
errors: {
|
|
1360
|
-
|
|
1361
|
-
|
|
1424
|
+
400: 'Invalid Turnstile token (when Turnstile is enabled)',
|
|
1425
|
+
403: 'User signup is disabled'
|
|
1362
1426
|
}
|
|
1363
1427
|
});
|
|
1364
1428
|
}
|
|
1365
1429
|
|
|
1366
1430
|
/**
|
|
1367
|
-
*
|
|
1368
|
-
* Removes verification status by setting verifiedAt to null.
|
|
1431
|
+
* Delete user by ID (admin only)
|
|
1369
1432
|
* @param data The data for the request.
|
|
1370
|
-
* @param data.id
|
|
1371
|
-
* @returns
|
|
1433
|
+
* @param data.id User ID to delete
|
|
1434
|
+
* @returns void User deleted successfully
|
|
1372
1435
|
* @throws ApiError
|
|
1373
1436
|
*/
|
|
1374
|
-
public static
|
|
1375
|
-
data:
|
|
1376
|
-
): CancelablePromise<
|
|
1437
|
+
public static userControllerDeleteUser(
|
|
1438
|
+
data: UserControllerDeleteUserData
|
|
1439
|
+
): CancelablePromise<UserControllerDeleteUserResponse> {
|
|
1377
1440
|
return __request(OpenAPI, {
|
|
1378
1441
|
method: 'DELETE',
|
|
1379
|
-
url: '/api/v1/
|
|
1442
|
+
url: '/api/v1/users/{id}',
|
|
1380
1443
|
path: {
|
|
1381
1444
|
id: data.id
|
|
1382
1445
|
},
|
|
1383
1446
|
errors: {
|
|
1384
|
-
403: '
|
|
1385
|
-
404: 'Payee profile not found'
|
|
1447
|
+
403: 'Cannot delete own account or insufficient permissions'
|
|
1386
1448
|
}
|
|
1387
1449
|
});
|
|
1388
1450
|
}
|
|
1389
|
-
}
|
|
1390
1451
|
|
|
1391
|
-
export class BeanCommoditiesService {
|
|
1392
1452
|
/**
|
|
1393
|
-
*
|
|
1394
|
-
* Creates a new commodity definition for the authenticated user
|
|
1453
|
+
* Get user info by user ID
|
|
1395
1454
|
* @param data The data for the request.
|
|
1396
|
-
* @param data.
|
|
1397
|
-
* @
|
|
1398
|
-
* @returns CommodityResponseDto Commodity created successfully
|
|
1455
|
+
* @param data.id User ID
|
|
1456
|
+
* @returns unknown User info retrieved successfully
|
|
1399
1457
|
* @throws ApiError
|
|
1400
1458
|
*/
|
|
1401
|
-
public static
|
|
1402
|
-
data:
|
|
1403
|
-
): CancelablePromise<
|
|
1459
|
+
public static userControllerGetUserInfo(
|
|
1460
|
+
data: UserControllerGetUserInfoData
|
|
1461
|
+
): CancelablePromise<UserControllerGetUserInfoResponse> {
|
|
1404
1462
|
return __request(OpenAPI, {
|
|
1405
|
-
method: '
|
|
1406
|
-
url: '/api/v1/{
|
|
1463
|
+
method: 'GET',
|
|
1464
|
+
url: '/api/v1/users/{id}/info',
|
|
1407
1465
|
path: {
|
|
1408
|
-
|
|
1466
|
+
id: data.id
|
|
1409
1467
|
},
|
|
1468
|
+
errors: {
|
|
1469
|
+
403: 'Cannot access other user info without admin permission'
|
|
1470
|
+
}
|
|
1471
|
+
});
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
/**
|
|
1475
|
+
* Update user settings
|
|
1476
|
+
* @param data The data for the request.
|
|
1477
|
+
* @param data.requestBody
|
|
1478
|
+
* @returns unknown Settings updated successfully
|
|
1479
|
+
* @throws ApiError
|
|
1480
|
+
*/
|
|
1481
|
+
public static userControllerUpdateUserSetting(
|
|
1482
|
+
data: UserControllerUpdateUserSettingData
|
|
1483
|
+
): CancelablePromise<UserControllerUpdateUserSettingResponse> {
|
|
1484
|
+
return __request(OpenAPI, {
|
|
1485
|
+
method: 'PUT',
|
|
1486
|
+
url: '/api/v1/users/setting',
|
|
1410
1487
|
body: data.requestBody,
|
|
1411
1488
|
mediaType: 'application/json',
|
|
1412
1489
|
errors: {
|
|
1413
|
-
|
|
1414
|
-
409: 'Commodity already exists'
|
|
1490
|
+
403: 'Insufficient permissions'
|
|
1415
1491
|
}
|
|
1416
1492
|
});
|
|
1417
1493
|
}
|
|
1418
1494
|
|
|
1419
1495
|
/**
|
|
1420
|
-
*
|
|
1421
|
-
* Returns all commodity definitions for the authenticated user with optional filtering
|
|
1496
|
+
* Get all user settings paginated (admin only)
|
|
1422
1497
|
* @param data The data for the request.
|
|
1423
|
-
* @param data.
|
|
1424
|
-
* @param data.
|
|
1425
|
-
* @
|
|
1426
|
-
* @returns CommodityListResponseDto Commodities retrieved successfully
|
|
1498
|
+
* @param data.pageNo Page number
|
|
1499
|
+
* @param data.pageSize Page size
|
|
1500
|
+
* @returns unknown Settings list retrieved successfully
|
|
1427
1501
|
* @throws ApiError
|
|
1428
1502
|
*/
|
|
1429
|
-
public static
|
|
1430
|
-
data:
|
|
1431
|
-
): CancelablePromise<
|
|
1503
|
+
public static userControllerGetAllUserSettingsByPage(
|
|
1504
|
+
data: UserControllerGetAllUserSettingsByPageData
|
|
1505
|
+
): CancelablePromise<UserControllerGetAllUserSettingsByPageResponse> {
|
|
1432
1506
|
return __request(OpenAPI, {
|
|
1433
1507
|
method: 'GET',
|
|
1434
|
-
url: '/api/v1/
|
|
1435
|
-
path: {
|
|
1436
|
-
region: data.region
|
|
1437
|
-
},
|
|
1508
|
+
url: '/api/v1/users/settings-by-page',
|
|
1438
1509
|
query: {
|
|
1439
|
-
|
|
1440
|
-
|
|
1510
|
+
pageNo: data.pageNo,
|
|
1511
|
+
pageSize: data.pageSize
|
|
1441
1512
|
}
|
|
1442
1513
|
});
|
|
1443
1514
|
}
|
|
1444
1515
|
|
|
1445
1516
|
/**
|
|
1446
|
-
* Get
|
|
1447
|
-
*
|
|
1448
|
-
* @param data The data for the request.
|
|
1449
|
-
* @param data.symbol Commodity symbol
|
|
1450
|
-
* @param data.region Region code for tenant context
|
|
1451
|
-
* @returns CommodityResponseDto Commodity retrieved successfully
|
|
1517
|
+
* Get asset and liability summary for current user
|
|
1518
|
+
* @returns unknown Summary retrieved successfully
|
|
1452
1519
|
* @throws ApiError
|
|
1453
1520
|
*/
|
|
1454
|
-
public static
|
|
1455
|
-
data: CommodityControllerFindOneData
|
|
1456
|
-
): CancelablePromise<CommodityControllerFindOneResponse> {
|
|
1521
|
+
public static userControllerGetAssetLiabilitySummary(): CancelablePromise<UserControllerGetAssetLiabilitySummaryResponse> {
|
|
1457
1522
|
return __request(OpenAPI, {
|
|
1458
1523
|
method: 'GET',
|
|
1459
|
-
url: '/api/v1/
|
|
1460
|
-
path: {
|
|
1461
|
-
symbol: data.symbol,
|
|
1462
|
-
region: data.region
|
|
1463
|
-
},
|
|
1464
|
-
errors: {
|
|
1465
|
-
404: 'Commodity not found'
|
|
1466
|
-
}
|
|
1524
|
+
url: '/api/v1/users/asset-liability-summary'
|
|
1467
1525
|
});
|
|
1468
1526
|
}
|
|
1527
|
+
}
|
|
1469
1528
|
|
|
1529
|
+
export class PropertiesService {
|
|
1470
1530
|
/**
|
|
1471
|
-
*
|
|
1472
|
-
*
|
|
1473
|
-
* @param data The data for the request.
|
|
1474
|
-
* @param data.symbol Commodity symbol
|
|
1475
|
-
* @param data.region Region code for tenant context
|
|
1476
|
-
* @param data.requestBody
|
|
1477
|
-
* @returns CommodityResponseDto Commodity updated successfully
|
|
1531
|
+
* Get all system properties
|
|
1532
|
+
* @returns unknown Properties retrieved successfully
|
|
1478
1533
|
* @throws ApiError
|
|
1479
1534
|
*/
|
|
1480
|
-
public static
|
|
1481
|
-
data: CommodityControllerUpdateData
|
|
1482
|
-
): CancelablePromise<CommodityControllerUpdateResponse> {
|
|
1535
|
+
public static propertyControllerGetAll(): CancelablePromise<PropertyControllerGetAllResponse> {
|
|
1483
1536
|
return __request(OpenAPI, {
|
|
1484
|
-
method: '
|
|
1485
|
-
url: '/api/v1/
|
|
1486
|
-
path: {
|
|
1487
|
-
symbol: data.symbol,
|
|
1488
|
-
region: data.region
|
|
1489
|
-
},
|
|
1490
|
-
body: data.requestBody,
|
|
1491
|
-
mediaType: 'application/json',
|
|
1537
|
+
method: 'GET',
|
|
1538
|
+
url: '/api/v1/admin/properties',
|
|
1492
1539
|
errors: {
|
|
1493
|
-
|
|
1494
|
-
|
|
1540
|
+
401: 'Unauthorized',
|
|
1541
|
+
403: 'Forbidden - insufficient permissions'
|
|
1495
1542
|
}
|
|
1496
1543
|
});
|
|
1497
1544
|
}
|
|
1498
1545
|
|
|
1499
1546
|
/**
|
|
1500
|
-
*
|
|
1501
|
-
* Deletes a commodity definition
|
|
1547
|
+
* Get property by key
|
|
1502
1548
|
* @param data The data for the request.
|
|
1503
|
-
* @param data.
|
|
1504
|
-
* @
|
|
1505
|
-
* @returns void Commodity deleted successfully
|
|
1549
|
+
* @param data.key Property key
|
|
1550
|
+
* @returns unknown Property retrieved successfully
|
|
1506
1551
|
* @throws ApiError
|
|
1507
1552
|
*/
|
|
1508
|
-
public static
|
|
1509
|
-
data:
|
|
1510
|
-
): CancelablePromise<
|
|
1553
|
+
public static propertyControllerGetByKey(
|
|
1554
|
+
data: PropertyControllerGetByKeyData
|
|
1555
|
+
): CancelablePromise<PropertyControllerGetByKeyResponse> {
|
|
1511
1556
|
return __request(OpenAPI, {
|
|
1512
|
-
method: '
|
|
1513
|
-
url: '/api/v1/
|
|
1557
|
+
method: 'GET',
|
|
1558
|
+
url: '/api/v1/admin/properties/{key}',
|
|
1514
1559
|
path: {
|
|
1515
|
-
|
|
1516
|
-
region: data.region
|
|
1560
|
+
key: data.key
|
|
1517
1561
|
},
|
|
1518
1562
|
errors: {
|
|
1519
|
-
|
|
1563
|
+
401: 'Unauthorized',
|
|
1564
|
+
403: 'Forbidden - insufficient permissions',
|
|
1565
|
+
404: 'Property not found'
|
|
1520
1566
|
}
|
|
1521
1567
|
});
|
|
1522
1568
|
}
|
|
1523
1569
|
|
|
1524
1570
|
/**
|
|
1525
|
-
*
|
|
1526
|
-
* Gets existing commodity or creates it with automatic initialization from OpenBB
|
|
1571
|
+
* Update a system property
|
|
1527
1572
|
* @param data The data for the request.
|
|
1528
|
-
* @param data.
|
|
1529
|
-
* @param data.
|
|
1530
|
-
* @returns
|
|
1573
|
+
* @param data.key Property key
|
|
1574
|
+
* @param data.requestBody
|
|
1575
|
+
* @returns unknown Property updated successfully
|
|
1531
1576
|
* @throws ApiError
|
|
1532
1577
|
*/
|
|
1533
|
-
public static
|
|
1534
|
-
data:
|
|
1535
|
-
): CancelablePromise<
|
|
1578
|
+
public static propertyControllerUpdate(
|
|
1579
|
+
data: PropertyControllerUpdateData
|
|
1580
|
+
): CancelablePromise<PropertyControllerUpdateResponse> {
|
|
1536
1581
|
return __request(OpenAPI, {
|
|
1537
|
-
method: '
|
|
1538
|
-
url: '/api/v1/
|
|
1582
|
+
method: 'PUT',
|
|
1583
|
+
url: '/api/v1/admin/properties/{key}',
|
|
1539
1584
|
path: {
|
|
1540
|
-
|
|
1541
|
-
|
|
1585
|
+
key: data.key
|
|
1586
|
+
},
|
|
1587
|
+
body: data.requestBody,
|
|
1588
|
+
mediaType: 'application/json',
|
|
1589
|
+
errors: {
|
|
1590
|
+
401: 'Unauthorized',
|
|
1591
|
+
403: 'Forbidden - insufficient permissions'
|
|
1542
1592
|
}
|
|
1543
1593
|
});
|
|
1544
1594
|
}
|
|
1545
1595
|
|
|
1546
1596
|
/**
|
|
1547
|
-
*
|
|
1548
|
-
* Creates multiple commodities from a list of symbols, useful for initialization
|
|
1597
|
+
* Delete a system property
|
|
1549
1598
|
* @param data The data for the request.
|
|
1550
|
-
* @param data.
|
|
1551
|
-
* @returns
|
|
1599
|
+
* @param data.key Property key
|
|
1600
|
+
* @returns void Property deleted successfully
|
|
1552
1601
|
* @throws ApiError
|
|
1553
1602
|
*/
|
|
1554
|
-
public static
|
|
1555
|
-
data:
|
|
1556
|
-
): CancelablePromise<
|
|
1603
|
+
public static propertyControllerDelete(
|
|
1604
|
+
data: PropertyControllerDeleteData
|
|
1605
|
+
): CancelablePromise<PropertyControllerDeleteResponse> {
|
|
1557
1606
|
return __request(OpenAPI, {
|
|
1558
|
-
method: '
|
|
1559
|
-
url: '/api/v1/{
|
|
1607
|
+
method: 'DELETE',
|
|
1608
|
+
url: '/api/v1/admin/properties/{key}',
|
|
1560
1609
|
path: {
|
|
1561
|
-
|
|
1610
|
+
key: data.key
|
|
1611
|
+
},
|
|
1612
|
+
errors: {
|
|
1613
|
+
401: 'Unauthorized',
|
|
1614
|
+
403: 'Forbidden - insufficient permissions',
|
|
1615
|
+
404: 'Property not found'
|
|
1562
1616
|
}
|
|
1563
1617
|
});
|
|
1564
1618
|
}
|
|
1565
1619
|
}
|
|
1566
1620
|
|
|
1567
|
-
export class
|
|
1621
|
+
export class BeanPayeesService {
|
|
1568
1622
|
/**
|
|
1569
|
-
* Create a new
|
|
1570
|
-
* Creates a new
|
|
1623
|
+
* Create a new payee
|
|
1624
|
+
* Creates a new payee mapping for the authenticated user. The payee name must be unique within the user's account.
|
|
1571
1625
|
* @param data The data for the request.
|
|
1572
|
-
* @param data.region Region code for tenant context
|
|
1573
1626
|
* @param data.requestBody
|
|
1574
|
-
* @returns
|
|
1627
|
+
* @returns PayeeResponseDto Payee created successfully
|
|
1575
1628
|
* @throws ApiError
|
|
1576
1629
|
*/
|
|
1577
|
-
public static
|
|
1578
|
-
data:
|
|
1579
|
-
): CancelablePromise<
|
|
1630
|
+
public static payeeControllerCreate(
|
|
1631
|
+
data: PayeeControllerCreateData
|
|
1632
|
+
): CancelablePromise<PayeeControllerCreateResponse> {
|
|
1580
1633
|
return __request(OpenAPI, {
|
|
1581
1634
|
method: 'POST',
|
|
1582
|
-
url: '/api/v1/
|
|
1583
|
-
path: {
|
|
1584
|
-
region: data.region
|
|
1585
|
-
},
|
|
1635
|
+
url: '/api/v1/bean/payees',
|
|
1586
1636
|
body: data.requestBody,
|
|
1587
1637
|
mediaType: 'application/json',
|
|
1588
1638
|
errors: {
|
|
1589
|
-
|
|
1590
|
-
409: '
|
|
1639
|
+
400: 'Invalid input data',
|
|
1640
|
+
409: 'Payee already exists'
|
|
1591
1641
|
}
|
|
1592
1642
|
});
|
|
1593
1643
|
}
|
|
1594
1644
|
|
|
1595
1645
|
/**
|
|
1596
|
-
* List user
|
|
1597
|
-
* Returns all
|
|
1646
|
+
* List user payees
|
|
1647
|
+
* Returns all payee mappings for the authenticated user with optional filtering
|
|
1598
1648
|
* @param data The data for the request.
|
|
1599
|
-
* @param data.
|
|
1600
|
-
* @param data.
|
|
1601
|
-
* @param data.
|
|
1602
|
-
* @param data.
|
|
1603
|
-
* @param data.
|
|
1604
|
-
* @
|
|
1605
|
-
* @param data.page Page number for pagination (default: 1)
|
|
1606
|
-
* @param data.limit Number of items per page (default: 20, max: 100)
|
|
1607
|
-
* @returns PriceListResponseDto Prices retrieved successfully
|
|
1649
|
+
* @param data.search Search term for payee name (partial match, case-insensitive). Useful for autocomplete.
|
|
1650
|
+
* @param data.payee Filter by exact payee name match
|
|
1651
|
+
* @param data.category Filter by custom category
|
|
1652
|
+
* @param data.tag Filter by custom tag (returns payees that have this tag)
|
|
1653
|
+
* @param data.isActive Filter by active status. Defaults to true (show only active payees).
|
|
1654
|
+
* @returns PayeeListResponseDto Payees retrieved successfully
|
|
1608
1655
|
* @throws ApiError
|
|
1609
1656
|
*/
|
|
1610
|
-
public static
|
|
1611
|
-
data:
|
|
1612
|
-
): CancelablePromise<
|
|
1657
|
+
public static payeeControllerFindAll(
|
|
1658
|
+
data: PayeeControllerFindAllData = {}
|
|
1659
|
+
): CancelablePromise<PayeeControllerFindAllResponse> {
|
|
1613
1660
|
return __request(OpenAPI, {
|
|
1614
1661
|
method: 'GET',
|
|
1615
|
-
url: '/api/v1/
|
|
1616
|
-
path: {
|
|
1617
|
-
region: data.region
|
|
1618
|
-
},
|
|
1662
|
+
url: '/api/v1/bean/payees',
|
|
1619
1663
|
query: {
|
|
1620
|
-
currency: data.currency,
|
|
1621
|
-
quoteCurrency: data.quoteCurrency,
|
|
1622
|
-
dateFrom: data.dateFrom,
|
|
1623
|
-
dateTo: data.dateTo,
|
|
1624
1664
|
search: data.search,
|
|
1625
|
-
|
|
1626
|
-
|
|
1665
|
+
payee: data.payee,
|
|
1666
|
+
category: data.category,
|
|
1667
|
+
tag: data.tag,
|
|
1668
|
+
isActive: data.isActive
|
|
1627
1669
|
}
|
|
1628
1670
|
});
|
|
1629
1671
|
}
|
|
1630
1672
|
|
|
1631
1673
|
/**
|
|
1632
|
-
* Get
|
|
1633
|
-
* Returns
|
|
1674
|
+
* Get payee autocomplete suggestions
|
|
1675
|
+
* Returns active payee names matching the query, sorted by recent usage. Used for transaction input autocomplete.
|
|
1634
1676
|
* @param data The data for the request.
|
|
1635
|
-
* @param data.
|
|
1636
|
-
* @param data.
|
|
1637
|
-
* @returns
|
|
1677
|
+
* @param data.q Search query for payee name (partial match, case-insensitive)
|
|
1678
|
+
* @param data.limit Maximum number of suggestions
|
|
1679
|
+
* @returns PayeeAutocompleteResponseDto Autocomplete suggestions retrieved successfully
|
|
1638
1680
|
* @throws ApiError
|
|
1639
1681
|
*/
|
|
1640
|
-
public static
|
|
1641
|
-
data:
|
|
1642
|
-
): CancelablePromise<
|
|
1682
|
+
public static payeeControllerAutocomplete(
|
|
1683
|
+
data: PayeeControllerAutocompleteData
|
|
1684
|
+
): CancelablePromise<PayeeControllerAutocompleteResponse> {
|
|
1643
1685
|
return __request(OpenAPI, {
|
|
1644
1686
|
method: 'GET',
|
|
1645
|
-
url: '/api/v1/
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
},
|
|
1650
|
-
errors: {
|
|
1651
|
-
404: 'Price not found'
|
|
1687
|
+
url: '/api/v1/bean/payees/autocomplete',
|
|
1688
|
+
query: {
|
|
1689
|
+
q: data.q,
|
|
1690
|
+
limit: data.limit
|
|
1652
1691
|
}
|
|
1653
1692
|
});
|
|
1654
1693
|
}
|
|
1655
1694
|
|
|
1656
1695
|
/**
|
|
1657
|
-
*
|
|
1658
|
-
*
|
|
1696
|
+
* Get top payees by usage
|
|
1697
|
+
* Returns the most frequently used payees, sorted by use count. Used for statistics and analytics.
|
|
1659
1698
|
* @param data The data for the request.
|
|
1660
|
-
* @param data.
|
|
1661
|
-
* @
|
|
1662
|
-
* @param data.requestBody
|
|
1663
|
-
* @returns PriceResponseDto Price updated successfully
|
|
1699
|
+
* @param data.limit Maximum number of results
|
|
1700
|
+
* @returns PayeeStatsResponseDto Top payees retrieved successfully
|
|
1664
1701
|
* @throws ApiError
|
|
1665
1702
|
*/
|
|
1666
|
-
public static
|
|
1667
|
-
data:
|
|
1668
|
-
): CancelablePromise<
|
|
1703
|
+
public static payeeControllerGetTopPayees(
|
|
1704
|
+
data: PayeeControllerGetTopPayeesData = {}
|
|
1705
|
+
): CancelablePromise<PayeeControllerGetTopPayeesResponse> {
|
|
1669
1706
|
return __request(OpenAPI, {
|
|
1670
|
-
method: '
|
|
1671
|
-
url: '/api/v1/
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
region: data.region
|
|
1675
|
-
},
|
|
1676
|
-
body: data.requestBody,
|
|
1677
|
-
mediaType: 'application/json',
|
|
1678
|
-
errors: {
|
|
1679
|
-
404: 'Price not found',
|
|
1680
|
-
409: 'Updated price conflicts with existing price'
|
|
1707
|
+
method: 'GET',
|
|
1708
|
+
url: '/api/v1/bean/payees/top',
|
|
1709
|
+
query: {
|
|
1710
|
+
limit: data.limit
|
|
1681
1711
|
}
|
|
1682
1712
|
});
|
|
1683
1713
|
}
|
|
1684
1714
|
|
|
1685
1715
|
/**
|
|
1686
|
-
*
|
|
1687
|
-
*
|
|
1716
|
+
* Get payee by ID
|
|
1717
|
+
* Returns a specific payee mapping by its UUID
|
|
1688
1718
|
* @param data The data for the request.
|
|
1689
|
-
* @param data.id
|
|
1690
|
-
* @
|
|
1691
|
-
* @returns void Price deleted successfully
|
|
1719
|
+
* @param data.id Payee UUID
|
|
1720
|
+
* @returns PayeeResponseDto Payee retrieved successfully
|
|
1692
1721
|
* @throws ApiError
|
|
1693
1722
|
*/
|
|
1694
|
-
public static
|
|
1695
|
-
data:
|
|
1696
|
-
): CancelablePromise<
|
|
1723
|
+
public static payeeControllerFindOne(
|
|
1724
|
+
data: PayeeControllerFindOneData
|
|
1725
|
+
): CancelablePromise<PayeeControllerFindOneResponse> {
|
|
1697
1726
|
return __request(OpenAPI, {
|
|
1698
|
-
method: '
|
|
1699
|
-
url: '/api/v1/
|
|
1727
|
+
method: 'GET',
|
|
1728
|
+
url: '/api/v1/bean/payees/{id}',
|
|
1700
1729
|
path: {
|
|
1701
|
-
id: data.id
|
|
1702
|
-
region: data.region
|
|
1730
|
+
id: data.id
|
|
1703
1731
|
},
|
|
1704
1732
|
errors: {
|
|
1705
|
-
|
|
1733
|
+
403: 'Payee belongs to another user',
|
|
1734
|
+
404: 'Payee not found'
|
|
1706
1735
|
}
|
|
1707
1736
|
});
|
|
1708
1737
|
}
|
|
1709
1738
|
|
|
1710
1739
|
/**
|
|
1711
|
-
*
|
|
1712
|
-
*
|
|
1740
|
+
* Update payee
|
|
1741
|
+
* Updates a payee mapping. The payee name cannot be changed after creation.
|
|
1713
1742
|
* @param data The data for the request.
|
|
1714
|
-
* @param data.
|
|
1743
|
+
* @param data.id Payee UUID
|
|
1715
1744
|
* @param data.requestBody
|
|
1716
|
-
* @returns
|
|
1745
|
+
* @returns PayeeResponseDto Payee updated successfully
|
|
1717
1746
|
* @throws ApiError
|
|
1718
1747
|
*/
|
|
1719
|
-
public static
|
|
1720
|
-
data:
|
|
1721
|
-
): CancelablePromise<
|
|
1748
|
+
public static payeeControllerUpdate(
|
|
1749
|
+
data: PayeeControllerUpdateData
|
|
1750
|
+
): CancelablePromise<PayeeControllerUpdateResponse> {
|
|
1722
1751
|
return __request(OpenAPI, {
|
|
1723
|
-
method: '
|
|
1724
|
-
url: '/api/v1/
|
|
1752
|
+
method: 'PUT',
|
|
1753
|
+
url: '/api/v1/bean/payees/{id}',
|
|
1725
1754
|
path: {
|
|
1726
|
-
|
|
1755
|
+
id: data.id
|
|
1727
1756
|
},
|
|
1728
1757
|
body: data.requestBody,
|
|
1729
|
-
mediaType: 'application/json'
|
|
1758
|
+
mediaType: 'application/json',
|
|
1759
|
+
errors: {
|
|
1760
|
+
400: 'Invalid input data',
|
|
1761
|
+
404: 'Payee not found'
|
|
1762
|
+
}
|
|
1730
1763
|
});
|
|
1731
1764
|
}
|
|
1732
|
-
}
|
|
1733
1765
|
|
|
1734
|
-
export class RecurringRulesService {
|
|
1735
1766
|
/**
|
|
1736
|
-
*
|
|
1737
|
-
*
|
|
1767
|
+
* Delete payee
|
|
1768
|
+
* Soft deletes a payee by marking it as inactive. Inactive payees will not appear in autocomplete suggestions.
|
|
1738
1769
|
* @param data The data for the request.
|
|
1739
|
-
* @param data.
|
|
1740
|
-
* @
|
|
1741
|
-
* @returns RecurringRuleResponseDto Rule created successfully
|
|
1770
|
+
* @param data.id Payee UUID
|
|
1771
|
+
* @returns void Payee deleted successfully
|
|
1742
1772
|
* @throws ApiError
|
|
1743
1773
|
*/
|
|
1744
|
-
public static
|
|
1745
|
-
data:
|
|
1746
|
-
): CancelablePromise<
|
|
1774
|
+
public static payeeControllerDelete(
|
|
1775
|
+
data: PayeeControllerDeleteData
|
|
1776
|
+
): CancelablePromise<PayeeControllerDeleteResponse> {
|
|
1747
1777
|
return __request(OpenAPI, {
|
|
1748
|
-
method: '
|
|
1749
|
-
url: '/api/v1/{
|
|
1778
|
+
method: 'DELETE',
|
|
1779
|
+
url: '/api/v1/bean/payees/{id}',
|
|
1750
1780
|
path: {
|
|
1751
|
-
|
|
1781
|
+
id: data.id
|
|
1752
1782
|
},
|
|
1753
|
-
body: data.requestBody,
|
|
1754
|
-
mediaType: 'application/json',
|
|
1755
1783
|
errors: {
|
|
1756
|
-
|
|
1757
|
-
409: 'Rule with same name already exists'
|
|
1784
|
+
404: 'Payee not found'
|
|
1758
1785
|
}
|
|
1759
1786
|
});
|
|
1760
1787
|
}
|
|
1788
|
+
}
|
|
1761
1789
|
|
|
1790
|
+
export class AdminPayeeProfilesService {
|
|
1762
1791
|
/**
|
|
1763
|
-
*
|
|
1764
|
-
*
|
|
1792
|
+
* Create payee profile (Admin only)
|
|
1793
|
+
* Creates a new global payee profile. The canonical name must be unique (case-insensitive).
|
|
1765
1794
|
* @param data The data for the request.
|
|
1766
|
-
* @param data.
|
|
1767
|
-
* @
|
|
1768
|
-
* @param data.frequency Filter by frequency (WEEKLY, MONTHLY, etc.)
|
|
1769
|
-
* @param data.hasAutoCreate Filter by autoCreate enabled
|
|
1770
|
-
* @returns RecurringRuleResponseDto Rules retrieved successfully
|
|
1795
|
+
* @param data.requestBody
|
|
1796
|
+
* @returns PayeeProfileResponseDto Payee profile created successfully
|
|
1771
1797
|
* @throws ApiError
|
|
1772
1798
|
*/
|
|
1773
|
-
public static
|
|
1774
|
-
data:
|
|
1775
|
-
): CancelablePromise<
|
|
1799
|
+
public static payeeProfileAdminControllerCreate(
|
|
1800
|
+
data: PayeeProfileAdminControllerCreateData
|
|
1801
|
+
): CancelablePromise<PayeeProfileAdminControllerCreateResponse> {
|
|
1776
1802
|
return __request(OpenAPI, {
|
|
1777
|
-
method: '
|
|
1778
|
-
url: '/api/v1/
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
hasAutoCreate: data.hasAutoCreate
|
|
1803
|
+
method: 'POST',
|
|
1804
|
+
url: '/api/v1/admin/payee-profiles',
|
|
1805
|
+
body: data.requestBody,
|
|
1806
|
+
mediaType: 'application/json',
|
|
1807
|
+
errors: {
|
|
1808
|
+
400: 'Validation failed',
|
|
1809
|
+
403: 'Admin access required',
|
|
1810
|
+
409: 'Payee profile already exists'
|
|
1786
1811
|
}
|
|
1787
1812
|
});
|
|
1788
1813
|
}
|
|
1789
1814
|
|
|
1790
1815
|
/**
|
|
1791
|
-
*
|
|
1792
|
-
*
|
|
1816
|
+
* List payee profiles (Admin only)
|
|
1817
|
+
* Returns all payee profiles with optional filtering by category, country, verification status, etc.
|
|
1793
1818
|
* @param data The data for the request.
|
|
1794
|
-
* @param data.
|
|
1795
|
-
* @param data.
|
|
1796
|
-
* @param data.
|
|
1797
|
-
* @
|
|
1819
|
+
* @param data.search Search term for canonical name and aliases (case-insensitive)
|
|
1820
|
+
* @param data.category Filter by category
|
|
1821
|
+
* @param data.country Filter by country (ISO 3166-1 alpha-2)
|
|
1822
|
+
* @param data.isActive Filter by active status (default: true - show only active)
|
|
1823
|
+
* @param data.verified Filter by verification status. true = verified only, false = unverified only
|
|
1824
|
+
* @param data.dataSource Filter by data source
|
|
1825
|
+
* @returns PayeeProfileListResponseDto Payee profiles retrieved successfully
|
|
1798
1826
|
* @throws ApiError
|
|
1799
1827
|
*/
|
|
1800
|
-
public static
|
|
1801
|
-
data:
|
|
1802
|
-
): CancelablePromise<
|
|
1828
|
+
public static payeeProfileAdminControllerFindAll(
|
|
1829
|
+
data: PayeeProfileAdminControllerFindAllData = {}
|
|
1830
|
+
): CancelablePromise<PayeeProfileAdminControllerFindAllResponse> {
|
|
1803
1831
|
return __request(OpenAPI, {
|
|
1804
|
-
method: '
|
|
1805
|
-
url: '/api/v1/
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1832
|
+
method: 'GET',
|
|
1833
|
+
url: '/api/v1/admin/payee-profiles',
|
|
1834
|
+
query: {
|
|
1835
|
+
search: data.search,
|
|
1836
|
+
category: data.category,
|
|
1837
|
+
country: data.country,
|
|
1838
|
+
isActive: data.isActive,
|
|
1839
|
+
verified: data.verified,
|
|
1840
|
+
dataSource: data.dataSource
|
|
1809
1841
|
},
|
|
1810
|
-
body: data.requestBody,
|
|
1811
|
-
mediaType: 'application/json',
|
|
1812
1842
|
errors: {
|
|
1813
|
-
|
|
1814
|
-
409: 'Rule with same name already exists or transaction already linked'
|
|
1843
|
+
403: 'Admin access required'
|
|
1815
1844
|
}
|
|
1816
1845
|
});
|
|
1817
1846
|
}
|
|
1818
1847
|
|
|
1819
1848
|
/**
|
|
1820
|
-
* Get
|
|
1821
|
-
* Returns a
|
|
1849
|
+
* Get payee profile by ID (Admin only)
|
|
1850
|
+
* Returns a single payee profile by its ID.
|
|
1822
1851
|
* @param data The data for the request.
|
|
1823
|
-
* @param data.id
|
|
1824
|
-
* @
|
|
1825
|
-
* @returns RecurringRuleResponseDto Rule retrieved successfully
|
|
1852
|
+
* @param data.id Payee profile ID (UUID)
|
|
1853
|
+
* @returns PayeeProfileResponseDto Payee profile retrieved successfully
|
|
1826
1854
|
* @throws ApiError
|
|
1827
1855
|
*/
|
|
1828
|
-
public static
|
|
1829
|
-
data:
|
|
1830
|
-
): CancelablePromise<
|
|
1856
|
+
public static payeeProfileAdminControllerFindOne(
|
|
1857
|
+
data: PayeeProfileAdminControllerFindOneData
|
|
1858
|
+
): CancelablePromise<PayeeProfileAdminControllerFindOneResponse> {
|
|
1831
1859
|
return __request(OpenAPI, {
|
|
1832
1860
|
method: 'GET',
|
|
1833
|
-
url: '/api/v1/
|
|
1861
|
+
url: '/api/v1/admin/payee-profiles/{id}',
|
|
1834
1862
|
path: {
|
|
1835
|
-
id: data.id
|
|
1836
|
-
region: data.region
|
|
1863
|
+
id: data.id
|
|
1837
1864
|
},
|
|
1838
1865
|
errors: {
|
|
1839
|
-
|
|
1866
|
+
403: 'Admin access required',
|
|
1867
|
+
404: 'Payee profile not found'
|
|
1840
1868
|
}
|
|
1841
1869
|
});
|
|
1842
1870
|
}
|
|
1843
1871
|
|
|
1844
1872
|
/**
|
|
1845
|
-
* Update
|
|
1846
|
-
* Updates an existing
|
|
1873
|
+
* Update payee profile (Admin only)
|
|
1874
|
+
* Updates an existing payee profile. The canonical name cannot be changed.
|
|
1847
1875
|
* @param data The data for the request.
|
|
1848
|
-
* @param data.id
|
|
1849
|
-
* @param data.region Region code for tenant context
|
|
1876
|
+
* @param data.id Payee profile ID (UUID)
|
|
1850
1877
|
* @param data.requestBody
|
|
1851
|
-
* @returns
|
|
1878
|
+
* @returns PayeeProfileResponseDto Payee profile updated successfully
|
|
1852
1879
|
* @throws ApiError
|
|
1853
1880
|
*/
|
|
1854
|
-
public static
|
|
1855
|
-
data:
|
|
1856
|
-
): CancelablePromise<
|
|
1881
|
+
public static payeeProfileAdminControllerUpdate(
|
|
1882
|
+
data: PayeeProfileAdminControllerUpdateData
|
|
1883
|
+
): CancelablePromise<PayeeProfileAdminControllerUpdateResponse> {
|
|
1857
1884
|
return __request(OpenAPI, {
|
|
1858
|
-
method: '
|
|
1859
|
-
url: '/api/v1/
|
|
1885
|
+
method: 'PUT',
|
|
1886
|
+
url: '/api/v1/admin/payee-profiles/{id}',
|
|
1860
1887
|
path: {
|
|
1861
|
-
id: data.id
|
|
1862
|
-
region: data.region
|
|
1888
|
+
id: data.id
|
|
1863
1889
|
},
|
|
1864
1890
|
body: data.requestBody,
|
|
1865
1891
|
mediaType: 'application/json',
|
|
1866
1892
|
errors: {
|
|
1867
|
-
|
|
1868
|
-
404: '
|
|
1893
|
+
403: 'Admin access required',
|
|
1894
|
+
404: 'Payee profile not found'
|
|
1869
1895
|
}
|
|
1870
1896
|
});
|
|
1871
1897
|
}
|
|
1872
1898
|
|
|
1873
1899
|
/**
|
|
1874
|
-
*
|
|
1875
|
-
*
|
|
1900
|
+
* Soft delete payee profile (Admin only)
|
|
1901
|
+
* Marks a payee profile as inactive (soft delete). The profile cannot be deleted if it is referenced by user payees.
|
|
1876
1902
|
* @param data The data for the request.
|
|
1877
|
-
* @param data.id
|
|
1878
|
-
* @
|
|
1879
|
-
* @returns void Rule deleted successfully
|
|
1903
|
+
* @param data.id Payee profile ID (UUID)
|
|
1904
|
+
* @returns void Payee profile deleted successfully
|
|
1880
1905
|
* @throws ApiError
|
|
1881
1906
|
*/
|
|
1882
|
-
public static
|
|
1883
|
-
data:
|
|
1884
|
-
): CancelablePromise<
|
|
1907
|
+
public static payeeProfileAdminControllerDelete(
|
|
1908
|
+
data: PayeeProfileAdminControllerDeleteData
|
|
1909
|
+
): CancelablePromise<PayeeProfileAdminControllerDeleteResponse> {
|
|
1885
1910
|
return __request(OpenAPI, {
|
|
1886
1911
|
method: 'DELETE',
|
|
1887
|
-
url: '/api/v1/
|
|
1912
|
+
url: '/api/v1/admin/payee-profiles/{id}',
|
|
1888
1913
|
path: {
|
|
1889
|
-
id: data.id
|
|
1890
|
-
region: data.region
|
|
1914
|
+
id: data.id
|
|
1891
1915
|
},
|
|
1892
1916
|
errors: {
|
|
1893
|
-
|
|
1917
|
+
403: 'Admin access required',
|
|
1918
|
+
404: 'Payee profile not found',
|
|
1919
|
+
409: 'Payee profile is in use and cannot be deleted'
|
|
1894
1920
|
}
|
|
1895
1921
|
});
|
|
1896
1922
|
}
|
|
1897
1923
|
|
|
1898
1924
|
/**
|
|
1899
|
-
*
|
|
1900
|
-
*
|
|
1925
|
+
* Verify payee profile (Admin only)
|
|
1926
|
+
* Marks a payee profile as verified by setting verifiedAt to current timestamp.
|
|
1901
1927
|
* @param data The data for the request.
|
|
1902
|
-
* @param data.id
|
|
1903
|
-
* @
|
|
1904
|
-
* @returns RecurringRuleWithStatsResponseDto Rule with stats retrieved successfully
|
|
1928
|
+
* @param data.id Payee profile ID (UUID)
|
|
1929
|
+
* @returns PayeeProfileResponseDto Payee profile verified successfully
|
|
1905
1930
|
* @throws ApiError
|
|
1906
1931
|
*/
|
|
1907
|
-
public static
|
|
1908
|
-
data:
|
|
1909
|
-
): CancelablePromise<
|
|
1932
|
+
public static payeeProfileAdminControllerVerify(
|
|
1933
|
+
data: PayeeProfileAdminControllerVerifyData
|
|
1934
|
+
): CancelablePromise<PayeeProfileAdminControllerVerifyResponse> {
|
|
1910
1935
|
return __request(OpenAPI, {
|
|
1911
|
-
method: '
|
|
1912
|
-
url: '/api/v1/
|
|
1936
|
+
method: 'POST',
|
|
1937
|
+
url: '/api/v1/admin/payee-profiles/{id}/verify',
|
|
1913
1938
|
path: {
|
|
1914
|
-
id: data.id
|
|
1915
|
-
region: data.region
|
|
1939
|
+
id: data.id
|
|
1916
1940
|
},
|
|
1917
1941
|
errors: {
|
|
1918
|
-
|
|
1942
|
+
403: 'Admin access required',
|
|
1943
|
+
404: 'Payee profile not found'
|
|
1919
1944
|
}
|
|
1920
1945
|
});
|
|
1921
1946
|
}
|
|
1922
|
-
}
|
|
1923
1947
|
|
|
1924
|
-
export class ExpectedTransactionsService {
|
|
1925
1948
|
/**
|
|
1926
|
-
*
|
|
1927
|
-
*
|
|
1949
|
+
* Unverify payee profile (Admin only)
|
|
1950
|
+
* Removes verification status by setting verifiedAt to null.
|
|
1928
1951
|
* @param data The data for the request.
|
|
1929
|
-
* @param data.
|
|
1930
|
-
* @
|
|
1931
|
-
* @param data.status Filter by status (PENDING, COMPLETED, SKIPPED)
|
|
1932
|
-
* @param data.fromDate Filter by date range start (YYYY-MM-DD)
|
|
1933
|
-
* @param data.toDate Filter by date range end (YYYY-MM-DD)
|
|
1934
|
-
* @returns ExpectedTransactionListResponseDto Expected transactions retrieved successfully
|
|
1952
|
+
* @param data.id Payee profile ID (UUID)
|
|
1953
|
+
* @returns void Payee profile unverified successfully
|
|
1935
1954
|
* @throws ApiError
|
|
1936
1955
|
*/
|
|
1937
|
-
public static
|
|
1938
|
-
data:
|
|
1939
|
-
): CancelablePromise<
|
|
1956
|
+
public static payeeProfileAdminControllerUnverify(
|
|
1957
|
+
data: PayeeProfileAdminControllerUnverifyData
|
|
1958
|
+
): CancelablePromise<PayeeProfileAdminControllerUnverifyResponse> {
|
|
1940
1959
|
return __request(OpenAPI, {
|
|
1941
|
-
method: '
|
|
1942
|
-
url: '/api/v1/{
|
|
1960
|
+
method: 'DELETE',
|
|
1961
|
+
url: '/api/v1/admin/payee-profiles/{id}/verify',
|
|
1943
1962
|
path: {
|
|
1944
|
-
|
|
1963
|
+
id: data.id
|
|
1945
1964
|
},
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
fromDate: data.fromDate,
|
|
1950
|
-
toDate: data.toDate
|
|
1965
|
+
errors: {
|
|
1966
|
+
403: 'Admin access required',
|
|
1967
|
+
404: 'Payee profile not found'
|
|
1951
1968
|
}
|
|
1952
1969
|
});
|
|
1953
1970
|
}
|
|
1971
|
+
}
|
|
1954
1972
|
|
|
1973
|
+
export class PayeeProfilesService {
|
|
1955
1974
|
/**
|
|
1956
|
-
* List
|
|
1957
|
-
* Returns
|
|
1958
|
-
* @
|
|
1959
|
-
* @param data.region Region code for tenant context
|
|
1960
|
-
* @returns ExpectedTransactionListResponseDto Overdue transactions retrieved successfully
|
|
1975
|
+
* List active payee profiles (directory dump)
|
|
1976
|
+
* Returns the full active PayeeProfile set as a trimmed projection for client-side dictionary caching. Aliases are verbatim as stored; clients normalize on their side.
|
|
1977
|
+
* @returns PayeeProfileDirectoryResponseDto Active payee profiles
|
|
1961
1978
|
* @throws ApiError
|
|
1962
1979
|
*/
|
|
1963
|
-
public static
|
|
1964
|
-
data: ExpectedTransactionControllerFindOverdueData
|
|
1965
|
-
): CancelablePromise<ExpectedTransactionControllerFindOverdueResponse> {
|
|
1980
|
+
public static payeeProfileControllerListActive(): CancelablePromise<PayeeProfileControllerListActiveResponse> {
|
|
1966
1981
|
return __request(OpenAPI, {
|
|
1967
1982
|
method: 'GET',
|
|
1968
|
-
url: '/api/v1/
|
|
1969
|
-
|
|
1970
|
-
|
|
1983
|
+
url: '/api/v1/bean/payee-profiles',
|
|
1984
|
+
errors: {
|
|
1985
|
+
401: 'Missing or invalid token'
|
|
1971
1986
|
}
|
|
1972
1987
|
});
|
|
1973
1988
|
}
|
|
1989
|
+
}
|
|
1974
1990
|
|
|
1991
|
+
export class BeanCommoditiesService {
|
|
1975
1992
|
/**
|
|
1976
|
-
*
|
|
1977
|
-
*
|
|
1993
|
+
* Create a new commodity
|
|
1994
|
+
* Creates a new commodity definition for the authenticated user
|
|
1978
1995
|
* @param data The data for the request.
|
|
1979
|
-
* @param data.id Expected transaction ID
|
|
1980
1996
|
* @param data.region Region code for tenant context
|
|
1981
|
-
* @
|
|
1997
|
+
* @param data.requestBody
|
|
1998
|
+
* @returns CommodityResponseDto Commodity created successfully
|
|
1982
1999
|
* @throws ApiError
|
|
1983
2000
|
*/
|
|
1984
|
-
public static
|
|
1985
|
-
data:
|
|
1986
|
-
): CancelablePromise<
|
|
2001
|
+
public static commodityControllerCreate(
|
|
2002
|
+
data: CommodityControllerCreateData
|
|
2003
|
+
): CancelablePromise<CommodityControllerCreateResponse> {
|
|
1987
2004
|
return __request(OpenAPI, {
|
|
1988
|
-
method: '
|
|
1989
|
-
url: '/api/v1/{region}/bean/
|
|
2005
|
+
method: 'POST',
|
|
2006
|
+
url: '/api/v1/{region}/bean/commodities',
|
|
1990
2007
|
path: {
|
|
1991
|
-
id: data.id,
|
|
1992
2008
|
region: data.region
|
|
1993
2009
|
},
|
|
2010
|
+
body: data.requestBody,
|
|
2011
|
+
mediaType: 'application/json',
|
|
1994
2012
|
errors: {
|
|
1995
|
-
|
|
2013
|
+
400: 'Invalid input data',
|
|
2014
|
+
409: 'Commodity already exists'
|
|
1996
2015
|
}
|
|
1997
2016
|
});
|
|
1998
2017
|
}
|
|
1999
2018
|
|
|
2000
2019
|
/**
|
|
2001
|
-
*
|
|
2002
|
-
*
|
|
2020
|
+
* List user commodities
|
|
2021
|
+
* Returns all commodity definitions for the authenticated user with optional filtering
|
|
2003
2022
|
* @param data The data for the request.
|
|
2004
|
-
* @param data.id Expected transaction ID
|
|
2005
2023
|
* @param data.region Region code for tenant context
|
|
2006
|
-
* @
|
|
2024
|
+
* @param data.search Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
|
|
2025
|
+
* @param data.symbol Filter by exact symbol match
|
|
2026
|
+
* @returns CommodityListResponseDto Commodities retrieved successfully
|
|
2007
2027
|
* @throws ApiError
|
|
2008
2028
|
*/
|
|
2009
|
-
public static
|
|
2010
|
-
data:
|
|
2011
|
-
): CancelablePromise<
|
|
2029
|
+
public static commodityControllerFindAll(
|
|
2030
|
+
data: CommodityControllerFindAllData
|
|
2031
|
+
): CancelablePromise<CommodityControllerFindAllResponse> {
|
|
2012
2032
|
return __request(OpenAPI, {
|
|
2013
|
-
method: '
|
|
2014
|
-
url: '/api/v1/{region}/bean/
|
|
2033
|
+
method: 'GET',
|
|
2034
|
+
url: '/api/v1/{region}/bean/commodities',
|
|
2015
2035
|
path: {
|
|
2016
|
-
id: data.id,
|
|
2017
2036
|
region: data.region
|
|
2018
2037
|
},
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2038
|
+
query: {
|
|
2039
|
+
search: data.search,
|
|
2040
|
+
symbol: data.symbol
|
|
2022
2041
|
}
|
|
2023
2042
|
});
|
|
2024
2043
|
}
|
|
2025
2044
|
|
|
2026
2045
|
/**
|
|
2027
|
-
*
|
|
2028
|
-
*
|
|
2046
|
+
* Get commodity by symbol
|
|
2047
|
+
* Returns a specific commodity definition by its symbol
|
|
2029
2048
|
* @param data The data for the request.
|
|
2030
|
-
* @param data.
|
|
2049
|
+
* @param data.symbol Commodity symbol
|
|
2031
2050
|
* @param data.region Region code for tenant context
|
|
2032
|
-
* @returns
|
|
2051
|
+
* @returns CommodityResponseDto Commodity retrieved successfully
|
|
2033
2052
|
* @throws ApiError
|
|
2034
2053
|
*/
|
|
2035
|
-
public static
|
|
2036
|
-
data:
|
|
2037
|
-
): CancelablePromise<
|
|
2054
|
+
public static commodityControllerFindOne(
|
|
2055
|
+
data: CommodityControllerFindOneData
|
|
2056
|
+
): CancelablePromise<CommodityControllerFindOneResponse> {
|
|
2038
2057
|
return __request(OpenAPI, {
|
|
2039
|
-
method: '
|
|
2040
|
-
url: '/api/v1/{region}/bean/
|
|
2058
|
+
method: 'GET',
|
|
2059
|
+
url: '/api/v1/{region}/bean/commodities/{symbol}',
|
|
2041
2060
|
path: {
|
|
2042
|
-
|
|
2061
|
+
symbol: data.symbol,
|
|
2043
2062
|
region: data.region
|
|
2044
2063
|
},
|
|
2045
2064
|
errors: {
|
|
2046
|
-
|
|
2047
|
-
404: 'Expected transaction not found'
|
|
2065
|
+
404: 'Commodity not found'
|
|
2048
2066
|
}
|
|
2049
2067
|
});
|
|
2050
2068
|
}
|
|
2051
2069
|
|
|
2052
2070
|
/**
|
|
2053
|
-
*
|
|
2054
|
-
*
|
|
2071
|
+
* Update commodity
|
|
2072
|
+
* Updates an existing commodity definition. Symbol cannot be changed.
|
|
2055
2073
|
* @param data The data for the request.
|
|
2056
|
-
* @param data.
|
|
2074
|
+
* @param data.symbol Commodity symbol
|
|
2057
2075
|
* @param data.region Region code for tenant context
|
|
2058
2076
|
* @param data.requestBody
|
|
2059
|
-
* @returns
|
|
2077
|
+
* @returns CommodityResponseDto Commodity updated successfully
|
|
2060
2078
|
* @throws ApiError
|
|
2061
2079
|
*/
|
|
2062
|
-
public static
|
|
2063
|
-
data:
|
|
2064
|
-
): CancelablePromise<
|
|
2080
|
+
public static commodityControllerUpdate(
|
|
2081
|
+
data: CommodityControllerUpdateData
|
|
2082
|
+
): CancelablePromise<CommodityControllerUpdateResponse> {
|
|
2065
2083
|
return __request(OpenAPI, {
|
|
2066
|
-
method: '
|
|
2067
|
-
url: '/api/v1/{region}/bean/
|
|
2084
|
+
method: 'PUT',
|
|
2085
|
+
url: '/api/v1/{region}/bean/commodities/{symbol}',
|
|
2068
2086
|
path: {
|
|
2069
|
-
|
|
2087
|
+
symbol: data.symbol,
|
|
2070
2088
|
region: data.region
|
|
2071
2089
|
},
|
|
2072
2090
|
body: data.requestBody,
|
|
2073
|
-
mediaType: 'application/json',
|
|
2074
|
-
errors: {
|
|
2075
|
-
400: '
|
|
2076
|
-
404: '
|
|
2077
|
-
409: 'Actual transaction already matched to another rule'
|
|
2091
|
+
mediaType: 'application/json',
|
|
2092
|
+
errors: {
|
|
2093
|
+
400: 'Invalid input data',
|
|
2094
|
+
404: 'Commodity not found'
|
|
2078
2095
|
}
|
|
2079
2096
|
});
|
|
2080
2097
|
}
|
|
2081
2098
|
|
|
2082
2099
|
/**
|
|
2083
|
-
*
|
|
2084
|
-
*
|
|
2100
|
+
* Delete commodity
|
|
2101
|
+
* Deletes a commodity definition
|
|
2085
2102
|
* @param data The data for the request.
|
|
2086
|
-
* @param data.
|
|
2103
|
+
* @param data.symbol Commodity symbol
|
|
2087
2104
|
* @param data.region Region code for tenant context
|
|
2088
|
-
* @returns
|
|
2105
|
+
* @returns void Commodity deleted successfully
|
|
2089
2106
|
* @throws ApiError
|
|
2090
2107
|
*/
|
|
2091
|
-
public static
|
|
2092
|
-
data:
|
|
2093
|
-
): CancelablePromise<
|
|
2108
|
+
public static commodityControllerDelete(
|
|
2109
|
+
data: CommodityControllerDeleteData
|
|
2110
|
+
): CancelablePromise<CommodityControllerDeleteResponse> {
|
|
2094
2111
|
return __request(OpenAPI, {
|
|
2095
2112
|
method: 'DELETE',
|
|
2096
|
-
url: '/api/v1/{region}/bean/
|
|
2113
|
+
url: '/api/v1/{region}/bean/commodities/{symbol}',
|
|
2097
2114
|
path: {
|
|
2098
|
-
|
|
2115
|
+
symbol: data.symbol,
|
|
2099
2116
|
region: data.region
|
|
2100
2117
|
},
|
|
2101
2118
|
errors: {
|
|
2102
|
-
|
|
2103
|
-
404: 'Expected transaction not found'
|
|
2119
|
+
404: 'Commodity not found'
|
|
2104
2120
|
}
|
|
2105
2121
|
});
|
|
2106
2122
|
}
|
|
2107
2123
|
|
|
2108
2124
|
/**
|
|
2109
|
-
*
|
|
2110
|
-
*
|
|
2125
|
+
* Ensure commodity exists
|
|
2126
|
+
* Gets existing commodity or creates it with automatic initialization from OpenBB
|
|
2111
2127
|
* @param data The data for the request.
|
|
2112
|
-
* @param data.
|
|
2128
|
+
* @param data.symbol Commodity symbol
|
|
2113
2129
|
* @param data.region Region code for tenant context
|
|
2114
|
-
* @
|
|
2115
|
-
* @returns unknown Transaction created successfully
|
|
2130
|
+
* @returns CommodityResponseDto Commodity retrieved or created
|
|
2116
2131
|
* @throws ApiError
|
|
2117
2132
|
*/
|
|
2118
|
-
public static
|
|
2119
|
-
data:
|
|
2120
|
-
): CancelablePromise<
|
|
2133
|
+
public static commodityControllerGetOrCreate(
|
|
2134
|
+
data: CommodityControllerGetOrCreateData
|
|
2135
|
+
): CancelablePromise<CommodityControllerGetOrCreateResponse> {
|
|
2121
2136
|
return __request(OpenAPI, {
|
|
2122
2137
|
method: 'POST',
|
|
2123
|
-
url: '/api/v1/{region}/bean/
|
|
2138
|
+
url: '/api/v1/{region}/bean/commodities/{symbol}/ensure',
|
|
2124
2139
|
path: {
|
|
2125
|
-
|
|
2140
|
+
symbol: data.symbol,
|
|
2126
2141
|
region: data.region
|
|
2127
|
-
},
|
|
2128
|
-
body: data.requestBody,
|
|
2129
|
-
mediaType: 'application/json',
|
|
2130
|
-
errors: {
|
|
2131
|
-
400: 'Cannot enter - not in PENDING status or missing accounts',
|
|
2132
|
-
404: 'Expected transaction or accounts not found'
|
|
2133
2142
|
}
|
|
2134
2143
|
});
|
|
2135
2144
|
}
|
|
2136
|
-
}
|
|
2137
2145
|
|
|
2138
|
-
export class RecurringForecastService {
|
|
2139
2146
|
/**
|
|
2140
|
-
*
|
|
2141
|
-
*
|
|
2147
|
+
* Bulk create commodities
|
|
2148
|
+
* Creates multiple commodities from a list of symbols, useful for initialization
|
|
2142
2149
|
* @param data The data for the request.
|
|
2143
2150
|
* @param data.region Region code for tenant context
|
|
2144
|
-
* @
|
|
2145
|
-
* @returns ForecastResponseDto Forecast retrieved successfully
|
|
2151
|
+
* @returns CommodityResponseDto Commodities created successfully
|
|
2146
2152
|
* @throws ApiError
|
|
2147
2153
|
*/
|
|
2148
|
-
public static
|
|
2149
|
-
data:
|
|
2150
|
-
): CancelablePromise<
|
|
2154
|
+
public static commodityControllerBulkCreate(
|
|
2155
|
+
data: CommodityControllerBulkCreateData
|
|
2156
|
+
): CancelablePromise<CommodityControllerBulkCreateResponse> {
|
|
2151
2157
|
return __request(OpenAPI, {
|
|
2152
|
-
method: '
|
|
2153
|
-
url: '/api/v1/{region}/bean/
|
|
2158
|
+
method: 'POST',
|
|
2159
|
+
url: '/api/v1/{region}/bean/commodities/bulk',
|
|
2154
2160
|
path: {
|
|
2155
2161
|
region: data.region
|
|
2156
|
-
},
|
|
2157
|
-
query: {
|
|
2158
|
-
months: data.months
|
|
2159
2162
|
}
|
|
2160
2163
|
});
|
|
2161
2164
|
}
|
|
@@ -2318,534 +2321,626 @@ export class ReportingService {
|
|
|
2318
2321
|
}
|
|
2319
2322
|
}
|
|
2320
2323
|
|
|
2321
|
-
export class
|
|
2324
|
+
export class BeanPricesService {
|
|
2322
2325
|
/**
|
|
2323
|
-
*
|
|
2326
|
+
* Create a new price
|
|
2327
|
+
* Creates a new price entry for the authenticated user
|
|
2324
2328
|
* @param data The data for the request.
|
|
2329
|
+
* @param data.region Region code for tenant context
|
|
2325
2330
|
* @param data.requestBody
|
|
2326
|
-
* @returns
|
|
2331
|
+
* @returns PriceResponseDto Price created successfully
|
|
2327
2332
|
* @throws ApiError
|
|
2328
2333
|
*/
|
|
2329
|
-
public static
|
|
2330
|
-
data:
|
|
2331
|
-
): CancelablePromise<
|
|
2334
|
+
public static priceControllerCreate(
|
|
2335
|
+
data: PriceControllerCreateData
|
|
2336
|
+
): CancelablePromise<PriceControllerCreateResponse> {
|
|
2332
2337
|
return __request(OpenAPI, {
|
|
2333
|
-
method: '
|
|
2334
|
-
url: '/api/v1/
|
|
2338
|
+
method: 'POST',
|
|
2339
|
+
url: '/api/v1/{region}/bean/prices',
|
|
2340
|
+
path: {
|
|
2341
|
+
region: data.region
|
|
2342
|
+
},
|
|
2335
2343
|
body: data.requestBody,
|
|
2336
2344
|
mediaType: 'application/json',
|
|
2337
2345
|
errors: {
|
|
2338
|
-
|
|
2346
|
+
404: 'Currency or quoteCurrency commodity not found',
|
|
2347
|
+
409: 'Price already exists for this currency pair and date'
|
|
2339
2348
|
}
|
|
2340
2349
|
});
|
|
2341
2350
|
}
|
|
2342
2351
|
|
|
2343
2352
|
/**
|
|
2344
|
-
*
|
|
2353
|
+
* List user prices
|
|
2354
|
+
* Returns all price entries for the authenticated user with optional filtering
|
|
2345
2355
|
* @param data The data for the request.
|
|
2346
|
-
* @param data.
|
|
2347
|
-
* @
|
|
2356
|
+
* @param data.region Region code for tenant context
|
|
2357
|
+
* @param data.currency Filter by currency (e.g., BTC, AAPL, USD)
|
|
2358
|
+
* @param data.quoteCurrency Filter by quote currency (pricing currency, e.g., USD, CNY)
|
|
2359
|
+
* @param data.dateFrom Filter prices from this date (ISO 8601 format)
|
|
2360
|
+
* @param data.dateTo Filter prices to this date (ISO 8601 format)
|
|
2361
|
+
* @param data.search Search term for currency or quoteCurrency (case-insensitive partial match)
|
|
2362
|
+
* @param data.page Page number for pagination (default: 1)
|
|
2363
|
+
* @param data.limit Number of items per page (default: 20, max: 100)
|
|
2364
|
+
* @returns PriceListResponseDto Prices retrieved successfully
|
|
2348
2365
|
* @throws ApiError
|
|
2349
2366
|
*/
|
|
2350
|
-
public static
|
|
2351
|
-
data:
|
|
2352
|
-
): CancelablePromise<
|
|
2367
|
+
public static priceControllerFindAll(
|
|
2368
|
+
data: PriceControllerFindAllData
|
|
2369
|
+
): CancelablePromise<PriceControllerFindAllResponse> {
|
|
2353
2370
|
return __request(OpenAPI, {
|
|
2354
2371
|
method: 'GET',
|
|
2355
|
-
url: '/api/v1/
|
|
2356
|
-
|
|
2357
|
-
|
|
2372
|
+
url: '/api/v1/{region}/bean/prices',
|
|
2373
|
+
path: {
|
|
2374
|
+
region: data.region
|
|
2375
|
+
},
|
|
2376
|
+
query: {
|
|
2377
|
+
currency: data.currency,
|
|
2378
|
+
quoteCurrency: data.quoteCurrency,
|
|
2379
|
+
dateFrom: data.dateFrom,
|
|
2380
|
+
dateTo: data.dateTo,
|
|
2381
|
+
search: data.search,
|
|
2382
|
+
page: data.page,
|
|
2383
|
+
limit: data.limit
|
|
2358
2384
|
}
|
|
2359
2385
|
});
|
|
2360
2386
|
}
|
|
2361
2387
|
|
|
2362
2388
|
/**
|
|
2363
|
-
*
|
|
2364
|
-
*
|
|
2389
|
+
* Get price by ID
|
|
2390
|
+
* Returns a single price entry by its ID
|
|
2365
2391
|
* @param data The data for the request.
|
|
2366
|
-
* @param data.
|
|
2367
|
-
* @
|
|
2392
|
+
* @param data.id Price ID
|
|
2393
|
+
* @param data.region Region code for tenant context
|
|
2394
|
+
* @returns PriceResponseDto Price retrieved successfully
|
|
2368
2395
|
* @throws ApiError
|
|
2369
2396
|
*/
|
|
2370
|
-
public static
|
|
2371
|
-
data:
|
|
2372
|
-
): CancelablePromise<
|
|
2397
|
+
public static priceControllerFindOne(
|
|
2398
|
+
data: PriceControllerFindOneData
|
|
2399
|
+
): CancelablePromise<PriceControllerFindOneResponse> {
|
|
2373
2400
|
return __request(OpenAPI, {
|
|
2374
|
-
method: '
|
|
2375
|
-
url: '/api/v1/
|
|
2376
|
-
|
|
2377
|
-
|
|
2401
|
+
method: 'GET',
|
|
2402
|
+
url: '/api/v1/{region}/bean/prices/{id}',
|
|
2403
|
+
path: {
|
|
2404
|
+
id: data.id,
|
|
2405
|
+
region: data.region
|
|
2406
|
+
},
|
|
2378
2407
|
errors: {
|
|
2379
|
-
|
|
2380
|
-
403: 'User signup is disabled'
|
|
2408
|
+
404: 'Price not found'
|
|
2381
2409
|
}
|
|
2382
2410
|
});
|
|
2383
2411
|
}
|
|
2384
2412
|
|
|
2385
2413
|
/**
|
|
2386
|
-
*
|
|
2414
|
+
* Update a price
|
|
2415
|
+
* Updates an existing price entry
|
|
2387
2416
|
* @param data The data for the request.
|
|
2388
|
-
* @param data.id
|
|
2389
|
-
* @
|
|
2417
|
+
* @param data.id Price ID
|
|
2418
|
+
* @param data.region Region code for tenant context
|
|
2419
|
+
* @param data.requestBody
|
|
2420
|
+
* @returns PriceResponseDto Price updated successfully
|
|
2390
2421
|
* @throws ApiError
|
|
2391
2422
|
*/
|
|
2392
|
-
public static
|
|
2393
|
-
data:
|
|
2394
|
-
): CancelablePromise<
|
|
2423
|
+
public static priceControllerUpdate(
|
|
2424
|
+
data: PriceControllerUpdateData
|
|
2425
|
+
): CancelablePromise<PriceControllerUpdateResponse> {
|
|
2395
2426
|
return __request(OpenAPI, {
|
|
2396
|
-
method: '
|
|
2397
|
-
url: '/api/v1/
|
|
2427
|
+
method: 'PUT',
|
|
2428
|
+
url: '/api/v1/{region}/bean/prices/{id}',
|
|
2398
2429
|
path: {
|
|
2399
|
-
id: data.id
|
|
2430
|
+
id: data.id,
|
|
2431
|
+
region: data.region
|
|
2400
2432
|
},
|
|
2433
|
+
body: data.requestBody,
|
|
2434
|
+
mediaType: 'application/json',
|
|
2401
2435
|
errors: {
|
|
2402
|
-
|
|
2436
|
+
404: 'Price not found',
|
|
2437
|
+
409: 'Updated price conflicts with existing price'
|
|
2403
2438
|
}
|
|
2404
2439
|
});
|
|
2405
2440
|
}
|
|
2406
2441
|
|
|
2407
2442
|
/**
|
|
2408
|
-
*
|
|
2443
|
+
* Delete a price
|
|
2444
|
+
* Deletes a price entry (hard delete)
|
|
2409
2445
|
* @param data The data for the request.
|
|
2410
|
-
* @param data.id
|
|
2411
|
-
* @
|
|
2446
|
+
* @param data.id Price ID
|
|
2447
|
+
* @param data.region Region code for tenant context
|
|
2448
|
+
* @returns void Price deleted successfully
|
|
2412
2449
|
* @throws ApiError
|
|
2413
2450
|
*/
|
|
2414
|
-
public static
|
|
2415
|
-
data:
|
|
2416
|
-
): CancelablePromise<
|
|
2451
|
+
public static priceControllerDelete(
|
|
2452
|
+
data: PriceControllerDeleteData
|
|
2453
|
+
): CancelablePromise<PriceControllerDeleteResponse> {
|
|
2417
2454
|
return __request(OpenAPI, {
|
|
2418
|
-
method: '
|
|
2419
|
-
url: '/api/v1/
|
|
2455
|
+
method: 'DELETE',
|
|
2456
|
+
url: '/api/v1/{region}/bean/prices/{id}',
|
|
2420
2457
|
path: {
|
|
2421
|
-
id: data.id
|
|
2458
|
+
id: data.id,
|
|
2459
|
+
region: data.region
|
|
2422
2460
|
},
|
|
2423
2461
|
errors: {
|
|
2424
|
-
|
|
2462
|
+
404: 'Price not found'
|
|
2425
2463
|
}
|
|
2426
2464
|
});
|
|
2427
2465
|
}
|
|
2428
2466
|
|
|
2429
2467
|
/**
|
|
2430
|
-
*
|
|
2468
|
+
* Bulk create prices
|
|
2469
|
+
* Creates multiple price entries at once (skips duplicates)
|
|
2431
2470
|
* @param data The data for the request.
|
|
2471
|
+
* @param data.region Region code for tenant context
|
|
2432
2472
|
* @param data.requestBody
|
|
2433
|
-
* @returns
|
|
2473
|
+
* @returns PriceResponseDto Prices created successfully
|
|
2434
2474
|
* @throws ApiError
|
|
2435
2475
|
*/
|
|
2436
|
-
public static
|
|
2437
|
-
data:
|
|
2438
|
-
): CancelablePromise<
|
|
2476
|
+
public static priceControllerBulkCreate(
|
|
2477
|
+
data: PriceControllerBulkCreateData
|
|
2478
|
+
): CancelablePromise<PriceControllerBulkCreateResponse> {
|
|
2439
2479
|
return __request(OpenAPI, {
|
|
2440
|
-
method: '
|
|
2441
|
-
url: '/api/v1/
|
|
2480
|
+
method: 'POST',
|
|
2481
|
+
url: '/api/v1/{region}/bean/prices/bulk',
|
|
2482
|
+
path: {
|
|
2483
|
+
region: data.region
|
|
2484
|
+
},
|
|
2442
2485
|
body: data.requestBody,
|
|
2443
|
-
mediaType: 'application/json'
|
|
2444
|
-
errors: {
|
|
2445
|
-
403: 'Insufficient permissions'
|
|
2446
|
-
}
|
|
2486
|
+
mediaType: 'application/json'
|
|
2447
2487
|
});
|
|
2448
2488
|
}
|
|
2489
|
+
}
|
|
2449
2490
|
|
|
2491
|
+
export class RecurringRulesService {
|
|
2450
2492
|
/**
|
|
2451
|
-
*
|
|
2493
|
+
* Create a new recurring rule
|
|
2494
|
+
* Creates a new recurring transaction rule for the authenticated user
|
|
2452
2495
|
* @param data The data for the request.
|
|
2453
|
-
* @param data.
|
|
2454
|
-
* @param data.
|
|
2455
|
-
* @returns
|
|
2496
|
+
* @param data.region Region code for tenant context
|
|
2497
|
+
* @param data.requestBody
|
|
2498
|
+
* @returns RecurringRuleResponseDto Rule created successfully
|
|
2456
2499
|
* @throws ApiError
|
|
2457
2500
|
*/
|
|
2458
|
-
public static
|
|
2459
|
-
data:
|
|
2460
|
-
): CancelablePromise<
|
|
2501
|
+
public static recurringRuleControllerCreate(
|
|
2502
|
+
data: RecurringRuleControllerCreateData
|
|
2503
|
+
): CancelablePromise<RecurringRuleControllerCreateResponse> {
|
|
2461
2504
|
return __request(OpenAPI, {
|
|
2462
|
-
method: '
|
|
2463
|
-
url: '/api/v1/
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2505
|
+
method: 'POST',
|
|
2506
|
+
url: '/api/v1/{region}/bean/recurring-rules',
|
|
2507
|
+
path: {
|
|
2508
|
+
region: data.region
|
|
2509
|
+
},
|
|
2510
|
+
body: data.requestBody,
|
|
2511
|
+
mediaType: 'application/json',
|
|
2512
|
+
errors: {
|
|
2513
|
+
400: 'Invalid input data (e.g., autoCreate without accounts)',
|
|
2514
|
+
409: 'Rule with same name already exists'
|
|
2467
2515
|
}
|
|
2468
2516
|
});
|
|
2469
2517
|
}
|
|
2470
2518
|
|
|
2471
2519
|
/**
|
|
2472
|
-
*
|
|
2473
|
-
*
|
|
2520
|
+
* List recurring rules
|
|
2521
|
+
* Returns all recurring rules for the authenticated user with optional filtering
|
|
2522
|
+
* @param data The data for the request.
|
|
2523
|
+
* @param data.region Region code for tenant context
|
|
2524
|
+
* @param data.isActive Filter by active status
|
|
2525
|
+
* @param data.frequency Filter by frequency (WEEKLY, MONTHLY, etc.)
|
|
2526
|
+
* @param data.hasAutoCreate Filter by autoCreate enabled
|
|
2527
|
+
* @returns RecurringRuleResponseDto Rules retrieved successfully
|
|
2474
2528
|
* @throws ApiError
|
|
2475
2529
|
*/
|
|
2476
|
-
public static
|
|
2530
|
+
public static recurringRuleControllerFindAll(
|
|
2531
|
+
data: RecurringRuleControllerFindAllData
|
|
2532
|
+
): CancelablePromise<RecurringRuleControllerFindAllResponse> {
|
|
2477
2533
|
return __request(OpenAPI, {
|
|
2478
2534
|
method: 'GET',
|
|
2479
|
-
url: '/api/v1/
|
|
2535
|
+
url: '/api/v1/{region}/bean/recurring-rules',
|
|
2536
|
+
path: {
|
|
2537
|
+
region: data.region
|
|
2538
|
+
},
|
|
2539
|
+
query: {
|
|
2540
|
+
isActive: data.isActive,
|
|
2541
|
+
frequency: data.frequency,
|
|
2542
|
+
hasAutoCreate: data.hasAutoCreate
|
|
2543
|
+
}
|
|
2480
2544
|
});
|
|
2481
2545
|
}
|
|
2482
|
-
}
|
|
2483
2546
|
|
|
2484
|
-
export class PropertiesService {
|
|
2485
2547
|
/**
|
|
2486
|
-
*
|
|
2487
|
-
*
|
|
2548
|
+
* Create recurring rule from transaction
|
|
2549
|
+
* Auto-creates a recurring rule using transaction data. User only confirms frequency.
|
|
2550
|
+
* @param data The data for the request.
|
|
2551
|
+
* @param data.transactionId Source transaction ID
|
|
2552
|
+
* @param data.region Region code for tenant context
|
|
2553
|
+
* @param data.requestBody
|
|
2554
|
+
* @returns RecurringRuleResponseDto Rule created successfully
|
|
2488
2555
|
* @throws ApiError
|
|
2489
2556
|
*/
|
|
2490
|
-
public static
|
|
2557
|
+
public static recurringRuleControllerCreateFromTransaction(
|
|
2558
|
+
data: RecurringRuleControllerCreateFromTransactionData
|
|
2559
|
+
): CancelablePromise<RecurringRuleControllerCreateFromTransactionResponse> {
|
|
2491
2560
|
return __request(OpenAPI, {
|
|
2492
|
-
method: '
|
|
2493
|
-
url: '/api/v1/
|
|
2561
|
+
method: 'POST',
|
|
2562
|
+
url: '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}',
|
|
2563
|
+
path: {
|
|
2564
|
+
transactionId: data.transactionId,
|
|
2565
|
+
region: data.region
|
|
2566
|
+
},
|
|
2567
|
+
body: data.requestBody,
|
|
2568
|
+
mediaType: 'application/json',
|
|
2494
2569
|
errors: {
|
|
2495
|
-
|
|
2496
|
-
|
|
2570
|
+
404: 'Transaction not found',
|
|
2571
|
+
409: 'Rule with same name already exists or transaction already linked'
|
|
2497
2572
|
}
|
|
2498
2573
|
});
|
|
2499
2574
|
}
|
|
2500
2575
|
|
|
2501
2576
|
/**
|
|
2502
|
-
* Get
|
|
2577
|
+
* Get recurring rule by ID
|
|
2578
|
+
* Returns a specific recurring rule with its details
|
|
2503
2579
|
* @param data The data for the request.
|
|
2504
|
-
* @param data.
|
|
2505
|
-
* @
|
|
2580
|
+
* @param data.id Rule ID
|
|
2581
|
+
* @param data.region Region code for tenant context
|
|
2582
|
+
* @returns RecurringRuleResponseDto Rule retrieved successfully
|
|
2506
2583
|
* @throws ApiError
|
|
2507
2584
|
*/
|
|
2508
|
-
public static
|
|
2509
|
-
data:
|
|
2510
|
-
): CancelablePromise<
|
|
2585
|
+
public static recurringRuleControllerFindOne(
|
|
2586
|
+
data: RecurringRuleControllerFindOneData
|
|
2587
|
+
): CancelablePromise<RecurringRuleControllerFindOneResponse> {
|
|
2511
2588
|
return __request(OpenAPI, {
|
|
2512
2589
|
method: 'GET',
|
|
2513
|
-
url: '/api/v1/
|
|
2590
|
+
url: '/api/v1/{region}/bean/recurring-rules/{id}',
|
|
2514
2591
|
path: {
|
|
2515
|
-
|
|
2592
|
+
id: data.id,
|
|
2593
|
+
region: data.region
|
|
2516
2594
|
},
|
|
2517
2595
|
errors: {
|
|
2518
|
-
|
|
2519
|
-
403: 'Forbidden - insufficient permissions',
|
|
2520
|
-
404: 'Property not found'
|
|
2596
|
+
404: 'Rule not found'
|
|
2521
2597
|
}
|
|
2522
2598
|
});
|
|
2523
2599
|
}
|
|
2524
2600
|
|
|
2525
2601
|
/**
|
|
2526
|
-
* Update
|
|
2602
|
+
* Update recurring rule
|
|
2603
|
+
* Updates an existing recurring rule
|
|
2527
2604
|
* @param data The data for the request.
|
|
2528
|
-
* @param data.
|
|
2605
|
+
* @param data.id Rule ID
|
|
2606
|
+
* @param data.region Region code for tenant context
|
|
2529
2607
|
* @param data.requestBody
|
|
2530
|
-
* @returns
|
|
2608
|
+
* @returns RecurringRuleResponseDto Rule updated successfully
|
|
2531
2609
|
* @throws ApiError
|
|
2532
2610
|
*/
|
|
2533
|
-
public static
|
|
2534
|
-
data:
|
|
2535
|
-
): CancelablePromise<
|
|
2611
|
+
public static recurringRuleControllerUpdate(
|
|
2612
|
+
data: RecurringRuleControllerUpdateData
|
|
2613
|
+
): CancelablePromise<RecurringRuleControllerUpdateResponse> {
|
|
2536
2614
|
return __request(OpenAPI, {
|
|
2537
|
-
method: '
|
|
2538
|
-
url: '/api/v1/
|
|
2615
|
+
method: 'PATCH',
|
|
2616
|
+
url: '/api/v1/{region}/bean/recurring-rules/{id}',
|
|
2539
2617
|
path: {
|
|
2540
|
-
|
|
2618
|
+
id: data.id,
|
|
2619
|
+
region: data.region
|
|
2541
2620
|
},
|
|
2542
2621
|
body: data.requestBody,
|
|
2543
2622
|
mediaType: 'application/json',
|
|
2544
2623
|
errors: {
|
|
2545
|
-
|
|
2546
|
-
|
|
2624
|
+
400: 'Invalid input data',
|
|
2625
|
+
404: 'Rule not found'
|
|
2547
2626
|
}
|
|
2548
2627
|
});
|
|
2549
2628
|
}
|
|
2550
2629
|
|
|
2551
2630
|
/**
|
|
2552
|
-
* Delete
|
|
2631
|
+
* Delete recurring rule
|
|
2632
|
+
* Soft deletes a recurring rule (sets isActive to false)
|
|
2553
2633
|
* @param data The data for the request.
|
|
2554
|
-
* @param data.
|
|
2555
|
-
* @
|
|
2634
|
+
* @param data.id Rule ID
|
|
2635
|
+
* @param data.region Region code for tenant context
|
|
2636
|
+
* @returns void Rule deleted successfully
|
|
2556
2637
|
* @throws ApiError
|
|
2557
2638
|
*/
|
|
2558
|
-
public static
|
|
2559
|
-
data:
|
|
2560
|
-
): CancelablePromise<
|
|
2639
|
+
public static recurringRuleControllerDelete(
|
|
2640
|
+
data: RecurringRuleControllerDeleteData
|
|
2641
|
+
): CancelablePromise<RecurringRuleControllerDeleteResponse> {
|
|
2561
2642
|
return __request(OpenAPI, {
|
|
2562
2643
|
method: 'DELETE',
|
|
2563
|
-
url: '/api/v1/
|
|
2644
|
+
url: '/api/v1/{region}/bean/recurring-rules/{id}',
|
|
2564
2645
|
path: {
|
|
2565
|
-
|
|
2646
|
+
id: data.id,
|
|
2647
|
+
region: data.region
|
|
2566
2648
|
},
|
|
2567
2649
|
errors: {
|
|
2568
|
-
|
|
2569
|
-
403: 'Forbidden - insufficient permissions',
|
|
2570
|
-
404: 'Property not found'
|
|
2650
|
+
404: 'Rule not found'
|
|
2571
2651
|
}
|
|
2572
2652
|
});
|
|
2573
2653
|
}
|
|
2574
|
-
}
|
|
2575
2654
|
|
|
2576
|
-
export class BeanTransactionRulesService {
|
|
2577
2655
|
/**
|
|
2578
|
-
*
|
|
2579
|
-
*
|
|
2656
|
+
* Get rule with statistics
|
|
2657
|
+
* Returns a rule with pending/overdue counts and next expected date
|
|
2580
2658
|
* @param data The data for the request.
|
|
2659
|
+
* @param data.id Rule ID
|
|
2581
2660
|
* @param data.region Region code for tenant context
|
|
2582
|
-
* @
|
|
2583
|
-
* @returns TransactionRuleResponseDto Rule updated successfully (upsert mode)
|
|
2661
|
+
* @returns RecurringRuleWithStatsResponseDto Rule with stats retrieved successfully
|
|
2584
2662
|
* @throws ApiError
|
|
2585
2663
|
*/
|
|
2586
|
-
public static
|
|
2587
|
-
data:
|
|
2588
|
-
): CancelablePromise<
|
|
2664
|
+
public static recurringRuleControllerGetWithStats(
|
|
2665
|
+
data: RecurringRuleControllerGetWithStatsData
|
|
2666
|
+
): CancelablePromise<RecurringRuleControllerGetWithStatsResponse> {
|
|
2589
2667
|
return __request(OpenAPI, {
|
|
2590
|
-
method: '
|
|
2591
|
-
url: '/api/v1/{region}/bean/
|
|
2668
|
+
method: 'GET',
|
|
2669
|
+
url: '/api/v1/{region}/bean/recurring-rules/{id}/stats',
|
|
2592
2670
|
path: {
|
|
2671
|
+
id: data.id,
|
|
2593
2672
|
region: data.region
|
|
2594
2673
|
},
|
|
2595
|
-
body: data.requestBody,
|
|
2596
|
-
mediaType: 'application/json',
|
|
2597
2674
|
errors: {
|
|
2598
|
-
|
|
2599
|
-
401: 'Unauthorized',
|
|
2600
|
-
409: 'Resource conflict - another process is updating this rule'
|
|
2675
|
+
404: 'Rule not found'
|
|
2601
2676
|
}
|
|
2602
2677
|
});
|
|
2603
2678
|
}
|
|
2679
|
+
}
|
|
2604
2680
|
|
|
2681
|
+
export class ExpectedTransactionsService {
|
|
2605
2682
|
/**
|
|
2606
|
-
*
|
|
2683
|
+
* List expected transactions
|
|
2684
|
+
* Returns expected transactions for the authenticated user with optional filtering
|
|
2607
2685
|
* @param data The data for the request.
|
|
2608
2686
|
* @param data.region Region code for tenant context
|
|
2609
|
-
* @param data.
|
|
2610
|
-
* @param data.
|
|
2611
|
-
* @param data.
|
|
2612
|
-
* @param data.
|
|
2613
|
-
* @
|
|
2614
|
-
* @returns TransactionRuleListResponseDto List of rules
|
|
2687
|
+
* @param data.ruleId Filter by recurring rule ID
|
|
2688
|
+
* @param data.status Filter by status (PENDING, COMPLETED, SKIPPED)
|
|
2689
|
+
* @param data.fromDate Filter by date range start (YYYY-MM-DD)
|
|
2690
|
+
* @param data.toDate Filter by date range end (YYYY-MM-DD)
|
|
2691
|
+
* @returns ExpectedTransactionListResponseDto Expected transactions retrieved successfully
|
|
2615
2692
|
* @throws ApiError
|
|
2616
2693
|
*/
|
|
2617
|
-
public static
|
|
2618
|
-
data:
|
|
2619
|
-
): CancelablePromise<
|
|
2694
|
+
public static expectedTransactionControllerFindAll(
|
|
2695
|
+
data: ExpectedTransactionControllerFindAllData
|
|
2696
|
+
): CancelablePromise<ExpectedTransactionControllerFindAllResponse> {
|
|
2620
2697
|
return __request(OpenAPI, {
|
|
2621
2698
|
method: 'GET',
|
|
2622
|
-
url: '/api/v1/{region}/bean/
|
|
2699
|
+
url: '/api/v1/{region}/bean/expected-transactions',
|
|
2623
2700
|
path: {
|
|
2624
2701
|
region: data.region
|
|
2625
2702
|
},
|
|
2626
2703
|
query: {
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
autoApplyEnabled: data.autoApplyEnabled
|
|
2632
|
-
},
|
|
2633
|
-
errors: {
|
|
2634
|
-
401: 'Unauthorized'
|
|
2704
|
+
ruleId: data.ruleId,
|
|
2705
|
+
status: data.status,
|
|
2706
|
+
fromDate: data.fromDate,
|
|
2707
|
+
toDate: data.toDate
|
|
2635
2708
|
}
|
|
2636
2709
|
});
|
|
2637
2710
|
}
|
|
2638
2711
|
|
|
2639
2712
|
/**
|
|
2640
|
-
*
|
|
2713
|
+
* List overdue expected transactions
|
|
2714
|
+
* Returns all overdue expected transactions (PENDING past tolerance)
|
|
2641
2715
|
* @param data The data for the request.
|
|
2642
2716
|
* @param data.region Region code for tenant context
|
|
2643
|
-
* @
|
|
2644
|
-
* @returns ValidateRuleResponseDto Validation result
|
|
2717
|
+
* @returns ExpectedTransactionListResponseDto Overdue transactions retrieved successfully
|
|
2645
2718
|
* @throws ApiError
|
|
2646
2719
|
*/
|
|
2647
|
-
public static
|
|
2648
|
-
data:
|
|
2649
|
-
): CancelablePromise<
|
|
2720
|
+
public static expectedTransactionControllerFindOverdue(
|
|
2721
|
+
data: ExpectedTransactionControllerFindOverdueData
|
|
2722
|
+
): CancelablePromise<ExpectedTransactionControllerFindOverdueResponse> {
|
|
2650
2723
|
return __request(OpenAPI, {
|
|
2651
|
-
method: '
|
|
2652
|
-
url: '/api/v1/{region}/bean/
|
|
2724
|
+
method: 'GET',
|
|
2725
|
+
url: '/api/v1/{region}/bean/expected-transactions/overdue',
|
|
2726
|
+
path: {
|
|
2727
|
+
region: data.region
|
|
2728
|
+
}
|
|
2729
|
+
});
|
|
2730
|
+
}
|
|
2731
|
+
|
|
2732
|
+
/**
|
|
2733
|
+
* Get expected transaction by ID
|
|
2734
|
+
* Returns a specific expected transaction with rule details
|
|
2735
|
+
* @param data The data for the request.
|
|
2736
|
+
* @param data.id Expected transaction ID
|
|
2737
|
+
* @param data.region Region code for tenant context
|
|
2738
|
+
* @returns ExpectedTransactionResponseDto Expected transaction retrieved successfully
|
|
2739
|
+
* @throws ApiError
|
|
2740
|
+
*/
|
|
2741
|
+
public static expectedTransactionControllerFindOne(
|
|
2742
|
+
data: ExpectedTransactionControllerFindOneData
|
|
2743
|
+
): CancelablePromise<ExpectedTransactionControllerFindOneResponse> {
|
|
2744
|
+
return __request(OpenAPI, {
|
|
2745
|
+
method: 'GET',
|
|
2746
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}',
|
|
2653
2747
|
path: {
|
|
2748
|
+
id: data.id,
|
|
2654
2749
|
region: data.region
|
|
2655
2750
|
},
|
|
2656
|
-
body: data.requestBody,
|
|
2657
|
-
mediaType: 'application/json',
|
|
2658
2751
|
errors: {
|
|
2659
|
-
|
|
2660
|
-
401: 'Unauthorized'
|
|
2752
|
+
404: 'Expected transaction not found'
|
|
2661
2753
|
}
|
|
2662
2754
|
});
|
|
2663
2755
|
}
|
|
2664
2756
|
|
|
2665
2757
|
/**
|
|
2666
|
-
*
|
|
2758
|
+
* Skip expected transaction
|
|
2759
|
+
* Marks an expected transaction as skipped (PENDING -> SKIPPED)
|
|
2667
2760
|
* @param data The data for the request.
|
|
2761
|
+
* @param data.id Expected transaction ID
|
|
2668
2762
|
* @param data.region Region code for tenant context
|
|
2669
|
-
* @
|
|
2670
|
-
* @returns BulkCreateRulesResponseDto Bulk create completed
|
|
2763
|
+
* @returns ExpectedTransactionResponseDto Expected transaction skipped successfully
|
|
2671
2764
|
* @throws ApiError
|
|
2672
2765
|
*/
|
|
2673
|
-
public static
|
|
2674
|
-
data:
|
|
2675
|
-
): CancelablePromise<
|
|
2766
|
+
public static expectedTransactionControllerSkip(
|
|
2767
|
+
data: ExpectedTransactionControllerSkipData
|
|
2768
|
+
): CancelablePromise<ExpectedTransactionControllerSkipResponse> {
|
|
2676
2769
|
return __request(OpenAPI, {
|
|
2677
2770
|
method: 'POST',
|
|
2678
|
-
url: '/api/v1/{region}/bean/
|
|
2771
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
|
|
2679
2772
|
path: {
|
|
2773
|
+
id: data.id,
|
|
2680
2774
|
region: data.region
|
|
2681
|
-
},
|
|
2682
|
-
body: data.requestBody,
|
|
2683
|
-
mediaType: 'application/json',
|
|
2775
|
+
},
|
|
2684
2776
|
errors: {
|
|
2685
|
-
400: '
|
|
2686
|
-
|
|
2777
|
+
400: 'Cannot skip - not in PENDING status',
|
|
2778
|
+
404: 'Expected transaction not found'
|
|
2687
2779
|
}
|
|
2688
2780
|
});
|
|
2689
2781
|
}
|
|
2690
2782
|
|
|
2691
2783
|
/**
|
|
2692
|
-
*
|
|
2784
|
+
* Undo skip
|
|
2785
|
+
* Reverses a skip operation (SKIPPED -> PENDING)
|
|
2693
2786
|
* @param data The data for the request.
|
|
2694
|
-
* @param data.
|
|
2787
|
+
* @param data.id Expected transaction ID
|
|
2695
2788
|
* @param data.region Region code for tenant context
|
|
2696
|
-
* @returns
|
|
2789
|
+
* @returns void Skip undone successfully
|
|
2697
2790
|
* @throws ApiError
|
|
2698
2791
|
*/
|
|
2699
|
-
public static
|
|
2700
|
-
data:
|
|
2701
|
-
): CancelablePromise<
|
|
2792
|
+
public static expectedTransactionControllerUndoSkip(
|
|
2793
|
+
data: ExpectedTransactionControllerUndoSkipData
|
|
2794
|
+
): CancelablePromise<ExpectedTransactionControllerUndoSkipResponse> {
|
|
2702
2795
|
return __request(OpenAPI, {
|
|
2703
|
-
method: '
|
|
2704
|
-
url: '/api/v1/{region}/bean/
|
|
2796
|
+
method: 'DELETE',
|
|
2797
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
|
|
2705
2798
|
path: {
|
|
2706
|
-
|
|
2799
|
+
id: data.id,
|
|
2707
2800
|
region: data.region
|
|
2708
2801
|
},
|
|
2709
2802
|
errors: {
|
|
2710
|
-
400: '
|
|
2711
|
-
|
|
2803
|
+
400: 'Cannot undo - not in SKIPPED status',
|
|
2804
|
+
404: 'Expected transaction not found'
|
|
2712
2805
|
}
|
|
2713
2806
|
});
|
|
2714
2807
|
}
|
|
2715
2808
|
|
|
2716
2809
|
/**
|
|
2717
|
-
*
|
|
2810
|
+
* Confirm transaction match
|
|
2811
|
+
* Manually matches an expected transaction with an actual transaction
|
|
2718
2812
|
* @param data The data for the request.
|
|
2719
|
-
* @param data.
|
|
2813
|
+
* @param data.id Expected transaction ID
|
|
2720
2814
|
* @param data.region Region code for tenant context
|
|
2721
|
-
* @
|
|
2815
|
+
* @param data.requestBody
|
|
2816
|
+
* @returns unknown Match confirmed successfully
|
|
2722
2817
|
* @throws ApiError
|
|
2723
2818
|
*/
|
|
2724
|
-
public static
|
|
2725
|
-
data:
|
|
2726
|
-
): CancelablePromise<
|
|
2819
|
+
public static expectedTransactionControllerConfirmMatch(
|
|
2820
|
+
data: ExpectedTransactionControllerConfirmMatchData
|
|
2821
|
+
): CancelablePromise<ExpectedTransactionControllerConfirmMatchResponse> {
|
|
2727
2822
|
return __request(OpenAPI, {
|
|
2728
|
-
method: '
|
|
2729
|
-
url: '/api/v1/{region}/bean/
|
|
2823
|
+
method: 'POST',
|
|
2824
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
|
|
2730
2825
|
path: {
|
|
2731
|
-
|
|
2826
|
+
id: data.id,
|
|
2732
2827
|
region: data.region
|
|
2733
2828
|
},
|
|
2829
|
+
body: data.requestBody,
|
|
2830
|
+
mediaType: 'application/json',
|
|
2734
2831
|
errors: {
|
|
2735
|
-
|
|
2832
|
+
400: 'Cannot match - not in PENDING status',
|
|
2833
|
+
404: 'Expected or actual transaction not found',
|
|
2834
|
+
409: 'Actual transaction already matched to another rule'
|
|
2736
2835
|
}
|
|
2737
2836
|
});
|
|
2738
2837
|
}
|
|
2739
2838
|
|
|
2740
2839
|
/**
|
|
2741
|
-
*
|
|
2840
|
+
* Unmatch transaction
|
|
2841
|
+
* Removes the match between expected and actual transaction (COMPLETED -> PENDING)
|
|
2742
2842
|
* @param data The data for the request.
|
|
2743
|
-
* @param data.
|
|
2843
|
+
* @param data.id Expected transaction ID
|
|
2744
2844
|
* @param data.region Region code for tenant context
|
|
2745
|
-
* @returns
|
|
2845
|
+
* @returns void Match removed successfully
|
|
2746
2846
|
* @throws ApiError
|
|
2747
2847
|
*/
|
|
2748
|
-
public static
|
|
2749
|
-
data:
|
|
2750
|
-
): CancelablePromise<
|
|
2848
|
+
public static expectedTransactionControllerUnmatch(
|
|
2849
|
+
data: ExpectedTransactionControllerUnmatchData
|
|
2850
|
+
): CancelablePromise<ExpectedTransactionControllerUnmatchResponse> {
|
|
2751
2851
|
return __request(OpenAPI, {
|
|
2752
|
-
method: '
|
|
2753
|
-
url: '/api/v1/{region}/bean/
|
|
2852
|
+
method: 'DELETE',
|
|
2853
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
|
|
2754
2854
|
path: {
|
|
2755
|
-
|
|
2855
|
+
id: data.id,
|
|
2756
2856
|
region: data.region
|
|
2757
2857
|
},
|
|
2758
2858
|
errors: {
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
404: 'Rule not found'
|
|
2859
|
+
400: 'Cannot unmatch - not in COMPLETED status',
|
|
2860
|
+
404: 'Expected transaction not found'
|
|
2762
2861
|
}
|
|
2763
2862
|
});
|
|
2764
2863
|
}
|
|
2765
2864
|
|
|
2766
2865
|
/**
|
|
2767
|
-
*
|
|
2866
|
+
* Enter Now
|
|
2867
|
+
* Creates an actual transaction for an expected transaction (YNAB-style Enter Now)
|
|
2768
2868
|
* @param data The data for the request.
|
|
2769
|
-
* @param data.
|
|
2869
|
+
* @param data.id Expected transaction ID
|
|
2770
2870
|
* @param data.region Region code for tenant context
|
|
2771
2871
|
* @param data.requestBody
|
|
2772
|
-
* @returns
|
|
2872
|
+
* @returns unknown Transaction created successfully
|
|
2773
2873
|
* @throws ApiError
|
|
2774
2874
|
*/
|
|
2775
|
-
public static
|
|
2776
|
-
data:
|
|
2777
|
-
): CancelablePromise<
|
|
2875
|
+
public static expectedTransactionControllerEnterNow(
|
|
2876
|
+
data: ExpectedTransactionControllerEnterNowData
|
|
2877
|
+
): CancelablePromise<ExpectedTransactionControllerEnterNowResponse> {
|
|
2778
2878
|
return __request(OpenAPI, {
|
|
2779
|
-
method: '
|
|
2780
|
-
url: '/api/v1/{region}/bean/
|
|
2879
|
+
method: 'POST',
|
|
2880
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/enter',
|
|
2781
2881
|
path: {
|
|
2782
|
-
|
|
2882
|
+
id: data.id,
|
|
2783
2883
|
region: data.region
|
|
2784
2884
|
},
|
|
2785
2885
|
body: data.requestBody,
|
|
2786
2886
|
mediaType: 'application/json',
|
|
2787
2887
|
errors: {
|
|
2788
|
-
400: '
|
|
2789
|
-
|
|
2790
|
-
403: 'Forbidden - not owner of rule',
|
|
2791
|
-
404: 'Rule not found',
|
|
2792
|
-
409: 'Resource conflict - rule is being modified by another process'
|
|
2888
|
+
400: 'Cannot enter - not in PENDING status or missing accounts',
|
|
2889
|
+
404: 'Expected transaction or accounts not found'
|
|
2793
2890
|
}
|
|
2794
2891
|
});
|
|
2795
2892
|
}
|
|
2893
|
+
}
|
|
2796
2894
|
|
|
2895
|
+
export class RecurringForecastService {
|
|
2797
2896
|
/**
|
|
2798
|
-
*
|
|
2897
|
+
* Get cash flow forecast
|
|
2898
|
+
* Returns predicted outflows for the next N months based on active recurring rules
|
|
2799
2899
|
* @param data The data for the request.
|
|
2800
|
-
* @param data.ruleId Rule ID to delete
|
|
2801
2900
|
* @param data.region Region code for tenant context
|
|
2802
|
-
* @
|
|
2901
|
+
* @param data.months Number of months to forecast (1-12, default 3)
|
|
2902
|
+
* @returns ForecastResponseDto Forecast retrieved successfully
|
|
2803
2903
|
* @throws ApiError
|
|
2804
2904
|
*/
|
|
2805
|
-
public static
|
|
2806
|
-
data:
|
|
2807
|
-
): CancelablePromise<
|
|
2905
|
+
public static forecastControllerGetForecast(
|
|
2906
|
+
data: ForecastControllerGetForecastData
|
|
2907
|
+
): CancelablePromise<ForecastControllerGetForecastResponse> {
|
|
2808
2908
|
return __request(OpenAPI, {
|
|
2809
|
-
method: '
|
|
2810
|
-
url: '/api/v1/{region}/bean/
|
|
2909
|
+
method: 'GET',
|
|
2910
|
+
url: '/api/v1/{region}/bean/recurring/forecast',
|
|
2811
2911
|
path: {
|
|
2812
|
-
ruleId: data.ruleId,
|
|
2813
2912
|
region: data.region
|
|
2814
2913
|
},
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
403: 'Forbidden - not owner of rule',
|
|
2818
|
-
404: 'Rule not found',
|
|
2819
|
-
409: 'Resource conflict - rule is being modified by another process'
|
|
2914
|
+
query: {
|
|
2915
|
+
months: data.months
|
|
2820
2916
|
}
|
|
2821
2917
|
});
|
|
2822
2918
|
}
|
|
2919
|
+
}
|
|
2823
2920
|
|
|
2921
|
+
export class BeanCategoryCatalogService {
|
|
2824
2922
|
/**
|
|
2825
|
-
*
|
|
2923
|
+
* List category catalog for a region
|
|
2924
|
+
* Returns the region-scoped category slugs (expense/income/investment/banking/transfer/payment) for the NLP result picker, each with the categoryAccount paths the region-enabled system rules map it to (#816). CN-exclusive payment instruments (huabei/baitiao) appear only under /cn.
|
|
2826
2925
|
* @param data The data for the request.
|
|
2827
|
-
* @param data.ruleId Rule ID to test
|
|
2828
2926
|
* @param data.region Region code for tenant context
|
|
2829
|
-
* @param data.
|
|
2830
|
-
* @
|
|
2927
|
+
* @param data.scenario Filter by scenario
|
|
2928
|
+
* @param data.routeBearing Filter by routeBearing (entity-router route() consumes it)
|
|
2929
|
+
* @returns CategoryCatalogListResponseDto Category catalog retrieved successfully
|
|
2831
2930
|
* @throws ApiError
|
|
2832
2931
|
*/
|
|
2833
|
-
public static
|
|
2834
|
-
data:
|
|
2835
|
-
): CancelablePromise<
|
|
2932
|
+
public static categoryCatalogControllerList(
|
|
2933
|
+
data: CategoryCatalogControllerListData
|
|
2934
|
+
): CancelablePromise<CategoryCatalogControllerListResponse> {
|
|
2836
2935
|
return __request(OpenAPI, {
|
|
2837
|
-
method: '
|
|
2838
|
-
url: '/api/v1/{region}/bean/
|
|
2936
|
+
method: 'GET',
|
|
2937
|
+
url: '/api/v1/{region}/bean/categories',
|
|
2839
2938
|
path: {
|
|
2840
|
-
ruleId: data.ruleId,
|
|
2841
2939
|
region: data.region
|
|
2842
2940
|
},
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
401: 'Unauthorized',
|
|
2847
|
-
403: 'Forbidden - not owner of rule',
|
|
2848
|
-
404: 'Rule not found'
|
|
2941
|
+
query: {
|
|
2942
|
+
scenario: data.scenario,
|
|
2943
|
+
routeBearing: data.routeBearing
|
|
2849
2944
|
}
|
|
2850
2945
|
});
|
|
2851
2946
|
}
|
|
@@ -3030,7 +3125,7 @@ export class OnboardingService {
|
|
|
3030
3125
|
/**
|
|
3031
3126
|
* Bootstrap core accounts + register asset accounts with opening balances (ADR-0113)
|
|
3032
3127
|
* @param data The data for the request.
|
|
3033
|
-
* @param data.region Region code for tenant context
|
|
3128
|
+
* @param data.region Region code for tenant context. Not-yet-open codes are accepted: the universal catalog backs onboarding regardless of region (#759)
|
|
3034
3129
|
* @param data.requestBody
|
|
3035
3130
|
* @returns unknown Onboarding bootstrap result.
|
|
3036
3131
|
* @throws ApiError
|
|
@@ -3163,13 +3258,20 @@ export class BeanExportService {
|
|
|
3163
3258
|
/**
|
|
3164
3259
|
* Export Beancount ledger as ZIP
|
|
3165
3260
|
* Export all user Beancount data as a ZIP file containing ledger.beancount and yearly files in community format.
|
|
3166
|
-
* @
|
|
3261
|
+
* @param data The data for the request.
|
|
3262
|
+
* @param data.region Region code for tenant context
|
|
3263
|
+
* @returns binary ZIP archive (application/zip) streamed as an attachment
|
|
3167
3264
|
* @throws ApiError
|
|
3168
3265
|
*/
|
|
3169
|
-
public static exportControllerExportBeancount(
|
|
3266
|
+
public static exportControllerExportBeancount(
|
|
3267
|
+
data: ExportControllerExportBeancountData
|
|
3268
|
+
): CancelablePromise<ExportControllerExportBeancountResponse> {
|
|
3170
3269
|
return __request(OpenAPI, {
|
|
3171
3270
|
method: 'GET',
|
|
3172
|
-
url: '/api/v1/{region}/bean/export/beancount'
|
|
3271
|
+
url: '/api/v1/{region}/bean/export/beancount',
|
|
3272
|
+
path: {
|
|
3273
|
+
region: data.region
|
|
3274
|
+
}
|
|
3173
3275
|
});
|
|
3174
3276
|
}
|
|
3175
3277
|
}
|
|
@@ -3206,7 +3308,7 @@ export class BeanImportService {
|
|
|
3206
3308
|
|
|
3207
3309
|
/**
|
|
3208
3310
|
* Identify file type
|
|
3209
|
-
*
|
|
3311
|
+
* Server-side importer identification has been removed (ADR-0101); file matching is handled client-side via the community parser pipeline. Always returns identified=false with an explanatory message; kept for backward compatibility. Does not perform actual import.
|
|
3210
3312
|
* @param data The data for the request.
|
|
3211
3313
|
* @param data.region Region code for tenant context
|
|
3212
3314
|
* @param data.formData File to identify
|
|
@@ -3726,13 +3828,20 @@ export class BeanPlatformsService {
|
|
|
3726
3828
|
|
|
3727
3829
|
/**
|
|
3728
3830
|
* Get platform list for current user
|
|
3831
|
+
* @param data The data for the request.
|
|
3832
|
+
* @param data.region Region code (ISO 3166-1 alpha-2) that biases within-type-bucket ordering (local-region platforms first). Case-insensitive — stored/compared UPPERCASE ("cn" == "CN").
|
|
3729
3833
|
* @returns PlatformListItemDto List of platforms with user binding status
|
|
3730
3834
|
* @throws ApiError
|
|
3731
3835
|
*/
|
|
3732
|
-
public static platformControllerGetPlatformList(
|
|
3836
|
+
public static platformControllerGetPlatformList(
|
|
3837
|
+
data: PlatformControllerGetPlatformListData = {}
|
|
3838
|
+
): CancelablePromise<PlatformControllerGetPlatformListResponse> {
|
|
3733
3839
|
return __request(OpenAPI, {
|
|
3734
3840
|
method: 'GET',
|
|
3735
|
-
url: '/api/v1/bean/platforms/list'
|
|
3841
|
+
url: '/api/v1/bean/platforms/list',
|
|
3842
|
+
query: {
|
|
3843
|
+
region: data.region
|
|
3844
|
+
}
|
|
3736
3845
|
});
|
|
3737
3846
|
}
|
|
3738
3847
|
|
|
@@ -3740,7 +3849,7 @@ export class BeanPlatformsService {
|
|
|
3740
3849
|
* Match platforms by name or alias
|
|
3741
3850
|
* @param data The data for the request.
|
|
3742
3851
|
* @param data.q Search query — Chinese name, English name, or abbreviation
|
|
3743
|
-
* @param data.region Region code
|
|
3852
|
+
* @param data.region Region code (ISO 3166-1 alpha-2) that biases within-tier ordering (local-region platforms first); also the intended categoryOverrides key. Case-insensitive — stored/compared UPPERCASE ("cn" == "CN").
|
|
3744
3853
|
* @returns PlatformMatchResponseDto Matching platforms with overall match type and truncation flag
|
|
3745
3854
|
* @throws ApiError
|
|
3746
3855
|
*/
|
|
@@ -3757,6 +3866,31 @@ export class BeanPlatformsService {
|
|
|
3757
3866
|
});
|
|
3758
3867
|
}
|
|
3759
3868
|
|
|
3869
|
+
/**
|
|
3870
|
+
* Get the region and candidate account standards for a platform
|
|
3871
|
+
* @param data The data for the request.
|
|
3872
|
+
* @param data.id Platform ID (from a match result)
|
|
3873
|
+
* @param data.region Region code (ISO 3166-1 alpha-2, case-insensitive). Required for global platforms (countryCode null) — resolved as their template region; ignored when the platform has its own countryCode.
|
|
3874
|
+
* @param data.type Filter templates by account type (path first segment)
|
|
3875
|
+
* @returns PlatformStandardsResponseDto Resolved region plus the merged account-standard catalog of that region (groupable by productCategory client-side)
|
|
3876
|
+
* @throws ApiError
|
|
3877
|
+
*/
|
|
3878
|
+
public static platformControllerGetPlatformStandards(
|
|
3879
|
+
data: PlatformControllerGetPlatformStandardsData
|
|
3880
|
+
): CancelablePromise<PlatformControllerGetPlatformStandardsResponse> {
|
|
3881
|
+
return __request(OpenAPI, {
|
|
3882
|
+
method: 'GET',
|
|
3883
|
+
url: '/api/v1/bean/platforms/{id}/standards',
|
|
3884
|
+
path: {
|
|
3885
|
+
id: data.id
|
|
3886
|
+
},
|
|
3887
|
+
query: {
|
|
3888
|
+
region: data.region,
|
|
3889
|
+
type: data.type
|
|
3890
|
+
}
|
|
3891
|
+
});
|
|
3892
|
+
}
|
|
3893
|
+
|
|
3760
3894
|
/**
|
|
3761
3895
|
* Update a platform
|
|
3762
3896
|
* @param data The data for the request.
|
|
@@ -3923,6 +4057,34 @@ export class DashboardService {
|
|
|
3923
4057
|
}
|
|
3924
4058
|
});
|
|
3925
4059
|
}
|
|
4060
|
+
|
|
4061
|
+
/**
|
|
4062
|
+
* Get the composite P8 advisor context
|
|
4063
|
+
* Assembles the P8 data context in one call: net worth (verbatim GET /dashboard/net-worth shape, user base currency semantics per ADR-0070), trailing-12m flow totals over the 12 calendar months including the as-of month, and top-3 expense categories by account-path leaf key — both flow blocks priced in CNY per the P8 contract. The P8 snake_case field spellings (as_of, net_worth, trailing_12m) are mapped by the consumer; the wire keeps the family camelCase
|
|
4064
|
+
* @param data The data for the request.
|
|
4065
|
+
* @param data.region Region code for tenant context
|
|
4066
|
+
* @param data.date As-of date for the snapshot and the trailing-12m window anchor (ISO 8601 format)
|
|
4067
|
+
* @returns AdvisorContextResponseDto Advisor context retrieved successfully
|
|
4068
|
+
* @throws ApiError
|
|
4069
|
+
*/
|
|
4070
|
+
public static dashboardControllerGetAdvisorContext(
|
|
4071
|
+
data: DashboardControllerGetAdvisorContextData
|
|
4072
|
+
): CancelablePromise<DashboardControllerGetAdvisorContextResponse> {
|
|
4073
|
+
return __request(OpenAPI, {
|
|
4074
|
+
method: 'GET',
|
|
4075
|
+
url: '/api/v1/{region}/dashboard/advisor-context',
|
|
4076
|
+
path: {
|
|
4077
|
+
region: data.region
|
|
4078
|
+
},
|
|
4079
|
+
query: {
|
|
4080
|
+
date: data.date
|
|
4081
|
+
},
|
|
4082
|
+
errors: {
|
|
4083
|
+
400: 'Invalid date format',
|
|
4084
|
+
401: 'User not authenticated, or the token is not advisor-scoped (exchange via POST /auth/sessions/advisor, #1512)'
|
|
4085
|
+
}
|
|
4086
|
+
});
|
|
4087
|
+
}
|
|
3926
4088
|
}
|
|
3927
4089
|
|
|
3928
4090
|
export class InvestmentService {
|
|
@@ -3998,17 +4160,75 @@ export class AuthService {
|
|
|
3998
4160
|
}
|
|
3999
4161
|
});
|
|
4000
4162
|
}
|
|
4163
|
+
|
|
4164
|
+
/**
|
|
4165
|
+
* Exchange an access token for an advisor-scoped, short-TTL JWT (#1512)
|
|
4166
|
+
* @param data The data for the request.
|
|
4167
|
+
* @param data.requestBody
|
|
4168
|
+
* @returns AdvisorLoginResponseDto Advisor-scope login successful — the token is valid only on advisor tool-face endpoints (e.g. GET /:region/dashboard/advisor-context)
|
|
4169
|
+
* @throws ApiError
|
|
4170
|
+
*/
|
|
4171
|
+
public static authControllerAdvisorTokenLogin(
|
|
4172
|
+
data: AuthControllerAdvisorTokenLoginData
|
|
4173
|
+
): CancelablePromise<AuthControllerAdvisorTokenLoginResponse> {
|
|
4174
|
+
return __request(OpenAPI, {
|
|
4175
|
+
method: 'POST',
|
|
4176
|
+
url: '/api/v1/auth/sessions/advisor',
|
|
4177
|
+
body: data.requestBody,
|
|
4178
|
+
mediaType: 'application/json',
|
|
4179
|
+
errors: {
|
|
4180
|
+
401: 'Invalid access token'
|
|
4181
|
+
}
|
|
4182
|
+
});
|
|
4183
|
+
}
|
|
4184
|
+
}
|
|
4185
|
+
|
|
4186
|
+
export class CommunityService {
|
|
4187
|
+
/**
|
|
4188
|
+
* Relay a sanitized parser-contribution payload
|
|
4189
|
+
* A server-side bot re-sanitizes the payload and opens an issue on the target repository; the issue URL is returned. The payload is never persisted or logged (forward-and-drop).
|
|
4190
|
+
* @param data The data for the request.
|
|
4191
|
+
* @param data.region Region code for tenant context (routing only; the institution region rides in the payload meta)
|
|
4192
|
+
* @param data.requestBody
|
|
4193
|
+
* @returns ParserContributionRelayResponseDto Issue created by the bot
|
|
4194
|
+
* @throws ApiError
|
|
4195
|
+
*/
|
|
4196
|
+
public static parserContributionControllerCreate(
|
|
4197
|
+
data: ParserContributionControllerCreateData
|
|
4198
|
+
): CancelablePromise<ParserContributionControllerCreateResponse> {
|
|
4199
|
+
return __request(OpenAPI, {
|
|
4200
|
+
method: 'POST',
|
|
4201
|
+
url: '/api/v1/{region}/community/parser-contributions',
|
|
4202
|
+
path: {
|
|
4203
|
+
region: data.region
|
|
4204
|
+
},
|
|
4205
|
+
body: data.requestBody,
|
|
4206
|
+
mediaType: 'application/json',
|
|
4207
|
+
errors: {
|
|
4208
|
+
401: 'Unauthorized',
|
|
4209
|
+
422: 'Validation failed (institution slug, empty samples, row/cell size limits)',
|
|
4210
|
+
429: 'Rate limited (5 submissions per user per hour)',
|
|
4211
|
+
501: 'Relay not configured on this deployment — clients fall back to the clipboard flow',
|
|
4212
|
+
502: 'GitHub bot failure (upstream), safe to retry'
|
|
4213
|
+
}
|
|
4214
|
+
});
|
|
4215
|
+
}
|
|
4001
4216
|
}
|
|
4002
4217
|
|
|
4003
|
-
export class
|
|
4218
|
+
export class AdminCacheService {
|
|
4004
4219
|
/**
|
|
4005
|
-
*
|
|
4220
|
+
* Flush entire cache (L1 + L2)
|
|
4221
|
+
* Clears ALL cache entries across ALL namespaces and users. Use only for emergency cache corruption recovery, maintenance-window refresh, or development resets.
|
|
4222
|
+
* @returns unknown Cache flushed successfully
|
|
4006
4223
|
* @throws ApiError
|
|
4007
4224
|
*/
|
|
4008
4225
|
public static cacheControllerFlushCache(): CancelablePromise<CacheControllerFlushCacheResponse> {
|
|
4009
4226
|
return __request(OpenAPI, {
|
|
4010
4227
|
method: 'POST',
|
|
4011
|
-
url: '/api/v1/cache/flush'
|
|
4228
|
+
url: '/api/v1/cache/flush',
|
|
4229
|
+
errors: {
|
|
4230
|
+
403: 'Admin access required'
|
|
4231
|
+
}
|
|
4012
4232
|
});
|
|
4013
4233
|
}
|
|
4014
4234
|
}
|
|
@@ -4169,3 +4389,53 @@ export class InfoService {
|
|
|
4169
4389
|
});
|
|
4170
4390
|
}
|
|
4171
4391
|
}
|
|
4392
|
+
|
|
4393
|
+
export class MarketDataService {
|
|
4394
|
+
/**
|
|
4395
|
+
* Search market symbols by name or code
|
|
4396
|
+
* Ranked search over the openbb catalog. Empty `q` returns [].
|
|
4397
|
+
* @param data The data for the request.
|
|
4398
|
+
* @param data.q Search term — matched against symbol and instrument name. Empty string returns [].
|
|
4399
|
+
* @param data.limit Maximum number of results (clamped 1..50)
|
|
4400
|
+
* @param data.exchange Filter by exchange code (e.g. US, HK, SS, SZ). A-share codes also match symbol notations and venue-code aliases (exchange=SS matches SH/SHH column values and bare 6-digit Shanghai symbols; SZ likewise)
|
|
4401
|
+
* @param data.assetType Filter by OpenBB asset_type (e.g. stock, etf)
|
|
4402
|
+
* @returns SymbolSearchResultDto Ranked search results
|
|
4403
|
+
* @throws ApiError
|
|
4404
|
+
*/
|
|
4405
|
+
public static symbolControllerSearch(
|
|
4406
|
+
data: SymbolControllerSearchData
|
|
4407
|
+
): CancelablePromise<SymbolControllerSearchResponse> {
|
|
4408
|
+
return __request(OpenAPI, {
|
|
4409
|
+
method: 'GET',
|
|
4410
|
+
url: '/api/v1/market/symbols/search',
|
|
4411
|
+
query: {
|
|
4412
|
+
q: data.q,
|
|
4413
|
+
limit: data.limit,
|
|
4414
|
+
exchange: data.exchange,
|
|
4415
|
+
assetType: data.assetType
|
|
4416
|
+
}
|
|
4417
|
+
});
|
|
4418
|
+
}
|
|
4419
|
+
|
|
4420
|
+
/**
|
|
4421
|
+
* Get a market symbol quote
|
|
4422
|
+
* @param data The data for the request.
|
|
4423
|
+
* @param data.symbol
|
|
4424
|
+
* @returns SymbolQuoteDto Symbol quote
|
|
4425
|
+
* @throws ApiError
|
|
4426
|
+
*/
|
|
4427
|
+
public static symbolControllerGetQuote(
|
|
4428
|
+
data: SymbolControllerGetQuoteData
|
|
4429
|
+
): CancelablePromise<SymbolControllerGetQuoteResponse> {
|
|
4430
|
+
return __request(OpenAPI, {
|
|
4431
|
+
method: 'GET',
|
|
4432
|
+
url: '/api/v1/market/symbols/{symbol}/quote',
|
|
4433
|
+
path: {
|
|
4434
|
+
symbol: data.symbol
|
|
4435
|
+
},
|
|
4436
|
+
errors: {
|
|
4437
|
+
404: 'Symbol not found in the openbb catalog'
|
|
4438
|
+
}
|
|
4439
|
+
});
|
|
4440
|
+
}
|
|
4441
|
+
}
|