From 7b6f497c46e755f5e091fdf5498ab34c1f2ccad9 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 17 Oct 2023 11:16:49 -0400 Subject: [PATCH] Adding mark multiple posts as read, and other API changes. --- src/types/CommentAggregates.ts | 2 -- src/types/CommunityAggregates.ts | 1 - src/types/LocalSiteRateLimit.ts | 2 ++ src/types/LocalUser.ts | 2 +- src/types/MarkPostAsRead.ts | 1 + src/types/PostAggregates.ts | 14 -------------- src/types/SaveUserSettings.ts | 1 + 7 files changed, 5 insertions(+), 18 deletions(-) diff --git a/src/types/CommentAggregates.ts b/src/types/CommentAggregates.ts index 4b8e826..1fe6d88 100644 --- a/src/types/CommentAggregates.ts +++ b/src/types/CommentAggregates.ts @@ -9,6 +9,4 @@ export interface CommentAggregates { downvotes: /* integer */ number; published: string; child_count: number; - hot_rank: number; - controversy_rank: number; } diff --git a/src/types/CommunityAggregates.ts b/src/types/CommunityAggregates.ts index a7dbb56..1a5dd5d 100644 --- a/src/types/CommunityAggregates.ts +++ b/src/types/CommunityAggregates.ts @@ -12,5 +12,4 @@ export interface CommunityAggregates { users_active_week: /* integer */ number; users_active_month: /* integer */ number; users_active_half_year: /* integer */ number; - hot_rank: number; } diff --git a/src/types/LocalSiteRateLimit.ts b/src/types/LocalSiteRateLimit.ts index f7fd26c..a05ded6 100644 --- a/src/types/LocalSiteRateLimit.ts +++ b/src/types/LocalSiteRateLimit.ts @@ -18,4 +18,6 @@ export interface LocalSiteRateLimit { search_per_second: number; published: string; updated?: string; + import_user_settings: number; + import_user_settings_per_second: number; } diff --git a/src/types/LocalUser.ts b/src/types/LocalUser.ts index a9321e9..93fa7dd 100644 --- a/src/types/LocalUser.ts +++ b/src/types/LocalUser.ts @@ -19,7 +19,6 @@ export interface LocalUser { show_scores: boolean; show_bot_accounts: boolean; show_read_posts: boolean; - show_new_post_notifs: boolean; email_verified: boolean; accepted_application: boolean; open_links_in_new_tab: boolean; @@ -29,4 +28,5 @@ export interface LocalUser { admin: boolean; post_listing_mode: PostListingMode; totp_2fa_enabled: boolean; + enable_keyboard_navigation: boolean; } diff --git a/src/types/MarkPostAsRead.ts b/src/types/MarkPostAsRead.ts index 36f0683..51e7ba1 100644 --- a/src/types/MarkPostAsRead.ts +++ b/src/types/MarkPostAsRead.ts @@ -3,5 +3,6 @@ import type { PostId } from "./PostId"; export interface MarkPostAsRead { post_id: PostId; + post_ids: Array; read: boolean; } diff --git a/src/types/PostAggregates.ts b/src/types/PostAggregates.ts index 690164a..dfbdf00 100644 --- a/src/types/PostAggregates.ts +++ b/src/types/PostAggregates.ts @@ -1,7 +1,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { CommunityId } from "./CommunityId"; -import type { InstanceId } from "./InstanceId"; -import type { PersonId } from "./PersonId"; import type { PostId } from "./PostId"; export interface PostAggregates { @@ -12,15 +9,4 @@ export interface PostAggregates { upvotes: /* integer */ number; downvotes: /* integer */ number; published: string; - newest_comment_time_necro: string; - newest_comment_time: string; - featured_community: boolean; - featured_local: boolean; - hot_rank: number; - hot_rank_active: number; - community_id: CommunityId; - creator_id: PersonId; - controversy_rank: number; - instance_id: InstanceId; - scaled_rank: number; } diff --git a/src/types/SaveUserSettings.ts b/src/types/SaveUserSettings.ts index fb9e89f..e4d0e74 100644 --- a/src/types/SaveUserSettings.ts +++ b/src/types/SaveUserSettings.ts @@ -27,4 +27,5 @@ export interface SaveUserSettings { discussion_languages?: Array; open_links_in_new_tab?: boolean; infinite_scroll_enabled?: boolean; + enable_keyboard_navigation?: boolean; }