@devtron-labs/devtron-fe-common-lib 0.0.71-beta-1 → 0.0.71-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Common/Common.service.d.ts +1 -0
- package/dist/Common/Constants.d.ts +6 -53
- package/dist/Common/Helper.d.ts +2 -3
- package/dist/Common/ImageTags.Types.d.ts +1 -1
- package/dist/Common/Types.d.ts +62 -21
- package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -1
- package/dist/Shared/Components/APIResponseHandler/types.d.ts +9 -0
- package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +3 -0
- package/dist/Shared/Components/ActivityIndicator/index.d.ts +1 -0
- package/dist/Shared/Components/ActivityIndicator/types.d.ts +3 -0
- package/dist/Shared/Components/ExcludedImageNode/ExcludedImageNode.d.ts +3 -0
- package/dist/Shared/Components/ExcludedImageNode/index.d.ts +1 -0
- package/dist/Shared/Components/ExcludedImageNode/types.d.ts +3 -0
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -1
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +21 -1
- package/dist/Shared/Components/ImageCard/ArtifactInfo/ArtifactInfo.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/ArtifactInfo/index.d.ts +1 -0
- package/dist/Shared/Components/ImageCard/ArtifactInfo/types.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/ImageCard.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/DeploymentEnvState.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/constants.d.ts +6 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/index.d.ts +1 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/types.d.ts +10 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/utils.d.ts +2 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/index.d.ts +1 -0
- package/dist/Shared/Components/ImageCard/index.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/types.d.ts +40 -0
- package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +3 -0
- package/dist/Shared/Components/ImageCardAccordion/index.d.ts +1 -0
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +23 -0
- package/dist/Shared/Components/ReactSelect/utils.d.ts +1 -0
- package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +3 -0
- package/dist/Shared/Components/ScannedByToolModal/index.d.ts +1 -0
- package/dist/Shared/Components/ScannedByToolModal/types.d.ts +3 -0
- package/dist/Shared/Components/Vulnerabilities/Vulnerabilities.d.ts +3 -0
- package/dist/Shared/Components/Vulnerabilities/constants.d.ts +4 -0
- package/dist/Shared/Components/Vulnerabilities/index.d.ts +1 -0
- package/dist/Shared/Components/Vulnerabilities/service.d.ts +2 -0
- package/dist/Shared/Components/Vulnerabilities/types.d.ts +8 -0
- package/dist/Shared/Components/index.d.ts +6 -0
- package/dist/Shared/Helpers.d.ts +6 -0
- package/dist/Shared/constants.d.ts +31 -0
- package/dist/Shared/index.d.ts +1 -0
- package/dist/Shared/types.d.ts +114 -0
- package/dist/index.js +12987 -12614
- package/package.json +2 -2
package/dist/Shared/types.d.ts
CHANGED
|
@@ -1,3 +1,89 @@
|
|
|
1
|
+
import { CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType } from '../Common';
|
|
2
|
+
export declare enum RegistryType {
|
|
3
|
+
GIT = "git",
|
|
4
|
+
GITHUB = "github",
|
|
5
|
+
GITLAB = "gitlab",
|
|
6
|
+
BITBUCKET = "bitbucket",
|
|
7
|
+
DOCKER = "docker",
|
|
8
|
+
DOCKER_HUB = "docker-hub",
|
|
9
|
+
ACR = "acr",
|
|
10
|
+
QUAY = "quay",
|
|
11
|
+
ECR = "ecr",
|
|
12
|
+
ARTIFACT_REGISTRY = "artifact-registry",
|
|
13
|
+
GCR = "gcr",
|
|
14
|
+
OTHER = "other"
|
|
15
|
+
}
|
|
16
|
+
export declare enum DefaultUserKey {
|
|
17
|
+
system = "system",
|
|
18
|
+
admin = "admin"
|
|
19
|
+
}
|
|
20
|
+
export declare enum Severity {
|
|
21
|
+
CRITICAL = "critical",
|
|
22
|
+
MODERATE = "moderate",
|
|
23
|
+
LOW = "low"
|
|
24
|
+
}
|
|
25
|
+
export declare enum ImagePromotionTabs {
|
|
26
|
+
REQUEST = "request",
|
|
27
|
+
PENDING = "pending"
|
|
28
|
+
}
|
|
29
|
+
export interface ArtifactPromotionMetadata {
|
|
30
|
+
isConfigured: boolean;
|
|
31
|
+
isApprovalPendingForPromotion: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface Material {
|
|
34
|
+
gitMaterialId: number;
|
|
35
|
+
materialName: string;
|
|
36
|
+
}
|
|
37
|
+
export interface WorkflowType {
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
gitMaterials?: Material[];
|
|
41
|
+
ciConfiguredGitMaterialId?: number;
|
|
42
|
+
startX: number;
|
|
43
|
+
startY: number;
|
|
44
|
+
width: number;
|
|
45
|
+
height: number;
|
|
46
|
+
nodes: CommonNodeAttr[];
|
|
47
|
+
dag: any;
|
|
48
|
+
showTippy?: boolean;
|
|
49
|
+
appId?: number;
|
|
50
|
+
isSelected?: boolean;
|
|
51
|
+
approvalConfiguredIdsMap?: Record<number, UserApprovalConfigType>;
|
|
52
|
+
imageReleaseTags: string[];
|
|
53
|
+
appReleaseTags?: string[];
|
|
54
|
+
tagsEditable?: boolean;
|
|
55
|
+
hideImageTaggingHardDelete?: boolean;
|
|
56
|
+
artifactPromotionMetadata?: ArtifactPromotionMetadata;
|
|
57
|
+
}
|
|
58
|
+
export declare enum ModuleStatus {
|
|
59
|
+
HEALTHY = "healthy",
|
|
60
|
+
NONE = "none",
|
|
61
|
+
UNKNOWN = "unknown",
|
|
62
|
+
UPGRADING = "upgrading",
|
|
63
|
+
UPGRADE_FAILED = "upgradeFailed",
|
|
64
|
+
INSTALLED = "installed",
|
|
65
|
+
INSTALLING = "installing",
|
|
66
|
+
INSTALL_FAILED = "installFailed",
|
|
67
|
+
NOT_INSTALLED = "notInstalled",
|
|
68
|
+
TIMEOUT = "timeout"
|
|
69
|
+
}
|
|
70
|
+
export interface WebHookData {
|
|
71
|
+
Id: number;
|
|
72
|
+
EventActionType: string;
|
|
73
|
+
Data: any;
|
|
74
|
+
}
|
|
75
|
+
export interface GitTriggers {
|
|
76
|
+
Commit: string;
|
|
77
|
+
Author: string;
|
|
78
|
+
Date: Date | string;
|
|
79
|
+
Message: string;
|
|
80
|
+
Changes: string[];
|
|
81
|
+
WebhookData: WebHookData;
|
|
82
|
+
GitRepoUrl: string;
|
|
83
|
+
GitRepoName: string;
|
|
84
|
+
CiConfigureSourceType: string;
|
|
85
|
+
CiConfigureSourceValue: string;
|
|
86
|
+
}
|
|
1
87
|
export interface RuntimeParamsAPIResponseType {
|
|
2
88
|
envVariables: Record<string, string>;
|
|
3
89
|
}
|
|
@@ -8,3 +94,31 @@ export declare enum CIMaterialSidebarType {
|
|
|
8
94
|
CODE_SOURCE = "Code Source",
|
|
9
95
|
PARAMETERS = "Parameters"
|
|
10
96
|
}
|
|
97
|
+
interface LastExecutionResultType {
|
|
98
|
+
scanExecutionId: number;
|
|
99
|
+
lastExecution: string;
|
|
100
|
+
appId?: number;
|
|
101
|
+
appName?: string;
|
|
102
|
+
envId?: number;
|
|
103
|
+
envName?: string;
|
|
104
|
+
pod?: string;
|
|
105
|
+
replicaSet?: string;
|
|
106
|
+
image?: string;
|
|
107
|
+
objectType: 'app' | 'chart';
|
|
108
|
+
scanned: boolean;
|
|
109
|
+
scanEnabled: boolean;
|
|
110
|
+
severityCount: {
|
|
111
|
+
critical: number;
|
|
112
|
+
moderate: number;
|
|
113
|
+
low: number;
|
|
114
|
+
};
|
|
115
|
+
vulnerabilities: VulnerabilityType[];
|
|
116
|
+
scanToolId?: number;
|
|
117
|
+
}
|
|
118
|
+
export interface LastExecutionResponseType extends ResponseType<LastExecutionResultType> {
|
|
119
|
+
}
|
|
120
|
+
export interface MaterialSecurityInfoType {
|
|
121
|
+
isScanned: boolean;
|
|
122
|
+
isScanEnabled: boolean;
|
|
123
|
+
}
|
|
124
|
+
export {};
|