@devtron-labs/devtron-fe-common-lib 0.1.7-beta-4 → 0.1.7-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 (29) hide show
  1. package/dist/Common/AppStatus/constants.d.ts +0 -5
  2. package/dist/Common/Types.d.ts +1 -2
  3. package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -0
  4. package/dist/Shared/Components/CICDHistory/types.d.ts +14 -0
  5. package/dist/Shared/Components/CICDHistory/utils.d.ts +2 -1
  6. package/dist/Shared/Components/Header/HeaderWithCreateButton/constants.d.ts +22 -0
  7. package/dist/Shared/Helpers.d.ts +1 -0
  8. package/dist/Shared/constants.d.ts +1 -26
  9. package/dist/Shared/types.d.ts +1 -9
  10. package/dist/assets/index.css +1 -1
  11. package/dist/{cssMode-fc2be6d5.js → cssMode-c5910bf3.js} +1 -1
  12. package/dist/{freemarker2-ab57a29d.js → freemarker2-d3449fd9.js} +1 -1
  13. package/dist/{handlebars-871e6835.js → handlebars-52f4b4a2.js} +1 -1
  14. package/dist/{html-670d22ac.js → html-fd4b0845.js} +1 -1
  15. package/dist/{htmlMode-f5102733.js → htmlMode-d284e7ac.js} +1 -1
  16. package/dist/{index-b430b2a2.js → index-f56c4e13.js} +20508 -20374
  17. package/dist/index.d.ts +1 -2
  18. package/dist/index.js +350 -348
  19. package/dist/{javascript-58e5b3f5.js → javascript-5e96e0b5.js} +1 -1
  20. package/dist/{jsonMode-2cc430f9.js → jsonMode-b1a0ddb0.js} +1 -1
  21. package/dist/{liquid-9977f727.js → liquid-4b2890bd.js} +1 -1
  22. package/dist/{mdx-d6d3e9d4.js → mdx-a339d43c.js} +1 -1
  23. package/dist/{python-890444de.js → python-c3eb0270.js} +1 -1
  24. package/dist/{razor-28b18835.js → razor-068bf9aa.js} +1 -1
  25. package/dist/{tsMode-ec7004ab.js → tsMode-8cba0196.js} +1 -1
  26. package/dist/{typescript-d5a6cd11.js → typescript-73e60be7.js} +1 -1
  27. package/dist/{xml-c48d9e49.js → xml-cd163ac4.js} +1 -1
  28. package/dist/{yaml-c3b03264.js → yaml-f5176015.js} +1 -1
  29. package/package.json +1 -1
@@ -4,11 +4,6 @@ export declare const StatusConstants: {
4
4
  normalCase: string;
5
5
  lowerCase: string;
6
6
  };
7
- NOT_READY: {
8
- noSpaceLower: string;
9
- normalCase: string;
10
- lowerCase: string;
11
- };
12
7
  APP_STATUS: {
13
8
  noSpaceLower: string;
14
9
  normalText: string;
@@ -488,8 +488,7 @@ export declare enum DeploymentAppTypes {
488
488
  HELM = "helm",
489
489
  GITOPS = "argo_cd",
490
490
  MANIFEST_DOWNLOAD = "manifest_download",
491
- MANIFEST_PUSH = "manifest_push",
492
- FLUX = "flux"
491
+ MANIFEST_PUSH = "manifest_push"
493
492
  }
494
493
  export interface VulnerabilityType {
495
494
  name: string;
@@ -43,3 +43,4 @@ export declare const DEFAULT_ENV = "devtron-ci";
43
43
  export declare const LOGS_RETRY_COUNT = 3;
44
44
  export declare const DEPLOYMENT_STATUS_QUERY_PARAM = "deployment-status";
45
45
  export declare const MANIFEST_STATUS_HEADERS: string[];
46
+ export declare const LOGS_STAGE_IDENTIFIER = "STAGE_INFO";
@@ -584,6 +584,20 @@ export interface TriggerHistoryFilterCriteriaProps {
584
584
  releaseId: number;
585
585
  showCurrentReleaseDeployments: boolean;
586
586
  }
587
+ export declare enum StageStatusType {
588
+ SUCCESS = "Success",
589
+ FAILURE = "Failure"
590
+ }
591
+ export interface StageInfoDTO {
592
+ stage: string;
593
+ startTime: string;
594
+ endTime?: string;
595
+ status: StageStatusType;
596
+ }
597
+ export interface StageDetailType extends Pick<StageInfoDTO, 'stage' | 'startTime' | 'endTime' | 'status'> {
598
+ logs: string[];
599
+ isOpen: boolean;
600
+ }
587
601
  export type TriggerHistoryFilterCriteriaType = `${string}|${string}|${string}`[];
588
602
  export declare const terminalStatus: Set<string>;
589
603
  export declare const statusSet: Set<string>;
@@ -1,6 +1,7 @@
1
- import { TriggerHistoryFilterCriteriaProps, DeploymentHistoryResultObject, TriggerHistoryFilterCriteriaType } from './types';
1
+ import { TriggerHistoryFilterCriteriaProps, DeploymentHistoryResultObject, TriggerHistoryFilterCriteriaType, StageStatusType } from './types';
2
2
 
3
3
  export declare const getTriggerHistoryFilterCriteria: ({ appId, envId, releaseId, showCurrentReleaseDeployments, }: TriggerHistoryFilterCriteriaProps) => TriggerHistoryFilterCriteriaType;
4
4
  export declare const getParsedTriggerHistory: (result: any) => DeploymentHistoryResultObject;
5
5
  export declare const buildHoverHtmlForWebhook: (eventName: any, condition: any, selectors: any) => JSX.Element;
6
6
  export declare const renderIcon: (iconState: string) => JSX.Element;
7
+ export declare const getStageStatusIcon: (status: StageStatusType) => JSX.Element;
@@ -0,0 +1,22 @@
1
+ declare const AppListConstants: {
2
+ SAMPLE_NODE_REPO_URL: string;
3
+ CREATE_DEVTRON_APP_URL: string;
4
+ AppTabs: {
5
+ DEVTRON_APPS: string;
6
+ HELM_APPS: string;
7
+ ARGO_APPS: string;
8
+ };
9
+ AppType: {
10
+ DEVTRON_APPS: string;
11
+ HELM_APPS: string;
12
+ ARGO_APPS: string;
13
+ };
14
+ FilterType: {
15
+ PROJECT: string;
16
+ CLUTSER: string;
17
+ NAMESPACE: string;
18
+ ENVIRONMENT: string;
19
+ APP_STATUS: string;
20
+ };
21
+ };
22
+ export default AppListConstants;
@@ -32,4 +32,5 @@ export declare const renderValidInputButtonTippy: (children: ReactElement) => JS
32
32
  export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
33
33
  export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
34
34
  export declare const decode: (data: any, isEncoded?: boolean) => {};
35
+ export declare const getTimeDifference: (startTime: string, endTime: string) => string;
35
36
  export {};
@@ -348,33 +348,8 @@ export declare const statusColor: {
348
348
  };
349
349
  export declare const APP_STATUS_HEADERS: string[];
350
350
  export declare const MATERIAL_EXCLUDE_TIPPY_TEXT = "Not available for build as this commit contains changes in excluded files or folders";
351
- export declare const AppListConstants: {
352
- SAMPLE_NODE_REPO_URL: string;
353
- CREATE_DEVTRON_APP_URL: string;
354
- AppTabs: {
355
- DEVTRON_APPS: string;
356
- HELM_APPS: string;
357
- ARGO_APPS: string;
358
- FLUX_APPS: string;
359
- };
360
- AppType: {
361
- DEVTRON_APPS: string;
362
- HELM_APPS: string;
363
- ARGO_APPS: string;
364
- FLUX_APPS: string;
365
- };
366
- FilterType: {
367
- PROJECT: string;
368
- CLUTSER: string;
369
- NAMESPACE: string;
370
- ENVIRONMENT: string;
371
- APP_STATUS: string;
372
- TEMPLATE_TYPE: string;
373
- };
374
- };
375
351
  export declare enum K8sResourcePayloadAppType {
376
352
  DEVTRON_APP = 0,
377
353
  HELM_APP = 1,
378
- EXTERNAL_ARGO_APP = 2,
379
- EXTERNAL_FLUX_APP = 3
354
+ EXTERNAL_ARGO_APP = 2
380
355
  }
@@ -124,8 +124,7 @@ export declare enum AppType {
124
124
  DEVTRON_APP = "devtron_app",
125
125
  DEVTRON_HELM_CHART = "devtron_helm_chart",
126
126
  EXTERNAL_HELM_CHART = "external_helm_chart",
127
- EXTERNAL_ARGO_APP = "external_argo_app",
128
- EXTERNAL_FLUX_APP = "external_flux_app"
127
+ EXTERNAL_ARGO_APP = "external_argo_app"
129
128
  }
130
129
  export interface HelmReleaseStatus {
131
130
  status: string;
@@ -141,11 +140,6 @@ interface MaterialInfo {
141
140
  url: string;
142
141
  webhookData: string;
143
142
  }
144
- export interface FluxAppStatusDetail {
145
- status: string;
146
- message: string;
147
- reason: string;
148
- }
149
143
  export interface AppDetails {
150
144
  appId?: number;
151
145
  appName: string;
@@ -187,8 +181,6 @@ export interface AppDetails {
187
181
  helmPackageName?: string;
188
182
  appStatus?: string;
189
183
  chartAvatar?: string;
190
- fluxTemplateType?: string;
191
- FluxAppStatusDetail?: FluxAppStatusDetail;
192
184
  }
193
185
  export declare enum RegistryType {
194
186
  GIT = "git",