UNPKG

contentful-management

Version:
22 lines (21 loc) 701 B
export type ParameterType = 'Boolean' | 'Symbol' | 'Number' | 'Enum'; export type InstallationParameterType = ParameterType | 'Secret'; export type ParameterOption = string | { [key: string]: string; }; export interface ParameterDefinition<T = ParameterType> { name: string; id: string; description?: string; type: T; required?: boolean; default?: boolean | string | number; options?: ParameterOption[]; labels?: { empty?: string; true?: string; false?: string; }; } export type DefinedParameters = Record<string, string | number | boolean>; export type FreeFormParameters = Record<string, any> | Array<any> | number | string | boolean;