Skip to content

Commit 54f20b4

Browse files
committed
chore: extend type EnvListMin dto for cd env type
1 parent 38dcdbf commit 54f20b4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Pages/CDPipeline/types.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
import { BuildStageType, FormType } from '@Common/CIPipeline.Types'
22
import { DeploymentAppTypes } from '@Common/Types'
33
import { DeploymentStrategy } from '@Shared/Components'
4+
import { EnvListMinDTO } from '@Shared/types'
45

56
interface ConfigSecretType {
67
label: string
78
value: string
89
type: string
910
}
1011

11-
export interface Environment {
12-
description?: string
13-
id: number
12+
export interface Environment
13+
extends Pick<EnvListMinDTO, 'id' | 'active' | 'namespace' | 'isClusterCdActive'>,
14+
Partial<
15+
Pick<
16+
EnvListMinDTO,
17+
'isVirtualEnvironment' | 'allowedDeploymentTypes' | 'description' | 'isDigestEnforcedForEnv'
18+
>
19+
> {
1420
name: string
15-
namespace: string
16-
active: boolean
1721
clusterName: string
1822
clusterId: string
19-
isClusterCdActive: boolean
20-
isVirtualEnvironment?: boolean
21-
allowedDeploymentTypes?: DeploymentAppTypes[]
22-
isDigestEnforcedForEnv?: boolean
2323
}
2424

2525
export interface PipelineBuildStageType extends BuildStageType {

0 commit comments

Comments
 (0)