@devtron-labs/devtron-fe-common-lib 0.0.59-beta-12 → 0.0.59-beta-13
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/Api.d.ts +0 -9
- package/dist/Common/Constants.d.ts +0 -1
- package/dist/Common/Helper.d.ts +4 -1
- package/dist/Common/Types.d.ts +2 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +190 -1472
- package/package.json +1 -1
- package/src/Common/Api.ts +0 -21
- package/src/Common/BreadCrumb/Types.ts +1 -0
- package/src/Common/Checkbox.tsx +0 -1
- package/src/Common/Constants.ts +1 -2
- package/src/Common/CustomInput/CustomInput.tsx +1 -2
- package/src/Common/DraggableWrapper/DraggableWrapper.tsx +1 -3
- package/src/Common/Helper.tsx +30 -16
- package/src/Common/RJSF/utils.ts +0 -2
- package/src/Common/SearchBar/SearchBar.component.tsx +11 -23
- package/src/Common/SearchBar/searchBar.scss +1 -1
- package/src/Common/Types.ts +1 -3
- package/src/index.ts +1 -3
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.d.ts +0 -4
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.d.ts +0 -4
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.d.ts +0 -7
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.d.ts +0 -4
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.d.ts +0 -4
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +0 -4
- package/dist/Pages/GlobalConfigurations/BuildInfra/Footer.d.ts +0 -4
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +0 -50
- package/dist/Pages/GlobalConfigurations/BuildInfra/index.d.ts +0 -7
- package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +0 -6
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +0 -286
- package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +0 -12
- package/dist/Pages/GlobalConfigurations/index.d.ts +0 -1
- package/dist/Pages/index.d.ts +0 -1
- package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +0 -4
- package/dist/Shared/Components/APIResponseHandler/constants.d.ts +0 -4
- package/dist/Shared/Components/APIResponseHandler/index.d.ts +0 -2
- package/dist/Shared/Components/APIResponseHandler/types.d.ts +0 -37
- package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +0 -4
- package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +0 -4
- package/dist/Shared/Components/BulkSelection/BulkSelectionProvider.d.ts +0 -4
- package/dist/Shared/Components/BulkSelection/constants.d.ts +0 -9
- package/dist/Shared/Components/BulkSelection/index.d.ts +0 -4
- package/dist/Shared/Components/BulkSelection/types.d.ts +0 -54
- package/dist/Shared/Components/ReactSelect/index.d.ts +0 -1
- package/dist/Shared/Components/ReactSelect/utils.d.ts +0 -12
- package/dist/Shared/Components/index.d.ts +0 -3
- package/dist/Shared/Helpers.d.ts +0 -16
- package/dist/Shared/index.d.ts +0 -3
- package/dist/Shared/validations.d.ts +0 -8
- package/src/Assets/Icon/ic-check-all.svg +0 -5
- package/src/Assets/Icon/ic-check-square.svg +0 -4
- package/src/Assets/Icon/ic-close.svg +0 -9
- package/src/Assets/Icon/ic-cpu.svg +0 -4
- package/src/Assets/Icon/ic-memory.svg +0 -3
- package/src/Assets/Icon/ic-timer.svg +0 -3
- package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.tsx +0 -128
- package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.tsx +0 -44
- package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.tsx +0 -106
- package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.tsx +0 -55
- package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.tsx +0 -32
- package/src/Pages/GlobalConfigurations/BuildInfra/Descriptor.tsx +0 -45
- package/src/Pages/GlobalConfigurations/BuildInfra/Footer.tsx +0 -55
- package/src/Pages/GlobalConfigurations/BuildInfra/Readme.md +0 -4
- package/src/Pages/GlobalConfigurations/BuildInfra/constants.tsx +0 -139
- package/src/Pages/GlobalConfigurations/BuildInfra/index.ts +0 -7
- package/src/Pages/GlobalConfigurations/BuildInfra/services.tsx +0 -167
- package/src/Pages/GlobalConfigurations/BuildInfra/types.tsx +0 -339
- package/src/Pages/GlobalConfigurations/BuildInfra/utils.tsx +0 -509
- package/src/Pages/GlobalConfigurations/index.ts +0 -1
- package/src/Pages/index.ts +0 -1
- package/src/Shared/Components/APIResponseHandler/APIResponseHandler.tsx +0 -41
- package/src/Shared/Components/APIResponseHandler/constants.tsx +0 -5
- package/src/Shared/Components/APIResponseHandler/index.ts +0 -2
- package/src/Shared/Components/APIResponseHandler/types.tsx +0 -39
- package/src/Shared/Components/BulkSelection/BulkSelection.tsx +0 -77
- package/src/Shared/Components/BulkSelection/BulkSelectionDropdownItems.tsx +0 -31
- package/src/Shared/Components/BulkSelection/BulkSelectionProvider.tsx +0 -160
- package/src/Shared/Components/BulkSelection/constants.tsx +0 -13
- package/src/Shared/Components/BulkSelection/index.ts +0 -4
- package/src/Shared/Components/BulkSelection/types.tsx +0 -65
- package/src/Shared/Components/ReactSelect/index.ts +0 -1
- package/src/Shared/Components/ReactSelect/utils.tsx +0 -97
- package/src/Shared/Components/index.ts +0 -3
- package/src/Shared/Helpers.tsx +0 -29
- package/src/Shared/index.ts +0 -3
- package/src/Shared/validations.tsx +0 -130
package/package.json
CHANGED
package/src/Common/Api.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ServerErrors } from './ServerError'
|
|
2
2
|
import { FALLBACK_REQUEST_TIMEOUT, Host, URLS } from './Constants'
|
|
3
3
|
import { ResponseType, APIOptions } from './Types'
|
|
4
|
-
import { MutableRefObject } from 'react'
|
|
5
4
|
|
|
6
5
|
const responseMessages = {
|
|
7
6
|
100: 'Continue',
|
|
@@ -229,23 +228,3 @@ export const get = (url: string, options?: APIOptions): Promise<ResponseType> =>
|
|
|
229
228
|
export const trash = (url: string, data?: object, options?: APIOptions): Promise<ResponseType> => {
|
|
230
229
|
return fetchInTime(url, 'DELETE', data, options)
|
|
231
230
|
}
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Aborts the previous request before triggering next request
|
|
235
|
-
*/
|
|
236
|
-
export const abortPreviousRequests = <T,>(
|
|
237
|
-
callback: () => Promise<T>,
|
|
238
|
-
abortControllerRef: MutableRefObject<AbortController>,
|
|
239
|
-
): Promise<T> => {
|
|
240
|
-
abortControllerRef.current.abort()
|
|
241
|
-
// eslint-disable-next-line no-param-reassign
|
|
242
|
-
abortControllerRef.current = new AbortController()
|
|
243
|
-
return callback()
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Returns true if the error is due to a aborted request
|
|
248
|
-
*/
|
|
249
|
-
export const getIsRequestAborted = (error) =>
|
|
250
|
-
// The 0 code is common for aborted and blocked requests
|
|
251
|
-
error && error.code === 0 && error.message === 'The user aborted a request.'
|
package/src/Common/Checkbox.tsx
CHANGED
|
@@ -10,7 +10,6 @@ Valid States of Checkbox:
|
|
|
10
10
|
5. disabled: false, checked: true, value: INTERMIDIATE
|
|
11
11
|
6. disabled: false, checked: true, value: CHECKED
|
|
12
12
|
*/
|
|
13
|
-
// TODO: Associate label with input element
|
|
14
13
|
export class Checkbox extends Component<CheckboxProps> {
|
|
15
14
|
render() {
|
|
16
15
|
let rootClassName = `${this.props.rootClassName ? this.props.rootClassName : ''}`
|
package/src/Common/Constants.ts
CHANGED
|
@@ -25,8 +25,7 @@ export const ROUTES = {
|
|
|
25
25
|
USER_CHECK_ROLE: 'user/check/roles',
|
|
26
26
|
IMAGE_TAGGING:'app/image-tagging',
|
|
27
27
|
CD_MATERIAL_GET: 'app/cd-pipeline',
|
|
28
|
-
DEPLOYMENT_TEMPLATE_LIST: 'app/template/list'
|
|
29
|
-
INFRA_CONFIG_PROFILE: 'infra-config/profile',
|
|
28
|
+
DEPLOYMENT_TEMPLATE_LIST: 'app/template/list'
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
export enum KEY_VALUE {
|
|
@@ -2,7 +2,6 @@ import { CustomInputProps } from './Types'
|
|
|
2
2
|
import { ReactComponent as Info } from '../../Assets/Icon/ic-info-filled.svg'
|
|
3
3
|
import { ReactComponent as ErrorIcon } from '../../Assets/Icon/ic-warning.svg'
|
|
4
4
|
|
|
5
|
-
// TODO: label association with input
|
|
6
5
|
export function CustomInput({
|
|
7
6
|
name,
|
|
8
7
|
value,
|
|
@@ -14,7 +13,7 @@ export function CustomInput({
|
|
|
14
13
|
disabled = false,
|
|
15
14
|
labelClassName = '',
|
|
16
15
|
placeholder = '',
|
|
17
|
-
tabIndex =
|
|
16
|
+
tabIndex = 1,
|
|
18
17
|
dataTestid = '',
|
|
19
18
|
isRequiredField = false,
|
|
20
19
|
autoFocus = false,
|
|
@@ -94,9 +94,8 @@ export default function DraggableWrapper({
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
return (
|
|
97
|
-
// Since we are using position fixed so we need to disable click on the div so that it does not interfere with the click of other elements
|
|
98
97
|
<div
|
|
99
|
-
className="dc__position-fixed
|
|
98
|
+
className="dc__position-fixed"
|
|
100
99
|
style={{
|
|
101
100
|
zIndex,
|
|
102
101
|
}}
|
|
@@ -107,7 +106,6 @@ export default function DraggableWrapper({
|
|
|
107
106
|
{...childDivProps}
|
|
108
107
|
style={{
|
|
109
108
|
zIndex,
|
|
110
|
-
pointerEvents: 'auto',
|
|
111
109
|
}}
|
|
112
110
|
>
|
|
113
111
|
{children}
|
package/src/Common/Helper.tsx
CHANGED
|
@@ -499,18 +499,27 @@ export const getFilteredChartVersions = (charts, selectedChartType) => {
|
|
|
499
499
|
chartRefId: item.chartRefId,
|
|
500
500
|
}))
|
|
501
501
|
}
|
|
502
|
-
|
|
503
|
-
|
|
502
|
+
|
|
503
|
+
function removeEmptyObjectKeysAndNullValues(obj, originaljsonCopy) {
|
|
504
|
+
// It recursively removes empty object keys and empty array keys
|
|
504
505
|
for (let key in obj) {
|
|
505
506
|
if (Array.isArray(obj[key])) {
|
|
506
|
-
if (obj[key].length === 0) continue
|
|
507
|
-
obj[key] = obj[key].filter((item) => item !== null)
|
|
508
507
|
// Check if the array is empty
|
|
509
|
-
if (obj[key].length
|
|
510
|
-
|
|
508
|
+
if (obj[key].length !== 0) {
|
|
509
|
+
obj[key].forEach((element, index) => {
|
|
510
|
+
if (element === null || (typeof element === 'object' && Object.keys(element).length === 0))
|
|
511
|
+
obj[key].splice(index, 1)
|
|
512
|
+
else removeEmptyObjectKeysAndNullValues(element, originaljsonCopy[key][index])
|
|
513
|
+
})
|
|
514
|
+
}
|
|
515
|
+
if (obj[key].length === 0 && originaljsonCopy[key].length !== 0) {
|
|
516
|
+
delete obj[key]
|
|
511
517
|
}
|
|
512
518
|
} else if (obj[key] && typeof obj[key] === 'object') {
|
|
513
|
-
if (
|
|
519
|
+
if (
|
|
520
|
+
removeEmptyObjectKeysAndNullValues(obj[key], originaljsonCopy[key]) &&
|
|
521
|
+
Object.keys(originaljsonCopy[key]).length !== 0
|
|
522
|
+
) {
|
|
514
523
|
delete obj[key]
|
|
515
524
|
}
|
|
516
525
|
} else if (obj[key] === undefined) {
|
|
@@ -520,20 +529,25 @@ function removeEmptyObjectKeysAndNullValues(obj) {
|
|
|
520
529
|
return Object.keys(obj).length === 0
|
|
521
530
|
}
|
|
522
531
|
|
|
523
|
-
export function getUnlockedJSON(json, jsonPathArray) {
|
|
532
|
+
export function getUnlockedJSON(json, jsonPathArray, removeParentKeysAndEmptyArrays = false) {
|
|
533
|
+
if (!jsonPathArray.length) return { newDocument: json, removedPatches: [] }
|
|
534
|
+
|
|
524
535
|
const jsonCopy = JSON.parse(JSON.stringify(json))
|
|
536
|
+
const originaljsonCopy = JSON.parse(JSON.stringify(json))
|
|
537
|
+
let removedPatches = []
|
|
525
538
|
let patches = jsonPathArray.flatMap((jsonPath) => {
|
|
526
539
|
const pathsToRemove = JSONPath({ path: jsonPath, json: jsonCopy, resultType: 'all' })
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
540
|
+
//reversing patches to handle correct array index deletion
|
|
541
|
+
pathsToRemove.reverse()
|
|
542
|
+
return pathsToRemove.map((result) => {
|
|
543
|
+
//storing removed patches to have functionality of undo
|
|
544
|
+
removedPatches.push({ op: 'add', path: result.pointer, value: result.value })
|
|
545
|
+
return { op: 'remove', path: result.pointer }
|
|
546
|
+
})
|
|
532
547
|
})
|
|
533
548
|
let newDocument = jsonpatch.applyPatch(jsonCopy, patches).newDocument
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
return newDocument
|
|
549
|
+
if (removeParentKeysAndEmptyArrays) removeEmptyObjectKeysAndNullValues(newDocument, originaljsonCopy)
|
|
550
|
+
return { newDocument, removedPatches: removedPatches.reverse() }
|
|
537
551
|
}
|
|
538
552
|
|
|
539
553
|
export function getLockedJSON(json, jsonPathArray: string[]) {
|
package/src/Common/RJSF/utils.ts
CHANGED
|
@@ -19,7 +19,6 @@ export const getCommonSelectStyle = (styleOverrides = {}) => {
|
|
|
19
19
|
...base,
|
|
20
20
|
paddingTop: 0,
|
|
21
21
|
paddingBottom: 0,
|
|
22
|
-
cursor: 'pointer',
|
|
23
22
|
}),
|
|
24
23
|
control: (base, state) => ({
|
|
25
24
|
...base,
|
|
@@ -34,7 +33,6 @@ export const getCommonSelectStyle = (styleOverrides = {}) => {
|
|
|
34
33
|
color: 'var(--N900)',
|
|
35
34
|
backgroundColor: state.isFocused ? 'var(--N100)' : 'white',
|
|
36
35
|
padding: '10px 12px',
|
|
37
|
-
cursor: 'pointer',
|
|
38
36
|
}),
|
|
39
37
|
dropdownIndicator: (base, state) => ({
|
|
40
38
|
...base,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEvent, useCallback, useRef, useState, KeyboardEvent
|
|
1
|
+
import { ChangeEvent, useCallback, useRef, useState, KeyboardEvent } from 'react'
|
|
2
2
|
import { ReactComponent as Search } from '../../Assets/Icon/ic-search.svg'
|
|
3
3
|
import { ReactComponent as Clear } from '../../Assets/Icon/ic-error-cross.svg'
|
|
4
4
|
import { SearchBarProps } from './types'
|
|
@@ -55,28 +55,9 @@ const SearchBar = ({
|
|
|
55
55
|
debounceTimeout,
|
|
56
56
|
])
|
|
57
57
|
|
|
58
|
-
// assuming initialSearchText will change if we are changing history otherwise will be constant and will not change
|
|
59
|
-
// since on changing history we expect to make api call using useAsync so not applying handleEnter
|
|
60
|
-
useEffect(() => {
|
|
61
|
-
inputRef.current.value = initialSearchText
|
|
62
|
-
setShowClearButton(!!initialSearchText)
|
|
63
|
-
}, [initialSearchText])
|
|
64
|
-
|
|
65
|
-
const _applySearch = (value: string) => {
|
|
66
|
-
handleSearchChange(value)
|
|
67
|
-
handleEnter(value)
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
const clearSearch = () => {
|
|
71
|
-
inputRef.current.value = ''
|
|
72
|
-
_applySearch('')
|
|
73
|
-
setShowClearButton(false)
|
|
74
|
-
}
|
|
75
|
-
|
|
76
58
|
const handleChange = (e: ChangeEvent<HTMLInputElement>) => {
|
|
77
59
|
const { value } = e.target
|
|
78
60
|
setShowClearButton(!!value)
|
|
79
|
-
|
|
80
61
|
if (shouldDebounce) {
|
|
81
62
|
debouncedSearchChange(value)
|
|
82
63
|
} else {
|
|
@@ -84,17 +65,25 @@ const SearchBar = ({
|
|
|
84
65
|
}
|
|
85
66
|
}
|
|
86
67
|
|
|
68
|
+
const _applySearch = (value: string) => {
|
|
69
|
+
handleSearchChange(value)
|
|
70
|
+
handleEnter(value)
|
|
71
|
+
}
|
|
72
|
+
|
|
87
73
|
const handleKeyDown = (e: KeyboardEvent<HTMLInputElement>) => {
|
|
88
74
|
const { key } = e
|
|
89
75
|
|
|
90
76
|
if (key === 'Enter') {
|
|
91
|
-
e.preventDefault()
|
|
92
77
|
const inputTarget = e.target as HTMLInputElement
|
|
93
78
|
const value = inputTarget.value.trim()
|
|
94
79
|
_applySearch(value)
|
|
95
80
|
}
|
|
96
81
|
}
|
|
97
82
|
|
|
83
|
+
const clearSearch = () => {
|
|
84
|
+
inputRef.current.value = ''
|
|
85
|
+
_applySearch('')
|
|
86
|
+
}
|
|
98
87
|
return (
|
|
99
88
|
<div className={containerClassName}>
|
|
100
89
|
<div className="search-bar bc-n50 focus-within-border-b5 dc__hover-border-n300 dc__block w-100 min-w-200 dc__position-rel en-2 bw-1 br-4 h-32">
|
|
@@ -105,14 +94,13 @@ const SearchBar = ({
|
|
|
105
94
|
type="text"
|
|
106
95
|
{...inputProps}
|
|
107
96
|
defaultValue={initialSearchText}
|
|
108
|
-
className={`search-bar__input
|
|
97
|
+
className={`search-bar__input dc__position-abs w-100 h-100 br-4 dc__no-border pt-6 pr-10 pb-6 pl-30 fs-13 lh-20 fw-4 cn-9 placeholder-cn5 ${
|
|
109
98
|
showClearButton ? 'pr-30' : 'pr-10'
|
|
110
99
|
}`}
|
|
111
100
|
onChange={handleChange}
|
|
112
101
|
onKeyDown={handleKeyDown}
|
|
113
102
|
ref={inputRef}
|
|
114
103
|
/>
|
|
115
|
-
{/* TODO: Sync with product since it should have ic-enter in case of not applied */}
|
|
116
104
|
{showClearButton && (
|
|
117
105
|
<button
|
|
118
106
|
className="flex search-bar__clear-button dc__position-abs dc__transparent mt-0 mb-0 mr-5 ml-5"
|
package/src/Common/Types.ts
CHANGED
|
@@ -51,13 +51,11 @@ export interface Teams {
|
|
|
51
51
|
export enum CHECKBOX_VALUE {
|
|
52
52
|
CHECKED = 'CHECKED',
|
|
53
53
|
INTERMEDIATE = 'INTERMEDIATE',
|
|
54
|
-
BULK_CHECKED = 'BULK_CHECKED',
|
|
55
54
|
}
|
|
56
55
|
export interface CheckboxProps {
|
|
57
56
|
onChange: (event) => void
|
|
58
57
|
isChecked: boolean
|
|
59
|
-
|
|
60
|
-
value: 'CHECKED' | 'INTERMEDIATE' | 'BULK_CHECKED'
|
|
58
|
+
value: 'CHECKED' | 'INTERMEDIATE'
|
|
61
59
|
disabled?: boolean
|
|
62
60
|
tabIndex?: number
|
|
63
61
|
rootClassName?: string
|
package/src/index.ts
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { BuildInfraFormActionProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* In case need arise for variants break this CustomInput and Select as a separate component
|
|
5
|
-
*/
|
|
6
|
-
declare const BuildInfraFormAction: FunctionComponent<BuildInfraFormActionProps>;
|
|
7
|
-
export default BuildInfraFormAction;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { UseBreadcrumbProps } from '../../../Common/BreadCrumb/Types';
|
|
2
|
-
import { BuildInfraFormFieldType, BuildInfraMetaConfigTypes, ProfileInputErrorType, BuildInfraProfileBase, HandleProfileInputChangeType } from './types';
|
|
3
|
-
export declare const BUILD_INFRA_INPUT_CONSTRAINTS: {
|
|
4
|
-
readonly STEP: "any";
|
|
5
|
-
readonly MIN: 0;
|
|
6
|
-
readonly DECIMAL_PLACES: 2;
|
|
7
|
-
};
|
|
8
|
-
export declare const BUILD_INFRA_TEXT: {
|
|
9
|
-
readonly HEADING: "Build Infra Configuration";
|
|
10
|
-
readonly EDIT_SUBMIT: "Save changes";
|
|
11
|
-
readonly SAVE_SUBMIT: "Save";
|
|
12
|
-
readonly EDIT_CANCEL: "Cancel";
|
|
13
|
-
readonly EDIT_DEFAULT_TOOLTIP: "Efficiently control infrastructure settings such as CPU, Memory, and Build timeout for your build pipelines. Streamline resource management to optimise build time and cost effortlessly.";
|
|
14
|
-
readonly DESCRIPTION_LABEL: "Description";
|
|
15
|
-
readonly DESCRIPTION_PLACEHOLDER: "Enter a description here";
|
|
16
|
-
readonly PROFILE_LABEL: "Profile name";
|
|
17
|
-
readonly PROFILE_PLACEHOLDER: "Eg. java or node";
|
|
18
|
-
readonly INHERITING_HEADING_DESCRIPTION: "Inheriting from default";
|
|
19
|
-
readonly SUBMIT_BUTTON_TIPPY: {
|
|
20
|
-
readonly INVALID_INPUT: "Valid input is required for all mandatory fields.";
|
|
21
|
-
readonly REQUEST_IN_PROGRESS: "Request in progress.";
|
|
22
|
-
};
|
|
23
|
-
readonly VALIDATE_REQUEST_LIMIT: {
|
|
24
|
-
readonly REQUEST_LESS_THAN_LIMIT: "Request should be less than or equal to limit.";
|
|
25
|
-
readonly CAN_NOT_COMPUTE: "Request and limit value diff are too high to validate.";
|
|
26
|
-
readonly REQUEST_DECIMAL_PLACES: "Request should be upto 2 decimal places.";
|
|
27
|
-
readonly LIMIT_DECIMAL_PLACES: "Limit should be upto 2 decimal places.";
|
|
28
|
-
};
|
|
29
|
-
readonly getInvalidActionMessage: (action: HandleProfileInputChangeType['action']) => string;
|
|
30
|
-
readonly getSubmitSuccessMessage: (profileName: string, isEdited: boolean) => string;
|
|
31
|
-
readonly PROFILE_NOT_FOUND: {
|
|
32
|
-
readonly title: "Profile not found";
|
|
33
|
-
readonly subTitle: "The profile you are looking for does not exist.";
|
|
34
|
-
};
|
|
35
|
-
readonly INVALID_FORM_MESSAGE: "Valid input is required for all mandatory fields.";
|
|
36
|
-
};
|
|
37
|
-
export declare const BUILD_INFRA_BREADCRUMB: UseBreadcrumbProps;
|
|
38
|
-
export declare const BUILD_INFRA_FORM_FIELDS: BuildInfraFormFieldType[];
|
|
39
|
-
export declare const PROFILE_INPUT_ERROR_FIELDS: ProfileInputErrorType;
|
|
40
|
-
export declare const CREATE_MODE_REQUIRED_INPUT_FIELDS: BuildInfraMetaConfigTypes[];
|
|
41
|
-
export declare const DEFAULT_PROFILE_NAME: "default";
|
|
42
|
-
export declare const CREATE_PROFILE_BASE_VALUE: BuildInfraProfileBase;
|
|
43
|
-
export declare const CREATE_VIEW_CHECKED_CONFIGS: {
|
|
44
|
-
readonly cpu_request: true;
|
|
45
|
-
readonly cpu_limit: true;
|
|
46
|
-
};
|
|
47
|
-
export declare const BUILD_INFRA_TEST_IDS: {
|
|
48
|
-
readonly SUBMIT_BUTTON: "build-infra-submit-button";
|
|
49
|
-
readonly CANCEL_BUTTON: "build-infra-cancel-button";
|
|
50
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as BuildInfraDescriptor } from './Descriptor';
|
|
2
|
-
export { default as BuildInfraFooter } from './Footer';
|
|
3
|
-
export { default as BuildInfraConfigForm } from './BuildInfraConfigForm';
|
|
4
|
-
export * from './services';
|
|
5
|
-
export * from './utils';
|
|
6
|
-
export * from './types';
|
|
7
|
-
export * from './constants';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ResponseType } from '../../../Common';
|
|
2
|
-
import { BuildInfraProfileResponseType, BuildInfraProfileTransformerType, CreateBuildInfraProfileType, GetBuildInfraProfileType, UpdateBuildInfraProfileType } from './types';
|
|
3
|
-
export declare const getTransformedBuildInfraProfileResponse: ({ configurationUnits, defaultConfigurations, profile, fromCreateView, }: BuildInfraProfileTransformerType) => BuildInfraProfileResponseType;
|
|
4
|
-
export declare const getBuildInfraProfileByName: ({ name, fromCreateView, }: GetBuildInfraProfileType) => Promise<BuildInfraProfileResponseType>;
|
|
5
|
-
export declare const updateBuildInfraProfile: ({ name, profileInput }: UpdateBuildInfraProfileType) => Promise<ResponseType<any>>;
|
|
6
|
-
export declare const createBuildInfraProfile: ({ profileInput }: CreateBuildInfraProfileType) => Promise<ResponseType<any>>;
|