@devtron-labs/devtron-fe-common-lib 0.5.2-beta-5 → 0.5.2-beta-6
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 -22
- package/dist/Common/Types.d.ts +6 -9
- 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-Hixbayok.js → cssMode-DfmQev0b.js} +1 -1
- package/dist/{freemarker2-sBG0oISq.js → freemarker2-BUbjZvd6.js} +1 -1
- package/dist/{handlebars-BmbnkCfS.js → handlebars-CpIW24AH.js} +1 -1
- package/dist/{html-Bnkc9hN_.js → html-CI5uIkug.js} +1 -1
- package/dist/{htmlMode-Dv8WaCCf.js → htmlMode-D-jvXMLS.js} +1 -1
- package/dist/{index-q-jijQMR.js → index-CAwcOytl.js} +677 -674
- package/dist/index.d.ts +1 -0
- package/dist/index.js +262 -261
- package/dist/{javascript-0r3eUoTp.js → javascript-zzz_OdE1.js} +1 -1
- package/dist/{jsonMode-CWqMlJxc.js → jsonMode-B4f5UJjc.js} +1 -1
- package/dist/{liquid-CZ1pBSkN.js → liquid-BJ7l4LRn.js} +1 -1
- package/dist/{mdx-MXmKS6Fd.js → mdx-mgJriR82.js} +1 -1
- package/dist/{python-DmBjig7B.js → python-BgwhELJY.js} +1 -1
- package/dist/{razor-05gEIOA-.js → razor-CT2-n1-P.js} +1 -1
- package/dist/{tsMode-CyshpHZ5.js → tsMode-DqTzAnCd.js} +1 -1
- package/dist/{typescript-DUNW6mKb.js → typescript-CO631RmF.js} +1 -1
- package/dist/{xml-B7XQjPKD.js → xml-_9tqHjHQ.js} +1 -1
- package/dist/{yaml-DyvbilSx.js → yaml-Bnn975os.js} +1 -1
- package/package.json +1 -1
|
@@ -1,32 +1,24 @@
|
|
|
1
|
-
import { PluginDataStoreType } from '../Shared';
|
|
2
|
-
import { VariableType } from './CIPipeline.Types';
|
|
1
|
+
import { PluginDataStoreType, PluginDetailPayloadType, ResourceKindType } from '../Shared';
|
|
2
|
+
import { FormType, VariableType } from './CIPipeline.Types';
|
|
3
3
|
import { ServerErrors } from './ServerError';
|
|
4
|
-
import { ResponseType } from './Types';
|
|
5
4
|
export declare enum ApplyPolicyToStage {
|
|
6
5
|
PRE_CI = "PRE_CI",
|
|
7
6
|
POST_CI = "POST_CI",
|
|
8
|
-
PRE_CD = "PRE_CD",
|
|
9
|
-
POST_CD = "POST_CD",
|
|
10
7
|
/**
|
|
11
8
|
* @deprecated in mandatory plugin policy v2
|
|
12
9
|
*/
|
|
13
|
-
PRE_OR_POST_CI = "PRE_OR_POST_CI"
|
|
10
|
+
PRE_OR_POST_CI = "PRE_OR_POST_CI",
|
|
11
|
+
PRE_CD = "PRE_CD",
|
|
12
|
+
POST_CD = "POST_CD"
|
|
14
13
|
}
|
|
15
14
|
export declare enum PluginRequiredStage {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
PRE_STAGE = "preBuildStage",
|
|
16
|
+
POST_STAGE = "postBuildStage",
|
|
17
|
+
PRE_OR_POST_STAGE = "PRE_OR_POST_CI"
|
|
19
18
|
}
|
|
20
19
|
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;
|
|
20
|
+
policyNames: string[];
|
|
21
|
+
linkedCIPipelineNames?: string[];
|
|
30
22
|
}
|
|
31
23
|
export interface MandatoryPluginDetailType {
|
|
32
24
|
id: number;
|
|
@@ -38,7 +30,7 @@ export interface MandatoryPluginDetailType {
|
|
|
38
30
|
applied?: boolean;
|
|
39
31
|
inputVariables?: VariableType[];
|
|
40
32
|
outputVariables?: VariableType[];
|
|
41
|
-
definitionSources?: DefinitionSourceType
|
|
33
|
+
definitionSources?: DefinitionSourceType;
|
|
42
34
|
}
|
|
43
35
|
export interface MandatoryPluginDataType {
|
|
44
36
|
pluginData: MandatoryPluginDetailType[];
|
|
@@ -50,6 +42,32 @@ export interface ProcessPluginDataReturnType {
|
|
|
50
42
|
pluginDataStore: PluginDataStoreType;
|
|
51
43
|
mandatoryPluginsError?: ServerErrors;
|
|
52
44
|
}
|
|
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);
|
|
53
71
|
export declare enum ConsequenceAction {
|
|
54
72
|
/**
|
|
55
73
|
* This is used if the policy is enforced immediately.
|
|
@@ -73,6 +91,3 @@ export interface BlockedStateData {
|
|
|
73
91
|
isCITriggerBlocked: boolean;
|
|
74
92
|
ciBlockState: ConsequenceType;
|
|
75
93
|
}
|
|
76
|
-
export interface GetBlockedStateResponse extends ResponseType {
|
|
77
|
-
result?: BlockedStateData;
|
|
78
|
-
}
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -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 { RegistryType, RuntimeParamsListItemType, Severity } from '../Shared';
|
|
6
|
+
import { MandatoryPluginNodeType, 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 {
|
|
465
|
+
export interface CommonNodeAttr extends Pick<MandatoryPluginNodeType, 'isTriggerBlocked' | 'pluginBlockState'> {
|
|
466
466
|
connectingCiPipelineId?: number;
|
|
467
467
|
parents: string | number[] | string[];
|
|
468
468
|
x: number;
|
|
@@ -512,15 +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?: {
|
|
521
|
-
action: any;
|
|
522
|
-
metadataField: string;
|
|
523
|
-
};
|
|
524
519
|
appReleaseTagNames?: string[];
|
|
525
520
|
tagsEditable?: boolean;
|
|
526
521
|
isGitOpsRepoNotConfigured?: boolean;
|
|
@@ -677,7 +672,7 @@ export interface CDStageConfigMapSecretNames {
|
|
|
677
672
|
configMaps: any[];
|
|
678
673
|
secrets: any[];
|
|
679
674
|
}
|
|
680
|
-
export interface PrePostDeployStageType {
|
|
675
|
+
export interface PrePostDeployStageType extends MandatoryPluginNodeType {
|
|
681
676
|
isValid: boolean;
|
|
682
677
|
steps: TaskErrorObj[];
|
|
683
678
|
triggerType: string;
|
|
@@ -714,6 +709,8 @@ export interface CdPipeline {
|
|
|
714
709
|
preDeployStage?: PrePostDeployStageType;
|
|
715
710
|
postDeployStage?: PrePostDeployStageType;
|
|
716
711
|
isProdEnv?: boolean;
|
|
712
|
+
isGitOpsRepoNotConfigured?: boolean;
|
|
713
|
+
isDeploymentBlocked?: boolean;
|
|
717
714
|
}
|
|
718
715
|
export interface ExternalCiConfig {
|
|
719
716
|
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 TaskActionModalType {
|
|
191
|
+
DELETE = "DELETE",
|
|
192
|
+
MOVE_PLUGIN = "MOVE_PLUGIN"
|
|
193
|
+
}
|
|
194
|
+
export interface TaskActionModalStateType {
|
|
195
|
+
type: TaskActionModalType;
|
|
196
|
+
pluginId: PluginDetailType['id'];
|
|
197
|
+
taskIndex: number;
|
|
198
|
+
}
|
|
199
|
+
export interface MandatoryPluginNodeType {
|
|
200
|
+
isOffendingMandatoryPlugin: boolean;
|
|
201
|
+
isTriggerBlocked: boolean;
|
|
202
|
+
pluginBlockState: ConsequenceType;
|
|
203
|
+
}
|
|
190
204
|
export {};
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -375,8 +375,8 @@ export declare enum ResourceKindType {
|
|
|
375
375
|
tenant = "tenant",
|
|
376
376
|
installation = "installation",
|
|
377
377
|
environment = "environment",
|
|
378
|
-
ciPipeline = "ci-pipeline",
|
|
379
378
|
cdPipeline = "cd-pipeline",
|
|
379
|
+
ciPipeline = "ci-pipeline",
|
|
380
380
|
project = "project"
|
|
381
381
|
}
|
|
382
382
|
/**
|
|
@@ -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-CAwcOytl.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-CAwcOytl.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-CAwcOytl.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-CAwcOytl.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-CAwcOytl.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|