@devtron-labs/devtron-fe-common-lib 0.0.77 → 0.0.78-beta-2
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 +2 -0
- package/dist/Common/Constants.d.ts +32 -3
- 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/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 +1 -1
- 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 +83 -9
- package/dist/Common/index.d.ts +2 -1
- 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 +11 -1
- package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +4 -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/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/ExcludedImageNode/ExcludedImageNode.d.ts +4 -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/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 +21 -1
- 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/ImageCard/ArtifactInfo/ArtifactInfo.d.ts +4 -0
- package/dist/Shared/Components/ImageCard/ArtifactInfo/index.d.ts +1 -0
- package/dist/Shared/Components/ImageCard/ArtifactInfo/types.d.ts +4 -0
- package/dist/Shared/Components/ImageCard/ImageCard.d.ts +4 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/DeploymentEnvState.d.ts +4 -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 +11 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/utils.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +4 -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 +41 -0
- package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +4 -0
- package/dist/Shared/Components/ImageCardAccordion/index.d.ts +1 -0
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +24 -0
- package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -0
- 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 +1 -0
- package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +4 -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/Vulnerabilities/Vulnerabilities.d.ts +4 -0
- package/dist/Shared/Components/Vulnerabilities/constants.d.ts +4 -0
- package/dist/Shared/Components/Vulnerabilities/index.d.ts +1 -0
- package/dist/Shared/Components/Vulnerabilities/service.d.ts +3 -0
- package/dist/Shared/Components/Vulnerabilities/types.d.ts +8 -0
- package/dist/Shared/Components/index.d.ts +6 -0
- package/dist/Shared/Helpers.d.ts +7 -0
- package/dist/Shared/Providers/MainContextProvider.d.ts +1 -0
- package/dist/Shared/Providers/types.d.ts +3 -2
- package/dist/Shared/constants.d.ts +31 -0
- package/dist/Shared/index.d.ts +1 -0
- package/dist/Shared/types.d.ts +115 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.js +12950 -12098
- package/package.json +2 -2
- package/dist/Common/Error.d.ts +0 -17
- package/dist/Common/ErrorScreenNotFound.d.ts +0 -2
|
@@ -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
package/dist/Common/Types.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Placement } from 'tippy.js';
|
|
3
|
-
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
1
|
+
import { RegistryType } from '../Shared';
|
|
4
2
|
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
|
3
|
+
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
4
|
+
import { Placement } from 'tippy.js';
|
|
5
|
+
import { default as React, ReactNode, CSSProperties } from 'react';
|
|
6
|
+
|
|
5
7
|
/**
|
|
6
8
|
* Generic response type object with support for overriding the result type
|
|
7
9
|
*
|
|
@@ -51,6 +53,7 @@ export interface CheckboxProps {
|
|
|
51
53
|
onChange: (event: any) => void;
|
|
52
54
|
isChecked: boolean;
|
|
53
55
|
value: 'CHECKED' | 'INTERMEDIATE' | 'BULK_CHECKED';
|
|
56
|
+
name?: string;
|
|
54
57
|
disabled?: boolean;
|
|
55
58
|
tabIndex?: number;
|
|
56
59
|
rootClassName?: string;
|
|
@@ -113,6 +116,21 @@ export interface GenericEmptyStateType {
|
|
|
113
116
|
layout?: 'row' | 'column';
|
|
114
117
|
contentClassName?: string;
|
|
115
118
|
}
|
|
119
|
+
export interface ErrorPageType extends Pick<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'renderButton' | 'imageType'> {
|
|
120
|
+
code: number;
|
|
121
|
+
heightToDeduct?: number;
|
|
122
|
+
}
|
|
123
|
+
export interface ErrorScreenManagerProps {
|
|
124
|
+
code?: number;
|
|
125
|
+
reload?: (...args: any[]) => any;
|
|
126
|
+
subtitle?: React.ReactChild;
|
|
127
|
+
reloadClass?: string;
|
|
128
|
+
heightToDeduct?: number;
|
|
129
|
+
}
|
|
130
|
+
export interface ErrorScreenNotAuthorizedProps {
|
|
131
|
+
subtitle?: React.ReactChild;
|
|
132
|
+
title?: string;
|
|
133
|
+
}
|
|
116
134
|
export declare enum ImageType {
|
|
117
135
|
Large = "large",
|
|
118
136
|
Medium = "medium"
|
|
@@ -134,6 +152,7 @@ export interface InfoColourBarType {
|
|
|
134
152
|
export interface ReloadType {
|
|
135
153
|
reload?: (event?: any) => void;
|
|
136
154
|
className?: string;
|
|
155
|
+
heightToDeduct?: number;
|
|
137
156
|
}
|
|
138
157
|
export interface RadioGroupItemProps {
|
|
139
158
|
value: string;
|
|
@@ -251,6 +270,34 @@ export declare enum FilterStates {
|
|
|
251
270
|
export declare enum MaterialDataSource {
|
|
252
271
|
EXTERNAL = "ext"
|
|
253
272
|
}
|
|
273
|
+
export declare enum ImagePromotionRuntimeState {
|
|
274
|
+
AWAITING = "AWAITING",
|
|
275
|
+
PROMOTED = "PROMOTED",
|
|
276
|
+
CANCELLED = "CANCELLED",
|
|
277
|
+
STALE = "STALE"
|
|
278
|
+
}
|
|
279
|
+
export interface ImagePromotionPolicyApprovalMetadata {
|
|
280
|
+
approverCount: number;
|
|
281
|
+
allowRequesterFromApprove: boolean;
|
|
282
|
+
allowImageBuilderFromApprove: boolean;
|
|
283
|
+
allowApproverFromDeploy: boolean;
|
|
284
|
+
}
|
|
285
|
+
export interface ImagePromotionPolicyInfoType {
|
|
286
|
+
name: string;
|
|
287
|
+
id: number;
|
|
288
|
+
description: string;
|
|
289
|
+
conditions: FilterConditionsInfo[];
|
|
290
|
+
approvalMetadata: ImagePromotionPolicyApprovalMetadata;
|
|
291
|
+
}
|
|
292
|
+
export interface PromotionApprovalMetadataType {
|
|
293
|
+
approvalRequestId: number;
|
|
294
|
+
approvalRuntimeState: ImagePromotionRuntimeState;
|
|
295
|
+
approvedUsersData: ApprovalUserDataType[];
|
|
296
|
+
requestedUserData: ApprovalUserDataType;
|
|
297
|
+
policy: ImagePromotionPolicyInfoType;
|
|
298
|
+
promotedFrom?: string;
|
|
299
|
+
promotedFromType?: CDMaterialResourceQuery;
|
|
300
|
+
}
|
|
254
301
|
export interface DeploymentWindowArtifactMetadata {
|
|
255
302
|
id: number;
|
|
256
303
|
name: string;
|
|
@@ -282,7 +329,7 @@ export interface CDMaterialType {
|
|
|
282
329
|
imageReleaseTags?: ReleaseTag[];
|
|
283
330
|
artifactStatus?: string;
|
|
284
331
|
filterState: FilterStates;
|
|
285
|
-
registryType?:
|
|
332
|
+
registryType?: RegistryType;
|
|
286
333
|
imagePath?: string;
|
|
287
334
|
registryName?: string;
|
|
288
335
|
scanToolId?: number;
|
|
@@ -292,14 +339,28 @@ export interface CDMaterialType {
|
|
|
292
339
|
createdTime?: string;
|
|
293
340
|
deployed?: boolean;
|
|
294
341
|
dataSource?: MaterialDataSource;
|
|
342
|
+
/**
|
|
343
|
+
* The below two keys: `promotionApprovalMetaData`, `deployedOnEnvironments` are used in image promotion
|
|
344
|
+
* and may not be available to cater other use-cases.
|
|
345
|
+
*/
|
|
346
|
+
promotionApprovalMetadata?: PromotionApprovalMetadataType;
|
|
347
|
+
deployedOnEnvironments?: string[];
|
|
295
348
|
deploymentWindowArtifactMetadata?: DeploymentWindowArtifactMetadata;
|
|
296
349
|
}
|
|
297
350
|
export declare enum CDMaterialServiceEnum {
|
|
298
351
|
ROLLBACK = "rollback",
|
|
299
|
-
CD_MATERIALS = "cd-materials"
|
|
352
|
+
CD_MATERIALS = "cd-materials",
|
|
353
|
+
IMAGE_PROMOTION = "image-promotion"
|
|
300
354
|
}
|
|
301
355
|
export declare enum CDMaterialResourceQuery {
|
|
302
|
-
PENDING_APPROVAL = "PENDING_APPROVAL"
|
|
356
|
+
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
357
|
+
PROMOTION_APPROVAL_PENDING_NODE = "PROMOTION_APPROVAL_PENDING_NODE",
|
|
358
|
+
CI = "CI",
|
|
359
|
+
ENVIRONMENT = "ENVIRONMENT",
|
|
360
|
+
WEBHOOK = "WEBHOOK",
|
|
361
|
+
LINKED_CI = "LINKED-CI",
|
|
362
|
+
CI_JOB = "CI-JOB",
|
|
363
|
+
LINKED_CD = "LINKED-CD"
|
|
303
364
|
}
|
|
304
365
|
export declare enum CDMaterialFilterQuery {
|
|
305
366
|
RESOURCE = "ELIGIBLE_RESOURCES",
|
|
@@ -310,6 +371,11 @@ export interface CDMaterialServiceQueryParams {
|
|
|
310
371
|
offset?: number;
|
|
311
372
|
size?: number;
|
|
312
373
|
resource?: CDMaterialResourceQuery;
|
|
374
|
+
resourceName?: string;
|
|
375
|
+
resourceId?: number;
|
|
376
|
+
workflowId?: number;
|
|
377
|
+
appId?: number;
|
|
378
|
+
pendingForCurrentUser?: boolean;
|
|
313
379
|
filter?: CDMaterialFilterQuery;
|
|
314
380
|
}
|
|
315
381
|
export interface DownstreamNodesEnvironmentsType {
|
|
@@ -381,6 +447,7 @@ export interface CommonNodeAttr {
|
|
|
381
447
|
deploymentAppCreated?: boolean;
|
|
382
448
|
isLast?: boolean;
|
|
383
449
|
downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
|
|
450
|
+
cipipelineId?: number;
|
|
384
451
|
isDeploymentBlocked?: boolean;
|
|
385
452
|
}
|
|
386
453
|
export declare enum DeploymentAppTypes {
|
|
@@ -430,7 +497,7 @@ export interface FilterConditionsListType {
|
|
|
430
497
|
export interface CDMaterialsApprovalInfo {
|
|
431
498
|
approvalUsers: string[];
|
|
432
499
|
userApprovalConfig: UserApprovalConfigType;
|
|
433
|
-
|
|
500
|
+
canApproverDeploy: boolean;
|
|
434
501
|
}
|
|
435
502
|
export interface CDMaterialsMetaInfo {
|
|
436
503
|
tagsEditable: boolean;
|
|
@@ -438,9 +505,16 @@ export interface CDMaterialsMetaInfo {
|
|
|
438
505
|
hideImageTaggingHardDelete: boolean;
|
|
439
506
|
resourceFilters?: FilterConditionsListType[];
|
|
440
507
|
totalCount: number;
|
|
441
|
-
|
|
508
|
+
/**
|
|
509
|
+
* This is the ID of user that has request the material
|
|
510
|
+
*/
|
|
511
|
+
requestedUserId: number;
|
|
512
|
+
}
|
|
513
|
+
export interface ImagePromotionMaterialInfo {
|
|
514
|
+
isApprovalPendingForPromotion: boolean;
|
|
515
|
+
imagePromotionApproverEmails: string[];
|
|
442
516
|
}
|
|
443
|
-
export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo {
|
|
517
|
+
export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo, ImagePromotionMaterialInfo {
|
|
444
518
|
materials: CDMaterialType[];
|
|
445
519
|
}
|
|
446
520
|
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';
|
|
@@ -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, customLoader, error, notAuthorized, notFoundText, reloadProps, genericSectionErrorProps, children, }: APIResponseHandlerProps) => JSX.Element;
|
|
3
4
|
export default APIResponseHandler;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GenericSectionErrorStateProps } from '../GenericSectionErrorState/types';
|
|
2
2
|
import { GenericEmptyStateType, ProgressingProps, ReloadType, ServerErrors } from '../../../Common';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
|
|
3
5
|
export interface EmptyPageTextType {
|
|
4
6
|
title?: GenericEmptyStateType['title'];
|
|
5
7
|
subTitle?: GenericEmptyStateType['subTitle'];
|
|
@@ -13,6 +15,10 @@ export interface APIResponseHandlerProps {
|
|
|
13
15
|
* If loading is true, would load send these props to Progressing component
|
|
14
16
|
*/
|
|
15
17
|
progressingProps?: ProgressingProps;
|
|
18
|
+
/**
|
|
19
|
+
* If given, would show this component instead of default Progressing component
|
|
20
|
+
*/
|
|
21
|
+
customLoader?: ReactNode;
|
|
16
22
|
/**
|
|
17
23
|
* If true and isLoading is false would show default Reload component
|
|
18
24
|
* In case error code is 404 show default 404 page using GenericEmptyState
|
|
@@ -30,6 +36,10 @@ export interface APIResponseHandlerProps {
|
|
|
30
36
|
* If given, on Error, would load these props
|
|
31
37
|
*/
|
|
32
38
|
reloadProps?: ReloadType;
|
|
39
|
+
/**
|
|
40
|
+
* If given, would show this component instead of default Error component
|
|
41
|
+
*/
|
|
42
|
+
genericSectionErrorProps?: GenericSectionErrorStateProps;
|
|
33
43
|
/**
|
|
34
44
|
* If no Error and no Loading, would load this component
|
|
35
45
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ActivityIndicator } from './ActivityIndicator';
|
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ExcludedImageNode } from './ExcludedImageNode';
|
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, title, subTitle, description, buttonText, rootClassName, }: GenericSectionErrorStateProps) => JSX.Element;
|
|
3
4
|
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
|
}
|
|
@@ -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;
|