97197e3811
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
69 lines
1.3 KiB
TypeScript
69 lines
1.3 KiB
TypeScript
import { InstanceTermsType } from "./admin.model";
|
|
import { IProvider } from "./resource";
|
|
|
|
export interface IConfig {
|
|
name: string;
|
|
description: string;
|
|
|
|
registrationsOpen: boolean;
|
|
registrationsWhitelist: boolean;
|
|
demoMode: boolean;
|
|
countryCode: string;
|
|
location: {
|
|
latitude: number;
|
|
longitude: number;
|
|
// accuracyRadius: number;
|
|
};
|
|
anonymous: {
|
|
participation: {
|
|
allowed: boolean;
|
|
validation: {
|
|
email: {
|
|
enabled: boolean;
|
|
confirmationRequired: boolean;
|
|
};
|
|
captcha: {
|
|
enabled: boolean;
|
|
};
|
|
};
|
|
};
|
|
eventCreation: {
|
|
allowed: boolean;
|
|
validation: {
|
|
email: {
|
|
enabled: boolean;
|
|
confirmationRequired: boolean;
|
|
};
|
|
captcha: {
|
|
enabled: boolean;
|
|
};
|
|
};
|
|
};
|
|
reports: {
|
|
allowed: boolean;
|
|
};
|
|
actorId: string;
|
|
};
|
|
maps: {
|
|
tiles: {
|
|
endpoint: string;
|
|
attribution: string | null;
|
|
};
|
|
};
|
|
geocoding: {
|
|
provider: string;
|
|
autocomplete: boolean;
|
|
};
|
|
terms: {
|
|
bodyHtml: string;
|
|
type: InstanceTermsType;
|
|
url: string;
|
|
};
|
|
rules: string;
|
|
resourceProviders: IProvider[];
|
|
timezones: string[];
|
|
features: {
|
|
groups: boolean;
|
|
};
|
|
}
|