Skip to content

Commit

Permalink
feat: add workflow type
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhishekA1509 committed Feb 21, 2024
1 parent fd745ff commit 0d6f8b1
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Common/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ export interface CommonNodeAttr {
deploymentAppCreated?: boolean
isLast?: boolean
downstreamEnvironments?: DownstreamNodesEnvironmentsType[]
cipipelineId?: number
}

export enum DeploymentAppTypes {
Expand Down
34 changes: 34 additions & 0 deletions src/Shared/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { CommonNodeAttr, UserApprovalConfigType } from '../Common'

export enum RegistryType {
GIT = 'git',
GITHUB = 'github',
Expand Down Expand Up @@ -28,3 +30,35 @@ export enum ImagePromotionTabs {
REQUEST = 'request',
PENDING = 'pending',
}

export interface ArtifactPromotionMetaData {
isConfigured: boolean
pendingApprovalCount: number
}

export interface Material {
gitMaterialId: number
materialName: string
}

export interface WorkflowType {
id: string
name: string
gitMaterials?: Material[]
ciConfiguredGitMaterialId?: number
startX: number
startY: number
width: number
height: number
nodes: CommonNodeAttr[]
dag: any
showTippy?: boolean
appId?: number
isSelected?: boolean
approvalConfiguredIdsMap?: Record<number, UserApprovalConfigType>
imageReleaseTags: string[]
appReleaseTags?: string[]
tagsEditable?: boolean
hideImageTaggingHardDelete?: boolean
artifactPromotionMetaData?: ArtifactPromotionMetaData
}

0 comments on commit 0d6f8b1

Please sign in to comment.