1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 const USER_UUID_REGEX = /.*tpzed.*/;
6 const GROUP_UUID_REGEX = /.*-j7d0g-.*/;
8 export enum ObjectTypes {
14 export const getUuidObjectType = (uuid: string) => {
16 case USER_UUID_REGEX.test(uuid):
17 return ObjectTypes.USER;
18 case GROUP_UUID_REGEX.test(uuid):
19 return ObjectTypes.GROUP;
21 return ObjectTypes.UNKNOWN;