2017-03-03 06:07:11 +01:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Bit.Core.Models.Business;
|
2017-03-09 03:45:08 +01:00
|
|
|
|
using Bit.Core.Models.Table;
|
2017-03-03 06:07:11 +01:00
|
|
|
|
using System;
|
2017-03-10 05:58:43 +01:00
|
|
|
|
using System.Collections.Generic;
|
2017-03-03 06:07:11 +01:00
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Services
|
|
|
|
|
{
|
|
|
|
|
public interface IOrganizationService
|
|
|
|
|
{
|
|
|
|
|
Task<Tuple<Organization, OrganizationUser>> SignUpAsync(OrganizationSignup organizationSignup);
|
2017-03-23 05:17:34 +01:00
|
|
|
|
Task<OrganizationUser> InviteUserAsync(Guid organizationId, Guid invitingUserId, string email,
|
|
|
|
|
Enums.OrganizationUserType type, IEnumerable<SubvaultUser> subvaults);
|
|
|
|
|
Task ResendInviteAsync(Guid organizationId, Guid invitingUserId, Guid organizationUserId);
|
2017-03-05 03:28:41 +01:00
|
|
|
|
Task<OrganizationUser> AcceptUserAsync(Guid organizationUserId, User user, string token);
|
2017-03-23 05:17:34 +01:00
|
|
|
|
Task<OrganizationUser> ConfirmUserAsync(Guid organizationId, Guid organizationUserId, string key, Guid confirmingUserId);
|
|
|
|
|
Task SaveUserAsync(OrganizationUser user, Guid savingUserId, IEnumerable<SubvaultUser> subvaults);
|
|
|
|
|
Task DeleteUserAsync(Guid organizationId, Guid organizationUserId, Guid deletingUserId);
|
2017-03-03 06:07:11 +01:00
|
|
|
|
}
|
|
|
|
|
}
|