@devtron-labs/devtron-fe-common-lib 1.9.7 → 1.9.8-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.
Files changed (103) hide show
  1. package/dist/{@code-editor-BevBTMAP.js → @code-editor-DoXAQt8M.js} +9205 -8239
  2. package/dist/{@common-rjsf-CdehJ2YJ.js → @common-rjsf-XsDtZSj0.js} +2 -2
  3. package/dist/{@framer-motion-Bucw936X.js → @framer-motion-DMD7dX-G.js} +972 -893
  4. package/dist/{@react-dates-CHrHV-f7.js → @react-dates-DxmDHBUI.js} +243 -243
  5. package/dist/{@react-select-lIFcHtle.js → @react-select-BR4eLpVa.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-D2b5Kavd.js → @react-virtualized-sticky-tree-Ca-pl6uN.js} +1 -1
  7. package/dist/{@vendor-FTN5ZOvi.js → @vendor-DZHtXPTX.js} +31613 -25085
  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/Constants.d.ts +98 -88
  14. package/dist/Common/DeleteCINodeButton/DeleteCINodeButton.d.ts +1 -1
  15. package/dist/Common/DeleteCINodeButton/types.d.ts +2 -1
  16. package/dist/Common/DeleteCINodeButton/utils.d.ts +5 -2
  17. package/dist/Common/GenericDescription/utils.d.ts +1 -0
  18. package/dist/Common/Helper.d.ts +1 -0
  19. package/dist/Common/Tooltip/constants.d.ts +1 -0
  20. package/dist/Common/Types.d.ts +15 -0
  21. package/dist/Common/index.d.ts +1 -1
  22. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +38 -0
  23. package/dist/Shared/Components/CountrySelect/CountrySelect.component.d.ts +3 -0
  24. package/dist/Shared/Components/CountrySelect/index.d.ts +1 -0
  25. package/dist/Shared/Components/CountrySelect/types.d.ts +7 -0
  26. package/dist/Shared/Components/CountrySelect/utils.d.ts +4 -0
  27. package/dist/Shared/Components/CustomInput/CustomInput.d.ts +1 -1
  28. package/dist/Shared/Components/CustomInput/types.d.ts +5 -1
  29. package/dist/Shared/Components/DevtronLicenseCard/DevtronLicenseCard.d.ts +3 -0
  30. package/dist/Shared/Components/DevtronLicenseCard/InstallationFingerprintInfo.d.ts +3 -0
  31. package/dist/Shared/Components/DevtronLicenseCard/index.d.ts +4 -0
  32. package/dist/Shared/Components/DevtronLicenseCard/types.d.ts +22 -0
  33. package/dist/Shared/Components/DevtronLicenseCard/utils.d.ts +6 -0
  34. package/dist/Shared/Components/FlagImage/FlagImage.component.d.ts +3 -0
  35. package/dist/Shared/Components/FlagImage/index.d.ts +1 -0
  36. package/dist/Shared/Components/FlagImage/types.d.ts +5 -0
  37. package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +1 -1
  38. package/dist/Shared/Components/FloatingVariablesSuggestions/service.d.ts +3 -1
  39. package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +2 -1
  40. package/dist/Shared/Components/FormFieldWrapper/FormFieldWrapper.d.ts +1 -1
  41. package/dist/Shared/Components/FormFieldWrapper/index.d.ts +1 -0
  42. package/dist/Shared/Components/FormFieldWrapper/types.d.ts +4 -0
  43. package/dist/Shared/Components/GenericInfoCard/GenericInfoCard.component.d.ts +3 -0
  44. package/dist/Shared/Components/GenericInfoCard/index.d.ts +2 -0
  45. package/dist/Shared/Components/GenericInfoCard/types.d.ts +26 -0
  46. package/dist/Shared/Components/GenericInfoCard/utils.d.ts +2 -0
  47. package/dist/Shared/Components/GitProviderIcon/GitProviderIcon.d.ts +1 -1
  48. package/dist/Shared/Components/GitProviderIcon/types.d.ts +8 -3
  49. package/dist/Shared/Components/GitProviderIcon/utils.d.ts +2 -0
  50. package/dist/Shared/Components/GraphVisualizer/GraphVisualizer.d.ts +2 -0
  51. package/dist/Shared/Components/GraphVisualizer/components/BaseNode.d.ts +2 -0
  52. package/dist/Shared/Components/GraphVisualizer/components/DropdownNode.d.ts +3 -0
  53. package/dist/Shared/Components/GraphVisualizer/components/IconNode.d.ts +3 -0
  54. package/dist/Shared/Components/GraphVisualizer/components/TextNode.d.ts +3 -0
  55. package/dist/Shared/Components/GraphVisualizer/components/index.d.ts +4 -0
  56. package/dist/Shared/Components/GraphVisualizer/components/types.d.ts +19 -0
  57. package/dist/Shared/Components/GraphVisualizer/constants.d.ts +15 -0
  58. package/dist/Shared/Components/GraphVisualizer/index.d.ts +2 -0
  59. package/dist/Shared/Components/GraphVisualizer/types.d.ts +12 -0
  60. package/dist/Shared/Components/GraphVisualizer/utils.d.ts +17 -0
  61. package/dist/Shared/Components/Header/types.d.ts +0 -1
  62. package/dist/Shared/Components/Icon/Icon.d.ts +12 -0
  63. package/dist/Shared/Components/LoginBanner/LoginBanner.d.ts +2 -0
  64. package/dist/Shared/Components/LoginBanner/constants.d.ts +4 -0
  65. package/dist/Shared/Components/LoginBanner/index.d.ts +1 -0
  66. package/dist/Shared/Components/LoginBanner/types.d.ts +7 -0
  67. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +1 -1
  68. package/dist/Shared/Components/PhoneInput/PhoneInput.component.d.ts +3 -0
  69. package/dist/Shared/Components/PhoneInput/index.d.ts +1 -0
  70. package/dist/Shared/Components/PhoneInput/types.d.ts +11 -0
  71. package/dist/Shared/Components/ReactSelect/constants.d.ts +7 -15
  72. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  73. package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
  74. package/dist/Shared/Components/Textarea/Textarea.component.d.ts +1 -1
  75. package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
  76. package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +2 -1
  77. package/dist/Shared/Components/index.d.ts +8 -0
  78. package/dist/Shared/Helpers.d.ts +1 -0
  79. package/dist/Shared/Providers/types.d.ts +4 -1
  80. package/dist/Shared/Services/app.service.d.ts +4 -1
  81. package/dist/Shared/Services/common.service.d.ts +2 -1
  82. package/dist/Shared/Services/index.d.ts +1 -0
  83. package/dist/Shared/Services/template.service.d.ts +2 -0
  84. package/dist/Shared/constants.d.ts +3 -0
  85. package/dist/Shared/types.d.ts +54 -0
  86. package/dist/Shared/validations.d.ts +1 -0
  87. package/dist/assets/@code-editor.css +1 -1
  88. package/dist/assets/@vendor.css +1 -1
  89. package/dist/assets/ic-book-open.e839bbda.svg +3 -0
  90. package/dist/assets/ic-card-stack.efd37c91.svg +3 -0
  91. package/dist/assets/ic-caret-left.3df25a7c.svg +3 -0
  92. package/dist/assets/ic-chat-circle-dots.b5afd171.svg +3 -0
  93. package/dist/assets/ic-copy.416d85f3.svg +3 -0
  94. package/dist/assets/ic-devtron-header-logo.7dc157aa.svg +4 -0
  95. package/dist/assets/ic-devtron.aca6cbaa.svg +3 -0
  96. package/dist/assets/ic-key.56432553.svg +19 -0
  97. package/dist/assets/ic-new.2c179139.svg +3 -0
  98. package/dist/assets/ic-quote.68f093fe.svg +3 -0
  99. package/dist/assets/ic-timer.ae5f10fa.svg +19 -0
  100. package/dist/index.d.ts +6 -2
  101. package/dist/index.js +826 -799
  102. package/package.json +3 -1
  103. package/dist/Common/Api.d.ts +0 -15
@@ -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 } 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;
@@ -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";
@@ -30,96 +31,103 @@ export declare const PATTERNS: {
30
31
  ALPHANUMERIC_WITH_SPECIAL_CHAR_AND_SLASH: RegExp;
31
32
  };
32
33
  export declare const URLS: {
33
- LOGIN_SSO: string;
34
- PERMISSION_GROUPS: string;
35
- APP: string;
36
- APP_LIST: string;
37
- CHARTS_DISCOVER: string;
38
- JOB: string;
39
- CREATE_JOB: string;
40
- GETTING_STARTED: string;
41
- STACK_MANAGER_ABOUT: string;
42
- APP_LIST_HELM: string;
43
- APP_CI_DETAILS: string;
44
- LOGS: string;
45
- CREATE: string;
46
- RELEASES: string;
47
- DEVTRON_CHARTS: string;
48
- APP_DEPLOYMNENT_HISTORY: string;
49
- APP_DETAILS: string;
50
- APP_DETAILS_K8: string;
51
- DETAILS: string;
52
- CD_DETAILS: string;
53
- APP_TRIGGER: string;
54
- GLOBAL_CONFIG_DOCKER: string;
55
- DEPLOYMENT_HISTORY_CONFIGURATIONS: string;
56
- GLOBAL_CONFIG_SCOPED_VARIABLES: string;
57
- GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: string;
58
- GLOBAL_CONFIG_DEPLOYMENT_CHARTS_UPLOAD_CHART: string;
59
- NETWORK_STATUS_INTERFACE: string;
60
- RESOURCE_BROWSER: string;
61
- COMPARE_CLUSTERS: string;
62
- CONFIG_DRIFT: string;
34
+ readonly LOGIN_SSO: "/login/sso";
35
+ readonly PERMISSION_GROUPS: "/global-config/auth/groups";
36
+ readonly APP: "/app";
37
+ readonly APP_LIST: "list";
38
+ readonly CHARTS_DISCOVER: "/chart-store/discover";
39
+ readonly JOB: "/job";
40
+ readonly CREATE_JOB: "create-job";
41
+ readonly GETTING_STARTED: "getting-started";
42
+ readonly STACK_MANAGER_ABOUT: "/stack-manager/about";
43
+ readonly APP_LIST_HELM: "h";
44
+ readonly APP_CI_DETAILS: "ci-details";
45
+ readonly LOGS: "Logs";
46
+ readonly CREATE: "/create";
47
+ readonly RELEASES: "/releases";
48
+ readonly DEVTRON_CHARTS: "dc";
49
+ readonly APP_DEPLOYMNENT_HISTORY: "deployments";
50
+ readonly APP_DETAILS: "details";
51
+ readonly APP_DETAILS_K8: "k8s-resources";
52
+ readonly DETAILS: "/details";
53
+ readonly CD_DETAILS: "cd-details";
54
+ readonly APP_TRIGGER: "trigger";
55
+ readonly GLOBAL_CONFIG_DOCKER: "/global-config/docker";
56
+ readonly DEPLOYMENT_HISTORY_CONFIGURATIONS: "/configuration";
57
+ readonly GLOBAL_CONFIG_SCOPED_VARIABLES: "/global-config/scoped-variables";
58
+ readonly GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: "/global-config/deployment-charts";
59
+ readonly GLOBAL_CONFIG_DEPLOYMENT_CHARTS_UPLOAD_CHART: "/global-config/deployment-charts/upload-chart";
60
+ readonly NETWORK_STATUS_INTERFACE: "/network-status-interface";
61
+ readonly RESOURCE_BROWSER: "/resource-browser";
62
+ readonly COMPARE_CLUSTERS: "/compare-clusters";
63
+ readonly APP_CONFIG: "edit";
64
+ readonly GLOBAL_CONFIG: "/global-config";
65
+ readonly CONFIG_DRIFT: "config-drift";
66
+ readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
67
+ readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
68
+ readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
69
+ readonly LICENSE_AUTH: "/license-auth";
63
70
  };
64
71
  export declare const ROUTES: {
65
- APP: string;
66
- APP_ARTIFACT_PROMOTE_MATERIAL: string;
67
- APP_TEMPLATE_DATA: string;
68
- PROJECT_LIST_MIN: string;
69
- USER_CHECK_ROLE: string;
70
- IMAGE_TAGGING: string;
71
- CREATE_RESOURCE: string;
72
- K8S_RESOURCE_CREATE: string;
73
- CI_CONFIG_GET: string;
74
- CD_MATERIAL_GET: string;
75
- DEPLOYMENT_TEMPLATE_LIST: string;
76
- INFRA_CONFIG_PROFILE: string;
77
- SCAN_RESULT: string;
78
- NOTIFIER: string;
79
- APP_LIST: string;
80
- TELEMETRY_EVENT: string;
81
- SERVER_INFO_API: string;
82
- ATTRIBUTES_USER: string;
83
- GET: string;
84
- UPDATE: string;
85
- ENVIRONMENT_LIST_MIN: string;
86
- CLUSTER: string;
87
- API_RESOURCE: string;
88
- GVK: string;
89
- NAMESPACE: string;
90
- CLUSTER_NOTE: string;
91
- APPLICATION_NOTE: string;
92
- GIT_HOST_EVENT: string;
93
- HELM_DEPLOYMENT_STATUS_TIMELINE_INSTALLED_APP: string;
94
- DEPLOYMENT_STATUS: string;
95
- MANUAL_SYNC: string;
96
- CD_CONFIG: string;
97
- CONFIG_CD_PIPELINE: string;
98
- MODULE_CONFIGURED: string;
99
- RESOURCE_HISTORY_DEPLOYMENT: string;
100
- ATTRIBUTES: string;
101
- ATTRIBUTES_CREATE: string;
102
- ATTRIBUTES_UPDATE: string;
103
- APP_LIST_MIN: string;
104
- CLUSTER_LIST_MIN: string;
105
- CLUSTER_LIST_RAW: string;
106
- PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
107
- PLUGIN_GLOBAL_LIST_V2: string;
108
- PLUGIN_GLOBAL_LIST_TAGS: string;
109
- PLUGIN_LIST_MIN: string;
110
- DEPLOYMENT_CHARTS_LIST: string;
111
- USER_LIST_MIN: string;
112
- CONFIG_DATA: string;
113
- K8S_RESOURCE: string;
114
- K8S_RESOURCE_LIST: string;
115
- FILE_UPLOAD: string;
116
- PLUGIN_GLOBAL_VARIABLES: string;
117
- CONFIG_COMPARE_SECRET: string;
118
- SCOPED_GLOBAL_VARIABLES: string;
119
- CD_TRIGGER_POST: string;
120
- DELETE_RESOURCE: string;
121
- NODE_CAPACITY: string;
122
- ENVIRONMENT_DATA: string;
72
+ readonly APP: "app";
73
+ readonly APP_ARTIFACT_PROMOTE_MATERIAL: "app/artifact/promotion-request/material";
74
+ readonly APP_TEMPLATE_DATA: "app/template/data";
75
+ readonly PROJECT_LIST_MIN: "team/autocomplete";
76
+ readonly USER_CHECK_ROLE: "user/check/roles";
77
+ readonly IMAGE_TAGGING: "app/image-tagging";
78
+ readonly CREATE_RESOURCE: "k8s/resource/create";
79
+ readonly K8S_RESOURCE_CREATE: "k8s/resources/apply";
80
+ readonly CI_CONFIG_GET: "app/ci-pipeline";
81
+ readonly CD_MATERIAL_GET: "app/cd-pipeline";
82
+ readonly DEPLOYMENT_TEMPLATE_LIST: "app/template/list";
83
+ readonly INFRA_CONFIG_PROFILE: "infra-config/profile";
84
+ readonly SCAN_RESULT: "scan-result";
85
+ readonly NOTIFIER: "notification";
86
+ readonly APP_LIST: "app/list";
87
+ readonly TELEMETRY_EVENT: "telemetry/event";
88
+ readonly SERVER_INFO_API: "server";
89
+ readonly ATTRIBUTES_USER: "attributes/user";
90
+ readonly GET: "get";
91
+ readonly UPDATE: "update";
92
+ readonly ENVIRONMENT_LIST_MIN: "env/autocomplete";
93
+ readonly CLUSTER: "cluster";
94
+ readonly API_RESOURCE: "k8s/api-resources";
95
+ readonly GVK: "gvk";
96
+ readonly NAMESPACE: "env/namespace";
97
+ readonly CLUSTER_NOTE: "cluster/note";
98
+ readonly APPLICATION_NOTE: "app/note";
99
+ readonly GIT_HOST_EVENT: "git/host/event";
100
+ readonly HELM_DEPLOYMENT_STATUS_TIMELINE_INSTALLED_APP: "app-store/deployment-status/timeline";
101
+ readonly DEPLOYMENT_STATUS: "app/deployment-status/timeline";
102
+ readonly MANUAL_SYNC: "app/deployment-status/manual-sync";
103
+ readonly CD_CONFIG: "app/cd-pipeline";
104
+ readonly CONFIG_CD_PIPELINE: "config/cd-pipeline";
105
+ readonly MODULE_CONFIGURED: "module/config";
106
+ readonly RESOURCE_HISTORY_DEPLOYMENT: "resource/history/deployment";
107
+ readonly ATTRIBUTES: "attributes";
108
+ readonly ATTRIBUTES_CREATE: "attributes/create";
109
+ readonly ATTRIBUTES_UPDATE: "attributes/update";
110
+ readonly APP_LIST_MIN: "app/min";
111
+ readonly CLUSTER_LIST_MIN: "cluster/autocomplete";
112
+ readonly CLUSTER_LIST_RAW: "k8s/capacity/cluster/list/raw";
113
+ readonly PLUGIN_GLOBAL_LIST_DETAIL_V2: "plugin/global/list/detail/v2";
114
+ readonly PLUGIN_GLOBAL_LIST_V2: "plugin/global/list/v2";
115
+ readonly PLUGIN_GLOBAL_LIST_TAGS: "plugin/global/list/tags";
116
+ readonly PLUGIN_LIST_MIN: "plugin/global/list/v2/min";
117
+ readonly DEPLOYMENT_CHARTS_LIST: "deployment/template/fetch";
118
+ readonly USER_LIST_MIN: "user/list/min";
119
+ readonly CONFIG_DATA: "config/data";
120
+ readonly K8S_RESOURCE: "k8s/resource";
121
+ readonly K8S_RESOURCE_LIST: "k8s/resource/list";
122
+ readonly FILE_UPLOAD: "file/upload";
123
+ readonly PLUGIN_GLOBAL_VARIABLES: "plugin/global/list/global-variable";
124
+ readonly CONFIG_COMPARE_SECRET: "config/compare/secret";
125
+ readonly SCOPED_GLOBAL_VARIABLES: "global/variables";
126
+ readonly CD_TRIGGER_POST: "app/cd-pipeline/trigger";
127
+ readonly DELETE_RESOURCE: "k8s/resource/delete";
128
+ readonly NODE_CAPACITY: "k8s/capacity/node";
129
+ readonly RESOURCE_TEMPLATE: "resource/template";
130
+ readonly ENVIRONMENT_DATA: "global/environment-variables";
123
131
  };
124
132
  export declare enum KEY_VALUE {
125
133
  KEY = "key",
@@ -281,6 +289,7 @@ export declare const API_STATUS_CODES: {
281
289
  PERMISSION_DENIED: number;
282
290
  NOT_FOUND: number;
283
291
  REQUEST_TIMEOUT: number;
292
+ CONFLICT: number;
284
293
  EXPECTATION_FAILED: number;
285
294
  UNPROCESSABLE_ENTITY: number;
286
295
  LOCKED: number;
@@ -312,6 +321,7 @@ export declare const DATE_TIME_FORMATS: {
312
321
  TWELVE_HOURS_EXPORT_FORMAT: string;
313
322
  DD_MMM_YYYY_HH_MM: string;
314
323
  DD_MMM_YYYY: string;
324
+ 'DD/MM/YYYY': string;
315
325
  };
316
326
  export declare const SEMANTIC_VERSION_DOCUMENTATION_LINK = "https://semver.org/";
317
327
  export declare const VULNERABILITIES_SORT_PRIORITY: {
@@ -1,2 +1,2 @@
1
1
  import { DeleteCINodeButtonProps } from './types';
2
- export declare const DeleteCINodeButton: ({ testId, showIconOnly, disabled, title, isJobView, deletePayloadConfig, onDelete, getWorkflows, }: DeleteCINodeButtonProps) => JSX.Element;
2
+ export declare const DeleteCINodeButton: ({ testId, showIconOnly, disabled, title, isJobView, deletePayloadConfig, onDelete, getWorkflows, isTemplateView, }: DeleteCINodeButtonProps) => JSX.Element;
@@ -1,10 +1,11 @@
1
+ import { AppConfigProps } from '../../Pages/index';
1
2
  interface DeletePayloadConfig {
2
3
  appId: string;
3
4
  appWorkflowId: number;
4
5
  pipelineId: number;
5
6
  pipelineName: string;
6
7
  }
7
- export interface DeleteCINodeButtonProps {
8
+ export interface DeleteCINodeButtonProps extends Required<Pick<AppConfigProps, 'isTemplateView'>> {
8
9
  testId: string;
9
10
  title: string;
10
11
  showIconOnly?: boolean;
@@ -1,2 +1,5 @@
1
- export declare function savePipeline(request: any, isRegexMaterial?: boolean): Promise<any>;
2
- export declare function deleteWorkflow(appId: string, workflowId: number): Promise<import('..').ResponseType<any>>;
1
+ import { AppConfigProps } from '../../Pages/index';
2
+ export declare function savePipeline(request: any, { isRegexMaterial, isTemplateView, }: Required<Pick<AppConfigProps, 'isTemplateView'>> & {
3
+ isRegexMaterial?: boolean;
4
+ }): Promise<any>;
5
+ export declare function deleteWorkflow(appId: string, workflowId: number, isTemplateView: AppConfigProps['isTemplateView']): Promise<import('..').ResponseType<any>>;
@@ -0,0 +1 @@
1
+ export declare const getParsedUpdatedOnDate: (updatedOn: string) => string;
@@ -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 {};
@@ -1,3 +1,4 @@
1
1
  export declare const TOOLTIP_CONTENTS: {
2
2
  INVALID_INPUT: string;
3
3
  };
4
+ export declare const SUB_PIXEL_ERROR = 1;
@@ -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;
@@ -770,6 +781,10 @@ export interface CiMaterial {
770
781
  id: number;
771
782
  gitMaterialName: string;
772
783
  isRegex?: boolean;
784
+ /**
785
+ * Available only for template view
786
+ */
787
+ gitMaterialUrl: string;
773
788
  }
774
789
  export interface Task {
775
790
  name?: string;
@@ -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,5 @@ 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';
@@ -1,3 +1,4 @@
1
+ import { ResourceKindType } from '../../../../../Shared/types';
1
2
  import { ReactNode, SyntheticEvent } from 'react';
2
3
  export declare enum ConfigHeaderTabType {
3
4
  VALUES = "values",
@@ -32,3 +33,40 @@ export interface OverrideStrategyTippyContentProps {
32
33
  */
33
34
  children?: ReactNode;
34
35
  }
36
+ export interface AppConfigProps {
37
+ appName: string;
38
+ resourceKind: Extract<ResourceKindType, ResourceKindType.devtronApplication | ResourceKindType.job>;
39
+ filteredEnvIds?: string;
40
+ isTemplateView?: boolean;
41
+ }
42
+ export declare enum GetTemplateAPIRouteType {
43
+ GIT_MATERIAL = "git-material",
44
+ CI_BUILD_CONFIG = "ci-build-config",
45
+ STAGE_STATUS = "stage-status",
46
+ CD_DEPLOY_CONFIG = "cd-deploy-config",
47
+ CD_ENV_LIST = "cd-env-list",
48
+ CONFIG_DEPLOYMENT_TEMPLATE = "config/deployment-template",
49
+ CONFIG_DEPLOYMENT_TEMPLATE_ENV = "config/deployment-template/env",
50
+ CONFIG_DATA = "config-data",
51
+ CONFIG_CM = "config/config-map",
52
+ CONFIG_CS = "config/secret",
53
+ WORKFLOW = "workflow",
54
+ WORKFLOW_LIST = "workflow/list",
55
+ OVERVIEW = "overview",
56
+ README = "readme",
57
+ CD_PIPELINE_LIST = "cd-pipeline/list",
58
+ EXTERNAL_CI_LIST = "external-ci/list",
59
+ EXTERNAL_CI = "external-ci",
60
+ CI_PIPELINE = "ci-pipeline",
61
+ CD_PIPELINE = "cd-pipeline",
62
+ CONFIG_STRATEGY = "config/strategy",
63
+ CHART_REF = "chartRef",
64
+ PIPELINE_SUGGEST_CI = "pipeline/suggest/ci",
65
+ PIPELINE_SUGGEST_CD = "pipeline/suggest/cd"
66
+ }
67
+ export interface GetTemplateAPIRouteProps {
68
+ type: GetTemplateAPIRouteType;
69
+ queryParams: {
70
+ id: string | number;
71
+ } & Record<string, any>;
72
+ }
@@ -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, }: 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,22 @@
1
+ import { DevtronLicenseBaseDTO } 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
+ } & ({
14
+ licenseKey: string;
15
+ licenseSuffix?: never;
16
+ } | {
17
+ licenseKey?: never;
18
+ licenseSuffix: string;
19
+ });
20
+ export interface InstallFingerprintInfoProps extends Pick<DevtronLicenseBaseDTO, 'fingerprint'> {
21
+ showHelpTooltip?: boolean;
22
+ }
@@ -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) => DevtronLicenseCardProps;
@@ -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,4 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { FloatingVariablesSuggestionsProps } from './types';
3
- declare const _default: React.MemoExoticComponent<({ zIndex, appId, envId, clusterId, bounds, hideObjectVariables, showValueOnHover, }: FloatingVariablesSuggestionsProps) => JSX.Element>;
3
+ declare const _default: React.MemoExoticComponent<({ zIndex, appId, envId, clusterId, bounds, hideObjectVariables, showValueOnHover, isTemplateView, }: FloatingVariablesSuggestionsProps) => JSX.Element>;
4
4
  export default _default;
@@ -1,2 +1,4 @@
1
1
  import { FloatingVariablesSuggestionsProps, ScopedVariableType } from './types';
2
- export declare const getScopedVariables: (appId: FloatingVariablesSuggestionsProps["appId"], envId: FloatingVariablesSuggestionsProps["envId"], clusterId: FloatingVariablesSuggestionsProps["clusterId"], hideObjectVariables?: boolean) => Promise<ScopedVariableType[]>;
2
+ export declare const getScopedVariables: (appId: FloatingVariablesSuggestionsProps["appId"], envId: FloatingVariablesSuggestionsProps["envId"], clusterId: FloatingVariablesSuggestionsProps["clusterId"], { hideObjectVariables, isTemplateView, }: Pick<FloatingVariablesSuggestionsProps, "isTemplateView"> & {
3
+ hideObjectVariables?: boolean;
4
+ }) => Promise<ScopedVariableType[]>;
@@ -1,3 +1,4 @@
1
+ import { AppConfigProps } from '../../../Pages/index';
1
2
  import { DraggableBounds } from 'react-draggable';
2
3
  export interface ScopedVariableType {
3
4
  variableName: string;
@@ -7,7 +8,7 @@ export interface ScopedVariableType {
7
8
  } | null;
8
9
  isRedacted: boolean;
9
10
  }
10
- export interface FloatingVariablesSuggestionsProps {
11
+ export interface FloatingVariablesSuggestionsProps extends Required<Pick<AppConfigProps, 'isTemplateView'>> {
11
12
  zIndex: number;
12
13
  appId?: string;
13
14
  envId?: string;