Skip to content

Commit

Permalink
Added uploadcare_assets_group_uuid as default property on story object
Browse files Browse the repository at this point in the history
  • Loading branch information
fgyimah committed Feb 5, 2025
1 parent aa1526b commit 46b829b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/endpoints/Stories/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export interface ChangeNewsroomUnsafeResponse {
}

const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS_SHAPE: Record<
keyof Omit<ExtendedStory, keyof Story | 'uploadcare_assets_group_uuid'>,
keyof Omit<ExtendedStory, keyof Story>,
boolean
> = {
thumbnail_image: true,
Expand Down Expand Up @@ -363,7 +363,6 @@ const ALL_EXTRA_FIELDS_SHAPE: Record<keyof Story.ExtraFields, boolean> = {
referenced_entities: true,
'campaigns.count': true,
'pitches.count': true,
uploadcare_assets_group_uuid: true,
}; // satisfies Record<keyof Story.OnDemandFields, boolean>; // TODO: Use Typescript `satisfies` operator, when it's out of beta

export const ALL_EXTRA_FIELDS = Object.keys(
Expand Down
5 changes: 2 additions & 3 deletions src/types/Story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ export interface Story {
pinned_by: UserRef | null;

seo_settings: SEOSettings;

uploadcare_assets_group_uuid: string | null;
}

export namespace Story {
Expand Down Expand Up @@ -296,8 +298,6 @@ export namespace Story {
* Number of pitches linked to this story.
*/
'pitches.count': number;

uploadcare_assets_group_uuid: string | null;
}

/*
Expand Down Expand Up @@ -501,5 +501,4 @@ export interface ExtendedStory
| 'content'
| 'attached_gallery_content'
| 'referenced_entities'
| 'uploadcare_assets_group_uuid'
> {}

0 comments on commit 46b829b

Please sign in to comment.