2021-07-23 20:03:52 +02:00
|
|
|
import { Observable } from 'rxjs';
|
|
|
|
|
|
|
|
export type Urls = {
|
|
|
|
base?: string;
|
|
|
|
webVault?: string;
|
|
|
|
api?: string;
|
|
|
|
identity?: string;
|
|
|
|
icons?: string;
|
|
|
|
notifications?: string;
|
|
|
|
events?: string;
|
|
|
|
enterprise?: string;
|
|
|
|
};
|
|
|
|
|
2018-01-23 23:29:15 +01:00
|
|
|
export abstract class EnvironmentService {
|
2021-07-23 20:03:52 +02:00
|
|
|
urls: Observable<Urls>;
|
2018-01-10 02:20:54 +01:00
|
|
|
|
2021-07-23 20:03:52 +02:00
|
|
|
hasBaseUrl: () => boolean;
|
|
|
|
getNotificationsUrl: () => string;
|
|
|
|
getEnterpriseUrl: () => string;
|
2018-06-25 14:06:19 +02:00
|
|
|
getWebVaultUrl: () => string;
|
2021-07-23 20:03:52 +02:00
|
|
|
getSendUrl: () => string;
|
|
|
|
getIconsUrl: () => string;
|
|
|
|
getApiUrl: () => string;
|
|
|
|
getIdentityUrl: () => string;
|
|
|
|
getEventsUrl: () => string;
|
2018-01-24 15:27:08 +01:00
|
|
|
setUrlsFromStorage: () => Promise<void>;
|
2021-07-23 20:03:52 +02:00
|
|
|
setUrls: (urls: any, saveSettings?: boolean) => Promise<Urls>;
|
|
|
|
getUrls: () => Urls;
|
2018-01-10 02:20:54 +01:00
|
|
|
}
|