Merge branch 'main' into update-types

This commit is contained in:
Felix Ableitner 2024-01-25 12:56:38 +01:00
commit 9d09e28f49
9 changed files with 2 additions and 12 deletions

View file

@ -1,4 +1,4 @@
pipeline: steps:
yarn: yarn:
image: node:alpine image: node:alpine
commands: commands:

View file

@ -20,6 +20,5 @@ 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;
visibility: CommunityVisibility; visibility: CommunityVisibility;
} }

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

@ -11,6 +11,5 @@ 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>;
only_followers_can_vote?: boolean;
visibility?: CommunityVisibility; visibility?: CommunityVisibility;
} }

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

@ -12,6 +12,5 @@ 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>;
only_followers_can_vote?: boolean;
visibility?: CommunityVisibility; visibility?: CommunityVisibility;
} }

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

@ -7,7 +7,7 @@ import type { Site } from "./Site";
export interface GetPersonDetailsResponse { export interface GetPersonDetailsResponse {
person_view: PersonView; person_view: PersonView;
site: Site | null; 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;
} }