@firela/api-types 0.0.0-canary.a133ccd5 → 0.0.0-canary.a203bb6
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 +6810 -2762
- package/dist/index.d.ts +6810 -2762
- package/dist/index.js +218 -80
- package/dist/index.mjs +218 -80
- package/package.json +2 -3
- package/src/generated/schemas.gen.ts +7834 -3202
- package/src/generated/services.gen.ts +2547 -1087
- package/src/generated/types.gen.ts +28814 -3214
|
@@ -17,23 +17,35 @@ import type {
|
|
|
17
17
|
AccountControllerCloseResponse,
|
|
18
18
|
AccountControllerReopenData,
|
|
19
19
|
AccountControllerReopenResponse,
|
|
20
|
+
AccountControllerAddOpeningBalanceData,
|
|
21
|
+
AccountControllerAddOpeningBalanceResponse,
|
|
22
|
+
AccountStandardsControllerGetTemplatesData,
|
|
23
|
+
AccountStandardsControllerGetTemplatesResponse,
|
|
24
|
+
AccountStandardsControllerGetTemplateMetadataData,
|
|
25
|
+
AccountStandardsControllerGetTemplateMetadataResponse,
|
|
26
|
+
AccountStandardsControllerGetRegionsData,
|
|
27
|
+
AccountStandardsControllerGetRegionsResponse,
|
|
20
28
|
TransactionControllerCreateData,
|
|
21
29
|
TransactionControllerCreateResponse,
|
|
22
30
|
TransactionControllerListData,
|
|
23
31
|
TransactionControllerListResponse,
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
TransactionControllerCreateBatchData,
|
|
33
|
+
TransactionControllerCreateBatchResponse,
|
|
34
|
+
TransactionControllerBatchVoidData,
|
|
35
|
+
TransactionControllerBatchVoidResponse,
|
|
36
|
+
TransactionControllerCorrectData,
|
|
37
|
+
TransactionControllerCorrectResponse,
|
|
38
|
+
TransactionControllerSuggestTagsData,
|
|
39
|
+
TransactionControllerSuggestTagsResponse,
|
|
26
40
|
TransactionControllerGetDetailData,
|
|
27
41
|
TransactionControllerGetDetailResponse,
|
|
28
42
|
TransactionControllerUpdateData,
|
|
29
43
|
TransactionControllerUpdateResponse,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
AccountStandardsControllerGetTemplatesData,
|
|
33
|
-
AccountStandardsControllerGetTemplatesResponse,
|
|
34
|
-
AccountStandardsControllerGetRegionsResponse,
|
|
44
|
+
TransactionControllerDeleteData,
|
|
45
|
+
TransactionControllerDeleteResponse,
|
|
35
46
|
BalanceControllerGetBalanceData,
|
|
36
47
|
BalanceControllerGetBalanceResponse,
|
|
48
|
+
BalanceControllerGetMultiCurrencyBalanceData,
|
|
37
49
|
BalanceControllerGetMultiCurrencyBalanceResponse,
|
|
38
50
|
ReviewControllerFindAllData,
|
|
39
51
|
ReviewControllerFindAllResponse,
|
|
@@ -41,96 +53,30 @@ import type {
|
|
|
41
53
|
ReviewControllerGetStatsResponse,
|
|
42
54
|
ReviewControllerFindOneData,
|
|
43
55
|
ReviewControllerFindOneResponse,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
PayeeControllerFindAllResponse,
|
|
53
|
-
PayeeControllerAutocompleteData,
|
|
54
|
-
PayeeControllerAutocompleteResponse,
|
|
55
|
-
PayeeControllerGetTopPayeesData,
|
|
56
|
-
PayeeControllerGetTopPayeesResponse,
|
|
57
|
-
PayeeControllerFindOneData,
|
|
58
|
-
PayeeControllerFindOneResponse,
|
|
59
|
-
PayeeController1Response,
|
|
60
|
-
PayeeController2Response,
|
|
61
|
-
PayeeProfileAdminControllerResponse,
|
|
62
|
-
PayeeProfileAdminControllerFindAllData,
|
|
63
|
-
PayeeProfileAdminControllerFindAllResponse,
|
|
64
|
-
PayeeProfileAdminControllerFindOneData,
|
|
65
|
-
PayeeProfileAdminControllerFindOneResponse,
|
|
66
|
-
PayeeProfileAdminController1Response,
|
|
67
|
-
PayeeProfileAdminController2Response,
|
|
68
|
-
PayeeProfileAdminController3Response,
|
|
69
|
-
PayeeProfileAdminController4Response,
|
|
70
|
-
CommodityControllerData,
|
|
71
|
-
CommodityControllerResponse,
|
|
72
|
-
CommodityControllerFindAllData,
|
|
73
|
-
CommodityControllerFindAllResponse,
|
|
74
|
-
CommodityControllerFindOneData,
|
|
75
|
-
CommodityControllerFindOneResponse,
|
|
76
|
-
CommodityController1Data,
|
|
77
|
-
CommodityController1Response,
|
|
78
|
-
CommodityController2Data,
|
|
79
|
-
CommodityController2Response,
|
|
80
|
-
CommodityController3Data,
|
|
81
|
-
CommodityController3Response,
|
|
82
|
-
CommodityController4Data,
|
|
83
|
-
CommodityController4Response,
|
|
84
|
-
RecurringRuleControllerData,
|
|
85
|
-
RecurringRuleControllerResponse,
|
|
86
|
-
RecurringRuleControllerFindAllData,
|
|
87
|
-
RecurringRuleControllerFindAllResponse,
|
|
88
|
-
RecurringRuleController1Data,
|
|
89
|
-
RecurringRuleController1Response,
|
|
90
|
-
RecurringRuleControllerFindOneData,
|
|
91
|
-
RecurringRuleControllerFindOneResponse,
|
|
92
|
-
RecurringRuleController2Data,
|
|
93
|
-
RecurringRuleController2Response,
|
|
94
|
-
RecurringRuleController3Data,
|
|
95
|
-
RecurringRuleController3Response,
|
|
96
|
-
RecurringRuleControllerGetWithStatsData,
|
|
97
|
-
RecurringRuleControllerGetWithStatsResponse,
|
|
98
|
-
ExpectedTransactionControllerFindAllData,
|
|
99
|
-
ExpectedTransactionControllerFindAllResponse,
|
|
100
|
-
ExpectedTransactionControllerFindOverdueData,
|
|
101
|
-
ExpectedTransactionControllerFindOverdueResponse,
|
|
102
|
-
ExpectedTransactionControllerFindOneData,
|
|
103
|
-
ExpectedTransactionControllerFindOneResponse,
|
|
104
|
-
ExpectedTransactionControllerData,
|
|
105
|
-
ExpectedTransactionControllerResponse,
|
|
106
|
-
ExpectedTransactionController1Data,
|
|
107
|
-
ExpectedTransactionController1Response,
|
|
108
|
-
ExpectedTransactionController2Data,
|
|
109
|
-
ExpectedTransactionController2Response,
|
|
110
|
-
ExpectedTransactionController3Data,
|
|
111
|
-
ExpectedTransactionController3Response,
|
|
112
|
-
ExpectedTransactionController4Data,
|
|
113
|
-
ExpectedTransactionController4Response,
|
|
114
|
-
ForecastControllerGetForecastData,
|
|
115
|
-
ForecastControllerGetForecastResponse,
|
|
116
|
-
TransactionRuleControllerData,
|
|
117
|
-
TransactionRuleControllerResponse,
|
|
56
|
+
ReviewControllerResolveData,
|
|
57
|
+
ReviewControllerResolveResponse,
|
|
58
|
+
ReviewControllerUndoData,
|
|
59
|
+
ReviewControllerUndoResponse,
|
|
60
|
+
ReviewControllerBatchResolveData,
|
|
61
|
+
ReviewControllerBatchResolveResponse,
|
|
62
|
+
TransactionRuleControllerCreateData,
|
|
63
|
+
TransactionRuleControllerCreateResponse,
|
|
118
64
|
TransactionRuleControllerListData,
|
|
119
65
|
TransactionRuleControllerListResponse,
|
|
120
66
|
TransactionRuleControllerValidateData,
|
|
121
67
|
TransactionRuleControllerValidateResponse,
|
|
122
|
-
|
|
123
|
-
|
|
68
|
+
TransactionRuleControllerBulkCreateData,
|
|
69
|
+
TransactionRuleControllerBulkCreateResponse,
|
|
124
70
|
TransactionRuleControllerExportData,
|
|
125
71
|
TransactionRuleControllerExportResponse,
|
|
126
72
|
TransactionRuleControllerGetStatisticsData,
|
|
127
73
|
TransactionRuleControllerGetStatisticsResponse,
|
|
128
74
|
TransactionRuleControllerGetDetailData,
|
|
129
75
|
TransactionRuleControllerGetDetailResponse,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
76
|
+
TransactionRuleControllerUpdateData,
|
|
77
|
+
TransactionRuleControllerUpdateResponse,
|
|
78
|
+
TransactionRuleControllerDeleteData,
|
|
79
|
+
TransactionRuleControllerDeleteResponse,
|
|
134
80
|
TransactionRuleControllerTestData,
|
|
135
81
|
TransactionRuleControllerTestResponse,
|
|
136
82
|
UserControllerDeleteOwnUserData,
|
|
@@ -151,25 +97,163 @@ import type {
|
|
|
151
97
|
PropertyControllerGetAllResponse,
|
|
152
98
|
PropertyControllerGetByKeyData,
|
|
153
99
|
PropertyControllerGetByKeyResponse,
|
|
154
|
-
|
|
155
|
-
|
|
100
|
+
PropertyControllerUpdateData,
|
|
101
|
+
PropertyControllerUpdateResponse,
|
|
102
|
+
PropertyControllerDeleteData,
|
|
103
|
+
PropertyControllerDeleteResponse,
|
|
104
|
+
PayeeControllerCreateData,
|
|
105
|
+
PayeeControllerCreateResponse,
|
|
106
|
+
PayeeControllerFindAllData,
|
|
107
|
+
PayeeControllerFindAllResponse,
|
|
108
|
+
PayeeControllerAutocompleteData,
|
|
109
|
+
PayeeControllerAutocompleteResponse,
|
|
110
|
+
PayeeControllerGetTopPayeesData,
|
|
111
|
+
PayeeControllerGetTopPayeesResponse,
|
|
112
|
+
PayeeControllerFindOneData,
|
|
113
|
+
PayeeControllerFindOneResponse,
|
|
114
|
+
PayeeControllerUpdateData,
|
|
115
|
+
PayeeControllerUpdateResponse,
|
|
116
|
+
PayeeControllerDeleteData,
|
|
117
|
+
PayeeControllerDeleteResponse,
|
|
118
|
+
PayeeProfileAdminControllerCreateData,
|
|
119
|
+
PayeeProfileAdminControllerCreateResponse,
|
|
120
|
+
PayeeProfileAdminControllerFindAllData,
|
|
121
|
+
PayeeProfileAdminControllerFindAllResponse,
|
|
122
|
+
PayeeProfileAdminControllerFindOneData,
|
|
123
|
+
PayeeProfileAdminControllerFindOneResponse,
|
|
124
|
+
PayeeProfileAdminControllerUpdateData,
|
|
125
|
+
PayeeProfileAdminControllerUpdateResponse,
|
|
126
|
+
PayeeProfileAdminControllerDeleteData,
|
|
127
|
+
PayeeProfileAdminControllerDeleteResponse,
|
|
128
|
+
PayeeProfileAdminControllerVerifyData,
|
|
129
|
+
PayeeProfileAdminControllerVerifyResponse,
|
|
130
|
+
PayeeProfileAdminControllerUnverifyData,
|
|
131
|
+
PayeeProfileAdminControllerUnverifyResponse,
|
|
132
|
+
PayeeProfileControllerListActiveResponse,
|
|
133
|
+
CommodityControllerCreateData,
|
|
134
|
+
CommodityControllerCreateResponse,
|
|
135
|
+
CommodityControllerFindAllData,
|
|
136
|
+
CommodityControllerFindAllResponse,
|
|
137
|
+
CommodityControllerFindOneData,
|
|
138
|
+
CommodityControllerFindOneResponse,
|
|
139
|
+
CommodityControllerUpdateData,
|
|
140
|
+
CommodityControllerUpdateResponse,
|
|
141
|
+
CommodityControllerDeleteData,
|
|
142
|
+
CommodityControllerDeleteResponse,
|
|
143
|
+
CommodityControllerGetOrCreateData,
|
|
144
|
+
CommodityControllerGetOrCreateResponse,
|
|
145
|
+
CommodityControllerBulkCreateData,
|
|
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,
|
|
167
|
+
RecurringRuleControllerCreateData,
|
|
168
|
+
RecurringRuleControllerCreateResponse,
|
|
169
|
+
RecurringRuleControllerFindAllData,
|
|
170
|
+
RecurringRuleControllerFindAllResponse,
|
|
171
|
+
RecurringRuleControllerCreateFromTransactionData,
|
|
172
|
+
RecurringRuleControllerCreateFromTransactionResponse,
|
|
173
|
+
RecurringRuleControllerFindOneData,
|
|
174
|
+
RecurringRuleControllerFindOneResponse,
|
|
175
|
+
RecurringRuleControllerUpdateData,
|
|
176
|
+
RecurringRuleControllerUpdateResponse,
|
|
177
|
+
RecurringRuleControllerDeleteData,
|
|
178
|
+
RecurringRuleControllerDeleteResponse,
|
|
179
|
+
RecurringRuleControllerGetWithStatsData,
|
|
180
|
+
RecurringRuleControllerGetWithStatsResponse,
|
|
181
|
+
ExpectedTransactionControllerFindAllData,
|
|
182
|
+
ExpectedTransactionControllerFindAllResponse,
|
|
183
|
+
ExpectedTransactionControllerFindOverdueData,
|
|
184
|
+
ExpectedTransactionControllerFindOverdueResponse,
|
|
185
|
+
ExpectedTransactionControllerFindOneData,
|
|
186
|
+
ExpectedTransactionControllerFindOneResponse,
|
|
187
|
+
ExpectedTransactionControllerSkipData,
|
|
188
|
+
ExpectedTransactionControllerSkipResponse,
|
|
189
|
+
ExpectedTransactionControllerUndoSkipData,
|
|
190
|
+
ExpectedTransactionControllerUndoSkipResponse,
|
|
191
|
+
ExpectedTransactionControllerConfirmMatchData,
|
|
192
|
+
ExpectedTransactionControllerConfirmMatchResponse,
|
|
193
|
+
ExpectedTransactionControllerUnmatchData,
|
|
194
|
+
ExpectedTransactionControllerUnmatchResponse,
|
|
195
|
+
ExpectedTransactionControllerEnterNowData,
|
|
196
|
+
ExpectedTransactionControllerEnterNowResponse,
|
|
197
|
+
ForecastControllerGetForecastData,
|
|
198
|
+
ForecastControllerGetForecastResponse,
|
|
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,
|
|
224
|
+
ExportControllerExportBeancountResponse,
|
|
156
225
|
FileImportControllerImportFileData,
|
|
157
226
|
FileImportControllerImportFileResponse,
|
|
158
227
|
FileImportControllerIdentifyFileData,
|
|
159
228
|
FileImportControllerIdentifyFileResponse,
|
|
229
|
+
FileImportControllerImportBeancountData,
|
|
230
|
+
FileImportControllerImportBeancountResponse,
|
|
160
231
|
ImporterConfigControllerGetConfigData,
|
|
161
232
|
ImporterConfigControllerGetConfigResponse,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
233
|
+
ImporterConfigControllerUpdateConfigData,
|
|
234
|
+
ImporterConfigControllerUpdateConfigResponse,
|
|
235
|
+
ImporterConfigControllerResetConfigData,
|
|
236
|
+
ImporterConfigControllerResetConfigResponse,
|
|
166
237
|
ProviderSyncControllerSyncData,
|
|
167
238
|
ProviderSyncControllerSyncResponse,
|
|
239
|
+
ProviderSyncControllerGetSupportedProvidersData,
|
|
168
240
|
ProviderSyncControllerGetSupportedProvidersResponse,
|
|
169
241
|
ProviderSyncControllerIsProviderSupportedData,
|
|
170
242
|
ProviderSyncControllerIsProviderSupportedResponse,
|
|
243
|
+
ExternalAccountLinkControllerCreateData,
|
|
244
|
+
ExternalAccountLinkControllerCreateResponse,
|
|
245
|
+
ExternalAccountLinkControllerFindAllData,
|
|
246
|
+
ExternalAccountLinkControllerFindAllResponse,
|
|
247
|
+
ExternalAccountLinkControllerFindOneData,
|
|
248
|
+
ExternalAccountLinkControllerFindOneResponse,
|
|
249
|
+
ExternalAccountLinkControllerRemoveData,
|
|
250
|
+
ExternalAccountLinkControllerRemoveResponse,
|
|
171
251
|
TelemetryControllerReportTelemetryData,
|
|
172
252
|
TelemetryControllerReportTelemetryResponse,
|
|
253
|
+
TelemetryControllerReportCoverageMissData,
|
|
254
|
+
TelemetryControllerReportCoverageMissResponse,
|
|
255
|
+
TelemetryControllerGetCoverageMetricsData,
|
|
256
|
+
TelemetryControllerGetCoverageMetricsResponse,
|
|
173
257
|
NlpControllerProcessNaturalLanguageData,
|
|
174
258
|
NlpControllerProcessNaturalLanguageResponse,
|
|
175
259
|
NlpControllerClearSessionData,
|
|
@@ -177,55 +261,53 @@ import type {
|
|
|
177
261
|
NlpControllerGetSessionData,
|
|
178
262
|
NlpControllerGetSessionResponse,
|
|
179
263
|
PlatformControllerFindAllResponse,
|
|
180
|
-
|
|
264
|
+
PlatformControllerCreateData,
|
|
265
|
+
PlatformControllerCreateResponse,
|
|
266
|
+
PlatformControllerGetPlatformListData,
|
|
181
267
|
PlatformControllerGetPlatformListResponse,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
SymbolControllerResponse,
|
|
191
|
-
CacheControllerFlushCacheResponse,
|
|
268
|
+
PlatformControllerMatchPlatformsData,
|
|
269
|
+
PlatformControllerMatchPlatformsResponse,
|
|
270
|
+
PlatformControllerGetPlatformStandardsData,
|
|
271
|
+
PlatformControllerGetPlatformStandardsResponse,
|
|
272
|
+
PlatformControllerUpdateData,
|
|
273
|
+
PlatformControllerUpdateResponse,
|
|
274
|
+
PlatformControllerDeleteData,
|
|
275
|
+
PlatformControllerDeleteResponse,
|
|
192
276
|
DashboardControllerGetNetWorthData,
|
|
193
277
|
DashboardControllerGetNetWorthResponse,
|
|
194
278
|
DashboardControllerGetAccountsData,
|
|
195
279
|
DashboardControllerGetAccountsResponse,
|
|
196
280
|
DashboardControllerGetCashFlowData,
|
|
197
281
|
DashboardControllerGetCashFlowResponse,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
282
|
+
DashboardControllerGetExpensesData,
|
|
283
|
+
DashboardControllerGetExpensesResponse,
|
|
284
|
+
DashboardControllerGetAdvisorContextData,
|
|
285
|
+
DashboardControllerGetAdvisorContextResponse,
|
|
286
|
+
HoldingPnlControllerGetHoldingPnlData,
|
|
287
|
+
HoldingPnlControllerGetHoldingPnlResponse,
|
|
288
|
+
ApiKeysControllerCreateApiKeyResponse,
|
|
205
289
|
AuthControllerAccessTokenLoginData,
|
|
206
290
|
AuthControllerAccessTokenLoginResponse,
|
|
291
|
+
AuthControllerAdvisorTokenLoginData,
|
|
292
|
+
AuthControllerAdvisorTokenLoginResponse,
|
|
293
|
+
ParserContributionControllerCreateData,
|
|
294
|
+
ParserContributionControllerCreateResponse,
|
|
295
|
+
CacheControllerFlushCacheResponse,
|
|
207
296
|
ExchangeRateControllerGetExchangeRateData,
|
|
208
297
|
ExchangeRateControllerGetExchangeRateResponse,
|
|
209
298
|
HealthControllerGetHealthResponse,
|
|
210
299
|
HealthControllerCheckDatabaseResponse,
|
|
300
|
+
HealthControllerCheckOpenBbResponse,
|
|
211
301
|
HealthControllerCheckRedisResponse,
|
|
212
302
|
HealthControllerGetCircuitBreakersHealthResponse,
|
|
213
303
|
HealthControllerResetCircuitBreakerData,
|
|
214
304
|
HealthControllerResetCircuitBreakerResponse,
|
|
215
305
|
HealthControllerGetMetricsResponse,
|
|
216
|
-
HealthControllerGetHealthOfDataEnhancerData,
|
|
217
|
-
HealthControllerGetHealthOfDataEnhancerResponse,
|
|
218
|
-
HealthControllerCheckDataProvidersResponse,
|
|
219
|
-
HealthControllerGetHealthOfDataProviderData,
|
|
220
|
-
HealthControllerGetHealthOfDataProviderResponse,
|
|
221
306
|
InfoControllerGetInfoResponse,
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
MarketDataControllerGetMarketDataBySymbolData,
|
|
227
|
-
MarketDataControllerGetMarketDataBySymbolResponse,
|
|
228
|
-
MarketDataControllerResponse
|
|
307
|
+
SymbolControllerSearchData,
|
|
308
|
+
SymbolControllerSearchResponse,
|
|
309
|
+
SymbolControllerGetQuoteData,
|
|
310
|
+
SymbolControllerGetQuoteResponse
|
|
229
311
|
} from './types.gen';
|
|
230
312
|
|
|
231
313
|
export class BeanAccountsService {
|
|
@@ -263,7 +345,7 @@ export class BeanAccountsService {
|
|
|
263
345
|
* @param data.type Filter by account type
|
|
264
346
|
* @param data.status Filter by status
|
|
265
347
|
* @param data.isCustom Filter by custom (user-created) accounts only
|
|
266
|
-
* @param data.search Search term
|
|
348
|
+
* @param data.search Search term matched against account path and user-set display name (case-insensitive)
|
|
267
349
|
* @param data.limit Maximum number of results
|
|
268
350
|
* @param data.offset Number of results to skip
|
|
269
351
|
* @returns AccountListResponseDto Accounts retrieved successfully
|
|
@@ -344,7 +426,7 @@ export class BeanAccountsService {
|
|
|
344
426
|
|
|
345
427
|
/**
|
|
346
428
|
* Delete account
|
|
347
|
-
* Deletes an account (only if no transactions)
|
|
429
|
+
* Deletes an account (only if no active transactions; voided/superseded residual postings are cleaned up)
|
|
348
430
|
* @param data The data for the request.
|
|
349
431
|
* @param data.id Account UUID
|
|
350
432
|
* @param data.region Region code for tenant context
|
|
@@ -363,7 +445,7 @@ export class BeanAccountsService {
|
|
|
363
445
|
},
|
|
364
446
|
errors: {
|
|
365
447
|
404: 'Account not found',
|
|
366
|
-
409: 'Account has transactions and cannot be deleted'
|
|
448
|
+
409: 'Account has active transactions and cannot be deleted'
|
|
367
449
|
}
|
|
368
450
|
});
|
|
369
451
|
}
|
|
@@ -425,6 +507,107 @@ export class BeanAccountsService {
|
|
|
425
507
|
}
|
|
426
508
|
});
|
|
427
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
|
+
}
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
export class BeanAccountStandardsService {
|
|
542
|
+
/**
|
|
543
|
+
* Get account templates
|
|
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).
|
|
545
|
+
* @param data The data for the request.
|
|
546
|
+
* @param data.region Region code (any ISO alpha-2; not-yet-open codes return the universal-only catalog)
|
|
547
|
+
* @param data.type Filter by account type
|
|
548
|
+
* @param data.search Search term for path, description, aliases, or localized display name
|
|
549
|
+
* @returns AccountStandardListResponseDto Account templates retrieved successfully
|
|
550
|
+
* @throws ApiError
|
|
551
|
+
*/
|
|
552
|
+
public static accountStandardsControllerGetTemplates(
|
|
553
|
+
data: AccountStandardsControllerGetTemplatesData
|
|
554
|
+
): CancelablePromise<AccountStandardsControllerGetTemplatesResponse> {
|
|
555
|
+
return __request(OpenAPI, {
|
|
556
|
+
method: 'GET',
|
|
557
|
+
url: '/api/v1/{region}/bean/account-standards',
|
|
558
|
+
path: {
|
|
559
|
+
region: data.region
|
|
560
|
+
},
|
|
561
|
+
query: {
|
|
562
|
+
type: data.type,
|
|
563
|
+
search: data.search
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Get template metadata for an account path
|
|
570
|
+
* Returns root type for a template path.
|
|
571
|
+
* @param data The data for the request.
|
|
572
|
+
* @param data.region Region code for tenant context. Not-yet-open codes degrade to the universal-only catalog (#759)
|
|
573
|
+
* @param data.path Account path to check
|
|
574
|
+
* @returns TemplateMetadataResponseDto Template metadata retrieved successfully
|
|
575
|
+
* @throws ApiError
|
|
576
|
+
*/
|
|
577
|
+
public static accountStandardsControllerGetTemplateMetadata(
|
|
578
|
+
data: AccountStandardsControllerGetTemplateMetadataData
|
|
579
|
+
): CancelablePromise<AccountStandardsControllerGetTemplateMetadataResponse> {
|
|
580
|
+
return __request(OpenAPI, {
|
|
581
|
+
method: 'GET',
|
|
582
|
+
url: '/api/v1/{region}/bean/account-standards/template-metadata',
|
|
583
|
+
path: {
|
|
584
|
+
region: data.region
|
|
585
|
+
},
|
|
586
|
+
query: {
|
|
587
|
+
path: data.path
|
|
588
|
+
}
|
|
589
|
+
});
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Get available regions with hierarchy
|
|
594
|
+
* Returns the full region catalog (every ISO 3166-1 entry) with an 'open' flag and inheritance metadata (#759)
|
|
595
|
+
* @param data The data for the request.
|
|
596
|
+
* @param data.region Region code for tenant context. Not-yet-open codes degrade to the universal-only catalog (#759)
|
|
597
|
+
* @returns RegionsMetadataResponseDto Regions metadata retrieved successfully
|
|
598
|
+
* @throws ApiError
|
|
599
|
+
*/
|
|
600
|
+
public static accountStandardsControllerGetRegions(
|
|
601
|
+
data: AccountStandardsControllerGetRegionsData
|
|
602
|
+
): CancelablePromise<AccountStandardsControllerGetRegionsResponse> {
|
|
603
|
+
return __request(OpenAPI, {
|
|
604
|
+
method: 'GET',
|
|
605
|
+
url: '/api/v1/{region}/bean/account-standards/regions',
|
|
606
|
+
path: {
|
|
607
|
+
region: data.region
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
}
|
|
428
611
|
}
|
|
429
612
|
|
|
430
613
|
export class BeanTransactionsService {
|
|
@@ -467,9 +650,11 @@ export class BeanTransactionsService {
|
|
|
467
650
|
* @param data.offset Number of items to skip (default: 0)
|
|
468
651
|
* @param data.dateFrom Filter by start date (inclusive), format: YYYY-MM-DD
|
|
469
652
|
* @param data.dateTo Filter by end date (inclusive), format: YYYY-MM-DD
|
|
470
|
-
* @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).
|
|
471
654
|
* @param data.search Search in narration and payee fields (max 200 chars)
|
|
472
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.
|
|
473
658
|
* @returns TransactionListResponseDto Transaction list
|
|
474
659
|
* @throws ApiError
|
|
475
660
|
*/
|
|
@@ -489,28 +674,131 @@ export class BeanTransactionsService {
|
|
|
489
674
|
dateTo: data.dateTo,
|
|
490
675
|
status: data.status,
|
|
491
676
|
search: data.search,
|
|
492
|
-
accountId: data.accountId
|
|
677
|
+
accountId: data.accountId,
|
|
678
|
+
category: data.category,
|
|
679
|
+
flow: data.flow
|
|
493
680
|
},
|
|
494
681
|
errors: {
|
|
682
|
+
400: 'Validation failed',
|
|
495
683
|
401: 'Authentication required'
|
|
496
684
|
}
|
|
497
685
|
});
|
|
498
686
|
}
|
|
499
687
|
|
|
500
688
|
/**
|
|
689
|
+
* @deprecated
|
|
690
|
+
* Batch create transactions (DEPRECATED)
|
|
691
|
+
* DEPRECATED: Use POST /:region/bean/import/provider/:name/sync instead. This endpoint skips dedup, rule matching, and review branching.
|
|
501
692
|
* @param data The data for the request.
|
|
502
693
|
* @param data.region Region code for tenant context
|
|
503
|
-
* @
|
|
694
|
+
* @param data.requestBody
|
|
695
|
+
* @returns BatchTransactionResponseDto Transactions processed
|
|
504
696
|
* @throws ApiError
|
|
505
697
|
*/
|
|
506
|
-
public static
|
|
507
|
-
data:
|
|
508
|
-
): CancelablePromise<
|
|
698
|
+
public static transactionControllerCreateBatch(
|
|
699
|
+
data: TransactionControllerCreateBatchData
|
|
700
|
+
): CancelablePromise<TransactionControllerCreateBatchResponse> {
|
|
509
701
|
return __request(OpenAPI, {
|
|
510
702
|
method: 'POST',
|
|
511
703
|
url: '/api/v1/{region}/bean/transactions/batch',
|
|
512
704
|
path: {
|
|
513
705
|
region: data.region
|
|
706
|
+
},
|
|
707
|
+
body: data.requestBody,
|
|
708
|
+
mediaType: 'application/json',
|
|
709
|
+
errors: {
|
|
710
|
+
400: 'Invalid input',
|
|
711
|
+
401: 'Authentication required'
|
|
712
|
+
}
|
|
713
|
+
});
|
|
714
|
+
}
|
|
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
|
+
|
|
744
|
+
/**
|
|
745
|
+
* Correct (supersede) a transaction
|
|
746
|
+
* Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
|
|
747
|
+
* @param data The data for the request.
|
|
748
|
+
* @param data.id Original transaction ID to correct
|
|
749
|
+
* @param data.region Region code for tenant context
|
|
750
|
+
* @param data.requestBody
|
|
751
|
+
* @returns TransactionDetailDto Corrected transaction created
|
|
752
|
+
* @throws ApiError
|
|
753
|
+
*/
|
|
754
|
+
public static transactionControllerCorrect(
|
|
755
|
+
data: TransactionControllerCorrectData
|
|
756
|
+
): CancelablePromise<TransactionControllerCorrectResponse> {
|
|
757
|
+
return __request(OpenAPI, {
|
|
758
|
+
method: 'POST',
|
|
759
|
+
url: '/api/v1/{region}/bean/transactions/{id}/correct',
|
|
760
|
+
path: {
|
|
761
|
+
id: data.id,
|
|
762
|
+
region: data.region
|
|
763
|
+
},
|
|
764
|
+
body: data.requestBody,
|
|
765
|
+
mediaType: 'application/json',
|
|
766
|
+
errors: {
|
|
767
|
+
404: 'Original transaction not found',
|
|
768
|
+
409: 'Original no longer ACTIVE (concurrent modification)',
|
|
769
|
+
422: 'Pipeline validation failed (does not balance, invalid accounts)'
|
|
770
|
+
}
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Suggest transaction tags
|
|
776
|
+
* Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
|
|
777
|
+
* @param data The data for the request.
|
|
778
|
+
* @param data.region Region code for tenant context
|
|
779
|
+
* @param data.q Prefix match, case-insensitive (max 50 chars)
|
|
780
|
+
* @param data.sort usage (default) or name
|
|
781
|
+
* @param data.limit Max suggestions (1-100, default 10)
|
|
782
|
+
* @returns TagSuggestionsResponseDto Tag suggestions
|
|
783
|
+
* @throws ApiError
|
|
784
|
+
*/
|
|
785
|
+
public static transactionControllerSuggestTags(
|
|
786
|
+
data: TransactionControllerSuggestTagsData
|
|
787
|
+
): CancelablePromise<TransactionControllerSuggestTagsResponse> {
|
|
788
|
+
return __request(OpenAPI, {
|
|
789
|
+
method: 'GET',
|
|
790
|
+
url: '/api/v1/{region}/bean/transactions/tags',
|
|
791
|
+
path: {
|
|
792
|
+
region: data.region
|
|
793
|
+
},
|
|
794
|
+
query: {
|
|
795
|
+
q: data.q,
|
|
796
|
+
sort: data.sort,
|
|
797
|
+
limit: data.limit
|
|
798
|
+
},
|
|
799
|
+
errors: {
|
|
800
|
+
400: 'Validation failed',
|
|
801
|
+
401: 'Authentication required'
|
|
514
802
|
}
|
|
515
803
|
});
|
|
516
804
|
}
|
|
@@ -572,82 +860,54 @@ export class BeanTransactionsService {
|
|
|
572
860
|
}
|
|
573
861
|
|
|
574
862
|
/**
|
|
863
|
+
* Void transaction
|
|
864
|
+
* Soft-deletes a transaction by marking it as VOIDED
|
|
575
865
|
* @param data The data for the request.
|
|
866
|
+
* @param data.id Transaction ID
|
|
576
867
|
* @param data.region Region code for tenant context
|
|
577
|
-
* @returns void
|
|
868
|
+
* @returns void Transaction voided successfully
|
|
578
869
|
* @throws ApiError
|
|
579
870
|
*/
|
|
580
|
-
public static
|
|
581
|
-
data:
|
|
582
|
-
): CancelablePromise<
|
|
871
|
+
public static transactionControllerDelete(
|
|
872
|
+
data: TransactionControllerDeleteData
|
|
873
|
+
): CancelablePromise<TransactionControllerDeleteResponse> {
|
|
583
874
|
return __request(OpenAPI, {
|
|
584
875
|
method: 'DELETE',
|
|
585
876
|
url: '/api/v1/{region}/bean/transactions/{id}',
|
|
586
877
|
path: {
|
|
878
|
+
id: data.id,
|
|
587
879
|
region: data.region
|
|
880
|
+
},
|
|
881
|
+
errors: {
|
|
882
|
+
400: 'Transaction already voided',
|
|
883
|
+
401: 'Authentication required',
|
|
884
|
+
404: 'Transaction not found'
|
|
588
885
|
}
|
|
589
886
|
});
|
|
590
887
|
}
|
|
591
888
|
}
|
|
592
889
|
|
|
593
|
-
export class
|
|
890
|
+
export class BeanBalancesService {
|
|
594
891
|
/**
|
|
595
|
-
*
|
|
596
|
-
*
|
|
892
|
+
* Query account balance
|
|
893
|
+
* Calculate account balance at a specific date for a single currency
|
|
597
894
|
* @param data The data for the request.
|
|
598
|
-
* @param data.
|
|
599
|
-
* @param data.
|
|
600
|
-
* @param data.
|
|
601
|
-
* @
|
|
895
|
+
* @param data.account Account name (e.g., "Assets:Checking")
|
|
896
|
+
* @param data.region Region code for tenant context
|
|
897
|
+
* @param data.date Date to calculate balance at (ISO 8601 format)
|
|
898
|
+
* @param data.currency Currency to query (e.g., "USD", "CNY")
|
|
899
|
+
* @returns BalanceResponseDto Balance calculated successfully
|
|
602
900
|
* @throws ApiError
|
|
603
901
|
*/
|
|
604
|
-
public static
|
|
605
|
-
data:
|
|
606
|
-
): CancelablePromise<
|
|
902
|
+
public static balanceControllerGetBalance(
|
|
903
|
+
data: BalanceControllerGetBalanceData
|
|
904
|
+
): CancelablePromise<BalanceControllerGetBalanceResponse> {
|
|
607
905
|
return __request(OpenAPI, {
|
|
608
906
|
method: 'GET',
|
|
609
|
-
url: '/api/v1/{region}/bean/
|
|
907
|
+
url: '/api/v1/{region}/bean/balances',
|
|
610
908
|
path: {
|
|
611
909
|
region: data.region
|
|
612
910
|
},
|
|
613
|
-
query: {
|
|
614
|
-
type: data.type,
|
|
615
|
-
search: data.search
|
|
616
|
-
}
|
|
617
|
-
});
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
/**
|
|
621
|
-
* Get available regions with hierarchy
|
|
622
|
-
* Returns supported regions with inheritance metadata
|
|
623
|
-
* @returns RegionsMetadataResponseDto Regions metadata retrieved successfully
|
|
624
|
-
* @throws ApiError
|
|
625
|
-
*/
|
|
626
|
-
public static accountStandardsControllerGetRegions(): CancelablePromise<AccountStandardsControllerGetRegionsResponse> {
|
|
627
|
-
return __request(OpenAPI, {
|
|
628
|
-
method: 'GET',
|
|
629
|
-
url: '/api/v1/{region}/bean/account-standards/regions'
|
|
630
|
-
});
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
export class BeanBalancesService {
|
|
635
|
-
/**
|
|
636
|
-
* Query account balance
|
|
637
|
-
* Calculate account balance at a specific date for a single currency
|
|
638
|
-
* @param data The data for the request.
|
|
639
|
-
* @param data.account Account name (e.g., "Assets:Bank:Checking")
|
|
640
|
-
* @param data.date Date to calculate balance at (ISO 8601 format)
|
|
641
|
-
* @param data.currency Currency to query (e.g., "USD", "CNY")
|
|
642
|
-
* @returns BalanceResponseDto Balance calculated successfully
|
|
643
|
-
* @throws ApiError
|
|
644
|
-
*/
|
|
645
|
-
public static balanceControllerGetBalance(
|
|
646
|
-
data: BalanceControllerGetBalanceData
|
|
647
|
-
): CancelablePromise<BalanceControllerGetBalanceResponse> {
|
|
648
|
-
return __request(OpenAPI, {
|
|
649
|
-
method: 'GET',
|
|
650
|
-
url: '/api/v1/{region}/bean/balances',
|
|
651
911
|
query: {
|
|
652
912
|
account: data.account,
|
|
653
913
|
date: data.date,
|
|
@@ -663,13 +923,20 @@ export class BeanBalancesService {
|
|
|
663
923
|
/**
|
|
664
924
|
* Query multi-currency account balance
|
|
665
925
|
* Calculate account balances for all currencies at a specific date
|
|
926
|
+
* @param data The data for the request.
|
|
927
|
+
* @param data.region Region code for tenant context
|
|
666
928
|
* @returns MultiCurrencyBalanceResponseDto Balances calculated successfully
|
|
667
929
|
* @throws ApiError
|
|
668
930
|
*/
|
|
669
|
-
public static balanceControllerGetMultiCurrencyBalance(
|
|
931
|
+
public static balanceControllerGetMultiCurrencyBalance(
|
|
932
|
+
data: BalanceControllerGetMultiCurrencyBalanceData
|
|
933
|
+
): CancelablePromise<BalanceControllerGetMultiCurrencyBalanceResponse> {
|
|
670
934
|
return __request(OpenAPI, {
|
|
671
935
|
method: 'GET',
|
|
672
936
|
url: '/api/v1/{region}/bean/balances/multi-currency',
|
|
937
|
+
path: {
|
|
938
|
+
region: data.region
|
|
939
|
+
},
|
|
673
940
|
errors: {
|
|
674
941
|
400: 'Invalid query parameters',
|
|
675
942
|
401: 'User not authenticated'
|
|
@@ -751,461 +1018,1500 @@ export class BeanReviewsService {
|
|
|
751
1018
|
}
|
|
752
1019
|
|
|
753
1020
|
/**
|
|
1021
|
+
* Resolve a review item
|
|
754
1022
|
* @param data The data for the request.
|
|
1023
|
+
* @param data.id Review ID
|
|
755
1024
|
* @param data.region Region code for tenant context
|
|
756
|
-
* @
|
|
1025
|
+
* @param data.requestBody
|
|
1026
|
+
* @returns ResolveResultDto
|
|
757
1027
|
* @throws ApiError
|
|
758
1028
|
*/
|
|
759
|
-
public static
|
|
760
|
-
data:
|
|
761
|
-
): CancelablePromise<
|
|
1029
|
+
public static reviewControllerResolve(
|
|
1030
|
+
data: ReviewControllerResolveData
|
|
1031
|
+
): CancelablePromise<ReviewControllerResolveResponse> {
|
|
762
1032
|
return __request(OpenAPI, {
|
|
763
1033
|
method: 'POST',
|
|
764
1034
|
url: '/api/v1/{region}/bean/reviews/{id}/resolve',
|
|
765
1035
|
path: {
|
|
1036
|
+
id: data.id,
|
|
766
1037
|
region: data.region
|
|
767
|
-
}
|
|
1038
|
+
},
|
|
1039
|
+
body: data.requestBody,
|
|
1040
|
+
mediaType: 'application/json'
|
|
768
1041
|
});
|
|
769
1042
|
}
|
|
770
1043
|
|
|
771
1044
|
/**
|
|
1045
|
+
* Undo a resolution (within 24h)
|
|
772
1046
|
* @param data The data for the request.
|
|
1047
|
+
* @param data.id Review ID
|
|
773
1048
|
* @param data.region Region code for tenant context
|
|
774
|
-
* @returns
|
|
1049
|
+
* @returns UndoResultDto
|
|
775
1050
|
* @throws ApiError
|
|
776
1051
|
*/
|
|
777
|
-
public static
|
|
778
|
-
data:
|
|
779
|
-
): CancelablePromise<
|
|
1052
|
+
public static reviewControllerUndo(
|
|
1053
|
+
data: ReviewControllerUndoData
|
|
1054
|
+
): CancelablePromise<ReviewControllerUndoResponse> {
|
|
780
1055
|
return __request(OpenAPI, {
|
|
781
1056
|
method: 'POST',
|
|
782
1057
|
url: '/api/v1/{region}/bean/reviews/{id}/undo',
|
|
783
1058
|
path: {
|
|
1059
|
+
id: data.id,
|
|
784
1060
|
region: data.region
|
|
785
1061
|
}
|
|
786
1062
|
});
|
|
787
1063
|
}
|
|
788
1064
|
|
|
789
1065
|
/**
|
|
1066
|
+
* Batch resolve multiple reviews
|
|
790
1067
|
* @param data The data for the request.
|
|
791
1068
|
* @param data.region Region code for tenant context
|
|
792
|
-
* @
|
|
1069
|
+
* @param data.requestBody Batch resolution request containing review IDs and action
|
|
1070
|
+
* @returns BatchResolveResultDto
|
|
793
1071
|
* @throws ApiError
|
|
794
1072
|
*/
|
|
795
|
-
public static
|
|
796
|
-
data:
|
|
797
|
-
): CancelablePromise<
|
|
1073
|
+
public static reviewControllerBatchResolve(
|
|
1074
|
+
data: ReviewControllerBatchResolveData
|
|
1075
|
+
): CancelablePromise<ReviewControllerBatchResolveResponse> {
|
|
798
1076
|
return __request(OpenAPI, {
|
|
799
1077
|
method: 'POST',
|
|
800
1078
|
url: '/api/v1/{region}/bean/reviews/batch-resolve',
|
|
801
1079
|
path: {
|
|
802
1080
|
region: data.region
|
|
803
|
-
}
|
|
1081
|
+
},
|
|
1082
|
+
body: data.requestBody,
|
|
1083
|
+
mediaType: 'application/json'
|
|
804
1084
|
});
|
|
805
1085
|
}
|
|
806
1086
|
}
|
|
807
1087
|
|
|
808
|
-
export class
|
|
1088
|
+
export class BeanTransactionRulesService {
|
|
809
1089
|
/**
|
|
810
|
-
*
|
|
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.
|
|
1092
|
+
* @param data The data for the request.
|
|
1093
|
+
* @param data.region Region code for tenant context
|
|
1094
|
+
* @param data.requestBody
|
|
1095
|
+
* @returns TransactionRuleResponseDto Rule updated successfully (upsert mode)
|
|
811
1096
|
* @throws ApiError
|
|
812
1097
|
*/
|
|
813
|
-
public static
|
|
1098
|
+
public static transactionRuleControllerCreate(
|
|
1099
|
+
data: TransactionRuleControllerCreateData
|
|
1100
|
+
): CancelablePromise<TransactionRuleControllerCreateResponse> {
|
|
814
1101
|
return __request(OpenAPI, {
|
|
815
1102
|
method: 'POST',
|
|
816
|
-
url: '/api/v1/bean/
|
|
1103
|
+
url: '/api/v1/{region}/bean/transaction-rules',
|
|
1104
|
+
path: {
|
|
1105
|
+
region: data.region
|
|
1106
|
+
},
|
|
1107
|
+
body: data.requestBody,
|
|
1108
|
+
mediaType: 'application/json',
|
|
1109
|
+
errors: {
|
|
1110
|
+
400: 'Validation failed',
|
|
1111
|
+
401: 'Unauthorized',
|
|
1112
|
+
409: 'Resource conflict - another process is updating this rule'
|
|
1113
|
+
}
|
|
817
1114
|
});
|
|
818
1115
|
}
|
|
819
1116
|
|
|
820
1117
|
/**
|
|
821
|
-
*
|
|
822
|
-
* Returns all payee mappings for the authenticated user with optional filtering
|
|
1118
|
+
* Get all transaction rules for user
|
|
823
1119
|
* @param data The data for the request.
|
|
824
|
-
* @param data.
|
|
825
|
-
* @param data.
|
|
826
|
-
* @param data.
|
|
827
|
-
* @param data.
|
|
828
|
-
* @param data.
|
|
829
|
-
* @
|
|
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
|
|
830
1127
|
* @throws ApiError
|
|
831
1128
|
*/
|
|
832
|
-
public static
|
|
833
|
-
data:
|
|
834
|
-
): CancelablePromise<
|
|
1129
|
+
public static transactionRuleControllerList(
|
|
1130
|
+
data: TransactionRuleControllerListData
|
|
1131
|
+
): CancelablePromise<TransactionRuleControllerListResponse> {
|
|
835
1132
|
return __request(OpenAPI, {
|
|
836
1133
|
method: 'GET',
|
|
837
|
-
url: '/api/v1/bean/
|
|
1134
|
+
url: '/api/v1/{region}/bean/transaction-rules',
|
|
1135
|
+
path: {
|
|
1136
|
+
region: data.region
|
|
1137
|
+
},
|
|
838
1138
|
query: {
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
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'
|
|
844
1147
|
}
|
|
845
1148
|
});
|
|
846
1149
|
}
|
|
847
1150
|
|
|
848
1151
|
/**
|
|
849
|
-
*
|
|
850
|
-
* Returns active payee names matching the query, sorted by recent usage. Used for transaction input autocomplete.
|
|
1152
|
+
* Validate transaction rule configuration
|
|
851
1153
|
* @param data The data for the request.
|
|
852
|
-
* @param data.
|
|
853
|
-
* @param data.
|
|
854
|
-
* @returns
|
|
1154
|
+
* @param data.region Region code for tenant context
|
|
1155
|
+
* @param data.requestBody
|
|
1156
|
+
* @returns ValidateRuleResponseDto Validation result
|
|
855
1157
|
* @throws ApiError
|
|
856
1158
|
*/
|
|
857
|
-
public static
|
|
858
|
-
data:
|
|
859
|
-
): CancelablePromise<
|
|
1159
|
+
public static transactionRuleControllerValidate(
|
|
1160
|
+
data: TransactionRuleControllerValidateData
|
|
1161
|
+
): CancelablePromise<TransactionRuleControllerValidateResponse> {
|
|
860
1162
|
return __request(OpenAPI, {
|
|
861
|
-
method: '
|
|
862
|
-
url: '/api/v1/bean/
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
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'
|
|
866
1173
|
}
|
|
867
1174
|
});
|
|
868
1175
|
}
|
|
869
1176
|
|
|
870
1177
|
/**
|
|
871
|
-
*
|
|
872
|
-
* Returns the most frequently used payees, sorted by use count. Used for statistics and analytics.
|
|
1178
|
+
* Bulk create transaction rules
|
|
873
1179
|
* @param data The data for the request.
|
|
874
|
-
* @param data.
|
|
875
|
-
* @
|
|
1180
|
+
* @param data.region Region code for tenant context
|
|
1181
|
+
* @param data.requestBody
|
|
1182
|
+
* @returns BulkCreateRulesResponseDto Bulk create completed
|
|
876
1183
|
* @throws ApiError
|
|
877
1184
|
*/
|
|
878
|
-
public static
|
|
879
|
-
data:
|
|
880
|
-
): CancelablePromise<
|
|
1185
|
+
public static transactionRuleControllerBulkCreate(
|
|
1186
|
+
data: TransactionRuleControllerBulkCreateData
|
|
1187
|
+
): CancelablePromise<TransactionRuleControllerBulkCreateResponse> {
|
|
881
1188
|
return __request(OpenAPI, {
|
|
882
|
-
method: '
|
|
883
|
-
url: '/api/v1/bean/
|
|
884
|
-
|
|
885
|
-
|
|
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'
|
|
886
1199
|
}
|
|
887
1200
|
});
|
|
888
1201
|
}
|
|
889
1202
|
|
|
890
1203
|
/**
|
|
891
|
-
*
|
|
892
|
-
* Returns a specific payee mapping by its UUID
|
|
1204
|
+
* Export transaction rules
|
|
893
1205
|
* @param data The data for the request.
|
|
894
|
-
* @param data.
|
|
895
|
-
* @
|
|
1206
|
+
* @param data.format Export format (currently only JSON supported)
|
|
1207
|
+
* @param data.region Region code for tenant context
|
|
1208
|
+
* @returns ExportRulesResponseDto Exported rules
|
|
896
1209
|
* @throws ApiError
|
|
897
1210
|
*/
|
|
898
|
-
public static
|
|
899
|
-
data:
|
|
900
|
-
): CancelablePromise<
|
|
1211
|
+
public static transactionRuleControllerExport(
|
|
1212
|
+
data: TransactionRuleControllerExportData
|
|
1213
|
+
): CancelablePromise<TransactionRuleControllerExportResponse> {
|
|
901
1214
|
return __request(OpenAPI, {
|
|
902
1215
|
method: 'GET',
|
|
903
|
-
url: '/api/v1/bean/
|
|
1216
|
+
url: '/api/v1/{region}/bean/transaction-rules/export/{format}',
|
|
904
1217
|
path: {
|
|
905
|
-
|
|
1218
|
+
format: data.format,
|
|
1219
|
+
region: data.region
|
|
906
1220
|
},
|
|
907
1221
|
errors: {
|
|
908
|
-
|
|
909
|
-
|
|
1222
|
+
400: 'Unsupported format',
|
|
1223
|
+
401: 'Unauthorized'
|
|
910
1224
|
}
|
|
911
1225
|
});
|
|
912
1226
|
}
|
|
913
1227
|
|
|
914
1228
|
/**
|
|
915
|
-
*
|
|
916
|
-
* @throws ApiError
|
|
917
|
-
*/
|
|
918
|
-
public static payeeController1(): CancelablePromise<PayeeController1Response> {
|
|
919
|
-
return __request(OpenAPI, {
|
|
920
|
-
method: 'PUT',
|
|
921
|
-
url: '/api/v1/bean/payees/{id}'
|
|
922
|
-
});
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
/**
|
|
926
|
-
* @returns void
|
|
927
|
-
* @throws ApiError
|
|
928
|
-
*/
|
|
929
|
-
public static payeeController2(): CancelablePromise<PayeeController2Response> {
|
|
930
|
-
return __request(OpenAPI, {
|
|
931
|
-
method: 'DELETE',
|
|
932
|
-
url: '/api/v1/bean/payees/{id}'
|
|
933
|
-
});
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
export class AdminPayeeProfilesService {
|
|
938
|
-
/**
|
|
939
|
-
* @returns unknown
|
|
940
|
-
* @throws ApiError
|
|
941
|
-
*/
|
|
942
|
-
public static payeeProfileAdminController(): CancelablePromise<PayeeProfileAdminControllerResponse> {
|
|
943
|
-
return __request(OpenAPI, {
|
|
944
|
-
method: 'POST',
|
|
945
|
-
url: '/api/v1/admin/payee-profiles'
|
|
946
|
-
});
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
/**
|
|
950
|
-
* List payee profiles (Admin only)
|
|
951
|
-
* Returns all payee profiles with optional filtering by category, country, verification status, etc.
|
|
1229
|
+
* Get transaction rule statistics
|
|
952
1230
|
* @param data The data for the request.
|
|
953
|
-
* @param data.
|
|
954
|
-
* @param data.
|
|
955
|
-
* @
|
|
956
|
-
* @param data.isActive Filter by active status (default: true - show only active)
|
|
957
|
-
* @param data.verified Filter by verification status. true = verified only, false = unverified only
|
|
958
|
-
* @param data.dataSource Filter by data source
|
|
959
|
-
* @returns PayeeProfileListResponseDto Payee profiles retrieved successfully
|
|
1231
|
+
* @param data.period Statistics time period
|
|
1232
|
+
* @param data.region Region code for tenant context
|
|
1233
|
+
* @returns RuleStatisticsResponseDto Rule statistics
|
|
960
1234
|
* @throws ApiError
|
|
961
1235
|
*/
|
|
962
|
-
public static
|
|
963
|
-
data:
|
|
964
|
-
): CancelablePromise<
|
|
1236
|
+
public static transactionRuleControllerGetStatistics(
|
|
1237
|
+
data: TransactionRuleControllerGetStatisticsData
|
|
1238
|
+
): CancelablePromise<TransactionRuleControllerGetStatisticsResponse> {
|
|
965
1239
|
return __request(OpenAPI, {
|
|
966
1240
|
method: 'GET',
|
|
967
|
-
url: '/api/v1/
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
country: data.country,
|
|
972
|
-
isActive: data.isActive,
|
|
973
|
-
verified: data.verified,
|
|
974
|
-
dataSource: data.dataSource
|
|
1241
|
+
url: '/api/v1/{region}/bean/transaction-rules/statistics/{period}',
|
|
1242
|
+
path: {
|
|
1243
|
+
period: data.period,
|
|
1244
|
+
region: data.region
|
|
975
1245
|
},
|
|
976
1246
|
errors: {
|
|
977
|
-
|
|
1247
|
+
401: 'Unauthorized'
|
|
978
1248
|
}
|
|
979
1249
|
});
|
|
980
1250
|
}
|
|
981
1251
|
|
|
982
1252
|
/**
|
|
983
|
-
* Get
|
|
984
|
-
* Returns a single payee profile by its ID.
|
|
1253
|
+
* Get transaction rule detail
|
|
985
1254
|
* @param data The data for the request.
|
|
986
|
-
* @param data.
|
|
987
|
-
* @
|
|
1255
|
+
* @param data.ruleId Rule ID
|
|
1256
|
+
* @param data.region Region code for tenant context
|
|
1257
|
+
* @returns TransactionRuleResponseDto Rule details
|
|
988
1258
|
* @throws ApiError
|
|
989
1259
|
*/
|
|
990
|
-
public static
|
|
991
|
-
data:
|
|
992
|
-
): CancelablePromise<
|
|
1260
|
+
public static transactionRuleControllerGetDetail(
|
|
1261
|
+
data: TransactionRuleControllerGetDetailData
|
|
1262
|
+
): CancelablePromise<TransactionRuleControllerGetDetailResponse> {
|
|
993
1263
|
return __request(OpenAPI, {
|
|
994
1264
|
method: 'GET',
|
|
995
|
-
url: '/api/v1/
|
|
1265
|
+
url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
|
|
996
1266
|
path: {
|
|
997
|
-
|
|
1267
|
+
ruleId: data.ruleId,
|
|
1268
|
+
region: data.region
|
|
998
1269
|
},
|
|
999
1270
|
errors: {
|
|
1000
|
-
|
|
1001
|
-
|
|
1271
|
+
401: 'Unauthorized',
|
|
1272
|
+
403: 'Forbidden - not owner of rule',
|
|
1273
|
+
404: 'Rule not found'
|
|
1002
1274
|
}
|
|
1003
1275
|
});
|
|
1004
1276
|
}
|
|
1005
1277
|
|
|
1006
1278
|
/**
|
|
1007
|
-
*
|
|
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
|
|
1008
1285
|
* @throws ApiError
|
|
1009
1286
|
*/
|
|
1010
|
-
public static
|
|
1287
|
+
public static transactionRuleControllerUpdate(
|
|
1288
|
+
data: TransactionRuleControllerUpdateData
|
|
1289
|
+
): CancelablePromise<TransactionRuleControllerUpdateResponse> {
|
|
1011
1290
|
return __request(OpenAPI, {
|
|
1012
1291
|
method: 'PUT',
|
|
1013
|
-
url: '/api/v1/
|
|
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
|
+
}
|
|
1014
1362
|
});
|
|
1015
1363
|
}
|
|
1364
|
+
}
|
|
1016
1365
|
|
|
1366
|
+
export class UsersService {
|
|
1017
1367
|
/**
|
|
1018
|
-
*
|
|
1368
|
+
* Delete own user account
|
|
1369
|
+
* @param data The data for the request.
|
|
1370
|
+
* @param data.requestBody
|
|
1371
|
+
* @returns void User deleted successfully
|
|
1019
1372
|
* @throws ApiError
|
|
1020
1373
|
*/
|
|
1021
|
-
public static
|
|
1374
|
+
public static userControllerDeleteOwnUser(
|
|
1375
|
+
data: UserControllerDeleteOwnUserData
|
|
1376
|
+
): CancelablePromise<UserControllerDeleteOwnUserResponse> {
|
|
1022
1377
|
return __request(OpenAPI, {
|
|
1023
1378
|
method: 'DELETE',
|
|
1024
|
-
url: '/api/v1/
|
|
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
|
+
}
|
|
1025
1404
|
});
|
|
1026
1405
|
}
|
|
1027
1406
|
|
|
1028
1407
|
/**
|
|
1029
|
-
*
|
|
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
|
|
1030
1413
|
* @throws ApiError
|
|
1031
1414
|
*/
|
|
1032
|
-
public static
|
|
1415
|
+
public static userControllerSignupUser(
|
|
1416
|
+
data: UserControllerSignupUserData
|
|
1417
|
+
): CancelablePromise<UserControllerSignupUserResponse> {
|
|
1033
1418
|
return __request(OpenAPI, {
|
|
1034
1419
|
method: 'POST',
|
|
1035
|
-
url: '/api/v1/
|
|
1420
|
+
url: '/api/v1/users',
|
|
1421
|
+
body: data.requestBody,
|
|
1422
|
+
mediaType: 'application/json',
|
|
1423
|
+
errors: {
|
|
1424
|
+
400: 'Invalid Turnstile token (when Turnstile is enabled)',
|
|
1425
|
+
403: 'User signup is disabled'
|
|
1426
|
+
}
|
|
1036
1427
|
});
|
|
1037
1428
|
}
|
|
1038
1429
|
|
|
1039
1430
|
/**
|
|
1040
|
-
*
|
|
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
|
|
1041
1435
|
* @throws ApiError
|
|
1042
1436
|
*/
|
|
1043
|
-
public static
|
|
1437
|
+
public static userControllerDeleteUser(
|
|
1438
|
+
data: UserControllerDeleteUserData
|
|
1439
|
+
): CancelablePromise<UserControllerDeleteUserResponse> {
|
|
1044
1440
|
return __request(OpenAPI, {
|
|
1045
1441
|
method: 'DELETE',
|
|
1046
|
-
url: '/api/v1/
|
|
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
|
|
1681
|
+
*/
|
|
1682
|
+
public static payeeControllerAutocomplete(
|
|
1683
|
+
data: PayeeControllerAutocompleteData
|
|
1684
|
+
): CancelablePromise<PayeeControllerAutocompleteResponse> {
|
|
1685
|
+
return __request(OpenAPI, {
|
|
1686
|
+
method: 'GET',
|
|
1687
|
+
url: '/api/v1/bean/payees/autocomplete',
|
|
1688
|
+
query: {
|
|
1689
|
+
q: data.q,
|
|
1690
|
+
limit: data.limit
|
|
1691
|
+
}
|
|
1692
|
+
});
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
/**
|
|
1696
|
+
* Get top payees by usage
|
|
1697
|
+
* Returns the most frequently used payees, sorted by use count. Used for statistics and analytics.
|
|
1698
|
+
* @param data The data for the request.
|
|
1699
|
+
* @param data.limit Maximum number of results
|
|
1700
|
+
* @returns PayeeStatsResponseDto Top payees retrieved successfully
|
|
1701
|
+
* @throws ApiError
|
|
1702
|
+
*/
|
|
1703
|
+
public static payeeControllerGetTopPayees(
|
|
1704
|
+
data: PayeeControllerGetTopPayeesData = {}
|
|
1705
|
+
): CancelablePromise<PayeeControllerGetTopPayeesResponse> {
|
|
1706
|
+
return __request(OpenAPI, {
|
|
1707
|
+
method: 'GET',
|
|
1708
|
+
url: '/api/v1/bean/payees/top',
|
|
1709
|
+
query: {
|
|
1710
|
+
limit: data.limit
|
|
1711
|
+
}
|
|
1712
|
+
});
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1715
|
+
/**
|
|
1716
|
+
* Get payee by ID
|
|
1717
|
+
* Returns a specific payee mapping by its UUID
|
|
1718
|
+
* @param data The data for the request.
|
|
1719
|
+
* @param data.id Payee UUID
|
|
1720
|
+
* @returns PayeeResponseDto Payee retrieved successfully
|
|
1721
|
+
* @throws ApiError
|
|
1722
|
+
*/
|
|
1723
|
+
public static payeeControllerFindOne(
|
|
1724
|
+
data: PayeeControllerFindOneData
|
|
1725
|
+
): CancelablePromise<PayeeControllerFindOneResponse> {
|
|
1726
|
+
return __request(OpenAPI, {
|
|
1727
|
+
method: 'GET',
|
|
1728
|
+
url: '/api/v1/bean/payees/{id}',
|
|
1729
|
+
path: {
|
|
1730
|
+
id: data.id
|
|
1731
|
+
},
|
|
1732
|
+
errors: {
|
|
1733
|
+
403: 'Payee belongs to another user',
|
|
1734
|
+
404: 'Payee not found'
|
|
1735
|
+
}
|
|
1736
|
+
});
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
/**
|
|
1740
|
+
* Update payee
|
|
1741
|
+
* Updates a payee mapping. The payee name cannot be changed after creation.
|
|
1742
|
+
* @param data The data for the request.
|
|
1743
|
+
* @param data.id Payee UUID
|
|
1744
|
+
* @param data.requestBody
|
|
1745
|
+
* @returns PayeeResponseDto Payee updated successfully
|
|
1746
|
+
* @throws ApiError
|
|
1747
|
+
*/
|
|
1748
|
+
public static payeeControllerUpdate(
|
|
1749
|
+
data: PayeeControllerUpdateData
|
|
1750
|
+
): CancelablePromise<PayeeControllerUpdateResponse> {
|
|
1751
|
+
return __request(OpenAPI, {
|
|
1752
|
+
method: 'PUT',
|
|
1753
|
+
url: '/api/v1/bean/payees/{id}',
|
|
1754
|
+
path: {
|
|
1755
|
+
id: data.id
|
|
1756
|
+
},
|
|
1757
|
+
body: data.requestBody,
|
|
1758
|
+
mediaType: 'application/json',
|
|
1759
|
+
errors: {
|
|
1760
|
+
400: 'Invalid input data',
|
|
1761
|
+
404: 'Payee not found'
|
|
1762
|
+
}
|
|
1763
|
+
});
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
/**
|
|
1767
|
+
* Delete payee
|
|
1768
|
+
* Soft deletes a payee by marking it as inactive. Inactive payees will not appear in autocomplete suggestions.
|
|
1769
|
+
* @param data The data for the request.
|
|
1770
|
+
* @param data.id Payee UUID
|
|
1771
|
+
* @returns void Payee deleted successfully
|
|
1772
|
+
* @throws ApiError
|
|
1773
|
+
*/
|
|
1774
|
+
public static payeeControllerDelete(
|
|
1775
|
+
data: PayeeControllerDeleteData
|
|
1776
|
+
): CancelablePromise<PayeeControllerDeleteResponse> {
|
|
1777
|
+
return __request(OpenAPI, {
|
|
1778
|
+
method: 'DELETE',
|
|
1779
|
+
url: '/api/v1/bean/payees/{id}',
|
|
1780
|
+
path: {
|
|
1781
|
+
id: data.id
|
|
1782
|
+
},
|
|
1783
|
+
errors: {
|
|
1784
|
+
404: 'Payee not found'
|
|
1785
|
+
}
|
|
1786
|
+
});
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
export class AdminPayeeProfilesService {
|
|
1791
|
+
/**
|
|
1792
|
+
* Create payee profile (Admin only)
|
|
1793
|
+
* Creates a new global payee profile. The canonical name must be unique (case-insensitive).
|
|
1794
|
+
* @param data The data for the request.
|
|
1795
|
+
* @param data.requestBody
|
|
1796
|
+
* @returns PayeeProfileResponseDto Payee profile created successfully
|
|
1797
|
+
* @throws ApiError
|
|
1798
|
+
*/
|
|
1799
|
+
public static payeeProfileAdminControllerCreate(
|
|
1800
|
+
data: PayeeProfileAdminControllerCreateData
|
|
1801
|
+
): CancelablePromise<PayeeProfileAdminControllerCreateResponse> {
|
|
1802
|
+
return __request(OpenAPI, {
|
|
1803
|
+
method: 'POST',
|
|
1804
|
+
url: '/api/v1/admin/payee-profiles',
|
|
1805
|
+
body: data.requestBody,
|
|
1806
|
+
mediaType: 'application/json',
|
|
1807
|
+
errors: {
|
|
1808
|
+
400: 'Validation failed',
|
|
1809
|
+
403: 'Admin access required',
|
|
1810
|
+
409: 'Payee profile already exists'
|
|
1811
|
+
}
|
|
1812
|
+
});
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* List payee profiles (Admin only)
|
|
1817
|
+
* Returns all payee profiles with optional filtering by category, country, verification status, etc.
|
|
1818
|
+
* @param data The data for the request.
|
|
1819
|
+
* @param data.search Search term for canonical name and aliases (case-insensitive)
|
|
1820
|
+
* @param data.category Filter by category
|
|
1821
|
+
* @param data.country Filter by country (ISO 3166-1 alpha-2)
|
|
1822
|
+
* @param data.isActive Filter by active status (default: true - show only active)
|
|
1823
|
+
* @param data.verified Filter by verification status. true = verified only, false = unverified only
|
|
1824
|
+
* @param data.dataSource Filter by data source
|
|
1825
|
+
* @returns PayeeProfileListResponseDto Payee profiles retrieved successfully
|
|
1826
|
+
* @throws ApiError
|
|
1827
|
+
*/
|
|
1828
|
+
public static payeeProfileAdminControllerFindAll(
|
|
1829
|
+
data: PayeeProfileAdminControllerFindAllData = {}
|
|
1830
|
+
): CancelablePromise<PayeeProfileAdminControllerFindAllResponse> {
|
|
1831
|
+
return __request(OpenAPI, {
|
|
1832
|
+
method: 'GET',
|
|
1833
|
+
url: '/api/v1/admin/payee-profiles',
|
|
1834
|
+
query: {
|
|
1835
|
+
search: data.search,
|
|
1836
|
+
category: data.category,
|
|
1837
|
+
country: data.country,
|
|
1838
|
+
isActive: data.isActive,
|
|
1839
|
+
verified: data.verified,
|
|
1840
|
+
dataSource: data.dataSource
|
|
1841
|
+
},
|
|
1842
|
+
errors: {
|
|
1843
|
+
403: 'Admin access required'
|
|
1844
|
+
}
|
|
1845
|
+
});
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* Get payee profile by ID (Admin only)
|
|
1850
|
+
* Returns a single payee profile by its ID.
|
|
1851
|
+
* @param data The data for the request.
|
|
1852
|
+
* @param data.id Payee profile ID (UUID)
|
|
1853
|
+
* @returns PayeeProfileResponseDto Payee profile retrieved successfully
|
|
1854
|
+
* @throws ApiError
|
|
1855
|
+
*/
|
|
1856
|
+
public static payeeProfileAdminControllerFindOne(
|
|
1857
|
+
data: PayeeProfileAdminControllerFindOneData
|
|
1858
|
+
): CancelablePromise<PayeeProfileAdminControllerFindOneResponse> {
|
|
1859
|
+
return __request(OpenAPI, {
|
|
1860
|
+
method: 'GET',
|
|
1861
|
+
url: '/api/v1/admin/payee-profiles/{id}',
|
|
1862
|
+
path: {
|
|
1863
|
+
id: data.id
|
|
1864
|
+
},
|
|
1865
|
+
errors: {
|
|
1866
|
+
403: 'Admin access required',
|
|
1867
|
+
404: 'Payee profile not found'
|
|
1868
|
+
}
|
|
1869
|
+
});
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
/**
|
|
1873
|
+
* Update payee profile (Admin only)
|
|
1874
|
+
* Updates an existing payee profile. The canonical name cannot be changed.
|
|
1875
|
+
* @param data The data for the request.
|
|
1876
|
+
* @param data.id Payee profile ID (UUID)
|
|
1877
|
+
* @param data.requestBody
|
|
1878
|
+
* @returns PayeeProfileResponseDto Payee profile updated successfully
|
|
1879
|
+
* @throws ApiError
|
|
1880
|
+
*/
|
|
1881
|
+
public static payeeProfileAdminControllerUpdate(
|
|
1882
|
+
data: PayeeProfileAdminControllerUpdateData
|
|
1883
|
+
): CancelablePromise<PayeeProfileAdminControllerUpdateResponse> {
|
|
1884
|
+
return __request(OpenAPI, {
|
|
1885
|
+
method: 'PUT',
|
|
1886
|
+
url: '/api/v1/admin/payee-profiles/{id}',
|
|
1887
|
+
path: {
|
|
1888
|
+
id: data.id
|
|
1889
|
+
},
|
|
1890
|
+
body: data.requestBody,
|
|
1891
|
+
mediaType: 'application/json',
|
|
1892
|
+
errors: {
|
|
1893
|
+
403: 'Admin access required',
|
|
1894
|
+
404: 'Payee profile not found'
|
|
1895
|
+
}
|
|
1896
|
+
});
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
/**
|
|
1900
|
+
* Soft delete payee profile (Admin only)
|
|
1901
|
+
* Marks a payee profile as inactive (soft delete). The profile cannot be deleted if it is referenced by user payees.
|
|
1902
|
+
* @param data The data for the request.
|
|
1903
|
+
* @param data.id Payee profile ID (UUID)
|
|
1904
|
+
* @returns void Payee profile deleted successfully
|
|
1905
|
+
* @throws ApiError
|
|
1906
|
+
*/
|
|
1907
|
+
public static payeeProfileAdminControllerDelete(
|
|
1908
|
+
data: PayeeProfileAdminControllerDeleteData
|
|
1909
|
+
): CancelablePromise<PayeeProfileAdminControllerDeleteResponse> {
|
|
1910
|
+
return __request(OpenAPI, {
|
|
1911
|
+
method: 'DELETE',
|
|
1912
|
+
url: '/api/v1/admin/payee-profiles/{id}',
|
|
1913
|
+
path: {
|
|
1914
|
+
id: data.id
|
|
1915
|
+
},
|
|
1916
|
+
errors: {
|
|
1917
|
+
403: 'Admin access required',
|
|
1918
|
+
404: 'Payee profile not found',
|
|
1919
|
+
409: 'Payee profile is in use and cannot be deleted'
|
|
1920
|
+
}
|
|
1921
|
+
});
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
/**
|
|
1925
|
+
* Verify payee profile (Admin only)
|
|
1926
|
+
* Marks a payee profile as verified by setting verifiedAt to current timestamp.
|
|
1927
|
+
* @param data The data for the request.
|
|
1928
|
+
* @param data.id Payee profile ID (UUID)
|
|
1929
|
+
* @returns PayeeProfileResponseDto Payee profile verified successfully
|
|
1930
|
+
* @throws ApiError
|
|
1931
|
+
*/
|
|
1932
|
+
public static payeeProfileAdminControllerVerify(
|
|
1933
|
+
data: PayeeProfileAdminControllerVerifyData
|
|
1934
|
+
): CancelablePromise<PayeeProfileAdminControllerVerifyResponse> {
|
|
1935
|
+
return __request(OpenAPI, {
|
|
1936
|
+
method: 'POST',
|
|
1937
|
+
url: '/api/v1/admin/payee-profiles/{id}/verify',
|
|
1938
|
+
path: {
|
|
1939
|
+
id: data.id
|
|
1940
|
+
},
|
|
1941
|
+
errors: {
|
|
1942
|
+
403: 'Admin access required',
|
|
1943
|
+
404: 'Payee profile not found'
|
|
1944
|
+
}
|
|
1945
|
+
});
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
/**
|
|
1949
|
+
* Unverify payee profile (Admin only)
|
|
1950
|
+
* Removes verification status by setting verifiedAt to null.
|
|
1951
|
+
* @param data The data for the request.
|
|
1952
|
+
* @param data.id Payee profile ID (UUID)
|
|
1953
|
+
* @returns void Payee profile unverified successfully
|
|
1954
|
+
* @throws ApiError
|
|
1955
|
+
*/
|
|
1956
|
+
public static payeeProfileAdminControllerUnverify(
|
|
1957
|
+
data: PayeeProfileAdminControllerUnverifyData
|
|
1958
|
+
): CancelablePromise<PayeeProfileAdminControllerUnverifyResponse> {
|
|
1959
|
+
return __request(OpenAPI, {
|
|
1960
|
+
method: 'DELETE',
|
|
1961
|
+
url: '/api/v1/admin/payee-profiles/{id}/verify',
|
|
1962
|
+
path: {
|
|
1963
|
+
id: data.id
|
|
1964
|
+
},
|
|
1965
|
+
errors: {
|
|
1966
|
+
403: 'Admin access required',
|
|
1967
|
+
404: 'Payee profile not found'
|
|
1968
|
+
}
|
|
1969
|
+
});
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
export class PayeeProfilesService {
|
|
1974
|
+
/**
|
|
1975
|
+
* List active payee profiles (directory dump)
|
|
1976
|
+
* Returns the full active PayeeProfile set as a trimmed projection for client-side dictionary caching. Aliases are verbatim as stored; clients normalize on their side.
|
|
1977
|
+
* @returns PayeeProfileDirectoryResponseDto Active payee profiles
|
|
1978
|
+
* @throws ApiError
|
|
1979
|
+
*/
|
|
1980
|
+
public static payeeProfileControllerListActive(): CancelablePromise<PayeeProfileControllerListActiveResponse> {
|
|
1981
|
+
return __request(OpenAPI, {
|
|
1982
|
+
method: 'GET',
|
|
1983
|
+
url: '/api/v1/bean/payee-profiles',
|
|
1984
|
+
errors: {
|
|
1985
|
+
401: 'Missing or invalid token'
|
|
1986
|
+
}
|
|
1987
|
+
});
|
|
1988
|
+
}
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
export class BeanCommoditiesService {
|
|
1992
|
+
/**
|
|
1993
|
+
* Create a new commodity
|
|
1994
|
+
* Creates a new commodity definition for the authenticated user
|
|
1995
|
+
* @param data The data for the request.
|
|
1996
|
+
* @param data.region Region code for tenant context
|
|
1997
|
+
* @param data.requestBody
|
|
1998
|
+
* @returns CommodityResponseDto Commodity created successfully
|
|
1999
|
+
* @throws ApiError
|
|
2000
|
+
*/
|
|
2001
|
+
public static commodityControllerCreate(
|
|
2002
|
+
data: CommodityControllerCreateData
|
|
2003
|
+
): CancelablePromise<CommodityControllerCreateResponse> {
|
|
2004
|
+
return __request(OpenAPI, {
|
|
2005
|
+
method: 'POST',
|
|
2006
|
+
url: '/api/v1/{region}/bean/commodities',
|
|
2007
|
+
path: {
|
|
2008
|
+
region: data.region
|
|
2009
|
+
},
|
|
2010
|
+
body: data.requestBody,
|
|
2011
|
+
mediaType: 'application/json',
|
|
2012
|
+
errors: {
|
|
2013
|
+
400: 'Invalid input data',
|
|
2014
|
+
409: 'Commodity already exists'
|
|
2015
|
+
}
|
|
2016
|
+
});
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
/**
|
|
2020
|
+
* List user commodities
|
|
2021
|
+
* Returns all commodity definitions for the authenticated user with optional filtering
|
|
2022
|
+
* @param data The data for the request.
|
|
2023
|
+
* @param data.region Region code for tenant context
|
|
2024
|
+
* @param data.search Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
|
|
2025
|
+
* @param data.symbol Filter by exact symbol match
|
|
2026
|
+
* @returns CommodityListResponseDto Commodities retrieved successfully
|
|
2027
|
+
* @throws ApiError
|
|
2028
|
+
*/
|
|
2029
|
+
public static commodityControllerFindAll(
|
|
2030
|
+
data: CommodityControllerFindAllData
|
|
2031
|
+
): CancelablePromise<CommodityControllerFindAllResponse> {
|
|
2032
|
+
return __request(OpenAPI, {
|
|
2033
|
+
method: 'GET',
|
|
2034
|
+
url: '/api/v1/{region}/bean/commodities',
|
|
2035
|
+
path: {
|
|
2036
|
+
region: data.region
|
|
2037
|
+
},
|
|
2038
|
+
query: {
|
|
2039
|
+
search: data.search,
|
|
2040
|
+
symbol: data.symbol
|
|
2041
|
+
}
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2045
|
+
/**
|
|
2046
|
+
* Get commodity by symbol
|
|
2047
|
+
* Returns a specific commodity definition by its symbol
|
|
2048
|
+
* @param data The data for the request.
|
|
2049
|
+
* @param data.symbol Commodity symbol
|
|
2050
|
+
* @param data.region Region code for tenant context
|
|
2051
|
+
* @returns CommodityResponseDto Commodity retrieved successfully
|
|
2052
|
+
* @throws ApiError
|
|
2053
|
+
*/
|
|
2054
|
+
public static commodityControllerFindOne(
|
|
2055
|
+
data: CommodityControllerFindOneData
|
|
2056
|
+
): CancelablePromise<CommodityControllerFindOneResponse> {
|
|
2057
|
+
return __request(OpenAPI, {
|
|
2058
|
+
method: 'GET',
|
|
2059
|
+
url: '/api/v1/{region}/bean/commodities/{symbol}',
|
|
2060
|
+
path: {
|
|
2061
|
+
symbol: data.symbol,
|
|
2062
|
+
region: data.region
|
|
2063
|
+
},
|
|
2064
|
+
errors: {
|
|
2065
|
+
404: 'Commodity not found'
|
|
2066
|
+
}
|
|
2067
|
+
});
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
/**
|
|
2071
|
+
* Update commodity
|
|
2072
|
+
* Updates an existing commodity definition. Symbol cannot be changed.
|
|
2073
|
+
* @param data The data for the request.
|
|
2074
|
+
* @param data.symbol Commodity symbol
|
|
2075
|
+
* @param data.region Region code for tenant context
|
|
2076
|
+
* @param data.requestBody
|
|
2077
|
+
* @returns CommodityResponseDto Commodity updated successfully
|
|
2078
|
+
* @throws ApiError
|
|
2079
|
+
*/
|
|
2080
|
+
public static commodityControllerUpdate(
|
|
2081
|
+
data: CommodityControllerUpdateData
|
|
2082
|
+
): CancelablePromise<CommodityControllerUpdateResponse> {
|
|
2083
|
+
return __request(OpenAPI, {
|
|
2084
|
+
method: 'PUT',
|
|
2085
|
+
url: '/api/v1/{region}/bean/commodities/{symbol}',
|
|
2086
|
+
path: {
|
|
2087
|
+
symbol: data.symbol,
|
|
2088
|
+
region: data.region
|
|
2089
|
+
},
|
|
2090
|
+
body: data.requestBody,
|
|
2091
|
+
mediaType: 'application/json',
|
|
2092
|
+
errors: {
|
|
2093
|
+
400: 'Invalid input data',
|
|
2094
|
+
404: 'Commodity not found'
|
|
2095
|
+
}
|
|
2096
|
+
});
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
/**
|
|
2100
|
+
* Delete commodity
|
|
2101
|
+
* Deletes a commodity definition
|
|
2102
|
+
* @param data The data for the request.
|
|
2103
|
+
* @param data.symbol Commodity symbol
|
|
2104
|
+
* @param data.region Region code for tenant context
|
|
2105
|
+
* @returns void Commodity deleted successfully
|
|
2106
|
+
* @throws ApiError
|
|
2107
|
+
*/
|
|
2108
|
+
public static commodityControllerDelete(
|
|
2109
|
+
data: CommodityControllerDeleteData
|
|
2110
|
+
): CancelablePromise<CommodityControllerDeleteResponse> {
|
|
2111
|
+
return __request(OpenAPI, {
|
|
2112
|
+
method: 'DELETE',
|
|
2113
|
+
url: '/api/v1/{region}/bean/commodities/{symbol}',
|
|
2114
|
+
path: {
|
|
2115
|
+
symbol: data.symbol,
|
|
2116
|
+
region: data.region
|
|
2117
|
+
},
|
|
2118
|
+
errors: {
|
|
2119
|
+
404: 'Commodity not found'
|
|
2120
|
+
}
|
|
2121
|
+
});
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
/**
|
|
2125
|
+
* Ensure commodity exists
|
|
2126
|
+
* Gets existing commodity or creates it with automatic initialization from OpenBB
|
|
2127
|
+
* @param data The data for the request.
|
|
2128
|
+
* @param data.symbol Commodity symbol
|
|
2129
|
+
* @param data.region Region code for tenant context
|
|
2130
|
+
* @returns CommodityResponseDto Commodity retrieved or created
|
|
2131
|
+
* @throws ApiError
|
|
2132
|
+
*/
|
|
2133
|
+
public static commodityControllerGetOrCreate(
|
|
2134
|
+
data: CommodityControllerGetOrCreateData
|
|
2135
|
+
): CancelablePromise<CommodityControllerGetOrCreateResponse> {
|
|
2136
|
+
return __request(OpenAPI, {
|
|
2137
|
+
method: 'POST',
|
|
2138
|
+
url: '/api/v1/{region}/bean/commodities/{symbol}/ensure',
|
|
2139
|
+
path: {
|
|
2140
|
+
symbol: data.symbol,
|
|
2141
|
+
region: data.region
|
|
2142
|
+
}
|
|
2143
|
+
});
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
/**
|
|
2147
|
+
* Bulk create commodities
|
|
2148
|
+
* Creates multiple commodities from a list of symbols, useful for initialization
|
|
2149
|
+
* @param data The data for the request.
|
|
2150
|
+
* @param data.region Region code for tenant context
|
|
2151
|
+
* @returns CommodityResponseDto Commodities created successfully
|
|
2152
|
+
* @throws ApiError
|
|
2153
|
+
*/
|
|
2154
|
+
public static commodityControllerBulkCreate(
|
|
2155
|
+
data: CommodityControllerBulkCreateData
|
|
2156
|
+
): CancelablePromise<CommodityControllerBulkCreateResponse> {
|
|
2157
|
+
return __request(OpenAPI, {
|
|
2158
|
+
method: 'POST',
|
|
2159
|
+
url: '/api/v1/{region}/bean/commodities/bulk',
|
|
2160
|
+
path: {
|
|
2161
|
+
region: data.region
|
|
2162
|
+
}
|
|
2163
|
+
});
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
export class ReportingService {
|
|
2168
|
+
/**
|
|
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
|
+
*
|
|
2182
|
+
* @param data The data for the request.
|
|
2183
|
+
* @param data.region Region code for tenant context
|
|
2184
|
+
* @param data.period Time period
|
|
2185
|
+
* @param data.granularity Data granularity
|
|
2186
|
+
* @returns PortfolioTrendsResponseDto Trends retrieved successfully
|
|
2187
|
+
* @throws ApiError
|
|
2188
|
+
*/
|
|
2189
|
+
public static reportingControllerGetPortfolioTrends(
|
|
2190
|
+
data: ReportingControllerGetPortfolioTrendsData
|
|
2191
|
+
): CancelablePromise<ReportingControllerGetPortfolioTrendsResponse> {
|
|
2192
|
+
return __request(OpenAPI, {
|
|
2193
|
+
method: 'GET',
|
|
2194
|
+
url: '/api/v1/{region}/reporting/portfolio/trends',
|
|
2195
|
+
path: {
|
|
2196
|
+
region: data.region
|
|
2197
|
+
},
|
|
2198
|
+
query: {
|
|
2199
|
+
period: data.period,
|
|
2200
|
+
granularity: data.granularity
|
|
2201
|
+
},
|
|
2202
|
+
errors: {
|
|
2203
|
+
401: 'User not authenticated'
|
|
2204
|
+
}
|
|
2205
|
+
});
|
|
2206
|
+
}
|
|
2207
|
+
|
|
2208
|
+
/**
|
|
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
|
+
*
|
|
2218
|
+
* @param data The data for the request.
|
|
2219
|
+
* @param data.region Region code for tenant context
|
|
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
|
|
2223
|
+
* @throws ApiError
|
|
2224
|
+
*/
|
|
2225
|
+
public static reportingControllerGetCashFlowTrends(
|
|
2226
|
+
data: ReportingControllerGetCashFlowTrendsData
|
|
2227
|
+
): CancelablePromise<ReportingControllerGetCashFlowTrendsResponse> {
|
|
2228
|
+
return __request(OpenAPI, {
|
|
2229
|
+
method: 'GET',
|
|
2230
|
+
url: '/api/v1/{region}/reporting/cash-flow/trends',
|
|
2231
|
+
path: {
|
|
2232
|
+
region: data.region
|
|
2233
|
+
},
|
|
2234
|
+
query: {
|
|
2235
|
+
period: data.period,
|
|
2236
|
+
granularity: data.granularity
|
|
2237
|
+
},
|
|
2238
|
+
errors: {
|
|
2239
|
+
401: 'User not authenticated'
|
|
2240
|
+
}
|
|
2241
|
+
});
|
|
2242
|
+
}
|
|
2243
|
+
|
|
2244
|
+
/**
|
|
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
|
+
*
|
|
2259
|
+
* @param data The data for the request.
|
|
2260
|
+
* @param data.region Region code for tenant context
|
|
2261
|
+
* @param data.requestBody Optional date (defaults to today)
|
|
2262
|
+
* @returns GenerateSnapshotResponse Snapshot generated successfully
|
|
2263
|
+
* @throws ApiError
|
|
2264
|
+
*/
|
|
2265
|
+
public static reportingControllerGenerateSnapshot(
|
|
2266
|
+
data: ReportingControllerGenerateSnapshotData
|
|
2267
|
+
): CancelablePromise<ReportingControllerGenerateSnapshotResponse> {
|
|
2268
|
+
return __request(OpenAPI, {
|
|
2269
|
+
method: 'POST',
|
|
2270
|
+
url: '/api/v1/{region}/reporting/snapshots/generate',
|
|
2271
|
+
path: {
|
|
2272
|
+
region: data.region
|
|
2273
|
+
},
|
|
2274
|
+
body: data.requestBody,
|
|
2275
|
+
mediaType: 'application/json',
|
|
2276
|
+
errors: {
|
|
2277
|
+
400: 'Invalid date format',
|
|
2278
|
+
401: 'User not authenticated'
|
|
2279
|
+
}
|
|
1047
2280
|
});
|
|
1048
2281
|
}
|
|
1049
|
-
}
|
|
1050
2282
|
|
|
1051
|
-
export class BeanCommoditiesService {
|
|
1052
2283
|
/**
|
|
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
|
+
*
|
|
1053
2298
|
* @param data The data for the request.
|
|
1054
2299
|
* @param data.region Region code for tenant context
|
|
1055
|
-
* @
|
|
2300
|
+
* @param data.requestBody
|
|
2301
|
+
* @returns BackfillSnapshotsResponse Backfill completed successfully
|
|
1056
2302
|
* @throws ApiError
|
|
1057
2303
|
*/
|
|
1058
|
-
public static
|
|
1059
|
-
data:
|
|
1060
|
-
): CancelablePromise<
|
|
2304
|
+
public static reportingControllerBackfillSnapshots(
|
|
2305
|
+
data: ReportingControllerBackfillSnapshotsData
|
|
2306
|
+
): CancelablePromise<ReportingControllerBackfillSnapshotsResponse> {
|
|
1061
2307
|
return __request(OpenAPI, {
|
|
1062
2308
|
method: 'POST',
|
|
1063
|
-
url: '/api/v1/{region}/
|
|
2309
|
+
url: '/api/v1/{region}/reporting/snapshots/backfill',
|
|
1064
2310
|
path: {
|
|
1065
2311
|
region: data.region
|
|
2312
|
+
},
|
|
2313
|
+
body: data.requestBody,
|
|
2314
|
+
mediaType: 'application/json',
|
|
2315
|
+
errors: {
|
|
2316
|
+
400: 'Invalid date format or range',
|
|
2317
|
+
401: 'User not authenticated',
|
|
2318
|
+
409: 'Backfill already in progress for this user'
|
|
1066
2319
|
}
|
|
1067
2320
|
});
|
|
1068
2321
|
}
|
|
2322
|
+
}
|
|
1069
2323
|
|
|
2324
|
+
export class BeanPricesService {
|
|
1070
2325
|
/**
|
|
1071
|
-
*
|
|
1072
|
-
*
|
|
2326
|
+
* Create a new price
|
|
2327
|
+
* Creates a new price entry for the authenticated user
|
|
1073
2328
|
* @param data The data for the request.
|
|
1074
2329
|
* @param data.region Region code for tenant context
|
|
1075
|
-
* @param data.
|
|
1076
|
-
* @
|
|
1077
|
-
* @returns CommodityListResponseDto Commodities retrieved successfully
|
|
2330
|
+
* @param data.requestBody
|
|
2331
|
+
* @returns PriceResponseDto Price created successfully
|
|
1078
2332
|
* @throws ApiError
|
|
1079
2333
|
*/
|
|
1080
|
-
public static
|
|
1081
|
-
data:
|
|
1082
|
-
): CancelablePromise<
|
|
2334
|
+
public static priceControllerCreate(
|
|
2335
|
+
data: PriceControllerCreateData
|
|
2336
|
+
): CancelablePromise<PriceControllerCreateResponse> {
|
|
1083
2337
|
return __request(OpenAPI, {
|
|
1084
|
-
method: '
|
|
1085
|
-
url: '/api/v1/{region}/bean/
|
|
2338
|
+
method: 'POST',
|
|
2339
|
+
url: '/api/v1/{region}/bean/prices',
|
|
1086
2340
|
path: {
|
|
1087
2341
|
region: data.region
|
|
1088
2342
|
},
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
2343
|
+
body: data.requestBody,
|
|
2344
|
+
mediaType: 'application/json',
|
|
2345
|
+
errors: {
|
|
2346
|
+
404: 'Currency or quoteCurrency commodity not found',
|
|
2347
|
+
409: 'Price already exists for this currency pair and date'
|
|
1092
2348
|
}
|
|
1093
2349
|
});
|
|
1094
2350
|
}
|
|
1095
2351
|
|
|
1096
2352
|
/**
|
|
1097
|
-
*
|
|
1098
|
-
* Returns
|
|
2353
|
+
* List user prices
|
|
2354
|
+
* Returns all price entries for the authenticated user with optional filtering
|
|
1099
2355
|
* @param data The data for the request.
|
|
1100
|
-
* @param data.symbol Commodity symbol
|
|
1101
2356
|
* @param data.region Region code for tenant context
|
|
1102
|
-
* @
|
|
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
|
|
1103
2365
|
* @throws ApiError
|
|
1104
2366
|
*/
|
|
1105
|
-
public static
|
|
1106
|
-
data:
|
|
1107
|
-
): CancelablePromise<
|
|
2367
|
+
public static priceControllerFindAll(
|
|
2368
|
+
data: PriceControllerFindAllData
|
|
2369
|
+
): CancelablePromise<PriceControllerFindAllResponse> {
|
|
1108
2370
|
return __request(OpenAPI, {
|
|
1109
2371
|
method: 'GET',
|
|
1110
|
-
url: '/api/v1/{region}/bean/
|
|
2372
|
+
url: '/api/v1/{region}/bean/prices',
|
|
1111
2373
|
path: {
|
|
1112
|
-
symbol: data.symbol,
|
|
1113
2374
|
region: data.region
|
|
1114
2375
|
},
|
|
1115
|
-
|
|
1116
|
-
|
|
2376
|
+
query: {
|
|
2377
|
+
currency: data.currency,
|
|
2378
|
+
quoteCurrency: data.quoteCurrency,
|
|
2379
|
+
dateFrom: data.dateFrom,
|
|
2380
|
+
dateTo: data.dateTo,
|
|
2381
|
+
search: data.search,
|
|
2382
|
+
page: data.page,
|
|
2383
|
+
limit: data.limit
|
|
1117
2384
|
}
|
|
1118
2385
|
});
|
|
1119
2386
|
}
|
|
1120
2387
|
|
|
1121
2388
|
/**
|
|
2389
|
+
* Get price by ID
|
|
2390
|
+
* Returns a single price entry by its ID
|
|
1122
2391
|
* @param data The data for the request.
|
|
2392
|
+
* @param data.id Price ID
|
|
1123
2393
|
* @param data.region Region code for tenant context
|
|
1124
|
-
* @returns
|
|
2394
|
+
* @returns PriceResponseDto Price retrieved successfully
|
|
1125
2395
|
* @throws ApiError
|
|
1126
2396
|
*/
|
|
1127
|
-
public static
|
|
1128
|
-
data:
|
|
1129
|
-
): CancelablePromise<
|
|
2397
|
+
public static priceControllerFindOne(
|
|
2398
|
+
data: PriceControllerFindOneData
|
|
2399
|
+
): CancelablePromise<PriceControllerFindOneResponse> {
|
|
1130
2400
|
return __request(OpenAPI, {
|
|
1131
|
-
method: '
|
|
1132
|
-
url: '/api/v1/{region}/bean/
|
|
2401
|
+
method: 'GET',
|
|
2402
|
+
url: '/api/v1/{region}/bean/prices/{id}',
|
|
1133
2403
|
path: {
|
|
2404
|
+
id: data.id,
|
|
1134
2405
|
region: data.region
|
|
2406
|
+
},
|
|
2407
|
+
errors: {
|
|
2408
|
+
404: 'Price not found'
|
|
1135
2409
|
}
|
|
1136
2410
|
});
|
|
1137
2411
|
}
|
|
1138
2412
|
|
|
1139
2413
|
/**
|
|
2414
|
+
* Update a price
|
|
2415
|
+
* Updates an existing price entry
|
|
1140
2416
|
* @param data The data for the request.
|
|
2417
|
+
* @param data.id Price ID
|
|
1141
2418
|
* @param data.region Region code for tenant context
|
|
1142
|
-
* @
|
|
2419
|
+
* @param data.requestBody
|
|
2420
|
+
* @returns PriceResponseDto Price updated successfully
|
|
1143
2421
|
* @throws ApiError
|
|
1144
2422
|
*/
|
|
1145
|
-
public static
|
|
1146
|
-
data:
|
|
1147
|
-
): CancelablePromise<
|
|
2423
|
+
public static priceControllerUpdate(
|
|
2424
|
+
data: PriceControllerUpdateData
|
|
2425
|
+
): CancelablePromise<PriceControllerUpdateResponse> {
|
|
1148
2426
|
return __request(OpenAPI, {
|
|
1149
|
-
method: '
|
|
1150
|
-
url: '/api/v1/{region}/bean/
|
|
2427
|
+
method: 'PUT',
|
|
2428
|
+
url: '/api/v1/{region}/bean/prices/{id}',
|
|
1151
2429
|
path: {
|
|
2430
|
+
id: data.id,
|
|
1152
2431
|
region: data.region
|
|
2432
|
+
},
|
|
2433
|
+
body: data.requestBody,
|
|
2434
|
+
mediaType: 'application/json',
|
|
2435
|
+
errors: {
|
|
2436
|
+
404: 'Price not found',
|
|
2437
|
+
409: 'Updated price conflicts with existing price'
|
|
1153
2438
|
}
|
|
1154
2439
|
});
|
|
1155
2440
|
}
|
|
1156
2441
|
|
|
1157
2442
|
/**
|
|
2443
|
+
* Delete a price
|
|
2444
|
+
* Deletes a price entry (hard delete)
|
|
1158
2445
|
* @param data The data for the request.
|
|
2446
|
+
* @param data.id Price ID
|
|
1159
2447
|
* @param data.region Region code for tenant context
|
|
1160
|
-
* @returns
|
|
2448
|
+
* @returns void Price deleted successfully
|
|
1161
2449
|
* @throws ApiError
|
|
1162
2450
|
*/
|
|
1163
|
-
public static
|
|
1164
|
-
data:
|
|
1165
|
-
): CancelablePromise<
|
|
2451
|
+
public static priceControllerDelete(
|
|
2452
|
+
data: PriceControllerDeleteData
|
|
2453
|
+
): CancelablePromise<PriceControllerDeleteResponse> {
|
|
1166
2454
|
return __request(OpenAPI, {
|
|
1167
|
-
method: '
|
|
1168
|
-
url: '/api/v1/{region}/bean/
|
|
2455
|
+
method: 'DELETE',
|
|
2456
|
+
url: '/api/v1/{region}/bean/prices/{id}',
|
|
1169
2457
|
path: {
|
|
2458
|
+
id: data.id,
|
|
1170
2459
|
region: data.region
|
|
2460
|
+
},
|
|
2461
|
+
errors: {
|
|
2462
|
+
404: 'Price not found'
|
|
1171
2463
|
}
|
|
1172
2464
|
});
|
|
1173
2465
|
}
|
|
1174
2466
|
|
|
1175
2467
|
/**
|
|
2468
|
+
* Bulk create prices
|
|
2469
|
+
* Creates multiple price entries at once (skips duplicates)
|
|
1176
2470
|
* @param data The data for the request.
|
|
1177
2471
|
* @param data.region Region code for tenant context
|
|
1178
|
-
* @
|
|
2472
|
+
* @param data.requestBody
|
|
2473
|
+
* @returns PriceResponseDto Prices created successfully
|
|
1179
2474
|
* @throws ApiError
|
|
1180
2475
|
*/
|
|
1181
|
-
public static
|
|
1182
|
-
data:
|
|
1183
|
-
): CancelablePromise<
|
|
2476
|
+
public static priceControllerBulkCreate(
|
|
2477
|
+
data: PriceControllerBulkCreateData
|
|
2478
|
+
): CancelablePromise<PriceControllerBulkCreateResponse> {
|
|
1184
2479
|
return __request(OpenAPI, {
|
|
1185
2480
|
method: 'POST',
|
|
1186
|
-
url: '/api/v1/{region}/bean/
|
|
2481
|
+
url: '/api/v1/{region}/bean/prices/bulk',
|
|
1187
2482
|
path: {
|
|
1188
2483
|
region: data.region
|
|
1189
|
-
}
|
|
2484
|
+
},
|
|
2485
|
+
body: data.requestBody,
|
|
2486
|
+
mediaType: 'application/json'
|
|
1190
2487
|
});
|
|
1191
2488
|
}
|
|
1192
2489
|
}
|
|
1193
2490
|
|
|
1194
2491
|
export class RecurringRulesService {
|
|
1195
2492
|
/**
|
|
2493
|
+
* Create a new recurring rule
|
|
2494
|
+
* Creates a new recurring transaction rule for the authenticated user
|
|
1196
2495
|
* @param data The data for the request.
|
|
1197
2496
|
* @param data.region Region code for tenant context
|
|
1198
|
-
* @
|
|
2497
|
+
* @param data.requestBody
|
|
2498
|
+
* @returns RecurringRuleResponseDto Rule created successfully
|
|
1199
2499
|
* @throws ApiError
|
|
1200
2500
|
*/
|
|
1201
|
-
public static
|
|
1202
|
-
data:
|
|
1203
|
-
): CancelablePromise<
|
|
2501
|
+
public static recurringRuleControllerCreate(
|
|
2502
|
+
data: RecurringRuleControllerCreateData
|
|
2503
|
+
): CancelablePromise<RecurringRuleControllerCreateResponse> {
|
|
1204
2504
|
return __request(OpenAPI, {
|
|
1205
2505
|
method: 'POST',
|
|
1206
2506
|
url: '/api/v1/{region}/bean/recurring-rules',
|
|
1207
2507
|
path: {
|
|
1208
2508
|
region: data.region
|
|
2509
|
+
},
|
|
2510
|
+
body: data.requestBody,
|
|
2511
|
+
mediaType: 'application/json',
|
|
2512
|
+
errors: {
|
|
2513
|
+
400: 'Invalid input data (e.g., autoCreate without accounts)',
|
|
2514
|
+
409: 'Rule with same name already exists'
|
|
1209
2515
|
}
|
|
1210
2516
|
});
|
|
1211
2517
|
}
|
|
@@ -1239,19 +2545,30 @@ export class RecurringRulesService {
|
|
|
1239
2545
|
}
|
|
1240
2546
|
|
|
1241
2547
|
/**
|
|
2548
|
+
* Create recurring rule from transaction
|
|
2549
|
+
* Auto-creates a recurring rule using transaction data. User only confirms frequency.
|
|
1242
2550
|
* @param data The data for the request.
|
|
2551
|
+
* @param data.transactionId Source transaction ID
|
|
1243
2552
|
* @param data.region Region code for tenant context
|
|
1244
|
-
* @
|
|
2553
|
+
* @param data.requestBody
|
|
2554
|
+
* @returns RecurringRuleResponseDto Rule created successfully
|
|
1245
2555
|
* @throws ApiError
|
|
1246
2556
|
*/
|
|
1247
|
-
public static
|
|
1248
|
-
data:
|
|
1249
|
-
): CancelablePromise<
|
|
2557
|
+
public static recurringRuleControllerCreateFromTransaction(
|
|
2558
|
+
data: RecurringRuleControllerCreateFromTransactionData
|
|
2559
|
+
): CancelablePromise<RecurringRuleControllerCreateFromTransactionResponse> {
|
|
1250
2560
|
return __request(OpenAPI, {
|
|
1251
2561
|
method: 'POST',
|
|
1252
2562
|
url: '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}',
|
|
1253
2563
|
path: {
|
|
2564
|
+
transactionId: data.transactionId,
|
|
1254
2565
|
region: data.region
|
|
2566
|
+
},
|
|
2567
|
+
body: data.requestBody,
|
|
2568
|
+
mediaType: 'application/json',
|
|
2569
|
+
errors: {
|
|
2570
|
+
404: 'Transaction not found',
|
|
2571
|
+
409: 'Rule with same name already exists or transaction already linked'
|
|
1255
2572
|
}
|
|
1256
2573
|
});
|
|
1257
2574
|
}
|
|
@@ -1282,37 +2599,55 @@ export class RecurringRulesService {
|
|
|
1282
2599
|
}
|
|
1283
2600
|
|
|
1284
2601
|
/**
|
|
2602
|
+
* Update recurring rule
|
|
2603
|
+
* Updates an existing recurring rule
|
|
1285
2604
|
* @param data The data for the request.
|
|
2605
|
+
* @param data.id Rule ID
|
|
1286
2606
|
* @param data.region Region code for tenant context
|
|
1287
|
-
* @
|
|
2607
|
+
* @param data.requestBody
|
|
2608
|
+
* @returns RecurringRuleResponseDto Rule updated successfully
|
|
1288
2609
|
* @throws ApiError
|
|
1289
2610
|
*/
|
|
1290
|
-
public static
|
|
1291
|
-
data:
|
|
1292
|
-
): CancelablePromise<
|
|
2611
|
+
public static recurringRuleControllerUpdate(
|
|
2612
|
+
data: RecurringRuleControllerUpdateData
|
|
2613
|
+
): CancelablePromise<RecurringRuleControllerUpdateResponse> {
|
|
1293
2614
|
return __request(OpenAPI, {
|
|
1294
2615
|
method: 'PATCH',
|
|
1295
2616
|
url: '/api/v1/{region}/bean/recurring-rules/{id}',
|
|
1296
2617
|
path: {
|
|
2618
|
+
id: data.id,
|
|
1297
2619
|
region: data.region
|
|
2620
|
+
},
|
|
2621
|
+
body: data.requestBody,
|
|
2622
|
+
mediaType: 'application/json',
|
|
2623
|
+
errors: {
|
|
2624
|
+
400: 'Invalid input data',
|
|
2625
|
+
404: 'Rule not found'
|
|
1298
2626
|
}
|
|
1299
2627
|
});
|
|
1300
2628
|
}
|
|
1301
2629
|
|
|
1302
2630
|
/**
|
|
2631
|
+
* Delete recurring rule
|
|
2632
|
+
* Soft deletes a recurring rule (sets isActive to false)
|
|
1303
2633
|
* @param data The data for the request.
|
|
2634
|
+
* @param data.id Rule ID
|
|
1304
2635
|
* @param data.region Region code for tenant context
|
|
1305
|
-
* @returns void
|
|
2636
|
+
* @returns void Rule deleted successfully
|
|
1306
2637
|
* @throws ApiError
|
|
1307
2638
|
*/
|
|
1308
|
-
public static
|
|
1309
|
-
data:
|
|
1310
|
-
): CancelablePromise<
|
|
2639
|
+
public static recurringRuleControllerDelete(
|
|
2640
|
+
data: RecurringRuleControllerDeleteData
|
|
2641
|
+
): CancelablePromise<RecurringRuleControllerDeleteResponse> {
|
|
1311
2642
|
return __request(OpenAPI, {
|
|
1312
2643
|
method: 'DELETE',
|
|
1313
2644
|
url: '/api/v1/{region}/bean/recurring-rules/{id}',
|
|
1314
2645
|
path: {
|
|
2646
|
+
id: data.id,
|
|
1315
2647
|
region: data.region
|
|
2648
|
+
},
|
|
2649
|
+
errors: {
|
|
2650
|
+
404: 'Rule not found'
|
|
1316
2651
|
}
|
|
1317
2652
|
});
|
|
1318
2653
|
}
|
|
@@ -1403,595 +2738,540 @@ export class ExpectedTransactionsService {
|
|
|
1403
2738
|
* @returns ExpectedTransactionResponseDto Expected transaction retrieved successfully
|
|
1404
2739
|
* @throws ApiError
|
|
1405
2740
|
*/
|
|
1406
|
-
public static expectedTransactionControllerFindOne(
|
|
1407
|
-
data: ExpectedTransactionControllerFindOneData
|
|
1408
|
-
): CancelablePromise<ExpectedTransactionControllerFindOneResponse> {
|
|
1409
|
-
return __request(OpenAPI, {
|
|
1410
|
-
method: 'GET',
|
|
1411
|
-
url: '/api/v1/{region}/bean/expected-transactions/{id}',
|
|
1412
|
-
path: {
|
|
1413
|
-
id: data.id,
|
|
1414
|
-
region: data.region
|
|
1415
|
-
},
|
|
1416
|
-
errors: {
|
|
1417
|
-
404: 'Expected transaction not found'
|
|
1418
|
-
}
|
|
1419
|
-
});
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
/**
|
|
1423
|
-
* @param data The data for the request.
|
|
1424
|
-
* @param data.region Region code for tenant context
|
|
1425
|
-
* @returns unknown
|
|
1426
|
-
* @throws ApiError
|
|
1427
|
-
*/
|
|
1428
|
-
public static expectedTransactionController(
|
|
1429
|
-
data: ExpectedTransactionControllerData
|
|
1430
|
-
): CancelablePromise<ExpectedTransactionControllerResponse> {
|
|
1431
|
-
return __request(OpenAPI, {
|
|
1432
|
-
method: 'POST',
|
|
1433
|
-
url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
|
|
1434
|
-
path: {
|
|
1435
|
-
region: data.region
|
|
1436
|
-
}
|
|
1437
|
-
});
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
/**
|
|
1441
|
-
* @param data The data for the request.
|
|
1442
|
-
* @param data.region Region code for tenant context
|
|
1443
|
-
* @returns unknown
|
|
1444
|
-
* @throws ApiError
|
|
1445
|
-
*/
|
|
1446
|
-
public static expectedTransactionController1(
|
|
1447
|
-
data: ExpectedTransactionController1Data
|
|
1448
|
-
): CancelablePromise<ExpectedTransactionController1Response> {
|
|
1449
|
-
return __request(OpenAPI, {
|
|
1450
|
-
method: 'DELETE',
|
|
1451
|
-
url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
|
|
1452
|
-
path: {
|
|
1453
|
-
region: data.region
|
|
1454
|
-
}
|
|
1455
|
-
});
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
/**
|
|
1459
|
-
* @param data The data for the request.
|
|
1460
|
-
* @param data.region Region code for tenant context
|
|
1461
|
-
* @returns unknown
|
|
1462
|
-
* @throws ApiError
|
|
1463
|
-
*/
|
|
1464
|
-
public static expectedTransactionController2(
|
|
1465
|
-
data: ExpectedTransactionController2Data
|
|
1466
|
-
): CancelablePromise<ExpectedTransactionController2Response> {
|
|
1467
|
-
return __request(OpenAPI, {
|
|
1468
|
-
method: 'POST',
|
|
1469
|
-
url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
|
|
1470
|
-
path: {
|
|
1471
|
-
region: data.region
|
|
1472
|
-
}
|
|
1473
|
-
});
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
/**
|
|
1477
|
-
* @param data The data for the request.
|
|
1478
|
-
* @param data.region Region code for tenant context
|
|
1479
|
-
* @returns unknown
|
|
1480
|
-
* @throws ApiError
|
|
1481
|
-
*/
|
|
1482
|
-
public static expectedTransactionController3(
|
|
1483
|
-
data: ExpectedTransactionController3Data
|
|
1484
|
-
): CancelablePromise<ExpectedTransactionController3Response> {
|
|
1485
|
-
return __request(OpenAPI, {
|
|
1486
|
-
method: 'DELETE',
|
|
1487
|
-
url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
|
|
1488
|
-
path: {
|
|
1489
|
-
region: data.region
|
|
1490
|
-
}
|
|
1491
|
-
});
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
/**
|
|
1495
|
-
* @param data The data for the request.
|
|
1496
|
-
* @param data.region Region code for tenant context
|
|
1497
|
-
* @returns unknown
|
|
1498
|
-
* @throws ApiError
|
|
1499
|
-
*/
|
|
1500
|
-
public static expectedTransactionController4(
|
|
1501
|
-
data: ExpectedTransactionController4Data
|
|
1502
|
-
): CancelablePromise<ExpectedTransactionController4Response> {
|
|
1503
|
-
return __request(OpenAPI, {
|
|
1504
|
-
method: 'POST',
|
|
1505
|
-
url: '/api/v1/{region}/bean/expected-transactions/{id}/enter',
|
|
1506
|
-
path: {
|
|
1507
|
-
region: data.region
|
|
1508
|
-
}
|
|
1509
|
-
});
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
|
|
1513
|
-
export class RecurringForecastService {
|
|
1514
|
-
/**
|
|
1515
|
-
* Get cash flow forecast
|
|
1516
|
-
* Returns predicted outflows for the next N months based on active recurring rules
|
|
1517
|
-
* @param data The data for the request.
|
|
1518
|
-
* @param data.months Number of months to forecast (1-12, default 3)
|
|
1519
|
-
* @returns ForecastResponseDto Forecast retrieved successfully
|
|
1520
|
-
* @throws ApiError
|
|
1521
|
-
*/
|
|
1522
|
-
public static forecastControllerGetForecast(
|
|
1523
|
-
data: ForecastControllerGetForecastData = {}
|
|
1524
|
-
): CancelablePromise<ForecastControllerGetForecastResponse> {
|
|
1525
|
-
return __request(OpenAPI, {
|
|
1526
|
-
method: 'GET',
|
|
1527
|
-
url: '/api/v1/{region}/bean/recurring/forecast',
|
|
1528
|
-
query: {
|
|
1529
|
-
months: data.months
|
|
1530
|
-
}
|
|
1531
|
-
});
|
|
1532
|
-
}
|
|
1533
|
-
}
|
|
1534
|
-
|
|
1535
|
-
export class BeanTransactionRulesService {
|
|
1536
|
-
/**
|
|
1537
|
-
* @param data The data for the request.
|
|
1538
|
-
* @param data.region Region code for tenant context
|
|
1539
|
-
* @returns unknown
|
|
1540
|
-
* @throws ApiError
|
|
1541
|
-
*/
|
|
1542
|
-
public static transactionRuleController(
|
|
1543
|
-
data: TransactionRuleControllerData
|
|
1544
|
-
): CancelablePromise<TransactionRuleControllerResponse> {
|
|
1545
|
-
return __request(OpenAPI, {
|
|
1546
|
-
method: 'POST',
|
|
1547
|
-
url: '/api/v1/{region}/bean/transaction-rules',
|
|
1548
|
-
path: {
|
|
1549
|
-
region: data.region
|
|
1550
|
-
}
|
|
1551
|
-
});
|
|
1552
|
-
}
|
|
1553
|
-
|
|
1554
|
-
/**
|
|
1555
|
-
* Get all transaction rules for user
|
|
1556
|
-
* @param data The data for the request.
|
|
1557
|
-
* @param data.region Region code for tenant context
|
|
1558
|
-
* @param data.limit Max results per page (default: 20, max: 100)
|
|
1559
|
-
* @param data.offset Pagination offset (default: 0)
|
|
1560
|
-
* @param data.enabled Filter by enabled status
|
|
1561
|
-
* @param data.learningSource Filter by learning source. Omit this parameter or pass empty string to get manually created rules (learningSource is null in database).
|
|
1562
|
-
* @param data.autoApplyEnabled Filter by auto-apply status
|
|
1563
|
-
* @returns TransactionRuleListResponseDto List of rules
|
|
1564
|
-
* @throws ApiError
|
|
1565
|
-
*/
|
|
1566
|
-
public static transactionRuleControllerList(
|
|
1567
|
-
data: TransactionRuleControllerListData
|
|
1568
|
-
): CancelablePromise<TransactionRuleControllerListResponse> {
|
|
2741
|
+
public static expectedTransactionControllerFindOne(
|
|
2742
|
+
data: ExpectedTransactionControllerFindOneData
|
|
2743
|
+
): CancelablePromise<ExpectedTransactionControllerFindOneResponse> {
|
|
1569
2744
|
return __request(OpenAPI, {
|
|
1570
2745
|
method: 'GET',
|
|
1571
|
-
url: '/api/v1/{region}/bean/
|
|
2746
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}',
|
|
1572
2747
|
path: {
|
|
2748
|
+
id: data.id,
|
|
1573
2749
|
region: data.region
|
|
1574
2750
|
},
|
|
1575
|
-
query: {
|
|
1576
|
-
limit: data.limit,
|
|
1577
|
-
offset: data.offset,
|
|
1578
|
-
enabled: data.enabled,
|
|
1579
|
-
learningSource: data.learningSource,
|
|
1580
|
-
autoApplyEnabled: data.autoApplyEnabled
|
|
1581
|
-
},
|
|
1582
2751
|
errors: {
|
|
1583
|
-
|
|
2752
|
+
404: 'Expected transaction not found'
|
|
1584
2753
|
}
|
|
1585
2754
|
});
|
|
1586
2755
|
}
|
|
1587
2756
|
|
|
1588
2757
|
/**
|
|
1589
|
-
*
|
|
2758
|
+
* Skip expected transaction
|
|
2759
|
+
* Marks an expected transaction as skipped (PENDING -> SKIPPED)
|
|
1590
2760
|
* @param data The data for the request.
|
|
2761
|
+
* @param data.id Expected transaction ID
|
|
1591
2762
|
* @param data.region Region code for tenant context
|
|
1592
|
-
* @
|
|
1593
|
-
* @returns ValidateRuleResponseDto Validation result
|
|
2763
|
+
* @returns ExpectedTransactionResponseDto Expected transaction skipped successfully
|
|
1594
2764
|
* @throws ApiError
|
|
1595
2765
|
*/
|
|
1596
|
-
public static
|
|
1597
|
-
data:
|
|
1598
|
-
): CancelablePromise<
|
|
2766
|
+
public static expectedTransactionControllerSkip(
|
|
2767
|
+
data: ExpectedTransactionControllerSkipData
|
|
2768
|
+
): CancelablePromise<ExpectedTransactionControllerSkipResponse> {
|
|
1599
2769
|
return __request(OpenAPI, {
|
|
1600
2770
|
method: 'POST',
|
|
1601
|
-
url: '/api/v1/{region}/bean/
|
|
2771
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
|
|
1602
2772
|
path: {
|
|
2773
|
+
id: data.id,
|
|
1603
2774
|
region: data.region
|
|
1604
2775
|
},
|
|
1605
|
-
body: data.requestBody,
|
|
1606
|
-
mediaType: 'application/json',
|
|
1607
2776
|
errors: {
|
|
1608
|
-
|
|
2777
|
+
400: 'Cannot skip - not in PENDING status',
|
|
2778
|
+
404: 'Expected transaction not found'
|
|
1609
2779
|
}
|
|
1610
2780
|
});
|
|
1611
2781
|
}
|
|
1612
2782
|
|
|
1613
2783
|
/**
|
|
2784
|
+
* Undo skip
|
|
2785
|
+
* Reverses a skip operation (SKIPPED -> PENDING)
|
|
1614
2786
|
* @param data The data for the request.
|
|
2787
|
+
* @param data.id Expected transaction ID
|
|
1615
2788
|
* @param data.region Region code for tenant context
|
|
1616
|
-
* @returns
|
|
2789
|
+
* @returns void Skip undone successfully
|
|
1617
2790
|
* @throws ApiError
|
|
1618
2791
|
*/
|
|
1619
|
-
public static
|
|
1620
|
-
data:
|
|
1621
|
-
): CancelablePromise<
|
|
2792
|
+
public static expectedTransactionControllerUndoSkip(
|
|
2793
|
+
data: ExpectedTransactionControllerUndoSkipData
|
|
2794
|
+
): CancelablePromise<ExpectedTransactionControllerUndoSkipResponse> {
|
|
1622
2795
|
return __request(OpenAPI, {
|
|
1623
|
-
method: '
|
|
1624
|
-
url: '/api/v1/{region}/bean/
|
|
2796
|
+
method: 'DELETE',
|
|
2797
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
|
|
1625
2798
|
path: {
|
|
2799
|
+
id: data.id,
|
|
1626
2800
|
region: data.region
|
|
2801
|
+
},
|
|
2802
|
+
errors: {
|
|
2803
|
+
400: 'Cannot undo - not in SKIPPED status',
|
|
2804
|
+
404: 'Expected transaction not found'
|
|
1627
2805
|
}
|
|
1628
2806
|
});
|
|
1629
2807
|
}
|
|
1630
2808
|
|
|
1631
2809
|
/**
|
|
1632
|
-
*
|
|
2810
|
+
* Confirm transaction match
|
|
2811
|
+
* Manually matches an expected transaction with an actual transaction
|
|
1633
2812
|
* @param data The data for the request.
|
|
1634
|
-
* @param data.
|
|
2813
|
+
* @param data.id Expected transaction ID
|
|
1635
2814
|
* @param data.region Region code for tenant context
|
|
1636
|
-
* @
|
|
2815
|
+
* @param data.requestBody
|
|
2816
|
+
* @returns unknown Match confirmed successfully
|
|
1637
2817
|
* @throws ApiError
|
|
1638
2818
|
*/
|
|
1639
|
-
public static
|
|
1640
|
-
data:
|
|
1641
|
-
): CancelablePromise<
|
|
2819
|
+
public static expectedTransactionControllerConfirmMatch(
|
|
2820
|
+
data: ExpectedTransactionControllerConfirmMatchData
|
|
2821
|
+
): CancelablePromise<ExpectedTransactionControllerConfirmMatchResponse> {
|
|
1642
2822
|
return __request(OpenAPI, {
|
|
1643
|
-
method: '
|
|
1644
|
-
url: '/api/v1/{region}/bean/
|
|
2823
|
+
method: 'POST',
|
|
2824
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
|
|
1645
2825
|
path: {
|
|
1646
|
-
|
|
2826
|
+
id: data.id,
|
|
1647
2827
|
region: data.region
|
|
1648
2828
|
},
|
|
2829
|
+
body: data.requestBody,
|
|
2830
|
+
mediaType: 'application/json',
|
|
1649
2831
|
errors: {
|
|
1650
|
-
400: '
|
|
1651
|
-
|
|
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'
|
|
1652
2835
|
}
|
|
1653
2836
|
});
|
|
1654
2837
|
}
|
|
1655
2838
|
|
|
1656
2839
|
/**
|
|
1657
|
-
*
|
|
2840
|
+
* Unmatch transaction
|
|
2841
|
+
* Removes the match between expected and actual transaction (COMPLETED -> PENDING)
|
|
1658
2842
|
* @param data The data for the request.
|
|
1659
|
-
* @param data.
|
|
2843
|
+
* @param data.id Expected transaction ID
|
|
1660
2844
|
* @param data.region Region code for tenant context
|
|
1661
|
-
* @returns
|
|
2845
|
+
* @returns void Match removed successfully
|
|
1662
2846
|
* @throws ApiError
|
|
1663
2847
|
*/
|
|
1664
|
-
public static
|
|
1665
|
-
data:
|
|
1666
|
-
): CancelablePromise<
|
|
2848
|
+
public static expectedTransactionControllerUnmatch(
|
|
2849
|
+
data: ExpectedTransactionControllerUnmatchData
|
|
2850
|
+
): CancelablePromise<ExpectedTransactionControllerUnmatchResponse> {
|
|
1667
2851
|
return __request(OpenAPI, {
|
|
1668
|
-
method: '
|
|
1669
|
-
url: '/api/v1/{region}/bean/
|
|
2852
|
+
method: 'DELETE',
|
|
2853
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
|
|
1670
2854
|
path: {
|
|
1671
|
-
|
|
2855
|
+
id: data.id,
|
|
1672
2856
|
region: data.region
|
|
1673
2857
|
},
|
|
1674
2858
|
errors: {
|
|
1675
|
-
|
|
2859
|
+
400: 'Cannot unmatch - not in COMPLETED status',
|
|
2860
|
+
404: 'Expected transaction not found'
|
|
1676
2861
|
}
|
|
1677
2862
|
});
|
|
1678
2863
|
}
|
|
1679
2864
|
|
|
1680
2865
|
/**
|
|
1681
|
-
*
|
|
2866
|
+
* Enter Now
|
|
2867
|
+
* Creates an actual transaction for an expected transaction (YNAB-style Enter Now)
|
|
1682
2868
|
* @param data The data for the request.
|
|
1683
|
-
* @param data.
|
|
2869
|
+
* @param data.id Expected transaction ID
|
|
1684
2870
|
* @param data.region Region code for tenant context
|
|
1685
|
-
* @
|
|
2871
|
+
* @param data.requestBody
|
|
2872
|
+
* @returns unknown Transaction created successfully
|
|
1686
2873
|
* @throws ApiError
|
|
1687
2874
|
*/
|
|
1688
|
-
public static
|
|
1689
|
-
data:
|
|
1690
|
-
): CancelablePromise<
|
|
2875
|
+
public static expectedTransactionControllerEnterNow(
|
|
2876
|
+
data: ExpectedTransactionControllerEnterNowData
|
|
2877
|
+
): CancelablePromise<ExpectedTransactionControllerEnterNowResponse> {
|
|
1691
2878
|
return __request(OpenAPI, {
|
|
1692
|
-
method: '
|
|
1693
|
-
url: '/api/v1/{region}/bean/
|
|
2879
|
+
method: 'POST',
|
|
2880
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/enter',
|
|
1694
2881
|
path: {
|
|
1695
|
-
|
|
2882
|
+
id: data.id,
|
|
1696
2883
|
region: data.region
|
|
1697
2884
|
},
|
|
2885
|
+
body: data.requestBody,
|
|
2886
|
+
mediaType: 'application/json',
|
|
1698
2887
|
errors: {
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
404: 'Rule not found'
|
|
2888
|
+
400: 'Cannot enter - not in PENDING status or missing accounts',
|
|
2889
|
+
404: 'Expected transaction or accounts not found'
|
|
1702
2890
|
}
|
|
1703
2891
|
});
|
|
1704
2892
|
}
|
|
2893
|
+
}
|
|
1705
2894
|
|
|
2895
|
+
export class RecurringForecastService {
|
|
1706
2896
|
/**
|
|
2897
|
+
* Get cash flow forecast
|
|
2898
|
+
* Returns predicted outflows for the next N months based on active recurring rules
|
|
1707
2899
|
* @param data The data for the request.
|
|
1708
2900
|
* @param data.region Region code for tenant context
|
|
1709
|
-
* @
|
|
2901
|
+
* @param data.months Number of months to forecast (1-12, default 3)
|
|
2902
|
+
* @returns ForecastResponseDto Forecast retrieved successfully
|
|
1710
2903
|
* @throws ApiError
|
|
1711
2904
|
*/
|
|
1712
|
-
public static
|
|
1713
|
-
data:
|
|
1714
|
-
): CancelablePromise<
|
|
2905
|
+
public static forecastControllerGetForecast(
|
|
2906
|
+
data: ForecastControllerGetForecastData
|
|
2907
|
+
): CancelablePromise<ForecastControllerGetForecastResponse> {
|
|
1715
2908
|
return __request(OpenAPI, {
|
|
1716
|
-
method: '
|
|
1717
|
-
url: '/api/v1/{region}/bean/
|
|
2909
|
+
method: 'GET',
|
|
2910
|
+
url: '/api/v1/{region}/bean/recurring/forecast',
|
|
1718
2911
|
path: {
|
|
1719
2912
|
region: data.region
|
|
2913
|
+
},
|
|
2914
|
+
query: {
|
|
2915
|
+
months: data.months
|
|
1720
2916
|
}
|
|
1721
2917
|
});
|
|
1722
2918
|
}
|
|
2919
|
+
}
|
|
1723
2920
|
|
|
2921
|
+
export class BeanCategoryCatalogService {
|
|
1724
2922
|
/**
|
|
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.
|
|
1725
2925
|
* @param data The data for the request.
|
|
1726
2926
|
* @param data.region Region code for tenant context
|
|
1727
|
-
* @
|
|
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
|
|
1728
2930
|
* @throws ApiError
|
|
1729
2931
|
*/
|
|
1730
|
-
public static
|
|
1731
|
-
data:
|
|
1732
|
-
): CancelablePromise<
|
|
2932
|
+
public static categoryCatalogControllerList(
|
|
2933
|
+
data: CategoryCatalogControllerListData
|
|
2934
|
+
): CancelablePromise<CategoryCatalogControllerListResponse> {
|
|
1733
2935
|
return __request(OpenAPI, {
|
|
1734
|
-
method: '
|
|
1735
|
-
url: '/api/v1/{region}/bean/
|
|
2936
|
+
method: 'GET',
|
|
2937
|
+
url: '/api/v1/{region}/bean/categories',
|
|
1736
2938
|
path: {
|
|
1737
2939
|
region: data.region
|
|
2940
|
+
},
|
|
2941
|
+
query: {
|
|
2942
|
+
scenario: data.scenario,
|
|
2943
|
+
routeBearing: data.routeBearing
|
|
1738
2944
|
}
|
|
1739
2945
|
});
|
|
1740
2946
|
}
|
|
2947
|
+
}
|
|
1741
2948
|
|
|
2949
|
+
export class LifeEventsService {
|
|
1742
2950
|
/**
|
|
1743
|
-
*
|
|
2951
|
+
* Create a new life event
|
|
2952
|
+
* Creates a new life event entry for the authenticated user. Returns ETag header carrying the row updatedAt.
|
|
1744
2953
|
* @param data The data for the request.
|
|
1745
|
-
* @param data.
|
|
1746
|
-
* @param data.region Region code for tenant context
|
|
2954
|
+
* @param data.region Region code for tenant context (decorative for life events)
|
|
1747
2955
|
* @param data.requestBody
|
|
1748
|
-
* @returns
|
|
2956
|
+
* @returns EventResponseDto Life event created successfully
|
|
1749
2957
|
* @throws ApiError
|
|
1750
2958
|
*/
|
|
1751
|
-
public static
|
|
1752
|
-
data:
|
|
1753
|
-
): CancelablePromise<
|
|
2959
|
+
public static eventControllerCreate(
|
|
2960
|
+
data: EventControllerCreateData
|
|
2961
|
+
): CancelablePromise<EventControllerCreateResponse> {
|
|
1754
2962
|
return __request(OpenAPI, {
|
|
1755
2963
|
method: 'POST',
|
|
1756
|
-
url: '/api/v1/{region}/bean/
|
|
2964
|
+
url: '/api/v1/{region}/bean/events',
|
|
1757
2965
|
path: {
|
|
1758
|
-
ruleId: data.ruleId,
|
|
1759
2966
|
region: data.region
|
|
1760
2967
|
},
|
|
1761
2968
|
body: data.requestBody,
|
|
1762
2969
|
mediaType: 'application/json',
|
|
1763
2970
|
errors: {
|
|
1764
|
-
|
|
1765
|
-
403: 'Forbidden - not owner of rule',
|
|
1766
|
-
404: 'Rule not found'
|
|
2971
|
+
409: 'Life event already exists for this (userId, type, date) combination'
|
|
1767
2972
|
}
|
|
1768
2973
|
});
|
|
1769
2974
|
}
|
|
1770
|
-
}
|
|
1771
2975
|
|
|
1772
|
-
export class UsersService {
|
|
1773
2976
|
/**
|
|
1774
|
-
*
|
|
2977
|
+
* List user life events
|
|
2978
|
+
* Returns life events for the authenticated user with optional filtering by type, description search, and date range.
|
|
1775
2979
|
* @param data The data for the request.
|
|
1776
|
-
* @param data.
|
|
1777
|
-
* @
|
|
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
|
|
1778
2988
|
* @throws ApiError
|
|
1779
2989
|
*/
|
|
1780
|
-
public static
|
|
1781
|
-
data:
|
|
1782
|
-
): CancelablePromise<
|
|
2990
|
+
public static eventControllerFindAll(
|
|
2991
|
+
data: EventControllerFindAllData
|
|
2992
|
+
): CancelablePromise<EventControllerFindAllResponse> {
|
|
1783
2993
|
return __request(OpenAPI, {
|
|
1784
|
-
method: '
|
|
1785
|
-
url: '/api/v1/
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
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
|
|
1790
3006
|
}
|
|
1791
3007
|
});
|
|
1792
3008
|
}
|
|
1793
3009
|
|
|
1794
3010
|
/**
|
|
1795
|
-
* Get
|
|
3011
|
+
* Get life event by ID
|
|
3012
|
+
* Returns a single life event by its ID. Returns ETag header.
|
|
1796
3013
|
* @param data The data for the request.
|
|
1797
|
-
* @param data.
|
|
1798
|
-
* @
|
|
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
|
|
1799
3017
|
* @throws ApiError
|
|
1800
3018
|
*/
|
|
1801
|
-
public static
|
|
1802
|
-
data:
|
|
1803
|
-
): CancelablePromise<
|
|
3019
|
+
public static eventControllerFindOne(
|
|
3020
|
+
data: EventControllerFindOneData
|
|
3021
|
+
): CancelablePromise<EventControllerFindOneResponse> {
|
|
1804
3022
|
return __request(OpenAPI, {
|
|
1805
3023
|
method: 'GET',
|
|
1806
|
-
url: '/api/v1/
|
|
1807
|
-
|
|
1808
|
-
|
|
3024
|
+
url: '/api/v1/{region}/bean/events/{id}',
|
|
3025
|
+
path: {
|
|
3026
|
+
id: data.id,
|
|
3027
|
+
region: data.region
|
|
3028
|
+
},
|
|
3029
|
+
errors: {
|
|
3030
|
+
404: 'Life event not found'
|
|
1809
3031
|
}
|
|
1810
3032
|
});
|
|
1811
3033
|
}
|
|
1812
3034
|
|
|
1813
3035
|
/**
|
|
1814
|
-
*
|
|
1815
|
-
*
|
|
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.
|
|
1816
3038
|
* @param data The data for the request.
|
|
3039
|
+
* @param data.id Life event ID
|
|
3040
|
+
* @param data.region Region code for tenant context (decorative for life events)
|
|
1817
3041
|
* @param data.requestBody
|
|
1818
|
-
* @returns
|
|
3042
|
+
* @returns EventResponseDto Life event updated successfully
|
|
1819
3043
|
* @throws ApiError
|
|
1820
3044
|
*/
|
|
1821
|
-
public static
|
|
1822
|
-
data:
|
|
1823
|
-
): CancelablePromise<
|
|
3045
|
+
public static eventControllerUpdate(
|
|
3046
|
+
data: EventControllerUpdateData
|
|
3047
|
+
): CancelablePromise<EventControllerUpdateResponse> {
|
|
1824
3048
|
return __request(OpenAPI, {
|
|
1825
|
-
method: '
|
|
1826
|
-
url: '/api/v1/
|
|
3049
|
+
method: 'PUT',
|
|
3050
|
+
url: '/api/v1/{region}/bean/events/{id}',
|
|
3051
|
+
path: {
|
|
3052
|
+
id: data.id,
|
|
3053
|
+
region: data.region
|
|
3054
|
+
},
|
|
1827
3055
|
body: data.requestBody,
|
|
1828
3056
|
mediaType: 'application/json',
|
|
1829
3057
|
errors: {
|
|
1830
|
-
400: '
|
|
1831
|
-
|
|
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)'
|
|
1832
3062
|
}
|
|
1833
3063
|
});
|
|
1834
3064
|
}
|
|
1835
3065
|
|
|
1836
3066
|
/**
|
|
1837
|
-
* Delete
|
|
3067
|
+
* Delete a life event
|
|
3068
|
+
* Deletes a life event entry (hard delete). Returns 204.
|
|
1838
3069
|
* @param data The data for the request.
|
|
1839
|
-
* @param data.id
|
|
1840
|
-
* @
|
|
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
|
|
1841
3073
|
* @throws ApiError
|
|
1842
3074
|
*/
|
|
1843
|
-
public static
|
|
1844
|
-
data:
|
|
1845
|
-
): CancelablePromise<
|
|
3075
|
+
public static eventControllerDelete(
|
|
3076
|
+
data: EventControllerDeleteData
|
|
3077
|
+
): CancelablePromise<EventControllerDeleteResponse> {
|
|
1846
3078
|
return __request(OpenAPI, {
|
|
1847
3079
|
method: 'DELETE',
|
|
1848
|
-
url: '/api/v1/
|
|
3080
|
+
url: '/api/v1/{region}/bean/events/{id}',
|
|
1849
3081
|
path: {
|
|
1850
|
-
id: data.id
|
|
3082
|
+
id: data.id,
|
|
3083
|
+
region: data.region
|
|
1851
3084
|
},
|
|
1852
3085
|
errors: {
|
|
1853
|
-
|
|
3086
|
+
404: 'Life event not found'
|
|
1854
3087
|
}
|
|
1855
3088
|
});
|
|
1856
3089
|
}
|
|
1857
3090
|
|
|
1858
3091
|
/**
|
|
1859
|
-
*
|
|
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.
|
|
1860
3094
|
* @param data The data for the request.
|
|
1861
|
-
* @param data.id
|
|
1862
|
-
* @
|
|
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
|
|
1863
3100
|
* @throws ApiError
|
|
1864
3101
|
*/
|
|
1865
|
-
public static
|
|
1866
|
-
data:
|
|
1867
|
-
): CancelablePromise<
|
|
3102
|
+
public static eventControllerGetSlice(
|
|
3103
|
+
data: EventControllerGetSliceData
|
|
3104
|
+
): CancelablePromise<EventControllerGetSliceResponse> {
|
|
1868
3105
|
return __request(OpenAPI, {
|
|
1869
3106
|
method: 'GET',
|
|
1870
|
-
url: '/api/v1/
|
|
3107
|
+
url: '/api/v1/{region}/bean/events/{id}/slice',
|
|
1871
3108
|
path: {
|
|
1872
|
-
id: data.id
|
|
3109
|
+
id: data.id,
|
|
3110
|
+
region: data.region
|
|
3111
|
+
},
|
|
3112
|
+
query: {
|
|
3113
|
+
accountPattern: data.accountPattern,
|
|
3114
|
+
granularity: data.granularity
|
|
1873
3115
|
},
|
|
1874
3116
|
errors: {
|
|
1875
|
-
|
|
3117
|
+
400: 'accountPattern query param is empty',
|
|
3118
|
+
404: 'Life event not found'
|
|
1876
3119
|
}
|
|
1877
3120
|
});
|
|
1878
3121
|
}
|
|
3122
|
+
}
|
|
1879
3123
|
|
|
3124
|
+
export class OnboardingService {
|
|
1880
3125
|
/**
|
|
1881
|
-
*
|
|
3126
|
+
* Bootstrap core accounts + register asset accounts with opening balances (ADR-0113)
|
|
1882
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)
|
|
1883
3129
|
* @param data.requestBody
|
|
1884
|
-
* @returns unknown
|
|
3130
|
+
* @returns unknown Onboarding bootstrap result.
|
|
1885
3131
|
* @throws ApiError
|
|
1886
3132
|
*/
|
|
1887
|
-
public static
|
|
1888
|
-
data:
|
|
1889
|
-
): CancelablePromise<
|
|
3133
|
+
public static onboardingControllerBootstrap(
|
|
3134
|
+
data: OnboardingControllerBootstrapData
|
|
3135
|
+
): CancelablePromise<OnboardingControllerBootstrapResponse> {
|
|
1890
3136
|
return __request(OpenAPI, {
|
|
1891
|
-
method: '
|
|
1892
|
-
url: '/api/v1/
|
|
3137
|
+
method: 'POST',
|
|
3138
|
+
url: '/api/v1/{region}/bean/onboarding',
|
|
3139
|
+
path: {
|
|
3140
|
+
region: data.region
|
|
3141
|
+
},
|
|
1893
3142
|
body: data.requestBody,
|
|
1894
3143
|
mediaType: 'application/json',
|
|
1895
3144
|
errors: {
|
|
1896
|
-
|
|
3145
|
+
422: 'Invalid region/account path/duplicate paths.'
|
|
1897
3146
|
}
|
|
1898
3147
|
});
|
|
1899
3148
|
}
|
|
3149
|
+
}
|
|
1900
3150
|
|
|
3151
|
+
export class BalanceReconciliationService {
|
|
1901
3152
|
/**
|
|
1902
|
-
*
|
|
3153
|
+
* Preview reconciliation (book vs actual)
|
|
3154
|
+
* Computes book balance, diff, Beancount-inferred tolerance, and suggested action without persisting.
|
|
1903
3155
|
* @param data The data for the request.
|
|
1904
|
-
* @param data.
|
|
1905
|
-
* @param data.
|
|
1906
|
-
* @returns
|
|
3156
|
+
* @param data.region Region code for tenant context (decorative for reconciliation)
|
|
3157
|
+
* @param data.requestBody
|
|
3158
|
+
* @returns ReconciliationComputeResultDto Reconciliation preview
|
|
1907
3159
|
* @throws ApiError
|
|
1908
3160
|
*/
|
|
1909
|
-
public static
|
|
1910
|
-
data:
|
|
1911
|
-
): CancelablePromise<
|
|
3161
|
+
public static reconciliationControllerCompute(
|
|
3162
|
+
data: ReconciliationControllerComputeData
|
|
3163
|
+
): CancelablePromise<ReconciliationControllerComputeResponse> {
|
|
1912
3164
|
return __request(OpenAPI, {
|
|
1913
|
-
method: '
|
|
1914
|
-
url: '/api/v1/
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
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',
|
|
3172
|
+
errors: {
|
|
3173
|
+
404: 'Account not found'
|
|
1918
3174
|
}
|
|
1919
3175
|
});
|
|
1920
3176
|
}
|
|
1921
3177
|
|
|
1922
3178
|
/**
|
|
1923
|
-
*
|
|
1924
|
-
*
|
|
1925
|
-
* @
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
method: 'GET',
|
|
1930
|
-
url: '/api/v1/users/asset-liability-summary'
|
|
1931
|
-
});
|
|
1932
|
-
}
|
|
1933
|
-
}
|
|
1934
|
-
|
|
1935
|
-
export class PropertiesService {
|
|
1936
|
-
/**
|
|
1937
|
-
* Get all system properties
|
|
1938
|
-
* @returns unknown Properties retrieved successfully
|
|
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.
|
|
3181
|
+
* @param data The data for the request.
|
|
3182
|
+
* @param data.region Region code for tenant context (decorative for reconciliation)
|
|
3183
|
+
* @param data.requestBody
|
|
3184
|
+
* @returns ReconciliationRecordDto Balance assertion recorded
|
|
1939
3185
|
* @throws ApiError
|
|
1940
3186
|
*/
|
|
1941
|
-
public static
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
3187
|
+
public static reconciliationControllerAssert(
|
|
3188
|
+
data: ReconciliationControllerAssertData
|
|
3189
|
+
): CancelablePromise<ReconciliationControllerAssertResponse> {
|
|
3190
|
+
return __request(OpenAPI, {
|
|
3191
|
+
method: 'POST',
|
|
3192
|
+
url: '/api/v1/{region}/bean/reconciliations/assert',
|
|
3193
|
+
path: {
|
|
3194
|
+
region: data.region
|
|
3195
|
+
},
|
|
3196
|
+
body: data.requestBody,
|
|
3197
|
+
mediaType: 'application/json',
|
|
1945
3198
|
errors: {
|
|
1946
|
-
|
|
1947
|
-
403: 'Forbidden - insufficient permissions'
|
|
3199
|
+
404: 'Account not found'
|
|
1948
3200
|
}
|
|
1949
3201
|
});
|
|
1950
3202
|
}
|
|
1951
3203
|
|
|
1952
3204
|
/**
|
|
1953
|
-
*
|
|
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.
|
|
1954
3207
|
* @param data The data for the request.
|
|
1955
|
-
* @param data.
|
|
1956
|
-
* @
|
|
3208
|
+
* @param data.region Region code for tenant context (decorative for reconciliation)
|
|
3209
|
+
* @param data.requestBody
|
|
3210
|
+
* @returns PadResultDto Pad adjusting entry generated
|
|
1957
3211
|
* @throws ApiError
|
|
1958
3212
|
*/
|
|
1959
|
-
public static
|
|
1960
|
-
data:
|
|
1961
|
-
): CancelablePromise<
|
|
3213
|
+
public static reconciliationControllerPad(
|
|
3214
|
+
data: ReconciliationControllerPadData
|
|
3215
|
+
): CancelablePromise<ReconciliationControllerPadResponse> {
|
|
1962
3216
|
return __request(OpenAPI, {
|
|
1963
|
-
method: '
|
|
1964
|
-
url: '/api/v1/
|
|
3217
|
+
method: 'POST',
|
|
3218
|
+
url: '/api/v1/{region}/bean/reconciliations/pad',
|
|
1965
3219
|
path: {
|
|
1966
|
-
|
|
3220
|
+
region: data.region
|
|
1967
3221
|
},
|
|
3222
|
+
body: data.requestBody,
|
|
3223
|
+
mediaType: 'application/json',
|
|
1968
3224
|
errors: {
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
404: 'Property not found'
|
|
3225
|
+
400: 'Book already within tolerance — no pad needed',
|
|
3226
|
+
404: 'Account not found'
|
|
1972
3227
|
}
|
|
1973
3228
|
});
|
|
1974
3229
|
}
|
|
1975
3230
|
|
|
1976
3231
|
/**
|
|
1977
|
-
*
|
|
3232
|
+
* List reconciliation history for an account
|
|
3233
|
+
* Returns recorded balance assertions (most recent first). The latest drives the account-detail "Last <date>" badge.
|
|
3234
|
+
* @param data The data for the request.
|
|
3235
|
+
* @param data.accountId BeanAccount id
|
|
3236
|
+
* @param data.region Region code for tenant context (decorative for reconciliation)
|
|
3237
|
+
* @returns ReconciliationRecordDto Reconciliation history
|
|
1978
3238
|
* @throws ApiError
|
|
1979
3239
|
*/
|
|
1980
|
-
public static
|
|
3240
|
+
public static reconciliationControllerHistory(
|
|
3241
|
+
data: ReconciliationControllerHistoryData
|
|
3242
|
+
): CancelablePromise<ReconciliationControllerHistoryResponse> {
|
|
1981
3243
|
return __request(OpenAPI, {
|
|
1982
|
-
method: '
|
|
1983
|
-
url: '/api/v1/
|
|
3244
|
+
method: 'GET',
|
|
3245
|
+
url: '/api/v1/{region}/bean/accounts/{accountId}/reconciliations',
|
|
3246
|
+
path: {
|
|
3247
|
+
accountId: data.accountId,
|
|
3248
|
+
region: data.region
|
|
3249
|
+
},
|
|
3250
|
+
errors: {
|
|
3251
|
+
404: 'Account not found'
|
|
3252
|
+
}
|
|
1984
3253
|
});
|
|
1985
3254
|
}
|
|
3255
|
+
}
|
|
1986
3256
|
|
|
3257
|
+
export class BeanExportService {
|
|
1987
3258
|
/**
|
|
1988
|
-
*
|
|
3259
|
+
* Export Beancount ledger as ZIP
|
|
3260
|
+
* Export all user Beancount data as a ZIP file containing ledger.beancount and yearly files in community format.
|
|
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
|
|
1989
3264
|
* @throws ApiError
|
|
1990
3265
|
*/
|
|
1991
|
-
public static
|
|
3266
|
+
public static exportControllerExportBeancount(
|
|
3267
|
+
data: ExportControllerExportBeancountData
|
|
3268
|
+
): CancelablePromise<ExportControllerExportBeancountResponse> {
|
|
1992
3269
|
return __request(OpenAPI, {
|
|
1993
|
-
method: '
|
|
1994
|
-
url: '/api/v1/
|
|
3270
|
+
method: 'GET',
|
|
3271
|
+
url: '/api/v1/{region}/bean/export/beancount',
|
|
3272
|
+
path: {
|
|
3273
|
+
region: data.region
|
|
3274
|
+
}
|
|
1995
3275
|
});
|
|
1996
3276
|
}
|
|
1997
3277
|
}
|
|
@@ -2001,6 +3281,7 @@ export class BeanImportService {
|
|
|
2001
3281
|
* Import a bill file
|
|
2002
3282
|
* Upload and process a bill file (CSV, PDF, OFX, etc.). The system automatically identifies the file type, extracts transactions, validates them, and stores only validated transactions to the database. Maximum file size: 50MB. Only 1 import per user at a time (concurrent imports rejected with 429).
|
|
2003
3283
|
* @param data The data for the request.
|
|
3284
|
+
* @param data.region Region code for tenant context
|
|
2004
3285
|
* @param data.formData Bill file to import
|
|
2005
3286
|
* @returns ImportResultDto File imported successfully
|
|
2006
3287
|
* @throws ApiError
|
|
@@ -2011,6 +3292,9 @@ export class BeanImportService {
|
|
|
2011
3292
|
return __request(OpenAPI, {
|
|
2012
3293
|
method: 'POST',
|
|
2013
3294
|
url: '/api/v1/{region}/bean/import/file',
|
|
3295
|
+
path: {
|
|
3296
|
+
region: data.region
|
|
3297
|
+
},
|
|
2014
3298
|
formData: data.formData,
|
|
2015
3299
|
mediaType: 'multipart/form-data',
|
|
2016
3300
|
errors: {
|
|
@@ -2024,8 +3308,9 @@ export class BeanImportService {
|
|
|
2024
3308
|
|
|
2025
3309
|
/**
|
|
2026
3310
|
* Identify file type
|
|
2027
|
-
*
|
|
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.
|
|
2028
3312
|
* @param data The data for the request.
|
|
3313
|
+
* @param data.region Region code for tenant context
|
|
2029
3314
|
* @param data.formData File to identify
|
|
2030
3315
|
* @returns IdentifyResultDto File identification result
|
|
2031
3316
|
* @throws ApiError
|
|
@@ -2036,6 +3321,9 @@ export class BeanImportService {
|
|
|
2036
3321
|
return __request(OpenAPI, {
|
|
2037
3322
|
method: 'POST',
|
|
2038
3323
|
url: '/api/v1/{region}/bean/import/identify',
|
|
3324
|
+
path: {
|
|
3325
|
+
region: data.region
|
|
3326
|
+
},
|
|
2039
3327
|
formData: data.formData,
|
|
2040
3328
|
mediaType: 'multipart/form-data',
|
|
2041
3329
|
errors: {
|
|
@@ -2044,6 +3332,32 @@ export class BeanImportService {
|
|
|
2044
3332
|
});
|
|
2045
3333
|
}
|
|
2046
3334
|
|
|
3335
|
+
/**
|
|
3336
|
+
* Import a Beancount file in community format
|
|
3337
|
+
* Upload a .beancount file to import. The system parses community-format paths, converts to internal format using category metadata, auto-creates accounts, and imports transactions with deduplication. Maximum file size: 50MB. Only 1 import per user at a time.
|
|
3338
|
+
* @param data The data for the request.
|
|
3339
|
+
* @param data.region Region code for tenant context
|
|
3340
|
+
* @param data.formData Beancount file to import
|
|
3341
|
+
* @returns unknown Beancount file imported successfully
|
|
3342
|
+
* @throws ApiError
|
|
3343
|
+
*/
|
|
3344
|
+
public static fileImportControllerImportBeancount(
|
|
3345
|
+
data: FileImportControllerImportBeancountData
|
|
3346
|
+
): CancelablePromise<FileImportControllerImportBeancountResponse> {
|
|
3347
|
+
return __request(OpenAPI, {
|
|
3348
|
+
method: 'POST',
|
|
3349
|
+
url: '/api/v1/{region}/bean/import/beancount',
|
|
3350
|
+
path: {
|
|
3351
|
+
region: data.region
|
|
3352
|
+
},
|
|
3353
|
+
formData: data.formData,
|
|
3354
|
+
mediaType: 'multipart/form-data',
|
|
3355
|
+
errors: {
|
|
3356
|
+
400: 'Bad request - invalid file or no file uploaded'
|
|
3357
|
+
}
|
|
3358
|
+
});
|
|
3359
|
+
}
|
|
3360
|
+
|
|
2047
3361
|
/**
|
|
2048
3362
|
* Get importer configuration
|
|
2049
3363
|
* Returns the current configuration for the specified importer. Creates default configuration if none exists.
|
|
@@ -2071,37 +3385,55 @@ export class BeanImportService {
|
|
|
2071
3385
|
}
|
|
2072
3386
|
|
|
2073
3387
|
/**
|
|
3388
|
+
* Update importer configuration
|
|
3389
|
+
* Updates the configuration for the specified importer. Partial updates are supported.
|
|
2074
3390
|
* @param data The data for the request.
|
|
3391
|
+
* @param data.importerId Importer identifier. Supported importers: alipay, alipay-web, wechat, boc, boc-credit, ccb, cmb, cmbc, cmbc-credit, icbc, icbc-credit, hsbc-hk-credit, hsbc-hk-debit
|
|
2075
3392
|
* @param data.region Region code for tenant context
|
|
2076
|
-
* @
|
|
3393
|
+
* @param data.requestBody Partial configuration update. Only provided fields will be updated.
|
|
3394
|
+
* @returns ImporterConfigDto Configuration updated successfully
|
|
2077
3395
|
* @throws ApiError
|
|
2078
3396
|
*/
|
|
2079
|
-
public static
|
|
2080
|
-
data:
|
|
2081
|
-
): CancelablePromise<
|
|
3397
|
+
public static importerConfigControllerUpdateConfig(
|
|
3398
|
+
data: ImporterConfigControllerUpdateConfigData
|
|
3399
|
+
): CancelablePromise<ImporterConfigControllerUpdateConfigResponse> {
|
|
2082
3400
|
return __request(OpenAPI, {
|
|
2083
3401
|
method: 'PUT',
|
|
2084
3402
|
url: '/api/v1/{region}/bean/import/config/{importerId}',
|
|
2085
3403
|
path: {
|
|
3404
|
+
importerId: data.importerId,
|
|
2086
3405
|
region: data.region
|
|
3406
|
+
},
|
|
3407
|
+
body: data.requestBody,
|
|
3408
|
+
mediaType: 'application/json',
|
|
3409
|
+
errors: {
|
|
3410
|
+
400: 'Invalid input - Validation failed',
|
|
3411
|
+
404: 'Configuration not found'
|
|
2087
3412
|
}
|
|
2088
3413
|
});
|
|
2089
3414
|
}
|
|
2090
3415
|
|
|
2091
3416
|
/**
|
|
3417
|
+
* Reset configuration to default
|
|
3418
|
+
* Resets the configuration for the specified importer to default values. This operation overwrites all existing configuration.
|
|
2092
3419
|
* @param data The data for the request.
|
|
3420
|
+
* @param data.importerId Importer identifier. Supported importers: alipay, alipay-web, wechat, boc, boc-credit, ccb, cmb, cmbc, cmbc-credit, icbc, icbc-credit, hsbc-hk-credit, hsbc-hk-debit
|
|
2093
3421
|
* @param data.region Region code for tenant context
|
|
2094
|
-
* @returns
|
|
3422
|
+
* @returns ImporterConfigDto Configuration reset successfully
|
|
2095
3423
|
* @throws ApiError
|
|
2096
3424
|
*/
|
|
2097
|
-
public static
|
|
2098
|
-
data:
|
|
2099
|
-
): CancelablePromise<
|
|
3425
|
+
public static importerConfigControllerResetConfig(
|
|
3426
|
+
data: ImporterConfigControllerResetConfigData
|
|
3427
|
+
): CancelablePromise<ImporterConfigControllerResetConfigResponse> {
|
|
2100
3428
|
return __request(OpenAPI, {
|
|
2101
3429
|
method: 'POST',
|
|
2102
3430
|
url: '/api/v1/{region}/bean/import/config/{importerId}/reset',
|
|
2103
3431
|
path: {
|
|
3432
|
+
importerId: data.importerId,
|
|
2104
3433
|
region: data.region
|
|
3434
|
+
},
|
|
3435
|
+
errors: {
|
|
3436
|
+
400: 'Invalid input - Unsupported importer'
|
|
2105
3437
|
}
|
|
2106
3438
|
});
|
|
2107
3439
|
}
|
|
@@ -2133,7 +3465,7 @@ export class ProviderSyncService {
|
|
|
2133
3465
|
*
|
|
2134
3466
|
* @param data The data for the request.
|
|
2135
3467
|
* @param data.providerName Provider name
|
|
2136
|
-
* @param data.region Region code
|
|
3468
|
+
* @param data.region Region code for tenant context
|
|
2137
3469
|
* @param data.requestBody
|
|
2138
3470
|
* @returns ProviderSyncResponseDto Sync completed successfully
|
|
2139
3471
|
* @throws ApiError
|
|
@@ -2161,13 +3493,20 @@ export class ProviderSyncService {
|
|
|
2161
3493
|
/**
|
|
2162
3494
|
* Get supported providers
|
|
2163
3495
|
* Returns a list of all providers supported by the sync endpoint.
|
|
3496
|
+
* @param data The data for the request.
|
|
3497
|
+
* @param data.region Region code for tenant context
|
|
2164
3498
|
* @returns SupportedProvidersResponseDto List of supported providers
|
|
2165
3499
|
* @throws ApiError
|
|
2166
3500
|
*/
|
|
2167
|
-
public static providerSyncControllerGetSupportedProviders(
|
|
3501
|
+
public static providerSyncControllerGetSupportedProviders(
|
|
3502
|
+
data: ProviderSyncControllerGetSupportedProvidersData
|
|
3503
|
+
): CancelablePromise<ProviderSyncControllerGetSupportedProvidersResponse> {
|
|
2168
3504
|
return __request(OpenAPI, {
|
|
2169
3505
|
method: 'GET',
|
|
2170
3506
|
url: '/api/v1/{region}/bean/import/provider/supported',
|
|
3507
|
+
path: {
|
|
3508
|
+
region: data.region
|
|
3509
|
+
},
|
|
2171
3510
|
errors: {
|
|
2172
3511
|
401: 'Missing or invalid authentication'
|
|
2173
3512
|
}
|
|
@@ -2179,6 +3518,7 @@ export class ProviderSyncService {
|
|
|
2179
3518
|
* Returns whether a specific provider is supported.
|
|
2180
3519
|
* @param data The data for the request.
|
|
2181
3520
|
* @param data.providerName Provider name to check
|
|
3521
|
+
* @param data.region Region code for tenant context
|
|
2182
3522
|
* @returns unknown Provider support status
|
|
2183
3523
|
* @throws ApiError
|
|
2184
3524
|
*/
|
|
@@ -2189,7 +3529,8 @@ export class ProviderSyncService {
|
|
|
2189
3529
|
method: 'GET',
|
|
2190
3530
|
url: '/api/v1/{region}/bean/import/provider/{providerName}/supported',
|
|
2191
3531
|
path: {
|
|
2192
|
-
providerName: data.providerName
|
|
3532
|
+
providerName: data.providerName,
|
|
3533
|
+
region: data.region
|
|
2193
3534
|
},
|
|
2194
3535
|
errors: {
|
|
2195
3536
|
401: 'Missing or invalid authentication'
|
|
@@ -2198,10 +3539,106 @@ export class ProviderSyncService {
|
|
|
2198
3539
|
}
|
|
2199
3540
|
}
|
|
2200
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
|
+
|
|
2201
3637
|
export class ImportTelemetryService {
|
|
2202
3638
|
/**
|
|
2203
3639
|
* Receive anonymous parser failure telemetry
|
|
2204
3640
|
* @param data The data for the request.
|
|
3641
|
+
* @param data.region Region code for tenant context
|
|
2205
3642
|
* @param data.requestBody
|
|
2206
3643
|
* @returns unknown Telemetry report received
|
|
2207
3644
|
* @throws ApiError
|
|
@@ -2212,6 +3649,34 @@ export class ImportTelemetryService {
|
|
|
2212
3649
|
return __request(OpenAPI, {
|
|
2213
3650
|
method: 'POST',
|
|
2214
3651
|
url: '/api/v1/{region}/bean/import/parser-telemetry',
|
|
3652
|
+
path: {
|
|
3653
|
+
region: data.region
|
|
3654
|
+
},
|
|
3655
|
+
body: data.requestBody,
|
|
3656
|
+
mediaType: 'application/json',
|
|
3657
|
+
errors: {
|
|
3658
|
+
401: 'Unauthorized'
|
|
3659
|
+
}
|
|
3660
|
+
});
|
|
3661
|
+
}
|
|
3662
|
+
|
|
3663
|
+
/**
|
|
3664
|
+
* Receive anonymous zero-hit coverage miss report
|
|
3665
|
+
* @param data The data for the request.
|
|
3666
|
+
* @param data.region Region code for tenant context
|
|
3667
|
+
* @param data.requestBody
|
|
3668
|
+
* @returns unknown Coverage miss report received
|
|
3669
|
+
* @throws ApiError
|
|
3670
|
+
*/
|
|
3671
|
+
public static telemetryControllerReportCoverageMiss(
|
|
3672
|
+
data: TelemetryControllerReportCoverageMissData
|
|
3673
|
+
): CancelablePromise<TelemetryControllerReportCoverageMissResponse> {
|
|
3674
|
+
return __request(OpenAPI, {
|
|
3675
|
+
method: 'POST',
|
|
3676
|
+
url: '/api/v1/{region}/bean/import/parser-coverage-miss',
|
|
3677
|
+
path: {
|
|
3678
|
+
region: data.region
|
|
3679
|
+
},
|
|
2215
3680
|
body: data.requestBody,
|
|
2216
3681
|
mediaType: 'application/json',
|
|
2217
3682
|
errors: {
|
|
@@ -2219,6 +3684,29 @@ export class ImportTelemetryService {
|
|
|
2219
3684
|
}
|
|
2220
3685
|
});
|
|
2221
3686
|
}
|
|
3687
|
+
|
|
3688
|
+
/**
|
|
3689
|
+
* Coverage metrics (uncovered format aggregation)
|
|
3690
|
+
* @param data The data for the request.
|
|
3691
|
+
* @param data.region Region code for tenant context
|
|
3692
|
+
* @param data.topN Top-N uncovered formats (default 10)
|
|
3693
|
+
* @returns unknown Coverage metrics
|
|
3694
|
+
* @throws ApiError
|
|
3695
|
+
*/
|
|
3696
|
+
public static telemetryControllerGetCoverageMetrics(
|
|
3697
|
+
data: TelemetryControllerGetCoverageMetricsData
|
|
3698
|
+
): CancelablePromise<TelemetryControllerGetCoverageMetricsResponse> {
|
|
3699
|
+
return __request(OpenAPI, {
|
|
3700
|
+
method: 'GET',
|
|
3701
|
+
url: '/api/v1/{region}/bean/import/parser-coverage-metrics',
|
|
3702
|
+
path: {
|
|
3703
|
+
region: data.region
|
|
3704
|
+
},
|
|
3705
|
+
query: {
|
|
3706
|
+
topN: data.topN
|
|
3707
|
+
}
|
|
3708
|
+
});
|
|
3709
|
+
}
|
|
2222
3710
|
}
|
|
2223
3711
|
|
|
2224
3712
|
export class BeanNlpService {
|
|
@@ -2226,6 +3714,7 @@ export class BeanNlpService {
|
|
|
2226
3714
|
* Process natural language input
|
|
2227
3715
|
* Parse natural language text (Chinese/English) describing a transaction. Supports multi-turn dialogue for collecting missing information. When confidence < 0.75, returns "confirm" action requiring user verification. User can reply with confirmation words (确认/yes/ok) or provide corrections. Examples: "yesterday Starbucks spent 35 yuan", "today lunch 28 yuan", "spent $50 at Walmart"
|
|
2228
3716
|
* @param data The data for the request.
|
|
3717
|
+
* @param data.region Region code for tenant context
|
|
2229
3718
|
* @param data.requestBody Natural language transaction input with optional session ID
|
|
2230
3719
|
* @returns NlpResponseDto NLP processing result - either created transaction or asking for more info
|
|
2231
3720
|
* @throws ApiError
|
|
@@ -2236,6 +3725,9 @@ export class BeanNlpService {
|
|
|
2236
3725
|
return __request(OpenAPI, {
|
|
2237
3726
|
method: 'POST',
|
|
2238
3727
|
url: '/api/v1/{region}/bean/nlp/process',
|
|
3728
|
+
path: {
|
|
3729
|
+
region: data.region
|
|
3730
|
+
},
|
|
2239
3731
|
body: data.requestBody,
|
|
2240
3732
|
mediaType: 'application/json',
|
|
2241
3733
|
errors: {
|
|
@@ -2249,16 +3741,20 @@ export class BeanNlpService {
|
|
|
2249
3741
|
* Clear dialogue session
|
|
2250
3742
|
* Clear the current NLP dialogue session. Use this to cancel an ongoing multi-turn dialogue.
|
|
2251
3743
|
* @param data The data for the request.
|
|
3744
|
+
* @param data.region Region code for tenant context
|
|
2252
3745
|
* @param data.sessionId Specific session ID to clear (defaults to user session)
|
|
2253
3746
|
* @returns void Session cleared successfully
|
|
2254
3747
|
* @throws ApiError
|
|
2255
3748
|
*/
|
|
2256
3749
|
public static nlpControllerClearSession(
|
|
2257
|
-
data: NlpControllerClearSessionData
|
|
3750
|
+
data: NlpControllerClearSessionData
|
|
2258
3751
|
): CancelablePromise<NlpControllerClearSessionResponse> {
|
|
2259
3752
|
return __request(OpenAPI, {
|
|
2260
3753
|
method: 'DELETE',
|
|
2261
3754
|
url: '/api/v1/{region}/bean/nlp/session',
|
|
3755
|
+
path: {
|
|
3756
|
+
region: data.region
|
|
3757
|
+
},
|
|
2262
3758
|
query: {
|
|
2263
3759
|
sessionId: data.sessionId
|
|
2264
3760
|
},
|
|
@@ -2272,16 +3768,20 @@ export class BeanNlpService {
|
|
|
2272
3768
|
* Get current session state
|
|
2273
3769
|
* Get the current NLP dialogue session state. Useful for debugging and displaying session context in UI.
|
|
2274
3770
|
* @param data The data for the request.
|
|
3771
|
+
* @param data.region Region code for tenant context
|
|
2275
3772
|
* @param data.sessionId Specific session ID to get (defaults to user session)
|
|
2276
3773
|
* @returns unknown Current session state (or null if no active session)
|
|
2277
3774
|
* @throws ApiError
|
|
2278
3775
|
*/
|
|
2279
3776
|
public static nlpControllerGetSession(
|
|
2280
|
-
data: NlpControllerGetSessionData
|
|
3777
|
+
data: NlpControllerGetSessionData
|
|
2281
3778
|
): CancelablePromise<NlpControllerGetSessionResponse> {
|
|
2282
3779
|
return __request(OpenAPI, {
|
|
2283
3780
|
method: 'GET',
|
|
2284
3781
|
url: '/api/v1/{region}/bean/nlp/session',
|
|
3782
|
+
path: {
|
|
3783
|
+
region: data.region
|
|
3784
|
+
},
|
|
2285
3785
|
query: {
|
|
2286
3786
|
sessionId: data.sessionId
|
|
2287
3787
|
},
|
|
@@ -2306,162 +3806,135 @@ export class BeanPlatformsService {
|
|
|
2306
3806
|
}
|
|
2307
3807
|
|
|
2308
3808
|
/**
|
|
2309
|
-
*
|
|
3809
|
+
* Create a new platform
|
|
3810
|
+
* @param data The data for the request.
|
|
3811
|
+
* @param data.requestBody
|
|
3812
|
+
* @returns unknown Platform created successfully
|
|
2310
3813
|
* @throws ApiError
|
|
2311
3814
|
*/
|
|
2312
|
-
public static
|
|
3815
|
+
public static platformControllerCreate(
|
|
3816
|
+
data: PlatformControllerCreateData
|
|
3817
|
+
): CancelablePromise<PlatformControllerCreateResponse> {
|
|
2313
3818
|
return __request(OpenAPI, {
|
|
2314
3819
|
method: 'POST',
|
|
2315
|
-
url: '/api/v1/bean/platforms'
|
|
3820
|
+
url: '/api/v1/bean/platforms',
|
|
3821
|
+
body: data.requestBody,
|
|
3822
|
+
mediaType: 'application/json',
|
|
3823
|
+
errors: {
|
|
3824
|
+
409: 'Platform already exists'
|
|
3825
|
+
}
|
|
2316
3826
|
});
|
|
2317
3827
|
}
|
|
2318
3828
|
|
|
2319
3829
|
/**
|
|
2320
3830
|
* Get platform list for current user
|
|
2321
|
-
* @returns unknown List of platforms with user binding status
|
|
2322
|
-
* @throws ApiError
|
|
2323
|
-
*/
|
|
2324
|
-
public static platformControllerGetPlatformList(): CancelablePromise<PlatformControllerGetPlatformListResponse> {
|
|
2325
|
-
return __request(OpenAPI, {
|
|
2326
|
-
method: 'GET',
|
|
2327
|
-
url: '/api/v1/bean/platforms/list'
|
|
2328
|
-
});
|
|
2329
|
-
}
|
|
2330
|
-
|
|
2331
|
-
/**
|
|
2332
|
-
* @returns unknown
|
|
2333
|
-
* @throws ApiError
|
|
2334
|
-
*/
|
|
2335
|
-
public static platformController1(): CancelablePromise<PlatformController1Response> {
|
|
2336
|
-
return __request(OpenAPI, {
|
|
2337
|
-
method: 'PUT',
|
|
2338
|
-
url: '/api/v1/bean/platforms/{id}'
|
|
2339
|
-
});
|
|
2340
|
-
}
|
|
2341
|
-
|
|
2342
|
-
/**
|
|
2343
|
-
* @returns void
|
|
2344
|
-
* @throws ApiError
|
|
2345
|
-
*/
|
|
2346
|
-
public static platformController2(): CancelablePromise<PlatformController2Response> {
|
|
2347
|
-
return __request(OpenAPI, {
|
|
2348
|
-
method: 'DELETE',
|
|
2349
|
-
url: '/api/v1/bean/platforms/{id}'
|
|
2350
|
-
});
|
|
2351
|
-
}
|
|
2352
|
-
}
|
|
2353
|
-
|
|
2354
|
-
export class SymbolsService {
|
|
2355
|
-
/**
|
|
2356
|
-
* Search for symbols
|
|
2357
|
-
* Search symbols by query with optional filters for asset class, area, and indices
|
|
2358
3831
|
* @param data The data for the request.
|
|
2359
|
-
* @param data.
|
|
2360
|
-
* @
|
|
2361
|
-
* @param data.assetClass Asset class filter
|
|
2362
|
-
* @param data.area Geographic area filter (e.g., CN, US)
|
|
2363
|
-
* @param data.query Search query string
|
|
2364
|
-
* @returns unknown Symbols found 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
|
|
2365
3834
|
* @throws ApiError
|
|
2366
3835
|
*/
|
|
2367
|
-
public static
|
|
2368
|
-
data:
|
|
2369
|
-
): CancelablePromise<
|
|
3836
|
+
public static platformControllerGetPlatformList(
|
|
3837
|
+
data: PlatformControllerGetPlatformListData = {}
|
|
3838
|
+
): CancelablePromise<PlatformControllerGetPlatformListResponse> {
|
|
2370
3839
|
return __request(OpenAPI, {
|
|
2371
3840
|
method: 'GET',
|
|
2372
|
-
url: '/api/v1/
|
|
3841
|
+
url: '/api/v1/bean/platforms/list',
|
|
2373
3842
|
query: {
|
|
2374
|
-
|
|
2375
|
-
assetSubClass: data.assetSubClass,
|
|
2376
|
-
assetClass: data.assetClass,
|
|
2377
|
-
area: data.area,
|
|
2378
|
-
query: data.query
|
|
2379
|
-
},
|
|
2380
|
-
errors: {
|
|
2381
|
-
400: 'Invalid query parameters'
|
|
3843
|
+
region: data.region
|
|
2382
3844
|
}
|
|
2383
3845
|
});
|
|
2384
3846
|
}
|
|
2385
3847
|
|
|
2386
3848
|
/**
|
|
2387
|
-
*
|
|
2388
|
-
* Retrieve detailed symbol information including optional historical data
|
|
3849
|
+
* Match platforms by name or alias
|
|
2389
3850
|
* @param data The data for the request.
|
|
2390
|
-
* @param data.
|
|
2391
|
-
* @param data.
|
|
2392
|
-
* @
|
|
2393
|
-
* @returns unknown Symbol data 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
|
|
2394
3854
|
* @throws ApiError
|
|
2395
3855
|
*/
|
|
2396
|
-
public static
|
|
2397
|
-
data:
|
|
2398
|
-
): CancelablePromise<
|
|
3856
|
+
public static platformControllerMatchPlatforms(
|
|
3857
|
+
data: PlatformControllerMatchPlatformsData
|
|
3858
|
+
): CancelablePromise<PlatformControllerMatchPlatformsResponse> {
|
|
2399
3859
|
return __request(OpenAPI, {
|
|
2400
3860
|
method: 'GET',
|
|
2401
|
-
url: '/api/v1/
|
|
2402
|
-
path: {
|
|
2403
|
-
dataSource: data.dataSource,
|
|
2404
|
-
symbol: data.symbol
|
|
2405
|
-
},
|
|
3861
|
+
url: '/api/v1/bean/platforms/match',
|
|
2406
3862
|
query: {
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
errors: {
|
|
2410
|
-
400: 'Invalid data source',
|
|
2411
|
-
404: 'Symbol not found'
|
|
3863
|
+
q: data.q,
|
|
3864
|
+
region: data.region
|
|
2412
3865
|
}
|
|
2413
3866
|
});
|
|
2414
3867
|
}
|
|
2415
3868
|
|
|
2416
3869
|
/**
|
|
2417
|
-
*
|
|
2418
|
-
* Retrieve historical symbol data for a specific date
|
|
3870
|
+
* Get the region and candidate account standards for a platform
|
|
2419
3871
|
* @param data The data for the request.
|
|
2420
|
-
* @param data.
|
|
2421
|
-
* @param data.
|
|
2422
|
-
* @param data.
|
|
2423
|
-
* @returns
|
|
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)
|
|
2424
3876
|
* @throws ApiError
|
|
2425
3877
|
*/
|
|
2426
|
-
public static
|
|
2427
|
-
data:
|
|
2428
|
-
): CancelablePromise<
|
|
3878
|
+
public static platformControllerGetPlatformStandards(
|
|
3879
|
+
data: PlatformControllerGetPlatformStandardsData
|
|
3880
|
+
): CancelablePromise<PlatformControllerGetPlatformStandardsResponse> {
|
|
2429
3881
|
return __request(OpenAPI, {
|
|
2430
3882
|
method: 'GET',
|
|
2431
|
-
url: '/api/v1/
|
|
3883
|
+
url: '/api/v1/bean/platforms/{id}/standards',
|
|
2432
3884
|
path: {
|
|
2433
|
-
|
|
2434
|
-
dateString: data.dateString,
|
|
2435
|
-
symbol: data.symbol
|
|
3885
|
+
id: data.id
|
|
2436
3886
|
},
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
3887
|
+
query: {
|
|
3888
|
+
region: data.region,
|
|
3889
|
+
type: data.type
|
|
2440
3890
|
}
|
|
2441
3891
|
});
|
|
2442
3892
|
}
|
|
2443
3893
|
|
|
2444
3894
|
/**
|
|
2445
|
-
*
|
|
3895
|
+
* Update a platform
|
|
3896
|
+
* @param data The data for the request.
|
|
3897
|
+
* @param data.id Platform ID
|
|
3898
|
+
* @param data.requestBody
|
|
3899
|
+
* @returns unknown Platform updated successfully
|
|
2446
3900
|
* @throws ApiError
|
|
2447
3901
|
*/
|
|
2448
|
-
public static
|
|
3902
|
+
public static platformControllerUpdate(
|
|
3903
|
+
data: PlatformControllerUpdateData
|
|
3904
|
+
): CancelablePromise<PlatformControllerUpdateResponse> {
|
|
2449
3905
|
return __request(OpenAPI, {
|
|
2450
3906
|
method: 'PUT',
|
|
2451
|
-
url: '/api/v1/
|
|
3907
|
+
url: '/api/v1/bean/platforms/{id}',
|
|
3908
|
+
path: {
|
|
3909
|
+
id: data.id
|
|
3910
|
+
},
|
|
3911
|
+
body: data.requestBody,
|
|
3912
|
+
mediaType: 'application/json',
|
|
3913
|
+
errors: {
|
|
3914
|
+
404: 'Platform not found'
|
|
3915
|
+
}
|
|
2452
3916
|
});
|
|
2453
3917
|
}
|
|
2454
|
-
}
|
|
2455
3918
|
|
|
2456
|
-
export class DefaultService {
|
|
2457
3919
|
/**
|
|
2458
|
-
*
|
|
3920
|
+
* Delete a platform
|
|
3921
|
+
* @param data The data for the request.
|
|
3922
|
+
* @param data.id Platform ID
|
|
3923
|
+
* @returns void Platform deleted successfully
|
|
2459
3924
|
* @throws ApiError
|
|
2460
3925
|
*/
|
|
2461
|
-
public static
|
|
3926
|
+
public static platformControllerDelete(
|
|
3927
|
+
data: PlatformControllerDeleteData
|
|
3928
|
+
): CancelablePromise<PlatformControllerDeleteResponse> {
|
|
2462
3929
|
return __request(OpenAPI, {
|
|
2463
|
-
method: '
|
|
2464
|
-
url: '/api/v1/
|
|
3930
|
+
method: 'DELETE',
|
|
3931
|
+
url: '/api/v1/bean/platforms/{id}',
|
|
3932
|
+
path: {
|
|
3933
|
+
id: data.id
|
|
3934
|
+
},
|
|
3935
|
+
errors: {
|
|
3936
|
+
404: 'Platform not found'
|
|
3937
|
+
}
|
|
2465
3938
|
});
|
|
2466
3939
|
}
|
|
2467
3940
|
}
|
|
@@ -2471,16 +3944,20 @@ export class DashboardService {
|
|
|
2471
3944
|
* Get net worth overview
|
|
2472
3945
|
* Returns total net worth with breakdown of assets and liabilities
|
|
2473
3946
|
* @param data The data for the request.
|
|
3947
|
+
* @param data.region Region code for tenant context
|
|
2474
3948
|
* @param data.date Date for balance calculation (ISO 8601 format)
|
|
2475
3949
|
* @returns NetWorthResponseDto Net worth retrieved successfully
|
|
2476
3950
|
* @throws ApiError
|
|
2477
3951
|
*/
|
|
2478
3952
|
public static dashboardControllerGetNetWorth(
|
|
2479
|
-
data: DashboardControllerGetNetWorthData
|
|
3953
|
+
data: DashboardControllerGetNetWorthData
|
|
2480
3954
|
): CancelablePromise<DashboardControllerGetNetWorthResponse> {
|
|
2481
3955
|
return __request(OpenAPI, {
|
|
2482
3956
|
method: 'GET',
|
|
2483
3957
|
url: '/api/v1/{region}/dashboard/net-worth',
|
|
3958
|
+
path: {
|
|
3959
|
+
region: data.region
|
|
3960
|
+
},
|
|
2484
3961
|
query: {
|
|
2485
3962
|
date: data.date
|
|
2486
3963
|
},
|
|
@@ -2494,20 +3971,26 @@ export class DashboardService {
|
|
|
2494
3971
|
* Get accounts grouped by platform
|
|
2495
3972
|
* Returns accounts with balances grouped by financial platform
|
|
2496
3973
|
* @param data The data for the request.
|
|
3974
|
+
* @param data.region Region code for tenant context
|
|
2497
3975
|
* @param data.groupBy Grouping strategy
|
|
2498
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)
|
|
2499
3978
|
* @returns unknown Accounts retrieved successfully. Response type depends on groupBy parameter.
|
|
2500
3979
|
* @throws ApiError
|
|
2501
3980
|
*/
|
|
2502
3981
|
public static dashboardControllerGetAccounts(
|
|
2503
|
-
data: DashboardControllerGetAccountsData
|
|
3982
|
+
data: DashboardControllerGetAccountsData
|
|
2504
3983
|
): CancelablePromise<DashboardControllerGetAccountsResponse> {
|
|
2505
3984
|
return __request(OpenAPI, {
|
|
2506
3985
|
method: 'GET',
|
|
2507
3986
|
url: '/api/v1/{region}/dashboard/accounts',
|
|
3987
|
+
path: {
|
|
3988
|
+
region: data.region
|
|
3989
|
+
},
|
|
2508
3990
|
query: {
|
|
2509
3991
|
groupBy: data.groupBy,
|
|
2510
|
-
date: data.date
|
|
3992
|
+
date: data.date,
|
|
3993
|
+
accountId: data.accountId
|
|
2511
3994
|
},
|
|
2512
3995
|
errors: {
|
|
2513
3996
|
401: 'User not authenticated'
|
|
@@ -2520,6 +4003,7 @@ export class DashboardService {
|
|
|
2520
4003
|
* Returns income, expenses, and savings for a monthly period
|
|
2521
4004
|
* @param data The data for the request.
|
|
2522
4005
|
* @param data.period Period in YYYY-MM format
|
|
4006
|
+
* @param data.region Region code for tenant context
|
|
2523
4007
|
* @returns CashFlowResponseDto Cash flow retrieved successfully
|
|
2524
4008
|
* @throws ApiError
|
|
2525
4009
|
*/
|
|
@@ -2529,6 +4013,9 @@ export class DashboardService {
|
|
|
2529
4013
|
return __request(OpenAPI, {
|
|
2530
4014
|
method: 'GET',
|
|
2531
4015
|
url: '/api/v1/{region}/dashboard/cash-flow',
|
|
4016
|
+
path: {
|
|
4017
|
+
region: data.region
|
|
4018
|
+
},
|
|
2532
4019
|
query: {
|
|
2533
4020
|
period: data.period
|
|
2534
4021
|
},
|
|
@@ -2538,112 +4025,97 @@ export class DashboardService {
|
|
|
2538
4025
|
}
|
|
2539
4026
|
});
|
|
2540
4027
|
}
|
|
2541
|
-
}
|
|
2542
4028
|
|
|
2543
|
-
export class ReportingService {
|
|
2544
4029
|
/**
|
|
2545
|
-
* Get
|
|
2546
|
-
*
|
|
2547
|
-
* Returns time series data of portfolio net worth.
|
|
2548
|
-
*
|
|
2549
|
-
* **Multi-currency Support:**
|
|
2550
|
-
* - `series[].byCurrency` - Currency breakdown for each data point
|
|
2551
|
-
* - `byCurrency` - Separate time series grouped by currency
|
|
2552
|
-
* - `warnings` - Exchange rate warnings if conversion failed
|
|
2553
|
-
*
|
|
2554
|
-
* **Parameters:**
|
|
2555
|
-
* - `period`: Time period (1m, 3m, 6m, 1y)
|
|
2556
|
-
* - `granularity`: Data granularity (day, week, month)
|
|
2557
|
-
*
|
|
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)
|
|
2558
4032
|
* @param data The data for the request.
|
|
2559
|
-
* @param data.
|
|
2560
|
-
* @param data.
|
|
2561
|
-
* @
|
|
4033
|
+
* @param data.region Region code for tenant context
|
|
4034
|
+
* @param data.groupBy Grouping strategy
|
|
4035
|
+
* @param data.period Time window (1m = current calendar month)
|
|
4036
|
+
* @param data.flow Account root to aggregate (expense → ^Expenses:, income → ^Income:)
|
|
4037
|
+
* @returns ExpensesByCategoryResponseDto Expenses retrieved successfully
|
|
2562
4038
|
* @throws ApiError
|
|
2563
4039
|
*/
|
|
2564
|
-
public static
|
|
2565
|
-
data:
|
|
2566
|
-
): CancelablePromise<
|
|
4040
|
+
public static dashboardControllerGetExpenses(
|
|
4041
|
+
data: DashboardControllerGetExpensesData
|
|
4042
|
+
): CancelablePromise<DashboardControllerGetExpensesResponse> {
|
|
2567
4043
|
return __request(OpenAPI, {
|
|
2568
4044
|
method: 'GET',
|
|
2569
|
-
url: '/api/v1/{region}/
|
|
4045
|
+
url: '/api/v1/{region}/dashboard/expenses',
|
|
4046
|
+
path: {
|
|
4047
|
+
region: data.region
|
|
4048
|
+
},
|
|
2570
4049
|
query: {
|
|
4050
|
+
groupBy: data.groupBy,
|
|
2571
4051
|
period: data.period,
|
|
2572
|
-
|
|
4052
|
+
flow: data.flow
|
|
2573
4053
|
},
|
|
2574
4054
|
errors: {
|
|
4055
|
+
400: 'Invalid groupBy or period',
|
|
2575
4056
|
401: 'User not authenticated'
|
|
2576
4057
|
}
|
|
2577
4058
|
});
|
|
2578
4059
|
}
|
|
2579
4060
|
|
|
2580
4061
|
/**
|
|
2581
|
-
*
|
|
2582
|
-
*
|
|
2583
|
-
* Manually generate a portfolio snapshot for a specific date.
|
|
2584
|
-
*
|
|
2585
|
-
* **Multi-currency Support:**
|
|
2586
|
-
* - Fetches balances grouped by currency
|
|
2587
|
-
* - Uses user's baseCurrency setting for conversion
|
|
2588
|
-
* - Stores exchange rates and warnings
|
|
2589
|
-
*
|
|
2590
|
-
* **Use Cases:**
|
|
2591
|
-
* - Testing snapshot generation
|
|
2592
|
-
* - Force regeneration after data correction
|
|
2593
|
-
* - Initial setup for new users
|
|
2594
|
-
*
|
|
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
|
|
2595
4064
|
* @param data The data for the request.
|
|
2596
|
-
* @param data.
|
|
2597
|
-
* @
|
|
4065
|
+
* @param data.region Region code for tenant context
|
|
4066
|
+
* @param data.date As-of date for the snapshot and the trailing-12m window anchor (ISO 8601 format)
|
|
4067
|
+
* @returns AdvisorContextResponseDto Advisor context retrieved successfully
|
|
2598
4068
|
* @throws ApiError
|
|
2599
4069
|
*/
|
|
2600
|
-
public static
|
|
2601
|
-
data:
|
|
2602
|
-
): CancelablePromise<
|
|
4070
|
+
public static dashboardControllerGetAdvisorContext(
|
|
4071
|
+
data: DashboardControllerGetAdvisorContextData
|
|
4072
|
+
): CancelablePromise<DashboardControllerGetAdvisorContextResponse> {
|
|
2603
4073
|
return __request(OpenAPI, {
|
|
2604
|
-
method: '
|
|
2605
|
-
url: '/api/v1/{region}/
|
|
2606
|
-
|
|
2607
|
-
|
|
4074
|
+
method: 'GET',
|
|
4075
|
+
url: '/api/v1/{region}/dashboard/advisor-context',
|
|
4076
|
+
path: {
|
|
4077
|
+
region: data.region
|
|
4078
|
+
},
|
|
4079
|
+
query: {
|
|
4080
|
+
date: data.date
|
|
4081
|
+
},
|
|
2608
4082
|
errors: {
|
|
2609
4083
|
400: 'Invalid date format',
|
|
2610
|
-
401: 'User not authenticated'
|
|
4084
|
+
401: 'User not authenticated, or the token is not advisor-scoped (exchange via POST /auth/sessions/advisor, #1512)'
|
|
2611
4085
|
}
|
|
2612
4086
|
});
|
|
2613
4087
|
}
|
|
4088
|
+
}
|
|
2614
4089
|
|
|
4090
|
+
export class InvestmentService {
|
|
2615
4091
|
/**
|
|
2616
|
-
*
|
|
2617
|
-
*
|
|
2618
|
-
* Generate snapshots for a date range (historical data backfill).
|
|
2619
|
-
*
|
|
2620
|
-
* **Multi-currency Support:**
|
|
2621
|
-
* - Each snapshot includes multi-currency data
|
|
2622
|
-
* - Uses exchange rates available at generation time
|
|
2623
|
-
* - Warnings stored for missing exchange rates
|
|
2624
|
-
*
|
|
2625
|
-
* **Best Practices:**
|
|
2626
|
-
* - Use for initial setup after account configuration
|
|
2627
|
-
* - Run during low-traffic periods for large date ranges
|
|
2628
|
-
* - Existing snapshots are skipped (not regenerated)
|
|
2629
|
-
*
|
|
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).
|
|
2630
4094
|
* @param data The data for the request.
|
|
2631
|
-
* @param data.
|
|
2632
|
-
* @
|
|
4095
|
+
* @param data.region Region code for tenant context
|
|
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
|
|
2633
4100
|
* @throws ApiError
|
|
2634
4101
|
*/
|
|
2635
|
-
public static
|
|
2636
|
-
data:
|
|
2637
|
-
): CancelablePromise<
|
|
4102
|
+
public static holdingPnlControllerGetHoldingPnl(
|
|
4103
|
+
data: HoldingPnlControllerGetHoldingPnlData
|
|
4104
|
+
): CancelablePromise<HoldingPnlControllerGetHoldingPnlResponse> {
|
|
2638
4105
|
return __request(OpenAPI, {
|
|
2639
|
-
method: '
|
|
2640
|
-
url: '/api/v1/{region}/
|
|
2641
|
-
|
|
2642
|
-
|
|
4106
|
+
method: 'GET',
|
|
4107
|
+
url: '/api/v1/{region}/investment/holdings/pnl',
|
|
4108
|
+
path: {
|
|
4109
|
+
region: data.region
|
|
4110
|
+
},
|
|
4111
|
+
query: {
|
|
4112
|
+
asOf: data.asOf,
|
|
4113
|
+
accountId: data.accountId,
|
|
4114
|
+
method: data.method
|
|
4115
|
+
},
|
|
2643
4116
|
errors: {
|
|
2644
|
-
400: 'Invalid date format or
|
|
2645
|
-
401: 'User not authenticated'
|
|
2646
|
-
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'
|
|
2647
4119
|
}
|
|
2648
4120
|
});
|
|
2649
4121
|
}
|
|
@@ -2651,13 +4123,18 @@ export class ReportingService {
|
|
|
2651
4123
|
|
|
2652
4124
|
export class ApiKeysService {
|
|
2653
4125
|
/**
|
|
2654
|
-
*
|
|
4126
|
+
* Create API key
|
|
4127
|
+
* Generates a new API key for the authenticated user
|
|
4128
|
+
* @returns unknown API key created successfully
|
|
2655
4129
|
* @throws ApiError
|
|
2656
4130
|
*/
|
|
2657
|
-
public static
|
|
4131
|
+
public static apiKeysControllerCreateApiKey(): CancelablePromise<ApiKeysControllerCreateApiKeyResponse> {
|
|
2658
4132
|
return __request(OpenAPI, {
|
|
2659
4133
|
method: 'POST',
|
|
2660
|
-
url: '/api/v1/auth/api-keys'
|
|
4134
|
+
url: '/api/v1/auth/api-keys',
|
|
4135
|
+
errors: {
|
|
4136
|
+
403: 'Insufficient permissions to create API key'
|
|
4137
|
+
}
|
|
2661
4138
|
});
|
|
2662
4139
|
}
|
|
2663
4140
|
}
|
|
@@ -2667,7 +4144,7 @@ export class AuthService {
|
|
|
2667
4144
|
* Anonymous login with access token
|
|
2668
4145
|
* @param data The data for the request.
|
|
2669
4146
|
* @param data.requestBody
|
|
2670
|
-
* @returns
|
|
4147
|
+
* @returns AnonymousLoginResponseDto Login successful
|
|
2671
4148
|
* @throws ApiError
|
|
2672
4149
|
*/
|
|
2673
4150
|
public static authControllerAccessTokenLogin(
|
|
@@ -2683,6 +4160,77 @@ export class AuthService {
|
|
|
2683
4160
|
}
|
|
2684
4161
|
});
|
|
2685
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
|
+
}
|
|
4216
|
+
}
|
|
4217
|
+
|
|
4218
|
+
export class AdminCacheService {
|
|
4219
|
+
/**
|
|
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
|
|
4223
|
+
* @throws ApiError
|
|
4224
|
+
*/
|
|
4225
|
+
public static cacheControllerFlushCache(): CancelablePromise<CacheControllerFlushCacheResponse> {
|
|
4226
|
+
return __request(OpenAPI, {
|
|
4227
|
+
method: 'POST',
|
|
4228
|
+
url: '/api/v1/cache/flush',
|
|
4229
|
+
errors: {
|
|
4230
|
+
403: 'Admin access required'
|
|
4231
|
+
}
|
|
4232
|
+
});
|
|
4233
|
+
}
|
|
2686
4234
|
}
|
|
2687
4235
|
|
|
2688
4236
|
export class ExchangeRateService {
|
|
@@ -2743,6 +4291,21 @@ export class HealthService {
|
|
|
2743
4291
|
});
|
|
2744
4292
|
}
|
|
2745
4293
|
|
|
4294
|
+
/**
|
|
4295
|
+
* Check OpenBB schema status
|
|
4296
|
+
* @returns unknown OpenBB status
|
|
4297
|
+
* @throws ApiError
|
|
4298
|
+
*/
|
|
4299
|
+
public static healthControllerCheckOpenBb(): CancelablePromise<HealthControllerCheckOpenBbResponse> {
|
|
4300
|
+
return __request(OpenAPI, {
|
|
4301
|
+
method: 'GET',
|
|
4302
|
+
url: '/api/v1/health/openbb',
|
|
4303
|
+
errors: {
|
|
4304
|
+
503: 'OpenBB unavailable'
|
|
4305
|
+
}
|
|
4306
|
+
});
|
|
4307
|
+
}
|
|
4308
|
+
|
|
2746
4309
|
/**
|
|
2747
4310
|
* Check Redis connection health
|
|
2748
4311
|
* @returns unknown Redis is healthy
|
|
@@ -2811,69 +4374,6 @@ export class HealthService {
|
|
|
2811
4374
|
}
|
|
2812
4375
|
});
|
|
2813
4376
|
}
|
|
2814
|
-
|
|
2815
|
-
/**
|
|
2816
|
-
* Check health of a specific data enhancer
|
|
2817
|
-
* @param data The data for the request.
|
|
2818
|
-
* @param data.name Data enhancer name
|
|
2819
|
-
* @returns unknown Data enhancer is healthy
|
|
2820
|
-
* @throws ApiError
|
|
2821
|
-
*/
|
|
2822
|
-
public static healthControllerGetHealthOfDataEnhancer(
|
|
2823
|
-
data: HealthControllerGetHealthOfDataEnhancerData
|
|
2824
|
-
): CancelablePromise<HealthControllerGetHealthOfDataEnhancerResponse> {
|
|
2825
|
-
return __request(OpenAPI, {
|
|
2826
|
-
method: 'GET',
|
|
2827
|
-
url: '/api/v1/health/data-enhancer/{name}',
|
|
2828
|
-
path: {
|
|
2829
|
-
name: data.name
|
|
2830
|
-
},
|
|
2831
|
-
errors: {
|
|
2832
|
-
401: 'Unauthorized',
|
|
2833
|
-
503: 'Data enhancer unavailable'
|
|
2834
|
-
}
|
|
2835
|
-
});
|
|
2836
|
-
}
|
|
2837
|
-
|
|
2838
|
-
/**
|
|
2839
|
-
* Check health of all data providers
|
|
2840
|
-
* @returns unknown Data providers health status
|
|
2841
|
-
* @throws ApiError
|
|
2842
|
-
*/
|
|
2843
|
-
public static healthControllerCheckDataProviders(): CancelablePromise<HealthControllerCheckDataProvidersResponse> {
|
|
2844
|
-
return __request(OpenAPI, {
|
|
2845
|
-
method: 'GET',
|
|
2846
|
-
url: '/api/v1/health/data-providers',
|
|
2847
|
-
errors: {
|
|
2848
|
-
401: 'Unauthorized',
|
|
2849
|
-
503: 'Data providers check failed'
|
|
2850
|
-
}
|
|
2851
|
-
});
|
|
2852
|
-
}
|
|
2853
|
-
|
|
2854
|
-
/**
|
|
2855
|
-
* Check health of a specific data provider
|
|
2856
|
-
* @param data The data for the request.
|
|
2857
|
-
* @param data.dataSource Data source identifier
|
|
2858
|
-
* @returns unknown Data provider is healthy
|
|
2859
|
-
* @throws ApiError
|
|
2860
|
-
*/
|
|
2861
|
-
public static healthControllerGetHealthOfDataProvider(
|
|
2862
|
-
data: HealthControllerGetHealthOfDataProviderData
|
|
2863
|
-
): CancelablePromise<HealthControllerGetHealthOfDataProviderResponse> {
|
|
2864
|
-
return __request(OpenAPI, {
|
|
2865
|
-
method: 'GET',
|
|
2866
|
-
url: '/api/v1/health/data-provider/{dataSource}',
|
|
2867
|
-
path: {
|
|
2868
|
-
dataSource: data.dataSource
|
|
2869
|
-
},
|
|
2870
|
-
errors: {
|
|
2871
|
-
400: 'Invalid data source',
|
|
2872
|
-
401: 'Unauthorized',
|
|
2873
|
-
503: 'Data provider unavailable'
|
|
2874
|
-
}
|
|
2875
|
-
});
|
|
2876
|
-
}
|
|
2877
4377
|
}
|
|
2878
4378
|
|
|
2879
4379
|
export class InfoService {
|
|
@@ -2890,92 +4390,52 @@ export class InfoService {
|
|
|
2890
4390
|
}
|
|
2891
4391
|
}
|
|
2892
4392
|
|
|
2893
|
-
export class
|
|
2894
|
-
/**
|
|
2895
|
-
* Get asset logo by data source and symbol
|
|
2896
|
-
* @param data The data for the request.
|
|
2897
|
-
* @param data.dataSource Data source identifier (e.g., YAHOO, COINGECKO)
|
|
2898
|
-
* @param data.symbol Asset symbol (e.g., AAPL, BTC)
|
|
2899
|
-
* @returns unknown Logo image stream (favicon)
|
|
2900
|
-
* @throws ApiError
|
|
2901
|
-
*/
|
|
2902
|
-
public static logoControllerGetLogoByDataSourceAndSymbol(
|
|
2903
|
-
data: LogoControllerGetLogoByDataSourceAndSymbolData
|
|
2904
|
-
): CancelablePromise<LogoControllerGetLogoByDataSourceAndSymbolResponse> {
|
|
2905
|
-
return __request(OpenAPI, {
|
|
2906
|
-
method: 'GET',
|
|
2907
|
-
url: '/api/v1/market/logos/{dataSource}/{symbol}',
|
|
2908
|
-
path: {
|
|
2909
|
-
dataSource: data.dataSource,
|
|
2910
|
-
symbol: data.symbol
|
|
2911
|
-
},
|
|
2912
|
-
errors: {
|
|
2913
|
-
401: 'Unauthorized',
|
|
2914
|
-
404: 'Logo not found for the specified asset',
|
|
2915
|
-
503: 'Service unavailable'
|
|
2916
|
-
}
|
|
2917
|
-
});
|
|
2918
|
-
}
|
|
2919
|
-
|
|
4393
|
+
export class MarketDataService {
|
|
2920
4394
|
/**
|
|
2921
|
-
*
|
|
4395
|
+
* Search market symbols by name or code
|
|
4396
|
+
* Ranked search over the openbb catalog. Empty `q` returns [].
|
|
2922
4397
|
* @param data The data for the request.
|
|
2923
|
-
* @param data.
|
|
2924
|
-
* @
|
|
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
|
|
2925
4403
|
* @throws ApiError
|
|
2926
4404
|
*/
|
|
2927
|
-
public static
|
|
2928
|
-
data:
|
|
2929
|
-
): CancelablePromise<
|
|
4405
|
+
public static symbolControllerSearch(
|
|
4406
|
+
data: SymbolControllerSearchData
|
|
4407
|
+
): CancelablePromise<SymbolControllerSearchResponse> {
|
|
2930
4408
|
return __request(OpenAPI, {
|
|
2931
4409
|
method: 'GET',
|
|
2932
|
-
url: '/api/v1/market/
|
|
4410
|
+
url: '/api/v1/market/symbols/search',
|
|
2933
4411
|
query: {
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
503: 'Service unavailable'
|
|
4412
|
+
q: data.q,
|
|
4413
|
+
limit: data.limit,
|
|
4414
|
+
exchange: data.exchange,
|
|
4415
|
+
assetType: data.assetType
|
|
2939
4416
|
}
|
|
2940
4417
|
});
|
|
2941
4418
|
}
|
|
2942
|
-
}
|
|
2943
4419
|
|
|
2944
|
-
export class MarketDataService {
|
|
2945
4420
|
/**
|
|
2946
|
-
* Get market
|
|
2947
|
-
* Retrieves market data and asset profile for a given symbol and data source
|
|
4421
|
+
* Get a market symbol quote
|
|
2948
4422
|
* @param data The data for the request.
|
|
2949
|
-
* @param data.
|
|
2950
|
-
* @
|
|
2951
|
-
* @returns unknown Market data retrieved successfully
|
|
4423
|
+
* @param data.symbol
|
|
4424
|
+
* @returns SymbolQuoteDto Symbol quote
|
|
2952
4425
|
* @throws ApiError
|
|
2953
4426
|
*/
|
|
2954
|
-
public static
|
|
2955
|
-
data:
|
|
2956
|
-
): CancelablePromise<
|
|
4427
|
+
public static symbolControllerGetQuote(
|
|
4428
|
+
data: SymbolControllerGetQuoteData
|
|
4429
|
+
): CancelablePromise<SymbolControllerGetQuoteResponse> {
|
|
2957
4430
|
return __request(OpenAPI, {
|
|
2958
4431
|
method: 'GET',
|
|
2959
|
-
url: '/api/v1/market
|
|
4432
|
+
url: '/api/v1/market/symbols/{symbol}/quote',
|
|
2960
4433
|
path: {
|
|
2961
|
-
dataSource: data.dataSource,
|
|
2962
4434
|
symbol: data.symbol
|
|
2963
4435
|
},
|
|
2964
4436
|
errors: {
|
|
2965
|
-
|
|
2966
|
-
404: 'Market data not found'
|
|
4437
|
+
404: 'Symbol not found in the openbb catalog'
|
|
2967
4438
|
}
|
|
2968
4439
|
});
|
|
2969
4440
|
}
|
|
2970
|
-
|
|
2971
|
-
/**
|
|
2972
|
-
* @returns unknown
|
|
2973
|
-
* @throws ApiError
|
|
2974
|
-
*/
|
|
2975
|
-
public static marketDataController(): CancelablePromise<MarketDataControllerResponse> {
|
|
2976
|
-
return __request(OpenAPI, {
|
|
2977
|
-
method: 'POST',
|
|
2978
|
-
url: '/api/v1/market-data/{dataSource}/{symbol}'
|
|
2979
|
-
});
|
|
2980
|
-
}
|
|
2981
4441
|
}
|