@firela/api-types 0.0.0-canary.b3b7767b → 0.0.0-canary.da5984a1
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 +1977 -1117
- package/dist/index.d.ts +1977 -1117
- package/dist/index.js +127 -123
- package/dist/index.mjs +127 -123
- package/package.json +1 -1
- package/src/generated/schemas.gen.ts +1553 -187
- package/src/generated/services.gen.ts +912 -941
- package/src/generated/types.gen.ts +2280 -1339
|
@@ -17,22 +17,26 @@ 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
|
+
TransactionControllerSuggestTagsData,
|
|
33
|
+
TransactionControllerSuggestTagsResponse,
|
|
26
34
|
TransactionControllerGetDetailData,
|
|
27
35
|
TransactionControllerGetDetailResponse,
|
|
28
36
|
TransactionControllerUpdateData,
|
|
29
37
|
TransactionControllerUpdateResponse,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
AccountStandardsControllerGetTemplatesData,
|
|
33
|
-
AccountStandardsControllerGetTemplatesResponse,
|
|
34
|
-
AccountStandardsControllerGetRegionsData,
|
|
35
|
-
AccountStandardsControllerGetRegionsResponse,
|
|
38
|
+
TransactionControllerDeleteData,
|
|
39
|
+
TransactionControllerDeleteResponse,
|
|
36
40
|
BalanceControllerGetBalanceData,
|
|
37
41
|
BalanceControllerGetBalanceResponse,
|
|
38
42
|
BalanceControllerGetMultiCurrencyBalanceData,
|
|
@@ -43,14 +47,14 @@ import type {
|
|
|
43
47
|
ReviewControllerGetStatsResponse,
|
|
44
48
|
ReviewControllerFindOneData,
|
|
45
49
|
ReviewControllerFindOneResponse,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
ReviewControllerResolveData,
|
|
51
|
+
ReviewControllerResolveResponse,
|
|
52
|
+
ReviewControllerUndoData,
|
|
53
|
+
ReviewControllerUndoResponse,
|
|
54
|
+
ReviewControllerBatchResolveData,
|
|
55
|
+
ReviewControllerBatchResolveResponse,
|
|
56
|
+
PayeeControllerCreateData,
|
|
57
|
+
PayeeControllerCreateResponse,
|
|
54
58
|
PayeeControllerFindAllData,
|
|
55
59
|
PayeeControllerFindAllResponse,
|
|
56
60
|
PayeeControllerAutocompleteData,
|
|
@@ -59,50 +63,50 @@ import type {
|
|
|
59
63
|
PayeeControllerGetTopPayeesResponse,
|
|
60
64
|
PayeeControllerFindOneData,
|
|
61
65
|
PayeeControllerFindOneResponse,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
PayeeControllerUpdateData,
|
|
67
|
+
PayeeControllerUpdateResponse,
|
|
68
|
+
PayeeControllerDeleteData,
|
|
69
|
+
PayeeControllerDeleteResponse,
|
|
70
|
+
PayeeProfileAdminControllerCreateData,
|
|
71
|
+
PayeeProfileAdminControllerCreateResponse,
|
|
68
72
|
PayeeProfileAdminControllerFindAllData,
|
|
69
73
|
PayeeProfileAdminControllerFindAllResponse,
|
|
70
74
|
PayeeProfileAdminControllerFindOneData,
|
|
71
75
|
PayeeProfileAdminControllerFindOneResponse,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
PayeeProfileAdminControllerUpdateData,
|
|
77
|
+
PayeeProfileAdminControllerUpdateResponse,
|
|
78
|
+
PayeeProfileAdminControllerDeleteData,
|
|
79
|
+
PayeeProfileAdminControllerDeleteResponse,
|
|
80
|
+
PayeeProfileAdminControllerVerifyData,
|
|
81
|
+
PayeeProfileAdminControllerVerifyResponse,
|
|
82
|
+
PayeeProfileAdminControllerUnverifyData,
|
|
83
|
+
PayeeProfileAdminControllerUnverifyResponse,
|
|
84
|
+
CommodityControllerCreateData,
|
|
85
|
+
CommodityControllerCreateResponse,
|
|
82
86
|
CommodityControllerFindAllData,
|
|
83
87
|
CommodityControllerFindAllResponse,
|
|
84
88
|
CommodityControllerFindOneData,
|
|
85
89
|
CommodityControllerFindOneResponse,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
90
|
+
CommodityControllerUpdateData,
|
|
91
|
+
CommodityControllerUpdateResponse,
|
|
92
|
+
CommodityControllerDeleteData,
|
|
93
|
+
CommodityControllerDeleteResponse,
|
|
94
|
+
CommodityControllerGetOrCreateData,
|
|
95
|
+
CommodityControllerGetOrCreateResponse,
|
|
96
|
+
CommodityControllerBulkCreateData,
|
|
97
|
+
CommodityControllerBulkCreateResponse,
|
|
98
|
+
RecurringRuleControllerCreateData,
|
|
99
|
+
RecurringRuleControllerCreateResponse,
|
|
96
100
|
RecurringRuleControllerFindAllData,
|
|
97
101
|
RecurringRuleControllerFindAllResponse,
|
|
98
|
-
|
|
99
|
-
|
|
102
|
+
RecurringRuleControllerCreateFromTransactionData,
|
|
103
|
+
RecurringRuleControllerCreateFromTransactionResponse,
|
|
100
104
|
RecurringRuleControllerFindOneData,
|
|
101
105
|
RecurringRuleControllerFindOneResponse,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
+
RecurringRuleControllerUpdateData,
|
|
107
|
+
RecurringRuleControllerUpdateResponse,
|
|
108
|
+
RecurringRuleControllerDeleteData,
|
|
109
|
+
RecurringRuleControllerDeleteResponse,
|
|
106
110
|
RecurringRuleControllerGetWithStatsData,
|
|
107
111
|
RecurringRuleControllerGetWithStatsResponse,
|
|
108
112
|
ExpectedTransactionControllerFindAllData,
|
|
@@ -111,36 +115,36 @@ import type {
|
|
|
111
115
|
ExpectedTransactionControllerFindOverdueResponse,
|
|
112
116
|
ExpectedTransactionControllerFindOneData,
|
|
113
117
|
ExpectedTransactionControllerFindOneResponse,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
118
|
+
ExpectedTransactionControllerSkipData,
|
|
119
|
+
ExpectedTransactionControllerSkipResponse,
|
|
120
|
+
ExpectedTransactionControllerUndoSkipData,
|
|
121
|
+
ExpectedTransactionControllerUndoSkipResponse,
|
|
122
|
+
ExpectedTransactionControllerConfirmMatchData,
|
|
123
|
+
ExpectedTransactionControllerConfirmMatchResponse,
|
|
124
|
+
ExpectedTransactionControllerUnmatchData,
|
|
125
|
+
ExpectedTransactionControllerUnmatchResponse,
|
|
126
|
+
ExpectedTransactionControllerEnterNowData,
|
|
127
|
+
ExpectedTransactionControllerEnterNowResponse,
|
|
124
128
|
ForecastControllerGetForecastData,
|
|
125
129
|
ForecastControllerGetForecastResponse,
|
|
126
|
-
|
|
127
|
-
|
|
130
|
+
TransactionRuleControllerCreateData,
|
|
131
|
+
TransactionRuleControllerCreateResponse,
|
|
128
132
|
TransactionRuleControllerListData,
|
|
129
133
|
TransactionRuleControllerListResponse,
|
|
130
134
|
TransactionRuleControllerValidateData,
|
|
131
135
|
TransactionRuleControllerValidateResponse,
|
|
132
|
-
|
|
133
|
-
|
|
136
|
+
TransactionRuleControllerBulkCreateData,
|
|
137
|
+
TransactionRuleControllerBulkCreateResponse,
|
|
134
138
|
TransactionRuleControllerExportData,
|
|
135
139
|
TransactionRuleControllerExportResponse,
|
|
136
140
|
TransactionRuleControllerGetStatisticsData,
|
|
137
141
|
TransactionRuleControllerGetStatisticsResponse,
|
|
138
142
|
TransactionRuleControllerGetDetailData,
|
|
139
143
|
TransactionRuleControllerGetDetailResponse,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
+
TransactionRuleControllerUpdateData,
|
|
145
|
+
TransactionRuleControllerUpdateResponse,
|
|
146
|
+
TransactionRuleControllerDeleteData,
|
|
147
|
+
TransactionRuleControllerDeleteResponse,
|
|
144
148
|
TransactionRuleControllerTestData,
|
|
145
149
|
TransactionRuleControllerTestResponse,
|
|
146
150
|
UserControllerDeleteOwnUserData,
|
|
@@ -157,26 +161,37 @@ import type {
|
|
|
157
161
|
UserControllerUpdateUserSettingResponse,
|
|
158
162
|
UserControllerGetAllUserSettingsByPageData,
|
|
159
163
|
UserControllerGetAllUserSettingsByPageResponse,
|
|
160
|
-
UserControllerGetAssetLiabilitySummaryData,
|
|
161
164
|
UserControllerGetAssetLiabilitySummaryResponse,
|
|
162
|
-
PropertyControllerGetAllData,
|
|
163
165
|
PropertyControllerGetAllResponse,
|
|
164
166
|
PropertyControllerGetByKeyData,
|
|
165
167
|
PropertyControllerGetByKeyResponse,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
PropertyControllerUpdateData,
|
|
169
|
+
PropertyControllerUpdateResponse,
|
|
170
|
+
PropertyControllerDeleteData,
|
|
171
|
+
PropertyControllerDeleteResponse,
|
|
172
|
+
ExportControllerExportBeancountResponse,
|
|
170
173
|
FileImportControllerImportFileData,
|
|
171
174
|
FileImportControllerImportFileResponse,
|
|
172
175
|
FileImportControllerIdentifyFileData,
|
|
173
176
|
FileImportControllerIdentifyFileResponse,
|
|
177
|
+
FileImportControllerImportBeancountData,
|
|
178
|
+
FileImportControllerImportBeancountResponse,
|
|
174
179
|
ImporterConfigControllerGetConfigData,
|
|
175
180
|
ImporterConfigControllerGetConfigResponse,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
181
|
+
ImporterConfigControllerUpdateConfigData,
|
|
182
|
+
ImporterConfigControllerUpdateConfigResponse,
|
|
183
|
+
ImporterConfigControllerResetConfigData,
|
|
184
|
+
ImporterConfigControllerResetConfigResponse,
|
|
185
|
+
PlatformControllerFindAllResponse,
|
|
186
|
+
PlatformControllerCreateData,
|
|
187
|
+
PlatformControllerCreateResponse,
|
|
188
|
+
PlatformControllerGetPlatformListResponse,
|
|
189
|
+
PlatformControllerMatchPlatformsData,
|
|
190
|
+
PlatformControllerMatchPlatformsResponse,
|
|
191
|
+
PlatformControllerUpdateData,
|
|
192
|
+
PlatformControllerUpdateResponse,
|
|
193
|
+
PlatformControllerDeleteData,
|
|
194
|
+
PlatformControllerDeleteResponse,
|
|
180
195
|
ProviderSyncControllerSyncData,
|
|
181
196
|
ProviderSyncControllerSyncResponse,
|
|
182
197
|
ProviderSyncControllerGetSupportedProvidersData,
|
|
@@ -191,26 +206,6 @@ import type {
|
|
|
191
206
|
NlpControllerClearSessionResponse,
|
|
192
207
|
NlpControllerGetSessionData,
|
|
193
208
|
NlpControllerGetSessionResponse,
|
|
194
|
-
PlatformControllerFindAllData,
|
|
195
|
-
PlatformControllerFindAllResponse,
|
|
196
|
-
PlatformControllerData,
|
|
197
|
-
PlatformControllerResponse,
|
|
198
|
-
PlatformControllerGetPlatformListData,
|
|
199
|
-
PlatformControllerGetPlatformListResponse,
|
|
200
|
-
PlatformController1Data,
|
|
201
|
-
PlatformController1Response,
|
|
202
|
-
PlatformController2Data,
|
|
203
|
-
PlatformController2Response,
|
|
204
|
-
SymbolControllerLookupSymbolData,
|
|
205
|
-
SymbolControllerLookupSymbolResponse,
|
|
206
|
-
SymbolControllerGetSymbolDataData,
|
|
207
|
-
SymbolControllerGetSymbolDataResponse,
|
|
208
|
-
SymbolControllerGatherSymbolForDateData,
|
|
209
|
-
SymbolControllerGatherSymbolForDateResponse,
|
|
210
|
-
SymbolControllerData,
|
|
211
|
-
SymbolControllerResponse,
|
|
212
|
-
CacheControllerFlushCacheData,
|
|
213
|
-
CacheControllerFlushCacheResponse,
|
|
214
209
|
DashboardControllerGetNetWorthData,
|
|
215
210
|
DashboardControllerGetNetWorthResponse,
|
|
216
211
|
DashboardControllerGetAccountsData,
|
|
@@ -223,40 +218,21 @@ import type {
|
|
|
223
218
|
ReportingControllerGenerateSnapshotResponse,
|
|
224
219
|
ReportingControllerBackfillSnapshotsData,
|
|
225
220
|
ReportingControllerBackfillSnapshotsResponse,
|
|
226
|
-
|
|
227
|
-
ApiKeysControllerResponse,
|
|
221
|
+
ApiKeysControllerCreateApiKeyResponse,
|
|
228
222
|
AuthControllerAccessTokenLoginData,
|
|
229
223
|
AuthControllerAccessTokenLoginResponse,
|
|
224
|
+
CacheControllerFlushCacheResponse,
|
|
230
225
|
ExchangeRateControllerGetExchangeRateData,
|
|
231
226
|
ExchangeRateControllerGetExchangeRateResponse,
|
|
232
|
-
HealthControllerGetHealthData,
|
|
233
227
|
HealthControllerGetHealthResponse,
|
|
234
|
-
HealthControllerCheckDatabaseData,
|
|
235
228
|
HealthControllerCheckDatabaseResponse,
|
|
236
|
-
|
|
229
|
+
HealthControllerCheckOpenBbResponse,
|
|
237
230
|
HealthControllerCheckRedisResponse,
|
|
238
|
-
HealthControllerGetCircuitBreakersHealthData,
|
|
239
231
|
HealthControllerGetCircuitBreakersHealthResponse,
|
|
240
232
|
HealthControllerResetCircuitBreakerData,
|
|
241
233
|
HealthControllerResetCircuitBreakerResponse,
|
|
242
|
-
HealthControllerGetMetricsData,
|
|
243
234
|
HealthControllerGetMetricsResponse,
|
|
244
|
-
|
|
245
|
-
HealthControllerGetHealthOfDataEnhancerResponse,
|
|
246
|
-
HealthControllerCheckDataProvidersData,
|
|
247
|
-
HealthControllerCheckDataProvidersResponse,
|
|
248
|
-
HealthControllerGetHealthOfDataProviderData,
|
|
249
|
-
HealthControllerGetHealthOfDataProviderResponse,
|
|
250
|
-
InfoControllerGetInfoData,
|
|
251
|
-
InfoControllerGetInfoResponse,
|
|
252
|
-
LogoControllerGetLogoByDataSourceAndSymbolData,
|
|
253
|
-
LogoControllerGetLogoByDataSourceAndSymbolResponse,
|
|
254
|
-
LogoControllerGetLogoByUrlData,
|
|
255
|
-
LogoControllerGetLogoByUrlResponse,
|
|
256
|
-
MarketDataControllerGetMarketDataBySymbolData,
|
|
257
|
-
MarketDataControllerGetMarketDataBySymbolResponse,
|
|
258
|
-
MarketDataControllerData,
|
|
259
|
-
MarketDataControllerResponse
|
|
235
|
+
InfoControllerGetInfoResponse
|
|
260
236
|
} from './types.gen';
|
|
261
237
|
|
|
262
238
|
export class BeanAccountsService {
|
|
@@ -458,6 +434,78 @@ export class BeanAccountsService {
|
|
|
458
434
|
}
|
|
459
435
|
}
|
|
460
436
|
|
|
437
|
+
export class BeanAccountStandardsService {
|
|
438
|
+
/**
|
|
439
|
+
* Get account templates
|
|
440
|
+
* Returns predefined account templates for a region. Supports filtering by account type and search term.
|
|
441
|
+
* @param data The data for the request.
|
|
442
|
+
* @param data.region Region code (cn, us, de)
|
|
443
|
+
* @param data.type Filter by account type
|
|
444
|
+
* @param data.search Search term for path or description
|
|
445
|
+
* @returns AccountStandardListResponseDto Account templates retrieved successfully
|
|
446
|
+
* @throws ApiError
|
|
447
|
+
*/
|
|
448
|
+
public static accountStandardsControllerGetTemplates(
|
|
449
|
+
data: AccountStandardsControllerGetTemplatesData
|
|
450
|
+
): CancelablePromise<AccountStandardsControllerGetTemplatesResponse> {
|
|
451
|
+
return __request(OpenAPI, {
|
|
452
|
+
method: 'GET',
|
|
453
|
+
url: '/api/v1/{region}/bean/account-standards',
|
|
454
|
+
path: {
|
|
455
|
+
region: data.region
|
|
456
|
+
},
|
|
457
|
+
query: {
|
|
458
|
+
type: data.type,
|
|
459
|
+
search: data.search
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Get template metadata for an account path
|
|
466
|
+
* Returns extendable status and root type for a template path.
|
|
467
|
+
* @param data The data for the request.
|
|
468
|
+
* @param data.region Region code for tenant context
|
|
469
|
+
* @param data.path Account path to check
|
|
470
|
+
* @returns TemplateMetadataResponseDto Template metadata retrieved successfully
|
|
471
|
+
* @throws ApiError
|
|
472
|
+
*/
|
|
473
|
+
public static accountStandardsControllerGetTemplateMetadata(
|
|
474
|
+
data: AccountStandardsControllerGetTemplateMetadataData
|
|
475
|
+
): CancelablePromise<AccountStandardsControllerGetTemplateMetadataResponse> {
|
|
476
|
+
return __request(OpenAPI, {
|
|
477
|
+
method: 'GET',
|
|
478
|
+
url: '/api/v1/{region}/bean/account-standards/template-metadata',
|
|
479
|
+
path: {
|
|
480
|
+
region: data.region
|
|
481
|
+
},
|
|
482
|
+
query: {
|
|
483
|
+
path: data.path
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Get available regions with hierarchy
|
|
490
|
+
* Returns supported regions with inheritance metadata
|
|
491
|
+
* @param data The data for the request.
|
|
492
|
+
* @param data.region Region code for tenant context
|
|
493
|
+
* @returns RegionsMetadataResponseDto Regions metadata retrieved successfully
|
|
494
|
+
* @throws ApiError
|
|
495
|
+
*/
|
|
496
|
+
public static accountStandardsControllerGetRegions(
|
|
497
|
+
data: AccountStandardsControllerGetRegionsData
|
|
498
|
+
): CancelablePromise<AccountStandardsControllerGetRegionsResponse> {
|
|
499
|
+
return __request(OpenAPI, {
|
|
500
|
+
method: 'GET',
|
|
501
|
+
url: '/api/v1/{region}/bean/account-standards/regions',
|
|
502
|
+
path: {
|
|
503
|
+
region: data.region
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
|
|
461
509
|
export class BeanTransactionsService {
|
|
462
510
|
/**
|
|
463
511
|
* @deprecated
|
|
@@ -523,25 +571,68 @@ export class BeanTransactionsService {
|
|
|
523
571
|
accountId: data.accountId
|
|
524
572
|
},
|
|
525
573
|
errors: {
|
|
574
|
+
400: 'Validation failed',
|
|
526
575
|
401: 'Authentication required'
|
|
527
576
|
}
|
|
528
577
|
});
|
|
529
578
|
}
|
|
530
579
|
|
|
531
580
|
/**
|
|
581
|
+
* @deprecated
|
|
582
|
+
* Batch create transactions (DEPRECATED)
|
|
583
|
+
* DEPRECATED: Use POST /:region/bean/import/provider/:name/sync instead. This endpoint skips dedup, rule matching, and review branching.
|
|
532
584
|
* @param data The data for the request.
|
|
533
585
|
* @param data.region Region code for tenant context
|
|
534
|
-
* @
|
|
586
|
+
* @param data.requestBody
|
|
587
|
+
* @returns BatchTransactionResponseDto Transactions processed
|
|
535
588
|
* @throws ApiError
|
|
536
589
|
*/
|
|
537
|
-
public static
|
|
538
|
-
data:
|
|
539
|
-
): CancelablePromise<
|
|
590
|
+
public static transactionControllerCreateBatch(
|
|
591
|
+
data: TransactionControllerCreateBatchData
|
|
592
|
+
): CancelablePromise<TransactionControllerCreateBatchResponse> {
|
|
540
593
|
return __request(OpenAPI, {
|
|
541
594
|
method: 'POST',
|
|
542
595
|
url: '/api/v1/{region}/bean/transactions/batch',
|
|
543
596
|
path: {
|
|
544
597
|
region: data.region
|
|
598
|
+
},
|
|
599
|
+
body: data.requestBody,
|
|
600
|
+
mediaType: 'application/json',
|
|
601
|
+
errors: {
|
|
602
|
+
400: 'Invalid input',
|
|
603
|
+
401: 'Authentication required'
|
|
604
|
+
}
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Suggest transaction tags
|
|
610
|
+
* Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
|
|
611
|
+
* @param data The data for the request.
|
|
612
|
+
* @param data.region Region code for tenant context
|
|
613
|
+
* @param data.q Prefix match, case-insensitive (max 50 chars)
|
|
614
|
+
* @param data.sort usage (default) or name
|
|
615
|
+
* @param data.limit Max suggestions (1-100, default 10)
|
|
616
|
+
* @returns TagSuggestionsResponseDto Tag suggestions
|
|
617
|
+
* @throws ApiError
|
|
618
|
+
*/
|
|
619
|
+
public static transactionControllerSuggestTags(
|
|
620
|
+
data: TransactionControllerSuggestTagsData
|
|
621
|
+
): CancelablePromise<TransactionControllerSuggestTagsResponse> {
|
|
622
|
+
return __request(OpenAPI, {
|
|
623
|
+
method: 'GET',
|
|
624
|
+
url: '/api/v1/{region}/bean/transactions/tags',
|
|
625
|
+
path: {
|
|
626
|
+
region: data.region
|
|
627
|
+
},
|
|
628
|
+
query: {
|
|
629
|
+
q: data.q,
|
|
630
|
+
sort: data.sort,
|
|
631
|
+
limit: data.limit
|
|
632
|
+
},
|
|
633
|
+
errors: {
|
|
634
|
+
400: 'Validation failed',
|
|
635
|
+
401: 'Authentication required'
|
|
545
636
|
}
|
|
546
637
|
});
|
|
547
638
|
}
|
|
@@ -603,67 +694,28 @@ export class BeanTransactionsService {
|
|
|
603
694
|
}
|
|
604
695
|
|
|
605
696
|
/**
|
|
697
|
+
* Void transaction
|
|
698
|
+
* Soft-deletes a transaction by marking it as VOIDED
|
|
606
699
|
* @param data The data for the request.
|
|
700
|
+
* @param data.id Transaction ID
|
|
607
701
|
* @param data.region Region code for tenant context
|
|
608
|
-
* @returns void
|
|
702
|
+
* @returns void Transaction voided successfully
|
|
609
703
|
* @throws ApiError
|
|
610
704
|
*/
|
|
611
|
-
public static
|
|
612
|
-
data:
|
|
613
|
-
): CancelablePromise<
|
|
705
|
+
public static transactionControllerDelete(
|
|
706
|
+
data: TransactionControllerDeleteData
|
|
707
|
+
): CancelablePromise<TransactionControllerDeleteResponse> {
|
|
614
708
|
return __request(OpenAPI, {
|
|
615
709
|
method: 'DELETE',
|
|
616
710
|
url: '/api/v1/{region}/bean/transactions/{id}',
|
|
617
711
|
path: {
|
|
618
|
-
|
|
619
|
-
}
|
|
620
|
-
});
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
export class BeanAccountStandardsService {
|
|
625
|
-
/**
|
|
626
|
-
* Get account templates
|
|
627
|
-
* Returns predefined account templates for a region. Supports filtering by account type and search term.
|
|
628
|
-
* @param data The data for the request.
|
|
629
|
-
* @param data.region Region code (cn, us, de)
|
|
630
|
-
* @param data.type Filter by account type
|
|
631
|
-
* @param data.search Search term for path or description
|
|
632
|
-
* @returns AccountStandardListResponseDto Account templates retrieved successfully
|
|
633
|
-
* @throws ApiError
|
|
634
|
-
*/
|
|
635
|
-
public static accountStandardsControllerGetTemplates(
|
|
636
|
-
data: AccountStandardsControllerGetTemplatesData
|
|
637
|
-
): CancelablePromise<AccountStandardsControllerGetTemplatesResponse> {
|
|
638
|
-
return __request(OpenAPI, {
|
|
639
|
-
method: 'GET',
|
|
640
|
-
url: '/api/v1/{region}/bean/account-standards',
|
|
641
|
-
path: {
|
|
712
|
+
id: data.id,
|
|
642
713
|
region: data.region
|
|
643
714
|
},
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
/**
|
|
652
|
-
* Get available regions with hierarchy
|
|
653
|
-
* Returns supported regions with inheritance metadata
|
|
654
|
-
* @param data The data for the request.
|
|
655
|
-
* @param data.region Region code (cn, us, de)
|
|
656
|
-
* @returns RegionsMetadataResponseDto Regions metadata retrieved successfully
|
|
657
|
-
* @throws ApiError
|
|
658
|
-
*/
|
|
659
|
-
public static accountStandardsControllerGetRegions(
|
|
660
|
-
data: AccountStandardsControllerGetRegionsData
|
|
661
|
-
): CancelablePromise<AccountStandardsControllerGetRegionsResponse> {
|
|
662
|
-
return __request(OpenAPI, {
|
|
663
|
-
method: 'GET',
|
|
664
|
-
url: '/api/v1/{region}/bean/account-standards/regions',
|
|
665
|
-
path: {
|
|
666
|
-
region: data.region
|
|
715
|
+
errors: {
|
|
716
|
+
400: 'Transaction already voided',
|
|
717
|
+
401: 'Authentication required',
|
|
718
|
+
404: 'Transaction not found'
|
|
667
719
|
}
|
|
668
720
|
});
|
|
669
721
|
}
|
|
@@ -675,7 +727,7 @@ export class BeanBalancesService {
|
|
|
675
727
|
* Calculate account balance at a specific date for a single currency
|
|
676
728
|
* @param data The data for the request.
|
|
677
729
|
* @param data.account Account name (e.g., "Assets:Bank:Checking")
|
|
678
|
-
* @param data.region Region code
|
|
730
|
+
* @param data.region Region code for tenant context
|
|
679
731
|
* @param data.date Date to calculate balance at (ISO 8601 format)
|
|
680
732
|
* @param data.currency Currency to query (e.g., "USD", "CNY")
|
|
681
733
|
* @returns BalanceResponseDto Balance calculated successfully
|
|
@@ -706,7 +758,7 @@ export class BeanBalancesService {
|
|
|
706
758
|
* Query multi-currency account balance
|
|
707
759
|
* Calculate account balances for all currencies at a specific date
|
|
708
760
|
* @param data The data for the request.
|
|
709
|
-
* @param data.region Region code
|
|
761
|
+
* @param data.region Region code for tenant context
|
|
710
762
|
* @returns MultiCurrencyBalanceResponseDto Balances calculated successfully
|
|
711
763
|
* @throws ApiError
|
|
712
764
|
*/
|
|
@@ -731,7 +783,7 @@ export class BeanReviewsService {
|
|
|
731
783
|
/**
|
|
732
784
|
* List pending reviews
|
|
733
785
|
* @param data The data for the request.
|
|
734
|
-
* @param data.region Region code
|
|
786
|
+
* @param data.region Region code for tenant context
|
|
735
787
|
* @param data.type Filter by review type
|
|
736
788
|
* @param data.confidenceLevel Filter by confidence level
|
|
737
789
|
* @param data.sortBy Sort order
|
|
@@ -762,7 +814,7 @@ export class BeanReviewsService {
|
|
|
762
814
|
/**
|
|
763
815
|
* Get review statistics
|
|
764
816
|
* @param data The data for the request.
|
|
765
|
-
* @param data.region Region code
|
|
817
|
+
* @param data.region Region code for tenant context
|
|
766
818
|
* @returns ReviewStatsDto
|
|
767
819
|
* @throws ApiError
|
|
768
820
|
*/
|
|
@@ -782,7 +834,7 @@ export class BeanReviewsService {
|
|
|
782
834
|
* Get review by ID
|
|
783
835
|
* @param data The data for the request.
|
|
784
836
|
* @param data.id Review ID
|
|
785
|
-
* @param data.region Region code
|
|
837
|
+
* @param data.region Region code for tenant context
|
|
786
838
|
* @returns ReviewDetailDto
|
|
787
839
|
* @throws ApiError
|
|
788
840
|
*/
|
|
@@ -800,75 +852,93 @@ export class BeanReviewsService {
|
|
|
800
852
|
}
|
|
801
853
|
|
|
802
854
|
/**
|
|
855
|
+
* Resolve a review item
|
|
803
856
|
* @param data The data for the request.
|
|
804
|
-
* @param data.
|
|
805
|
-
* @
|
|
857
|
+
* @param data.id Review ID
|
|
858
|
+
* @param data.region Region code for tenant context
|
|
859
|
+
* @param data.requestBody
|
|
860
|
+
* @returns ResolveResultDto
|
|
806
861
|
* @throws ApiError
|
|
807
862
|
*/
|
|
808
|
-
public static
|
|
809
|
-
data:
|
|
810
|
-
): CancelablePromise<
|
|
863
|
+
public static reviewControllerResolve(
|
|
864
|
+
data: ReviewControllerResolveData
|
|
865
|
+
): CancelablePromise<ReviewControllerResolveResponse> {
|
|
811
866
|
return __request(OpenAPI, {
|
|
812
867
|
method: 'POST',
|
|
813
868
|
url: '/api/v1/{region}/bean/reviews/{id}/resolve',
|
|
814
869
|
path: {
|
|
870
|
+
id: data.id,
|
|
815
871
|
region: data.region
|
|
816
|
-
}
|
|
872
|
+
},
|
|
873
|
+
body: data.requestBody,
|
|
874
|
+
mediaType: 'application/json'
|
|
817
875
|
});
|
|
818
876
|
}
|
|
819
877
|
|
|
820
878
|
/**
|
|
879
|
+
* Undo a resolution (within 24h)
|
|
821
880
|
* @param data The data for the request.
|
|
822
|
-
* @param data.
|
|
823
|
-
* @
|
|
881
|
+
* @param data.id Review ID
|
|
882
|
+
* @param data.region Region code for tenant context
|
|
883
|
+
* @returns UndoResultDto
|
|
824
884
|
* @throws ApiError
|
|
825
885
|
*/
|
|
826
|
-
public static
|
|
827
|
-
data:
|
|
828
|
-
): CancelablePromise<
|
|
886
|
+
public static reviewControllerUndo(
|
|
887
|
+
data: ReviewControllerUndoData
|
|
888
|
+
): CancelablePromise<ReviewControllerUndoResponse> {
|
|
829
889
|
return __request(OpenAPI, {
|
|
830
890
|
method: 'POST',
|
|
831
891
|
url: '/api/v1/{region}/bean/reviews/{id}/undo',
|
|
832
892
|
path: {
|
|
893
|
+
id: data.id,
|
|
833
894
|
region: data.region
|
|
834
895
|
}
|
|
835
896
|
});
|
|
836
897
|
}
|
|
837
898
|
|
|
838
899
|
/**
|
|
900
|
+
* Batch resolve multiple reviews
|
|
839
901
|
* @param data The data for the request.
|
|
840
|
-
* @param data.region Region code
|
|
841
|
-
* @
|
|
902
|
+
* @param data.region Region code for tenant context
|
|
903
|
+
* @param data.requestBody Batch resolution request containing review IDs and action
|
|
904
|
+
* @returns BatchResolveResultDto
|
|
842
905
|
* @throws ApiError
|
|
843
906
|
*/
|
|
844
|
-
public static
|
|
845
|
-
data:
|
|
846
|
-
): CancelablePromise<
|
|
907
|
+
public static reviewControllerBatchResolve(
|
|
908
|
+
data: ReviewControllerBatchResolveData
|
|
909
|
+
): CancelablePromise<ReviewControllerBatchResolveResponse> {
|
|
847
910
|
return __request(OpenAPI, {
|
|
848
911
|
method: 'POST',
|
|
849
912
|
url: '/api/v1/{region}/bean/reviews/batch-resolve',
|
|
850
913
|
path: {
|
|
851
914
|
region: data.region
|
|
852
|
-
}
|
|
915
|
+
},
|
|
916
|
+
body: data.requestBody,
|
|
917
|
+
mediaType: 'application/json'
|
|
853
918
|
});
|
|
854
919
|
}
|
|
855
920
|
}
|
|
856
921
|
|
|
857
922
|
export class BeanPayeesService {
|
|
858
923
|
/**
|
|
924
|
+
* Create a new payee
|
|
925
|
+
* Creates a new payee mapping for the authenticated user. The payee name must be unique within the user's account.
|
|
859
926
|
* @param data The data for the request.
|
|
860
|
-
* @param data.
|
|
861
|
-
* @returns
|
|
927
|
+
* @param data.requestBody
|
|
928
|
+
* @returns PayeeResponseDto Payee created successfully
|
|
862
929
|
* @throws ApiError
|
|
863
930
|
*/
|
|
864
|
-
public static
|
|
865
|
-
data:
|
|
866
|
-
): CancelablePromise<
|
|
931
|
+
public static payeeControllerCreate(
|
|
932
|
+
data: PayeeControllerCreateData
|
|
933
|
+
): CancelablePromise<PayeeControllerCreateResponse> {
|
|
867
934
|
return __request(OpenAPI, {
|
|
868
935
|
method: 'POST',
|
|
869
936
|
url: '/api/v1/bean/payees',
|
|
870
|
-
|
|
871
|
-
|
|
937
|
+
body: data.requestBody,
|
|
938
|
+
mediaType: 'application/json',
|
|
939
|
+
errors: {
|
|
940
|
+
400: 'Invalid input data',
|
|
941
|
+
409: 'Payee already exists'
|
|
872
942
|
}
|
|
873
943
|
});
|
|
874
944
|
}
|
|
@@ -877,7 +947,6 @@ export class BeanPayeesService {
|
|
|
877
947
|
* List user payees
|
|
878
948
|
* Returns all payee mappings for the authenticated user with optional filtering
|
|
879
949
|
* @param data The data for the request.
|
|
880
|
-
* @param data.region Region code (cn, us, de)
|
|
881
950
|
* @param data.search Search term for payee name (partial match, case-insensitive). Useful for autocomplete.
|
|
882
951
|
* @param data.payee Filter by exact payee name match
|
|
883
952
|
* @param data.category Filter by custom category
|
|
@@ -887,14 +956,11 @@ export class BeanPayeesService {
|
|
|
887
956
|
* @throws ApiError
|
|
888
957
|
*/
|
|
889
958
|
public static payeeControllerFindAll(
|
|
890
|
-
data: PayeeControllerFindAllData
|
|
959
|
+
data: PayeeControllerFindAllData = {}
|
|
891
960
|
): CancelablePromise<PayeeControllerFindAllResponse> {
|
|
892
961
|
return __request(OpenAPI, {
|
|
893
962
|
method: 'GET',
|
|
894
963
|
url: '/api/v1/bean/payees',
|
|
895
|
-
path: {
|
|
896
|
-
region: data.region
|
|
897
|
-
},
|
|
898
964
|
query: {
|
|
899
965
|
search: data.search,
|
|
900
966
|
payee: data.payee,
|
|
@@ -910,7 +976,6 @@ export class BeanPayeesService {
|
|
|
910
976
|
* Returns active payee names matching the query, sorted by recent usage. Used for transaction input autocomplete.
|
|
911
977
|
* @param data The data for the request.
|
|
912
978
|
* @param data.q Search query for payee name (partial match, case-insensitive)
|
|
913
|
-
* @param data.region Region code (cn, us, de)
|
|
914
979
|
* @param data.limit Maximum number of suggestions
|
|
915
980
|
* @returns PayeeAutocompleteResponseDto Autocomplete suggestions retrieved successfully
|
|
916
981
|
* @throws ApiError
|
|
@@ -921,9 +986,6 @@ export class BeanPayeesService {
|
|
|
921
986
|
return __request(OpenAPI, {
|
|
922
987
|
method: 'GET',
|
|
923
988
|
url: '/api/v1/bean/payees/autocomplete',
|
|
924
|
-
path: {
|
|
925
|
-
region: data.region
|
|
926
|
-
},
|
|
927
989
|
query: {
|
|
928
990
|
q: data.q,
|
|
929
991
|
limit: data.limit
|
|
@@ -935,20 +997,16 @@ export class BeanPayeesService {
|
|
|
935
997
|
* Get top payees by usage
|
|
936
998
|
* Returns the most frequently used payees, sorted by use count. Used for statistics and analytics.
|
|
937
999
|
* @param data The data for the request.
|
|
938
|
-
* @param data.region Region code (cn, us, de)
|
|
939
1000
|
* @param data.limit Maximum number of results
|
|
940
1001
|
* @returns PayeeStatsResponseDto Top payees retrieved successfully
|
|
941
1002
|
* @throws ApiError
|
|
942
1003
|
*/
|
|
943
1004
|
public static payeeControllerGetTopPayees(
|
|
944
|
-
data: PayeeControllerGetTopPayeesData
|
|
1005
|
+
data: PayeeControllerGetTopPayeesData = {}
|
|
945
1006
|
): CancelablePromise<PayeeControllerGetTopPayeesResponse> {
|
|
946
1007
|
return __request(OpenAPI, {
|
|
947
1008
|
method: 'GET',
|
|
948
1009
|
url: '/api/v1/bean/payees/top',
|
|
949
|
-
path: {
|
|
950
|
-
region: data.region
|
|
951
|
-
},
|
|
952
1010
|
query: {
|
|
953
1011
|
limit: data.limit
|
|
954
1012
|
}
|
|
@@ -960,7 +1018,6 @@ export class BeanPayeesService {
|
|
|
960
1018
|
* Returns a specific payee mapping by its UUID
|
|
961
1019
|
* @param data The data for the request.
|
|
962
1020
|
* @param data.id Payee UUID
|
|
963
|
-
* @param data.region Region code (cn, us, de)
|
|
964
1021
|
* @returns PayeeResponseDto Payee retrieved successfully
|
|
965
1022
|
* @throws ApiError
|
|
966
1023
|
*/
|
|
@@ -971,8 +1028,7 @@ export class BeanPayeesService {
|
|
|
971
1028
|
method: 'GET',
|
|
972
1029
|
url: '/api/v1/bean/payees/{id}',
|
|
973
1030
|
path: {
|
|
974
|
-
id: data.id
|
|
975
|
-
region: data.region
|
|
1031
|
+
id: data.id
|
|
976
1032
|
},
|
|
977
1033
|
errors: {
|
|
978
1034
|
403: 'Payee belongs to another user',
|
|
@@ -982,37 +1038,51 @@ export class BeanPayeesService {
|
|
|
982
1038
|
}
|
|
983
1039
|
|
|
984
1040
|
/**
|
|
1041
|
+
* Update payee
|
|
1042
|
+
* Updates a payee mapping. The payee name cannot be changed after creation.
|
|
985
1043
|
* @param data The data for the request.
|
|
986
|
-
* @param data.
|
|
987
|
-
* @
|
|
1044
|
+
* @param data.id Payee UUID
|
|
1045
|
+
* @param data.requestBody
|
|
1046
|
+
* @returns PayeeResponseDto Payee updated successfully
|
|
988
1047
|
* @throws ApiError
|
|
989
1048
|
*/
|
|
990
|
-
public static
|
|
991
|
-
data:
|
|
992
|
-
): CancelablePromise<
|
|
1049
|
+
public static payeeControllerUpdate(
|
|
1050
|
+
data: PayeeControllerUpdateData
|
|
1051
|
+
): CancelablePromise<PayeeControllerUpdateResponse> {
|
|
993
1052
|
return __request(OpenAPI, {
|
|
994
1053
|
method: 'PUT',
|
|
995
1054
|
url: '/api/v1/bean/payees/{id}',
|
|
996
1055
|
path: {
|
|
997
|
-
|
|
1056
|
+
id: data.id
|
|
1057
|
+
},
|
|
1058
|
+
body: data.requestBody,
|
|
1059
|
+
mediaType: 'application/json',
|
|
1060
|
+
errors: {
|
|
1061
|
+
400: 'Invalid input data',
|
|
1062
|
+
404: 'Payee not found'
|
|
998
1063
|
}
|
|
999
1064
|
});
|
|
1000
1065
|
}
|
|
1001
1066
|
|
|
1002
1067
|
/**
|
|
1068
|
+
* Delete payee
|
|
1069
|
+
* Soft deletes a payee by marking it as inactive. Inactive payees will not appear in autocomplete suggestions.
|
|
1003
1070
|
* @param data The data for the request.
|
|
1004
|
-
* @param data.
|
|
1005
|
-
* @returns void
|
|
1071
|
+
* @param data.id Payee UUID
|
|
1072
|
+
* @returns void Payee deleted successfully
|
|
1006
1073
|
* @throws ApiError
|
|
1007
1074
|
*/
|
|
1008
|
-
public static
|
|
1009
|
-
data:
|
|
1010
|
-
): CancelablePromise<
|
|
1075
|
+
public static payeeControllerDelete(
|
|
1076
|
+
data: PayeeControllerDeleteData
|
|
1077
|
+
): CancelablePromise<PayeeControllerDeleteResponse> {
|
|
1011
1078
|
return __request(OpenAPI, {
|
|
1012
1079
|
method: 'DELETE',
|
|
1013
1080
|
url: '/api/v1/bean/payees/{id}',
|
|
1014
1081
|
path: {
|
|
1015
|
-
|
|
1082
|
+
id: data.id
|
|
1083
|
+
},
|
|
1084
|
+
errors: {
|
|
1085
|
+
404: 'Payee not found'
|
|
1016
1086
|
}
|
|
1017
1087
|
});
|
|
1018
1088
|
}
|
|
@@ -1020,19 +1090,25 @@ export class BeanPayeesService {
|
|
|
1020
1090
|
|
|
1021
1091
|
export class AdminPayeeProfilesService {
|
|
1022
1092
|
/**
|
|
1093
|
+
* Create payee profile (Admin only)
|
|
1094
|
+
* Creates a new global payee profile. The canonical name must be unique (case-insensitive).
|
|
1023
1095
|
* @param data The data for the request.
|
|
1024
|
-
* @param data.
|
|
1025
|
-
* @returns
|
|
1096
|
+
* @param data.requestBody
|
|
1097
|
+
* @returns PayeeProfileResponseDto Payee profile created successfully
|
|
1026
1098
|
* @throws ApiError
|
|
1027
1099
|
*/
|
|
1028
|
-
public static
|
|
1029
|
-
data:
|
|
1030
|
-
): CancelablePromise<
|
|
1100
|
+
public static payeeProfileAdminControllerCreate(
|
|
1101
|
+
data: PayeeProfileAdminControllerCreateData
|
|
1102
|
+
): CancelablePromise<PayeeProfileAdminControllerCreateResponse> {
|
|
1031
1103
|
return __request(OpenAPI, {
|
|
1032
1104
|
method: 'POST',
|
|
1033
1105
|
url: '/api/v1/admin/payee-profiles',
|
|
1034
|
-
|
|
1035
|
-
|
|
1106
|
+
body: data.requestBody,
|
|
1107
|
+
mediaType: 'application/json',
|
|
1108
|
+
errors: {
|
|
1109
|
+
400: 'Validation failed',
|
|
1110
|
+
403: 'Admin access required',
|
|
1111
|
+
409: 'Payee profile already exists'
|
|
1036
1112
|
}
|
|
1037
1113
|
});
|
|
1038
1114
|
}
|
|
@@ -1041,7 +1117,6 @@ export class AdminPayeeProfilesService {
|
|
|
1041
1117
|
* List payee profiles (Admin only)
|
|
1042
1118
|
* Returns all payee profiles with optional filtering by category, country, verification status, etc.
|
|
1043
1119
|
* @param data The data for the request.
|
|
1044
|
-
* @param data.region Region code (cn, us, de)
|
|
1045
1120
|
* @param data.search Search term for canonical name and aliases (case-insensitive)
|
|
1046
1121
|
* @param data.category Filter by category
|
|
1047
1122
|
* @param data.country Filter by country (ISO 3166-1 alpha-2)
|
|
@@ -1052,14 +1127,11 @@ export class AdminPayeeProfilesService {
|
|
|
1052
1127
|
* @throws ApiError
|
|
1053
1128
|
*/
|
|
1054
1129
|
public static payeeProfileAdminControllerFindAll(
|
|
1055
|
-
data: PayeeProfileAdminControllerFindAllData
|
|
1130
|
+
data: PayeeProfileAdminControllerFindAllData = {}
|
|
1056
1131
|
): CancelablePromise<PayeeProfileAdminControllerFindAllResponse> {
|
|
1057
1132
|
return __request(OpenAPI, {
|
|
1058
1133
|
method: 'GET',
|
|
1059
1134
|
url: '/api/v1/admin/payee-profiles',
|
|
1060
|
-
path: {
|
|
1061
|
-
region: data.region
|
|
1062
|
-
},
|
|
1063
1135
|
query: {
|
|
1064
1136
|
search: data.search,
|
|
1065
1137
|
category: data.category,
|
|
@@ -1079,7 +1151,6 @@ export class AdminPayeeProfilesService {
|
|
|
1079
1151
|
* Returns a single payee profile by its ID.
|
|
1080
1152
|
* @param data The data for the request.
|
|
1081
1153
|
* @param data.id Payee profile ID (UUID)
|
|
1082
|
-
* @param data.region Region code (cn, us, de)
|
|
1083
1154
|
* @returns PayeeProfileResponseDto Payee profile retrieved successfully
|
|
1084
1155
|
* @throws ApiError
|
|
1085
1156
|
*/
|
|
@@ -1090,8 +1161,7 @@ export class AdminPayeeProfilesService {
|
|
|
1090
1161
|
method: 'GET',
|
|
1091
1162
|
url: '/api/v1/admin/payee-profiles/{id}',
|
|
1092
1163
|
path: {
|
|
1093
|
-
id: data.id
|
|
1094
|
-
region: data.region
|
|
1164
|
+
id: data.id
|
|
1095
1165
|
},
|
|
1096
1166
|
errors: {
|
|
1097
1167
|
403: 'Admin access required',
|
|
@@ -1101,73 +1171,101 @@ export class AdminPayeeProfilesService {
|
|
|
1101
1171
|
}
|
|
1102
1172
|
|
|
1103
1173
|
/**
|
|
1174
|
+
* Update payee profile (Admin only)
|
|
1175
|
+
* Updates an existing payee profile. The canonical name cannot be changed.
|
|
1104
1176
|
* @param data The data for the request.
|
|
1105
|
-
* @param data.
|
|
1106
|
-
* @
|
|
1177
|
+
* @param data.id Payee profile ID (UUID)
|
|
1178
|
+
* @param data.requestBody
|
|
1179
|
+
* @returns PayeeProfileResponseDto Payee profile updated successfully
|
|
1107
1180
|
* @throws ApiError
|
|
1108
1181
|
*/
|
|
1109
|
-
public static
|
|
1110
|
-
data:
|
|
1111
|
-
): CancelablePromise<
|
|
1182
|
+
public static payeeProfileAdminControllerUpdate(
|
|
1183
|
+
data: PayeeProfileAdminControllerUpdateData
|
|
1184
|
+
): CancelablePromise<PayeeProfileAdminControllerUpdateResponse> {
|
|
1112
1185
|
return __request(OpenAPI, {
|
|
1113
1186
|
method: 'PUT',
|
|
1114
1187
|
url: '/api/v1/admin/payee-profiles/{id}',
|
|
1115
1188
|
path: {
|
|
1116
|
-
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1189
|
+
id: data.id
|
|
1190
|
+
},
|
|
1191
|
+
body: data.requestBody,
|
|
1192
|
+
mediaType: 'application/json',
|
|
1193
|
+
errors: {
|
|
1194
|
+
403: 'Admin access required',
|
|
1195
|
+
404: 'Payee profile not found'
|
|
1196
|
+
}
|
|
1197
|
+
});
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1121
1200
|
/**
|
|
1201
|
+
* Soft delete payee profile (Admin only)
|
|
1202
|
+
* Marks a payee profile as inactive (soft delete). The profile cannot be deleted if it is referenced by user payees.
|
|
1122
1203
|
* @param data The data for the request.
|
|
1123
|
-
* @param data.
|
|
1124
|
-
* @returns void
|
|
1204
|
+
* @param data.id Payee profile ID (UUID)
|
|
1205
|
+
* @returns void Payee profile deleted successfully
|
|
1125
1206
|
* @throws ApiError
|
|
1126
1207
|
*/
|
|
1127
|
-
public static
|
|
1128
|
-
data:
|
|
1129
|
-
): CancelablePromise<
|
|
1208
|
+
public static payeeProfileAdminControllerDelete(
|
|
1209
|
+
data: PayeeProfileAdminControllerDeleteData
|
|
1210
|
+
): CancelablePromise<PayeeProfileAdminControllerDeleteResponse> {
|
|
1130
1211
|
return __request(OpenAPI, {
|
|
1131
1212
|
method: 'DELETE',
|
|
1132
1213
|
url: '/api/v1/admin/payee-profiles/{id}',
|
|
1133
1214
|
path: {
|
|
1134
|
-
|
|
1215
|
+
id: data.id
|
|
1216
|
+
},
|
|
1217
|
+
errors: {
|
|
1218
|
+
403: 'Admin access required',
|
|
1219
|
+
404: 'Payee profile not found',
|
|
1220
|
+
409: 'Payee profile is in use and cannot be deleted'
|
|
1135
1221
|
}
|
|
1136
1222
|
});
|
|
1137
1223
|
}
|
|
1138
1224
|
|
|
1139
1225
|
/**
|
|
1226
|
+
* Verify payee profile (Admin only)
|
|
1227
|
+
* Marks a payee profile as verified by setting verifiedAt to current timestamp.
|
|
1140
1228
|
* @param data The data for the request.
|
|
1141
|
-
* @param data.
|
|
1142
|
-
* @returns
|
|
1229
|
+
* @param data.id Payee profile ID (UUID)
|
|
1230
|
+
* @returns PayeeProfileResponseDto Payee profile verified successfully
|
|
1143
1231
|
* @throws ApiError
|
|
1144
1232
|
*/
|
|
1145
|
-
public static
|
|
1146
|
-
data:
|
|
1147
|
-
): CancelablePromise<
|
|
1233
|
+
public static payeeProfileAdminControllerVerify(
|
|
1234
|
+
data: PayeeProfileAdminControllerVerifyData
|
|
1235
|
+
): CancelablePromise<PayeeProfileAdminControllerVerifyResponse> {
|
|
1148
1236
|
return __request(OpenAPI, {
|
|
1149
1237
|
method: 'POST',
|
|
1150
1238
|
url: '/api/v1/admin/payee-profiles/{id}/verify',
|
|
1151
1239
|
path: {
|
|
1152
|
-
|
|
1240
|
+
id: data.id
|
|
1241
|
+
},
|
|
1242
|
+
errors: {
|
|
1243
|
+
403: 'Admin access required',
|
|
1244
|
+
404: 'Payee profile not found'
|
|
1153
1245
|
}
|
|
1154
1246
|
});
|
|
1155
1247
|
}
|
|
1156
1248
|
|
|
1157
1249
|
/**
|
|
1250
|
+
* Unverify payee profile (Admin only)
|
|
1251
|
+
* Removes verification status by setting verifiedAt to null.
|
|
1158
1252
|
* @param data The data for the request.
|
|
1159
|
-
* @param data.
|
|
1160
|
-
* @returns
|
|
1253
|
+
* @param data.id Payee profile ID (UUID)
|
|
1254
|
+
* @returns PayeeProfileResponseDto Payee profile unverified successfully
|
|
1161
1255
|
* @throws ApiError
|
|
1162
1256
|
*/
|
|
1163
|
-
public static
|
|
1164
|
-
data:
|
|
1165
|
-
): CancelablePromise<
|
|
1257
|
+
public static payeeProfileAdminControllerUnverify(
|
|
1258
|
+
data: PayeeProfileAdminControllerUnverifyData
|
|
1259
|
+
): CancelablePromise<PayeeProfileAdminControllerUnverifyResponse> {
|
|
1166
1260
|
return __request(OpenAPI, {
|
|
1167
1261
|
method: 'DELETE',
|
|
1168
1262
|
url: '/api/v1/admin/payee-profiles/{id}/verify',
|
|
1169
1263
|
path: {
|
|
1170
|
-
|
|
1264
|
+
id: data.id
|
|
1265
|
+
},
|
|
1266
|
+
errors: {
|
|
1267
|
+
403: 'Admin access required',
|
|
1268
|
+
404: 'Payee profile not found'
|
|
1171
1269
|
}
|
|
1172
1270
|
});
|
|
1173
1271
|
}
|
|
@@ -1175,19 +1273,28 @@ export class AdminPayeeProfilesService {
|
|
|
1175
1273
|
|
|
1176
1274
|
export class BeanCommoditiesService {
|
|
1177
1275
|
/**
|
|
1276
|
+
* Create a new commodity
|
|
1277
|
+
* Creates a new commodity definition for the authenticated user
|
|
1178
1278
|
* @param data The data for the request.
|
|
1179
|
-
* @param data.region Region code
|
|
1180
|
-
* @
|
|
1279
|
+
* @param data.region Region code for tenant context
|
|
1280
|
+
* @param data.requestBody
|
|
1281
|
+
* @returns CommodityResponseDto Commodity created successfully
|
|
1181
1282
|
* @throws ApiError
|
|
1182
1283
|
*/
|
|
1183
|
-
public static
|
|
1184
|
-
data:
|
|
1185
|
-
): CancelablePromise<
|
|
1284
|
+
public static commodityControllerCreate(
|
|
1285
|
+
data: CommodityControllerCreateData
|
|
1286
|
+
): CancelablePromise<CommodityControllerCreateResponse> {
|
|
1186
1287
|
return __request(OpenAPI, {
|
|
1187
1288
|
method: 'POST',
|
|
1188
1289
|
url: '/api/v1/{region}/bean/commodities',
|
|
1189
1290
|
path: {
|
|
1190
1291
|
region: data.region
|
|
1292
|
+
},
|
|
1293
|
+
body: data.requestBody,
|
|
1294
|
+
mediaType: 'application/json',
|
|
1295
|
+
errors: {
|
|
1296
|
+
400: 'Invalid input data',
|
|
1297
|
+
409: 'Commodity already exists'
|
|
1191
1298
|
}
|
|
1192
1299
|
});
|
|
1193
1300
|
}
|
|
@@ -1196,7 +1303,7 @@ export class BeanCommoditiesService {
|
|
|
1196
1303
|
* List user commodities
|
|
1197
1304
|
* Returns all commodity definitions for the authenticated user with optional filtering
|
|
1198
1305
|
* @param data The data for the request.
|
|
1199
|
-
* @param data.region Region code
|
|
1306
|
+
* @param data.region Region code for tenant context
|
|
1200
1307
|
* @param data.search Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
|
|
1201
1308
|
* @param data.symbol Filter by exact symbol match
|
|
1202
1309
|
* @returns CommodityListResponseDto Commodities retrieved successfully
|
|
@@ -1223,7 +1330,7 @@ export class BeanCommoditiesService {
|
|
|
1223
1330
|
* Returns a specific commodity definition by its symbol
|
|
1224
1331
|
* @param data The data for the request.
|
|
1225
1332
|
* @param data.symbol Commodity symbol
|
|
1226
|
-
* @param data.region Region code
|
|
1333
|
+
* @param data.region Region code for tenant context
|
|
1227
1334
|
* @returns CommodityResponseDto Commodity retrieved successfully
|
|
1228
1335
|
* @throws ApiError
|
|
1229
1336
|
*/
|
|
@@ -1244,68 +1351,92 @@ export class BeanCommoditiesService {
|
|
|
1244
1351
|
}
|
|
1245
1352
|
|
|
1246
1353
|
/**
|
|
1354
|
+
* Update commodity
|
|
1355
|
+
* Updates an existing commodity definition. Symbol cannot be changed.
|
|
1247
1356
|
* @param data The data for the request.
|
|
1248
|
-
* @param data.
|
|
1249
|
-
* @
|
|
1357
|
+
* @param data.symbol Commodity symbol
|
|
1358
|
+
* @param data.region Region code for tenant context
|
|
1359
|
+
* @param data.requestBody
|
|
1360
|
+
* @returns CommodityResponseDto Commodity updated successfully
|
|
1250
1361
|
* @throws ApiError
|
|
1251
1362
|
*/
|
|
1252
|
-
public static
|
|
1253
|
-
data:
|
|
1254
|
-
): CancelablePromise<
|
|
1363
|
+
public static commodityControllerUpdate(
|
|
1364
|
+
data: CommodityControllerUpdateData
|
|
1365
|
+
): CancelablePromise<CommodityControllerUpdateResponse> {
|
|
1255
1366
|
return __request(OpenAPI, {
|
|
1256
1367
|
method: 'PUT',
|
|
1257
1368
|
url: '/api/v1/{region}/bean/commodities/{symbol}',
|
|
1258
1369
|
path: {
|
|
1370
|
+
symbol: data.symbol,
|
|
1259
1371
|
region: data.region
|
|
1372
|
+
},
|
|
1373
|
+
body: data.requestBody,
|
|
1374
|
+
mediaType: 'application/json',
|
|
1375
|
+
errors: {
|
|
1376
|
+
400: 'Invalid input data',
|
|
1377
|
+
404: 'Commodity not found'
|
|
1260
1378
|
}
|
|
1261
1379
|
});
|
|
1262
1380
|
}
|
|
1263
1381
|
|
|
1264
1382
|
/**
|
|
1383
|
+
* Delete commodity
|
|
1384
|
+
* Deletes a commodity definition
|
|
1265
1385
|
* @param data The data for the request.
|
|
1266
|
-
* @param data.
|
|
1267
|
-
* @
|
|
1386
|
+
* @param data.symbol Commodity symbol
|
|
1387
|
+
* @param data.region Region code for tenant context
|
|
1388
|
+
* @returns void Commodity deleted successfully
|
|
1268
1389
|
* @throws ApiError
|
|
1269
1390
|
*/
|
|
1270
|
-
public static
|
|
1271
|
-
data:
|
|
1272
|
-
): CancelablePromise<
|
|
1391
|
+
public static commodityControllerDelete(
|
|
1392
|
+
data: CommodityControllerDeleteData
|
|
1393
|
+
): CancelablePromise<CommodityControllerDeleteResponse> {
|
|
1273
1394
|
return __request(OpenAPI, {
|
|
1274
1395
|
method: 'DELETE',
|
|
1275
1396
|
url: '/api/v1/{region}/bean/commodities/{symbol}',
|
|
1276
1397
|
path: {
|
|
1398
|
+
symbol: data.symbol,
|
|
1277
1399
|
region: data.region
|
|
1400
|
+
},
|
|
1401
|
+
errors: {
|
|
1402
|
+
404: 'Commodity not found'
|
|
1278
1403
|
}
|
|
1279
1404
|
});
|
|
1280
1405
|
}
|
|
1281
1406
|
|
|
1282
1407
|
/**
|
|
1408
|
+
* Ensure commodity exists
|
|
1409
|
+
* Gets existing commodity or creates it with automatic initialization from OpenBB
|
|
1283
1410
|
* @param data The data for the request.
|
|
1284
|
-
* @param data.
|
|
1285
|
-
* @
|
|
1411
|
+
* @param data.symbol Commodity symbol
|
|
1412
|
+
* @param data.region Region code for tenant context
|
|
1413
|
+
* @returns CommodityResponseDto Commodity retrieved or created
|
|
1286
1414
|
* @throws ApiError
|
|
1287
1415
|
*/
|
|
1288
|
-
public static
|
|
1289
|
-
data:
|
|
1290
|
-
): CancelablePromise<
|
|
1416
|
+
public static commodityControllerGetOrCreate(
|
|
1417
|
+
data: CommodityControllerGetOrCreateData
|
|
1418
|
+
): CancelablePromise<CommodityControllerGetOrCreateResponse> {
|
|
1291
1419
|
return __request(OpenAPI, {
|
|
1292
1420
|
method: 'POST',
|
|
1293
1421
|
url: '/api/v1/{region}/bean/commodities/{symbol}/ensure',
|
|
1294
1422
|
path: {
|
|
1423
|
+
symbol: data.symbol,
|
|
1295
1424
|
region: data.region
|
|
1296
1425
|
}
|
|
1297
1426
|
});
|
|
1298
1427
|
}
|
|
1299
1428
|
|
|
1300
1429
|
/**
|
|
1430
|
+
* Bulk create commodities
|
|
1431
|
+
* Creates multiple commodities from a list of symbols, useful for initialization
|
|
1301
1432
|
* @param data The data for the request.
|
|
1302
|
-
* @param data.region Region code
|
|
1303
|
-
* @returns
|
|
1433
|
+
* @param data.region Region code for tenant context
|
|
1434
|
+
* @returns CommodityResponseDto Commodities created successfully
|
|
1304
1435
|
* @throws ApiError
|
|
1305
1436
|
*/
|
|
1306
|
-
public static
|
|
1307
|
-
data:
|
|
1308
|
-
): CancelablePromise<
|
|
1437
|
+
public static commodityControllerBulkCreate(
|
|
1438
|
+
data: CommodityControllerBulkCreateData
|
|
1439
|
+
): CancelablePromise<CommodityControllerBulkCreateResponse> {
|
|
1309
1440
|
return __request(OpenAPI, {
|
|
1310
1441
|
method: 'POST',
|
|
1311
1442
|
url: '/api/v1/{region}/bean/commodities/bulk',
|
|
@@ -1318,19 +1449,28 @@ export class BeanCommoditiesService {
|
|
|
1318
1449
|
|
|
1319
1450
|
export class RecurringRulesService {
|
|
1320
1451
|
/**
|
|
1452
|
+
* Create a new recurring rule
|
|
1453
|
+
* Creates a new recurring transaction rule for the authenticated user
|
|
1321
1454
|
* @param data The data for the request.
|
|
1322
|
-
* @param data.region Region code
|
|
1323
|
-
* @
|
|
1455
|
+
* @param data.region Region code for tenant context
|
|
1456
|
+
* @param data.requestBody
|
|
1457
|
+
* @returns RecurringRuleResponseDto Rule created successfully
|
|
1324
1458
|
* @throws ApiError
|
|
1325
1459
|
*/
|
|
1326
|
-
public static
|
|
1327
|
-
data:
|
|
1328
|
-
): CancelablePromise<
|
|
1460
|
+
public static recurringRuleControllerCreate(
|
|
1461
|
+
data: RecurringRuleControllerCreateData
|
|
1462
|
+
): CancelablePromise<RecurringRuleControllerCreateResponse> {
|
|
1329
1463
|
return __request(OpenAPI, {
|
|
1330
1464
|
method: 'POST',
|
|
1331
1465
|
url: '/api/v1/{region}/bean/recurring-rules',
|
|
1332
1466
|
path: {
|
|
1333
1467
|
region: data.region
|
|
1468
|
+
},
|
|
1469
|
+
body: data.requestBody,
|
|
1470
|
+
mediaType: 'application/json',
|
|
1471
|
+
errors: {
|
|
1472
|
+
400: 'Invalid input data (e.g., autoCreate without accounts)',
|
|
1473
|
+
409: 'Rule with same name already exists'
|
|
1334
1474
|
}
|
|
1335
1475
|
});
|
|
1336
1476
|
}
|
|
@@ -1339,7 +1479,7 @@ export class RecurringRulesService {
|
|
|
1339
1479
|
* List recurring rules
|
|
1340
1480
|
* Returns all recurring rules for the authenticated user with optional filtering
|
|
1341
1481
|
* @param data The data for the request.
|
|
1342
|
-
* @param data.region Region code
|
|
1482
|
+
* @param data.region Region code for tenant context
|
|
1343
1483
|
* @param data.isActive Filter by active status
|
|
1344
1484
|
* @param data.frequency Filter by frequency (WEEKLY, MONTHLY, etc.)
|
|
1345
1485
|
* @param data.hasAutoCreate Filter by autoCreate enabled
|
|
@@ -1364,19 +1504,30 @@ export class RecurringRulesService {
|
|
|
1364
1504
|
}
|
|
1365
1505
|
|
|
1366
1506
|
/**
|
|
1507
|
+
* Create recurring rule from transaction
|
|
1508
|
+
* Auto-creates a recurring rule using transaction data. User only confirms frequency.
|
|
1367
1509
|
* @param data The data for the request.
|
|
1368
|
-
* @param data.
|
|
1369
|
-
* @
|
|
1510
|
+
* @param data.transactionId Source transaction ID
|
|
1511
|
+
* @param data.region Region code for tenant context
|
|
1512
|
+
* @param data.requestBody
|
|
1513
|
+
* @returns RecurringRuleResponseDto Rule created successfully
|
|
1370
1514
|
* @throws ApiError
|
|
1371
1515
|
*/
|
|
1372
|
-
public static
|
|
1373
|
-
data:
|
|
1374
|
-
): CancelablePromise<
|
|
1516
|
+
public static recurringRuleControllerCreateFromTransaction(
|
|
1517
|
+
data: RecurringRuleControllerCreateFromTransactionData
|
|
1518
|
+
): CancelablePromise<RecurringRuleControllerCreateFromTransactionResponse> {
|
|
1375
1519
|
return __request(OpenAPI, {
|
|
1376
1520
|
method: 'POST',
|
|
1377
1521
|
url: '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}',
|
|
1378
1522
|
path: {
|
|
1523
|
+
transactionId: data.transactionId,
|
|
1379
1524
|
region: data.region
|
|
1525
|
+
},
|
|
1526
|
+
body: data.requestBody,
|
|
1527
|
+
mediaType: 'application/json',
|
|
1528
|
+
errors: {
|
|
1529
|
+
404: 'Transaction not found',
|
|
1530
|
+
409: 'Rule with same name already exists or transaction already linked'
|
|
1380
1531
|
}
|
|
1381
1532
|
});
|
|
1382
1533
|
}
|
|
@@ -1386,7 +1537,7 @@ export class RecurringRulesService {
|
|
|
1386
1537
|
* Returns a specific recurring rule with its details
|
|
1387
1538
|
* @param data The data for the request.
|
|
1388
1539
|
* @param data.id Rule ID
|
|
1389
|
-
* @param data.region Region code
|
|
1540
|
+
* @param data.region Region code for tenant context
|
|
1390
1541
|
* @returns RecurringRuleResponseDto Rule retrieved successfully
|
|
1391
1542
|
* @throws ApiError
|
|
1392
1543
|
*/
|
|
@@ -1407,37 +1558,55 @@ export class RecurringRulesService {
|
|
|
1407
1558
|
}
|
|
1408
1559
|
|
|
1409
1560
|
/**
|
|
1561
|
+
* Update recurring rule
|
|
1562
|
+
* Updates an existing recurring rule
|
|
1410
1563
|
* @param data The data for the request.
|
|
1411
|
-
* @param data.
|
|
1412
|
-
* @
|
|
1564
|
+
* @param data.id Rule ID
|
|
1565
|
+
* @param data.region Region code for tenant context
|
|
1566
|
+
* @param data.requestBody
|
|
1567
|
+
* @returns RecurringRuleResponseDto Rule updated successfully
|
|
1413
1568
|
* @throws ApiError
|
|
1414
1569
|
*/
|
|
1415
|
-
public static
|
|
1416
|
-
data:
|
|
1417
|
-
): CancelablePromise<
|
|
1570
|
+
public static recurringRuleControllerUpdate(
|
|
1571
|
+
data: RecurringRuleControllerUpdateData
|
|
1572
|
+
): CancelablePromise<RecurringRuleControllerUpdateResponse> {
|
|
1418
1573
|
return __request(OpenAPI, {
|
|
1419
1574
|
method: 'PATCH',
|
|
1420
1575
|
url: '/api/v1/{region}/bean/recurring-rules/{id}',
|
|
1421
1576
|
path: {
|
|
1577
|
+
id: data.id,
|
|
1422
1578
|
region: data.region
|
|
1579
|
+
},
|
|
1580
|
+
body: data.requestBody,
|
|
1581
|
+
mediaType: 'application/json',
|
|
1582
|
+
errors: {
|
|
1583
|
+
400: 'Invalid input data',
|
|
1584
|
+
404: 'Rule not found'
|
|
1423
1585
|
}
|
|
1424
1586
|
});
|
|
1425
1587
|
}
|
|
1426
1588
|
|
|
1427
1589
|
/**
|
|
1590
|
+
* Delete recurring rule
|
|
1591
|
+
* Soft deletes a recurring rule (sets isActive to false)
|
|
1428
1592
|
* @param data The data for the request.
|
|
1429
|
-
* @param data.
|
|
1430
|
-
* @
|
|
1593
|
+
* @param data.id Rule ID
|
|
1594
|
+
* @param data.region Region code for tenant context
|
|
1595
|
+
* @returns void Rule deleted successfully
|
|
1431
1596
|
* @throws ApiError
|
|
1432
1597
|
*/
|
|
1433
|
-
public static
|
|
1434
|
-
data:
|
|
1435
|
-
): CancelablePromise<
|
|
1598
|
+
public static recurringRuleControllerDelete(
|
|
1599
|
+
data: RecurringRuleControllerDeleteData
|
|
1600
|
+
): CancelablePromise<RecurringRuleControllerDeleteResponse> {
|
|
1436
1601
|
return __request(OpenAPI, {
|
|
1437
1602
|
method: 'DELETE',
|
|
1438
1603
|
url: '/api/v1/{region}/bean/recurring-rules/{id}',
|
|
1439
1604
|
path: {
|
|
1605
|
+
id: data.id,
|
|
1440
1606
|
region: data.region
|
|
1607
|
+
},
|
|
1608
|
+
errors: {
|
|
1609
|
+
404: 'Rule not found'
|
|
1441
1610
|
}
|
|
1442
1611
|
});
|
|
1443
1612
|
}
|
|
@@ -1447,7 +1616,7 @@ export class RecurringRulesService {
|
|
|
1447
1616
|
* Returns a rule with pending/overdue counts and next expected date
|
|
1448
1617
|
* @param data The data for the request.
|
|
1449
1618
|
* @param data.id Rule ID
|
|
1450
|
-
* @param data.region Region code
|
|
1619
|
+
* @param data.region Region code for tenant context
|
|
1451
1620
|
* @returns RecurringRuleWithStatsResponseDto Rule with stats retrieved successfully
|
|
1452
1621
|
* @throws ApiError
|
|
1453
1622
|
*/
|
|
@@ -1473,7 +1642,7 @@ export class ExpectedTransactionsService {
|
|
|
1473
1642
|
* List expected transactions
|
|
1474
1643
|
* Returns expected transactions for the authenticated user with optional filtering
|
|
1475
1644
|
* @param data The data for the request.
|
|
1476
|
-
* @param data.region Region code
|
|
1645
|
+
* @param data.region Region code for tenant context
|
|
1477
1646
|
* @param data.ruleId Filter by recurring rule ID
|
|
1478
1647
|
* @param data.status Filter by status (PENDING, COMPLETED, SKIPPED)
|
|
1479
1648
|
* @param data.fromDate Filter by date range start (YYYY-MM-DD)
|
|
@@ -1503,7 +1672,7 @@ export class ExpectedTransactionsService {
|
|
|
1503
1672
|
* List overdue expected transactions
|
|
1504
1673
|
* Returns all overdue expected transactions (PENDING past tolerance)
|
|
1505
1674
|
* @param data The data for the request.
|
|
1506
|
-
* @param data.region Region code
|
|
1675
|
+
* @param data.region Region code for tenant context
|
|
1507
1676
|
* @returns ExpectedTransactionListResponseDto Overdue transactions retrieved successfully
|
|
1508
1677
|
* @throws ApiError
|
|
1509
1678
|
*/
|
|
@@ -1524,7 +1693,7 @@ export class ExpectedTransactionsService {
|
|
|
1524
1693
|
* Returns a specific expected transaction with rule details
|
|
1525
1694
|
* @param data The data for the request.
|
|
1526
1695
|
* @param data.id Expected transaction ID
|
|
1527
|
-
* @param data.region Region code
|
|
1696
|
+
* @param data.region Region code for tenant context
|
|
1528
1697
|
* @returns ExpectedTransactionResponseDto Expected transaction retrieved successfully
|
|
1529
1698
|
* @throws ApiError
|
|
1530
1699
|
*/
|
|
@@ -1545,91 +1714,138 @@ export class ExpectedTransactionsService {
|
|
|
1545
1714
|
}
|
|
1546
1715
|
|
|
1547
1716
|
/**
|
|
1717
|
+
* Skip expected transaction
|
|
1718
|
+
* Marks an expected transaction as skipped (PENDING -> SKIPPED)
|
|
1548
1719
|
* @param data The data for the request.
|
|
1549
|
-
* @param data.
|
|
1550
|
-
* @
|
|
1720
|
+
* @param data.id Expected transaction ID
|
|
1721
|
+
* @param data.region Region code for tenant context
|
|
1722
|
+
* @returns ExpectedTransactionResponseDto Expected transaction skipped successfully
|
|
1551
1723
|
* @throws ApiError
|
|
1552
1724
|
*/
|
|
1553
|
-
public static
|
|
1554
|
-
data:
|
|
1555
|
-
): CancelablePromise<
|
|
1725
|
+
public static expectedTransactionControllerSkip(
|
|
1726
|
+
data: ExpectedTransactionControllerSkipData
|
|
1727
|
+
): CancelablePromise<ExpectedTransactionControllerSkipResponse> {
|
|
1556
1728
|
return __request(OpenAPI, {
|
|
1557
1729
|
method: 'POST',
|
|
1558
1730
|
url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
|
|
1559
1731
|
path: {
|
|
1732
|
+
id: data.id,
|
|
1560
1733
|
region: data.region
|
|
1734
|
+
},
|
|
1735
|
+
errors: {
|
|
1736
|
+
400: 'Cannot skip - not in PENDING status',
|
|
1737
|
+
404: 'Expected transaction not found'
|
|
1561
1738
|
}
|
|
1562
1739
|
});
|
|
1563
1740
|
}
|
|
1564
1741
|
|
|
1565
1742
|
/**
|
|
1743
|
+
* Undo skip
|
|
1744
|
+
* Reverses a skip operation (SKIPPED -> PENDING)
|
|
1566
1745
|
* @param data The data for the request.
|
|
1567
|
-
* @param data.
|
|
1568
|
-
* @
|
|
1746
|
+
* @param data.id Expected transaction ID
|
|
1747
|
+
* @param data.region Region code for tenant context
|
|
1748
|
+
* @returns ExpectedTransactionResponseDto Skip undone successfully
|
|
1569
1749
|
* @throws ApiError
|
|
1570
1750
|
*/
|
|
1571
|
-
public static
|
|
1572
|
-
data:
|
|
1573
|
-
): CancelablePromise<
|
|
1751
|
+
public static expectedTransactionControllerUndoSkip(
|
|
1752
|
+
data: ExpectedTransactionControllerUndoSkipData
|
|
1753
|
+
): CancelablePromise<ExpectedTransactionControllerUndoSkipResponse> {
|
|
1574
1754
|
return __request(OpenAPI, {
|
|
1575
1755
|
method: 'DELETE',
|
|
1576
1756
|
url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
|
|
1577
1757
|
path: {
|
|
1758
|
+
id: data.id,
|
|
1578
1759
|
region: data.region
|
|
1760
|
+
},
|
|
1761
|
+
errors: {
|
|
1762
|
+
400: 'Cannot undo - not in SKIPPED status',
|
|
1763
|
+
404: 'Expected transaction not found'
|
|
1579
1764
|
}
|
|
1580
1765
|
});
|
|
1581
1766
|
}
|
|
1582
1767
|
|
|
1583
1768
|
/**
|
|
1769
|
+
* Confirm transaction match
|
|
1770
|
+
* Manually matches an expected transaction with an actual transaction
|
|
1584
1771
|
* @param data The data for the request.
|
|
1585
|
-
* @param data.
|
|
1586
|
-
* @
|
|
1772
|
+
* @param data.id Expected transaction ID
|
|
1773
|
+
* @param data.region Region code for tenant context
|
|
1774
|
+
* @param data.requestBody
|
|
1775
|
+
* @returns unknown Match confirmed successfully
|
|
1587
1776
|
* @throws ApiError
|
|
1588
1777
|
*/
|
|
1589
|
-
public static
|
|
1590
|
-
data:
|
|
1591
|
-
): CancelablePromise<
|
|
1778
|
+
public static expectedTransactionControllerConfirmMatch(
|
|
1779
|
+
data: ExpectedTransactionControllerConfirmMatchData
|
|
1780
|
+
): CancelablePromise<ExpectedTransactionControllerConfirmMatchResponse> {
|
|
1592
1781
|
return __request(OpenAPI, {
|
|
1593
1782
|
method: 'POST',
|
|
1594
1783
|
url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
|
|
1595
1784
|
path: {
|
|
1785
|
+
id: data.id,
|
|
1596
1786
|
region: data.region
|
|
1787
|
+
},
|
|
1788
|
+
body: data.requestBody,
|
|
1789
|
+
mediaType: 'application/json',
|
|
1790
|
+
errors: {
|
|
1791
|
+
400: 'Cannot match - not in PENDING status',
|
|
1792
|
+
404: 'Expected or actual transaction not found',
|
|
1793
|
+
409: 'Actual transaction already matched to another rule'
|
|
1597
1794
|
}
|
|
1598
1795
|
});
|
|
1599
1796
|
}
|
|
1600
1797
|
|
|
1601
1798
|
/**
|
|
1799
|
+
* Unmatch transaction
|
|
1800
|
+
* Removes the match between expected and actual transaction (COMPLETED -> PENDING)
|
|
1602
1801
|
* @param data The data for the request.
|
|
1603
|
-
* @param data.
|
|
1604
|
-
* @
|
|
1802
|
+
* @param data.id Expected transaction ID
|
|
1803
|
+
* @param data.region Region code for tenant context
|
|
1804
|
+
* @returns unknown Match removed successfully
|
|
1605
1805
|
* @throws ApiError
|
|
1606
1806
|
*/
|
|
1607
|
-
public static
|
|
1608
|
-
data:
|
|
1609
|
-
): CancelablePromise<
|
|
1807
|
+
public static expectedTransactionControllerUnmatch(
|
|
1808
|
+
data: ExpectedTransactionControllerUnmatchData
|
|
1809
|
+
): CancelablePromise<ExpectedTransactionControllerUnmatchResponse> {
|
|
1610
1810
|
return __request(OpenAPI, {
|
|
1611
1811
|
method: 'DELETE',
|
|
1612
1812
|
url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
|
|
1613
1813
|
path: {
|
|
1814
|
+
id: data.id,
|
|
1614
1815
|
region: data.region
|
|
1816
|
+
},
|
|
1817
|
+
errors: {
|
|
1818
|
+
400: 'Cannot unmatch - not in COMPLETED status',
|
|
1819
|
+
404: 'Expected transaction not found'
|
|
1615
1820
|
}
|
|
1616
1821
|
});
|
|
1617
1822
|
}
|
|
1618
1823
|
|
|
1619
1824
|
/**
|
|
1825
|
+
* Enter Now
|
|
1826
|
+
* Creates an actual transaction for an expected transaction (YNAB-style Enter Now)
|
|
1620
1827
|
* @param data The data for the request.
|
|
1621
|
-
* @param data.
|
|
1622
|
-
* @
|
|
1828
|
+
* @param data.id Expected transaction ID
|
|
1829
|
+
* @param data.region Region code for tenant context
|
|
1830
|
+
* @param data.requestBody
|
|
1831
|
+
* @returns unknown Transaction created successfully
|
|
1623
1832
|
* @throws ApiError
|
|
1624
1833
|
*/
|
|
1625
|
-
public static
|
|
1626
|
-
data:
|
|
1627
|
-
): CancelablePromise<
|
|
1834
|
+
public static expectedTransactionControllerEnterNow(
|
|
1835
|
+
data: ExpectedTransactionControllerEnterNowData
|
|
1836
|
+
): CancelablePromise<ExpectedTransactionControllerEnterNowResponse> {
|
|
1628
1837
|
return __request(OpenAPI, {
|
|
1629
1838
|
method: 'POST',
|
|
1630
1839
|
url: '/api/v1/{region}/bean/expected-transactions/{id}/enter',
|
|
1631
1840
|
path: {
|
|
1841
|
+
id: data.id,
|
|
1632
1842
|
region: data.region
|
|
1843
|
+
},
|
|
1844
|
+
body: data.requestBody,
|
|
1845
|
+
mediaType: 'application/json',
|
|
1846
|
+
errors: {
|
|
1847
|
+
400: 'Cannot enter - not in PENDING status or missing accounts',
|
|
1848
|
+
404: 'Expected transaction or accounts not found'
|
|
1633
1849
|
}
|
|
1634
1850
|
});
|
|
1635
1851
|
}
|
|
@@ -1640,7 +1856,7 @@ export class RecurringForecastService {
|
|
|
1640
1856
|
* Get cash flow forecast
|
|
1641
1857
|
* Returns predicted outflows for the next N months based on active recurring rules
|
|
1642
1858
|
* @param data The data for the request.
|
|
1643
|
-
* @param data.region Region code
|
|
1859
|
+
* @param data.region Region code for tenant context
|
|
1644
1860
|
* @param data.months Number of months to forecast (1-12, default 3)
|
|
1645
1861
|
* @returns ForecastResponseDto Forecast retrieved successfully
|
|
1646
1862
|
* @throws ApiError
|
|
@@ -1663,19 +1879,29 @@ export class RecurringForecastService {
|
|
|
1663
1879
|
|
|
1664
1880
|
export class BeanTransactionRulesService {
|
|
1665
1881
|
/**
|
|
1882
|
+
* Create a new transaction rule (or upsert if upsertByPayee=true)
|
|
1883
|
+
* Creates a new rule. If upsertByPayee=true, updates existing rule matching payeeKeywords[0] instead of creating duplicate.
|
|
1666
1884
|
* @param data The data for the request.
|
|
1667
|
-
* @param data.region Region code
|
|
1668
|
-
* @
|
|
1885
|
+
* @param data.region Region code for tenant context
|
|
1886
|
+
* @param data.requestBody
|
|
1887
|
+
* @returns TransactionRuleResponseDto Rule updated successfully (upsert mode)
|
|
1669
1888
|
* @throws ApiError
|
|
1670
1889
|
*/
|
|
1671
|
-
public static
|
|
1672
|
-
data:
|
|
1673
|
-
): CancelablePromise<
|
|
1890
|
+
public static transactionRuleControllerCreate(
|
|
1891
|
+
data: TransactionRuleControllerCreateData
|
|
1892
|
+
): CancelablePromise<TransactionRuleControllerCreateResponse> {
|
|
1674
1893
|
return __request(OpenAPI, {
|
|
1675
1894
|
method: 'POST',
|
|
1676
1895
|
url: '/api/v1/{region}/bean/transaction-rules',
|
|
1677
1896
|
path: {
|
|
1678
1897
|
region: data.region
|
|
1898
|
+
},
|
|
1899
|
+
body: data.requestBody,
|
|
1900
|
+
mediaType: 'application/json',
|
|
1901
|
+
errors: {
|
|
1902
|
+
400: 'Validation failed',
|
|
1903
|
+
401: 'Unauthorized',
|
|
1904
|
+
409: 'Resource conflict - another process is updating this rule'
|
|
1679
1905
|
}
|
|
1680
1906
|
});
|
|
1681
1907
|
}
|
|
@@ -1683,7 +1909,7 @@ export class BeanTransactionRulesService {
|
|
|
1683
1909
|
/**
|
|
1684
1910
|
* Get all transaction rules for user
|
|
1685
1911
|
* @param data The data for the request.
|
|
1686
|
-
* @param data.region Region code
|
|
1912
|
+
* @param data.region Region code for tenant context
|
|
1687
1913
|
* @param data.limit Max results per page (default: 20, max: 100)
|
|
1688
1914
|
* @param data.offset Pagination offset (default: 0)
|
|
1689
1915
|
* @param data.enabled Filter by enabled status
|
|
@@ -1717,7 +1943,7 @@ export class BeanTransactionRulesService {
|
|
|
1717
1943
|
/**
|
|
1718
1944
|
* Validate transaction rule configuration
|
|
1719
1945
|
* @param data The data for the request.
|
|
1720
|
-
* @param data.region Region code
|
|
1946
|
+
* @param data.region Region code for tenant context
|
|
1721
1947
|
* @param data.requestBody
|
|
1722
1948
|
* @returns ValidateRuleResponseDto Validation result
|
|
1723
1949
|
* @throws ApiError
|
|
@@ -1734,25 +1960,34 @@ export class BeanTransactionRulesService {
|
|
|
1734
1960
|
body: data.requestBody,
|
|
1735
1961
|
mediaType: 'application/json',
|
|
1736
1962
|
errors: {
|
|
1963
|
+
400: 'Validation failed',
|
|
1737
1964
|
401: 'Unauthorized'
|
|
1738
1965
|
}
|
|
1739
1966
|
});
|
|
1740
1967
|
}
|
|
1741
1968
|
|
|
1742
1969
|
/**
|
|
1970
|
+
* Bulk create transaction rules
|
|
1743
1971
|
* @param data The data for the request.
|
|
1744
|
-
* @param data.region Region code
|
|
1745
|
-
* @
|
|
1972
|
+
* @param data.region Region code for tenant context
|
|
1973
|
+
* @param data.requestBody
|
|
1974
|
+
* @returns BulkCreateRulesResponseDto Bulk create completed
|
|
1746
1975
|
* @throws ApiError
|
|
1747
1976
|
*/
|
|
1748
|
-
public static
|
|
1749
|
-
data:
|
|
1750
|
-
): CancelablePromise<
|
|
1977
|
+
public static transactionRuleControllerBulkCreate(
|
|
1978
|
+
data: TransactionRuleControllerBulkCreateData
|
|
1979
|
+
): CancelablePromise<TransactionRuleControllerBulkCreateResponse> {
|
|
1751
1980
|
return __request(OpenAPI, {
|
|
1752
1981
|
method: 'POST',
|
|
1753
1982
|
url: '/api/v1/{region}/bean/transaction-rules/bulk',
|
|
1754
1983
|
path: {
|
|
1755
1984
|
region: data.region
|
|
1985
|
+
},
|
|
1986
|
+
body: data.requestBody,
|
|
1987
|
+
mediaType: 'application/json',
|
|
1988
|
+
errors: {
|
|
1989
|
+
400: 'Invalid bulk create data',
|
|
1990
|
+
401: 'Unauthorized'
|
|
1756
1991
|
}
|
|
1757
1992
|
});
|
|
1758
1993
|
}
|
|
@@ -1761,7 +1996,7 @@ export class BeanTransactionRulesService {
|
|
|
1761
1996
|
* Export transaction rules
|
|
1762
1997
|
* @param data The data for the request.
|
|
1763
1998
|
* @param data.format Export format (currently only JSON supported)
|
|
1764
|
-
* @param data.region Region code
|
|
1999
|
+
* @param data.region Region code for tenant context
|
|
1765
2000
|
* @returns ExportRulesResponseDto Exported rules
|
|
1766
2001
|
* @throws ApiError
|
|
1767
2002
|
*/
|
|
@@ -1786,7 +2021,7 @@ export class BeanTransactionRulesService {
|
|
|
1786
2021
|
* Get transaction rule statistics
|
|
1787
2022
|
* @param data The data for the request.
|
|
1788
2023
|
* @param data.period Statistics time period
|
|
1789
|
-
* @param data.region Region code
|
|
2024
|
+
* @param data.region Region code for tenant context
|
|
1790
2025
|
* @returns RuleStatisticsResponseDto Rule statistics
|
|
1791
2026
|
* @throws ApiError
|
|
1792
2027
|
*/
|
|
@@ -1810,7 +2045,7 @@ export class BeanTransactionRulesService {
|
|
|
1810
2045
|
* Get transaction rule detail
|
|
1811
2046
|
* @param data The data for the request.
|
|
1812
2047
|
* @param data.ruleId Rule ID
|
|
1813
|
-
* @param data.region Region code
|
|
2048
|
+
* @param data.region Region code for tenant context
|
|
1814
2049
|
* @returns TransactionRuleResponseDto Rule details
|
|
1815
2050
|
* @throws ApiError
|
|
1816
2051
|
*/
|
|
@@ -1833,37 +2068,59 @@ export class BeanTransactionRulesService {
|
|
|
1833
2068
|
}
|
|
1834
2069
|
|
|
1835
2070
|
/**
|
|
2071
|
+
* Update a transaction rule
|
|
1836
2072
|
* @param data The data for the request.
|
|
1837
|
-
* @param data.
|
|
1838
|
-
* @
|
|
2073
|
+
* @param data.ruleId Rule ID to update
|
|
2074
|
+
* @param data.region Region code for tenant context
|
|
2075
|
+
* @param data.requestBody
|
|
2076
|
+
* @returns TransactionRuleResponseDto Rule updated successfully
|
|
1839
2077
|
* @throws ApiError
|
|
1840
2078
|
*/
|
|
1841
|
-
public static
|
|
1842
|
-
data:
|
|
1843
|
-
): CancelablePromise<
|
|
2079
|
+
public static transactionRuleControllerUpdate(
|
|
2080
|
+
data: TransactionRuleControllerUpdateData
|
|
2081
|
+
): CancelablePromise<TransactionRuleControllerUpdateResponse> {
|
|
1844
2082
|
return __request(OpenAPI, {
|
|
1845
2083
|
method: 'PUT',
|
|
1846
2084
|
url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
|
|
1847
2085
|
path: {
|
|
2086
|
+
ruleId: data.ruleId,
|
|
1848
2087
|
region: data.region
|
|
2088
|
+
},
|
|
2089
|
+
body: data.requestBody,
|
|
2090
|
+
mediaType: 'application/json',
|
|
2091
|
+
errors: {
|
|
2092
|
+
400: 'Validation failed',
|
|
2093
|
+
401: 'Unauthorized',
|
|
2094
|
+
403: 'Forbidden - not owner of rule',
|
|
2095
|
+
404: 'Rule not found',
|
|
2096
|
+
409: 'Resource conflict - rule is being modified by another process'
|
|
1849
2097
|
}
|
|
1850
2098
|
});
|
|
1851
2099
|
}
|
|
1852
2100
|
|
|
1853
2101
|
/**
|
|
2102
|
+
* Delete a transaction rule
|
|
1854
2103
|
* @param data The data for the request.
|
|
1855
|
-
* @param data.
|
|
1856
|
-
* @
|
|
2104
|
+
* @param data.ruleId Rule ID to delete
|
|
2105
|
+
* @param data.region Region code for tenant context
|
|
2106
|
+
* @returns void Rule deleted successfully
|
|
1857
2107
|
* @throws ApiError
|
|
1858
2108
|
*/
|
|
1859
|
-
public static
|
|
1860
|
-
data:
|
|
1861
|
-
): CancelablePromise<
|
|
2109
|
+
public static transactionRuleControllerDelete(
|
|
2110
|
+
data: TransactionRuleControllerDeleteData
|
|
2111
|
+
): CancelablePromise<TransactionRuleControllerDeleteResponse> {
|
|
1862
2112
|
return __request(OpenAPI, {
|
|
1863
2113
|
method: 'DELETE',
|
|
1864
2114
|
url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
|
|
1865
2115
|
path: {
|
|
2116
|
+
ruleId: data.ruleId,
|
|
1866
2117
|
region: data.region
|
|
2118
|
+
},
|
|
2119
|
+
errors: {
|
|
2120
|
+
401: 'Unauthorized',
|
|
2121
|
+
403: 'Forbidden - not owner of rule',
|
|
2122
|
+
404: 'Rule not found',
|
|
2123
|
+
409: 'Resource conflict - rule is being modified by another process'
|
|
1867
2124
|
}
|
|
1868
2125
|
});
|
|
1869
2126
|
}
|
|
@@ -1872,7 +2129,7 @@ export class BeanTransactionRulesService {
|
|
|
1872
2129
|
* Test rule matching
|
|
1873
2130
|
* @param data The data for the request.
|
|
1874
2131
|
* @param data.ruleId Rule ID to test
|
|
1875
|
-
* @param data.region Region code
|
|
2132
|
+
* @param data.region Region code for tenant context
|
|
1876
2133
|
* @param data.requestBody
|
|
1877
2134
|
* @returns TestRuleResponseDto Test result
|
|
1878
2135
|
* @throws ApiError
|
|
@@ -1902,7 +2159,6 @@ export class UsersService {
|
|
|
1902
2159
|
/**
|
|
1903
2160
|
* Delete own user account
|
|
1904
2161
|
* @param data The data for the request.
|
|
1905
|
-
* @param data.region Region code (cn, us, de)
|
|
1906
2162
|
* @param data.requestBody
|
|
1907
2163
|
* @returns void User deleted successfully
|
|
1908
2164
|
* @throws ApiError
|
|
@@ -1913,9 +2169,6 @@ export class UsersService {
|
|
|
1913
2169
|
return __request(OpenAPI, {
|
|
1914
2170
|
method: 'DELETE',
|
|
1915
2171
|
url: '/api/v1/users',
|
|
1916
|
-
path: {
|
|
1917
|
-
region: data.region
|
|
1918
|
-
},
|
|
1919
2172
|
body: data.requestBody,
|
|
1920
2173
|
mediaType: 'application/json',
|
|
1921
2174
|
errors: {
|
|
@@ -1928,7 +2181,6 @@ export class UsersService {
|
|
|
1928
2181
|
* Get current authenticated user
|
|
1929
2182
|
* @param data The data for the request.
|
|
1930
2183
|
* @param data.acceptLanguage
|
|
1931
|
-
* @param data.region Region code (cn, us, de)
|
|
1932
2184
|
* @returns unknown User retrieved successfully
|
|
1933
2185
|
* @throws ApiError
|
|
1934
2186
|
*/
|
|
@@ -1938,9 +2190,6 @@ export class UsersService {
|
|
|
1938
2190
|
return __request(OpenAPI, {
|
|
1939
2191
|
method: 'GET',
|
|
1940
2192
|
url: '/api/v1/users',
|
|
1941
|
-
path: {
|
|
1942
|
-
region: data.region
|
|
1943
|
-
},
|
|
1944
2193
|
headers: {
|
|
1945
2194
|
'accept-language': data.acceptLanguage
|
|
1946
2195
|
}
|
|
@@ -1951,7 +2200,6 @@ export class UsersService {
|
|
|
1951
2200
|
* Sign up new user
|
|
1952
2201
|
* Create a new account with auto-generated access token. Protected by Cloudflare Turnstile to prevent automated signup (when enabled).
|
|
1953
2202
|
* @param data The data for the request.
|
|
1954
|
-
* @param data.region Region code (cn, us, de)
|
|
1955
2203
|
* @param data.requestBody
|
|
1956
2204
|
* @returns unknown User created successfully
|
|
1957
2205
|
* @throws ApiError
|
|
@@ -1962,9 +2210,6 @@ export class UsersService {
|
|
|
1962
2210
|
return __request(OpenAPI, {
|
|
1963
2211
|
method: 'POST',
|
|
1964
2212
|
url: '/api/v1/users',
|
|
1965
|
-
path: {
|
|
1966
|
-
region: data.region
|
|
1967
|
-
},
|
|
1968
2213
|
body: data.requestBody,
|
|
1969
2214
|
mediaType: 'application/json',
|
|
1970
2215
|
errors: {
|
|
@@ -1978,7 +2223,6 @@ export class UsersService {
|
|
|
1978
2223
|
* Delete user by ID (admin only)
|
|
1979
2224
|
* @param data The data for the request.
|
|
1980
2225
|
* @param data.id User ID to delete
|
|
1981
|
-
* @param data.region Region code (cn, us, de)
|
|
1982
2226
|
* @returns void User deleted successfully
|
|
1983
2227
|
* @throws ApiError
|
|
1984
2228
|
*/
|
|
@@ -1989,8 +2233,7 @@ export class UsersService {
|
|
|
1989
2233
|
method: 'DELETE',
|
|
1990
2234
|
url: '/api/v1/users/{id}',
|
|
1991
2235
|
path: {
|
|
1992
|
-
id: data.id
|
|
1993
|
-
region: data.region
|
|
2236
|
+
id: data.id
|
|
1994
2237
|
},
|
|
1995
2238
|
errors: {
|
|
1996
2239
|
403: 'Cannot delete own account or insufficient permissions'
|
|
@@ -2002,7 +2245,6 @@ export class UsersService {
|
|
|
2002
2245
|
* Get user info by user ID
|
|
2003
2246
|
* @param data The data for the request.
|
|
2004
2247
|
* @param data.id User ID
|
|
2005
|
-
* @param data.region Region code (cn, us, de)
|
|
2006
2248
|
* @returns unknown User info retrieved successfully
|
|
2007
2249
|
* @throws ApiError
|
|
2008
2250
|
*/
|
|
@@ -2013,8 +2255,7 @@ export class UsersService {
|
|
|
2013
2255
|
method: 'GET',
|
|
2014
2256
|
url: '/api/v1/users/{id}/info',
|
|
2015
2257
|
path: {
|
|
2016
|
-
id: data.id
|
|
2017
|
-
region: data.region
|
|
2258
|
+
id: data.id
|
|
2018
2259
|
},
|
|
2019
2260
|
errors: {
|
|
2020
2261
|
403: 'Cannot access other user info without admin permission'
|
|
@@ -2025,7 +2266,6 @@ export class UsersService {
|
|
|
2025
2266
|
/**
|
|
2026
2267
|
* Update user settings
|
|
2027
2268
|
* @param data The data for the request.
|
|
2028
|
-
* @param data.region Region code (cn, us, de)
|
|
2029
2269
|
* @param data.requestBody
|
|
2030
2270
|
* @returns unknown Settings updated successfully
|
|
2031
2271
|
* @throws ApiError
|
|
@@ -2036,9 +2276,6 @@ export class UsersService {
|
|
|
2036
2276
|
return __request(OpenAPI, {
|
|
2037
2277
|
method: 'PUT',
|
|
2038
2278
|
url: '/api/v1/users/setting',
|
|
2039
|
-
path: {
|
|
2040
|
-
region: data.region
|
|
2041
|
-
},
|
|
2042
2279
|
body: data.requestBody,
|
|
2043
2280
|
mediaType: 'application/json',
|
|
2044
2281
|
errors: {
|
|
@@ -2052,7 +2289,6 @@ export class UsersService {
|
|
|
2052
2289
|
* @param data The data for the request.
|
|
2053
2290
|
* @param data.pageNo Page number
|
|
2054
2291
|
* @param data.pageSize Page size
|
|
2055
|
-
* @param data.region Region code (cn, us, de)
|
|
2056
2292
|
* @returns unknown Settings list retrieved successfully
|
|
2057
2293
|
* @throws ApiError
|
|
2058
2294
|
*/
|
|
@@ -2062,9 +2298,6 @@ export class UsersService {
|
|
|
2062
2298
|
return __request(OpenAPI, {
|
|
2063
2299
|
method: 'GET',
|
|
2064
2300
|
url: '/api/v1/users/settings-by-page',
|
|
2065
|
-
path: {
|
|
2066
|
-
region: data.region
|
|
2067
|
-
},
|
|
2068
2301
|
query: {
|
|
2069
2302
|
pageNo: data.pageNo,
|
|
2070
2303
|
pageSize: data.pageSize
|
|
@@ -2074,20 +2307,13 @@ export class UsersService {
|
|
|
2074
2307
|
|
|
2075
2308
|
/**
|
|
2076
2309
|
* Get asset and liability summary for current user
|
|
2077
|
-
* @param data The data for the request.
|
|
2078
|
-
* @param data.region Region code (cn, us, de)
|
|
2079
2310
|
* @returns unknown Summary retrieved successfully
|
|
2080
2311
|
* @throws ApiError
|
|
2081
2312
|
*/
|
|
2082
|
-
public static userControllerGetAssetLiabilitySummary(
|
|
2083
|
-
data: UserControllerGetAssetLiabilitySummaryData
|
|
2084
|
-
): CancelablePromise<UserControllerGetAssetLiabilitySummaryResponse> {
|
|
2313
|
+
public static userControllerGetAssetLiabilitySummary(): CancelablePromise<UserControllerGetAssetLiabilitySummaryResponse> {
|
|
2085
2314
|
return __request(OpenAPI, {
|
|
2086
2315
|
method: 'GET',
|
|
2087
|
-
url: '/api/v1/users/asset-liability-summary'
|
|
2088
|
-
path: {
|
|
2089
|
-
region: data.region
|
|
2090
|
-
}
|
|
2316
|
+
url: '/api/v1/users/asset-liability-summary'
|
|
2091
2317
|
});
|
|
2092
2318
|
}
|
|
2093
2319
|
}
|
|
@@ -2095,20 +2321,13 @@ export class UsersService {
|
|
|
2095
2321
|
export class PropertiesService {
|
|
2096
2322
|
/**
|
|
2097
2323
|
* Get all system properties
|
|
2098
|
-
* @param data The data for the request.
|
|
2099
|
-
* @param data.region Region code (cn, us, de)
|
|
2100
2324
|
* @returns unknown Properties retrieved successfully
|
|
2101
2325
|
* @throws ApiError
|
|
2102
2326
|
*/
|
|
2103
|
-
public static propertyControllerGetAll(
|
|
2104
|
-
data: PropertyControllerGetAllData
|
|
2105
|
-
): CancelablePromise<PropertyControllerGetAllResponse> {
|
|
2327
|
+
public static propertyControllerGetAll(): CancelablePromise<PropertyControllerGetAllResponse> {
|
|
2106
2328
|
return __request(OpenAPI, {
|
|
2107
2329
|
method: 'GET',
|
|
2108
2330
|
url: '/api/v1/admin/properties',
|
|
2109
|
-
path: {
|
|
2110
|
-
region: data.region
|
|
2111
|
-
},
|
|
2112
2331
|
errors: {
|
|
2113
2332
|
401: 'Unauthorized',
|
|
2114
2333
|
403: 'Forbidden - insufficient permissions'
|
|
@@ -2120,7 +2339,6 @@ export class PropertiesService {
|
|
|
2120
2339
|
* Get property by key
|
|
2121
2340
|
* @param data The data for the request.
|
|
2122
2341
|
* @param data.key Property key
|
|
2123
|
-
* @param data.region Region code (cn, us, de)
|
|
2124
2342
|
* @returns unknown Property retrieved successfully
|
|
2125
2343
|
* @throws ApiError
|
|
2126
2344
|
*/
|
|
@@ -2131,8 +2349,7 @@ export class PropertiesService {
|
|
|
2131
2349
|
method: 'GET',
|
|
2132
2350
|
url: '/api/v1/admin/properties/{key}',
|
|
2133
2351
|
path: {
|
|
2134
|
-
key: data.key
|
|
2135
|
-
region: data.region
|
|
2352
|
+
key: data.key
|
|
2136
2353
|
},
|
|
2137
2354
|
errors: {
|
|
2138
2355
|
401: 'Unauthorized',
|
|
@@ -2143,48 +2360,77 @@ export class PropertiesService {
|
|
|
2143
2360
|
}
|
|
2144
2361
|
|
|
2145
2362
|
/**
|
|
2363
|
+
* Update a system property
|
|
2146
2364
|
* @param data The data for the request.
|
|
2147
|
-
* @param data.
|
|
2148
|
-
* @
|
|
2365
|
+
* @param data.key Property key
|
|
2366
|
+
* @param data.requestBody
|
|
2367
|
+
* @returns unknown Property updated successfully
|
|
2149
2368
|
* @throws ApiError
|
|
2150
2369
|
*/
|
|
2151
|
-
public static
|
|
2152
|
-
data:
|
|
2153
|
-
): CancelablePromise<
|
|
2370
|
+
public static propertyControllerUpdate(
|
|
2371
|
+
data: PropertyControllerUpdateData
|
|
2372
|
+
): CancelablePromise<PropertyControllerUpdateResponse> {
|
|
2154
2373
|
return __request(OpenAPI, {
|
|
2155
2374
|
method: 'PUT',
|
|
2156
2375
|
url: '/api/v1/admin/properties/{key}',
|
|
2157
2376
|
path: {
|
|
2158
|
-
|
|
2377
|
+
key: data.key
|
|
2378
|
+
},
|
|
2379
|
+
body: data.requestBody,
|
|
2380
|
+
mediaType: 'application/json',
|
|
2381
|
+
errors: {
|
|
2382
|
+
401: 'Unauthorized',
|
|
2383
|
+
403: 'Forbidden - insufficient permissions'
|
|
2159
2384
|
}
|
|
2160
2385
|
});
|
|
2161
2386
|
}
|
|
2162
2387
|
|
|
2163
2388
|
/**
|
|
2389
|
+
* Delete a system property
|
|
2164
2390
|
* @param data The data for the request.
|
|
2165
|
-
* @param data.
|
|
2166
|
-
* @returns void
|
|
2391
|
+
* @param data.key Property key
|
|
2392
|
+
* @returns void Property deleted successfully
|
|
2167
2393
|
* @throws ApiError
|
|
2168
2394
|
*/
|
|
2169
|
-
public static
|
|
2170
|
-
data:
|
|
2171
|
-
): CancelablePromise<
|
|
2395
|
+
public static propertyControllerDelete(
|
|
2396
|
+
data: PropertyControllerDeleteData
|
|
2397
|
+
): CancelablePromise<PropertyControllerDeleteResponse> {
|
|
2172
2398
|
return __request(OpenAPI, {
|
|
2173
2399
|
method: 'DELETE',
|
|
2174
2400
|
url: '/api/v1/admin/properties/{key}',
|
|
2175
2401
|
path: {
|
|
2176
|
-
|
|
2402
|
+
key: data.key
|
|
2403
|
+
},
|
|
2404
|
+
errors: {
|
|
2405
|
+
401: 'Unauthorized',
|
|
2406
|
+
403: 'Forbidden - insufficient permissions',
|
|
2407
|
+
404: 'Property not found'
|
|
2177
2408
|
}
|
|
2178
2409
|
});
|
|
2179
2410
|
}
|
|
2180
2411
|
}
|
|
2181
2412
|
|
|
2413
|
+
export class BeanExportService {
|
|
2414
|
+
/**
|
|
2415
|
+
* Export Beancount ledger as ZIP
|
|
2416
|
+
* Export all user Beancount data as a ZIP file containing ledger.beancount and yearly files in community format.
|
|
2417
|
+
* @returns unknown
|
|
2418
|
+
* @throws ApiError
|
|
2419
|
+
*/
|
|
2420
|
+
public static exportControllerExportBeancount(): CancelablePromise<ExportControllerExportBeancountResponse> {
|
|
2421
|
+
return __request(OpenAPI, {
|
|
2422
|
+
method: 'GET',
|
|
2423
|
+
url: '/api/v1/{region}/bean/export/beancount'
|
|
2424
|
+
});
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2182
2428
|
export class BeanImportService {
|
|
2183
2429
|
/**
|
|
2184
2430
|
* Import a bill file
|
|
2185
2431
|
* 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).
|
|
2186
2432
|
* @param data The data for the request.
|
|
2187
|
-
* @param data.region Region code
|
|
2433
|
+
* @param data.region Region code for tenant context
|
|
2188
2434
|
* @param data.formData Bill file to import
|
|
2189
2435
|
* @returns ImportResultDto File imported successfully
|
|
2190
2436
|
* @throws ApiError
|
|
@@ -2213,7 +2459,7 @@ export class BeanImportService {
|
|
|
2213
2459
|
* Identify file type
|
|
2214
2460
|
* 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.
|
|
2215
2461
|
* @param data The data for the request.
|
|
2216
|
-
* @param data.region Region code
|
|
2462
|
+
* @param data.region Region code for tenant context
|
|
2217
2463
|
* @param data.formData File to identify
|
|
2218
2464
|
* @returns IdentifyResultDto File identification result
|
|
2219
2465
|
* @throws ApiError
|
|
@@ -2235,12 +2481,38 @@ export class BeanImportService {
|
|
|
2235
2481
|
});
|
|
2236
2482
|
}
|
|
2237
2483
|
|
|
2484
|
+
/**
|
|
2485
|
+
* Import a Beancount file in community format
|
|
2486
|
+
* 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.
|
|
2487
|
+
* @param data The data for the request.
|
|
2488
|
+
* @param data.region Region code for tenant context
|
|
2489
|
+
* @param data.formData Beancount file to import
|
|
2490
|
+
* @returns unknown Beancount file imported successfully
|
|
2491
|
+
* @throws ApiError
|
|
2492
|
+
*/
|
|
2493
|
+
public static fileImportControllerImportBeancount(
|
|
2494
|
+
data: FileImportControllerImportBeancountData
|
|
2495
|
+
): CancelablePromise<FileImportControllerImportBeancountResponse> {
|
|
2496
|
+
return __request(OpenAPI, {
|
|
2497
|
+
method: 'POST',
|
|
2498
|
+
url: '/api/v1/{region}/bean/import/beancount',
|
|
2499
|
+
path: {
|
|
2500
|
+
region: data.region
|
|
2501
|
+
},
|
|
2502
|
+
formData: data.formData,
|
|
2503
|
+
mediaType: 'multipart/form-data',
|
|
2504
|
+
errors: {
|
|
2505
|
+
400: 'Bad request - invalid file or no file uploaded'
|
|
2506
|
+
}
|
|
2507
|
+
});
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2238
2510
|
/**
|
|
2239
2511
|
* Get importer configuration
|
|
2240
2512
|
* Returns the current configuration for the specified importer. Creates default configuration if none exists.
|
|
2241
2513
|
* @param data The data for the request.
|
|
2242
|
-
* @param data.importerId Importer identifier. Supported importers: alipay, alipay-web, wechat, boc, boc-credit, ccb, cmb, cmbc, cmbc-credit, icbc, icbc-credit, hsbc-hk
|
|
2243
|
-
* @param data.region Region code
|
|
2514
|
+
* @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
|
|
2515
|
+
* @param data.region Region code for tenant context
|
|
2244
2516
|
* @returns ImporterConfigDto Configuration retrieved successfully
|
|
2245
2517
|
* @throws ApiError
|
|
2246
2518
|
*/
|
|
@@ -2262,37 +2534,170 @@ export class BeanImportService {
|
|
|
2262
2534
|
}
|
|
2263
2535
|
|
|
2264
2536
|
/**
|
|
2537
|
+
* Update importer configuration
|
|
2538
|
+
* Updates the configuration for the specified importer. Partial updates are supported.
|
|
2265
2539
|
* @param data The data for the request.
|
|
2266
|
-
* @param data.
|
|
2267
|
-
* @
|
|
2540
|
+
* @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
|
|
2541
|
+
* @param data.region Region code for tenant context
|
|
2542
|
+
* @param data.requestBody Partial configuration update. Only provided fields will be updated.
|
|
2543
|
+
* @returns ImporterConfigDto Configuration updated successfully
|
|
2268
2544
|
* @throws ApiError
|
|
2269
2545
|
*/
|
|
2270
|
-
public static
|
|
2271
|
-
data:
|
|
2272
|
-
): CancelablePromise<
|
|
2546
|
+
public static importerConfigControllerUpdateConfig(
|
|
2547
|
+
data: ImporterConfigControllerUpdateConfigData
|
|
2548
|
+
): CancelablePromise<ImporterConfigControllerUpdateConfigResponse> {
|
|
2273
2549
|
return __request(OpenAPI, {
|
|
2274
2550
|
method: 'PUT',
|
|
2275
2551
|
url: '/api/v1/{region}/bean/import/config/{importerId}',
|
|
2276
2552
|
path: {
|
|
2553
|
+
importerId: data.importerId,
|
|
2277
2554
|
region: data.region
|
|
2555
|
+
},
|
|
2556
|
+
body: data.requestBody,
|
|
2557
|
+
mediaType: 'application/json',
|
|
2558
|
+
errors: {
|
|
2559
|
+
400: 'Invalid input - Validation failed',
|
|
2560
|
+
404: 'Configuration not found'
|
|
2278
2561
|
}
|
|
2279
2562
|
});
|
|
2280
2563
|
}
|
|
2281
2564
|
|
|
2282
2565
|
/**
|
|
2566
|
+
* Reset configuration to default
|
|
2567
|
+
* Resets the configuration for the specified importer to default values. This operation overwrites all existing configuration.
|
|
2283
2568
|
* @param data The data for the request.
|
|
2284
|
-
* @param data.
|
|
2285
|
-
* @
|
|
2569
|
+
* @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
|
|
2570
|
+
* @param data.region Region code for tenant context
|
|
2571
|
+
* @returns ImporterConfigDto Configuration reset successfully
|
|
2286
2572
|
* @throws ApiError
|
|
2287
2573
|
*/
|
|
2288
|
-
public static
|
|
2289
|
-
data:
|
|
2290
|
-
): CancelablePromise<
|
|
2574
|
+
public static importerConfigControllerResetConfig(
|
|
2575
|
+
data: ImporterConfigControllerResetConfigData
|
|
2576
|
+
): CancelablePromise<ImporterConfigControllerResetConfigResponse> {
|
|
2291
2577
|
return __request(OpenAPI, {
|
|
2292
2578
|
method: 'POST',
|
|
2293
2579
|
url: '/api/v1/{region}/bean/import/config/{importerId}/reset',
|
|
2294
2580
|
path: {
|
|
2581
|
+
importerId: data.importerId,
|
|
2295
2582
|
region: data.region
|
|
2583
|
+
},
|
|
2584
|
+
errors: {
|
|
2585
|
+
400: 'Invalid input - Unsupported importer'
|
|
2586
|
+
}
|
|
2587
|
+
});
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
export class BeanPlatformsService {
|
|
2592
|
+
/**
|
|
2593
|
+
* Get all platforms with statistics
|
|
2594
|
+
* @returns unknown List of platforms with binding and account counts
|
|
2595
|
+
* @throws ApiError
|
|
2596
|
+
*/
|
|
2597
|
+
public static platformControllerFindAll(): CancelablePromise<PlatformControllerFindAllResponse> {
|
|
2598
|
+
return __request(OpenAPI, {
|
|
2599
|
+
method: 'GET',
|
|
2600
|
+
url: '/api/v1/bean/platforms'
|
|
2601
|
+
});
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
/**
|
|
2605
|
+
* Create a new platform
|
|
2606
|
+
* @param data The data for the request.
|
|
2607
|
+
* @param data.requestBody
|
|
2608
|
+
* @returns unknown Platform created successfully
|
|
2609
|
+
* @throws ApiError
|
|
2610
|
+
*/
|
|
2611
|
+
public static platformControllerCreate(
|
|
2612
|
+
data: PlatformControllerCreateData
|
|
2613
|
+
): CancelablePromise<PlatformControllerCreateResponse> {
|
|
2614
|
+
return __request(OpenAPI, {
|
|
2615
|
+
method: 'POST',
|
|
2616
|
+
url: '/api/v1/bean/platforms',
|
|
2617
|
+
body: data.requestBody,
|
|
2618
|
+
mediaType: 'application/json',
|
|
2619
|
+
errors: {
|
|
2620
|
+
409: 'Platform already exists'
|
|
2621
|
+
}
|
|
2622
|
+
});
|
|
2623
|
+
}
|
|
2624
|
+
|
|
2625
|
+
/**
|
|
2626
|
+
* Get platform list for current user
|
|
2627
|
+
* @returns unknown List of platforms with user binding status
|
|
2628
|
+
* @throws ApiError
|
|
2629
|
+
*/
|
|
2630
|
+
public static platformControllerGetPlatformList(): CancelablePromise<PlatformControllerGetPlatformListResponse> {
|
|
2631
|
+
return __request(OpenAPI, {
|
|
2632
|
+
method: 'GET',
|
|
2633
|
+
url: '/api/v1/bean/platforms/list'
|
|
2634
|
+
});
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
/**
|
|
2638
|
+
* Match platforms by name or alias
|
|
2639
|
+
* @param data The data for the request.
|
|
2640
|
+
* @param data.q Search query — Chinese name, English name, or abbreviation
|
|
2641
|
+
* @param data.region Region code for category override lookup
|
|
2642
|
+
* @returns unknown List of matching platforms with suggested segment names
|
|
2643
|
+
* @throws ApiError
|
|
2644
|
+
*/
|
|
2645
|
+
public static platformControllerMatchPlatforms(
|
|
2646
|
+
data: PlatformControllerMatchPlatformsData
|
|
2647
|
+
): CancelablePromise<PlatformControllerMatchPlatformsResponse> {
|
|
2648
|
+
return __request(OpenAPI, {
|
|
2649
|
+
method: 'GET',
|
|
2650
|
+
url: '/api/v1/bean/platforms/match',
|
|
2651
|
+
query: {
|
|
2652
|
+
q: data.q,
|
|
2653
|
+
region: data.region
|
|
2654
|
+
}
|
|
2655
|
+
});
|
|
2656
|
+
}
|
|
2657
|
+
|
|
2658
|
+
/**
|
|
2659
|
+
* Update a platform
|
|
2660
|
+
* @param data The data for the request.
|
|
2661
|
+
* @param data.id Platform ID
|
|
2662
|
+
* @param data.requestBody
|
|
2663
|
+
* @returns unknown Platform updated successfully
|
|
2664
|
+
* @throws ApiError
|
|
2665
|
+
*/
|
|
2666
|
+
public static platformControllerUpdate(
|
|
2667
|
+
data: PlatformControllerUpdateData
|
|
2668
|
+
): CancelablePromise<PlatformControllerUpdateResponse> {
|
|
2669
|
+
return __request(OpenAPI, {
|
|
2670
|
+
method: 'PUT',
|
|
2671
|
+
url: '/api/v1/bean/platforms/{id}',
|
|
2672
|
+
path: {
|
|
2673
|
+
id: data.id
|
|
2674
|
+
},
|
|
2675
|
+
body: data.requestBody,
|
|
2676
|
+
mediaType: 'application/json',
|
|
2677
|
+
errors: {
|
|
2678
|
+
404: 'Platform not found'
|
|
2679
|
+
}
|
|
2680
|
+
});
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2683
|
+
/**
|
|
2684
|
+
* Delete a platform
|
|
2685
|
+
* @param data The data for the request.
|
|
2686
|
+
* @param data.id Platform ID
|
|
2687
|
+
* @returns void Platform deleted successfully
|
|
2688
|
+
* @throws ApiError
|
|
2689
|
+
*/
|
|
2690
|
+
public static platformControllerDelete(
|
|
2691
|
+
data: PlatformControllerDeleteData
|
|
2692
|
+
): CancelablePromise<PlatformControllerDeleteResponse> {
|
|
2693
|
+
return __request(OpenAPI, {
|
|
2694
|
+
method: 'DELETE',
|
|
2695
|
+
url: '/api/v1/bean/platforms/{id}',
|
|
2696
|
+
path: {
|
|
2697
|
+
id: data.id
|
|
2698
|
+
},
|
|
2699
|
+
errors: {
|
|
2700
|
+
404: 'Platform not found'
|
|
2296
2701
|
}
|
|
2297
2702
|
});
|
|
2298
2703
|
}
|
|
@@ -2353,7 +2758,7 @@ export class ProviderSyncService {
|
|
|
2353
2758
|
* Get supported providers
|
|
2354
2759
|
* Returns a list of all providers supported by the sync endpoint.
|
|
2355
2760
|
* @param data The data for the request.
|
|
2356
|
-
* @param data.region Region code
|
|
2761
|
+
* @param data.region Region code for tenant context
|
|
2357
2762
|
* @returns SupportedProvidersResponseDto List of supported providers
|
|
2358
2763
|
* @throws ApiError
|
|
2359
2764
|
*/
|
|
@@ -2377,7 +2782,7 @@ export class ProviderSyncService {
|
|
|
2377
2782
|
* Returns whether a specific provider is supported.
|
|
2378
2783
|
* @param data The data for the request.
|
|
2379
2784
|
* @param data.providerName Provider name to check
|
|
2380
|
-
* @param data.region Region code
|
|
2785
|
+
* @param data.region Region code for tenant context
|
|
2381
2786
|
* @returns unknown Provider support status
|
|
2382
2787
|
* @throws ApiError
|
|
2383
2788
|
*/
|
|
@@ -2402,7 +2807,7 @@ export class ImportTelemetryService {
|
|
|
2402
2807
|
/**
|
|
2403
2808
|
* Receive anonymous parser failure telemetry
|
|
2404
2809
|
* @param data The data for the request.
|
|
2405
|
-
* @param data.region Region code
|
|
2810
|
+
* @param data.region Region code for tenant context
|
|
2406
2811
|
* @param data.requestBody
|
|
2407
2812
|
* @returns unknown Telemetry report received
|
|
2408
2813
|
* @throws ApiError
|
|
@@ -2430,7 +2835,7 @@ export class BeanNlpService {
|
|
|
2430
2835
|
* Process natural language input
|
|
2431
2836
|
* 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"
|
|
2432
2837
|
* @param data The data for the request.
|
|
2433
|
-
* @param data.region Region code
|
|
2838
|
+
* @param data.region Region code for tenant context
|
|
2434
2839
|
* @param data.requestBody Natural language transaction input with optional session ID
|
|
2435
2840
|
* @returns NlpResponseDto NLP processing result - either created transaction or asking for more info
|
|
2436
2841
|
* @throws ApiError
|
|
@@ -2457,7 +2862,7 @@ export class BeanNlpService {
|
|
|
2457
2862
|
* Clear dialogue session
|
|
2458
2863
|
* Clear the current NLP dialogue session. Use this to cancel an ongoing multi-turn dialogue.
|
|
2459
2864
|
* @param data The data for the request.
|
|
2460
|
-
* @param data.region Region code
|
|
2865
|
+
* @param data.region Region code for tenant context
|
|
2461
2866
|
* @param data.sessionId Specific session ID to clear (defaults to user session)
|
|
2462
2867
|
* @returns void Session cleared successfully
|
|
2463
2868
|
* @throws ApiError
|
|
@@ -2484,7 +2889,7 @@ export class BeanNlpService {
|
|
|
2484
2889
|
* Get current session state
|
|
2485
2890
|
* Get the current NLP dialogue session state. Useful for debugging and displaying session context in UI.
|
|
2486
2891
|
* @param data The data for the request.
|
|
2487
|
-
* @param data.region Region code
|
|
2892
|
+
* @param data.region Region code for tenant context
|
|
2488
2893
|
* @param data.sessionId Specific session ID to get (defaults to user session)
|
|
2489
2894
|
* @returns unknown Current session state (or null if no active session)
|
|
2490
2895
|
* @throws ApiError
|
|
@@ -2508,243 +2913,12 @@ export class BeanNlpService {
|
|
|
2508
2913
|
}
|
|
2509
2914
|
}
|
|
2510
2915
|
|
|
2511
|
-
export class BeanPlatformsService {
|
|
2512
|
-
/**
|
|
2513
|
-
* Get all platforms with statistics
|
|
2514
|
-
* @param data The data for the request.
|
|
2515
|
-
* @param data.region Region code (cn, us, de)
|
|
2516
|
-
* @returns unknown List of platforms with binding and account counts
|
|
2517
|
-
* @throws ApiError
|
|
2518
|
-
*/
|
|
2519
|
-
public static platformControllerFindAll(
|
|
2520
|
-
data: PlatformControllerFindAllData
|
|
2521
|
-
): CancelablePromise<PlatformControllerFindAllResponse> {
|
|
2522
|
-
return __request(OpenAPI, {
|
|
2523
|
-
method: 'GET',
|
|
2524
|
-
url: '/api/v1/bean/platforms',
|
|
2525
|
-
path: {
|
|
2526
|
-
region: data.region
|
|
2527
|
-
}
|
|
2528
|
-
});
|
|
2529
|
-
}
|
|
2530
|
-
|
|
2531
|
-
/**
|
|
2532
|
-
* @param data The data for the request.
|
|
2533
|
-
* @param data.region Region code (cn, us, de)
|
|
2534
|
-
* @returns unknown
|
|
2535
|
-
* @throws ApiError
|
|
2536
|
-
*/
|
|
2537
|
-
public static platformController(
|
|
2538
|
-
data: PlatformControllerData
|
|
2539
|
-
): CancelablePromise<PlatformControllerResponse> {
|
|
2540
|
-
return __request(OpenAPI, {
|
|
2541
|
-
method: 'POST',
|
|
2542
|
-
url: '/api/v1/bean/platforms',
|
|
2543
|
-
path: {
|
|
2544
|
-
region: data.region
|
|
2545
|
-
}
|
|
2546
|
-
});
|
|
2547
|
-
}
|
|
2548
|
-
|
|
2549
|
-
/**
|
|
2550
|
-
* Get platform list for current user
|
|
2551
|
-
* @param data The data for the request.
|
|
2552
|
-
* @param data.region Region code (cn, us, de)
|
|
2553
|
-
* @returns unknown List of platforms with user binding status
|
|
2554
|
-
* @throws ApiError
|
|
2555
|
-
*/
|
|
2556
|
-
public static platformControllerGetPlatformList(
|
|
2557
|
-
data: PlatformControllerGetPlatformListData
|
|
2558
|
-
): CancelablePromise<PlatformControllerGetPlatformListResponse> {
|
|
2559
|
-
return __request(OpenAPI, {
|
|
2560
|
-
method: 'GET',
|
|
2561
|
-
url: '/api/v1/bean/platforms/list',
|
|
2562
|
-
path: {
|
|
2563
|
-
region: data.region
|
|
2564
|
-
}
|
|
2565
|
-
});
|
|
2566
|
-
}
|
|
2567
|
-
|
|
2568
|
-
/**
|
|
2569
|
-
* @param data The data for the request.
|
|
2570
|
-
* @param data.region Region code (cn, us, de)
|
|
2571
|
-
* @returns unknown
|
|
2572
|
-
* @throws ApiError
|
|
2573
|
-
*/
|
|
2574
|
-
public static platformController1(
|
|
2575
|
-
data: PlatformController1Data
|
|
2576
|
-
): CancelablePromise<PlatformController1Response> {
|
|
2577
|
-
return __request(OpenAPI, {
|
|
2578
|
-
method: 'PUT',
|
|
2579
|
-
url: '/api/v1/bean/platforms/{id}',
|
|
2580
|
-
path: {
|
|
2581
|
-
region: data.region
|
|
2582
|
-
}
|
|
2583
|
-
});
|
|
2584
|
-
}
|
|
2585
|
-
|
|
2586
|
-
/**
|
|
2587
|
-
* @param data The data for the request.
|
|
2588
|
-
* @param data.region Region code (cn, us, de)
|
|
2589
|
-
* @returns void
|
|
2590
|
-
* @throws ApiError
|
|
2591
|
-
*/
|
|
2592
|
-
public static platformController2(
|
|
2593
|
-
data: PlatformController2Data
|
|
2594
|
-
): CancelablePromise<PlatformController2Response> {
|
|
2595
|
-
return __request(OpenAPI, {
|
|
2596
|
-
method: 'DELETE',
|
|
2597
|
-
url: '/api/v1/bean/platforms/{id}',
|
|
2598
|
-
path: {
|
|
2599
|
-
region: data.region
|
|
2600
|
-
}
|
|
2601
|
-
});
|
|
2602
|
-
}
|
|
2603
|
-
}
|
|
2604
|
-
|
|
2605
|
-
export class SymbolsService {
|
|
2606
|
-
/**
|
|
2607
|
-
* Search for symbols
|
|
2608
|
-
* Search symbols by query with optional filters for asset class, area, and indices
|
|
2609
|
-
* @param data The data for the request.
|
|
2610
|
-
* @param data.region Region code (cn, us, de)
|
|
2611
|
-
* @param data.includeIndices Include index symbols in results
|
|
2612
|
-
* @param data.assetSubClass Asset sub-class filter
|
|
2613
|
-
* @param data.assetClass Asset class filter
|
|
2614
|
-
* @param data.area Geographic area filter (e.g., CN, US)
|
|
2615
|
-
* @param data.query Search query string
|
|
2616
|
-
* @returns unknown Symbols found successfully
|
|
2617
|
-
* @throws ApiError
|
|
2618
|
-
*/
|
|
2619
|
-
public static symbolControllerLookupSymbol(
|
|
2620
|
-
data: SymbolControllerLookupSymbolData
|
|
2621
|
-
): CancelablePromise<SymbolControllerLookupSymbolResponse> {
|
|
2622
|
-
return __request(OpenAPI, {
|
|
2623
|
-
method: 'GET',
|
|
2624
|
-
url: '/api/v1/market/symbols/lookup',
|
|
2625
|
-
path: {
|
|
2626
|
-
region: data.region
|
|
2627
|
-
},
|
|
2628
|
-
query: {
|
|
2629
|
-
includeIndices: data.includeIndices,
|
|
2630
|
-
assetSubClass: data.assetSubClass,
|
|
2631
|
-
assetClass: data.assetClass,
|
|
2632
|
-
area: data.area,
|
|
2633
|
-
query: data.query
|
|
2634
|
-
},
|
|
2635
|
-
errors: {
|
|
2636
|
-
400: 'Invalid query parameters'
|
|
2637
|
-
}
|
|
2638
|
-
});
|
|
2639
|
-
}
|
|
2640
|
-
|
|
2641
|
-
/**
|
|
2642
|
-
* Get symbol data
|
|
2643
|
-
* Retrieve detailed symbol information including optional historical data
|
|
2644
|
-
* @param data The data for the request.
|
|
2645
|
-
* @param data.dataSource Data source provider
|
|
2646
|
-
* @param data.symbol Symbol identifier (e.g., ticker code)
|
|
2647
|
-
* @param data.region Region code (cn, us, de)
|
|
2648
|
-
* @param data.includeHistoricalData Include historical price data (0 or 1)
|
|
2649
|
-
* @returns unknown Symbol data retrieved successfully
|
|
2650
|
-
* @throws ApiError
|
|
2651
|
-
*/
|
|
2652
|
-
public static symbolControllerGetSymbolData(
|
|
2653
|
-
data: SymbolControllerGetSymbolDataData
|
|
2654
|
-
): CancelablePromise<SymbolControllerGetSymbolDataResponse> {
|
|
2655
|
-
return __request(OpenAPI, {
|
|
2656
|
-
method: 'GET',
|
|
2657
|
-
url: '/api/v1/market/symbols/{dataSource}/{symbol}',
|
|
2658
|
-
path: {
|
|
2659
|
-
dataSource: data.dataSource,
|
|
2660
|
-
symbol: data.symbol,
|
|
2661
|
-
region: data.region
|
|
2662
|
-
},
|
|
2663
|
-
query: {
|
|
2664
|
-
includeHistoricalData: data.includeHistoricalData
|
|
2665
|
-
},
|
|
2666
|
-
errors: {
|
|
2667
|
-
400: 'Invalid data source',
|
|
2668
|
-
404: 'Symbol not found'
|
|
2669
|
-
}
|
|
2670
|
-
});
|
|
2671
|
-
}
|
|
2672
|
-
|
|
2673
|
-
/**
|
|
2674
|
-
* Gather symbol data for specific date
|
|
2675
|
-
* Retrieve historical symbol data for a specific date
|
|
2676
|
-
* @param data The data for the request.
|
|
2677
|
-
* @param data.dataSource Data source provider
|
|
2678
|
-
* @param data.dateString Date in ISO 8601 format (YYYY-MM-DD)
|
|
2679
|
-
* @param data.symbol Symbol identifier (e.g., ticker code)
|
|
2680
|
-
* @param data.region Region code (cn, us, de)
|
|
2681
|
-
* @returns unknown Historical data retrieved successfully
|
|
2682
|
-
* @throws ApiError
|
|
2683
|
-
*/
|
|
2684
|
-
public static symbolControllerGatherSymbolForDate(
|
|
2685
|
-
data: SymbolControllerGatherSymbolForDateData
|
|
2686
|
-
): CancelablePromise<SymbolControllerGatherSymbolForDateResponse> {
|
|
2687
|
-
return __request(OpenAPI, {
|
|
2688
|
-
method: 'GET',
|
|
2689
|
-
url: '/api/v1/market/symbols/{dataSource}/{symbol}/{dateString}',
|
|
2690
|
-
path: {
|
|
2691
|
-
dataSource: data.dataSource,
|
|
2692
|
-
dateString: data.dateString,
|
|
2693
|
-
symbol: data.symbol,
|
|
2694
|
-
region: data.region
|
|
2695
|
-
},
|
|
2696
|
-
errors: {
|
|
2697
|
-
400: 'Invalid date format',
|
|
2698
|
-
404: 'Symbol data not found for specified date'
|
|
2699
|
-
}
|
|
2700
|
-
});
|
|
2701
|
-
}
|
|
2702
|
-
|
|
2703
|
-
/**
|
|
2704
|
-
* @param data The data for the request.
|
|
2705
|
-
* @param data.region Region code (cn, us, de)
|
|
2706
|
-
* @returns unknown
|
|
2707
|
-
* @throws ApiError
|
|
2708
|
-
*/
|
|
2709
|
-
public static symbolController(
|
|
2710
|
-
data: SymbolControllerData
|
|
2711
|
-
): CancelablePromise<SymbolControllerResponse> {
|
|
2712
|
-
return __request(OpenAPI, {
|
|
2713
|
-
method: 'PUT',
|
|
2714
|
-
url: '/api/v1/market/symbols/yahoo/batch-update',
|
|
2715
|
-
path: {
|
|
2716
|
-
region: data.region
|
|
2717
|
-
}
|
|
2718
|
-
});
|
|
2719
|
-
}
|
|
2720
|
-
}
|
|
2721
|
-
|
|
2722
|
-
export class DefaultService {
|
|
2723
|
-
/**
|
|
2724
|
-
* @param data The data for the request.
|
|
2725
|
-
* @param data.region Region code (cn, us, de)
|
|
2726
|
-
* @returns unknown
|
|
2727
|
-
* @throws ApiError
|
|
2728
|
-
*/
|
|
2729
|
-
public static cacheControllerFlushCache(
|
|
2730
|
-
data: CacheControllerFlushCacheData
|
|
2731
|
-
): CancelablePromise<CacheControllerFlushCacheResponse> {
|
|
2732
|
-
return __request(OpenAPI, {
|
|
2733
|
-
method: 'POST',
|
|
2734
|
-
url: '/api/v1/cache/flush',
|
|
2735
|
-
path: {
|
|
2736
|
-
region: data.region
|
|
2737
|
-
}
|
|
2738
|
-
});
|
|
2739
|
-
}
|
|
2740
|
-
}
|
|
2741
|
-
|
|
2742
2916
|
export class DashboardService {
|
|
2743
2917
|
/**
|
|
2744
2918
|
* Get net worth overview
|
|
2745
2919
|
* Returns total net worth with breakdown of assets and liabilities
|
|
2746
2920
|
* @param data The data for the request.
|
|
2747
|
-
* @param data.region Region code
|
|
2921
|
+
* @param data.region Region code for tenant context
|
|
2748
2922
|
* @param data.date Date for balance calculation (ISO 8601 format)
|
|
2749
2923
|
* @returns NetWorthResponseDto Net worth retrieved successfully
|
|
2750
2924
|
* @throws ApiError
|
|
@@ -2771,7 +2945,7 @@ export class DashboardService {
|
|
|
2771
2945
|
* Get accounts grouped by platform
|
|
2772
2946
|
* Returns accounts with balances grouped by financial platform
|
|
2773
2947
|
* @param data The data for the request.
|
|
2774
|
-
* @param data.region Region code
|
|
2948
|
+
* @param data.region Region code for tenant context
|
|
2775
2949
|
* @param data.groupBy Grouping strategy
|
|
2776
2950
|
* @param data.date Date for balance calculation (ISO 8601 format)
|
|
2777
2951
|
* @returns unknown Accounts retrieved successfully. Response type depends on groupBy parameter.
|
|
@@ -2801,7 +2975,7 @@ export class DashboardService {
|
|
|
2801
2975
|
* Returns income, expenses, and savings for a monthly period
|
|
2802
2976
|
* @param data The data for the request.
|
|
2803
2977
|
* @param data.period Period in YYYY-MM format
|
|
2804
|
-
* @param data.region Region code
|
|
2978
|
+
* @param data.region Region code for tenant context
|
|
2805
2979
|
* @returns CashFlowResponseDto Cash flow retrieved successfully
|
|
2806
2980
|
* @throws ApiError
|
|
2807
2981
|
*/
|
|
@@ -2841,7 +3015,7 @@ export class ReportingService {
|
|
|
2841
3015
|
* - `granularity`: Data granularity (day, week, month)
|
|
2842
3016
|
*
|
|
2843
3017
|
* @param data The data for the request.
|
|
2844
|
-
* @param data.region Region code
|
|
3018
|
+
* @param data.region Region code for tenant context
|
|
2845
3019
|
* @param data.period Time period
|
|
2846
3020
|
* @param data.granularity Data granularity
|
|
2847
3021
|
* @returns PortfolioTrendsResponseDto Trends retrieved successfully
|
|
@@ -2882,7 +3056,7 @@ export class ReportingService {
|
|
|
2882
3056
|
* - Initial setup for new users
|
|
2883
3057
|
*
|
|
2884
3058
|
* @param data The data for the request.
|
|
2885
|
-
* @param data.region Region code
|
|
3059
|
+
* @param data.region Region code for tenant context
|
|
2886
3060
|
* @param data.requestBody Optional date (defaults to today)
|
|
2887
3061
|
* @returns GenerateSnapshotResponse Snapshot generated successfully
|
|
2888
3062
|
* @throws ApiError
|
|
@@ -2921,7 +3095,7 @@ export class ReportingService {
|
|
|
2921
3095
|
* - Existing snapshots are skipped (not regenerated)
|
|
2922
3096
|
*
|
|
2923
3097
|
* @param data The data for the request.
|
|
2924
|
-
* @param data.region Region code
|
|
3098
|
+
* @param data.region Region code for tenant context
|
|
2925
3099
|
* @param data.requestBody
|
|
2926
3100
|
* @returns BackfillSnapshotsResponse Backfill completed successfully
|
|
2927
3101
|
* @throws ApiError
|
|
@@ -2948,19 +3122,17 @@ export class ReportingService {
|
|
|
2948
3122
|
|
|
2949
3123
|
export class ApiKeysService {
|
|
2950
3124
|
/**
|
|
2951
|
-
*
|
|
2952
|
-
*
|
|
2953
|
-
* @returns unknown
|
|
3125
|
+
* Create API key
|
|
3126
|
+
* Generates a new API key for the authenticated user
|
|
3127
|
+
* @returns unknown API key created successfully
|
|
2954
3128
|
* @throws ApiError
|
|
2955
3129
|
*/
|
|
2956
|
-
public static
|
|
2957
|
-
data: ApiKeysControllerData
|
|
2958
|
-
): CancelablePromise<ApiKeysControllerResponse> {
|
|
3130
|
+
public static apiKeysControllerCreateApiKey(): CancelablePromise<ApiKeysControllerCreateApiKeyResponse> {
|
|
2959
3131
|
return __request(OpenAPI, {
|
|
2960
3132
|
method: 'POST',
|
|
2961
3133
|
url: '/api/v1/auth/api-keys',
|
|
2962
|
-
|
|
2963
|
-
|
|
3134
|
+
errors: {
|
|
3135
|
+
403: 'Insufficient permissions to create API key'
|
|
2964
3136
|
}
|
|
2965
3137
|
});
|
|
2966
3138
|
}
|
|
@@ -2970,7 +3142,6 @@ export class AuthService {
|
|
|
2970
3142
|
/**
|
|
2971
3143
|
* Anonymous login with access token
|
|
2972
3144
|
* @param data The data for the request.
|
|
2973
|
-
* @param data.region Region code (cn, us, de)
|
|
2974
3145
|
* @param data.requestBody
|
|
2975
3146
|
* @returns unknown Login successful
|
|
2976
3147
|
* @throws ApiError
|
|
@@ -2981,9 +3152,6 @@ export class AuthService {
|
|
|
2981
3152
|
return __request(OpenAPI, {
|
|
2982
3153
|
method: 'POST',
|
|
2983
3154
|
url: '/api/v1/auth/sessions/anonymous',
|
|
2984
|
-
path: {
|
|
2985
|
-
region: data.region
|
|
2986
|
-
},
|
|
2987
3155
|
body: data.requestBody,
|
|
2988
3156
|
mediaType: 'application/json',
|
|
2989
3157
|
errors: {
|
|
@@ -2993,6 +3161,19 @@ export class AuthService {
|
|
|
2993
3161
|
}
|
|
2994
3162
|
}
|
|
2995
3163
|
|
|
3164
|
+
export class DefaultService {
|
|
3165
|
+
/**
|
|
3166
|
+
* @returns unknown
|
|
3167
|
+
* @throws ApiError
|
|
3168
|
+
*/
|
|
3169
|
+
public static cacheControllerFlushCache(): CancelablePromise<CacheControllerFlushCacheResponse> {
|
|
3170
|
+
return __request(OpenAPI, {
|
|
3171
|
+
method: 'POST',
|
|
3172
|
+
url: '/api/v1/cache/flush'
|
|
3173
|
+
});
|
|
3174
|
+
}
|
|
3175
|
+
}
|
|
3176
|
+
|
|
2996
3177
|
export class ExchangeRateService {
|
|
2997
3178
|
/**
|
|
2998
3179
|
* Get exchange rate for currency pair
|
|
@@ -3000,7 +3181,6 @@ export class ExchangeRateService {
|
|
|
3000
3181
|
* @param data The data for the request.
|
|
3001
3182
|
* @param data.symbol Currency pair symbol (e.g., USDCNY, EURUSD)
|
|
3002
3183
|
* @param data.dateString Date in ISO format (YYYY-MM-DD)
|
|
3003
|
-
* @param data.region Region code (cn, us, de)
|
|
3004
3184
|
* @returns unknown Exchange rate retrieved successfully
|
|
3005
3185
|
* @throws ApiError
|
|
3006
3186
|
*/
|
|
@@ -3012,8 +3192,7 @@ export class ExchangeRateService {
|
|
|
3012
3192
|
url: '/api/v1/market/exchange-rates/{symbol}/{dateString}',
|
|
3013
3193
|
path: {
|
|
3014
3194
|
symbol: data.symbol,
|
|
3015
|
-
dateString: data.dateString
|
|
3016
|
-
region: data.region
|
|
3195
|
+
dateString: data.dateString
|
|
3017
3196
|
},
|
|
3018
3197
|
errors: {
|
|
3019
3198
|
404: 'Exchange rate not found for the specified currency pair and date'
|
|
@@ -3025,20 +3204,13 @@ export class ExchangeRateService {
|
|
|
3025
3204
|
export class HealthService {
|
|
3026
3205
|
/**
|
|
3027
3206
|
* Basic health check for K8s/load balancer probes
|
|
3028
|
-
* @param data The data for the request.
|
|
3029
|
-
* @param data.region Region code (cn, us, de)
|
|
3030
3207
|
* @returns unknown Service is healthy
|
|
3031
3208
|
* @throws ApiError
|
|
3032
3209
|
*/
|
|
3033
|
-
public static healthControllerGetHealth(
|
|
3034
|
-
data: HealthControllerGetHealthData
|
|
3035
|
-
): CancelablePromise<HealthControllerGetHealthResponse> {
|
|
3210
|
+
public static healthControllerGetHealth(): CancelablePromise<HealthControllerGetHealthResponse> {
|
|
3036
3211
|
return __request(OpenAPI, {
|
|
3037
3212
|
method: 'GET',
|
|
3038
3213
|
url: '/api/v1/health',
|
|
3039
|
-
path: {
|
|
3040
|
-
region: data.region
|
|
3041
|
-
},
|
|
3042
3214
|
errors: {
|
|
3043
3215
|
503: 'Service unavailable'
|
|
3044
3216
|
}
|
|
@@ -3047,42 +3219,43 @@ export class HealthService {
|
|
|
3047
3219
|
|
|
3048
3220
|
/**
|
|
3049
3221
|
* Check database connection health
|
|
3050
|
-
* @param data The data for the request.
|
|
3051
|
-
* @param data.region Region code (cn, us, de)
|
|
3052
3222
|
* @returns unknown Database is healthy
|
|
3053
3223
|
* @throws ApiError
|
|
3054
3224
|
*/
|
|
3055
|
-
public static healthControllerCheckDatabase(
|
|
3056
|
-
data: HealthControllerCheckDatabaseData
|
|
3057
|
-
): CancelablePromise<HealthControllerCheckDatabaseResponse> {
|
|
3225
|
+
public static healthControllerCheckDatabase(): CancelablePromise<HealthControllerCheckDatabaseResponse> {
|
|
3058
3226
|
return __request(OpenAPI, {
|
|
3059
3227
|
method: 'GET',
|
|
3060
3228
|
url: '/api/v1/health/database',
|
|
3061
|
-
path: {
|
|
3062
|
-
region: data.region
|
|
3063
|
-
},
|
|
3064
3229
|
errors: {
|
|
3065
3230
|
503: 'Database unavailable'
|
|
3066
3231
|
}
|
|
3067
3232
|
});
|
|
3068
3233
|
}
|
|
3069
3234
|
|
|
3235
|
+
/**
|
|
3236
|
+
* Check OpenBB schema status
|
|
3237
|
+
* @returns unknown OpenBB status
|
|
3238
|
+
* @throws ApiError
|
|
3239
|
+
*/
|
|
3240
|
+
public static healthControllerCheckOpenBb(): CancelablePromise<HealthControllerCheckOpenBbResponse> {
|
|
3241
|
+
return __request(OpenAPI, {
|
|
3242
|
+
method: 'GET',
|
|
3243
|
+
url: '/api/v1/health/openbb',
|
|
3244
|
+
errors: {
|
|
3245
|
+
503: 'OpenBB unavailable'
|
|
3246
|
+
}
|
|
3247
|
+
});
|
|
3248
|
+
}
|
|
3249
|
+
|
|
3070
3250
|
/**
|
|
3071
3251
|
* Check Redis connection health
|
|
3072
|
-
* @param data The data for the request.
|
|
3073
|
-
* @param data.region Region code (cn, us, de)
|
|
3074
3252
|
* @returns unknown Redis is healthy
|
|
3075
3253
|
* @throws ApiError
|
|
3076
3254
|
*/
|
|
3077
|
-
public static healthControllerCheckRedis(
|
|
3078
|
-
data: HealthControllerCheckRedisData
|
|
3079
|
-
): CancelablePromise<HealthControllerCheckRedisResponse> {
|
|
3255
|
+
public static healthControllerCheckRedis(): CancelablePromise<HealthControllerCheckRedisResponse> {
|
|
3080
3256
|
return __request(OpenAPI, {
|
|
3081
3257
|
method: 'GET',
|
|
3082
3258
|
url: '/api/v1/health/redis',
|
|
3083
|
-
path: {
|
|
3084
|
-
region: data.region
|
|
3085
|
-
},
|
|
3086
3259
|
errors: {
|
|
3087
3260
|
503: 'Redis unavailable'
|
|
3088
3261
|
}
|
|
@@ -3091,20 +3264,13 @@ export class HealthService {
|
|
|
3091
3264
|
|
|
3092
3265
|
/**
|
|
3093
3266
|
* Get status of all circuit breakers
|
|
3094
|
-
* @param data The data for the request.
|
|
3095
|
-
* @param data.region Region code (cn, us, de)
|
|
3096
3267
|
* @returns unknown Circuit breaker status
|
|
3097
3268
|
* @throws ApiError
|
|
3098
3269
|
*/
|
|
3099
|
-
public static healthControllerGetCircuitBreakersHealth(
|
|
3100
|
-
data: HealthControllerGetCircuitBreakersHealthData
|
|
3101
|
-
): CancelablePromise<HealthControllerGetCircuitBreakersHealthResponse> {
|
|
3270
|
+
public static healthControllerGetCircuitBreakersHealth(): CancelablePromise<HealthControllerGetCircuitBreakersHealthResponse> {
|
|
3102
3271
|
return __request(OpenAPI, {
|
|
3103
3272
|
method: 'GET',
|
|
3104
3273
|
url: '/api/v1/health/circuit-breakers',
|
|
3105
|
-
path: {
|
|
3106
|
-
region: data.region
|
|
3107
|
-
},
|
|
3108
3274
|
errors: {
|
|
3109
3275
|
401: 'Unauthorized',
|
|
3110
3276
|
500: 'Internal error'
|
|
@@ -3116,7 +3282,6 @@ export class HealthService {
|
|
|
3116
3282
|
* Reset a circuit breaker to CLOSED state
|
|
3117
3283
|
* @param data The data for the request.
|
|
3118
3284
|
* @param data.name Circuit breaker name to reset
|
|
3119
|
-
* @param data.region Region code (cn, us, de)
|
|
3120
3285
|
* @returns unknown Circuit breaker reset successfully
|
|
3121
3286
|
* @throws ApiError
|
|
3122
3287
|
*/
|
|
@@ -3127,8 +3292,7 @@ export class HealthService {
|
|
|
3127
3292
|
method: 'POST',
|
|
3128
3293
|
url: '/api/v1/health/circuit-breakers/{name}/reset',
|
|
3129
3294
|
path: {
|
|
3130
|
-
name: data.name
|
|
3131
|
-
region: data.region
|
|
3295
|
+
name: data.name
|
|
3132
3296
|
},
|
|
3133
3297
|
errors: {
|
|
3134
3298
|
401: 'Unauthorized',
|
|
@@ -3139,223 +3303,30 @@ export class HealthService {
|
|
|
3139
3303
|
|
|
3140
3304
|
/**
|
|
3141
3305
|
* Get health check metrics and statistics
|
|
3142
|
-
* @param data The data for the request.
|
|
3143
|
-
* @param data.region Region code (cn, us, de)
|
|
3144
3306
|
* @returns unknown Health metrics
|
|
3145
3307
|
* @throws ApiError
|
|
3146
3308
|
*/
|
|
3147
|
-
public static healthControllerGetMetrics(
|
|
3148
|
-
data: HealthControllerGetMetricsData
|
|
3149
|
-
): CancelablePromise<HealthControllerGetMetricsResponse> {
|
|
3309
|
+
public static healthControllerGetMetrics(): CancelablePromise<HealthControllerGetMetricsResponse> {
|
|
3150
3310
|
return __request(OpenAPI, {
|
|
3151
3311
|
method: 'GET',
|
|
3152
3312
|
url: '/api/v1/health/metrics',
|
|
3153
|
-
path: {
|
|
3154
|
-
region: data.region
|
|
3155
|
-
},
|
|
3156
3313
|
errors: {
|
|
3157
3314
|
401: 'Unauthorized'
|
|
3158
3315
|
}
|
|
3159
3316
|
});
|
|
3160
3317
|
}
|
|
3161
|
-
|
|
3162
|
-
/**
|
|
3163
|
-
* Check health of a specific data enhancer
|
|
3164
|
-
* @param data The data for the request.
|
|
3165
|
-
* @param data.name Data enhancer name
|
|
3166
|
-
* @param data.region Region code (cn, us, de)
|
|
3167
|
-
* @returns unknown Data enhancer is healthy
|
|
3168
|
-
* @throws ApiError
|
|
3169
|
-
*/
|
|
3170
|
-
public static healthControllerGetHealthOfDataEnhancer(
|
|
3171
|
-
data: HealthControllerGetHealthOfDataEnhancerData
|
|
3172
|
-
): CancelablePromise<HealthControllerGetHealthOfDataEnhancerResponse> {
|
|
3173
|
-
return __request(OpenAPI, {
|
|
3174
|
-
method: 'GET',
|
|
3175
|
-
url: '/api/v1/health/data-enhancer/{name}',
|
|
3176
|
-
path: {
|
|
3177
|
-
name: data.name,
|
|
3178
|
-
region: data.region
|
|
3179
|
-
},
|
|
3180
|
-
errors: {
|
|
3181
|
-
401: 'Unauthorized',
|
|
3182
|
-
503: 'Data enhancer unavailable'
|
|
3183
|
-
}
|
|
3184
|
-
});
|
|
3185
|
-
}
|
|
3186
|
-
|
|
3187
|
-
/**
|
|
3188
|
-
* Check health of all data providers
|
|
3189
|
-
* @param data The data for the request.
|
|
3190
|
-
* @param data.region Region code (cn, us, de)
|
|
3191
|
-
* @returns unknown Data providers health status
|
|
3192
|
-
* @throws ApiError
|
|
3193
|
-
*/
|
|
3194
|
-
public static healthControllerCheckDataProviders(
|
|
3195
|
-
data: HealthControllerCheckDataProvidersData
|
|
3196
|
-
): CancelablePromise<HealthControllerCheckDataProvidersResponse> {
|
|
3197
|
-
return __request(OpenAPI, {
|
|
3198
|
-
method: 'GET',
|
|
3199
|
-
url: '/api/v1/health/data-providers',
|
|
3200
|
-
path: {
|
|
3201
|
-
region: data.region
|
|
3202
|
-
},
|
|
3203
|
-
errors: {
|
|
3204
|
-
401: 'Unauthorized',
|
|
3205
|
-
503: 'Data providers check failed'
|
|
3206
|
-
}
|
|
3207
|
-
});
|
|
3208
|
-
}
|
|
3209
|
-
|
|
3210
|
-
/**
|
|
3211
|
-
* Check health of a specific data provider
|
|
3212
|
-
* @param data The data for the request.
|
|
3213
|
-
* @param data.dataSource Data source identifier
|
|
3214
|
-
* @param data.region Region code (cn, us, de)
|
|
3215
|
-
* @returns unknown Data provider is healthy
|
|
3216
|
-
* @throws ApiError
|
|
3217
|
-
*/
|
|
3218
|
-
public static healthControllerGetHealthOfDataProvider(
|
|
3219
|
-
data: HealthControllerGetHealthOfDataProviderData
|
|
3220
|
-
): CancelablePromise<HealthControllerGetHealthOfDataProviderResponse> {
|
|
3221
|
-
return __request(OpenAPI, {
|
|
3222
|
-
method: 'GET',
|
|
3223
|
-
url: '/api/v1/health/data-provider/{dataSource}',
|
|
3224
|
-
path: {
|
|
3225
|
-
dataSource: data.dataSource,
|
|
3226
|
-
region: data.region
|
|
3227
|
-
},
|
|
3228
|
-
errors: {
|
|
3229
|
-
400: 'Invalid data source',
|
|
3230
|
-
401: 'Unauthorized',
|
|
3231
|
-
503: 'Data provider unavailable'
|
|
3232
|
-
}
|
|
3233
|
-
});
|
|
3234
|
-
}
|
|
3235
3318
|
}
|
|
3236
3319
|
|
|
3237
3320
|
export class InfoService {
|
|
3238
3321
|
/**
|
|
3239
3322
|
* Get system information
|
|
3240
|
-
* @param data The data for the request.
|
|
3241
|
-
* @param data.region Region code (cn, us, de)
|
|
3242
3323
|
* @returns unknown System information retrieved successfully
|
|
3243
3324
|
* @throws ApiError
|
|
3244
3325
|
*/
|
|
3245
|
-
public static infoControllerGetInfo(
|
|
3246
|
-
data: InfoControllerGetInfoData
|
|
3247
|
-
): CancelablePromise<InfoControllerGetInfoResponse> {
|
|
3326
|
+
public static infoControllerGetInfo(): CancelablePromise<InfoControllerGetInfoResponse> {
|
|
3248
3327
|
return __request(OpenAPI, {
|
|
3249
3328
|
method: 'GET',
|
|
3250
|
-
url: '/api/v1/system/info'
|
|
3251
|
-
path: {
|
|
3252
|
-
region: data.region
|
|
3253
|
-
}
|
|
3254
|
-
});
|
|
3255
|
-
}
|
|
3256
|
-
}
|
|
3257
|
-
|
|
3258
|
-
export class LogosService {
|
|
3259
|
-
/**
|
|
3260
|
-
* Get asset logo by data source and symbol
|
|
3261
|
-
* @param data The data for the request.
|
|
3262
|
-
* @param data.dataSource Data source identifier (e.g., YAHOO, COINGECKO)
|
|
3263
|
-
* @param data.symbol Asset symbol (e.g., AAPL, BTC)
|
|
3264
|
-
* @param data.region Region code (cn, us, de)
|
|
3265
|
-
* @returns unknown Logo image stream (favicon)
|
|
3266
|
-
* @throws ApiError
|
|
3267
|
-
*/
|
|
3268
|
-
public static logoControllerGetLogoByDataSourceAndSymbol(
|
|
3269
|
-
data: LogoControllerGetLogoByDataSourceAndSymbolData
|
|
3270
|
-
): CancelablePromise<LogoControllerGetLogoByDataSourceAndSymbolResponse> {
|
|
3271
|
-
return __request(OpenAPI, {
|
|
3272
|
-
method: 'GET',
|
|
3273
|
-
url: '/api/v1/market/logos/{dataSource}/{symbol}',
|
|
3274
|
-
path: {
|
|
3275
|
-
dataSource: data.dataSource,
|
|
3276
|
-
symbol: data.symbol,
|
|
3277
|
-
region: data.region
|
|
3278
|
-
},
|
|
3279
|
-
errors: {
|
|
3280
|
-
401: 'Unauthorized',
|
|
3281
|
-
404: 'Logo not found for the specified asset',
|
|
3282
|
-
503: 'Service unavailable'
|
|
3283
|
-
}
|
|
3284
|
-
});
|
|
3285
|
-
}
|
|
3286
|
-
|
|
3287
|
-
/**
|
|
3288
|
-
* Get website favicon by URL
|
|
3289
|
-
* @param data The data for the request.
|
|
3290
|
-
* @param data.url Website URL to fetch favicon from
|
|
3291
|
-
* @param data.region Region code (cn, us, de)
|
|
3292
|
-
* @returns unknown Logo image stream (favicon)
|
|
3293
|
-
* @throws ApiError
|
|
3294
|
-
*/
|
|
3295
|
-
public static logoControllerGetLogoByUrl(
|
|
3296
|
-
data: LogoControllerGetLogoByUrlData
|
|
3297
|
-
): CancelablePromise<LogoControllerGetLogoByUrlResponse> {
|
|
3298
|
-
return __request(OpenAPI, {
|
|
3299
|
-
method: 'GET',
|
|
3300
|
-
url: '/api/v1/market/logos',
|
|
3301
|
-
path: {
|
|
3302
|
-
region: data.region
|
|
3303
|
-
},
|
|
3304
|
-
query: {
|
|
3305
|
-
url: data.url
|
|
3306
|
-
},
|
|
3307
|
-
errors: {
|
|
3308
|
-
401: 'Unauthorized',
|
|
3309
|
-
503: 'Service unavailable'
|
|
3310
|
-
}
|
|
3311
|
-
});
|
|
3312
|
-
}
|
|
3313
|
-
}
|
|
3314
|
-
|
|
3315
|
-
export class MarketDataService {
|
|
3316
|
-
/**
|
|
3317
|
-
* Get market data by symbol
|
|
3318
|
-
* Retrieves market data and asset profile for a given symbol and data source
|
|
3319
|
-
* @param data The data for the request.
|
|
3320
|
-
* @param data.dataSource Data source provider
|
|
3321
|
-
* @param data.symbol Symbol code
|
|
3322
|
-
* @param data.region Region code (cn, us, de)
|
|
3323
|
-
* @returns unknown Market data retrieved successfully
|
|
3324
|
-
* @throws ApiError
|
|
3325
|
-
*/
|
|
3326
|
-
public static marketDataControllerGetMarketDataBySymbol(
|
|
3327
|
-
data: MarketDataControllerGetMarketDataBySymbolData
|
|
3328
|
-
): CancelablePromise<MarketDataControllerGetMarketDataBySymbolResponse> {
|
|
3329
|
-
return __request(OpenAPI, {
|
|
3330
|
-
method: 'GET',
|
|
3331
|
-
url: '/api/v1/market-data/{dataSource}/{symbol}',
|
|
3332
|
-
path: {
|
|
3333
|
-
dataSource: data.dataSource,
|
|
3334
|
-
symbol: data.symbol,
|
|
3335
|
-
region: data.region
|
|
3336
|
-
},
|
|
3337
|
-
errors: {
|
|
3338
|
-
403: 'Insufficient permissions to read market data',
|
|
3339
|
-
404: 'Market data not found'
|
|
3340
|
-
}
|
|
3341
|
-
});
|
|
3342
|
-
}
|
|
3343
|
-
|
|
3344
|
-
/**
|
|
3345
|
-
* @param data The data for the request.
|
|
3346
|
-
* @param data.region Region code (cn, us, de)
|
|
3347
|
-
* @returns unknown
|
|
3348
|
-
* @throws ApiError
|
|
3349
|
-
*/
|
|
3350
|
-
public static marketDataController(
|
|
3351
|
-
data: MarketDataControllerData
|
|
3352
|
-
): CancelablePromise<MarketDataControllerResponse> {
|
|
3353
|
-
return __request(OpenAPI, {
|
|
3354
|
-
method: 'POST',
|
|
3355
|
-
url: '/api/v1/market-data/{dataSource}/{symbol}',
|
|
3356
|
-
path: {
|
|
3357
|
-
region: data.region
|
|
3358
|
-
}
|
|
3329
|
+
url: '/api/v1/system/info'
|
|
3359
3330
|
});
|
|
3360
3331
|
}
|
|
3361
3332
|
}
|