@devtron-labs/devtron-fe-common-lib 1.9.9 → 1.10.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 (143) hide show
  1. package/dist/{@code-editor-CHoIAnAq.js → @code-editor-DRt5IoO7.js} +8236 -7496
  2. package/dist/{@common-rjsf-BALKWZzq.js → @common-rjsf-JkVClwt2.js} +20 -20
  3. package/dist/{@framer-motion--UCnj55s.js → @framer-motion-DMD7dX-G.js} +972 -893
  4. package/dist/{@react-dates-B3_Y9Kyv.js → @react-dates-DxmDHBUI.js} +1 -1
  5. package/dist/{@react-select-DMzK6fkF.js → @react-select-BR4eLpVa.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-Ck5oyLp9.js → @react-virtualized-sticky-tree-Ca-pl6uN.js} +1 -1
  7. package/dist/{@vendor-DXbFZ041.js → @vendor-DZHtXPTX.js} +14866 -14544
  8. package/dist/Common/API/CoreAPI.d.ts +17 -0
  9. package/dist/Common/API/constants.d.ts +70 -0
  10. package/dist/Common/API/index.d.ts +3 -0
  11. package/dist/Common/API/types.d.ts +23 -0
  12. package/dist/Common/API/utils.d.ts +12 -0
  13. package/dist/Common/ClipboardButton/ClipboardButton.d.ts +1 -1
  14. package/dist/Common/ClipboardButton/types.d.ts +11 -0
  15. package/dist/Common/CodeMirror/utils.d.ts +1 -0
  16. package/dist/Common/Constants.d.ts +6 -0
  17. package/dist/Common/DevtronCopyright.d.ts +2 -0
  18. package/dist/Common/Helper.d.ts +1 -0
  19. package/dist/Common/Types.d.ts +11 -0
  20. package/dist/Common/index.d.ts +2 -1
  21. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -0
  22. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +9 -0
  23. package/dist/Pages/GlobalConfigurations/index.d.ts +1 -0
  24. package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
  25. package/dist/Pages/ResourceBrowser/types.d.ts +41 -1
  26. package/dist/Shared/Analytics/analytics.d.ts +2 -0
  27. package/dist/Shared/Analytics/index.d.ts +2 -0
  28. package/dist/Shared/Analytics/types.d.ts +3 -0
  29. package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
  30. package/dist/Shared/Components/CICDHistory/service.d.ts +1 -1
  31. package/dist/Shared/Components/CountrySelect/CountrySelect.component.d.ts +3 -0
  32. package/dist/Shared/Components/CountrySelect/index.d.ts +1 -0
  33. package/dist/Shared/Components/CountrySelect/types.d.ts +7 -0
  34. package/dist/Shared/Components/CountrySelect/utils.d.ts +4 -0
  35. package/dist/Shared/Components/CustomInput/CustomInput.d.ts +1 -1
  36. package/dist/Shared/Components/CustomInput/types.d.ts +5 -1
  37. package/dist/Shared/Components/DevtronLicenseCard/DevtronLicenseCard.d.ts +3 -0
  38. package/dist/Shared/Components/DevtronLicenseCard/InstallationFingerprintInfo.d.ts +3 -0
  39. package/dist/Shared/Components/DevtronLicenseCard/index.d.ts +4 -0
  40. package/dist/Shared/Components/DevtronLicenseCard/types.d.ts +26 -0
  41. package/dist/Shared/Components/DevtronLicenseCard/utils.d.ts +6 -0
  42. package/dist/Shared/Components/FlagImage/FlagImage.component.d.ts +3 -0
  43. package/dist/Shared/Components/FlagImage/index.d.ts +1 -0
  44. package/dist/Shared/Components/FlagImage/types.d.ts +5 -0
  45. package/dist/Shared/Components/FormFieldWrapper/FormFieldWrapper.d.ts +1 -1
  46. package/dist/Shared/Components/FormFieldWrapper/index.d.ts +1 -0
  47. package/dist/Shared/Components/FormFieldWrapper/types.d.ts +4 -0
  48. package/dist/Shared/Components/Header/constants.d.ts +1 -0
  49. package/dist/Shared/Components/Header/types.d.ts +0 -1
  50. package/dist/Shared/Components/Header/utils.d.ts +3 -0
  51. package/dist/Shared/Components/Icon/Icon.d.ts +24 -0
  52. package/dist/Shared/Components/LoginBanner/LoginBanner.d.ts +2 -0
  53. package/dist/Shared/Components/LoginBanner/constants.d.ts +4 -0
  54. package/dist/Shared/Components/LoginBanner/index.d.ts +1 -0
  55. package/dist/Shared/Components/LoginBanner/types.d.ts +7 -0
  56. package/dist/Shared/Components/PhoneInput/PhoneInput.component.d.ts +3 -0
  57. package/dist/Shared/Components/PhoneInput/index.d.ts +1 -0
  58. package/dist/Shared/Components/PhoneInput/types.d.ts +11 -0
  59. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  60. package/dist/Shared/Components/Textarea/Textarea.component.d.ts +1 -1
  61. package/dist/Shared/Components/index.d.ts +6 -0
  62. package/dist/Shared/Helpers.d.ts +1 -0
  63. package/dist/Shared/Providers/ThemeProvider/utils.d.ts +1 -0
  64. package/dist/Shared/Providers/types.d.ts +8 -2
  65. package/dist/Shared/Services/types.d.ts +1 -0
  66. package/dist/Shared/constants.d.ts +4 -0
  67. package/dist/Shared/index.d.ts +1 -0
  68. package/dist/Shared/types.d.ts +64 -0
  69. package/dist/assets/@code-editor.css +1 -1
  70. package/dist/assets/ic-73strings.ed7da294.svg +5 -0
  71. package/dist/assets/ic-amazon-eks.13404569.svg +5 -0
  72. package/dist/assets/ic-apica.5a540546.svg +15 -0
  73. package/dist/assets/ic-app-group.068791a2.svg +19 -0
  74. package/dist/assets/ic-arrow-right.96f4142a.svg +19 -0
  75. package/dist/assets/ic-ather.39aed36c.svg +11 -0
  76. package/dist/assets/{ic-azure.49ec3dad.svg → ic-azure.a01ce3b4.svg} +16 -0
  77. package/dist/assets/ic-bharatpe.fc52fe6d.svg +15 -0
  78. package/dist/assets/ic-book-open.e839bbda.svg +3 -0
  79. package/dist/assets/ic-browser.f77a9d59.svg +19 -0
  80. package/dist/assets/ic-card-stack.0de57a3a.svg +19 -0
  81. package/dist/assets/{ic-arrow-right.06ad55f3.svg → ic-caret-left.3df25a7c.svg} +1 -1
  82. package/dist/assets/ic-chat-circle-dots.b5afd171.svg +3 -0
  83. package/dist/assets/{ic-copy.416d85f3.svg → ic-check.a0f5ee85.svg} +1 -1
  84. package/dist/assets/ic-close-large.fb6095e0.svg +3 -0
  85. package/dist/assets/ic-cluster.71ba9e26.svg +3 -0
  86. package/dist/assets/ic-code.3af36d5c.svg +19 -0
  87. package/dist/assets/ic-cookr.d1510986.svg +26 -0
  88. package/dist/assets/ic-copy.c4b628de.svg +19 -0
  89. package/dist/assets/{ic-crown.868ff2a9.svg → ic-crown.24ca27fc.svg} +16 -0
  90. package/dist/assets/ic-cube.be637e97.svg +19 -0
  91. package/dist/assets/ic-delhivery.7b49a398.svg +15 -0
  92. package/dist/assets/ic-devtron-header-logo.265be507.svg +4 -0
  93. package/dist/assets/ic-devtron.aca6cbaa.svg +3 -0
  94. package/dist/assets/{ic-dockerhub.19023887.svg → ic-dockerhub.03bd09a9.svg} +16 -0
  95. package/dist/assets/{ic-ecr.022619e3.svg → ic-ecr.302d6ccb.svg} +16 -0
  96. package/dist/assets/{ic-gear.51261b97.svg → ic-gear.7116a8bf.svg} +16 -0
  97. package/dist/assets/{ic-google-artifact-registry.536fe6c7.svg → ic-google-artifact-registry.2a167c8b.svg} +16 -0
  98. package/dist/assets/{ic-google-container-registry.20eeef45.svg → ic-google-container-registry.320c53ee.svg} +16 -0
  99. package/dist/assets/{ic-google.adce3079.svg → ic-google.475640a4.svg} +16 -0
  100. package/dist/assets/ic-grid-view.13207b99.svg +19 -0
  101. package/dist/assets/ic-helm.20583d75.svg +19 -0
  102. package/dist/assets/ic-k8s-job.c4f9ccc7.svg +19 -0
  103. package/dist/assets/{ic-ldap.1742ec39.svg → ic-ldap.0c5633d9.svg} +16 -0
  104. package/dist/assets/ic-livspace.fc75c45f.svg +13 -0
  105. package/dist/assets/ic-logout.f0a8b488.svg +19 -0
  106. package/dist/assets/{ic-medium-paintbucket.38ef52c1.svg → ic-medium-paintbucket.45544bb9.svg} +16 -0
  107. package/dist/assets/ic-microsoft.7c7bcaeb.svg +22 -0
  108. package/dist/assets/{ic-monitoring.6e5acb4a.svg → ic-monitoring.30910a3c.svg} +16 -0
  109. package/dist/assets/ic-new.1907a03f.svg +19 -0
  110. package/dist/assets/ic-oidc.5e06656d.svg +20 -0
  111. package/dist/assets/{ic-open-box.e672fe67.svg → ic-open-box.b15fcbbd.svg} +16 -0
  112. package/dist/assets/{ic-openshift.afcfadec.svg → ic-openshift.3886b54f.svg} +16 -0
  113. package/dist/assets/ic-pencil.a3e8275c.svg +3 -0
  114. package/dist/assets/{ic-quay.19eb5574.svg → ic-quay.d622b34f.svg} +16 -0
  115. package/dist/assets/ic-quote.68f093fe.svg +3 -0
  116. package/dist/assets/ic-shield-check.c26854d2.svg +19 -0
  117. package/dist/assets/ic-sliders-vertical.1c27a9e1.svg +3 -0
  118. package/dist/assets/ic-spinny.3884a5fb.svg +14 -0
  119. package/dist/assets/ic-stack.fbd3aea5.svg +19 -0
  120. package/dist/assets/ic-tata1mg.75b97a64.svg +13 -0
  121. package/dist/assets/ic-timer.ae5f10fa.svg +19 -0
  122. package/dist/assets/ic-travclan.29b9f4c3.svg +13 -0
  123. package/dist/assets/{ic-user-key.523f6939.svg → ic-user-key.5dc44524.svg} +16 -0
  124. package/dist/assets/licenseCardBG.9753c392.svg +259 -0
  125. package/dist/assets/login-screen-ui.a33a6496.webp +0 -0
  126. package/dist/index.d.ts +1 -3
  127. package/dist/index.js +803 -775
  128. package/package.json +2 -1
  129. package/dist/Common/Api.d.ts +0 -15
  130. package/dist/assets/ic-app-group.892e71ff.svg +0 -3
  131. package/dist/assets/ic-browser.b8afdf0d.svg +0 -3
  132. package/dist/assets/ic-card-stack.efd37c91.svg +0 -3
  133. package/dist/assets/ic-code.29c36e44.svg +0 -3
  134. package/dist/assets/ic-cube.643b8b57.svg +0 -3
  135. package/dist/assets/ic-grid-view.a1ff2479.svg +0 -3
  136. package/dist/assets/ic-helm.49cb43a3.svg +0 -3
  137. package/dist/assets/ic-k8s-job.d3310821.svg +0 -3
  138. package/dist/assets/ic-logout.e7e6bef0.svg +0 -3
  139. package/dist/assets/ic-microsoft.4767e309.svg +0 -6
  140. package/dist/assets/ic-new.2c179139.svg +0 -3
  141. package/dist/assets/ic-oidc.27839a0d.svg +0 -4
  142. package/dist/assets/ic-shield-check.5c033f06.svg +0 -3
  143. package/dist/assets/ic-stack.8b3b1bdd.svg +0 -3
@@ -0,0 +1,17 @@
1
+ import { APIOptions, ResponseType } from '..';
2
+ import { CoreAPIConstructorParamsType } from './types';
3
+ declare class CoreAPI {
4
+ handleLogout: () => void;
5
+ handleRedirectToLicenseActivation?: () => void;
6
+ host: string;
7
+ timeout: number;
8
+ constructor({ handleLogout, host, timeout, handleRedirectToLicenseActivation }: CoreAPIConstructorParamsType);
9
+ private fetchAPI;
10
+ private fetchInTime;
11
+ post: <T = any, K = object>(url: string, data: K, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType<T>>;
12
+ put: <T = any, K = object>(url: string, data: K, options?: APIOptions) => Promise<ResponseType<T>>;
13
+ patch: <T = any, K = object>(url: string, data: K, options?: APIOptions) => Promise<ResponseType<T>>;
14
+ get: <T = any>(url: string, options?: APIOptions) => Promise<ResponseType<T>>;
15
+ trash: <T = any, K = object>(url: string, data?: K, options?: APIOptions) => Promise<ResponseType<T>>;
16
+ }
17
+ export default CoreAPI;
@@ -0,0 +1,70 @@
1
+ export declare const RESPONSE_MESSAGES: {
2
+ readonly 100: "Continue";
3
+ readonly 101: "Switching Protocols";
4
+ readonly 102: "Processing(WebDAV)";
5
+ readonly 200: "OK";
6
+ readonly 201: "Created";
7
+ readonly 202: "Accepted";
8
+ readonly 203: "Non - Authoritative Information";
9
+ readonly 204: "No Content";
10
+ readonly 205: "Reset Content";
11
+ readonly 206: "Partial Content";
12
+ readonly 207: "Multi - Status(WebDAV)";
13
+ readonly 208: "Already Reported(WebDAV)";
14
+ readonly 226: "IM Used";
15
+ readonly 300: "Multiple Choices";
16
+ readonly 301: "Moved Permanently";
17
+ readonly 302: "Found";
18
+ readonly 303: "See Other";
19
+ readonly 304: "Not Modified";
20
+ readonly 305: "Use Proxy";
21
+ readonly 307: "Temporary Redirect";
22
+ readonly 308: "Permanent Redirect(experimental)";
23
+ readonly 400: "Bad Request";
24
+ readonly 401: "Unauthorized";
25
+ readonly 402: "Payment Required";
26
+ readonly 403: "Forbidden";
27
+ readonly 404: "Not Found";
28
+ readonly 405: "Method Not Allowed";
29
+ readonly 406: "Not Acceptable";
30
+ readonly 407: "Proxy Authentication Required";
31
+ readonly 408: "Request Timeout";
32
+ readonly 409: "Conflict";
33
+ readonly 410: "Gone";
34
+ readonly 411: "Length Required";
35
+ readonly 412: "Precondition Failed";
36
+ readonly 413: "Request Entity Too Large";
37
+ readonly 414: "Request - URI Too Long";
38
+ readonly 415: "Unsupported Media Type";
39
+ readonly 416: "Requested Range Not Satisfiable";
40
+ readonly 417: "Expectation Failed";
41
+ readonly 418: "I'm a teapot";
42
+ readonly 420: "Enhance Your Calm(Twitter)";
43
+ readonly 422: "Unprocessable Entity(WebDAV)";
44
+ readonly 423: "Locked(WebDAV)";
45
+ readonly 424: "Failed Dependency(WebDAV)";
46
+ readonly 425: "Reserved for WebDAV";
47
+ readonly 426: "Upgrade Required";
48
+ readonly 428: "Precondition Required";
49
+ readonly 429: "Too Many Requests";
50
+ readonly 431: "Request Header Fields Too Large";
51
+ readonly 444: "No Response(Nginx)";
52
+ readonly 449: "Retry With(Microsoft)";
53
+ readonly 450: "Blocked by Windows Parental Controls(Microsoft)";
54
+ readonly 451: "Unavailable For Legal Reasons";
55
+ readonly 499: "Client Closed Request(Nginx)";
56
+ readonly 500: "Internal Server Error";
57
+ readonly 501: "Not Implemented";
58
+ readonly 502: "Bad Gateway";
59
+ readonly 503: "Service Unavailable";
60
+ readonly 504: "Gateway Timeout";
61
+ readonly 505: "HTTP Version Not Supported";
62
+ readonly 506: "Variant Also Negotiates(Experimental)";
63
+ readonly 507: "Insufficient Storage(WebDAV)";
64
+ readonly 508: "Loop Detected(WebDAV)";
65
+ readonly 509: "Bandwidth Limit Exceeded(Apache)";
66
+ readonly 510: "Not Extended";
67
+ readonly 511: "Network Authentication Required";
68
+ readonly 598: "Network read timeout error";
69
+ readonly 599: "Network connect timeout error";
70
+ };
@@ -0,0 +1,3 @@
1
+ export declare const post: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions, isMultipartRequest?: boolean) => Promise<import('..').ResponseType<T>>, put: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, patch: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, get: <T = any>(url: string, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, trash: <T = any, K = object>(url: string, data?: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>;
2
+ export { getIsRequestAborted, abortPreviousRequests, handleRedirectToLicenseActivation } from './utils';
3
+ export { default as CoreAPI } from './CoreAPI';
@@ -0,0 +1,23 @@
1
+ import { APIOptions } from '..';
2
+ export interface CoreAPIConstructorParamsType {
3
+ handleLogout: () => void;
4
+ handleRedirectToLicenseActivation?: () => void;
5
+ /**
6
+ * @default Host
7
+ */
8
+ host?: string;
9
+ /**
10
+ * @default FALLBACK_REQUEST_TIMEOUT
11
+ */
12
+ timeout?: number;
13
+ }
14
+ export interface FetchInTimeParamsType<Data = object> {
15
+ url: string;
16
+ type: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE';
17
+ data: Data;
18
+ options?: APIOptions;
19
+ isMultipartRequest?: boolean;
20
+ }
21
+ export interface FetchAPIParamsType<Data = object> extends Omit<FetchInTimeParamsType<Data>, 'options'>, Pick<APIOptions, 'preventAutoLogout' | 'preventLicenseRedirect' | 'shouldParseServerErrorForUnauthorizedUser'> {
22
+ signal: AbortSignal;
23
+ }
@@ -0,0 +1,12 @@
1
+ import { MutableRefObject } from 'react';
2
+ export declare const handleServerError: (contentType: string, response: Response) => Promise<never>;
3
+ /**
4
+ * Aborts the previous request before triggering next request
5
+ */
6
+ export declare const abortPreviousRequests: <T>(callback: () => Promise<T>, abortControllerRef: MutableRefObject<AbortController>) => Promise<T>;
7
+ /**
8
+ * Returns true if the error is due to a aborted request
9
+ */
10
+ export declare const getIsRequestAborted: (error: any) => boolean;
11
+ export declare const handleDashboardLogout: () => void;
12
+ export declare const handleRedirectToLicenseActivation: () => void;
@@ -7,4 +7,4 @@ import { default as ClipboardProps } from './types';
7
7
  * @param rootClassName - additional classes to add to button
8
8
  * @param iconSize - size of svg icon to be shown, default 16 (icon-dim-16)
9
9
  */
10
- export declare const ClipboardButton: ({ content, copiedTippyText, duration, copyToClipboardPromise, rootClassName, iconSize, }: ClipboardProps) => JSX.Element;
10
+ export declare const ClipboardButton: ({ content, initialTippyText, copiedTippyText, duration, copyToClipboardPromise, rootClassName, iconSize, handleSuccess, }: ClipboardProps) => JSX.Element;
@@ -1,8 +1,19 @@
1
1
  export default interface ClipboardProps {
2
2
  content: string;
3
+ /**
4
+ * tippy text before copying
5
+ */
6
+ initialTippyText?: string;
7
+ /**
8
+ * tippy text after copying
9
+ */
3
10
  copiedTippyText?: string;
11
+ /**
12
+ * reset duration after copying
13
+ */
4
14
  duration?: number;
5
15
  copyToClipboardPromise?: Promise<void>;
6
16
  rootClassName?: string;
7
17
  iconSize?: number;
18
+ handleSuccess?: () => void;
8
19
  }
@@ -10,6 +10,7 @@ export declare const getUpdatedSearchMatchesCount: (newQuery: SearchQuery, view:
10
10
  current: number;
11
11
  };
12
12
  export declare const updateDiffMinimapValues: (view: MergeView, transactions: readonly Transaction[], side: "a" | "b") => void;
13
+ export declare const getScanLimit: (lhsValue: string, value: string) => 500 | 10000 | 5000 | 15000 | 20000;
13
14
  export declare const getFoldGutterElement: (open: boolean) => HTMLSpanElement;
14
15
  export declare const getReadOnlyElement: () => HTMLDivElement;
15
16
  export declare const getRevertControlButton: () => HTMLButtonElement;
@@ -1,6 +1,7 @@
1
1
  export declare const FALLBACK_REQUEST_TIMEOUT = 60000;
2
2
  export declare const Host: string;
3
3
  export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
4
+ export declare const DEVTRON_HOME_PAGE = "https://devtron.ai/";
4
5
  export declare const DOCUMENTATION_VERSION = "/v/v0.7";
5
6
  export declare const DISCORD_LINK = "https://discord.devtron.ai/";
6
7
  export declare const DEFAULT_JSON_SCHEMA_URI = "https://json-schema.org/draft/2020-12/schema";
@@ -10,6 +11,7 @@ export declare const DOCUMENTATION: {
10
11
  APP_OVERVIEW_TAGS: string;
11
12
  BLOB_STORAGE: string;
12
13
  GLOBAL_CONFIG_BUILD_INFRA: string;
14
+ ENTERPRISE_LICENSE: string;
13
15
  };
14
16
  export declare const PATTERNS: {
15
17
  STRING: RegExp;
@@ -65,6 +67,7 @@ export declare const URLS: {
65
67
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
66
68
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
67
69
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
70
+ readonly LICENSE_AUTH: "/license-auth";
68
71
  };
69
72
  export declare const ROUTES: {
70
73
  readonly APP: "app";
@@ -126,6 +129,7 @@ export declare const ROUTES: {
126
129
  readonly NODE_CAPACITY: "k8s/capacity/node";
127
130
  readonly RESOURCE_TEMPLATE: "resource/template";
128
131
  readonly ENVIRONMENT_DATA: "global/environment-variables";
132
+ readonly DASHBOARD_EVENT: "dashboard-event";
129
133
  };
130
134
  export declare enum KEY_VALUE {
131
135
  KEY = "key",
@@ -287,6 +291,7 @@ export declare const API_STATUS_CODES: {
287
291
  PERMISSION_DENIED: number;
288
292
  NOT_FOUND: number;
289
293
  REQUEST_TIMEOUT: number;
294
+ CONFLICT: number;
290
295
  EXPECTATION_FAILED: number;
291
296
  UNPROCESSABLE_ENTITY: number;
292
297
  LOCKED: number;
@@ -318,6 +323,7 @@ export declare const DATE_TIME_FORMATS: {
318
323
  TWELVE_HOURS_EXPORT_FORMAT: string;
319
324
  DD_MMM_YYYY_HH_MM: string;
320
325
  DD_MMM_YYYY: string;
326
+ 'DD/MM/YYYY': string;
321
327
  };
322
328
  export declare const SEMANTIC_VERSION_DOCUMENTATION_LINK = "https://semver.org/";
323
329
  export declare const VULNERABILITIES_SORT_PRIORITY: {
@@ -0,0 +1,2 @@
1
+ declare const DevtronCopyright: () => JSX.Element;
2
+ export default DevtronCopyright;
@@ -143,4 +143,5 @@ export declare const getGoLangFormattedDateWithTimezone: (dateFormat: string) =>
143
143
  * @returns SHA-256 hashed value
144
144
  */
145
145
  export declare const getHashedValue: (value: string) => Promise<string | null>;
146
+ export declare const getTTLInHumanReadableFormat: (ttl: number) => string;
146
147
  export {};
@@ -30,7 +30,18 @@ export interface APIOptions {
30
30
  */
31
31
  signal?: AbortSignal;
32
32
  abortControllerRef?: MutableRefObject<AbortController>;
33
+ /**
34
+ * @default false
35
+ */
33
36
  preventAutoLogout?: boolean;
37
+ /**
38
+ * @default false
39
+ */
40
+ preventLicenseRedirect?: boolean;
41
+ /**
42
+ * @default false
43
+ */
44
+ shouldParseServerErrorForUnauthorizedUser?: boolean;
34
45
  }
35
46
  export interface OptionType<T = string, K = string> {
36
47
  value: T;
@@ -1,7 +1,6 @@
1
1
  export * from './Constants';
2
2
  export * from './ServerError';
3
3
  export * from './Types';
4
- export * from './Api';
5
4
  export { default as Reload } from './Reload';
6
5
  export { default as ErrorScreenManager } from './ErrorScreenManager';
7
6
  export { default as ErrorScreenNotAuthorized } from './ErrorScreenNotAuthorized';
@@ -50,4 +49,6 @@ export * from './SegmentedBarChart';
50
49
  export * from './CodeEditor/types';
51
50
  export * from './Tooltip';
52
51
  export * from './SegmentedControl';
52
+ export * from './API';
53
53
  export * from './DeleteCINodeButton';
54
+ export { default as DevtronCopyright } from './DevtronCopyright';
@@ -0,0 +1 @@
1
+ export type { NewClusterFormProps, NewClusterFormFooterProps } from './types';
@@ -0,0 +1,9 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ export interface NewClusterFormFooterProps {
3
+ apiCallInProgress: boolean;
4
+ handleModalClose: () => void;
5
+ }
6
+ export interface NewClusterFormProps extends NewClusterFormFooterProps {
7
+ setApiCallInProgress: Dispatch<SetStateAction<boolean>>;
8
+ FooterComponent: React.FunctionComponent<NewClusterFormFooterProps>;
9
+ }
@@ -2,3 +2,4 @@ export * from './BuildInfra';
2
2
  export * from './Authorization';
3
3
  export * from './ScopedVariables';
4
4
  export * from './DeploymentCharts';
5
+ export * from './ClustersAndEnvironments';
@@ -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,14 +1,25 @@
1
1
  import { Dispatch, SetStateAction, ReactElement } from 'react';
2
+ import { InstallationClusterType } from '../../Shared/index';
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
+ Updating = "Updating",
12
+ Installed = "Installed",
13
+ Failed = "Failed",
14
+ Superseded = "Superseded",
15
+ Undefined = "Undefined"
16
+ }
8
17
  export declare enum ClusterStatusType {
9
18
  HEALTHY = "healthy",
10
19
  UNHEALTHY = "unhealthy",
11
- CONNECTION_FAILED = "connection failed"
20
+ CONNECTION_FAILED = "connection failed",
21
+ CREATING = "creating",
22
+ UPDATING = "updating"
12
23
  }
13
24
  export interface ResourceDetail {
14
25
  name: string;
@@ -42,12 +53,14 @@ export interface ClusterCapacityType {
42
53
  nodeErrors: Record<string, string>[];
43
54
  status?: ClusterStatusType;
44
55
  isProd: boolean;
56
+ installationId?: number;
45
57
  }
46
58
  export interface ClusterDetail extends ClusterCapacityType {
47
59
  id: number;
48
60
  errorInNodeListing: string;
49
61
  nodeNames?: string[];
50
62
  isVirtualCluster?: boolean;
63
+ isInstallationCluster?: boolean;
51
64
  }
52
65
  interface NodeCordonOptions {
53
66
  unschedulableDesired: boolean;
@@ -70,4 +83,31 @@ export interface AdditionalConfirmationModalOptionsProps<T = unknown> {
70
83
  setOptionsData: Dispatch<SetStateAction<T>>;
71
84
  children?: ReactElement;
72
85
  }
86
+ export interface InstallationClusterStepType {
87
+ lastTransitionTime: string;
88
+ lastProbeTime: string;
89
+ message: string;
90
+ reason: string;
91
+ status: 'False' | 'True' | 'Unknown';
92
+ type: string;
93
+ }
94
+ export interface InstallationClusterConfigDTO {
95
+ installationId: number;
96
+ installationStatus: InstallationClusterStatus;
97
+ name: string;
98
+ values: string;
99
+ valuesSchema: string;
100
+ isProd: boolean;
101
+ installationType: InstallationClusterType;
102
+ conditions: InstallationClusterStepType[];
103
+ installedEntityId: number | 0;
104
+ }
105
+ export interface InstallationClusterConfigType extends Pick<InstallationClusterConfigDTO, 'installationType' | 'conditions'> {
106
+ schema: object;
107
+ values: object;
108
+ installationId: number;
109
+ name: string;
110
+ status: InstallationClusterStatus;
111
+ correspondingClusterId: number | 0;
112
+ }
73
113
  export {};
@@ -0,0 +1,2 @@
1
+ import { ServerAnalyticsEventType } from './types';
2
+ export declare const handleSendAnalyticsEventToServer: (eventType: ServerAnalyticsEventType, preventLicenseRedirect?: boolean) => Promise<void>;
@@ -0,0 +1,2 @@
1
+ export * from './analytics';
2
+ export * from './types';
@@ -0,0 +1,3 @@
1
+ export declare enum ServerAnalyticsEventType {
2
+ GET_LICENSE_CLICKED = "getLicenseClicked"
3
+ }
@@ -63,5 +63,5 @@ import { ButtonComponentType, ButtonProps } from './types';
63
63
  * <Button icon={<ICCube />} ariaLabel="Label" />
64
64
  * ```
65
65
  */
66
- declare const Button: <ComponentType extends ButtonComponentType>({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, fullWidth, isOpacityHoverChild, triggerAutoClickTimestamp, ...props }: ButtonProps<ComponentType>) => JSX.Element;
66
+ declare const Button: import('react').ForwardRefExoticComponent<ButtonProps<ButtonComponentType> & import('react').RefAttributes<unknown>>;
67
67
  export default Button;
@@ -9,7 +9,7 @@ export declare function getTriggerDetails({ appId, envId, pipelineId, triggerId,
9
9
  }): Promise<TriggerDetailsResponseType>;
10
10
  export declare const getTagDetails: (params: any) => Promise<ResponseType<any>>;
11
11
  export declare const cancelCiTrigger: (params: any, isForceAbort: any) => Promise<ResponseType<any>>;
12
- export declare const cancelPrePostCdTrigger: (pipelineId: any, workflowRunner: any) => Promise<ResponseType<any>>;
12
+ export declare const cancelPrePostCdTrigger: (pipelineId: any, workflowRunner: any, isForceAbort: boolean) => Promise<ResponseType<any>>;
13
13
  export declare function getDeploymentStatusDetail(appId: string, envId: string, showTimeline: boolean, triggerId?: string, isHelmApps?: boolean, installedAppVersionHistoryId?: number): Promise<DeploymentStatusDetailsResponse>;
14
14
  export declare function getManualSync(params: {
15
15
  appId: string;
@@ -0,0 +1,3 @@
1
+ import { CountrySelectProps } from './types';
2
+ declare const CountrySelect: ({ selectedCountry, label, required, error, handleChange, placeholder, name, variant, size, onMenuClose, onMenuOpen, }: CountrySelectProps) => JSX.Element;
3
+ export default CountrySelect;
@@ -0,0 +1 @@
1
+ export { default as CountrySelect } from './CountrySelect.component';
@@ -0,0 +1,7 @@
1
+ import { CountryISO2Type } from '../../index';
2
+ import { SelectPickerProps } from '../SelectPicker';
3
+ export interface CountrySelectProps extends Pick<SelectPickerProps, 'required' | 'label' | 'error' | 'placeholder' | 'size' | 'onMenuOpen' | 'onMenuClose'>, Required<Pick<SelectPickerProps, 'name'>> {
4
+ selectedCountry: CountryISO2Type;
5
+ handleChange: (iso2: CountryISO2Type) => void;
6
+ variant?: 'default' | 'selectPhoneCode';
7
+ }
@@ -0,0 +1,4 @@
1
+ import { ParsedCountry } from 'react-international-phone';
2
+ import { CountrySelectProps } from './types';
3
+ import { SelectPickerOptionType } from '../SelectPicker';
4
+ export declare const getCountryOptions: (variant: CountrySelectProps["variant"]) => SelectPickerOptionType<ParsedCountry>[];
@@ -1,3 +1,3 @@
1
1
  import { CustomInputProps } from './types';
2
- declare const CustomInput: ({ name, label, fullWidth, error, helperText, warningText, layout, required, onBlur, shouldTrim, size, ariaLabel, borderConfig, borderRadiusConfig, type, autoFocus, endIconButtonConfig, labelTippyCustomizedConfig, labelTooltipConfig, ...props }: CustomInputProps) => JSX.Element;
2
+ declare const CustomInput: ({ name, label, fullWidth, error, helperText, warningText, layout, required, onBlur, shouldTrim, size, ariaLabel, borderConfig, borderRadiusConfig, type, autoFocus, endIconButtonConfig, labelTippyCustomizedConfig, labelTooltipConfig, inputRef: inputRefProp, hideFormFieldInfo, ...props }: CustomInputProps) => JSX.Element;
3
3
  export default CustomInput;
@@ -1,4 +1,4 @@
1
- import { InputHTMLAttributes } from 'react';
1
+ import { InputHTMLAttributes, MutableRefObject } from 'react';
2
2
  import { ComponentSizeType } from '../../constants';
3
3
  import { FormFieldWrapperProps } from '../FormFieldWrapper';
4
4
  import { ButtonComponentType, ButtonProps } from '../Button';
@@ -27,6 +27,10 @@ export interface CustomInputProps extends Omit<FormFieldWrapperProps, 'children'
27
27
  * End icon button configuration
28
28
  */
29
29
  endIconButtonConfig?: Required<Pick<ButtonProps<ButtonComponentType.button>, 'icon' | 'onClick' | 'ariaLabel'>> & Pick<ButtonProps<ButtonComponentType.button>, 'disabled' | 'showAriaLabelInTippy' | 'style'>;
30
+ /**
31
+ * Ref for the input element
32
+ */
33
+ inputRef?: MutableRefObject<HTMLInputElement>;
30
34
  }
31
35
  export interface PasswordFieldProps extends Omit<CustomInputProps, 'endIconButtonConfig' | 'type'> {
32
36
  /**
@@ -0,0 +1,3 @@
1
+ import { DevtronLicenseCardProps } from '../../index';
2
+ export declare const DevtronLicenseCard: ({ enterpriseName, licenseKey, licenseSuffix, expiryDate, licenseStatus, isTrial, ttl, appTheme, handleCopySuccess, }: DevtronLicenseCardProps) => JSX.Element;
3
+ export default DevtronLicenseCard;
@@ -0,0 +1,3 @@
1
+ import { InstallFingerprintInfoProps } from './types';
2
+ declare const InstallationFingerprintInfo: ({ fingerprint, showHelpTooltip }: InstallFingerprintInfoProps) => JSX.Element;
3
+ export default InstallationFingerprintInfo;
@@ -0,0 +1,4 @@
1
+ export { default as DevtronLicenseCard } from './DevtronLicenseCard';
2
+ export { parseDevtronLicenseDTOIntoLicenseCardData } from './utils';
3
+ export { default as InstallationFingerprintInfo } from './InstallationFingerprintInfo';
4
+ export * from './types';
@@ -0,0 +1,26 @@
1
+ import { AppThemeType, DevtronLicenseBaseDTO, DevtronLicenseDTO } from '../../index';
2
+ export declare enum LicenseStatus {
3
+ ACTIVE = "ACTIVE",
4
+ EXPIRED = "EXPIRED",
5
+ REMINDER_THRESHOLD_REACHED = "REMINDER_THRESHOLD_REACHED"
6
+ }
7
+ export type DevtronLicenseCardProps = {
8
+ enterpriseName: string;
9
+ expiryDate: string;
10
+ ttl: number;
11
+ licenseStatus: LicenseStatus;
12
+ isTrial: boolean;
13
+ appTheme: AppThemeType;
14
+ } & ({
15
+ licenseKey: string;
16
+ handleCopySuccess?: () => void;
17
+ licenseSuffix?: never;
18
+ } | {
19
+ licenseKey?: never;
20
+ handleCopySuccess?: never;
21
+ licenseSuffix: string;
22
+ });
23
+ export type DevtronLicenseInfo = Omit<DevtronLicenseCardProps, 'appTheme'> & Pick<DevtronLicenseDTO, 'fingerprint' | 'showLicenseData' | 'licenseStatusError'>;
24
+ export interface InstallFingerprintInfoProps extends Pick<DevtronLicenseBaseDTO, 'fingerprint'> {
25
+ showHelpTooltip?: boolean;
26
+ }
@@ -0,0 +1,6 @@
1
+ import { DevtronLicenseCardProps, DevtronLicenseDTO, LicenseStatus } from '../../index';
2
+ export declare const getLicenseColorsAccordingToStatus: (licenseStatus: LicenseStatus) => {
3
+ bgColor: string;
4
+ textColor: string;
5
+ };
6
+ export declare const parseDevtronLicenseDTOIntoLicenseCardData: <isCentralDashboard extends boolean = false>(licenseDTO: DevtronLicenseDTO<isCentralDashboard>, currentUserEmail?: isCentralDashboard extends true ? string : never) => Omit<DevtronLicenseCardProps, "appTheme">;
@@ -0,0 +1,3 @@
1
+ import { FlagImageProps } from './types';
2
+ declare const FlagImage: ({ country, size }: FlagImageProps) => JSX.Element;
3
+ export default FlagImage;
@@ -0,0 +1 @@
1
+ export { default as FlagImage } from './FlagImage.component';
@@ -0,0 +1,5 @@
1
+ import { CountryISO2Type } from '../../index';
2
+ export interface FlagImageProps {
3
+ country: CountryISO2Type;
4
+ size?: number;
5
+ }
@@ -1,3 +1,3 @@
1
1
  import { FormFieldWrapperProps } from './types';
2
- declare const FormFieldWrapper: ({ layout, fullWidth, label, inputId, error, helperText, warningText, required, children, labelTippyCustomizedConfig, labelTooltipConfig, }: Required<FormFieldWrapperProps>) => JSX.Element;
2
+ declare const FormFieldWrapper: ({ layout, fullWidth, label, inputId, error, helperText, warningText, required, children, labelTippyCustomizedConfig, labelTooltipConfig, hideFormFieldInfo, }: Omit<Required<FormFieldWrapperProps>, "hideFormFieldInfo"> & Pick<FormFieldWrapperProps, "hideFormFieldInfo">) => JSX.Element;
3
3
  export default FormFieldWrapper;
@@ -1,3 +1,4 @@
1
1
  export { default as FormFieldWrapper } from './FormFieldWrapper';
2
2
  export type { FormFieldWrapperProps } from './types';
3
3
  export { getFormFieldAriaAttributes } from './utils';
4
+ export { default as FormFieldInfo } from './FormFieldInfo';
@@ -64,4 +64,8 @@ export interface FormFieldWrapperProps extends Pick<FormFieldLabelProps, 'label'
64
64
  children: ReactElement;
65
65
  borderRadiusConfig?: BorderConfigType;
66
66
  borderConfig?: BorderConfigType;
67
+ /**
68
+ * @default false
69
+ */
70
+ hideFormFieldInfo?: boolean;
67
71
  }
@@ -1,3 +1,4 @@
1
1
  import { HelpOptionType } from './types';
2
2
  export declare const EnterpriseHelpOptions: HelpOptionType[];
3
3
  export declare const OSSHelpOptions: HelpOptionType[];
4
+ export declare const TrialHelpOptions: HelpOptionType[];
@@ -46,5 +46,4 @@ export interface HelpOptionType {
46
46
  name: string;
47
47
  link: string;
48
48
  icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
49
- showSeparator?: boolean;
50
49
  }
@@ -1,3 +1,6 @@
1
+ import { DevtronLicenseInfo } from '../DevtronLicenseCard';
1
2
  export declare const getDateInMilliseconds: (days: any) => number;
2
3
  export declare const handlePostHogEventUpdate: (eventName: string) => Promise<void>;
3
4
  export declare const setActionWithExpiry: (key: string, days: number) => void;
5
+ export declare const getIsShowingLicenseData: (licenseData: DevtronLicenseInfo) => boolean;
6
+ export declare const getHelpOptions: (isEnterprise: boolean, isTrial: boolean) => import('./types').HelpOptionType[];