@firela/api-types 0.0.0-canary.285599dd → 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 +5241 -3715
- package/dist/index.d.ts +5241 -3715
- package/dist/index.js +61 -6
- package/dist/index.mjs +61 -6
- package/package.json +1 -1
- package/src/generated/schemas.gen.ts +4719 -2698
- package/src/generated/services.gen.ts +1874 -1323
- package/src/generated/types.gen.ts +25486 -2641
|
@@ -17,6 +17,8 @@ import type {
|
|
|
17
17
|
AccountControllerCloseResponse,
|
|
18
18
|
AccountControllerReopenData,
|
|
19
19
|
AccountControllerReopenResponse,
|
|
20
|
+
AccountControllerAddOpeningBalanceData,
|
|
21
|
+
AccountControllerAddOpeningBalanceResponse,
|
|
20
22
|
AccountStandardsControllerGetTemplatesData,
|
|
21
23
|
AccountStandardsControllerGetTemplatesResponse,
|
|
22
24
|
AccountStandardsControllerGetTemplateMetadataData,
|
|
@@ -29,6 +31,8 @@ import type {
|
|
|
29
31
|
TransactionControllerListResponse,
|
|
30
32
|
TransactionControllerCreateBatchData,
|
|
31
33
|
TransactionControllerCreateBatchResponse,
|
|
34
|
+
TransactionControllerBatchVoidData,
|
|
35
|
+
TransactionControllerBatchVoidResponse,
|
|
32
36
|
TransactionControllerCorrectData,
|
|
33
37
|
TransactionControllerCorrectResponse,
|
|
34
38
|
TransactionControllerSuggestTagsData,
|
|
@@ -55,6 +59,48 @@ import type {
|
|
|
55
59
|
ReviewControllerUndoResponse,
|
|
56
60
|
ReviewControllerBatchResolveData,
|
|
57
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,
|
|
58
104
|
PayeeControllerCreateData,
|
|
59
105
|
PayeeControllerCreateResponse,
|
|
60
106
|
PayeeControllerFindAllData,
|
|
@@ -83,6 +129,7 @@ import type {
|
|
|
83
129
|
PayeeProfileAdminControllerVerifyResponse,
|
|
84
130
|
PayeeProfileAdminControllerUnverifyData,
|
|
85
131
|
PayeeProfileAdminControllerUnverifyResponse,
|
|
132
|
+
PayeeProfileControllerListActiveResponse,
|
|
86
133
|
CommodityControllerCreateData,
|
|
87
134
|
CommodityControllerCreateResponse,
|
|
88
135
|
CommodityControllerFindAllData,
|
|
@@ -97,6 +144,26 @@ import type {
|
|
|
97
144
|
CommodityControllerGetOrCreateResponse,
|
|
98
145
|
CommodityControllerBulkCreateData,
|
|
99
146
|
CommodityControllerBulkCreateResponse,
|
|
147
|
+
ReportingControllerGetPortfolioTrendsData,
|
|
148
|
+
ReportingControllerGetPortfolioTrendsResponse,
|
|
149
|
+
ReportingControllerGetCashFlowTrendsData,
|
|
150
|
+
ReportingControllerGetCashFlowTrendsResponse,
|
|
151
|
+
ReportingControllerGenerateSnapshotData,
|
|
152
|
+
ReportingControllerGenerateSnapshotResponse,
|
|
153
|
+
ReportingControllerBackfillSnapshotsData,
|
|
154
|
+
ReportingControllerBackfillSnapshotsResponse,
|
|
155
|
+
PriceControllerCreateData,
|
|
156
|
+
PriceControllerCreateResponse,
|
|
157
|
+
PriceControllerFindAllData,
|
|
158
|
+
PriceControllerFindAllResponse,
|
|
159
|
+
PriceControllerFindOneData,
|
|
160
|
+
PriceControllerFindOneResponse,
|
|
161
|
+
PriceControllerUpdateData,
|
|
162
|
+
PriceControllerUpdateResponse,
|
|
163
|
+
PriceControllerDeleteData,
|
|
164
|
+
PriceControllerDeleteResponse,
|
|
165
|
+
PriceControllerBulkCreateData,
|
|
166
|
+
PriceControllerBulkCreateResponse,
|
|
100
167
|
RecurringRuleControllerCreateData,
|
|
101
168
|
RecurringRuleControllerCreateResponse,
|
|
102
169
|
RecurringRuleControllerFindAllData,
|
|
@@ -129,48 +196,8 @@ import type {
|
|
|
129
196
|
ExpectedTransactionControllerEnterNowResponse,
|
|
130
197
|
ForecastControllerGetForecastData,
|
|
131
198
|
ForecastControllerGetForecastResponse,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
TransactionRuleControllerListData,
|
|
135
|
-
TransactionRuleControllerListResponse,
|
|
136
|
-
TransactionRuleControllerValidateData,
|
|
137
|
-
TransactionRuleControllerValidateResponse,
|
|
138
|
-
TransactionRuleControllerBulkCreateData,
|
|
139
|
-
TransactionRuleControllerBulkCreateResponse,
|
|
140
|
-
TransactionRuleControllerExportData,
|
|
141
|
-
TransactionRuleControllerExportResponse,
|
|
142
|
-
TransactionRuleControllerGetStatisticsData,
|
|
143
|
-
TransactionRuleControllerGetStatisticsResponse,
|
|
144
|
-
TransactionRuleControllerGetDetailData,
|
|
145
|
-
TransactionRuleControllerGetDetailResponse,
|
|
146
|
-
TransactionRuleControllerUpdateData,
|
|
147
|
-
TransactionRuleControllerUpdateResponse,
|
|
148
|
-
TransactionRuleControllerDeleteData,
|
|
149
|
-
TransactionRuleControllerDeleteResponse,
|
|
150
|
-
TransactionRuleControllerTestData,
|
|
151
|
-
TransactionRuleControllerTestResponse,
|
|
152
|
-
UserControllerDeleteOwnUserData,
|
|
153
|
-
UserControllerDeleteOwnUserResponse,
|
|
154
|
-
UserControllerGetUserData,
|
|
155
|
-
UserControllerGetUserResponse,
|
|
156
|
-
UserControllerSignupUserData,
|
|
157
|
-
UserControllerSignupUserResponse,
|
|
158
|
-
UserControllerDeleteUserData,
|
|
159
|
-
UserControllerDeleteUserResponse,
|
|
160
|
-
UserControllerGetUserInfoData,
|
|
161
|
-
UserControllerGetUserInfoResponse,
|
|
162
|
-
UserControllerUpdateUserSettingData,
|
|
163
|
-
UserControllerUpdateUserSettingResponse,
|
|
164
|
-
UserControllerGetAllUserSettingsByPageData,
|
|
165
|
-
UserControllerGetAllUserSettingsByPageResponse,
|
|
166
|
-
UserControllerGetAssetLiabilitySummaryResponse,
|
|
167
|
-
PropertyControllerGetAllResponse,
|
|
168
|
-
PropertyControllerGetByKeyData,
|
|
169
|
-
PropertyControllerGetByKeyResponse,
|
|
170
|
-
PropertyControllerUpdateData,
|
|
171
|
-
PropertyControllerUpdateResponse,
|
|
172
|
-
PropertyControllerDeleteData,
|
|
173
|
-
PropertyControllerDeleteResponse,
|
|
199
|
+
CategoryCatalogControllerListData,
|
|
200
|
+
CategoryCatalogControllerListResponse,
|
|
174
201
|
EventControllerCreateData,
|
|
175
202
|
EventControllerCreateResponse,
|
|
176
203
|
EventControllerFindAllData,
|
|
@@ -183,6 +210,17 @@ import type {
|
|
|
183
210
|
EventControllerDeleteResponse,
|
|
184
211
|
EventControllerGetSliceData,
|
|
185
212
|
EventControllerGetSliceResponse,
|
|
213
|
+
OnboardingControllerBootstrapData,
|
|
214
|
+
OnboardingControllerBootstrapResponse,
|
|
215
|
+
ReconciliationControllerComputeData,
|
|
216
|
+
ReconciliationControllerComputeResponse,
|
|
217
|
+
ReconciliationControllerAssertData,
|
|
218
|
+
ReconciliationControllerAssertResponse,
|
|
219
|
+
ReconciliationControllerPadData,
|
|
220
|
+
ReconciliationControllerPadResponse,
|
|
221
|
+
ReconciliationControllerHistoryData,
|
|
222
|
+
ReconciliationControllerHistoryResponse,
|
|
223
|
+
ExportControllerExportBeancountData,
|
|
186
224
|
ExportControllerExportBeancountResponse,
|
|
187
225
|
FileImportControllerImportFileData,
|
|
188
226
|
FileImportControllerImportFileResponse,
|
|
@@ -196,22 +234,20 @@ import type {
|
|
|
196
234
|
ImporterConfigControllerUpdateConfigResponse,
|
|
197
235
|
ImporterConfigControllerResetConfigData,
|
|
198
236
|
ImporterConfigControllerResetConfigResponse,
|
|
199
|
-
PlatformControllerFindAllResponse,
|
|
200
|
-
PlatformControllerCreateData,
|
|
201
|
-
PlatformControllerCreateResponse,
|
|
202
|
-
PlatformControllerGetPlatformListResponse,
|
|
203
|
-
PlatformControllerMatchPlatformsData,
|
|
204
|
-
PlatformControllerMatchPlatformsResponse,
|
|
205
|
-
PlatformControllerUpdateData,
|
|
206
|
-
PlatformControllerUpdateResponse,
|
|
207
|
-
PlatformControllerDeleteData,
|
|
208
|
-
PlatformControllerDeleteResponse,
|
|
209
237
|
ProviderSyncControllerSyncData,
|
|
210
238
|
ProviderSyncControllerSyncResponse,
|
|
211
239
|
ProviderSyncControllerGetSupportedProvidersData,
|
|
212
240
|
ProviderSyncControllerGetSupportedProvidersResponse,
|
|
213
241
|
ProviderSyncControllerIsProviderSupportedData,
|
|
214
242
|
ProviderSyncControllerIsProviderSupportedResponse,
|
|
243
|
+
ExternalAccountLinkControllerCreateData,
|
|
244
|
+
ExternalAccountLinkControllerCreateResponse,
|
|
245
|
+
ExternalAccountLinkControllerFindAllData,
|
|
246
|
+
ExternalAccountLinkControllerFindAllResponse,
|
|
247
|
+
ExternalAccountLinkControllerFindOneData,
|
|
248
|
+
ExternalAccountLinkControllerFindOneResponse,
|
|
249
|
+
ExternalAccountLinkControllerRemoveData,
|
|
250
|
+
ExternalAccountLinkControllerRemoveResponse,
|
|
215
251
|
TelemetryControllerReportTelemetryData,
|
|
216
252
|
TelemetryControllerReportTelemetryResponse,
|
|
217
253
|
TelemetryControllerReportCoverageMissData,
|
|
@@ -224,6 +260,19 @@ import type {
|
|
|
224
260
|
NlpControllerClearSessionResponse,
|
|
225
261
|
NlpControllerGetSessionData,
|
|
226
262
|
NlpControllerGetSessionResponse,
|
|
263
|
+
PlatformControllerFindAllResponse,
|
|
264
|
+
PlatformControllerCreateData,
|
|
265
|
+
PlatformControllerCreateResponse,
|
|
266
|
+
PlatformControllerGetPlatformListData,
|
|
267
|
+
PlatformControllerGetPlatformListResponse,
|
|
268
|
+
PlatformControllerMatchPlatformsData,
|
|
269
|
+
PlatformControllerMatchPlatformsResponse,
|
|
270
|
+
PlatformControllerGetPlatformStandardsData,
|
|
271
|
+
PlatformControllerGetPlatformStandardsResponse,
|
|
272
|
+
PlatformControllerUpdateData,
|
|
273
|
+
PlatformControllerUpdateResponse,
|
|
274
|
+
PlatformControllerDeleteData,
|
|
275
|
+
PlatformControllerDeleteResponse,
|
|
227
276
|
DashboardControllerGetNetWorthData,
|
|
228
277
|
DashboardControllerGetNetWorthResponse,
|
|
229
278
|
DashboardControllerGetAccountsData,
|
|
@@ -232,31 +281,17 @@ import type {
|
|
|
232
281
|
DashboardControllerGetCashFlowResponse,
|
|
233
282
|
DashboardControllerGetExpensesData,
|
|
234
283
|
DashboardControllerGetExpensesResponse,
|
|
284
|
+
DashboardControllerGetAdvisorContextData,
|
|
285
|
+
DashboardControllerGetAdvisorContextResponse,
|
|
235
286
|
HoldingPnlControllerGetHoldingPnlData,
|
|
236
287
|
HoldingPnlControllerGetHoldingPnlResponse,
|
|
237
|
-
PriceControllerCreateData,
|
|
238
|
-
PriceControllerCreateResponse,
|
|
239
|
-
PriceControllerFindAllData,
|
|
240
|
-
PriceControllerFindAllResponse,
|
|
241
|
-
PriceControllerFindOneData,
|
|
242
|
-
PriceControllerFindOneResponse,
|
|
243
|
-
PriceControllerUpdateData,
|
|
244
|
-
PriceControllerUpdateResponse,
|
|
245
|
-
PriceControllerDeleteData,
|
|
246
|
-
PriceControllerDeleteResponse,
|
|
247
|
-
PriceControllerBulkCreateData,
|
|
248
|
-
PriceControllerBulkCreateResponse,
|
|
249
|
-
ReportingControllerGetPortfolioTrendsData,
|
|
250
|
-
ReportingControllerGetPortfolioTrendsResponse,
|
|
251
|
-
ReportingControllerGetCashFlowTrendsData,
|
|
252
|
-
ReportingControllerGetCashFlowTrendsResponse,
|
|
253
|
-
ReportingControllerGenerateSnapshotData,
|
|
254
|
-
ReportingControllerGenerateSnapshotResponse,
|
|
255
|
-
ReportingControllerBackfillSnapshotsData,
|
|
256
|
-
ReportingControllerBackfillSnapshotsResponse,
|
|
257
288
|
ApiKeysControllerCreateApiKeyResponse,
|
|
258
289
|
AuthControllerAccessTokenLoginData,
|
|
259
290
|
AuthControllerAccessTokenLoginResponse,
|
|
291
|
+
AuthControllerAdvisorTokenLoginData,
|
|
292
|
+
AuthControllerAdvisorTokenLoginResponse,
|
|
293
|
+
ParserContributionControllerCreateData,
|
|
294
|
+
ParserContributionControllerCreateResponse,
|
|
260
295
|
CacheControllerFlushCacheResponse,
|
|
261
296
|
ExchangeRateControllerGetExchangeRateData,
|
|
262
297
|
ExchangeRateControllerGetExchangeRateResponse,
|
|
@@ -268,7 +303,11 @@ import type {
|
|
|
268
303
|
HealthControllerResetCircuitBreakerData,
|
|
269
304
|
HealthControllerResetCircuitBreakerResponse,
|
|
270
305
|
HealthControllerGetMetricsResponse,
|
|
271
|
-
InfoControllerGetInfoResponse
|
|
306
|
+
InfoControllerGetInfoResponse,
|
|
307
|
+
SymbolControllerSearchData,
|
|
308
|
+
SymbolControllerSearchResponse,
|
|
309
|
+
SymbolControllerGetQuoteData,
|
|
310
|
+
SymbolControllerGetQuoteResponse
|
|
272
311
|
} from './types.gen';
|
|
273
312
|
|
|
274
313
|
export class BeanAccountsService {
|
|
@@ -306,7 +345,7 @@ export class BeanAccountsService {
|
|
|
306
345
|
* @param data.type Filter by account type
|
|
307
346
|
* @param data.status Filter by status
|
|
308
347
|
* @param data.isCustom Filter by custom (user-created) accounts only
|
|
309
|
-
* @param data.search Search term
|
|
348
|
+
* @param data.search Search term matched against account path and user-set display name (case-insensitive)
|
|
310
349
|
* @param data.limit Maximum number of results
|
|
311
350
|
* @param data.offset Number of results to skip
|
|
312
351
|
* @returns AccountListResponseDto Accounts retrieved successfully
|
|
@@ -387,7 +426,7 @@ export class BeanAccountsService {
|
|
|
387
426
|
|
|
388
427
|
/**
|
|
389
428
|
* Delete account
|
|
390
|
-
* Deletes an account (only if no transactions)
|
|
429
|
+
* Deletes an account (only if no active transactions; voided/superseded residual postings are cleaned up)
|
|
391
430
|
* @param data The data for the request.
|
|
392
431
|
* @param data.id Account UUID
|
|
393
432
|
* @param data.region Region code for tenant context
|
|
@@ -406,7 +445,7 @@ export class BeanAccountsService {
|
|
|
406
445
|
},
|
|
407
446
|
errors: {
|
|
408
447
|
404: 'Account not found',
|
|
409
|
-
409: 'Account has transactions and cannot be deleted'
|
|
448
|
+
409: 'Account has active transactions and cannot be deleted'
|
|
410
449
|
}
|
|
411
450
|
});
|
|
412
451
|
}
|
|
@@ -468,16 +507,45 @@ export class BeanAccountsService {
|
|
|
468
507
|
}
|
|
469
508
|
});
|
|
470
509
|
}
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* Post an opening-balance transaction
|
|
513
|
+
* Posts a double-entry opening-balance transaction against Equity:Opening-Balances for an existing Assets/Liabilities account. At most one active opening balance per account.
|
|
514
|
+
* @param data The data for the request.
|
|
515
|
+
* @param data.id Account UUID
|
|
516
|
+
* @param data.region Region code for tenant context
|
|
517
|
+
* @param data.requestBody
|
|
518
|
+
* @returns OpeningBalanceResultDto Opening-balance transaction created
|
|
519
|
+
* @throws ApiError
|
|
520
|
+
*/
|
|
521
|
+
public static accountControllerAddOpeningBalance(
|
|
522
|
+
data: AccountControllerAddOpeningBalanceData
|
|
523
|
+
): CancelablePromise<AccountControllerAddOpeningBalanceResponse> {
|
|
524
|
+
return __request(OpenAPI, {
|
|
525
|
+
method: 'POST',
|
|
526
|
+
url: '/api/v1/{region}/bean/accounts/{id}/opening-balance',
|
|
527
|
+
path: {
|
|
528
|
+
id: data.id,
|
|
529
|
+
region: data.region
|
|
530
|
+
},
|
|
531
|
+
body: data.requestBody,
|
|
532
|
+
mediaType: 'application/json',
|
|
533
|
+
errors: {
|
|
534
|
+
404: 'Account not found',
|
|
535
|
+
409: 'An opening balance already exists for this account'
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
}
|
|
471
539
|
}
|
|
472
540
|
|
|
473
541
|
export class BeanAccountStandardsService {
|
|
474
542
|
/**
|
|
475
543
|
* Get account templates
|
|
476
|
-
* 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).
|
|
477
545
|
* @param data The data for the request.
|
|
478
|
-
* @param data.region Region code (
|
|
546
|
+
* @param data.region Region code (any ISO alpha-2; not-yet-open codes return the universal-only catalog)
|
|
479
547
|
* @param data.type Filter by account type
|
|
480
|
-
* @param data.search Search term for path or
|
|
548
|
+
* @param data.search Search term for path, description, aliases, or localized display name
|
|
481
549
|
* @returns AccountStandardListResponseDto Account templates retrieved successfully
|
|
482
550
|
* @throws ApiError
|
|
483
551
|
*/
|
|
@@ -499,9 +567,9 @@ export class BeanAccountStandardsService {
|
|
|
499
567
|
|
|
500
568
|
/**
|
|
501
569
|
* Get template metadata for an account path
|
|
502
|
-
* Returns
|
|
570
|
+
* Returns root type for a template path.
|
|
503
571
|
* @param data The data for the request.
|
|
504
|
-
* @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)
|
|
505
573
|
* @param data.path Account path to check
|
|
506
574
|
* @returns TemplateMetadataResponseDto Template metadata retrieved successfully
|
|
507
575
|
* @throws ApiError
|
|
@@ -523,9 +591,9 @@ export class BeanAccountStandardsService {
|
|
|
523
591
|
|
|
524
592
|
/**
|
|
525
593
|
* Get available regions with hierarchy
|
|
526
|
-
* Returns
|
|
594
|
+
* Returns the full region catalog (every ISO 3166-1 entry) with an 'open' flag and inheritance metadata (#759)
|
|
527
595
|
* @param data The data for the request.
|
|
528
|
-
* @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)
|
|
529
597
|
* @returns RegionsMetadataResponseDto Regions metadata retrieved successfully
|
|
530
598
|
* @throws ApiError
|
|
531
599
|
*/
|
|
@@ -582,9 +650,11 @@ export class BeanTransactionsService {
|
|
|
582
650
|
* @param data.offset Number of items to skip (default: 0)
|
|
583
651
|
* @param data.dateFrom Filter by start date (inclusive), format: YYYY-MM-DD
|
|
584
652
|
* @param data.dateTo Filter by end date (inclusive), format: YYYY-MM-DD
|
|
585
|
-
* @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).
|
|
586
654
|
* @param data.search Search in narration and payee fields (max 200 chars)
|
|
587
655
|
* @param data.accountId Filter by account ID (transactions with postings to this account)
|
|
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.
|
|
588
658
|
* @returns TransactionListResponseDto Transaction list
|
|
589
659
|
* @throws ApiError
|
|
590
660
|
*/
|
|
@@ -604,7 +674,9 @@ export class BeanTransactionsService {
|
|
|
604
674
|
dateTo: data.dateTo,
|
|
605
675
|
status: data.status,
|
|
606
676
|
search: data.search,
|
|
607
|
-
accountId: data.accountId
|
|
677
|
+
accountId: data.accountId,
|
|
678
|
+
category: data.category,
|
|
679
|
+
flow: data.flow
|
|
608
680
|
},
|
|
609
681
|
errors: {
|
|
610
682
|
400: 'Validation failed',
|
|
@@ -641,6 +713,34 @@ export class BeanTransactionsService {
|
|
|
641
713
|
});
|
|
642
714
|
}
|
|
643
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
|
+
|
|
644
744
|
/**
|
|
645
745
|
* Correct (supersede) a transaction
|
|
646
746
|
* Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
|
|
@@ -792,7 +892,7 @@ export class BeanBalancesService {
|
|
|
792
892
|
* Query account balance
|
|
793
893
|
* Calculate account balance at a specific date for a single currency
|
|
794
894
|
* @param data The data for the request.
|
|
795
|
-
* @param data.account Account name (e.g., "Assets:
|
|
895
|
+
* @param data.account Account name (e.g., "Assets:Checking")
|
|
796
896
|
* @param data.region Region code for tenant context
|
|
797
897
|
* @param data.date Date to calculate balance at (ISO 8601 format)
|
|
798
898
|
* @param data.currency Currency to query (e.g., "USD", "CNY")
|
|
@@ -985,1492 +1085,1862 @@ export class BeanReviewsService {
|
|
|
985
1085
|
}
|
|
986
1086
|
}
|
|
987
1087
|
|
|
988
|
-
export class
|
|
1088
|
+
export class BeanTransactionRulesService {
|
|
989
1089
|
/**
|
|
990
|
-
* Create a new
|
|
991
|
-
* 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.
|
|
992
1092
|
* @param data The data for the request.
|
|
1093
|
+
* @param data.region Region code for tenant context
|
|
993
1094
|
* @param data.requestBody
|
|
994
|
-
* @returns
|
|
1095
|
+
* @returns TransactionRuleResponseDto Rule updated successfully (upsert mode)
|
|
995
1096
|
* @throws ApiError
|
|
996
1097
|
*/
|
|
997
|
-
public static
|
|
998
|
-
data:
|
|
999
|
-
): CancelablePromise<
|
|
1098
|
+
public static transactionRuleControllerCreate(
|
|
1099
|
+
data: TransactionRuleControllerCreateData
|
|
1100
|
+
): CancelablePromise<TransactionRuleControllerCreateResponse> {
|
|
1000
1101
|
return __request(OpenAPI, {
|
|
1001
1102
|
method: 'POST',
|
|
1002
|
-
url: '/api/v1/bean/
|
|
1103
|
+
url: '/api/v1/{region}/bean/transaction-rules',
|
|
1104
|
+
path: {
|
|
1105
|
+
region: data.region
|
|
1106
|
+
},
|
|
1003
1107
|
body: data.requestBody,
|
|
1004
1108
|
mediaType: 'application/json',
|
|
1005
1109
|
errors: {
|
|
1006
|
-
400: '
|
|
1007
|
-
|
|
1110
|
+
400: 'Validation failed',
|
|
1111
|
+
401: 'Unauthorized',
|
|
1112
|
+
409: 'Resource conflict - another process is updating this rule'
|
|
1008
1113
|
}
|
|
1009
1114
|
});
|
|
1010
1115
|
}
|
|
1011
1116
|
|
|
1012
1117
|
/**
|
|
1013
|
-
*
|
|
1014
|
-
* Returns all payee mappings for the authenticated user with optional filtering
|
|
1118
|
+
* Get all transaction rules for user
|
|
1015
1119
|
* @param data The data for the request.
|
|
1016
|
-
* @param data.
|
|
1017
|
-
* @param data.
|
|
1018
|
-
* @param data.
|
|
1019
|
-
* @param data.
|
|
1020
|
-
* @param data.
|
|
1021
|
-
* @
|
|
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
|
|
1022
1127
|
* @throws ApiError
|
|
1023
1128
|
*/
|
|
1024
|
-
public static
|
|
1025
|
-
data:
|
|
1026
|
-
): CancelablePromise<
|
|
1129
|
+
public static transactionRuleControllerList(
|
|
1130
|
+
data: TransactionRuleControllerListData
|
|
1131
|
+
): CancelablePromise<TransactionRuleControllerListResponse> {
|
|
1027
1132
|
return __request(OpenAPI, {
|
|
1028
1133
|
method: 'GET',
|
|
1029
|
-
url: '/api/v1/bean/
|
|
1134
|
+
url: '/api/v1/{region}/bean/transaction-rules',
|
|
1135
|
+
path: {
|
|
1136
|
+
region: data.region
|
|
1137
|
+
},
|
|
1030
1138
|
query: {
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
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'
|
|
1036
1147
|
}
|
|
1037
1148
|
});
|
|
1038
1149
|
}
|
|
1039
1150
|
|
|
1040
1151
|
/**
|
|
1041
|
-
*
|
|
1042
|
-
* Returns active payee names matching the query, sorted by recent usage. Used for transaction input autocomplete.
|
|
1152
|
+
* Validate transaction rule configuration
|
|
1043
1153
|
* @param data The data for the request.
|
|
1044
|
-
* @param data.
|
|
1045
|
-
* @param data.
|
|
1046
|
-
* @returns
|
|
1154
|
+
* @param data.region Region code for tenant context
|
|
1155
|
+
* @param data.requestBody
|
|
1156
|
+
* @returns ValidateRuleResponseDto Validation result
|
|
1047
1157
|
* @throws ApiError
|
|
1048
1158
|
*/
|
|
1049
|
-
public static
|
|
1050
|
-
data:
|
|
1051
|
-
): CancelablePromise<
|
|
1159
|
+
public static transactionRuleControllerValidate(
|
|
1160
|
+
data: TransactionRuleControllerValidateData
|
|
1161
|
+
): CancelablePromise<TransactionRuleControllerValidateResponse> {
|
|
1052
1162
|
return __request(OpenAPI, {
|
|
1053
|
-
method: '
|
|
1054
|
-
url: '/api/v1/bean/
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
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'
|
|
1058
1173
|
}
|
|
1059
1174
|
});
|
|
1060
1175
|
}
|
|
1061
1176
|
|
|
1062
1177
|
/**
|
|
1063
|
-
*
|
|
1064
|
-
* Returns the most frequently used payees, sorted by use count. Used for statistics and analytics.
|
|
1178
|
+
* Bulk create transaction rules
|
|
1065
1179
|
* @param data The data for the request.
|
|
1066
|
-
* @param data.
|
|
1067
|
-
* @
|
|
1180
|
+
* @param data.region Region code for tenant context
|
|
1181
|
+
* @param data.requestBody
|
|
1182
|
+
* @returns BulkCreateRulesResponseDto Bulk create completed
|
|
1068
1183
|
* @throws ApiError
|
|
1069
1184
|
*/
|
|
1070
|
-
public static
|
|
1071
|
-
data:
|
|
1072
|
-
): CancelablePromise<
|
|
1185
|
+
public static transactionRuleControllerBulkCreate(
|
|
1186
|
+
data: TransactionRuleControllerBulkCreateData
|
|
1187
|
+
): CancelablePromise<TransactionRuleControllerBulkCreateResponse> {
|
|
1073
1188
|
return __request(OpenAPI, {
|
|
1074
|
-
method: '
|
|
1075
|
-
url: '/api/v1/bean/
|
|
1076
|
-
|
|
1077
|
-
|
|
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'
|
|
1078
1199
|
}
|
|
1079
1200
|
});
|
|
1080
1201
|
}
|
|
1081
1202
|
|
|
1082
1203
|
/**
|
|
1083
|
-
*
|
|
1084
|
-
* Returns a specific payee mapping by its UUID
|
|
1204
|
+
* Export transaction rules
|
|
1085
1205
|
* @param data The data for the request.
|
|
1086
|
-
* @param data.
|
|
1087
|
-
* @
|
|
1206
|
+
* @param data.format Export format (currently only JSON supported)
|
|
1207
|
+
* @param data.region Region code for tenant context
|
|
1208
|
+
* @returns ExportRulesResponseDto Exported rules
|
|
1088
1209
|
* @throws ApiError
|
|
1089
1210
|
*/
|
|
1090
|
-
public static
|
|
1091
|
-
data:
|
|
1092
|
-
): CancelablePromise<
|
|
1211
|
+
public static transactionRuleControllerExport(
|
|
1212
|
+
data: TransactionRuleControllerExportData
|
|
1213
|
+
): CancelablePromise<TransactionRuleControllerExportResponse> {
|
|
1093
1214
|
return __request(OpenAPI, {
|
|
1094
1215
|
method: 'GET',
|
|
1095
|
-
url: '/api/v1/bean/
|
|
1216
|
+
url: '/api/v1/{region}/bean/transaction-rules/export/{format}',
|
|
1096
1217
|
path: {
|
|
1097
|
-
|
|
1218
|
+
format: data.format,
|
|
1219
|
+
region: data.region
|
|
1098
1220
|
},
|
|
1099
1221
|
errors: {
|
|
1100
|
-
|
|
1101
|
-
|
|
1222
|
+
400: 'Unsupported format',
|
|
1223
|
+
401: 'Unauthorized'
|
|
1102
1224
|
}
|
|
1103
1225
|
});
|
|
1104
1226
|
}
|
|
1105
1227
|
|
|
1106
1228
|
/**
|
|
1107
|
-
*
|
|
1108
|
-
* Updates a payee mapping. The payee name cannot be changed after creation.
|
|
1229
|
+
* Get transaction rule statistics
|
|
1109
1230
|
* @param data The data for the request.
|
|
1110
|
-
* @param data.
|
|
1111
|
-
* @param data.
|
|
1112
|
-
* @returns
|
|
1231
|
+
* @param data.period Statistics time period
|
|
1232
|
+
* @param data.region Region code for tenant context
|
|
1233
|
+
* @returns RuleStatisticsResponseDto Rule statistics
|
|
1113
1234
|
* @throws ApiError
|
|
1114
1235
|
*/
|
|
1115
|
-
public static
|
|
1116
|
-
data:
|
|
1117
|
-
): CancelablePromise<
|
|
1236
|
+
public static transactionRuleControllerGetStatistics(
|
|
1237
|
+
data: TransactionRuleControllerGetStatisticsData
|
|
1238
|
+
): CancelablePromise<TransactionRuleControllerGetStatisticsResponse> {
|
|
1118
1239
|
return __request(OpenAPI, {
|
|
1119
|
-
method: '
|
|
1120
|
-
url: '/api/v1/bean/
|
|
1240
|
+
method: 'GET',
|
|
1241
|
+
url: '/api/v1/{region}/bean/transaction-rules/statistics/{period}',
|
|
1121
1242
|
path: {
|
|
1122
|
-
|
|
1243
|
+
period: data.period,
|
|
1244
|
+
region: data.region
|
|
1123
1245
|
},
|
|
1124
|
-
body: data.requestBody,
|
|
1125
|
-
mediaType: 'application/json',
|
|
1126
1246
|
errors: {
|
|
1127
|
-
|
|
1128
|
-
404: 'Payee not found'
|
|
1247
|
+
401: 'Unauthorized'
|
|
1129
1248
|
}
|
|
1130
1249
|
});
|
|
1131
1250
|
}
|
|
1132
1251
|
|
|
1133
1252
|
/**
|
|
1134
|
-
*
|
|
1135
|
-
* Soft deletes a payee by marking it as inactive. Inactive payees will not appear in autocomplete suggestions.
|
|
1253
|
+
* Get transaction rule detail
|
|
1136
1254
|
* @param data The data for the request.
|
|
1137
|
-
* @param data.
|
|
1138
|
-
* @
|
|
1255
|
+
* @param data.ruleId Rule ID
|
|
1256
|
+
* @param data.region Region code for tenant context
|
|
1257
|
+
* @returns TransactionRuleResponseDto Rule details
|
|
1139
1258
|
* @throws ApiError
|
|
1140
1259
|
*/
|
|
1141
|
-
public static
|
|
1142
|
-
data:
|
|
1143
|
-
): CancelablePromise<
|
|
1260
|
+
public static transactionRuleControllerGetDetail(
|
|
1261
|
+
data: TransactionRuleControllerGetDetailData
|
|
1262
|
+
): CancelablePromise<TransactionRuleControllerGetDetailResponse> {
|
|
1144
1263
|
return __request(OpenAPI, {
|
|
1145
|
-
method: '
|
|
1146
|
-
url: '/api/v1/bean/
|
|
1264
|
+
method: 'GET',
|
|
1265
|
+
url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
|
|
1147
1266
|
path: {
|
|
1148
|
-
|
|
1267
|
+
ruleId: data.ruleId,
|
|
1268
|
+
region: data.region
|
|
1149
1269
|
},
|
|
1150
1270
|
errors: {
|
|
1151
|
-
|
|
1271
|
+
401: 'Unauthorized',
|
|
1272
|
+
403: 'Forbidden - not owner of rule',
|
|
1273
|
+
404: 'Rule not found'
|
|
1152
1274
|
}
|
|
1153
1275
|
});
|
|
1154
1276
|
}
|
|
1155
|
-
}
|
|
1156
1277
|
|
|
1157
|
-
export class AdminPayeeProfilesService {
|
|
1158
1278
|
/**
|
|
1159
|
-
*
|
|
1160
|
-
* Creates a new global payee profile. The canonical name must be unique (case-insensitive).
|
|
1279
|
+
* Update a transaction rule
|
|
1161
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
|
|
1162
1283
|
* @param data.requestBody
|
|
1163
|
-
* @returns
|
|
1284
|
+
* @returns TransactionRuleResponseDto Rule updated successfully
|
|
1164
1285
|
* @throws ApiError
|
|
1165
1286
|
*/
|
|
1166
|
-
public static
|
|
1167
|
-
data:
|
|
1168
|
-
): CancelablePromise<
|
|
1287
|
+
public static transactionRuleControllerUpdate(
|
|
1288
|
+
data: TransactionRuleControllerUpdateData
|
|
1289
|
+
): CancelablePromise<TransactionRuleControllerUpdateResponse> {
|
|
1169
1290
|
return __request(OpenAPI, {
|
|
1170
|
-
method: '
|
|
1171
|
-
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
|
+
},
|
|
1172
1297
|
body: data.requestBody,
|
|
1173
1298
|
mediaType: 'application/json',
|
|
1174
1299
|
errors: {
|
|
1175
1300
|
400: 'Validation failed',
|
|
1176
|
-
|
|
1177
|
-
|
|
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'
|
|
1178
1305
|
}
|
|
1179
1306
|
});
|
|
1180
1307
|
}
|
|
1181
1308
|
|
|
1182
1309
|
/**
|
|
1183
|
-
*
|
|
1184
|
-
* Returns all payee profiles with optional filtering by category, country, verification status, etc.
|
|
1310
|
+
* Delete a transaction rule
|
|
1185
1311
|
* @param data The data for the request.
|
|
1186
|
-
* @param data.
|
|
1187
|
-
* @param data.
|
|
1188
|
-
* @
|
|
1189
|
-
* @param data.isActive Filter by active status (default: true - show only active)
|
|
1190
|
-
* @param data.verified Filter by verification status. true = verified only, false = unverified only
|
|
1191
|
-
* @param data.dataSource Filter by data source
|
|
1192
|
-
* @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
|
|
1193
1315
|
* @throws ApiError
|
|
1194
1316
|
*/
|
|
1195
|
-
public static
|
|
1196
|
-
data:
|
|
1197
|
-
): CancelablePromise<
|
|
1317
|
+
public static transactionRuleControllerDelete(
|
|
1318
|
+
data: TransactionRuleControllerDeleteData
|
|
1319
|
+
): CancelablePromise<TransactionRuleControllerDeleteResponse> {
|
|
1198
1320
|
return __request(OpenAPI, {
|
|
1199
|
-
method: '
|
|
1200
|
-
url: '/api/v1/
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
country: data.country,
|
|
1205
|
-
isActive: data.isActive,
|
|
1206
|
-
verified: data.verified,
|
|
1207
|
-
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
|
|
1208
1326
|
},
|
|
1209
1327
|
errors: {
|
|
1210
|
-
|
|
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'
|
|
1211
1332
|
}
|
|
1212
1333
|
});
|
|
1213
1334
|
}
|
|
1214
1335
|
|
|
1215
1336
|
/**
|
|
1216
|
-
*
|
|
1217
|
-
* Returns a single payee profile by its ID.
|
|
1337
|
+
* Test rule matching
|
|
1218
1338
|
* @param data The data for the request.
|
|
1219
|
-
* @param data.
|
|
1220
|
-
* @
|
|
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
|
|
1221
1343
|
* @throws ApiError
|
|
1222
1344
|
*/
|
|
1223
|
-
public static
|
|
1224
|
-
data:
|
|
1225
|
-
): CancelablePromise<
|
|
1345
|
+
public static transactionRuleControllerTest(
|
|
1346
|
+
data: TransactionRuleControllerTestData
|
|
1347
|
+
): CancelablePromise<TransactionRuleControllerTestResponse> {
|
|
1226
1348
|
return __request(OpenAPI, {
|
|
1227
|
-
method: '
|
|
1228
|
-
url: '/api/v1/
|
|
1349
|
+
method: 'POST',
|
|
1350
|
+
url: '/api/v1/{region}/bean/transaction-rules/{ruleId}/test',
|
|
1229
1351
|
path: {
|
|
1230
|
-
|
|
1352
|
+
ruleId: data.ruleId,
|
|
1353
|
+
region: data.region
|
|
1231
1354
|
},
|
|
1355
|
+
body: data.requestBody,
|
|
1356
|
+
mediaType: 'application/json',
|
|
1232
1357
|
errors: {
|
|
1233
|
-
|
|
1234
|
-
|
|
1358
|
+
401: 'Unauthorized',
|
|
1359
|
+
403: 'Forbidden - not owner of rule',
|
|
1360
|
+
404: 'Rule not found'
|
|
1235
1361
|
}
|
|
1236
1362
|
});
|
|
1237
1363
|
}
|
|
1364
|
+
}
|
|
1238
1365
|
|
|
1366
|
+
export class UsersService {
|
|
1239
1367
|
/**
|
|
1240
|
-
*
|
|
1241
|
-
* Updates an existing payee profile. The canonical name cannot be changed.
|
|
1368
|
+
* Delete own user account
|
|
1242
1369
|
* @param data The data for the request.
|
|
1243
|
-
* @param data.id Payee profile ID (UUID)
|
|
1244
1370
|
* @param data.requestBody
|
|
1245
|
-
* @returns
|
|
1371
|
+
* @returns void User deleted successfully
|
|
1246
1372
|
* @throws ApiError
|
|
1247
1373
|
*/
|
|
1248
|
-
public static
|
|
1249
|
-
data:
|
|
1250
|
-
): CancelablePromise<
|
|
1374
|
+
public static userControllerDeleteOwnUser(
|
|
1375
|
+
data: UserControllerDeleteOwnUserData
|
|
1376
|
+
): CancelablePromise<UserControllerDeleteOwnUserResponse> {
|
|
1251
1377
|
return __request(OpenAPI, {
|
|
1252
|
-
method: '
|
|
1253
|
-
url: '/api/v1/
|
|
1254
|
-
path: {
|
|
1255
|
-
id: data.id
|
|
1256
|
-
},
|
|
1378
|
+
method: 'DELETE',
|
|
1379
|
+
url: '/api/v1/users',
|
|
1257
1380
|
body: data.requestBody,
|
|
1258
1381
|
mediaType: 'application/json',
|
|
1259
1382
|
errors: {
|
|
1260
|
-
403: '
|
|
1261
|
-
404: 'Payee profile not found'
|
|
1383
|
+
403: 'Invalid access token'
|
|
1262
1384
|
}
|
|
1263
1385
|
});
|
|
1264
1386
|
}
|
|
1265
1387
|
|
|
1266
1388
|
/**
|
|
1267
|
-
*
|
|
1268
|
-
* 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
|
|
1269
1390
|
* @param data The data for the request.
|
|
1270
|
-
* @param data.
|
|
1271
|
-
* @returns
|
|
1391
|
+
* @param data.acceptLanguage
|
|
1392
|
+
* @returns UserResponseDto User retrieved successfully
|
|
1272
1393
|
* @throws ApiError
|
|
1273
1394
|
*/
|
|
1274
|
-
public static
|
|
1275
|
-
data:
|
|
1276
|
-
): CancelablePromise<
|
|
1395
|
+
public static userControllerGetUser(
|
|
1396
|
+
data: UserControllerGetUserData
|
|
1397
|
+
): CancelablePromise<UserControllerGetUserResponse> {
|
|
1277
1398
|
return __request(OpenAPI, {
|
|
1278
|
-
method: '
|
|
1279
|
-
url: '/api/v1/
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
},
|
|
1283
|
-
errors: {
|
|
1284
|
-
403: 'Admin access required',
|
|
1285
|
-
404: 'Payee profile not found',
|
|
1286
|
-
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
|
|
1287
1403
|
}
|
|
1288
1404
|
});
|
|
1289
1405
|
}
|
|
1290
1406
|
|
|
1291
1407
|
/**
|
|
1292
|
-
*
|
|
1293
|
-
*
|
|
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).
|
|
1294
1410
|
* @param data The data for the request.
|
|
1295
|
-
* @param data.
|
|
1296
|
-
* @returns
|
|
1411
|
+
* @param data.requestBody
|
|
1412
|
+
* @returns SignupResponseDto User created successfully
|
|
1297
1413
|
* @throws ApiError
|
|
1298
1414
|
*/
|
|
1299
|
-
public static
|
|
1300
|
-
data:
|
|
1301
|
-
): CancelablePromise<
|
|
1415
|
+
public static userControllerSignupUser(
|
|
1416
|
+
data: UserControllerSignupUserData
|
|
1417
|
+
): CancelablePromise<UserControllerSignupUserResponse> {
|
|
1302
1418
|
return __request(OpenAPI, {
|
|
1303
1419
|
method: 'POST',
|
|
1304
|
-
url: '/api/v1/
|
|
1420
|
+
url: '/api/v1/users',
|
|
1421
|
+
body: data.requestBody,
|
|
1422
|
+
mediaType: 'application/json',
|
|
1423
|
+
errors: {
|
|
1424
|
+
400: 'Invalid Turnstile token (when Turnstile is enabled)',
|
|
1425
|
+
403: 'User signup is disabled'
|
|
1426
|
+
}
|
|
1427
|
+
});
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* Delete user by ID (admin only)
|
|
1432
|
+
* @param data The data for the request.
|
|
1433
|
+
* @param data.id User ID to delete
|
|
1434
|
+
* @returns void User deleted successfully
|
|
1435
|
+
* @throws ApiError
|
|
1436
|
+
*/
|
|
1437
|
+
public static userControllerDeleteUser(
|
|
1438
|
+
data: UserControllerDeleteUserData
|
|
1439
|
+
): CancelablePromise<UserControllerDeleteUserResponse> {
|
|
1440
|
+
return __request(OpenAPI, {
|
|
1441
|
+
method: 'DELETE',
|
|
1442
|
+
url: '/api/v1/users/{id}',
|
|
1305
1443
|
path: {
|
|
1306
1444
|
id: data.id
|
|
1307
1445
|
},
|
|
1308
1446
|
errors: {
|
|
1309
|
-
403: '
|
|
1310
|
-
404: 'Payee profile not found'
|
|
1447
|
+
403: 'Cannot delete own account or insufficient permissions'
|
|
1311
1448
|
}
|
|
1312
1449
|
});
|
|
1313
1450
|
}
|
|
1314
1451
|
|
|
1315
1452
|
/**
|
|
1316
|
-
*
|
|
1317
|
-
* Removes verification status by setting verifiedAt to null.
|
|
1453
|
+
* Get user info by user ID
|
|
1318
1454
|
* @param data The data for the request.
|
|
1319
|
-
* @param data.id
|
|
1320
|
-
* @returns
|
|
1455
|
+
* @param data.id User ID
|
|
1456
|
+
* @returns unknown User info retrieved successfully
|
|
1321
1457
|
* @throws ApiError
|
|
1322
1458
|
*/
|
|
1323
|
-
public static
|
|
1324
|
-
data:
|
|
1325
|
-
): CancelablePromise<
|
|
1459
|
+
public static userControllerGetUserInfo(
|
|
1460
|
+
data: UserControllerGetUserInfoData
|
|
1461
|
+
): CancelablePromise<UserControllerGetUserInfoResponse> {
|
|
1326
1462
|
return __request(OpenAPI, {
|
|
1327
|
-
method: '
|
|
1328
|
-
url: '/api/v1/
|
|
1463
|
+
method: 'GET',
|
|
1464
|
+
url: '/api/v1/users/{id}/info',
|
|
1329
1465
|
path: {
|
|
1330
1466
|
id: data.id
|
|
1331
1467
|
},
|
|
1332
1468
|
errors: {
|
|
1333
|
-
403: '
|
|
1334
|
-
404: 'Payee profile not found'
|
|
1469
|
+
403: 'Cannot access other user info without admin permission'
|
|
1335
1470
|
}
|
|
1336
1471
|
});
|
|
1337
1472
|
}
|
|
1338
|
-
}
|
|
1339
1473
|
|
|
1340
|
-
export class BeanCommoditiesService {
|
|
1341
1474
|
/**
|
|
1342
|
-
*
|
|
1343
|
-
* Creates a new commodity definition for the authenticated user
|
|
1475
|
+
* Update user settings
|
|
1344
1476
|
* @param data The data for the request.
|
|
1345
|
-
* @param data.region Region code for tenant context
|
|
1346
1477
|
* @param data.requestBody
|
|
1347
|
-
* @returns
|
|
1478
|
+
* @returns unknown Settings updated successfully
|
|
1348
1479
|
* @throws ApiError
|
|
1349
1480
|
*/
|
|
1350
|
-
public static
|
|
1351
|
-
data:
|
|
1352
|
-
): CancelablePromise<
|
|
1481
|
+
public static userControllerUpdateUserSetting(
|
|
1482
|
+
data: UserControllerUpdateUserSettingData
|
|
1483
|
+
): CancelablePromise<UserControllerUpdateUserSettingResponse> {
|
|
1353
1484
|
return __request(OpenAPI, {
|
|
1354
|
-
method: '
|
|
1355
|
-
url: '/api/v1/
|
|
1356
|
-
path: {
|
|
1357
|
-
region: data.region
|
|
1358
|
-
},
|
|
1485
|
+
method: 'PUT',
|
|
1486
|
+
url: '/api/v1/users/setting',
|
|
1359
1487
|
body: data.requestBody,
|
|
1360
1488
|
mediaType: 'application/json',
|
|
1361
1489
|
errors: {
|
|
1362
|
-
|
|
1363
|
-
409: 'Commodity already exists'
|
|
1490
|
+
403: 'Insufficient permissions'
|
|
1364
1491
|
}
|
|
1365
1492
|
});
|
|
1366
1493
|
}
|
|
1367
1494
|
|
|
1368
1495
|
/**
|
|
1369
|
-
*
|
|
1370
|
-
* Returns all commodity definitions for the authenticated user with optional filtering
|
|
1496
|
+
* Get all user settings paginated (admin only)
|
|
1371
1497
|
* @param data The data for the request.
|
|
1372
|
-
* @param data.
|
|
1373
|
-
* @param data.
|
|
1374
|
-
* @
|
|
1375
|
-
* @returns CommodityListResponseDto Commodities retrieved successfully
|
|
1498
|
+
* @param data.pageNo Page number
|
|
1499
|
+
* @param data.pageSize Page size
|
|
1500
|
+
* @returns unknown Settings list retrieved successfully
|
|
1376
1501
|
* @throws ApiError
|
|
1377
1502
|
*/
|
|
1378
|
-
public static
|
|
1379
|
-
data:
|
|
1380
|
-
): CancelablePromise<
|
|
1503
|
+
public static userControllerGetAllUserSettingsByPage(
|
|
1504
|
+
data: UserControllerGetAllUserSettingsByPageData
|
|
1505
|
+
): CancelablePromise<UserControllerGetAllUserSettingsByPageResponse> {
|
|
1381
1506
|
return __request(OpenAPI, {
|
|
1382
1507
|
method: 'GET',
|
|
1383
|
-
url: '/api/v1/
|
|
1384
|
-
path: {
|
|
1385
|
-
region: data.region
|
|
1386
|
-
},
|
|
1508
|
+
url: '/api/v1/users/settings-by-page',
|
|
1387
1509
|
query: {
|
|
1388
|
-
|
|
1389
|
-
|
|
1510
|
+
pageNo: data.pageNo,
|
|
1511
|
+
pageSize: data.pageSize
|
|
1390
1512
|
}
|
|
1391
1513
|
});
|
|
1392
1514
|
}
|
|
1393
1515
|
|
|
1394
1516
|
/**
|
|
1395
|
-
* Get
|
|
1396
|
-
*
|
|
1517
|
+
* Get asset and liability summary for current user
|
|
1518
|
+
* @returns unknown Summary retrieved successfully
|
|
1519
|
+
* @throws ApiError
|
|
1520
|
+
*/
|
|
1521
|
+
public static userControllerGetAssetLiabilitySummary(): CancelablePromise<UserControllerGetAssetLiabilitySummaryResponse> {
|
|
1522
|
+
return __request(OpenAPI, {
|
|
1523
|
+
method: 'GET',
|
|
1524
|
+
url: '/api/v1/users/asset-liability-summary'
|
|
1525
|
+
});
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
export class PropertiesService {
|
|
1530
|
+
/**
|
|
1531
|
+
* Get all system properties
|
|
1532
|
+
* @returns unknown Properties retrieved successfully
|
|
1533
|
+
* @throws ApiError
|
|
1534
|
+
*/
|
|
1535
|
+
public static propertyControllerGetAll(): CancelablePromise<PropertyControllerGetAllResponse> {
|
|
1536
|
+
return __request(OpenAPI, {
|
|
1537
|
+
method: 'GET',
|
|
1538
|
+
url: '/api/v1/admin/properties',
|
|
1539
|
+
errors: {
|
|
1540
|
+
401: 'Unauthorized',
|
|
1541
|
+
403: 'Forbidden - insufficient permissions'
|
|
1542
|
+
}
|
|
1543
|
+
});
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* Get property by key
|
|
1397
1548
|
* @param data The data for the request.
|
|
1398
|
-
* @param data.
|
|
1399
|
-
* @
|
|
1400
|
-
* @returns CommodityResponseDto Commodity retrieved successfully
|
|
1549
|
+
* @param data.key Property key
|
|
1550
|
+
* @returns unknown Property retrieved successfully
|
|
1401
1551
|
* @throws ApiError
|
|
1402
1552
|
*/
|
|
1403
|
-
public static
|
|
1404
|
-
data:
|
|
1405
|
-
): CancelablePromise<
|
|
1553
|
+
public static propertyControllerGetByKey(
|
|
1554
|
+
data: PropertyControllerGetByKeyData
|
|
1555
|
+
): CancelablePromise<PropertyControllerGetByKeyResponse> {
|
|
1406
1556
|
return __request(OpenAPI, {
|
|
1407
1557
|
method: 'GET',
|
|
1408
|
-
url: '/api/v1/
|
|
1558
|
+
url: '/api/v1/admin/properties/{key}',
|
|
1409
1559
|
path: {
|
|
1410
|
-
|
|
1411
|
-
region: data.region
|
|
1560
|
+
key: data.key
|
|
1412
1561
|
},
|
|
1413
1562
|
errors: {
|
|
1414
|
-
|
|
1563
|
+
401: 'Unauthorized',
|
|
1564
|
+
403: 'Forbidden - insufficient permissions',
|
|
1565
|
+
404: 'Property not found'
|
|
1415
1566
|
}
|
|
1416
1567
|
});
|
|
1417
1568
|
}
|
|
1418
1569
|
|
|
1419
1570
|
/**
|
|
1420
|
-
* Update
|
|
1421
|
-
* Updates an existing commodity definition. Symbol cannot be changed.
|
|
1571
|
+
* Update a system property
|
|
1422
1572
|
* @param data The data for the request.
|
|
1423
|
-
* @param data.
|
|
1424
|
-
* @param data.region Region code for tenant context
|
|
1573
|
+
* @param data.key Property key
|
|
1425
1574
|
* @param data.requestBody
|
|
1426
|
-
* @returns
|
|
1575
|
+
* @returns unknown Property updated successfully
|
|
1427
1576
|
* @throws ApiError
|
|
1428
1577
|
*/
|
|
1429
|
-
public static
|
|
1430
|
-
data:
|
|
1431
|
-
): CancelablePromise<
|
|
1578
|
+
public static propertyControllerUpdate(
|
|
1579
|
+
data: PropertyControllerUpdateData
|
|
1580
|
+
): CancelablePromise<PropertyControllerUpdateResponse> {
|
|
1432
1581
|
return __request(OpenAPI, {
|
|
1433
1582
|
method: 'PUT',
|
|
1434
|
-
url: '/api/v1/
|
|
1583
|
+
url: '/api/v1/admin/properties/{key}',
|
|
1435
1584
|
path: {
|
|
1436
|
-
|
|
1437
|
-
region: data.region
|
|
1585
|
+
key: data.key
|
|
1438
1586
|
},
|
|
1439
1587
|
body: data.requestBody,
|
|
1440
1588
|
mediaType: 'application/json',
|
|
1441
1589
|
errors: {
|
|
1442
|
-
|
|
1443
|
-
|
|
1590
|
+
401: 'Unauthorized',
|
|
1591
|
+
403: 'Forbidden - insufficient permissions'
|
|
1444
1592
|
}
|
|
1445
1593
|
});
|
|
1446
1594
|
}
|
|
1447
1595
|
|
|
1448
1596
|
/**
|
|
1449
|
-
* Delete
|
|
1450
|
-
* Deletes a commodity definition
|
|
1597
|
+
* Delete a system property
|
|
1451
1598
|
* @param data The data for the request.
|
|
1452
|
-
* @param data.
|
|
1453
|
-
* @
|
|
1454
|
-
* @returns void Commodity deleted successfully
|
|
1599
|
+
* @param data.key Property key
|
|
1600
|
+
* @returns void Property deleted successfully
|
|
1455
1601
|
* @throws ApiError
|
|
1456
1602
|
*/
|
|
1457
|
-
public static
|
|
1458
|
-
data:
|
|
1459
|
-
): CancelablePromise<
|
|
1603
|
+
public static propertyControllerDelete(
|
|
1604
|
+
data: PropertyControllerDeleteData
|
|
1605
|
+
): CancelablePromise<PropertyControllerDeleteResponse> {
|
|
1460
1606
|
return __request(OpenAPI, {
|
|
1461
1607
|
method: 'DELETE',
|
|
1462
|
-
url: '/api/v1/
|
|
1608
|
+
url: '/api/v1/admin/properties/{key}',
|
|
1463
1609
|
path: {
|
|
1464
|
-
|
|
1465
|
-
region: data.region
|
|
1610
|
+
key: data.key
|
|
1466
1611
|
},
|
|
1467
1612
|
errors: {
|
|
1468
|
-
|
|
1613
|
+
401: 'Unauthorized',
|
|
1614
|
+
403: 'Forbidden - insufficient permissions',
|
|
1615
|
+
404: 'Property not found'
|
|
1469
1616
|
}
|
|
1470
1617
|
});
|
|
1471
1618
|
}
|
|
1619
|
+
}
|
|
1472
1620
|
|
|
1621
|
+
export class BeanPayeesService {
|
|
1473
1622
|
/**
|
|
1474
|
-
*
|
|
1475
|
-
*
|
|
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.
|
|
1476
1625
|
* @param data The data for the request.
|
|
1477
|
-
* @param data.
|
|
1478
|
-
* @
|
|
1479
|
-
* @returns CommodityResponseDto Commodity retrieved or created
|
|
1626
|
+
* @param data.requestBody
|
|
1627
|
+
* @returns PayeeResponseDto Payee created successfully
|
|
1480
1628
|
* @throws ApiError
|
|
1481
1629
|
*/
|
|
1482
|
-
public static
|
|
1483
|
-
data:
|
|
1484
|
-
): CancelablePromise<
|
|
1630
|
+
public static payeeControllerCreate(
|
|
1631
|
+
data: PayeeControllerCreateData
|
|
1632
|
+
): CancelablePromise<PayeeControllerCreateResponse> {
|
|
1485
1633
|
return __request(OpenAPI, {
|
|
1486
1634
|
method: 'POST',
|
|
1487
|
-
url: '/api/v1/
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1635
|
+
url: '/api/v1/bean/payees',
|
|
1636
|
+
body: data.requestBody,
|
|
1637
|
+
mediaType: 'application/json',
|
|
1638
|
+
errors: {
|
|
1639
|
+
400: 'Invalid input data',
|
|
1640
|
+
409: 'Payee already exists'
|
|
1491
1641
|
}
|
|
1492
1642
|
});
|
|
1493
1643
|
}
|
|
1494
1644
|
|
|
1495
1645
|
/**
|
|
1496
|
-
*
|
|
1497
|
-
*
|
|
1498
|
-
* @param data The data for the request.
|
|
1499
|
-
* @param data.
|
|
1500
|
-
* @
|
|
1646
|
+
* List user payees
|
|
1647
|
+
* Returns all payee mappings for the authenticated user with optional filtering
|
|
1648
|
+
* @param data The data for the request.
|
|
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
|
|
1501
1655
|
* @throws ApiError
|
|
1502
1656
|
*/
|
|
1503
|
-
public static
|
|
1504
|
-
data:
|
|
1505
|
-
): CancelablePromise<
|
|
1657
|
+
public static payeeControllerFindAll(
|
|
1658
|
+
data: PayeeControllerFindAllData = {}
|
|
1659
|
+
): CancelablePromise<PayeeControllerFindAllResponse> {
|
|
1506
1660
|
return __request(OpenAPI, {
|
|
1507
|
-
method: '
|
|
1508
|
-
url: '/api/v1/
|
|
1661
|
+
method: 'GET',
|
|
1662
|
+
url: '/api/v1/bean/payees',
|
|
1663
|
+
query: {
|
|
1664
|
+
search: data.search,
|
|
1665
|
+
payee: data.payee,
|
|
1666
|
+
category: data.category,
|
|
1667
|
+
tag: data.tag,
|
|
1668
|
+
isActive: data.isActive
|
|
1669
|
+
}
|
|
1670
|
+
});
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
/**
|
|
1674
|
+
* Get payee autocomplete suggestions
|
|
1675
|
+
* Returns active payee names matching the query, sorted by recent usage. Used for transaction input autocomplete.
|
|
1676
|
+
* @param data The data for the request.
|
|
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
|
|
1680
|
+
* @throws ApiError
|
|
1681
|
+
*/
|
|
1682
|
+
public static payeeControllerAutocomplete(
|
|
1683
|
+
data: PayeeControllerAutocompleteData
|
|
1684
|
+
): CancelablePromise<PayeeControllerAutocompleteResponse> {
|
|
1685
|
+
return __request(OpenAPI, {
|
|
1686
|
+
method: 'GET',
|
|
1687
|
+
url: '/api/v1/bean/payees/autocomplete',
|
|
1688
|
+
query: {
|
|
1689
|
+
q: data.q,
|
|
1690
|
+
limit: data.limit
|
|
1691
|
+
}
|
|
1692
|
+
});
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
/**
|
|
1696
|
+
* Get top payees by usage
|
|
1697
|
+
* Returns the most frequently used payees, sorted by use count. Used for statistics and analytics.
|
|
1698
|
+
* @param data The data for the request.
|
|
1699
|
+
* @param data.limit Maximum number of results
|
|
1700
|
+
* @returns PayeeStatsResponseDto Top payees retrieved successfully
|
|
1701
|
+
* @throws ApiError
|
|
1702
|
+
*/
|
|
1703
|
+
public static payeeControllerGetTopPayees(
|
|
1704
|
+
data: PayeeControllerGetTopPayeesData = {}
|
|
1705
|
+
): CancelablePromise<PayeeControllerGetTopPayeesResponse> {
|
|
1706
|
+
return __request(OpenAPI, {
|
|
1707
|
+
method: 'GET',
|
|
1708
|
+
url: '/api/v1/bean/payees/top',
|
|
1709
|
+
query: {
|
|
1710
|
+
limit: data.limit
|
|
1711
|
+
}
|
|
1712
|
+
});
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1715
|
+
/**
|
|
1716
|
+
* Get payee by ID
|
|
1717
|
+
* Returns a specific payee mapping by its UUID
|
|
1718
|
+
* @param data The data for the request.
|
|
1719
|
+
* @param data.id Payee UUID
|
|
1720
|
+
* @returns PayeeResponseDto Payee retrieved successfully
|
|
1721
|
+
* @throws ApiError
|
|
1722
|
+
*/
|
|
1723
|
+
public static payeeControllerFindOne(
|
|
1724
|
+
data: PayeeControllerFindOneData
|
|
1725
|
+
): CancelablePromise<PayeeControllerFindOneResponse> {
|
|
1726
|
+
return __request(OpenAPI, {
|
|
1727
|
+
method: 'GET',
|
|
1728
|
+
url: '/api/v1/bean/payees/{id}',
|
|
1509
1729
|
path: {
|
|
1510
|
-
|
|
1730
|
+
id: data.id
|
|
1731
|
+
},
|
|
1732
|
+
errors: {
|
|
1733
|
+
403: 'Payee belongs to another user',
|
|
1734
|
+
404: 'Payee not found'
|
|
1511
1735
|
}
|
|
1512
1736
|
});
|
|
1513
1737
|
}
|
|
1514
|
-
}
|
|
1515
1738
|
|
|
1516
|
-
export class RecurringRulesService {
|
|
1517
1739
|
/**
|
|
1518
|
-
*
|
|
1519
|
-
*
|
|
1740
|
+
* Update payee
|
|
1741
|
+
* Updates a payee mapping. The payee name cannot be changed after creation.
|
|
1520
1742
|
* @param data The data for the request.
|
|
1521
|
-
* @param data.
|
|
1743
|
+
* @param data.id Payee UUID
|
|
1522
1744
|
* @param data.requestBody
|
|
1523
|
-
* @returns
|
|
1745
|
+
* @returns PayeeResponseDto Payee updated successfully
|
|
1524
1746
|
* @throws ApiError
|
|
1525
1747
|
*/
|
|
1526
|
-
public static
|
|
1527
|
-
data:
|
|
1528
|
-
): CancelablePromise<
|
|
1748
|
+
public static payeeControllerUpdate(
|
|
1749
|
+
data: PayeeControllerUpdateData
|
|
1750
|
+
): CancelablePromise<PayeeControllerUpdateResponse> {
|
|
1529
1751
|
return __request(OpenAPI, {
|
|
1530
|
-
method: '
|
|
1531
|
-
url: '/api/v1/{
|
|
1752
|
+
method: 'PUT',
|
|
1753
|
+
url: '/api/v1/bean/payees/{id}',
|
|
1532
1754
|
path: {
|
|
1533
|
-
|
|
1755
|
+
id: data.id
|
|
1534
1756
|
},
|
|
1535
1757
|
body: data.requestBody,
|
|
1536
1758
|
mediaType: 'application/json',
|
|
1537
1759
|
errors: {
|
|
1538
|
-
400: 'Invalid input data
|
|
1539
|
-
|
|
1760
|
+
400: 'Invalid input data',
|
|
1761
|
+
404: 'Payee not found'
|
|
1540
1762
|
}
|
|
1541
1763
|
});
|
|
1542
1764
|
}
|
|
1543
1765
|
|
|
1544
1766
|
/**
|
|
1545
|
-
*
|
|
1546
|
-
*
|
|
1767
|
+
* Delete payee
|
|
1768
|
+
* Soft deletes a payee by marking it as inactive. Inactive payees will not appear in autocomplete suggestions.
|
|
1547
1769
|
* @param data The data for the request.
|
|
1548
|
-
* @param data.
|
|
1549
|
-
* @
|
|
1550
|
-
* @param data.frequency Filter by frequency (WEEKLY, MONTHLY, etc.)
|
|
1551
|
-
* @param data.hasAutoCreate Filter by autoCreate enabled
|
|
1552
|
-
* @returns RecurringRuleResponseDto Rules retrieved successfully
|
|
1770
|
+
* @param data.id Payee UUID
|
|
1771
|
+
* @returns void Payee deleted successfully
|
|
1553
1772
|
* @throws ApiError
|
|
1554
1773
|
*/
|
|
1555
|
-
public static
|
|
1556
|
-
data:
|
|
1557
|
-
): CancelablePromise<
|
|
1774
|
+
public static payeeControllerDelete(
|
|
1775
|
+
data: PayeeControllerDeleteData
|
|
1776
|
+
): CancelablePromise<PayeeControllerDeleteResponse> {
|
|
1558
1777
|
return __request(OpenAPI, {
|
|
1559
|
-
method: '
|
|
1560
|
-
url: '/api/v1/{
|
|
1778
|
+
method: 'DELETE',
|
|
1779
|
+
url: '/api/v1/bean/payees/{id}',
|
|
1561
1780
|
path: {
|
|
1562
|
-
|
|
1781
|
+
id: data.id
|
|
1563
1782
|
},
|
|
1783
|
+
errors: {
|
|
1784
|
+
404: 'Payee not found'
|
|
1785
|
+
}
|
|
1786
|
+
});
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
export class AdminPayeeProfilesService {
|
|
1791
|
+
/**
|
|
1792
|
+
* Create payee profile (Admin only)
|
|
1793
|
+
* Creates a new global payee profile. The canonical name must be unique (case-insensitive).
|
|
1794
|
+
* @param data The data for the request.
|
|
1795
|
+
* @param data.requestBody
|
|
1796
|
+
* @returns PayeeProfileResponseDto Payee profile created successfully
|
|
1797
|
+
* @throws ApiError
|
|
1798
|
+
*/
|
|
1799
|
+
public static payeeProfileAdminControllerCreate(
|
|
1800
|
+
data: PayeeProfileAdminControllerCreateData
|
|
1801
|
+
): CancelablePromise<PayeeProfileAdminControllerCreateResponse> {
|
|
1802
|
+
return __request(OpenAPI, {
|
|
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'
|
|
1811
|
+
}
|
|
1812
|
+
});
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* List payee profiles (Admin only)
|
|
1817
|
+
* Returns all payee profiles with optional filtering by category, country, verification status, etc.
|
|
1818
|
+
* @param data The data for the request.
|
|
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
|
|
1826
|
+
* @throws ApiError
|
|
1827
|
+
*/
|
|
1828
|
+
public static payeeProfileAdminControllerFindAll(
|
|
1829
|
+
data: PayeeProfileAdminControllerFindAllData = {}
|
|
1830
|
+
): CancelablePromise<PayeeProfileAdminControllerFindAllResponse> {
|
|
1831
|
+
return __request(OpenAPI, {
|
|
1832
|
+
method: 'GET',
|
|
1833
|
+
url: '/api/v1/admin/payee-profiles',
|
|
1564
1834
|
query: {
|
|
1835
|
+
search: data.search,
|
|
1836
|
+
category: data.category,
|
|
1837
|
+
country: data.country,
|
|
1565
1838
|
isActive: data.isActive,
|
|
1566
|
-
|
|
1567
|
-
|
|
1839
|
+
verified: data.verified,
|
|
1840
|
+
dataSource: data.dataSource
|
|
1841
|
+
},
|
|
1842
|
+
errors: {
|
|
1843
|
+
403: 'Admin access required'
|
|
1568
1844
|
}
|
|
1569
1845
|
});
|
|
1570
1846
|
}
|
|
1571
1847
|
|
|
1572
1848
|
/**
|
|
1573
|
-
*
|
|
1574
|
-
*
|
|
1849
|
+
* Get payee profile by ID (Admin only)
|
|
1850
|
+
* Returns a single payee profile by its ID.
|
|
1575
1851
|
* @param data The data for the request.
|
|
1576
|
-
* @param data.
|
|
1577
|
-
* @
|
|
1852
|
+
* @param data.id Payee profile ID (UUID)
|
|
1853
|
+
* @returns PayeeProfileResponseDto Payee profile retrieved successfully
|
|
1854
|
+
* @throws ApiError
|
|
1855
|
+
*/
|
|
1856
|
+
public static payeeProfileAdminControllerFindOne(
|
|
1857
|
+
data: PayeeProfileAdminControllerFindOneData
|
|
1858
|
+
): CancelablePromise<PayeeProfileAdminControllerFindOneResponse> {
|
|
1859
|
+
return __request(OpenAPI, {
|
|
1860
|
+
method: 'GET',
|
|
1861
|
+
url: '/api/v1/admin/payee-profiles/{id}',
|
|
1862
|
+
path: {
|
|
1863
|
+
id: data.id
|
|
1864
|
+
},
|
|
1865
|
+
errors: {
|
|
1866
|
+
403: 'Admin access required',
|
|
1867
|
+
404: 'Payee profile not found'
|
|
1868
|
+
}
|
|
1869
|
+
});
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
/**
|
|
1873
|
+
* Update payee profile (Admin only)
|
|
1874
|
+
* Updates an existing payee profile. The canonical name cannot be changed.
|
|
1875
|
+
* @param data The data for the request.
|
|
1876
|
+
* @param data.id Payee profile ID (UUID)
|
|
1578
1877
|
* @param data.requestBody
|
|
1579
|
-
* @returns
|
|
1878
|
+
* @returns PayeeProfileResponseDto Payee profile updated successfully
|
|
1580
1879
|
* @throws ApiError
|
|
1581
1880
|
*/
|
|
1582
|
-
public static
|
|
1583
|
-
data:
|
|
1584
|
-
): CancelablePromise<
|
|
1881
|
+
public static payeeProfileAdminControllerUpdate(
|
|
1882
|
+
data: PayeeProfileAdminControllerUpdateData
|
|
1883
|
+
): CancelablePromise<PayeeProfileAdminControllerUpdateResponse> {
|
|
1585
1884
|
return __request(OpenAPI, {
|
|
1586
|
-
method: '
|
|
1587
|
-
url: '/api/v1/
|
|
1885
|
+
method: 'PUT',
|
|
1886
|
+
url: '/api/v1/admin/payee-profiles/{id}',
|
|
1588
1887
|
path: {
|
|
1589
|
-
|
|
1590
|
-
region: data.region
|
|
1888
|
+
id: data.id
|
|
1591
1889
|
},
|
|
1592
1890
|
body: data.requestBody,
|
|
1593
1891
|
mediaType: 'application/json',
|
|
1594
1892
|
errors: {
|
|
1595
|
-
|
|
1596
|
-
|
|
1893
|
+
403: 'Admin access required',
|
|
1894
|
+
404: 'Payee profile not found'
|
|
1597
1895
|
}
|
|
1598
1896
|
});
|
|
1599
1897
|
}
|
|
1600
1898
|
|
|
1601
1899
|
/**
|
|
1602
|
-
*
|
|
1603
|
-
*
|
|
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.
|
|
1604
1902
|
* @param data The data for the request.
|
|
1605
|
-
* @param data.id
|
|
1606
|
-
* @
|
|
1607
|
-
* @returns RecurringRuleResponseDto Rule retrieved successfully
|
|
1903
|
+
* @param data.id Payee profile ID (UUID)
|
|
1904
|
+
* @returns void Payee profile deleted successfully
|
|
1608
1905
|
* @throws ApiError
|
|
1609
1906
|
*/
|
|
1610
|
-
public static
|
|
1611
|
-
data:
|
|
1612
|
-
): CancelablePromise<
|
|
1907
|
+
public static payeeProfileAdminControllerDelete(
|
|
1908
|
+
data: PayeeProfileAdminControllerDeleteData
|
|
1909
|
+
): CancelablePromise<PayeeProfileAdminControllerDeleteResponse> {
|
|
1613
1910
|
return __request(OpenAPI, {
|
|
1614
|
-
method: '
|
|
1615
|
-
url: '/api/v1/
|
|
1911
|
+
method: 'DELETE',
|
|
1912
|
+
url: '/api/v1/admin/payee-profiles/{id}',
|
|
1616
1913
|
path: {
|
|
1617
|
-
id: data.id
|
|
1618
|
-
region: data.region
|
|
1914
|
+
id: data.id
|
|
1619
1915
|
},
|
|
1620
1916
|
errors: {
|
|
1621
|
-
|
|
1917
|
+
403: 'Admin access required',
|
|
1918
|
+
404: 'Payee profile not found',
|
|
1919
|
+
409: 'Payee profile is in use and cannot be deleted'
|
|
1622
1920
|
}
|
|
1623
1921
|
});
|
|
1624
1922
|
}
|
|
1625
1923
|
|
|
1626
1924
|
/**
|
|
1627
|
-
*
|
|
1628
|
-
*
|
|
1925
|
+
* Verify payee profile (Admin only)
|
|
1926
|
+
* Marks a payee profile as verified by setting verifiedAt to current timestamp.
|
|
1927
|
+
* @param data The data for the request.
|
|
1928
|
+
* @param data.id Payee profile ID (UUID)
|
|
1929
|
+
* @returns PayeeProfileResponseDto Payee profile verified successfully
|
|
1930
|
+
* @throws ApiError
|
|
1931
|
+
*/
|
|
1932
|
+
public static payeeProfileAdminControllerVerify(
|
|
1933
|
+
data: PayeeProfileAdminControllerVerifyData
|
|
1934
|
+
): CancelablePromise<PayeeProfileAdminControllerVerifyResponse> {
|
|
1935
|
+
return __request(OpenAPI, {
|
|
1936
|
+
method: 'POST',
|
|
1937
|
+
url: '/api/v1/admin/payee-profiles/{id}/verify',
|
|
1938
|
+
path: {
|
|
1939
|
+
id: data.id
|
|
1940
|
+
},
|
|
1941
|
+
errors: {
|
|
1942
|
+
403: 'Admin access required',
|
|
1943
|
+
404: 'Payee profile not found'
|
|
1944
|
+
}
|
|
1945
|
+
});
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
/**
|
|
1949
|
+
* Unverify payee profile (Admin only)
|
|
1950
|
+
* Removes verification status by setting verifiedAt to null.
|
|
1951
|
+
* @param data The data for the request.
|
|
1952
|
+
* @param data.id Payee profile ID (UUID)
|
|
1953
|
+
* @returns void Payee profile unverified successfully
|
|
1954
|
+
* @throws ApiError
|
|
1955
|
+
*/
|
|
1956
|
+
public static payeeProfileAdminControllerUnverify(
|
|
1957
|
+
data: PayeeProfileAdminControllerUnverifyData
|
|
1958
|
+
): CancelablePromise<PayeeProfileAdminControllerUnverifyResponse> {
|
|
1959
|
+
return __request(OpenAPI, {
|
|
1960
|
+
method: 'DELETE',
|
|
1961
|
+
url: '/api/v1/admin/payee-profiles/{id}/verify',
|
|
1962
|
+
path: {
|
|
1963
|
+
id: data.id
|
|
1964
|
+
},
|
|
1965
|
+
errors: {
|
|
1966
|
+
403: 'Admin access required',
|
|
1967
|
+
404: 'Payee profile not found'
|
|
1968
|
+
}
|
|
1969
|
+
});
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
export class PayeeProfilesService {
|
|
1974
|
+
/**
|
|
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
|
|
1978
|
+
* @throws ApiError
|
|
1979
|
+
*/
|
|
1980
|
+
public static payeeProfileControllerListActive(): CancelablePromise<PayeeProfileControllerListActiveResponse> {
|
|
1981
|
+
return __request(OpenAPI, {
|
|
1982
|
+
method: 'GET',
|
|
1983
|
+
url: '/api/v1/bean/payee-profiles',
|
|
1984
|
+
errors: {
|
|
1985
|
+
401: 'Missing or invalid token'
|
|
1986
|
+
}
|
|
1987
|
+
});
|
|
1988
|
+
}
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
export class BeanCommoditiesService {
|
|
1992
|
+
/**
|
|
1993
|
+
* Create a new commodity
|
|
1994
|
+
* Creates a new commodity definition for the authenticated user
|
|
1629
1995
|
* @param data The data for the request.
|
|
1630
|
-
* @param data.id Rule ID
|
|
1631
1996
|
* @param data.region Region code for tenant context
|
|
1632
1997
|
* @param data.requestBody
|
|
1633
|
-
* @returns
|
|
1998
|
+
* @returns CommodityResponseDto Commodity created successfully
|
|
1634
1999
|
* @throws ApiError
|
|
1635
2000
|
*/
|
|
1636
|
-
public static
|
|
1637
|
-
data:
|
|
1638
|
-
): CancelablePromise<
|
|
2001
|
+
public static commodityControllerCreate(
|
|
2002
|
+
data: CommodityControllerCreateData
|
|
2003
|
+
): CancelablePromise<CommodityControllerCreateResponse> {
|
|
1639
2004
|
return __request(OpenAPI, {
|
|
1640
|
-
method: '
|
|
1641
|
-
url: '/api/v1/{region}/bean/
|
|
2005
|
+
method: 'POST',
|
|
2006
|
+
url: '/api/v1/{region}/bean/commodities',
|
|
1642
2007
|
path: {
|
|
1643
|
-
id: data.id,
|
|
1644
2008
|
region: data.region
|
|
1645
2009
|
},
|
|
1646
2010
|
body: data.requestBody,
|
|
1647
2011
|
mediaType: 'application/json',
|
|
1648
2012
|
errors: {
|
|
1649
2013
|
400: 'Invalid input data',
|
|
1650
|
-
|
|
2014
|
+
409: 'Commodity already exists'
|
|
1651
2015
|
}
|
|
1652
2016
|
});
|
|
1653
2017
|
}
|
|
1654
2018
|
|
|
1655
2019
|
/**
|
|
1656
|
-
*
|
|
1657
|
-
*
|
|
2020
|
+
* List user commodities
|
|
2021
|
+
* Returns all commodity definitions for the authenticated user with optional filtering
|
|
1658
2022
|
* @param data The data for the request.
|
|
1659
|
-
* @param data.id Rule ID
|
|
1660
2023
|
* @param data.region Region code for tenant context
|
|
1661
|
-
* @
|
|
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
|
|
1662
2027
|
* @throws ApiError
|
|
1663
2028
|
*/
|
|
1664
|
-
public static
|
|
1665
|
-
data:
|
|
1666
|
-
): CancelablePromise<
|
|
2029
|
+
public static commodityControllerFindAll(
|
|
2030
|
+
data: CommodityControllerFindAllData
|
|
2031
|
+
): CancelablePromise<CommodityControllerFindAllResponse> {
|
|
1667
2032
|
return __request(OpenAPI, {
|
|
1668
|
-
method: '
|
|
1669
|
-
url: '/api/v1/{region}/bean/
|
|
2033
|
+
method: 'GET',
|
|
2034
|
+
url: '/api/v1/{region}/bean/commodities',
|
|
1670
2035
|
path: {
|
|
1671
|
-
id: data.id,
|
|
1672
2036
|
region: data.region
|
|
1673
2037
|
},
|
|
1674
|
-
|
|
1675
|
-
|
|
2038
|
+
query: {
|
|
2039
|
+
search: data.search,
|
|
2040
|
+
symbol: data.symbol
|
|
1676
2041
|
}
|
|
1677
2042
|
});
|
|
1678
2043
|
}
|
|
1679
2044
|
|
|
1680
2045
|
/**
|
|
1681
|
-
* Get
|
|
1682
|
-
* Returns a
|
|
2046
|
+
* Get commodity by symbol
|
|
2047
|
+
* Returns a specific commodity definition by its symbol
|
|
1683
2048
|
* @param data The data for the request.
|
|
1684
|
-
* @param data.
|
|
2049
|
+
* @param data.symbol Commodity symbol
|
|
1685
2050
|
* @param data.region Region code for tenant context
|
|
1686
|
-
* @returns
|
|
2051
|
+
* @returns CommodityResponseDto Commodity retrieved successfully
|
|
1687
2052
|
* @throws ApiError
|
|
1688
2053
|
*/
|
|
1689
|
-
public static
|
|
1690
|
-
data:
|
|
1691
|
-
): CancelablePromise<
|
|
2054
|
+
public static commodityControllerFindOne(
|
|
2055
|
+
data: CommodityControllerFindOneData
|
|
2056
|
+
): CancelablePromise<CommodityControllerFindOneResponse> {
|
|
1692
2057
|
return __request(OpenAPI, {
|
|
1693
2058
|
method: 'GET',
|
|
1694
|
-
url: '/api/v1/{region}/bean/
|
|
2059
|
+
url: '/api/v1/{region}/bean/commodities/{symbol}',
|
|
1695
2060
|
path: {
|
|
1696
|
-
|
|
2061
|
+
symbol: data.symbol,
|
|
1697
2062
|
region: data.region
|
|
1698
2063
|
},
|
|
1699
2064
|
errors: {
|
|
1700
|
-
404: '
|
|
2065
|
+
404: 'Commodity not found'
|
|
1701
2066
|
}
|
|
1702
2067
|
});
|
|
1703
2068
|
}
|
|
1704
|
-
}
|
|
1705
2069
|
|
|
1706
|
-
export class ExpectedTransactionsService {
|
|
1707
2070
|
/**
|
|
1708
|
-
*
|
|
1709
|
-
*
|
|
2071
|
+
* Update commodity
|
|
2072
|
+
* Updates an existing commodity definition. Symbol cannot be changed.
|
|
1710
2073
|
* @param data The data for the request.
|
|
2074
|
+
* @param data.symbol Commodity symbol
|
|
1711
2075
|
* @param data.region Region code for tenant context
|
|
1712
|
-
* @param data.
|
|
1713
|
-
* @
|
|
1714
|
-
* @param data.fromDate Filter by date range start (YYYY-MM-DD)
|
|
1715
|
-
* @param data.toDate Filter by date range end (YYYY-MM-DD)
|
|
1716
|
-
* @returns ExpectedTransactionListResponseDto Expected transactions retrieved successfully
|
|
2076
|
+
* @param data.requestBody
|
|
2077
|
+
* @returns CommodityResponseDto Commodity updated successfully
|
|
1717
2078
|
* @throws ApiError
|
|
1718
2079
|
*/
|
|
1719
|
-
public static
|
|
1720
|
-
data:
|
|
1721
|
-
): CancelablePromise<
|
|
2080
|
+
public static commodityControllerUpdate(
|
|
2081
|
+
data: CommodityControllerUpdateData
|
|
2082
|
+
): CancelablePromise<CommodityControllerUpdateResponse> {
|
|
1722
2083
|
return __request(OpenAPI, {
|
|
1723
|
-
method: '
|
|
1724
|
-
url: '/api/v1/{region}/bean/
|
|
2084
|
+
method: 'PUT',
|
|
2085
|
+
url: '/api/v1/{region}/bean/commodities/{symbol}',
|
|
1725
2086
|
path: {
|
|
2087
|
+
symbol: data.symbol,
|
|
1726
2088
|
region: data.region
|
|
1727
2089
|
},
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
2090
|
+
body: data.requestBody,
|
|
2091
|
+
mediaType: 'application/json',
|
|
2092
|
+
errors: {
|
|
2093
|
+
400: 'Invalid input data',
|
|
2094
|
+
404: 'Commodity not found'
|
|
1733
2095
|
}
|
|
1734
2096
|
});
|
|
1735
2097
|
}
|
|
1736
2098
|
|
|
1737
2099
|
/**
|
|
1738
|
-
*
|
|
1739
|
-
*
|
|
2100
|
+
* Delete commodity
|
|
2101
|
+
* Deletes a commodity definition
|
|
1740
2102
|
* @param data The data for the request.
|
|
2103
|
+
* @param data.symbol Commodity symbol
|
|
1741
2104
|
* @param data.region Region code for tenant context
|
|
1742
|
-
* @returns
|
|
2105
|
+
* @returns void Commodity deleted successfully
|
|
1743
2106
|
* @throws ApiError
|
|
1744
2107
|
*/
|
|
1745
|
-
public static
|
|
1746
|
-
data:
|
|
1747
|
-
): CancelablePromise<
|
|
2108
|
+
public static commodityControllerDelete(
|
|
2109
|
+
data: CommodityControllerDeleteData
|
|
2110
|
+
): CancelablePromise<CommodityControllerDeleteResponse> {
|
|
1748
2111
|
return __request(OpenAPI, {
|
|
1749
|
-
method: '
|
|
1750
|
-
url: '/api/v1/{region}/bean/
|
|
2112
|
+
method: 'DELETE',
|
|
2113
|
+
url: '/api/v1/{region}/bean/commodities/{symbol}',
|
|
1751
2114
|
path: {
|
|
2115
|
+
symbol: data.symbol,
|
|
1752
2116
|
region: data.region
|
|
2117
|
+
},
|
|
2118
|
+
errors: {
|
|
2119
|
+
404: 'Commodity not found'
|
|
1753
2120
|
}
|
|
1754
2121
|
});
|
|
1755
2122
|
}
|
|
1756
2123
|
|
|
1757
2124
|
/**
|
|
1758
|
-
*
|
|
1759
|
-
*
|
|
2125
|
+
* Ensure commodity exists
|
|
2126
|
+
* Gets existing commodity or creates it with automatic initialization from OpenBB
|
|
1760
2127
|
* @param data The data for the request.
|
|
1761
|
-
* @param data.
|
|
2128
|
+
* @param data.symbol Commodity symbol
|
|
1762
2129
|
* @param data.region Region code for tenant context
|
|
1763
|
-
* @returns
|
|
2130
|
+
* @returns CommodityResponseDto Commodity retrieved or created
|
|
1764
2131
|
* @throws ApiError
|
|
1765
2132
|
*/
|
|
1766
|
-
public static
|
|
1767
|
-
data:
|
|
1768
|
-
): CancelablePromise<
|
|
2133
|
+
public static commodityControllerGetOrCreate(
|
|
2134
|
+
data: CommodityControllerGetOrCreateData
|
|
2135
|
+
): CancelablePromise<CommodityControllerGetOrCreateResponse> {
|
|
1769
2136
|
return __request(OpenAPI, {
|
|
1770
|
-
method: '
|
|
1771
|
-
url: '/api/v1/{region}/bean/
|
|
2137
|
+
method: 'POST',
|
|
2138
|
+
url: '/api/v1/{region}/bean/commodities/{symbol}/ensure',
|
|
1772
2139
|
path: {
|
|
1773
|
-
|
|
2140
|
+
symbol: data.symbol,
|
|
1774
2141
|
region: data.region
|
|
1775
|
-
},
|
|
1776
|
-
errors: {
|
|
1777
|
-
404: 'Expected transaction not found'
|
|
1778
2142
|
}
|
|
1779
2143
|
});
|
|
1780
2144
|
}
|
|
1781
2145
|
|
|
1782
2146
|
/**
|
|
1783
|
-
*
|
|
1784
|
-
*
|
|
2147
|
+
* Bulk create commodities
|
|
2148
|
+
* Creates multiple commodities from a list of symbols, useful for initialization
|
|
1785
2149
|
* @param data The data for the request.
|
|
1786
|
-
* @param data.id Expected transaction ID
|
|
1787
2150
|
* @param data.region Region code for tenant context
|
|
1788
|
-
* @returns
|
|
2151
|
+
* @returns CommodityResponseDto Commodities created successfully
|
|
1789
2152
|
* @throws ApiError
|
|
1790
2153
|
*/
|
|
1791
|
-
public static
|
|
1792
|
-
data:
|
|
1793
|
-
): CancelablePromise<
|
|
2154
|
+
public static commodityControllerBulkCreate(
|
|
2155
|
+
data: CommodityControllerBulkCreateData
|
|
2156
|
+
): CancelablePromise<CommodityControllerBulkCreateResponse> {
|
|
1794
2157
|
return __request(OpenAPI, {
|
|
1795
2158
|
method: 'POST',
|
|
1796
|
-
url: '/api/v1/{region}/bean/
|
|
2159
|
+
url: '/api/v1/{region}/bean/commodities/bulk',
|
|
1797
2160
|
path: {
|
|
1798
|
-
id: data.id,
|
|
1799
2161
|
region: data.region
|
|
1800
|
-
},
|
|
1801
|
-
errors: {
|
|
1802
|
-
400: 'Cannot skip - not in PENDING status',
|
|
1803
|
-
404: 'Expected transaction not found'
|
|
1804
2162
|
}
|
|
1805
2163
|
});
|
|
1806
2164
|
}
|
|
2165
|
+
}
|
|
1807
2166
|
|
|
2167
|
+
export class ReportingService {
|
|
1808
2168
|
/**
|
|
1809
|
-
*
|
|
1810
|
-
*
|
|
2169
|
+
* Get portfolio value trends
|
|
2170
|
+
*
|
|
2171
|
+
* Returns time series data of portfolio net worth.
|
|
2172
|
+
*
|
|
2173
|
+
* **Multi-currency Support:**
|
|
2174
|
+
* - `series[].byCurrency` - Currency breakdown for each data point
|
|
2175
|
+
* - `byCurrency` - Separate time series grouped by currency
|
|
2176
|
+
* - `warnings` - Exchange rate warnings if conversion failed
|
|
2177
|
+
*
|
|
2178
|
+
* **Parameters:**
|
|
2179
|
+
* - `period`: Time period (1m, 3m, 6m, 1y)
|
|
2180
|
+
* - `granularity`: Data granularity (day, week, month)
|
|
2181
|
+
*
|
|
1811
2182
|
* @param data The data for the request.
|
|
1812
|
-
* @param data.id Expected transaction ID
|
|
1813
2183
|
* @param data.region Region code for tenant context
|
|
1814
|
-
* @
|
|
2184
|
+
* @param data.period Time period
|
|
2185
|
+
* @param data.granularity Data granularity
|
|
2186
|
+
* @returns PortfolioTrendsResponseDto Trends retrieved successfully
|
|
1815
2187
|
* @throws ApiError
|
|
1816
2188
|
*/
|
|
1817
|
-
public static
|
|
1818
|
-
data:
|
|
1819
|
-
): CancelablePromise<
|
|
2189
|
+
public static reportingControllerGetPortfolioTrends(
|
|
2190
|
+
data: ReportingControllerGetPortfolioTrendsData
|
|
2191
|
+
): CancelablePromise<ReportingControllerGetPortfolioTrendsResponse> {
|
|
1820
2192
|
return __request(OpenAPI, {
|
|
1821
|
-
method: '
|
|
1822
|
-
url: '/api/v1/{region}/
|
|
2193
|
+
method: 'GET',
|
|
2194
|
+
url: '/api/v1/{region}/reporting/portfolio/trends',
|
|
1823
2195
|
path: {
|
|
1824
|
-
id: data.id,
|
|
1825
2196
|
region: data.region
|
|
1826
2197
|
},
|
|
2198
|
+
query: {
|
|
2199
|
+
period: data.period,
|
|
2200
|
+
granularity: data.granularity
|
|
2201
|
+
},
|
|
1827
2202
|
errors: {
|
|
1828
|
-
|
|
1829
|
-
404: 'Expected transaction not found'
|
|
2203
|
+
401: 'User not authenticated'
|
|
1830
2204
|
}
|
|
1831
2205
|
});
|
|
1832
2206
|
}
|
|
1833
2207
|
|
|
1834
2208
|
/**
|
|
1835
|
-
*
|
|
1836
|
-
*
|
|
2209
|
+
* Get cash-flow trends
|
|
2210
|
+
*
|
|
2211
|
+
* Monthly income / expense / netSavings over a fixed N-month window
|
|
2212
|
+
* (current month + N−1 prior). Missing months are zero-filled (flow metric).
|
|
2213
|
+
*
|
|
2214
|
+
* **Parameters:**
|
|
2215
|
+
* - `period`: 1m | 3m | 6m | 1y (default 6m)
|
|
2216
|
+
* - `granularity`: accepted for API symmetry; v1 returns month buckets
|
|
2217
|
+
*
|
|
1837
2218
|
* @param data The data for the request.
|
|
1838
|
-
* @param data.id Expected transaction ID
|
|
1839
2219
|
* @param data.region Region code for tenant context
|
|
1840
|
-
* @param data.
|
|
1841
|
-
* @
|
|
2220
|
+
* @param data.period Time period
|
|
2221
|
+
* @param data.granularity Data granularity (accepted for API symmetry; v1 returns month buckets)
|
|
2222
|
+
* @returns CashFlowTrendsResponseDto Cash-flow trends retrieved successfully
|
|
1842
2223
|
* @throws ApiError
|
|
1843
2224
|
*/
|
|
1844
|
-
public static
|
|
1845
|
-
data:
|
|
1846
|
-
): CancelablePromise<
|
|
2225
|
+
public static reportingControllerGetCashFlowTrends(
|
|
2226
|
+
data: ReportingControllerGetCashFlowTrendsData
|
|
2227
|
+
): CancelablePromise<ReportingControllerGetCashFlowTrendsResponse> {
|
|
1847
2228
|
return __request(OpenAPI, {
|
|
1848
|
-
method: '
|
|
1849
|
-
url: '/api/v1/{region}/
|
|
2229
|
+
method: 'GET',
|
|
2230
|
+
url: '/api/v1/{region}/reporting/cash-flow/trends',
|
|
1850
2231
|
path: {
|
|
1851
|
-
id: data.id,
|
|
1852
2232
|
region: data.region
|
|
1853
2233
|
},
|
|
1854
|
-
|
|
1855
|
-
|
|
2234
|
+
query: {
|
|
2235
|
+
period: data.period,
|
|
2236
|
+
granularity: data.granularity
|
|
2237
|
+
},
|
|
1856
2238
|
errors: {
|
|
1857
|
-
|
|
1858
|
-
404: 'Expected or actual transaction not found',
|
|
1859
|
-
409: 'Actual transaction already matched to another rule'
|
|
2239
|
+
401: 'User not authenticated'
|
|
1860
2240
|
}
|
|
1861
2241
|
});
|
|
1862
2242
|
}
|
|
1863
2243
|
|
|
1864
2244
|
/**
|
|
1865
|
-
*
|
|
1866
|
-
*
|
|
2245
|
+
* Generate portfolio snapshot
|
|
2246
|
+
*
|
|
2247
|
+
* Manually generate a portfolio snapshot for a specific date.
|
|
2248
|
+
*
|
|
2249
|
+
* **Multi-currency Support:**
|
|
2250
|
+
* - Fetches balances grouped by currency
|
|
2251
|
+
* - Uses user's baseCurrency setting for conversion
|
|
2252
|
+
* - Stores exchange rates and warnings
|
|
2253
|
+
*
|
|
2254
|
+
* **Use Cases:**
|
|
2255
|
+
* - Testing snapshot generation
|
|
2256
|
+
* - Force regeneration after data correction
|
|
2257
|
+
* - Initial setup for new users
|
|
2258
|
+
*
|
|
1867
2259
|
* @param data The data for the request.
|
|
1868
|
-
* @param data.id Expected transaction ID
|
|
1869
2260
|
* @param data.region Region code for tenant context
|
|
1870
|
-
* @
|
|
2261
|
+
* @param data.requestBody Optional date (defaults to today)
|
|
2262
|
+
* @returns GenerateSnapshotResponse Snapshot generated successfully
|
|
1871
2263
|
* @throws ApiError
|
|
1872
2264
|
*/
|
|
1873
|
-
public static
|
|
1874
|
-
data:
|
|
1875
|
-
): CancelablePromise<
|
|
2265
|
+
public static reportingControllerGenerateSnapshot(
|
|
2266
|
+
data: ReportingControllerGenerateSnapshotData
|
|
2267
|
+
): CancelablePromise<ReportingControllerGenerateSnapshotResponse> {
|
|
1876
2268
|
return __request(OpenAPI, {
|
|
1877
|
-
method: '
|
|
1878
|
-
url: '/api/v1/{region}/
|
|
2269
|
+
method: 'POST',
|
|
2270
|
+
url: '/api/v1/{region}/reporting/snapshots/generate',
|
|
1879
2271
|
path: {
|
|
1880
|
-
id: data.id,
|
|
1881
2272
|
region: data.region
|
|
1882
2273
|
},
|
|
2274
|
+
body: data.requestBody,
|
|
2275
|
+
mediaType: 'application/json',
|
|
1883
2276
|
errors: {
|
|
1884
|
-
400: '
|
|
1885
|
-
|
|
2277
|
+
400: 'Invalid date format',
|
|
2278
|
+
401: 'User not authenticated'
|
|
1886
2279
|
}
|
|
1887
2280
|
});
|
|
1888
2281
|
}
|
|
1889
2282
|
|
|
1890
2283
|
/**
|
|
1891
|
-
*
|
|
1892
|
-
*
|
|
2284
|
+
* Backfill portfolio snapshots
|
|
2285
|
+
*
|
|
2286
|
+
* Generate snapshots for a date range (historical data backfill).
|
|
2287
|
+
*
|
|
2288
|
+
* **Multi-currency Support:**
|
|
2289
|
+
* - Each snapshot includes multi-currency data
|
|
2290
|
+
* - Uses exchange rates available at generation time
|
|
2291
|
+
* - Warnings stored for missing exchange rates
|
|
2292
|
+
*
|
|
2293
|
+
* **Best Practices:**
|
|
2294
|
+
* - Use for initial setup after account configuration
|
|
2295
|
+
* - Run during low-traffic periods for large date ranges
|
|
2296
|
+
* - Existing snapshots are skipped (not regenerated)
|
|
2297
|
+
*
|
|
1893
2298
|
* @param data The data for the request.
|
|
1894
|
-
* @param data.id Expected transaction ID
|
|
1895
2299
|
* @param data.region Region code for tenant context
|
|
1896
2300
|
* @param data.requestBody
|
|
1897
|
-
* @returns
|
|
2301
|
+
* @returns BackfillSnapshotsResponse Backfill completed successfully
|
|
1898
2302
|
* @throws ApiError
|
|
1899
2303
|
*/
|
|
1900
|
-
public static
|
|
1901
|
-
data:
|
|
1902
|
-
): CancelablePromise<
|
|
2304
|
+
public static reportingControllerBackfillSnapshots(
|
|
2305
|
+
data: ReportingControllerBackfillSnapshotsData
|
|
2306
|
+
): CancelablePromise<ReportingControllerBackfillSnapshotsResponse> {
|
|
1903
2307
|
return __request(OpenAPI, {
|
|
1904
2308
|
method: 'POST',
|
|
1905
|
-
url: '/api/v1/{region}/
|
|
2309
|
+
url: '/api/v1/{region}/reporting/snapshots/backfill',
|
|
1906
2310
|
path: {
|
|
1907
|
-
id: data.id,
|
|
1908
2311
|
region: data.region
|
|
1909
2312
|
},
|
|
1910
2313
|
body: data.requestBody,
|
|
1911
2314
|
mediaType: 'application/json',
|
|
1912
2315
|
errors: {
|
|
1913
|
-
400: '
|
|
1914
|
-
|
|
2316
|
+
400: 'Invalid date format or range',
|
|
2317
|
+
401: 'User not authenticated',
|
|
2318
|
+
409: 'Backfill already in progress for this user'
|
|
1915
2319
|
}
|
|
1916
2320
|
});
|
|
1917
2321
|
}
|
|
1918
2322
|
}
|
|
1919
2323
|
|
|
1920
|
-
export class
|
|
2324
|
+
export class BeanPricesService {
|
|
1921
2325
|
/**
|
|
1922
|
-
*
|
|
1923
|
-
*
|
|
2326
|
+
* Create a new price
|
|
2327
|
+
* Creates a new price entry for the authenticated user
|
|
1924
2328
|
* @param data The data for the request.
|
|
1925
2329
|
* @param data.region Region code for tenant context
|
|
1926
|
-
* @param data.
|
|
1927
|
-
* @returns
|
|
2330
|
+
* @param data.requestBody
|
|
2331
|
+
* @returns PriceResponseDto Price created successfully
|
|
1928
2332
|
* @throws ApiError
|
|
1929
2333
|
*/
|
|
1930
|
-
public static
|
|
1931
|
-
data:
|
|
1932
|
-
): CancelablePromise<
|
|
2334
|
+
public static priceControllerCreate(
|
|
2335
|
+
data: PriceControllerCreateData
|
|
2336
|
+
): CancelablePromise<PriceControllerCreateResponse> {
|
|
1933
2337
|
return __request(OpenAPI, {
|
|
1934
|
-
method: '
|
|
1935
|
-
url: '/api/v1/{region}/bean/
|
|
2338
|
+
method: 'POST',
|
|
2339
|
+
url: '/api/v1/{region}/bean/prices',
|
|
1936
2340
|
path: {
|
|
1937
2341
|
region: data.region
|
|
1938
2342
|
},
|
|
1939
|
-
|
|
1940
|
-
|
|
2343
|
+
body: data.requestBody,
|
|
2344
|
+
mediaType: 'application/json',
|
|
2345
|
+
errors: {
|
|
2346
|
+
404: 'Currency or quoteCurrency commodity not found',
|
|
2347
|
+
409: 'Price already exists for this currency pair and date'
|
|
1941
2348
|
}
|
|
1942
2349
|
});
|
|
1943
2350
|
}
|
|
1944
|
-
}
|
|
1945
2351
|
|
|
1946
|
-
export class BeanTransactionRulesService {
|
|
1947
2352
|
/**
|
|
1948
|
-
*
|
|
1949
|
-
*
|
|
2353
|
+
* List user prices
|
|
2354
|
+
* Returns all price entries for the authenticated user with optional filtering
|
|
1950
2355
|
* @param data The data for the request.
|
|
1951
2356
|
* @param data.region Region code for tenant context
|
|
1952
|
-
* @param data.
|
|
1953
|
-
* @
|
|
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
|
|
1954
2365
|
* @throws ApiError
|
|
1955
2366
|
*/
|
|
1956
|
-
public static
|
|
1957
|
-
data:
|
|
1958
|
-
): CancelablePromise<
|
|
2367
|
+
public static priceControllerFindAll(
|
|
2368
|
+
data: PriceControllerFindAllData
|
|
2369
|
+
): CancelablePromise<PriceControllerFindAllResponse> {
|
|
1959
2370
|
return __request(OpenAPI, {
|
|
1960
|
-
method: '
|
|
1961
|
-
url: '/api/v1/{region}/bean/
|
|
2371
|
+
method: 'GET',
|
|
2372
|
+
url: '/api/v1/{region}/bean/prices',
|
|
1962
2373
|
path: {
|
|
1963
2374
|
region: data.region
|
|
1964
2375
|
},
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
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
|
|
1971
2384
|
}
|
|
1972
2385
|
});
|
|
1973
2386
|
}
|
|
1974
2387
|
|
|
1975
2388
|
/**
|
|
1976
|
-
* Get
|
|
2389
|
+
* Get price by ID
|
|
2390
|
+
* Returns a single price entry by its ID
|
|
1977
2391
|
* @param data The data for the request.
|
|
2392
|
+
* @param data.id Price ID
|
|
1978
2393
|
* @param data.region Region code for tenant context
|
|
1979
|
-
* @
|
|
1980
|
-
* @param data.offset Pagination offset (default: 0)
|
|
1981
|
-
* @param data.enabled Filter by enabled status
|
|
1982
|
-
* @param data.learningSource Filter by learning source. Omit this parameter or pass empty string to get manually created rules (learningSource is null in database).
|
|
1983
|
-
* @param data.autoApplyEnabled Filter by auto-apply status
|
|
1984
|
-
* @returns TransactionRuleListResponseDto List of rules
|
|
2394
|
+
* @returns PriceResponseDto Price retrieved successfully
|
|
1985
2395
|
* @throws ApiError
|
|
1986
2396
|
*/
|
|
1987
|
-
public static
|
|
1988
|
-
data:
|
|
1989
|
-
): CancelablePromise<
|
|
2397
|
+
public static priceControllerFindOne(
|
|
2398
|
+
data: PriceControllerFindOneData
|
|
2399
|
+
): CancelablePromise<PriceControllerFindOneResponse> {
|
|
1990
2400
|
return __request(OpenAPI, {
|
|
1991
2401
|
method: 'GET',
|
|
1992
|
-
url: '/api/v1/{region}/bean/
|
|
2402
|
+
url: '/api/v1/{region}/bean/prices/{id}',
|
|
1993
2403
|
path: {
|
|
2404
|
+
id: data.id,
|
|
1994
2405
|
region: data.region
|
|
1995
2406
|
},
|
|
1996
|
-
query: {
|
|
1997
|
-
limit: data.limit,
|
|
1998
|
-
offset: data.offset,
|
|
1999
|
-
enabled: data.enabled,
|
|
2000
|
-
learningSource: data.learningSource,
|
|
2001
|
-
autoApplyEnabled: data.autoApplyEnabled
|
|
2002
|
-
},
|
|
2003
2407
|
errors: {
|
|
2004
|
-
|
|
2408
|
+
404: 'Price not found'
|
|
2005
2409
|
}
|
|
2006
2410
|
});
|
|
2007
2411
|
}
|
|
2008
2412
|
|
|
2009
2413
|
/**
|
|
2010
|
-
*
|
|
2414
|
+
* Update a price
|
|
2415
|
+
* Updates an existing price entry
|
|
2011
2416
|
* @param data The data for the request.
|
|
2417
|
+
* @param data.id Price ID
|
|
2012
2418
|
* @param data.region Region code for tenant context
|
|
2013
2419
|
* @param data.requestBody
|
|
2014
|
-
* @returns
|
|
2420
|
+
* @returns PriceResponseDto Price updated successfully
|
|
2015
2421
|
* @throws ApiError
|
|
2016
2422
|
*/
|
|
2017
|
-
public static
|
|
2018
|
-
data:
|
|
2019
|
-
): CancelablePromise<
|
|
2423
|
+
public static priceControllerUpdate(
|
|
2424
|
+
data: PriceControllerUpdateData
|
|
2425
|
+
): CancelablePromise<PriceControllerUpdateResponse> {
|
|
2020
2426
|
return __request(OpenAPI, {
|
|
2021
|
-
method: '
|
|
2022
|
-
url: '/api/v1/{region}/bean/
|
|
2427
|
+
method: 'PUT',
|
|
2428
|
+
url: '/api/v1/{region}/bean/prices/{id}',
|
|
2023
2429
|
path: {
|
|
2430
|
+
id: data.id,
|
|
2024
2431
|
region: data.region
|
|
2025
2432
|
},
|
|
2026
2433
|
body: data.requestBody,
|
|
2027
2434
|
mediaType: 'application/json',
|
|
2028
2435
|
errors: {
|
|
2029
|
-
|
|
2030
|
-
|
|
2436
|
+
404: 'Price not found',
|
|
2437
|
+
409: 'Updated price conflicts with existing price'
|
|
2031
2438
|
}
|
|
2032
2439
|
});
|
|
2033
2440
|
}
|
|
2034
2441
|
|
|
2035
2442
|
/**
|
|
2036
|
-
*
|
|
2443
|
+
* Delete a price
|
|
2444
|
+
* Deletes a price entry (hard delete)
|
|
2037
2445
|
* @param data The data for the request.
|
|
2446
|
+
* @param data.id Price ID
|
|
2038
2447
|
* @param data.region Region code for tenant context
|
|
2039
|
-
* @
|
|
2040
|
-
* @returns BulkCreateRulesResponseDto Bulk create completed
|
|
2448
|
+
* @returns void Price deleted successfully
|
|
2041
2449
|
* @throws ApiError
|
|
2042
2450
|
*/
|
|
2043
|
-
public static
|
|
2044
|
-
data:
|
|
2045
|
-
): CancelablePromise<
|
|
2451
|
+
public static priceControllerDelete(
|
|
2452
|
+
data: PriceControllerDeleteData
|
|
2453
|
+
): CancelablePromise<PriceControllerDeleteResponse> {
|
|
2046
2454
|
return __request(OpenAPI, {
|
|
2047
|
-
method: '
|
|
2048
|
-
url: '/api/v1/{region}/bean/
|
|
2455
|
+
method: 'DELETE',
|
|
2456
|
+
url: '/api/v1/{region}/bean/prices/{id}',
|
|
2049
2457
|
path: {
|
|
2458
|
+
id: data.id,
|
|
2050
2459
|
region: data.region
|
|
2051
2460
|
},
|
|
2052
|
-
body: data.requestBody,
|
|
2053
|
-
mediaType: 'application/json',
|
|
2054
2461
|
errors: {
|
|
2055
|
-
|
|
2056
|
-
401: 'Unauthorized'
|
|
2462
|
+
404: 'Price not found'
|
|
2057
2463
|
}
|
|
2058
2464
|
});
|
|
2059
2465
|
}
|
|
2060
2466
|
|
|
2061
2467
|
/**
|
|
2062
|
-
*
|
|
2468
|
+
* Bulk create prices
|
|
2469
|
+
* Creates multiple price entries at once (skips duplicates)
|
|
2063
2470
|
* @param data The data for the request.
|
|
2064
|
-
* @param data.format Export format (currently only JSON supported)
|
|
2065
2471
|
* @param data.region Region code for tenant context
|
|
2066
|
-
* @
|
|
2472
|
+
* @param data.requestBody
|
|
2473
|
+
* @returns PriceResponseDto Prices created successfully
|
|
2067
2474
|
* @throws ApiError
|
|
2068
2475
|
*/
|
|
2069
|
-
public static
|
|
2070
|
-
data:
|
|
2071
|
-
): CancelablePromise<
|
|
2476
|
+
public static priceControllerBulkCreate(
|
|
2477
|
+
data: PriceControllerBulkCreateData
|
|
2478
|
+
): CancelablePromise<PriceControllerBulkCreateResponse> {
|
|
2072
2479
|
return __request(OpenAPI, {
|
|
2073
|
-
method: '
|
|
2074
|
-
url: '/api/v1/{region}/bean/
|
|
2480
|
+
method: 'POST',
|
|
2481
|
+
url: '/api/v1/{region}/bean/prices/bulk',
|
|
2075
2482
|
path: {
|
|
2076
|
-
format: data.format,
|
|
2077
2483
|
region: data.region
|
|
2078
2484
|
},
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
401: 'Unauthorized'
|
|
2082
|
-
}
|
|
2485
|
+
body: data.requestBody,
|
|
2486
|
+
mediaType: 'application/json'
|
|
2083
2487
|
});
|
|
2084
2488
|
}
|
|
2489
|
+
}
|
|
2085
2490
|
|
|
2491
|
+
export class RecurringRulesService {
|
|
2086
2492
|
/**
|
|
2087
|
-
*
|
|
2493
|
+
* Create a new recurring rule
|
|
2494
|
+
* Creates a new recurring transaction rule for the authenticated user
|
|
2088
2495
|
* @param data The data for the request.
|
|
2089
|
-
* @param data.period Statistics time period
|
|
2090
2496
|
* @param data.region Region code for tenant context
|
|
2091
|
-
* @
|
|
2497
|
+
* @param data.requestBody
|
|
2498
|
+
* @returns RecurringRuleResponseDto Rule created successfully
|
|
2092
2499
|
* @throws ApiError
|
|
2093
2500
|
*/
|
|
2094
|
-
public static
|
|
2095
|
-
data:
|
|
2096
|
-
): CancelablePromise<
|
|
2501
|
+
public static recurringRuleControllerCreate(
|
|
2502
|
+
data: RecurringRuleControllerCreateData
|
|
2503
|
+
): CancelablePromise<RecurringRuleControllerCreateResponse> {
|
|
2097
2504
|
return __request(OpenAPI, {
|
|
2098
|
-
method: '
|
|
2099
|
-
url: '/api/v1/{region}/bean/
|
|
2505
|
+
method: 'POST',
|
|
2506
|
+
url: '/api/v1/{region}/bean/recurring-rules',
|
|
2100
2507
|
path: {
|
|
2101
|
-
period: data.period,
|
|
2102
2508
|
region: data.region
|
|
2103
2509
|
},
|
|
2510
|
+
body: data.requestBody,
|
|
2511
|
+
mediaType: 'application/json',
|
|
2104
2512
|
errors: {
|
|
2105
|
-
|
|
2513
|
+
400: 'Invalid input data (e.g., autoCreate without accounts)',
|
|
2514
|
+
409: 'Rule with same name already exists'
|
|
2106
2515
|
}
|
|
2107
2516
|
});
|
|
2108
2517
|
}
|
|
2109
2518
|
|
|
2110
2519
|
/**
|
|
2111
|
-
*
|
|
2520
|
+
* List recurring rules
|
|
2521
|
+
* Returns all recurring rules for the authenticated user with optional filtering
|
|
2112
2522
|
* @param data The data for the request.
|
|
2113
|
-
* @param data.ruleId Rule ID
|
|
2114
2523
|
* @param data.region Region code for tenant context
|
|
2115
|
-
* @
|
|
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
|
|
2116
2528
|
* @throws ApiError
|
|
2117
2529
|
*/
|
|
2118
|
-
public static
|
|
2119
|
-
data:
|
|
2120
|
-
): CancelablePromise<
|
|
2530
|
+
public static recurringRuleControllerFindAll(
|
|
2531
|
+
data: RecurringRuleControllerFindAllData
|
|
2532
|
+
): CancelablePromise<RecurringRuleControllerFindAllResponse> {
|
|
2121
2533
|
return __request(OpenAPI, {
|
|
2122
2534
|
method: 'GET',
|
|
2123
|
-
url: '/api/v1/{region}/bean/
|
|
2535
|
+
url: '/api/v1/{region}/bean/recurring-rules',
|
|
2124
2536
|
path: {
|
|
2125
|
-
ruleId: data.ruleId,
|
|
2126
2537
|
region: data.region
|
|
2127
2538
|
},
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2539
|
+
query: {
|
|
2540
|
+
isActive: data.isActive,
|
|
2541
|
+
frequency: data.frequency,
|
|
2542
|
+
hasAutoCreate: data.hasAutoCreate
|
|
2132
2543
|
}
|
|
2133
2544
|
});
|
|
2134
2545
|
}
|
|
2135
2546
|
|
|
2136
2547
|
/**
|
|
2137
|
-
*
|
|
2548
|
+
* Create recurring rule from transaction
|
|
2549
|
+
* Auto-creates a recurring rule using transaction data. User only confirms frequency.
|
|
2138
2550
|
* @param data The data for the request.
|
|
2139
|
-
* @param data.
|
|
2551
|
+
* @param data.transactionId Source transaction ID
|
|
2140
2552
|
* @param data.region Region code for tenant context
|
|
2141
2553
|
* @param data.requestBody
|
|
2142
|
-
* @returns
|
|
2554
|
+
* @returns RecurringRuleResponseDto Rule created successfully
|
|
2143
2555
|
* @throws ApiError
|
|
2144
2556
|
*/
|
|
2145
|
-
public static
|
|
2146
|
-
data:
|
|
2147
|
-
): CancelablePromise<
|
|
2557
|
+
public static recurringRuleControllerCreateFromTransaction(
|
|
2558
|
+
data: RecurringRuleControllerCreateFromTransactionData
|
|
2559
|
+
): CancelablePromise<RecurringRuleControllerCreateFromTransactionResponse> {
|
|
2148
2560
|
return __request(OpenAPI, {
|
|
2149
|
-
method: '
|
|
2150
|
-
url: '/api/v1/{region}/bean/
|
|
2561
|
+
method: 'POST',
|
|
2562
|
+
url: '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}',
|
|
2151
2563
|
path: {
|
|
2152
|
-
|
|
2564
|
+
transactionId: data.transactionId,
|
|
2153
2565
|
region: data.region
|
|
2154
2566
|
},
|
|
2155
2567
|
body: data.requestBody,
|
|
2156
2568
|
mediaType: 'application/json',
|
|
2157
2569
|
errors: {
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
403: 'Forbidden - not owner of rule',
|
|
2161
|
-
404: 'Rule not found',
|
|
2162
|
-
409: 'Resource conflict - rule is being modified by another process'
|
|
2570
|
+
404: 'Transaction not found',
|
|
2571
|
+
409: 'Rule with same name already exists or transaction already linked'
|
|
2163
2572
|
}
|
|
2164
2573
|
});
|
|
2165
2574
|
}
|
|
2166
2575
|
|
|
2167
2576
|
/**
|
|
2168
|
-
*
|
|
2577
|
+
* Get recurring rule by ID
|
|
2578
|
+
* Returns a specific recurring rule with its details
|
|
2169
2579
|
* @param data The data for the request.
|
|
2170
|
-
* @param data.
|
|
2580
|
+
* @param data.id Rule ID
|
|
2171
2581
|
* @param data.region Region code for tenant context
|
|
2172
|
-
* @returns
|
|
2582
|
+
* @returns RecurringRuleResponseDto Rule retrieved successfully
|
|
2173
2583
|
* @throws ApiError
|
|
2174
2584
|
*/
|
|
2175
|
-
public static
|
|
2176
|
-
data:
|
|
2177
|
-
): CancelablePromise<
|
|
2585
|
+
public static recurringRuleControllerFindOne(
|
|
2586
|
+
data: RecurringRuleControllerFindOneData
|
|
2587
|
+
): CancelablePromise<RecurringRuleControllerFindOneResponse> {
|
|
2178
2588
|
return __request(OpenAPI, {
|
|
2179
|
-
method: '
|
|
2180
|
-
url: '/api/v1/{region}/bean/
|
|
2589
|
+
method: 'GET',
|
|
2590
|
+
url: '/api/v1/{region}/bean/recurring-rules/{id}',
|
|
2181
2591
|
path: {
|
|
2182
|
-
|
|
2592
|
+
id: data.id,
|
|
2183
2593
|
region: data.region
|
|
2184
2594
|
},
|
|
2185
2595
|
errors: {
|
|
2186
|
-
|
|
2187
|
-
403: 'Forbidden - not owner of rule',
|
|
2188
|
-
404: 'Rule not found',
|
|
2189
|
-
409: 'Resource conflict - rule is being modified by another process'
|
|
2596
|
+
404: 'Rule not found'
|
|
2190
2597
|
}
|
|
2191
2598
|
});
|
|
2192
2599
|
}
|
|
2193
2600
|
|
|
2194
2601
|
/**
|
|
2195
|
-
*
|
|
2602
|
+
* Update recurring rule
|
|
2603
|
+
* Updates an existing recurring rule
|
|
2196
2604
|
* @param data The data for the request.
|
|
2197
|
-
* @param data.
|
|
2605
|
+
* @param data.id Rule ID
|
|
2198
2606
|
* @param data.region Region code for tenant context
|
|
2199
2607
|
* @param data.requestBody
|
|
2200
|
-
* @returns
|
|
2608
|
+
* @returns RecurringRuleResponseDto Rule updated successfully
|
|
2201
2609
|
* @throws ApiError
|
|
2202
2610
|
*/
|
|
2203
|
-
public static
|
|
2204
|
-
data:
|
|
2205
|
-
): CancelablePromise<
|
|
2611
|
+
public static recurringRuleControllerUpdate(
|
|
2612
|
+
data: RecurringRuleControllerUpdateData
|
|
2613
|
+
): CancelablePromise<RecurringRuleControllerUpdateResponse> {
|
|
2206
2614
|
return __request(OpenAPI, {
|
|
2207
|
-
method: '
|
|
2208
|
-
url: '/api/v1/{region}/bean/
|
|
2615
|
+
method: 'PATCH',
|
|
2616
|
+
url: '/api/v1/{region}/bean/recurring-rules/{id}',
|
|
2209
2617
|
path: {
|
|
2210
|
-
|
|
2618
|
+
id: data.id,
|
|
2211
2619
|
region: data.region
|
|
2212
2620
|
},
|
|
2213
2621
|
body: data.requestBody,
|
|
2214
2622
|
mediaType: 'application/json',
|
|
2215
2623
|
errors: {
|
|
2216
|
-
|
|
2217
|
-
403: 'Forbidden - not owner of rule',
|
|
2624
|
+
400: 'Invalid input data',
|
|
2218
2625
|
404: 'Rule not found'
|
|
2219
2626
|
}
|
|
2220
2627
|
});
|
|
2221
2628
|
}
|
|
2222
|
-
}
|
|
2223
2629
|
|
|
2224
|
-
export class UsersService {
|
|
2225
2630
|
/**
|
|
2226
|
-
* Delete
|
|
2631
|
+
* Delete recurring rule
|
|
2632
|
+
* Soft deletes a recurring rule (sets isActive to false)
|
|
2227
2633
|
* @param data The data for the request.
|
|
2228
|
-
* @param data.
|
|
2229
|
-
* @
|
|
2634
|
+
* @param data.id Rule ID
|
|
2635
|
+
* @param data.region Region code for tenant context
|
|
2636
|
+
* @returns void Rule deleted successfully
|
|
2230
2637
|
* @throws ApiError
|
|
2231
2638
|
*/
|
|
2232
|
-
public static
|
|
2233
|
-
data:
|
|
2234
|
-
): CancelablePromise<
|
|
2639
|
+
public static recurringRuleControllerDelete(
|
|
2640
|
+
data: RecurringRuleControllerDeleteData
|
|
2641
|
+
): CancelablePromise<RecurringRuleControllerDeleteResponse> {
|
|
2235
2642
|
return __request(OpenAPI, {
|
|
2236
2643
|
method: 'DELETE',
|
|
2237
|
-
url: '/api/v1/
|
|
2238
|
-
|
|
2239
|
-
|
|
2644
|
+
url: '/api/v1/{region}/bean/recurring-rules/{id}',
|
|
2645
|
+
path: {
|
|
2646
|
+
id: data.id,
|
|
2647
|
+
region: data.region
|
|
2648
|
+
},
|
|
2240
2649
|
errors: {
|
|
2241
|
-
|
|
2650
|
+
404: 'Rule not found'
|
|
2242
2651
|
}
|
|
2243
2652
|
});
|
|
2244
2653
|
}
|
|
2245
2654
|
|
|
2246
2655
|
/**
|
|
2247
|
-
* Get
|
|
2656
|
+
* Get rule with statistics
|
|
2657
|
+
* Returns a rule with pending/overdue counts and next expected date
|
|
2248
2658
|
* @param data The data for the request.
|
|
2249
|
-
* @param data.
|
|
2250
|
-
* @
|
|
2659
|
+
* @param data.id Rule ID
|
|
2660
|
+
* @param data.region Region code for tenant context
|
|
2661
|
+
* @returns RecurringRuleWithStatsResponseDto Rule with stats retrieved successfully
|
|
2251
2662
|
* @throws ApiError
|
|
2252
2663
|
*/
|
|
2253
|
-
public static
|
|
2254
|
-
data:
|
|
2255
|
-
): CancelablePromise<
|
|
2664
|
+
public static recurringRuleControllerGetWithStats(
|
|
2665
|
+
data: RecurringRuleControllerGetWithStatsData
|
|
2666
|
+
): CancelablePromise<RecurringRuleControllerGetWithStatsResponse> {
|
|
2256
2667
|
return __request(OpenAPI, {
|
|
2257
2668
|
method: 'GET',
|
|
2258
|
-
url: '/api/v1/
|
|
2259
|
-
|
|
2260
|
-
|
|
2669
|
+
url: '/api/v1/{region}/bean/recurring-rules/{id}/stats',
|
|
2670
|
+
path: {
|
|
2671
|
+
id: data.id,
|
|
2672
|
+
region: data.region
|
|
2673
|
+
},
|
|
2674
|
+
errors: {
|
|
2675
|
+
404: 'Rule not found'
|
|
2261
2676
|
}
|
|
2262
2677
|
});
|
|
2263
2678
|
}
|
|
2679
|
+
}
|
|
2264
2680
|
|
|
2681
|
+
export class ExpectedTransactionsService {
|
|
2265
2682
|
/**
|
|
2266
|
-
*
|
|
2267
|
-
*
|
|
2683
|
+
* List expected transactions
|
|
2684
|
+
* Returns expected transactions for the authenticated user with optional filtering
|
|
2268
2685
|
* @param data The data for the request.
|
|
2269
|
-
* @param data.
|
|
2270
|
-
* @
|
|
2686
|
+
* @param data.region Region code for tenant context
|
|
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
|
|
2271
2692
|
* @throws ApiError
|
|
2272
2693
|
*/
|
|
2273
|
-
public static
|
|
2274
|
-
data:
|
|
2275
|
-
): CancelablePromise<
|
|
2694
|
+
public static expectedTransactionControllerFindAll(
|
|
2695
|
+
data: ExpectedTransactionControllerFindAllData
|
|
2696
|
+
): CancelablePromise<ExpectedTransactionControllerFindAllResponse> {
|
|
2276
2697
|
return __request(OpenAPI, {
|
|
2277
|
-
method: '
|
|
2278
|
-
url: '/api/v1/
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2698
|
+
method: 'GET',
|
|
2699
|
+
url: '/api/v1/{region}/bean/expected-transactions',
|
|
2700
|
+
path: {
|
|
2701
|
+
region: data.region
|
|
2702
|
+
},
|
|
2703
|
+
query: {
|
|
2704
|
+
ruleId: data.ruleId,
|
|
2705
|
+
status: data.status,
|
|
2706
|
+
fromDate: data.fromDate,
|
|
2707
|
+
toDate: data.toDate
|
|
2284
2708
|
}
|
|
2285
2709
|
});
|
|
2286
2710
|
}
|
|
2287
2711
|
|
|
2288
2712
|
/**
|
|
2289
|
-
*
|
|
2713
|
+
* List overdue expected transactions
|
|
2714
|
+
* Returns all overdue expected transactions (PENDING past tolerance)
|
|
2290
2715
|
* @param data The data for the request.
|
|
2291
|
-
* @param data.
|
|
2292
|
-
* @returns
|
|
2716
|
+
* @param data.region Region code for tenant context
|
|
2717
|
+
* @returns ExpectedTransactionListResponseDto Overdue transactions retrieved successfully
|
|
2293
2718
|
* @throws ApiError
|
|
2294
2719
|
*/
|
|
2295
|
-
public static
|
|
2296
|
-
data:
|
|
2297
|
-
): CancelablePromise<
|
|
2720
|
+
public static expectedTransactionControllerFindOverdue(
|
|
2721
|
+
data: ExpectedTransactionControllerFindOverdueData
|
|
2722
|
+
): CancelablePromise<ExpectedTransactionControllerFindOverdueResponse> {
|
|
2298
2723
|
return __request(OpenAPI, {
|
|
2299
|
-
method: '
|
|
2300
|
-
url: '/api/v1/
|
|
2724
|
+
method: 'GET',
|
|
2725
|
+
url: '/api/v1/{region}/bean/expected-transactions/overdue',
|
|
2301
2726
|
path: {
|
|
2302
|
-
|
|
2303
|
-
},
|
|
2304
|
-
errors: {
|
|
2305
|
-
403: 'Cannot delete own account or insufficient permissions'
|
|
2727
|
+
region: data.region
|
|
2306
2728
|
}
|
|
2307
2729
|
});
|
|
2308
2730
|
}
|
|
2309
2731
|
|
|
2310
2732
|
/**
|
|
2311
|
-
* Get
|
|
2733
|
+
* Get expected transaction by ID
|
|
2734
|
+
* Returns a specific expected transaction with rule details
|
|
2312
2735
|
* @param data The data for the request.
|
|
2313
|
-
* @param data.id
|
|
2314
|
-
* @
|
|
2736
|
+
* @param data.id Expected transaction ID
|
|
2737
|
+
* @param data.region Region code for tenant context
|
|
2738
|
+
* @returns ExpectedTransactionResponseDto Expected transaction retrieved successfully
|
|
2315
2739
|
* @throws ApiError
|
|
2316
2740
|
*/
|
|
2317
|
-
public static
|
|
2318
|
-
data:
|
|
2319
|
-
): CancelablePromise<
|
|
2741
|
+
public static expectedTransactionControllerFindOne(
|
|
2742
|
+
data: ExpectedTransactionControllerFindOneData
|
|
2743
|
+
): CancelablePromise<ExpectedTransactionControllerFindOneResponse> {
|
|
2320
2744
|
return __request(OpenAPI, {
|
|
2321
2745
|
method: 'GET',
|
|
2322
|
-
url: '/api/v1/
|
|
2746
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}',
|
|
2323
2747
|
path: {
|
|
2324
|
-
id: data.id
|
|
2748
|
+
id: data.id,
|
|
2749
|
+
region: data.region
|
|
2325
2750
|
},
|
|
2326
2751
|
errors: {
|
|
2327
|
-
|
|
2752
|
+
404: 'Expected transaction not found'
|
|
2328
2753
|
}
|
|
2329
2754
|
});
|
|
2330
2755
|
}
|
|
2331
2756
|
|
|
2332
2757
|
/**
|
|
2333
|
-
*
|
|
2758
|
+
* Skip expected transaction
|
|
2759
|
+
* Marks an expected transaction as skipped (PENDING -> SKIPPED)
|
|
2334
2760
|
* @param data The data for the request.
|
|
2335
|
-
* @param data.
|
|
2336
|
-
* @
|
|
2761
|
+
* @param data.id Expected transaction ID
|
|
2762
|
+
* @param data.region Region code for tenant context
|
|
2763
|
+
* @returns ExpectedTransactionResponseDto Expected transaction skipped successfully
|
|
2337
2764
|
* @throws ApiError
|
|
2338
2765
|
*/
|
|
2339
|
-
public static
|
|
2340
|
-
data:
|
|
2341
|
-
): CancelablePromise<
|
|
2766
|
+
public static expectedTransactionControllerSkip(
|
|
2767
|
+
data: ExpectedTransactionControllerSkipData
|
|
2768
|
+
): CancelablePromise<ExpectedTransactionControllerSkipResponse> {
|
|
2342
2769
|
return __request(OpenAPI, {
|
|
2343
|
-
method: '
|
|
2344
|
-
url: '/api/v1/
|
|
2345
|
-
|
|
2346
|
-
|
|
2770
|
+
method: 'POST',
|
|
2771
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
|
|
2772
|
+
path: {
|
|
2773
|
+
id: data.id,
|
|
2774
|
+
region: data.region
|
|
2775
|
+
},
|
|
2347
2776
|
errors: {
|
|
2348
|
-
|
|
2777
|
+
400: 'Cannot skip - not in PENDING status',
|
|
2778
|
+
404: 'Expected transaction not found'
|
|
2349
2779
|
}
|
|
2350
2780
|
});
|
|
2351
2781
|
}
|
|
2352
2782
|
|
|
2353
2783
|
/**
|
|
2354
|
-
*
|
|
2784
|
+
* Undo skip
|
|
2785
|
+
* Reverses a skip operation (SKIPPED -> PENDING)
|
|
2355
2786
|
* @param data The data for the request.
|
|
2356
|
-
* @param data.
|
|
2357
|
-
* @param data.
|
|
2358
|
-
* @returns
|
|
2787
|
+
* @param data.id Expected transaction ID
|
|
2788
|
+
* @param data.region Region code for tenant context
|
|
2789
|
+
* @returns void Skip undone successfully
|
|
2359
2790
|
* @throws ApiError
|
|
2360
2791
|
*/
|
|
2361
|
-
public static
|
|
2362
|
-
data:
|
|
2363
|
-
): CancelablePromise<
|
|
2792
|
+
public static expectedTransactionControllerUndoSkip(
|
|
2793
|
+
data: ExpectedTransactionControllerUndoSkipData
|
|
2794
|
+
): CancelablePromise<ExpectedTransactionControllerUndoSkipResponse> {
|
|
2364
2795
|
return __request(OpenAPI, {
|
|
2365
|
-
method: '
|
|
2366
|
-
url: '/api/v1/
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2796
|
+
method: 'DELETE',
|
|
2797
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
|
|
2798
|
+
path: {
|
|
2799
|
+
id: data.id,
|
|
2800
|
+
region: data.region
|
|
2801
|
+
},
|
|
2802
|
+
errors: {
|
|
2803
|
+
400: 'Cannot undo - not in SKIPPED status',
|
|
2804
|
+
404: 'Expected transaction not found'
|
|
2370
2805
|
}
|
|
2371
2806
|
});
|
|
2372
2807
|
}
|
|
2373
2808
|
|
|
2374
2809
|
/**
|
|
2375
|
-
*
|
|
2376
|
-
*
|
|
2810
|
+
* Confirm transaction match
|
|
2811
|
+
* Manually matches an expected transaction with an actual transaction
|
|
2812
|
+
* @param data The data for the request.
|
|
2813
|
+
* @param data.id Expected transaction ID
|
|
2814
|
+
* @param data.region Region code for tenant context
|
|
2815
|
+
* @param data.requestBody
|
|
2816
|
+
* @returns unknown Match confirmed successfully
|
|
2377
2817
|
* @throws ApiError
|
|
2378
2818
|
*/
|
|
2379
|
-
public static
|
|
2819
|
+
public static expectedTransactionControllerConfirmMatch(
|
|
2820
|
+
data: ExpectedTransactionControllerConfirmMatchData
|
|
2821
|
+
): CancelablePromise<ExpectedTransactionControllerConfirmMatchResponse> {
|
|
2380
2822
|
return __request(OpenAPI, {
|
|
2381
|
-
method: '
|
|
2382
|
-
url: '/api/v1/
|
|
2823
|
+
method: 'POST',
|
|
2824
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
|
|
2825
|
+
path: {
|
|
2826
|
+
id: data.id,
|
|
2827
|
+
region: data.region
|
|
2828
|
+
},
|
|
2829
|
+
body: data.requestBody,
|
|
2830
|
+
mediaType: 'application/json',
|
|
2831
|
+
errors: {
|
|
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'
|
|
2835
|
+
}
|
|
2383
2836
|
});
|
|
2384
2837
|
}
|
|
2385
|
-
}
|
|
2386
2838
|
|
|
2387
|
-
export class PropertiesService {
|
|
2388
2839
|
/**
|
|
2389
|
-
*
|
|
2390
|
-
*
|
|
2840
|
+
* Unmatch transaction
|
|
2841
|
+
* Removes the match between expected and actual transaction (COMPLETED -> PENDING)
|
|
2842
|
+
* @param data The data for the request.
|
|
2843
|
+
* @param data.id Expected transaction ID
|
|
2844
|
+
* @param data.region Region code for tenant context
|
|
2845
|
+
* @returns void Match removed successfully
|
|
2391
2846
|
* @throws ApiError
|
|
2392
2847
|
*/
|
|
2393
|
-
public static
|
|
2848
|
+
public static expectedTransactionControllerUnmatch(
|
|
2849
|
+
data: ExpectedTransactionControllerUnmatchData
|
|
2850
|
+
): CancelablePromise<ExpectedTransactionControllerUnmatchResponse> {
|
|
2394
2851
|
return __request(OpenAPI, {
|
|
2395
|
-
method: '
|
|
2396
|
-
url: '/api/v1/
|
|
2852
|
+
method: 'DELETE',
|
|
2853
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
|
|
2854
|
+
path: {
|
|
2855
|
+
id: data.id,
|
|
2856
|
+
region: data.region
|
|
2857
|
+
},
|
|
2397
2858
|
errors: {
|
|
2398
|
-
|
|
2399
|
-
|
|
2859
|
+
400: 'Cannot unmatch - not in COMPLETED status',
|
|
2860
|
+
404: 'Expected transaction not found'
|
|
2400
2861
|
}
|
|
2401
2862
|
});
|
|
2402
2863
|
}
|
|
2403
2864
|
|
|
2404
2865
|
/**
|
|
2405
|
-
*
|
|
2866
|
+
* Enter Now
|
|
2867
|
+
* Creates an actual transaction for an expected transaction (YNAB-style Enter Now)
|
|
2406
2868
|
* @param data The data for the request.
|
|
2407
|
-
* @param data.
|
|
2408
|
-
* @
|
|
2869
|
+
* @param data.id Expected transaction ID
|
|
2870
|
+
* @param data.region Region code for tenant context
|
|
2871
|
+
* @param data.requestBody
|
|
2872
|
+
* @returns unknown Transaction created successfully
|
|
2409
2873
|
* @throws ApiError
|
|
2410
2874
|
*/
|
|
2411
|
-
public static
|
|
2412
|
-
data:
|
|
2413
|
-
): CancelablePromise<
|
|
2875
|
+
public static expectedTransactionControllerEnterNow(
|
|
2876
|
+
data: ExpectedTransactionControllerEnterNowData
|
|
2877
|
+
): CancelablePromise<ExpectedTransactionControllerEnterNowResponse> {
|
|
2414
2878
|
return __request(OpenAPI, {
|
|
2415
|
-
method: '
|
|
2416
|
-
url: '/api/v1/
|
|
2879
|
+
method: 'POST',
|
|
2880
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/enter',
|
|
2417
2881
|
path: {
|
|
2418
|
-
|
|
2882
|
+
id: data.id,
|
|
2883
|
+
region: data.region
|
|
2419
2884
|
},
|
|
2885
|
+
body: data.requestBody,
|
|
2886
|
+
mediaType: 'application/json',
|
|
2420
2887
|
errors: {
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
404: 'Property not found'
|
|
2888
|
+
400: 'Cannot enter - not in PENDING status or missing accounts',
|
|
2889
|
+
404: 'Expected transaction or accounts not found'
|
|
2424
2890
|
}
|
|
2425
2891
|
});
|
|
2426
2892
|
}
|
|
2893
|
+
}
|
|
2427
2894
|
|
|
2895
|
+
export class RecurringForecastService {
|
|
2428
2896
|
/**
|
|
2429
|
-
*
|
|
2897
|
+
* Get cash flow forecast
|
|
2898
|
+
* Returns predicted outflows for the next N months based on active recurring rules
|
|
2430
2899
|
* @param data The data for the request.
|
|
2431
|
-
* @param data.
|
|
2432
|
-
* @param data.
|
|
2433
|
-
* @returns
|
|
2900
|
+
* @param data.region Region code for tenant context
|
|
2901
|
+
* @param data.months Number of months to forecast (1-12, default 3)
|
|
2902
|
+
* @returns ForecastResponseDto Forecast retrieved successfully
|
|
2434
2903
|
* @throws ApiError
|
|
2435
2904
|
*/
|
|
2436
|
-
public static
|
|
2437
|
-
data:
|
|
2438
|
-
): CancelablePromise<
|
|
2905
|
+
public static forecastControllerGetForecast(
|
|
2906
|
+
data: ForecastControllerGetForecastData
|
|
2907
|
+
): CancelablePromise<ForecastControllerGetForecastResponse> {
|
|
2439
2908
|
return __request(OpenAPI, {
|
|
2440
|
-
method: '
|
|
2441
|
-
url: '/api/v1/
|
|
2909
|
+
method: 'GET',
|
|
2910
|
+
url: '/api/v1/{region}/bean/recurring/forecast',
|
|
2442
2911
|
path: {
|
|
2443
|
-
|
|
2912
|
+
region: data.region
|
|
2444
2913
|
},
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
errors: {
|
|
2448
|
-
401: 'Unauthorized',
|
|
2449
|
-
403: 'Forbidden - insufficient permissions'
|
|
2914
|
+
query: {
|
|
2915
|
+
months: data.months
|
|
2450
2916
|
}
|
|
2451
2917
|
});
|
|
2452
2918
|
}
|
|
2919
|
+
}
|
|
2453
2920
|
|
|
2921
|
+
export class BeanCategoryCatalogService {
|
|
2454
2922
|
/**
|
|
2455
|
-
*
|
|
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.
|
|
2456
2925
|
* @param data The data for the request.
|
|
2457
|
-
* @param data.
|
|
2458
|
-
* @
|
|
2926
|
+
* @param data.region Region code for tenant context
|
|
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
|
|
2459
2930
|
* @throws ApiError
|
|
2460
2931
|
*/
|
|
2461
|
-
public static
|
|
2462
|
-
data:
|
|
2463
|
-
): CancelablePromise<
|
|
2932
|
+
public static categoryCatalogControllerList(
|
|
2933
|
+
data: CategoryCatalogControllerListData
|
|
2934
|
+
): CancelablePromise<CategoryCatalogControllerListResponse> {
|
|
2464
2935
|
return __request(OpenAPI, {
|
|
2465
|
-
method: '
|
|
2466
|
-
url: '/api/v1/
|
|
2936
|
+
method: 'GET',
|
|
2937
|
+
url: '/api/v1/{region}/bean/categories',
|
|
2467
2938
|
path: {
|
|
2468
|
-
|
|
2939
|
+
region: data.region
|
|
2469
2940
|
},
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
404: 'Property not found'
|
|
2941
|
+
query: {
|
|
2942
|
+
scenario: data.scenario,
|
|
2943
|
+
routeBearing: data.routeBearing
|
|
2474
2944
|
}
|
|
2475
2945
|
});
|
|
2476
2946
|
}
|
|
@@ -2538,114 +3008,247 @@ export class LifeEventsService {
|
|
|
2538
3008
|
}
|
|
2539
3009
|
|
|
2540
3010
|
/**
|
|
2541
|
-
* Get life event by ID
|
|
2542
|
-
* Returns a single life event by its ID. Returns ETag header.
|
|
3011
|
+
* Get life event by ID
|
|
3012
|
+
* Returns a single life event by its ID. Returns ETag header.
|
|
3013
|
+
* @param data The data for the request.
|
|
3014
|
+
* @param data.id Life event ID
|
|
3015
|
+
* @param data.region Region code for tenant context (decorative for life events)
|
|
3016
|
+
* @returns EventResponseDto Life event retrieved successfully
|
|
3017
|
+
* @throws ApiError
|
|
3018
|
+
*/
|
|
3019
|
+
public static eventControllerFindOne(
|
|
3020
|
+
data: EventControllerFindOneData
|
|
3021
|
+
): CancelablePromise<EventControllerFindOneResponse> {
|
|
3022
|
+
return __request(OpenAPI, {
|
|
3023
|
+
method: 'GET',
|
|
3024
|
+
url: '/api/v1/{region}/bean/events/{id}',
|
|
3025
|
+
path: {
|
|
3026
|
+
id: data.id,
|
|
3027
|
+
region: data.region
|
|
3028
|
+
},
|
|
3029
|
+
errors: {
|
|
3030
|
+
404: 'Life event not found'
|
|
3031
|
+
}
|
|
3032
|
+
});
|
|
3033
|
+
}
|
|
3034
|
+
|
|
3035
|
+
/**
|
|
3036
|
+
* Update a life event
|
|
3037
|
+
* Updates an existing life event. If If-Match header is provided, performs optimistic concurrency check; mismatched updatedAt returns 412.
|
|
3038
|
+
* @param data The data for the request.
|
|
3039
|
+
* @param data.id Life event ID
|
|
3040
|
+
* @param data.region Region code for tenant context (decorative for life events)
|
|
3041
|
+
* @param data.requestBody
|
|
3042
|
+
* @returns EventResponseDto Life event updated successfully
|
|
3043
|
+
* @throws ApiError
|
|
3044
|
+
*/
|
|
3045
|
+
public static eventControllerUpdate(
|
|
3046
|
+
data: EventControllerUpdateData
|
|
3047
|
+
): CancelablePromise<EventControllerUpdateResponse> {
|
|
3048
|
+
return __request(OpenAPI, {
|
|
3049
|
+
method: 'PUT',
|
|
3050
|
+
url: '/api/v1/{region}/bean/events/{id}',
|
|
3051
|
+
path: {
|
|
3052
|
+
id: data.id,
|
|
3053
|
+
region: data.region
|
|
3054
|
+
},
|
|
3055
|
+
body: data.requestBody,
|
|
3056
|
+
mediaType: 'application/json',
|
|
3057
|
+
errors: {
|
|
3058
|
+
400: 'If-Match header is not a valid ISO 8601 date',
|
|
3059
|
+
404: 'Life event not found',
|
|
3060
|
+
409: 'Updated event conflicts with an existing (userId, type, date) combination',
|
|
3061
|
+
412: 'If-Match precondition failed (updatedAt mismatch)'
|
|
3062
|
+
}
|
|
3063
|
+
});
|
|
3064
|
+
}
|
|
3065
|
+
|
|
3066
|
+
/**
|
|
3067
|
+
* Delete a life event
|
|
3068
|
+
* Deletes a life event entry (hard delete). Returns 204.
|
|
3069
|
+
* @param data The data for the request.
|
|
3070
|
+
* @param data.id Life event ID
|
|
3071
|
+
* @param data.region Region code for tenant context (decorative for life events)
|
|
3072
|
+
* @returns void Life event deleted successfully
|
|
3073
|
+
* @throws ApiError
|
|
3074
|
+
*/
|
|
3075
|
+
public static eventControllerDelete(
|
|
3076
|
+
data: EventControllerDeleteData
|
|
3077
|
+
): CancelablePromise<EventControllerDeleteResponse> {
|
|
3078
|
+
return __request(OpenAPI, {
|
|
3079
|
+
method: 'DELETE',
|
|
3080
|
+
url: '/api/v1/{region}/bean/events/{id}',
|
|
3081
|
+
path: {
|
|
3082
|
+
id: data.id,
|
|
3083
|
+
region: data.region
|
|
3084
|
+
},
|
|
3085
|
+
errors: {
|
|
3086
|
+
404: 'Life event not found'
|
|
3087
|
+
}
|
|
3088
|
+
});
|
|
3089
|
+
}
|
|
3090
|
+
|
|
3091
|
+
/**
|
|
3092
|
+
* Slice time-series by a life event (Phase 79)
|
|
3093
|
+
* Returns aggregated time-series for postings matching accountPattern within the half-open date range of the given life event.
|
|
3094
|
+
* @param data The data for the request.
|
|
3095
|
+
* @param data.id Life event ID
|
|
3096
|
+
* @param data.accountPattern
|
|
3097
|
+
* @param data.granularity
|
|
3098
|
+
* @param data.region Region code for tenant context (decorative for life events)
|
|
3099
|
+
* @returns unknown Time-series sliced by the life event range
|
|
3100
|
+
* @throws ApiError
|
|
3101
|
+
*/
|
|
3102
|
+
public static eventControllerGetSlice(
|
|
3103
|
+
data: EventControllerGetSliceData
|
|
3104
|
+
): CancelablePromise<EventControllerGetSliceResponse> {
|
|
3105
|
+
return __request(OpenAPI, {
|
|
3106
|
+
method: 'GET',
|
|
3107
|
+
url: '/api/v1/{region}/bean/events/{id}/slice',
|
|
3108
|
+
path: {
|
|
3109
|
+
id: data.id,
|
|
3110
|
+
region: data.region
|
|
3111
|
+
},
|
|
3112
|
+
query: {
|
|
3113
|
+
accountPattern: data.accountPattern,
|
|
3114
|
+
granularity: data.granularity
|
|
3115
|
+
},
|
|
3116
|
+
errors: {
|
|
3117
|
+
400: 'accountPattern query param is empty',
|
|
3118
|
+
404: 'Life event not found'
|
|
3119
|
+
}
|
|
3120
|
+
});
|
|
3121
|
+
}
|
|
3122
|
+
}
|
|
3123
|
+
|
|
3124
|
+
export class OnboardingService {
|
|
3125
|
+
/**
|
|
3126
|
+
* Bootstrap core accounts + register asset accounts with opening balances (ADR-0113)
|
|
3127
|
+
* @param data The data for the request.
|
|
3128
|
+
* @param data.region Region code for tenant context. Not-yet-open codes are accepted: the universal catalog backs onboarding regardless of region (#759)
|
|
3129
|
+
* @param data.requestBody
|
|
3130
|
+
* @returns unknown Onboarding bootstrap result.
|
|
3131
|
+
* @throws ApiError
|
|
3132
|
+
*/
|
|
3133
|
+
public static onboardingControllerBootstrap(
|
|
3134
|
+
data: OnboardingControllerBootstrapData
|
|
3135
|
+
): CancelablePromise<OnboardingControllerBootstrapResponse> {
|
|
3136
|
+
return __request(OpenAPI, {
|
|
3137
|
+
method: 'POST',
|
|
3138
|
+
url: '/api/v1/{region}/bean/onboarding',
|
|
3139
|
+
path: {
|
|
3140
|
+
region: data.region
|
|
3141
|
+
},
|
|
3142
|
+
body: data.requestBody,
|
|
3143
|
+
mediaType: 'application/json',
|
|
3144
|
+
errors: {
|
|
3145
|
+
422: 'Invalid region/account path/duplicate paths.'
|
|
3146
|
+
}
|
|
3147
|
+
});
|
|
3148
|
+
}
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3151
|
+
export class BalanceReconciliationService {
|
|
3152
|
+
/**
|
|
3153
|
+
* Preview reconciliation (book vs actual)
|
|
3154
|
+
* Computes book balance, diff, Beancount-inferred tolerance, and suggested action without persisting.
|
|
2543
3155
|
* @param data The data for the request.
|
|
2544
|
-
* @param data.
|
|
2545
|
-
* @param data.
|
|
2546
|
-
* @returns
|
|
3156
|
+
* @param data.region Region code for tenant context (decorative for reconciliation)
|
|
3157
|
+
* @param data.requestBody
|
|
3158
|
+
* @returns ReconciliationComputeResultDto Reconciliation preview
|
|
2547
3159
|
* @throws ApiError
|
|
2548
3160
|
*/
|
|
2549
|
-
public static
|
|
2550
|
-
data:
|
|
2551
|
-
): CancelablePromise<
|
|
3161
|
+
public static reconciliationControllerCompute(
|
|
3162
|
+
data: ReconciliationControllerComputeData
|
|
3163
|
+
): CancelablePromise<ReconciliationControllerComputeResponse> {
|
|
2552
3164
|
return __request(OpenAPI, {
|
|
2553
|
-
method: '
|
|
2554
|
-
url: '/api/v1/{region}/bean/
|
|
3165
|
+
method: 'POST',
|
|
3166
|
+
url: '/api/v1/{region}/bean/reconciliations',
|
|
2555
3167
|
path: {
|
|
2556
|
-
id: data.id,
|
|
2557
3168
|
region: data.region
|
|
2558
3169
|
},
|
|
3170
|
+
body: data.requestBody,
|
|
3171
|
+
mediaType: 'application/json',
|
|
2559
3172
|
errors: {
|
|
2560
|
-
404: '
|
|
3173
|
+
404: 'Account not found'
|
|
2561
3174
|
}
|
|
2562
3175
|
});
|
|
2563
3176
|
}
|
|
2564
3177
|
|
|
2565
3178
|
/**
|
|
2566
|
-
*
|
|
2567
|
-
*
|
|
3179
|
+
* Record a balance assertion
|
|
3180
|
+
* Persists the reconciliation as a BeanBalance assertion (amount = actual, diffAmount = book − actual). Re-reconciling the same day/currency upserts.
|
|
2568
3181
|
* @param data The data for the request.
|
|
2569
|
-
* @param data.
|
|
2570
|
-
* @param data.region Region code for tenant context (decorative for life events)
|
|
3182
|
+
* @param data.region Region code for tenant context (decorative for reconciliation)
|
|
2571
3183
|
* @param data.requestBody
|
|
2572
|
-
* @returns
|
|
3184
|
+
* @returns ReconciliationRecordDto Balance assertion recorded
|
|
2573
3185
|
* @throws ApiError
|
|
2574
3186
|
*/
|
|
2575
|
-
public static
|
|
2576
|
-
data:
|
|
2577
|
-
): CancelablePromise<
|
|
3187
|
+
public static reconciliationControllerAssert(
|
|
3188
|
+
data: ReconciliationControllerAssertData
|
|
3189
|
+
): CancelablePromise<ReconciliationControllerAssertResponse> {
|
|
2578
3190
|
return __request(OpenAPI, {
|
|
2579
|
-
method: '
|
|
2580
|
-
url: '/api/v1/{region}/bean/
|
|
3191
|
+
method: 'POST',
|
|
3192
|
+
url: '/api/v1/{region}/bean/reconciliations/assert',
|
|
2581
3193
|
path: {
|
|
2582
|
-
id: data.id,
|
|
2583
3194
|
region: data.region
|
|
2584
3195
|
},
|
|
2585
3196
|
body: data.requestBody,
|
|
2586
3197
|
mediaType: 'application/json',
|
|
2587
3198
|
errors: {
|
|
2588
|
-
|
|
2589
|
-
404: 'Life event not found',
|
|
2590
|
-
409: 'Updated event conflicts with an existing (userId, type, date) combination',
|
|
2591
|
-
412: 'If-Match precondition failed (updatedAt mismatch)'
|
|
3199
|
+
404: 'Account not found'
|
|
2592
3200
|
}
|
|
2593
3201
|
});
|
|
2594
3202
|
}
|
|
2595
3203
|
|
|
2596
3204
|
/**
|
|
2597
|
-
*
|
|
2598
|
-
*
|
|
3205
|
+
* Generate a pad adjusting entry
|
|
3206
|
+
* When book is outside tolerance, synthesizes a Beancount pad transaction (flag P) booking the diff from source_account and persists it. Source defaults to Equity:Opening-Balances.
|
|
2599
3207
|
* @param data The data for the request.
|
|
2600
|
-
* @param data.
|
|
2601
|
-
* @param data.
|
|
2602
|
-
* @returns
|
|
3208
|
+
* @param data.region Region code for tenant context (decorative for reconciliation)
|
|
3209
|
+
* @param data.requestBody
|
|
3210
|
+
* @returns PadResultDto Pad adjusting entry generated
|
|
2603
3211
|
* @throws ApiError
|
|
2604
3212
|
*/
|
|
2605
|
-
public static
|
|
2606
|
-
data:
|
|
2607
|
-
): CancelablePromise<
|
|
3213
|
+
public static reconciliationControllerPad(
|
|
3214
|
+
data: ReconciliationControllerPadData
|
|
3215
|
+
): CancelablePromise<ReconciliationControllerPadResponse> {
|
|
2608
3216
|
return __request(OpenAPI, {
|
|
2609
|
-
method: '
|
|
2610
|
-
url: '/api/v1/{region}/bean/
|
|
3217
|
+
method: 'POST',
|
|
3218
|
+
url: '/api/v1/{region}/bean/reconciliations/pad',
|
|
2611
3219
|
path: {
|
|
2612
|
-
id: data.id,
|
|
2613
3220
|
region: data.region
|
|
2614
3221
|
},
|
|
3222
|
+
body: data.requestBody,
|
|
3223
|
+
mediaType: 'application/json',
|
|
2615
3224
|
errors: {
|
|
2616
|
-
|
|
3225
|
+
400: 'Book already within tolerance — no pad needed',
|
|
3226
|
+
404: 'Account not found'
|
|
2617
3227
|
}
|
|
2618
3228
|
});
|
|
2619
3229
|
}
|
|
2620
3230
|
|
|
2621
3231
|
/**
|
|
2622
|
-
*
|
|
2623
|
-
* Returns
|
|
3232
|
+
* List reconciliation history for an account
|
|
3233
|
+
* Returns recorded balance assertions (most recent first). The latest drives the account-detail "Last <date>" badge.
|
|
2624
3234
|
* @param data The data for the request.
|
|
2625
|
-
* @param data.
|
|
2626
|
-
* @param data.
|
|
2627
|
-
* @
|
|
2628
|
-
* @param data.region Region code for tenant context (decorative for life events)
|
|
2629
|
-
* @returns unknown Time-series sliced by the life event range
|
|
3235
|
+
* @param data.accountId BeanAccount id
|
|
3236
|
+
* @param data.region Region code for tenant context (decorative for reconciliation)
|
|
3237
|
+
* @returns ReconciliationRecordDto Reconciliation history
|
|
2630
3238
|
* @throws ApiError
|
|
2631
3239
|
*/
|
|
2632
|
-
public static
|
|
2633
|
-
data:
|
|
2634
|
-
): CancelablePromise<
|
|
3240
|
+
public static reconciliationControllerHistory(
|
|
3241
|
+
data: ReconciliationControllerHistoryData
|
|
3242
|
+
): CancelablePromise<ReconciliationControllerHistoryResponse> {
|
|
2635
3243
|
return __request(OpenAPI, {
|
|
2636
3244
|
method: 'GET',
|
|
2637
|
-
url: '/api/v1/{region}/bean/
|
|
3245
|
+
url: '/api/v1/{region}/bean/accounts/{accountId}/reconciliations',
|
|
2638
3246
|
path: {
|
|
2639
|
-
|
|
3247
|
+
accountId: data.accountId,
|
|
2640
3248
|
region: data.region
|
|
2641
3249
|
},
|
|
2642
|
-
query: {
|
|
2643
|
-
accountPattern: data.accountPattern,
|
|
2644
|
-
granularity: data.granularity
|
|
2645
|
-
},
|
|
2646
3250
|
errors: {
|
|
2647
|
-
|
|
2648
|
-
404: 'Life event not found'
|
|
3251
|
+
404: 'Account not found'
|
|
2649
3252
|
}
|
|
2650
3253
|
});
|
|
2651
3254
|
}
|
|
@@ -2655,13 +3258,20 @@ export class BeanExportService {
|
|
|
2655
3258
|
/**
|
|
2656
3259
|
* Export Beancount ledger as ZIP
|
|
2657
3260
|
* Export all user Beancount data as a ZIP file containing ledger.beancount and yearly files in community format.
|
|
2658
|
-
* @
|
|
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
|
|
2659
3264
|
* @throws ApiError
|
|
2660
3265
|
*/
|
|
2661
|
-
public static exportControllerExportBeancount(
|
|
3266
|
+
public static exportControllerExportBeancount(
|
|
3267
|
+
data: ExportControllerExportBeancountData
|
|
3268
|
+
): CancelablePromise<ExportControllerExportBeancountResponse> {
|
|
2662
3269
|
return __request(OpenAPI, {
|
|
2663
3270
|
method: 'GET',
|
|
2664
|
-
url: '/api/v1/{region}/bean/export/beancount'
|
|
3271
|
+
url: '/api/v1/{region}/bean/export/beancount',
|
|
3272
|
+
path: {
|
|
3273
|
+
region: data.region
|
|
3274
|
+
}
|
|
2665
3275
|
});
|
|
2666
3276
|
}
|
|
2667
3277
|
}
|
|
@@ -2698,7 +3308,7 @@ export class BeanImportService {
|
|
|
2698
3308
|
|
|
2699
3309
|
/**
|
|
2700
3310
|
* Identify file type
|
|
2701
|
-
*
|
|
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.
|
|
2702
3312
|
* @param data The data for the request.
|
|
2703
3313
|
* @param data.region Region code for tenant context
|
|
2704
3314
|
* @param data.formData File to identify
|
|
@@ -2829,216 +3439,196 @@ export class BeanImportService {
|
|
|
2829
3439
|
}
|
|
2830
3440
|
}
|
|
2831
3441
|
|
|
2832
|
-
export class
|
|
2833
|
-
/**
|
|
2834
|
-
* Get all platforms with statistics
|
|
2835
|
-
* @returns unknown List of platforms with binding and account counts
|
|
2836
|
-
* @throws ApiError
|
|
2837
|
-
*/
|
|
2838
|
-
public static platformControllerFindAll(): CancelablePromise<PlatformControllerFindAllResponse> {
|
|
2839
|
-
return __request(OpenAPI, {
|
|
2840
|
-
method: 'GET',
|
|
2841
|
-
url: '/api/v1/bean/platforms'
|
|
2842
|
-
});
|
|
2843
|
-
}
|
|
2844
|
-
|
|
3442
|
+
export class ProviderSyncService {
|
|
2845
3443
|
/**
|
|
2846
|
-
*
|
|
3444
|
+
* Sync transactions from financial data provider
|
|
3445
|
+
*
|
|
3446
|
+
* Accepts raw transactions from external financial data providers, transforms them to Beancount format, and processes them through the ingestion pipeline.
|
|
3447
|
+
*
|
|
3448
|
+
* **Supported Providers:**
|
|
3449
|
+
* - **plaid**: Plaid API (US, Canada, Europe)
|
|
3450
|
+
* - **teller**: Teller API (US)
|
|
3451
|
+
* - **truelayer**: TrueLayer Open Banking (UK, Europe)
|
|
3452
|
+
* - **gocardless**: GoCardless Bank Account Data (Europe)
|
|
3453
|
+
* - **simplefin**: SimpleFIN (Self-hosted)
|
|
3454
|
+
* - **yodlee**: Yodlee (Global)
|
|
3455
|
+
* - **beancount-direct**: Beancount format transactions
|
|
3456
|
+
* - **parsed-bill**: Client-side parsed bill transactions
|
|
3457
|
+
*
|
|
3458
|
+
* **Processing Flow:**
|
|
3459
|
+
* 1. Transform raw data via provider adapter
|
|
3460
|
+
* 2. Validate transaction format
|
|
3461
|
+
* 3. Deduplicate using originalId
|
|
3462
|
+
* 4. Classify using rule engine
|
|
3463
|
+
* 5. Route low-confidence to Review Center
|
|
3464
|
+
* 6. Persist validated transactions
|
|
3465
|
+
*
|
|
2847
3466
|
* @param data The data for the request.
|
|
3467
|
+
* @param data.providerName Provider name
|
|
3468
|
+
* @param data.region Region code for tenant context
|
|
2848
3469
|
* @param data.requestBody
|
|
2849
|
-
* @returns
|
|
3470
|
+
* @returns ProviderSyncResponseDto Sync completed successfully
|
|
2850
3471
|
* @throws ApiError
|
|
2851
3472
|
*/
|
|
2852
|
-
public static
|
|
2853
|
-
data:
|
|
2854
|
-
): CancelablePromise<
|
|
3473
|
+
public static providerSyncControllerSync(
|
|
3474
|
+
data: ProviderSyncControllerSyncData
|
|
3475
|
+
): CancelablePromise<ProviderSyncControllerSyncResponse> {
|
|
2855
3476
|
return __request(OpenAPI, {
|
|
2856
3477
|
method: 'POST',
|
|
2857
|
-
url: '/api/v1/bean/
|
|
3478
|
+
url: '/api/v1/{region}/bean/import/provider/{providerName}/sync',
|
|
3479
|
+
path: {
|
|
3480
|
+
providerName: data.providerName,
|
|
3481
|
+
region: data.region
|
|
3482
|
+
},
|
|
2858
3483
|
body: data.requestBody,
|
|
2859
3484
|
mediaType: 'application/json',
|
|
2860
3485
|
errors: {
|
|
2861
|
-
|
|
3486
|
+
400: 'Invalid request data',
|
|
3487
|
+
401: 'Missing or invalid authentication',
|
|
3488
|
+
404: 'Provider not supported'
|
|
2862
3489
|
}
|
|
2863
3490
|
});
|
|
2864
3491
|
}
|
|
2865
3492
|
|
|
2866
3493
|
/**
|
|
2867
|
-
* Get
|
|
2868
|
-
*
|
|
2869
|
-
* @throws ApiError
|
|
2870
|
-
*/
|
|
2871
|
-
public static platformControllerGetPlatformList(): CancelablePromise<PlatformControllerGetPlatformListResponse> {
|
|
2872
|
-
return __request(OpenAPI, {
|
|
2873
|
-
method: 'GET',
|
|
2874
|
-
url: '/api/v1/bean/platforms/list'
|
|
2875
|
-
});
|
|
2876
|
-
}
|
|
2877
|
-
|
|
2878
|
-
/**
|
|
2879
|
-
* Match platforms by name or alias
|
|
3494
|
+
* Get supported providers
|
|
3495
|
+
* Returns a list of all providers supported by the sync endpoint.
|
|
2880
3496
|
* @param data The data for the request.
|
|
2881
|
-
* @param data.
|
|
2882
|
-
* @
|
|
2883
|
-
* @returns unknown List of matching platforms with suggested segment names
|
|
3497
|
+
* @param data.region Region code for tenant context
|
|
3498
|
+
* @returns SupportedProvidersResponseDto List of supported providers
|
|
2884
3499
|
* @throws ApiError
|
|
2885
3500
|
*/
|
|
2886
|
-
public static
|
|
2887
|
-
data:
|
|
2888
|
-
): CancelablePromise<
|
|
3501
|
+
public static providerSyncControllerGetSupportedProviders(
|
|
3502
|
+
data: ProviderSyncControllerGetSupportedProvidersData
|
|
3503
|
+
): CancelablePromise<ProviderSyncControllerGetSupportedProvidersResponse> {
|
|
2889
3504
|
return __request(OpenAPI, {
|
|
2890
3505
|
method: 'GET',
|
|
2891
|
-
url: '/api/v1/bean/
|
|
2892
|
-
|
|
2893
|
-
q: data.q,
|
|
3506
|
+
url: '/api/v1/{region}/bean/import/provider/supported',
|
|
3507
|
+
path: {
|
|
2894
3508
|
region: data.region
|
|
3509
|
+
},
|
|
3510
|
+
errors: {
|
|
3511
|
+
401: 'Missing or invalid authentication'
|
|
2895
3512
|
}
|
|
2896
3513
|
});
|
|
2897
3514
|
}
|
|
2898
3515
|
|
|
2899
3516
|
/**
|
|
2900
|
-
*
|
|
3517
|
+
* Check if provider is supported
|
|
3518
|
+
* Returns whether a specific provider is supported.
|
|
2901
3519
|
* @param data The data for the request.
|
|
2902
|
-
* @param data.
|
|
2903
|
-
* @param data.
|
|
2904
|
-
* @returns unknown
|
|
3520
|
+
* @param data.providerName Provider name to check
|
|
3521
|
+
* @param data.region Region code for tenant context
|
|
3522
|
+
* @returns unknown Provider support status
|
|
2905
3523
|
* @throws ApiError
|
|
2906
3524
|
*/
|
|
2907
|
-
public static
|
|
2908
|
-
data:
|
|
2909
|
-
): CancelablePromise<
|
|
3525
|
+
public static providerSyncControllerIsProviderSupported(
|
|
3526
|
+
data: ProviderSyncControllerIsProviderSupportedData
|
|
3527
|
+
): CancelablePromise<ProviderSyncControllerIsProviderSupportedResponse> {
|
|
2910
3528
|
return __request(OpenAPI, {
|
|
2911
|
-
method: '
|
|
2912
|
-
url: '/api/v1/bean/
|
|
3529
|
+
method: 'GET',
|
|
3530
|
+
url: '/api/v1/{region}/bean/import/provider/{providerName}/supported',
|
|
2913
3531
|
path: {
|
|
2914
|
-
|
|
3532
|
+
providerName: data.providerName,
|
|
3533
|
+
region: data.region
|
|
2915
3534
|
},
|
|
2916
|
-
body: data.requestBody,
|
|
2917
|
-
mediaType: 'application/json',
|
|
2918
3535
|
errors: {
|
|
2919
|
-
|
|
3536
|
+
401: 'Missing or invalid authentication'
|
|
2920
3537
|
}
|
|
2921
3538
|
});
|
|
2922
3539
|
}
|
|
3540
|
+
}
|
|
2923
3541
|
|
|
3542
|
+
export class ExternalAccountLinksService {
|
|
2924
3543
|
/**
|
|
2925
|
-
*
|
|
3544
|
+
* Create an external account → BeanAccount mapping (ADR-0113)
|
|
2926
3545
|
* @param data The data for the request.
|
|
2927
|
-
* @param data.
|
|
2928
|
-
* @
|
|
3546
|
+
* @param data.region Region code for tenant context
|
|
3547
|
+
* @param data.requestBody
|
|
3548
|
+
* @returns ExternalAccountLinkResponseDto Link created.
|
|
2929
3549
|
* @throws ApiError
|
|
2930
3550
|
*/
|
|
2931
|
-
public static
|
|
2932
|
-
data:
|
|
2933
|
-
): CancelablePromise<
|
|
3551
|
+
public static externalAccountLinkControllerCreate(
|
|
3552
|
+
data: ExternalAccountLinkControllerCreateData
|
|
3553
|
+
): CancelablePromise<ExternalAccountLinkControllerCreateResponse> {
|
|
2934
3554
|
return __request(OpenAPI, {
|
|
2935
|
-
method: '
|
|
2936
|
-
url: '/api/v1/bean/
|
|
3555
|
+
method: 'POST',
|
|
3556
|
+
url: '/api/v1/{region}/bean/external-account-links',
|
|
2937
3557
|
path: {
|
|
2938
|
-
|
|
3558
|
+
region: data.region
|
|
2939
3559
|
},
|
|
3560
|
+
body: data.requestBody,
|
|
3561
|
+
mediaType: 'application/json',
|
|
2940
3562
|
errors: {
|
|
2941
|
-
|
|
3563
|
+
422: 'beanAccountId not owned, or an active link already exists.'
|
|
2942
3564
|
}
|
|
2943
3565
|
});
|
|
2944
3566
|
}
|
|
2945
|
-
}
|
|
2946
3567
|
|
|
2947
|
-
export class ProviderSyncService {
|
|
2948
3568
|
/**
|
|
2949
|
-
*
|
|
2950
|
-
*
|
|
2951
|
-
* Accepts raw transactions from external financial data providers, transforms them to Beancount format, and processes them through the ingestion pipeline.
|
|
2952
|
-
*
|
|
2953
|
-
* **Supported Providers:**
|
|
2954
|
-
* - **plaid**: Plaid API (US, Canada, Europe)
|
|
2955
|
-
* - **teller**: Teller API (US)
|
|
2956
|
-
* - **truelayer**: TrueLayer Open Banking (UK, Europe)
|
|
2957
|
-
* - **gocardless**: GoCardless Bank Account Data (Europe)
|
|
2958
|
-
* - **simplefin**: SimpleFIN (Self-hosted)
|
|
2959
|
-
* - **yodlee**: Yodlee (Global)
|
|
2960
|
-
* - **beancount-direct**: Beancount format transactions
|
|
2961
|
-
* - **parsed-bill**: Client-side parsed bill transactions
|
|
2962
|
-
*
|
|
2963
|
-
* **Processing Flow:**
|
|
2964
|
-
* 1. Transform raw data via provider adapter
|
|
2965
|
-
* 2. Validate transaction format
|
|
2966
|
-
* 3. Deduplicate using originalId
|
|
2967
|
-
* 4. Classify using rule engine
|
|
2968
|
-
* 5. Route low-confidence to Review Center
|
|
2969
|
-
* 6. Persist validated transactions
|
|
2970
|
-
*
|
|
3569
|
+
* List the user's active external account links
|
|
2971
3570
|
* @param data The data for the request.
|
|
2972
|
-
* @param data.
|
|
3571
|
+
* @param data.provider
|
|
2973
3572
|
* @param data.region Region code for tenant context
|
|
2974
|
-
* @
|
|
2975
|
-
* @returns ProviderSyncResponseDto Sync completed successfully
|
|
3573
|
+
* @returns ExternalAccountLinkListResponseDto Links retrieved.
|
|
2976
3574
|
* @throws ApiError
|
|
2977
3575
|
*/
|
|
2978
|
-
public static
|
|
2979
|
-
data:
|
|
2980
|
-
): CancelablePromise<
|
|
3576
|
+
public static externalAccountLinkControllerFindAll(
|
|
3577
|
+
data: ExternalAccountLinkControllerFindAllData
|
|
3578
|
+
): CancelablePromise<ExternalAccountLinkControllerFindAllResponse> {
|
|
2981
3579
|
return __request(OpenAPI, {
|
|
2982
|
-
method: '
|
|
2983
|
-
url: '/api/v1/{region}/bean/
|
|
3580
|
+
method: 'GET',
|
|
3581
|
+
url: '/api/v1/{region}/bean/external-account-links',
|
|
2984
3582
|
path: {
|
|
2985
|
-
providerName: data.providerName,
|
|
2986
3583
|
region: data.region
|
|
2987
3584
|
},
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
errors: {
|
|
2991
|
-
400: 'Invalid request data',
|
|
2992
|
-
401: 'Missing or invalid authentication',
|
|
2993
|
-
404: 'Provider not supported'
|
|
3585
|
+
query: {
|
|
3586
|
+
provider: data.provider
|
|
2994
3587
|
}
|
|
2995
3588
|
});
|
|
2996
3589
|
}
|
|
2997
3590
|
|
|
2998
3591
|
/**
|
|
2999
|
-
* Get
|
|
3000
|
-
* Returns a list of all providers supported by the sync endpoint.
|
|
3592
|
+
* Get a single external account link
|
|
3001
3593
|
* @param data The data for the request.
|
|
3594
|
+
* @param data.id
|
|
3002
3595
|
* @param data.region Region code for tenant context
|
|
3003
|
-
* @returns
|
|
3596
|
+
* @returns ExternalAccountLinkResponseDto Link retrieved.
|
|
3004
3597
|
* @throws ApiError
|
|
3005
3598
|
*/
|
|
3006
|
-
public static
|
|
3007
|
-
data:
|
|
3008
|
-
): CancelablePromise<
|
|
3599
|
+
public static externalAccountLinkControllerFindOne(
|
|
3600
|
+
data: ExternalAccountLinkControllerFindOneData
|
|
3601
|
+
): CancelablePromise<ExternalAccountLinkControllerFindOneResponse> {
|
|
3009
3602
|
return __request(OpenAPI, {
|
|
3010
3603
|
method: 'GET',
|
|
3011
|
-
url: '/api/v1/{region}/bean/
|
|
3604
|
+
url: '/api/v1/{region}/bean/external-account-links/{id}',
|
|
3012
3605
|
path: {
|
|
3606
|
+
id: data.id,
|
|
3013
3607
|
region: data.region
|
|
3014
3608
|
},
|
|
3015
3609
|
errors: {
|
|
3016
|
-
|
|
3610
|
+
422: 'Link not found or not owned by the user.'
|
|
3017
3611
|
}
|
|
3018
3612
|
});
|
|
3019
3613
|
}
|
|
3020
3614
|
|
|
3021
3615
|
/**
|
|
3022
|
-
*
|
|
3023
|
-
* Returns whether a specific provider is supported.
|
|
3616
|
+
* Soft-delete (disconnect) an external account link
|
|
3024
3617
|
* @param data The data for the request.
|
|
3025
|
-
* @param data.
|
|
3618
|
+
* @param data.id
|
|
3026
3619
|
* @param data.region Region code for tenant context
|
|
3027
|
-
* @returns
|
|
3620
|
+
* @returns void Link soft-deleted; historical transactions are unaffected.
|
|
3028
3621
|
* @throws ApiError
|
|
3029
3622
|
*/
|
|
3030
|
-
public static
|
|
3031
|
-
data:
|
|
3032
|
-
): CancelablePromise<
|
|
3623
|
+
public static externalAccountLinkControllerRemove(
|
|
3624
|
+
data: ExternalAccountLinkControllerRemoveData
|
|
3625
|
+
): CancelablePromise<ExternalAccountLinkControllerRemoveResponse> {
|
|
3033
3626
|
return __request(OpenAPI, {
|
|
3034
|
-
method: '
|
|
3035
|
-
url: '/api/v1/{region}/bean/
|
|
3627
|
+
method: 'DELETE',
|
|
3628
|
+
url: '/api/v1/{region}/bean/external-account-links/{id}',
|
|
3036
3629
|
path: {
|
|
3037
|
-
|
|
3630
|
+
id: data.id,
|
|
3038
3631
|
region: data.region
|
|
3039
|
-
},
|
|
3040
|
-
errors: {
|
|
3041
|
-
401: 'Missing or invalid authentication'
|
|
3042
3632
|
}
|
|
3043
3633
|
});
|
|
3044
3634
|
}
|
|
@@ -3202,477 +3792,330 @@ export class BeanNlpService {
|
|
|
3202
3792
|
}
|
|
3203
3793
|
}
|
|
3204
3794
|
|
|
3205
|
-
export class
|
|
3795
|
+
export class BeanPlatformsService {
|
|
3206
3796
|
/**
|
|
3207
|
-
* Get
|
|
3208
|
-
*
|
|
3209
|
-
* @param data The data for the request.
|
|
3210
|
-
* @param data.region Region code for tenant context
|
|
3211
|
-
* @param data.date Date for balance calculation (ISO 8601 format)
|
|
3212
|
-
* @returns NetWorthResponseDto Net worth retrieved successfully
|
|
3797
|
+
* Get all platforms with statistics
|
|
3798
|
+
* @returns unknown List of platforms with binding and account counts
|
|
3213
3799
|
* @throws ApiError
|
|
3214
3800
|
*/
|
|
3215
|
-
public static
|
|
3216
|
-
data: DashboardControllerGetNetWorthData
|
|
3217
|
-
): CancelablePromise<DashboardControllerGetNetWorthResponse> {
|
|
3801
|
+
public static platformControllerFindAll(): CancelablePromise<PlatformControllerFindAllResponse> {
|
|
3218
3802
|
return __request(OpenAPI, {
|
|
3219
3803
|
method: 'GET',
|
|
3220
|
-
url: '/api/v1/
|
|
3221
|
-
path: {
|
|
3222
|
-
region: data.region
|
|
3223
|
-
},
|
|
3224
|
-
query: {
|
|
3225
|
-
date: data.date
|
|
3226
|
-
},
|
|
3227
|
-
errors: {
|
|
3228
|
-
401: 'User not authenticated'
|
|
3229
|
-
}
|
|
3804
|
+
url: '/api/v1/bean/platforms'
|
|
3230
3805
|
});
|
|
3231
3806
|
}
|
|
3232
3807
|
|
|
3233
3808
|
/**
|
|
3234
|
-
*
|
|
3235
|
-
* Returns accounts with balances grouped by financial platform
|
|
3809
|
+
* Create a new platform
|
|
3236
3810
|
* @param data The data for the request.
|
|
3237
|
-
* @param data.
|
|
3238
|
-
* @
|
|
3239
|
-
* @param data.date Date for balance calculation (ISO 8601 format)
|
|
3240
|
-
* @param data.accountId Scope to a single account (only valid with groupBy=holdingAssetClass, ADR-0105 §6)
|
|
3241
|
-
* @returns unknown Accounts retrieved successfully. Response type depends on groupBy parameter.
|
|
3811
|
+
* @param data.requestBody
|
|
3812
|
+
* @returns unknown Platform created successfully
|
|
3242
3813
|
* @throws ApiError
|
|
3243
3814
|
*/
|
|
3244
|
-
public static
|
|
3245
|
-
data:
|
|
3246
|
-
): CancelablePromise<
|
|
3815
|
+
public static platformControllerCreate(
|
|
3816
|
+
data: PlatformControllerCreateData
|
|
3817
|
+
): CancelablePromise<PlatformControllerCreateResponse> {
|
|
3247
3818
|
return __request(OpenAPI, {
|
|
3248
|
-
method: '
|
|
3249
|
-
url: '/api/v1/
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
},
|
|
3253
|
-
query: {
|
|
3254
|
-
groupBy: data.groupBy,
|
|
3255
|
-
date: data.date,
|
|
3256
|
-
accountId: data.accountId
|
|
3257
|
-
},
|
|
3819
|
+
method: 'POST',
|
|
3820
|
+
url: '/api/v1/bean/platforms',
|
|
3821
|
+
body: data.requestBody,
|
|
3822
|
+
mediaType: 'application/json',
|
|
3258
3823
|
errors: {
|
|
3259
|
-
|
|
3824
|
+
409: 'Platform already exists'
|
|
3260
3825
|
}
|
|
3261
3826
|
});
|
|
3262
3827
|
}
|
|
3263
3828
|
|
|
3264
3829
|
/**
|
|
3265
|
-
* Get
|
|
3266
|
-
* Returns income, expenses, and savings for a monthly period
|
|
3830
|
+
* Get platform list for current user
|
|
3267
3831
|
* @param data The data for the request.
|
|
3268
|
-
* @param data.
|
|
3269
|
-
* @
|
|
3270
|
-
* @returns CashFlowResponseDto Cash flow retrieved successfully
|
|
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").
|
|
3833
|
+
* @returns PlatformListItemDto List of platforms with user binding status
|
|
3271
3834
|
* @throws ApiError
|
|
3272
3835
|
*/
|
|
3273
|
-
public static
|
|
3274
|
-
data:
|
|
3275
|
-
): CancelablePromise<
|
|
3836
|
+
public static platformControllerGetPlatformList(
|
|
3837
|
+
data: PlatformControllerGetPlatformListData = {}
|
|
3838
|
+
): CancelablePromise<PlatformControllerGetPlatformListResponse> {
|
|
3276
3839
|
return __request(OpenAPI, {
|
|
3277
3840
|
method: 'GET',
|
|
3278
|
-
url: '/api/v1/
|
|
3279
|
-
path: {
|
|
3280
|
-
region: data.region
|
|
3281
|
-
},
|
|
3841
|
+
url: '/api/v1/bean/platforms/list',
|
|
3282
3842
|
query: {
|
|
3283
|
-
|
|
3284
|
-
},
|
|
3285
|
-
errors: {
|
|
3286
|
-
400: 'Invalid period format',
|
|
3287
|
-
401: 'User not authenticated'
|
|
3843
|
+
region: data.region
|
|
3288
3844
|
}
|
|
3289
3845
|
});
|
|
3290
3846
|
}
|
|
3291
3847
|
|
|
3292
3848
|
/**
|
|
3293
|
-
*
|
|
3294
|
-
* Returns expenses pre-aggregated by functional category (account-path Group segment) with server-side multi-currency conversion
|
|
3849
|
+
* Match platforms by name or alias
|
|
3295
3850
|
* @param data The data for the request.
|
|
3296
|
-
* @param data.
|
|
3297
|
-
* @param data.
|
|
3298
|
-
* @
|
|
3299
|
-
* @returns ExpensesByCategoryResponseDto Expenses retrieved successfully
|
|
3851
|
+
* @param data.q Search query — Chinese name, English name, or abbreviation
|
|
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").
|
|
3853
|
+
* @returns PlatformMatchResponseDto Matching platforms with overall match type and truncation flag
|
|
3300
3854
|
* @throws ApiError
|
|
3301
3855
|
*/
|
|
3302
|
-
public static
|
|
3303
|
-
data:
|
|
3304
|
-
): CancelablePromise<
|
|
3856
|
+
public static platformControllerMatchPlatforms(
|
|
3857
|
+
data: PlatformControllerMatchPlatformsData
|
|
3858
|
+
): CancelablePromise<PlatformControllerMatchPlatformsResponse> {
|
|
3305
3859
|
return __request(OpenAPI, {
|
|
3306
3860
|
method: 'GET',
|
|
3307
|
-
url: '/api/v1/
|
|
3308
|
-
path: {
|
|
3309
|
-
region: data.region
|
|
3310
|
-
},
|
|
3861
|
+
url: '/api/v1/bean/platforms/match',
|
|
3311
3862
|
query: {
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
},
|
|
3315
|
-
errors: {
|
|
3316
|
-
400: 'Invalid groupBy or period',
|
|
3317
|
-
401: 'User not authenticated'
|
|
3863
|
+
q: data.q,
|
|
3864
|
+
region: data.region
|
|
3318
3865
|
}
|
|
3319
3866
|
});
|
|
3320
3867
|
}
|
|
3321
|
-
}
|
|
3322
3868
|
|
|
3323
|
-
export class InvestmentService {
|
|
3324
3869
|
/**
|
|
3325
|
-
* Get
|
|
3326
|
-
* Average-cost unrealized P&L per account × commodity, plus cumulative realized P&L on sold lots (method = FIFO | average, default average).
|
|
3870
|
+
* Get the region and candidate account standards for a platform
|
|
3327
3871
|
* @param data The data for the request.
|
|
3328
|
-
* @param data.
|
|
3329
|
-
* @param data.
|
|
3330
|
-
* @param data.
|
|
3331
|
-
* @
|
|
3332
|
-
* @returns HoldingPnlResponseDto Holding P&L retrieved successfully
|
|
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)
|
|
3333
3876
|
* @throws ApiError
|
|
3334
3877
|
*/
|
|
3335
|
-
public static
|
|
3336
|
-
data:
|
|
3337
|
-
): CancelablePromise<
|
|
3878
|
+
public static platformControllerGetPlatformStandards(
|
|
3879
|
+
data: PlatformControllerGetPlatformStandardsData
|
|
3880
|
+
): CancelablePromise<PlatformControllerGetPlatformStandardsResponse> {
|
|
3338
3881
|
return __request(OpenAPI, {
|
|
3339
3882
|
method: 'GET',
|
|
3340
|
-
url: '/api/v1/{
|
|
3883
|
+
url: '/api/v1/bean/platforms/{id}/standards',
|
|
3341
3884
|
path: {
|
|
3342
|
-
|
|
3885
|
+
id: data.id
|
|
3343
3886
|
},
|
|
3344
3887
|
query: {
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
method: data.method
|
|
3348
|
-
},
|
|
3349
|
-
errors: {
|
|
3350
|
-
400: 'Invalid asOf format/value/future date, invalid accountId format, or unsupported method',
|
|
3351
|
-
401: 'User not authenticated'
|
|
3888
|
+
region: data.region,
|
|
3889
|
+
type: data.type
|
|
3352
3890
|
}
|
|
3353
3891
|
});
|
|
3354
3892
|
}
|
|
3355
|
-
}
|
|
3356
3893
|
|
|
3357
|
-
export class BeanPricesService {
|
|
3358
3894
|
/**
|
|
3359
|
-
*
|
|
3360
|
-
* Creates a new price entry for the authenticated user
|
|
3895
|
+
* Update a platform
|
|
3361
3896
|
* @param data The data for the request.
|
|
3362
|
-
* @param data.
|
|
3897
|
+
* @param data.id Platform ID
|
|
3363
3898
|
* @param data.requestBody
|
|
3364
|
-
* @returns
|
|
3899
|
+
* @returns unknown Platform updated successfully
|
|
3365
3900
|
* @throws ApiError
|
|
3366
3901
|
*/
|
|
3367
|
-
public static
|
|
3368
|
-
data:
|
|
3369
|
-
): CancelablePromise<
|
|
3902
|
+
public static platformControllerUpdate(
|
|
3903
|
+
data: PlatformControllerUpdateData
|
|
3904
|
+
): CancelablePromise<PlatformControllerUpdateResponse> {
|
|
3370
3905
|
return __request(OpenAPI, {
|
|
3371
|
-
method: '
|
|
3372
|
-
url: '/api/v1/{
|
|
3906
|
+
method: 'PUT',
|
|
3907
|
+
url: '/api/v1/bean/platforms/{id}',
|
|
3373
3908
|
path: {
|
|
3374
|
-
|
|
3909
|
+
id: data.id
|
|
3375
3910
|
},
|
|
3376
3911
|
body: data.requestBody,
|
|
3377
3912
|
mediaType: 'application/json',
|
|
3378
3913
|
errors: {
|
|
3379
|
-
404: '
|
|
3380
|
-
409: 'Price already exists for this currency pair and date'
|
|
3381
|
-
}
|
|
3382
|
-
});
|
|
3383
|
-
}
|
|
3384
|
-
|
|
3385
|
-
/**
|
|
3386
|
-
* List user prices
|
|
3387
|
-
* Returns all price entries for the authenticated user with optional filtering
|
|
3388
|
-
* @param data The data for the request.
|
|
3389
|
-
* @param data.region Region code for tenant context
|
|
3390
|
-
* @param data.currency Filter by currency (e.g., BTC, AAPL, USD)
|
|
3391
|
-
* @param data.quoteCurrency Filter by quote currency (pricing currency, e.g., USD, CNY)
|
|
3392
|
-
* @param data.dateFrom Filter prices from this date (ISO 8601 format)
|
|
3393
|
-
* @param data.dateTo Filter prices to this date (ISO 8601 format)
|
|
3394
|
-
* @param data.search Search term for currency or quoteCurrency (case-insensitive partial match)
|
|
3395
|
-
* @param data.page Page number for pagination (default: 1)
|
|
3396
|
-
* @param data.limit Number of items per page (default: 20, max: 100)
|
|
3397
|
-
* @returns PriceListResponseDto Prices retrieved successfully
|
|
3398
|
-
* @throws ApiError
|
|
3399
|
-
*/
|
|
3400
|
-
public static priceControllerFindAll(
|
|
3401
|
-
data: PriceControllerFindAllData
|
|
3402
|
-
): CancelablePromise<PriceControllerFindAllResponse> {
|
|
3403
|
-
return __request(OpenAPI, {
|
|
3404
|
-
method: 'GET',
|
|
3405
|
-
url: '/api/v1/{region}/bean/prices',
|
|
3406
|
-
path: {
|
|
3407
|
-
region: data.region
|
|
3408
|
-
},
|
|
3409
|
-
query: {
|
|
3410
|
-
currency: data.currency,
|
|
3411
|
-
quoteCurrency: data.quoteCurrency,
|
|
3412
|
-
dateFrom: data.dateFrom,
|
|
3413
|
-
dateTo: data.dateTo,
|
|
3414
|
-
search: data.search,
|
|
3415
|
-
page: data.page,
|
|
3416
|
-
limit: data.limit
|
|
3417
|
-
}
|
|
3418
|
-
});
|
|
3419
|
-
}
|
|
3420
|
-
|
|
3421
|
-
/**
|
|
3422
|
-
* Get price by ID
|
|
3423
|
-
* Returns a single price entry by its ID
|
|
3424
|
-
* @param data The data for the request.
|
|
3425
|
-
* @param data.id Price ID
|
|
3426
|
-
* @param data.region Region code for tenant context
|
|
3427
|
-
* @returns PriceResponseDto Price retrieved successfully
|
|
3428
|
-
* @throws ApiError
|
|
3429
|
-
*/
|
|
3430
|
-
public static priceControllerFindOne(
|
|
3431
|
-
data: PriceControllerFindOneData
|
|
3432
|
-
): CancelablePromise<PriceControllerFindOneResponse> {
|
|
3433
|
-
return __request(OpenAPI, {
|
|
3434
|
-
method: 'GET',
|
|
3435
|
-
url: '/api/v1/{region}/bean/prices/{id}',
|
|
3436
|
-
path: {
|
|
3437
|
-
id: data.id,
|
|
3438
|
-
region: data.region
|
|
3439
|
-
},
|
|
3440
|
-
errors: {
|
|
3441
|
-
404: 'Price not found'
|
|
3914
|
+
404: 'Platform not found'
|
|
3442
3915
|
}
|
|
3443
3916
|
});
|
|
3444
3917
|
}
|
|
3445
3918
|
|
|
3446
3919
|
/**
|
|
3447
|
-
*
|
|
3448
|
-
* Updates an existing price entry
|
|
3920
|
+
* Delete a platform
|
|
3449
3921
|
* @param data The data for the request.
|
|
3450
|
-
* @param data.id
|
|
3451
|
-
* @
|
|
3452
|
-
* @param data.requestBody
|
|
3453
|
-
* @returns PriceResponseDto Price updated successfully
|
|
3922
|
+
* @param data.id Platform ID
|
|
3923
|
+
* @returns void Platform deleted successfully
|
|
3454
3924
|
* @throws ApiError
|
|
3455
3925
|
*/
|
|
3456
|
-
public static
|
|
3457
|
-
data:
|
|
3458
|
-
): CancelablePromise<
|
|
3926
|
+
public static platformControllerDelete(
|
|
3927
|
+
data: PlatformControllerDeleteData
|
|
3928
|
+
): CancelablePromise<PlatformControllerDeleteResponse> {
|
|
3459
3929
|
return __request(OpenAPI, {
|
|
3460
|
-
method: '
|
|
3461
|
-
url: '/api/v1/
|
|
3930
|
+
method: 'DELETE',
|
|
3931
|
+
url: '/api/v1/bean/platforms/{id}',
|
|
3462
3932
|
path: {
|
|
3463
|
-
id: data.id
|
|
3464
|
-
region: data.region
|
|
3933
|
+
id: data.id
|
|
3465
3934
|
},
|
|
3466
|
-
body: data.requestBody,
|
|
3467
|
-
mediaType: 'application/json',
|
|
3468
3935
|
errors: {
|
|
3469
|
-
404: '
|
|
3470
|
-
409: 'Updated price conflicts with existing price'
|
|
3936
|
+
404: 'Platform not found'
|
|
3471
3937
|
}
|
|
3472
3938
|
});
|
|
3473
3939
|
}
|
|
3940
|
+
}
|
|
3474
3941
|
|
|
3942
|
+
export class DashboardService {
|
|
3475
3943
|
/**
|
|
3476
|
-
*
|
|
3477
|
-
*
|
|
3944
|
+
* Get net worth overview
|
|
3945
|
+
* Returns total net worth with breakdown of assets and liabilities
|
|
3478
3946
|
* @param data The data for the request.
|
|
3479
|
-
* @param data.id Price ID
|
|
3480
3947
|
* @param data.region Region code for tenant context
|
|
3481
|
-
* @
|
|
3948
|
+
* @param data.date Date for balance calculation (ISO 8601 format)
|
|
3949
|
+
* @returns NetWorthResponseDto Net worth retrieved successfully
|
|
3482
3950
|
* @throws ApiError
|
|
3483
3951
|
*/
|
|
3484
|
-
public static
|
|
3485
|
-
data:
|
|
3486
|
-
): CancelablePromise<
|
|
3952
|
+
public static dashboardControllerGetNetWorth(
|
|
3953
|
+
data: DashboardControllerGetNetWorthData
|
|
3954
|
+
): CancelablePromise<DashboardControllerGetNetWorthResponse> {
|
|
3487
3955
|
return __request(OpenAPI, {
|
|
3488
|
-
method: '
|
|
3489
|
-
url: '/api/v1/{region}/
|
|
3956
|
+
method: 'GET',
|
|
3957
|
+
url: '/api/v1/{region}/dashboard/net-worth',
|
|
3490
3958
|
path: {
|
|
3491
|
-
id: data.id,
|
|
3492
3959
|
region: data.region
|
|
3493
3960
|
},
|
|
3961
|
+
query: {
|
|
3962
|
+
date: data.date
|
|
3963
|
+
},
|
|
3494
3964
|
errors: {
|
|
3495
|
-
|
|
3965
|
+
401: 'User not authenticated'
|
|
3496
3966
|
}
|
|
3497
3967
|
});
|
|
3498
3968
|
}
|
|
3499
3969
|
|
|
3500
3970
|
/**
|
|
3501
|
-
*
|
|
3502
|
-
*
|
|
3971
|
+
* Get accounts grouped by platform
|
|
3972
|
+
* Returns accounts with balances grouped by financial platform
|
|
3503
3973
|
* @param data The data for the request.
|
|
3504
3974
|
* @param data.region Region code for tenant context
|
|
3505
|
-
* @param data.
|
|
3506
|
-
* @
|
|
3975
|
+
* @param data.groupBy Grouping strategy
|
|
3976
|
+
* @param data.date Date for balance calculation (ISO 8601 format)
|
|
3977
|
+
* @param data.accountId Scope to a single account (only valid with groupBy=holdingAssetClass, ADR-0105 §6)
|
|
3978
|
+
* @returns unknown Accounts retrieved successfully. Response type depends on groupBy parameter.
|
|
3507
3979
|
* @throws ApiError
|
|
3508
3980
|
*/
|
|
3509
|
-
public static
|
|
3510
|
-
data:
|
|
3511
|
-
): CancelablePromise<
|
|
3981
|
+
public static dashboardControllerGetAccounts(
|
|
3982
|
+
data: DashboardControllerGetAccountsData
|
|
3983
|
+
): CancelablePromise<DashboardControllerGetAccountsResponse> {
|
|
3512
3984
|
return __request(OpenAPI, {
|
|
3513
|
-
method: '
|
|
3514
|
-
url: '/api/v1/{region}/
|
|
3985
|
+
method: 'GET',
|
|
3986
|
+
url: '/api/v1/{region}/dashboard/accounts',
|
|
3515
3987
|
path: {
|
|
3516
3988
|
region: data.region
|
|
3517
3989
|
},
|
|
3518
|
-
|
|
3519
|
-
|
|
3990
|
+
query: {
|
|
3991
|
+
groupBy: data.groupBy,
|
|
3992
|
+
date: data.date,
|
|
3993
|
+
accountId: data.accountId
|
|
3994
|
+
},
|
|
3995
|
+
errors: {
|
|
3996
|
+
401: 'User not authenticated'
|
|
3997
|
+
}
|
|
3520
3998
|
});
|
|
3521
3999
|
}
|
|
3522
|
-
}
|
|
3523
4000
|
|
|
3524
|
-
export class ReportingService {
|
|
3525
4001
|
/**
|
|
3526
|
-
* Get
|
|
3527
|
-
*
|
|
3528
|
-
* Returns time series data of portfolio net worth.
|
|
3529
|
-
*
|
|
3530
|
-
* **Multi-currency Support:**
|
|
3531
|
-
* - `series[].byCurrency` - Currency breakdown for each data point
|
|
3532
|
-
* - `byCurrency` - Separate time series grouped by currency
|
|
3533
|
-
* - `warnings` - Exchange rate warnings if conversion failed
|
|
3534
|
-
*
|
|
3535
|
-
* **Parameters:**
|
|
3536
|
-
* - `period`: Time period (1m, 3m, 6m, 1y)
|
|
3537
|
-
* - `granularity`: Data granularity (day, week, month)
|
|
3538
|
-
*
|
|
4002
|
+
* Get cash flow summary
|
|
4003
|
+
* Returns income, expenses, and savings for a monthly period
|
|
3539
4004
|
* @param data The data for the request.
|
|
4005
|
+
* @param data.period Period in YYYY-MM format
|
|
3540
4006
|
* @param data.region Region code for tenant context
|
|
3541
|
-
* @
|
|
3542
|
-
* @param data.granularity Data granularity
|
|
3543
|
-
* @returns PortfolioTrendsResponseDto Trends retrieved successfully
|
|
4007
|
+
* @returns CashFlowResponseDto Cash flow retrieved successfully
|
|
3544
4008
|
* @throws ApiError
|
|
3545
4009
|
*/
|
|
3546
|
-
public static
|
|
3547
|
-
data:
|
|
3548
|
-
): CancelablePromise<
|
|
4010
|
+
public static dashboardControllerGetCashFlow(
|
|
4011
|
+
data: DashboardControllerGetCashFlowData
|
|
4012
|
+
): CancelablePromise<DashboardControllerGetCashFlowResponse> {
|
|
3549
4013
|
return __request(OpenAPI, {
|
|
3550
4014
|
method: 'GET',
|
|
3551
|
-
url: '/api/v1/{region}/
|
|
4015
|
+
url: '/api/v1/{region}/dashboard/cash-flow',
|
|
3552
4016
|
path: {
|
|
3553
4017
|
region: data.region
|
|
3554
4018
|
},
|
|
3555
4019
|
query: {
|
|
3556
|
-
period: data.period
|
|
3557
|
-
granularity: data.granularity
|
|
4020
|
+
period: data.period
|
|
3558
4021
|
},
|
|
3559
4022
|
errors: {
|
|
4023
|
+
400: 'Invalid period format',
|
|
3560
4024
|
401: 'User not authenticated'
|
|
3561
4025
|
}
|
|
3562
4026
|
});
|
|
3563
4027
|
}
|
|
3564
4028
|
|
|
3565
4029
|
/**
|
|
3566
|
-
* Get
|
|
3567
|
-
*
|
|
3568
|
-
* Monthly income / expense / netSavings over a fixed N-month window
|
|
3569
|
-
* (current month + N−1 prior). Missing months are zero-filled (flow metric).
|
|
3570
|
-
*
|
|
3571
|
-
* **Parameters:**
|
|
3572
|
-
* - `period`: 1m | 3m | 6m | 1y (default 6m)
|
|
3573
|
-
* - `granularity`: accepted for API symmetry; v1 returns month buckets
|
|
3574
|
-
*
|
|
4030
|
+
* Get expenses/income grouped by functional category
|
|
4031
|
+
* Returns amounts pre-aggregated by functional category (account-path Group segment) with server-side multi-currency conversion. flow=expense (default) aggregates ^Expenses: accounts; flow=income aggregates ^Income: accounts (issue #518)
|
|
3575
4032
|
* @param data The data for the request.
|
|
3576
4033
|
* @param data.region Region code for tenant context
|
|
3577
|
-
* @param data.
|
|
3578
|
-
* @param data.
|
|
3579
|
-
* @
|
|
4034
|
+
* @param data.groupBy Grouping strategy
|
|
4035
|
+
* @param data.period Time window (1m = current calendar month)
|
|
4036
|
+
* @param data.flow Account root to aggregate (expense → ^Expenses:, income → ^Income:)
|
|
4037
|
+
* @returns ExpensesByCategoryResponseDto Expenses retrieved successfully
|
|
3580
4038
|
* @throws ApiError
|
|
3581
4039
|
*/
|
|
3582
|
-
public static
|
|
3583
|
-
data:
|
|
3584
|
-
): CancelablePromise<
|
|
4040
|
+
public static dashboardControllerGetExpenses(
|
|
4041
|
+
data: DashboardControllerGetExpensesData
|
|
4042
|
+
): CancelablePromise<DashboardControllerGetExpensesResponse> {
|
|
3585
4043
|
return __request(OpenAPI, {
|
|
3586
4044
|
method: 'GET',
|
|
3587
|
-
url: '/api/v1/{region}/
|
|
4045
|
+
url: '/api/v1/{region}/dashboard/expenses',
|
|
3588
4046
|
path: {
|
|
3589
4047
|
region: data.region
|
|
3590
4048
|
},
|
|
3591
4049
|
query: {
|
|
4050
|
+
groupBy: data.groupBy,
|
|
3592
4051
|
period: data.period,
|
|
3593
|
-
|
|
4052
|
+
flow: data.flow
|
|
3594
4053
|
},
|
|
3595
4054
|
errors: {
|
|
4055
|
+
400: 'Invalid groupBy or period',
|
|
3596
4056
|
401: 'User not authenticated'
|
|
3597
4057
|
}
|
|
3598
4058
|
});
|
|
3599
4059
|
}
|
|
3600
4060
|
|
|
3601
4061
|
/**
|
|
3602
|
-
*
|
|
3603
|
-
*
|
|
3604
|
-
* Manually generate a portfolio snapshot for a specific date.
|
|
3605
|
-
*
|
|
3606
|
-
* **Multi-currency Support:**
|
|
3607
|
-
* - Fetches balances grouped by currency
|
|
3608
|
-
* - Uses user's baseCurrency setting for conversion
|
|
3609
|
-
* - Stores exchange rates and warnings
|
|
3610
|
-
*
|
|
3611
|
-
* **Use Cases:**
|
|
3612
|
-
* - Testing snapshot generation
|
|
3613
|
-
* - Force regeneration after data correction
|
|
3614
|
-
* - Initial setup for new users
|
|
3615
|
-
*
|
|
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
|
|
3616
4064
|
* @param data The data for the request.
|
|
3617
4065
|
* @param data.region Region code for tenant context
|
|
3618
|
-
* @param data.
|
|
3619
|
-
* @returns
|
|
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
|
|
3620
4068
|
* @throws ApiError
|
|
3621
4069
|
*/
|
|
3622
|
-
public static
|
|
3623
|
-
data:
|
|
3624
|
-
): CancelablePromise<
|
|
4070
|
+
public static dashboardControllerGetAdvisorContext(
|
|
4071
|
+
data: DashboardControllerGetAdvisorContextData
|
|
4072
|
+
): CancelablePromise<DashboardControllerGetAdvisorContextResponse> {
|
|
3625
4073
|
return __request(OpenAPI, {
|
|
3626
|
-
method: '
|
|
3627
|
-
url: '/api/v1/{region}/
|
|
4074
|
+
method: 'GET',
|
|
4075
|
+
url: '/api/v1/{region}/dashboard/advisor-context',
|
|
3628
4076
|
path: {
|
|
3629
4077
|
region: data.region
|
|
3630
4078
|
},
|
|
3631
|
-
|
|
3632
|
-
|
|
4079
|
+
query: {
|
|
4080
|
+
date: data.date
|
|
4081
|
+
},
|
|
3633
4082
|
errors: {
|
|
3634
4083
|
400: 'Invalid date format',
|
|
3635
|
-
401: 'User not authenticated'
|
|
4084
|
+
401: 'User not authenticated, or the token is not advisor-scoped (exchange via POST /auth/sessions/advisor, #1512)'
|
|
3636
4085
|
}
|
|
3637
4086
|
});
|
|
3638
4087
|
}
|
|
4088
|
+
}
|
|
3639
4089
|
|
|
4090
|
+
export class InvestmentService {
|
|
3640
4091
|
/**
|
|
3641
|
-
*
|
|
3642
|
-
*
|
|
3643
|
-
* Generate snapshots for a date range (historical data backfill).
|
|
3644
|
-
*
|
|
3645
|
-
* **Multi-currency Support:**
|
|
3646
|
-
* - Each snapshot includes multi-currency data
|
|
3647
|
-
* - Uses exchange rates available at generation time
|
|
3648
|
-
* - Warnings stored for missing exchange rates
|
|
3649
|
-
*
|
|
3650
|
-
* **Best Practices:**
|
|
3651
|
-
* - Use for initial setup after account configuration
|
|
3652
|
-
* - Run during low-traffic periods for large date ranges
|
|
3653
|
-
* - Existing snapshots are skipped (not regenerated)
|
|
3654
|
-
*
|
|
4092
|
+
* Get per-holding unrealized + realized P&L
|
|
4093
|
+
* Average-cost unrealized P&L per account × commodity, plus cumulative realized P&L on sold lots (method = FIFO | average, default average).
|
|
3655
4094
|
* @param data The data for the request.
|
|
3656
4095
|
* @param data.region Region code for tenant context
|
|
3657
|
-
* @param data.
|
|
3658
|
-
* @
|
|
4096
|
+
* @param data.asOf As-of date (ISO 8601), defaults to today
|
|
4097
|
+
* @param data.accountId Scope to a single account
|
|
4098
|
+
* @param data.method Realized-P&L lot-matching method (default average). Does not affect the average-cost unrealized basis.
|
|
4099
|
+
* @returns HoldingPnlResponseDto Holding P&L retrieved successfully
|
|
3659
4100
|
* @throws ApiError
|
|
3660
4101
|
*/
|
|
3661
|
-
public static
|
|
3662
|
-
data:
|
|
3663
|
-
): CancelablePromise<
|
|
4102
|
+
public static holdingPnlControllerGetHoldingPnl(
|
|
4103
|
+
data: HoldingPnlControllerGetHoldingPnlData
|
|
4104
|
+
): CancelablePromise<HoldingPnlControllerGetHoldingPnlResponse> {
|
|
3664
4105
|
return __request(OpenAPI, {
|
|
3665
|
-
method: '
|
|
3666
|
-
url: '/api/v1/{region}/
|
|
4106
|
+
method: 'GET',
|
|
4107
|
+
url: '/api/v1/{region}/investment/holdings/pnl',
|
|
3667
4108
|
path: {
|
|
3668
4109
|
region: data.region
|
|
3669
4110
|
},
|
|
3670
|
-
|
|
3671
|
-
|
|
4111
|
+
query: {
|
|
4112
|
+
asOf: data.asOf,
|
|
4113
|
+
accountId: data.accountId,
|
|
4114
|
+
method: data.method
|
|
4115
|
+
},
|
|
3672
4116
|
errors: {
|
|
3673
|
-
400: 'Invalid date format or
|
|
3674
|
-
401: 'User not authenticated'
|
|
3675
|
-
409: 'Backfill already in progress for this user'
|
|
4117
|
+
400: 'Invalid asOf format/value/future date, invalid accountId format, or unsupported method',
|
|
4118
|
+
401: 'User not authenticated'
|
|
3676
4119
|
}
|
|
3677
4120
|
});
|
|
3678
4121
|
}
|
|
@@ -3701,7 +4144,7 @@ export class AuthService {
|
|
|
3701
4144
|
* Anonymous login with access token
|
|
3702
4145
|
* @param data The data for the request.
|
|
3703
4146
|
* @param data.requestBody
|
|
3704
|
-
* @returns
|
|
4147
|
+
* @returns AnonymousLoginResponseDto Login successful
|
|
3705
4148
|
* @throws ApiError
|
|
3706
4149
|
*/
|
|
3707
4150
|
public static authControllerAccessTokenLogin(
|
|
@@ -3717,17 +4160,75 @@ export class AuthService {
|
|
|
3717
4160
|
}
|
|
3718
4161
|
});
|
|
3719
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
|
+
}
|
|
3720
4216
|
}
|
|
3721
4217
|
|
|
3722
|
-
export class
|
|
4218
|
+
export class AdminCacheService {
|
|
3723
4219
|
/**
|
|
3724
|
-
*
|
|
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
|
|
3725
4223
|
* @throws ApiError
|
|
3726
4224
|
*/
|
|
3727
4225
|
public static cacheControllerFlushCache(): CancelablePromise<CacheControllerFlushCacheResponse> {
|
|
3728
4226
|
return __request(OpenAPI, {
|
|
3729
4227
|
method: 'POST',
|
|
3730
|
-
url: '/api/v1/cache/flush'
|
|
4228
|
+
url: '/api/v1/cache/flush',
|
|
4229
|
+
errors: {
|
|
4230
|
+
403: 'Admin access required'
|
|
4231
|
+
}
|
|
3731
4232
|
});
|
|
3732
4233
|
}
|
|
3733
4234
|
}
|
|
@@ -3888,3 +4389,53 @@ export class InfoService {
|
|
|
3888
4389
|
});
|
|
3889
4390
|
}
|
|
3890
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
|
+
}
|