Skip to content

Commit 5e37188

Browse files
committed
fix: remove duplicated enums
1 parent f0e0aa4 commit 5e37188

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/Common/Policy.Types.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ import { ServerErrors } from './ServerError'
2121
export enum ApplyPolicyToStage {
2222
PRE_CI = 'PRE_CI',
2323
POST_CI = 'POST_CI',
24-
PRE_CD = 'PRE_CD',
25-
POST_CD = 'POST_CD',
2624
/**
2725
* @deprecated in mandatory plugin policy v2
2826
*/
2927
PRE_OR_POST_CI = 'PRE_OR_POST_CI',
30-
POST_CD = 'POST_CD',
3128
PRE_CD = 'PRE_CD',
29+
POST_CD = 'POST_CD',
3230
}
3331

3432
// This enum is mapping values from BuildStageVariable
@@ -76,13 +74,11 @@ export type ProcessPluginDataCIParamsType = {
7674
*/
7775
branchName?: string
7876

79-
cdPipelineId?: never
8077
envName?: never
8178
}
8279

8380
export type ProcessPluginDataCDParamsType = {
8481
resourceKind: ResourceKindType.cdPipeline
85-
cdPipelineId: number
8682
envName?: string
8783

8884
ciPipelineId?: never
@@ -93,6 +89,7 @@ export type ProcessPluginDataParamsType = {
9389
formData: FormType
9490
pluginDataStoreState: PluginDataStoreType
9591
appId: number
92+
appName: string
9693
/**
9794
* Would be sent in case we have to get data for steps
9895
*/

src/Shared/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,6 @@ export enum ResourceKindType {
438438
tenant = 'tenant',
439439
installation = 'installation',
440440
environment = 'environment',
441-
ciPipeline = 'ci-pipeline',
442441
cdPipeline = 'cd-pipeline',
443442
ciPipeline = 'ci-pipeline',
444443
project = 'project',

0 commit comments

Comments
 (0)