lemmy-js-client 1.0.0-multi-community.2 → 1.0.0-multi-community.4

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
@@ -729,10 +729,10 @@ export declare class LemmyHttp extends Controller {
729
729
  /**
730
730
  * Mark donation dialog as shown, so it isn't displayed anymore.
731
731
  */
732
- donation_dialog_shown(options?: RequestOptions): Promise<SuccessResponse>;
733
- create_multi_community(form: CreateMultiCommunity, options?: RequestOptions): Promise<MultiCommunity>;
734
- update_multi_community(form: UpdateMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
735
- list_multi_communities(form: ListMultiCommunities, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
732
+ donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
733
+ createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<MultiCommunity>;
734
+ updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
735
+ listMultiCommunities(form: ListMultiCommunities, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
736
736
  /**
737
737
  * Set the headers (can be used to set the auth header)
738
738
  */
package/dist/http.js CHANGED
@@ -901,16 +901,16 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
901
901
  /**
902
902
  * Mark donation dialog as shown, so it isn't displayed anymore.
903
903
  */
904
- donation_dialog_shown(options) {
904
+ donationDialogShown(options) {
905
905
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/donation_dialog_shown", {}, options);
906
906
  }
907
- create_multi_community(form, options) {
907
+ createMultiCommunity(form, options) {
908
908
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community", form, options);
909
909
  }
910
- update_multi_community(form, options) {
910
+ updateMultiCommunity(form, options) {
911
911
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/multi_community", form, options);
912
912
  }
913
- list_multi_communities(form, options) {
913
+ listMultiCommunities(form, options) {
914
914
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community/list", form, options);
915
915
  }
916
916
  /**
@@ -1947,24 +1947,24 @@ __decorate([
1947
1947
  (0, runtime_1.Security)("bearerAuth"),
1948
1948
  (0, runtime_1.Post)("/user/donation_dialog_shown"),
1949
1949
  __param(0, (0, runtime_1.Inject)())
1950
- ], LemmyHttp.prototype, "donation_dialog_shown", null);
1950
+ ], LemmyHttp.prototype, "donationDialogShown", null);
1951
1951
  __decorate([
1952
1952
  (0, runtime_1.Security)("bearerAuth"),
1953
1953
  (0, runtime_1.Post)("/multi_community"),
1954
1954
  __param(0, (0, runtime_1.Body)()),
1955
1955
  __param(1, (0, runtime_1.Inject)())
1956
- ], LemmyHttp.prototype, "create_multi_community", null);
1956
+ ], LemmyHttp.prototype, "createMultiCommunity", null);
1957
1957
  __decorate([
1958
1958
  (0, runtime_1.Security)("bearerAuth"),
1959
1959
  (0, runtime_1.Put)("/multi_community"),
1960
1960
  __param(0, (0, runtime_1.Body)()),
1961
1961
  __param(1, (0, runtime_1.Inject)())
1962
- ], LemmyHttp.prototype, "update_multi_community", null);
1962
+ ], LemmyHttp.prototype, "updateMultiCommunity", null);
1963
1963
  __decorate([
1964
- (0, runtime_1.Put)("/multi_community/list"),
1964
+ (0, runtime_1.Get)("/multi_community/list"),
1965
1965
  __param(0, (0, runtime_1.Body)()),
1966
1966
  __param(1, (0, runtime_1.Inject)())
1967
- ], LemmyHttp.prototype, "list_multi_communities", null);
1967
+ ], LemmyHttp.prototype, "listMultiCommunities", null);
1968
1968
  exports.LemmyHttp = LemmyHttp = __decorate([
1969
1969
  (0, runtime_1.Route)("api/v4")
1970
1970
  ], LemmyHttp);
@@ -1,5 +1,6 @@
1
1
  import type { CommentView } from "./CommentView";
2
2
  import type { CommunityView } from "./CommunityView";
3
+ import { MultiCommunityView } from "./MultiCommunityView";
3
4
  import type { PersonView } from "./PersonView";
4
5
  import type { PostView } from "./PostView";
5
6
  /**
@@ -10,4 +11,5 @@ export type ResolveObjectResponse = {
10
11
  post?: PostView;
11
12
  community?: CommunityView;
12
13
  person?: PersonView;
14
+ multi_community?: MultiCommunityView;
13
15
  };
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.2",
4
+ "version": "1.0.0-multi-community.4",
5
5
  "author": "Dessalines",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",