@devtron-labs/devtron-fe-common-lib 1.21.1-beta-7 → 1.21.2-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.
@@ -1,7 +1,7 @@
1
1
  import { j as n, au as T, aw as J, av as K } from "./@vendor-3ORIJA0h.js";
2
2
  import V, { useState as q, useEffect as Y, forwardRef as G, useMemo as E } from "react";
3
3
  import z, { getDefaultRegistry as Q } from "@rjsf/core";
4
- import { T as O, j as F, c as w, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-DuhoMIyQ.js";
4
+ import { T as O, j as F, c as w, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-B2nseLA_.js";
5
5
  import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as re, ADDITIONAL_PROPERTY_FLAG as L, errorId as se, englishStringTranslator as ae, TranslatableString as oe, titleId as le, canExpand as ie, deepEquals as ce } from "@rjsf/utils";
6
6
  import { ReactComponent as de } from "./assets/ic-add.cfaa779b.svg";
7
7
  import { ReactComponent as ue } from "./assets/ic-warning.ecf7ff97.svg";
@@ -506,12 +506,6 @@ export interface AggregatedNodes {
506
506
  };
507
507
  };
508
508
  }
509
- export interface PodMetadatum {
510
- name: string;
511
- uid: string;
512
- containers: string[];
513
- isNew: boolean;
514
- }
515
509
  export declare const STATUS_SORTING_ORDER: {
516
510
  missing: number;
517
511
  degraded: number;
@@ -1,10 +1,6 @@
1
1
  import { IllustrationBaseProps } from './types';
2
2
  export declare const illustrationMap: {
3
- 'img-celebration': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
4
- 'img-install-freemium-saas': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
5
- 'img-install-via-aws-marketplace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
6
3
  'img-mechanical-operation': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
7
- 'img-page-not-found': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
8
4
  'img-code': string;
9
5
  'img-devtron-freemium': string;
10
6
  'img-man-on-rocket': string;
@@ -1,3 +1,3 @@
1
1
  import { DevtronLicenseCardProps } from './types';
2
- export declare const DevtronLicenseCard: ({ enterpriseName, licenseKey, licenseSuffix, expiryDate, licenseStatus, isTrial, isFreemium, ttl, appTheme, handleCopySuccess, licenseStatusError, isSaasInstance, }: DevtronLicenseCardProps) => JSX.Element;
2
+ export declare const DevtronLicenseCard: ({ enterpriseName, licenseKey, licenseSuffix, expiryDate, licenseStatus, isTrial, isFreemium, ttl, appTheme, handleCopySuccess, licenseStatusError, }: DevtronLicenseCardProps) => JSX.Element;
3
3
  export default DevtronLicenseCard;
@@ -1,6 +1,5 @@
1
1
  export { default as ActivateLicenseDialog } from './ActivateLicenseDialog';
2
2
  export { default as DevtronLicenseCard } from './DevtronLicenseCard';
3
3
  export { ICDevtronWithBorder, default as InstallationFingerprintInfo } from './License.components';
4
- export { activateLicense } from './services';
5
4
  export * from './types';
6
5
  export { parseDevtronLicenseData, parseDevtronLicenseDTOIntoLicenseCardData } from './utils';
@@ -14,7 +14,6 @@ export type DevtronLicenseCardProps = {
14
14
  isFreemium: boolean;
15
15
  appTheme: AppThemeType;
16
16
  licenseStatusError: LicenseErrorStruct;
17
- isSaasInstance: boolean;
18
17
  } & ({
19
18
  licenseKey: string;
20
19
  handleCopySuccess?: () => void;
@@ -24,9 +23,6 @@ export type DevtronLicenseCardProps = {
24
23
  handleCopySuccess?: never;
25
24
  licenseSuffix: string;
26
25
  });
27
- export interface LicenseCardSubTextProps extends Pick<DevtronLicenseCardProps, 'isFreemium' | 'licenseStatus' | 'licenseStatusError'> {
28
- isFreeForever: boolean;
29
- }
30
26
  export type DevtronLicenseInfo = Omit<DevtronLicenseCardProps, 'appTheme'> & Pick<DevtronLicenseDTO, 'fingerprint' | 'showLicenseData' | 'licenseStatusError' | 'moduleLimits'>;
31
27
  export interface ActivateLicenseDialogProps extends Pick<DevtronLicenseBaseDTO, 'fingerprint'> {
32
28
  enterpriseName: string;
@@ -1,6 +1,6 @@
1
1
  import { DevtronLicenseDTO } from '../../types';
2
2
  import { DevtronLicenseCardProps, DevtronLicenseInfo } from './types';
3
- export declare const getLicenseColorsAccordingToStatus: ({ isFreemium, licenseStatus, licenseStatusError, isSaasInstance, }: Pick<DevtronLicenseCardProps, "licenseStatus" | "isFreemium" | "licenseStatusError" | "isSaasInstance">) => {
3
+ export declare const getLicenseColorsAccordingToStatus: ({ isFreemium, licenseStatus, licenseStatusError, }: Pick<DevtronLicenseCardProps, "licenseStatus" | "isFreemium" | "licenseStatusError">) => {
4
4
  bgColor: string;
5
5
  textColor: string;
6
6
  };
@@ -5,8 +5,8 @@ import { Pair } from 'yaml';
5
5
  import { MaterialHistoryType } from './Services/app.types';
6
6
  import { ApprovalConfigDataType, MaterialInfo, SortingOrder, UserApprovalConfigType, UserApprovalInfo } from '../Common';
7
7
  import { GVKType } from '../Pages';
8
- import { AggregatedNodes, PodMetadatum } from './Components';
9
- import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, Node, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
8
+ import { AggregatedNodes } from './Components';
9
+ import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, Node, PodMetaData, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
10
10
  interface HighlightSearchTextProps {
11
11
  /**
12
12
  * The text to be highlighted
@@ -37,7 +37,7 @@ export declare const isNullOrUndefined: (value: unknown) => boolean;
37
37
  export declare const handleDisableSubmitOnEnter: (event: React.KeyboardEvent<HTMLFormElement>) => void;
38
38
  export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
39
39
  export declare const renderValidInputButtonTippy: (children: ReactElement) => JSX.Element;
40
- export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
40
+ export declare function aggregateNodes(nodes: any[], podMetadata: PodMetaData[]): AggregatedNodes;
41
41
  export declare const decode: (data: any, isEncoded?: boolean) => {};
42
42
  export declare const isTimeStringAvailable: (time: string) => boolean;
43
43
  export declare const getTimeDifference: ({ startTime, endTime, fallbackString, }: GetTimeDifferenceParamsType) => string;
@@ -434,4 +434,3 @@ export declare const PROGRESSING_DEPLOYMENT_STATUS_POLLING_INTERVAL = 10000;
434
434
  export declare const STRATEGY_TYPE_TO_TITLE_MAP: Record<DeploymentStrategyTypeWithDefault, string>;
435
435
  export declare const CUBIC_BEZIER_CURVE: [number, number, number, number];
436
436
  export declare const ALLOW_ACTION_OUTSIDE_FOCUS_TRAP = "allow-action-outside-focus-trap";
437
- export declare const LICENSE_KEY_QUERY_PARAM = "licenseKey";
@@ -129,13 +129,21 @@ export interface iNode extends Node {
129
129
  status: string;
130
130
  pNode?: iNode;
131
131
  }
132
+ export interface HelmReleaseStatus {
133
+ status: string;
134
+ message: string;
135
+ description: string;
136
+ }
132
137
  export interface ResourceTree {
133
- conditions: any;
138
+ nodes: Node[];
134
139
  newGenerationReplicaSet: string;
135
- nodes: Array<Node>;
136
- podMetadata: Array<PodMetaData>;
137
140
  status: string;
141
+ podMetadata: PodMetaData[];
142
+ conditions?: any;
143
+ releaseStatus?: HelmReleaseStatus;
138
144
  resourcesSyncResult?: Record<string, string>;
145
+ hasDrift?: boolean;
146
+ lastSnapshotTime?: string;
139
147
  wfrId?: number;
140
148
  }
141
149
  export declare enum AppType {
@@ -145,11 +153,6 @@ export declare enum AppType {
145
153
  EXTERNAL_ARGO_APP = "external_argo_app",
146
154
  EXTERNAL_FLUX_APP = "external_flux_app"
147
155
  }
148
- export interface HelmReleaseStatus {
149
- status: string;
150
- message: string;
151
- description: string;
152
- }
153
156
  interface MaterialInfo {
154
157
  author: string;
155
158
  branch: string;
@@ -173,7 +176,7 @@ export interface AppDetails {
173
176
  appStoreChartName?: string;
174
177
  appStoreInstalledAppVersionId?: number;
175
178
  ciArtifactId?: number;
176
- deprecated?: false;
179
+ deprecated?: boolean;
177
180
  environmentId?: number;
178
181
  environmentName: string;
179
182
  installedAppId?: number;
@@ -209,6 +212,12 @@ export interface AppDetails {
209
212
  FluxAppStatusDetail?: FluxAppStatusDetail;
210
213
  isPipelineTriggered?: boolean;
211
214
  releaseMode?: ReleaseMode;
215
+ cdPipelineId?: number;
216
+ triggerType?: string;
217
+ parentEnvironmentName?: string;
218
+ ciPipelineId?: number;
219
+ trafficSwitched?: boolean;
220
+ pcoId?: number;
212
221
  }
213
222
  export interface ConfigDriftModalProps extends Required<Pick<AppDetails, 'appId'>> {
214
223
  envId: number;
@@ -941,10 +950,18 @@ export interface LicenseErrorStruct {
941
950
  code: LicensingErrorCodes;
942
951
  userMessage: string;
943
952
  }
944
- export type DevtronLicenseBaseDTO = {
953
+ export interface DevtronLicenseBaseDTO {
945
954
  fingerprint: string | null;
946
955
  isTrial: boolean | null;
947
956
  isFreemium: boolean | null;
957
+ /**
958
+ * In timestamp format
959
+ */
960
+ expiry: string | null;
961
+ /**
962
+ * Can be negative, depicts time left in seconds for license to expire
963
+ */
964
+ ttl: number | null;
948
965
  /**
949
966
  * Show a reminder after these many DAYS left for license to expire, i.e,
950
967
  * Show if `ttl` is less than `reminderThreshold` [converted to seconds]
@@ -955,28 +972,7 @@ export type DevtronLicenseBaseDTO = {
955
972
  domain: string | null;
956
973
  } | null;
957
974
  license: string | null;
958
- } & ({
959
- isSaasInstance: true;
960
- /**
961
- * In seconds
962
- */
963
- timeElapsedSinceCreation: number;
964
- creationTime: string;
965
- ttl?: never;
966
- expiry?: never;
967
- } | {
968
- isSaasInstance?: false;
969
- timeElapsedSinceCreation?: never;
970
- creationTime?: never;
971
- /**
972
- * Can be negative, depicts time left in seconds for license to expire
973
- */
974
- ttl: number | null;
975
- /**
976
- * In timestamp format
977
- */
978
- expiry: string | null;
979
- });
975
+ }
980
976
  export type DevtronLicenseDTO<isCentralDashboard extends boolean = false> = DevtronLicenseBaseDTO & (isCentralDashboard extends true ? {
981
977
  claimedByUserDetails: {
982
978
  firstName: string | null;
@@ -986,13 +982,8 @@ export type DevtronLicenseDTO<isCentralDashboard extends boolean = false> = Devt
986
982
  showLicenseData?: never;
987
983
  licenseStatusError?: never;
988
984
  moduleLimits?: never;
989
- instanceData: {
990
- devtronUrl: string;
991
- devtronPassword: string;
992
- } | null;
993
985
  } : {
994
986
  claimedByUserDetails?: never;
995
- instanceData?: never;
996
987
  showLicenseData: boolean;
997
988
  licenseStatusError?: LicenseErrorStruct;
998
989
  moduleLimits: {