-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4ecadc
commit 7716bdf
Showing
8 changed files
with
45 additions
and
46 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
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
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,24 @@ | ||
import {Flags} from '../enums/Flags'; | ||
|
||
/** | ||
* @id #PreAssessment | ||
* @description The result of the application based on information provided by the applicant, prior to assessment by a planning officer. Results are determined by flags corresponding to responses; each application can have up to one result per flagset | ||
*/ | ||
export type PreAssessment = ResultFlag[]; // @todo validate/restrict array to one result per flagset | ||
|
||
type FlagKeys = keyof typeof Flags; | ||
|
||
type GenericFlag<TKey extends FlagKeys> = { | ||
value: TKey; | ||
description: (typeof Flags)[TKey]; | ||
}; | ||
|
||
type FlagMap = { | ||
[K in FlagKeys]: GenericFlag<K>; | ||
}; | ||
|
||
/** | ||
* @id #ResultFlag | ||
* @description The result of a single flagset | ||
*/ | ||
export type ResultFlag = FlagMap[keyof FlagMap]; |
This file was deleted.
Oops, something went wrong.