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

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 (86) hide show
  1. package/dist/Common/Api.d.ts +1 -1
  2. package/dist/Common/AppStatus/constants.d.ts +20 -0
  3. package/dist/Common/AppStatus/index.d.ts +0 -1
  4. package/dist/Common/Constants.d.ts +0 -19
  5. package/dist/Common/Dialogs/Types.d.ts +17 -2
  6. package/dist/Common/Helper.d.ts +0 -8
  7. package/dist/Common/Hooks/useStateFilters/types.d.ts +1 -1
  8. package/dist/Common/Modals/Modal.d.ts +3 -0
  9. package/dist/Common/Modals/OpaqueModal.d.ts +3 -0
  10. package/dist/Common/Pagination/index.d.ts +0 -1
  11. package/dist/Common/PopupMenu.d.ts +1 -1
  12. package/dist/Common/Types.d.ts +1 -0
  13. package/dist/Common/index.d.ts +0 -1
  14. package/dist/Shared/Components/ImageWithFallback/ImageWithFallback.component.d.ts +4 -0
  15. package/dist/Shared/Components/ImageWithFallback/index.d.ts +2 -0
  16. package/dist/Shared/Components/ImageWithFallback/types.d.ts +12 -0
  17. package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +4 -0
  18. package/dist/Shared/Components/ModalSidebarPanel/index.d.ts +2 -0
  19. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +9 -0
  20. package/dist/Shared/Components/index.d.ts +2 -3
  21. package/dist/Shared/Helpers.d.ts +3 -6
  22. package/dist/Shared/Services/cluster.service.d.ts +3 -0
  23. package/dist/Shared/Services/index.d.ts +2 -0
  24. package/dist/Shared/Services/mock.d.ts +3 -0
  25. package/dist/Shared/Services/types.d.ts +4 -0
  26. package/dist/Shared/constants.d.ts +3 -299
  27. package/dist/Shared/index.d.ts +2 -1
  28. package/dist/Shared/types.d.ts +72 -199
  29. package/dist/Shared/validations.d.ts +4 -0
  30. package/dist/assets/index.css +1 -1
  31. package/dist/{cssMode-9390463e.js → cssMode-470a4d39.js} +1 -1
  32. package/dist/{freemarker2-45d9c87f.js → freemarker2-4b4a9677.js} +1 -1
  33. package/dist/{handlebars-0272cb91.js → handlebars-1dec518f.js} +1 -1
  34. package/dist/{html-f8322193.js → html-f35d75b9.js} +1 -1
  35. package/dist/{htmlMode-5eeed339.js → htmlMode-144f09d8.js} +1 -1
  36. package/dist/{index-3fdc8a6f.js → index-2de25627.js} +114628 -119531
  37. package/dist/index.js +330 -398
  38. package/dist/{javascript-08bc2f30.js → javascript-f39ff8ef.js} +1 -1
  39. package/dist/{jsonMode-4272a3ca.js → jsonMode-fa82b1a7.js} +1 -1
  40. package/dist/{liquid-ab223e02.js → liquid-954b0baa.js} +1 -1
  41. package/dist/{mdx-f3b3175b.js → mdx-c8f0533c.js} +1 -1
  42. package/dist/{python-fe4d4e69.js → python-0cf141be.js} +1 -1
  43. package/dist/{razor-37067534.js → razor-842ec90b.js} +1 -1
  44. package/dist/{tsMode-6ca5922c.js → tsMode-cb014fb6.js} +1 -1
  45. package/dist/{typescript-5a0fc241.js → typescript-913c30c2.js} +1 -1
  46. package/dist/{xml-1dbfa98d.js → xml-55c8215c.js} +1 -1
  47. package/dist/{yaml-527abc47.js → yaml-04c179da.js} +1 -1
  48. package/package.json +15 -17
  49. package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +0 -4
  50. package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +0 -5
  51. package/dist/Shared/Components/CICDHistory/CDEmptyState.d.ts +0 -14
  52. package/dist/Shared/Components/CICDHistory/CiPipelineSourceConfig.d.ts +0 -11
  53. package/dist/Shared/Components/CICDHistory/DeploymentDetailSteps.d.ts +0 -4
  54. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryConfigList.component.d.ts +0 -4
  55. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDetailedView.d.ts +0 -4
  56. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +0 -4
  57. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryHeader.d.ts +0 -4
  58. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistorySidebar.d.ts +0 -4
  59. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/index.d.ts +0 -3
  60. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +0 -36
  61. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/utils.d.ts +0 -11
  62. package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +0 -4
  63. package/dist/Shared/Components/CICDHistory/DeploymentStatusDetailRow.d.ts +0 -3
  64. package/dist/Shared/Components/CICDHistory/DetectBottom.d.ts +0 -4
  65. package/dist/Shared/Components/CICDHistory/ErrorInfoStatusBar.d.ts +0 -3
  66. package/dist/Shared/Components/CICDHistory/History.components.d.ts +0 -5
  67. package/dist/Shared/Components/CICDHistory/LogsRenderer.d.ts +0 -4
  68. package/dist/Shared/Components/CICDHistory/Sidebar.d.ts +0 -5
  69. package/dist/Shared/Components/CICDHistory/StatusFilterButtonComponent.d.ts +0 -3
  70. package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +0 -6
  71. package/dist/Shared/Components/CICDHistory/constants.d.ts +0 -45
  72. package/dist/Shared/Components/CICDHistory/index.d.ts +0 -17
  73. package/dist/Shared/Components/CICDHistory/service.d.ts +0 -28
  74. package/dist/Shared/Components/CICDHistory/types.d.ts +0 -588
  75. package/dist/Shared/Components/CICDHistory/utils.d.ts +0 -4
  76. package/dist/Shared/Components/Error/ErrorBar.d.ts +0 -4
  77. package/dist/Shared/Components/Error/index.d.ts +0 -2
  78. package/dist/Shared/Components/Error/types.d.ts +0 -9
  79. package/dist/Shared/Components/Error/utils.d.ts +0 -3
  80. package/dist/Shared/Components/GitCommitInfoGeneric/GitCommitInfoGeneric.d.ts +0 -4
  81. package/dist/Shared/Components/GitCommitInfoGeneric/GitMaterialInfoHeader.d.ts +0 -9
  82. package/dist/Shared/Components/GitCommitInfoGeneric/index.d.ts +0 -1
  83. package/dist/Shared/Components/GitCommitInfoGeneric/types.d.ts +0 -11
  84. package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +0 -5
  85. package/dist/Shared/Store/IndexStore.d.ts +0 -48
  86. package/dist/Shared/Store/index.d.ts +0 -1
@@ -1,187 +1,6 @@
1
- import { PatchOperationType } from './constants';
2
- import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes } from '../Common';
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
- cdPipeline = "cd-pipeline"
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 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;
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 scrollableInterface {
415
- autoBottomScroll: boolean;
416
- }
417
- export declare enum PromiseAllStatusType {
418
- FULFILLED = "fulfilled",
419
- REJECTED = "rejected"
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,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>;