lemmy-js-client 0.17.0-rc.59 → 0.17.0-rc.60
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.
- package/dist/http.js +85 -100
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/interfaces/api/comment.d.ts +38 -50
- package/dist/interfaces/api/comment.js +0 -393
- package/dist/interfaces/api/community.d.ts +45 -58
- package/dist/interfaces/api/community.js +0 -466
- package/dist/interfaces/api/person.d.ts +106 -136
- package/dist/interfaces/api/person.js +0 -1004
- package/dist/interfaces/api/post.d.ts +47 -64
- package/dist/interfaces/api/post.js +0 -475
- package/dist/interfaces/api/site.d.ts +142 -157
- package/dist/interfaces/api/site.js +0 -1520
- package/dist/interfaces/others.d.ts +5 -7
- package/dist/interfaces/others.js +1 -63
- package/dist/interfaces/source.d.ts +97 -98
- package/dist/interfaces/source.js +1 -905
- package/dist/interfaces/views.d.ts +57 -59
- package/dist/interfaces/views.js +0 -772
- package/dist/utils.d.ts +0 -9
- package/dist/utils.js +0 -18
- package/dist/websocket.d.ts +1 -2
- package/dist/websocket.js +4 -4
- package/package.json +2 -5
@@ -1,13 +1,11 @@
|
|
1
|
-
import { Option } from "@sniptt/monads";
|
2
|
-
import "reflect-metadata";
|
3
1
|
import { CommentAggregates, CommunityAggregates, PersonAggregates, PostAggregates, SiteAggregates } from "./aggregates";
|
4
2
|
import { SubscribedType } from "./others";
|
5
3
|
import { AdminPurgeComment, AdminPurgeCommunity, AdminPurgePerson, AdminPurgePost, Comment, CommentReply, CommentReport, CommunitySafe, LocalSite, LocalSiteRateLimit, LocalUserSettings, ModAdd, ModAddCommunity, ModBan, ModBanFromCommunity, ModFeaturePost, ModLockPost, ModRemoveComment, ModRemoveCommunity, ModRemovePost, ModTransferCommunity, PersonMention, PersonSafe, Post, PostReport, PrivateMessage, PrivateMessageReport, RegistrationApplication, Site, Tagline } from "./source";
|
6
|
-
export
|
4
|
+
export interface PersonViewSafe {
|
7
5
|
person: PersonSafe;
|
8
6
|
counts: PersonAggregates;
|
9
7
|
}
|
10
|
-
export
|
8
|
+
export interface PersonMentionView {
|
11
9
|
person_mention: PersonMention;
|
12
10
|
comment: Comment;
|
13
11
|
creator: PersonSafe;
|
@@ -19,26 +17,26 @@ export declare class PersonMentionView {
|
|
19
17
|
subscribed: SubscribedType;
|
20
18
|
saved: boolean;
|
21
19
|
creator_blocked: boolean;
|
22
|
-
my_vote
|
20
|
+
my_vote?: number;
|
23
21
|
}
|
24
|
-
export
|
22
|
+
export interface LocalUserSettingsView {
|
25
23
|
local_user: LocalUserSettings;
|
26
24
|
person: PersonSafe;
|
27
25
|
counts: PersonAggregates;
|
28
26
|
}
|
29
|
-
export
|
27
|
+
export interface SiteView {
|
30
28
|
site: Site;
|
31
29
|
local_site: LocalSite;
|
32
30
|
local_site_rate_limit: LocalSiteRateLimit;
|
33
|
-
taglines
|
31
|
+
taglines?: Tagline[];
|
34
32
|
counts: SiteAggregates;
|
35
33
|
}
|
36
|
-
export
|
34
|
+
export interface PrivateMessageView {
|
37
35
|
private_message: PrivateMessage;
|
38
36
|
creator: PersonSafe;
|
39
37
|
recipient: PersonSafe;
|
40
38
|
}
|
41
|
-
export
|
39
|
+
export interface PostView {
|
42
40
|
post: Post;
|
43
41
|
creator: PersonSafe;
|
44
42
|
community: CommunitySafe;
|
@@ -48,21 +46,21 @@ export declare class PostView {
|
|
48
46
|
saved: boolean;
|
49
47
|
read: boolean;
|
50
48
|
creator_blocked: boolean;
|
51
|
-
my_vote
|
49
|
+
my_vote?: number;
|
52
50
|
unread_comments: number;
|
53
51
|
}
|
54
|
-
export
|
52
|
+
export interface PostReportView {
|
55
53
|
post_report: PostReport;
|
56
54
|
post: Post;
|
57
55
|
community: CommunitySafe;
|
58
56
|
creator: PersonSafe;
|
59
57
|
post_creator: PersonSafe;
|
60
58
|
creator_banned_from_community: boolean;
|
61
|
-
my_vote
|
59
|
+
my_vote?: number;
|
62
60
|
counts: PostAggregates;
|
63
|
-
resolver
|
61
|
+
resolver?: PersonSafe;
|
64
62
|
}
|
65
|
-
export
|
63
|
+
export interface CommentView {
|
66
64
|
comment: Comment;
|
67
65
|
creator: PersonSafe;
|
68
66
|
post: Post;
|
@@ -72,9 +70,9 @@ export declare class CommentView {
|
|
72
70
|
subscribed: SubscribedType;
|
73
71
|
saved: boolean;
|
74
72
|
creator_blocked: boolean;
|
75
|
-
my_vote
|
73
|
+
my_vote?: number;
|
76
74
|
}
|
77
|
-
export
|
75
|
+
export interface CommentReplyView {
|
78
76
|
comment_reply: CommentReply;
|
79
77
|
comment: Comment;
|
80
78
|
creator: PersonSafe;
|
@@ -86,9 +84,9 @@ export declare class CommentReplyView {
|
|
86
84
|
subscribed: SubscribedType;
|
87
85
|
saved: boolean;
|
88
86
|
creator_blocked: boolean;
|
89
|
-
my_vote
|
87
|
+
my_vote?: number;
|
90
88
|
}
|
91
|
-
export
|
89
|
+
export interface CommentReportView {
|
92
90
|
comment_report: CommentReport;
|
93
91
|
comment: Comment;
|
94
92
|
post: Post;
|
@@ -97,127 +95,127 @@ export declare class CommentReportView {
|
|
97
95
|
comment_creator: PersonSafe;
|
98
96
|
counts: CommentAggregates;
|
99
97
|
creator_banned_from_community: boolean;
|
100
|
-
my_vote
|
101
|
-
resolver
|
98
|
+
my_vote?: number;
|
99
|
+
resolver?: PersonSafe;
|
102
100
|
}
|
103
|
-
export
|
101
|
+
export interface ModAddCommunityView {
|
104
102
|
mod_add_community: ModAddCommunity;
|
105
|
-
moderator
|
103
|
+
moderator?: PersonSafe;
|
106
104
|
community: CommunitySafe;
|
107
105
|
modded_person: PersonSafe;
|
108
106
|
}
|
109
|
-
export
|
107
|
+
export interface ModTransferCommunityView {
|
110
108
|
mod_transfer_community: ModTransferCommunity;
|
111
|
-
moderator
|
109
|
+
moderator?: PersonSafe;
|
112
110
|
community: CommunitySafe;
|
113
111
|
modded_person: PersonSafe;
|
114
112
|
}
|
115
|
-
export
|
113
|
+
export interface ModAddView {
|
116
114
|
mod_add: ModAdd;
|
117
|
-
moderator
|
115
|
+
moderator?: PersonSafe;
|
118
116
|
modded_person: PersonSafe;
|
119
117
|
}
|
120
|
-
export
|
118
|
+
export interface ModBanFromCommunityView {
|
121
119
|
mod_ban_from_community: ModBanFromCommunity;
|
122
|
-
moderator
|
120
|
+
moderator?: PersonSafe;
|
123
121
|
community: CommunitySafe;
|
124
122
|
banned_person: PersonSafe;
|
125
123
|
}
|
126
|
-
export
|
124
|
+
export interface ModBanView {
|
127
125
|
mod_ban: ModBan;
|
128
|
-
moderator
|
126
|
+
moderator?: PersonSafe;
|
129
127
|
banned_person: PersonSafe;
|
130
128
|
}
|
131
|
-
export
|
129
|
+
export interface ModLockPostView {
|
132
130
|
mod_lock_post: ModLockPost;
|
133
|
-
moderator
|
131
|
+
moderator?: PersonSafe;
|
134
132
|
post: Post;
|
135
133
|
community: CommunitySafe;
|
136
134
|
}
|
137
|
-
export
|
135
|
+
export interface ModRemoveCommentView {
|
138
136
|
mod_remove_comment: ModRemoveComment;
|
139
|
-
moderator
|
137
|
+
moderator?: PersonSafe;
|
140
138
|
comment: Comment;
|
141
139
|
commenter: PersonSafe;
|
142
140
|
post: Post;
|
143
141
|
community: CommunitySafe;
|
144
142
|
}
|
145
|
-
export
|
143
|
+
export interface ModRemoveCommunityView {
|
146
144
|
mod_remove_community: ModRemoveCommunity;
|
147
|
-
moderator
|
145
|
+
moderator?: PersonSafe;
|
148
146
|
community: CommunitySafe;
|
149
147
|
}
|
150
|
-
export
|
148
|
+
export interface ModRemovePostView {
|
151
149
|
mod_remove_post: ModRemovePost;
|
152
|
-
moderator
|
150
|
+
moderator?: PersonSafe;
|
153
151
|
post: Post;
|
154
152
|
community: CommunitySafe;
|
155
153
|
}
|
156
|
-
export
|
154
|
+
export interface ModFeaturePostView {
|
157
155
|
mod_feature_post: ModFeaturePost;
|
158
|
-
moderator
|
156
|
+
moderator?: PersonSafe;
|
159
157
|
post: Post;
|
160
158
|
community: CommunitySafe;
|
161
159
|
}
|
162
|
-
export
|
160
|
+
export interface AdminPurgeCommunityView {
|
163
161
|
admin_purge_community: AdminPurgeCommunity;
|
164
|
-
admin
|
162
|
+
admin?: PersonSafe;
|
165
163
|
}
|
166
|
-
export
|
164
|
+
export interface AdminPurgePersonView {
|
167
165
|
admin_purge_person: AdminPurgePerson;
|
168
|
-
admin
|
166
|
+
admin?: PersonSafe;
|
169
167
|
}
|
170
|
-
export
|
168
|
+
export interface AdminPurgePostView {
|
171
169
|
admin_purge_post: AdminPurgePost;
|
172
|
-
admin
|
170
|
+
admin?: PersonSafe;
|
173
171
|
community: CommunitySafe;
|
174
172
|
}
|
175
|
-
export
|
173
|
+
export interface AdminPurgeCommentView {
|
176
174
|
admin_purge_comment: AdminPurgeComment;
|
177
|
-
admin
|
175
|
+
admin?: PersonSafe;
|
178
176
|
post: Post;
|
179
177
|
}
|
180
|
-
export
|
178
|
+
export interface CommunityFollowerView {
|
181
179
|
community: CommunitySafe;
|
182
180
|
follower: PersonSafe;
|
183
181
|
}
|
184
|
-
export
|
182
|
+
export interface CommunityBlockView {
|
185
183
|
person: PersonSafe;
|
186
184
|
community: CommunitySafe;
|
187
185
|
}
|
188
|
-
export
|
186
|
+
export interface CommunityModeratorView {
|
189
187
|
community: CommunitySafe;
|
190
188
|
moderator: PersonSafe;
|
191
189
|
}
|
192
|
-
export
|
190
|
+
export interface CommunityPersonBanView {
|
193
191
|
community: CommunitySafe;
|
194
192
|
person: PersonSafe;
|
195
193
|
}
|
196
|
-
export
|
194
|
+
export interface PersonBlockView {
|
197
195
|
person: PersonSafe;
|
198
196
|
target: PersonSafe;
|
199
197
|
}
|
200
|
-
export
|
198
|
+
export interface CommunityView {
|
201
199
|
community: CommunitySafe;
|
202
200
|
subscribed: SubscribedType;
|
203
201
|
blocked: boolean;
|
204
202
|
counts: CommunityAggregates;
|
205
203
|
}
|
206
|
-
export
|
204
|
+
export interface RegistrationApplicationView {
|
207
205
|
registration_application: RegistrationApplication;
|
208
206
|
creator_local_user: LocalUserSettings;
|
209
207
|
creator: PersonSafe;
|
210
|
-
admin
|
208
|
+
admin?: PersonSafe;
|
211
209
|
}
|
212
210
|
export interface CommentNode {
|
213
211
|
comment_view: CommentView | PersonMentionView | CommentReplyView;
|
214
212
|
children: CommentNode[];
|
215
213
|
depth: number;
|
216
214
|
}
|
217
|
-
export
|
215
|
+
export interface PrivateMessageReportView {
|
218
216
|
private_message_report: PrivateMessageReport;
|
219
217
|
private_message: PrivateMessage;
|
220
218
|
private_message_creator: PersonSafe;
|
221
219
|
creator: PersonSafe;
|
222
|
-
resolver
|
220
|
+
resolver?: PersonSafe;
|
223
221
|
}
|