Skip to content

Commit ccc0651

Browse files
feat: get html & text columns for broadcasts (#673)
1 parent 241d21f commit ccc0651

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/broadcasts/broadcasts.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,13 +415,15 @@ describe('Broadcasts', () => {
415415
name: 'Announcements',
416416
audience_id: '78261eea-8f8b-4381-83c6-79fa7120f1cf',
417417
from: 'Acme <[email protected]>',
418+
html: '<h1>Hello world</h1>',
418419
subject: 'hello world',
419420
reply_to: null,
420421
preview_text: 'Check out our latest announcements',
421422
status: 'draft',
422423
created_at: '2024-12-01T19:32:22.980Z',
423424
scheduled_at: null,
424425
sent_at: null,
426+
text: 'Hello world',
425427
};
426428

427429
fetchMock.mockOnce(JSON.stringify(response), {
@@ -442,6 +444,7 @@ describe('Broadcasts', () => {
442444
"audience_id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
443445
"created_at": "2024-12-01T19:32:22.980Z",
444446
"from": "Acme <[email protected]>",
447+
"html": "<h1>Hello world</h1>",
445448
"id": "559ac32e-9ef5-46fb-82a1-b76b840c0f7b",
446449
"name": "Announcements",
447450
"object": "broadcast",
@@ -451,6 +454,7 @@ describe('Broadcasts', () => {
451454
"sent_at": null,
452455
"status": "draft",
453456
"subject": "hello world",
457+
"text": "Hello world",
454458
},
455459
"error": null,
456460
}

src/broadcasts/interfaces/broadcast.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ export interface Broadcast {
1010
created_at: string;
1111
scheduled_at: string | null;
1212
sent_at: string | null;
13+
html: string | null;
14+
text: string | null;
1315
}

0 commit comments

Comments
 (0)