@devtron-labs/devtron-fe-common-lib 0.0.76-beta-1 → 0.0.76-beta-3
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/AddCDButton/AddCDButton.d.ts +1 -1
- package/dist/Common/AddCDButton/types.d.ts +1 -0
- package/dist/Common/AddCDButton/utils.d.ts +1 -0
- package/dist/Common/Api.d.ts +2 -1
- package/dist/Common/AppStatus/AppStatus.d.ts +1 -1
- package/dist/Common/BreadCrumb/BreadCrumb.d.ts +2 -1
- package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +2 -1
- package/dist/Common/ChartVersionAndTypeSelector.d.ts +1 -0
- package/dist/Common/Checkbox.d.ts +2 -1
- package/dist/Common/ClipboardButton/ClipboardButton.d.ts +2 -2
- package/dist/Common/CodeEditor/CodeEditor.d.ts +2 -1
- package/dist/Common/Common.service.d.ts +1 -1
- package/dist/Common/Constants.d.ts +27 -8
- package/dist/Common/CustomInput/CustomInput.d.ts +1 -0
- package/dist/Common/CustomInput/Types.d.ts +2 -1
- package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +1 -0
- package/dist/Common/CustomTagSelector/TagDetails.d.ts +1 -0
- package/dist/Common/CustomTagSelector/TagLabelSelect.d.ts +1 -0
- package/dist/Common/CustomTagSelector/TagLabelValueSelector.d.ts +1 -0
- package/dist/Common/CustomTagSelector/Types.d.ts +2 -2
- package/dist/Common/DebouncedSearch/DebouncedSearch.d.ts +1 -1
- package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +1 -0
- package/dist/Common/DevtronProgressing/DevtronProgressing.d.ts +1 -0
- package/dist/Common/Dialogs/ConfirmationDialog.d.ts +1 -0
- package/dist/Common/Dialogs/DeleteDialog.d.ts +2 -1
- package/dist/Common/Dialogs/DialogForm.d.ts +2 -1
- package/dist/Common/Dialogs/ForceDeleteDialog.d.ts +1 -1
- package/dist/Common/Dialogs/Types.d.ts +1 -0
- package/dist/Common/DraggableWrapper/DraggableButton.d.ts +1 -1
- package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +1 -1
- package/dist/Common/DraggableWrapper/types.d.ts +1 -0
- package/dist/Common/Drawer/Drawer.d.ts +1 -0
- package/dist/Common/EmptyState/GenericEmptyState.d.ts +1 -0
- package/dist/Common/ErrorPage.d.ts +4 -0
- package/dist/Common/ErrorScreenManager.d.ts +4 -0
- package/dist/Common/ErrorScreenNotAuthorized.d.ts +4 -0
- package/dist/Common/Grid/Grid.d.ts +1 -1
- package/dist/Common/Grid/types.d.ts +1 -0
- package/dist/Common/Helper.d.ts +5 -2
- package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.d.ts +1 -0
- package/dist/Common/Hooks/index.d.ts +0 -1
- package/dist/Common/Hooks/useUrlFilters/types.d.ts +1 -0
- package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +1 -0
- package/dist/Common/ImageTags.Types.d.ts +1 -1
- package/dist/Common/ImageTags.d.ts +1 -0
- package/dist/Common/InfoColorBar/InfoColourbar.d.ts +1 -0
- package/dist/Common/Modals/Modal.d.ts +2 -1
- package/dist/Common/Modals/OpaqueModal.d.ts +2 -1
- package/dist/Common/Modals/VisibleModal.d.ts +2 -1
- package/dist/Common/Modals/VisibleModal2.d.ts +2 -1
- package/dist/Common/MultiSelectCustomization.d.ts +2 -1
- package/dist/Common/Pagination/PageSizeSelector.d.ts +1 -0
- package/dist/Common/Pagination/Pagination.d.ts +1 -0
- package/dist/Common/Pagination/utils.d.ts +1 -0
- package/dist/Common/Policy.Types.d.ts +2 -1
- package/dist/Common/PopupMenu.d.ts +1 -0
- package/dist/Common/Progressing.d.ts +1 -0
- package/dist/Common/RJSF/Form.d.ts +1 -0
- package/dist/Common/RJSF/common/FieldRow.d.ts +2 -1
- package/dist/Common/RJSF/common/types.d.ts +1 -0
- package/dist/Common/RJSF/config.d.ts +2 -1
- package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +1 -0
- package/dist/Common/RJSF/templates/ArrayFieldTemplate.d.ts +1 -0
- package/dist/Common/RJSF/templates/BaseInput.d.ts +1 -0
- package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -0
- package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.d.ts +1 -0
- package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.d.ts +1 -0
- package/dist/Common/RJSF/templates/Description.d.ts +1 -0
- package/dist/Common/RJSF/templates/Field.d.ts +1 -0
- package/dist/Common/RJSF/templates/FieldErrorTemplate.d.ts +1 -0
- package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +1 -0
- package/dist/Common/RJSF/templates/TitleField.d.ts +1 -0
- package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.d.ts +1 -0
- package/dist/Common/RJSF/types.d.ts +2 -1
- package/dist/Common/RJSF/utils.d.ts +2 -1
- package/dist/Common/RJSF/widgets/Checkbox.d.ts +1 -0
- package/dist/Common/RJSF/widgets/Select.d.ts +1 -0
- package/dist/Common/RadioGroup/RadioGroup.d.ts +2 -1
- package/dist/Common/RadioGroup.d.ts +2 -2
- package/dist/Common/RadioGroupItem.d.ts +1 -0
- package/dist/Common/Reload.d.ts +2 -2
- package/dist/Common/ResizableTextarea.d.ts +2 -1
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -0
- package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +2 -2
- package/dist/Common/Select/Select.d.ts +2 -1
- package/dist/Common/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +1 -0
- package/dist/Common/SortableTableHeaderCell/types.d.ts +1 -0
- package/dist/Common/TippyCustomized.d.ts +1 -0
- package/dist/Common/ToastBody.d.ts +2 -1
- package/dist/Common/Toggle/Toggle.d.ts +1 -0
- package/dist/Common/Types.d.ts +26 -68
- package/dist/Common/index.d.ts +2 -2
- package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupsTable.component.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/types.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/Footer.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +4 -3
- package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +1 -0
- package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +2 -1
- package/dist/Shared/Components/APIResponseHandler/types.d.ts +2 -10
- package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -0
- package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +1 -0
- package/dist/Shared/Components/BulkSelection/BulkSelectionProvider.d.ts +1 -0
- package/dist/Shared/Components/BulkSelection/types.d.ts +1 -1
- package/dist/Shared/Components/ButtonWithLoader/ButtonWithLoader.d.ts +2 -1
- package/dist/Shared/Components/EditableTextArea/EditableTextArea.d.ts +2 -1
- package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -0
- package/dist/Shared/Components/FilterChips/types.d.ts +1 -0
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +2 -1
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +1 -21
- package/dist/Shared/Components/GettingStartedCard/GettingStarted.d.ts +1 -0
- package/dist/Shared/Components/GettingStartedCard/service.d.ts +1 -0
- package/dist/Shared/Components/GettingStartedCard/types.d.ts +1 -0
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -0
- package/dist/Shared/Components/Header/HelpNav.d.ts +1 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -0
- package/dist/Shared/Components/Header/constants.d.ts +1 -0
- package/dist/Shared/Components/Header/service.d.ts +2 -1
- package/dist/Shared/Components/Header/types.d.ts +1 -1
- package/dist/Shared/Components/KeyValueList/KeyValueList.d.ts +1 -0
- package/dist/Shared/Components/LogoutCard.d.ts +2 -1
- package/dist/Shared/Components/ReactSelect/utils.d.ts +0 -1
- package/dist/Shared/Components/index.d.ts +0 -7
- package/dist/Shared/Helpers.d.ts +0 -7
- package/dist/Shared/Providers/MainContextProvider.d.ts +1 -0
- package/dist/Shared/Providers/types.d.ts +3 -2
- package/dist/Shared/index.d.ts +0 -1
- package/dist/Shared/types.d.ts +0 -157
- package/dist/assets/index.css +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +15358 -15426
- package/package.json +3 -5
- package/dist/Common/Error.d.ts +0 -17
- package/dist/Common/ErrorScreenNotFound.d.ts +0 -2
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcut.d.ts +0 -2
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutContext.d.ts +0 -3
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +0 -3
- package/dist/Common/Hooks/UseRegisterShortcut/index.d.ts +0 -2
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +0 -8
- package/dist/Common/Markdown/MarkDown.d.ts +0 -3
- package/dist/Common/Markdown/Types.d.ts +0 -7
- package/dist/Common/Markdown/index.d.ts +0 -1
- package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +0 -3
- package/dist/Shared/Components/ActivityIndicator/index.d.ts +0 -1
- package/dist/Shared/Components/ActivityIndicator/types.d.ts +0 -3
- package/dist/Shared/Components/ExcludedImageNode/ExcludedImageNode.d.ts +0 -3
- package/dist/Shared/Components/ExcludedImageNode/index.d.ts +0 -1
- package/dist/Shared/Components/ExcludedImageNode/types.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/ArtifactInfo/ArtifactInfo.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/ArtifactInfo/index.d.ts +0 -1
- package/dist/Shared/Components/ImageCard/ArtifactInfo/types.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/ImageCard.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/DeploymentEnvState.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/constants.d.ts +0 -6
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/index.d.ts +0 -1
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/types.d.ts +0 -10
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/utils.d.ts +0 -2
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/index.d.ts +0 -1
- package/dist/Shared/Components/ImageCard/index.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/types.d.ts +0 -40
- package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +0 -3
- package/dist/Shared/Components/ImageCardAccordion/index.d.ts +0 -1
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +0 -23
- package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +0 -3
- package/dist/Shared/Components/ScannedByToolModal/index.d.ts +0 -1
- package/dist/Shared/Components/ScannedByToolModal/types.d.ts +0 -3
- package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +0 -3
- package/dist/Shared/Components/ScannedObjectBar/index.d.ts +0 -1
- package/dist/Shared/Components/ScannedObjectBar/types.d.ts +0 -7
- package/dist/Shared/Components/Vulnerabilities/Vulnerabilities.d.ts +0 -3
- package/dist/Shared/Components/Vulnerabilities/constants.d.ts +0 -4
- package/dist/Shared/Components/Vulnerabilities/index.d.ts +0 -2
- package/dist/Shared/Components/Vulnerabilities/service.d.ts +0 -2
- package/dist/Shared/Components/Vulnerabilities/types.d.ts +0 -8
- package/dist/Shared/Components/Vulnerabilities/utils.d.ts +0 -3
- package/dist/Shared/constants.d.ts +0 -31
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TranslatableString } from '@rjsf/utils';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* Override for the TranslatableString from RJSF
|
|
4
5
|
*/
|
|
@@ -16,7 +17,7 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
|
|
|
16
17
|
/**
|
|
17
18
|
* Returns the redirection props for a url
|
|
18
19
|
*/
|
|
19
|
-
export declare const getRedirectionProps: (url: string) => import(
|
|
20
|
+
export declare const getRedirectionProps: (url: string) => import('react').AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
20
21
|
url: string;
|
|
21
22
|
};
|
|
22
23
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { RadioGroupProps } from './Types';
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
export declare const RadioGroupContext: import('react').Context<{
|
|
4
4
|
name: string;
|
|
5
5
|
value: string;
|
|
6
6
|
disabled: boolean;
|
package/dist/Common/Reload.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ScanVulnerabilitiesTableProps } from '../Types';
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
export default function ScanVulnerabilitiesTable({ vulnerabilities }: ScanVulnerabilitiesTableProps): JSX.Element;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React, { ReactNode, CSSProperties } from 'react';
|
|
2
|
-
import { Placement } from 'tippy.js';
|
|
3
|
-
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
4
1
|
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
|
5
|
-
import {
|
|
2
|
+
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
3
|
+
import { Placement } from 'tippy.js';
|
|
4
|
+
import { default as React, ReactNode, CSSProperties } from 'react';
|
|
5
|
+
|
|
6
6
|
/**
|
|
7
7
|
* Generic response type object with support for overriding the result type
|
|
8
8
|
*
|
|
@@ -52,7 +52,6 @@ export interface CheckboxProps {
|
|
|
52
52
|
onChange: (event: any) => void;
|
|
53
53
|
isChecked: boolean;
|
|
54
54
|
value: 'CHECKED' | 'INTERMEDIATE' | 'BULK_CHECKED';
|
|
55
|
-
name?: string;
|
|
56
55
|
disabled?: boolean;
|
|
57
56
|
tabIndex?: number;
|
|
58
57
|
rootClassName?: string;
|
|
@@ -110,6 +109,21 @@ export interface GenericEmptyStateType {
|
|
|
110
109
|
layout?: 'row' | 'column';
|
|
111
110
|
contentClassName?: string;
|
|
112
111
|
}
|
|
112
|
+
export interface ErrorPageType extends Pick<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'renderButton' | 'imageType'> {
|
|
113
|
+
code: number;
|
|
114
|
+
heightToDeduct?: number;
|
|
115
|
+
}
|
|
116
|
+
export interface ErrorScreenManagerProps {
|
|
117
|
+
code?: number;
|
|
118
|
+
reload?: (...args: any[]) => any;
|
|
119
|
+
subtitle?: React.ReactChild;
|
|
120
|
+
reloadClass?: string;
|
|
121
|
+
heightToDeduct?: number;
|
|
122
|
+
}
|
|
123
|
+
export interface ErrorScreenNotAuthorizedProps {
|
|
124
|
+
subtitle?: React.ReactChild;
|
|
125
|
+
title?: string;
|
|
126
|
+
}
|
|
113
127
|
export declare enum ImageType {
|
|
114
128
|
Large = "large",
|
|
115
129
|
Medium = "medium"
|
|
@@ -131,6 +145,7 @@ export interface InfoColourBarType {
|
|
|
131
145
|
export interface ReloadType {
|
|
132
146
|
reload?: (event?: any) => void;
|
|
133
147
|
className?: string;
|
|
148
|
+
heightToDeduct?: number;
|
|
134
149
|
}
|
|
135
150
|
export interface RadioGroupItemProps {
|
|
136
151
|
value: string;
|
|
@@ -248,34 +263,6 @@ export declare enum FilterStates {
|
|
|
248
263
|
export declare enum MaterialDataSource {
|
|
249
264
|
EXTERNAL = "ext"
|
|
250
265
|
}
|
|
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
|
-
}
|
|
279
266
|
export interface DeploymentWindowArtifactMetadata {
|
|
280
267
|
id: number;
|
|
281
268
|
name: string;
|
|
@@ -307,7 +294,7 @@ export interface CDMaterialType {
|
|
|
307
294
|
imageReleaseTags?: ReleaseTag[];
|
|
308
295
|
artifactStatus?: string;
|
|
309
296
|
filterState: FilterStates;
|
|
310
|
-
registryType?:
|
|
297
|
+
registryType?: string;
|
|
311
298
|
imagePath?: string;
|
|
312
299
|
registryName?: string;
|
|
313
300
|
scanToolId?: number;
|
|
@@ -317,28 +304,14 @@ export interface CDMaterialType {
|
|
|
317
304
|
createdTime?: string;
|
|
318
305
|
deployed?: boolean;
|
|
319
306
|
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[];
|
|
326
307
|
deploymentWindowArtifactMetadata?: DeploymentWindowArtifactMetadata;
|
|
327
308
|
}
|
|
328
309
|
export declare enum CDMaterialServiceEnum {
|
|
329
310
|
ROLLBACK = "rollback",
|
|
330
|
-
CD_MATERIALS = "cd-materials"
|
|
331
|
-
IMAGE_PROMOTION = "image-promotion"
|
|
311
|
+
CD_MATERIALS = "cd-materials"
|
|
332
312
|
}
|
|
333
313
|
export declare enum CDMaterialResourceQuery {
|
|
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"
|
|
314
|
+
PENDING_APPROVAL = "PENDING_APPROVAL"
|
|
342
315
|
}
|
|
343
316
|
export declare enum CDMaterialFilterQuery {
|
|
344
317
|
RESOURCE = "ELIGIBLE_RESOURCES",
|
|
@@ -349,11 +322,6 @@ export interface CDMaterialServiceQueryParams {
|
|
|
349
322
|
offset?: number;
|
|
350
323
|
size?: number;
|
|
351
324
|
resource?: CDMaterialResourceQuery;
|
|
352
|
-
resourceName?: string;
|
|
353
|
-
resourceId?: number;
|
|
354
|
-
workflowId?: number;
|
|
355
|
-
appId?: number;
|
|
356
|
-
pendingForCurrentUser?: boolean;
|
|
357
325
|
filter?: CDMaterialFilterQuery;
|
|
358
326
|
}
|
|
359
327
|
export interface DownstreamNodesEnvironmentsType {
|
|
@@ -425,7 +393,6 @@ export interface CommonNodeAttr {
|
|
|
425
393
|
deploymentAppCreated?: boolean;
|
|
426
394
|
isLast?: boolean;
|
|
427
395
|
downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
|
|
428
|
-
cipipelineId?: number;
|
|
429
396
|
isDeploymentBlocked?: boolean;
|
|
430
397
|
}
|
|
431
398
|
export declare enum DeploymentAppTypes {
|
|
@@ -445,8 +412,6 @@ export interface VulnerabilityType {
|
|
|
445
412
|
}
|
|
446
413
|
export interface ScanVulnerabilitiesTableProps {
|
|
447
414
|
vulnerabilities: VulnerabilityType[];
|
|
448
|
-
hidePolicy?: boolean;
|
|
449
|
-
shouldStick?: boolean;
|
|
450
415
|
}
|
|
451
416
|
export interface MaterialInfo {
|
|
452
417
|
revision: string;
|
|
@@ -477,7 +442,7 @@ export interface FilterConditionsListType {
|
|
|
477
442
|
export interface CDMaterialsApprovalInfo {
|
|
478
443
|
approvalUsers: string[];
|
|
479
444
|
userApprovalConfig: UserApprovalConfigType;
|
|
480
|
-
|
|
445
|
+
requestedUserId: number;
|
|
481
446
|
}
|
|
482
447
|
export interface CDMaterialsMetaInfo {
|
|
483
448
|
tagsEditable: boolean;
|
|
@@ -485,16 +450,9 @@ export interface CDMaterialsMetaInfo {
|
|
|
485
450
|
hideImageTaggingHardDelete: boolean;
|
|
486
451
|
resourceFilters?: FilterConditionsListType[];
|
|
487
452
|
totalCount: number;
|
|
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[];
|
|
453
|
+
canApproverDeploy: boolean;
|
|
496
454
|
}
|
|
497
|
-
export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo
|
|
455
|
+
export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo {
|
|
498
456
|
materials: CDMaterialType[];
|
|
499
457
|
}
|
|
500
458
|
export interface InputDetailType {
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ export * from './Types';
|
|
|
4
4
|
export * from './Api';
|
|
5
5
|
export * from './ToastBody';
|
|
6
6
|
export { default as Reload } from './Reload';
|
|
7
|
-
export
|
|
7
|
+
export { default as ErrorScreenManager } from './ErrorScreenManager';
|
|
8
|
+
export { default as ErrorScreenNotAuthorized } from './ErrorScreenNotAuthorized';
|
|
8
9
|
export * from './Helper';
|
|
9
10
|
export * from './Progressing';
|
|
10
11
|
export * from './Drawer/Drawer';
|
|
@@ -49,4 +50,3 @@ export * from './AddCDButton';
|
|
|
49
50
|
export * from './CustomInput';
|
|
50
51
|
export * from './DraggableWrapper';
|
|
51
52
|
export * from './Pagination';
|
|
52
|
-
export * from './Markdown';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { UserRoleGroupsTableProps } from './types';
|
|
2
1
|
import { UserRoleGroup } from '../../../types';
|
|
2
|
+
import { UserRoleGroupsTableProps } from './types';
|
|
3
|
+
|
|
3
4
|
declare const UserRoleGroupTableRow: ({ id, name, description, status, timeToLive, modifierClassName, disableStatusComponent, handleStatusUpdate, handleDelete, statusComponent: StatusComponent, showStatus, showDelete, }: UserRoleGroup & Pick<UserRoleGroupsTableProps, "disableStatusComponent" | "handleStatusUpdate" | "handleDelete" | "statusComponent" | "showStatus"> & {
|
|
4
5
|
modifierClassName: string;
|
|
5
6
|
showDelete: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { UserRoleGroupsTableProps } from './types';
|
|
2
|
+
|
|
2
3
|
declare const UserRoleGroupsTable: ({ roleGroups, showStatus, handleDelete, statusComponent, statusHeaderComponent: StatusHeaderComponent, handleStatusUpdate, disableStatusComponent, }: UserRoleGroupsTableProps) => JSX.Element;
|
|
3
4
|
export default UserRoleGroupsTable;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
1
|
import { BuildInfraInputFieldComponentProps } from './types';
|
|
2
|
+
import { FunctionComponent } from 'react';
|
|
3
|
+
|
|
3
4
|
declare const BuildInfraProfileDescriptionField: FunctionComponent<BuildInfraInputFieldComponentProps>;
|
|
4
5
|
export default BuildInfraProfileDescriptionField;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
1
|
import { BuildInfraInputFieldComponentProps } from './types';
|
|
2
|
+
import { FunctionComponent } from 'react';
|
|
3
|
+
|
|
3
4
|
declare const BuildInfraProfileNameField: FunctionComponent<BuildInfraInputFieldComponentProps>;
|
|
4
5
|
export default BuildInfraProfileNameField;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { UseBreadcrumbProps } from '../../../Common/BreadCrumb/Types';
|
|
2
1
|
import { BuildInfraFormFieldType, BuildInfraMetaConfigTypes, ProfileInputErrorType, BuildInfraProfileBase, HandleProfileInputChangeType } from './types';
|
|
2
|
+
import { UseBreadcrumbProps } from '../../../Common/BreadCrumb/Types';
|
|
3
|
+
|
|
3
4
|
export declare const BUILD_INFRA_INPUT_CONSTRAINTS: {
|
|
4
5
|
readonly STEP: "any";
|
|
5
6
|
readonly MIN: 0;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ResponseType } from '../../../Common';
|
|
2
1
|
import { BuildInfraProfileResponseType, BuildInfraProfileTransformerType, CreateBuildInfraProfileType, GetBuildInfraProfileType, UpdateBuildInfraProfileType } from './types';
|
|
2
|
+
import { ResponseType } from '../../../Common';
|
|
3
|
+
|
|
3
4
|
export declare const getTransformedBuildInfraProfileResponse: ({ configurationUnits, defaultConfigurations, profile, fromCreateView, }: BuildInfraProfileTransformerType) => BuildInfraProfileResponseType;
|
|
4
5
|
export declare const getBuildInfraProfileByName: ({ name, fromCreateView, }: GetBuildInfraProfileType) => Promise<BuildInfraProfileResponseType>;
|
|
5
6
|
export declare const updateBuildInfraProfile: ({ name, profileInput }: UpdateBuildInfraProfileType) => Promise<ResponseType<any>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { FormEvent, FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
|
|
3
|
-
import { ValidationResponseType } from '../../../Shared';
|
|
4
1
|
import { ServerErrors } from '../../../Common';
|
|
2
|
+
import { ValidationResponseType } from '../../../Shared';
|
|
3
|
+
import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
|
|
4
|
+
import { FormEvent, FunctionComponent, ReactNode } from 'react';
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* Unique actions that will be dispatched and,
|
|
7
8
|
* Keeping some values (cpu_limit, etc) in sync with backend
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UseBuildInfraFormProps, UseBuildInfraFormResponseType, ValidateRequestLimitResponseType, ValidateRequestLimitType } from './types';
|
|
2
|
+
|
|
2
3
|
export declare const validateRequestLimit: ({ request, limit, unitsMap, }: ValidateRequestLimitType) => ValidateRequestLimitResponseType;
|
|
3
4
|
export declare const useBuildInfraForm: ({ name, editProfile, handleSuccessRedirection, }: UseBuildInfraFormProps) => UseBuildInfraFormResponseType;
|
|
4
5
|
export declare const unitSelectorStyles: () => {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { APIResponseHandlerProps } from './types';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
declare const APIResponseHandler: ({ isLoading, progressingProps, error, notAuthorized, notFoundText, reloadProps, children, }: APIResponseHandlerProps) => JSX.Element;
|
|
3
4
|
export default APIResponseHandler;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
1
|
import { GenericEmptyStateType, ProgressingProps, ReloadType, ServerErrors } from '../../../Common';
|
|
3
|
-
import {
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
4
|
export interface EmptyPageTextType {
|
|
5
5
|
title?: GenericEmptyStateType['title'];
|
|
6
6
|
subTitle?: GenericEmptyStateType['subTitle'];
|
|
@@ -14,10 +14,6 @@ export interface APIResponseHandlerProps {
|
|
|
14
14
|
* If loading is true, would load send these props to Progressing component
|
|
15
15
|
*/
|
|
16
16
|
progressingProps?: ProgressingProps;
|
|
17
|
-
/**
|
|
18
|
-
* If given, would show this component instead of default Progressing component
|
|
19
|
-
*/
|
|
20
|
-
customLoader?: ReactNode;
|
|
21
17
|
/**
|
|
22
18
|
* If true and isLoading is false would show default Reload component
|
|
23
19
|
* In case error code is 404 show default 404 page using GenericEmptyState
|
|
@@ -35,10 +31,6 @@ export interface APIResponseHandlerProps {
|
|
|
35
31
|
* If given, on Error, would load these props
|
|
36
32
|
*/
|
|
37
33
|
reloadProps?: ReloadType;
|
|
38
|
-
/**
|
|
39
|
-
* If given, would show this component instead of default Error component
|
|
40
|
-
*/
|
|
41
|
-
genericSectionErrorProps?: GenericSectionErrorStateProps;
|
|
42
34
|
/**
|
|
43
35
|
* If no Error and no Loading, would load this component
|
|
44
36
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { BulkSelectionDropdownItemsProps } from './types';
|
|
2
|
+
|
|
2
3
|
declare const BulkSelectionDropdownItems: <T>({ locator, label, isSelected, handleBulkSelection, icon: Icon, iconClass, }: BulkSelectionDropdownItemsProps<T>) => JSX.Element;
|
|
3
4
|
export default BulkSelectionDropdownItems;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { UseBulkSelectionProps, UseBulkSelectionReturnType } from './types';
|
|
2
|
+
|
|
2
3
|
export declare const useBulkSelection: <T>() => UseBulkSelectionReturnType<T>;
|
|
3
4
|
export declare const BulkSelectionProvider: <T>({ children, identifiers, getSelectAllDialogStatus, }: UseBulkSelectionProps<T>) => JSX.Element;
|
package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { GenericSectionErrorStateProps } from './types';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
declare const GenericSectionErrorState: ({ reload, withBorder }: GenericSectionErrorStateProps) => JSX.Element;
|
|
3
4
|
export default GenericSectionErrorState;
|
|
@@ -2,31 +2,11 @@ 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;
|
|
32
12
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { PageHeaderType } from './types';
|
|
2
|
+
|
|
2
3
|
declare const PageHeader: ({ headerName, additionalHeaderInfo, isTippyShown, tippyRedirectLink, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, TippyIcon, tippyMessage, onClickTippybutton, renderActionButtons, showCloseButton, onClose, markAsBeta, showAnnouncementHeader, }: PageHeaderType) => JSX.Element;
|
|
3
4
|
export default PageHeader;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ResponseType } from '../../../Common';
|
|
2
1
|
import { ServerInfoResponse } from './types';
|
|
2
|
+
import { ResponseType } from '../../../Common';
|
|
3
|
+
|
|
3
4
|
export declare const updatePostHogEvent: (payload: any) => Promise<ResponseType>;
|
|
4
5
|
export declare const getServerInfo: (withoutStatus: boolean, isFormHeader: boolean) => Promise<ServerInfoResponse>;
|