diff --git a/x-pack/legacy/plugins/integrations_manager/common/types.ts b/x-pack/legacy/plugins/integrations_manager/common/types.ts index 1266471122077..590ff00746e3f 100644 --- a/x-pack/legacy/plugins/integrations_manager/common/types.ts +++ b/x-pack/legacy/plugins/integrations_manager/common/types.ts @@ -40,9 +40,14 @@ export interface ScreenshotItem { // https://github.com/elastic/integrations-registry/blob/master/docs/api/package.json export type ServiceName = 'kibana' | 'elasticsearch' | 'filebeat' | 'metricbeat'; export type RequirementVersion = string; + export interface ServiceRequirements { - 'version.min': RequirementVersion; - 'version.max': RequirementVersion; + version: RequirementVersionRange; +} + +export interface RequirementVersionRange { + min: RequirementVersion; + max: RequirementVersion; } // from /categories diff --git a/x-pack/legacy/plugins/integrations_manager/public/components/requirements.tsx b/x-pack/legacy/plugins/integrations_manager/public/components/requirements.tsx index d68366afd5565..329d4348edebf 100644 --- a/x-pack/legacy/plugins/integrations_manager/public/components/requirements.tsx +++ b/x-pack/legacy/plugins/integrations_manager/public/components/requirements.tsx @@ -39,9 +39,9 @@ export function Requirements(props: RequirementsProps) {
- + {' - '} - +