@devtron-labs/devtron-fe-common-lib 0.0.93-beta-1 → 0.0.93-beta-2

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.
Files changed (29) hide show
  1. package/dist/Shared/Components/ArtifactInfoModal/ArtifactInfoModal.component.d.ts +4 -0
  2. package/dist/Shared/Components/ArtifactInfoModal/index.d.ts +2 -0
  3. package/dist/Shared/Components/ArtifactInfoModal/types.d.ts +15 -0
  4. package/dist/Shared/Components/MaterialHistory/MaterialHistory.component.d.ts +4 -0
  5. package/dist/Shared/Components/MaterialHistory/index.d.ts +2 -0
  6. package/dist/Shared/Components/MaterialHistory/types.d.ts +8 -0
  7. package/dist/Shared/Components/index.d.ts +2 -0
  8. package/dist/Shared/Services/app.service.d.ts +7 -0
  9. package/dist/Shared/Services/app.types.d.ts +95 -0
  10. package/dist/Shared/Services/index.d.ts +2 -0
  11. package/dist/Shared/Services/utils.d.ts +3 -0
  12. package/dist/{cssMode-1ce3dbd2.js → cssMode-45205dde.js} +1 -1
  13. package/dist/{freemarker2-60d90890.js → freemarker2-38df5f63.js} +1 -1
  14. package/dist/{handlebars-afd0a44e.js → handlebars-d6e84219.js} +1 -1
  15. package/dist/{html-18107bf7.js → html-787cffed.js} +1 -1
  16. package/dist/{htmlMode-0f769544.js → htmlMode-27d78e36.js} +1 -1
  17. package/dist/{index-d9e06804.js → index-7d372791.js} +17116 -16933
  18. package/dist/index.js +399 -395
  19. package/dist/{javascript-94f3d1e9.js → javascript-b65cd724.js} +1 -1
  20. package/dist/{jsonMode-47e65050.js → jsonMode-fc544e56.js} +1 -1
  21. package/dist/{liquid-adf95f3b.js → liquid-65648720.js} +1 -1
  22. package/dist/{mdx-09a48323.js → mdx-2f8cccbe.js} +1 -1
  23. package/dist/{python-34dbb55a.js → python-756c3cbf.js} +1 -1
  24. package/dist/{razor-c2b2d76e.js → razor-e9e06989.js} +1 -1
  25. package/dist/{tsMode-5b8059ef.js → tsMode-fe756675.js} +1 -1
  26. package/dist/{typescript-e97a24eb.js → typescript-ffc40e50.js} +1 -1
  27. package/dist/{xml-c8f86fd4.js → xml-20e865f4.js} +1 -1
  28. package/dist/{yaml-ac3ad4f0.js → yaml-e2276f15.js} +1 -1
  29. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import { ArtifactInfoModalProps } from './types';
2
+
3
+ declare const ArtifactInfoModal: ({ envId, ciArtifactId, handleClose, renderCIListHeader, fetchOnlyArtifactInfo, }: ArtifactInfoModalProps) => JSX.Element;
4
+ export default ArtifactInfoModal;
@@ -0,0 +1,2 @@
1
+ export { default as ArtifactInfoModal } from './ArtifactInfoModal.component';
2
+ export type { ArtifactInfoModalProps } from './types';
@@ -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,4 @@
1
+ import { MaterialHistoryProps } from './types';
2
+
3
+ declare const MaterialHistory: ({ material, pipelineName, ciPipelineId, selectCommit }: MaterialHistoryProps) => JSX.Element;
4
+ export default MaterialHistory;
@@ -0,0 +1,2 @@
1
+ export { default as MaterialHistory } from './MaterialHistory.component';
2
+ export type { MaterialHistoryProps } from './types';
@@ -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
+ }
@@ -25,3 +25,5 @@ export * from './GitCommitInfoGeneric';
25
25
  export * from './Error';
26
26
  export * from './CommitChipCell';
27
27
  export * from './ImageChipCell';
28
+ export * from './ArtifactInfoModal';
29
+ export * from './MaterialHistory';
@@ -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,95 @@
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
+ ciMaterials: CIMaterialDTO[];
79
+ triggeredByEmail: string;
80
+ lastDeployedTime: string;
81
+ appId: number;
82
+ appName: string;
83
+ environmentId: number;
84
+ environmentName: string;
85
+ imageTaggingData: ImageTaggingDataDTO;
86
+ image: string;
87
+ }
88
+ export interface CIMaterialInfoType extends Pick<CIMaterialInfoDTO, 'triggeredByEmail' | 'lastDeployedTime' | 'appId' | 'appName' | 'environmentId' | 'environmentName' | 'image'>, ImageTaggingDataType {
89
+ materials: CIMaterialType[];
90
+ }
91
+ export interface GetCITriggerInfoParamsType {
92
+ envId: number | string;
93
+ ciArtifactId: number | string;
94
+ }
95
+ export {};
@@ -1,2 +1,4 @@
1
1
  export * from './types';
2
+ export * from './app.types';
3
+ export * from './app.service';
2
4
  export * from './common.service';
@@ -0,0 +1,3 @@
1
+ import { CIMaterialInfoDTO, CIMaterialInfoType } from './app.types';
2
+
3
+ export declare const getParsedCIMaterialInfo: (ciMaterialData: CIMaterialInfoDTO) => CIMaterialInfoType;
@@ -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-d9e06804.js";
4
+ import { m as Ne } from "./index-7d372791.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-d9e06804.js";
1
+ import { m as F } from "./index-7d372791.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-d9e06804.js";
1
+ import { m as i } from "./index-7d372791.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-d9e06804.js";
1
+ import { m as d } from "./index-7d372791.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-d9e06804.js";
4
+ import { m as Qe } from "./index-7d372791.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)