@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.
@@ -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;
@@ -10,4 +10,5 @@ export interface DebouncedSearchProps {
10
10
  debounceTimeout?: number;
11
11
  clearSearch?: boolean;
12
12
  showClearIcon?: boolean;
13
+ autoFocus?: boolean;
13
14
  }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { DevtronProgressingProps } from './types';
3
+ export declare function DevtronProgressing({ classes, parentClasses }: DevtronProgressingProps): JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './DevtronProgressing';
@@ -0,0 +1,4 @@
1
+ export interface DevtronProgressingProps {
2
+ classes?: string;
3
+ parentClasses?: string;
4
+ }
@@ -9,6 +9,7 @@ export interface DeleteDialogProps {
9
9
  apiCallInProgress?: boolean;
10
10
  dataTestId?: string;
11
11
  buttonPrimaryText?: string;
12
+ shouldStopPropagation?: boolean;
12
13
  }
13
14
  export interface ForceDeleteDialogType {
14
15
  onClickDelete: () => void;
@@ -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 {};
@@ -40,3 +40,4 @@ export { default as Grid } from './Grid/Grid';
40
40
  export { default as ClipboardButton } from './ClipboardButton/ClipboardButton';
41
41
  export * from './Hooks';
42
42
  export { AppStatus } from './AppStatus';
43
+ export * from './DevtronProgressing';