gdc-sdk-front-ts 0.1.1 → 0.2.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/README.md +24 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -7,6 +7,7 @@ Key docs:
|
|
|
7
7
|
- [CHANGELOG.md](CHANGELOG.md)
|
|
8
8
|
- [SECURITY.md](SECURITY.md)
|
|
9
9
|
- [SDK_INTEGRATION_101.md](SDK_INTEGRATION_101.md)
|
|
10
|
+
- [../gdc-common-utils-ts/docs/CONSENT_ACCESS_101.md](../gdc-common-utils-ts/docs/CONSENT_ACCESS_101.md)
|
|
10
11
|
|
|
11
12
|
Current status:
|
|
12
13
|
|
|
@@ -82,6 +83,29 @@ The canonical API contract should live in JSDoc on exported code. The README is
|
|
|
82
83
|
- [`createBodyTemperatureObservation(...)`](../gdc-sdk-core-ts/src/vital-signs.ts)
|
|
83
84
|
- [`createBloodPressureObservation(...)`](../gdc-sdk-core-ts/src/vital-signs.ts)
|
|
84
85
|
|
|
86
|
+
### Consent access helpers re-exported from `gdc-sdk-core-ts`
|
|
87
|
+
|
|
88
|
+
- [`groupConsentsForControllerView(...)`](../gdc-sdk-core-ts/src/consent-access.ts)
|
|
89
|
+
- [`evaluateRequestedAccess(...)`](../gdc-sdk-core-ts/src/consent-access.ts)
|
|
90
|
+
- [`getMissingPermissions(...)`](../gdc-sdk-core-ts/src/consent-access.ts)
|
|
91
|
+
- [`buildPermissionRequestCommunication(...)`](../gdc-sdk-core-ts/src/consent-access.ts)
|
|
92
|
+
- [`buildPermissionRequestCommunicationLookupQuery(...)`](../gdc-sdk-core-ts/src/consent-access.ts)
|
|
93
|
+
|
|
94
|
+
Use these helpers when the frontend needs to:
|
|
95
|
+
|
|
96
|
+
- show the controller which active permissions exist by target
|
|
97
|
+
- detect whether a SMART request is fully covered
|
|
98
|
+
- prepare the canonical permission-request `Communication`
|
|
99
|
+
- recover that request by identifier, thread id, or linked CID
|
|
100
|
+
|
|
101
|
+
Consent precedence in the shared model is documented as:
|
|
102
|
+
|
|
103
|
+
1. explicit deny for a concrete email
|
|
104
|
+
2. explicit permit for a concrete email
|
|
105
|
+
3. organization decision
|
|
106
|
+
4. jurisdiction decision
|
|
107
|
+
5. default deny
|
|
108
|
+
|
|
85
109
|
### Runtime configuration
|
|
86
110
|
|
|
87
111
|
- [`FrontRuntimeConfig`](src/runtime-contracts.ts)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gdc-sdk-front-ts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Next-generation frontend runtime package for the GDC SDK family",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Antifraud Services Inc.",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@babel/runtime": "^7.28.4",
|
|
20
|
-
"gdc-common-utils-ts": "^1.
|
|
20
|
+
"gdc-common-utils-ts": "^1.5.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^20.14.10",
|