The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/definition/ISetting.ts

42 lines
912 B

export type SettingId = string | Mongo.ObjectID;
export type GroupId = SettingId;
export type SectionName = string;
export enum SettingType {
BOOLEAN = 'boolean',
STRING = 'string',
RELATIVE_URL = 'relativeUrl',
PASSWORD = 'password',
INT = 'int',
SELECT = 'select',
MULTI_SELECT = 'multiSelect',
LANGUAGE = 'language',
COLOR = 'color',
FONT = 'font',
CODE = 'code',
ACTION = 'action',
ASSET = 'asset',
ROOM_PICK = 'roomPick',
GROUP = 'group',
}
export enum SettingEditor {
COLOR = 'color',
EXPRESSION = 'expression'
}
export interface ISetting {
_id: SettingId;
type: SettingType;
public: boolean;
group?: GroupId;
section?: SectionName;
i18nLabel: string;
value: unknown;
packageValue: unknown;
editor?: SettingEditor;
packageEditor?: SettingEditor;
blocked: boolean;
enableQuery?: string | Mongo.ObjectID | Mongo.Query<any> | Mongo.QueryWithModifiers<any>;
sorter?: number;
}