lemmy-js-client 1.0.0-merge-count-endpoints.1 → 1.0.0-merge-count-endpoints.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/http.d.ts
CHANGED
|
@@ -102,7 +102,6 @@ import { UpdateTagline } from "./types/UpdateTagline";
|
|
|
102
102
|
import { DeleteTagline } from "./types/DeleteTagline";
|
|
103
103
|
import { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
|
|
104
104
|
import { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
|
|
105
|
-
import { CountsResponse } from "./types/CountsResponse";
|
|
106
105
|
import { MyUserInfo } from "./types/MyUserInfo";
|
|
107
106
|
import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
|
108
107
|
import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
|
@@ -142,6 +141,7 @@ import { ReportCombinedView } from "./types/ReportCombinedView";
|
|
|
142
141
|
import { FederatedInstanceView } from "./types/FederatedInstanceView";
|
|
143
142
|
import { MultiCommunityView } from "./types/MultiCommunityView";
|
|
144
143
|
import { PostCommentCombinedView } from "./types/PostCommentCombinedView";
|
|
144
|
+
import { UnreadCountsResponse } from "./types/UnreadCountsResponse";
|
|
145
145
|
type RequestOptions = Pick<RequestInit, "signal">;
|
|
146
146
|
/**
|
|
147
147
|
* Helps build lemmy HTTP requests.
|
|
@@ -264,7 +264,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
264
264
|
/**
|
|
265
265
|
* @summary Get a community's pending follows count.
|
|
266
266
|
*/
|
|
267
|
-
getCommunityPendingFollowsCount(options?: RequestOptions): Promise<
|
|
267
|
+
getCommunityPendingFollowsCount(options?: RequestOptions): Promise<UnreadCountsResponse>;
|
|
268
268
|
/**
|
|
269
269
|
* @summary Get a community's pending followers.
|
|
270
270
|
*/
|
package/dist/http.js
CHANGED
|
@@ -206,7 +206,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
206
206
|
* @summary Get a community's pending follows count.
|
|
207
207
|
*/
|
|
208
208
|
async getCommunityPendingFollowsCount(options) {
|
|
209
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
|
209
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/unread_counts", {}, options);
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
212
212
|
* @summary Get a community's pending followers.
|
|
@@ -1183,7 +1183,7 @@ __decorate([
|
|
|
1183
1183
|
], LemmyHttp.prototype, "followCommunity", null);
|
|
1184
1184
|
__decorate([
|
|
1185
1185
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1186
|
-
(0, runtime_1.Get)("/account/
|
|
1186
|
+
(0, runtime_1.Get)("/account/unread_counts"),
|
|
1187
1187
|
(0, runtime_1.Tags)("Community"),
|
|
1188
1188
|
__param(0, (0, runtime_1.Inject)())
|
|
1189
1189
|
], LemmyHttp.prototype, "getCommunityPendingFollowsCount", null);
|
package/dist/index.d.ts
CHANGED
|
@@ -45,7 +45,6 @@ export { CommunityResponse } from "./types/CommunityResponse";
|
|
|
45
45
|
export { CommunitySortType } from "./types/CommunitySortType";
|
|
46
46
|
export { CommunityView } from "./types/CommunityView";
|
|
47
47
|
export { CommunityVisibility } from "./types/CommunityVisibility";
|
|
48
|
-
export { CountsResponse } from "./types/CountsResponse";
|
|
49
48
|
export { CreateComment } from "./types/CreateComment";
|
|
50
49
|
export { CreateCommentLike } from "./types/CreateCommentLike";
|
|
51
50
|
export { CreateCommentReport } from "./types/CreateCommentReport";
|
|
@@ -274,6 +273,7 @@ export { TaglineId } from "./types/TaglineId";
|
|
|
274
273
|
export { TaglineResponse } from "./types/TaglineResponse";
|
|
275
274
|
export { TagsView } from "./types/TagsView";
|
|
276
275
|
export { TransferCommunity } from "./types/TransferCommunity";
|
|
276
|
+
export { UnreadCountsResponse } from "./types/UnreadCountsResponse";
|
|
277
277
|
export { UntranslatedError } from "./types/UntranslatedError";
|
|
278
278
|
export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
|
|
279
279
|
export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contains the amount of unread items of various types. For normal users this means the number of
|
|
3
|
+
* unread notifications, mods and admins get additional unread counts for reports, registration
|
|
4
|
+
* applications and pending follows to private communities.
|
|
5
|
+
*/
|
|
6
|
+
export type UnreadCountsResponse = {
|
|
7
|
+
notification_count: number;
|
|
8
|
+
report_count?: number;
|
|
9
|
+
pending_follow_count?: number;
|
|
10
|
+
registration_application_count?: number;
|
|
11
|
+
};
|
package/package.json
CHANGED
|
File without changes
|