Skip to content
This repository was archived by the owner on Jun 9, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/types/ContactTag.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 1 addition & 2 deletions src/types/ContactsExport.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 1 addition & 2 deletions src/types/CoverageIntegration.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 1 addition & 2 deletions src/types/CoverageIntegrationRun.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { Iso8601DateTime } from './common';
import type { CoverageIntegrationRef } from './CoverageIntegration';

type Iso8601DateTime = string;

export interface CoverageIntegrationRun {
id: number;
uuid: string;
Expand Down
4 changes: 3 additions & 1 deletion src/types/Newsroom.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -14,6 +15,7 @@ export interface NewsroomRef {
thumbnail_url: string;
name: string;
subdomain: string;
domain: string;

status: Newsroom.Status;
/**
Expand Down Expand Up @@ -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[];
Expand Down
1 change: 1 addition & 0 deletions src/types/common/Iso8601DateTime.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type Iso8601DateTime = string;
1 change: 1 addition & 0 deletions src/types/common/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './Iso8601DateTime';
export * from './Notification';
export * from './OEmbedInfo';
export * from './Pagination';
Expand Down