@devtron-labs/devtron-fe-common-lib 0.1.8-beta-15 → 0.1.8-beta-16
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 +1 -0
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +1 -8
- package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/constants.d.ts +0 -2
- package/dist/Shared/Components/CICDHistory/service.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -32
- package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -2
- package/dist/Shared/Helpers.d.ts +0 -2
- package/dist/Shared/Hooks/UseDownload/UseDownload.d.ts +7 -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 +0 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-df1a1d78.js → cssMode-c557a5cd.js} +1 -1
- package/dist/{freemarker2-6cf4e6b7.js → freemarker2-97d38891.js} +1 -1
- package/dist/{handlebars-488425ea.js → handlebars-7a3ccb19.js} +1 -1
- package/dist/{html-45060676.js → html-ea751008.js} +1 -1
- package/dist/{htmlMode-1c469207.js → htmlMode-944d22e3.js} +1 -1
- package/dist/{index-19bf64dd.js → index-bcaaf0c8.js} +23714 -23928
- package/dist/index.d.ts +0 -1
- package/dist/index.js +457 -462
- package/dist/{javascript-63075800.js → javascript-67d15225.js} +1 -1
- package/dist/{jsonMode-7d7eeea7.js → jsonMode-578e23af.js} +1 -1
- package/dist/{liquid-f51a8250.js → liquid-c631b573.js} +1 -1
- package/dist/{mdx-b39485fb.js → mdx-e5dece61.js} +1 -1
- package/dist/{python-facb0bb2.js → python-7c4633fb.js} +1 -1
- package/dist/{razor-8313af80.js → razor-262a8dea.js} +1 -1
- package/dist/{tsMode-f2f78f43.js → tsMode-16db595e.js} +1 -1
- package/dist/{typescript-cf2a1a15.js → typescript-5fe96baf.js} +1 -1
- package/dist/{xml-20b81e20.js → xml-bbce11fe.js} +1 -1
- package/dist/{yaml-84534351.js → yaml-fa57c63a.js} +1 -1
- package/package.json +1 -1
- package/dist/Common/SearchBar/utils.d.ts +0 -3
- package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +0 -4
|
@@ -228,6 +228,7 @@ export declare enum ReactSelectInputAction {
|
|
|
228
228
|
export declare const ZERO_TIME_STRING = "0001-01-01T00:00:00Z";
|
|
229
229
|
export declare const EXCLUDED_FALSY_VALUES: readonly [any, any, "", number];
|
|
230
230
|
export declare const API_STATUS_CODES: {
|
|
231
|
+
OK: number;
|
|
231
232
|
BAD_REQUEST: number;
|
|
232
233
|
UNAUTHORIZED: number;
|
|
233
234
|
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,
|
|
37
|
+
declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
|
|
38
38
|
export default SearchBar;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
3
2
|
export interface SearchBarProps {
|
|
4
3
|
/**
|
|
5
4
|
* Initial search text
|
|
@@ -41,10 +40,4 @@ export interface SearchBarProps {
|
|
|
41
40
|
* Hide the background and border of the search
|
|
42
41
|
*/
|
|
43
42
|
noBackgroundAndBorder?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Height of the searchbar
|
|
46
|
-
*
|
|
47
|
-
* @default 'ComponentSizeType.medium'
|
|
48
|
-
*/
|
|
49
|
-
size?: ComponentSizeType.medium | ComponentSizeType.large;
|
|
50
43
|
}
|
|
@@ -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;
|
|
@@ -43,5 +43,3 @@ 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,37 +584,6 @@ 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
|
-
}
|
|
618
587
|
export type TriggerHistoryFilterCriteriaType = `${string}|${string}|${string}`[];
|
|
619
588
|
export declare const terminalStatus: Set<string>;
|
|
620
589
|
export declare const statusSet: Set<string>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { TriggerHistoryFilterCriteriaProps, DeploymentHistoryResultObject, TriggerHistoryFilterCriteriaType
|
|
1
|
+
import { TriggerHistoryFilterCriteriaProps, DeploymentHistoryResultObject, TriggerHistoryFilterCriteriaType } 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,6 +32,4 @@ 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
35
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HandleDownloadProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const useDownload: () => {
|
|
4
|
+
handleDownload: ({ downloadUrl, showFilePreparingToast, fileName, showSuccessfulToast, downloadSuccessToastContent, }: HandleDownloadProps) => Promise<void>;
|
|
5
|
+
isDownloading: boolean;
|
|
6
|
+
};
|
|
7
|
+
export default useDownload;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getDownloadResponse: (downloadUrl: string) => Promise<Response>;
|