-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RDM-3144 added CaseTypeLite object for cyclic dependency resolution
- Loading branch information
1 parent
85411f2
commit c218717
Showing
3 changed files
with
15 additions
and
3 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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { CaseEvent } from './case-event.model'; | ||
import { CaseState } from './case-state.model'; | ||
|
||
// Light clone of CaseType to be used in Jurisdiction class | ||
// to avoid cyclic dependency | ||
export class CaseTypeLite { | ||
id: string; | ||
name: string; | ||
events: CaseEvent[]; | ||
states: CaseState[]; | ||
description: string; | ||
} |
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,8 +1,8 @@ | ||
import { CaseType } from './case-type.model'; | ||
import { CaseTypeLite } from './case-type-lite.model'; | ||
|
||
export class Jurisdiction { | ||
id: string; | ||
name: string; | ||
description: string; | ||
caseTypes: CaseType[]; | ||
caseTypes: CaseTypeLite[]; | ||
} |