forked from oxidecomputer/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.ts
39 lines (34 loc) · 1.12 KB
/
project.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
*
* Copyright Oxide Computer Company
*/
import type { Project, ProjectRolePolicy } from '@oxide/api'
import type { Json } from './json-type'
import { user1 } from './user'
export const project: Json<Project> = {
id: '5fbab865-3d09-4c16-a22f-ca9c312b0286',
name: 'mock-project',
description: 'a fake project',
time_created: new Date(2021, 0, 1).toISOString(),
time_modified: new Date(2021, 0, 2).toISOString(),
}
export const project2: Json<Project> = {
id: 'e7bd835e-831e-4257-b600-f1db32844c8c',
name: 'other-project',
description: 'another fake project',
time_created: new Date(2021, 0, 15).toISOString(),
time_modified: new Date(2021, 0, 16).toISOString(),
}
export const projects: Json<Project[]> = [project, project2]
export const projectRolePolicy: Json<ProjectRolePolicy> = {
role_assignments: [
{
identity_id: user1.id,
identity_type: 'silo_user',
role_name: 'admin',
},
],
}