From a3b77b217f7a435bdf3b1aa0e26c13ad46f603b6 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 8 Oct 2024 11:05:22 +0200 Subject: [PATCH] add missing files --- src/types/ApproveCommunityPendingFollows.ts | 8 ++++++++ src/types/CommunityFollowerState.ts | 6 ++++++ src/types/GetCommunityPendingFollowsCount.ts | 6 ++++++ src/types/GetCommunityPendingFollowsCountResponse.ts | 5 +++++ src/types/ListCommunityPendingFollows.ts | 9 +++++++++ src/types/ListCommunityPendingFollowsResponse.ts | 6 ++++++ 6 files changed, 40 insertions(+) create mode 100644 src/types/ApproveCommunityPendingFollows.ts create mode 100644 src/types/CommunityFollowerState.ts create mode 100644 src/types/GetCommunityPendingFollowsCount.ts create mode 100644 src/types/GetCommunityPendingFollowsCountResponse.ts create mode 100644 src/types/ListCommunityPendingFollows.ts create mode 100644 src/types/ListCommunityPendingFollowsResponse.ts diff --git a/src/types/ApproveCommunityPendingFollows.ts b/src/types/ApproveCommunityPendingFollows.ts new file mode 100644 index 0000000..13fda89 --- /dev/null +++ b/src/types/ApproveCommunityPendingFollows.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. +import type { CommunityId } from "./CommunityId"; +import type { PersonId } from "./PersonId"; + +export interface ApproveCommunityPendingFollows { + community_id: CommunityId; + follower_id: PersonId; +} diff --git a/src/types/CommunityFollowerState.ts b/src/types/CommunityFollowerState.ts new file mode 100644 index 0000000..8461bf6 --- /dev/null +++ b/src/types/CommunityFollowerState.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 type CommunityFollowerState = + | "Accepted" + | "Pending" + | "ApprovalRequired"; diff --git a/src/types/GetCommunityPendingFollowsCount.ts b/src/types/GetCommunityPendingFollowsCount.ts new file mode 100644 index 0000000..b4ecd21 --- /dev/null +++ b/src/types/GetCommunityPendingFollowsCount.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 { CommunityId } from "./CommunityId"; + +export interface GetCommunityPendingFollowsCount { + community_id: CommunityId; +} diff --git a/src/types/GetCommunityPendingFollowsCountResponse.ts b/src/types/GetCommunityPendingFollowsCountResponse.ts new file mode 100644 index 0000000..bfa05c5 --- /dev/null +++ b/src/types/GetCommunityPendingFollowsCountResponse.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 GetCommunityPendingFollowsCountResponse { + count: number; +} diff --git a/src/types/ListCommunityPendingFollows.ts b/src/types/ListCommunityPendingFollows.ts new file mode 100644 index 0000000..cb1646b --- /dev/null +++ b/src/types/ListCommunityPendingFollows.ts @@ -0,0 +1,9 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { CommunityId } from "./CommunityId"; + +export interface ListCommunityPendingFollows { + community_id: CommunityId; + pending_only: boolean | null; + page: number | null; + limit: number | null; +} diff --git a/src/types/ListCommunityPendingFollowsResponse.ts b/src/types/ListCommunityPendingFollowsResponse.ts new file mode 100644 index 0000000..9007e75 --- /dev/null +++ b/src/types/ListCommunityPendingFollowsResponse.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 { Person } from "./Person"; + +export interface ListCommunityPendingFollowsResponse { + items: Array; +}