UNPKG

@openshift-console/dynamic-plugin-sdk

Version:

Provides core APIs, types and utilities used by dynamic plugins at runtime.

23 lines (22 loc) 1.09 kB
import { ExtensionK8sGroupModel } from '../api/common-types'; import { Extension, ExtensionDeclaration } from '../types'; export declare enum ModelBadge { DEV = "dev", TECH = "tech" } /** Customize the display of models by overriding values retrieved and generated through API discovery. */ export type ModelMetadata = ExtensionDeclaration<'console.model-metadata', { /** The model to customize. May specify only a group, or optional version and kind. */ model: ExtensionK8sGroupModel; /** Whether to consider this model reference as tech preview or dev preview. */ badge?: ModelBadge; /** The color to associate to this model. */ color?: string; /** Override the label. Requires `kind` be provided. */ label?: string; /** Override the plural label. Requires `kind` be provided. */ labelPlural?: string; /** Customize the abbreviation. Defaults to All uppercase chars in the kind up to 4 characters long. Requires `kind` be provided. */ abbr?: string; }>; export declare const isModelMetadata: (e: Extension) => e is ModelMetadata;