lemmy-js-client 1.0.0-multi-community-name-get-posts.0 → 1.0.0-multi-community-query.0
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/index.d.ts +2 -0
- package/dist/types/GetPersonDetailsResponse.d.ts +2 -0
- package/dist/types/GetSiteResponse.d.ts +6 -0
- package/dist/types/ListMultiCommunities.d.ts +13 -1
- package/dist/types/ListMultiCommunitiesResponse.d.ts +6 -0
- package/dist/types/ModlogView.d.ts +6 -6
- package/dist/types/MultiCommunity.d.ts +3 -0
- package/dist/types/MultiCommunityListingType.d.ts +4 -0
- package/dist/types/MultiCommunityListingType.js +3 -0
- package/dist/types/MultiCommunitySortType.d.ts +1 -0
- package/dist/types/MultiCommunitySortType.js +3 -0
- package/dist/types/MyUserInfo.d.ts +2 -0
- package/dist/types/RegistrationApplication.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -201,7 +201,9 @@ export { MultiCommunity } from "./types/MultiCommunity";
|
|
|
201
201
|
export { MultiCommunityEntry } from "./types/MultiCommunityEntry";
|
|
202
202
|
export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
|
|
203
203
|
export { MultiCommunityId } from "./types/MultiCommunityId";
|
|
204
|
+
export { MultiCommunityListingType } from "./types/MultiCommunityListingType";
|
|
204
205
|
export { MultiCommunityResponse } from "./types/MultiCommunityResponse";
|
|
206
|
+
export { MultiCommunitySortType } from "./types/MultiCommunitySortType";
|
|
205
207
|
export { MultiCommunityView } from "./types/MultiCommunityView";
|
|
206
208
|
export { MyUserInfo } from "./types/MyUserInfo";
|
|
207
209
|
export { NotePerson } from "./types/NotePerson";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CommunityModeratorView } from "./CommunityModeratorView";
|
|
2
|
+
import type { MultiCommunityView } from "./MultiCommunityView";
|
|
2
3
|
import type { PersonView } from "./PersonView";
|
|
3
4
|
import type { Site } from "./Site";
|
|
4
5
|
/**
|
|
@@ -8,4 +9,5 @@ export type GetPersonDetailsResponse = {
|
|
|
8
9
|
person_view: PersonView;
|
|
9
10
|
site?: Site;
|
|
10
11
|
moderates: Array<CommunityModeratorView>;
|
|
12
|
+
multi_communities_created: Array<MultiCommunityView>;
|
|
11
13
|
};
|
|
@@ -28,4 +28,10 @@ export type GetSiteResponse = {
|
|
|
28
28
|
blocked_urls: Array<LocalSiteUrlBlocklist>;
|
|
29
29
|
image_upload_disabled: boolean;
|
|
30
30
|
active_plugins: Array<PluginMetadata>;
|
|
31
|
+
/**
|
|
32
|
+
* The number of seconds between the last application published, and approved / denied time.
|
|
33
|
+
*
|
|
34
|
+
* Useful for estimating when your application will be approved.
|
|
35
|
+
*/
|
|
36
|
+
last_application_duration_seconds?: number;
|
|
31
37
|
};
|
|
@@ -1,5 +1,17 @@
|
|
|
1
|
+
import type { MultiCommunityListingType } from "./MultiCommunityListingType";
|
|
2
|
+
import type { MultiCommunitySortType } from "./MultiCommunitySortType";
|
|
3
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
|
1
4
|
import type { PersonId } from "./PersonId";
|
|
2
5
|
export type ListMultiCommunities = {
|
|
6
|
+
type_?: MultiCommunityListingType;
|
|
7
|
+
sort?: MultiCommunitySortType;
|
|
3
8
|
creator_id?: PersonId;
|
|
4
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Filter to within a given time range, in seconds.
|
|
11
|
+
* IE 60 would give results for the past minute.
|
|
12
|
+
*/
|
|
13
|
+
time_range_seconds?: number;
|
|
14
|
+
page_cursor?: PaginationCursor;
|
|
15
|
+
page_back?: boolean;
|
|
16
|
+
limit?: number;
|
|
5
17
|
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { MultiCommunityView } from "./MultiCommunityView";
|
|
2
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
|
2
3
|
export type ListMultiCommunitiesResponse = {
|
|
3
4
|
multi_communities: Array<MultiCommunityView>;
|
|
5
|
+
/**
|
|
6
|
+
* the pagination cursor to use to fetch the next page
|
|
7
|
+
*/
|
|
8
|
+
next_page?: PaginationCursor;
|
|
9
|
+
prev_page?: PaginationCursor;
|
|
4
10
|
};
|
|
@@ -6,10 +6,10 @@ import type { Person } from "./Person";
|
|
|
6
6
|
import type { Post } from "./Post";
|
|
7
7
|
export type ModlogView = {
|
|
8
8
|
modlog: Modlog;
|
|
9
|
-
moderator
|
|
10
|
-
target_person
|
|
11
|
-
target_instance
|
|
12
|
-
target_community
|
|
13
|
-
target_post
|
|
14
|
-
target_comment
|
|
9
|
+
moderator?: Person;
|
|
10
|
+
target_person?: Person;
|
|
11
|
+
target_instance?: Instance;
|
|
12
|
+
target_community?: Community;
|
|
13
|
+
target_post?: Post;
|
|
14
|
+
target_comment?: Comment;
|
|
15
15
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type MultiCommunitySortType = "new" | "old" | "name_asc" | "name_desc" | "communities" | "subscribers" | "subscribers_local";
|
|
@@ -4,6 +4,7 @@ import type { CommunityModeratorView } from "./CommunityModeratorView";
|
|
|
4
4
|
import type { Instance } from "./Instance";
|
|
5
5
|
import type { LanguageId } from "./LanguageId";
|
|
6
6
|
import type { LocalUserView } from "./LocalUserView";
|
|
7
|
+
import type { MultiCommunityView } from "./MultiCommunityView";
|
|
7
8
|
import type { Person } from "./Person";
|
|
8
9
|
/**
|
|
9
10
|
* Your user info.
|
|
@@ -12,6 +13,7 @@ export type MyUserInfo = {
|
|
|
12
13
|
local_user_view: LocalUserView;
|
|
13
14
|
follows: Array<CommunityFollowerView>;
|
|
14
15
|
moderates: Array<CommunityModeratorView>;
|
|
16
|
+
multi_community_follows: Array<MultiCommunityView>;
|
|
15
17
|
community_blocks: Array<Community>;
|
|
16
18
|
instance_communities_blocks: Array<Instance>;
|
|
17
19
|
instance_persons_blocks: Array<Instance>;
|
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-
|
|
4
|
+
"version": "1.0.0-multi-community-query.0",
|
|
5
5
|
"author": "Dessalines",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"prettier-plugin-import-sort": "^0.0.7",
|
|
39
39
|
"prettier-plugin-organize-imports": "^4.0.0",
|
|
40
40
|
"prettier-plugin-packagejson": "^2.5.1",
|
|
41
|
-
"sortpack": "^
|
|
41
|
+
"sortpack": "^4.0.0",
|
|
42
42
|
"tsoa": "^6.6.0",
|
|
43
43
|
"typedoc": "^0.28.0",
|
|
44
44
|
"typescript": "^5.5.4",
|