lemmy-js-client 1.0.0-multi-community.15 → 1.0.0-multi-community.17
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 +3 -5
- package/dist/http.js +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/other_types.d.ts +6 -0
- package/dist/types/GetMultiCommunityResponse.d.ts +1 -1
- package/dist/types/LocalSite.d.ts +2 -0
- package/dist/types/Search.d.ts +1 -1
- package/dist/types/SearchCombinedView.d.ts +4 -1
- package/package.json +1 -1
- package/dist/types/MultiCommunityView.d.ts +0 -6
- package/dist/types/MultiCommunityView.js +0 -2
package/dist/http.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Controller } from "@tsoa/runtime";
|
2
|
-
import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
|
2
|
+
import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetMultiCommunityI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListMultiCommunitiesI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
|
3
3
|
import { AddAdmin } from "./types/AddAdmin";
|
4
4
|
import { AddAdminResponse } from "./types/AddAdminResponse";
|
5
5
|
import { AddModToCommunity } from "./types/AddModToCommunity";
|
@@ -140,11 +140,9 @@ import { CommunityIdQuery } from "./types/CommunityIdQuery";
|
|
140
140
|
import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
|
141
141
|
import { MultiCommunity } from "./types/MultiCommunity";
|
142
142
|
import { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
143
|
-
import { ListMultiCommunities } from "./types/ListMultiCommunities";
|
144
143
|
import { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
145
144
|
import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
|
146
145
|
import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
|
147
|
-
import { GetMultiCommunity } from "./types/GetMultiCommunity";
|
148
146
|
import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
149
147
|
import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
150
148
|
import { ListLoginsResponse } from "./types/ListLoginsResponse";
|
@@ -750,10 +748,10 @@ export declare class LemmyHttp extends Controller {
|
|
750
748
|
donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
|
751
749
|
createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<MultiCommunity>;
|
752
750
|
updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
|
753
|
-
getMultiCommunity(form:
|
751
|
+
getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
|
754
752
|
createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
|
755
753
|
deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
|
756
|
-
listMultiCommunities(form:
|
754
|
+
listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
|
757
755
|
followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
|
758
756
|
/**
|
759
757
|
* Set the headers (can be used to set the auth header)
|
package/dist/http.js
CHANGED
@@ -2014,7 +2014,7 @@ __decorate([
|
|
2014
2014
|
], LemmyHttp.prototype, "updateMultiCommunity", null);
|
2015
2015
|
__decorate([
|
2016
2016
|
(0, runtime_1.Get)("/multi_community"),
|
2017
|
-
__param(0, (0, runtime_1.
|
2017
|
+
__param(0, (0, runtime_1.Queries)()),
|
2018
2018
|
__param(1, (0, runtime_1.Inject)())
|
2019
2019
|
], LemmyHttp.prototype, "getMultiCommunity", null);
|
2020
2020
|
__decorate([
|
@@ -2031,7 +2031,7 @@ __decorate([
|
|
2031
2031
|
], LemmyHttp.prototype, "deleteMultiCommunityEntry", null);
|
2032
2032
|
__decorate([
|
2033
2033
|
(0, runtime_1.Get)("/multi_community/list"),
|
2034
|
-
__param(0, (0, runtime_1.
|
2034
|
+
__param(0, (0, runtime_1.Queries)()),
|
2035
2035
|
__param(1, (0, runtime_1.Inject)())
|
2036
2036
|
], LemmyHttp.prototype, "listMultiCommunities", null);
|
2037
2037
|
__decorate([
|
package/dist/index.d.ts
CHANGED
@@ -254,7 +254,6 @@ 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";
|
258
257
|
export { MyUserInfo } from "./types/MyUserInfo";
|
259
258
|
export { OAuthAccount } from "./types/OAuthAccount";
|
260
259
|
export { OAuthProvider } from "./types/OAuthProvider";
|
package/dist/other_types.d.ts
CHANGED
@@ -6,6 +6,7 @@ import { GetComments } from "./types/GetComments";
|
|
6
6
|
import { GetCommunity } from "./types/GetCommunity";
|
7
7
|
import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
|
8
8
|
import { GetModlog } from "./types/GetModlog";
|
9
|
+
import { GetMultiCommunity } from "./types/GetMultiCommunity";
|
9
10
|
import { GetPersonDetails } from "./types/GetPersonDetails";
|
10
11
|
import { GetPost } from "./types/GetPost";
|
11
12
|
import { GetPosts } from "./types/GetPosts";
|
@@ -19,6 +20,7 @@ import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
|
|
19
20
|
import { ListCustomEmojis } from "./types/ListCustomEmojis";
|
20
21
|
import { ListInbox } from "./types/ListInbox";
|
21
22
|
import { ListMedia } from "./types/ListMedia";
|
23
|
+
import { ListMultiCommunities } from "./types/ListMultiCommunities";
|
22
24
|
import { ListPersonContent } from "./types/ListPersonContent";
|
23
25
|
import { ListPersonHidden } from "./types/ListPersonHidden";
|
24
26
|
import { ListPersonLiked } from "./types/ListPersonLiked";
|
@@ -98,3 +100,7 @@ export interface AdminListUsersI extends AdminListUsers {
|
|
98
100
|
}
|
99
101
|
export interface CommunityIdQueryI extends CommunityIdQuery {
|
100
102
|
}
|
103
|
+
export interface ListMultiCommunitiesI extends ListMultiCommunities {
|
104
|
+
}
|
105
|
+
export interface GetMultiCommunityI extends GetMultiCommunity {
|
106
|
+
}
|
@@ -3,6 +3,7 @@ import type { FederationMode } from "./FederationMode";
|
|
3
3
|
import type { ListingType } from "./ListingType";
|
4
4
|
import type { LocalSiteId } from "./LocalSiteId";
|
5
5
|
import type { MultiCommunityId } from "./MultiCommunityId";
|
6
|
+
import type { PersonId } from "./PersonId";
|
6
7
|
import type { PostListingMode } from "./PostListingMode";
|
7
8
|
import type { PostSortType } from "./PostSortType";
|
8
9
|
import type { RegistrationMode } from "./RegistrationMode";
|
@@ -143,4 +144,5 @@ export type LocalSite = {
|
|
143
144
|
*/
|
144
145
|
disable_email_notifications: boolean;
|
145
146
|
suggested_communities?: MultiCommunityId;
|
147
|
+
multi_comm_follower: PersonId;
|
146
148
|
};
|
package/dist/types/Search.d.ts
CHANGED
@@ -8,7 +8,7 @@ import type { SearchType } from "./SearchType";
|
|
8
8
|
* Searches the site, given a search term, and some optional filters.
|
9
9
|
*/
|
10
10
|
export type Search = {
|
11
|
-
|
11
|
+
q: string;
|
12
12
|
community_id?: CommunityId;
|
13
13
|
community_name?: string;
|
14
14
|
creator_id?: PersonId;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { CommentView } from "./CommentView";
|
2
2
|
import type { CommunityView } from "./CommunityView";
|
3
|
+
import type { MultiCommunity } from "./MultiCommunity";
|
3
4
|
import type { PersonView } from "./PersonView";
|
4
5
|
import type { PostView } from "./PostView";
|
5
6
|
export type SearchCombinedView = ({
|
@@ -10,4 +11,6 @@ export type SearchCombinedView = ({
|
|
10
11
|
type_: "Community";
|
11
12
|
} & CommunityView) | ({
|
12
13
|
type_: "Person";
|
13
|
-
} & PersonView)
|
14
|
+
} & PersonView) | ({
|
15
|
+
type_: "MultiCommunity";
|
16
|
+
} & MultiCommunity);
|
package/package.json
CHANGED