@devtron-labs/devtron-fe-common-lib 0.5.8-beta-1 → 0.5.8-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.
@@ -138,7 +138,6 @@ export interface StepType {
138
138
  inlineStepDetail?: InlineStepDetailType;
139
139
  pluginRefStepDetail?: PluginRefStepDetailType;
140
140
  triggerIfParentStageFail: boolean;
141
- isMandatory?: boolean;
142
141
  }
143
142
  export interface BuildStageType {
144
143
  id: number;
@@ -1,32 +1,25 @@
1
- import { PluginDataStoreType } from '../Shared';
1
+ import { PipelineFormType } from '../Pages/Applications';
2
+ import { PluginDataStoreType, PluginDetailPayloadType, ResourceKindType } from '../Shared';
2
3
  import { VariableType } from './CIPipeline.Types';
3
4
  import { ServerErrors } from './ServerError';
4
- import { ResponseType } from './Types';
5
5
  export declare enum ApplyPolicyToStage {
6
6
  PRE_CI = "PRE_CI",
7
7
  POST_CI = "POST_CI",
8
- PRE_CD = "PRE_CD",
9
- POST_CD = "POST_CD",
10
8
  /**
11
9
  * @deprecated in mandatory plugin policy v2
12
10
  */
13
- PRE_OR_POST_CI = "PRE_OR_POST_CI"
11
+ PRE_OR_POST_CI = "PRE_OR_POST_CI",
12
+ PRE_CD = "PRE_CD",
13
+ POST_CD = "POST_CD"
14
14
  }
15
15
  export declare enum PluginRequiredStage {
16
- PRE_CI = "preBuildStage",
17
- POST_CI = "postBuildStage",
18
- PRE_OR_POST_CI = "PRE_OR_POST_CI"
16
+ PRE_STAGE = "preBuildStage",
17
+ POST_STAGE = "postBuildStage",
18
+ PRE_OR_POST_STAGE = "PRE_OR_POST_CI"
19
19
  }
20
20
  export interface DefinitionSourceType {
21
- projectName: string;
22
- isDueToProductionEnvironment: boolean;
23
- isDueToLinkedPipeline: boolean;
24
- policyName: string;
25
- appName?: string;
26
- clusterName?: string;
27
- environmentName?: string;
28
- branchNames?: string[];
29
- ciPipelineName?: string;
21
+ policyNames: string[];
22
+ linkedCIPipelineNames?: string[];
30
23
  }
31
24
  export interface MandatoryPluginDetailType {
32
25
  id: number;
@@ -38,7 +31,7 @@ export interface MandatoryPluginDetailType {
38
31
  applied?: boolean;
39
32
  inputVariables?: VariableType[];
40
33
  outputVariables?: VariableType[];
41
- definitionSources?: DefinitionSourceType[];
34
+ definitionSources?: DefinitionSourceType;
42
35
  }
43
36
  export interface MandatoryPluginDataType {
44
37
  pluginData: MandatoryPluginDetailType[];
@@ -50,6 +43,32 @@ export interface ProcessPluginDataReturnType {
50
43
  pluginDataStore: PluginDataStoreType;
51
44
  mandatoryPluginsError?: ServerErrors;
52
45
  }
46
+ export type ProcessPluginDataCIParamsType = {
47
+ resourceKind: ResourceKindType.ciPipeline;
48
+ ciPipelineId: number;
49
+ /**
50
+ * Comma separated branch names used for v1 api
51
+ * For v2 format is [branchName1],[branchName2]
52
+ */
53
+ branchName?: string;
54
+ envName?: never;
55
+ };
56
+ export type ProcessPluginDataCDParamsType = {
57
+ resourceKind: ResourceKindType.cdPipeline;
58
+ envName?: string;
59
+ ciPipelineId?: never;
60
+ branchName?: never;
61
+ };
62
+ export type ProcessPluginDataParamsType = {
63
+ formData: PipelineFormType;
64
+ pluginDataStoreState: PluginDataStoreType;
65
+ appId: number;
66
+ appName: string;
67
+ /**
68
+ * Would be sent in case we have to get data for steps
69
+ */
70
+ requiredPluginIds?: PluginDetailPayloadType['pluginId'];
71
+ } & (ProcessPluginDataCIParamsType | ProcessPluginDataCDParamsType);
53
72
  export declare enum ConsequenceAction {
54
73
  /**
55
74
  * This is used if the policy is enforced immediately.
@@ -79,6 +98,3 @@ export interface BlockedStateData {
79
98
  isCITriggerBlocked: boolean;
80
99
  ciBlockState: ConsequenceType;
81
100
  }
82
- export interface GetBlockedStateResponse extends ResponseType {
83
- result?: BlockedStateData;
84
- }
@@ -2,8 +2,8 @@ import { default as React, ReactNode, CSSProperties, ReactElement } from 'react'
2
2
  import { Placement } from 'tippy.js';
3
3
  import { UserGroupDTO } from '../Pages/GlobalConfigurations';
4
4
  import { ImageComment, ReleaseTag } from './ImageTags.Types';
5
- import { ACTION_STATE, ConsequenceType, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
6
- import { RegistryType, RuntimeParamsListItemType, Severity } from '../Shared';
5
+ import { MandatoryPluginBaseStateType, RegistryType, RuntimeParamsListItemType, Severity } from '../Shared';
6
+ import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
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 {
465
+ export interface CommonNodeAttr extends Pick<MandatoryPluginBaseStateType, 'isTriggerBlocked' | 'pluginBlockState'> {
466
466
  connectingCiPipelineId?: number;
467
467
  parents: string | number[] | string[];
468
468
  x: number;
@@ -512,12 +512,10 @@ export interface CommonNodeAttr {
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?: ConsequenceType;
521
519
  appReleaseTagNames?: string[];
522
520
  tagsEditable?: boolean;
523
521
  isGitOpsRepoNotConfigured?: boolean;
@@ -676,7 +674,7 @@ export interface CDStageConfigMapSecretNames {
676
674
  configMaps: any[];
677
675
  secrets: any[];
678
676
  }
679
- export interface PrePostDeployStageType {
677
+ export interface PrePostDeployStageType extends MandatoryPluginBaseStateType {
680
678
  isValid: boolean;
681
679
  steps: TaskErrorObj[];
682
680
  triggerType: string;
@@ -713,6 +711,8 @@ export interface CdPipeline {
713
711
  preDeployStage?: PrePostDeployStageType;
714
712
  postDeployStage?: PrePostDeployStageType;
715
713
  isProdEnv?: boolean;
714
+ isGitOpsRepoNotConfigured?: boolean;
715
+ isDeploymentBlocked?: boolean;
716
716
  }
717
717
  export interface ExternalCiConfig {
718
718
  id: number;
@@ -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, }: InfoIconTippyProps) => JSX.Element;
2
+ declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, }: InfoIconTippyProps) => JSX.Element;
3
3
  export default InfoIconTippy;
@@ -1,5 +1,5 @@
1
1
  import { MutableRefObject } from 'react';
2
- import { VariableType } from '../../../Common';
2
+ import { ConsequenceType, VariableType } from '../../../Common';
3
3
  import { BaseFilterQueryParams } from '../../types';
4
4
  import { ImageWithFallbackProps } from '../ImageWithFallback';
5
5
  import { getPluginStoreData } from './service';
@@ -187,4 +187,18 @@ export interface PluginTagsContainerProps {
187
187
  export interface PluginImageContainerProps extends Pick<ImageWithFallbackProps, 'imageProps'> {
188
188
  fallbackImageClassName?: string;
189
189
  }
190
+ export declare enum PipelineStageTaskActionModalType {
191
+ DELETE = "DELETE",
192
+ MOVE_PLUGIN = "MOVE_PLUGIN"
193
+ }
194
+ export interface PipelineStageTaskActionModalStateType {
195
+ type: PipelineStageTaskActionModalType;
196
+ pluginId: PluginDetailType['id'];
197
+ taskIndex: number;
198
+ }
199
+ export interface MandatoryPluginBaseStateType {
200
+ isOffendingMandatoryPlugin: boolean;
201
+ isTriggerBlocked: boolean;
202
+ pluginBlockState: ConsequenceType;
203
+ }
190
204
  export {};
@@ -376,8 +376,8 @@ export declare enum ResourceKindType {
376
376
  tenant = "tenant",
377
377
  installation = "installation",
378
378
  environment = "environment",
379
- ciPipeline = "ci-pipeline",
380
379
  cdPipeline = "cd-pipeline",
380
+ ciPipeline = "ci-pipeline",
381
381
  project = "project"
382
382
  }
383
383
  /**
@@ -1,7 +1,7 @@
1
1
  var Fe = Object.defineProperty;
2
2
  var Le = (e, n, i) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => Le(e, typeof n != "symbol" ? n + "" : n, i);
4
- import { m as je } from "./index-AdkqlXul.js";
4
+ import { m as je } from "./index-RkiUV6-r.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as f } from "./index-AdkqlXul.js";
1
+ import { m as f } from "./index-RkiUV6-r.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as l } from "./index-AdkqlXul.js";
1
+ import { m as l } from "./index-RkiUV6-r.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as s } from "./index-AdkqlXul.js";
1
+ import { m as s } from "./index-RkiUV6-r.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,7 +1,7 @@
1
1
  var Be = Object.defineProperty;
2
2
  var $e = (e, n, i) => n in e ? Be(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => $e(e, typeof n != "symbol" ? n + "" : n, i);
4
- import { m as qe } from "./index-AdkqlXul.js";
4
+ import { m as qe } from "./index-RkiUV6-r.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)