lemmy-js-client 0.17.0-rc.5 → 0.17.0-rc.6
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.
|
@@ -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
|
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 {
|
@@ -101,14 +100,14 @@ export interface GetSiteResponse {
|
|
101
100
|
/**
|
102
101
|
* Optional, because the site might not be set up yet.
|
103
102
|
*/
|
104
|
-
site_view
|
103
|
+
site_view: Option<SiteView>;
|
105
104
|
admins: PersonViewSafe[];
|
106
105
|
online: number;
|
107
106
|
version: string;
|
108
107
|
/**
|
109
108
|
* If you're logged in, you'll get back extra user info.
|
110
109
|
*/
|
111
|
-
my_user
|
110
|
+
my_user: Option<MyUserInfo>;
|
112
111
|
federated_instances?: FederatedInstances;
|
113
112
|
}
|
114
113
|
/**
|
@@ -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
|
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
|
50
|
+
banner: Option<string>;
|
50
51
|
description?: string;
|
51
52
|
community_creation_admin_only: boolean;
|
52
53
|
require_email_verification: 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.
|
4
|
+
"version": "0.17.0-rc.6",
|
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",
|