mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-23 11:21:27 +00:00
Removing CommunityFollowerResponse, using SubscribedType. (#62)
* Removing CommunityFollowerResponse, using SubscribedType. * v0.17.0-rc.11
This commit is contained in:
parent
36103fbca0
commit
637ada9f9f
2 changed files with 14 additions and 4 deletions
|
@ -151,6 +151,15 @@ export enum SearchType {
|
||||||
Url = "Url",
|
Url = "Url",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Different Subscribed states
|
||||||
|
*/
|
||||||
|
export enum SubscribedType {
|
||||||
|
Subscribed = "Subscribed",
|
||||||
|
NotSubscribed = "NotSubscribed",
|
||||||
|
Pending = "Pending",
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A holder for a site's metadata ( such as opengraph tags ), used for post links.
|
* A holder for a site's metadata ( such as opengraph tags ), used for post links.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -9,6 +9,7 @@ import {
|
||||||
PostAggregates,
|
PostAggregates,
|
||||||
SiteAggregates,
|
SiteAggregates,
|
||||||
} from "./aggregates";
|
} from "./aggregates";
|
||||||
|
import { SubscribedType } from "./others";
|
||||||
import {
|
import {
|
||||||
Comment,
|
Comment,
|
||||||
CommentReport,
|
CommentReport,
|
||||||
|
@ -54,7 +55,7 @@ export class PersonMentionView {
|
||||||
recipient: PersonSafe;
|
recipient: PersonSafe;
|
||||||
counts: CommentAggregates;
|
counts: CommentAggregates;
|
||||||
creator_banned_from_community: boolean;
|
creator_banned_from_community: boolean;
|
||||||
subscribed: boolean;
|
subscribed: SubscribedType;
|
||||||
saved: boolean;
|
saved: boolean;
|
||||||
creator_blocked: boolean;
|
creator_blocked: boolean;
|
||||||
@Transform(({ value }) => toOption(value), { toClassOnly: true })
|
@Transform(({ value }) => toOption(value), { toClassOnly: true })
|
||||||
|
@ -95,7 +96,7 @@ export class PostView {
|
||||||
community: CommunitySafe;
|
community: CommunitySafe;
|
||||||
creator_banned_from_community: boolean;
|
creator_banned_from_community: boolean;
|
||||||
counts: PostAggregates;
|
counts: PostAggregates;
|
||||||
subscribed: boolean;
|
subscribed: SubscribedType;
|
||||||
saved: boolean;
|
saved: boolean;
|
||||||
read: boolean;
|
read: boolean;
|
||||||
creator_blocked: boolean;
|
creator_blocked: boolean;
|
||||||
|
@ -145,7 +146,7 @@ export class CommentView {
|
||||||
community: CommunitySafe;
|
community: CommunitySafe;
|
||||||
counts: CommentAggregates;
|
counts: CommentAggregates;
|
||||||
creator_banned_from_community: boolean;
|
creator_banned_from_community: boolean;
|
||||||
subscribed: boolean;
|
subscribed: SubscribedType;
|
||||||
saved: boolean;
|
saved: boolean;
|
||||||
creator_blocked: boolean;
|
creator_blocked: boolean;
|
||||||
@Transform(({ value }) => toOption(value), { toClassOnly: true })
|
@Transform(({ value }) => toOption(value), { toClassOnly: true })
|
||||||
|
@ -326,7 +327,7 @@ export class PersonBlockView {
|
||||||
export class CommunityView {
|
export class CommunityView {
|
||||||
@Type(() => CommunitySafe)
|
@Type(() => CommunitySafe)
|
||||||
community: CommunitySafe;
|
community: CommunitySafe;
|
||||||
subscribed: boolean;
|
subscribed: SubscribedType;
|
||||||
blocked: boolean;
|
blocked: boolean;
|
||||||
counts: CommunityAggregates;
|
counts: CommunityAggregates;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue