@firela/api-types 0.0.0-canary.209967 → 0.0.0-canary.52154bb3
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 +2728 -1084
- package/dist/index.d.ts +2728 -1084
- package/dist/index.js +159 -126
- package/dist/index.mjs +159 -126
- package/package.json +2 -8
- package/src/generated/schemas.gen.ts +2557 -390
- package/src/generated/services.gen.ts +1200 -897
- package/src/generated/types.gen.ts +3055 -1215
|
@@ -17,22 +17,28 @@ import type {
|
|
|
17
17
|
AccountControllerCloseResponse,
|
|
18
18
|
AccountControllerReopenData,
|
|
19
19
|
AccountControllerReopenResponse,
|
|
20
|
+
AccountStandardsControllerGetTemplatesData,
|
|
21
|
+
AccountStandardsControllerGetTemplatesResponse,
|
|
22
|
+
AccountStandardsControllerGetTemplateMetadataData,
|
|
23
|
+
AccountStandardsControllerGetTemplateMetadataResponse,
|
|
24
|
+
AccountStandardsControllerGetRegionsData,
|
|
25
|
+
AccountStandardsControllerGetRegionsResponse,
|
|
20
26
|
TransactionControllerCreateData,
|
|
21
27
|
TransactionControllerCreateResponse,
|
|
22
28
|
TransactionControllerListData,
|
|
23
29
|
TransactionControllerListResponse,
|
|
24
|
-
|
|
25
|
-
|
|
30
|
+
TransactionControllerCreateBatchData,
|
|
31
|
+
TransactionControllerCreateBatchResponse,
|
|
32
|
+
TransactionControllerCorrectData,
|
|
33
|
+
TransactionControllerCorrectResponse,
|
|
34
|
+
TransactionControllerSuggestTagsData,
|
|
35
|
+
TransactionControllerSuggestTagsResponse,
|
|
26
36
|
TransactionControllerGetDetailData,
|
|
27
37
|
TransactionControllerGetDetailResponse,
|
|
28
38
|
TransactionControllerUpdateData,
|
|
29
39
|
TransactionControllerUpdateResponse,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
AccountStandardsControllerGetTemplatesData,
|
|
33
|
-
AccountStandardsControllerGetTemplatesResponse,
|
|
34
|
-
AccountStandardsControllerGetRegionsData,
|
|
35
|
-
AccountStandardsControllerGetRegionsResponse,
|
|
40
|
+
TransactionControllerDeleteData,
|
|
41
|
+
TransactionControllerDeleteResponse,
|
|
36
42
|
BalanceControllerGetBalanceData,
|
|
37
43
|
BalanceControllerGetBalanceResponse,
|
|
38
44
|
BalanceControllerGetMultiCurrencyBalanceData,
|
|
@@ -43,14 +49,14 @@ import type {
|
|
|
43
49
|
ReviewControllerGetStatsResponse,
|
|
44
50
|
ReviewControllerFindOneData,
|
|
45
51
|
ReviewControllerFindOneResponse,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
ReviewControllerResolveData,
|
|
53
|
+
ReviewControllerResolveResponse,
|
|
54
|
+
ReviewControllerUndoData,
|
|
55
|
+
ReviewControllerUndoResponse,
|
|
56
|
+
ReviewControllerBatchResolveData,
|
|
57
|
+
ReviewControllerBatchResolveResponse,
|
|
58
|
+
PayeeControllerCreateData,
|
|
59
|
+
PayeeControllerCreateResponse,
|
|
54
60
|
PayeeControllerFindAllData,
|
|
55
61
|
PayeeControllerFindAllResponse,
|
|
56
62
|
PayeeControllerAutocompleteData,
|
|
@@ -59,50 +65,50 @@ import type {
|
|
|
59
65
|
PayeeControllerGetTopPayeesResponse,
|
|
60
66
|
PayeeControllerFindOneData,
|
|
61
67
|
PayeeControllerFindOneResponse,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
PayeeControllerUpdateData,
|
|
69
|
+
PayeeControllerUpdateResponse,
|
|
70
|
+
PayeeControllerDeleteData,
|
|
71
|
+
PayeeControllerDeleteResponse,
|
|
72
|
+
PayeeProfileAdminControllerCreateData,
|
|
73
|
+
PayeeProfileAdminControllerCreateResponse,
|
|
68
74
|
PayeeProfileAdminControllerFindAllData,
|
|
69
75
|
PayeeProfileAdminControllerFindAllResponse,
|
|
70
76
|
PayeeProfileAdminControllerFindOneData,
|
|
71
77
|
PayeeProfileAdminControllerFindOneResponse,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
PayeeProfileAdminControllerUpdateData,
|
|
79
|
+
PayeeProfileAdminControllerUpdateResponse,
|
|
80
|
+
PayeeProfileAdminControllerDeleteData,
|
|
81
|
+
PayeeProfileAdminControllerDeleteResponse,
|
|
82
|
+
PayeeProfileAdminControllerVerifyData,
|
|
83
|
+
PayeeProfileAdminControllerVerifyResponse,
|
|
84
|
+
PayeeProfileAdminControllerUnverifyData,
|
|
85
|
+
PayeeProfileAdminControllerUnverifyResponse,
|
|
86
|
+
CommodityControllerCreateData,
|
|
87
|
+
CommodityControllerCreateResponse,
|
|
82
88
|
CommodityControllerFindAllData,
|
|
83
89
|
CommodityControllerFindAllResponse,
|
|
84
90
|
CommodityControllerFindOneData,
|
|
85
91
|
CommodityControllerFindOneResponse,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
CommodityControllerUpdateData,
|
|
93
|
+
CommodityControllerUpdateResponse,
|
|
94
|
+
CommodityControllerDeleteData,
|
|
95
|
+
CommodityControllerDeleteResponse,
|
|
96
|
+
CommodityControllerGetOrCreateData,
|
|
97
|
+
CommodityControllerGetOrCreateResponse,
|
|
98
|
+
CommodityControllerBulkCreateData,
|
|
99
|
+
CommodityControllerBulkCreateResponse,
|
|
100
|
+
RecurringRuleControllerCreateData,
|
|
101
|
+
RecurringRuleControllerCreateResponse,
|
|
96
102
|
RecurringRuleControllerFindAllData,
|
|
97
103
|
RecurringRuleControllerFindAllResponse,
|
|
98
|
-
|
|
99
|
-
|
|
104
|
+
RecurringRuleControllerCreateFromTransactionData,
|
|
105
|
+
RecurringRuleControllerCreateFromTransactionResponse,
|
|
100
106
|
RecurringRuleControllerFindOneData,
|
|
101
107
|
RecurringRuleControllerFindOneResponse,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
108
|
+
RecurringRuleControllerUpdateData,
|
|
109
|
+
RecurringRuleControllerUpdateResponse,
|
|
110
|
+
RecurringRuleControllerDeleteData,
|
|
111
|
+
RecurringRuleControllerDeleteResponse,
|
|
106
112
|
RecurringRuleControllerGetWithStatsData,
|
|
107
113
|
RecurringRuleControllerGetWithStatsResponse,
|
|
108
114
|
ExpectedTransactionControllerFindAllData,
|
|
@@ -111,36 +117,36 @@ import type {
|
|
|
111
117
|
ExpectedTransactionControllerFindOverdueResponse,
|
|
112
118
|
ExpectedTransactionControllerFindOneData,
|
|
113
119
|
ExpectedTransactionControllerFindOneResponse,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
ExpectedTransactionControllerSkipData,
|
|
121
|
+
ExpectedTransactionControllerSkipResponse,
|
|
122
|
+
ExpectedTransactionControllerUndoSkipData,
|
|
123
|
+
ExpectedTransactionControllerUndoSkipResponse,
|
|
124
|
+
ExpectedTransactionControllerConfirmMatchData,
|
|
125
|
+
ExpectedTransactionControllerConfirmMatchResponse,
|
|
126
|
+
ExpectedTransactionControllerUnmatchData,
|
|
127
|
+
ExpectedTransactionControllerUnmatchResponse,
|
|
128
|
+
ExpectedTransactionControllerEnterNowData,
|
|
129
|
+
ExpectedTransactionControllerEnterNowResponse,
|
|
124
130
|
ForecastControllerGetForecastData,
|
|
125
131
|
ForecastControllerGetForecastResponse,
|
|
126
|
-
|
|
127
|
-
|
|
132
|
+
TransactionRuleControllerCreateData,
|
|
133
|
+
TransactionRuleControllerCreateResponse,
|
|
128
134
|
TransactionRuleControllerListData,
|
|
129
135
|
TransactionRuleControllerListResponse,
|
|
130
136
|
TransactionRuleControllerValidateData,
|
|
131
137
|
TransactionRuleControllerValidateResponse,
|
|
132
|
-
|
|
133
|
-
|
|
138
|
+
TransactionRuleControllerBulkCreateData,
|
|
139
|
+
TransactionRuleControllerBulkCreateResponse,
|
|
134
140
|
TransactionRuleControllerExportData,
|
|
135
141
|
TransactionRuleControllerExportResponse,
|
|
136
142
|
TransactionRuleControllerGetStatisticsData,
|
|
137
143
|
TransactionRuleControllerGetStatisticsResponse,
|
|
138
144
|
TransactionRuleControllerGetDetailData,
|
|
139
145
|
TransactionRuleControllerGetDetailResponse,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
146
|
+
TransactionRuleControllerUpdateData,
|
|
147
|
+
TransactionRuleControllerUpdateResponse,
|
|
148
|
+
TransactionRuleControllerDeleteData,
|
|
149
|
+
TransactionRuleControllerDeleteResponse,
|
|
144
150
|
TransactionRuleControllerTestData,
|
|
145
151
|
TransactionRuleControllerTestResponse,
|
|
146
152
|
UserControllerDeleteOwnUserData,
|
|
@@ -157,104 +163,96 @@ import type {
|
|
|
157
163
|
UserControllerUpdateUserSettingResponse,
|
|
158
164
|
UserControllerGetAllUserSettingsByPageData,
|
|
159
165
|
UserControllerGetAllUserSettingsByPageResponse,
|
|
160
|
-
UserControllerGetAssetLiabilitySummaryData,
|
|
161
166
|
UserControllerGetAssetLiabilitySummaryResponse,
|
|
162
|
-
PropertyControllerGetAllData,
|
|
163
167
|
PropertyControllerGetAllResponse,
|
|
164
168
|
PropertyControllerGetByKeyData,
|
|
165
169
|
PropertyControllerGetByKeyResponse,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
+
PropertyControllerUpdateData,
|
|
171
|
+
PropertyControllerUpdateResponse,
|
|
172
|
+
PropertyControllerDeleteData,
|
|
173
|
+
PropertyControllerDeleteResponse,
|
|
174
|
+
ExportControllerExportBeancountResponse,
|
|
170
175
|
FileImportControllerImportFileData,
|
|
171
176
|
FileImportControllerImportFileResponse,
|
|
172
177
|
FileImportControllerIdentifyFileData,
|
|
173
178
|
FileImportControllerIdentifyFileResponse,
|
|
179
|
+
FileImportControllerImportBeancountData,
|
|
180
|
+
FileImportControllerImportBeancountResponse,
|
|
174
181
|
ImporterConfigControllerGetConfigData,
|
|
175
182
|
ImporterConfigControllerGetConfigResponse,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
183
|
+
ImporterConfigControllerUpdateConfigData,
|
|
184
|
+
ImporterConfigControllerUpdateConfigResponse,
|
|
185
|
+
ImporterConfigControllerResetConfigData,
|
|
186
|
+
ImporterConfigControllerResetConfigResponse,
|
|
187
|
+
PlatformControllerFindAllResponse,
|
|
188
|
+
PlatformControllerCreateData,
|
|
189
|
+
PlatformControllerCreateResponse,
|
|
190
|
+
PlatformControllerGetPlatformListResponse,
|
|
191
|
+
PlatformControllerMatchPlatformsData,
|
|
192
|
+
PlatformControllerMatchPlatformsResponse,
|
|
193
|
+
PlatformControllerUpdateData,
|
|
194
|
+
PlatformControllerUpdateResponse,
|
|
195
|
+
PlatformControllerDeleteData,
|
|
196
|
+
PlatformControllerDeleteResponse,
|
|
180
197
|
ProviderSyncControllerSyncData,
|
|
181
198
|
ProviderSyncControllerSyncResponse,
|
|
182
199
|
ProviderSyncControllerGetSupportedProvidersData,
|
|
183
200
|
ProviderSyncControllerGetSupportedProvidersResponse,
|
|
184
201
|
ProviderSyncControllerIsProviderSupportedData,
|
|
185
202
|
ProviderSyncControllerIsProviderSupportedResponse,
|
|
203
|
+
TelemetryControllerReportTelemetryData,
|
|
204
|
+
TelemetryControllerReportTelemetryResponse,
|
|
205
|
+
TelemetryControllerReportCoverageMissData,
|
|
206
|
+
TelemetryControllerReportCoverageMissResponse,
|
|
207
|
+
TelemetryControllerGetCoverageMetricsData,
|
|
208
|
+
TelemetryControllerGetCoverageMetricsResponse,
|
|
186
209
|
NlpControllerProcessNaturalLanguageData,
|
|
187
210
|
NlpControllerProcessNaturalLanguageResponse,
|
|
188
211
|
NlpControllerClearSessionData,
|
|
189
212
|
NlpControllerClearSessionResponse,
|
|
190
213
|
NlpControllerGetSessionData,
|
|
191
214
|
NlpControllerGetSessionResponse,
|
|
192
|
-
PlatformControllerFindAllData,
|
|
193
|
-
PlatformControllerFindAllResponse,
|
|
194
|
-
PlatformControllerData,
|
|
195
|
-
PlatformControllerResponse,
|
|
196
|
-
PlatformControllerGetPlatformListData,
|
|
197
|
-
PlatformControllerGetPlatformListResponse,
|
|
198
|
-
PlatformController1Data,
|
|
199
|
-
PlatformController1Response,
|
|
200
|
-
PlatformController2Data,
|
|
201
|
-
PlatformController2Response,
|
|
202
|
-
SymbolControllerLookupSymbolData,
|
|
203
|
-
SymbolControllerLookupSymbolResponse,
|
|
204
|
-
SymbolControllerGetSymbolDataData,
|
|
205
|
-
SymbolControllerGetSymbolDataResponse,
|
|
206
|
-
SymbolControllerGatherSymbolForDateData,
|
|
207
|
-
SymbolControllerGatherSymbolForDateResponse,
|
|
208
|
-
SymbolControllerData,
|
|
209
|
-
SymbolControllerResponse,
|
|
210
|
-
CacheControllerFlushCacheData,
|
|
211
|
-
CacheControllerFlushCacheResponse,
|
|
212
215
|
DashboardControllerGetNetWorthData,
|
|
213
216
|
DashboardControllerGetNetWorthResponse,
|
|
214
217
|
DashboardControllerGetAccountsData,
|
|
215
218
|
DashboardControllerGetAccountsResponse,
|
|
216
219
|
DashboardControllerGetCashFlowData,
|
|
217
220
|
DashboardControllerGetCashFlowResponse,
|
|
221
|
+
HoldingPnlControllerGetHoldingPnlData,
|
|
222
|
+
HoldingPnlControllerGetHoldingPnlResponse,
|
|
223
|
+
PriceControllerCreateData,
|
|
224
|
+
PriceControllerCreateResponse,
|
|
225
|
+
PriceControllerFindAllData,
|
|
226
|
+
PriceControllerFindAllResponse,
|
|
227
|
+
PriceControllerFindOneData,
|
|
228
|
+
PriceControllerFindOneResponse,
|
|
229
|
+
PriceControllerUpdateData,
|
|
230
|
+
PriceControllerUpdateResponse,
|
|
231
|
+
PriceControllerDeleteData,
|
|
232
|
+
PriceControllerDeleteResponse,
|
|
233
|
+
PriceControllerBulkCreateData,
|
|
234
|
+
PriceControllerBulkCreateResponse,
|
|
218
235
|
ReportingControllerGetPortfolioTrendsData,
|
|
219
236
|
ReportingControllerGetPortfolioTrendsResponse,
|
|
220
237
|
ReportingControllerGenerateSnapshotData,
|
|
221
238
|
ReportingControllerGenerateSnapshotResponse,
|
|
222
239
|
ReportingControllerBackfillSnapshotsData,
|
|
223
240
|
ReportingControllerBackfillSnapshotsResponse,
|
|
224
|
-
|
|
225
|
-
ApiKeysControllerResponse,
|
|
241
|
+
ApiKeysControllerCreateApiKeyResponse,
|
|
226
242
|
AuthControllerAccessTokenLoginData,
|
|
227
243
|
AuthControllerAccessTokenLoginResponse,
|
|
244
|
+
CacheControllerFlushCacheResponse,
|
|
228
245
|
ExchangeRateControllerGetExchangeRateData,
|
|
229
246
|
ExchangeRateControllerGetExchangeRateResponse,
|
|
230
|
-
HealthControllerGetHealthData,
|
|
231
247
|
HealthControllerGetHealthResponse,
|
|
232
|
-
HealthControllerCheckDatabaseData,
|
|
233
248
|
HealthControllerCheckDatabaseResponse,
|
|
234
|
-
|
|
249
|
+
HealthControllerCheckOpenBbResponse,
|
|
235
250
|
HealthControllerCheckRedisResponse,
|
|
236
|
-
HealthControllerGetCircuitBreakersHealthData,
|
|
237
251
|
HealthControllerGetCircuitBreakersHealthResponse,
|
|
238
252
|
HealthControllerResetCircuitBreakerData,
|
|
239
253
|
HealthControllerResetCircuitBreakerResponse,
|
|
240
|
-
HealthControllerGetMetricsData,
|
|
241
254
|
HealthControllerGetMetricsResponse,
|
|
242
|
-
|
|
243
|
-
HealthControllerGetHealthOfDataEnhancerResponse,
|
|
244
|
-
HealthControllerCheckDataProvidersData,
|
|
245
|
-
HealthControllerCheckDataProvidersResponse,
|
|
246
|
-
HealthControllerGetHealthOfDataProviderData,
|
|
247
|
-
HealthControllerGetHealthOfDataProviderResponse,
|
|
248
|
-
InfoControllerGetInfoData,
|
|
249
|
-
InfoControllerGetInfoResponse,
|
|
250
|
-
LogoControllerGetLogoByDataSourceAndSymbolData,
|
|
251
|
-
LogoControllerGetLogoByDataSourceAndSymbolResponse,
|
|
252
|
-
LogoControllerGetLogoByUrlData,
|
|
253
|
-
LogoControllerGetLogoByUrlResponse,
|
|
254
|
-
MarketDataControllerGetMarketDataBySymbolData,
|
|
255
|
-
MarketDataControllerGetMarketDataBySymbolResponse,
|
|
256
|
-
MarketDataControllerData,
|
|
257
|
-
MarketDataControllerResponse
|
|
255
|
+
InfoControllerGetInfoResponse
|
|
258
256
|
} from './types.gen';
|
|
259
257
|
|
|
260
258
|
export class BeanAccountsService {
|
|
@@ -456,10 +454,83 @@ export class BeanAccountsService {
|
|
|
456
454
|
}
|
|
457
455
|
}
|
|
458
456
|
|
|
457
|
+
export class BeanAccountStandardsService {
|
|
458
|
+
/**
|
|
459
|
+
* Get account templates
|
|
460
|
+
* Returns predefined account templates for a region. Supports filtering by account type and search term.
|
|
461
|
+
* @param data The data for the request.
|
|
462
|
+
* @param data.region Region code (cn, us, de)
|
|
463
|
+
* @param data.type Filter by account type
|
|
464
|
+
* @param data.search Search term for path or description
|
|
465
|
+
* @returns AccountStandardListResponseDto Account templates retrieved successfully
|
|
466
|
+
* @throws ApiError
|
|
467
|
+
*/
|
|
468
|
+
public static accountStandardsControllerGetTemplates(
|
|
469
|
+
data: AccountStandardsControllerGetTemplatesData
|
|
470
|
+
): CancelablePromise<AccountStandardsControllerGetTemplatesResponse> {
|
|
471
|
+
return __request(OpenAPI, {
|
|
472
|
+
method: 'GET',
|
|
473
|
+
url: '/api/v1/{region}/bean/account-standards',
|
|
474
|
+
path: {
|
|
475
|
+
region: data.region
|
|
476
|
+
},
|
|
477
|
+
query: {
|
|
478
|
+
type: data.type,
|
|
479
|
+
search: data.search
|
|
480
|
+
}
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Get template metadata for an account path
|
|
486
|
+
* Returns extendable status and root type for a template path.
|
|
487
|
+
* @param data The data for the request.
|
|
488
|
+
* @param data.region Region code for tenant context
|
|
489
|
+
* @param data.path Account path to check
|
|
490
|
+
* @returns TemplateMetadataResponseDto Template metadata retrieved successfully
|
|
491
|
+
* @throws ApiError
|
|
492
|
+
*/
|
|
493
|
+
public static accountStandardsControllerGetTemplateMetadata(
|
|
494
|
+
data: AccountStandardsControllerGetTemplateMetadataData
|
|
495
|
+
): CancelablePromise<AccountStandardsControllerGetTemplateMetadataResponse> {
|
|
496
|
+
return __request(OpenAPI, {
|
|
497
|
+
method: 'GET',
|
|
498
|
+
url: '/api/v1/{region}/bean/account-standards/template-metadata',
|
|
499
|
+
path: {
|
|
500
|
+
region: data.region
|
|
501
|
+
},
|
|
502
|
+
query: {
|
|
503
|
+
path: data.path
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Get available regions with hierarchy
|
|
510
|
+
* Returns supported regions with inheritance metadata
|
|
511
|
+
* @param data The data for the request.
|
|
512
|
+
* @param data.region Region code for tenant context
|
|
513
|
+
* @returns RegionsMetadataResponseDto Regions metadata retrieved successfully
|
|
514
|
+
* @throws ApiError
|
|
515
|
+
*/
|
|
516
|
+
public static accountStandardsControllerGetRegions(
|
|
517
|
+
data: AccountStandardsControllerGetRegionsData
|
|
518
|
+
): CancelablePromise<AccountStandardsControllerGetRegionsResponse> {
|
|
519
|
+
return __request(OpenAPI, {
|
|
520
|
+
method: 'GET',
|
|
521
|
+
url: '/api/v1/{region}/bean/account-standards/regions',
|
|
522
|
+
path: {
|
|
523
|
+
region: data.region
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
459
529
|
export class BeanTransactionsService {
|
|
460
530
|
/**
|
|
461
|
-
*
|
|
462
|
-
*
|
|
531
|
+
* @deprecated
|
|
532
|
+
* Create transaction (DEPRECATED)
|
|
533
|
+
* DEPRECATED: Use POST /:region/bean/import/provider/:name/sync instead. This endpoint skips dedup, rule matching, and review branching.
|
|
463
534
|
* @param data The data for the request.
|
|
464
535
|
* @param data.region Region code for tenant context
|
|
465
536
|
* @param data.requestBody Transaction data with postings
|
|
@@ -520,25 +591,98 @@ export class BeanTransactionsService {
|
|
|
520
591
|
accountId: data.accountId
|
|
521
592
|
},
|
|
522
593
|
errors: {
|
|
594
|
+
400: 'Validation failed',
|
|
523
595
|
401: 'Authentication required'
|
|
524
596
|
}
|
|
525
597
|
});
|
|
526
598
|
}
|
|
527
599
|
|
|
528
600
|
/**
|
|
601
|
+
* @deprecated
|
|
602
|
+
* Batch create transactions (DEPRECATED)
|
|
603
|
+
* DEPRECATED: Use POST /:region/bean/import/provider/:name/sync instead. This endpoint skips dedup, rule matching, and review branching.
|
|
529
604
|
* @param data The data for the request.
|
|
530
605
|
* @param data.region Region code for tenant context
|
|
531
|
-
* @
|
|
606
|
+
* @param data.requestBody
|
|
607
|
+
* @returns BatchTransactionResponseDto Transactions processed
|
|
532
608
|
* @throws ApiError
|
|
533
609
|
*/
|
|
534
|
-
public static
|
|
535
|
-
data:
|
|
536
|
-
): CancelablePromise<
|
|
610
|
+
public static transactionControllerCreateBatch(
|
|
611
|
+
data: TransactionControllerCreateBatchData
|
|
612
|
+
): CancelablePromise<TransactionControllerCreateBatchResponse> {
|
|
537
613
|
return __request(OpenAPI, {
|
|
538
614
|
method: 'POST',
|
|
539
615
|
url: '/api/v1/{region}/bean/transactions/batch',
|
|
540
616
|
path: {
|
|
541
617
|
region: data.region
|
|
618
|
+
},
|
|
619
|
+
body: data.requestBody,
|
|
620
|
+
mediaType: 'application/json',
|
|
621
|
+
errors: {
|
|
622
|
+
400: 'Invalid input',
|
|
623
|
+
401: 'Authentication required'
|
|
624
|
+
}
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* Correct (supersede) a transaction
|
|
630
|
+
* Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
|
|
631
|
+
* @param data The data for the request.
|
|
632
|
+
* @param data.id Original transaction ID to correct
|
|
633
|
+
* @param data.region Region code for tenant context
|
|
634
|
+
* @param data.requestBody
|
|
635
|
+
* @returns TransactionDetailDto Corrected transaction created
|
|
636
|
+
* @throws ApiError
|
|
637
|
+
*/
|
|
638
|
+
public static transactionControllerCorrect(
|
|
639
|
+
data: TransactionControllerCorrectData
|
|
640
|
+
): CancelablePromise<TransactionControllerCorrectResponse> {
|
|
641
|
+
return __request(OpenAPI, {
|
|
642
|
+
method: 'POST',
|
|
643
|
+
url: '/api/v1/{region}/bean/transactions/{id}/correct',
|
|
644
|
+
path: {
|
|
645
|
+
id: data.id,
|
|
646
|
+
region: data.region
|
|
647
|
+
},
|
|
648
|
+
body: data.requestBody,
|
|
649
|
+
mediaType: 'application/json',
|
|
650
|
+
errors: {
|
|
651
|
+
404: 'Original transaction not found',
|
|
652
|
+
409: 'Original no longer ACTIVE (concurrent modification)',
|
|
653
|
+
422: 'Pipeline validation failed (does not balance, invalid accounts)'
|
|
654
|
+
}
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Suggest transaction tags
|
|
660
|
+
* Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
|
|
661
|
+
* @param data The data for the request.
|
|
662
|
+
* @param data.region Region code for tenant context
|
|
663
|
+
* @param data.q Prefix match, case-insensitive (max 50 chars)
|
|
664
|
+
* @param data.sort usage (default) or name
|
|
665
|
+
* @param data.limit Max suggestions (1-100, default 10)
|
|
666
|
+
* @returns TagSuggestionsResponseDto Tag suggestions
|
|
667
|
+
* @throws ApiError
|
|
668
|
+
*/
|
|
669
|
+
public static transactionControllerSuggestTags(
|
|
670
|
+
data: TransactionControllerSuggestTagsData
|
|
671
|
+
): CancelablePromise<TransactionControllerSuggestTagsResponse> {
|
|
672
|
+
return __request(OpenAPI, {
|
|
673
|
+
method: 'GET',
|
|
674
|
+
url: '/api/v1/{region}/bean/transactions/tags',
|
|
675
|
+
path: {
|
|
676
|
+
region: data.region
|
|
677
|
+
},
|
|
678
|
+
query: {
|
|
679
|
+
q: data.q,
|
|
680
|
+
sort: data.sort,
|
|
681
|
+
limit: data.limit
|
|
682
|
+
},
|
|
683
|
+
errors: {
|
|
684
|
+
400: 'Validation failed',
|
|
685
|
+
401: 'Authentication required'
|
|
542
686
|
}
|
|
543
687
|
});
|
|
544
688
|
}
|
|
@@ -600,67 +744,28 @@ export class BeanTransactionsService {
|
|
|
600
744
|
}
|
|
601
745
|
|
|
602
746
|
/**
|
|
747
|
+
* Void transaction
|
|
748
|
+
* Soft-deletes a transaction by marking it as VOIDED
|
|
603
749
|
* @param data The data for the request.
|
|
750
|
+
* @param data.id Transaction ID
|
|
604
751
|
* @param data.region Region code for tenant context
|
|
605
|
-
* @returns void
|
|
752
|
+
* @returns void Transaction voided successfully
|
|
606
753
|
* @throws ApiError
|
|
607
754
|
*/
|
|
608
|
-
public static
|
|
609
|
-
data:
|
|
610
|
-
): CancelablePromise<
|
|
755
|
+
public static transactionControllerDelete(
|
|
756
|
+
data: TransactionControllerDeleteData
|
|
757
|
+
): CancelablePromise<TransactionControllerDeleteResponse> {
|
|
611
758
|
return __request(OpenAPI, {
|
|
612
759
|
method: 'DELETE',
|
|
613
760
|
url: '/api/v1/{region}/bean/transactions/{id}',
|
|
614
761
|
path: {
|
|
615
|
-
|
|
616
|
-
}
|
|
617
|
-
});
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
export class BeanAccountStandardsService {
|
|
622
|
-
/**
|
|
623
|
-
* Get account templates
|
|
624
|
-
* Returns predefined account templates for a region. Supports filtering by account type and search term.
|
|
625
|
-
* @param data The data for the request.
|
|
626
|
-
* @param data.region Region code (cn, us, de)
|
|
627
|
-
* @param data.type Filter by account type
|
|
628
|
-
* @param data.search Search term for path or description
|
|
629
|
-
* @returns AccountStandardListResponseDto Account templates retrieved successfully
|
|
630
|
-
* @throws ApiError
|
|
631
|
-
*/
|
|
632
|
-
public static accountStandardsControllerGetTemplates(
|
|
633
|
-
data: AccountStandardsControllerGetTemplatesData
|
|
634
|
-
): CancelablePromise<AccountStandardsControllerGetTemplatesResponse> {
|
|
635
|
-
return __request(OpenAPI, {
|
|
636
|
-
method: 'GET',
|
|
637
|
-
url: '/api/v1/{region}/bean/account-standards',
|
|
638
|
-
path: {
|
|
762
|
+
id: data.id,
|
|
639
763
|
region: data.region
|
|
640
764
|
},
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
});
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
/**
|
|
649
|
-
* Get available regions with hierarchy
|
|
650
|
-
* Returns supported regions with inheritance metadata
|
|
651
|
-
* @param data The data for the request.
|
|
652
|
-
* @param data.region Region code (cn, us, de)
|
|
653
|
-
* @returns RegionsMetadataResponseDto Regions metadata retrieved successfully
|
|
654
|
-
* @throws ApiError
|
|
655
|
-
*/
|
|
656
|
-
public static accountStandardsControllerGetRegions(
|
|
657
|
-
data: AccountStandardsControllerGetRegionsData
|
|
658
|
-
): CancelablePromise<AccountStandardsControllerGetRegionsResponse> {
|
|
659
|
-
return __request(OpenAPI, {
|
|
660
|
-
method: 'GET',
|
|
661
|
-
url: '/api/v1/{region}/bean/account-standards/regions',
|
|
662
|
-
path: {
|
|
663
|
-
region: data.region
|
|
765
|
+
errors: {
|
|
766
|
+
400: 'Transaction already voided',
|
|
767
|
+
401: 'Authentication required',
|
|
768
|
+
404: 'Transaction not found'
|
|
664
769
|
}
|
|
665
770
|
});
|
|
666
771
|
}
|
|
@@ -672,7 +777,7 @@ export class BeanBalancesService {
|
|
|
672
777
|
* Calculate account balance at a specific date for a single currency
|
|
673
778
|
* @param data The data for the request.
|
|
674
779
|
* @param data.account Account name (e.g., "Assets:Bank:Checking")
|
|
675
|
-
* @param data.region Region code
|
|
780
|
+
* @param data.region Region code for tenant context
|
|
676
781
|
* @param data.date Date to calculate balance at (ISO 8601 format)
|
|
677
782
|
* @param data.currency Currency to query (e.g., "USD", "CNY")
|
|
678
783
|
* @returns BalanceResponseDto Balance calculated successfully
|
|
@@ -703,7 +808,7 @@ export class BeanBalancesService {
|
|
|
703
808
|
* Query multi-currency account balance
|
|
704
809
|
* Calculate account balances for all currencies at a specific date
|
|
705
810
|
* @param data The data for the request.
|
|
706
|
-
* @param data.region Region code
|
|
811
|
+
* @param data.region Region code for tenant context
|
|
707
812
|
* @returns MultiCurrencyBalanceResponseDto Balances calculated successfully
|
|
708
813
|
* @throws ApiError
|
|
709
814
|
*/
|
|
@@ -728,7 +833,7 @@ export class BeanReviewsService {
|
|
|
728
833
|
/**
|
|
729
834
|
* List pending reviews
|
|
730
835
|
* @param data The data for the request.
|
|
731
|
-
* @param data.region Region code
|
|
836
|
+
* @param data.region Region code for tenant context
|
|
732
837
|
* @param data.type Filter by review type
|
|
733
838
|
* @param data.confidenceLevel Filter by confidence level
|
|
734
839
|
* @param data.sortBy Sort order
|
|
@@ -759,7 +864,7 @@ export class BeanReviewsService {
|
|
|
759
864
|
/**
|
|
760
865
|
* Get review statistics
|
|
761
866
|
* @param data The data for the request.
|
|
762
|
-
* @param data.region Region code
|
|
867
|
+
* @param data.region Region code for tenant context
|
|
763
868
|
* @returns ReviewStatsDto
|
|
764
869
|
* @throws ApiError
|
|
765
870
|
*/
|
|
@@ -779,7 +884,7 @@ export class BeanReviewsService {
|
|
|
779
884
|
* Get review by ID
|
|
780
885
|
* @param data The data for the request.
|
|
781
886
|
* @param data.id Review ID
|
|
782
|
-
* @param data.region Region code
|
|
887
|
+
* @param data.region Region code for tenant context
|
|
783
888
|
* @returns ReviewDetailDto
|
|
784
889
|
* @throws ApiError
|
|
785
890
|
*/
|
|
@@ -797,75 +902,93 @@ export class BeanReviewsService {
|
|
|
797
902
|
}
|
|
798
903
|
|
|
799
904
|
/**
|
|
905
|
+
* Resolve a review item
|
|
800
906
|
* @param data The data for the request.
|
|
801
|
-
* @param data.
|
|
802
|
-
* @
|
|
907
|
+
* @param data.id Review ID
|
|
908
|
+
* @param data.region Region code for tenant context
|
|
909
|
+
* @param data.requestBody
|
|
910
|
+
* @returns ResolveResultDto
|
|
803
911
|
* @throws ApiError
|
|
804
912
|
*/
|
|
805
|
-
public static
|
|
806
|
-
data:
|
|
807
|
-
): CancelablePromise<
|
|
913
|
+
public static reviewControllerResolve(
|
|
914
|
+
data: ReviewControllerResolveData
|
|
915
|
+
): CancelablePromise<ReviewControllerResolveResponse> {
|
|
808
916
|
return __request(OpenAPI, {
|
|
809
917
|
method: 'POST',
|
|
810
918
|
url: '/api/v1/{region}/bean/reviews/{id}/resolve',
|
|
811
919
|
path: {
|
|
920
|
+
id: data.id,
|
|
812
921
|
region: data.region
|
|
813
|
-
}
|
|
922
|
+
},
|
|
923
|
+
body: data.requestBody,
|
|
924
|
+
mediaType: 'application/json'
|
|
814
925
|
});
|
|
815
926
|
}
|
|
816
927
|
|
|
817
928
|
/**
|
|
929
|
+
* Undo a resolution (within 24h)
|
|
818
930
|
* @param data The data for the request.
|
|
819
|
-
* @param data.
|
|
820
|
-
* @
|
|
931
|
+
* @param data.id Review ID
|
|
932
|
+
* @param data.region Region code for tenant context
|
|
933
|
+
* @returns UndoResultDto
|
|
821
934
|
* @throws ApiError
|
|
822
935
|
*/
|
|
823
|
-
public static
|
|
824
|
-
data:
|
|
825
|
-
): CancelablePromise<
|
|
936
|
+
public static reviewControllerUndo(
|
|
937
|
+
data: ReviewControllerUndoData
|
|
938
|
+
): CancelablePromise<ReviewControllerUndoResponse> {
|
|
826
939
|
return __request(OpenAPI, {
|
|
827
940
|
method: 'POST',
|
|
828
941
|
url: '/api/v1/{region}/bean/reviews/{id}/undo',
|
|
829
942
|
path: {
|
|
943
|
+
id: data.id,
|
|
830
944
|
region: data.region
|
|
831
945
|
}
|
|
832
946
|
});
|
|
833
947
|
}
|
|
834
948
|
|
|
835
949
|
/**
|
|
950
|
+
* Batch resolve multiple reviews
|
|
836
951
|
* @param data The data for the request.
|
|
837
|
-
* @param data.region Region code
|
|
838
|
-
* @
|
|
952
|
+
* @param data.region Region code for tenant context
|
|
953
|
+
* @param data.requestBody Batch resolution request containing review IDs and action
|
|
954
|
+
* @returns BatchResolveResultDto
|
|
839
955
|
* @throws ApiError
|
|
840
956
|
*/
|
|
841
|
-
public static
|
|
842
|
-
data:
|
|
843
|
-
): CancelablePromise<
|
|
957
|
+
public static reviewControllerBatchResolve(
|
|
958
|
+
data: ReviewControllerBatchResolveData
|
|
959
|
+
): CancelablePromise<ReviewControllerBatchResolveResponse> {
|
|
844
960
|
return __request(OpenAPI, {
|
|
845
961
|
method: 'POST',
|
|
846
962
|
url: '/api/v1/{region}/bean/reviews/batch-resolve',
|
|
847
963
|
path: {
|
|
848
964
|
region: data.region
|
|
849
|
-
}
|
|
965
|
+
},
|
|
966
|
+
body: data.requestBody,
|
|
967
|
+
mediaType: 'application/json'
|
|
850
968
|
});
|
|
851
969
|
}
|
|
852
970
|
}
|
|
853
971
|
|
|
854
972
|
export class BeanPayeesService {
|
|
855
973
|
/**
|
|
974
|
+
* Create a new payee
|
|
975
|
+
* Creates a new payee mapping for the authenticated user. The payee name must be unique within the user's account.
|
|
856
976
|
* @param data The data for the request.
|
|
857
|
-
* @param data.
|
|
858
|
-
* @returns
|
|
977
|
+
* @param data.requestBody
|
|
978
|
+
* @returns PayeeResponseDto Payee created successfully
|
|
859
979
|
* @throws ApiError
|
|
860
980
|
*/
|
|
861
|
-
public static
|
|
862
|
-
data:
|
|
863
|
-
): CancelablePromise<
|
|
981
|
+
public static payeeControllerCreate(
|
|
982
|
+
data: PayeeControllerCreateData
|
|
983
|
+
): CancelablePromise<PayeeControllerCreateResponse> {
|
|
864
984
|
return __request(OpenAPI, {
|
|
865
985
|
method: 'POST',
|
|
866
986
|
url: '/api/v1/bean/payees',
|
|
867
|
-
|
|
868
|
-
|
|
987
|
+
body: data.requestBody,
|
|
988
|
+
mediaType: 'application/json',
|
|
989
|
+
errors: {
|
|
990
|
+
400: 'Invalid input data',
|
|
991
|
+
409: 'Payee already exists'
|
|
869
992
|
}
|
|
870
993
|
});
|
|
871
994
|
}
|
|
@@ -874,7 +997,6 @@ export class BeanPayeesService {
|
|
|
874
997
|
* List user payees
|
|
875
998
|
* Returns all payee mappings for the authenticated user with optional filtering
|
|
876
999
|
* @param data The data for the request.
|
|
877
|
-
* @param data.region Region code (cn, us, de)
|
|
878
1000
|
* @param data.search Search term for payee name (partial match, case-insensitive). Useful for autocomplete.
|
|
879
1001
|
* @param data.payee Filter by exact payee name match
|
|
880
1002
|
* @param data.category Filter by custom category
|
|
@@ -884,14 +1006,11 @@ export class BeanPayeesService {
|
|
|
884
1006
|
* @throws ApiError
|
|
885
1007
|
*/
|
|
886
1008
|
public static payeeControllerFindAll(
|
|
887
|
-
data: PayeeControllerFindAllData
|
|
1009
|
+
data: PayeeControllerFindAllData = {}
|
|
888
1010
|
): CancelablePromise<PayeeControllerFindAllResponse> {
|
|
889
1011
|
return __request(OpenAPI, {
|
|
890
1012
|
method: 'GET',
|
|
891
1013
|
url: '/api/v1/bean/payees',
|
|
892
|
-
path: {
|
|
893
|
-
region: data.region
|
|
894
|
-
},
|
|
895
1014
|
query: {
|
|
896
1015
|
search: data.search,
|
|
897
1016
|
payee: data.payee,
|
|
@@ -907,7 +1026,6 @@ export class BeanPayeesService {
|
|
|
907
1026
|
* Returns active payee names matching the query, sorted by recent usage. Used for transaction input autocomplete.
|
|
908
1027
|
* @param data The data for the request.
|
|
909
1028
|
* @param data.q Search query for payee name (partial match, case-insensitive)
|
|
910
|
-
* @param data.region Region code (cn, us, de)
|
|
911
1029
|
* @param data.limit Maximum number of suggestions
|
|
912
1030
|
* @returns PayeeAutocompleteResponseDto Autocomplete suggestions retrieved successfully
|
|
913
1031
|
* @throws ApiError
|
|
@@ -918,9 +1036,6 @@ export class BeanPayeesService {
|
|
|
918
1036
|
return __request(OpenAPI, {
|
|
919
1037
|
method: 'GET',
|
|
920
1038
|
url: '/api/v1/bean/payees/autocomplete',
|
|
921
|
-
path: {
|
|
922
|
-
region: data.region
|
|
923
|
-
},
|
|
924
1039
|
query: {
|
|
925
1040
|
q: data.q,
|
|
926
1041
|
limit: data.limit
|
|
@@ -932,20 +1047,16 @@ export class BeanPayeesService {
|
|
|
932
1047
|
* Get top payees by usage
|
|
933
1048
|
* Returns the most frequently used payees, sorted by use count. Used for statistics and analytics.
|
|
934
1049
|
* @param data The data for the request.
|
|
935
|
-
* @param data.region Region code (cn, us, de)
|
|
936
1050
|
* @param data.limit Maximum number of results
|
|
937
1051
|
* @returns PayeeStatsResponseDto Top payees retrieved successfully
|
|
938
1052
|
* @throws ApiError
|
|
939
1053
|
*/
|
|
940
1054
|
public static payeeControllerGetTopPayees(
|
|
941
|
-
data: PayeeControllerGetTopPayeesData
|
|
1055
|
+
data: PayeeControllerGetTopPayeesData = {}
|
|
942
1056
|
): CancelablePromise<PayeeControllerGetTopPayeesResponse> {
|
|
943
1057
|
return __request(OpenAPI, {
|
|
944
1058
|
method: 'GET',
|
|
945
1059
|
url: '/api/v1/bean/payees/top',
|
|
946
|
-
path: {
|
|
947
|
-
region: data.region
|
|
948
|
-
},
|
|
949
1060
|
query: {
|
|
950
1061
|
limit: data.limit
|
|
951
1062
|
}
|
|
@@ -957,7 +1068,6 @@ export class BeanPayeesService {
|
|
|
957
1068
|
* Returns a specific payee mapping by its UUID
|
|
958
1069
|
* @param data The data for the request.
|
|
959
1070
|
* @param data.id Payee UUID
|
|
960
|
-
* @param data.region Region code (cn, us, de)
|
|
961
1071
|
* @returns PayeeResponseDto Payee retrieved successfully
|
|
962
1072
|
* @throws ApiError
|
|
963
1073
|
*/
|
|
@@ -968,8 +1078,7 @@ export class BeanPayeesService {
|
|
|
968
1078
|
method: 'GET',
|
|
969
1079
|
url: '/api/v1/bean/payees/{id}',
|
|
970
1080
|
path: {
|
|
971
|
-
id: data.id
|
|
972
|
-
region: data.region
|
|
1081
|
+
id: data.id
|
|
973
1082
|
},
|
|
974
1083
|
errors: {
|
|
975
1084
|
403: 'Payee belongs to another user',
|
|
@@ -979,37 +1088,51 @@ export class BeanPayeesService {
|
|
|
979
1088
|
}
|
|
980
1089
|
|
|
981
1090
|
/**
|
|
1091
|
+
* Update payee
|
|
1092
|
+
* Updates a payee mapping. The payee name cannot be changed after creation.
|
|
982
1093
|
* @param data The data for the request.
|
|
983
|
-
* @param data.
|
|
984
|
-
* @
|
|
1094
|
+
* @param data.id Payee UUID
|
|
1095
|
+
* @param data.requestBody
|
|
1096
|
+
* @returns PayeeResponseDto Payee updated successfully
|
|
985
1097
|
* @throws ApiError
|
|
986
1098
|
*/
|
|
987
|
-
public static
|
|
988
|
-
data:
|
|
989
|
-
): CancelablePromise<
|
|
1099
|
+
public static payeeControllerUpdate(
|
|
1100
|
+
data: PayeeControllerUpdateData
|
|
1101
|
+
): CancelablePromise<PayeeControllerUpdateResponse> {
|
|
990
1102
|
return __request(OpenAPI, {
|
|
991
1103
|
method: 'PUT',
|
|
992
1104
|
url: '/api/v1/bean/payees/{id}',
|
|
993
1105
|
path: {
|
|
994
|
-
|
|
1106
|
+
id: data.id
|
|
1107
|
+
},
|
|
1108
|
+
body: data.requestBody,
|
|
1109
|
+
mediaType: 'application/json',
|
|
1110
|
+
errors: {
|
|
1111
|
+
400: 'Invalid input data',
|
|
1112
|
+
404: 'Payee not found'
|
|
995
1113
|
}
|
|
996
1114
|
});
|
|
997
1115
|
}
|
|
998
1116
|
|
|
999
1117
|
/**
|
|
1118
|
+
* Delete payee
|
|
1119
|
+
* Soft deletes a payee by marking it as inactive. Inactive payees will not appear in autocomplete suggestions.
|
|
1000
1120
|
* @param data The data for the request.
|
|
1001
|
-
* @param data.
|
|
1002
|
-
* @returns void
|
|
1121
|
+
* @param data.id Payee UUID
|
|
1122
|
+
* @returns void Payee deleted successfully
|
|
1003
1123
|
* @throws ApiError
|
|
1004
1124
|
*/
|
|
1005
|
-
public static
|
|
1006
|
-
data:
|
|
1007
|
-
): CancelablePromise<
|
|
1125
|
+
public static payeeControllerDelete(
|
|
1126
|
+
data: PayeeControllerDeleteData
|
|
1127
|
+
): CancelablePromise<PayeeControllerDeleteResponse> {
|
|
1008
1128
|
return __request(OpenAPI, {
|
|
1009
1129
|
method: 'DELETE',
|
|
1010
1130
|
url: '/api/v1/bean/payees/{id}',
|
|
1011
1131
|
path: {
|
|
1012
|
-
|
|
1132
|
+
id: data.id
|
|
1133
|
+
},
|
|
1134
|
+
errors: {
|
|
1135
|
+
404: 'Payee not found'
|
|
1013
1136
|
}
|
|
1014
1137
|
});
|
|
1015
1138
|
}
|
|
@@ -1017,28 +1140,33 @@ export class BeanPayeesService {
|
|
|
1017
1140
|
|
|
1018
1141
|
export class AdminPayeeProfilesService {
|
|
1019
1142
|
/**
|
|
1143
|
+
* Create payee profile (Admin only)
|
|
1144
|
+
* Creates a new global payee profile. The canonical name must be unique (case-insensitive).
|
|
1020
1145
|
* @param data The data for the request.
|
|
1021
|
-
* @param data.
|
|
1022
|
-
* @returns
|
|
1146
|
+
* @param data.requestBody
|
|
1147
|
+
* @returns PayeeProfileResponseDto Payee profile created successfully
|
|
1023
1148
|
* @throws ApiError
|
|
1024
1149
|
*/
|
|
1025
|
-
public static
|
|
1026
|
-
data:
|
|
1027
|
-
): CancelablePromise<
|
|
1150
|
+
public static payeeProfileAdminControllerCreate(
|
|
1151
|
+
data: PayeeProfileAdminControllerCreateData
|
|
1152
|
+
): CancelablePromise<PayeeProfileAdminControllerCreateResponse> {
|
|
1028
1153
|
return __request(OpenAPI, {
|
|
1029
1154
|
method: 'POST',
|
|
1030
1155
|
url: '/api/v1/admin/payee-profiles',
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1156
|
+
body: data.requestBody,
|
|
1157
|
+
mediaType: 'application/json',
|
|
1158
|
+
errors: {
|
|
1159
|
+
400: 'Validation failed',
|
|
1160
|
+
403: 'Admin access required',
|
|
1161
|
+
409: 'Payee profile already exists'
|
|
1162
|
+
}
|
|
1163
|
+
});
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1037
1166
|
/**
|
|
1038
1167
|
* List payee profiles (Admin only)
|
|
1039
1168
|
* Returns all payee profiles with optional filtering by category, country, verification status, etc.
|
|
1040
1169
|
* @param data The data for the request.
|
|
1041
|
-
* @param data.region Region code (cn, us, de)
|
|
1042
1170
|
* @param data.search Search term for canonical name and aliases (case-insensitive)
|
|
1043
1171
|
* @param data.category Filter by category
|
|
1044
1172
|
* @param data.country Filter by country (ISO 3166-1 alpha-2)
|
|
@@ -1049,14 +1177,11 @@ export class AdminPayeeProfilesService {
|
|
|
1049
1177
|
* @throws ApiError
|
|
1050
1178
|
*/
|
|
1051
1179
|
public static payeeProfileAdminControllerFindAll(
|
|
1052
|
-
data: PayeeProfileAdminControllerFindAllData
|
|
1180
|
+
data: PayeeProfileAdminControllerFindAllData = {}
|
|
1053
1181
|
): CancelablePromise<PayeeProfileAdminControllerFindAllResponse> {
|
|
1054
1182
|
return __request(OpenAPI, {
|
|
1055
1183
|
method: 'GET',
|
|
1056
1184
|
url: '/api/v1/admin/payee-profiles',
|
|
1057
|
-
path: {
|
|
1058
|
-
region: data.region
|
|
1059
|
-
},
|
|
1060
1185
|
query: {
|
|
1061
1186
|
search: data.search,
|
|
1062
1187
|
category: data.category,
|
|
@@ -1076,7 +1201,6 @@ export class AdminPayeeProfilesService {
|
|
|
1076
1201
|
* Returns a single payee profile by its ID.
|
|
1077
1202
|
* @param data The data for the request.
|
|
1078
1203
|
* @param data.id Payee profile ID (UUID)
|
|
1079
|
-
* @param data.region Region code (cn, us, de)
|
|
1080
1204
|
* @returns PayeeProfileResponseDto Payee profile retrieved successfully
|
|
1081
1205
|
* @throws ApiError
|
|
1082
1206
|
*/
|
|
@@ -1087,8 +1211,7 @@ export class AdminPayeeProfilesService {
|
|
|
1087
1211
|
method: 'GET',
|
|
1088
1212
|
url: '/api/v1/admin/payee-profiles/{id}',
|
|
1089
1213
|
path: {
|
|
1090
|
-
id: data.id
|
|
1091
|
-
region: data.region
|
|
1214
|
+
id: data.id
|
|
1092
1215
|
},
|
|
1093
1216
|
errors: {
|
|
1094
1217
|
403: 'Admin access required',
|
|
@@ -1098,73 +1221,101 @@ export class AdminPayeeProfilesService {
|
|
|
1098
1221
|
}
|
|
1099
1222
|
|
|
1100
1223
|
/**
|
|
1224
|
+
* Update payee profile (Admin only)
|
|
1225
|
+
* Updates an existing payee profile. The canonical name cannot be changed.
|
|
1101
1226
|
* @param data The data for the request.
|
|
1102
|
-
* @param data.
|
|
1103
|
-
* @
|
|
1227
|
+
* @param data.id Payee profile ID (UUID)
|
|
1228
|
+
* @param data.requestBody
|
|
1229
|
+
* @returns PayeeProfileResponseDto Payee profile updated successfully
|
|
1104
1230
|
* @throws ApiError
|
|
1105
1231
|
*/
|
|
1106
|
-
public static
|
|
1107
|
-
data:
|
|
1108
|
-
): CancelablePromise<
|
|
1232
|
+
public static payeeProfileAdminControllerUpdate(
|
|
1233
|
+
data: PayeeProfileAdminControllerUpdateData
|
|
1234
|
+
): CancelablePromise<PayeeProfileAdminControllerUpdateResponse> {
|
|
1109
1235
|
return __request(OpenAPI, {
|
|
1110
1236
|
method: 'PUT',
|
|
1111
1237
|
url: '/api/v1/admin/payee-profiles/{id}',
|
|
1112
1238
|
path: {
|
|
1113
|
-
|
|
1239
|
+
id: data.id
|
|
1240
|
+
},
|
|
1241
|
+
body: data.requestBody,
|
|
1242
|
+
mediaType: 'application/json',
|
|
1243
|
+
errors: {
|
|
1244
|
+
403: 'Admin access required',
|
|
1245
|
+
404: 'Payee profile not found'
|
|
1114
1246
|
}
|
|
1115
1247
|
});
|
|
1116
1248
|
}
|
|
1117
1249
|
|
|
1118
1250
|
/**
|
|
1251
|
+
* Soft delete payee profile (Admin only)
|
|
1252
|
+
* Marks a payee profile as inactive (soft delete). The profile cannot be deleted if it is referenced by user payees.
|
|
1119
1253
|
* @param data The data for the request.
|
|
1120
|
-
* @param data.
|
|
1121
|
-
* @returns void
|
|
1254
|
+
* @param data.id Payee profile ID (UUID)
|
|
1255
|
+
* @returns void Payee profile deleted successfully
|
|
1122
1256
|
* @throws ApiError
|
|
1123
1257
|
*/
|
|
1124
|
-
public static
|
|
1125
|
-
data:
|
|
1126
|
-
): CancelablePromise<
|
|
1258
|
+
public static payeeProfileAdminControllerDelete(
|
|
1259
|
+
data: PayeeProfileAdminControllerDeleteData
|
|
1260
|
+
): CancelablePromise<PayeeProfileAdminControllerDeleteResponse> {
|
|
1127
1261
|
return __request(OpenAPI, {
|
|
1128
1262
|
method: 'DELETE',
|
|
1129
1263
|
url: '/api/v1/admin/payee-profiles/{id}',
|
|
1130
1264
|
path: {
|
|
1131
|
-
|
|
1265
|
+
id: data.id
|
|
1266
|
+
},
|
|
1267
|
+
errors: {
|
|
1268
|
+
403: 'Admin access required',
|
|
1269
|
+
404: 'Payee profile not found',
|
|
1270
|
+
409: 'Payee profile is in use and cannot be deleted'
|
|
1132
1271
|
}
|
|
1133
1272
|
});
|
|
1134
1273
|
}
|
|
1135
1274
|
|
|
1136
1275
|
/**
|
|
1276
|
+
* Verify payee profile (Admin only)
|
|
1277
|
+
* Marks a payee profile as verified by setting verifiedAt to current timestamp.
|
|
1137
1278
|
* @param data The data for the request.
|
|
1138
|
-
* @param data.
|
|
1139
|
-
* @returns
|
|
1279
|
+
* @param data.id Payee profile ID (UUID)
|
|
1280
|
+
* @returns PayeeProfileResponseDto Payee profile verified successfully
|
|
1140
1281
|
* @throws ApiError
|
|
1141
1282
|
*/
|
|
1142
|
-
public static
|
|
1143
|
-
data:
|
|
1144
|
-
): CancelablePromise<
|
|
1283
|
+
public static payeeProfileAdminControllerVerify(
|
|
1284
|
+
data: PayeeProfileAdminControllerVerifyData
|
|
1285
|
+
): CancelablePromise<PayeeProfileAdminControllerVerifyResponse> {
|
|
1145
1286
|
return __request(OpenAPI, {
|
|
1146
1287
|
method: 'POST',
|
|
1147
1288
|
url: '/api/v1/admin/payee-profiles/{id}/verify',
|
|
1148
1289
|
path: {
|
|
1149
|
-
|
|
1290
|
+
id: data.id
|
|
1291
|
+
},
|
|
1292
|
+
errors: {
|
|
1293
|
+
403: 'Admin access required',
|
|
1294
|
+
404: 'Payee profile not found'
|
|
1150
1295
|
}
|
|
1151
1296
|
});
|
|
1152
1297
|
}
|
|
1153
1298
|
|
|
1154
1299
|
/**
|
|
1300
|
+
* Unverify payee profile (Admin only)
|
|
1301
|
+
* Removes verification status by setting verifiedAt to null.
|
|
1155
1302
|
* @param data The data for the request.
|
|
1156
|
-
* @param data.
|
|
1157
|
-
* @returns
|
|
1303
|
+
* @param data.id Payee profile ID (UUID)
|
|
1304
|
+
* @returns PayeeProfileResponseDto Payee profile unverified successfully
|
|
1158
1305
|
* @throws ApiError
|
|
1159
1306
|
*/
|
|
1160
|
-
public static
|
|
1161
|
-
data:
|
|
1162
|
-
): CancelablePromise<
|
|
1307
|
+
public static payeeProfileAdminControllerUnverify(
|
|
1308
|
+
data: PayeeProfileAdminControllerUnverifyData
|
|
1309
|
+
): CancelablePromise<PayeeProfileAdminControllerUnverifyResponse> {
|
|
1163
1310
|
return __request(OpenAPI, {
|
|
1164
1311
|
method: 'DELETE',
|
|
1165
1312
|
url: '/api/v1/admin/payee-profiles/{id}/verify',
|
|
1166
1313
|
path: {
|
|
1167
|
-
|
|
1314
|
+
id: data.id
|
|
1315
|
+
},
|
|
1316
|
+
errors: {
|
|
1317
|
+
403: 'Admin access required',
|
|
1318
|
+
404: 'Payee profile not found'
|
|
1168
1319
|
}
|
|
1169
1320
|
});
|
|
1170
1321
|
}
|
|
@@ -1172,19 +1323,28 @@ export class AdminPayeeProfilesService {
|
|
|
1172
1323
|
|
|
1173
1324
|
export class BeanCommoditiesService {
|
|
1174
1325
|
/**
|
|
1326
|
+
* Create a new commodity
|
|
1327
|
+
* Creates a new commodity definition for the authenticated user
|
|
1175
1328
|
* @param data The data for the request.
|
|
1176
|
-
* @param data.region Region code
|
|
1177
|
-
* @
|
|
1329
|
+
* @param data.region Region code for tenant context
|
|
1330
|
+
* @param data.requestBody
|
|
1331
|
+
* @returns CommodityResponseDto Commodity created successfully
|
|
1178
1332
|
* @throws ApiError
|
|
1179
1333
|
*/
|
|
1180
|
-
public static
|
|
1181
|
-
data:
|
|
1182
|
-
): CancelablePromise<
|
|
1334
|
+
public static commodityControllerCreate(
|
|
1335
|
+
data: CommodityControllerCreateData
|
|
1336
|
+
): CancelablePromise<CommodityControllerCreateResponse> {
|
|
1183
1337
|
return __request(OpenAPI, {
|
|
1184
1338
|
method: 'POST',
|
|
1185
1339
|
url: '/api/v1/{region}/bean/commodities',
|
|
1186
1340
|
path: {
|
|
1187
1341
|
region: data.region
|
|
1342
|
+
},
|
|
1343
|
+
body: data.requestBody,
|
|
1344
|
+
mediaType: 'application/json',
|
|
1345
|
+
errors: {
|
|
1346
|
+
400: 'Invalid input data',
|
|
1347
|
+
409: 'Commodity already exists'
|
|
1188
1348
|
}
|
|
1189
1349
|
});
|
|
1190
1350
|
}
|
|
@@ -1193,7 +1353,7 @@ export class BeanCommoditiesService {
|
|
|
1193
1353
|
* List user commodities
|
|
1194
1354
|
* Returns all commodity definitions for the authenticated user with optional filtering
|
|
1195
1355
|
* @param data The data for the request.
|
|
1196
|
-
* @param data.region Region code
|
|
1356
|
+
* @param data.region Region code for tenant context
|
|
1197
1357
|
* @param data.search Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
|
|
1198
1358
|
* @param data.symbol Filter by exact symbol match
|
|
1199
1359
|
* @returns CommodityListResponseDto Commodities retrieved successfully
|
|
@@ -1220,7 +1380,7 @@ export class BeanCommoditiesService {
|
|
|
1220
1380
|
* Returns a specific commodity definition by its symbol
|
|
1221
1381
|
* @param data The data for the request.
|
|
1222
1382
|
* @param data.symbol Commodity symbol
|
|
1223
|
-
* @param data.region Region code
|
|
1383
|
+
* @param data.region Region code for tenant context
|
|
1224
1384
|
* @returns CommodityResponseDto Commodity retrieved successfully
|
|
1225
1385
|
* @throws ApiError
|
|
1226
1386
|
*/
|
|
@@ -1241,68 +1401,92 @@ export class BeanCommoditiesService {
|
|
|
1241
1401
|
}
|
|
1242
1402
|
|
|
1243
1403
|
/**
|
|
1404
|
+
* Update commodity
|
|
1405
|
+
* Updates an existing commodity definition. Symbol cannot be changed.
|
|
1244
1406
|
* @param data The data for the request.
|
|
1245
|
-
* @param data.
|
|
1246
|
-
* @
|
|
1407
|
+
* @param data.symbol Commodity symbol
|
|
1408
|
+
* @param data.region Region code for tenant context
|
|
1409
|
+
* @param data.requestBody
|
|
1410
|
+
* @returns CommodityResponseDto Commodity updated successfully
|
|
1247
1411
|
* @throws ApiError
|
|
1248
1412
|
*/
|
|
1249
|
-
public static
|
|
1250
|
-
data:
|
|
1251
|
-
): CancelablePromise<
|
|
1413
|
+
public static commodityControllerUpdate(
|
|
1414
|
+
data: CommodityControllerUpdateData
|
|
1415
|
+
): CancelablePromise<CommodityControllerUpdateResponse> {
|
|
1252
1416
|
return __request(OpenAPI, {
|
|
1253
1417
|
method: 'PUT',
|
|
1254
1418
|
url: '/api/v1/{region}/bean/commodities/{symbol}',
|
|
1255
1419
|
path: {
|
|
1420
|
+
symbol: data.symbol,
|
|
1256
1421
|
region: data.region
|
|
1422
|
+
},
|
|
1423
|
+
body: data.requestBody,
|
|
1424
|
+
mediaType: 'application/json',
|
|
1425
|
+
errors: {
|
|
1426
|
+
400: 'Invalid input data',
|
|
1427
|
+
404: 'Commodity not found'
|
|
1257
1428
|
}
|
|
1258
1429
|
});
|
|
1259
1430
|
}
|
|
1260
1431
|
|
|
1261
1432
|
/**
|
|
1433
|
+
* Delete commodity
|
|
1434
|
+
* Deletes a commodity definition
|
|
1262
1435
|
* @param data The data for the request.
|
|
1263
|
-
* @param data.
|
|
1264
|
-
* @
|
|
1436
|
+
* @param data.symbol Commodity symbol
|
|
1437
|
+
* @param data.region Region code for tenant context
|
|
1438
|
+
* @returns void Commodity deleted successfully
|
|
1265
1439
|
* @throws ApiError
|
|
1266
1440
|
*/
|
|
1267
|
-
public static
|
|
1268
|
-
data:
|
|
1269
|
-
): CancelablePromise<
|
|
1441
|
+
public static commodityControllerDelete(
|
|
1442
|
+
data: CommodityControllerDeleteData
|
|
1443
|
+
): CancelablePromise<CommodityControllerDeleteResponse> {
|
|
1270
1444
|
return __request(OpenAPI, {
|
|
1271
1445
|
method: 'DELETE',
|
|
1272
1446
|
url: '/api/v1/{region}/bean/commodities/{symbol}',
|
|
1273
1447
|
path: {
|
|
1448
|
+
symbol: data.symbol,
|
|
1274
1449
|
region: data.region
|
|
1450
|
+
},
|
|
1451
|
+
errors: {
|
|
1452
|
+
404: 'Commodity not found'
|
|
1275
1453
|
}
|
|
1276
1454
|
});
|
|
1277
1455
|
}
|
|
1278
1456
|
|
|
1279
1457
|
/**
|
|
1458
|
+
* Ensure commodity exists
|
|
1459
|
+
* Gets existing commodity or creates it with automatic initialization from OpenBB
|
|
1280
1460
|
* @param data The data for the request.
|
|
1281
|
-
* @param data.
|
|
1282
|
-
* @
|
|
1461
|
+
* @param data.symbol Commodity symbol
|
|
1462
|
+
* @param data.region Region code for tenant context
|
|
1463
|
+
* @returns CommodityResponseDto Commodity retrieved or created
|
|
1283
1464
|
* @throws ApiError
|
|
1284
1465
|
*/
|
|
1285
|
-
public static
|
|
1286
|
-
data:
|
|
1287
|
-
): CancelablePromise<
|
|
1466
|
+
public static commodityControllerGetOrCreate(
|
|
1467
|
+
data: CommodityControllerGetOrCreateData
|
|
1468
|
+
): CancelablePromise<CommodityControllerGetOrCreateResponse> {
|
|
1288
1469
|
return __request(OpenAPI, {
|
|
1289
1470
|
method: 'POST',
|
|
1290
1471
|
url: '/api/v1/{region}/bean/commodities/{symbol}/ensure',
|
|
1291
1472
|
path: {
|
|
1473
|
+
symbol: data.symbol,
|
|
1292
1474
|
region: data.region
|
|
1293
1475
|
}
|
|
1294
1476
|
});
|
|
1295
1477
|
}
|
|
1296
1478
|
|
|
1297
1479
|
/**
|
|
1480
|
+
* Bulk create commodities
|
|
1481
|
+
* Creates multiple commodities from a list of symbols, useful for initialization
|
|
1298
1482
|
* @param data The data for the request.
|
|
1299
|
-
* @param data.region Region code
|
|
1300
|
-
* @returns
|
|
1483
|
+
* @param data.region Region code for tenant context
|
|
1484
|
+
* @returns CommodityResponseDto Commodities created successfully
|
|
1301
1485
|
* @throws ApiError
|
|
1302
1486
|
*/
|
|
1303
|
-
public static
|
|
1304
|
-
data:
|
|
1305
|
-
): CancelablePromise<
|
|
1487
|
+
public static commodityControllerBulkCreate(
|
|
1488
|
+
data: CommodityControllerBulkCreateData
|
|
1489
|
+
): CancelablePromise<CommodityControllerBulkCreateResponse> {
|
|
1306
1490
|
return __request(OpenAPI, {
|
|
1307
1491
|
method: 'POST',
|
|
1308
1492
|
url: '/api/v1/{region}/bean/commodities/bulk',
|
|
@@ -1315,19 +1499,28 @@ export class BeanCommoditiesService {
|
|
|
1315
1499
|
|
|
1316
1500
|
export class RecurringRulesService {
|
|
1317
1501
|
/**
|
|
1502
|
+
* Create a new recurring rule
|
|
1503
|
+
* Creates a new recurring transaction rule for the authenticated user
|
|
1318
1504
|
* @param data The data for the request.
|
|
1319
|
-
* @param data.region Region code
|
|
1320
|
-
* @
|
|
1505
|
+
* @param data.region Region code for tenant context
|
|
1506
|
+
* @param data.requestBody
|
|
1507
|
+
* @returns RecurringRuleResponseDto Rule created successfully
|
|
1321
1508
|
* @throws ApiError
|
|
1322
1509
|
*/
|
|
1323
|
-
public static
|
|
1324
|
-
data:
|
|
1325
|
-
): CancelablePromise<
|
|
1510
|
+
public static recurringRuleControllerCreate(
|
|
1511
|
+
data: RecurringRuleControllerCreateData
|
|
1512
|
+
): CancelablePromise<RecurringRuleControllerCreateResponse> {
|
|
1326
1513
|
return __request(OpenAPI, {
|
|
1327
1514
|
method: 'POST',
|
|
1328
1515
|
url: '/api/v1/{region}/bean/recurring-rules',
|
|
1329
1516
|
path: {
|
|
1330
1517
|
region: data.region
|
|
1518
|
+
},
|
|
1519
|
+
body: data.requestBody,
|
|
1520
|
+
mediaType: 'application/json',
|
|
1521
|
+
errors: {
|
|
1522
|
+
400: 'Invalid input data (e.g., autoCreate without accounts)',
|
|
1523
|
+
409: 'Rule with same name already exists'
|
|
1331
1524
|
}
|
|
1332
1525
|
});
|
|
1333
1526
|
}
|
|
@@ -1336,7 +1529,7 @@ export class RecurringRulesService {
|
|
|
1336
1529
|
* List recurring rules
|
|
1337
1530
|
* Returns all recurring rules for the authenticated user with optional filtering
|
|
1338
1531
|
* @param data The data for the request.
|
|
1339
|
-
* @param data.region Region code
|
|
1532
|
+
* @param data.region Region code for tenant context
|
|
1340
1533
|
* @param data.isActive Filter by active status
|
|
1341
1534
|
* @param data.frequency Filter by frequency (WEEKLY, MONTHLY, etc.)
|
|
1342
1535
|
* @param data.hasAutoCreate Filter by autoCreate enabled
|
|
@@ -1361,19 +1554,30 @@ export class RecurringRulesService {
|
|
|
1361
1554
|
}
|
|
1362
1555
|
|
|
1363
1556
|
/**
|
|
1557
|
+
* Create recurring rule from transaction
|
|
1558
|
+
* Auto-creates a recurring rule using transaction data. User only confirms frequency.
|
|
1364
1559
|
* @param data The data for the request.
|
|
1365
|
-
* @param data.
|
|
1366
|
-
* @
|
|
1560
|
+
* @param data.transactionId Source transaction ID
|
|
1561
|
+
* @param data.region Region code for tenant context
|
|
1562
|
+
* @param data.requestBody
|
|
1563
|
+
* @returns RecurringRuleResponseDto Rule created successfully
|
|
1367
1564
|
* @throws ApiError
|
|
1368
1565
|
*/
|
|
1369
|
-
public static
|
|
1370
|
-
data:
|
|
1371
|
-
): CancelablePromise<
|
|
1566
|
+
public static recurringRuleControllerCreateFromTransaction(
|
|
1567
|
+
data: RecurringRuleControllerCreateFromTransactionData
|
|
1568
|
+
): CancelablePromise<RecurringRuleControllerCreateFromTransactionResponse> {
|
|
1372
1569
|
return __request(OpenAPI, {
|
|
1373
1570
|
method: 'POST',
|
|
1374
1571
|
url: '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}',
|
|
1375
1572
|
path: {
|
|
1573
|
+
transactionId: data.transactionId,
|
|
1376
1574
|
region: data.region
|
|
1575
|
+
},
|
|
1576
|
+
body: data.requestBody,
|
|
1577
|
+
mediaType: 'application/json',
|
|
1578
|
+
errors: {
|
|
1579
|
+
404: 'Transaction not found',
|
|
1580
|
+
409: 'Rule with same name already exists or transaction already linked'
|
|
1377
1581
|
}
|
|
1378
1582
|
});
|
|
1379
1583
|
}
|
|
@@ -1383,7 +1587,7 @@ export class RecurringRulesService {
|
|
|
1383
1587
|
* Returns a specific recurring rule with its details
|
|
1384
1588
|
* @param data The data for the request.
|
|
1385
1589
|
* @param data.id Rule ID
|
|
1386
|
-
* @param data.region Region code
|
|
1590
|
+
* @param data.region Region code for tenant context
|
|
1387
1591
|
* @returns RecurringRuleResponseDto Rule retrieved successfully
|
|
1388
1592
|
* @throws ApiError
|
|
1389
1593
|
*/
|
|
@@ -1404,37 +1608,55 @@ export class RecurringRulesService {
|
|
|
1404
1608
|
}
|
|
1405
1609
|
|
|
1406
1610
|
/**
|
|
1611
|
+
* Update recurring rule
|
|
1612
|
+
* Updates an existing recurring rule
|
|
1407
1613
|
* @param data The data for the request.
|
|
1408
|
-
* @param data.
|
|
1409
|
-
* @
|
|
1614
|
+
* @param data.id Rule ID
|
|
1615
|
+
* @param data.region Region code for tenant context
|
|
1616
|
+
* @param data.requestBody
|
|
1617
|
+
* @returns RecurringRuleResponseDto Rule updated successfully
|
|
1410
1618
|
* @throws ApiError
|
|
1411
1619
|
*/
|
|
1412
|
-
public static
|
|
1413
|
-
data:
|
|
1414
|
-
): CancelablePromise<
|
|
1620
|
+
public static recurringRuleControllerUpdate(
|
|
1621
|
+
data: RecurringRuleControllerUpdateData
|
|
1622
|
+
): CancelablePromise<RecurringRuleControllerUpdateResponse> {
|
|
1415
1623
|
return __request(OpenAPI, {
|
|
1416
1624
|
method: 'PATCH',
|
|
1417
1625
|
url: '/api/v1/{region}/bean/recurring-rules/{id}',
|
|
1418
1626
|
path: {
|
|
1627
|
+
id: data.id,
|
|
1419
1628
|
region: data.region
|
|
1629
|
+
},
|
|
1630
|
+
body: data.requestBody,
|
|
1631
|
+
mediaType: 'application/json',
|
|
1632
|
+
errors: {
|
|
1633
|
+
400: 'Invalid input data',
|
|
1634
|
+
404: 'Rule not found'
|
|
1420
1635
|
}
|
|
1421
1636
|
});
|
|
1422
1637
|
}
|
|
1423
1638
|
|
|
1424
1639
|
/**
|
|
1640
|
+
* Delete recurring rule
|
|
1641
|
+
* Soft deletes a recurring rule (sets isActive to false)
|
|
1425
1642
|
* @param data The data for the request.
|
|
1426
|
-
* @param data.
|
|
1427
|
-
* @
|
|
1643
|
+
* @param data.id Rule ID
|
|
1644
|
+
* @param data.region Region code for tenant context
|
|
1645
|
+
* @returns void Rule deleted successfully
|
|
1428
1646
|
* @throws ApiError
|
|
1429
1647
|
*/
|
|
1430
|
-
public static
|
|
1431
|
-
data:
|
|
1432
|
-
): CancelablePromise<
|
|
1648
|
+
public static recurringRuleControllerDelete(
|
|
1649
|
+
data: RecurringRuleControllerDeleteData
|
|
1650
|
+
): CancelablePromise<RecurringRuleControllerDeleteResponse> {
|
|
1433
1651
|
return __request(OpenAPI, {
|
|
1434
1652
|
method: 'DELETE',
|
|
1435
1653
|
url: '/api/v1/{region}/bean/recurring-rules/{id}',
|
|
1436
1654
|
path: {
|
|
1655
|
+
id: data.id,
|
|
1437
1656
|
region: data.region
|
|
1657
|
+
},
|
|
1658
|
+
errors: {
|
|
1659
|
+
404: 'Rule not found'
|
|
1438
1660
|
}
|
|
1439
1661
|
});
|
|
1440
1662
|
}
|
|
@@ -1444,7 +1666,7 @@ export class RecurringRulesService {
|
|
|
1444
1666
|
* Returns a rule with pending/overdue counts and next expected date
|
|
1445
1667
|
* @param data The data for the request.
|
|
1446
1668
|
* @param data.id Rule ID
|
|
1447
|
-
* @param data.region Region code
|
|
1669
|
+
* @param data.region Region code for tenant context
|
|
1448
1670
|
* @returns RecurringRuleWithStatsResponseDto Rule with stats retrieved successfully
|
|
1449
1671
|
* @throws ApiError
|
|
1450
1672
|
*/
|
|
@@ -1470,7 +1692,7 @@ export class ExpectedTransactionsService {
|
|
|
1470
1692
|
* List expected transactions
|
|
1471
1693
|
* Returns expected transactions for the authenticated user with optional filtering
|
|
1472
1694
|
* @param data The data for the request.
|
|
1473
|
-
* @param data.region Region code
|
|
1695
|
+
* @param data.region Region code for tenant context
|
|
1474
1696
|
* @param data.ruleId Filter by recurring rule ID
|
|
1475
1697
|
* @param data.status Filter by status (PENDING, COMPLETED, SKIPPED)
|
|
1476
1698
|
* @param data.fromDate Filter by date range start (YYYY-MM-DD)
|
|
@@ -1500,7 +1722,7 @@ export class ExpectedTransactionsService {
|
|
|
1500
1722
|
* List overdue expected transactions
|
|
1501
1723
|
* Returns all overdue expected transactions (PENDING past tolerance)
|
|
1502
1724
|
* @param data The data for the request.
|
|
1503
|
-
* @param data.region Region code
|
|
1725
|
+
* @param data.region Region code for tenant context
|
|
1504
1726
|
* @returns ExpectedTransactionListResponseDto Overdue transactions retrieved successfully
|
|
1505
1727
|
* @throws ApiError
|
|
1506
1728
|
*/
|
|
@@ -1521,7 +1743,7 @@ export class ExpectedTransactionsService {
|
|
|
1521
1743
|
* Returns a specific expected transaction with rule details
|
|
1522
1744
|
* @param data The data for the request.
|
|
1523
1745
|
* @param data.id Expected transaction ID
|
|
1524
|
-
* @param data.region Region code
|
|
1746
|
+
* @param data.region Region code for tenant context
|
|
1525
1747
|
* @returns ExpectedTransactionResponseDto Expected transaction retrieved successfully
|
|
1526
1748
|
* @throws ApiError
|
|
1527
1749
|
*/
|
|
@@ -1542,91 +1764,138 @@ export class ExpectedTransactionsService {
|
|
|
1542
1764
|
}
|
|
1543
1765
|
|
|
1544
1766
|
/**
|
|
1767
|
+
* Skip expected transaction
|
|
1768
|
+
* Marks an expected transaction as skipped (PENDING -> SKIPPED)
|
|
1545
1769
|
* @param data The data for the request.
|
|
1546
|
-
* @param data.
|
|
1547
|
-
* @
|
|
1770
|
+
* @param data.id Expected transaction ID
|
|
1771
|
+
* @param data.region Region code for tenant context
|
|
1772
|
+
* @returns ExpectedTransactionResponseDto Expected transaction skipped successfully
|
|
1548
1773
|
* @throws ApiError
|
|
1549
1774
|
*/
|
|
1550
|
-
public static
|
|
1551
|
-
data:
|
|
1552
|
-
): CancelablePromise<
|
|
1775
|
+
public static expectedTransactionControllerSkip(
|
|
1776
|
+
data: ExpectedTransactionControllerSkipData
|
|
1777
|
+
): CancelablePromise<ExpectedTransactionControllerSkipResponse> {
|
|
1553
1778
|
return __request(OpenAPI, {
|
|
1554
1779
|
method: 'POST',
|
|
1555
1780
|
url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
|
|
1556
1781
|
path: {
|
|
1782
|
+
id: data.id,
|
|
1557
1783
|
region: data.region
|
|
1784
|
+
},
|
|
1785
|
+
errors: {
|
|
1786
|
+
400: 'Cannot skip - not in PENDING status',
|
|
1787
|
+
404: 'Expected transaction not found'
|
|
1558
1788
|
}
|
|
1559
1789
|
});
|
|
1560
1790
|
}
|
|
1561
1791
|
|
|
1562
1792
|
/**
|
|
1793
|
+
* Undo skip
|
|
1794
|
+
* Reverses a skip operation (SKIPPED -> PENDING)
|
|
1563
1795
|
* @param data The data for the request.
|
|
1564
|
-
* @param data.
|
|
1565
|
-
* @
|
|
1796
|
+
* @param data.id Expected transaction ID
|
|
1797
|
+
* @param data.region Region code for tenant context
|
|
1798
|
+
* @returns ExpectedTransactionResponseDto Skip undone successfully
|
|
1566
1799
|
* @throws ApiError
|
|
1567
1800
|
*/
|
|
1568
|
-
public static
|
|
1569
|
-
data:
|
|
1570
|
-
): CancelablePromise<
|
|
1801
|
+
public static expectedTransactionControllerUndoSkip(
|
|
1802
|
+
data: ExpectedTransactionControllerUndoSkipData
|
|
1803
|
+
): CancelablePromise<ExpectedTransactionControllerUndoSkipResponse> {
|
|
1571
1804
|
return __request(OpenAPI, {
|
|
1572
1805
|
method: 'DELETE',
|
|
1573
1806
|
url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
|
|
1574
1807
|
path: {
|
|
1808
|
+
id: data.id,
|
|
1575
1809
|
region: data.region
|
|
1810
|
+
},
|
|
1811
|
+
errors: {
|
|
1812
|
+
400: 'Cannot undo - not in SKIPPED status',
|
|
1813
|
+
404: 'Expected transaction not found'
|
|
1576
1814
|
}
|
|
1577
1815
|
});
|
|
1578
1816
|
}
|
|
1579
1817
|
|
|
1580
1818
|
/**
|
|
1819
|
+
* Confirm transaction match
|
|
1820
|
+
* Manually matches an expected transaction with an actual transaction
|
|
1581
1821
|
* @param data The data for the request.
|
|
1582
|
-
* @param data.
|
|
1583
|
-
* @
|
|
1822
|
+
* @param data.id Expected transaction ID
|
|
1823
|
+
* @param data.region Region code for tenant context
|
|
1824
|
+
* @param data.requestBody
|
|
1825
|
+
* @returns unknown Match confirmed successfully
|
|
1584
1826
|
* @throws ApiError
|
|
1585
1827
|
*/
|
|
1586
|
-
public static
|
|
1587
|
-
data:
|
|
1588
|
-
): CancelablePromise<
|
|
1828
|
+
public static expectedTransactionControllerConfirmMatch(
|
|
1829
|
+
data: ExpectedTransactionControllerConfirmMatchData
|
|
1830
|
+
): CancelablePromise<ExpectedTransactionControllerConfirmMatchResponse> {
|
|
1589
1831
|
return __request(OpenAPI, {
|
|
1590
1832
|
method: 'POST',
|
|
1591
1833
|
url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
|
|
1592
1834
|
path: {
|
|
1835
|
+
id: data.id,
|
|
1593
1836
|
region: data.region
|
|
1837
|
+
},
|
|
1838
|
+
body: data.requestBody,
|
|
1839
|
+
mediaType: 'application/json',
|
|
1840
|
+
errors: {
|
|
1841
|
+
400: 'Cannot match - not in PENDING status',
|
|
1842
|
+
404: 'Expected or actual transaction not found',
|
|
1843
|
+
409: 'Actual transaction already matched to another rule'
|
|
1594
1844
|
}
|
|
1595
1845
|
});
|
|
1596
1846
|
}
|
|
1597
1847
|
|
|
1598
1848
|
/**
|
|
1849
|
+
* Unmatch transaction
|
|
1850
|
+
* Removes the match between expected and actual transaction (COMPLETED -> PENDING)
|
|
1599
1851
|
* @param data The data for the request.
|
|
1600
|
-
* @param data.
|
|
1601
|
-
* @
|
|
1852
|
+
* @param data.id Expected transaction ID
|
|
1853
|
+
* @param data.region Region code for tenant context
|
|
1854
|
+
* @returns unknown Match removed successfully
|
|
1602
1855
|
* @throws ApiError
|
|
1603
1856
|
*/
|
|
1604
|
-
public static
|
|
1605
|
-
data:
|
|
1606
|
-
): CancelablePromise<
|
|
1857
|
+
public static expectedTransactionControllerUnmatch(
|
|
1858
|
+
data: ExpectedTransactionControllerUnmatchData
|
|
1859
|
+
): CancelablePromise<ExpectedTransactionControllerUnmatchResponse> {
|
|
1607
1860
|
return __request(OpenAPI, {
|
|
1608
1861
|
method: 'DELETE',
|
|
1609
1862
|
url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
|
|
1610
1863
|
path: {
|
|
1864
|
+
id: data.id,
|
|
1611
1865
|
region: data.region
|
|
1866
|
+
},
|
|
1867
|
+
errors: {
|
|
1868
|
+
400: 'Cannot unmatch - not in COMPLETED status',
|
|
1869
|
+
404: 'Expected transaction not found'
|
|
1612
1870
|
}
|
|
1613
1871
|
});
|
|
1614
1872
|
}
|
|
1615
1873
|
|
|
1616
1874
|
/**
|
|
1875
|
+
* Enter Now
|
|
1876
|
+
* Creates an actual transaction for an expected transaction (YNAB-style Enter Now)
|
|
1617
1877
|
* @param data The data for the request.
|
|
1618
|
-
* @param data.
|
|
1619
|
-
* @
|
|
1878
|
+
* @param data.id Expected transaction ID
|
|
1879
|
+
* @param data.region Region code for tenant context
|
|
1880
|
+
* @param data.requestBody
|
|
1881
|
+
* @returns unknown Transaction created successfully
|
|
1620
1882
|
* @throws ApiError
|
|
1621
1883
|
*/
|
|
1622
|
-
public static
|
|
1623
|
-
data:
|
|
1624
|
-
): CancelablePromise<
|
|
1884
|
+
public static expectedTransactionControllerEnterNow(
|
|
1885
|
+
data: ExpectedTransactionControllerEnterNowData
|
|
1886
|
+
): CancelablePromise<ExpectedTransactionControllerEnterNowResponse> {
|
|
1625
1887
|
return __request(OpenAPI, {
|
|
1626
1888
|
method: 'POST',
|
|
1627
1889
|
url: '/api/v1/{region}/bean/expected-transactions/{id}/enter',
|
|
1628
1890
|
path: {
|
|
1891
|
+
id: data.id,
|
|
1629
1892
|
region: data.region
|
|
1893
|
+
},
|
|
1894
|
+
body: data.requestBody,
|
|
1895
|
+
mediaType: 'application/json',
|
|
1896
|
+
errors: {
|
|
1897
|
+
400: 'Cannot enter - not in PENDING status or missing accounts',
|
|
1898
|
+
404: 'Expected transaction or accounts not found'
|
|
1630
1899
|
}
|
|
1631
1900
|
});
|
|
1632
1901
|
}
|
|
@@ -1637,7 +1906,7 @@ export class RecurringForecastService {
|
|
|
1637
1906
|
* Get cash flow forecast
|
|
1638
1907
|
* Returns predicted outflows for the next N months based on active recurring rules
|
|
1639
1908
|
* @param data The data for the request.
|
|
1640
|
-
* @param data.region Region code
|
|
1909
|
+
* @param data.region Region code for tenant context
|
|
1641
1910
|
* @param data.months Number of months to forecast (1-12, default 3)
|
|
1642
1911
|
* @returns ForecastResponseDto Forecast retrieved successfully
|
|
1643
1912
|
* @throws ApiError
|
|
@@ -1660,19 +1929,29 @@ export class RecurringForecastService {
|
|
|
1660
1929
|
|
|
1661
1930
|
export class BeanTransactionRulesService {
|
|
1662
1931
|
/**
|
|
1932
|
+
* Create a new transaction rule (or upsert if upsertByPayee=true)
|
|
1933
|
+
* Creates a new rule. If upsertByPayee=true, updates existing rule matching payeeKeywords[0] instead of creating duplicate.
|
|
1663
1934
|
* @param data The data for the request.
|
|
1664
|
-
* @param data.region Region code
|
|
1665
|
-
* @
|
|
1935
|
+
* @param data.region Region code for tenant context
|
|
1936
|
+
* @param data.requestBody
|
|
1937
|
+
* @returns TransactionRuleResponseDto Rule updated successfully (upsert mode)
|
|
1666
1938
|
* @throws ApiError
|
|
1667
1939
|
*/
|
|
1668
|
-
public static
|
|
1669
|
-
data:
|
|
1670
|
-
): CancelablePromise<
|
|
1940
|
+
public static transactionRuleControllerCreate(
|
|
1941
|
+
data: TransactionRuleControllerCreateData
|
|
1942
|
+
): CancelablePromise<TransactionRuleControllerCreateResponse> {
|
|
1671
1943
|
return __request(OpenAPI, {
|
|
1672
1944
|
method: 'POST',
|
|
1673
1945
|
url: '/api/v1/{region}/bean/transaction-rules',
|
|
1674
1946
|
path: {
|
|
1675
1947
|
region: data.region
|
|
1948
|
+
},
|
|
1949
|
+
body: data.requestBody,
|
|
1950
|
+
mediaType: 'application/json',
|
|
1951
|
+
errors: {
|
|
1952
|
+
400: 'Validation failed',
|
|
1953
|
+
401: 'Unauthorized',
|
|
1954
|
+
409: 'Resource conflict - another process is updating this rule'
|
|
1676
1955
|
}
|
|
1677
1956
|
});
|
|
1678
1957
|
}
|
|
@@ -1680,7 +1959,7 @@ export class BeanTransactionRulesService {
|
|
|
1680
1959
|
/**
|
|
1681
1960
|
* Get all transaction rules for user
|
|
1682
1961
|
* @param data The data for the request.
|
|
1683
|
-
* @param data.region Region code
|
|
1962
|
+
* @param data.region Region code for tenant context
|
|
1684
1963
|
* @param data.limit Max results per page (default: 20, max: 100)
|
|
1685
1964
|
* @param data.offset Pagination offset (default: 0)
|
|
1686
1965
|
* @param data.enabled Filter by enabled status
|
|
@@ -1714,7 +1993,7 @@ export class BeanTransactionRulesService {
|
|
|
1714
1993
|
/**
|
|
1715
1994
|
* Validate transaction rule configuration
|
|
1716
1995
|
* @param data The data for the request.
|
|
1717
|
-
* @param data.region Region code
|
|
1996
|
+
* @param data.region Region code for tenant context
|
|
1718
1997
|
* @param data.requestBody
|
|
1719
1998
|
* @returns ValidateRuleResponseDto Validation result
|
|
1720
1999
|
* @throws ApiError
|
|
@@ -1731,25 +2010,34 @@ export class BeanTransactionRulesService {
|
|
|
1731
2010
|
body: data.requestBody,
|
|
1732
2011
|
mediaType: 'application/json',
|
|
1733
2012
|
errors: {
|
|
2013
|
+
400: 'Validation failed',
|
|
1734
2014
|
401: 'Unauthorized'
|
|
1735
2015
|
}
|
|
1736
2016
|
});
|
|
1737
2017
|
}
|
|
1738
2018
|
|
|
1739
2019
|
/**
|
|
2020
|
+
* Bulk create transaction rules
|
|
1740
2021
|
* @param data The data for the request.
|
|
1741
|
-
* @param data.region Region code
|
|
1742
|
-
* @
|
|
2022
|
+
* @param data.region Region code for tenant context
|
|
2023
|
+
* @param data.requestBody
|
|
2024
|
+
* @returns BulkCreateRulesResponseDto Bulk create completed
|
|
1743
2025
|
* @throws ApiError
|
|
1744
2026
|
*/
|
|
1745
|
-
public static
|
|
1746
|
-
data:
|
|
1747
|
-
): CancelablePromise<
|
|
2027
|
+
public static transactionRuleControllerBulkCreate(
|
|
2028
|
+
data: TransactionRuleControllerBulkCreateData
|
|
2029
|
+
): CancelablePromise<TransactionRuleControllerBulkCreateResponse> {
|
|
1748
2030
|
return __request(OpenAPI, {
|
|
1749
2031
|
method: 'POST',
|
|
1750
2032
|
url: '/api/v1/{region}/bean/transaction-rules/bulk',
|
|
1751
2033
|
path: {
|
|
1752
2034
|
region: data.region
|
|
2035
|
+
},
|
|
2036
|
+
body: data.requestBody,
|
|
2037
|
+
mediaType: 'application/json',
|
|
2038
|
+
errors: {
|
|
2039
|
+
400: 'Invalid bulk create data',
|
|
2040
|
+
401: 'Unauthorized'
|
|
1753
2041
|
}
|
|
1754
2042
|
});
|
|
1755
2043
|
}
|
|
@@ -1758,7 +2046,7 @@ export class BeanTransactionRulesService {
|
|
|
1758
2046
|
* Export transaction rules
|
|
1759
2047
|
* @param data The data for the request.
|
|
1760
2048
|
* @param data.format Export format (currently only JSON supported)
|
|
1761
|
-
* @param data.region Region code
|
|
2049
|
+
* @param data.region Region code for tenant context
|
|
1762
2050
|
* @returns ExportRulesResponseDto Exported rules
|
|
1763
2051
|
* @throws ApiError
|
|
1764
2052
|
*/
|
|
@@ -1783,7 +2071,7 @@ export class BeanTransactionRulesService {
|
|
|
1783
2071
|
* Get transaction rule statistics
|
|
1784
2072
|
* @param data The data for the request.
|
|
1785
2073
|
* @param data.period Statistics time period
|
|
1786
|
-
* @param data.region Region code
|
|
2074
|
+
* @param data.region Region code for tenant context
|
|
1787
2075
|
* @returns RuleStatisticsResponseDto Rule statistics
|
|
1788
2076
|
* @throws ApiError
|
|
1789
2077
|
*/
|
|
@@ -1807,7 +2095,7 @@ export class BeanTransactionRulesService {
|
|
|
1807
2095
|
* Get transaction rule detail
|
|
1808
2096
|
* @param data The data for the request.
|
|
1809
2097
|
* @param data.ruleId Rule ID
|
|
1810
|
-
* @param data.region Region code
|
|
2098
|
+
* @param data.region Region code for tenant context
|
|
1811
2099
|
* @returns TransactionRuleResponseDto Rule details
|
|
1812
2100
|
* @throws ApiError
|
|
1813
2101
|
*/
|
|
@@ -1830,37 +2118,59 @@ export class BeanTransactionRulesService {
|
|
|
1830
2118
|
}
|
|
1831
2119
|
|
|
1832
2120
|
/**
|
|
2121
|
+
* Update a transaction rule
|
|
1833
2122
|
* @param data The data for the request.
|
|
1834
|
-
* @param data.
|
|
1835
|
-
* @
|
|
2123
|
+
* @param data.ruleId Rule ID to update
|
|
2124
|
+
* @param data.region Region code for tenant context
|
|
2125
|
+
* @param data.requestBody
|
|
2126
|
+
* @returns TransactionRuleResponseDto Rule updated successfully
|
|
1836
2127
|
* @throws ApiError
|
|
1837
2128
|
*/
|
|
1838
|
-
public static
|
|
1839
|
-
data:
|
|
1840
|
-
): CancelablePromise<
|
|
2129
|
+
public static transactionRuleControllerUpdate(
|
|
2130
|
+
data: TransactionRuleControllerUpdateData
|
|
2131
|
+
): CancelablePromise<TransactionRuleControllerUpdateResponse> {
|
|
1841
2132
|
return __request(OpenAPI, {
|
|
1842
2133
|
method: 'PUT',
|
|
1843
2134
|
url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
|
|
1844
2135
|
path: {
|
|
2136
|
+
ruleId: data.ruleId,
|
|
1845
2137
|
region: data.region
|
|
2138
|
+
},
|
|
2139
|
+
body: data.requestBody,
|
|
2140
|
+
mediaType: 'application/json',
|
|
2141
|
+
errors: {
|
|
2142
|
+
400: 'Validation failed',
|
|
2143
|
+
401: 'Unauthorized',
|
|
2144
|
+
403: 'Forbidden - not owner of rule',
|
|
2145
|
+
404: 'Rule not found',
|
|
2146
|
+
409: 'Resource conflict - rule is being modified by another process'
|
|
1846
2147
|
}
|
|
1847
2148
|
});
|
|
1848
2149
|
}
|
|
1849
2150
|
|
|
1850
2151
|
/**
|
|
2152
|
+
* Delete a transaction rule
|
|
1851
2153
|
* @param data The data for the request.
|
|
1852
|
-
* @param data.
|
|
1853
|
-
* @
|
|
2154
|
+
* @param data.ruleId Rule ID to delete
|
|
2155
|
+
* @param data.region Region code for tenant context
|
|
2156
|
+
* @returns void Rule deleted successfully
|
|
1854
2157
|
* @throws ApiError
|
|
1855
2158
|
*/
|
|
1856
|
-
public static
|
|
1857
|
-
data:
|
|
1858
|
-
): CancelablePromise<
|
|
2159
|
+
public static transactionRuleControllerDelete(
|
|
2160
|
+
data: TransactionRuleControllerDeleteData
|
|
2161
|
+
): CancelablePromise<TransactionRuleControllerDeleteResponse> {
|
|
1859
2162
|
return __request(OpenAPI, {
|
|
1860
2163
|
method: 'DELETE',
|
|
1861
2164
|
url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
|
|
1862
2165
|
path: {
|
|
2166
|
+
ruleId: data.ruleId,
|
|
1863
2167
|
region: data.region
|
|
2168
|
+
},
|
|
2169
|
+
errors: {
|
|
2170
|
+
401: 'Unauthorized',
|
|
2171
|
+
403: 'Forbidden - not owner of rule',
|
|
2172
|
+
404: 'Rule not found',
|
|
2173
|
+
409: 'Resource conflict - rule is being modified by another process'
|
|
1864
2174
|
}
|
|
1865
2175
|
});
|
|
1866
2176
|
}
|
|
@@ -1869,7 +2179,7 @@ export class BeanTransactionRulesService {
|
|
|
1869
2179
|
* Test rule matching
|
|
1870
2180
|
* @param data The data for the request.
|
|
1871
2181
|
* @param data.ruleId Rule ID to test
|
|
1872
|
-
* @param data.region Region code
|
|
2182
|
+
* @param data.region Region code for tenant context
|
|
1873
2183
|
* @param data.requestBody
|
|
1874
2184
|
* @returns TestRuleResponseDto Test result
|
|
1875
2185
|
* @throws ApiError
|
|
@@ -1899,7 +2209,6 @@ export class UsersService {
|
|
|
1899
2209
|
/**
|
|
1900
2210
|
* Delete own user account
|
|
1901
2211
|
* @param data The data for the request.
|
|
1902
|
-
* @param data.region Region code (cn, us, de)
|
|
1903
2212
|
* @param data.requestBody
|
|
1904
2213
|
* @returns void User deleted successfully
|
|
1905
2214
|
* @throws ApiError
|
|
@@ -1910,9 +2219,6 @@ export class UsersService {
|
|
|
1910
2219
|
return __request(OpenAPI, {
|
|
1911
2220
|
method: 'DELETE',
|
|
1912
2221
|
url: '/api/v1/users',
|
|
1913
|
-
path: {
|
|
1914
|
-
region: data.region
|
|
1915
|
-
},
|
|
1916
2222
|
body: data.requestBody,
|
|
1917
2223
|
mediaType: 'application/json',
|
|
1918
2224
|
errors: {
|
|
@@ -1925,7 +2231,6 @@ export class UsersService {
|
|
|
1925
2231
|
* Get current authenticated user
|
|
1926
2232
|
* @param data The data for the request.
|
|
1927
2233
|
* @param data.acceptLanguage
|
|
1928
|
-
* @param data.region Region code (cn, us, de)
|
|
1929
2234
|
* @returns unknown User retrieved successfully
|
|
1930
2235
|
* @throws ApiError
|
|
1931
2236
|
*/
|
|
@@ -1935,9 +2240,6 @@ export class UsersService {
|
|
|
1935
2240
|
return __request(OpenAPI, {
|
|
1936
2241
|
method: 'GET',
|
|
1937
2242
|
url: '/api/v1/users',
|
|
1938
|
-
path: {
|
|
1939
|
-
region: data.region
|
|
1940
|
-
},
|
|
1941
2243
|
headers: {
|
|
1942
2244
|
'accept-language': data.acceptLanguage
|
|
1943
2245
|
}
|
|
@@ -1948,7 +2250,6 @@ export class UsersService {
|
|
|
1948
2250
|
* Sign up new user
|
|
1949
2251
|
* Create a new account with auto-generated access token. Protected by Cloudflare Turnstile to prevent automated signup (when enabled).
|
|
1950
2252
|
* @param data The data for the request.
|
|
1951
|
-
* @param data.region Region code (cn, us, de)
|
|
1952
2253
|
* @param data.requestBody
|
|
1953
2254
|
* @returns unknown User created successfully
|
|
1954
2255
|
* @throws ApiError
|
|
@@ -1959,9 +2260,6 @@ export class UsersService {
|
|
|
1959
2260
|
return __request(OpenAPI, {
|
|
1960
2261
|
method: 'POST',
|
|
1961
2262
|
url: '/api/v1/users',
|
|
1962
|
-
path: {
|
|
1963
|
-
region: data.region
|
|
1964
|
-
},
|
|
1965
2263
|
body: data.requestBody,
|
|
1966
2264
|
mediaType: 'application/json',
|
|
1967
2265
|
errors: {
|
|
@@ -1975,7 +2273,6 @@ export class UsersService {
|
|
|
1975
2273
|
* Delete user by ID (admin only)
|
|
1976
2274
|
* @param data The data for the request.
|
|
1977
2275
|
* @param data.id User ID to delete
|
|
1978
|
-
* @param data.region Region code (cn, us, de)
|
|
1979
2276
|
* @returns void User deleted successfully
|
|
1980
2277
|
* @throws ApiError
|
|
1981
2278
|
*/
|
|
@@ -1986,8 +2283,7 @@ export class UsersService {
|
|
|
1986
2283
|
method: 'DELETE',
|
|
1987
2284
|
url: '/api/v1/users/{id}',
|
|
1988
2285
|
path: {
|
|
1989
|
-
id: data.id
|
|
1990
|
-
region: data.region
|
|
2286
|
+
id: data.id
|
|
1991
2287
|
},
|
|
1992
2288
|
errors: {
|
|
1993
2289
|
403: 'Cannot delete own account or insufficient permissions'
|
|
@@ -1999,7 +2295,6 @@ export class UsersService {
|
|
|
1999
2295
|
* Get user info by user ID
|
|
2000
2296
|
* @param data The data for the request.
|
|
2001
2297
|
* @param data.id User ID
|
|
2002
|
-
* @param data.region Region code (cn, us, de)
|
|
2003
2298
|
* @returns unknown User info retrieved successfully
|
|
2004
2299
|
* @throws ApiError
|
|
2005
2300
|
*/
|
|
@@ -2010,8 +2305,7 @@ export class UsersService {
|
|
|
2010
2305
|
method: 'GET',
|
|
2011
2306
|
url: '/api/v1/users/{id}/info',
|
|
2012
2307
|
path: {
|
|
2013
|
-
id: data.id
|
|
2014
|
-
region: data.region
|
|
2308
|
+
id: data.id
|
|
2015
2309
|
},
|
|
2016
2310
|
errors: {
|
|
2017
2311
|
403: 'Cannot access other user info without admin permission'
|
|
@@ -2022,7 +2316,6 @@ export class UsersService {
|
|
|
2022
2316
|
/**
|
|
2023
2317
|
* Update user settings
|
|
2024
2318
|
* @param data The data for the request.
|
|
2025
|
-
* @param data.region Region code (cn, us, de)
|
|
2026
2319
|
* @param data.requestBody
|
|
2027
2320
|
* @returns unknown Settings updated successfully
|
|
2028
2321
|
* @throws ApiError
|
|
@@ -2033,9 +2326,6 @@ export class UsersService {
|
|
|
2033
2326
|
return __request(OpenAPI, {
|
|
2034
2327
|
method: 'PUT',
|
|
2035
2328
|
url: '/api/v1/users/setting',
|
|
2036
|
-
path: {
|
|
2037
|
-
region: data.region
|
|
2038
|
-
},
|
|
2039
2329
|
body: data.requestBody,
|
|
2040
2330
|
mediaType: 'application/json',
|
|
2041
2331
|
errors: {
|
|
@@ -2049,7 +2339,6 @@ export class UsersService {
|
|
|
2049
2339
|
* @param data The data for the request.
|
|
2050
2340
|
* @param data.pageNo Page number
|
|
2051
2341
|
* @param data.pageSize Page size
|
|
2052
|
-
* @param data.region Region code (cn, us, de)
|
|
2053
2342
|
* @returns unknown Settings list retrieved successfully
|
|
2054
2343
|
* @throws ApiError
|
|
2055
2344
|
*/
|
|
@@ -2059,9 +2348,6 @@ export class UsersService {
|
|
|
2059
2348
|
return __request(OpenAPI, {
|
|
2060
2349
|
method: 'GET',
|
|
2061
2350
|
url: '/api/v1/users/settings-by-page',
|
|
2062
|
-
path: {
|
|
2063
|
-
region: data.region
|
|
2064
|
-
},
|
|
2065
2351
|
query: {
|
|
2066
2352
|
pageNo: data.pageNo,
|
|
2067
2353
|
pageSize: data.pageSize
|
|
@@ -2071,20 +2357,13 @@ export class UsersService {
|
|
|
2071
2357
|
|
|
2072
2358
|
/**
|
|
2073
2359
|
* Get asset and liability summary for current user
|
|
2074
|
-
* @param data The data for the request.
|
|
2075
|
-
* @param data.region Region code (cn, us, de)
|
|
2076
2360
|
* @returns unknown Summary retrieved successfully
|
|
2077
2361
|
* @throws ApiError
|
|
2078
2362
|
*/
|
|
2079
|
-
public static userControllerGetAssetLiabilitySummary(
|
|
2080
|
-
data: UserControllerGetAssetLiabilitySummaryData
|
|
2081
|
-
): CancelablePromise<UserControllerGetAssetLiabilitySummaryResponse> {
|
|
2363
|
+
public static userControllerGetAssetLiabilitySummary(): CancelablePromise<UserControllerGetAssetLiabilitySummaryResponse> {
|
|
2082
2364
|
return __request(OpenAPI, {
|
|
2083
2365
|
method: 'GET',
|
|
2084
|
-
url: '/api/v1/users/asset-liability-summary'
|
|
2085
|
-
path: {
|
|
2086
|
-
region: data.region
|
|
2087
|
-
}
|
|
2366
|
+
url: '/api/v1/users/asset-liability-summary'
|
|
2088
2367
|
});
|
|
2089
2368
|
}
|
|
2090
2369
|
}
|
|
@@ -2092,20 +2371,13 @@ export class UsersService {
|
|
|
2092
2371
|
export class PropertiesService {
|
|
2093
2372
|
/**
|
|
2094
2373
|
* Get all system properties
|
|
2095
|
-
* @param data The data for the request.
|
|
2096
|
-
* @param data.region Region code (cn, us, de)
|
|
2097
2374
|
* @returns unknown Properties retrieved successfully
|
|
2098
2375
|
* @throws ApiError
|
|
2099
2376
|
*/
|
|
2100
|
-
public static propertyControllerGetAll(
|
|
2101
|
-
data: PropertyControllerGetAllData
|
|
2102
|
-
): CancelablePromise<PropertyControllerGetAllResponse> {
|
|
2377
|
+
public static propertyControllerGetAll(): CancelablePromise<PropertyControllerGetAllResponse> {
|
|
2103
2378
|
return __request(OpenAPI, {
|
|
2104
2379
|
method: 'GET',
|
|
2105
2380
|
url: '/api/v1/admin/properties',
|
|
2106
|
-
path: {
|
|
2107
|
-
region: data.region
|
|
2108
|
-
},
|
|
2109
2381
|
errors: {
|
|
2110
2382
|
401: 'Unauthorized',
|
|
2111
2383
|
403: 'Forbidden - insufficient permissions'
|
|
@@ -2117,7 +2389,6 @@ export class PropertiesService {
|
|
|
2117
2389
|
* Get property by key
|
|
2118
2390
|
* @param data The data for the request.
|
|
2119
2391
|
* @param data.key Property key
|
|
2120
|
-
* @param data.region Region code (cn, us, de)
|
|
2121
2392
|
* @returns unknown Property retrieved successfully
|
|
2122
2393
|
* @throws ApiError
|
|
2123
2394
|
*/
|
|
@@ -2128,8 +2399,7 @@ export class PropertiesService {
|
|
|
2128
2399
|
method: 'GET',
|
|
2129
2400
|
url: '/api/v1/admin/properties/{key}',
|
|
2130
2401
|
path: {
|
|
2131
|
-
key: data.key
|
|
2132
|
-
region: data.region
|
|
2402
|
+
key: data.key
|
|
2133
2403
|
},
|
|
2134
2404
|
errors: {
|
|
2135
2405
|
401: 'Unauthorized',
|
|
@@ -2140,48 +2410,77 @@ export class PropertiesService {
|
|
|
2140
2410
|
}
|
|
2141
2411
|
|
|
2142
2412
|
/**
|
|
2413
|
+
* Update a system property
|
|
2143
2414
|
* @param data The data for the request.
|
|
2144
|
-
* @param data.
|
|
2145
|
-
* @
|
|
2415
|
+
* @param data.key Property key
|
|
2416
|
+
* @param data.requestBody
|
|
2417
|
+
* @returns unknown Property updated successfully
|
|
2146
2418
|
* @throws ApiError
|
|
2147
2419
|
*/
|
|
2148
|
-
public static
|
|
2149
|
-
data:
|
|
2150
|
-
): CancelablePromise<
|
|
2420
|
+
public static propertyControllerUpdate(
|
|
2421
|
+
data: PropertyControllerUpdateData
|
|
2422
|
+
): CancelablePromise<PropertyControllerUpdateResponse> {
|
|
2151
2423
|
return __request(OpenAPI, {
|
|
2152
2424
|
method: 'PUT',
|
|
2153
2425
|
url: '/api/v1/admin/properties/{key}',
|
|
2154
2426
|
path: {
|
|
2155
|
-
|
|
2427
|
+
key: data.key
|
|
2428
|
+
},
|
|
2429
|
+
body: data.requestBody,
|
|
2430
|
+
mediaType: 'application/json',
|
|
2431
|
+
errors: {
|
|
2432
|
+
401: 'Unauthorized',
|
|
2433
|
+
403: 'Forbidden - insufficient permissions'
|
|
2156
2434
|
}
|
|
2157
2435
|
});
|
|
2158
2436
|
}
|
|
2159
2437
|
|
|
2160
2438
|
/**
|
|
2439
|
+
* Delete a system property
|
|
2161
2440
|
* @param data The data for the request.
|
|
2162
|
-
* @param data.
|
|
2163
|
-
* @returns void
|
|
2441
|
+
* @param data.key Property key
|
|
2442
|
+
* @returns void Property deleted successfully
|
|
2164
2443
|
* @throws ApiError
|
|
2165
2444
|
*/
|
|
2166
|
-
public static
|
|
2167
|
-
data:
|
|
2168
|
-
): CancelablePromise<
|
|
2445
|
+
public static propertyControllerDelete(
|
|
2446
|
+
data: PropertyControllerDeleteData
|
|
2447
|
+
): CancelablePromise<PropertyControllerDeleteResponse> {
|
|
2169
2448
|
return __request(OpenAPI, {
|
|
2170
2449
|
method: 'DELETE',
|
|
2171
2450
|
url: '/api/v1/admin/properties/{key}',
|
|
2172
2451
|
path: {
|
|
2173
|
-
|
|
2452
|
+
key: data.key
|
|
2453
|
+
},
|
|
2454
|
+
errors: {
|
|
2455
|
+
401: 'Unauthorized',
|
|
2456
|
+
403: 'Forbidden - insufficient permissions',
|
|
2457
|
+
404: 'Property not found'
|
|
2174
2458
|
}
|
|
2175
2459
|
});
|
|
2176
2460
|
}
|
|
2177
2461
|
}
|
|
2178
2462
|
|
|
2463
|
+
export class BeanExportService {
|
|
2464
|
+
/**
|
|
2465
|
+
* Export Beancount ledger as ZIP
|
|
2466
|
+
* Export all user Beancount data as a ZIP file containing ledger.beancount and yearly files in community format.
|
|
2467
|
+
* @returns unknown
|
|
2468
|
+
* @throws ApiError
|
|
2469
|
+
*/
|
|
2470
|
+
public static exportControllerExportBeancount(): CancelablePromise<ExportControllerExportBeancountResponse> {
|
|
2471
|
+
return __request(OpenAPI, {
|
|
2472
|
+
method: 'GET',
|
|
2473
|
+
url: '/api/v1/{region}/bean/export/beancount'
|
|
2474
|
+
});
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2179
2478
|
export class BeanImportService {
|
|
2180
2479
|
/**
|
|
2181
2480
|
* Import a bill file
|
|
2182
2481
|
* 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).
|
|
2183
2482
|
* @param data The data for the request.
|
|
2184
|
-
* @param data.region Region code
|
|
2483
|
+
* @param data.region Region code for tenant context
|
|
2185
2484
|
* @param data.formData Bill file to import
|
|
2186
2485
|
* @returns ImportResultDto File imported successfully
|
|
2187
2486
|
* @throws ApiError
|
|
@@ -2210,7 +2509,7 @@ export class BeanImportService {
|
|
|
2210
2509
|
* Identify file type
|
|
2211
2510
|
* Upload a file to check if it can be processed by any registered importer. Does not perform actual import - useful for pre-validation. Uses user-specific importer configuration.
|
|
2212
2511
|
* @param data The data for the request.
|
|
2213
|
-
* @param data.region Region code
|
|
2512
|
+
* @param data.region Region code for tenant context
|
|
2214
2513
|
* @param data.formData File to identify
|
|
2215
2514
|
* @returns IdentifyResultDto File identification result
|
|
2216
2515
|
* @throws ApiError
|
|
@@ -2232,12 +2531,38 @@ export class BeanImportService {
|
|
|
2232
2531
|
});
|
|
2233
2532
|
}
|
|
2234
2533
|
|
|
2534
|
+
/**
|
|
2535
|
+
* Import a Beancount file in community format
|
|
2536
|
+
* 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.
|
|
2537
|
+
* @param data The data for the request.
|
|
2538
|
+
* @param data.region Region code for tenant context
|
|
2539
|
+
* @param data.formData Beancount file to import
|
|
2540
|
+
* @returns unknown Beancount file imported successfully
|
|
2541
|
+
* @throws ApiError
|
|
2542
|
+
*/
|
|
2543
|
+
public static fileImportControllerImportBeancount(
|
|
2544
|
+
data: FileImportControllerImportBeancountData
|
|
2545
|
+
): CancelablePromise<FileImportControllerImportBeancountResponse> {
|
|
2546
|
+
return __request(OpenAPI, {
|
|
2547
|
+
method: 'POST',
|
|
2548
|
+
url: '/api/v1/{region}/bean/import/beancount',
|
|
2549
|
+
path: {
|
|
2550
|
+
region: data.region
|
|
2551
|
+
},
|
|
2552
|
+
formData: data.formData,
|
|
2553
|
+
mediaType: 'multipart/form-data',
|
|
2554
|
+
errors: {
|
|
2555
|
+
400: 'Bad request - invalid file or no file uploaded'
|
|
2556
|
+
}
|
|
2557
|
+
});
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2235
2560
|
/**
|
|
2236
2561
|
* Get importer configuration
|
|
2237
2562
|
* Returns the current configuration for the specified importer. Creates default configuration if none exists.
|
|
2238
2563
|
* @param data The data for the request.
|
|
2239
|
-
* @param data.importerId Importer identifier. Supported importers: alipay, alipay-web, wechat, boc, boc-credit, ccb, cmb, cmbc, cmbc-credit, icbc, icbc-credit, hsbc-hk
|
|
2240
|
-
* @param data.region Region code
|
|
2564
|
+
* @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
|
|
2565
|
+
* @param data.region Region code for tenant context
|
|
2241
2566
|
* @returns ImporterConfigDto Configuration retrieved successfully
|
|
2242
2567
|
* @throws ApiError
|
|
2243
2568
|
*/
|
|
@@ -2259,40 +2584,173 @@ export class BeanImportService {
|
|
|
2259
2584
|
}
|
|
2260
2585
|
|
|
2261
2586
|
/**
|
|
2587
|
+
* Update importer configuration
|
|
2588
|
+
* Updates the configuration for the specified importer. Partial updates are supported.
|
|
2262
2589
|
* @param data The data for the request.
|
|
2263
|
-
* @param data.
|
|
2264
|
-
* @
|
|
2590
|
+
* @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
|
|
2591
|
+
* @param data.region Region code for tenant context
|
|
2592
|
+
* @param data.requestBody Partial configuration update. Only provided fields will be updated.
|
|
2593
|
+
* @returns ImporterConfigDto Configuration updated successfully
|
|
2265
2594
|
* @throws ApiError
|
|
2266
2595
|
*/
|
|
2267
|
-
public static
|
|
2268
|
-
data:
|
|
2269
|
-
): CancelablePromise<
|
|
2596
|
+
public static importerConfigControllerUpdateConfig(
|
|
2597
|
+
data: ImporterConfigControllerUpdateConfigData
|
|
2598
|
+
): CancelablePromise<ImporterConfigControllerUpdateConfigResponse> {
|
|
2270
2599
|
return __request(OpenAPI, {
|
|
2271
2600
|
method: 'PUT',
|
|
2272
2601
|
url: '/api/v1/{region}/bean/import/config/{importerId}',
|
|
2273
2602
|
path: {
|
|
2603
|
+
importerId: data.importerId,
|
|
2274
2604
|
region: data.region
|
|
2605
|
+
},
|
|
2606
|
+
body: data.requestBody,
|
|
2607
|
+
mediaType: 'application/json',
|
|
2608
|
+
errors: {
|
|
2609
|
+
400: 'Invalid input - Validation failed',
|
|
2610
|
+
404: 'Configuration not found'
|
|
2275
2611
|
}
|
|
2276
2612
|
});
|
|
2277
2613
|
}
|
|
2278
2614
|
|
|
2279
2615
|
/**
|
|
2616
|
+
* Reset configuration to default
|
|
2617
|
+
* Resets the configuration for the specified importer to default values. This operation overwrites all existing configuration.
|
|
2280
2618
|
* @param data The data for the request.
|
|
2281
|
-
* @param data.
|
|
2282
|
-
* @
|
|
2619
|
+
* @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
|
|
2620
|
+
* @param data.region Region code for tenant context
|
|
2621
|
+
* @returns ImporterConfigDto Configuration reset successfully
|
|
2283
2622
|
* @throws ApiError
|
|
2284
2623
|
*/
|
|
2285
|
-
public static
|
|
2286
|
-
data:
|
|
2287
|
-
): CancelablePromise<
|
|
2624
|
+
public static importerConfigControllerResetConfig(
|
|
2625
|
+
data: ImporterConfigControllerResetConfigData
|
|
2626
|
+
): CancelablePromise<ImporterConfigControllerResetConfigResponse> {
|
|
2288
2627
|
return __request(OpenAPI, {
|
|
2289
2628
|
method: 'POST',
|
|
2290
2629
|
url: '/api/v1/{region}/bean/import/config/{importerId}/reset',
|
|
2291
2630
|
path: {
|
|
2631
|
+
importerId: data.importerId,
|
|
2632
|
+
region: data.region
|
|
2633
|
+
},
|
|
2634
|
+
errors: {
|
|
2635
|
+
400: 'Invalid input - Unsupported importer'
|
|
2636
|
+
}
|
|
2637
|
+
});
|
|
2638
|
+
}
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2641
|
+
export class BeanPlatformsService {
|
|
2642
|
+
/**
|
|
2643
|
+
* Get all platforms with statistics
|
|
2644
|
+
* @returns unknown List of platforms with binding and account counts
|
|
2645
|
+
* @throws ApiError
|
|
2646
|
+
*/
|
|
2647
|
+
public static platformControllerFindAll(): CancelablePromise<PlatformControllerFindAllResponse> {
|
|
2648
|
+
return __request(OpenAPI, {
|
|
2649
|
+
method: 'GET',
|
|
2650
|
+
url: '/api/v1/bean/platforms'
|
|
2651
|
+
});
|
|
2652
|
+
}
|
|
2653
|
+
|
|
2654
|
+
/**
|
|
2655
|
+
* Create a new platform
|
|
2656
|
+
* @param data The data for the request.
|
|
2657
|
+
* @param data.requestBody
|
|
2658
|
+
* @returns unknown Platform created successfully
|
|
2659
|
+
* @throws ApiError
|
|
2660
|
+
*/
|
|
2661
|
+
public static platformControllerCreate(
|
|
2662
|
+
data: PlatformControllerCreateData
|
|
2663
|
+
): CancelablePromise<PlatformControllerCreateResponse> {
|
|
2664
|
+
return __request(OpenAPI, {
|
|
2665
|
+
method: 'POST',
|
|
2666
|
+
url: '/api/v1/bean/platforms',
|
|
2667
|
+
body: data.requestBody,
|
|
2668
|
+
mediaType: 'application/json',
|
|
2669
|
+
errors: {
|
|
2670
|
+
409: 'Platform already exists'
|
|
2671
|
+
}
|
|
2672
|
+
});
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
/**
|
|
2676
|
+
* Get platform list for current user
|
|
2677
|
+
* @returns unknown List of platforms with user binding status
|
|
2678
|
+
* @throws ApiError
|
|
2679
|
+
*/
|
|
2680
|
+
public static platformControllerGetPlatformList(): CancelablePromise<PlatformControllerGetPlatformListResponse> {
|
|
2681
|
+
return __request(OpenAPI, {
|
|
2682
|
+
method: 'GET',
|
|
2683
|
+
url: '/api/v1/bean/platforms/list'
|
|
2684
|
+
});
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
/**
|
|
2688
|
+
* Match platforms by name or alias
|
|
2689
|
+
* @param data The data for the request.
|
|
2690
|
+
* @param data.q Search query — Chinese name, English name, or abbreviation
|
|
2691
|
+
* @param data.region Region code for category override lookup
|
|
2692
|
+
* @returns unknown List of matching platforms with suggested segment names
|
|
2693
|
+
* @throws ApiError
|
|
2694
|
+
*/
|
|
2695
|
+
public static platformControllerMatchPlatforms(
|
|
2696
|
+
data: PlatformControllerMatchPlatformsData
|
|
2697
|
+
): CancelablePromise<PlatformControllerMatchPlatformsResponse> {
|
|
2698
|
+
return __request(OpenAPI, {
|
|
2699
|
+
method: 'GET',
|
|
2700
|
+
url: '/api/v1/bean/platforms/match',
|
|
2701
|
+
query: {
|
|
2702
|
+
q: data.q,
|
|
2292
2703
|
region: data.region
|
|
2293
2704
|
}
|
|
2294
2705
|
});
|
|
2295
2706
|
}
|
|
2707
|
+
|
|
2708
|
+
/**
|
|
2709
|
+
* Update a platform
|
|
2710
|
+
* @param data The data for the request.
|
|
2711
|
+
* @param data.id Platform ID
|
|
2712
|
+
* @param data.requestBody
|
|
2713
|
+
* @returns unknown Platform updated successfully
|
|
2714
|
+
* @throws ApiError
|
|
2715
|
+
*/
|
|
2716
|
+
public static platformControllerUpdate(
|
|
2717
|
+
data: PlatformControllerUpdateData
|
|
2718
|
+
): CancelablePromise<PlatformControllerUpdateResponse> {
|
|
2719
|
+
return __request(OpenAPI, {
|
|
2720
|
+
method: 'PUT',
|
|
2721
|
+
url: '/api/v1/bean/platforms/{id}',
|
|
2722
|
+
path: {
|
|
2723
|
+
id: data.id
|
|
2724
|
+
},
|
|
2725
|
+
body: data.requestBody,
|
|
2726
|
+
mediaType: 'application/json',
|
|
2727
|
+
errors: {
|
|
2728
|
+
404: 'Platform not found'
|
|
2729
|
+
}
|
|
2730
|
+
});
|
|
2731
|
+
}
|
|
2732
|
+
|
|
2733
|
+
/**
|
|
2734
|
+
* Delete a platform
|
|
2735
|
+
* @param data The data for the request.
|
|
2736
|
+
* @param data.id Platform ID
|
|
2737
|
+
* @returns void Platform deleted successfully
|
|
2738
|
+
* @throws ApiError
|
|
2739
|
+
*/
|
|
2740
|
+
public static platformControllerDelete(
|
|
2741
|
+
data: PlatformControllerDeleteData
|
|
2742
|
+
): CancelablePromise<PlatformControllerDeleteResponse> {
|
|
2743
|
+
return __request(OpenAPI, {
|
|
2744
|
+
method: 'DELETE',
|
|
2745
|
+
url: '/api/v1/bean/platforms/{id}',
|
|
2746
|
+
path: {
|
|
2747
|
+
id: data.id
|
|
2748
|
+
},
|
|
2749
|
+
errors: {
|
|
2750
|
+
404: 'Platform not found'
|
|
2751
|
+
}
|
|
2752
|
+
});
|
|
2753
|
+
}
|
|
2296
2754
|
}
|
|
2297
2755
|
|
|
2298
2756
|
export class ProviderSyncService {
|
|
@@ -2309,6 +2767,7 @@ export class ProviderSyncService {
|
|
|
2309
2767
|
* - **simplefin**: SimpleFIN (Self-hosted)
|
|
2310
2768
|
* - **yodlee**: Yodlee (Global)
|
|
2311
2769
|
* - **beancount-direct**: Beancount format transactions
|
|
2770
|
+
* - **parsed-bill**: Client-side parsed bill transactions
|
|
2312
2771
|
*
|
|
2313
2772
|
* **Processing Flow:**
|
|
2314
2773
|
* 1. Transform raw data via provider adapter
|
|
@@ -2320,7 +2779,7 @@ export class ProviderSyncService {
|
|
|
2320
2779
|
*
|
|
2321
2780
|
* @param data The data for the request.
|
|
2322
2781
|
* @param data.providerName Provider name
|
|
2323
|
-
* @param data.region Region code
|
|
2782
|
+
* @param data.region Region code for tenant context
|
|
2324
2783
|
* @param data.requestBody
|
|
2325
2784
|
* @returns ProviderSyncResponseDto Sync completed successfully
|
|
2326
2785
|
* @throws ApiError
|
|
@@ -2349,7 +2808,7 @@ export class ProviderSyncService {
|
|
|
2349
2808
|
* Get supported providers
|
|
2350
2809
|
* Returns a list of all providers supported by the sync endpoint.
|
|
2351
2810
|
* @param data The data for the request.
|
|
2352
|
-
* @param data.region Region code
|
|
2811
|
+
* @param data.region Region code for tenant context
|
|
2353
2812
|
* @returns SupportedProvidersResponseDto List of supported providers
|
|
2354
2813
|
* @throws ApiError
|
|
2355
2814
|
*/
|
|
@@ -2373,7 +2832,7 @@ export class ProviderSyncService {
|
|
|
2373
2832
|
* Returns whether a specific provider is supported.
|
|
2374
2833
|
* @param data The data for the request.
|
|
2375
2834
|
* @param data.providerName Provider name to check
|
|
2376
|
-
* @param data.region Region code
|
|
2835
|
+
* @param data.region Region code for tenant context
|
|
2377
2836
|
* @returns unknown Provider support status
|
|
2378
2837
|
* @throws ApiError
|
|
2379
2838
|
*/
|
|
@@ -2394,12 +2853,87 @@ export class ProviderSyncService {
|
|
|
2394
2853
|
}
|
|
2395
2854
|
}
|
|
2396
2855
|
|
|
2856
|
+
export class ImportTelemetryService {
|
|
2857
|
+
/**
|
|
2858
|
+
* Receive anonymous parser failure telemetry
|
|
2859
|
+
* @param data The data for the request.
|
|
2860
|
+
* @param data.region Region code for tenant context
|
|
2861
|
+
* @param data.requestBody
|
|
2862
|
+
* @returns unknown Telemetry report received
|
|
2863
|
+
* @throws ApiError
|
|
2864
|
+
*/
|
|
2865
|
+
public static telemetryControllerReportTelemetry(
|
|
2866
|
+
data: TelemetryControllerReportTelemetryData
|
|
2867
|
+
): CancelablePromise<TelemetryControllerReportTelemetryResponse> {
|
|
2868
|
+
return __request(OpenAPI, {
|
|
2869
|
+
method: 'POST',
|
|
2870
|
+
url: '/api/v1/{region}/bean/import/parser-telemetry',
|
|
2871
|
+
path: {
|
|
2872
|
+
region: data.region
|
|
2873
|
+
},
|
|
2874
|
+
body: data.requestBody,
|
|
2875
|
+
mediaType: 'application/json',
|
|
2876
|
+
errors: {
|
|
2877
|
+
401: 'Unauthorized'
|
|
2878
|
+
}
|
|
2879
|
+
});
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
/**
|
|
2883
|
+
* Receive anonymous zero-hit coverage miss report
|
|
2884
|
+
* @param data The data for the request.
|
|
2885
|
+
* @param data.region Region code for tenant context
|
|
2886
|
+
* @param data.requestBody
|
|
2887
|
+
* @returns unknown Coverage miss report received
|
|
2888
|
+
* @throws ApiError
|
|
2889
|
+
*/
|
|
2890
|
+
public static telemetryControllerReportCoverageMiss(
|
|
2891
|
+
data: TelemetryControllerReportCoverageMissData
|
|
2892
|
+
): CancelablePromise<TelemetryControllerReportCoverageMissResponse> {
|
|
2893
|
+
return __request(OpenAPI, {
|
|
2894
|
+
method: 'POST',
|
|
2895
|
+
url: '/api/v1/{region}/bean/import/parser-coverage-miss',
|
|
2896
|
+
path: {
|
|
2897
|
+
region: data.region
|
|
2898
|
+
},
|
|
2899
|
+
body: data.requestBody,
|
|
2900
|
+
mediaType: 'application/json',
|
|
2901
|
+
errors: {
|
|
2902
|
+
401: 'Unauthorized'
|
|
2903
|
+
}
|
|
2904
|
+
});
|
|
2905
|
+
}
|
|
2906
|
+
|
|
2907
|
+
/**
|
|
2908
|
+
* Coverage metrics (uncovered format aggregation)
|
|
2909
|
+
* @param data The data for the request.
|
|
2910
|
+
* @param data.region Region code for tenant context
|
|
2911
|
+
* @param data.topN Top-N uncovered formats (default 10)
|
|
2912
|
+
* @returns unknown Coverage metrics
|
|
2913
|
+
* @throws ApiError
|
|
2914
|
+
*/
|
|
2915
|
+
public static telemetryControllerGetCoverageMetrics(
|
|
2916
|
+
data: TelemetryControllerGetCoverageMetricsData
|
|
2917
|
+
): CancelablePromise<TelemetryControllerGetCoverageMetricsResponse> {
|
|
2918
|
+
return __request(OpenAPI, {
|
|
2919
|
+
method: 'GET',
|
|
2920
|
+
url: '/api/v1/{region}/bean/import/parser-coverage-metrics',
|
|
2921
|
+
path: {
|
|
2922
|
+
region: data.region
|
|
2923
|
+
},
|
|
2924
|
+
query: {
|
|
2925
|
+
topN: data.topN
|
|
2926
|
+
}
|
|
2927
|
+
});
|
|
2928
|
+
}
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2397
2931
|
export class BeanNlpService {
|
|
2398
2932
|
/**
|
|
2399
2933
|
* Process natural language input
|
|
2400
2934
|
* 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"
|
|
2401
2935
|
* @param data The data for the request.
|
|
2402
|
-
* @param data.region Region code
|
|
2936
|
+
* @param data.region Region code for tenant context
|
|
2403
2937
|
* @param data.requestBody Natural language transaction input with optional session ID
|
|
2404
2938
|
* @returns NlpResponseDto NLP processing result - either created transaction or asking for more info
|
|
2405
2939
|
* @throws ApiError
|
|
@@ -2426,7 +2960,7 @@ export class BeanNlpService {
|
|
|
2426
2960
|
* Clear dialogue session
|
|
2427
2961
|
* Clear the current NLP dialogue session. Use this to cancel an ongoing multi-turn dialogue.
|
|
2428
2962
|
* @param data The data for the request.
|
|
2429
|
-
* @param data.region Region code
|
|
2963
|
+
* @param data.region Region code for tenant context
|
|
2430
2964
|
* @param data.sessionId Specific session ID to clear (defaults to user session)
|
|
2431
2965
|
* @returns void Session cleared successfully
|
|
2432
2966
|
* @throws ApiError
|
|
@@ -2453,7 +2987,7 @@ export class BeanNlpService {
|
|
|
2453
2987
|
* Get current session state
|
|
2454
2988
|
* Get the current NLP dialogue session state. Useful for debugging and displaying session context in UI.
|
|
2455
2989
|
* @param data The data for the request.
|
|
2456
|
-
* @param data.region Region code
|
|
2990
|
+
* @param data.region Region code for tenant context
|
|
2457
2991
|
* @param data.sessionId Specific session ID to get (defaults to user session)
|
|
2458
2992
|
* @returns unknown Current session state (or null if no active session)
|
|
2459
2993
|
* @throws ApiError
|
|
@@ -2477,319 +3011,291 @@ export class BeanNlpService {
|
|
|
2477
3011
|
}
|
|
2478
3012
|
}
|
|
2479
3013
|
|
|
2480
|
-
export class
|
|
3014
|
+
export class DashboardService {
|
|
2481
3015
|
/**
|
|
2482
|
-
* Get
|
|
3016
|
+
* Get net worth overview
|
|
3017
|
+
* Returns total net worth with breakdown of assets and liabilities
|
|
2483
3018
|
* @param data The data for the request.
|
|
2484
|
-
* @param data.region Region code
|
|
2485
|
-
* @
|
|
3019
|
+
* @param data.region Region code for tenant context
|
|
3020
|
+
* @param data.date Date for balance calculation (ISO 8601 format)
|
|
3021
|
+
* @returns NetWorthResponseDto Net worth retrieved successfully
|
|
2486
3022
|
* @throws ApiError
|
|
2487
3023
|
*/
|
|
2488
|
-
public static
|
|
2489
|
-
data:
|
|
2490
|
-
): CancelablePromise<
|
|
3024
|
+
public static dashboardControllerGetNetWorth(
|
|
3025
|
+
data: DashboardControllerGetNetWorthData
|
|
3026
|
+
): CancelablePromise<DashboardControllerGetNetWorthResponse> {
|
|
2491
3027
|
return __request(OpenAPI, {
|
|
2492
3028
|
method: 'GET',
|
|
2493
|
-
url: '/api/v1/
|
|
3029
|
+
url: '/api/v1/{region}/dashboard/net-worth',
|
|
2494
3030
|
path: {
|
|
2495
3031
|
region: data.region
|
|
3032
|
+
},
|
|
3033
|
+
query: {
|
|
3034
|
+
date: data.date
|
|
3035
|
+
},
|
|
3036
|
+
errors: {
|
|
3037
|
+
401: 'User not authenticated'
|
|
2496
3038
|
}
|
|
2497
3039
|
});
|
|
2498
3040
|
}
|
|
2499
3041
|
|
|
2500
3042
|
/**
|
|
3043
|
+
* Get accounts grouped by platform
|
|
3044
|
+
* Returns accounts with balances grouped by financial platform
|
|
2501
3045
|
* @param data The data for the request.
|
|
2502
|
-
* @param data.region Region code
|
|
2503
|
-
* @
|
|
3046
|
+
* @param data.region Region code for tenant context
|
|
3047
|
+
* @param data.groupBy Grouping strategy
|
|
3048
|
+
* @param data.date Date for balance calculation (ISO 8601 format)
|
|
3049
|
+
* @param data.accountId Scope to a single account (only valid with groupBy=holdingAssetClass, ADR-0105 §6)
|
|
3050
|
+
* @returns unknown Accounts retrieved successfully. Response type depends on groupBy parameter.
|
|
2504
3051
|
* @throws ApiError
|
|
2505
3052
|
*/
|
|
2506
|
-
public static
|
|
2507
|
-
data:
|
|
2508
|
-
): CancelablePromise<
|
|
2509
|
-
return __request(OpenAPI, {
|
|
2510
|
-
method: 'POST',
|
|
2511
|
-
url: '/api/v1/bean/platforms',
|
|
2512
|
-
path: {
|
|
2513
|
-
region: data.region
|
|
2514
|
-
}
|
|
2515
|
-
});
|
|
2516
|
-
}
|
|
2517
|
-
|
|
2518
|
-
/**
|
|
2519
|
-
* Get platform list for current user
|
|
2520
|
-
* @param data The data for the request.
|
|
2521
|
-
* @param data.region Region code (cn, us, de)
|
|
2522
|
-
* @returns unknown List of platforms with user binding status
|
|
2523
|
-
* @throws ApiError
|
|
2524
|
-
*/
|
|
2525
|
-
public static platformControllerGetPlatformList(
|
|
2526
|
-
data: PlatformControllerGetPlatformListData
|
|
2527
|
-
): CancelablePromise<PlatformControllerGetPlatformListResponse> {
|
|
3053
|
+
public static dashboardControllerGetAccounts(
|
|
3054
|
+
data: DashboardControllerGetAccountsData
|
|
3055
|
+
): CancelablePromise<DashboardControllerGetAccountsResponse> {
|
|
2528
3056
|
return __request(OpenAPI, {
|
|
2529
3057
|
method: 'GET',
|
|
2530
|
-
url: '/api/v1/
|
|
2531
|
-
path: {
|
|
2532
|
-
region: data.region
|
|
2533
|
-
}
|
|
2534
|
-
});
|
|
2535
|
-
}
|
|
2536
|
-
|
|
2537
|
-
/**
|
|
2538
|
-
* @param data The data for the request.
|
|
2539
|
-
* @param data.region Region code (cn, us, de)
|
|
2540
|
-
* @returns unknown
|
|
2541
|
-
* @throws ApiError
|
|
2542
|
-
*/
|
|
2543
|
-
public static platformController1(
|
|
2544
|
-
data: PlatformController1Data
|
|
2545
|
-
): CancelablePromise<PlatformController1Response> {
|
|
2546
|
-
return __request(OpenAPI, {
|
|
2547
|
-
method: 'PUT',
|
|
2548
|
-
url: '/api/v1/bean/platforms/{id}',
|
|
2549
|
-
path: {
|
|
2550
|
-
region: data.region
|
|
2551
|
-
}
|
|
2552
|
-
});
|
|
2553
|
-
}
|
|
2554
|
-
|
|
2555
|
-
/**
|
|
2556
|
-
* @param data The data for the request.
|
|
2557
|
-
* @param data.region Region code (cn, us, de)
|
|
2558
|
-
* @returns void
|
|
2559
|
-
* @throws ApiError
|
|
2560
|
-
*/
|
|
2561
|
-
public static platformController2(
|
|
2562
|
-
data: PlatformController2Data
|
|
2563
|
-
): CancelablePromise<PlatformController2Response> {
|
|
2564
|
-
return __request(OpenAPI, {
|
|
2565
|
-
method: 'DELETE',
|
|
2566
|
-
url: '/api/v1/bean/platforms/{id}',
|
|
3058
|
+
url: '/api/v1/{region}/dashboard/accounts',
|
|
2567
3059
|
path: {
|
|
2568
3060
|
region: data.region
|
|
3061
|
+
},
|
|
3062
|
+
query: {
|
|
3063
|
+
groupBy: data.groupBy,
|
|
3064
|
+
date: data.date,
|
|
3065
|
+
accountId: data.accountId
|
|
3066
|
+
},
|
|
3067
|
+
errors: {
|
|
3068
|
+
401: 'User not authenticated'
|
|
2569
3069
|
}
|
|
2570
3070
|
});
|
|
2571
3071
|
}
|
|
2572
|
-
}
|
|
2573
3072
|
|
|
2574
|
-
export class SymbolsService {
|
|
2575
3073
|
/**
|
|
2576
|
-
*
|
|
2577
|
-
*
|
|
3074
|
+
* Get cash flow summary
|
|
3075
|
+
* Returns income, expenses, and savings for a monthly period
|
|
2578
3076
|
* @param data The data for the request.
|
|
2579
|
-
* @param data.
|
|
2580
|
-
* @param data.
|
|
2581
|
-
* @
|
|
2582
|
-
* @param data.assetClass Asset class filter
|
|
2583
|
-
* @param data.area Geographic area filter (e.g., CN, US)
|
|
2584
|
-
* @param data.query Search query string
|
|
2585
|
-
* @returns unknown Symbols found successfully
|
|
3077
|
+
* @param data.period Period in YYYY-MM format
|
|
3078
|
+
* @param data.region Region code for tenant context
|
|
3079
|
+
* @returns CashFlowResponseDto Cash flow retrieved successfully
|
|
2586
3080
|
* @throws ApiError
|
|
2587
3081
|
*/
|
|
2588
|
-
public static
|
|
2589
|
-
data:
|
|
2590
|
-
): CancelablePromise<
|
|
3082
|
+
public static dashboardControllerGetCashFlow(
|
|
3083
|
+
data: DashboardControllerGetCashFlowData
|
|
3084
|
+
): CancelablePromise<DashboardControllerGetCashFlowResponse> {
|
|
2591
3085
|
return __request(OpenAPI, {
|
|
2592
3086
|
method: 'GET',
|
|
2593
|
-
url: '/api/v1/
|
|
3087
|
+
url: '/api/v1/{region}/dashboard/cash-flow',
|
|
2594
3088
|
path: {
|
|
2595
3089
|
region: data.region
|
|
2596
3090
|
},
|
|
2597
3091
|
query: {
|
|
2598
|
-
|
|
2599
|
-
assetSubClass: data.assetSubClass,
|
|
2600
|
-
assetClass: data.assetClass,
|
|
2601
|
-
area: data.area,
|
|
2602
|
-
query: data.query
|
|
3092
|
+
period: data.period
|
|
2603
3093
|
},
|
|
2604
3094
|
errors: {
|
|
2605
|
-
400: 'Invalid
|
|
3095
|
+
400: 'Invalid period format',
|
|
3096
|
+
401: 'User not authenticated'
|
|
2606
3097
|
}
|
|
2607
3098
|
});
|
|
2608
3099
|
}
|
|
3100
|
+
}
|
|
2609
3101
|
|
|
3102
|
+
export class InvestmentService {
|
|
2610
3103
|
/**
|
|
2611
|
-
* Get
|
|
2612
|
-
*
|
|
3104
|
+
* Get per-holding unrealized + realized P&L
|
|
3105
|
+
* Average-cost unrealized P&L per account × commodity, plus cumulative realized P&L on sold lots (method = FIFO | average, default average).
|
|
2613
3106
|
* @param data The data for the request.
|
|
2614
|
-
* @param data.
|
|
2615
|
-
* @param data.
|
|
2616
|
-
* @param data.
|
|
2617
|
-
* @param data.
|
|
2618
|
-
* @returns
|
|
3107
|
+
* @param data.region Region code for tenant context
|
|
3108
|
+
* @param data.asOf As-of date (ISO 8601), defaults to today
|
|
3109
|
+
* @param data.accountId Scope to a single account
|
|
3110
|
+
* @param data.method Realized-P&L lot-matching method (default average). Does not affect the average-cost unrealized basis.
|
|
3111
|
+
* @returns HoldingPnlResponseDto Holding P&L retrieved successfully
|
|
2619
3112
|
* @throws ApiError
|
|
2620
3113
|
*/
|
|
2621
|
-
public static
|
|
2622
|
-
data:
|
|
2623
|
-
): CancelablePromise<
|
|
3114
|
+
public static holdingPnlControllerGetHoldingPnl(
|
|
3115
|
+
data: HoldingPnlControllerGetHoldingPnlData
|
|
3116
|
+
): CancelablePromise<HoldingPnlControllerGetHoldingPnlResponse> {
|
|
2624
3117
|
return __request(OpenAPI, {
|
|
2625
3118
|
method: 'GET',
|
|
2626
|
-
url: '/api/v1/
|
|
3119
|
+
url: '/api/v1/{region}/investment/holdings/pnl',
|
|
2627
3120
|
path: {
|
|
2628
|
-
dataSource: data.dataSource,
|
|
2629
|
-
symbol: data.symbol,
|
|
2630
3121
|
region: data.region
|
|
2631
3122
|
},
|
|
2632
3123
|
query: {
|
|
2633
|
-
|
|
3124
|
+
asOf: data.asOf,
|
|
3125
|
+
accountId: data.accountId,
|
|
3126
|
+
method: data.method
|
|
2634
3127
|
},
|
|
2635
3128
|
errors: {
|
|
2636
|
-
400: 'Invalid
|
|
2637
|
-
|
|
3129
|
+
400: 'Invalid asOf format/value/future date, invalid accountId format, or unsupported method',
|
|
3130
|
+
401: 'User not authenticated'
|
|
2638
3131
|
}
|
|
2639
3132
|
});
|
|
2640
3133
|
}
|
|
3134
|
+
}
|
|
2641
3135
|
|
|
3136
|
+
export class BeanPricesService {
|
|
2642
3137
|
/**
|
|
2643
|
-
*
|
|
2644
|
-
*
|
|
3138
|
+
* Create a new price
|
|
3139
|
+
* Creates a new price entry for the authenticated user
|
|
2645
3140
|
* @param data The data for the request.
|
|
2646
|
-
* @param data.
|
|
2647
|
-
* @param data.
|
|
2648
|
-
* @
|
|
2649
|
-
* @param data.region Region code (cn, us, de)
|
|
2650
|
-
* @returns unknown Historical data retrieved successfully
|
|
3141
|
+
* @param data.region Region code for tenant context
|
|
3142
|
+
* @param data.requestBody
|
|
3143
|
+
* @returns PriceResponseDto Price created successfully
|
|
2651
3144
|
* @throws ApiError
|
|
2652
3145
|
*/
|
|
2653
|
-
public static
|
|
2654
|
-
data:
|
|
2655
|
-
): CancelablePromise<
|
|
3146
|
+
public static priceControllerCreate(
|
|
3147
|
+
data: PriceControllerCreateData
|
|
3148
|
+
): CancelablePromise<PriceControllerCreateResponse> {
|
|
2656
3149
|
return __request(OpenAPI, {
|
|
2657
|
-
method: '
|
|
2658
|
-
url: '/api/v1/
|
|
3150
|
+
method: 'POST',
|
|
3151
|
+
url: '/api/v1/{region}/bean/prices',
|
|
2659
3152
|
path: {
|
|
2660
|
-
dataSource: data.dataSource,
|
|
2661
|
-
dateString: data.dateString,
|
|
2662
|
-
symbol: data.symbol,
|
|
2663
3153
|
region: data.region
|
|
2664
3154
|
},
|
|
3155
|
+
body: data.requestBody,
|
|
3156
|
+
mediaType: 'application/json',
|
|
2665
3157
|
errors: {
|
|
2666
|
-
|
|
2667
|
-
|
|
3158
|
+
404: 'Currency or quoteCurrency commodity not found',
|
|
3159
|
+
409: 'Price already exists for this currency pair and date'
|
|
2668
3160
|
}
|
|
2669
3161
|
});
|
|
2670
3162
|
}
|
|
2671
3163
|
|
|
2672
3164
|
/**
|
|
3165
|
+
* List user prices
|
|
3166
|
+
* Returns all price entries for the authenticated user with optional filtering
|
|
2673
3167
|
* @param data The data for the request.
|
|
2674
|
-
* @param data.region Region code
|
|
2675
|
-
* @
|
|
3168
|
+
* @param data.region Region code for tenant context
|
|
3169
|
+
* @param data.currency Filter by currency (e.g., BTC, AAPL, USD)
|
|
3170
|
+
* @param data.quoteCurrency Filter by quote currency (pricing currency, e.g., USD, CNY)
|
|
3171
|
+
* @param data.dateFrom Filter prices from this date (ISO 8601 format)
|
|
3172
|
+
* @param data.dateTo Filter prices to this date (ISO 8601 format)
|
|
3173
|
+
* @param data.search Search term for currency or quoteCurrency (case-insensitive partial match)
|
|
3174
|
+
* @param data.page Page number for pagination (default: 1)
|
|
3175
|
+
* @param data.limit Number of items per page (default: 20, max: 100)
|
|
3176
|
+
* @returns PriceListResponseDto Prices retrieved successfully
|
|
2676
3177
|
* @throws ApiError
|
|
2677
3178
|
*/
|
|
2678
|
-
public static
|
|
2679
|
-
data:
|
|
2680
|
-
): CancelablePromise<
|
|
3179
|
+
public static priceControllerFindAll(
|
|
3180
|
+
data: PriceControllerFindAllData
|
|
3181
|
+
): CancelablePromise<PriceControllerFindAllResponse> {
|
|
2681
3182
|
return __request(OpenAPI, {
|
|
2682
|
-
method: '
|
|
2683
|
-
url: '/api/v1/
|
|
3183
|
+
method: 'GET',
|
|
3184
|
+
url: '/api/v1/{region}/bean/prices',
|
|
2684
3185
|
path: {
|
|
2685
3186
|
region: data.region
|
|
3187
|
+
},
|
|
3188
|
+
query: {
|
|
3189
|
+
currency: data.currency,
|
|
3190
|
+
quoteCurrency: data.quoteCurrency,
|
|
3191
|
+
dateFrom: data.dateFrom,
|
|
3192
|
+
dateTo: data.dateTo,
|
|
3193
|
+
search: data.search,
|
|
3194
|
+
page: data.page,
|
|
3195
|
+
limit: data.limit
|
|
2686
3196
|
}
|
|
2687
3197
|
});
|
|
2688
3198
|
}
|
|
2689
|
-
}
|
|
2690
3199
|
|
|
2691
|
-
export class DefaultService {
|
|
2692
3200
|
/**
|
|
3201
|
+
* Get price by ID
|
|
3202
|
+
* Returns a single price entry by its ID
|
|
2693
3203
|
* @param data The data for the request.
|
|
2694
|
-
* @param data.
|
|
2695
|
-
* @
|
|
3204
|
+
* @param data.id Price ID
|
|
3205
|
+
* @param data.region Region code for tenant context
|
|
3206
|
+
* @returns PriceResponseDto Price retrieved successfully
|
|
2696
3207
|
* @throws ApiError
|
|
2697
3208
|
*/
|
|
2698
|
-
public static
|
|
2699
|
-
data:
|
|
2700
|
-
): CancelablePromise<
|
|
3209
|
+
public static priceControllerFindOne(
|
|
3210
|
+
data: PriceControllerFindOneData
|
|
3211
|
+
): CancelablePromise<PriceControllerFindOneResponse> {
|
|
2701
3212
|
return __request(OpenAPI, {
|
|
2702
|
-
method: '
|
|
2703
|
-
url: '/api/v1/
|
|
3213
|
+
method: 'GET',
|
|
3214
|
+
url: '/api/v1/{region}/bean/prices/{id}',
|
|
2704
3215
|
path: {
|
|
3216
|
+
id: data.id,
|
|
2705
3217
|
region: data.region
|
|
3218
|
+
},
|
|
3219
|
+
errors: {
|
|
3220
|
+
404: 'Price not found'
|
|
2706
3221
|
}
|
|
2707
3222
|
});
|
|
2708
3223
|
}
|
|
2709
|
-
}
|
|
2710
3224
|
|
|
2711
|
-
export class DashboardService {
|
|
2712
3225
|
/**
|
|
2713
|
-
*
|
|
2714
|
-
*
|
|
3226
|
+
* Update a price
|
|
3227
|
+
* Updates an existing price entry
|
|
2715
3228
|
* @param data The data for the request.
|
|
2716
|
-
* @param data.
|
|
2717
|
-
* @param data.
|
|
2718
|
-
* @
|
|
3229
|
+
* @param data.id Price ID
|
|
3230
|
+
* @param data.region Region code for tenant context
|
|
3231
|
+
* @param data.requestBody
|
|
3232
|
+
* @returns PriceResponseDto Price updated successfully
|
|
2719
3233
|
* @throws ApiError
|
|
2720
3234
|
*/
|
|
2721
|
-
public static
|
|
2722
|
-
data:
|
|
2723
|
-
): CancelablePromise<
|
|
3235
|
+
public static priceControllerUpdate(
|
|
3236
|
+
data: PriceControllerUpdateData
|
|
3237
|
+
): CancelablePromise<PriceControllerUpdateResponse> {
|
|
2724
3238
|
return __request(OpenAPI, {
|
|
2725
|
-
method: '
|
|
2726
|
-
url: '/api/v1/{region}/
|
|
3239
|
+
method: 'PUT',
|
|
3240
|
+
url: '/api/v1/{region}/bean/prices/{id}',
|
|
2727
3241
|
path: {
|
|
3242
|
+
id: data.id,
|
|
2728
3243
|
region: data.region
|
|
2729
3244
|
},
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
},
|
|
3245
|
+
body: data.requestBody,
|
|
3246
|
+
mediaType: 'application/json',
|
|
2733
3247
|
errors: {
|
|
2734
|
-
|
|
3248
|
+
404: 'Price not found',
|
|
3249
|
+
409: 'Updated price conflicts with existing price'
|
|
2735
3250
|
}
|
|
2736
3251
|
});
|
|
2737
3252
|
}
|
|
2738
3253
|
|
|
2739
3254
|
/**
|
|
2740
|
-
*
|
|
2741
|
-
*
|
|
3255
|
+
* Delete a price
|
|
3256
|
+
* Deletes a price entry (hard delete)
|
|
2742
3257
|
* @param data The data for the request.
|
|
2743
|
-
* @param data.
|
|
2744
|
-
* @param data.
|
|
2745
|
-
* @
|
|
2746
|
-
* @returns unknown Accounts retrieved successfully. Response type depends on groupBy parameter.
|
|
3258
|
+
* @param data.id Price ID
|
|
3259
|
+
* @param data.region Region code for tenant context
|
|
3260
|
+
* @returns void Price deleted successfully
|
|
2747
3261
|
* @throws ApiError
|
|
2748
3262
|
*/
|
|
2749
|
-
public static
|
|
2750
|
-
data:
|
|
2751
|
-
): CancelablePromise<
|
|
3263
|
+
public static priceControllerDelete(
|
|
3264
|
+
data: PriceControllerDeleteData
|
|
3265
|
+
): CancelablePromise<PriceControllerDeleteResponse> {
|
|
2752
3266
|
return __request(OpenAPI, {
|
|
2753
|
-
method: '
|
|
2754
|
-
url: '/api/v1/{region}/
|
|
3267
|
+
method: 'DELETE',
|
|
3268
|
+
url: '/api/v1/{region}/bean/prices/{id}',
|
|
2755
3269
|
path: {
|
|
3270
|
+
id: data.id,
|
|
2756
3271
|
region: data.region
|
|
2757
3272
|
},
|
|
2758
|
-
query: {
|
|
2759
|
-
groupBy: data.groupBy,
|
|
2760
|
-
date: data.date
|
|
2761
|
-
},
|
|
2762
3273
|
errors: {
|
|
2763
|
-
|
|
3274
|
+
404: 'Price not found'
|
|
2764
3275
|
}
|
|
2765
3276
|
});
|
|
2766
3277
|
}
|
|
2767
3278
|
|
|
2768
3279
|
/**
|
|
2769
|
-
*
|
|
2770
|
-
*
|
|
3280
|
+
* Bulk create prices
|
|
3281
|
+
* Creates multiple price entries at once (skips duplicates)
|
|
2771
3282
|
* @param data The data for the request.
|
|
2772
|
-
* @param data.
|
|
2773
|
-
* @param data.
|
|
2774
|
-
* @returns
|
|
3283
|
+
* @param data.region Region code for tenant context
|
|
3284
|
+
* @param data.requestBody
|
|
3285
|
+
* @returns PriceResponseDto Prices created successfully
|
|
2775
3286
|
* @throws ApiError
|
|
2776
3287
|
*/
|
|
2777
|
-
public static
|
|
2778
|
-
data:
|
|
2779
|
-
): CancelablePromise<
|
|
3288
|
+
public static priceControllerBulkCreate(
|
|
3289
|
+
data: PriceControllerBulkCreateData
|
|
3290
|
+
): CancelablePromise<PriceControllerBulkCreateResponse> {
|
|
2780
3291
|
return __request(OpenAPI, {
|
|
2781
|
-
method: '
|
|
2782
|
-
url: '/api/v1/{region}/
|
|
3292
|
+
method: 'POST',
|
|
3293
|
+
url: '/api/v1/{region}/bean/prices/bulk',
|
|
2783
3294
|
path: {
|
|
2784
3295
|
region: data.region
|
|
2785
3296
|
},
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
},
|
|
2789
|
-
errors: {
|
|
2790
|
-
400: 'Invalid period format',
|
|
2791
|
-
401: 'User not authenticated'
|
|
2792
|
-
}
|
|
3297
|
+
body: data.requestBody,
|
|
3298
|
+
mediaType: 'application/json'
|
|
2793
3299
|
});
|
|
2794
3300
|
}
|
|
2795
3301
|
}
|
|
@@ -2810,7 +3316,7 @@ export class ReportingService {
|
|
|
2810
3316
|
* - `granularity`: Data granularity (day, week, month)
|
|
2811
3317
|
*
|
|
2812
3318
|
* @param data The data for the request.
|
|
2813
|
-
* @param data.region Region code
|
|
3319
|
+
* @param data.region Region code for tenant context
|
|
2814
3320
|
* @param data.period Time period
|
|
2815
3321
|
* @param data.granularity Data granularity
|
|
2816
3322
|
* @returns PortfolioTrendsResponseDto Trends retrieved successfully
|
|
@@ -2851,7 +3357,7 @@ export class ReportingService {
|
|
|
2851
3357
|
* - Initial setup for new users
|
|
2852
3358
|
*
|
|
2853
3359
|
* @param data The data for the request.
|
|
2854
|
-
* @param data.region Region code
|
|
3360
|
+
* @param data.region Region code for tenant context
|
|
2855
3361
|
* @param data.requestBody Optional date (defaults to today)
|
|
2856
3362
|
* @returns GenerateSnapshotResponse Snapshot generated successfully
|
|
2857
3363
|
* @throws ApiError
|
|
@@ -2890,7 +3396,7 @@ export class ReportingService {
|
|
|
2890
3396
|
* - Existing snapshots are skipped (not regenerated)
|
|
2891
3397
|
*
|
|
2892
3398
|
* @param data The data for the request.
|
|
2893
|
-
* @param data.region Region code
|
|
3399
|
+
* @param data.region Region code for tenant context
|
|
2894
3400
|
* @param data.requestBody
|
|
2895
3401
|
* @returns BackfillSnapshotsResponse Backfill completed successfully
|
|
2896
3402
|
* @throws ApiError
|
|
@@ -2917,19 +3423,17 @@ export class ReportingService {
|
|
|
2917
3423
|
|
|
2918
3424
|
export class ApiKeysService {
|
|
2919
3425
|
/**
|
|
2920
|
-
*
|
|
2921
|
-
*
|
|
2922
|
-
* @returns unknown
|
|
3426
|
+
* Create API key
|
|
3427
|
+
* Generates a new API key for the authenticated user
|
|
3428
|
+
* @returns unknown API key created successfully
|
|
2923
3429
|
* @throws ApiError
|
|
2924
3430
|
*/
|
|
2925
|
-
public static
|
|
2926
|
-
data: ApiKeysControllerData
|
|
2927
|
-
): CancelablePromise<ApiKeysControllerResponse> {
|
|
3431
|
+
public static apiKeysControllerCreateApiKey(): CancelablePromise<ApiKeysControllerCreateApiKeyResponse> {
|
|
2928
3432
|
return __request(OpenAPI, {
|
|
2929
3433
|
method: 'POST',
|
|
2930
3434
|
url: '/api/v1/auth/api-keys',
|
|
2931
|
-
|
|
2932
|
-
|
|
3435
|
+
errors: {
|
|
3436
|
+
403: 'Insufficient permissions to create API key'
|
|
2933
3437
|
}
|
|
2934
3438
|
});
|
|
2935
3439
|
}
|
|
@@ -2939,7 +3443,6 @@ export class AuthService {
|
|
|
2939
3443
|
/**
|
|
2940
3444
|
* Anonymous login with access token
|
|
2941
3445
|
* @param data The data for the request.
|
|
2942
|
-
* @param data.region Region code (cn, us, de)
|
|
2943
3446
|
* @param data.requestBody
|
|
2944
3447
|
* @returns unknown Login successful
|
|
2945
3448
|
* @throws ApiError
|
|
@@ -2950,9 +3453,6 @@ export class AuthService {
|
|
|
2950
3453
|
return __request(OpenAPI, {
|
|
2951
3454
|
method: 'POST',
|
|
2952
3455
|
url: '/api/v1/auth/sessions/anonymous',
|
|
2953
|
-
path: {
|
|
2954
|
-
region: data.region
|
|
2955
|
-
},
|
|
2956
3456
|
body: data.requestBody,
|
|
2957
3457
|
mediaType: 'application/json',
|
|
2958
3458
|
errors: {
|
|
@@ -2962,6 +3462,19 @@ export class AuthService {
|
|
|
2962
3462
|
}
|
|
2963
3463
|
}
|
|
2964
3464
|
|
|
3465
|
+
export class DefaultService {
|
|
3466
|
+
/**
|
|
3467
|
+
* @returns unknown
|
|
3468
|
+
* @throws ApiError
|
|
3469
|
+
*/
|
|
3470
|
+
public static cacheControllerFlushCache(): CancelablePromise<CacheControllerFlushCacheResponse> {
|
|
3471
|
+
return __request(OpenAPI, {
|
|
3472
|
+
method: 'POST',
|
|
3473
|
+
url: '/api/v1/cache/flush'
|
|
3474
|
+
});
|
|
3475
|
+
}
|
|
3476
|
+
}
|
|
3477
|
+
|
|
2965
3478
|
export class ExchangeRateService {
|
|
2966
3479
|
/**
|
|
2967
3480
|
* Get exchange rate for currency pair
|
|
@@ -2969,7 +3482,6 @@ export class ExchangeRateService {
|
|
|
2969
3482
|
* @param data The data for the request.
|
|
2970
3483
|
* @param data.symbol Currency pair symbol (e.g., USDCNY, EURUSD)
|
|
2971
3484
|
* @param data.dateString Date in ISO format (YYYY-MM-DD)
|
|
2972
|
-
* @param data.region Region code (cn, us, de)
|
|
2973
3485
|
* @returns unknown Exchange rate retrieved successfully
|
|
2974
3486
|
* @throws ApiError
|
|
2975
3487
|
*/
|
|
@@ -2981,8 +3493,7 @@ export class ExchangeRateService {
|
|
|
2981
3493
|
url: '/api/v1/market/exchange-rates/{symbol}/{dateString}',
|
|
2982
3494
|
path: {
|
|
2983
3495
|
symbol: data.symbol,
|
|
2984
|
-
dateString: data.dateString
|
|
2985
|
-
region: data.region
|
|
3496
|
+
dateString: data.dateString
|
|
2986
3497
|
},
|
|
2987
3498
|
errors: {
|
|
2988
3499
|
404: 'Exchange rate not found for the specified currency pair and date'
|
|
@@ -2994,20 +3505,13 @@ export class ExchangeRateService {
|
|
|
2994
3505
|
export class HealthService {
|
|
2995
3506
|
/**
|
|
2996
3507
|
* Basic health check for K8s/load balancer probes
|
|
2997
|
-
* @param data The data for the request.
|
|
2998
|
-
* @param data.region Region code (cn, us, de)
|
|
2999
3508
|
* @returns unknown Service is healthy
|
|
3000
3509
|
* @throws ApiError
|
|
3001
3510
|
*/
|
|
3002
|
-
public static healthControllerGetHealth(
|
|
3003
|
-
data: HealthControllerGetHealthData
|
|
3004
|
-
): CancelablePromise<HealthControllerGetHealthResponse> {
|
|
3511
|
+
public static healthControllerGetHealth(): CancelablePromise<HealthControllerGetHealthResponse> {
|
|
3005
3512
|
return __request(OpenAPI, {
|
|
3006
3513
|
method: 'GET',
|
|
3007
3514
|
url: '/api/v1/health',
|
|
3008
|
-
path: {
|
|
3009
|
-
region: data.region
|
|
3010
|
-
},
|
|
3011
3515
|
errors: {
|
|
3012
3516
|
503: 'Service unavailable'
|
|
3013
3517
|
}
|
|
@@ -3016,42 +3520,43 @@ export class HealthService {
|
|
|
3016
3520
|
|
|
3017
3521
|
/**
|
|
3018
3522
|
* Check database connection health
|
|
3019
|
-
* @param data The data for the request.
|
|
3020
|
-
* @param data.region Region code (cn, us, de)
|
|
3021
3523
|
* @returns unknown Database is healthy
|
|
3022
3524
|
* @throws ApiError
|
|
3023
3525
|
*/
|
|
3024
|
-
public static healthControllerCheckDatabase(
|
|
3025
|
-
data: HealthControllerCheckDatabaseData
|
|
3026
|
-
): CancelablePromise<HealthControllerCheckDatabaseResponse> {
|
|
3526
|
+
public static healthControllerCheckDatabase(): CancelablePromise<HealthControllerCheckDatabaseResponse> {
|
|
3027
3527
|
return __request(OpenAPI, {
|
|
3028
3528
|
method: 'GET',
|
|
3029
3529
|
url: '/api/v1/health/database',
|
|
3030
|
-
path: {
|
|
3031
|
-
region: data.region
|
|
3032
|
-
},
|
|
3033
3530
|
errors: {
|
|
3034
3531
|
503: 'Database unavailable'
|
|
3035
3532
|
}
|
|
3036
3533
|
});
|
|
3037
3534
|
}
|
|
3038
3535
|
|
|
3536
|
+
/**
|
|
3537
|
+
* Check OpenBB schema status
|
|
3538
|
+
* @returns unknown OpenBB status
|
|
3539
|
+
* @throws ApiError
|
|
3540
|
+
*/
|
|
3541
|
+
public static healthControllerCheckOpenBb(): CancelablePromise<HealthControllerCheckOpenBbResponse> {
|
|
3542
|
+
return __request(OpenAPI, {
|
|
3543
|
+
method: 'GET',
|
|
3544
|
+
url: '/api/v1/health/openbb',
|
|
3545
|
+
errors: {
|
|
3546
|
+
503: 'OpenBB unavailable'
|
|
3547
|
+
}
|
|
3548
|
+
});
|
|
3549
|
+
}
|
|
3550
|
+
|
|
3039
3551
|
/**
|
|
3040
3552
|
* Check Redis connection health
|
|
3041
|
-
* @param data The data for the request.
|
|
3042
|
-
* @param data.region Region code (cn, us, de)
|
|
3043
3553
|
* @returns unknown Redis is healthy
|
|
3044
3554
|
* @throws ApiError
|
|
3045
3555
|
*/
|
|
3046
|
-
public static healthControllerCheckRedis(
|
|
3047
|
-
data: HealthControllerCheckRedisData
|
|
3048
|
-
): CancelablePromise<HealthControllerCheckRedisResponse> {
|
|
3556
|
+
public static healthControllerCheckRedis(): CancelablePromise<HealthControllerCheckRedisResponse> {
|
|
3049
3557
|
return __request(OpenAPI, {
|
|
3050
3558
|
method: 'GET',
|
|
3051
3559
|
url: '/api/v1/health/redis',
|
|
3052
|
-
path: {
|
|
3053
|
-
region: data.region
|
|
3054
|
-
},
|
|
3055
3560
|
errors: {
|
|
3056
3561
|
503: 'Redis unavailable'
|
|
3057
3562
|
}
|
|
@@ -3060,20 +3565,13 @@ export class HealthService {
|
|
|
3060
3565
|
|
|
3061
3566
|
/**
|
|
3062
3567
|
* Get status of all circuit breakers
|
|
3063
|
-
* @param data The data for the request.
|
|
3064
|
-
* @param data.region Region code (cn, us, de)
|
|
3065
3568
|
* @returns unknown Circuit breaker status
|
|
3066
3569
|
* @throws ApiError
|
|
3067
3570
|
*/
|
|
3068
|
-
public static healthControllerGetCircuitBreakersHealth(
|
|
3069
|
-
data: HealthControllerGetCircuitBreakersHealthData
|
|
3070
|
-
): CancelablePromise<HealthControllerGetCircuitBreakersHealthResponse> {
|
|
3571
|
+
public static healthControllerGetCircuitBreakersHealth(): CancelablePromise<HealthControllerGetCircuitBreakersHealthResponse> {
|
|
3071
3572
|
return __request(OpenAPI, {
|
|
3072
3573
|
method: 'GET',
|
|
3073
3574
|
url: '/api/v1/health/circuit-breakers',
|
|
3074
|
-
path: {
|
|
3075
|
-
region: data.region
|
|
3076
|
-
},
|
|
3077
3575
|
errors: {
|
|
3078
3576
|
401: 'Unauthorized',
|
|
3079
3577
|
500: 'Internal error'
|
|
@@ -3085,7 +3583,6 @@ export class HealthService {
|
|
|
3085
3583
|
* Reset a circuit breaker to CLOSED state
|
|
3086
3584
|
* @param data The data for the request.
|
|
3087
3585
|
* @param data.name Circuit breaker name to reset
|
|
3088
|
-
* @param data.region Region code (cn, us, de)
|
|
3089
3586
|
* @returns unknown Circuit breaker reset successfully
|
|
3090
3587
|
* @throws ApiError
|
|
3091
3588
|
*/
|
|
@@ -3096,8 +3593,7 @@ export class HealthService {
|
|
|
3096
3593
|
method: 'POST',
|
|
3097
3594
|
url: '/api/v1/health/circuit-breakers/{name}/reset',
|
|
3098
3595
|
path: {
|
|
3099
|
-
name: data.name
|
|
3100
|
-
region: data.region
|
|
3596
|
+
name: data.name
|
|
3101
3597
|
},
|
|
3102
3598
|
errors: {
|
|
3103
3599
|
401: 'Unauthorized',
|
|
@@ -3108,223 +3604,30 @@ export class HealthService {
|
|
|
3108
3604
|
|
|
3109
3605
|
/**
|
|
3110
3606
|
* Get health check metrics and statistics
|
|
3111
|
-
* @param data The data for the request.
|
|
3112
|
-
* @param data.region Region code (cn, us, de)
|
|
3113
3607
|
* @returns unknown Health metrics
|
|
3114
3608
|
* @throws ApiError
|
|
3115
3609
|
*/
|
|
3116
|
-
public static healthControllerGetMetrics(
|
|
3117
|
-
data: HealthControllerGetMetricsData
|
|
3118
|
-
): CancelablePromise<HealthControllerGetMetricsResponse> {
|
|
3610
|
+
public static healthControllerGetMetrics(): CancelablePromise<HealthControllerGetMetricsResponse> {
|
|
3119
3611
|
return __request(OpenAPI, {
|
|
3120
3612
|
method: 'GET',
|
|
3121
3613
|
url: '/api/v1/health/metrics',
|
|
3122
|
-
path: {
|
|
3123
|
-
region: data.region
|
|
3124
|
-
},
|
|
3125
3614
|
errors: {
|
|
3126
3615
|
401: 'Unauthorized'
|
|
3127
3616
|
}
|
|
3128
3617
|
});
|
|
3129
3618
|
}
|
|
3130
|
-
|
|
3131
|
-
/**
|
|
3132
|
-
* Check health of a specific data enhancer
|
|
3133
|
-
* @param data The data for the request.
|
|
3134
|
-
* @param data.name Data enhancer name
|
|
3135
|
-
* @param data.region Region code (cn, us, de)
|
|
3136
|
-
* @returns unknown Data enhancer is healthy
|
|
3137
|
-
* @throws ApiError
|
|
3138
|
-
*/
|
|
3139
|
-
public static healthControllerGetHealthOfDataEnhancer(
|
|
3140
|
-
data: HealthControllerGetHealthOfDataEnhancerData
|
|
3141
|
-
): CancelablePromise<HealthControllerGetHealthOfDataEnhancerResponse> {
|
|
3142
|
-
return __request(OpenAPI, {
|
|
3143
|
-
method: 'GET',
|
|
3144
|
-
url: '/api/v1/health/data-enhancer/{name}',
|
|
3145
|
-
path: {
|
|
3146
|
-
name: data.name,
|
|
3147
|
-
region: data.region
|
|
3148
|
-
},
|
|
3149
|
-
errors: {
|
|
3150
|
-
401: 'Unauthorized',
|
|
3151
|
-
503: 'Data enhancer unavailable'
|
|
3152
|
-
}
|
|
3153
|
-
});
|
|
3154
|
-
}
|
|
3155
|
-
|
|
3156
|
-
/**
|
|
3157
|
-
* Check health of all data providers
|
|
3158
|
-
* @param data The data for the request.
|
|
3159
|
-
* @param data.region Region code (cn, us, de)
|
|
3160
|
-
* @returns unknown Data providers health status
|
|
3161
|
-
* @throws ApiError
|
|
3162
|
-
*/
|
|
3163
|
-
public static healthControllerCheckDataProviders(
|
|
3164
|
-
data: HealthControllerCheckDataProvidersData
|
|
3165
|
-
): CancelablePromise<HealthControllerCheckDataProvidersResponse> {
|
|
3166
|
-
return __request(OpenAPI, {
|
|
3167
|
-
method: 'GET',
|
|
3168
|
-
url: '/api/v1/health/data-providers',
|
|
3169
|
-
path: {
|
|
3170
|
-
region: data.region
|
|
3171
|
-
},
|
|
3172
|
-
errors: {
|
|
3173
|
-
401: 'Unauthorized',
|
|
3174
|
-
503: 'Data providers check failed'
|
|
3175
|
-
}
|
|
3176
|
-
});
|
|
3177
|
-
}
|
|
3178
|
-
|
|
3179
|
-
/**
|
|
3180
|
-
* Check health of a specific data provider
|
|
3181
|
-
* @param data The data for the request.
|
|
3182
|
-
* @param data.dataSource Data source identifier
|
|
3183
|
-
* @param data.region Region code (cn, us, de)
|
|
3184
|
-
* @returns unknown Data provider is healthy
|
|
3185
|
-
* @throws ApiError
|
|
3186
|
-
*/
|
|
3187
|
-
public static healthControllerGetHealthOfDataProvider(
|
|
3188
|
-
data: HealthControllerGetHealthOfDataProviderData
|
|
3189
|
-
): CancelablePromise<HealthControllerGetHealthOfDataProviderResponse> {
|
|
3190
|
-
return __request(OpenAPI, {
|
|
3191
|
-
method: 'GET',
|
|
3192
|
-
url: '/api/v1/health/data-provider/{dataSource}',
|
|
3193
|
-
path: {
|
|
3194
|
-
dataSource: data.dataSource,
|
|
3195
|
-
region: data.region
|
|
3196
|
-
},
|
|
3197
|
-
errors: {
|
|
3198
|
-
400: 'Invalid data source',
|
|
3199
|
-
401: 'Unauthorized',
|
|
3200
|
-
503: 'Data provider unavailable'
|
|
3201
|
-
}
|
|
3202
|
-
});
|
|
3203
|
-
}
|
|
3204
3619
|
}
|
|
3205
3620
|
|
|
3206
3621
|
export class InfoService {
|
|
3207
3622
|
/**
|
|
3208
3623
|
* Get system information
|
|
3209
|
-
* @param data The data for the request.
|
|
3210
|
-
* @param data.region Region code (cn, us, de)
|
|
3211
3624
|
* @returns unknown System information retrieved successfully
|
|
3212
3625
|
* @throws ApiError
|
|
3213
3626
|
*/
|
|
3214
|
-
public static infoControllerGetInfo(
|
|
3215
|
-
data: InfoControllerGetInfoData
|
|
3216
|
-
): CancelablePromise<InfoControllerGetInfoResponse> {
|
|
3217
|
-
return __request(OpenAPI, {
|
|
3218
|
-
method: 'GET',
|
|
3219
|
-
url: '/api/v1/system/info',
|
|
3220
|
-
path: {
|
|
3221
|
-
region: data.region
|
|
3222
|
-
}
|
|
3223
|
-
});
|
|
3224
|
-
}
|
|
3225
|
-
}
|
|
3226
|
-
|
|
3227
|
-
export class LogosService {
|
|
3228
|
-
/**
|
|
3229
|
-
* Get asset logo by data source and symbol
|
|
3230
|
-
* @param data The data for the request.
|
|
3231
|
-
* @param data.dataSource Data source identifier (e.g., YAHOO, COINGECKO)
|
|
3232
|
-
* @param data.symbol Asset symbol (e.g., AAPL, BTC)
|
|
3233
|
-
* @param data.region Region code (cn, us, de)
|
|
3234
|
-
* @returns unknown Logo image stream (favicon)
|
|
3235
|
-
* @throws ApiError
|
|
3236
|
-
*/
|
|
3237
|
-
public static logoControllerGetLogoByDataSourceAndSymbol(
|
|
3238
|
-
data: LogoControllerGetLogoByDataSourceAndSymbolData
|
|
3239
|
-
): CancelablePromise<LogoControllerGetLogoByDataSourceAndSymbolResponse> {
|
|
3240
|
-
return __request(OpenAPI, {
|
|
3241
|
-
method: 'GET',
|
|
3242
|
-
url: '/api/v1/market/logos/{dataSource}/{symbol}',
|
|
3243
|
-
path: {
|
|
3244
|
-
dataSource: data.dataSource,
|
|
3245
|
-
symbol: data.symbol,
|
|
3246
|
-
region: data.region
|
|
3247
|
-
},
|
|
3248
|
-
errors: {
|
|
3249
|
-
401: 'Unauthorized',
|
|
3250
|
-
404: 'Logo not found for the specified asset',
|
|
3251
|
-
503: 'Service unavailable'
|
|
3252
|
-
}
|
|
3253
|
-
});
|
|
3254
|
-
}
|
|
3255
|
-
|
|
3256
|
-
/**
|
|
3257
|
-
* Get website favicon by URL
|
|
3258
|
-
* @param data The data for the request.
|
|
3259
|
-
* @param data.url Website URL to fetch favicon from
|
|
3260
|
-
* @param data.region Region code (cn, us, de)
|
|
3261
|
-
* @returns unknown Logo image stream (favicon)
|
|
3262
|
-
* @throws ApiError
|
|
3263
|
-
*/
|
|
3264
|
-
public static logoControllerGetLogoByUrl(
|
|
3265
|
-
data: LogoControllerGetLogoByUrlData
|
|
3266
|
-
): CancelablePromise<LogoControllerGetLogoByUrlResponse> {
|
|
3267
|
-
return __request(OpenAPI, {
|
|
3268
|
-
method: 'GET',
|
|
3269
|
-
url: '/api/v1/market/logos',
|
|
3270
|
-
path: {
|
|
3271
|
-
region: data.region
|
|
3272
|
-
},
|
|
3273
|
-
query: {
|
|
3274
|
-
url: data.url
|
|
3275
|
-
},
|
|
3276
|
-
errors: {
|
|
3277
|
-
401: 'Unauthorized',
|
|
3278
|
-
503: 'Service unavailable'
|
|
3279
|
-
}
|
|
3280
|
-
});
|
|
3281
|
-
}
|
|
3282
|
-
}
|
|
3283
|
-
|
|
3284
|
-
export class MarketDataService {
|
|
3285
|
-
/**
|
|
3286
|
-
* Get market data by symbol
|
|
3287
|
-
* Retrieves market data and asset profile for a given symbol and data source
|
|
3288
|
-
* @param data The data for the request.
|
|
3289
|
-
* @param data.dataSource Data source provider
|
|
3290
|
-
* @param data.symbol Symbol code
|
|
3291
|
-
* @param data.region Region code (cn, us, de)
|
|
3292
|
-
* @returns unknown Market data retrieved successfully
|
|
3293
|
-
* @throws ApiError
|
|
3294
|
-
*/
|
|
3295
|
-
public static marketDataControllerGetMarketDataBySymbol(
|
|
3296
|
-
data: MarketDataControllerGetMarketDataBySymbolData
|
|
3297
|
-
): CancelablePromise<MarketDataControllerGetMarketDataBySymbolResponse> {
|
|
3627
|
+
public static infoControllerGetInfo(): CancelablePromise<InfoControllerGetInfoResponse> {
|
|
3298
3628
|
return __request(OpenAPI, {
|
|
3299
3629
|
method: 'GET',
|
|
3300
|
-
url: '/api/v1/
|
|
3301
|
-
path: {
|
|
3302
|
-
dataSource: data.dataSource,
|
|
3303
|
-
symbol: data.symbol,
|
|
3304
|
-
region: data.region
|
|
3305
|
-
},
|
|
3306
|
-
errors: {
|
|
3307
|
-
403: 'Insufficient permissions to read market data',
|
|
3308
|
-
404: 'Market data not found'
|
|
3309
|
-
}
|
|
3310
|
-
});
|
|
3311
|
-
}
|
|
3312
|
-
|
|
3313
|
-
/**
|
|
3314
|
-
* @param data The data for the request.
|
|
3315
|
-
* @param data.region Region code (cn, us, de)
|
|
3316
|
-
* @returns unknown
|
|
3317
|
-
* @throws ApiError
|
|
3318
|
-
*/
|
|
3319
|
-
public static marketDataController(
|
|
3320
|
-
data: MarketDataControllerData
|
|
3321
|
-
): CancelablePromise<MarketDataControllerResponse> {
|
|
3322
|
-
return __request(OpenAPI, {
|
|
3323
|
-
method: 'POST',
|
|
3324
|
-
url: '/api/v1/market-data/{dataSource}/{symbol}',
|
|
3325
|
-
path: {
|
|
3326
|
-
region: data.region
|
|
3327
|
-
}
|
|
3630
|
+
url: '/api/v1/system/info'
|
|
3328
3631
|
});
|
|
3329
3632
|
}
|
|
3330
3633
|
}
|