@devtron-labs/devtron-fe-common-lib 1.2.8-beta-2 → 1.2.9-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-BEceVER4.js → @code-editor-09h2eIN6.js} +5766 -5608
- package/dist/{@common-rjsf--SfC2_Jn.js → @common-rjsf-4LmtVSLe.js} +2 -2
- package/dist/{@framer-motion-DHzxZlAx.js → @framer-motion-B6d1rF48.js} +1 -1
- package/dist/{@react-dates-BZU5RIqe.js → @react-dates-DUsXL6Ns.js} +1 -1
- package/dist/{@react-select-Dx53b3Wk.js → @react-select--zt85pEZ.js} +1 -1
- package/dist/{@vendor-BG3OpQCq.js → @vendor-DI8rS9OQ.js} +94 -95
- package/dist/Common/CIPipeline.Types.d.ts +41 -5
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +1 -2
- package/dist/Common/CodeEditor/types.d.ts +1 -2
- package/dist/Common/Common.service.d.ts +9 -3
- package/dist/Common/Constants.d.ts +4 -3
- package/dist/Common/Helper.d.ts +3 -3
- package/dist/Common/Markdown/MarkDown.d.ts +1 -1
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/RJSF/index.d.ts +1 -1
- package/dist/Common/Types.d.ts +15 -3
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +3 -21
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +1 -2
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/index.d.ts +0 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +0 -7
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/services.d.ts +7 -0
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/components/FileConfigTippy.d.ts +2 -0
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/components/SystemVariableIcon.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/components/index.d.ts +2 -0
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/constants.d.ts +3 -0
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/index.d.ts +3 -0
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/services.d.ts +7 -0
- package/dist/Pages/Applications/DevtronApps/Details/index.d.ts +1 -0
- package/dist/Pages/index.d.ts +0 -1
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +0 -6
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +5 -1
- package/dist/Shared/Components/FileUpload/FileUpload.d.ts +2 -0
- package/dist/Shared/Components/FileUpload/index.d.ts +2 -0
- package/dist/Shared/Components/FileUpload/types.d.ts +8 -0
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +5 -0
- package/dist/Shared/Components/index.d.ts +1 -1
- package/dist/Shared/Helpers.d.ts +3 -5
- package/dist/Shared/Hooks/useForm/useForm.d.ts +0 -4
- package/dist/Shared/Services/app.types.d.ts +0 -4
- package/dist/Shared/types.d.ts +30 -6
- package/dist/assets/ic-cloud-upload.18066e05.svg +3 -0
- package/dist/assets/ic-file-code.21a1f748.svg +7 -0
- package/dist/assets/ic-stamp.8689f42d.svg +9 -0
- package/dist/assets/ic-var-initial.afdaa854.svg +25 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.js +543 -539
- package/package.json +1 -1
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/index.d.ts +0 -2
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/types.d.ts +0 -2
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/utils.d.ts +0 -6
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/index.d.ts +0 -1
- package/dist/Pages/App/AppConfiguration/index.d.ts +0 -1
- package/dist/Pages/App/index.d.ts +0 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/ConfigMapSecret/index.d.ts +0 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/ConfigMapSecret/utils.d.ts +0 -3
- package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +0 -2
- package/dist/Shared/Components/EnterpriseTag/index.d.ts +0 -1
- package/dist/assets/ic-file-code.80000c9b.svg +0 -7
- package/dist/assets/ic-medal.4a7e5cbc.svg +0 -3
- package/dist/assets/ic-stamp.526499d2.svg +0 -7
@@ -1,8 +1,8 @@
|
|
1
|
-
import { j as n, J as A } from "./@vendor-
|
1
|
+
import { j as n, J as A } from "./@vendor-DI8rS9OQ.js";
|
2
2
|
import E, { forwardRef as $ } from "react";
|
3
3
|
import L, { getDefaultRegistry as k } from "@rjsf/core";
|
4
4
|
import D from "@rjsf/validator-ajv8";
|
5
|
-
import { T as y, c as H, a as J, d as w } from "./@code-editor-
|
5
|
+
import { T as y, c as H, a as J, d as w } from "./@code-editor-09h2eIN6.js";
|
6
6
|
import M, { components as O } from "react-select";
|
7
7
|
import { getUiOptions as B, getTemplate as I, getSubmitButtonOptions as U, ADDITIONAL_PROPERTY_FLAG as P, errorId as W, englishStringTranslator as V, TranslatableString as q, titleId as K, canExpand as Y, deepEquals as z } from "@rjsf/utils";
|
8
8
|
import { ReactComponent as G } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { g as ct,
|
1
|
+
import { g as ct, _ as m, l as I, n as Yr, o as we, p as T, q as at, r as zt, t as ae, v as Xe, w as J, x as kr, y as Qn, z as Xr, B as ti, C as ei, D as ri, E as ni, F as ii, G as Wr, H as ai, I as oi, K as si, L as ui, M as li, N as fi, O as ci, P as yt, S as k, T as pe, U as Zr, V as vi, W as di, X as W, Y as $, Z as pi, $ as he, a0 as Dt, a1 as hi, a2 as mi, a3 as $r, a4 as Mt, a5 as O, a6 as me, a7 as gi, a8 as oe, a9 as yi } from "./@vendor-DI8rS9OQ.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 {
|
2
|
+
import { aa as xe, ab as we, ac as ve, ad as lr, ae as Le, af as Je, ag as tt, ah as at, ai as et, aj as lt, ak as rt, al as Xn, am as sr, an as Jn, ao as bt, ap as Go, aq as dr, ar as eo, as as to, at as ao, au as $o, av as Yo, aw as ur, ax as Fe, ay as Rt, az as Uo, aA as cr, aB as Qo, aC as Cr, aD as Zo, aE as Xo, aF as Jo } from "./@vendor-DI8rS9OQ.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 {
|
1
|
+
import { aG as Gt, aH as xt, aI as Bt, aJ as v, aK as U, aL as xe, aw as re, aM as h, aE as f, aN as Y, aO as Ft, aP as je, aQ as Vt, aR as Et, aS as yt, aT as Wt, aU as Xt, aV as ne } from "./@vendor-DI8rS9OQ.js";
|
2
2
|
import * as y from "react";
|
3
3
|
import { useContext as Zt, useRef as j, useState as ee, createContext as Nt, useMemo as q, useCallback as D, Component as St, Fragment as Be, useEffect as Ue, forwardRef as Rt } from "react";
|
4
4
|
import { createPortal as Ht } from "react-dom";
|
@@ -21177,94 +21177,93 @@ De.parseInline;
|
|
21177
21177
|
Vt.parse;
|
21178
21178
|
Bt.lex;
|
21179
21179
|
export {
|
21180
|
-
|
21180
|
+
vC as $,
|
21181
21181
|
DI as A,
|
21182
|
-
|
21183
|
-
|
21184
|
-
|
21185
|
-
|
21186
|
-
|
21187
|
-
|
21188
|
-
|
21189
|
-
|
21182
|
+
hw as B,
|
21183
|
+
ZR as C,
|
21184
|
+
GI as D,
|
21185
|
+
QR as E,
|
21186
|
+
YI as F,
|
21187
|
+
JR as G,
|
21188
|
+
vw as H,
|
21189
|
+
XI as I,
|
21190
21190
|
_e as J,
|
21191
|
-
|
21192
|
-
|
21193
|
-
|
21194
|
-
|
21195
|
-
|
21196
|
-
|
21191
|
+
KI as K,
|
21192
|
+
ZI as L,
|
21193
|
+
QI as M,
|
21194
|
+
JI as N,
|
21195
|
+
sf as O,
|
21196
|
+
Jf as P,
|
21197
21197
|
ke as Q,
|
21198
21198
|
II as R,
|
21199
|
-
|
21200
|
-
|
21201
|
-
|
21202
|
-
|
21203
|
-
|
21204
|
-
|
21205
|
-
|
21206
|
-
|
21207
|
-
|
21199
|
+
_o as S,
|
21200
|
+
zI as T,
|
21201
|
+
Zf as U,
|
21202
|
+
tq as V,
|
21203
|
+
bC as W,
|
21204
|
+
kI as X,
|
21205
|
+
fC as Y,
|
21206
|
+
wC as Z,
|
21207
|
+
hh as _,
|
21208
21208
|
gI as a,
|
21209
|
-
|
21210
|
-
|
21211
|
-
|
21212
|
-
|
21213
|
-
|
21214
|
-
|
21215
|
-
|
21216
|
-
|
21217
|
-
|
21218
|
-
|
21219
|
-
|
21220
|
-
|
21221
|
-
|
21222
|
-
|
21223
|
-
|
21224
|
-
|
21225
|
-
|
21226
|
-
|
21227
|
-
|
21228
|
-
|
21229
|
-
|
21230
|
-
|
21231
|
-
|
21232
|
-
|
21233
|
-
|
21234
|
-
|
21235
|
-
|
21236
|
-
|
21237
|
-
|
21238
|
-
|
21239
|
-
|
21240
|
-
|
21241
|
-
|
21242
|
-
|
21243
|
-
|
21244
|
-
|
21245
|
-
|
21246
|
-
|
21247
|
-
|
21248
|
-
|
21249
|
-
|
21250
|
-
|
21251
|
-
|
21252
|
-
|
21253
|
-
|
21254
|
-
|
21255
|
-
|
21256
|
-
|
21257
|
-
|
21258
|
-
|
21259
|
-
|
21260
|
-
|
21261
|
-
|
21262
|
-
|
21263
|
-
|
21264
|
-
|
21265
|
-
|
21266
|
-
|
21267
|
-
vq as az,
|
21209
|
+
xn as a0,
|
21210
|
+
UI as a1,
|
21211
|
+
WI as a2,
|
21212
|
+
rq as a3,
|
21213
|
+
dC as a4,
|
21214
|
+
td as a5,
|
21215
|
+
ow as a6,
|
21216
|
+
nf as a7,
|
21217
|
+
eq as a8,
|
21218
|
+
NI as a9,
|
21219
|
+
yq as aA,
|
21220
|
+
dq as aB,
|
21221
|
+
pq as aC,
|
21222
|
+
gq as aD,
|
21223
|
+
vp as aE,
|
21224
|
+
lS as aF,
|
21225
|
+
rn as aG,
|
21226
|
+
PI as aH,
|
21227
|
+
RI as aI,
|
21228
|
+
EI as aJ,
|
21229
|
+
gT as aK,
|
21230
|
+
AI as aL,
|
21231
|
+
xI as aM,
|
21232
|
+
wT as aN,
|
21233
|
+
CI as aO,
|
21234
|
+
pT as aP,
|
21235
|
+
LT as aQ,
|
21236
|
+
SI as aR,
|
21237
|
+
TI as aS,
|
21238
|
+
OI as aT,
|
21239
|
+
_I as aU,
|
21240
|
+
hS as aV,
|
21241
|
+
w0 as aa,
|
21242
|
+
Xe as ab,
|
21243
|
+
To as ac,
|
21244
|
+
oq as ad,
|
21245
|
+
w1 as ae,
|
21246
|
+
MC as af,
|
21247
|
+
h0 as ag,
|
21248
|
+
iq as ah,
|
21249
|
+
NC as ai,
|
21250
|
+
HC as aj,
|
21251
|
+
a$ as ak,
|
21252
|
+
u$ as al,
|
21253
|
+
y$ as am,
|
21254
|
+
lq as an,
|
21255
|
+
sq as ao,
|
21256
|
+
YA as ap,
|
21257
|
+
uq as aq,
|
21258
|
+
cq as ar,
|
21259
|
+
S1 as as,
|
21260
|
+
aq as at,
|
21261
|
+
i$ as au,
|
21262
|
+
fq as av,
|
21263
|
+
uS as aw,
|
21264
|
+
Dt as ax,
|
21265
|
+
vq as ay,
|
21266
|
+
hq as az,
|
21268
21267
|
AE as b,
|
21269
21268
|
MI as c,
|
21270
21269
|
wI as d,
|
@@ -21275,19 +21274,19 @@ export {
|
|
21275
21274
|
bI as i,
|
21276
21275
|
nE as j,
|
21277
21276
|
hp as k,
|
21278
|
-
|
21277
|
+
jI as l,
|
21279
21278
|
De as m,
|
21280
|
-
|
21281
|
-
|
21282
|
-
|
21283
|
-
|
21284
|
-
|
21279
|
+
LI as n,
|
21280
|
+
Eo as o,
|
21281
|
+
VI as p,
|
21282
|
+
BI as q,
|
21283
|
+
FI as r,
|
21285
21284
|
D0 as s,
|
21286
|
-
|
21285
|
+
Q0 as t,
|
21287
21286
|
lb as u,
|
21288
|
-
|
21289
|
-
|
21290
|
-
|
21291
|
-
|
21292
|
-
|
21287
|
+
HI as v,
|
21288
|
+
X0 as w,
|
21289
|
+
sw as x,
|
21290
|
+
nq as y,
|
21291
|
+
XR as z
|
21293
21292
|
};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { DynamicDataTableCellValidationState } from '../Shared/Components';
|
1
2
|
export interface MaterialType {
|
2
3
|
name: string;
|
3
4
|
type: string;
|
@@ -70,11 +71,30 @@ export declare enum RefVariableStageType {
|
|
70
71
|
PRE_CI = "PRE_CI",
|
71
72
|
POST_CI = "POST_CI"
|
72
73
|
}
|
74
|
+
export interface FilePropertyType {
|
75
|
+
allowedExtensions: string[];
|
76
|
+
maxUploadSize: number;
|
77
|
+
}
|
78
|
+
export interface ConstraintType {
|
79
|
+
fileProperty: FilePropertyType;
|
80
|
+
}
|
81
|
+
export interface ValueConstraintType {
|
82
|
+
choices?: string[];
|
83
|
+
blockCustomValue?: boolean;
|
84
|
+
constraint?: ConstraintType;
|
85
|
+
}
|
86
|
+
export declare enum VariableTypeFormat {
|
87
|
+
STRING = "STRING",
|
88
|
+
NUMBER = "NUMBER",
|
89
|
+
BOOL = "BOOL",
|
90
|
+
DATE = "DATE",
|
91
|
+
FILE = "FILE"
|
92
|
+
}
|
73
93
|
export interface VariableType {
|
74
94
|
id: number;
|
75
95
|
name: string;
|
76
96
|
value: string;
|
77
|
-
format:
|
97
|
+
format: VariableTypeFormat;
|
78
98
|
description: string;
|
79
99
|
defaultValue: string;
|
80
100
|
allowEmptyValue: boolean;
|
@@ -83,6 +103,12 @@ export interface VariableType {
|
|
83
103
|
refVariableName: string;
|
84
104
|
refVariableStage?: RefVariableStageType;
|
85
105
|
variableStepIndexInPlugin?: number;
|
106
|
+
fileMountDir: string;
|
107
|
+
fileReferenceId?: number;
|
108
|
+
valueConstraintId?: number;
|
109
|
+
valueConstraint?: ValueConstraintType;
|
110
|
+
isRuntimeArg: boolean;
|
111
|
+
refVariableUsed: boolean;
|
86
112
|
}
|
87
113
|
interface CommandArgsMap {
|
88
114
|
command: string;
|
@@ -226,16 +252,26 @@ export interface ErrorObj {
|
|
226
252
|
isValid: boolean;
|
227
253
|
message: string | null;
|
228
254
|
}
|
255
|
+
export declare enum InputOutputVariablesHeaderKeys {
|
256
|
+
VARIABLE = "variable",
|
257
|
+
FORMAT = "format",
|
258
|
+
VALUE = "val"
|
259
|
+
}
|
260
|
+
export type InputOutputVariablesErrorObj = Record<InputOutputVariablesHeaderKeys, DynamicDataTableCellValidationState>;
|
229
261
|
export interface TaskErrorObj {
|
230
262
|
isValid: boolean;
|
231
263
|
name: ErrorObj;
|
232
264
|
inlineStepDetail?: {
|
233
|
-
inputVariables?:
|
234
|
-
outputVariables?:
|
265
|
+
inputVariables?: Record<number, InputOutputVariablesErrorObj>;
|
266
|
+
outputVariables?: Record<number, InputOutputVariablesErrorObj>;
|
267
|
+
isInputVariablesValid?: boolean;
|
268
|
+
isOutputVariablesValid?: boolean;
|
235
269
|
};
|
236
270
|
pluginRefStepDetail?: {
|
237
|
-
inputVariables?:
|
238
|
-
outputVariables?:
|
271
|
+
inputVariables?: Record<number, InputOutputVariablesErrorObj>;
|
272
|
+
outputVariables?: Record<number, InputOutputVariablesErrorObj>;
|
273
|
+
isInputVariablesValid?: boolean;
|
274
|
+
isOutputVariablesValid?: boolean;
|
239
275
|
};
|
240
276
|
}
|
241
277
|
export interface FormErrorObjectType {
|
@@ -32,5 +32,4 @@ export declare const CodeEditorReducer: (state: CodeEditorState, action: Action)
|
|
32
32
|
code: string;
|
33
33
|
noParsing: boolean;
|
34
34
|
};
|
35
|
-
export declare const
|
36
|
-
export declare const initialState: ({ mode, theme, value, diffView, noParsing, tabSize, }: CodeEditorInitialValueType) => CodeEditorState;
|
35
|
+
export declare const initialState: ({ mode, theme, value, diffView, noParsing, }: CodeEditorInitialValueType) => CodeEditorState;
|
@@ -28,7 +28,7 @@ interface CodeEditorBaseInterface {
|
|
28
28
|
validatorSchema?: any;
|
29
29
|
isKubernetes?: boolean;
|
30
30
|
cleanData?: boolean;
|
31
|
-
|
31
|
+
chartVersion?: any;
|
32
32
|
/**
|
33
33
|
* If true, disable the in-built search of monaco editor
|
34
34
|
* @default false
|
@@ -81,7 +81,6 @@ export interface CodeEditorInitialValueType {
|
|
81
81
|
theme?: string;
|
82
82
|
value: string;
|
83
83
|
noParsing?: boolean;
|
84
|
-
tabSize: number;
|
85
84
|
}
|
86
85
|
export interface CodeEditorState {
|
87
86
|
mode: MODES;
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { MutableRefObject } from 'react';
|
2
|
+
import { RuntimeParamsAPIResponseType, RuntimePluginVariables } from '../Shared/types';
|
3
|
+
import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, GlobalVariableOptionType } from './Types';
|
3
4
|
import { ApiResourceType } from '../Pages';
|
4
5
|
export declare const getTeamListMin: () => Promise<TeamList>;
|
5
6
|
interface UserRole extends ResponseType {
|
@@ -15,7 +16,7 @@ export declare const SourceTypeMap: {
|
|
15
16
|
};
|
16
17
|
export declare function getUserRole(appName?: string): Promise<UserRole>;
|
17
18
|
export declare function setImageTags(request: any, pipelineId: number, artifactId: number): Promise<ResponseType<any>>;
|
18
|
-
export declare const parseRuntimeParams: (response: RuntimeParamsAPIResponseType) =>
|
19
|
+
export declare const parseRuntimeParams: (response: RuntimeParamsAPIResponseType) => RuntimePluginVariables[];
|
19
20
|
export declare const processCDMaterialServiceResponse: (cdMaterialsResult: any, stage: DeploymentNodeType, offset: number, filter: CDMaterialFilterQuery, disableDefaultSelection?: boolean) => CDMaterialResponseType;
|
20
21
|
export declare const genericCDMaterialsService: (serviceType: CDMaterialServiceEnum, cdMaterialID: number, stage: DeploymentNodeType, signal: AbortSignal, queryParams?: CDMaterialServiceQueryParams) => Promise<CDMaterialResponseType>;
|
21
22
|
export declare function extractImage(image: string): string;
|
@@ -34,4 +35,9 @@ export declare function getWebhookEventsForEventId(eventId: string | number): Pr
|
|
34
35
|
* @returns URL to the branch in the Git repository
|
35
36
|
*/
|
36
37
|
export declare const getGitBranchUrl: (gitUrl: string, branchName: string) => string | null;
|
38
|
+
export declare const getGlobalVariables: ({ appId, isCD, abortControllerRef, }: {
|
39
|
+
appId: number;
|
40
|
+
isCD?: boolean;
|
41
|
+
abortControllerRef?: MutableRefObject<AbortController>;
|
42
|
+
}) => Promise<GlobalVariableOptionType[]>;
|
37
43
|
export {};
|
@@ -4,7 +4,6 @@ export declare const Host: string;
|
|
4
4
|
export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
|
5
5
|
export declare const DOCUMENTATION_VERSION = "/v/v0.7";
|
6
6
|
export declare const DISCORD_LINK = "https://discord.devtron.ai/";
|
7
|
-
export declare const DEFAULT_JSON_SCHEMA_URI = "https://json-schema.org/draft/2020-12/schema";
|
8
7
|
export declare const DOCUMENTATION: {
|
9
8
|
APP_METRICS: string;
|
10
9
|
APP_TAGS: string;
|
@@ -13,11 +12,13 @@ export declare const DOCUMENTATION: {
|
|
13
12
|
GLOBAL_CONFIG_BUILD_INFRA: string;
|
14
13
|
};
|
15
14
|
export declare const PATTERNS: {
|
15
|
+
NATURAL_NUMBERS: RegExp;
|
16
16
|
KUBERNETES_KEY_PREFIX: RegExp;
|
17
17
|
KUBERNETES_KEY_NAME: RegExp;
|
18
18
|
START_END_ALPHANUMERIC: RegExp;
|
19
19
|
ALPHANUMERIC_WITH_SPECIAL_CHAR: RegExp;
|
20
20
|
ESCAPED_CHARACTERS: RegExp;
|
21
|
+
NUMBERS_WITH_SCOPE_VARIABLES: RegExp;
|
21
22
|
};
|
22
23
|
export declare const URLS: {
|
23
24
|
LOGIN_SSO: string;
|
@@ -95,6 +96,8 @@ export declare const ROUTES: {
|
|
95
96
|
USER_LIST_MIN: string;
|
96
97
|
CONFIG_DATA: string;
|
97
98
|
K8S_RESOURCE_LIST: string;
|
99
|
+
FILE_UPLOAD: string;
|
100
|
+
PLUGIN_GLOBAL_VARIABLES: string;
|
98
101
|
CONFIG_COMPARE_SECRET: string;
|
99
102
|
};
|
100
103
|
export declare enum KEY_VALUE {
|
@@ -260,7 +263,6 @@ export declare const API_STATUS_CODES: {
|
|
260
263
|
EXPECTATION_FAILED: number;
|
261
264
|
UNPROCESSABLE_ENTITY: number;
|
262
265
|
LOCKED: number;
|
263
|
-
UNPROCESSABLE_CONTENT: number;
|
264
266
|
};
|
265
267
|
export declare enum SERVER_MODE {
|
266
268
|
EA_ONLY = "EA_ONLY",
|
@@ -312,4 +314,3 @@ export declare enum GitProviderType {
|
|
312
314
|
* Formats the schema removing any irregularity in the existing schema
|
313
315
|
*/
|
314
316
|
export declare const getFormattedSchema: (schema?: string) => string;
|
315
|
-
export declare const UNCHANGED_ARRAY_ELEMENT_SYMBOL: unique symbol;
|
package/dist/Common/Helper.d.ts
CHANGED
@@ -59,10 +59,9 @@ export declare const getFilteredChartVersions: (charts: any, selectedChartType:
|
|
59
59
|
* @param {object} object from which we need to delete nulls in its arrays
|
60
60
|
* @returns object after removing (in-place) the null items in arrays
|
61
61
|
*/
|
62
|
-
export declare const
|
62
|
+
export declare const recursivelyRemoveNullsFromArraysInObject: (object: object) => object;
|
63
63
|
/**
|
64
64
|
* Merges the objects into one object
|
65
|
-
* Works more like Object.assign; that doesn't deep copy
|
66
65
|
* @param {object[]} objects list of js objects
|
67
66
|
* @returns object after the merge
|
68
67
|
*/
|
@@ -91,7 +90,7 @@ export declare const getRegexMatchPositions: (string: string, regex: RegExp) =>
|
|
91
90
|
export declare const powerSetOfSubstringsFromStart: (strings: string[], regex: RegExp) => string[];
|
92
91
|
export declare const convertJSONPointerToJSONPath: (pointer: string) => string;
|
93
92
|
export declare const flatMapOfJSONPaths: (paths: string[], json: object, resultType?: JSONPathOptions["resultType"]) => string[];
|
94
|
-
export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) =>
|
93
|
+
export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) => object;
|
95
94
|
/**
|
96
95
|
* Returns a debounced variant of the function
|
97
96
|
*/
|
@@ -135,4 +134,5 @@ export declare const getSanitizedIframe: (iframeString: string) => string;
|
|
135
134
|
* This method adds default attributes to iframe - title, loading ="lazy", width="100%", height="100%"
|
136
135
|
*/
|
137
136
|
export declare const getIframeWithDefaultAttributes: (iframeString: string, defaultName?: string) => string;
|
137
|
+
export declare const getGoLangFormattedDateWithTimezone: (dateFormat: string) => string;
|
138
138
|
export {};
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { MarkDownProps } from './Types';
|
2
|
-
declare const MarkDown: ({ setExpandableIcon, markdown
|
2
|
+
declare const MarkDown: ({ setExpandableIcon, markdown, className, breaks, disableEscapedText, ...props }: MarkDownProps) => JSX.Element;
|
3
3
|
export default MarkDown;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { default as RJSF } from '@rjsf/core';
|
2
2
|
import { FormProps } from './types';
|
3
|
-
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "name" | "
|
3
|
+
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "name" | "id" | "children" | "className" | "disabled" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "target" | "action" | "tagName" | "autoComplete" | "method" | "noValidate" | "readonly" | "schema" | "uiSchema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<unknown, import('json-schema').JSONSchema7, import('@rjsf/utils').GenericObjectType>>>;
|
package/dist/Common/Types.d.ts
CHANGED
@@ -3,8 +3,8 @@ import { TippyProps } from '@tippyjs/react';
|
|
3
3
|
import { Placement } from 'tippy.js';
|
4
4
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
5
5
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
6
|
-
import { MandatoryPluginBaseStateType, RegistryType,
|
7
|
-
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
6
|
+
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity } from '../Shared';
|
7
|
+
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
|
8
8
|
/**
|
9
9
|
* Generic response type object with support for overriding the result type
|
10
10
|
*
|
@@ -94,6 +94,7 @@ export interface TippyCustomizedProps extends Pick<TippyProps, 'appendTo'> {
|
|
94
94
|
documentationLink?: string;
|
95
95
|
documentationLinkText?: string;
|
96
96
|
children: React.ReactElement<any>;
|
97
|
+
disableClose?: boolean;
|
97
98
|
}
|
98
99
|
export interface InfoIconTippyProps extends Pick<TippyCustomizedProps, 'heading' | 'infoText' | 'iconClass' | 'documentationLink' | 'documentationLinkText' | 'additionalContent' | 'placement' | 'Icon' | 'headingInfo'> {
|
99
100
|
dataTestid?: string;
|
@@ -592,7 +593,7 @@ export interface CDMaterialsMetaInfo {
|
|
592
593
|
* This is the ID of user that has request the material
|
593
594
|
*/
|
594
595
|
requestedUserId: number;
|
595
|
-
runtimeParams:
|
596
|
+
runtimeParams: RuntimePluginVariables[];
|
596
597
|
}
|
597
598
|
export interface ImagePromotionMaterialInfo {
|
598
599
|
isApprovalPendingForPromotion: boolean;
|
@@ -871,4 +872,15 @@ export interface WidgetEventDetails {
|
|
871
872
|
age: string;
|
872
873
|
lastSeen: string;
|
873
874
|
}
|
875
|
+
export interface GlobalVariableDTO {
|
876
|
+
name: string;
|
877
|
+
format: VariableTypeFormat;
|
878
|
+
description: string;
|
879
|
+
stageType: 'cd' | 'post-cd' | 'ci';
|
880
|
+
}
|
881
|
+
export type GlobalVariableOptionType = Omit<GlobalVariableDTO, 'name'> & {
|
882
|
+
label: string;
|
883
|
+
value: string;
|
884
|
+
variableType: Extract<RefVariableType, RefVariableType.GLOBAL>;
|
885
|
+
};
|
874
886
|
export {};
|
package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import { DraftMetadataDTO, TemplateListType } from '../../../../../../Shared/Services';
|
2
|
-
import { ServerErrors } from '../../../../../../Common/ServerError';
|
3
2
|
import { OverrideMergeStrategyType } from '../types';
|
4
3
|
export type DeploymentChartOptionkind = 'base' | 'env' | 'chartVersion' | 'deployment';
|
5
4
|
export interface DeploymentChartVersionType {
|
@@ -109,15 +108,15 @@ interface BaseDeploymentTemplateConfigState {
|
|
109
108
|
environmentConfig?: never;
|
110
109
|
mergeStrategy?: never;
|
111
110
|
}
|
112
|
-
|
111
|
+
interface EnvironmentOverrideDeploymentTemplateConfigState {
|
113
112
|
chartConfig?: never;
|
114
113
|
isOverridden: boolean;
|
115
114
|
environmentConfig: EnvironmentConfigType;
|
116
115
|
mergeStrategy: OverrideMergeStrategyType;
|
117
|
-
}
|
116
|
+
}
|
118
117
|
export interface DeploymentTemplateConfigCommonState extends SelectedChartDetailsType {
|
119
118
|
/**
|
120
|
-
* The first ever state of the deployment template
|
119
|
+
* The first ever state of the deployment template
|
121
120
|
*/
|
122
121
|
originalTemplate: Record<string, string>;
|
123
122
|
isAppMetricsEnabled: boolean;
|
@@ -127,23 +126,6 @@ export interface DeploymentTemplateConfigCommonState extends SelectedChartDetail
|
|
127
126
|
latestDraft?: DraftMetadataDTO;
|
128
127
|
editorTemplate: string;
|
129
128
|
editorTemplateWithoutLockedKeys: string;
|
130
|
-
/**
|
131
|
-
* This final template to be applied on the deployment in string format
|
132
|
-
* In current editor, this may be null initially
|
133
|
-
*/
|
134
|
-
mergedTemplate: string | null;
|
135
|
-
/**
|
136
|
-
* This final template to be applied on the deployment without locked keys in string format
|
137
|
-
* In current editor, this may be null initially
|
138
|
-
*/
|
139
|
-
mergedTemplateWithoutLockedKeys: string | null;
|
140
|
-
/**
|
141
|
-
* This final template to be applied on the deployment in object format
|
142
|
-
* In current editor, this may be null initially
|
143
|
-
*/
|
144
|
-
mergedTemplateObject: Record<string, string> | null;
|
145
|
-
isLoadingMergedTemplate: boolean;
|
146
|
-
mergedTemplateError: ServerErrors | null;
|
147
129
|
}
|
148
130
|
export type DeploymentTemplateConfigState = DeploymentTemplateConfigCommonState & (BaseDeploymentTemplateConfigState | EnvironmentOverrideDeploymentTemplateConfigState);
|
149
131
|
type DTApplicationMetricsReadOnlyProps = {
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
declare const OverrideStrategyTippyContent: ({ children }: OverrideStrategyTippyContentProps) => JSX.Element;
|
1
|
+
declare const OverrideStrategyTippyContent: () => JSX.Element;
|
3
2
|
export default OverrideStrategyTippyContent;
|
@@ -20,15 +20,8 @@ export interface ConfigToolbarPopupMenuConfigType {
|
|
20
20
|
disabled?: boolean;
|
21
21
|
icon?: ReactNode | null;
|
22
22
|
variant?: 'default' | 'negative';
|
23
|
-
tooltipText?: string;
|
24
23
|
}
|
25
24
|
export declare enum ConfigToolbarPopupNodeType {
|
26
25
|
DISCARD_DRAFT = "discardDraft",
|
27
26
|
EDIT_HISTORY = "editHistory"
|
28
27
|
}
|
29
|
-
export interface OverrideStrategyTippyContentProps {
|
30
|
-
/**
|
31
|
-
* Would be rendered as li conveying the information about the merge strategy
|
32
|
-
*/
|
33
|
-
children?: ReactNode;
|
34
|
-
}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { DeploymentStageType } from '../../../../../Shared/constants';
|
2
|
-
export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "
|
2
|
+
export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "deployment" | "pre-deployment" | "post-deployment" | "-";
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { MutableRefObject } from 'react';
|
2
|
+
import { UploadFileDTO, UploadFileProps } from '../../../../../Shared/types';
|
3
|
+
export declare const uploadCDPipelineFile: ({ file, appId, envId, allowedExtensions, maxUploadSize, abortControllerRef, }: UploadFileProps & {
|
4
|
+
appId: number;
|
5
|
+
envId: number;
|
6
|
+
abortControllerRef?: MutableRefObject<AbortController>;
|
7
|
+
}) => Promise<UploadFileDTO>;
|
package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/components/SystemVariableIcon.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export declare const SystemVariableIcon: () => JSX.Element;
|