lemmy-js-client 0.20.0-modlog-combined.1 → 0.20.0-no-delete-token.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. package/dist/http.d.ts +0 -16
  2. package/dist/http.js +0 -16
  3. package/dist/index.d.ts +3 -33
  4. package/dist/types/AdminAllowInstance.d.ts +2 -3
  5. package/dist/types/AdminAllowInstanceView.d.ts +1 -1
  6. package/dist/types/AdminBlockInstance.d.ts +2 -3
  7. package/dist/types/AdminPurgeComment.d.ts +2 -3
  8. package/dist/types/AdminPurgeCommunity.d.ts +2 -3
  9. package/dist/types/AdminPurgePerson.d.ts +2 -3
  10. package/dist/types/AdminPurgePost.d.ts +2 -3
  11. package/dist/types/CommunityAggregates.d.ts +0 -2
  12. package/dist/types/CreatePost.d.ts +0 -2
  13. package/dist/types/CreateSite.d.ts +2 -0
  14. package/dist/types/DeleteImageParams.d.ts +0 -1
  15. package/dist/types/EditPost.d.ts +0 -2
  16. package/dist/types/EditSite.d.ts +8 -0
  17. package/dist/types/FederationError.d.ts +1 -1
  18. package/dist/types/GetComments.d.ts +1 -0
  19. package/dist/types/GetModlog.d.ts +2 -3
  20. package/dist/types/GetModlogResponse.d.ts +34 -2
  21. package/dist/types/GetPersonDetails.d.ts +7 -0
  22. package/dist/types/GetPersonDetailsResponse.d.ts +4 -0
  23. package/dist/types/GetPosts.d.ts +0 -1
  24. package/dist/types/GetSiteResponse.d.ts +8 -0
  25. package/dist/types/LemmyErrorType.d.ts +2 -0
  26. package/dist/types/LocalImage.d.ts +0 -1
  27. package/dist/types/ModAdd.d.ts +2 -3
  28. package/dist/types/ModAddCommunity.d.ts +2 -3
  29. package/dist/types/ModAddCommunityView.d.ts +1 -1
  30. package/dist/types/ModAddView.d.ts +1 -1
  31. package/dist/types/ModBan.d.ts +2 -3
  32. package/dist/types/ModBanFromCommunity.d.ts +2 -3
  33. package/dist/types/ModBanFromCommunityView.d.ts +1 -1
  34. package/dist/types/ModBanView.d.ts +1 -1
  35. package/dist/types/ModFeaturePost.d.ts +2 -3
  36. package/dist/types/ModFeaturePostView.d.ts +0 -1
  37. package/dist/types/ModHideCommunity.d.ts +2 -3
  38. package/dist/types/ModLockPost.d.ts +2 -3
  39. package/dist/types/ModLockPostView.d.ts +0 -1
  40. package/dist/types/ModRemoveComment.d.ts +2 -3
  41. package/dist/types/ModRemoveCommentView.d.ts +1 -1
  42. package/dist/types/ModRemoveCommunity.d.ts +2 -3
  43. package/dist/types/ModRemovePost.d.ts +2 -3
  44. package/dist/types/ModRemovePostView.d.ts +0 -1
  45. package/dist/types/ModTransferCommunity.d.ts +2 -3
  46. package/dist/types/ModTransferCommunityView.d.ts +1 -1
  47. package/dist/types/ModlogListParams.d.ts +17 -0
  48. package/dist/types/PostView.d.ts +0 -2
  49. package/dist/types/ReportCombined.d.ts +14 -0
  50. package/dist/types/ReportCombinedId.d.ts +4 -0
  51. package/dist/types/ReportCombinedView.d.ts +1 -4
  52. package/dist/types/Search.d.ts +1 -0
  53. package/dist/types/UploadImageResponse.d.ts +0 -1
  54. package/package.json +1 -1
  55. package/dist/types/AdminAllowInstanceId.d.ts +0 -1
  56. package/dist/types/AdminBlockInstanceId.d.ts +0 -1
  57. package/dist/types/AdminBlockInstanceId.js +0 -3
  58. package/dist/types/AdminPurgeCommentId.d.ts +0 -1
  59. package/dist/types/AdminPurgeCommentId.js +0 -3
  60. package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
  61. package/dist/types/AdminPurgeCommunityId.js +0 -3
  62. package/dist/types/AdminPurgePersonId.d.ts +0 -1
  63. package/dist/types/AdminPurgePersonId.js +0 -3
  64. package/dist/types/AdminPurgePostId.d.ts +0 -1
  65. package/dist/types/AdminPurgePostId.js +0 -3
  66. package/dist/types/CommunityReport.d.ts +0 -22
  67. package/dist/types/CommunityReportId.d.ts +0 -4
  68. package/dist/types/CommunityReportId.js +0 -3
  69. package/dist/types/CommunityReportView.d.ts +0 -16
  70. package/dist/types/ListPersonContent.d.ts +0 -18
  71. package/dist/types/ListPersonContent.js +0 -2
  72. package/dist/types/ListPersonContentResponse.d.ts +0 -7
  73. package/dist/types/ListPersonContentResponse.js +0 -2
  74. package/dist/types/ListPersonSaved.d.ts +0 -10
  75. package/dist/types/ListPersonSaved.js +0 -2
  76. package/dist/types/ListPersonSavedResponse.d.ts +0 -7
  77. package/dist/types/ListPersonSavedResponse.js +0 -2
  78. package/dist/types/ModAddCommunityId.d.ts +0 -1
  79. package/dist/types/ModAddCommunityId.js +0 -3
  80. package/dist/types/ModAddId.d.ts +0 -1
  81. package/dist/types/ModAddId.js +0 -3
  82. package/dist/types/ModBanFromCommunityId.d.ts +0 -1
  83. package/dist/types/ModBanFromCommunityId.js +0 -3
  84. package/dist/types/ModBanId.d.ts +0 -1
  85. package/dist/types/ModBanId.js +0 -3
  86. package/dist/types/ModFeaturePostId.d.ts +0 -1
  87. package/dist/types/ModFeaturePostId.js +0 -3
  88. package/dist/types/ModHideCommunityId.d.ts +0 -1
  89. package/dist/types/ModHideCommunityId.js +0 -3
  90. package/dist/types/ModLockPostId.d.ts +0 -1
  91. package/dist/types/ModLockPostId.js +0 -3
  92. package/dist/types/ModRemoveCommentId.d.ts +0 -1
  93. package/dist/types/ModRemoveCommentId.js +0 -3
  94. package/dist/types/ModRemoveCommunityId.d.ts +0 -1
  95. package/dist/types/ModRemoveCommunityId.js +0 -3
  96. package/dist/types/ModRemovePostId.d.ts +0 -1
  97. package/dist/types/ModRemovePostId.js +0 -3
  98. package/dist/types/ModTransferCommunityId.d.ts +0 -1
  99. package/dist/types/ModTransferCommunityId.js +0 -3
  100. package/dist/types/ModlogCombinedPaginationCursor.d.ts +0 -4
  101. package/dist/types/ModlogCombinedPaginationCursor.js +0 -3
  102. package/dist/types/ModlogCombinedView.d.ts +0 -52
  103. package/dist/types/ModlogCombinedView.js +0 -2
  104. package/dist/types/PersonContentCombinedPaginationCursor.d.ts +0 -4
  105. package/dist/types/PersonContentCombinedPaginationCursor.js +0 -3
  106. package/dist/types/PersonContentCombinedView.d.ts +0 -7
  107. package/dist/types/PersonContentCombinedView.js +0 -2
  108. package/dist/types/PersonContentType.d.ts +0 -4
  109. package/dist/types/PersonContentType.js +0 -3
  110. package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +0 -4
  111. package/dist/types/PersonSavedCombinedPaginationCursor.js +0 -3
  112. package/dist/types/PostTags.d.ts +0 -7
  113. package/dist/types/PostTags.js +0 -2
  114. package/dist/types/Tag.d.ts +0 -27
  115. package/dist/types/Tag.js +0 -2
  116. package/dist/types/TagId.d.ts +0 -4
  117. package/dist/types/TagId.js +0 -3
  118. /package/dist/types/{CommunityReport.js → ModlogListParams.js} +0 -0
  119. /package/dist/types/{CommunityReportView.js → ReportCombined.js} +0 -0
  120. /package/dist/types/{AdminAllowInstanceId.js → ReportCombinedId.js} +0 -0
@@ -6,5 +6,5 @@ import type { Person } from "./Person";
6
6
  export type ModBanView = {
7
7
  mod_ban: ModBan;
8
8
  moderator?: Person;
9
- other_person: Person;
9
+ banned_person: Person;
10
10
  };
@@ -1,14 +1,13 @@
1
- import type { ModFeaturePostId } from "./ModFeaturePostId";
2
1
  import type { PersonId } from "./PersonId";
3
2
  import type { PostId } from "./PostId";
4
3
  /**
5
4
  * When a moderator features a post on a community (pins it to the top).
6
5
  */
7
6
  export type ModFeaturePost = {
8
- id: ModFeaturePostId;
7
+ id: number;
9
8
  mod_person_id: PersonId;
10
9
  post_id: PostId;
11
10
  featured: boolean;
12
- published: string;
11
+ when_: string;
13
12
  is_featured_community: boolean;
14
13
  };
@@ -8,7 +8,6 @@ import type { Post } from "./Post";
8
8
  export type ModFeaturePostView = {
9
9
  mod_feature_post: ModFeaturePost;
10
10
  moderator?: Person;
11
- other_person: Person;
12
11
  post: Post;
13
12
  community: Community;
14
13
  };
@@ -1,14 +1,13 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
- import type { ModHideCommunityId } from "./ModHideCommunityId";
3
2
  import type { PersonId } from "./PersonId";
4
3
  /**
5
4
  * When a community is hidden from public view.
6
5
  */
7
6
  export type ModHideCommunity = {
8
- id: ModHideCommunityId;
7
+ id: number;
9
8
  community_id: CommunityId;
10
9
  mod_person_id: PersonId;
11
- published: string;
10
+ when_: string;
12
11
  reason?: string;
13
12
  hidden: boolean;
14
13
  };
@@ -1,13 +1,12 @@
1
- import type { ModLockPostId } from "./ModLockPostId";
2
1
  import type { PersonId } from "./PersonId";
3
2
  import type { PostId } from "./PostId";
4
3
  /**
5
4
  * When a moderator locks a post (prevents new comments being made).
6
5
  */
7
6
  export type ModLockPost = {
8
- id: ModLockPostId;
7
+ id: number;
9
8
  mod_person_id: PersonId;
10
9
  post_id: PostId;
11
10
  locked: boolean;
12
- published: string;
11
+ when_: string;
13
12
  };
@@ -8,7 +8,6 @@ import type { Post } from "./Post";
8
8
  export type ModLockPostView = {
9
9
  mod_lock_post: ModLockPost;
10
10
  moderator?: Person;
11
- other_person: Person;
12
11
  post: Post;
13
12
  community: Community;
14
13
  };
@@ -1,14 +1,13 @@
1
1
  import type { CommentId } from "./CommentId";
2
- import type { ModRemoveCommentId } from "./ModRemoveCommentId";
3
2
  import type { PersonId } from "./PersonId";
4
3
  /**
5
4
  * When a moderator removes a comment.
6
5
  */
7
6
  export type ModRemoveComment = {
8
- id: ModRemoveCommentId;
7
+ id: number;
9
8
  mod_person_id: PersonId;
10
9
  comment_id: CommentId;
11
10
  reason?: string;
12
11
  removed: boolean;
13
- published: string;
12
+ when_: string;
14
13
  };
@@ -9,8 +9,8 @@ import type { Post } from "./Post";
9
9
  export type ModRemoveCommentView = {
10
10
  mod_remove_comment: ModRemoveComment;
11
11
  moderator?: Person;
12
- other_person: Person;
13
12
  comment: Comment;
13
+ commenter: Person;
14
14
  post: Post;
15
15
  community: Community;
16
16
  };
@@ -1,14 +1,13 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
- import type { ModRemoveCommunityId } from "./ModRemoveCommunityId";
3
2
  import type { PersonId } from "./PersonId";
4
3
  /**
5
4
  * When a moderator removes a community.
6
5
  */
7
6
  export type ModRemoveCommunity = {
8
- id: ModRemoveCommunityId;
7
+ id: number;
9
8
  mod_person_id: PersonId;
10
9
  community_id: CommunityId;
11
10
  reason?: string;
12
11
  removed: boolean;
13
- published: string;
12
+ when_: string;
14
13
  };
@@ -1,14 +1,13 @@
1
- import type { ModRemovePostId } from "./ModRemovePostId";
2
1
  import type { PersonId } from "./PersonId";
3
2
  import type { PostId } from "./PostId";
4
3
  /**
5
4
  * When a moderator removes a post.
6
5
  */
7
6
  export type ModRemovePost = {
8
- id: ModRemovePostId;
7
+ id: number;
9
8
  mod_person_id: PersonId;
10
9
  post_id: PostId;
11
10
  reason?: string;
12
11
  removed: boolean;
13
- published: string;
12
+ when_: string;
14
13
  };
@@ -8,7 +8,6 @@ import type { Post } from "./Post";
8
8
  export type ModRemovePostView = {
9
9
  mod_remove_post: ModRemovePost;
10
10
  moderator?: Person;
11
- other_person: Person;
12
11
  post: Post;
13
12
  community: Community;
14
13
  };
@@ -1,13 +1,12 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
- import type { ModTransferCommunityId } from "./ModTransferCommunityId";
3
2
  import type { PersonId } from "./PersonId";
4
3
  /**
5
4
  * When a moderator transfers a community to a new owner.
6
5
  */
7
6
  export type ModTransferCommunity = {
8
- id: ModTransferCommunityId;
7
+ id: number;
9
8
  mod_person_id: PersonId;
10
9
  other_person_id: PersonId;
11
10
  community_id: CommunityId;
12
- published: string;
11
+ when_: string;
13
12
  };
@@ -8,5 +8,5 @@ export type ModTransferCommunityView = {
8
8
  mod_transfer_community: ModTransferCommunity;
9
9
  moderator?: Person;
10
10
  community: Community;
11
- other_person: Person;
11
+ modded_person: Person;
12
12
  };
@@ -0,0 +1,17 @@
1
+ import type { CommentId } from "./CommentId";
2
+ import type { CommunityId } from "./CommunityId";
3
+ import type { PersonId } from "./PersonId";
4
+ import type { PostId } from "./PostId";
5
+ /**
6
+ * Querying / filtering the modlog.
7
+ */
8
+ export type ModlogListParams = {
9
+ community_id?: CommunityId;
10
+ mod_person_id?: PersonId;
11
+ other_person_id?: PersonId;
12
+ post_id?: PostId;
13
+ comment_id?: CommentId;
14
+ page?: number;
15
+ limit?: number;
16
+ hide_modlog_names: boolean;
17
+ };
@@ -3,7 +3,6 @@ import type { ImageDetails } from "./ImageDetails";
3
3
  import type { Person } from "./Person";
4
4
  import type { Post } from "./Post";
5
5
  import type { PostAggregates } from "./PostAggregates";
6
- import type { PostTags } from "./PostTags";
7
6
  import type { SubscribedType } from "./SubscribedType";
8
7
  /**
9
8
  * A post view.
@@ -25,5 +24,4 @@ export type PostView = {
25
24
  creator_blocked: boolean;
26
25
  my_vote?: number;
27
26
  unread_comments: number;
28
- tags: PostTags;
29
27
  };
@@ -0,0 +1,14 @@
1
+ import type { CommentReportId } from "./CommentReportId";
2
+ import type { PostReportId } from "./PostReportId";
3
+ import type { PrivateMessageReportId } from "./PrivateMessageReportId";
4
+ import type { ReportCombinedId } from "./ReportCombinedId";
5
+ /**
6
+ * A combined reports table.
7
+ */
8
+ export type ReportCombined = {
9
+ id: ReportCombinedId;
10
+ published: string;
11
+ post_report_id?: PostReportId;
12
+ comment_report_id?: CommentReportId;
13
+ private_message_report_id?: PrivateMessageReportId;
14
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * The report combined id
3
+ */
4
+ export type ReportCombinedId = number;
@@ -1,5 +1,4 @@
1
1
  import type { CommentReportView } from "./CommentReportView";
2
- import type { CommunityReportView } from "./CommunityReportView";
3
2
  import type { PostReportView } from "./PostReportView";
4
3
  import type { PrivateMessageReportView } from "./PrivateMessageReportView";
5
4
  export type ReportCombinedView = ({
@@ -8,6 +7,4 @@ export type ReportCombinedView = ({
8
7
  type_: "Comment";
9
8
  } & CommentReportView) | ({
10
9
  type_: "PrivateMessage";
11
- } & PrivateMessageReportView) | ({
12
- type_: "Community";
13
- } & CommunityReportView);
10
+ } & PrivateMessageReportView);
@@ -18,6 +18,7 @@ export type Search = {
18
18
  limit?: number;
19
19
  title_only?: boolean;
20
20
  post_url_only?: boolean;
21
+ saved_only?: boolean;
21
22
  liked_only?: boolean;
22
23
  disliked_only?: boolean;
23
24
  };
@@ -1,5 +1,4 @@
1
1
  export type UploadImageResponse = {
2
2
  image_url: string;
3
3
  filename: string;
4
- delete_token: string;
5
4
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "0.20.0-modlog-combined.1",
4
+ "version": "0.20.0-no-delete-token.1",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",
@@ -1 +0,0 @@
1
- export type AdminAllowInstanceId = number;
@@ -1 +0,0 @@
1
- export type AdminBlockInstanceId = 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 +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 +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 +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 +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,22 +0,0 @@
1
- import type { CommunityId } from "./CommunityId";
2
- import type { CommunityReportId } from "./CommunityReportId";
3
- import type { PersonId } from "./PersonId";
4
- /**
5
- * A comment report.
6
- */
7
- export type CommunityReport = {
8
- id: CommunityReportId;
9
- creator_id: PersonId;
10
- community_id: CommunityId;
11
- original_community_name: string;
12
- original_community_title: string;
13
- original_community_description?: string;
14
- original_community_sidebar?: string;
15
- original_community_icon?: string;
16
- original_community_banner?: string;
17
- reason: string;
18
- resolved: boolean;
19
- resolver_id?: PersonId;
20
- published: string;
21
- updated?: string;
22
- };
@@ -1,4 +0,0 @@
1
- /**
2
- * The community report id.
3
- */
4
- export type CommunityReportId = 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 { Community } from "./Community";
2
- import type { CommunityAggregates } from "./CommunityAggregates";
3
- import type { CommunityReport } from "./CommunityReport";
4
- import type { Person } from "./Person";
5
- import type { SubscribedType } from "./SubscribedType";
6
- /**
7
- * A community report view.
8
- */
9
- export type CommunityReportView = {
10
- community_report: CommunityReport;
11
- community: Community;
12
- creator: Person;
13
- counts: CommunityAggregates;
14
- subscribed: SubscribedType;
15
- resolver?: Person;
16
- };
@@ -1,18 +0,0 @@
1
- import type { PersonContentCombinedPaginationCursor } from "./PersonContentCombinedPaginationCursor";
2
- import type { PersonContentType } from "./PersonContentType";
3
- import type { PersonId } from "./PersonId";
4
- /**
5
- * Gets a person's content (posts and comments)
6
- *
7
- * Either person_id, or username are required.
8
- */
9
- export type ListPersonContent = {
10
- type_?: PersonContentType;
11
- person_id?: PersonId;
12
- /**
13
- * Example: dessalines , or dessalines@xyz.tld
14
- */
15
- username?: string;
16
- page_cursor?: PersonContentCombinedPaginationCursor;
17
- page_back?: boolean;
18
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import type { PersonContentCombinedView } from "./PersonContentCombinedView";
2
- /**
3
- * A person's content response.
4
- */
5
- export type ListPersonContentResponse = {
6
- content: Array<PersonContentCombinedView>;
7
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { PersonContentType } from "./PersonContentType";
2
- import type { PersonSavedCombinedPaginationCursor } from "./PersonSavedCombinedPaginationCursor";
3
- /**
4
- * Gets your saved posts and comments
5
- */
6
- export type ListPersonSaved = {
7
- type_?: PersonContentType;
8
- page_cursor?: PersonSavedCombinedPaginationCursor;
9
- page_back?: boolean;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import type { PersonContentCombinedView } from "./PersonContentCombinedView";
2
- /**
3
- * A person's saved content response.
4
- */
5
- export type ListPersonSavedResponse = {
6
- saved: Array<PersonContentCombinedView>;
7
- };
@@ -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 +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 +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 +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 +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 +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 +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 +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 +0,0 @@
1
- export type ModRemoveCommunityId = 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 +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 +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,4 +0,0 @@
1
- /**
2
- * like PaginationCursor but for the modlog_combined
3
- */
4
- export type ModlogCombinedPaginationCursor = 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,52 +0,0 @@
1
- import type { AdminAllowInstanceView } from "./AdminAllowInstanceView";
2
- import type { AdminBlockInstanceView } from "./AdminBlockInstanceView";
3
- import type { AdminPurgeCommentView } from "./AdminPurgeCommentView";
4
- import type { AdminPurgeCommunityView } from "./AdminPurgeCommunityView";
5
- import type { AdminPurgePersonView } from "./AdminPurgePersonView";
6
- import type { AdminPurgePostView } from "./AdminPurgePostView";
7
- import type { ModAddCommunityView } from "./ModAddCommunityView";
8
- import type { ModAddView } from "./ModAddView";
9
- import type { ModBanFromCommunityView } from "./ModBanFromCommunityView";
10
- import type { ModBanView } from "./ModBanView";
11
- import type { ModFeaturePostView } from "./ModFeaturePostView";
12
- import type { ModHideCommunityView } from "./ModHideCommunityView";
13
- import type { ModLockPostView } from "./ModLockPostView";
14
- import type { ModRemoveCommentView } from "./ModRemoveCommentView";
15
- import type { ModRemoveCommunityView } from "./ModRemoveCommunityView";
16
- import type { ModRemovePostView } from "./ModRemovePostView";
17
- import type { ModTransferCommunityView } from "./ModTransferCommunityView";
18
- export type ModlogCombinedView = ({
19
- type_: "AdminAllowInstance";
20
- } & AdminAllowInstanceView) | ({
21
- type_: "AdminBlockInstance";
22
- } & AdminBlockInstanceView) | ({
23
- type_: "AdminPurgeComment";
24
- } & AdminPurgeCommentView) | ({
25
- type_: "AdminPurgeCommunity";
26
- } & AdminPurgeCommunityView) | ({
27
- type_: "AdminPurgePerson";
28
- } & AdminPurgePersonView) | ({
29
- type_: "AdminPurgePost";
30
- } & AdminPurgePostView) | ({
31
- type_: "ModAdd";
32
- } & ModAddView) | ({
33
- type_: "ModAddCommunity";
34
- } & ModAddCommunityView) | ({
35
- type_: "ModBan";
36
- } & ModBanView) | ({
37
- type_: "ModBanFromCommunity";
38
- } & ModBanFromCommunityView) | ({
39
- type_: "ModFeaturePost";
40
- } & ModFeaturePostView) | ({
41
- type_: "ModHideCommunity";
42
- } & ModHideCommunityView) | ({
43
- type_: "ModLockPost";
44
- } & ModLockPostView) | ({
45
- type_: "ModRemoveComment";
46
- } & ModRemoveCommentView) | ({
47
- type_: "ModRemoveCommunity";
48
- } & ModRemoveCommunityView) | ({
49
- type_: "ModRemovePost";
50
- } & ModRemovePostView) | ({
51
- type_: "ModTransferCommunity";
52
- } & ModTransferCommunityView);
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- /**
2
- * like PaginationCursor but for the person_content_combined table
3
- */
4
- export type PersonContentCombinedPaginationCursor = 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,7 +0,0 @@
1
- import type { CommentView } from "./CommentView";
2
- import type { PostView } from "./PostView";
3
- export type PersonContentCombinedView = ({
4
- type_: "Post";
5
- } & PostView) | ({
6
- type_: "Comment";
7
- } & CommentView);
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });