@devtron-labs/devtron-fe-common-lib 0.0.81-beta-8 → 0.0.82-1

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 (135) hide show
  1. package/dist/Common/Api.d.ts +1 -0
  2. package/dist/Common/CodeEditor/CodeEditor.d.ts +44 -1
  3. package/dist/Common/Common.service.d.ts +3 -6
  4. package/dist/Common/Constants.d.ts +13 -10
  5. package/dist/Common/ErrorPage.d.ts +1 -1
  6. package/dist/Common/ErrorScreenManager.d.ts +1 -1
  7. package/dist/Common/GenericDescription/GenericDescription.d.ts +4 -0
  8. package/dist/Common/GenericDescription/constant.d.ts +2 -0
  9. package/dist/Common/GenericDescription/index.d.ts +2 -0
  10. package/dist/Common/GenericDescription/types.d.ts +14 -0
  11. package/dist/Common/Helper.d.ts +11 -3
  12. package/dist/Common/Markdown/constant.d.ts +28 -0
  13. package/dist/Common/Types.d.ts +56 -18
  14. package/dist/Common/index.d.ts +1 -1
  15. package/dist/Pages/index.d.ts +0 -1
  16. package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +1 -1
  17. package/dist/Shared/Components/ActivityIndicator/types.d.ts +2 -0
  18. package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
  19. package/dist/Shared/Components/BulkSelection/types.d.ts +1 -0
  20. package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +18 -0
  21. package/dist/Shared/Components/ButtonWithSelector/index.d.ts +1 -0
  22. package/dist/Shared/Components/ButtonWithSelector/types.d.ts +10 -0
  23. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  24. package/dist/Shared/Components/Header/types.d.ts +7 -9
  25. package/dist/Shared/Components/ReactSelect/utils.d.ts +11 -0
  26. package/dist/Shared/Components/index.d.ts +1 -0
  27. package/dist/Shared/Helpers.d.ts +2 -1
  28. package/dist/Shared/Providers/ImageSelectionUtility/ImageSelectionUtility.d.ts +5 -0
  29. package/dist/Shared/Providers/ImageSelectionUtility/index.d.ts +1 -0
  30. package/dist/Shared/Providers/ImageSelectionUtility/types.d.ts +9 -0
  31. package/dist/Shared/Providers/UserEmailProvider/UserEmailProvider.d.ts +6 -0
  32. package/dist/Shared/Providers/UserEmailProvider/index.d.ts +2 -0
  33. package/dist/Shared/Providers/UserEmailProvider/types.d.ts +5 -0
  34. package/dist/Shared/Providers/index.d.ts +2 -0
  35. package/dist/Shared/constants.d.ts +14 -0
  36. package/dist/Shared/index.d.ts +1 -0
  37. package/dist/Shared/types.d.ts +88 -13
  38. package/dist/Shared/validations.d.ts +10 -1
  39. package/dist/assets/index.css +1 -1
  40. package/dist/index.d.ts +1 -0
  41. package/dist/index.js +20830 -302
  42. package/package.json +10 -7
  43. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +0 -36
  44. package/dist/Common/CodeEditor/index.d.ts +0 -2
  45. package/dist/Common/CodeEditor/types.d.ts +0 -86
  46. package/dist/Pages/ResourceBrowser/Helper.d.ts +0 -3
  47. package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +0 -20
  48. package/dist/Pages/ResourceBrowser/index.d.ts +0 -2
  49. package/dist/abap-5361cc9f.js +0 -1314
  50. package/dist/apex-f9413e6f.js +0 -315
  51. package/dist/assets/editor.worker-60ba9509.js +0 -12
  52. package/dist/assets/yaml.worker-cc1a551a.js +0 -471
  53. package/dist/azcli-36f2cb5e.js +0 -74
  54. package/dist/bat-6b05202d.js +0 -95
  55. package/dist/bicep-788415e3.js +0 -108
  56. package/dist/cameligo-4e85ec93.js +0 -168
  57. package/dist/clojure-40fa5799.js +0 -754
  58. package/dist/coffee-f557f5e0.js +0 -228
  59. package/dist/cpp-ebbf7759.js +0 -390
  60. package/dist/csharp-1616f566.js +0 -320
  61. package/dist/csp-5f0bc3c4.js +0 -57
  62. package/dist/css-2b1aec9b.js +0 -186
  63. package/dist/cssMode-f6d332a1.js +0 -1446
  64. package/dist/cypher-b12b4ba8.js +0 -262
  65. package/dist/dart-e0d70030.js +0 -270
  66. package/dist/dockerfile-f9d4b2b0.js +0 -132
  67. package/dist/ecl-5b91fdec.js +0 -454
  68. package/dist/elixir-deffd5a6.js +0 -489
  69. package/dist/flow9-84cd00d7.js +0 -141
  70. package/dist/freemarker2-8e23f5a4.js +0 -643
  71. package/dist/fsharp-d296151f.js +0 -210
  72. package/dist/go-7e72ff3b.js +0 -208
  73. package/dist/graphql-a93568a1.js +0 -141
  74. package/dist/handlebars-f1c6ec5a.js +0 -391
  75. package/dist/hcl-b3994d8f.js +0 -177
  76. package/dist/html-1a4d5d9a.js +0 -281
  77. package/dist/htmlMode-05b8c00b.js +0 -1456
  78. package/dist/index-83e46ae3.js +0 -128536
  79. package/dist/ini-df84509a.js +0 -68
  80. package/dist/java-fba3d046.js +0 -221
  81. package/dist/javascript-823e6a19.js +0 -75
  82. package/dist/jsonMode-052d75cd.js +0 -1867
  83. package/dist/julia-cefd45f6.js +0 -496
  84. package/dist/kotlin-b87b6942.js +0 -245
  85. package/dist/less-8a7f37bc.js +0 -168
  86. package/dist/lexon-cb95cd13.js +0 -151
  87. package/dist/liquid-13a0b36f.js +0 -238
  88. package/dist/lua-6d5b3ea4.js +0 -157
  89. package/dist/m3-d0daf5d0.js +0 -210
  90. package/dist/markdown-48bb0c6f.js +0 -202
  91. package/dist/mdx-32e942cd.js +0 -171
  92. package/dist/mips-20dcf886.js +0 -194
  93. package/dist/msdax-e9759e23.js +0 -377
  94. package/dist/mysql-95f335b2.js +0 -876
  95. package/dist/objective-c-ad0cfb47.js +0 -188
  96. package/dist/pascal-eda19dc3.js +0 -245
  97. package/dist/pascaligo-b7e0c89b.js +0 -158
  98. package/dist/perl-bbe5d32a.js +0 -599
  99. package/dist/pgsql-7ebaee1c.js +0 -847
  100. package/dist/php-2526756d.js +0 -471
  101. package/dist/pla-9ebd6f68.js +0 -131
  102. package/dist/postiats-9ac05cf6.js +0 -544
  103. package/dist/powerquery-1cae399d.js +0 -890
  104. package/dist/powershell-093b5b87.js +0 -233
  105. package/dist/protobuf-37993cbc.js +0 -422
  106. package/dist/pug-c2a5db5f.js +0 -393
  107. package/dist/python-37bf24cb.js +0 -259
  108. package/dist/qsharp-1450aac5.js +0 -282
  109. package/dist/r-a0642b90.js +0 -245
  110. package/dist/razor-991b6ccc.js +0 -512
  111. package/dist/redis-405cb63d.js +0 -298
  112. package/dist/redshift-830f82de.js +0 -806
  113. package/dist/restructuredtext-d81f5ef4.js +0 -162
  114. package/dist/ruby-d607b87e.js +0 -444
  115. package/dist/rust-86e74dbb.js +0 -337
  116. package/dist/sb-b7e5010d.js +0 -110
  117. package/dist/scala-a4d4a3c6.js +0 -353
  118. package/dist/scheme-81927e94.js +0 -114
  119. package/dist/scss-3f112fcd.js +0 -244
  120. package/dist/shell-d795bcaa.js +0 -224
  121. package/dist/solidity-5b556d3e.js +0 -1351
  122. package/dist/sophia-1da55998.js +0 -190
  123. package/dist/sparql-ac34318e.js +0 -193
  124. package/dist/sql-eef6393b.js +0 -818
  125. package/dist/st-758b1972.js +0 -415
  126. package/dist/swift-63cb1847.js +0 -315
  127. package/dist/systemverilog-2538c608.js +0 -556
  128. package/dist/tcl-53e6282a.js +0 -232
  129. package/dist/tsMode-018c5c46.js +0 -811
  130. package/dist/twig-80c3dc23.js +0 -323
  131. package/dist/typescript-26297d38.js +0 -328
  132. package/dist/vb-32089525.js +0 -364
  133. package/dist/wgsl-e681d5a0.js +0 -420
  134. package/dist/xml-c99083fc.js +0 -95
  135. package/dist/yaml-0347fb0c.js +0 -184
@@ -1,4 +1,5 @@
1
- import { CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType } from '../Common';
1
+ import { PatchOperationType } from './constants';
2
+ import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType } from '../Common';
2
3
 
3
4
  export declare enum RegistryType {
4
5
  GIT = "git",
@@ -95,6 +96,88 @@ export declare enum CIMaterialSidebarType {
95
96
  CODE_SOURCE = "Code Source",
96
97
  PARAMETERS = "Parameters"
97
98
  }
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
+ }
98
181
  export interface LastExecutionResultType {
99
182
  lastExecution: string;
100
183
  severityCount: {
@@ -122,6 +205,10 @@ export interface MaterialSecurityInfoType {
122
205
  isScanned: boolean;
123
206
  isScanEnabled: boolean;
124
207
  }
208
+ export declare enum WebhookEventNameType {
209
+ PULL_REQUEST = "Pull Request",
210
+ TAG_CREATION = "Tag Creation"
211
+ }
125
212
  export declare enum Nodes {
126
213
  Service = "Service",
127
214
  Alertmanager = "Alertmanager",
@@ -166,15 +253,3 @@ export declare enum Nodes {
166
253
  Overview = "Overview"
167
254
  }
168
255
  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,7 +2,16 @@ export interface ValidationResponseType {
2
2
  isValid: boolean;
3
3
  message?: string;
4
4
  }
5
- export declare const requiredField: (value: string) => ValidationResponseType;
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
+ };
6
15
  export declare const validateName: (name: string) => ValidationResponseType;
7
16
  export declare const validateDescription: (description: string) => ValidationResponseType;
8
17
  export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;