@devtron-labs/devtron-fe-common-lib 0.0.97 → 0.0.98-beta-2

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.
@@ -4,6 +4,11 @@ export declare const StatusConstants: {
4
4
  normalCase: string;
5
5
  lowerCase: string;
6
6
  };
7
+ NOT_READY: {
8
+ noSpaceLower: string;
9
+ normalCase: string;
10
+ lowerCase: string;
11
+ };
7
12
  APP_STATUS: {
8
13
  noSpaceLower: string;
9
14
  normalText: string;
@@ -26,6 +26,7 @@ export declare const numberComparatorBySortOrder: (a: number, b: number, sortOrd
26
26
  export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
27
27
  export declare const useIntersection: (target: React.RefObject<Element> | Element | null, options?: IntersectionOptions, callback?: IntersectionChangeHandler) => boolean;
28
28
  export declare const isNullOrUndefined: (value: unknown) => boolean;
29
+ export declare const handleDisableSubmitOnEnter: (event: React.KeyboardEvent<HTMLFormElement>) => void;
29
30
  export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
30
31
  export declare const renderValidInputButtonTippy: (children: ReactElement) => JSX.Element;
31
32
  export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
@@ -29,6 +29,7 @@ export declare const ModuleNameMap: {
29
29
  };
30
30
  export declare const DATE_TIME_FORMAT_STRING = "ddd DD MMM YYYY HH:mm:ss";
31
31
  export declare const API_TOKEN_PREFIX = "API-TOKEN:";
32
+ export declare const DEFAULT_SECRET_PLACEHOLDER = "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022";
32
33
  export declare enum PatchOperationType {
33
34
  replace = "replace",
34
35
  remove = "remove"
@@ -347,3 +348,27 @@ export declare const statusColor: {
347
348
  };
348
349
  export declare const APP_STATUS_HEADERS: string[];
349
350
  export declare const MATERIAL_EXCLUDE_TIPPY_TEXT = "Not available for build as this commit contains changes in excluded files or folders";
351
+ export declare const AppListConstants: {
352
+ SAMPLE_NODE_REPO_URL: string;
353
+ CREATE_DEVTRON_APP_URL: string;
354
+ AppTabs: {
355
+ DEVTRON_APPS: string;
356
+ HELM_APPS: string;
357
+ ARGO_APPS: string;
358
+ FLUX_APPS: string;
359
+ };
360
+ AppType: {
361
+ DEVTRON_APPS: string;
362
+ HELM_APPS: string;
363
+ ARGO_APPS: string;
364
+ FLUX_APPS: string;
365
+ };
366
+ FilterType: {
367
+ PROJECT: string;
368
+ CLUTSER: string;
369
+ NAMESPACE: string;
370
+ ENVIRONMENT: string;
371
+ APP_STATUS: string;
372
+ TEMPLATE_TYPE: string;
373
+ };
374
+ };
@@ -124,7 +124,8 @@ export declare enum AppType {
124
124
  DEVTRON_APP = "devtron_app",
125
125
  DEVTRON_HELM_CHART = "devtron_helm_chart",
126
126
  EXTERNAL_HELM_CHART = "external_helm_chart",
127
- EXTERNAL_ARGO_APP = "external_argo_app"
127
+ EXTERNAL_ARGO_APP = "external_argo_app",
128
+ EXTERNAL_FLUX_APP = "external_flux_app"
128
129
  }
129
130
  export interface HelmReleaseStatus {
130
131
  status: string;
@@ -418,6 +419,19 @@ export declare enum AggregationKeys {
418
419
  Namespaces = "Namespaces"
419
420
  }
420
421
  export type AggregationKeysType = keyof typeof AggregationKeys;
422
+ export declare enum GitOpsAuthModeType {
423
+ SSH = "SSH",
424
+ PASSWORD = "PASSWORD",
425
+ SSH_AND_PASSWORD = "PAT_AND_SSH"
426
+ }
427
+ export interface BaseGitOpsType {
428
+ authMode: GitOpsAuthModeType;
429
+ sshKey: string;
430
+ sshHost: string;
431
+ username: string;
432
+ token: string;
433
+ }
434
+ export type GitOpsFieldKeyType = 'host' | 'username' | 'token' | 'gitHubOrgId' | 'azureProjectName' | 'gitLabGroupId' | 'bitBucketWorkspaceId' | 'bitBucketProjectKey' | 'sshHost' | 'sshKey';
421
435
  export interface AppInfoListType {
422
436
  application: string;
423
437
  appStatus: string;
@@ -1,7 +1,7 @@
1
1
  var Le = Object.defineProperty;
2
2
  var je = (e, n, i) => n in e ? Le(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => (je(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { m as Ne } from "./index-27281b6f.js";
4
+ import { m as Ne } from "./index-dbe950c2.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-27281b6f.js";
1
+ import { m as F } from "./index-dbe950c2.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 i } from "./index-27281b6f.js";
1
+ import { m as i } from "./index-dbe950c2.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 d } from "./index-27281b6f.js";
1
+ import { m as d } from "./index-dbe950c2.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 $e = Object.defineProperty;
2
2
  var qe = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => (qe(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { m as Qe } from "./index-27281b6f.js";
4
+ import { m as Qe } from "./index-dbe950c2.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)