Skip to content

Commit 0f02790

Browse files
CCM-12875: Merging main
2 parents 475dde3 + 39b41f7 commit 0f02790

File tree

127 files changed

+3410
-2009
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+3410
-2009
lines changed

.coverage

0 Bytes
Binary file not shown.

.github/workflows/cicd-1-pull-request.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ jobs:
164164
APP_CLIENT_ID: ${{ secrets.APP_CLIENT_ID }}
165165
publish-stage: # Recommended maximum execution time is 10 minutes
166166
name: "Publish stage"
167-
needs: [metadata, acceptance-stage] #PUT THIS BACK WHEN ACCEPTANCE STAGE IS ENABLED
168-
#needs: [metadata, build-stage] BYPASSING ACCEPTANCE STAGE
167+
needs: [metadata, build-stage]
169168
uses: ./.github/workflows/stage-5-publish.yaml
170169
if: (github.event_name == 'push' && github.ref == 'refs/heads/main')
171170
with:

.github/workflows/stage-2-test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
npm ci
5858
- name: "Generate dependencies"
5959
run: |
60-
npm run generate-dependencies --workspaces --if-present
60+
npm run generate-dependencies
6161
git diff --exit-code
6262
test-unit:
6363
name: "Unit tests"
@@ -71,7 +71,7 @@ jobs:
7171
npm ci
7272
- name: "Generate dependencies"
7373
run: |
74-
npm run generate-dependencies --workspaces --if-present
74+
npm run generate-dependencies
7575
- name: "Run unit test suite"
7676
run: |
7777
make test-unit
@@ -104,7 +104,7 @@ jobs:
104104
npm ci
105105
- name: "Generate dependencies"
106106
run: |
107-
npm run generate-dependencies --workspaces --if-present
107+
npm run generate-dependencies
108108
- name: "Run linting"
109109
run: |
110110
make test-lint
@@ -120,7 +120,7 @@ jobs:
120120
npm ci
121121
- name: "Generate dependencies"
122122
run: |
123-
npm run generate-dependencies --workspaces --if-present
123+
npm run generate-dependencies
124124
- name: "Run typecheck"
125125
run: |
126126
make test-typecheck

.github/workflows/stage-3-build.yaml

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -44,40 +44,3 @@ jobs:
4444
uses: ./.github/actions/build-docs
4545
with:
4646
version: "${{ inputs.version }}"
47-
48-
49-
50-
# artefact-1:
51-
# name: "Artefact 1"
52-
# runs-on: ubuntu-latest
53-
# timeout-minutes: 3
54-
# steps:
55-
# - name: "Checkout code"
56-
# uses: actions/checkout@v5
57-
# - name: "Build artefact 1"
58-
# run: |
59-
# echo "Building artefact 1 ..."
60-
# - name: "Check artefact 1"
61-
# run: |
62-
# echo "Checking artefact 1 ..."
63-
# - name: "Upload artefact 1"
64-
# run: |
65-
# echo "Uploading artefact 1 ..."
66-
# # Use either action/cache or action/upload-artifact
67-
# artefact-n:
68-
# name: "Artefact n"
69-
# runs-on: ubuntu-latest
70-
# timeout-minutes: 3
71-
# steps:
72-
# - name: "Checkout code"
73-
# uses: actions/checkout@v5
74-
# - name: "Build artefact n"
75-
# run: |
76-
# echo "Building artefact n ..."
77-
# - name: "Check artefact n"
78-
# run: |
79-
# echo "Checking artefact n ..."
80-
# - name: "Upload artefact n"
81-
# run: |
82-
# echo "Uploading artefact n ..."
83-
# # Use either action/cache or action/upload-artifact

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ quick-start: config clean build serve-docs # Quick start target to setup, build
1212
dependencies: # Install dependencies needed to build and test the project @Pipeline
1313
# TODO: Implement installation of your project dependencies
1414

15+
generate: # Generate any autogenerated output @Pipeline
16+
npm run generate-dependencies
17+
1518
build: # Build the project artefact @Pipeline
1619
$(MAKE) -C docs build
1720

@@ -30,12 +33,14 @@ clean:: # Clean-up project resources (main) @Operations
3033
$(MAKE) -C src/eventcatalogasyncapiimporter clean
3134
$(MAKE) -C src/eventcatalogasyncapiimporter clean-output
3235
rm -f .version
33-
# TODO: Implement project resources clean-up step
36+
npm run clean
3437

3538
config:: _install-dependencies version # Configure development environment (main) @Configuration
3639
$(MAKE) -C docs install
3740
$(MAKE) -C src/cloudevents install
3841
$(MAKE) -C src/eventcatalogasyncapiimporter install
42+
npm install
43+
$(MAKE) generate
3944

4045
serve-docs:
4146
$(MAKE) -C docs s
@@ -50,5 +55,5 @@ ${VERBOSE}.SILENT: \
5055
build \
5156
clean \
5257
config \
53-
dependencies \
58+
generate \
5459
deploy \

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Clone the repository
3333
```shell
3434
git clone https://github.com/NHSDigital/nhs-notify-digital-letters.git
3535
cd nhs-notify-digital-letters
36-
code protject.code-workspace
36+
code project.code-workspace
3737
```
3838

3939
Reopen with container
@@ -76,6 +76,10 @@ Installation and configuration of the toolchain dependencies
7676
make config
7777
```
7878
79+
Note that the `make config` command will also build the flattened event schemas and auto-generate a Typescript
80+
type and JS validator code for each event. See the [typescript-schema-generator](src/typescript-schema-generator/)
81+
package for more details.
82+
7983
## Usage
8084

8185
### Testing

docs/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ build: clean build-schemas copy-schema-docs copy-schema-yaml-docs copy-schemas b
4343

4444
build-ci: build-schemas-ci copy-schema-docs copy-schema-yaml-docs copy-schemas build-eventcatalog build-docs show-build-output
4545

46-
4746
build-eventcatalog:
4847
$(MAKE) build-eventcatalog-prereq
4948
make -C $(EVENT_CAT_ROOT_DIR) build BASE_URL=$(EVENT_CAT_URL)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
3+
title: MESH Acknowledger
4+
parent: MESH Services
5+
nav_order: 4
6+
has_children: true
7+
last_modified_date: 2024-10-28
8+
owner: Tom D'Roza
9+
author: Tom D'Roza
10+
diagrams: [c4code-mesh-acknowledger]
11+
events-raised: [mesh-inbox-message-acknowledged]
12+
events-consumed: [mesh-inbox-message-downloaded]
13+
c4type: code
14+
---
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
3+
title: Send letter to print
4+
parent: Print Supplier Services
5+
nav_order: 9
6+
has_children: false
7+
is_not_draft: false
8+
last_modified_date: 2025-12-04
9+
owner: Ross Buggins
10+
author: Tom D'Roza
11+
diagrams: []
12+
events-raised: [external-supplier-api-letter-prepared]
13+
events-consumed: [queue-item-dequeued]
14+
c4type: code
15+
---

docs/architecture/c4/notifhir/reporting/recorder/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ is_not_draft: false
88
last_modified_date: 2025-10-24
99
owner: Tom D'Roza
1010
author: Tom D'Roza
11-
diagrams: [c4code-tracker-listener, c4component-nhsapp-callback, sequence-nhsapp-callback]
11+
diagrams: [c4code-mesh-statusreporter-recorder, sequence-nhsapp-callback]
1212
events-raised: []
1313
events-consumed: [
1414
mesh-inbox-message-downloaded,

0 commit comments

Comments
 (0)