Browse Source

feat(lib): move AuthDeviceDto to common lib

pull/5944/head
KenTandrian 1 month ago
parent
commit
ed792226a2
  1. 2
      apps/api/src/app/auth/interfaces/interfaces.ts
  2. 2
      apps/api/src/app/auth/web-auth.service.ts
  3. 2
      apps/client/src/app/services/web-authn.service.ts
  4. 0
      libs/common/src/lib/dtos/auth-device.dto.ts
  5. 2
      libs/common/src/lib/dtos/index.ts

2
apps/api/src/app/auth/interfaces/interfaces.ts

@ -1,4 +1,4 @@
import { AuthDeviceDto } from '@ghostfolio/api/app/auth-device/auth-device.dto';
import { AuthDeviceDto } from '@ghostfolio/common/dtos';
import { Provider } from '@prisma/client';

2
apps/api/src/app/auth/web-auth.service.ts

@ -1,7 +1,7 @@
import { AuthDeviceDto } from '@ghostfolio/api/app/auth-device/auth-device.dto';
import { AuthDeviceService } from '@ghostfolio/api/app/auth-device/auth-device.service';
import { UserService } from '@ghostfolio/api/app/user/user.service';
import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service';
import { AuthDeviceDto } from '@ghostfolio/common/dtos';
import type { RequestWithUser } from '@ghostfolio/common/types';
import {

2
apps/client/src/app/services/web-authn.service.ts

@ -1,10 +1,10 @@
/* eslint-disable @nx/enforce-module-boundaries */
import { AuthDeviceDto } from '@ghostfolio/api/app/auth-device/auth-device.dto';
import {
PublicKeyCredentialCreationOptionsJSON,
PublicKeyCredentialRequestOptionsJSON
} from '@ghostfolio/api/app/auth/interfaces/simplewebauthn';
import { SettingsStorageService } from '@ghostfolio/client/services/settings-storage.service';
import { AuthDeviceDto } from '@ghostfolio/common/dtos';
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';

0
apps/api/src/app/auth-device/auth-device.dto.ts → libs/common/src/lib/dtos/auth-device.dto.ts

2
libs/common/src/lib/dtos/index.ts

@ -1,3 +1,4 @@
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';
@ -17,6 +18,7 @@ import { UpdateTagDto } from './update-tag.dto';
import { UpdateUserSettingDto } from './update-user-setting.dto';
export {
AuthDeviceDto,
CreateAccessDto,
CreateAccountBalanceDto,
CreateAccountDto,

Loading…
Cancel
Save