vet-data-utils-ts 0.4.2 → 0.4.3

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
@@ -8,6 +8,25 @@ Current surfaces cover the canonical animal-card DID, veterinary summary
8
8
  sections, animal-only emergency data, pseudonymous DigitalTwin search input and
9
9
  veterinary assistant intents.
10
10
 
11
+ ## Active sector extension
12
+
13
+ `vet-data-utils-ts/sectors` extends the frozen CORE catalog without changing
14
+ `gdc-common-utils-ts` or GW CORE. It adds the product-neutral
15
+ `public-safety` value used by explicitly governed portal allowlists. Sector
16
+ selection classifies an organization service; it does not grant membership,
17
+ an occupation, an index role or access to any person or animal.
18
+
19
+ ```ts
20
+ import { ExtendedDataspaceSectors } from 'vet-data-utils-ts/sectors'
21
+
22
+ // The portal chooses its exact subset. Do not expose the complete catalog as
23
+ // an authorization decision or infer capabilities from this selection.
24
+ const allowedSectors = [
25
+ ExtendedDataspaceSectors.PublicSafety,
26
+ ExtendedDataspaceSectors.AnimalCare,
27
+ ] as const
28
+ ```
29
+
11
30
  `vet-data-utils-ts/organization-application` is the product-neutral application
12
31
  value used by UHC UNID, VetChain and SOSChain adapters. The host supplies the
13
32
  allowed sector list and translated labels. The value contains one official
package/dist/index.d.ts CHANGED
@@ -5,4 +5,5 @@ export * from './emergency.js';
5
5
  export * from './financial.js';
6
6
  export * from './iso-jurisdictions.js';
7
7
  export * from './organization-application.js';
8
+ export * from './sectors.js';
8
9
  export * from './veterinary-sections.js';
package/dist/index.js CHANGED
@@ -5,4 +5,5 @@ export * from './emergency.js';
5
5
  export * from './financial.js';
6
6
  export * from './iso-jurisdictions.js';
7
7
  export * from './organization-application.js';
8
+ export * from './sectors.js';
8
9
  export * from './veterinary-sections.js';
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Active product extension of the frozen CORE sector vocabulary.
3
+ *
4
+ * CORE remains unchanged. Public safety is product-neutral and may be selected
5
+ * only by a consuming portal that explicitly includes it in its own allowlist;
6
+ * the value grants no organization role, membership or data capability.
7
+ */
8
+ export declare const ExtendedDataspaceSectors: Readonly<{
9
+ readonly PublicSafety: "public-safety";
10
+ readonly HealthCare: "health-care";
11
+ readonly HealthResearch: "health-research";
12
+ readonly HealthTech: "health-tech";
13
+ readonly HealthInsurance: "health-insurance";
14
+ readonly AnimalCare: "animal-care";
15
+ readonly AnimalResearch: "animal-research";
16
+ readonly AnimalInsurance: "animal-insurance";
17
+ readonly AnimalTech: "animal-tech";
18
+ readonly OneHealthResearch: "onehealth-research";
19
+ readonly OneHealthTech: "onehealth-tech";
20
+ }>;
21
+ export type ExtendedDataspaceSector = typeof ExtendedDataspaceSectors[keyof typeof ExtendedDataspaceSectors];
@@ -0,0 +1,12 @@
1
+ import { DataspaceSectors } from 'gdc-common-utils-ts/constants/sectors';
2
+ /**
3
+ * Active product extension of the frozen CORE sector vocabulary.
4
+ *
5
+ * CORE remains unchanged. Public safety is product-neutral and may be selected
6
+ * only by a consuming portal that explicitly includes it in its own allowlist;
7
+ * the value grants no organization role, membership or data capability.
8
+ */
9
+ export const ExtendedDataspaceSectors = Object.freeze({
10
+ ...DataspaceSectors,
11
+ PublicSafety: 'public-safety',
12
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vet-data-utils-ts",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Browser-safe governed VetChain data contracts",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Connecting Solution & Applications Ltd",
@@ -36,6 +36,10 @@
36
36
  "types": "./dist/organization-application.d.ts",
37
37
  "default": "./dist/organization-application.js"
38
38
  },
39
+ "./sectors": {
40
+ "types": "./dist/sectors.d.ts",
41
+ "default": "./dist/sectors.js"
42
+ },
39
43
  "./veterinary-sections": {
40
44
  "types": "./dist/veterinary-sections.d.ts",
41
45
  "default": "./dist/veterinary-sections.js"
@@ -63,6 +67,9 @@
63
67
  "@types/node": "^22.0.0",
64
68
  "typescript": "^5.5.4"
65
69
  },
70
+ "dependencies": {
71
+ "gdc-common-utils-ts": "2.5.21"
72
+ },
66
73
  "engines": {
67
74
  "node": ">=20"
68
75
  }