@devtron-labs/devtron-fe-common-lib 0.1.12 → 0.1.13-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Common/Constants.d.ts +2 -0
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +8 -1
- package/dist/Common/SearchBar/utils.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +4 -0
- package/dist/Shared/Components/CICDHistory/constants.d.ts +2 -0
- package/dist/Shared/Components/CICDHistory/service.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +32 -1
- package/dist/Shared/Components/CICDHistory/utils.d.ts +2 -1
- package/dist/Shared/Helpers.d.ts +3 -0
- package/dist/Shared/Hooks/UseDownload/UseDownload.d.ts +8 -0
- package/dist/Shared/Hooks/UseDownload/index.d.ts +2 -0
- package/dist/Shared/Hooks/UseDownload/service.d.ts +1 -0
- package/dist/Shared/Hooks/UseDownload/types.d.ts +7 -0
- package/dist/Shared/Hooks/index.d.ts +1 -0
- package/dist/Shared/constants.d.ts +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-54250664.js → cssMode-2b47179a.js} +1 -1
- package/dist/{freemarker2-fd9e5987.js → freemarker2-cc1503a6.js} +1 -1
- package/dist/{handlebars-df984a80.js → handlebars-af70767b.js} +1 -1
- package/dist/{html-1efc890e.js → html-5c2f4cd1.js} +1 -1
- package/dist/{htmlMode-f997dc3a.js → htmlMode-6d058c93.js} +1 -1
- package/dist/{index-eddeddd0.js → index-08ff3b7c.js} +24274 -23978
- package/dist/index.d.ts +1 -0
- package/dist/index.js +456 -450
- package/dist/{javascript-6fe12319.js → javascript-eab0a166.js} +1 -1
- package/dist/{jsonMode-b24c48c5.js → jsonMode-9e0a6765.js} +1 -1
- package/dist/{liquid-a978f64f.js → liquid-5893af24.js} +1 -1
- package/dist/{mdx-530d8d00.js → mdx-a5ff18ab.js} +1 -1
- package/dist/{python-c532f131.js → python-968aed93.js} +1 -1
- package/dist/{razor-36289beb.js → razor-beeb0082.js} +1 -1
- package/dist/{tsMode-2db8a392.js → tsMode-8fb36378.js} +1 -1
- package/dist/{typescript-3e03a2ee.js → typescript-d17b19f5.js} +1 -1
- package/dist/{xml-19801996.js → xml-5ee1dc86.js} +1 -1
- package/dist/{yaml-7fab141f.js → yaml-42a2ef69.js} +1 -1
- package/package.json +1 -1
|
@@ -229,6 +229,8 @@ export declare enum ReactSelectInputAction {
|
|
|
229
229
|
export declare const ZERO_TIME_STRING = "0001-01-01T00:00:00Z";
|
|
230
230
|
export declare const EXCLUDED_FALSY_VALUES: readonly [any, any, "", number];
|
|
231
231
|
export declare const API_STATUS_CODES: {
|
|
232
|
+
OK: number;
|
|
233
|
+
NO_CONTENT: number;
|
|
232
234
|
BAD_REQUEST: number;
|
|
233
235
|
UNAUTHORIZED: number;
|
|
234
236
|
PERMISSION_DENIED: number;
|
|
@@ -34,5 +34,5 @@ import { SearchBarProps } from './types';
|
|
|
34
34
|
* <SearchBar inputProps={{ placeholder: 'Enter search text' }} />
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
|
|
37
|
+
declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, size, }: SearchBarProps) => JSX.Element;
|
|
38
38
|
export default SearchBar;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentSizeType } from '../../Shared/constants';
|
|
2
|
+
|
|
2
3
|
export interface SearchBarProps {
|
|
3
4
|
/**
|
|
4
5
|
* Initial search text
|
|
@@ -40,4 +41,10 @@ export interface SearchBarProps {
|
|
|
40
41
|
* Hide the background and border of the search
|
|
41
42
|
*/
|
|
42
43
|
noBackgroundAndBorder?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Height of the searchbar
|
|
46
|
+
*
|
|
47
|
+
* @default 'ComponentSizeType.medium'
|
|
48
|
+
*/
|
|
49
|
+
size?: ComponentSizeType.medium | ComponentSizeType.large;
|
|
43
50
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ArtifactType, CIListItemType } from './types';
|
|
2
2
|
|
|
3
3
|
export declare const CIListItem: ({ type, userApprovalMetadata, triggeredBy, children, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, isSuperAdmin, promotionApprovalMetadata, appliedFiltersTimestamp, selectedEnvironmentName, renderCIListHeader, }: CIListItemType) => JSX.Element;
|
|
4
|
-
declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded,
|
|
4
|
+
declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded, downloadArtifactUrl, ciPipelineId, artifactId, isJobView, isJobCI, imageComment, imageReleaseTags, type, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, jobCIClass, renderCIListHeader, }: ArtifactType) => JSX.Element;
|
|
5
5
|
export default Artifacts;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { LogStageAccordionProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, }: LogStageAccordionProps) => JSX.Element;
|
|
4
|
+
export default LogStageAccordion;
|
|
@@ -43,3 +43,5 @@ export declare const DEFAULT_ENV = "devtron-ci";
|
|
|
43
43
|
export declare const LOGS_RETRY_COUNT = 3;
|
|
44
44
|
export declare const DEPLOYMENT_STATUS_QUERY_PARAM = "deployment-status";
|
|
45
45
|
export declare const MANIFEST_STATUS_HEADERS: string[];
|
|
46
|
+
export declare const LOGS_STAGE_IDENTIFIER = "STAGE_INFO";
|
|
47
|
+
export declare const LOGS_STAGE_STREAM_SEPARATOR = "|";
|
|
@@ -23,6 +23,5 @@ export declare const preparePipelineConfigData: (rawData: any) => Record<string,
|
|
|
23
23
|
export declare const prepareConfigMapAndSecretData: (rawData: any, type: string, historyData: DeploymentHistoryDetail, skipDecode?: boolean) => Record<string, DeploymentHistorySingleValue>;
|
|
24
24
|
export declare const prepareHistoryData: (rawData: any, historyComponent: string, skipDecode?: boolean) => DeploymentHistoryDetail;
|
|
25
25
|
export declare const getDeploymentDiffSelector: (pipelineId: string, historyComponent: any, baseConfigurationId: any, historyComponentName: any) => Promise<HistoryDiffSelectorRes>;
|
|
26
|
-
export declare function getCDBuildReport(appId: any, envId: any, pipelineId: any, workflowId: any): Promise<ResponseType<any>>;
|
|
27
26
|
export declare const getTriggerHistory: ({ appId, envId, pagination, releaseId, showCurrentReleaseDeployments, }: TriggerHistoryParamsType) => Promise<Pick<DeploymentHistoryResult, 'result'>>;
|
|
28
27
|
export declare const getModuleConfigured: (moduleName: string) => Promise<ModuleConfigResponse>;
|
|
@@ -469,7 +469,7 @@ export interface ArtifactType {
|
|
|
469
469
|
artifact: string;
|
|
470
470
|
blobStorageEnabled: boolean;
|
|
471
471
|
isArtifactUploaded?: boolean;
|
|
472
|
-
|
|
472
|
+
downloadArtifactUrl?: string;
|
|
473
473
|
isJobView?: boolean;
|
|
474
474
|
isJobCI?: boolean;
|
|
475
475
|
type: HistoryComponentType;
|
|
@@ -584,6 +584,37 @@ export interface TriggerHistoryFilterCriteriaProps {
|
|
|
584
584
|
releaseId: number;
|
|
585
585
|
showCurrentReleaseDeployments: boolean;
|
|
586
586
|
}
|
|
587
|
+
export declare enum StageStatusType {
|
|
588
|
+
SUCCESS = "Success",
|
|
589
|
+
FAILURE = "Failure",
|
|
590
|
+
/**
|
|
591
|
+
* Not given in API response
|
|
592
|
+
*/
|
|
593
|
+
PROGRESSING = "Progressing"
|
|
594
|
+
}
|
|
595
|
+
export interface StageInfoDTO {
|
|
596
|
+
stage: string;
|
|
597
|
+
startTime: string;
|
|
598
|
+
endTime?: string;
|
|
599
|
+
status?: StageStatusType;
|
|
600
|
+
}
|
|
601
|
+
export interface StageDetailType extends Pick<StageInfoDTO, 'stage' | 'startTime' | 'endTime' | 'status'> {
|
|
602
|
+
logs: string[];
|
|
603
|
+
isOpen: boolean;
|
|
604
|
+
}
|
|
605
|
+
export interface LogStageAccordionProps extends StageDetailType {
|
|
606
|
+
handleStageClose: (index: number) => void;
|
|
607
|
+
handleStageOpen: (index: number) => void;
|
|
608
|
+
stageIndex: number;
|
|
609
|
+
/**
|
|
610
|
+
* A stage is loading if it is last in current stage list and event is not closed
|
|
611
|
+
*/
|
|
612
|
+
isLoading: boolean;
|
|
613
|
+
}
|
|
614
|
+
export interface CreateMarkupReturnType {
|
|
615
|
+
__html: string;
|
|
616
|
+
isSearchKeyPresent: boolean;
|
|
617
|
+
}
|
|
587
618
|
export type TriggerHistoryFilterCriteriaType = `${string}|${string}|${string}`[];
|
|
588
619
|
export declare const terminalStatus: Set<string>;
|
|
589
620
|
export declare const statusSet: Set<string>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { TriggerHistoryFilterCriteriaProps, DeploymentHistoryResultObject, TriggerHistoryFilterCriteriaType } from './types';
|
|
1
|
+
import { TriggerHistoryFilterCriteriaProps, DeploymentHistoryResultObject, TriggerHistoryFilterCriteriaType, StageStatusType } from './types';
|
|
2
2
|
|
|
3
3
|
export declare const getTriggerHistoryFilterCriteria: ({ appId, envId, releaseId, showCurrentReleaseDeployments, }: TriggerHistoryFilterCriteriaProps) => TriggerHistoryFilterCriteriaType;
|
|
4
4
|
export declare const getParsedTriggerHistory: (result: any) => DeploymentHistoryResultObject;
|
|
5
5
|
export declare const buildHoverHtmlForWebhook: (eventName: any, condition: any, selectors: any) => JSX.Element;
|
|
6
6
|
export declare const renderIcon: (iconState: string) => JSX.Element;
|
|
7
|
+
export declare const getStageStatusIcon: (status: StageStatusType) => JSX.Element;
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -32,4 +32,7 @@ export declare const renderValidInputButtonTippy: (children: ReactElement) => JS
|
|
|
32
32
|
export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
|
33
33
|
export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
|
|
34
34
|
export declare const decode: (data: any, isEncoded?: boolean) => {};
|
|
35
|
+
export declare const isTimeStringAvailable: (time: string) => boolean;
|
|
36
|
+
export declare const getTimeDifference: (startTime: string, endTime: string) => string;
|
|
37
|
+
export declare const getFileNameFromHeaders: (headers: Headers) => string;
|
|
35
38
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServerErrors } from '../../../Common/ServerError';
|
|
2
|
+
import { HandleDownloadProps } from './types';
|
|
3
|
+
|
|
4
|
+
declare const useDownload: () => {
|
|
5
|
+
handleDownload: ({ downloadUrl, showFilePreparingToast, fileName, showSuccessfulToast, downloadSuccessToastContent, }: HandleDownloadProps) => Promise<Error | ServerErrors>;
|
|
6
|
+
isDownloading: boolean;
|
|
7
|
+
};
|
|
8
|
+
export default useDownload;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getDownloadResponse: (downloadUrl: string) => Promise<Response>;
|