@appxdigital/appx-core-cli 1.0.14 → 1.0.15

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,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@appxdigital/appx-core-cli",
4
- "version": "1.0.14",
4
+ "version": "1.0.15",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "npm:publish": "npm publish --access public",
@@ -17,7 +17,7 @@ model User {
17
17
  email String @unique
18
18
  name String?
19
19
  password String? /// @Role(none)
20
- role Role @default(GUEST)
20
+ role Role @default(USER)
21
21
  refreshTokens UserRefreshToken[]
22
22
  }
23
23
 
@@ -43,5 +43,5 @@ model UserRefreshToken {
43
43
 
44
44
  enum Role {
45
45
  ADMIN
46
- GUEST
46
+ USER
47
47
  }
@@ -1,4 +1,4 @@
1
- import {PermissionPlaceholder, PermissionsConfigType,} from '@appxdigital/appx-core';
1
+ import {PermissionPlaceholder, PermissionsConfigType} from '@appxdigital/appx-core';
2
2
 
3
3
  export const PermissionsConfig: PermissionsConfigType = {
4
4
  User: {
@@ -9,9 +9,9 @@ export const PermissionsConfig: PermissionsConfigType = {
9
9
  updateMany: 'ALL',
10
10
  deleteMany: 'ALL',
11
11
  },
12
- CLIENT: {
12
+ USER: {
13
13
  findFirst: {
14
- conditions: {id: PermissionPlaceholder.USER_ID},
14
+ conditions: {id: PermissionPlaceholder.USER_ID}, // Can only see its own user
15
15
  },
16
16
  }
17
17
  },