@contrail/flexplm 1.1.8 → 1.1.9

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,6 +5,7 @@ const type_utils_1 = require("../util/type-utils");
5
5
  const flexplm_connect_1 = require("../util/flexplm-connect");
6
6
  const map_utils_1 = require("../util/map-utils");
7
7
  const sdk_1 = require("@contrail/sdk");
8
+ const type_conversion_utils_1 = require("../util/type-conversion-utils");
8
9
  const UNSUPPORTED_TYPE = 'Unsupported eventType.';
9
10
  class IncomingEntityResponse {
10
11
  }
@@ -88,9 +89,9 @@ class BaseEntityProcessor {
88
89
  async getVibeOwningKeys(entity) {
89
90
  let vibeOwningKeys = [];
90
91
  if (this.transformMapFile) {
91
- const wholeMap = await this.mapFileUtil.getMapFile(this.transformMapFile);
92
- const objClass = this.dc.getMappingClass(entity, wholeMap);
93
- vibeOwningKeys = wholeMap?.[objClass]?.vibeOwningKeys || [];
92
+ const mapKey = await type_conversion_utils_1.TypeConversionUtils.getMapKey(this.transformMapFile, this.mapFileUtil, entity, type_conversion_utils_1.TypeConversionUtils.VIBE2FLEX_DIRECTION);
93
+ const mapSection = await map_utils_1.MapUtil.getFullMapSection(this.transformMapFile, this.mapFileUtil, mapKey);
94
+ vibeOwningKeys = mapSection?.vibeOwningKeys || [];
94
95
  }
95
96
  console.debug('vibeOwningKeys: ' + vibeOwningKeys);
96
97
  return vibeOwningKeys;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/flexplm",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "Library used for integration with flexplm.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",