chore(app): сгенерированный Dart-клиент с методами аналитики

just gen-client после новых роутов.
This commit is contained in:
Dmitry
2026-09-18 14:20:50 +03:00
parent 3727419506
commit 28ff63bdfa
71 changed files with 8303 additions and 30 deletions
@@ -0,0 +1,65 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
/// tests for AnalyticsApi
void main() {
final instance = FintrackerApi().getAnalyticsApi();
group(AnalyticsApi, () {
// Allocation
//
// Buckets of one dimension (or all four), largest first.
//
//Future<List<AllocationBucket>> analyticsAllocation({ String scope, AllocationDimension dimension }) async
test('test analyticsAllocation', () async {
// TODO
});
// Holdings
//
// Open positions, most valuable first; unpriced ones last with null values.
//
//Future<List<HoldingOut>> analyticsHoldings({ String scope }) async
test('test analyticsHoldings', () async {
// TODO
});
// Returns
//
// XIRR and TWR per period, shortest first.
//
//Future<List<ReturnsOut>> analyticsReturns({ String scope }) async
test('test analyticsReturns', () async {
// TODO
});
// Scopes
//
// Every set of accounts the metrics were built for.
//
//Future<List<ScopeOut>> analyticsScopes() async
test('test analyticsScopes', () async {
// TODO
});
// Summary
//
// One screen's worth: the latest day, the totals it adds up to, and the returns.
//
//Future<SummaryOut> analyticsSummary({ String scope }) async
test('test analyticsSummary', () async {
// TODO
});
// Value Series
//
// Daily portfolio value; defaults to the last 365 days.
//
//Future<List<ValueDay>> analyticsValueSeries({ String scope, DateTime from, DateTime to }) async
test('test analyticsValueSeries', () async {
// TODO
});
});
}