@steedos-labs/content-compliance 0.7.16 → 0.7.18

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.
@@ -2,7 +2,7 @@ name: internal_collaborator
2
2
  amis:
3
3
  id: 'u:d6eca338bc40'
4
4
  visibleOn: >-
5
- (!global.user.email || !global.user.email.endsWith("@pepsico.com")) &&
5
+ global.user.is_collaborator === true &&
6
6
  global.mode ==="read"
7
7
  onEvent:
8
8
  change:
@@ -16,9 +16,9 @@ amis:
16
16
  description: ''
17
17
  enable_thousands: true
18
18
  filters:
19
- - - email
20
- - endswith
21
- - '@pepsico.com'
19
+ - - is_collaborator
20
+ - '!='
21
+ - true
22
22
  group: 审核人员
23
23
  hidden: false
24
24
  index: true
@@ -2,7 +2,7 @@ name: internal_collaborator_edit
2
2
  amis:
3
3
  id: 'u:d6eca338bc40'
4
4
  visibleOn: >-
5
- (!global.user.email || !global.user.email.endsWith("@pepsico.com")) &&
5
+ global.user.is_collaborator === true &&
6
6
  global.mode !=="read"
7
7
  onEvent:
8
8
  change:
@@ -28,7 +28,7 @@ amis:
28
28
  method: get
29
29
  url: >-
30
30
  /api/v1/space_users?top=5&filters=[["email", "startswith",
31
- "$term"],["email", "endswith", "@pepsico.com"],["user_accepted", "=",
31
+ "$term"],["is_collaborator", "!=", true],["user_accepted", "=",
32
32
  true]]&fields=["email","user","organization"]
33
33
  requestAdaptor: ''
34
34
  adaptor: ' return {data: lodash.uniqBy(lodash.concat(payload.data.items || [], window._last_internal_collaborator_items || []), "user")}'
@@ -8,7 +8,7 @@ amis:
8
8
  method: get
9
9
  url: >-
10
10
  /api/v1/space_users?top=5&filters=[["email", "startswith",
11
- "$term"],["email", "endswith", "@pepsico.com"],["user_accepted", "=",
11
+ "$term"],["is_collaborator", "!=", true],["user_accepted", "=",
12
12
  true]]&fields=["email","user"]
13
13
  requestAdaptor: ''
14
14
  adaptor: 'return {data: payload.data.items || []}'
@@ -2,7 +2,7 @@ name: owner
2
2
  amis:
3
3
  id: 'u:453eb165cefa'
4
4
  className:
5
- hidden: '${!ENDSWITH(global.user.email, "@pepsico.com")}'
5
+ hidden: '${global.user.is_collaborator === true}'
6
6
  description: ''
7
7
  enable_thousands: true
8
8
  group: 审核人员
@@ -2,7 +2,7 @@ name: owner_department
2
2
  amis:
3
3
  id: 'u:fde38a2cf700'
4
4
  className:
5
- hidden: '${!ENDSWITH(global.user.email, "@pepsico.com")}'
5
+ hidden: '${global.user.is_collaborator === true}'
6
6
  defaultValue: '${global[''user''][''organization''][''_id'']}'
7
7
  description: ''
8
8
  enable_thousands: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos-labs/content-compliance",
3
- "version": "0.7.16",
3
+ "version": "0.7.18",
4
4
  "description": "内容审核系统",
5
5
  "main": "package.service.js",
6
6
  "scripts": {