bitwarden-estensione-browser/common/src/abstractions/environment.service.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
788 B
TypeScript
Raw Normal View History

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