@ambler/circleci-config-sdk 0.12.15 → 0.12.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.d.ts +43 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Command.d.ts +22 -0
- package/dist/src/lib/Components/Commands/exports/Command.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/AddSSHKeys.d.ts +36 -0
- package/dist/src/lib/Components/Commands/exports/Native/AddSSHKeys.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/Cache/Restore.d.ts +37 -0
- package/dist/src/lib/Components/Commands/exports/Native/Cache/Restore.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/Cache/Save.d.ts +44 -0
- package/dist/src/lib/Components/Commands/exports/Native/Cache/Save.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/Cache/index.d.ts +3 -0
- package/dist/src/lib/Components/Commands/exports/Native/Cache/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/Checkout.d.ts +35 -0
- package/dist/src/lib/Components/Commands/exports/Native/Checkout.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/Run.d.ts +66 -0
- package/dist/src/lib/Components/Commands/exports/Native/Run.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/SetupRemoteDocker.d.ts +45 -0
- package/dist/src/lib/Components/Commands/exports/Native/SetupRemoteDocker.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/StoreArtifacts.d.ts +40 -0
- package/dist/src/lib/Components/Commands/exports/Native/StoreArtifacts.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/StoreTestResults.d.ts +36 -0
- package/dist/src/lib/Components/Commands/exports/Native/StoreTestResults.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/Workspace/Attach.d.ts +36 -0
- package/dist/src/lib/Components/Commands/exports/Native/Workspace/Attach.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/Workspace/Persist.d.ts +40 -0
- package/dist/src/lib/Components/Commands/exports/Native/Workspace/Persist.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/Workspace/index.d.ts +3 -0
- package/dist/src/lib/Components/Commands/exports/Native/Workspace/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Reusable/ReusableCommand.d.ts +42 -0
- package/dist/src/lib/Components/Commands/exports/Reusable/ReusableCommand.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Reusable/ReusedCommand.d.ts +29 -0
- package/dist/src/lib/Components/Commands/exports/Reusable/ReusedCommand.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Reusable/index.d.ts +4 -0
- package/dist/src/lib/Components/Commands/exports/Reusable/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/index.d.ts +9 -0
- package/dist/src/lib/Components/Commands/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/types/Command.types.d.ts +39 -0
- package/dist/src/lib/Components/Commands/types/Command.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/exports/DockerExecutor.d.ts +45 -0
- package/dist/src/lib/Components/Executors/exports/DockerExecutor.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/exports/DockerImage.d.ts +46 -0
- package/dist/src/lib/Components/Executors/exports/DockerImage.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/exports/Executor.d.ts +24 -0
- package/dist/src/lib/Components/Executors/exports/Executor.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/exports/MacOSExecutor.d.ts +20 -0
- package/dist/src/lib/Components/Executors/exports/MacOSExecutor.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/exports/MachineExecutor.d.ts +28 -0
- package/dist/src/lib/Components/Executors/exports/MachineExecutor.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/exports/ReusableExecutor.d.ts +38 -0
- package/dist/src/lib/Components/Executors/exports/ReusableExecutor.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/exports/ReusedExecutor.d.ts +37 -0
- package/dist/src/lib/Components/Executors/exports/ReusedExecutor.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/exports/WindowsExecutor.d.ts +23 -0
- package/dist/src/lib/Components/Executors/exports/WindowsExecutor.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/index.d.ts +10 -0
- package/dist/src/lib/Components/Executors/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/types/DockerExecutor.types.d.ts +18 -0
- package/dist/src/lib/Components/Executors/types/DockerExecutor.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/types/Executor.types.d.ts +63 -0
- package/dist/src/lib/Components/Executors/types/Executor.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/types/ExecutorParameters.types.d.ts +21 -0
- package/dist/src/lib/Components/Executors/types/ExecutorParameters.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/types/MacOSExecutor.types.d.ts +16 -0
- package/dist/src/lib/Components/Executors/types/MacOSExecutor.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/types/MachineExecutor.types.d.ts +22 -0
- package/dist/src/lib/Components/Executors/types/MachineExecutor.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/types/ReusableExecutor.types.d.ts +40 -0
- package/dist/src/lib/Components/Executors/types/ReusableExecutor.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/types/WindowsExecutor.types.d.ts +19 -0
- package/dist/src/lib/Components/Executors/types/WindowsExecutor.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/types/index.d.ts +8 -0
- package/dist/src/lib/Components/Executors/types/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Job/exports/ParameterizedJob.d.ts +37 -0
- package/dist/src/lib/Components/Job/exports/ParameterizedJob.d.ts.map +1 -0
- package/dist/src/lib/Components/Job/index.d.ts +71 -0
- package/dist/src/lib/Components/Job/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Job/types/Job.types.d.ts +45 -0
- package/dist/src/lib/Components/Job/types/Job.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/Condition.d.ts +10 -0
- package/dist/src/lib/Components/Logic/exports/Condition.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/Conditional.d.ts +10 -0
- package/dist/src/lib/Components/Logic/exports/Conditional.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/Evaluable.d.ts +8 -0
- package/dist/src/lib/Components/Logic/exports/Evaluable.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/When.d.ts +14 -0
- package/dist/src/lib/Components/Logic/exports/When.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/conditions/And.d.ts +15 -0
- package/dist/src/lib/Components/Logic/exports/conditions/And.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/conditions/Equal.d.ts +19 -0
- package/dist/src/lib/Components/Logic/exports/conditions/Equal.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/conditions/Not.d.ts +15 -0
- package/dist/src/lib/Components/Logic/exports/conditions/Not.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/conditions/Or.d.ts +15 -0
- package/dist/src/lib/Components/Logic/exports/conditions/Or.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/conditions/Truthy.d.ts +11 -0
- package/dist/src/lib/Components/Logic/exports/conditions/Truthy.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/conditions/index.d.ts +14 -0
- package/dist/src/lib/Components/Logic/exports/conditions/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/index.d.ts +12 -0
- package/dist/src/lib/Components/Logic/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/types/index.d.ts +17 -0
- package/dist/src/lib/Components/Logic/types/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Parameters/exports/CustomEnumParameter.d.ts +20 -0
- package/dist/src/lib/Components/Parameters/exports/CustomEnumParameter.d.ts.map +1 -0
- package/dist/src/lib/Components/Parameters/exports/CustomParameter.d.ts +27 -0
- package/dist/src/lib/Components/Parameters/exports/CustomParameter.d.ts.map +1 -0
- package/dist/src/lib/Components/Parameters/exports/CustomParameterList.d.ts +30 -0
- package/dist/src/lib/Components/Parameters/exports/CustomParameterList.d.ts.map +1 -0
- package/dist/src/lib/Components/Parameters/exports/Parameterized.d.ts +13 -0
- package/dist/src/lib/Components/Parameters/exports/Parameterized.d.ts.map +1 -0
- package/dist/src/lib/Components/Parameters/index.d.ts +5 -0
- package/dist/src/lib/Components/Parameters/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Parameters/types/ComponentParameters.types.d.ts +24 -0
- package/dist/src/lib/Components/Parameters/types/ComponentParameters.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Parameters/types/CustomParameterLiterals.types.d.ts +26 -0
- package/dist/src/lib/Components/Parameters/types/CustomParameterLiterals.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Parameters/types/index.d.ts +103 -0
- package/dist/src/lib/Components/Parameters/types/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Reusable/index.d.ts +5 -0
- package/dist/src/lib/Components/Reusable/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Workflow/exports/Workflow.d.ts +49 -0
- package/dist/src/lib/Components/Workflow/exports/Workflow.d.ts.map +1 -0
- package/dist/src/lib/Components/Workflow/exports/WorkflowJob.d.ts +19 -0
- package/dist/src/lib/Components/Workflow/exports/WorkflowJob.d.ts.map +1 -0
- package/dist/src/lib/Components/Workflow/exports/WorkflowJobAbstract.d.ts +19 -0
- package/dist/src/lib/Components/Workflow/exports/WorkflowJobAbstract.d.ts.map +1 -0
- package/dist/src/lib/Components/Workflow/exports/WorkflowJobApproval.d.ts +9 -0
- package/dist/src/lib/Components/Workflow/exports/WorkflowJobApproval.d.ts.map +1 -0
- package/dist/src/lib/Components/Workflow/index.d.ts +5 -0
- package/dist/src/lib/Components/Workflow/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Workflow/types/Workflow.types.d.ts +30 -0
- package/dist/src/lib/Components/Workflow/types/Workflow.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Workflow/types/WorkflowJob.types.d.ts +55 -0
- package/dist/src/lib/Components/Workflow/types/WorkflowJob.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Workflow/types/index.d.ts +3 -0
- package/dist/src/lib/Components/Workflow/types/index.d.ts.map +1 -0
- package/dist/src/lib/Components/index.d.ts +20 -0
- package/dist/src/lib/Components/index.d.ts.map +1 -0
- package/dist/src/lib/Config/Pipeline/Git.d.ts +25 -0
- package/dist/src/lib/Config/Pipeline/Git.d.ts.map +1 -0
- package/dist/src/lib/Config/Pipeline/Project.d.ts +18 -0
- package/dist/src/lib/Config/Pipeline/Project.d.ts.map +1 -0
- package/dist/src/lib/Config/Pipeline/index.d.ts +35 -0
- package/dist/src/lib/Config/Pipeline/index.d.ts.map +1 -0
- package/dist/src/lib/Config/exports/Mapping.d.ts +56 -0
- package/dist/src/lib/Config/exports/Mapping.d.ts.map +1 -0
- package/dist/src/lib/Config/index.d.ts +111 -0
- package/dist/src/lib/Config/index.d.ts.map +1 -0
- package/dist/src/lib/Config/types/Mapping.types.d.ts +25 -0
- package/dist/src/lib/Config/types/Mapping.types.d.ts.map +1 -0
- package/dist/src/lib/Config/types/index.d.ts +65 -0
- package/dist/src/lib/Config/types/index.d.ts.map +1 -0
- package/dist/src/lib/Orb/exports/OrbDefinition.d.ts +21 -0
- package/dist/src/lib/Orb/exports/OrbDefinition.d.ts.map +1 -0
- package/dist/src/lib/Orb/exports/OrbImport.d.ts +24 -0
- package/dist/src/lib/Orb/exports/OrbImport.d.ts.map +1 -0
- package/dist/src/lib/Orb/exports/OrbRef.d.ts +19 -0
- package/dist/src/lib/Orb/exports/OrbRef.d.ts.map +1 -0
- package/dist/src/lib/Orb/index.d.ts +4 -0
- package/dist/src/lib/Orb/index.d.ts.map +1 -0
- package/dist/src/lib/Orb/types/Orb.types.d.ts +18 -0
- package/dist/src/lib/Orb/types/Orb.types.d.ts.map +1 -0
- package/dist/src/lib/Types/index.d.ts +8 -0
- package/dist/src/lib/Types/index.d.ts.map +1 -0
- package/package.json +5 -2
- package/CODE_OF_CONDUCT.md +0 -76
- package/commitlint.config.js +0 -1
- package/package-version.json +0 -1
- package/tsconfig.webpack.json +0 -4
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StringParameter } from '../../Parameters/types';
|
|
2
|
+
import { AnyResourceClass } from './Executor.types';
|
|
3
|
+
/**
|
|
4
|
+
* A JSON representation of the Windows Executor Schema
|
|
5
|
+
* To be converted to YAML
|
|
6
|
+
*/
|
|
7
|
+
export declare type WindowsExecutorShape = {
|
|
8
|
+
image: StringParameter;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The available Windows Resource Classes.
|
|
12
|
+
* @see {@link https://circleci.com/docs/2.0/configuration-reference/#windows-executor} for specifications of each class.
|
|
13
|
+
*/
|
|
14
|
+
export declare type WindowsResourceClass = Extract<AnyResourceClass, 'medium' | 'large' | 'xlarge' | '2xlarge'>;
|
|
15
|
+
/**
|
|
16
|
+
* Completed resource class after generation, including the windows prefix.
|
|
17
|
+
*/
|
|
18
|
+
export declare type WindowsResourceClassGenerated = 'windows.medium' | 'windows.large' | 'windows.xlarge' | 'windows.2xlarge';
|
|
19
|
+
//# sourceMappingURL=WindowsExecutor.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WindowsExecutor.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Executors/types/WindowsExecutor.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;;GAGG;AACH,oBAAY,oBAAoB,GAAG;IACjC,KAAK,EAAE,eAAe,CAAC;CACxB,CAAC;AAEF;;;GAGG;AACH,oBAAY,oBAAoB,GAAG,OAAO,CACxC,gBAAgB,EAChB,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAC1C,CAAC;AAEF;;GAEG;AACH,oBAAY,6BAA6B,GACrC,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as docker from './DockerExecutor.types';
|
|
2
|
+
import * as executor from './Executor.types';
|
|
3
|
+
import * as machine from './MachineExecutor.types';
|
|
4
|
+
import * as macos from './MacOSExecutor.types';
|
|
5
|
+
import * as windows from './WindowsExecutor.types';
|
|
6
|
+
import * as reusable from './ReusableExecutor.types';
|
|
7
|
+
export { docker, machine, macos, windows, executor, reusable };
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Executors/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AACnD,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAC;AAC/C,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AACnD,OAAO,KAAK,QAAQ,MAAM,0BAA0B,CAAC;AAErD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Job } from '..';
|
|
2
|
+
import { Command } from '../../Commands/exports/Command';
|
|
3
|
+
import { CustomParametersList } from '../../Parameters';
|
|
4
|
+
import { Parameterized } from '../../Parameters/exports/Parameterized';
|
|
5
|
+
import { JobParameterLiteral } from '../../Parameters/types/CustomParameterLiterals.types';
|
|
6
|
+
import { AnyExecutor, JobOptionalProperties, ParameterizedJobContents } from '../types/Job.types';
|
|
7
|
+
/**
|
|
8
|
+
* Parameterized jobs are a type of Job which defines the parameters it can accept.
|
|
9
|
+
* This is the reusable alternative to the Job class, since parameters allow for
|
|
10
|
+
* more control and recyclability to the workflow.
|
|
11
|
+
*/
|
|
12
|
+
declare class ParameterizedJob extends Job implements Parameterized<JobParameterLiteral> {
|
|
13
|
+
/**
|
|
14
|
+
* The list of parameters this job can accept.
|
|
15
|
+
*/
|
|
16
|
+
parameters: CustomParametersList<JobParameterLiteral>;
|
|
17
|
+
constructor(name: string, executor: AnyExecutor, parameters?: CustomParametersList<JobParameterLiteral>, steps?: Command[], properties?: JobOptionalProperties);
|
|
18
|
+
/**
|
|
19
|
+
* Generate the internal contents of this job.
|
|
20
|
+
* @returns The job contents in it's generated shape.
|
|
21
|
+
*/
|
|
22
|
+
generateContents(flatten?: boolean): ParameterizedJobContents;
|
|
23
|
+
/**
|
|
24
|
+
* Define another parameter that this job will be able to accept.
|
|
25
|
+
* Chainable.
|
|
26
|
+
* @param name - The name of the parameter.
|
|
27
|
+
* @param type - The type of parameter being added to this job.
|
|
28
|
+
* @param defaultValue - The default value of the parameter.
|
|
29
|
+
* @param description - The description of the parameter.
|
|
30
|
+
* @param enumValues - The list of possible values for the parameter. type must be set to 'enum'.
|
|
31
|
+
*
|
|
32
|
+
* @returns this instance.
|
|
33
|
+
*/
|
|
34
|
+
defineParameter(name: string, type: JobParameterLiteral, defaultValue?: unknown, description?: string, enumValues?: string[]): ParameterizedJob;
|
|
35
|
+
}
|
|
36
|
+
export { ParameterizedJob };
|
|
37
|
+
//# sourceMappingURL=ParameterizedJob.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParameterizedJob.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Job/exports/ParameterizedJob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAE5B;;;;GAIG;AACH,cAAM,gBACJ,SAAQ,GACR,YAAW,aAAa,CAAC,mBAAmB,CAAC;IAE7C;;OAEG;IACH,UAAU,EAAE,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;gBAGpD,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,WAAW,EACrB,UAAU,CAAC,EAAE,oBAAoB,CAAC,mBAAmB,CAAC,EACtD,KAAK,CAAC,EAAE,OAAO,EAAE,EACjB,UAAU,CAAC,EAAE,qBAAqB;IAMpC;;;OAGG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,wBAAwB;IAO7D;;;;;;;;;;OAUG;IACH,eAAe,CACb,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,mBAAmB,EACzB,YAAY,CAAC,EAAE,OAAO,EACtB,WAAW,CAAC,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,MAAM,EAAE,GACpB,gBAAgB;CAKpB;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { GenerableType } from '../../Config/exports/Mapping';
|
|
2
|
+
import { Command } from '../Commands/exports/Command';
|
|
3
|
+
import { Executable } from '../Executors/types/ExecutorParameters.types';
|
|
4
|
+
import { Generable } from '../index';
|
|
5
|
+
import { BooleanParameter, EnvironmentParameter, IntegerParameter, StringParameter } from '../Parameters/types';
|
|
6
|
+
import { AnyExecutor, JobContentsShape, JobOptionalProperties, JobsShape } from './types/Job.types';
|
|
7
|
+
/**
|
|
8
|
+
* Jobs define a collection of steps to be run within a given executor, and are orchestrated using Workflows.
|
|
9
|
+
*/
|
|
10
|
+
export declare class Job implements Generable, Executable {
|
|
11
|
+
/**
|
|
12
|
+
* The name of the current Job.
|
|
13
|
+
*/
|
|
14
|
+
name: StringParameter;
|
|
15
|
+
/**
|
|
16
|
+
* The reusable executor to use for this job. The Executor must have already been instantiated and added to the config.
|
|
17
|
+
*/
|
|
18
|
+
executor: AnyExecutor;
|
|
19
|
+
/**
|
|
20
|
+
* A list of Commands to execute within the job in the order which they were added.
|
|
21
|
+
*/
|
|
22
|
+
steps: Command[];
|
|
23
|
+
/**
|
|
24
|
+
* Number of parallel instances of this job to run (defaults to 1 if undefined)
|
|
25
|
+
*/
|
|
26
|
+
parallelism: IntegerParameter | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to use CircleCI IP Ranges for the job (defaults to false if undefined)
|
|
29
|
+
*/
|
|
30
|
+
circleci_ip_ranges: BooleanParameter | undefined;
|
|
31
|
+
environment?: EnvironmentParameter;
|
|
32
|
+
shell?: StringParameter;
|
|
33
|
+
working_directory?: StringParameter;
|
|
34
|
+
/**
|
|
35
|
+
* Instantiate a CircleCI Job
|
|
36
|
+
* @param name - Name your job with a unique identifier
|
|
37
|
+
* @param executor - The reusable executor to use for this job. The Executor must have already been instantiated and added to the config.
|
|
38
|
+
* @param steps - A list of Commands to execute within the job in the order which they were added.
|
|
39
|
+
* @param properties - Additional optional properties to further configure the job.
|
|
40
|
+
* @see {@link https://circleci.com/docs/2.0/configuration-reference/?section=configuration#jobs}
|
|
41
|
+
*/
|
|
42
|
+
constructor(name: string, executor: AnyExecutor, steps?: Command[], properties?: JobOptionalProperties);
|
|
43
|
+
/**
|
|
44
|
+
* Generates the contents of the Job.
|
|
45
|
+
* @returns The generated JSON for the Job's contents.
|
|
46
|
+
*/
|
|
47
|
+
generateContents(flatten?: boolean): JobContentsShape;
|
|
48
|
+
/**
|
|
49
|
+
* Generate Job schema
|
|
50
|
+
* @returns The generated JSON for the Job.
|
|
51
|
+
*/
|
|
52
|
+
generate(flatten?: boolean): JobsShape;
|
|
53
|
+
/**
|
|
54
|
+
* Add steps to the current Job. Chainable.
|
|
55
|
+
* @param command - Command to use for step
|
|
56
|
+
*/
|
|
57
|
+
addStep(command: Command): this;
|
|
58
|
+
/**
|
|
59
|
+
* Add an environment variable to the job.
|
|
60
|
+
* This will be set in plain-text via the exported config file.
|
|
61
|
+
* Consider using project-level environment variables or a context for sensitive information.
|
|
62
|
+
* @see {@link https://circleci.com/docs/env-vars}
|
|
63
|
+
* @example
|
|
64
|
+
* ```
|
|
65
|
+
* myJob.addEnvVar('MY_VAR', 'my value');
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
addEnvVar(name: string, value: string): this;
|
|
69
|
+
get generableType(): GenerableType;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Job/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,qBAAqB,EACrB,SAAS,EACV,MAAM,mBAAmB,CAAC;AAE3B;;GAEG;AACH,qBAAa,GAAI,YAAW,SAAS,EAAE,UAAU;IAC/C;;OAEG;IACH,IAAI,EAAE,eAAe,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB;;OAEG;IACH,WAAW,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,kBAAkB,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAIjD,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,iBAAiB,CAAC,EAAE,eAAe,CAAC;IAEpC;;;;;;;OAOG;gBAED,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,WAAW,EACrB,KAAK,GAAE,OAAO,EAAO,EACrB,UAAU,CAAC,EAAE,qBAAqB;IAYpC;;;OAGG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,gBAAgB;IAgBrD;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS;IAMtC;;;OAGG;IACH,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAK/B;;;;;;;;;OASG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAW5C,IAAI,aAAa,IAAI,aAAa,CAEjC;CACF"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Command } from '../../Commands/exports/Command';
|
|
2
|
+
import { Executor } from '../../Executors';
|
|
3
|
+
import { ReusedExecutor } from '../../Executors/exports/ReusedExecutor';
|
|
4
|
+
import { AnyExecutorShape, ExecutableProperties } from '../../Executors/types/Executor.types';
|
|
5
|
+
import { CustomParametersList } from '../../Parameters';
|
|
6
|
+
import { CustomParametersListShape, EnvironmentParameter } from '../../Parameters/types';
|
|
7
|
+
import { JobParameterLiteral } from '../../Parameters/types/CustomParameterLiterals.types';
|
|
8
|
+
export declare type JobContentsShape = {
|
|
9
|
+
steps: unknown[];
|
|
10
|
+
parallelism?: number;
|
|
11
|
+
circleci_ip_ranges?: boolean;
|
|
12
|
+
} & AnyExecutorShape & JobEnvironmentShape;
|
|
13
|
+
export declare type JobsShape = {
|
|
14
|
+
[key: string]: JobContentsShape;
|
|
15
|
+
};
|
|
16
|
+
export declare type JobEnvironmentShape = {
|
|
17
|
+
environment?: EnvironmentParameter;
|
|
18
|
+
};
|
|
19
|
+
export declare type AnyExecutor = ReusedExecutor | Executor;
|
|
20
|
+
export declare type ParameterizedJobContents = JobContentsShape & {
|
|
21
|
+
parameters: CustomParametersListShape;
|
|
22
|
+
};
|
|
23
|
+
export declare type JobDependencies = {
|
|
24
|
+
executor: AnyExecutor;
|
|
25
|
+
steps: Command[];
|
|
26
|
+
parametersList?: CustomParametersList<JobParameterLiteral>;
|
|
27
|
+
};
|
|
28
|
+
export declare type JobOptionalProperties = {
|
|
29
|
+
parallelism?: number;
|
|
30
|
+
circleci_ip_ranges?: boolean;
|
|
31
|
+
} & ExecutableProperties;
|
|
32
|
+
export declare type UnknownJobShape = {
|
|
33
|
+
[key: string]: unknown;
|
|
34
|
+
steps: {
|
|
35
|
+
[key: string]: unknown;
|
|
36
|
+
}[];
|
|
37
|
+
resource_class: string;
|
|
38
|
+
parameters?: {
|
|
39
|
+
[key: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
environment?: {
|
|
42
|
+
[key: string]: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=Job.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Job.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Job/types/Job.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EACL,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAE3F,oBAAY,gBAAgB,GAAG;IAC7B,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,GAAG,gBAAgB,GAClB,mBAAmB,CAAC;AAEtB,oBAAY,SAAS,GAAG;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAC;CACjC,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,WAAW,CAAC,EAAE,oBAAoB,CAAC;CACpC,CAAC;AAEF,oBAAY,WAAW,GAAG,cAAc,GAAG,QAAQ,CAAC;AAEpD,oBAAY,wBAAwB,GAAG,gBAAgB,GAAG;IACxD,UAAU,EAAE,yBAAyB,CAAC;CACvC,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,QAAQ,EAAE,WAAW,CAAC;IACtB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,cAAc,CAAC,EAAE,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;CAC5D,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,GAAG,oBAAoB,CAAC;AAEzB,oBAAY,eAAe,GAAG;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,EAAE,CAAC;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACxC,WAAW,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACzC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Generable } from '../..';
|
|
2
|
+
import { GenerableType } from '../../../Config/exports/Mapping';
|
|
3
|
+
import { AnyConditionShape } from '../types';
|
|
4
|
+
import { Evaluable } from './Evaluable';
|
|
5
|
+
export declare abstract class Condition implements Generable, Evaluable<boolean> {
|
|
6
|
+
abstract evaluate(): boolean;
|
|
7
|
+
abstract generate(flatten?: boolean): AnyConditionShape;
|
|
8
|
+
abstract get generableType(): GenerableType;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=Condition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Condition.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Logic/exports/Condition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,8BAAsB,SAAU,YAAW,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC;IACtE,QAAQ,CAAC,QAAQ,IAAI,OAAO;IAC5B,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,iBAAiB;IACvD,QAAQ,KAAK,aAAa,IAAI,aAAa,CAAC;CAC7C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { When } from './When';
|
|
2
|
+
/**
|
|
3
|
+
Conditional logic interface.
|
|
4
|
+
@see {@link https://circleci.com/docs/2.0/configuration-reference/#logic-statements}
|
|
5
|
+
{@label STATIC_2.1}
|
|
6
|
+
*/
|
|
7
|
+
export interface Conditional {
|
|
8
|
+
when?: When;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=Conditional.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Conditional.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Logic/exports/Conditional.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B;;;;EAIE;AACF,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,IAAI,CAAC;CACb"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GenerableType } from '../../../Config/exports/Mapping';
|
|
2
|
+
/**
|
|
3
|
+
* Interface for evaluating generable component's properties.
|
|
4
|
+
*/
|
|
5
|
+
export interface Evaluable<ResultType> {
|
|
6
|
+
evaluate(ctx?: GenerableType): ResultType;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=Evaluable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Evaluable.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Logic/exports/Evaluable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,SAAS,CAAC,UAAU;IACnC,QAAQ,CAAC,GAAG,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC;CAC3C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Generable } from '../..';
|
|
2
|
+
import { GenerableType } from '../../../Config/exports/Mapping';
|
|
3
|
+
import { AnyConditionShape } from '../types';
|
|
4
|
+
import { Condition } from './Condition';
|
|
5
|
+
/**
|
|
6
|
+
* 2.1 Conditional logic class component.
|
|
7
|
+
*/
|
|
8
|
+
export declare class When implements Generable {
|
|
9
|
+
condition: Condition;
|
|
10
|
+
constructor(condition: Condition);
|
|
11
|
+
generate(): AnyConditionShape;
|
|
12
|
+
get generableType(): GenerableType;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=When.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"When.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Logic/exports/When.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;GAEG;AACH,qBAAa,IAAK,YAAW,SAAS;IACpC,SAAS,EAAE,SAAS,CAAC;gBAET,SAAS,EAAE,SAAS;IAIhC,QAAQ,IAAI,iBAAiB;IAI7B,IAAI,aAAa,IAAI,aAAa,CAEjC;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GenerableType } from '../../../../Config/exports/Mapping';
|
|
2
|
+
import { AndConditionShape, ConditionOrValue } from '../../types';
|
|
3
|
+
import { Condition } from '../Condition';
|
|
4
|
+
/**
|
|
5
|
+
* True if all arguments are truthy.
|
|
6
|
+
* @see {@link https://circleci.com/docs/configuration-reference#logic-statements}
|
|
7
|
+
*/
|
|
8
|
+
export declare class And extends Condition {
|
|
9
|
+
conditions: Condition[];
|
|
10
|
+
constructor(conditions: ConditionOrValue[]);
|
|
11
|
+
evaluate(): boolean;
|
|
12
|
+
generate(): AndConditionShape;
|
|
13
|
+
get generableType(): GenerableType;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=And.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"And.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/Logic/exports/conditions/And.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC;;;GAGG;AACH,qBAAa,GAAI,SAAQ,SAAS;IAChC,UAAU,EAAE,SAAS,EAAE,CAAC;gBAEZ,UAAU,EAAE,gBAAgB,EAAE;IAK1C,QAAQ,IAAI,OAAO;IAInB,QAAQ,IAAI,iBAAiB;IAI7B,IAAI,aAAa,IAAI,aAAa,CAEjC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GenerableType } from '../../../../Config/exports/Mapping';
|
|
2
|
+
import { ConditionValue, EqualConditionShape } from '../../types';
|
|
3
|
+
import { Condition } from '../Condition';
|
|
4
|
+
/**
|
|
5
|
+
* True if all arguments evaluate to equal values.
|
|
6
|
+
* @see {@link https://circleci.com/docs/configuration-reference#logic-statements}
|
|
7
|
+
*/
|
|
8
|
+
export declare class Equal extends Condition {
|
|
9
|
+
private values;
|
|
10
|
+
constructor(values: ConditionValue[]);
|
|
11
|
+
/**
|
|
12
|
+
* Ensure each condition is equal
|
|
13
|
+
* @returns whether all conditions are equal
|
|
14
|
+
*/
|
|
15
|
+
evaluate(): boolean;
|
|
16
|
+
generate(): EqualConditionShape;
|
|
17
|
+
get generableType(): GenerableType;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=Equal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Equal.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/Logic/exports/conditions/Equal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC;;;GAGG;AACH,qBAAa,KAAM,SAAQ,SAAS;IACtB,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,cAAc,EAAE;IAI5C;;;OAGG;IACH,QAAQ,IAAI,OAAO;IAanB,QAAQ,IAAI,mBAAmB;IAM/B,IAAI,aAAa,IAAI,aAAa,CAEjC;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GenerableType } from '../../../../Config/exports/Mapping';
|
|
2
|
+
import { ConditionOrValue, NotConditionShape } from '../../types';
|
|
3
|
+
import { Condition } from '../Condition';
|
|
4
|
+
/**
|
|
5
|
+
* True the argument is not truthy.
|
|
6
|
+
* @see {@link https://circleci.com/docs/configuration-reference#logic-statements}
|
|
7
|
+
*/
|
|
8
|
+
export declare class Not extends Condition {
|
|
9
|
+
condition: Condition;
|
|
10
|
+
constructor(condition: ConditionOrValue);
|
|
11
|
+
evaluate(): boolean;
|
|
12
|
+
generate(): NotConditionShape;
|
|
13
|
+
get generableType(): GenerableType;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=Not.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Not.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/Logic/exports/conditions/Not.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC;;;GAGG;AACH,qBAAa,GAAI,SAAQ,SAAS;IAChC,SAAS,EAAE,SAAS,CAAC;gBAET,SAAS,EAAE,gBAAgB;IAKvC,QAAQ,IAAI,OAAO;IAInB,QAAQ,IAAI,iBAAiB;IAI7B,IAAI,aAAa,IAAI,aAAa,CAEjC;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GenerableType } from '../../../../Config/exports/Mapping';
|
|
2
|
+
import { ConditionOrValue, OrConditionShape } from '../../types';
|
|
3
|
+
import { Condition } from '../Condition';
|
|
4
|
+
/**
|
|
5
|
+
* True if any argument is truthy.
|
|
6
|
+
* @see {@link https://circleci.com/docs/configuration-reference#logic-statements}
|
|
7
|
+
*/
|
|
8
|
+
export declare class Or extends Condition {
|
|
9
|
+
conditions: Condition[];
|
|
10
|
+
constructor(conditions: ConditionOrValue[]);
|
|
11
|
+
evaluate(): boolean;
|
|
12
|
+
generate(): OrConditionShape;
|
|
13
|
+
get generableType(): GenerableType;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=Or.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Or.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/Logic/exports/conditions/Or.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC;;;GAGG;AACH,qBAAa,EAAG,SAAQ,SAAS;IAC/B,UAAU,EAAE,SAAS,EAAE,CAAC;gBAEZ,UAAU,EAAE,gBAAgB,EAAE;IAK1C,QAAQ,IAAI,OAAO;IAUnB,QAAQ,IAAI,gBAAgB;IAI5B,IAAI,aAAa,IAAI,aAAa,CAEjC;CACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GenerableType } from '../../../../Config/exports/Mapping';
|
|
2
|
+
import { ConditionValue } from '../../types';
|
|
3
|
+
import { Condition } from '../Condition';
|
|
4
|
+
export declare class Truthy extends Condition {
|
|
5
|
+
private value?;
|
|
6
|
+
constructor(value?: ConditionValue | undefined);
|
|
7
|
+
evaluate(): boolean;
|
|
8
|
+
generate(): ConditionValue | undefined;
|
|
9
|
+
get generableType(): GenerableType;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=Truthy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Truthy.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/Logic/exports/conditions/Truthy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,qBAAa,MAAO,SAAQ,SAAS;IACvB,OAAO,CAAC,KAAK,CAAC;gBAAN,KAAK,CAAC,4BAAgB;IAI1C,QAAQ,IAAI,OAAO;IAQnB,QAAQ,IAAI,cAAc,GAAG,SAAS;IAItC,IAAI,aAAa,IAAI,aAAa,CAEjC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ConditionOrValue } from '../../types';
|
|
2
|
+
import { Condition } from '../Condition';
|
|
3
|
+
import { And } from './And';
|
|
4
|
+
import { Equal } from './Equal';
|
|
5
|
+
import { Not } from './Not';
|
|
6
|
+
import { Or } from './Or';
|
|
7
|
+
import { Truthy } from './Truthy';
|
|
8
|
+
/**
|
|
9
|
+
* If a value is passed, it will be wrapped by a truthy condition.
|
|
10
|
+
* Otherwise, the condition's identity will be returned
|
|
11
|
+
*/
|
|
12
|
+
export declare function identityOrTruthy(conditionOrValue: ConditionOrValue): Condition;
|
|
13
|
+
export { Condition, And, Equal, Not, Or, Truthy };
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/Logic/exports/conditions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,gBAAgB,EAAE,gBAAgB,GACjC,SAAS,CAMX;AAED,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { And, Equal, Not, Or } from './exports/conditions';
|
|
2
|
+
import { ConditionOrValue, ConditionValue } from './types';
|
|
3
|
+
export declare function and(...conditions: ConditionOrValue[]): And;
|
|
4
|
+
export declare function or(...conditions: ConditionOrValue[]): Or;
|
|
5
|
+
export declare function equal(...values: ConditionValue[]): Equal;
|
|
6
|
+
export declare function not(condition: ConditionOrValue): Not;
|
|
7
|
+
/**
|
|
8
|
+
* Conditional classes and utility functions
|
|
9
|
+
*/
|
|
10
|
+
export * as conditional from './exports/conditions';
|
|
11
|
+
export { When } from './exports/When';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Logic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE3D,wBAAgB,GAAG,CAAC,GAAG,UAAU,EAAE,gBAAgB,EAAE,GAAG,GAAG,CAE1D;AAED,wBAAgB,EAAE,CAAC,GAAG,UAAU,EAAE,gBAAgB,EAAE,GAAG,EAAE,CAExD;AAED,wBAAgB,KAAK,CAAC,GAAG,MAAM,EAAE,cAAc,EAAE,GAAG,KAAK,CAExD;AAED,wBAAgB,GAAG,CAAC,SAAS,EAAE,gBAAgB,GAAG,GAAG,CAEpD;AAED;;GAEG;AACH,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Condition } from '../exports/conditions';
|
|
2
|
+
export declare type AndConditionShape = {
|
|
3
|
+
and: AnyConditionShape[];
|
|
4
|
+
};
|
|
5
|
+
export declare type OrConditionShape = {
|
|
6
|
+
or: AnyConditionShape[];
|
|
7
|
+
};
|
|
8
|
+
export declare type NotConditionShape = {
|
|
9
|
+
not: AnyConditionShape;
|
|
10
|
+
};
|
|
11
|
+
export declare type EqualConditionShape = {
|
|
12
|
+
equal: unknown[];
|
|
13
|
+
};
|
|
14
|
+
export declare type AnyConditionShape = AndConditionShape | OrConditionShape | NotConditionShape | EqualConditionShape | unknown;
|
|
15
|
+
export declare type ConditionValue = string | boolean | number;
|
|
16
|
+
export declare type ConditionOrValue = Condition | ConditionValue;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Logic/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,oBAAY,iBAAiB,GAAG;IAC9B,GAAG,EAAE,iBAAiB,EAAE,CAAC;CAC1B,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,EAAE,EAAE,iBAAiB,EAAE,CAAC;CACzB,CAAC;AACF,oBAAY,iBAAiB,GAAG;IAC9B,GAAG,EAAE,iBAAiB,CAAC;CACxB,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,KAAK,EAAE,OAAO,EAAE,CAAC;CAClB,CAAC;AAEF,oBAAY,iBAAiB,GACzB,iBAAiB,GACjB,gBAAgB,GAChB,iBAAiB,GACjB,mBAAmB,GACnB,OAAO,CAAC;AAEZ,oBAAY,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAEvD,oBAAY,gBAAgB,GAAG,SAAS,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { GenerableType } from '../../../Config/exports/Mapping';
|
|
2
|
+
import { CustomEnumParameterContentsShape } from '../types';
|
|
3
|
+
import { EnumParameterLiteral } from '../types/CustomParameterLiterals.types';
|
|
4
|
+
import { CustomParameter } from './CustomParameter';
|
|
5
|
+
/**
|
|
6
|
+
* An enum parameter can be passed to a component.
|
|
7
|
+
* @param name - The name of the parameter.
|
|
8
|
+
* @param enumValues - The values of the enum.
|
|
9
|
+
* @param defaultValue - The optional default value of the parameter.
|
|
10
|
+
* Optional, but will be marked as required if not provided.
|
|
11
|
+
* @param description - An optional description of the parameter.
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export declare class CustomEnumParameter extends CustomParameter<EnumParameterLiteral> {
|
|
15
|
+
enumValues: string[];
|
|
16
|
+
constructor(name: string, enumValues: string[], defaultValue?: unknown, description?: string);
|
|
17
|
+
generateContents(): CustomEnumParameterContentsShape;
|
|
18
|
+
get generableType(): GenerableType;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=CustomEnumParameter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomEnumParameter.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Parameters/exports/CustomEnumParameter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;GAQG;AACH,qBAAa,mBAAoB,SAAQ,eAAe,CAAC,oBAAoB,CAAC;IAC5E,UAAU,EAAE,MAAM,EAAE,CAAC;gBAGnB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAAE,EACpB,YAAY,CAAC,EAAE,OAAO,EACtB,WAAW,CAAC,EAAE,MAAM;IAMtB,gBAAgB,IAAI,gCAAgC;IAOpD,IAAI,aAAa,IAAI,aAAa,CAEjC;CACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Generable } from '../..';
|
|
2
|
+
import { GenerableType } from '../../../Config/exports/Mapping';
|
|
3
|
+
import { CustomParameterContentsShape, CustomParameterShape } from '../types';
|
|
4
|
+
import { AnyParameterLiteral } from '../types/CustomParameterLiterals.types';
|
|
5
|
+
/**
|
|
6
|
+
* Accepted parameters can be assigned to a component.
|
|
7
|
+
* This is the type definition of the parameter, and does not store the value.
|
|
8
|
+
* Components which accept parameters will have a {@link defineParameter} implementation.
|
|
9
|
+
*
|
|
10
|
+
* @param name - The name of the parameter.
|
|
11
|
+
* @param type - The type of the parameter.
|
|
12
|
+
* If using an enum, use the {@link CustomEnumParameter} class.
|
|
13
|
+
* @param defaultValue - The default value of the parameter.
|
|
14
|
+
* @param description - A description of the parameter.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export declare class CustomParameter<ParameterTypeLiteral extends AnyParameterLiteral> implements Generable {
|
|
18
|
+
name: string;
|
|
19
|
+
type: ParameterTypeLiteral;
|
|
20
|
+
defaultValue?: unknown;
|
|
21
|
+
description?: string;
|
|
22
|
+
constructor(name: string, type: ParameterTypeLiteral, defaultValue?: unknown, description?: string);
|
|
23
|
+
generate(): CustomParameterShape<ParameterTypeLiteral>;
|
|
24
|
+
generateContents(): CustomParameterContentsShape<ParameterTypeLiteral>;
|
|
25
|
+
get generableType(): GenerableType;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=CustomParameter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomParameter.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Parameters/exports/CustomParameter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAGhE,OAAO,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE7E;;;;;;;;;;;GAWG;AACH,qBAAa,eAAe,CAAC,oBAAoB,SAAS,mBAAmB,CAC3E,YAAW,SAAS;IAEpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,oBAAoB,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;gBAGnB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,oBAAoB,EAC1B,YAAY,CAAC,EAAE,OAAO,EACtB,WAAW,CAAC,EAAE,MAAM;IAQtB,QAAQ,IAAI,oBAAoB,CAAC,oBAAoB,CAAC;IAMtD,gBAAgB,IAAI,4BAA4B,CAAC,oBAAoB,CAAC;IAkBtE,IAAI,aAAa,IAAI,aAAa,CAEjC;CACF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CustomParameter } from '..';
|
|
2
|
+
import { Generable } from '../..';
|
|
3
|
+
import { GenerableType } from '../../../Config/exports/Mapping';
|
|
4
|
+
import { AnyParameterLiteral } from '../types/CustomParameterLiterals.types';
|
|
5
|
+
import { CustomParametersListShape } from '../types';
|
|
6
|
+
/**
|
|
7
|
+
* A list that can be added to a component.
|
|
8
|
+
*
|
|
9
|
+
* For use in {@link ParameterizedComponent}
|
|
10
|
+
*
|
|
11
|
+
* {@label STATIC_2.1}
|
|
12
|
+
*/
|
|
13
|
+
export declare class CustomParametersList<ParameterTypeLiteral extends AnyParameterLiteral> implements Generable {
|
|
14
|
+
parameters: CustomParameter<ParameterTypeLiteral>[];
|
|
15
|
+
constructor(parameters?: CustomParameter<ParameterTypeLiteral>[]);
|
|
16
|
+
generate(): CustomParametersListShape;
|
|
17
|
+
[Symbol.iterator](): IterableIterator<CustomParameter<ParameterTypeLiteral>>;
|
|
18
|
+
/**
|
|
19
|
+
* Define a parameter to be available to the workflow job. Useful for static configurations.
|
|
20
|
+
* @param name - name of the parameter
|
|
21
|
+
* @param type - the literal type of the parameter
|
|
22
|
+
* @param defaultValue - optional default value of parameter. If this is not provided, the parameter will be required.
|
|
23
|
+
* @param description - optional description of parameter
|
|
24
|
+
* @param enumValues - list of selectable enum values. Only applicable for enum type parameters.
|
|
25
|
+
* @returns this for chaining
|
|
26
|
+
*/
|
|
27
|
+
define(name: string, type: ParameterTypeLiteral, defaultValue?: unknown, description?: string, enumValues?: string[]): CustomParameter<ParameterTypeLiteral>;
|
|
28
|
+
get generableType(): GenerableType;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=CustomParameterList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomParameterList.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Parameters/exports/CustomParameterList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,eAAe,EAAE,MAAM,IAAI,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAErD;;;;;;GAMG;AACH,qBAAa,oBAAoB,CAC/B,oBAAoB,SAAS,mBAAmB,CAChD,YAAW,SAAS;IAEpB,UAAU,EAAE,eAAe,CAAC,oBAAoB,CAAC,EAAE,CAAC;gBAExC,UAAU,CAAC,EAAE,eAAe,CAAC,oBAAoB,CAAC,EAAE;IAIhE,QAAQ,IAAI,yBAAyB;IAQrC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,gBAAgB,CAAC,eAAe,CAAC,oBAAoB,CAAC,CAAC;IAI5E;;;;;;;;OAQG;IACH,MAAM,CACJ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,oBAAoB,EAC1B,YAAY,CAAC,EAAE,OAAO,EACtB,WAAW,CAAC,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,MAAM,EAAE,GACpB,eAAe,CAAC,oBAAoB,CAAC;IA4BxC,IAAI,aAAa,IAAI,aAAa,CAEjC;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CustomParametersList } from '..';
|
|
2
|
+
import { Generable } from '../..';
|
|
3
|
+
import { Config } from '../../../Config';
|
|
4
|
+
import { AnyParameterLiteral } from '../types/CustomParameterLiterals.types';
|
|
5
|
+
/**
|
|
6
|
+
* Interface implemented on components to enforce parameter functionality.
|
|
7
|
+
* {@label STATIC_2.1}
|
|
8
|
+
*/
|
|
9
|
+
export interface Parameterized<ParameterTypeLiteral extends AnyParameterLiteral> {
|
|
10
|
+
parameters?: CustomParametersList<ParameterTypeLiteral>;
|
|
11
|
+
defineParameter(name: string, type: ParameterTypeLiteral, defaultValue?: unknown, description?: string, enumValues?: string[]): Generable | Config;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=Parameterized.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Parameterized.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Parameters/exports/Parameterized.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE7E;;;GAGG;AACH,MAAM,WAAW,aAAa,CAC5B,oBAAoB,SAAS,mBAAmB;IAEhD,UAAU,CAAC,EAAE,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;IAExD,eAAe,CACb,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,oBAAoB,EAC1B,YAAY,CAAC,EAAE,OAAO,EACtB,WAAW,CAAC,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,MAAM,EAAE,GACpB,SAAS,GAAG,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CustomEnumParameter } from './exports/CustomEnumParameter';
|
|
2
|
+
import { CustomParameter } from './exports/CustomParameter';
|
|
3
|
+
import { CustomParametersList } from './exports/CustomParameterList';
|
|
4
|
+
export { CustomParametersList, CustomEnumParameter, CustomParameter };
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Parameters/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AnyParameterType, EnumParameter, StringParameter, BooleanParameter, IntegerParameter, EnvironmentParameter, EnvironmentVariableNameParameter, StepsParameter, ExecutorParameter, ListParameter, FilterParameter, MatrixParameter } from '.';
|
|
2
|
+
/**
|
|
3
|
+
* Available parameter types for Jobs
|
|
4
|
+
*/
|
|
5
|
+
export declare type JobParameterTypes = Extract<AnyParameterType, EnumParameter | StringParameter | BooleanParameter | IntegerParameter | EnvironmentVariableNameParameter | StepsParameter | ExecutorParameter | MatrixParameter | FilterParameter>;
|
|
6
|
+
/**
|
|
7
|
+
* Available parameter types for Commands
|
|
8
|
+
*/
|
|
9
|
+
export declare type CommandParameterTypes = Extract<AnyParameterType, EnumParameter | StringParameter | IntegerParameter | BooleanParameter | StepsParameter | EnvironmentVariableNameParameter | EnvironmentParameter | ListParameter>;
|
|
10
|
+
/**
|
|
11
|
+
* Available parameter types for Executors
|
|
12
|
+
*/
|
|
13
|
+
export declare type ExecutorParameterTypes = Extract<AnyParameterType, EnumParameter | StringParameter | IntegerParameter | EnvironmentParameter>;
|
|
14
|
+
/**
|
|
15
|
+
* Available parameter types for Pipelines
|
|
16
|
+
*/
|
|
17
|
+
export declare type PipelineParametersType = Extract<AnyParameterType, StringParameter | IntegerParameter | BooleanParameter | EnumParameter>;
|
|
18
|
+
/**
|
|
19
|
+
* Interface for components parameters
|
|
20
|
+
*/
|
|
21
|
+
export declare type ComponentParameter<ParameterType extends AnyParameterType> = {
|
|
22
|
+
[key: string]: ParameterType | undefined;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=ComponentParameters.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComponentParameters.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Parameters/types/ComponentParameters.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,gCAAgC,EAChC,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,eAAe,EAChB,MAAM,GAAG,CAAC;AAEX;;GAEG;AACH,oBAAY,iBAAiB,GAAG,OAAO,CACrC,gBAAgB,EACd,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,gCAAgC,GAChC,cAAc,GACd,iBAAiB,GACjB,eAAe,GACf,eAAe,CAClB,CAAC;AAEF;;GAEG;AACH,oBAAY,qBAAqB,GAAG,OAAO,CACzC,gBAAgB,EACd,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,gCAAgC,GAChC,oBAAoB,GACpB,aAAa,CAChB,CAAC;AAEF;;GAEG;AACH,oBAAY,sBAAsB,GAAG,OAAO,CAC1C,gBAAgB,EAChB,aAAa,GAAG,eAAe,GAAG,gBAAgB,GAAG,oBAAoB,CAC1E,CAAC;AAEF;;GAEG;AACH,oBAAY,sBAAsB,GAAG,OAAO,CAC1C,gBAAgB,EAChB,eAAe,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,aAAa,CACtE,CAAC;AAEF;;GAEG;AACH,oBAAY,kBAAkB,CAAC,aAAa,SAAS,gBAAgB,IAAI;IACvE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAAC;CAC1C,CAAC"}
|