Updating moderator_view.

This commit is contained in:
Dessalines 2023-08-29 15:53:23 -04:00
parent f165ef6538
commit 973b255c82
12 changed files with 13 additions and 9 deletions

View file

@ -23,8 +23,8 @@ async function putTypesInIndex() {
exports.push(
`export {${spacer}${localExports.join(
",\n"
)}${spacer}} from "./types/${filename.replace(/\..+/, "")}";`
",\n",
)}${spacer}} from "./types/${filename.replace(/\..+/, "")}";`,
);
}

View file

@ -1,8 +1,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { PersonId } from "./PersonId";
import type { LocalUserId } from "./LocalUserId";
export interface AddAdmin {
person_id: PersonId;
local_user_id: LocalUserId;
added: boolean;
auth: string;
}

View file

@ -5,5 +5,4 @@ import type { LocalUserId } from "./LocalUserId";
export interface CommentResponse {
comment_view: CommentView;
recipient_ids: Array<LocalUserId>;
form_id?: string;
}

View file

@ -8,6 +8,5 @@ export interface CreateComment {
post_id: PostId;
parent_id?: CommentId;
language_id?: LanguageId;
form_id?: string;
auth: string;
}

View file

@ -2,5 +2,6 @@
export interface DeleteAccount {
password: string;
delete_content: boolean;
auth: string;
}

View file

@ -6,6 +6,5 @@ export interface EditComment {
comment_id: CommentId;
content?: string;
language_id?: LanguageId;
form_id?: string;
auth: string;
}

View file

@ -16,5 +16,7 @@ export interface GetComments {
post_id?: PostId;
parent_id?: CommentId;
saved_only?: boolean;
liked_only?: boolean;
disliked_only?: boolean;
auth?: string;
}

View file

@ -11,5 +11,7 @@ export interface GetPosts {
community_id?: CommunityId;
community_name?: string;
saved_only?: boolean;
liked_only?: boolean;
disliked_only?: boolean;
auth?: string;
}

View file

@ -1,8 +1,10 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { PersonId } from "./PersonId";
export interface GetPrivateMessages {
unread_only?: boolean;
page?: number;
limit?: number;
creator_id?: PersonId;
auth: string;
}

View file

@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ListingType = "All" | "Local" | "Subscribed" | "Moderator View";
export type ListingType = "All" | "Local" | "Subscribed" | "ModeratorView";

View file

@ -27,4 +27,5 @@ export interface LocalUser {
blur_nsfw: boolean;
auto_expand: boolean;
infinite_scroll_enabled: boolean;
admin: boolean;
}

View file

@ -17,7 +17,6 @@ export interface Person {
deleted: boolean;
inbox_url: string;
matrix_user_id?: string;
admin: boolean;
bot_account: boolean;
ban_expires?: string;
instance_id: InstanceId;