@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.
Files changed (169) hide show
  1. package/dist/src/index.d.ts +43 -0
  2. package/dist/src/index.d.ts.map +1 -0
  3. package/dist/src/lib/Components/Commands/exports/Command.d.ts +22 -0
  4. package/dist/src/lib/Components/Commands/exports/Command.d.ts.map +1 -0
  5. package/dist/src/lib/Components/Commands/exports/Native/AddSSHKeys.d.ts +36 -0
  6. package/dist/src/lib/Components/Commands/exports/Native/AddSSHKeys.d.ts.map +1 -0
  7. package/dist/src/lib/Components/Commands/exports/Native/Cache/Restore.d.ts +37 -0
  8. package/dist/src/lib/Components/Commands/exports/Native/Cache/Restore.d.ts.map +1 -0
  9. package/dist/src/lib/Components/Commands/exports/Native/Cache/Save.d.ts +44 -0
  10. package/dist/src/lib/Components/Commands/exports/Native/Cache/Save.d.ts.map +1 -0
  11. package/dist/src/lib/Components/Commands/exports/Native/Cache/index.d.ts +3 -0
  12. package/dist/src/lib/Components/Commands/exports/Native/Cache/index.d.ts.map +1 -0
  13. package/dist/src/lib/Components/Commands/exports/Native/Checkout.d.ts +35 -0
  14. package/dist/src/lib/Components/Commands/exports/Native/Checkout.d.ts.map +1 -0
  15. package/dist/src/lib/Components/Commands/exports/Native/Run.d.ts +66 -0
  16. package/dist/src/lib/Components/Commands/exports/Native/Run.d.ts.map +1 -0
  17. package/dist/src/lib/Components/Commands/exports/Native/SetupRemoteDocker.d.ts +45 -0
  18. package/dist/src/lib/Components/Commands/exports/Native/SetupRemoteDocker.d.ts.map +1 -0
  19. package/dist/src/lib/Components/Commands/exports/Native/StoreArtifacts.d.ts +40 -0
  20. package/dist/src/lib/Components/Commands/exports/Native/StoreArtifacts.d.ts.map +1 -0
  21. package/dist/src/lib/Components/Commands/exports/Native/StoreTestResults.d.ts +36 -0
  22. package/dist/src/lib/Components/Commands/exports/Native/StoreTestResults.d.ts.map +1 -0
  23. package/dist/src/lib/Components/Commands/exports/Native/Workspace/Attach.d.ts +36 -0
  24. package/dist/src/lib/Components/Commands/exports/Native/Workspace/Attach.d.ts.map +1 -0
  25. package/dist/src/lib/Components/Commands/exports/Native/Workspace/Persist.d.ts +40 -0
  26. package/dist/src/lib/Components/Commands/exports/Native/Workspace/Persist.d.ts.map +1 -0
  27. package/dist/src/lib/Components/Commands/exports/Native/Workspace/index.d.ts +3 -0
  28. package/dist/src/lib/Components/Commands/exports/Native/Workspace/index.d.ts.map +1 -0
  29. package/dist/src/lib/Components/Commands/exports/Reusable/ReusableCommand.d.ts +42 -0
  30. package/dist/src/lib/Components/Commands/exports/Reusable/ReusableCommand.d.ts.map +1 -0
  31. package/dist/src/lib/Components/Commands/exports/Reusable/ReusedCommand.d.ts +29 -0
  32. package/dist/src/lib/Components/Commands/exports/Reusable/ReusedCommand.d.ts.map +1 -0
  33. package/dist/src/lib/Components/Commands/exports/Reusable/index.d.ts +4 -0
  34. package/dist/src/lib/Components/Commands/exports/Reusable/index.d.ts.map +1 -0
  35. package/dist/src/lib/Components/Commands/index.d.ts +9 -0
  36. package/dist/src/lib/Components/Commands/index.d.ts.map +1 -0
  37. package/dist/src/lib/Components/Commands/types/Command.types.d.ts +39 -0
  38. package/dist/src/lib/Components/Commands/types/Command.types.d.ts.map +1 -0
  39. package/dist/src/lib/Components/Executors/exports/DockerExecutor.d.ts +45 -0
  40. package/dist/src/lib/Components/Executors/exports/DockerExecutor.d.ts.map +1 -0
  41. package/dist/src/lib/Components/Executors/exports/DockerImage.d.ts +46 -0
  42. package/dist/src/lib/Components/Executors/exports/DockerImage.d.ts.map +1 -0
  43. package/dist/src/lib/Components/Executors/exports/Executor.d.ts +24 -0
  44. package/dist/src/lib/Components/Executors/exports/Executor.d.ts.map +1 -0
  45. package/dist/src/lib/Components/Executors/exports/MacOSExecutor.d.ts +20 -0
  46. package/dist/src/lib/Components/Executors/exports/MacOSExecutor.d.ts.map +1 -0
  47. package/dist/src/lib/Components/Executors/exports/MachineExecutor.d.ts +28 -0
  48. package/dist/src/lib/Components/Executors/exports/MachineExecutor.d.ts.map +1 -0
  49. package/dist/src/lib/Components/Executors/exports/ReusableExecutor.d.ts +38 -0
  50. package/dist/src/lib/Components/Executors/exports/ReusableExecutor.d.ts.map +1 -0
  51. package/dist/src/lib/Components/Executors/exports/ReusedExecutor.d.ts +37 -0
  52. package/dist/src/lib/Components/Executors/exports/ReusedExecutor.d.ts.map +1 -0
  53. package/dist/src/lib/Components/Executors/exports/WindowsExecutor.d.ts +23 -0
  54. package/dist/src/lib/Components/Executors/exports/WindowsExecutor.d.ts.map +1 -0
  55. package/dist/src/lib/Components/Executors/index.d.ts +10 -0
  56. package/dist/src/lib/Components/Executors/index.d.ts.map +1 -0
  57. package/dist/src/lib/Components/Executors/types/DockerExecutor.types.d.ts +18 -0
  58. package/dist/src/lib/Components/Executors/types/DockerExecutor.types.d.ts.map +1 -0
  59. package/dist/src/lib/Components/Executors/types/Executor.types.d.ts +63 -0
  60. package/dist/src/lib/Components/Executors/types/Executor.types.d.ts.map +1 -0
  61. package/dist/src/lib/Components/Executors/types/ExecutorParameters.types.d.ts +21 -0
  62. package/dist/src/lib/Components/Executors/types/ExecutorParameters.types.d.ts.map +1 -0
  63. package/dist/src/lib/Components/Executors/types/MacOSExecutor.types.d.ts +16 -0
  64. package/dist/src/lib/Components/Executors/types/MacOSExecutor.types.d.ts.map +1 -0
  65. package/dist/src/lib/Components/Executors/types/MachineExecutor.types.d.ts +22 -0
  66. package/dist/src/lib/Components/Executors/types/MachineExecutor.types.d.ts.map +1 -0
  67. package/dist/src/lib/Components/Executors/types/ReusableExecutor.types.d.ts +40 -0
  68. package/dist/src/lib/Components/Executors/types/ReusableExecutor.types.d.ts.map +1 -0
  69. package/dist/src/lib/Components/Executors/types/WindowsExecutor.types.d.ts +19 -0
  70. package/dist/src/lib/Components/Executors/types/WindowsExecutor.types.d.ts.map +1 -0
  71. package/dist/src/lib/Components/Executors/types/index.d.ts +8 -0
  72. package/dist/src/lib/Components/Executors/types/index.d.ts.map +1 -0
  73. package/dist/src/lib/Components/Job/exports/ParameterizedJob.d.ts +37 -0
  74. package/dist/src/lib/Components/Job/exports/ParameterizedJob.d.ts.map +1 -0
  75. package/dist/src/lib/Components/Job/index.d.ts +71 -0
  76. package/dist/src/lib/Components/Job/index.d.ts.map +1 -0
  77. package/dist/src/lib/Components/Job/types/Job.types.d.ts +45 -0
  78. package/dist/src/lib/Components/Job/types/Job.types.d.ts.map +1 -0
  79. package/dist/src/lib/Components/Logic/exports/Condition.d.ts +10 -0
  80. package/dist/src/lib/Components/Logic/exports/Condition.d.ts.map +1 -0
  81. package/dist/src/lib/Components/Logic/exports/Conditional.d.ts +10 -0
  82. package/dist/src/lib/Components/Logic/exports/Conditional.d.ts.map +1 -0
  83. package/dist/src/lib/Components/Logic/exports/Evaluable.d.ts +8 -0
  84. package/dist/src/lib/Components/Logic/exports/Evaluable.d.ts.map +1 -0
  85. package/dist/src/lib/Components/Logic/exports/When.d.ts +14 -0
  86. package/dist/src/lib/Components/Logic/exports/When.d.ts.map +1 -0
  87. package/dist/src/lib/Components/Logic/exports/conditions/And.d.ts +15 -0
  88. package/dist/src/lib/Components/Logic/exports/conditions/And.d.ts.map +1 -0
  89. package/dist/src/lib/Components/Logic/exports/conditions/Equal.d.ts +19 -0
  90. package/dist/src/lib/Components/Logic/exports/conditions/Equal.d.ts.map +1 -0
  91. package/dist/src/lib/Components/Logic/exports/conditions/Not.d.ts +15 -0
  92. package/dist/src/lib/Components/Logic/exports/conditions/Not.d.ts.map +1 -0
  93. package/dist/src/lib/Components/Logic/exports/conditions/Or.d.ts +15 -0
  94. package/dist/src/lib/Components/Logic/exports/conditions/Or.d.ts.map +1 -0
  95. package/dist/src/lib/Components/Logic/exports/conditions/Truthy.d.ts +11 -0
  96. package/dist/src/lib/Components/Logic/exports/conditions/Truthy.d.ts.map +1 -0
  97. package/dist/src/lib/Components/Logic/exports/conditions/index.d.ts +14 -0
  98. package/dist/src/lib/Components/Logic/exports/conditions/index.d.ts.map +1 -0
  99. package/dist/src/lib/Components/Logic/index.d.ts +12 -0
  100. package/dist/src/lib/Components/Logic/index.d.ts.map +1 -0
  101. package/dist/src/lib/Components/Logic/types/index.d.ts +17 -0
  102. package/dist/src/lib/Components/Logic/types/index.d.ts.map +1 -0
  103. package/dist/src/lib/Components/Parameters/exports/CustomEnumParameter.d.ts +20 -0
  104. package/dist/src/lib/Components/Parameters/exports/CustomEnumParameter.d.ts.map +1 -0
  105. package/dist/src/lib/Components/Parameters/exports/CustomParameter.d.ts +27 -0
  106. package/dist/src/lib/Components/Parameters/exports/CustomParameter.d.ts.map +1 -0
  107. package/dist/src/lib/Components/Parameters/exports/CustomParameterList.d.ts +30 -0
  108. package/dist/src/lib/Components/Parameters/exports/CustomParameterList.d.ts.map +1 -0
  109. package/dist/src/lib/Components/Parameters/exports/Parameterized.d.ts +13 -0
  110. package/dist/src/lib/Components/Parameters/exports/Parameterized.d.ts.map +1 -0
  111. package/dist/src/lib/Components/Parameters/index.d.ts +5 -0
  112. package/dist/src/lib/Components/Parameters/index.d.ts.map +1 -0
  113. package/dist/src/lib/Components/Parameters/types/ComponentParameters.types.d.ts +24 -0
  114. package/dist/src/lib/Components/Parameters/types/ComponentParameters.types.d.ts.map +1 -0
  115. package/dist/src/lib/Components/Parameters/types/CustomParameterLiterals.types.d.ts +26 -0
  116. package/dist/src/lib/Components/Parameters/types/CustomParameterLiterals.types.d.ts.map +1 -0
  117. package/dist/src/lib/Components/Parameters/types/index.d.ts +103 -0
  118. package/dist/src/lib/Components/Parameters/types/index.d.ts.map +1 -0
  119. package/dist/src/lib/Components/Reusable/index.d.ts +5 -0
  120. package/dist/src/lib/Components/Reusable/index.d.ts.map +1 -0
  121. package/dist/src/lib/Components/Workflow/exports/Workflow.d.ts +49 -0
  122. package/dist/src/lib/Components/Workflow/exports/Workflow.d.ts.map +1 -0
  123. package/dist/src/lib/Components/Workflow/exports/WorkflowJob.d.ts +19 -0
  124. package/dist/src/lib/Components/Workflow/exports/WorkflowJob.d.ts.map +1 -0
  125. package/dist/src/lib/Components/Workflow/exports/WorkflowJobAbstract.d.ts +19 -0
  126. package/dist/src/lib/Components/Workflow/exports/WorkflowJobAbstract.d.ts.map +1 -0
  127. package/dist/src/lib/Components/Workflow/exports/WorkflowJobApproval.d.ts +9 -0
  128. package/dist/src/lib/Components/Workflow/exports/WorkflowJobApproval.d.ts.map +1 -0
  129. package/dist/src/lib/Components/Workflow/index.d.ts +5 -0
  130. package/dist/src/lib/Components/Workflow/index.d.ts.map +1 -0
  131. package/dist/src/lib/Components/Workflow/types/Workflow.types.d.ts +30 -0
  132. package/dist/src/lib/Components/Workflow/types/Workflow.types.d.ts.map +1 -0
  133. package/dist/src/lib/Components/Workflow/types/WorkflowJob.types.d.ts +55 -0
  134. package/dist/src/lib/Components/Workflow/types/WorkflowJob.types.d.ts.map +1 -0
  135. package/dist/src/lib/Components/Workflow/types/index.d.ts +3 -0
  136. package/dist/src/lib/Components/Workflow/types/index.d.ts.map +1 -0
  137. package/dist/src/lib/Components/index.d.ts +20 -0
  138. package/dist/src/lib/Components/index.d.ts.map +1 -0
  139. package/dist/src/lib/Config/Pipeline/Git.d.ts +25 -0
  140. package/dist/src/lib/Config/Pipeline/Git.d.ts.map +1 -0
  141. package/dist/src/lib/Config/Pipeline/Project.d.ts +18 -0
  142. package/dist/src/lib/Config/Pipeline/Project.d.ts.map +1 -0
  143. package/dist/src/lib/Config/Pipeline/index.d.ts +35 -0
  144. package/dist/src/lib/Config/Pipeline/index.d.ts.map +1 -0
  145. package/dist/src/lib/Config/exports/Mapping.d.ts +56 -0
  146. package/dist/src/lib/Config/exports/Mapping.d.ts.map +1 -0
  147. package/dist/src/lib/Config/index.d.ts +111 -0
  148. package/dist/src/lib/Config/index.d.ts.map +1 -0
  149. package/dist/src/lib/Config/types/Mapping.types.d.ts +25 -0
  150. package/dist/src/lib/Config/types/Mapping.types.d.ts.map +1 -0
  151. package/dist/src/lib/Config/types/index.d.ts +65 -0
  152. package/dist/src/lib/Config/types/index.d.ts.map +1 -0
  153. package/dist/src/lib/Orb/exports/OrbDefinition.d.ts +21 -0
  154. package/dist/src/lib/Orb/exports/OrbDefinition.d.ts.map +1 -0
  155. package/dist/src/lib/Orb/exports/OrbImport.d.ts +24 -0
  156. package/dist/src/lib/Orb/exports/OrbImport.d.ts.map +1 -0
  157. package/dist/src/lib/Orb/exports/OrbRef.d.ts +19 -0
  158. package/dist/src/lib/Orb/exports/OrbRef.d.ts.map +1 -0
  159. package/dist/src/lib/Orb/index.d.ts +4 -0
  160. package/dist/src/lib/Orb/index.d.ts.map +1 -0
  161. package/dist/src/lib/Orb/types/Orb.types.d.ts +18 -0
  162. package/dist/src/lib/Orb/types/Orb.types.d.ts.map +1 -0
  163. package/dist/src/lib/Types/index.d.ts +8 -0
  164. package/dist/src/lib/Types/index.d.ts.map +1 -0
  165. package/package.json +5 -2
  166. package/CODE_OF_CONDUCT.md +0 -76
  167. package/commitlint.config.js +0 -1
  168. package/package-version.json +0 -1
  169. package/tsconfig.webpack.json +0 -4
@@ -0,0 +1,26 @@
1
+ /**
2
+ * All potential parameter type literals that can be supplied to custom reusable components.
3
+ * @see {@link https://circleci.com/docs/2.0/reusing-config/#parameter-syntax}
4
+ */
5
+ export declare type AnyParameterLiteral = 'string' | 'boolean' | 'integer' | EnumParameterLiteral | 'executor' | 'steps' | 'env_var_name';
6
+ export declare type EnumParameterLiteral = 'enum';
7
+ /**
8
+ * Custom Parameter types available to Jobs
9
+ * @see {@link CustomParametersList}
10
+ * @see {@link ParameterizedJob}
11
+ */
12
+ export declare type JobParameterLiteral = AnyParameterLiteral;
13
+ /**
14
+ * Custom Parameter types available to Commands
15
+ */
16
+ export declare type CommandParameterLiteral = Extract<AnyParameterLiteral, 'string' | 'boolean' | 'integer' | EnumParameterLiteral | 'steps' | 'env_var_name'>;
17
+ /**
18
+ * Custom Parameter types available to Executors
19
+ */
20
+ export declare type ExecutorParameterLiteral = Extract<AnyParameterLiteral, 'string' | 'boolean' | 'integer' | EnumParameterLiteral>;
21
+ /**
22
+ * Custom Parameter types available to the Pipeline at the Config level.
23
+ */
24
+ export declare type PipelineParameterLiteral = Extract<AnyParameterLiteral, 'string' | 'boolean' | 'integer' | EnumParameterLiteral>;
25
+ export declare type ParameterizedComponentLiteral = 'job' | 'command' | 'executor' | 'pipeline';
26
+ //# sourceMappingURL=CustomParameterLiterals.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomParameterLiterals.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Parameters/types/CustomParameterLiterals.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,mBAAmB,GAC3B,QAAQ,GACR,SAAS,GACT,SAAS,GACT,oBAAoB,GACpB,UAAU,GACV,OAAO,GACP,cAAc,CAAC;AAKnB,oBAAY,oBAAoB,GAAG,MAAM,CAAC;AAE1C;;;;GAIG;AACH,oBAAY,mBAAmB,GAAG,mBAAmB,CAAC;AAEtD;;GAEG;AACH,oBAAY,uBAAuB,GAAG,OAAO,CAC3C,mBAAmB,EACjB,QAAQ,GACR,SAAS,GACT,SAAS,GACT,oBAAoB,GACpB,OAAO,GACP,cAAc,CACjB,CAAC;AAEF;;GAEG;AACH,oBAAY,wBAAwB,GAAG,OAAO,CAC5C,mBAAmB,EACnB,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,oBAAoB,CACxD,CAAC;AAEF;;GAEG;AACH,oBAAY,wBAAwB,GAAG,OAAO,CAC5C,mBAAmB,EACnB,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,oBAAoB,CACxD,CAAC;AAKF,oBAAY,6BAA6B,GACrC,KAAK,GACL,SAAS,GACT,UAAU,GACV,UAAU,CAAC"}
@@ -0,0 +1,103 @@
1
+ import { Command } from '../../Commands/exports/Command';
2
+ import { Executor } from '../../Executors/exports/Executor';
3
+ import { AnyParameterLiteral, EnumParameterLiteral } from './CustomParameterLiterals.types';
4
+ import * as literals from './CustomParameterLiterals.types';
5
+ import * as components from './ComponentParameters.types';
6
+ /**
7
+ * All possible Parameter types across CircleCI. Used as an "abstract" type. Use the appropriate ParameterType for your component.
8
+ */
9
+ export declare type AnyParameterType = EnumParameter | StringParameter | BooleanParameter | IntegerParameter | StepsParameter | ExecutorParameter | EnvironmentParameter | MatrixParameter | FilterParameter;
10
+ export interface ParameterValues<ParameterTypeLiteral extends AnyParameterLiteral> {
11
+ type: ParameterTypeLiteral;
12
+ description?: StringParameter;
13
+ defaultValue?: unknown;
14
+ enumValues?: EnumParameter;
15
+ }
16
+ /**
17
+ * Parameter type for a string which is restricted to a known list
18
+ */
19
+ export declare type EnumParameter = string[];
20
+ /**
21
+ * Parameter type for a string array. Utilized by multiple CircleCI built-in components. Can not be used by custom components.
22
+ */
23
+ export declare type ListParameter = string[];
24
+ /**
25
+ * Parameter type for basic strings
26
+ */
27
+ export declare type StringParameter = string;
28
+ /**
29
+ * Parameter type for setting boolean conditionals
30
+ */
31
+ export declare type BooleanParameter = boolean;
32
+ /**
33
+ * Parameter type for numerical data
34
+ */
35
+ export declare type IntegerParameter = number;
36
+ /**
37
+ * Parameter type for a string that must match a POSIX_NAME regexp (for example, there can be no spaces or special characters).
38
+ */
39
+ export declare type EnvironmentVariableNameParameter = string;
40
+ /**
41
+ * Parameter type for steps, a list of steps that may be passed to a job or command.
42
+ */
43
+ export declare type StepsParameter = Command[];
44
+ /**
45
+ * Parameter type for Executors. Available for Parameterizable jobs.
46
+ */
47
+ export declare type ExecutorParameter = Executor;
48
+ /**
49
+ * Parameter type for a map of environment variables. Can only be set on non-parameterizable jobs.
50
+ */
51
+ export declare type EnvironmentParameter = Record<string, string>;
52
+ export declare type FilterParameter = {
53
+ /**
54
+ * A map defining rules for execution on specific branches
55
+ */
56
+ branches?: {
57
+ /**
58
+ * Either a single branch specifier, or a list of branch specifiers
59
+ */
60
+ only?: ListParameter;
61
+ /**
62
+ * Either a single branch specifier, or a list of branch specifiers
63
+ */
64
+ ignore?: ListParameter;
65
+ };
66
+ /**
67
+ * A map defining rules for execution on specific tags
68
+ */
69
+ tags?: {
70
+ /**
71
+ * Either a single tag specifier, or a list of tag specifiers
72
+ */
73
+ only?: ListParameter;
74
+ /**
75
+ * Either a single tag specifier, or a list of tag specifiers
76
+ */
77
+ ignore?: ListParameter;
78
+ };
79
+ };
80
+ export declare type MatrixParameter = Record<string, ListParameter>;
81
+ export interface ParameterShape<T = NonNullable<Exclude<AnyParameterType, EnvironmentParameter>>> {
82
+ type: AnyParameterLiteral;
83
+ description?: StringParameter;
84
+ default: T;
85
+ enum?: ListParameter;
86
+ }
87
+ export declare type CustomParametersListShape = Record<string, ParameterShape>;
88
+ export declare type CustomParameterShape<ParameterTypeLiteral> = {
89
+ [key: string]: CustomParameterContentsShape<ParameterTypeLiteral>;
90
+ };
91
+ export declare type CustomParameterContentsShape<ParameterTypeLiteral> = {
92
+ type: ParameterTypeLiteral;
93
+ default: unknown;
94
+ description?: string;
95
+ };
96
+ export declare type CustomEnumParameterContentsShape = CustomParameterContentsShape<EnumParameterLiteral> & {
97
+ enum: string[];
98
+ };
99
+ export declare type CustomEnumParameterShape = {
100
+ [key: string]: CustomEnumParameterContentsShape;
101
+ };
102
+ export { components, literals };
103
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Parameters/types/index.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,5 @@
1
+ export * from '../Commands/exports/Reusable';
2
+ export { ReusableExecutor } from '../Executors/exports/ReusableExecutor';
3
+ export { ReusedExecutor } from '../Executors/exports/ReusedExecutor';
4
+ export { ParameterizedJob } from '../Job/exports/ParameterizedJob';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Reusable/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { Generable } from '../..';
2
+ import { GenerableType } from '../../../Config/exports/Mapping';
3
+ import { Job } from '../../Job';
4
+ import { When } from '../../Logic';
5
+ import { Conditional } from '../../Logic/exports/Conditional';
6
+ import { WorkflowContentsShape, WorkflowJobParameters, WorkflowsShape } from '../types';
7
+ import { WorkflowJobAbstract } from './WorkflowJobAbstract';
8
+ /**
9
+ * A workflow is a set of rules for defining a collection of jobs and their run order.
10
+ */
11
+ export declare class Workflow implements Generable, Conditional {
12
+ /**
13
+ * The name of the Workflow.
14
+ */
15
+ name: string;
16
+ /**
17
+ * The jobs to execute when this Workflow is triggered.
18
+ */
19
+ jobs: WorkflowJobAbstract[];
20
+ /**
21
+ * The conditional statement that will be evaluated to determine whether to trigger this workflow.
22
+ */
23
+ when?: When;
24
+ /**
25
+ * Instantiate a Workflow
26
+ * @param name - Name your workflow. Must be unique.
27
+ * @param jobs - A list of jobs to be executed as part of your Workflow.
28
+ */
29
+ constructor(name: string, jobs?: Array<Job | WorkflowJobAbstract>, when?: When);
30
+ /**
31
+ * Generate Workflow Shape.
32
+ * @returns The generated JSON for the Workflow.
33
+ */
34
+ generate(flatten?: boolean): WorkflowsShape;
35
+ /**
36
+ * Generate contents of the Workflow.
37
+ */
38
+ generateContents(flatten?: boolean): WorkflowContentsShape;
39
+ /**
40
+ * Add a Job to the current Workflow. Chainable
41
+ */
42
+ addJob(job: Job, parameters?: WorkflowJobParameters): this;
43
+ /**
44
+ * Add a Approval to the current Workflow. Chainable
45
+ */
46
+ addJobApproval(name: string, parameters?: WorkflowJobParameters): this;
47
+ get generableType(): GenerableType;
48
+ }
49
+ //# sourceMappingURL=Workflow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Workflow.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Workflow/exports/Workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,cAAc,EACf,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D;;GAEG;AACH,qBAAa,QAAS,YAAW,SAAS,EAAE,WAAW;IACrD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,mBAAmB,EAAE,CAAM;IAEjC;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ;;;;OAIG;gBAED,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,KAAK,CAAC,GAAG,GAAG,mBAAmB,CAAC,EACvC,IAAI,CAAC,EAAE,IAAI;IAYb;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,cAAc;IAM3C;;OAEG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,qBAAqB;IAgB1D;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,UAAU,CAAC,EAAE,qBAAqB,GAAG,IAAI;IAK1D;;OAEG;IACH,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,qBAAqB,GAAG,IAAI;IAKtE,IAAI,aAAa,IAAI,aAAa,CAEjC;CACF"}
@@ -0,0 +1,19 @@
1
+ import { OrbRef } from '../../../Orb/exports/OrbRef';
2
+ import { Job } from '../../Job';
3
+ import { JobParameterLiteral } from '../../Parameters/types/CustomParameterLiterals.types';
4
+ import { WorkflowJobContentsShape, WorkflowJobParameters, WorkflowJobShape } from '../types/WorkflowJob.types';
5
+ import { WorkflowJobAbstract } from './WorkflowJobAbstract';
6
+ /**
7
+ * Assign Parameters and Filters to a Job within a Workflow.
8
+ * Utility class for assigning parameters to a job.
9
+ * Should only be instantiated for specific use cases.
10
+ * @see {@link Workflow.addJob} for general use.
11
+ */
12
+ export declare class WorkflowJob extends WorkflowJobAbstract {
13
+ job: Job | OrbRef<JobParameterLiteral>;
14
+ constructor(job: Job | OrbRef<JobParameterLiteral>, parameters?: Exclude<WorkflowJobParameters, 'type'>);
15
+ generateContents(flatten?: boolean): WorkflowJobContentsShape;
16
+ generate(flatten?: boolean): WorkflowJobShape;
17
+ get name(): string;
18
+ }
19
+ //# sourceMappingURL=WorkflowJob.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkflowJob.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Workflow/exports/WorkflowJob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;;;GAKG;AACH,qBAAa,WAAY,SAAQ,mBAAmB;IAClD,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;gBAGrC,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC,mBAAmB,CAAC,EACtC,UAAU,CAAC,EAAE,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC;IAMrD,gBAAgB,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,wBAAwB;IAM7D,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,gBAAgB;IAU7C,IAAI,IAAI,IAAI,MAAM,CAEjB;CACF"}
@@ -0,0 +1,19 @@
1
+ import { GenerableType } from '../../../Config/exports/Mapping';
2
+ import { Generable } from '../../index';
3
+ import { WorkflowJobContentsShape, WorkflowJobParameters, WorkflowJobShape } from '../types/WorkflowJob.types';
4
+ /**
5
+ * Assign Parameters and Filters to a Job within a Workflow.
6
+ * Utility class for assigning parameters to a job.
7
+ * Should only be instantiated for specific use cases.
8
+ * @see {@link Workflow.addJob} for general use.
9
+ */
10
+ export declare abstract class WorkflowJobAbstract implements Generable {
11
+ parameters?: WorkflowJobParameters;
12
+ constructor(parameters?: WorkflowJobParameters);
13
+ generateContents(flatten?: boolean): WorkflowJobContentsShape;
14
+ get generableType(): GenerableType;
15
+ private generateSteps;
16
+ abstract get name(): string;
17
+ abstract generate(flatten?: boolean): WorkflowJobShape;
18
+ }
19
+ //# sourceMappingURL=WorkflowJobAbstract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkflowJobAbstract.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Workflow/exports/WorkflowJobAbstract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EAErB,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AAEpC;;;;;GAKG;AACH,8BAAsB,mBAAoB,YAAW,SAAS;IAC5D,UAAU,CAAC,EAAE,qBAAqB,CAAM;gBAE5B,UAAU,CAAC,EAAE,qBAAqB;IAK9C,gBAAgB,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,wBAAwB;IAwB7D,IAAI,aAAa,IAAI,aAAa,CAEjC;IAED,OAAO,CAAC,aAAa;IAOrB,QAAQ,KAAK,IAAI,IAAI,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,gBAAgB;CACvD"}
@@ -0,0 +1,9 @@
1
+ import { WorkflowJobParameters, WorkflowJobShape } from '../types/WorkflowJob.types';
2
+ import { WorkflowJobAbstract } from './WorkflowJobAbstract';
3
+ export declare class WorkflowJobApproval extends WorkflowJobAbstract {
4
+ private _name;
5
+ constructor(name: string, parameters?: WorkflowJobParameters);
6
+ generate(flatten?: boolean): WorkflowJobShape;
7
+ get name(): string;
8
+ }
9
+ //# sourceMappingURL=WorkflowJobApproval.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkflowJobApproval.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Workflow/exports/WorkflowJobApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,qBAAa,mBAAoB,SAAQ,mBAAmB;IAC1D,OAAO,CAAC,KAAK,CAAS;gBAEV,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,qBAAqB;IAM5D,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,gBAAgB;IAM7C,IAAI,IAAI,IAAI,MAAM,CAEjB;CACF"}
@@ -0,0 +1,5 @@
1
+ import { WorkflowJob } from './exports/WorkflowJob';
2
+ import { WorkflowJobAbstract } from './exports/WorkflowJobAbstract';
3
+ import { WorkflowJobApproval } from './exports/WorkflowJobApproval';
4
+ export { WorkflowJob, WorkflowJobApproval, WorkflowJobAbstract };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Workflow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { AnyConditionShape } from '../../Logic/types';
2
+ import { WorkflowJobAbstract } from '../exports/WorkflowJobAbstract';
3
+ import { WorkflowJobShape } from './WorkflowJob.types';
4
+ export declare type WorkflowsShape = {
5
+ [workflowName: string]: {
6
+ when?: AnyConditionShape;
7
+ jobs: WorkflowJobShape[];
8
+ };
9
+ };
10
+ export declare type WorkflowContentsShape = {
11
+ when?: AnyConditionShape;
12
+ jobs: WorkflowJobShape[];
13
+ };
14
+ export declare type UnknownWorkflowShape = {
15
+ jobs: {
16
+ [key: string]: unknown;
17
+ }[];
18
+ };
19
+ export declare type UnknownWorkflowJobShape = {
20
+ requires?: string[];
21
+ parameters?: {
22
+ [key: string]: unknown;
23
+ };
24
+ name?: string;
25
+ type?: 'approval';
26
+ };
27
+ export declare type WorkflowDependencies = {
28
+ jobList: WorkflowJobAbstract[];
29
+ };
30
+ //# sourceMappingURL=Workflow.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Workflow.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Workflow/types/Workflow.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,oBAAY,cAAc,GAAG;IAC3B,CAAC,YAAY,EAAE,MAAM,GAAG;QACtB,IAAI,CAAC,EAAE,iBAAiB,CAAC;QACzB,IAAI,EAAE,gBAAgB,EAAE,CAAC;KAC1B,CAAC;CACH,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAClC,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,IAAI,EAAE,gBAAgB,EAAE,CAAC;CAC1B,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,EAAE,CAAC;CACpC,CAAC;AAEF,oBAAY,uBAAuB,GAAG;IACpC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,OAAO,EAAE,mBAAmB,EAAE,CAAC;CAChC,CAAC"}
@@ -0,0 +1,55 @@
1
+ import { FilterParameter, ListParameter, MatrixParameter, StepsParameter, StringParameter } from '../../Parameters/types';
2
+ import { ComponentParameter, JobParameterTypes } from '../../Parameters/types/ComponentParameters.types';
3
+ import { AnyCommandShape } from '../../Commands/types/Command.types';
4
+ /**
5
+ * CircleCI provided parameters for all workflow jobs
6
+ * @see WorkflowJobParameterShape
7
+ */
8
+ export interface WorkflowJobParameters extends ComponentParameter<JobParameterTypes> {
9
+ /**
10
+ * A list of jobs that must succeed for the job to start. Note: When jobs in the current workflow that are listed as dependencies are not executed (due to a filter function for example), their requirement as a dependency for other jobs will be ignored by the requires option. However, if all dependencies of a job are filtered, then that job will not be executed either.
11
+ */
12
+ requires?: ListParameter;
13
+ name?: StringParameter;
14
+ context?: ListParameter;
15
+ preSteps?: StepsParameter;
16
+ postSteps?: StepsParameter;
17
+ /**
18
+ * {@link https://circleci.com/docs/2.0/configuration-reference/#filters} Filter workflow job's execution by branch or git tag.
19
+ */
20
+ filters?: FilterParameter;
21
+ /**
22
+ * {@link https://circleci.com/docs/2.0/configuration-reference/#matrix-requires-version-21} The matrix stanza allows you to run a parameterized job multiple times with different arguments.
23
+ */
24
+ matrix?: MatrixParameter;
25
+ /**
26
+ * An "approval" type job is a special job which pauses the workflow. This "job" is not defined outside of the workflow, you may enter any potential name for the job name. As long as the parameter of "type" is present and equal to "approval" this job will act as a placeholder that awaits user input to continue.
27
+ */
28
+ type?: approval;
29
+ }
30
+ export declare type approval = 'approval';
31
+ /**
32
+ * Full Workflow Job parameter type
33
+ */
34
+ export declare type WorkflowJobShape = {
35
+ [workflowJobName: StringParameter]: WorkflowJobContentsShape;
36
+ } | string;
37
+ export declare type WorkflowJobContentsShape = WorkflowJobParametersShape | undefined;
38
+ /**
39
+ * Workflow Job parameter output shape
40
+ */
41
+ export interface WorkflowJobParametersShape {
42
+ requires?: ListParameter;
43
+ context?: ListParameter;
44
+ type?: approval;
45
+ filters?: FilterParameter;
46
+ matrix?: WorkflowMatrixShape;
47
+ [key: string]: JobParameterTypes | WorkflowMatrixShape | undefined | AnyCommandShape[];
48
+ }
49
+ /**
50
+ * A map of parameter names to every value the job should be called with
51
+ */
52
+ export interface WorkflowMatrixShape {
53
+ parameters: MatrixParameter;
54
+ }
55
+ //# sourceMappingURL=WorkflowJob.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkflowJob.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Workflow/types/WorkflowJob.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,aAAa,EACb,eAAe,EACf,cAAc,EACd,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAErE;;;GAGG;AACH,MAAM,WAAW,qBACf,SAAQ,kBAAkB,CAAC,iBAAiB,CAAC;IAC7C;;OAEG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,oBAAY,QAAQ,GAAG,UAAU,CAAC;AAElC;;GAEG;AACH,oBAAY,gBAAgB,GACxB;IACE,CAAC,eAAe,EAAE,eAAe,GAAG,wBAAwB,CAAC;CAC9D,GACD,MAAM,CAAC;AAEX,oBAAY,wBAAwB,GAAG,0BAA0B,GAAG,SAAS,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,CAAC,GAAG,EAAE,MAAM,GACR,iBAAiB,GACjB,mBAAmB,GACnB,SAAS,GACT,eAAe,EAAE,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,eAAe,CAAC;CAC7B"}
@@ -0,0 +1,3 @@
1
+ export * from './Workflow.types';
2
+ export * from './WorkflowJob.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Workflow/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { GenerableType } from '../Config/exports/Mapping';
2
+ /**
3
+ * @internal
4
+ */
5
+ export interface Generable {
6
+ /**
7
+ * Generate the CircleCI YAML equivalent JSON for config compilation
8
+ * Generable's name is the key in the output.
9
+ */
10
+ generate(flatten?: boolean): unknown;
11
+ /**
12
+ * Generate the CircleCI YAML equivalent JSON contents for config compilation
13
+ */
14
+ generateContents?(flatten?: boolean): unknown;
15
+ /**
16
+ * Type of generable object
17
+ */
18
+ readonly generableType: GenerableType;
19
+ }
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAErC;;OAEG;IACH,gBAAgB,CAAC,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAE9C;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;CACvC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Not fully implemented yet. Fetch git pipeline parameters from inside a CircleCI job.
3
+ * @alpha
4
+ */
5
+ export declare class Git {
6
+ _isLocal: boolean;
7
+ constructor(isLocal: boolean);
8
+ /**
9
+ * The name of the git tag that was pushed to trigger the pipeline. If the pipeline was not triggered by a tag, then this is the empty string.
10
+ */
11
+ get tag(): string;
12
+ /**
13
+ * The name of the git branch that was pushed to trigger the pipeline.
14
+ */
15
+ get branch(): string;
16
+ /**
17
+ * The long (40-character) git SHA that is being built.
18
+ */
19
+ get revision(): string;
20
+ /**
21
+ * The long (40-character) git SHA of the build prior to the one being built.
22
+ */
23
+ get base_revision(): string;
24
+ }
25
+ //# sourceMappingURL=Git.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Git.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Config/Pipeline/Git.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,GAAG;IACP,QAAQ,UAAQ;gBACX,OAAO,EAAE,OAAO;IAG5B;;OAEG;IACH,IAAI,GAAG,IAAI,MAAM,CAEhB;IACD;;OAEG;IACH,IAAI,MAAM,IAAI,MAAM,CAEnB;IACD;;OAEG;IACH,IAAI,QAAQ,IAAI,MAAM,CAErB;IACD;;OAEG;IACH,IAAI,aAAa,IAAI,MAAM,CAE1B;CACF"}
@@ -0,0 +1,18 @@
1
+ export declare type VCSLiteral = 'bitbucket' | 'github' | 'local';
2
+ /**
3
+ * Not fully implemented yet. Fetch project pipeline parameters from inside a CircleCI job.
4
+ * @alpha
5
+ */
6
+ export declare class Project {
7
+ private _isLocal;
8
+ constructor(isLocal: boolean);
9
+ /**
10
+ * The URL where the current project is hosted. E.g. https://github.com/circleci/circleci-docs
11
+ */
12
+ get git_url(): string;
13
+ /**
14
+ * The lower-case name of the VCS provider, E.g. “github”, “bitbucket”
15
+ */
16
+ get vcs(): VCSLiteral;
17
+ }
18
+ //# sourceMappingURL=Project.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Project.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Config/Pipeline/Project.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE1D;;;GAGG;AACH,qBAAa,OAAO;IAClB,OAAO,CAAC,QAAQ,CAAU;gBACd,OAAO,EAAE,OAAO;IAG5B;;OAEG;IACH,IAAI,OAAO,IAAI,MAAM,CAMpB;IAED;;OAEG;IACH,IAAI,GAAG,IAAI,UAAU,CAcpB;CACF"}
@@ -0,0 +1,35 @@
1
+ import { Project } from './Project';
2
+ import { Git } from './Git';
3
+ /**
4
+ * Not fully implemented yet. Fetch pipeline parameters from inside a CircleCI job.
5
+ * @alpha
6
+ */
7
+ export declare class Pipeline {
8
+ /**
9
+ * Pipeline parameter values are passed at the config level on CircleCI. These values will not be present on a local system.
10
+ */
11
+ private _isLocal;
12
+ /**
13
+ * Array of user defined parameters
14
+ */
15
+ constructor();
16
+ /**
17
+ * A globally unique id representing for the pipeline
18
+ * @beta
19
+ */
20
+ get id(): string;
21
+ /**
22
+ * A project unique integer id for the pipeline
23
+ * @beta
24
+ */
25
+ get number(): number;
26
+ /**
27
+ * Project metadata
28
+ */
29
+ project(): Project;
30
+ /**
31
+ * Git metadata
32
+ */
33
+ git(): Git;
34
+ }
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Config/Pipeline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B;;;GAGG;AACH,qBAAa,QAAQ;IACnB;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAU;IAC1B;;OAEG;;IAYH;;;OAGG;IACH,IAAI,EAAE,IAAI,MAAM,CAMf;IACD;;;OAGG;IACH,IAAI,MAAM,IAAI,MAAM,CAMnB;IACD;;OAEG;IACH,OAAO,IAAI,OAAO;IAGlB;;OAEG;IACH,GAAG,IAAI,GAAG;CAGX"}
@@ -0,0 +1,56 @@
1
+ export declare enum GenerableType {
2
+ CONFIG = "config",
3
+ ORB = "orb",
4
+ ORB_IMPORT = "orb_import",
5
+ ORB_REF = "orb_ref",
6
+ REUSABLE_COMMAND = "reusable_command",
7
+ REUSED_COMMAND = "reused_command",
8
+ RESTORE = "restore_cache",
9
+ SAVE = "save_cache",
10
+ ATTACH = "attach_workspace",
11
+ PERSIST = "persist_to_workspace",
12
+ ADD_SSH_KEYS = "add_ssh_keys",
13
+ CHECKOUT = "checkout",
14
+ RUN = "run",
15
+ SETUP_REMOTE_DOCKER = "setup_remote_docker",
16
+ STORE_ARTIFACTS = "store_artifacts",
17
+ STORE_TEST_RESULTS = "store_test_results",
18
+ STEP = "step",
19
+ STEP_LIST = "steps",
20
+ JOB = "job",
21
+ WORKFLOW_JOB = "workflow_job",
22
+ WORKFLOW = "workflow",
23
+ ANY_EXECUTOR = "executor",
24
+ DOCKER_EXECUTOR = "docker_executor",
25
+ MACHINE_EXECUTOR = "machine_executor",
26
+ MACOS_EXECUTOR = "macos_executor",
27
+ WINDOWS_EXECUTOR = "windows_executor",
28
+ REUSED_EXECUTOR = "reused_executor",
29
+ REUSABLE_EXECUTOR = "reusable_executor",
30
+ REUSABLE_EXECUTOR_LIST = "reusable_executors_list",
31
+ CUSTOM_PARAMETER = "custom_parameter",
32
+ CUSTOM_ENUM_PARAMETER = "custom_enum_parameter",
33
+ CUSTOM_PARAMETERS_LIST = "custom_parameters_list",
34
+ PARAMETER_REFERENCE = "parameter_reference",
35
+ WHEN = "when",
36
+ AND = "and",
37
+ OR = "or",
38
+ NOT = "not",
39
+ EQUAL = "equal",
40
+ TRUTHY = "value"
41
+ }
42
+ export declare enum ParameterSubtype {
43
+ STRING = "string",
44
+ BOOLEAN = "boolean",
45
+ INTEGER = "integer",
46
+ STEPS = "steps",
47
+ EXECUTOR = "executor",
48
+ ENV_VAR_NAME = "env_var_name"
49
+ }
50
+ export declare enum ParameterizedComponent {
51
+ JOB = "/parameters/components/job",
52
+ COMMAND = "/parameters/components/command",
53
+ EXECUTOR = "/parameters/components/executor",
54
+ PIPELINE = "/parameters/components/pipeline"
55
+ }
56
+ //# sourceMappingURL=Mapping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Mapping.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Config/exports/Mapping.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,UAAU,eAAe;IACzB,OAAO,YAAY;IAGnB,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;IACjC,OAAO,kBAAkB;IACzB,IAAI,eAAe;IACnB,MAAM,qBAAqB;IAC3B,OAAO,yBAAyB;IAChC,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,mBAAmB,wBAAwB;IAC3C,eAAe,oBAAoB;IACnC,kBAAkB,uBAAuB;IAGzC,IAAI,SAAS;IACb,SAAS,UAAU;IACnB,GAAG,QAAQ;IACX,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IAGrB,YAAY,aAAa;IACzB,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;IACjC,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,iBAAiB,sBAAsB;IACvC,sBAAsB,4BAA4B;IAGlD,gBAAgB,qBAAqB;IACrC,qBAAqB,0BAA0B;IAC/C,sBAAsB,2BAA2B;IACjD,mBAAmB,wBAAwB;IAG3C,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,EAAE,OAAO;IACT,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,MAAM,UAAU;CACjB;AAED,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,YAAY,iBAAiB;CAC9B;AAED,oBAAY,sBAAsB;IAChC,GAAG,+BAA+B;IAClC,OAAO,mCAAmC;IAC1C,QAAQ,oCAAoC;IAC5C,QAAQ,oCAAoC;CAC7C"}