ws-nextjs-app/pages/[service]/live/[id]/Post/fixture.ts
export const samplePost = {
typeCode: null,
header: {
model: {
blocks: [
{
type: 'headline',
model: {
blocks: [
{
type: 'text',
model: {
blocks: [
{
type: 'paragraph',
model: {
text: 'Number 3',
blocks: [
{
type: 'fragment',
model: {
text: 'Number 3',
attributes: [],
},
},
],
},
},
],
},
},
],
},
},
{
type: 'subheadline',
model: {
blocks: [
{
type: 'text',
model: {
blocks: [
{
type: 'paragraph',
model: {
text: 'Sub',
blocks: [
{
id: 'ea16e578',
type: 'fragment',
model: {
text: 'Sub',
attributes: [],
},
},
],
},
},
],
},
},
],
},
},
],
},
},
content: {
model: {
blocks: [
{
id: '79798933',
type: 'paragraph',
model: {
text: 'Text',
blocks: [
{
id: '2c03e6e8',
type: 'fragment',
model: {
text: 'Text',
attributes: [],
},
},
],
},
},
],
},
},
link: null,
urn: 'asset:c0166a3e-82f3-4ba2-ab47-cbf614fcbe5e',
type: 'POST',
options: {
isBreakingNews: false,
},
titles: [
{
title: null,
source: 'primary',
},
],
descriptions: [
{
text: null,
source: 'summary',
},
],
images: [
{
url: null,
originalUrl: null,
urlTemplate: null,
altText: null,
copyright: null,
},
],
};
export const twitterSamplePost = {
typeCode: null,
header: {
model: {
blocks: [
{
id: 'f8dd8761',
type: 'headline',
model: {
blocks: [
{
id: 'e274a4fb',
type: 'text',
model: {
blocks: [
{
id: '5f367ba3',
type: 'paragraph',
model: {
text: 'X Post (Twitter)',
blocks: [
{
id: '48673b82',
type: 'fragment',
model: {
text: 'X Post (Twitter)',
attributes: [],
},
},
],
},
},
],
},
},
],
},
},
{
id: '931eb1f1',
type: 'subheadline',
model: {
blocks: [
{
id: 'e65ea464',
type: 'text',
model: {
blocks: [
{
id: 'da2f3e0c',
type: 'paragraph',
model: {
text: 'X twitter post',
blocks: [
{
id: '4c8d3364',
type: 'fragment',
model: {
text: 'X twitter post',
attributes: [],
},
},
],
},
},
],
},
},
],
},
},
],
},
},
content: {
model: {
blocks: [
{
id: 'ba0b451d',
type: 'paragraph',
model: {
text: 'Social - X (Twitter)',
blocks: [
{
id: '91f6d4aa',
type: 'fragment',
model: {
text: 'Social - X (Twitter)',
attributes: ['bold'],
},
},
],
},
},
{
id: '43fcbe53',
type: 'social',
model: {
source:
'https://twitter.com/bbcnewspidgin/status/1670883488562569216?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1670883488562569216%7Ctwgr%5Ed30de9a475cd9b9a73cc4e79ef778e5655a79963%7Ctwcon%5Es1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2Fbbcnewspidgin2Fstatus2F1670883488562569216widget%3DTweet',
blocks: [
{
id: 'c5f3ca8c',
type: 'renditions',
model: {
locator: '',
blocks: [
{
id: '2673910e',
type: 'aresOEmbed',
model: {
oembed: {
provider_name: 'twitter',
url: 'https://twitter.com/bbcnewspidgin/status/1670883488562569216?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1670883488562569216%7Ctwgr%5Ed30de9a475cd9b9a73cc4e79ef778e5655a79963%7Ctwcon%5Es1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2Fbbcnewspidgin2Fstatus2F1670883488562569216widget%3DTweet',
html: '\u003Cblockquote class="twitter-tweet"\u003E\u003Ca href=https://twitter.com/bbcnewspidgin/status/1670883488562569216?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1670883488562569216%7Ctwgr%5Ed30de9a475cd9b9a73cc4e79ef778e5655a79963%7Ctwcon%5Es1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2Fbbcnewspidgin2Fstatus2F1670883488562569216widget%3DTweet\u003EView original content on Twitter\u003C/a\u003E\u003C/blockquote\u003E',
indexOfType: 0,
},
},
},
],
},
},
],
},
},
{
id: '21a9d9e7',
type: 'paragraph',
model: {
text: 'Social X (Twitter) 2',
blocks: [
{
id: '651f34bf',
type: 'fragment',
model: {
text: 'Social X (Twitter) 2',
attributes: ['bold'],
},
},
],
},
},
{
id: 'e36b1af0',
type: 'social',
model: {
source:
'https://twitter.com/bbcnewspidgin/status/1700039661874282772',
blocks: [
{
id: '4289b637',
type: 'renditions',
model: {
locator: '',
blocks: [
{
id: 'a5b305fa',
type: 'aresOEmbed',
model: {
oembed: {
provider_name: 'twitter',
url: 'https://twitter.com/bbcnewspidgin/status/1700039661874282772',
html: '\u003Cblockquote class="twitter-tweet"\u003E\u003Ca href=https://twitter.com/bbcnewspidgin/status/1700039661874282772\u003EView original content on Twitter\u003C/a\u003E\u003C/blockquote\u003E',
indexOfType: 1,
},
},
},
],
},
},
],
},
},
],
},
},
link: null,
urn: 'asset:35f240a5-1fb2-4ed3-9c2a-657c4599fc0b',
type: 'POST',
options: {
isBreakingNews: false,
},
dates: {
firstPublished: '2023-09-08T10:07:36+00:00',
lastPublished: '2023-09-08T10:07:36+00:00',
time: null,
curated: '2023-09-08T10:07:36.652Z',
},
titles: [
{
title: null,
source: 'primary',
},
],
descriptions: [
{
text: null,
source: 'summary',
},
],
images: [
{
url: null,
originalUrl: null,
urlTemplate: null,
altText: null,
copyright: null,
},
],
};
export const videoSamplePost = {
typeCode: null,
header: {
model: {
blocks: [
{
id: 'c35b217c',
type: 'headline',
model: {
blocks: [
{
id: 'a043a38d',
type: 'text',
model: {
blocks: [
{
id: '4c1e704b',
type: 'paragraph',
model: {
text: 'Video',
blocks: [
{
id: '2f297902',
type: 'fragment',
model: {
text: 'Video',
attributes: [],
},
},
],
},
},
],
},
},
],
},
},
{
id: '291c6593',
type: 'subheadline',
model: {
blocks: [
{
id: 'bc7e7be2',
type: 'text',
model: {
blocks: [
{
id: 'ccb1221b',
type: 'paragraph',
model: {
text: 'Video player',
blocks: [
{
id: '7dd4859b',
type: 'fragment',
model: {
text: 'Video player',
attributes: [],
},
},
],
},
},
],
},
},
],
},
},
],
},
},
content: {
model: {
blocks: [
{
id: 'a1dd09b3',
type: 'paragraph',
model: {
text: 'Video',
blocks: [
{
id: '823772a4',
type: 'fragment',
model: { text: 'Video', attributes: ['bold'] },
},
],
},
},
{
id: '8b8965cd',
type: 'video',
model: {
locator: 'urn:bbc:pips:pid:p01thw20',
blocks: [
{
id: '83f02f5a',
type: 'clipMedia',
model: {
id: 'urn:bbc:pips:pid:p01thw20',
urns: {
pipsPid: 'urn:bbc:pips:pid:p01thw20',
},
images: [
{
url: 'https://ichef.test.bbci.co.uk/images/ic/1024xn/p01thw3g.jpg',
urlTemplate:
'https://ichef.test.bbci.co.uk/images/ic/{width}xn/p01thw3g.jpg',
altText:
'BBC launch trailer for We Know Our Place women\'s sport campaign"',
type: 'socialImage',
source: 'pipsImage',
},
{
url: 'https://ichef.test.bbci.co.uk/images/ic/1024xn/p01thw3g.jpg',
urlTemplate:
'https://ichef.test.bbci.co.uk/images/ic/{width}xn/p01thw3g.jpg',
altText:
'BBC launch trailer for We Know Our Place women\'s sport campaign"',
type: 'promoImage',
source: 'pipsImage',
},
],
assetPath: 'p01thw20',
type: 'video',
headlines: {
primaryHeadline:
"BBC launch trailer for We Know Our Place women's sport campaign",
seoHeadline:
"BBC launch trailer for We Know Our Place women's sport campaign",
promoHeadline:
"BBC launch trailer for We Know Our Place women's sport campaign",
socialHeadline:
"BBC launch trailer for We Know Our Place women's sport campaign",
},
analytics: {
page: {
name: 'programmes.av.p01thw20.page',
contentId: 'urn:bbc:pips:pid:p01thw20',
producer: 'PROGRAMMES',
},
},
description:
'BBC launch trailer for We Know Our Place women\'s sport campaign"',
summary: {
type: 'text',
model: {
blocks: [
{
type: 'paragraph',
model: {
text: 'BBC launch trailer for We Know Our Place women\'s sport campaign"',
blocks: [
{
type: 'fragment',
model: {
text: 'BBC launch trailer for We Know Our Place women\'s sport campaign"',
attributes: [],
},
},
],
},
},
],
},
},
lastPublished: '2022-07-01T08:56:56Z',
firstPublished: null,
video: {
id: 'p01thw20',
title:
"BBC launch trailer for We Know Our Place women's sport campaign",
holdingImage: {
id: 'https://ichef.test.bbci.co.uk/images/ic/$recipe/p01thw3g.jpg',
altText:
'BBC launch trailer for We Know Our Place women\'s sport campaign"',
},
version: {
id: 'p01thw22',
duration: 'PT54S',
kind: 'programme',
guidance: null,
territories: ['nonuk', 'uk'],
},
isAdvertisingAllowed: true,
isEmbeddingAllowed: true,
isUnavailable: false,
},
attributions: null,
link: { path: '/programmes/p01thw20' },
section: null,
isSharingAllowed: true,
},
},
{
id: '7aff54bf',
type: 'caption',
model: {
blocks: [
{
id: '69b391e8',
type: 'text',
model: {
blocks: [
{
id: '4f06c3eb',
type: 'paragraph',
model: {
text: 'BBC launch trailer for We Know Our Place women\'s sport campaign"',
blocks: [
{
id: 'ae848e19',
type: 'fragment',
model: {
text: 'BBC launch trailer for We Know Our Place women\'s sport campaign"',
attributes: [],
},
},
],
},
},
],
},
},
],
},
},
],
},
},
],
},
},
link: null,
urn: 'asset:d25690d5-6df5-4a79-9fee-5549ac8a141b',
type: 'POST',
options: { isBreakingNews: false },
dates: {
firstPublished: '2023-09-08T09:58:44+00:00',
lastPublished: '2023-09-08T10:09:41+00:00',
time: null,
curated: '2023-09-08T09:58:44.896Z',
},
titles: [{ title: null, source: 'primary' }],
descriptions: [{ text: null, source: 'summary' }],
images: [
{
url: null,
originalUrl: null,
urlTemplate: null,
altText: null,
copyright: null,
},
],
};