Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/assets/diagrams/types.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Data Store Schemas
# Data Store Schemas

This document contains the mermaid diagrams for the data store schemas used in the application.

Expand All @@ -10,7 +10,7 @@ The schemas are generated from Zod definitions and provide a visual representati
erDiagram
Letter {
string id
string status "enum: PENDING, ACCEPTED, REJECTED, PRINTED, ENCLOSED, CANCELLED, DISPATCHED, FAILED, RETURNED, DESTROYED, FORWARDED, DELIVERED"
string status "enum: PENDING, ACCEPTED, REJECTED, PRINTED, ENCLOSED, CANCELLED, DISPATCHED, FAILED, RETURNED, FORWARDED, DELIVERED"
string specificationId
string groupId
number reasonCode
Expand Down
2 changes: 1 addition & 1 deletion docs/collections/_consumers/integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ The mandatory statuses are: **ACCEPTED**, **REJECTED**, **FORWARDED**, **DISPATC
- **CANCELLED:** The letter was cancelled following a request from the NHS Notify team

**Optional statuses** - additional, non-mandatory updates that can provide greater operational insight.
The optional statuses are: **PRINTED**, **ENCLOSED**, **DELIVERED**, and **DESTROYED**.
The optional statuses are: **PRINTED**, **ENCLOSED**, and **DELIVERED**.
These can be used if your internal workflow supports more granular reporting.

- **PRINTED:** The letter has been printed.
Expand Down
2 changes: 1 addition & 1 deletion internal/datastore/src/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The schemas are generated from Zod definitions and provide a visual representati
erDiagram
Letter {
string id
string status "enum: PENDING, ACCEPTED, REJECTED, PRINTED, ENCLOSED, CANCELLED, DISPATCHED, FAILED, RETURNED, DESTROYED, FORWARDED, DELIVERED"
string status "enum: PENDING, ACCEPTED, REJECTED, PRINTED, ENCLOSED, CANCELLED, DISPATCHED, FAILED, RETURNED, FORWARDED, DELIVERED"
string specificationId
string groupId
number reasonCode
Expand Down
2 changes: 1 addition & 1 deletion internal/datastore/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type Supplier = z.infer<typeof SupplierSchema>;
export const LetterStatus = z.enum([
'PENDING', 'ACCEPTED', 'REJECTED', 'PRINTED',
'ENCLOSED', 'CANCELLED', 'DISPATCHED', 'FAILED',
'RETURNED', 'DESTROYED', 'FORWARDED', 'DELIVERED']);
'RETURNED', 'FORWARDED', 'DELIVERED']);

export type LetterStatusType = z.infer<typeof LetterStatus>;

Expand Down
1 change: 0 additions & 1 deletion lambdas/api-handler/src/contracts/letters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export const LetterStatusSchema = z.enum([
'DISPATCHED',
'FAILED',
'RETURNED',
'DESTROYED',
'FORWARDED',
'DELIVERED'
]);
Expand Down
2 changes: 1 addition & 1 deletion sandbox/HealthcheckEndpoint.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"description": "Service is healthy"
}
},
"summary": "Health check endpoint"
"summary": "Health check"
}
}
}
Loading
Loading