forked from Yara724/api
Enforce claim beneficiary access and retire unused legacy APIs
This commit is contained in:
@@ -1,30 +1,20 @@
|
||||
import {
|
||||
BadRequestException,
|
||||
ConflictException,
|
||||
Injectable,
|
||||
NotFoundException,
|
||||
} from "@nestjs/common";
|
||||
import { ConflictException, Injectable } from "@nestjs/common";
|
||||
import { Types } from "mongoose";
|
||||
import { HashService } from "src/utils/hash/hash.service";
|
||||
import { ActorAuthService } from "src/auth/auth-services/actor.auth.service";
|
||||
import { InsurerRegisterDto } from "src/auth/dto/actor/register.actor.dto";
|
||||
import { ClientService } from "src/client/client.service";
|
||||
import { ClientDto } from "src/client/dto/create-client.dto";
|
||||
import { ActorAuthService } from "src/auth/auth-services/actor.auth.service";
|
||||
import { RoleEnum } from "src/Types&Enums/role.enum";
|
||||
import { CallCenterAgentDbService } from "src/users/entities/db-service/call-center-agent.db.service";
|
||||
|
||||
import { HashService } from "src/utils/hash/hash.service";
|
||||
import {
|
||||
InsurerRegisterDto,
|
||||
GenuineRegisterDto,
|
||||
LegalRegisterDto,
|
||||
} from "src/auth/dto/actor/register.actor.dto";
|
||||
import { SuperAdminDbService } from "./entities/db-service/super-admin.db.service";
|
||||
import {
|
||||
CreateSuperAdminDto,
|
||||
CreateCallCenterAgentDto,
|
||||
CreateFieldExpertAdminDto,
|
||||
CreateRegistrarAdminDto,
|
||||
CreateCallCenterAgentDto,
|
||||
CreateSuperAdminDto,
|
||||
} from "./dto/super-admin.dto";
|
||||
import { RoleEnum } from "src/Types&Enums/role.enum";
|
||||
import { FieldExpertDbService } from "src/users/entities/db-service/field-expert.db.service";
|
||||
import { RegistrarDbService } from "src/users/entities/db-service/registrar.db.service";
|
||||
import { CallCenterAgentDbService } from "src/users/entities/db-service/call-center-agent.db.service";
|
||||
import { SuperAdminDbService } from "./entities/db-service/super-admin.db.service";
|
||||
|
||||
@Injectable()
|
||||
export class SuperAdminService {
|
||||
@@ -33,8 +23,7 @@ export class SuperAdminService {
|
||||
private readonly hashService: HashService,
|
||||
private readonly clientService: ClientService,
|
||||
private readonly actorAuthService: ActorAuthService,
|
||||
private readonly fieldExpertDbService: FieldExpertDbService,
|
||||
private readonly registrarDbService: RegistrarDbService,
|
||||
|
||||
private readonly callCenterAgentDbService: CallCenterAgentDbService,
|
||||
) {}
|
||||
|
||||
@@ -87,14 +76,6 @@ export class SuperAdminService {
|
||||
return this.actorAuthService.insurerRegister(body);
|
||||
}
|
||||
|
||||
async registerGenuine(body: GenuineRegisterDto) {
|
||||
return this.actorAuthService.genuineRegister(body);
|
||||
}
|
||||
|
||||
async registerLegal(body: LegalRegisterDto) {
|
||||
return this.actorAuthService.legalRegister(body);
|
||||
}
|
||||
|
||||
async createFieldExpert(body: CreateFieldExpertAdminDto) {
|
||||
return this.actorAuthService.createFieldExpertMock(body);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user