lemmy-js-client 1.0.0-community-sidebar-summary.0 → 1.0.0-community-sidebar-summary.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/index.d.ts +0 -1
- package/dist/types/AllLemmyErrors.js +1 -0
- package/dist/types/Community.d.ts +1 -1
- package/dist/types/CommunityReport.d.ts +1 -1
- package/dist/types/CreateCommunity.d.ts +3 -3
- package/dist/types/CreateSite.d.ts +1 -1
- package/dist/types/EditCommunity.d.ts +3 -3
- package/dist/types/EditSite.d.ts +2 -2
- package/dist/types/LemmyErrorType.d.ts +0 -3
- package/dist/types/LemmyErrorType.js +1 -0
- package/dist/types/Site.d.ts +3 -3
- package/package.json +1 -1
- package/dist/types/UntranslatedError.d.ts +0 -57
- package/dist/types/UntranslatedError.js +0 -3
package/dist/index.d.ts
CHANGED
|
@@ -272,7 +272,6 @@ export { TaglineResponse } from "./types/TaglineResponse";
|
|
|
272
272
|
export { TagsView } from "./types/TagsView";
|
|
273
273
|
export { TransferCommunity } from "./types/TransferCommunity";
|
|
274
274
|
export { UnreadCountsResponse } from "./types/UnreadCountsResponse";
|
|
275
|
-
export { UntranslatedError } from "./types/UntranslatedError";
|
|
276
275
|
export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
|
|
277
276
|
export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
|
278
277
|
export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
|
@@ -10,8 +10,8 @@ export type CommunityReport = {
|
|
|
10
10
|
community_id: CommunityId;
|
|
11
11
|
original_community_name: string;
|
|
12
12
|
original_community_title: string;
|
|
13
|
+
original_community_summary?: string;
|
|
13
14
|
original_community_description?: string;
|
|
14
|
-
original_community_sidebar?: string;
|
|
15
15
|
original_community_icon?: string;
|
|
16
16
|
original_community_banner?: string;
|
|
17
17
|
reason: string;
|
|
@@ -15,11 +15,11 @@ export type CreateCommunity = {
|
|
|
15
15
|
/**
|
|
16
16
|
* A sidebar for the community in markdown.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
description?: string;
|
|
19
19
|
/**
|
|
20
|
-
* A shorter, one line
|
|
20
|
+
* A shorter, one line summary of your community.
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
summary?: string;
|
|
23
23
|
/**
|
|
24
24
|
* An icon URL.
|
|
25
25
|
*/
|
|
@@ -11,8 +11,8 @@ import type { RegistrationMode } from "./RegistrationMode";
|
|
|
11
11
|
*/
|
|
12
12
|
export type CreateSite = {
|
|
13
13
|
name: string;
|
|
14
|
-
sidebar?: string;
|
|
15
14
|
description?: string;
|
|
15
|
+
summary?: string;
|
|
16
16
|
community_creation_admin_only?: boolean;
|
|
17
17
|
require_email_verification?: boolean;
|
|
18
18
|
application_question?: string;
|
|
@@ -13,11 +13,11 @@ export type EditCommunity = {
|
|
|
13
13
|
/**
|
|
14
14
|
* A sidebar for the community in markdown.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
description?: string;
|
|
17
17
|
/**
|
|
18
|
-
* A shorter, one line
|
|
18
|
+
* A shorter, one line summary of your community.
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
summary?: string;
|
|
21
21
|
/**
|
|
22
22
|
* Whether its an NSFW community.
|
|
23
23
|
*/
|
package/dist/types/EditSite.d.ts
CHANGED
|
@@ -14,11 +14,11 @@ export type EditSite = {
|
|
|
14
14
|
/**
|
|
15
15
|
* A sidebar for the site, in markdown.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
description?: string;
|
|
18
18
|
/**
|
|
19
19
|
* A shorter, one line description of your site.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
summary?: string;
|
|
22
22
|
/**
|
|
23
23
|
* Limits community creation to admins only.
|
|
24
24
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { UntranslatedError } from "./UntranslatedError";
|
|
2
1
|
/**
|
|
3
2
|
* Errors used in the API, all of these are translated in lemmy-ui.
|
|
4
3
|
*/
|
|
@@ -234,6 +233,4 @@ export type LemmyErrorType = {
|
|
|
234
233
|
} | {
|
|
235
234
|
error: "resolve_object_failed";
|
|
236
235
|
message: string;
|
|
237
|
-
} | {
|
|
238
|
-
error?: UntranslatedError;
|
|
239
236
|
};
|
package/dist/types/Site.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export type Site = {
|
|
|
11
11
|
/**
|
|
12
12
|
* A sidebar for the site in markdown.
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
description?: string;
|
|
15
15
|
published_at: string;
|
|
16
16
|
updated_at?: string;
|
|
17
17
|
/**
|
|
@@ -23,9 +23,9 @@ export type Site = {
|
|
|
23
23
|
*/
|
|
24
24
|
banner?: DbUrl;
|
|
25
25
|
/**
|
|
26
|
-
* A shorter, one-line
|
|
26
|
+
* A shorter, one-line summary of the site.
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
summary?: string;
|
|
29
29
|
/**
|
|
30
30
|
* The federated ap_id.
|
|
31
31
|
*/
|
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-community-sidebar-summary.
|
|
4
|
+
"version": "1.0.0-community-sidebar-summary.1",
|
|
5
5
|
"author": "Dessalines",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* These errors are only used for federation or internally and dont need to be translated.
|
|
3
|
-
*/
|
|
4
|
-
export type UntranslatedError = {
|
|
5
|
-
error: "invalid_community";
|
|
6
|
-
} | {
|
|
7
|
-
error: "cannot_create_post_or_comment_in_deleted_or_removed_community";
|
|
8
|
-
} | {
|
|
9
|
-
error: "cannot_receive_page";
|
|
10
|
-
} | {
|
|
11
|
-
error: "only_local_admin_can_remove_community";
|
|
12
|
-
} | {
|
|
13
|
-
error: "only_local_admin_can_restore_community";
|
|
14
|
-
} | {
|
|
15
|
-
error: "post_is_locked";
|
|
16
|
-
} | {
|
|
17
|
-
error: "person_is_banned_from_site";
|
|
18
|
-
message: string;
|
|
19
|
-
} | {
|
|
20
|
-
error: "invalid_vote_value";
|
|
21
|
-
} | {
|
|
22
|
-
error: "page_does_not_specify_creator";
|
|
23
|
-
} | {
|
|
24
|
-
error: "federation_disabled";
|
|
25
|
-
} | {
|
|
26
|
-
error: "domain_blocked";
|
|
27
|
-
message: string;
|
|
28
|
-
} | {
|
|
29
|
-
error: "domain_not_in_allow_list";
|
|
30
|
-
message: string;
|
|
31
|
-
} | {
|
|
32
|
-
error: "federation_disabled_by_strict_allow_list";
|
|
33
|
-
} | {
|
|
34
|
-
error: "contradicting_filters";
|
|
35
|
-
} | {
|
|
36
|
-
error: "url_without_domain";
|
|
37
|
-
} | {
|
|
38
|
-
error: "inbox_timeout";
|
|
39
|
-
} | {
|
|
40
|
-
error: "cant_delete_site";
|
|
41
|
-
} | {
|
|
42
|
-
error: "object_is_not_public";
|
|
43
|
-
} | {
|
|
44
|
-
error: "object_is_not_private";
|
|
45
|
-
} | {
|
|
46
|
-
error: "invalid_follow";
|
|
47
|
-
message: string;
|
|
48
|
-
} | {
|
|
49
|
-
error: "purge_invalid_image_url";
|
|
50
|
-
} | {
|
|
51
|
-
error: "unreachable";
|
|
52
|
-
} | {
|
|
53
|
-
error: "couldnt_send_webmention";
|
|
54
|
-
} | {
|
|
55
|
-
error: "community_has_no_followers";
|
|
56
|
-
message: string;
|
|
57
|
-
};
|