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