@thetimes/times-public-api-types 1.0.6328 → 1.0.6356

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thetimes/times-public-api-types",
3
- "version": "1.0.6328",
3
+ "version": "1.0.6356",
4
4
  "description": "",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",
@@ -1,10 +1,15 @@
1
1
  import { UUID, Slug, CategoryType } from "../common";
2
+ import { Article } from "./article";
2
3
  export type ParentCategory = {
3
4
  id: UUID;
4
5
  title: string;
5
6
  slug: Slug;
6
7
  parent: ParentCategory | null;
7
8
  };
9
+ export type CategoryArticles = {
10
+ count: number;
11
+ list: Article[];
12
+ };
8
13
  export type Category = {
9
14
  id: UUID;
10
15
  title: string;
@@ -19,4 +24,9 @@ export type HierarchyCategory = {
19
24
  title: string;
20
25
  slug: Slug;
21
26
  parent: ParentCategory | null;
27
+ articles: CategoryArticles;
28
+ };
29
+ export type CategoryArticleIds = {
30
+ ids: UUID[];
31
+ count: number;
22
32
  };
@@ -72,4 +72,8 @@ export type CategoriesArgs = CursorPaginationArgs & {
72
72
  ids?: UUID[];
73
73
  term?: string;
74
74
  };
75
+ export type CategoryArgs = {
76
+ slug?: Slug;
77
+ id?: UUID;
78
+ };
75
79
  export {};