lemmy-js-client 0.19.0-rc.5 → 0.19.0-rc.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji", form);
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 __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/custom_emoji", form);
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 __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form);
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 __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", form);
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";
@@ -1,6 +1,6 @@
1
- import type { LocalUserId } from "./LocalUserId";
1
+ import type { PersonId } from "./PersonId";
2
2
  export interface AddAdmin {
3
- local_user_id: LocalUserId;
3
+ person_id: PersonId;
4
4
  added: boolean;
5
5
  auth: string;
6
6
  }
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
- "version": "0.19.0-rc.5",
3
+ "version": "0.19.0-rc.7",
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",
@@ -1,6 +0,0 @@
1
- import type { InstanceId } from "./InstanceId";
2
- export interface BlockInstance {
3
- instance_id: InstanceId;
4
- block: boolean;
5
- auth: string;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export interface BlockInstanceResponse {
2
- blocked: boolean;
3
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import type { Instance } from "./Instance";
2
- import type { Person } from "./Person";
3
- import type { Site } from "./Site";
4
- export interface InstanceBlockView {
5
- person: Person;
6
- instance: Instance;
7
- site: Site | null;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });