lemmy-js-client 1.0.0-merge-modlog-tables.2 → 1.0.0-merge-modlog-tables.4

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.
Files changed (191) hide show
  1. package/dist/http.d.ts +2 -2
  2. package/dist/http.js +4 -3
  3. package/dist/index.d.ts +1 -87
  4. package/dist/index.js +3 -0
  5. package/dist/other_types.d.ts +3 -0
  6. package/dist/types/CommentReportView.d.ts +17 -12
  7. package/dist/types/CommentSlimView.d.ts +3 -4
  8. package/dist/types/CommunityReportView.d.ts +6 -0
  9. package/dist/types/CustomEmojiView.d.ts +5 -2
  10. package/dist/types/PersonContentCombinedView.d.ts +2 -2
  11. package/dist/types/PersonSavedCombinedView.d.ts +2 -2
  12. package/dist/types/PostReportView.d.ts +17 -15
  13. package/dist/types/PrivateMessageReportView.d.ts +9 -3
  14. package/dist/types/RegistrationApplicationView.d.ts +5 -2
  15. package/dist/types/ReportCombinedView.d.ts +4 -4
  16. package/dist/types/SearchCombinedView.d.ts +8 -5
  17. package/dist/types/SiteView.d.ts +7 -4
  18. package/dist/types/VoteView.d.ts +10 -3
  19. package/package.json +2 -2
  20. package/dist/types/AdminAllowInstance.d.ts +0 -11
  21. package/dist/types/AdminAllowInstance.js +0 -2
  22. package/dist/types/AdminAllowInstanceId.d.ts +0 -1
  23. package/dist/types/AdminAllowInstanceId.js +0 -3
  24. package/dist/types/AdminAllowInstanceView.d.ts +0 -11
  25. package/dist/types/AdminAllowInstanceView.js +0 -2
  26. package/dist/types/AdminBlockInstance.d.ts +0 -12
  27. package/dist/types/AdminBlockInstance.js +0 -2
  28. package/dist/types/AdminBlockInstanceId.d.ts +0 -1
  29. package/dist/types/AdminBlockInstanceId.js +0 -3
  30. package/dist/types/AdminBlockInstanceView.d.ts +0 -11
  31. package/dist/types/AdminBlockInstanceView.js +0 -2
  32. package/dist/types/AdminPurgeComment.d.ts +0 -9
  33. package/dist/types/AdminPurgeComment.js +0 -2
  34. package/dist/types/AdminPurgeCommentId.d.ts +0 -1
  35. package/dist/types/AdminPurgeCommentId.js +0 -3
  36. package/dist/types/AdminPurgeCommentView.d.ts +0 -11
  37. package/dist/types/AdminPurgeCommentView.js +0 -2
  38. package/dist/types/AdminPurgeCommunity.d.ts +0 -7
  39. package/dist/types/AdminPurgeCommunity.js +0 -2
  40. package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
  41. package/dist/types/AdminPurgeCommunityId.js +0 -3
  42. package/dist/types/AdminPurgeCommunityView.d.ts +0 -9
  43. package/dist/types/AdminPurgeCommunityView.js +0 -2
  44. package/dist/types/AdminPurgePerson.d.ts +0 -7
  45. package/dist/types/AdminPurgePerson.js +0 -2
  46. package/dist/types/AdminPurgePersonId.d.ts +0 -1
  47. package/dist/types/AdminPurgePersonId.js +0 -3
  48. package/dist/types/AdminPurgePersonView.d.ts +0 -9
  49. package/dist/types/AdminPurgePersonView.js +0 -2
  50. package/dist/types/AdminPurgePost.d.ts +0 -9
  51. package/dist/types/AdminPurgePost.js +0 -2
  52. package/dist/types/AdminPurgePostId.d.ts +0 -1
  53. package/dist/types/AdminPurgePostId.js +0 -3
  54. package/dist/types/AdminPurgePostView.d.ts +0 -11
  55. package/dist/types/AdminPurgePostView.js +0 -2
  56. package/dist/types/CommentAggregates.d.ts +0 -9
  57. package/dist/types/CommentAggregates.js +0 -2
  58. package/dist/types/CommentReply.d.ts +0 -10
  59. package/dist/types/CommentReply.js +0 -2
  60. package/dist/types/CommentReplyId.d.ts +0 -1
  61. package/dist/types/CommentReplyId.js +0 -3
  62. package/dist/types/CommentReplyView.d.ts +0 -27
  63. package/dist/types/CommentReplyView.js +0 -2
  64. package/dist/types/CommunityAggregates.d.ts +0 -13
  65. package/dist/types/CommunityAggregates.js +0 -2
  66. package/dist/types/FederationError.d.ts +0 -10
  67. package/dist/types/FederationError.js +0 -3
  68. package/dist/types/InboxCombinedPaginationCursor.d.ts +0 -4
  69. package/dist/types/InboxCombinedPaginationCursor.js +0 -3
  70. package/dist/types/InboxCombinedView.d.ts +0 -13
  71. package/dist/types/InboxCombinedView.js +0 -2
  72. package/dist/types/InboxDataType.d.ts +0 -4
  73. package/dist/types/InboxDataType.js +0 -3
  74. package/dist/types/LocalUserVoteDisplayMode.d.ts +0 -8
  75. package/dist/types/LocalUserVoteDisplayMode.js +0 -2
  76. package/dist/types/ModAdd.d.ts +0 -8
  77. package/dist/types/ModAdd.js +0 -2
  78. package/dist/types/ModAddCommunity.d.ts +0 -10
  79. package/dist/types/ModAddCommunity.js +0 -2
  80. package/dist/types/ModAddCommunityId.d.ts +0 -1
  81. package/dist/types/ModAddCommunityId.js +0 -3
  82. package/dist/types/ModAddCommunityView.d.ts +0 -12
  83. package/dist/types/ModAddCommunityView.js +0 -2
  84. package/dist/types/ModAddId.d.ts +0 -1
  85. package/dist/types/ModAddId.js +0 -3
  86. package/dist/types/ModAddView.d.ts +0 -10
  87. package/dist/types/ModAddView.js +0 -2
  88. package/dist/types/ModBan.d.ts +0 -10
  89. package/dist/types/ModBan.js +0 -2
  90. package/dist/types/ModBanFromCommunity.d.ts +0 -12
  91. package/dist/types/ModBanFromCommunity.js +0 -2
  92. package/dist/types/ModBanFromCommunityId.d.ts +0 -1
  93. package/dist/types/ModBanFromCommunityId.js +0 -3
  94. package/dist/types/ModBanFromCommunityView.d.ts +0 -12
  95. package/dist/types/ModBanFromCommunityView.js +0 -2
  96. package/dist/types/ModBanId.d.ts +0 -1
  97. package/dist/types/ModBanId.js +0 -3
  98. package/dist/types/ModBanView.d.ts +0 -10
  99. package/dist/types/ModBanView.js +0 -2
  100. package/dist/types/ModChangeCommunityVisibility.d.ts +0 -12
  101. package/dist/types/ModChangeCommunityVisibility.js +0 -2
  102. package/dist/types/ModChangeCommunityVisibilityId.d.ts +0 -1
  103. package/dist/types/ModChangeCommunityVisibilityId.js +0 -3
  104. package/dist/types/ModChangeCommunityVisibilityView.d.ts +0 -11
  105. package/dist/types/ModChangeCommunityVisibilityView.js +0 -2
  106. package/dist/types/ModFeaturePost.d.ts +0 -10
  107. package/dist/types/ModFeaturePost.js +0 -2
  108. package/dist/types/ModFeaturePostId.d.ts +0 -1
  109. package/dist/types/ModFeaturePostId.js +0 -3
  110. package/dist/types/ModFeaturePostView.d.ts +0 -14
  111. package/dist/types/ModFeaturePostView.js +0 -2
  112. package/dist/types/ModHideCommunity.d.ts +0 -10
  113. package/dist/types/ModHideCommunity.js +0 -2
  114. package/dist/types/ModHideCommunityId.d.ts +0 -1
  115. package/dist/types/ModHideCommunityId.js +0 -3
  116. package/dist/types/ModHideCommunityView.d.ts +0 -11
  117. package/dist/types/ModHideCommunityView.js +0 -2
  118. package/dist/types/ModLockPost.d.ts +0 -9
  119. package/dist/types/ModLockPost.js +0 -2
  120. package/dist/types/ModLockPostId.d.ts +0 -1
  121. package/dist/types/ModLockPostId.js +0 -3
  122. package/dist/types/ModLockPostView.d.ts +0 -14
  123. package/dist/types/ModLockPostView.js +0 -2
  124. package/dist/types/ModRemoveComment.d.ts +0 -10
  125. package/dist/types/ModRemoveComment.js +0 -2
  126. package/dist/types/ModRemoveCommentId.d.ts +0 -1
  127. package/dist/types/ModRemoveCommentId.js +0 -3
  128. package/dist/types/ModRemoveCommentView.d.ts +0 -16
  129. package/dist/types/ModRemoveCommentView.js +0 -2
  130. package/dist/types/ModRemoveCommunity.d.ts +0 -10
  131. package/dist/types/ModRemoveCommunity.js +0 -2
  132. package/dist/types/ModRemoveCommunityId.d.ts +0 -1
  133. package/dist/types/ModRemoveCommunityId.js +0 -3
  134. package/dist/types/ModRemoveCommunityView.d.ts +0 -11
  135. package/dist/types/ModRemoveCommunityView.js +0 -2
  136. package/dist/types/ModRemovePost.d.ts +0 -10
  137. package/dist/types/ModRemovePost.js +0 -2
  138. package/dist/types/ModRemovePostId.d.ts +0 -1
  139. package/dist/types/ModRemovePostId.js +0 -3
  140. package/dist/types/ModRemovePostView.d.ts +0 -14
  141. package/dist/types/ModRemovePostView.js +0 -2
  142. package/dist/types/ModTransferCommunity.d.ts +0 -9
  143. package/dist/types/ModTransferCommunity.js +0 -2
  144. package/dist/types/ModTransferCommunityId.d.ts +0 -1
  145. package/dist/types/ModTransferCommunityId.js +0 -3
  146. package/dist/types/ModTransferCommunityView.d.ts +0 -12
  147. package/dist/types/ModTransferCommunityView.js +0 -2
  148. package/dist/types/ModlogActionType.d.ts +0 -1
  149. package/dist/types/ModlogActionType.js +0 -3
  150. package/dist/types/ModlogCombinedPaginationCursor.d.ts +0 -4
  151. package/dist/types/ModlogCombinedPaginationCursor.js +0 -3
  152. package/dist/types/ModlogCombinedView.d.ts +0 -52
  153. package/dist/types/ModlogCombinedView.js +0 -2
  154. package/dist/types/PersonAggregates.d.ts +0 -6
  155. package/dist/types/PersonAggregates.js +0 -2
  156. package/dist/types/PersonCommentMention.d.ts +0 -13
  157. package/dist/types/PersonCommentMention.js +0 -2
  158. package/dist/types/PersonCommentMentionId.d.ts +0 -4
  159. package/dist/types/PersonCommentMentionId.js +0 -3
  160. package/dist/types/PersonCommentMentionView.d.ts +0 -27
  161. package/dist/types/PersonCommentMentionView.js +0 -2
  162. package/dist/types/PersonContentCombinedPaginationCursor.d.ts +0 -4
  163. package/dist/types/PersonContentCombinedPaginationCursor.js +0 -3
  164. package/dist/types/PersonMention.d.ts +0 -10
  165. package/dist/types/PersonMention.js +0 -2
  166. package/dist/types/PersonMentionId.d.ts +0 -1
  167. package/dist/types/PersonMentionId.js +0 -3
  168. package/dist/types/PersonPostMention.d.ts +0 -13
  169. package/dist/types/PersonPostMention.js +0 -2
  170. package/dist/types/PersonPostMentionId.d.ts +0 -4
  171. package/dist/types/PersonPostMentionId.js +0 -3
  172. package/dist/types/PersonPostMentionView.d.ts +0 -27
  173. package/dist/types/PersonPostMentionView.js +0 -2
  174. package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +0 -4
  175. package/dist/types/PersonSavedCombinedPaginationCursor.js +0 -3
  176. package/dist/types/PostAggregates.d.ts +0 -10
  177. package/dist/types/PostAggregates.js +0 -2
  178. package/dist/types/PostPaginationCursor.d.ts +0 -7
  179. package/dist/types/PostPaginationCursor.js +0 -3
  180. package/dist/types/PostTags.d.ts +0 -7
  181. package/dist/types/PostTags.js +0 -2
  182. package/dist/types/ReportCombinedPaginationCursor.d.ts +0 -4
  183. package/dist/types/ReportCombinedPaginationCursor.js +0 -3
  184. package/dist/types/SearchCombinedPaginationCursor.d.ts +0 -4
  185. package/dist/types/SearchCombinedPaginationCursor.js +0 -3
  186. package/dist/types/SiteAggregates.d.ts +0 -12
  187. package/dist/types/SiteAggregates.js +0 -2
  188. package/dist/types/SortType.d.ts +0 -1
  189. package/dist/types/SortType.js +0 -3
  190. package/dist/types/SubscribedType.d.ts +0 -1
  191. package/dist/types/SubscribedType.js +0 -3
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type AdminPurgeCommentId = number;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import type { AdminPurgeComment } from "./AdminPurgeComment";
2
- import type { Person } from "./Person";
3
- import type { Post } from "./Post";
4
- /**
5
- * When an admin purges a comment.
6
- */
7
- export type AdminPurgeCommentView = {
8
- admin_purge_comment: AdminPurgeComment;
9
- admin?: Person;
10
- post: Post;
11
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import type { PersonId } from "./PersonId";
2
- export interface AdminPurgeCommunity {
3
- id: number;
4
- admin_person_id: PersonId;
5
- reason?: string;
6
- when_: string;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type AdminPurgeCommunityId = number;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import type { AdminPurgeCommunity } from "./AdminPurgeCommunity";
2
- import type { Person } from "./Person";
3
- /**
4
- * When an admin purges a community.
5
- */
6
- export type AdminPurgeCommunityView = {
7
- admin_purge_community: AdminPurgeCommunity;
8
- admin?: Person;
9
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import type { PersonId } from "./PersonId";
2
- export interface AdminPurgePerson {
3
- id: number;
4
- admin_person_id: PersonId;
5
- reason?: string;
6
- when_: string;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type AdminPurgePersonId = number;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import type { AdminPurgePerson } from "./AdminPurgePerson";
2
- import type { Person } from "./Person";
3
- /**
4
- * When an admin purges a person.
5
- */
6
- export type AdminPurgePersonView = {
7
- admin_purge_person: AdminPurgePerson;
8
- admin?: Person;
9
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import type { CommunityId } from "./CommunityId";
2
- import type { PersonId } from "./PersonId";
3
- export interface AdminPurgePost {
4
- id: number;
5
- admin_person_id: PersonId;
6
- community_id: CommunityId;
7
- reason?: string;
8
- when_: string;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type AdminPurgePostId = number;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import type { AdminPurgePost } from "./AdminPurgePost";
2
- import type { Community } from "./Community";
3
- import type { Person } from "./Person";
4
- /**
5
- * When an admin purges a post.
6
- */
7
- export type AdminPurgePostView = {
8
- admin_purge_post: AdminPurgePost;
9
- admin?: Person;
10
- community: Community;
11
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import type { CommentId } from "./CommentId";
2
- export interface CommentAggregates {
3
- comment_id: CommentId;
4
- score: number;
5
- upvotes: number;
6
- downvotes: number;
7
- published: string;
8
- child_count: number;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { CommentId } from "./CommentId";
2
- import type { CommentReplyId } from "./CommentReplyId";
3
- import type { PersonId } from "./PersonId";
4
- export interface CommentReply {
5
- id: CommentReplyId;
6
- recipient_id: PersonId;
7
- comment_id: CommentId;
8
- read: boolean;
9
- published: string;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type CommentReplyId = number;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,27 +0,0 @@
1
- import type { Comment } from "./Comment";
2
- import type { CommentActions } from "./CommentActions";
3
- import type { CommentReply } from "./CommentReply";
4
- import type { Community } from "./Community";
5
- import type { CommunityActions } from "./CommunityActions";
6
- import type { InstanceActions } from "./InstanceActions";
7
- import type { Person } from "./Person";
8
- import type { PersonActions } from "./PersonActions";
9
- import type { Post } from "./Post";
10
- /**
11
- * A comment reply view.
12
- */
13
- export type CommentReplyView = {
14
- comment_reply: CommentReply;
15
- recipient: Person;
16
- comment: Comment;
17
- creator: Person;
18
- post: Post;
19
- community: Community;
20
- community_actions?: CommunityActions;
21
- comment_actions?: CommentActions;
22
- person_actions?: PersonActions;
23
- instance_actions?: InstanceActions;
24
- creator_community_actions?: CommunityActions;
25
- creator_is_admin: boolean;
26
- can_mod: boolean;
27
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { CommunityId } from "./CommunityId";
2
- export interface CommunityAggregates {
3
- community_id: CommunityId;
4
- subscribers: number;
5
- posts: number;
6
- comments: number;
7
- published: string;
8
- users_active_day: number;
9
- users_active_week: number;
10
- users_active_month: number;
11
- users_active_half_year: number;
12
- subscribers_local: number;
13
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- /**
2
- * Federation related errors, these dont need to be translated.
3
- */
4
- export type FederationError = "InvalidCommunity" | "CannotCreatePostOrCommentInDeletedOrRemovedCommunity" | "CannotReceivePage" | "OnlyLocalAdminCanRemoveCommunity" | "OnlyLocalAdminCanRestoreCommunity" | "PostIsLocked" | {
5
- PersonIsBannedFromSite: string;
6
- } | "InvalidVoteValue" | "PageDoesNotSpecifyCreator" | "CouldntGetComments" | "CouldntGetPosts" | "FederationDisabled" | {
7
- DomainBlocked: string;
8
- } | {
9
- DomainNotInAllowList: string;
10
- } | "FederationDisabledByStrictAllowList" | "ContradictingFilters" | "UrlWithoutDomain" | "InboxTimeout" | "CantDeleteSite" | "ObjectIsNotPublic" | "ObjectIsNotPrivate" | "PlatformLackingPrivateCommunitySupport" | "Unreachable";
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- /**
2
- * like PaginationCursor but for the report_combined table
3
- */
4
- export type InboxCombinedPaginationCursor = string;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { CommentReplyView } from "./CommentReplyView";
2
- import type { PersonCommentMentionView } from "./PersonCommentMentionView";
3
- import type { PersonPostMentionView } from "./PersonPostMentionView";
4
- import type { PrivateMessageView } from "./PrivateMessageView";
5
- export type InboxCombinedView = ({
6
- type_: "CommentReply";
7
- } & CommentReplyView) | ({
8
- type_: "CommentMention";
9
- } & PersonCommentMentionView) | ({
10
- type_: "PostMention";
11
- } & PersonPostMentionView) | ({
12
- type_: "PrivateMessage";
13
- } & PrivateMessageView);
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- /**
2
- * A list of possible types for the inbox.
3
- */
4
- export type InboxDataType = "All" | "CommentReply" | "CommentMention" | "PostMention" | "PrivateMessage";
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import type { LocalUserId } from "./LocalUserId";
2
- export interface LocalUserVoteDisplayMode {
3
- local_user_id: LocalUserId;
4
- score: boolean;
5
- upvotes: boolean;
6
- downvotes: boolean;
7
- upvote_percentage: boolean;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import type { PersonId } from "./PersonId";
2
- export interface ModAdd {
3
- id: number;
4
- mod_person_id: PersonId;
5
- other_person_id: PersonId;
6
- removed: boolean;
7
- when_: string;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { CommunityId } from "./CommunityId";
2
- import type { PersonId } from "./PersonId";
3
- export interface ModAddCommunity {
4
- id: number;
5
- mod_person_id: PersonId;
6
- other_person_id: PersonId;
7
- community_id: CommunityId;
8
- removed: boolean;
9
- when_: string;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type ModAddCommunityId = number;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import type { Community } from "./Community";
2
- import type { ModAddCommunity } from "./ModAddCommunity";
3
- import type { Person } from "./Person";
4
- /**
5
- * When someone is added as a community moderator.
6
- */
7
- export type ModAddCommunityView = {
8
- mod_add_community: ModAddCommunity;
9
- moderator?: Person;
10
- community: Community;
11
- other_person: Person;
12
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type ModAddId = number;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { ModAdd } from "./ModAdd";
2
- import type { Person } from "./Person";
3
- /**
4
- * When someone is added as a site moderator.
5
- */
6
- export type ModAddView = {
7
- mod_add: ModAdd;
8
- moderator?: Person;
9
- other_person: Person;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { PersonId } from "./PersonId";
2
- export interface ModBan {
3
- id: number;
4
- mod_person_id: PersonId;
5
- other_person_id: PersonId;
6
- reason?: string;
7
- banned: boolean;
8
- expires?: string;
9
- when_: string;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import type { CommunityId } from "./CommunityId";
2
- import type { PersonId } from "./PersonId";
3
- export interface ModBanFromCommunity {
4
- id: number;
5
- mod_person_id: PersonId;
6
- other_person_id: PersonId;
7
- community_id: CommunityId;
8
- reason?: string;
9
- banned: boolean;
10
- expires?: string;
11
- when_: string;
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type ModBanFromCommunityId = number;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import type { Community } from "./Community";
2
- import type { ModBanFromCommunity } from "./ModBanFromCommunity";
3
- import type { Person } from "./Person";
4
- /**
5
- * When someone is banned from a community.
6
- */
7
- export type ModBanFromCommunityView = {
8
- mod_ban_from_community: ModBanFromCommunity;
9
- moderator?: Person;
10
- community: Community;
11
- other_person: Person;
12
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type ModBanId = number;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { ModBan } from "./ModBan";
2
- import type { Person } from "./Person";
3
- /**
4
- * When someone is banned from the site.
5
- */
6
- export type ModBanView = {
7
- mod_ban: ModBan;
8
- moderator?: Person;
9
- other_person: Person;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import type { CommunityId } from "./CommunityId";
2
- import type { CommunityVisibility } from "./CommunityVisibility";
3
- import type { ModChangeCommunityVisibilityId } from "./ModChangeCommunityVisibilityId";
4
- import type { PersonId } from "./PersonId";
5
- export type ModChangeCommunityVisibility = {
6
- id: ModChangeCommunityVisibilityId;
7
- community_id: CommunityId;
8
- mod_person_id: PersonId;
9
- published: string;
10
- reason?: string;
11
- visibility: CommunityVisibility;
12
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type ModChangeCommunityVisibilityId = number;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import type { Community } from "./Community";
2
- import type { ModChangeCommunityVisibility } from "./ModChangeCommunityVisibility";
3
- import type { Person } from "./Person";
4
- /**
5
- * When the visibility of a community is changed
6
- */
7
- export type ModChangeCommunityVisibilityView = {
8
- mod_change_community_visibility: ModChangeCommunityVisibility;
9
- moderator?: Person;
10
- community: Community;
11
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { PersonId } from "./PersonId";
2
- import type { PostId } from "./PostId";
3
- export interface ModFeaturePost {
4
- id: number;
5
- mod_person_id: PersonId;
6
- post_id: PostId;
7
- featured: boolean;
8
- when_: string;
9
- is_featured_community: boolean;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type ModFeaturePostId = number;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import type { Community } from "./Community";
2
- import type { ModFeaturePost } from "./ModFeaturePost";
3
- import type { Person } from "./Person";
4
- import type { Post } from "./Post";
5
- /**
6
- * When a moderator features a post on a community (pins it to the top).
7
- */
8
- export type ModFeaturePostView = {
9
- mod_feature_post: ModFeaturePost;
10
- moderator?: Person;
11
- other_person: Person;
12
- post: Post;
13
- community: Community;
14
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { CommunityId } from "./CommunityId";
2
- import type { PersonId } from "./PersonId";
3
- export interface ModHideCommunity {
4
- id: number;
5
- community_id: CommunityId;
6
- mod_person_id: PersonId;
7
- when_: string;
8
- reason?: string;
9
- hidden: boolean;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type ModHideCommunityId = number;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import type { Community } from "./Community";
2
- import type { ModHideCommunity } from "./ModHideCommunity";
3
- import type { Person } from "./Person";
4
- /**
5
- * When a community is hidden from public view.
6
- */
7
- export type ModHideCommunityView = {
8
- mod_hide_community: ModHideCommunity;
9
- admin?: Person;
10
- community: Community;
11
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import type { PersonId } from "./PersonId";
2
- import type { PostId } from "./PostId";
3
- export interface ModLockPost {
4
- id: number;
5
- mod_person_id: PersonId;
6
- post_id: PostId;
7
- locked: boolean;
8
- when_: string;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });