Skip to content

Commit 9f02fcb

Browse files
authored
CCM-14451: update letter-rendering (#613)
* update letter-rendering * letter-render version + lint * pact fix
1 parent 0d494f0 commit 9f02fcb

5 files changed

Lines changed: 2561 additions & 3027 deletions

File tree

lambdas/supplier-allocator/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"@aws-sdk/lib-dynamodb": "^3.1044.0",
66
"@internal/datastore": "*",
77
"@internal/helpers": "^0.1.0",
8-
"@nhsdigital/nhs-notify-event-schemas-letter-rendering": "2.0.1",
8+
"@nhsdigital/nhs-notify-event-schemas-letter-rendering": "2.0.2",
99
"@nhsdigital/nhs-notify-event-schemas-letter-rendering-v1": "npm:@nhsdigital/nhs-notify-event-schemas-letter-rendering@^1.1.5",
1010
"@nhsdigital/nhs-notify-event-schemas-supplier-api": "^1.0.8",
1111
"@nhsdigital/nhs-notify-event-schemas-supplier-config": "^1.1.0",
@@ -28,4 +28,4 @@
2828
"typecheck": "tsc --noEmit"
2929
},
3030
"version": "0.0.1"
31-
}
31+
}

lambdas/supplier-config-ingress/src/handler/supplier-config-ingress-handler.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,12 @@ const $EventEnvelope = z.object({
2323
});
2424

2525
const entitySchemas: Record<SupplierConfigEntity, z.ZodType<{ id: string }>> = {
26-
"letter-variant": $LetterVariant as unknown as z.ZodType<{ id: string }>,
27-
"volume-group": $VolumeGroup as unknown as z.ZodType<{ id: string }>,
28-
"supplier-allocation": $SupplierAllocation as unknown as z.ZodType<{
29-
id: string;
30-
}>,
31-
supplier: $Supplier as unknown as z.ZodType<{ id: string }>,
32-
"pack-specification": $PackSpecification as unknown as z.ZodType<{
33-
id: string;
34-
}>,
35-
"supplier-pack": $SupplierPack as unknown as z.ZodType<{ id: string }>,
26+
"letter-variant": $LetterVariant,
27+
"volume-group": $VolumeGroup,
28+
"supplier-allocation": $SupplierAllocation,
29+
supplier: $Supplier,
30+
"pack-specification": $PackSpecification,
31+
"supplier-pack": $SupplierPack,
3632
};
3733

3834
type UpsertResult = Awaited<

lambdas/upsert-letter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"@aws-sdk/lib-dynamodb": "^3.1044.0",
66
"@internal/datastore": "*",
77
"@internal/helpers": "*",
8-
"@nhsdigital/nhs-notify-event-schemas-letter-rendering": "2.0.1",
8+
"@nhsdigital/nhs-notify-event-schemas-letter-rendering": "2.0.2",
99
"@nhsdigital/nhs-notify-event-schemas-letter-rendering-v1": "npm:@nhsdigital/nhs-notify-event-schemas-letter-rendering@^1.1.5",
1010
"@nhsdigital/nhs-notify-event-schemas-supplier-api": "^1.0.8",
1111
"@types/aws-lambda": "^8.10.148",

0 commit comments

Comments
 (0)