@devtron-labs/devtron-fe-common-lib 0.5.2-beta-6 → 0.5.2-beta-7

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 (79) hide show
  1. package/dist/Common/CIPipeline.Types.d.ts +1 -0
  2. package/dist/Common/Constants.d.ts +3 -0
  3. package/dist/Common/Policy.Types.d.ts +20 -49
  4. package/dist/Common/Types.d.ts +11 -12
  5. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/DTApplicationMetricsFormField.d.ts +3 -0
  6. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/constants.d.ts +2 -0
  7. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/index.d.ts +4 -0
  8. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/service.d.ts +4 -0
  9. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +171 -0
  10. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +2 -0
  11. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/constants.d.ts +5 -0
  12. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/index.d.ts +5 -0
  13. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +27 -0
  14. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +2 -0
  15. package/dist/Pages/{CDPipeline → Applications/DevtronApps/Details/CDPipeline}/types.d.ts +4 -4
  16. package/dist/Pages/{App → Applications/DevtronApps/Details}/index.d.ts +1 -0
  17. package/dist/Pages/Applications/DevtronApps/index.d.ts +1 -0
  18. package/dist/Pages/Applications/index.d.ts +1 -0
  19. package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +2 -2
  20. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +1 -1
  21. package/dist/Pages/index.d.ts +1 -2
  22. package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
  23. package/dist/Shared/Components/Button/types.d.ts +6 -0
  24. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiff.d.ts +1 -1
  25. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +1 -1
  26. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +1 -1
  27. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +2 -3
  28. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +1 -1
  29. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +1 -1
  30. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +4 -2
  31. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +1 -1
  32. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
  33. package/dist/Shared/Components/FeatureDescription/index.d.ts +0 -1
  34. package/dist/Shared/Components/FeatureDescription/types.d.ts +0 -6
  35. package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
  36. package/dist/Shared/Components/InvalidYAMLTippy/InvalidYAMLTippyWrapper.d.ts +3 -0
  37. package/dist/Shared/Components/InvalidYAMLTippy/constants.d.ts +1 -0
  38. package/dist/Shared/Components/InvalidYAMLTippy/index.d.ts +2 -0
  39. package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +6 -0
  40. package/dist/Shared/Components/InvalidYAMLTippy/utils.d.ts +2 -0
  41. package/dist/Shared/Components/Plugin/service.d.ts +3 -3
  42. package/dist/Shared/Components/Plugin/types.d.ts +2 -19
  43. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  44. package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
  45. package/dist/Shared/Components/SelectPicker/constants.d.ts +5 -0
  46. package/dist/Shared/Components/SelectPicker/type.d.ts +15 -23
  47. package/dist/Shared/Components/SelectPicker/utils.d.ts +1 -2
  48. package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +9 -1
  49. package/dist/Shared/Components/index.d.ts +1 -0
  50. package/dist/Shared/Hooks/useForm/useForm.d.ts +29 -26
  51. package/dist/Shared/Hooks/useForm/useForm.types.d.ts +15 -8
  52. package/dist/Shared/Hooks/useForm/useForm.utils.d.ts +1 -1
  53. package/dist/Shared/Services/app.types.d.ts +35 -22
  54. package/dist/Shared/constants.d.ts +3 -1
  55. package/dist/Shared/types.d.ts +13 -4
  56. package/dist/Shared/validations.d.ts +0 -3
  57. package/dist/assets/index.css +1 -1
  58. package/dist/{cssMode-DfmQev0b.js → cssMode-BzAJNNfO.js} +1 -1
  59. package/dist/{freemarker2-BUbjZvd6.js → freemarker2-C5v7rdGk.js} +1 -1
  60. package/dist/{handlebars-CpIW24AH.js → handlebars-Cl_Athu7.js} +1 -1
  61. package/dist/{html-CI5uIkug.js → html-BhmbKvsl.js} +1 -1
  62. package/dist/{htmlMode-D-jvXMLS.js → htmlMode-Eh-qZm_q.js} +1 -1
  63. package/dist/{index-CAwcOytl.js → index-B3Nto1wx.js} +24783 -24619
  64. package/dist/index.d.ts +0 -1
  65. package/dist/index.js +545 -527
  66. package/dist/{javascript-zzz_OdE1.js → javascript-C9CMizZO.js} +1 -1
  67. package/dist/{jsonMode-B4f5UJjc.js → jsonMode-CrNdCxMf.js} +1 -1
  68. package/dist/{liquid-BJ7l4LRn.js → liquid-OSTTmxyA.js} +1 -1
  69. package/dist/{mdx-mgJriR82.js → mdx-Bl4Q7X-Y.js} +1 -1
  70. package/dist/{python-BgwhELJY.js → python-BRbo-lxI.js} +1 -1
  71. package/dist/{razor-CT2-n1-P.js → razor-CH6gsgck.js} +1 -1
  72. package/dist/{tsMode-DqTzAnCd.js → tsMode-CD1RkTWx.js} +1 -1
  73. package/dist/{typescript-CO631RmF.js → typescript-CiU-skWG.js} +1 -1
  74. package/dist/{xml-_9tqHjHQ.js → xml-BKlUFTP7.js} +1 -1
  75. package/dist/{yaml-Bnn975os.js → yaml-B98Fk6S4.js} +1 -1
  76. package/package.json +1 -1
  77. package/dist/Pages/App/AppConfigurations/index.d.ts +0 -1
  78. package/dist/Pages/App/AppConfigurations/utils.d.ts +0 -2
  79. /package/dist/Pages/{CDPipeline → Applications/DevtronApps/Details/CDPipeline}/index.d.ts +0 -0
@@ -138,6 +138,7 @@ export interface StepType {
138
138
  inlineStepDetail?: InlineStepDetailType;
139
139
  pluginRefStepDetail?: PluginRefStepDetailType;
140
140
  triggerIfParentStageFail: boolean;
141
+ isMandatory?: boolean;
141
142
  }
142
143
  export interface BuildStageType {
143
144
  id: number;
@@ -5,6 +5,7 @@ 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
7
  export declare const DOCUMENTATION: {
8
+ APP_METRICS: string;
8
9
  APP_TAGS: string;
9
10
  APP_OVERVIEW_TAGS: string;
10
11
  BLOB_STORAGE: string;
@@ -48,6 +49,7 @@ export declare const URLS: {
48
49
  export declare const ROUTES: {
49
50
  APP: string;
50
51
  APP_ARTIFACT_PROMOTE_MATERIAL: string;
52
+ APP_TEMPLATE_DATA: string;
51
53
  PROJECT_LIST_MIN: string;
52
54
  USER_CHECK_ROLE: string;
53
55
  IMAGE_TAGGING: string;
@@ -250,6 +252,7 @@ export declare const API_STATUS_CODES: {
250
252
  PERMISSION_DENIED: number;
251
253
  NOT_FOUND: number;
252
254
  EXPECTATION_FAILED: number;
255
+ LOCKED: number;
253
256
  };
254
257
  export declare enum SERVER_MODE {
255
258
  EA_ONLY = "EA_ONLY",
@@ -1,24 +1,27 @@
1
- import { PluginDataStoreType, PluginDetailPayloadType, ResourceKindType } from '../Shared';
2
- import { FormType, VariableType } from './CIPipeline.Types';
1
+ import { PluginDataStoreType } from '../Shared';
2
+ import { VariableType } from './CIPipeline.Types';
3
3
  import { ServerErrors } from './ServerError';
4
+ import { ResponseType } from './Types';
4
5
  export declare enum ApplyPolicyToStage {
5
6
  PRE_CI = "PRE_CI",
6
7
  POST_CI = "POST_CI",
7
- /**
8
- * @deprecated in mandatory plugin policy v2
9
- */
10
- PRE_OR_POST_CI = "PRE_OR_POST_CI",
11
- PRE_CD = "PRE_CD",
12
- POST_CD = "POST_CD"
8
+ PRE_OR_POST_CI = "PRE_OR_POST_CI"
13
9
  }
14
10
  export declare enum PluginRequiredStage {
15
- PRE_STAGE = "preBuildStage",
16
- POST_STAGE = "postBuildStage",
17
- PRE_OR_POST_STAGE = "PRE_OR_POST_CI"
11
+ PRE_CI = "preBuildStage",
12
+ POST_CI = "postBuildStage",
13
+ PRE_OR_POST_CI = "PRE_OR_POST_CI"
18
14
  }
19
15
  export interface DefinitionSourceType {
20
- policyNames: string[];
21
- linkedCIPipelineNames?: string[];
16
+ projectName: string;
17
+ isDueToProductionEnvironment: boolean;
18
+ isDueToLinkedPipeline: boolean;
19
+ policyName: string;
20
+ appName?: string;
21
+ clusterName?: string;
22
+ environmentName?: string;
23
+ branchNames?: string[];
24
+ ciPipelineName?: string;
22
25
  }
23
26
  export interface MandatoryPluginDetailType {
24
27
  id: number;
@@ -30,7 +33,7 @@ export interface MandatoryPluginDetailType {
30
33
  applied?: boolean;
31
34
  inputVariables?: VariableType[];
32
35
  outputVariables?: VariableType[];
33
- definitionSources?: DefinitionSourceType;
36
+ definitionSources?: DefinitionSourceType[];
34
37
  }
35
38
  export interface MandatoryPluginDataType {
36
39
  pluginData: MandatoryPluginDetailType[];
@@ -42,44 +45,9 @@ export interface ProcessPluginDataReturnType {
42
45
  pluginDataStore: PluginDataStoreType;
43
46
  mandatoryPluginsError?: ServerErrors;
44
47
  }
45
- export type ProcessPluginDataCIParamsType = {
46
- resourceKind: ResourceKindType.ciPipeline;
47
- ciPipelineId: number;
48
- /**
49
- * Comma separated branch names used for v1 api
50
- * For v2 format is [branchName1],[branchName2]
51
- */
52
- branchName?: string;
53
- envName?: never;
54
- };
55
- export type ProcessPluginDataCDParamsType = {
56
- resourceKind: ResourceKindType.cdPipeline;
57
- envName?: string;
58
- ciPipelineId?: never;
59
- branchName?: never;
60
- };
61
- export type ProcessPluginDataParamsType = {
62
- formData: FormType;
63
- pluginDataStoreState: PluginDataStoreType;
64
- appId: number;
65
- appName: string;
66
- /**
67
- * Would be sent in case we have to get data for steps
68
- */
69
- requiredPluginIds: PluginDetailPayloadType['pluginId'];
70
- } & (ProcessPluginDataCIParamsType | ProcessPluginDataCDParamsType);
71
48
  export declare enum ConsequenceAction {
72
- /**
73
- * This is used if the policy is enforced immediately.
74
- */
75
49
  BLOCK = "BLOCK",
76
- /**
77
- * This is used if the policy will be enforced after a certain timestamp.
78
- */
79
50
  ALLOW_UNTIL_TIME = "ALLOW_UNTIL_TIME",
80
- /**
81
- * This is used if the policy is not enforced yet (just to show waring).
82
- */
83
51
  ALLOW_FOREVER = "ALLOW_FOREVER"
84
52
  }
85
53
  export interface ConsequenceType {
@@ -91,3 +59,6 @@ export interface BlockedStateData {
91
59
  isCITriggerBlocked: boolean;
92
60
  ciBlockState: ConsequenceType;
93
61
  }
62
+ export interface GetBlockedStateResponse extends ResponseType {
63
+ result?: BlockedStateData;
64
+ }
@@ -3,7 +3,7 @@ import { Placement } from 'tippy.js';
3
3
  import { UserGroupDTO } from '../Pages/GlobalConfigurations';
4
4
  import { ImageComment, ReleaseTag } from './ImageTags.Types';
5
5
  import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
6
- import { MandatoryPluginNodeType, RegistryType, RuntimeParamsListItemType, Severity } from '../Shared';
6
+ import { RegistryType, RuntimeParamsListItemType, Severity } from '../Shared';
7
7
  /**
8
8
  * Generic response type object with support for overriding the result type
9
9
  *
@@ -462,7 +462,7 @@ export interface DownstreamNodesEnvironmentsType {
462
462
  environmentId: number;
463
463
  environmentName: string;
464
464
  }
465
- export interface CommonNodeAttr extends Pick<MandatoryPluginNodeType, 'isTriggerBlocked' | 'pluginBlockState'> {
465
+ export interface CommonNodeAttr {
466
466
  connectingCiPipelineId?: number;
467
467
  parents: string | number[] | string[];
468
468
  x: number;
@@ -512,10 +512,15 @@ export interface CommonNodeAttr extends Pick<MandatoryPluginNodeType, 'isTrigger
512
512
  approvalUsers?: string[];
513
513
  userApprovalConfig?: UserApprovalConfigType;
514
514
  requestedUserId?: number;
515
- showPluginWarning: boolean;
515
+ showPluginWarning?: boolean;
516
516
  helmPackageName?: string;
517
517
  isVirtualEnvironment?: boolean;
518
518
  deploymentAppType?: DeploymentAppTypes;
519
+ isCITriggerBlocked?: boolean;
520
+ ciBlockState?: {
521
+ action: any;
522
+ metadataField: string;
523
+ };
519
524
  appReleaseTagNames?: string[];
520
525
  tagsEditable?: boolean;
521
526
  isGitOpsRepoNotConfigured?: boolean;
@@ -656,6 +661,8 @@ export interface AppEnvironment {
656
661
  isProtected?: boolean;
657
662
  pipelineId?: number;
658
663
  latestCdWorkflowRunnerId?: number;
664
+ commits?: string[];
665
+ ciArtifactId?: number;
659
666
  }
660
667
  export interface Strategy {
661
668
  deploymentTemplate: string;
@@ -672,7 +679,7 @@ export interface CDStageConfigMapSecretNames {
672
679
  configMaps: any[];
673
680
  secrets: any[];
674
681
  }
675
- export interface PrePostDeployStageType extends MandatoryPluginNodeType {
682
+ export interface PrePostDeployStageType {
676
683
  isValid: boolean;
677
684
  steps: TaskErrorObj[];
678
685
  triggerType: string;
@@ -709,8 +716,6 @@ export interface CdPipeline {
709
716
  preDeployStage?: PrePostDeployStageType;
710
717
  postDeployStage?: PrePostDeployStageType;
711
718
  isProdEnv?: boolean;
712
- isGitOpsRepoNotConfigured?: boolean;
713
- isDeploymentBlocked?: boolean;
714
719
  }
715
720
  export interface ExternalCiConfig {
716
721
  id: number;
@@ -776,12 +781,6 @@ export interface CiPipeline {
776
781
  isOffendingMandatoryPlugin?: boolean;
777
782
  pipelineType?: string;
778
783
  }
779
- export interface DeploymentChartVersionType {
780
- chartRefId: number;
781
- chartVersion: string;
782
- chartType: string;
783
- type: number;
784
- }
785
784
  export interface ChartVersionAndTypeSelectorProps {
786
785
  setSelectedChartRefId: React.Dispatch<React.SetStateAction<number>>;
787
786
  }
@@ -0,0 +1,3 @@
1
+ import { DTApplicationMetricsFormFieldProps } from './types';
2
+ declare const DTApplicationMetricsFormField: ({ showApplicationMetrics, isLoading, selectedChart, isDisabled, toggleAppMetrics, isAppMetricsEnabled, onlyShowCurrentStatus, parsingError, restoreLastSavedYAML, }: DTApplicationMetricsFormFieldProps) => JSX.Element;
3
+ export default DTApplicationMetricsFormField;
@@ -0,0 +1,2 @@
1
+ import { GetResolvedDeploymentTemplateReturnType } from './types';
2
+ export declare const GET_RESOLVED_DEPLOYMENT_TEMPLATE_EMPTY_RESPONSE: GetResolvedDeploymentTemplateReturnType;
@@ -0,0 +1,4 @@
1
+ export * from './types';
2
+ export * from './service';
3
+ export { default as DTApplicationMetricsFormField } from './DTApplicationMetricsFormField';
4
+ export { GET_RESOLVED_DEPLOYMENT_TEMPLATE_EMPTY_RESPONSE } from './constants';
@@ -0,0 +1,4 @@
1
+ import { ResponseType } from '../../../../../../Common/Types';
2
+ import { GetDeploymentManifestProps, GetResolvedDeploymentTemplateProps, GetResolvedDeploymentTemplateReturnType, ResolvedDeploymentTemplateDTO } from './types';
3
+ export declare const getDeploymentManifest: (params: GetDeploymentManifestProps, abortSignal?: AbortSignal) => Promise<ResponseType<ResolvedDeploymentTemplateDTO>>;
4
+ export declare const getResolvedDeploymentTemplate: (params: GetResolvedDeploymentTemplateProps, signal?: AbortSignal) => Promise<GetResolvedDeploymentTemplateReturnType>;
@@ -0,0 +1,171 @@
1
+ import { DraftMetadataDTO, TemplateListType } from '../../../../../../Shared/Services';
2
+ import { OverrideMergeStrategyType } from '../types';
3
+ export type DeploymentChartOptionkind = 'base' | 'env' | 'chartVersion' | 'deployment';
4
+ export interface DeploymentChartVersionType {
5
+ id: number | string;
6
+ version: string;
7
+ /**
8
+ * BEWARE: This field may or may not exist, not sure why it was there in first place
9
+ */
10
+ chartRefId?: number;
11
+ type: number;
12
+ deploymentTemplateHistoryId: number;
13
+ pipelineId: number;
14
+ environmentId: number;
15
+ name: string;
16
+ description?: string;
17
+ isAppMetricsSupported: boolean;
18
+ userUploaded?: boolean;
19
+ }
20
+ export interface DeploymentChartOptionType extends DeploymentChartVersionType {
21
+ value: string | number;
22
+ label: string;
23
+ kind?: DeploymentChartOptionkind;
24
+ }
25
+ export interface ChartMetadataType {
26
+ chartDescription: string;
27
+ }
28
+ export interface GetResolvedDeploymentTemplateReturnType {
29
+ resolvedData: string;
30
+ data: string;
31
+ areVariablesPresent: boolean;
32
+ }
33
+ export declare enum ValuesAndManifestFlagDTO {
34
+ DEPLOYMENT_TEMPLATE = 1,
35
+ MANIFEST = 2
36
+ }
37
+ type GetResolvedDeploymentTemplateCustomValuesPayloadType = {
38
+ /**
39
+ * String to be resolved
40
+ */
41
+ values: string;
42
+ type?: never;
43
+ deploymentTemplateHistoryId?: never;
44
+ pipelineId?: never;
45
+ };
46
+ type GetHistoricResolvedDeploymentTemplatePayloadType = {
47
+ values?: never;
48
+ type: TemplateListType;
49
+ deploymentTemplateHistoryId: number;
50
+ pipelineId: number;
51
+ };
52
+ type GetDeploymentTemplateAndManifestBasePayload = {
53
+ appId: number;
54
+ /**
55
+ * EnvId for the given VALUE
56
+ */
57
+ envId?: number;
58
+ chartRefId: number;
59
+ } & (GetHistoricResolvedDeploymentTemplatePayloadType | GetResolvedDeploymentTemplateCustomValuesPayloadType);
60
+ export type GetResolvedDeploymentTemplatePayloadType = {
61
+ valuesAndManifestFlag: ValuesAndManifestFlagDTO.DEPLOYMENT_TEMPLATE;
62
+ } & GetDeploymentTemplateAndManifestBasePayload;
63
+ export type GetResolvedDeploymentTemplateProps = GetResolvedDeploymentTemplatePayloadType;
64
+ export type GetDeploymentManifestProps = GetDeploymentTemplateAndManifestBasePayload;
65
+ export type GetDeploymentManifestPayloadType = {
66
+ valuesAndManifestFlag: ValuesAndManifestFlagDTO.MANIFEST;
67
+ } & GetDeploymentTemplateAndManifestBasePayload;
68
+ export interface ResolvedDeploymentTemplateDTO {
69
+ /**
70
+ * Template with encoded variables
71
+ */
72
+ data: string;
73
+ /**
74
+ * Template with resolved variables
75
+ */
76
+ resolvedData: string;
77
+ variableSnapshot: Record<string, string>;
78
+ }
79
+ export interface ManifestTemplateDTO extends Pick<ResolvedDeploymentTemplateDTO, 'data'> {
80
+ }
81
+ interface DeploymentTemplateChartConfigType {
82
+ id: number;
83
+ /**
84
+ * Not consumed on UI just need to send in payload while update
85
+ */
86
+ refChartTemplate: string;
87
+ /**
88
+ * Not consumed on UI just need to send in payload while update
89
+ */
90
+ refChartTemplateVersion: string;
91
+ chartRefId: number;
92
+ readme: string;
93
+ }
94
+ export interface SelectedChartDetailsType {
95
+ selectedChartRefId: number;
96
+ selectedChart: DeploymentChartVersionType;
97
+ }
98
+ interface EnvironmentConfigType {
99
+ id: number;
100
+ status: number;
101
+ manualReviewed: boolean;
102
+ active: boolean;
103
+ namespace: string;
104
+ }
105
+ interface BaseDeploymentTemplateConfigState {
106
+ chartConfig: DeploymentTemplateChartConfigType;
107
+ isOverridden?: never;
108
+ environmentConfig?: never;
109
+ mergeStrategy?: never;
110
+ }
111
+ interface EnvironmentOverrideDeploymentTemplateConfigState {
112
+ chartConfig?: never;
113
+ isOverridden: boolean;
114
+ environmentConfig: EnvironmentConfigType;
115
+ mergeStrategy: OverrideMergeStrategyType;
116
+ }
117
+ export interface DeploymentTemplateConfigCommonState extends SelectedChartDetailsType {
118
+ /**
119
+ * The first ever state of the deployment template
120
+ */
121
+ originalTemplate: Record<string, string>;
122
+ isAppMetricsEnabled: boolean;
123
+ readme: string;
124
+ schema: Record<string, string>;
125
+ guiSchema: string;
126
+ latestDraft?: DraftMetadataDTO;
127
+ editorTemplate: string;
128
+ editorTemplateWithoutLockedKeys: string;
129
+ }
130
+ export type DeploymentTemplateConfigState = DeploymentTemplateConfigCommonState & (BaseDeploymentTemplateConfigState | EnvironmentOverrideDeploymentTemplateConfigState);
131
+ type DTApplicationMetricsReadOnlyProps = {
132
+ isLoading?: never;
133
+ selectedChart?: never;
134
+ isDisabled?: never;
135
+ toggleAppMetrics?: never;
136
+ /**
137
+ * @default - false
138
+ * If true, would only text depicting the information whether the application metrics is enabled or not
139
+ */
140
+ onlyShowCurrentStatus: true;
141
+ parsingError?: never;
142
+ restoreLastSavedYAML?: never;
143
+ };
144
+ type DTApplicationMetricsParseErrorProps = {
145
+ parsingError: string;
146
+ restoreLastSavedYAML: () => void;
147
+ } | {
148
+ parsingError?: never;
149
+ restoreLastSavedYAML?: never;
150
+ };
151
+ type DTApplicationMetricsActionProps = {
152
+ isLoading: boolean;
153
+ selectedChart: DeploymentChartVersionType;
154
+ isDisabled: boolean;
155
+ toggleAppMetrics: () => void;
156
+ onlyShowCurrentStatus?: false;
157
+ } & DTApplicationMetricsParseErrorProps;
158
+ export type DTApplicationMetricsFormFieldProps = {
159
+ isAppMetricsEnabled: boolean;
160
+ showApplicationMetrics: boolean;
161
+ } & (DTApplicationMetricsActionProps | DTApplicationMetricsReadOnlyProps);
162
+ export declare enum CompareFromApprovalOptionsValuesType {
163
+ APPROVAL_PENDING = 1,
164
+ VALUES_FROM_DRAFT = 2
165
+ }
166
+ export declare enum DryRunEditorMode {
167
+ APPROVAL_PENDING = "approvalPending",
168
+ VALUES_FROM_DRAFT = "valuesFromDraft",
169
+ PUBLISHED_VALUES = "publishedValues"
170
+ }
171
+ export {};
@@ -0,0 +1,2 @@
1
+ declare const OverrideStrategyTippyContent: () => JSX.Element;
2
+ export default OverrideStrategyTippyContent;
@@ -0,0 +1,5 @@
1
+ import { ConfigHeaderTabType } from './types';
2
+ export declare const CONFIG_HEADER_TAB_VALUES: {
3
+ BASE_DEPLOYMENT_TEMPLATE: ConfigHeaderTabType[];
4
+ OVERRIDE: ConfigHeaderTabType[];
5
+ };
@@ -0,0 +1,5 @@
1
+ export * from './DeploymentTemplate';
2
+ export * from './types';
3
+ export * from './constants';
4
+ export { default as OverrideStrategyTippyContent } from './OverrideStrategyTippyContent';
5
+ export { getDeploymentStageTitle } from './utils';
@@ -0,0 +1,27 @@
1
+ import { ReactNode, SyntheticEvent } from 'react';
2
+ export declare enum ConfigHeaderTabType {
3
+ VALUES = "values",
4
+ INHERITED = "inherited",
5
+ DRY_RUN = "dryRun"
6
+ }
7
+ export declare enum ProtectConfigTabsType {
8
+ PUBLISHED = "published",
9
+ COMPARE = "compare",
10
+ EDIT_DRAFT = "editDraft"
11
+ }
12
+ export declare enum OverrideMergeStrategyType {
13
+ PATCH = "patch",
14
+ REPLACE = "replace"
15
+ }
16
+ export interface ConfigToolbarPopupMenuConfigType {
17
+ text: string;
18
+ onClick: (event: SyntheticEvent) => void;
19
+ dataTestId: string;
20
+ disabled?: boolean;
21
+ icon?: ReactNode | null;
22
+ variant?: 'default' | 'negative';
23
+ }
24
+ export declare enum ConfigToolbarPopupNodeType {
25
+ DISCARD_DRAFT = "discardDraft",
26
+ EDIT_HISTORY = "editHistory"
27
+ }
@@ -0,0 +1,2 @@
1
+ import { DeploymentStageType } from '../../../../../Shared/constants';
2
+ export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "-" | "deployment" | "pre-deployment" | "post-deployment";
@@ -1,7 +1,7 @@
1
- import { BuildStageType, FormType } from '../../Common/CIPipeline.Types';
2
- import { DeploymentAppTypes, UserApprovalConfigType } from '../../Common/Types';
3
- import { DeploymentStrategy } from '../../Shared/Components';
4
- import { EnvListMinDTO } from '../../Shared/types';
1
+ import { BuildStageType, FormType } from '../../../../../Common/CIPipeline.Types';
2
+ import { DeploymentAppTypes, UserApprovalConfigType } from '../../../../../Common/Types';
3
+ import { DeploymentStrategy } from '../../../../../Shared/Components';
4
+ import { EnvListMinDTO } from '../../../../../Shared/types';
5
5
  interface ConfigSecretType {
6
6
  label: string;
7
7
  value: string;
@@ -1 +1,2 @@
1
1
  export * from './AppConfigurations';
2
+ export * from './CDPipeline';
@@ -0,0 +1 @@
1
+ export * from './Details';
@@ -0,0 +1 @@
1
+ export * from './DevtronApps';
@@ -1,3 +1,3 @@
1
- import { BuildInfraDescriptorProps } from './types';
2
- declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }: BuildInfraDescriptorProps) => JSX.Element;
1
+ import { DescriptorProps } from './types';
2
+ declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }: DescriptorProps) => JSX.Element;
3
3
  export default Descriptor;
@@ -48,7 +48,7 @@ export declare enum BuildInfraProfileVariants {
48
48
  NORMAL = "NORMAL",
49
49
  CUSTOM = "CUSTOM"
50
50
  }
51
- export interface BuildInfraDescriptorProps {
51
+ export interface DescriptorProps {
52
52
  /**
53
53
  * In case we want to restrict the max-width
54
54
  */
@@ -1,4 +1,3 @@
1
1
  export * from './GlobalConfigurations';
2
2
  export * from './ResourceBrowser';
3
- export * from './CDPipeline';
4
- export * from './App';
3
+ export * from './Applications';
@@ -63,5 +63,5 @@ import { ButtonProps } from './types';
63
63
  * <Button icon={<ICCube />} ariaLabel="Label" />
64
64
  * ```
65
65
  */
66
- declare const Button: ({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, ...props }: ButtonProps) => JSX.Element;
66
+ declare const Button: ({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, fullWidth, ...props }: ButtonProps) => JSX.Element;
67
67
  export default Button;
@@ -74,6 +74,12 @@ export type ButtonProps = ({
74
74
  * @default false
75
75
  */
76
76
  disabled?: boolean;
77
+ /**
78
+ * Determines if the button should expand to fill the full width of its container.
79
+ *
80
+ * @default false
81
+ */
82
+ fullWidth?: boolean;
77
83
  } & ({
78
84
  /**
79
85
  * If true, the tooltip is shown for the button
@@ -1,2 +1,2 @@
1
1
  import { DeploymentHistoryConfigDiffProps } from './types';
2
- export declare const DeploymentHistoryConfigDiff: ({ appName, envName, pipelineId, wfrId, triggerHistory, setFullScreenView, runSource, resourceId, renderRunSource, }: DeploymentHistoryConfigDiffProps) => JSX.Element;
2
+ export declare const DeploymentHistoryConfigDiff: ({ appName, envName, pipelineId, wfrId, triggerHistory, setFullScreenView, resourceId, renderRunSource, }: DeploymentHistoryConfigDiffProps) => JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { DeploymentHistoryDiffDetailedProps } from './types';
2
- export declare const DeploymentHistoryConfigDiffCompare: ({ envName, setFullScreenView, pipelineDeployments, wfrId, previousWfrId, convertVariables, setConvertVariables, runSource, renderRunSource, resourceId, isCompareDeploymentConfigNotAvailable, ...props }: DeploymentHistoryDiffDetailedProps) => JSX.Element;
2
+ export declare const DeploymentHistoryConfigDiffCompare: ({ envName, setFullScreenView, pipelineDeployments, wfrId, previousWfrId, convertVariables, setConvertVariables, triggerHistory, renderRunSource, resourceId, isCompareDeploymentConfigNotAvailable, ...props }: DeploymentHistoryDiffDetailedProps) => JSX.Element;
@@ -3,4 +3,4 @@ import { History } from '../types';
3
3
  import { DeploymentHistoryConfigDiffProps } from './types';
4
4
  export declare const renderDeploymentHistoryConfig: (config: DeploymentConfigDiffProps["configList"], heading: string, pathname: string, hideDiffState: boolean) => JSX.Element;
5
5
  export declare const renderPipelineDeploymentStatusIcon: (status: string) => JSX.Element;
6
- export declare const renderPipelineDeploymentOptionDescription: ({ stage, triggeredBy, triggeredByEmail, artifact, renderRunSource, resourceId, runSource, }: Pick<History, "triggeredBy" | "triggeredByEmail" | "artifact" | "stage"> & Pick<DeploymentHistoryConfigDiffProps, "renderRunSource" | "resourceId" | "runSource">) => JSX.Element;
6
+ export declare const renderPipelineDeploymentOptionDescription: ({ stage, triggeredBy, triggeredByEmail, artifact, renderRunSource, resourceId, runSource, }: Pick<History, "triggeredBy" | "triggeredByEmail" | "artifact" | "stage" | "runSource"> & Pick<DeploymentHistoryConfigDiffProps, "renderRunSource" | "resourceId">) => JSX.Element;
@@ -1,17 +1,16 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
2
  import { DeploymentConfigDiffProps } from '@Shared/Components/DeploymentConfigDiff';
3
3
  import { EnvResourceType } from '../../../Services';
4
- import { History, HistoryLogsProps, RunSourceType } from '../types';
4
+ import { History, HistoryLogsProps } from '../types';
5
5
  export interface DeploymentHistoryConfigDiffProps extends Required<Pick<HistoryLogsProps, 'renderRunSource' | 'resourceId'>> {
6
6
  appName: string;
7
7
  envName: string;
8
8
  pipelineId: number;
9
9
  wfrId: number;
10
- runSource: RunSourceType;
11
10
  triggerHistory: Map<number, History>;
12
11
  setFullScreenView: (fullscreen: boolean) => void;
13
12
  }
14
- export type DeploymentHistoryDiffDetailedProps = Pick<DeploymentConfigDiffProps, 'collapsibleNavList' | 'configList' | 'errorConfig' | 'isLoading' | 'navList' | 'hideDiffState'> & Required<Pick<DeploymentHistoryConfigDiffProps, 'setFullScreenView' | 'wfrId' | 'envName' | 'renderRunSource' | 'resourceId' | 'runSource'>> & {
13
+ export type DeploymentHistoryDiffDetailedProps = Pick<DeploymentConfigDiffProps, 'collapsibleNavList' | 'configList' | 'errorConfig' | 'isLoading' | 'navList' | 'hideDiffState'> & Required<Pick<DeploymentHistoryConfigDiffProps, 'setFullScreenView' | 'wfrId' | 'envName' | 'renderRunSource' | 'resourceId' | 'triggerHistory'>> & {
15
14
  pipelineDeployments: History[];
16
15
  previousWfrId: number;
17
16
  convertVariables: boolean;
@@ -8,7 +8,7 @@ export declare const getPipelineDeploymentsWfrIds: ({ pipelineDeployments, wfrId
8
8
  currentWfrId: number;
9
9
  previousWfrId: number;
10
10
  };
11
- export declare const getPipelineDeploymentsOptions: ({ pipelineDeployments, wfrId, renderRunSource, resourceId, runSource, }: Required<Pick<DeploymentHistoryConfigDiffProps, "renderRunSource" | "runSource" | "resourceId">> & {
11
+ export declare const getPipelineDeploymentsOptions: ({ pipelineDeployments, wfrId, renderRunSource, resourceId, triggerHistory, }: Required<Pick<DeploymentHistoryConfigDiffProps, "renderRunSource" | "resourceId" | "triggerHistory">> & {
12
12
  pipelineDeployments: History[];
13
13
  wfrId: number;
14
14
  }) => {
@@ -1,2 +1,2 @@
1
1
  import { DeploymentConfigDiffProps } from './DeploymentConfigDiff.types';
2
- export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, isNavHelpTextShowingError, tabConfig, showDetailedDiffState, hideDiffState, renderedInDrawer, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
2
+ export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, isNavHelpTextShowingError, tabConfig, errorConfig, showDetailedDiffState, hideDiffState, renderedInDrawer, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { SortingOrder } from '../../../Common/Constants';
2
- import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType, ManifestTemplateDTO } from '../../Services';
2
+ import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType } from '../../Services';
3
+ import { ManifestTemplateDTO } from '../../../Pages/Applications';
3
4
  import { DeploymentHistoryDetail } from '../CICDHistory';
4
5
  import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
5
6
  import { SelectPickerProps } from '../SelectPicker';
@@ -37,6 +38,7 @@ export type DeploymentConfigDiffSelectPickerProps = {
37
38
  selectPickerProps: SelectPickerProps;
38
39
  };
39
40
  export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem, 'href' | 'title' | 'onClick'> {
41
+ Icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
40
42
  diffState: DeploymentConfigListItem['diffState'];
41
43
  }
42
44
  export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig, 'id' | 'header' | 'noItemsText'> {
@@ -83,7 +85,7 @@ export interface DeploymentConfigDiffProps {
83
85
  };
84
86
  renderedInDrawer?: boolean;
85
87
  }
86
- export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'isNavHelpTextShowingError' | 'tabConfig' | 'showDetailedDiffState' | 'hideDiffState'> {
88
+ export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'tabConfig' | 'errorConfig' | 'isNavHelpTextShowingError' | 'showDetailedDiffState' | 'hideDiffState'> {
87
89
  }
88
90
  export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig' | 'scopeVariablesConfig' | 'showDetailedDiffState' | 'hideDiffState'> {
89
91
  }
@@ -1,2 +1,2 @@
1
1
  import { DeploymentConfigDiffNavigationProps } from './DeploymentConfigDiff.types';
2
- export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, isNavHelpTextShowingError, tabConfig, showDetailedDiffState, hideDiffState, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
2
+ export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, isNavHelpTextShowingError, tabConfig, errorConfig, showDetailedDiffState, hideDiffState, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { DescriptorProps } from './types';
2
- declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, showInfoIcon, }: DescriptorProps) => JSX.Element;
2
+ declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, }: DescriptorProps) => JSX.Element;
3
3
  export default FeatureTitleWithInfo;
@@ -1,3 +1,2 @@
1
1
  export * from './FeatureDescriptionModal';
2
2
  export { default as FeatureTitleWithInfo } from './FeatureTitleWithInfo';
3
- export * from './types';
@@ -20,10 +20,4 @@ export interface DescriptorProps extends FeatureDescriptionModalProps {
20
20
  docLinkText?: string;
21
21
  dataTestId?: string;
22
22
  additionalContent?: ReactNode;
23
- /**
24
- * If true, the info icon is displayed which when clicked shows the feature description modal
25
- *
26
- * @default false
27
- */
28
- showInfoIcon?: boolean;
29
23
  }
@@ -1,3 +1,3 @@
1
1
  import { InfoIconTippyProps } from '../../../Common/Types';
2
- declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, }: InfoIconTippyProps) => JSX.Element;
2
+ declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, }: InfoIconTippyProps) => JSX.Element;
3
3
  export default InfoIconTippy;
@@ -0,0 +1,3 @@
1
+ import { InvalidYAMLTippyWrapperProps } from './types';
2
+ declare const InvalidYAMLTippyWrapper: ({ parsingError, restoreLastSavedYAML, children }: InvalidYAMLTippyWrapperProps) => JSX.Element;
3
+ export default InvalidYAMLTippyWrapper;