-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrganization.js
More file actions
53 lines (50 loc) · 1020 Bytes
/
Copy pathOrganization.js
File metadata and controls
53 lines (50 loc) · 1020 Bytes
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
/**
* @typedef {{
* role: string,
* id?: string,
* student?: import('./Student').StudentProps
* publisher?: boolean
* }} OrganizationMember
*/
/**
* @typedef {{
* id?: number | string,
* shortName: string,
* fullName: string,
* description: string,
* email: string,
* logo?: string,
* cover?: string,
* type?: 'college-wide' | 'institute-wide',
* members?: OrganizationMember[]
* }} Organization
*/
class Organization {
/**
* @param {Organization} props
*/
constructor({
id = Math.floor(Math.random() * 1000000),
shortName,
fullName,
description,
email,
logo = '/Placeholder Image.svg',
cover = '/Placeholder Image.svg',
status = 'active',
type = 'college-wide',
members = []
}) {
this.id = id;
this.shortName = shortName;
this.fullName = fullName;
this.description = description;
this.email = email;
this.logo = logo;
this.cover = cover;
this.status = status;
this.type = type;
this.members = members;
};
};
export default Organization;