2021-06-10 12:50:05 +00:00
|
|
|
// (C) Copyright 2015 Moodle Pty Ltd.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
import { CoreColorScheme, CoreZoomLevel } from '@features/settings/services/settings-helper';
|
|
|
|
import { CoreMainMenuLocalizedCustomItem } from '@features/mainmenu/services/mainmenu';
|
|
|
|
import { CoreSitesDemoSiteData } from '@services/sites';
|
|
|
|
import { OpenFileAction } from '@services/utils/utils';
|
2021-08-06 09:25:43 +00:00
|
|
|
import { CoreLoginSiteSelectorListMethod } from '@features/login/services/login-helper';
|
2022-02-17 12:52:40 +00:00
|
|
|
import { CoreDatabaseConfiguration } from '@classes/database/database-table';
|
2021-06-10 12:50:05 +00:00
|
|
|
|
|
|
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
|
|
|
|
|
|
export interface EnvironmentConfig {
|
|
|
|
app_id: string;
|
|
|
|
appname: string;
|
|
|
|
versioncode: number;
|
|
|
|
versionname: string; // @todo This could be removed and use build variables instead.
|
|
|
|
cache_update_frequency_usually: number;
|
|
|
|
cache_update_frequency_often: number;
|
|
|
|
cache_update_frequency_sometimes: number;
|
|
|
|
cache_update_frequency_rarely: number;
|
|
|
|
default_lang: string;
|
|
|
|
languages: Record<string, string>;
|
2022-02-03 12:35:01 +00:00
|
|
|
databaseOptimizations?: Partial<CoreDatabaseConfiguration>;
|
|
|
|
databaseTableOptimizations?: Record<string, Partial<CoreDatabaseConfiguration>>;
|
2022-03-08 17:12:33 +00:00
|
|
|
disableUserTours?: boolean;
|
|
|
|
disabledUserTours?: string[];
|
2021-06-10 12:50:05 +00:00
|
|
|
wsservice: string;
|
|
|
|
demo_sites: Record<string, CoreSitesDemoSiteData>;
|
|
|
|
zoomlevels: Record<CoreZoomLevel, number>;
|
|
|
|
customurlscheme: string;
|
|
|
|
siteurl: string;
|
|
|
|
sitename: string;
|
2021-08-06 09:25:43 +00:00
|
|
|
multisitesdisplay: CoreLoginSiteSelectorListMethod;
|
2021-06-10 12:50:05 +00:00
|
|
|
sitefindersettings: Record<string, unknown>;
|
|
|
|
onlyallowlistedsites: boolean;
|
|
|
|
skipssoconfirmation: boolean;
|
|
|
|
forcedefaultlanguage: boolean;
|
|
|
|
privacypolicy: string;
|
|
|
|
notificoncolor: string;
|
|
|
|
enableanalytics: boolean;
|
|
|
|
enableonboarding: boolean;
|
|
|
|
forceColorScheme: CoreColorScheme;
|
|
|
|
forceLoginLogo: boolean;
|
|
|
|
ioswebviewscheme: string;
|
|
|
|
appstores: Record<string, string>;
|
|
|
|
displayqroncredentialscreen?: boolean;
|
|
|
|
displayqronsitescreen?: boolean;
|
|
|
|
forceOpenLinksIn: 'app' | 'browser';
|
|
|
|
iOSDefaultOpenFileAction?: OpenFileAction;
|
|
|
|
customMainMenuItems?: CoreMainMenuLocalizedCustomItem[];
|
|
|
|
feedbackFormUrl?: string | false;
|
2021-10-13 08:58:43 +00:00
|
|
|
a11yStatement?: string | false;
|
2021-11-22 10:22:00 +00:00
|
|
|
iabToolbarColors?: 'auto' | { background: string; text?: string } | null;
|
2021-12-03 13:18:22 +00:00
|
|
|
wsrequestqueuelimit: number; // Maximum number of requests allowed in the queue.
|
|
|
|
wsrequestqueuedelay: number; // Maximum number of miliseconds to wait before processing the queue.
|
2022-02-01 07:14:08 +00:00
|
|
|
calendarreminderdefaultvalue: number; // Initial value for default reminders (in seconds). User can change it later.
|
2022-02-02 11:33:04 +00:00
|
|
|
removeaccountonlogout?: boolean; // True to remove the account when the user clicks logout. Doesn't affect switch account.
|
2022-03-07 11:51:34 +00:00
|
|
|
uselegacycompletion?: boolean; // Whether to use legacy completion by default in all course formats.
|
2021-06-10 12:50:05 +00:00
|
|
|
}
|