lemmy-js-client 0.19.0-rc.1 → 0.19.0-rc.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +27 -19
- package/dist/http.js +37 -31
- package/dist/index.d.ts +7 -17
- package/dist/types/AddAdmin.d.ts +0 -1
- package/dist/types/AddModToCommunity.d.ts +0 -1
- package/dist/types/ApproveRegistrationApplication.d.ts +0 -1
- package/dist/types/BanFromCommunity.d.ts +0 -1
- package/dist/types/BanPerson.d.ts +0 -1
- package/dist/types/BlockCommunity.d.ts +0 -1
- package/dist/types/BlockInstance.d.ts +6 -0
- package/dist/types/BlockInstanceResponse.d.ts +3 -0
- package/dist/types/BlockPerson.d.ts +0 -1
- package/dist/types/ChangePassword.d.ts +0 -1
- package/dist/types/CommentResponse.d.ts +0 -1
- package/dist/types/Community.d.ts +0 -2
- package/dist/types/CreateComment.d.ts +0 -2
- package/dist/types/CreateCommentLike.d.ts +0 -1
- package/dist/types/CreateCommentReport.d.ts +0 -1
- package/dist/types/CreateCommunity.d.ts +0 -1
- package/dist/types/CreateCustomEmoji.d.ts +0 -1
- package/dist/types/CreatePost.d.ts +0 -1
- package/dist/types/CreatePostLike.d.ts +0 -1
- package/dist/types/CreatePostReport.d.ts +0 -1
- package/dist/types/CreatePrivateMessage.d.ts +0 -1
- package/dist/types/CreatePrivateMessageReport.d.ts +0 -1
- package/dist/types/CreateSite.d.ts +0 -1
- package/dist/types/DeleteAccount.d.ts +1 -1
- package/dist/types/DeleteAccountResponse.d.ts +1 -1
- package/dist/types/DeleteComment.d.ts +0 -1
- package/dist/types/DeleteCommunity.d.ts +0 -1
- package/dist/types/DeleteCustomEmoji.d.ts +0 -1
- package/dist/types/DeletePost.d.ts +0 -1
- package/dist/types/DeletePrivateMessage.d.ts +0 -1
- package/dist/types/DistinguishComment.d.ts +0 -1
- package/dist/types/EditComment.d.ts +0 -2
- package/dist/types/EditCommunity.d.ts +0 -1
- package/dist/types/EditCustomEmoji.d.ts +0 -1
- package/dist/types/EditPost.d.ts +0 -1
- package/dist/types/EditPrivateMessage.d.ts +0 -1
- package/dist/types/EditSite.d.ts +0 -1
- package/dist/types/FeaturePost.d.ts +0 -1
- package/dist/types/FollowCommunity.d.ts +0 -1
- package/dist/types/GetComment.d.ts +0 -1
- package/dist/types/GetComments.d.ts +2 -1
- package/dist/types/GetCommunity.d.ts +0 -1
- package/dist/types/GetModlog.d.ts +0 -1
- package/dist/types/GetPersonDetails.d.ts +0 -1
- package/dist/types/GetPersonMentions.d.ts +0 -1
- package/dist/types/GetPost.d.ts +0 -1
- package/dist/types/GetPosts.d.ts +4 -2
- package/dist/types/GetPostsResponse.d.ts +2 -0
- package/dist/types/GetPrivateMessages.d.ts +2 -1
- package/dist/types/GetPrivateMessages.js +0 -1
- package/dist/types/GetReplies.d.ts +0 -1
- package/dist/types/GetReportCount.d.ts +0 -1
- package/dist/types/HideCommunity.d.ts +0 -1
- package/dist/types/ImageUpload.d.ts +9 -0
- package/dist/types/ImageUploadId.d.ts +1 -0
- package/dist/types/InstanceBlockView.d.ts +8 -0
- package/dist/types/ListCommentReports.d.ts +0 -1
- package/dist/types/ListCommunities.d.ts +0 -1
- package/dist/types/ListPostReports.d.ts +0 -1
- package/dist/types/ListPrivateMessageReports.d.ts +0 -1
- package/dist/types/ListRegistrationApplications.d.ts +0 -1
- package/dist/types/ListingType.d.ts +1 -1
- package/dist/types/LocalUser.d.ts +3 -0
- package/dist/types/LockPost.d.ts +0 -1
- package/dist/types/MarkCommentReplyAsRead.d.ts +0 -1
- package/dist/types/MarkPersonMentionAsRead.d.ts +0 -1
- package/dist/types/MarkPostAsRead.d.ts +0 -1
- package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -1
- package/dist/types/MyUserInfo.d.ts +2 -0
- package/dist/types/PaginationCursor.d.ts +1 -0
- package/dist/types/PasswordResetResponse.d.ts +1 -1
- package/dist/types/Person.d.ts +0 -2
- package/dist/types/PostAggregates.d.ts +3 -0
- package/dist/types/PostListingMode.d.ts +1 -0
- package/dist/types/PurgeComment.d.ts +0 -1
- package/dist/types/PurgeCommunity.d.ts +0 -1
- package/dist/types/PurgePerson.d.ts +0 -1
- package/dist/types/PurgePost.d.ts +0 -1
- package/dist/types/RemoveComment.d.ts +0 -1
- package/dist/types/RemoveCommunity.d.ts +0 -1
- package/dist/types/RemovePost.d.ts +0 -1
- package/dist/types/ResolveCommentReport.d.ts +0 -1
- package/dist/types/ResolveObject.d.ts +0 -1
- package/dist/types/ResolvePostReport.d.ts +0 -1
- package/dist/types/ResolvePrivateMessageReport.d.ts +0 -1
- package/dist/types/SaveComment.d.ts +0 -1
- package/dist/types/SavePost.d.ts +0 -1
- package/dist/types/SaveUserSettings.d.ts +0 -1
- package/dist/types/Search.d.ts +0 -1
- package/dist/types/SortType.d.ts +1 -1
- package/dist/types/TransferCommunity.d.ts +0 -1
- package/dist/types/VerifyEmailResponse.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types/CommunityJoin.d.ts +0 -4
- package/dist/types/CommunityJoinResponse.d.ts +0 -3
- package/dist/types/GetBannedPersons.d.ts +0 -3
- package/dist/types/GetCaptcha.d.ts +0 -3
- package/dist/types/GetFederatedInstances.d.ts +0 -3
- package/dist/types/GetSite.d.ts +0 -3
- package/dist/types/GetSite.js +0 -3
- package/dist/types/GetUnreadCount.d.ts +0 -3
- package/dist/types/GetUnreadCount.js +0 -3
- package/dist/types/GetUnreadRegistrationApplicationCount.d.ts +0 -3
- package/dist/types/GetUnreadRegistrationApplicationCount.js +0 -3
- package/dist/types/LeaveAdmin.d.ts +0 -3
- package/dist/types/LeaveAdmin.js +0 -3
- package/dist/types/MarkAllAsRead.d.ts +0 -3
- package/dist/types/MarkAllAsRead.js +0 -3
- package/dist/types/ModJoin.d.ts +0 -4
- package/dist/types/ModJoinResponse.d.ts +0 -3
- package/dist/types/ModJoinResponse.js +0 -3
- package/dist/types/PostJoin.d.ts +0 -4
- package/dist/types/PostJoinResponse.d.ts +0 -3
- package/dist/types/PostJoinResponse.js +0 -3
- package/dist/types/PostOrCommentId.d.ts +0 -7
- package/dist/types/PostOrCommentId.js +0 -2
- package/dist/types/UserJoin.d.ts +0 -3
- package/dist/types/UserJoin.js +0 -3
- package/dist/types/UserJoinResponse.d.ts +0 -3
- package/dist/types/UserJoinResponse.js +0 -3
- /package/dist/types/{CommunityJoin.js → BlockInstance.js} +0 -0
- /package/dist/types/{CommunityJoinResponse.js → BlockInstanceResponse.js} +0 -0
- /package/dist/types/{ModJoin.js → ImageUpload.js} +0 -0
- /package/dist/types/{GetBannedPersons.js → ImageUploadId.js} +0 -0
- /package/dist/types/{PostJoin.js → InstanceBlockView.js} +0 -0
- /package/dist/types/{GetCaptcha.js → PaginationCursor.js} +0 -0
- /package/dist/types/{GetFederatedInstances.js → PostListingMode.js} +0 -0
package/dist/types/EditPost.d.ts
CHANGED
package/dist/types/EditSite.d.ts
CHANGED
package/dist/types/GetPost.d.ts
CHANGED
package/dist/types/GetPosts.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
2
|
import type { ListingType } from "./ListingType";
|
3
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
3
4
|
import type { SortType } from "./SortType";
|
4
5
|
export interface GetPosts {
|
5
6
|
type_?: ListingType;
|
@@ -9,6 +10,7 @@ export interface GetPosts {
|
|
9
10
|
community_id?: CommunityId;
|
10
11
|
community_name?: string;
|
11
12
|
saved_only?: boolean;
|
12
|
-
|
13
|
-
|
13
|
+
liked_only?: boolean;
|
14
|
+
disliked_only?: boolean;
|
15
|
+
page_cursor?: PaginationCursor;
|
14
16
|
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { ImageUploadId } from "./ImageUploadId";
|
2
|
+
import type { LocalUserId } from "./LocalUserId";
|
3
|
+
export interface ImageUpload {
|
4
|
+
id: ImageUploadId;
|
5
|
+
local_user_id: LocalUserId;
|
6
|
+
pictrs_alias: string;
|
7
|
+
pictrs_delete_token: string;
|
8
|
+
published: string;
|
9
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type ImageUploadId = number;
|
@@ -1 +1 @@
|
|
1
|
-
export type ListingType = "All" | "Local" | "Subscribed";
|
1
|
+
export type ListingType = "All" | "Local" | "Subscribed" | "ModeratorView";
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { ListingType } from "./ListingType";
|
2
2
|
import type { LocalUserId } from "./LocalUserId";
|
3
3
|
import type { PersonId } from "./PersonId";
|
4
|
+
import type { PostListingMode } from "./PostListingMode";
|
4
5
|
import type { SortType } from "./SortType";
|
5
6
|
export interface LocalUser {
|
6
7
|
id: LocalUserId;
|
@@ -25,4 +26,6 @@ export interface LocalUser {
|
|
25
26
|
blur_nsfw: boolean;
|
26
27
|
auto_expand: boolean;
|
27
28
|
infinite_scroll_enabled: boolean;
|
29
|
+
admin: boolean;
|
30
|
+
post_listing_mode: PostListingMode;
|
28
31
|
}
|
package/dist/types/LockPost.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { CommunityBlockView } from "./CommunityBlockView";
|
2
2
|
import type { CommunityFollowerView } from "./CommunityFollowerView";
|
3
3
|
import type { CommunityModeratorView } from "./CommunityModeratorView";
|
4
|
+
import type { InstanceBlockView } from "./InstanceBlockView";
|
4
5
|
import type { LanguageId } from "./LanguageId";
|
5
6
|
import type { LocalUserView } from "./LocalUserView";
|
6
7
|
import type { PersonBlockView } from "./PersonBlockView";
|
@@ -9,6 +10,7 @@ export interface MyUserInfo {
|
|
9
10
|
follows: Array<CommunityFollowerView>;
|
10
11
|
moderates: Array<CommunityModeratorView>;
|
11
12
|
community_blocks: Array<CommunityBlockView>;
|
13
|
+
instance_blocks: Array<InstanceBlockView>;
|
12
14
|
person_blocks: Array<PersonBlockView>;
|
13
15
|
discussion_languages: Array<LanguageId>;
|
14
16
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type PaginationCursor = string;
|
@@ -1 +1 @@
|
|
1
|
-
export type PasswordResetResponse =
|
1
|
+
export type PasswordResetResponse = Record<string, never>;
|
package/dist/types/Person.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
|
+
import type { InstanceId } from "./InstanceId";
|
2
3
|
import type { PersonId } from "./PersonId";
|
3
4
|
import type { PostId } from "./PostId";
|
4
5
|
export interface PostAggregates {
|
@@ -18,4 +19,6 @@ export interface PostAggregates {
|
|
18
19
|
community_id: CommunityId;
|
19
20
|
creator_id: PersonId;
|
20
21
|
controversy_rank: number;
|
22
|
+
instance_id: InstanceId;
|
23
|
+
scaled_rank: number;
|
21
24
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type PostListingMode = "List" | "Card" | "SmallCard";
|
package/dist/types/SavePost.d.ts
CHANGED
package/dist/types/Search.d.ts
CHANGED
package/dist/types/SortType.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export type SortType = "Active" | "Hot" | "New" | "Old" | "TopDay" | "TopWeek" | "TopMonth" | "TopYear" | "TopAll" | "MostComments" | "NewComments" | "TopHour" | "TopSixHour" | "TopTwelveHour" | "TopThreeMonths" | "TopSixMonths" | "TopNineMonths" | "Controversial";
|
1
|
+
export type SortType = "Active" | "Hot" | "New" | "Old" | "TopDay" | "TopWeek" | "TopMonth" | "TopYear" | "TopAll" | "MostComments" | "NewComments" | "TopHour" | "TopSixHour" | "TopTwelveHour" | "TopThreeMonths" | "TopSixMonths" | "TopNineMonths" | "Controversial" | "Scaled";
|
@@ -1 +1 @@
|
|
1
|
-
export type VerifyEmailResponse =
|
1
|
+
export type VerifyEmailResponse = Record<string, never>;
|
package/package.json
CHANGED
package/dist/types/GetSite.d.ts
DELETED
package/dist/types/GetSite.js
DELETED
package/dist/types/LeaveAdmin.js
DELETED
package/dist/types/ModJoin.d.ts
DELETED
package/dist/types/PostJoin.d.ts
DELETED
package/dist/types/UserJoin.d.ts
DELETED