@devtron-labs/devtron-fe-common-lib 0.0.84-beta-2 → 0.0.84-beta-3
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/Api.d.ts +1 -1
- package/dist/Common/AppStatus/constants.d.ts +20 -0
- package/dist/Common/AppStatus/index.d.ts +0 -1
- package/dist/Common/Constants.d.ts +0 -19
- package/dist/Common/Dialogs/Types.d.ts +17 -2
- package/dist/Common/Helper.d.ts +0 -8
- package/dist/Common/Hooks/useStateFilters/types.d.ts +1 -1
- package/dist/Common/Modals/Modal.d.ts +3 -0
- package/dist/Common/Modals/OpaqueModal.d.ts +3 -0
- package/dist/Common/Pagination/index.d.ts +0 -1
- package/dist/Common/PopupMenu.d.ts +1 -1
- package/dist/Common/Types.d.ts +1 -0
- package/dist/Common/index.d.ts +0 -1
- package/dist/Shared/Components/index.d.ts +0 -3
- package/dist/Shared/Helpers.d.ts +1 -6
- package/dist/Shared/constants.d.ts +3 -299
- package/dist/Shared/index.d.ts +1 -1
- package/dist/Shared/types.d.ts +72 -199
- package/dist/Shared/validations.d.ts +3 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-0af60876.js → cssMode-891e1d60.js} +1 -1
- package/dist/{freemarker2-6d9d36ec.js → freemarker2-17a3ef5f.js} +1 -1
- package/dist/{handlebars-5027acc4.js → handlebars-9a82f999.js} +1 -1
- package/dist/{html-a15fdc40.js → html-17150855.js} +1 -1
- package/dist/{htmlMode-cd16b79f.js → htmlMode-cfd414ef.js} +1 -1
- package/dist/{index-c9bfe6ec.js → index-a31b3f6b.js} +114675 -119652
- package/dist/index.js +326 -399
- package/dist/{javascript-7a025257.js → javascript-7e65bd30.js} +1 -1
- package/dist/{jsonMode-39c4f3a6.js → jsonMode-b53e09d1.js} +1 -1
- package/dist/{liquid-71a84cb6.js → liquid-536dd4ae.js} +1 -1
- package/dist/{mdx-db94c1dc.js → mdx-249b908e.js} +1 -1
- package/dist/{python-5db35aea.js → python-0d7512cf.js} +1 -1
- package/dist/{razor-7fa3ed18.js → razor-39b5fa81.js} +1 -1
- package/dist/{tsMode-ba699574.js → tsMode-9cf4451c.js} +1 -1
- package/dist/{typescript-0ceaf5ef.js → typescript-b8c3ff6e.js} +1 -1
- package/dist/{xml-55ba3b31.js → xml-6fc18d50.js} +1 -1
- package/dist/{yaml-61552090.js → yaml-ec291850.js} +1 -1
- package/package.json +15 -17
- package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +0 -4
- package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +0 -5
- package/dist/Shared/Components/CICDHistory/CDEmptyState.d.ts +0 -14
- package/dist/Shared/Components/CICDHistory/CiPipelineSourceConfig.d.ts +0 -11
- package/dist/Shared/Components/CICDHistory/DeploymentDetailSteps.d.ts +0 -4
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryConfigList.component.d.ts +0 -4
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDetailedView.d.ts +0 -4
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +0 -4
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryHeader.d.ts +0 -4
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistorySidebar.d.ts +0 -4
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/index.d.ts +0 -3
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +0 -36
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/utils.d.ts +0 -11
- package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +0 -4
- package/dist/Shared/Components/CICDHistory/DeploymentStatusDetailRow.d.ts +0 -3
- package/dist/Shared/Components/CICDHistory/DetectBottom.d.ts +0 -4
- package/dist/Shared/Components/CICDHistory/ErrorInfoStatusBar.d.ts +0 -3
- package/dist/Shared/Components/CICDHistory/History.components.d.ts +0 -5
- package/dist/Shared/Components/CICDHistory/LogsRenderer.d.ts +0 -4
- package/dist/Shared/Components/CICDHistory/Sidebar.d.ts +0 -5
- package/dist/Shared/Components/CICDHistory/StatusFilterButtonComponent.d.ts +0 -3
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +0 -6
- package/dist/Shared/Components/CICDHistory/constants.d.ts +0 -45
- package/dist/Shared/Components/CICDHistory/index.d.ts +0 -16
- package/dist/Shared/Components/CICDHistory/service.d.ts +0 -28
- package/dist/Shared/Components/CICDHistory/types.d.ts +0 -588
- package/dist/Shared/Components/CICDHistory/utils.d.ts +0 -4
- package/dist/Shared/Components/Error/ErrorBar.d.ts +0 -4
- package/dist/Shared/Components/Error/index.d.ts +0 -2
- package/dist/Shared/Components/Error/types.d.ts +0 -9
- package/dist/Shared/Components/Error/utils.d.ts +0 -3
- package/dist/Shared/Components/GitCommitInfoGeneric/GitCommitInfoGeneric.d.ts +0 -4
- package/dist/Shared/Components/GitCommitInfoGeneric/GitMaterialInfoHeader.d.ts +0 -9
- package/dist/Shared/Components/GitCommitInfoGeneric/index.d.ts +0 -1
- package/dist/Shared/Components/GitCommitInfoGeneric/types.d.ts +0 -11
- package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +0 -5
- package/dist/Shared/Store/IndexStore.d.ts +0 -48
- package/dist/Shared/Store/index.d.ts +0 -1
package/dist/Shared/types.d.ts
CHANGED
|
@@ -1,187 +1,6 @@
|
|
|
1
|
-
import { PatchOperationType } from './constants';
|
|
2
|
-
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType
|
|
1
|
+
import { EnvironmentTypeEnum, PatchOperationType } from './constants';
|
|
2
|
+
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType } from '../Common';
|
|
3
3
|
|
|
4
|
-
export declare enum EnvType {
|
|
5
|
-
CHART = "helm_charts",
|
|
6
|
-
APPLICATION = "apps"
|
|
7
|
-
}
|
|
8
|
-
export interface EnvDetails {
|
|
9
|
-
envType: EnvType;
|
|
10
|
-
envId: number;
|
|
11
|
-
appId: number;
|
|
12
|
-
}
|
|
13
|
-
interface OtherEnvironment {
|
|
14
|
-
environmentId: number;
|
|
15
|
-
environmentName: string;
|
|
16
|
-
appMetrics: boolean;
|
|
17
|
-
infraMetrics: boolean;
|
|
18
|
-
prod: boolean;
|
|
19
|
-
}
|
|
20
|
-
export interface PodMetaData {
|
|
21
|
-
containers: Array<string>;
|
|
22
|
-
initContainers: any;
|
|
23
|
-
ephemeralContainers: any;
|
|
24
|
-
isNew: boolean;
|
|
25
|
-
name: string;
|
|
26
|
-
uid: string;
|
|
27
|
-
}
|
|
28
|
-
export interface Info {
|
|
29
|
-
value: string;
|
|
30
|
-
name: string;
|
|
31
|
-
}
|
|
32
|
-
export interface Health {
|
|
33
|
-
status: string;
|
|
34
|
-
message?: string;
|
|
35
|
-
}
|
|
36
|
-
export interface TargetLabel {
|
|
37
|
-
'app.kubernetes.io/instance': string;
|
|
38
|
-
'app.kubernetes.io/name': string;
|
|
39
|
-
}
|
|
40
|
-
export interface TargetLabels {
|
|
41
|
-
targetLabel: TargetLabel;
|
|
42
|
-
}
|
|
43
|
-
export interface NetworkingInfo {
|
|
44
|
-
targetLabels: TargetLabels;
|
|
45
|
-
}
|
|
46
|
-
export declare enum Nodes {
|
|
47
|
-
Service = "Service",
|
|
48
|
-
Alertmanager = "Alertmanager",
|
|
49
|
-
PodSecurity = "PodSecurityPolicy",
|
|
50
|
-
ConfigMap = "ConfigMap",
|
|
51
|
-
ServiceAccount = "ServiceAccount",
|
|
52
|
-
ClusterRoleBinding = "ClusterRoleBinding",
|
|
53
|
-
RoleBinding = "RoleBinding",
|
|
54
|
-
ClusterRole = "ClusterRole",
|
|
55
|
-
Role = "Role",
|
|
56
|
-
Prometheus = "Prometheus",
|
|
57
|
-
ServiceMonitor = "ServiceMonitor",
|
|
58
|
-
Deployment = "Deployment",
|
|
59
|
-
MutatingWebhookConfiguration = "MutatingWebhookConfiguration",
|
|
60
|
-
DaemonSet = "DaemonSet",
|
|
61
|
-
Secret = "Secret",
|
|
62
|
-
ValidatingWebhookConfiguration = "ValidatingWebhookConfiguration",
|
|
63
|
-
Pod = "Pod",
|
|
64
|
-
Ingress = "Ingress",
|
|
65
|
-
ReplicaSet = "ReplicaSet",
|
|
66
|
-
Endpoints = "Endpoints",
|
|
67
|
-
Cluster = "ClusterRoleBinding",
|
|
68
|
-
PodSecurityPolicy = "PodSecurityPolicy",
|
|
69
|
-
CronJob = "CronJob",
|
|
70
|
-
Job = "Job",
|
|
71
|
-
ReplicationController = "ReplicationController",
|
|
72
|
-
StatefulSet = "StatefulSet",
|
|
73
|
-
Rollout = "Rollout",
|
|
74
|
-
PersistentVolumeClaim = "PersistentVolumeClaim",
|
|
75
|
-
PersistentVolume = "PersistentVolume",
|
|
76
|
-
Containers = "Containers",
|
|
77
|
-
InitContainers = "InitContainers",
|
|
78
|
-
EndpointSlice = "EndpointSlice",
|
|
79
|
-
NetworkPolicy = "NetworkPolicy",
|
|
80
|
-
StorageClass = "StorageClass",
|
|
81
|
-
VolumeSnapshot = "VolumeSnapshot",
|
|
82
|
-
VolumeSnapshotContent = "VolumeSnapshotContent",
|
|
83
|
-
VolumeSnapshotClass = "VolumeSnapshotClass",
|
|
84
|
-
PodDisruptionBudget = "PodDisruptionBudget",
|
|
85
|
-
Event = "Event",
|
|
86
|
-
Namespace = "Namespace",
|
|
87
|
-
Overview = "Overview"
|
|
88
|
-
}
|
|
89
|
-
export type NodeType = keyof typeof Nodes;
|
|
90
|
-
export interface Node {
|
|
91
|
-
createdAt: Date;
|
|
92
|
-
health: Health;
|
|
93
|
-
kind: NodeType;
|
|
94
|
-
name: string;
|
|
95
|
-
namespace: string;
|
|
96
|
-
networkingInfo: NetworkingInfo;
|
|
97
|
-
resourceVersion: string;
|
|
98
|
-
uid: string;
|
|
99
|
-
version: string;
|
|
100
|
-
parentRefs: Array<Node>;
|
|
101
|
-
group: string;
|
|
102
|
-
isSelected: boolean;
|
|
103
|
-
info: Info[];
|
|
104
|
-
port: number;
|
|
105
|
-
canBeHibernated: boolean;
|
|
106
|
-
isHibernated: boolean;
|
|
107
|
-
}
|
|
108
|
-
export interface iNodes extends Array<iNode> {
|
|
109
|
-
}
|
|
110
|
-
export interface iNode extends Node {
|
|
111
|
-
childNodes: iNodes;
|
|
112
|
-
type: NodeType;
|
|
113
|
-
status: string;
|
|
114
|
-
}
|
|
115
|
-
export interface ResourceTree {
|
|
116
|
-
conditions: any;
|
|
117
|
-
newGenerationReplicaSet: string;
|
|
118
|
-
nodes: Array<Node>;
|
|
119
|
-
podMetadata: Array<PodMetaData>;
|
|
120
|
-
status: string;
|
|
121
|
-
resourcesSyncResult?: Record<string, string>;
|
|
122
|
-
}
|
|
123
|
-
export declare enum AppType {
|
|
124
|
-
DEVTRON_APP = "devtron_app",
|
|
125
|
-
DEVTRON_HELM_CHART = "devtron_helm_chart",
|
|
126
|
-
EXTERNAL_HELM_CHART = "external_helm_chart",
|
|
127
|
-
EXTERNAL_ARGO_APP = "external_argo_app"
|
|
128
|
-
}
|
|
129
|
-
export interface HelmReleaseStatus {
|
|
130
|
-
status: string;
|
|
131
|
-
message: string;
|
|
132
|
-
description: string;
|
|
133
|
-
}
|
|
134
|
-
interface MaterialInfo {
|
|
135
|
-
author: string;
|
|
136
|
-
branch: string;
|
|
137
|
-
message: string;
|
|
138
|
-
modifiedTime: string;
|
|
139
|
-
revision: string;
|
|
140
|
-
url: string;
|
|
141
|
-
webhookData: string;
|
|
142
|
-
}
|
|
143
|
-
export interface AppDetails {
|
|
144
|
-
appId?: number;
|
|
145
|
-
appName: string;
|
|
146
|
-
appStoreAppName?: string;
|
|
147
|
-
appStoreAppVersion?: string;
|
|
148
|
-
appStoreChartId?: number;
|
|
149
|
-
appStoreChartName?: string;
|
|
150
|
-
appStoreInstalledAppVersionId?: number;
|
|
151
|
-
ciArtifactId?: number;
|
|
152
|
-
deprecated?: false;
|
|
153
|
-
environmentId?: number;
|
|
154
|
-
environmentName: string;
|
|
155
|
-
installedAppId?: number;
|
|
156
|
-
instanceDetail?: null;
|
|
157
|
-
k8sVersion?: string;
|
|
158
|
-
lastDeployedBy?: string;
|
|
159
|
-
lastDeployedTime: string;
|
|
160
|
-
namespace: string;
|
|
161
|
-
resourceTree: ResourceTree;
|
|
162
|
-
materialInfo?: MaterialInfo[];
|
|
163
|
-
releaseVersion?: string;
|
|
164
|
-
dataSource?: string;
|
|
165
|
-
lastDeployedPipeline?: string;
|
|
166
|
-
otherEnvironment?: OtherEnvironment[];
|
|
167
|
-
projectName?: string;
|
|
168
|
-
appType?: AppType;
|
|
169
|
-
helmReleaseStatus?: HelmReleaseStatus;
|
|
170
|
-
clusterId?: number;
|
|
171
|
-
notes?: string;
|
|
172
|
-
deploymentAppType?: DeploymentAppTypes;
|
|
173
|
-
ipsAccessProvided?: boolean;
|
|
174
|
-
externalCi?: boolean;
|
|
175
|
-
clusterName?: string;
|
|
176
|
-
dockerRegistryId?: string;
|
|
177
|
-
deploymentAppDeleteRequest?: boolean;
|
|
178
|
-
userApprovalConfig?: string;
|
|
179
|
-
isVirtualEnvironment?: boolean;
|
|
180
|
-
imageTag?: string;
|
|
181
|
-
helmPackageName?: string;
|
|
182
|
-
appStatus?: string;
|
|
183
|
-
chartAvatar?: string;
|
|
184
|
-
}
|
|
185
4
|
export declare enum RegistryType {
|
|
186
5
|
GIT = "git",
|
|
187
6
|
GITHUB = "github",
|
|
@@ -351,7 +170,7 @@ export declare enum ResourceKindType {
|
|
|
351
170
|
cluster = "cluster",
|
|
352
171
|
release = "release",
|
|
353
172
|
releaseTrack = "release-track",
|
|
354
|
-
|
|
173
|
+
tenant = "tenant"
|
|
355
174
|
}
|
|
356
175
|
/**
|
|
357
176
|
* Versions support for the resources on BE
|
|
@@ -391,14 +210,54 @@ export declare enum WebhookEventNameType {
|
|
|
391
210
|
PULL_REQUEST = "Pull Request",
|
|
392
211
|
TAG_CREATION = "Tag Creation"
|
|
393
212
|
}
|
|
394
|
-
export
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
213
|
+
export declare enum Nodes {
|
|
214
|
+
Service = "Service",
|
|
215
|
+
Alertmanager = "Alertmanager",
|
|
216
|
+
PodSecurity = "PodSecurityPolicy",
|
|
217
|
+
ConfigMap = "ConfigMap",
|
|
218
|
+
ServiceAccount = "ServiceAccount",
|
|
219
|
+
ClusterRoleBinding = "ClusterRoleBinding",
|
|
220
|
+
RoleBinding = "RoleBinding",
|
|
221
|
+
ClusterRole = "ClusterRole",
|
|
222
|
+
Role = "Role",
|
|
223
|
+
Prometheus = "Prometheus",
|
|
224
|
+
ServiceMonitor = "ServiceMonitor",
|
|
225
|
+
Deployment = "Deployment",
|
|
226
|
+
MutatingWebhookConfiguration = "MutatingWebhookConfiguration",
|
|
227
|
+
DaemonSet = "DaemonSet",
|
|
228
|
+
Secret = "Secret",
|
|
229
|
+
ValidatingWebhookConfiguration = "ValidatingWebhookConfiguration",
|
|
230
|
+
Pod = "Pod",
|
|
231
|
+
Ingress = "Ingress",
|
|
232
|
+
ReplicaSet = "ReplicaSet",
|
|
233
|
+
Endpoints = "Endpoints",
|
|
234
|
+
Cluster = "ClusterRoleBinding",
|
|
235
|
+
PodSecurityPolicy = "PodSecurityPolicy",
|
|
236
|
+
CronJob = "CronJob",
|
|
237
|
+
Job = "Job",
|
|
238
|
+
ReplicationController = "ReplicationController",
|
|
239
|
+
StatefulSet = "StatefulSet",
|
|
240
|
+
Rollout = "Rollout",
|
|
241
|
+
PersistentVolumeClaim = "PersistentVolumeClaim",
|
|
242
|
+
PersistentVolume = "PersistentVolume",
|
|
243
|
+
Containers = "Containers",
|
|
244
|
+
InitContainers = "InitContainers",
|
|
245
|
+
EndpointSlice = "EndpointSlice",
|
|
246
|
+
NetworkPolicy = "NetworkPolicy",
|
|
247
|
+
StorageClass = "StorageClass",
|
|
248
|
+
VolumeSnapshot = "VolumeSnapshot",
|
|
249
|
+
VolumeSnapshotContent = "VolumeSnapshotContent",
|
|
250
|
+
VolumeSnapshotClass = "VolumeSnapshotClass",
|
|
251
|
+
PodDisruptionBudget = "PodDisruptionBudget",
|
|
252
|
+
Event = "Event",
|
|
253
|
+
Namespace = "Namespace",
|
|
254
|
+
Overview = "Overview"
|
|
255
|
+
}
|
|
256
|
+
export type NodeType = keyof typeof Nodes;
|
|
257
|
+
export interface InputFieldState<T = string> {
|
|
258
|
+
value: T;
|
|
259
|
+
error: string;
|
|
260
|
+
}
|
|
402
261
|
export declare enum AggregationKeys {
|
|
403
262
|
Workloads = "Workloads",
|
|
404
263
|
Networking = "Networking",
|
|
@@ -411,11 +270,25 @@ export declare enum AggregationKeys {
|
|
|
411
270
|
Namespaces = "Namespaces"
|
|
412
271
|
}
|
|
413
272
|
export type AggregationKeysType = keyof typeof AggregationKeys;
|
|
414
|
-
export interface
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
273
|
+
export interface EnvironmentType {
|
|
274
|
+
/**
|
|
275
|
+
* Unique identifier for the environment
|
|
276
|
+
*/
|
|
277
|
+
id: number;
|
|
278
|
+
/**
|
|
279
|
+
* Name of the environment
|
|
280
|
+
*/
|
|
281
|
+
name: string;
|
|
282
|
+
/**
|
|
283
|
+
* Associated namespace for the environment
|
|
284
|
+
*/
|
|
285
|
+
namespace: string;
|
|
286
|
+
/**
|
|
287
|
+
* Type of the environment
|
|
288
|
+
*/
|
|
289
|
+
environmentType: EnvironmentTypeEnum;
|
|
290
|
+
/**
|
|
291
|
+
* Associated cluster for the environment
|
|
292
|
+
*/
|
|
293
|
+
cluster: string;
|
|
420
294
|
}
|
|
421
|
-
export {};
|
|
@@ -8,6 +8,7 @@ export declare const MESSAGES: {
|
|
|
8
8
|
CAN_NOT_START_END_WITH_SEPARATORS: string;
|
|
9
9
|
getMinMaxCharMessage: (min: number, max: number) => string;
|
|
10
10
|
getMaxCharMessage: (max: number) => string;
|
|
11
|
+
getMinCharMessage: (min: number) => string;
|
|
11
12
|
VALID_POSITIVE_NUMBER: string;
|
|
12
13
|
VALID_POSITIVE_INTEGER: string;
|
|
13
14
|
MAX_SAFE_INTEGER: string;
|
|
@@ -15,5 +16,7 @@ export declare const MESSAGES: {
|
|
|
15
16
|
export declare const requiredField: (value: string) => ValidationResponseType;
|
|
16
17
|
export declare const validateName: (name: string) => ValidationResponseType;
|
|
17
18
|
export declare const validateDescription: (description: string) => ValidationResponseType;
|
|
19
|
+
export declare const validateStringLength: (value: string, maxLimit: number, minLimit: number) => ValidationResponseType;
|
|
18
20
|
export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
|
|
19
21
|
export declare const validateRequiredPositiveInteger: (value: string | number) => ValidationResponseType;
|
|
22
|
+
export declare const validateURL: (url: string) => ValidationResponseType;
|