@devtron-labs/devtron-fe-common-lib 0.0.9-beta-6 → 0.0.9-beta-8
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/Helper.d.ts +1 -0
- package/dist/Common/Policy.Types.d.ts +46 -0
- package/dist/Common/Types.d.ts +0 -37
- package/dist/Common/index.d.ts +1 -0
- package/dist/index.js +5926 -208
- package/package.json +2 -1
- package/src/Common/Helper.tsx +15 -0
- package/src/Common/Policy.Types.ts +51 -0
- package/src/Common/TippyCustomized.tsx +2 -1
- package/src/Common/Types.ts +1 -41
- package/src/Common/index.ts +1 -0
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { VariableType } from "./CIPipeline.Types";
|
|
2
|
+
export declare enum ApplyPolicyToStage {
|
|
3
|
+
PRE_CI = "PRE_CI",
|
|
4
|
+
POST_CI = "POST_CI",
|
|
5
|
+
PRE_OR_POST_CI = "PRE_OR_POST_CI"
|
|
6
|
+
}
|
|
7
|
+
export declare enum PluginRequiredStage {
|
|
8
|
+
PRE_CI = "preBuildStage",
|
|
9
|
+
POST_CI = "postBuildStage",
|
|
10
|
+
PRE_OR_POST_CI = "PRE_OR_POST_CI"
|
|
11
|
+
}
|
|
12
|
+
export interface DefinitionSourceType {
|
|
13
|
+
projectName: string;
|
|
14
|
+
isDueToProductionEnvironment: boolean;
|
|
15
|
+
isDueToLinkedPipeline: boolean;
|
|
16
|
+
policyName: string;
|
|
17
|
+
appName?: string;
|
|
18
|
+
clusterName?: string;
|
|
19
|
+
environmentName?: string;
|
|
20
|
+
branchNames?: string[];
|
|
21
|
+
ciPipelineName?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface MandatoryPluginDetailType {
|
|
24
|
+
id: number;
|
|
25
|
+
name: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
requiredIn: PluginRequiredStage;
|
|
28
|
+
applied?: boolean;
|
|
29
|
+
inputVariables?: VariableType[];
|
|
30
|
+
outputVariables?: VariableType[];
|
|
31
|
+
definitionSources?: DefinitionSourceType[];
|
|
32
|
+
}
|
|
33
|
+
export interface MandatoryPluginDataType {
|
|
34
|
+
pluginData: MandatoryPluginDetailType[];
|
|
35
|
+
isValidPre: boolean;
|
|
36
|
+
isValidPost: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare enum ConsequenceAction {
|
|
39
|
+
BLOCK = "BLOCK",
|
|
40
|
+
ALLOW_UNTIL_TIME = "ALLOW_UNTIL_TIME",
|
|
41
|
+
ALLOW_FOREVER = "ALLOW_FOREVER"
|
|
42
|
+
}
|
|
43
|
+
export interface ConsequenceType {
|
|
44
|
+
action: ConsequenceAction;
|
|
45
|
+
metadataField: string;
|
|
46
|
+
}
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode, CSSProperties } from 'react';
|
|
2
2
|
import { Placement } from 'tippy.js';
|
|
3
|
-
import { VariableType } from './CIPipeline.Types';
|
|
4
3
|
export interface ResponseType {
|
|
5
4
|
code: number;
|
|
6
5
|
status: string;
|
|
@@ -299,40 +298,4 @@ export interface CDMaterialResponseType {
|
|
|
299
298
|
userApprovalConfig: UserApprovalConfigType;
|
|
300
299
|
requestedUserId: number;
|
|
301
300
|
}
|
|
302
|
-
export declare enum ApplyPolicyToStage {
|
|
303
|
-
PRE_CI = "PRE_CI",
|
|
304
|
-
POST_CI = "POST_CI",
|
|
305
|
-
PRE_OR_POST_CI = "PRE_OR_POST_CI"
|
|
306
|
-
}
|
|
307
|
-
export declare enum PluginRequiredStage {
|
|
308
|
-
PRE_CI = "preBuildStage",
|
|
309
|
-
POST_CI = "postBuildStage",
|
|
310
|
-
PRE_OR_POST_CI = "PRE_OR_POST_CI"
|
|
311
|
-
}
|
|
312
|
-
export interface DefinitionSourceType {
|
|
313
|
-
projectName: string;
|
|
314
|
-
isDueToProductionEnvironment: boolean;
|
|
315
|
-
isDueToLinkedPipeline: boolean;
|
|
316
|
-
policyName: string;
|
|
317
|
-
appName?: string;
|
|
318
|
-
clusterName?: string;
|
|
319
|
-
environmentName?: string;
|
|
320
|
-
branchName?: string;
|
|
321
|
-
ciPipelineName?: string;
|
|
322
|
-
}
|
|
323
|
-
export interface MandatoryPluginDetailType {
|
|
324
|
-
id: number;
|
|
325
|
-
name: string;
|
|
326
|
-
description?: string;
|
|
327
|
-
requiredIn: PluginRequiredStage;
|
|
328
|
-
applied?: boolean;
|
|
329
|
-
inputVariables?: VariableType[];
|
|
330
|
-
outputVariables?: VariableType[];
|
|
331
|
-
definitionSources?: DefinitionSourceType[];
|
|
332
|
-
}
|
|
333
|
-
export interface MandatoryPluginDataType {
|
|
334
|
-
pluginData: MandatoryPluginDetailType[];
|
|
335
|
-
isValidPre: boolean;
|
|
336
|
-
isValidPost: boolean;
|
|
337
|
-
}
|
|
338
301
|
export {};
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -30,4 +30,5 @@ export { default as Toggle } from './Toggle/Toggle';
|
|
|
30
30
|
export { default as ScanVulnerabilitiesTable } from './Security/ScanVulnerabilitiesTable';
|
|
31
31
|
export { default as StyledRadioGroup } from './RadioGroup/RadioGroup';
|
|
32
32
|
export * from './CIPipeline.Types';
|
|
33
|
+
export * from './Policy.Types';
|
|
33
34
|
export { default as DeleteComponent } from './DeleteComponentModal/DeleteComponent';
|