Skip to content

Commit 176073f

Browse files
committed
chore: rename mandatory plugin types
1 parent 6d23d75 commit 176073f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Common/Types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { Placement } from 'tippy.js'
1919
import { UserGroupDTO } from '@Pages/GlobalConfigurations'
2020
import { ImageComment, ReleaseTag } from './ImageTags.Types'
2121
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.'
22-
import { MandatoryPluginNodeType, RegistryType, RuntimeParamsListItemType, Severity } from '../Shared'
22+
import { MandatoryPluginBaseStateType, RegistryType, RuntimeParamsListItemType, Severity } from '../Shared'
2323

2424
/**
2525
* Generic response type object with support for overriding the result type
@@ -552,7 +552,7 @@ export interface DownstreamNodesEnvironmentsType {
552552
environmentName: string
553553
}
554554

555-
export interface CommonNodeAttr extends Pick<MandatoryPluginNodeType, 'isTriggerBlocked' | 'pluginBlockState'> {
555+
export interface CommonNodeAttr extends Pick<MandatoryPluginBaseStateType, 'isTriggerBlocked' | 'pluginBlockState'> {
556556
connectingCiPipelineId?: number
557557
parents: string | number[] | string[]
558558
x: number
@@ -786,7 +786,7 @@ export interface CDStageConfigMapSecretNames {
786786
secrets: any[]
787787
}
788788

789-
export interface PrePostDeployStageType extends MandatoryPluginNodeType {
789+
export interface PrePostDeployStageType extends MandatoryPluginBaseStateType {
790790
isValid: boolean
791791
steps: TaskErrorObj[]
792792
triggerType: string

src/Shared/Components/Plugin/types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,18 +254,18 @@ export interface PluginImageContainerProps extends Pick<ImageWithFallbackProps,
254254
fallbackImageClassName?: string
255255
}
256256

257-
export enum TaskActionModalType {
257+
export enum PipelineStageTaskActionModalType {
258258
DELETE = 'DELETE',
259259
MOVE_PLUGIN = 'MOVE_PLUGIN',
260260
}
261261

262-
export interface TaskActionModalStateType {
263-
type: TaskActionModalType
262+
export interface PipelineStageTaskActionModalStateType {
263+
type: PipelineStageTaskActionModalType
264264
pluginId: PluginDetailType['id']
265265
taskIndex: number
266266
}
267267

268-
export interface MandatoryPluginNodeType {
268+
export interface MandatoryPluginBaseStateType {
269269
isOffendingMandatoryPlugin: boolean
270270
isTriggerBlocked: boolean
271271
pluginBlockState: ConsequenceType

0 commit comments

Comments
 (0)