@devtron-labs/devtron-fe-common-lib 1.9.5-beta-4 → 1.9.6-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.
- package/dist/{@code-editor-CJb79OaZ.js → @code-editor-0ze0wq4Z.js} +7860 -7867
- package/dist/{@common-rjsf-BQNbv8mg.js → @common-rjsf-BaGU4GjS.js} +2 -2
- package/dist/{@framer-motion-Cx1gSa6-.js → @framer-motion--UCnj55s.js} +1 -1
- package/dist/{@react-dates-ukcBEyJ1.js → @react-dates-B3_Y9Kyv.js} +243 -243
- package/dist/{@react-select-Cas7oOFN.js → @react-select-DMzK6fkF.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-DRihF7_6.js → @react-virtualized-sticky-tree-Ck5oyLp9.js} +1 -1
- package/dist/{@vendor-xG1dUtf3.js → @vendor-DXbFZ041.js} +30911 -25065
- package/dist/Common/Api.d.ts +15 -0
- package/dist/Common/Constants.d.ts +94 -92
- package/dist/Common/DeleteCINodeButton/DeleteCINodeButton.d.ts +1 -1
- package/dist/Common/DeleteCINodeButton/types.d.ts +2 -1
- package/dist/Common/DeleteCINodeButton/utils.d.ts +5 -2
- package/dist/Common/GenericDescription/utils.d.ts +1 -0
- package/dist/Common/Helper.d.ts +0 -1
- package/dist/Common/Tooltip/constants.d.ts +1 -0
- package/dist/Common/Types.d.ts +4 -7
- package/dist/Common/index.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +38 -0
- package/dist/Shared/Components/CustomInput/CustomInput.d.ts +1 -1
- package/dist/Shared/Components/CustomInput/types.d.ts +1 -5
- package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +1 -1
- package/dist/Shared/Components/FloatingVariablesSuggestions/service.d.ts +3 -1
- package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +2 -1
- package/dist/Shared/Components/GenericInfoCard/GenericInfoCard.component.d.ts +3 -0
- package/dist/Shared/Components/GenericInfoCard/index.d.ts +2 -0
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +26 -0
- package/dist/Shared/Components/GenericInfoCard/utils.d.ts +2 -0
- package/dist/Shared/Components/GitProviderIcon/GitProviderIcon.d.ts +1 -1
- package/dist/Shared/Components/GitProviderIcon/types.d.ts +8 -3
- package/dist/Shared/Components/GitProviderIcon/utils.d.ts +2 -0
- package/dist/Shared/Components/GraphVisualizer/GraphVisualizer.d.ts +2 -0
- package/dist/Shared/Components/GraphVisualizer/components/BaseNode.d.ts +2 -0
- package/dist/Shared/Components/GraphVisualizer/components/DropdownNode.d.ts +3 -0
- package/dist/Shared/Components/GraphVisualizer/components/IconNode.d.ts +3 -0
- package/dist/Shared/Components/GraphVisualizer/components/TextNode.d.ts +3 -0
- package/dist/Shared/Components/GraphVisualizer/components/index.d.ts +4 -0
- package/dist/Shared/Components/GraphVisualizer/components/types.d.ts +19 -0
- package/dist/Shared/Components/GraphVisualizer/constants.d.ts +15 -0
- package/dist/Shared/Components/GraphVisualizer/index.d.ts +2 -0
- package/dist/Shared/Components/GraphVisualizer/types.d.ts +12 -0
- package/dist/Shared/Components/GraphVisualizer/utils.d.ts +17 -0
- package/dist/Shared/Components/Header/types.d.ts +1 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +3 -9
- package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
- package/dist/Shared/Components/Icon/constants.d.ts +2 -0
- package/dist/Shared/Components/Icon/types.d.ts +2 -2
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +1 -1
- package/dist/Shared/Components/ReactSelect/constants.d.ts +7 -15
- 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 +2 -1
- package/dist/Shared/Components/index.d.ts +2 -6
- package/dist/Shared/Helpers.d.ts +0 -1
- package/dist/Shared/Providers/types.d.ts +1 -1
- package/dist/Shared/Services/app.service.d.ts +4 -1
- package/dist/Shared/Services/common.service.d.ts +2 -1
- package/dist/Shared/Services/index.d.ts +1 -0
- package/dist/Shared/Services/template.service.d.ts +2 -0
- package/dist/Shared/constants.d.ts +0 -3
- package/dist/Shared/types.d.ts +0 -33
- package/dist/Shared/validations.d.ts +1 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@vendor.css +1 -1
- package/dist/assets/ic-card-stack.efd37c91.svg +3 -0
- package/dist/assets/{ic-caret-left.3df25a7c.svg → ic-copy.416d85f3.svg} +1 -1
- package/dist/assets/ic-new.2c179139.svg +3 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +800 -806
- package/package.json +2 -2
- package/dist/Common/API/CoreAPI.d.ts +0 -17
- package/dist/Common/API/constants.d.ts +0 -70
- package/dist/Common/API/index.d.ts +0 -3
- package/dist/Common/API/types.d.ts +0 -23
- package/dist/Common/API/utils.d.ts +0 -12
- package/dist/Shared/Components/CountrySelect/CountrySelect.component.d.ts +0 -3
- package/dist/Shared/Components/CountrySelect/index.d.ts +0 -1
- package/dist/Shared/Components/CountrySelect/types.d.ts +0 -7
- package/dist/Shared/Components/CountrySelect/utils.d.ts +0 -4
- package/dist/Shared/Components/DevtronLicenseCard/DevtronLicenseCard.d.ts +0 -3
- package/dist/Shared/Components/DevtronLicenseCard/index.d.ts +0 -3
- package/dist/Shared/Components/DevtronLicenseCard/types.d.ts +0 -18
- package/dist/Shared/Components/DevtronLicenseCard/utils.d.ts +0 -6
- package/dist/Shared/Components/FlagImage/FlagImage.component.d.ts +0 -3
- package/dist/Shared/Components/FlagImage/index.d.ts +0 -1
- package/dist/Shared/Components/FlagImage/types.d.ts +0 -5
- package/dist/Shared/Components/LoginBanner/LoginBanner.d.ts +0 -2
- package/dist/Shared/Components/LoginBanner/constants.d.ts +0 -2
- package/dist/Shared/Components/LoginBanner/index.d.ts +0 -1
- package/dist/Shared/Components/LoginBanner/types.d.ts +0 -7
- package/dist/Shared/Components/PhoneInput/PhoneInput.component.d.ts +0 -3
- package/dist/Shared/Components/PhoneInput/index.d.ts +0 -1
- package/dist/Shared/Components/PhoneInput/types.d.ts +0 -11
- package/dist/assets/ic-book-open.e839bbda.svg +0 -3
- package/dist/assets/ic-chat-circle-dots.b5afd171.svg +0 -3
- package/dist/assets/ic-devtron-header-logo.7dc157aa.svg +0 -4
- package/dist/assets/ic-devtron.aca6cbaa.svg +0 -3
- package/dist/assets/ic-key.56432553.svg +0 -19
- package/dist/assets/ic-quote.68f093fe.svg +0 -3
- package/dist/assets/ic-timer.ae5f10fa.svg +0 -19
@@ -0,0 +1,15 @@
|
|
1
|
+
import { MutableRefObject } from 'react';
|
2
|
+
import { ResponseType, APIOptions } from './Types';
|
3
|
+
export declare const post: <T = any, K = object>(url: string, data: K, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType<T>>;
|
4
|
+
export declare const put: <T = any, K = object>(url: string, data: K, options?: APIOptions) => Promise<ResponseType<T>>;
|
5
|
+
export declare const patch: <T = any, K = object>(url: string, data: K, options?: APIOptions) => Promise<ResponseType<T>>;
|
6
|
+
export declare const get: <T = any>(url: string, options?: APIOptions) => Promise<ResponseType<T>>;
|
7
|
+
export declare const trash: <T = any, K = object>(url: string, data?: K, options?: APIOptions) => Promise<ResponseType<T>>;
|
8
|
+
/**
|
9
|
+
* Aborts the previous request before triggering next request
|
10
|
+
*/
|
11
|
+
export declare const abortPreviousRequests: <T>(callback: () => Promise<T>, abortControllerRef: MutableRefObject<AbortController>) => Promise<T>;
|
12
|
+
/**
|
13
|
+
* Returns true if the error is due to a aborted request
|
14
|
+
*/
|
15
|
+
export declare const getIsRequestAborted: (error: any) => boolean;
|
@@ -1,7 +1,6 @@
|
|
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/";
|
5
4
|
export declare const DOCUMENTATION_VERSION = "/v/v0.7";
|
6
5
|
export declare const DISCORD_LINK = "https://discord.devtron.ai/";
|
7
6
|
export declare const DEFAULT_JSON_SCHEMA_URI = "https://json-schema.org/draft/2020-12/schema";
|
@@ -31,97 +30,102 @@ export declare const PATTERNS: {
|
|
31
30
|
ALPHANUMERIC_WITH_SPECIAL_CHAR_AND_SLASH: RegExp;
|
32
31
|
};
|
33
32
|
export declare const URLS: {
|
34
|
-
LOGIN_SSO:
|
35
|
-
PERMISSION_GROUPS:
|
36
|
-
APP:
|
37
|
-
APP_LIST:
|
38
|
-
CHARTS_DISCOVER:
|
39
|
-
JOB:
|
40
|
-
CREATE_JOB:
|
41
|
-
GETTING_STARTED:
|
42
|
-
STACK_MANAGER_ABOUT:
|
43
|
-
APP_LIST_HELM:
|
44
|
-
APP_CI_DETAILS:
|
45
|
-
LOGS:
|
46
|
-
CREATE:
|
47
|
-
RELEASES:
|
48
|
-
DEVTRON_CHARTS:
|
49
|
-
APP_DEPLOYMNENT_HISTORY:
|
50
|
-
APP_DETAILS:
|
51
|
-
APP_DETAILS_K8:
|
52
|
-
DETAILS:
|
53
|
-
CD_DETAILS:
|
54
|
-
APP_TRIGGER:
|
55
|
-
GLOBAL_CONFIG_DOCKER:
|
56
|
-
DEPLOYMENT_HISTORY_CONFIGURATIONS:
|
57
|
-
GLOBAL_CONFIG_SCOPED_VARIABLES:
|
58
|
-
GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST:
|
59
|
-
GLOBAL_CONFIG_DEPLOYMENT_CHARTS_UPLOAD_CHART:
|
60
|
-
NETWORK_STATUS_INTERFACE:
|
61
|
-
RESOURCE_BROWSER:
|
62
|
-
COMPARE_CLUSTERS:
|
63
|
-
|
64
|
-
|
33
|
+
readonly LOGIN_SSO: "/login/sso";
|
34
|
+
readonly PERMISSION_GROUPS: "/global-config/auth/groups";
|
35
|
+
readonly APP: "/app";
|
36
|
+
readonly APP_LIST: "list";
|
37
|
+
readonly CHARTS_DISCOVER: "/chart-store/discover";
|
38
|
+
readonly JOB: "/job";
|
39
|
+
readonly CREATE_JOB: "create-job";
|
40
|
+
readonly GETTING_STARTED: "getting-started";
|
41
|
+
readonly STACK_MANAGER_ABOUT: "/stack-manager/about";
|
42
|
+
readonly APP_LIST_HELM: "h";
|
43
|
+
readonly APP_CI_DETAILS: "ci-details";
|
44
|
+
readonly LOGS: "Logs";
|
45
|
+
readonly CREATE: "/create";
|
46
|
+
readonly RELEASES: "/releases";
|
47
|
+
readonly DEVTRON_CHARTS: "dc";
|
48
|
+
readonly APP_DEPLOYMNENT_HISTORY: "deployments";
|
49
|
+
readonly APP_DETAILS: "details";
|
50
|
+
readonly APP_DETAILS_K8: "k8s-resources";
|
51
|
+
readonly DETAILS: "/details";
|
52
|
+
readonly CD_DETAILS: "cd-details";
|
53
|
+
readonly APP_TRIGGER: "trigger";
|
54
|
+
readonly GLOBAL_CONFIG_DOCKER: "/global-config/docker";
|
55
|
+
readonly DEPLOYMENT_HISTORY_CONFIGURATIONS: "/configuration";
|
56
|
+
readonly GLOBAL_CONFIG_SCOPED_VARIABLES: "/global-config/scoped-variables";
|
57
|
+
readonly GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: "/global-config/deployment-charts";
|
58
|
+
readonly GLOBAL_CONFIG_DEPLOYMENT_CHARTS_UPLOAD_CHART: "/global-config/deployment-charts/upload-chart";
|
59
|
+
readonly NETWORK_STATUS_INTERFACE: "/network-status-interface";
|
60
|
+
readonly RESOURCE_BROWSER: "/resource-browser";
|
61
|
+
readonly COMPARE_CLUSTERS: "/compare-clusters";
|
62
|
+
readonly APP_CONFIG: "edit";
|
63
|
+
readonly GLOBAL_CONFIG: "/global-config";
|
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";
|
65
68
|
};
|
66
69
|
export declare const ROUTES: {
|
67
|
-
APP:
|
68
|
-
APP_ARTIFACT_PROMOTE_MATERIAL:
|
69
|
-
APP_TEMPLATE_DATA:
|
70
|
-
PROJECT_LIST_MIN:
|
71
|
-
USER_CHECK_ROLE:
|
72
|
-
IMAGE_TAGGING:
|
73
|
-
CREATE_RESOURCE:
|
74
|
-
K8S_RESOURCE_CREATE:
|
75
|
-
CI_CONFIG_GET:
|
76
|
-
CD_MATERIAL_GET:
|
77
|
-
DEPLOYMENT_TEMPLATE_LIST:
|
78
|
-
INFRA_CONFIG_PROFILE:
|
79
|
-
SCAN_RESULT:
|
80
|
-
NOTIFIER:
|
81
|
-
APP_LIST:
|
82
|
-
TELEMETRY_EVENT:
|
83
|
-
SERVER_INFO_API:
|
84
|
-
ATTRIBUTES_USER:
|
85
|
-
GET:
|
86
|
-
UPDATE:
|
87
|
-
ENVIRONMENT_LIST_MIN:
|
88
|
-
CLUSTER:
|
89
|
-
API_RESOURCE:
|
90
|
-
GVK:
|
91
|
-
NAMESPACE:
|
92
|
-
CLUSTER_NOTE:
|
93
|
-
APPLICATION_NOTE:
|
94
|
-
GIT_HOST_EVENT:
|
95
|
-
HELM_DEPLOYMENT_STATUS_TIMELINE_INSTALLED_APP:
|
96
|
-
DEPLOYMENT_STATUS:
|
97
|
-
MANUAL_SYNC:
|
98
|
-
CD_CONFIG:
|
99
|
-
CONFIG_CD_PIPELINE:
|
100
|
-
MODULE_CONFIGURED:
|
101
|
-
RESOURCE_HISTORY_DEPLOYMENT:
|
102
|
-
ATTRIBUTES:
|
103
|
-
ATTRIBUTES_CREATE:
|
104
|
-
ATTRIBUTES_UPDATE:
|
105
|
-
APP_LIST_MIN:
|
106
|
-
CLUSTER_LIST_MIN:
|
107
|
-
CLUSTER_LIST_RAW:
|
108
|
-
PLUGIN_GLOBAL_LIST_DETAIL_V2:
|
109
|
-
PLUGIN_GLOBAL_LIST_V2:
|
110
|
-
PLUGIN_GLOBAL_LIST_TAGS:
|
111
|
-
PLUGIN_LIST_MIN:
|
112
|
-
DEPLOYMENT_CHARTS_LIST:
|
113
|
-
USER_LIST_MIN:
|
114
|
-
CONFIG_DATA:
|
115
|
-
K8S_RESOURCE:
|
116
|
-
K8S_RESOURCE_LIST:
|
117
|
-
FILE_UPLOAD:
|
118
|
-
PLUGIN_GLOBAL_VARIABLES:
|
119
|
-
CONFIG_COMPARE_SECRET:
|
120
|
-
SCOPED_GLOBAL_VARIABLES:
|
121
|
-
CD_TRIGGER_POST:
|
122
|
-
DELETE_RESOURCE:
|
123
|
-
NODE_CAPACITY:
|
124
|
-
|
70
|
+
readonly APP: "app";
|
71
|
+
readonly APP_ARTIFACT_PROMOTE_MATERIAL: "app/artifact/promotion-request/material";
|
72
|
+
readonly APP_TEMPLATE_DATA: "app/template/data";
|
73
|
+
readonly PROJECT_LIST_MIN: "team/autocomplete";
|
74
|
+
readonly USER_CHECK_ROLE: "user/check/roles";
|
75
|
+
readonly IMAGE_TAGGING: "app/image-tagging";
|
76
|
+
readonly CREATE_RESOURCE: "k8s/resource/create";
|
77
|
+
readonly K8S_RESOURCE_CREATE: "k8s/resources/apply";
|
78
|
+
readonly CI_CONFIG_GET: "app/ci-pipeline";
|
79
|
+
readonly CD_MATERIAL_GET: "app/cd-pipeline";
|
80
|
+
readonly DEPLOYMENT_TEMPLATE_LIST: "app/template/list";
|
81
|
+
readonly INFRA_CONFIG_PROFILE: "infra-config/profile";
|
82
|
+
readonly SCAN_RESULT: "scan-result";
|
83
|
+
readonly NOTIFIER: "notification";
|
84
|
+
readonly APP_LIST: "app/list";
|
85
|
+
readonly TELEMETRY_EVENT: "telemetry/event";
|
86
|
+
readonly SERVER_INFO_API: "server";
|
87
|
+
readonly ATTRIBUTES_USER: "attributes/user";
|
88
|
+
readonly GET: "get";
|
89
|
+
readonly UPDATE: "update";
|
90
|
+
readonly ENVIRONMENT_LIST_MIN: "env/autocomplete";
|
91
|
+
readonly CLUSTER: "cluster";
|
92
|
+
readonly API_RESOURCE: "k8s/api-resources";
|
93
|
+
readonly GVK: "gvk";
|
94
|
+
readonly NAMESPACE: "env/namespace";
|
95
|
+
readonly CLUSTER_NOTE: "cluster/note";
|
96
|
+
readonly APPLICATION_NOTE: "app/note";
|
97
|
+
readonly GIT_HOST_EVENT: "git/host/event";
|
98
|
+
readonly HELM_DEPLOYMENT_STATUS_TIMELINE_INSTALLED_APP: "app-store/deployment-status/timeline";
|
99
|
+
readonly DEPLOYMENT_STATUS: "app/deployment-status/timeline";
|
100
|
+
readonly MANUAL_SYNC: "app/deployment-status/manual-sync";
|
101
|
+
readonly CD_CONFIG: "app/cd-pipeline";
|
102
|
+
readonly CONFIG_CD_PIPELINE: "config/cd-pipeline";
|
103
|
+
readonly MODULE_CONFIGURED: "module/config";
|
104
|
+
readonly RESOURCE_HISTORY_DEPLOYMENT: "resource/history/deployment";
|
105
|
+
readonly ATTRIBUTES: "attributes";
|
106
|
+
readonly ATTRIBUTES_CREATE: "attributes/create";
|
107
|
+
readonly ATTRIBUTES_UPDATE: "attributes/update";
|
108
|
+
readonly APP_LIST_MIN: "app/min";
|
109
|
+
readonly CLUSTER_LIST_MIN: "cluster/autocomplete";
|
110
|
+
readonly CLUSTER_LIST_RAW: "k8s/capacity/cluster/list/raw";
|
111
|
+
readonly PLUGIN_GLOBAL_LIST_DETAIL_V2: "plugin/global/list/detail/v2";
|
112
|
+
readonly PLUGIN_GLOBAL_LIST_V2: "plugin/global/list/v2";
|
113
|
+
readonly PLUGIN_GLOBAL_LIST_TAGS: "plugin/global/list/tags";
|
114
|
+
readonly PLUGIN_LIST_MIN: "plugin/global/list/v2/min";
|
115
|
+
readonly DEPLOYMENT_CHARTS_LIST: "deployment/template/fetch";
|
116
|
+
readonly USER_LIST_MIN: "user/list/min";
|
117
|
+
readonly CONFIG_DATA: "config/data";
|
118
|
+
readonly K8S_RESOURCE: "k8s/resource";
|
119
|
+
readonly K8S_RESOURCE_LIST: "k8s/resource/list";
|
120
|
+
readonly FILE_UPLOAD: "file/upload";
|
121
|
+
readonly PLUGIN_GLOBAL_VARIABLES: "plugin/global/list/global-variable";
|
122
|
+
readonly CONFIG_COMPARE_SECRET: "config/compare/secret";
|
123
|
+
readonly SCOPED_GLOBAL_VARIABLES: "global/variables";
|
124
|
+
readonly CD_TRIGGER_POST: "app/cd-pipeline/trigger";
|
125
|
+
readonly DELETE_RESOURCE: "k8s/resource/delete";
|
126
|
+
readonly NODE_CAPACITY: "k8s/capacity/node";
|
127
|
+
readonly RESOURCE_TEMPLATE: "resource/template";
|
128
|
+
readonly ENVIRONMENT_DATA: "global/environment-variables";
|
125
129
|
};
|
126
130
|
export declare enum KEY_VALUE {
|
127
131
|
KEY = "key",
|
@@ -283,7 +287,6 @@ export declare const API_STATUS_CODES: {
|
|
283
287
|
PERMISSION_DENIED: number;
|
284
288
|
NOT_FOUND: number;
|
285
289
|
REQUEST_TIMEOUT: number;
|
286
|
-
CONFLICT: number;
|
287
290
|
EXPECTATION_FAILED: number;
|
288
291
|
UNPROCESSABLE_ENTITY: number;
|
289
292
|
LOCKED: number;
|
@@ -315,7 +318,6 @@ export declare const DATE_TIME_FORMATS: {
|
|
315
318
|
TWELVE_HOURS_EXPORT_FORMAT: string;
|
316
319
|
DD_MMM_YYYY_HH_MM: string;
|
317
320
|
DD_MMM_YYYY: string;
|
318
|
-
'DD/MM/YYYY': string;
|
319
321
|
};
|
320
322
|
export declare const SEMANTIC_VERSION_DOCUMENTATION_LINK = "https://semver.org/";
|
321
323
|
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
|
-
|
2
|
-
export declare function
|
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;
|
package/dist/Common/Helper.d.ts
CHANGED
@@ -143,5 +143,4 @@ 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;
|
147
146
|
export {};
|
package/dist/Common/Types.d.ts
CHANGED
@@ -30,14 +30,7 @@ export interface APIOptions {
|
|
30
30
|
*/
|
31
31
|
signal?: AbortSignal;
|
32
32
|
abortControllerRef?: MutableRefObject<AbortController>;
|
33
|
-
/**
|
34
|
-
* @default false
|
35
|
-
*/
|
36
33
|
preventAutoLogout?: boolean;
|
37
|
-
/**
|
38
|
-
* @default false
|
39
|
-
*/
|
40
|
-
preventLicenseRedirect?: boolean;
|
41
34
|
}
|
42
35
|
export interface OptionType<T = string, K = string> {
|
43
36
|
value: T;
|
@@ -777,6 +770,10 @@ export interface CiMaterial {
|
|
777
770
|
id: number;
|
778
771
|
gitMaterialName: string;
|
779
772
|
isRegex?: boolean;
|
773
|
+
/**
|
774
|
+
* Available only for template view
|
775
|
+
*/
|
776
|
+
gitMaterialUrl: string;
|
780
777
|
}
|
781
778
|
export interface Task {
|
782
779
|
name?: string;
|
package/dist/Common/index.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
export * from './Constants';
|
2
2
|
export * from './ServerError';
|
3
3
|
export * from './Types';
|
4
|
+
export * from './Api';
|
4
5
|
export { default as Reload } from './Reload';
|
5
6
|
export { default as ErrorScreenManager } from './ErrorScreenManager';
|
6
7
|
export { default as ErrorScreenNotAuthorized } from './ErrorScreenNotAuthorized';
|
@@ -49,5 +50,4 @@ export * from './SegmentedBarChart';
|
|
49
50
|
export * from './CodeEditor/types';
|
50
51
|
export * from './Tooltip';
|
51
52
|
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
|
+
}
|
@@ -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,
|
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;
|
3
3
|
export default CustomInput;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { InputHTMLAttributes
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
2
2
|
import { ComponentSizeType } from '../../constants';
|
3
3
|
import { FormFieldWrapperProps } from '../FormFieldWrapper';
|
4
4
|
import { ButtonComponentType, ButtonProps } from '../Button';
|
@@ -27,10 +27,6 @@ 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>;
|
34
30
|
}
|
35
31
|
export interface PasswordFieldProps extends Omit<CustomInputProps, 'endIconButtonConfig' | 'type'> {
|
36
32
|
/**
|
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, }: 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
|
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;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { MouseEventHandler, ReactElement } from 'react';
|
2
|
+
import { LinkProps } from 'react-router-dom';
|
3
|
+
type BaseGenericInfoCardProps = {
|
4
|
+
title: string;
|
5
|
+
description: string;
|
6
|
+
author: string;
|
7
|
+
Icon: ReactElement;
|
8
|
+
} & ({
|
9
|
+
onClick?: never;
|
10
|
+
linkProps?: Pick<LinkProps, 'to' | 'target' | 'rel'>;
|
11
|
+
} | {
|
12
|
+
onClick?: MouseEventHandler<HTMLDivElement>;
|
13
|
+
linkProps?: never;
|
14
|
+
});
|
15
|
+
export declare enum GenericInfoCardBorderVariant {
|
16
|
+
ROUNDED = "rounded",
|
17
|
+
NONE = "none"
|
18
|
+
}
|
19
|
+
export type GenericInfoCardProps = {
|
20
|
+
borderVariant: GenericInfoCardBorderVariant;
|
21
|
+
} & (({
|
22
|
+
isLoading: true;
|
23
|
+
} & Partial<Record<keyof BaseGenericInfoCardProps, never>>) | ({
|
24
|
+
isLoading?: boolean;
|
25
|
+
} & BaseGenericInfoCardProps));
|
26
|
+
export {};
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { GitProviderIconProps } from './types';
|
2
|
-
export declare const GitProviderIcon: ({ gitProvider, size }: GitProviderIconProps) => JSX.Element;
|
2
|
+
export declare const GitProviderIcon: ({ gitProvider, size, gitRepoUrl }: GitProviderIconProps) => JSX.Element;
|
@@ -1,10 +1,15 @@
|
|
1
1
|
import { GitProviderType } from '../../../Common/Constants';
|
2
2
|
import { IconsProps } from '../Icon';
|
3
|
-
export
|
4
|
-
gitProvider: GitProviderType;
|
3
|
+
export type GitProviderIconProps = {
|
5
4
|
/**
|
6
5
|
* The size of the icon in pixels.
|
7
6
|
* @default 20
|
8
7
|
*/
|
9
8
|
size?: IconsProps['size'];
|
10
|
-
}
|
9
|
+
} & ({
|
10
|
+
gitProvider: GitProviderType;
|
11
|
+
gitRepoUrl?: never;
|
12
|
+
} | {
|
13
|
+
gitProvider?: never;
|
14
|
+
gitRepoUrl: string;
|
15
|
+
});
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
2
|
+
import { Node } from '@xyflow/react';
|
3
|
+
import { SelectPickerProps } from '../../SelectPicker';
|
4
|
+
export interface BaseNodeProps {
|
5
|
+
id: string;
|
6
|
+
className?: string;
|
7
|
+
isConnectable: boolean;
|
8
|
+
children: ReactNode;
|
9
|
+
}
|
10
|
+
export type IconNodeProps = Node<{
|
11
|
+
icon: ReactElement;
|
12
|
+
}, 'iconNode'>;
|
13
|
+
export type TextNodeProps = Node<{
|
14
|
+
icon?: ReactElement;
|
15
|
+
text: string;
|
16
|
+
}, 'textNode'>;
|
17
|
+
export type DropdownNodeProps = Node<Omit<SelectPickerProps<string | number, false>, 'variant' | 'fullWidth' | 'classNamePrefix' | 'menuPosition' | 'menuSize' | 'menuPortalTarget' | 'error'> & {
|
18
|
+
isError?: boolean;
|
19
|
+
}, 'dropdownNode'>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { NodeTypes, Viewport } from '@xyflow/react';
|
2
|
+
declare const nodeTypes: {
|
3
|
+
iconNode: ({ data, id, isConnectable }: import('@xyflow/react').NodeProps<import('./components').IconNodeProps>) => JSX.Element;
|
4
|
+
textNode: ({ id, data, isConnectable }: import('@xyflow/react').NodeProps<import('./components').TextNodeProps>) => JSX.Element;
|
5
|
+
dropdownNode: ({ id, data, isConnectable }: import('@xyflow/react').NodeProps<import('./components').DropdownNodeProps>) => JSX.Element;
|
6
|
+
};
|
7
|
+
export declare const NODE_TYPES: NodeTypes;
|
8
|
+
export declare const NODE_WIDTH_MAP: Record<keyof typeof nodeTypes, number>;
|
9
|
+
export declare const NODE_HEIGHT_MAP: Record<keyof typeof nodeTypes, number>;
|
10
|
+
export declare const PADDING_X = 16;
|
11
|
+
export declare const PADDING_Y = 20;
|
12
|
+
export declare const NODE_GAP_X = 50;
|
13
|
+
export declare const NODE_GAP_Y = 12;
|
14
|
+
export declare const DEFAULT_VIEWPORT: Viewport;
|
15
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
2
|
+
import { Edge } from '@xyflow/react';
|
3
|
+
import { DropdownNodeProps, IconNodeProps, TextNodeProps } from './components';
|
4
|
+
export type GraphVisualizerExtendedNode = IconNodeProps | TextNodeProps | DropdownNodeProps;
|
5
|
+
export type GraphVisualizerNode = Omit<IconNodeProps, 'position'> | Omit<TextNodeProps, 'position'> | Omit<DropdownNodeProps, 'position'>;
|
6
|
+
export type GraphVisualizerEdge = Omit<Edge, 'type'>;
|
7
|
+
export interface GraphVisualizerProps {
|
8
|
+
nodes: GraphVisualizerNode[];
|
9
|
+
setNodes: Dispatch<SetStateAction<GraphVisualizerNode[]>>;
|
10
|
+
edges: GraphVisualizerEdge[];
|
11
|
+
setEdges: Dispatch<SetStateAction<GraphVisualizerEdge[]>>;
|
12
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Edge } from '@xyflow/react';
|
2
|
+
import { GraphVisualizerExtendedNode, GraphVisualizerProps } from './types';
|
3
|
+
/**
|
4
|
+
* Processes edges by assigning a default type and customizing the marker (arrow style).
|
5
|
+
*
|
6
|
+
* @param edges - List of all edges representing connections between nodes.
|
7
|
+
* @returns A new array of edges with updated properties.
|
8
|
+
*/
|
9
|
+
export declare const processEdges: (edges: GraphVisualizerProps["edges"]) => Edge[];
|
10
|
+
/**
|
11
|
+
* Processes nodes by calculating their positions based on parent-child relationships.
|
12
|
+
*
|
13
|
+
* @param nodes - List of all nodes in the graph.
|
14
|
+
* @param edges - List of all edges representing parent-child relationships.
|
15
|
+
* @returns A new array of nodes with computed positions.
|
16
|
+
*/
|
17
|
+
export declare const processNodes: (nodes: GraphVisualizerProps["nodes"], edges: GraphVisualizerProps["edges"]) => GraphVisualizerExtendedNode[];
|