Skip to content

Commit 3e9cf3d

Browse files
authored
Merge pull request #389 from prezly/feature/dev-21181-newsroom-created-at
[DEV-21181] Feature - Extend `Newsroom` API presentation
2 parents 6dd1582 + 6a06c9f commit 3e9cf3d

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

src/types/ContactTag.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
import type { Iso8601DateTime } from './common';
12
import type { ContactTagGroupRef } from './ContactTagGroup';
23
import type { UserRef } from './User';
34

4-
type Iso8601DateTime = string;
5-
65
export interface ContactTagRef {
76
id: number;
87
name: string;

src/types/ContactsExport.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
import type { Iso8601DateTime } from './common';
12
import type { UserRef } from './User';
23

3-
type Iso8601DateTime = string;
4-
54
export interface ContactsExport {
65
uuid: string;
76
status: ContactsExport.Status;

src/types/CoverageIntegration.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
import type { Iso8601DateTime } from './common';
12
import type { CoverageEntry } from './CoverageEntry';
23
import type { CoverageIntegrationRun } from './CoverageIntegrationRun';
34
import type { NewsroomRef } from './Newsroom';
45
import type { UserRef } from './User';
56

6-
type Iso8601DateTime = string;
7-
87
export interface CoverageIntegration {
98
id: number;
109
name: string;

src/types/CoverageIntegrationRun.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
import type { Iso8601DateTime } from './common';
12
import type { CoverageIntegrationRef } from './CoverageIntegration';
23

3-
type Iso8601DateTime = string;
4-
54
export interface CoverageIntegrationRun {
65
id: number;
76
uuid: string;

src/types/Newsroom.ts

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

3+
import type { Iso8601DateTime } from './common';
34
import type { CultureRef } from './Culture';
45
import type { NewroomThemeRef, NewsroomThemePreset } from './NewsroomTheme';
56

@@ -14,6 +15,7 @@ export interface NewsroomRef {
1415
thumbnail_url: string;
1516
name: string;
1617
subdomain: string;
18+
domain: string;
1719

1820
status: Newsroom.Status;
1921
/**
@@ -74,10 +76,10 @@ export interface NewsroomRef {
7476
};
7577
active_theme?: NewroomThemeRef | null;
7678
is_auto_created: boolean;
79+
created_at: Iso8601DateTime;
7780
}
7881

7982
export interface Newsroom extends NewsroomRef {
80-
domain: string;
8183
is_hub: boolean;
8284
// extended details
8385
cultures: CultureRef[];
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export type Iso8601DateTime = string;

src/types/common/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
export * from './Iso8601DateTime';
12
export * from './Notification';
23
export * from './OEmbedInfo';
34
export * from './Pagination';

0 commit comments

Comments
 (0)