@dxs-ts/eveli-ide 0.0.158 → 0.0.160

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,6 +1,7 @@
1
1
  export declare namespace IamApi {
2
2
  }
3
3
  export declare namespace IamApi {
4
+ type UserPermission = 'WRENCH_VIEW' | 'WRENCH_EDIT' | 'STENCIL_VIEW' | 'STENCIL_EDIT' | 'TASK_ALL_VIEW' | 'TASK_ALL_EDIT' | 'TASK_ALL_DELETE' | 'TASK_GROUP_VIEW' | 'TASK_GROUP_EDIT' | 'RELEASE_VIEW' | 'RELEASE_EDIT' | 'DEPLOYMENT_VIEW' | 'DEPLOYMENT_EDIT' | 'DASHBOARD_VIEW' | 'FEEDBACK_VIEW' | 'FEEBACK_EDIT' | 'DIALOB_VIEW' | 'DIALOB_EDIT';
4
5
  interface User {
5
6
  userId: string;
6
7
  name: string;
@@ -8,6 +9,7 @@ export declare namespace IamApi {
8
9
  roles: string[];
9
10
  authenticated: boolean;
10
11
  authorized: boolean;
12
+ permissions: UserPermission[];
11
13
  hasRole(...roles: string[]): boolean;
12
14
  }
13
15
  interface UserLiveness {
@@ -1,6 +1,43 @@
1
+ import { IamApi } from '../api-iam';
1
2
  import { default as React } from 'react';
2
- export type EveliPermissionType = 'NAV_TO_WRENCH' | 'NAV_TO_STENCIL' | 'NAV_TO_TASKS' | 'NAV_TO_DIALOB' | 'NAV_TO_RELEASES' | 'NAV_TO_DEPLOYMENTS' | 'NAV_TO_TASK_GROUP' | 'NAV_TO_TASKS_FEEDBACK' | 'NAV_TO_TASKS_DASHBOARD' | 'NAV_TO_TASKS_MONITORING' | 'NAV_TO_TASKS_QUEUES' | 'NAV_TO_STENCIL_ARTICLES' | 'NAV_TO_STENCIL_SERVICES' | 'NAV_TO_STENCIL_LINKS' | 'NAV_TO_STENCIL_LOCALES' | 'NAV_TO_STENCIL_TEMPLATES' | 'NAV_TO_STENCIL_MIGRATIONS' | 'NAV_TO_STENCIL_RELEASES' | 'NAV_TO_WRENCH_FLOWS' | 'NAV_TO_WRENCH_DECISIONS' | 'NAV_TO_WRENCH_SERVICES' | 'NAV_TO_WRENCH_DEBUG' | 'NAV_TO_WRENCH_COMPARE' | 'NAV_TO_WRENCH_RELEASES' | 'CREATE_TASK' | 'CREATE_EVELI_PUBLICATION' | 'CREATE_STENCIL_ASSET' | 'CREATE_WRENCH_ASSET' | 'EXPORT_EVELI_PUBLICATION' | 'EDIT_WRENCH_ASSET' | 'EDIT_STENCIL_ASSET' | 'DELETE_TASK' | 'DELETE_STENCIL_ASSET';
3
+ declare const EveliPermissionMapping: {
4
+ NAV_TO_WRENCH: IamApi.UserPermission[];
5
+ NAV_TO_STENCIL: IamApi.UserPermission[];
6
+ NAV_TO_TASKS: IamApi.UserPermission[];
7
+ NAV_TO_DIALOB: IamApi.UserPermission[];
8
+ NAV_TO_RELEASES: IamApi.UserPermission[];
9
+ NAV_TO_TASK_GROUP: IamApi.UserPermission[];
10
+ NAV_TO_TASKS_FEEDBACK: IamApi.UserPermission[];
11
+ NAV_TO_TASKS_DASHBOARD: IamApi.UserPermission[];
12
+ NAV_TO_TASKS_MONITORING: IamApi.UserPermission[];
13
+ NAV_TO_TASKS_QUEUES: IamApi.UserPermission[];
14
+ NAV_TO_STENCIL_ARTICLES: IamApi.UserPermission[];
15
+ NAV_TO_STENCIL_SERVICES: IamApi.UserPermission[];
16
+ NAV_TO_STENCIL_LINKS: IamApi.UserPermission[];
17
+ NAV_TO_STENCIL_LOCALES: IamApi.UserPermission[];
18
+ NAV_TO_STENCIL_TEMPLATES: IamApi.UserPermission[];
19
+ NAV_TO_STENCIL_MIGRATIONS: IamApi.UserPermission[];
20
+ NAV_TO_STENCIL_RELEASES: IamApi.UserPermission[];
21
+ NAV_TO_WRENCH_FLOWS: IamApi.UserPermission[];
22
+ NAV_TO_WRENCH_DECISIONS: IamApi.UserPermission[];
23
+ NAV_TO_WRENCH_SERVICES: IamApi.UserPermission[];
24
+ NAV_TO_WRENCH_MIGRATIONS: IamApi.UserPermission[];
25
+ NAV_TO_WRENCH_DEBUG: IamApi.UserPermission[];
26
+ NAV_TO_WRENCH_COMPARE: IamApi.UserPermission[];
27
+ NAV_TO_WRENCH_RELEASES: IamApi.UserPermission[];
28
+ CREATE_TASK: IamApi.UserPermission[];
29
+ CREATE_STENCIL_ASSET: IamApi.UserPermission[];
30
+ CREATE_WRENCH_ASSET: IamApi.UserPermission[];
31
+ CREATE_EVELI_PUBLICATION: IamApi.UserPermission[];
32
+ EXPORT_EVELI_PUBLICATION: IamApi.UserPermission[];
33
+ EDIT_WRENCH_ASSET: IamApi.UserPermission[];
34
+ EDIT_STENCIL_ASSET: IamApi.UserPermission[];
35
+ DELETE_TASK: IamApi.UserPermission[];
36
+ DELETE_STENCIL_ASSET: IamApi.UserPermission[];
37
+ };
38
+ export type EveliPermissionType = keyof typeof EveliPermissionMapping;
3
39
  export declare const EveliPermissions: React.FC<{
4
40
  children: React.ReactNode;
5
- id: EveliPermissionType | undefined;
41
+ id: EveliPermissionType;
6
42
  }>;
43
+ export {};
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const EveliPermissionsNone: React.FC;
@@ -0,0 +1 @@
1
+ export { EveliPermissionsNone } from './EveliPermissionsNone';
@@ -0,0 +1,8 @@
1
+ export declare const MUI_NAME = "EveliPermissionsNone";
2
+ export interface EveliPermissionsNoneClasses {
3
+ root: string;
4
+ logoBox: string;
5
+ }
6
+ export type EveliPermissionsNoneClassKey = keyof EveliPermissionsNoneClasses;
7
+ export declare const useUtilityClasses: () => Record<"root" | "logoBox", string>;
8
+ export declare const EveliPermissionsNoneRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
package/build/index.d.ts CHANGED
@@ -24,6 +24,7 @@ export * from './eveli-proc-execution';
24
24
  export * from './eveli-tasks';
25
25
  export * from './eveli-task-composer';
26
26
  export * from './eveli-permissions';
27
+ export * from './eveli-permissions-none';
27
28
  export * from './api-task';
28
29
  export * from './api-iam';
29
30
  export * from './api-config';