Skip to content

Commit

Permalink
feat(health-directorate): New application for Embætti Landlæknis (Wor…
Browse files Browse the repository at this point in the history
…k permit/license to pratice) (#15146)

* First commit after rebasing main

* Work permit application progress

* Error messages

* Messages and extract strings to project.json

* Skeleton of confirmation step

* Updating uni of iceland openapi

* starting to add EES validation and calling nationalRegistry from work permit service

* Commenting out code to get project to build

* Comments, error messages, typing to get project to run after rebasing

* Logic work for work permits, cleanup and more

* Work permit application progress

* removing test code that had old bearer token

* Work on permit application after fixes from Landlaeknir

* cleanup before pr

* Reverting name of function that was renamed by accident

* chore: nx format:write update dirty files

* Changing id of textField, was duplicate

* changing ids from hlc to hwp

* updating CODEOWNERS

* fixing typos and placeholders in error message

* first batch of responding to PR comments

* removing comment

* error handling

* removing unnecessary block

* Validation in personalSection

* removing unused imports and types

* Logging in client and returning null

* inverting boolean if check after testing logger functionality

* typing added to FormConclusion, syntax made more concise

* Adding configs to app.module

---------

Co-authored-by: andes-it <builders@andes.is>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 18, 2024
1 parent 9771306 commit 28a0689
Show file tree
Hide file tree
Showing 59 changed files with 3,130 additions and 28 deletions.
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ codemagic.yaml
/libs/application/templates/healthcare-license-certificate/ @island-is/origo
/libs/application/template-api-modules/src/lib/modules/templates/healthcare-license-certificate/ @island-is/origo


/libs/application/templates/healthcare-work-permit/ @island-is/origo
/libs/application/template-api-modules/src/lib/modules/templates/healthcare-work-permit/ @island-is/origo

/libs/application/templates/energy-funds/ @island-is/origo
/libs/application/template-api-modules/src/lib/modules/templates/energy-funds/ @island-is/origo
/libs/api/domains/energy-funds/ @island-is/origo
Expand Down
16 changes: 16 additions & 0 deletions apps/application-system/api/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ import { SignatureCollectionClientConfig } from '@island.is/clients/signature-co
import { InnaClientConfig } from '@island.is/clients/inna'
import { OfficialJournalOfIcelandClientConfig } from '@island.is/clients/official-journal-of-iceland'
import { OfficialJournalOfIcelandApplicationClientConfig } from '@island.is/clients/official-journal-of-iceland/application'
import { HealthDirectorateClientConfig } from '@island.is/clients/health-directorate'
import {
AgriculturalUniversityOfIcelandCareerClientConfig,
BifrostUniversityCareerClientConfig,
HolarUniversityCareerClientConfig,
IcelandUniversityOfTheArtsCareerClientConfig,
UniversityOfAkureyriCareerClientConfig,
UniversityOfIcelandCareerClientConfig,
} from '@island.is/clients/university-careers'
import { DataProtectionComplaintClientConfig } from '@island.is/clients/data-protection-complaint'
import { CriminalRecordClientConfig } from '@island.is/clients/criminal-record'
import { HealthInsuranceV2ClientConfig } from '@island.is/clients/icelandic-health-insurance/health-insurance'
Expand Down Expand Up @@ -83,6 +92,13 @@ import { VmstClientConfig } from '@island.is/clients/vmst'
InnaClientConfig,
OfficialJournalOfIcelandClientConfig,
OfficialJournalOfIcelandApplicationClientConfig,
HealthDirectorateClientConfig,
AgriculturalUniversityOfIcelandCareerClientConfig,
BifrostUniversityCareerClientConfig,
UniversityOfAkureyriCareerClientConfig,
UniversityOfIcelandCareerClientConfig,
HolarUniversityCareerClientConfig,
IcelandUniversityOfTheArtsCareerClientConfig,
DataProtectionComplaintClientConfig,
CriminalRecordClientConfig,
HealthInsuranceV2ClientConfig,
Expand Down
5 changes: 5 additions & 0 deletions libs/application/core/src/lib/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,11 @@ export const coreErrorMessages = defineMessages({
defaultMessage: 'Þú ert ekki með íslenskt ríkisfang',
description: 'You do not have a domicile in Iceland',
},
nationalRegistryCitizenshipNotWithinEES: {
id: 'application.system:core.fetch.data.nationalRegistryCitizenshipNotWithinEES',
defaultMessage: 'Þú ert ekki með ríkisfang innan EES',
description: 'You do not have citizenship with EES',
},
nationalRegistryAgeNotValid: {
id: 'application.system:core.fetch.data.nationalRegistryAgeNotValid',
defaultMessage: 'Þú hefur ekki náð tilskyldum aldri fyrir þessa umsókn',
Expand Down
Loading

0 comments on commit 28a0689

Please sign in to comment.