@dereekb/util 8.12.5 → 8.12.8
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 +12 -0
- package/package.json +1 -1
- package/src/lib/auth/auth.role.d.ts +8 -0
- package/src/lib/auth/auth.role.js +9 -1
- package/src/lib/auth/auth.role.js.map +1 -1
- package/src/lib/type.d.ts +4 -0
- package/test/CHANGELOG.md +12 -0
- package/test/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [8.12.8](https://github.com/dereekb/dbx-components/compare/v8.12.7-dev...v8.12.8) (2022-07-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [8.12.7](https://github.com/dereekb/dbx-components/compare/v8.12.6-dev...v8.12.7) (2022-07-11)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [8.12.6](https://github.com/dereekb/dbx-components/compare/v8.12.5-dev...v8.12.6) (2022-07-11)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
5
17
|
## [8.12.5](https://github.com/dereekb/dbx-components/compare/v8.12.4-dev...v8.12.5) (2022-07-10)
|
|
6
18
|
|
|
7
19
|
|
package/package.json
CHANGED
|
@@ -11,6 +11,14 @@ export declare type AuthRole = string;
|
|
|
11
11
|
* A set of auth roles for a user.
|
|
12
12
|
*/
|
|
13
13
|
export declare type AuthRoleSet = Set<AuthRole>;
|
|
14
|
+
/**
|
|
15
|
+
* Auth role for an account that has signed the terms of service.
|
|
16
|
+
*/
|
|
17
|
+
export declare const AUTH_TOS_SIGNED_ROLE = "tos";
|
|
18
|
+
/**
|
|
19
|
+
* Auth role for an account that has been onboarded.
|
|
20
|
+
*/
|
|
21
|
+
export declare const AUTH_ONBOARDED_ROLE = "onboarded";
|
|
14
22
|
/**
|
|
15
23
|
* Auth role for a full admin. Is allowed into all sections of the app.
|
|
16
24
|
*/
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.authRolesSetHasRoles = exports.AUTH_USER_ROLE = exports.AUTH_ADMIN_ROLE = void 0;
|
|
3
|
+
exports.authRolesSetHasRoles = exports.AUTH_USER_ROLE = exports.AUTH_ADMIN_ROLE = exports.AUTH_ONBOARDED_ROLE = exports.AUTH_TOS_SIGNED_ROLE = void 0;
|
|
4
4
|
const set_1 = require("../set/set");
|
|
5
|
+
/**
|
|
6
|
+
* Auth role for an account that has signed the terms of service.
|
|
7
|
+
*/
|
|
8
|
+
exports.AUTH_TOS_SIGNED_ROLE = 'tos';
|
|
9
|
+
/**
|
|
10
|
+
* Auth role for an account that has been onboarded.
|
|
11
|
+
*/
|
|
12
|
+
exports.AUTH_ONBOARDED_ROLE = 'onboarded';
|
|
5
13
|
/**
|
|
6
14
|
* Auth role for a full admin. Is allowed into all sections of the app.
|
|
7
15
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.role.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/auth/auth.role.ts"],"names":[],"mappings":";;;AAAA,oCAAkD;AAiBlD;;GAEG;AACU,QAAA,eAAe,GAAG,OAAO,CAAC;AAEvC;;GAEG;AACU,QAAA,cAAc,GAAG,MAAM,CAAC;AAErC,SAAgB,oBAAoB,CAAC,YAAyB,EAAE,KAAgC;IAC9F,OAAO,IAAA,0BAAoB,EAAC,YAAY,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC,CAAC;AACzD,CAAC;AAFD,oDAEC"}
|
|
1
|
+
{"version":3,"file":"auth.role.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/auth/auth.role.ts"],"names":[],"mappings":";;;AAAA,oCAAkD;AAiBlD;;GAEG;AACU,QAAA,oBAAoB,GAAG,KAAK,CAAC;AAE1C;;GAEG;AACU,QAAA,mBAAmB,GAAG,WAAW,CAAC;AAE/C;;GAEG;AACU,QAAA,eAAe,GAAG,OAAO,CAAC;AAEvC;;GAEG;AACU,QAAA,cAAc,GAAG,MAAM,CAAC;AAErC,SAAgB,oBAAoB,CAAC,YAAyB,EAAE,KAAgC;IAC9F,OAAO,IAAA,0BAAoB,EAAC,YAAY,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC,CAAC;AACzD,CAAC;AAFD,oDAEC"}
|
package/src/lib/type.d.ts
CHANGED
|
@@ -55,6 +55,10 @@ export declare type RemoveIndex<T> = {
|
|
|
55
55
|
* https://stackoverflow.com/questions/51954558/how-can-i-remove-a-wider-type-from-a-union-type-without-removing-its-subtypes-in/51955852#51955852
|
|
56
56
|
*/
|
|
57
57
|
export declare type KnownKeys<T> = keyof RemoveIndex<T>;
|
|
58
|
+
/**
|
|
59
|
+
* Makes the input key(s) partially required.
|
|
60
|
+
*/
|
|
61
|
+
export declare type PartialOnKeys<T, K> = K extends keyof T ? Omit<T, K> & Partial<Pick<T, K>> : T;
|
|
58
62
|
/**
|
|
59
63
|
* Returns only properties that have string keys.
|
|
60
64
|
*/
|
package/test/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [8.12.8](https://github.com/dereekb/dbx-components/compare/v8.12.7-dev...v8.12.8) (2022-07-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [8.12.7](https://github.com/dereekb/dbx-components/compare/v8.12.6-dev...v8.12.7) (2022-07-11)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [8.12.6](https://github.com/dereekb/dbx-components/compare/v8.12.5-dev...v8.12.6) (2022-07-11)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
5
17
|
## [8.12.5](https://github.com/dereekb/dbx-components/compare/v8.12.4-dev...v8.12.5) (2022-07-10)
|
|
6
18
|
|
|
7
19
|
|
package/test/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/util/test",
|
|
3
|
-
"version": "8.12.
|
|
3
|
+
"version": "8.12.8",
|
|
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": "8.12.
|
|
9
|
+
"@dereekb/util": "8.12.8",
|
|
10
10
|
"make-error": "^1.3.0",
|
|
11
11
|
"ts-essentials": "^9.1.2",
|
|
12
12
|
"extra-set": "^2.2.11",
|