Fixed TypeScript types for magnetar-common
ci/woodpecker/push/ociImagePush Pipeline was successful Details

This commit is contained in:
Natty 2024-01-07 23:38:03 +01:00
parent deb7f6ef5e
commit 024cdef68c
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
10 changed files with 71 additions and 1 deletions

View File

@ -4,3 +4,8 @@ export { GetUserById } from "./types/endpoints/GetUserById";
export { GetUserByAcct } from "./types/endpoints/GetUserByAcct";
export { GetUserSelf } from "./types/endpoints/GetUserSelf";
export { GetManyUsersById } from "./types/endpoints/GetManyUsersById";
export { GetFollowersById } from "./types/endpoints/GetFollowersById";
export { GetFollowersSelf } from "./types/endpoints/GetFollowersSelf";
export { GetFollowingById } from "./types/endpoints/GetFollowingById";
export { GetFollowingSelf } from "./types/endpoints/GetFollowingSelf";
export { GetFollowRequestsSelf } from "./types/endpoints/GetFollowRequestsSelf";

View File

@ -47,3 +47,4 @@ export { EndFilter } from "./types/EndFilter";
export { StartFilter } from "./types/StartFilter";
export { NoFilter } from "./types/NoFilter";
export { TimelineType } from "./types/TimelineType";
export { Empty } from "./types/Empty";

View File

@ -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 Empty = null;

View File

@ -5,4 +5,4 @@ import type { NoteVisibility } from "./NoteVisibility";
import type { PackUserBase } from "./packed/PackUserBase";
import type { ReactionPair } from "./ReactionPair";
export interface NoteBase { created_at: string, updated_at: string | null, cw: string | null, cw_mm: MmXml | null, uri: string | null, url: string | null, text: string, text_mm: MmXml | null, visibility: NoteVisibility, user: PackUserBase, parent_note_id: string | null, renoted_note_id: string | null, reply_count: number, renote_count: number, mentions: Array<string>, visible_user_ids: Array<string> | null, hashtags: Array<string>, reactions: Array<ReactionPair>, local_only: boolean, has_poll: boolean, file_ids: Array<string>, emojis: EmojiContext, }
export interface NoteBase { created_at: string, updated_at: string | null, cw: string | null, cw_mm: MmXml | null, uri: string | null, url: string | null, text: string, text_mm: MmXml | null, visibility: NoteVisibility, user: PackUserBase, parent_note_id: string | null, renoted_note_id: string | null, reply_count: number, renote_count: number, mentions: Array<string>, visible_user_ids: Array<string> | null, hashtags: Array<string>, reactions: Array<ReactionPair>, local_only: boolean, has_poll: boolean, file_ids: Array<string>, emojis: EmojiContext, is_quote: boolean, }

View File

@ -0,0 +1,12 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { Empty } from "../Empty";
import type { PackUserBase } from "../packed/PackUserBase";
export const GetFollowRequestsSelf = {
endpoint: "/users/@self/follow-requests",
pathParams: [] as [],
method: "GET" as "GET" | "POST" | "PUT" | "DELETE" | "PATCH",
request: undefined as unknown as Empty,
response: undefined as unknown as Array<PackUserBase>
}

View File

@ -0,0 +1,12 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { Empty } from "../Empty";
import type { PackUserBase } from "../packed/PackUserBase";
export const GetFollowersById = {
endpoint: "/users/:id/followers",
pathParams: ["id"] as ["id"],
method: "GET" as "GET" | "POST" | "PUT" | "DELETE" | "PATCH",
request: undefined as unknown as Empty,
response: undefined as unknown as Array<PackUserBase>
}

View File

@ -0,0 +1,12 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { Empty } from "../Empty";
import type { PackUserBase } from "../packed/PackUserBase";
export const GetFollowersSelf = {
endpoint: "/users/@self/followers",
pathParams: [] as [],
method: "GET" as "GET" | "POST" | "PUT" | "DELETE" | "PATCH",
request: undefined as unknown as Empty,
response: undefined as unknown as Array<PackUserBase>
}

View File

@ -0,0 +1,12 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { Empty } from "../Empty";
import type { PackUserBase } from "../packed/PackUserBase";
export const GetFollowingById = {
endpoint: "/users/:id/following",
pathParams: ["id"] as ["id"],
method: "GET" as "GET" | "POST" | "PUT" | "DELETE" | "PATCH",
request: undefined as unknown as Empty,
response: undefined as unknown as Array<PackUserBase>
}

View File

@ -0,0 +1,12 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { Empty } from "../Empty";
import type { PackUserBase } from "../packed/PackUserBase";
export const GetFollowingSelf = {
endpoint: "/users/@self/following",
pathParams: [] as [],
method: "GET" as "GET" | "POST" | "PUT" | "DELETE" | "PATCH",
request: undefined as unknown as Empty,
response: undefined as unknown as Array<PackUserBase>
}

View File

@ -23,6 +23,7 @@ pub enum ErrorKind {
}
#[derive(Clone, Debug, Serialize, Deserialize, TS)]
#[ts(export)]
pub struct Empty;
impl From<Empty> for () {