From d80862cb2b98d7999d9a58adefb514e286bb395b Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 4 Aug 2022 15:12:17 -0400 Subject: [PATCH] v0.17.0-rc.40 --- package.json | 2 +- src/interfaces/api/site.ts | 8 ++++++++ src/interfaces/source.ts | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 98a852d..d4d1899 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.17.0-rc.39", + "version": "0.17.0-rc.40", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", diff --git a/src/interfaces/api/site.ts b/src/interfaces/api/site.ts index 63423a2..9b75573 100644 --- a/src/interfaces/api/site.ts +++ b/src/interfaces/api/site.ts @@ -212,6 +212,10 @@ export class CreateSite { @Transform(({ value }) => toUndefined(value), { toPlainOnly: true }) @Expose() default_post_listing_type: Option; + @Transform(({ value }) => toOption(value), { toClassOnly: true }) + @Transform(({ value }) => toUndefined(value), { toPlainOnly: true }) + @Expose() + application_email_admins: Option; auth: string; constructor(init: CreateSite) { @@ -284,6 +288,10 @@ export class EditSite { @Transform(({ value }) => toUndefined(value), { toPlainOnly: true }) @Expose() default_post_listing_type: Option; + @Transform(({ value }) => toOption(value), { toClassOnly: true }) + @Transform(({ value }) => toUndefined(value), { toPlainOnly: true }) + @Expose() + application_email_admins: Option; auth: string; constructor(init: EditSite) { diff --git a/src/interfaces/source.ts b/src/interfaces/source.ts index 44a5a06..b38743f 100644 --- a/src/interfaces/source.ts +++ b/src/interfaces/source.ts @@ -111,6 +111,7 @@ export class Site { @Transform(({ value }) => toUndefined(value), { toPlainOnly: true }) @Expose() legal_information: Option; + application_email_admins: boolean; } export class PrivateMessage {