@devtron-labs/devtron-fe-common-lib 0.0.74 → 0.0.75-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.
- package/dist/Common/Common.service.d.ts +1 -0
- package/dist/Common/Constants.d.ts +45 -1
- package/dist/Common/Helper.d.ts +1 -1
- package/dist/Common/ImageTags.Types.d.ts +1 -1
- package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +1 -1
- package/dist/Common/Types.d.ts +65 -6
- package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -1
- package/dist/Shared/Components/APIResponseHandler/types.d.ts +9 -0
- package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +3 -0
- package/dist/Shared/Components/ActivityIndicator/index.d.ts +1 -0
- package/dist/Shared/Components/ActivityIndicator/types.d.ts +3 -0
- package/dist/Shared/Components/AnnouncementBanner/AnnouncementBanner.d.ts +6 -0
- package/dist/Shared/Components/AnnouncementBanner/index.d.ts +1 -0
- package/dist/Shared/Components/ButtonWithLoader/ButtonWithLoader.d.ts +15 -0
- package/dist/Shared/Components/ButtonWithLoader/index.d.ts +1 -0
- package/dist/Shared/Components/EditableTextArea/EditableTextArea.d.ts +3 -0
- package/dist/Shared/Components/EditableTextArea/index.d.ts +1 -0
- package/dist/Shared/Components/EditableTextArea/types.d.ts +25 -0
- package/dist/Shared/Components/ExcludedImageNode/ExcludedImageNode.d.ts +3 -0
- package/dist/Shared/Components/ExcludedImageNode/index.d.ts +1 -0
- package/dist/Shared/Components/ExcludedImageNode/types.d.ts +3 -0
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -1
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +21 -1
- package/dist/Shared/Components/GettingStartedCard/GettingStarted.d.ts +3 -0
- package/dist/Shared/Components/GettingStartedCard/service.d.ts +3 -0
- package/dist/Shared/Components/GettingStartedCard/types.d.ts +15 -0
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +5 -0
- package/dist/Shared/Components/Header/HeaderWithCreateButton/constants.d.ts +22 -0
- package/dist/Shared/Components/Header/HeaderWithCreateButton/index.d.ts +1 -0
- package/dist/Shared/Components/Header/HelpNav.d.ts +3 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +3 -0
- package/dist/Shared/Components/Header/constants.d.ts +3 -0
- package/dist/Shared/Components/Header/index.d.ts +2 -0
- package/dist/Shared/Components/Header/service.d.ts +4 -0
- package/dist/Shared/Components/Header/types.d.ts +60 -0
- package/dist/Shared/Components/Header/utils.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/ArtifactInfo/ArtifactInfo.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/ArtifactInfo/index.d.ts +1 -0
- package/dist/Shared/Components/ImageCard/ArtifactInfo/types.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/ImageCard.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/DeploymentEnvState.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/constants.d.ts +6 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/index.d.ts +1 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/types.d.ts +10 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/utils.d.ts +2 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/index.d.ts +1 -0
- package/dist/Shared/Components/ImageCard/index.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/types.d.ts +40 -0
- package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +3 -0
- package/dist/Shared/Components/ImageCardAccordion/index.d.ts +1 -0
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +23 -0
- package/dist/Shared/Components/LogoutCard.d.ts +9 -0
- package/dist/Shared/Components/ReactSelect/utils.d.ts +1 -0
- package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +3 -0
- package/dist/Shared/Components/ScannedByToolModal/index.d.ts +1 -0
- package/dist/Shared/Components/ScannedByToolModal/types.d.ts +3 -0
- package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +3 -0
- package/dist/Shared/Components/ScannedObjectBar/index.d.ts +1 -0
- package/dist/Shared/Components/ScannedObjectBar/types.d.ts +7 -0
- package/dist/Shared/Components/Vulnerabilities/Vulnerabilities.d.ts +3 -0
- package/dist/Shared/Components/Vulnerabilities/constants.d.ts +4 -0
- package/dist/Shared/Components/Vulnerabilities/index.d.ts +2 -0
- package/dist/Shared/Components/Vulnerabilities/service.d.ts +2 -0
- package/dist/Shared/Components/Vulnerabilities/types.d.ts +8 -0
- package/dist/Shared/Components/Vulnerabilities/utils.d.ts +3 -0
- package/dist/Shared/Components/index.d.ts +11 -0
- package/dist/Shared/Helpers.d.ts +7 -0
- package/dist/Shared/Providers/MainContextProvider.d.ts +3 -0
- package/dist/Shared/Providers/index.d.ts +1 -0
- package/dist/Shared/Providers/types.d.ts +29 -0
- package/dist/Shared/constants.d.ts +31 -0
- package/dist/Shared/index.d.ts +2 -0
- package/dist/Shared/types.d.ts +157 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.d.ts +53 -0
- package/dist/index.js +12724 -11607
- package/package.json +7 -2
|
@@ -17,4 +17,5 @@ export declare const genericCDMaterialsService: (serviceType: CDMaterialServiceE
|
|
|
17
17
|
export declare function extractImage(image: string): string;
|
|
18
18
|
export declare function createGitCommitUrl(url: string, revision: string): string;
|
|
19
19
|
export declare function fetchChartTemplateVersions(): Promise<ResponseType<any>>;
|
|
20
|
+
export declare const getDefaultConfig: () => Promise<ResponseType>;
|
|
20
21
|
export {};
|
|
@@ -15,14 +15,29 @@ export declare const PATTERNS: {
|
|
|
15
15
|
export declare const URLS: {
|
|
16
16
|
LOGIN_SSO: string;
|
|
17
17
|
PERMISSION_GROUPS: string;
|
|
18
|
+
APP: string;
|
|
19
|
+
APP_LIST: string;
|
|
20
|
+
CHARTS_DISCOVER: string;
|
|
21
|
+
JOB: string;
|
|
22
|
+
CREATE_JOB: string;
|
|
23
|
+
GETTING_STARTED: string;
|
|
24
|
+
STACK_MANAGER_ABOUT: string;
|
|
25
|
+
APP_LIST_HELM: string;
|
|
18
26
|
};
|
|
19
27
|
export declare const ROUTES: {
|
|
28
|
+
APP_ARTIFACT_PROMOTE_MATERIAL: string;
|
|
20
29
|
PROJECT_LIST_MIN: string;
|
|
21
30
|
USER_CHECK_ROLE: string;
|
|
22
31
|
IMAGE_TAGGING: string;
|
|
23
32
|
CD_MATERIAL_GET: string;
|
|
24
33
|
DEPLOYMENT_TEMPLATE_LIST: string;
|
|
25
34
|
INFRA_CONFIG_PROFILE: string;
|
|
35
|
+
SECURITY_SCAN_EXECUTION_DETAILS: string;
|
|
36
|
+
NOTIFIER: string;
|
|
37
|
+
TELEMETRY_EVENT: string;
|
|
38
|
+
SERVER_INFO_API: string;
|
|
39
|
+
ATTRIBUTES_USER: string;
|
|
40
|
+
UPDATE: string;
|
|
26
41
|
};
|
|
27
42
|
export declare enum KEY_VALUE {
|
|
28
43
|
KEY = "key",
|
|
@@ -74,7 +89,8 @@ export declare enum MODES {
|
|
|
74
89
|
}
|
|
75
90
|
export declare enum APPROVAL_MODAL_TYPE {
|
|
76
91
|
CONFIG = "CONFIG",
|
|
77
|
-
DEPLOYMENT = "DEPLOYMENT"
|
|
92
|
+
DEPLOYMENT = "DEPLOYMENT",
|
|
93
|
+
IMAGE_PROMOTION = "IMAGE-PROMOTION"
|
|
78
94
|
}
|
|
79
95
|
export declare const MAX_Z_INDEX = 2147483647;
|
|
80
96
|
export declare const SELECTED_APPROVAL_TAB_STATE: {
|
|
@@ -154,3 +170,31 @@ export declare enum ReactSelectInputAction {
|
|
|
154
170
|
removeValue = "remove-value"
|
|
155
171
|
}
|
|
156
172
|
export declare const ZERO_TIME_STRING = "0001-01-01T00:00:00Z";
|
|
173
|
+
export declare const EXCLUDED_FALSY_VALUES: readonly [any, any, "", number];
|
|
174
|
+
export declare const API_STATUS_CODES: {
|
|
175
|
+
UNAUTHORIZED: number;
|
|
176
|
+
PERMISSION_DENIED: number;
|
|
177
|
+
NOT_FOUND: number;
|
|
178
|
+
EXPECTATION_FAILED: number;
|
|
179
|
+
};
|
|
180
|
+
export declare enum SERVER_MODE {
|
|
181
|
+
EA_ONLY = "EA_ONLY",
|
|
182
|
+
FULL = "FULL"
|
|
183
|
+
}
|
|
184
|
+
export declare const DISCORD_LINK = "https://discord.devtron.ai/";
|
|
185
|
+
export declare const POSTHOG_EVENT_ONBOARDING: {
|
|
186
|
+
PREVIEW: string;
|
|
187
|
+
DEPLOY_CUSTOM_APP_CI_CD: string;
|
|
188
|
+
INSTALL_CUSTOM_CI_CD: string;
|
|
189
|
+
VIEW_APPLICATION: string;
|
|
190
|
+
BROWSE_HELM_CHART: string;
|
|
191
|
+
CONNECT_CLUSTER: string;
|
|
192
|
+
CONNECT_CHART_REPOSITORY: string;
|
|
193
|
+
TOOLTIP_OKAY: string;
|
|
194
|
+
TOOLTIP_DONT_SHOW_AGAIN: string;
|
|
195
|
+
HELP: string;
|
|
196
|
+
SKIP_AND_EXPLORE_DEVTRON: string;
|
|
197
|
+
};
|
|
198
|
+
export declare const MAX_LOGIN_COUNT = 5;
|
|
199
|
+
export declare const BULK_EDIT_HEADER = "Bulk Edit";
|
|
200
|
+
export declare const LOGIN_COUNT = "login-count";
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ interface ConditionalWrapper<T> {
|
|
|
7
7
|
children: T;
|
|
8
8
|
}
|
|
9
9
|
export declare const ConditionalWrap: React.FC<ConditionalWrapper<any>>;
|
|
10
|
-
export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean):
|
|
10
|
+
export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 0 | 1 | -1;
|
|
11
11
|
export declare const stopPropagation: (event: any) => void;
|
|
12
12
|
export declare function useThrottledEffect(callback: any, delay: any, deps?: any[]): void;
|
|
13
13
|
export declare function getRandomColor(email: string): string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ScanVulnerabilitiesTableProps } from '../Types';
|
|
3
|
-
export default function ScanVulnerabilitiesTable({ vulnerabilities }: ScanVulnerabilitiesTableProps): JSX.Element;
|
|
3
|
+
export default function ScanVulnerabilitiesTable({ vulnerabilities, hidePolicy, shouldStick }: ScanVulnerabilitiesTableProps): JSX.Element;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import React, { ReactNode, CSSProperties } from 'react';
|
|
|
2
2
|
import { Placement } from 'tippy.js';
|
|
3
3
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
4
4
|
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
|
5
|
+
import { RegistryType } from '../Shared';
|
|
5
6
|
/**
|
|
6
7
|
* Generic response type object with support for overriding the result type
|
|
7
8
|
*
|
|
@@ -51,6 +52,7 @@ export interface CheckboxProps {
|
|
|
51
52
|
onChange: (event: any) => void;
|
|
52
53
|
isChecked: boolean;
|
|
53
54
|
value: 'CHECKED' | 'INTERMEDIATE' | 'BULK_CHECKED';
|
|
55
|
+
name?: string;
|
|
54
56
|
disabled?: boolean;
|
|
55
57
|
tabIndex?: number;
|
|
56
58
|
rootClassName?: string;
|
|
@@ -246,6 +248,34 @@ export declare enum FilterStates {
|
|
|
246
248
|
export declare enum MaterialDataSource {
|
|
247
249
|
EXTERNAL = "ext"
|
|
248
250
|
}
|
|
251
|
+
export declare enum ImagePromotionRuntimeState {
|
|
252
|
+
AWAITING = "AWAITING",
|
|
253
|
+
PROMOTED = "PROMOTED",
|
|
254
|
+
CANCELLED = "CANCELLED",
|
|
255
|
+
STALE = "STALE"
|
|
256
|
+
}
|
|
257
|
+
export interface ImagePromotionPolicyApprovalMetadata {
|
|
258
|
+
approverCount: number;
|
|
259
|
+
allowRequesterFromApprove: boolean;
|
|
260
|
+
allowImageBuilderFromApprove: boolean;
|
|
261
|
+
allowApproverFromDeploy: boolean;
|
|
262
|
+
}
|
|
263
|
+
export interface ImagePromotionPolicyInfoType {
|
|
264
|
+
name: string;
|
|
265
|
+
id: number;
|
|
266
|
+
description: string;
|
|
267
|
+
conditions: FilterConditionsInfo[];
|
|
268
|
+
approvalMetadata: ImagePromotionPolicyApprovalMetadata;
|
|
269
|
+
}
|
|
270
|
+
export interface PromotionApprovalMetadataType {
|
|
271
|
+
approvalRequestId: number;
|
|
272
|
+
approvalRuntimeState: ImagePromotionRuntimeState;
|
|
273
|
+
approvedUsersData: ApprovalUserDataType[];
|
|
274
|
+
requestedUserData: ApprovalUserDataType;
|
|
275
|
+
policy: ImagePromotionPolicyInfoType;
|
|
276
|
+
promotedFrom?: string;
|
|
277
|
+
promotedFromType?: CDMaterialResourceQuery;
|
|
278
|
+
}
|
|
249
279
|
export interface DeploymentWindowArtifactMetadata {
|
|
250
280
|
id: number;
|
|
251
281
|
name: string;
|
|
@@ -277,7 +307,7 @@ export interface CDMaterialType {
|
|
|
277
307
|
imageReleaseTags?: ReleaseTag[];
|
|
278
308
|
artifactStatus?: string;
|
|
279
309
|
filterState: FilterStates;
|
|
280
|
-
registryType?:
|
|
310
|
+
registryType?: RegistryType;
|
|
281
311
|
imagePath?: string;
|
|
282
312
|
registryName?: string;
|
|
283
313
|
scanToolId?: number;
|
|
@@ -287,14 +317,28 @@ export interface CDMaterialType {
|
|
|
287
317
|
createdTime?: string;
|
|
288
318
|
deployed?: boolean;
|
|
289
319
|
dataSource?: MaterialDataSource;
|
|
320
|
+
/**
|
|
321
|
+
* The below two keys: `promotionApprovalMetaData`, `deployedOnEnvironments` are used in image promotion
|
|
322
|
+
* and may not be available to cater other use-cases.
|
|
323
|
+
*/
|
|
324
|
+
promotionApprovalMetadata?: PromotionApprovalMetadataType;
|
|
325
|
+
deployedOnEnvironments?: string[];
|
|
290
326
|
deploymentWindowArtifactMetadata?: DeploymentWindowArtifactMetadata;
|
|
291
327
|
}
|
|
292
328
|
export declare enum CDMaterialServiceEnum {
|
|
293
329
|
ROLLBACK = "rollback",
|
|
294
|
-
CD_MATERIALS = "cd-materials"
|
|
330
|
+
CD_MATERIALS = "cd-materials",
|
|
331
|
+
IMAGE_PROMOTION = "image-promotion"
|
|
295
332
|
}
|
|
296
333
|
export declare enum CDMaterialResourceQuery {
|
|
297
|
-
PENDING_APPROVAL = "PENDING_APPROVAL"
|
|
334
|
+
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
335
|
+
PROMOTION_APPROVAL_PENDING_NODE = "PROMOTION_APPROVAL_PENDING_NODE",
|
|
336
|
+
CI = "CI",
|
|
337
|
+
ENVIRONMENT = "ENVIRONMENT",
|
|
338
|
+
WEBHOOK = "WEBHOOK",
|
|
339
|
+
LINKED_CI = "LINKED-CI",
|
|
340
|
+
CI_JOB = "CI-JOB",
|
|
341
|
+
LINKED_CD = "LINKED-CD"
|
|
298
342
|
}
|
|
299
343
|
export declare enum CDMaterialFilterQuery {
|
|
300
344
|
RESOURCE = "ELIGIBLE_RESOURCES",
|
|
@@ -305,6 +349,11 @@ export interface CDMaterialServiceQueryParams {
|
|
|
305
349
|
offset?: number;
|
|
306
350
|
size?: number;
|
|
307
351
|
resource?: CDMaterialResourceQuery;
|
|
352
|
+
resourceName?: string;
|
|
353
|
+
resourceId?: number;
|
|
354
|
+
workflowId?: number;
|
|
355
|
+
appId?: number;
|
|
356
|
+
pendingForCurrentUser?: boolean;
|
|
308
357
|
filter?: CDMaterialFilterQuery;
|
|
309
358
|
}
|
|
310
359
|
export interface DownstreamNodesEnvironmentsType {
|
|
@@ -376,6 +425,7 @@ export interface CommonNodeAttr {
|
|
|
376
425
|
deploymentAppCreated?: boolean;
|
|
377
426
|
isLast?: boolean;
|
|
378
427
|
downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
|
|
428
|
+
cipipelineId?: number;
|
|
379
429
|
isDeploymentBlocked?: boolean;
|
|
380
430
|
}
|
|
381
431
|
export declare enum DeploymentAppTypes {
|
|
@@ -395,6 +445,8 @@ export interface VulnerabilityType {
|
|
|
395
445
|
}
|
|
396
446
|
export interface ScanVulnerabilitiesTableProps {
|
|
397
447
|
vulnerabilities: VulnerabilityType[];
|
|
448
|
+
hidePolicy?: boolean;
|
|
449
|
+
shouldStick?: boolean;
|
|
398
450
|
}
|
|
399
451
|
export interface MaterialInfo {
|
|
400
452
|
revision: string;
|
|
@@ -425,7 +477,7 @@ export interface FilterConditionsListType {
|
|
|
425
477
|
export interface CDMaterialsApprovalInfo {
|
|
426
478
|
approvalUsers: string[];
|
|
427
479
|
userApprovalConfig: UserApprovalConfigType;
|
|
428
|
-
|
|
480
|
+
canApproverDeploy: boolean;
|
|
429
481
|
}
|
|
430
482
|
export interface CDMaterialsMetaInfo {
|
|
431
483
|
tagsEditable: boolean;
|
|
@@ -433,9 +485,16 @@ export interface CDMaterialsMetaInfo {
|
|
|
433
485
|
hideImageTaggingHardDelete: boolean;
|
|
434
486
|
resourceFilters?: FilterConditionsListType[];
|
|
435
487
|
totalCount: number;
|
|
436
|
-
|
|
488
|
+
/**
|
|
489
|
+
* This is the ID of user that has request the material
|
|
490
|
+
*/
|
|
491
|
+
requestedUserId: number;
|
|
492
|
+
}
|
|
493
|
+
export interface ImagePromotionMaterialInfo {
|
|
494
|
+
isApprovalPendingForPromotion: boolean;
|
|
495
|
+
imagePromotionApproverEmails: string[];
|
|
437
496
|
}
|
|
438
|
-
export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo {
|
|
497
|
+
export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo, ImagePromotionMaterialInfo {
|
|
439
498
|
materials: CDMaterialType[];
|
|
440
499
|
}
|
|
441
500
|
export interface InputDetailType {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { APIResponseHandlerProps } from './types';
|
|
2
|
-
declare const APIResponseHandler: ({ isLoading, progressingProps, error, notAuthorized, notFoundText, reloadProps, children, }: APIResponseHandlerProps) => JSX.Element;
|
|
2
|
+
declare const APIResponseHandler: ({ isLoading, progressingProps, customLoader, error, notAuthorized, notFoundText, reloadProps, genericSectionErrorProps, children, }: APIResponseHandlerProps) => JSX.Element;
|
|
3
3
|
export default APIResponseHandler;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { GenericEmptyStateType, ProgressingProps, ReloadType, ServerErrors } from '../../../Common';
|
|
3
|
+
import { GenericSectionErrorStateProps } from '../GenericSectionErrorState/types';
|
|
3
4
|
export interface EmptyPageTextType {
|
|
4
5
|
title?: GenericEmptyStateType['title'];
|
|
5
6
|
subTitle?: GenericEmptyStateType['subTitle'];
|
|
@@ -13,6 +14,10 @@ export interface APIResponseHandlerProps {
|
|
|
13
14
|
* If loading is true, would load send these props to Progressing component
|
|
14
15
|
*/
|
|
15
16
|
progressingProps?: ProgressingProps;
|
|
17
|
+
/**
|
|
18
|
+
* If given, would show this component instead of default Progressing component
|
|
19
|
+
*/
|
|
20
|
+
customLoader?: ReactNode;
|
|
16
21
|
/**
|
|
17
22
|
* If true and isLoading is false would show default Reload component
|
|
18
23
|
* In case error code is 404 show default 404 page using GenericEmptyState
|
|
@@ -30,6 +35,10 @@ export interface APIResponseHandlerProps {
|
|
|
30
35
|
* If given, on Error, would load these props
|
|
31
36
|
*/
|
|
32
37
|
reloadProps?: ReloadType;
|
|
38
|
+
/**
|
|
39
|
+
* If given, would show this component instead of default Error component
|
|
40
|
+
*/
|
|
41
|
+
genericSectionErrorProps?: GenericSectionErrorStateProps;
|
|
33
42
|
/**
|
|
34
43
|
* If no Error and no Loading, would load this component
|
|
35
44
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ActivityIndicator } from './ActivityIndicator';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AnnouncementBanner } from './AnnouncementBanner';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
export interface ButtonProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
rootClassName: string;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
onClick?: (event: any) => void;
|
|
7
|
+
dataTestId?: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
type?: 'submit' | 'reset' | 'button';
|
|
10
|
+
}
|
|
11
|
+
export declare class ButtonWithLoader extends Component<ButtonProps> {
|
|
12
|
+
constructor(props: any);
|
|
13
|
+
clickHandler(event: any): void;
|
|
14
|
+
render(): JSX.Element;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ButtonWithLoader';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as EditableTextArea } from './EditableTextArea';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface ValidationRule<T> {
|
|
2
|
+
/**
|
|
3
|
+
* Value against which the input should be validated
|
|
4
|
+
*/
|
|
5
|
+
value: T;
|
|
6
|
+
/**
|
|
7
|
+
* Validation message when the validation fails
|
|
8
|
+
*/
|
|
9
|
+
message: string;
|
|
10
|
+
}
|
|
11
|
+
export interface EditableTextAreaProps {
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
rows: number;
|
|
14
|
+
updateContent: (value: string) => Promise<void>;
|
|
15
|
+
initialText?: string;
|
|
16
|
+
validations?: {
|
|
17
|
+
maxLength?: ValidationRule<number>;
|
|
18
|
+
};
|
|
19
|
+
emptyState: string;
|
|
20
|
+
}
|
|
21
|
+
export interface Error {
|
|
22
|
+
isValid: boolean;
|
|
23
|
+
message: string;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ExcludedImageNode } from './ExcludedImageNode';
|
package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GenericSectionErrorStateProps } from './types';
|
|
2
|
-
declare const GenericSectionErrorState: ({ reload, withBorder }: GenericSectionErrorStateProps) => JSX.Element;
|
|
2
|
+
declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, }: GenericSectionErrorStateProps) => JSX.Element;
|
|
3
3
|
export default GenericSectionErrorState;
|
|
@@ -2,11 +2,31 @@ export interface GenericSectionErrorStateProps {
|
|
|
2
2
|
/**
|
|
3
3
|
* Handler for reloading the section
|
|
4
4
|
*/
|
|
5
|
-
reload
|
|
5
|
+
reload?: () => void;
|
|
6
6
|
/**
|
|
7
7
|
* If true, border is added to the section
|
|
8
8
|
*
|
|
9
9
|
* @default false
|
|
10
10
|
*/
|
|
11
11
|
withBorder?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* @default 'Failed to load'
|
|
14
|
+
*/
|
|
15
|
+
title?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @default 'We could not load the information on this page.'
|
|
18
|
+
*/
|
|
19
|
+
subTitle?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @default 'Please reload or try again later'
|
|
22
|
+
*/
|
|
23
|
+
description?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @default 'Reload'
|
|
26
|
+
*/
|
|
27
|
+
buttonText?: string;
|
|
28
|
+
/**
|
|
29
|
+
* to be applied on parent div
|
|
30
|
+
*/
|
|
31
|
+
rootClassName?: string;
|
|
12
32
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ResponseType } from '../../../Common';
|
|
2
|
+
export interface LoginCount {
|
|
3
|
+
emailId: string;
|
|
4
|
+
key: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
export interface LoginCountType extends ResponseType {
|
|
8
|
+
result?: LoginCount;
|
|
9
|
+
}
|
|
10
|
+
export interface GettingStartedType {
|
|
11
|
+
className: string;
|
|
12
|
+
showHelpCard: boolean;
|
|
13
|
+
hideGettingStartedCard: (count?: string) => void;
|
|
14
|
+
loginCount: number;
|
|
15
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HeaderWithCreateButon';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PageHeaderType } from './types';
|
|
2
|
+
declare const PageHeader: ({ headerName, additionalHeaderInfo, isTippyShown, tippyRedirectLink, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, TippyIcon, tippyMessage, onClickTippybutton, renderActionButtons, showCloseButton, onClose, markAsBeta, showAnnouncementHeader, }: PageHeaderType) => JSX.Element;
|
|
3
|
+
export default PageHeader;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ResponseType } from '../../../Common';
|
|
2
|
+
import { ServerInfoResponse } from './types';
|
|
3
|
+
export declare const updatePostHogEvent: (payload: any) => Promise<ResponseType>;
|
|
4
|
+
export declare const getServerInfo: (withoutStatus: boolean, isFormHeader: boolean) => Promise<ServerInfoResponse>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ResponseType } from '../../../Common';
|
|
3
|
+
export declare enum InstallationType {
|
|
4
|
+
OSS_KUBECTL = "oss_kubectl",
|
|
5
|
+
OSS_HELM = "oss_helm",
|
|
6
|
+
ENTERPRISE = "enterprise"
|
|
7
|
+
}
|
|
8
|
+
export declare enum ModuleStatus {
|
|
9
|
+
HEALTHY = "healthy",
|
|
10
|
+
NONE = "none",
|
|
11
|
+
UNKNOWN = "unknown",
|
|
12
|
+
UPGRADING = "upgrading",
|
|
13
|
+
UPGRADE_FAILED = "upgradeFailed",
|
|
14
|
+
INSTALLED = "installed",
|
|
15
|
+
INSTALLING = "installing",
|
|
16
|
+
INSTALL_FAILED = "installFailed",
|
|
17
|
+
NOT_INSTALLED = "notInstalled",
|
|
18
|
+
TIMEOUT = "timeout"
|
|
19
|
+
}
|
|
20
|
+
export interface PageHeaderType {
|
|
21
|
+
headerName?: string;
|
|
22
|
+
additionalHeaderInfo?: () => JSX.Element;
|
|
23
|
+
isTippyShown?: boolean;
|
|
24
|
+
tippyRedirectLink?: string;
|
|
25
|
+
showTabs?: boolean;
|
|
26
|
+
renderHeaderTabs?: () => JSX.Element;
|
|
27
|
+
isBreadcrumbs?: boolean;
|
|
28
|
+
breadCrumbs?: () => JSX.Element;
|
|
29
|
+
TippyIcon?: React.FunctionComponent<any>;
|
|
30
|
+
tippyMessage?: string;
|
|
31
|
+
onClickTippybutton?: () => void;
|
|
32
|
+
renderActionButtons?: () => JSX.Element;
|
|
33
|
+
showCloseButton?: boolean;
|
|
34
|
+
onClose?: () => void;
|
|
35
|
+
markAsBeta?: boolean;
|
|
36
|
+
showAnnouncementHeader?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface ServerInfo {
|
|
39
|
+
currentVersion: string;
|
|
40
|
+
status: ModuleStatus;
|
|
41
|
+
releaseName: string;
|
|
42
|
+
installationType: InstallationType;
|
|
43
|
+
}
|
|
44
|
+
export interface ServerInfoResponse extends ResponseType {
|
|
45
|
+
result?: ServerInfo;
|
|
46
|
+
}
|
|
47
|
+
export interface HelpNavType {
|
|
48
|
+
className: string;
|
|
49
|
+
setShowHelpCard: React.Dispatch<React.SetStateAction<boolean>>;
|
|
50
|
+
serverInfo: ServerInfo;
|
|
51
|
+
fetchingServerInfo: boolean;
|
|
52
|
+
setGettingStartedClicked: (isClicked: boolean) => void;
|
|
53
|
+
showHelpCard: boolean;
|
|
54
|
+
}
|
|
55
|
+
export interface HelpOptionType {
|
|
56
|
+
name: string;
|
|
57
|
+
link: string;
|
|
58
|
+
icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
59
|
+
showSeparator?: boolean;
|
|
60
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ArtifactInfoProps } from '../types';
|
|
2
|
+
declare const ArtifactInfo: ({ imagePath, registryName, registryType, image, deployedTime, deployedBy, isRollbackTrigger, excludedImagePathNode, approvalChecksNode, approvalInfoTippy, }: ArtifactInfoProps) => JSX.Element;
|
|
3
|
+
export default ArtifactInfo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ArtifactInfo } from './ArtifactInfo';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ImageCardProps } from './types';
|
|
2
|
+
declare const ImageCard: ({ testIdLocator, cta, sequentialCDCardTitleProps, artifactInfoProps, imageTagContainerProps, children, rootClassName, materialInfoRootClassName, }: ImageCardProps) => JSX.Element;
|
|
3
|
+
export default ImageCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DeploymentEnvState } from './DeploymentEnvState';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { SequentialCDCardTitleProps } from '../types';
|
|
2
|
+
declare const SequentialCDCardTitle: ({ isLatest, isRunningOnParentCD, artifactStatus, environmentName, parentEnvironmentName, stageType, showLatestTag, isVirtualEnvironment, deployedOn, additionalInfo, }: SequentialCDCardTitleProps) => JSX.Element;
|
|
3
|
+
export default SequentialCDCardTitle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SequentialCDCardTitle } from './SequentialCDCardTitle';
|