File tree Expand file tree Collapse file tree 1 file changed +32
-2
lines changed
Expand file tree Collapse file tree 1 file changed +32
-2
lines changed Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- import { PluginDataStoreType } from '../Shared'
18- import { VariableType } from './CIPipeline.Types'
17+ import { PluginDataStoreType , PluginDetailPayloadType } from '../Shared'
18+ import { FormType , VariableType } from './CIPipeline.Types'
1919import { ServerErrors } from './ServerError'
2020import { ResponseType } from './Types'
2121
@@ -62,6 +62,36 @@ export interface ProcessPluginDataReturnType {
6262 mandatoryPluginsError ?: ServerErrors
6363}
6464
65+ export type ProcessPluginDataCIParamsType = {
66+ ciPipelineId : number
67+ /**
68+ * Comma separated branch names used for v1 api
69+ * For v2 format is [branchName1],[branchName2]
70+ */
71+ branchName ?: string
72+
73+ cdPipelineId ?: never
74+ envName ?: never
75+ }
76+
77+ export type ProcessPluginDataCDParamsType = {
78+ cdPipelineId : number
79+ envName ?: string
80+
81+ ciPipelineId ?: never
82+ branchName ?: never
83+ }
84+
85+ export type ProcessPluginDataParamsType = {
86+ formData : FormType
87+ pluginDataStoreState : PluginDataStoreType
88+ appId : number
89+ /**
90+ * Would be sent in case we have to get data for steps
91+ */
92+ requiredPluginIds : PluginDetailPayloadType [ 'pluginId' ]
93+ } & ( ProcessPluginDataCIParamsType | ProcessPluginDataCDParamsType )
94+
6595export enum ConsequenceAction {
6696 BLOCK = 'BLOCK' ,
6797 ALLOW_UNTIL_TIME = 'ALLOW_UNTIL_TIME' ,
You can’t perform that action at this time.
0 commit comments