@devtron-labs/devtron-fe-common-lib 1.2.7-beta-2 → 1.2.7-beta-5

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 (27) hide show
  1. package/dist/{@code-editor-BnosCbpz.js → @code-editor-HL5a1btU.js} +3426 -3228
  2. package/dist/{@common-rjsf-Dc0KmZRn.js → @common-rjsf-DFgZpQQ7.js} +1 -1
  3. package/dist/Common/CIPipeline.Types.d.ts +41 -5
  4. package/dist/Common/Common.service.d.ts +9 -3
  5. package/dist/Common/Constants.d.ts +4 -1
  6. package/dist/Common/CustomTagSelector/Types.d.ts +0 -12
  7. package/dist/Common/Helper.d.ts +1 -0
  8. package/dist/Common/RJSF/Form.d.ts +1 -1
  9. package/dist/Common/Types.d.ts +15 -3
  10. package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/index.d.ts +1 -0
  11. package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/services.d.ts +7 -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 +1 -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 +11 -0
  17. package/dist/Pages/Applications/DevtronApps/Details/index.d.ts +1 -0
  18. package/dist/Shared/Components/DynamicDataTable/types.d.ts +5 -3
  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/index.d.ts +1 -0
  23. package/dist/Shared/types.d.ts +30 -6
  24. package/dist/assets/ic-cloud-upload.18066e05.svg +3 -0
  25. package/dist/assets/ic-var-initial.afdaa854.svg +25 -0
  26. package/dist/index.js +524 -515
  27. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { j as n, J as A } from "./@vendor-RU8AW1bK.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-BnosCbpz.js";
5
+ import { T as y, c as H, a as J, d as w } from "./@code-editor-HL5a1btU.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;
@@ -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?: ErrorObj[];
234
- outputVariables?: ErrorObj[];
265
+ inputVariables?: Record<number, InputOutputVariablesErrorObj>;
266
+ outputVariables?: Record<number, InputOutputVariablesErrorObj>;
267
+ isInputVariablesValid?: boolean;
268
+ isOutputVariablesValid?: boolean;
235
269
  };
236
270
  pluginRefStepDetail?: {
237
- inputVariables?: ErrorObj[];
238
- outputVariables?: ErrorObj[];
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 {
@@ -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 {};
@@ -12,12 +12,13 @@ export declare const DOCUMENTATION: {
12
12
  GLOBAL_CONFIG_BUILD_INFRA: string;
13
13
  };
14
14
  export declare const PATTERNS: {
15
- STRING: RegExp;
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 {
@@ -5,16 +5,6 @@ export interface SuggestedTagOptionType extends OptionType {
5
5
  description: string;
6
6
  propagate: boolean;
7
7
  }
8
- export declare enum DeploymentPolicy {
9
- ALLOW = "allow",
10
- BLOCK = "block",
11
- BLOCK_PROD = "block-prod",
12
- BLOCK_NON_PROD = "block-non-prod"
13
- }
14
- export interface VariableValueConstraintTypes {
15
- choices?: string[];
16
- blockCustomValue?: boolean;
17
- }
18
8
  export interface TagType {
19
9
  id?: number;
20
10
  key: string;
@@ -26,8 +16,6 @@ export interface TagType {
26
16
  isInvalidValue?: boolean;
27
17
  isSuggested?: boolean;
28
18
  isPropagateDisabled?: boolean;
29
- deploymentPolicy?: DeploymentPolicy;
30
- valueConstraint?: VariableValueConstraintTypes;
31
19
  }
32
20
  export interface TagErrorType {
33
21
  isValid: boolean;
@@ -134,4 +134,5 @@ export declare const getSanitizedIframe: (iframeString: string) => string;
134
134
  * This method adds default attributes to iframe - title, loading ="lazy", width="100%", height="100%"
135
135
  */
136
136
  export declare const getIframeWithDefaultAttributes: (iframeString: string, defaultName?: string) => string;
137
+ export declare const getGoLangFormattedDateWithTimezone: (dateFormat: string) => string;
137
138
  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 @@
1
+ export declare const SystemVariableIcon: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './SystemVariableIcon';
@@ -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,11 @@
1
+ import { MutableRefObject } from 'react';
2
+ import { UploadFileDTO } from '../../../../../Shared/types';
3
+ export declare const uploadCIPipelineFile: ({ file, appId, ciPipelineId, envId, allowedExtensions, maxUploadSize, abortControllerRef, }: {
4
+ file: File[];
5
+ appId: number;
6
+ ciPipelineId: number;
7
+ envId?: number;
8
+ allowedExtensions?: string[];
9
+ maxUploadSize?: number;
10
+ abortControllerRef?: MutableRefObject<AbortController>;
11
+ }) => 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.
@@ -19,14 +20,13 @@ export type DynamicDataTableHeaderType<K extends string> = {
19
20
  isSortable?: boolean;
20
21
  /** An optional boolean to control the visibility of the column. */
21
22
  isHidden?: boolean;
22
- /** An optional boolean to show the column */
23
- renderAdditionalContent?: () => ReactNode;
24
23
  };
25
24
  export declare enum DynamicDataTableRowDataType {
26
25
  TEXT = "text",
27
26
  DROPDOWN = "dropdown",
28
27
  SELECT_TEXT = "select-text",
29
- BUTTON = "button"
28
+ BUTTON = "button",
29
+ FILE_UPLOAD = "file-upload"
30
30
  }
31
31
  export type DynamicDataTableCellPropsMap = {
32
32
  [DynamicDataTableRowDataType.TEXT]: Omit<ResizableTagTextAreaProps, 'id' | 'className' | 'minHeight' | 'maxHeight' | 'value' | 'onChange' | 'disabled' | 'disableOnBlurResizeToMinHeight' | 'refVar' | 'dependentRef'>;
@@ -38,6 +38,7 @@ export type DynamicDataTableCellPropsMap = {
38
38
  icon?: ReactNode;
39
39
  text: string;
40
40
  };
41
+ [DynamicDataTableRowDataType.FILE_UPLOAD]: Omit<FileUploadProps, 'className' | 'fileName' | 'onUpload' | 'multiple'>;
41
42
  };
42
43
  type DynamicDataTableCellData<T extends keyof DynamicDataTableCellPropsMap = keyof DynamicDataTableCellPropsMap> = T extends keyof DynamicDataTableCellPropsMap ? {
43
44
  type: T;
@@ -122,6 +123,7 @@ export type DynamicDataTableProps<K extends string, CustomStateType = Record<str
122
123
  * @param extraData - Additional data, such as a selected value for dropdowns.
123
124
  */
124
125
  onRowEdit: (row: DynamicDataTableRowType<K, CustomStateType>, headerKey: K, value: string, extraData: {
126
+ files?: File[];
125
127
  selectedValue?: SelectPickerOptionType<string>;
126
128
  }) => void;
127
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
+ }
@@ -44,3 +44,4 @@ export * from './InvalidYAMLTippy';
44
44
  export * from './ConfirmationModal';
45
45
  export * from './DiffViewer';
46
46
  export * from './DynamicDataTable';
47
+ 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",
@@ -595,9 +610,6 @@ export interface ConfigKeysWithLockType {
595
610
  allowed: boolean;
596
611
  }
597
612
  export type DataAttributes = Record<`data-${string}`, unknown>;
598
- export interface RuntimeParamsListItemType extends KeyValueListType {
599
- id: number;
600
- }
601
613
  export declare enum RuntimeParamsHeadingType {
602
614
  KEY = "key",
603
615
  VALUE = "value"
@@ -739,4 +751,16 @@ export interface PreventOutsideFocusProps {
739
751
  identifier: string;
740
752
  preventFocus: boolean;
741
753
  }
754
+ export interface UploadFileDTO {
755
+ id: number;
756
+ name: string;
757
+ size: number;
758
+ mimeType: string;
759
+ extension: string;
760
+ }
761
+ export interface UploadFileProps {
762
+ file: File[];
763
+ allowedExtensions?: string[];
764
+ maxUploadSize?: number;
765
+ }
742
766
  export {};
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M5.99995 12.999H4.49995C4.0036 12.9985 3.51303 12.8925 3.0608 12.6879C2.60857 12.4833 2.20502 12.1849 1.87694 11.8124C1.54886 11.44 1.30376 11.002 1.1579 10.5276C1.01203 10.0531 0.968751 9.55309 1.03092 9.06065C1.09309 8.56821 1.25928 8.09462 1.51848 7.67132C1.77768 7.24802 2.12394 6.88469 2.53429 6.60545C2.94465 6.3262 3.4097 6.13744 3.89859 6.05167C4.38747 5.9659 4.88901 5.9851 5.36991 6.10799M4.99995 7.99902C5.00003 7.20679 5.18836 6.42592 5.54942 5.72076C5.91048 5.01559 6.43393 4.40631 7.07665 3.94312C7.71937 3.47994 8.46295 3.17611 9.24612 3.05667C10.0293 2.93722 10.8296 3.00559 11.5812 3.25613C12.3328 3.50668 13.0141 3.93222 13.5689 4.49771C14.1237 5.06319 14.5363 5.75242 14.7725 6.50861C15.0087 7.2648 15.0619 8.0663 14.9276 8.84706C14.7933 9.62783 14.4754 10.3655 14.0001 10.9993M7.37864 10.1204L9.49995 7.999M9.49995 7.999L11.6213 10.1204M9.49995 7.999V12.999" stroke="#0066CC" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,25 @@
1
+ <!--
2
+ - Copyright (c) 2024. Devtron Inc.
3
+ -
4
+ - Licensed under the Apache License, Version 2.0 (the "License");
5
+ - you may not use this file except in compliance with the License.
6
+ - You may obtain a copy of the License at
7
+ -
8
+ - http://www.apache.org/licenses/LICENSE-2.0
9
+ -
10
+ - Unless required by applicable law or agreed to in writing, software
11
+ - distributed under the License is distributed on an "AS IS" BASIS,
12
+ - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ - See the License for the specific language governing permissions and
14
+ - limitations under the License.
15
+ -->
16
+
17
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
18
+ <g id="ic-var-initial">
19
+ <g id="Vector">
20
+ <path d="M11.8244 6.26696V7.90053C11.8244 7.94068 11.847 7.96075 11.8922 7.96075H12.2686C13.1619 7.96075 13.6086 7.64207 13.6086 7.0047C13.6086 6.4376 13.1945 6.15404 12.3664 6.15404C12.2159 6.15404 12.0578 6.16659 11.8922 6.19168C11.847 6.20172 11.8244 6.22681 11.8244 6.26696ZM11.2147 10.9042C11.0992 10.9042 10.9989 10.8615 10.9135 10.7762C10.8282 10.6909 10.7856 10.5905 10.7856 10.4751V5.87551C10.7856 5.75506 10.8257 5.64716 10.906 5.55181C10.9863 5.45645 11.0867 5.40376 11.2071 5.39372C11.6337 5.35357 12.0453 5.3335 12.4417 5.3335C13.1795 5.3335 13.7315 5.47151 14.0979 5.74753C14.4642 6.01854 14.6474 6.40247 14.6474 6.89931C14.6474 7.25563 14.5496 7.5693 14.3538 7.84031C14.1631 8.11131 13.9047 8.30202 13.5784 8.41243C13.5734 8.41243 13.5709 8.41494 13.5709 8.41996C13.5709 8.43 13.5734 8.43501 13.5784 8.43501C13.8193 8.58557 14.0251 8.88167 14.1957 9.32331L14.6474 10.5052C14.6825 10.6006 14.67 10.6909 14.6098 10.7762C14.5546 10.8615 14.4768 10.9042 14.3764 10.9042H14.143C14.0126 10.9042 13.8946 10.8691 13.7892 10.7988C13.6838 10.7235 13.6086 10.6256 13.5634 10.5052L13.1418 9.3459C13.0515 9.105 12.9486 8.94691 12.8332 8.87164C12.7177 8.79636 12.5195 8.75872 12.2385 8.75872H11.8922C11.847 8.75872 11.8244 8.7813 11.8244 8.82647V10.4751C11.8244 10.5905 11.7818 10.6909 11.6965 10.7762C11.6162 10.8615 11.5183 10.9042 11.4029 10.9042H11.2147Z" fill="#596168"/>
21
+ <path d="M7.75703 6.34232L7.09457 8.70609C7.08955 8.72115 7.09206 8.73621 7.10209 8.75126C7.11213 8.76632 7.12468 8.77385 7.13973 8.77385H8.38937C8.40443 8.77385 8.41698 8.76632 8.42701 8.75126C8.43705 8.73621 8.43956 8.72115 8.43454 8.70609L7.77208 6.34232C7.77208 6.3373 7.76957 6.33479 7.76455 6.33479C7.75954 6.33479 7.75703 6.3373 7.75703 6.34232ZM5.80729 10.9043C5.70189 10.9043 5.61909 10.8616 5.55886 10.7763C5.49864 10.691 5.48609 10.5981 5.52122 10.4977L7.07951 5.81536C7.12468 5.69491 7.19745 5.59705 7.29782 5.52177C7.40321 5.44649 7.51864 5.40885 7.64411 5.40885H7.91511C8.0456 5.40885 8.16103 5.44649 8.2614 5.52177C8.36679 5.59705 8.43956 5.69491 8.47971 5.81536L10.038 10.4977C10.0731 10.5981 10.0606 10.691 10.0004 10.7763C9.94014 10.8616 9.85733 10.9043 9.75194 10.9043H9.48093C9.36048 10.9043 9.24756 10.8666 9.14217 10.7913C9.0418 10.711 8.97405 10.6107 8.93892 10.4902L8.69802 9.63956C8.693 9.59941 8.6654 9.57934 8.61521 9.57934H6.9139C6.86873 9.57934 6.84112 9.59941 6.83109 9.63956L6.59019 10.4902C6.56008 10.6107 6.49233 10.711 6.38694 10.7913C6.28657 10.8666 6.17365 10.9043 6.04818 10.9043H5.80729Z" fill="#596168"/>
22
+ <path d="M2.9112 10.4977L1.35291 5.81536C1.31778 5.71499 1.33033 5.62214 1.39055 5.53682C1.45077 5.45151 1.53358 5.40885 1.63897 5.40885H1.90998C2.03545 5.40885 2.15087 5.449 2.25627 5.5293C2.36166 5.60458 2.42941 5.70244 2.45952 5.82289L3.6113 9.8654C3.6113 9.87042 3.61381 9.87293 3.61883 9.87293C3.62384 9.87293 3.62635 9.87042 3.62635 9.8654L4.79319 5.81536C4.82832 5.69491 4.89607 5.59705 4.99644 5.52177C5.10183 5.44649 5.21726 5.40885 5.34273 5.40885H5.58362C5.68901 5.40885 5.77182 5.45151 5.83205 5.53682C5.89227 5.62214 5.90482 5.71499 5.86969 5.81536L4.3114 10.4977C4.27125 10.6182 4.19848 10.7161 4.09309 10.7913C3.99271 10.8666 3.87729 10.9043 3.7468 10.9043H3.47579C3.35033 10.9043 3.2349 10.8666 3.12951 10.7913C3.02914 10.7161 2.95637 10.6182 2.9112 10.4977Z" fill="#596168"/>
23
+ </g>
24
+ </g>
25
+ </svg>