lemmy-js-client 1.0.0-multi-community-follow-state.2 → 1.0.0-multi-community-name-get-posts.0

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 (184) hide show
  1. package/dist/http.d.ts +4 -5
  2. package/dist/http.js +8 -8
  3. package/dist/index.d.ts +11 -59
  4. package/dist/other_types.d.ts +3 -3
  5. package/dist/types/AuthenticateWithOauth.d.ts +4 -0
  6. package/dist/types/ChangePassword.d.ts +4 -0
  7. package/dist/types/CommentActions.d.ts +6 -6
  8. package/dist/types/CommentSortType.d.ts +1 -1
  9. package/dist/types/CommunityActions.d.ts +4 -4
  10. package/dist/types/CommunityFollowerState.d.ts +1 -1
  11. package/dist/types/CommunityNotificationsMode.d.ts +1 -1
  12. package/dist/types/CommunitySortType.d.ts +1 -1
  13. package/dist/types/CommunityVisibility.d.ts +1 -1
  14. package/dist/types/CreateCommentLike.d.ts +2 -2
  15. package/dist/types/CreatePostLike.d.ts +2 -2
  16. package/dist/types/FederatedInstanceView.d.ts +12 -0
  17. package/dist/types/FederationAllowList.d.ts +4 -0
  18. package/dist/types/FederationBlockList.d.ts +0 -2
  19. package/dist/types/FederationBlockList.js +1 -0
  20. package/dist/types/FederationMode.d.ts +1 -1
  21. package/dist/types/FederationQueueState.d.ts +18 -0
  22. package/dist/types/GetFederatedInstances.d.ts +9 -0
  23. package/dist/types/GetFederatedInstancesKind.d.ts +1 -0
  24. package/dist/types/GetFederatedInstancesResponse.d.ts +5 -5
  25. package/dist/types/GetModlog.d.ts +2 -2
  26. package/dist/types/GetModlogResponse.d.ts +2 -2
  27. package/dist/types/GetPosts.d.ts +1 -0
  28. package/dist/types/LikeType.d.ts +1 -1
  29. package/dist/types/ListCommunityPendingFollows.d.ts +1 -1
  30. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +2 -2
  31. package/dist/types/ListingType.d.ts +1 -1
  32. package/dist/types/Login.d.ts +4 -0
  33. package/dist/types/MarkManyPostsAsRead.d.ts +1 -0
  34. package/dist/types/Modlog.d.ts +10 -0
  35. package/dist/types/ModlogId.d.ts +1 -0
  36. package/dist/types/ModlogKind.d.ts +4 -0
  37. package/dist/types/ModlogView.d.ts +15 -0
  38. package/dist/types/MultiCommunityEntry.d.ts +6 -0
  39. package/dist/types/Notification.d.ts +2 -20
  40. package/dist/types/NotificationData.d.ts +6 -33
  41. package/dist/types/NotificationDataType.d.ts +1 -1
  42. package/dist/types/NotificationType.d.ts +1 -1
  43. package/dist/types/PendingFollowerView.d.ts +9 -0
  44. package/dist/types/PersonContentCombinedView.d.ts +2 -2
  45. package/dist/types/PersonContentType.d.ts +1 -1
  46. package/dist/types/PersonLikedCombinedView.d.ts +2 -2
  47. package/dist/types/PersonSavedCombinedView.d.ts +2 -2
  48. package/dist/types/Post.d.ts +4 -4
  49. package/dist/types/PostActions.d.ts +11 -11
  50. package/dist/types/PostFeatureType.d.ts +1 -1
  51. package/dist/types/PostListingMode.d.ts +1 -1
  52. package/dist/types/PostNotificationsMode.d.ts +1 -1
  53. package/dist/types/PostOrCommentOrPrivateMessage.d.ts +3 -3
  54. package/dist/types/PostSortType.d.ts +1 -1
  55. package/dist/types/Register.d.ts +4 -0
  56. package/dist/types/RegistrationMode.d.ts +1 -1
  57. package/dist/types/ReportCombinedView.d.ts +4 -4
  58. package/dist/types/ReportType.d.ts +1 -1
  59. package/dist/types/SearchCombinedView.d.ts +5 -5
  60. package/dist/types/SearchSortType.d.ts +1 -1
  61. package/dist/types/SearchType.d.ts +1 -1
  62. package/dist/types/UntranslatedError.d.ts +3 -1
  63. package/dist/types/UserSettingsBackup.d.ts +2 -0
  64. package/dist/types/VoteShow.d.ts +1 -1
  65. package/dist/types/VoteView.d.ts +4 -1
  66. package/package.json +3 -3
  67. package/dist/types/AdminAdd.d.ts +0 -12
  68. package/dist/types/AdminAddId.d.ts +0 -1
  69. package/dist/types/AdminAddView.d.ts +0 -10
  70. package/dist/types/AdminAllowInstance.d.ts +0 -11
  71. package/dist/types/AdminAllowInstanceId.d.ts +0 -1
  72. package/dist/types/AdminAllowInstanceView.d.ts +0 -11
  73. package/dist/types/AdminBan.d.ts +0 -16
  74. package/dist/types/AdminBanId.d.ts +0 -1
  75. package/dist/types/AdminBanView.d.ts +0 -10
  76. package/dist/types/AdminBlockInstance.d.ts +0 -12
  77. package/dist/types/AdminBlockInstanceId.d.ts +0 -1
  78. package/dist/types/AdminBlockInstanceView.d.ts +0 -11
  79. package/dist/types/AdminBlockInstanceView.js +0 -2
  80. package/dist/types/AdminPurgeComment.d.ts +0 -13
  81. package/dist/types/AdminPurgeComment.js +0 -2
  82. package/dist/types/AdminPurgeCommentId.d.ts +0 -1
  83. package/dist/types/AdminPurgeCommentId.js +0 -3
  84. package/dist/types/AdminPurgeCommentView.d.ts +0 -11
  85. package/dist/types/AdminPurgeCommentView.js +0 -2
  86. package/dist/types/AdminPurgeCommunity.d.ts +0 -11
  87. package/dist/types/AdminPurgeCommunity.js +0 -2
  88. package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
  89. package/dist/types/AdminPurgeCommunityId.js +0 -3
  90. package/dist/types/AdminPurgeCommunityView.d.ts +0 -9
  91. package/dist/types/AdminPurgeCommunityView.js +0 -2
  92. package/dist/types/AdminPurgePerson.d.ts +0 -11
  93. package/dist/types/AdminPurgePerson.js +0 -2
  94. package/dist/types/AdminPurgePersonId.d.ts +0 -1
  95. package/dist/types/AdminPurgePersonId.js +0 -3
  96. package/dist/types/AdminPurgePersonView.d.ts +0 -9
  97. package/dist/types/AdminPurgePersonView.js +0 -2
  98. package/dist/types/AdminPurgePost.d.ts +0 -13
  99. package/dist/types/AdminPurgePost.js +0 -2
  100. package/dist/types/AdminPurgePostId.d.ts +0 -1
  101. package/dist/types/AdminPurgePostId.js +0 -3
  102. package/dist/types/AdminPurgePostView.d.ts +0 -11
  103. package/dist/types/AdminPurgePostView.js +0 -2
  104. package/dist/types/AdminRemoveCommunity.d.ts +0 -14
  105. package/dist/types/AdminRemoveCommunity.js +0 -2
  106. package/dist/types/AdminRemoveCommunityId.d.ts +0 -1
  107. package/dist/types/AdminRemoveCommunityId.js +0 -3
  108. package/dist/types/AdminRemoveCommunityView.d.ts +0 -11
  109. package/dist/types/AdminRemoveCommunityView.js +0 -2
  110. package/dist/types/BanFromCommunityResponse.d.ts +0 -8
  111. package/dist/types/BanFromCommunityResponse.js +0 -2
  112. package/dist/types/FederatedInstances.d.ts +0 -9
  113. package/dist/types/FederatedInstances.js +0 -2
  114. package/dist/types/GetCommunityPendingFollowsCount.d.ts +0 -4
  115. package/dist/types/GetCommunityPendingFollowsCount.js +0 -2
  116. package/dist/types/ModAddToCommunity.d.ts +0 -14
  117. package/dist/types/ModAddToCommunity.js +0 -2
  118. package/dist/types/ModAddToCommunityId.d.ts +0 -1
  119. package/dist/types/ModAddToCommunityId.js +0 -3
  120. package/dist/types/ModAddToCommunityView.d.ts +0 -12
  121. package/dist/types/ModAddToCommunityView.js +0 -2
  122. package/dist/types/ModBanFromCommunity.d.ts +0 -16
  123. package/dist/types/ModBanFromCommunity.js +0 -2
  124. package/dist/types/ModBanFromCommunityId.d.ts +0 -1
  125. package/dist/types/ModBanFromCommunityId.js +0 -3
  126. package/dist/types/ModBanFromCommunityView.d.ts +0 -12
  127. package/dist/types/ModBanFromCommunityView.js +0 -2
  128. package/dist/types/ModChangeCommunityVisibility.d.ts +0 -11
  129. package/dist/types/ModChangeCommunityVisibility.js +0 -2
  130. package/dist/types/ModChangeCommunityVisibilityId.d.ts +0 -1
  131. package/dist/types/ModChangeCommunityVisibilityId.js +0 -3
  132. package/dist/types/ModChangeCommunityVisibilityView.d.ts +0 -11
  133. package/dist/types/ModChangeCommunityVisibilityView.js +0 -2
  134. package/dist/types/ModFeaturePost.d.ts +0 -14
  135. package/dist/types/ModFeaturePost.js +0 -2
  136. package/dist/types/ModFeaturePostId.d.ts +0 -1
  137. package/dist/types/ModFeaturePostId.js +0 -3
  138. package/dist/types/ModFeaturePostView.d.ts +0 -14
  139. package/dist/types/ModFeaturePostView.js +0 -2
  140. package/dist/types/ModLockComment.d.ts +0 -14
  141. package/dist/types/ModLockComment.js +0 -2
  142. package/dist/types/ModLockCommentId.d.ts +0 -1
  143. package/dist/types/ModLockCommentId.js +0 -3
  144. package/dist/types/ModLockCommentView.d.ts +0 -16
  145. package/dist/types/ModLockCommentView.js +0 -2
  146. package/dist/types/ModLockPost.d.ts +0 -14
  147. package/dist/types/ModLockPost.js +0 -2
  148. package/dist/types/ModLockPostId.d.ts +0 -1
  149. package/dist/types/ModLockPostId.js +0 -3
  150. package/dist/types/ModLockPostView.d.ts +0 -14
  151. package/dist/types/ModLockPostView.js +0 -2
  152. package/dist/types/ModRemoveComment.d.ts +0 -14
  153. package/dist/types/ModRemoveComment.js +0 -2
  154. package/dist/types/ModRemoveCommentId.d.ts +0 -1
  155. package/dist/types/ModRemoveCommentId.js +0 -3
  156. package/dist/types/ModRemoveCommentView.d.ts +0 -16
  157. package/dist/types/ModRemoveCommentView.js +0 -2
  158. package/dist/types/ModRemovePost.d.ts +0 -14
  159. package/dist/types/ModRemovePost.js +0 -2
  160. package/dist/types/ModRemovePostId.d.ts +0 -1
  161. package/dist/types/ModRemovePostId.js +0 -3
  162. package/dist/types/ModRemovePostView.d.ts +0 -14
  163. package/dist/types/ModRemovePostView.js +0 -2
  164. package/dist/types/ModTransferCommunity.d.ts +0 -13
  165. package/dist/types/ModTransferCommunity.js +0 -2
  166. package/dist/types/ModTransferCommunityId.d.ts +0 -1
  167. package/dist/types/ModTransferCommunityId.js +0 -3
  168. package/dist/types/ModTransferCommunityView.d.ts +0 -12
  169. package/dist/types/ModTransferCommunityView.js +0 -2
  170. package/dist/types/ModlogActionType.d.ts +0 -4
  171. package/dist/types/ModlogActionType.js +0 -3
  172. package/dist/types/ModlogCombinedView.d.ts +0 -55
  173. package/dist/types/ModlogCombinedView.js +0 -2
  174. /package/dist/types/{AdminAdd.js → FederatedInstanceView.js} +0 -0
  175. /package/dist/types/{AdminAddId.js → FederationAllowList.js} +0 -0
  176. /package/dist/types/{AdminAddView.js → FederationQueueState.js} +0 -0
  177. /package/dist/types/{AdminAllowInstance.js → GetFederatedInstances.js} +0 -0
  178. /package/dist/types/{AdminAllowInstanceId.js → GetFederatedInstancesKind.js} +0 -0
  179. /package/dist/types/{AdminAllowInstanceView.js → Modlog.js} +0 -0
  180. /package/dist/types/{AdminBanId.js → ModlogId.js} +0 -0
  181. /package/dist/types/{AdminBlockInstanceId.js → ModlogKind.js} +0 -0
  182. /package/dist/types/{AdminBan.js → ModlogView.js} +0 -0
  183. /package/dist/types/{AdminBanView.js → MultiCommunityEntry.js} +0 -0
  184. /package/dist/types/{AdminBlockInstance.js → PendingFollowerView.js} +0 -0
@@ -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,14 +0,0 @@
1
- import type { AdminRemoveCommunityId } from "./AdminRemoveCommunityId";
2
- import type { CommunityId } from "./CommunityId";
3
- import type { PersonId } from "./PersonId";
4
- /**
5
- * When a moderator removes a community.
6
- */
7
- export type AdminRemoveCommunity = {
8
- id: AdminRemoveCommunityId;
9
- mod_person_id: PersonId;
10
- community_id: CommunityId;
11
- reason: string;
12
- removed: boolean;
13
- published_at: string;
14
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type AdminRemoveCommunityId = 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 { AdminRemoveCommunity } from "./AdminRemoveCommunity";
2
- import type { Community } from "./Community";
3
- import type { Person } from "./Person";
4
- /**
5
- * When an admin removes a community.
6
- */
7
- export type AdminRemoveCommunityView = {
8
- admin_remove_community: AdminRemoveCommunity;
9
- moderator?: Person;
10
- community: Community;
11
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import type { PersonView } from "./PersonView";
2
- /**
3
- * The response for banning a user from a community.
4
- */
5
- export type BanFromCommunityResponse = {
6
- person_view: PersonView;
7
- banned: boolean;
8
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import type { InstanceWithFederationState } from "./InstanceWithFederationState";
2
- /**
3
- * A list of federated instances.
4
- */
5
- export type FederatedInstances = {
6
- linked: Array<InstanceWithFederationState>;
7
- allowed: Array<InstanceWithFederationState>;
8
- blocked: Array<InstanceWithFederationState>;
9
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- import type { CommunityId } from "./CommunityId";
2
- export type GetCommunityPendingFollowsCount = {
3
- community_id: CommunityId;
4
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import type { CommunityId } from "./CommunityId";
2
- import type { ModAddToCommunityId } from "./ModAddToCommunityId";
3
- import type { PersonId } from "./PersonId";
4
- /**
5
- * When someone is added as a community moderator.
6
- */
7
- export type ModAddToCommunity = {
8
- id: ModAddToCommunityId;
9
- mod_person_id: PersonId;
10
- other_person_id: PersonId;
11
- community_id: CommunityId;
12
- removed: boolean;
13
- published_at: string;
14
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type ModAddToCommunityId = 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 { ModAddToCommunity } from "./ModAddToCommunity";
3
- import type { Person } from "./Person";
4
- /**
5
- * When someone is added as a community moderator.
6
- */
7
- export type ModAddToCommunityView = {
8
- mod_add_to_community: ModAddToCommunity;
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,16 +0,0 @@
1
- import type { CommunityId } from "./CommunityId";
2
- import type { ModBanFromCommunityId } from "./ModBanFromCommunityId";
3
- import type { PersonId } from "./PersonId";
4
- /**
5
- * When someone is banned from a community.
6
- */
7
- export type ModBanFromCommunity = {
8
- id: ModBanFromCommunityId;
9
- mod_person_id: PersonId;
10
- other_person_id: PersonId;
11
- community_id: CommunityId;
12
- reason: string;
13
- banned: boolean;
14
- expires_at?: string;
15
- published_at: string;
16
- };
@@ -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,11 +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_at: string;
10
- visibility: CommunityVisibility;
11
- };
@@ -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,14 +0,0 @@
1
- import type { ModFeaturePostId } from "./ModFeaturePostId";
2
- import type { PersonId } from "./PersonId";
3
- import type { PostId } from "./PostId";
4
- /**
5
- * When a moderator features a post on a community (pins it to the top).
6
- */
7
- export type ModFeaturePost = {
8
- id: ModFeaturePostId;
9
- mod_person_id: PersonId;
10
- post_id: PostId;
11
- featured: boolean;
12
- published_at: string;
13
- is_featured_community: boolean;
14
- };
@@ -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,14 +0,0 @@
1
- import type { CommentId } from "./CommentId";
2
- import type { ModLockCommentId } from "./ModLockCommentId";
3
- import type { PersonId } from "./PersonId";
4
- /**
5
- * When a moderator locks a comment (prevents new replies to a comment or its children).
6
- */
7
- export type ModLockComment = {
8
- id: ModLockCommentId;
9
- mod_person_id: PersonId;
10
- comment_id: CommentId;
11
- locked: boolean;
12
- reason: string;
13
- published_at: string;
14
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type ModLockCommentId = 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,16 +0,0 @@
1
- import type { Comment } from "./Comment";
2
- import type { Community } from "./Community";
3
- import type { ModLockComment } from "./ModLockComment";
4
- import type { Person } from "./Person";
5
- import type { Post } from "./Post";
6
- /**
7
- * When a moderator locks a comment (prevents replies to it or its children).
8
- */
9
- export type ModLockCommentView = {
10
- mod_lock_comment: ModLockComment;
11
- moderator?: Person;
12
- other_person: Person;
13
- comment: Comment;
14
- post: Post;
15
- community: Community;
16
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import type { ModLockPostId } from "./ModLockPostId";
2
- import type { PersonId } from "./PersonId";
3
- import type { PostId } from "./PostId";
4
- /**
5
- * When a moderator locks a post (prevents new comments being made).
6
- */
7
- export type ModLockPost = {
8
- id: ModLockPostId;
9
- mod_person_id: PersonId;
10
- post_id: PostId;
11
- locked: boolean;
12
- published_at: string;
13
- reason: string;
14
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type ModLockPostId = 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 { ModLockPost } from "./ModLockPost";
3
- import type { Person } from "./Person";
4
- import type { Post } from "./Post";
5
- /**
6
- * When a moderator locks a post (prevents new comments being made).
7
- */
8
- export type ModLockPostView = {
9
- mod_lock_post: ModLockPost;
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,14 +0,0 @@
1
- import type { CommentId } from "./CommentId";
2
- import type { ModRemoveCommentId } from "./ModRemoveCommentId";
3
- import type { PersonId } from "./PersonId";
4
- /**
5
- * When a moderator removes a comment.
6
- */
7
- export type ModRemoveComment = {
8
- id: ModRemoveCommentId;
9
- mod_person_id: PersonId;
10
- comment_id: CommentId;
11
- reason: string;
12
- removed: boolean;
13
- published_at: string;
14
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type ModRemoveCommentId = 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,16 +0,0 @@
1
- import type { Comment } from "./Comment";
2
- import type { Community } from "./Community";
3
- import type { ModRemoveComment } from "./ModRemoveComment";
4
- import type { Person } from "./Person";
5
- import type { Post } from "./Post";
6
- /**
7
- * When a moderator removes a comment.
8
- */
9
- export type ModRemoveCommentView = {
10
- mod_remove_comment: ModRemoveComment;
11
- moderator?: Person;
12
- other_person: Person;
13
- comment: Comment;
14
- post: Post;
15
- community: Community;
16
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import type { ModRemovePostId } from "./ModRemovePostId";
2
- import type { PersonId } from "./PersonId";
3
- import type { PostId } from "./PostId";
4
- /**
5
- * When a moderator removes a post.
6
- */
7
- export type ModRemovePost = {
8
- id: ModRemovePostId;
9
- mod_person_id: PersonId;
10
- post_id: PostId;
11
- reason: string;
12
- removed: boolean;
13
- published_at: string;
14
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type ModRemovePostId = 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 { ModRemovePost } from "./ModRemovePost";
3
- import type { Person } from "./Person";
4
- import type { Post } from "./Post";
5
- /**
6
- * When a moderator removes a post.
7
- */
8
- export type ModRemovePostView = {
9
- mod_remove_post: ModRemovePost;
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,13 +0,0 @@
1
- import type { CommunityId } from "./CommunityId";
2
- import type { ModTransferCommunityId } from "./ModTransferCommunityId";
3
- import type { PersonId } from "./PersonId";
4
- /**
5
- * When a moderator transfers a community to a new owner.
6
- */
7
- export type ModTransferCommunity = {
8
- id: ModTransferCommunityId;
9
- mod_person_id: PersonId;
10
- other_person_id: PersonId;
11
- community_id: CommunityId;
12
- published_at: string;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type ModTransferCommunityId = 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 { ModTransferCommunity } from "./ModTransferCommunity";
3
- import type { Person } from "./Person";
4
- /**
5
- * When a moderator transfers a community to a new owner.
6
- */
7
- export type ModTransferCommunityView = {
8
- mod_transfer_community: ModTransferCommunity;
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,4 +0,0 @@
1
- /**
2
- * A list of possible types for the various modlog actions.
3
- */
4
- export type ModlogActionType = "All" | "ModRemovePost" | "ModLockPost" | "ModFeaturePost" | "ModRemoveComment" | "ModLockComment" | "AdminRemoveCommunity" | "ModBanFromCommunity" | "ModAddToCommunity" | "ModTransferCommunity" | "AdminAdd" | "AdminBan" | "ModChangeCommunityVisibility" | "AdminPurgePerson" | "AdminPurgeCommunity" | "AdminPurgePost" | "AdminPurgeComment" | "AdminBlockInstance" | "AdminAllowInstance";
@@ -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,55 +0,0 @@
1
- import type { AdminAddView } from "./AdminAddView";
2
- import type { AdminAllowInstanceView } from "./AdminAllowInstanceView";
3
- import type { AdminBanView } from "./AdminBanView";
4
- import type { AdminBlockInstanceView } from "./AdminBlockInstanceView";
5
- import type { AdminPurgeCommentView } from "./AdminPurgeCommentView";
6
- import type { AdminPurgeCommunityView } from "./AdminPurgeCommunityView";
7
- import type { AdminPurgePersonView } from "./AdminPurgePersonView";
8
- import type { AdminPurgePostView } from "./AdminPurgePostView";
9
- import type { AdminRemoveCommunityView } from "./AdminRemoveCommunityView";
10
- import type { ModAddToCommunityView } from "./ModAddToCommunityView";
11
- import type { ModBanFromCommunityView } from "./ModBanFromCommunityView";
12
- import type { ModChangeCommunityVisibilityView } from "./ModChangeCommunityVisibilityView";
13
- import type { ModFeaturePostView } from "./ModFeaturePostView";
14
- import type { ModLockCommentView } from "./ModLockCommentView";
15
- import type { ModLockPostView } from "./ModLockPostView";
16
- import type { ModRemoveCommentView } from "./ModRemoveCommentView";
17
- import type { ModRemovePostView } from "./ModRemovePostView";
18
- import type { ModTransferCommunityView } from "./ModTransferCommunityView";
19
- export type ModlogCombinedView = ({
20
- type_: "AdminAllowInstance";
21
- } & AdminAllowInstanceView) | ({
22
- type_: "AdminBlockInstance";
23
- } & AdminBlockInstanceView) | ({
24
- type_: "AdminPurgeComment";
25
- } & AdminPurgeCommentView) | ({
26
- type_: "AdminPurgeCommunity";
27
- } & AdminPurgeCommunityView) | ({
28
- type_: "AdminPurgePerson";
29
- } & AdminPurgePersonView) | ({
30
- type_: "AdminPurgePost";
31
- } & AdminPurgePostView) | ({
32
- type_: "AdminAdd";
33
- } & AdminAddView) | ({
34
- type_: "ModAddToCommunity";
35
- } & ModAddToCommunityView) | ({
36
- type_: "AdminBan";
37
- } & AdminBanView) | ({
38
- type_: "ModBanFromCommunity";
39
- } & ModBanFromCommunityView) | ({
40
- type_: "ModFeaturePost";
41
- } & ModFeaturePostView) | ({
42
- type_: "ModChangeCommunityVisibility";
43
- } & ModChangeCommunityVisibilityView) | ({
44
- type_: "ModLockPost";
45
- } & ModLockPostView) | ({
46
- type_: "ModRemoveComment";
47
- } & ModRemoveCommentView) | ({
48
- type_: "AdminRemoveCommunity";
49
- } & AdminRemoveCommunityView) | ({
50
- type_: "ModRemovePost";
51
- } & ModRemovePostView) | ({
52
- type_: "ModTransferCommunity";
53
- } & ModTransferCommunityView) | ({
54
- type_: "ModLockComment";
55
- } & ModLockCommentView);
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
File without changes
File without changes