lemmy-js-client 0.20.0-api-v4.14 → 0.20.0-api-v4.15
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +8 -1
- package/dist/http.js +10 -2
- package/package.json +1 -1
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
|
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
|
*
|
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
|
101
|
+
* `HTTP.GET /account`
|
102
102
|
*/
|
103
103
|
getMyUser(options) {
|
104
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account
|
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
|
*
|
package/package.json
CHANGED