UNPKG

component-dbs-core

Version:

DTO objects shared among device backend

28 lines (27 loc) 1.84 kB
import { PinInput, PhoneRegisterInput, PhoneVerifyInput } from '../../types.d'; import { DeviceVerification } from '../../devices/deviceVerification'; import { DeviceService } from '../../devices/deviceService'; import { IdentitySignUpInputDto, IdentityLoginInputDto, CheckAccessTokenInputDto, ChangePasswordInputDto, IdentityDto, PhoneRegistrationDto, PhoneVerificationDto } from '../dtos/identityDto'; import { Auth0Service } from '../../authzero/auth0Service'; import { AppSyncClient } from '../../common_services/appsync'; export declare class IdentityService { private readonly auth0Service; private readonly deviceService; private readonly deviceVerification; private readonly appSyncClient; constructor(auth0Service: Auth0Service, deviceService: DeviceService, deviceVerification: DeviceVerification, appSyncClient: AppSyncClient); identitySignUp(signUpInput: IdentitySignUpInputDto): Promise<IdentityDto>; identityLogin(loginInput: IdentityLoginInputDto): Promise<IdentityDto>; checkAccessToken(input: CheckAccessTokenInputDto): Promise<IdentityDto | undefined>; identityForgotPassword(email: string): Promise<boolean>; identityChangePassword(changePwdInput: ChangePasswordInputDto): Promise<boolean>; identityPhoneRegister(input: PhoneRegisterInput): Promise<PhoneRegistrationDto>; identityPhoneVerify(input: PhoneVerifyInput): Promise<PhoneVerificationDto>; identitySetPin(input: PinInput): Promise<boolean | undefined>; identityVerifyPin(input: PinInput): Promise<boolean | undefined>; identityForcedLogoff(deviceUuid: string, reason: string): Promise<{ deviceUuid: string; reason: string; }>; initiateForcedLogoff(deviceUuid: string, reason: string): Promise<import("apollo-link").FetchResult<unknown, Record<string, any>, Record<string, any>>>; }