@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.
- package/lib/{chunk-QMIOLLAS.mjs → chunk-36UPY7YQ.mjs} +12 -14
- package/lib/chunk-36UPY7YQ.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 +4 -6
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +5 -7
- package/lib/index.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 +6 -6
- package/lib/seed-demo-data.handler.js.map +1 -1
- package/lib/seed-demo-data.handler.mjs +1 -1
- package/lib/seed-system-data.handler.js +5 -5
- package/lib/seed-system-data.handler.js.map +1 -1
- package/lib/seed-system-data.handler.mjs +7 -7
- package/lib/seed-system-data.handler.mjs.map +1 -1
- package/package.json +2 -2
- package/lib/chunk-QMIOLLAS.mjs.map +0 -1
|
@@ -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.
|
|
1529
|
-
if (import_types3.
|
|
1530
|
-
return import_types3.
|
|
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.
|
|
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.
|
|
1588
|
+
seededRecordCount: Object.keys(import_types3.PLATFORM_ROLE_IDS).length
|
|
1589
1589
|
},
|
|
1590
1590
|
envelope: {
|
|
1591
1591
|
correlationId: parsed.envelope.correlationId,
|