verteilen-core 1.3.5 → 1.3.6

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.
@@ -72,5 +72,6 @@ export interface UserProfileClient {
72
72
  export interface ServerSetting {
73
73
  open_guest: boolean;
74
74
  }
75
+ export declare const CreateRootLocalPermission: () => LocalPermission;
75
76
  export declare const CreateRootPermission: () => GlobalPermission;
76
77
  export declare const CreateRootUser: () => UserProfile;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateRootUser = exports.CreateRootPermission = exports.PermissionType = exports.UserType = exports.ACLType = void 0;
3
+ exports.CreateRootUser = exports.CreateRootPermission = exports.CreateRootLocalPermission = exports.PermissionType = exports.UserType = exports.ACLType = void 0;
4
4
  const uuid_1 = require("uuid");
5
5
  var ACLType;
6
6
  (function (ACLType) {
@@ -27,6 +27,15 @@ var PermissionType;
27
27
  PermissionType[PermissionType["LIB"] = 7] = "LIB";
28
28
  PermissionType[PermissionType["LOG"] = 8] = "LOG";
29
29
  })(PermissionType || (exports.PermissionType = PermissionType = {}));
30
+ const CreateRootLocalPermission = () => {
31
+ return {
32
+ view: true,
33
+ create: true,
34
+ edit: true,
35
+ delete: true,
36
+ };
37
+ };
38
+ exports.CreateRootLocalPermission = CreateRootLocalPermission;
30
39
  const CreateRootPermission = () => {
31
40
  const perl = {
32
41
  view: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verteilen-core",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "license": "MIT",
5
5
  "homepage": "https://verteilen.github.io/wiki/",
6
6
  "author": "Elly",
@@ -111,6 +111,15 @@ export interface ServerSetting {
111
111
  open_guest: boolean
112
112
  }
113
113
 
114
+ export const CreateRootLocalPermission = ():LocalPermission => {
115
+ return {
116
+ view: true,
117
+ create: true,
118
+ edit: true,
119
+ delete: true,
120
+ }
121
+ }
122
+
114
123
  export const CreateRootPermission = ():GlobalPermission => {
115
124
  const perl:LocalPermission = {
116
125
  view: true,