@dereekb/model 7.5.0 → 7.8.0
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/CHANGELOG.md +17 -0
- package/package.json +2 -2
- package/src/lib/service/permission/role.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
# [7.8.0](https://github.com/dereekb/dbx-components/compare/v7.7.0-dev...v7.8.0) (2022-06-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# [7.7.0](https://github.com/dereekb/dbx-components/compare/v7.6.0-dev...v7.7.0) (2022-06-09)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# [7.6.0](https://github.com/dereekb/dbx-components/compare/v7.5.0-dev...v7.6.0) (2022-06-09)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* added grantFullAccessIfAuthUserRelated() ([be05e09](https://github.com/dereekb/dbx-components/commit/be05e0939939e9e0d1c8d1d8afbcab1fb15e060b))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
5
22
|
# [7.5.0](https://github.com/dereekb/dbx-components/compare/v7.4.0-dev...v7.5.0) (2022-06-08)
|
|
6
23
|
|
|
7
24
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/model",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.8.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@dereekb/util": "7.
|
|
9
|
+
"@dereekb/util": "7.8.0",
|
|
10
10
|
"make-error": "^1.3.0",
|
|
11
11
|
"ts-essentials": "^9.1.2",
|
|
12
12
|
"extra-set": "^2.2.11",
|
|
@@ -29,12 +29,12 @@ export declare type NoAccessGrantedRole = typeof NO_ACCESS_ROLE_KEY;
|
|
|
29
29
|
export declare type NoAccessRoleMap = {
|
|
30
30
|
[NO_ACCESS_ROLE_KEY]: true;
|
|
31
31
|
};
|
|
32
|
-
export declare function noAccessRoleMap():
|
|
32
|
+
export declare function noAccessRoleMap<R extends string = string>(): GrantedRoleMap<R>;
|
|
33
33
|
export declare function isNoAccessRoleMap<R extends string = string>(input: GrantedRoleMap<R> | NoAccessRoleMap): input is NoAccessRoleMap;
|
|
34
34
|
export declare type FullAccessRoleMap = {
|
|
35
35
|
[FULL_ACCESS_ROLE_KEY]: true;
|
|
36
36
|
};
|
|
37
|
-
export declare function fullAccessRoleMap():
|
|
37
|
+
export declare function fullAccessRoleMap<R extends string = string>(): GrantedRoleMap<R>;
|
|
38
38
|
export declare function isFullAccessRoleMap<R extends string = string>(input: GrantedRoleMap<R> | FullAccessRoleMap): input is FullAccessRoleMap;
|
|
39
39
|
export declare type GrantedRoleMap<R extends GrantedRole = string> = NoAccessRoleMap | FullAccessRoleMap | GrantedRoleKeysMap<R>;
|
|
40
40
|
export declare type GrantedRoleKeysMap<R extends GrantedRole = string> = {
|