Skip to content

Commit 63b1144

Browse files
committed
refactor(types): bulk edit
1 parent 46fc4f9 commit 63b1144

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

src/components/bulkEdits/bulkEdits.type.tsx

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,16 @@ import { BulkEditVersion, OptionType, useMotionValue } from '@devtron-labs/devtr
1818

1919
import { SERVER_MODE_TYPE } from '../../config'
2020

21-
export interface DTImpactedObjects {
21+
interface BaseOperationResponseType {
2222
appId: number
2323
appName: string
2424
envId: number
2525
envName?: string // Only received for v1beta2
2626
}
2727

28-
export interface CMandSecretImpactedObjects {
29-
appId: number
30-
appName: string
31-
envId: number
32-
envName?: string // Only received for v1beta2
28+
export interface DTImpactedObjects extends BaseOperationResponseType {}
29+
30+
export interface CMandSecretImpactedObjects extends BaseOperationResponseType {
3331
names: string[]
3432
}
3533

@@ -39,21 +37,13 @@ export interface ImpactedObjects {
3937
secret: CMandSecretImpactedObjects[]
4038
}
4139

42-
export interface DtOutputKeys {
43-
appId: number
44-
appName: string
45-
envId: number
40+
export interface DtOutputKeys extends BaseOperationResponseType {
4641
message: string
47-
envName?: string // Only received for v1beta2
4842
}
4943

50-
export interface CMandSecretOutputKeys {
51-
appId: number
52-
appName: string
53-
envId: number
54-
message: string
44+
export interface CMandSecretOutputKeys extends BaseOperationResponseType {
5545
names: string[]
56-
envName?: string // Only received for v1beta2
46+
message: string
5747
}
5848

5949
export interface DTBulkOutput {

0 commit comments

Comments
 (0)