Browse Source
Bugfix/improve types in data service (#6492)
* Improve types
pull/6258/merge
Thomas Kaul
1 day ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
4 deletions
-
libs/ui/src/lib/services/data.service.ts
|
|
|
@ -69,10 +69,11 @@ import { Injectable } from '@angular/core'; |
|
|
|
import { SortDirection } from '@angular/material/sort'; |
|
|
|
import { utc } from '@date-fns/utc'; |
|
|
|
import { |
|
|
|
Account, |
|
|
|
AccountBalance, |
|
|
|
DataSource, |
|
|
|
MarketData, |
|
|
|
Order as OrderModel, |
|
|
|
Order, |
|
|
|
Tag |
|
|
|
} from '@prisma/client'; |
|
|
|
import { format, parseISO } from 'date-fns'; |
|
|
|
@ -751,11 +752,11 @@ export class DataService { |
|
|
|
} |
|
|
|
|
|
|
|
public postAccess(aAccess: CreateAccessDto) { |
|
|
|
return this.http.post<OrderModel>('/api/v1/access', aAccess); |
|
|
|
return this.http.post<Access>('/api/v1/access', aAccess); |
|
|
|
} |
|
|
|
|
|
|
|
public postAccount(aAccount: CreateAccountDto) { |
|
|
|
return this.http.post<OrderModel>('/api/v1/account', aAccount); |
|
|
|
return this.http.post<Account>('/api/v1/account', aAccount); |
|
|
|
} |
|
|
|
|
|
|
|
public postAccountBalance(aAccountBalance: CreateAccountBalanceDto) { |
|
|
|
@ -766,7 +767,7 @@ export class DataService { |
|
|
|
} |
|
|
|
|
|
|
|
public postActivity(aOrder: CreateOrderDto) { |
|
|
|
return this.http.post<OrderModel>('/api/v1/activities', aOrder); |
|
|
|
return this.http.post<Order>('/api/v1/activities', aOrder); |
|
|
|
} |
|
|
|
|
|
|
|
public postApiKey() { |
|
|
|
|