generated from EyeSeeTea/dhis2-app-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: file name change, getGrade as readonly, use Either for erro…
…r, add role to team member
- Loading branch information
Showing
5 changed files
with
32 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 1 addition & 10 deletions
11
src/domain/entities/incident-management-team/IncidentManagementTeam.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,8 @@ | ||
import { NamedRef } from "../Ref"; | ||
import { Struct } from "../generic/Struct"; | ||
import { TeamMember } from "./TeamMember"; | ||
|
||
type TeamRole = NamedRef & { | ||
level: number; | ||
}; | ||
|
||
interface RoleTeamMemberMap { | ||
role: TeamRole; | ||
teamMember: TeamMember; | ||
} | ||
interface IncidentManagementTeamAttrs { | ||
teamHierarchy: RoleTeamMemberMap[]; | ||
teamHierarchy: TeamMember[]; | ||
} | ||
|
||
export class IncidentManagementTeam extends Struct<IncidentManagementTeamAttrs>() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters