diff --git a/apps/api/src/app/access/access.controller.ts b/apps/api/src/app/access/access.controller.ts index 87d2c2398..41c2778d4 100644 --- a/apps/api/src/app/access/access.controller.ts +++ b/apps/api/src/app/access/access.controller.ts @@ -1,7 +1,7 @@ import { Controller, Get, Inject, UseGuards } from '@nestjs/common'; import { REQUEST } from '@nestjs/core'; import { AuthGuard } from '@nestjs/passport'; -import { RequestWithUser } from 'apps/api/src/app/interfaces/request-with-user.type'; +import { RequestWithUser } from '@ghostfolio/api/app/interfaces/request-with-user.type'; import { AccessService } from './access.service'; import { Access } from './interfaces/access.interface'; diff --git a/apps/api/src/app/cache/cache.controller.ts b/apps/api/src/app/cache/cache.controller.ts index 78ae4f409..44105f966 100644 --- a/apps/api/src/app/cache/cache.controller.ts +++ b/apps/api/src/app/cache/cache.controller.ts @@ -1,7 +1,7 @@ import { Controller, Inject, Param, Post, UseGuards } from '@nestjs/common'; import { REQUEST } from '@nestjs/core'; import { AuthGuard } from '@nestjs/passport'; -import { RequestWithUser } from 'apps/api/src/app/interfaces/request-with-user.type'; +import { RequestWithUser } from '@ghostfolio/api/app/interfaces/request-with-user.type'; import { RedisCacheService } from '../redis-cache/redis-cache.service'; import { CacheService } from './cache.service'; diff --git a/apps/api/src/app/experimental/experimental.controller.ts b/apps/api/src/app/experimental/experimental.controller.ts index d9795e988..28e951ac7 100644 --- a/apps/api/src/app/experimental/experimental.controller.ts +++ b/apps/api/src/app/experimental/experimental.controller.ts @@ -14,7 +14,7 @@ import { Post } from '@nestjs/common'; import { REQUEST } from '@nestjs/core'; -import { RequestWithUser } from 'apps/api/src/app/interfaces/request-with-user.type'; +import { RequestWithUser } from '@ghostfolio/api/app/interfaces/request-with-user.type'; import { parse } from 'date-fns'; import { StatusCodes, getReasonPhrase } from 'http-status-codes'; diff --git a/apps/api/src/app/symbol/symbol.controller.ts b/apps/api/src/app/symbol/symbol.controller.ts index 7e87c1104..4fe2d0c11 100644 --- a/apps/api/src/app/symbol/symbol.controller.ts +++ b/apps/api/src/app/symbol/symbol.controller.ts @@ -9,7 +9,7 @@ import { } from '@nestjs/common'; import { REQUEST } from '@nestjs/core'; import { AuthGuard } from '@nestjs/passport'; -import { RequestWithUser } from 'apps/api/src/app/interfaces/request-with-user.type'; +import { RequestWithUser } from '@ghostfolio/api/app/interfaces/request-with-user.type'; import { StatusCodes, getReasonPhrase } from 'http-status-codes'; import { LookupItem } from './interfaces/lookup-item.interface'; diff --git a/apps/api/src/app/user/user.controller.ts b/apps/api/src/app/user/user.controller.ts index 2f1ff0abc..ab9f831b0 100644 --- a/apps/api/src/app/user/user.controller.ts +++ b/apps/api/src/app/user/user.controller.ts @@ -14,7 +14,7 @@ import { REQUEST } from '@nestjs/core'; import { JwtService } from '@nestjs/jwt'; import { AuthGuard } from '@nestjs/passport'; import { Provider } from '@prisma/client'; -import { RequestWithUser } from 'apps/api/src/app/interfaces/request-with-user.type'; +import { RequestWithUser } from '@ghostfolio/api/app/interfaces/request-with-user.type'; import { StatusCodes, getReasonPhrase } from 'http-status-codes'; import { UserItem } from './interfaces/user-item.interface'; diff --git a/apps/api/src/models/interfaces/portfolio.interface.ts b/apps/api/src/models/interfaces/portfolio.interface.ts index b280339b6..a3e377b58 100644 --- a/apps/api/src/models/interfaces/portfolio.interface.ts +++ b/apps/api/src/models/interfaces/portfolio.interface.ts @@ -1,7 +1,7 @@ import { PortfolioItem, Position -} from 'apps/api/src/app/portfolio/interfaces/portfolio-item.interface'; +} from '@ghostfolio/api/app/portfolio/interfaces/portfolio-item.interface'; import { Order } from '../order'; diff --git a/apps/api/src/models/portfolio.ts b/apps/api/src/models/portfolio.ts index e5b0efa64..771884e0d 100644 --- a/apps/api/src/models/portfolio.ts +++ b/apps/api/src/models/portfolio.ts @@ -2,7 +2,7 @@ import { getToday, getYesterday, resetHours } from '@ghostfolio/helper'; import { PortfolioItem, Position -} from 'apps/api/src/app/portfolio/interfaces/portfolio-item.interface'; +} from '@ghostfolio/api/app/portfolio/interfaces/portfolio-item.interface'; import { add, format, diff --git a/apps/api/src/models/rules/currency-cluster-risk/base-currency-initial-investment.ts b/apps/api/src/models/rules/currency-cluster-risk/base-currency-initial-investment.ts index a2b86318d..1282ec602 100644 --- a/apps/api/src/models/rules/currency-cluster-risk/base-currency-initial-investment.ts +++ b/apps/api/src/models/rules/currency-cluster-risk/base-currency-initial-investment.ts @@ -1,4 +1,4 @@ -import { PortfolioPosition } from 'apps/api/src/app/portfolio/interfaces/portfolio-position.interface'; +import { PortfolioPosition } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-position.interface'; import { ExchangeRateDataService } from 'apps/api/src/services/exchange-rate-data.service'; import { Rule } from '../../rule'; diff --git a/apps/api/src/models/rules/currency-cluster-risk/current-investment.ts b/apps/api/src/models/rules/currency-cluster-risk/current-investment.ts index 4558fb940..ae937e244 100644 --- a/apps/api/src/models/rules/currency-cluster-risk/current-investment.ts +++ b/apps/api/src/models/rules/currency-cluster-risk/current-investment.ts @@ -1,4 +1,4 @@ -import { PortfolioPosition } from 'apps/api/src/app/portfolio/interfaces/portfolio-position.interface'; +import { PortfolioPosition } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-position.interface'; import { ExchangeRateDataService } from 'apps/api/src/services/exchange-rate-data.service'; import { Rule } from '../../rule'; diff --git a/apps/api/src/models/rules/currency-cluster-risk/initial-investment.ts b/apps/api/src/models/rules/currency-cluster-risk/initial-investment.ts index d852739f0..da800be6c 100644 --- a/apps/api/src/models/rules/currency-cluster-risk/initial-investment.ts +++ b/apps/api/src/models/rules/currency-cluster-risk/initial-investment.ts @@ -1,4 +1,4 @@ -import { PortfolioPosition } from 'apps/api/src/app/portfolio/interfaces/portfolio-position.interface'; +import { PortfolioPosition } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-position.interface'; import { ExchangeRateDataService } from 'apps/api/src/services/exchange-rate-data.service'; import { Rule } from '../../rule'; diff --git a/apps/api/src/models/rules/fees/fee-ratio-initial-investment.ts b/apps/api/src/models/rules/fees/fee-ratio-initial-investment.ts index 28d07f07c..4bf353549 100644 --- a/apps/api/src/models/rules/fees/fee-ratio-initial-investment.ts +++ b/apps/api/src/models/rules/fees/fee-ratio-initial-investment.ts @@ -1,4 +1,4 @@ -import { PortfolioPosition } from 'apps/api/src/app/portfolio/interfaces/portfolio-position.interface'; +import { PortfolioPosition } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-position.interface'; import { ExchangeRateDataService } from 'apps/api/src/services/exchange-rate-data.service'; import { Rule } from '../../rule'; diff --git a/apps/api/src/models/rules/platform-cluster-risk/initial-investment.ts b/apps/api/src/models/rules/platform-cluster-risk/initial-investment.ts index 0e6580efd..1bd83d7e0 100644 --- a/apps/api/src/models/rules/platform-cluster-risk/initial-investment.ts +++ b/apps/api/src/models/rules/platform-cluster-risk/initial-investment.ts @@ -1,4 +1,4 @@ -import { PortfolioPosition } from 'apps/api/src/app/portfolio/interfaces/portfolio-position.interface'; +import { PortfolioPosition } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-position.interface'; import { ExchangeRateDataService } from 'apps/api/src/services/exchange-rate-data.service'; import { Rule } from '../../rule'; diff --git a/apps/api/src/models/rules/platform-cluster-risk/single-platform.ts b/apps/api/src/models/rules/platform-cluster-risk/single-platform.ts index 714184bae..531453909 100644 --- a/apps/api/src/models/rules/platform-cluster-risk/single-platform.ts +++ b/apps/api/src/models/rules/platform-cluster-risk/single-platform.ts @@ -1,4 +1,4 @@ -import { PortfolioPosition } from 'apps/api/src/app/portfolio/interfaces/portfolio-position.interface'; +import { PortfolioPosition } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-position.interface'; import { ExchangeRateDataService } from 'apps/api/src/services/exchange-rate-data.service'; import { Rule } from '../../rule'; diff --git a/apps/client/src/app/app.component.ts b/apps/client/src/app/app.component.ts index 1b2d4fa52..96cea6430 100644 --- a/apps/client/src/app/app.component.ts +++ b/apps/client/src/app/app.component.ts @@ -13,8 +13,8 @@ import { secondaryColorHex } from '@ghostfolio/helper'; import { MaterialCssVarsService } from 'angular-material-css-vars'; -import { InfoItem } from 'apps/api/src/app/info/interfaces/info-item.interface'; -import { User } from 'apps/api/src/app/user/interfaces/user.interface'; +import { InfoItem } from '@ghostfolio/api/app/info/interfaces/info-item.interface'; +import { User } from '@ghostfolio/api/app/user/interfaces/user.interface'; import { Subject } from 'rxjs'; import { filter, takeUntil } from 'rxjs/operators'; diff --git a/apps/client/src/app/components/access-table/access-table.component.ts b/apps/client/src/app/components/access-table/access-table.component.ts index 313efb7f2..b7004baa8 100644 --- a/apps/client/src/app/components/access-table/access-table.component.ts +++ b/apps/client/src/app/components/access-table/access-table.component.ts @@ -6,7 +6,7 @@ import { OnInit } from '@angular/core'; import { MatTableDataSource } from '@angular/material/table'; -import { Access } from 'apps/api/src/app/access/interfaces/access.interface'; +import { Access } from '@ghostfolio/api/app/access/interfaces/access.interface'; @Component({ selector: 'gf-access-table', diff --git a/apps/client/src/app/components/header/header.component.ts b/apps/client/src/app/components/header/header.component.ts index ceac52a22..59b124ecd 100644 --- a/apps/client/src/app/components/header/header.component.ts +++ b/apps/client/src/app/components/header/header.component.ts @@ -6,13 +6,13 @@ import { } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { Router } from '@angular/router'; +import { InfoItem } from '@ghostfolio/api/app/info/interfaces/info-item.interface'; import { LoginWithAccessTokenDialog } from '@ghostfolio/client/pages/login/login-with-access-token-dialog/login-with-access-token-dialog.component'; import { DataService } from '@ghostfolio/client/services/data.service'; import { ImpersonationStorageService } from '@ghostfolio/client/services/impersonation-storage.service'; import { TokenStorageService } from '@ghostfolio/client/services/token-storage.service'; import { hasPermission, permissions } from '@ghostfolio/helper'; -import { InfoItem } from 'apps/api/src/app/info/interfaces/info-item.interface'; -import { User } from 'apps/api/src/app/user/interfaces/user.interface'; +import { User } from '@ghostfolio/api/app/user/interfaces/user.interface'; import { EMPTY, Subject } from 'rxjs'; import { catchError, takeUntil } from 'rxjs/operators'; diff --git a/apps/client/src/app/components/investment-chart/investment-chart.component.ts b/apps/client/src/app/components/investment-chart/investment-chart.component.ts index 5a535983a..b43cf039e 100644 --- a/apps/client/src/app/components/investment-chart/investment-chart.component.ts +++ b/apps/client/src/app/components/investment-chart/investment-chart.component.ts @@ -10,7 +10,7 @@ import { ViewChild } from '@angular/core'; import { primaryColorRgb } from '@ghostfolio/helper'; -import { PortfolioItem } from 'apps/api/src/app/portfolio/interfaces/portfolio-item.interface'; +import { PortfolioItem } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-item.interface'; import { LineController, LineElement, diff --git a/apps/client/src/app/components/portfolio-overview/portfolio-overview.component.ts b/apps/client/src/app/components/portfolio-overview/portfolio-overview.component.ts index 8dc9663e7..a647a86c0 100644 --- a/apps/client/src/app/components/portfolio-overview/portfolio-overview.component.ts +++ b/apps/client/src/app/components/portfolio-overview/portfolio-overview.component.ts @@ -6,7 +6,7 @@ import { OnInit } from '@angular/core'; import { Currency } from '@prisma/client'; -import { PortfolioOverview } from 'apps/api/src/app/portfolio/interfaces/portfolio-overview.interface'; +import { PortfolioOverview } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-overview.interface'; @Component({ selector: 'gf-portfolio-overview', diff --git a/apps/client/src/app/components/portfolio-performance-summary/portfolio-performance-summary.component.ts b/apps/client/src/app/components/portfolio-performance-summary/portfolio-performance-summary.component.ts index 8aac9cd7e..6e39d3ec0 100644 --- a/apps/client/src/app/components/portfolio-performance-summary/portfolio-performance-summary.component.ts +++ b/apps/client/src/app/components/portfolio-performance-summary/portfolio-performance-summary.component.ts @@ -8,7 +8,7 @@ import { ViewChild } from '@angular/core'; import { Currency } from '@prisma/client'; -import { PortfolioPerformance } from 'apps/api/src/app/portfolio/interfaces/portfolio-performance.interface'; +import { PortfolioPerformance } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-performance.interface'; import { CountUp } from 'countup.js'; import { isNumber } from 'lodash'; diff --git a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts index 65f6b08e1..7bf5454a5 100644 --- a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts +++ b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts @@ -5,7 +5,7 @@ import { OnInit } from '@angular/core'; import { Currency } from '@prisma/client'; -import { PortfolioPerformance } from 'apps/api/src/app/portfolio/interfaces/portfolio-performance.interface'; +import { PortfolioPerformance } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-performance.interface'; @Component({ selector: 'gf-portfolio-performance', diff --git a/apps/client/src/app/components/portfolio-positions-chart/portfolio-positions-chart.component.ts b/apps/client/src/app/components/portfolio-positions-chart/portfolio-positions-chart.component.ts index 4fbfce576..5c2497c14 100644 --- a/apps/client/src/app/components/portfolio-positions-chart/portfolio-positions-chart.component.ts +++ b/apps/client/src/app/components/portfolio-positions-chart/portfolio-positions-chart.component.ts @@ -7,7 +7,7 @@ import { OnChanges, OnInit } from '@angular/core'; -import { PortfolioItem } from 'apps/api/src/app/portfolio/interfaces/portfolio-item.interface'; +import { PortfolioItem } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-item.interface'; import { endOfDay, parseISO, startOfDay } from 'date-fns'; @Component({ diff --git a/apps/client/src/app/components/portfolio-proportion-chart/portfolio-proportion-chart.component.ts b/apps/client/src/app/components/portfolio-proportion-chart/portfolio-proportion-chart.component.ts index 48ec59d1c..0571e480c 100644 --- a/apps/client/src/app/components/portfolio-proportion-chart/portfolio-proportion-chart.component.ts +++ b/apps/client/src/app/components/portfolio-proportion-chart/portfolio-proportion-chart.component.ts @@ -8,7 +8,7 @@ import { ViewChild } from '@angular/core'; import { Currency } from '@prisma/client'; -import { PortfolioPosition } from 'apps/api/src/app/portfolio/interfaces/portfolio-position.interface'; +import { PortfolioPosition } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-position.interface'; import { Tooltip } from 'chart.js'; import { LinearScale } from 'chart.js'; import { ArcElement } from 'chart.js'; diff --git a/apps/client/src/app/components/position/position.component.ts b/apps/client/src/app/components/position/position.component.ts index b1dc8c32f..4c18c9462 100644 --- a/apps/client/src/app/components/position/position.component.ts +++ b/apps/client/src/app/components/position/position.component.ts @@ -7,7 +7,7 @@ import { } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { ActivatedRoute, Router } from '@angular/router'; -import { PortfolioPosition } from 'apps/api/src/app/portfolio/interfaces/portfolio-position.interface'; +import { PortfolioPosition } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-position.interface'; import { Subject, Subscription } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; diff --git a/apps/client/src/app/components/positions-table/positions-table.component.ts b/apps/client/src/app/components/positions-table/positions-table.component.ts index 9b15e1340..4e0a9a60a 100644 --- a/apps/client/src/app/components/positions-table/positions-table.component.ts +++ b/apps/client/src/app/components/positions-table/positions-table.component.ts @@ -14,7 +14,7 @@ import { MatSort } from '@angular/material/sort'; import { MatTableDataSource } from '@angular/material/table'; import { ActivatedRoute, Router } from '@angular/router'; import { Order as OrderModel } from '@prisma/client'; -import { PortfolioPosition } from 'apps/api/src/app/portfolio/interfaces/portfolio-position.interface'; +import { PortfolioPosition } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-position.interface'; import { Subject, Subscription } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; diff --git a/apps/client/src/app/components/positions/positions.component.ts b/apps/client/src/app/components/positions/positions.component.ts index 5609fc3cf..1dcc991d3 100644 --- a/apps/client/src/app/components/positions/positions.component.ts +++ b/apps/client/src/app/components/positions/positions.component.ts @@ -5,7 +5,7 @@ import { OnChanges, OnInit } from '@angular/core'; -import { PortfolioPosition } from 'apps/api/src/app/portfolio/interfaces/portfolio-position.interface'; +import { PortfolioPosition } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-position.interface'; @Component({ selector: 'gf-positions', diff --git a/apps/client/src/app/components/rule/rule.component.ts b/apps/client/src/app/components/rule/rule.component.ts index 660fb3daf..2bf6fe4a5 100644 --- a/apps/client/src/app/components/rule/rule.component.ts +++ b/apps/client/src/app/components/rule/rule.component.ts @@ -4,7 +4,7 @@ import { Input, OnInit } from '@angular/core'; -import { PortfolioReportRule } from 'apps/api/src/app/portfolio/interfaces/portfolio-report.interface'; +import { PortfolioReportRule } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-report.interface'; @Component({ selector: 'gf-rule', diff --git a/apps/client/src/app/components/rules/rules.component.ts b/apps/client/src/app/components/rules/rules.component.ts index fcb6bae81..61af91883 100644 --- a/apps/client/src/app/components/rules/rules.component.ts +++ b/apps/client/src/app/components/rules/rules.component.ts @@ -1,5 +1,5 @@ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; -import { PortfolioReportRule } from 'apps/api/src/app/portfolio/interfaces/portfolio-report.interface'; +import { PortfolioReportRule } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-report.interface'; @Component({ selector: 'gf-rules', diff --git a/apps/client/src/app/pages/about/about-page.component.ts b/apps/client/src/app/pages/about/about-page.component.ts index a9b0bf818..4cf5327f7 100644 --- a/apps/client/src/app/pages/about/about-page.component.ts +++ b/apps/client/src/app/pages/about/about-page.component.ts @@ -2,7 +2,7 @@ import { ChangeDetectorRef, Component, OnInit } from '@angular/core'; import { DataService } from '@ghostfolio/client/services/data.service'; import { TokenStorageService } from '@ghostfolio/client/services/token-storage.service'; import { baseCurrency } from '@ghostfolio/helper'; -import { User } from 'apps/api/src/app/user/interfaces/user.interface'; +import { User } from '@ghostfolio/api/app/user/interfaces/user.interface'; import { environment } from 'apps/client/src/environments/environment'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; diff --git a/apps/client/src/app/pages/account/account-page.component.ts b/apps/client/src/app/pages/account/account-page.component.ts index a832bf125..af1b3151f 100644 --- a/apps/client/src/app/pages/account/account-page.component.ts +++ b/apps/client/src/app/pages/account/account-page.component.ts @@ -2,8 +2,8 @@ import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core'; import { DataService } from '@ghostfolio/client/services/data.service'; import { TokenStorageService } from '@ghostfolio/client/services/token-storage.service'; import { DEFAULT_DATE_FORMAT } from '@ghostfolio/helper'; -import { Access } from 'apps/api/src/app/access/interfaces/access.interface'; -import { User } from 'apps/api/src/app/user/interfaces/user.interface'; +import { Access } from '@ghostfolio/api/app/access/interfaces/access.interface'; +import { User } from '@ghostfolio/api/app/user/interfaces/user.interface'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; diff --git a/apps/client/src/app/pages/admin/admin-page.component.ts b/apps/client/src/app/pages/admin/admin-page.component.ts index 99d378d02..ddb7ce1d1 100644 --- a/apps/client/src/app/pages/admin/admin-page.component.ts +++ b/apps/client/src/app/pages/admin/admin-page.component.ts @@ -3,7 +3,7 @@ import { AdminService } from '@ghostfolio/client/services/admin.service'; import { CacheService } from '@ghostfolio/client/services/cache.service'; import { DataService } from '@ghostfolio/client/services/data.service'; import { DEFAULT_DATE_FORMAT } from '@ghostfolio/helper'; -import { AdminData } from 'apps/api/src/app/admin/interfaces/admin-data.interface'; +import { AdminData } from '@ghostfolio/api/app/admin/interfaces/admin-data.interface'; import { formatDistanceToNow, isValid, parseISO, sub } from 'date-fns'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; diff --git a/apps/client/src/app/pages/analysis/analysis-page.component.ts b/apps/client/src/app/pages/analysis/analysis-page.component.ts index 55fdf89ac..aae9c135e 100644 --- a/apps/client/src/app/pages/analysis/analysis-page.component.ts +++ b/apps/client/src/app/pages/analysis/analysis-page.component.ts @@ -3,9 +3,9 @@ import { ToggleOption } from '@ghostfolio/client/components/toggle/interfaces/to import { DataService } from '@ghostfolio/client/services/data.service'; import { ImpersonationStorageService } from '@ghostfolio/client/services/impersonation-storage.service'; import { TokenStorageService } from '@ghostfolio/client/services/token-storage.service'; -import { PortfolioItem } from 'apps/api/src/app/portfolio/interfaces/portfolio-item.interface'; -import { PortfolioPosition } from 'apps/api/src/app/portfolio/interfaces/portfolio-position.interface'; -import { User } from 'apps/api/src/app/user/interfaces/user.interface'; +import { PortfolioItem } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-item.interface'; +import { PortfolioPosition } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-position.interface'; +import { User } from '@ghostfolio/api/app/user/interfaces/user.interface'; import { DeviceDetectorService } from 'ngx-device-detector'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; diff --git a/apps/client/src/app/pages/home/home-page.component.ts b/apps/client/src/app/pages/home/home-page.component.ts index 2d5a99a13..4bebde4bf 100644 --- a/apps/client/src/app/pages/home/home-page.component.ts +++ b/apps/client/src/app/pages/home/home-page.component.ts @@ -12,11 +12,11 @@ import { } from '@ghostfolio/client/services/settings-storage.service'; import { TokenStorageService } from '@ghostfolio/client/services/token-storage.service'; import { hasPermission, permissions } from '@ghostfolio/helper'; -import { DateRange } from 'apps/api/src/app/portfolio/interfaces/date-range.type'; -import { PortfolioOverview } from 'apps/api/src/app/portfolio/interfaces/portfolio-overview.interface'; -import { PortfolioPerformance } from 'apps/api/src/app/portfolio/interfaces/portfolio-performance.interface'; -import { PortfolioPosition } from 'apps/api/src/app/portfolio/interfaces/portfolio-position.interface'; -import { User } from 'apps/api/src/app/user/interfaces/user.interface'; +import { DateRange } from '@ghostfolio/api/app/portfolio/interfaces/date-range.type'; +import { PortfolioOverview } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-overview.interface'; +import { PortfolioPerformance } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-performance.interface'; +import { PortfolioPosition } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-position.interface'; +import { User } from '@ghostfolio/api/app/user/interfaces/user.interface'; import { DeviceDetectorService } from 'ngx-device-detector'; import { Subject, Subscription } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; diff --git a/apps/client/src/app/pages/report/report-page.component.ts b/apps/client/src/app/pages/report/report-page.component.ts index c507fc2d2..5246fcd93 100644 --- a/apps/client/src/app/pages/report/report-page.component.ts +++ b/apps/client/src/app/pages/report/report-page.component.ts @@ -1,6 +1,6 @@ import { ChangeDetectorRef, Component, OnInit } from '@angular/core'; import { DataService } from '@ghostfolio/client/services/data.service'; -import { PortfolioReportRule } from 'apps/api/src/app/portfolio/interfaces/portfolio-report.interface'; +import { PortfolioReportRule } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-report.interface'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; diff --git a/apps/client/src/app/pages/transactions/create-or-update-transaction-dialog/create-or-update-transaction-dialog.component.ts b/apps/client/src/app/pages/transactions/create-or-update-transaction-dialog/create-or-update-transaction-dialog.component.ts index ecece2d50..2e741c253 100644 --- a/apps/client/src/app/pages/transactions/create-or-update-transaction-dialog/create-or-update-transaction-dialog.component.ts +++ b/apps/client/src/app/pages/transactions/create-or-update-transaction-dialog/create-or-update-transaction-dialog.component.ts @@ -8,7 +8,7 @@ import { FormControl, Validators } from '@angular/forms'; import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { Currency, Order as OrderModel } from '@prisma/client'; -import { LookupItem } from 'apps/api/src/app/symbol/interfaces/lookup-item.interface'; +import { LookupItem } from '@ghostfolio/api/app/symbol/interfaces/lookup-item.interface'; import { Observable, Subject } from 'rxjs'; import { debounceTime, diff --git a/apps/client/src/app/pages/transactions/transactions-page.component.ts b/apps/client/src/app/pages/transactions/transactions-page.component.ts index 0d994187f..8df3ccd06 100644 --- a/apps/client/src/app/pages/transactions/transactions-page.component.ts +++ b/apps/client/src/app/pages/transactions/transactions-page.component.ts @@ -6,8 +6,8 @@ import { ImpersonationStorageService } from '@ghostfolio/client/services/imperso import { TokenStorageService } from '@ghostfolio/client/services/token-storage.service'; import { hasPermission, permissions } from '@ghostfolio/helper'; import { Order as OrderModel } from '@prisma/client'; -import { UpdateOrderDto } from 'apps/api/src/app/order/update-order.dto'; -import { User } from 'apps/api/src/app/user/interfaces/user.interface'; +import { UpdateOrderDto } from '@ghostfolio/api/app/order/update-order.dto'; +import { User } from '@ghostfolio/api/app/user/interfaces/user.interface'; import { DeviceDetectorService } from 'ngx-device-detector'; import { Subject, Subscription } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; diff --git a/apps/client/src/app/services/data.service.ts b/apps/client/src/app/services/data.service.ts index d9f859cd1..9245662c5 100644 --- a/apps/client/src/app/services/data.service.ts +++ b/apps/client/src/app/services/data.service.ts @@ -1,24 +1,24 @@ import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Order as OrderModel } from '@prisma/client'; -import { Access } from 'apps/api/src/app/access/interfaces/access.interface'; -import { AdminData } from 'apps/api/src/app/admin/interfaces/admin-data.interface'; -import { InfoItem } from 'apps/api/src/app/info/interfaces/info-item.interface'; -import { UpdateOrderDto } from 'apps/api/src/app/order/update-order.dto'; -import { PortfolioItem } from 'apps/api/src/app/portfolio/interfaces/portfolio-item.interface'; -import { PortfolioOverview } from 'apps/api/src/app/portfolio/interfaces/portfolio-overview.interface'; -import { PortfolioPerformance } from 'apps/api/src/app/portfolio/interfaces/portfolio-performance.interface'; +import { Access } from '@ghostfolio/api/app/access/interfaces/access.interface'; +import { AdminData } from '@ghostfolio/api/app/admin/interfaces/admin-data.interface'; +import { InfoItem } from '@ghostfolio/api/app/info/interfaces/info-item.interface'; +import { UpdateOrderDto } from '@ghostfolio/api/app/order/update-order.dto'; +import { PortfolioItem } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-item.interface'; +import { PortfolioOverview } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-overview.interface'; +import { PortfolioPerformance } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-performance.interface'; import { HistoricalDataItem, PortfolioPositionDetail -} from 'apps/api/src/app/portfolio/interfaces/portfolio-position-detail.interface'; -import { PortfolioPosition } from 'apps/api/src/app/portfolio/interfaces/portfolio-position.interface'; -import { PortfolioReport } from 'apps/api/src/app/portfolio/interfaces/portfolio-report.interface'; -import { LookupItem } from 'apps/api/src/app/symbol/interfaces/lookup-item.interface'; -import { SymbolItem } from 'apps/api/src/app/symbol/interfaces/symbol-item.interface'; -import { UserItem } from 'apps/api/src/app/user/interfaces/user-item.interface'; -import { User } from 'apps/api/src/app/user/interfaces/user.interface'; -import { UpdateUserSettingsDto } from 'apps/api/src/app/user/update-user-settings.dto'; +} from '@ghostfolio/api/app/portfolio/interfaces/portfolio-position-detail.interface'; +import { PortfolioPosition } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-position.interface'; +import { PortfolioReport } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-report.interface'; +import { LookupItem } from '@ghostfolio/api/app/symbol/interfaces/lookup-item.interface'; +import { SymbolItem } from '@ghostfolio/api/app/symbol/interfaces/symbol-item.interface'; +import { UserItem } from '@ghostfolio/api/app/user/interfaces/user-item.interface'; +import { User } from '@ghostfolio/api/app/user/interfaces/user.interface'; +import { UpdateUserSettingsDto } from '@ghostfolio/api/app/user/update-user-settings.dto'; @Injectable({ providedIn: 'root'