@devtron-labs/devtron-fe-common-lib 0.0.95-beta-2 → 0.0.95-beta-3
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/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/Helpers.d.ts +0 -1
- 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/Shared/constants.d.ts +0 -1
- package/dist/Shared/types.d.ts +0 -13
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-b773b9cd.js → cssMode-66f743a1.js} +1 -1
- package/dist/{freemarker2-a145eded.js → freemarker2-224483a0.js} +1 -1
- package/dist/{handlebars-0507ca2c.js → handlebars-ef5ff4d4.js} +1 -1
- package/dist/{html-19539481.js → html-5b2a32ce.js} +1 -1
- package/dist/{htmlMode-30775328.js → htmlMode-e8b04ecd.js} +1 -1
- package/dist/{index-ac4e86d0.js → index-d1dc748d.js} +17042 -16830
- package/dist/index.d.ts +1 -0
- package/dist/index.js +393 -390
- package/dist/{javascript-e7984ed4.js → javascript-9dd25075.js} +1 -1
- package/dist/{jsonMode-ca187aaa.js → jsonMode-f9949caf.js} +1 -1
- package/dist/{liquid-1b68d349.js → liquid-4b43b6c4.js} +1 -1
- package/dist/{mdx-2d5337cd.js → mdx-e9c38b5b.js} +1 -1
- package/dist/{python-d315888b.js → python-88a4d8d9.js} +1 -1
- package/dist/{razor-3bb641fb.js → razor-288862b7.js} +1 -1
- package/dist/{tsMode-274d8f6a.js → tsMode-2bd8b23b.js} +1 -1
- package/dist/{typescript-0cb2c05f.js → typescript-98fe116f.js} +1 -1
- package/dist/{xml-ad62db8a.js → xml-ce345a71.js} +1 -1
- package/dist/{yaml-93f6f8e1.js → yaml-21566792.js} +1 -1
- package/package.json +1 -1
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';
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -26,7 +26,6 @@ export declare const numberComparatorBySortOrder: (a: number, b: number, sortOrd
|
|
|
26
26
|
export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
|
|
27
27
|
export declare const useIntersection: (target: React.RefObject<Element> | Element | null, options?: IntersectionOptions, callback?: IntersectionChangeHandler) => boolean;
|
|
28
28
|
export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
29
|
-
export declare const handleDisableSubmitOnEnter: (event: React.KeyboardEvent<HTMLFormElement>) => void;
|
|
30
29
|
export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
|
|
31
30
|
export declare const renderValidInputButtonTippy: (children: ReactElement) => JSX.Element;
|
|
32
31
|
export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
|
@@ -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 {};
|
|
@@ -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/types.d.ts
CHANGED
|
@@ -418,19 +418,6 @@ export declare enum AggregationKeys {
|
|
|
418
418
|
Namespaces = "Namespaces"
|
|
419
419
|
}
|
|
420
420
|
export type AggregationKeysType = keyof typeof AggregationKeys;
|
|
421
|
-
export declare enum GitOpsAuthModeType {
|
|
422
|
-
SSH = "SSH",
|
|
423
|
-
PASSWORD = "PASSWORD",
|
|
424
|
-
SSH_AND_PASSWORD = "PAT_AND_SSH"
|
|
425
|
-
}
|
|
426
|
-
export interface BaseGitOpsType {
|
|
427
|
-
authMode: GitOpsAuthModeType;
|
|
428
|
-
sshKey: string;
|
|
429
|
-
sshHost: string;
|
|
430
|
-
username: string;
|
|
431
|
-
token: string;
|
|
432
|
-
}
|
|
433
|
-
export type GitOpsFieldKeyType = 'host' | 'username' | 'token' | 'gitHubOrgId' | 'azureProjectName' | 'gitLabGroupId' | 'bitBucketWorkspaceId' | 'bitBucketProjectKey' | 'sshHost' | 'sshKey';
|
|
434
421
|
export interface AppInfoListType {
|
|
435
422
|
application: string;
|
|
436
423
|
appStatus: string;
|