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