From b8a4ed44a98d16e35aad1ded925660826c32612b Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 23 Sep 2024 14:19:03 +0200 Subject: [PATCH] add missing files --- src/types/CreateTagline.ts | 5 +++++ src/types/DeleteTagline.ts | 6 ++++++ src/types/ListCustomEmojis.ts | 8 ++++++++ src/types/ListCustomEmojisResponse.ts | 6 ++++++ src/types/ListTaglines.ts | 6 ++++++ src/types/ListTaglinesResponse.ts | 6 ++++++ src/types/PostSortType.ts | 22 ++++++++++++++++++++++ src/types/TaglineId.ts | 3 +++ src/types/TaglineResponse.ts | 6 ++++++ src/types/UpdateTagline.ts | 7 +++++++ 10 files changed, 75 insertions(+) create mode 100644 src/types/CreateTagline.ts create mode 100644 src/types/DeleteTagline.ts create mode 100644 src/types/ListCustomEmojis.ts create mode 100644 src/types/ListCustomEmojisResponse.ts create mode 100644 src/types/ListTaglines.ts create mode 100644 src/types/ListTaglinesResponse.ts create mode 100644 src/types/PostSortType.ts create mode 100644 src/types/TaglineId.ts create mode 100644 src/types/TaglineResponse.ts create mode 100644 src/types/UpdateTagline.ts diff --git a/src/types/CreateTagline.ts b/src/types/CreateTagline.ts new file mode 100644 index 0000000..d3f5fc9 --- /dev/null +++ b/src/types/CreateTagline.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export interface CreateTagline { + content: string; +} diff --git a/src/types/DeleteTagline.ts b/src/types/DeleteTagline.ts new file mode 100644 index 0000000..de408a8 --- /dev/null +++ b/src/types/DeleteTagline.ts @@ -0,0 +1,6 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { TaglineId } from "./TaglineId"; + +export interface DeleteTagline { + id: TaglineId; +} diff --git a/src/types/ListCustomEmojis.ts b/src/types/ListCustomEmojis.ts new file mode 100644 index 0000000..68b4bfb --- /dev/null +++ b/src/types/ListCustomEmojis.ts @@ -0,0 +1,8 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export interface ListCustomEmojis { + page?: number; + limit?: number; + category?: string; + ignore_page_limits?: boolean; +} diff --git a/src/types/ListCustomEmojisResponse.ts b/src/types/ListCustomEmojisResponse.ts new file mode 100644 index 0000000..7d76905 --- /dev/null +++ b/src/types/ListCustomEmojisResponse.ts @@ -0,0 +1,6 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { CustomEmojiView } from "./CustomEmojiView"; + +export interface ListCustomEmojisResponse { + custom_emojis: Array; +} diff --git a/src/types/ListTaglines.ts b/src/types/ListTaglines.ts new file mode 100644 index 0000000..70f2538 --- /dev/null +++ b/src/types/ListTaglines.ts @@ -0,0 +1,6 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export interface ListTaglines { + page?: number; + limit?: number; +} diff --git a/src/types/ListTaglinesResponse.ts b/src/types/ListTaglinesResponse.ts new file mode 100644 index 0000000..7112239 --- /dev/null +++ b/src/types/ListTaglinesResponse.ts @@ -0,0 +1,6 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { Tagline } from "./Tagline"; + +export interface ListTaglinesResponse { + taglines: Array; +} diff --git a/src/types/PostSortType.ts b/src/types/PostSortType.ts new file mode 100644 index 0000000..9ae6afb --- /dev/null +++ b/src/types/PostSortType.ts @@ -0,0 +1,22 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type PostSortType = + | "Active" + | "Hot" + | "New" + | "Old" + | "TopDay" + | "TopWeek" + | "TopMonth" + | "TopYear" + | "TopAll" + | "MostComments" + | "NewComments" + | "TopHour" + | "TopSixHour" + | "TopTwelveHour" + | "TopThreeMonths" + | "TopSixMonths" + | "TopNineMonths" + | "Controversial" + | "Scaled"; diff --git a/src/types/TaglineId.ts b/src/types/TaglineId.ts new file mode 100644 index 0000000..fa2615d --- /dev/null +++ b/src/types/TaglineId.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 TaglineId = number; diff --git a/src/types/TaglineResponse.ts b/src/types/TaglineResponse.ts new file mode 100644 index 0000000..bfbfef0 --- /dev/null +++ b/src/types/TaglineResponse.ts @@ -0,0 +1,6 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { Tagline } from "./Tagline"; + +export interface TaglineResponse { + tagline: Tagline; +} diff --git a/src/types/UpdateTagline.ts b/src/types/UpdateTagline.ts new file mode 100644 index 0000000..20309b2 --- /dev/null +++ b/src/types/UpdateTagline.ts @@ -0,0 +1,7 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { TaglineId } from "./TaglineId"; + +export interface UpdateTagline { + id: TaglineId; + content: string; +}