import { LicenseType } from '../../licensing/common/types' ; import { RepositoryType } from './types' ; const basicLicense = 'basic' ; export const PLUGIN = { id : 'snapshot_restore' , minimumLicenseType : basicLicense , getI18nName : ( i18n ) : string => { return i18n . translate ( 'xpack.snapshotRestore.appName' , { defaultMessage : 'Snapshot and Restore' , } ) ; } , } ; export const MAJOR_VERSION = '8.0.0' ; export const API_BASE_PATH = '/api/snapshot_restore/' ; export enum REPOSITORY_TYPES { fs = 'fs' , url = 'url' , source = 'source' , s3 = 's3' , hdfs = 'hdfs' , azure = 'azure' , gcs = 'gcs' } export const DEFAULT_REPOSITORY_TYPES = [ REPOSITORY_TYPES . fs , REPOSITORY_TYPES . url , ] ; export const PLUGIN_REPOSITORY_TYPES = [ REPOSITORY_TYPES . s3 , REPOSITORY_TYPES . hdfs , REPOSITORY_TYPES . azure , REPOSITORY_TYPES . gcs , ] ; export const REPOSITORY_PLUGINS_MAP = { 'repository-s3' : REPOSITORY_TYPES . s3 , 'repository-hdfs' : REPOSITORY_TYPES . hdfs , 'repository-azure' : REPOSITORY_TYPES . azure , 'repository-gcs' : REPOSITORY_TYPES . gcs , } ; export const APP_REQUIRED_CLUSTER_PRIVILEGES = [ 'cluster:admin/snapshot' , 'cluster:admin/repository' , ] ; export const APP_RESTORE_INDEX_PRIVILEGES = [ 'monitor' ] ; export const APP_SLM_CLUSTER_PRIVILEGES = [ 'manage_slm' , 'cluster:monitor/state' ] ; export const TIME_UNITS = { DAY : 'd' , HOUR : 'h' , MINUTE : 'm' , SECOND : 's' , } ;