Skip to content

Commit 695aeba

Browse files
committed
[DEV-20069] Exposed active_theme in NewsroomRef
1 parent ee1f29e commit 695aeba

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/types/Newsroom.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { UploadedImage } from '@prezly/uploads';
22

33
import type { CultureRef } from './Culture';
4+
import type { NewroomThemeRef } from './NewsroomTheme';
45

56
export interface NewsroomRef {
67
uuid: string;
@@ -149,6 +150,7 @@ export interface Newsroom extends NewsroomRef {
149150
visits_last_7_days: number | null;
150151
visits_last_7_days_previous: number | null;
151152
};
153+
active_theme?: NewroomThemeRef | null;
152154
}
153155

154156
export namespace Newsroom {

src/types/NewsroomTheme.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export interface NewsroomTheme {
1616
status: NewsroomTheme.Status;
1717
}
1818

19+
export type NewroomThemeRef = Pick<NewsroomTheme, 'id' | 'codename' | 'name'>;
20+
1921
export namespace NewsroomTheme {
2022
export enum Status {
2123
BETA = 'beta',

0 commit comments

Comments
 (0)