-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MDS-5606] Typescript conversions within Summary and Variance sections (
#2808) * some javascript to typescript conversions for summary and variance sections * adjustments based on pr comments * removing vc actionType from pr as Henry's pr contains this already * scratch the last commit, just adding it back anyways * adjustment to fix test error * removing comment * removing property in permit interface
- Loading branch information
Showing
23 changed files
with
999 additions
and
881 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export interface IComplianceOrder { | ||
overdue: boolean; | ||
due_date: string; | ||
order_no: string; | ||
violation: string; | ||
report_no: number | string; | ||
inspector: string; | ||
order_status: 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
12 changes: 12 additions & 0 deletions
12
services/common/src/interfaces/mineComplianceInfo.interface.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { IComplianceOrder } from "./complianceOrder.interface"; | ||
|
||
export interface IMineComplianceInfo { | ||
advisories: number; | ||
last_inspector: string; | ||
last_inspection: string; | ||
num_open_orders: number; | ||
num_overdue_orders: number; | ||
orders: IComplianceOrder[]; | ||
section_35_orders: number; | ||
warnings: number; | ||
} |
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
9 changes: 9 additions & 0 deletions
9
services/common/src/interfaces/party/partyRelationshipType.interface.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export interface IPartyRelationshipType { | ||
active_ind: boolean; | ||
description: string; | ||
display_order: number; | ||
grouping_level: number; | ||
mine_party_appt_type_code: string; | ||
organization: boolean; | ||
person: boolean; | ||
} |
5 changes: 5 additions & 0 deletions
5
services/common/src/interfaces/variance/addDocumentToVariancePayload.interface.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export interface IAddDocumentToVariancePayload { | ||
document_manager_guid: string; | ||
document_name: string; | ||
variance_document_category_code: string; | ||
} |
7 changes: 7 additions & 0 deletions
7
services/common/src/interfaces/variance/createVariancePayload.interface.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export interface ICreateVariancePayload { | ||
received_date: string; | ||
compliance_article_id: number; | ||
variance_application_status_code: string; | ||
note?: string; | ||
variance_document_category_code?: string; | ||
} |
14 changes: 14 additions & 0 deletions
14
services/common/src/interfaces/variance/fetchVariancesPayload.interface.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export interface IFetchVariancesPayload { | ||
page: string; | ||
per_page: string; | ||
variance_application_status_code: string; | ||
compliance_codes: string; | ||
major: string; | ||
region: string; | ||
sort_field: string; | ||
sort_dir: string; | ||
issue_date_before: string; | ||
issue_date_after: string; | ||
expiry_date_before: string; | ||
expiry_date_after: 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export * from "./variance.interface"; | ||
export * from "./createVariancePayload.interface"; | ||
export * from "./varianceDocument.interface"; | ||
export * from "./addDocumentToVariancePayload.interface"; | ||
export * from "./fetchVariancesPayload.interface"; |
23 changes: 23 additions & 0 deletions
23
services/common/src/interfaces/variance/variance.interface.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { IMineDocument } from "../mineDocument.interface"; | ||
import { IVarianceDocument } from "./varianceDocument.interface"; | ||
|
||
export interface IVariance { | ||
variance_guid: string; | ||
variance_no?: number; | ||
mine_guid?: string; | ||
parties_notified_ind?: boolean; | ||
created_by?: string; | ||
created_timestamp?: string; | ||
updated_by?: string; | ||
updated_timestamp?: string; | ||
variance_document_category_code?: string; | ||
compliance_article_id: number; | ||
variance_application_status_code: string; | ||
applicant_guid: string; | ||
inspector_party_guid: string; | ||
expiry_date: string; | ||
issue_date: string; | ||
note: string; | ||
received_date: string; | ||
documents: Partial<IMineDocument>[] | Partial<IVarianceDocument>[]; | ||
} |
6 changes: 6 additions & 0 deletions
6
services/common/src/interfaces/variance/varianceDocument.interface.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { IMineDocument } from "../mineDocument.interface"; | ||
|
||
export interface IVarianceDocument extends IMineDocument { | ||
created_at: string; | ||
variance_document_category_code: 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
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
Oops, something went wrong.