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,38 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
// tests for AllocationBucket
void main() {
final AllocationBucket? instance = /* AllocationBucket(...) */ null;
// TODO add properties to the entity
group(AllocationBucket, () {
// String bucket
test('to test the property `bucket`', () async {
// TODO
});
// AllocationDimension dimension
test('to test the property `dimension`', () async {
// TODO
});
// int holdingCount
test('to test the property `holdingCount`', () async {
// TODO
});
// decimal as string
// String valueRub
test('to test the property `valueRub`', () async {
// TODO
});
// decimal as string
// String weight
test('to test the property `weight`', () async {
// TODO
});
});
}
@@ -0,0 +1,9 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
// tests for AllocationDimension
void main() {
group(AllocationDimension, () {
});
}
@@ -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
});
});
}
@@ -0,0 +1,9 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
// tests for AssetClass
void main() {
group(AssetClass, () {
});
}
@@ -0,0 +1,9 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
// tests for EventKind
void main() {
group(EventKind, () {
});
}
@@ -0,0 +1,113 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
// tests for EventOut
void main() {
final EventOut? instance = /* EventOut(...) */ null;
// TODO add properties to the entity
group(EventOut, () {
// int accountId
test('to test the property `accountId`', () async {
// TODO
});
// decimal as string
// String accruedInterest
test('to test the property `accruedInterest`', () async {
// TODO
});
// decimal as string
// String amount
test('to test the property `amount`', () async {
// TODO
});
// decimal as string
// String amountRub
test('to test the property `amountRub`', () async {
// TODO
});
// String currency
test('to test the property `currency`', () async {
// TODO
});
// String description
test('to test the property `description`', () async {
// TODO
});
// bool externalFlow
test('to test the property `externalFlow`', () async {
// TODO
});
// decimal as string
// String fee
test('to test the property `fee`', () async {
// TODO
});
// int id
test('to test the property `id`', () async {
// TODO
});
// int instrumentId
test('to test the property `instrumentId`', () async {
// TODO
});
// EventKind kind
test('to test the property `kind`', () async {
// TODO
});
// decimal as string
// String price
test('to test the property `price`', () async {
// TODO
});
// String priceCurrency
test('to test the property `priceCurrency`', () async {
// TODO
});
// decimal as string
// String quantity
test('to test the property `quantity`', () async {
// TODO
});
// EventStatus status
test('to test the property `status`', () async {
// TODO
});
// decimal as string
// String tax
test('to test the property `tax`', () async {
// TODO
});
// String ticker
test('to test the property `ticker`', () async {
// TODO
});
// DateTime tradeDate
test('to test the property `tradeDate`', () async {
// TODO
});
// DateTime ts
test('to test the property `ts`', () async {
// TODO
});
});
}
@@ -0,0 +1,31 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
// tests for EventPage
void main() {
final EventPage? instance = /* EventPage(...) */ null;
// TODO add properties to the entity
group(EventPage, () {
// List<EventOut> items
test('to test the property `items`', () async {
// TODO
});
// int page
test('to test the property `page`', () async {
// TODO
});
// int pageSize
test('to test the property `pageSize`', () async {
// TODO
});
// int total
test('to test the property `total`', () async {
// TODO
});
});
}
@@ -0,0 +1,9 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
// tests for EventStatus
void main() {
group(EventStatus, () {
});
}
@@ -0,0 +1,20 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
/// tests for EventsApi
void main() {
final instance = FintrackerApi().getEventsApi();
group(EventsApi, () {
// List
//
// One page of ledger events, newest first, with RUB amounts at each own date's rate.
//
//Future<EventPage> eventsList({ DateTime from, DateTime to, int accountId, int instrumentId, EventKind kind, EventStatus status, bool externalFlow, String q, int page, int pageSize }) async
test('test eventsList', () async {
// TODO
});
});
}
@@ -0,0 +1,155 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
// tests for HoldingOut
void main() {
final HoldingOut? instance = /* HoldingOut(...) */ null;
// TODO add properties to the entity
group(HoldingOut, () {
// decimal as string
// String accruedInterestRub
test('to test the property `accruedInterestRub`', () async {
// TODO
});
// AssetClass assetClass
test('to test the property `assetClass`', () async {
// TODO
});
// decimal as string
// String avgCost
test('to test the property `avgCost`', () async {
// TODO
});
// String board
test('to test the property `board`', () async {
// TODO
});
// String costCurrency
test('to test the property `costCurrency`', () async {
// TODO
});
// decimal as string
// String costTotalRub
test('to test the property `costTotalRub`', () async {
// TODO
});
// String currency
test('to test the property `currency`', () async {
// TODO
});
// int daysHeld
test('to test the property `daysHeld`', () async {
// TODO
});
// DateTime firstBuyDate
test('to test the property `firstBuyDate`', () async {
// TODO
});
// decimal as string
// String incomeRub
test('to test the property `incomeRub`', () async {
// TODO
});
// int instrumentId
test('to test the property `instrumentId`', () async {
// TODO
});
// decimal as string
// String ldvEligibleQty
test('to test the property `ldvEligibleQty`', () async {
// TODO
});
// decimal as string
// String marketPrice
test('to test the property `marketPrice`', () async {
// TODO
});
// String name
test('to test the property `name`', () async {
// TODO
});
// String priceCurrency
test('to test the property `priceCurrency`', () async {
// TODO
});
// DateTime priceDate
test('to test the property `priceDate`', () async {
// TODO
});
// String priceStatus
test('to test the property `priceStatus`', () async {
// TODO
});
// decimal as string
// String qty
test('to test the property `qty`', () async {
// TODO
});
// decimal as string
// String realizedPnlRub
test('to test the property `realizedPnlRub`', () async {
// TODO
});
// String ticker
test('to test the property `ticker`', () async {
// TODO
});
// decimal as string
// String unrealizedPnlNative
test('to test the property `unrealizedPnlNative`', () async {
// TODO
});
// decimal as string
// String unrealizedPnlRub
test('to test the property `unrealizedPnlRub`', () async {
// TODO
});
// decimal as string
// String valueNative
test('to test the property `valueNative`', () async {
// TODO
});
// decimal as string
// String valueRub
test('to test the property `valueRub`', () async {
// TODO
});
// decimal as string
// String weight
test('to test the property `weight`', () async {
// TODO
});
// decimal as string
// String xirr
test('to test the property `xirr`', () async {
// TODO
});
});
}
@@ -0,0 +1,36 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
// tests for InstrumentDetail
void main() {
final InstrumentDetail? instance = /* InstrumentDetail(...) */ null;
// TODO add properties to the entity
group(InstrumentDetail, () {
// List<EventOut> events
test('to test the property `events`', () async {
// TODO
});
// HoldingOut holding
test('to test the property `holding`', () async {
// TODO
});
// InstrumentOut instrument
test('to test the property `instrument`', () async {
// TODO
});
// List<LotOut> lots
test('to test the property `lots`', () async {
// TODO
});
// List<PricePoint> prices
test('to test the property `prices`', () async {
// TODO
});
});
}
@@ -0,0 +1,97 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
// tests for InstrumentOut
void main() {
final InstrumentOut? instance = /* InstrumentOut(...) */ null;
// TODO add properties to the entity
group(InstrumentOut, () {
// AssetClass assetClass
test('to test the property `assetClass`', () async {
// TODO
});
// String board
test('to test the property `board`', () async {
// TODO
});
// String country
test('to test the property `country`', () async {
// TODO
});
// String currency
test('to test the property `currency`', () async {
// TODO
});
// String exchange
test('to test the property `exchange`', () async {
// TODO
});
// String figi
test('to test the property `figi`', () async {
// TODO
});
// int id
test('to test the property `id`', () async {
// TODO
});
// bool isActive
test('to test the property `isActive`', () async {
// TODO
});
// String isin
test('to test the property `isin`', () async {
// TODO
});
// String issuer
test('to test the property `issuer`', () async {
// TODO
});
// int lot
test('to test the property `lot`', () async {
// TODO
});
// DateTime maturityDate
test('to test the property `maturityDate`', () async {
// TODO
});
// String name
test('to test the property `name`', () async {
// TODO
});
// decimal as string
// String nominal
test('to test the property `nominal`', () async {
// TODO
});
// String nominalCurrency
test('to test the property `nominalCurrency`', () async {
// TODO
});
// String sector
test('to test the property `sector`', () async {
// TODO
});
// String ticker
test('to test the property `ticker`', () async {
// TODO
});
});
}
@@ -0,0 +1,27 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
/// tests for InstrumentsApi
void main() {
final instance = FintrackerApi().getInstrumentsApi();
group(InstrumentsApi, () {
// Get
//
// One instrument with its position, open lots, events and price history.
//
//Future<InstrumentDetail> instrumentsGet(int instrumentId, { String scope, DateTime pricesFrom }) async
test('test instrumentsGet', () async {
// TODO
});
// List
//
//Future<List<InstrumentOut>> instrumentsList({ String q, AssetClass assetClass, bool heldOnly, int limit }) async
test('test instrumentsList', () async {
// TODO
});
});
}
@@ -0,0 +1,60 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
// tests for LotOut
void main() {
final LotOut? instance = /* LotOut(...) */ null;
// TODO add properties to the entity
group(LotOut, () {
// int accountId
test('to test the property `accountId`', () async {
// TODO
});
// DateTime closedAt
test('to test the property `closedAt`', () async {
// TODO
});
// String costCurrency
test('to test the property `costCurrency`', () async {
// TODO
});
// decimal as string
// String costPerUnit
test('to test the property `costPerUnit`', () async {
// TODO
});
// decimal as string
// String costTotalRub
test('to test the property `costTotalRub`', () async {
// TODO
});
// int id
test('to test the property `id`', () async {
// TODO
});
// DateTime openDate
test('to test the property `openDate`', () async {
// TODO
});
// decimal as string
// String qtyOpen
test('to test the property `qtyOpen`', () async {
// TODO
});
// decimal as string
// String qtyRemaining
test('to test the property `qtyRemaining`', () async {
// TODO
});
});
}
@@ -0,0 +1,33 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
// tests for PricePoint
void main() {
final PricePoint? instance = /* PricePoint(...) */ null;
// TODO add properties to the entity
group(PricePoint, () {
// decimal as string
// String accruedInterest
test('to test the property `accruedInterest`', () async {
// TODO
});
// decimal as string
// String close
test('to test the property `close`', () async {
// TODO
});
// String currency
test('to test the property `currency`', () async {
// TODO
});
// DateTime d
test('to test the property `d`', () async {
// TODO
});
});
}
@@ -0,0 +1,73 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
// tests for ReturnsOut
void main() {
final ReturnsOut? instance = /* ReturnsOut(...) */ null;
// TODO add properties to the entity
group(ReturnsOut, () {
// decimal as string
// String absPnlRub
test('to test the property `absPnlRub`', () async {
// TODO
});
// DateTime dateFrom
test('to test the property `dateFrom`', () async {
// TODO
});
// DateTime dateTo
test('to test the property `dateTo`', () async {
// TODO
});
// decimal as string
// String externalFlowRub
test('to test the property `externalFlowRub`', () async {
// TODO
});
// String period
test('to test the property `period`', () async {
// TODO
});
// decimal as string
// String twr
test('to test the property `twr`', () async {
// TODO
});
// decimal as string
// String twrAnnualized
test('to test the property `twrAnnualized`', () async {
// TODO
});
// int twrDaysSkipped
test('to test the property `twrDaysSkipped`', () async {
// TODO
});
// decimal as string
// String valueEndRub
test('to test the property `valueEndRub`', () async {
// TODO
});
// decimal as string
// String valueStartRub
test('to test the property `valueStartRub`', () async {
// TODO
});
// decimal as string
// String xirr
test('to test the property `xirr`', () async {
// TODO
});
});
}
@@ -0,0 +1,26 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
// tests for ScopeOut
void main() {
final ScopeOut? instance = /* ScopeOut(...) */ null;
// TODO add properties to the entity
group(ScopeOut, () {
// List<int> accountIds
test('to test the property `accountIds`', () async {
// TODO
});
// String name
test('to test the property `name`', () async {
// TODO
});
// String scope
test('to test the property `scope`', () async {
// TODO
});
});
}
@@ -0,0 +1,88 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
// tests for SummaryOut
void main() {
final SummaryOut? instance = /* SummaryOut(...) */ null;
// TODO add properties to the entity
group(SummaryOut, () {
// DateTime asOf
test('to test the property `asOf`', () async {
// TODO
});
// decimal as string
// String cashRub
test('to test the property `cashRub`', () async {
// TODO
});
// DateTime computedAt
test('to test the property `computedAt`', () async {
// TODO
});
// int holdingCount
test('to test the property `holdingCount`', () async {
// TODO
});
// decimal as string
// String incomeRub
test('to test the property `incomeRub`', () async {
// TODO
});
// decimal as string
// String investedNetRub
test('to test the property `investedNetRub`', () async {
// TODO
});
// decimal as string
// String marketValueRub
test('to test the property `marketValueRub`', () async {
// TODO
});
// decimal as string
// String pnlTotalRub
test('to test the property `pnlTotalRub`', () async {
// TODO
});
// decimal as string
// String realizedPnlRub
test('to test the property `realizedPnlRub`', () async {
// TODO
});
// List<ReturnsOut> returns
test('to test the property `returns`', () async {
// TODO
});
// String scope
test('to test the property `scope`', () async {
// TODO
});
// int staleCount
test('to test the property `staleCount`', () async {
// TODO
});
// decimal as string
// String totalRub
test('to test the property `totalRub`', () async {
// TODO
});
// int unpricedCount
test('to test the property `unpricedCount`', () async {
// TODO
});
});
}
@@ -0,0 +1,73 @@
import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
// tests for ValueDay
void main() {
final ValueDay? instance = /* ValueDay(...) */ null;
// TODO add properties to the entity
group(ValueDay, () {
// decimal as string
// String accruedInterestRub
test('to test the property `accruedInterestRub`', () async {
// TODO
});
// decimal as string
// String cashRub
test('to test the property `cashRub`', () async {
// TODO
});
// DateTime d
test('to test the property `d`', () async {
// TODO
});
// decimal as string
// String externalFlowRub
test('to test the property `externalFlowRub`', () async {
// TODO
});
// decimal as string
// String investedNetRub
test('to test the property `investedNetRub`', () async {
// TODO
});
// decimal as string
// String marketValueRub
test('to test the property `marketValueRub`', () async {
// TODO
});
// int missingFxCount
test('to test the property `missingFxCount`', () async {
// TODO
});
// int missingPriceCount
test('to test the property `missingPriceCount`', () async {
// TODO
});
// decimal as string
// String pnlTotalRub
test('to test the property `pnlTotalRub`', () async {
// TODO
});
// int stalePriceCount
test('to test the property `stalePriceCount`', () async {
// TODO
});
// decimal as string
// String totalRub
test('to test the property `totalRub`', () async {
// TODO
});
});
}