@openhi/constructs 0.0.114 → 0.0.115

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.
Files changed (33) hide show
  1. package/lib/chunk-AHYQFT4N.mjs +212 -0
  2. package/lib/chunk-AHYQFT4N.mjs.map +1 -0
  3. package/lib/{chunk-CUUKXDB2.mjs → chunk-AJQUWHFK.mjs} +460 -54
  4. package/lib/chunk-AJQUWHFK.mjs.map +1 -0
  5. package/lib/{chunk-GBDIGTNV.mjs → chunk-QWWLM452.mjs} +2 -2
  6. package/lib/{chunk-QMBJ4VHC.mjs → chunk-U7L7T4XU.mjs} +25 -25
  7. package/lib/{chunk-QMBJ4VHC.mjs.map → chunk-U7L7T4XU.mjs.map} +1 -1
  8. package/lib/{chunk-NZRW7ROK.mjs → chunk-YYRWDEG4.mjs} +2 -2
  9. package/lib/{chunk-KSFC72TT.mjs → chunk-ZHMHLK3S.mjs} +2 -2
  10. package/lib/{events-DPodvl07.d.mts → events-CMG8xanm.d.mts} +7 -53
  11. package/lib/{events-DPodvl07.d.ts → events-CMG8xanm.d.ts} +7 -53
  12. package/lib/index.d.mts +64 -77
  13. package/lib/index.d.ts +70 -129
  14. package/lib/index.js +499 -241
  15. package/lib/index.js.map +1 -1
  16. package/lib/index.mjs +58 -184
  17. package/lib/index.mjs.map +1 -1
  18. package/lib/pre-token-generation.handler.mjs +3 -3
  19. package/lib/provision-default-workspace.handler.mjs +3 -3
  20. package/lib/rest-api-lambda.handler.mjs +282 -452
  21. package/lib/rest-api-lambda.handler.mjs.map +1 -1
  22. package/lib/seed-demo-data.handler.d.mts +6 -3
  23. package/lib/seed-demo-data.handler.d.ts +6 -3
  24. package/lib/seed-demo-data.handler.js +656 -0
  25. package/lib/seed-demo-data.handler.js.map +1 -1
  26. package/lib/seed-demo-data.handler.mjs +4 -4
  27. package/package.json +1 -1
  28. package/lib/chunk-53OHXLIL.mjs +0 -27
  29. package/lib/chunk-53OHXLIL.mjs.map +0 -1
  30. package/lib/chunk-CUUKXDB2.mjs.map +0 -1
  31. /package/lib/{chunk-GBDIGTNV.mjs.map → chunk-QWWLM452.mjs.map} +0 -0
  32. /package/lib/{chunk-NZRW7ROK.mjs.map → chunk-YYRWDEG4.mjs.map} +0 -0
  33. /package/lib/{chunk-KSFC72TT.mjs.map → chunk-ZHMHLK3S.mjs.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { WorkflowDedupClient } from '@openhi/workflows';
2
2
  import { EventBridgeEvent } from 'aws-lambda';
3
- import { d as DemoDevUser } from './events-DPodvl07.mjs';
3
+ import { d as DemoDevUser } from './events-CMG8xanm.mjs';
4
4
  import { O as OpenHiContext } from './openhi-context-CaBH8SFo.mjs';
5
5
  import '@openhi/types';
6
6
 
@@ -62,8 +62,11 @@ interface SeedDemoDataDependencies {
62
62
  * {@link DEMO_TENANT_SPECS}: Tenant → Workspaces. Then per dev user:
63
63
  * Cognito user → DynamoDB User → per-tenant Membership +
64
64
  * `tenant-admin` RoleAssignment → platform-scoped `system-admin`
65
- * RoleAssignment. Every put is keyed by a deterministic stable id so
66
- * re-runs after dedup-TTL expiry upsert the same records.
65
+ * RoleAssignment. Finally walks {@link DEMO_DATA_PLANE_FIXTURES} and
66
+ * upserts the OPS-009 v1 FHIR resource set (Patient, Practitioner,
67
+ * Observation, Encounter, Account) into each demo workspace. Every
68
+ * put is keyed by a deterministic stable id so re-runs after
69
+ * dedup-TTL expiry upsert the same records.
67
70
  *
68
71
  * Exported so the seeder test file can exercise it directly against
69
72
  * a mocked DynamoControlService; the production handler reaches it
@@ -1,6 +1,6 @@
1
1
  import { WorkflowDedupClient } from '@openhi/workflows';
2
2
  import { EventBridgeEvent } from 'aws-lambda';
3
- import { d as DemoDevUser } from './events-DPodvl07.js';
3
+ import { d as DemoDevUser } from './events-CMG8xanm.js';
4
4
  import { O as OpenHiContext } from './openhi-context-CaBH8SFo.js';
5
5
  import '@openhi/types';
6
6
 
@@ -62,8 +62,11 @@ interface SeedDemoDataDependencies {
62
62
  * {@link DEMO_TENANT_SPECS}: Tenant → Workspaces. Then per dev user:
63
63
  * Cognito user → DynamoDB User → per-tenant Membership +
64
64
  * `tenant-admin` RoleAssignment → platform-scoped `system-admin`
65
- * RoleAssignment. Every put is keyed by a deterministic stable id so
66
- * re-runs after dedup-TTL expiry upsert the same records.
65
+ * RoleAssignment. Finally walks {@link DEMO_DATA_PLANE_FIXTURES} and
66
+ * upserts the OPS-009 v1 FHIR resource set (Patient, Practitioner,
67
+ * Observation, Encounter, Account) into each demo workspace. Every
68
+ * put is keyed by a deterministic stable id so re-runs after
69
+ * dedup-TTL expiry upsert the same records.
67
70
  *
68
71
  * Exported so the seeder test file can exercise it directly against
69
72
  * a mocked DynamoControlService; the production handler reaches it