@devtron-labs/devtron-fe-common-lib 1.2.16 → 1.2.17-beta-2

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 (30) hide show
  1. package/dist/{@code-editor-BogrfDse.js → @code-editor-DokNNq3L.js} +4208 -3976
  2. package/dist/{@common-rjsf-DLiAZrnL.js → @common-rjsf-BUi5Gl7v.js} +1 -1
  3. package/dist/Common/CIPipeline.Types.d.ts +50 -5
  4. package/dist/Common/Common.service.d.ts +9 -3
  5. package/dist/Common/Constants.d.ts +4 -0
  6. package/dist/Common/Helper.d.ts +1 -0
  7. package/dist/Common/RJSF/Form.d.ts +1 -1
  8. package/dist/Common/Types.d.ts +15 -3
  9. package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/index.d.ts +1 -0
  10. package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/services.d.ts +7 -0
  11. package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/components/FileConfigTippy.d.ts +2 -0
  12. package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/components/SystemVariableIcon.d.ts +1 -0
  13. package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/components/index.d.ts +2 -0
  14. package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/constants.d.ts +3 -0
  15. package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/index.d.ts +3 -0
  16. package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/services.d.ts +7 -0
  17. package/dist/Pages/Applications/DevtronApps/Details/index.d.ts +1 -0
  18. package/dist/Shared/Components/DynamicDataTable/types.d.ts +5 -1
  19. package/dist/Shared/Components/FileUpload/FileUpload.d.ts +2 -0
  20. package/dist/Shared/Components/FileUpload/index.d.ts +2 -0
  21. package/dist/Shared/Components/FileUpload/types.d.ts +8 -0
  22. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  23. package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
  24. package/dist/Shared/Components/index.d.ts +1 -0
  25. package/dist/Shared/types.d.ts +30 -6
  26. package/dist/assets/@code-editor.css +1 -1
  27. package/dist/assets/ic-cloud-upload.18066e05.svg +3 -0
  28. package/dist/assets/ic-var-initial.afdaa854.svg +25 -0
  29. package/dist/index.js +511 -499
  30. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { j as n, J as A } from "./@vendor-BG3OpQCq.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-BogrfDse.js";
5
+ import { T as y, c as H, a as J, d as w } from "./@code-editor-DokNNq3L.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,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: string;
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;
@@ -183,6 +209,10 @@ export interface DockerConfigOverrideType {
183
209
  dockerRepository: string;
184
210
  ciBuildConfig: CIBuildConfigType;
185
211
  }
212
+ export declare enum WORKFLOW_CACHE_CONFIG_ENUM {
213
+ INHERIT = "INHERIT",
214
+ OVERRIDE = "OVERRIDE"
215
+ }
186
216
  export interface FormType {
187
217
  name: string;
188
218
  args: {
@@ -221,21 +251,36 @@ export interface FormType {
221
251
  isDockerConfigOverridden?: boolean;
222
252
  dockerConfigOverride?: DockerConfigOverrideType;
223
253
  isOffendingMandatoryPlugin?: boolean;
254
+ workflowCacheConfig?: {
255
+ type: WORKFLOW_CACHE_CONFIG_ENUM;
256
+ value: boolean;
257
+ globalValue: boolean;
258
+ };
224
259
  }
225
260
  export interface ErrorObj {
226
261
  isValid: boolean;
227
262
  message: string | null;
228
263
  }
264
+ export declare enum InputOutputVariablesHeaderKeys {
265
+ VARIABLE = "variable",
266
+ FORMAT = "format",
267
+ VALUE = "val"
268
+ }
269
+ export type InputOutputVariablesErrorObj = Record<InputOutputVariablesHeaderKeys, DynamicDataTableCellValidationState>;
229
270
  export interface TaskErrorObj {
230
271
  isValid: boolean;
231
272
  name: ErrorObj;
232
273
  inlineStepDetail?: {
233
- inputVariables?: ErrorObj[];
234
- outputVariables?: ErrorObj[];
274
+ inputVariables?: Record<number, InputOutputVariablesErrorObj>;
275
+ outputVariables?: Record<number, InputOutputVariablesErrorObj>;
276
+ isInputVariablesValid?: boolean;
277
+ isOutputVariablesValid?: boolean;
235
278
  };
236
279
  pluginRefStepDetail?: {
237
- inputVariables?: ErrorObj[];
238
- outputVariables?: ErrorObj[];
280
+ inputVariables?: Record<number, InputOutputVariablesErrorObj>;
281
+ outputVariables?: Record<number, InputOutputVariablesErrorObj>;
282
+ isInputVariablesValid?: boolean;
283
+ isOutputVariablesValid?: boolean;
239
284
  };
240
285
  }
241
286
  export interface FormErrorObjectType {
@@ -1,5 +1,6 @@
1
- import { RuntimeParamsAPIResponseType, RuntimeParamsListItemType } from '../Shared/types';
2
- import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse } from './Types';
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) => RuntimeParamsListItemType[];
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 {};
@@ -13,11 +13,13 @@ export declare const DOCUMENTATION: {
13
13
  GLOBAL_CONFIG_BUILD_INFRA: string;
14
14
  };
15
15
  export declare const PATTERNS: {
16
+ NATURAL_NUMBERS: RegExp;
16
17
  KUBERNETES_KEY_PREFIX: RegExp;
17
18
  KUBERNETES_KEY_NAME: RegExp;
18
19
  START_END_ALPHANUMERIC: RegExp;
19
20
  ALPHANUMERIC_WITH_SPECIAL_CHAR: RegExp;
20
21
  ESCAPED_CHARACTERS: RegExp;
22
+ NUMBERS_WITH_SCOPE_VARIABLES: RegExp;
21
23
  };
22
24
  export declare const URLS: {
23
25
  LOGIN_SSO: string;
@@ -99,6 +101,8 @@ export declare const ROUTES: {
99
101
  CONFIG_DATA: string;
100
102
  K8S_RESOURCE: string;
101
103
  K8S_RESOURCE_LIST: string;
104
+ FILE_UPLOAD: string;
105
+ PLUGIN_GLOBAL_VARIABLES: string;
102
106
  CONFIG_COMPARE_SECRET: string;
103
107
  };
104
108
  export declare enum KEY_VALUE {
@@ -135,4 +135,5 @@ export declare const getSanitizedIframe: (iframeString: string) => string;
135
135
  * This method adds default attributes to iframe - title, loading ="lazy", width="100%", height="100%"
136
136
  */
137
137
  export declare const getIframeWithDefaultAttributes: (iframeString: string, defaultName?: string) => string;
138
+ export declare const getGoLangFormattedDateWithTimezone: (dateFormat: string) => string;
138
139
  export {};
@@ -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" | "children" | "className" | "disabled" | "id" | "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>>>;
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>>>;
@@ -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, RuntimeParamsListItemType, Severity } from '../Shared';
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: RuntimeParamsListItemType[];
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 {};
@@ -1 +1,2 @@
1
1
  export * from './types';
2
+ export * from './services';
@@ -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>;
@@ -0,0 +1,2 @@
1
+ import { VariableType } from '../../../../../../Common/CIPipeline.Types';
2
+ export declare const FileConfigTippy: ({ fileMountDir }: Pick<VariableType, "fileMountDir">) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const SystemVariableIcon: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './SystemVariableIcon';
2
+ export * from './FileConfigTippy';
@@ -0,0 +1,3 @@
1
+ import { SelectPickerOptionType } from '../../../../../Shared/Components';
2
+ export declare const IO_VARIABLES_VALUE_COLUMN_BOOL_OPTIONS: SelectPickerOptionType<string>[];
3
+ export declare const IO_VARIABLES_VALUE_COLUMN_DATE_OPTIONS: SelectPickerOptionType<string>[];
@@ -0,0 +1,3 @@
1
+ export * from './services';
2
+ export * from './constants';
3
+ export * from './components';
@@ -0,0 +1,7 @@
1
+ import { UploadFileDTO, UploadFileProps } from '../../../../../Shared/types';
2
+ import { APIOptions } from '../../../../../Common/Types';
3
+ export declare const uploadCIPipelineFile: ({ file, appId, ciPipelineId, envId, allowedExtensions, maxUploadSize, abortControllerRef, }: {
4
+ appId: number;
5
+ ciPipelineId: number;
6
+ envId?: number;
7
+ } & UploadFileProps & Pick<APIOptions, "abortControllerRef">) => Promise<UploadFileDTO>;
@@ -1,2 +1,3 @@
1
1
  export * from './AppConfigurations';
2
2
  export * from './CDPipeline';
3
+ export * from './CIPipeline';
@@ -4,6 +4,7 @@ import { UseStateFiltersReturnType } from '../../../Common/Hooks';
4
4
  import { TooltipProps } from '@Common/Tooltip/types';
5
5
  import { SelectPickerOptionType, SelectPickerProps } from '../SelectPicker';
6
6
  import { SelectTextAreaProps } from '../SelectTextArea';
7
+ import { FileUploadProps } from '../FileUpload';
7
8
  /**
8
9
  * Interface representing header for a dynamic data table.
9
10
  * @template K - A string representing the key type.
@@ -24,7 +25,8 @@ export declare enum DynamicDataTableRowDataType {
24
25
  TEXT = "text",
25
26
  DROPDOWN = "dropdown",
26
27
  SELECT_TEXT = "select-text",
27
- BUTTON = "button"
28
+ BUTTON = "button",
29
+ FILE_UPLOAD = "file-upload"
28
30
  }
29
31
  export type DynamicDataTableCellPropsMap = {
30
32
  [DynamicDataTableRowDataType.TEXT]: Omit<ResizableTagTextAreaProps, 'id' | 'className' | 'minHeight' | 'maxHeight' | 'value' | 'onChange' | 'disabled' | 'disableOnBlurResizeToMinHeight' | 'refVar' | 'dependentRef'>;
@@ -36,6 +38,7 @@ export type DynamicDataTableCellPropsMap = {
36
38
  icon?: ReactNode;
37
39
  text: string;
38
40
  };
41
+ [DynamicDataTableRowDataType.FILE_UPLOAD]: Omit<FileUploadProps, 'className' | 'fileName' | 'onUpload' | 'multiple'>;
39
42
  };
40
43
  type DynamicDataTableCellData<T extends keyof DynamicDataTableCellPropsMap = keyof DynamicDataTableCellPropsMap> = T extends keyof DynamicDataTableCellPropsMap ? {
41
44
  type: T;
@@ -120,6 +123,7 @@ export type DynamicDataTableProps<K extends string, CustomStateType = Record<str
120
123
  * @param extraData - Additional data, such as a selected value for dropdowns.
121
124
  */
122
125
  onRowEdit: (row: DynamicDataTableRowType<K, CustomStateType>, headerKey: K, value: string, extraData: {
126
+ files?: File[];
123
127
  selectedValue?: SelectPickerOptionType<string>;
124
128
  }) => void;
125
129
  /**
@@ -0,0 +1,2 @@
1
+ import { FileUploadProps } from './types';
2
+ export declare const FileUpload: ({ isLoading, label, fileName, multiple, fileTypes, onUpload, }: FileUploadProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './FileUpload';
2
+ export * from './types';
@@ -0,0 +1,8 @@
1
+ export interface FileUploadProps {
2
+ isLoading?: boolean;
3
+ fileName: string;
4
+ onUpload: (files: File[]) => void;
5
+ multiple?: boolean;
6
+ label?: string;
7
+ fileTypes?: string[];
8
+ }
@@ -134,5 +134,5 @@ import { SelectPickerProps } from './type';
134
134
  * />
135
135
  * ```
136
136
  */
137
- declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, renderMenuListFooter, inputValue, onInputChange, isCreatable, onCreateOption, closeMenuOnSelect, shouldShowNoOptionsMessage, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
137
+ declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, renderMenuListFooter, inputValue, onInputChange, isCreatable, onCreateOption, closeMenuOnSelect, shouldShowNoOptionsMessage, formatCreateLabel, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
138
138
  export default SelectPicker;
@@ -61,7 +61,7 @@ export declare enum SelectPickerVariantType {
61
61
  DEFAULT = "default",
62
62
  BORDER_LESS = "border-less"
63
63
  }
64
- export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption'>> & {
64
+ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption' | 'formatCreateLabel'>> & {
65
65
  /**
66
66
  * Error message for the select
67
67
  */
@@ -46,3 +46,4 @@ export * from './EnterpriseTag';
46
46
  export * from './ConfirmationModal';
47
47
  export * from './DiffViewer';
48
48
  export * from './DynamicDataTable';
49
+ export * from './FileUpload';
@@ -1,6 +1,5 @@
1
1
  import { Dayjs } from 'dayjs';
2
- import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams } from '../Common';
3
- import { KeyValueListType } from './Components';
2
+ import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams, ValueConstraintType, VariableType, RefVariableType, PluginType } from '../Common';
4
3
  import { EnvironmentTypeEnum, PatchOperationType } from './constants';
5
4
  export declare enum EnvType {
6
5
  CHART = "helm_charts",
@@ -282,11 +281,27 @@ export interface GitTriggers {
282
281
  CiConfigureSourceType: string;
283
282
  CiConfigureSourceValue: string;
284
283
  }
284
+ export interface RuntimePluginVariables extends Pick<VariableType, 'name' | 'value' | 'defaultValue' | 'format' | 'fileReferenceId' | 'fileMountDir'> {
285
+ variableStepScope: string;
286
+ valueConstraint: ValueConstraintType & {
287
+ id: number;
288
+ };
289
+ stepVariableId: number;
290
+ valueType: RefVariableType;
291
+ stepName: string;
292
+ stepType: PluginType;
293
+ isRequired: boolean;
294
+ pluginIcon?: string;
295
+ description?: string;
296
+ }
285
297
  export interface RuntimeParamsAPIResponseType {
286
298
  envVariables: Record<string, string>;
299
+ runtimePluginVariables: RuntimePluginVariables[];
287
300
  }
288
301
  export interface RuntimeParamsTriggerPayloadType {
289
- runtimeParams: RuntimeParamsAPIResponseType;
302
+ runtimeParams: {
303
+ runtimePluginVariables: Pick<RuntimePluginVariables, 'name' | 'fileMountDir' | 'fileReferenceId' | 'value' | 'format' | 'variableStepScope'>[];
304
+ };
290
305
  }
291
306
  export declare enum CIMaterialSidebarType {
292
307
  CODE_SOURCE = "Code Source",
@@ -596,9 +611,6 @@ export interface ConfigKeysWithLockType {
596
611
  allowed: boolean;
597
612
  }
598
613
  export type DataAttributes = Record<`data-${string}`, unknown>;
599
- export interface RuntimeParamsListItemType extends KeyValueListType {
600
- id: number;
601
- }
602
614
  export declare enum RuntimeParamsHeadingType {
603
615
  KEY = "key",
604
616
  VALUE = "value"
@@ -740,4 +752,16 @@ export interface PreventOutsideFocusProps {
740
752
  identifier: string;
741
753
  preventFocus: boolean;
742
754
  }
755
+ export interface UploadFileDTO {
756
+ id: number;
757
+ name: string;
758
+ size: number;
759
+ mimeType: string;
760
+ extension: string;
761
+ }
762
+ export interface UploadFileProps {
763
+ file: File[];
764
+ allowedExtensions?: string[];
765
+ maxUploadSize?: number;
766
+ }
743
767
  export {};