import { Plugin , CoreSetup } from 'kibana/server' ; import { LicensingPluginSetup , LicensingPluginStart , } from '../../../../../plugins/licensing/server' ; import { registerRoutes } from './routes' ; export interface FeatureUsageTestPluginSetup { } export interface FeatureUsageTestPluginStart { } export interface FeatureUsageTestSetupDependencies { licensing : LicensingPluginSetup ; } export interface FeatureUsageTestStartDependencies { licensing : LicensingPluginStart ; } export class FeatureUsageTestPlugin implements Plugin < FeatureUsageTestPluginSetup , FeatureUsageTestPluginStart , FeatureUsageTestSetupDependencies , FeatureUsageTestStartDependencies > { public setup ( { http , getStartServices , } , { licensing } ) { licensing . featureUsage . register ( 'Test feature A' , 'basic' ) ; licensing . featureUsage . register ( 'Test feature B' , 'gold' ) ; licensing . featureUsage . register ( 'Test feature C' , 'platinum' ) ; registerRoutes ( http . createRouter ( ) , getStartServices ) ; return { } ; } public start ( ) { return { } ; } }