@cravery/types 0.0.8 → 0.0.9
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/users/role.d.ts +2 -0
- package/dist/users/role.d.ts.map +1 -1
- package/dist/users/role.js +7 -1
- package/dist/users/role.js.map +1 -1
- package/package.json +1 -1
- package/src/users/role.ts +8 -0
package/dist/users/role.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export declare const USER_ROLE_VALUES: readonly ["admin", "developer", "moderator", "translator", "user", "guest"];
|
|
2
2
|
export type UserRole = (typeof USER_ROLE_VALUES)[number];
|
|
3
|
+
export declare const PRIVILEGED_ROLE_VALUES: readonly ["admin", "developer", "moderator", "translator"];
|
|
4
|
+
export type PrivilegedRole = (typeof PRIVILEGED_ROLE_VALUES)[number];
|
|
3
5
|
//# sourceMappingURL=role.d.ts.map
|
package/dist/users/role.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../../src/users/role.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,6EAOnB,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../../src/users/role.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,6EAOnB,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,eAAO,MAAM,sBAAsB,4DAKzB,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/users/role.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.USER_ROLE_VALUES = void 0;
|
|
3
|
+
exports.PRIVILEGED_ROLE_VALUES = exports.USER_ROLE_VALUES = void 0;
|
|
4
4
|
exports.USER_ROLE_VALUES = [
|
|
5
5
|
"admin",
|
|
6
6
|
"developer",
|
|
@@ -9,4 +9,10 @@ exports.USER_ROLE_VALUES = [
|
|
|
9
9
|
"user",
|
|
10
10
|
"guest",
|
|
11
11
|
];
|
|
12
|
+
exports.PRIVILEGED_ROLE_VALUES = [
|
|
13
|
+
"admin",
|
|
14
|
+
"developer",
|
|
15
|
+
"moderator",
|
|
16
|
+
"translator",
|
|
17
|
+
];
|
|
12
18
|
//# sourceMappingURL=role.js.map
|
package/dist/users/role.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.js","sourceRoot":"","sources":["../../src/users/role.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,OAAO;IACP,WAAW;IACX,WAAW;IACX,YAAY;IACZ,MAAM;IACN,OAAO;CACC,CAAC"}
|
|
1
|
+
{"version":3,"file":"role.js","sourceRoot":"","sources":["../../src/users/role.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,OAAO;IACP,WAAW;IACX,WAAW;IACX,YAAY;IACZ,MAAM;IACN,OAAO;CACC,CAAC;AAGE,QAAA,sBAAsB,GAAG;IACpC,OAAO;IACP,WAAW;IACX,WAAW;IACX,YAAY;CACJ,CAAC"}
|
package/package.json
CHANGED
package/src/users/role.ts
CHANGED
|
@@ -7,3 +7,11 @@ export const USER_ROLE_VALUES = [
|
|
|
7
7
|
"guest",
|
|
8
8
|
] as const;
|
|
9
9
|
export type UserRole = (typeof USER_ROLE_VALUES)[number];
|
|
10
|
+
|
|
11
|
+
export const PRIVILEGED_ROLE_VALUES = [
|
|
12
|
+
"admin",
|
|
13
|
+
"developer",
|
|
14
|
+
"moderator",
|
|
15
|
+
"translator",
|
|
16
|
+
] as const;
|
|
17
|
+
export type PrivilegedRole = (typeof PRIVILEGED_ROLE_VALUES)[number];
|