@devtron-labs/devtron-fe-common-lib 0.0.84-beta-6 → 0.0.84-beta-7

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.
@@ -0,0 +1,3 @@
1
+ import { GetResourceApiUrlProps } from './types';
2
+
3
+ export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, queryParams }: GetResourceApiUrlProps<T>) => string;
@@ -1,2 +1,3 @@
1
1
  export * from './cluster.service';
2
2
  export * from './types';
3
+ export * from './common.service';
@@ -1,4 +1,13 @@
1
+ import { ResourceKindType, ResourceVersionType } from '../types';
2
+ import { getUrlWithSearchParams } from '../../Common';
3
+
1
4
  export interface ClusterType {
2
5
  id: number;
3
6
  name: string;
4
7
  }
8
+ export interface GetResourceApiUrlProps<T> {
9
+ baseUrl: string;
10
+ kind: ResourceKindType;
11
+ version: ResourceVersionType;
12
+ queryParams?: T extends Parameters<typeof getUrlWithSearchParams>[1] ? T : never;
13
+ }
@@ -170,7 +170,9 @@ export declare enum ResourceKindType {
170
170
  cluster = "cluster",
171
171
  release = "release",
172
172
  releaseTrack = "release-track",
173
- tenant = "tenant"
173
+ tenant = "tenant",
174
+ installation = "installation",
175
+ environment = "environment"
174
176
  }
175
177
  /**
176
178
  * Versions support for the resources on BE
@@ -292,3 +294,13 @@ export interface EnvironmentType {
292
294
  */
293
295
  cluster: string;
294
296
  }
297
+ export interface CreatedByDTO {
298
+ icon: boolean;
299
+ id: number;
300
+ name: string;
301
+ }
302
+ export declare enum DependencyType {
303
+ UPSTREAM = "upstream",
304
+ DOWNSTREAM = "downstream",
305
+ LEVEL = "level"
306
+ }
@@ -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-2de25627.js";
4
+ import { m as Ne } from "./index-e12efa3b.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-2de25627.js";
1
+ import { m as F } from "./index-e12efa3b.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-2de25627.js";
1
+ import { m as i } from "./index-e12efa3b.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-2de25627.js";
1
+ import { m as d } from "./index-e12efa3b.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-2de25627.js";
4
+ import { m as Qe } from "./index-e12efa3b.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)