lemmy-js-client 0.17.0-rc.1 → 0.17.0-rc.4

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, FollowCommunityResponse, GetCommunity, GetCommunityResponse, ListCommunities, ListCommunitiesResponse, RemoveCommunity, TransferCommunity } from "./interfaces/api/community";
2
+ import { AddModToCommunity, AddModToCommunityResponse, BanFromCommunity, BanFromCommunityResponse, BlockCommunity, BlockCommunityResponse, CommunityResponse, CreateCommunity, DeleteCommunity, EditCommunity, FollowCommunity, 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<FollowCommunityResponse>;
75
+ followCommunity(form: FollowCommunity): Promise<CommunityResponse>;
76
76
  /**
77
77
  * Block a community.
78
78
  */
@@ -1,5 +1,5 @@
1
1
  import { Site } from "../source";
2
- import { CommunityFollowerView, CommunityModeratorView, CommunityView, PersonViewSafe } from "../views";
2
+ import { CommunityModeratorView, CommunityView, PersonViewSafe } from "../views";
3
3
  /**
4
4
  * You can use either `id` or `name` as an id.
5
5
  *
@@ -29,9 +29,6 @@ export interface CreateCommunity {
29
29
  export interface CommunityResponse {
30
30
  community_view: CommunityView;
31
31
  }
32
- export interface FollowCommunityResponse {
33
- community_follower_view: CommunityFollowerView;
34
- }
35
32
  export interface ListCommunities {
36
33
  /**
37
34
  * The [[ListingType]].
@@ -70,6 +70,7 @@ export interface CreateSite {
70
70
  application_question?: string;
71
71
  private_instance?: boolean;
72
72
  default_theme?: string;
73
+ default_post_listing_type?: string;
73
74
  auth: string;
74
75
  }
75
76
  export interface EditSite {
@@ -87,6 +88,7 @@ export interface EditSite {
87
88
  application_question?: string;
88
89
  private_instance?: boolean;
89
90
  default_theme?: string;
91
+ default_post_listing_type?: string;
90
92
  auth: string;
91
93
  }
92
94
  export interface GetSite {
@@ -25,7 +25,6 @@ export interface LocalUserSettingsView {
25
25
  }
26
26
  export interface SiteView {
27
27
  site: Site;
28
- creator: PersonSafe;
29
28
  counts: SiteAggregates;
30
29
  }
31
30
  export interface PrivateMessageView {
@@ -143,7 +142,6 @@ export interface ModStickyPostView {
143
142
  export interface CommunityFollowerView {
144
143
  community: CommunitySafe;
145
144
  follower: PersonSafe;
146
- pending?: boolean;
147
145
  }
148
146
  export interface CommunityBlockView {
149
147
  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.17.0-rc.1",
4
+ "version": "0.17.0-rc.4",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",