@devtron-labs/devtron-fe-common-lib 4.0.13-beta-3 → 4.0.13-pre-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.
@@ -190,6 +190,16 @@ export interface BuildPackConfigType {
190
190
  buildPacks?: any;
191
191
  args?: Record<string, string>;
192
192
  }
193
+ export declare enum BuildSecretSourceType {
194
+ BUILD_INFRA = "BUILD_INFRA",
195
+ SOURCE_CODE = "SOURCE_CODE"
196
+ }
197
+ export interface BuildSecretType {
198
+ type: BuildSecretSourceType;
199
+ id: string;
200
+ secretName: string;
201
+ key: string;
202
+ }
193
203
  export interface DockerBuildConfigType {
194
204
  dockerfileContent: string;
195
205
  dockerfileRelativePath: string;
@@ -200,6 +210,8 @@ export interface DockerBuildConfigType {
200
210
  targetPlatform?: any;
201
211
  language?: string;
202
212
  languageFramework?: string;
213
+ secrets?: BuildSecretType[];
214
+ ssh?: BuildSecretType[];
203
215
  }
204
216
  export interface CIBuildConfigType {
205
217
  buildPackConfig: BuildPackConfigType;
@@ -99,16 +99,6 @@ type CommonMainContextProps = {
99
99
  };
100
100
  isAirgapped: boolean;
101
101
  isSuperAdmin: boolean;
102
- /**
103
- * Whether the logged-in user holds at least one Argo CD app permission row (or is a super-admin).
104
- * Used to show/hide the Argo Apps tab in the Applications listing.
105
- */
106
- hasArgoAppAccess: boolean;
107
- /**
108
- * Whether the logged-in user holds at least one Flux CD app permission row (or is a super-admin).
109
- * Used to show/hide the Flux Apps tab in the Applications listing.
110
- */
111
- hasFluxAppAccess: boolean;
112
102
  featureGitOpsFlags: {
113
103
  /**
114
104
  * Would define whether gitops (Global config tab) feature is enabled or not
@@ -56,6 +56,7 @@ export interface customEnv {
56
56
  REACT_APP_GIT_SHA?: string;
57
57
  NODE_ENV?: string;
58
58
  SIDEBAR_DT_LOGO?: string;
59
+ ENABLE_EXTERNAL_ARGO_CD: boolean;
59
60
  API_BATCH_SIZE: number;
60
61
  SERVICE_WORKER_TIMEOUT?: string;
61
62
  /**
@@ -63,6 +64,7 @@ export interface customEnv {
63
64
  */
64
65
  FEATURE_USER_DEFINED_GITOPS_REPO_ENABLE: boolean;
65
66
  ORGANIZATION_NAME: string;
67
+ FEATURE_EXTERNAL_FLUX_CD_ENABLE: boolean;
66
68
  /**
67
69
  * If true, the direct permissions are hidden for non-super admins in user permissions
68
70
  *
@@ -832,9 +834,7 @@ export declare enum RuntimeParamsHeadingType {
832
834
  export declare enum ACCESS_TYPE_MAP {
833
835
  DEVTRON_APPS = "devtron-app",// devtron app work flow
834
836
  HELM_APPS = "helm-app",// helm app work flow
835
- JOBS = "",// Empty string is intentional since there is no bifurcation in jobs as of now
836
- ARGO_APPS = "argo-app",// argo cd app work flow
837
- FLUX_APPS = "flux-app"
837
+ JOBS = ""
838
838
  }
839
839
  export declare enum EntityTypes {
840
840
  CHART_GROUP = "chart-group",
@@ -851,7 +851,7 @@ export interface CustomRoles {
851
851
  roleDisplayName: string;
852
852
  roleDescription: string;
853
853
  entity: EntityTypes;
854
- accessType: ACCESS_TYPE_MAP.DEVTRON_APPS | ACCESS_TYPE_MAP.HELM_APPS | ACCESS_TYPE_MAP.ARGO_APPS | ACCESS_TYPE_MAP.FLUX_APPS;
854
+ accessType: ACCESS_TYPE_MAP.DEVTRON_APPS | ACCESS_TYPE_MAP.HELM_APPS;
855
855
  }
856
856
  export type MetaPossibleRoles = Record<CustomRoles['roleName'], {
857
857
  value: CustomRoles['roleDisplayName'];
package/dist/index.d.ts CHANGED
@@ -50,6 +50,7 @@ export interface customEnv {
50
50
  REACT_APP_GIT_SHA?: string;
51
51
  NODE_ENV?: string;
52
52
  SIDEBAR_DT_LOGO?: string;
53
+ ENABLE_EXTERNAL_ARGO_CD: boolean;
53
54
  API_BATCH_SIZE: number;
54
55
  SERVICE_WORKER_TIMEOUT?: string;
55
56
  /**
@@ -57,6 +58,7 @@ export interface customEnv {
57
58
  */
58
59
  FEATURE_USER_DEFINED_GITOPS_REPO_ENABLE: boolean;
59
60
  ORGANIZATION_NAME: string;
61
+ FEATURE_EXTERNAL_FLUX_CD_ENABLE: boolean;
60
62
  /**
61
63
  * If true, the direct permissions are hidden for non-super admins in user permissions
62
64
  *