import { IInvite } from '@metad/contracts'; import { ICommandHandler } from '@nestjs/cqrs'; import { UpdateResult } from 'typeorm'; import { AuthService } from '../../../auth/auth.service'; import { InviteService } from '../../invite.service'; import { InviteAcceptUserCommand } from '../invite.accept-user.command'; import { OrganizationService } from '../../../organization/organization.service'; /** * Use this command for registering all non-employee users. * This command first registers a user, then creates a user_organization relation. * If the above two steps are successful, it finally sets the invitation status to accepted */ export declare class InviteAcceptUserHandler implements ICommandHandler { private readonly inviteService; private readonly authService; private readonly organizationService; constructor(inviteService: InviteService, authService: AuthService, organizationService: OrganizationService); execute(command: InviteAcceptUserCommand): Promise; }