lemmy-js-client 0.19.0-rc.1 → 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 +3 -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/CommentResponse.d.ts +0 -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 +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/Person.d.ts +0 -1
- 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/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/GetCaptcha.js +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 → PostListingMode.js} +0 -0
package/dist/http.d.ts
CHANGED
@@ -46,15 +46,12 @@ import { EditPrivateMessage } from "./types/EditPrivateMessage";
|
|
46
46
|
import { EditSite } from "./types/EditSite";
|
47
47
|
import { FeaturePost } from "./types/FeaturePost";
|
48
48
|
import { FollowCommunity } from "./types/FollowCommunity";
|
49
|
-
import { GetBannedPersons } from "./types/GetBannedPersons";
|
50
|
-
import { GetCaptcha } from "./types/GetCaptcha";
|
51
49
|
import { GetCaptchaResponse } from "./types/GetCaptchaResponse";
|
52
50
|
import { GetComment } from "./types/GetComment";
|
53
51
|
import { GetComments } from "./types/GetComments";
|
54
52
|
import { GetCommentsResponse } from "./types/GetCommentsResponse";
|
55
53
|
import { GetCommunity } from "./types/GetCommunity";
|
56
54
|
import { GetCommunityResponse } from "./types/GetCommunityResponse";
|
57
|
-
import { GetFederatedInstances } from "./types/GetFederatedInstances";
|
58
55
|
import { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
|
59
56
|
import { GetModlog } from "./types/GetModlog";
|
60
57
|
import { GetModlogResponse } from "./types/GetModlogResponse";
|
@@ -71,15 +68,11 @@ import { GetReplies } from "./types/GetReplies";
|
|
71
68
|
import { GetRepliesResponse } from "./types/GetRepliesResponse";
|
72
69
|
import { GetReportCount } from "./types/GetReportCount";
|
73
70
|
import { GetReportCountResponse } from "./types/GetReportCountResponse";
|
74
|
-
import { GetSite } from "./types/GetSite";
|
75
71
|
import { GetSiteMetadata } from "./types/GetSiteMetadata";
|
76
72
|
import { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse";
|
77
73
|
import { GetSiteResponse } from "./types/GetSiteResponse";
|
78
|
-
import { GetUnreadCount } from "./types/GetUnreadCount";
|
79
74
|
import { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
|
80
|
-
import { GetUnreadRegistrationApplicationCount } from "./types/GetUnreadRegistrationApplicationCount";
|
81
75
|
import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
|
82
|
-
import { LeaveAdmin } from "./types/LeaveAdmin";
|
83
76
|
import { ListCommentReports } from "./types/ListCommentReports";
|
84
77
|
import { ListCommentReportsResponse } from "./types/ListCommentReportsResponse";
|
85
78
|
import { ListCommunities } from "./types/ListCommunities";
|
@@ -93,7 +86,6 @@ import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationAp
|
|
93
86
|
import { LockPost } from "./types/LockPost";
|
94
87
|
import { Login } from "./types/Login";
|
95
88
|
import { LoginResponse } from "./types/LoginResponse";
|
96
|
-
import { MarkAllAsRead } from "./types/MarkAllAsRead";
|
97
89
|
import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
98
90
|
import { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead";
|
99
91
|
import { MarkPostAsRead } from "./types/MarkPostAsRead";
|
@@ -130,6 +122,7 @@ import { SiteResponse } from "./types/SiteResponse";
|
|
130
122
|
import { TransferCommunity } from "./types/TransferCommunity";
|
131
123
|
import { VerifyEmail } from "./types/VerifyEmail";
|
132
124
|
import { UploadImage, UploadImageResponse } from "./types/others";
|
125
|
+
import { HideCommunity } from "./types/HideCommunity";
|
133
126
|
/**
|
134
127
|
* Helps build lemmy HTTP requests.
|
135
128
|
*/
|
@@ -151,7 +144,7 @@ export declare class LemmyHttp {
|
|
151
144
|
*
|
152
145
|
* `HTTP.GET /site`
|
153
146
|
*/
|
154
|
-
getSite(
|
147
|
+
getSite(): Promise<GetSiteResponse>;
|
155
148
|
/**
|
156
149
|
* Create your site.
|
157
150
|
*
|
@@ -169,7 +162,7 @@ export declare class LemmyHttp {
|
|
169
162
|
*
|
170
163
|
* `HTTP.POST /user/leave_admin`
|
171
164
|
*/
|
172
|
-
leaveAdmin(
|
165
|
+
leaveAdmin(): Promise<GetSiteResponse>;
|
173
166
|
/**
|
174
167
|
* Get the modlog.
|
175
168
|
*
|
@@ -230,6 +223,12 @@ export declare class LemmyHttp {
|
|
230
223
|
* `HTTP.POST /community/delete`
|
231
224
|
*/
|
232
225
|
deleteCommunity(form: DeleteCommunity): Promise<CommunityResponse>;
|
226
|
+
/**
|
227
|
+
* Hide a community from public view.
|
228
|
+
*
|
229
|
+
* `HTTP.PUT /community/hide`
|
230
|
+
*/
|
231
|
+
hideCommunity(form: HideCommunity): Promise<CommunityResponse>;
|
233
232
|
/**
|
234
233
|
* A moderator remove for a community.
|
235
234
|
*
|
@@ -517,7 +516,7 @@ export declare class LemmyHttp {
|
|
517
516
|
*
|
518
517
|
* `HTTP.GET /user/banned`
|
519
518
|
*/
|
520
|
-
getBannedPersons(
|
519
|
+
getBannedPersons(): Promise<BannedPersonsResponse>;
|
521
520
|
/**
|
522
521
|
* Block a person.
|
523
522
|
*
|
@@ -529,7 +528,7 @@ export declare class LemmyHttp {
|
|
529
528
|
*
|
530
529
|
* `HTTP.GET /user/get_captcha`
|
531
530
|
*/
|
532
|
-
getCaptcha(
|
531
|
+
getCaptcha(): Promise<GetCaptchaResponse>;
|
533
532
|
/**
|
534
533
|
* Delete your account.
|
535
534
|
*
|
@@ -553,7 +552,7 @@ export declare class LemmyHttp {
|
|
553
552
|
*
|
554
553
|
* `HTTP.POST /user/mark_all_as_read`
|
555
554
|
*/
|
556
|
-
markAllAsRead(
|
555
|
+
markAllAsRead(): Promise<GetRepliesResponse>;
|
557
556
|
/**
|
558
557
|
* Save your user settings.
|
559
558
|
*
|
@@ -577,7 +576,7 @@ export declare class LemmyHttp {
|
|
577
576
|
*
|
578
577
|
* `HTTP.GET /user/unread_count`
|
579
578
|
*/
|
580
|
-
getUnreadCount(
|
579
|
+
getUnreadCount(): Promise<GetUnreadCountResponse>;
|
581
580
|
/**
|
582
581
|
* Verify your email
|
583
582
|
*
|
@@ -595,7 +594,7 @@ export declare class LemmyHttp {
|
|
595
594
|
*
|
596
595
|
* `HTTP.GET /admin/registration_application/count`
|
597
596
|
*/
|
598
|
-
getUnreadRegistrationApplicationCount(
|
597
|
+
getUnreadRegistrationApplicationCount(): Promise<GetUnreadRegistrationApplicationCountResponse>;
|
599
598
|
/**
|
600
599
|
* List the registration applications.
|
601
600
|
*
|
@@ -655,9 +654,15 @@ export declare class LemmyHttp {
|
|
655
654
|
*
|
656
655
|
* `HTTP.Get /federated_instances`
|
657
656
|
*/
|
658
|
-
getFederatedInstances(
|
657
|
+
getFederatedInstances(): Promise<GetFederatedInstancesResponse>;
|
659
658
|
/**
|
660
659
|
* Upload an image to the server.
|
661
660
|
*/
|
662
661
|
uploadImage({ image, auth, }: UploadImage): Promise<UploadImageResponse>;
|
662
|
+
/**
|
663
|
+
* Set the headers (can be used to set the auth header)
|
664
|
+
*/
|
665
|
+
setHeaders(headers: {
|
666
|
+
[key: string]: string;
|
667
|
+
}): void;
|
663
668
|
}
|
package/dist/http.js
CHANGED
@@ -63,8 +63,8 @@ class LemmyHttp {
|
|
63
63
|
*
|
64
64
|
* `HTTP.GET /site`
|
65
65
|
*/
|
66
|
-
getSite(
|
67
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site",
|
66
|
+
getSite() {
|
67
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site", {});
|
68
68
|
}
|
69
69
|
/**
|
70
70
|
* Create your site.
|
@@ -87,8 +87,8 @@ class LemmyHttp {
|
|
87
87
|
*
|
88
88
|
* `HTTP.POST /user/leave_admin`
|
89
89
|
*/
|
90
|
-
leaveAdmin(
|
91
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/leave_admin",
|
90
|
+
leaveAdmin() {
|
91
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/leave_admin", {});
|
92
92
|
}
|
93
93
|
/**
|
94
94
|
* Get the modlog.
|
@@ -170,6 +170,14 @@ class LemmyHttp {
|
|
170
170
|
deleteCommunity(form) {
|
171
171
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/delete", form);
|
172
172
|
}
|
173
|
+
/**
|
174
|
+
* Hide a community from public view.
|
175
|
+
*
|
176
|
+
* `HTTP.PUT /community/hide`
|
177
|
+
*/
|
178
|
+
hideCommunity(form) {
|
179
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/hide", form);
|
180
|
+
}
|
173
181
|
/**
|
174
182
|
* A moderator remove for a community.
|
175
183
|
*
|
@@ -551,8 +559,8 @@ class LemmyHttp {
|
|
551
559
|
*
|
552
560
|
* `HTTP.GET /user/banned`
|
553
561
|
*/
|
554
|
-
getBannedPersons(
|
555
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/banned",
|
562
|
+
getBannedPersons() {
|
563
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/banned", {});
|
556
564
|
}
|
557
565
|
/**
|
558
566
|
* Block a person.
|
@@ -567,8 +575,8 @@ class LemmyHttp {
|
|
567
575
|
*
|
568
576
|
* `HTTP.GET /user/get_captcha`
|
569
577
|
*/
|
570
|
-
getCaptcha(
|
571
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/get_captcha",
|
578
|
+
getCaptcha() {
|
579
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/get_captcha", {});
|
572
580
|
}
|
573
581
|
/**
|
574
582
|
* Delete your account.
|
@@ -599,8 +607,8 @@ class LemmyHttp {
|
|
599
607
|
*
|
600
608
|
* `HTTP.POST /user/mark_all_as_read`
|
601
609
|
*/
|
602
|
-
markAllAsRead(
|
603
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/mark_all_as_read",
|
610
|
+
markAllAsRead() {
|
611
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/mark_all_as_read", {});
|
604
612
|
}
|
605
613
|
/**
|
606
614
|
* Save your user settings.
|
@@ -631,8 +639,8 @@ class LemmyHttp {
|
|
631
639
|
*
|
632
640
|
* `HTTP.GET /user/unread_count`
|
633
641
|
*/
|
634
|
-
getUnreadCount(
|
635
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/unread_count",
|
642
|
+
getUnreadCount() {
|
643
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/unread_count", {});
|
636
644
|
}
|
637
645
|
/**
|
638
646
|
* Verify your email
|
@@ -655,8 +663,8 @@ class LemmyHttp {
|
|
655
663
|
*
|
656
664
|
* `HTTP.GET /admin/registration_application/count`
|
657
665
|
*/
|
658
|
-
getUnreadRegistrationApplicationCount(
|
659
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/count",
|
666
|
+
getUnreadRegistrationApplicationCount() {
|
667
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/count", {});
|
660
668
|
}
|
661
669
|
/**
|
662
670
|
* List the registration applications.
|
@@ -712,9 +720,7 @@ class LemmyHttp {
|
|
712
720
|
* `HTTP.POST /custom_emoji`
|
713
721
|
*/
|
714
722
|
createCustomEmoji(form) {
|
715
|
-
return
|
716
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji", form);
|
717
|
-
});
|
723
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji", form);
|
718
724
|
}
|
719
725
|
/**
|
720
726
|
* Edit an existing custom emoji
|
@@ -722,9 +728,7 @@ class LemmyHttp {
|
|
722
728
|
* `HTTP.PUT /custom_emoji`
|
723
729
|
*/
|
724
730
|
editCustomEmoji(form) {
|
725
|
-
return
|
726
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/custom_emoji", form);
|
727
|
-
});
|
731
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/custom_emoji", form);
|
728
732
|
}
|
729
733
|
/**
|
730
734
|
* Delete a custom emoji
|
@@ -732,19 +736,15 @@ class LemmyHttp {
|
|
732
736
|
* `HTTP.Post /custom_emoji/delete`
|
733
737
|
*/
|
734
738
|
deleteCustomEmoji(form) {
|
735
|
-
return
|
736
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form);
|
737
|
-
});
|
739
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form);
|
738
740
|
}
|
739
741
|
/**
|
740
742
|
* Fetch federated instances.
|
741
743
|
*
|
742
744
|
* `HTTP.Get /federated_instances`
|
743
745
|
*/
|
744
|
-
getFederatedInstances(
|
745
|
-
return
|
746
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", form);
|
747
|
-
});
|
746
|
+
getFederatedInstances() {
|
747
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", {});
|
748
748
|
}
|
749
749
|
/**
|
750
750
|
* Upload an image to the server.
|
@@ -779,6 +779,12 @@ class LemmyHttp {
|
|
779
779
|
delete_url });
|
780
780
|
});
|
781
781
|
}
|
782
|
+
/**
|
783
|
+
* Set the headers (can be used to set the auth header)
|
784
|
+
*/
|
785
|
+
setHeaders(headers) {
|
786
|
+
__classPrivateFieldSet(this, _LemmyHttp_headers, headers, "f");
|
787
|
+
}
|
782
788
|
}
|
783
789
|
exports.LemmyHttp = LemmyHttp;
|
784
790
|
_LemmyHttp_apiUrl = new WeakMap(), _LemmyHttp_headers = new WeakMap(), _LemmyHttp_pictrsUrl = new WeakMap(), _LemmyHttp_fetchFunction = new WeakMap(), _LemmyHttp_instances = new WeakSet(), _LemmyHttp_buildFullUrl = function _LemmyHttp_buildFullUrl(endpoint) {
|
package/dist/index.d.ts
CHANGED
@@ -43,8 +43,6 @@ export { CommunityBlockId } from "./types/CommunityBlockId";
|
|
43
43
|
export { CommunityBlockView } from "./types/CommunityBlockView";
|
44
44
|
export { CommunityFollowerView } from "./types/CommunityFollowerView";
|
45
45
|
export { CommunityId } from "./types/CommunityId";
|
46
|
-
export { CommunityJoin } from "./types/CommunityJoin";
|
47
|
-
export { CommunityJoinResponse } from "./types/CommunityJoinResponse";
|
48
46
|
export { CommunityModeratorView } from "./types/CommunityModeratorView";
|
49
47
|
export { CommunityResponse } from "./types/CommunityResponse";
|
50
48
|
export { CommunityView } from "./types/CommunityView";
|
@@ -82,15 +80,12 @@ export { EditSite } from "./types/EditSite";
|
|
82
80
|
export { FeaturePost } from "./types/FeaturePost";
|
83
81
|
export { FederatedInstances } from "./types/FederatedInstances";
|
84
82
|
export { FollowCommunity } from "./types/FollowCommunity";
|
85
|
-
export { GetBannedPersons } from "./types/GetBannedPersons";
|
86
|
-
export { GetCaptcha } from "./types/GetCaptcha";
|
87
83
|
export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
|
88
84
|
export { GetComment } from "./types/GetComment";
|
89
85
|
export { GetComments } from "./types/GetComments";
|
90
86
|
export { GetCommentsResponse } from "./types/GetCommentsResponse";
|
91
87
|
export { GetCommunity } from "./types/GetCommunity";
|
92
88
|
export { GetCommunityResponse } from "./types/GetCommunityResponse";
|
93
|
-
export { GetFederatedInstances } from "./types/GetFederatedInstances";
|
94
89
|
export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
|
95
90
|
export { GetModlog } from "./types/GetModlog";
|
96
91
|
export { GetModlogResponse } from "./types/GetModlogResponse";
|
@@ -107,21 +102,18 @@ export { GetReplies } from "./types/GetReplies";
|
|
107
102
|
export { GetRepliesResponse } from "./types/GetRepliesResponse";
|
108
103
|
export { GetReportCount } from "./types/GetReportCount";
|
109
104
|
export { GetReportCountResponse } from "./types/GetReportCountResponse";
|
110
|
-
export { GetSite } from "./types/GetSite";
|
111
105
|
export { GetSiteMetadata } from "./types/GetSiteMetadata";
|
112
106
|
export { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse";
|
113
107
|
export { GetSiteResponse } from "./types/GetSiteResponse";
|
114
|
-
export { GetUnreadCount } from "./types/GetUnreadCount";
|
115
108
|
export { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
|
116
|
-
export { GetUnreadRegistrationApplicationCount } from "./types/GetUnreadRegistrationApplicationCount";
|
117
109
|
export { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
|
118
110
|
export { HideCommunity } from "./types/HideCommunity";
|
111
|
+
export { ImageUpload } from "./types/ImageUpload";
|
112
|
+
export { ImageUploadId } from "./types/ImageUploadId";
|
119
113
|
export { Instance } from "./types/Instance";
|
120
114
|
export { InstanceId } from "./types/InstanceId";
|
121
115
|
export { Language } from "./types/Language";
|
122
116
|
export { LanguageId } from "./types/LanguageId";
|
123
|
-
export { LeaveAdmin } from "./types/LeaveAdmin";
|
124
|
-
export { LemmyErrorType } from "./types/LemmyErrorType";
|
125
117
|
export { ListCommentReports } from "./types/ListCommentReports";
|
126
118
|
export { ListCommentReportsResponse } from "./types/ListCommentReportsResponse";
|
127
119
|
export { ListCommunities } from "./types/ListCommunities";
|
@@ -142,7 +134,6 @@ export { LocalUserView } from "./types/LocalUserView";
|
|
142
134
|
export { LockPost } from "./types/LockPost";
|
143
135
|
export { Login } from "./types/Login";
|
144
136
|
export { LoginResponse } from "./types/LoginResponse";
|
145
|
-
export { MarkAllAsRead } from "./types/MarkAllAsRead";
|
146
137
|
export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
147
138
|
export { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead";
|
148
139
|
export { MarkPostAsRead } from "./types/MarkPostAsRead";
|
@@ -159,8 +150,6 @@ export { ModFeaturePost } from "./types/ModFeaturePost";
|
|
159
150
|
export { ModFeaturePostView } from "./types/ModFeaturePostView";
|
160
151
|
export { ModHideCommunity } from "./types/ModHideCommunity";
|
161
152
|
export { ModHideCommunityView } from "./types/ModHideCommunityView";
|
162
|
-
export { ModJoin } from "./types/ModJoin";
|
163
|
-
export { ModJoinResponse } from "./types/ModJoinResponse";
|
164
153
|
export { ModLockPost } from "./types/ModLockPost";
|
165
154
|
export { ModLockPostView } from "./types/ModLockPostView";
|
166
155
|
export { ModRemoveComment } from "./types/ModRemoveComment";
|
@@ -192,9 +181,7 @@ export { Post } from "./types/Post";
|
|
192
181
|
export { PostAggregates } from "./types/PostAggregates";
|
193
182
|
export { PostFeatureType } from "./types/PostFeatureType";
|
194
183
|
export { PostId } from "./types/PostId";
|
195
|
-
export {
|
196
|
-
export { PostJoinResponse } from "./types/PostJoinResponse";
|
197
|
-
export { PostOrCommentId } from "./types/PostOrCommentId";
|
184
|
+
export { PostListingMode } from "./types/PostListingMode";
|
198
185
|
export { PostReport } from "./types/PostReport";
|
199
186
|
export { PostReportId } from "./types/PostReportId";
|
200
187
|
export { PostReportResponse } from "./types/PostReportResponse";
|
@@ -244,8 +231,5 @@ export { SortType } from "./types/SortType";
|
|
244
231
|
export { SubscribedType } from "./types/SubscribedType";
|
245
232
|
export { Tagline } from "./types/Tagline";
|
246
233
|
export { TransferCommunity } from "./types/TransferCommunity";
|
247
|
-
export { UserJoin } from "./types/UserJoin";
|
248
|
-
export { UserJoinResponse } from "./types/UserJoinResponse";
|
249
234
|
export { VerifyEmail } from "./types/VerifyEmail";
|
250
235
|
export { VerifyEmailResponse } from "./types/VerifyEmailResponse";
|
251
|
-
export { UploadImage, UploadImageResponse, ImageFile } from "./types/others";
|
package/dist/types/AddAdmin.d.ts
CHANGED
package/dist/types/EditPost.d.ts
CHANGED
package/dist/types/EditSite.d.ts
CHANGED