mirror of https://github.com/ghostfolio/ghostfolio
Thomas Kaul
2 years ago
committed by
GitHub
112 changed files with 238 additions and 245 deletions
@ -1,4 +1,4 @@ |
|||
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service'; |
|||
import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service'; |
|||
import { Module } from '@nestjs/common'; |
|||
|
|||
@Module({ |
@ -1,9 +1,8 @@ |
|||
import { Environment } from '@ghostfolio/api/services/interfaces/environment.interface'; |
|||
import { Injectable } from '@nestjs/common'; |
|||
import { DataSource } from '@prisma/client'; |
|||
import { bool, cleanEnv, host, json, num, port, str } from 'envalid'; |
|||
|
|||
import { Environment } from './interfaces/environment.interface'; |
|||
|
|||
@Injectable() |
|||
export class ConfigurationService { |
|||
private readonly environmentConfiguration: Environment; |
@ -1,17 +1,17 @@ |
|||
import { ConfigurationModule } from '@ghostfolio/api/services/configuration.module'; |
|||
import { DataGatheringService } from '@ghostfolio/api/services/data-gathering.service'; |
|||
import { ConfigurationModule } from '@ghostfolio/api/services/configuration/configuration.module'; |
|||
import { DataGatheringService } from '@ghostfolio/api/services/data-gathering/data-gathering.service'; |
|||
import { DataEnhancerModule } from '@ghostfolio/api/services/data-provider/data-enhancer/data-enhancer.module'; |
|||
import { DataProviderModule } from '@ghostfolio/api/services/data-provider/data-provider.module'; |
|||
import { PrismaModule } from '@ghostfolio/api/services/prisma.module'; |
|||
import { ExchangeRateDataModule } from '@ghostfolio/api/services/exchange-rate-data/exchange-rate-data.module'; |
|||
import { MarketDataModule } from '@ghostfolio/api/services/market-data/market-data.module'; |
|||
import { PrismaModule } from '@ghostfolio/api/services/prisma/prisma.module'; |
|||
import { SymbolProfileModule } from '@ghostfolio/api/services/symbol-profile/symbol-profile.module'; |
|||
import { DATA_GATHERING_QUEUE } from '@ghostfolio/common/config'; |
|||
import { BullModule } from '@nestjs/bull'; |
|||
import { Module } from '@nestjs/common'; |
|||
import ms from 'ms'; |
|||
|
|||
import { DataGatheringProcessor } from './data-gathering.processor'; |
|||
import { ExchangeRateDataModule } from './exchange-rate-data.module'; |
|||
import { MarketDataModule } from './market-data.module'; |
|||
import { SymbolProfileModule } from './symbol-profile.module'; |
|||
|
|||
@Module({ |
|||
imports: [ |
@ -1,12 +1,11 @@ |
|||
import { ConfigurationModule } from '@ghostfolio/api/services/configuration.module'; |
|||
import { ConfigurationModule } from '@ghostfolio/api/services/configuration/configuration.module'; |
|||
import { DataProviderModule } from '@ghostfolio/api/services/data-provider/data-provider.module'; |
|||
import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data.service'; |
|||
import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data/exchange-rate-data.service'; |
|||
import { MarketDataModule } from '@ghostfolio/api/services/market-data/market-data.module'; |
|||
import { PrismaModule } from '@ghostfolio/api/services/prisma/prisma.module'; |
|||
import { PropertyModule } from '@ghostfolio/api/services/property/property.module'; |
|||
import { Module } from '@nestjs/common'; |
|||
|
|||
import { MarketDataModule } from './market-data.module'; |
|||
import { PrismaModule } from './prisma.module'; |
|||
|
|||
@Module({ |
|||
exports: [ExchangeRateDataService], |
|||
imports: [ |
@ -1,16 +1,15 @@ |
|||
import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service'; |
|||
import { DataProviderService } from '@ghostfolio/api/services/data-provider/data-provider.service'; |
|||
import { IDataGatheringItem } from '@ghostfolio/api/services/interfaces/interfaces'; |
|||
import { MarketDataService } from '@ghostfolio/api/services/market-data/market-data.service'; |
|||
import { PrismaService } from '@ghostfolio/api/services/prisma/prisma.service'; |
|||
import { PropertyService } from '@ghostfolio/api/services/property/property.service'; |
|||
import { PROPERTY_CURRENCIES } from '@ghostfolio/common/config'; |
|||
import { DATE_FORMAT, getYesterday } from '@ghostfolio/common/helper'; |
|||
import { Injectable, Logger } from '@nestjs/common'; |
|||
import { format, isToday } from 'date-fns'; |
|||
import { isNumber, uniq } from 'lodash'; |
|||
|
|||
import { ConfigurationService } from './configuration.service'; |
|||
import { DataProviderService } from './data-provider/data-provider.service'; |
|||
import { IDataGatheringItem } from './interfaces/interfaces'; |
|||
import { MarketDataService } from './market-data.service'; |
|||
import { PrismaService } from './prisma.service'; |
|||
import { PropertyService } from './property/property.service'; |
|||
|
|||
@Injectable() |
|||
export class ExchangeRateDataService { |
|||
private baseCurrency: string; |
@ -1,5 +1,5 @@ |
|||
import { ImpersonationService } from '@ghostfolio/api/services/impersonation.service'; |
|||
import { PrismaModule } from '@ghostfolio/api/services/prisma.module'; |
|||
import { ImpersonationService } from '@ghostfolio/api/services/impersonation/impersonation.service'; |
|||
import { PrismaModule } from '@ghostfolio/api/services/prisma/prisma.module'; |
|||
import { Module } from '@nestjs/common'; |
|||
|
|||
@Module({ |
@ -1,7 +1,6 @@ |
|||
import { PrismaService } from '@ghostfolio/api/services/prisma/prisma.service'; |
|||
import { Injectable } from '@nestjs/common'; |
|||
|
|||
import { PrismaService } from './prisma.service'; |
|||
|
|||
@Injectable() |
|||
export class ImpersonationService { |
|||
public constructor(private readonly prismaService: PrismaService) {} |
@ -1,4 +1,4 @@ |
|||
import { PrismaModule } from '@ghostfolio/api/services/prisma.module'; |
|||
import { PrismaModule } from '@ghostfolio/api/services/prisma/prisma.module'; |
|||
import { Module } from '@nestjs/common'; |
|||
|
|||
import { MarketDataService } from './market-data.service'; |
@ -1,13 +1,12 @@ |
|||
import { UpdateMarketDataDto } from '@ghostfolio/api/app/admin/update-market-data.dto'; |
|||
import { DateQuery } from '@ghostfolio/api/app/portfolio/interfaces/date-query.interface'; |
|||
import { PrismaService } from '@ghostfolio/api/services/prisma.service'; |
|||
import { IDataGatheringItem } from '@ghostfolio/api/services/interfaces/interfaces'; |
|||
import { PrismaService } from '@ghostfolio/api/services/prisma/prisma.service'; |
|||
import { resetHours } from '@ghostfolio/common/helper'; |
|||
import { UniqueAsset } from '@ghostfolio/common/interfaces'; |
|||
import { Injectable } from '@nestjs/common'; |
|||
import { DataSource, MarketData, Prisma } from '@prisma/client'; |
|||
|
|||
import { IDataGatheringItem } from './interfaces/interfaces'; |
|||
|
|||
@Injectable() |
|||
export class MarketDataService { |
|||
public constructor(private readonly prismaService: PrismaService) {} |
@ -1,4 +1,4 @@ |
|||
import { PrismaService } from '@ghostfolio/api/services/prisma.service'; |
|||
import { PrismaService } from '@ghostfolio/api/services/prisma/prisma.service'; |
|||
import { Module } from '@nestjs/common'; |
|||
|
|||
@Module({ |
@ -1,4 +1,4 @@ |
|||
import { PrismaModule } from '@ghostfolio/api/services/prisma.module'; |
|||
import { PrismaModule } from '@ghostfolio/api/services/prisma/prisma.module'; |
|||
import { Module } from '@nestjs/common'; |
|||
|
|||
import { SymbolProfileService } from './symbol-profile.service'; |
@ -1,4 +1,4 @@ |
|||
import { PrismaService } from '@ghostfolio/api/services/prisma.service'; |
|||
import { PrismaService } from '@ghostfolio/api/services/prisma/prisma.service'; |
|||
import { UNKNOWN_KEY } from '@ghostfolio/common/config'; |
|||
import { |
|||
EnhancedSymbolProfile, |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue