generated from bcgov/quickstart-openshift
-
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.
fix: use BaseComplaint usage from nrs-ce-common-types (#720)
- Loading branch information
1 parent
d1b2f89
commit 8c3d91e
Showing
10 changed files
with
35 additions
and
58 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,36 +1,12 @@ | ||
import { DelegateDto } from "../people/delegate"; | ||
import { BaseComplaint } from "nrs-ce-common-types"; | ||
|
||
export interface ComplaintDto { | ||
id: string; | ||
details: string; | ||
name: string; | ||
address: string; | ||
email: string; | ||
phone1: string; | ||
phone2: string; | ||
phone3: string; | ||
// contacts: Array<ContactTypeDto> //-- for future use | ||
location: { type: string; coordinates: Array<number> }; | ||
locationSummary: string; | ||
locationDetail: string; | ||
status: string; | ||
reportedBy: string; | ||
ownedBy: string; | ||
reportedByOther: string; | ||
incidentDateTime: Date; | ||
reportedOn: Date; | ||
updatedOn: Date; | ||
createdBy: string; | ||
updatedBy: string; | ||
export interface ComplaintDto extends BaseComplaint { | ||
organization: { | ||
area: string; | ||
zone: string; | ||
region: string; | ||
officeLocation?: string; | ||
}; | ||
delegates: Array<DelegateDto>; | ||
webeocId: string; | ||
referenceNumber: string; | ||
complaintMethodReceivedCode: string; | ||
isPrivacyRequested: 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,7 +1,8 @@ | ||
import { UUID } from "crypto"; | ||
import { ComplaintDto } from "./complaint"; | ||
import { BaseComplaint } from "nrs-ce-common-types"; | ||
|
||
export interface GeneralIncidentComplaintDto extends ComplaintDto { | ||
export interface GeneralIncidentComplaintDto extends ComplaintDto, BaseComplaint { | ||
girId: UUID; | ||
girType: 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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