lemmy-js-client 0.17.0-rc.9 → 0.17.2-rc.2
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/README.md +23 -4
- package/dist/http.d.ts +198 -16
- package/dist/http.js +245 -26
- package/dist/index.js +5 -1
- package/dist/interfaces/aggregates.d.ts +3 -0
- package/dist/interfaces/api/comment.d.ts +12 -11
- package/dist/interfaces/api/community.d.ts +5 -0
- package/dist/interfaces/api/index.js +5 -1
- package/dist/interfaces/api/person.d.ts +40 -6
- package/dist/interfaces/api/post.d.ts +19 -8
- package/dist/interfaces/api/site.d.ts +96 -21
- package/dist/interfaces/index.js +5 -1
- package/dist/interfaces/others.d.ts +122 -85
- package/dist/interfaces/others.js +133 -59
- package/dist/interfaces/source.d.ts +124 -16
- package/dist/interfaces/source.js +7 -0
- package/dist/interfaces/views.d.ts +66 -18
- package/dist/utils.d.ts +0 -0
- package/dist/utils.js +0 -0
- package/dist/websocket.d.ts +44 -14
- package/dist/websocket.js +67 -19
- package/package.json +26 -24
@@ -15,16 +15,16 @@ export declare enum UserOperation {
|
|
15
15
|
EditComment = 9,
|
16
16
|
DeleteComment = 10,
|
17
17
|
RemoveComment = 11,
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
18
|
+
SaveComment = 12,
|
19
|
+
CreateCommentLike = 13,
|
20
|
+
GetPosts = 14,
|
21
|
+
CreatePostLike = 15,
|
22
|
+
EditPost = 16,
|
23
|
+
DeletePost = 17,
|
24
|
+
RemovePost = 18,
|
25
|
+
LockPost = 19,
|
26
|
+
FeaturePost = 20,
|
27
|
+
MarkPostAsRead = 21,
|
28
28
|
SavePost = 22,
|
29
29
|
EditCommunity = 23,
|
30
30
|
DeleteCommunity = 24,
|
@@ -34,65 +34,78 @@ export declare enum UserOperation {
|
|
34
34
|
GetReplies = 28,
|
35
35
|
GetPersonMentions = 29,
|
36
36
|
MarkPersonMentionAsRead = 30,
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
37
|
+
MarkCommentReplyAsRead = 31,
|
38
|
+
GetModlog = 32,
|
39
|
+
BanFromCommunity = 33,
|
40
|
+
AddModToCommunity = 34,
|
41
|
+
CreateSite = 35,
|
42
|
+
EditSite = 36,
|
43
|
+
GetSite = 37,
|
44
|
+
AddAdmin = 38,
|
45
|
+
GetUnreadRegistrationApplicationCount = 39,
|
46
|
+
ListRegistrationApplications = 40,
|
47
|
+
ApproveRegistrationApplication = 41,
|
48
|
+
BanPerson = 42,
|
49
|
+
GetBannedPersons = 43,
|
50
|
+
Search = 44,
|
51
|
+
ResolveObject = 45,
|
52
|
+
MarkAllAsRead = 46,
|
53
|
+
SaveUserSettings = 47,
|
54
|
+
TransferCommunity = 48,
|
55
|
+
LeaveAdmin = 49,
|
56
|
+
DeleteAccount = 50,
|
57
|
+
PasswordReset = 51,
|
58
|
+
PasswordChange = 52,
|
59
|
+
CreatePrivateMessage = 53,
|
60
|
+
EditPrivateMessage = 54,
|
61
|
+
DeletePrivateMessage = 55,
|
62
|
+
MarkPrivateMessageAsRead = 56,
|
63
|
+
CreatePrivateMessageReport = 57,
|
64
|
+
ResolvePrivateMessageReport = 58,
|
65
|
+
ListPrivateMessageReports = 59,
|
66
|
+
GetPrivateMessages = 60,
|
67
|
+
UserJoin = 61,
|
68
|
+
GetComments = 62,
|
69
|
+
PostJoin = 63,
|
70
|
+
CommunityJoin = 64,
|
71
|
+
ChangePassword = 65,
|
72
|
+
GetSiteMetadata = 66,
|
73
|
+
BlockCommunity = 67,
|
74
|
+
BlockPerson = 68,
|
75
|
+
PurgePerson = 69,
|
76
|
+
PurgeCommunity = 70,
|
77
|
+
PurgePost = 71,
|
78
|
+
PurgeComment = 72,
|
79
|
+
CreateCommentReport = 73,
|
80
|
+
ResolveCommentReport = 74,
|
81
|
+
ListCommentReports = 75,
|
82
|
+
CreatePostReport = 76,
|
83
|
+
ResolvePostReport = 77,
|
84
|
+
ListPostReports = 78,
|
85
|
+
GetReportCount = 79,
|
86
|
+
GetUnreadCount = 80,
|
87
|
+
VerifyEmail = 81
|
82
88
|
}
|
83
89
|
/**
|
84
|
-
* Different sort types used in lemmy.
|
90
|
+
* Different post sort types used in lemmy.
|
85
91
|
*/
|
86
92
|
export declare enum SortType {
|
87
93
|
/**
|
88
|
-
* Posts sorted by
|
94
|
+
* Posts sorted by hot, but bumped by new comments up to 2 days
|
89
95
|
*/
|
90
96
|
Active = "Active",
|
91
97
|
/**
|
92
|
-
* Posts sorted by
|
98
|
+
* Posts sorted by a decaying rank.
|
93
99
|
*/
|
94
100
|
Hot = "Hot",
|
101
|
+
/**
|
102
|
+
* Posts sorted by the published time.
|
103
|
+
*/
|
95
104
|
New = "New",
|
105
|
+
/**
|
106
|
+
* Posts sorted by the published time ascending
|
107
|
+
*/
|
108
|
+
Old = "Old",
|
96
109
|
/**
|
97
110
|
* The top posts for this last day.
|
98
111
|
*/
|
@@ -122,6 +135,27 @@ export declare enum SortType {
|
|
122
135
|
*/
|
123
136
|
NewComments = "NewComments"
|
124
137
|
}
|
138
|
+
/**
|
139
|
+
* Different comment sort types used in lemmy.
|
140
|
+
*/
|
141
|
+
export declare enum CommentSortType {
|
142
|
+
/**
|
143
|
+
* Comments sorted by a decaying rank.
|
144
|
+
*/
|
145
|
+
Hot = "Hot",
|
146
|
+
/**
|
147
|
+
* Comments sorted by top score.
|
148
|
+
*/
|
149
|
+
Top = "Top",
|
150
|
+
/**
|
151
|
+
* Comments sorted by new.
|
152
|
+
*/
|
153
|
+
New = "New",
|
154
|
+
/**
|
155
|
+
* Comments sorted by old.
|
156
|
+
*/
|
157
|
+
Old = "Old"
|
158
|
+
}
|
125
159
|
/**
|
126
160
|
* The different listing types for post and comment fetches.
|
127
161
|
*/
|
@@ -143,37 +177,40 @@ export declare enum SearchType {
|
|
143
177
|
Url = "Url"
|
144
178
|
}
|
145
179
|
/**
|
146
|
-
*
|
147
|
-
* Can be used like:
|
148
|
-
*
|
149
|
-
* ```ts
|
150
|
-
* if (op == UserOperation.Search) {
|
151
|
-
* let data = wsJsonToRes<SearchResponse>(msg).data;
|
152
|
-
* }
|
153
|
-
* ```
|
180
|
+
* Mod log action types
|
154
181
|
*/
|
155
|
-
export
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
182
|
+
export declare enum ModlogActionType {
|
183
|
+
All = "All",
|
184
|
+
ModRemovePost = "ModRemovePost",
|
185
|
+
ModLockPost = "ModLockPost",
|
186
|
+
ModFeaturePost = "ModFeaturePost",
|
187
|
+
ModRemoveComment = "ModRemoveComment",
|
188
|
+
ModRemoveCommunity = "ModRemoveCommunity",
|
189
|
+
ModBanFromCommunity = "ModBanFromCommunity",
|
190
|
+
ModAddCommunity = "ModAddCommunity",
|
191
|
+
ModTransferCommunity = "ModTransferCommunity",
|
192
|
+
ModAdd = "ModAdd",
|
193
|
+
ModBan = "ModBan",
|
194
|
+
ModHideCommunity = "ModHideCommunity",
|
195
|
+
AdminPurgePerson = "AdminPurgePerson",
|
196
|
+
AdminPurgeCommunity = "AdminPurgeCommunity",
|
197
|
+
AdminPurgePost = "AdminPurgePost",
|
198
|
+
AdminPurgeComment = "AdminPurgeComment"
|
163
199
|
}
|
164
200
|
/**
|
165
|
-
*
|
201
|
+
* Different Subscribed states
|
166
202
|
*/
|
167
|
-
export
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
203
|
+
export declare enum SubscribedType {
|
204
|
+
Subscribed = "Subscribed",
|
205
|
+
NotSubscribed = "NotSubscribed",
|
206
|
+
Pending = "Pending"
|
207
|
+
}
|
208
|
+
/**
|
209
|
+
* Different Subscribed states
|
210
|
+
*/
|
211
|
+
export declare enum PostFeatureType {
|
212
|
+
Local = "Local",
|
213
|
+
Community = "Community"
|
177
214
|
}
|
178
215
|
/**
|
179
216
|
* A holder for a site's metadata ( such as opengraph tags ), used for post links.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SearchType = exports.ListingType = exports.SortType = exports.UserOperation = exports.VERSION = void 0;
|
3
|
+
exports.PostFeatureType = exports.SubscribedType = exports.ModlogActionType = exports.SearchType = exports.ListingType = exports.CommentSortType = exports.SortType = exports.UserOperation = exports.VERSION = void 0;
|
4
4
|
exports.VERSION = "v3";
|
5
5
|
/**
|
6
6
|
* All of the websocket operations available.
|
@@ -19,16 +19,16 @@ var UserOperation;
|
|
19
19
|
UserOperation[UserOperation["EditComment"] = 9] = "EditComment";
|
20
20
|
UserOperation[UserOperation["DeleteComment"] = 10] = "DeleteComment";
|
21
21
|
UserOperation[UserOperation["RemoveComment"] = 11] = "RemoveComment";
|
22
|
-
UserOperation[UserOperation["
|
23
|
-
UserOperation[UserOperation["
|
24
|
-
UserOperation[UserOperation["
|
25
|
-
UserOperation[UserOperation["
|
26
|
-
UserOperation[UserOperation["
|
27
|
-
UserOperation[UserOperation["
|
28
|
-
UserOperation[UserOperation["
|
29
|
-
UserOperation[UserOperation["
|
30
|
-
UserOperation[UserOperation["
|
31
|
-
UserOperation[UserOperation["
|
22
|
+
UserOperation[UserOperation["SaveComment"] = 12] = "SaveComment";
|
23
|
+
UserOperation[UserOperation["CreateCommentLike"] = 13] = "CreateCommentLike";
|
24
|
+
UserOperation[UserOperation["GetPosts"] = 14] = "GetPosts";
|
25
|
+
UserOperation[UserOperation["CreatePostLike"] = 15] = "CreatePostLike";
|
26
|
+
UserOperation[UserOperation["EditPost"] = 16] = "EditPost";
|
27
|
+
UserOperation[UserOperation["DeletePost"] = 17] = "DeletePost";
|
28
|
+
UserOperation[UserOperation["RemovePost"] = 18] = "RemovePost";
|
29
|
+
UserOperation[UserOperation["LockPost"] = 19] = "LockPost";
|
30
|
+
UserOperation[UserOperation["FeaturePost"] = 20] = "FeaturePost";
|
31
|
+
UserOperation[UserOperation["MarkPostAsRead"] = 21] = "MarkPostAsRead";
|
32
32
|
UserOperation[UserOperation["SavePost"] = 22] = "SavePost";
|
33
33
|
UserOperation[UserOperation["EditCommunity"] = 23] = "EditCommunity";
|
34
34
|
UserOperation[UserOperation["DeleteCommunity"] = 24] = "DeleteCommunity";
|
@@ -38,66 +38,79 @@ var UserOperation;
|
|
38
38
|
UserOperation[UserOperation["GetReplies"] = 28] = "GetReplies";
|
39
39
|
UserOperation[UserOperation["GetPersonMentions"] = 29] = "GetPersonMentions";
|
40
40
|
UserOperation[UserOperation["MarkPersonMentionAsRead"] = 30] = "MarkPersonMentionAsRead";
|
41
|
-
UserOperation[UserOperation["
|
42
|
-
UserOperation[UserOperation["
|
43
|
-
UserOperation[UserOperation["
|
44
|
-
UserOperation[UserOperation["
|
45
|
-
UserOperation[UserOperation["
|
46
|
-
UserOperation[UserOperation["
|
47
|
-
UserOperation[UserOperation["
|
48
|
-
UserOperation[UserOperation["
|
49
|
-
UserOperation[UserOperation["
|
50
|
-
UserOperation[UserOperation["
|
51
|
-
UserOperation[UserOperation["
|
52
|
-
UserOperation[UserOperation["
|
53
|
-
UserOperation[UserOperation["
|
54
|
-
UserOperation[UserOperation["
|
55
|
-
UserOperation[UserOperation["
|
56
|
-
UserOperation[UserOperation["
|
57
|
-
UserOperation[UserOperation["
|
58
|
-
UserOperation[UserOperation["
|
59
|
-
UserOperation[UserOperation["
|
60
|
-
UserOperation[UserOperation["
|
61
|
-
UserOperation[UserOperation["
|
62
|
-
UserOperation[UserOperation["
|
63
|
-
UserOperation[UserOperation["
|
64
|
-
UserOperation[UserOperation["
|
65
|
-
UserOperation[UserOperation["
|
66
|
-
UserOperation[UserOperation["
|
67
|
-
UserOperation[UserOperation["
|
68
|
-
UserOperation[UserOperation["
|
69
|
-
UserOperation[UserOperation["
|
70
|
-
UserOperation[UserOperation["
|
71
|
-
UserOperation[UserOperation["
|
72
|
-
UserOperation[UserOperation["
|
73
|
-
UserOperation[UserOperation["
|
74
|
-
UserOperation[UserOperation["
|
75
|
-
UserOperation[UserOperation["
|
76
|
-
UserOperation[UserOperation["
|
77
|
-
UserOperation[UserOperation["
|
78
|
-
UserOperation[UserOperation["
|
79
|
-
UserOperation[UserOperation["
|
80
|
-
UserOperation[UserOperation["
|
81
|
-
UserOperation[UserOperation["
|
82
|
-
UserOperation[UserOperation["
|
83
|
-
UserOperation[UserOperation["
|
84
|
-
UserOperation[UserOperation["
|
85
|
-
UserOperation[UserOperation["
|
41
|
+
UserOperation[UserOperation["MarkCommentReplyAsRead"] = 31] = "MarkCommentReplyAsRead";
|
42
|
+
UserOperation[UserOperation["GetModlog"] = 32] = "GetModlog";
|
43
|
+
UserOperation[UserOperation["BanFromCommunity"] = 33] = "BanFromCommunity";
|
44
|
+
UserOperation[UserOperation["AddModToCommunity"] = 34] = "AddModToCommunity";
|
45
|
+
UserOperation[UserOperation["CreateSite"] = 35] = "CreateSite";
|
46
|
+
UserOperation[UserOperation["EditSite"] = 36] = "EditSite";
|
47
|
+
UserOperation[UserOperation["GetSite"] = 37] = "GetSite";
|
48
|
+
UserOperation[UserOperation["AddAdmin"] = 38] = "AddAdmin";
|
49
|
+
UserOperation[UserOperation["GetUnreadRegistrationApplicationCount"] = 39] = "GetUnreadRegistrationApplicationCount";
|
50
|
+
UserOperation[UserOperation["ListRegistrationApplications"] = 40] = "ListRegistrationApplications";
|
51
|
+
UserOperation[UserOperation["ApproveRegistrationApplication"] = 41] = "ApproveRegistrationApplication";
|
52
|
+
UserOperation[UserOperation["BanPerson"] = 42] = "BanPerson";
|
53
|
+
UserOperation[UserOperation["GetBannedPersons"] = 43] = "GetBannedPersons";
|
54
|
+
UserOperation[UserOperation["Search"] = 44] = "Search";
|
55
|
+
UserOperation[UserOperation["ResolveObject"] = 45] = "ResolveObject";
|
56
|
+
UserOperation[UserOperation["MarkAllAsRead"] = 46] = "MarkAllAsRead";
|
57
|
+
UserOperation[UserOperation["SaveUserSettings"] = 47] = "SaveUserSettings";
|
58
|
+
UserOperation[UserOperation["TransferCommunity"] = 48] = "TransferCommunity";
|
59
|
+
UserOperation[UserOperation["LeaveAdmin"] = 49] = "LeaveAdmin";
|
60
|
+
UserOperation[UserOperation["DeleteAccount"] = 50] = "DeleteAccount";
|
61
|
+
UserOperation[UserOperation["PasswordReset"] = 51] = "PasswordReset";
|
62
|
+
UserOperation[UserOperation["PasswordChange"] = 52] = "PasswordChange";
|
63
|
+
UserOperation[UserOperation["CreatePrivateMessage"] = 53] = "CreatePrivateMessage";
|
64
|
+
UserOperation[UserOperation["EditPrivateMessage"] = 54] = "EditPrivateMessage";
|
65
|
+
UserOperation[UserOperation["DeletePrivateMessage"] = 55] = "DeletePrivateMessage";
|
66
|
+
UserOperation[UserOperation["MarkPrivateMessageAsRead"] = 56] = "MarkPrivateMessageAsRead";
|
67
|
+
UserOperation[UserOperation["CreatePrivateMessageReport"] = 57] = "CreatePrivateMessageReport";
|
68
|
+
UserOperation[UserOperation["ResolvePrivateMessageReport"] = 58] = "ResolvePrivateMessageReport";
|
69
|
+
UserOperation[UserOperation["ListPrivateMessageReports"] = 59] = "ListPrivateMessageReports";
|
70
|
+
UserOperation[UserOperation["GetPrivateMessages"] = 60] = "GetPrivateMessages";
|
71
|
+
UserOperation[UserOperation["UserJoin"] = 61] = "UserJoin";
|
72
|
+
UserOperation[UserOperation["GetComments"] = 62] = "GetComments";
|
73
|
+
UserOperation[UserOperation["PostJoin"] = 63] = "PostJoin";
|
74
|
+
UserOperation[UserOperation["CommunityJoin"] = 64] = "CommunityJoin";
|
75
|
+
UserOperation[UserOperation["ChangePassword"] = 65] = "ChangePassword";
|
76
|
+
UserOperation[UserOperation["GetSiteMetadata"] = 66] = "GetSiteMetadata";
|
77
|
+
UserOperation[UserOperation["BlockCommunity"] = 67] = "BlockCommunity";
|
78
|
+
UserOperation[UserOperation["BlockPerson"] = 68] = "BlockPerson";
|
79
|
+
UserOperation[UserOperation["PurgePerson"] = 69] = "PurgePerson";
|
80
|
+
UserOperation[UserOperation["PurgeCommunity"] = 70] = "PurgeCommunity";
|
81
|
+
UserOperation[UserOperation["PurgePost"] = 71] = "PurgePost";
|
82
|
+
UserOperation[UserOperation["PurgeComment"] = 72] = "PurgeComment";
|
83
|
+
UserOperation[UserOperation["CreateCommentReport"] = 73] = "CreateCommentReport";
|
84
|
+
UserOperation[UserOperation["ResolveCommentReport"] = 74] = "ResolveCommentReport";
|
85
|
+
UserOperation[UserOperation["ListCommentReports"] = 75] = "ListCommentReports";
|
86
|
+
UserOperation[UserOperation["CreatePostReport"] = 76] = "CreatePostReport";
|
87
|
+
UserOperation[UserOperation["ResolvePostReport"] = 77] = "ResolvePostReport";
|
88
|
+
UserOperation[UserOperation["ListPostReports"] = 78] = "ListPostReports";
|
89
|
+
UserOperation[UserOperation["GetReportCount"] = 79] = "GetReportCount";
|
90
|
+
UserOperation[UserOperation["GetUnreadCount"] = 80] = "GetUnreadCount";
|
91
|
+
UserOperation[UserOperation["VerifyEmail"] = 81] = "VerifyEmail";
|
86
92
|
})(UserOperation = exports.UserOperation || (exports.UserOperation = {}));
|
87
93
|
/**
|
88
|
-
* Different sort types used in lemmy.
|
94
|
+
* Different post sort types used in lemmy.
|
89
95
|
*/
|
90
96
|
var SortType;
|
91
97
|
(function (SortType) {
|
92
98
|
/**
|
93
|
-
* Posts sorted by
|
99
|
+
* Posts sorted by hot, but bumped by new comments up to 2 days
|
94
100
|
*/
|
95
101
|
SortType["Active"] = "Active";
|
96
102
|
/**
|
97
|
-
* Posts sorted by
|
103
|
+
* Posts sorted by a decaying rank.
|
98
104
|
*/
|
99
105
|
SortType["Hot"] = "Hot";
|
106
|
+
/**
|
107
|
+
* Posts sorted by the published time.
|
108
|
+
*/
|
100
109
|
SortType["New"] = "New";
|
110
|
+
/**
|
111
|
+
* Posts sorted by the published time ascending
|
112
|
+
*/
|
113
|
+
SortType["Old"] = "Old";
|
101
114
|
/**
|
102
115
|
* The top posts for this last day.
|
103
116
|
*/
|
@@ -127,6 +140,28 @@ var SortType;
|
|
127
140
|
*/
|
128
141
|
SortType["NewComments"] = "NewComments";
|
129
142
|
})(SortType = exports.SortType || (exports.SortType = {}));
|
143
|
+
/**
|
144
|
+
* Different comment sort types used in lemmy.
|
145
|
+
*/
|
146
|
+
var CommentSortType;
|
147
|
+
(function (CommentSortType) {
|
148
|
+
/**
|
149
|
+
* Comments sorted by a decaying rank.
|
150
|
+
*/
|
151
|
+
CommentSortType["Hot"] = "Hot";
|
152
|
+
/**
|
153
|
+
* Comments sorted by top score.
|
154
|
+
*/
|
155
|
+
CommentSortType["Top"] = "Top";
|
156
|
+
/**
|
157
|
+
* Comments sorted by new.
|
158
|
+
*/
|
159
|
+
CommentSortType["New"] = "New";
|
160
|
+
/**
|
161
|
+
* Comments sorted by old.
|
162
|
+
*/
|
163
|
+
CommentSortType["Old"] = "Old";
|
164
|
+
})(CommentSortType = exports.CommentSortType || (exports.CommentSortType = {}));
|
130
165
|
/**
|
131
166
|
* The different listing types for post and comment fetches.
|
132
167
|
*/
|
@@ -149,3 +184,42 @@ var SearchType;
|
|
149
184
|
SearchType["Users"] = "Users";
|
150
185
|
SearchType["Url"] = "Url";
|
151
186
|
})(SearchType = exports.SearchType || (exports.SearchType = {}));
|
187
|
+
/**
|
188
|
+
* Mod log action types
|
189
|
+
*/
|
190
|
+
var ModlogActionType;
|
191
|
+
(function (ModlogActionType) {
|
192
|
+
ModlogActionType["All"] = "All";
|
193
|
+
ModlogActionType["ModRemovePost"] = "ModRemovePost";
|
194
|
+
ModlogActionType["ModLockPost"] = "ModLockPost";
|
195
|
+
ModlogActionType["ModFeaturePost"] = "ModFeaturePost";
|
196
|
+
ModlogActionType["ModRemoveComment"] = "ModRemoveComment";
|
197
|
+
ModlogActionType["ModRemoveCommunity"] = "ModRemoveCommunity";
|
198
|
+
ModlogActionType["ModBanFromCommunity"] = "ModBanFromCommunity";
|
199
|
+
ModlogActionType["ModAddCommunity"] = "ModAddCommunity";
|
200
|
+
ModlogActionType["ModTransferCommunity"] = "ModTransferCommunity";
|
201
|
+
ModlogActionType["ModAdd"] = "ModAdd";
|
202
|
+
ModlogActionType["ModBan"] = "ModBan";
|
203
|
+
ModlogActionType["ModHideCommunity"] = "ModHideCommunity";
|
204
|
+
ModlogActionType["AdminPurgePerson"] = "AdminPurgePerson";
|
205
|
+
ModlogActionType["AdminPurgeCommunity"] = "AdminPurgeCommunity";
|
206
|
+
ModlogActionType["AdminPurgePost"] = "AdminPurgePost";
|
207
|
+
ModlogActionType["AdminPurgeComment"] = "AdminPurgeComment";
|
208
|
+
})(ModlogActionType = exports.ModlogActionType || (exports.ModlogActionType = {}));
|
209
|
+
/**
|
210
|
+
* Different Subscribed states
|
211
|
+
*/
|
212
|
+
var SubscribedType;
|
213
|
+
(function (SubscribedType) {
|
214
|
+
SubscribedType["Subscribed"] = "Subscribed";
|
215
|
+
SubscribedType["NotSubscribed"] = "NotSubscribed";
|
216
|
+
SubscribedType["Pending"] = "Pending";
|
217
|
+
})(SubscribedType = exports.SubscribedType || (exports.SubscribedType = {}));
|
218
|
+
/**
|
219
|
+
* Different Subscribed states
|
220
|
+
*/
|
221
|
+
var PostFeatureType;
|
222
|
+
(function (PostFeatureType) {
|
223
|
+
PostFeatureType["Local"] = "Local";
|
224
|
+
PostFeatureType["Community"] = "Community";
|
225
|
+
})(PostFeatureType = exports.PostFeatureType || (exports.PostFeatureType = {}));
|