lemmy-js-client 0.17.0-rc.4 → 0.17.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.
@@ -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.
@@ -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,14 +40,14 @@ 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;
46
47
  open_registration: boolean;
47
48
  enable_nsfw: boolean;
48
49
  icon?: string;
49
- banner?: string;
50
+ banner: Option<string>;
50
51
  description?: string;
51
52
  community_creation_admin_only: boolean;
52
53
  require_email_verification: boolean;
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.4",
4
+ "version": "0.17.0-rc.7",
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",