-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.interface.ts
More file actions
93 lines (85 loc) · 2.14 KB
/
project.interface.ts
File metadata and controls
93 lines (85 loc) · 2.14 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
85
86
87
88
89
90
91
92
93
// Copyright The Linux Foundation and each contributor to LFX.
// SPDX-License-Identifier: MIT
import { ProjectFunding } from '../enums/project-funding.enum';
export interface Project {
uid: string;
slug: string;
description: string;
name: string;
/** Response-only — write access for the current user. */
writer?: boolean;
public: boolean;
parent_uid: string;
stage: string;
category: string;
/** Upstream Goa enum — optional to tolerate records indexed before the attribute was rolled out. */
funding?: ProjectFunding;
funding_model: string[];
charter_url: string;
legal_entity_type: string;
legal_entity_name: string;
legal_parent_uid: string;
autojoin_enabled: boolean;
formation_date: string;
logo_url: string;
repository_url: string;
website_url: string;
created_at: string;
updated_at: string;
mailing_list_count: number;
}
export type ProjectQueryResponse = Project[];
export interface UserInfo {
name: string;
email: string;
username: string;
avatar?: string;
}
export interface ProjectSettings {
uid: string;
announcement_date: string;
writers: UserInfo[];
auditors: UserInfo[];
executive_director?: UserInfo | null;
program_manager?: UserInfo | null;
opportunity_owner?: UserInfo | null;
created_at: string;
updated_at: string;
}
export interface ProjectSlugToIdResponse {
uid: string;
slug: string;
exists: boolean;
}
export interface ProjectContext {
uid: string;
name: string;
slug: string;
/** Present for sub-projects, absent for top-level foundations. */
parent_uid?: string;
logoUrl?: string;
}
export interface PendingSurveyRow {
SURVEY_ID: string;
SURVEY_TITLE: string;
SURVEY_STATUS: string;
SURVEY_COHORT_DATE: string;
SURVEY_CUTOFF_DATE: string;
COMMITTEE_ID: string;
COMMITTEE_NAME: string;
COMMITTEE_CATEGORY: string;
PROJECT_ID: string;
PROJECT_SLUG: string;
PROJECT_NAME: string;
RESPONSE_ID: string;
RESPONSE_DATE: string;
FIRST_NAME: string;
LAST_NAME: string;
EMAIL: string;
ACCOUNT_ID: string;
ACCOUNT_NAME: string;
ORGANIZATION_ID: string;
ORGANIZATION_NAME: string;
RESPONSE_TYPE: string;
SURVEY_LINK: string;
}