@extrahorizon/exh-cli 1.8.0-dev-64-478dd73 → 1.8.0-dev-66-414b9a4

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 CHANGED
@@ -1,6 +1,7 @@
1
1
  # Extra Horizon CLI changelog
2
2
 
3
3
  ### v1.8.0
4
+ * Schemas: Updated the available access mode options to match data service 1.4.0 changes
4
5
  * `exh data schemas sync` now also strips the description fields for conditions and actions in the creation transition
5
6
  * Added priority to the transition task action in the schema validator
6
7
  * Improved typing for the afterActions in the schema validator
@@ -6,34 +6,78 @@
6
6
  "name": { "type": "string" },
7
7
  "description": { "type": "string" },
8
8
  "createMode": {
9
- "type": "string",
10
- "enum": [
11
- "default",
12
- "permissionRequired"
9
+ "oneOf": [
10
+ {
11
+ "$ref": "#/definitions/PermissionRequiredAccessMode"
12
+ },
13
+ {
14
+ "$ref": "#/definitions/AllUsersAccessMode"
15
+ },
16
+ {
17
+ "const": "default",
18
+ "description": "Deprecated! Use \"allUsers\" instead."
19
+ }
13
20
  ]
14
21
  },
15
22
  "deleteMode": {
16
- "type": "string",
17
- "enum": [
18
- "permissionRequired",
19
- "linkedUsersOnly"
23
+ "oneOf": [
24
+ {
25
+ "$ref": "#/definitions/PermissionRequiredAccessMode"
26
+ },
27
+ {
28
+ "$ref": "#/definitions/RelationalAccessModes"
29
+ },
30
+ {
31
+ "const": "linkedUsersOnly",
32
+ "description": "Deprecated! Use [\"linkedUsers\",\"linkedGroupStaff\"] instead."
33
+ }
20
34
  ]
21
35
  },
22
36
  "readMode": {
23
- "type": "string",
24
- "enum": [
25
- "default",
26
- "allUsers",
27
- "enlistedInLinkedGroups"
37
+ "oneOf": [
38
+ {
39
+ "$ref": "#/definitions/PermissionRequiredAccessMode"
40
+ },
41
+ {
42
+ "$ref": "#/definitions/AllUsersAccessMode"
43
+ },
44
+ {
45
+ "$ref": "#/definitions/RelationalAccessModes"
46
+ },
47
+ {
48
+ "const": "default",
49
+ "description": "Deprecated! Use [\"linkedUsers\",\"linkedGroupStaff\"] instead."
50
+ },
51
+ {
52
+ "const": "enlistedInLinkedGroups",
53
+ "description": "Deprecated! Use [\"linkedGroupPatients\",\"linkedGroupStaff\"] instead."
54
+ }
28
55
  ]
29
56
  },
30
57
  "updateMode": {
31
- "type": "string",
32
- "enum": [
33
- "default",
34
- "creatorOnly",
35
- "disabled",
36
- "linkedGroupsStaffOnly"
58
+ "oneOf": [
59
+ {
60
+ "$ref": "#/definitions/PermissionRequiredAccessMode"
61
+ },
62
+ {
63
+ "$ref": "#/definitions/RelationalAccessModes"
64
+ },
65
+ {
66
+ "const": "default",
67
+ "description": "Deprecated! Use [\"linkedUsers\",\"linkedGroupStaff\"] instead."
68
+ },
69
+ {
70
+ "const": "creatorOnly",
71
+ "description": "Deprecated! Use [\"creator\"] instead."
72
+ },
73
+ {
74
+ "const": "disabled",
75
+ "description": "Deprecated! Use \"permissionRequired\" instead."
76
+ },
77
+ {
78
+ "const": "linkedGroupsStaffOnly",
79
+ "description": "Deprecated! Use [\"linkedGroupStaff\"] instead."
80
+ }
37
81
  ]
38
82
  },
39
83
  "groupSyncMode": {
@@ -646,6 +690,37 @@
646
690
  "fields"
647
691
  ]
648
692
  },
693
+ "PermissionRequiredAccessMode": {
694
+ "const": "permissionRequired",
695
+ "description": "Only users with the correct permission have the ability to perform the action."
696
+ },
697
+ "AllUsersAccessMode": {
698
+ "const": "allUsers",
699
+ "description": "All users will have the permission to perform the action on the documents in the schema collection. Regardless of their role or their permissions."
700
+ },
701
+ "RelationalAccessModes": {
702
+ "type": "array",
703
+ "items": {
704
+ "oneOf": [
705
+ {
706
+ "const": "creator",
707
+ "description": "The user that created the document can perform the action."
708
+ },
709
+ {
710
+ "const": "linkedUsers",
711
+ "description": "All users where their user id is in the list of `userIds` of the document can perform the action."
712
+ },
713
+ {
714
+ "const": "linkedGroupStaff",
715
+ "description": "All users that have a staff enlistment in a group that is in the list of `groupIds` of the document can perform the action."
716
+ },
717
+ {
718
+ "const": "linkedGroupPatients",
719
+ "description": "All users that have a patient enlistment in a group that is in the list of `groupIds` of the document can perform the action."
720
+ }
721
+ ]
722
+ }
723
+ },
649
724
  "Any": {
650
725
  "anyOf": [
651
726
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extrahorizon/exh-cli",
3
- "version": "1.8.0-dev-64-478dd73",
3
+ "version": "1.8.0-dev-66-414b9a4",
4
4
  "main": "build/index.js",
5
5
  "exports": "./build/index.js",
6
6
  "license": "MIT",