diff --git a/projects/approved-premises-and-delius/README.md b/projects/approved-premises-and-delius/README.md index 6b63989294..817d994ee3 100644 --- a/projects/approved-premises-and-delius/README.md +++ b/projects/approved-premises-and-delius/README.md @@ -13,9 +13,9 @@ to make an Approved Premises application and ensuring the Probation Practitioner has an up-to-date view of activity in the Approved Premises service when interacting with the probation case via Delius. -## Context Maps +## Context Map -![Context Maps](./tech-docs/source/img/approved-premises-and-delius-context-maps.png) +![Context Map](./tech-docs/source/img/approved-premises-and-delius-context-map.svg) ## Interfaces diff --git a/projects/approved-premises-and-delius/tech-docs/diag/approved-premises-and-delius-context-map.d2 b/projects/approved-premises-and-delius/tech-docs/diag/approved-premises-and-delius-context-map.d2 new file mode 100644 index 0000000000..7a63e5cbeb --- /dev/null +++ b/projects/approved-premises-and-delius/tech-docs/diag/approved-premises-and-delius-context-map.d2 @@ -0,0 +1,40 @@ + +style { + fill: "#ffffff" +} + +context-approved-premises: Approved Premises Context { + link: https://github.com/ministryofjustice/hmpps-approved-premises-api + + entities: Entities { + grid-columns: 3 + referral: Approved Premises\n Referral + application: Approved Premises\n Application + booking: Approved Premises\n Booking + } +} + +context-delius: Delius Context { + style.stroke-width: 8 + + entities: Entities { + grid-columns: 3 + pop: Person on Probation + identifiers: Person Identifiers + staff: Staff + team: Team + offender-manager: Offender Manager + lao: Limited Access\ Offender + contact: Contact + referral: Approved Premises\n Referral + } + interface: Approved Premises and Delius { + type: Anti-Corruption Layer + } +} + +context-approved-premises--context-delius.interface: Upstream\n\n\nDownstream + +*.style.border-radius: 10 +*.*.style.border-radius: 10 +*.*.style.stroke-width: 2 diff --git a/projects/approved-premises-and-delius/tech-docs/source/async-api-reference.html.md.erb b/projects/approved-premises-and-delius/tech-docs/source/async-api-reference.html.md.erb index 5f4bdc7589..7b47576d7a 100644 --- a/projects/approved-premises-and-delius/tech-docs/source/async-api-reference.html.md.erb +++ b/projects/approved-premises-and-delius/tech-docs/source/async-api-reference.html.md.erb @@ -6,4 +6,4 @@ weight: 30 # ASyncAPI Reference -* [ASyncAPI Spec](https://studio.asyncapi.com/?url=https://raw.githubusercontent.com/ministryofjustice/hmpps-probation-integration-services/main/projects/approved-premises-and-delius/tech-docs/spec/async-api.yaml&readOnly) + diff --git a/projects/approved-premises-and-delius/tech-docs/source/img/approved-premises-and-delius-context-map.svg b/projects/approved-premises-and-delius/tech-docs/source/img/approved-premises-and-delius-context-map.svg new file mode 100644 index 0000000000..bd36f31343 --- /dev/null +++ b/projects/approved-premises-and-delius/tech-docs/source/img/approved-premises-and-delius-context-map.svg @@ -0,0 +1,141 @@ +Approved Premises ContextDelius ContextEntitiesEntitiesApproved Premises and DeliusApproved Premises ReferralApproved Premises ApplicationApproved Premises BookingPerson on ProbationPerson IdentifiersStaffTeamOffender ManagerLimited Access OffenderContactApproved Premises ReferralAnti-Corruption LayerUpstream Downstream + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/projects/approved-premises-and-delius/tech-docs/source/img/approved-premises-and-delius-context-maps.png b/projects/approved-premises-and-delius/tech-docs/source/img/approved-premises-and-delius-context-maps.png deleted file mode 100644 index 5314755ca0..0000000000 Binary files a/projects/approved-premises-and-delius/tech-docs/source/img/approved-premises-and-delius-context-maps.png and /dev/null differ diff --git a/projects/approved-premises-and-delius/tech-docs/spec/async-api.yaml b/projects/approved-premises-and-delius/tech-docs/spec/async-api.yaml index fa6d525b25..fa2c136631 100644 --- a/projects/approved-premises-and-delius/tech-docs/spec/async-api.yaml +++ b/projects/approved-premises-and-delius/tech-docs/spec/async-api.yaml @@ -20,9 +20,29 @@ channels: subscribe: operationId: approved-premises.application.submitted message: - $ref: https://raw.githubusercontent.com/ministryofjustice/hmpps-domain-events/main/spec/schemas/approved_premises/application_submitted.yml + $ref: https://raw.githubusercontent.com/ministryofjustice/hmpps-domain-events/main/spec/schemas/approved-premises/application-submitted.yml hmpps-domain-events/approved-premises-and-delius/application-assessed: subscribe: operationId: approved-premises.application.assessed message: - $ref: https://raw.githubusercontent.com/ministryofjustice/hmpps-domain-events/main/spec/schemas/approved_premises/application_assessed.yml + $ref: https://raw.githubusercontent.com/ministryofjustice/hmpps-domain-events/main/spec/schemas/approved-premises/application-assessed.yml + hmpps-domain-events/approved-premises-and-delius/application-withdrawn: + subscribe: + operationId: approved-premises.application.withdrawn + message: + $ref: https://raw.githubusercontent.com/ministryofjustice/hmpps-domain-events/main/spec/schemas/approved-premises/application-withdrawn.yml + hmpps-domain-events/approved-premises-and-delius/booking-made: + subscribe: + operationId: approved-premises.booking.made + message: + $ref: https://raw.githubusercontent.com/ministryofjustice/hmpps-domain-events/main/spec/schemas/approved-premises/booking-made.yml + hmpps-domain-events/approved-premises-and-delius/booking-not-made: + subscribe: + operationId: approved-premises.booking.not-made + message: + $ref: https://raw.githubusercontent.com/ministryofjustice/hmpps-domain-events/main/spec/schemas/approved-premises/booking-not-made.yml + hmpps-domain-events/approved-premises-and-delius/booking-cancelled: + subscribe: + operationId: approved-premises.booking.cancelled + message: + $ref: https://raw.githubusercontent.com/ministryofjustice/hmpps-domain-events/main/spec/schemas/approved-premises/booking-cancelled.yml