lemmy-js-client 0.16.4-rc.1 → 0.17.0-rc.2
Sign up to get free protection for your applications and to get access to all the features.
package/dist/http.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CommentReportResponse, CommentResponse, CreateComment, CreateCommentLike, CreateCommentReport, DeleteComment, EditComment, GetComments, GetCommentsResponse, ListCommentReports, ListCommentReportsResponse, MarkCommentAsRead, RemoveComment, ResolveCommentReport, SaveComment } from "./interfaces/api/comment";
|
2
|
-
import { AddModToCommunity, AddModToCommunityResponse, BanFromCommunity, BanFromCommunityResponse, BlockCommunity, BlockCommunityResponse, CommunityResponse, CreateCommunity, DeleteCommunity, EditCommunity, FollowCommunity, GetCommunity, GetCommunityResponse, ListCommunities, ListCommunitiesResponse, RemoveCommunity, TransferCommunity } from "./interfaces/api/community";
|
2
|
+
import { AddModToCommunity, AddModToCommunityResponse, BanFromCommunity, BanFromCommunityResponse, BlockCommunity, BlockCommunityResponse, CommunityResponse, CreateCommunity, DeleteCommunity, EditCommunity, FollowCommunity, FollowCommunityResponse, GetCommunity, GetCommunityResponse, ListCommunities, ListCommunitiesResponse, RemoveCommunity, TransferCommunity } from "./interfaces/api/community";
|
3
3
|
import { AddAdmin, AddAdminResponse, BannedPersonsResponse, BanPerson, BanPersonResponse, BlockPerson, BlockPersonResponse, ChangePassword, CreatePrivateMessage, DeleteAccount, DeleteAccountResponse, DeletePrivateMessage, EditPrivateMessage, GetBannedPersons, GetCaptchaResponse, GetPersonDetails, GetPersonDetailsResponse, GetPersonMentions, GetPersonMentionsResponse, GetPrivateMessages, GetReplies, GetRepliesResponse, GetReportCount, GetReportCountResponse, GetUnreadCount, GetUnreadCountResponse, Login, LoginResponse, MarkAllAsRead, MarkPersonMentionAsRead, MarkPrivateMessageAsRead, PasswordChange, PasswordReset, PasswordResetResponse, PersonMentionResponse, PrivateMessageResponse, PrivateMessagesResponse, Register, SaveUserSettings, VerifyEmail, VerifyEmailResponse } from "./interfaces/api/person";
|
4
4
|
import { CreatePost, CreatePostLike, CreatePostReport, DeletePost, EditPost, GetPost, GetPostResponse, GetPosts, GetPostsResponse, GetSiteMetadata, GetSiteMetadataResponse, ListPostReports, ListPostReportsResponse, LockPost, PostReportResponse, PostResponse, RemovePost, ResolvePostReport, SavePost, StickyPost } from "./interfaces/api/post";
|
5
5
|
import { ApproveRegistrationApplication, CreateSite, EditSite, GetModlog, GetModlogResponse, GetSite, GetSiteConfig, GetSiteConfigResponse, GetSiteResponse, GetUnreadRegistrationApplicationCount, GetUnreadRegistrationApplicationCountResponse, LeaveAdmin, ListRegistrationApplications, ListRegistrationApplicationsResponse, RegistrationApplicationResponse, ResolveObject, ResolveObjectResponse, SaveSiteConfig, Search, SearchResponse, SiteResponse } from "./interfaces/api/site";
|
@@ -72,7 +72,7 @@ export declare class LemmyHttp {
|
|
72
72
|
/**
|
73
73
|
* Follow / subscribe to a community.
|
74
74
|
*/
|
75
|
-
followCommunity(form: FollowCommunity): Promise<
|
75
|
+
followCommunity(form: FollowCommunity): Promise<FollowCommunityResponse>;
|
76
76
|
/**
|
77
77
|
* Block a community.
|
78
78
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Site } from "../source";
|
2
|
-
import { CommunityModeratorView, CommunityView, PersonViewSafe } from "../views";
|
2
|
+
import { CommunityFollowerView, CommunityModeratorView, CommunityView, PersonViewSafe } from "../views";
|
3
3
|
/**
|
4
4
|
* You can use either `id` or `name` as an id.
|
5
5
|
*
|
@@ -23,11 +23,15 @@ export interface CreateCommunity {
|
|
23
23
|
icon?: string;
|
24
24
|
banner?: string;
|
25
25
|
nsfw?: boolean;
|
26
|
+
posting_restricted_to_mods?: boolean;
|
26
27
|
auth: string;
|
27
28
|
}
|
28
29
|
export interface CommunityResponse {
|
29
30
|
community_view: CommunityView;
|
30
31
|
}
|
32
|
+
export interface FollowCommunityResponse {
|
33
|
+
community_follower_view?: CommunityFollowerView;
|
34
|
+
}
|
31
35
|
export interface ListCommunities {
|
32
36
|
/**
|
33
37
|
* The [[ListingType]].
|
@@ -82,6 +86,7 @@ export interface EditCommunity {
|
|
82
86
|
icon?: string;
|
83
87
|
banner?: string;
|
84
88
|
nsfw?: boolean;
|
89
|
+
posting_restricted_to_mods?: boolean;
|
85
90
|
auth: string;
|
86
91
|
}
|
87
92
|
export interface DeleteCommunity {
|
package/package.json
CHANGED