lemmy-js-client 0.20.0-remove-aggregate-tables.1 → 0.20.0-remove-aggregate-tables.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -307,7 +307,6 @@ export { SearchSortType } from "./types/SearchSortType";
307
307
  export { SearchType } from "./types/SearchType";
308
308
  export { SensitiveString } from "./types/SensitiveString";
309
309
  export { Site } from "./types/Site";
310
- export { SiteAggregates } from "./types/SiteAggregates";
311
310
  export { SiteId } from "./types/SiteId";
312
311
  export { SiteResponse } from "./types/SiteResponse";
313
312
  export { SiteView } from "./types/SiteView";
@@ -39,7 +39,6 @@ export type Comment = {
39
39
  */
40
40
  distinguished: boolean;
41
41
  language_id: LanguageId;
42
- comment_id: CommentId;
43
42
  score: number;
44
43
  upvotes: number;
45
44
  downvotes: number;
@@ -24,4 +24,8 @@ export type ListReports = {
24
24
  community_id?: CommunityId;
25
25
  page_cursor?: ReportCombinedPaginationCursor;
26
26
  page_back?: boolean;
27
+ /**
28
+ * Only for admins: also show reports with `violates_instance_rules=false`
29
+ */
30
+ show_community_rule_violations?: boolean;
27
31
  };
@@ -118,4 +118,24 @@ export type LocalSite = {
118
118
  * donations.
119
119
  */
120
120
  disable_donation_dialog: boolean;
121
+ users: number;
122
+ posts: number;
123
+ comments: number;
124
+ communities: number;
125
+ /**
126
+ * The number of users with any activity in the last day.
127
+ */
128
+ users_active_day: number;
129
+ /**
130
+ * The number of users with any activity in the last week.
131
+ */
132
+ users_active_week: number;
133
+ /**
134
+ * The number of users with any activity in the last month.
135
+ */
136
+ users_active_month: number;
137
+ /**
138
+ * The number of users with any activity in the last half year.
139
+ */
140
+ users_active_half_year: number;
121
141
  };
@@ -1,7 +1,6 @@
1
1
  import type { LocalSite } from "./LocalSite";
2
2
  import type { LocalSiteRateLimit } from "./LocalSiteRateLimit";
3
3
  import type { Site } from "./Site";
4
- import type { SiteAggregates } from "./SiteAggregates";
5
4
  /**
6
5
  * A site view.
7
6
  */
@@ -9,5 +8,4 @@ export type SiteView = {
9
8
  site: Site;
10
9
  local_site: LocalSite;
11
10
  local_site_rate_limit: LocalSiteRateLimit;
12
- counts: SiteAggregates;
13
11
  };
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-remove-aggregate-tables.1",
4
+ "version": "0.20.0-remove-aggregate-tables.3",
5
5
  "author": "Dessalines",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",
@@ -1,27 +0,0 @@
1
- import type { SiteId } from "./SiteId";
2
- /**
3
- * Aggregate data for a site.
4
- */
5
- export type SiteAggregates = {
6
- site_id: SiteId;
7
- users: number;
8
- posts: number;
9
- comments: number;
10
- communities: number;
11
- /**
12
- * The number of users with any activity in the last day.
13
- */
14
- users_active_day: number;
15
- /**
16
- * The number of users with any activity in the last week.
17
- */
18
- users_active_week: number;
19
- /**
20
- * The number of users with any activity in the last month.
21
- */
22
- users_active_month: number;
23
- /**
24
- * The number of users with any activity in the last half year.
25
- */
26
- users_active_half_year: number;
27
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });