lemmy-js-client 0.17.0-rc.3 → 0.17.0-rc.30
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +156 -4
- package/dist/http.js +255 -80
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -1
- package/dist/interfaces/api/comment.d.ts +46 -38
- package/dist/interfaces/api/comment.js +326 -0
- package/dist/interfaces/api/community.d.ts +57 -55
- package/dist/interfaces/api/community.js +433 -0
- package/dist/interfaces/api/index.js +5 -1
- package/dist/interfaces/api/person.d.ts +121 -100
- package/dist/interfaces/api/person.js +894 -0
- package/dist/interfaces/api/post.d.ts +68 -51
- package/dist/interfaces/api/post.js +434 -0
- package/dist/interfaces/api/site.d.ts +100 -90
- package/dist/interfaces/api/site.js +893 -0
- package/dist/interfaces/index.js +5 -1
- package/dist/interfaces/others.d.ts +62 -92
- package/dist/interfaces/others.js +118 -55
- package/dist/interfaces/source.d.ts +79 -76
- package/dist/interfaces/source.js +746 -0
- package/dist/interfaces/views.d.ts +37 -37
- package/dist/interfaces/views.js +522 -0
- package/dist/utils.d.ts +9 -0
- package/dist/utils.js +18 -0
- package/dist/websocket.d.ts +13 -2
- package/dist/websocket.js +23 -5
- package/package.json +14 -11
@@ -1,10 +1,12 @@
|
|
1
|
+
import { Option } from "@sniptt/monads";
|
2
|
+
import "reflect-metadata";
|
1
3
|
import { CommentAggregates, CommunityAggregates, PersonAggregates, PostAggregates, SiteAggregates } from "./aggregates";
|
2
4
|
import { Comment, CommentReport, CommunitySafe, LocalUserSettings, ModAdd, ModAddCommunity, ModBan, ModBanFromCommunity, ModLockPost, ModRemoveComment, ModRemoveCommunity, ModRemovePost, ModStickyPost, ModTransferCommunity, PersonMention, PersonSafe, Post, PostReport, PrivateMessage, RegistrationApplication, Site } from "./source";
|
3
|
-
export
|
5
|
+
export declare class PersonViewSafe {
|
4
6
|
person: PersonSafe;
|
5
7
|
counts: PersonAggregates;
|
6
8
|
}
|
7
|
-
export
|
9
|
+
export declare class PersonMentionView {
|
8
10
|
person_mention: PersonMention;
|
9
11
|
comment: Comment;
|
10
12
|
creator: PersonSafe;
|
@@ -16,24 +18,23 @@ export interface PersonMentionView {
|
|
16
18
|
subscribed: boolean;
|
17
19
|
saved: boolean;
|
18
20
|
creator_blocked: boolean;
|
19
|
-
my_vote
|
21
|
+
my_vote: Option<number>;
|
20
22
|
}
|
21
|
-
export
|
23
|
+
export declare class LocalUserSettingsView {
|
22
24
|
local_user: LocalUserSettings;
|
23
25
|
person: PersonSafe;
|
24
26
|
counts: PersonAggregates;
|
25
27
|
}
|
26
|
-
export
|
28
|
+
export declare class SiteView {
|
27
29
|
site: Site;
|
28
|
-
creator: PersonSafe;
|
29
30
|
counts: SiteAggregates;
|
30
31
|
}
|
31
|
-
export
|
32
|
+
export declare class PrivateMessageView {
|
32
33
|
private_message: PrivateMessage;
|
33
34
|
creator: PersonSafe;
|
34
35
|
recipient: PersonSafe;
|
35
36
|
}
|
36
|
-
export
|
37
|
+
export declare class PostView {
|
37
38
|
post: Post;
|
38
39
|
creator: PersonSafe;
|
39
40
|
community: CommunitySafe;
|
@@ -43,23 +44,23 @@ export interface PostView {
|
|
43
44
|
saved: boolean;
|
44
45
|
read: boolean;
|
45
46
|
creator_blocked: boolean;
|
46
|
-
my_vote
|
47
|
+
my_vote: Option<number>;
|
47
48
|
}
|
48
|
-
export
|
49
|
+
export declare class PostReportView {
|
49
50
|
post_report: PostReport;
|
50
51
|
post: Post;
|
51
52
|
community: CommunitySafe;
|
52
53
|
creator: PersonSafe;
|
53
54
|
post_creator: PersonSafe;
|
54
55
|
creator_banned_from_community: boolean;
|
55
|
-
my_vote
|
56
|
+
my_vote: Option<number>;
|
56
57
|
counts: PostAggregates;
|
57
|
-
resolver
|
58
|
+
resolver: Option<PersonSafe>;
|
58
59
|
}
|
59
|
-
export
|
60
|
+
export declare class CommentView {
|
60
61
|
comment: Comment;
|
61
62
|
creator: PersonSafe;
|
62
|
-
recipient
|
63
|
+
recipient: Option<PersonSafe>;
|
63
64
|
post: Post;
|
64
65
|
community: CommunitySafe;
|
65
66
|
counts: CommentAggregates;
|
@@ -67,9 +68,9 @@ export interface CommentView {
|
|
67
68
|
subscribed: boolean;
|
68
69
|
saved: boolean;
|
69
70
|
creator_blocked: boolean;
|
70
|
-
my_vote
|
71
|
+
my_vote: Option<number>;
|
71
72
|
}
|
72
|
-
export
|
73
|
+
export declare class CommentReportView {
|
73
74
|
comment_report: CommentReport;
|
74
75
|
comment: Comment;
|
75
76
|
post: Post;
|
@@ -78,44 +79,44 @@ export interface CommentReportView {
|
|
78
79
|
comment_creator: PersonSafe;
|
79
80
|
counts: CommentAggregates;
|
80
81
|
creator_banned_from_community: boolean;
|
81
|
-
my_vote
|
82
|
-
resolver
|
82
|
+
my_vote: Option<number>;
|
83
|
+
resolver: Option<PersonSafe>;
|
83
84
|
}
|
84
|
-
export
|
85
|
+
export declare class ModAddCommunityView {
|
85
86
|
mod_add_community: ModAddCommunity;
|
86
87
|
moderator: PersonSafe;
|
87
88
|
community: CommunitySafe;
|
88
89
|
modded_person: PersonSafe;
|
89
90
|
}
|
90
|
-
export
|
91
|
+
export declare class ModTransferCommunityView {
|
91
92
|
mod_transfer_community: ModTransferCommunity;
|
92
93
|
moderator: PersonSafe;
|
93
94
|
community: CommunitySafe;
|
94
95
|
modded_person: PersonSafe;
|
95
96
|
}
|
96
|
-
export
|
97
|
+
export declare class ModAddView {
|
97
98
|
mod_add: ModAdd;
|
98
99
|
moderator: PersonSafe;
|
99
100
|
modded_person: PersonSafe;
|
100
101
|
}
|
101
|
-
export
|
102
|
+
export declare class ModBanFromCommunityView {
|
102
103
|
mod_ban_from_community: ModBanFromCommunity;
|
103
104
|
moderator: PersonSafe;
|
104
105
|
community: CommunitySafe;
|
105
106
|
banned_person: PersonSafe;
|
106
107
|
}
|
107
|
-
export
|
108
|
+
export declare class ModBanView {
|
108
109
|
mod_ban: ModBan;
|
109
110
|
moderator: PersonSafe;
|
110
111
|
banned_person: PersonSafe;
|
111
112
|
}
|
112
|
-
export
|
113
|
+
export declare class ModLockPostView {
|
113
114
|
mod_lock_post: ModLockPost;
|
114
115
|
moderator: PersonSafe;
|
115
116
|
post: Post;
|
116
117
|
community: CommunitySafe;
|
117
118
|
}
|
118
|
-
export
|
119
|
+
export declare class ModRemoveCommentView {
|
119
120
|
mod_remove_comment: ModRemoveComment;
|
120
121
|
moderator: PersonSafe;
|
121
122
|
comment: Comment;
|
@@ -123,53 +124,52 @@ export interface ModRemoveCommentView {
|
|
123
124
|
post: Post;
|
124
125
|
community: CommunitySafe;
|
125
126
|
}
|
126
|
-
export
|
127
|
+
export declare class ModRemoveCommunityView {
|
127
128
|
mod_remove_community: ModRemoveCommunity;
|
128
129
|
moderator: PersonSafe;
|
129
130
|
community: CommunitySafe;
|
130
131
|
}
|
131
|
-
export
|
132
|
+
export declare class ModRemovePostView {
|
132
133
|
mod_remove_post: ModRemovePost;
|
133
134
|
moderator: PersonSafe;
|
134
135
|
post: Post;
|
135
136
|
community: CommunitySafe;
|
136
137
|
}
|
137
|
-
export
|
138
|
+
export declare class ModStickyPostView {
|
138
139
|
mod_sticky_post: ModStickyPost;
|
139
140
|
moderator: PersonSafe;
|
140
141
|
post: Post;
|
141
142
|
community: CommunitySafe;
|
142
143
|
}
|
143
|
-
export
|
144
|
+
export declare class CommunityFollowerView {
|
144
145
|
community: CommunitySafe;
|
145
146
|
follower: PersonSafe;
|
146
|
-
pending: boolean;
|
147
147
|
}
|
148
|
-
export
|
148
|
+
export declare class CommunityBlockView {
|
149
149
|
person: PersonSafe;
|
150
150
|
community: CommunitySafe;
|
151
151
|
}
|
152
|
-
export
|
152
|
+
export declare class CommunityModeratorView {
|
153
153
|
community: CommunitySafe;
|
154
154
|
moderator: PersonSafe;
|
155
155
|
}
|
156
|
-
export
|
156
|
+
export declare class CommunityPersonBanView {
|
157
157
|
community: CommunitySafe;
|
158
158
|
person: PersonSafe;
|
159
159
|
}
|
160
|
-
export
|
160
|
+
export declare class PersonBlockView {
|
161
161
|
person: PersonSafe;
|
162
162
|
target: PersonSafe;
|
163
163
|
}
|
164
|
-
export
|
164
|
+
export declare class CommunityView {
|
165
165
|
community: CommunitySafe;
|
166
166
|
subscribed: boolean;
|
167
167
|
blocked: boolean;
|
168
168
|
counts: CommunityAggregates;
|
169
169
|
}
|
170
|
-
export
|
170
|
+
export declare class RegistrationApplicationView {
|
171
171
|
registration_application: RegistrationApplication;
|
172
172
|
creator_local_user: LocalUserSettings;
|
173
173
|
creator: PersonSafe;
|
174
|
-
admin
|
174
|
+
admin: Option<PersonSafe>;
|
175
175
|
}
|