lemmy-js-client 1.0.0-multi-community.12 → 1.0.0-multi-community.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/http.d.ts CHANGED
@@ -148,6 +148,7 @@ import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
148
148
  import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
149
149
  import { GetMultiCommunity } from "./types/GetMultiCommunity";
150
150
  import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
151
+ import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
151
152
  type RequestOptions = Pick<RequestInit, "signal">;
152
153
  /**
153
154
  * Helps build lemmy HTTP requests.
@@ -749,6 +750,7 @@ export declare class LemmyHttp extends Controller {
749
750
  createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
750
751
  deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
751
752
  listMultiCommunities(form: ListMultiCommunities, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
753
+ followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
752
754
  /**
753
755
  * Set the headers (can be used to set the auth header)
754
756
  */
package/dist/http.js CHANGED
@@ -934,6 +934,9 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
934
934
  listMultiCommunities(form, options) {
935
935
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community/list", form, options);
936
936
  }
937
+ followMultiCommunity(form, options) {
938
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/follow", form, options);
939
+ }
937
940
  /**
938
941
  * Set the headers (can be used to set the auth header)
939
942
  */
@@ -2017,6 +2020,11 @@ __decorate([
2017
2020
  __param(0, (0, runtime_1.Body)()),
2018
2021
  __param(1, (0, runtime_1.Inject)())
2019
2022
  ], LemmyHttp.prototype, "listMultiCommunities", null);
2023
+ __decorate([
2024
+ (0, runtime_1.Post)("/multi_community/follow"),
2025
+ __param(0, (0, runtime_1.Body)()),
2026
+ __param(1, (0, runtime_1.Inject)())
2027
+ ], LemmyHttp.prototype, "followMultiCommunity", null);
2020
2028
  exports.LemmyHttp = LemmyHttp = __decorate([
2021
2029
  (0, runtime_1.Route)("api/v4")
2022
2030
  ], LemmyHttp);
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": "1.0.0-multi-community.12",
4
+ "version": "1.0.0-multi-community.13",
5
5
  "author": "Dessalines",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",