Updating types from lemmy main branch. (#234)

This commit is contained in:
Dessalines 2024-01-24 15:38:46 -05:00 committed by GitHub
parent f2868f31de
commit 83a1c677ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 2 additions and 12 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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