@devtron-labs/devtron-fe-common-lib 1.9.5-beta-1 → 1.9.5-beta-3
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.
- package/dist/{@code-editor-T6Mhnd9I.js → @code-editor-CWmHyowW.js} +7553 -7528
- package/dist/{@common-rjsf-nN8cdgqv.js → @common-rjsf-BxmWuuRy.js} +2 -2
- package/dist/{@framer-motion-d6Rrf9nF.js → @framer-motion-Cx1gSa6-.js} +1 -1
- package/dist/{@react-dates-ClfZGMIH.js → @react-dates-ukcBEyJ1.js} +243 -243
- package/dist/{@react-select-BvPf5K_D.js → @react-select-Cas7oOFN.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-BGA3IyDu.js → @react-virtualized-sticky-tree-DRihF7_6.js} +1 -1
- package/dist/{@vendor-KiGK4ZkE.js → @vendor-xG1dUtf3.js} +25097 -30904
- package/dist/Common/API/CoreAPI.d.ts +17 -0
- package/dist/Common/API/constants.d.ts +70 -0
- package/dist/Common/API/index.d.ts +3 -0
- package/dist/Common/API/types.d.ts +23 -0
- package/dist/Common/API/utils.d.ts +12 -0
- package/dist/Common/Constants.d.ts +92 -94
- package/dist/Common/Helper.d.ts +1 -0
- package/dist/Common/Tooltip/constants.d.ts +0 -1
- package/dist/Common/Types.d.ts +7 -4
- package/dist/Common/index.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +0 -38
- package/dist/Shared/Components/CountrySelect/CountrySelect.component.d.ts +3 -0
- package/dist/Shared/Components/CountrySelect/index.d.ts +1 -0
- package/dist/Shared/Components/CountrySelect/types.d.ts +7 -0
- package/dist/Shared/Components/CountrySelect/utils.d.ts +4 -0
- package/dist/Shared/Components/CustomInput/CustomInput.d.ts +1 -1
- package/dist/Shared/Components/CustomInput/types.d.ts +5 -1
- package/dist/Shared/Components/DevtronLicenseCard/DevtronLicenseCard.d.ts +3 -0
- package/dist/Shared/Components/DevtronLicenseCard/index.d.ts +3 -0
- package/dist/Shared/Components/DevtronLicenseCard/types.d.ts +18 -0
- package/dist/Shared/Components/DevtronLicenseCard/utils.d.ts +6 -0
- package/dist/Shared/Components/FlagImage/FlagImage.component.d.ts +3 -0
- package/dist/Shared/Components/FlagImage/index.d.ts +1 -0
- package/dist/Shared/Components/FlagImage/types.d.ts +5 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +1 -1
- package/dist/Shared/Components/FloatingVariablesSuggestions/service.d.ts +1 -3
- package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +1 -2
- package/dist/Shared/Components/GitProviderIcon/GitProviderIcon.d.ts +1 -1
- package/dist/Shared/Components/GitProviderIcon/types.d.ts +3 -8
- package/dist/Shared/Components/Header/types.d.ts +0 -1
- package/dist/Shared/Components/Icon/Icon.d.ts +9 -3
- package/dist/Shared/Components/LoginBanner/LoginBanner.d.ts +2 -0
- package/dist/Shared/Components/LoginBanner/constants.d.ts +2 -0
- package/dist/Shared/Components/LoginBanner/index.d.ts +1 -0
- package/dist/Shared/Components/LoginBanner/types.d.ts +7 -0
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +1 -1
- package/dist/Shared/Components/PhoneInput/PhoneInput.component.d.ts +3 -0
- package/dist/Shared/Components/PhoneInput/index.d.ts +1 -0
- package/dist/Shared/Components/PhoneInput/types.d.ts +11 -0
- package/dist/Shared/Components/ReactSelect/constants.d.ts +15 -7
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +1 -2
- package/dist/Shared/Components/index.d.ts +6 -2
- package/dist/Shared/Helpers.d.ts +1 -0
- package/dist/Shared/Providers/types.d.ts +1 -1
- package/dist/Shared/Services/app.service.d.ts +1 -4
- package/dist/Shared/Services/common.service.d.ts +1 -2
- package/dist/Shared/Services/index.d.ts +0 -1
- package/dist/Shared/constants.d.ts +3 -0
- package/dist/Shared/types.d.ts +33 -0
- package/dist/Shared/validations.d.ts +0 -1
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@vendor.css +1 -1
- package/dist/assets/ic-book-open.e839bbda.svg +3 -0
- package/dist/assets/{ic-copy.416d85f3.svg → ic-caret-left.3df25a7c.svg} +1 -1
- package/dist/assets/ic-chat-circle-dots.b5afd171.svg +3 -0
- package/dist/assets/ic-devtron-header-logo.7dc157aa.svg +4 -0
- package/dist/assets/ic-devtron.aca6cbaa.svg +3 -0
- package/dist/assets/ic-key.56432553.svg +19 -0
- package/dist/assets/ic-quote.68f093fe.svg +3 -0
- package/dist/assets/ic-timer.ae5f10fa.svg +19 -0
- package/dist/index.d.ts +0 -8
- package/dist/index.js +806 -800
- package/package.json +2 -2
- package/dist/Common/Api.d.ts +0 -15
- package/dist/Common/GenericDescription/utils.d.ts +0 -1
- package/dist/Shared/Components/GenericInfoCard/GenericInfoCard.component.d.ts +0 -3
- package/dist/Shared/Components/GenericInfoCard/index.d.ts +0 -2
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +0 -26
- package/dist/Shared/Components/GenericInfoCard/utils.d.ts +0 -2
- package/dist/Shared/Components/GitProviderIcon/utils.d.ts +0 -2
- package/dist/Shared/Components/GraphVisualizer/GraphVisualizer.d.ts +0 -2
- package/dist/Shared/Components/GraphVisualizer/components/BaseNode.d.ts +0 -2
- package/dist/Shared/Components/GraphVisualizer/components/DropdownNode.d.ts +0 -3
- package/dist/Shared/Components/GraphVisualizer/components/IconNode.d.ts +0 -3
- package/dist/Shared/Components/GraphVisualizer/components/TextNode.d.ts +0 -3
- package/dist/Shared/Components/GraphVisualizer/components/index.d.ts +0 -4
- package/dist/Shared/Components/GraphVisualizer/components/types.d.ts +0 -19
- package/dist/Shared/Components/GraphVisualizer/constants.d.ts +0 -15
- package/dist/Shared/Components/GraphVisualizer/index.d.ts +0 -2
- package/dist/Shared/Components/GraphVisualizer/types.d.ts +0 -12
- package/dist/Shared/Components/GraphVisualizer/utils.d.ts +0 -17
- package/dist/Shared/Services/template.service.d.ts +0 -2
- package/dist/assets/ic-card-stack.efd37c91.svg +0 -3
- package/dist/assets/ic-new.2c179139.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 } 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'> {
|
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,102 +31,97 @@ export declare const PATTERNS: {
|
|
30
31
|
ALPHANUMERIC_WITH_SPECIAL_CHAR_AND_SLASH: RegExp;
|
31
32
|
};
|
32
33
|
export declare const URLS: {
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
readonly CONFIG_DRIFT: "config-drift";
|
65
|
-
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
|
66
|
-
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
|
67
|
-
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
|
34
|
+
LOGIN_SSO: string;
|
35
|
+
PERMISSION_GROUPS: string;
|
36
|
+
APP: string;
|
37
|
+
APP_LIST: string;
|
38
|
+
CHARTS_DISCOVER: string;
|
39
|
+
JOB: string;
|
40
|
+
CREATE_JOB: string;
|
41
|
+
GETTING_STARTED: string;
|
42
|
+
STACK_MANAGER_ABOUT: string;
|
43
|
+
APP_LIST_HELM: string;
|
44
|
+
APP_CI_DETAILS: string;
|
45
|
+
LOGS: string;
|
46
|
+
CREATE: string;
|
47
|
+
RELEASES: string;
|
48
|
+
DEVTRON_CHARTS: string;
|
49
|
+
APP_DEPLOYMNENT_HISTORY: string;
|
50
|
+
APP_DETAILS: string;
|
51
|
+
APP_DETAILS_K8: string;
|
52
|
+
DETAILS: string;
|
53
|
+
CD_DETAILS: string;
|
54
|
+
APP_TRIGGER: string;
|
55
|
+
GLOBAL_CONFIG_DOCKER: string;
|
56
|
+
DEPLOYMENT_HISTORY_CONFIGURATIONS: string;
|
57
|
+
GLOBAL_CONFIG_SCOPED_VARIABLES: string;
|
58
|
+
GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: string;
|
59
|
+
GLOBAL_CONFIG_DEPLOYMENT_CHARTS_UPLOAD_CHART: string;
|
60
|
+
NETWORK_STATUS_INTERFACE: string;
|
61
|
+
RESOURCE_BROWSER: string;
|
62
|
+
COMPARE_CLUSTERS: string;
|
63
|
+
CONFIG_DRIFT: string;
|
64
|
+
LICENSE_AUTH: string;
|
68
65
|
};
|
69
66
|
export declare const ROUTES: {
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
readonly ENVIRONMENT_DATA: "global/environment-variables";
|
67
|
+
APP: string;
|
68
|
+
APP_ARTIFACT_PROMOTE_MATERIAL: string;
|
69
|
+
APP_TEMPLATE_DATA: string;
|
70
|
+
PROJECT_LIST_MIN: string;
|
71
|
+
USER_CHECK_ROLE: string;
|
72
|
+
IMAGE_TAGGING: string;
|
73
|
+
CREATE_RESOURCE: string;
|
74
|
+
K8S_RESOURCE_CREATE: string;
|
75
|
+
CI_CONFIG_GET: string;
|
76
|
+
CD_MATERIAL_GET: string;
|
77
|
+
DEPLOYMENT_TEMPLATE_LIST: string;
|
78
|
+
INFRA_CONFIG_PROFILE: string;
|
79
|
+
SCAN_RESULT: string;
|
80
|
+
NOTIFIER: string;
|
81
|
+
APP_LIST: string;
|
82
|
+
TELEMETRY_EVENT: string;
|
83
|
+
SERVER_INFO_API: string;
|
84
|
+
ATTRIBUTES_USER: string;
|
85
|
+
GET: string;
|
86
|
+
UPDATE: string;
|
87
|
+
ENVIRONMENT_LIST_MIN: string;
|
88
|
+
CLUSTER: string;
|
89
|
+
API_RESOURCE: string;
|
90
|
+
GVK: string;
|
91
|
+
NAMESPACE: string;
|
92
|
+
CLUSTER_NOTE: string;
|
93
|
+
APPLICATION_NOTE: string;
|
94
|
+
GIT_HOST_EVENT: string;
|
95
|
+
HELM_DEPLOYMENT_STATUS_TIMELINE_INSTALLED_APP: string;
|
96
|
+
DEPLOYMENT_STATUS: string;
|
97
|
+
MANUAL_SYNC: string;
|
98
|
+
CD_CONFIG: string;
|
99
|
+
CONFIG_CD_PIPELINE: string;
|
100
|
+
MODULE_CONFIGURED: string;
|
101
|
+
RESOURCE_HISTORY_DEPLOYMENT: string;
|
102
|
+
ATTRIBUTES: string;
|
103
|
+
ATTRIBUTES_CREATE: string;
|
104
|
+
ATTRIBUTES_UPDATE: string;
|
105
|
+
APP_LIST_MIN: string;
|
106
|
+
CLUSTER_LIST_MIN: string;
|
107
|
+
CLUSTER_LIST_RAW: string;
|
108
|
+
PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
|
109
|
+
PLUGIN_GLOBAL_LIST_V2: string;
|
110
|
+
PLUGIN_GLOBAL_LIST_TAGS: string;
|
111
|
+
PLUGIN_LIST_MIN: string;
|
112
|
+
DEPLOYMENT_CHARTS_LIST: string;
|
113
|
+
USER_LIST_MIN: string;
|
114
|
+
CONFIG_DATA: string;
|
115
|
+
K8S_RESOURCE: string;
|
116
|
+
K8S_RESOURCE_LIST: string;
|
117
|
+
FILE_UPLOAD: string;
|
118
|
+
PLUGIN_GLOBAL_VARIABLES: string;
|
119
|
+
CONFIG_COMPARE_SECRET: string;
|
120
|
+
SCOPED_GLOBAL_VARIABLES: string;
|
121
|
+
CD_TRIGGER_POST: string;
|
122
|
+
DELETE_RESOURCE: string;
|
123
|
+
NODE_CAPACITY: string;
|
124
|
+
ENVIRONMENT_DATA: string;
|
129
125
|
};
|
130
126
|
export declare enum KEY_VALUE {
|
131
127
|
KEY = "key",
|
@@ -287,6 +283,7 @@ export declare const API_STATUS_CODES: {
|
|
287
283
|
PERMISSION_DENIED: number;
|
288
284
|
NOT_FOUND: number;
|
289
285
|
REQUEST_TIMEOUT: number;
|
286
|
+
CONFLICT: number;
|
290
287
|
EXPECTATION_FAILED: number;
|
291
288
|
UNPROCESSABLE_ENTITY: number;
|
292
289
|
LOCKED: number;
|
@@ -318,6 +315,7 @@ export declare const DATE_TIME_FORMATS: {
|
|
318
315
|
TWELVE_HOURS_EXPORT_FORMAT: string;
|
319
316
|
DD_MMM_YYYY_HH_MM: string;
|
320
317
|
DD_MMM_YYYY: string;
|
318
|
+
'DD/MM/YYYY': string;
|
321
319
|
};
|
322
320
|
export declare const SEMANTIC_VERSION_DOCUMENTATION_LINK = "https://semver.org/";
|
323
321
|
export declare const VULNERABILITIES_SORT_PRIORITY: {
|
package/dist/Common/Helper.d.ts
CHANGED
@@ -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 {};
|
package/dist/Common/Types.d.ts
CHANGED
@@ -30,7 +30,14 @@ 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;
|
34
41
|
}
|
35
42
|
export interface OptionType<T = string, K = string> {
|
36
43
|
value: T;
|
@@ -770,10 +777,6 @@ export interface CiMaterial {
|
|
770
777
|
id: number;
|
771
778
|
gitMaterialName: string;
|
772
779
|
isRegex?: boolean;
|
773
|
-
/**
|
774
|
-
* Available only for template view
|
775
|
-
*/
|
776
|
-
gitMaterialUrl: string;
|
777
780
|
}
|
778
781
|
export interface Task {
|
779
782
|
name?: string;
|
package/dist/Common/index.d.ts
CHANGED
@@ -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,4 +1,3 @@
|
|
1
|
-
import { ResourceKindType } from '../../../../../Shared/types';
|
2
1
|
import { ReactNode, SyntheticEvent } from 'react';
|
3
2
|
export declare enum ConfigHeaderTabType {
|
4
3
|
VALUES = "values",
|
@@ -33,40 +32,3 @@ export interface OverrideStrategyTippyContentProps {
|
|
33
32
|
*/
|
34
33
|
children?: ReactNode;
|
35
34
|
}
|
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 @@
|
|
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'>, 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, ...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,18 @@
|
|
1
|
+
export declare enum LicenseStatus {
|
2
|
+
ACTIVE = "ACTIVE",
|
3
|
+
EXPIRED = "EXPIRED",
|
4
|
+
REMINDER_THRESHOLD_REACHED = "REMINDER_THRESHOLD_REACHED"
|
5
|
+
}
|
6
|
+
export type DevtronLicenseCardProps = {
|
7
|
+
enterpriseName: string;
|
8
|
+
expiryDate: string;
|
9
|
+
ttl: number;
|
10
|
+
licenseStatus: LicenseStatus;
|
11
|
+
isTrial: boolean;
|
12
|
+
} & ({
|
13
|
+
licenseKey: string;
|
14
|
+
licenseSuffix?: never;
|
15
|
+
} | {
|
16
|
+
licenseKey?: never;
|
17
|
+
licenseSuffix: string;
|
18
|
+
});
|
@@ -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 @@
|
|
1
|
+
export { default as FlagImage } from './FlagImage.component';
|
package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts
CHANGED
@@ -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,
|
3
|
+
declare const _default: React.MemoExoticComponent<({ zIndex, appId, envId, clusterId, bounds, hideObjectVariables, showValueOnHover, }: FloatingVariablesSuggestionsProps) => JSX.Element>;
|
4
4
|
export default _default;
|
@@ -1,4 +1,2 @@
|
|
1
1
|
import { FloatingVariablesSuggestionsProps, ScopedVariableType } from './types';
|
2
|
-
export declare const getScopedVariables: (appId: FloatingVariablesSuggestionsProps["appId"], envId: FloatingVariablesSuggestionsProps["envId"], clusterId: FloatingVariablesSuggestionsProps["clusterId"],
|
3
|
-
hideObjectVariables?: boolean;
|
4
|
-
}) => Promise<ScopedVariableType[]>;
|
2
|
+
export declare const getScopedVariables: (appId: FloatingVariablesSuggestionsProps["appId"], envId: FloatingVariablesSuggestionsProps["envId"], clusterId: FloatingVariablesSuggestionsProps["clusterId"], hideObjectVariables?: boolean) => Promise<ScopedVariableType[]>;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { AppConfigProps } from '../../../Pages/index';
|
2
1
|
import { DraggableBounds } from 'react-draggable';
|
3
2
|
export interface ScopedVariableType {
|
4
3
|
variableName: string;
|
@@ -8,7 +7,7 @@ export interface ScopedVariableType {
|
|
8
7
|
} | null;
|
9
8
|
isRedacted: boolean;
|
10
9
|
}
|
11
|
-
export interface FloatingVariablesSuggestionsProps
|
10
|
+
export interface FloatingVariablesSuggestionsProps {
|
12
11
|
zIndex: number;
|
13
12
|
appId?: string;
|
14
13
|
envId?: string;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { GitProviderIconProps } from './types';
|
2
|
-
export declare const GitProviderIcon: ({ gitProvider, size
|
2
|
+
export declare const GitProviderIcon: ({ gitProvider, size }: GitProviderIconProps) => JSX.Element;
|
@@ -1,15 +1,10 @@
|
|
1
1
|
import { GitProviderType } from '../../../Common/Constants';
|
2
2
|
import { IconsProps } from '../Icon';
|
3
|
-
export
|
3
|
+
export interface GitProviderIconProps {
|
4
|
+
gitProvider: GitProviderType;
|
4
5
|
/**
|
5
6
|
* The size of the icon in pixels.
|
6
7
|
* @default 20
|
7
8
|
*/
|
8
9
|
size?: IconsProps['size'];
|
9
|
-
}
|
10
|
-
gitProvider: GitProviderType;
|
11
|
-
gitRepoUrl?: never;
|
12
|
-
} | {
|
13
|
-
gitProvider?: never;
|
14
|
-
gitRepoUrl: string;
|
15
|
-
});
|
10
|
+
}
|