@kumori/aurora-backend-handler 1.0.53 → 1.0.54
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/helpers/revision-helper.ts +4 -26
- package/package.json +1 -1
|
@@ -110,7 +110,7 @@ const processRolesAndInstances = (
|
|
|
110
110
|
|
|
111
111
|
const instance: Instance = {
|
|
112
112
|
id: instanceId,
|
|
113
|
-
name: `${
|
|
113
|
+
name: `${instanceId}`,
|
|
114
114
|
status: instanceData.status.status,
|
|
115
115
|
usage: {
|
|
116
116
|
current: {
|
|
@@ -520,31 +520,9 @@ export const extractStructuredSchema = (
|
|
|
520
520
|
| {} => {
|
|
521
521
|
const configSchema = revisionData?.configSchema;
|
|
522
522
|
if (!configSchema) return {};
|
|
523
|
-
|
|
524
|
-
const
|
|
525
|
-
const
|
|
526
|
-
? revisionData?.solution?.deployments?.[deploymentName]
|
|
527
|
-
: Object.values(revisionData?.solution?.deployments ?? {})[0];
|
|
528
|
-
const rolesDefinition: Record<string, any> =
|
|
529
|
-
(deployment as any)?.artifact?.description?.role ?? {};
|
|
530
|
-
|
|
531
|
-
const mergedParameterValues: Record<string, any> = {};
|
|
532
|
-
const mergedResourceValues: Record<string, any> = {};
|
|
533
|
-
|
|
534
|
-
Object.values(rolesDefinition).forEach((roleData: any) => {
|
|
535
|
-
const roleConfig = roleData?.artifact?.description?.config ?? {};
|
|
536
|
-
Object.assign(mergedParameterValues, roleConfig.parameter ?? {});
|
|
537
|
-
Object.assign(mergedResourceValues, roleConfig.resource ?? {});
|
|
538
|
-
});
|
|
539
|
-
const topLevelConfig = (deployment as any)?.config ?? {};
|
|
540
|
-
const parameterValues: Record<string, any> = {
|
|
541
|
-
...topLevelConfig.parameter ?? {},
|
|
542
|
-
...mergedParameterValues,
|
|
543
|
-
};
|
|
544
|
-
const configResourceValues: Record<string, any> = {
|
|
545
|
-
...topLevelConfig.resource ?? {},
|
|
546
|
-
...mergedResourceValues,
|
|
547
|
-
};
|
|
523
|
+
const deployedConfig = revisionData?.config?.config ?? {};
|
|
524
|
+
const parameterValues: Record<string, any> = deployedConfig.parameter ?? {};
|
|
525
|
+
const configResourceValues: Record<string, any> = deployedConfig.resource ?? {};
|
|
548
526
|
|
|
549
527
|
const requiredParams: string[] =
|
|
550
528
|
configSchema?.properties?.config?.required ?? [];
|