@devtron-labs/devtron-fe-common-lib 0.2.6-beta-1 → 0.2.6-beta-3
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.
- package/dist/Common/Types.d.ts +21 -1
- package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/Authorization/service.d.ts +4 -0
- package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +17 -3
- package/dist/Shared/Components/SelectPickerCustom/index.d.ts +2 -1
- package/dist/{cssMode-a92794b5.js → cssMode-f60b5189.js} +1 -1
- package/dist/{freemarker2-e5ee51c9.js → freemarker2-a0ffce12.js} +1 -1
- package/dist/{handlebars-9153151b.js → handlebars-42e34207.js} +1 -1
- package/dist/{html-011bc885.js → html-c594787d.js} +1 -1
- package/dist/{htmlMode-4885a742.js → htmlMode-d22b08d1.js} +1 -1
- package/dist/{index-a419ec38.js → index-b35d5cc6.js} +12687 -12663
- package/dist/index.js +336 -333
- package/dist/{javascript-9b5d9b49.js → javascript-1c0e606a.js} +1 -1
- package/dist/{jsonMode-fa67bdba.js → jsonMode-434fef0c.js} +1 -1
- package/dist/{liquid-a2b3aabb.js → liquid-d960198c.js} +1 -1
- package/dist/{mdx-96b66709.js → mdx-0e33c4ce.js} +1 -1
- package/dist/{python-93cea446.js → python-b4261e95.js} +1 -1
- package/dist/{razor-a13e6ece.js → razor-f485b170.js} +1 -1
- package/dist/{tsMode-fa82c200.js → tsMode-94b614a1.js} +1 -1
- package/dist/{typescript-9835808a.js → typescript-9ecfbc0f.js} +1 -1
- package/dist/{xml-f03d7ed4.js → xml-8a720f3b.js} +1 -1
- package/dist/{yaml-82f4884e.js → yaml-85c7806f.js} +1 -1
- package/package.json +1 -1
package/dist/Common/Types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { Placement } from 'tippy.js';
|
|
|
3
3
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
4
4
|
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
|
5
5
|
import { RegistryType } from '../Shared';
|
|
6
|
+
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Generic response type object with support for overriding the result type
|
|
@@ -263,9 +264,28 @@ export declare enum DeploymentNodeType {
|
|
|
263
264
|
POSTCD = "POSTCD",
|
|
264
265
|
APPROVAL = "APPROVAL"
|
|
265
266
|
}
|
|
267
|
+
export declare enum ManualApprovalType {
|
|
268
|
+
specific = "SPECIFIC",
|
|
269
|
+
any = "ANY",
|
|
270
|
+
notConfigured = "NOT_CONFIGURED"
|
|
271
|
+
}
|
|
266
272
|
export interface UserApprovalConfigType {
|
|
273
|
+
type: ManualApprovalType;
|
|
267
274
|
requiredCount: number;
|
|
268
|
-
|
|
275
|
+
specificUsers: {
|
|
276
|
+
identifiers: string[];
|
|
277
|
+
};
|
|
278
|
+
userGroups: (Pick<UserGroupDTO, 'identifier'> & {
|
|
279
|
+
requiredCount: number;
|
|
280
|
+
})[];
|
|
281
|
+
}
|
|
282
|
+
export type UserApprovalConfigPayloadType = ({
|
|
283
|
+
type: ManualApprovalType.any;
|
|
284
|
+
} & Pick<UserApprovalConfigType, 'requiredCount'>) | ({
|
|
285
|
+
type: ManualApprovalType.specific;
|
|
286
|
+
} & Pick<UserApprovalConfigType, 'userGroups' | 'specificUsers'>) | {
|
|
287
|
+
type: ManualApprovalType.notConfigured;
|
|
288
|
+
};
|
|
269
289
|
interface ApprovalUserDataType {
|
|
270
290
|
dataId: number;
|
|
271
291
|
userActionTime: string;
|
|
@@ -41,11 +41,25 @@ export interface UserGroupDTO {
|
|
|
41
41
|
*
|
|
42
42
|
* Follows the validation for app name
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
identifier: string;
|
|
45
45
|
/**
|
|
46
46
|
* Associated description
|
|
47
|
+
*
|
|
48
|
+
* @default ''
|
|
49
|
+
*/
|
|
50
|
+
description?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Number of users assigned to the group
|
|
53
|
+
*
|
|
54
|
+
* @default 0
|
|
47
55
|
*/
|
|
48
|
-
|
|
56
|
+
usersCount?: number;
|
|
49
57
|
}
|
|
50
|
-
export interface UserGroupType extends UserGroupDTO {
|
|
58
|
+
export interface UserGroupType extends Required<Pick<UserGroupDTO, 'description' | 'name' | 'usersCount'>> {
|
|
59
|
+
/**
|
|
60
|
+
* Unique id of the user group
|
|
61
|
+
*
|
|
62
|
+
* Follows the validation for app name
|
|
63
|
+
*/
|
|
64
|
+
userGroupId: string;
|
|
51
65
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { default as SelectPickerCustom } from './SelectPicker.component';
|
|
2
2
|
export { default as FilterSelectPickerCustom } from './FilterSelectPicker';
|
|
3
|
-
export type { SelectPickerOptionType as SelectPickerCustomOptionType,
|
|
3
|
+
export type { SelectPickerOptionType as SelectPickerCustomOptionType, SelectPickerProps as SelectPickerCustomProps, FilterSelectPickerProps as FilterSelectPickerCustomProps, } from './type';
|
|
4
|
+
export { SelectPickerVariantType as SelectPickerCustomVariantType } from './type';
|
|
@@ -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-
|
|
4
|
+
import { m as Ne } from "./index-b35d5cc6.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-
|
|
1
|
+
import { m as F } from "./index-b35d5cc6.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-
|
|
1
|
+
import { m as i } from "./index-b35d5cc6.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-
|
|
1
|
+
import { m as d } from "./index-b35d5cc6.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-
|
|
4
|
+
import { m as Qe } from "./index-b35d5cc6.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|