Skip to content

Commit 68e2eb8

Browse files
authored
Merge pull request #348 from prezly/feature/dev-18879-update-coverage-api
[DEV-18879][DEV-18781] Document new coverage<>story matching properties
2 parents 1b459e8 + c5e1b0e commit 68e2eb8

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/types/CoverageEntry.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,18 @@ export interface CoverageEntry {
2121
is_deleted: boolean;
2222
headline: string;
2323
user: UserRef;
24+
2425
story: Story | null;
26+
/**
27+
* Tells whether the story reference has been manually set, or automatically matched.
28+
* `none` means no information (which is only used for null references).
29+
*/
30+
story_reference_origin: 'manual' | 'auto' | 'none';
31+
/**
32+
* Number of displayed story suggestions (if the automatic matching was not sure enough about it).
33+
*/
34+
suggested_stories_count: number;
35+
2536
newsroom: NewsroomRef | null;
2637
author_contact: Contact | null;
2738
organisation_contact: Contact | null;

src/types/Story.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export interface Story {
9292
oembed: OEmbedInfo;
9393

9494
coverage_number: number;
95+
auto_matched_coverage_number: number;
9596
language: string;
9697
last_coverage_at: string | null;
9798

0 commit comments

Comments
 (0)