lemmy-js-client 1.0.0-merge-modlog-tables.1 → 1.0.0-merge-modlog-tables.3
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 +2 -2
- package/dist/http.js +4 -3
- package/dist/index.d.ts +87 -1
- package/dist/index.js +3 -0
- package/dist/other_types.d.ts +3 -0
- package/dist/types/AdminAllowInstance.d.ts +11 -0
- package/dist/types/AdminAllowInstance.js +2 -0
- package/dist/types/AdminAllowInstanceId.d.ts +1 -0
- package/dist/types/AdminAllowInstanceId.js +3 -0
- package/dist/types/AdminAllowInstanceView.d.ts +11 -0
- package/dist/types/AdminAllowInstanceView.js +2 -0
- package/dist/types/AdminBlockInstance.d.ts +12 -0
- package/dist/types/AdminBlockInstance.js +2 -0
- package/dist/types/AdminBlockInstanceId.d.ts +1 -0
- package/dist/types/AdminBlockInstanceId.js +3 -0
- package/dist/types/AdminBlockInstanceView.d.ts +11 -0
- package/dist/types/AdminBlockInstanceView.js +2 -0
- package/dist/types/AdminPurgeComment.d.ts +9 -0
- package/dist/types/AdminPurgeComment.js +2 -0
- package/dist/types/AdminPurgeCommentId.d.ts +1 -0
- package/dist/types/AdminPurgeCommentId.js +3 -0
- package/dist/types/AdminPurgeCommentView.d.ts +11 -0
- package/dist/types/AdminPurgeCommentView.js +2 -0
- package/dist/types/AdminPurgeCommunity.d.ts +7 -0
- package/dist/types/AdminPurgeCommunity.js +2 -0
- package/dist/types/AdminPurgeCommunityId.d.ts +1 -0
- package/dist/types/AdminPurgeCommunityId.js +3 -0
- package/dist/types/AdminPurgeCommunityView.d.ts +9 -0
- package/dist/types/AdminPurgeCommunityView.js +2 -0
- package/dist/types/AdminPurgePerson.d.ts +7 -0
- package/dist/types/AdminPurgePerson.js +2 -0
- package/dist/types/AdminPurgePersonId.d.ts +1 -0
- package/dist/types/AdminPurgePersonId.js +3 -0
- package/dist/types/AdminPurgePersonView.d.ts +9 -0
- package/dist/types/AdminPurgePersonView.js +2 -0
- package/dist/types/AdminPurgePost.d.ts +9 -0
- package/dist/types/AdminPurgePost.js +2 -0
- package/dist/types/AdminPurgePostId.d.ts +1 -0
- package/dist/types/AdminPurgePostId.js +3 -0
- package/dist/types/AdminPurgePostView.d.ts +11 -0
- package/dist/types/AdminPurgePostView.js +2 -0
- package/dist/types/CommentAggregates.d.ts +9 -0
- package/dist/types/CommentAggregates.js +2 -0
- package/dist/types/CommentReply.d.ts +10 -0
- package/dist/types/CommentReply.js +2 -0
- package/dist/types/CommentReplyId.d.ts +1 -0
- package/dist/types/CommentReplyId.js +3 -0
- package/dist/types/CommentReplyView.d.ts +27 -0
- package/dist/types/CommentReplyView.js +2 -0
- package/dist/types/CommentReportView.d.ts +12 -17
- package/dist/types/CommentSlimView.d.ts +4 -3
- package/dist/types/CommunityAggregates.d.ts +13 -0
- package/dist/types/CommunityAggregates.js +2 -0
- package/dist/types/CommunityReportView.d.ts +0 -6
- package/dist/types/CustomEmojiView.d.ts +2 -5
- package/dist/types/FederationError.d.ts +10 -0
- package/dist/types/FederationError.js +3 -0
- package/dist/types/InboxCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/InboxCombinedPaginationCursor.js +3 -0
- package/dist/types/InboxCombinedView.d.ts +13 -0
- package/dist/types/InboxCombinedView.js +2 -0
- package/dist/types/InboxDataType.d.ts +4 -0
- package/dist/types/InboxDataType.js +3 -0
- package/dist/types/LocalUserVoteDisplayMode.d.ts +8 -0
- package/dist/types/LocalUserVoteDisplayMode.js +2 -0
- package/dist/types/ModAdd.d.ts +8 -0
- package/dist/types/ModAdd.js +2 -0
- package/dist/types/ModAddCommunity.d.ts +10 -0
- package/dist/types/ModAddCommunity.js +2 -0
- package/dist/types/ModAddCommunityId.d.ts +1 -0
- package/dist/types/ModAddCommunityId.js +3 -0
- package/dist/types/ModAddCommunityView.d.ts +12 -0
- package/dist/types/ModAddCommunityView.js +2 -0
- package/dist/types/ModAddId.d.ts +1 -0
- package/dist/types/ModAddId.js +3 -0
- package/dist/types/ModAddView.d.ts +10 -0
- package/dist/types/ModAddView.js +2 -0
- package/dist/types/ModBan.d.ts +10 -0
- package/dist/types/ModBan.js +2 -0
- package/dist/types/ModBanFromCommunity.d.ts +12 -0
- package/dist/types/ModBanFromCommunity.js +2 -0
- package/dist/types/ModBanFromCommunityId.d.ts +1 -0
- package/dist/types/ModBanFromCommunityId.js +3 -0
- package/dist/types/ModBanFromCommunityView.d.ts +12 -0
- package/dist/types/ModBanFromCommunityView.js +2 -0
- package/dist/types/ModBanId.d.ts +1 -0
- package/dist/types/ModBanId.js +3 -0
- package/dist/types/ModBanView.d.ts +10 -0
- package/dist/types/ModBanView.js +2 -0
- package/dist/types/ModChangeCommunityVisibility.d.ts +12 -0
- package/dist/types/ModChangeCommunityVisibility.js +2 -0
- package/dist/types/ModChangeCommunityVisibilityId.d.ts +1 -0
- package/dist/types/ModChangeCommunityVisibilityId.js +3 -0
- package/dist/types/ModChangeCommunityVisibilityView.d.ts +11 -0
- package/dist/types/ModChangeCommunityVisibilityView.js +2 -0
- package/dist/types/ModFeaturePost.d.ts +10 -0
- package/dist/types/ModFeaturePost.js +2 -0
- package/dist/types/ModFeaturePostId.d.ts +1 -0
- package/dist/types/ModFeaturePostId.js +3 -0
- package/dist/types/ModFeaturePostView.d.ts +14 -0
- package/dist/types/ModFeaturePostView.js +2 -0
- package/dist/types/ModHideCommunity.d.ts +10 -0
- package/dist/types/ModHideCommunity.js +2 -0
- package/dist/types/ModHideCommunityId.d.ts +1 -0
- package/dist/types/ModHideCommunityId.js +3 -0
- package/dist/types/ModHideCommunityView.d.ts +11 -0
- package/dist/types/ModHideCommunityView.js +2 -0
- package/dist/types/ModLockPost.d.ts +9 -0
- package/dist/types/ModLockPost.js +2 -0
- package/dist/types/ModLockPostId.d.ts +1 -0
- package/dist/types/ModLockPostId.js +3 -0
- package/dist/types/ModLockPostView.d.ts +14 -0
- package/dist/types/ModLockPostView.js +2 -0
- package/dist/types/ModRemoveComment.d.ts +10 -0
- package/dist/types/ModRemoveComment.js +2 -0
- package/dist/types/ModRemoveCommentId.d.ts +1 -0
- package/dist/types/ModRemoveCommentId.js +3 -0
- package/dist/types/ModRemoveCommentView.d.ts +16 -0
- package/dist/types/ModRemoveCommentView.js +2 -0
- package/dist/types/ModRemoveCommunity.d.ts +10 -0
- package/dist/types/ModRemoveCommunity.js +2 -0
- package/dist/types/ModRemoveCommunityId.d.ts +1 -0
- package/dist/types/ModRemoveCommunityId.js +3 -0
- package/dist/types/ModRemoveCommunityView.d.ts +11 -0
- package/dist/types/ModRemoveCommunityView.js +2 -0
- package/dist/types/ModRemovePost.d.ts +10 -0
- package/dist/types/ModRemovePost.js +2 -0
- package/dist/types/ModRemovePostId.d.ts +1 -0
- package/dist/types/ModRemovePostId.js +3 -0
- package/dist/types/ModRemovePostView.d.ts +14 -0
- package/dist/types/ModRemovePostView.js +2 -0
- package/dist/types/ModTransferCommunity.d.ts +9 -0
- package/dist/types/ModTransferCommunity.js +2 -0
- package/dist/types/ModTransferCommunityId.d.ts +1 -0
- package/dist/types/ModTransferCommunityId.js +3 -0
- package/dist/types/ModTransferCommunityView.d.ts +12 -0
- package/dist/types/ModTransferCommunityView.js +2 -0
- package/dist/types/ModlogActionType.d.ts +1 -0
- package/dist/types/ModlogActionType.js +3 -0
- package/dist/types/ModlogCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/ModlogCombinedPaginationCursor.js +3 -0
- package/dist/types/ModlogCombinedView.d.ts +52 -0
- package/dist/types/ModlogCombinedView.js +2 -0
- package/dist/types/PersonAggregates.d.ts +6 -0
- package/dist/types/PersonAggregates.js +2 -0
- package/dist/types/PersonCommentMention.d.ts +13 -0
- package/dist/types/PersonCommentMention.js +2 -0
- package/dist/types/PersonCommentMentionId.d.ts +4 -0
- package/dist/types/PersonCommentMentionId.js +3 -0
- package/dist/types/PersonCommentMentionView.d.ts +27 -0
- package/dist/types/PersonCommentMentionView.js +2 -0
- package/dist/types/PersonContentCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/PersonContentCombinedPaginationCursor.js +3 -0
- package/dist/types/PersonContentCombinedView.d.ts +2 -2
- package/dist/types/PersonMention.d.ts +10 -0
- package/dist/types/PersonMention.js +2 -0
- package/dist/types/PersonMentionId.d.ts +1 -0
- package/dist/types/PersonMentionId.js +3 -0
- package/dist/types/PersonPostMention.d.ts +13 -0
- package/dist/types/PersonPostMention.js +2 -0
- package/dist/types/PersonPostMentionId.d.ts +4 -0
- package/dist/types/PersonPostMentionId.js +3 -0
- package/dist/types/PersonPostMentionView.d.ts +27 -0
- package/dist/types/PersonPostMentionView.js +2 -0
- package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/PersonSavedCombinedPaginationCursor.js +3 -0
- package/dist/types/PersonSavedCombinedView.d.ts +2 -2
- package/dist/types/PostAggregates.d.ts +10 -0
- package/dist/types/PostAggregates.js +2 -0
- package/dist/types/PostPaginationCursor.d.ts +7 -0
- package/dist/types/PostPaginationCursor.js +3 -0
- package/dist/types/PostReportView.d.ts +15 -17
- package/dist/types/PostTags.d.ts +7 -0
- package/dist/types/PostTags.js +2 -0
- package/dist/types/PrivateMessageReportView.d.ts +3 -9
- package/dist/types/RegistrationApplicationView.d.ts +2 -5
- package/dist/types/ReportCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/ReportCombinedPaginationCursor.js +3 -0
- package/dist/types/ReportCombinedView.d.ts +4 -4
- package/dist/types/SearchCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/SearchCombinedPaginationCursor.js +3 -0
- package/dist/types/SearchCombinedView.d.ts +5 -8
- package/dist/types/SiteAggregates.d.ts +12 -0
- package/dist/types/SiteAggregates.js +2 -0
- package/dist/types/SiteView.d.ts +4 -7
- package/dist/types/SortType.d.ts +1 -0
- package/dist/types/SortType.js +3 -0
- package/dist/types/SubscribedType.d.ts +1 -0
- package/dist/types/SubscribedType.js +3 -0
- package/dist/types/VoteView.d.ts +3 -10
- package/package.json +2 -2
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { Comment } from "./Comment";
|
|
2
2
|
import type { CommentActions } from "./CommentActions";
|
|
3
|
+
import type { CommunityActions } from "./CommunityActions";
|
|
4
|
+
import type { InstanceActions } from "./InstanceActions";
|
|
3
5
|
import type { Person } from "./Person";
|
|
4
6
|
import type { PersonActions } from "./PersonActions";
|
|
5
7
|
/**
|
|
@@ -10,9 +12,8 @@ export type CommentSlimView = {
|
|
|
10
12
|
creator: Person;
|
|
11
13
|
comment_actions?: CommentActions;
|
|
12
14
|
person_actions?: PersonActions;
|
|
15
|
+
creator_community_actions?: CommunityActions;
|
|
16
|
+
instance_actions?: InstanceActions;
|
|
13
17
|
creator_is_admin: boolean;
|
|
14
18
|
can_mod: boolean;
|
|
15
|
-
creator_banned: boolean;
|
|
16
|
-
creator_is_moderator: boolean;
|
|
17
|
-
creator_banned_from_community: boolean;
|
|
18
19
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CommunityId } from "./CommunityId";
|
|
2
|
+
export interface CommunityAggregates {
|
|
3
|
+
community_id: CommunityId;
|
|
4
|
+
subscribers: number;
|
|
5
|
+
posts: number;
|
|
6
|
+
comments: number;
|
|
7
|
+
published: string;
|
|
8
|
+
users_active_day: number;
|
|
9
|
+
users_active_week: number;
|
|
10
|
+
users_active_month: number;
|
|
11
|
+
users_active_half_year: number;
|
|
12
|
+
subscribers_local: number;
|
|
13
|
+
}
|
|
@@ -9,10 +9,4 @@ export type CommunityReportView = {
|
|
|
9
9
|
community: Community;
|
|
10
10
|
creator: Person;
|
|
11
11
|
resolver?: Person;
|
|
12
|
-
creator_is_admin: boolean;
|
|
13
|
-
creator_is_moderator: boolean;
|
|
14
|
-
creator_banned: boolean;
|
|
15
|
-
creator_ban_expires_at?: string;
|
|
16
|
-
creator_banned_from_community: boolean;
|
|
17
|
-
creator_community_ban_expires_at?: string;
|
|
18
12
|
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { CustomEmoji } from "./CustomEmoji";
|
|
2
2
|
import type { CustomEmojiKeyword } from "./CustomEmojiKeyword";
|
|
3
|
-
|
|
4
|
-
* A custom emoji view.
|
|
5
|
-
*/
|
|
6
|
-
export type CustomEmojiView = {
|
|
3
|
+
export interface CustomEmojiView {
|
|
7
4
|
custom_emoji: CustomEmoji;
|
|
8
5
|
keywords: Array<CustomEmojiKeyword>;
|
|
9
|
-
}
|
|
6
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Federation related errors, these dont need to be translated.
|
|
3
|
+
*/
|
|
4
|
+
export type FederationError = "InvalidCommunity" | "CannotCreatePostOrCommentInDeletedOrRemovedCommunity" | "CannotReceivePage" | "OnlyLocalAdminCanRemoveCommunity" | "OnlyLocalAdminCanRestoreCommunity" | "PostIsLocked" | {
|
|
5
|
+
PersonIsBannedFromSite: string;
|
|
6
|
+
} | "InvalidVoteValue" | "PageDoesNotSpecifyCreator" | "CouldntGetComments" | "CouldntGetPosts" | "FederationDisabled" | {
|
|
7
|
+
DomainBlocked: string;
|
|
8
|
+
} | {
|
|
9
|
+
DomainNotInAllowList: string;
|
|
10
|
+
} | "FederationDisabledByStrictAllowList" | "ContradictingFilters" | "UrlWithoutDomain" | "InboxTimeout" | "CantDeleteSite" | "ObjectIsNotPublic" | "ObjectIsNotPrivate" | "PlatformLackingPrivateCommunitySupport" | "Unreachable";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CommentReplyView } from "./CommentReplyView";
|
|
2
|
+
import type { PersonCommentMentionView } from "./PersonCommentMentionView";
|
|
3
|
+
import type { PersonPostMentionView } from "./PersonPostMentionView";
|
|
4
|
+
import type { PrivateMessageView } from "./PrivateMessageView";
|
|
5
|
+
export type InboxCombinedView = ({
|
|
6
|
+
type_: "CommentReply";
|
|
7
|
+
} & CommentReplyView) | ({
|
|
8
|
+
type_: "CommentMention";
|
|
9
|
+
} & PersonCommentMentionView) | ({
|
|
10
|
+
type_: "PostMention";
|
|
11
|
+
} & PersonPostMentionView) | ({
|
|
12
|
+
type_: "PrivateMessage";
|
|
13
|
+
} & PrivateMessageView);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CommunityId } from "./CommunityId";
|
|
2
|
+
import type { PersonId } from "./PersonId";
|
|
3
|
+
export interface ModAddCommunity {
|
|
4
|
+
id: number;
|
|
5
|
+
mod_person_id: PersonId;
|
|
6
|
+
other_person_id: PersonId;
|
|
7
|
+
community_id: CommunityId;
|
|
8
|
+
removed: boolean;
|
|
9
|
+
when_: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ModAddCommunityId = number;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Community } from "./Community";
|
|
2
|
+
import type { ModAddCommunity } from "./ModAddCommunity";
|
|
3
|
+
import type { Person } from "./Person";
|
|
4
|
+
/**
|
|
5
|
+
* When someone is added as a community moderator.
|
|
6
|
+
*/
|
|
7
|
+
export type ModAddCommunityView = {
|
|
8
|
+
mod_add_community: ModAddCommunity;
|
|
9
|
+
moderator?: Person;
|
|
10
|
+
community: Community;
|
|
11
|
+
other_person: Person;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ModAddId = number;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CommunityId } from "./CommunityId";
|
|
2
|
+
import type { PersonId } from "./PersonId";
|
|
3
|
+
export interface ModBanFromCommunity {
|
|
4
|
+
id: number;
|
|
5
|
+
mod_person_id: PersonId;
|
|
6
|
+
other_person_id: PersonId;
|
|
7
|
+
community_id: CommunityId;
|
|
8
|
+
reason?: string;
|
|
9
|
+
banned: boolean;
|
|
10
|
+
expires?: string;
|
|
11
|
+
when_: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ModBanFromCommunityId = number;
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ModBanId = number;
|
|
@@ -0,0 +1,12 @@
|
|
|
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: string;
|
|
10
|
+
reason?: string;
|
|
11
|
+
visibility: CommunityVisibility;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ModChangeCommunityVisibilityId = number;
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ModFeaturePostId = number;
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CommunityId } from "./CommunityId";
|
|
2
|
+
import type { PersonId } from "./PersonId";
|
|
3
|
+
export interface ModHideCommunity {
|
|
4
|
+
id: number;
|
|
5
|
+
community_id: CommunityId;
|
|
6
|
+
mod_person_id: PersonId;
|
|
7
|
+
when_: string;
|
|
8
|
+
reason?: string;
|
|
9
|
+
hidden: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ModHideCommunityId = number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Community } from "./Community";
|
|
2
|
+
import type { ModHideCommunity } from "./ModHideCommunity";
|
|
3
|
+
import type { Person } from "./Person";
|
|
4
|
+
/**
|
|
5
|
+
* When a community is hidden from public view.
|
|
6
|
+
*/
|
|
7
|
+
export type ModHideCommunityView = {
|
|
8
|
+
mod_hide_community: ModHideCommunity;
|
|
9
|
+
admin?: Person;
|
|
10
|
+
community: Community;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ModLockPostId = number;
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ModRemoveCommentId = number;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CommunityId } from "./CommunityId";
|
|
2
|
+
import type { PersonId } from "./PersonId";
|
|
3
|
+
export interface ModRemoveCommunity {
|
|
4
|
+
id: number;
|
|
5
|
+
mod_person_id: PersonId;
|
|
6
|
+
community_id: CommunityId;
|
|
7
|
+
reason?: string;
|
|
8
|
+
removed: boolean;
|
|
9
|
+
when_: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ModRemoveCommunityId = number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Community } from "./Community";
|
|
2
|
+
import type { ModRemoveCommunity } from "./ModRemoveCommunity";
|
|
3
|
+
import type { Person } from "./Person";
|
|
4
|
+
/**
|
|
5
|
+
* When a moderator removes a community.
|
|
6
|
+
*/
|
|
7
|
+
export type ModRemoveCommunityView = {
|
|
8
|
+
mod_remove_community: ModRemoveCommunity;
|
|
9
|
+
moderator?: Person;
|
|
10
|
+
community: Community;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ModRemovePostId = number;
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
};
|