@thetimes/times-public-api-types 1.0.5119 → 1.0.5136

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/common.d.ts CHANGED
@@ -15,6 +15,7 @@ export declare type BigInt = number & {
15
15
  export declare type DataSource = "NEWSPRESS" | "METHODE" | null;
16
16
  export declare type PageSliceType = "PAGE_SLICE" | "TOPIC_AUTHOR_SLICE" | null;
17
17
  export declare type PageTileType = "ARTICLE_REFERENCE" | "TOPIC_ARTICLE_REFERENCE" | "CUSTOM_COMPONENT" | "EXTERNAL_REFERENCE" | null;
18
+ export declare type CollectionLinkType = "TOPIC_LINK" | "CUSTOM_LINK";
18
19
  export declare type DateTime = Date;
19
20
  export declare type Dictionary = {
20
21
  [key: string]: string;
@@ -3,6 +3,7 @@ export declare type AuthorCreateInput = {
3
3
  slug: Slug;
4
4
  name: string;
5
5
  jobTitle: string;
6
+ contractualTitle: string | null;
6
7
  twitter?: string | null;
7
8
  image?: URL | null;
8
9
  biography: Markup;
@@ -2,6 +2,7 @@ import { URL, Markup } from "../common";
2
2
  export declare type AuthorUpdateInput = {
3
3
  name: string;
4
4
  jobTitle: string;
5
+ contractualTitle: string | null;
5
6
  twitter?: string | null;
6
7
  image?: URL | null;
7
8
  biography: Markup;
@@ -1,5 +1,5 @@
1
1
  import { StandardSectionSliceInput } from "./section-input";
2
- import { URL, Slug, UUID } from "../common";
2
+ import { URL, Slug, UUID, CollectionLinkType } from "../common";
3
3
  import { StandardPageSliceInput } from "./standard-page-slice-input";
4
4
  export declare type CollectionInput = {
5
5
  title: string | null;
@@ -11,4 +11,6 @@ export declare type CollectionInput = {
11
11
  };
12
12
  export declare type CollectionLinkInput = {
13
13
  url: URL | null;
14
+ linkTitle?: string | null;
15
+ linkType?: CollectionLinkType;
14
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thetimes/times-public-api-types",
3
- "version": "1.0.5119",
3
+ "version": "1.0.5136",
4
4
  "description": "",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",
@@ -6,6 +6,7 @@ export declare type Author = {
6
6
  biography: Markup | null;
7
7
  image: URL | null;
8
8
  jobTitle: string | null;
9
+ contractualTitle: string | null;
9
10
  name: string;
10
11
  hasLeadAssets: boolean | null;
11
12
  twitter: string | null;
@@ -1,12 +1,14 @@
1
1
  import { UUID } from "../common";
2
- import { Link } from "./link";
2
+ import { CustomLink, Link, TopicLink } from "./link";
3
3
  import { StandardSectionSlice } from "./slice";
4
4
  import { StandardPageSlice } from "./standard-page-slice";
5
+ declare type CollectionLink = Link | TopicLink | CustomLink;
5
6
  export declare type Collection = {
6
7
  title: string | null;
7
- link: Link;
8
+ link: CollectionLink;
8
9
  slices: StandardSectionSlice[];
9
10
  children: StandardPageSlice[];
10
11
  collectionId: number;
11
12
  id: UUID | null;
12
13
  };
14
+ export {};
package/queries/link.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { URL, UUID } from "../common";
1
+ import { Slug, URL, UUID } from "../common";
2
2
  import { Article } from "./article";
3
3
  export declare type Link = {
4
4
  url: URL | null;
@@ -10,3 +10,10 @@ export declare type ArticleLink = {
10
10
  export declare type Anchor = {
11
11
  value: string | null;
12
12
  };
13
+ export declare type TopicLink = {
14
+ topic: Slug;
15
+ };
16
+ export declare type CustomLink = {
17
+ url: URL | null;
18
+ text: string | null;
19
+ };