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<CommunityResponse>;
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 {
@@ -206,6 +206,7 @@ export interface CommunitySafe {
206
206
  local: boolean;
207
207
  icon?: string;
208
208
  banner?: string;
209
+ posting_restricted_to_mods: boolean;
209
210
  }
210
211
  export interface CommentReport {
211
212
  id: number;
@@ -143,6 +143,7 @@ export interface ModStickyPostView {
143
143
  export interface CommunityFollowerView {
144
144
  community: CommunitySafe;
145
145
  follower: PersonSafe;
146
+ pending?: boolean;
146
147
  }
147
148
  export interface CommunityBlockView {
148
149
  person: PersonSafe;
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.16.4-rc.1",
4
+ "version": "0.17.0-rc.2",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",