@tridion-sites/models 1.1.1 → 1.2.1
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/CHANGELOG.md +6 -0
- package/dist/index.js +7 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -748,7 +748,7 @@ Object.defineProperty(EclUri, "_eclUriRegExp", {
|
|
|
748
748
|
enumerable: true,
|
|
749
749
|
configurable: true,
|
|
750
750
|
writable: true,
|
|
751
|
-
value: new RegExp(/^ecl:(\d+)-([
|
|
751
|
+
value: new RegExp(/^ecl:(\d+)-([^-]+)-([^-]+)-([^-]+)-(\w+)(-v(\d+))?$/)
|
|
752
752
|
});
|
|
753
753
|
Object.defineProperty(EclUri, "create", {
|
|
754
754
|
enumerable: true,
|
|
@@ -14074,12 +14074,17 @@ const processInstanceMapping = {
|
|
|
14074
14074
|
};
|
|
14075
14075
|
|
|
14076
14076
|
const mapTridionActivityDefinitionConstructorArgs = (mappingRegistry, backendModel) => {
|
|
14077
|
+
var _a, _b, _c;
|
|
14077
14078
|
const activityDefinition = mapActivityDefinitionConstructorArgs(mappingRegistry, backendModel);
|
|
14078
14079
|
const activityType = backendModel.ActivityType ? mapActivityType(backendModel.ActivityType) : undefined;
|
|
14079
14080
|
const finishApprovalStatus = backendModel.FinishApprovalStatus
|
|
14080
14081
|
? mappingRegistry.map(backendModel.FinishApprovalStatus)
|
|
14081
14082
|
: undefined;
|
|
14082
|
-
const
|
|
14083
|
+
const activityDefinitionsToHide = new Set(((_b = (_a = backendModel.ExtensionProperties) === null || _a === void 0 ? void 0 : _a['tm_ActivityTransitionsToHide']) === null || _b === void 0 ? void 0 : _b.split(',')) || []);
|
|
14084
|
+
const filteredActivityDefinitions = (_c = backendModel.NextActivityDefinitions) === null || _c === void 0 ? void 0 : _c.filter(activityDefinition => {
|
|
14085
|
+
return !activityDefinitionsToHide.has(activityDefinition.IdRef);
|
|
14086
|
+
});
|
|
14087
|
+
const nextActivityDefinitions = mapLinks(mappingRegistry, filteredActivityDefinitions);
|
|
14083
14088
|
return Object.assign(Object.assign({}, activityDefinition), { activityType,
|
|
14084
14089
|
finishApprovalStatus,
|
|
14085
14090
|
nextActivityDefinitions });
|