@gooddata/sdk-code-convertors 11.62.0-alpha.1 → 11.62.0-alpha.3

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.
@@ -338,6 +338,7 @@ export function convertBucketToTitle(entities, query, field, location) {
338
338
  }
339
339
  function findObjectProps(entities, item) {
340
340
  const items = resolveEntitiesLdmObjects(entities);
341
+ // Widened: yaml `metric/` refs arrive typed "measure", which the AFM identifier type does not list.
341
342
  switch (item.identifier.type) {
342
343
  case "attribute": {
343
344
  const found = items.attributes.find((attribute) => attribute.attribute.id === item.identifier.id);
@@ -360,8 +361,15 @@ function findObjectProps(entities, item) {
360
361
  title: title ?? firstLetterUpperCase(convertIdToTitle(item.identifier.id).toLowerCase()),
361
362
  };
362
363
  }
363
- case "label":
364
+ case "measure":
364
365
  case "metric": {
366
+ const found = items.metrics.find((metric) => metric.measure.id === item.identifier.id);
367
+ return {
368
+ title: found?.measure.title ??
369
+ firstLetterUpperCase(convertIdToTitle(item.identifier.id).toLowerCase()),
370
+ };
371
+ }
372
+ case "label": {
365
373
  const found = items.labels.find((label) => label.id === item.identifier.id);
366
374
  return {
367
375
  title: found?.title ?? firstLetterUpperCase(convertIdToTitle(item.identifier.id).toLowerCase()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-code-convertors",
3
- "version": "11.62.0-alpha.1",
3
+ "version": "11.62.0-alpha.3",
4
4
  "description": "GoodData AAC declarative converters",
5
5
  "license": "MIT",
6
6
  "author": "GoodData",
@@ -26,9 +26,9 @@
26
26
  "dependencies": {
27
27
  "uuid": "11.1.1",
28
28
  "yaml": "2.8.3",
29
- "@gooddata/api-client-tiger": "11.62.0-alpha.1",
30
- "@gooddata/sdk-code-schemas": "11.62.0-alpha.1",
31
- "@gooddata/sdk-model": "11.62.0-alpha.1"
29
+ "@gooddata/api-client-tiger": "11.62.0-alpha.3",
30
+ "@gooddata/sdk-code-schemas": "11.62.0-alpha.3",
31
+ "@gooddata/sdk-model": "11.62.0-alpha.3"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@microsoft/api-extractor": "7.59.2",
@@ -47,9 +47,9 @@
47
47
  "oxlint-plugin-eslint": "1.82.0",
48
48
  "oxlint-tsgolint": "7.0.2001",
49
49
  "typescript": "7.0.2",
50
- "vitest": "4.1.11",
51
- "@gooddata/oxlint-config": "11.62.0-alpha.1",
52
- "@gooddata/eslint-config": "11.62.0-alpha.1"
50
+ "vitest": "5.0.4",
51
+ "@gooddata/eslint-config": "11.62.0-alpha.3",
52
+ "@gooddata/oxlint-config": "11.62.0-alpha.3"
53
53
  },
54
54
  "scripts": {
55
55
  "_phase:build": "npm run build",