diff --git a/src/types/ContactTag.ts b/src/types/ContactTag.ts index 15e2a029..a24c4aaf 100644 --- a/src/types/ContactTag.ts +++ b/src/types/ContactTag.ts @@ -1,8 +1,7 @@ +import type { Iso8601DateTime } from './common'; import type { ContactTagGroupRef } from './ContactTagGroup'; import type { UserRef } from './User'; -type Iso8601DateTime = string; - export interface ContactTagRef { id: number; name: string; diff --git a/src/types/ContactsExport.ts b/src/types/ContactsExport.ts index d1016d46..da5d7ecb 100644 --- a/src/types/ContactsExport.ts +++ b/src/types/ContactsExport.ts @@ -1,7 +1,6 @@ +import type { Iso8601DateTime } from './common'; import type { UserRef } from './User'; -type Iso8601DateTime = string; - export interface ContactsExport { uuid: string; status: ContactsExport.Status; diff --git a/src/types/CoverageIntegration.ts b/src/types/CoverageIntegration.ts index a5b9e006..ef9c790a 100644 --- a/src/types/CoverageIntegration.ts +++ b/src/types/CoverageIntegration.ts @@ -1,10 +1,9 @@ +import type { Iso8601DateTime } from './common'; import type { CoverageEntry } from './CoverageEntry'; import type { CoverageIntegrationRun } from './CoverageIntegrationRun'; import type { NewsroomRef } from './Newsroom'; import type { UserRef } from './User'; -type Iso8601DateTime = string; - export interface CoverageIntegration { id: number; name: string; diff --git a/src/types/CoverageIntegrationRun.ts b/src/types/CoverageIntegrationRun.ts index da810f2d..1d85019f 100644 --- a/src/types/CoverageIntegrationRun.ts +++ b/src/types/CoverageIntegrationRun.ts @@ -1,7 +1,6 @@ +import type { Iso8601DateTime } from './common'; import type { CoverageIntegrationRef } from './CoverageIntegration'; -type Iso8601DateTime = string; - export interface CoverageIntegrationRun { id: number; uuid: string; diff --git a/src/types/Newsroom.ts b/src/types/Newsroom.ts index 39b10fbf..61a35314 100644 --- a/src/types/Newsroom.ts +++ b/src/types/Newsroom.ts @@ -1,5 +1,6 @@ import type { UploadedImage } from '@prezly/uploads'; +import type { Iso8601DateTime } from './common'; import type { CultureRef } from './Culture'; import type { NewroomThemeRef, NewsroomThemePreset } from './NewsroomTheme'; @@ -14,6 +15,7 @@ export interface NewsroomRef { thumbnail_url: string; name: string; subdomain: string; + domain: string; status: Newsroom.Status; /** @@ -74,10 +76,10 @@ export interface NewsroomRef { }; active_theme?: NewroomThemeRef | null; is_auto_created: boolean; + created_at: Iso8601DateTime; } export interface Newsroom extends NewsroomRef { - domain: string; is_hub: boolean; // extended details cultures: CultureRef[]; diff --git a/src/types/common/Iso8601DateTime.ts b/src/types/common/Iso8601DateTime.ts new file mode 100644 index 00000000..97927f24 --- /dev/null +++ b/src/types/common/Iso8601DateTime.ts @@ -0,0 +1 @@ +export type Iso8601DateTime = string; diff --git a/src/types/common/index.ts b/src/types/common/index.ts index 7a7cd5ae..a5d7ca31 100644 --- a/src/types/common/index.ts +++ b/src/types/common/index.ts @@ -1,3 +1,4 @@ +export * from './Iso8601DateTime'; export * from './Notification'; export * from './OEmbedInfo'; export * from './Pagination';