@devtron-labs/devtron-fe-common-lib 0.2.2-beta-3 → 0.2.2-beta-4

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 (53) hide show
  1. package/dist/Common/Constants.d.ts +0 -1
  2. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +1 -1
  3. package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
  4. package/dist/Shared/Components/CICDHistory/types.d.ts +13 -12
  5. package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -0
  6. package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
  7. package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +1 -24
  8. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  9. package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
  10. package/dist/Shared/Components/SelectPicker/index.d.ts +0 -1
  11. package/dist/Shared/Components/SelectPicker/type.d.ts +0 -16
  12. package/dist/Shared/Components/SelectPicker/utils.d.ts +2 -11
  13. package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +2 -2
  14. package/dist/Shared/Components/ShowMoreText/index.d.ts +1 -0
  15. package/dist/Shared/Components/index.d.ts +1 -3
  16. package/dist/Shared/Helpers.d.ts +0 -2
  17. package/dist/Shared/Services/app.service.d.ts +1 -3
  18. package/dist/Shared/Services/app.types.d.ts +0 -116
  19. package/dist/Shared/constants.d.ts +6 -0
  20. package/dist/assets/editor.worker-60ba9509.js +12 -0
  21. package/dist/assets/index.css +1 -1
  22. package/dist/assets/yaml.worker-3bbe780a.js +472 -0
  23. package/dist/{cssMode-be050934.js → cssMode-f2d899bd.js} +1 -1
  24. package/dist/{freemarker2-9fccce23.js → freemarker2-90f81482.js} +1 -1
  25. package/dist/{handlebars-df33a856.js → handlebars-16aafef4.js} +1 -1
  26. package/dist/{html-b76cbb26.js → html-bfa6a3d4.js} +1 -1
  27. package/dist/{htmlMode-18063eff.js → htmlMode-cbcc4fa6.js} +1 -1
  28. package/dist/{index-cc9a47f4.js → index-3e58e363.js} +27761 -28501
  29. package/dist/index.js +479 -492
  30. package/dist/{javascript-228444f1.js → javascript-9e09224b.js} +1 -1
  31. package/dist/{jsonMode-57ae28a7.js → jsonMode-85b4df48.js} +1 -1
  32. package/dist/{liquid-2c6214b8.js → liquid-35f9f8e3.js} +1 -1
  33. package/dist/{mdx-028b98f9.js → mdx-c71d0979.js} +1 -1
  34. package/dist/{python-b15c4827.js → python-05b701a6.js} +1 -1
  35. package/dist/{razor-fcf80b3e.js → razor-63f52035.js} +1 -1
  36. package/dist/{tsMode-05880789.js → tsMode-aa563114.js} +1 -1
  37. package/dist/{typescript-7ce10b0c.js → typescript-630281c2.js} +1 -1
  38. package/dist/{xml-4522b384.js → xml-d021271d.js} +1 -1
  39. package/dist/{yaml-46005b96.js → yaml-d28e27b7.js} +1 -1
  40. package/package.json +1 -1
  41. package/dist/Shared/Components/Collapse/Collapse.d.ts +0 -3
  42. package/dist/Shared/Components/Collapse/index.d.ts +0 -2
  43. package/dist/Shared/Components/Collapse/types.d.ts +0 -7
  44. package/dist/Shared/Components/CollapsibleList/CollapsibleList.component.d.ts +0 -3
  45. package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +0 -96
  46. package/dist/Shared/Components/CollapsibleList/index.d.ts +0 -2
  47. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +0 -3
  48. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +0 -38
  49. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +0 -3
  50. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +0 -3
  51. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +0 -3
  52. package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +0 -3
  53. package/dist/Shared/Components/DeploymentConfigDiff/types.d.ts +0 -69
@@ -81,7 +81,6 @@ export declare const ROUTES: {
81
81
  PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
82
82
  PLUGIN_GLOBAL_LIST_V2: string;
83
83
  PLUGIN_GLOBAL_LIST_TAGS: string;
84
- CONFIG_DATA: string;
85
84
  };
86
85
  export declare enum KEY_VALUE {
87
86
  KEY = "key",
@@ -1,4 +1,4 @@
1
1
  import { DeploymentTemplateHistoryType } from '../types';
2
2
 
3
- declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, comparisonBodyClassName, sortOrder, }: DeploymentTemplateHistoryType) => JSX.Element;
3
+ declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, }: DeploymentTemplateHistoryType) => JSX.Element;
4
4
  export default DeploymentHistoryDiffView;
@@ -2,5 +2,5 @@ import { default as React } from 'react';
2
2
  import { TriggerDetailsType, TriggerOutputProps } from './types';
3
3
 
4
4
  export declare const TriggerDetails: React.MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, }: TriggerDetailsType) => JSX.Element>;
5
- declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, setDeploymentHistoryList, deploymentHistoryList, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, }: TriggerOutputProps) => JSX.Element;
5
+ declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, setDeploymentHistoryList, deploymentHistoryList, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, scrollToTop, scrollToBottom, }: TriggerOutputProps) => JSX.Element;
6
6
  export default TriggerOutput;
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'react';
2
- import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, SortingOrder } from '../../../Common';
2
+ import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable } from '../../../Common';
3
3
  import { DeploymentStageType } from '../../constants';
4
4
  import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
5
5
 
@@ -143,12 +143,8 @@ export interface CurrentStatusType {
143
143
  status: string;
144
144
  finishedOn: string;
145
145
  artifact: string;
146
- message: string;
147
- podStatus: string;
148
146
  stage: DeploymentStageType;
149
147
  type: HistoryComponentType;
150
- isJobView?: boolean;
151
- workerPodName?: string;
152
148
  }
153
149
  export interface StartDetailsType {
154
150
  startedOn: string;
@@ -184,12 +180,8 @@ export interface TriggerDetailsType {
184
180
  }
185
181
  export interface ProgressingStatusType {
186
182
  status: string;
187
- message: string;
188
- podStatus: string;
189
183
  stage: DeploymentStageType;
190
184
  type: HistoryComponentType;
191
- finishedOn?: string;
192
- workerPodName?: string;
193
185
  }
194
186
  export interface WorkerStatusType {
195
187
  message: string;
@@ -206,7 +198,6 @@ export interface FinishedType {
206
198
  }
207
199
  export interface TriggerDetailsStatusIconType {
208
200
  status: string;
209
- isDeploymentWindowInfo?: boolean;
210
201
  }
211
202
  export interface LogsRendererType {
212
203
  triggerDetails: History;
@@ -330,6 +321,18 @@ export interface TriggerOutputProps extends RenderRunSourceType {
330
321
  deploymentHistoryResult: Pick<DeploymentHistoryResult, 'result'>;
331
322
  setFetchTriggerIdData: React.Dispatch<React.SetStateAction<FetchIdDataStatus>>;
332
323
  setTriggerHistory: React.Dispatch<React.SetStateAction<Map<Number, History>>>;
324
+ scrollToTop: ReturnType<typeof useScrollable>[1];
325
+ scrollToBottom: ReturnType<typeof useScrollable>[2];
326
+ }
327
+ export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentHistoryList' | 'setDeploymentHistoryList' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts'> {
328
+ triggerDetails: History;
329
+ loading: boolean;
330
+ userApprovalMetadata: UserApprovalMetadataType;
331
+ triggeredByEmail: string;
332
+ artifactId: number;
333
+ ciPipelineId: number;
334
+ resourceId?: number;
335
+ renderRunSource: (runSource: RunSourceType, isDeployedInThisResource: boolean) => JSX.Element;
333
336
  }
334
337
  export interface DeploymentStatusDetailBreakdownType {
335
338
  deploymentStatusDetailsBreakdownData: DeploymentStatusDetailsBreakdownDataType;
@@ -368,8 +371,6 @@ export interface DeploymentTemplateHistoryType {
368
371
  isUnpublished?: boolean;
369
372
  isDeleteDraft?: boolean;
370
373
  rootClassName?: string;
371
- comparisonBodyClassName?: string;
372
- sortOrder?: SortingOrder;
373
374
  }
374
375
  export interface DeploymentHistoryDetailRes extends ResponseType {
375
376
  result?: DeploymentHistoryDetail;
@@ -5,3 +5,4 @@ export declare const getParsedTriggerHistory: (result: any) => DeploymentHistory
5
5
  export declare const buildHoverHtmlForWebhook: (eventName: any, condition: any, selectors: any) => JSX.Element;
6
6
  export declare const renderIcon: (iconState: string) => JSX.Element;
7
7
  export declare const getStageStatusIcon: (status: StageStatusType) => JSX.Element;
8
+ export declare const getTriggerStatusIcon: (triggerDetailStatus: string) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { KeyValueTableProps } from './KeyValueTable.types';
2
2
 
3
- export declare const KeyValueTable: <K extends string>({ config, maskValue, isSortable, headerComponent, onChange, onDelete, placeholder, isAdditionNotAllowed, readOnly, showError, validationSchema, errorMessages, onError, }: KeyValueTableProps<K>) => JSX.Element;
3
+ export declare const KeyValueTable: <K extends string>({ config, maskValue, isSortable, headerComponent, onChange, onDelete, placeholder, isAdditionNotAllowed, }: KeyValueTableProps<K>) => JSX.Element;
@@ -60,10 +60,8 @@ export interface KeyValueTableProps<K extends string> {
60
60
  isSortable?: boolean;
61
61
  /** An optional React node for a custom header component. */
62
62
  headerComponent?: ReactNode;
63
- /** When true, data addition field will not be shown. */
63
+ /** When true, data addition field will not be shown */
64
64
  isAdditionNotAllowed?: boolean;
65
- /** When true, data add or update is disabled. */
66
- readOnly?: boolean;
67
65
  /**
68
66
  * An optional function to handle changes in the table rows.
69
67
  * @param rowId - The id of the row that changed.
@@ -76,25 +74,4 @@ export interface KeyValueTableProps<K extends string> {
76
74
  * @param deletedRowIndex - The index of the row that was deleted.
77
75
  */
78
76
  onDelete?: (deletedRowId: string | number) => void;
79
- /**
80
- * Indicates whether to show errors.
81
- */
82
- showError?: boolean;
83
- /**
84
- * The function to use to validate the value of the cell.
85
- * @param value - The value to validate.
86
- * @param key - The row key of the value.
87
- * @returns Return true if the value is valid, otherwise false
88
- * and set `showError` to `true` and provide errorMessages array to show error message.
89
- */
90
- validationSchema?: (value: string, key: K) => boolean;
91
- /**
92
- * An array of error messages to be displayed in the cell error tooltip.
93
- */
94
- errorMessages?: string[];
95
- /**
96
- * A callback function called when an error occurs.
97
- * @param errorState - The error state, true when any cell has error, otherwise false.
98
- */
99
- onError?: (errorState: boolean) => void;
100
77
  }
@@ -81,5 +81,5 @@ import { SelectPickerProps } from './type';
81
81
  * <SelectPicker ... showSelectedOptionsCount />
82
82
  * ```
83
83
  */
84
- declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, variant, ...props }: SelectPickerProps) => JSX.Element;
84
+ declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, ...props }: SelectPickerProps) => JSX.Element;
85
85
  export default SelectPicker;
@@ -6,5 +6,5 @@ export declare const SelectPickerClearIndicator: (props: ClearIndicatorProps<Sel
6
6
  export declare const SelectPickerControl: ({ icon, showSelectedOptionIcon, ...props }: ControlProps<SelectPickerOptionType> & Pick<SelectPickerProps, 'icon' | 'showSelectedOptionIcon'>) => JSX.Element;
7
7
  export declare const SelectPickerValueContainer: ({ showSelectedOptionsCount, ...props }: ValueContainerProps<SelectPickerOptionType> & Pick<SelectPickerProps, 'showSelectedOptionsCount'>) => JSX.Element;
8
8
  export declare const SelectPickerLoadingIndicator: () => JSX.Element;
9
- export declare const SelectPickerOption: ({ disableDescriptionEllipsis }: SelectPickerProps) => (props: OptionProps<SelectPickerOptionType>) => JSX.Element;
9
+ export declare const SelectPickerOption: (props: OptionProps<SelectPickerOptionType>) => JSX.Element;
10
10
  export declare const SelectPickerMenuList: ({ renderMenuListFooter, ...props }: MenuListProps<SelectPickerOptionType> & Pick<SelectPickerProps, 'renderMenuListFooter'>) => JSX.Element;
@@ -1,3 +1,2 @@
1
1
  export { default as SelectPicker } from './SelectPicker.component';
2
2
  export * from './type';
3
- export { getSelectPickerOptionByValue } from './utils';
@@ -17,10 +17,6 @@ export interface SelectPickerOptionType extends OptionType<number | string, Reac
17
17
  */
18
18
  endIcon?: ReactElement;
19
19
  }
20
- export declare enum SelectPickerVariantType {
21
- DEFAULT = "default",
22
- BORDERLESS = "borderless"
23
- }
24
20
  type SelectProps = ReactSelectProps<SelectPickerOptionType>;
25
21
  export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'isLoading' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder'>, Required<Pick<SelectProps, 'classNamePrefix' | 'inputId' | 'name'>> {
26
22
  /**
@@ -74,17 +70,5 @@ export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value'
74
70
  * @default 'ComponentSizeType.small'
75
71
  */
76
72
  menuSize?: ComponentSizeType;
77
- /**
78
- * Variant of the select.
79
- *
80
- * @default SelectPickerVariantType.DEFAULT
81
- */
82
- variant?: SelectPickerVariantType;
83
- /**
84
- * Disables the ellipsis on description, it will be shown in full width, wrapped if required.
85
- *
86
- * @default false
87
- */
88
- disableDescriptionEllipsis?: boolean;
89
73
  }
90
74
  export {};
@@ -1,13 +1,4 @@
1
- import { GroupBase, OptionsOrGroups, StylesConfig } from 'react-select';
1
+ import { StylesConfig } from 'react-select';
2
2
  import { SelectPickerOptionType, SelectPickerProps } from './type';
3
3
 
4
- export declare const getCommonSelectStyle: ({ error, size, menuSize, variant, }: Pick<SelectPickerProps, 'error' | 'size' | 'menuSize' | 'variant'>) => StylesConfig<SelectPickerOptionType>;
5
- /**
6
- * Retrieves an option from the options list based on the provided value.
7
- *
8
- * @param optionsList - The list of options or groups of options.
9
- * @param value - The value to compare against the options' values.
10
- * @param defaultOption - The default option to return if no match is found.
11
- * @returns The matched option or the default option if no match is found.
12
- */
13
- export declare const getSelectPickerOptionByValue: (optionsList: OptionsOrGroups<SelectPickerOptionType, GroupBase<SelectPickerOptionType>>, value: string | number, defaultOption?: SelectPickerOptionType) => SelectPickerOptionType;
4
+ export declare const getCommonSelectStyle: ({ error, size, menuSize, }: Pick<SelectPickerProps, 'error' | 'size' | 'menuSize'>) => StylesConfig<SelectPickerOptionType>;
@@ -1,5 +1,5 @@
1
1
  interface ShowMoreTextProps {
2
2
  text: string;
3
3
  }
4
- export declare const ShowMoreText: ({ text }: ShowMoreTextProps) => JSX.Element;
5
- export {};
4
+ declare const ShowMoreText: ({ text }: ShowMoreTextProps) => JSX.Element;
5
+ export default ShowMoreText;
@@ -0,0 +1 @@
1
+ export { default as ShowMoreText } from './ShowMoreText';
@@ -33,7 +33,5 @@ export * from './IframeContainer';
33
33
  export * from './Plugin';
34
34
  export * from './KeyValueTable';
35
35
  export * from './SelectPicker';
36
- export * from './CollapsibleList';
37
- export * from './DeploymentConfigDiff';
36
+ export * from './ShowMoreText';
38
37
  export * from './DetectBottom';
39
- export * from './Collapse';
@@ -1,5 +1,4 @@
1
1
  import { ReactElement } from 'react';
2
- import { Pair } from 'yaml';
3
2
  import { MaterialInfo, SortingOrder } from '../Common';
4
3
  import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
5
4
  import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
@@ -26,7 +25,6 @@ export declare const getGitCommitInfo: (materialInfo: MaterialInfo) => GitTrigge
26
25
  export declare const stringComparatorBySortOrder: (a: string, b: string, sortOrder?: SortingOrder, isCaseSensitive?: boolean) => number;
27
26
  export declare const numberComparatorBySortOrder: (a: number, b: number, sortOrder?: SortingOrder) => number;
28
27
  export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
29
- export declare const yamlComparatorBySortOrder: (a: Pair, b: Pair, sortOrder?: SortingOrder) => number;
30
28
  export declare const useIntersection: (target: React.RefObject<Element> | Element | null, options?: IntersectionOptions, callback?: IntersectionChangeHandler) => boolean;
31
29
  export declare const isNullOrUndefined: (value: unknown) => boolean;
32
30
  export declare const handleDisableSubmitOnEnter: (event: React.KeyboardEvent<HTMLFormElement>) => void;
@@ -1,9 +1,7 @@
1
- import { ResponseType } from '../../Common';
2
- import { CIMaterialInfoType, GetCITriggerInfoParamsType, AppEnvDeploymentConfigDTO, AppEnvDeploymentConfigPayloadType } from './app.types';
1
+ import { CIMaterialInfoType, GetCITriggerInfoParamsType } from './app.types';
3
2
 
4
3
  export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<CIMaterialInfoType>;
5
4
  /**
6
5
  * The only difference between this and getCITriggerInfo is it doesn't have env and trigger related meta info
7
6
  */
8
7
  export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, 'ciArtifactId'>) => Promise<CIMaterialInfoType>;
9
- export declare const getAppEnvDeploymentConfig: (params: AppEnvDeploymentConfigPayloadType, signal?: AbortSignal) => Promise<ResponseType<AppEnvDeploymentConfigDTO>>;
@@ -93,120 +93,4 @@ export interface GetCITriggerInfoParamsType {
93
93
  envId: number | string;
94
94
  ciArtifactId: number | string;
95
95
  }
96
- export declare enum AppEnvDeploymentConfigType {
97
- PUBLISHED_ONLY = "PublishedOnly",
98
- DRAFT_ONLY = "DraftOnly",
99
- PUBLISHED_WITH_DRAFT = "PublishedWithDraft",
100
- PREVIOUS_DEPLOYMENTS = "PreviousDeployments",
101
- DEFAULT_VERSION = "DefaultVersion"
102
- }
103
- export interface DraftMetadataDTO {
104
- appId: number;
105
- envId: number;
106
- resource: number;
107
- resourceName: string;
108
- action: number;
109
- data: string;
110
- userComment: string;
111
- changeProposed: boolean;
112
- protectNotificationConfig: {
113
- [key: string]: null;
114
- };
115
- draftId: number;
116
- draftVersionId: number;
117
- draftState: number;
118
- approvers: string[];
119
- canApprove: boolean;
120
- commentsCount: number;
121
- dataEncrypted: boolean;
122
- isAppAdmin: boolean;
123
- }
124
- export interface ConfigDatum {
125
- name: string;
126
- type: string;
127
- external: boolean;
128
- data: Record<string, string>;
129
- defaultData: Record<string, string>;
130
- global: boolean;
131
- externalType: string;
132
- esoSecretData: {};
133
- defaultESOSecretData: {};
134
- secretData: Record<string, string>;
135
- defaultSecretData: Record<string, string>;
136
- roleARN: string;
137
- subPath: boolean;
138
- filePermission: string;
139
- overridden: boolean;
140
- mountPath?: string;
141
- defaultMountPath?: string;
142
- }
143
- export interface ConfigMapSecretDataConfigDatumDTO extends ConfigDatum {
144
- draftMetadata: DraftMetadataDTO;
145
- }
146
- export interface ConfigMapSecretDataType {
147
- id: number;
148
- appId: number;
149
- configData: ConfigMapSecretDataConfigDatumDTO[];
150
- }
151
- export declare enum ConfigResourceType {
152
- ConfigMap = "ConfigMap",
153
- Secret = "Secret",
154
- DeploymentTemplate = "Deployment Template"
155
- }
156
- export interface DeploymentTemplateDTO {
157
- resourceType: ConfigResourceType.DeploymentTemplate;
158
- data: {
159
- [key: string]: any;
160
- };
161
- deploymentDraftData: ConfigMapSecretDataType | null;
162
- }
163
- export interface ConfigMapSecretDataDTO {
164
- resourceType: Extract<ConfigResourceType, ConfigResourceType.ConfigMap | ConfigResourceType.Secret>;
165
- data: ConfigMapSecretDataType;
166
- }
167
- export interface AppEnvDeploymentConfigDTO {
168
- deploymentTemplate: DeploymentTemplateDTO | null;
169
- configMapData: ConfigMapSecretDataDTO | null;
170
- secretsData: ConfigMapSecretDataDTO | null;
171
- isAppAdmin: boolean;
172
- }
173
- export interface AppEnvDeploymentConfigPayloadType {
174
- appName: string;
175
- envName: string;
176
- configType: AppEnvDeploymentConfigType;
177
- identifierId?: number;
178
- pipelineId?: number;
179
- resourceType?: ConfigResourceType;
180
- resourceId?: number;
181
- resourceName?: string;
182
- }
183
- export declare enum TemplateListType {
184
- DefaultVersions = 1,
185
- PublishedOnEnvironments = 2,
186
- DeployedOnSelfEnvironment = 3,
187
- DeployedOnOtherEnvironment = 4
188
- }
189
- export interface TemplateListDTO {
190
- chartRefId: number;
191
- chartVersion?: string;
192
- chartType?: string;
193
- type: TemplateListType;
194
- environmentId?: number;
195
- environmentName?: string;
196
- deploymentTemplateHistoryId?: number;
197
- finishedOn?: string;
198
- status?: string;
199
- pipelineId?: number;
200
- }
201
- export declare enum DraftState {
202
- Init = 1,
203
- Discarded = 2,
204
- Published = 3,
205
- AwaitApproval = 4
206
- }
207
- export declare enum EnvResourceType {
208
- ConfigMap = "configmap",
209
- Secret = "secrets",
210
- DeploymentTemplate = "deployment-template"
211
- }
212
96
  export {};
@@ -347,6 +347,12 @@ export declare const statusColor: {
347
347
  unabletofetch: string;
348
348
  hibernating: string;
349
349
  };
350
+ export declare const PULSATING_STATUS_MAP: {
351
+ progressing: boolean;
352
+ initiating: boolean;
353
+ starting: boolean;
354
+ running: boolean;
355
+ };
350
356
  export declare const APP_STATUS_HEADERS: string[];
351
357
  export declare const MATERIAL_EXCLUDE_TIPPY_TEXT = "Not available for build as this commit contains changes in excluded files or folders";
352
358
  export declare const AppListConstants: {