@openhi/constructs 0.0.106 → 0.0.107

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.
@@ -5,7 +5,7 @@ import {
5
5
  productionCognitoProvisioner,
6
6
  runSeedDemoData,
7
7
  seedDemoGraph
8
- } from "./chunk-QMIOLLAS.mjs";
8
+ } from "./chunk-36UPY7YQ.mjs";
9
9
  import "./chunk-L6UAP4KP.mjs";
10
10
  import "./chunk-SYBADQXI.mjs";
11
11
  import "./chunk-AO3E22CS.mjs";
@@ -1525,15 +1525,15 @@ var errorMessage = (err) => {
1525
1525
  return String(err);
1526
1526
  };
1527
1527
  var idForRoleCode = (code) => {
1528
- for (const key of Object.keys(import_types3.CONTROL_PLANE_ROLE_IDS)) {
1529
- if (import_types3.CONTROL_PLANE_ROLE_CONCEPTS[key].code === code) {
1530
- return import_types3.CONTROL_PLANE_ROLE_IDS[key];
1528
+ for (const key of Object.keys(import_types3.PLATFORM_ROLE_IDS)) {
1529
+ if (import_types3.PLATFORM_ROLE_CONCEPTS[key].code === code) {
1530
+ return import_types3.PLATFORM_ROLE_IDS[key];
1531
1531
  }
1532
1532
  }
1533
1533
  throw new Error(`No id mapping for role code "${code}".`);
1534
1534
  };
1535
1535
  var seedSystemRoles = async (context) => {
1536
- for (const concept of Object.values(import_types3.CONTROL_PLANE_ROLE_CONCEPTS)) {
1536
+ for (const concept of Object.values(import_types3.PLATFORM_ROLE_CONCEPTS)) {
1537
1537
  const id = idForRoleCode(concept.code);
1538
1538
  await createRoleOperation({
1539
1539
  context,
@@ -1585,7 +1585,7 @@ var runSeedSystemData = async (event, deps) => {
1585
1585
  payload: {
1586
1586
  sourceEventId: parsed.envelope.eventId,
1587
1587
  sourceStackId: sourcePayload.stackId,
1588
- seededRecordCount: Object.keys(import_types3.CONTROL_PLANE_ROLE_IDS).length
1588
+ seededRecordCount: Object.keys(import_types3.PLATFORM_ROLE_IDS).length
1589
1589
  },
1590
1590
  envelope: {
1591
1591
  correlationId: parsed.envelope.correlationId,