vet-data-utils-ts 0.5.36 → 0.5.37
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
CHANGED
|
@@ -299,7 +299,8 @@ value used by UHC UNID, VetChain and SOSChain adapters. The host supplies the
|
|
|
299
299
|
allowed sector list and translated labels. The value contains one official
|
|
300
300
|
identifier (`TAX`, `EIN` or `BN`), ISO country, optional matching ISO
|
|
301
301
|
subdivision, optional official licence, legal representative, technical
|
|
302
|
-
controller and
|
|
302
|
+
controller and independent index, personal-backup and Digital Twin
|
|
303
|
+
participation roles. It rejects a second
|
|
303
304
|
`taxId` and every PIN field: profile protection happens immediately after
|
|
304
305
|
login, before any application screen.
|
|
305
306
|
|
|
@@ -7,6 +7,7 @@ export declare const OrganizationParticipationRoles: Readonly<{
|
|
|
7
7
|
readonly IndividualIndexServiceProvider: "individual-index-service-provider";
|
|
8
8
|
readonly IndividualIndexDataProvider: "individual-index-data-provider";
|
|
9
9
|
readonly IndividualIndexDataConsumer: "individual-index-data-consumer";
|
|
10
|
+
readonly IndividualPersonalBackupServiceProvider: "individual-personal-backup-service-provider";
|
|
10
11
|
readonly DigitalTwinIndexServiceProvider: "digital-twin-index-service-provider";
|
|
11
12
|
readonly DigitalTwinDataProvider: "digital-twin-data-provider";
|
|
12
13
|
readonly DigitalTwinDataConsumer: "digital-twin-data-consumer";
|
|
@@ -35,7 +36,7 @@ export type ReusableOrganizationApplication = Readonly<{
|
|
|
35
36
|
participationRoles: readonly OrganizationParticipationRole[];
|
|
36
37
|
}>;
|
|
37
38
|
/**
|
|
38
|
-
* Converts the
|
|
39
|
+
* Converts the explicit application roles into the shared canonical capability
|
|
39
40
|
* claim. Business roles remain distinct in the application and credential;
|
|
40
41
|
* this projection only grants their corresponding provider or reader runtime
|
|
41
42
|
* operations and removes duplicates.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isIso3166CountryCode, isIso3166SubdivisionForCountry } from './iso-jurisdictions.js';
|
|
2
2
|
import { serializeServiceCapabilityTokens, ServiceCapability, } from 'gdc-common-utils-ts/constants/service-capabilities';
|
|
3
|
+
import { ContinuityServiceCapability } from 'sos-data-utils-ts/continuity-service-capabilities';
|
|
3
4
|
export const OrganizationOfficialIdTypes = Object.freeze({
|
|
4
5
|
Tax: 'TAX',
|
|
5
6
|
EmployerIdentificationNumber: 'EIN',
|
|
@@ -9,6 +10,7 @@ export const OrganizationParticipationRoles = Object.freeze({
|
|
|
9
10
|
IndividualIndexServiceProvider: 'individual-index-service-provider',
|
|
10
11
|
IndividualIndexDataProvider: 'individual-index-data-provider',
|
|
11
12
|
IndividualIndexDataConsumer: 'individual-index-data-consumer',
|
|
13
|
+
IndividualPersonalBackupServiceProvider: 'individual-personal-backup-service-provider',
|
|
12
14
|
DigitalTwinIndexServiceProvider: 'digital-twin-index-service-provider',
|
|
13
15
|
DigitalTwinDataProvider: 'digital-twin-data-provider',
|
|
14
16
|
DigitalTwinDataConsumer: 'digital-twin-data-consumer',
|
|
@@ -16,7 +18,7 @@ export const OrganizationParticipationRoles = Object.freeze({
|
|
|
16
18
|
const officialIdTypes = new Set(Object.values(OrganizationOfficialIdTypes));
|
|
17
19
|
const participationRoles = new Set(Object.values(OrganizationParticipationRoles));
|
|
18
20
|
/**
|
|
19
|
-
* Converts the
|
|
21
|
+
* Converts the explicit application roles into the shared canonical capability
|
|
20
22
|
* claim. Business roles remain distinct in the application and credential;
|
|
21
23
|
* this projection only grants their corresponding provider or reader runtime
|
|
22
24
|
* operations and removes duplicates.
|
|
@@ -29,6 +31,8 @@ export function organizationServiceTypeForParticipationRoles(roles) {
|
|
|
29
31
|
return ServiceCapability.IndexProvider;
|
|
30
32
|
case OrganizationParticipationRoles.IndividualIndexDataConsumer:
|
|
31
33
|
return ServiceCapability.IndexReader;
|
|
34
|
+
case OrganizationParticipationRoles.IndividualPersonalBackupServiceProvider:
|
|
35
|
+
return ContinuityServiceCapability.DocumentBackupProvider;
|
|
32
36
|
case OrganizationParticipationRoles.DigitalTwinIndexServiceProvider:
|
|
33
37
|
case OrganizationParticipationRoles.DigitalTwinDataProvider:
|
|
34
38
|
return ServiceCapability.DigitalTwinProvider;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vet-data-utils-ts",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.37",
|
|
4
4
|
"description": "Browser-safe governed VetChain data contracts",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Connecting Solution & Applications Ltd",
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
"fhir-data-utils-ts": "0.2.4",
|
|
161
161
|
"gdc-common-utils-ts": "2.9.12",
|
|
162
162
|
"pako": "^2.2.0",
|
|
163
|
-
"sos-data-utils-ts": "0.3.
|
|
163
|
+
"sos-data-utils-ts": "0.3.7"
|
|
164
164
|
},
|
|
165
165
|
"engines": {
|
|
166
166
|
"node": ">=20"
|