@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.
Files changed (99) hide show
  1. package/dist/{@code-editor-CJb79OaZ.js → @code-editor-0ze0wq4Z.js} +7860 -7867
  2. package/dist/{@common-rjsf-BQNbv8mg.js → @common-rjsf-BaGU4GjS.js} +2 -2
  3. package/dist/{@framer-motion-Cx1gSa6-.js → @framer-motion--UCnj55s.js} +1 -1
  4. package/dist/{@react-dates-ukcBEyJ1.js → @react-dates-B3_Y9Kyv.js} +243 -243
  5. package/dist/{@react-select-Cas7oOFN.js → @react-select-DMzK6fkF.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-DRihF7_6.js → @react-virtualized-sticky-tree-Ck5oyLp9.js} +1 -1
  7. package/dist/{@vendor-xG1dUtf3.js → @vendor-DXbFZ041.js} +30911 -25065
  8. package/dist/Common/Api.d.ts +15 -0
  9. package/dist/Common/Constants.d.ts +94 -92
  10. package/dist/Common/DeleteCINodeButton/DeleteCINodeButton.d.ts +1 -1
  11. package/dist/Common/DeleteCINodeButton/types.d.ts +2 -1
  12. package/dist/Common/DeleteCINodeButton/utils.d.ts +5 -2
  13. package/dist/Common/GenericDescription/utils.d.ts +1 -0
  14. package/dist/Common/Helper.d.ts +0 -1
  15. package/dist/Common/Tooltip/constants.d.ts +1 -0
  16. package/dist/Common/Types.d.ts +4 -7
  17. package/dist/Common/index.d.ts +1 -1
  18. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +38 -0
  19. package/dist/Shared/Components/CustomInput/CustomInput.d.ts +1 -1
  20. package/dist/Shared/Components/CustomInput/types.d.ts +1 -5
  21. package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +1 -1
  22. package/dist/Shared/Components/FloatingVariablesSuggestions/service.d.ts +3 -1
  23. package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +2 -1
  24. package/dist/Shared/Components/GenericInfoCard/GenericInfoCard.component.d.ts +3 -0
  25. package/dist/Shared/Components/GenericInfoCard/index.d.ts +2 -0
  26. package/dist/Shared/Components/GenericInfoCard/types.d.ts +26 -0
  27. package/dist/Shared/Components/GenericInfoCard/utils.d.ts +2 -0
  28. package/dist/Shared/Components/GitProviderIcon/GitProviderIcon.d.ts +1 -1
  29. package/dist/Shared/Components/GitProviderIcon/types.d.ts +8 -3
  30. package/dist/Shared/Components/GitProviderIcon/utils.d.ts +2 -0
  31. package/dist/Shared/Components/GraphVisualizer/GraphVisualizer.d.ts +2 -0
  32. package/dist/Shared/Components/GraphVisualizer/components/BaseNode.d.ts +2 -0
  33. package/dist/Shared/Components/GraphVisualizer/components/DropdownNode.d.ts +3 -0
  34. package/dist/Shared/Components/GraphVisualizer/components/IconNode.d.ts +3 -0
  35. package/dist/Shared/Components/GraphVisualizer/components/TextNode.d.ts +3 -0
  36. package/dist/Shared/Components/GraphVisualizer/components/index.d.ts +4 -0
  37. package/dist/Shared/Components/GraphVisualizer/components/types.d.ts +19 -0
  38. package/dist/Shared/Components/GraphVisualizer/constants.d.ts +15 -0
  39. package/dist/Shared/Components/GraphVisualizer/index.d.ts +2 -0
  40. package/dist/Shared/Components/GraphVisualizer/types.d.ts +12 -0
  41. package/dist/Shared/Components/GraphVisualizer/utils.d.ts +17 -0
  42. package/dist/Shared/Components/Header/types.d.ts +1 -0
  43. package/dist/Shared/Components/Icon/Icon.d.ts +3 -9
  44. package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
  45. package/dist/Shared/Components/Icon/constants.d.ts +2 -0
  46. package/dist/Shared/Components/Icon/types.d.ts +2 -2
  47. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +1 -1
  48. package/dist/Shared/Components/ReactSelect/constants.d.ts +7 -15
  49. package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
  50. package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
  51. package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +2 -1
  52. package/dist/Shared/Components/index.d.ts +2 -6
  53. package/dist/Shared/Helpers.d.ts +0 -1
  54. package/dist/Shared/Providers/types.d.ts +1 -1
  55. package/dist/Shared/Services/app.service.d.ts +4 -1
  56. package/dist/Shared/Services/common.service.d.ts +2 -1
  57. package/dist/Shared/Services/index.d.ts +1 -0
  58. package/dist/Shared/Services/template.service.d.ts +2 -0
  59. package/dist/Shared/constants.d.ts +0 -3
  60. package/dist/Shared/types.d.ts +0 -33
  61. package/dist/Shared/validations.d.ts +1 -0
  62. package/dist/assets/@code-editor.css +1 -1
  63. package/dist/assets/@vendor.css +1 -1
  64. package/dist/assets/ic-card-stack.efd37c91.svg +3 -0
  65. package/dist/assets/{ic-caret-left.3df25a7c.svg → ic-copy.416d85f3.svg} +1 -1
  66. package/dist/assets/ic-new.2c179139.svg +3 -0
  67. package/dist/index.d.ts +8 -0
  68. package/dist/index.js +800 -806
  69. package/package.json +2 -2
  70. package/dist/Common/API/CoreAPI.d.ts +0 -17
  71. package/dist/Common/API/constants.d.ts +0 -70
  72. package/dist/Common/API/index.d.ts +0 -3
  73. package/dist/Common/API/types.d.ts +0 -23
  74. package/dist/Common/API/utils.d.ts +0 -12
  75. package/dist/Shared/Components/CountrySelect/CountrySelect.component.d.ts +0 -3
  76. package/dist/Shared/Components/CountrySelect/index.d.ts +0 -1
  77. package/dist/Shared/Components/CountrySelect/types.d.ts +0 -7
  78. package/dist/Shared/Components/CountrySelect/utils.d.ts +0 -4
  79. package/dist/Shared/Components/DevtronLicenseCard/DevtronLicenseCard.d.ts +0 -3
  80. package/dist/Shared/Components/DevtronLicenseCard/index.d.ts +0 -3
  81. package/dist/Shared/Components/DevtronLicenseCard/types.d.ts +0 -18
  82. package/dist/Shared/Components/DevtronLicenseCard/utils.d.ts +0 -6
  83. package/dist/Shared/Components/FlagImage/FlagImage.component.d.ts +0 -3
  84. package/dist/Shared/Components/FlagImage/index.d.ts +0 -1
  85. package/dist/Shared/Components/FlagImage/types.d.ts +0 -5
  86. package/dist/Shared/Components/LoginBanner/LoginBanner.d.ts +0 -2
  87. package/dist/Shared/Components/LoginBanner/constants.d.ts +0 -2
  88. package/dist/Shared/Components/LoginBanner/index.d.ts +0 -1
  89. package/dist/Shared/Components/LoginBanner/types.d.ts +0 -7
  90. package/dist/Shared/Components/PhoneInput/PhoneInput.component.d.ts +0 -3
  91. package/dist/Shared/Components/PhoneInput/index.d.ts +0 -1
  92. package/dist/Shared/Components/PhoneInput/types.d.ts +0 -11
  93. package/dist/assets/ic-book-open.e839bbda.svg +0 -3
  94. package/dist/assets/ic-chat-circle-dots.b5afd171.svg +0 -3
  95. package/dist/assets/ic-devtron-header-logo.7dc157aa.svg +0 -4
  96. package/dist/assets/ic-devtron.aca6cbaa.svg +0 -3
  97. package/dist/assets/ic-key.56432553.svg +0 -19
  98. package/dist/assets/ic-quote.68f093fe.svg +0 -3
  99. 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: 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;
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: 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;
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
- 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,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 {};
@@ -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,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;
@@ -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, inputRef: inputRefProp, ...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, ...props }: CustomInputProps) => JSX.Element;
3
3
  export default CustomInput;
@@ -1,4 +1,4 @@
1
- import { InputHTMLAttributes, MutableRefObject } from 'react';
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
  /**
@@ -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;
@@ -0,0 +1,3 @@
1
+ import { GenericInfoCardProps } from './types';
2
+ declare const GenericInfoCard: ({ title, description, author, isLoading, borderVariant, Icon, onClick, linkProps, }: GenericInfoCardProps) => JSX.Element;
3
+ export default GenericInfoCard;
@@ -0,0 +1,2 @@
1
+ export { type GenericInfoCardProps, GenericInfoCardBorderVariant } from './types';
2
+ export { default as GenericInfoCard } from './GenericInfoCard.component';
@@ -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 {};
@@ -0,0 +1,2 @@
1
+ import { GenericInfoCardBorderVariant } from './types';
2
+ export declare const getClassNameForBorderVariant: (variant: GenericInfoCardBorderVariant) => "" | "dc__border-n1";
@@ -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 interface GitProviderIconProps {
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,2 @@
1
+ import { IconName } from '../Icon';
2
+ export declare const getGitIconName: (repoUrl: string) => IconName;
@@ -0,0 +1,2 @@
1
+ import { GraphVisualizerProps } from './types';
2
+ export declare const GraphVisualizer: ({ nodes: initialNodes, edges: initialEdges, setNodes, setEdges, }: GraphVisualizerProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { BaseNodeProps } from './types';
2
+ export declare const BaseNode: ({ id, className, isConnectable, children }: BaseNodeProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { NodeProps } from '@xyflow/react';
2
+ import { DropdownNodeProps } from './types';
3
+ export declare const DropdownNode: ({ id, data, isConnectable }: NodeProps<DropdownNodeProps>) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { NodeProps } from '@xyflow/react';
2
+ import { IconNodeProps } from './types';
3
+ export declare const IconNode: ({ data, id, isConnectable }: NodeProps<IconNodeProps>) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { NodeProps } from '@xyflow/react';
2
+ import { TextNodeProps } from './types';
3
+ export declare const TextNode: ({ id, data, isConnectable }: NodeProps<TextNodeProps>) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ export * from './IconNode';
2
+ export * from './TextNode';
3
+ export * from './DropdownNode';
4
+ export * from './types';
@@ -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,2 @@
1
+ export * from './GraphVisualizer';
2
+ export type { GraphVisualizerProps, GraphVisualizerNode, GraphVisualizerEdge } from './types';
@@ -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[];
@@ -46,4 +46,5 @@ export interface HelpOptionType {
46
46
  name: string;
47
47
  link: string;
48
48
  icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
49
+ showSeparator?: boolean;
49
50
  }