mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-25 13:51:12 +00:00
Add Tagline structs (#80)
* Add Tagline structs * updated is an option<string> * Address PR Comments
This commit is contained in:
parent
ad5be5ce3a
commit
14ed320d90
3 changed files with 20 additions and 0 deletions
|
@ -500,6 +500,10 @@ export class EditSite {
|
|||
@Transform(({ value }) => toUndefined(value), { toPlainOnly: true })
|
||||
@Expose()
|
||||
blocked_instances: Option<string[]>;
|
||||
@Transform(({ value }) => toOption(value), { toClassOnly: true })
|
||||
@Transform(({ value }) => toUndefined(value), { toPlainOnly: true })
|
||||
@Expose()
|
||||
taglines: Option<string[]>;
|
||||
auth: string;
|
||||
|
||||
constructor(init: EditSite) {
|
||||
|
|
|
@ -569,3 +569,14 @@ export class PrivateMessageReport {
|
|||
@Expose()
|
||||
updated: Option<string>;
|
||||
}
|
||||
|
||||
export class Tagline {
|
||||
id: number;
|
||||
local_site_id: number;
|
||||
content: string;
|
||||
published: string;
|
||||
@Transform(({ value }) => toOption(value), { toClassOnly: true })
|
||||
@Transform(({ value }) => toUndefined(value), { toPlainOnly: true })
|
||||
@Expose()
|
||||
updated: Option<string>;
|
||||
}
|
||||
|
|
|
@ -40,6 +40,7 @@ import {
|
|||
PrivateMessageReport,
|
||||
RegistrationApplication,
|
||||
Site,
|
||||
Tagline,
|
||||
} from "./source";
|
||||
|
||||
export class PersonViewSafe {
|
||||
|
@ -87,6 +88,10 @@ export class SiteView {
|
|||
local_site: LocalSite;
|
||||
@Type(() => LocalSiteRateLimit)
|
||||
local_site_rate_limit: LocalSiteRateLimit;
|
||||
@Transform(({ value }) => toOption(value), { toClassOnly: true })
|
||||
@Transform(({ value }) => toUndefined(value), { toPlainOnly: true })
|
||||
@Expose()
|
||||
taglines: Option<Tagline[]>;
|
||||
counts: SiteAggregates;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue