mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-22 04:11:11 +00:00
Add LocalSite.registration_mode (#96)
This commit is contained in:
parent
0b6e2af513
commit
f3dd61731f
1 changed files with 7 additions and 2 deletions
|
@ -103,16 +103,21 @@ export class Site {
|
|||
instance_id: number;
|
||||
}
|
||||
|
||||
export enum RegistrationMode {
|
||||
Closed = "closed",
|
||||
RequireApplication = "require_application",
|
||||
Open = "open",
|
||||
}
|
||||
|
||||
export class LocalSite {
|
||||
id: number;
|
||||
site_id: number;
|
||||
site_setup: boolean;
|
||||
enable_downvotes: boolean;
|
||||
open_registration: boolean;
|
||||
registration_mode: RegistrationMode;
|
||||
enable_nsfw: boolean;
|
||||
community_creation_admin_only: boolean;
|
||||
require_email_verification: boolean;
|
||||
require_application: boolean;
|
||||
@Transform(({ value }) => toOption(value), { toClassOnly: true })
|
||||
@Transform(({ value }) => toUndefined(value), { toPlainOnly: true })
|
||||
@Expose()
|
||||
|
|
Loading…
Reference in a new issue