@devtron-labs/devtron-fe-common-lib 0.0.86-beta-3 → 0.0.86-beta-4
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/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +1 -1
- package/dist/Common/SortableTableHeaderCell/types.d.ts +5 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +2 -0
- package/dist/Shared/API/APIQueuing.d.ts +11 -0
- package/dist/Shared/API/index.d.ts +1 -0
- package/dist/Shared/Components/EnvironmentSelector/EnvironmentSelector.component.d.ts +4 -0
- package/dist/Shared/Components/EnvironmentSelector/constants.d.ts +5 -0
- package/dist/Shared/Components/EnvironmentSelector/index.d.ts +1 -0
- package/dist/Shared/Components/EnvironmentSelector/service.d.ts +3 -0
- package/dist/Shared/Components/EnvironmentSelector/types.d.ts +27 -0
- package/dist/Shared/Components/EnvironmentSelector/utils.d.ts +6 -0
- package/dist/Shared/Components/ReactSelect/utils.d.ts +4 -0
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +0 -1
- package/dist/Shared/constants.d.ts +0 -1
- package/dist/Shared/index.d.ts +1 -0
- package/dist/Shared/types.d.ts +45 -10
- package/dist/{cssMode-a93292aa.js → cssMode-eb635933.js} +1 -1
- package/dist/{freemarker2-4f96513b.js → freemarker2-5bc6adac.js} +1 -1
- package/dist/{handlebars-91b316ea.js → handlebars-b81c3587.js} +1 -1
- package/dist/{html-0ef96b7f.js → html-27d7619e.js} +1 -1
- package/dist/{htmlMode-c7cb128e.js → htmlMode-f30e3ac8.js} +1 -1
- package/dist/{index-f6d97633.js → index-cda57898.js} +14308 -14200
- package/dist/index.js +262 -262
- package/dist/{javascript-54347635.js → javascript-b9ff5ba8.js} +1 -1
- package/dist/{jsonMode-dc66e4c8.js → jsonMode-905aad21.js} +1 -1
- package/dist/{liquid-a17f188e.js → liquid-6226df5f.js} +1 -1
- package/dist/{mdx-56f6f7e8.js → mdx-28522b7a.js} +1 -1
- package/dist/{python-fc7c0e5b.js → python-ac05f1b2.js} +1 -1
- package/dist/{razor-e2d1ee22.js → razor-75c26505.js} +1 -1
- package/dist/{tsMode-17e4e4af.js → tsMode-5b0d217f.js} +1 -1
- package/dist/{typescript-e54ac274.js → typescript-b34577f5.js} +1 -1
- package/dist/{xml-951b0bf6.js → xml-4ce5ec9a.js} +1 -1
- package/dist/{yaml-98a14e5e.js → yaml-4853ee57.js} +1 -1
- package/package.json +1 -1
|
@@ -14,5 +14,5 @@ import { SortableTableHeaderCellProps } from './types';
|
|
|
14
14
|
* />
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
declare const SortableTableHeaderCell: ({ isSorted, triggerSorting, sortOrder, title, disabled, }: SortableTableHeaderCellProps) => JSX.Element;
|
|
17
|
+
declare const SortableTableHeaderCell: ({ isSorted, triggerSorting, sortOrder, title, disabled, isSortable, }: SortableTableHeaderCellProps) => JSX.Element;
|
|
18
18
|
export default SortableTableHeaderCell;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ApiQueuingWithBatchResponseItem } from '../types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Executes a batch of function calls concurrently with queuing.
|
|
5
|
+
* @param functionCalls The array of function calls returning promise to be executed.
|
|
6
|
+
* @param batchSize The maximum number of function calls to be executed concurrently. Defaults to the value of `window._env_.API_BATCH_SIZE`.
|
|
7
|
+
* @param shouldRejectOnError If set to true, the promise will reject if any of the function calls rejects, i.e, acts like Promise.all else Promise.allSettled . Defaults to false.
|
|
8
|
+
* @returns A promise that resolves to a array of objects containing the status and value of the batch execution.
|
|
9
|
+
*/
|
|
10
|
+
declare const ApiQueuingWithBatch: <T>(functionCalls: any, httpProtocol: string, shouldRejectOnError?: boolean, batchSize?: number) => Promise<ApiQueuingWithBatchResponseItem<T>[]>;
|
|
11
|
+
export default ApiQueuingWithBatch;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ApiQueuingWithBatch } from './APIQueuing';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { EnvironmentSelectorProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const EnvironmentSelector: <T>({ handleEnvironmentChange, selectedEnvironmentsMap, isMulti, placeholder, processOptions, styles, isClearable, autoFocus, }: EnvironmentSelectorProps<T>) => JSX.Element;
|
|
4
|
+
export default EnvironmentSelector;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as EnvironmentSelector } from './EnvironmentSelector.component';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { commonSelectStyles } from '../ReactSelect';
|
|
2
|
+
import { GroupedOptionsType } from '../../types';
|
|
3
|
+
import { OptionType } from '../../../Common';
|
|
4
|
+
|
|
5
|
+
export type SelectedEnvironmentsMapType<T> = Record<string, T>;
|
|
6
|
+
export type BaseSelectorType = {
|
|
7
|
+
isMulti: true;
|
|
8
|
+
handleEnvironmentChange: (options: OptionType[]) => void;
|
|
9
|
+
} | {
|
|
10
|
+
isMulti: false;
|
|
11
|
+
handleEnvironmentChange: (option: OptionType) => void;
|
|
12
|
+
};
|
|
13
|
+
export type EnvironmentSelectorProps<T> = BaseSelectorType & {
|
|
14
|
+
/**
|
|
15
|
+
* Would expect selected option to be like {[selectedOption1.label] = <any value we want to store>, ...}
|
|
16
|
+
*/
|
|
17
|
+
selectedEnvironmentsMap?: SelectedEnvironmentsMapType<T>;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
/**
|
|
20
|
+
* This is a HEAVY operation, so make sure to wrap it in useCallback
|
|
21
|
+
* In case we want to process (filter, rename label, etc) the options before displaying them
|
|
22
|
+
*/
|
|
23
|
+
processOptions?: (options: GroupedOptionsType[]) => GroupedOptionsType[];
|
|
24
|
+
styles?: typeof commonSelectStyles;
|
|
25
|
+
isClearable?: boolean;
|
|
26
|
+
autoFocus?: boolean;
|
|
27
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SelectedEnvironmentsMapType } from './types';
|
|
2
|
+
import { EnvListMinDTO, GroupedOptionsType } from '../../types';
|
|
3
|
+
import { OptionType } from '../../../Common';
|
|
4
|
+
|
|
5
|
+
export declare const parseEnvironmentClusterListToOptions: (environmentClusterList: EnvListMinDTO[]) => GroupedOptionsType[];
|
|
6
|
+
export declare const getSelectedOptions: <T>(selectedEnvironmentsMap: SelectedEnvironmentsMapType<T>, options: GroupedOptionsType[]) => OptionType[];
|
|
@@ -8,6 +8,8 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
|
|
|
8
8
|
loadingMessage: (base: any) => any;
|
|
9
9
|
noOptionsMessage: (base: any) => any;
|
|
10
10
|
placeholder: (base: any) => any;
|
|
11
|
+
group: (base: any) => any;
|
|
12
|
+
groupHeading: (base: any) => any;
|
|
11
13
|
};
|
|
12
14
|
export declare const getCustomOptionSelectionStyle: (styleOverrides?: {}) => (base: any, state: any) => any;
|
|
13
15
|
export declare const SelectOption: (props: any) => JSX.Element;
|
|
@@ -23,4 +25,6 @@ export declare const commonSelectStyles: {
|
|
|
23
25
|
loadingMessage: (base: any) => any;
|
|
24
26
|
noOptionsMessage: (base: any) => any;
|
|
25
27
|
placeholder: (base: any) => any;
|
|
28
|
+
group: (base: any) => any;
|
|
29
|
+
groupHeading: (base: any) => any;
|
|
26
30
|
};
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -23,6 +23,5 @@ export declare const stringComparatorBySortOrder: (a: string, b: string, sortOrd
|
|
|
23
23
|
export declare const numberComparatorBySortOrder: (a: number, b: number, sortOrder?: SortingOrder) => number;
|
|
24
24
|
export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
|
|
25
25
|
export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
26
|
-
export declare const handleDisableSubmitOnEnter: (event: React.KeyboardEvent<HTMLFormElement>) => void;
|
|
27
26
|
export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
|
|
28
27
|
export {};
|
|
@@ -29,7 +29,6 @@ export declare const ModuleNameMap: {
|
|
|
29
29
|
};
|
|
30
30
|
export declare const DATE_TIME_FORMAT_STRING = "ddd DD MMM YYYY HH:mm:ss";
|
|
31
31
|
export declare const API_TOKEN_PREFIX = "API-TOKEN:";
|
|
32
|
-
export declare const DEFAULT_SECRET_PLACEHOLDER = "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022";
|
|
33
32
|
export declare enum PatchOperationType {
|
|
34
33
|
replace = "replace",
|
|
35
34
|
remove = "remove"
|
package/dist/Shared/index.d.ts
CHANGED
package/dist/Shared/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PatchOperationType } from './constants';
|
|
2
|
-
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType } from '../Common';
|
|
2
|
+
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors } from '../Common';
|
|
3
3
|
|
|
4
4
|
export declare enum RegistryType {
|
|
5
5
|
GIT = "git",
|
|
@@ -265,14 +265,49 @@ export declare enum AggregationKeys {
|
|
|
265
265
|
Namespaces = "Namespaces"
|
|
266
266
|
}
|
|
267
267
|
export type AggregationKeysType = keyof typeof AggregationKeys;
|
|
268
|
-
export
|
|
269
|
-
|
|
270
|
-
|
|
268
|
+
export interface AppInfoListType {
|
|
269
|
+
application: string;
|
|
270
|
+
appStatus: string;
|
|
271
|
+
deploymentStatus: string;
|
|
272
|
+
lastDeployed: string;
|
|
273
|
+
lastDeployedImage?: string;
|
|
274
|
+
lastDeployedBy?: string;
|
|
275
|
+
appId: number;
|
|
276
|
+
envId: number;
|
|
277
|
+
pipelineId?: number;
|
|
278
|
+
commits?: string[];
|
|
279
|
+
ciArtifactId?: number;
|
|
271
280
|
}
|
|
272
|
-
export interface
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
281
|
+
export interface EnvListMinDTO {
|
|
282
|
+
id: number;
|
|
283
|
+
active: boolean;
|
|
284
|
+
allowedDeploymentTypes: DeploymentAppTypes[] | null;
|
|
285
|
+
appCount: number;
|
|
286
|
+
cluster_id: number;
|
|
287
|
+
cluster_name: string;
|
|
288
|
+
default: boolean;
|
|
289
|
+
description: string;
|
|
290
|
+
environmentIdentifier: string;
|
|
291
|
+
environment_name: string;
|
|
292
|
+
isClusterCdActive: boolean;
|
|
293
|
+
isDigestEnforcedForEnv: boolean;
|
|
294
|
+
isVirtualEnvironment: boolean;
|
|
295
|
+
namespace: string;
|
|
296
|
+
}
|
|
297
|
+
export declare enum ApiQueuingBatchStatusType {
|
|
298
|
+
FULFILLED = "fulfilled",
|
|
299
|
+
REJECTED = "rejected"
|
|
300
|
+
}
|
|
301
|
+
export type ApiQueuingWithBatchResponseItem<T> = {
|
|
302
|
+
status: ApiQueuingBatchStatusType.FULFILLED;
|
|
303
|
+
value: T;
|
|
304
|
+
} | {
|
|
305
|
+
status: ApiQueuingBatchStatusType.REJECTED;
|
|
306
|
+
reason: ServerErrors;
|
|
307
|
+
};
|
|
308
|
+
export interface BatchConfigType {
|
|
309
|
+
lastIndex: number;
|
|
310
|
+
results: any[];
|
|
311
|
+
concurrentCount: number;
|
|
312
|
+
completedCalls: number;
|
|
277
313
|
}
|
|
278
|
-
export type GitOpsFieldKeyType = 'host' | 'username' | 'token' | 'gitHubOrgId' | 'azureProjectName' | 'gitLabGroupId' | 'bitBucketWorkspaceId' | 'bitBucketProjectKey' | 'sshHost' | 'sshKey';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Le = Object.defineProperty;
|
|
2
2
|
var je = (e, n, i) => n in e ? Le(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => (je(e, typeof n != "symbol" ? n + "" : n, i), i);
|
|
4
|
-
import { m as Ne } from "./index-
|
|
4
|
+
import { m as Ne } from "./index-cda57898.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as F } from "./index-
|
|
1
|
+
import { m as F } from "./index-cda57898.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as i } from "./index-
|
|
1
|
+
import { m as i } from "./index-cda57898.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as d } from "./index-
|
|
1
|
+
import { m as d } from "./index-cda57898.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $e = Object.defineProperty;
|
|
2
2
|
var qe = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => (qe(e, typeof n != "symbol" ? n + "" : n, i), i);
|
|
4
|
-
import { m as Qe } from "./index-
|
|
4
|
+
import { m as Qe } from "./index-cda57898.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|