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