--[[----------------------------------------------------------------------------

WFCatCollaborationConstants.lua

--------------------------------------------------------------------------------

ADOBE CONFIDENTIAL
------------------
Copyright 2019 Adobe
All Rights Reserved.

NOTICE: All information contained herein is, and remains
the property of Adobe and its suppliers, if any. The intellectual
and technical concepts contained herein are proprietary to Adobe
and its suppliers and are protected by all applicable intellectual
property laws, including trade secret and copyright laws.
Dissemination of this information or reproduction of this material
is strictly forbidden unless prior written permission is obtained
from Adobe.

----------------------------------------------------------------------------]]--

local KSTableUtils = require 'KSTableUtils'

--------------------------------------------------------------------------------

local kCollaboratorTypes = KSTableUtils.mapArrayToSet {
	'spaceUser',
	'request',
	'singleUse',
}

local kSpaceUserStatuses = KSTableUtils.mapArrayToSet {
	'accepted',
	'abandoned',
	'removed',
}

local kRequestInviteStatuses = KSTableUtils.mapArrayToSet {
	'open',
	'approved',
	'rejected',
}

local kSingleUseInviteStatuses = KSTableUtils.mapArrayToSet {
	'open',
	'accepted',
	'declined',
}

local kRoles = KSTableUtils.mapArrayToSet {
	'viewer',
	'contributor',
	'editor',
}

--------------------------------------------------------------------------------

return {
	kCollaboratorTypes = kCollaboratorTypes,
	kSpaceUserStatuses = kSpaceUserStatuses,
	kRequestInviteStatuses = kRequestInviteStatuses,
	kSingleUseInviteStatuses = kSingleUseInviteStatuses,
	kRoles = kRoles,
}
