@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.
- package/dist/Common/CIPipeline.Types.d.ts +0 -1
- package/dist/Common/Policy.Types.d.ts +37 -21
- package/dist/Common/Types.d.ts +7 -7
- package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
- package/dist/Shared/Components/Plugin/types.d.ts +15 -1
- package/dist/Shared/types.d.ts +1 -1
- package/dist/{cssMode-BwbkD8aM.js → cssMode-D-KUqydA.js} +1 -1
- package/dist/{freemarker2-Ap_rFCGx.js → freemarker2-BHU7QcB7.js} +1 -1
- package/dist/{handlebars-D4wsr1mt.js → handlebars-BspRjB4L.js} +1 -1
- package/dist/{html-dezaGCGx.js → html-BYlVBUxO.js} +1 -1
- package/dist/{htmlMode-D5PO5n1e.js → htmlMode-t3ySzGn2.js} +1 -1
- package/dist/{index-AdkqlXul.js → index-RkiUV6-r.js} +695 -692
- package/dist/index.d.ts +1 -0
- package/dist/index.js +348 -347
- package/dist/{javascript-Dkc3sG_w.js → javascript-Dr_IbRxV.js} +1 -1
- package/dist/{jsonMode-Bowkx3Eg.js → jsonMode-Cq-0ExD-.js} +1 -1
- package/dist/{liquid-BDoBAEEq.js → liquid-CGqxWAFI.js} +1 -1
- package/dist/{mdx-BW9NjI8y.js → mdx-BonYDReb.js} +1 -1
- package/dist/{python-CGCOatx9.js → python-wQFS9t2_.js} +1 -1
- package/dist/{razor-XmXh9c_h.js → razor-B9giaWhj.js} +1 -1
- package/dist/{tsMode-DPDADhm2.js → tsMode-B2RpydRO.js} +1 -1
- package/dist/{typescript-bEVoJgfo.js → typescript-DOpJerfI.js} +1 -1
- package/dist/{xml-DusRLrnV.js → xml-Ddczk_ys.js} +1 -1
- package/dist/{yaml-5HBlhCYx.js → yaml-B9EbA8j3.js} +1 -1
- package/package.json +1 -1
|
@@ -1,32 +1,25 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
22
|
-
|
|
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
|
-
}
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -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 {
|
|
6
|
-
import {
|
|
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
|
|
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 {};
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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)
|