Settings: the mechanism ServerSettingsRepo implements.
API
@Interface()
export abstract class Settings {
abstract get(key: string): string | null;
abstract set(key: string, value: string): void;
abstract getProxyForApp(): boolean;
abstract setProxyForApp(value: boolean): void;
abstract getProxyForAgent(): boolean;
abstract setProxyForAgent(value: boolean): void;
abstract getProxyUrl(): string | null;
abstract setProxyUrl(value: string | null): void;
abstract getAttachmentMaxMb(): number;
abstract setAttachmentMaxMb(value: number): void;
abstract getAttachmentTotalMb(): number;
abstract setAttachmentTotalMb(value: number): void;
abstract getAttachmentLimitsMb(): { attachmentMaxMb: number; attachmentTotalMb: number };
abstract getCompanyMode(): boolean;
abstract setCompanyMode(value: boolean): void;
abstract getBrowserExtensionsEnabled(): boolean;
abstract setBrowserExtensionsEnabled(value: boolean): void;
abstract getAgentApiEnabled(): boolean;
abstract setAgentApiEnabled(value: boolean): void;
abstract watch(listener: (key: string) => void): () => void;
}Contract Topology
Static AST wiring across @Module / @Provide / @UseMembers (20)
get
get(key: string): string | null@paramkey
string@returns
string | nullset
set(key: string, value: string): void@paramkey
string@paramvalue
string@returns
voidgetProxyForApp
getProxyForApp(): boolean@returns
booleansetProxyForApp
setProxyForApp(value: boolean): void@paramvalue
boolean@returns
voidgetProxyForAgent
getProxyForAgent(): boolean@returns
booleansetProxyForAgent
setProxyForAgent(value: boolean): void@paramvalue
boolean@returns
voidgetProxyUrl
getProxyUrl(): string | null@returns
string | nullsetProxyUrl
setProxyUrl(value: string | null): void@paramvalue
string | null@returns
voidgetAttachmentMaxMb
getAttachmentMaxMb(): number@returns
numbersetAttachmentMaxMb
setAttachmentMaxMb(value: number): void@paramvalue
number@returns
voidgetAttachmentTotalMb
getAttachmentTotalMb(): number@returns
numbersetAttachmentTotalMb
setAttachmentTotalMb(value: number): void@paramvalue
number@returns
voidgetAttachmentLimitsMb
getAttachmentLimitsMb(): { attachmentMaxMb: number; attachmentTotalMb: number }@returns
{ attachmentMaxMb: number; attachmentTotalMb: number }getCompanyMode
getCompanyMode(): boolean@returns
booleansetCompanyMode
setCompanyMode(value: boolean): void@paramvalue
boolean@returns
voidgetBrowserExtensionsEnabled
getBrowserExtensionsEnabled(): boolean@returns
booleansetBrowserExtensionsEnabled
setBrowserExtensionsEnabled(value: boolean): void@paramvalue
boolean@returns
voidgetAgentApiEnabled
getAgentApiEnabled(): boolean@returns
booleansetAgentApiEnabled
setAgentApiEnabled(value: boolean): void@paramvalue
boolean@returns
voidwatch
watch(listener: (key: string) => void): () => voidHears every write, by key (a switch that must act at once, not on its next read). Returns the unsubscribe.
@paramlistener
(key: string) => void@returns
() => void