lemmy-js-client 0.20.0-private-community.2 → 0.20.0-private-community.4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/http.d.ts CHANGED
@@ -149,7 +149,7 @@ import { ListTaglinesResponse } from "./types/ListTaglinesResponse";
149
149
  import { ListCustomEmojis } from "./types/ListCustomEmojis";
150
150
  import { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
151
151
  import { GetRandomCommunity } from "./types/GetRandomCommunity";
152
- import { ApproveCommunityPendingFollows } from "./types/ApproveCommunityPendingFollows";
152
+ import { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
153
153
  import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
154
154
  import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
155
155
  import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
@@ -299,7 +299,7 @@ export declare class LemmyHttp {
299
299
  followCommunity(form: FollowCommunity): Promise<CommunityResponse>;
300
300
  getCommunityPendingFollowsCount(community_id: CommunityId): Promise<GetCommunityPendingFollowsCountResponse>;
301
301
  listCommunityPendingFollows(form: ListCommunityPendingFollows): Promise<ListCommunityPendingFollowsResponse>;
302
- approveCommunityPendingFollow(form: ApproveCommunityPendingFollows): Promise<SuccessResponse>;
302
+ approveCommunityPendingFollow(form: ApproveCommunityPendingFollower): Promise<SuccessResponse>;
303
303
  /**
304
304
  * Block a community.
305
305
  *
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ export { AdminPurgePerson } from "./types/AdminPurgePerson";
13
13
  export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
14
14
  export { AdminPurgePost } from "./types/AdminPurgePost";
15
15
  export { AdminPurgePostView } from "./types/AdminPurgePostView";
16
- export { ApproveCommunityPendingFollows } from "./types/ApproveCommunityPendingFollows";
16
+ export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
17
17
  export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
18
18
  export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
19
19
  export { BanFromCommunity } from "./types/BanFromCommunity";
@@ -1,6 +1,7 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
2
  import type { PersonId } from "./PersonId";
3
- export interface ApproveCommunityPendingFollows {
3
+ export interface ApproveCommunityPendingFollower {
4
4
  community_id: CommunityId;
5
5
  follower_id: PersonId;
6
+ approve: boolean;
6
7
  }
@@ -130,6 +130,8 @@ export type LemmyErrorType = {
130
130
  error: "person_is_banned_from_community";
131
131
  } | {
132
132
  error: "object_is_not_public";
133
+ } | {
134
+ error: "object_is_not_private";
133
135
  } | {
134
136
  error: "invalid_community";
135
137
  } | {
@@ -1 +1 @@
1
- export type SubscribedType = "Subscribed" | "NotSubscribed" | "Pending";
1
+ export type SubscribedType = "Subscribed" | "NotSubscribed" | "Pending" | "ApprovalRequired";
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-private-community.2",
4
+ "version": "0.20.0-private-community.4",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",