lemmy-js-client 1.0.0-multi-community.17 → 1.0.0-multi-community.18

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
@@ -138,7 +138,6 @@ import { ListPersonReadResponse } from "./types/ListPersonReadResponse";
138
138
  import { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
139
139
  import { CommunityIdQuery } from "./types/CommunityIdQuery";
140
140
  import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
141
- import { MultiCommunity } from "./types/MultiCommunity";
142
141
  import { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
143
142
  import { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
144
143
  import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
@@ -746,7 +745,7 @@ export declare class LemmyHttp extends Controller {
746
745
  * Mark donation dialog as shown, so it isn't displayed anymore.
747
746
  */
748
747
  donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
749
- createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<MultiCommunity>;
748
+ createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
750
749
  updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
751
750
  getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
752
751
  createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
package/dist/index.d.ts CHANGED
@@ -254,6 +254,7 @@ export { ModlogCombinedView } from "./types/ModlogCombinedView";
254
254
  export { MultiCommunity } from "./types/MultiCommunity";
255
255
  export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
256
256
  export { MultiCommunityId } from "./types/MultiCommunityId";
257
+ export { MultiCommunityView } from "./types/MultiCommunityView";
257
258
  export { MyUserInfo } from "./types/MyUserInfo";
258
259
  export { OAuthAccount } from "./types/OAuthAccount";
259
260
  export { OAuthProvider } from "./types/OAuthProvider";
@@ -1,6 +1,6 @@
1
1
  import type { CommunityView } from "./CommunityView";
2
- import type { MultiCommunity } from "./MultiCommunity";
2
+ import type { MultiCommunityView } from "./MultiCommunityView";
3
3
  export type GetMultiCommunityResponse = {
4
- multi: MultiCommunity;
4
+ multi: MultiCommunityView;
5
5
  communities: Array<CommunityView>;
6
6
  };
@@ -15,6 +15,8 @@ export type LemmyErrorType = {
15
15
  error: "not_an_admin";
16
16
  } | {
17
17
  error: "cant_block_yourself";
18
+ } | {
19
+ error: "cant_note_yourself";
18
20
  } | {
19
21
  error: "cant_block_admin";
20
22
  } | {
@@ -1,4 +1,4 @@
1
- import type { MultiCommunity } from "./MultiCommunity";
1
+ import type { MultiCommunityView } from "./MultiCommunityView";
2
2
  export type ListMultiCommunitiesResponse = {
3
- multi_communities: Array<MultiCommunity>;
3
+ multi_communities: Array<MultiCommunityView>;
4
4
  };
@@ -12,6 +12,6 @@ export type MultiCommunity = {
12
12
  local: boolean;
13
13
  deleted: boolean;
14
14
  ap_id: DbUrl;
15
- published: string;
16
- updated?: string;
15
+ published_at: string;
16
+ updated_at?: string;
17
17
  };
@@ -0,0 +1,6 @@
1
+ import type { MultiCommunity } from "./MultiCommunity";
2
+ import type { Person } from "./Person";
3
+ export type MultiCommunityView = {
4
+ multi: MultiCommunity;
5
+ owner: Person;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,4 +3,12 @@ export type PersonActions = {
3
3
  * When the person was blocked.
4
4
  */
5
5
  blocked_at?: string;
6
+ /**
7
+ * When the person was noted.
8
+ */
9
+ noted_at?: string;
10
+ /**
11
+ * A note about the person.
12
+ */
13
+ note?: string;
6
14
  };
@@ -1,11 +1,13 @@
1
1
  import type { InstanceActions } from "./InstanceActions";
2
2
  import type { Person } from "./Person";
3
+ import type { PersonActions } from "./PersonActions";
3
4
  /**
4
5
  * A person view.
5
6
  */
6
7
  export type PersonView = {
7
8
  person: Person;
8
9
  is_admin: boolean;
10
+ person_actions?: PersonActions;
9
11
  home_instance_actions?: InstanceActions;
10
12
  local_instance_actions?: InstanceActions;
11
13
  creator_banned: boolean;
@@ -1,6 +1,6 @@
1
1
  import type { CommentView } from "./CommentView";
2
2
  import type { CommunityView } from "./CommunityView";
3
- import type { MultiCommunity } from "./MultiCommunity";
3
+ import type { MultiCommunityView } from "./MultiCommunityView";
4
4
  import type { PersonView } from "./PersonView";
5
5
  import type { PostView } from "./PostView";
6
6
  export type SearchCombinedView = ({
@@ -13,4 +13,4 @@ export type SearchCombinedView = ({
13
13
  type_: "Person";
14
14
  } & PersonView) | ({
15
15
  type_: "MultiCommunity";
16
- } & MultiCommunity);
16
+ } & MultiCommunityView);
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The type of content returned from a search.
3
3
  */
4
- export type SearchType = "All" | "Comments" | "Posts" | "Communities" | "Users";
4
+ export type SearchType = "All" | "Comments" | "Posts" | "Communities" | "Users" | "MultiCommunities";
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.17",
4
+ "version": "1.0.0-multi-community.18",
5
5
  "author": "Dessalines",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",