@devtron-labs/devtron-fe-common-lib 1.13.0-pre-2 → 1.13.0-pre-4

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 (28) hide show
  1. package/dist/{@common-rjsf-BnxVmLH4.js → @common-rjsf-B9RVxEzF.js} +4655 -4614
  2. package/dist/Common/Common.service.d.ts +2 -2
  3. package/dist/Common/Constants.d.ts +0 -1
  4. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -0
  5. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +8 -0
  6. package/dist/Pages/GlobalConfigurations/index.d.ts +1 -0
  7. package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
  8. package/dist/Pages/ResourceBrowser/types.d.ts +38 -0
  9. package/dist/Shared/Components/CICDHistory/utils.d.ts +4 -1
  10. package/dist/Shared/Components/Icon/Icon.d.ts +4 -1
  11. package/dist/Shared/Components/LoginBanner/Testimonials.components.d.ts +3 -0
  12. package/dist/Shared/Components/LoginBanner/index.d.ts +2 -0
  13. package/dist/Shared/Components/SelectPicker/common.d.ts +1 -0
  14. package/dist/Shared/Components/SelectPicker/index.d.ts +1 -0
  15. package/dist/Shared/Components/StatusComponent/types.d.ts +2 -1
  16. package/dist/Shared/Components/index.d.ts +0 -1
  17. package/dist/Shared/types.d.ts +5 -0
  18. package/dist/assets/@common-rjsf.css +1 -1
  19. package/dist/assets/ic-cluster.71ba9e26.svg +3 -0
  20. package/dist/assets/ic-delete-dots.5380e0d0.svg +62 -0
  21. package/dist/assets/ic-enterprise-feat.5ee25d5b.svg +3 -0
  22. package/dist/assets/ic-enterprise-tag.209dd129.svg +43 -0
  23. package/dist/index.js +666 -661
  24. package/package.json +1 -1
  25. package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +0 -2
  26. package/dist/Shared/Components/EnterpriseTag/index.d.ts +0 -1
  27. package/dist/assets/ic-login-devtron-logo.702a1d04.svg +0 -22
  28. package/dist/assets/ic-medal.a2e911f5.svg +0 -19
@@ -1,6 +1,6 @@
1
1
  import { MutableRefObject } from 'react';
2
2
  import { RuntimeParamsAPIResponseType, RuntimePluginVariables } from '../Shared/types';
3
- import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole, EnvAppsMetaDTO, GetAppsInfoForEnvProps } from './Types';
3
+ import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole, APIOptions, EnvAppsMetaDTO, GetAppsInfoForEnvProps } from './Types';
4
4
  import { ApiResourceType } from '../Pages';
5
5
  export declare const getTeamListMin: () => Promise<TeamList>;
6
6
  export declare const SourceTypeMap: {
@@ -21,7 +21,7 @@ export declare const getDefaultConfig: () => Promise<ResponseType>;
21
21
  export declare function getEnvironmentListMinPublic(includeAllowedDeploymentTypes?: boolean): Promise<ResponseType<any>>;
22
22
  export declare function getClusterListMin(): Promise<ResponseType<any>>;
23
23
  export declare const getResourceGroupListRaw: (clusterId: string) => Promise<ResponseType<ApiResourceType>>;
24
- export declare function getNamespaceListMin(clusterIdsCsv: string): Promise<EnvironmentListHelmResponse>;
24
+ export declare function getNamespaceListMin(clusterIdsCsv: string, abortControllerRef?: APIOptions['abortControllerRef']): Promise<EnvironmentListHelmResponse>;
25
25
  export declare function getWebhookEventsForEventId(eventId: string | number): Promise<ResponseType<any>>;
26
26
  /**
27
27
  *
@@ -43,7 +43,6 @@ export declare const URLS: {
43
43
  readonly CREATE_JOB: "create-job";
44
44
  readonly GETTING_STARTED: "getting-started";
45
45
  readonly STACK_MANAGER_ABOUT: "/stack-manager/about";
46
- readonly APP_LIST_HELM: "h";
47
46
  readonly APP_CI_DETAILS: "ci-details";
48
47
  readonly LOGS: "Logs";
49
48
  readonly CREATE: "/create";
@@ -0,0 +1 @@
1
+ export type { NewClusterFormFooterProps, NewClusterFormProps } from './types';
@@ -0,0 +1,8 @@
1
+ export interface NewClusterFormFooterProps {
2
+ apiCallInProgress: boolean;
3
+ handleModalClose: () => void;
4
+ closeButtonText?: string;
5
+ }
6
+ export interface NewClusterFormProps extends Pick<NewClusterFormFooterProps, 'handleModalClose'> {
7
+ FooterComponent: React.FunctionComponent<NewClusterFormFooterProps> & Record<'CTA' | 'Start', React.FunctionComponent<{}>>;
8
+ }
@@ -1,4 +1,5 @@
1
1
  export * from './Authorization';
2
2
  export * from './BuildInfra';
3
+ export * from './ClustersAndEnvironments';
3
4
  export * from './DeploymentCharts';
4
5
  export * from './ScopedVariables';
@@ -7,4 +7,4 @@ export declare const deleteResource: (resourceListPayload: ResourceListPayloadTy
7
7
  export declare const deleteNodeCapacity: (requestPayload: NodeActionRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
8
8
  export declare const cordonNodeCapacity: (requestPayload: NodeCordonRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
9
9
  export declare const drainNodeCapacity: (requestPayload: NodeActionRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
10
- export declare const getClusterListRaw: () => Promise<ResponseType<ClusterDetail[]>>;
10
+ export declare const getClusterListRaw: (abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType<ClusterDetail[]>>;
@@ -1,10 +1,20 @@
1
1
  import { Dispatch, ReactElement, SetStateAction } from 'react';
2
+ import { InstallationClusterType } from '../../Shared/types';
2
3
  import { NodeActionRequest } from './ResourceBrowser.Types';
3
4
  export declare enum ClusterFiltersType {
4
5
  ALL_CLUSTERS = "all",
5
6
  HEALTHY = "healthy",
6
7
  UNHEALTHY = "unhealthy"
7
8
  }
9
+ export declare enum InstallationClusterStatus {
10
+ Creating = "Creating",
11
+ Updated = "Updated",
12
+ Updating = "Updating",
13
+ Installed = "Installed",
14
+ Failed = "Failed",
15
+ Deleting = "Deleting",
16
+ Deleted = "Deleted"
17
+ }
8
18
  export declare enum ClusterStatusType {
9
19
  HEALTHY = "healthy",
10
20
  UNHEALTHY = "unhealthy",
@@ -42,6 +52,7 @@ export interface ClusterCapacityType {
42
52
  nodeErrors: Record<string, string>[];
43
53
  status?: ClusterStatusType;
44
54
  isProd: boolean;
55
+ installationId?: number;
45
56
  }
46
57
  export interface ClusterDetail extends ClusterCapacityType {
47
58
  id: number;
@@ -70,4 +81,31 @@ export interface AdditionalConfirmationModalOptionsProps<T = unknown> {
70
81
  setOptionsData: Dispatch<SetStateAction<T>>;
71
82
  children?: ReactElement;
72
83
  }
84
+ export interface InstallationClusterStepType {
85
+ lastTransitionTime: string;
86
+ lastProbeTime: string;
87
+ message: string;
88
+ reason: string;
89
+ status: 'False' | 'True' | 'Unknown';
90
+ type: string;
91
+ }
92
+ export interface InstallationClusterConfigDTO {
93
+ installationId: number;
94
+ installationStatus: InstallationClusterStatus;
95
+ name: string;
96
+ values: string;
97
+ valuesSchema: string;
98
+ isProd: boolean;
99
+ installationType: InstallationClusterType;
100
+ conditions: InstallationClusterStepType[];
101
+ installedEntityId: number | 0;
102
+ }
103
+ export interface InstallationClusterConfigType extends Pick<InstallationClusterConfigDTO, 'installationType' | 'conditions'> {
104
+ schema: object;
105
+ values: object;
106
+ installationId: number;
107
+ name: string;
108
+ status: InstallationClusterStatus;
109
+ correspondingClusterId: number | 0;
110
+ }
73
111
  export {};
@@ -1,6 +1,8 @@
1
1
  import { ReactElement } from 'react';
2
+ import { DeploymentAppTypes } from '../../../Common/Types';
2
3
  import { Node } from '../../types';
3
- import { DeploymentHistoryResultObject, ExecutionInfoType, NodeFilters, NodeStatus, StageStatusType, TriggerHistoryFilterCriteriaProps, TriggerHistoryFilterCriteriaType, WorkflowExecutionStagesMapDTO, WorkflowStageStatusType } from './types';
4
+ import { TabGroupProps } from '../TabGroup';
5
+ import { DeploymentHistoryResultObject, ExecutionInfoType, History, NodeFilters, NodeStatus, StageStatusType, TriggerHistoryFilterCriteriaProps, TriggerHistoryFilterCriteriaType, WorkflowExecutionStagesMapDTO, WorkflowStageStatusType } from './types';
4
6
  export declare const getTriggerHistoryFilterCriteria: ({ appId, envId, releaseId, showCurrentReleaseDeployments, }: TriggerHistoryFilterCriteriaProps) => TriggerHistoryFilterCriteriaType;
5
7
  export declare const getParsedTriggerHistory: (result: any) => DeploymentHistoryResultObject;
6
8
  export declare const buildHoverHtmlForWebhook: (eventName: any, condition: any, selectors: any) => JSX.Element;
@@ -36,3 +38,4 @@ export declare const getStatusFilters: ({ allNodeCount, missingNodeCount, failed
36
38
  };
37
39
  export declare const getAppStatusIcon: (status: NodeStatus | NodeFilters, hideMessage?: boolean) => JSX.Element;
38
40
  export declare const getTriggerStatusIcon: (status: string) => string;
41
+ export declare const getTriggerOutputTabs: (triggerDetails: History, deploymentAppType: DeploymentAppTypes) => TabGroupProps["tabs"];
@@ -36,6 +36,7 @@ export declare const iconMap: {
36
36
  'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
37
37
  'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
38
38
  'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
39
+ 'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
39
40
  'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
40
41
  'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
41
42
  'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -43,6 +44,7 @@ export declare const iconMap: {
43
44
  'ic-cpu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
44
45
  'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
45
46
  'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
47
+ 'ic-delete-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
46
48
  'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
47
49
  'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
48
50
  'ic-delhivery': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -51,6 +53,8 @@ export declare const iconMap: {
51
53
  'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
52
54
  'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
53
55
  'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
56
+ 'ic-enterprise-feat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
57
+ 'ic-enterprise-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
54
58
  'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
55
59
  'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
56
60
  'ic-expand-right-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -91,7 +95,6 @@ export declare const iconMap: {
91
95
  'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
92
96
  'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
93
97
  'ic-livspace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
94
- 'ic-login-devtron-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
95
98
  'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
96
99
  'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
97
100
  'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -0,0 +1,3 @@
1
+ import { TestimonialCardConfig } from './types';
2
+ declare const TestimonialContent: ({ quote, name, designation, iconName }: TestimonialCardConfig) => JSX.Element;
3
+ export default TestimonialContent;
@@ -1 +1,3 @@
1
+ export { TESTIMONIAL_CARD_DATA } from './constants';
1
2
  export { default as LoginBanner } from './LoginBanner';
3
+ export { default as TestimonialContent } from './Testimonials.components';
@@ -13,3 +13,4 @@ export declare const SelectPickerMultiValueLabel: <OptionValue, IsMulti extends
13
13
  export declare const SelectPickerMultiValueRemove: (props: MultiValueRemoveProps) => JSX.Element;
14
14
  export declare const SelectPickerGroupHeading: <OptionValue>({ isGroupHeadingSelectable, ...props }: SelectPickerGroupHeadingProps<OptionValue>) => JSX.Element;
15
15
  export declare const renderLoadingMessage: () => JSX.Element;
16
+ export declare const ValueContainerWithLoadingShimmer: (props: ValueContainerProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ export { ValueContainerWithLoadingShimmer } from './common';
1
2
  export { default as FilterSelectPicker } from './FilterSelectPicker';
2
3
  export { default as SelectPicker } from './SelectPicker.component';
3
4
  export * from './SelectPickerTextArea.component';
@@ -16,7 +16,8 @@ export declare enum StatusType {
16
16
  PROGRESSING = "PROGRESSING",
17
17
  INPROGRESS = "INPROGRESS",
18
18
  HIBERNATING = "HIBERNATING",
19
- TIMED_OUT = "TIMED_OUT"
19
+ TIMED_OUT = "TIMED_OUT",
20
+ DELETING = "DELETING"
20
21
  }
21
22
  export interface StatusComponentProps {
22
23
  /** The status to display, either a predefined StatusType or a custom string. */
@@ -29,7 +29,6 @@ export * from './DiffViewer';
29
29
  export * from './DynamicDataTable';
30
30
  export * from './EditableTextArea';
31
31
  export * from './EditImageFormField';
32
- export * from './EnterpriseTag';
33
32
  export * from './EnvironmentSelector';
34
33
  export * from './Error';
35
34
  export * from './ExcludedImageNode';
@@ -410,6 +410,7 @@ export declare enum ResourceKindType {
410
410
  releaseChannel = "release-channel",
411
411
  tenant = "tenant",
412
412
  installation = "installation",
413
+ infrastructureInstallation = "installations",
413
414
  environment = "environment",
414
415
  cdPipeline = "cd-pipeline",
415
416
  ciPipeline = "ci-pipeline",
@@ -946,6 +947,10 @@ export type CountryISO2Type = ParsedCountry['iso2'];
946
947
  export declare enum ResponseHeaders {
947
948
  LICENSE_STATUS = "X-License-Status"
948
949
  }
950
+ export declare enum InstallationClusterType {
951
+ EKS_AUTO_CLUSTER = "eksAutoCluster",
952
+ EKS_MANUAL_CLUSTER = "eksManualCluster"
953
+ }
949
954
  export type IconBaseSizeType = 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 22 | 24 | 28 | 30 | 32 | 34 | 36 | 40 | 42 | 44 | 48 | 72 | 80;
950
955
  export type IconBaseColorType = `${'B' | 'N' | 'G' | 'Y' | 'R' | 'V' | 'O'}${`${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}00` | '50' | '0'}` | 'white' | 'black' | null;
951
956
  export interface GetTimeDifferenceParamsType {