mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-25 22:01:12 +00:00
Adding LocalImageView. (#258)
* Adding LocalImageView. * 0.19.4-alpha.17 * Removing local_user from LocalImageView. * 0.19.4-alpha.18 * Upgrading to pnpm v9.0.1
This commit is contained in:
parent
0923a67c93
commit
d53af8c1cc
7 changed files with 1517 additions and 1198 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.16",
|
"version": "0.19.4-alpha.18",
|
||||||
"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",
|
||||||
|
@ -35,6 +35,7 @@
|
||||||
"typedoc": "^0.25.8",
|
"typedoc": "^0.25.8",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
},
|
},
|
||||||
|
"packageManager": "pnpm@9.0.1+sha256.46d50ee2afecb42b185ebbd662dc7bdd52ef5be56bf035bb615cab81a75345df",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{ts,tsx,js}": [
|
"*.{ts,tsx,js}": [
|
||||||
|
@ -50,6 +51,5 @@
|
||||||
"style": "module",
|
"style": "module",
|
||||||
"parser": "typescript"
|
"parser": "typescript"
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"packageManager": "pnpm@8.15.5"
|
|
||||||
}
|
}
|
||||||
|
|
2684
pnpm-lock.yaml
2684
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
@ -137,6 +137,7 @@ export { ListRegistrationApplications } from "./types/ListRegistrationApplicatio
|
||||||
export { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
|
export { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
|
||||||
export { ListingType } from "./types/ListingType";
|
export { ListingType } from "./types/ListingType";
|
||||||
export { LocalImage } from "./types/LocalImage";
|
export { LocalImage } from "./types/LocalImage";
|
||||||
|
export { LocalImageView } from "./types/LocalImageView";
|
||||||
export { LocalSite } from "./types/LocalSite";
|
export { LocalSite } from "./types/LocalSite";
|
||||||
export { LocalSiteId } from "./types/LocalSiteId";
|
export { LocalSiteId } from "./types/LocalSiteId";
|
||||||
export { LocalSiteRateLimit } from "./types/LocalSiteRateLimit";
|
export { LocalSiteRateLimit } from "./types/LocalSiteRateLimit";
|
||||||
|
|
|
@ -34,6 +34,16 @@ export type LemmyErrorType =
|
||||||
| { error: "banned_from_community" }
|
| { error: "banned_from_community" }
|
||||||
| { error: "couldnt_find_community" }
|
| { error: "couldnt_find_community" }
|
||||||
| { error: "couldnt_find_person" }
|
| { error: "couldnt_find_person" }
|
||||||
|
| { error: "couldnt_find_comment" }
|
||||||
|
| { error: "couldnt_find_comment_report" }
|
||||||
|
| { error: "couldnt_find_post_report" }
|
||||||
|
| { error: "couldnt_find_private_message_report" }
|
||||||
|
| { error: "couldnt_find_local_user" }
|
||||||
|
| { error: "couldnt_find_person_mention" }
|
||||||
|
| { error: "couldnt_find_registration_application" }
|
||||||
|
| { error: "couldnt_find_comment_reply" }
|
||||||
|
| { error: "couldnt_find_private_message" }
|
||||||
|
| { error: "couldnt_find_activity" }
|
||||||
| { error: "person_is_blocked" }
|
| { error: "person_is_blocked" }
|
||||||
| { error: "community_is_blocked" }
|
| { error: "community_is_blocked" }
|
||||||
| { error: "instance_is_blocked" }
|
| { error: "instance_is_blocked" }
|
||||||
|
@ -82,6 +92,7 @@ export type LemmyErrorType =
|
||||||
| { error: "page_does_not_specify_group" }
|
| { error: "page_does_not_specify_group" }
|
||||||
| { error: "no_community_found_in_cc" }
|
| { error: "no_community_found_in_cc" }
|
||||||
| { error: "no_email_setup" }
|
| { error: "no_email_setup" }
|
||||||
|
| { error: "local_site_not_setup" }
|
||||||
| { error: "email_smtp_server_needs_a_port" }
|
| { error: "email_smtp_server_needs_a_port" }
|
||||||
| { error: "missing_an_email" }
|
| { error: "missing_an_email" }
|
||||||
| { error: "rate_limit_error" }
|
| { error: "rate_limit_error" }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||||
import type { LocalImage } from "./LocalImage";
|
import type { LocalImageView } from "./LocalImageView";
|
||||||
|
|
||||||
export interface ListMediaResponse {
|
export interface ListMediaResponse {
|
||||||
images: Array<LocalImage>;
|
images: Array<LocalImageView>;
|
||||||
}
|
}
|
||||||
|
|
8
src/types/LocalImageView.ts
Normal file
8
src/types/LocalImageView.ts
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||||
|
import type { LocalImage } from "./LocalImage";
|
||||||
|
import type { Person } from "./Person";
|
||||||
|
|
||||||
|
export interface LocalImageView {
|
||||||
|
local_image: LocalImage;
|
||||||
|
person: Person;
|
||||||
|
}
|
|
@ -14,6 +14,7 @@ export interface Site {
|
||||||
actor_id: string;
|
actor_id: string;
|
||||||
last_refreshed_at: string;
|
last_refreshed_at: string;
|
||||||
inbox_url: string;
|
inbox_url: string;
|
||||||
|
public_key: string;
|
||||||
instance_id: InstanceId;
|
instance_id: InstanceId;
|
||||||
content_warning?: string;
|
content_warning?: string;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue