@devtron-labs/devtron-fe-common-lib 0.0.84-beta-3 → 0.0.84-beta-4

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.
Files changed (76) hide show
  1. package/dist/Common/Api.d.ts +1 -1
  2. package/dist/Common/AppStatus/constants.d.ts +0 -20
  3. package/dist/Common/AppStatus/index.d.ts +1 -0
  4. package/dist/Common/Constants.d.ts +19 -0
  5. package/dist/Common/Dialogs/Types.d.ts +2 -17
  6. package/dist/Common/Helper.d.ts +8 -0
  7. package/dist/Common/Hooks/useStateFilters/types.d.ts +1 -1
  8. package/dist/Common/Modals/Modal.d.ts +0 -3
  9. package/dist/Common/Modals/OpaqueModal.d.ts +0 -3
  10. package/dist/Common/Pagination/index.d.ts +1 -0
  11. package/dist/Common/PopupMenu.d.ts +1 -1
  12. package/dist/Common/Types.d.ts +0 -1
  13. package/dist/Common/index.d.ts +1 -0
  14. package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +4 -0
  15. package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +5 -0
  16. package/dist/Shared/Components/CICDHistory/CDEmptyState.d.ts +14 -0
  17. package/dist/Shared/Components/CICDHistory/CiPipelineSourceConfig.d.ts +11 -0
  18. package/dist/Shared/Components/CICDHistory/DeploymentDetailSteps.d.ts +4 -0
  19. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryConfigList.component.d.ts +4 -0
  20. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDetailedView.d.ts +4 -0
  21. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +4 -0
  22. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryHeader.d.ts +4 -0
  23. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistorySidebar.d.ts +4 -0
  24. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/index.d.ts +3 -0
  25. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +36 -0
  26. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/utils.d.ts +11 -0
  27. package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +4 -0
  28. package/dist/Shared/Components/CICDHistory/DeploymentStatusDetailRow.d.ts +3 -0
  29. package/dist/Shared/Components/CICDHistory/DetectBottom.d.ts +4 -0
  30. package/dist/Shared/Components/CICDHistory/ErrorInfoStatusBar.d.ts +3 -0
  31. package/dist/Shared/Components/CICDHistory/History.components.d.ts +5 -0
  32. package/dist/Shared/Components/CICDHistory/LogsRenderer.d.ts +4 -0
  33. package/dist/Shared/Components/CICDHistory/Sidebar.d.ts +5 -0
  34. package/dist/Shared/Components/CICDHistory/StatusFilterButtonComponent.d.ts +3 -0
  35. package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +6 -0
  36. package/dist/Shared/Components/CICDHistory/constants.d.ts +45 -0
  37. package/dist/Shared/Components/CICDHistory/index.d.ts +17 -0
  38. package/dist/Shared/Components/CICDHistory/service.d.ts +28 -0
  39. package/dist/Shared/Components/CICDHistory/types.d.ts +588 -0
  40. package/dist/Shared/Components/CICDHistory/utils.d.ts +4 -0
  41. package/dist/Shared/Components/Error/ErrorBar.d.ts +4 -0
  42. package/dist/Shared/Components/Error/index.d.ts +2 -0
  43. package/dist/Shared/Components/Error/types.d.ts +9 -0
  44. package/dist/Shared/Components/Error/utils.d.ts +3 -0
  45. package/dist/Shared/Components/GitCommitInfoGeneric/GitCommitInfoGeneric.d.ts +4 -0
  46. package/dist/Shared/Components/GitCommitInfoGeneric/GitMaterialInfoHeader.d.ts +9 -0
  47. package/dist/Shared/Components/GitCommitInfoGeneric/index.d.ts +1 -0
  48. package/dist/Shared/Components/GitCommitInfoGeneric/types.d.ts +11 -0
  49. package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +5 -0
  50. package/dist/Shared/Components/index.d.ts +3 -0
  51. package/dist/Shared/Helpers.d.ts +6 -1
  52. package/dist/Shared/Store/IndexStore.d.ts +48 -0
  53. package/dist/Shared/Store/index.d.ts +1 -0
  54. package/dist/Shared/constants.d.ts +299 -3
  55. package/dist/Shared/index.d.ts +1 -1
  56. package/dist/Shared/types.d.ts +199 -72
  57. package/dist/Shared/validations.d.ts +0 -3
  58. package/dist/assets/index.css +1 -1
  59. package/dist/{cssMode-891e1d60.js → cssMode-9390463e.js} +1 -1
  60. package/dist/{freemarker2-17a3ef5f.js → freemarker2-45d9c87f.js} +1 -1
  61. package/dist/{handlebars-9a82f999.js → handlebars-0272cb91.js} +1 -1
  62. package/dist/{html-17150855.js → html-f8322193.js} +1 -1
  63. package/dist/{htmlMode-cfd414ef.js → htmlMode-5eeed339.js} +1 -1
  64. package/dist/{index-a31b3f6b.js → index-3fdc8a6f.js} +59585 -54608
  65. package/dist/index.js +399 -326
  66. package/dist/{javascript-7e65bd30.js → javascript-08bc2f30.js} +1 -1
  67. package/dist/{jsonMode-b53e09d1.js → jsonMode-4272a3ca.js} +1 -1
  68. package/dist/{liquid-536dd4ae.js → liquid-ab223e02.js} +1 -1
  69. package/dist/{mdx-249b908e.js → mdx-f3b3175b.js} +1 -1
  70. package/dist/{python-0d7512cf.js → python-fe4d4e69.js} +1 -1
  71. package/dist/{razor-39b5fa81.js → razor-37067534.js} +1 -1
  72. package/dist/{tsMode-9cf4451c.js → tsMode-6ca5922c.js} +1 -1
  73. package/dist/{typescript-b8c3ff6e.js → typescript-5a0fc241.js} +1 -1
  74. package/dist/{xml-6fc18d50.js → xml-1dbfa98d.js} +1 -1
  75. package/dist/{yaml-ec291850.js → yaml-527abc47.js} +1 -1
  76. package/package.json +17 -15
@@ -0,0 +1,48 @@
1
+ import { AppDetails, AppType, EnvDetails, Node, PodMetaData, iNode } from '../types';
2
+
3
+ export declare function getiNodesByRootNodeWithChildNodes(_nodes: Array<Node>, rootNodes: Array<iNode>, podMetadata?: Array<PodMetaData>): Array<iNode>;
4
+ export declare const reduceKindStatus: (aggregatedStatus: string, newStatus: string) => "healthy" | "progressing" | "degraded";
5
+ export declare function getiNodesByKindWithChildNodes(_nodes: Array<Node>, _kind: string): Array<iNode>;
6
+ export declare function getPodsRootParentNameAndStatus(_nodes: Array<Node>): Array<[string, string]>;
7
+ export declare const getPodsForRootNodeName: (_rootNode: string, _treeNodes: Array<Node>) => Array<iNode>;
8
+ export declare const IndexStore: {
9
+ setEnvDetails: (envType: string, appId: number, envId: number) => void;
10
+ getEnvDetails: () => EnvDetails;
11
+ getEnvDetailsObservable: () => import('rxjs').Observable<EnvDetails>;
12
+ publishAppDetails: (data: AppDetails, appType: AppType) => void;
13
+ getAppDetails: () => AppDetails;
14
+ getAppDetailsObservable: () => import('rxjs').Observable<AppDetails>;
15
+ getAppDetailsNodes: () => Node[];
16
+ getAppDetailsNodesObservable: () => import('rxjs').Observable<Node[]>;
17
+ getAppDetailsFilteredNodes: () => Node[];
18
+ getAppDetailsNodesFilteredObservable: () => import('rxjs').Observable<Node[]>;
19
+ getiNodesByKind: (_kind: string) => iNode[];
20
+ getNodesByKind: (_kind: string) => Node[];
21
+ getMetaDataForPod: (_name: string) => PodMetaData;
22
+ getPodMetaData: () => PodMetaData[];
23
+ getPodsForRootNode: (rootNode: string) => Array<iNode>;
24
+ getAllPodNames: () => string[];
25
+ getPodsRootParentNameAndStatus: () => Array<[
26
+ string,
27
+ string
28
+ ]>;
29
+ getAllContainersForPod: (_name: string) => string[];
30
+ getAllContainers: () => {
31
+ containers: any[];
32
+ pods: PodMetaData[];
33
+ };
34
+ getAllNewContainers: () => {
35
+ containers: any[];
36
+ pods: PodMetaData[];
37
+ };
38
+ getAllOldContainers: () => {
39
+ containers: any[];
40
+ pods: PodMetaData[];
41
+ };
42
+ getAllPods: () => PodMetaData[];
43
+ getAllNewPods: () => PodMetaData[];
44
+ getAllOldPods: () => PodMetaData[];
45
+ getPodForAContainer: (_c: string) => any;
46
+ updateFilterType: (filterType: string) => void;
47
+ updateFilterSearch: (searchString: string) => void;
48
+ };
@@ -0,0 +1 @@
1
+ export * from './IndexStore';
@@ -43,7 +43,303 @@ export declare enum DeploymentWithConfigType {
43
43
  LATEST_TRIGGER_CONFIG = "LATEST_TRIGGER_CONFIG",
44
44
  SPECIFIC_TRIGGER_CONFIG = "SPECIFIC_TRIGGER_CONFIG"
45
45
  }
46
- export declare enum EnvironmentTypeEnum {
47
- production = "Production",
48
- nonProduction = "Non-Production"
46
+ export declare enum TIMELINE_STATUS {
47
+ DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED",
48
+ GIT_COMMIT = "GIT_COMMIT",
49
+ GIT_COMMIT_FAILED = "GIT_COMMIT_FAILED",
50
+ ARGOCD_SYNC = "ARGOCD_SYNC",
51
+ ARGOCD_SYNC_FAILED = "ARGOCD_SYNC_FAILED",
52
+ KUBECTL_APPLY = "KUBECTL_APPLY",
53
+ KUBECTL_APPLY_STARTED = "KUBECTL_APPLY_STARTED",
54
+ KUBECTL_APPLY_SYNCED = "KUBECTL_APPLY_SYNCED",
55
+ HEALTHY = "HEALTHY",
56
+ APP_HEALTH = "APP_HEALTH",
57
+ DEPLOYMENT_FAILED = "FAILED",
58
+ FETCH_TIMED_OUT = "TIMED_OUT",
59
+ UNABLE_TO_FETCH_STATUS = "UNABLE_TO_FETCH_STATUS",
60
+ DEGRADED = "DEGRADED",
61
+ DEPLOYMENT_SUPERSEDED = "DEPLOYMENT_SUPERSEDED",
62
+ ABORTED = "ABORTED",
63
+ INPROGRESS = "INPROGRESS",
64
+ HELM_PACKAGE_GENERATED = "HELM_PACKAGE_GENERATED",
65
+ HELM_MANIFEST_PUSHED_TO_HELM_REPO = "HELM_MANIFEST_PUSHED_TO_HELM_REPO",
66
+ HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED = "HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED"
49
67
  }
68
+ export declare const EMPTY_STATE_STATUS: {
69
+ DATA_NOT_AVAILABLE: string;
70
+ API_TOKEN: {
71
+ TITLE: string;
72
+ SUBTITLE: string;
73
+ };
74
+ ARTIFACTS_EMPTY_STATE_TEXTS: {
75
+ NoFilesFound: string;
76
+ BlobStorageNotConfigured: string;
77
+ StoreFiles: string;
78
+ ConfigureBlobStorage: string;
79
+ NoFilesGenerated: string;
80
+ NoArtifactsGenerated: string;
81
+ NoArtifactsError: string;
82
+ FailedToFetchArtifacts: string;
83
+ FailedToFetchArtifactsError: string;
84
+ NoArtifactsFound: string;
85
+ NoArtifactsFoundError: string;
86
+ };
87
+ CI_BUILD_HISTORY_PIPELINE_TRIGGER: {
88
+ TITLE: string;
89
+ SUBTITLE: string;
90
+ };
91
+ CI_BUILD_HISTORY_LINKED_PIPELINE: {
92
+ TITLE: string;
93
+ SUBTITLE: string;
94
+ };
95
+ CI_BUILD_HISTORY_NO_PIPELINE: {
96
+ TITLE: string;
97
+ SUBTITLE: string;
98
+ };
99
+ CI_DEATILS_NO_VULNERABILITY_FOUND: {
100
+ TITLE: string;
101
+ SUBTITLE: string;
102
+ };
103
+ CI_DETAILS_IMAGE_SCANNED_DISABLED: string;
104
+ CI_DETAILS_IMAGE_NOT_SCANNED: {
105
+ TITLE: string;
106
+ SUBTITLE: string;
107
+ };
108
+ CD_DETAILS_NO_ENVIRONMENT: {
109
+ TITLE: string;
110
+ SUBTITLE: string;
111
+ };
112
+ CD_DETAILS_NO_DEPLOYMENT: {
113
+ TITLE: string;
114
+ SUBTITLE: string;
115
+ };
116
+ CHART: {
117
+ NO_SOURCE_TITLE: string;
118
+ NO_CHART_FOUND: string;
119
+ };
120
+ CHART_DEPLOYMENT_HISTORY: {
121
+ SUBTITLE: string;
122
+ };
123
+ CHART_GROUP_DEPLOYMENT: {
124
+ TITLE: string;
125
+ SUBTITLE: string;
126
+ };
127
+ DEPLOYMENT_DETAILS_SETPS_FAILED: {
128
+ TITLE: string;
129
+ SUBTITLE: string;
130
+ };
131
+ DEPLOYMENT_DETAILS_SETPS_PROGRESSING: {
132
+ TITLE: string;
133
+ SUBTITLE: string;
134
+ };
135
+ DEVTRON_APP_DEPLOYMENT_HISTORY_SOURCE_CODE: {
136
+ SUBTITLE: string;
137
+ };
138
+ DEPLOYMENT_HISTORY_CONFIG_LIST: {
139
+ SUBTITLE: string;
140
+ };
141
+ GENERATE_API_TOKEN: {
142
+ TITLE: string;
143
+ SUBTITLE: string;
144
+ };
145
+ TRIGGER_URL: {
146
+ TITLE: string;
147
+ SUBTITLE: string;
148
+ };
149
+ CD_EMPTY_STATE: {
150
+ TITLE: string;
151
+ SUBTITLE: string;
152
+ };
153
+ CI_PROGRESS_VIEW: {
154
+ TITLE: string;
155
+ SUBTITLE: string;
156
+ };
157
+ RENDER_EMPTY_STATE: {
158
+ TITILE: string;
159
+ SUBTITLE: string;
160
+ };
161
+ RENDER_NO_ENVIORNMENT_STATE: {
162
+ TITLE: string;
163
+ SUBTITLE: string;
164
+ };
165
+ RENDER_SELECT_ENVIRONMENT_VIEW: {
166
+ TITLE: string;
167
+ SUBTITLE: string;
168
+ };
169
+ SAVED_VALUES_EMPTY_STATE: {
170
+ TITLE: string;
171
+ SUBTITLE: string;
172
+ };
173
+ LOADING_CLUSTER: {
174
+ TITLE: string;
175
+ SUBTITLE: string;
176
+ };
177
+ NO_MATCHING_RESULT: {
178
+ TITLE: string;
179
+ SUBTITLE: string;
180
+ };
181
+ CLUSTER_NODE_EMPTY_STATE: {
182
+ TITLE: string;
183
+ SUBTITLE: string;
184
+ };
185
+ CHART_EMPTY_STATE: {
186
+ TITLE: string;
187
+ SUBTITLE: string;
188
+ };
189
+ CHART_VALUES_GUIT_VIEW: {
190
+ SUBTITLE: string;
191
+ };
192
+ DEVTRON_STACK_MANAGER: {
193
+ TITLE: string;
194
+ SUBTITLE: string;
195
+ };
196
+ NO_GROUPS: {
197
+ TITLE: string;
198
+ SUBTITLE: string;
199
+ };
200
+ NO_USER: {
201
+ TITLE: string;
202
+ SUBTITLE: string;
203
+ };
204
+ RENDER_LIST: {
205
+ SUBTITLE: string;
206
+ };
207
+ CUSTOM_CHART_LIST: {
208
+ TITLE: string;
209
+ };
210
+ BULK_ACTION_EDITS: {
211
+ TITLE: string;
212
+ SUBTITLE: string;
213
+ };
214
+ SECURITY_SCANS: {
215
+ TITLE: string;
216
+ SUBTITLE: string;
217
+ };
218
+ NOTIFICATION_TAB: {
219
+ TITLE: string;
220
+ SUBTITL: string;
221
+ };
222
+ CONFIGURATION_TAB: {
223
+ TITLE: string;
224
+ };
225
+ EXTERNAL_LINK_COMPONENT: {
226
+ TITLE: string;
227
+ SUBTITLE: string;
228
+ };
229
+ CD_MATERIAL: {
230
+ TITLE: string;
231
+ };
232
+ CI_DETAILS_NOT_FOUND: {
233
+ TITLE: string;
234
+ SUBTITLE: string;
235
+ };
236
+ TRIGGER_NOT_FOUND: {
237
+ TITLE: string;
238
+ SUBTITLE: string;
239
+ };
240
+ OVERVIEW: {
241
+ DEPLOYMENT_TITLE: string;
242
+ DEPLOYMENT_SUB_TITLE: string;
243
+ APP_DESCRIPTION: string;
244
+ JOB_DESCRIPTION: string;
245
+ };
246
+ };
247
+ export declare const DEPLOYMENT_HISTORY_CONFIGURATION_LIST_MAP: {
248
+ DEPLOYMENT_TEMPLATE: {
249
+ DISPLAY_NAME: string;
250
+ VALUE: string;
251
+ };
252
+ PIPELINE_STRATEGY: {
253
+ DISPLAY_NAME: string;
254
+ VALUE: string;
255
+ };
256
+ CONFIGMAP: {
257
+ DISPLAY_NAME: string;
258
+ VALUE: string;
259
+ };
260
+ SECRET: {
261
+ DISPLAY_NAME: string;
262
+ VALUE: string;
263
+ };
264
+ };
265
+ export declare const EXTERNAL_TYPES: {
266
+ [x: string]: {
267
+ '': string;
268
+ KubernetesSecret: string;
269
+ AWSSecretsManager: string;
270
+ AWSSystemManager: string;
271
+ HashiCorpVault: string;
272
+ ESO_HashiCorpVault: string;
273
+ ESO_AWSSecretsManager: string;
274
+ ESO_GoogleSecretsManager: string;
275
+ ESO_AzureSecretsManager: string;
276
+ KubernetesConfigMap?: undefined;
277
+ } | {
278
+ '': string;
279
+ KubernetesConfigMap: string;
280
+ KubernetesSecret?: undefined;
281
+ AWSSecretsManager?: undefined;
282
+ AWSSystemManager?: undefined;
283
+ HashiCorpVault?: undefined;
284
+ ESO_HashiCorpVault?: undefined;
285
+ ESO_AWSSecretsManager?: undefined;
286
+ ESO_GoogleSecretsManager?: undefined;
287
+ ESO_AzureSecretsManager?: undefined;
288
+ };
289
+ };
290
+ export declare const DEPLOYMENT_STATUS: {
291
+ readonly SUCCEEDED: "succeeded";
292
+ readonly HEALTHY: "healthy";
293
+ readonly FAILED: "failed";
294
+ readonly TIMED_OUT: "timed_out";
295
+ readonly UNABLE_TO_FETCH: "unable_to_fetch";
296
+ readonly INPROGRESS: "inprogress";
297
+ readonly PROGRESSING: "progressing";
298
+ readonly STARTING: "starting";
299
+ readonly INITIATING: "initiating";
300
+ readonly SUPERSEDED: "superseded";
301
+ readonly QUEUED: "queued";
302
+ readonly UNKNOWN: "unknown";
303
+ readonly CHECKING: "checking";
304
+ };
305
+ export declare const statusIcon: {
306
+ failed: string;
307
+ queued: string;
308
+ suspended: string;
309
+ starting: string;
310
+ initiating: string;
311
+ unknown: string;
312
+ degraded: string;
313
+ healthy: string;
314
+ notdeployed: string;
315
+ missing: string;
316
+ progressing: string;
317
+ deploymentinitiated: string;
318
+ hibernating: string;
319
+ succeeded: string;
320
+ timedout: string;
321
+ unabletofetch: string;
322
+ };
323
+ export declare const statusColor: {
324
+ suspended: string;
325
+ unknown: string;
326
+ queued: string;
327
+ degraded: string;
328
+ healthy: string;
329
+ notdeployed: string;
330
+ missing: string;
331
+ progressing: string;
332
+ initiating: string;
333
+ starting: string;
334
+ succeeded: string;
335
+ running: string;
336
+ failed: string;
337
+ error: string;
338
+ cancelled: string;
339
+ aborted: string;
340
+ timedout: string;
341
+ unabletofetch: string;
342
+ hibernating: string;
343
+ };
344
+ export declare const APP_STATUS_HEADERS: string[];
345
+ export declare const MATERIAL_EXCLUDE_TIPPY_TEXT = "Not available for build as this commit contains changes in excluded files or folders";
@@ -1,7 +1,7 @@
1
1
  export * from './Components';
2
2
  export * from './validations';
3
3
  export * from './Helpers';
4
- export * from './constants';
5
4
  export * from './types';
6
5
  export * from './Providers';
7
6
  export * from './constants';
7
+ export * from './Store';
@@ -1,6 +1,187 @@
1
- import { EnvironmentTypeEnum, PatchOperationType } from './constants';
2
- import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType } from '../Common';
1
+ import { PatchOperationType } from './constants';
2
+ import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes } 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
+ }
4
185
  export declare enum RegistryType {
5
186
  GIT = "git",
6
187
  GITHUB = "github",
@@ -170,7 +351,7 @@ export declare enum ResourceKindType {
170
351
  cluster = "cluster",
171
352
  release = "release",
172
353
  releaseTrack = "release-track",
173
- tenant = "tenant"
354
+ cdPipeline = "cd-pipeline"
174
355
  }
175
356
  /**
176
357
  * Versions support for the resources on BE
@@ -210,54 +391,14 @@ export declare enum WebhookEventNameType {
210
391
  PULL_REQUEST = "Pull Request",
211
392
  TAG_CREATION = "Tag Creation"
212
393
  }
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
- }
394
+ export type IntersectionOptions = {
395
+ root?: React.RefObject<Element>;
396
+ rootMargin?: string;
397
+ threshold?: number | number[];
398
+ once?: boolean;
399
+ defaultIntersecting?: boolean;
400
+ };
401
+ export type IntersectionChangeHandler = (entry: IntersectionObserverEntry) => void;
261
402
  export declare enum AggregationKeys {
262
403
  Workloads = "Workloads",
263
404
  Networking = "Networking",
@@ -270,25 +411,11 @@ export declare enum AggregationKeys {
270
411
  Namespaces = "Namespaces"
271
412
  }
272
413
  export type AggregationKeysType = keyof typeof AggregationKeys;
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;
414
+ export interface scrollableInterface {
415
+ autoBottomScroll: boolean;
416
+ }
417
+ export declare enum PromiseAllStatusType {
418
+ FULFILLED = "fulfilled",
419
+ REJECTED = "rejected"
294
420
  }
421
+ export {};
@@ -8,7 +8,6 @@ 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;
12
11
  VALID_POSITIVE_NUMBER: string;
13
12
  VALID_POSITIVE_INTEGER: string;
14
13
  MAX_SAFE_INTEGER: string;
@@ -16,7 +15,5 @@ export declare const MESSAGES: {
16
15
  export declare const requiredField: (value: string) => ValidationResponseType;
17
16
  export declare const validateName: (name: string) => ValidationResponseType;
18
17
  export declare const validateDescription: (description: string) => ValidationResponseType;
19
- export declare const validateStringLength: (value: string, maxLimit: number, minLimit: number) => ValidationResponseType;
20
18
  export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
21
19
  export declare const validateRequiredPositiveInteger: (value: string | number) => ValidationResponseType;
22
- export declare const validateURL: (url: string) => ValidationResponseType;