@firela/api-types 0.0.0-canary.5c1ed455 → 0.0.0-canary.610daafc
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 +563 -48
- package/dist/index.d.ts +563 -48
- package/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
- package/src/generated/schemas.gen.ts +513 -73
- package/src/generated/services.gen.ts +262 -1
- package/src/generated/types.gen.ts +593 -50
|
@@ -848,6 +848,51 @@ export type flag2 =
|
|
|
848
848
|
*/
|
|
849
849
|
export type status2 = 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
|
|
850
850
|
|
|
851
|
+
export type BalanceByCurrencyDto = {
|
|
852
|
+
/**
|
|
853
|
+
* ISO 4217 currency code
|
|
854
|
+
*/
|
|
855
|
+
currency: string;
|
|
856
|
+
/**
|
|
857
|
+
* Balance amount
|
|
858
|
+
*/
|
|
859
|
+
balance: string;
|
|
860
|
+
};
|
|
861
|
+
|
|
862
|
+
export type ExchangeRateWarningDto = {
|
|
863
|
+
/**
|
|
864
|
+
* Warning type
|
|
865
|
+
*/
|
|
866
|
+
type: string;
|
|
867
|
+
/**
|
|
868
|
+
* Currency without exchange rate
|
|
869
|
+
*/
|
|
870
|
+
currency: string;
|
|
871
|
+
/**
|
|
872
|
+
* Total amount affected
|
|
873
|
+
*/
|
|
874
|
+
totalAmount: string;
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
export type TransactionListSummaryDto = {
|
|
878
|
+
/**
|
|
879
|
+
* Partial converted total in base currency (rated currencies only, raw Beancount sign). When warnings is non-empty this excludes currencies missing an FX rate; may be "0.00" if ALL non-base currencies lack a rate. Converted at the dateTo (or current) available rate.
|
|
880
|
+
*/
|
|
881
|
+
totalAmount: string;
|
|
882
|
+
/**
|
|
883
|
+
* Base currency (ISO 4217)
|
|
884
|
+
*/
|
|
885
|
+
currency: string;
|
|
886
|
+
/**
|
|
887
|
+
* Raw (unconverted) balance per currency
|
|
888
|
+
*/
|
|
889
|
+
balanceByCurrency: Array<BalanceByCurrencyDto>;
|
|
890
|
+
/**
|
|
891
|
+
* Currencies missing an FX rate (omitted when empty)
|
|
892
|
+
*/
|
|
893
|
+
warnings?: Array<ExchangeRateWarningDto>;
|
|
894
|
+
};
|
|
895
|
+
|
|
851
896
|
export type TransactionListResponseDto = {
|
|
852
897
|
/**
|
|
853
898
|
* List of transactions
|
|
@@ -865,6 +910,10 @@ export type TransactionListResponseDto = {
|
|
|
865
910
|
* Number of items skipped
|
|
866
911
|
*/
|
|
867
912
|
offset: number;
|
|
913
|
+
/**
|
|
914
|
+
* Amount summary for the full filtered set (#514). Present only when the request has a single account OR category viewpoint; omitted for search-only / plain-list / dual-perspective requests.
|
|
915
|
+
*/
|
|
916
|
+
summary?: TransactionListSummaryDto;
|
|
868
917
|
};
|
|
869
918
|
|
|
870
919
|
export type TagSuggestionDto = {
|
|
@@ -1324,17 +1373,17 @@ export type ResolveResultDto = {
|
|
|
1324
1373
|
[key: string]: string;
|
|
1325
1374
|
};
|
|
1326
1375
|
/**
|
|
1327
|
-
* Resolution ID for undo
|
|
1376
|
+
* Resolution ID for undo. Absent when the resolver rejected the decision (review stayed PENDING).
|
|
1328
1377
|
*/
|
|
1329
|
-
resolutionId
|
|
1378
|
+
resolutionId?: string;
|
|
1330
1379
|
/**
|
|
1331
1380
|
* Whether this decision can be undone
|
|
1332
1381
|
*/
|
|
1333
|
-
canUndo
|
|
1382
|
+
canUndo?: boolean;
|
|
1334
1383
|
/**
|
|
1335
1384
|
* Deadline for undo (24h from resolution)
|
|
1336
1385
|
*/
|
|
1337
|
-
undoDeadline
|
|
1386
|
+
undoDeadline?: string;
|
|
1338
1387
|
/**
|
|
1339
1388
|
* Rule ID if learning was triggered (ACCEPT_AND_LEARN actions). Use this to deep-link to the rule management page.
|
|
1340
1389
|
*/
|
|
@@ -3029,6 +3078,96 @@ export type UpdatePropertyDto = {
|
|
|
3029
3078
|
value: string;
|
|
3030
3079
|
};
|
|
3031
3080
|
|
|
3081
|
+
export type CreateBeanEventDto = {
|
|
3082
|
+
/**
|
|
3083
|
+
* Life event date (ISO 8601)
|
|
3084
|
+
*/
|
|
3085
|
+
date: string;
|
|
3086
|
+
/**
|
|
3087
|
+
* Life event type (e.g., "employer", "location", "marital-status") — user-defined, no enum constraint at engine layer
|
|
3088
|
+
*/
|
|
3089
|
+
type: string;
|
|
3090
|
+
/**
|
|
3091
|
+
* Life event description. Empty string is a VALID value (distinct from absence).
|
|
3092
|
+
*/
|
|
3093
|
+
description: string;
|
|
3094
|
+
/**
|
|
3095
|
+
* Product-side metadata (lives in BeanEvent.meta JSON, never in engine Event fields)
|
|
3096
|
+
*/
|
|
3097
|
+
meta?: {
|
|
3098
|
+
[key: string]: unknown;
|
|
3099
|
+
};
|
|
3100
|
+
};
|
|
3101
|
+
|
|
3102
|
+
export type EventResponseDto = {
|
|
3103
|
+
/**
|
|
3104
|
+
* Unique identifier
|
|
3105
|
+
*/
|
|
3106
|
+
id: string;
|
|
3107
|
+
/**
|
|
3108
|
+
* User ID (owner of the life event)
|
|
3109
|
+
*/
|
|
3110
|
+
userId: string;
|
|
3111
|
+
/**
|
|
3112
|
+
* Life event date (ISO 8601 format)
|
|
3113
|
+
*/
|
|
3114
|
+
date: string;
|
|
3115
|
+
/**
|
|
3116
|
+
* Life event type (user-defined, e.g., "employer", "location")
|
|
3117
|
+
*/
|
|
3118
|
+
type: string;
|
|
3119
|
+
/**
|
|
3120
|
+
* Life event description. May be an empty string (a valid value distinct from absence).
|
|
3121
|
+
*/
|
|
3122
|
+
description: string;
|
|
3123
|
+
/**
|
|
3124
|
+
* Product-side metadata (free-form JSON)
|
|
3125
|
+
*/
|
|
3126
|
+
meta: {
|
|
3127
|
+
[key: string]: unknown;
|
|
3128
|
+
};
|
|
3129
|
+
/**
|
|
3130
|
+
* Creation timestamp
|
|
3131
|
+
*/
|
|
3132
|
+
createdAt: string;
|
|
3133
|
+
/**
|
|
3134
|
+
* Last update timestamp. Also emitted as the ETag response header for If-Match optimistic concurrency.
|
|
3135
|
+
*/
|
|
3136
|
+
updatedAt: string;
|
|
3137
|
+
};
|
|
3138
|
+
|
|
3139
|
+
export type EventListResponseDto = {
|
|
3140
|
+
/**
|
|
3141
|
+
* List of life events
|
|
3142
|
+
*/
|
|
3143
|
+
items: Array<EventResponseDto>;
|
|
3144
|
+
/**
|
|
3145
|
+
* Total number of life events matching the query
|
|
3146
|
+
*/
|
|
3147
|
+
total: number;
|
|
3148
|
+
};
|
|
3149
|
+
|
|
3150
|
+
export type UpdateBeanEventDto = {
|
|
3151
|
+
/**
|
|
3152
|
+
* Life event date (ISO 8601)
|
|
3153
|
+
*/
|
|
3154
|
+
date?: string;
|
|
3155
|
+
/**
|
|
3156
|
+
* Life event type (user-defined)
|
|
3157
|
+
*/
|
|
3158
|
+
type?: string;
|
|
3159
|
+
/**
|
|
3160
|
+
* Life event description. Empty string is a VALID value (distinct from absence).
|
|
3161
|
+
*/
|
|
3162
|
+
description?: string;
|
|
3163
|
+
/**
|
|
3164
|
+
* Product-side metadata (free-form JSON)
|
|
3165
|
+
*/
|
|
3166
|
+
meta?: {
|
|
3167
|
+
[key: string]: unknown;
|
|
3168
|
+
};
|
|
3169
|
+
};
|
|
3170
|
+
|
|
3032
3171
|
export type FileImportDto = {
|
|
3033
3172
|
/**
|
|
3034
3173
|
* Bill file to import (CSV, PDF, OFX, etc.)
|
|
@@ -4070,17 +4209,6 @@ export type liabilitySubType = 'borrow' | 'repay';
|
|
|
4070
4209
|
*/
|
|
4071
4210
|
export type equitySubType = 'opening' | 'adjustment';
|
|
4072
4211
|
|
|
4073
|
-
export type BalanceByCurrencyDto = {
|
|
4074
|
-
/**
|
|
4075
|
-
* ISO 4217 currency code
|
|
4076
|
-
*/
|
|
4077
|
-
currency: string;
|
|
4078
|
-
/**
|
|
4079
|
-
* Balance amount
|
|
4080
|
-
*/
|
|
4081
|
-
balance: string;
|
|
4082
|
-
};
|
|
4083
|
-
|
|
4084
4212
|
export type NetWorthByCurrencyDto = {
|
|
4085
4213
|
/**
|
|
4086
4214
|
* Net worth by currency
|
|
@@ -4121,21 +4249,6 @@ export type ConvertedNetWorthDto = {
|
|
|
4121
4249
|
};
|
|
4122
4250
|
};
|
|
4123
4251
|
|
|
4124
|
-
export type ExchangeRateWarningDto = {
|
|
4125
|
-
/**
|
|
4126
|
-
* Warning type
|
|
4127
|
-
*/
|
|
4128
|
-
type: string;
|
|
4129
|
-
/**
|
|
4130
|
-
* Currency without exchange rate
|
|
4131
|
-
*/
|
|
4132
|
-
currency: string;
|
|
4133
|
-
/**
|
|
4134
|
-
* Total amount affected
|
|
4135
|
-
*/
|
|
4136
|
-
totalAmount: string;
|
|
4137
|
-
};
|
|
4138
|
-
|
|
4139
4252
|
export type NetWorthResponseDto = {
|
|
4140
4253
|
/**
|
|
4141
4254
|
* Total net worth (assets - liabilities, converted to base currency)
|
|
@@ -4200,6 +4313,10 @@ export type AccountItemDto = {
|
|
|
4200
4313
|
* Currency code
|
|
4201
4314
|
*/
|
|
4202
4315
|
currency: string;
|
|
4316
|
+
/**
|
|
4317
|
+
* FX-converted balance in base currency; omitted when not convertible
|
|
4318
|
+
*/
|
|
4319
|
+
convertedBalance?: string;
|
|
4203
4320
|
};
|
|
4204
4321
|
|
|
4205
4322
|
export type PlatformGroupDto = {
|
|
@@ -4216,9 +4333,40 @@ export type PlatformGroupDto = {
|
|
|
4216
4333
|
*/
|
|
4217
4334
|
accounts: Array<AccountItemDto>;
|
|
4218
4335
|
/**
|
|
4219
|
-
*
|
|
4336
|
+
* FX-converted total balance in base currency
|
|
4220
4337
|
*/
|
|
4221
4338
|
totalBalance: string;
|
|
4339
|
+
/**
|
|
4340
|
+
* Raw (unconverted) balances grouped by currency
|
|
4341
|
+
*/
|
|
4342
|
+
balanceByCurrency: Array<BalanceByCurrencyDto>;
|
|
4343
|
+
/**
|
|
4344
|
+
* Converted balance in base currency (omitted when no currency is convertible)
|
|
4345
|
+
*/
|
|
4346
|
+
convertedBalance?: string;
|
|
4347
|
+
/**
|
|
4348
|
+
* Share of the grand converted total (0-100); 0 when grand total is 0
|
|
4349
|
+
*/
|
|
4350
|
+
sharePct: number;
|
|
4351
|
+
};
|
|
4352
|
+
|
|
4353
|
+
export type AccountExchangeRateWarningDto = {
|
|
4354
|
+
/**
|
|
4355
|
+
* Warning type
|
|
4356
|
+
*/
|
|
4357
|
+
type: string;
|
|
4358
|
+
/**
|
|
4359
|
+
* Currency without exchange rate
|
|
4360
|
+
*/
|
|
4361
|
+
currency: string;
|
|
4362
|
+
/**
|
|
4363
|
+
* Affected account paths
|
|
4364
|
+
*/
|
|
4365
|
+
accounts: Array<string>;
|
|
4366
|
+
/**
|
|
4367
|
+
* Total amount in this currency
|
|
4368
|
+
*/
|
|
4369
|
+
totalAmount: string;
|
|
4222
4370
|
};
|
|
4223
4371
|
|
|
4224
4372
|
export type AccountsSummaryDto = {
|
|
@@ -4230,6 +4378,14 @@ export type AccountsSummaryDto = {
|
|
|
4230
4378
|
* Total number of platforms
|
|
4231
4379
|
*/
|
|
4232
4380
|
totalPlatforms: number;
|
|
4381
|
+
/**
|
|
4382
|
+
* Base currency for conversion
|
|
4383
|
+
*/
|
|
4384
|
+
baseCurrency: string;
|
|
4385
|
+
/**
|
|
4386
|
+
* Per-account exchange rate warnings
|
|
4387
|
+
*/
|
|
4388
|
+
warnings?: Array<AccountExchangeRateWarningDto>;
|
|
4233
4389
|
};
|
|
4234
4390
|
|
|
4235
4391
|
export type AccountsResponseDto = {
|
|
@@ -4264,6 +4420,10 @@ export type AccountItemWithAssetClassDto = {
|
|
|
4264
4420
|
* Currency code
|
|
4265
4421
|
*/
|
|
4266
4422
|
currency: string;
|
|
4423
|
+
/**
|
|
4424
|
+
* FX-converted balance in base currency; omitted when not convertible
|
|
4425
|
+
*/
|
|
4426
|
+
convertedBalance?: string;
|
|
4267
4427
|
/**
|
|
4268
4428
|
* Asset class
|
|
4269
4429
|
*/
|
|
@@ -4345,25 +4505,6 @@ export type assetClass =
|
|
|
4345
4505
|
| 'REAL_ESTATE'
|
|
4346
4506
|
| 'INDEX';
|
|
4347
4507
|
|
|
4348
|
-
export type AccountExchangeRateWarningDto = {
|
|
4349
|
-
/**
|
|
4350
|
-
* Warning type
|
|
4351
|
-
*/
|
|
4352
|
-
type: string;
|
|
4353
|
-
/**
|
|
4354
|
-
* Currency without exchange rate
|
|
4355
|
-
*/
|
|
4356
|
-
currency: string;
|
|
4357
|
-
/**
|
|
4358
|
-
* Affected account paths
|
|
4359
|
-
*/
|
|
4360
|
-
accounts: Array<string>;
|
|
4361
|
-
/**
|
|
4362
|
-
* Total amount in this currency
|
|
4363
|
-
*/
|
|
4364
|
-
totalAmount: string;
|
|
4365
|
-
};
|
|
4366
|
-
|
|
4367
4508
|
export type AssetClassSummaryDto = {
|
|
4368
4509
|
/**
|
|
4369
4510
|
* Total number of accounts
|
|
@@ -4529,6 +4670,63 @@ export type CashFlowResponseDto = {
|
|
|
4529
4670
|
warnings?: Array<ExchangeRateWarningDto>;
|
|
4530
4671
|
};
|
|
4531
4672
|
|
|
4673
|
+
export type CategoryGroupDto = {
|
|
4674
|
+
/**
|
|
4675
|
+
* Functional category (account-path Group segment); regional and universal account paths merge under it
|
|
4676
|
+
*/
|
|
4677
|
+
category: string;
|
|
4678
|
+
/**
|
|
4679
|
+
* Converted total for this category in base currency (expense amount when flow=expense, income amount when flow=income)
|
|
4680
|
+
*/
|
|
4681
|
+
totalExpense: string;
|
|
4682
|
+
/**
|
|
4683
|
+
* Share of grand total (0-100); 0 when grand total is 0
|
|
4684
|
+
*/
|
|
4685
|
+
sharePct: number;
|
|
4686
|
+
/**
|
|
4687
|
+
* Raw (unconverted) expense per currency
|
|
4688
|
+
*/
|
|
4689
|
+
balanceByCurrency: Array<BalanceByCurrencyDto>;
|
|
4690
|
+
/**
|
|
4691
|
+
* Converted total in base currency (omitted when FX missing for all currencies in this category)
|
|
4692
|
+
*/
|
|
4693
|
+
convertedBalance?: string;
|
|
4694
|
+
};
|
|
4695
|
+
|
|
4696
|
+
export type ExpensesByCategorySummaryDto = {
|
|
4697
|
+
/**
|
|
4698
|
+
* Total across all categories, converted (convertible categories only); expense totals when flow=expense, income totals when flow=income
|
|
4699
|
+
*/
|
|
4700
|
+
totalExpense: string;
|
|
4701
|
+
/**
|
|
4702
|
+
* Number of categories
|
|
4703
|
+
*/
|
|
4704
|
+
categoryCount: number;
|
|
4705
|
+
};
|
|
4706
|
+
|
|
4707
|
+
export type ExpensesByCategoryResponseDto = {
|
|
4708
|
+
/**
|
|
4709
|
+
* Period requested
|
|
4710
|
+
*/
|
|
4711
|
+
period: string;
|
|
4712
|
+
/**
|
|
4713
|
+
* Base currency for converted values
|
|
4714
|
+
*/
|
|
4715
|
+
baseCurrency: string;
|
|
4716
|
+
/**
|
|
4717
|
+
* Expense groups by functional category, sorted by converted total desc
|
|
4718
|
+
*/
|
|
4719
|
+
groups: Array<CategoryGroupDto>;
|
|
4720
|
+
/**
|
|
4721
|
+
* Summary statistics
|
|
4722
|
+
*/
|
|
4723
|
+
summary: ExpensesByCategorySummaryDto;
|
|
4724
|
+
/**
|
|
4725
|
+
* Exchange rate warnings (e.g. missing rate for a currency)
|
|
4726
|
+
*/
|
|
4727
|
+
warnings?: Array<ExchangeRateWarningDto>;
|
|
4728
|
+
};
|
|
4729
|
+
|
|
4532
4730
|
export type MonetaryDto = {
|
|
4533
4731
|
/**
|
|
4534
4732
|
* Amount (Decimal string)
|
|
@@ -4852,6 +5050,14 @@ export type TimeSeriesPointDto = {
|
|
|
4852
5050
|
change?: {
|
|
4853
5051
|
[key: string]: unknown;
|
|
4854
5052
|
};
|
|
5053
|
+
/**
|
|
5054
|
+
* Total assets at this date (in base currency)
|
|
5055
|
+
*/
|
|
5056
|
+
assets?: string;
|
|
5057
|
+
/**
|
|
5058
|
+
* Total liabilities at this date (in base currency)
|
|
5059
|
+
*/
|
|
5060
|
+
liabilities?: string;
|
|
4855
5061
|
/**
|
|
4856
5062
|
* Multi-currency breakdown for this point
|
|
4857
5063
|
*/
|
|
@@ -4919,6 +5125,71 @@ export type PortfolioTrendsResponseDto = {
|
|
|
4919
5125
|
warnings?: Array<ExchangeRateWarningDto>;
|
|
4920
5126
|
};
|
|
4921
5127
|
|
|
5128
|
+
export type CashFlowPointDto = {
|
|
5129
|
+
/**
|
|
5130
|
+
* Month key (YYYY-MM)
|
|
5131
|
+
*/
|
|
5132
|
+
month: string;
|
|
5133
|
+
/**
|
|
5134
|
+
* Income in base currency (absolute, converted)
|
|
5135
|
+
*/
|
|
5136
|
+
income: string;
|
|
5137
|
+
/**
|
|
5138
|
+
* Expense in base currency (absolute, converted)
|
|
5139
|
+
*/
|
|
5140
|
+
expense: string;
|
|
5141
|
+
/**
|
|
5142
|
+
* netSavings = income − expense (savings positive)
|
|
5143
|
+
*/
|
|
5144
|
+
netSavings: string;
|
|
5145
|
+
};
|
|
5146
|
+
|
|
5147
|
+
export type CashFlowTrendSummaryDto = {
|
|
5148
|
+
/**
|
|
5149
|
+
* Total income across the period
|
|
5150
|
+
*/
|
|
5151
|
+
totalIncome: string;
|
|
5152
|
+
/**
|
|
5153
|
+
* Total expense across the period
|
|
5154
|
+
*/
|
|
5155
|
+
totalExpense: string;
|
|
5156
|
+
/**
|
|
5157
|
+
* income − expense across the period
|
|
5158
|
+
*/
|
|
5159
|
+
totalNetSavings: string;
|
|
5160
|
+
/**
|
|
5161
|
+
* totalNetSavings divided by the window length (N months, incl. zero-filled)
|
|
5162
|
+
*/
|
|
5163
|
+
averageMonthlyNetSavings: string;
|
|
5164
|
+
};
|
|
5165
|
+
|
|
5166
|
+
export type CashFlowTrendsResponseDto = {
|
|
5167
|
+
/**
|
|
5168
|
+
* Monthly cash-flow series (fixed N-month window, zero-filled)
|
|
5169
|
+
*/
|
|
5170
|
+
series: Array<CashFlowPointDto>;
|
|
5171
|
+
/**
|
|
5172
|
+
* Period totals
|
|
5173
|
+
*/
|
|
5174
|
+
summary: CashFlowTrendSummaryDto;
|
|
5175
|
+
/**
|
|
5176
|
+
* Period requested
|
|
5177
|
+
*/
|
|
5178
|
+
period: string;
|
|
5179
|
+
/**
|
|
5180
|
+
* Data granularity (v1 returns month buckets)
|
|
5181
|
+
*/
|
|
5182
|
+
granularity: string;
|
|
5183
|
+
/**
|
|
5184
|
+
* Base currency for converted values
|
|
5185
|
+
*/
|
|
5186
|
+
currency: string;
|
|
5187
|
+
/**
|
|
5188
|
+
* Exchange rate warnings (e.g. missing rate for a currency)
|
|
5189
|
+
*/
|
|
5190
|
+
warnings?: Array<ExchangeRateWarningDto>;
|
|
5191
|
+
};
|
|
5192
|
+
|
|
4922
5193
|
export type GenerateSnapshotBody = unknown;
|
|
4923
5194
|
|
|
4924
5195
|
export type GenerateSnapshotResponse = unknown;
|
|
@@ -5105,6 +5376,10 @@ export type TransactionControllerListData = {
|
|
|
5105
5376
|
* Filter by account ID (transactions with postings to this account)
|
|
5106
5377
|
*/
|
|
5107
5378
|
accountId?: string;
|
|
5379
|
+
/**
|
|
5380
|
+
* Filter by ADR-0075 functional category (Group segment); matches any posting to an Expenses/Income account whose derived Group segment equals this value
|
|
5381
|
+
*/
|
|
5382
|
+
category?: string;
|
|
5108
5383
|
/**
|
|
5109
5384
|
* Filter by start date (inclusive), format: YYYY-MM-DD
|
|
5110
5385
|
*/
|
|
@@ -6096,6 +6371,104 @@ export type PropertyControllerDeleteData = {
|
|
|
6096
6371
|
|
|
6097
6372
|
export type PropertyControllerDeleteResponse = void;
|
|
6098
6373
|
|
|
6374
|
+
export type EventControllerCreateData = {
|
|
6375
|
+
/**
|
|
6376
|
+
* Region code for tenant context (decorative for life events)
|
|
6377
|
+
*/
|
|
6378
|
+
region: 'cn' | 'us' | 'de' | 'gb';
|
|
6379
|
+
requestBody: CreateBeanEventDto;
|
|
6380
|
+
};
|
|
6381
|
+
|
|
6382
|
+
export type EventControllerCreateResponse = EventResponseDto;
|
|
6383
|
+
|
|
6384
|
+
export type EventControllerFindAllData = {
|
|
6385
|
+
/**
|
|
6386
|
+
* Filter life events from this date (ISO 8601 format)
|
|
6387
|
+
*/
|
|
6388
|
+
from?: string;
|
|
6389
|
+
/**
|
|
6390
|
+
* Number of items per page (default: 20, max: 100)
|
|
6391
|
+
*/
|
|
6392
|
+
limit?: number;
|
|
6393
|
+
/**
|
|
6394
|
+
* Page number for pagination (default: 1)
|
|
6395
|
+
*/
|
|
6396
|
+
page?: number;
|
|
6397
|
+
/**
|
|
6398
|
+
* Search term for description (case-insensitive partial match)
|
|
6399
|
+
*/
|
|
6400
|
+
q?: string;
|
|
6401
|
+
/**
|
|
6402
|
+
* Region code for tenant context (decorative for life events)
|
|
6403
|
+
*/
|
|
6404
|
+
region: 'cn' | 'us' | 'de' | 'gb';
|
|
6405
|
+
/**
|
|
6406
|
+
* Filter life events to this date (ISO 8601 format)
|
|
6407
|
+
*/
|
|
6408
|
+
to?: string;
|
|
6409
|
+
/**
|
|
6410
|
+
* Filter by life event type (exact match)
|
|
6411
|
+
*/
|
|
6412
|
+
type?: string;
|
|
6413
|
+
};
|
|
6414
|
+
|
|
6415
|
+
export type EventControllerFindAllResponse = EventListResponseDto;
|
|
6416
|
+
|
|
6417
|
+
export type EventControllerFindOneData = {
|
|
6418
|
+
/**
|
|
6419
|
+
* Life event ID
|
|
6420
|
+
*/
|
|
6421
|
+
id: string;
|
|
6422
|
+
/**
|
|
6423
|
+
* Region code for tenant context (decorative for life events)
|
|
6424
|
+
*/
|
|
6425
|
+
region: 'cn' | 'us' | 'de' | 'gb';
|
|
6426
|
+
};
|
|
6427
|
+
|
|
6428
|
+
export type EventControllerFindOneResponse = EventResponseDto;
|
|
6429
|
+
|
|
6430
|
+
export type EventControllerUpdateData = {
|
|
6431
|
+
/**
|
|
6432
|
+
* Life event ID
|
|
6433
|
+
*/
|
|
6434
|
+
id: string;
|
|
6435
|
+
/**
|
|
6436
|
+
* Region code for tenant context (decorative for life events)
|
|
6437
|
+
*/
|
|
6438
|
+
region: 'cn' | 'us' | 'de' | 'gb';
|
|
6439
|
+
requestBody: UpdateBeanEventDto;
|
|
6440
|
+
};
|
|
6441
|
+
|
|
6442
|
+
export type EventControllerUpdateResponse = EventResponseDto;
|
|
6443
|
+
|
|
6444
|
+
export type EventControllerDeleteData = {
|
|
6445
|
+
/**
|
|
6446
|
+
* Life event ID
|
|
6447
|
+
*/
|
|
6448
|
+
id: string;
|
|
6449
|
+
/**
|
|
6450
|
+
* Region code for tenant context (decorative for life events)
|
|
6451
|
+
*/
|
|
6452
|
+
region: 'cn' | 'us' | 'de' | 'gb';
|
|
6453
|
+
};
|
|
6454
|
+
|
|
6455
|
+
export type EventControllerDeleteResponse = void;
|
|
6456
|
+
|
|
6457
|
+
export type EventControllerGetSliceData = {
|
|
6458
|
+
accountPattern: string;
|
|
6459
|
+
granularity: string;
|
|
6460
|
+
/**
|
|
6461
|
+
* Life event ID
|
|
6462
|
+
*/
|
|
6463
|
+
id: string;
|
|
6464
|
+
/**
|
|
6465
|
+
* Region code for tenant context (decorative for life events)
|
|
6466
|
+
*/
|
|
6467
|
+
region: 'cn' | 'us' | 'de' | 'gb';
|
|
6468
|
+
};
|
|
6469
|
+
|
|
6470
|
+
export type EventControllerGetSliceResponse = unknown;
|
|
6471
|
+
|
|
6099
6472
|
export type ExportControllerExportBeancountResponse = unknown;
|
|
6100
6473
|
|
|
6101
6474
|
export type FileImportControllerImportFileData = {
|
|
@@ -6401,6 +6774,28 @@ export type DashboardControllerGetCashFlowData = {
|
|
|
6401
6774
|
|
|
6402
6775
|
export type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
|
|
6403
6776
|
|
|
6777
|
+
export type DashboardControllerGetExpensesData = {
|
|
6778
|
+
/**
|
|
6779
|
+
* Account root to aggregate (expense → ^Expenses:, income → ^Income:)
|
|
6780
|
+
*/
|
|
6781
|
+
flow?: 'expense' | 'income';
|
|
6782
|
+
/**
|
|
6783
|
+
* Grouping strategy
|
|
6784
|
+
*/
|
|
6785
|
+
groupBy?: 'category';
|
|
6786
|
+
/**
|
|
6787
|
+
* Time window (1m = current calendar month)
|
|
6788
|
+
*/
|
|
6789
|
+
period?: '1m' | '3m' | '6m' | '1y';
|
|
6790
|
+
/**
|
|
6791
|
+
* Region code for tenant context
|
|
6792
|
+
*/
|
|
6793
|
+
region: 'cn' | 'us' | 'de' | 'gb';
|
|
6794
|
+
};
|
|
6795
|
+
|
|
6796
|
+
export type DashboardControllerGetExpensesResponse =
|
|
6797
|
+
ExpensesByCategoryResponseDto;
|
|
6798
|
+
|
|
6404
6799
|
export type HoldingPnlControllerGetHoldingPnlData = {
|
|
6405
6800
|
/**
|
|
6406
6801
|
* Scope to a single account
|
|
@@ -6537,6 +6932,24 @@ export type ReportingControllerGetPortfolioTrendsData = {
|
|
|
6537
6932
|
export type ReportingControllerGetPortfolioTrendsResponse =
|
|
6538
6933
|
PortfolioTrendsResponseDto;
|
|
6539
6934
|
|
|
6935
|
+
export type ReportingControllerGetCashFlowTrendsData = {
|
|
6936
|
+
/**
|
|
6937
|
+
* Data granularity (accepted for API symmetry; v1 returns month buckets)
|
|
6938
|
+
*/
|
|
6939
|
+
granularity?: 'day' | 'week' | 'month';
|
|
6940
|
+
/**
|
|
6941
|
+
* Time period
|
|
6942
|
+
*/
|
|
6943
|
+
period?: '1m' | '3m' | '6m' | '1y';
|
|
6944
|
+
/**
|
|
6945
|
+
* Region code for tenant context
|
|
6946
|
+
*/
|
|
6947
|
+
region: 'cn' | 'us' | 'de' | 'gb';
|
|
6948
|
+
};
|
|
6949
|
+
|
|
6950
|
+
export type ReportingControllerGetCashFlowTrendsResponse =
|
|
6951
|
+
CashFlowTrendsResponseDto;
|
|
6952
|
+
|
|
6540
6953
|
export type ReportingControllerGenerateSnapshotData = {
|
|
6541
6954
|
/**
|
|
6542
6955
|
* Region code for tenant context
|
|
@@ -7968,6 +8381,102 @@ export type $OpenApiTs = {
|
|
|
7968
8381
|
};
|
|
7969
8382
|
};
|
|
7970
8383
|
};
|
|
8384
|
+
'/api/v1/{region}/bean/events': {
|
|
8385
|
+
post: {
|
|
8386
|
+
req: EventControllerCreateData;
|
|
8387
|
+
res: {
|
|
8388
|
+
/**
|
|
8389
|
+
* Life event created successfully
|
|
8390
|
+
*/
|
|
8391
|
+
201: EventResponseDto;
|
|
8392
|
+
/**
|
|
8393
|
+
* Life event already exists for this (userId, type, date) combination
|
|
8394
|
+
*/
|
|
8395
|
+
409: unknown;
|
|
8396
|
+
};
|
|
8397
|
+
};
|
|
8398
|
+
get: {
|
|
8399
|
+
req: EventControllerFindAllData;
|
|
8400
|
+
res: {
|
|
8401
|
+
/**
|
|
8402
|
+
* Life events retrieved successfully
|
|
8403
|
+
*/
|
|
8404
|
+
200: EventListResponseDto;
|
|
8405
|
+
};
|
|
8406
|
+
};
|
|
8407
|
+
};
|
|
8408
|
+
'/api/v1/{region}/bean/events/{id}': {
|
|
8409
|
+
get: {
|
|
8410
|
+
req: EventControllerFindOneData;
|
|
8411
|
+
res: {
|
|
8412
|
+
/**
|
|
8413
|
+
* Life event retrieved successfully
|
|
8414
|
+
*/
|
|
8415
|
+
200: EventResponseDto;
|
|
8416
|
+
/**
|
|
8417
|
+
* Life event not found
|
|
8418
|
+
*/
|
|
8419
|
+
404: unknown;
|
|
8420
|
+
};
|
|
8421
|
+
};
|
|
8422
|
+
put: {
|
|
8423
|
+
req: EventControllerUpdateData;
|
|
8424
|
+
res: {
|
|
8425
|
+
/**
|
|
8426
|
+
* Life event updated successfully
|
|
8427
|
+
*/
|
|
8428
|
+
200: EventResponseDto;
|
|
8429
|
+
/**
|
|
8430
|
+
* If-Match header is not a valid ISO 8601 date
|
|
8431
|
+
*/
|
|
8432
|
+
400: unknown;
|
|
8433
|
+
/**
|
|
8434
|
+
* Life event not found
|
|
8435
|
+
*/
|
|
8436
|
+
404: unknown;
|
|
8437
|
+
/**
|
|
8438
|
+
* Updated event conflicts with an existing (userId, type, date) combination
|
|
8439
|
+
*/
|
|
8440
|
+
409: unknown;
|
|
8441
|
+
/**
|
|
8442
|
+
* If-Match precondition failed (updatedAt mismatch)
|
|
8443
|
+
*/
|
|
8444
|
+
412: unknown;
|
|
8445
|
+
};
|
|
8446
|
+
};
|
|
8447
|
+
delete: {
|
|
8448
|
+
req: EventControllerDeleteData;
|
|
8449
|
+
res: {
|
|
8450
|
+
/**
|
|
8451
|
+
* Life event deleted successfully
|
|
8452
|
+
*/
|
|
8453
|
+
204: void;
|
|
8454
|
+
/**
|
|
8455
|
+
* Life event not found
|
|
8456
|
+
*/
|
|
8457
|
+
404: unknown;
|
|
8458
|
+
};
|
|
8459
|
+
};
|
|
8460
|
+
};
|
|
8461
|
+
'/api/v1/{region}/bean/events/{id}/slice': {
|
|
8462
|
+
get: {
|
|
8463
|
+
req: EventControllerGetSliceData;
|
|
8464
|
+
res: {
|
|
8465
|
+
/**
|
|
8466
|
+
* Time-series sliced by the life event range
|
|
8467
|
+
*/
|
|
8468
|
+
200: unknown;
|
|
8469
|
+
/**
|
|
8470
|
+
* accountPattern query param is empty
|
|
8471
|
+
*/
|
|
8472
|
+
400: unknown;
|
|
8473
|
+
/**
|
|
8474
|
+
* Life event not found
|
|
8475
|
+
*/
|
|
8476
|
+
404: unknown;
|
|
8477
|
+
};
|
|
8478
|
+
};
|
|
8479
|
+
};
|
|
7971
8480
|
'/api/v1/{region}/bean/export/beancount': {
|
|
7972
8481
|
get: {
|
|
7973
8482
|
res: {
|
|
@@ -8383,6 +8892,25 @@ export type $OpenApiTs = {
|
|
|
8383
8892
|
};
|
|
8384
8893
|
};
|
|
8385
8894
|
};
|
|
8895
|
+
'/api/v1/{region}/dashboard/expenses': {
|
|
8896
|
+
get: {
|
|
8897
|
+
req: DashboardControllerGetExpensesData;
|
|
8898
|
+
res: {
|
|
8899
|
+
/**
|
|
8900
|
+
* Expenses retrieved successfully
|
|
8901
|
+
*/
|
|
8902
|
+
200: ExpensesByCategoryResponseDto;
|
|
8903
|
+
/**
|
|
8904
|
+
* Invalid groupBy or period
|
|
8905
|
+
*/
|
|
8906
|
+
400: unknown;
|
|
8907
|
+
/**
|
|
8908
|
+
* User not authenticated
|
|
8909
|
+
*/
|
|
8910
|
+
401: unknown;
|
|
8911
|
+
};
|
|
8912
|
+
};
|
|
8913
|
+
};
|
|
8386
8914
|
'/api/v1/{region}/investment/holdings/pnl': {
|
|
8387
8915
|
get: {
|
|
8388
8916
|
req: HoldingPnlControllerGetHoldingPnlData;
|
|
@@ -8501,6 +9029,21 @@ export type $OpenApiTs = {
|
|
|
8501
9029
|
};
|
|
8502
9030
|
};
|
|
8503
9031
|
};
|
|
9032
|
+
'/api/v1/{region}/reporting/cash-flow/trends': {
|
|
9033
|
+
get: {
|
|
9034
|
+
req: ReportingControllerGetCashFlowTrendsData;
|
|
9035
|
+
res: {
|
|
9036
|
+
/**
|
|
9037
|
+
* Cash-flow trends retrieved successfully
|
|
9038
|
+
*/
|
|
9039
|
+
200: CashFlowTrendsResponseDto;
|
|
9040
|
+
/**
|
|
9041
|
+
* User not authenticated
|
|
9042
|
+
*/
|
|
9043
|
+
401: unknown;
|
|
9044
|
+
};
|
|
9045
|
+
};
|
|
9046
|
+
};
|
|
8504
9047
|
'/api/v1/{region}/reporting/snapshots/generate': {
|
|
8505
9048
|
post: {
|
|
8506
9049
|
req: ReportingControllerGenerateSnapshotData;
|