diff --git a/src/types/HidePost.ts b/src/types/HidePost.ts index b0a3da9..a5eadb3 100644 --- a/src/types/HidePost.ts +++ b/src/types/HidePost.ts @@ -2,6 +2,6 @@ import type { PostId } from "./PostId"; export interface HidePost { - post_ids: Array; + post_id: PostId; hide: boolean; } diff --git a/src/types/MarkPostAsRead.ts b/src/types/MarkPostAsRead.ts index 979997e..36f0683 100644 --- a/src/types/MarkPostAsRead.ts +++ b/src/types/MarkPostAsRead.ts @@ -2,6 +2,6 @@ import type { PostId } from "./PostId"; export interface MarkPostAsRead { - post_ids: Array; + post_id: PostId; read: boolean; } diff --git a/src/types/Search.ts b/src/types/Search.ts index 5e37d71..7a48fd3 100644 --- a/src/types/Search.ts +++ b/src/types/Search.ts @@ -16,4 +16,8 @@ export interface Search { page?: number; limit?: number; post_title_only?: boolean; + post_url_only?: boolean; + saved_only?: boolean; + liked_only?: boolean; + disliked_only?: boolean; } diff --git a/src/types/SearchType.ts b/src/types/SearchType.ts index 82d9308..a000653 100644 --- a/src/types/SearchType.ts +++ b/src/types/SearchType.ts @@ -1,9 +1,3 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type SearchType = - | "All" - | "Comments" - | "Posts" - | "Communities" - | "Users" - | "Url"; +export type SearchType = "All" | "Comments" | "Posts" | "Communities" | "Users";