From 5c106d2c0c20c80dc0d657fc56d260d1da3dafb2 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 6 Sep 2023 08:14:37 -0400 Subject: [PATCH 1/4] Fixing addadmin local_user_id -> person --- src/index.ts | 1 + src/types/AddAdmin.ts | 4 ++-- src/types/LocalUser.ts | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index f28cb0b..ced5c62 100644 --- a/src/index.ts +++ b/src/index.ts @@ -194,6 +194,7 @@ export { PostFeatureType } from "./types/PostFeatureType"; export { PostId } from "./types/PostId"; export { PostJoin } from "./types/PostJoin"; export { PostJoinResponse } from "./types/PostJoinResponse"; +export { PostListingMode } from "./types/PostListingMode"; export { PostOrCommentId } from "./types/PostOrCommentId"; export { PostReport } from "./types/PostReport"; export { PostReportId } from "./types/PostReportId"; diff --git a/src/types/AddAdmin.ts b/src/types/AddAdmin.ts index e9c8a59..23de2dd 100644 --- a/src/types/AddAdmin.ts +++ b/src/types/AddAdmin.ts @@ -1,8 +1,8 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { LocalUserId } from "./LocalUserId"; +import type { PersonId } from "./PersonId"; export interface AddAdmin { - local_user_id: LocalUserId; + person_id: PersonId; added: boolean; auth: string; } diff --git a/src/types/LocalUser.ts b/src/types/LocalUser.ts index 76af8b0..a5e38f8 100644 --- a/src/types/LocalUser.ts +++ b/src/types/LocalUser.ts @@ -2,6 +2,7 @@ import type { ListingType } from "./ListingType"; import type { LocalUserId } from "./LocalUserId"; import type { PersonId } from "./PersonId"; +import type { PostListingMode } from "./PostListingMode"; import type { SortType } from "./SortType"; export interface LocalUser { @@ -28,4 +29,5 @@ export interface LocalUser { auto_expand: boolean; infinite_scroll_enabled: boolean; admin: boolean; + post_listing_mode: PostListingMode; } From 170e598e791dcbcc854a6fc687e4e21ef14a6f62 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 6 Sep 2023 08:15:39 -0400 Subject: [PATCH 2/4] v0.19.0-rc.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9d2cec8..9b6b7ee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lemmy-js-client", - "version": "0.19.0-rc.3", + "version": "0.19.0-rc.6", "description": "A javascript / typescript client for Lemmy", "repository": "https://github.com/LemmyNet/lemmy-js-client", "license": "AGPL-3.0", From bffd618f02540af5d03bad4195594cdb478cc949 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 6 Sep 2023 08:16:43 -0400 Subject: [PATCH 3/4] Fix lint. --- src/types/PostListingMode.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/types/PostListingMode.ts diff --git a/src/types/PostListingMode.ts b/src/types/PostListingMode.ts new file mode 100644 index 0000000..b6afd56 --- /dev/null +++ b/src/types/PostListingMode.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type PostListingMode = "List" | "Card" | "SmallCard"; From 37df5f260a24837202aaff2823f1f965f48130c2 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 6 Sep 2023 08:16:53 -0400 Subject: [PATCH 4/4] v0.19.0-rc.7 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9b6b7ee..994e123 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lemmy-js-client", - "version": "0.19.0-rc.6", + "version": "0.19.0-rc.7", "description": "A javascript / typescript client for Lemmy", "repository": "https://github.com/LemmyNet/lemmy-js-client", "license": "AGPL-3.0",