2022-01-11 13:51:48 +00:00
|
|
|
import Model from '@nozbe/watermelondb/Model';
|
|
|
|
|
|
|
|
export interface ISettings {
|
|
|
|
id: string;
|
|
|
|
valueAsString?: string;
|
|
|
|
valueAsBoolean?: boolean;
|
|
|
|
valueAsNumber?: number;
|
|
|
|
valueAsArray?: string[];
|
|
|
|
_updatedAt?: Date;
|
|
|
|
}
|
|
|
|
|
2022-02-18 14:49:47 +00:00
|
|
|
export interface IPreparedSettings {
|
|
|
|
_id: string;
|
|
|
|
value: string;
|
|
|
|
enterprise: boolean;
|
|
|
|
valueAsString?: string;
|
|
|
|
valueAsBoolean?: boolean;
|
|
|
|
valueAsNumber?: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ISettingsIcon {
|
|
|
|
_id: string;
|
|
|
|
value: {
|
|
|
|
defaultUrl: string;
|
|
|
|
url?: string;
|
|
|
|
};
|
|
|
|
enterprise: boolean;
|
|
|
|
}
|
|
|
|
|
2022-01-11 13:51:48 +00:00
|
|
|
export type TSettingsModel = ISettings & Model;
|