lemmy-js-client 0.20.0-alpha.11 → 0.20.0-alpha.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  import type { PostId } from "./PostId";
2
2
  export interface HidePost {
3
- post_ids: Array<PostId>;
3
+ post_id: PostId;
4
4
  hide: boolean;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import type { PostId } from "./PostId";
2
2
  export interface MarkPostAsRead {
3
- post_ids: Array<PostId>;
3
+ post_id: PostId;
4
4
  read: boolean;
5
5
  }
@@ -14,4 +14,8 @@ export interface Search {
14
14
  page?: number;
15
15
  limit?: number;
16
16
  post_title_only?: boolean;
17
+ post_url_only?: boolean;
18
+ saved_only?: boolean;
19
+ liked_only?: boolean;
20
+ disliked_only?: boolean;
17
21
  }
@@ -1 +1 @@
1
- export type SearchType = "All" | "Comments" | "Posts" | "Communities" | "Users" | "Url";
1
+ export type SearchType = "All" | "Comments" | "Posts" | "Communities" | "Users";
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-alpha.11",
4
+ "version": "0.20.0-alpha.12",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",