@devtron-labs/devtron-fe-common-lib 0.0.41 → 0.0.42-beta-1
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/DebouncedSearch/DebouncedSearch.d.ts +1 -1
- package/dist/Common/DebouncedSearch/Types.d.ts +1 -0
- package/dist/Common/DevtronProgressing/DevtronProgressing.d.ts +3 -0
- package/dist/Common/DevtronProgressing/index.d.ts +1 -0
- package/dist/Common/DevtronProgressing/types.d.ts +4 -0
- package/dist/Common/Dialogs/Types.d.ts +1 -0
- package/dist/Common/Types.d.ts +136 -0
- package/dist/Common/index.d.ts +1 -0
- package/dist/index.js +169 -107
- package/package.json +1 -1
- package/src/Assets/Icon/ic-rotate-devtron.svg +103 -0
- package/src/Common/DebouncedSearch/DebouncedSearch.tsx +3 -2
- package/src/Common/DebouncedSearch/Types.ts +1 -0
- package/src/Common/DevtronProgressing/DevtronProgressing.tsx +11 -0
- package/src/Common/DevtronProgressing/index.ts +1 -0
- package/src/Common/DevtronProgressing/types.ts +4 -0
- package/src/Common/Dialogs/DeleteDialog.tsx +18 -2
- package/src/Common/Dialogs/Types.ts +1 -0
- package/src/Common/Types.ts +149 -0
- package/src/Common/index.ts +1 -0
|
@@ -12,4 +12,4 @@ import { DebouncedSearchProps } from './Types';
|
|
|
12
12
|
* @param clearSearch - (Optional) To clear the search text
|
|
13
13
|
* @param showClearIcon - (Optional) To show the clear icon default value is true
|
|
14
14
|
*/
|
|
15
|
-
export default function DebouncedSearch({ onSearch, Icon, children, placeholder, containerClass, iconClass, inputClass, debounceTimeout, clearSearch, showClearIcon, }: DebouncedSearchProps): JSX.Element;
|
|
15
|
+
export default function DebouncedSearch({ onSearch, Icon, children, placeholder, containerClass, iconClass, inputClass, debounceTimeout, clearSearch, showClearIcon, autoFocus, }: DebouncedSearchProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DevtronProgressing';
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode, CSSProperties } from 'react';
|
|
2
2
|
import { Placement } from 'tippy.js';
|
|
3
3
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
4
|
+
import { DockerConfigOverrideType, TaskErrorObj } from '.';
|
|
4
5
|
export interface ResponseType {
|
|
5
6
|
code: number;
|
|
6
7
|
status: string;
|
|
@@ -284,6 +285,7 @@ export interface CommonNodeAttr {
|
|
|
284
285
|
colorCode?: string;
|
|
285
286
|
isExternalCI?: boolean;
|
|
286
287
|
isLinkedCI?: boolean;
|
|
288
|
+
isLinkedCD?: boolean;
|
|
287
289
|
isJobCI?: boolean;
|
|
288
290
|
environmentName?: string;
|
|
289
291
|
environmentId?: number;
|
|
@@ -427,4 +429,138 @@ export interface AsyncState<T> {
|
|
|
427
429
|
export interface AsyncOptions {
|
|
428
430
|
resetOnChange: boolean;
|
|
429
431
|
}
|
|
432
|
+
export interface AppEnvironment {
|
|
433
|
+
environmentId: number;
|
|
434
|
+
environmentName: string;
|
|
435
|
+
appMetrics: boolean;
|
|
436
|
+
infraMetrics: boolean;
|
|
437
|
+
prod: boolean;
|
|
438
|
+
chartRefId?: number;
|
|
439
|
+
lastDeployed?: string;
|
|
440
|
+
lastDeployedBy?: string;
|
|
441
|
+
lastDeployedImage?: string;
|
|
442
|
+
appStatus?: string;
|
|
443
|
+
deploymentAppDeleteRequest?: boolean;
|
|
444
|
+
isVirtualEnvironment?: boolean;
|
|
445
|
+
isProtected?: boolean;
|
|
446
|
+
pipelineId?: number;
|
|
447
|
+
latestCdWorkflowRunnerId?: number;
|
|
448
|
+
}
|
|
449
|
+
export interface Strategy {
|
|
450
|
+
deploymentTemplate: string;
|
|
451
|
+
config: any;
|
|
452
|
+
default?: boolean;
|
|
453
|
+
}
|
|
454
|
+
export interface CDStage {
|
|
455
|
+
status: string;
|
|
456
|
+
name: string;
|
|
457
|
+
triggerType: 'AUTOMATIC' | 'MANUAL';
|
|
458
|
+
config: string;
|
|
459
|
+
}
|
|
460
|
+
export interface CDStageConfigMapSecretNames {
|
|
461
|
+
configMaps: any[];
|
|
462
|
+
secrets: any[];
|
|
463
|
+
}
|
|
464
|
+
export interface PrePostDeployStageType {
|
|
465
|
+
isValid: boolean;
|
|
466
|
+
steps: TaskErrorObj[];
|
|
467
|
+
triggerType: string;
|
|
468
|
+
name: string;
|
|
469
|
+
status: string;
|
|
470
|
+
}
|
|
471
|
+
export interface CdPipeline {
|
|
472
|
+
id: number;
|
|
473
|
+
environmentId: number;
|
|
474
|
+
environmentName?: string;
|
|
475
|
+
description?: string;
|
|
476
|
+
ciPipelineId: number;
|
|
477
|
+
triggerType: 'AUTOMATIC' | 'MANUAL';
|
|
478
|
+
name: string;
|
|
479
|
+
strategies?: Strategy[];
|
|
480
|
+
namespace?: string;
|
|
481
|
+
appWorkflowId?: number;
|
|
482
|
+
deploymentTemplate?: string;
|
|
483
|
+
preStage?: CDStage;
|
|
484
|
+
postStage?: CDStage;
|
|
485
|
+
preStageConfigMapSecretNames?: CDStageConfigMapSecretNames;
|
|
486
|
+
postStageConfigMapSecretNames?: CDStageConfigMapSecretNames;
|
|
487
|
+
runPreStageInEnv?: boolean;
|
|
488
|
+
runPostStageInEnv?: boolean;
|
|
489
|
+
isClusterCdActive?: boolean;
|
|
490
|
+
parentPipelineId?: number;
|
|
491
|
+
parentPipelineType?: string;
|
|
492
|
+
deploymentAppDeleteRequest?: boolean;
|
|
493
|
+
deploymentAppCreated?: boolean;
|
|
494
|
+
userApprovalConfig?: UserApprovalConfigType;
|
|
495
|
+
isVirtualEnvironment?: boolean;
|
|
496
|
+
deploymentAppType: DeploymentAppTypes;
|
|
497
|
+
helmPackageName?: string;
|
|
498
|
+
preDeployStage?: PrePostDeployStageType;
|
|
499
|
+
postDeployStage?: PrePostDeployStageType;
|
|
500
|
+
isProdEnv?: boolean;
|
|
501
|
+
}
|
|
502
|
+
export interface ExternalCiConfig {
|
|
503
|
+
id: number;
|
|
504
|
+
webhookUrl: string;
|
|
505
|
+
payload: string;
|
|
506
|
+
accessKey: string;
|
|
507
|
+
}
|
|
508
|
+
export interface Source {
|
|
509
|
+
type: string;
|
|
510
|
+
value?: string;
|
|
511
|
+
regex?: string;
|
|
512
|
+
}
|
|
513
|
+
export interface CiMaterial {
|
|
514
|
+
source: Source;
|
|
515
|
+
gitMaterialId: number;
|
|
516
|
+
id: number;
|
|
517
|
+
gitMaterialName: string;
|
|
518
|
+
isRegex?: boolean;
|
|
519
|
+
}
|
|
520
|
+
export interface Task {
|
|
521
|
+
name?: string;
|
|
522
|
+
type?: string;
|
|
523
|
+
cmd?: string;
|
|
524
|
+
args?: Array<string>;
|
|
525
|
+
}
|
|
526
|
+
export interface CiScript {
|
|
527
|
+
id: number;
|
|
528
|
+
index: number;
|
|
529
|
+
name: string;
|
|
530
|
+
script: string;
|
|
531
|
+
outputLocation?: string;
|
|
532
|
+
}
|
|
533
|
+
export interface CiPipeline {
|
|
534
|
+
isManual: boolean;
|
|
535
|
+
dockerArgs?: Map<string, string>;
|
|
536
|
+
isExternal: boolean;
|
|
537
|
+
parentCiPipeline: number;
|
|
538
|
+
parentAppId: number;
|
|
539
|
+
externalCiConfig: ExternalCiConfig;
|
|
540
|
+
ciMaterial?: CiMaterial[];
|
|
541
|
+
name?: string;
|
|
542
|
+
id?: number;
|
|
543
|
+
active?: boolean;
|
|
544
|
+
linkedCount: number;
|
|
545
|
+
scanEnabled: boolean;
|
|
546
|
+
deleted?: boolean;
|
|
547
|
+
version?: string;
|
|
548
|
+
beforeDockerBuild?: Array<Task>;
|
|
549
|
+
afterDockerBuild?: Array<Task>;
|
|
550
|
+
appWorkflowId?: number;
|
|
551
|
+
beforeDockerBuildScripts?: Array<CiScript>;
|
|
552
|
+
afterDockerBuildScripts?: Array<CiScript>;
|
|
553
|
+
isDockerConfigOverridden?: boolean;
|
|
554
|
+
dockerConfigOverride?: DockerConfigOverrideType;
|
|
555
|
+
appName?: string;
|
|
556
|
+
appId?: string;
|
|
557
|
+
componentId?: number;
|
|
558
|
+
isCITriggerBlocked?: boolean;
|
|
559
|
+
ciBlockState?: {
|
|
560
|
+
action: any;
|
|
561
|
+
metadataField: string;
|
|
562
|
+
};
|
|
563
|
+
isOffendingMandatoryPlugin?: boolean;
|
|
564
|
+
pipelineType?: string;
|
|
565
|
+
}
|
|
430
566
|
export {};
|
package/dist/Common/index.d.ts
CHANGED