|
14 | 14 | * limitations under the License. |
15 | 15 | */ |
16 | 16 |
|
17 | | -import { DynamicDataTableCellValidationState } from '@Shared/Components' |
| 17 | +import { DynamicDataTableCellValidationState, KeyValueTableData } from '@Shared/Components' |
18 | 18 |
|
19 | 19 | export interface MaterialType { |
20 | 20 | name: string |
@@ -158,7 +158,7 @@ export interface PortMapType { |
158 | 158 | portOnLocal: number |
159 | 159 | portOnContainer: number |
160 | 160 | } |
161 | | -interface ConditionDetails { |
| 161 | +export interface ConditionDetails { |
162 | 162 | id: number |
163 | 163 | conditionOnVariable: string |
164 | 164 | conditionOperator: string |
@@ -266,7 +266,7 @@ export enum WORKFLOW_CACHE_CONFIG_ENUM { |
266 | 266 |
|
267 | 267 | export interface FormType { |
268 | 268 | name: string |
269 | | - args: { key: string; value: string }[] |
| 269 | + args: KeyValueTableData[] |
270 | 270 | materials: MaterialType[] |
271 | 271 | gitHost: Githost |
272 | 272 | webhookEvents: WebhookEvent[] |
@@ -314,23 +314,29 @@ export enum InputOutputVariablesHeaderKeys { |
314 | 314 | VALUE = 'val', |
315 | 315 | } |
316 | 316 |
|
317 | | -export type InputOutputVariablesErrorObj = Record<InputOutputVariablesHeaderKeys, DynamicDataTableCellValidationState> |
| 317 | +export enum ConditionDataTableHeaderKeys { |
| 318 | + VARIABLE = 'variable', |
| 319 | + OPERATOR = 'operator', |
| 320 | + VALUE = 'val', |
| 321 | +} |
| 322 | + |
| 323 | +type InputOutputVariablesErrorObj = Record<InputOutputVariablesHeaderKeys, DynamicDataTableCellValidationState> |
| 324 | +type ConditionDetailsErrorObj = Record<ConditionDataTableHeaderKeys, DynamicDataTableCellValidationState> |
| 325 | + |
| 326 | +interface StepDetailTaskErrorObj { |
| 327 | + inputVariables?: Record<number, InputOutputVariablesErrorObj> |
| 328 | + outputVariables?: Record<number, InputOutputVariablesErrorObj> |
| 329 | + isInputVariablesValid?: boolean |
| 330 | + isOutputVariablesValid?: boolean |
| 331 | + conditionDetails?: Record<number, ConditionDetailsErrorObj> |
| 332 | + isConditionDetailsValid?: boolean |
| 333 | +} |
318 | 334 |
|
319 | 335 | export interface TaskErrorObj { |
320 | 336 | isValid: boolean |
321 | 337 | name: ErrorObj |
322 | | - inlineStepDetail?: { |
323 | | - inputVariables?: Record<number, InputOutputVariablesErrorObj> |
324 | | - outputVariables?: Record<number, InputOutputVariablesErrorObj> |
325 | | - isInputVariablesValid?: boolean |
326 | | - isOutputVariablesValid?: boolean |
327 | | - } |
328 | | - pluginRefStepDetail?: { |
329 | | - inputVariables?: Record<number, InputOutputVariablesErrorObj> |
330 | | - outputVariables?: Record<number, InputOutputVariablesErrorObj> |
331 | | - isInputVariablesValid?: boolean |
332 | | - isOutputVariablesValid?: boolean |
333 | | - } |
| 338 | + inlineStepDetail?: StepDetailTaskErrorObj |
| 339 | + pluginRefStepDetail?: StepDetailTaskErrorObj |
334 | 340 | } |
335 | 341 | export interface FormErrorObjectType { |
336 | 342 | name: ErrorObj |
|
0 commit comments