import { IInvite } from '@metad/contracts'; import { ICommandHandler } from '@nestjs/cqrs'; import { UpdateResult } from 'typeorm'; import { AuthService } from '../../../auth/auth.service'; import { Employee } from '../../../employee/employee.entity'; import { OrganizationService } from '../../../organization/organization.service'; import { InviteService } from '../../invite.service'; import { InviteAcceptEmployeeCommand } from '../invite.accept-employee.command'; /** * Use this command for registering employees. * This command first registers a user, then creates an employee entry for the organization. * If the above two steps are successful, it finally sets the invitation status to accepted */ export declare class InviteAcceptEmployeeHandler implements ICommandHandler { private readonly inviteService; private readonly organizationService; private readonly authService; constructor(inviteService: InviteService, organizationService: OrganizationService, authService: AuthService); execute(command: InviteAcceptEmployeeCommand): Promise; updateEmployeeMemberships: (invite: IInvite, employee: Employee) => void; }