lemmy-js-client 0.17.2-rc.9 → 0.18.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +27 -12
- package/dist/http.js +351 -375
- package/dist/index.d.ts +248 -1
- package/dist/index.js +3 -1
- package/dist/types/BanFromCommunity.d.ts +1 -1
- package/dist/types/BanPerson.d.ts +1 -1
- package/dist/types/CommentAggregates.d.ts +4 -3
- package/dist/types/CommunityAggregates.d.ts +8 -7
- package/dist/types/GetCaptcha.d.ts +3 -1
- package/dist/types/GetComments.d.ts +2 -2
- package/dist/types/GetCommunityResponse.d.ts +0 -2
- package/dist/types/GetFederatedInstances.d.ts +3 -1
- package/dist/types/GetModlog.d.ts +2 -2
- package/dist/types/GetPersonDetails.d.ts +2 -2
- package/dist/types/GetPersonMentions.d.ts +2 -2
- package/dist/types/GetPost.d.ts +4 -2
- package/dist/types/GetPostResponse.d.ts +0 -1
- package/dist/types/GetPosts.d.ts +2 -2
- package/dist/types/GetPrivateMessages.d.ts +2 -2
- package/dist/types/GetReplies.d.ts +2 -2
- package/dist/types/GetReportCountResponse.d.ts +3 -3
- package/dist/types/GetSiteResponse.d.ts +0 -1
- package/dist/types/GetUnreadCountResponse.d.ts +3 -3
- package/dist/types/GetUnreadRegistrationApplicationCountResponse.d.ts +1 -1
- package/dist/types/ListCommentReports.d.ts +2 -2
- package/dist/types/ListCommunities.d.ts +2 -2
- package/dist/types/ListPostReports.d.ts +2 -2
- package/dist/types/ListPrivateMessageReports.d.ts +2 -2
- package/dist/types/ListRegistrationApplications.d.ts +2 -2
- package/dist/types/LocalSite.d.ts +0 -1
- package/dist/types/ModlogListParams.d.ts +2 -2
- package/dist/types/PersonAggregates.d.ts +4 -4
- package/dist/types/PostAggregates.d.ts +6 -4
- package/dist/types/PostView.d.ts +1 -1
- package/dist/types/RemoveCommunity.d.ts +1 -1
- package/dist/types/Search.d.ts +2 -2
- package/dist/types/SiteAggregates.d.ts +8 -8
- package/dist/types/SiteResponse.d.ts +2 -0
- package/dist/types/others.d.ts +2 -1
- package/dist/types/others.js +1 -0
- package/dist/websocket.d.ts +7 -1
- package/dist/websocket.js +185 -181
- package/package.json +14 -15
package/dist/index.d.ts
CHANGED
@@ -1,2 +1,249 @@
|
|
1
1
|
export * from "./http";
|
2
|
-
export
|
2
|
+
export { AddAdmin } from "./types/AddAdmin";
|
3
|
+
export { AddAdminResponse } from "./types/AddAdminResponse";
|
4
|
+
export { AddModToCommunity } from "./types/AddModToCommunity";
|
5
|
+
export { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
|
6
|
+
export { AdminPurgeComment } from "./types/AdminPurgeComment";
|
7
|
+
export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
|
8
|
+
export { AdminPurgeCommunity } from "./types/AdminPurgeCommunity";
|
9
|
+
export { AdminPurgeCommunityView } from "./types/AdminPurgeCommunityView";
|
10
|
+
export { AdminPurgePerson } from "./types/AdminPurgePerson";
|
11
|
+
export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
|
12
|
+
export { AdminPurgePost } from "./types/AdminPurgePost";
|
13
|
+
export { AdminPurgePostView } from "./types/AdminPurgePostView";
|
14
|
+
export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
|
15
|
+
export { BanFromCommunity } from "./types/BanFromCommunity";
|
16
|
+
export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
|
17
|
+
export { BanPerson } from "./types/BanPerson";
|
18
|
+
export { BanPersonResponse } from "./types/BanPersonResponse";
|
19
|
+
export { BannedPersonsResponse } from "./types/BannedPersonsResponse";
|
20
|
+
export { BlockCommunity } from "./types/BlockCommunity";
|
21
|
+
export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
|
22
|
+
export { BlockPerson } from "./types/BlockPerson";
|
23
|
+
export { BlockPersonResponse } from "./types/BlockPersonResponse";
|
24
|
+
export { CaptchaResponse } from "./types/CaptchaResponse";
|
25
|
+
export { ChangePassword } from "./types/ChangePassword";
|
26
|
+
export { Comment } from "./types/Comment";
|
27
|
+
export { CommentAggregates } from "./types/CommentAggregates";
|
28
|
+
export { CommentId } from "./types/CommentId";
|
29
|
+
export { CommentReply } from "./types/CommentReply";
|
30
|
+
export { CommentReplyId } from "./types/CommentReplyId";
|
31
|
+
export { CommentReplyResponse } from "./types/CommentReplyResponse";
|
32
|
+
export { CommentReplyView } from "./types/CommentReplyView";
|
33
|
+
export { CommentReport } from "./types/CommentReport";
|
34
|
+
export { CommentReportId } from "./types/CommentReportId";
|
35
|
+
export { CommentReportResponse } from "./types/CommentReportResponse";
|
36
|
+
export { CommentReportView } from "./types/CommentReportView";
|
37
|
+
export { CommentResponse } from "./types/CommentResponse";
|
38
|
+
export { CommentSortType } from "./types/CommentSortType";
|
39
|
+
export { CommentView } from "./types/CommentView";
|
40
|
+
export { Community } from "./types/Community";
|
41
|
+
export { CommunityAggregates } from "./types/CommunityAggregates";
|
42
|
+
export { CommunityBlockId } from "./types/CommunityBlockId";
|
43
|
+
export { CommunityBlockView } from "./types/CommunityBlockView";
|
44
|
+
export { CommunityFollowerView } from "./types/CommunityFollowerView";
|
45
|
+
export { CommunityId } from "./types/CommunityId";
|
46
|
+
export { CommunityJoin } from "./types/CommunityJoin";
|
47
|
+
export { CommunityJoinResponse } from "./types/CommunityJoinResponse";
|
48
|
+
export { CommunityModeratorView } from "./types/CommunityModeratorView";
|
49
|
+
export { CommunityResponse } from "./types/CommunityResponse";
|
50
|
+
export { CommunityView } from "./types/CommunityView";
|
51
|
+
export { CreateComment } from "./types/CreateComment";
|
52
|
+
export { CreateCommentLike } from "./types/CreateCommentLike";
|
53
|
+
export { CreateCommentReport } from "./types/CreateCommentReport";
|
54
|
+
export { CreateCommunity } from "./types/CreateCommunity";
|
55
|
+
export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
56
|
+
export { CreatePost } from "./types/CreatePost";
|
57
|
+
export { CreatePostLike } from "./types/CreatePostLike";
|
58
|
+
export { CreatePostReport } from "./types/CreatePostReport";
|
59
|
+
export { CreatePrivateMessage } from "./types/CreatePrivateMessage";
|
60
|
+
export { CreatePrivateMessageReport } from "./types/CreatePrivateMessageReport";
|
61
|
+
export { CreateSite } from "./types/CreateSite";
|
62
|
+
export { CustomEmoji } from "./types/CustomEmoji";
|
63
|
+
export { CustomEmojiId } from "./types/CustomEmojiId";
|
64
|
+
export { CustomEmojiKeyword } from "./types/CustomEmojiKeyword";
|
65
|
+
export { CustomEmojiResponse } from "./types/CustomEmojiResponse";
|
66
|
+
export { CustomEmojiView } from "./types/CustomEmojiView";
|
67
|
+
export { DeleteAccount } from "./types/DeleteAccount";
|
68
|
+
export { DeleteAccountResponse } from "./types/DeleteAccountResponse";
|
69
|
+
export { DeleteComment } from "./types/DeleteComment";
|
70
|
+
export { DeleteCommunity } from "./types/DeleteCommunity";
|
71
|
+
export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
|
72
|
+
export { DeleteCustomEmojiResponse } from "./types/DeleteCustomEmojiResponse";
|
73
|
+
export { DeletePost } from "./types/DeletePost";
|
74
|
+
export { DeletePrivateMessage } from "./types/DeletePrivateMessage";
|
75
|
+
export { DistinguishComment } from "./types/DistinguishComment";
|
76
|
+
export { EditComment } from "./types/EditComment";
|
77
|
+
export { EditCommunity } from "./types/EditCommunity";
|
78
|
+
export { EditCustomEmoji } from "./types/EditCustomEmoji";
|
79
|
+
export { EditPost } from "./types/EditPost";
|
80
|
+
export { EditPrivateMessage } from "./types/EditPrivateMessage";
|
81
|
+
export { EditSite } from "./types/EditSite";
|
82
|
+
export { FeaturePost } from "./types/FeaturePost";
|
83
|
+
export { FederatedInstances } from "./types/FederatedInstances";
|
84
|
+
export { FollowCommunity } from "./types/FollowCommunity";
|
85
|
+
export { GetBannedPersons } from "./types/GetBannedPersons";
|
86
|
+
export { GetCaptcha } from "./types/GetCaptcha";
|
87
|
+
export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
|
88
|
+
export { GetComment } from "./types/GetComment";
|
89
|
+
export { GetComments } from "./types/GetComments";
|
90
|
+
export { GetCommentsResponse } from "./types/GetCommentsResponse";
|
91
|
+
export { GetCommunity } from "./types/GetCommunity";
|
92
|
+
export { GetCommunityResponse } from "./types/GetCommunityResponse";
|
93
|
+
export { GetFederatedInstances } from "./types/GetFederatedInstances";
|
94
|
+
export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
|
95
|
+
export { GetModlog } from "./types/GetModlog";
|
96
|
+
export { GetModlogResponse } from "./types/GetModlogResponse";
|
97
|
+
export { GetPersonDetails } from "./types/GetPersonDetails";
|
98
|
+
export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
|
99
|
+
export { GetPersonMentions } from "./types/GetPersonMentions";
|
100
|
+
export { GetPersonMentionsResponse } from "./types/GetPersonMentionsResponse";
|
101
|
+
export { GetPost } from "./types/GetPost";
|
102
|
+
export { GetPostResponse } from "./types/GetPostResponse";
|
103
|
+
export { GetPosts } from "./types/GetPosts";
|
104
|
+
export { GetPostsResponse } from "./types/GetPostsResponse";
|
105
|
+
export { GetPrivateMessages } from "./types/GetPrivateMessages";
|
106
|
+
export { GetReplies } from "./types/GetReplies";
|
107
|
+
export { GetRepliesResponse } from "./types/GetRepliesResponse";
|
108
|
+
export { GetReportCount } from "./types/GetReportCount";
|
109
|
+
export { GetReportCountResponse } from "./types/GetReportCountResponse";
|
110
|
+
export { GetSite } from "./types/GetSite";
|
111
|
+
export { GetSiteMetadata } from "./types/GetSiteMetadata";
|
112
|
+
export { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse";
|
113
|
+
export { GetSiteResponse } from "./types/GetSiteResponse";
|
114
|
+
export { GetUnreadCount } from "./types/GetUnreadCount";
|
115
|
+
export { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
|
116
|
+
export { GetUnreadRegistrationApplicationCount } from "./types/GetUnreadRegistrationApplicationCount";
|
117
|
+
export { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
|
118
|
+
export { HideCommunity } from "./types/HideCommunity";
|
119
|
+
export { Instance } from "./types/Instance";
|
120
|
+
export { InstanceId } from "./types/InstanceId";
|
121
|
+
export { Language } from "./types/Language";
|
122
|
+
export { LanguageId } from "./types/LanguageId";
|
123
|
+
export { LeaveAdmin } from "./types/LeaveAdmin";
|
124
|
+
export { ListCommentReports } from "./types/ListCommentReports";
|
125
|
+
export { ListCommentReportsResponse } from "./types/ListCommentReportsResponse";
|
126
|
+
export { ListCommunities } from "./types/ListCommunities";
|
127
|
+
export { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
|
128
|
+
export { ListPostReports } from "./types/ListPostReports";
|
129
|
+
export { ListPostReportsResponse } from "./types/ListPostReportsResponse";
|
130
|
+
export { ListPrivateMessageReports } from "./types/ListPrivateMessageReports";
|
131
|
+
export { ListPrivateMessageReportsResponse } from "./types/ListPrivateMessageReportsResponse";
|
132
|
+
export { ListRegistrationApplications } from "./types/ListRegistrationApplications";
|
133
|
+
export { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
|
134
|
+
export { ListingType } from "./types/ListingType";
|
135
|
+
export { LocalSite } from "./types/LocalSite";
|
136
|
+
export { LocalSiteId } from "./types/LocalSiteId";
|
137
|
+
export { LocalSiteRateLimit } from "./types/LocalSiteRateLimit";
|
138
|
+
export { LocalUser } from "./types/LocalUser";
|
139
|
+
export { LocalUserId } from "./types/LocalUserId";
|
140
|
+
export { LocalUserView } from "./types/LocalUserView";
|
141
|
+
export { LockPost } from "./types/LockPost";
|
142
|
+
export { Login } from "./types/Login";
|
143
|
+
export { LoginResponse } from "./types/LoginResponse";
|
144
|
+
export { MarkAllAsRead } from "./types/MarkAllAsRead";
|
145
|
+
export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
146
|
+
export { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead";
|
147
|
+
export { MarkPostAsRead } from "./types/MarkPostAsRead";
|
148
|
+
export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
149
|
+
export { ModAdd } from "./types/ModAdd";
|
150
|
+
export { ModAddCommunity } from "./types/ModAddCommunity";
|
151
|
+
export { ModAddCommunityView } from "./types/ModAddCommunityView";
|
152
|
+
export { ModAddView } from "./types/ModAddView";
|
153
|
+
export { ModBan } from "./types/ModBan";
|
154
|
+
export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
|
155
|
+
export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
|
156
|
+
export { ModBanView } from "./types/ModBanView";
|
157
|
+
export { ModFeaturePost } from "./types/ModFeaturePost";
|
158
|
+
export { ModFeaturePostView } from "./types/ModFeaturePostView";
|
159
|
+
export { ModHideCommunity } from "./types/ModHideCommunity";
|
160
|
+
export { ModHideCommunityView } from "./types/ModHideCommunityView";
|
161
|
+
export { ModJoin } from "./types/ModJoin";
|
162
|
+
export { ModJoinResponse } from "./types/ModJoinResponse";
|
163
|
+
export { ModLockPost } from "./types/ModLockPost";
|
164
|
+
export { ModLockPostView } from "./types/ModLockPostView";
|
165
|
+
export { ModRemoveComment } from "./types/ModRemoveComment";
|
166
|
+
export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
|
167
|
+
export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
|
168
|
+
export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
|
169
|
+
export { ModRemovePost } from "./types/ModRemovePost";
|
170
|
+
export { ModRemovePostView } from "./types/ModRemovePostView";
|
171
|
+
export { ModTransferCommunity } from "./types/ModTransferCommunity";
|
172
|
+
export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
|
173
|
+
export { ModlogActionType } from "./types/ModlogActionType";
|
174
|
+
export { ModlogListParams } from "./types/ModlogListParams";
|
175
|
+
export { MyUserInfo } from "./types/MyUserInfo";
|
176
|
+
export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
177
|
+
export { PasswordReset } from "./types/PasswordReset";
|
178
|
+
export { PasswordResetResponse } from "./types/PasswordResetResponse";
|
179
|
+
export { Person } from "./types/Person";
|
180
|
+
export { PersonAggregates } from "./types/PersonAggregates";
|
181
|
+
export { PersonBlockId } from "./types/PersonBlockId";
|
182
|
+
export { PersonBlockView } from "./types/PersonBlockView";
|
183
|
+
export { PersonId } from "./types/PersonId";
|
184
|
+
export { PersonMention } from "./types/PersonMention";
|
185
|
+
export { PersonMentionId } from "./types/PersonMentionId";
|
186
|
+
export { PersonMentionResponse } from "./types/PersonMentionResponse";
|
187
|
+
export { PersonMentionView } from "./types/PersonMentionView";
|
188
|
+
export { PersonView } from "./types/PersonView";
|
189
|
+
export { Post } from "./types/Post";
|
190
|
+
export { PostAggregates } from "./types/PostAggregates";
|
191
|
+
export { PostFeatureType } from "./types/PostFeatureType";
|
192
|
+
export { PostId } from "./types/PostId";
|
193
|
+
export { PostJoin } from "./types/PostJoin";
|
194
|
+
export { PostJoinResponse } from "./types/PostJoinResponse";
|
195
|
+
export { PostOrCommentId } from "./types/PostOrCommentId";
|
196
|
+
export { PostReport } from "./types/PostReport";
|
197
|
+
export { PostReportId } from "./types/PostReportId";
|
198
|
+
export { PostReportResponse } from "./types/PostReportResponse";
|
199
|
+
export { PostReportView } from "./types/PostReportView";
|
200
|
+
export { PostResponse } from "./types/PostResponse";
|
201
|
+
export { PostView } from "./types/PostView";
|
202
|
+
export { PrivateMessage } from "./types/PrivateMessage";
|
203
|
+
export { PrivateMessageId } from "./types/PrivateMessageId";
|
204
|
+
export { PrivateMessageReport } from "./types/PrivateMessageReport";
|
205
|
+
export { PrivateMessageReportId } from "./types/PrivateMessageReportId";
|
206
|
+
export { PrivateMessageReportResponse } from "./types/PrivateMessageReportResponse";
|
207
|
+
export { PrivateMessageReportView } from "./types/PrivateMessageReportView";
|
208
|
+
export { PrivateMessageResponse } from "./types/PrivateMessageResponse";
|
209
|
+
export { PrivateMessageView } from "./types/PrivateMessageView";
|
210
|
+
export { PrivateMessagesResponse } from "./types/PrivateMessagesResponse";
|
211
|
+
export { PurgeComment } from "./types/PurgeComment";
|
212
|
+
export { PurgeCommunity } from "./types/PurgeCommunity";
|
213
|
+
export { PurgeItemResponse } from "./types/PurgeItemResponse";
|
214
|
+
export { PurgePerson } from "./types/PurgePerson";
|
215
|
+
export { PurgePost } from "./types/PurgePost";
|
216
|
+
export { Register } from "./types/Register";
|
217
|
+
export { RegistrationApplication } from "./types/RegistrationApplication";
|
218
|
+
export { RegistrationApplicationResponse } from "./types/RegistrationApplicationResponse";
|
219
|
+
export { RegistrationApplicationView } from "./types/RegistrationApplicationView";
|
220
|
+
export { RegistrationMode } from "./types/RegistrationMode";
|
221
|
+
export { RemoveComment } from "./types/RemoveComment";
|
222
|
+
export { RemoveCommunity } from "./types/RemoveCommunity";
|
223
|
+
export { RemovePost } from "./types/RemovePost";
|
224
|
+
export { ResolveCommentReport } from "./types/ResolveCommentReport";
|
225
|
+
export { ResolveObject } from "./types/ResolveObject";
|
226
|
+
export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
|
227
|
+
export { ResolvePostReport } from "./types/ResolvePostReport";
|
228
|
+
export { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
|
229
|
+
export { SaveComment } from "./types/SaveComment";
|
230
|
+
export { SavePost } from "./types/SavePost";
|
231
|
+
export { SaveUserSettings } from "./types/SaveUserSettings";
|
232
|
+
export { Search } from "./types/Search";
|
233
|
+
export { SearchResponse } from "./types/SearchResponse";
|
234
|
+
export { SearchType } from "./types/SearchType";
|
235
|
+
export { Site } from "./types/Site";
|
236
|
+
export { SiteAggregates } from "./types/SiteAggregates";
|
237
|
+
export { SiteId } from "./types/SiteId";
|
238
|
+
export { SiteMetadata } from "./types/SiteMetadata";
|
239
|
+
export { SiteResponse } from "./types/SiteResponse";
|
240
|
+
export { SiteView } from "./types/SiteView";
|
241
|
+
export { SortType } from "./types/SortType";
|
242
|
+
export { SubscribedType } from "./types/SubscribedType";
|
243
|
+
export { Tagline } from "./types/Tagline";
|
244
|
+
export { TransferCommunity } from "./types/TransferCommunity";
|
245
|
+
export { UserJoin } from "./types/UserJoin";
|
246
|
+
export { UserJoinResponse } from "./types/UserJoinResponse";
|
247
|
+
export { VerifyEmail } from "./types/VerifyEmail";
|
248
|
+
export { VerifyEmailResponse } from "./types/VerifyEmailResponse";
|
249
|
+
export { ImageFile, UploadImage, UploadImageResponse, UserOperation, } from "./types/others";
|
package/dist/index.js
CHANGED
@@ -14,5 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
exports.UserOperation = void 0;
|
17
18
|
__exportStar(require("./http"), exports);
|
18
|
-
|
19
|
+
var others_1 = require("./types/others");
|
20
|
+
Object.defineProperty(exports, "UserOperation", { enumerable: true, get: function () { return others_1.UserOperation; } });
|
@@ -2,9 +2,10 @@ import type { CommentId } from "./CommentId";
|
|
2
2
|
export interface CommentAggregates {
|
3
3
|
id: number;
|
4
4
|
comment_id: CommentId;
|
5
|
-
score:
|
6
|
-
upvotes:
|
7
|
-
downvotes:
|
5
|
+
score: number;
|
6
|
+
upvotes: number;
|
7
|
+
downvotes: number;
|
8
8
|
published: string;
|
9
9
|
child_count: number;
|
10
|
+
hot_rank: number;
|
10
11
|
}
|
@@ -2,12 +2,13 @@ import type { CommunityId } from "./CommunityId";
|
|
2
2
|
export interface CommunityAggregates {
|
3
3
|
id: number;
|
4
4
|
community_id: CommunityId;
|
5
|
-
subscribers:
|
6
|
-
posts:
|
7
|
-
comments:
|
5
|
+
subscribers: number;
|
6
|
+
posts: number;
|
7
|
+
comments: number;
|
8
8
|
published: string;
|
9
|
-
users_active_day:
|
10
|
-
users_active_week:
|
11
|
-
users_active_month:
|
12
|
-
users_active_half_year:
|
9
|
+
users_active_day: number;
|
10
|
+
users_active_week: number;
|
11
|
+
users_active_month: number;
|
12
|
+
users_active_half_year: number;
|
13
|
+
hot_rank: number;
|
13
14
|
}
|
@@ -4,8 +4,8 @@ import type { PersonId } from "./PersonId";
|
|
4
4
|
export interface GetModlog {
|
5
5
|
mod_person_id?: PersonId;
|
6
6
|
community_id?: CommunityId;
|
7
|
-
page?:
|
8
|
-
limit?:
|
7
|
+
page?: number;
|
8
|
+
limit?: number;
|
9
9
|
type_?: ModlogActionType;
|
10
10
|
other_person_id?: PersonId;
|
11
11
|
auth?: string;
|
package/dist/types/GetPost.d.ts
CHANGED
package/dist/types/GetPosts.d.ts
CHANGED
@@ -4,8 +4,8 @@ import type { SortType } from "./SortType";
|
|
4
4
|
export interface GetPosts {
|
5
5
|
type_?: ListingType;
|
6
6
|
sort?: SortType;
|
7
|
-
page?:
|
8
|
-
limit?:
|
7
|
+
page?: number;
|
8
|
+
limit?: number;
|
9
9
|
community_id?: CommunityId;
|
10
10
|
community_name?: string;
|
11
11
|
saved_only?: boolean;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
2
|
export interface GetReportCountResponse {
|
3
3
|
community_id?: CommunityId;
|
4
|
-
comment_reports:
|
5
|
-
post_reports:
|
6
|
-
private_message_reports?:
|
4
|
+
comment_reports: number;
|
5
|
+
post_reports: number;
|
6
|
+
private_message_reports?: number;
|
7
7
|
}
|
@@ -2,8 +2,8 @@ import type { PersonId } from "./PersonId";
|
|
2
2
|
export interface PersonAggregates {
|
3
3
|
id: number;
|
4
4
|
person_id: PersonId;
|
5
|
-
post_count:
|
6
|
-
post_score:
|
7
|
-
comment_count:
|
8
|
-
comment_score:
|
5
|
+
post_count: number;
|
6
|
+
post_score: number;
|
7
|
+
comment_count: number;
|
8
|
+
comment_score: number;
|
9
9
|
}
|
@@ -2,13 +2,15 @@ import type { PostId } from "./PostId";
|
|
2
2
|
export interface PostAggregates {
|
3
3
|
id: number;
|
4
4
|
post_id: PostId;
|
5
|
-
comments:
|
6
|
-
score:
|
7
|
-
upvotes:
|
8
|
-
downvotes:
|
5
|
+
comments: number;
|
6
|
+
score: number;
|
7
|
+
upvotes: number;
|
8
|
+
downvotes: number;
|
9
9
|
published: string;
|
10
10
|
newest_comment_time_necro: string;
|
11
11
|
newest_comment_time: string;
|
12
12
|
featured_community: boolean;
|
13
13
|
featured_local: boolean;
|
14
|
+
hot_rank: number;
|
15
|
+
hot_rank_active: number;
|
14
16
|
}
|
package/dist/types/PostView.d.ts
CHANGED
package/dist/types/Search.d.ts
CHANGED
@@ -2,12 +2,12 @@ import type { SiteId } from "./SiteId";
|
|
2
2
|
export interface SiteAggregates {
|
3
3
|
id: number;
|
4
4
|
site_id: SiteId;
|
5
|
-
users:
|
6
|
-
posts:
|
7
|
-
comments:
|
8
|
-
communities:
|
9
|
-
users_active_day:
|
10
|
-
users_active_week:
|
11
|
-
users_active_month:
|
12
|
-
users_active_half_year:
|
5
|
+
users: number;
|
6
|
+
posts: number;
|
7
|
+
comments: number;
|
8
|
+
communities: number;
|
9
|
+
users_active_day: number;
|
10
|
+
users_active_week: number;
|
11
|
+
users_active_month: number;
|
12
|
+
users_active_half_year: number;
|
13
13
|
}
|