@devtron-labs/devtron-fe-common-lib 1.22.0-beta-0 → 1.22.0-beta-2

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 (41) hide show
  1. package/dist/{@code-editor-umdiXXey.js → @code-editor-CzcUxxJb.js} +5024 -5013
  2. package/dist/{@common-rjsf-DlvuWlrc.js → @common-rjsf-DSfFirSh.js} +2 -2
  3. package/dist/{@framer-motion-LZK2bgCK.js → @framer-motion-Bi7d_Mil.js} +64 -64
  4. package/dist/{@react-dates-CbpfVsC0.js → @react-dates-CR-uCH60.js} +1 -1
  5. package/dist/{@react-select-BuPEYnTv.js → @react-select-C5q5RdNV.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-DX7VkyTZ.js → @react-virtualized-sticky-tree-LXSXNrbc.js} +1 -1
  7. package/dist/{@vendor-BsABdDGm.js → @vendor-CtCMPfdc.js} +9266 -9181
  8. package/dist/Common/API/reactQueryHooks.d.ts +2 -1
  9. package/dist/Common/Constants.d.ts +2 -0
  10. package/dist/Shared/Components/Charts/types.d.ts +0 -2
  11. package/dist/Shared/Components/DocLink/constants.d.ts +1 -0
  12. package/dist/Shared/Components/Icon/Icon.d.ts +13 -0
  13. package/dist/Shared/Components/Illustration/Illustration.d.ts +0 -4
  14. package/dist/Shared/Components/License/DevtronLicenseCard.d.ts +1 -1
  15. package/dist/Shared/Components/License/index.d.ts +0 -1
  16. package/dist/Shared/Components/License/types.d.ts +0 -4
  17. package/dist/Shared/Components/License/utils.d.ts +1 -1
  18. package/dist/Shared/Providers/MainContextProvider/types.d.ts +6 -1
  19. package/dist/Shared/Services/types.d.ts +1 -0
  20. package/dist/Shared/constants.d.ts +0 -1
  21. package/dist/Shared/types.d.ts +10 -28
  22. package/dist/assets/ic-bell.d2aa01ec.svg +3 -0
  23. package/dist/assets/ic-bulb.3906a732.svg +7 -0
  24. package/dist/assets/ic-close-circle.b39dd87d.svg +3 -0
  25. package/dist/assets/ic-comment.cc141b33.svg +3 -0
  26. package/dist/assets/ic-dot-circle.5ce1fccf.svg +3 -0
  27. package/dist/assets/ic-line.4e8fa046.svg +3 -0
  28. package/dist/assets/ic-new-chat.f7c90f8e.svg +5 -0
  29. package/dist/assets/ic-piggybank.3a4839d7.svg +3 -0
  30. package/dist/assets/ic-priority-high-fill.53755d8f.svg +3 -0
  31. package/dist/assets/ic-priority-low-fill.79e781ae.svg +4 -0
  32. package/dist/assets/ic-priority-urgent-fill.78d42fa0.svg +10 -0
  33. package/dist/assets/ic-red-bulb.25e01bfc.svg +9 -0
  34. package/dist/assets/ic-runbook-color.afe649c4.svg +11 -0
  35. package/dist/index.d.ts +0 -1
  36. package/dist/index.js +656 -657
  37. package/package.json +1 -1
  38. package/dist/assets/img-celebration.8ceac2a9.svg +0 -149
  39. package/dist/assets/img-install-freemium-saas.4388531c.svg +0 -40
  40. package/dist/assets/img-install-via-aws-marketplace.df85f572.svg +0 -48
  41. package/dist/assets/img-page-not-found.3c4f114b.svg +0 -81
@@ -1,6 +1,7 @@
1
- import { QueryKey, UseMutationOptions, UseMutationResult, useQueryClient, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
1
+ import { QueryKey, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, useQueryClient, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
2
  import { ServerErrors } from '../ServerError';
3
3
  import { ResponseType } from '../Types';
4
4
  export declare const useQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, WrapWithResponseType extends boolean = true>(options: UseQueryOptions<WrapWithResponseType extends true ? ResponseType<TQueryFnData> : TQueryFnData, ServerErrors, TData, TQueryKey>) => UseQueryResult<TData, ServerErrors>;
5
5
  export declare const useMutation: <TData = unknown, TVariables = void, TContext = unknown>(options: UseMutationOptions<ResponseType<TData>, ServerErrors, TVariables, TContext>) => UseMutationResult<ResponseType<TData>, ServerErrors, TVariables, TContext>;
6
+ export declare const useInfiniteQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, WrapWithResponseType extends boolean = true>(options: UseInfiniteQueryOptions<WrapWithResponseType extends true ? ResponseType<TQueryFnData> : TQueryFnData, ServerErrors, TData, WrapWithResponseType extends true ? ResponseType<TQueryFnData> : TQueryFnData, TQueryKey>) => UseInfiniteQueryResult<TData, ServerErrors>;
6
7
  export { useQueryClient };
@@ -93,6 +93,7 @@ export declare const URLS: {
93
93
  readonly SECURITY_CENTER_POLICIES: "/security-center/policies";
94
94
  readonly AUTOMATION_AND_ENABLEMENT: "/automation-and-enablement";
95
95
  readonly AUTOMATION_AND_ENABLEMENT_JOB: "/automation-and-enablement/job";
96
+ readonly AUTOMATION_ENABLEMENT_RUNBOOKS: "/automation-and-enablement/runbooks";
96
97
  readonly DATA_PROTECTION: "/data-protection-management";
97
98
  readonly DATA_PROTECTION_OVERVIEW: "/data-protection-management/overview";
98
99
  readonly DATA_PROTECTION_BACKUP_AND_SCHEDULE: `/data-protection-management/backup-and-schedule/:view(${string})`;
@@ -109,6 +110,7 @@ export declare const URLS: {
109
110
  };
110
111
  export declare const ROUTES: {
111
112
  readonly APP: "app";
113
+ readonly ATHENA: "athena";
112
114
  readonly APP_ARTIFACT_PROMOTE_MATERIAL: "app/artifact/promotion-request/material";
113
115
  readonly APP_TEMPLATE_DATA: "app/template/data";
114
116
  readonly ENVIRONMENT_CATEGORIES: "env/categories";
@@ -93,9 +93,7 @@ export type ChartProps = {
93
93
  placement?: TooltipProps['placement'];
94
94
  datasetValueFormatter?: (value: number) => string | number;
95
95
  };
96
- /** A title for x axis */
97
96
  xScaleTitle?: string;
98
- /** A title for y axis */
99
97
  yScaleTitle?: string;
100
98
  } & TypeAndDatasetsType;
101
99
  export type TransformDatasetProps = {
@@ -91,6 +91,7 @@ export declare const DOCUMENTATION: {
91
91
  readonly GLOBAL_CONFIG_SSO_LOGIN_MICROSOFT: "global-configurations/authorization/sso-login/microsoft";
92
92
  readonly GLOBAL_CONFIG_PULL_IMAGE_DIGEST: "global-configurations/pull-image-digest";
93
93
  readonly GLOBAL_CONFIG_TAGS: "getting-started/global-configurations/tags-policy";
94
+ readonly SAMPLE_RUNBOOK_LINK: "https://docs.devtron.ai/user-guide/ai-recommendations/runbook#add-runbook-spec";
94
95
  readonly APP_MANAGEMENT: "docs/user-guide/app-management";
95
96
  readonly SOFTWARE_DISTRIBUTION_HUB: "usage/software-distribution-hub";
96
97
  readonly RELEASE_TRACKS: "usage/software-distribution-hub/release-hub#creating-release-tracks-and-versions";
@@ -30,6 +30,7 @@ export declare const iconMap: {
30
30
  'ic-backup-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
31
31
  'ic-backup-location': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
32
32
  'ic-backup-schedule-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
33
+ 'ic-bell': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
33
34
  'ic-bg-backup-schedule': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
34
35
  'ic-bg-backups': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
35
36
  'ic-bg-build': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -56,6 +57,7 @@ export declare const iconMap: {
56
57
  'ic-bug': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
57
58
  'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
58
59
  'ic-building': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
60
+ 'ic-bulb': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
59
61
  'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
60
62
  'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
61
63
  'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -79,6 +81,7 @@ export declare const iconMap: {
79
81
  'ic-clipboard': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
80
82
  'ic-clock-counterclockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
81
83
  'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
84
+ 'ic-close-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
82
85
  'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
83
86
  'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
84
87
  'ic-cloud-upload': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -88,6 +91,7 @@ export declare const iconMap: {
88
91
  'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
89
92
  'ic-coins-color-animated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
90
93
  'ic-coins': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
94
+ 'ic-comment': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
91
95
  'ic-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
92
96
  'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
93
97
  'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -115,6 +119,7 @@ export declare const iconMap: {
115
119
  'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
116
120
  'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
117
121
  'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
122
+ 'ic-dot-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
118
123
  'ic-download': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
119
124
  'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
120
125
  'ic-edit-lines': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -195,6 +200,7 @@ export declare const iconMap: {
195
200
  'ic-lego': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
196
201
  'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
197
202
  'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
203
+ 'ic-line': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
198
204
  'ic-link': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
199
205
  'ic-linked-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
200
206
  'ic-list-bullets': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -217,6 +223,7 @@ export declare const iconMap: {
217
223
  'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
218
224
  'ic-more-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
219
225
  'ic-namespace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
226
+ 'ic-new-chat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
220
227
  'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
221
228
  'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
222
229
  'ic-oidc': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -234,11 +241,16 @@ export declare const iconMap: {
234
241
  'ic-pause-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
235
242
  'ic-pause': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
236
243
  'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
244
+ 'ic-piggybank': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
237
245
  'ic-play-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
246
+ 'ic-priority-high-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
247
+ 'ic-priority-low-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
238
248
  'ic-priority-medium-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
249
+ 'ic-priority-urgent-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
239
250
  'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
240
251
  'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
241
252
  'ic-ratings': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
253
+ 'ic-red-bulb': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
242
254
  'ic-release-hub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
243
255
  'ic-resize-handle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
244
256
  'ic-resource-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -246,6 +258,7 @@ export declare const iconMap: {
246
258
  'ic-right-panel-collapse': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
247
259
  'ic-rocket-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
248
260
  'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
261
+ 'ic-runbook-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
249
262
  'ic-security-fixable': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
250
263
  'ic-security-not-fixable': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
251
264
  'ic-security-policy': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -1,13 +1,9 @@
1
1
  import { IllustrationBaseProps } from './types';
2
2
  export declare const illustrationMap: {
3
- 'img-celebration': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
4
3
  'img-folder-empty': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
5
- 'img-install-freemium-saas': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
6
- 'img-install-via-aws-marketplace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
7
4
  'img-mechanical-operation': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
8
5
  'img-no-backup-location': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
9
6
  'img-no-restores': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
10
- 'img-page-not-found': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
11
7
  'create-backup-schedule': string;
12
8
  'create-backup-snapshot': string;
13
9
  'img-code': 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
  };
@@ -1,4 +1,4 @@
1
- import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
1
+ import { Dispatch, FunctionComponent, MutableRefObject, ReactNode, SetStateAction } from 'react';
2
2
  import { SERVER_MODE } from '../../../Common';
3
3
  import { DevtronLicenseInfo, EnvironmentDataValuesDTO, IntelligenceConfig, LicenseInfoDialogType, ToastManager } from '../..';
4
4
  import { ServerInfo } from '../../Components/Header/types';
@@ -22,6 +22,7 @@ export interface SidePanelConfig {
22
22
  /** URL to documentation that should be displayed in the panel */
23
23
  docLink: string | null;
24
24
  aiSessionId?: string;
25
+ isExpandedView?: boolean;
25
26
  }
26
27
  type AIAgentContextType = {
27
28
  path: string;
@@ -115,6 +116,8 @@ export type MainContext = CommonMainContextProps & ({
115
116
  aiAgentContext: AIAgentContextType;
116
117
  tempAppWindowConfig: TempAppWindowConfig;
117
118
  setTempAppWindowConfig: Dispatch<SetStateAction<TempAppWindowConfig>>;
119
+ AIRecommendations?: FunctionComponent;
120
+ featureAskDevtronExpert: EnvironmentDataValuesDTO['featureAskDevtronExpert'];
118
121
  } | {
119
122
  isLicenseDashboard: true;
120
123
  serverMode: null;
@@ -132,6 +135,8 @@ export type MainContext = CommonMainContextProps & ({
132
135
  aiAgentContext: null;
133
136
  tempAppWindowConfig: null;
134
137
  setTempAppWindowConfig: null;
138
+ AIRecommendations?: null;
139
+ featureAskDevtronExpert?: null;
135
140
  });
136
141
  export interface MainContextProviderProps {
137
142
  children: ReactNode;
@@ -39,6 +39,7 @@ export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitO
39
39
  canOnlyViewPermittedEnvOrgLevel: boolean;
40
40
  devtronManagedLicensingEnabled: boolean;
41
41
  isResourceRecommendationEnabled?: boolean;
42
+ featureAskDevtronExpert: boolean;
42
43
  }
43
44
  export interface ClusterMinDTO {
44
45
  id: number;
@@ -419,6 +419,5 @@ export declare const PROGRESSING_DEPLOYMENT_STATUS_POLLING_INTERVAL = 10000;
419
419
  export declare const STRATEGY_TYPE_TO_TITLE_MAP: Record<DeploymentStrategyTypeWithDefault, string>;
420
420
  export declare const CUBIC_BEZIER_CURVE: [number, number, number, number];
421
421
  export declare const ALLOW_ACTION_OUTSIDE_FOCUS_TRAP = "allow-action-outside-focus-trap";
422
- export declare const LICENSE_KEY_QUERY_PARAM = "licenseKey";
423
422
  export declare const REMOTE_CONNECTION_TYPE_LABEL_MAP: Record<RemoteConnectionType, string>;
424
423
  export declare const TARGET_K8S_VERSION_SEARCH_KEY = "targetK8sVersion";
@@ -941,10 +941,18 @@ export interface LicenseErrorStruct {
941
941
  code: LicensingErrorCodes;
942
942
  userMessage: string;
943
943
  }
944
- export type DevtronLicenseBaseDTO = {
944
+ export interface DevtronLicenseBaseDTO {
945
945
  fingerprint: string | null;
946
946
  isTrial: boolean | null;
947
947
  isFreemium: boolean | null;
948
+ /**
949
+ * In timestamp format
950
+ */
951
+ expiry: string | null;
952
+ /**
953
+ * Can be negative, depicts time left in seconds for license to expire
954
+ */
955
+ ttl: number | null;
948
956
  /**
949
957
  * Show a reminder after these many DAYS left for license to expire, i.e,
950
958
  * Show if `ttl` is less than `reminderThreshold` [converted to seconds]
@@ -955,28 +963,7 @@ export type DevtronLicenseBaseDTO = {
955
963
  domain: string | null;
956
964
  } | null;
957
965
  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
- });
966
+ }
980
967
  export type DevtronLicenseDTO<isCentralDashboard extends boolean = false> = DevtronLicenseBaseDTO & (isCentralDashboard extends true ? {
981
968
  claimedByUserDetails: {
982
969
  firstName: string | null;
@@ -986,13 +973,8 @@ export type DevtronLicenseDTO<isCentralDashboard extends boolean = false> = Devt
986
973
  showLicenseData?: never;
987
974
  licenseStatusError?: never;
988
975
  moduleLimits?: never;
989
- instanceData: {
990
- devtronUrl: string;
991
- devtronPassword: string;
992
- } | null;
993
976
  } : {
994
977
  claimedByUserDetails?: never;
995
- instanceData?: never;
996
978
  showLicenseData: boolean;
997
979
  licenseStatusError?: LicenseErrorStruct;
998
980
  moduleLimits: {
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
+ <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 4a7 7 0 0 1 7 7v4.333c0 .368.299.667.667.667.736 0 1.333.597 1.333 1.333v.167a1.5 1.5 0 0 1-1.5 1.5H14M12 4a7 7 0 0 0-7 7v4.333a.667.667 0 0 1-.667.667C3.597 16 3 16.597 3 17.333v.167A1.5 1.5 0 0 0 4.5 19H10m2-15V2m-2 17v1a2 2 0 1 0 4 0v-1m-4 0h4" vector-effect="non-scaling-stroke"/>
3
+ </svg>
@@ -0,0 +1,7 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M14.8421 17.2609H9.10294C8.7069 17.2609 8.38554 16.9398 8.38554 16.5435C8.38554 15.5545 7.9647 14.1655 7.26087 13.5534C5.33243 11.8779 4.45806 9.3649 4.92191 6.83159C5.53937 3.45579 8.50185 1.00327 11.9664 1C11.9683 1 11.9706 1 11.973 1C13.8879 1 15.6884 1.74516 17.0433 3.09894C18.3996 4.45435 19.1464 6.25667 19.1464 8.17389C19.1464 10.235 18.2473 12.1973 16.6799 13.5574C15.9784 14.1659 15.5595 15.5535 15.5595 16.5435C15.5595 16.9398 15.2381 17.2609 14.8421 17.2609Z" fill="#FFB549"/>
3
+ <path d="M12 4C12.267 5.24934 12.8054 6.6222 13.5915 7.40851C14.3778 8.1945 15.7507 8.73299 17 9C15.751 9.26754 14.3775 9.80491 13.5915 10.5908C12.8056 11.377 12.2677 12.7505 12.0007 14C11.7333 12.7507 11.1952 11.3774 10.4092 10.5915C9.62315 9.80516 8.24968 9.2677 7 9.00071C8.2491 8.73319 9.62241 8.19491 10.4085 7.40922C11.1949 6.62292 11.7326 5.24959 12 4Z" fill="#FFE5BE"/>
4
+ <path d="M13.4078 18.6958H10.5382C10.1413 18.6958 9.8208 19.0162 9.8208 19.4132V20.848C9.8208 22.034 10.7869 23.0002 11.973 23.0002C13.0826 23.0002 13.996 22.1584 14.1156 21.0776C14.1203 21.001 14.1252 20.9245 14.1252 20.848V19.4132C14.1252 19.0162 13.8047 18.6958 13.4078 18.6958Z" fill="#596168"/>
5
+ <path d="M13.4075 20.1304H10.5379C9.34932 20.1304 8.38574 19.1669 8.38574 17.9782V16.5435H15.5597V17.9782C15.5597 19.1669 14.5961 20.1304 13.4075 20.1304Z" fill="#767D84"/>
6
+ <path d="M16.6499 1C16.7834 1.6245 17.0528 2.31136 17.4454 2.70423C17.8385 3.09705 18.5255 3.36613 19.1499 3.49963C18.5255 3.63356 17.8383 3.90221 17.4454 4.29503C17.0525 4.68812 16.7841 5.3752 16.6506 6C16.5169 5.37547 16.2475 4.68866 15.8544 4.29577C15.4612 3.9027 14.7747 3.63407 14.1499 3.50037C14.7745 3.36665 15.4612 3.09688 15.8544 2.70423C16.2475 2.31112 16.5162 1.62451 16.6499 1Z" fill="white"/>
7
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M16.6666 11.3334L13.9999 14M13.9999 14L11.3333 16.6667M13.9999 14L16.6666 16.6667M13.9999 14L11.3333 11.3334M20.6666 14C20.6666 17.6819 17.6818 20.6667 13.9999 20.6667C10.318 20.6667 7.33325 17.6819 7.33325 14C7.33325 10.3181 10.318 7.33337 13.9999 7.33337C17.6818 7.33337 20.6666 10.3181 20.6666 14Z" stroke="#3B444C" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
+ <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7.75 8.75h8.5m-8.5 4h5.5M12 22l-3-4H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-4l-3 4Z" vector-effect="non-scaling-stroke"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8.00016 7.33325C8.36835 7.33325 8.66683 7.63173 8.66683 7.99992C8.66683 8.36811 8.36835 8.66659 8.00016 8.66659M8.00016 7.33325C7.63197 7.33325 7.3335 7.63173 7.3335 7.99992C7.3335 8.36811 7.63197 8.66659 8.00016 8.66659M8.00016 7.33325V8.66659M8.00016 14.6666C4.32016 14.6666 1.3335 11.6799 1.3335 7.99992C1.3335 4.31992 4.32016 1.33325 8.00016 1.33325C11.6802 1.33325 14.6668 4.31992 14.6668 7.99992C14.6668 11.6799 11.6802 14.6666 8.00016 14.6666Z" stroke="#596168" stroke-width="1.5"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="2" height="14" viewBox="0 0 2 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M1 1V13" stroke="#B1B7BC" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="2 3"/>
3
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="32" height="32" rx="4" fill="#1E1F28"/>
3
+ <rect x="0.5" y="0.5" width="31" height="31" rx="3.5" stroke="white" stroke-opacity="0.2"/>
4
+ <path d="M14 11.3333H11.3333C10.597 11.3333 10 11.9303 10 12.6667V20.6667C10 21.403 10.597 22 11.3333 22H19.3333C20.0697 22 20.6667 21.403 20.6667 20.6667V18M18.2505 11.2701L20.7299 13.7495M16.4794 18H14.3542C14.2603 18 14.1702 17.9627 14.1037 17.8963C14.0373 17.8298 14 17.7397 14 17.6458V15.6673C14 15.6208 14.0092 15.5747 14.027 15.5317C14.0448 15.4888 14.0709 15.4497 14.1037 15.4168L19.4168 10.1037C19.4832 10.0373 19.5733 10 19.6673 10C19.7612 10 19.8513 10.0373 19.9177 10.1037L21.8963 12.0823C21.9627 12.1487 22 12.2388 22 12.3327C22 12.4267 21.9627 12.5168 21.8963 12.5832L16.4794 18Z" stroke="#C8CBCE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none" viewBox="0 0 14 14">
2
+ <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.25" d="M6.39 4.03h2.121m1.415 2.121v.283m1.98-4.1h-3.82m0 0H6.39a4.242 4.242 0 0 0-4.242 4.242m5.94-4.243a4.242 4.242 0 0 1 4.048 2.97h.194a.848.848 0 0 1 .848.848v1.697a.849.849 0 0 1-.849.849h-.424l-.96 2.688a.424.424 0 0 1-.4.282h-.674a.425.425 0 0 1-.4-.282l-.202-.567H5.632l-.202.567a.424.424 0 0 1-.4.282h-.674a.425.425 0 0 1-.4-.282l-.695-1.946a4.226 4.226 0 0 1-1.113-2.863M.875 7.848a1.273 1.273 0 0 1 1.273-1.272"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none" viewBox="0 0 14 14">
2
+ <path fill="#B23412" d="M3.063 7h-.876a.875.875 0 0 0-.874.875v3.5c0 .483.391.875.875.875h.874a.875.875 0 0 0 .876-.875v-3.5A.875.875 0 0 0 3.062 7Zm4.375-2.625h-.875a.875.875 0 0 0-.875.875v6.125c0 .483.391.875.875.875h.875a.875.875 0 0 0 .875-.875V5.25a.875.875 0 0 0-.876-.875Zm4.375-2.625h-.876a.875.875 0 0 0-.874.875v8.75c0 .483.391.875.874.875h.876a.875.875 0 0 0 .874-.875v-8.75a.875.875 0 0 0-.874-.875Z"/>
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none" viewBox="0 0 14 14">
2
+ <path fill="#106240" d="M3.063 7h-.876a.875.875 0 0 0-.874.875v3.5c0 .483.391.875.875.875h.874a.875.875 0 0 0 .876-.875v-3.5A.875.875 0 0 0 3.062 7Z"/>
3
+ <path fill="#106240" d="M7.438 4.375h-.875a.875.875 0 0 0-.875.875v6.125c0 .483.391.875.875.875h.875a.875.875 0 0 0 .875-.875V5.25a.875.875 0 0 0-.876-.875Zm4.375-2.625h-.876a.875.875 0 0 0-.874.875v8.75c0 .483.391.875.874.875h.876a.875.875 0 0 0 .874-.875v-8.75a.875.875 0 0 0-.874-.875Z" opacity=".4"/>
4
+ </svg>
@@ -0,0 +1,10 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none" viewBox="0 0 14 14">
2
+ <g clip-path="url(#a)">
3
+ <path fill="#B21212" d="M2.625.875c-.953 0-1.75.797-1.75 1.75v8.75c0 .953.797 1.75 1.75 1.75h8.75c.953 0 1.75-.797 1.75-1.75v-8.75c0-.953-.797-1.75-1.75-1.75h-8.75Zm3.5 2.625h1.75L7.66 7.874H6.344L6.125 3.5Zm1.75 6.125a.875.875 0 1 1-1.75 0 .875.875 0 0 1 1.75 0Z"/>
4
+ </g>
5
+ <defs>
6
+ <clipPath id="a">
7
+ <path fill="#fff" d="M0 0h14v14H0z"/>
8
+ </clipPath>
9
+ </defs>
10
+ </svg>
@@ -0,0 +1,9 @@
1
+ <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M0 8C0 3.58172 3.58172 0 8 0H24C28.4183 0 32 3.58172 32 8V24C32 28.4183 28.4183 32 24 32H8C3.58172 32 0 28.4183 0 24V8Z" fill="#EDF1F5"/>
3
+ <path d="M18.8421 21.2609H13.1029C12.7069 21.2609 12.3855 20.9398 12.3855 20.5435C12.3855 19.5545 11.9647 18.1655 11.2609 17.5534C9.33243 15.8779 8.45806 13.3649 8.92191 10.8316C9.53937 7.45579 12.5019 5.00327 15.9664 5C15.9683 5 15.9706 5 15.973 5C17.8879 5 19.6884 5.74516 21.0433 7.09894C22.3996 8.45435 23.1464 10.2567 23.1464 12.1739C23.1464 14.235 22.2473 16.1973 20.6799 17.5574C19.9784 18.1659 19.5595 19.5535 19.5595 20.5435C19.5595 20.9398 19.2381 21.2609 18.8421 21.2609Z" fill="#FFB549"/>
4
+ <path d="M16 8C16.267 9.24934 16.8054 10.6222 17.5915 11.4085C18.3778 12.1945 19.7507 12.733 21 13C19.751 13.2675 18.3775 13.8049 17.5915 14.5908C16.8056 15.377 16.2677 16.7505 16.0007 18C15.7333 16.7507 15.1952 15.3774 14.4092 14.5915C13.6232 13.8052 12.2497 13.2677 11 13.0007C12.2491 12.7332 13.6224 12.1949 14.4085 11.4092C15.1949 10.6229 15.7326 9.24959 16 8Z" fill="#FFE5BE"/>
5
+ <path d="M17.4078 22.6958H14.5382C14.1413 22.6958 13.8208 23.0162 13.8208 23.4132V24.848C13.8208 26.034 14.7869 27.0002 15.973 27.0002C17.0826 27.0002 17.996 26.1584 18.1156 25.0776C18.1203 25.001 18.1252 24.9245 18.1252 24.848V23.4132C18.1252 23.0162 17.8047 22.6958 17.4078 22.6958Z" fill="#596168"/>
6
+ <path d="M17.4075 24.1304H14.5379C13.3493 24.1304 12.3857 23.1669 12.3857 21.9782V20.5435H19.5597V21.9782C19.5597 23.1669 18.5961 24.1304 17.4075 24.1304Z" fill="#767D84"/>
7
+ <path d="M20.6499 5C20.7834 5.6245 21.0528 6.31136 21.4454 6.70423C21.8385 7.09705 22.5255 7.36613 23.1499 7.49963C22.5255 7.63356 21.8383 7.90221 21.4454 8.29503C21.0525 8.68812 20.7841 9.3752 20.6506 10C20.5169 9.37547 20.2475 8.68866 19.8544 8.29577C19.4612 7.9027 18.7747 7.63407 18.1499 7.50037C18.7745 7.36665 19.4612 7.09688 19.8544 6.70423C20.2475 6.31112 20.5162 5.62451 20.6499 5Z" fill="white"/>
8
+ <circle cx="24" cy="8" r="5" fill="#F33E3E" stroke="#EDF1F5" stroke-width="2"/>
9
+ </svg>
@@ -0,0 +1,11 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
+ <path fill="url(#a)" d="M3 3a2 2 0 0 1 2-2h15a1 1 0 0 1 1 1v16h-9v2H3V3Z"/>
3
+ <path fill="#B8E1FF" d="M3 20a2 2 0 0 1 2-2h16v1h-1a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1v1H5a2 2 0 0 1-2-2v-1Z"/>
4
+ <path fill="#E5F2FF" d="M8 14.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5Zm8-6.883v.766a.313.313 0 0 1-.25.296l-.628.109a.246.246 0 0 1-.061.003c-.074.286-.187.56-.338.814a.25.25 0 0 1 .042.044l.368.522a.312.312 0 0 1-.033.386l-.543.543a.312.312 0 0 1-.386.033l-.521-.368a.234.234 0 0 1-.046-.041 3.148 3.148 0 0 1-.821.339.265.265 0 0 1 0 .093l-.097.56a.355.355 0 0 1-.337.284h-.698a.355.355 0 0 1-.337-.283l-.097-.56a.26.26 0 0 1 0-.094 3.148 3.148 0 0 1-.822-.34.232.232 0 0 1-.045.042l-.521.368a.312.312 0 0 1-.386-.033l-.543-.543a.312.312 0 0 1-.033-.385l.368-.522a.242.242 0 0 1 .041-.045 3.142 3.142 0 0 1-.337-.814c-.02.002-.04 0-.06-.003l-.63-.109A.312.312 0 0 1 8 8.383v-.766a.312.312 0 0 1 .25-.296l.628-.109a.233.233 0 0 1 .061-.003c.074-.285.187-.56.337-.813a.248.248 0 0 1-.041-.045l-.368-.522a.313.313 0 0 1 .033-.386l.543-.543a.312.312 0 0 1 .386-.033l.521.368a.237.237 0 0 1 .046.042c.253-.15.527-.264.813-.338a.202.202 0 0 1 .003-.06l.108-.63A.312.312 0 0 1 11.616 4h.768a.312.312 0 0 1 .296.25l.108.628c.004.02.005.04.003.061.286.074.56.188.813.338a.237.237 0 0 1 .046-.042l.521-.368a.312.312 0 0 1 .386.033l.543.543a.312.312 0 0 1 .033.386l-.368.522a.247.247 0 0 1-.042.045c.15.254.264.528.338.813a.23.23 0 0 1 .06.003l.63.109a.312.312 0 0 1 .249.296ZM13.362 8a1.363 1.363 0 1 0-2.725.001A1.363 1.363 0 0 0 13.362 8Z"/>
5
+ <defs>
6
+ <linearGradient id="a" x1="12" x2="12" y1="1" y2="21" gradientUnits="userSpaceOnUse">
7
+ <stop stop-color="#00C0FF"/>
8
+ <stop offset="1" stop-color="#4F5FFF"/>
9
+ </linearGradient>
10
+ </defs>
11
+ </svg>
package/dist/index.d.ts CHANGED
@@ -135,7 +135,6 @@ export interface customEnv {
135
135
  GATEKEEPER_URL?: string;
136
136
  FEATURE_AI_INTEGRATION_ENABLE?: boolean;
137
137
  LOGIN_PAGE_IMAGE?: string;
138
- FEATURE_ASK_DEVTRON_EXPERT?: boolean;
139
138
  /**
140
139
  * If true, the manage traffic feature is enabled in apps & app groups.
141
140
  *