lemmy-js-client 0.20.0-no-delete-token.1 → 0.20.0-no-delete-token.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. package/dist/http.d.ts +16 -0
  2. package/dist/http.js +16 -0
  3. package/dist/index.d.ts +33 -3
  4. package/dist/types/AdminAllowInstance.d.ts +3 -2
  5. package/dist/types/AdminAllowInstanceId.d.ts +1 -0
  6. package/dist/types/AdminAllowInstanceView.d.ts +1 -1
  7. package/dist/types/AdminBlockInstance.d.ts +3 -2
  8. package/dist/types/AdminBlockInstanceId.d.ts +1 -0
  9. package/dist/types/AdminBlockInstanceId.js +3 -0
  10. package/dist/types/AdminPurgeComment.d.ts +3 -2
  11. package/dist/types/AdminPurgeCommentId.d.ts +1 -0
  12. package/dist/types/AdminPurgeCommentId.js +3 -0
  13. package/dist/types/AdminPurgeCommunity.d.ts +3 -2
  14. package/dist/types/AdminPurgeCommunityId.d.ts +1 -0
  15. package/dist/types/AdminPurgeCommunityId.js +3 -0
  16. package/dist/types/AdminPurgePerson.d.ts +3 -2
  17. package/dist/types/AdminPurgePersonId.d.ts +1 -0
  18. package/dist/types/AdminPurgePersonId.js +3 -0
  19. package/dist/types/AdminPurgePost.d.ts +3 -2
  20. package/dist/types/AdminPurgePostId.d.ts +1 -0
  21. package/dist/types/AdminPurgePostId.js +3 -0
  22. package/dist/types/CommunityAggregates.d.ts +2 -0
  23. package/dist/types/CommunityReport.d.ts +22 -0
  24. package/dist/types/CommunityReportId.d.ts +4 -0
  25. package/dist/types/CommunityReportId.js +3 -0
  26. package/dist/types/CommunityReportView.d.ts +16 -0
  27. package/dist/types/CreatePost.d.ts +2 -0
  28. package/dist/types/CreateSite.d.ts +0 -2
  29. package/dist/types/EditPost.d.ts +2 -0
  30. package/dist/types/EditSite.d.ts +0 -8
  31. package/dist/types/FederationError.d.ts +1 -1
  32. package/dist/types/GetComments.d.ts +0 -1
  33. package/dist/types/GetModlog.d.ts +3 -2
  34. package/dist/types/GetModlogResponse.d.ts +2 -34
  35. package/dist/types/GetPersonDetails.d.ts +0 -7
  36. package/dist/types/GetPersonDetailsResponse.d.ts +0 -4
  37. package/dist/types/GetPosts.d.ts +1 -0
  38. package/dist/types/GetSiteResponse.d.ts +0 -8
  39. package/dist/types/LemmyErrorType.d.ts +0 -2
  40. package/dist/types/ListPersonContent.d.ts +18 -0
  41. package/dist/types/ListPersonContent.js +2 -0
  42. package/dist/types/ListPersonContentResponse.d.ts +7 -0
  43. package/dist/types/ListPersonContentResponse.js +2 -0
  44. package/dist/types/ListPersonSaved.d.ts +10 -0
  45. package/dist/types/ListPersonSaved.js +2 -0
  46. package/dist/types/ListPersonSavedResponse.d.ts +7 -0
  47. package/dist/types/ListPersonSavedResponse.js +2 -0
  48. package/dist/types/ModAdd.d.ts +3 -2
  49. package/dist/types/ModAddCommunity.d.ts +3 -2
  50. package/dist/types/ModAddCommunityId.d.ts +1 -0
  51. package/dist/types/ModAddCommunityId.js +3 -0
  52. package/dist/types/ModAddCommunityView.d.ts +1 -1
  53. package/dist/types/ModAddId.d.ts +1 -0
  54. package/dist/types/ModAddId.js +3 -0
  55. package/dist/types/ModAddView.d.ts +1 -1
  56. package/dist/types/ModBan.d.ts +3 -2
  57. package/dist/types/ModBanFromCommunity.d.ts +3 -2
  58. package/dist/types/ModBanFromCommunityId.d.ts +1 -0
  59. package/dist/types/ModBanFromCommunityId.js +3 -0
  60. package/dist/types/ModBanFromCommunityView.d.ts +1 -1
  61. package/dist/types/ModBanId.d.ts +1 -0
  62. package/dist/types/ModBanId.js +3 -0
  63. package/dist/types/ModBanView.d.ts +1 -1
  64. package/dist/types/ModFeaturePost.d.ts +3 -2
  65. package/dist/types/ModFeaturePostId.d.ts +1 -0
  66. package/dist/types/ModFeaturePostId.js +3 -0
  67. package/dist/types/ModFeaturePostView.d.ts +1 -0
  68. package/dist/types/ModHideCommunity.d.ts +3 -2
  69. package/dist/types/ModHideCommunityId.d.ts +1 -0
  70. package/dist/types/ModHideCommunityId.js +3 -0
  71. package/dist/types/ModLockPost.d.ts +3 -2
  72. package/dist/types/ModLockPostId.d.ts +1 -0
  73. package/dist/types/ModLockPostId.js +3 -0
  74. package/dist/types/ModLockPostView.d.ts +1 -0
  75. package/dist/types/ModRemoveComment.d.ts +3 -2
  76. package/dist/types/ModRemoveCommentId.d.ts +1 -0
  77. package/dist/types/ModRemoveCommentId.js +3 -0
  78. package/dist/types/ModRemoveCommentView.d.ts +1 -1
  79. package/dist/types/ModRemoveCommunity.d.ts +3 -2
  80. package/dist/types/ModRemoveCommunityId.d.ts +1 -0
  81. package/dist/types/ModRemoveCommunityId.js +3 -0
  82. package/dist/types/ModRemovePost.d.ts +3 -2
  83. package/dist/types/ModRemovePostId.d.ts +1 -0
  84. package/dist/types/ModRemovePostId.js +3 -0
  85. package/dist/types/ModRemovePostView.d.ts +1 -0
  86. package/dist/types/ModTransferCommunity.d.ts +3 -2
  87. package/dist/types/ModTransferCommunityId.d.ts +1 -0
  88. package/dist/types/ModTransferCommunityId.js +3 -0
  89. package/dist/types/ModTransferCommunityView.d.ts +1 -1
  90. package/dist/types/ModlogCombinedPaginationCursor.d.ts +4 -0
  91. package/dist/types/ModlogCombinedPaginationCursor.js +3 -0
  92. package/dist/types/ModlogCombinedView.d.ts +52 -0
  93. package/dist/types/ModlogCombinedView.js +2 -0
  94. package/dist/types/PersonContentCombinedPaginationCursor.d.ts +4 -0
  95. package/dist/types/PersonContentCombinedPaginationCursor.js +3 -0
  96. package/dist/types/PersonContentCombinedView.d.ts +7 -0
  97. package/dist/types/PersonContentCombinedView.js +2 -0
  98. package/dist/types/PersonContentType.d.ts +4 -0
  99. package/dist/types/PersonContentType.js +3 -0
  100. package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +4 -0
  101. package/dist/types/PersonSavedCombinedPaginationCursor.js +3 -0
  102. package/dist/types/PostTags.d.ts +7 -0
  103. package/dist/types/PostTags.js +2 -0
  104. package/dist/types/PostView.d.ts +2 -0
  105. package/dist/types/ReportCombinedView.d.ts +4 -1
  106. package/dist/types/Search.d.ts +0 -1
  107. package/dist/types/Tag.d.ts +27 -0
  108. package/dist/types/Tag.js +2 -0
  109. package/dist/types/TagId.d.ts +4 -0
  110. package/dist/types/TagId.js +3 -0
  111. package/package.json +1 -1
  112. package/dist/types/ModlogListParams.d.ts +0 -17
  113. package/dist/types/ReportCombined.d.ts +0 -14
  114. package/dist/types/ReportCombinedId.d.ts +0 -4
  115. /package/dist/types/{ReportCombinedId.js → AdminAllowInstanceId.js} +0 -0
  116. /package/dist/types/{ModlogListParams.js → CommunityReport.js} +0 -0
  117. /package/dist/types/{ReportCombined.js → CommunityReportView.js} +0 -0
@@ -0,0 +1,4 @@
1
+ /**
2
+ * The internal tag id.
3
+ */
4
+ export type TagId = number;
@@ -0,0 +1,3 @@
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 });
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-no-delete-token.1",
4
+ "version": "0.20.0-no-delete-token.2",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",
@@ -1,17 +0,0 @@
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
- };
@@ -1,14 +0,0 @@
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
- };
@@ -1,4 +0,0 @@
1
- /**
2
- * The report combined id
3
- */
4
- export type ReportCombinedId = number;