@thetimes/times-public-api-types 1.0.4565 → 1.0.4590
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/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from "./queries/interactive";
|
|
|
20
20
|
export * from "./queries/layout";
|
|
21
21
|
export * from "./queries/link";
|
|
22
22
|
export * from "./queries/media";
|
|
23
|
+
export * from "./queries/page";
|
|
23
24
|
export * from "./queries/puff";
|
|
24
25
|
export * from "./queries/puzzle";
|
|
25
26
|
export * from "./queries/puzzles";
|
|
@@ -58,6 +59,8 @@ export * from "./mutations/draft-slice-input";
|
|
|
58
59
|
export * from "./mutations/draft-tile-input";
|
|
59
60
|
export * from "./mutations/edition-input";
|
|
60
61
|
export * from "./mutations/edition-upsert-result";
|
|
62
|
+
export * from "./mutations/page-input";
|
|
63
|
+
export * from "./mutations/page-upsert-result";
|
|
61
64
|
export * from "./mutations/puff-input";
|
|
62
65
|
export * from "./mutations/puzzle-input";
|
|
63
66
|
export * from "./mutations/section-input";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { StandardSectionSliceInput } from "./section-input";
|
|
2
|
-
import { URL } from "../common";
|
|
2
|
+
import { URL, Slug, UUID } from "../common";
|
|
3
3
|
export declare type CollectionInput = {
|
|
4
4
|
title: string | null;
|
|
5
5
|
link: CollectionLinkInput;
|
|
6
6
|
slices: StandardSectionSliceInput[];
|
|
7
|
+
topic?: Slug | null;
|
|
8
|
+
id?: UUID | null;
|
|
7
9
|
};
|
|
8
10
|
export declare type CollectionLinkInput = {
|
|
9
11
|
url: URL | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DateTime, Slug, UUID } from "../common";
|
|
2
|
+
import { CollectionInput } from "./collection-input";
|
|
3
|
+
export declare type PageInput = {
|
|
4
|
+
id: UUID;
|
|
5
|
+
title: string;
|
|
6
|
+
titleSeo: string;
|
|
7
|
+
slug: Slug;
|
|
8
|
+
datePublished: DateTime;
|
|
9
|
+
dateUpdated: DateTime;
|
|
10
|
+
description: string;
|
|
11
|
+
socialCardImage: string;
|
|
12
|
+
body: PageBlockInput[];
|
|
13
|
+
};
|
|
14
|
+
export declare type PageBlockInput = {
|
|
15
|
+
collection?: CollectionInput | null;
|
|
16
|
+
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Slug, UUID } from "../common";
|
|
2
|
+
import { Collection } from "./collection";
|
|
3
|
+
export declare type Page = {
|
|
4
|
+
id: UUID;
|
|
5
|
+
title: string;
|
|
6
|
+
titleSeo: string;
|
|
7
|
+
slug: Slug;
|
|
8
|
+
datePublished: Date;
|
|
9
|
+
dateUpdated: Date;
|
|
10
|
+
description: string;
|
|
11
|
+
socialCardImage: string;
|
|
12
|
+
body: Array<PageBlock | null> | null;
|
|
13
|
+
};
|
|
14
|
+
export declare type PageBlock = Collection;
|