Skip to content

Commit

Permalink
fix bb
Browse files Browse the repository at this point in the history
  • Loading branch information
viet nguyen committed May 8, 2023
1 parent 84d04c3 commit 86c2f42
Showing 1 changed file with 25 additions and 16 deletions.
41 changes: 25 additions & 16 deletions src/js/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,32 @@ export interface AggregateType {
byGrade: CountByGroupType[]
byDiscipline: CountByDisciplineType
byGradeBand: CountByGradeBandType
}

export type OrganizationType =
AuthorMetadata & {
orgId: string
orgType: OrgType
displayName: string
associatedAreaIds?: string[]
excludedAreaIds?: string[]
content?: OrganizationContentType
}

export interface OrganizationContentType {
website?: string
email?: string
donationLink?: string
instagramLink?: string
facebookLink?: string
hardwareReportLink?: string
description?: string
}

export interface OrganizationEditableFieldsType extends OrganizationContentType {
displayName?: string
associatedAreaIds?: string[]
excludedAreaIds?: string[]
}

export interface AuthorMetadata {
Expand All @@ -117,22 +142,6 @@ export interface AuthorMetadata {
createdByUser?: string
}

export type OrganizationType = AuthorMetadata & {
orgId: string
orgType: OrgType
associatedAreaIds: string[]
excludedAreaIds: string[]
displayName: string
content: {
facebookLink: string
instagramLink: string
donationLink: string
description: string
website: string
email: string
}
}

export interface AreaType {
id: string
uuid: string
Expand Down

0 comments on commit 86c2f42

Please sign in to comment.