@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.
- package/.github/pull_request_template.md +1 -1
- package/lib/entity-processor/base-entity-processor.js +1 -1
- package/lib/publish/base-process-publish-assortment.js +12 -9
- package/lib/publish/base-process-publish-assortment.spec.js +20 -6
- package/lib/util/type-utils.js +4 -3
- package/package.json +1 -1
- package/src/entity-processor/base-entity-processor.ts +1 -1
- package/src/publish/base-process-publish-assortment.spec.ts +22 -6
- package/src/publish/base-process-publish-assortment.ts +1095 -1090
- package/src/util/type-utils.ts +6 -4
package/src/util/type-utils.ts
CHANGED
|
@@ -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
|
-
/**
|
|
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('
|
|
117
|
-
|
|
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()) {
|