Add language to collection payload (#38961)
This commit is contained in:
1 parent
658ad9f57e
commit
86e4ecfa20
3 files changed
+47
-29
No files matched your search
@@ -48,10 +48,10 @@ interface InitialStateMeta {
|
||||
status_page_url: string;
|
||||
terms_of_service_enabled: boolean;
|
||||
emoji_style?: string;
|
||||
wrapstodon?: InitialWrapstodonState | null;
|
||||
wrapstodon?: InitialStateWrapstodon | null;
|
||||
}
|
||||
|
||||
interface Role {
|
||||
interface IntialStateRole {
|
||||
id: string;
|
||||
name: string;
|
||||
permissions: string;
|
||||
@@ -60,17 +60,27 @@ interface Role {
|
||||
collection_limit: number;
|
||||
}
|
||||
|
||||
interface InitialWrapstodonState {
|
||||
interface InitialStateWrapstodon {
|
||||
year: number;
|
||||
state: ApiAnnualReportState;
|
||||
}
|
||||
|
||||
interface InitialStateCompose {
|
||||
text: string;
|
||||
default_privacy?: string;
|
||||
default_sensitive?: boolean;
|
||||
default_language?: string;
|
||||
default_quote_policy?: string;
|
||||
me?: string;
|
||||
}
|
||||
|
||||
export interface InitialState {
|
||||
accounts: Record<string, ApiAccountJSON>;
|
||||
languages: InitialStateLanguage[];
|
||||
compose: InitialStateCompose;
|
||||
critical_updates_pending?: boolean;
|
||||
meta: InitialStateMeta;
|
||||
role?: Role;
|
||||
role?: IntialStateRole;
|
||||
features: string[];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user