diff --git a/src/interfaces/api/site.ts b/src/interfaces/api/site.ts index b165e8f..d558a71 100644 --- a/src/interfaces/api/site.ts +++ b/src/interfaces/api/site.ts @@ -500,6 +500,10 @@ export class EditSite { @Transform(({ value }) => toUndefined(value), { toPlainOnly: true }) @Expose() blocked_instances: Option; + @Transform(({ value }) => toOption(value), { toClassOnly: true }) + @Transform(({ value }) => toUndefined(value), { toPlainOnly: true }) + @Expose() + taglines: Option; auth: string; constructor(init: EditSite) { diff --git a/src/interfaces/source.ts b/src/interfaces/source.ts index 602a669..33b8063 100644 --- a/src/interfaces/source.ts +++ b/src/interfaces/source.ts @@ -569,3 +569,14 @@ export class PrivateMessageReport { @Expose() updated: Option; } + +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; +} diff --git a/src/interfaces/views.ts b/src/interfaces/views.ts index 736d9ca..0c2ebfd 100644 --- a/src/interfaces/views.ts +++ b/src/interfaces/views.ts @@ -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; counts: SiteAggregates; }