lemmy-js-client 0.18.3-rc.3 → 0.19.0-rc.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +21 -16
- package/dist/http.js +33 -27
- package/dist/index.d.ts +4 -19
- 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/BlockPerson.d.ts +0 -1
- package/dist/types/ChangePassword.d.ts +0 -1
- package/dist/types/CommentAggregates.d.ts +1 -0
- package/dist/types/CommentResponse.d.ts +0 -1
- package/dist/types/CommentSortType.d.ts +1 -1
- 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/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 +2 -2
- 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/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 +6 -2
- 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/Person.d.ts +0 -1
- package/dist/types/PersonSortType.d.ts +1 -0
- package/dist/types/PostAggregates.d.ts +5 -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 +1 -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/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/GetFederatedInstances.js +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/ModJoin.js +0 -2
- 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/PostJoin.js +0 -2
- 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 → ImageUpload.js} +0 -0
- /package/dist/types/{CommunityJoinResponse.js → ImageUploadId.js} +0 -0
- /package/dist/types/{GetBannedPersons.js → PersonSortType.js} +0 -0
- /package/dist/types/{GetCaptcha.js → PostListingMode.js} +0 -0
package/dist/types/GetPost.d.ts
CHANGED
package/dist/types/GetPosts.d.ts
CHANGED
@@ -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,14 +1,13 @@
|
|
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;
|
7
8
|
person_id: PersonId;
|
8
9
|
email?: string;
|
9
10
|
show_nsfw: boolean;
|
10
|
-
blur_nsfw: boolean;
|
11
|
-
auto_expand: boolean;
|
12
11
|
theme: string;
|
13
12
|
default_sort_type: SortType;
|
14
13
|
default_listing_type: ListingType;
|
@@ -24,4 +23,9 @@ export interface LocalUser {
|
|
24
23
|
accepted_application: boolean;
|
25
24
|
totp_2fa_url?: string;
|
26
25
|
open_links_in_new_tab: boolean;
|
26
|
+
blur_nsfw: boolean;
|
27
|
+
auto_expand: boolean;
|
28
|
+
infinite_scroll_enabled: boolean;
|
29
|
+
admin: boolean;
|
30
|
+
post_listing_mode: PostListingMode;
|
27
31
|
}
|
package/dist/types/LockPost.d.ts
CHANGED
package/dist/types/Person.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export type PersonSortType = "New" | "Old" | "MostComments" | "CommentScore" | "PostScore" | "PostCount";
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import type { CommunityId } from "./CommunityId";
|
2
|
+
import type { PersonId } from "./PersonId";
|
1
3
|
import type { PostId } from "./PostId";
|
2
4
|
export interface PostAggregates {
|
3
5
|
id: number;
|
@@ -13,4 +15,7 @@ export interface PostAggregates {
|
|
13
15
|
featured_local: boolean;
|
14
16
|
hot_rank: number;
|
15
17
|
hot_rank_active: number;
|
18
|
+
community_id: CommunityId;
|
19
|
+
creator_id: PersonId;
|
20
|
+
controversy_rank: number;
|
16
21
|
}
|
@@ -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";
|
1
|
+
export type SortType = "Active" | "Hot" | "New" | "Old" | "TopDay" | "TopWeek" | "TopMonth" | "TopYear" | "TopAll" | "MostComments" | "NewComments" | "TopHour" | "TopSixHour" | "TopTwelveHour" | "TopThreeMonths" | "TopSixMonths" | "TopNineMonths" | "Controversial";
|
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/ModJoin.js
DELETED
package/dist/types/PostJoin.d.ts
DELETED
package/dist/types/PostJoin.js
DELETED
package/dist/types/UserJoin.d.ts
DELETED
package/dist/types/UserJoin.js
DELETED
File without changes
|
File without changes
|
File without changes
|
File without changes
|