@devtron-labs/devtron-fe-common-lib 0.0.10-beta-2 → 0.0.10-beta-6

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,2 +1,11 @@
1
- import { TeamList } from './Types';
1
+ import { TeamList, ResponseType } 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,6 +16,8 @@ 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;
19
21
  };
20
22
  export declare enum KEY_VALUE {
21
23
  KEY = "key",
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ImageButtonType, ImageTaggingContainerType } from './Types';
3
+ export declare const ImageTagsContainer: ({ ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, toggleCardMode, }: ImageTaggingContainerType) => JSX.Element;
4
+ export declare const ImageTagButton: ({ text, isSoftDeleted, isEditing, onSoftDeleteClick, onHardDeleteClick, tagId, softDeleteTags, isSuperAdmin, }: ImageButtonType) => JSX.Element;
@@ -317,4 +317,23 @@ export interface ImageComment {
317
317
  comment: string;
318
318
  artifactId: number;
319
319
  }
320
+ export interface ImageTaggingContainerType {
321
+ ciPipelineId?: number;
322
+ artifactId?: number;
323
+ imageComment?: ImageComment;
324
+ imageReleaseTags?: ReleaseTag[];
325
+ appReleaseTagNames?: string[];
326
+ tagsEditable?: boolean;
327
+ toggleCardMode?: (id: number) => void;
328
+ }
329
+ export interface ImageButtonType {
330
+ text: string;
331
+ isSoftDeleted: boolean;
332
+ isEditing: boolean;
333
+ onSoftDeleteClick?: any;
334
+ onHardDeleteClick?: any;
335
+ tagId: number;
336
+ softDeleteTags: any;
337
+ isSuperAdmin: any;
338
+ }
320
339
  export {};
@@ -32,3 +32,4 @@ 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';