Adding mark multiple posts as read, and other API changes.

This commit is contained in:
Dessalines 2023-10-17 11:16:49 -04:00
parent b58fbb51e0
commit 7b6f497c46
7 changed files with 5 additions and 18 deletions

View file

@ -9,6 +9,4 @@ export interface CommentAggregates {
downvotes: /* integer */ number;
published: string;
child_count: number;
hot_rank: number;
controversy_rank: number;
}

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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;
}

View file

@ -3,5 +3,6 @@ import type { PostId } from "./PostId";
export interface MarkPostAsRead {
post_id: PostId;
post_ids: Array<PostId>;
read: boolean;
}

View file

@ -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;
}

View file

@ -27,4 +27,5 @@ export interface SaveUserSettings {
discussion_languages?: Array<LanguageId>;
open_links_in_new_tab?: boolean;
infinite_scroll_enabled?: boolean;
enable_keyboard_navigation?: boolean;
}