@devtron-labs/devtron-fe-common-lib 0.2.5-beta-2 → 0.2.6-beta-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 (82) hide show
  1. package/dist/Common/CodeEditor/types.d.ts +2 -2
  2. package/dist/Common/Common.service.d.ts +0 -6
  3. package/dist/Common/Constants.d.ts +2 -12
  4. package/dist/Common/RJSF/constants.d.ts +5 -0
  5. package/dist/Common/RJSF/index.d.ts +1 -0
  6. package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +1 -1
  7. package/dist/Common/Types.d.ts +2 -3
  8. package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +1 -1
  9. package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +18 -0
  10. package/dist/Pages/GlobalConfigurations/DeploymentCharts/basicViewSchema.json.d.ts +273 -0
  11. package/dist/Pages/GlobalConfigurations/DeploymentCharts/fallbackJobsNCronJobGuiSchema.json.d.ts +157 -0
  12. package/dist/Pages/GlobalConfigurations/DeploymentCharts/index.d.ts +2 -0
  13. package/dist/Pages/GlobalConfigurations/DeploymentCharts/types.d.ts +24 -0
  14. package/dist/Pages/GlobalConfigurations/DeploymentCharts/utils.d.ts +4 -0
  15. package/dist/Pages/GlobalConfigurations/index.d.ts +1 -0
  16. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +1 -1
  17. package/dist/Shared/Components/CICDHistory/types.d.ts +1 -3
  18. package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
  19. package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +3 -47
  20. package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +4 -0
  21. package/dist/Shared/Components/ScannedObjectBar/index.d.ts +1 -0
  22. package/dist/Shared/Components/ScannedObjectBar/types.d.ts +7 -0
  23. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  24. package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
  25. package/dist/Shared/Components/SelectPicker/index.d.ts +0 -1
  26. package/dist/Shared/Components/SelectPicker/type.d.ts +0 -16
  27. package/dist/Shared/Components/SelectPicker/utils.d.ts +2 -11
  28. package/dist/Shared/Components/SelectPickerCustom/FilterSelectPicker.d.ts +4 -0
  29. package/dist/Shared/Components/SelectPickerCustom/SelectPicker.component.d.ts +139 -0
  30. package/dist/Shared/Components/SelectPickerCustom/common.d.ts +13 -0
  31. package/dist/Shared/Components/SelectPickerCustom/index.d.ts +3 -0
  32. package/dist/Shared/Components/SelectPickerCustom/type.d.ts +163 -0
  33. package/dist/Shared/Components/SelectPickerCustom/utils.d.ts +15 -0
  34. package/dist/Shared/Components/Vulnerabilities/utils.d.ts +0 -1
  35. package/dist/Shared/Components/index.d.ts +2 -4
  36. package/dist/Shared/Helpers.d.ts +1 -2
  37. package/dist/Shared/Services/app.service.d.ts +1 -3
  38. package/dist/Shared/Services/app.types.d.ts +0 -116
  39. package/dist/Shared/constants.d.ts +0 -4
  40. package/dist/Shared/types.d.ts +7 -31
  41. package/dist/Shared/validations.d.ts +1 -3
  42. package/dist/assets/editor.worker-60ba9509.js +12 -0
  43. package/dist/assets/index.css +1 -1
  44. package/dist/assets/yaml.worker-3bbe780a.js +472 -0
  45. package/dist/{cssMode-07da02cd.js → cssMode-a92794b5.js} +1 -1
  46. package/dist/{freemarker2-9fd83d43.js → freemarker2-e5ee51c9.js} +1 -1
  47. package/dist/{handlebars-18dccb78.js → handlebars-9153151b.js} +1 -1
  48. package/dist/{html-201758e1.js → html-011bc885.js} +1 -1
  49. package/dist/{htmlMode-10964d27.js → htmlMode-4885a742.js} +1 -1
  50. package/dist/{index-8bb539c6.js → index-a419ec38.js} +45125 -40807
  51. package/dist/index.d.ts +0 -2
  52. package/dist/index.js +488 -504
  53. package/dist/{javascript-4327a7e8.js → javascript-9b5d9b49.js} +1 -1
  54. package/dist/{jsonMode-e59deb57.js → jsonMode-fa67bdba.js} +1 -1
  55. package/dist/{liquid-c96eb385.js → liquid-a2b3aabb.js} +1 -1
  56. package/dist/{mdx-0eb9a0f4.js → mdx-96b66709.js} +1 -1
  57. package/dist/{python-d79b6153.js → python-93cea446.js} +1 -1
  58. package/dist/{razor-4d69a090.js → razor-a13e6ece.js} +1 -1
  59. package/dist/{tsMode-b991e21c.js → tsMode-fa82c200.js} +1 -1
  60. package/dist/{typescript-0b46acf6.js → typescript-9835808a.js} +1 -1
  61. package/dist/{xml-eb10ea00.js → xml-f03d7ed4.js} +1 -1
  62. package/dist/{yaml-a9060343.js → yaml-82f4884e.js} +1 -1
  63. package/package.json +5 -5
  64. package/dist/Common/Security/types.d.ts +0 -4
  65. package/dist/Shared/Components/Collapse/Collapse.d.ts +0 -3
  66. package/dist/Shared/Components/Collapse/index.d.ts +0 -2
  67. package/dist/Shared/Components/Collapse/types.d.ts +0 -7
  68. package/dist/Shared/Components/CollapsibleList/CollapsibleList.component.d.ts +0 -3
  69. package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +0 -96
  70. package/dist/Shared/Components/CollapsibleList/index.d.ts +0 -2
  71. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +0 -3
  72. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +0 -38
  73. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +0 -3
  74. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +0 -3
  75. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +0 -3
  76. package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +0 -3
  77. package/dist/Shared/Components/DeploymentConfigDiff/types.d.ts +0 -69
  78. package/dist/Shared/Components/FilterButton/FilterButton.d.ts +0 -5
  79. package/dist/Shared/Components/FilterButton/index.d.ts +0 -1
  80. package/dist/Shared/Components/FilterButton/types.d.ts +0 -12
  81. package/dist/Shared/Components/FilterButton/utils.d.ts +0 -15
  82. package/dist/Shared/Components/KeyValueTable/constants.d.ts +0 -2
@@ -93,120 +93,4 @@ export interface GetCITriggerInfoParamsType {
93
93
  envId: number | string;
94
94
  ciArtifactId: number | string;
95
95
  }
96
- export declare enum AppEnvDeploymentConfigType {
97
- PUBLISHED_ONLY = "PublishedOnly",
98
- DRAFT_ONLY = "DraftOnly",
99
- PUBLISHED_WITH_DRAFT = "PublishedWithDraft",
100
- PREVIOUS_DEPLOYMENTS = "PreviousDeployments",
101
- DEFAULT_VERSION = "DefaultVersion"
102
- }
103
- export interface DraftMetadataDTO {
104
- appId: number;
105
- envId: number;
106
- resource: number;
107
- resourceName: string;
108
- action: number;
109
- data: string;
110
- userComment: string;
111
- changeProposed: boolean;
112
- protectNotificationConfig: {
113
- [key: string]: null;
114
- };
115
- draftId: number;
116
- draftVersionId: number;
117
- draftState: number;
118
- approvers: string[];
119
- canApprove: boolean;
120
- commentsCount: number;
121
- dataEncrypted: boolean;
122
- isAppAdmin: boolean;
123
- }
124
- export interface ConfigDatum {
125
- name: string;
126
- type: string;
127
- external: boolean;
128
- data: Record<string, string>;
129
- defaultData: Record<string, string>;
130
- global: boolean;
131
- externalType: string;
132
- esoSecretData: {};
133
- defaultESOSecretData: {};
134
- secretData: Record<string, string>;
135
- defaultSecretData: Record<string, string>;
136
- roleARN: string;
137
- subPath: boolean;
138
- filePermission: string;
139
- overridden: boolean;
140
- mountPath?: string;
141
- defaultMountPath?: string;
142
- }
143
- export interface ConfigMapSecretDataConfigDatumDTO extends ConfigDatum {
144
- draftMetadata: DraftMetadataDTO;
145
- }
146
- export interface ConfigMapSecretDataType {
147
- id: number;
148
- appId: number;
149
- configData: ConfigMapSecretDataConfigDatumDTO[];
150
- }
151
- export declare enum ConfigResourceType {
152
- ConfigMap = "ConfigMap",
153
- Secret = "Secret",
154
- DeploymentTemplate = "Deployment Template"
155
- }
156
- export interface DeploymentTemplateDTO {
157
- resourceType: ConfigResourceType.DeploymentTemplate;
158
- data: {
159
- [key: string]: any;
160
- };
161
- deploymentDraftData: ConfigMapSecretDataType | null;
162
- }
163
- export interface ConfigMapSecretDataDTO {
164
- resourceType: Extract<ConfigResourceType, ConfigResourceType.ConfigMap | ConfigResourceType.Secret>;
165
- data: ConfigMapSecretDataType;
166
- }
167
- export interface AppEnvDeploymentConfigDTO {
168
- deploymentTemplate: DeploymentTemplateDTO | null;
169
- configMapData: ConfigMapSecretDataDTO | null;
170
- secretsData: ConfigMapSecretDataDTO | null;
171
- isAppAdmin: boolean;
172
- }
173
- export interface AppEnvDeploymentConfigPayloadType {
174
- appName: string;
175
- envName: string;
176
- configType: AppEnvDeploymentConfigType;
177
- identifierId?: number;
178
- pipelineId?: number;
179
- resourceType?: ConfigResourceType;
180
- resourceId?: number;
181
- resourceName?: string;
182
- }
183
- export declare enum TemplateListType {
184
- DefaultVersions = 1,
185
- PublishedOnEnvironments = 2,
186
- DeployedOnSelfEnvironment = 3,
187
- DeployedOnOtherEnvironment = 4
188
- }
189
- export interface TemplateListDTO {
190
- chartRefId: number;
191
- chartVersion?: string;
192
- chartType?: string;
193
- type: TemplateListType;
194
- environmentId?: number;
195
- environmentName?: string;
196
- deploymentTemplateHistoryId?: number;
197
- finishedOn?: string;
198
- status?: string;
199
- pipelineId?: number;
200
- }
201
- export declare enum DraftState {
202
- Init = 1,
203
- Discarded = 2,
204
- Published = 3,
205
- AwaitApproval = 4
206
- }
207
- export declare enum EnvResourceType {
208
- ConfigMap = "configmap",
209
- Secret = "secrets",
210
- DeploymentTemplate = "deployment-template"
211
- }
212
96
  export {};
@@ -1,6 +1,3 @@
1
- import { OptionType } from '../Common/Types';
2
- import { CDMaterialSidebarType } from './types';
3
-
4
1
  export declare const ARTIFACT_STATUS: {
5
2
  PROGRESSING: string;
6
3
  DEGRADED: string;
@@ -400,4 +397,3 @@ export declare enum SelectAllGroupedResourceIdentifiers {
400
397
  allExistingAndFutureProdEnvironments = "-2",
401
398
  allExistingAndFutureEnvironments = "-3"
402
399
  }
403
- export declare const CD_MATERIAL_SIDEBAR_TABS: OptionType<CDMaterialSidebarType, CDMaterialSidebarType>[];
@@ -1,5 +1,4 @@
1
1
  import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams } from '../Common';
2
- import { KeyValueListType } from './Components';
3
2
  import { EnvironmentTypeEnum, PatchOperationType } from './constants';
4
3
 
5
4
  export declare enum EnvType {
@@ -211,10 +210,8 @@ export declare enum DefaultUserKey {
211
210
  }
212
211
  export declare enum Severity {
213
212
  CRITICAL = "critical",
214
- HIGH = "high",
215
- MEDIUM = "medium",
216
- LOW = "low",
217
- UNKNOWN = "unknown"
213
+ MODERATE = "moderate",
214
+ LOW = "low"
218
215
  }
219
216
  export declare enum ImagePromotionTabs {
220
217
  REQUEST = "request",
@@ -288,10 +285,6 @@ export declare enum CIMaterialSidebarType {
288
285
  CODE_SOURCE = "Code Source",
289
286
  PARAMETERS = "Parameters"
290
287
  }
291
- export declare enum CDMaterialSidebarType {
292
- IMAGE = "Image",
293
- PARAMETERS = "Parameters"
294
- }
295
288
  /**
296
289
  * @example Usage with specific enum for path & `unknown` type for value
297
290
  * ```ts
@@ -387,19 +380,16 @@ export declare enum ResourceVersionType {
387
380
  v1 = "v1",
388
381
  alpha1 = "alpha1"
389
382
  }
390
- export interface SeverityCount {
391
- critical: number;
392
- high: number;
393
- medium: number;
394
- low: number;
395
- unknown: number;
396
- }
397
383
  export declare enum PolicyKindType {
398
384
  lockConfiguration = "lock-configuration"
399
385
  }
400
386
  export interface LastExecutionResultType {
401
387
  lastExecution: string;
402
- severityCount: SeverityCount;
388
+ severityCount: {
389
+ critical: number;
390
+ moderate: number;
391
+ low: number;
392
+ };
403
393
  vulnerabilities: VulnerabilityType[];
404
394
  scanExecutionId?: number;
405
395
  appId?: number;
@@ -546,13 +536,6 @@ export interface BatchConfigType {
546
536
  export interface scrollableInterface {
547
537
  autoBottomScroll: boolean;
548
538
  }
549
- export declare enum URLProtocolType {
550
- HTTP = "http:",
551
- HTTPS = "https:",
552
- SSH = "ssh:",
553
- SMTP = "smtp:",
554
- S3 = "s3:"
555
- }
556
539
  export type BaseFilterQueryParams<T> = {
557
540
  /**
558
541
  * Offset for the list result
@@ -571,11 +554,4 @@ export type BaseFilterQueryParams<T> = {
571
554
  */
572
555
  showAll?: boolean;
573
556
  } & SortingParams<T>;
574
- export interface RuntimeParamsListItemType extends KeyValueListType {
575
- id: number;
576
- }
577
- export declare enum RuntimeParamsHeadingType {
578
- KEY = "key",
579
- VALUE = "value"
580
- }
581
557
  export {};
@@ -1,5 +1,3 @@
1
- import { URLProtocolType } from './types';
2
-
3
1
  export interface ValidationResponseType {
4
2
  isValid: boolean;
5
3
  message?: string;
@@ -22,7 +20,6 @@ export declare const validateStringLength: (value: string, maxLimit: number, min
22
20
  export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
23
21
  export declare const validateRequiredPositiveInteger: (value: string | number) => ValidationResponseType;
24
22
  export declare const validateURL: (url: string, allowBase64Url?: boolean) => ValidationResponseType;
25
- export declare const validateProtocols: (url: string, protocols: URLProtocolType[], isRequired?: boolean) => ValidationResponseType;
26
23
  export declare const validateIfImageExist: (url: string) => Promise<ValidationResponseType>;
27
24
  export declare const validateUniqueKeys: (keys: string[]) => {
28
25
  isValid: boolean;
@@ -31,3 +28,4 @@ export declare const validateUniqueKeys: (keys: string[]) => {
31
28
  isValid: boolean;
32
29
  message: string;
33
30
  };
31
+ export declare const validateJSON: (json: string) => ValidationResponseType;