1 | import { BaseParameter, BaseValue } from "@atomist/automation-client/lib/internal/metadata/decoratorSupport";
|
2 | export declare type ParametersDefinition<PARAMS = any> = ParametersListing | ParametersObject<PARAMS>;
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export interface HasDefaultValue {
|
9 | defaultValue?: any;
|
10 | }
|
11 | export declare type ParametersObjectValue = BaseParameter & HasDefaultValue;
|
12 | export declare type MappedParameterOrSecretObjectValue = MappedParameterOrSecretDeclaration;
|
13 | export declare type ValueParameterObjectValue = ValueDeclaration;
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare type ParametersObject<PARAMS, K extends keyof PARAMS = keyof PARAMS> = Record<K, ParametersObjectValue | MappedParameterOrSecretObjectValue | ValueParameterObjectValue>;
|
19 | export declare enum DeclarationType {
|
20 | Mapped = "mapped",
|
21 | Secret = "secret"
|
22 | }
|
23 | export interface MappedParameterOrSecretDeclaration {
|
24 | declarationType: DeclarationType;
|
25 | uri: string;
|
26 | |
27 |
|
28 |
|
29 | required?: boolean;
|
30 | }
|
31 |
|
32 |
|
33 |
|
34 | export declare type ValueDeclaration = BaseValue;
|
35 |
|
36 |
|
37 |
|
38 | export interface ParametersListing {
|
39 | readonly parameters: NamedParameter[];
|
40 | readonly mappedParameters: NamedMappedParameter[];
|
41 | readonly secrets: NamedSecret[];
|
42 | readonly values: NamedValue[];
|
43 | }
|
44 | export declare type NamedParameter = BaseParameter & {
|
45 | name: string;
|
46 | } & HasDefaultValue;
|
47 | export interface NamedSecret {
|
48 | name: string;
|
49 | uri: string;
|
50 | }
|
51 | export interface NamedMappedParameter {
|
52 | name: string;
|
53 | uri: string;
|
54 | required?: boolean;
|
55 | }
|
56 | export declare type NamedValue = NamedValueParameter;
|
57 | export interface NamedValueParameter extends BaseValue {
|
58 | name: string;
|
59 | }
|
60 |
|
\ | No newline at end of file |