Improve Terms of Service

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-06-19 19:27:10 +02:00
parent 9cc5cb72b5
commit f5241954bd
56 changed files with 10908 additions and 3348 deletions

View File

@@ -14,12 +14,23 @@ export enum InstanceTermsType {
CUSTOM = "CUSTOM",
}
export enum InstancePrivacyType {
DEFAULT = "DEFAULT",
URL = "URL",
CUSTOM = "CUSTOM",
}
export interface IAdminSettings {
instanceName: string;
instanceDescription: string;
instanceLongDescription: string;
contact: string;
instanceTerms: string;
instanceTermsType: InstanceTermsType;
instanceTermsUrl: string | null;
instancePrivacyPolicy: string;
instancePrivacyPolicyType: InstanceTermsType;
instancePrivacyPolicyUrl: string | null;
instanceRules: string;
registrationsOpen: boolean;
}

View File

@@ -1,9 +1,11 @@
import { InstanceTermsType } from "./admin.model";
import { InstanceTermsType, InstancePrivacyType } from "./admin.model";
import { IProvider } from "./resource";
export interface IConfig {
name: string;
description: string;
longDescription: string;
contact: string;
registrationsOpen: boolean;
registrationsWhitelist: boolean;
@@ -59,10 +61,17 @@ export interface IConfig {
type: InstanceTermsType;
url: string;
};
privacy: {
bodyHtml: string;
type: InstancePrivacyType;
url: string;
};
rules: string;
resourceProviders: IProvider[];
timezones: string[];
features: {
groups: boolean;
};
federating: boolean;
version: string;
}

View File

@@ -0,0 +1,5 @@
export interface IStatistics {
numberOfUsers: number;
numberOfEvents: number;
numberOfComments: number;
}