You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,6 @@
1
-
## Contributing to NHS Notify Supplier API
1
+
<!-- vale off -->
2
+
3
+
# Contributing to NHS Notify Supplier API
2
4
3
5
## Feature Branches
4
6
@@ -51,3 +53,5 @@ You can test your branch in a dynamic environment prior to merging to `main`. Th
51
53
Each Lambda and internal package has a `README.md` alongside the source describing its purpose, flow, integration points, and peculiarities. These are bundled into the docs site via `docs/generate-includes.sh`.
52
54
53
55
When making changes to a Lambda or internal package, check whether the corresponding README needs updating. Function documentation is not auto-generated and can become stale if not maintained alongside code changes.
Copy file name to clipboardExpand all lines: config/suppliers/README.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
<!-- vale off -->
2
+
1
3
# Supplier Configuration
2
4
3
5
## Purpose
@@ -6,14 +8,14 @@ Static JSON configuration files that define the supplier allocation rules for th
6
8
7
9
## Configuration Entities
8
10
9
-
| Entity | Directory | Description |
10
-
| --- | --- | --- |
11
-
|**Supplier**|`supplier/`| Print supplier definitions with ID, name, channel type, daily capacity, and status (PROD/DRAFT) |
12
-
|**Letter Variant**|`letter-variant/`| Letter type definitions with physical constraints (sheets, sides, ink coverage, delivery days), associated pack specification IDs, and volume group assignment |
13
-
|**Volume Group**|`volume-group/`| Groupings of letter variants for allocation purposes, with status and date range validity |
14
-
|**Supplier Allocation**|`supplier-allocation/`| Maps a supplier to a volume group with a target `allocationPercentage` and status |
15
-
|**Pack Specification**|`pack-specification/`| Detailed print assembly specs (paper, envelope, print colour, duplex) with constraints and billing ID |
16
-
|**Supplier Pack**|`supplier-pack/`| Links a supplier to a pack specification with approval status |
|**Supplier**|`supplier/`| Print supplier definitions with ID, name, channel type, daily capacity, and status (PROD/DRAFT)|
14
+
|**Letter Variant**|`letter-variant/`| Letter type definitions with physical constraints (sheets, sides, ink coverage, delivery days), associated pack specification IDs, and volume group assignment |
15
+
|**Volume Group**|`volume-group/`| Groupings of letter variants for allocation purposes, with status and date range validity|
16
+
|**Supplier Allocation**|`supplier-allocation/`| Maps a supplier to a volume group with a target `allocationPercentage` and status |
17
+
|**Pack Specification**|`pack-specification/`| Detailed print assembly specs (paper, envelope, print colour, duplex) with constraints and billing ID|
18
+
|**Supplier Pack**|`supplier-pack/`| Links a supplier to a pack specification with approval status|
17
19
18
20
## Allocation Lookup Chain
19
21
@@ -33,3 +35,5 @@ When the `supplier-allocator` Lambda processes a `LetterRequestPreparedEvent`:
33
35
-`status: "PROD"` is required at multiple levels (supplier, volume group, allocation) for an allocation to be active.
34
36
- Volume groups have `startDate` (and optional `endDate`) fields. Allocations are only valid when the current date falls within this range (evaluated in London timezone).
35
37
- Supplier `dailyCapacity` is tracked separately in `SUPPLIER_QUOTAS_TABLE` and resets at midnight London time. It is not stored in these config files.
0 commit comments