-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathworkspaces.ts
More file actions
84 lines (74 loc) · 1.92 KB
/
Copy pathworkspaces.ts
File metadata and controls
84 lines (74 loc) · 1.92 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
export type WorkspaceId = number;
export type WorkspaceType = 'osw' | 'pathways';
export type WorkspaceAppAccess = 0 | 1 | 2;
export type WorkspaceRole = 'lead' | 'validator' | 'contributor';
// Map view centered on the workspace's data. Not returned by the API — it is
// computed client-side from the workspace bbox and attached once the dashboard
// map emits `center-loaded` (see components/dashboard/Map.vue), so it is optional.
export interface WorkspaceCenter {
zoom: number;
latitude: number;
longitude: number;
}
export interface Workspace {
id: WorkspaceId;
type: WorkspaceType;
title: string;
description?: string;
tdeiRecordId?: string;
tdeiProjectGroupId: string;
tdeiServiceId?: string;
tdeiMetadata?: string;
createdAt: Date;
createdBy: string;
createdByName: string;
externalAppAccess: WorkspaceAppAccess;
kartaViewToken?: string;
autoFlagReview?: boolean;
role?: WorkspaceRole;
center?: WorkspaceCenter;
}
export interface WorkspaceCreation {
type: WorkspaceType;
title: string;
description?: string;
tdeiRecordId?: string;
tdeiProjectGroupId: string;
tdeiServiceId?: string;
tdeiMetadata?: string;
createdBy?: string;
createdByName?: string;
}
export interface WorkspacePatch {
title?: string;
description?: string;
externalAppAccess?: WorkspaceAppAccess;
autoFlagReview?: boolean;
}
export type QuestSettingsType = 'NONE' | 'JSON' | 'URL';
export interface QuestSettingsPatch {
type: QuestSettingsType;
definition?: string;
url?: string;
}
export interface QuestSettings extends QuestSettingsPatch {
workspace_id: WorkspaceId;
modified_at: Date;
modified_by: string;
modified_by_name: string;
}
export interface WorkspaceTeam {
id: number;
name: string;
member_count: number;
}
export interface User {
id: number;
auth_uid: string;
email: string;
display_name: string;
}
export interface WorkspaceMember {
user: User;
role: WorkspaceRole;
}