@contrail/flexplm 1.7.2-alpha.c5613fa → 1.7.2-alpha.f5ce754

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.
@@ -80,7 +80,15 @@ export declare abstract class BaseEntityProcessor {
80
80
  getRootTypePropertyKeys(rootType: any, propertyCriteria?: any): string[];
81
81
  handleIncomingDelete(event: any): Promise<void>;
82
82
  getTransformedData(event: any): Promise<any>;
83
- getUpdatesForEntity(entity: any, inboundData: any): Promise<object>;
83
+ /** Builds the updates that should be applied to the vibe entity based on the
84
+ * inbound data and the original event data.
85
+ *
86
+ * @param entity: the vibe entity that is being updated
87
+ * @param inboundData: the data that was transformed from the flexplm event
88
+ * @param eventData: the original event data from flexplm
89
+ * @returns: the updates that should be applied to the vibe entity
90
+ */
91
+ getUpdatesForEntity(entity: any, inboundData: any, eventData?: any): Promise<object>;
84
92
  getVibeOwningKeys(entity: any): Promise<any[]>;
85
93
  getVibeOwningKeysFromInbound(entity: any): Promise<any[]>;
86
94
  createEntity(entityName: any, changes: any): Promise<any>;
@@ -85,7 +85,7 @@ class BaseEntityProcessor {
85
85
  console.log(statusMsg);
86
86
  return createdEntity;
87
87
  }
88
- const diffs = await this.getUpdatesForEntity(entity, inboundData);
88
+ const diffs = await this.getUpdatesForEntity(entity, inboundData, event.data);
89
89
  const shouldSyncThumbnail = await type_conversion_utils_1.TypeConversionUtils.syncInboundImages(this.transformMapFile, this.mapFileUtil, event.data);
90
90
  let thumbnailEntity;
91
91
  if (shouldSyncThumbnail) {
@@ -278,7 +278,15 @@ class BaseEntityProcessor {
278
278
  console.debug('Transformed-inboundData: ' + JSON.stringify(inboundData));
279
279
  return inboundData;
280
280
  }
281
- async getUpdatesForEntity(entity, inboundData) {
281
+ /** Builds the updates that should be applied to the vibe entity based on the
282
+ * inbound data and the original event data.
283
+ *
284
+ * @param entity: the vibe entity that is being updated
285
+ * @param inboundData: the data that was transformed from the flexplm event
286
+ * @param eventData: the original event data from flexplm
287
+ * @returns: the updates that should be applied to the vibe entity
288
+ */
289
+ async getUpdatesForEntity(entity, inboundData, eventData = null) {
282
290
  const vibeOwningKeys = await this.getVibeOwningKeys(entity);
283
291
  let updates = {
284
292
  typeId: entity.typeId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/flexplm",
3
- "version": "1.7.2-alpha.c5613fa",
3
+ "version": "1.7.2-alpha.f5ce754",
4
4
  "description": "Library used for integration with flexplm.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",