@devtron-labs/devtron-fe-common-lib 0.0.95-beta-6 → 0.0.95-beta-7
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 +0 -1
- package/dist/Common/Reload.d.ts +3 -0
- package/dist/Shared/Components/ArtifactInfoModal/ArtifactInfoModal.component.d.ts +4 -0
- package/dist/Shared/Components/ArtifactInfoModal/index.d.ts +2 -0
- package/dist/Shared/Components/ArtifactInfoModal/types.d.ts +15 -0
- package/dist/Shared/Components/CommitChipCell/CommitChipCell.d.ts +4 -0
- package/dist/Shared/Components/CommitChipCell/index.d.ts +2 -0
- package/dist/Shared/Components/CommitChipCell/types.d.ts +6 -0
- package/dist/Shared/Components/ImageChipCell/ImageChipCell.component.d.ts +4 -0
- package/dist/Shared/Components/ImageChipCell/index.d.ts +2 -0
- package/dist/Shared/Components/ImageChipCell/types.d.ts +9 -0
- package/dist/Shared/Components/MaterialHistory/MaterialHistory.component.d.ts +4 -0
- package/dist/Shared/Components/MaterialHistory/index.d.ts +2 -0
- package/dist/Shared/Components/MaterialHistory/types.d.ts +8 -0
- package/dist/Shared/Components/index.d.ts +4 -0
- package/dist/Shared/Services/app.service.d.ts +7 -0
- package/dist/Shared/Services/app.types.d.ts +96 -0
- package/dist/Shared/Services/index.d.ts +2 -0
- package/dist/Shared/Services/utils.d.ts +3 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-0e7eae31.js → cssMode-55540cfb.js} +1 -1
- package/dist/{freemarker2-44959768.js → freemarker2-2f7d677e.js} +1 -1
- package/dist/{handlebars-35eafa74.js → handlebars-037c7ae3.js} +1 -1
- package/dist/{html-d2d55459.js → html-1c36e1c4.js} +1 -1
- package/dist/{htmlMode-b26b2dbd.js → htmlMode-1f090173.js} +1 -1
- package/dist/{index-cdf4c791.js → index-e5a62975.js} +15129 -14911
- package/dist/index.js +404 -399
- package/dist/{javascript-1c3775e9.js → javascript-26438d0f.js} +1 -1
- package/dist/{jsonMode-c314ac37.js → jsonMode-e0fe3517.js} +1 -1
- package/dist/{liquid-b2c139b9.js → liquid-19e45287.js} +1 -1
- package/dist/{mdx-1a9901b0.js → mdx-8d7ca125.js} +1 -1
- package/dist/{python-5b1fa217.js → python-5cb1b3c0.js} +1 -1
- package/dist/{razor-15bf38ec.js → razor-74d3225d.js} +1 -1
- package/dist/{tsMode-51d360df.js → tsMode-d3cd0798.js} +1 -1
- package/dist/{typescript-14040f69.js → typescript-1dbc960c.js} +1 -1
- package/dist/{xml-0cf59e60.js → xml-d94b1f08.js} +1 -1
- package/dist/{yaml-ba343edb.js → yaml-701af79d.js} +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,6 @@ import { RegistryTypeDetailType } from './Types';
|
|
|
3
3
|
export declare const FALLBACK_REQUEST_TIMEOUT = 60000;
|
|
4
4
|
export declare const Host: string;
|
|
5
5
|
export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
|
|
6
|
-
export declare const DOCUMENTATION_VERSION = "/v/v0.7";
|
|
7
6
|
export declare const DISCORD_LINK = "https://discord.devtron.ai/";
|
|
8
7
|
export declare const DOCUMENTATION: {
|
|
9
8
|
APP_TAGS: string;
|
package/dist/Common/Reload.d.ts
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ArtifactType } from '../CICDHistory';
|
|
2
|
+
|
|
3
|
+
export type ArtifactInfoModalProps = Pick<ArtifactType, 'renderCIListHeader'> & {
|
|
4
|
+
ciArtifactId: number;
|
|
5
|
+
handleClose: () => void;
|
|
6
|
+
} & ({
|
|
7
|
+
envId: number | string;
|
|
8
|
+
fetchOnlyArtifactInfo?: false;
|
|
9
|
+
} | {
|
|
10
|
+
envId?: never;
|
|
11
|
+
/**
|
|
12
|
+
* If true, the env and trigger meta data is not fetched
|
|
13
|
+
*/
|
|
14
|
+
fetchOnlyArtifactInfo: true;
|
|
15
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CIMaterialType } from '../../Services/app.types';
|
|
2
|
+
|
|
3
|
+
export interface MaterialHistoryProps {
|
|
4
|
+
material: CIMaterialType;
|
|
5
|
+
pipelineName: string;
|
|
6
|
+
ciPipelineId?: string;
|
|
7
|
+
selectCommit?: (materialId: string, commit: string, ciPipelineId?: string) => void;
|
|
8
|
+
}
|
|
@@ -24,4 +24,8 @@ export * from './FeatureDescription';
|
|
|
24
24
|
export * from './CICDHistory';
|
|
25
25
|
export * from './GitCommitInfoGeneric';
|
|
26
26
|
export * from './Error';
|
|
27
|
+
export * from './CommitChipCell';
|
|
28
|
+
export * from './ImageChipCell';
|
|
29
|
+
export * from './ArtifactInfoModal';
|
|
30
|
+
export * from './MaterialHistory';
|
|
27
31
|
export * from './IframeContainer';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CIMaterialInfoType, GetCITriggerInfoParamsType } from './app.types';
|
|
2
|
+
|
|
3
|
+
export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<CIMaterialInfoType>;
|
|
4
|
+
/**
|
|
5
|
+
* The only difference between this and getCITriggerInfo is it doesn't have env and trigger related meta info
|
|
6
|
+
*/
|
|
7
|
+
export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, 'ciArtifactId'>) => Promise<CIMaterialInfoType>;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ReleaseTag } from '../../Common';
|
|
2
|
+
|
|
3
|
+
interface WebhookDataType {
|
|
4
|
+
id: number;
|
|
5
|
+
eventActionType: string;
|
|
6
|
+
data: any;
|
|
7
|
+
}
|
|
8
|
+
interface MaterialHistoryDTO {
|
|
9
|
+
Commit: string;
|
|
10
|
+
Author: string;
|
|
11
|
+
Date: string;
|
|
12
|
+
Message: string;
|
|
13
|
+
Changes: unknown[];
|
|
14
|
+
WebhookData: WebhookDataType;
|
|
15
|
+
}
|
|
16
|
+
interface MaterialHistoryType {
|
|
17
|
+
commitURL: string;
|
|
18
|
+
commit: MaterialHistoryDTO['Commit'];
|
|
19
|
+
author: MaterialHistoryDTO['Author'];
|
|
20
|
+
date: MaterialHistoryDTO['Date'];
|
|
21
|
+
message: MaterialHistoryDTO['Message'];
|
|
22
|
+
changes: MaterialHistoryDTO['Changes'];
|
|
23
|
+
webhookData: MaterialHistoryDTO['WebhookData'];
|
|
24
|
+
showChanges: boolean;
|
|
25
|
+
isSelected: boolean;
|
|
26
|
+
excluded?: boolean;
|
|
27
|
+
}
|
|
28
|
+
interface CIMaterialDTO {
|
|
29
|
+
id: number;
|
|
30
|
+
gitMaterialId: number;
|
|
31
|
+
gitMaterialName: string;
|
|
32
|
+
type: string;
|
|
33
|
+
value: string;
|
|
34
|
+
active: boolean;
|
|
35
|
+
history: MaterialHistoryDTO[];
|
|
36
|
+
lastFetchTime: string;
|
|
37
|
+
url: string;
|
|
38
|
+
}
|
|
39
|
+
interface CIMaterialMetaType {
|
|
40
|
+
isRepoError?: boolean;
|
|
41
|
+
repoErrorMsg?: string;
|
|
42
|
+
isBranchError?: boolean;
|
|
43
|
+
branchErrorMsg?: string;
|
|
44
|
+
isMaterialLoading?: boolean;
|
|
45
|
+
regex?: string;
|
|
46
|
+
searchText?: string;
|
|
47
|
+
noSearchResultsMsg?: string;
|
|
48
|
+
noSearchResult?: boolean;
|
|
49
|
+
isRegex?: boolean;
|
|
50
|
+
isDockerFileError?: boolean;
|
|
51
|
+
dockerFileErrorMsg?: string;
|
|
52
|
+
showAllCommits?: boolean;
|
|
53
|
+
isMaterialSelectionError?: boolean;
|
|
54
|
+
materialSelectionErrorMsg?: string;
|
|
55
|
+
}
|
|
56
|
+
export interface CIMaterialType extends Pick<CIMaterialDTO, 'id' | 'gitMaterialId' | 'gitMaterialName' | 'type' | 'value' | 'active' | 'lastFetchTime'>, CIMaterialMetaType {
|
|
57
|
+
gitURL: CIMaterialDTO['url'];
|
|
58
|
+
history: MaterialHistoryType[];
|
|
59
|
+
isSelected: boolean;
|
|
60
|
+
}
|
|
61
|
+
interface ImageCommentDTO {
|
|
62
|
+
id: number;
|
|
63
|
+
comment: string;
|
|
64
|
+
artifactId: number;
|
|
65
|
+
}
|
|
66
|
+
interface ImageCommentType extends ImageCommentDTO {
|
|
67
|
+
}
|
|
68
|
+
interface ImageTaggingDataDTO {
|
|
69
|
+
imageReleaseTags: ReleaseTag[];
|
|
70
|
+
appReleaseTags: string[];
|
|
71
|
+
imageComment: ImageCommentDTO;
|
|
72
|
+
tagsEditable: boolean;
|
|
73
|
+
}
|
|
74
|
+
interface ImageTaggingDataType extends Pick<ImageTaggingDataDTO, 'imageReleaseTags' | 'appReleaseTags' | 'tagsEditable'> {
|
|
75
|
+
imageComment: ImageCommentType;
|
|
76
|
+
}
|
|
77
|
+
export interface CIMaterialInfoDTO {
|
|
78
|
+
ciPipelineId: number;
|
|
79
|
+
ciMaterials: CIMaterialDTO[];
|
|
80
|
+
triggeredByEmail: string;
|
|
81
|
+
lastDeployedTime: string;
|
|
82
|
+
appId: number;
|
|
83
|
+
appName: string;
|
|
84
|
+
environmentId: number;
|
|
85
|
+
environmentName: string;
|
|
86
|
+
imageTaggingData: ImageTaggingDataDTO;
|
|
87
|
+
image: string;
|
|
88
|
+
}
|
|
89
|
+
export interface CIMaterialInfoType extends Pick<CIMaterialInfoDTO, 'triggeredByEmail' | 'lastDeployedTime' | 'appId' | 'appName' | 'environmentId' | 'environmentName' | 'image' | 'ciPipelineId'>, ImageTaggingDataType {
|
|
90
|
+
materials: CIMaterialType[];
|
|
91
|
+
}
|
|
92
|
+
export interface GetCITriggerInfoParamsType {
|
|
93
|
+
envId: number | string;
|
|
94
|
+
ciArtifactId: number | string;
|
|
95
|
+
}
|
|
96
|
+
export {};
|