@devtron-labs/devtron-fe-common-lib 1.6.0-patch-2-beta-1 → 1.6.0-patch-2-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.
@@ -1,8 +1,8 @@
1
- import { j as t, J as $ } from "./@vendor-Ci3Uw6V9.js";
1
+ import { j as t, J as $ } from "./@vendor-BJDnig46.js";
2
2
  import A, { forwardRef as E } from "react";
3
3
  import L, { getDefaultRegistry as D } from "@rjsf/core";
4
4
  import H from "@rjsf/validator-ajv8";
5
- import { T, c as U, a as k, i as J, b as y, d as S } from "./@code-editor-DKgKRU7L.js";
5
+ import { T, c as U, a as k, i as J, b as y, d as S } from "./@code-editor-DGAw6jVX.js";
6
6
  import M, { components as B } from "react-select";
7
7
  import { ReactComponent as V } from "./assets/ic-chevron-down.fc70d7a7.svg";
8
8
  import { getUiOptions as C, getTemplate as I, getSubmitButtonOptions as W, ADDITIONAL_PROPERTY_FLAG as P, errorId as q, englishStringTranslator as K, TranslatableString as Y, titleId as z, canExpand as G, deepEquals as Q } from "@rjsf/utils";
@@ -1,4 +1,4 @@
1
- import { t as ct, v as m, w as I, x as Yr, y as we, z as T, B as at, C as zt, E as ae, F as Xe, G as J, I as kr, K as Qn, L as Xr, N as ti, O as ei, S as ri, T as ni, U as ii, V as Wr, W as ai, X as oi, Y as si, Z as ui, $ as li, a0 as fi, a1 as ci, a2 as yt, a3 as k, a4 as pe, a5 as Zr, a6 as vi, a7 as di, a8 as W, a9 as $, aa as pi, ab as he, ac as Dt, ad as hi, ae as mi, af as $r, ag as Mt, ah as O, ai as me, aj as gi, ak as oe, al as yi } from "./@vendor-Ci3Uw6V9.js";
1
+ import { t as ct, v as m, w as I, x as Yr, y as we, z as T, B as at, C as zt, E as ae, F as Xe, G as J, I as kr, K as Qn, L as Xr, N as ti, O as ei, S as ri, T as ni, U as ii, V as Wr, W as ai, X as oi, Y as si, Z as ui, $ as li, a0 as fi, a1 as ci, a2 as yt, a3 as k, a4 as pe, a5 as Zr, a6 as vi, a7 as di, a8 as W, a9 as $, aa as pi, ab as he, ac as Dt, ad as hi, ae as mi, af as $r, ag as Mt, ah as O, ai as me, aj as gi, ak as oe, al as yi } from "./@vendor-BJDnig46.js";
2
2
  import * as K from "react";
3
3
  import Ee, { createContext as bt, useContext as F, useLayoutEffect as Pi, useEffect as G, useState as qr, useRef as q, useCallback as ge, useMemo as It, forwardRef as bi, createElement as Vi, cloneElement as Ti, Children as Si, isValidElement as xi } from "react";
4
4
  var We = "production", Le = typeof process > "u" || process.env === void 0 ? We : process.env.NODE_ENV || We, Q = function(t) {
@@ -1,5 +1,5 @@
1
1
  import Te from "react";
2
- import { am as xe, an as we, ao as ve, ap as lr, aq as Le, ar as Je, as as tt, at, au as et, av as lt, aw as rt, ax as Xn, ay as sr, az as Jn, aA as bt, aB as Go, aC as dr, aD as eo, aE as to, aF as ao, aG as $o, aH as Yo, aI as ur, aJ as Fe, aK as Rt, aL as Uo, aM as cr, aN as Qo, aO as Cr, aP as Zo, aQ as Xo, aR as Jo } from "./@vendor-Ci3Uw6V9.js";
2
+ import { am as xe, an as we, ao as ve, ap as lr, aq as Le, ar as Je, as as tt, at, au as et, av as lt, aw as rt, ax as Xn, ay as sr, az as Jn, aA as bt, aB as Go, aC as dr, aD as eo, aE as to, aF as ao, aG as $o, aH as Yo, aI as ur, aJ as Fe, aK as Rt, aL as Uo, aM as cr, aN as Qo, aO as Cr, aP as Zo, aQ as Xo, aR as Jo } from "./@vendor-BJDnig46.js";
3
3
  import { r as Ne, g as ei, h as ti } from "./@moment-C_WeV3Af.js";
4
4
  import './assets/@react-dates.css';var ro = {}, Wt = {}, jt = {}, Mr;
5
5
  function Ve() {
@@ -1,4 +1,4 @@
1
- import { aS as xt, aT as Bt, aU as Ft, aV as v, aW as U, aX as xe, aI as re, aY as h, aQ as f, aZ as Y, a_ as Vt, a$ as Ue, b0 as Et, b1 as yt, b2 as Wt, b3 as Xt, b4 as Zt, b5 as ne } from "./@vendor-Ci3Uw6V9.js";
1
+ import { aS as xt, aT as Bt, aU as Ft, aV as v, aW as U, aX as xe, aI as re, aY as h, aQ as f, aZ as Y, a_ as Vt, a$ as Ue, b0 as Et, b1 as yt, b2 as Wt, b3 as Xt, b4 as Zt, b5 as ne } from "./@vendor-BJDnig46.js";
2
2
  import * as y from "react";
3
3
  import { useContext as Nt, useRef as j, useState as ee, createContext as St, useMemo as q, useCallback as D, Component as Rt, Fragment as Be, useEffect as Qe, forwardRef as Ht } from "react";
4
4
  import { createPortal as Tt } from "react-dom";
@@ -2,7 +2,7 @@ var v = Object.defineProperty;
2
2
  var E = (a, h, e) => h in a ? v(a, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[h] = e;
3
3
  var f = (a, h, e) => E(a, typeof h != "symbol" ? h + "" : h, e);
4
4
  import u, { createRef as k } from "react";
5
- import { b6 as x } from "./@vendor-Ci3Uw6V9.js";
5
+ import { b6 as x } from "./@vendor-BJDnig46.js";
6
6
  const b = () => typeof navigator < "u" && /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor) ? "-webkit-sticky" : "sticky";
7
7
  var g;
8
8
  (function(a) {
@@ -5635,7 +5635,6 @@ var C$ = function(e, t) {
5635
5635
  );
5636
5636
  });
5637
5637
  }, J4 = /* @__PURE__ */ C$(/* @__PURE__ */ T$(bo));
5638
- let eW = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((t, r) => (r &= 63, r < 36 ? t += r.toString(36) : r < 62 ? t += (r - 26).toString(36).toUpperCase() : r > 62 ? t += "-" : t += "_", t), "");
5639
5638
  function jp() {
5640
5639
  return jp = Object.assign ? Object.assign.bind() : function(e) {
5641
5640
  for (var t = 1; t < arguments.length; t++) {
@@ -5685,7 +5684,7 @@ function Kv(e, t) {
5685
5684
  }
5686
5685
  return r;
5687
5686
  }
5688
- function tW(e) {
5687
+ function eW(e) {
5689
5688
  for (var t = 1; t < arguments.length; t++) {
5690
5689
  var r = arguments[t] != null ? arguments[t] : {};
5691
5690
  t % 2 ? Kv(Object(r), !0).forEach(function(n) {
@@ -5696,7 +5695,7 @@ function tW(e) {
5696
5695
  }
5697
5696
  return e;
5698
5697
  }
5699
- function rW(e, t) {
5698
+ function tW(e, t) {
5700
5699
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
5701
5700
  }
5702
5701
  function Zv(e, t) {
@@ -5705,7 +5704,7 @@ function Zv(e, t) {
5705
5704
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, rx(n.key), n);
5706
5705
  }
5707
5706
  }
5708
- function nW(e, t, r) {
5707
+ function rW(e, t, r) {
5709
5708
  return t && Zv(e.prototype, t), r && Zv(e, r), Object.defineProperty(e, "prototype", {
5710
5709
  writable: !1
5711
5710
  }), e;
@@ -5715,7 +5714,7 @@ function qa(e, t) {
5715
5714
  return r.__proto__ = n, r;
5716
5715
  }, qa(e, t);
5717
5716
  }
5718
- function iW(e, t) {
5717
+ function nW(e, t) {
5719
5718
  if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
5720
5719
  e.prototype = Object.create(t && t.prototype, {
5721
5720
  constructor: {
@@ -5751,7 +5750,7 @@ function $$(e, t) {
5751
5750
  if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
5752
5751
  return A$(e);
5753
5752
  }
5754
- function oW(e) {
5753
+ function iW(e) {
5755
5754
  var t = nx();
5756
5755
  return function() {
5757
5756
  var r, n = La(e);
@@ -6875,7 +6874,7 @@ function yx() {
6875
6874
  }(fu)), fu.exports;
6876
6875
  }
6877
6876
  yx();
6878
- var aW = function(t, r) {
6877
+ var oW = function(t, r) {
6879
6878
  var n = arguments;
6880
6879
  if (r == null || !Jh.call(r, "css"))
6881
6880
  return nr.createElement.apply(void 0, n);
@@ -6890,7 +6889,7 @@ function ID() {
6890
6889
  t[r] = arguments[r];
6891
6890
  return qi(t);
6892
6891
  }
6893
- var sW = function() {
6892
+ var aW = function() {
6894
6893
  var t = ID.apply(void 0, arguments), r = "animation-" + t.name;
6895
6894
  return {
6896
6895
  name: r,
@@ -6958,7 +6957,7 @@ const FD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6958
6957
  __proto__: null,
6959
6958
  default: BD
6960
6959
  }, Symbol.toStringTag, { value: "Module" }));
6961
- function uW(e, t) {
6960
+ function sW(e, t) {
6962
6961
  return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
6963
6962
  raw: {
6964
6963
  value: Object.freeze(t)
@@ -7167,7 +7166,7 @@ function JD(e, t) {
7167
7166
  }
7168
7167
  return a(!0), o;
7169
7168
  }
7170
- function cW(e, t, r, n) {
7169
+ function uW(e, t, r, n) {
7171
7170
  n === void 0 && (n = {});
7172
7171
  const {
7173
7172
  ancestorScroll: i = !0,
@@ -7203,7 +7202,7 @@ function cW(e, t, r, n) {
7203
7202
  }), f?.(), (y = p) == null || y.disconnect(), p = null, s && cancelAnimationFrame(g);
7204
7203
  };
7205
7204
  }
7206
- var lW = vo, dy = Number.isNaN || function(t) {
7205
+ var cW = vo, dy = Number.isNaN || function(t) {
7207
7206
  return typeof t == "number" && t !== t;
7208
7207
  };
7209
7208
  function eM(e, t) {
@@ -7298,6 +7297,7 @@ function Sx() {
7298
7297
  }(du)), du.exports;
7299
7298
  }
7300
7299
  Sx();
7300
+ let lW = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((t, r) => (r &= 63, r < 36 ? t += r.toString(36) : r < 62 ? t += (r - 26).toString(36).toUpperCase() : r > 62 ? t += "-" : t += "_", t), "");
7301
7301
  function Ox(e) {
7302
7302
  var t, r, n = "";
7303
7303
  if (typeof e == "string" || typeof e == "number") n += e;
@@ -28832,14 +28832,14 @@ export {
28832
28832
  jp as aQ,
28833
28833
  A$ as aR,
28834
28834
  ii as aS,
28835
- sW as aT,
28836
- uW as aU,
28837
- tW as aV,
28835
+ aW as aT,
28836
+ sW as aU,
28837
+ eW as aV,
28838
28838
  LD as aW,
28839
- lW as aX,
28840
- aW as aY,
28839
+ cW as aX,
28840
+ oW as aY,
28841
28841
  BD as aZ,
28842
- cW as a_,
28842
+ uW as a_,
28843
28843
  Fk as aa,
28844
28844
  kk as ab,
28845
28845
  Fi as ac,
@@ -28868,10 +28868,10 @@ export {
28868
28868
  UW as az,
28869
28869
  e6 as b,
28870
28870
  rM as b0,
28871
- iW as b1,
28872
- oW as b2,
28873
- nW as b3,
28874
- rW as b4,
28871
+ nW as b1,
28872
+ iW as b2,
28873
+ rW as b3,
28874
+ tW as b4,
28875
28875
  N$ as b5,
28876
28876
  uT as b6,
28877
28877
  mW as c,
@@ -28885,7 +28885,7 @@ export {
28885
28885
  wy as k,
28886
28886
  EH as l,
28887
28887
  Z4 as m,
28888
- eW as n,
28888
+ lW as n,
28889
28889
  vE as o,
28890
28890
  aR as p,
28891
28891
  Mh as q,
@@ -30,98 +30,99 @@ export declare const PATTERNS: {
30
30
  ALPHANUMERIC_WITH_SPECIAL_CHAR_AND_SLASH: RegExp;
31
31
  };
32
32
  export declare const URLS: {
33
- LOGIN_SSO: string;
34
- PERMISSION_GROUPS: string;
35
- APP: string;
36
- APP_LIST: string;
37
- CHARTS_DISCOVER: string;
38
- JOB: string;
39
- CREATE_JOB: string;
40
- GETTING_STARTED: string;
41
- STACK_MANAGER_ABOUT: string;
42
- APP_LIST_HELM: string;
43
- APP_CI_DETAILS: string;
44
- LOGS: string;
45
- CREATE: string;
46
- RELEASES: string;
47
- DEVTRON_CHARTS: string;
48
- APP_DEPLOYMNENT_HISTORY: string;
49
- APP_DETAILS: string;
50
- APP_DETAILS_K8: string;
51
- DETAILS: string;
52
- CD_DETAILS: string;
53
- APP_TRIGGER: string;
54
- GLOBAL_CONFIG_DOCKER: string;
55
- DEPLOYMENT_HISTORY_CONFIGURATIONS: string;
56
- GLOBAL_CONFIG_SCOPED_VARIABLES: string;
57
- GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: string;
58
- NETWORK_STATUS_INTERFACE: string;
59
- CONFIG_DRIFT: string;
60
- RESOURCE_BROWSER: string;
61
- COMPARE_CLUSTERS: string;
62
- APP_CONFIG: string;
63
- GLOBAL_CONFIG: string;
64
- GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: string;
65
- GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: string;
66
- GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: 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 NETWORK_STATUS_INTERFACE: "/network-status-interface";
59
+ readonly CONFIG_DRIFT: "config-drift";
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 GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
65
+ readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
66
+ readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
67
67
  };
68
68
  export declare const ROUTES: {
69
- APP: string;
70
- APP_ARTIFACT_PROMOTE_MATERIAL: string;
71
- APP_TEMPLATE_DATA: string;
72
- PROJECT_LIST_MIN: string;
73
- USER_CHECK_ROLE: string;
74
- IMAGE_TAGGING: string;
75
- CREATE_RESOURCE: string;
76
- K8S_RESOURCE_CREATE: string;
77
- CI_CONFIG_GET: string;
78
- CD_MATERIAL_GET: string;
79
- DEPLOYMENT_TEMPLATE_LIST: string;
80
- INFRA_CONFIG_PROFILE: string;
81
- SCAN_RESULT: string;
82
- NOTIFIER: string;
83
- APP_LIST: string;
84
- TELEMETRY_EVENT: string;
85
- SERVER_INFO_API: string;
86
- ATTRIBUTES_USER: string;
87
- UPDATE: string;
88
- ENVIRONMENT_LIST_MIN: string;
89
- CLUSTER: string;
90
- API_RESOURCE: string;
91
- GVK: string;
92
- NAMESPACE: string;
93
- CLUSTER_NOTE: string;
94
- APPLICATION_NOTE: string;
95
- GIT_HOST_EVENT: string;
96
- HELM_DEPLOYMENT_STATUS_TIMELINE_INSTALLED_APP: string;
97
- DEPLOYMENT_STATUS: string;
98
- MANUAL_SYNC: string;
99
- CD_CONFIG: string;
100
- CONFIG_CD_PIPELINE: string;
101
- MODULE_CONFIGURED: string;
102
- RESOURCE_HISTORY_DEPLOYMENT: string;
103
- ATTRIBUTES: string;
104
- ATTRIBUTES_CREATE: string;
105
- ATTRIBUTES_UPDATE: string;
106
- APP_LIST_MIN: string;
107
- CLUSTER_LIST_MIN: string;
108
- CLUSTER_LIST_RAW: string;
109
- PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
110
- PLUGIN_GLOBAL_LIST_V2: string;
111
- PLUGIN_GLOBAL_LIST_TAGS: string;
112
- PLUGIN_LIST_MIN: string;
113
- DEPLOYMENT_CHARTS_LIST: string;
114
- USER_LIST_MIN: string;
115
- CONFIG_DATA: string;
116
- K8S_RESOURCE: string;
117
- K8S_RESOURCE_LIST: string;
118
- FILE_UPLOAD: string;
119
- PLUGIN_GLOBAL_VARIABLES: string;
120
- CONFIG_COMPARE_SECRET: string;
121
- SCOPED_GLOBAL_VARIABLES: string;
122
- CD_TRIGGER_POST: string;
123
- DELETE_RESOURCE: string;
124
- NODE_CAPACITY: string;
69
+ readonly APP: "app";
70
+ readonly APP_ARTIFACT_PROMOTE_MATERIAL: "app/artifact/promotion-request/material";
71
+ readonly APP_TEMPLATE_DATA: "app/template/data";
72
+ readonly PROJECT_LIST_MIN: "team/autocomplete";
73
+ readonly USER_CHECK_ROLE: "user/check/roles";
74
+ readonly IMAGE_TAGGING: "app/image-tagging";
75
+ readonly CREATE_RESOURCE: "k8s/resource/create";
76
+ readonly K8S_RESOURCE_CREATE: "k8s/resources/apply";
77
+ readonly CI_CONFIG_GET: "app/ci-pipeline";
78
+ readonly CD_MATERIAL_GET: "app/cd-pipeline";
79
+ readonly DEPLOYMENT_TEMPLATE_LIST: "app/template/list";
80
+ readonly INFRA_CONFIG_PROFILE: "infra-config/profile";
81
+ readonly SCAN_RESULT: "scan-result";
82
+ readonly NOTIFIER: "notification";
83
+ readonly APP_LIST: "app/list";
84
+ readonly TELEMETRY_EVENT: "telemetry/event";
85
+ readonly SERVER_INFO_API: "server";
86
+ readonly ATTRIBUTES_USER: "attributes/user";
87
+ readonly UPDATE: "update";
88
+ readonly ENVIRONMENT_LIST_MIN: "env/autocomplete";
89
+ readonly CLUSTER: "cluster";
90
+ readonly API_RESOURCE: "k8s/api-resources";
91
+ readonly GVK: "gvk";
92
+ readonly NAMESPACE: "env/namespace";
93
+ readonly CLUSTER_NOTE: "cluster/note";
94
+ readonly APPLICATION_NOTE: "app/note";
95
+ readonly GIT_HOST_EVENT: "git/host/event";
96
+ readonly HELM_DEPLOYMENT_STATUS_TIMELINE_INSTALLED_APP: "app-store/deployment-status/timeline";
97
+ readonly DEPLOYMENT_STATUS: "app/deployment-status/timeline";
98
+ readonly MANUAL_SYNC: "app/deployment-status/manual-sync";
99
+ readonly CD_CONFIG: "app/cd-pipeline";
100
+ readonly CONFIG_CD_PIPELINE: "config/cd-pipeline";
101
+ readonly MODULE_CONFIGURED: "module/config";
102
+ readonly RESOURCE_HISTORY_DEPLOYMENT: "resource/history/deployment";
103
+ readonly ATTRIBUTES: "attributes";
104
+ readonly ATTRIBUTES_CREATE: "attributes/create";
105
+ readonly ATTRIBUTES_UPDATE: "attributes/update";
106
+ readonly APP_LIST_MIN: "app/min";
107
+ readonly CLUSTER_LIST_MIN: "cluster/autocomplete";
108
+ readonly CLUSTER_LIST_RAW: "k8s/capacity/cluster/list/raw";
109
+ readonly PLUGIN_GLOBAL_LIST_DETAIL_V2: "plugin/global/list/detail/v2";
110
+ readonly PLUGIN_GLOBAL_LIST_V2: "plugin/global/list/v2";
111
+ readonly PLUGIN_GLOBAL_LIST_TAGS: "plugin/global/list/tags";
112
+ readonly PLUGIN_LIST_MIN: "plugin/global/list/v2/min";
113
+ readonly DEPLOYMENT_CHARTS_LIST: "deployment/template/fetch";
114
+ readonly USER_LIST_MIN: "user/list/min";
115
+ readonly CONFIG_DATA: "config/data";
116
+ readonly K8S_RESOURCE: "k8s/resource";
117
+ readonly K8S_RESOURCE_LIST: "k8s/resource/list";
118
+ readonly FILE_UPLOAD: "file/upload";
119
+ readonly PLUGIN_GLOBAL_VARIABLES: "plugin/global/list/global-variable";
120
+ readonly CONFIG_COMPARE_SECRET: "config/compare/secret";
121
+ readonly SCOPED_GLOBAL_VARIABLES: "global/variables";
122
+ readonly CD_TRIGGER_POST: "app/cd-pipeline/trigger";
123
+ readonly DELETE_RESOURCE: "k8s/resource/delete";
124
+ readonly NODE_CAPACITY: "k8s/capacity/node";
125
+ readonly RESOURCE_TEMPLATE: "resource/template";
125
126
  };
126
127
  export declare enum KEY_VALUE {
127
128
  KEY = "key",
@@ -46,6 +46,7 @@ export declare enum GetTemplateAPIRouteType {
46
46
  CD_DEPLOY_CONFIG = "cd-deploy-config",
47
47
  CD_ENV_LIST = "cd-env-list",
48
48
  CONFIG_DEPLOYMENT_TEMPLATE = "config/deployment-template",
49
+ CONFIG_DATA = "config-data",
49
50
  CONFIG_CM = "config/config-map",
50
51
  CONFIG_CS = "config/secret",
51
52
  WORKFLOW_LIST = "workflow/list",
@@ -1,3 +1,3 @@
1
1
  import { WorkflowOptionsModalProps } from './types';
2
- declare const WorkflowOptionsModal: ({ handleCloseWorkflowOptionsModal, addCIPipeline, addWebhookCD, addLinkedCD, showLinkedCDSource, changeCIPayload, workflows, getWorkflows, resetChangeCIPayload, linkedCDSourceVariant, isAppGroup, getTemplateAPIRoute, isTemplateView, }: Readonly<WorkflowOptionsModalProps>) => JSX.Element;
2
+ declare const WorkflowOptionsModal: ({ handleCloseWorkflowOptionsModal, addCIPipeline, addWebhookCD, addLinkedCD, showLinkedCDSource, changeCIPayload, workflows, getWorkflows, resetChangeCIPayload, linkedCDSourceVariant, isAppGroup, isTemplateView, }: Readonly<WorkflowOptionsModalProps>) => JSX.Element;
3
3
  export default WorkflowOptionsModal;
@@ -1,4 +1,4 @@
1
- import { AppConfigProps, GetTemplateAPIRouteProps } from '../../../Pages/index';
1
+ import { AppConfigProps } from '../../../Pages/index';
2
2
  import { ChangeCIPayloadType, CIPipelineNodeType, WorkflowType } from '../../types';
3
3
  interface LinkedCDSourceVariant {
4
4
  title: string;
@@ -25,6 +25,5 @@ export interface WorkflowOptionsModalProps extends Required<Pick<AppConfigProps,
25
25
  getWorkflows?: () => void;
26
26
  linkedCDSourceVariant?: LinkedCDSourceVariant;
27
27
  isAppGroup?: boolean;
28
- getTemplateAPIRoute: (props: GetTemplateAPIRouteProps) => string;
29
28
  }
30
29
  export {};
@@ -1,3 +1,4 @@
1
+ import { AppConfigProps } from '../../Pages/index';
1
2
  import { ResponseType } from '../../Common';
2
3
  import { CIMaterialInfoType, GetCITriggerInfoParamsType, AppEnvDeploymentConfigDTO, AppEnvDeploymentConfigPayloadType } from './app.types';
3
4
  export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<CIMaterialInfoType>;
@@ -5,8 +6,10 @@ export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => P
5
6
  * The only difference between this and getCITriggerInfo is it doesn't have env and trigger related meta info
6
7
  */
7
8
  export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, "ciArtifactId">) => Promise<CIMaterialInfoType>;
8
- export declare const getAppEnvDeploymentConfig: ({ params, signal, }: {
9
+ export declare const getAppEnvDeploymentConfig: ({ params, signal, isTemplateView, appId, }: {
9
10
  params: AppEnvDeploymentConfigPayloadType;
10
11
  signal?: AbortSignal;
12
+ isTemplateView: AppConfigProps["isTemplateView"];
13
+ appId: string | number | null;
11
14
  }) => Promise<ResponseType<AppEnvDeploymentConfigDTO>>;
12
15
  export declare const getCompareSecretsData: (params: AppEnvDeploymentConfigPayloadType[]) => Promise<AppEnvDeploymentConfigDTO[]>;
@@ -1,6 +1,5 @@
1
1
  import { AppConfigProps } from '../../Pages/index';
2
- import { WorkflowOptionsModalProps } from '@Shared/Components/WorkflowOptionsModal/types';
3
2
  import { GetPolicyApiUrlProps, GetResourceApiUrlProps } from './types';
4
3
  export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, queryParams }: GetResourceApiUrlProps<T>) => string;
5
4
  export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
6
- export declare const saveCDPipeline: (request: any, { getTemplateAPIRoute, isTemplateView, }: Pick<WorkflowOptionsModalProps, "getTemplateAPIRoute"> & Required<Pick<AppConfigProps, "isTemplateView">>) => Promise<import('../../Common').ResponseType<any>>;
5
+ export declare const saveCDPipeline: (request: any, { isTemplateView }: Required<Pick<AppConfigProps, "isTemplateView">>) => Promise<import('../../Common').ResponseType<any>>;
@@ -4,3 +4,4 @@ export * from './app.service';
4
4
  export * from './common.service';
5
5
  export * from './ToastManager';
6
6
  export * from './utils';
7
+ export * from './template.service';
@@ -0,0 +1,2 @@
1
+ import { GetTemplateAPIRouteProps } from '../../Pages/index';
2
+ export declare const getTemplateAPIRoute: ({ type, queryParams: { id, ...restQueryParams } }: GetTemplateAPIRouteProps) => string;