44 BREAK_PARSER ,
55 BREAK_TIME_SLOT_PARSER ,
66 EVENT_DESCRIPTOR_PARSER ,
7- EVENT_FEATURES_CONFIG_PARSER ,
7+ EVENT_FEATURES_CONFIG_PARSER , EVENT_THEME_PARSER ,
88 RATINGS_CONFIG_PARSER , ROOM_PARSER ,
99 SPEAKER_PARSER ,
1010 TALK_PARSER ,
@@ -74,11 +74,13 @@ export const OPENPLANNER_DESCRIPTOR_PARSER = EVENT_DESCRIPTOR_PARSER.omit({
7474 supportedTalkLanguages : true ,
7575 rooms : true ,
7676} ) . extend ( {
77+ openPlannerGeneratedJson : z . string ( ) ,
7778 title : z . string ( ) . optional ( ) ,
7879 headingTitle : z . string ( ) . optional ( ) ,
7980 backgroundUrl : z . string ( ) . optional ( ) ,
8081 logoUrl : z . string ( ) . optional ( ) ,
81- openPlannerGeneratedJson : z . string ( ) ,
82+ theming : EVENT_THEME_PARSER . optional ( ) ,
83+ features : EVENT_FEATURES_CONFIG_PARSER . omit ( { ratings : true } ) . optional ( ) ,
8284 language : z . string ( ) ,
8385 ratings : RATINGS_CONFIG_PARSER ,
8486 additionalBreakTimeslots : z . array ( BREAK_TIME_SLOT_PARSER . omit ( { type : true , id : true } ) ) . optional ( ) . default ( [ ] ) ,
@@ -306,9 +308,9 @@ export const OPENPLANNER_CRAWLER: CrawlerKind<typeof OPENPLANNER_DESCRIPTOR_PARS
306308 days : openPlannerSchedule . days ,
307309 keywords : descriptor . keywords ,
308310 location : descriptor . location ,
309- theming : openPlannerSchedule . theming ,
311+ theming : descriptor . theming || openPlannerSchedule . theming ,
310312 features : {
311- ...openPlannerSchedule . features ,
313+ ...( descriptor . features || openPlannerSchedule . features ) ,
312314 ratings : descriptor . ratings
313315 } ,
314316 formattings : descriptor . formattings || {
@@ -328,7 +330,7 @@ export const OPENPLANNER_CRAWLER: CrawlerKind<typeof OPENPLANNER_DESCRIPTOR_PARS
328330 logoUrl : descriptor . logoUrl || openPlannerSchedule . logoUrl ,
329331 backgroundUrl : descriptor . backgroundUrl || openPlannerSchedule . backgroundUrl ,
330332 location : descriptor . location ,
331- theming : openPlannerSchedule . theming ,
333+ theming : descriptor . theming || openPlannerSchedule . theming ,
332334 keywords : descriptor . keywords
333335 }
334336 }
0 commit comments