blob: f4b09c0cea444ee21f8695319c35d0b9a0530f3a [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001// Copyright 2020 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5import * as issue from './constants-issueV0.js';
6import 'shared/typedef.js';
7
8/** @type {Permission} */
9export const PERMISSION_ISSUE_EDIT = 'ISSUE_EDIT';
10
11/** @type {PermissionSet} */
12export const PERMISSION_SET_ISSUE = {
13 resource: issue.NAME,
14 permissions: [PERMISSION_ISSUE_EDIT],
15};
16
17/** @type {Object<string, PermissionSet>} */
18export const BY_NAME = {
19 [issue.NAME]: PERMISSION_SET_ISSUE,
20};
21
22/** @type {Array<Permission>} */
23export const PERMISSION_HOTLIST_EDIT = ['HOTLIST_EDIT'];