1 | export type ParameterType = 'Boolean' | 'Symbol' | 'Number' | 'Enum';
|
2 | export type InstallationParameterType = ParameterType | 'Secret';
|
3 | export type ParameterOption = string | {
|
4 | [key: string]: string;
|
5 | };
|
6 | export interface ParameterDefinition<T = ParameterType> {
|
7 | name: string;
|
8 | id: string;
|
9 | description?: string;
|
10 | type: T;
|
11 | required?: boolean;
|
12 | default?: boolean | string | number;
|
13 | options?: ParameterOption[];
|
14 | labels?: {
|
15 | empty?: string;
|
16 | true?: string;
|
17 | false?: string;
|
18 | };
|
19 | }
|
20 | export type DefinedParameters = Record<string, string | number | boolean>;
|
21 | export type FreeFormParameters = Record<string, any> | Array<any> | number | string | boolean;
|