generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
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
56fad67
commit ef960dc
Showing
13 changed files
with
53 additions
and
128 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
9 changes: 0 additions & 9 deletions
9
projects/manage-supervision-and-oasys/deploy/database/access.yml
This file was deleted.
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
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
25 changes: 0 additions & 25 deletions
25
...nage-supervision-and-oasys/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/DataLoader.kt
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...ion-and-oasys/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/UserGenerator.kt
This file was deleted.
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
9 changes: 0 additions & 9 deletions
9
...-oasys/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/example/ExampleClient.kt
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
...n-and-oasys/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/oasys/OrdsClient.kt
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 @@ | ||
package uk.gov.justice.digital.hmpps.integrations.oasys | ||
|
||
import org.springframework.web.bind.annotation.PathVariable | ||
import org.springframework.web.service.annotation.GetExchange | ||
|
||
interface OrdsClient { | ||
@GetExchange("/ass/allasslist/pris/{nomsId}/ALLOW") | ||
fun getTimeline(@PathVariable nomsId: String): Timeline | ||
} |
20 changes: 20 additions & 0 deletions
20
...ion-and-oasys/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/oasys/Timeline.kt
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,20 @@ | ||
package uk.gov.justice.digital.hmpps.integrations.oasys | ||
|
||
import com.fasterxml.jackson.annotation.JsonAlias | ||
import java.time.LocalDateTime | ||
|
||
data class Timeline( | ||
@JsonAlias("probNumber") val crn: String?, | ||
@JsonAlias("prisNumber") val nomsId: String?, | ||
val timeline: List<AssessmentSummary> | ||
) | ||
|
||
data class AssessmentSummary( | ||
@JsonAlias("assessmentPk") | ||
val id: Long, | ||
@JsonAlias("completedDate") | ||
val completedAt: LocalDateTime?, | ||
@JsonAlias("assessmentType") | ||
val type: String, | ||
val 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