@thetimes/times-public-api-types 1.0.11084 → 1.0.11099

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
@@ -75,6 +75,9 @@ export type TemplateArgs = {
75
75
  export type Cursor = string & {
76
76
  _: "Cursor";
77
77
  };
78
+ export type JsonObject = {
79
+ [key: string]: any;
80
+ };
78
81
  export type PageInfo = {
79
82
  startCursor: Cursor | null;
80
83
  endCursor: Cursor | null;
@@ -1,4 +1,4 @@
1
- import { UUID, URL, ShortDate } from "../common";
1
+ import { UUID, URL, ShortDate, JsonObject } from "../common";
2
2
  import { ImageInput } from "./article-input";
3
3
  export type PuzzleInput = {
4
4
  id: UUID;
@@ -15,5 +15,6 @@ export type PuzzleInput = {
15
15
  index?: number | null;
16
16
  variation?: string | null;
17
17
  gameId?: string | null;
18
+ gameData?: JsonObject | null;
18
19
  activeStatus?: boolean | null;
19
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thetimes/times-public-api-types",
3
- "version": "1.0.11084",
3
+ "version": "1.0.11099",
4
4
  "description": "",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",
@@ -1,4 +1,4 @@
1
- import { UUID, URL, ShortDate } from "../common";
1
+ import { UUID, URL, ShortDate, JsonObject } from "../common";
2
2
  import { Image } from "./media";
3
3
  export type Puzzle = {
4
4
  id: UUID;
@@ -15,5 +15,6 @@ export type Puzzle = {
15
15
  index?: number | null;
16
16
  variation?: string | null;
17
17
  gameId?: string | null;
18
+ gameData?: JsonObject | null;
18
19
  activeStatus?: boolean | null;
19
20
  };
package/queries/user.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { ID } from "../common";
1
2
  import { PageOfBookmarks } from "./bookmark";
2
3
  export type User = {
3
4
  spotimCodeB: (args: {
@@ -11,4 +12,9 @@ export type User = {
11
12
  first: number;
12
13
  skip: number;
13
14
  }) => PageOfBookmarks;
15
+ recommendedArticles: (args: {
16
+ articleId?: ID;
17
+ }) => Array<{
18
+ id: ID;
19
+ }>;
14
20
  };