@lenne.tech/nest-server 8.3.0 → 8.3.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lenne.tech/nest-server",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.1",
|
|
4
4
|
"description": "Modern, fast, powerful Node.js web framework in TypeScript based on Nest with a GraphQL API and a connection to MongoDB (or other databases).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"@nestjs/mongoose": "9.0.3",
|
|
62
62
|
"@nestjs/passport": "8.2.1",
|
|
63
63
|
"@nestjs/platform-express": "8.4.4",
|
|
64
|
-
"apollo-server-core": "3.
|
|
65
|
-
"apollo-server-express": "3.
|
|
64
|
+
"apollo-server-core": "3.7.0",
|
|
65
|
+
"apollo-server-express": "3.7.0",
|
|
66
66
|
"bcrypt": "5.0.1",
|
|
67
67
|
"class-transformer": "0.5.1",
|
|
68
68
|
"class-validator": "0.13.2",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Enums for
|
|
2
|
+
* Enums for Resolver @Role and Model @Restricted decorator and for roles property in ServiceOptions
|
|
3
3
|
*/
|
|
4
4
|
export enum RoleEnum {
|
|
5
5
|
// ===================================================================================================================
|
|
6
|
-
// Real roles (integrated into user.roles), which can be used via @
|
|
7
|
-
//
|
|
6
|
+
// Real roles (integrated into user.roles), which can be used via @Restricted for Models (properties),
|
|
7
|
+
// via @Roles for Resolvers (methods) and via ServiceOptions for Resolver methods.
|
|
8
8
|
// ===================================================================================================================
|
|
9
9
|
|
|
10
10
|
// User must be an administrator (see roles of user)
|
|
11
11
|
ADMIN = 'admin',
|
|
12
12
|
|
|
13
13
|
// ===================================================================================================================
|
|
14
|
-
// Special system roles, which can be used via @
|
|
14
|
+
// Special system roles, which can be used via @Restricted for Models (properties), via @Roles for Resolvers (methods)
|
|
15
15
|
// and via ServiceOptions for Resolver methods. This roles should not be integrated into user.roles!
|
|
16
16
|
// ===================================================================================================================
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ export enum RoleEnum {
|
|
|
19
19
|
S_USER = 's_user',
|
|
20
20
|
|
|
21
21
|
// ===================================================================================================================
|
|
22
|
-
// Special system roles that check rights for DB objects and can be used via @
|
|
22
|
+
// Special system roles that check rights for DB objects and can be used via @Restricted for Models (properties)
|
|
23
23
|
// and via ServiceOptions for Resolver methods. These roles should not be integrated in user.roles!
|
|
24
24
|
// ===================================================================================================================
|
|
25
25
|
|