identity-admin-ui 1.8.11 → 1.8.13

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,5 +1,5 @@
1
1
  import { IShowField } from '../IShowField';
2
2
  export interface IEnumField extends IShowField {
3
- enumvalues?: any[];
3
+ enumvalues?: any[] | any;
4
4
  }
5
5
  export declare function EnumField(props: IEnumField): import("react/jsx-runtime").JSX.Element;
@@ -9,6 +9,9 @@ export default interface IResource {
9
9
  listProperties: IProperty[];
10
10
  showProperties: IProperty[];
11
11
  properties: IMainProperty;
12
+ permissions?: {
13
+ [permissionKey: string]: boolean;
14
+ };
12
15
  }
13
16
  export interface IOptionalResource {
14
17
  filterProperties?: string[];
@@ -0,0 +1,3 @@
1
+ import IResource from '../../context/Resource';
2
+ import { PermissionDefaultKeys } from './keys';
3
+ export declare function checkPermission(resource: IResource, permissionPrefixKey: PermissionDefaultKeys): boolean;
@@ -0,0 +1,6 @@
1
+ export declare enum PermissionDefaultKeys {
2
+ VIEW = "view",
3
+ CREATE = "create",
4
+ EDIT = "edit",
5
+ DELETE = "delete"
6
+ }
package/lib/index.d.ts CHANGED
@@ -126,6 +126,9 @@ interface IResource {
126
126
  listProperties: IProperty[];
127
127
  showProperties: IProperty[];
128
128
  properties: IMainProperty;
129
+ permissions?: {
130
+ [permissionKey: string]: boolean;
131
+ };
129
132
  }
130
133
  interface IOptionalResource {
131
134
  filterProperties?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin-ui",
3
- "version": "1.8.11",
3
+ "version": "1.8.13",
4
4
  "description": "Identity solutions UI package using for identity-admin dashboard",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/esm/index.js",