Skip to content

Commit c63f8d6

Browse files
feat: get html & text columns for broadcasts (#673)
1 parent 6f3b9ea commit c63f8d6

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
@@ -420,13 +420,15 @@ describe('Broadcasts', () => {
420420
name: 'Announcements',
421421
audience_id: '78261eea-8f8b-4381-83c6-79fa7120f1cf',
422422
from: 'Acme <[email protected]>',
423+
html: '<h1>Hello world</h1>',
423424
subject: 'hello world',
424425
reply_to: null,
425426
preview_text: 'Check out our latest announcements',
426427
status: 'draft',
427428
created_at: '2024-12-01T19:32:22.980Z',
428429
scheduled_at: null,
429430
sent_at: null,
431+
text: 'Hello world',
430432
};
431433

432434
fetchMock.mockOnce(JSON.stringify(response), {
@@ -447,6 +449,7 @@ describe('Broadcasts', () => {
447449
"audience_id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
448450
"created_at": "2024-12-01T19:32:22.980Z",
449451
"from": "Acme <[email protected]>",
452+
"html": "<h1>Hello world</h1>",
450453
"id": "559ac32e-9ef5-46fb-82a1-b76b840c0f7b",
451454
"name": "Announcements",
452455
"object": "broadcast",
@@ -456,6 +459,7 @@ describe('Broadcasts', () => {
456459
"sent_at": null,
457460
"status": "draft",
458461
"subject": "hello world",
462+
"text": "Hello world",
459463
},
460464
"error": null,
461465
}

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)