mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-23 03:11:26 +00:00
Merge pull request #177 from LemmyNet/update_moderator_view
Updating moderator_view.
This commit is contained in:
commit
e487c34176
13 changed files with 14 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "lemmy-js-client",
|
"name": "lemmy-js-client",
|
||||||
"version": "0.19.0-rc.1",
|
"version": "0.19.0-rc.3",
|
||||||
"description": "A javascript / typescript client for Lemmy",
|
"description": "A javascript / typescript client for Lemmy",
|
||||||
"repository": "https://github.com/LemmyNet/lemmy-js-client",
|
"repository": "https://github.com/LemmyNet/lemmy-js-client",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
|
|
|
@ -23,8 +23,8 @@ async function putTypesInIndex() {
|
||||||
|
|
||||||
exports.push(
|
exports.push(
|
||||||
`export {${spacer}${localExports.join(
|
`export {${spacer}${localExports.join(
|
||||||
",\n"
|
",\n",
|
||||||
)}${spacer}} from "./types/${filename.replace(/\..+/, "")}";`
|
)}${spacer}} from "./types/${filename.replace(/\..+/, "")}";`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
// 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 {
|
export interface AddAdmin {
|
||||||
person_id: PersonId;
|
local_user_id: LocalUserId;
|
||||||
added: boolean;
|
added: boolean;
|
||||||
auth: string;
|
auth: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,5 +5,4 @@ import type { LocalUserId } from "./LocalUserId";
|
||||||
export interface CommentResponse {
|
export interface CommentResponse {
|
||||||
comment_view: CommentView;
|
comment_view: CommentView;
|
||||||
recipient_ids: Array<LocalUserId>;
|
recipient_ids: Array<LocalUserId>;
|
||||||
form_id?: string;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,5 @@ export interface CreateComment {
|
||||||
post_id: PostId;
|
post_id: PostId;
|
||||||
parent_id?: CommentId;
|
parent_id?: CommentId;
|
||||||
language_id?: LanguageId;
|
language_id?: LanguageId;
|
||||||
form_id?: string;
|
|
||||||
auth: string;
|
auth: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
|
|
||||||
export interface DeleteAccount {
|
export interface DeleteAccount {
|
||||||
password: string;
|
password: string;
|
||||||
|
delete_content: boolean;
|
||||||
auth: string;
|
auth: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,5 @@ export interface EditComment {
|
||||||
comment_id: CommentId;
|
comment_id: CommentId;
|
||||||
content?: string;
|
content?: string;
|
||||||
language_id?: LanguageId;
|
language_id?: LanguageId;
|
||||||
form_id?: string;
|
|
||||||
auth: string;
|
auth: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,5 +16,7 @@ export interface GetComments {
|
||||||
post_id?: PostId;
|
post_id?: PostId;
|
||||||
parent_id?: CommentId;
|
parent_id?: CommentId;
|
||||||
saved_only?: boolean;
|
saved_only?: boolean;
|
||||||
|
liked_only?: boolean;
|
||||||
|
disliked_only?: boolean;
|
||||||
auth?: string;
|
auth?: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,5 +11,7 @@ export interface GetPosts {
|
||||||
community_id?: CommunityId;
|
community_id?: CommunityId;
|
||||||
community_name?: string;
|
community_name?: string;
|
||||||
saved_only?: boolean;
|
saved_only?: boolean;
|
||||||
|
liked_only?: boolean;
|
||||||
|
disliked_only?: boolean;
|
||||||
auth?: string;
|
auth?: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
// 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 {
|
export interface GetPrivateMessages {
|
||||||
unread_only?: boolean;
|
unread_only?: boolean;
|
||||||
page?: number;
|
page?: number;
|
||||||
limit?: number;
|
limit?: number;
|
||||||
|
creator_id?: PersonId;
|
||||||
auth: string;
|
auth: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
// 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";
|
||||||
|
|
|
@ -27,4 +27,5 @@ export interface LocalUser {
|
||||||
blur_nsfw: boolean;
|
blur_nsfw: boolean;
|
||||||
auto_expand: boolean;
|
auto_expand: boolean;
|
||||||
infinite_scroll_enabled: boolean;
|
infinite_scroll_enabled: boolean;
|
||||||
|
admin: boolean;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,6 @@ export interface Person {
|
||||||
deleted: boolean;
|
deleted: boolean;
|
||||||
inbox_url: string;
|
inbox_url: string;
|
||||||
matrix_user_id?: string;
|
matrix_user_id?: string;
|
||||||
admin: boolean;
|
|
||||||
bot_account: boolean;
|
bot_account: boolean;
|
||||||
ban_expires?: string;
|
ban_expires?: string;
|
||||||
instance_id: InstanceId;
|
instance_id: InstanceId;
|
||||||
|
|
Loading…
Reference in a new issue