@firela/api-types 0.0.0-canary.61d59b77 → 0.0.0-canary.6226daa
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 +2866 -2008
- package/dist/index.d.ts +2866 -2008
- package/dist/index.js +8 -6
- package/dist/index.mjs +8 -6
- package/package.json +1 -1
- package/src/generated/schemas.gen.ts +3530 -2211
- package/src/generated/services.gen.ts +1186 -946
- package/src/generated/types.gen.ts +24278 -2424
|
@@ -57,6 +57,48 @@ import type {
|
|
|
57
57
|
ReviewControllerUndoResponse,
|
|
58
58
|
ReviewControllerBatchResolveData,
|
|
59
59
|
ReviewControllerBatchResolveResponse,
|
|
60
|
+
TransactionRuleControllerCreateData,
|
|
61
|
+
TransactionRuleControllerCreateResponse,
|
|
62
|
+
TransactionRuleControllerListData,
|
|
63
|
+
TransactionRuleControllerListResponse,
|
|
64
|
+
TransactionRuleControllerValidateData,
|
|
65
|
+
TransactionRuleControllerValidateResponse,
|
|
66
|
+
TransactionRuleControllerBulkCreateData,
|
|
67
|
+
TransactionRuleControllerBulkCreateResponse,
|
|
68
|
+
TransactionRuleControllerExportData,
|
|
69
|
+
TransactionRuleControllerExportResponse,
|
|
70
|
+
TransactionRuleControllerGetStatisticsData,
|
|
71
|
+
TransactionRuleControllerGetStatisticsResponse,
|
|
72
|
+
TransactionRuleControllerGetDetailData,
|
|
73
|
+
TransactionRuleControllerGetDetailResponse,
|
|
74
|
+
TransactionRuleControllerUpdateData,
|
|
75
|
+
TransactionRuleControllerUpdateResponse,
|
|
76
|
+
TransactionRuleControllerDeleteData,
|
|
77
|
+
TransactionRuleControllerDeleteResponse,
|
|
78
|
+
TransactionRuleControllerTestData,
|
|
79
|
+
TransactionRuleControllerTestResponse,
|
|
80
|
+
UserControllerDeleteOwnUserData,
|
|
81
|
+
UserControllerDeleteOwnUserResponse,
|
|
82
|
+
UserControllerGetUserData,
|
|
83
|
+
UserControllerGetUserResponse,
|
|
84
|
+
UserControllerSignupUserData,
|
|
85
|
+
UserControllerSignupUserResponse,
|
|
86
|
+
UserControllerDeleteUserData,
|
|
87
|
+
UserControllerDeleteUserResponse,
|
|
88
|
+
UserControllerGetUserInfoData,
|
|
89
|
+
UserControllerGetUserInfoResponse,
|
|
90
|
+
UserControllerUpdateUserSettingData,
|
|
91
|
+
UserControllerUpdateUserSettingResponse,
|
|
92
|
+
UserControllerGetAllUserSettingsByPageData,
|
|
93
|
+
UserControllerGetAllUserSettingsByPageResponse,
|
|
94
|
+
UserControllerGetAssetLiabilitySummaryResponse,
|
|
95
|
+
PropertyControllerGetAllResponse,
|
|
96
|
+
PropertyControllerGetByKeyData,
|
|
97
|
+
PropertyControllerGetByKeyResponse,
|
|
98
|
+
PropertyControllerUpdateData,
|
|
99
|
+
PropertyControllerUpdateResponse,
|
|
100
|
+
PropertyControllerDeleteData,
|
|
101
|
+
PropertyControllerDeleteResponse,
|
|
60
102
|
PayeeControllerCreateData,
|
|
61
103
|
PayeeControllerCreateResponse,
|
|
62
104
|
PayeeControllerFindAllData,
|
|
@@ -85,6 +127,7 @@ import type {
|
|
|
85
127
|
PayeeProfileAdminControllerVerifyResponse,
|
|
86
128
|
PayeeProfileAdminControllerUnverifyData,
|
|
87
129
|
PayeeProfileAdminControllerUnverifyResponse,
|
|
130
|
+
PayeeProfileControllerListActiveResponse,
|
|
88
131
|
CommodityControllerCreateData,
|
|
89
132
|
CommodityControllerCreateResponse,
|
|
90
133
|
CommodityControllerFindAllData,
|
|
@@ -99,6 +142,14 @@ import type {
|
|
|
99
142
|
CommodityControllerGetOrCreateResponse,
|
|
100
143
|
CommodityControllerBulkCreateData,
|
|
101
144
|
CommodityControllerBulkCreateResponse,
|
|
145
|
+
ReportingControllerGetPortfolioTrendsData,
|
|
146
|
+
ReportingControllerGetPortfolioTrendsResponse,
|
|
147
|
+
ReportingControllerGetCashFlowTrendsData,
|
|
148
|
+
ReportingControllerGetCashFlowTrendsResponse,
|
|
149
|
+
ReportingControllerGenerateSnapshotData,
|
|
150
|
+
ReportingControllerGenerateSnapshotResponse,
|
|
151
|
+
ReportingControllerBackfillSnapshotsData,
|
|
152
|
+
ReportingControllerBackfillSnapshotsResponse,
|
|
102
153
|
PriceControllerCreateData,
|
|
103
154
|
PriceControllerCreateResponse,
|
|
104
155
|
PriceControllerFindAllData,
|
|
@@ -143,56 +194,8 @@ import type {
|
|
|
143
194
|
ExpectedTransactionControllerEnterNowResponse,
|
|
144
195
|
ForecastControllerGetForecastData,
|
|
145
196
|
ForecastControllerGetForecastResponse,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
ReportingControllerGetCashFlowTrendsData,
|
|
149
|
-
ReportingControllerGetCashFlowTrendsResponse,
|
|
150
|
-
ReportingControllerGenerateSnapshotData,
|
|
151
|
-
ReportingControllerGenerateSnapshotResponse,
|
|
152
|
-
ReportingControllerBackfillSnapshotsData,
|
|
153
|
-
ReportingControllerBackfillSnapshotsResponse,
|
|
154
|
-
UserControllerDeleteOwnUserData,
|
|
155
|
-
UserControllerDeleteOwnUserResponse,
|
|
156
|
-
UserControllerGetUserData,
|
|
157
|
-
UserControllerGetUserResponse,
|
|
158
|
-
UserControllerSignupUserData,
|
|
159
|
-
UserControllerSignupUserResponse,
|
|
160
|
-
UserControllerDeleteUserData,
|
|
161
|
-
UserControllerDeleteUserResponse,
|
|
162
|
-
UserControllerGetUserInfoData,
|
|
163
|
-
UserControllerGetUserInfoResponse,
|
|
164
|
-
UserControllerUpdateUserSettingData,
|
|
165
|
-
UserControllerUpdateUserSettingResponse,
|
|
166
|
-
UserControllerGetAllUserSettingsByPageData,
|
|
167
|
-
UserControllerGetAllUserSettingsByPageResponse,
|
|
168
|
-
UserControllerGetAssetLiabilitySummaryResponse,
|
|
169
|
-
PropertyControllerGetAllResponse,
|
|
170
|
-
PropertyControllerGetByKeyData,
|
|
171
|
-
PropertyControllerGetByKeyResponse,
|
|
172
|
-
PropertyControllerUpdateData,
|
|
173
|
-
PropertyControllerUpdateResponse,
|
|
174
|
-
PropertyControllerDeleteData,
|
|
175
|
-
PropertyControllerDeleteResponse,
|
|
176
|
-
TransactionRuleControllerCreateData,
|
|
177
|
-
TransactionRuleControllerCreateResponse,
|
|
178
|
-
TransactionRuleControllerListData,
|
|
179
|
-
TransactionRuleControllerListResponse,
|
|
180
|
-
TransactionRuleControllerValidateData,
|
|
181
|
-
TransactionRuleControllerValidateResponse,
|
|
182
|
-
TransactionRuleControllerBulkCreateData,
|
|
183
|
-
TransactionRuleControllerBulkCreateResponse,
|
|
184
|
-
TransactionRuleControllerExportData,
|
|
185
|
-
TransactionRuleControllerExportResponse,
|
|
186
|
-
TransactionRuleControllerGetStatisticsData,
|
|
187
|
-
TransactionRuleControllerGetStatisticsResponse,
|
|
188
|
-
TransactionRuleControllerGetDetailData,
|
|
189
|
-
TransactionRuleControllerGetDetailResponse,
|
|
190
|
-
TransactionRuleControllerUpdateData,
|
|
191
|
-
TransactionRuleControllerUpdateResponse,
|
|
192
|
-
TransactionRuleControllerDeleteData,
|
|
193
|
-
TransactionRuleControllerDeleteResponse,
|
|
194
|
-
TransactionRuleControllerTestData,
|
|
195
|
-
TransactionRuleControllerTestResponse,
|
|
197
|
+
CategoryCatalogControllerListData,
|
|
198
|
+
CategoryCatalogControllerListResponse,
|
|
196
199
|
EventControllerCreateData,
|
|
197
200
|
EventControllerCreateResponse,
|
|
198
201
|
EventControllerFindAllData,
|
|
@@ -215,6 +218,7 @@ import type {
|
|
|
215
218
|
ReconciliationControllerPadResponse,
|
|
216
219
|
ReconciliationControllerHistoryData,
|
|
217
220
|
ReconciliationControllerHistoryResponse,
|
|
221
|
+
ExportControllerExportBeancountData,
|
|
218
222
|
ExportControllerExportBeancountResponse,
|
|
219
223
|
FileImportControllerImportFileData,
|
|
220
224
|
FileImportControllerImportFileResponse,
|
|
@@ -257,9 +261,12 @@ import type {
|
|
|
257
261
|
PlatformControllerFindAllResponse,
|
|
258
262
|
PlatformControllerCreateData,
|
|
259
263
|
PlatformControllerCreateResponse,
|
|
264
|
+
PlatformControllerGetPlatformListData,
|
|
260
265
|
PlatformControllerGetPlatformListResponse,
|
|
261
266
|
PlatformControllerMatchPlatformsData,
|
|
262
267
|
PlatformControllerMatchPlatformsResponse,
|
|
268
|
+
PlatformControllerGetPlatformStandardsData,
|
|
269
|
+
PlatformControllerGetPlatformStandardsResponse,
|
|
263
270
|
PlatformControllerUpdateData,
|
|
264
271
|
PlatformControllerUpdateResponse,
|
|
265
272
|
PlatformControllerDeleteData,
|
|
@@ -272,11 +279,17 @@ import type {
|
|
|
272
279
|
DashboardControllerGetCashFlowResponse,
|
|
273
280
|
DashboardControllerGetExpensesData,
|
|
274
281
|
DashboardControllerGetExpensesResponse,
|
|
282
|
+
DashboardControllerGetAdvisorContextData,
|
|
283
|
+
DashboardControllerGetAdvisorContextResponse,
|
|
275
284
|
HoldingPnlControllerGetHoldingPnlData,
|
|
276
285
|
HoldingPnlControllerGetHoldingPnlResponse,
|
|
277
286
|
ApiKeysControllerCreateApiKeyResponse,
|
|
278
287
|
AuthControllerAccessTokenLoginData,
|
|
279
288
|
AuthControllerAccessTokenLoginResponse,
|
|
289
|
+
AuthControllerAdvisorTokenLoginData,
|
|
290
|
+
AuthControllerAdvisorTokenLoginResponse,
|
|
291
|
+
ParserContributionControllerCreateData,
|
|
292
|
+
ParserContributionControllerCreateResponse,
|
|
280
293
|
CacheControllerFlushCacheResponse,
|
|
281
294
|
ExchangeRateControllerGetExchangeRateData,
|
|
282
295
|
ExchangeRateControllerGetExchangeRateResponse,
|
|
@@ -288,7 +301,11 @@ import type {
|
|
|
288
301
|
HealthControllerResetCircuitBreakerData,
|
|
289
302
|
HealthControllerResetCircuitBreakerResponse,
|
|
290
303
|
HealthControllerGetMetricsResponse,
|
|
291
|
-
InfoControllerGetInfoResponse
|
|
304
|
+
InfoControllerGetInfoResponse,
|
|
305
|
+
SymbolControllerSearchData,
|
|
306
|
+
SymbolControllerSearchResponse,
|
|
307
|
+
SymbolControllerGetQuoteData,
|
|
308
|
+
SymbolControllerGetQuoteResponse
|
|
292
309
|
} from './types.gen';
|
|
293
310
|
|
|
294
311
|
export class BeanAccountsService {
|
|
@@ -326,7 +343,7 @@ export class BeanAccountsService {
|
|
|
326
343
|
* @param data.type Filter by account type
|
|
327
344
|
* @param data.status Filter by status
|
|
328
345
|
* @param data.isCustom Filter by custom (user-created) accounts only
|
|
329
|
-
* @param data.search Search term
|
|
346
|
+
* @param data.search Search term matched against account path and user-set display name (case-insensitive)
|
|
330
347
|
* @param data.limit Maximum number of results
|
|
331
348
|
* @param data.offset Number of results to skip
|
|
332
349
|
* @returns AccountListResponseDto Accounts retrieved successfully
|
|
@@ -407,7 +424,7 @@ export class BeanAccountsService {
|
|
|
407
424
|
|
|
408
425
|
/**
|
|
409
426
|
* Delete account
|
|
410
|
-
* Deletes an account (only if no transactions)
|
|
427
|
+
* Deletes an account (only if no active transactions; voided/superseded residual postings are cleaned up)
|
|
411
428
|
* @param data The data for the request.
|
|
412
429
|
* @param data.id Account UUID
|
|
413
430
|
* @param data.region Region code for tenant context
|
|
@@ -426,7 +443,7 @@ export class BeanAccountsService {
|
|
|
426
443
|
},
|
|
427
444
|
errors: {
|
|
428
445
|
404: 'Account not found',
|
|
429
|
-
409: 'Account has transactions and cannot be deleted'
|
|
446
|
+
409: 'Account has active transactions and cannot be deleted'
|
|
430
447
|
}
|
|
431
448
|
});
|
|
432
449
|
}
|
|
@@ -522,11 +539,11 @@ export class BeanAccountsService {
|
|
|
522
539
|
export class BeanAccountStandardsService {
|
|
523
540
|
/**
|
|
524
541
|
* Get account templates
|
|
525
|
-
* Returns predefined account templates for a region. Supports filtering by account type and search term.
|
|
542
|
+
* Returns predefined account templates for a region. Supports filtering by account type and search term. Not-yet-open region codes return the universal-only catalog (#759).
|
|
526
543
|
* @param data The data for the request.
|
|
527
|
-
* @param data.region Region code (
|
|
544
|
+
* @param data.region Region code (any ISO alpha-2; not-yet-open codes return the universal-only catalog)
|
|
528
545
|
* @param data.type Filter by account type
|
|
529
|
-
* @param data.search Search term for path or
|
|
546
|
+
* @param data.search Search term for path, description, aliases, or localized display name
|
|
530
547
|
* @returns AccountStandardListResponseDto Account templates retrieved successfully
|
|
531
548
|
* @throws ApiError
|
|
532
549
|
*/
|
|
@@ -550,7 +567,7 @@ export class BeanAccountStandardsService {
|
|
|
550
567
|
* Get template metadata for an account path
|
|
551
568
|
* Returns root type for a template path.
|
|
552
569
|
* @param data The data for the request.
|
|
553
|
-
* @param data.region Region code for tenant context
|
|
570
|
+
* @param data.region Region code for tenant context. Not-yet-open codes degrade to the universal-only catalog (#759)
|
|
554
571
|
* @param data.path Account path to check
|
|
555
572
|
* @returns TemplateMetadataResponseDto Template metadata retrieved successfully
|
|
556
573
|
* @throws ApiError
|
|
@@ -572,9 +589,9 @@ export class BeanAccountStandardsService {
|
|
|
572
589
|
|
|
573
590
|
/**
|
|
574
591
|
* Get available regions with hierarchy
|
|
575
|
-
* Returns
|
|
592
|
+
* Returns the full region catalog (every ISO 3166-1 entry) with an 'open' flag and inheritance metadata (#759)
|
|
576
593
|
* @param data The data for the request.
|
|
577
|
-
* @param data.region Region code for tenant context
|
|
594
|
+
* @param data.region Region code for tenant context. Not-yet-open codes degrade to the universal-only catalog (#759)
|
|
578
595
|
* @returns RegionsMetadataResponseDto Regions metadata retrieved successfully
|
|
579
596
|
* @throws ApiError
|
|
580
597
|
*/
|
|
@@ -631,10 +648,11 @@ export class BeanTransactionsService {
|
|
|
631
648
|
* @param data.offset Number of items to skip (default: 0)
|
|
632
649
|
* @param data.dateFrom Filter by start date (inclusive), format: YYYY-MM-DD
|
|
633
650
|
* @param data.dateTo Filter by end date (inclusive), format: YYYY-MM-DD
|
|
634
|
-
* @param data.status Filter by transaction status
|
|
651
|
+
* @param data.status Filter by transaction status: single value, comma-separated multi-value (e.g. VOIDED,SUPERSEDED), or ALL to include audit rows. Defaults to ACTIVE-only (ADR-0128; previously unfiltered — breaking change).
|
|
635
652
|
* @param data.search Search in narration and payee fields (max 200 chars)
|
|
636
653
|
* @param data.accountId Filter by account ID (transactions with postings to this account)
|
|
637
|
-
* @param data.category Filter by ADR-0075 functional category (Group segment); matches any posting to an
|
|
654
|
+
* @param data.category Filter by ADR-0075 functional category (Group segment); matches any posting to an account whose derived Group segment equals this value. Must be accompanied by flow (ADR-0126).
|
|
655
|
+
* @param data.flow Required when category is present (400 otherwise) and vice versa (ADR-0126). Restricts the category account set to the flow root (income → Income:, expense → Expenses:) and drives the per-leg sign normalization of row viewpointAmount and the summary. OpenAPI cannot express conditional requiredness — the pairing is enforced at runtime.
|
|
638
656
|
* @returns TransactionListResponseDto Transaction list
|
|
639
657
|
* @throws ApiError
|
|
640
658
|
*/
|
|
@@ -655,7 +673,8 @@ export class BeanTransactionsService {
|
|
|
655
673
|
status: data.status,
|
|
656
674
|
search: data.search,
|
|
657
675
|
accountId: data.accountId,
|
|
658
|
-
category: data.category
|
|
676
|
+
category: data.category,
|
|
677
|
+
flow: data.flow
|
|
659
678
|
},
|
|
660
679
|
errors: {
|
|
661
680
|
400: 'Validation failed',
|
|
@@ -1036,1126 +1055,1080 @@ export class BeanReviewsService {
|
|
|
1036
1055
|
}
|
|
1037
1056
|
}
|
|
1038
1057
|
|
|
1039
|
-
export class
|
|
1058
|
+
export class BeanTransactionRulesService {
|
|
1040
1059
|
/**
|
|
1041
|
-
* Create a new
|
|
1042
|
-
* Creates a new
|
|
1060
|
+
* Create a new transaction rule (or upsert if upsertByPayee=true)
|
|
1061
|
+
* Creates a new rule. If upsertByPayee=true, updates existing rule matching payeeKeywords[0] instead of creating duplicate.
|
|
1043
1062
|
* @param data The data for the request.
|
|
1063
|
+
* @param data.region Region code for tenant context
|
|
1044
1064
|
* @param data.requestBody
|
|
1045
|
-
* @returns
|
|
1065
|
+
* @returns TransactionRuleResponseDto Rule updated successfully (upsert mode)
|
|
1046
1066
|
* @throws ApiError
|
|
1047
1067
|
*/
|
|
1048
|
-
public static
|
|
1049
|
-
data:
|
|
1050
|
-
): CancelablePromise<
|
|
1068
|
+
public static transactionRuleControllerCreate(
|
|
1069
|
+
data: TransactionRuleControllerCreateData
|
|
1070
|
+
): CancelablePromise<TransactionRuleControllerCreateResponse> {
|
|
1051
1071
|
return __request(OpenAPI, {
|
|
1052
1072
|
method: 'POST',
|
|
1053
|
-
url: '/api/v1/bean/
|
|
1073
|
+
url: '/api/v1/{region}/bean/transaction-rules',
|
|
1074
|
+
path: {
|
|
1075
|
+
region: data.region
|
|
1076
|
+
},
|
|
1054
1077
|
body: data.requestBody,
|
|
1055
1078
|
mediaType: 'application/json',
|
|
1056
1079
|
errors: {
|
|
1057
|
-
400: '
|
|
1058
|
-
|
|
1080
|
+
400: 'Validation failed',
|
|
1081
|
+
401: 'Unauthorized',
|
|
1082
|
+
409: 'Resource conflict - another process is updating this rule'
|
|
1059
1083
|
}
|
|
1060
1084
|
});
|
|
1061
1085
|
}
|
|
1062
1086
|
|
|
1063
1087
|
/**
|
|
1064
|
-
*
|
|
1065
|
-
* Returns all payee mappings for the authenticated user with optional filtering
|
|
1088
|
+
* Get all transaction rules for user
|
|
1066
1089
|
* @param data The data for the request.
|
|
1067
|
-
* @param data.
|
|
1068
|
-
* @param data.
|
|
1069
|
-
* @param data.
|
|
1070
|
-
* @param data.
|
|
1071
|
-
* @param data.
|
|
1072
|
-
* @
|
|
1090
|
+
* @param data.region Region code for tenant context
|
|
1091
|
+
* @param data.limit Max results per page (default: 20, max: 100)
|
|
1092
|
+
* @param data.offset Pagination offset (default: 0)
|
|
1093
|
+
* @param data.enabled Filter by enabled status
|
|
1094
|
+
* @param data.learningSource Filter by learning source. Omit this parameter or pass empty string to get manually created rules (learningSource is null in database).
|
|
1095
|
+
* @param data.autoApplyEnabled Filter by auto-apply status
|
|
1096
|
+
* @returns TransactionRuleListResponseDto List of rules
|
|
1073
1097
|
* @throws ApiError
|
|
1074
1098
|
*/
|
|
1075
|
-
public static
|
|
1076
|
-
data:
|
|
1077
|
-
): CancelablePromise<
|
|
1099
|
+
public static transactionRuleControllerList(
|
|
1100
|
+
data: TransactionRuleControllerListData
|
|
1101
|
+
): CancelablePromise<TransactionRuleControllerListResponse> {
|
|
1078
1102
|
return __request(OpenAPI, {
|
|
1079
1103
|
method: 'GET',
|
|
1080
|
-
url: '/api/v1/bean/
|
|
1104
|
+
url: '/api/v1/{region}/bean/transaction-rules',
|
|
1105
|
+
path: {
|
|
1106
|
+
region: data.region
|
|
1107
|
+
},
|
|
1081
1108
|
query: {
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1109
|
+
limit: data.limit,
|
|
1110
|
+
offset: data.offset,
|
|
1111
|
+
enabled: data.enabled,
|
|
1112
|
+
learningSource: data.learningSource,
|
|
1113
|
+
autoApplyEnabled: data.autoApplyEnabled
|
|
1114
|
+
},
|
|
1115
|
+
errors: {
|
|
1116
|
+
401: 'Unauthorized'
|
|
1087
1117
|
}
|
|
1088
1118
|
});
|
|
1089
1119
|
}
|
|
1090
1120
|
|
|
1091
1121
|
/**
|
|
1092
|
-
*
|
|
1093
|
-
* Returns active payee names matching the query, sorted by recent usage. Used for transaction input autocomplete.
|
|
1122
|
+
* Validate transaction rule configuration
|
|
1094
1123
|
* @param data The data for the request.
|
|
1095
|
-
* @param data.
|
|
1096
|
-
* @param data.
|
|
1097
|
-
* @returns
|
|
1124
|
+
* @param data.region Region code for tenant context
|
|
1125
|
+
* @param data.requestBody
|
|
1126
|
+
* @returns ValidateRuleResponseDto Validation result
|
|
1098
1127
|
* @throws ApiError
|
|
1099
1128
|
*/
|
|
1100
|
-
public static
|
|
1101
|
-
data:
|
|
1102
|
-
): CancelablePromise<
|
|
1129
|
+
public static transactionRuleControllerValidate(
|
|
1130
|
+
data: TransactionRuleControllerValidateData
|
|
1131
|
+
): CancelablePromise<TransactionRuleControllerValidateResponse> {
|
|
1103
1132
|
return __request(OpenAPI, {
|
|
1104
|
-
method: '
|
|
1105
|
-
url: '/api/v1/bean/
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1133
|
+
method: 'POST',
|
|
1134
|
+
url: '/api/v1/{region}/bean/transaction-rules/validate',
|
|
1135
|
+
path: {
|
|
1136
|
+
region: data.region
|
|
1137
|
+
},
|
|
1138
|
+
body: data.requestBody,
|
|
1139
|
+
mediaType: 'application/json',
|
|
1140
|
+
errors: {
|
|
1141
|
+
400: 'Validation failed',
|
|
1142
|
+
401: 'Unauthorized'
|
|
1109
1143
|
}
|
|
1110
1144
|
});
|
|
1111
1145
|
}
|
|
1112
1146
|
|
|
1113
1147
|
/**
|
|
1114
|
-
*
|
|
1115
|
-
* Returns the most frequently used payees, sorted by use count. Used for statistics and analytics.
|
|
1148
|
+
* Bulk create transaction rules
|
|
1116
1149
|
* @param data The data for the request.
|
|
1117
|
-
* @param data.
|
|
1118
|
-
* @
|
|
1150
|
+
* @param data.region Region code for tenant context
|
|
1151
|
+
* @param data.requestBody
|
|
1152
|
+
* @returns BulkCreateRulesResponseDto Bulk create completed
|
|
1119
1153
|
* @throws ApiError
|
|
1120
1154
|
*/
|
|
1121
|
-
public static
|
|
1122
|
-
data:
|
|
1123
|
-
): CancelablePromise<
|
|
1155
|
+
public static transactionRuleControllerBulkCreate(
|
|
1156
|
+
data: TransactionRuleControllerBulkCreateData
|
|
1157
|
+
): CancelablePromise<TransactionRuleControllerBulkCreateResponse> {
|
|
1124
1158
|
return __request(OpenAPI, {
|
|
1125
|
-
method: '
|
|
1126
|
-
url: '/api/v1/bean/
|
|
1127
|
-
|
|
1128
|
-
|
|
1159
|
+
method: 'POST',
|
|
1160
|
+
url: '/api/v1/{region}/bean/transaction-rules/bulk',
|
|
1161
|
+
path: {
|
|
1162
|
+
region: data.region
|
|
1163
|
+
},
|
|
1164
|
+
body: data.requestBody,
|
|
1165
|
+
mediaType: 'application/json',
|
|
1166
|
+
errors: {
|
|
1167
|
+
400: 'Invalid bulk create data',
|
|
1168
|
+
401: 'Unauthorized'
|
|
1129
1169
|
}
|
|
1130
1170
|
});
|
|
1131
1171
|
}
|
|
1132
1172
|
|
|
1133
1173
|
/**
|
|
1134
|
-
*
|
|
1135
|
-
* Returns a specific payee mapping by its UUID
|
|
1174
|
+
* Export transaction rules
|
|
1136
1175
|
* @param data The data for the request.
|
|
1137
|
-
* @param data.
|
|
1138
|
-
* @
|
|
1176
|
+
* @param data.format Export format (currently only JSON supported)
|
|
1177
|
+
* @param data.region Region code for tenant context
|
|
1178
|
+
* @returns ExportRulesResponseDto Exported rules
|
|
1139
1179
|
* @throws ApiError
|
|
1140
1180
|
*/
|
|
1141
|
-
public static
|
|
1142
|
-
data:
|
|
1143
|
-
): CancelablePromise<
|
|
1181
|
+
public static transactionRuleControllerExport(
|
|
1182
|
+
data: TransactionRuleControllerExportData
|
|
1183
|
+
): CancelablePromise<TransactionRuleControllerExportResponse> {
|
|
1144
1184
|
return __request(OpenAPI, {
|
|
1145
1185
|
method: 'GET',
|
|
1146
|
-
url: '/api/v1/bean/
|
|
1186
|
+
url: '/api/v1/{region}/bean/transaction-rules/export/{format}',
|
|
1147
1187
|
path: {
|
|
1148
|
-
|
|
1188
|
+
format: data.format,
|
|
1189
|
+
region: data.region
|
|
1149
1190
|
},
|
|
1150
1191
|
errors: {
|
|
1151
|
-
|
|
1152
|
-
|
|
1192
|
+
400: 'Unsupported format',
|
|
1193
|
+
401: 'Unauthorized'
|
|
1153
1194
|
}
|
|
1154
1195
|
});
|
|
1155
1196
|
}
|
|
1156
1197
|
|
|
1157
1198
|
/**
|
|
1158
|
-
*
|
|
1159
|
-
* Updates a payee mapping. The payee name cannot be changed after creation.
|
|
1199
|
+
* Get transaction rule statistics
|
|
1160
1200
|
* @param data The data for the request.
|
|
1161
|
-
* @param data.
|
|
1162
|
-
* @param data.
|
|
1163
|
-
* @returns
|
|
1201
|
+
* @param data.period Statistics time period
|
|
1202
|
+
* @param data.region Region code for tenant context
|
|
1203
|
+
* @returns RuleStatisticsResponseDto Rule statistics
|
|
1164
1204
|
* @throws ApiError
|
|
1165
1205
|
*/
|
|
1166
|
-
public static
|
|
1167
|
-
data:
|
|
1168
|
-
): CancelablePromise<
|
|
1206
|
+
public static transactionRuleControllerGetStatistics(
|
|
1207
|
+
data: TransactionRuleControllerGetStatisticsData
|
|
1208
|
+
): CancelablePromise<TransactionRuleControllerGetStatisticsResponse> {
|
|
1169
1209
|
return __request(OpenAPI, {
|
|
1170
|
-
method: '
|
|
1171
|
-
url: '/api/v1/bean/
|
|
1210
|
+
method: 'GET',
|
|
1211
|
+
url: '/api/v1/{region}/bean/transaction-rules/statistics/{period}',
|
|
1172
1212
|
path: {
|
|
1173
|
-
|
|
1213
|
+
period: data.period,
|
|
1214
|
+
region: data.region
|
|
1174
1215
|
},
|
|
1175
|
-
body: data.requestBody,
|
|
1176
|
-
mediaType: 'application/json',
|
|
1177
1216
|
errors: {
|
|
1178
|
-
|
|
1179
|
-
404: 'Payee not found'
|
|
1217
|
+
401: 'Unauthorized'
|
|
1180
1218
|
}
|
|
1181
1219
|
});
|
|
1182
1220
|
}
|
|
1183
1221
|
|
|
1184
1222
|
/**
|
|
1185
|
-
*
|
|
1186
|
-
* Soft deletes a payee by marking it as inactive. Inactive payees will not appear in autocomplete suggestions.
|
|
1223
|
+
* Get transaction rule detail
|
|
1187
1224
|
* @param data The data for the request.
|
|
1188
|
-
* @param data.
|
|
1189
|
-
* @
|
|
1225
|
+
* @param data.ruleId Rule ID
|
|
1226
|
+
* @param data.region Region code for tenant context
|
|
1227
|
+
* @returns TransactionRuleResponseDto Rule details
|
|
1190
1228
|
* @throws ApiError
|
|
1191
1229
|
*/
|
|
1192
|
-
public static
|
|
1193
|
-
data:
|
|
1194
|
-
): CancelablePromise<
|
|
1230
|
+
public static transactionRuleControllerGetDetail(
|
|
1231
|
+
data: TransactionRuleControllerGetDetailData
|
|
1232
|
+
): CancelablePromise<TransactionRuleControllerGetDetailResponse> {
|
|
1195
1233
|
return __request(OpenAPI, {
|
|
1196
|
-
method: '
|
|
1197
|
-
url: '/api/v1/bean/
|
|
1234
|
+
method: 'GET',
|
|
1235
|
+
url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
|
|
1198
1236
|
path: {
|
|
1199
|
-
|
|
1237
|
+
ruleId: data.ruleId,
|
|
1238
|
+
region: data.region
|
|
1200
1239
|
},
|
|
1201
1240
|
errors: {
|
|
1202
|
-
|
|
1241
|
+
401: 'Unauthorized',
|
|
1242
|
+
403: 'Forbidden - not owner of rule',
|
|
1243
|
+
404: 'Rule not found'
|
|
1203
1244
|
}
|
|
1204
1245
|
});
|
|
1205
1246
|
}
|
|
1206
|
-
}
|
|
1207
1247
|
|
|
1208
|
-
export class AdminPayeeProfilesService {
|
|
1209
1248
|
/**
|
|
1210
|
-
*
|
|
1211
|
-
* Creates a new global payee profile. The canonical name must be unique (case-insensitive).
|
|
1249
|
+
* Update a transaction rule
|
|
1212
1250
|
* @param data The data for the request.
|
|
1251
|
+
* @param data.ruleId Rule ID to update
|
|
1252
|
+
* @param data.region Region code for tenant context
|
|
1213
1253
|
* @param data.requestBody
|
|
1214
|
-
* @returns
|
|
1254
|
+
* @returns TransactionRuleResponseDto Rule updated successfully
|
|
1215
1255
|
* @throws ApiError
|
|
1216
1256
|
*/
|
|
1217
|
-
public static
|
|
1218
|
-
data:
|
|
1219
|
-
): CancelablePromise<
|
|
1257
|
+
public static transactionRuleControllerUpdate(
|
|
1258
|
+
data: TransactionRuleControllerUpdateData
|
|
1259
|
+
): CancelablePromise<TransactionRuleControllerUpdateResponse> {
|
|
1220
1260
|
return __request(OpenAPI, {
|
|
1221
|
-
method: '
|
|
1222
|
-
url: '/api/v1/
|
|
1261
|
+
method: 'PUT',
|
|
1262
|
+
url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
|
|
1263
|
+
path: {
|
|
1264
|
+
ruleId: data.ruleId,
|
|
1265
|
+
region: data.region
|
|
1266
|
+
},
|
|
1223
1267
|
body: data.requestBody,
|
|
1224
1268
|
mediaType: 'application/json',
|
|
1225
1269
|
errors: {
|
|
1226
1270
|
400: 'Validation failed',
|
|
1227
|
-
|
|
1228
|
-
|
|
1271
|
+
401: 'Unauthorized',
|
|
1272
|
+
403: 'Forbidden - not owner of rule',
|
|
1273
|
+
404: 'Rule not found',
|
|
1274
|
+
409: 'Resource conflict - rule is being modified by another process'
|
|
1229
1275
|
}
|
|
1230
1276
|
});
|
|
1231
1277
|
}
|
|
1232
1278
|
|
|
1233
1279
|
/**
|
|
1234
|
-
*
|
|
1235
|
-
* Returns all payee profiles with optional filtering by category, country, verification status, etc.
|
|
1280
|
+
* Delete a transaction rule
|
|
1236
1281
|
* @param data The data for the request.
|
|
1237
|
-
* @param data.
|
|
1238
|
-
* @param data.
|
|
1239
|
-
* @
|
|
1240
|
-
* @param data.isActive Filter by active status (default: true - show only active)
|
|
1241
|
-
* @param data.verified Filter by verification status. true = verified only, false = unverified only
|
|
1242
|
-
* @param data.dataSource Filter by data source
|
|
1243
|
-
* @returns PayeeProfileListResponseDto Payee profiles retrieved successfully
|
|
1282
|
+
* @param data.ruleId Rule ID to delete
|
|
1283
|
+
* @param data.region Region code for tenant context
|
|
1284
|
+
* @returns void Rule deleted successfully
|
|
1244
1285
|
* @throws ApiError
|
|
1245
1286
|
*/
|
|
1246
|
-
public static
|
|
1247
|
-
data:
|
|
1248
|
-
): CancelablePromise<
|
|
1287
|
+
public static transactionRuleControllerDelete(
|
|
1288
|
+
data: TransactionRuleControllerDeleteData
|
|
1289
|
+
): CancelablePromise<TransactionRuleControllerDeleteResponse> {
|
|
1249
1290
|
return __request(OpenAPI, {
|
|
1250
|
-
method: '
|
|
1251
|
-
url: '/api/v1/
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
country: data.country,
|
|
1256
|
-
isActive: data.isActive,
|
|
1257
|
-
verified: data.verified,
|
|
1258
|
-
dataSource: data.dataSource
|
|
1291
|
+
method: 'DELETE',
|
|
1292
|
+
url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
|
|
1293
|
+
path: {
|
|
1294
|
+
ruleId: data.ruleId,
|
|
1295
|
+
region: data.region
|
|
1259
1296
|
},
|
|
1260
1297
|
errors: {
|
|
1261
|
-
|
|
1298
|
+
401: 'Unauthorized',
|
|
1299
|
+
403: 'Forbidden - not owner of rule',
|
|
1300
|
+
404: 'Rule not found',
|
|
1301
|
+
409: 'Resource conflict - rule is being modified by another process'
|
|
1262
1302
|
}
|
|
1263
1303
|
});
|
|
1264
1304
|
}
|
|
1265
1305
|
|
|
1266
1306
|
/**
|
|
1267
|
-
*
|
|
1268
|
-
* Returns a single payee profile by its ID.
|
|
1307
|
+
* Test rule matching
|
|
1269
1308
|
* @param data The data for the request.
|
|
1270
|
-
* @param data.
|
|
1271
|
-
* @
|
|
1309
|
+
* @param data.ruleId Rule ID to test
|
|
1310
|
+
* @param data.region Region code for tenant context
|
|
1311
|
+
* @param data.requestBody
|
|
1312
|
+
* @returns TestRuleResponseDto Test result
|
|
1272
1313
|
* @throws ApiError
|
|
1273
1314
|
*/
|
|
1274
|
-
public static
|
|
1275
|
-
data:
|
|
1276
|
-
): CancelablePromise<
|
|
1315
|
+
public static transactionRuleControllerTest(
|
|
1316
|
+
data: TransactionRuleControllerTestData
|
|
1317
|
+
): CancelablePromise<TransactionRuleControllerTestResponse> {
|
|
1277
1318
|
return __request(OpenAPI, {
|
|
1278
|
-
method: '
|
|
1279
|
-
url: '/api/v1/
|
|
1319
|
+
method: 'POST',
|
|
1320
|
+
url: '/api/v1/{region}/bean/transaction-rules/{ruleId}/test',
|
|
1280
1321
|
path: {
|
|
1281
|
-
|
|
1322
|
+
ruleId: data.ruleId,
|
|
1323
|
+
region: data.region
|
|
1282
1324
|
},
|
|
1325
|
+
body: data.requestBody,
|
|
1326
|
+
mediaType: 'application/json',
|
|
1283
1327
|
errors: {
|
|
1284
|
-
|
|
1285
|
-
|
|
1328
|
+
401: 'Unauthorized',
|
|
1329
|
+
403: 'Forbidden - not owner of rule',
|
|
1330
|
+
404: 'Rule not found'
|
|
1286
1331
|
}
|
|
1287
1332
|
});
|
|
1288
1333
|
}
|
|
1334
|
+
}
|
|
1289
1335
|
|
|
1336
|
+
export class UsersService {
|
|
1290
1337
|
/**
|
|
1291
|
-
*
|
|
1292
|
-
* Updates an existing payee profile. The canonical name cannot be changed.
|
|
1338
|
+
* Delete own user account
|
|
1293
1339
|
* @param data The data for the request.
|
|
1294
|
-
* @param data.id Payee profile ID (UUID)
|
|
1295
1340
|
* @param data.requestBody
|
|
1296
|
-
* @returns
|
|
1341
|
+
* @returns void User deleted successfully
|
|
1297
1342
|
* @throws ApiError
|
|
1298
1343
|
*/
|
|
1299
|
-
public static
|
|
1300
|
-
data:
|
|
1301
|
-
): CancelablePromise<
|
|
1344
|
+
public static userControllerDeleteOwnUser(
|
|
1345
|
+
data: UserControllerDeleteOwnUserData
|
|
1346
|
+
): CancelablePromise<UserControllerDeleteOwnUserResponse> {
|
|
1302
1347
|
return __request(OpenAPI, {
|
|
1303
|
-
method: '
|
|
1304
|
-
url: '/api/v1/
|
|
1305
|
-
path: {
|
|
1306
|
-
id: data.id
|
|
1307
|
-
},
|
|
1348
|
+
method: 'DELETE',
|
|
1349
|
+
url: '/api/v1/users',
|
|
1308
1350
|
body: data.requestBody,
|
|
1309
1351
|
mediaType: 'application/json',
|
|
1310
1352
|
errors: {
|
|
1311
|
-
403: '
|
|
1312
|
-
404: 'Payee profile not found'
|
|
1353
|
+
403: 'Invalid access token'
|
|
1313
1354
|
}
|
|
1314
1355
|
});
|
|
1315
1356
|
}
|
|
1316
1357
|
|
|
1317
1358
|
/**
|
|
1318
|
-
*
|
|
1319
|
-
* Marks a payee profile as inactive (soft delete). The profile cannot be deleted if it is referenced by user payees.
|
|
1359
|
+
* Get current authenticated user
|
|
1320
1360
|
* @param data The data for the request.
|
|
1321
|
-
* @param data.
|
|
1322
|
-
* @returns
|
|
1361
|
+
* @param data.acceptLanguage
|
|
1362
|
+
* @returns UserResponseDto User retrieved successfully
|
|
1323
1363
|
* @throws ApiError
|
|
1324
1364
|
*/
|
|
1325
|
-
public static
|
|
1326
|
-
data:
|
|
1327
|
-
): CancelablePromise<
|
|
1365
|
+
public static userControllerGetUser(
|
|
1366
|
+
data: UserControllerGetUserData
|
|
1367
|
+
): CancelablePromise<UserControllerGetUserResponse> {
|
|
1328
1368
|
return __request(OpenAPI, {
|
|
1329
|
-
method: '
|
|
1330
|
-
url: '/api/v1/
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
},
|
|
1334
|
-
errors: {
|
|
1335
|
-
403: 'Admin access required',
|
|
1336
|
-
404: 'Payee profile not found',
|
|
1337
|
-
409: 'Payee profile is in use and cannot be deleted'
|
|
1369
|
+
method: 'GET',
|
|
1370
|
+
url: '/api/v1/users',
|
|
1371
|
+
headers: {
|
|
1372
|
+
'accept-language': data.acceptLanguage
|
|
1338
1373
|
}
|
|
1339
1374
|
});
|
|
1340
1375
|
}
|
|
1341
1376
|
|
|
1342
1377
|
/**
|
|
1343
|
-
*
|
|
1344
|
-
*
|
|
1378
|
+
* Sign up new user
|
|
1379
|
+
* Create a new account with auto-generated access token. Protected by Cloudflare Turnstile to prevent automated signup (when enabled).
|
|
1345
1380
|
* @param data The data for the request.
|
|
1346
|
-
* @param data.
|
|
1347
|
-
* @returns
|
|
1381
|
+
* @param data.requestBody
|
|
1382
|
+
* @returns SignupResponseDto User created successfully
|
|
1348
1383
|
* @throws ApiError
|
|
1349
1384
|
*/
|
|
1350
|
-
public static
|
|
1351
|
-
data:
|
|
1352
|
-
): CancelablePromise<
|
|
1385
|
+
public static userControllerSignupUser(
|
|
1386
|
+
data: UserControllerSignupUserData
|
|
1387
|
+
): CancelablePromise<UserControllerSignupUserResponse> {
|
|
1353
1388
|
return __request(OpenAPI, {
|
|
1354
1389
|
method: 'POST',
|
|
1355
|
-
url: '/api/v1/
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
},
|
|
1390
|
+
url: '/api/v1/users',
|
|
1391
|
+
body: data.requestBody,
|
|
1392
|
+
mediaType: 'application/json',
|
|
1359
1393
|
errors: {
|
|
1360
|
-
|
|
1361
|
-
|
|
1394
|
+
400: 'Invalid Turnstile token (when Turnstile is enabled)',
|
|
1395
|
+
403: 'User signup is disabled'
|
|
1362
1396
|
}
|
|
1363
1397
|
});
|
|
1364
1398
|
}
|
|
1365
1399
|
|
|
1366
1400
|
/**
|
|
1367
|
-
*
|
|
1368
|
-
* Removes verification status by setting verifiedAt to null.
|
|
1401
|
+
* Delete user by ID (admin only)
|
|
1369
1402
|
* @param data The data for the request.
|
|
1370
|
-
* @param data.id
|
|
1371
|
-
* @returns
|
|
1403
|
+
* @param data.id User ID to delete
|
|
1404
|
+
* @returns void User deleted successfully
|
|
1372
1405
|
* @throws ApiError
|
|
1373
1406
|
*/
|
|
1374
|
-
public static
|
|
1375
|
-
data:
|
|
1376
|
-
): CancelablePromise<
|
|
1407
|
+
public static userControllerDeleteUser(
|
|
1408
|
+
data: UserControllerDeleteUserData
|
|
1409
|
+
): CancelablePromise<UserControllerDeleteUserResponse> {
|
|
1377
1410
|
return __request(OpenAPI, {
|
|
1378
1411
|
method: 'DELETE',
|
|
1379
|
-
url: '/api/v1/
|
|
1412
|
+
url: '/api/v1/users/{id}',
|
|
1380
1413
|
path: {
|
|
1381
1414
|
id: data.id
|
|
1382
1415
|
},
|
|
1383
1416
|
errors: {
|
|
1384
|
-
403: '
|
|
1385
|
-
404: 'Payee profile not found'
|
|
1417
|
+
403: 'Cannot delete own account or insufficient permissions'
|
|
1386
1418
|
}
|
|
1387
1419
|
});
|
|
1388
1420
|
}
|
|
1389
|
-
}
|
|
1390
1421
|
|
|
1391
|
-
export class BeanCommoditiesService {
|
|
1392
1422
|
/**
|
|
1393
|
-
*
|
|
1394
|
-
* Creates a new commodity definition for the authenticated user
|
|
1423
|
+
* Get user info by user ID
|
|
1395
1424
|
* @param data The data for the request.
|
|
1396
|
-
* @param data.
|
|
1397
|
-
* @
|
|
1398
|
-
* @returns CommodityResponseDto Commodity created successfully
|
|
1425
|
+
* @param data.id User ID
|
|
1426
|
+
* @returns unknown User info retrieved successfully
|
|
1399
1427
|
* @throws ApiError
|
|
1400
1428
|
*/
|
|
1401
|
-
public static
|
|
1402
|
-
data:
|
|
1403
|
-
): CancelablePromise<
|
|
1429
|
+
public static userControllerGetUserInfo(
|
|
1430
|
+
data: UserControllerGetUserInfoData
|
|
1431
|
+
): CancelablePromise<UserControllerGetUserInfoResponse> {
|
|
1404
1432
|
return __request(OpenAPI, {
|
|
1405
|
-
method: '
|
|
1406
|
-
url: '/api/v1/{
|
|
1433
|
+
method: 'GET',
|
|
1434
|
+
url: '/api/v1/users/{id}/info',
|
|
1407
1435
|
path: {
|
|
1408
|
-
|
|
1436
|
+
id: data.id
|
|
1409
1437
|
},
|
|
1410
|
-
|
|
1438
|
+
errors: {
|
|
1439
|
+
403: 'Cannot access other user info without admin permission'
|
|
1440
|
+
}
|
|
1441
|
+
});
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
/**
|
|
1445
|
+
* Update user settings
|
|
1446
|
+
* @param data The data for the request.
|
|
1447
|
+
* @param data.requestBody
|
|
1448
|
+
* @returns unknown Settings updated successfully
|
|
1449
|
+
* @throws ApiError
|
|
1450
|
+
*/
|
|
1451
|
+
public static userControllerUpdateUserSetting(
|
|
1452
|
+
data: UserControllerUpdateUserSettingData
|
|
1453
|
+
): CancelablePromise<UserControllerUpdateUserSettingResponse> {
|
|
1454
|
+
return __request(OpenAPI, {
|
|
1455
|
+
method: 'PUT',
|
|
1456
|
+
url: '/api/v1/users/setting',
|
|
1457
|
+
body: data.requestBody,
|
|
1411
1458
|
mediaType: 'application/json',
|
|
1412
1459
|
errors: {
|
|
1413
|
-
|
|
1414
|
-
409: 'Commodity already exists'
|
|
1460
|
+
403: 'Insufficient permissions'
|
|
1415
1461
|
}
|
|
1416
1462
|
});
|
|
1417
1463
|
}
|
|
1418
1464
|
|
|
1419
1465
|
/**
|
|
1420
|
-
*
|
|
1421
|
-
* Returns all commodity definitions for the authenticated user with optional filtering
|
|
1466
|
+
* Get all user settings paginated (admin only)
|
|
1422
1467
|
* @param data The data for the request.
|
|
1423
|
-
* @param data.
|
|
1424
|
-
* @param data.
|
|
1425
|
-
* @
|
|
1426
|
-
* @returns CommodityListResponseDto Commodities retrieved successfully
|
|
1468
|
+
* @param data.pageNo Page number
|
|
1469
|
+
* @param data.pageSize Page size
|
|
1470
|
+
* @returns unknown Settings list retrieved successfully
|
|
1427
1471
|
* @throws ApiError
|
|
1428
1472
|
*/
|
|
1429
|
-
public static
|
|
1430
|
-
data:
|
|
1431
|
-
): CancelablePromise<
|
|
1473
|
+
public static userControllerGetAllUserSettingsByPage(
|
|
1474
|
+
data: UserControllerGetAllUserSettingsByPageData
|
|
1475
|
+
): CancelablePromise<UserControllerGetAllUserSettingsByPageResponse> {
|
|
1432
1476
|
return __request(OpenAPI, {
|
|
1433
1477
|
method: 'GET',
|
|
1434
|
-
url: '/api/v1/
|
|
1435
|
-
path: {
|
|
1436
|
-
region: data.region
|
|
1437
|
-
},
|
|
1478
|
+
url: '/api/v1/users/settings-by-page',
|
|
1438
1479
|
query: {
|
|
1439
|
-
|
|
1440
|
-
|
|
1480
|
+
pageNo: data.pageNo,
|
|
1481
|
+
pageSize: data.pageSize
|
|
1441
1482
|
}
|
|
1442
1483
|
});
|
|
1443
1484
|
}
|
|
1444
1485
|
|
|
1445
1486
|
/**
|
|
1446
|
-
* Get
|
|
1447
|
-
*
|
|
1448
|
-
* @param data The data for the request.
|
|
1449
|
-
* @param data.symbol Commodity symbol
|
|
1450
|
-
* @param data.region Region code for tenant context
|
|
1451
|
-
* @returns CommodityResponseDto Commodity retrieved successfully
|
|
1487
|
+
* Get asset and liability summary for current user
|
|
1488
|
+
* @returns unknown Summary retrieved successfully
|
|
1452
1489
|
* @throws ApiError
|
|
1453
1490
|
*/
|
|
1454
|
-
public static
|
|
1455
|
-
data: CommodityControllerFindOneData
|
|
1456
|
-
): CancelablePromise<CommodityControllerFindOneResponse> {
|
|
1491
|
+
public static userControllerGetAssetLiabilitySummary(): CancelablePromise<UserControllerGetAssetLiabilitySummaryResponse> {
|
|
1457
1492
|
return __request(OpenAPI, {
|
|
1458
1493
|
method: 'GET',
|
|
1459
|
-
url: '/api/v1/
|
|
1460
|
-
path: {
|
|
1461
|
-
symbol: data.symbol,
|
|
1462
|
-
region: data.region
|
|
1463
|
-
},
|
|
1464
|
-
errors: {
|
|
1465
|
-
404: 'Commodity not found'
|
|
1466
|
-
}
|
|
1494
|
+
url: '/api/v1/users/asset-liability-summary'
|
|
1467
1495
|
});
|
|
1468
1496
|
}
|
|
1497
|
+
}
|
|
1469
1498
|
|
|
1499
|
+
export class PropertiesService {
|
|
1470
1500
|
/**
|
|
1471
|
-
*
|
|
1472
|
-
*
|
|
1473
|
-
* @param data The data for the request.
|
|
1474
|
-
* @param data.symbol Commodity symbol
|
|
1475
|
-
* @param data.region Region code for tenant context
|
|
1476
|
-
* @param data.requestBody
|
|
1477
|
-
* @returns CommodityResponseDto Commodity updated successfully
|
|
1501
|
+
* Get all system properties
|
|
1502
|
+
* @returns unknown Properties retrieved successfully
|
|
1478
1503
|
* @throws ApiError
|
|
1479
1504
|
*/
|
|
1480
|
-
public static
|
|
1481
|
-
data: CommodityControllerUpdateData
|
|
1482
|
-
): CancelablePromise<CommodityControllerUpdateResponse> {
|
|
1505
|
+
public static propertyControllerGetAll(): CancelablePromise<PropertyControllerGetAllResponse> {
|
|
1483
1506
|
return __request(OpenAPI, {
|
|
1484
|
-
method: '
|
|
1485
|
-
url: '/api/v1/
|
|
1486
|
-
path: {
|
|
1487
|
-
symbol: data.symbol,
|
|
1488
|
-
region: data.region
|
|
1489
|
-
},
|
|
1490
|
-
body: data.requestBody,
|
|
1491
|
-
mediaType: 'application/json',
|
|
1507
|
+
method: 'GET',
|
|
1508
|
+
url: '/api/v1/admin/properties',
|
|
1492
1509
|
errors: {
|
|
1493
|
-
|
|
1494
|
-
|
|
1510
|
+
401: 'Unauthorized',
|
|
1511
|
+
403: 'Forbidden - insufficient permissions'
|
|
1495
1512
|
}
|
|
1496
1513
|
});
|
|
1497
1514
|
}
|
|
1498
1515
|
|
|
1499
1516
|
/**
|
|
1500
|
-
*
|
|
1501
|
-
* Deletes a commodity definition
|
|
1517
|
+
* Get property by key
|
|
1502
1518
|
* @param data The data for the request.
|
|
1503
|
-
* @param data.
|
|
1504
|
-
* @
|
|
1505
|
-
* @returns void Commodity deleted successfully
|
|
1519
|
+
* @param data.key Property key
|
|
1520
|
+
* @returns unknown Property retrieved successfully
|
|
1506
1521
|
* @throws ApiError
|
|
1507
1522
|
*/
|
|
1508
|
-
public static
|
|
1509
|
-
data:
|
|
1510
|
-
): CancelablePromise<
|
|
1523
|
+
public static propertyControllerGetByKey(
|
|
1524
|
+
data: PropertyControllerGetByKeyData
|
|
1525
|
+
): CancelablePromise<PropertyControllerGetByKeyResponse> {
|
|
1511
1526
|
return __request(OpenAPI, {
|
|
1512
|
-
method: '
|
|
1513
|
-
url: '/api/v1/
|
|
1527
|
+
method: 'GET',
|
|
1528
|
+
url: '/api/v1/admin/properties/{key}',
|
|
1514
1529
|
path: {
|
|
1515
|
-
|
|
1516
|
-
region: data.region
|
|
1530
|
+
key: data.key
|
|
1517
1531
|
},
|
|
1518
1532
|
errors: {
|
|
1519
|
-
|
|
1533
|
+
401: 'Unauthorized',
|
|
1534
|
+
403: 'Forbidden - insufficient permissions',
|
|
1535
|
+
404: 'Property not found'
|
|
1520
1536
|
}
|
|
1521
1537
|
});
|
|
1522
1538
|
}
|
|
1523
1539
|
|
|
1524
1540
|
/**
|
|
1525
|
-
*
|
|
1526
|
-
* Gets existing commodity or creates it with automatic initialization from OpenBB
|
|
1541
|
+
* Update a system property
|
|
1527
1542
|
* @param data The data for the request.
|
|
1528
|
-
* @param data.
|
|
1529
|
-
* @param data.
|
|
1530
|
-
* @returns
|
|
1543
|
+
* @param data.key Property key
|
|
1544
|
+
* @param data.requestBody
|
|
1545
|
+
* @returns unknown Property updated successfully
|
|
1531
1546
|
* @throws ApiError
|
|
1532
1547
|
*/
|
|
1533
|
-
public static
|
|
1534
|
-
data:
|
|
1535
|
-
): CancelablePromise<
|
|
1548
|
+
public static propertyControllerUpdate(
|
|
1549
|
+
data: PropertyControllerUpdateData
|
|
1550
|
+
): CancelablePromise<PropertyControllerUpdateResponse> {
|
|
1536
1551
|
return __request(OpenAPI, {
|
|
1537
|
-
method: '
|
|
1538
|
-
url: '/api/v1/
|
|
1552
|
+
method: 'PUT',
|
|
1553
|
+
url: '/api/v1/admin/properties/{key}',
|
|
1539
1554
|
path: {
|
|
1540
|
-
|
|
1541
|
-
|
|
1555
|
+
key: data.key
|
|
1556
|
+
},
|
|
1557
|
+
body: data.requestBody,
|
|
1558
|
+
mediaType: 'application/json',
|
|
1559
|
+
errors: {
|
|
1560
|
+
401: 'Unauthorized',
|
|
1561
|
+
403: 'Forbidden - insufficient permissions'
|
|
1542
1562
|
}
|
|
1543
1563
|
});
|
|
1544
1564
|
}
|
|
1545
1565
|
|
|
1546
1566
|
/**
|
|
1547
|
-
*
|
|
1548
|
-
* Creates multiple commodities from a list of symbols, useful for initialization
|
|
1567
|
+
* Delete a system property
|
|
1549
1568
|
* @param data The data for the request.
|
|
1550
|
-
* @param data.
|
|
1551
|
-
* @returns
|
|
1569
|
+
* @param data.key Property key
|
|
1570
|
+
* @returns void Property deleted successfully
|
|
1552
1571
|
* @throws ApiError
|
|
1553
1572
|
*/
|
|
1554
|
-
public static
|
|
1555
|
-
data:
|
|
1556
|
-
): CancelablePromise<
|
|
1573
|
+
public static propertyControllerDelete(
|
|
1574
|
+
data: PropertyControllerDeleteData
|
|
1575
|
+
): CancelablePromise<PropertyControllerDeleteResponse> {
|
|
1557
1576
|
return __request(OpenAPI, {
|
|
1558
|
-
method: '
|
|
1559
|
-
url: '/api/v1/{
|
|
1577
|
+
method: 'DELETE',
|
|
1578
|
+
url: '/api/v1/admin/properties/{key}',
|
|
1560
1579
|
path: {
|
|
1561
|
-
|
|
1580
|
+
key: data.key
|
|
1581
|
+
},
|
|
1582
|
+
errors: {
|
|
1583
|
+
401: 'Unauthorized',
|
|
1584
|
+
403: 'Forbidden - insufficient permissions',
|
|
1585
|
+
404: 'Property not found'
|
|
1562
1586
|
}
|
|
1563
1587
|
});
|
|
1564
1588
|
}
|
|
1565
1589
|
}
|
|
1566
1590
|
|
|
1567
|
-
export class
|
|
1591
|
+
export class BeanPayeesService {
|
|
1568
1592
|
/**
|
|
1569
|
-
* Create a new
|
|
1570
|
-
* Creates a new
|
|
1593
|
+
* Create a new payee
|
|
1594
|
+
* Creates a new payee mapping for the authenticated user. The payee name must be unique within the user's account.
|
|
1571
1595
|
* @param data The data for the request.
|
|
1572
|
-
* @param data.region Region code for tenant context
|
|
1573
1596
|
* @param data.requestBody
|
|
1574
|
-
* @returns
|
|
1597
|
+
* @returns PayeeResponseDto Payee created successfully
|
|
1575
1598
|
* @throws ApiError
|
|
1576
1599
|
*/
|
|
1577
|
-
public static
|
|
1578
|
-
data:
|
|
1579
|
-
): CancelablePromise<
|
|
1600
|
+
public static payeeControllerCreate(
|
|
1601
|
+
data: PayeeControllerCreateData
|
|
1602
|
+
): CancelablePromise<PayeeControllerCreateResponse> {
|
|
1580
1603
|
return __request(OpenAPI, {
|
|
1581
1604
|
method: 'POST',
|
|
1582
|
-
url: '/api/v1/
|
|
1583
|
-
path: {
|
|
1584
|
-
region: data.region
|
|
1585
|
-
},
|
|
1605
|
+
url: '/api/v1/bean/payees',
|
|
1586
1606
|
body: data.requestBody,
|
|
1587
1607
|
mediaType: 'application/json',
|
|
1588
1608
|
errors: {
|
|
1589
|
-
|
|
1590
|
-
409: '
|
|
1609
|
+
400: 'Invalid input data',
|
|
1610
|
+
409: 'Payee already exists'
|
|
1591
1611
|
}
|
|
1592
1612
|
});
|
|
1593
1613
|
}
|
|
1594
1614
|
|
|
1595
1615
|
/**
|
|
1596
|
-
* List user
|
|
1597
|
-
* Returns all
|
|
1616
|
+
* List user payees
|
|
1617
|
+
* Returns all payee mappings for the authenticated user with optional filtering
|
|
1598
1618
|
* @param data The data for the request.
|
|
1599
|
-
* @param data.
|
|
1600
|
-
* @param data.
|
|
1601
|
-
* @param data.
|
|
1602
|
-
* @param data.
|
|
1603
|
-
* @param data.
|
|
1604
|
-
* @
|
|
1605
|
-
* @param data.page Page number for pagination (default: 1)
|
|
1606
|
-
* @param data.limit Number of items per page (default: 20, max: 100)
|
|
1607
|
-
* @returns PriceListResponseDto Prices retrieved successfully
|
|
1619
|
+
* @param data.search Search term for payee name (partial match, case-insensitive). Useful for autocomplete.
|
|
1620
|
+
* @param data.payee Filter by exact payee name match
|
|
1621
|
+
* @param data.category Filter by custom category
|
|
1622
|
+
* @param data.tag Filter by custom tag (returns payees that have this tag)
|
|
1623
|
+
* @param data.isActive Filter by active status. Defaults to true (show only active payees).
|
|
1624
|
+
* @returns PayeeListResponseDto Payees retrieved successfully
|
|
1608
1625
|
* @throws ApiError
|
|
1609
1626
|
*/
|
|
1610
|
-
public static
|
|
1611
|
-
data:
|
|
1612
|
-
): CancelablePromise<
|
|
1627
|
+
public static payeeControllerFindAll(
|
|
1628
|
+
data: PayeeControllerFindAllData = {}
|
|
1629
|
+
): CancelablePromise<PayeeControllerFindAllResponse> {
|
|
1613
1630
|
return __request(OpenAPI, {
|
|
1614
1631
|
method: 'GET',
|
|
1615
|
-
url: '/api/v1/
|
|
1616
|
-
path: {
|
|
1617
|
-
region: data.region
|
|
1618
|
-
},
|
|
1632
|
+
url: '/api/v1/bean/payees',
|
|
1619
1633
|
query: {
|
|
1620
|
-
currency: data.currency,
|
|
1621
|
-
quoteCurrency: data.quoteCurrency,
|
|
1622
|
-
dateFrom: data.dateFrom,
|
|
1623
|
-
dateTo: data.dateTo,
|
|
1624
1634
|
search: data.search,
|
|
1625
|
-
|
|
1626
|
-
|
|
1635
|
+
payee: data.payee,
|
|
1636
|
+
category: data.category,
|
|
1637
|
+
tag: data.tag,
|
|
1638
|
+
isActive: data.isActive
|
|
1627
1639
|
}
|
|
1628
1640
|
});
|
|
1629
1641
|
}
|
|
1630
1642
|
|
|
1631
1643
|
/**
|
|
1632
|
-
* Get
|
|
1633
|
-
* Returns
|
|
1644
|
+
* Get payee autocomplete suggestions
|
|
1645
|
+
* Returns active payee names matching the query, sorted by recent usage. Used for transaction input autocomplete.
|
|
1634
1646
|
* @param data The data for the request.
|
|
1635
|
-
* @param data.
|
|
1636
|
-
* @param data.
|
|
1637
|
-
* @returns
|
|
1647
|
+
* @param data.q Search query for payee name (partial match, case-insensitive)
|
|
1648
|
+
* @param data.limit Maximum number of suggestions
|
|
1649
|
+
* @returns PayeeAutocompleteResponseDto Autocomplete suggestions retrieved successfully
|
|
1638
1650
|
* @throws ApiError
|
|
1639
1651
|
*/
|
|
1640
|
-
public static
|
|
1641
|
-
data:
|
|
1642
|
-
): CancelablePromise<
|
|
1652
|
+
public static payeeControllerAutocomplete(
|
|
1653
|
+
data: PayeeControllerAutocompleteData
|
|
1654
|
+
): CancelablePromise<PayeeControllerAutocompleteResponse> {
|
|
1643
1655
|
return __request(OpenAPI, {
|
|
1644
1656
|
method: 'GET',
|
|
1645
|
-
url: '/api/v1/
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
},
|
|
1650
|
-
errors: {
|
|
1651
|
-
404: 'Price not found'
|
|
1657
|
+
url: '/api/v1/bean/payees/autocomplete',
|
|
1658
|
+
query: {
|
|
1659
|
+
q: data.q,
|
|
1660
|
+
limit: data.limit
|
|
1652
1661
|
}
|
|
1653
1662
|
});
|
|
1654
1663
|
}
|
|
1655
1664
|
|
|
1656
1665
|
/**
|
|
1657
|
-
*
|
|
1658
|
-
*
|
|
1666
|
+
* Get top payees by usage
|
|
1667
|
+
* Returns the most frequently used payees, sorted by use count. Used for statistics and analytics.
|
|
1659
1668
|
* @param data The data for the request.
|
|
1660
|
-
* @param data.
|
|
1661
|
-
* @
|
|
1662
|
-
* @param data.requestBody
|
|
1663
|
-
* @returns PriceResponseDto Price updated successfully
|
|
1669
|
+
* @param data.limit Maximum number of results
|
|
1670
|
+
* @returns PayeeStatsResponseDto Top payees retrieved successfully
|
|
1664
1671
|
* @throws ApiError
|
|
1665
1672
|
*/
|
|
1666
|
-
public static
|
|
1667
|
-
data:
|
|
1668
|
-
): CancelablePromise<
|
|
1673
|
+
public static payeeControllerGetTopPayees(
|
|
1674
|
+
data: PayeeControllerGetTopPayeesData = {}
|
|
1675
|
+
): CancelablePromise<PayeeControllerGetTopPayeesResponse> {
|
|
1669
1676
|
return __request(OpenAPI, {
|
|
1670
|
-
method: '
|
|
1671
|
-
url: '/api/v1/
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
region: data.region
|
|
1675
|
-
},
|
|
1676
|
-
body: data.requestBody,
|
|
1677
|
-
mediaType: 'application/json',
|
|
1678
|
-
errors: {
|
|
1679
|
-
404: 'Price not found',
|
|
1680
|
-
409: 'Updated price conflicts with existing price'
|
|
1677
|
+
method: 'GET',
|
|
1678
|
+
url: '/api/v1/bean/payees/top',
|
|
1679
|
+
query: {
|
|
1680
|
+
limit: data.limit
|
|
1681
1681
|
}
|
|
1682
1682
|
});
|
|
1683
1683
|
}
|
|
1684
1684
|
|
|
1685
1685
|
/**
|
|
1686
|
-
*
|
|
1687
|
-
*
|
|
1686
|
+
* Get payee by ID
|
|
1687
|
+
* Returns a specific payee mapping by its UUID
|
|
1688
1688
|
* @param data The data for the request.
|
|
1689
|
-
* @param data.id
|
|
1690
|
-
* @
|
|
1691
|
-
* @returns void Price deleted successfully
|
|
1689
|
+
* @param data.id Payee UUID
|
|
1690
|
+
* @returns PayeeResponseDto Payee retrieved successfully
|
|
1692
1691
|
* @throws ApiError
|
|
1693
1692
|
*/
|
|
1694
|
-
public static
|
|
1695
|
-
data:
|
|
1696
|
-
): CancelablePromise<
|
|
1693
|
+
public static payeeControllerFindOne(
|
|
1694
|
+
data: PayeeControllerFindOneData
|
|
1695
|
+
): CancelablePromise<PayeeControllerFindOneResponse> {
|
|
1697
1696
|
return __request(OpenAPI, {
|
|
1698
|
-
method: '
|
|
1699
|
-
url: '/api/v1/
|
|
1697
|
+
method: 'GET',
|
|
1698
|
+
url: '/api/v1/bean/payees/{id}',
|
|
1700
1699
|
path: {
|
|
1701
|
-
id: data.id
|
|
1702
|
-
region: data.region
|
|
1700
|
+
id: data.id
|
|
1703
1701
|
},
|
|
1704
1702
|
errors: {
|
|
1705
|
-
|
|
1703
|
+
403: 'Payee belongs to another user',
|
|
1704
|
+
404: 'Payee not found'
|
|
1706
1705
|
}
|
|
1707
1706
|
});
|
|
1708
1707
|
}
|
|
1709
1708
|
|
|
1710
1709
|
/**
|
|
1711
|
-
*
|
|
1712
|
-
*
|
|
1710
|
+
* Update payee
|
|
1711
|
+
* Updates a payee mapping. The payee name cannot be changed after creation.
|
|
1713
1712
|
* @param data The data for the request.
|
|
1714
|
-
* @param data.
|
|
1713
|
+
* @param data.id Payee UUID
|
|
1715
1714
|
* @param data.requestBody
|
|
1716
|
-
* @returns
|
|
1715
|
+
* @returns PayeeResponseDto Payee updated successfully
|
|
1717
1716
|
* @throws ApiError
|
|
1718
1717
|
*/
|
|
1719
|
-
public static
|
|
1720
|
-
data:
|
|
1721
|
-
): CancelablePromise<
|
|
1718
|
+
public static payeeControllerUpdate(
|
|
1719
|
+
data: PayeeControllerUpdateData
|
|
1720
|
+
): CancelablePromise<PayeeControllerUpdateResponse> {
|
|
1722
1721
|
return __request(OpenAPI, {
|
|
1723
|
-
method: '
|
|
1724
|
-
url: '/api/v1/
|
|
1722
|
+
method: 'PUT',
|
|
1723
|
+
url: '/api/v1/bean/payees/{id}',
|
|
1725
1724
|
path: {
|
|
1726
|
-
|
|
1725
|
+
id: data.id
|
|
1727
1726
|
},
|
|
1728
1727
|
body: data.requestBody,
|
|
1729
|
-
mediaType: 'application/json'
|
|
1728
|
+
mediaType: 'application/json',
|
|
1729
|
+
errors: {
|
|
1730
|
+
400: 'Invalid input data',
|
|
1731
|
+
404: 'Payee not found'
|
|
1732
|
+
}
|
|
1730
1733
|
});
|
|
1731
1734
|
}
|
|
1732
|
-
}
|
|
1733
1735
|
|
|
1734
|
-
export class RecurringRulesService {
|
|
1735
1736
|
/**
|
|
1736
|
-
*
|
|
1737
|
-
*
|
|
1737
|
+
* Delete payee
|
|
1738
|
+
* Soft deletes a payee by marking it as inactive. Inactive payees will not appear in autocomplete suggestions.
|
|
1738
1739
|
* @param data The data for the request.
|
|
1739
|
-
* @param data.
|
|
1740
|
-
* @
|
|
1741
|
-
* @returns RecurringRuleResponseDto Rule created successfully
|
|
1740
|
+
* @param data.id Payee UUID
|
|
1741
|
+
* @returns void Payee deleted successfully
|
|
1742
1742
|
* @throws ApiError
|
|
1743
1743
|
*/
|
|
1744
|
-
public static
|
|
1745
|
-
data:
|
|
1746
|
-
): CancelablePromise<
|
|
1744
|
+
public static payeeControllerDelete(
|
|
1745
|
+
data: PayeeControllerDeleteData
|
|
1746
|
+
): CancelablePromise<PayeeControllerDeleteResponse> {
|
|
1747
1747
|
return __request(OpenAPI, {
|
|
1748
|
-
method: '
|
|
1749
|
-
url: '/api/v1/{
|
|
1748
|
+
method: 'DELETE',
|
|
1749
|
+
url: '/api/v1/bean/payees/{id}',
|
|
1750
1750
|
path: {
|
|
1751
|
-
|
|
1751
|
+
id: data.id
|
|
1752
1752
|
},
|
|
1753
|
-
body: data.requestBody,
|
|
1754
|
-
mediaType: 'application/json',
|
|
1755
1753
|
errors: {
|
|
1756
|
-
|
|
1757
|
-
409: 'Rule with same name already exists'
|
|
1754
|
+
404: 'Payee not found'
|
|
1758
1755
|
}
|
|
1759
1756
|
});
|
|
1760
1757
|
}
|
|
1758
|
+
}
|
|
1761
1759
|
|
|
1760
|
+
export class AdminPayeeProfilesService {
|
|
1762
1761
|
/**
|
|
1763
|
-
*
|
|
1764
|
-
*
|
|
1762
|
+
* Create payee profile (Admin only)
|
|
1763
|
+
* Creates a new global payee profile. The canonical name must be unique (case-insensitive).
|
|
1765
1764
|
* @param data The data for the request.
|
|
1766
|
-
* @param data.
|
|
1767
|
-
* @
|
|
1768
|
-
* @param data.frequency Filter by frequency (WEEKLY, MONTHLY, etc.)
|
|
1769
|
-
* @param data.hasAutoCreate Filter by autoCreate enabled
|
|
1770
|
-
* @returns RecurringRuleResponseDto Rules retrieved successfully
|
|
1765
|
+
* @param data.requestBody
|
|
1766
|
+
* @returns PayeeProfileResponseDto Payee profile created successfully
|
|
1771
1767
|
* @throws ApiError
|
|
1772
1768
|
*/
|
|
1773
|
-
public static
|
|
1774
|
-
data:
|
|
1775
|
-
): CancelablePromise<
|
|
1769
|
+
public static payeeProfileAdminControllerCreate(
|
|
1770
|
+
data: PayeeProfileAdminControllerCreateData
|
|
1771
|
+
): CancelablePromise<PayeeProfileAdminControllerCreateResponse> {
|
|
1776
1772
|
return __request(OpenAPI, {
|
|
1777
|
-
method: '
|
|
1778
|
-
url: '/api/v1/
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
hasAutoCreate: data.hasAutoCreate
|
|
1773
|
+
method: 'POST',
|
|
1774
|
+
url: '/api/v1/admin/payee-profiles',
|
|
1775
|
+
body: data.requestBody,
|
|
1776
|
+
mediaType: 'application/json',
|
|
1777
|
+
errors: {
|
|
1778
|
+
400: 'Validation failed',
|
|
1779
|
+
403: 'Admin access required',
|
|
1780
|
+
409: 'Payee profile already exists'
|
|
1786
1781
|
}
|
|
1787
1782
|
});
|
|
1788
1783
|
}
|
|
1789
1784
|
|
|
1790
1785
|
/**
|
|
1791
|
-
*
|
|
1792
|
-
*
|
|
1786
|
+
* List payee profiles (Admin only)
|
|
1787
|
+
* Returns all payee profiles with optional filtering by category, country, verification status, etc.
|
|
1793
1788
|
* @param data The data for the request.
|
|
1794
|
-
* @param data.
|
|
1795
|
-
* @param data.
|
|
1796
|
-
* @param data.
|
|
1797
|
-
* @
|
|
1789
|
+
* @param data.search Search term for canonical name and aliases (case-insensitive)
|
|
1790
|
+
* @param data.category Filter by category
|
|
1791
|
+
* @param data.country Filter by country (ISO 3166-1 alpha-2)
|
|
1792
|
+
* @param data.isActive Filter by active status (default: true - show only active)
|
|
1793
|
+
* @param data.verified Filter by verification status. true = verified only, false = unverified only
|
|
1794
|
+
* @param data.dataSource Filter by data source
|
|
1795
|
+
* @returns PayeeProfileListResponseDto Payee profiles retrieved successfully
|
|
1798
1796
|
* @throws ApiError
|
|
1799
1797
|
*/
|
|
1800
|
-
public static
|
|
1801
|
-
data:
|
|
1802
|
-
): CancelablePromise<
|
|
1798
|
+
public static payeeProfileAdminControllerFindAll(
|
|
1799
|
+
data: PayeeProfileAdminControllerFindAllData = {}
|
|
1800
|
+
): CancelablePromise<PayeeProfileAdminControllerFindAllResponse> {
|
|
1803
1801
|
return __request(OpenAPI, {
|
|
1804
|
-
method: '
|
|
1805
|
-
url: '/api/v1/
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1802
|
+
method: 'GET',
|
|
1803
|
+
url: '/api/v1/admin/payee-profiles',
|
|
1804
|
+
query: {
|
|
1805
|
+
search: data.search,
|
|
1806
|
+
category: data.category,
|
|
1807
|
+
country: data.country,
|
|
1808
|
+
isActive: data.isActive,
|
|
1809
|
+
verified: data.verified,
|
|
1810
|
+
dataSource: data.dataSource
|
|
1809
1811
|
},
|
|
1810
|
-
body: data.requestBody,
|
|
1811
|
-
mediaType: 'application/json',
|
|
1812
1812
|
errors: {
|
|
1813
|
-
|
|
1814
|
-
409: 'Rule with same name already exists or transaction already linked'
|
|
1813
|
+
403: 'Admin access required'
|
|
1815
1814
|
}
|
|
1816
1815
|
});
|
|
1817
1816
|
}
|
|
1818
1817
|
|
|
1819
1818
|
/**
|
|
1820
|
-
* Get
|
|
1821
|
-
* Returns a
|
|
1819
|
+
* Get payee profile by ID (Admin only)
|
|
1820
|
+
* Returns a single payee profile by its ID.
|
|
1822
1821
|
* @param data The data for the request.
|
|
1823
|
-
* @param data.id
|
|
1824
|
-
* @
|
|
1825
|
-
* @returns RecurringRuleResponseDto Rule retrieved successfully
|
|
1822
|
+
* @param data.id Payee profile ID (UUID)
|
|
1823
|
+
* @returns PayeeProfileResponseDto Payee profile retrieved successfully
|
|
1826
1824
|
* @throws ApiError
|
|
1827
1825
|
*/
|
|
1828
|
-
public static
|
|
1829
|
-
data:
|
|
1830
|
-
): CancelablePromise<
|
|
1826
|
+
public static payeeProfileAdminControllerFindOne(
|
|
1827
|
+
data: PayeeProfileAdminControllerFindOneData
|
|
1828
|
+
): CancelablePromise<PayeeProfileAdminControllerFindOneResponse> {
|
|
1831
1829
|
return __request(OpenAPI, {
|
|
1832
1830
|
method: 'GET',
|
|
1833
|
-
url: '/api/v1/
|
|
1831
|
+
url: '/api/v1/admin/payee-profiles/{id}',
|
|
1834
1832
|
path: {
|
|
1835
|
-
id: data.id
|
|
1836
|
-
region: data.region
|
|
1833
|
+
id: data.id
|
|
1837
1834
|
},
|
|
1838
1835
|
errors: {
|
|
1839
|
-
|
|
1836
|
+
403: 'Admin access required',
|
|
1837
|
+
404: 'Payee profile not found'
|
|
1840
1838
|
}
|
|
1841
1839
|
});
|
|
1842
1840
|
}
|
|
1843
1841
|
|
|
1844
1842
|
/**
|
|
1845
|
-
* Update
|
|
1846
|
-
* Updates an existing
|
|
1843
|
+
* Update payee profile (Admin only)
|
|
1844
|
+
* Updates an existing payee profile. The canonical name cannot be changed.
|
|
1847
1845
|
* @param data The data for the request.
|
|
1848
|
-
* @param data.id
|
|
1849
|
-
* @param data.region Region code for tenant context
|
|
1846
|
+
* @param data.id Payee profile ID (UUID)
|
|
1850
1847
|
* @param data.requestBody
|
|
1851
|
-
* @returns
|
|
1848
|
+
* @returns PayeeProfileResponseDto Payee profile updated successfully
|
|
1852
1849
|
* @throws ApiError
|
|
1853
1850
|
*/
|
|
1854
|
-
public static
|
|
1855
|
-
data:
|
|
1856
|
-
): CancelablePromise<
|
|
1851
|
+
public static payeeProfileAdminControllerUpdate(
|
|
1852
|
+
data: PayeeProfileAdminControllerUpdateData
|
|
1853
|
+
): CancelablePromise<PayeeProfileAdminControllerUpdateResponse> {
|
|
1857
1854
|
return __request(OpenAPI, {
|
|
1858
|
-
method: '
|
|
1859
|
-
url: '/api/v1/
|
|
1855
|
+
method: 'PUT',
|
|
1856
|
+
url: '/api/v1/admin/payee-profiles/{id}',
|
|
1860
1857
|
path: {
|
|
1861
|
-
id: data.id
|
|
1862
|
-
region: data.region
|
|
1858
|
+
id: data.id
|
|
1863
1859
|
},
|
|
1864
1860
|
body: data.requestBody,
|
|
1865
1861
|
mediaType: 'application/json',
|
|
1866
1862
|
errors: {
|
|
1867
|
-
|
|
1868
|
-
404: '
|
|
1863
|
+
403: 'Admin access required',
|
|
1864
|
+
404: 'Payee profile not found'
|
|
1869
1865
|
}
|
|
1870
1866
|
});
|
|
1871
1867
|
}
|
|
1872
1868
|
|
|
1873
1869
|
/**
|
|
1874
|
-
*
|
|
1875
|
-
*
|
|
1870
|
+
* Soft delete payee profile (Admin only)
|
|
1871
|
+
* Marks a payee profile as inactive (soft delete). The profile cannot be deleted if it is referenced by user payees.
|
|
1876
1872
|
* @param data The data for the request.
|
|
1877
|
-
* @param data.id
|
|
1878
|
-
* @
|
|
1879
|
-
* @returns void Rule deleted successfully
|
|
1873
|
+
* @param data.id Payee profile ID (UUID)
|
|
1874
|
+
* @returns void Payee profile deleted successfully
|
|
1880
1875
|
* @throws ApiError
|
|
1881
1876
|
*/
|
|
1882
|
-
public static
|
|
1883
|
-
data:
|
|
1884
|
-
): CancelablePromise<
|
|
1877
|
+
public static payeeProfileAdminControllerDelete(
|
|
1878
|
+
data: PayeeProfileAdminControllerDeleteData
|
|
1879
|
+
): CancelablePromise<PayeeProfileAdminControllerDeleteResponse> {
|
|
1885
1880
|
return __request(OpenAPI, {
|
|
1886
1881
|
method: 'DELETE',
|
|
1887
|
-
url: '/api/v1/
|
|
1882
|
+
url: '/api/v1/admin/payee-profiles/{id}',
|
|
1888
1883
|
path: {
|
|
1889
|
-
id: data.id
|
|
1890
|
-
region: data.region
|
|
1884
|
+
id: data.id
|
|
1891
1885
|
},
|
|
1892
1886
|
errors: {
|
|
1893
|
-
|
|
1887
|
+
403: 'Admin access required',
|
|
1888
|
+
404: 'Payee profile not found',
|
|
1889
|
+
409: 'Payee profile is in use and cannot be deleted'
|
|
1894
1890
|
}
|
|
1895
1891
|
});
|
|
1896
1892
|
}
|
|
1897
1893
|
|
|
1898
1894
|
/**
|
|
1899
|
-
*
|
|
1900
|
-
*
|
|
1895
|
+
* Verify payee profile (Admin only)
|
|
1896
|
+
* Marks a payee profile as verified by setting verifiedAt to current timestamp.
|
|
1901
1897
|
* @param data The data for the request.
|
|
1902
|
-
* @param data.id
|
|
1903
|
-
* @
|
|
1904
|
-
* @returns RecurringRuleWithStatsResponseDto Rule with stats retrieved successfully
|
|
1898
|
+
* @param data.id Payee profile ID (UUID)
|
|
1899
|
+
* @returns PayeeProfileResponseDto Payee profile verified successfully
|
|
1905
1900
|
* @throws ApiError
|
|
1906
1901
|
*/
|
|
1907
|
-
public static
|
|
1908
|
-
data:
|
|
1909
|
-
): CancelablePromise<
|
|
1902
|
+
public static payeeProfileAdminControllerVerify(
|
|
1903
|
+
data: PayeeProfileAdminControllerVerifyData
|
|
1904
|
+
): CancelablePromise<PayeeProfileAdminControllerVerifyResponse> {
|
|
1910
1905
|
return __request(OpenAPI, {
|
|
1911
|
-
method: '
|
|
1912
|
-
url: '/api/v1/
|
|
1906
|
+
method: 'POST',
|
|
1907
|
+
url: '/api/v1/admin/payee-profiles/{id}/verify',
|
|
1913
1908
|
path: {
|
|
1914
|
-
id: data.id
|
|
1915
|
-
region: data.region
|
|
1909
|
+
id: data.id
|
|
1916
1910
|
},
|
|
1917
1911
|
errors: {
|
|
1918
|
-
|
|
1912
|
+
403: 'Admin access required',
|
|
1913
|
+
404: 'Payee profile not found'
|
|
1919
1914
|
}
|
|
1920
1915
|
});
|
|
1921
1916
|
}
|
|
1922
|
-
}
|
|
1923
1917
|
|
|
1924
|
-
export class ExpectedTransactionsService {
|
|
1925
1918
|
/**
|
|
1926
|
-
*
|
|
1927
|
-
*
|
|
1919
|
+
* Unverify payee profile (Admin only)
|
|
1920
|
+
* Removes verification status by setting verifiedAt to null.
|
|
1928
1921
|
* @param data The data for the request.
|
|
1929
|
-
* @param data.
|
|
1930
|
-
* @
|
|
1931
|
-
* @param data.status Filter by status (PENDING, COMPLETED, SKIPPED)
|
|
1932
|
-
* @param data.fromDate Filter by date range start (YYYY-MM-DD)
|
|
1933
|
-
* @param data.toDate Filter by date range end (YYYY-MM-DD)
|
|
1934
|
-
* @returns ExpectedTransactionListResponseDto Expected transactions retrieved successfully
|
|
1922
|
+
* @param data.id Payee profile ID (UUID)
|
|
1923
|
+
* @returns void Payee profile unverified successfully
|
|
1935
1924
|
* @throws ApiError
|
|
1936
1925
|
*/
|
|
1937
|
-
public static
|
|
1938
|
-
data:
|
|
1939
|
-
): CancelablePromise<
|
|
1926
|
+
public static payeeProfileAdminControllerUnverify(
|
|
1927
|
+
data: PayeeProfileAdminControllerUnverifyData
|
|
1928
|
+
): CancelablePromise<PayeeProfileAdminControllerUnverifyResponse> {
|
|
1940
1929
|
return __request(OpenAPI, {
|
|
1941
|
-
method: '
|
|
1942
|
-
url: '/api/v1/{
|
|
1930
|
+
method: 'DELETE',
|
|
1931
|
+
url: '/api/v1/admin/payee-profiles/{id}/verify',
|
|
1943
1932
|
path: {
|
|
1944
|
-
|
|
1933
|
+
id: data.id
|
|
1945
1934
|
},
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
fromDate: data.fromDate,
|
|
1950
|
-
toDate: data.toDate
|
|
1935
|
+
errors: {
|
|
1936
|
+
403: 'Admin access required',
|
|
1937
|
+
404: 'Payee profile not found'
|
|
1951
1938
|
}
|
|
1952
1939
|
});
|
|
1953
1940
|
}
|
|
1941
|
+
}
|
|
1954
1942
|
|
|
1943
|
+
export class PayeeProfilesService {
|
|
1955
1944
|
/**
|
|
1956
|
-
* List
|
|
1957
|
-
* Returns
|
|
1958
|
-
* @
|
|
1959
|
-
* @param data.region Region code for tenant context
|
|
1960
|
-
* @returns ExpectedTransactionListResponseDto Overdue transactions retrieved successfully
|
|
1945
|
+
* List active payee profiles (directory dump)
|
|
1946
|
+
* Returns the full active PayeeProfile set as a trimmed projection for client-side dictionary caching. Aliases are verbatim as stored; clients normalize on their side.
|
|
1947
|
+
* @returns PayeeProfileDirectoryResponseDto Active payee profiles
|
|
1961
1948
|
* @throws ApiError
|
|
1962
1949
|
*/
|
|
1963
|
-
public static
|
|
1964
|
-
data: ExpectedTransactionControllerFindOverdueData
|
|
1965
|
-
): CancelablePromise<ExpectedTransactionControllerFindOverdueResponse> {
|
|
1950
|
+
public static payeeProfileControllerListActive(): CancelablePromise<PayeeProfileControllerListActiveResponse> {
|
|
1966
1951
|
return __request(OpenAPI, {
|
|
1967
1952
|
method: 'GET',
|
|
1968
|
-
url: '/api/v1/
|
|
1969
|
-
|
|
1970
|
-
|
|
1953
|
+
url: '/api/v1/bean/payee-profiles',
|
|
1954
|
+
errors: {
|
|
1955
|
+
401: 'Missing or invalid token'
|
|
1971
1956
|
}
|
|
1972
1957
|
});
|
|
1973
1958
|
}
|
|
1959
|
+
}
|
|
1974
1960
|
|
|
1961
|
+
export class BeanCommoditiesService {
|
|
1975
1962
|
/**
|
|
1976
|
-
*
|
|
1977
|
-
*
|
|
1963
|
+
* Create a new commodity
|
|
1964
|
+
* Creates a new commodity definition for the authenticated user
|
|
1978
1965
|
* @param data The data for the request.
|
|
1979
|
-
* @param data.id Expected transaction ID
|
|
1980
1966
|
* @param data.region Region code for tenant context
|
|
1981
|
-
* @
|
|
1967
|
+
* @param data.requestBody
|
|
1968
|
+
* @returns CommodityResponseDto Commodity created successfully
|
|
1982
1969
|
* @throws ApiError
|
|
1983
1970
|
*/
|
|
1984
|
-
public static
|
|
1985
|
-
data:
|
|
1986
|
-
): CancelablePromise<
|
|
1971
|
+
public static commodityControllerCreate(
|
|
1972
|
+
data: CommodityControllerCreateData
|
|
1973
|
+
): CancelablePromise<CommodityControllerCreateResponse> {
|
|
1987
1974
|
return __request(OpenAPI, {
|
|
1988
|
-
method: '
|
|
1989
|
-
url: '/api/v1/{region}/bean/
|
|
1975
|
+
method: 'POST',
|
|
1976
|
+
url: '/api/v1/{region}/bean/commodities',
|
|
1990
1977
|
path: {
|
|
1991
|
-
id: data.id,
|
|
1992
1978
|
region: data.region
|
|
1993
1979
|
},
|
|
1980
|
+
body: data.requestBody,
|
|
1981
|
+
mediaType: 'application/json',
|
|
1994
1982
|
errors: {
|
|
1995
|
-
|
|
1983
|
+
400: 'Invalid input data',
|
|
1984
|
+
409: 'Commodity already exists'
|
|
1996
1985
|
}
|
|
1997
1986
|
});
|
|
1998
1987
|
}
|
|
1999
1988
|
|
|
2000
1989
|
/**
|
|
2001
|
-
*
|
|
2002
|
-
*
|
|
1990
|
+
* List user commodities
|
|
1991
|
+
* Returns all commodity definitions for the authenticated user with optional filtering
|
|
2003
1992
|
* @param data The data for the request.
|
|
2004
|
-
* @param data.id Expected transaction ID
|
|
2005
1993
|
* @param data.region Region code for tenant context
|
|
2006
|
-
* @
|
|
1994
|
+
* @param data.search Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
|
|
1995
|
+
* @param data.symbol Filter by exact symbol match
|
|
1996
|
+
* @returns CommodityListResponseDto Commodities retrieved successfully
|
|
2007
1997
|
* @throws ApiError
|
|
2008
1998
|
*/
|
|
2009
|
-
public static
|
|
2010
|
-
data:
|
|
2011
|
-
): CancelablePromise<
|
|
1999
|
+
public static commodityControllerFindAll(
|
|
2000
|
+
data: CommodityControllerFindAllData
|
|
2001
|
+
): CancelablePromise<CommodityControllerFindAllResponse> {
|
|
2012
2002
|
return __request(OpenAPI, {
|
|
2013
|
-
method: '
|
|
2014
|
-
url: '/api/v1/{region}/bean/
|
|
2003
|
+
method: 'GET',
|
|
2004
|
+
url: '/api/v1/{region}/bean/commodities',
|
|
2015
2005
|
path: {
|
|
2016
|
-
id: data.id,
|
|
2017
2006
|
region: data.region
|
|
2018
2007
|
},
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2008
|
+
query: {
|
|
2009
|
+
search: data.search,
|
|
2010
|
+
symbol: data.symbol
|
|
2022
2011
|
}
|
|
2023
2012
|
});
|
|
2024
2013
|
}
|
|
2025
2014
|
|
|
2026
2015
|
/**
|
|
2027
|
-
*
|
|
2028
|
-
*
|
|
2016
|
+
* Get commodity by symbol
|
|
2017
|
+
* Returns a specific commodity definition by its symbol
|
|
2029
2018
|
* @param data The data for the request.
|
|
2030
|
-
* @param data.
|
|
2019
|
+
* @param data.symbol Commodity symbol
|
|
2031
2020
|
* @param data.region Region code for tenant context
|
|
2032
|
-
* @returns
|
|
2021
|
+
* @returns CommodityResponseDto Commodity retrieved successfully
|
|
2033
2022
|
* @throws ApiError
|
|
2034
2023
|
*/
|
|
2035
|
-
public static
|
|
2036
|
-
data:
|
|
2037
|
-
): CancelablePromise<
|
|
2024
|
+
public static commodityControllerFindOne(
|
|
2025
|
+
data: CommodityControllerFindOneData
|
|
2026
|
+
): CancelablePromise<CommodityControllerFindOneResponse> {
|
|
2038
2027
|
return __request(OpenAPI, {
|
|
2039
|
-
method: '
|
|
2040
|
-
url: '/api/v1/{region}/bean/
|
|
2028
|
+
method: 'GET',
|
|
2029
|
+
url: '/api/v1/{region}/bean/commodities/{symbol}',
|
|
2041
2030
|
path: {
|
|
2042
|
-
|
|
2031
|
+
symbol: data.symbol,
|
|
2043
2032
|
region: data.region
|
|
2044
2033
|
},
|
|
2045
2034
|
errors: {
|
|
2046
|
-
|
|
2047
|
-
404: 'Expected transaction not found'
|
|
2035
|
+
404: 'Commodity not found'
|
|
2048
2036
|
}
|
|
2049
2037
|
});
|
|
2050
2038
|
}
|
|
2051
2039
|
|
|
2052
2040
|
/**
|
|
2053
|
-
*
|
|
2054
|
-
*
|
|
2041
|
+
* Update commodity
|
|
2042
|
+
* Updates an existing commodity definition. Symbol cannot be changed.
|
|
2055
2043
|
* @param data The data for the request.
|
|
2056
|
-
* @param data.
|
|
2044
|
+
* @param data.symbol Commodity symbol
|
|
2057
2045
|
* @param data.region Region code for tenant context
|
|
2058
2046
|
* @param data.requestBody
|
|
2059
|
-
* @returns
|
|
2047
|
+
* @returns CommodityResponseDto Commodity updated successfully
|
|
2060
2048
|
* @throws ApiError
|
|
2061
2049
|
*/
|
|
2062
|
-
public static
|
|
2063
|
-
data:
|
|
2064
|
-
): CancelablePromise<
|
|
2050
|
+
public static commodityControllerUpdate(
|
|
2051
|
+
data: CommodityControllerUpdateData
|
|
2052
|
+
): CancelablePromise<CommodityControllerUpdateResponse> {
|
|
2065
2053
|
return __request(OpenAPI, {
|
|
2066
|
-
method: '
|
|
2067
|
-
url: '/api/v1/{region}/bean/
|
|
2054
|
+
method: 'PUT',
|
|
2055
|
+
url: '/api/v1/{region}/bean/commodities/{symbol}',
|
|
2068
2056
|
path: {
|
|
2069
|
-
|
|
2057
|
+
symbol: data.symbol,
|
|
2070
2058
|
region: data.region
|
|
2071
2059
|
},
|
|
2072
2060
|
body: data.requestBody,
|
|
2073
|
-
mediaType: 'application/json',
|
|
2074
|
-
errors: {
|
|
2075
|
-
400: '
|
|
2076
|
-
404: '
|
|
2077
|
-
409: 'Actual transaction already matched to another rule'
|
|
2061
|
+
mediaType: 'application/json',
|
|
2062
|
+
errors: {
|
|
2063
|
+
400: 'Invalid input data',
|
|
2064
|
+
404: 'Commodity not found'
|
|
2078
2065
|
}
|
|
2079
2066
|
});
|
|
2080
2067
|
}
|
|
2081
2068
|
|
|
2082
2069
|
/**
|
|
2083
|
-
*
|
|
2084
|
-
*
|
|
2070
|
+
* Delete commodity
|
|
2071
|
+
* Deletes a commodity definition
|
|
2085
2072
|
* @param data The data for the request.
|
|
2086
|
-
* @param data.
|
|
2073
|
+
* @param data.symbol Commodity symbol
|
|
2087
2074
|
* @param data.region Region code for tenant context
|
|
2088
|
-
* @returns
|
|
2075
|
+
* @returns void Commodity deleted successfully
|
|
2089
2076
|
* @throws ApiError
|
|
2090
2077
|
*/
|
|
2091
|
-
public static
|
|
2092
|
-
data:
|
|
2093
|
-
): CancelablePromise<
|
|
2078
|
+
public static commodityControllerDelete(
|
|
2079
|
+
data: CommodityControllerDeleteData
|
|
2080
|
+
): CancelablePromise<CommodityControllerDeleteResponse> {
|
|
2094
2081
|
return __request(OpenAPI, {
|
|
2095
2082
|
method: 'DELETE',
|
|
2096
|
-
url: '/api/v1/{region}/bean/
|
|
2083
|
+
url: '/api/v1/{region}/bean/commodities/{symbol}',
|
|
2097
2084
|
path: {
|
|
2098
|
-
|
|
2085
|
+
symbol: data.symbol,
|
|
2099
2086
|
region: data.region
|
|
2100
2087
|
},
|
|
2101
2088
|
errors: {
|
|
2102
|
-
|
|
2103
|
-
404: 'Expected transaction not found'
|
|
2089
|
+
404: 'Commodity not found'
|
|
2104
2090
|
}
|
|
2105
2091
|
});
|
|
2106
2092
|
}
|
|
2107
2093
|
|
|
2108
2094
|
/**
|
|
2109
|
-
*
|
|
2110
|
-
*
|
|
2095
|
+
* Ensure commodity exists
|
|
2096
|
+
* Gets existing commodity or creates it with automatic initialization from OpenBB
|
|
2111
2097
|
* @param data The data for the request.
|
|
2112
|
-
* @param data.
|
|
2098
|
+
* @param data.symbol Commodity symbol
|
|
2113
2099
|
* @param data.region Region code for tenant context
|
|
2114
|
-
* @
|
|
2115
|
-
* @returns unknown Transaction created successfully
|
|
2100
|
+
* @returns CommodityResponseDto Commodity retrieved or created
|
|
2116
2101
|
* @throws ApiError
|
|
2117
2102
|
*/
|
|
2118
|
-
public static
|
|
2119
|
-
data:
|
|
2120
|
-
): CancelablePromise<
|
|
2103
|
+
public static commodityControllerGetOrCreate(
|
|
2104
|
+
data: CommodityControllerGetOrCreateData
|
|
2105
|
+
): CancelablePromise<CommodityControllerGetOrCreateResponse> {
|
|
2121
2106
|
return __request(OpenAPI, {
|
|
2122
2107
|
method: 'POST',
|
|
2123
|
-
url: '/api/v1/{region}/bean/
|
|
2108
|
+
url: '/api/v1/{region}/bean/commodities/{symbol}/ensure',
|
|
2124
2109
|
path: {
|
|
2125
|
-
|
|
2110
|
+
symbol: data.symbol,
|
|
2126
2111
|
region: data.region
|
|
2127
|
-
},
|
|
2128
|
-
body: data.requestBody,
|
|
2129
|
-
mediaType: 'application/json',
|
|
2130
|
-
errors: {
|
|
2131
|
-
400: 'Cannot enter - not in PENDING status or missing accounts',
|
|
2132
|
-
404: 'Expected transaction or accounts not found'
|
|
2133
2112
|
}
|
|
2134
2113
|
});
|
|
2135
2114
|
}
|
|
2136
|
-
}
|
|
2137
2115
|
|
|
2138
|
-
export class RecurringForecastService {
|
|
2139
2116
|
/**
|
|
2140
|
-
*
|
|
2141
|
-
*
|
|
2117
|
+
* Bulk create commodities
|
|
2118
|
+
* Creates multiple commodities from a list of symbols, useful for initialization
|
|
2142
2119
|
* @param data The data for the request.
|
|
2143
2120
|
* @param data.region Region code for tenant context
|
|
2144
|
-
* @
|
|
2145
|
-
* @returns ForecastResponseDto Forecast retrieved successfully
|
|
2121
|
+
* @returns CommodityResponseDto Commodities created successfully
|
|
2146
2122
|
* @throws ApiError
|
|
2147
2123
|
*/
|
|
2148
|
-
public static
|
|
2149
|
-
data:
|
|
2150
|
-
): CancelablePromise<
|
|
2124
|
+
public static commodityControllerBulkCreate(
|
|
2125
|
+
data: CommodityControllerBulkCreateData
|
|
2126
|
+
): CancelablePromise<CommodityControllerBulkCreateResponse> {
|
|
2151
2127
|
return __request(OpenAPI, {
|
|
2152
|
-
method: '
|
|
2153
|
-
url: '/api/v1/{region}/bean/
|
|
2128
|
+
method: 'POST',
|
|
2129
|
+
url: '/api/v1/{region}/bean/commodities/bulk',
|
|
2154
2130
|
path: {
|
|
2155
2131
|
region: data.region
|
|
2156
|
-
},
|
|
2157
|
-
query: {
|
|
2158
|
-
months: data.months
|
|
2159
2132
|
}
|
|
2160
2133
|
});
|
|
2161
2134
|
}
|
|
@@ -2318,534 +2291,626 @@ export class ReportingService {
|
|
|
2318
2291
|
}
|
|
2319
2292
|
}
|
|
2320
2293
|
|
|
2321
|
-
export class
|
|
2294
|
+
export class BeanPricesService {
|
|
2322
2295
|
/**
|
|
2323
|
-
*
|
|
2296
|
+
* Create a new price
|
|
2297
|
+
* Creates a new price entry for the authenticated user
|
|
2324
2298
|
* @param data The data for the request.
|
|
2299
|
+
* @param data.region Region code for tenant context
|
|
2325
2300
|
* @param data.requestBody
|
|
2326
|
-
* @returns
|
|
2301
|
+
* @returns PriceResponseDto Price created successfully
|
|
2327
2302
|
* @throws ApiError
|
|
2328
2303
|
*/
|
|
2329
|
-
public static
|
|
2330
|
-
data:
|
|
2331
|
-
): CancelablePromise<
|
|
2304
|
+
public static priceControllerCreate(
|
|
2305
|
+
data: PriceControllerCreateData
|
|
2306
|
+
): CancelablePromise<PriceControllerCreateResponse> {
|
|
2332
2307
|
return __request(OpenAPI, {
|
|
2333
|
-
method: '
|
|
2334
|
-
url: '/api/v1/
|
|
2308
|
+
method: 'POST',
|
|
2309
|
+
url: '/api/v1/{region}/bean/prices',
|
|
2310
|
+
path: {
|
|
2311
|
+
region: data.region
|
|
2312
|
+
},
|
|
2335
2313
|
body: data.requestBody,
|
|
2336
2314
|
mediaType: 'application/json',
|
|
2337
2315
|
errors: {
|
|
2338
|
-
|
|
2316
|
+
404: 'Currency or quoteCurrency commodity not found',
|
|
2317
|
+
409: 'Price already exists for this currency pair and date'
|
|
2339
2318
|
}
|
|
2340
2319
|
});
|
|
2341
2320
|
}
|
|
2342
2321
|
|
|
2343
2322
|
/**
|
|
2344
|
-
*
|
|
2323
|
+
* List user prices
|
|
2324
|
+
* Returns all price entries for the authenticated user with optional filtering
|
|
2345
2325
|
* @param data The data for the request.
|
|
2346
|
-
* @param data.
|
|
2347
|
-
* @
|
|
2326
|
+
* @param data.region Region code for tenant context
|
|
2327
|
+
* @param data.currency Filter by currency (e.g., BTC, AAPL, USD)
|
|
2328
|
+
* @param data.quoteCurrency Filter by quote currency (pricing currency, e.g., USD, CNY)
|
|
2329
|
+
* @param data.dateFrom Filter prices from this date (ISO 8601 format)
|
|
2330
|
+
* @param data.dateTo Filter prices to this date (ISO 8601 format)
|
|
2331
|
+
* @param data.search Search term for currency or quoteCurrency (case-insensitive partial match)
|
|
2332
|
+
* @param data.page Page number for pagination (default: 1)
|
|
2333
|
+
* @param data.limit Number of items per page (default: 20, max: 100)
|
|
2334
|
+
* @returns PriceListResponseDto Prices retrieved successfully
|
|
2348
2335
|
* @throws ApiError
|
|
2349
2336
|
*/
|
|
2350
|
-
public static
|
|
2351
|
-
data:
|
|
2352
|
-
): CancelablePromise<
|
|
2337
|
+
public static priceControllerFindAll(
|
|
2338
|
+
data: PriceControllerFindAllData
|
|
2339
|
+
): CancelablePromise<PriceControllerFindAllResponse> {
|
|
2353
2340
|
return __request(OpenAPI, {
|
|
2354
2341
|
method: 'GET',
|
|
2355
|
-
url: '/api/v1/
|
|
2356
|
-
|
|
2357
|
-
|
|
2342
|
+
url: '/api/v1/{region}/bean/prices',
|
|
2343
|
+
path: {
|
|
2344
|
+
region: data.region
|
|
2345
|
+
},
|
|
2346
|
+
query: {
|
|
2347
|
+
currency: data.currency,
|
|
2348
|
+
quoteCurrency: data.quoteCurrency,
|
|
2349
|
+
dateFrom: data.dateFrom,
|
|
2350
|
+
dateTo: data.dateTo,
|
|
2351
|
+
search: data.search,
|
|
2352
|
+
page: data.page,
|
|
2353
|
+
limit: data.limit
|
|
2358
2354
|
}
|
|
2359
2355
|
});
|
|
2360
2356
|
}
|
|
2361
2357
|
|
|
2362
2358
|
/**
|
|
2363
|
-
*
|
|
2364
|
-
*
|
|
2359
|
+
* Get price by ID
|
|
2360
|
+
* Returns a single price entry by its ID
|
|
2365
2361
|
* @param data The data for the request.
|
|
2366
|
-
* @param data.
|
|
2367
|
-
* @
|
|
2362
|
+
* @param data.id Price ID
|
|
2363
|
+
* @param data.region Region code for tenant context
|
|
2364
|
+
* @returns PriceResponseDto Price retrieved successfully
|
|
2368
2365
|
* @throws ApiError
|
|
2369
2366
|
*/
|
|
2370
|
-
public static
|
|
2371
|
-
data:
|
|
2372
|
-
): CancelablePromise<
|
|
2367
|
+
public static priceControllerFindOne(
|
|
2368
|
+
data: PriceControllerFindOneData
|
|
2369
|
+
): CancelablePromise<PriceControllerFindOneResponse> {
|
|
2373
2370
|
return __request(OpenAPI, {
|
|
2374
|
-
method: '
|
|
2375
|
-
url: '/api/v1/
|
|
2376
|
-
|
|
2377
|
-
|
|
2371
|
+
method: 'GET',
|
|
2372
|
+
url: '/api/v1/{region}/bean/prices/{id}',
|
|
2373
|
+
path: {
|
|
2374
|
+
id: data.id,
|
|
2375
|
+
region: data.region
|
|
2376
|
+
},
|
|
2378
2377
|
errors: {
|
|
2379
|
-
|
|
2380
|
-
403: 'User signup is disabled'
|
|
2378
|
+
404: 'Price not found'
|
|
2381
2379
|
}
|
|
2382
2380
|
});
|
|
2383
2381
|
}
|
|
2384
2382
|
|
|
2385
2383
|
/**
|
|
2386
|
-
*
|
|
2384
|
+
* Update a price
|
|
2385
|
+
* Updates an existing price entry
|
|
2387
2386
|
* @param data The data for the request.
|
|
2388
|
-
* @param data.id
|
|
2389
|
-
* @
|
|
2387
|
+
* @param data.id Price ID
|
|
2388
|
+
* @param data.region Region code for tenant context
|
|
2389
|
+
* @param data.requestBody
|
|
2390
|
+
* @returns PriceResponseDto Price updated successfully
|
|
2390
2391
|
* @throws ApiError
|
|
2391
2392
|
*/
|
|
2392
|
-
public static
|
|
2393
|
-
data:
|
|
2394
|
-
): CancelablePromise<
|
|
2393
|
+
public static priceControllerUpdate(
|
|
2394
|
+
data: PriceControllerUpdateData
|
|
2395
|
+
): CancelablePromise<PriceControllerUpdateResponse> {
|
|
2395
2396
|
return __request(OpenAPI, {
|
|
2396
|
-
method: '
|
|
2397
|
-
url: '/api/v1/
|
|
2397
|
+
method: 'PUT',
|
|
2398
|
+
url: '/api/v1/{region}/bean/prices/{id}',
|
|
2398
2399
|
path: {
|
|
2399
|
-
id: data.id
|
|
2400
|
+
id: data.id,
|
|
2401
|
+
region: data.region
|
|
2400
2402
|
},
|
|
2403
|
+
body: data.requestBody,
|
|
2404
|
+
mediaType: 'application/json',
|
|
2401
2405
|
errors: {
|
|
2402
|
-
|
|
2406
|
+
404: 'Price not found',
|
|
2407
|
+
409: 'Updated price conflicts with existing price'
|
|
2403
2408
|
}
|
|
2404
2409
|
});
|
|
2405
2410
|
}
|
|
2406
2411
|
|
|
2407
2412
|
/**
|
|
2408
|
-
*
|
|
2413
|
+
* Delete a price
|
|
2414
|
+
* Deletes a price entry (hard delete)
|
|
2409
2415
|
* @param data The data for the request.
|
|
2410
|
-
* @param data.id
|
|
2411
|
-
* @
|
|
2416
|
+
* @param data.id Price ID
|
|
2417
|
+
* @param data.region Region code for tenant context
|
|
2418
|
+
* @returns void Price deleted successfully
|
|
2412
2419
|
* @throws ApiError
|
|
2413
2420
|
*/
|
|
2414
|
-
public static
|
|
2415
|
-
data:
|
|
2416
|
-
): CancelablePromise<
|
|
2421
|
+
public static priceControllerDelete(
|
|
2422
|
+
data: PriceControllerDeleteData
|
|
2423
|
+
): CancelablePromise<PriceControllerDeleteResponse> {
|
|
2417
2424
|
return __request(OpenAPI, {
|
|
2418
|
-
method: '
|
|
2419
|
-
url: '/api/v1/
|
|
2425
|
+
method: 'DELETE',
|
|
2426
|
+
url: '/api/v1/{region}/bean/prices/{id}',
|
|
2420
2427
|
path: {
|
|
2421
|
-
id: data.id
|
|
2428
|
+
id: data.id,
|
|
2429
|
+
region: data.region
|
|
2422
2430
|
},
|
|
2423
2431
|
errors: {
|
|
2424
|
-
|
|
2432
|
+
404: 'Price not found'
|
|
2425
2433
|
}
|
|
2426
2434
|
});
|
|
2427
2435
|
}
|
|
2428
2436
|
|
|
2429
2437
|
/**
|
|
2430
|
-
*
|
|
2438
|
+
* Bulk create prices
|
|
2439
|
+
* Creates multiple price entries at once (skips duplicates)
|
|
2431
2440
|
* @param data The data for the request.
|
|
2441
|
+
* @param data.region Region code for tenant context
|
|
2432
2442
|
* @param data.requestBody
|
|
2433
|
-
* @returns
|
|
2443
|
+
* @returns PriceResponseDto Prices created successfully
|
|
2434
2444
|
* @throws ApiError
|
|
2435
2445
|
*/
|
|
2436
|
-
public static
|
|
2437
|
-
data:
|
|
2438
|
-
): CancelablePromise<
|
|
2446
|
+
public static priceControllerBulkCreate(
|
|
2447
|
+
data: PriceControllerBulkCreateData
|
|
2448
|
+
): CancelablePromise<PriceControllerBulkCreateResponse> {
|
|
2439
2449
|
return __request(OpenAPI, {
|
|
2440
|
-
method: '
|
|
2441
|
-
url: '/api/v1/
|
|
2450
|
+
method: 'POST',
|
|
2451
|
+
url: '/api/v1/{region}/bean/prices/bulk',
|
|
2452
|
+
path: {
|
|
2453
|
+
region: data.region
|
|
2454
|
+
},
|
|
2442
2455
|
body: data.requestBody,
|
|
2443
|
-
mediaType: 'application/json'
|
|
2444
|
-
errors: {
|
|
2445
|
-
403: 'Insufficient permissions'
|
|
2446
|
-
}
|
|
2456
|
+
mediaType: 'application/json'
|
|
2447
2457
|
});
|
|
2448
2458
|
}
|
|
2459
|
+
}
|
|
2449
2460
|
|
|
2461
|
+
export class RecurringRulesService {
|
|
2450
2462
|
/**
|
|
2451
|
-
*
|
|
2463
|
+
* Create a new recurring rule
|
|
2464
|
+
* Creates a new recurring transaction rule for the authenticated user
|
|
2452
2465
|
* @param data The data for the request.
|
|
2453
|
-
* @param data.
|
|
2454
|
-
* @param data.
|
|
2455
|
-
* @returns
|
|
2466
|
+
* @param data.region Region code for tenant context
|
|
2467
|
+
* @param data.requestBody
|
|
2468
|
+
* @returns RecurringRuleResponseDto Rule created successfully
|
|
2456
2469
|
* @throws ApiError
|
|
2457
2470
|
*/
|
|
2458
|
-
public static
|
|
2459
|
-
data:
|
|
2460
|
-
): CancelablePromise<
|
|
2471
|
+
public static recurringRuleControllerCreate(
|
|
2472
|
+
data: RecurringRuleControllerCreateData
|
|
2473
|
+
): CancelablePromise<RecurringRuleControllerCreateResponse> {
|
|
2461
2474
|
return __request(OpenAPI, {
|
|
2462
|
-
method: '
|
|
2463
|
-
url: '/api/v1/
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2475
|
+
method: 'POST',
|
|
2476
|
+
url: '/api/v1/{region}/bean/recurring-rules',
|
|
2477
|
+
path: {
|
|
2478
|
+
region: data.region
|
|
2479
|
+
},
|
|
2480
|
+
body: data.requestBody,
|
|
2481
|
+
mediaType: 'application/json',
|
|
2482
|
+
errors: {
|
|
2483
|
+
400: 'Invalid input data (e.g., autoCreate without accounts)',
|
|
2484
|
+
409: 'Rule with same name already exists'
|
|
2467
2485
|
}
|
|
2468
2486
|
});
|
|
2469
2487
|
}
|
|
2470
2488
|
|
|
2471
2489
|
/**
|
|
2472
|
-
*
|
|
2473
|
-
*
|
|
2490
|
+
* List recurring rules
|
|
2491
|
+
* Returns all recurring rules for the authenticated user with optional filtering
|
|
2492
|
+
* @param data The data for the request.
|
|
2493
|
+
* @param data.region Region code for tenant context
|
|
2494
|
+
* @param data.isActive Filter by active status
|
|
2495
|
+
* @param data.frequency Filter by frequency (WEEKLY, MONTHLY, etc.)
|
|
2496
|
+
* @param data.hasAutoCreate Filter by autoCreate enabled
|
|
2497
|
+
* @returns RecurringRuleResponseDto Rules retrieved successfully
|
|
2474
2498
|
* @throws ApiError
|
|
2475
2499
|
*/
|
|
2476
|
-
public static
|
|
2500
|
+
public static recurringRuleControllerFindAll(
|
|
2501
|
+
data: RecurringRuleControllerFindAllData
|
|
2502
|
+
): CancelablePromise<RecurringRuleControllerFindAllResponse> {
|
|
2477
2503
|
return __request(OpenAPI, {
|
|
2478
2504
|
method: 'GET',
|
|
2479
|
-
url: '/api/v1/
|
|
2505
|
+
url: '/api/v1/{region}/bean/recurring-rules',
|
|
2506
|
+
path: {
|
|
2507
|
+
region: data.region
|
|
2508
|
+
},
|
|
2509
|
+
query: {
|
|
2510
|
+
isActive: data.isActive,
|
|
2511
|
+
frequency: data.frequency,
|
|
2512
|
+
hasAutoCreate: data.hasAutoCreate
|
|
2513
|
+
}
|
|
2480
2514
|
});
|
|
2481
2515
|
}
|
|
2482
|
-
}
|
|
2483
2516
|
|
|
2484
|
-
export class PropertiesService {
|
|
2485
2517
|
/**
|
|
2486
|
-
*
|
|
2487
|
-
*
|
|
2518
|
+
* Create recurring rule from transaction
|
|
2519
|
+
* Auto-creates a recurring rule using transaction data. User only confirms frequency.
|
|
2520
|
+
* @param data The data for the request.
|
|
2521
|
+
* @param data.transactionId Source transaction ID
|
|
2522
|
+
* @param data.region Region code for tenant context
|
|
2523
|
+
* @param data.requestBody
|
|
2524
|
+
* @returns RecurringRuleResponseDto Rule created successfully
|
|
2488
2525
|
* @throws ApiError
|
|
2489
2526
|
*/
|
|
2490
|
-
public static
|
|
2527
|
+
public static recurringRuleControllerCreateFromTransaction(
|
|
2528
|
+
data: RecurringRuleControllerCreateFromTransactionData
|
|
2529
|
+
): CancelablePromise<RecurringRuleControllerCreateFromTransactionResponse> {
|
|
2491
2530
|
return __request(OpenAPI, {
|
|
2492
|
-
method: '
|
|
2493
|
-
url: '/api/v1/
|
|
2531
|
+
method: 'POST',
|
|
2532
|
+
url: '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}',
|
|
2533
|
+
path: {
|
|
2534
|
+
transactionId: data.transactionId,
|
|
2535
|
+
region: data.region
|
|
2536
|
+
},
|
|
2537
|
+
body: data.requestBody,
|
|
2538
|
+
mediaType: 'application/json',
|
|
2494
2539
|
errors: {
|
|
2495
|
-
|
|
2496
|
-
|
|
2540
|
+
404: 'Transaction not found',
|
|
2541
|
+
409: 'Rule with same name already exists or transaction already linked'
|
|
2497
2542
|
}
|
|
2498
2543
|
});
|
|
2499
2544
|
}
|
|
2500
2545
|
|
|
2501
2546
|
/**
|
|
2502
|
-
* Get
|
|
2547
|
+
* Get recurring rule by ID
|
|
2548
|
+
* Returns a specific recurring rule with its details
|
|
2503
2549
|
* @param data The data for the request.
|
|
2504
|
-
* @param data.
|
|
2505
|
-
* @
|
|
2550
|
+
* @param data.id Rule ID
|
|
2551
|
+
* @param data.region Region code for tenant context
|
|
2552
|
+
* @returns RecurringRuleResponseDto Rule retrieved successfully
|
|
2506
2553
|
* @throws ApiError
|
|
2507
2554
|
*/
|
|
2508
|
-
public static
|
|
2509
|
-
data:
|
|
2510
|
-
): CancelablePromise<
|
|
2555
|
+
public static recurringRuleControllerFindOne(
|
|
2556
|
+
data: RecurringRuleControllerFindOneData
|
|
2557
|
+
): CancelablePromise<RecurringRuleControllerFindOneResponse> {
|
|
2511
2558
|
return __request(OpenAPI, {
|
|
2512
2559
|
method: 'GET',
|
|
2513
|
-
url: '/api/v1/
|
|
2560
|
+
url: '/api/v1/{region}/bean/recurring-rules/{id}',
|
|
2514
2561
|
path: {
|
|
2515
|
-
|
|
2562
|
+
id: data.id,
|
|
2563
|
+
region: data.region
|
|
2516
2564
|
},
|
|
2517
2565
|
errors: {
|
|
2518
|
-
|
|
2519
|
-
403: 'Forbidden - insufficient permissions',
|
|
2520
|
-
404: 'Property not found'
|
|
2566
|
+
404: 'Rule not found'
|
|
2521
2567
|
}
|
|
2522
2568
|
});
|
|
2523
2569
|
}
|
|
2524
2570
|
|
|
2525
2571
|
/**
|
|
2526
|
-
* Update
|
|
2572
|
+
* Update recurring rule
|
|
2573
|
+
* Updates an existing recurring rule
|
|
2527
2574
|
* @param data The data for the request.
|
|
2528
|
-
* @param data.
|
|
2575
|
+
* @param data.id Rule ID
|
|
2576
|
+
* @param data.region Region code for tenant context
|
|
2529
2577
|
* @param data.requestBody
|
|
2530
|
-
* @returns
|
|
2578
|
+
* @returns RecurringRuleResponseDto Rule updated successfully
|
|
2531
2579
|
* @throws ApiError
|
|
2532
2580
|
*/
|
|
2533
|
-
public static
|
|
2534
|
-
data:
|
|
2535
|
-
): CancelablePromise<
|
|
2581
|
+
public static recurringRuleControllerUpdate(
|
|
2582
|
+
data: RecurringRuleControllerUpdateData
|
|
2583
|
+
): CancelablePromise<RecurringRuleControllerUpdateResponse> {
|
|
2536
2584
|
return __request(OpenAPI, {
|
|
2537
|
-
method: '
|
|
2538
|
-
url: '/api/v1/
|
|
2585
|
+
method: 'PATCH',
|
|
2586
|
+
url: '/api/v1/{region}/bean/recurring-rules/{id}',
|
|
2539
2587
|
path: {
|
|
2540
|
-
|
|
2588
|
+
id: data.id,
|
|
2589
|
+
region: data.region
|
|
2541
2590
|
},
|
|
2542
2591
|
body: data.requestBody,
|
|
2543
2592
|
mediaType: 'application/json',
|
|
2544
2593
|
errors: {
|
|
2545
|
-
|
|
2546
|
-
|
|
2594
|
+
400: 'Invalid input data',
|
|
2595
|
+
404: 'Rule not found'
|
|
2547
2596
|
}
|
|
2548
2597
|
});
|
|
2549
2598
|
}
|
|
2550
2599
|
|
|
2551
2600
|
/**
|
|
2552
|
-
* Delete
|
|
2601
|
+
* Delete recurring rule
|
|
2602
|
+
* Soft deletes a recurring rule (sets isActive to false)
|
|
2553
2603
|
* @param data The data for the request.
|
|
2554
|
-
* @param data.
|
|
2555
|
-
* @
|
|
2604
|
+
* @param data.id Rule ID
|
|
2605
|
+
* @param data.region Region code for tenant context
|
|
2606
|
+
* @returns void Rule deleted successfully
|
|
2556
2607
|
* @throws ApiError
|
|
2557
2608
|
*/
|
|
2558
|
-
public static
|
|
2559
|
-
data:
|
|
2560
|
-
): CancelablePromise<
|
|
2609
|
+
public static recurringRuleControllerDelete(
|
|
2610
|
+
data: RecurringRuleControllerDeleteData
|
|
2611
|
+
): CancelablePromise<RecurringRuleControllerDeleteResponse> {
|
|
2561
2612
|
return __request(OpenAPI, {
|
|
2562
2613
|
method: 'DELETE',
|
|
2563
|
-
url: '/api/v1/
|
|
2614
|
+
url: '/api/v1/{region}/bean/recurring-rules/{id}',
|
|
2564
2615
|
path: {
|
|
2565
|
-
|
|
2616
|
+
id: data.id,
|
|
2617
|
+
region: data.region
|
|
2566
2618
|
},
|
|
2567
2619
|
errors: {
|
|
2568
|
-
|
|
2569
|
-
403: 'Forbidden - insufficient permissions',
|
|
2570
|
-
404: 'Property not found'
|
|
2620
|
+
404: 'Rule not found'
|
|
2571
2621
|
}
|
|
2572
2622
|
});
|
|
2573
2623
|
}
|
|
2574
|
-
}
|
|
2575
2624
|
|
|
2576
|
-
export class BeanTransactionRulesService {
|
|
2577
2625
|
/**
|
|
2578
|
-
*
|
|
2579
|
-
*
|
|
2626
|
+
* Get rule with statistics
|
|
2627
|
+
* Returns a rule with pending/overdue counts and next expected date
|
|
2580
2628
|
* @param data The data for the request.
|
|
2629
|
+
* @param data.id Rule ID
|
|
2581
2630
|
* @param data.region Region code for tenant context
|
|
2582
|
-
* @
|
|
2583
|
-
* @returns TransactionRuleResponseDto Rule updated successfully (upsert mode)
|
|
2631
|
+
* @returns RecurringRuleWithStatsResponseDto Rule with stats retrieved successfully
|
|
2584
2632
|
* @throws ApiError
|
|
2585
2633
|
*/
|
|
2586
|
-
public static
|
|
2587
|
-
data:
|
|
2588
|
-
): CancelablePromise<
|
|
2634
|
+
public static recurringRuleControllerGetWithStats(
|
|
2635
|
+
data: RecurringRuleControllerGetWithStatsData
|
|
2636
|
+
): CancelablePromise<RecurringRuleControllerGetWithStatsResponse> {
|
|
2589
2637
|
return __request(OpenAPI, {
|
|
2590
|
-
method: '
|
|
2591
|
-
url: '/api/v1/{region}/bean/
|
|
2638
|
+
method: 'GET',
|
|
2639
|
+
url: '/api/v1/{region}/bean/recurring-rules/{id}/stats',
|
|
2592
2640
|
path: {
|
|
2641
|
+
id: data.id,
|
|
2593
2642
|
region: data.region
|
|
2594
2643
|
},
|
|
2595
|
-
body: data.requestBody,
|
|
2596
|
-
mediaType: 'application/json',
|
|
2597
2644
|
errors: {
|
|
2598
|
-
|
|
2599
|
-
401: 'Unauthorized',
|
|
2600
|
-
409: 'Resource conflict - another process is updating this rule'
|
|
2645
|
+
404: 'Rule not found'
|
|
2601
2646
|
}
|
|
2602
2647
|
});
|
|
2603
2648
|
}
|
|
2649
|
+
}
|
|
2604
2650
|
|
|
2651
|
+
export class ExpectedTransactionsService {
|
|
2605
2652
|
/**
|
|
2606
|
-
*
|
|
2653
|
+
* List expected transactions
|
|
2654
|
+
* Returns expected transactions for the authenticated user with optional filtering
|
|
2607
2655
|
* @param data The data for the request.
|
|
2608
2656
|
* @param data.region Region code for tenant context
|
|
2609
|
-
* @param data.
|
|
2610
|
-
* @param data.
|
|
2611
|
-
* @param data.
|
|
2612
|
-
* @param data.
|
|
2613
|
-
* @
|
|
2614
|
-
* @returns TransactionRuleListResponseDto List of rules
|
|
2657
|
+
* @param data.ruleId Filter by recurring rule ID
|
|
2658
|
+
* @param data.status Filter by status (PENDING, COMPLETED, SKIPPED)
|
|
2659
|
+
* @param data.fromDate Filter by date range start (YYYY-MM-DD)
|
|
2660
|
+
* @param data.toDate Filter by date range end (YYYY-MM-DD)
|
|
2661
|
+
* @returns ExpectedTransactionListResponseDto Expected transactions retrieved successfully
|
|
2615
2662
|
* @throws ApiError
|
|
2616
2663
|
*/
|
|
2617
|
-
public static
|
|
2618
|
-
data:
|
|
2619
|
-
): CancelablePromise<
|
|
2664
|
+
public static expectedTransactionControllerFindAll(
|
|
2665
|
+
data: ExpectedTransactionControllerFindAllData
|
|
2666
|
+
): CancelablePromise<ExpectedTransactionControllerFindAllResponse> {
|
|
2620
2667
|
return __request(OpenAPI, {
|
|
2621
2668
|
method: 'GET',
|
|
2622
|
-
url: '/api/v1/{region}/bean/
|
|
2669
|
+
url: '/api/v1/{region}/bean/expected-transactions',
|
|
2623
2670
|
path: {
|
|
2624
2671
|
region: data.region
|
|
2625
2672
|
},
|
|
2626
2673
|
query: {
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
autoApplyEnabled: data.autoApplyEnabled
|
|
2632
|
-
},
|
|
2633
|
-
errors: {
|
|
2634
|
-
401: 'Unauthorized'
|
|
2674
|
+
ruleId: data.ruleId,
|
|
2675
|
+
status: data.status,
|
|
2676
|
+
fromDate: data.fromDate,
|
|
2677
|
+
toDate: data.toDate
|
|
2635
2678
|
}
|
|
2636
2679
|
});
|
|
2637
2680
|
}
|
|
2638
2681
|
|
|
2639
2682
|
/**
|
|
2640
|
-
*
|
|
2683
|
+
* List overdue expected transactions
|
|
2684
|
+
* Returns all overdue expected transactions (PENDING past tolerance)
|
|
2641
2685
|
* @param data The data for the request.
|
|
2642
2686
|
* @param data.region Region code for tenant context
|
|
2643
|
-
* @
|
|
2644
|
-
* @returns ValidateRuleResponseDto Validation result
|
|
2687
|
+
* @returns ExpectedTransactionListResponseDto Overdue transactions retrieved successfully
|
|
2645
2688
|
* @throws ApiError
|
|
2646
2689
|
*/
|
|
2647
|
-
public static
|
|
2648
|
-
data:
|
|
2649
|
-
): CancelablePromise<
|
|
2690
|
+
public static expectedTransactionControllerFindOverdue(
|
|
2691
|
+
data: ExpectedTransactionControllerFindOverdueData
|
|
2692
|
+
): CancelablePromise<ExpectedTransactionControllerFindOverdueResponse> {
|
|
2650
2693
|
return __request(OpenAPI, {
|
|
2651
|
-
method: '
|
|
2652
|
-
url: '/api/v1/{region}/bean/
|
|
2694
|
+
method: 'GET',
|
|
2695
|
+
url: '/api/v1/{region}/bean/expected-transactions/overdue',
|
|
2696
|
+
path: {
|
|
2697
|
+
region: data.region
|
|
2698
|
+
}
|
|
2699
|
+
});
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2702
|
+
/**
|
|
2703
|
+
* Get expected transaction by ID
|
|
2704
|
+
* Returns a specific expected transaction with rule details
|
|
2705
|
+
* @param data The data for the request.
|
|
2706
|
+
* @param data.id Expected transaction ID
|
|
2707
|
+
* @param data.region Region code for tenant context
|
|
2708
|
+
* @returns ExpectedTransactionResponseDto Expected transaction retrieved successfully
|
|
2709
|
+
* @throws ApiError
|
|
2710
|
+
*/
|
|
2711
|
+
public static expectedTransactionControllerFindOne(
|
|
2712
|
+
data: ExpectedTransactionControllerFindOneData
|
|
2713
|
+
): CancelablePromise<ExpectedTransactionControllerFindOneResponse> {
|
|
2714
|
+
return __request(OpenAPI, {
|
|
2715
|
+
method: 'GET',
|
|
2716
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}',
|
|
2653
2717
|
path: {
|
|
2718
|
+
id: data.id,
|
|
2654
2719
|
region: data.region
|
|
2655
2720
|
},
|
|
2656
|
-
body: data.requestBody,
|
|
2657
|
-
mediaType: 'application/json',
|
|
2658
2721
|
errors: {
|
|
2659
|
-
|
|
2660
|
-
401: 'Unauthorized'
|
|
2722
|
+
404: 'Expected transaction not found'
|
|
2661
2723
|
}
|
|
2662
2724
|
});
|
|
2663
2725
|
}
|
|
2664
2726
|
|
|
2665
2727
|
/**
|
|
2666
|
-
*
|
|
2728
|
+
* Skip expected transaction
|
|
2729
|
+
* Marks an expected transaction as skipped (PENDING -> SKIPPED)
|
|
2667
2730
|
* @param data The data for the request.
|
|
2731
|
+
* @param data.id Expected transaction ID
|
|
2668
2732
|
* @param data.region Region code for tenant context
|
|
2669
|
-
* @
|
|
2670
|
-
* @returns BulkCreateRulesResponseDto Bulk create completed
|
|
2733
|
+
* @returns ExpectedTransactionResponseDto Expected transaction skipped successfully
|
|
2671
2734
|
* @throws ApiError
|
|
2672
2735
|
*/
|
|
2673
|
-
public static
|
|
2674
|
-
data:
|
|
2675
|
-
): CancelablePromise<
|
|
2736
|
+
public static expectedTransactionControllerSkip(
|
|
2737
|
+
data: ExpectedTransactionControllerSkipData
|
|
2738
|
+
): CancelablePromise<ExpectedTransactionControllerSkipResponse> {
|
|
2676
2739
|
return __request(OpenAPI, {
|
|
2677
2740
|
method: 'POST',
|
|
2678
|
-
url: '/api/v1/{region}/bean/
|
|
2741
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
|
|
2679
2742
|
path: {
|
|
2743
|
+
id: data.id,
|
|
2680
2744
|
region: data.region
|
|
2681
|
-
},
|
|
2682
|
-
body: data.requestBody,
|
|
2683
|
-
mediaType: 'application/json',
|
|
2745
|
+
},
|
|
2684
2746
|
errors: {
|
|
2685
|
-
400: '
|
|
2686
|
-
|
|
2747
|
+
400: 'Cannot skip - not in PENDING status',
|
|
2748
|
+
404: 'Expected transaction not found'
|
|
2687
2749
|
}
|
|
2688
2750
|
});
|
|
2689
2751
|
}
|
|
2690
2752
|
|
|
2691
2753
|
/**
|
|
2692
|
-
*
|
|
2754
|
+
* Undo skip
|
|
2755
|
+
* Reverses a skip operation (SKIPPED -> PENDING)
|
|
2693
2756
|
* @param data The data for the request.
|
|
2694
|
-
* @param data.
|
|
2757
|
+
* @param data.id Expected transaction ID
|
|
2695
2758
|
* @param data.region Region code for tenant context
|
|
2696
|
-
* @returns
|
|
2759
|
+
* @returns void Skip undone successfully
|
|
2697
2760
|
* @throws ApiError
|
|
2698
2761
|
*/
|
|
2699
|
-
public static
|
|
2700
|
-
data:
|
|
2701
|
-
): CancelablePromise<
|
|
2762
|
+
public static expectedTransactionControllerUndoSkip(
|
|
2763
|
+
data: ExpectedTransactionControllerUndoSkipData
|
|
2764
|
+
): CancelablePromise<ExpectedTransactionControllerUndoSkipResponse> {
|
|
2702
2765
|
return __request(OpenAPI, {
|
|
2703
|
-
method: '
|
|
2704
|
-
url: '/api/v1/{region}/bean/
|
|
2766
|
+
method: 'DELETE',
|
|
2767
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
|
|
2705
2768
|
path: {
|
|
2706
|
-
|
|
2769
|
+
id: data.id,
|
|
2707
2770
|
region: data.region
|
|
2708
2771
|
},
|
|
2709
2772
|
errors: {
|
|
2710
|
-
400: '
|
|
2711
|
-
|
|
2773
|
+
400: 'Cannot undo - not in SKIPPED status',
|
|
2774
|
+
404: 'Expected transaction not found'
|
|
2712
2775
|
}
|
|
2713
2776
|
});
|
|
2714
2777
|
}
|
|
2715
2778
|
|
|
2716
2779
|
/**
|
|
2717
|
-
*
|
|
2780
|
+
* Confirm transaction match
|
|
2781
|
+
* Manually matches an expected transaction with an actual transaction
|
|
2718
2782
|
* @param data The data for the request.
|
|
2719
|
-
* @param data.
|
|
2783
|
+
* @param data.id Expected transaction ID
|
|
2720
2784
|
* @param data.region Region code for tenant context
|
|
2721
|
-
* @
|
|
2785
|
+
* @param data.requestBody
|
|
2786
|
+
* @returns unknown Match confirmed successfully
|
|
2722
2787
|
* @throws ApiError
|
|
2723
2788
|
*/
|
|
2724
|
-
public static
|
|
2725
|
-
data:
|
|
2726
|
-
): CancelablePromise<
|
|
2789
|
+
public static expectedTransactionControllerConfirmMatch(
|
|
2790
|
+
data: ExpectedTransactionControllerConfirmMatchData
|
|
2791
|
+
): CancelablePromise<ExpectedTransactionControllerConfirmMatchResponse> {
|
|
2727
2792
|
return __request(OpenAPI, {
|
|
2728
|
-
method: '
|
|
2729
|
-
url: '/api/v1/{region}/bean/
|
|
2793
|
+
method: 'POST',
|
|
2794
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
|
|
2730
2795
|
path: {
|
|
2731
|
-
|
|
2796
|
+
id: data.id,
|
|
2732
2797
|
region: data.region
|
|
2733
2798
|
},
|
|
2799
|
+
body: data.requestBody,
|
|
2800
|
+
mediaType: 'application/json',
|
|
2734
2801
|
errors: {
|
|
2735
|
-
|
|
2802
|
+
400: 'Cannot match - not in PENDING status',
|
|
2803
|
+
404: 'Expected or actual transaction not found',
|
|
2804
|
+
409: 'Actual transaction already matched to another rule'
|
|
2736
2805
|
}
|
|
2737
2806
|
});
|
|
2738
2807
|
}
|
|
2739
2808
|
|
|
2740
2809
|
/**
|
|
2741
|
-
*
|
|
2810
|
+
* Unmatch transaction
|
|
2811
|
+
* Removes the match between expected and actual transaction (COMPLETED -> PENDING)
|
|
2742
2812
|
* @param data The data for the request.
|
|
2743
|
-
* @param data.
|
|
2813
|
+
* @param data.id Expected transaction ID
|
|
2744
2814
|
* @param data.region Region code for tenant context
|
|
2745
|
-
* @returns
|
|
2815
|
+
* @returns void Match removed successfully
|
|
2746
2816
|
* @throws ApiError
|
|
2747
2817
|
*/
|
|
2748
|
-
public static
|
|
2749
|
-
data:
|
|
2750
|
-
): CancelablePromise<
|
|
2818
|
+
public static expectedTransactionControllerUnmatch(
|
|
2819
|
+
data: ExpectedTransactionControllerUnmatchData
|
|
2820
|
+
): CancelablePromise<ExpectedTransactionControllerUnmatchResponse> {
|
|
2751
2821
|
return __request(OpenAPI, {
|
|
2752
|
-
method: '
|
|
2753
|
-
url: '/api/v1/{region}/bean/
|
|
2822
|
+
method: 'DELETE',
|
|
2823
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
|
|
2754
2824
|
path: {
|
|
2755
|
-
|
|
2825
|
+
id: data.id,
|
|
2756
2826
|
region: data.region
|
|
2757
2827
|
},
|
|
2758
2828
|
errors: {
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
404: 'Rule not found'
|
|
2829
|
+
400: 'Cannot unmatch - not in COMPLETED status',
|
|
2830
|
+
404: 'Expected transaction not found'
|
|
2762
2831
|
}
|
|
2763
2832
|
});
|
|
2764
2833
|
}
|
|
2765
2834
|
|
|
2766
2835
|
/**
|
|
2767
|
-
*
|
|
2836
|
+
* Enter Now
|
|
2837
|
+
* Creates an actual transaction for an expected transaction (YNAB-style Enter Now)
|
|
2768
2838
|
* @param data The data for the request.
|
|
2769
|
-
* @param data.
|
|
2839
|
+
* @param data.id Expected transaction ID
|
|
2770
2840
|
* @param data.region Region code for tenant context
|
|
2771
2841
|
* @param data.requestBody
|
|
2772
|
-
* @returns
|
|
2842
|
+
* @returns unknown Transaction created successfully
|
|
2773
2843
|
* @throws ApiError
|
|
2774
2844
|
*/
|
|
2775
|
-
public static
|
|
2776
|
-
data:
|
|
2777
|
-
): CancelablePromise<
|
|
2845
|
+
public static expectedTransactionControllerEnterNow(
|
|
2846
|
+
data: ExpectedTransactionControllerEnterNowData
|
|
2847
|
+
): CancelablePromise<ExpectedTransactionControllerEnterNowResponse> {
|
|
2778
2848
|
return __request(OpenAPI, {
|
|
2779
|
-
method: '
|
|
2780
|
-
url: '/api/v1/{region}/bean/
|
|
2849
|
+
method: 'POST',
|
|
2850
|
+
url: '/api/v1/{region}/bean/expected-transactions/{id}/enter',
|
|
2781
2851
|
path: {
|
|
2782
|
-
|
|
2852
|
+
id: data.id,
|
|
2783
2853
|
region: data.region
|
|
2784
2854
|
},
|
|
2785
2855
|
body: data.requestBody,
|
|
2786
2856
|
mediaType: 'application/json',
|
|
2787
2857
|
errors: {
|
|
2788
|
-
400: '
|
|
2789
|
-
|
|
2790
|
-
403: 'Forbidden - not owner of rule',
|
|
2791
|
-
404: 'Rule not found',
|
|
2792
|
-
409: 'Resource conflict - rule is being modified by another process'
|
|
2858
|
+
400: 'Cannot enter - not in PENDING status or missing accounts',
|
|
2859
|
+
404: 'Expected transaction or accounts not found'
|
|
2793
2860
|
}
|
|
2794
2861
|
});
|
|
2795
2862
|
}
|
|
2863
|
+
}
|
|
2796
2864
|
|
|
2865
|
+
export class RecurringForecastService {
|
|
2797
2866
|
/**
|
|
2798
|
-
*
|
|
2867
|
+
* Get cash flow forecast
|
|
2868
|
+
* Returns predicted outflows for the next N months based on active recurring rules
|
|
2799
2869
|
* @param data The data for the request.
|
|
2800
|
-
* @param data.ruleId Rule ID to delete
|
|
2801
2870
|
* @param data.region Region code for tenant context
|
|
2802
|
-
* @
|
|
2871
|
+
* @param data.months Number of months to forecast (1-12, default 3)
|
|
2872
|
+
* @returns ForecastResponseDto Forecast retrieved successfully
|
|
2803
2873
|
* @throws ApiError
|
|
2804
2874
|
*/
|
|
2805
|
-
public static
|
|
2806
|
-
data:
|
|
2807
|
-
): CancelablePromise<
|
|
2875
|
+
public static forecastControllerGetForecast(
|
|
2876
|
+
data: ForecastControllerGetForecastData
|
|
2877
|
+
): CancelablePromise<ForecastControllerGetForecastResponse> {
|
|
2808
2878
|
return __request(OpenAPI, {
|
|
2809
|
-
method: '
|
|
2810
|
-
url: '/api/v1/{region}/bean/
|
|
2879
|
+
method: 'GET',
|
|
2880
|
+
url: '/api/v1/{region}/bean/recurring/forecast',
|
|
2811
2881
|
path: {
|
|
2812
|
-
ruleId: data.ruleId,
|
|
2813
2882
|
region: data.region
|
|
2814
2883
|
},
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
403: 'Forbidden - not owner of rule',
|
|
2818
|
-
404: 'Rule not found',
|
|
2819
|
-
409: 'Resource conflict - rule is being modified by another process'
|
|
2884
|
+
query: {
|
|
2885
|
+
months: data.months
|
|
2820
2886
|
}
|
|
2821
2887
|
});
|
|
2822
2888
|
}
|
|
2889
|
+
}
|
|
2823
2890
|
|
|
2891
|
+
export class BeanCategoryCatalogService {
|
|
2824
2892
|
/**
|
|
2825
|
-
*
|
|
2893
|
+
* List category catalog for a region
|
|
2894
|
+
* Returns the region-scoped category slugs (expense/income/investment/banking/transfer/payment) for the NLP result picker, each with the categoryAccount paths the region-enabled system rules map it to (#816). CN-exclusive payment instruments (huabei/baitiao) appear only under /cn.
|
|
2826
2895
|
* @param data The data for the request.
|
|
2827
|
-
* @param data.ruleId Rule ID to test
|
|
2828
2896
|
* @param data.region Region code for tenant context
|
|
2829
|
-
* @param data.
|
|
2830
|
-
* @
|
|
2897
|
+
* @param data.scenario Filter by scenario
|
|
2898
|
+
* @param data.routeBearing Filter by routeBearing (entity-router route() consumes it)
|
|
2899
|
+
* @returns CategoryCatalogListResponseDto Category catalog retrieved successfully
|
|
2831
2900
|
* @throws ApiError
|
|
2832
2901
|
*/
|
|
2833
|
-
public static
|
|
2834
|
-
data:
|
|
2835
|
-
): CancelablePromise<
|
|
2902
|
+
public static categoryCatalogControllerList(
|
|
2903
|
+
data: CategoryCatalogControllerListData
|
|
2904
|
+
): CancelablePromise<CategoryCatalogControllerListResponse> {
|
|
2836
2905
|
return __request(OpenAPI, {
|
|
2837
|
-
method: '
|
|
2838
|
-
url: '/api/v1/{region}/bean/
|
|
2906
|
+
method: 'GET',
|
|
2907
|
+
url: '/api/v1/{region}/bean/categories',
|
|
2839
2908
|
path: {
|
|
2840
|
-
ruleId: data.ruleId,
|
|
2841
2909
|
region: data.region
|
|
2842
2910
|
},
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
401: 'Unauthorized',
|
|
2847
|
-
403: 'Forbidden - not owner of rule',
|
|
2848
|
-
404: 'Rule not found'
|
|
2911
|
+
query: {
|
|
2912
|
+
scenario: data.scenario,
|
|
2913
|
+
routeBearing: data.routeBearing
|
|
2849
2914
|
}
|
|
2850
2915
|
});
|
|
2851
2916
|
}
|
|
@@ -3030,7 +3095,7 @@ export class OnboardingService {
|
|
|
3030
3095
|
/**
|
|
3031
3096
|
* Bootstrap core accounts + register asset accounts with opening balances (ADR-0113)
|
|
3032
3097
|
* @param data The data for the request.
|
|
3033
|
-
* @param data.region Region code for tenant context
|
|
3098
|
+
* @param data.region Region code for tenant context. Not-yet-open codes are accepted: the universal catalog backs onboarding regardless of region (#759)
|
|
3034
3099
|
* @param data.requestBody
|
|
3035
3100
|
* @returns unknown Onboarding bootstrap result.
|
|
3036
3101
|
* @throws ApiError
|
|
@@ -3163,13 +3228,20 @@ export class BeanExportService {
|
|
|
3163
3228
|
/**
|
|
3164
3229
|
* Export Beancount ledger as ZIP
|
|
3165
3230
|
* Export all user Beancount data as a ZIP file containing ledger.beancount and yearly files in community format.
|
|
3166
|
-
* @
|
|
3231
|
+
* @param data The data for the request.
|
|
3232
|
+
* @param data.region Region code for tenant context
|
|
3233
|
+
* @returns binary ZIP archive (application/zip) streamed as an attachment
|
|
3167
3234
|
* @throws ApiError
|
|
3168
3235
|
*/
|
|
3169
|
-
public static exportControllerExportBeancount(
|
|
3236
|
+
public static exportControllerExportBeancount(
|
|
3237
|
+
data: ExportControllerExportBeancountData
|
|
3238
|
+
): CancelablePromise<ExportControllerExportBeancountResponse> {
|
|
3170
3239
|
return __request(OpenAPI, {
|
|
3171
3240
|
method: 'GET',
|
|
3172
|
-
url: '/api/v1/{region}/bean/export/beancount'
|
|
3241
|
+
url: '/api/v1/{region}/bean/export/beancount',
|
|
3242
|
+
path: {
|
|
3243
|
+
region: data.region
|
|
3244
|
+
}
|
|
3173
3245
|
});
|
|
3174
3246
|
}
|
|
3175
3247
|
}
|
|
@@ -3206,7 +3278,7 @@ export class BeanImportService {
|
|
|
3206
3278
|
|
|
3207
3279
|
/**
|
|
3208
3280
|
* Identify file type
|
|
3209
|
-
*
|
|
3281
|
+
* Server-side importer identification has been removed (ADR-0101); file matching is handled client-side via the community parser pipeline. Always returns identified=false with an explanatory message; kept for backward compatibility. Does not perform actual import.
|
|
3210
3282
|
* @param data The data for the request.
|
|
3211
3283
|
* @param data.region Region code for tenant context
|
|
3212
3284
|
* @param data.formData File to identify
|
|
@@ -3726,13 +3798,20 @@ export class BeanPlatformsService {
|
|
|
3726
3798
|
|
|
3727
3799
|
/**
|
|
3728
3800
|
* Get platform list for current user
|
|
3801
|
+
* @param data The data for the request.
|
|
3802
|
+
* @param data.region Region code (ISO 3166-1 alpha-2) that biases within-type-bucket ordering (local-region platforms first). Case-insensitive — stored/compared UPPERCASE ("cn" == "CN").
|
|
3729
3803
|
* @returns PlatformListItemDto List of platforms with user binding status
|
|
3730
3804
|
* @throws ApiError
|
|
3731
3805
|
*/
|
|
3732
|
-
public static platformControllerGetPlatformList(
|
|
3806
|
+
public static platformControllerGetPlatformList(
|
|
3807
|
+
data: PlatformControllerGetPlatformListData = {}
|
|
3808
|
+
): CancelablePromise<PlatformControllerGetPlatformListResponse> {
|
|
3733
3809
|
return __request(OpenAPI, {
|
|
3734
3810
|
method: 'GET',
|
|
3735
|
-
url: '/api/v1/bean/platforms/list'
|
|
3811
|
+
url: '/api/v1/bean/platforms/list',
|
|
3812
|
+
query: {
|
|
3813
|
+
region: data.region
|
|
3814
|
+
}
|
|
3736
3815
|
});
|
|
3737
3816
|
}
|
|
3738
3817
|
|
|
@@ -3740,7 +3819,7 @@ export class BeanPlatformsService {
|
|
|
3740
3819
|
* Match platforms by name or alias
|
|
3741
3820
|
* @param data The data for the request.
|
|
3742
3821
|
* @param data.q Search query — Chinese name, English name, or abbreviation
|
|
3743
|
-
* @param data.region Region code
|
|
3822
|
+
* @param data.region Region code (ISO 3166-1 alpha-2) that biases within-tier ordering (local-region platforms first); also the intended categoryOverrides key. Case-insensitive — stored/compared UPPERCASE ("cn" == "CN").
|
|
3744
3823
|
* @returns PlatformMatchResponseDto Matching platforms with overall match type and truncation flag
|
|
3745
3824
|
* @throws ApiError
|
|
3746
3825
|
*/
|
|
@@ -3757,6 +3836,31 @@ export class BeanPlatformsService {
|
|
|
3757
3836
|
});
|
|
3758
3837
|
}
|
|
3759
3838
|
|
|
3839
|
+
/**
|
|
3840
|
+
* Get the region and candidate account standards for a platform
|
|
3841
|
+
* @param data The data for the request.
|
|
3842
|
+
* @param data.id Platform ID (from a match result)
|
|
3843
|
+
* @param data.region Region code (ISO 3166-1 alpha-2, case-insensitive). Required for global platforms (countryCode null) — resolved as their template region; ignored when the platform has its own countryCode.
|
|
3844
|
+
* @param data.type Filter templates by account type (path first segment)
|
|
3845
|
+
* @returns PlatformStandardsResponseDto Resolved region plus the merged account-standard catalog of that region (groupable by productCategory client-side)
|
|
3846
|
+
* @throws ApiError
|
|
3847
|
+
*/
|
|
3848
|
+
public static platformControllerGetPlatformStandards(
|
|
3849
|
+
data: PlatformControllerGetPlatformStandardsData
|
|
3850
|
+
): CancelablePromise<PlatformControllerGetPlatformStandardsResponse> {
|
|
3851
|
+
return __request(OpenAPI, {
|
|
3852
|
+
method: 'GET',
|
|
3853
|
+
url: '/api/v1/bean/platforms/{id}/standards',
|
|
3854
|
+
path: {
|
|
3855
|
+
id: data.id
|
|
3856
|
+
},
|
|
3857
|
+
query: {
|
|
3858
|
+
region: data.region,
|
|
3859
|
+
type: data.type
|
|
3860
|
+
}
|
|
3861
|
+
});
|
|
3862
|
+
}
|
|
3863
|
+
|
|
3760
3864
|
/**
|
|
3761
3865
|
* Update a platform
|
|
3762
3866
|
* @param data The data for the request.
|
|
@@ -3923,6 +4027,34 @@ export class DashboardService {
|
|
|
3923
4027
|
}
|
|
3924
4028
|
});
|
|
3925
4029
|
}
|
|
4030
|
+
|
|
4031
|
+
/**
|
|
4032
|
+
* Get the composite P8 advisor context
|
|
4033
|
+
* Assembles the P8 data context in one call: net worth (verbatim GET /dashboard/net-worth shape, user base currency semantics per ADR-0070), trailing-12m flow totals over the 12 calendar months including the as-of month, and top-3 expense categories by account-path leaf key — both flow blocks priced in CNY per the P8 contract. The P8 snake_case field spellings (as_of, net_worth, trailing_12m) are mapped by the consumer; the wire keeps the family camelCase
|
|
4034
|
+
* @param data The data for the request.
|
|
4035
|
+
* @param data.region Region code for tenant context
|
|
4036
|
+
* @param data.date As-of date for the snapshot and the trailing-12m window anchor (ISO 8601 format)
|
|
4037
|
+
* @returns AdvisorContextResponseDto Advisor context retrieved successfully
|
|
4038
|
+
* @throws ApiError
|
|
4039
|
+
*/
|
|
4040
|
+
public static dashboardControllerGetAdvisorContext(
|
|
4041
|
+
data: DashboardControllerGetAdvisorContextData
|
|
4042
|
+
): CancelablePromise<DashboardControllerGetAdvisorContextResponse> {
|
|
4043
|
+
return __request(OpenAPI, {
|
|
4044
|
+
method: 'GET',
|
|
4045
|
+
url: '/api/v1/{region}/dashboard/advisor-context',
|
|
4046
|
+
path: {
|
|
4047
|
+
region: data.region
|
|
4048
|
+
},
|
|
4049
|
+
query: {
|
|
4050
|
+
date: data.date
|
|
4051
|
+
},
|
|
4052
|
+
errors: {
|
|
4053
|
+
400: 'Invalid date format',
|
|
4054
|
+
401: 'User not authenticated, or the token is not advisor-scoped (exchange via POST /auth/sessions/advisor, #1512)'
|
|
4055
|
+
}
|
|
4056
|
+
});
|
|
4057
|
+
}
|
|
3926
4058
|
}
|
|
3927
4059
|
|
|
3928
4060
|
export class InvestmentService {
|
|
@@ -3998,17 +4130,75 @@ export class AuthService {
|
|
|
3998
4130
|
}
|
|
3999
4131
|
});
|
|
4000
4132
|
}
|
|
4133
|
+
|
|
4134
|
+
/**
|
|
4135
|
+
* Exchange an access token for an advisor-scoped, short-TTL JWT (#1512)
|
|
4136
|
+
* @param data The data for the request.
|
|
4137
|
+
* @param data.requestBody
|
|
4138
|
+
* @returns AdvisorLoginResponseDto Advisor-scope login successful — the token is valid only on advisor tool-face endpoints (e.g. GET /:region/dashboard/advisor-context)
|
|
4139
|
+
* @throws ApiError
|
|
4140
|
+
*/
|
|
4141
|
+
public static authControllerAdvisorTokenLogin(
|
|
4142
|
+
data: AuthControllerAdvisorTokenLoginData
|
|
4143
|
+
): CancelablePromise<AuthControllerAdvisorTokenLoginResponse> {
|
|
4144
|
+
return __request(OpenAPI, {
|
|
4145
|
+
method: 'POST',
|
|
4146
|
+
url: '/api/v1/auth/sessions/advisor',
|
|
4147
|
+
body: data.requestBody,
|
|
4148
|
+
mediaType: 'application/json',
|
|
4149
|
+
errors: {
|
|
4150
|
+
401: 'Invalid access token'
|
|
4151
|
+
}
|
|
4152
|
+
});
|
|
4153
|
+
}
|
|
4154
|
+
}
|
|
4155
|
+
|
|
4156
|
+
export class CommunityService {
|
|
4157
|
+
/**
|
|
4158
|
+
* Relay a sanitized parser-contribution payload
|
|
4159
|
+
* A server-side bot re-sanitizes the payload and opens an issue on the target repository; the issue URL is returned. The payload is never persisted or logged (forward-and-drop).
|
|
4160
|
+
* @param data The data for the request.
|
|
4161
|
+
* @param data.region Region code for tenant context (routing only; the institution region rides in the payload meta)
|
|
4162
|
+
* @param data.requestBody
|
|
4163
|
+
* @returns ParserContributionRelayResponseDto Issue created by the bot
|
|
4164
|
+
* @throws ApiError
|
|
4165
|
+
*/
|
|
4166
|
+
public static parserContributionControllerCreate(
|
|
4167
|
+
data: ParserContributionControllerCreateData
|
|
4168
|
+
): CancelablePromise<ParserContributionControllerCreateResponse> {
|
|
4169
|
+
return __request(OpenAPI, {
|
|
4170
|
+
method: 'POST',
|
|
4171
|
+
url: '/api/v1/{region}/community/parser-contributions',
|
|
4172
|
+
path: {
|
|
4173
|
+
region: data.region
|
|
4174
|
+
},
|
|
4175
|
+
body: data.requestBody,
|
|
4176
|
+
mediaType: 'application/json',
|
|
4177
|
+
errors: {
|
|
4178
|
+
401: 'Unauthorized',
|
|
4179
|
+
422: 'Validation failed (institution slug, empty samples, row/cell size limits)',
|
|
4180
|
+
429: 'Rate limited (5 submissions per user per hour)',
|
|
4181
|
+
501: 'Relay not configured on this deployment — clients fall back to the clipboard flow',
|
|
4182
|
+
502: 'GitHub bot failure (upstream), safe to retry'
|
|
4183
|
+
}
|
|
4184
|
+
});
|
|
4185
|
+
}
|
|
4001
4186
|
}
|
|
4002
4187
|
|
|
4003
|
-
export class
|
|
4188
|
+
export class AdminCacheService {
|
|
4004
4189
|
/**
|
|
4005
|
-
*
|
|
4190
|
+
* Flush entire cache (L1 + L2)
|
|
4191
|
+
* Clears ALL cache entries across ALL namespaces and users. Use only for emergency cache corruption recovery, maintenance-window refresh, or development resets.
|
|
4192
|
+
* @returns unknown Cache flushed successfully
|
|
4006
4193
|
* @throws ApiError
|
|
4007
4194
|
*/
|
|
4008
4195
|
public static cacheControllerFlushCache(): CancelablePromise<CacheControllerFlushCacheResponse> {
|
|
4009
4196
|
return __request(OpenAPI, {
|
|
4010
4197
|
method: 'POST',
|
|
4011
|
-
url: '/api/v1/cache/flush'
|
|
4198
|
+
url: '/api/v1/cache/flush',
|
|
4199
|
+
errors: {
|
|
4200
|
+
403: 'Admin access required'
|
|
4201
|
+
}
|
|
4012
4202
|
});
|
|
4013
4203
|
}
|
|
4014
4204
|
}
|
|
@@ -4169,3 +4359,53 @@ export class InfoService {
|
|
|
4169
4359
|
});
|
|
4170
4360
|
}
|
|
4171
4361
|
}
|
|
4362
|
+
|
|
4363
|
+
export class MarketDataService {
|
|
4364
|
+
/**
|
|
4365
|
+
* Search market symbols by name or code
|
|
4366
|
+
* Ranked search over the openbb catalog. Empty `q` returns [].
|
|
4367
|
+
* @param data The data for the request.
|
|
4368
|
+
* @param data.q Search term — matched against symbol and instrument name. Empty string returns [].
|
|
4369
|
+
* @param data.limit Maximum number of results (clamped 1..50)
|
|
4370
|
+
* @param data.exchange Filter by exchange code (e.g. US, HK, SS, SZ). A-share codes also match symbol notations and venue-code aliases (exchange=SS matches SH/SHH column values and bare 6-digit Shanghai symbols; SZ likewise)
|
|
4371
|
+
* @param data.assetType Filter by OpenBB asset_type (e.g. stock, etf)
|
|
4372
|
+
* @returns SymbolSearchResultDto Ranked search results
|
|
4373
|
+
* @throws ApiError
|
|
4374
|
+
*/
|
|
4375
|
+
public static symbolControllerSearch(
|
|
4376
|
+
data: SymbolControllerSearchData
|
|
4377
|
+
): CancelablePromise<SymbolControllerSearchResponse> {
|
|
4378
|
+
return __request(OpenAPI, {
|
|
4379
|
+
method: 'GET',
|
|
4380
|
+
url: '/api/v1/market/symbols/search',
|
|
4381
|
+
query: {
|
|
4382
|
+
q: data.q,
|
|
4383
|
+
limit: data.limit,
|
|
4384
|
+
exchange: data.exchange,
|
|
4385
|
+
assetType: data.assetType
|
|
4386
|
+
}
|
|
4387
|
+
});
|
|
4388
|
+
}
|
|
4389
|
+
|
|
4390
|
+
/**
|
|
4391
|
+
* Get a market symbol quote
|
|
4392
|
+
* @param data The data for the request.
|
|
4393
|
+
* @param data.symbol
|
|
4394
|
+
* @returns SymbolQuoteDto Symbol quote
|
|
4395
|
+
* @throws ApiError
|
|
4396
|
+
*/
|
|
4397
|
+
public static symbolControllerGetQuote(
|
|
4398
|
+
data: SymbolControllerGetQuoteData
|
|
4399
|
+
): CancelablePromise<SymbolControllerGetQuoteResponse> {
|
|
4400
|
+
return __request(OpenAPI, {
|
|
4401
|
+
method: 'GET',
|
|
4402
|
+
url: '/api/v1/market/symbols/{symbol}/quote',
|
|
4403
|
+
path: {
|
|
4404
|
+
symbol: data.symbol
|
|
4405
|
+
},
|
|
4406
|
+
errors: {
|
|
4407
|
+
404: 'Symbol not found in the openbb catalog'
|
|
4408
|
+
}
|
|
4409
|
+
});
|
|
4410
|
+
}
|
|
4411
|
+
}
|