From 81c0be5931455452dcb0aa9b94118358a76ee47d Mon Sep 17 00:00:00 2001 From: Nutomic Date: Tue, 3 Jan 2023 19:44:53 +0000 Subject: [PATCH 1/2] Udate CreateSite/EditSite structs for registration mode (#100) --- src/interfaces/api/site.ts | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/interfaces/api/site.ts b/src/interfaces/api/site.ts index 6c43cc7..fc5c2ca 100644 --- a/src/interfaces/api/site.ts +++ b/src/interfaces/api/site.ts @@ -3,7 +3,7 @@ import { Expose, Transform, Type } from "class-transformer"; import "reflect-metadata"; import { toOption, toUndefined } from "../../utils"; import { ListingType, ModlogActionType, SearchType, SortType } from "../others"; -import { Language, Tagline } from "../source"; +import { Language, RegistrationMode, Tagline } from "../source"; import { AdminPurgeCommentView, AdminPurgeCommunityView, @@ -184,10 +184,6 @@ export class CreateSite { @Transform(({ value }) => toOption(value), { toClassOnly: true }) @Transform(({ value }) => toUndefined(value), { toPlainOnly: true }) @Expose() - open_registration: Option; - @Transform(({ value }) => toOption(value), { toClassOnly: true }) - @Transform(({ value }) => toUndefined(value), { toPlainOnly: true }) - @Expose() enable_nsfw: Option; @Transform(({ value }) => toOption(value), { toClassOnly: true }) @Transform(({ value }) => toUndefined(value), { toPlainOnly: true }) @@ -200,7 +196,7 @@ export class CreateSite { @Transform(({ value }) => toOption(value), { toClassOnly: true }) @Transform(({ value }) => toUndefined(value), { toPlainOnly: true }) @Expose() - require_application: Option; + registration_mode: Option; @Transform(({ value }) => toOption(value), { toClassOnly: true }) @Transform(({ value }) => toUndefined(value), { toPlainOnly: true }) @Expose() @@ -355,10 +351,6 @@ export class EditSite { @Transform(({ value }) => toOption(value), { toClassOnly: true }) @Transform(({ value }) => toUndefined(value), { toPlainOnly: true }) @Expose() - open_registration: Option; - @Transform(({ value }) => toOption(value), { toClassOnly: true }) - @Transform(({ value }) => toUndefined(value), { toPlainOnly: true }) - @Expose() enable_nsfw: Option; @Transform(({ value }) => toOption(value), { toClassOnly: true }) @Transform(({ value }) => toUndefined(value), { toPlainOnly: true }) @@ -371,7 +363,7 @@ export class EditSite { @Transform(({ value }) => toOption(value), { toClassOnly: true }) @Transform(({ value }) => toUndefined(value), { toPlainOnly: true }) @Expose() - require_application: Option; + registration_mode: Option; @Transform(({ value }) => toOption(value), { toClassOnly: true }) @Transform(({ value }) => toUndefined(value), { toPlainOnly: true }) @Expose() From f1d164fca3d32da4af48e639dab840ec94168603 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 3 Jan 2023 14:46:24 -0500 Subject: [PATCH 2/2] v0.17.0-rc.59 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 063e42f..9ca4b0a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lemmy-js-client", - "version": "0.17.0-rc.58", + "version": "0.17.0-rc.59", "description": "A javascript / typescript client for Lemmy", "repository": "https://github.com/LemmyNet/lemmy-js-client", "license": "AGPL-3.0",