@devtron-labs/devtron-fe-common-lib 1.1.6-beta-4 → 1.1.6-beta-5
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/Types.d.ts +15 -1
- package/dist/Shared/types.d.ts +19 -1
- package/dist/{cssMode--71rLUMi.js → cssMode-0yJ7e6IZ.js} +1 -1
- package/dist/{freemarker2-Cx3qG0cs.js → freemarker2-D4QfmbvG.js} +1 -1
- package/dist/{handlebars-Bt2uqG8b.js → handlebars-BPfTbad8.js} +1 -1
- package/dist/{html-DU7HWII4.js → html-CqjcPRya.js} +1 -1
- package/dist/{htmlMode-C_jemX66.js → htmlMode-CP6arrAi.js} +1 -1
- package/dist/{index-DFjnZKpc.js → index-DWQmgQlY.js} +6607 -6605
- package/dist/index.js +263 -262
- package/dist/{javascript-tR3wsqWc.js → javascript-DZorxUEz.js} +1 -1
- package/dist/{jsonMode-CPHJoMDt.js → jsonMode-Dyws5QA1.js} +1 -1
- package/dist/{liquid-Cp4TQ7hL.js → liquid-BKRZnxM9.js} +1 -1
- package/dist/{mdx-DP3ktqo6.js → mdx-BFtQumAP.js} +1 -1
- package/dist/{python-7adrB-AP.js → python-DQiPaoOf.js} +1 -1
- package/dist/{razor-DgqIzp1R.js → razor-DpkSSGVJ.js} +1 -1
- package/dist/{tsMode-DEn7IgUV.js → tsMode-DbjA76K2.js} +1 -1
- package/dist/{typescript-BIIti-S_.js → typescript-BcW8u-MZ.js} +1 -1
- package/dist/{xml-BTCrcRFQ.js → xml-D4BfkDaf.js} +1 -1
- package/dist/{yaml-7Qg03Fvh.js → yaml-DN711t0M.js} +1 -1
- package/package.json +1 -1
package/dist/Common/Types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { TippyProps } from '@tippyjs/react';
|
|
|
3
3
|
import { Placement } from 'tippy.js';
|
|
4
4
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
|
5
5
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
6
|
-
import { MandatoryPluginBaseStateType, RegistryType, RuntimeParamsListItemType, Severity } from '../Shared';
|
|
6
|
+
import { MandatoryPluginBaseStateType, PolicyBlockInfo, RegistryType, RuntimeParamsListItemType, Severity } from '../Shared';
|
|
7
7
|
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
|
8
8
|
/**
|
|
9
9
|
* Generic response type object with support for overriding the result type
|
|
@@ -432,6 +432,7 @@ export interface CDMaterialType {
|
|
|
432
432
|
* Would currently only be received in case of release
|
|
433
433
|
*/
|
|
434
434
|
appWorkflowId: number;
|
|
435
|
+
deploymentBlockedState?: PolicyBlockInfo;
|
|
435
436
|
}
|
|
436
437
|
export declare enum CDMaterialServiceEnum {
|
|
437
438
|
ROLLBACK = "rollback",
|
|
@@ -468,6 +469,14 @@ export interface DownstreamNodesEnvironmentsType {
|
|
|
468
469
|
environmentId: number;
|
|
469
470
|
environmentName: string;
|
|
470
471
|
}
|
|
472
|
+
export declare enum TriggerBlockType {
|
|
473
|
+
MANDATORY_TAG = "mandatory-tags",
|
|
474
|
+
MANDATORY_PLUGIN = "mandatory-plugins"
|
|
475
|
+
}
|
|
476
|
+
export interface TriggerBlockedInfo {
|
|
477
|
+
blockedBy: TriggerBlockType;
|
|
478
|
+
blockedReason?: string;
|
|
479
|
+
}
|
|
471
480
|
export interface CommonNodeAttr extends Pick<MandatoryPluginBaseStateType, 'isTriggerBlocked' | 'pluginBlockState'> {
|
|
472
481
|
connectingCiPipelineId?: number;
|
|
473
482
|
parents: string | number[] | string[];
|
|
@@ -530,6 +539,7 @@ export interface CommonNodeAttr extends Pick<MandatoryPluginBaseStateType, 'isTr
|
|
|
530
539
|
downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
|
|
531
540
|
cipipelineId?: number;
|
|
532
541
|
isDeploymentBlocked?: boolean;
|
|
542
|
+
triggerBlockedInfo?: TriggerBlockedInfo;
|
|
533
543
|
}
|
|
534
544
|
export declare enum DeploymentAppTypes {
|
|
535
545
|
HELM = "helm",
|
|
@@ -593,6 +603,7 @@ export interface CDMaterialsMetaInfo {
|
|
|
593
603
|
*/
|
|
594
604
|
requestedUserId: number;
|
|
595
605
|
runtimeParams: RuntimeParamsListItemType[];
|
|
606
|
+
deploymentBlockedState?: PolicyBlockInfo;
|
|
596
607
|
}
|
|
597
608
|
export interface ImagePromotionMaterialInfo {
|
|
598
609
|
isApprovalPendingForPromotion: boolean;
|
|
@@ -686,6 +697,7 @@ export interface PrePostDeployStageType extends MandatoryPluginBaseStateType {
|
|
|
686
697
|
triggerType: string;
|
|
687
698
|
name: string;
|
|
688
699
|
status: string;
|
|
700
|
+
triggerBlockedInfo?: TriggerBlockedInfo;
|
|
689
701
|
}
|
|
690
702
|
export interface CdPipeline {
|
|
691
703
|
id: number;
|
|
@@ -719,6 +731,8 @@ export interface CdPipeline {
|
|
|
719
731
|
isProdEnv?: boolean;
|
|
720
732
|
isGitOpsRepoNotConfigured?: boolean;
|
|
721
733
|
isDeploymentBlocked?: boolean;
|
|
734
|
+
isTriggerBlocked?: boolean;
|
|
735
|
+
triggerBlockedInfo?: TriggerBlockedInfo;
|
|
722
736
|
}
|
|
723
737
|
export interface ExternalCiConfig {
|
|
724
738
|
id: number;
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
|
2
|
-
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams } from '../Common';
|
|
2
|
+
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams, TriggerBlockType } from '../Common';
|
|
3
3
|
import { KeyValueListType } from './Components';
|
|
4
4
|
import { EnvironmentTypeEnum, PatchOperationType } from './constants';
|
|
5
5
|
export declare enum EnvType {
|
|
@@ -739,4 +739,22 @@ export interface PreventOutsideFocusProps {
|
|
|
739
739
|
identifier: string;
|
|
740
740
|
preventFocus: boolean;
|
|
741
741
|
}
|
|
742
|
+
export interface PolicyBlockInfo {
|
|
743
|
+
isBlocked: boolean;
|
|
744
|
+
blockedBy: TriggerBlockType;
|
|
745
|
+
reason: string;
|
|
746
|
+
}
|
|
747
|
+
export interface PipelineStageBlockInfo {
|
|
748
|
+
node: PolicyBlockInfo;
|
|
749
|
+
pre: PolicyBlockInfo;
|
|
750
|
+
post: PolicyBlockInfo;
|
|
751
|
+
}
|
|
752
|
+
export interface PolicyConsequencesDTO {
|
|
753
|
+
cd: PipelineStageBlockInfo;
|
|
754
|
+
ci: PipelineStageBlockInfo;
|
|
755
|
+
}
|
|
756
|
+
export interface GetPolicyConsequencesProps {
|
|
757
|
+
appId: number;
|
|
758
|
+
envId: number;
|
|
759
|
+
}
|
|
742
760
|
export {};
|
|
@@ -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-DWQmgQlY.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-DWQmgQlY.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-DWQmgQlY.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-DWQmgQlY.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-DWQmgQlY.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|