mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-23 03:11:26 +00:00
Mod transfer community (#25)
* Adding ModTransferCommunity to API * v0.11.4-rc.10
This commit is contained in:
parent
768d930592
commit
0c63a87707
4 changed files with 20 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "lemmy-js-client",
|
||||
"description": "A javascript / typescript client for Lemmy",
|
||||
"version": "0.11.3-rc.4",
|
||||
"version": "0.11.4-rc.10",
|
||||
"author": "Dessalines <tyhou13@gmx.com>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "./dist/index.js",
|
||||
|
|
|
@ -3,6 +3,7 @@ import {
|
|||
CommentView,
|
||||
CommunityView,
|
||||
ModAddCommunityView,
|
||||
ModTransferCommunityView,
|
||||
ModAddView,
|
||||
ModBanFromCommunityView,
|
||||
ModBanView,
|
||||
|
@ -56,6 +57,7 @@ export interface GetModlogResponse {
|
|||
banned_from_community: ModBanFromCommunityView[];
|
||||
banned: ModBanView[];
|
||||
added_to_community: ModAddCommunityView[];
|
||||
transferred_to_community: ModTransferCommunityView[];
|
||||
added: ModAddView[];
|
||||
}
|
||||
|
||||
|
|
|
@ -181,6 +181,15 @@ export interface ModAddCommunity {
|
|||
when_: string;
|
||||
}
|
||||
|
||||
export interface ModTransferCommunity {
|
||||
id: number;
|
||||
mod_person_id: number;
|
||||
other_person_id: number;
|
||||
community_id: number;
|
||||
removed?: boolean;
|
||||
when_: string;
|
||||
}
|
||||
|
||||
export interface ModAdd {
|
||||
id: number;
|
||||
mod_person_id: number;
|
||||
|
|
|
@ -11,6 +11,7 @@ import {
|
|||
CommunitySafe,
|
||||
ModAdd,
|
||||
ModAddCommunity,
|
||||
ModTransferCommunity,
|
||||
ModBan,
|
||||
ModBanFromCommunity,
|
||||
ModLockPost,
|
||||
|
@ -115,6 +116,13 @@ export interface ModAddCommunityView {
|
|||
modded_person: PersonSafe;
|
||||
}
|
||||
|
||||
export interface ModTransferCommunityView {
|
||||
mod_transfer_community: ModTransferCommunity;
|
||||
moderator: PersonSafe;
|
||||
community: CommunitySafe;
|
||||
modded_person: PersonSafe;
|
||||
}
|
||||
|
||||
export interface ModAddView {
|
||||
mod_add: ModAdd;
|
||||
moderator: PersonSafe;
|
||||
|
|
Loading…
Reference in a new issue