@datalayer/core
Version:
[](https://datalayer.io)
28 lines (27 loc) • 911 B
JavaScript
/*
* Copyright (c) 2023-2025 Datalayer, Inc.
* Distributed under the terms of the Modified BSD License.
*/
import { AlienIcon } from '@datalayer/icons-react';
const TEAM_MEMBER_PERMSSIONS = ['view_team'];
const TEAM_OWNER_PERMSSIONS = TEAM_MEMBER_PERMSSIONS.concat(...['assign_team_user']);
export class TeamRoles {
constructor() { }
static Member = {
id: 'team_member',
handle: 'team_member',
displayName: 'Team Member',
description: 'A Team Member is part of a team.',
permissions: TEAM_MEMBER_PERMSSIONS,
icon: AlienIcon,
};
static Owner = {
id: 'team_owner',
handle: 'team_owner',
displayName: 'Team Owner',
description: 'A Team Owner can add and remove team members.',
permissions: TEAM_OWNER_PERMSSIONS,
icon: AlienIcon,
};
static ALL_ROLES = [TeamRoles.Member, TeamRoles.Owner];
}