11import { VaccineType } from "@src/models/vaccine" ;
22import { buildFilteredContentForStandardVaccine } from "@src/services/content-api/parsers/content-filter-service" ;
33import { HeadingWithContent , HeadingWithTypedContent , VaccinePageContent } from "@src/services/content-api/types" ;
4- import { Action , ActionDisplayType , ButtonUrl , Content , Label } from "@src/services/eligibility-api/types" ;
4+ import {
5+ Action ,
6+ ActionDisplayType ,
7+ ActionWithButton ,
8+ ButtonUrl ,
9+ Content ,
10+ Label ,
11+ } from "@src/services/eligibility-api/types" ;
512import config from "@src/utils/config" ;
613import { logger } from "@src/utils/logger" ;
714import { Logger } from "pino" ;
@@ -18,7 +25,13 @@ export const buildFilteredContentForCovid19Vaccine = async (apiContent: string):
1825 if ( campaigns . isActive ( VaccineType . COVID_19 ) ) {
1926 log . info ( "Campaign active" ) ;
2027 callout = undefined ;
21- actions . push ( {
28+ const nbsBooking : ActionWithButton = {
29+ type : ActionDisplayType . buttonWithCard ,
30+ content : [ "## If this applies to you" , "### Book an appointment online at a pharmacy" ] . join ( "\n\n" ) as Content ,
31+ button : { label : "Continue to booking" as Label , url : new URL ( "https://example.com" ) as ButtonUrl } ,
32+ delineator : true ,
33+ } ;
34+ const walkIn : ActionWithButton = {
2235 type : ActionDisplayType . actionLinkWithInfo ,
2336 content : [
2437 "## Get vaccinated without an appointment" ,
@@ -31,7 +44,8 @@ export const buildFilteredContentForCovid19Vaccine = async (apiContent: string):
3144 ) as ButtonUrl ,
3245 } ,
3346 delineator : false ,
34- } ) ;
47+ } ;
48+ actions . push ( nbsBooking , walkIn ) ;
3549 } else {
3650 log . info ( "No campaign active" ) ;
3751 callout = {
0 commit comments