@devtron-labs/devtron-fe-common-lib 0.0.84-beta-4 → 0.0.84-beta-5
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/ImageWithFallback/ImageWithFallback.component.d.ts +4 -0
- package/dist/Shared/Components/ImageWithFallback/index.d.ts +2 -0
- package/dist/Shared/Components/ImageWithFallback/types.d.ts +12 -0
- package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +4 -0
- package/dist/Shared/Components/ModalSidebarPanel/index.d.ts +2 -0
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +9 -0
- package/dist/Shared/Components/index.d.ts +2 -3
- package/dist/Shared/Helpers.d.ts +3 -6
- package/dist/Shared/Services/cluster.service.d.ts +3 -0
- package/dist/Shared/Services/common.service.d.ts +3 -0
- package/dist/Shared/Services/index.d.ts +3 -0
- package/dist/Shared/Services/mock.d.ts +3 -0
- package/dist/Shared/Services/types.d.ts +13 -0
- package/dist/Shared/constants.d.ts +3 -299
- package/dist/Shared/index.d.ts +2 -1
- package/dist/Shared/types.d.ts +77 -198
- package/dist/Shared/validations.d.ts +4 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-9390463e.js → cssMode-008c0de7.js} +1 -1
- package/dist/{freemarker2-45d9c87f.js → freemarker2-8e5e4f13.js} +1 -1
- package/dist/{handlebars-0272cb91.js → handlebars-646b5274.js} +1 -1
- package/dist/{html-f8322193.js → html-94a44a22.js} +1 -1
- package/dist/{htmlMode-5eeed339.js → htmlMode-623b0b18.js} +1 -1
- package/dist/{index-3fdc8a6f.js → index-7b1d323d.js} +114670 -119572
- package/dist/index.js +331 -398
- package/dist/{javascript-08bc2f30.js → javascript-67782c0b.js} +1 -1
- package/dist/{jsonMode-4272a3ca.js → jsonMode-936fd21d.js} +1 -1
- package/dist/{liquid-ab223e02.js → liquid-dc97738e.js} +1 -1
- package/dist/{mdx-f3b3175b.js → mdx-f8471e07.js} +1 -1
- package/dist/{python-fe4d4e69.js → python-9e9944c6.js} +1 -1
- package/dist/{razor-37067534.js → razor-8b62b848.js} +1 -1
- package/dist/{tsMode-6ca5922c.js → tsMode-7a581544.js} +1 -1
- package/dist/{typescript-5a0fc241.js → typescript-b0489d47.js} +1 -1
- package/dist/{xml-1dbfa98d.js → xml-7b50e333.js} +1 -1
- package/dist/{yaml-527abc47.js → yaml-d402dfe6.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 -17
- 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,8 @@ export declare enum ResourceKindType {
|
|
|
351
170
|
cluster = "cluster",
|
|
352
171
|
release = "release",
|
|
353
172
|
releaseTrack = "release-track",
|
|
354
|
-
|
|
173
|
+
tenant = "tenant",
|
|
174
|
+
installation = "installation"
|
|
355
175
|
}
|
|
356
176
|
/**
|
|
357
177
|
* Versions support for the resources on BE
|
|
@@ -391,14 +211,54 @@ export declare enum WebhookEventNameType {
|
|
|
391
211
|
PULL_REQUEST = "Pull Request",
|
|
392
212
|
TAG_CREATION = "Tag Creation"
|
|
393
213
|
}
|
|
394
|
-
export
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
214
|
+
export declare enum Nodes {
|
|
215
|
+
Service = "Service",
|
|
216
|
+
Alertmanager = "Alertmanager",
|
|
217
|
+
PodSecurity = "PodSecurityPolicy",
|
|
218
|
+
ConfigMap = "ConfigMap",
|
|
219
|
+
ServiceAccount = "ServiceAccount",
|
|
220
|
+
ClusterRoleBinding = "ClusterRoleBinding",
|
|
221
|
+
RoleBinding = "RoleBinding",
|
|
222
|
+
ClusterRole = "ClusterRole",
|
|
223
|
+
Role = "Role",
|
|
224
|
+
Prometheus = "Prometheus",
|
|
225
|
+
ServiceMonitor = "ServiceMonitor",
|
|
226
|
+
Deployment = "Deployment",
|
|
227
|
+
MutatingWebhookConfiguration = "MutatingWebhookConfiguration",
|
|
228
|
+
DaemonSet = "DaemonSet",
|
|
229
|
+
Secret = "Secret",
|
|
230
|
+
ValidatingWebhookConfiguration = "ValidatingWebhookConfiguration",
|
|
231
|
+
Pod = "Pod",
|
|
232
|
+
Ingress = "Ingress",
|
|
233
|
+
ReplicaSet = "ReplicaSet",
|
|
234
|
+
Endpoints = "Endpoints",
|
|
235
|
+
Cluster = "ClusterRoleBinding",
|
|
236
|
+
PodSecurityPolicy = "PodSecurityPolicy",
|
|
237
|
+
CronJob = "CronJob",
|
|
238
|
+
Job = "Job",
|
|
239
|
+
ReplicationController = "ReplicationController",
|
|
240
|
+
StatefulSet = "StatefulSet",
|
|
241
|
+
Rollout = "Rollout",
|
|
242
|
+
PersistentVolumeClaim = "PersistentVolumeClaim",
|
|
243
|
+
PersistentVolume = "PersistentVolume",
|
|
244
|
+
Containers = "Containers",
|
|
245
|
+
InitContainers = "InitContainers",
|
|
246
|
+
EndpointSlice = "EndpointSlice",
|
|
247
|
+
NetworkPolicy = "NetworkPolicy",
|
|
248
|
+
StorageClass = "StorageClass",
|
|
249
|
+
VolumeSnapshot = "VolumeSnapshot",
|
|
250
|
+
VolumeSnapshotContent = "VolumeSnapshotContent",
|
|
251
|
+
VolumeSnapshotClass = "VolumeSnapshotClass",
|
|
252
|
+
PodDisruptionBudget = "PodDisruptionBudget",
|
|
253
|
+
Event = "Event",
|
|
254
|
+
Namespace = "Namespace",
|
|
255
|
+
Overview = "Overview"
|
|
256
|
+
}
|
|
257
|
+
export type NodeType = keyof typeof Nodes;
|
|
258
|
+
export interface InputFieldState<T = string> {
|
|
259
|
+
value: T;
|
|
260
|
+
error: string;
|
|
261
|
+
}
|
|
402
262
|
export declare enum AggregationKeys {
|
|
403
263
|
Workloads = "Workloads",
|
|
404
264
|
Networking = "Networking",
|
|
@@ -411,11 +271,30 @@ export declare enum AggregationKeys {
|
|
|
411
271
|
Namespaces = "Namespaces"
|
|
412
272
|
}
|
|
413
273
|
export type AggregationKeysType = keyof typeof AggregationKeys;
|
|
414
|
-
export interface
|
|
415
|
-
|
|
274
|
+
export interface EnvironmentType {
|
|
275
|
+
/**
|
|
276
|
+
* Unique identifier for the environment
|
|
277
|
+
*/
|
|
278
|
+
id: number;
|
|
279
|
+
/**
|
|
280
|
+
* Name of the environment
|
|
281
|
+
*/
|
|
282
|
+
name: string;
|
|
283
|
+
/**
|
|
284
|
+
* Associated namespace for the environment
|
|
285
|
+
*/
|
|
286
|
+
namespace: string;
|
|
287
|
+
/**
|
|
288
|
+
* Type of the environment
|
|
289
|
+
*/
|
|
290
|
+
environmentType: EnvironmentTypeEnum;
|
|
291
|
+
/**
|
|
292
|
+
* Associated cluster for the environment
|
|
293
|
+
*/
|
|
294
|
+
cluster: string;
|
|
416
295
|
}
|
|
417
|
-
export
|
|
418
|
-
|
|
419
|
-
|
|
296
|
+
export interface CreatedByDTO {
|
|
297
|
+
icon: boolean;
|
|
298
|
+
id: number;
|
|
299
|
+
name: string;
|
|
420
300
|
}
|
|
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,8 @@ 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, allowBase64Url?: boolean) => ValidationResponseType;
|
|
23
|
+
export declare const validateIfImageExist: (url: string) => Promise<ValidationResponseType>;
|