lemmy-js-client 1.0.0-post-notifications.5 → 1.0.0-post-tags.1
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 +0 -5
- package/dist/http.js +8 -13
- package/dist/index.d.ts +0 -1
- package/dist/types/CommentReportView.d.ts +3 -0
- package/dist/types/CommunityReportView.d.ts +4 -0
- package/dist/types/CreateCommunityTag.d.ts +1 -1
- package/dist/types/LemmyErrorType.d.ts +0 -4
- package/dist/types/PostReportView.d.ts +3 -0
- package/dist/types/PrivateMessage.d.ts +0 -1
- package/dist/types/PrivateMessageReportView.d.ts +2 -0
- package/dist/types/Tag.d.ts +2 -2
- package/package.json +2 -2
- package/dist/types/UpdateCommunityTag.d.ts +0 -8
- package/dist/types/UpdateCommunityTag.js +0 -2
package/dist/http.d.ts
CHANGED
@@ -98,7 +98,6 @@ import { SaveUserSettings } from "./types/SaveUserSettings";
|
|
98
98
|
import { SearchResponse } from "./types/SearchResponse";
|
99
99
|
import { SiteResponse } from "./types/SiteResponse";
|
100
100
|
import { TransferCommunity } from "./types/TransferCommunity";
|
101
|
-
import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
102
101
|
import { VerifyEmail } from "./types/VerifyEmail";
|
103
102
|
import { HideCommunity } from "./types/HideCommunity";
|
104
103
|
import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
@@ -631,10 +630,6 @@ export declare class LemmyHttp extends Controller {
|
|
631
630
|
* @summary Create a community post tag.
|
632
631
|
*/
|
633
632
|
createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
634
|
-
/**
|
635
|
-
* @summary Update a community post tag.
|
636
|
-
*/
|
637
|
-
updateCommunityTag(form: UpdateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
638
633
|
/**
|
639
634
|
* @summary Delete a post tag in a community.
|
640
635
|
*/
|
package/dist/http.js
CHANGED
@@ -754,12 +754,6 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
754
754
|
createCommunityTag(form, options) {
|
755
755
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/tag", form, options);
|
756
756
|
}
|
757
|
-
/**
|
758
|
-
* @summary Update a community post tag.
|
759
|
-
*/
|
760
|
-
updateCommunityTag(form, options) {
|
761
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/tag", form, options);
|
762
|
-
}
|
763
757
|
/**
|
764
758
|
* @summary Delete a post tag in a community.
|
765
759
|
*/
|
@@ -1800,13 +1794,6 @@ __decorate([
|
|
1800
1794
|
__param(0, (0, runtime_1.Body)()),
|
1801
1795
|
__param(1, (0, runtime_1.Inject)())
|
1802
1796
|
], LemmyHttp.prototype, "createCommunityTag", null);
|
1803
|
-
__decorate([
|
1804
|
-
(0, runtime_1.Security)("bearerAuth"),
|
1805
|
-
(0, runtime_1.Put)("/community/tag"),
|
1806
|
-
(0, runtime_1.Tags)("Community"),
|
1807
|
-
__param(0, (0, runtime_1.Body)()),
|
1808
|
-
__param(1, (0, runtime_1.Inject)())
|
1809
|
-
], LemmyHttp.prototype, "updateCommunityTag", null);
|
1810
1797
|
__decorate([
|
1811
1798
|
(0, runtime_1.Security)("bearerAuth"),
|
1812
1799
|
(0, runtime_1.Delete)("/community/tag"),
|
@@ -1972,44 +1959,52 @@ __decorate([
|
|
1972
1959
|
__decorate([
|
1973
1960
|
(0, runtime_1.Security)("bearerAuth"),
|
1974
1961
|
(0, runtime_1.Post)("/user/donation_dialog_shown"),
|
1962
|
+
(0, runtime_1.Tags)("Miscellaneous"),
|
1975
1963
|
__param(0, (0, runtime_1.Inject)())
|
1976
1964
|
], LemmyHttp.prototype, "donationDialogShown", null);
|
1977
1965
|
__decorate([
|
1978
1966
|
(0, runtime_1.Security)("bearerAuth"),
|
1979
1967
|
(0, runtime_1.Post)("/multi_community"),
|
1968
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
1980
1969
|
__param(0, (0, runtime_1.Body)()),
|
1981
1970
|
__param(1, (0, runtime_1.Inject)())
|
1982
1971
|
], LemmyHttp.prototype, "createMultiCommunity", null);
|
1983
1972
|
__decorate([
|
1984
1973
|
(0, runtime_1.Security)("bearerAuth"),
|
1985
1974
|
(0, runtime_1.Put)("/multi_community"),
|
1975
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
1986
1976
|
__param(0, (0, runtime_1.Body)()),
|
1987
1977
|
__param(1, (0, runtime_1.Inject)())
|
1988
1978
|
], LemmyHttp.prototype, "updateMultiCommunity", null);
|
1989
1979
|
__decorate([
|
1990
1980
|
(0, runtime_1.Get)("/multi_community"),
|
1981
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
1991
1982
|
__param(0, (0, runtime_1.Queries)()),
|
1992
1983
|
__param(1, (0, runtime_1.Inject)())
|
1993
1984
|
], LemmyHttp.prototype, "getMultiCommunity", null);
|
1994
1985
|
__decorate([
|
1995
1986
|
(0, runtime_1.Security)("bearerAuth"),
|
1996
1987
|
(0, runtime_1.Post)("/multi_community/entry"),
|
1988
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
1997
1989
|
__param(0, (0, runtime_1.Body)()),
|
1998
1990
|
__param(1, (0, runtime_1.Inject)())
|
1999
1991
|
], LemmyHttp.prototype, "createMultiCommunityEntry", null);
|
2000
1992
|
__decorate([
|
2001
1993
|
(0, runtime_1.Security)("bearerAuth"),
|
2002
1994
|
(0, runtime_1.Delete)("/multi_community/entry"),
|
1995
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
2003
1996
|
__param(0, (0, runtime_1.Body)()),
|
2004
1997
|
__param(1, (0, runtime_1.Inject)())
|
2005
1998
|
], LemmyHttp.prototype, "deleteMultiCommunityEntry", null);
|
2006
1999
|
__decorate([
|
2007
2000
|
(0, runtime_1.Get)("/multi_community/list"),
|
2001
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
2008
2002
|
__param(0, (0, runtime_1.Queries)()),
|
2009
2003
|
__param(1, (0, runtime_1.Inject)())
|
2010
2004
|
], LemmyHttp.prototype, "listMultiCommunities", null);
|
2011
2005
|
__decorate([
|
2012
2006
|
(0, runtime_1.Post)("/multi_community/follow"),
|
2007
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
2013
2008
|
__param(0, (0, runtime_1.Body)()),
|
2014
2009
|
__param(1, (0, runtime_1.Inject)())
|
2015
2010
|
], LemmyHttp.prototype, "followMultiCommunity", null);
|
package/dist/index.d.ts
CHANGED
@@ -351,7 +351,6 @@ export { TaglineResponse } from "./types/TaglineResponse";
|
|
351
351
|
export { TagsView } from "./types/TagsView";
|
352
352
|
export { TransferCommunity } from "./types/TransferCommunity";
|
353
353
|
export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
|
354
|
-
export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
355
354
|
export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
356
355
|
export { UpdatePostNotifications } from "./types/UpdatePostNotifications";
|
357
356
|
export { UpdateTagline } from "./types/UpdateTagline";
|
@@ -245,8 +245,6 @@ export type LemmyErrorType = {
|
|
245
245
|
error: "invalid_unix_time";
|
246
246
|
} | {
|
247
247
|
error: "invalid_bot_action";
|
248
|
-
} | {
|
249
|
-
error: "invalid_tag_name";
|
250
248
|
} | {
|
251
249
|
error: "tag_not_in_community";
|
252
250
|
} | {
|
@@ -314,8 +312,6 @@ export type LemmyErrorType = {
|
|
314
312
|
error: "couldnt_update_tag";
|
315
313
|
} | {
|
316
314
|
error: "couldnt_create_post_tag";
|
317
|
-
} | {
|
318
|
-
error: "couldnt_update_post_tag";
|
319
315
|
} | {
|
320
316
|
error: "couldnt_create_tagline";
|
321
317
|
} | {
|
package/dist/types/Tag.d.ts
CHANGED
@@ -6,7 +6,7 @@ import type { TagId } from "./TagId";
|
|
6
6
|
* The tag object is created by the community moderators.
|
7
7
|
* The assignment happens by the post creator and can be updated by the community moderators.
|
8
8
|
*
|
9
|
-
* A tag is a
|
9
|
+
* A tag is a federated object that gives additional context to another object, which can be
|
10
10
|
* displayed and filtered on. Currently, we only have community post tags, which is a tag that is
|
11
11
|
* created by the mods of a community, then assigned to posts by post authors as well as mods of a
|
12
12
|
* community, to categorize a post.
|
@@ -18,7 +18,7 @@ import type { TagId } from "./TagId";
|
|
18
18
|
export type Tag = {
|
19
19
|
id: TagId;
|
20
20
|
ap_id: DbUrl;
|
21
|
-
|
21
|
+
name: string;
|
22
22
|
/**
|
23
23
|
* the community that owns this tag
|
24
24
|
*/
|
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": "1.0.0-post-
|
4
|
+
"version": "1.0.0-post-tags.1",
|
5
5
|
"author": "Dessalines",
|
6
6
|
"license": "AGPL-3.0",
|
7
7
|
"main": "./dist/index.js",
|
@@ -43,7 +43,7 @@
|
|
43
43
|
"typescript": "^5.5.4",
|
44
44
|
"typescript-eslint": "^8.7.0"
|
45
45
|
},
|
46
|
-
"packageManager": "pnpm@10.
|
46
|
+
"packageManager": "pnpm@10.13.1",
|
47
47
|
"types": "./dist/index.d.ts",
|
48
48
|
"lint-staged": {
|
49
49
|
"*.{ts,tsx,js}": [
|