lemmy-js-client 0.19.0-rc.5 → 0.19.0-rc.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +0 -8
- package/dist/http.js +12 -12
- package/dist/index.d.ts +0 -3
- package/dist/types/AddAdmin.d.ts +2 -2
- package/dist/types/MyUserInfo.d.ts +0 -2
- package/dist/types/PostAggregates.d.ts +0 -2
- package/package.json +1 -1
- package/dist/types/BlockInstance.d.ts +0 -6
- package/dist/types/BlockInstance.js +0 -2
- package/dist/types/BlockInstanceResponse.d.ts +0 -3
- package/dist/types/BlockInstanceResponse.js +0 -3
- package/dist/types/InstanceBlockView.d.ts +0 -8
- package/dist/types/InstanceBlockView.js +0 -2
package/dist/http.d.ts
CHANGED
@@ -130,8 +130,6 @@ import { SiteResponse } from "./types/SiteResponse";
|
|
130
130
|
import { TransferCommunity } from "./types/TransferCommunity";
|
131
131
|
import { VerifyEmail } from "./types/VerifyEmail";
|
132
132
|
import { UploadImage, UploadImageResponse } from "./types/others";
|
133
|
-
import { BlockInstance } from "./types/BlockInstance";
|
134
|
-
import { BlockInstanceResponse } from "./types/BlockInstanceResponse";
|
135
133
|
/**
|
136
134
|
* Helps build lemmy HTTP requests.
|
137
135
|
*/
|
@@ -658,12 +656,6 @@ export declare class LemmyHttp {
|
|
658
656
|
* `HTTP.Get /federated_instances`
|
659
657
|
*/
|
660
658
|
getFederatedInstances(form?: GetFederatedInstances): Promise<GetFederatedInstancesResponse>;
|
661
|
-
/**
|
662
|
-
* Block an instance
|
663
|
-
*
|
664
|
-
* `HTTP.POST /site/block`
|
665
|
-
*/
|
666
|
-
blockInstance(form: BlockInstance): Promise<BlockInstanceResponse>;
|
667
659
|
/**
|
668
660
|
* Upload an image to the server.
|
669
661
|
*/
|
package/dist/http.js
CHANGED
@@ -712,7 +712,9 @@ class LemmyHttp {
|
|
712
712
|
* `HTTP.POST /custom_emoji`
|
713
713
|
*/
|
714
714
|
createCustomEmoji(form) {
|
715
|
-
return
|
715
|
+
return __awaiter(this, void 0, void 0, function* () {
|
716
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji", form);
|
717
|
+
});
|
716
718
|
}
|
717
719
|
/**
|
718
720
|
* Edit an existing custom emoji
|
@@ -720,7 +722,9 @@ class LemmyHttp {
|
|
720
722
|
* `HTTP.PUT /custom_emoji`
|
721
723
|
*/
|
722
724
|
editCustomEmoji(form) {
|
723
|
-
return
|
725
|
+
return __awaiter(this, void 0, void 0, function* () {
|
726
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/custom_emoji", form);
|
727
|
+
});
|
724
728
|
}
|
725
729
|
/**
|
726
730
|
* Delete a custom emoji
|
@@ -728,7 +732,9 @@ class LemmyHttp {
|
|
728
732
|
* `HTTP.Post /custom_emoji/delete`
|
729
733
|
*/
|
730
734
|
deleteCustomEmoji(form) {
|
731
|
-
return
|
735
|
+
return __awaiter(this, void 0, void 0, function* () {
|
736
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form);
|
737
|
+
});
|
732
738
|
}
|
733
739
|
/**
|
734
740
|
* Fetch federated instances.
|
@@ -736,15 +742,9 @@ class LemmyHttp {
|
|
736
742
|
* `HTTP.Get /federated_instances`
|
737
743
|
*/
|
738
744
|
getFederatedInstances(form = {}) {
|
739
|
-
return
|
740
|
-
|
741
|
-
|
742
|
-
* Block an instance
|
743
|
-
*
|
744
|
-
* `HTTP.POST /site/block`
|
745
|
-
*/
|
746
|
-
blockInstance(form) {
|
747
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site/block", form);
|
745
|
+
return __awaiter(this, void 0, void 0, function* () {
|
746
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", form);
|
747
|
+
});
|
748
748
|
}
|
749
749
|
/**
|
750
750
|
* Upload an image to the server.
|
package/dist/index.d.ts
CHANGED
@@ -19,8 +19,6 @@ export { BanPersonResponse } from "./types/BanPersonResponse";
|
|
19
19
|
export { BannedPersonsResponse } from "./types/BannedPersonsResponse";
|
20
20
|
export { BlockCommunity } from "./types/BlockCommunity";
|
21
21
|
export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
|
22
|
-
export { BlockInstance } from "./types/BlockInstance";
|
23
|
-
export { BlockInstanceResponse } from "./types/BlockInstanceResponse";
|
24
22
|
export { BlockPerson } from "./types/BlockPerson";
|
25
23
|
export { BlockPersonResponse } from "./types/BlockPersonResponse";
|
26
24
|
export { CaptchaResponse } from "./types/CaptchaResponse";
|
@@ -119,7 +117,6 @@ export { GetUnreadRegistrationApplicationCount } from "./types/GetUnreadRegistra
|
|
119
117
|
export { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
|
120
118
|
export { HideCommunity } from "./types/HideCommunity";
|
121
119
|
export { Instance } from "./types/Instance";
|
122
|
-
export { InstanceBlockView } from "./types/InstanceBlockView";
|
123
120
|
export { InstanceId } from "./types/InstanceId";
|
124
121
|
export { Language } from "./types/Language";
|
125
122
|
export { LanguageId } from "./types/LanguageId";
|
package/dist/types/AddAdmin.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
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";
|
5
4
|
import type { LanguageId } from "./LanguageId";
|
6
5
|
import type { LocalUserView } from "./LocalUserView";
|
7
6
|
import type { PersonBlockView } from "./PersonBlockView";
|
@@ -10,7 +9,6 @@ export interface MyUserInfo {
|
|
10
9
|
follows: Array<CommunityFollowerView>;
|
11
10
|
moderates: Array<CommunityModeratorView>;
|
12
11
|
community_blocks: Array<CommunityBlockView>;
|
13
|
-
instance_blocks: Array<InstanceBlockView>;
|
14
12
|
person_blocks: Array<PersonBlockView>;
|
15
13
|
discussion_languages: Array<LanguageId>;
|
16
14
|
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
|
-
import type { InstanceId } from "./InstanceId";
|
3
2
|
import type { PersonId } from "./PersonId";
|
4
3
|
import type { PostId } from "./PostId";
|
5
4
|
export interface PostAggregates {
|
@@ -19,5 +18,4 @@ export interface PostAggregates {
|
|
19
18
|
community_id: CommunityId;
|
20
19
|
creator_id: PersonId;
|
21
20
|
controversy_rank: number;
|
22
|
-
instance_id: InstanceId;
|
23
21
|
}
|
package/package.json
CHANGED