@extrahorizon/javascript-sdk 8.5.0-dev-71-b217382 → 8.5.0-dev-72-f6603f3

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
@@ -22,6 +22,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
22
22
  - RQL `contains` and `excludes` now have their different variations better separated in the type definitions
23
23
  - `exh.data.documents.unlinkUsers` and `unlinkGroups` now also accept an array of user or group ids directly rather than nested in a request body object
24
24
  - Thanks to `tran-simon` for the pointing out the initially incorrect `unlinkUsers` type definition!
25
+ - Data service schemas `createMode`, `readMode`, `updateMode` and `deleteMode` accepted values updated
26
+ - Matching the access mode changes in Data Service 1.4.0
27
+ - `readMode`, `updateMode` and `deleteMode` now also accept an array of relational modes
25
28
 
26
29
  ### Deprecated
27
30
  - `exh.data.documents.unlinkUsers` usage with an object is deprecated in favor of an array of ids directly or `unlinkAllUsers` for unlinking all users
@@ -5375,7 +5375,7 @@ const logsService = (httpWithAuth) => {
5375
5375
  };
5376
5376
  };
5377
5377
 
5378
- const version = '8.5.0-dev-71-b217382';
5378
+ const version = '8.5.0-dev-72-f6603f3';
5379
5379
 
5380
5380
  /**
5381
5381
  * Create ExtraHorizon client.
package/build/index.mjs CHANGED
@@ -5345,7 +5345,7 @@ const logsService = (httpWithAuth) => {
5345
5345
  };
5346
5346
  };
5347
5347
 
5348
- const version = '8.5.0-dev-71-b217382';
5348
+ const version = '8.5.0-dev-72-f6603f3';
5349
5349
 
5350
5350
  /**
5351
5351
  * Create ExtraHorizon client.
@@ -35,22 +35,39 @@ export declare type JSONSchemaBoolean = {
35
35
  enum: boolean[];
36
36
  const: boolean;
37
37
  };
38
+ export declare type RelationalAccessMode = 'creator' | 'linkedUsers' | 'linkedGroupStaff' | 'linkedGroupPatients';
38
39
  /**
39
40
  * Specifies the conditions to be met in order to be able to create a document for a schema
40
41
  */
41
- export declare type CreateMode = 'default' | 'permissionRequired';
42
+ export declare type CreateMode = 'permissionRequired' | 'allUsers'
43
+ /** @deprecated use 'allUsers' instead */
44
+ | 'default';
42
45
  /**
43
46
  * Specifies the conditions to be met in order to be able to view a document for a schema
44
47
  */
45
- export declare type ReadMode = 'allUsers' | 'default' | 'enlistedInLinkedGroups';
48
+ export declare type ReadMode = 'permissionRequired' | 'allUsers' | Array<RelationalAccessMode>
49
+ /** @deprecated use ['linkedUsers', 'linkedGroupStaff'] instead */
50
+ | 'default'
51
+ /** @deprecated use ['linkedGroupPatients', 'linkedGroupStaff'] instead */
52
+ | 'enlistedInLinkedGroups';
46
53
  /**
47
54
  * Specifies the conditions to be met in order to be able to update a document for a schema
48
55
  */
49
- export declare type UpdateMode = 'default' | 'creatorOnly' | 'disabled' | 'linkedGroupsStaffOnly';
56
+ export declare type UpdateMode = 'permissionRequired' | Array<RelationalAccessMode>
57
+ /** @deprecated use ['linkedUsers', 'linkedGroupStaff'] instead */
58
+ | 'default'
59
+ /** @deprecated use ['creator'] instead */
60
+ | 'creatorOnly'
61
+ /** @deprecated use 'permissionRequired' instead */
62
+ | 'disabled'
63
+ /** @deprecated use ['linkedGroupStaff'] instead */
64
+ | 'linkedGroupsStaffOnly';
50
65
  /**
51
66
  * Specifies the conditions to be met in order to be able to delete a document for a schema
52
67
  */
53
- export declare type DeleteMode = 'permissionRequired' | 'linkedUsersOnly';
68
+ export declare type DeleteMode = 'permissionRequired' | Array<RelationalAccessMode>
69
+ /** @deprecated use ['linkedUsers','linkedGroupStaff'] instead */
70
+ | 'linkedUsersOnly';
54
71
  export declare type GroupSyncMode = 'disabled' | 'creatorPatientEnlistments' | 'linkedUsersPatientEnlistments';
55
72
  interface BaseConfiguration {
56
73
  queryable?: boolean;
@@ -1 +1 @@
1
- export declare const version = "8.5.0-dev-71-b217382";
1
+ export declare const version = "8.5.0-dev-72-f6603f3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extrahorizon/javascript-sdk",
3
- "version": "8.5.0-dev-71-b217382",
3
+ "version": "8.5.0-dev-72-f6603f3",
4
4
  "description": "This package serves as a JavaScript wrapper around all Extra Horizon cloud services.",
5
5
  "main": "build/index.cjs.js",
6
6
  "types": "build/types/index.d.ts",