mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
* feat(lib): move SymbolPipe to common lib * feat(lib): move CreateAccountBalanceDto to common lib * feat(lib): move IsCurrencyCode validator to common lib * feat(lib): move UpdateAssetProfileDto to common lib * feat(lib): move UpdateUserSettingDto to common lib * feat(lib): move CreateAccessDto to common lib * feat(lib): move UpdateAccessDto to common lib * feat(lib): move CreateTagDto to common lib * feat(lib): move UpdateTagDto to common lib * feat(lib): move CreatePlatformDto to common lib * feat(lib): move UpdatePlatformDto to common lib * feat(lib): move CreateOrderDto to common lib * feat(lib): move UpdateOrderDto to common lib * feat(lib): move RuleSettings interface to common lib * feat(lib): move CreateAccountDto TransferBalanceDto UpdateAccountDto to common lib * feat(lib): move CreateAccountWithBalancesDto to common lib * feat(lib): move CreateAssetProfileDto and CreateAssetProfileWithMarketDataDto to common lib * feat(lib): move AuthDeviceDto to common lib * feat(lib): move simplewebauthn interfaces to common lib This includes AssertionCredentialJSON, AttestationCredentialJSON, PublicKeyCredentialCreationOptionsJSON, PublicKeyCredentialRequestOptionsJSON. * feat(lib): move UpdateMarketDataDto to common lib * feat(lib): move UpdateBulkMarketDataDto to common lib * feat(lib): move CreateWatchlistItemDto to common lib * feat(lib): move DeleteOwnUserDto to common lib * feat(lib): move UserItem interface to common lib * feat(lib): move UpdateOwnAccessTokenDto to common lib * feat(lib): move PropertyDto to common libpull/5945/head
committed by
GitHub
98 changed files with 241 additions and 209 deletions
@ -1,24 +0,0 @@ |
|||
import { Type } from 'class-transformer'; |
|||
import { |
|||
ArrayNotEmpty, |
|||
IsArray, |
|||
IsISO8601, |
|||
IsNumber, |
|||
IsOptional |
|||
} from 'class-validator'; |
|||
|
|||
export class UpdateBulkMarketDataDto { |
|||
@ArrayNotEmpty() |
|||
@IsArray() |
|||
@Type(() => UpdateMarketDataDto) |
|||
marketData: UpdateMarketDataDto[]; |
|||
} |
|||
|
|||
class UpdateMarketDataDto { |
|||
@IsISO8601() |
|||
@IsOptional() |
|||
date?: string; |
|||
|
|||
@IsNumber() |
|||
marketPrice: number; |
|||
} |
|||
@ -1,4 +1,4 @@ |
|||
import { CreateAccountDto } from '@ghostfolio/api/app/account/create-account.dto'; |
|||
import { CreateAccountDto } from '@ghostfolio/common/dtos'; |
|||
import { AccountBalance } from '@ghostfolio/common/interfaces'; |
|||
|
|||
import { IsArray, IsOptional } from 'class-validator'; |
|||
@ -1,4 +1,4 @@ |
|||
import { IsCurrencyCode } from '@ghostfolio/api/validators/is-currency-code'; |
|||
import { IsCurrencyCode } from '@ghostfolio/common/validators/is-currency-code'; |
|||
|
|||
import { Transform, TransformFnParams } from 'class-transformer'; |
|||
import { |
|||
@ -1,4 +1,4 @@ |
|||
import { IsCurrencyCode } from '@ghostfolio/api/validators/is-currency-code'; |
|||
import { IsCurrencyCode } from '@ghostfolio/common/validators/is-currency-code'; |
|||
|
|||
import { AssetClass, AssetSubClass, DataSource, Prisma } from '@prisma/client'; |
|||
import { |
|||
@ -1,5 +1,5 @@ |
|||
import { IsCurrencyCode } from '@ghostfolio/api/validators/is-currency-code'; |
|||
import { IsAfter1970Constraint } from '@ghostfolio/common/validator-constraints/is-after-1970'; |
|||
import { IsCurrencyCode } from '@ghostfolio/common/validators/is-currency-code'; |
|||
|
|||
import { AssetClass, AssetSubClass, DataSource, Type } from '@prisma/client'; |
|||
import { Transform, TransformFnParams } from 'class-transformer'; |
|||
@ -0,0 +1,51 @@ |
|||
import { AuthDeviceDto } from './auth-device.dto'; |
|||
import { CreateAccessDto } from './create-access.dto'; |
|||
import { CreateAccountBalanceDto } from './create-account-balance.dto'; |
|||
import { CreateAccountWithBalancesDto } from './create-account-with-balances.dto'; |
|||
import { CreateAccountDto } from './create-account.dto'; |
|||
import { CreateAssetProfileWithMarketDataDto } from './create-asset-profile-with-market-data.dto'; |
|||
import { CreateAssetProfileDto } from './create-asset-profile.dto'; |
|||
import { CreateOrderDto } from './create-order.dto'; |
|||
import { CreatePlatformDto } from './create-platform.dto'; |
|||
import { CreateTagDto } from './create-tag.dto'; |
|||
import { CreateWatchlistItemDto } from './create-watchlist-item.dto'; |
|||
import { DeleteOwnUserDto } from './delete-own-user.dto'; |
|||
import { TransferBalanceDto } from './transfer-balance.dto'; |
|||
import { UpdateAccessDto } from './update-access.dto'; |
|||
import { UpdateAccountDto } from './update-account.dto'; |
|||
import { UpdateAssetProfileDto } from './update-asset-profile.dto'; |
|||
import { UpdateBulkMarketDataDto } from './update-bulk-market-data.dto'; |
|||
import { UpdateMarketDataDto } from './update-market-data.dto'; |
|||
import { UpdateOrderDto } from './update-order.dto'; |
|||
import { UpdateOwnAccessTokenDto } from './update-own-access-token.dto'; |
|||
import { UpdatePlatformDto } from './update-platform.dto'; |
|||
import { UpdatePropertyDto } from './update-property.dto'; |
|||
import { UpdateTagDto } from './update-tag.dto'; |
|||
import { UpdateUserSettingDto } from './update-user-setting.dto'; |
|||
|
|||
export { |
|||
AuthDeviceDto, |
|||
CreateAccessDto, |
|||
CreateAccountBalanceDto, |
|||
CreateAccountDto, |
|||
CreateAccountWithBalancesDto, |
|||
CreateAssetProfileDto, |
|||
CreateAssetProfileWithMarketDataDto, |
|||
CreateOrderDto, |
|||
CreatePlatformDto, |
|||
CreateTagDto, |
|||
CreateWatchlistItemDto, |
|||
DeleteOwnUserDto, |
|||
TransferBalanceDto, |
|||
UpdateAccessDto, |
|||
UpdateAccountDto, |
|||
UpdateAssetProfileDto, |
|||
UpdateBulkMarketDataDto, |
|||
UpdateMarketDataDto, |
|||
UpdateOrderDto, |
|||
UpdateOwnAccessTokenDto, |
|||
UpdatePlatformDto, |
|||
UpdatePropertyDto, |
|||
UpdateTagDto, |
|||
UpdateUserSettingDto |
|||
}; |
|||
@ -1,4 +1,4 @@ |
|||
import { IsCurrencyCode } from '@ghostfolio/api/validators/is-currency-code'; |
|||
import { IsCurrencyCode } from '@ghostfolio/common/validators/is-currency-code'; |
|||
|
|||
import { Transform, TransformFnParams } from 'class-transformer'; |
|||
import { |
|||
@ -1,4 +1,4 @@ |
|||
import { IsCurrencyCode } from '@ghostfolio/api/validators/is-currency-code'; |
|||
import { IsCurrencyCode } from '@ghostfolio/common/validators/is-currency-code'; |
|||
|
|||
import { AssetClass, AssetSubClass, DataSource, Prisma } from '@prisma/client'; |
|||
import { |
|||
@ -1,8 +1,8 @@ |
|||
import { UpdateMarketDataDto } from '@ghostfolio/common/dtos'; |
|||
|
|||
import { Type } from 'class-transformer'; |
|||
import { ArrayNotEmpty, IsArray } from 'class-validator'; |
|||
|
|||
import { UpdateMarketDataDto } from './update-market-data.dto'; |
|||
|
|||
export class UpdateBulkMarketDataDto { |
|||
@ArrayNotEmpty() |
|||
@IsArray() |
|||
@ -1,5 +1,5 @@ |
|||
import { IsCurrencyCode } from '@ghostfolio/api/validators/is-currency-code'; |
|||
import { IsAfter1970Constraint } from '@ghostfolio/common/validator-constraints/is-after-1970'; |
|||
import { IsCurrencyCode } from '@ghostfolio/common/validators/is-currency-code'; |
|||
|
|||
import { AssetClass, AssetSubClass, DataSource, Type } from '@prisma/client'; |
|||
import { Transform, TransformFnParams } from 'class-transformer'; |
|||
@ -1,6 +1,6 @@ |
|||
import { IsOptional, IsString } from 'class-validator'; |
|||
|
|||
export class PropertyDto { |
|||
export class UpdatePropertyDto { |
|||
@IsOptional() |
|||
@IsString() |
|||
value: string; |
|||
@ -0,0 +1,3 @@ |
|||
import { GfSymbolPipe } from './symbol.pipe'; |
|||
|
|||
export { GfSymbolPipe }; |
|||
Loading…
Reference in new issue