mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-01 01:59:55 +00:00
Adding some additions from main. (#171)
This commit is contained in:
parent
2aa12c04a3
commit
c77ee9ee16
9 changed files with 24 additions and 5 deletions
|
@ -186,6 +186,7 @@ export { PersonMention } from "./types/PersonMention";
|
||||||
export { PersonMentionId } from "./types/PersonMentionId";
|
export { PersonMentionId } from "./types/PersonMentionId";
|
||||||
export { PersonMentionResponse } from "./types/PersonMentionResponse";
|
export { PersonMentionResponse } from "./types/PersonMentionResponse";
|
||||||
export { PersonMentionView } from "./types/PersonMentionView";
|
export { PersonMentionView } from "./types/PersonMentionView";
|
||||||
|
export { PersonSortType } from "./types/PersonSortType";
|
||||||
export { PersonView } from "./types/PersonView";
|
export { PersonView } from "./types/PersonView";
|
||||||
export { Post } from "./types/Post";
|
export { Post } from "./types/Post";
|
||||||
export { PostAggregates } from "./types/PostAggregates";
|
export { PostAggregates } from "./types/PostAggregates";
|
||||||
|
|
|
@ -10,4 +10,5 @@ export interface CommentAggregates {
|
||||||
published: string;
|
published: string;
|
||||||
child_count: number;
|
child_count: number;
|
||||||
hot_rank: number;
|
hot_rank: number;
|
||||||
|
controversy_rank: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||||
|
|
||||||
export type CommentSortType = "Hot" | "Top" | "New" | "Old";
|
export type CommentSortType = "Hot" | "Top" | "New" | "Old" | "Controversial";
|
||||||
|
|
|
@ -9,8 +9,6 @@ export interface LocalUser {
|
||||||
person_id: PersonId;
|
person_id: PersonId;
|
||||||
email?: string;
|
email?: string;
|
||||||
show_nsfw: boolean;
|
show_nsfw: boolean;
|
||||||
blur_nsfw: boolean;
|
|
||||||
auto_expand: boolean;
|
|
||||||
theme: string;
|
theme: string;
|
||||||
default_sort_type: SortType;
|
default_sort_type: SortType;
|
||||||
default_listing_type: ListingType;
|
default_listing_type: ListingType;
|
||||||
|
@ -26,4 +24,7 @@ export interface LocalUser {
|
||||||
accepted_application: boolean;
|
accepted_application: boolean;
|
||||||
totp_2fa_url?: string;
|
totp_2fa_url?: string;
|
||||||
open_links_in_new_tab: boolean;
|
open_links_in_new_tab: boolean;
|
||||||
|
blur_nsfw: boolean;
|
||||||
|
auto_expand: boolean;
|
||||||
|
infinite_scroll_enabled: boolean;
|
||||||
}
|
}
|
||||||
|
|
9
src/types/PersonSortType.ts
Normal file
9
src/types/PersonSortType.ts
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||||
|
|
||||||
|
export type PersonSortType =
|
||||||
|
| "New"
|
||||||
|
| "Old"
|
||||||
|
| "MostComments"
|
||||||
|
| "CommentScore"
|
||||||
|
| "PostScore"
|
||||||
|
| "PostCount";
|
|
@ -1,4 +1,6 @@
|
||||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
// 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 { PersonId } from "./PersonId";
|
||||||
import type { PostId } from "./PostId";
|
import type { PostId } from "./PostId";
|
||||||
|
|
||||||
export interface PostAggregates {
|
export interface PostAggregates {
|
||||||
|
@ -15,4 +17,7 @@ export interface PostAggregates {
|
||||||
featured_local: boolean;
|
featured_local: boolean;
|
||||||
hot_rank: number;
|
hot_rank: number;
|
||||||
hot_rank_active: number;
|
hot_rank_active: number;
|
||||||
|
community_id: CommunityId;
|
||||||
|
creator_id: PersonId;
|
||||||
|
controversy_rank: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
|
|
||||||
export interface ResolveObject {
|
export interface ResolveObject {
|
||||||
q: string;
|
q: string;
|
||||||
auth: string;
|
auth: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,4 +28,5 @@ export interface SaveUserSettings {
|
||||||
generate_totp_2fa?: boolean;
|
generate_totp_2fa?: boolean;
|
||||||
auth: string;
|
auth: string;
|
||||||
open_links_in_new_tab?: boolean;
|
open_links_in_new_tab?: boolean;
|
||||||
|
infinite_scroll_enabled?: boolean;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,4 +17,5 @@ export type SortType =
|
||||||
| "TopTwelveHour"
|
| "TopTwelveHour"
|
||||||
| "TopThreeMonths"
|
| "TopThreeMonths"
|
||||||
| "TopSixMonths"
|
| "TopSixMonths"
|
||||||
| "TopNineMonths";
|
| "TopNineMonths"
|
||||||
|
| "Controversial";
|
||||||
|
|
Loading…
Reference in a new issue