mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-23 03:11:26 +00:00
Updating types from lemmy main branch. (#234)
This commit is contained in:
parent
f2868f31de
commit
83a1c677ae
8 changed files with 2 additions and 12 deletions
|
@ -19,5 +19,4 @@ export interface Community {
|
||||||
hidden: boolean;
|
hidden: boolean;
|
||||||
posting_restricted_to_mods: boolean;
|
posting_restricted_to_mods: boolean;
|
||||||
instance_id: InstanceId;
|
instance_id: InstanceId;
|
||||||
only_followers_can_vote: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,5 +11,4 @@ export interface CommunityAggregates {
|
||||||
users_active_week: /* integer */ number;
|
users_active_week: /* integer */ number;
|
||||||
users_active_month: /* integer */ number;
|
users_active_month: /* integer */ number;
|
||||||
users_active_half_year: /* integer */ number;
|
users_active_half_year: /* integer */ number;
|
||||||
subscribers_local: /* integer */ number;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,4 @@ export interface CreateCommunity {
|
||||||
nsfw?: boolean;
|
nsfw?: boolean;
|
||||||
posting_restricted_to_mods?: boolean;
|
posting_restricted_to_mods?: boolean;
|
||||||
discussion_languages?: Array<LanguageId>;
|
discussion_languages?: Array<LanguageId>;
|
||||||
local_only?: boolean;
|
|
||||||
only_followers_can_vote?: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,6 +43,4 @@ export interface CreateSite {
|
||||||
blocked_instances?: Array<string>;
|
blocked_instances?: Array<string>;
|
||||||
taglines?: Array<string>;
|
taglines?: Array<string>;
|
||||||
registration_mode?: RegistrationMode;
|
registration_mode?: RegistrationMode;
|
||||||
content_warning?: string;
|
|
||||||
auto_expand_images?: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,4 @@ export interface EditCommunity {
|
||||||
nsfw?: boolean;
|
nsfw?: boolean;
|
||||||
posting_restricted_to_mods?: boolean;
|
posting_restricted_to_mods?: boolean;
|
||||||
discussion_languages?: Array<LanguageId>;
|
discussion_languages?: Array<LanguageId>;
|
||||||
local_only?: boolean;
|
|
||||||
only_followers_can_vote?: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,6 +44,4 @@ export interface EditSite {
|
||||||
taglines?: Array<string>;
|
taglines?: Array<string>;
|
||||||
registration_mode?: RegistrationMode;
|
registration_mode?: RegistrationMode;
|
||||||
reports_email_admins?: boolean;
|
reports_email_admins?: boolean;
|
||||||
content_warning?: string;
|
|
||||||
auto_expand_images?: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,9 +3,11 @@ import type { CommentView } from "./CommentView";
|
||||||
import type { CommunityModeratorView } from "./CommunityModeratorView";
|
import type { CommunityModeratorView } from "./CommunityModeratorView";
|
||||||
import type { PersonView } from "./PersonView";
|
import type { PersonView } from "./PersonView";
|
||||||
import type { PostView } from "./PostView";
|
import type { PostView } from "./PostView";
|
||||||
|
import type { Site } from "./Site";
|
||||||
|
|
||||||
export interface GetPersonDetailsResponse {
|
export interface GetPersonDetailsResponse {
|
||||||
person_view: PersonView;
|
person_view: PersonView;
|
||||||
|
site?: Site;
|
||||||
comments: Array<CommentView>;
|
comments: Array<CommentView>;
|
||||||
posts: Array<PostView>;
|
posts: Array<PostView>;
|
||||||
moderates: Array<CommunityModeratorView>;
|
moderates: Array<CommunityModeratorView>;
|
||||||
|
|
|
@ -29,6 +29,4 @@ export interface LocalSite {
|
||||||
registration_mode: RegistrationMode;
|
registration_mode: RegistrationMode;
|
||||||
reports_email_admins: boolean;
|
reports_email_admins: boolean;
|
||||||
federation_signed_fetch: boolean;
|
federation_signed_fetch: boolean;
|
||||||
content_warning?: string;
|
|
||||||
auto_expand_images: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue