Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 1 | // Copyright 2019 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 | |
| 5 | import 'shared/typedef.js'; |
| 6 | |
| 7 | export const NAME = 'projects/project-name/issues/1234'; |
| 8 | |
| 9 | export const ISSUE_REF_STRING = 'project-name:1234'; |
| 10 | |
| 11 | /** @type {IssueRef} */ |
| 12 | export const ISSUE_REF = Object.freeze({ |
| 13 | projectName: 'project-name', |
| 14 | localId: 1234, |
| 15 | }); |
| 16 | |
| 17 | /** @type {Issue} */ |
| 18 | export const ISSUE = Object.freeze({ |
| 19 | projectName: 'project-name', |
| 20 | localId: 1234, |
| 21 | statusRef: {status: 'Available', meansOpen: true}, |
| 22 | }); |
| 23 | |
| 24 | export const NAME_OTHER_PROJECT = 'projects/other-project-name/issues/1234'; |
| 25 | |
| 26 | export const ISSUE_OTHER_PROJECT_REF_STRING = 'other-project-name:1234'; |
| 27 | |
| 28 | /** @type {Issue} */ |
| 29 | export const ISSUE_OTHER_PROJECT = Object.freeze({ |
| 30 | projectName: 'other-project-name', |
| 31 | localId: 1234, |
| 32 | statusRef: {status: 'Available', meansOpen: true}, |
| 33 | }); |
| 34 | |
| 35 | export const NAME_CLOSED = 'projects/project-name/issues/5678'; |
| 36 | |
| 37 | /** @type {Issue} */ |
| 38 | export const ISSUE_CLOSED = Object.freeze({ |
| 39 | projectName: 'project-name', |
| 40 | localId: 5678, |
| 41 | statusRef: {status: 'Fixed', meansOpen: false}, |
| 42 | }); |