lemmy-js-client 0.20.0-api-v4.14 → 0.20.0-api-v4.16

Sign up to get free protection for your applications and to get access to all the features.
package/dist/http.d.ts CHANGED
@@ -5,6 +5,7 @@ import { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
5
5
  import { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
6
6
  import { BanFromCommunity } from "./types/BanFromCommunity";
7
7
  import { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
8
+ import { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
8
9
  import { BanPerson } from "./types/BanPerson";
9
10
  import { BanPersonResponse } from "./types/BanPersonResponse";
10
11
  import { BannedPersonsResponse } from "./types/BannedPersonsResponse";
@@ -208,7 +209,7 @@ export declare class LemmyHttp {
208
209
  /**
209
210
  * Get data of current user.
210
211
  *
211
- * `HTTP.GET /account/my_user`
212
+ * `HTTP.GET /account`
212
213
  */
213
214
  getMyUser(options?: RequestOptions): Promise<MyUserInfo>;
214
215
  /**
@@ -393,6 +394,12 @@ export declare class LemmyHttp {
393
394
  * `HTTP.POST /post/mark_as_read`
394
395
  */
395
396
  markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<SuccessResponse>;
397
+ /**
398
+ * Mark multiple posts as read.
399
+ *
400
+ * `HTTP.POST /post/mark_as_read/many`
401
+ */
402
+ markManyPostAsRead(form: MarkManyPostsAsRead, options?: RequestOptions): Promise<SuccessResponse>;
396
403
  /**
397
404
  * Hide a post from list views.
398
405
  *
@@ -684,7 +691,7 @@ export declare class LemmyHttp {
684
691
  /**
685
692
  * Mark all replies as read.
686
693
  *
687
- * `HTTP.POST /account/mention/mark_all_as_read`
694
+ * `HTTP.POST /account/mention/mark_as_read/all`
688
695
  */
689
696
  markAllAsRead(options?: RequestOptions): Promise<GetRepliesResponse>;
690
697
  /**
package/dist/http.js CHANGED
@@ -98,10 +98,10 @@ class LemmyHttp {
98
98
  /**
99
99
  * Get data of current user.
100
100
  *
101
- * `HTTP.GET /account/my_user`
101
+ * `HTTP.GET /account`
102
102
  */
103
103
  getMyUser(options) {
104
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/my_user", {}, options);
104
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account", {}, options);
105
105
  }
106
106
  /**
107
107
  * Export a backup of your user settings, including your saved content,
@@ -350,6 +350,14 @@ class LemmyHttp {
350
350
  markPostAsRead(form, options) {
351
351
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read", form, options);
352
352
  }
353
+ /**
354
+ * Mark multiple posts as read.
355
+ *
356
+ * `HTTP.POST /post/mark_as_read/many`
357
+ */
358
+ markManyPostAsRead(form, options) {
359
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read/many", form, options);
360
+ }
353
361
  /**
354
362
  * Hide a post from list views.
355
363
  *
@@ -737,10 +745,10 @@ class LemmyHttp {
737
745
  /**
738
746
  * Mark all replies as read.
739
747
  *
740
- * `HTTP.POST /account/mention/mark_all_as_read`
748
+ * `HTTP.POST /account/mention/mark_as_read/all`
741
749
  */
742
750
  markAllAsRead(options) {
743
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/mark_all_as_read", {}, options);
751
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/mark_as_read/all", {}, options);
744
752
  }
745
753
  /**
746
754
  * Save your user settings.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "0.20.0-api-v4.14",
4
+ "version": "0.20.0-api-v4.16",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",