@openhi/constructs 0.0.150 → 0.0.152

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 (39) hide show
  1. package/lib/{chunk-AWYZJFPL.mjs → chunk-CFJDATDK.mjs} +8 -1
  2. package/lib/chunk-CFJDATDK.mjs.map +1 -0
  3. package/lib/{chunk-I7IIPV5X.mjs → chunk-KR2Y2CVQ.mjs} +10 -4
  4. package/lib/chunk-KR2Y2CVQ.mjs.map +1 -0
  5. package/lib/{chunk-WGA43MMY.mjs → chunk-SXYY5WHG.mjs} +194 -71
  6. package/lib/chunk-SXYY5WHG.mjs.map +1 -0
  7. package/lib/{chunk-CEOAGPYY.mjs → chunk-ZXPA6W3G.mjs} +1 -3
  8. package/lib/chunk-ZXPA6W3G.mjs.map +1 -0
  9. package/lib/data-store-postgres-replication.handler.js +687 -0
  10. package/lib/data-store-postgres-replication.handler.js.map +1 -1
  11. package/lib/data-store-postgres-replication.handler.mjs +3 -2
  12. package/lib/data-store-postgres-replication.handler.mjs.map +1 -1
  13. package/lib/{events-CMG8xanm.d.ts → events-DTgo2dcW.d.mts} +2 -14
  14. package/lib/{events-CMG8xanm.d.mts → events-DTgo2dcW.d.ts} +2 -14
  15. package/lib/firehose-archive-transform.handler.js +688 -2
  16. package/lib/firehose-archive-transform.handler.js.map +1 -1
  17. package/lib/firehose-archive-transform.handler.mjs +3 -2
  18. package/lib/index.d.mts +62 -8
  19. package/lib/index.d.ts +62 -20
  20. package/lib/index.js +53 -22
  21. package/lib/index.js.map +1 -1
  22. package/lib/index.mjs +36 -7
  23. package/lib/index.mjs.map +1 -1
  24. package/lib/provision-default-workspace.handler.js +6 -0
  25. package/lib/provision-default-workspace.handler.js.map +1 -1
  26. package/lib/provision-default-workspace.handler.mjs +1 -1
  27. package/lib/rest-api-lambda.handler.js +6 -0
  28. package/lib/rest-api-lambda.handler.js.map +1 -1
  29. package/lib/rest-api-lambda.handler.mjs +1 -1
  30. package/lib/seed-demo-data.handler.d.mts +14 -1
  31. package/lib/seed-demo-data.handler.d.ts +14 -1
  32. package/lib/seed-demo-data.handler.js +199 -68
  33. package/lib/seed-demo-data.handler.js.map +1 -1
  34. package/lib/seed-demo-data.handler.mjs +2 -2
  35. package/package.json +5 -5
  36. package/lib/chunk-AWYZJFPL.mjs.map +0 -1
  37. package/lib/chunk-CEOAGPYY.mjs.map +0 -1
  38. package/lib/chunk-I7IIPV5X.mjs.map +0 -1
  39. package/lib/chunk-WGA43MMY.mjs.map +0 -1
@@ -3,7 +3,7 @@ import {
3
3
  createRoleAssignmentOperation,
4
4
  createTenantOperation,
5
5
  createWorkspaceOperation
6
- } from "./chunk-AWYZJFPL.mjs";
6
+ } from "./chunk-CFJDATDK.mjs";
7
7
  import "./chunk-HQ67J7BP.mjs";
8
8
  import "./chunk-QJDHVMKT.mjs";
9
9
  import {
@@ -5782,10 +5782,16 @@ function buildRoleAssignmentWorkspaceProjectionItem(input) {
5782
5782
  };
5783
5783
  }
5784
5784
 
5785
+ // src/data/operations/control/membership-constraints/platform-scope-tenant-id.ts
5786
+ var PLATFORM_SCOPE_TENANT_ID = "platform";
5787
+
5785
5788
  // src/data/operations/control/membership-constraints/assert-user-has-tenant-membership-operation.ts
5786
5789
  var TENANT_LANE_SK_PREFIX = "MEMBERSHIP#TENANT#";
5787
5790
  async function assertUserHasTenantMembershipOperation(params) {
5788
5791
  const { userId, tenantId, tableName } = params;
5792
+ if (tenantId === PLATFORM_SCOPE_TENANT_ID) {
5793
+ return;
5794
+ }
5789
5795
  const service = getDynamoControlService(tableName);
5790
5796
  const result = await service.entities.membershipUserProjection.query.record({ userId }).begins({ sk: TENANT_LANE_SK_PREFIX }).go();
5791
5797
  const matched = (result.data ?? []).some((row) => row.tenantId === tenantId);