@flusys/nestjs-auth 5.1.1 → 5.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +1,24 @@
1
- import { HybridCache, RequestScopedApiService } from '@flusys/nestjs-shared/classes';
1
+ import { HybridCache, ApiService } from '@flusys/nestjs-shared/classes';
2
2
  import { FilterAndPaginationDto } from '@flusys/nestjs-shared/dtos';
3
3
  import { ILoggedUserInfo } from '@flusys/nestjs-shared/interfaces';
4
4
  import { UtilsService } from '@flusys/nestjs-shared/modules';
5
- import { EntityTarget, SelectQueryBuilder } from 'typeorm';
5
+ import { SelectQueryBuilder } from 'typeorm';
6
6
  import { CreateUserDto, UpdateUserDto } from '../dtos/user.dto';
7
7
  import { AppUser } from '../entities/app-user.entity';
8
8
  import { IEnrichedUser, IProfileExtras, IProfileSection, IProfileSectionData, IUserEnricher } from '../interfaces/user-enricher.interface';
9
9
  import { IUser } from '../interfaces/user.interface';
10
10
  import { AuthConfigService } from './auth-config.service';
11
11
  import { AuthDataSourceProvider } from './auth-datasource.provider';
12
- export declare class UserService extends RequestScopedApiService<CreateUserDto, UpdateUserDto, IUser, AppUser> {
12
+ export declare class UserService extends ApiService<CreateUserDto, UpdateUserDto, IUser, AppUser> {
13
13
  protected cacheManager: HybridCache;
14
14
  protected utilsService: UtilsService;
15
- private readonly dataSourceProvider;
16
15
  private readonly authConfig;
17
16
  private readonly userEnricher?;
18
17
  private permissionRepository?;
19
18
  private dataSource?;
20
19
  private readonly logAdapter;
21
- constructor(cacheManager: HybridCache, utilsService: UtilsService, dataSourceProvider: AuthDataSourceProvider, authConfig: AuthConfigService, userEnricher?: IUserEnricher);
22
- protected resolveEntity(): EntityTarget<AppUser>;
23
- protected getDataSourceProvider(): AuthDataSourceProvider;
24
- protected ensureRepositoryInitialized(): Promise<void>;
20
+ constructor(cacheManager: HybridCache, utilsService: UtilsService, dataSourceProvider: AuthDataSourceProvider, authConfig: AuthConfigService, userEnricher?: IUserEnricher | undefined);
21
+ protected ensureDataSourceRepository(): Promise<void>;
25
22
  private getUserForProfile;
26
23
  verifyEmail(id: string): Promise<void>;
27
24
  verifyPhone(id: string): Promise<void>;