From f8ddc907a08f8c522ead1a0102b4ccf3a82da61b Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Fri, 8 Dec 2023 12:06:05 +0100 Subject: [PATCH] Fix definition of `ManagedBy` --- specification/_types/common.ts | 5 ----- specification/indices/_types/DataStream.ts | 7 ++++++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/_types/common.ts b/specification/_types/common.ts index 732150a2a6..05be05220c 100644 --- a/specification/_types/common.ts +++ b/specification/_types/common.ts @@ -77,11 +77,6 @@ export type Metrics = string | string[] export type ClusterAlias = string -export type ManagedBy = - | 'Index Lifecycle Management' - | 'Data stream lifecycle' - | 'Unmanaged' - export type Name = string export type Names = Name | Name[] diff --git a/specification/indices/_types/DataStream.ts b/specification/indices/_types/DataStream.ts index b508bc5aa0..aeb9b20fbe 100644 --- a/specification/indices/_types/DataStream.ts +++ b/specification/indices/_types/DataStream.ts @@ -22,7 +22,6 @@ import { Field, HealthStatus, IndexName, - ManagedBy, Metadata, Name, Uuid @@ -30,6 +29,12 @@ import { import { integer } from '@_types/Numeric' import { DataStreamLifecycleWithRollover } from '@indices/_types/DataStreamLifecycle' +enum ManagedBy { + 'Index Lifecycle Management', + 'Data stream lifecycle', + 'Unmanaged' +} + export class DataStream { /** * Custom metadata for the stream, copied from the `_meta` object of the stream’s matching index template.