generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add full validation rules and vehicle types for TROS/TROW (#1449)
- Loading branch information
1 parent
40bf970
commit 61b0559
Showing
15 changed files
with
867 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* This enum represents a subset of commonly-used paths and | ||
* other information in permit applications which may be | ||
* referenced from within source code. | ||
*/ | ||
export enum PermitAppInfo { | ||
PermitStartDate = 'permitData.startDate', | ||
PermitDateFormat = 'YYYY-MM-DD', | ||
} |
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,69 @@ | ||
import PermitApplication from '../../src/type/permit-application.type'; | ||
|
||
export const validTrow120Day: PermitApplication = { | ||
permitType: 'TROW', | ||
permitData: { | ||
"companyName": "Chief, Master", | ||
"doingBusinessAs": "DBA test 1233", | ||
"clientNumber": "B3-000102-187", | ||
"permitDuration": 120, | ||
"commodities": [ | ||
{ | ||
"description": "General Permit Conditions", | ||
"condition": "CVSE-1000", | ||
"conditionLink": "https://www.th.gov.bc.ca/forms/getForm.aspx?formId=1251", | ||
"checked": true, | ||
"disabled": true | ||
}, | ||
{ | ||
"description": "Permit Scope and Limitation", | ||
"condition": "CVSE-1070", | ||
"conditionLink": "https://www.th.gov.bc.ca/forms/getForm.aspx?formId=1261", | ||
"checked": true, | ||
"disabled": true | ||
}, | ||
{ | ||
"description": "Highways and Restrictive Load Limits", | ||
"condition": "CVSE-1011", | ||
"conditionLink": "https://www.th.gov.bc.ca/forms/getForm.aspx?formId=1258", | ||
"checked": true, | ||
"disabled": true | ||
} | ||
], | ||
"contactDetails": { | ||
"firstName": "Arbiter", | ||
"lastName": "Flood", | ||
"phone1": "(250) 555-1234", | ||
"phone1Extension": null, | ||
"phone2": null, | ||
"phone2Extension": null, | ||
"email": "[email protected]", | ||
"additionalEmail": "[email protected]", | ||
"fax": null | ||
}, | ||
"mailingAddress": { | ||
"addressLine1": "1000 Main Street", | ||
"addressLine2": null, | ||
"city": "Victoria", | ||
"provinceCode": "BC", | ||
"countryCode": "CA", | ||
"postalCode": "V8V 8V8" | ||
}, | ||
"vehicleDetails": { | ||
"vehicleId": "108", | ||
"unitNumber": "-", | ||
"vin": "898989", | ||
"plate": "V6R4E3", | ||
"make": "FORD", | ||
"year": 2007, | ||
"countryCode": "US", | ||
"provinceCode": "ME", | ||
"vehicleType": "powerUnit", | ||
"vehicleSubType": "GRADERS", | ||
"saveVehicle": false | ||
}, | ||
"feeSummary": "120", | ||
"startDate": "2024-05-15", | ||
"expiryDate": "2024-09-11" | ||
} | ||
}; |
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.