@devtron-labs/devtron-fe-common-lib 0.5.0 → 0.5.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.
@@ -580,4 +580,37 @@ export declare enum RuntimeParamsHeadingType {
580
580
  KEY = "key",
581
581
  VALUE = "value"
582
582
  }
583
+ export declare enum ACCESS_TYPE_MAP {
584
+ DEVTRON_APPS = "devtron-app",// devtron app work flow
585
+ HELM_APPS = "helm-app",// helm app work flow
586
+ JOBS = ""
587
+ }
588
+ export declare enum EntityTypes {
589
+ CHART_GROUP = "chart-group",
590
+ DIRECT = "apps",
591
+ JOB = "jobs",
592
+ DOCKER = "docker",
593
+ GIT = "git",
594
+ CLUSTER = "cluster",
595
+ NOTIFICATION = "notification"
596
+ }
597
+ export interface CustomRoles {
598
+ id: number;
599
+ roleName: string;
600
+ roleDisplayName: string;
601
+ roleDescription: string;
602
+ entity: EntityTypes;
603
+ accessType: ACCESS_TYPE_MAP.DEVTRON_APPS | ACCESS_TYPE_MAP.HELM_APPS;
604
+ }
605
+ export type MetaPossibleRoles = Record<CustomRoles['roleName'], {
606
+ value: CustomRoles['roleDisplayName'];
607
+ description: CustomRoles['roleDescription'];
608
+ }>;
609
+ export interface CustomRoleAndMeta {
610
+ customRoles: CustomRoles[];
611
+ possibleRolesMeta: MetaPossibleRoles;
612
+ possibleRolesMetaForHelm: MetaPossibleRoles;
613
+ possibleRolesMetaForCluster: MetaPossibleRoles;
614
+ possibleRolesMetaForJob: MetaPossibleRoles;
615
+ }
583
616
  export {};
@@ -1,7 +1,7 @@
1
1
  var Fe = Object.defineProperty;
2
2
  var Le = (e, n, i) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => Le(e, typeof n != "symbol" ? n + "" : n, i);
4
- import { m as je } from "./index-Czrg-A8a.js";
4
+ import { m as je } from "./index-C4yFLnbQ.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-Czrg-A8a.js";
1
+ import { m as f } from "./index-C4yFLnbQ.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 l } from "./index-Czrg-A8a.js";
1
+ import { m as l } from "./index-C4yFLnbQ.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 s } from "./index-Czrg-A8a.js";
1
+ import { m as s } from "./index-C4yFLnbQ.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 Be = Object.defineProperty;
2
2
  var $e = (e, n, i) => n in e ? Be(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => $e(e, typeof n != "symbol" ? n + "" : n, i);
4
- import { m as qe } from "./index-Czrg-A8a.js";
4
+ import { m as qe } from "./index-C4yFLnbQ.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)