@devtron-labs/devtron-fe-common-lib 0.0.10-beta-22 → 0.0.11-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.
@@ -1,11 +1,2 @@
1
- import { TeamList, ResponseType } from './Types';
1
+ import { TeamList } from './Types';
2
2
  export declare const getTeamListMin: () => Promise<TeamList>;
3
- interface UserRole extends ResponseType {
4
- result?: {
5
- roles: string[];
6
- superAdmin: boolean;
7
- };
8
- }
9
- export declare function getUserRole(appName?: string): Promise<UserRole>;
10
- export declare function setImageTags(request: any, pipelineId: number, artifactId: number): Promise<ResponseType>;
11
- export {};
@@ -16,8 +16,6 @@ export declare const URLS: {
16
16
  };
17
17
  export declare const ROUTES: {
18
18
  PROJECT_LIST_MIN: string;
19
- USER_CHECK_ROLE: string;
20
- IMAGE_TAGGING: string;
21
19
  };
22
20
  export declare enum KEY_VALUE {
23
21
  KEY = "key",
@@ -23,6 +23,7 @@ export interface DefinitionSourceType {
23
23
  }
24
24
  export interface MandatoryPluginDetailType {
25
25
  id: number;
26
+ icon: string;
26
27
  name: string;
27
28
  description?: string;
28
29
  requiredIn: PluginRequiredStage;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode, CSSProperties } from 'react';
1
+ import { ReactNode, CSSProperties } from 'react';
2
2
  import { Placement } from 'tippy.js';
3
3
  export interface ResponseType {
4
4
  code: number;
@@ -109,6 +109,7 @@ export interface ReloadType {
109
109
  export interface RadioGroupItemProps {
110
110
  value: string;
111
111
  dataTestId?: string;
112
+ disabled?: boolean;
112
113
  }
113
114
  export interface RadioGroupProps {
114
115
  value: string;
@@ -188,32 +189,6 @@ export interface UserApprovalMetadataType {
188
189
  approvedUsersData: ApprovalUserDataType[];
189
190
  requestedUserData: ApprovalUserDataType;
190
191
  }
191
- export interface CDMaterialType {
192
- index: number;
193
- id: string;
194
- materialInfo: MaterialInfo[];
195
- tab: CDModalTabType;
196
- scanEnabled: boolean;
197
- scanned: boolean;
198
- vulnerabilitiesLoading: boolean;
199
- lastExecution: string;
200
- vulnerabilities: VulnerabilityType[];
201
- vulnerable: boolean;
202
- deployedTime: string;
203
- deployedBy?: string;
204
- wfrId?: number;
205
- buildTime: string;
206
- image: string;
207
- isSelected: boolean;
208
- showSourceInfo: boolean;
209
- latest: boolean;
210
- runningOnParentCd?: boolean;
211
- userApprovalMetadata?: UserApprovalMetadataType;
212
- triggeredBy?: number;
213
- imageComment?: ImageComment;
214
- imageReleaseTags?: ReleaseTag[];
215
- artifactStatus?: string;
216
- }
217
192
  export interface CommonNodeAttr {
218
193
  connectingCiPipelineId?: number;
219
194
  parents: string | number[] | string[];
@@ -270,8 +245,6 @@ export interface CommonNodeAttr {
270
245
  action: any;
271
246
  metadataField: string;
272
247
  };
273
- appReleaseTagNames?: string[];
274
- tagsEditable?: boolean;
275
248
  }
276
249
  export interface VulnerabilityType {
277
250
  name: string;
@@ -297,51 +270,33 @@ export interface MaterialInfo {
297
270
  url?: string;
298
271
  type?: string;
299
272
  }
273
+ export interface CDMaterialType {
274
+ index: number;
275
+ id: string;
276
+ materialInfo: MaterialInfo[];
277
+ tab: CDModalTabType;
278
+ scanEnabled: boolean;
279
+ scanned: boolean;
280
+ vulnerabilitiesLoading: boolean;
281
+ lastExecution: string;
282
+ vulnerabilities: VulnerabilityType[];
283
+ vulnerable: boolean;
284
+ deployedTime: string;
285
+ deployedBy?: string;
286
+ wfrId?: number;
287
+ buildTime: string;
288
+ image: string;
289
+ isSelected: boolean;
290
+ showSourceInfo: boolean;
291
+ latest: boolean;
292
+ runningOnParentCd?: boolean;
293
+ userApprovalMetadata?: UserApprovalMetadataType;
294
+ triggeredBy?: number;
295
+ }
300
296
  export interface CDMaterialResponseType {
301
297
  approvalUsers: string[];
302
298
  materials: any[];
303
299
  userApprovalConfig: UserApprovalConfigType;
304
300
  requestedUserId: number;
305
- tagsEditable: boolean;
306
- appReleaseTagNames: string[];
307
- }
308
- export interface ReleaseTag {
309
- id: number;
310
- tagName: string;
311
- appId: number;
312
- deleted: boolean;
313
- artifactId: number;
314
- duplicateTag: boolean;
315
- }
316
- export interface ImageComment {
317
- id: number;
318
- comment: string;
319
- artifactId: number;
320
- }
321
- export interface ImageTaggingContainerType {
322
- ciPipelineId?: number;
323
- artifactId?: number;
324
- imageComment?: ImageComment;
325
- imageReleaseTags?: ReleaseTag[];
326
- updateCurrentAppMaterial?: (matId: number, releaseTags?: ReleaseTag[], imageComment?: ImageComment) => void;
327
- appReleaseTagNames?: string[];
328
- tagsEditable?: boolean;
329
- forceReInit?: boolean;
330
- setAppReleaseTagNames?: (appReleaseTags: string[]) => void;
331
- setTagsEditable?: (tagsEditable: boolean) => void;
332
- toggleCardMode?: (id: number) => void;
333
- hideHardDelete?: boolean;
334
- }
335
- export interface ImageButtonType {
336
- text: string;
337
- isSoftDeleted: boolean;
338
- isEditing: boolean;
339
- onSoftDeleteClick?: any;
340
- onHardDeleteClick?: any;
341
- tagId: number;
342
- softDeleteTags: any;
343
- isSuperAdmin: any;
344
- duplicateTag?: boolean;
345
- hideHardDelete?: boolean;
346
301
  }
347
302
  export {};
@@ -32,4 +32,3 @@ export { default as StyledRadioGroup } from './RadioGroup/RadioGroup';
32
32
  export * from './CIPipeline.Types';
33
33
  export * from './Policy.Types';
34
34
  export { default as DeleteComponent } from './DeleteComponentModal/DeleteComponent';
35
- export * from './ImageTags';