lemmy-js-client 1.0.0-bool-vote.2 → 1.0.0-change-api-routes.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/http.d.ts +4 -5
- package/dist/http.js +29 -28
- package/dist/index.d.ts +11 -59
- package/dist/index.js +3 -0
- package/dist/other_types.d.ts +3 -0
- package/dist/types/AuthenticateWithOauth.d.ts +4 -0
- package/dist/types/ChangePassword.d.ts +4 -0
- package/dist/types/CommunityActions.d.ts +4 -4
- package/dist/types/CreateCommentLike.d.ts +3 -0
- package/dist/types/CreatePostLike.d.ts +3 -0
- package/dist/types/FederatedInstanceView.d.ts +12 -0
- package/dist/types/FederationAllowList.d.ts +4 -0
- package/dist/types/FederationBlockList.d.ts +0 -2
- package/dist/types/FederationBlockList.js +1 -0
- package/dist/types/FederationQueueState.d.ts +18 -0
- package/dist/types/GetFederatedInstances.d.ts +9 -0
- package/dist/types/GetFederatedInstancesKind.d.ts +1 -0
- package/dist/types/GetFederatedInstancesResponse.d.ts +5 -5
- package/dist/types/GetModlog.d.ts +2 -2
- package/dist/types/GetModlogResponse.d.ts +2 -2
- package/dist/types/GetPosts.d.ts +1 -0
- package/dist/types/Login.d.ts +4 -0
- package/dist/types/MarkManyPostsAsRead.d.ts +1 -0
- package/dist/types/Modlog.d.ts +10 -0
- package/dist/types/ModlogId.d.ts +1 -0
- package/dist/types/ModlogKind.d.ts +4 -0
- package/dist/types/ModlogView.d.ts +15 -0
- package/dist/types/MultiCommunityEntry.d.ts +6 -0
- package/dist/types/Notification.d.ts +2 -20
- package/dist/types/NotificationData.d.ts +6 -33
- package/dist/types/PersonContentCombinedView.d.ts +2 -2
- package/dist/types/PersonLikedCombinedView.d.ts +2 -2
- package/dist/types/PersonSavedCombinedView.d.ts +2 -2
- package/dist/types/PostOrCommentOrPrivateMessage.d.ts +3 -3
- package/dist/types/Register.d.ts +4 -0
- package/dist/types/ReportCombinedView.d.ts +4 -4
- package/dist/types/SearchCombinedView.d.ts +5 -5
- package/dist/types/UntranslatedError.d.ts +3 -1
- package/dist/types/UserSettingsBackup.d.ts +2 -0
- package/dist/types/VoteView.d.ts +3 -0
- package/package.json +4 -4
- package/dist/types/AdminAdd.d.ts +0 -12
- package/dist/types/AdminAddId.d.ts +0 -1
- package/dist/types/AdminAddView.d.ts +0 -10
- package/dist/types/AdminAllowInstance.d.ts +0 -11
- package/dist/types/AdminAllowInstanceId.d.ts +0 -1
- package/dist/types/AdminAllowInstanceView.d.ts +0 -11
- package/dist/types/AdminBan.d.ts +0 -16
- package/dist/types/AdminBanId.d.ts +0 -1
- package/dist/types/AdminBanView.d.ts +0 -10
- package/dist/types/AdminBlockInstance.d.ts +0 -12
- package/dist/types/AdminBlockInstance.js +0 -2
- package/dist/types/AdminBlockInstanceId.d.ts +0 -1
- package/dist/types/AdminBlockInstanceView.d.ts +0 -11
- package/dist/types/AdminBlockInstanceView.js +0 -2
- package/dist/types/AdminPurgeComment.d.ts +0 -13
- package/dist/types/AdminPurgeComment.js +0 -2
- package/dist/types/AdminPurgeCommentId.d.ts +0 -1
- package/dist/types/AdminPurgeCommentId.js +0 -3
- package/dist/types/AdminPurgeCommentView.d.ts +0 -11
- package/dist/types/AdminPurgeCommentView.js +0 -2
- package/dist/types/AdminPurgeCommunity.d.ts +0 -11
- package/dist/types/AdminPurgeCommunity.js +0 -2
- package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
- package/dist/types/AdminPurgeCommunityId.js +0 -3
- package/dist/types/AdminPurgeCommunityView.d.ts +0 -9
- package/dist/types/AdminPurgeCommunityView.js +0 -2
- package/dist/types/AdminPurgePerson.d.ts +0 -11
- package/dist/types/AdminPurgePerson.js +0 -2
- package/dist/types/AdminPurgePersonId.d.ts +0 -1
- package/dist/types/AdminPurgePersonId.js +0 -3
- package/dist/types/AdminPurgePersonView.d.ts +0 -9
- package/dist/types/AdminPurgePersonView.js +0 -2
- package/dist/types/AdminPurgePost.d.ts +0 -13
- package/dist/types/AdminPurgePost.js +0 -2
- package/dist/types/AdminPurgePostId.d.ts +0 -1
- package/dist/types/AdminPurgePostId.js +0 -3
- package/dist/types/AdminPurgePostView.d.ts +0 -11
- package/dist/types/AdminPurgePostView.js +0 -2
- package/dist/types/AdminRemoveCommunity.d.ts +0 -14
- package/dist/types/AdminRemoveCommunity.js +0 -2
- package/dist/types/AdminRemoveCommunityId.d.ts +0 -1
- package/dist/types/AdminRemoveCommunityId.js +0 -3
- package/dist/types/AdminRemoveCommunityView.d.ts +0 -11
- package/dist/types/AdminRemoveCommunityView.js +0 -2
- package/dist/types/BanFromCommunityResponse.d.ts +0 -8
- package/dist/types/BanFromCommunityResponse.js +0 -2
- package/dist/types/FederatedInstances.d.ts +0 -9
- package/dist/types/FederatedInstances.js +0 -2
- package/dist/types/ModAddToCommunity.d.ts +0 -14
- package/dist/types/ModAddToCommunity.js +0 -2
- package/dist/types/ModAddToCommunityId.d.ts +0 -1
- package/dist/types/ModAddToCommunityId.js +0 -3
- package/dist/types/ModAddToCommunityView.d.ts +0 -12
- package/dist/types/ModAddToCommunityView.js +0 -2
- package/dist/types/ModBanFromCommunity.d.ts +0 -16
- package/dist/types/ModBanFromCommunity.js +0 -2
- package/dist/types/ModBanFromCommunityId.d.ts +0 -1
- package/dist/types/ModBanFromCommunityId.js +0 -3
- package/dist/types/ModBanFromCommunityView.d.ts +0 -12
- package/dist/types/ModBanFromCommunityView.js +0 -2
- package/dist/types/ModChangeCommunityVisibility.d.ts +0 -11
- package/dist/types/ModChangeCommunityVisibility.js +0 -2
- package/dist/types/ModChangeCommunityVisibilityId.d.ts +0 -1
- package/dist/types/ModChangeCommunityVisibilityId.js +0 -3
- package/dist/types/ModChangeCommunityVisibilityView.d.ts +0 -11
- package/dist/types/ModChangeCommunityVisibilityView.js +0 -2
- package/dist/types/ModFeaturePost.d.ts +0 -14
- package/dist/types/ModFeaturePost.js +0 -2
- package/dist/types/ModFeaturePostId.d.ts +0 -1
- package/dist/types/ModFeaturePostId.js +0 -3
- package/dist/types/ModFeaturePostView.d.ts +0 -14
- package/dist/types/ModFeaturePostView.js +0 -2
- package/dist/types/ModLockComment.d.ts +0 -14
- package/dist/types/ModLockComment.js +0 -2
- package/dist/types/ModLockCommentId.d.ts +0 -1
- package/dist/types/ModLockCommentId.js +0 -3
- package/dist/types/ModLockCommentView.d.ts +0 -16
- package/dist/types/ModLockCommentView.js +0 -2
- package/dist/types/ModLockPost.d.ts +0 -14
- package/dist/types/ModLockPost.js +0 -2
- package/dist/types/ModLockPostId.d.ts +0 -1
- package/dist/types/ModLockPostId.js +0 -3
- package/dist/types/ModLockPostView.d.ts +0 -14
- package/dist/types/ModLockPostView.js +0 -2
- package/dist/types/ModRemoveComment.d.ts +0 -14
- package/dist/types/ModRemoveComment.js +0 -2
- package/dist/types/ModRemoveCommentId.d.ts +0 -1
- package/dist/types/ModRemoveCommentId.js +0 -3
- package/dist/types/ModRemoveCommentView.d.ts +0 -16
- package/dist/types/ModRemoveCommentView.js +0 -2
- package/dist/types/ModRemovePost.d.ts +0 -14
- package/dist/types/ModRemovePost.js +0 -2
- package/dist/types/ModRemovePostId.d.ts +0 -1
- package/dist/types/ModRemovePostId.js +0 -3
- package/dist/types/ModRemovePostView.d.ts +0 -14
- package/dist/types/ModRemovePostView.js +0 -2
- package/dist/types/ModTransferCommunity.d.ts +0 -13
- package/dist/types/ModTransferCommunity.js +0 -2
- package/dist/types/ModTransferCommunityId.d.ts +0 -1
- package/dist/types/ModTransferCommunityId.js +0 -3
- package/dist/types/ModTransferCommunityView.d.ts +0 -12
- package/dist/types/ModTransferCommunityView.js +0 -2
- package/dist/types/ModlogActionType.d.ts +0 -4
- package/dist/types/ModlogActionType.js +0 -3
- package/dist/types/ModlogCombinedView.d.ts +0 -55
- package/dist/types/ModlogCombinedView.js +0 -2
- /package/dist/types/{AdminAdd.js → FederatedInstanceView.js} +0 -0
- /package/dist/types/{AdminAddId.js → FederationAllowList.js} +0 -0
- /package/dist/types/{AdminAddView.js → FederationQueueState.js} +0 -0
- /package/dist/types/{AdminAllowInstance.js → GetFederatedInstances.js} +0 -0
- /package/dist/types/{AdminAllowInstanceId.js → GetFederatedInstancesKind.js} +0 -0
- /package/dist/types/{AdminAllowInstanceView.js → Modlog.js} +0 -0
- /package/dist/types/{AdminBanId.js → ModlogId.js} +0 -0
- /package/dist/types/{AdminBlockInstanceId.js → ModlogKind.js} +0 -0
- /package/dist/types/{AdminBan.js → ModlogView.js} +0 -0
- /package/dist/types/{AdminBanView.js → MultiCommunityEntry.js} +0 -0
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { CommunityId } from "./CommunityId";
|
|
2
|
-
import type { ModAddToCommunityId } from "./ModAddToCommunityId";
|
|
3
|
-
import type { PersonId } from "./PersonId";
|
|
4
|
-
/**
|
|
5
|
-
* When someone is added as a community moderator.
|
|
6
|
-
*/
|
|
7
|
-
export type ModAddToCommunity = {
|
|
8
|
-
id: ModAddToCommunityId;
|
|
9
|
-
mod_person_id: PersonId;
|
|
10
|
-
other_person_id: PersonId;
|
|
11
|
-
community_id: CommunityId;
|
|
12
|
-
removed: boolean;
|
|
13
|
-
published_at: string;
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ModAddToCommunityId = number;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Community } from "./Community";
|
|
2
|
-
import type { ModAddToCommunity } from "./ModAddToCommunity";
|
|
3
|
-
import type { Person } from "./Person";
|
|
4
|
-
/**
|
|
5
|
-
* When someone is added as a community moderator.
|
|
6
|
-
*/
|
|
7
|
-
export type ModAddToCommunityView = {
|
|
8
|
-
mod_add_to_community: ModAddToCommunity;
|
|
9
|
-
moderator?: Person;
|
|
10
|
-
community: Community;
|
|
11
|
-
other_person: Person;
|
|
12
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { CommunityId } from "./CommunityId";
|
|
2
|
-
import type { ModBanFromCommunityId } from "./ModBanFromCommunityId";
|
|
3
|
-
import type { PersonId } from "./PersonId";
|
|
4
|
-
/**
|
|
5
|
-
* When someone is banned from a community.
|
|
6
|
-
*/
|
|
7
|
-
export type ModBanFromCommunity = {
|
|
8
|
-
id: ModBanFromCommunityId;
|
|
9
|
-
mod_person_id: PersonId;
|
|
10
|
-
other_person_id: PersonId;
|
|
11
|
-
community_id: CommunityId;
|
|
12
|
-
reason: string;
|
|
13
|
-
banned: boolean;
|
|
14
|
-
expires_at?: string;
|
|
15
|
-
published_at: string;
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ModBanFromCommunityId = number;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Community } from "./Community";
|
|
2
|
-
import type { ModBanFromCommunity } from "./ModBanFromCommunity";
|
|
3
|
-
import type { Person } from "./Person";
|
|
4
|
-
/**
|
|
5
|
-
* When someone is banned from a community.
|
|
6
|
-
*/
|
|
7
|
-
export type ModBanFromCommunityView = {
|
|
8
|
-
mod_ban_from_community: ModBanFromCommunity;
|
|
9
|
-
moderator?: Person;
|
|
10
|
-
community: Community;
|
|
11
|
-
other_person: Person;
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { CommunityId } from "./CommunityId";
|
|
2
|
-
import type { CommunityVisibility } from "./CommunityVisibility";
|
|
3
|
-
import type { ModChangeCommunityVisibilityId } from "./ModChangeCommunityVisibilityId";
|
|
4
|
-
import type { PersonId } from "./PersonId";
|
|
5
|
-
export type ModChangeCommunityVisibility = {
|
|
6
|
-
id: ModChangeCommunityVisibilityId;
|
|
7
|
-
community_id: CommunityId;
|
|
8
|
-
mod_person_id: PersonId;
|
|
9
|
-
published_at: string;
|
|
10
|
-
visibility: CommunityVisibility;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ModChangeCommunityVisibilityId = number;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Community } from "./Community";
|
|
2
|
-
import type { ModChangeCommunityVisibility } from "./ModChangeCommunityVisibility";
|
|
3
|
-
import type { Person } from "./Person";
|
|
4
|
-
/**
|
|
5
|
-
* When the visibility of a community is changed
|
|
6
|
-
*/
|
|
7
|
-
export type ModChangeCommunityVisibilityView = {
|
|
8
|
-
mod_change_community_visibility: ModChangeCommunityVisibility;
|
|
9
|
-
moderator?: Person;
|
|
10
|
-
community: Community;
|
|
11
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ModFeaturePostId } from "./ModFeaturePostId";
|
|
2
|
-
import type { PersonId } from "./PersonId";
|
|
3
|
-
import type { PostId } from "./PostId";
|
|
4
|
-
/**
|
|
5
|
-
* When a moderator features a post on a community (pins it to the top).
|
|
6
|
-
*/
|
|
7
|
-
export type ModFeaturePost = {
|
|
8
|
-
id: ModFeaturePostId;
|
|
9
|
-
mod_person_id: PersonId;
|
|
10
|
-
post_id: PostId;
|
|
11
|
-
featured: boolean;
|
|
12
|
-
published_at: string;
|
|
13
|
-
is_featured_community: boolean;
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ModFeaturePostId = number;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Community } from "./Community";
|
|
2
|
-
import type { ModFeaturePost } from "./ModFeaturePost";
|
|
3
|
-
import type { Person } from "./Person";
|
|
4
|
-
import type { Post } from "./Post";
|
|
5
|
-
/**
|
|
6
|
-
* When a moderator features a post on a community (pins it to the top).
|
|
7
|
-
*/
|
|
8
|
-
export type ModFeaturePostView = {
|
|
9
|
-
mod_feature_post: ModFeaturePost;
|
|
10
|
-
moderator?: Person;
|
|
11
|
-
other_person: Person;
|
|
12
|
-
post: Post;
|
|
13
|
-
community: Community;
|
|
14
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { CommentId } from "./CommentId";
|
|
2
|
-
import type { ModLockCommentId } from "./ModLockCommentId";
|
|
3
|
-
import type { PersonId } from "./PersonId";
|
|
4
|
-
/**
|
|
5
|
-
* When a moderator locks a comment (prevents new replies to a comment or its children).
|
|
6
|
-
*/
|
|
7
|
-
export type ModLockComment = {
|
|
8
|
-
id: ModLockCommentId;
|
|
9
|
-
mod_person_id: PersonId;
|
|
10
|
-
comment_id: CommentId;
|
|
11
|
-
locked: boolean;
|
|
12
|
-
reason: string;
|
|
13
|
-
published_at: string;
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ModLockCommentId = number;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Comment } from "./Comment";
|
|
2
|
-
import type { Community } from "./Community";
|
|
3
|
-
import type { ModLockComment } from "./ModLockComment";
|
|
4
|
-
import type { Person } from "./Person";
|
|
5
|
-
import type { Post } from "./Post";
|
|
6
|
-
/**
|
|
7
|
-
* When a moderator locks a comment (prevents replies to it or its children).
|
|
8
|
-
*/
|
|
9
|
-
export type ModLockCommentView = {
|
|
10
|
-
mod_lock_comment: ModLockComment;
|
|
11
|
-
moderator?: Person;
|
|
12
|
-
other_person: Person;
|
|
13
|
-
comment: Comment;
|
|
14
|
-
post: Post;
|
|
15
|
-
community: Community;
|
|
16
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ModLockPostId } from "./ModLockPostId";
|
|
2
|
-
import type { PersonId } from "./PersonId";
|
|
3
|
-
import type { PostId } from "./PostId";
|
|
4
|
-
/**
|
|
5
|
-
* When a moderator locks a post (prevents new comments being made).
|
|
6
|
-
*/
|
|
7
|
-
export type ModLockPost = {
|
|
8
|
-
id: ModLockPostId;
|
|
9
|
-
mod_person_id: PersonId;
|
|
10
|
-
post_id: PostId;
|
|
11
|
-
locked: boolean;
|
|
12
|
-
published_at: string;
|
|
13
|
-
reason: string;
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ModLockPostId = number;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Community } from "./Community";
|
|
2
|
-
import type { ModLockPost } from "./ModLockPost";
|
|
3
|
-
import type { Person } from "./Person";
|
|
4
|
-
import type { Post } from "./Post";
|
|
5
|
-
/**
|
|
6
|
-
* When a moderator locks a post (prevents new comments being made).
|
|
7
|
-
*/
|
|
8
|
-
export type ModLockPostView = {
|
|
9
|
-
mod_lock_post: ModLockPost;
|
|
10
|
-
moderator?: Person;
|
|
11
|
-
other_person: Person;
|
|
12
|
-
post: Post;
|
|
13
|
-
community: Community;
|
|
14
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { CommentId } from "./CommentId";
|
|
2
|
-
import type { ModRemoveCommentId } from "./ModRemoveCommentId";
|
|
3
|
-
import type { PersonId } from "./PersonId";
|
|
4
|
-
/**
|
|
5
|
-
* When a moderator removes a comment.
|
|
6
|
-
*/
|
|
7
|
-
export type ModRemoveComment = {
|
|
8
|
-
id: ModRemoveCommentId;
|
|
9
|
-
mod_person_id: PersonId;
|
|
10
|
-
comment_id: CommentId;
|
|
11
|
-
reason: string;
|
|
12
|
-
removed: boolean;
|
|
13
|
-
published_at: string;
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ModRemoveCommentId = number;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Comment } from "./Comment";
|
|
2
|
-
import type { Community } from "./Community";
|
|
3
|
-
import type { ModRemoveComment } from "./ModRemoveComment";
|
|
4
|
-
import type { Person } from "./Person";
|
|
5
|
-
import type { Post } from "./Post";
|
|
6
|
-
/**
|
|
7
|
-
* When a moderator removes a comment.
|
|
8
|
-
*/
|
|
9
|
-
export type ModRemoveCommentView = {
|
|
10
|
-
mod_remove_comment: ModRemoveComment;
|
|
11
|
-
moderator?: Person;
|
|
12
|
-
other_person: Person;
|
|
13
|
-
comment: Comment;
|
|
14
|
-
post: Post;
|
|
15
|
-
community: Community;
|
|
16
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ModRemovePostId } from "./ModRemovePostId";
|
|
2
|
-
import type { PersonId } from "./PersonId";
|
|
3
|
-
import type { PostId } from "./PostId";
|
|
4
|
-
/**
|
|
5
|
-
* When a moderator removes a post.
|
|
6
|
-
*/
|
|
7
|
-
export type ModRemovePost = {
|
|
8
|
-
id: ModRemovePostId;
|
|
9
|
-
mod_person_id: PersonId;
|
|
10
|
-
post_id: PostId;
|
|
11
|
-
reason: string;
|
|
12
|
-
removed: boolean;
|
|
13
|
-
published_at: string;
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ModRemovePostId = number;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Community } from "./Community";
|
|
2
|
-
import type { ModRemovePost } from "./ModRemovePost";
|
|
3
|
-
import type { Person } from "./Person";
|
|
4
|
-
import type { Post } from "./Post";
|
|
5
|
-
/**
|
|
6
|
-
* When a moderator removes a post.
|
|
7
|
-
*/
|
|
8
|
-
export type ModRemovePostView = {
|
|
9
|
-
mod_remove_post: ModRemovePost;
|
|
10
|
-
moderator?: Person;
|
|
11
|
-
other_person: Person;
|
|
12
|
-
post: Post;
|
|
13
|
-
community: Community;
|
|
14
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { CommunityId } from "./CommunityId";
|
|
2
|
-
import type { ModTransferCommunityId } from "./ModTransferCommunityId";
|
|
3
|
-
import type { PersonId } from "./PersonId";
|
|
4
|
-
/**
|
|
5
|
-
* When a moderator transfers a community to a new owner.
|
|
6
|
-
*/
|
|
7
|
-
export type ModTransferCommunity = {
|
|
8
|
-
id: ModTransferCommunityId;
|
|
9
|
-
mod_person_id: PersonId;
|
|
10
|
-
other_person_id: PersonId;
|
|
11
|
-
community_id: CommunityId;
|
|
12
|
-
published_at: string;
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ModTransferCommunityId = number;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Community } from "./Community";
|
|
2
|
-
import type { ModTransferCommunity } from "./ModTransferCommunity";
|
|
3
|
-
import type { Person } from "./Person";
|
|
4
|
-
/**
|
|
5
|
-
* When a moderator transfers a community to a new owner.
|
|
6
|
-
*/
|
|
7
|
-
export type ModTransferCommunityView = {
|
|
8
|
-
mod_transfer_community: ModTransferCommunity;
|
|
9
|
-
moderator?: Person;
|
|
10
|
-
community: Community;
|
|
11
|
-
other_person: Person;
|
|
12
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A list of possible types for the various modlog actions.
|
|
3
|
-
*/
|
|
4
|
-
export type ModlogActionType = "all" | "mod_remove_post" | "mod_lock_post" | "mod_feature_post" | "mod_remove_comment" | "mod_lock_comment" | "admin_remove_community" | "mod_ban_from_community" | "mod_add_to_community" | "mod_transfer_community" | "admin_add" | "admin_ban" | "mod_change_community_visibility" | "admin_purge_person" | "admin_purge_community" | "admin_purge_post" | "admin_purge_comment" | "admin_block_instance" | "admin_allow_instance";
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { AdminAddView } from "./AdminAddView";
|
|
2
|
-
import type { AdminAllowInstanceView } from "./AdminAllowInstanceView";
|
|
3
|
-
import type { AdminBanView } from "./AdminBanView";
|
|
4
|
-
import type { AdminBlockInstanceView } from "./AdminBlockInstanceView";
|
|
5
|
-
import type { AdminPurgeCommentView } from "./AdminPurgeCommentView";
|
|
6
|
-
import type { AdminPurgeCommunityView } from "./AdminPurgeCommunityView";
|
|
7
|
-
import type { AdminPurgePersonView } from "./AdminPurgePersonView";
|
|
8
|
-
import type { AdminPurgePostView } from "./AdminPurgePostView";
|
|
9
|
-
import type { AdminRemoveCommunityView } from "./AdminRemoveCommunityView";
|
|
10
|
-
import type { ModAddToCommunityView } from "./ModAddToCommunityView";
|
|
11
|
-
import type { ModBanFromCommunityView } from "./ModBanFromCommunityView";
|
|
12
|
-
import type { ModChangeCommunityVisibilityView } from "./ModChangeCommunityVisibilityView";
|
|
13
|
-
import type { ModFeaturePostView } from "./ModFeaturePostView";
|
|
14
|
-
import type { ModLockCommentView } from "./ModLockCommentView";
|
|
15
|
-
import type { ModLockPostView } from "./ModLockPostView";
|
|
16
|
-
import type { ModRemoveCommentView } from "./ModRemoveCommentView";
|
|
17
|
-
import type { ModRemovePostView } from "./ModRemovePostView";
|
|
18
|
-
import type { ModTransferCommunityView } from "./ModTransferCommunityView";
|
|
19
|
-
export type ModlogCombinedView = ({
|
|
20
|
-
type_: "AdminAllowInstance";
|
|
21
|
-
} & AdminAllowInstanceView) | ({
|
|
22
|
-
type_: "AdminBlockInstance";
|
|
23
|
-
} & AdminBlockInstanceView) | ({
|
|
24
|
-
type_: "AdminPurgeComment";
|
|
25
|
-
} & AdminPurgeCommentView) | ({
|
|
26
|
-
type_: "AdminPurgeCommunity";
|
|
27
|
-
} & AdminPurgeCommunityView) | ({
|
|
28
|
-
type_: "AdminPurgePerson";
|
|
29
|
-
} & AdminPurgePersonView) | ({
|
|
30
|
-
type_: "AdminPurgePost";
|
|
31
|
-
} & AdminPurgePostView) | ({
|
|
32
|
-
type_: "AdminAdd";
|
|
33
|
-
} & AdminAddView) | ({
|
|
34
|
-
type_: "ModAddToCommunity";
|
|
35
|
-
} & ModAddToCommunityView) | ({
|
|
36
|
-
type_: "AdminBan";
|
|
37
|
-
} & AdminBanView) | ({
|
|
38
|
-
type_: "ModBanFromCommunity";
|
|
39
|
-
} & ModBanFromCommunityView) | ({
|
|
40
|
-
type_: "ModFeaturePost";
|
|
41
|
-
} & ModFeaturePostView) | ({
|
|
42
|
-
type_: "ModChangeCommunityVisibility";
|
|
43
|
-
} & ModChangeCommunityVisibilityView) | ({
|
|
44
|
-
type_: "ModLockPost";
|
|
45
|
-
} & ModLockPostView) | ({
|
|
46
|
-
type_: "ModRemoveComment";
|
|
47
|
-
} & ModRemoveCommentView) | ({
|
|
48
|
-
type_: "AdminRemoveCommunity";
|
|
49
|
-
} & AdminRemoveCommunityView) | ({
|
|
50
|
-
type_: "ModRemovePost";
|
|
51
|
-
} & ModRemovePostView) | ({
|
|
52
|
-
type_: "ModTransferCommunity";
|
|
53
|
-
} & ModTransferCommunityView) | ({
|
|
54
|
-
type_: "ModLockComment";
|
|
55
|
-
} & ModLockCommentView);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|