|
1 | 1 | // Copyright The Linux Foundation and each contributor to CommunityBridge. |
2 | 2 | // SPDX-License-Identifier: MIT |
| 3 | +// This is actually a CLA Group model (but we call it ProjectModel for historical reasons) |
3 | 4 | export class ProjectModel { |
4 | | - date_created: Date; |
5 | | - date_modified: Date; |
6 | | - foundation_sfid: string; |
7 | | - project_acl: string[]; |
8 | | - project_ccla_enabled: boolean; |
9 | | - project_ccla_requires_icla_signature: boolean; |
10 | | - project_corporate_documents: ProjectCorporateDocument[]; |
11 | | - project_icla_enabled: boolean; |
12 | | - project_id: string; |
13 | | - project_individual_documents: ProjectIndividualDocument[]; |
14 | | - project_member_documents: any[]; |
15 | | - project_name: string; |
16 | | - project_name_lower: string; |
17 | | - version: string; |
18 | | - logoUrl: string; |
19 | | - projects: Project[]; |
20 | | - signed_at_foundation_level: boolean; |
| 5 | + date_created: Date; |
| 6 | + date_modified: Date; |
| 7 | + foundation_sfid: string; |
| 8 | + project_acl: string[]; |
| 9 | + project_ccla_enabled: boolean; |
| 10 | + project_ccla_requires_icla_signature: boolean; |
| 11 | + project_corporate_documents: ProjectCorporateDocument[]; |
| 12 | + project_icla_enabled: boolean; |
| 13 | + project_id: string; |
| 14 | + project_individual_documents: ProjectIndividualDocument[]; |
| 15 | + project_member_documents: any[]; |
| 16 | + project_name: string; |
| 17 | + project_name_lower: string; |
| 18 | + version: string; |
| 19 | + logoUrl: string; |
| 20 | + projects: Project[]; |
| 21 | + signed_at_foundation_level: boolean; |
21 | 22 | } |
22 | 23 |
|
23 | 24 | export class ProjectCorporateDocument { |
24 | | - document_name: string; |
25 | | - document_file_id: string; |
26 | | - document_content_type: string; |
27 | | - document_content?: any; |
28 | | - document_author_name: string; |
29 | | - document_major_version: number; |
30 | | - document_minor_version: number; |
31 | | - document_creation_date: Date; |
32 | | - document_preamble: string; |
33 | | - document_legal_entity_name: string; |
34 | | - document_s3_url: string; |
35 | | - document_tabs: string[][]; |
| 25 | + document_name: string; |
| 26 | + document_file_id: string; |
| 27 | + document_content_type: string; |
| 28 | + document_content?: any; |
| 29 | + document_author_name: string; |
| 30 | + document_major_version: number; |
| 31 | + document_minor_version: number; |
| 32 | + document_creation_date: Date; |
| 33 | + document_preamble: string; |
| 34 | + document_legal_entity_name: string; |
| 35 | + document_s3_url: string; |
| 36 | + document_tabs: string[][]; |
36 | 37 | } |
37 | 38 |
|
38 | 39 | export class ProjectIndividualDocument { |
39 | | - document_name: string; |
40 | | - document_file_id: string; |
41 | | - document_content_type: string; |
42 | | - document_content?: any; |
43 | | - document_author_name: string; |
44 | | - document_major_version: number; |
45 | | - document_minor_version: number; |
46 | | - document_creation_date: Date; |
47 | | - document_preamble: string; |
48 | | - document_legal_entity_name: string; |
49 | | - document_s3_url: string; |
50 | | - document_tabs: string[][]; |
| 40 | + document_name: string; |
| 41 | + document_file_id: string; |
| 42 | + document_content_type: string; |
| 43 | + document_content?: any; |
| 44 | + document_author_name: string; |
| 45 | + document_major_version: number; |
| 46 | + document_minor_version: number; |
| 47 | + document_creation_date: Date; |
| 48 | + document_preamble: string; |
| 49 | + document_legal_entity_name: string; |
| 50 | + document_s3_url: string; |
| 51 | + document_tabs: string[][]; |
51 | 52 | } |
52 | 53 |
|
53 | | - |
| 54 | +// Project CLA Group mapping record/model |
54 | 55 | export class Project { |
55 | | - cla_group_id: string; |
56 | | - cla_group_name: string; |
57 | | - date_created: Date; |
58 | | - date_modified: Date; |
59 | | - foundation_name?: any; |
60 | | - foundation_sfid: string; |
61 | | - note?: any; |
62 | | - project_name: string; |
63 | | - project_sfid: string; |
64 | | - repositories_count: string; |
65 | | - version: string; |
| 56 | + cla_group_id: string; |
| 57 | + cla_group_name: string; |
| 58 | + date_created: Date; |
| 59 | + date_modified: Date; |
| 60 | + foundation_name?: any; |
| 61 | + foundation_sfid: string; |
| 62 | + note?: any; |
| 63 | + project_name: string; |
| 64 | + project_sfid: string; |
| 65 | + repositories_count: string; |
| 66 | + standalone_project: boolean; |
| 67 | + version: string; |
66 | 68 | } |
0 commit comments