@devtron-labs/devtron-fe-common-lib 0.0.98-beta-1 → 0.0.98

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,11 +4,6 @@ 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
- };
12
7
  APP_STATUS: {
13
8
  noSpaceLower: string;
14
9
  normalText: string;
@@ -0,0 +1,22 @@
1
+ declare const AppListConstants: {
2
+ SAMPLE_NODE_REPO_URL: string;
3
+ CREATE_DEVTRON_APP_URL: string;
4
+ AppTabs: {
5
+ DEVTRON_APPS: string;
6
+ HELM_APPS: string;
7
+ ARGO_APPS: string;
8
+ };
9
+ AppType: {
10
+ DEVTRON_APPS: string;
11
+ HELM_APPS: string;
12
+ ARGO_APPS: string;
13
+ };
14
+ FilterType: {
15
+ PROJECT: string;
16
+ CLUTSER: string;
17
+ NAMESPACE: string;
18
+ ENVIRONMENT: string;
19
+ APP_STATUS: string;
20
+ };
21
+ };
22
+ export default AppListConstants;
@@ -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,27 +348,3 @@ 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";
350
- export declare const AppListConstants: {
351
- SAMPLE_NODE_REPO_URL: string;
352
- CREATE_DEVTRON_APP_URL: string;
353
- AppTabs: {
354
- DEVTRON_APPS: string;
355
- HELM_APPS: string;
356
- ARGO_APPS: string;
357
- FLUX_APPS: string;
358
- };
359
- AppType: {
360
- DEVTRON_APPS: string;
361
- HELM_APPS: string;
362
- ARGO_APPS: string;
363
- FLUX_APPS: string;
364
- };
365
- FilterType: {
366
- PROJECT: string;
367
- CLUTSER: string;
368
- NAMESPACE: string;
369
- ENVIRONMENT: string;
370
- APP_STATUS: string;
371
- TEMPLATE_TYPE: string;
372
- };
373
- };
@@ -124,8 +124,7 @@ 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",
128
- EXTERNAL_FLUX_APP = "external_flux_app"
127
+ EXTERNAL_ARGO_APP = "external_argo_app"
129
128
  }
130
129
  export interface HelmReleaseStatus {
131
130
  status: string;
@@ -419,6 +418,19 @@ export declare enum AggregationKeys {
419
418
  Namespaces = "Namespaces"
420
419
  }
421
420
  export type AggregationKeysType = keyof typeof AggregationKeys;
421
+ export declare enum GitOpsAuthModeType {
422
+ SSH = "SSH",
423
+ PASSWORD = "PASSWORD",
424
+ SSH_AND_PASSWORD = "PAT_AND_SSH"
425
+ }
426
+ export interface BaseGitOpsType {
427
+ authMode: GitOpsAuthModeType;
428
+ sshKey: string;
429
+ sshHost: string;
430
+ username: string;
431
+ token: string;
432
+ }
433
+ export type GitOpsFieldKeyType = 'host' | 'username' | 'token' | 'gitHubOrgId' | 'azureProjectName' | 'gitLabGroupId' | 'bitBucketWorkspaceId' | 'bitBucketProjectKey' | 'sshHost' | 'sshKey';
422
434
  export interface AppInfoListType {
423
435
  application: string;
424
436
  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-dae34b8a.js";
4
+ import { m as Ne } from "./index-bb245a6f.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-dae34b8a.js";
1
+ import { m as F } from "./index-bb245a6f.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-dae34b8a.js";
1
+ import { m as i } from "./index-bb245a6f.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-dae34b8a.js";
1
+ import { m as d } from "./index-bb245a6f.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-dae34b8a.js";
4
+ import { m as Qe } from "./index-bb245a6f.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)