lemmy-js-client 1.0.0-multi-community.10 → 1.0.0-multi-community.11

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
@@ -146,6 +146,8 @@ import { ListMultiCommunities } from "./types/ListMultiCommunities";
146
146
  import { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
147
147
  import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
148
148
  import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
149
+ import { GetMultiCommunity } from "./types/GetMultiCommunity";
150
+ import { MultiCommunityView } from "./types/MultiCommunityView";
149
151
  type RequestOptions = Pick<RequestInit, "signal">;
150
152
  /**
151
153
  * Helps build lemmy HTTP requests.
@@ -743,6 +745,7 @@ export declare class LemmyHttp extends Controller {
743
745
  donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
744
746
  createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<MultiCommunity>;
745
747
  updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
748
+ getMultiCommunity(form: GetMultiCommunity, options?: RequestOptions): Promise<MultiCommunityView>;
746
749
  createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
747
750
  deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
748
751
  listMultiCommunities(form: ListMultiCommunities, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
package/dist/http.js CHANGED
@@ -922,6 +922,9 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
922
922
  updateMultiCommunity(form, options) {
923
923
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/multi_community", form, options);
924
924
  }
925
+ getMultiCommunity(form, options) {
926
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community", form, options);
927
+ }
925
928
  createMultiCommunityEntry(form, options) {
926
929
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/entry", form, options);
927
930
  }
@@ -1992,15 +1995,20 @@ __decorate([
1992
1995
  __param(0, (0, runtime_1.Body)()),
1993
1996
  __param(1, (0, runtime_1.Inject)())
1994
1997
  ], LemmyHttp.prototype, "updateMultiCommunity", null);
1998
+ __decorate([
1999
+ (0, runtime_1.Get)("/multi_community"),
2000
+ __param(0, (0, runtime_1.Body)()),
2001
+ __param(1, (0, runtime_1.Inject)())
2002
+ ], LemmyHttp.prototype, "getMultiCommunity", null);
1995
2003
  __decorate([
1996
2004
  (0, runtime_1.Security)("bearerAuth"),
1997
- (0, runtime_1.Put)("/multi_community/entry"),
2005
+ (0, runtime_1.Post)("/multi_community/entry"),
1998
2006
  __param(0, (0, runtime_1.Body)()),
1999
2007
  __param(1, (0, runtime_1.Inject)())
2000
2008
  ], LemmyHttp.prototype, "createMultiCommunityEntry", null);
2001
2009
  __decorate([
2002
2010
  (0, runtime_1.Security)("bearerAuth"),
2003
- (0, runtime_1.Put)("/multi_community/entry"),
2011
+ (0, runtime_1.Delete)("/multi_community/entry"),
2004
2012
  __param(0, (0, runtime_1.Body)()),
2005
2013
  __param(1, (0, runtime_1.Inject)())
2006
2014
  ], LemmyHttp.prototype, "deleteMultiCommunityEntry", null);
package/dist/index.d.ts CHANGED
@@ -129,6 +129,7 @@ export { GetCommunityResponse } from "./types/GetCommunityResponse";
129
129
  export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
130
130
  export { GetModlog } from "./types/GetModlog";
131
131
  export { GetModlogResponse } from "./types/GetModlogResponse";
132
+ export { GetMultiCommunity } from "./types/GetMultiCommunity";
132
133
  export { GetPersonDetails } from "./types/GetPersonDetails";
133
134
  export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
134
135
  export { GetPost } from "./types/GetPost";
@@ -0,0 +1,4 @@
1
+ import type { MultiCommunityId } from "./MultiCommunityId";
2
+ export type GetMultiCommunity = {
3
+ id: MultiCommunityId;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,10 +5,10 @@ export type MultiCommunity = {
5
5
  id: MultiCommunityId;
6
6
  creator_id: PersonId;
7
7
  name: string;
8
- title: string | null;
9
- description: string | null;
8
+ title?: string;
9
+ description?: string;
10
10
  deleted: boolean;
11
11
  ap_id: DbUrl;
12
12
  published: string;
13
- updated: string | null;
13
+ updated?: string;
14
14
  };
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.10",
4
+ "version": "1.0.0-multi-community.11",
5
5
  "author": "Dessalines",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",