@devtron-labs/devtron-fe-common-lib 1.22.6-beta-3 → 1.22.6-beta-4

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.
@@ -1,7 +1,7 @@
1
1
  import { j as n, aM as v, aO as J, aN as K } from "./@vendor-CtCMPfdc.js";
2
2
  import V, { useState as q, useEffect as Y, forwardRef as G, useMemo as E } from "react";
3
3
  import z, { getDefaultRegistry as Q } from "@rjsf/core";
4
- import { T as O, j as w, c as N, b as F, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-C8qPb1Qw.js";
4
+ import { T as O, j as w, c as N, b as F, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-BF9s6O-t.js";
5
5
  import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as re, ADDITIONAL_PROPERTY_FLAG as L, errorId as se, englishStringTranslator as ae, TranslatableString as oe, titleId as le, canExpand as ie, deepEquals as ce } from "@rjsf/utils";
6
6
  import { ReactComponent as de } from "./assets/ic-add.cfaa779b.svg";
7
7
  import { ReactComponent as ue } from "./assets/ic-warning.ecf7ff97.svg";
@@ -1,5 +1,5 @@
1
1
  import { MutableRefObject } from 'react';
2
- import { RuntimeParamsAPIResponseType, RuntimePluginVariables } from '../Shared/types';
2
+ import { RegistryType, RuntimeParamsAPIResponseType, RuntimePluginVariables } from '../Shared/types';
3
3
  import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole, APIOptions, EnvAppsMetaDTO, GetAppsInfoForEnvProps, EnvironmentsGroupedByClustersType, AppsGroupedByProjectsType, ClusterDetailListType } from './Types';
4
4
  import { ApiResourceType } from '../Pages';
5
5
  export declare const getTeamListMin: () => Promise<TeamList>;
@@ -39,3 +39,13 @@ export declare const getAppsInfoForEnv: ({ envId, appIds }: GetAppsInfoForEnvPro
39
39
  export declare const getAppOptionsGroupedByProjects: () => Promise<AppsGroupedByProjectsType>;
40
40
  export declare const getEnvironmentOptionsGroupedByClusters: () => Promise<EnvironmentsGroupedByClustersType>;
41
41
  export declare const getDetailedClusterList: (clusterIds?: number[], signal?: AbortSignal) => Promise<ClusterDetailListType[]>;
42
+ export declare const getDockerRegistriesListMin: (signal: AbortSignal) => Promise<ResponseType<{
43
+ id: string;
44
+ registryType: RegistryType;
45
+ }[]>>;
46
+ export declare const getGitProvidersListMin: (signal: AbortSignal) => Promise<ResponseType<{
47
+ id: number;
48
+ name: string;
49
+ url: string;
50
+ authMode: "SSH" | "USERNAME_PASSWORD" | "ANONYMOUS";
51
+ }[]>>;
@@ -10,6 +10,7 @@ export declare const LICENSE_DASHBOARD_HOME_PAGE = "https://license.devtron.ai/d
10
10
  export declare const DEVTRON_GPT_LINK = "https://chatgpt.com/g/g-6826efa4362c8191b23e7bfa0ac036db-devtron-expert";
11
11
  export declare const PATTERNS: {
12
12
  STRING: RegExp;
13
+ APP_NAME: string;
13
14
  DECIMAL_NUMBERS: RegExp;
14
15
  POSITIVE_DECIMAL_NUMBERS: RegExp;
15
16
  NATURAL_NUMBERS: RegExp;
@@ -179,6 +180,8 @@ export declare const ROUTES: {
179
180
  readonly ENV: "env";
180
181
  readonly APP_METADATA: "app-metadata";
181
182
  readonly RESOURCE_CONFLICTS_LIST: "app/:appId/cd-pipeline/:pipelineId/history/:wfrId/helm-ownership-conflicts";
183
+ readonly GIT_PROVIDER_MIN: "git/provider/autocomplete";
184
+ readonly DOCKER_REGISTRY_MIN: "docker/registry/autocomplete";
182
185
  };
183
186
  export declare enum KEY_VALUE {
184
187
  KEY = "key",
@@ -1,2 +1,3 @@
1
+ export { getProjectOptions } from './service';
1
2
  export type { UseGetResourceKindOptionsReturnType, UseGetResourceKindsOptionsProps } from './types';
2
3
  export { default as useGetResourceKindsOptions } from './useGetResourceKindsOptions';
@@ -62,3 +62,4 @@ export declare const validateYAML: (yamlString: string, isRequired?: boolean) =>
62
62
  export declare const validateEmail: (email: string) => ValidationResponseType;
63
63
  export declare const getIsRegexValid: (regexString: string) => ValidationResponseType;
64
64
  export declare const validateCronExpression: (expression: string) => ValidationResponseType;
65
+ export declare const validateAppName: (value: string) => Required<ValidationResponseType>;