mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-26 14:21:12 +00:00
Merge branch 'main' into add_hide_post
This commit is contained in:
commit
7d382039a9
5 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "lemmy-js-client",
|
"name": "lemmy-js-client",
|
||||||
"description": "A javascript / typescript client for Lemmy",
|
"description": "A javascript / typescript client for Lemmy",
|
||||||
"version": "0.19.4-alpha.4",
|
"version": "0.19.4-alpha.6",
|
||||||
"author": "Dessalines <tyhou13@gmx.com>",
|
"author": "Dessalines <tyhou13@gmx.com>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|
|
@ -7,6 +7,7 @@ export interface CreatePost {
|
||||||
community_id: CommunityId;
|
community_id: CommunityId;
|
||||||
url?: string;
|
url?: string;
|
||||||
body?: string;
|
body?: string;
|
||||||
|
alt_text?: string;
|
||||||
honeypot?: string;
|
honeypot?: string;
|
||||||
nsfw?: boolean;
|
nsfw?: boolean;
|
||||||
language_id?: LanguageId;
|
language_id?: LanguageId;
|
||||||
|
|
|
@ -7,6 +7,7 @@ export interface EditPost {
|
||||||
name?: string;
|
name?: string;
|
||||||
url?: string;
|
url?: string;
|
||||||
body?: string;
|
body?: string;
|
||||||
|
alt_text?: string;
|
||||||
nsfw?: boolean;
|
nsfw?: boolean;
|
||||||
language_id?: LanguageId;
|
language_id?: LanguageId;
|
||||||
custom_thumbnail?: string;
|
custom_thumbnail?: string;
|
||||||
|
|
|
@ -91,6 +91,7 @@ export type LemmyErrorType =
|
||||||
| { error: "invalid_post_title" }
|
| { error: "invalid_post_title" }
|
||||||
| { error: "invalid_body_field" }
|
| { error: "invalid_body_field" }
|
||||||
| { error: "bio_length_overflow" }
|
| { error: "bio_length_overflow" }
|
||||||
|
| { error: "alt_text_length_overflow" }
|
||||||
| { error: "missing_totp_token" }
|
| { error: "missing_totp_token" }
|
||||||
| { error: "missing_totp_secret" }
|
| { error: "missing_totp_secret" }
|
||||||
| { error: "incorrect_totp_token" }
|
| { error: "incorrect_totp_token" }
|
||||||
|
|
|
@ -27,4 +27,5 @@ export interface Post {
|
||||||
featured_community: boolean;
|
featured_community: boolean;
|
||||||
featured_local: boolean;
|
featured_local: boolean;
|
||||||
url_content_type?: string;
|
url_content_type?: string;
|
||||||
|
alt_text?: string;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue