lemmy-js-client 0.19.0-rc.9 → 0.19.2-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +99 -33
- package/dist/http.js +119 -31
- package/dist/index.d.ts +16 -25
- package/dist/{types/others.d.ts → other_types.d.ts} +4 -4
- package/dist/types/ActivityId.d.ts +1 -0
- 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 +0 -1
- package/dist/types/BlockPerson.d.ts +0 -1
- package/dist/types/ChangePassword.d.ts +0 -1
- package/dist/types/CommentAggregates.d.ts +0 -3
- package/dist/types/CommentReplyView.d.ts +2 -0
- package/dist/types/CommentView.d.ts +2 -0
- package/dist/types/Community.d.ts +0 -2
- package/dist/types/CommunityAggregates.d.ts +0 -2
- package/dist/types/CreateComment.d.ts +0 -1
- 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/CustomEmojiKeyword.d.ts +0 -1
- package/dist/types/DeleteAccount.d.ts +0 -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 -1
- 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/FederatedInstances.d.ts +4 -4
- package/dist/types/FollowCommunity.d.ts +0 -1
- package/dist/types/GenerateTotpSecretResponse.d.ts +3 -0
- package/dist/types/GetComment.d.ts +0 -1
- package/dist/types/GetComments.d.ts +0 -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 -1
- package/dist/types/GetPostsResponse.d.ts +2 -0
- package/dist/types/GetPrivateMessages.d.ts +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 +7 -0
- package/dist/types/InstanceWithFederationState.d.ts +11 -0
- package/dist/types/LemmyErrorType.d.ts +171 -138
- package/dist/types/ListCommentLikes.d.ts +6 -0
- package/dist/types/ListCommentLikesResponse.d.ts +4 -0
- package/dist/types/ListCommentReports.d.ts +0 -1
- package/dist/types/ListCommunities.d.ts +0 -1
- package/dist/types/ListPostLikes.d.ts +6 -0
- package/dist/types/ListPostLikesResponse.d.ts +4 -0
- package/dist/types/ListPostLikesResponse.js +2 -0
- 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/LocalSite.d.ts +1 -0
- package/dist/types/LocalSiteRateLimit.d.ts +2 -1
- package/dist/types/LocalUser.d.ts +4 -3
- package/dist/types/LockPost.d.ts +0 -1
- package/dist/types/LoginToken.d.ts +7 -0
- package/dist/types/LoginToken.js +2 -0
- package/dist/types/MarkCommentReplyAsRead.d.ts +0 -1
- package/dist/types/MarkPersonMentionAsRead.d.ts +0 -1
- package/dist/types/MarkPostAsRead.d.ts +2 -2
- package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -1
- package/dist/types/ModRemoveCommunity.d.ts +0 -1
- package/dist/types/PaginationCursor.d.ts +1 -0
- package/dist/types/Person.d.ts +0 -1
- package/dist/types/PersonAggregates.d.ts +0 -3
- package/dist/types/PersonMentionView.d.ts +2 -0
- package/dist/types/PersonView.d.ts +1 -0
- package/dist/types/PostAggregates.d.ts +0 -14
- package/dist/types/PostView.d.ts +2 -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/ReadableFederationState.d.ts +10 -0
- package/dist/types/ReadableFederationState.js +2 -0
- package/dist/types/RemoveComment.d.ts +0 -1
- package/dist/types/RemoveCommunity.d.ts +0 -2
- 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 +5 -3
- package/dist/types/Search.d.ts +0 -1
- package/dist/types/SiteAggregates.d.ts +0 -1
- package/dist/types/SortType.d.ts +1 -1
- package/dist/types/SuccessResponse.d.ts +3 -0
- package/dist/types/TransferCommunity.d.ts +0 -1
- package/dist/types/UpdateTotp.d.ts +4 -0
- package/dist/types/UpdateTotpResponse.d.ts +3 -0
- package/dist/types/VoteView.d.ts +5 -0
- package/dist/types/VoteView.js +2 -0
- package/package.json +12 -12
- package/dist/types/CommunityBlockId.d.ts +0 -1
- package/dist/types/CommunityJoin.d.ts +0 -4
- package/dist/types/CommunityJoinResponse.d.ts +0 -3
- package/dist/types/DeleteAccountResponse.d.ts +0 -1
- package/dist/types/DeleteCustomEmojiResponse.d.ts +0 -5
- 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/PasswordResetResponse.d.ts +0 -1
- package/dist/types/PasswordResetResponse.js +0 -3
- package/dist/types/PersonSortType.d.ts +0 -1
- package/dist/types/PersonSortType.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/PurgeItemResponse.d.ts +0 -3
- package/dist/types/PurgeItemResponse.js +0 -3
- 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/VerifyEmailResponse.d.ts +0 -1
- package/dist/types/VerifyEmailResponse.js +0 -3
- package/dist/utils.d.ts +0 -0
- package/dist/utils.js +0 -0
- /package/dist/{types/others.js → other_types.js} +0 -0
- /package/dist/types/{CommunityBlockId.js → ActivityId.js} +0 -0
- /package/dist/types/{CommunityJoinResponse.js → GenerateTotpSecretResponse.js} +0 -0
- /package/dist/types/{CommunityJoin.js → ImageUpload.js} +0 -0
- /package/dist/types/{DeleteCustomEmojiResponse.js → InstanceWithFederationState.js} +0 -0
- /package/dist/types/{ModJoin.js → ListCommentLikes.js} +0 -0
- /package/dist/types/{PostJoin.js → ListCommentLikesResponse.js} +0 -0
- /package/dist/types/{PostOrCommentId.js → ListPostLikes.js} +0 -0
- /package/dist/types/{DeleteAccountResponse.js → PaginationCursor.js} +0 -0
- /package/dist/types/{GetBannedPersons.js → SuccessResponse.js} +0 -0
- /package/dist/types/{GetCaptcha.js → UpdateTotp.js} +0 -0
- /package/dist/types/{GetFederatedInstances.js → UpdateTotpResponse.js} +0 -0
@@ -1,23 +1,9 @@
|
|
1
|
-
import type { CommunityId } from "./CommunityId";
|
2
|
-
import type { InstanceId } from "./InstanceId";
|
3
|
-
import type { PersonId } from "./PersonId";
|
4
1
|
import type { PostId } from "./PostId";
|
5
2
|
export interface PostAggregates {
|
6
|
-
id: number;
|
7
3
|
post_id: PostId;
|
8
4
|
comments: number;
|
9
5
|
score: number;
|
10
6
|
upvotes: number;
|
11
7
|
downvotes: number;
|
12
8
|
published: string;
|
13
|
-
newest_comment_time_necro: string;
|
14
|
-
newest_comment_time: string;
|
15
|
-
featured_community: boolean;
|
16
|
-
featured_local: boolean;
|
17
|
-
hot_rank: number;
|
18
|
-
hot_rank_active: number;
|
19
|
-
community_id: CommunityId;
|
20
|
-
creator_id: PersonId;
|
21
|
-
controversy_rank: number;
|
22
|
-
instance_id: InstanceId;
|
23
9
|
}
|
package/dist/types/PostView.d.ts
CHANGED
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { ActivityId } from "./ActivityId";
|
2
|
+
import type { InstanceId } from "./InstanceId";
|
3
|
+
export interface ReadableFederationState {
|
4
|
+
instance_id: InstanceId;
|
5
|
+
last_successful_id?: ActivityId;
|
6
|
+
last_successful_published_time?: string;
|
7
|
+
fail_count: number;
|
8
|
+
last_retry?: string;
|
9
|
+
next_retry?: string;
|
10
|
+
}
|
package/dist/types/SavePost.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { LanguageId } from "./LanguageId";
|
2
2
|
import type { ListingType } from "./ListingType";
|
3
|
+
import type { PostListingMode } from "./PostListingMode";
|
3
4
|
import type { SortType } from "./SortType";
|
4
5
|
export interface SaveUserSettings {
|
5
6
|
show_nsfw?: boolean;
|
@@ -21,10 +22,11 @@ export interface SaveUserSettings {
|
|
21
22
|
bot_account?: boolean;
|
22
23
|
show_bot_accounts?: boolean;
|
23
24
|
show_read_posts?: boolean;
|
24
|
-
show_new_post_notifs?: boolean;
|
25
25
|
discussion_languages?: Array<LanguageId>;
|
26
|
-
generate_totp_2fa?: boolean;
|
27
|
-
auth: string;
|
28
26
|
open_links_in_new_tab?: boolean;
|
29
27
|
infinite_scroll_enabled?: boolean;
|
28
|
+
post_listing_mode?: PostListingMode;
|
29
|
+
enable_keyboard_navigation?: boolean;
|
30
|
+
enable_animated_images?: boolean;
|
31
|
+
collapse_bot_comments?: boolean;
|
30
32
|
}
|
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";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "lemmy-js-client",
|
3
|
-
"version": "0.19.
|
3
|
+
"version": "0.19.2-alpha.1",
|
4
4
|
"description": "A javascript / typescript client for Lemmy",
|
5
5
|
"repository": "https://github.com/LemmyNet/lemmy-js-client",
|
6
6
|
"license": "AGPL-3.0",
|
@@ -30,20 +30,20 @@
|
|
30
30
|
"form-data": "^4.0.0"
|
31
31
|
},
|
32
32
|
"devDependencies": {
|
33
|
-
"@types/node": "^20.
|
34
|
-
"@typescript-eslint/eslint-plugin": "^
|
35
|
-
"@typescript-eslint/parser": "^
|
36
|
-
"eslint": "^8.
|
37
|
-
"eslint-plugin-prettier": "^
|
33
|
+
"@types/node": "^20.10.0",
|
34
|
+
"@typescript-eslint/eslint-plugin": "^6.13.1",
|
35
|
+
"@typescript-eslint/parser": "^6.13.1",
|
36
|
+
"eslint": "^8.54.0",
|
37
|
+
"eslint-plugin-prettier": "^5.0.1",
|
38
38
|
"husky": "^8.0.3",
|
39
|
-
"lint-staged": "^
|
40
|
-
"prettier": "^3.
|
39
|
+
"lint-staged": "^15.1.0",
|
40
|
+
"prettier": "^3.1.0",
|
41
41
|
"prettier-plugin-import-sort": "^0.0.7",
|
42
|
-
"prettier-plugin-organize-imports": "^3.2.
|
43
|
-
"prettier-plugin-packagejson": "^2.4.
|
44
|
-
"sortpack": "^2.3.
|
42
|
+
"prettier-plugin-organize-imports": "^3.2.4",
|
43
|
+
"prettier-plugin-packagejson": "^2.4.6",
|
44
|
+
"sortpack": "^2.3.5",
|
45
45
|
"typedoc": "^0.24.7",
|
46
|
-
"typescript": "^5.
|
46
|
+
"typescript": "^5.3.2"
|
47
47
|
},
|
48
48
|
"importSort": {
|
49
49
|
".js, .jsx, .ts, .tsx": {
|
@@ -1 +0,0 @@
|
|
1
|
-
export type CommunityBlockId = number;
|
@@ -1 +0,0 @@
|
|
1
|
-
export type DeleteAccountResponse = null;
|
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
@@ -1 +0,0 @@
|
|
1
|
-
export type PasswordResetResponse = null;
|
@@ -1 +0,0 @@
|
|
1
|
-
export type PersonSortType = "New" | "Old" | "MostComments" | "CommentScore" | "PostScore" | "PostCount";
|
package/dist/types/PostJoin.d.ts
DELETED
package/dist/types/UserJoin.d.ts
DELETED
package/dist/types/UserJoin.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export type VerifyEmailResponse = null;
|
package/dist/utils.d.ts
DELETED
File without changes
|
package/dist/utils.js
DELETED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|