lemmy-js-client 0.20.0-modlog-combined.0 → 0.20.0-modlog-combined.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +3 -0
- package/dist/types/AdminAllowInstance.d.ts +1 -1
- package/dist/types/AdminBlockInstance.d.ts +1 -1
- package/dist/types/AdminPurgeComment.d.ts +1 -1
- package/dist/types/AdminPurgeCommunity.d.ts +1 -1
- package/dist/types/AdminPurgePerson.d.ts +1 -1
- package/dist/types/AdminPurgePost.d.ts +1 -1
- package/dist/types/CommunityAggregates.d.ts +2 -0
- package/dist/types/CommunityReport.d.ts +22 -0
- package/dist/types/CommunityReport.js +2 -0
- package/dist/types/CommunityReportId.d.ts +4 -0
- package/dist/types/CommunityReportId.js +3 -0
- package/dist/types/CommunityReportView.d.ts +16 -0
- package/dist/types/CommunityReportView.js +2 -0
- package/dist/types/CreateSite.d.ts +0 -2
- package/dist/types/EditSite.d.ts +0 -8
- package/dist/types/FederationError.d.ts +1 -1
- package/dist/types/GetModlog.d.ts +1 -1
- package/dist/types/ModAdd.d.ts +1 -1
- package/dist/types/ModAddCommunity.d.ts +1 -1
- package/dist/types/ModAddCommunityView.d.ts +1 -1
- package/dist/types/ModAddView.d.ts +1 -1
- package/dist/types/ModBan.d.ts +1 -1
- package/dist/types/ModBanFromCommunity.d.ts +1 -1
- package/dist/types/ModBanFromCommunityView.d.ts +1 -1
- package/dist/types/ModBanView.d.ts +1 -1
- package/dist/types/ModFeaturePost.d.ts +1 -1
- package/dist/types/ModFeaturePostView.d.ts +1 -1
- package/dist/types/ModHideCommunity.d.ts +1 -1
- package/dist/types/ModLockPost.d.ts +1 -1
- package/dist/types/ModLockPostView.d.ts +1 -1
- package/dist/types/ModRemoveComment.d.ts +1 -1
- package/dist/types/ModRemoveCommentView.d.ts +1 -1
- package/dist/types/ModRemoveCommunity.d.ts +1 -1
- package/dist/types/ModRemovePost.d.ts +1 -1
- package/dist/types/ModRemovePostView.d.ts +1 -1
- package/dist/types/ModTransferCommunity.d.ts +1 -1
- package/dist/types/ModTransferCommunityView.d.ts +1 -1
- package/dist/types/ReportCombinedView.d.ts +4 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -59,6 +59,9 @@ export { CommunityFollowerState } from "./types/CommunityFollowerState";
|
|
59
59
|
export { CommunityFollowerView } from "./types/CommunityFollowerView";
|
60
60
|
export { CommunityId } from "./types/CommunityId";
|
61
61
|
export { CommunityModeratorView } from "./types/CommunityModeratorView";
|
62
|
+
export { CommunityReport } from "./types/CommunityReport";
|
63
|
+
export { CommunityReportId } from "./types/CommunityReportId";
|
64
|
+
export { CommunityReportView } from "./types/CommunityReportView";
|
62
65
|
export { CommunityResponse } from "./types/CommunityResponse";
|
63
66
|
export { CommunitySortType } from "./types/CommunitySortType";
|
64
67
|
export { CommunityView } from "./types/CommunityView";
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import type { CommunityId } from "./CommunityId";
|
2
|
+
import type { CommunityReportId } from "./CommunityReportId";
|
3
|
+
import type { PersonId } from "./PersonId";
|
4
|
+
/**
|
5
|
+
* A comment report.
|
6
|
+
*/
|
7
|
+
export type CommunityReport = {
|
8
|
+
id: CommunityReportId;
|
9
|
+
creator_id: PersonId;
|
10
|
+
community_id: CommunityId;
|
11
|
+
original_community_name: string;
|
12
|
+
original_community_title: string;
|
13
|
+
original_community_description?: string;
|
14
|
+
original_community_sidebar?: string;
|
15
|
+
original_community_icon?: string;
|
16
|
+
original_community_banner?: string;
|
17
|
+
reason: string;
|
18
|
+
resolved: boolean;
|
19
|
+
resolver_id?: PersonId;
|
20
|
+
published: string;
|
21
|
+
updated?: string;
|
22
|
+
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { Community } from "./Community";
|
2
|
+
import type { CommunityAggregates } from "./CommunityAggregates";
|
3
|
+
import type { CommunityReport } from "./CommunityReport";
|
4
|
+
import type { Person } from "./Person";
|
5
|
+
import type { SubscribedType } from "./SubscribedType";
|
6
|
+
/**
|
7
|
+
* A community report view.
|
8
|
+
*/
|
9
|
+
export type CommunityReportView = {
|
10
|
+
community_report: CommunityReport;
|
11
|
+
community: Community;
|
12
|
+
creator: Person;
|
13
|
+
counts: CommunityAggregates;
|
14
|
+
subscribed: SubscribedType;
|
15
|
+
resolver?: Person;
|
16
|
+
};
|
@@ -12,7 +12,6 @@ export type CreateSite = {
|
|
12
12
|
name: string;
|
13
13
|
sidebar?: string;
|
14
14
|
description?: string;
|
15
|
-
enable_nsfw?: boolean;
|
16
15
|
community_creation_admin_only?: boolean;
|
17
16
|
require_email_verification?: boolean;
|
18
17
|
application_question?: string;
|
@@ -41,7 +40,6 @@ export type CreateSite = {
|
|
41
40
|
rate_limit_search?: number;
|
42
41
|
rate_limit_search_per_second?: number;
|
43
42
|
federation_enabled?: boolean;
|
44
|
-
federation_debug?: boolean;
|
45
43
|
captcha_enabled?: boolean;
|
46
44
|
captcha_difficulty?: string;
|
47
45
|
registration_mode?: RegistrationMode;
|
package/dist/types/EditSite.d.ts
CHANGED
@@ -18,10 +18,6 @@ export type EditSite = {
|
|
18
18
|
* A shorter, one line description of your site.
|
19
19
|
*/
|
20
20
|
description?: string;
|
21
|
-
/**
|
22
|
-
* Whether to enable NSFW.
|
23
|
-
*/
|
24
|
-
enable_nsfw?: boolean;
|
25
21
|
/**
|
26
22
|
* Limits community creation to admins only.
|
27
23
|
*/
|
@@ -116,10 +112,6 @@ export type EditSite = {
|
|
116
112
|
* Whether to enable federation.
|
117
113
|
*/
|
118
114
|
federation_enabled?: boolean;
|
119
|
-
/**
|
120
|
-
* Enables federation debugging.
|
121
|
-
*/
|
122
|
-
federation_debug?: boolean;
|
123
115
|
/**
|
124
116
|
* Whether to enable captchas for signups.
|
125
117
|
*/
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* Federation related errors, these dont need to be translated.
|
3
3
|
*/
|
4
|
-
export type FederationError = "
|
4
|
+
export type FederationError = "InvalidCommunity" | "CannotCreatePostOrCommentInDeletedOrRemovedCommunity" | "CannotReceivePage" | "OnlyLocalAdminCanRemoveCommunity" | "OnlyLocalAdminCanRestoreCommunity" | "PostIsLocked" | {
|
5
5
|
PersonIsBannedFromSite: string;
|
6
6
|
} | "InvalidVoteValue" | "PageDoesNotSpecifyCreator" | "CouldntGetComments" | "CouldntGetPosts" | "FederationDisabled" | {
|
7
7
|
DomainBlocked: string;
|
@@ -11,7 +11,7 @@ export type GetModlog = {
|
|
11
11
|
mod_person_id?: PersonId;
|
12
12
|
community_id?: CommunityId;
|
13
13
|
type_?: ModlogActionType;
|
14
|
-
|
14
|
+
other_person_id?: PersonId;
|
15
15
|
post_id?: PostId;
|
16
16
|
comment_id?: CommentId;
|
17
17
|
page_cursor?: ModlogCombinedPaginationCursor;
|
package/dist/types/ModAdd.d.ts
CHANGED
package/dist/types/ModBan.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { CommentReportView } from "./CommentReportView";
|
2
|
+
import type { CommunityReportView } from "./CommunityReportView";
|
2
3
|
import type { PostReportView } from "./PostReportView";
|
3
4
|
import type { PrivateMessageReportView } from "./PrivateMessageReportView";
|
4
5
|
export type ReportCombinedView = ({
|
@@ -7,4 +8,6 @@ export type ReportCombinedView = ({
|
|
7
8
|
type_: "Comment";
|
8
9
|
} & CommentReportView) | ({
|
9
10
|
type_: "PrivateMessage";
|
10
|
-
} & PrivateMessageReportView)
|
11
|
+
} & PrivateMessageReportView) | ({
|
12
|
+
type_: "Community";
|
13
|
+
} & CommunityReportView);
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "lemmy-js-client",
|
3
3
|
"description": "A javascript / typescript client for Lemmy",
|
4
|
-
"version": "0.20.0-modlog-combined.
|
4
|
+
"version": "0.20.0-modlog-combined.1",
|
5
5
|
"author": "Dessalines <tyhou13@gmx.com>",
|
6
6
|
"license": "AGPL-3.0",
|
7
7
|
"main": "./dist/index.js",
|