From 040dd38e139b28f0219418e221ebd44835b5905a Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 24 Apr 2021 14:20:23 -0400 Subject: [PATCH] Add admin community_creation_admin_only. (#20) * Add admin community_creation_admin_only. * v0.11.0-rc.12 --- package.json | 2 +- src/interfaces/api/site.ts | 2 ++ src/interfaces/source.ts | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f975daf..87abe4d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.11.0-rc.11", + "version": "0.11.0-rc.12", "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 59d0c68..b711e2c 100644 --- a/src/interfaces/api/site.ts +++ b/src/interfaces/api/site.ts @@ -68,6 +68,7 @@ export interface CreateSite { enable_downvotes?: boolean; open_registration?: boolean; enable_nsfw?: boolean; + community_creation_admin_only?: boolean; auth: string; } @@ -80,6 +81,7 @@ export interface EditSite { enable_downvotes?: boolean; open_registration?: boolean; enable_nsfw?: boolean; + community_creation_admin_only?: boolean; auth: string; } diff --git a/src/interfaces/source.ts b/src/interfaces/source.ts index 66e7687..47eee61 100644 --- a/src/interfaces/source.ts +++ b/src/interfaces/source.ts @@ -44,6 +44,7 @@ export interface Site { enable_downvotes: boolean; open_registration: boolean; enable_nsfw: boolean; + community_creation_admin_only: boolean; icon?: string; banner?: string; }