@openhi/constructs 0.0.106 → 0.0.108
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/lib/{chunk-CHPEQRXU.mjs → chunk-6J7NQ6A4.mjs} +2 -2
- package/lib/{chunk-YU2HRNUP.mjs → chunk-AJ3G3THO.mjs} +2 -2
- package/lib/{chunk-L6UAP4KP.mjs → chunk-EST32BJ2.mjs} +3 -3
- package/lib/chunk-GT7SFZLP.mjs +126 -0
- package/lib/chunk-GT7SFZLP.mjs.map +1 -0
- package/lib/{chunk-QMIOLLAS.mjs → chunk-L3QHWDHB.mjs} +16 -18
- package/lib/chunk-L3QHWDHB.mjs.map +1 -0
- package/lib/chunk-LKG3I536.mjs +1383 -0
- package/lib/chunk-LKG3I536.mjs.map +1 -0
- package/lib/{chunk-VYDIGFIX.mjs → chunk-QR5JVSCF.mjs} +11 -1
- package/lib/chunk-QR5JVSCF.mjs.map +1 -0
- package/lib/{chunk-AO3E22CS.mjs → chunk-WWGJZNXJ.mjs} +74 -4
- package/lib/chunk-WWGJZNXJ.mjs.map +1 -0
- package/lib/chunk-ZGOHB4RA.mjs +96 -0
- package/lib/chunk-ZGOHB4RA.mjs.map +1 -0
- package/lib/{events-DGep6C7w.d.mts → events-DPodvl07.d.mts} +3 -3
- package/lib/{events-DGep6C7w.d.ts → events-DPodvl07.d.ts} +3 -3
- package/lib/index.d.mts +2 -2
- package/lib/index.d.ts +4 -4
- package/lib/index.js +1045 -9
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +9 -11
- package/lib/index.mjs.map +1 -1
- package/lib/pre-token-generation.handler.js +1356 -10
- package/lib/pre-token-generation.handler.js.map +1 -1
- package/lib/pre-token-generation.handler.mjs +103 -5
- package/lib/pre-token-generation.handler.mjs.map +1 -1
- package/lib/provision-default-workspace.handler.js +1172 -1
- package/lib/provision-default-workspace.handler.js.map +1 -1
- package/lib/provision-default-workspace.handler.mjs +5 -5
- package/lib/rest-api-lambda.handler.js +2769 -2434
- package/lib/rest-api-lambda.handler.js.map +1 -1
- package/lib/rest-api-lambda.handler.mjs +630 -1464
- package/lib/rest-api-lambda.handler.mjs.map +1 -1
- package/lib/seed-demo-data.handler.d.mts +2 -2
- package/lib/seed-demo-data.handler.d.ts +2 -2
- package/lib/seed-demo-data.handler.js +1174 -10
- package/lib/seed-demo-data.handler.js.map +1 -1
- package/lib/seed-demo-data.handler.mjs +5 -5
- package/lib/seed-system-data.handler.js +15 -5
- package/lib/seed-system-data.handler.js.map +1 -1
- package/lib/seed-system-data.handler.mjs +9 -9
- package/lib/seed-system-data.handler.mjs.map +1 -1
- package/package.json +1 -1
- package/lib/chunk-AO3E22CS.mjs.map +0 -1
- package/lib/chunk-JUNL76HF.mjs +0 -428
- package/lib/chunk-JUNL76HF.mjs.map +0 -1
- package/lib/chunk-QMIOLLAS.mjs.map +0 -1
- package/lib/chunk-VYDIGFIX.mjs.map +0 -1
- package/lib/chunk-YZZDUJHI.mjs +0 -37
- package/lib/chunk-YZZDUJHI.mjs.map +0 -1
- /package/lib/{chunk-CHPEQRXU.mjs.map → chunk-6J7NQ6A4.mjs.map} +0 -0
- /package/lib/{chunk-YU2HRNUP.mjs.map → chunk-AJ3G3THO.mjs.map} +0 -0
- /package/lib/{chunk-L6UAP4KP.mjs.map → chunk-EST32BJ2.mjs.map} +0 -0
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
productionCognitoProvisioner,
|
|
6
6
|
runSeedDemoData,
|
|
7
7
|
seedDemoGraph
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-L3QHWDHB.mjs";
|
|
9
|
+
import "./chunk-EST32BJ2.mjs";
|
|
10
10
|
import "./chunk-SYBADQXI.mjs";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-WWGJZNXJ.mjs";
|
|
12
|
+
import "./chunk-LKG3I536.mjs";
|
|
13
|
+
import "./chunk-QR5JVSCF.mjs";
|
|
14
14
|
import "./chunk-LZOMFHX3.mjs";
|
|
15
15
|
export {
|
|
16
16
|
SEED_DEMO_DATA_USER_POOL_ID_ENV_VAR,
|
|
@@ -901,6 +901,16 @@ var MembershipEntity = new import_electrodb2.Entity({
|
|
|
901
901
|
msgId: {
|
|
902
902
|
type: "string",
|
|
903
903
|
required: false
|
|
904
|
+
},
|
|
905
|
+
/**
|
|
906
|
+
* Denormalized `linked-data-identity` Reference (e.g. `Practitioner/abc`).
|
|
907
|
+
* Populated from the FHIR extension on the Membership resource at write
|
|
908
|
+
* time so future GSIs can index data-plane identity lookups without
|
|
909
|
+
* deserializing the full resource JSON. See ADR 2026-03-13-02 §6.
|
|
910
|
+
*/
|
|
911
|
+
linkedDataIdentityRef: {
|
|
912
|
+
type: "string",
|
|
913
|
+
required: false
|
|
904
914
|
}
|
|
905
915
|
},
|
|
906
916
|
indexes: {
|
|
@@ -1525,15 +1535,15 @@ var errorMessage = (err) => {
|
|
|
1525
1535
|
return String(err);
|
|
1526
1536
|
};
|
|
1527
1537
|
var idForRoleCode = (code) => {
|
|
1528
|
-
for (const key of Object.keys(import_types3.
|
|
1529
|
-
if (import_types3.
|
|
1530
|
-
return import_types3.
|
|
1538
|
+
for (const key of Object.keys(import_types3.PLATFORM_ROLE_IDS)) {
|
|
1539
|
+
if (import_types3.PLATFORM_ROLE_CONCEPTS[key].code === code) {
|
|
1540
|
+
return import_types3.PLATFORM_ROLE_IDS[key];
|
|
1531
1541
|
}
|
|
1532
1542
|
}
|
|
1533
1543
|
throw new Error(`No id mapping for role code "${code}".`);
|
|
1534
1544
|
};
|
|
1535
1545
|
var seedSystemRoles = async (context) => {
|
|
1536
|
-
for (const concept of Object.values(import_types3.
|
|
1546
|
+
for (const concept of Object.values(import_types3.PLATFORM_ROLE_CONCEPTS)) {
|
|
1537
1547
|
const id = idForRoleCode(concept.code);
|
|
1538
1548
|
await createRoleOperation({
|
|
1539
1549
|
context,
|
|
@@ -1585,7 +1595,7 @@ var runSeedSystemData = async (event, deps) => {
|
|
|
1585
1595
|
payload: {
|
|
1586
1596
|
sourceEventId: parsed.envelope.eventId,
|
|
1587
1597
|
sourceStackId: sourcePayload.stackId,
|
|
1588
|
-
seededRecordCount: Object.keys(import_types3.
|
|
1598
|
+
seededRecordCount: Object.keys(import_types3.PLATFORM_ROLE_IDS).length
|
|
1589
1599
|
},
|
|
1590
1600
|
envelope: {
|
|
1591
1601
|
correlationId: parsed.envelope.correlationId,
|