2022-01-24 20:12:36 +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-28 18:00: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-24 20:12:36 +00:00
|
|
|
export type TSettingsModel = ISettings & Model;
|