@devtron-labs/devtron-fe-common-lib 0.0.79-beta-13 → 0.0.79-beta-15

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 (148) hide show
  1. package/dist/Common/Api.d.ts +0 -1
  2. package/dist/Common/CodeEditor/CodeEditor.d.ts +1 -44
  3. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +36 -0
  4. package/dist/Common/CodeEditor/index.d.ts +2 -0
  5. package/dist/Common/CodeEditor/types.d.ts +81 -0
  6. package/dist/Common/Common.service.d.ts +5 -3
  7. package/dist/Common/Constants.d.ts +7 -12
  8. package/dist/Common/Helper.d.ts +2 -11
  9. package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcut.d.ts +2 -0
  10. package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutContext.d.ts +3 -0
  11. package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +4 -0
  12. package/dist/Common/Hooks/UseRegisterShortcut/index.d.ts +2 -0
  13. package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +8 -0
  14. package/dist/Common/Hooks/index.d.ts +1 -0
  15. package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +1 -1
  16. package/dist/Common/SegmentedBarChart/SegmentedBarChart.d.ts +5 -0
  17. package/dist/Common/SegmentedBarChart/constants.d.ts +5 -0
  18. package/dist/Common/SegmentedBarChart/index.d.ts +2 -0
  19. package/dist/Common/SegmentedBarChart/types.d.ts +11 -0
  20. package/dist/Common/Types.d.ts +2 -55
  21. package/dist/Common/index.d.ts +2 -1
  22. package/dist/Pages/ResourceBrowser/Helper.d.ts +3 -0
  23. package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +20 -0
  24. package/dist/Pages/ResourceBrowser/index.d.ts +2 -0
  25. package/dist/Pages/index.d.ts +1 -0
  26. package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +1 -1
  27. package/dist/Shared/Components/ActivityIndicator/types.d.ts +0 -2
  28. package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
  29. package/dist/Shared/Components/BulkSelection/types.d.ts +0 -1
  30. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  31. package/dist/Shared/Components/Header/types.d.ts +9 -7
  32. package/dist/Shared/Components/ReactSelect/utils.d.ts +0 -11
  33. package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +2 -1
  34. package/dist/Shared/Components/ScannedByToolModal/types.d.ts +2 -0
  35. package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +4 -0
  36. package/dist/Shared/Components/ScannedObjectBar/index.d.ts +1 -0
  37. package/dist/Shared/Components/ScannedObjectBar/types.d.ts +7 -0
  38. package/dist/Shared/Components/Vulnerabilities/index.d.ts +1 -0
  39. package/dist/Shared/Components/Vulnerabilities/utils.d.ts +4 -0
  40. package/dist/Shared/Components/index.d.ts +1 -1
  41. package/dist/Shared/Helpers.d.ts +2 -2
  42. package/dist/Shared/Providers/index.d.ts +0 -1
  43. package/dist/Shared/constants.d.ts +0 -14
  44. package/dist/Shared/index.d.ts +0 -1
  45. package/dist/Shared/types.d.ts +68 -100
  46. package/dist/Shared/validations.d.ts +1 -10
  47. package/dist/abap-5361cc9f.js +1314 -0
  48. package/dist/apex-f9413e6f.js +315 -0
  49. package/dist/assets/editor.worker-60ba9509.js +12 -0
  50. package/dist/assets/index.css +1 -1
  51. package/dist/assets/yaml.worker-cc1a551a.js +471 -0
  52. package/dist/azcli-36f2cb5e.js +74 -0
  53. package/dist/bat-6b05202d.js +95 -0
  54. package/dist/bicep-788415e3.js +108 -0
  55. package/dist/cameligo-4e85ec93.js +168 -0
  56. package/dist/clojure-40fa5799.js +754 -0
  57. package/dist/coffee-f557f5e0.js +228 -0
  58. package/dist/cpp-ebbf7759.js +390 -0
  59. package/dist/csharp-1616f566.js +320 -0
  60. package/dist/csp-5f0bc3c4.js +57 -0
  61. package/dist/css-2b1aec9b.js +186 -0
  62. package/dist/cssMode-68a397fb.js +1446 -0
  63. package/dist/cypher-b12b4ba8.js +262 -0
  64. package/dist/dart-e0d70030.js +270 -0
  65. package/dist/dockerfile-f9d4b2b0.js +132 -0
  66. package/dist/ecl-5b91fdec.js +454 -0
  67. package/dist/elixir-deffd5a6.js +489 -0
  68. package/dist/flow9-84cd00d7.js +141 -0
  69. package/dist/freemarker2-2a95384c.js +643 -0
  70. package/dist/fsharp-d296151f.js +210 -0
  71. package/dist/go-7e72ff3b.js +208 -0
  72. package/dist/graphql-a93568a1.js +141 -0
  73. package/dist/handlebars-9d988e9c.js +391 -0
  74. package/dist/hcl-b3994d8f.js +177 -0
  75. package/dist/html-82074883.js +281 -0
  76. package/dist/htmlMode-29fd99ba.js +1456 -0
  77. package/dist/index-9b36c114.js +128503 -0
  78. package/dist/index.d.ts +2 -1
  79. package/dist/index.js +301 -20747
  80. package/dist/ini-df84509a.js +68 -0
  81. package/dist/java-fba3d046.js +221 -0
  82. package/dist/javascript-1c4dcdf8.js +75 -0
  83. package/dist/jsonMode-1fe8d367.js +1867 -0
  84. package/dist/julia-cefd45f6.js +496 -0
  85. package/dist/kotlin-b87b6942.js +245 -0
  86. package/dist/less-8a7f37bc.js +168 -0
  87. package/dist/lexon-cb95cd13.js +151 -0
  88. package/dist/liquid-1b8d904b.js +238 -0
  89. package/dist/lua-6d5b3ea4.js +157 -0
  90. package/dist/m3-d0daf5d0.js +210 -0
  91. package/dist/markdown-48bb0c6f.js +202 -0
  92. package/dist/mdx-ecd71606.js +171 -0
  93. package/dist/mips-20dcf886.js +194 -0
  94. package/dist/msdax-e9759e23.js +377 -0
  95. package/dist/mysql-95f335b2.js +876 -0
  96. package/dist/objective-c-ad0cfb47.js +188 -0
  97. package/dist/pascal-eda19dc3.js +245 -0
  98. package/dist/pascaligo-b7e0c89b.js +158 -0
  99. package/dist/perl-bbe5d32a.js +599 -0
  100. package/dist/pgsql-7ebaee1c.js +847 -0
  101. package/dist/php-2526756d.js +471 -0
  102. package/dist/pla-9ebd6f68.js +131 -0
  103. package/dist/postiats-9ac05cf6.js +544 -0
  104. package/dist/powerquery-1cae399d.js +890 -0
  105. package/dist/powershell-093b5b87.js +233 -0
  106. package/dist/protobuf-37993cbc.js +422 -0
  107. package/dist/pug-c2a5db5f.js +393 -0
  108. package/dist/python-0342a954.js +259 -0
  109. package/dist/qsharp-1450aac5.js +282 -0
  110. package/dist/r-a0642b90.js +245 -0
  111. package/dist/razor-768b9977.js +512 -0
  112. package/dist/redis-405cb63d.js +298 -0
  113. package/dist/redshift-830f82de.js +806 -0
  114. package/dist/restructuredtext-d81f5ef4.js +162 -0
  115. package/dist/ruby-d607b87e.js +444 -0
  116. package/dist/rust-86e74dbb.js +337 -0
  117. package/dist/sb-b7e5010d.js +110 -0
  118. package/dist/scala-a4d4a3c6.js +353 -0
  119. package/dist/scheme-81927e94.js +114 -0
  120. package/dist/scss-3f112fcd.js +244 -0
  121. package/dist/shell-d795bcaa.js +224 -0
  122. package/dist/solidity-5b556d3e.js +1351 -0
  123. package/dist/sophia-1da55998.js +190 -0
  124. package/dist/sparql-ac34318e.js +193 -0
  125. package/dist/sql-eef6393b.js +818 -0
  126. package/dist/st-758b1972.js +415 -0
  127. package/dist/swift-63cb1847.js +315 -0
  128. package/dist/systemverilog-2538c608.js +556 -0
  129. package/dist/tcl-53e6282a.js +232 -0
  130. package/dist/tsMode-f1e35eca.js +811 -0
  131. package/dist/twig-80c3dc23.js +323 -0
  132. package/dist/typescript-3e837261.js +328 -0
  133. package/dist/vb-32089525.js +364 -0
  134. package/dist/wgsl-e681d5a0.js +420 -0
  135. package/dist/xml-a3122d31.js +95 -0
  136. package/dist/yaml-fb366809.js +184 -0
  137. package/package.json +7 -11
  138. package/dist/Common/GenericDescription/GenericDescription.d.ts +0 -4
  139. package/dist/Common/GenericDescription/constant.d.ts +0 -2
  140. package/dist/Common/GenericDescription/index.d.ts +0 -2
  141. package/dist/Common/GenericDescription/types.d.ts +0 -14
  142. package/dist/Common/Markdown/constant.d.ts +0 -28
  143. package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +0 -18
  144. package/dist/Shared/Components/ButtonWithSelector/index.d.ts +0 -1
  145. package/dist/Shared/Components/ButtonWithSelector/types.d.ts +0 -10
  146. package/dist/Shared/Providers/ImageSelectionUtility/ImageSelectionUtility.d.ts +0 -5
  147. package/dist/Shared/Providers/ImageSelectionUtility/index.d.ts +0 -1
  148. package/dist/Shared/Providers/ImageSelectionUtility/types.d.ts +0 -9
@@ -29,17 +29,3 @@ export declare const ModuleNameMap: {
29
29
  };
30
30
  export declare const DATE_TIME_FORMAT_STRING = "ddd DD MMM YYYY HH:mm:ss";
31
31
  export declare const API_TOKEN_PREFIX = "API-TOKEN:";
32
- export declare enum PatchOperationType {
33
- replace = "replace",
34
- remove = "remove"
35
- }
36
- export declare enum DeploymentStageType {
37
- PRE = "PRE",
38
- DEPLOY = "DEPLOY",
39
- POST = "POST"
40
- }
41
- export declare enum DeploymentWithConfigType {
42
- LAST_SAVED_CONFIG = "LAST_SAVED_CONFIG",
43
- LATEST_TRIGGER_CONFIG = "LATEST_TRIGGER_CONFIG",
44
- SPECIFIC_TRIGGER_CONFIG = "SPECIFIC_TRIGGER_CONFIG"
45
- }
@@ -4,4 +4,3 @@ export * from './Helpers';
4
4
  export * from './constants';
5
5
  export * from './types';
6
6
  export * from './Providers';
7
- export * from './constants';
@@ -1,5 +1,4 @@
1
- import { PatchOperationType } from './constants';
2
- import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType } from '../Common';
1
+ import { CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType } from '../Common';
3
2
 
4
3
  export declare enum RegistryType {
5
4
  GIT = "git",
@@ -96,91 +95,15 @@ export declare enum CIMaterialSidebarType {
96
95
  CODE_SOURCE = "Code Source",
97
96
  PARAMETERS = "Parameters"
98
97
  }
99
- /**
100
- * @example Usage with specific enum for path & `unknown` type for value
101
- * ```ts
102
- * enum PatchKeys {
103
- * name = 'name',
104
- * description = 'description',
105
- * }
106
- *
107
- * const query: PatchQueryType<PatchKeys> = {
108
- * op: PatchOperationType.replace,
109
- * path: PatchKeys.name,
110
- * value: '1'
111
- * }
112
- * ```
113
- *
114
- * @example Usage with specific enum for path & custom type for value
115
- * ```ts
116
- * enum PatchKeys {
117
- * name = 'name',
118
- * description = 'description',
119
- * }
120
- *
121
- * const query: PatchQueryType<PatchKeys, number> = {
122
- * op: PatchOperationType.replace,
123
- * path: PatchKeys.name,
124
- * value: 1
125
- * }
126
- * ```
127
- *
128
- * @example Usage with `PatchOperationType.remove`
129
- * Note: Value is not allowed for remove operation
130
- *
131
- * ```ts
132
- * const query: PatchQueryType<string> = {
133
- * op: PatchOperationType.remove,
134
- * path: 'name'
135
- * }
136
- * ```
137
- */
138
- export type PatchQueryType<T extends string, K = unknown> = {
139
- /**
140
- * The path of the json to be patched
141
- */
142
- path: T;
143
- } & ({
144
- /**
145
- * Operation type for patch
146
- */
147
- op: PatchOperationType.replace;
148
- /**
149
- * Corresponding value for the operation
150
- */
151
- value: K;
152
- } | {
153
- /**
154
- * Operation type for patch
155
- */
156
- op: PatchOperationType.remove;
157
- value?: never;
158
- });
159
- export interface GroupedOptionsType {
160
- label: string;
161
- options: OptionType[];
162
- }
163
- /**
164
- * Enum for devtron resources
165
- */
166
- export declare enum ResourceKindType {
167
- devtronApplication = "application/devtron-application",
168
- helmChart = "application/helm-application",
169
- job = "job",
170
- cluster = "cluster",
171
- release = "release",
172
- releaseTrack = "release-track"
173
- }
174
- /**
175
- * Versions support for the resources on BE
176
- */
177
- export declare enum ResourceVersionType {
178
- v1 = "v1",
179
- alpha1 = "alpha1"
180
- }
181
- interface LastExecutionResultType {
182
- scanExecutionId: number;
98
+ export interface LastExecutionResultType {
183
99
  lastExecution: string;
100
+ severityCount: {
101
+ critical: number;
102
+ moderate: number;
103
+ low: number;
104
+ };
105
+ vulnerabilities: VulnerabilityType[];
106
+ scanExecutionId?: number;
184
107
  appId?: number;
185
108
  appName?: string;
186
109
  envId?: number;
@@ -188,15 +111,9 @@ interface LastExecutionResultType {
188
111
  pod?: string;
189
112
  replicaSet?: string;
190
113
  image?: string;
191
- objectType: 'app' | 'chart';
192
- scanned: boolean;
193
- scanEnabled: boolean;
194
- severityCount: {
195
- critical: number;
196
- moderate: number;
197
- low: number;
198
- };
199
- vulnerabilities: VulnerabilityType[];
114
+ objectType?: 'app' | 'chart';
115
+ scanned?: boolean;
116
+ scanEnabled?: boolean;
200
117
  scanToolId?: number;
201
118
  }
202
119
  export interface LastExecutionResponseType extends ResponseType<LastExecutionResultType> {
@@ -205,8 +122,59 @@ export interface MaterialSecurityInfoType {
205
122
  isScanned: boolean;
206
123
  isScanEnabled: boolean;
207
124
  }
208
- export declare enum WebhookEventNameType {
209
- PULL_REQUEST = "Pull Request",
210
- TAG_CREATION = "Tag Creation"
211
- }
212
- export {};
125
+ export declare enum Nodes {
126
+ Service = "Service",
127
+ Alertmanager = "Alertmanager",
128
+ PodSecurity = "PodSecurityPolicy",
129
+ ConfigMap = "ConfigMap",
130
+ ServiceAccount = "ServiceAccount",
131
+ ClusterRoleBinding = "ClusterRoleBinding",
132
+ RoleBinding = "RoleBinding",
133
+ ClusterRole = "ClusterRole",
134
+ Role = "Role",
135
+ Prometheus = "Prometheus",
136
+ ServiceMonitor = "ServiceMonitor",
137
+ Deployment = "Deployment",
138
+ MutatingWebhookConfiguration = "MutatingWebhookConfiguration",
139
+ DaemonSet = "DaemonSet",
140
+ Secret = "Secret",
141
+ ValidatingWebhookConfiguration = "ValidatingWebhookConfiguration",
142
+ Pod = "Pod",
143
+ Ingress = "Ingress",
144
+ ReplicaSet = "ReplicaSet",
145
+ Endpoints = "Endpoints",
146
+ Cluster = "ClusterRoleBinding",
147
+ PodSecurityPolicy = "PodSecurityPolicy",
148
+ CronJob = "CronJob",
149
+ Job = "Job",
150
+ ReplicationController = "ReplicationController",
151
+ StatefulSet = "StatefulSet",
152
+ Rollout = "Rollout",
153
+ PersistentVolumeClaim = "PersistentVolumeClaim",
154
+ PersistentVolume = "PersistentVolume",
155
+ Containers = "Containers",
156
+ InitContainers = "InitContainers",
157
+ EndpointSlice = "EndpointSlice",
158
+ NetworkPolicy = "NetworkPolicy",
159
+ StorageClass = "StorageClass",
160
+ VolumeSnapshot = "VolumeSnapshot",
161
+ VolumeSnapshotContent = "VolumeSnapshotContent",
162
+ VolumeSnapshotClass = "VolumeSnapshotClass",
163
+ PodDisruptionBudget = "PodDisruptionBudget",
164
+ Event = "Event",
165
+ Namespace = "Namespace",
166
+ Overview = "Overview"
167
+ }
168
+ export type NodeType = keyof typeof Nodes;
169
+ export declare enum AggregationKeys {
170
+ Workloads = "Workloads",
171
+ Networking = "Networking",
172
+ 'Config & Storage' = "Config & Storage",
173
+ RBAC = "RBAC",
174
+ Administration = "Administration",
175
+ 'Custom Resource' = "Custom Resource",
176
+ 'Other Resources' = "Other Resources",
177
+ Events = "Events",
178
+ Namespaces = "Namespaces"
179
+ }
180
+ export type AggregationKeysType = keyof typeof AggregationKeys;
@@ -2,16 +2,7 @@ export interface ValidationResponseType {
2
2
  isValid: boolean;
3
3
  message?: string;
4
4
  }
5
- export declare const MESSAGES: {
6
- PROVIDE_A_NUMBER: string;
7
- LOWERCASE_ALPHANUMERIC: string;
8
- CAN_NOT_START_END_WITH_SEPARATORS: string;
9
- getMinMaxCharMessage: (min: number, max: number) => string;
10
- getMaxCharMessage: (max: number) => string;
11
- VALID_POSITIVE_NUMBER: string;
12
- VALID_POSITIVE_INTEGER: string;
13
- MAX_SAFE_INTEGER: string;
14
- };
5
+ export declare const requiredField: (value: string) => ValidationResponseType;
15
6
  export declare const validateName: (name: string) => ValidationResponseType;
16
7
  export declare const validateDescription: (description: string) => ValidationResponseType;
17
8
  export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;