lemmy-js-client 0.17.0-rc.5 → 0.17.0-rc.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
+ import { Option } from "@sniptt/monads";
1
2
  import { CommentView, CommunityBlockView, CommunityFollowerView, CommunityModeratorView, CommunityView, LocalUserSettingsView, ModAddCommunityView, ModAddView, ModBanFromCommunityView, ModBanView, ModLockPostView, ModRemoveCommentView, ModRemoveCommunityView, ModRemovePostView, ModStickyPostView, ModTransferCommunityView, PersonBlockView, PersonViewSafe, PostView, RegistrationApplicationView, SiteView } from "../views";
2
3
  /**
3
4
  * Search lemmy for different types of data.
@@ -57,7 +58,7 @@ export interface GetModlogResponse {
57
58
  }
58
59
  export interface CreateSite {
59
60
  name: string;
60
- sidebar?: string;
61
+ sidebar: Option<string>;
61
62
  description?: string;
62
63
  icon?: string;
63
64
  banner?: string;
@@ -70,12 +71,11 @@ export interface CreateSite {
70
71
  application_question?: string;
71
72
  private_instance?: boolean;
72
73
  default_theme?: string;
73
- default_post_listing_type?: string;
74
74
  auth: string;
75
75
  }
76
76
  export interface EditSite {
77
77
  name?: string;
78
- sidebar?: string;
78
+ sidebar: Option<string>;
79
79
  description?: string;
80
80
  icon?: string;
81
81
  banner?: string;
@@ -88,7 +88,6 @@ export interface EditSite {
88
88
  application_question?: string;
89
89
  private_instance?: boolean;
90
90
  default_theme?: string;
91
- default_post_listing_type?: string;
92
91
  auth: string;
93
92
  }
94
93
  export interface GetSite {
@@ -1,3 +1,4 @@
1
+ import { Option } from "@sniptt/monads";
1
2
  export interface LocalUserSettings {
2
3
  id: number;
3
4
  person_id: number;
@@ -39,7 +40,7 @@ export interface PersonSafe {
39
40
  export interface Site {
40
41
  id: number;
41
42
  name: string;
42
- sidebar?: string;
43
+ sidebar: Option<string>;
43
44
  published: string;
44
45
  updated?: string;
45
46
  enable_downvotes: boolean;
@@ -54,7 +55,6 @@ export interface Site {
54
55
  application_question?: string;
55
56
  private_instance: boolean;
56
57
  default_theme: string;
57
- default_post_listing_type: string;
58
58
  actor_id: string;
59
59
  last_refreshed_at: string;
60
60
  inbox_url: string;
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.17.0-rc.5",
4
+ "version": "0.17.0-rc.8",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",
@@ -15,7 +15,11 @@
15
15
  "prepare": "yarn run build && husky install"
16
16
  },
17
17
  "repository": "https://github.com/LemmyNet/lemmy-js-client",
18
+ "dependencies": {
19
+ "@sniptt/monads": "^0.5.10"
20
+ },
18
21
  "devDependencies": {
22
+ "@sniptt/monads": "^0.5.10",
19
23
  "@types/node": "^17.0.10",
20
24
  "@types/node-fetch": "^3.0.3",
21
25
  "@typescript-eslint/eslint-plugin": "^5.10.0",