@molochko-dev/data 1.4.15 → 1.4.17

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/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as dataEnums from "./enums";
2
2
  import * as typeDefinitions from "./types";
3
+ import * as _rolePermissions from './role-permissions';
3
4
  export declare const enums: {
4
5
  BREED: typeDefinitions.EnumItem[];
5
6
  BREED_AS_OBJECT: typeDefinitions.EnumArrayAsObject;
@@ -65,4 +66,5 @@ export declare const enums: {
65
66
  [key: string]: string;
66
67
  };
67
68
  };
69
+ export declare const rolePermissions: typeof _rolePermissions;
68
70
  export declare const types: typeof typeDefinitions;
package/dist/index.js CHANGED
@@ -23,9 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.types = exports.enums = void 0;
26
+ exports.types = exports.rolePermissions = exports.enums = void 0;
27
27
  const dataEnums = __importStar(require("./enums"));
28
28
  const breed_1 = require("./breed");
29
29
  const typeDefinitions = __importStar(require("./types"));
30
+ const _rolePermissions = __importStar(require("./role-permissions"));
30
31
  exports.enums = Object.assign(Object.assign({}, dataEnums), { BREED: breed_1.BREED, BREED_AS_OBJECT: breed_1.BREED_AS_OBJECT });
32
+ exports.rolePermissions = _rolePermissions;
31
33
  exports.types = typeDefinitions;
@@ -1,2 +1,3 @@
1
1
  import { IRolePermissionItem } from './types';
2
+ export declare const ROOT_PERMISSIONS: IRolePermissionItem[];
2
3
  export declare const USER_PERMISSIONS: IRolePermissionItem[];
@@ -1,7 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.USER_PERMISSIONS = void 0;
3
+ exports.USER_PERMISSIONS = exports.ROOT_PERMISSIONS = void 0;
4
4
  const enums_1 = require("./enums");
5
+ exports.ROOT_PERMISSIONS = [
6
+ {
7
+ name: "*",
8
+ },
9
+ ];
5
10
  exports.USER_PERMISSIONS = [
6
11
  {
7
12
  name: "org",
package/dist/types.d.ts CHANGED
@@ -15,8 +15,8 @@ export interface IBackendRolePermissionItem {
15
15
  }
16
16
  export interface IRolePermissionItem {
17
17
  name: string;
18
- frontend: {
18
+ frontend?: {
19
19
  path: string;
20
20
  };
21
- backend: IBackendRolePermissionItem[];
21
+ backend?: IBackendRolePermissionItem[];
22
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molochko-dev/data",
3
- "version": "1.4.15",
3
+ "version": "1.4.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "typings/index.d.ts",
package/src/index.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import * as dataEnums from "./enums";
2
2
  import { BREED, BREED_AS_OBJECT } from "./breed";
3
3
  import * as typeDefinitions from "./types";
4
+ import * as _rolePermissions from './role-permissions'
4
5
 
5
6
  export const enums = { ...dataEnums, BREED, BREED_AS_OBJECT };
7
+ export const rolePermissions = _rolePermissions
6
8
  export const types = typeDefinitions;
@@ -1,6 +1,11 @@
1
1
  import { SYSTEM_USER_ROLES_ENUM, USER_PERMISSION_ENUM, USER_PERMISSION_METHOD_ENUM } from './enums'
2
2
  import { IRolePermissionItem } from './types'
3
3
 
4
+ export const ROOT_PERMISSIONS: IRolePermissionItem[] = [
5
+ {
6
+ name: "*",
7
+ },
8
+ ]
4
9
  export const USER_PERMISSIONS: IRolePermissionItem[] = [
5
10
  {
6
11
  name: "org",
package/src/types.ts CHANGED
@@ -17,9 +17,9 @@ export interface IBackendRolePermissionItem {
17
17
 
18
18
  export interface IRolePermissionItem {
19
19
  name: string,
20
- frontend: {
20
+ frontend?: {
21
21
  path: string
22
22
  }
23
- backend: IBackendRolePermissionItem[]
23
+ backend?: IBackendRolePermissionItem[]
24
24
  }
25
25