@contrail/flexplm 1.1.45 → 1.1.47

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.
@@ -23,11 +23,12 @@ export class TypeUtils {
23
23
  return type;
24
24
  }
25
25
 
26
+ /** Deprecated: use TypeConversionUtils.getObjectTypePath() */
26
27
  static getFlexPLMTypePath(entity) {
27
28
  return entity['flexPLMTypePath'] || entity['flexTypePath'] || '';
28
29
  }
29
30
 
30
- /** Gets the FlexPLM class for the entity data
31
+ /** Deprecated: use TypeConversionUtils.getObjectClass()
31
32
  *
32
33
  * @param entityType
33
34
  * @param newData
@@ -111,12 +112,13 @@ export class TypeUtils {
111
112
  filterTypeProperties(type, newData): TypeProperty[] {
112
113
  let filteredProps: TypeProperty[] = type['typeProperties'];
113
114
  const typePath = type['typePath'];
115
+ const roles = newData['roles'];
114
116
  if (typePath && (typePath.startsWith('item') || typePath.startsWith('project-item'))) {
115
117
  if (Logger.isDebugOn()) {
116
- console.debug('typePath: ' + typePath);
117
- console.debug('newData: ' + JSON.stringify(newData));
118
+ console.debug('filterTypeProperties():id: ' +newData?.id
119
+ + ', typePath: ' + typePath
120
+ + ', newData.roles: ' + newData?.roles);
118
121
  }
119
- const roles = newData['roles'];
120
122
  if (roles) {
121
123
  const isFamily = roles.includes('family');
122
124
  if (Logger.isDebugOn()) {