lemmy-js-client 0.20.0-remove-aggregate-tables.0 → 0.20.0-remove-aggregate-tables.2
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 +0 -1
- package/dist/types/Comment.d.ts +0 -1
- package/dist/types/Community.d.ts +2 -2
- package/dist/types/LocalSite.d.ts +20 -0
- package/dist/types/Person.d.ts +2 -2
- package/dist/types/Site.d.ts +2 -2
- package/dist/types/SiteView.d.ts +0 -2
- package/package.json +1 -1
- package/dist/types/SiteAggregates.d.ts +0 -27
- package/dist/types/SiteAggregates.js +0 -2
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";
|
package/dist/types/Comment.d.ts
CHANGED
@@ -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
|
};
|
package/dist/types/Person.d.ts
CHANGED
package/dist/types/Site.d.ts
CHANGED
package/dist/types/SiteView.d.ts
CHANGED
@@ -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.
|
4
|
+
"version": "0.20.0-remove-aggregate-tables.2",
|
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
|
-
};
|