From 569e22cce81ff1473678d8fd7dbd21585618add3 Mon Sep 17 00:00:00 2001 From: chrish01 Date: Mon, 19 Aug 2024 16:18:56 +0100 Subject: [PATCH] update types for TvMediaBlock --- src/app/components/MediaLoader/types.ts | 40 ++++++++++++------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/app/components/MediaLoader/types.ts b/src/app/components/MediaLoader/types.ts index 10b9b854428..f2b57cb88a4 100644 --- a/src/app/components/MediaLoader/types.ts +++ b/src/app/components/MediaLoader/types.ts @@ -167,37 +167,37 @@ export type ClipMediaBlock = { }; export type TvMediaBlock = { - id: 'w172zm8920nck2z'; + id: string; subType: 'episode'; format: 'Video'; - title: '16/08/2024 GMT'; + title: string; synopses: { - short: 'ताज़ा अंतरराष्ट्रीय, क्षेत्रीय ख़बरों और विश्लेषण के लिए देखिए बीबीसी दुनिया'; - medium: 'ताज़ा अंतरराष्ट्रीय, क्षेत्रीय ख़बरों और विश्लेषण के लिए देखिए बीबीसी दुनिया'; + short: string; + medium: string; }; - imageUrl: 'ichef.bbci.co.uk/images/ic/$recipe/p0hfjjfk.png'; - embedding: false; - advertising: false; + imageUrl: string; + embedding: boolean; + advertising: boolean; versions: [ { - versionId: 'w1mskyp8ybvqtc6'; - types: ['Original']; - duration: 1192; - durationISO8601: 'PT19M52S'; + versionId: string; + types: [string]; + duration: number; + durationISO8601: string; warnings: {}; availableTerritories: { - uk: true; - nonUk: true; - world: false; + uk: boolean; + nonUk: boolean; + world: boolean; }; - availableFrom: 1723826990000; - availabilityStatus: 'available'; + availableFrom: number; + availabilityStatus: string; }, ]; - availability: 'available'; - smpKind: 'programme'; - episodeTitle: 'दुनिया'; - type: 'media'; + availability: string; + smpKind: string; + episodeTitle: string; + type: string; }; export type MediaBlock =