@tridion-sites/models 1.2.0 → 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 +1 -1
- package/dist/index.d.ts +22 -448
- package/dist/index.js +244 -1401
- package/package.json +1 -1
- package/dist/dts/index.d.ts +0 -14
- package/dist/dts/locale.d.ts +0 -6
- package/dist/dts/mappings/access/accessControlEntryMapping.d.ts +0 -4
- package/dist/dts/mappings/access/accessControlListMapping.d.ts +0 -4
- package/dist/dts/mappings/access/index.d.ts +0 -4
- package/dist/dts/mappings/access/permissionMapping.d.ts +0 -3
- package/dist/dts/mappings/access/rightMapping.d.ts +0 -3
- package/dist/dts/mappings/access/securityDescriptorMapping.d.ts +0 -4
- package/dist/dts/mappings/access/stringSearchModeMapping.d.ts +0 -4
- package/dist/dts/mappings/baseType/contentMapping.d.ts +0 -2
- package/dist/dts/mappings/baseType/dateMapping.d.ts +0 -1
- package/dist/dts/mappings/baseType/index.d.ts +0 -2
- package/dist/dts/mappings/batch/batchMapping.d.ts +0 -7
- package/dist/dts/mappings/batch/batchOperationMapping.d.ts +0 -4
- package/dist/dts/mappings/batch/batchTypeMapping.d.ts +0 -2
- package/dist/dts/mappings/batch/index.d.ts +0 -3
- package/dist/dts/mappings/binaryContentMapping.d.ts +0 -7
- package/dist/dts/mappings/claimMappingMapping.d.ts +0 -5
- package/dist/dts/mappings/classificationDetailMapping.d.ts +0 -7
- package/dist/dts/mappings/classificationInfoMapping.d.ts +0 -7
- package/dist/dts/mappings/component/componentBaseMapping.d.ts +0 -5
- package/dist/dts/mappings/component/componentMapping.d.ts +0 -5
- package/dist/dts/mappings/component/componentTypeMapping.d.ts +0 -3
- package/dist/dts/mappings/component/externalMultimediaComponentMapping.d.ts +0 -7
- package/dist/dts/mappings/component/externalVersionInfoMapping.d.ts +0 -5
- package/dist/dts/mappings/component/index.d.ts +0 -5
- package/dist/dts/mappings/component/multimediaComponentMapping.d.ts +0 -7
- package/dist/dts/mappings/component/registerComponentMappings.d.ts +0 -2
- package/dist/dts/mappings/createRegistry.d.ts +0 -2
- package/dist/dts/mappings/dependencyDirectionMapping.d.ts +0 -4
- package/dist/dts/mappings/dependencyGraphNodeMapping.d.ts +0 -7
- package/dist/dts/mappings/externalKeywordMapping.d.ts +0 -7
- package/dist/dts/mappings/identifiableObject/basicVersionInfoMapping.d.ts +0 -7
- package/dist/dts/mappings/identifiableObject/errorTypeMapping.d.ts +0 -4
- package/dist/dts/mappings/identifiableObject/identifiableObjectMapping.d.ts +0 -5
- package/dist/dts/mappings/identifiableObject/index.d.ts +0 -7
- package/dist/dts/mappings/identifiableObject/loadInfoMapping.d.ts +0 -7
- package/dist/dts/mappings/identifiableObject/loadInfoStateMapping.d.ts +0 -4
- package/dist/dts/mappings/identifiableObject/whereUsedCommentTokenMapping.d.ts +0 -3
- package/dist/dts/mappings/identifiableObject/whereUsedListInfoMappings.d.ts +0 -7
- package/dist/dts/mappings/index.d.ts +0 -17
- package/dist/dts/mappings/keywordMapping.d.ts +0 -7
- package/dist/dts/mappings/links/hateoasLinkMapping.d.ts +0 -4
- package/dist/dts/mappings/links/index.d.ts +0 -3
- package/dist/dts/mappings/links/linkMapping.d.ts +0 -8
- package/dist/dts/mappings/links/linkWithIsEditableMapping.d.ts +0 -5
- package/dist/dts/mappings/listDetailsLevelMapping.d.ts +0 -4
- package/dist/dts/mappings/mapToModel.d.ts +0 -1
- package/dist/dts/mappings/mapToModels.d.ts +0 -1
- package/dist/dts/mappings/mappingRegistry.d.ts +0 -9
- package/dist/dts/mappings/organizationalItems/bundleMapping.d.ts +0 -7
- package/dist/dts/mappings/organizationalItems/businessProcessTypeMapping.d.ts +0 -7
- package/dist/dts/mappings/organizationalItems/businessProcessTypesMapping.d.ts +0 -5
- package/dist/dts/mappings/organizationalItems/changeOrgItemToBusinessProcessTypes.d.ts +0 -2
- package/dist/dts/mappings/organizationalItems/changeOrgItemToTaxonomies.d.ts +0 -2
- package/dist/dts/mappings/organizationalItems/externalContainerMapping.d.ts +0 -5
- package/dist/dts/mappings/organizationalItems/externalKeywordCategoryMapping.d.ts +0 -5
- package/dist/dts/mappings/organizationalItems/folderMapping.d.ts +0 -7
- package/dist/dts/mappings/organizationalItems/index.d.ts +0 -14
- package/dist/dts/mappings/organizationalItems/keywordCategoryMapping.d.ts +0 -7
- package/dist/dts/mappings/organizationalItems/organizationalItemMapping.d.ts +0 -5
- package/dist/dts/mappings/organizationalItems/publishLocationInfoMapping.d.ts +0 -5
- package/dist/dts/mappings/organizationalItems/searchFolderMapping.d.ts +0 -5
- package/dist/dts/mappings/organizationalItems/structureGroupMapping.d.ts +0 -7
- package/dist/dts/mappings/organizationalItems/taxonomiesMapping.d.ts +0 -5
- package/dist/dts/mappings/organizationalItems/virtualFolderMapping.d.ts +0 -5
- package/dist/dts/mappings/page/componentPresentationMapping.d.ts +0 -7
- package/dist/dts/mappings/page/embeddedRegionMapping.d.ts +0 -7
- package/dist/dts/mappings/page/index.d.ts +0 -4
- package/dist/dts/mappings/page/pageMapping.d.ts +0 -7
- package/dist/dts/mappings/page/regionsMapping.d.ts +0 -4
- package/dist/dts/mappings/page/targetGroupConditionMapping.d.ts +0 -7
- package/dist/dts/mappings/publishing/deployerActionMapping.d.ts +0 -4
- package/dist/dts/mappings/publishing/index.d.ts +0 -15
- package/dist/dts/mappings/publishing/processedItemMapping.d.ts +0 -7
- package/dist/dts/mappings/publishing/publishActionMappings.d.ts +0 -3
- package/dist/dts/mappings/publishing/publishContextMapping.d.ts +0 -7
- package/dist/dts/mappings/publishing/publishInfoMapping.d.ts +0 -7
- package/dist/dts/mappings/publishing/publishInstructionMapping.d.ts +0 -7
- package/dist/dts/mappings/publishing/publishTransactionListInfoMappings.d.ts +0 -7
- package/dist/dts/mappings/publishing/publishTransactionMapping.d.ts +0 -7
- package/dist/dts/mappings/publishing/publishTransactionStateMapping.d.ts +0 -4
- package/dist/dts/mappings/publishing/publishTransactionsCreationResultMapping.d.ts +0 -7
- package/dist/dts/mappings/publishing/publishUrlInfoMapping.d.ts +0 -4
- package/dist/dts/mappings/publishing/resolveInstructionBaseMapping.d.ts +0 -5
- package/dist/dts/mappings/publishing/resolveInstructionMapping.d.ts +0 -5
- package/dist/dts/mappings/publishing/resolvedItemMapping.d.ts +0 -7
- package/dist/dts/mappings/publishing/structureResolveOptionMapping.d.ts +0 -4
- package/dist/dts/mappings/publishing/unpublishInstructionMapping.d.ts +0 -7
- package/dist/dts/mappings/registerMappings.d.ts +0 -2
- package/dist/dts/mappings/repositoryLocalObject/blueprintInfoMapping.d.ts +0 -7
- package/dist/dts/mappings/repositoryLocalObject/index.d.ts +0 -7
- package/dist/dts/mappings/repositoryLocalObject/limitedVersionInfoMapping.d.ts +0 -7
- package/dist/dts/mappings/repositoryLocalObject/locationInfoMapping.d.ts +0 -7
- package/dist/dts/mappings/repositoryLocalObject/lockInfoMapping.d.ts +0 -7
- package/dist/dts/mappings/repositoryLocalObject/lockTypeMapping.d.ts +0 -4
- package/dist/dts/mappings/repositoryLocalObject/repositoryLocalObjectMapping.d.ts +0 -5
- package/dist/dts/mappings/repositoryLocalObject/rloItemTypeMapping.d.ts +0 -4
- package/dist/dts/mappings/schema/fieldDefinitions/componentLinkFieldDefinitionMapping.d.ts +0 -7
- package/dist/dts/mappings/schema/fieldDefinitions/dateFieldDefinitionMapping.d.ts +0 -7
- package/dist/dts/mappings/schema/fieldDefinitions/dateListDefinitionMapping.d.ts +0 -7
- package/dist/dts/mappings/schema/fieldDefinitions/embeddedSchemaFieldDefinitionMapping.d.ts +0 -7
- package/dist/dts/mappings/schema/fieldDefinitions/fieldsDefinitionDictionaryMapping.d.ts +0 -4
- package/dist/dts/mappings/schema/fieldDefinitions/index.d.ts +0 -11
- package/dist/dts/mappings/schema/fieldDefinitions/keywordFieldDefinitionMapping.d.ts +0 -7
- package/dist/dts/mappings/schema/fieldDefinitions/listDefinitionMapping.d.ts +0 -7
- package/dist/dts/mappings/schema/fieldDefinitions/listTypeMapping.d.ts +0 -3
- package/dist/dts/mappings/schema/fieldDefinitions/multimediaLinkFieldDefinitionMapping.d.ts +0 -7
- package/dist/dts/mappings/schema/fieldDefinitions/numberFieldDefinitionMapping.d.ts +0 -7
- package/dist/dts/mappings/schema/fieldDefinitions/textFields/externalLinkFieldDefinitionMapping.d.ts +0 -4
- package/dist/dts/mappings/schema/fieldDefinitions/textFields/formattingFeaturesMapping.d.ts +0 -4
- package/dist/dts/mappings/schema/fieldDefinitions/textFields/index.d.ts +0 -6
- package/dist/dts/mappings/schema/fieldDefinitions/textFields/multilineTextFieldDefinitionMapping.d.ts +0 -4
- package/dist/dts/mappings/schema/fieldDefinitions/textFields/singleLineTextFieldDefinitionMapping.d.ts +0 -4
- package/dist/dts/mappings/schema/fieldDefinitions/textFields/singleLineTextListDefinitionMapping.d.ts +0 -4
- package/dist/dts/mappings/schema/fieldDefinitions/textFields/xhtmlFieldDefinitionMapping.d.ts +0 -4
- package/dist/dts/mappings/schema/index.d.ts +0 -3
- package/dist/dts/mappings/schema/schemaMapping.d.ts +0 -7
- package/dist/dts/mappings/schema/schemaPurposeMapping.d.ts +0 -4
- package/dist/dts/mappings/search/index.d.ts +0 -1
- package/dist/dts/mappings/search/searchBlueprintStatusMapping.d.ts +0 -4
- package/dist/dts/mappings/synchronizationActionMapping.d.ts +0 -4
- package/dist/dts/mappings/synchronizationResultMapping.d.ts +0 -4
- package/dist/dts/mappings/synchronizeFlagsMapping.d.ts +0 -4
- package/dist/dts/mappings/systemPrivilegeMapping.d.ts +0 -4
- package/dist/dts/mappings/systemPrivilegesDictionaryMapping.d.ts +0 -4
- package/dist/dts/mappings/systemWideObjects/approvalStatusMapping.d.ts +0 -5
- package/dist/dts/mappings/systemWideObjects/index.d.ts +0 -7
- package/dist/dts/mappings/systemWideObjects/multimediaTypeMapping.d.ts +0 -5
- package/dist/dts/mappings/systemWideObjects/publicationMapping.d.ts +0 -7
- package/dist/dts/mappings/systemWideObjects/publishPriorityMapping.d.ts +0 -4
- package/dist/dts/mappings/systemWideObjects/repositoryMapping.d.ts +0 -7
- package/dist/dts/mappings/systemWideObjects/systemWideObjectMapping.d.ts +0 -1
- package/dist/dts/mappings/systemWideObjects/targetTypeMapping.d.ts +0 -4
- package/dist/dts/mappings/targetGroupMapping.d.ts +0 -5
- package/dist/dts/mappings/templates/componentTemplateMapping.d.ts +0 -7
- package/dist/dts/mappings/templates/index.d.ts +0 -3
- package/dist/dts/mappings/templates/pageTemplateMapping.d.ts +0 -7
- package/dist/dts/mappings/templates/templateBuildingBlockMapping.d.ts +0 -7
- package/dist/dts/mappings/templates/templateMapping.d.ts +0 -5
- package/dist/dts/mappings/translations/identifiableTranslationJobMapping.d.ts +0 -7
- package/dist/dts/mappings/translations/index.d.ts +0 -22
- package/dist/dts/mappings/translations/resolveOptionsMapping.d.ts +0 -3
- package/dist/dts/mappings/translations/retrieveReasonMapping.d.ts +0 -4
- package/dist/dts/mappings/translations/targetLanguageMapping.d.ts +0 -7
- package/dist/dts/mappings/translations/tmsLanguageMapping.d.ts +0 -4
- package/dist/dts/mappings/translations/tmsWorkflowMapping.d.ts +0 -7
- package/dist/dts/mappings/translations/tmsWorkflowStepMapping.d.ts +0 -4
- package/dist/dts/mappings/translations/translationDetailsMapping.d.ts +0 -7
- package/dist/dts/mappings/translations/translationErrorDetailsMapping.d.ts +0 -7
- package/dist/dts/mappings/translations/translationErrorSeverityMapping.d.ts +0 -4
- package/dist/dts/mappings/translations/translationExceptionDetailsMapping.d.ts +0 -7
- package/dist/dts/mappings/translations/translationInfoMapping.d.ts +0 -7
- package/dist/dts/mappings/translations/translationJobDisplayStateMapping.d.ts +0 -3
- package/dist/dts/mappings/translations/translationJobInfoMapping.d.ts +0 -7
- package/dist/dts/mappings/translations/translationJobItemMapping.d.ts +0 -7
- package/dist/dts/mappings/translations/translationJobMapping.d.ts +0 -7
- package/dist/dts/mappings/translations/translationJobPriorityMapping.d.ts +0 -4
- package/dist/dts/mappings/translations/translationJobStateMapping.d.ts +0 -4
- package/dist/dts/mappings/translations/translationJobTypeMapping.d.ts +0 -4
- package/dist/dts/mappings/translations/translationStatusMapping.d.ts +0 -4
- package/dist/dts/mappings/translations/translationTargetPublicationMapping.d.ts +0 -7
- package/dist/dts/mappings/translations/translationWorkflowStatusMapping.d.ts +0 -7
- package/dist/dts/mappings/tryMapToModel.d.ts +0 -1
- package/dist/dts/mappings/user/accessTokenMapping.d.ts +0 -7
- package/dist/dts/mappings/user/groupMembershipMapping.d.ts +0 -7
- package/dist/dts/mappings/user/index.d.ts +0 -10
- package/dist/dts/mappings/user/trusteeMapping.d.ts +0 -5
- package/dist/dts/mappings/user/userFavoriteLinkMapping.d.ts +0 -7
- package/dist/dts/mappings/user/userGroupMapping.d.ts +0 -7
- package/dist/dts/mappings/user/userLocaleInfoMapping.d.ts +0 -4
- package/dist/dts/mappings/user/userMapping.d.ts +0 -5
- package/dist/dts/mappings/user/userPreferencesMapping.d.ts +0 -7
- package/dist/dts/mappings/user/userProfileMapping.d.ts +0 -7
- package/dist/dts/mappings/user/userUserRuntimeInfoMapping.d.ts +0 -7
- package/dist/dts/mappings/versionedItem/dynamicVersionInfoMapping.d.ts +0 -7
- package/dist/dts/mappings/versionedItem/fullVersionInfoMapping.d.ts +0 -7
- package/dist/dts/mappings/versionedItem/index.d.ts +0 -3
- package/dist/dts/mappings/versionedItem/versionedItemMapping.d.ts +0 -5
- package/dist/dts/mappings/workflow/activityConstraintsMapping.d.ts +0 -3
- package/dist/dts/mappings/workflow/activityDefinitionMapping.d.ts +0 -7
- package/dist/dts/mappings/workflow/activityHistoryMapping.d.ts +0 -7
- package/dist/dts/mappings/workflow/activityInstanceMapping.d.ts +0 -7
- package/dist/dts/mappings/workflow/activityMapping.d.ts +0 -5
- package/dist/dts/mappings/workflow/activityStateMapping.d.ts +0 -4
- package/dist/dts/mappings/workflow/activityTypeMapping.d.ts +0 -3
- package/dist/dts/mappings/workflow/finishActivityResultMapping.d.ts +0 -7
- package/dist/dts/mappings/workflow/index.d.ts +0 -19
- package/dist/dts/mappings/workflow/processDefinitionMapping.d.ts +0 -7
- package/dist/dts/mappings/workflow/processFinishReasonMapping.d.ts +0 -3
- package/dist/dts/mappings/workflow/processHistoryMapping.d.ts +0 -7
- package/dist/dts/mappings/workflow/processInstanceMapping.d.ts +0 -7
- package/dist/dts/mappings/workflow/processMapping.d.ts +0 -5
- package/dist/dts/mappings/workflow/tridionActivityDefinitionMapping.d.ts +0 -7
- package/dist/dts/mappings/workflow/tridionProcessDefinitionMapping.d.ts +0 -7
- package/dist/dts/mappings/workflow/workItemMapping.d.ts +0 -7
- package/dist/dts/mappings/workflow/workflowInfoMapping.d.ts +0 -7
- package/dist/dts/mappings/workflow/workflowObjectMapping.d.ts +0 -5
- package/dist/dts/mappingsTests/data/bundleData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/businessProcessTypeData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/categoryData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/componentData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/folderData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/groupData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/groupMembershipData.d.ts +0 -14
- package/dist/dts/mappingsTests/data/identifiableObjectData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/index.d.ts +0 -27
- package/dist/dts/mappingsTests/data/keywordData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/multimediaComponentData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/multimediaTypeData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/organizationalItemData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/pageData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/processDefinitionData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/publishingTargetData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/repositoryData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/repositoryLocalObjectData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/schemaData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/searchFolderData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/structureGroupData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/systemWideObjectData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/targetGroupData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/targetTypeData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/trusteeData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/userData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/versionedItemData.d.ts +0 -2
- package/dist/dts/mappingsTests/data/virtualFolderData.d.ts +0 -2
- package/dist/dts/mappingsTests/tests/identifiableObject/identifiableObjectMapping.spec.d.ts +0 -1
- package/dist/dts/mappingsTests/tests/keyword.spec.d.ts +0 -1
- package/dist/dts/mappingsTests/tests/links/linkMapping.spec.d.ts +0 -1
- package/dist/dts/mappingsTests/tests/links/linkWithIsEditableMapping.spec.d.ts +0 -1
- package/dist/dts/mappingsTests/tests/repositoryLocalObject/repositoryLocalObject.spec.d.ts +0 -1
- package/dist/dts/mappingsTests/tests/user/groupMembershipMapping.spec.d.ts +0 -1
- package/dist/dts/mappingsTests/utils/createUserProfile.d.ts +0 -2
- package/dist/dts/mappingsTests/utils/expectArrayOfType.d.ts +0 -1
- package/dist/dts/models/access/accessControlEntry.d.ts +0 -45
- package/dist/dts/models/access/accessControlList.d.ts +0 -16
- package/dist/dts/models/access/index.d.ts +0 -6
- package/dist/dts/models/access/permission.d.ts +0 -12
- package/dist/dts/models/access/right.d.ts +0 -28
- package/dist/dts/models/access/securityDescriptor.d.ts +0 -39
- package/dist/dts/models/access/stringSearchMode.d.ts +0 -7
- package/dist/dts/models/api/apiError.d.ts +0 -13
- package/dist/dts/models/api/apiRequestOptions.d.ts +0 -14
- package/dist/dts/models/api/index.d.ts +0 -6
- package/dist/dts/models/api/validationApiError.d.ts +0 -29
- package/dist/dts/models/api/validationError.d.ts +0 -18
- package/dist/dts/models/api/validationResult.d.ts +0 -22
- package/dist/dts/models/api/validationWarning.d.ts +0 -10
- package/dist/dts/models/batch/batch.d.ts +0 -53
- package/dist/dts/models/batch/batchOperation.d.ts +0 -46
- package/dist/dts/models/batch/batchOperationState.d.ts +0 -14
- package/dist/dts/models/batch/batchStatus.d.ts +0 -3
- package/dist/dts/models/batch/batchType.d.ts +0 -1
- package/dist/dts/models/batch/index.d.ts +0 -6
- package/dist/dts/models/batch/parametersDictionary.d.ts +0 -4
- package/dist/dts/models/binaryContent.d.ts +0 -69
- package/dist/dts/models/blueprint/blueprintGraph.d.ts +0 -31
- package/dist/dts/models/blueprint/blueprintGraphNode.d.ts +0 -49
- package/dist/dts/models/blueprint/index.d.ts +0 -4
- package/dist/dts/models/blueprint/itemBlueprintHierarchy/constructItemGraph.d.ts +0 -4
- package/dist/dts/models/blueprint/itemBlueprintHierarchy/getPrimaryItem.d.ts +0 -3
- package/dist/dts/models/blueprint/itemBlueprintHierarchy/index.d.ts +0 -2
- package/dist/dts/models/blueprint/itemBlueprintHierarchy/itemBlueprintHierarchy.d.ts +0 -15
- package/dist/dts/models/blueprint/itemBlueprintHierarchy/itemBlueprintNodeData.d.ts +0 -25
- package/dist/dts/models/blueprint/publicationBlueprintHierarchy/constructPublicationGraph.d.ts +0 -4
- package/dist/dts/models/blueprint/publicationBlueprintHierarchy/index.d.ts +0 -1
- package/dist/dts/models/blueprint/publicationBlueprintHierarchy/publicationBlueprintHierarchy.d.ts +0 -13
- package/dist/dts/models/claimMapping.d.ts +0 -23
- package/dist/dts/models/classificationDetail.d.ts +0 -34
- package/dist/dts/models/classificationInfo.d.ts +0 -26
- package/dist/dts/models/component/component.d.ts +0 -16
- package/dist/dts/models/component/componentBase.d.ts +0 -51
- package/dist/dts/models/component/componentType.d.ts +0 -11
- package/dist/dts/models/component/externalMultimediaComponent.d.ts +0 -39
- package/dist/dts/models/component/externalVersionInfo.d.ts +0 -18
- package/dist/dts/models/component/index.d.ts +0 -6
- package/dist/dts/models/component/multimediaComponent.d.ts +0 -17
- package/dist/dts/models/dependencyDirection.d.ts +0 -1
- package/dist/dts/models/dependencyGraphNode.d.ts +0 -33
- package/dist/dts/models/externalKeyword.d.ts +0 -43
- package/dist/dts/models/identifiableObject/applicableActions.d.ts +0 -30
- package/dist/dts/models/identifiableObject/basicVersionInfo.d.ts +0 -24
- package/dist/dts/models/identifiableObject/extensionPropertyDictionary.d.ts +0 -4
- package/dist/dts/models/identifiableObject/identifiableObject.d.ts +0 -82
- package/dist/dts/models/identifiableObject/index.d.ts +0 -9
- package/dist/dts/models/identifiableObject/listInfo.d.ts +0 -1
- package/dist/dts/models/identifiableObject/listLink.d.ts +0 -15
- package/dist/dts/models/identifiableObject/loadInfo.d.ts +0 -38
- package/dist/dts/models/identifiableObject/whereUsedCommentToken.d.ts +0 -15
- package/dist/dts/models/identifiableObject/whereUsedListInfo.d.ts +0 -15
- package/dist/dts/models/index.d.ts +0 -36
- package/dist/dts/models/itemType.d.ts +0 -71
- package/dist/dts/models/itemUri/eclUri.d.ts +0 -54
- package/dist/dts/models/itemUri/eclUri.spec.d.ts +0 -1
- package/dist/dts/models/itemUri/eclUriItemType.d.ts +0 -4
- package/dist/dts/models/itemUri/index.d.ts +0 -5
- package/dist/dts/models/itemUri/itemUri.d.ts +0 -7
- package/dist/dts/models/itemUri/tcmUri.d.ts +0 -40
- package/dist/dts/models/itemUri/tcmUri.spec.d.ts +0 -1
- package/dist/dts/models/itemUri/tcmUriItemType.d.ts +0 -39
- package/dist/dts/models/itemUri/tmUri.d.ts +0 -37
- package/dist/dts/models/itemUri/tmUri.spec.d.ts +0 -1
- package/dist/dts/models/itemUri/uri.d.ts +0 -14
- package/dist/dts/models/itemUri/virtualUri.d.ts +0 -18
- package/dist/dts/models/keyword.d.ts +0 -55
- package/dist/dts/models/links/createBackendHateoasLink.d.ts +0 -2
- package/dist/dts/models/links/createBackendLink.d.ts +0 -2
- package/dist/dts/models/links/hateoasLink.d.ts +0 -21
- package/dist/dts/models/links/index.d.ts +0 -5
- package/dist/dts/models/links/link.d.ts +0 -41
- package/dist/dts/models/links/linkWithIsEditable.d.ts +0 -17
- package/dist/dts/models/listDetailsLevel.d.ts +0 -1
- package/dist/dts/models/organizationalItems/bundle.d.ts +0 -21
- package/dist/dts/models/organizationalItems/businessProcessType.d.ts +0 -68
- package/dist/dts/models/organizationalItems/businessProcessTypes.d.ts +0 -10
- package/dist/dts/models/organizationalItems/createBackendBusinessProcessTypes.d.ts +0 -3
- package/dist/dts/models/organizationalItems/createBackendTaxonomies.d.ts +0 -3
- package/dist/dts/models/organizationalItems/externalContainer.d.ts +0 -17
- package/dist/dts/models/organizationalItems/externalKeywordCategory.d.ts +0 -21
- package/dist/dts/models/organizationalItems/folder.d.ts +0 -41
- package/dist/dts/models/organizationalItems/index.d.ts +0 -15
- package/dist/dts/models/organizationalItems/keywordCategory.d.ts +0 -65
- package/dist/dts/models/organizationalItems/organizationalItem.d.ts +0 -37
- package/dist/dts/models/organizationalItems/publishLocationInfo.d.ts +0 -33
- package/dist/dts/models/organizationalItems/searchFolder.d.ts +0 -14
- package/dist/dts/models/organizationalItems/structureGroup.d.ts +0 -85
- package/dist/dts/models/organizationalItems/taxonomies.d.ts +0 -12
- package/dist/dts/models/organizationalItems/virtualFolder.d.ts +0 -42
- package/dist/dts/models/page/componentPresentation.d.ts +0 -28
- package/dist/dts/models/page/embeddedRegion.d.ts +0 -30
- package/dist/dts/models/page/index.d.ts +0 -5
- package/dist/dts/models/page/page.d.ts +0 -81
- package/dist/dts/models/page/region.d.ts +0 -10
- package/dist/dts/models/page/targetGroupCondition.d.ts +0 -23
- package/dist/dts/models/publishing/deployerAction.d.ts +0 -11
- package/dist/dts/models/publishing/index.d.ts +0 -17
- package/dist/dts/models/publishing/processedItem.d.ts +0 -33
- package/dist/dts/models/publishing/publishAction.d.ts +0 -4
- package/dist/dts/models/publishing/publishContext.d.ts +0 -36
- package/dist/dts/models/publishing/publishInfo.d.ts +0 -45
- package/dist/dts/models/publishing/publishInstruction.d.ts +0 -24
- package/dist/dts/models/publishing/publishInstructionBase.d.ts +0 -9
- package/dist/dts/models/publishing/publishTransaction.d.ts +0 -101
- package/dist/dts/models/publishing/publishTransactionListInfo.d.ts +0 -19
- package/dist/dts/models/publishing/publishTransactionState.d.ts +0 -1
- package/dist/dts/models/publishing/publishTransactionsCreationResult.d.ts +0 -13
- package/dist/dts/models/publishing/publishUrlInfo.d.ts +0 -8
- package/dist/dts/models/publishing/resolveInstruction.d.ts +0 -27
- package/dist/dts/models/publishing/resolveInstructionBase.d.ts +0 -31
- package/dist/dts/models/publishing/resolvedItem.d.ts +0 -38
- package/dist/dts/models/publishing/structureResolveOption.d.ts +0 -1
- package/dist/dts/models/publishing/unpublishInstruction.d.ts +0 -25
- package/dist/dts/models/repositoryLocalObject/blueprintInfo.d.ts +0 -33
- package/dist/dts/models/repositoryLocalObject/fieldsValueDictionary.d.ts +0 -4
- package/dist/dts/models/repositoryLocalObject/index.d.ts +0 -8
- package/dist/dts/models/repositoryLocalObject/limitedVersionInfo.d.ts +0 -21
- package/dist/dts/models/repositoryLocalObject/locationInfo.d.ts +0 -33
- package/dist/dts/models/repositoryLocalObject/lockInfo.d.ts +0 -33
- package/dist/dts/models/repositoryLocalObject/lockType.d.ts +0 -13
- package/dist/dts/models/repositoryLocalObject/repositoryLocalObject.d.ts +0 -53
- package/dist/dts/models/repositoryLocalObject/rloItemType.d.ts +0 -20
- package/dist/dts/models/schema/fieldDefinitions/componentLinkFieldDefinition.d.ts +0 -31
- package/dist/dts/models/schema/fieldDefinitions/dateFieldDefinition.d.ts +0 -45
- package/dist/dts/models/schema/fieldDefinitions/dateListDefinition.d.ts +0 -19
- package/dist/dts/models/schema/fieldDefinitions/embeddedSchemaFieldDefinition.d.ts +0 -27
- package/dist/dts/models/schema/fieldDefinitions/fieldsDefinitionDictionary.d.ts +0 -5
- package/dist/dts/models/schema/fieldDefinitions/index.d.ts +0 -14
- package/dist/dts/models/schema/fieldDefinitions/itemFieldDefinition.d.ts +0 -43
- package/dist/dts/models/schema/fieldDefinitions/itemPublishableFieldDefinition.d.ts +0 -18
- package/dist/dts/models/schema/fieldDefinitions/keywordFieldDefinition.d.ts +0 -34
- package/dist/dts/models/schema/fieldDefinitions/listDefinition.d.ts +0 -23
- package/dist/dts/models/schema/fieldDefinitions/listType.d.ts +0 -1
- package/dist/dts/models/schema/fieldDefinitions/multimediaLinkFieldDefinition.d.ts +0 -28
- package/dist/dts/models/schema/fieldDefinitions/numberFieldDefinition.d.ts +0 -49
- package/dist/dts/models/schema/fieldDefinitions/numberListDefinition.d.ts +0 -17
- package/dist/dts/models/schema/fieldDefinitions/textFields/externalLinkFieldDefinition.d.ts +0 -14
- package/dist/dts/models/schema/fieldDefinitions/textFields/formattingFeatures.d.ts +0 -26
- package/dist/dts/models/schema/fieldDefinitions/textFields/index.d.ts +0 -7
- package/dist/dts/models/schema/fieldDefinitions/textFields/multilineTextFieldDefinition.d.ts +0 -12
- package/dist/dts/models/schema/fieldDefinitions/textFields/singleLineTextFieldDefinition.d.ts +0 -33
- package/dist/dts/models/schema/fieldDefinitions/textFields/singleLineTextListDefinition.d.ts +0 -17
- package/dist/dts/models/schema/fieldDefinitions/textFields/textFieldDefinition.d.ts +0 -14
- package/dist/dts/models/schema/fieldDefinitions/textFields/xhtmlFieldDefinition.d.ts +0 -22
- package/dist/dts/models/schema/index.d.ts +0 -3
- package/dist/dts/models/schema/schema.d.ts +0 -67
- package/dist/dts/models/schema/schemaPurpose.d.ts +0 -18
- package/dist/dts/models/search/index.d.ts +0 -1
- package/dist/dts/models/search/searchBlueprintStatus.d.ts +0 -1
- package/dist/dts/models/synchronizationAction.d.ts +0 -35
- package/dist/dts/models/synchronizationResult.d.ts +0 -23
- package/dist/dts/models/synchronizeFlags.d.ts +0 -1
- package/dist/dts/models/systemPrivilege.d.ts +0 -21
- package/dist/dts/models/systemPrivilegesDictionary.d.ts +0 -6
- package/dist/dts/models/systemWideObjects/approvalStatus.d.ts +0 -24
- package/dist/dts/models/systemWideObjects/index.d.ts +0 -8
- package/dist/dts/models/systemWideObjects/multimediaType.d.ts +0 -21
- package/dist/dts/models/systemWideObjects/publication.d.ts +0 -93
- package/dist/dts/models/systemWideObjects/publishPriority.d.ts +0 -9
- package/dist/dts/models/systemWideObjects/publishingTarget.d.ts +0 -18
- package/dist/dts/models/systemWideObjects/repository.d.ts +0 -56
- package/dist/dts/models/systemWideObjects/systemWideObject.d.ts +0 -13
- package/dist/dts/models/systemWideObjects/targetType.d.ts +0 -63
- package/dist/dts/models/targetGroup.d.ts +0 -19
- package/dist/dts/models/templates/componentTemplate.d.ts +0 -93
- package/dist/dts/models/templates/index.d.ts +0 -4
- package/dist/dts/models/templates/pageTemplate.d.ts +0 -42
- package/dist/dts/models/templates/template.d.ts +0 -49
- package/dist/dts/models/templates/templateBuildingBlock.d.ts +0 -28
- package/dist/dts/models/translation/identifiableTranslationJob.d.ts +0 -156
- package/dist/dts/models/translation/index.d.ts +0 -22
- package/dist/dts/models/translation/resolveOptions.d.ts +0 -10
- package/dist/dts/models/translation/retrieveReason.d.ts +0 -19
- package/dist/dts/models/translation/targetLanguage.d.ts +0 -44
- package/dist/dts/models/translation/tmsLanguage.d.ts +0 -17
- package/dist/dts/models/translation/tmsWorkflow.d.ts +0 -15
- package/dist/dts/models/translation/tmsWorkflowStep.d.ts +0 -24
- package/dist/dts/models/translation/translationDetails.d.ts +0 -76
- package/dist/dts/models/translation/translationErrorDetails.d.ts +0 -75
- package/dist/dts/models/translation/translationErrorSeverity.d.ts +0 -11
- package/dist/dts/models/translation/translationExceptionDetails.d.ts +0 -17
- package/dist/dts/models/translation/translationInfo.d.ts +0 -32
- package/dist/dts/models/translation/translationJob.d.ts +0 -138
- package/dist/dts/models/translation/translationJobDisplayState.d.ts +0 -20
- package/dist/dts/models/translation/translationJobInfo.d.ts +0 -140
- package/dist/dts/models/translation/translationJobItem.d.ts +0 -34
- package/dist/dts/models/translation/translationJobPriority.d.ts +0 -12
- package/dist/dts/models/translation/translationJobState.d.ts +0 -17
- package/dist/dts/models/translation/translationJobType.d.ts +0 -11
- package/dist/dts/models/translation/translationStatus.d.ts +0 -13
- package/dist/dts/models/translation/translationTargetPublication.d.ts +0 -20
- package/dist/dts/models/translation/translationWorkflowStatus.d.ts +0 -24
- package/dist/dts/models/user/accessToken.d.ts +0 -27
- package/dist/dts/models/user/groupMembership.d.ts +0 -22
- package/dist/dts/models/user/index.d.ts +0 -11
- package/dist/dts/models/user/trustee.d.ts +0 -30
- package/dist/dts/models/user/user.d.ts +0 -26
- package/dist/dts/models/user/userFavoriteLink.d.ts +0 -27
- package/dist/dts/models/user/userGroup.d.ts +0 -43
- package/dist/dts/models/user/userLocaleInfo.d.ts +0 -61
- package/dist/dts/models/user/userPreferences.d.ts +0 -19
- package/dist/dts/models/user/userProfile.d.ts +0 -38
- package/dist/dts/models/user/userRuntimeInfo.d.ts +0 -31
- package/dist/dts/models/versionedItem/dynamicVersionInfo.d.ts +0 -29
- package/dist/dts/models/versionedItem/fullVersionInfo.d.ts +0 -57
- package/dist/dts/models/versionedItem/index.d.ts +0 -3
- package/dist/dts/models/versionedItem/versionedItem.d.ts +0 -28
- package/dist/dts/models/workflow/activity.d.ts +0 -98
- package/dist/dts/models/workflow/activityConstraints.d.ts +0 -11
- package/dist/dts/models/workflow/activityDefinition.d.ts +0 -43
- package/dist/dts/models/workflow/activityHistory.d.ts +0 -37
- package/dist/dts/models/workflow/activityInstance.d.ts +0 -67
- package/dist/dts/models/workflow/activityState.d.ts +0 -15
- package/dist/dts/models/workflow/activityType.d.ts +0 -6
- package/dist/dts/models/workflow/finishActivityResult.d.ts +0 -13
- package/dist/dts/models/workflow/index.d.ts +0 -19
- package/dist/dts/models/workflow/process.d.ts +0 -51
- package/dist/dts/models/workflow/processDefinition.d.ts +0 -23
- package/dist/dts/models/workflow/processFinishReason.d.ts +0 -12
- package/dist/dts/models/workflow/processHistory.d.ts +0 -31
- package/dist/dts/models/workflow/processInstance.d.ts +0 -26
- package/dist/dts/models/workflow/tridionActivityDefinition.d.ts +0 -76
- package/dist/dts/models/workflow/tridionProcessDefinition.d.ts +0 -19
- package/dist/dts/models/workflow/variablesDictionary.d.ts +0 -4
- package/dist/dts/models/workflow/workItem.d.ts +0 -60
- package/dist/dts/models/workflow/workflowInfo.d.ts +0 -91
- package/dist/dts/models/workflow/workflowObject.d.ts +0 -21
- package/dist/dts/utils/getItemContainerId.d.ts +0 -3
- package/dist/dts/utils/getItemLabelWithId.d.ts +0 -11
- package/dist/dts/utils/getItemLinkType.d.ts +0 -3
- package/dist/dts/utils/getItemType.d.ts +0 -3
- package/dist/dts/utils/index.d.ts +0 -4
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinkTargetStatus, BatchOperationState, Permissions, Rights, StringSearchMode, ErrorType, LoadInfoState,
|
|
1
|
+
import { LinkTargetStatus, BatchOperationState, Permissions, Rights, StringSearchMode, ErrorType, LoadInfoState, PublishPriority, LockType, RLOItemType, ComponentType, SchemaPurpose, DeployerAction, PublishTransactionState, StructureResolveOption, ResolveOptions, RetrieveReason, TranslationStatus, ErrorSeverity, TranslationJobDisplayState, TranslationJobPriority, TranslationJobState, TranslationJobType, ActivityConstraints, ActivityType, ActivityState, ProcessFinishReason } from '@tridion-sites/open-api-client';
|
|
2
2
|
import { produce } from 'immer';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -214,7 +214,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
214
214
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
215
215
|
PERFORMANCE OF THIS SOFTWARE.
|
|
216
216
|
***************************************************************************** */
|
|
217
|
-
/* global Reflect, Promise
|
|
217
|
+
/* global Reflect, Promise */
|
|
218
218
|
|
|
219
219
|
|
|
220
220
|
function __rest(s, e) {
|
|
@@ -227,12 +227,7 @@ function __rest(s, e) {
|
|
|
227
227
|
t[p[i]] = s[p[i]];
|
|
228
228
|
}
|
|
229
229
|
return t;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
233
|
-
var e = new Error(message);
|
|
234
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
235
|
-
};
|
|
230
|
+
}
|
|
236
231
|
|
|
237
232
|
const applicableActions = {
|
|
238
233
|
view: 'tcm:view',
|
|
@@ -370,7 +365,7 @@ const parseItemType = (itemType) => {
|
|
|
370
365
|
return itemTypeIdToItemType.get(itemTypeId);
|
|
371
366
|
};
|
|
372
367
|
|
|
373
|
-
var _a$
|
|
368
|
+
var _a$1;
|
|
374
369
|
/**
|
|
375
370
|
* Represents a native Tridion Content Manager URI which uniquely identifies a resource in the system.
|
|
376
371
|
*
|
|
@@ -415,7 +410,7 @@ class TcmUri {
|
|
|
415
410
|
value: () => {
|
|
416
411
|
if (this._itemType === 'publication')
|
|
417
412
|
return this;
|
|
418
|
-
return _a$
|
|
413
|
+
return _a$1.createPublicationUri(this._publicationId);
|
|
419
414
|
}
|
|
420
415
|
});
|
|
421
416
|
Object.defineProperty(this, "getVersionlessUri", {
|
|
@@ -423,7 +418,7 @@ class TcmUri {
|
|
|
423
418
|
configurable: true,
|
|
424
419
|
writable: true,
|
|
425
420
|
value: () => {
|
|
426
|
-
return _a$
|
|
421
|
+
return _a$1.create(this._publicationId, this._itemId, this._itemType);
|
|
427
422
|
}
|
|
428
423
|
});
|
|
429
424
|
Object.defineProperty(this, "getUriWithVersion", {
|
|
@@ -431,7 +426,7 @@ class TcmUri {
|
|
|
431
426
|
configurable: true,
|
|
432
427
|
writable: true,
|
|
433
428
|
value: (version) => {
|
|
434
|
-
return _a$
|
|
429
|
+
return _a$1.create(this._publicationId, this._itemId, this._itemType, version);
|
|
435
430
|
}
|
|
436
431
|
});
|
|
437
432
|
Object.defineProperty(this, "getUriInPublication", {
|
|
@@ -439,7 +434,7 @@ class TcmUri {
|
|
|
439
434
|
configurable: true,
|
|
440
435
|
writable: true,
|
|
441
436
|
value: (publicationUri) => {
|
|
442
|
-
return _a$
|
|
437
|
+
return _a$1.create(publicationUri._itemId, this._itemId, this._itemType, this._itemVersion);
|
|
443
438
|
}
|
|
444
439
|
});
|
|
445
440
|
this._publicationId = publicationId;
|
|
@@ -455,9 +450,6 @@ class TcmUri {
|
|
|
455
450
|
}
|
|
456
451
|
this._asString = `tcm:${parts.join('-')}`;
|
|
457
452
|
}
|
|
458
|
-
static get uriPrefix() {
|
|
459
|
-
return this._tcmUriPrefix;
|
|
460
|
-
}
|
|
461
453
|
get publicationId() {
|
|
462
454
|
return this._publicationId;
|
|
463
455
|
}
|
|
@@ -477,17 +469,17 @@ class TcmUri {
|
|
|
477
469
|
return this._itemId === 0;
|
|
478
470
|
}
|
|
479
471
|
get isNullUri() {
|
|
480
|
-
return (this._publicationId === _a$
|
|
481
|
-
this._itemId === _a$
|
|
482
|
-
this._itemType === _a$
|
|
472
|
+
return (this._publicationId === _a$1.null.publicationId &&
|
|
473
|
+
this._itemId === _a$1.null.itemId &&
|
|
474
|
+
this._itemType === _a$1.null.itemType);
|
|
483
475
|
}
|
|
484
476
|
get isSystemUri() {
|
|
485
|
-
return (this._publicationId === _a$
|
|
486
|
-
this._itemId === _a$
|
|
487
|
-
this._itemType === _a$
|
|
477
|
+
return (this._publicationId === _a$1.system.publicationId &&
|
|
478
|
+
this._itemId === _a$1.system.itemId &&
|
|
479
|
+
this._itemType === _a$1.system.itemType);
|
|
488
480
|
}
|
|
489
481
|
get isEditableVersion() {
|
|
490
|
-
return this.isNullUri || this._itemVersion === _a$
|
|
482
|
+
return this.isNullUri || this._itemVersion === _a$1._editableVersion;
|
|
491
483
|
}
|
|
492
484
|
get isDynamic() {
|
|
493
485
|
return this._itemVersion === 0;
|
|
@@ -496,19 +488,13 @@ class TcmUri {
|
|
|
496
488
|
return this._asString;
|
|
497
489
|
}
|
|
498
490
|
}
|
|
499
|
-
_a$
|
|
491
|
+
_a$1 = TcmUri;
|
|
500
492
|
Object.defineProperty(TcmUri, "_tcmUriCache", {
|
|
501
493
|
enumerable: true,
|
|
502
494
|
configurable: true,
|
|
503
495
|
writable: true,
|
|
504
496
|
value: new Map()
|
|
505
497
|
});
|
|
506
|
-
Object.defineProperty(TcmUri, "_tcmUriPrefix", {
|
|
507
|
-
enumerable: true,
|
|
508
|
-
configurable: true,
|
|
509
|
-
writable: true,
|
|
510
|
-
value: 'tcm'
|
|
511
|
-
});
|
|
512
498
|
Object.defineProperty(TcmUri, "_tcmUriRegExp", {
|
|
513
499
|
enumerable: true,
|
|
514
500
|
configurable: true,
|
|
@@ -526,11 +512,11 @@ Object.defineProperty(TcmUri, "create", {
|
|
|
526
512
|
configurable: true,
|
|
527
513
|
writable: true,
|
|
528
514
|
value: (publicationId, itemId, itemType, itemVersion) => {
|
|
529
|
-
const tcmUri = new _a$
|
|
530
|
-
const cachedTcmUri = _a$
|
|
515
|
+
const tcmUri = new _a$1(publicationId, itemId, itemType, itemVersion);
|
|
516
|
+
const cachedTcmUri = _a$1._tcmUriCache.get(tcmUri.asString);
|
|
531
517
|
if (cachedTcmUri)
|
|
532
518
|
return cachedTcmUri;
|
|
533
|
-
_a$
|
|
519
|
+
_a$1._tcmUriCache.set(tcmUri.asString, tcmUri);
|
|
534
520
|
return tcmUri;
|
|
535
521
|
}
|
|
536
522
|
});
|
|
@@ -538,23 +524,23 @@ Object.defineProperty(TcmUri, "null", {
|
|
|
538
524
|
enumerable: true,
|
|
539
525
|
configurable: true,
|
|
540
526
|
writable: true,
|
|
541
|
-
value: _a$
|
|
527
|
+
value: _a$1.create(0, 0, 'none')
|
|
542
528
|
});
|
|
543
529
|
Object.defineProperty(TcmUri, "system", {
|
|
544
530
|
enumerable: true,
|
|
545
531
|
configurable: true,
|
|
546
532
|
writable: true,
|
|
547
|
-
value: _a$
|
|
533
|
+
value: _a$1.create(0, 0, 'system')
|
|
548
534
|
});
|
|
549
535
|
Object.defineProperty(TcmUri, "parse", {
|
|
550
536
|
enumerable: true,
|
|
551
537
|
configurable: true,
|
|
552
538
|
writable: true,
|
|
553
539
|
value: (input) => {
|
|
554
|
-
const cachedTcmUri = _a$
|
|
540
|
+
const cachedTcmUri = _a$1._tcmUriCache.get(input);
|
|
555
541
|
if (cachedTcmUri)
|
|
556
542
|
return cachedTcmUri;
|
|
557
|
-
const result = _a$
|
|
543
|
+
const result = _a$1._tcmUriRegExp.exec(input);
|
|
558
544
|
if (!result)
|
|
559
545
|
return undefined;
|
|
560
546
|
const pubIdPart = result[1];
|
|
@@ -585,7 +571,7 @@ Object.defineProperty(TcmUri, "parse", {
|
|
|
585
571
|
if (isNaN(version) || version < 0)
|
|
586
572
|
return undefined;
|
|
587
573
|
}
|
|
588
|
-
return _a$
|
|
574
|
+
return _a$1.create(publicationId, itemId, itemType, version);
|
|
589
575
|
}
|
|
590
576
|
});
|
|
591
577
|
Object.defineProperty(TcmUri, "createPublicationUri", {
|
|
@@ -593,11 +579,11 @@ Object.defineProperty(TcmUri, "createPublicationUri", {
|
|
|
593
579
|
configurable: true,
|
|
594
580
|
writable: true,
|
|
595
581
|
value: (publicationId) => {
|
|
596
|
-
return _a$
|
|
582
|
+
return _a$1.create(0, publicationId, 'publication');
|
|
597
583
|
}
|
|
598
584
|
});
|
|
599
585
|
|
|
600
|
-
var _a
|
|
586
|
+
var _a;
|
|
601
587
|
class EclUri {
|
|
602
588
|
constructor(publicationId, mountPointId, itemId, itemType, subType, itemVersion) {
|
|
603
589
|
/**
|
|
@@ -676,7 +662,7 @@ class EclUri {
|
|
|
676
662
|
configurable: true,
|
|
677
663
|
writable: true,
|
|
678
664
|
value: () => {
|
|
679
|
-
return _a
|
|
665
|
+
return _a.create(this._publicationId, this._mountPointId, this._itemId, this._itemType, this._subType);
|
|
680
666
|
}
|
|
681
667
|
});
|
|
682
668
|
Object.defineProperty(this, "getMountPointUri", {
|
|
@@ -686,7 +672,7 @@ class EclUri {
|
|
|
686
672
|
value: () => {
|
|
687
673
|
if (this._itemType === 'mountpoint')
|
|
688
674
|
return this;
|
|
689
|
-
return _a
|
|
675
|
+
return _a.create(this._publicationId, this._mountPointId, 'root', 'mountpoint', 'mp');
|
|
690
676
|
}
|
|
691
677
|
});
|
|
692
678
|
Object.defineProperty(this, "getUriWithVersion", {
|
|
@@ -694,7 +680,7 @@ class EclUri {
|
|
|
694
680
|
configurable: true,
|
|
695
681
|
writable: true,
|
|
696
682
|
value: (version) => {
|
|
697
|
-
return _a
|
|
683
|
+
return _a.create(this._publicationId, this._mountPointId, this._itemId, this._itemType, this._subType, version);
|
|
698
684
|
}
|
|
699
685
|
});
|
|
700
686
|
Object.defineProperty(this, "getUriInPublication", {
|
|
@@ -702,7 +688,7 @@ class EclUri {
|
|
|
702
688
|
configurable: true,
|
|
703
689
|
writable: true,
|
|
704
690
|
value: (publicationUri) => {
|
|
705
|
-
return _a
|
|
691
|
+
return _a.create(publicationUri.itemId, this._mountPointId, this._itemId, this._itemType, this._subType, this._itemVersion);
|
|
706
692
|
}
|
|
707
693
|
});
|
|
708
694
|
this._publicationId = publicationId;
|
|
@@ -723,9 +709,6 @@ class EclUri {
|
|
|
723
709
|
}
|
|
724
710
|
this._asString = `ecl:${parts.join('-')}`;
|
|
725
711
|
}
|
|
726
|
-
static get uriPrefix() {
|
|
727
|
-
return this._eclUriPrefix;
|
|
728
|
-
}
|
|
729
712
|
get publicationId() {
|
|
730
713
|
return this._publicationId;
|
|
731
714
|
}
|
|
@@ -754,19 +737,13 @@ class EclUri {
|
|
|
754
737
|
return this._asString;
|
|
755
738
|
}
|
|
756
739
|
}
|
|
757
|
-
_a
|
|
740
|
+
_a = EclUri;
|
|
758
741
|
Object.defineProperty(EclUri, "_eclUriCache", {
|
|
759
742
|
enumerable: true,
|
|
760
743
|
configurable: true,
|
|
761
744
|
writable: true,
|
|
762
745
|
value: new Map()
|
|
763
746
|
});
|
|
764
|
-
Object.defineProperty(EclUri, "_eclUriPrefix", {
|
|
765
|
-
enumerable: true,
|
|
766
|
-
configurable: true,
|
|
767
|
-
writable: true,
|
|
768
|
-
value: 'ecl'
|
|
769
|
-
});
|
|
770
747
|
Object.defineProperty(EclUri, "_eclUriRegExp", {
|
|
771
748
|
enumerable: true,
|
|
772
749
|
configurable: true,
|
|
@@ -778,11 +755,11 @@ Object.defineProperty(EclUri, "create", {
|
|
|
778
755
|
configurable: true,
|
|
779
756
|
writable: true,
|
|
780
757
|
value: (publicationId, mountPointId, itemId, itemType, subType, itemVersion) => {
|
|
781
|
-
const eclUri = new _a
|
|
782
|
-
const cachedEclUri = _a
|
|
758
|
+
const eclUri = new _a(publicationId, mountPointId, itemId, itemType, subType, itemVersion);
|
|
759
|
+
const cachedEclUri = _a._eclUriCache.get(eclUri.asString);
|
|
783
760
|
if (cachedEclUri)
|
|
784
761
|
return cachedEclUri;
|
|
785
|
-
_a
|
|
762
|
+
_a._eclUriCache.set(eclUri.asString, eclUri);
|
|
786
763
|
return eclUri;
|
|
787
764
|
}
|
|
788
765
|
});
|
|
@@ -791,7 +768,7 @@ Object.defineProperty(EclUri, "parse", {
|
|
|
791
768
|
configurable: true,
|
|
792
769
|
writable: true,
|
|
793
770
|
value: (input) => {
|
|
794
|
-
const result = _a
|
|
771
|
+
const result = _a._eclUriRegExp.exec(input);
|
|
795
772
|
if (!result)
|
|
796
773
|
return undefined;
|
|
797
774
|
const pubIdPart = result[1];
|
|
@@ -821,128 +798,10 @@ Object.defineProperty(EclUri, "parse", {
|
|
|
821
798
|
if (isNaN(version) || version < 0)
|
|
822
799
|
return undefined;
|
|
823
800
|
}
|
|
824
|
-
return _a
|
|
825
|
-
}
|
|
826
|
-
});
|
|
827
|
-
|
|
828
|
-
var _a;
|
|
829
|
-
class TmUri {
|
|
830
|
-
constructor(itemId) {
|
|
831
|
-
/**
|
|
832
|
-
* TM-specified item id.
|
|
833
|
-
*/
|
|
834
|
-
Object.defineProperty(this, "_itemId", {
|
|
835
|
-
enumerable: true,
|
|
836
|
-
configurable: true,
|
|
837
|
-
writable: true,
|
|
838
|
-
value: void 0
|
|
839
|
-
});
|
|
840
|
-
Object.defineProperty(this, "_asString", {
|
|
841
|
-
enumerable: true,
|
|
842
|
-
configurable: true,
|
|
843
|
-
writable: true,
|
|
844
|
-
value: void 0
|
|
845
|
-
});
|
|
846
|
-
/**
|
|
847
|
-
* Don't use it, will be removed later. Added to align api with other uris.
|
|
848
|
-
*
|
|
849
|
-
* @deprecated
|
|
850
|
-
*/
|
|
851
|
-
Object.defineProperty(this, "getPublicationUri", {
|
|
852
|
-
enumerable: true,
|
|
853
|
-
configurable: true,
|
|
854
|
-
writable: true,
|
|
855
|
-
value: () => {
|
|
856
|
-
return TcmUri.createPublicationUri(0);
|
|
857
|
-
}
|
|
858
|
-
});
|
|
859
|
-
/**
|
|
860
|
-
* Don't use it, will be removed later. Added to align api with other uris.
|
|
861
|
-
*
|
|
862
|
-
* @deprecated
|
|
863
|
-
*/
|
|
864
|
-
Object.defineProperty(this, "getUriInPublication", {
|
|
865
|
-
enumerable: true,
|
|
866
|
-
configurable: true,
|
|
867
|
-
writable: true,
|
|
868
|
-
value: (publicationUri) => {
|
|
869
|
-
return _a.create(this._itemId);
|
|
870
|
-
}
|
|
871
|
-
});
|
|
872
|
-
this._itemId = itemId;
|
|
873
|
-
this._asString = `tm:0-${this._itemId}`;
|
|
874
|
-
}
|
|
875
|
-
static get uriPrefix() {
|
|
876
|
-
return this._tmUriPrefix;
|
|
877
|
-
}
|
|
878
|
-
get itemType() {
|
|
879
|
-
return 'translationJob';
|
|
880
|
-
}
|
|
881
|
-
get itemId() {
|
|
882
|
-
return this._itemId;
|
|
883
|
-
}
|
|
884
|
-
get asString() {
|
|
885
|
-
return this._asString;
|
|
886
|
-
}
|
|
887
|
-
/**
|
|
888
|
-
* Don't use it, will be removed later. Added to align api with other uris.
|
|
889
|
-
*
|
|
890
|
-
* @deprecated
|
|
891
|
-
*/
|
|
892
|
-
get isDynamic() {
|
|
893
|
-
return false;
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
_a = TmUri;
|
|
897
|
-
Object.defineProperty(TmUri, "_tmUriCache", {
|
|
898
|
-
enumerable: true,
|
|
899
|
-
configurable: true,
|
|
900
|
-
writable: true,
|
|
901
|
-
value: new Map()
|
|
902
|
-
});
|
|
903
|
-
Object.defineProperty(TmUri, "_tmUriPrefix", {
|
|
904
|
-
enumerable: true,
|
|
905
|
-
configurable: true,
|
|
906
|
-
writable: true,
|
|
907
|
-
value: 'tm'
|
|
908
|
-
});
|
|
909
|
-
Object.defineProperty(TmUri, "_tmUriRegExp", {
|
|
910
|
-
enumerable: true,
|
|
911
|
-
configurable: true,
|
|
912
|
-
writable: true,
|
|
913
|
-
value: new RegExp(/^tm:0-(\d+)$/)
|
|
914
|
-
});
|
|
915
|
-
Object.defineProperty(TmUri, "create", {
|
|
916
|
-
enumerable: true,
|
|
917
|
-
configurable: true,
|
|
918
|
-
writable: true,
|
|
919
|
-
value: (itemId) => {
|
|
920
|
-
const tmUri = new _a(itemId);
|
|
921
|
-
const cachedTmUri = _a._tmUriCache.get(tmUri.asString);
|
|
922
|
-
if (cachedTmUri)
|
|
923
|
-
return cachedTmUri;
|
|
924
|
-
_a._tmUriCache.set(tmUri.asString, tmUri);
|
|
925
|
-
return tmUri;
|
|
926
|
-
}
|
|
927
|
-
});
|
|
928
|
-
Object.defineProperty(TmUri, "parse", {
|
|
929
|
-
enumerable: true,
|
|
930
|
-
configurable: true,
|
|
931
|
-
writable: true,
|
|
932
|
-
value: (input) => {
|
|
933
|
-
const result = _a._tmUriRegExp.exec(input);
|
|
934
|
-
if (!result)
|
|
935
|
-
return undefined;
|
|
936
|
-
const itemIdPart = result[1];
|
|
937
|
-
if (itemIdPart === undefined)
|
|
938
|
-
return undefined;
|
|
939
|
-
const itemId = parseInt(itemIdPart);
|
|
940
|
-
return _a.create(itemId);
|
|
801
|
+
return _a.create(publicationId, mountPointId, itemId, itemType, subType, version);
|
|
941
802
|
}
|
|
942
803
|
});
|
|
943
804
|
|
|
944
|
-
const BUSINESS_PROCESS_TYPES_NAMESPACE = 'bptman-';
|
|
945
|
-
const TAXONOMIES_NAMESPACE = 'catman-';
|
|
946
805
|
class VirtualUri {
|
|
947
806
|
constructor(publicationUri, itemType) {
|
|
948
807
|
Object.defineProperty(this, "_publicationUri", {
|
|
@@ -984,9 +843,6 @@ class VirtualUri {
|
|
|
984
843
|
const namespace = this._itemType === 'businessProcessTypes' ? 'bptman-' : 'catman-';
|
|
985
844
|
this._asString = `${namespace}${this._publicationUri.asString}`;
|
|
986
845
|
}
|
|
987
|
-
get itemId() {
|
|
988
|
-
return this._publicationUri.asString;
|
|
989
|
-
}
|
|
990
846
|
get itemType() {
|
|
991
847
|
return this._itemType;
|
|
992
848
|
}
|
|
@@ -1023,12 +879,12 @@ Object.defineProperty(VirtualUri, "parse", {
|
|
|
1023
879
|
value: (input) => {
|
|
1024
880
|
let itemIdPart;
|
|
1025
881
|
let itemType;
|
|
1026
|
-
if (input.startsWith(
|
|
1027
|
-
itemIdPart = input.replace(
|
|
882
|
+
if (input.startsWith('bptman-')) {
|
|
883
|
+
itemIdPart = input.replace('bptman-', '');
|
|
1028
884
|
itemType = 'businessProcessTypes';
|
|
1029
885
|
}
|
|
1030
|
-
if (input.startsWith(
|
|
1031
|
-
itemIdPart = input.replace(
|
|
886
|
+
if (input.startsWith('catman-')) {
|
|
887
|
+
itemIdPart = input.replace('catman-', '');
|
|
1032
888
|
itemType = 'taxonomies';
|
|
1033
889
|
}
|
|
1034
890
|
if (!itemIdPart || !itemType)
|
|
@@ -1050,9 +906,6 @@ const tryParseItemUri = (backendId) => {
|
|
|
1050
906
|
const virtualUri = VirtualUri.parse(backendId);
|
|
1051
907
|
if (virtualUri)
|
|
1052
908
|
return virtualUri;
|
|
1053
|
-
const tmUri = TmUri.parse(backendId);
|
|
1054
|
-
if (tmUri)
|
|
1055
|
-
return tmUri;
|
|
1056
909
|
return undefined;
|
|
1057
910
|
};
|
|
1058
911
|
const parseItemUri = (backendId) => {
|
|
@@ -1277,12 +1130,6 @@ class IdentifiableObject {
|
|
|
1277
1130
|
writable: true,
|
|
1278
1131
|
value: void 0
|
|
1279
1132
|
});
|
|
1280
|
-
Object.defineProperty(this, "_listInfo", {
|
|
1281
|
-
enumerable: true,
|
|
1282
|
-
configurable: true,
|
|
1283
|
-
writable: true,
|
|
1284
|
-
value: void 0
|
|
1285
|
-
});
|
|
1286
1133
|
Object.defineProperty(this, "_basicVersionInfo", {
|
|
1287
1134
|
enumerable: true,
|
|
1288
1135
|
configurable: true,
|
|
@@ -1365,7 +1212,6 @@ class IdentifiableObject {
|
|
|
1365
1212
|
this._applicableActions = identifiableObjectArgs.applicableActions;
|
|
1366
1213
|
this._listLinks = identifiableObjectArgs.listLinks;
|
|
1367
1214
|
this._securityDescriptor = identifiableObjectArgs.securityDescriptor;
|
|
1368
|
-
this._listInfo = identifiableObjectArgs.listInfo;
|
|
1369
1215
|
}
|
|
1370
1216
|
/**
|
|
1371
1217
|
* Identifier (URI) of the object.
|
|
@@ -1415,18 +1261,9 @@ class IdentifiableObject {
|
|
|
1415
1261
|
get extensionProperties() {
|
|
1416
1262
|
return this._backendModel.ExtensionProperties;
|
|
1417
1263
|
}
|
|
1418
|
-
/**
|
|
1419
|
-
* Collection of the hateoas links.
|
|
1420
|
-
*/
|
|
1421
1264
|
get listLinks() {
|
|
1422
1265
|
return this._listLinks;
|
|
1423
1266
|
}
|
|
1424
|
-
/**
|
|
1425
|
-
* List information of the object.
|
|
1426
|
-
*/
|
|
1427
|
-
get listInfo() {
|
|
1428
|
-
return this._listInfo;
|
|
1429
|
-
}
|
|
1430
1267
|
get securityDescriptor() {
|
|
1431
1268
|
return this._securityDescriptor;
|
|
1432
1269
|
}
|
|
@@ -1487,42 +1324,6 @@ class LoadInfo {
|
|
|
1487
1324
|
}
|
|
1488
1325
|
}
|
|
1489
1326
|
|
|
1490
|
-
class WhereUsedListInfo {
|
|
1491
|
-
constructor({ backendModel, commentToken }) {
|
|
1492
|
-
Object.defineProperty(this, "_backendModel", {
|
|
1493
|
-
enumerable: true,
|
|
1494
|
-
configurable: true,
|
|
1495
|
-
writable: true,
|
|
1496
|
-
value: void 0
|
|
1497
|
-
});
|
|
1498
|
-
Object.defineProperty(this, "_commentToken", {
|
|
1499
|
-
enumerable: true,
|
|
1500
|
-
configurable: true,
|
|
1501
|
-
writable: true,
|
|
1502
|
-
value: void 0
|
|
1503
|
-
});
|
|
1504
|
-
Object.defineProperty(this, "getInternalModel", {
|
|
1505
|
-
enumerable: true,
|
|
1506
|
-
configurable: true,
|
|
1507
|
-
writable: true,
|
|
1508
|
-
value: () => {
|
|
1509
|
-
return this._backendModel;
|
|
1510
|
-
}
|
|
1511
|
-
});
|
|
1512
|
-
this._backendModel = backendModel;
|
|
1513
|
-
this._commentToken = commentToken;
|
|
1514
|
-
}
|
|
1515
|
-
get versions() {
|
|
1516
|
-
return this._backendModel.Versions || [];
|
|
1517
|
-
}
|
|
1518
|
-
get comment() {
|
|
1519
|
-
return this._backendModel.Comment;
|
|
1520
|
-
}
|
|
1521
|
-
get hasOnlyOldVersions() {
|
|
1522
|
-
return this._commentToken === 'onlyOldVersions';
|
|
1523
|
-
}
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
1327
|
/**
|
|
1527
1328
|
* Abstract base class for the data of all system-wide objects.
|
|
1528
1329
|
*/
|
|
@@ -2134,51 +1935,20 @@ class Batch extends SystemWideObject {
|
|
|
2134
1935
|
}
|
|
2135
1936
|
}
|
|
2136
1937
|
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
get url() {
|
|
2150
|
-
return this._backendModel.url;
|
|
2151
|
-
}
|
|
2152
|
-
get statusCode() {
|
|
2153
|
-
return this._backendModel.status;
|
|
2154
|
-
}
|
|
2155
|
-
get statusText() {
|
|
2156
|
-
return this._backendModel.statusText;
|
|
2157
|
-
}
|
|
2158
|
-
get request() {
|
|
2159
|
-
return this._backendModel.request;
|
|
2160
|
-
}
|
|
2161
|
-
get body() {
|
|
2162
|
-
return this._backendModel.body;
|
|
2163
|
-
}
|
|
2164
|
-
getInternalModel() {
|
|
2165
|
-
return this._backendModel;
|
|
2166
|
-
}
|
|
2167
|
-
getMessage(backendModelBody) {
|
|
2168
|
-
// IIS or Windows handled errors, before reaching webapp Error handler
|
|
2169
|
-
if (typeof backendModelBody === 'string')
|
|
2170
|
-
return backendModelBody;
|
|
2171
|
-
// Server error message
|
|
2172
|
-
if (backendModelBody.Message) {
|
|
2173
|
-
return backendModelBody.Message;
|
|
2174
|
-
}
|
|
2175
|
-
// JavaScript runtime error message
|
|
2176
|
-
if (backendModelBody.message) {
|
|
2177
|
-
return backendModelBody.message;
|
|
2178
|
-
}
|
|
2179
|
-
return undefined;
|
|
1938
|
+
const mapBatchOperationState = (backendModel) => {
|
|
1939
|
+
switch (backendModel) {
|
|
1940
|
+
case BatchOperationState.NOT_STARTED:
|
|
1941
|
+
return 'notStarted';
|
|
1942
|
+
case BatchOperationState.SUCCESS:
|
|
1943
|
+
return 'success';
|
|
1944
|
+
case BatchOperationState.WARNING:
|
|
1945
|
+
return 'warning';
|
|
1946
|
+
case BatchOperationState.ERROR:
|
|
1947
|
+
return 'error';
|
|
1948
|
+
case BatchOperationState.UNKNOWN_BY_CLIENT:
|
|
1949
|
+
return 'unknownByClient';
|
|
2180
1950
|
}
|
|
2181
|
-
}
|
|
1951
|
+
};
|
|
2182
1952
|
|
|
2183
1953
|
/**
|
|
2184
1954
|
* Represents the data of a validation result which is returned when validating an item.
|
|
@@ -2268,64 +2038,6 @@ class ValidationWarning extends ValidationResult {
|
|
|
2268
2038
|
}
|
|
2269
2039
|
}
|
|
2270
2040
|
|
|
2271
|
-
class ValidationApiError extends ApiError {
|
|
2272
|
-
constructor(backendModel) {
|
|
2273
|
-
var _a, _b;
|
|
2274
|
-
super(backendModel);
|
|
2275
|
-
Object.defineProperty(this, "_backendModel", {
|
|
2276
|
-
enumerable: true,
|
|
2277
|
-
configurable: true,
|
|
2278
|
-
writable: true,
|
|
2279
|
-
value: void 0
|
|
2280
|
-
});
|
|
2281
|
-
Object.defineProperty(this, "_validationWarnings", {
|
|
2282
|
-
enumerable: true,
|
|
2283
|
-
configurable: true,
|
|
2284
|
-
writable: true,
|
|
2285
|
-
value: void 0
|
|
2286
|
-
});
|
|
2287
|
-
Object.defineProperty(this, "_validationErrors", {
|
|
2288
|
-
enumerable: true,
|
|
2289
|
-
configurable: true,
|
|
2290
|
-
writable: true,
|
|
2291
|
-
value: void 0
|
|
2292
|
-
});
|
|
2293
|
-
this._backendModel = backendModel;
|
|
2294
|
-
this._validationErrors = ((_a = backendModel.body.Data.ValidationErrors) === null || _a === void 0 ? void 0 : _a.map(e => new ValidationError(e))) || [];
|
|
2295
|
-
this._validationWarnings = ((_b = backendModel.body.Data.ValidationWarnings) === null || _b === void 0 ? void 0 : _b.map(w => new ValidationWarning(w))) || [];
|
|
2296
|
-
}
|
|
2297
|
-
get validationWarnings() {
|
|
2298
|
-
return this._validationWarnings;
|
|
2299
|
-
}
|
|
2300
|
-
get validationErrors() {
|
|
2301
|
-
return this._validationErrors;
|
|
2302
|
-
}
|
|
2303
|
-
get hasErrors() {
|
|
2304
|
-
return this._validationErrors.length > 0;
|
|
2305
|
-
}
|
|
2306
|
-
get hasWarnings() {
|
|
2307
|
-
return this._validationWarnings.length > 0;
|
|
2308
|
-
}
|
|
2309
|
-
getInternalModel() {
|
|
2310
|
-
return this._backendModel;
|
|
2311
|
-
}
|
|
2312
|
-
}
|
|
2313
|
-
|
|
2314
|
-
const mapBatchOperationState = (backendModel) => {
|
|
2315
|
-
switch (backendModel) {
|
|
2316
|
-
case BatchOperationState.NOT_STARTED:
|
|
2317
|
-
return 'notStarted';
|
|
2318
|
-
case BatchOperationState.SUCCESS:
|
|
2319
|
-
return 'success';
|
|
2320
|
-
case BatchOperationState.WARNING:
|
|
2321
|
-
return 'warning';
|
|
2322
|
-
case BatchOperationState.ERROR:
|
|
2323
|
-
return 'error';
|
|
2324
|
-
case BatchOperationState.UNKNOWN_BY_CLIENT:
|
|
2325
|
-
return 'unknownByClient';
|
|
2326
|
-
}
|
|
2327
|
-
};
|
|
2328
|
-
|
|
2329
2041
|
class BatchOperation {
|
|
2330
2042
|
constructor(backendModel, subject) {
|
|
2331
2043
|
var _a, _b;
|
|
@@ -2393,10 +2105,6 @@ class BatchOperation {
|
|
|
2393
2105
|
* Error code in case of error during operation (warning, error).
|
|
2394
2106
|
*/
|
|
2395
2107
|
get errorCode() {
|
|
2396
|
-
if (this._backendModel.ErrorCode === undefined)
|
|
2397
|
-
return undefined;
|
|
2398
|
-
if (this._backendModel.ErrorCode === '')
|
|
2399
|
-
return undefined;
|
|
2400
2108
|
return this._backendModel.ErrorCode;
|
|
2401
2109
|
}
|
|
2402
2110
|
/**
|
|
@@ -2795,31 +2503,6 @@ const mapDate = (rawDate) => {
|
|
|
2795
2503
|
return date;
|
|
2796
2504
|
};
|
|
2797
2505
|
|
|
2798
|
-
const contentMapping = (mappingRegistry, contentObject) => {
|
|
2799
|
-
if (typeof contentObject !== 'object' || contentObject === null) {
|
|
2800
|
-
throw new Error('Please make sure that content property is of type `Record<string, any>`');
|
|
2801
|
-
}
|
|
2802
|
-
const mappedContent = {};
|
|
2803
|
-
for (const key in contentObject) {
|
|
2804
|
-
const value = contentObject[key];
|
|
2805
|
-
if (typeof value === 'object' && value !== null) {
|
|
2806
|
-
// Map to a Model if object has `$type`
|
|
2807
|
-
if ('$type' in value) {
|
|
2808
|
-
mappedContent[key] = mappingRegistry.map(value);
|
|
2809
|
-
}
|
|
2810
|
-
if (mappedContent[key] === undefined) {
|
|
2811
|
-
// Otherwise it is just another level of properties and we should go deeper (Or such type is not in our mapping registry, e.g. EmbeddedFieldDefinition)
|
|
2812
|
-
mappedContent[key] = contentMapping(mappingRegistry, value);
|
|
2813
|
-
}
|
|
2814
|
-
}
|
|
2815
|
-
else {
|
|
2816
|
-
// Value is a primitive (e.g. string, number, boolean)
|
|
2817
|
-
mappedContent[key] = value;
|
|
2818
|
-
}
|
|
2819
|
-
}
|
|
2820
|
-
return mappedContent;
|
|
2821
|
-
};
|
|
2822
|
-
|
|
2823
2506
|
const mapBasicVersionInfoConstructorArgs = (mappingRegistry, backendModel) => {
|
|
2824
2507
|
const creationDate = backendModel.CreationDate ? mapDate(backendModel.CreationDate) : undefined;
|
|
2825
2508
|
const revisionDate = backendModel.RevisionDate ? mapDate(backendModel.RevisionDate) : undefined;
|
|
@@ -2845,20 +2528,6 @@ const mapErrorType = (backendErrorType) => {
|
|
|
2845
2528
|
return 'unknownByClient';
|
|
2846
2529
|
}
|
|
2847
2530
|
};
|
|
2848
|
-
const mapErrorTypeToBackend = (errorType) => {
|
|
2849
|
-
switch (errorType) {
|
|
2850
|
-
case 'none':
|
|
2851
|
-
return ErrorType.NONE;
|
|
2852
|
-
case 'error':
|
|
2853
|
-
return ErrorType.ERROR;
|
|
2854
|
-
case 'security':
|
|
2855
|
-
return ErrorType.SECURITY_ERROR;
|
|
2856
|
-
case 'unknownByClient':
|
|
2857
|
-
return ErrorType.UNKNOWN_BY_CLIENT;
|
|
2858
|
-
case undefined:
|
|
2859
|
-
return undefined;
|
|
2860
|
-
}
|
|
2861
|
-
};
|
|
2862
2531
|
|
|
2863
2532
|
const mapIdentifiableObjectConstructorArgs = (mappingRegistry, backendModel) => {
|
|
2864
2533
|
var _a, _b;
|
|
@@ -2872,7 +2541,6 @@ const mapIdentifiableObjectConstructorArgs = (mappingRegistry, backendModel) =>
|
|
|
2872
2541
|
const securityDescriptor = backendModel.SecurityDescriptor
|
|
2873
2542
|
? mappingRegistry.map(backendModel.SecurityDescriptor)
|
|
2874
2543
|
: undefined;
|
|
2875
|
-
const listInfo = backendModel.ListInfo ? mappingRegistry.map(backendModel.ListInfo) : undefined;
|
|
2876
2544
|
return {
|
|
2877
2545
|
applicableActions,
|
|
2878
2546
|
basicVersionInfo,
|
|
@@ -2880,7 +2548,6 @@ const mapIdentifiableObjectConstructorArgs = (mappingRegistry, backendModel) =>
|
|
|
2880
2548
|
listLinks,
|
|
2881
2549
|
loadInfo,
|
|
2882
2550
|
securityDescriptor,
|
|
2883
|
-
listInfo,
|
|
2884
2551
|
};
|
|
2885
2552
|
};
|
|
2886
2553
|
|
|
@@ -2894,16 +2561,6 @@ const mapLoadInfoState = (backendLoadInfoState) => {
|
|
|
2894
2561
|
return 'unknownByClient';
|
|
2895
2562
|
}
|
|
2896
2563
|
};
|
|
2897
|
-
const mapLoadInfoStateToBackend = (loadInfoState) => {
|
|
2898
|
-
switch (loadInfoState) {
|
|
2899
|
-
case 'fullyLoaded':
|
|
2900
|
-
return LoadInfoState.FULLY_LOADED;
|
|
2901
|
-
case 'partiallyLoaded':
|
|
2902
|
-
return LoadInfoState.PARTIALLY_LOADED;
|
|
2903
|
-
case 'unknownByClient':
|
|
2904
|
-
return LoadInfoState.UNKNOWN_BY_CLIENT;
|
|
2905
|
-
}
|
|
2906
|
-
};
|
|
2907
2564
|
|
|
2908
2565
|
const mapLoadInfoConstructorArgs = (mappingRegistry, backendModel) => {
|
|
2909
2566
|
const errorType = backendModel.ErrorType ? mapErrorType(backendModel.ErrorType) : undefined;
|
|
@@ -2918,33 +2575,6 @@ const loadInfoMapping = {
|
|
|
2918
2575
|
},
|
|
2919
2576
|
};
|
|
2920
2577
|
|
|
2921
|
-
const mapWhereUsedCommentToken = (backendModel) => {
|
|
2922
|
-
switch (backendModel) {
|
|
2923
|
-
case WhereUsedCommentToken.LOCAL_COPY:
|
|
2924
|
-
return 'localCopy';
|
|
2925
|
-
case WhereUsedCommentToken.ONLY_CHECKED_OUT_VERSION:
|
|
2926
|
-
return 'onlyCheckedOutVersion';
|
|
2927
|
-
case WhereUsedCommentToken.ONLY_OLD_VERSIONS:
|
|
2928
|
-
return 'onlyOldVersions';
|
|
2929
|
-
case WhereUsedCommentToken.PARENT_ITEM:
|
|
2930
|
-
return 'parentItem';
|
|
2931
|
-
case WhereUsedCommentToken.UNKNOWN_BY_CLIENT:
|
|
2932
|
-
return 'unknownByClient';
|
|
2933
|
-
}
|
|
2934
|
-
};
|
|
2935
|
-
|
|
2936
|
-
const mapWhereUsedListInfoConstructorArgs = (mappingRegistry, backendModel) => {
|
|
2937
|
-
const commentToken = backendModel.CommentToken ? mapWhereUsedCommentToken(backendModel.CommentToken) : undefined;
|
|
2938
|
-
return { commentToken };
|
|
2939
|
-
};
|
|
2940
|
-
const whereUsedListInfoMapping = {
|
|
2941
|
-
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'WhereUsedListInfo',
|
|
2942
|
-
mapper: (mappingRegistry, backendModel) => {
|
|
2943
|
-
const { commentToken } = mapWhereUsedListInfoConstructorArgs(mappingRegistry, backendModel);
|
|
2944
|
-
return new WhereUsedListInfo({ backendModel, commentToken });
|
|
2945
|
-
},
|
|
2946
|
-
};
|
|
2947
|
-
|
|
2948
2578
|
const mapSystemWideObjectConstructorArgs = mapIdentifiableObjectConstructorArgs;
|
|
2949
2579
|
|
|
2950
2580
|
const mapApprovalStatusConstructorArgs = mapSystemWideObjectConstructorArgs;
|
|
@@ -2973,7 +2603,7 @@ const hateoasLinkMapping = {
|
|
|
2973
2603
|
const mapLinkConstructorArgs = (mappingRegistry, backendModel) => {
|
|
2974
2604
|
let idRef = backendModel && tryParseItemUri(backendModel.IdRef);
|
|
2975
2605
|
let isDynamicTarget = false;
|
|
2976
|
-
if ((idRef
|
|
2606
|
+
if ((idRef === null || idRef === void 0 ? void 0 : idRef.isDynamic) && (idRef instanceof TcmUri || idRef instanceof EclUri)) {
|
|
2977
2607
|
idRef = idRef.getVersionlessUri();
|
|
2978
2608
|
isDynamicTarget = true;
|
|
2979
2609
|
}
|
|
@@ -3144,7 +2774,7 @@ const mapPublishPriorityToBackend = (model) => {
|
|
|
3144
2774
|
const targetTypeMapping = {
|
|
3145
2775
|
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'TargetType',
|
|
3146
2776
|
mapper: (mappingRegistry, backendModel) => {
|
|
3147
|
-
const { applicableActions, basicVersionInfo, id, listLinks, loadInfo, securityDescriptor
|
|
2777
|
+
const { applicableActions, basicVersionInfo, id, listLinks, loadInfo, securityDescriptor } = mapSystemWideObjectConstructorArgs(mappingRegistry, backendModel);
|
|
3148
2778
|
const accessControlList = backendModel.AccessControlList
|
|
3149
2779
|
? mappingRegistry.map(backendModel.AccessControlList)
|
|
3150
2780
|
: undefined;
|
|
@@ -3171,7 +2801,6 @@ const targetTypeMapping = {
|
|
|
3171
2801
|
listLinks,
|
|
3172
2802
|
loadInfo,
|
|
3173
2803
|
securityDescriptor,
|
|
3174
|
-
listInfo,
|
|
3175
2804
|
});
|
|
3176
2805
|
},
|
|
3177
2806
|
};
|
|
@@ -3757,9 +3386,6 @@ class LockInfo {
|
|
|
3757
3386
|
get lockUser() {
|
|
3758
3387
|
return this._lockUser;
|
|
3759
3388
|
}
|
|
3760
|
-
hasLockType(lockType) {
|
|
3761
|
-
return this._lockType.includes(lockType);
|
|
3762
|
-
}
|
|
3763
3389
|
}
|
|
3764
3390
|
|
|
3765
3391
|
/**
|
|
@@ -3767,7 +3393,7 @@ class LockInfo {
|
|
|
3767
3393
|
*/
|
|
3768
3394
|
class RepositoryLocalObject extends IdentifiableObject {
|
|
3769
3395
|
constructor(_a) {
|
|
3770
|
-
var { backendModel, blueprintInfo, isLocked, limitedVersionInfo, locationInfo, lockInfo,
|
|
3396
|
+
var { backendModel, blueprintInfo, isLocked, limitedVersionInfo, locationInfo, lockInfo, metadataSchema } = _a, identifiableObjectArgs = __rest(_a, ["backendModel", "blueprintInfo", "isLocked", "limitedVersionInfo", "locationInfo", "lockInfo", "metadataSchema"]);
|
|
3771
3397
|
super(Object.assign({ backendModel }, identifiableObjectArgs));
|
|
3772
3398
|
Object.defineProperty(this, "_limitedVersionInfo", {
|
|
3773
3399
|
enumerable: true,
|
|
@@ -3799,12 +3425,6 @@ class RepositoryLocalObject extends IdentifiableObject {
|
|
|
3799
3425
|
writable: true,
|
|
3800
3426
|
value: void 0
|
|
3801
3427
|
});
|
|
3802
|
-
Object.defineProperty(this, "_metadata", {
|
|
3803
|
-
enumerable: true,
|
|
3804
|
-
configurable: true,
|
|
3805
|
-
writable: true,
|
|
3806
|
-
value: void 0
|
|
3807
|
-
});
|
|
3808
3428
|
Object.defineProperty(this, "_isLocked", {
|
|
3809
3429
|
enumerable: true,
|
|
3810
3430
|
configurable: true,
|
|
@@ -3840,7 +3460,6 @@ class RepositoryLocalObject extends IdentifiableObject {
|
|
|
3840
3460
|
}
|
|
3841
3461
|
});
|
|
3842
3462
|
this._limitedVersionInfo = limitedVersionInfo;
|
|
3843
|
-
this._metadata = metadata;
|
|
3844
3463
|
this._metadataSchema = metadataSchema;
|
|
3845
3464
|
this._blueprintInfo = blueprintInfo;
|
|
3846
3465
|
this._locationInfo = locationInfo;
|
|
@@ -3869,7 +3488,7 @@ class RepositoryLocalObject extends IdentifiableObject {
|
|
|
3869
3488
|
return this._lockInfo;
|
|
3870
3489
|
}
|
|
3871
3490
|
get metadata() {
|
|
3872
|
-
return this.
|
|
3491
|
+
return this._backendModel.Metadata;
|
|
3873
3492
|
}
|
|
3874
3493
|
get metadataSchema() {
|
|
3875
3494
|
return this._metadataSchema;
|
|
@@ -4037,9 +3656,6 @@ class VersionedItem extends RepositoryLocalObject {
|
|
|
4037
3656
|
this._fullVersionInfo.version === this._fullVersionInfo.lastVersion &&
|
|
4038
3657
|
this._fullVersionInfo.revision === 0);
|
|
4039
3658
|
}
|
|
4040
|
-
get isHistoricVersion() {
|
|
4041
|
-
return !!this._fullVersionInfo && this._fullVersionInfo.version !== this._fullVersionInfo.lastVersion;
|
|
4042
|
-
}
|
|
4043
3659
|
}
|
|
4044
3660
|
|
|
4045
3661
|
/**
|
|
@@ -4130,19 +3746,11 @@ class ComponentBase extends VersionedItem {
|
|
|
4130
3746
|
* Represents the data of a regular Component: content and metadata fields.
|
|
4131
3747
|
*/
|
|
4132
3748
|
class Component extends ComponentBase {
|
|
4133
|
-
constructor(
|
|
4134
|
-
|
|
4135
|
-
super(Object.assign({ backendModel }, componentBaseArgs));
|
|
4136
|
-
Object.defineProperty(this, "_content", {
|
|
4137
|
-
enumerable: true,
|
|
4138
|
-
configurable: true,
|
|
4139
|
-
writable: true,
|
|
4140
|
-
value: void 0
|
|
4141
|
-
});
|
|
4142
|
-
this._content = content;
|
|
3749
|
+
constructor(componentArgs) {
|
|
3750
|
+
super(componentArgs);
|
|
4143
3751
|
}
|
|
4144
3752
|
get content() {
|
|
4145
|
-
return this.
|
|
3753
|
+
return this._backendModel.Content;
|
|
4146
3754
|
}
|
|
4147
3755
|
}
|
|
4148
3756
|
|
|
@@ -4375,14 +3983,12 @@ const mapRepositoryLocalObjectConstructorArgs = (mappingRegistry, backendModel)
|
|
|
4375
3983
|
: undefined;
|
|
4376
3984
|
const lockInfo = backendModel.LockInfo ? mappingRegistry.map(backendModel.LockInfo) : undefined;
|
|
4377
3985
|
const isLocked = !!(lockInfo === null || lockInfo === void 0 ? void 0 : lockInfo.lockType.length) && !(lockInfo === null || lockInfo === void 0 ? void 0 : lockInfo.lockType.includes('none'));
|
|
4378
|
-
const metadata = backendModel.Metadata ? contentMapping(mappingRegistry, backendModel.Metadata) : undefined;
|
|
4379
3986
|
return Object.assign(Object.assign({}, identifiableObjectConstructorArgs), { blueprintInfo,
|
|
4380
3987
|
isLocked,
|
|
4381
3988
|
limitedVersionInfo,
|
|
4382
3989
|
locationInfo,
|
|
4383
3990
|
lockInfo,
|
|
4384
|
-
metadataSchema
|
|
4385
|
-
metadata });
|
|
3991
|
+
metadataSchema });
|
|
4386
3992
|
};
|
|
4387
3993
|
|
|
4388
3994
|
const mapRloItemTypeToBackend = (rloItemType) => {
|
|
@@ -4413,12 +4019,6 @@ const mapRloItemTypeToBackend = (rloItemType) => {
|
|
|
4413
4019
|
return RLOItemType.VIRTUAL_FOLDER;
|
|
4414
4020
|
case 'unknownByClient':
|
|
4415
4021
|
return RLOItemType.UNKNOWN_BY_CLIENT;
|
|
4416
|
-
case 'business-process-type':
|
|
4417
|
-
return RLOItemType.BUSINESS_PROCESS_TYPE;
|
|
4418
|
-
case 'process-definition':
|
|
4419
|
-
return RLOItemType.PROCESS_DEFINITION;
|
|
4420
|
-
case 'all':
|
|
4421
|
-
return RLOItemType.ALL;
|
|
4422
4022
|
}
|
|
4423
4023
|
};
|
|
4424
4024
|
|
|
@@ -4432,9 +4032,9 @@ const mapVersionedItemConstructorArgs = (mappingRegistry, backendModel) => {
|
|
|
4432
4032
|
: undefined;
|
|
4433
4033
|
let isDynamic = false;
|
|
4434
4034
|
// If id of an item passed is dynamic, sets versionless uri to _id prop instead.
|
|
4435
|
-
if (
|
|
4436
|
-
repositoryLocalObjectConstructorArgs.id instanceof
|
|
4437
|
-
|
|
4035
|
+
if (repositoryLocalObjectConstructorArgs.id.isDynamic &&
|
|
4036
|
+
(repositoryLocalObjectConstructorArgs.id instanceof TcmUri ||
|
|
4037
|
+
repositoryLocalObjectConstructorArgs.id instanceof EclUri)) {
|
|
4438
4038
|
repositoryLocalObjectConstructorArgs.id = repositoryLocalObjectConstructorArgs.id.getVersionlessUri();
|
|
4439
4039
|
isDynamic = true;
|
|
4440
4040
|
}
|
|
@@ -4494,13 +4094,11 @@ const mapComponentBaseConstructorArgs = (mappingRegistry, backendModel) => {
|
|
|
4494
4094
|
};
|
|
4495
4095
|
|
|
4496
4096
|
const mapComponentConstructorArgs = mapComponentBaseConstructorArgs;
|
|
4497
|
-
// Maps multimedia component as a fallback
|
|
4498
4097
|
const componentMapping = {
|
|
4499
|
-
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'Component'
|
|
4098
|
+
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'Component' &&
|
|
4099
|
+
((backendModel === null || backendModel === void 0 ? void 0 : backendModel.ComponentType) === ComponentType.NORMAL || (backendModel === null || backendModel === void 0 ? void 0 : backendModel.ComponentType) === ComponentType.WIDGET),
|
|
4500
4100
|
mapper: (mappingRegistry, backendModel) => {
|
|
4501
|
-
|
|
4502
|
-
return new Component(Object.assign(Object.assign({}, mapComponentConstructorArgs(mappingRegistry, backendModel)), { backendModel,
|
|
4503
|
-
content }));
|
|
4101
|
+
return new Component(Object.assign(Object.assign({}, mapComponentConstructorArgs(mappingRegistry, backendModel)), { backendModel }));
|
|
4504
4102
|
},
|
|
4505
4103
|
};
|
|
4506
4104
|
|
|
@@ -4543,15 +4141,6 @@ class ItemFieldDefinition {
|
|
|
4543
4141
|
get extensionXml() {
|
|
4544
4142
|
return this._backendModel.ExtensionXml;
|
|
4545
4143
|
}
|
|
4546
|
-
/**
|
|
4547
|
-
* Whether this field is localizable (default) or not.
|
|
4548
|
-
*/
|
|
4549
|
-
get isLocalizable() {
|
|
4550
|
-
if (this._backendModel.IsLocalizable !== undefined) {
|
|
4551
|
-
return this._backendModel.IsLocalizable;
|
|
4552
|
-
}
|
|
4553
|
-
return true;
|
|
4554
|
-
}
|
|
4555
4144
|
/**
|
|
4556
4145
|
* Maximum occurrence of the field.
|
|
4557
4146
|
*
|
|
@@ -7458,30 +7047,6 @@ const mapSchemaPurpose = (backendModel) => {
|
|
|
7458
7047
|
return 'unknownByClient';
|
|
7459
7048
|
}
|
|
7460
7049
|
};
|
|
7461
|
-
const mapSchemaPurposeBackend = (backendModel) => {
|
|
7462
|
-
switch (backendModel) {
|
|
7463
|
-
case 'bundle':
|
|
7464
|
-
return SchemaPurpose.BUNDLE;
|
|
7465
|
-
case 'component':
|
|
7466
|
-
return SchemaPurpose.COMPONENT;
|
|
7467
|
-
case 'embedded':
|
|
7468
|
-
return SchemaPurpose.EMBEDDED;
|
|
7469
|
-
case 'metadata':
|
|
7470
|
-
return SchemaPurpose.METADATA;
|
|
7471
|
-
case 'multimedia':
|
|
7472
|
-
return SchemaPurpose.MULTIMEDIA;
|
|
7473
|
-
case 'protocol':
|
|
7474
|
-
return SchemaPurpose.PROTOCOL;
|
|
7475
|
-
case 'region':
|
|
7476
|
-
return SchemaPurpose.REGION;
|
|
7477
|
-
case 'templateParameters':
|
|
7478
|
-
return SchemaPurpose.TEMPLATE_PARAMETERS;
|
|
7479
|
-
case 'virtualFolderType':
|
|
7480
|
-
return SchemaPurpose.VIRTUAL_FOLDER_TYPE;
|
|
7481
|
-
case 'unknownByClient':
|
|
7482
|
-
return SchemaPurpose.UNKNOWN_BY_CLIENT;
|
|
7483
|
-
}
|
|
7484
|
-
};
|
|
7485
7050
|
|
|
7486
7051
|
const mapSchemaConstructorArgs = (mappingRegistry, backendModel) => {
|
|
7487
7052
|
const versionedItemConstructorArgs = mapVersionedItemConstructorArgs(mappingRegistry, backendModel);
|
|
@@ -7549,87 +7114,6 @@ const externalVersionInfoMapping = {
|
|
|
7549
7114
|
},
|
|
7550
7115
|
};
|
|
7551
7116
|
|
|
7552
|
-
const registerComponentMappings = (mappingRegistry) => {
|
|
7553
|
-
mappingRegistry.register(multimediaComponentMapping);
|
|
7554
|
-
// Should be last registered as it's used as a fallback.
|
|
7555
|
-
mappingRegistry.register(componentMapping);
|
|
7556
|
-
};
|
|
7557
|
-
|
|
7558
|
-
/**
|
|
7559
|
-
* Node in a dependency graph.
|
|
7560
|
-
*/
|
|
7561
|
-
class DependencyGraphNode {
|
|
7562
|
-
constructor({ backendModel, dependencies, item }) {
|
|
7563
|
-
Object.defineProperty(this, "_backendModel", {
|
|
7564
|
-
enumerable: true,
|
|
7565
|
-
configurable: true,
|
|
7566
|
-
writable: true,
|
|
7567
|
-
value: void 0
|
|
7568
|
-
});
|
|
7569
|
-
Object.defineProperty(this, "_dependencies", {
|
|
7570
|
-
enumerable: true,
|
|
7571
|
-
configurable: true,
|
|
7572
|
-
writable: true,
|
|
7573
|
-
value: void 0
|
|
7574
|
-
});
|
|
7575
|
-
Object.defineProperty(this, "_item", {
|
|
7576
|
-
enumerable: true,
|
|
7577
|
-
configurable: true,
|
|
7578
|
-
writable: true,
|
|
7579
|
-
value: void 0
|
|
7580
|
-
});
|
|
7581
|
-
Object.defineProperty(this, "getInternalModel", {
|
|
7582
|
-
enumerable: true,
|
|
7583
|
-
configurable: true,
|
|
7584
|
-
writable: true,
|
|
7585
|
-
value: () => {
|
|
7586
|
-
return this._backendModel;
|
|
7587
|
-
}
|
|
7588
|
-
});
|
|
7589
|
-
this._backendModel = backendModel;
|
|
7590
|
-
this._dependencies = dependencies;
|
|
7591
|
-
this._item = item;
|
|
7592
|
-
}
|
|
7593
|
-
/**
|
|
7594
|
-
* The list of dependencies that the graph node has.
|
|
7595
|
-
*/
|
|
7596
|
-
get dependencies() {
|
|
7597
|
-
return this._dependencies;
|
|
7598
|
-
}
|
|
7599
|
-
/**
|
|
7600
|
-
* Indicates whether the graph node exists in the given context Repository.
|
|
7601
|
-
*/
|
|
7602
|
-
get existsInContext() {
|
|
7603
|
-
return this._backendModel.ExistsInContext || false;
|
|
7604
|
-
}
|
|
7605
|
-
/**
|
|
7606
|
-
* Indicates whether there are more (transitive) dependencies than returned for the graph node.
|
|
7607
|
-
*/
|
|
7608
|
-
get hasMore() {
|
|
7609
|
-
return this._backendModel.HasMore || false;
|
|
7610
|
-
}
|
|
7611
|
-
/**
|
|
7612
|
-
* The item that the graph node represents.
|
|
7613
|
-
*/
|
|
7614
|
-
get item() {
|
|
7615
|
-
return this._item;
|
|
7616
|
-
}
|
|
7617
|
-
}
|
|
7618
|
-
|
|
7619
|
-
const mapDependencyGraphNodeConstructorArgs = (mappingRegistry, backendModel) => {
|
|
7620
|
-
var _a;
|
|
7621
|
-
const dependencies = (_a = backendModel.Dependencies) === null || _a === void 0 ? void 0 : _a.map(c => mappingRegistry.map(c)).filter(isDefined);
|
|
7622
|
-
const item = backendModel.Item ? mappingRegistry.map(backendModel.Item) : undefined;
|
|
7623
|
-
return { dependencies, item };
|
|
7624
|
-
};
|
|
7625
|
-
const dependencyGraphNodeMapping = {
|
|
7626
|
-
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'DependencyGraphNode',
|
|
7627
|
-
mapper: (mappingRegistry, backendModel) => {
|
|
7628
|
-
const { dependencies, item } = mapDependencyGraphNodeConstructorArgs(mappingRegistry, backendModel);
|
|
7629
|
-
return new DependencyGraphNode({ backendModel, dependencies, item });
|
|
7630
|
-
},
|
|
7631
|
-
};
|
|
7632
|
-
|
|
7633
7117
|
/**
|
|
7634
7118
|
* Represents the data of a Keyword used to classify items.
|
|
7635
7119
|
*/
|
|
@@ -7784,7 +7268,7 @@ const mapKeywordConstructorArgs = (mappingRegistry, backendModel) => {
|
|
|
7784
7268
|
const keywordMapping = {
|
|
7785
7269
|
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'Keyword',
|
|
7786
7270
|
mapper: (mappingRegistry, backendModel) => {
|
|
7787
|
-
const { applicableActions, basicVersionInfo, blueprintInfo, id, isLocked, limitedVersionInfo, listLinks, loadInfo, locationInfo, lockInfo,
|
|
7271
|
+
const { applicableActions, basicVersionInfo, blueprintInfo, id, isLocked, limitedVersionInfo, listLinks, loadInfo, locationInfo, lockInfo, metadataSchema, parentKeywords, relatedKeywords, securityDescriptor, } = mapKeywordConstructorArgs(mappingRegistry, backendModel);
|
|
7788
7272
|
return new Keyword({
|
|
7789
7273
|
applicableActions,
|
|
7790
7274
|
backendModel,
|
|
@@ -7797,12 +7281,10 @@ const keywordMapping = {
|
|
|
7797
7281
|
loadInfo,
|
|
7798
7282
|
locationInfo,
|
|
7799
7283
|
lockInfo,
|
|
7800
|
-
metadata,
|
|
7801
7284
|
metadataSchema,
|
|
7802
7285
|
parentKeywords,
|
|
7803
7286
|
relatedKeywords,
|
|
7804
7287
|
securityDescriptor,
|
|
7805
|
-
listInfo,
|
|
7806
7288
|
});
|
|
7807
7289
|
},
|
|
7808
7290
|
};
|
|
@@ -7817,7 +7299,7 @@ const mapExternalKeywordConstructorArgs = (mappingRegistry, backendModel) => {
|
|
|
7817
7299
|
const externalKeywordMapping = {
|
|
7818
7300
|
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'ExternalKeyword',
|
|
7819
7301
|
mapper: (mappingRegistry, backendModel) => {
|
|
7820
|
-
const { applicableActions, basicVersionInfo, blueprintInfo, externalMetadataSchemaFields, id, isLocked, limitedVersionInfo, listLinks, loadInfo, locationInfo, lockInfo,
|
|
7302
|
+
const { applicableActions, basicVersionInfo, blueprintInfo, externalMetadataSchemaFields, id, isLocked, limitedVersionInfo, listLinks, loadInfo, locationInfo, lockInfo, metadataSchema, parentKeywords, relatedKeywords, securityDescriptor, } = mapExternalKeywordConstructorArgs(mappingRegistry, backendModel);
|
|
7821
7303
|
return new ExternalKeyword({
|
|
7822
7304
|
applicableActions,
|
|
7823
7305
|
backendModel,
|
|
@@ -7831,12 +7313,10 @@ const externalKeywordMapping = {
|
|
|
7831
7313
|
loadInfo,
|
|
7832
7314
|
locationInfo,
|
|
7833
7315
|
lockInfo,
|
|
7834
|
-
metadata,
|
|
7835
7316
|
metadataSchema,
|
|
7836
7317
|
parentKeywords,
|
|
7837
7318
|
relatedKeywords,
|
|
7838
7319
|
securityDescriptor,
|
|
7839
|
-
listInfo,
|
|
7840
7320
|
});
|
|
7841
7321
|
},
|
|
7842
7322
|
};
|
|
@@ -9605,55 +9085,6 @@ class PublishTransactionsCreationResult {
|
|
|
9605
9085
|
}
|
|
9606
9086
|
}
|
|
9607
9087
|
|
|
9608
|
-
class PublishTransactionListInfo {
|
|
9609
|
-
constructor({ backendModel, publishAction, scheduleTime }) {
|
|
9610
|
-
Object.defineProperty(this, "_backendModel", {
|
|
9611
|
-
enumerable: true,
|
|
9612
|
-
configurable: true,
|
|
9613
|
-
writable: true,
|
|
9614
|
-
value: void 0
|
|
9615
|
-
});
|
|
9616
|
-
Object.defineProperty(this, "_publishAction", {
|
|
9617
|
-
enumerable: true,
|
|
9618
|
-
configurable: true,
|
|
9619
|
-
writable: true,
|
|
9620
|
-
value: void 0
|
|
9621
|
-
});
|
|
9622
|
-
Object.defineProperty(this, "_scheduleTime", {
|
|
9623
|
-
enumerable: true,
|
|
9624
|
-
configurable: true,
|
|
9625
|
-
writable: true,
|
|
9626
|
-
value: void 0
|
|
9627
|
-
});
|
|
9628
|
-
Object.defineProperty(this, "getInternalModel", {
|
|
9629
|
-
enumerable: true,
|
|
9630
|
-
configurable: true,
|
|
9631
|
-
writable: true,
|
|
9632
|
-
value: () => {
|
|
9633
|
-
return this._backendModel;
|
|
9634
|
-
}
|
|
9635
|
-
});
|
|
9636
|
-
this._backendModel = backendModel;
|
|
9637
|
-
this._publishAction = publishAction;
|
|
9638
|
-
this._scheduleTime = scheduleTime;
|
|
9639
|
-
}
|
|
9640
|
-
get itemPath() {
|
|
9641
|
-
return this._backendModel.ItemPath;
|
|
9642
|
-
}
|
|
9643
|
-
get publicationTargetTitle() {
|
|
9644
|
-
return this._backendModel.PublicationTargetTitle;
|
|
9645
|
-
}
|
|
9646
|
-
get publicationTitle() {
|
|
9647
|
-
return this._backendModel.PublicationTitle;
|
|
9648
|
-
}
|
|
9649
|
-
get publishAction() {
|
|
9650
|
-
return this._publishAction;
|
|
9651
|
-
}
|
|
9652
|
-
get scheduleTime() {
|
|
9653
|
-
return this._scheduleTime;
|
|
9654
|
-
}
|
|
9655
|
-
}
|
|
9656
|
-
|
|
9657
9088
|
class PublishUrlInfo {
|
|
9658
9089
|
constructor(backendModel) {
|
|
9659
9090
|
Object.defineProperty(this, "_backendModel", {
|
|
@@ -9967,28 +9398,6 @@ const publishInstructionMapping = {
|
|
|
9967
9398
|
},
|
|
9968
9399
|
};
|
|
9969
9400
|
|
|
9970
|
-
const mapPublishAction = (backendModel) => {
|
|
9971
|
-
switch (backendModel) {
|
|
9972
|
-
case PublishAction.PUBLISH:
|
|
9973
|
-
return 'publish';
|
|
9974
|
-
case PublishAction.UN_PUBLISH:
|
|
9975
|
-
return 'unpublish';
|
|
9976
|
-
}
|
|
9977
|
-
};
|
|
9978
|
-
|
|
9979
|
-
const mapPublishTransactionInfoConstructorArgs = (mappingRegistry, backendModel) => {
|
|
9980
|
-
const publishAction = backendModel.PublishAction ? mapPublishAction(backendModel.PublishAction) : undefined;
|
|
9981
|
-
const scheduleTime = backendModel.ScheduleTime ? new Date(backendModel.ScheduleTime) : undefined;
|
|
9982
|
-
return { publishAction, scheduleTime };
|
|
9983
|
-
};
|
|
9984
|
-
const publishTransactionListInfoMapping = {
|
|
9985
|
-
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'PublishTransactionListInfo',
|
|
9986
|
-
mapper: (mappingRegistry, backendModel) => {
|
|
9987
|
-
const { publishAction, scheduleTime } = mapPublishTransactionInfoConstructorArgs(mappingRegistry, backendModel);
|
|
9988
|
-
return new PublishTransactionListInfo({ backendModel, publishAction, scheduleTime });
|
|
9989
|
-
},
|
|
9990
|
-
};
|
|
9991
|
-
|
|
9992
9401
|
const mapPublishTransactionState = (backendModel) => {
|
|
9993
9402
|
switch (backendModel) {
|
|
9994
9403
|
case PublishTransactionState.SCHEDULED_FOR_PUBLISH:
|
|
@@ -10196,195 +9605,6 @@ const unpublishInstructionMapping = {
|
|
|
10196
9605
|
},
|
|
10197
9606
|
};
|
|
10198
9607
|
|
|
10199
|
-
class SynchronizationAction {
|
|
10200
|
-
constructor({ backendModel, synchronizationActionApplied }) {
|
|
10201
|
-
Object.defineProperty(this, "_synchronizationActionApplied", {
|
|
10202
|
-
enumerable: true,
|
|
10203
|
-
configurable: true,
|
|
10204
|
-
writable: true,
|
|
10205
|
-
value: void 0
|
|
10206
|
-
});
|
|
10207
|
-
Object.defineProperty(this, "hasSynchronizationActionApplied", {
|
|
10208
|
-
enumerable: true,
|
|
10209
|
-
configurable: true,
|
|
10210
|
-
writable: true,
|
|
10211
|
-
value: (synchronizationAction) => {
|
|
10212
|
-
var _a;
|
|
10213
|
-
return !!((_a = this.synchronizationActionApplied) === null || _a === void 0 ? void 0 : _a.includes(synchronizationAction));
|
|
10214
|
-
}
|
|
10215
|
-
});
|
|
10216
|
-
Object.defineProperty(this, "getInternalModel", {
|
|
10217
|
-
enumerable: true,
|
|
10218
|
-
configurable: true,
|
|
10219
|
-
writable: true,
|
|
10220
|
-
value: () => {
|
|
10221
|
-
return this._backendModel;
|
|
10222
|
-
}
|
|
10223
|
-
});
|
|
10224
|
-
this._backendModel = backendModel;
|
|
10225
|
-
this._synchronizationActionApplied = synchronizationActionApplied;
|
|
10226
|
-
}
|
|
10227
|
-
/**
|
|
10228
|
-
* Description/label of the field on which the synchronization operation was applied.
|
|
10229
|
-
* For the following operation the value of this property is null.
|
|
10230
|
-
* "SynchronizeFlags.UpdateRegions"
|
|
10231
|
-
*/
|
|
10232
|
-
get fieldDescription() {
|
|
10233
|
-
return this._backendModel.FieldDescription;
|
|
10234
|
-
}
|
|
10235
|
-
/**
|
|
10236
|
-
* Index of a multivalued field in which the synchronization operation was applied.
|
|
10237
|
-
* For the following operation the value of this property is null, as it is not applicable as these
|
|
10238
|
-
* operations are done on fields not individual field value or the the collection of fields.
|
|
10239
|
-
*/
|
|
10240
|
-
get fieldIndex() {
|
|
10241
|
-
return this._backendModel.FieldIndex;
|
|
10242
|
-
}
|
|
10243
|
-
/**
|
|
10244
|
-
* XML name of the field on which the synchronization operation was applied.
|
|
10245
|
-
* FieldName contains name of the original region that was changed in case "SynchronizeFlags.UpdateRegions" flag is used.
|
|
10246
|
-
*
|
|
10247
|
-
*/
|
|
10248
|
-
get fieldName() {
|
|
10249
|
-
return this._backendModel.FieldName;
|
|
10250
|
-
}
|
|
10251
|
-
/**
|
|
10252
|
-
* The synchronization operation applied.
|
|
10253
|
-
*/
|
|
10254
|
-
get synchronizationActionApplied() {
|
|
10255
|
-
return this._synchronizationActionApplied;
|
|
10256
|
-
}
|
|
10257
|
-
}
|
|
10258
|
-
|
|
10259
|
-
const mapSynchronizeFlags = (backendModel) => {
|
|
10260
|
-
switch (backendModel) {
|
|
10261
|
-
case SynchronizeFlags.BASIC:
|
|
10262
|
-
return 'basic';
|
|
10263
|
-
case SynchronizeFlags.FIX_NAMESPACE:
|
|
10264
|
-
return 'fixNamespace';
|
|
10265
|
-
case SynchronizeFlags.REMOVE_UNKNOWN_FIELDS:
|
|
10266
|
-
return 'removeUnknownFields';
|
|
10267
|
-
case SynchronizeFlags.REMOVE_ADDITIONAL_VALUES:
|
|
10268
|
-
return 'removeAdditionalValues';
|
|
10269
|
-
case SynchronizeFlags.APPLY_DEFAULT_VALUES_FOR_MISSING_MANDATORY_FIELDS:
|
|
10270
|
-
return 'applyDefaultValuesForMissingMandatoryFields';
|
|
10271
|
-
case SynchronizeFlags.APPLY_DEFAULT_VALUES_FOR_MISSING_NON_MANDATORY_FIELDS:
|
|
10272
|
-
return 'applyDefaultValuesForMissingNonMandatoryFields';
|
|
10273
|
-
case SynchronizeFlags.APPLY_FILTER_XSLT_TO_XHTML_FIELDS:
|
|
10274
|
-
return 'applyFilterXsltToXhtmlFields';
|
|
10275
|
-
case SynchronizeFlags.CONVERT_FIELD_TYPE:
|
|
10276
|
-
return 'convertFieldType';
|
|
10277
|
-
case SynchronizeFlags.UPDATE_REGIONS:
|
|
10278
|
-
return 'updateRegions';
|
|
10279
|
-
case SynchronizeFlags.SYNC_NON_LOCALIZABLE_FIELDS:
|
|
10280
|
-
return 'syncNonLocalizableFields';
|
|
10281
|
-
case SynchronizeFlags.SYNC_NON_LOCALIZABLE_REGIONS:
|
|
10282
|
-
return 'syncNonLocalizableRegions';
|
|
10283
|
-
case SynchronizeFlags.ALL:
|
|
10284
|
-
return 'all';
|
|
10285
|
-
case SynchronizeFlags.UNKNOWN_BY_CLIENT:
|
|
10286
|
-
return 'unknownByClient';
|
|
10287
|
-
}
|
|
10288
|
-
};
|
|
10289
|
-
const mapSynchronizeFlagsToBackend = (model) => {
|
|
10290
|
-
switch (model) {
|
|
10291
|
-
case 'basic':
|
|
10292
|
-
return SynchronizeFlags.BASIC;
|
|
10293
|
-
case 'fixNamespace':
|
|
10294
|
-
return SynchronizeFlags.FIX_NAMESPACE;
|
|
10295
|
-
case 'removeUnknownFields':
|
|
10296
|
-
return SynchronizeFlags.REMOVE_UNKNOWN_FIELDS;
|
|
10297
|
-
case 'removeAdditionalValues':
|
|
10298
|
-
return SynchronizeFlags.REMOVE_ADDITIONAL_VALUES;
|
|
10299
|
-
case 'applyDefaultValuesForMissingMandatoryFields':
|
|
10300
|
-
return SynchronizeFlags.APPLY_DEFAULT_VALUES_FOR_MISSING_MANDATORY_FIELDS;
|
|
10301
|
-
case 'applyDefaultValuesForMissingNonMandatoryFields':
|
|
10302
|
-
return SynchronizeFlags.APPLY_DEFAULT_VALUES_FOR_MISSING_NON_MANDATORY_FIELDS;
|
|
10303
|
-
case 'applyFilterXsltToXhtmlFields':
|
|
10304
|
-
return SynchronizeFlags.APPLY_FILTER_XSLT_TO_XHTML_FIELDS;
|
|
10305
|
-
case 'convertFieldType':
|
|
10306
|
-
return SynchronizeFlags.CONVERT_FIELD_TYPE;
|
|
10307
|
-
case 'updateRegions':
|
|
10308
|
-
return SynchronizeFlags.UPDATE_REGIONS;
|
|
10309
|
-
case 'syncNonLocalizableFields':
|
|
10310
|
-
return SynchronizeFlags.SYNC_NON_LOCALIZABLE_FIELDS;
|
|
10311
|
-
case 'syncNonLocalizableRegions':
|
|
10312
|
-
return SynchronizeFlags.SYNC_NON_LOCALIZABLE_REGIONS;
|
|
10313
|
-
case 'all':
|
|
10314
|
-
return SynchronizeFlags.ALL;
|
|
10315
|
-
case 'unknownByClient':
|
|
10316
|
-
return SynchronizeFlags.UNKNOWN_BY_CLIENT;
|
|
10317
|
-
}
|
|
10318
|
-
};
|
|
10319
|
-
|
|
10320
|
-
const synchronizationActionMapping = {
|
|
10321
|
-
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'SynchronizationAction',
|
|
10322
|
-
mapper: (mappingRegistry, backendModel) => {
|
|
10323
|
-
var _a;
|
|
10324
|
-
const synchronizationActionApplied = (_a = backendModel.SynchronizationActionApplied) === null || _a === void 0 ? void 0 : _a.map(p => mapSynchronizeFlags(p));
|
|
10325
|
-
return new SynchronizationAction({
|
|
10326
|
-
backendModel,
|
|
10327
|
-
synchronizationActionApplied,
|
|
10328
|
-
});
|
|
10329
|
-
},
|
|
10330
|
-
};
|
|
10331
|
-
|
|
10332
|
-
class SynchronizationResult {
|
|
10333
|
-
constructor({ backendModel, synchronizationActions, synchronizedItem }) {
|
|
10334
|
-
Object.defineProperty(this, "_synchronizationActions", {
|
|
10335
|
-
enumerable: true,
|
|
10336
|
-
configurable: true,
|
|
10337
|
-
writable: true,
|
|
10338
|
-
value: void 0
|
|
10339
|
-
});
|
|
10340
|
-
Object.defineProperty(this, "_synchronizedItem", {
|
|
10341
|
-
enumerable: true,
|
|
10342
|
-
configurable: true,
|
|
10343
|
-
writable: true,
|
|
10344
|
-
value: void 0
|
|
10345
|
-
});
|
|
10346
|
-
Object.defineProperty(this, "getInternalModel", {
|
|
10347
|
-
enumerable: true,
|
|
10348
|
-
configurable: true,
|
|
10349
|
-
writable: true,
|
|
10350
|
-
value: () => {
|
|
10351
|
-
return this._backendModel;
|
|
10352
|
-
}
|
|
10353
|
-
});
|
|
10354
|
-
this._backendModel = backendModel;
|
|
10355
|
-
this._synchronizationActions = synchronizationActions;
|
|
10356
|
-
this._synchronizedItem = synchronizedItem;
|
|
10357
|
-
}
|
|
10358
|
-
/**
|
|
10359
|
-
* Collection of `SynchronizationAction` objects containing all applied changes.
|
|
10360
|
-
*/
|
|
10361
|
-
get synchronizationActions() {
|
|
10362
|
-
return this._synchronizationActions;
|
|
10363
|
-
}
|
|
10364
|
-
/**
|
|
10365
|
-
* The `IdentifiableObject` with synchronized content and/or metadata.
|
|
10366
|
-
*/
|
|
10367
|
-
get synchronizedItem() {
|
|
10368
|
-
return this._synchronizedItem;
|
|
10369
|
-
}
|
|
10370
|
-
}
|
|
10371
|
-
|
|
10372
|
-
const synchronizationResultMapping = {
|
|
10373
|
-
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'SynchronizationResult',
|
|
10374
|
-
mapper: (mappingRegistry, backendModel) => {
|
|
10375
|
-
var _a;
|
|
10376
|
-
const synchronizationActions = (_a = backendModel.SynchronizationActions) === null || _a === void 0 ? void 0 : _a.map(p => mappingRegistry.map(p)).filter(isDefined);
|
|
10377
|
-
const synchronizedItem = backendModel.SynchronizedItem
|
|
10378
|
-
? mappingRegistry.map(backendModel.SynchronizedItem)
|
|
10379
|
-
: undefined;
|
|
10380
|
-
return new SynchronizationResult({
|
|
10381
|
-
backendModel,
|
|
10382
|
-
synchronizedItem,
|
|
10383
|
-
synchronizationActions,
|
|
10384
|
-
});
|
|
10385
|
-
},
|
|
10386
|
-
};
|
|
10387
|
-
|
|
10388
9608
|
/**
|
|
10389
9609
|
* Represents a system-wide privilege.
|
|
10390
9610
|
*/
|
|
@@ -10469,7 +9689,7 @@ const mapTargetGroupConstructorArgs = mapRepositoryLocalObjectConstructorArgs;
|
|
|
10469
9689
|
const targetGroupMapping = {
|
|
10470
9690
|
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'TargetGroup',
|
|
10471
9691
|
mapper: (mappingRegistry, backendModel) => {
|
|
10472
|
-
const { applicableActions, basicVersionInfo, blueprintInfo, id, isLocked, limitedVersionInfo, listLinks, loadInfo, locationInfo, lockInfo,
|
|
9692
|
+
const { applicableActions, basicVersionInfo, blueprintInfo, id, isLocked, limitedVersionInfo, listLinks, loadInfo, locationInfo, lockInfo, metadataSchema, securityDescriptor, } = mapTargetGroupConstructorArgs(mappingRegistry, backendModel);
|
|
10473
9693
|
return new TargetGroup({
|
|
10474
9694
|
applicableActions,
|
|
10475
9695
|
backendModel,
|
|
@@ -10482,10 +9702,8 @@ const targetGroupMapping = {
|
|
|
10482
9702
|
loadInfo,
|
|
10483
9703
|
locationInfo,
|
|
10484
9704
|
lockInfo,
|
|
10485
|
-
metadata,
|
|
10486
9705
|
metadataSchema,
|
|
10487
9706
|
securityDescriptor,
|
|
10488
|
-
listInfo,
|
|
10489
9707
|
});
|
|
10490
9708
|
},
|
|
10491
9709
|
};
|
|
@@ -12054,410 +11272,120 @@ class TranslationJobItem {
|
|
|
12054
11272
|
* Title of the Tridion item.
|
|
12055
11273
|
*/
|
|
12056
11274
|
get title() {
|
|
12057
|
-
return this._backendModel.Title;
|
|
12058
|
-
}
|
|
12059
|
-
/**
|
|
12060
|
-
* A string that identifies the Tridion Item type.
|
|
12061
|
-
*/
|
|
12062
|
-
get itemTypeWithSubtype() {
|
|
12063
|
-
return this._backendModel.ItemTypeWithSubtype;
|
|
12064
|
-
}
|
|
12065
|
-
/**
|
|
12066
|
-
* Specifies if it is the Item itself, it's child Items or both that should be translated.
|
|
12067
|
-
*/
|
|
12068
|
-
get resolveOptions() {
|
|
12069
|
-
return this._resolveOptions;
|
|
12070
|
-
}
|
|
12071
|
-
}
|
|
12072
|
-
|
|
12073
|
-
class TranslationTargetPublication {
|
|
12074
|
-
constructor({ backendModel, configurationItemUri, idRef }) {
|
|
12075
|
-
Object.defineProperty(this, "_backendModel", {
|
|
12076
|
-
enumerable: true,
|
|
12077
|
-
configurable: true,
|
|
12078
|
-
writable: true,
|
|
12079
|
-
value: void 0
|
|
12080
|
-
});
|
|
12081
|
-
Object.defineProperty(this, "_idRef", {
|
|
12082
|
-
enumerable: true,
|
|
12083
|
-
configurable: true,
|
|
12084
|
-
writable: true,
|
|
12085
|
-
value: void 0
|
|
12086
|
-
});
|
|
12087
|
-
Object.defineProperty(this, "_configurationItemUri", {
|
|
12088
|
-
enumerable: true,
|
|
12089
|
-
configurable: true,
|
|
12090
|
-
writable: true,
|
|
12091
|
-
value: void 0
|
|
12092
|
-
});
|
|
12093
|
-
Object.defineProperty(this, "getInternalModel", {
|
|
12094
|
-
enumerable: true,
|
|
12095
|
-
configurable: true,
|
|
12096
|
-
writable: true,
|
|
12097
|
-
value: () => {
|
|
12098
|
-
return this._backendModel;
|
|
12099
|
-
}
|
|
12100
|
-
});
|
|
12101
|
-
this._backendModel = backendModel;
|
|
12102
|
-
this._idRef = idRef;
|
|
12103
|
-
this._configurationItemUri = configurationItemUri;
|
|
12104
|
-
}
|
|
12105
|
-
get title() {
|
|
12106
|
-
return this._backendModel.Title;
|
|
12107
|
-
}
|
|
12108
|
-
get idRef() {
|
|
12109
|
-
return this._idRef;
|
|
12110
|
-
}
|
|
12111
|
-
get configurationItemTitle() {
|
|
12112
|
-
return this._backendModel.ConfigurationItemTitle;
|
|
12113
|
-
}
|
|
12114
|
-
get configurationItemUri() {
|
|
12115
|
-
return this._configurationItemUri;
|
|
12116
|
-
}
|
|
12117
|
-
get isReadOnly() {
|
|
12118
|
-
return this._backendModel.IsReadOnly || false;
|
|
12119
|
-
}
|
|
12120
|
-
get isSelected() {
|
|
12121
|
-
return this._backendModel.IsSelected || false;
|
|
12122
|
-
}
|
|
12123
|
-
}
|
|
12124
|
-
|
|
12125
|
-
class TranslationWorkflowStatus {
|
|
12126
|
-
constructor({ backendModel, language, workflowStep }) {
|
|
12127
|
-
Object.defineProperty(this, "_backendModel", {
|
|
12128
|
-
enumerable: true,
|
|
12129
|
-
configurable: true,
|
|
12130
|
-
writable: true,
|
|
12131
|
-
value: void 0
|
|
12132
|
-
});
|
|
12133
|
-
Object.defineProperty(this, "_language", {
|
|
12134
|
-
enumerable: true,
|
|
12135
|
-
configurable: true,
|
|
12136
|
-
writable: true,
|
|
12137
|
-
value: void 0
|
|
12138
|
-
});
|
|
12139
|
-
Object.defineProperty(this, "_workflowStep", {
|
|
12140
|
-
enumerable: true,
|
|
12141
|
-
configurable: true,
|
|
12142
|
-
writable: true,
|
|
12143
|
-
value: void 0
|
|
12144
|
-
});
|
|
12145
|
-
Object.defineProperty(this, "getInternalModel", {
|
|
12146
|
-
enumerable: true,
|
|
12147
|
-
configurable: true,
|
|
12148
|
-
writable: true,
|
|
12149
|
-
value: () => {
|
|
12150
|
-
return this._backendModel;
|
|
12151
|
-
}
|
|
12152
|
-
});
|
|
12153
|
-
this._backendModel = backendModel;
|
|
12154
|
-
this._language = language;
|
|
12155
|
-
this._workflowStep = workflowStep;
|
|
12156
|
-
}
|
|
12157
|
-
/**
|
|
12158
|
-
* Number of items in the current `WorkflowStep` for this `Language`.
|
|
12159
|
-
*/
|
|
12160
|
-
get numberOfItems() {
|
|
12161
|
-
return this._backendModel.NumberOfItems;
|
|
12162
|
-
}
|
|
12163
|
-
get language() {
|
|
12164
|
-
return this._language;
|
|
12165
|
-
}
|
|
12166
|
-
/**
|
|
12167
|
-
* Current `TmsWorkflowStep` the Items are in on the translation management system.
|
|
12168
|
-
*/
|
|
12169
|
-
get workflowStep() {
|
|
12170
|
-
return this._workflowStep;
|
|
12171
|
-
}
|
|
12172
|
-
}
|
|
12173
|
-
|
|
12174
|
-
/**
|
|
12175
|
-
* `TranslationJob` class that extends `IdentifiableObject`, that uses `ItemUri` instead of number as an id.
|
|
12176
|
-
*
|
|
12177
|
-
* @note
|
|
12178
|
-
* Please note that the rest of `IdentifiableObject` props will be undefined always.
|
|
12179
|
-
*
|
|
12180
|
-
* To get original object use `getOriginalInternalModel()`, as `getInternalModel()` result will include `Id` in a format `tm:0-1234`.
|
|
12181
|
-
*
|
|
12182
|
-
* @example
|
|
12183
|
-
* TranslationJob.id: number | undefined;
|
|
12184
|
-
* IdentifiableTranslationJob.id: ItemUri;
|
|
12185
|
-
*/
|
|
12186
|
-
class IdentifiableTranslationJob extends IdentifiableObject {
|
|
12187
|
-
constructor(_a) {
|
|
12188
|
-
var { addedItems, backendModel, configurationItemUri, creationDate, creator, displayState, errors, errorSeverityLevel, language, priority, requiredDate, revisionDate, revisor, state, targetLanguages, type, workflowStatus } = _a, identifiableObjectArgs = __rest(_a, ["addedItems", "backendModel", "configurationItemUri", "creationDate", "creator", "displayState", "errors", "errorSeverityLevel", "language", "priority", "requiredDate", "revisionDate", "revisor", "state", "targetLanguages", "type", "workflowStatus"]);
|
|
12189
|
-
super(Object.assign({ backendModel }, identifiableObjectArgs));
|
|
12190
|
-
Object.defineProperty(this, "_backendModel", {
|
|
12191
|
-
enumerable: true,
|
|
12192
|
-
configurable: true,
|
|
12193
|
-
writable: true,
|
|
12194
|
-
value: void 0
|
|
12195
|
-
});
|
|
12196
|
-
Object.defineProperty(this, "_addedItems", {
|
|
12197
|
-
enumerable: true,
|
|
12198
|
-
configurable: true,
|
|
12199
|
-
writable: true,
|
|
12200
|
-
value: void 0
|
|
12201
|
-
});
|
|
12202
|
-
Object.defineProperty(this, "_creator", {
|
|
12203
|
-
enumerable: true,
|
|
12204
|
-
configurable: true,
|
|
12205
|
-
writable: true,
|
|
12206
|
-
value: void 0
|
|
12207
|
-
});
|
|
12208
|
-
Object.defineProperty(this, "_configurationItemUri", {
|
|
12209
|
-
enumerable: true,
|
|
12210
|
-
configurable: true,
|
|
12211
|
-
writable: true,
|
|
12212
|
-
value: void 0
|
|
12213
|
-
});
|
|
12214
|
-
Object.defineProperty(this, "_displayState", {
|
|
12215
|
-
enumerable: true,
|
|
12216
|
-
configurable: true,
|
|
12217
|
-
writable: true,
|
|
12218
|
-
value: void 0
|
|
12219
|
-
});
|
|
12220
|
-
Object.defineProperty(this, "_errors", {
|
|
12221
|
-
enumerable: true,
|
|
12222
|
-
configurable: true,
|
|
12223
|
-
writable: true,
|
|
12224
|
-
value: void 0
|
|
12225
|
-
});
|
|
12226
|
-
Object.defineProperty(this, "_errorSeverityLevel", {
|
|
12227
|
-
enumerable: true,
|
|
12228
|
-
configurable: true,
|
|
12229
|
-
writable: true,
|
|
12230
|
-
value: void 0
|
|
12231
|
-
});
|
|
12232
|
-
Object.defineProperty(this, "_language", {
|
|
12233
|
-
enumerable: true,
|
|
12234
|
-
configurable: true,
|
|
12235
|
-
writable: true,
|
|
12236
|
-
value: void 0
|
|
12237
|
-
});
|
|
12238
|
-
Object.defineProperty(this, "_priority", {
|
|
12239
|
-
enumerable: true,
|
|
12240
|
-
configurable: true,
|
|
12241
|
-
writable: true,
|
|
12242
|
-
value: void 0
|
|
12243
|
-
});
|
|
12244
|
-
Object.defineProperty(this, "_revisor", {
|
|
12245
|
-
enumerable: true,
|
|
12246
|
-
configurable: true,
|
|
12247
|
-
writable: true,
|
|
12248
|
-
value: void 0
|
|
12249
|
-
});
|
|
12250
|
-
Object.defineProperty(this, "_state", {
|
|
12251
|
-
enumerable: true,
|
|
12252
|
-
configurable: true,
|
|
12253
|
-
writable: true,
|
|
12254
|
-
value: void 0
|
|
12255
|
-
});
|
|
12256
|
-
Object.defineProperty(this, "_targetLanguages", {
|
|
12257
|
-
enumerable: true,
|
|
12258
|
-
configurable: true,
|
|
12259
|
-
writable: true,
|
|
12260
|
-
value: void 0
|
|
12261
|
-
});
|
|
12262
|
-
Object.defineProperty(this, "_type", {
|
|
12263
|
-
enumerable: true,
|
|
12264
|
-
configurable: true,
|
|
12265
|
-
writable: true,
|
|
12266
|
-
value: void 0
|
|
12267
|
-
});
|
|
12268
|
-
Object.defineProperty(this, "_workflowStatus", {
|
|
12269
|
-
enumerable: true,
|
|
12270
|
-
configurable: true,
|
|
12271
|
-
writable: true,
|
|
12272
|
-
value: void 0
|
|
12273
|
-
});
|
|
12274
|
-
Object.defineProperty(this, "_creationDate", {
|
|
12275
|
-
enumerable: true,
|
|
12276
|
-
configurable: true,
|
|
12277
|
-
writable: true,
|
|
12278
|
-
value: void 0
|
|
12279
|
-
});
|
|
12280
|
-
Object.defineProperty(this, "_requiredDate", {
|
|
12281
|
-
enumerable: true,
|
|
12282
|
-
configurable: true,
|
|
12283
|
-
writable: true,
|
|
12284
|
-
value: void 0
|
|
12285
|
-
});
|
|
12286
|
-
Object.defineProperty(this, "_revisionDate", {
|
|
12287
|
-
enumerable: true,
|
|
12288
|
-
configurable: true,
|
|
12289
|
-
writable: true,
|
|
12290
|
-
value: void 0
|
|
12291
|
-
});
|
|
12292
|
-
Object.defineProperty(this, "getOriginalInternalModel", {
|
|
12293
|
-
enumerable: true,
|
|
12294
|
-
configurable: true,
|
|
12295
|
-
writable: true,
|
|
12296
|
-
value: () => {
|
|
12297
|
-
const originalId = typeof this._id.itemId === 'number' ? this._id.itemId : undefined;
|
|
12298
|
-
return Object.assign(Object.assign({}, this._backendModel), { Id: originalId });
|
|
12299
|
-
}
|
|
12300
|
-
});
|
|
12301
|
-
Object.defineProperty(this, "getInternalModel", {
|
|
12302
|
-
enumerable: true,
|
|
12303
|
-
configurable: true,
|
|
12304
|
-
writable: true,
|
|
12305
|
-
value: () => {
|
|
12306
|
-
return this._backendModel;
|
|
12307
|
-
}
|
|
12308
|
-
});
|
|
12309
|
-
this._backendModel = backendModel;
|
|
12310
|
-
this._addedItems = addedItems;
|
|
12311
|
-
this._creator = creator;
|
|
12312
|
-
this._configurationItemUri = configurationItemUri;
|
|
12313
|
-
this._displayState = displayState;
|
|
12314
|
-
this._errors = errors;
|
|
12315
|
-
this._errorSeverityLevel = errorSeverityLevel;
|
|
12316
|
-
this._language = language;
|
|
12317
|
-
this._priority = priority;
|
|
12318
|
-
this._revisor = revisor;
|
|
12319
|
-
this._state = state;
|
|
12320
|
-
this._targetLanguages = targetLanguages;
|
|
12321
|
-
this._type = type;
|
|
12322
|
-
this._workflowStatus = workflowStatus;
|
|
12323
|
-
this._creationDate = creationDate;
|
|
12324
|
-
this._requiredDate = requiredDate;
|
|
12325
|
-
this._revisionDate = revisionDate;
|
|
12326
|
-
}
|
|
12327
|
-
get title() {
|
|
12328
|
-
return this._backendModel.Title;
|
|
12329
|
-
}
|
|
12330
|
-
/**
|
|
12331
|
-
* Collection containing the `AddedItem`s that have been added to this Translation Job.
|
|
12332
|
-
* The `AddedItem`s represent either an Item that will be translated (for example a Component) or
|
|
12333
|
-
* an Item that contains the Items that will be translated (for example a Folder).
|
|
12334
|
-
*/
|
|
12335
|
-
get addedItems() {
|
|
12336
|
-
return this._addedItems;
|
|
12337
|
-
}
|
|
12338
|
-
/**
|
|
12339
|
-
* TCM URI of the item containing the `TranslationConfiguration` used for this Translation Job.
|
|
12340
|
-
*/
|
|
12341
|
-
get configurationItemUri() {
|
|
12342
|
-
return this._configurationItemUri;
|
|
12343
|
-
}
|
|
12344
|
-
/**
|
|
12345
|
-
* Title of the Publication containing the <seealso cref="P:Tridion.TranslationManager.OpenApi.V2.Dto.TranslationJob.ConfigurationItemUri" />.
|
|
12346
|
-
*/
|
|
12347
|
-
get contextPublicationTitle() {
|
|
12348
|
-
return this._backendModel.ContextPublicationTitle;
|
|
12349
|
-
}
|
|
12350
|
-
/**
|
|
12351
|
-
* The date the Translation Job was created (in UTC).
|
|
12352
|
-
*/
|
|
12353
|
-
get creationDate() {
|
|
12354
|
-
return this._creationDate;
|
|
12355
|
-
}
|
|
12356
|
-
/**
|
|
12357
|
-
* A link to the user who created the Translation Job.
|
|
12358
|
-
*/
|
|
12359
|
-
get creator() {
|
|
12360
|
-
return this._creator;
|
|
12361
|
-
}
|
|
12362
|
-
get displayState() {
|
|
12363
|
-
return this._displayState;
|
|
12364
|
-
}
|
|
12365
|
-
/**
|
|
12366
|
-
* Collection of errors registered to this job.
|
|
12367
|
-
*/
|
|
12368
|
-
get errors() {
|
|
12369
|
-
return this._errors;
|
|
12370
|
-
}
|
|
12371
|
-
get errorSeverityLevel() {
|
|
12372
|
-
return this._errorSeverityLevel;
|
|
12373
|
-
}
|
|
12374
|
-
get hasError() {
|
|
12375
|
-
return this._backendModel.HasError || false;
|
|
12376
|
-
}
|
|
12377
|
-
/**
|
|
12378
|
-
* Value indicating whether items that have already been translated should be included in the job.
|
|
12379
|
-
*/
|
|
12380
|
-
get includeItemsAlreadyTranslated() {
|
|
12381
|
-
return this._backendModel.IncludeItemsAlreadyTranslated || false;
|
|
12382
|
-
}
|
|
12383
|
-
/**
|
|
12384
|
-
* Value indicating if the Translation Job currently have one or more `TranslationJobQuote`s awaiting authorization (see remarks).
|
|
12385
|
-
*/
|
|
12386
|
-
get isAwaitingAuthorization() {
|
|
12387
|
-
return this._backendModel.IsAwaitingAuthorization || false;
|
|
12388
|
-
}
|
|
12389
|
-
get language() {
|
|
12390
|
-
return this._language;
|
|
12391
|
-
}
|
|
12392
|
-
/**
|
|
12393
|
-
* Metadata associated with the Translation Job.
|
|
12394
|
-
*/
|
|
12395
|
-
get metadata() {
|
|
12396
|
-
return this._backendModel.Metadata;
|
|
11275
|
+
return this._backendModel.Title;
|
|
12397
11276
|
}
|
|
12398
11277
|
/**
|
|
12399
|
-
*
|
|
11278
|
+
* A string that identifies the Tridion Item type.
|
|
12400
11279
|
*/
|
|
12401
|
-
get
|
|
12402
|
-
return this._backendModel.
|
|
11280
|
+
get itemTypeWithSubtype() {
|
|
11281
|
+
return this._backendModel.ItemTypeWithSubtype;
|
|
12403
11282
|
}
|
|
12404
11283
|
/**
|
|
12405
|
-
*
|
|
11284
|
+
* Specifies if it is the Item itself, it's child Items or both that should be translated.
|
|
12406
11285
|
*/
|
|
12407
|
-
get
|
|
12408
|
-
return this.
|
|
11286
|
+
get resolveOptions() {
|
|
11287
|
+
return this._resolveOptions;
|
|
12409
11288
|
}
|
|
12410
|
-
|
|
12411
|
-
|
|
11289
|
+
}
|
|
11290
|
+
|
|
11291
|
+
class TranslationTargetPublication {
|
|
11292
|
+
constructor({ backendModel, configurationItemUri, idRef }) {
|
|
11293
|
+
Object.defineProperty(this, "_backendModel", {
|
|
11294
|
+
enumerable: true,
|
|
11295
|
+
configurable: true,
|
|
11296
|
+
writable: true,
|
|
11297
|
+
value: void 0
|
|
11298
|
+
});
|
|
11299
|
+
Object.defineProperty(this, "_idRef", {
|
|
11300
|
+
enumerable: true,
|
|
11301
|
+
configurable: true,
|
|
11302
|
+
writable: true,
|
|
11303
|
+
value: void 0
|
|
11304
|
+
});
|
|
11305
|
+
Object.defineProperty(this, "_configurationItemUri", {
|
|
11306
|
+
enumerable: true,
|
|
11307
|
+
configurable: true,
|
|
11308
|
+
writable: true,
|
|
11309
|
+
value: void 0
|
|
11310
|
+
});
|
|
11311
|
+
Object.defineProperty(this, "getInternalModel", {
|
|
11312
|
+
enumerable: true,
|
|
11313
|
+
configurable: true,
|
|
11314
|
+
writable: true,
|
|
11315
|
+
value: () => {
|
|
11316
|
+
return this._backendModel;
|
|
11317
|
+
}
|
|
11318
|
+
});
|
|
11319
|
+
this._backendModel = backendModel;
|
|
11320
|
+
this._idRef = idRef;
|
|
11321
|
+
this._configurationItemUri = configurationItemUri;
|
|
12412
11322
|
}
|
|
12413
|
-
|
|
12414
|
-
|
|
12415
|
-
*/
|
|
12416
|
-
get requiredDate() {
|
|
12417
|
-
return this._requiredDate;
|
|
11323
|
+
get title() {
|
|
11324
|
+
return this._backendModel.Title;
|
|
12418
11325
|
}
|
|
12419
|
-
get
|
|
12420
|
-
return this.
|
|
11326
|
+
get idRef() {
|
|
11327
|
+
return this._idRef;
|
|
12421
11328
|
}
|
|
12422
|
-
|
|
12423
|
-
|
|
12424
|
-
*/
|
|
12425
|
-
get revisor() {
|
|
12426
|
-
return this._revisor;
|
|
11329
|
+
get configurationItemTitle() {
|
|
11330
|
+
return this._backendModel.ConfigurationItemTitle;
|
|
12427
11331
|
}
|
|
12428
|
-
get
|
|
12429
|
-
return this.
|
|
11332
|
+
get configurationItemUri() {
|
|
11333
|
+
return this._configurationItemUri;
|
|
12430
11334
|
}
|
|
12431
|
-
|
|
12432
|
-
|
|
12433
|
-
*/
|
|
12434
|
-
get supportsPriority() {
|
|
12435
|
-
return this._backendModel.SupportsPriority || false;
|
|
11335
|
+
get isReadOnly() {
|
|
11336
|
+
return this._backendModel.IsReadOnly || false;
|
|
12436
11337
|
}
|
|
12437
|
-
|
|
12438
|
-
|
|
12439
|
-
*/
|
|
12440
|
-
get supportsRequiredDate() {
|
|
12441
|
-
return this._backendModel.SupportsRequiredDate || false;
|
|
11338
|
+
get isSelected() {
|
|
11339
|
+
return this._backendModel.IsSelected || false;
|
|
12442
11340
|
}
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
|
|
11341
|
+
}
|
|
11342
|
+
|
|
11343
|
+
class TranslationWorkflowStatus {
|
|
11344
|
+
constructor({ backendModel, language, workflowStep }) {
|
|
11345
|
+
Object.defineProperty(this, "_backendModel", {
|
|
11346
|
+
enumerable: true,
|
|
11347
|
+
configurable: true,
|
|
11348
|
+
writable: true,
|
|
11349
|
+
value: void 0
|
|
11350
|
+
});
|
|
11351
|
+
Object.defineProperty(this, "_language", {
|
|
11352
|
+
enumerable: true,
|
|
11353
|
+
configurable: true,
|
|
11354
|
+
writable: true,
|
|
11355
|
+
value: void 0
|
|
11356
|
+
});
|
|
11357
|
+
Object.defineProperty(this, "_workflowStep", {
|
|
11358
|
+
enumerable: true,
|
|
11359
|
+
configurable: true,
|
|
11360
|
+
writable: true,
|
|
11361
|
+
value: void 0
|
|
11362
|
+
});
|
|
11363
|
+
Object.defineProperty(this, "getInternalModel", {
|
|
11364
|
+
enumerable: true,
|
|
11365
|
+
configurable: true,
|
|
11366
|
+
writable: true,
|
|
11367
|
+
value: () => {
|
|
11368
|
+
return this._backendModel;
|
|
11369
|
+
}
|
|
11370
|
+
});
|
|
11371
|
+
this._backendModel = backendModel;
|
|
11372
|
+
this._language = language;
|
|
11373
|
+
this._workflowStep = workflowStep;
|
|
12448
11374
|
}
|
|
12449
11375
|
/**
|
|
12450
|
-
*
|
|
12451
|
-
* (Pull job) or from the Publication (Push job).
|
|
11376
|
+
* Number of items in the current `WorkflowStep` for this `Language`.
|
|
12452
11377
|
*/
|
|
12453
|
-
get
|
|
12454
|
-
return this.
|
|
11378
|
+
get numberOfItems() {
|
|
11379
|
+
return this._backendModel.NumberOfItems;
|
|
11380
|
+
}
|
|
11381
|
+
get language() {
|
|
11382
|
+
return this._language;
|
|
12455
11383
|
}
|
|
12456
11384
|
/**
|
|
12457
|
-
*
|
|
11385
|
+
* Current `TmsWorkflowStep` the Items are in on the translation management system.
|
|
12458
11386
|
*/
|
|
12459
|
-
get
|
|
12460
|
-
return this.
|
|
11387
|
+
get workflowStep() {
|
|
11388
|
+
return this._workflowStep;
|
|
12461
11389
|
}
|
|
12462
11390
|
}
|
|
12463
11391
|
|
|
@@ -12961,35 +11889,6 @@ const translationWorkflowStatusMapping = {
|
|
|
12961
11889
|
},
|
|
12962
11890
|
};
|
|
12963
11891
|
|
|
12964
|
-
const mapIdentifiableTranslationJobConstructorArgs = (mappingRegistry, backendModel) => {
|
|
12965
|
-
const virtualId = backendModel.Id ? TmUri.create(backendModel.Id) : TcmUri.null;
|
|
12966
|
-
const backendTranslationJobWithId = Object.assign(Object.assign({}, backendModel), { Id: virtualId.asString });
|
|
12967
|
-
return Object.assign(Object.assign({}, mapTranslationJobConstructorArgs(mappingRegistry, backendModel)), mapIdentifiableObjectConstructorArgs(mappingRegistry, backendTranslationJobWithId));
|
|
12968
|
-
};
|
|
12969
|
-
const identifiableTranslationJobMapping = {
|
|
12970
|
-
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'IdentifiableTranslationJob',
|
|
12971
|
-
mapper: (mappingRegistry, backendModel) => {
|
|
12972
|
-
const _a = mapIdentifiableTranslationJobConstructorArgs(mappingRegistry, backendModel), { addedItems, configurationItemUri, creationDate, creator, displayState, errors, errorSeverityLevel, language, priority, revisor, state, targetLanguages, type, workflowStatus, requiredDate, revisionDate } = _a, identifiableObjectProps = __rest(_a, ["addedItems", "configurationItemUri", "creationDate", "creator", "displayState", "errors", "errorSeverityLevel", "language", "priority", "revisor", "state", "targetLanguages", "type", "workflowStatus", "requiredDate", "revisionDate"]);
|
|
12973
|
-
return new IdentifiableTranslationJob(Object.assign(Object.assign({}, identifiableObjectProps), { addedItems,
|
|
12974
|
-
backendModel,
|
|
12975
|
-
configurationItemUri,
|
|
12976
|
-
creationDate,
|
|
12977
|
-
creator,
|
|
12978
|
-
displayState,
|
|
12979
|
-
errors,
|
|
12980
|
-
errorSeverityLevel,
|
|
12981
|
-
language,
|
|
12982
|
-
priority,
|
|
12983
|
-
requiredDate,
|
|
12984
|
-
revisionDate,
|
|
12985
|
-
revisor,
|
|
12986
|
-
state,
|
|
12987
|
-
targetLanguages,
|
|
12988
|
-
type,
|
|
12989
|
-
workflowStatus }));
|
|
12990
|
-
},
|
|
12991
|
-
};
|
|
12992
|
-
|
|
12993
11892
|
/**
|
|
12994
11893
|
* Abstract base class for the data of "Trustees": the data of Users or Groups.
|
|
12995
11894
|
*/
|
|
@@ -13549,7 +12448,7 @@ class UserRuntimeInfo {
|
|
|
13549
12448
|
|
|
13550
12449
|
const mapTrusteeConstructorArgs = (mappingRegistry, backendModel) => {
|
|
13551
12450
|
var _a;
|
|
13552
|
-
const { applicableActions, basicVersionInfo, id, listLinks, loadInfo, securityDescriptor
|
|
12451
|
+
const { applicableActions, basicVersionInfo, id, listLinks, loadInfo, securityDescriptor } = mapSystemWideObjectConstructorArgs(mappingRegistry, backendModel);
|
|
13553
12452
|
const groupMemberships = (_a = backendModel.GroupMemberships) === null || _a === void 0 ? void 0 : _a.map(m => mappingRegistry.map(m)).filter(isDefined);
|
|
13554
12453
|
return {
|
|
13555
12454
|
applicableActions,
|
|
@@ -13559,7 +12458,6 @@ const mapTrusteeConstructorArgs = (mappingRegistry, backendModel) => {
|
|
|
13559
12458
|
listLinks,
|
|
13560
12459
|
loadInfo,
|
|
13561
12460
|
securityDescriptor,
|
|
13562
|
-
listInfo,
|
|
13563
12461
|
};
|
|
13564
12462
|
};
|
|
13565
12463
|
|
|
@@ -13567,7 +12465,7 @@ const mapUserConstructorArgs = mapTrusteeConstructorArgs;
|
|
|
13567
12465
|
const userMapping = {
|
|
13568
12466
|
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'User',
|
|
13569
12467
|
mapper: (mappingRegistry, backendModel) => {
|
|
13570
|
-
const { groupMemberships, applicableActions, basicVersionInfo, id, listLinks, loadInfo, securityDescriptor
|
|
12468
|
+
const { groupMemberships, applicableActions, basicVersionInfo, id, listLinks, loadInfo, securityDescriptor } = mapUserConstructorArgs(mappingRegistry, backendModel);
|
|
13571
12469
|
return new User({
|
|
13572
12470
|
applicableActions,
|
|
13573
12471
|
backendModel,
|
|
@@ -13577,7 +12475,6 @@ const userMapping = {
|
|
|
13577
12475
|
listLinks,
|
|
13578
12476
|
loadInfo,
|
|
13579
12477
|
securityDescriptor,
|
|
13580
|
-
listInfo,
|
|
13581
12478
|
});
|
|
13582
12479
|
},
|
|
13583
12480
|
};
|
|
@@ -13592,7 +12489,7 @@ const mapAccessTokenConstructorArgs = (mappingRegistry, backendModel) => {
|
|
|
13592
12489
|
const accessTokenMapping = {
|
|
13593
12490
|
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'AccessToken',
|
|
13594
12491
|
mapper: (mappingRegistry, backendModel) => {
|
|
13595
|
-
const { applicableActions, basicVersionInfo, groupMemberships, id, inheritedSystemPrivileges, listLinks, loadInfo, securityDescriptor,
|
|
12492
|
+
const { applicableActions, basicVersionInfo, groupMemberships, id, inheritedSystemPrivileges, listLinks, loadInfo, securityDescriptor, } = mapAccessTokenConstructorArgs(mappingRegistry, backendModel);
|
|
13596
12493
|
return new AccessToken({
|
|
13597
12494
|
applicableActions,
|
|
13598
12495
|
backendModel,
|
|
@@ -13603,7 +12500,6 @@ const accessTokenMapping = {
|
|
|
13603
12500
|
listLinks,
|
|
13604
12501
|
loadInfo,
|
|
13605
12502
|
securityDescriptor,
|
|
13606
|
-
listInfo,
|
|
13607
12503
|
});
|
|
13608
12504
|
},
|
|
13609
12505
|
};
|
|
@@ -13649,7 +12545,7 @@ const mapUserGroupConstructorArgs = (mappingRegistry, backendModel) => {
|
|
|
13649
12545
|
const userGroupMapping = {
|
|
13650
12546
|
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'Group',
|
|
13651
12547
|
mapper: (mappingRegistry, backendModel) => {
|
|
13652
|
-
const { applicableActions, basicVersionInfo, groupMemberships, id, inheritedSystemPrivileges, listLinks, loadInfo, scope, securityDescriptor, systemPrivileges,
|
|
12548
|
+
const { applicableActions, basicVersionInfo, groupMemberships, id, inheritedSystemPrivileges, listLinks, loadInfo, scope, securityDescriptor, systemPrivileges, } = mapUserGroupConstructorArgs(mappingRegistry, backendModel);
|
|
13653
12549
|
return new UserGroup({
|
|
13654
12550
|
backendModel,
|
|
13655
12551
|
groupMemberships,
|
|
@@ -13662,7 +12558,6 @@ const userGroupMapping = {
|
|
|
13662
12558
|
listLinks,
|
|
13663
12559
|
loadInfo,
|
|
13664
12560
|
securityDescriptor,
|
|
13665
|
-
listInfo,
|
|
13666
12561
|
});
|
|
13667
12562
|
},
|
|
13668
12563
|
};
|
|
@@ -14069,8 +12964,8 @@ class ActivityHistory extends Activity {
|
|
|
14069
12964
|
*/
|
|
14070
12965
|
class ActivityInstance extends Activity {
|
|
14071
12966
|
constructor(_a) {
|
|
14072
|
-
var { backendModel, activityConstraints, activityDefinition, activityState, approvalStatus, processDefinition, workflowType } = _a,
|
|
14073
|
-
super(Object.assign({ backendModel },
|
|
12967
|
+
var { backendModel, activityConstraints, activityDefinition, activityState, approvalStatus, processDefinition, workflowType } = _a, acticityArgs = __rest(_a, ["backendModel", "activityConstraints", "activityDefinition", "activityState", "approvalStatus", "processDefinition", "workflowType"]);
|
|
12968
|
+
super(Object.assign({ backendModel }, acticityArgs));
|
|
14074
12969
|
Object.defineProperty(this, "_activityConstraints", {
|
|
14075
12970
|
enumerable: true,
|
|
14076
12971
|
configurable: true,
|
|
@@ -14838,7 +13733,7 @@ const mapWorkflowObjectConstructorArgs = (mappingRegistry, backendModel) => {
|
|
|
14838
13733
|
};
|
|
14839
13734
|
|
|
14840
13735
|
const mapActivityDefinitionConstructorArgs = (mappingRegistry, backendModel) => {
|
|
14841
|
-
const { contextRepository, applicableActions, basicVersionInfo, id, listLinks, loadInfo, securityDescriptor
|
|
13736
|
+
const { contextRepository, applicableActions, basicVersionInfo, id, listLinks, loadInfo, securityDescriptor } = mapWorkflowObjectConstructorArgs(mappingRegistry, backendModel);
|
|
14842
13737
|
const activityConstraints = backendModel.ActivityConstraints
|
|
14843
13738
|
? mapActivityConstraints(backendModel.ActivityConstraints)
|
|
14844
13739
|
: undefined;
|
|
@@ -14857,7 +13752,6 @@ const mapActivityDefinitionConstructorArgs = (mappingRegistry, backendModel) =>
|
|
|
14857
13752
|
listLinks,
|
|
14858
13753
|
loadInfo,
|
|
14859
13754
|
securityDescriptor,
|
|
14860
|
-
listInfo,
|
|
14861
13755
|
};
|
|
14862
13756
|
};
|
|
14863
13757
|
const activityDefinitionMapping = {
|
|
@@ -14869,7 +13763,7 @@ const activityDefinitionMapping = {
|
|
|
14869
13763
|
|
|
14870
13764
|
const mapActivityConstructorArgs = (mappingRegistry, backendModel) => {
|
|
14871
13765
|
var _a;
|
|
14872
|
-
const { contextRepository, applicableActions, basicVersionInfo, id, listLinks, loadInfo, securityDescriptor
|
|
13766
|
+
const { contextRepository, applicableActions, basicVersionInfo, id, listLinks, loadInfo, securityDescriptor } = mapWorkflowObjectConstructorArgs(mappingRegistry, backendModel);
|
|
14873
13767
|
const assignee = backendModel.Assignee ? mappingRegistry.map(backendModel.Assignee) : undefined;
|
|
14874
13768
|
const owner = backendModel.Owner ? mappingRegistry.map(backendModel.Owner) : undefined;
|
|
14875
13769
|
const primarySubject = backendModel.PrimarySubject
|
|
@@ -14900,7 +13794,6 @@ const mapActivityConstructorArgs = (mappingRegistry, backendModel) => {
|
|
|
14900
13794
|
startDate,
|
|
14901
13795
|
suspendDate,
|
|
14902
13796
|
workItems,
|
|
14903
|
-
listInfo,
|
|
14904
13797
|
};
|
|
14905
13798
|
};
|
|
14906
13799
|
|
|
@@ -14925,7 +13818,7 @@ const mapActivityHistoryConstructorArgs = (mappingRegistry, backendModel) => {
|
|
|
14925
13818
|
const activityHistoryMapping = {
|
|
14926
13819
|
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'ActivityHistory',
|
|
14927
13820
|
mapper: (mappingRegistry, backendModel) => {
|
|
14928
|
-
const { activityType, applicableActions, approvalStatus, assignee, assignmentDate, basicVersionInfo, contextRepository, dueDate, finishDate, id, listLinks, loadInfo, owner, primarySubject, process, securityDescriptor, startDate, suspendDate, workItems,
|
|
13821
|
+
const { activityType, applicableActions, approvalStatus, assignee, assignmentDate, basicVersionInfo, contextRepository, dueDate, finishDate, id, listLinks, loadInfo, owner, primarySubject, process, securityDescriptor, startDate, suspendDate, workItems, } = mapActivityHistoryConstructorArgs(mappingRegistry, backendModel);
|
|
14929
13822
|
return new ActivityHistory({
|
|
14930
13823
|
activityType,
|
|
14931
13824
|
applicableActions,
|
|
@@ -14947,7 +13840,6 @@ const activityHistoryMapping = {
|
|
|
14947
13840
|
startDate,
|
|
14948
13841
|
suspendDate,
|
|
14949
13842
|
workItems,
|
|
14950
|
-
listInfo,
|
|
14951
13843
|
});
|
|
14952
13844
|
},
|
|
14953
13845
|
};
|
|
@@ -15014,7 +13906,7 @@ const mapActivityInstanceConstructorArgs = (mappingRegistry, backendModel) => {
|
|
|
15014
13906
|
const activityInstanceMapping = {
|
|
15015
13907
|
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'ActivityInstance',
|
|
15016
13908
|
mapper: (mappingRegistry, backendModel) => {
|
|
15017
|
-
const { activityConstraints, activityDefinition, activityState, applicableActions, approvalStatus, assignee, assignmentDate, basicVersionInfo, contextRepository, dueDate, finishDate, id, listLinks, loadInfo, owner, primarySubject, process, processDefinition, securityDescriptor, startDate, suspendDate, workflowType, workItems,
|
|
13909
|
+
const { activityConstraints, activityDefinition, activityState, applicableActions, approvalStatus, assignee, assignmentDate, basicVersionInfo, contextRepository, dueDate, finishDate, id, listLinks, loadInfo, owner, primarySubject, process, processDefinition, securityDescriptor, startDate, suspendDate, workflowType, workItems, } = mapActivityInstanceConstructorArgs(mappingRegistry, backendModel);
|
|
15018
13910
|
return new ActivityInstance({
|
|
15019
13911
|
activityConstraints,
|
|
15020
13912
|
activityDefinition,
|
|
@@ -15040,7 +13932,6 @@ const activityInstanceMapping = {
|
|
|
15040
13932
|
suspendDate,
|
|
15041
13933
|
workflowType,
|
|
15042
13934
|
workItems,
|
|
15043
|
-
listInfo,
|
|
15044
13935
|
});
|
|
15045
13936
|
},
|
|
15046
13937
|
};
|
|
@@ -15068,7 +13959,7 @@ const mapProcessDefinitionConstructorArgs = (mappingRegistry, backendModel) => {
|
|
|
15068
13959
|
const processDefinitionMapping = {
|
|
15069
13960
|
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'ProcessDefinition',
|
|
15070
13961
|
mapper: (mappingRegistry, backendModel) => {
|
|
15071
|
-
const { activityDefinitions, applicableActions, basicVersionInfo, blueprintInfo, id, isLocked, limitedVersionInfo, listLinks, loadInfo, locationInfo, lockInfo,
|
|
13962
|
+
const { activityDefinitions, applicableActions, basicVersionInfo, blueprintInfo, id, isLocked, limitedVersionInfo, listLinks, loadInfo, locationInfo, lockInfo, metadataSchema, securityDescriptor, } = mapProcessDefinitionConstructorArgs(mappingRegistry, backendModel);
|
|
15072
13963
|
return new ProcessDefinition({
|
|
15073
13964
|
activityDefinitions,
|
|
15074
13965
|
applicableActions,
|
|
@@ -15082,10 +13973,8 @@ const processDefinitionMapping = {
|
|
|
15082
13973
|
loadInfo,
|
|
15083
13974
|
locationInfo,
|
|
15084
13975
|
lockInfo,
|
|
15085
|
-
metadata,
|
|
15086
13976
|
metadataSchema,
|
|
15087
13977
|
securityDescriptor,
|
|
15088
|
-
listInfo,
|
|
15089
13978
|
});
|
|
15090
13979
|
},
|
|
15091
13980
|
};
|
|
@@ -15105,7 +13994,7 @@ const mapProcessFinishReason = (backendModel) => {
|
|
|
15105
13994
|
|
|
15106
13995
|
const mapProcessConstructorArgs = (mappingRegistry, backendModel) => {
|
|
15107
13996
|
var _a;
|
|
15108
|
-
const { contextRepository, applicableActions, basicVersionInfo, id, listLinks, loadInfo, securityDescriptor
|
|
13997
|
+
const { contextRepository, applicableActions, basicVersionInfo, id, listLinks, loadInfo, securityDescriptor } = mapWorkflowObjectConstructorArgs(mappingRegistry, backendModel);
|
|
15109
13998
|
const activities = (_a = backendModel.Activities) === null || _a === void 0 ? void 0 : _a.map(k => mappingRegistry.map(k)).filter(isDefined);
|
|
15110
13999
|
const creator = backendModel.Creator ? mappingRegistry.map(backendModel.Creator) : undefined;
|
|
15111
14000
|
const subjects = mapLinks(mappingRegistry, backendModel.Subjects);
|
|
@@ -15122,7 +14011,6 @@ const mapProcessConstructorArgs = (mappingRegistry, backendModel) => {
|
|
|
15122
14011
|
securityDescriptor,
|
|
15123
14012
|
subjects,
|
|
15124
14013
|
workflowType,
|
|
15125
|
-
listInfo,
|
|
15126
14014
|
};
|
|
15127
14015
|
};
|
|
15128
14016
|
|
|
@@ -15136,7 +14024,7 @@ const mapProcessHistoryConstructorArgs = (mappingRegistry, backendModel) => {
|
|
|
15136
14024
|
const processHistoryMapping = {
|
|
15137
14025
|
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'ProcessHistory',
|
|
15138
14026
|
mapper: (mappingRegistry, backendModel) => {
|
|
15139
|
-
const { activities, applicableActions, basicVersionInfo, contextRepository, creator, finishDate, finishReason, id, listLinks, loadInfo, securityDescriptor, subjects, workflowType,
|
|
14027
|
+
const { activities, applicableActions, basicVersionInfo, contextRepository, creator, finishDate, finishReason, id, listLinks, loadInfo, securityDescriptor, subjects, workflowType, } = mapProcessHistoryConstructorArgs(mappingRegistry, backendModel);
|
|
15140
14028
|
return new ProcessHistory({
|
|
15141
14029
|
activities,
|
|
15142
14030
|
applicableActions,
|
|
@@ -15152,7 +14040,6 @@ const processHistoryMapping = {
|
|
|
15152
14040
|
securityDescriptor,
|
|
15153
14041
|
subjects,
|
|
15154
14042
|
workflowType,
|
|
15155
|
-
listInfo,
|
|
15156
14043
|
});
|
|
15157
14044
|
},
|
|
15158
14045
|
};
|
|
@@ -15167,7 +14054,7 @@ const mapProcessInstanceConstructorArgs = (mappingRegistry, backendModel) => {
|
|
|
15167
14054
|
const processInstanceMapping = {
|
|
15168
14055
|
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'ProcessInstance',
|
|
15169
14056
|
mapper: (mappingRegistry, backendModel) => {
|
|
15170
|
-
const { activities, applicableActions, basicVersionInfo, contextRepository, creator, id, listLinks, loadInfo, processDefinition, securityDescriptor, subjects, workflowType,
|
|
14057
|
+
const { activities, applicableActions, basicVersionInfo, contextRepository, creator, id, listLinks, loadInfo, processDefinition, securityDescriptor, subjects, workflowType, } = mapProcessInstanceConstructorArgs(mappingRegistry, backendModel);
|
|
15171
14058
|
return new ProcessInstance({
|
|
15172
14059
|
activities,
|
|
15173
14060
|
applicableActions,
|
|
@@ -15182,7 +14069,6 @@ const processInstanceMapping = {
|
|
|
15182
14069
|
securityDescriptor,
|
|
15183
14070
|
subjects,
|
|
15184
14071
|
workflowType,
|
|
15185
|
-
listInfo,
|
|
15186
14072
|
});
|
|
15187
14073
|
},
|
|
15188
14074
|
};
|
|
@@ -15206,7 +14092,7 @@ const mapTridionActivityDefinitionConstructorArgs = (mappingRegistry, backendMod
|
|
|
15206
14092
|
const tridionActivityDefinitionMapping = {
|
|
15207
14093
|
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'TridionActivityDefinition',
|
|
15208
14094
|
mapper: (mappingRegistry, backendModel) => {
|
|
15209
|
-
const { activityConstraints, activityType, applicableActions, assignee, basicVersionInfo, contextRepository, finishApprovalStatus, id, listLinks, loadInfo, nextActivityDefinitions, processDefinition, securityDescriptor,
|
|
14095
|
+
const { activityConstraints, activityType, applicableActions, assignee, basicVersionInfo, contextRepository, finishApprovalStatus, id, listLinks, loadInfo, nextActivityDefinitions, processDefinition, securityDescriptor, } = mapTridionActivityDefinitionConstructorArgs(mappingRegistry, backendModel);
|
|
15210
14096
|
return new TridionActivityDefinition({
|
|
15211
14097
|
activityConstraints,
|
|
15212
14098
|
activityType,
|
|
@@ -15222,7 +14108,6 @@ const tridionActivityDefinitionMapping = {
|
|
|
15222
14108
|
nextActivityDefinitions,
|
|
15223
14109
|
processDefinition,
|
|
15224
14110
|
securityDescriptor,
|
|
15225
|
-
listInfo,
|
|
15226
14111
|
});
|
|
15227
14112
|
},
|
|
15228
14113
|
};
|
|
@@ -15234,7 +14119,7 @@ const mapTridionProcessDefinitionConstructorArgs = (mappingRegistry, backendMode
|
|
|
15234
14119
|
const tridionProcessDefinitionMapping = {
|
|
15235
14120
|
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'TridionProcessDefinition',
|
|
15236
14121
|
mapper: (mappingRegistry, backendModel) => {
|
|
15237
|
-
const { activityDefinitions, applicableActions, id, isLocked, listLinks, loadInfo, securityDescriptor, basicVersionInfo, limitedVersionInfo, blueprintInfo, locationInfo, lockInfo,
|
|
14122
|
+
const { activityDefinitions, applicableActions, id, isLocked, listLinks, loadInfo, securityDescriptor, basicVersionInfo, limitedVersionInfo, blueprintInfo, locationInfo, lockInfo, metadataSchema, } = mapTridionProcessDefinitionConstructorArgs(mappingRegistry, backendModel);
|
|
15238
14123
|
return new TridionProcessDefinition({
|
|
15239
14124
|
basicVersionInfo,
|
|
15240
14125
|
backendModel,
|
|
@@ -15249,9 +14134,7 @@ const tridionProcessDefinitionMapping = {
|
|
|
15249
14134
|
blueprintInfo,
|
|
15250
14135
|
locationInfo,
|
|
15251
14136
|
lockInfo,
|
|
15252
|
-
metadata,
|
|
15253
14137
|
metadataSchema,
|
|
15254
|
-
listInfo,
|
|
15255
14138
|
});
|
|
15256
14139
|
},
|
|
15257
14140
|
};
|
|
@@ -15329,7 +14212,7 @@ const mapWorkflowItemConstructorArgs = (mappingRegistry, backendModel) => {
|
|
|
15329
14212
|
const workflowItemMapping = {
|
|
15330
14213
|
identifier: backendModel => (backendModel === null || backendModel === void 0 ? void 0 : backendModel.$type) === 'WorkItem',
|
|
15331
14214
|
mapper: (mappingRegistry, backendModel) => {
|
|
15332
|
-
const { activity, contextRepository, owner, process, subject, subjectOwningRepository, applicableActions, basicVersionInfo, id, listLinks, loadInfo, securityDescriptor,
|
|
14215
|
+
const { activity, contextRepository, owner, process, subject, subjectOwningRepository, applicableActions, basicVersionInfo, id, listLinks, loadInfo, securityDescriptor, } = mapWorkflowItemConstructorArgs(mappingRegistry, backendModel);
|
|
15333
14216
|
return new WorkItem({
|
|
15334
14217
|
backendModel,
|
|
15335
14218
|
activity,
|
|
@@ -15344,13 +14227,11 @@ const workflowItemMapping = {
|
|
|
15344
14227
|
listLinks,
|
|
15345
14228
|
loadInfo,
|
|
15346
14229
|
securityDescriptor,
|
|
15347
|
-
listInfo,
|
|
15348
14230
|
});
|
|
15349
14231
|
},
|
|
15350
14232
|
};
|
|
15351
14233
|
|
|
15352
14234
|
const registerMappings = (mappingRegistry) => {
|
|
15353
|
-
registerComponentMappings(mappingRegistry);
|
|
15354
14235
|
mappingRegistry.register(accessControlEntryMapping);
|
|
15355
14236
|
mappingRegistry.register(accessControlListMapping);
|
|
15356
14237
|
mappingRegistry.register(accessTokenMapping);
|
|
@@ -15368,11 +14249,11 @@ const registerMappings = (mappingRegistry) => {
|
|
|
15368
14249
|
mappingRegistry.register(classificationDetailMapping);
|
|
15369
14250
|
mappingRegistry.register(classificationInfoMapping);
|
|
15370
14251
|
mappingRegistry.register(componentLinkFieldDefinitionMapping);
|
|
14252
|
+
mappingRegistry.register(componentMapping);
|
|
15371
14253
|
mappingRegistry.register(componentPresentationMapping);
|
|
15372
14254
|
mappingRegistry.register(componentTemplateMapping);
|
|
15373
14255
|
mappingRegistry.register(dateFieldDefinitionMapping);
|
|
15374
14256
|
mappingRegistry.register(dateListDefinitionMapping);
|
|
15375
|
-
mappingRegistry.register(dependencyGraphNodeMapping);
|
|
15376
14257
|
mappingRegistry.register(dynamicVersionInfoMapping);
|
|
15377
14258
|
mappingRegistry.register(embeddedRegionMapping);
|
|
15378
14259
|
mappingRegistry.register(embeddedSchemaFieldDefinitionMapping);
|
|
@@ -15388,7 +14269,6 @@ const registerMappings = (mappingRegistry) => {
|
|
|
15388
14269
|
mappingRegistry.register(fullVersionInfoMapping);
|
|
15389
14270
|
mappingRegistry.register(groupMembershipMapping);
|
|
15390
14271
|
mappingRegistry.register(hateoasLinkMapping);
|
|
15391
|
-
mappingRegistry.register(identifiableTranslationJobMapping);
|
|
15392
14272
|
mappingRegistry.register(keywordCategoryMapping);
|
|
15393
14273
|
mappingRegistry.register(keywordFieldDefinitionMapping);
|
|
15394
14274
|
mappingRegistry.register(keywordMapping);
|
|
@@ -15400,6 +14280,7 @@ const registerMappings = (mappingRegistry) => {
|
|
|
15400
14280
|
mappingRegistry.register(locationInfoMapping);
|
|
15401
14281
|
mappingRegistry.register(lockInfoMapping);
|
|
15402
14282
|
mappingRegistry.register(multilineTextFieldDefinitionMapping);
|
|
14283
|
+
mappingRegistry.register(multimediaComponentMapping);
|
|
15403
14284
|
mappingRegistry.register(multimediaLinkFieldDefinitionMapping);
|
|
15404
14285
|
mappingRegistry.register(multimediaTypeMapping);
|
|
15405
14286
|
mappingRegistry.register(numberFieldDefinitionMapping);
|
|
@@ -15415,7 +14296,6 @@ const registerMappings = (mappingRegistry) => {
|
|
|
15415
14296
|
mappingRegistry.register(publishInstructionMapping);
|
|
15416
14297
|
mappingRegistry.register(publishLocationInfoMapping);
|
|
15417
14298
|
mappingRegistry.register(publishTransactionMapping);
|
|
15418
|
-
mappingRegistry.register(publishTransactionListInfoMapping);
|
|
15419
14299
|
mappingRegistry.register(publishTransactionsCreationResultMapping);
|
|
15420
14300
|
mappingRegistry.register(publishUrlInfoMapping);
|
|
15421
14301
|
mappingRegistry.register(repositoryMapping);
|
|
@@ -15427,8 +14307,6 @@ const registerMappings = (mappingRegistry) => {
|
|
|
15427
14307
|
mappingRegistry.register(singleLineTextFieldDefinitionMapping);
|
|
15428
14308
|
mappingRegistry.register(singleLineTextListDefinitionMapping);
|
|
15429
14309
|
mappingRegistry.register(structureGroupMapping);
|
|
15430
|
-
mappingRegistry.register(synchronizationActionMapping);
|
|
15431
|
-
mappingRegistry.register(synchronizationResultMapping);
|
|
15432
14310
|
mappingRegistry.register(systemPrivilegeMapping);
|
|
15433
14311
|
mappingRegistry.register(systemPrivilegesDictionaryMapping);
|
|
15434
14312
|
mappingRegistry.register(targetGroupConditionMapping);
|
|
@@ -15459,7 +14337,6 @@ const registerMappings = (mappingRegistry) => {
|
|
|
15459
14337
|
mappingRegistry.register(userPreferencesMapping);
|
|
15460
14338
|
mappingRegistry.register(userProfileMapping);
|
|
15461
14339
|
mappingRegistry.register(userUserRuntimeInfoMapping);
|
|
15462
|
-
mappingRegistry.register(whereUsedListInfoMapping);
|
|
15463
14340
|
mappingRegistry.register(workflowInfoMapping);
|
|
15464
14341
|
mappingRegistry.register(workflowItemMapping);
|
|
15465
14342
|
mappingRegistry.register(xhtmlFieldDefinitionMapping);
|
|
@@ -15546,22 +14423,22 @@ const isRloNode = (node) => {
|
|
|
15546
14423
|
* @returns graph of unconnected nodes
|
|
15547
14424
|
*/
|
|
15548
14425
|
const createGraphNodes$1 = (backendNodes) => {
|
|
14426
|
+
var _a;
|
|
15549
14427
|
const graph = new BlueprintGraph();
|
|
15550
14428
|
for (const backendNode of backendNodes) {
|
|
15551
|
-
if (!backendNode.ContextRepositoryId)
|
|
15552
|
-
continue;
|
|
15553
|
-
const contextRepositoryId = parseItemUri(backendNode.ContextRepositoryId);
|
|
15554
|
-
const contextRepositoryLink = Link.create(contextRepositoryId, backendNode.ContextRepositoryTitle);
|
|
15555
|
-
// When item doesn't exist in the current context Item value is `undefined`.
|
|
15556
|
-
if (!backendNode.Item) {
|
|
15557
|
-
graph.addNode(backendNode.ContextRepositoryId, contextRepositoryLink);
|
|
14429
|
+
if (!backendNode.Item || !backendNode.ContextRepositoryId)
|
|
15558
14430
|
continue;
|
|
15559
|
-
}
|
|
15560
14431
|
const item = mapToModel(backendNode.Item);
|
|
15561
14432
|
if (item instanceof RepositoryLocalObject) {
|
|
15562
|
-
const
|
|
14433
|
+
const contextPublicationLink = (_a = item.locationInfo) === null || _a === void 0 ? void 0 : _a.contextRepository;
|
|
14434
|
+
if (!contextPublicationLink)
|
|
14435
|
+
continue;
|
|
14436
|
+
const data = new ItemBlueprintRloNodeData(contextPublicationLink, item);
|
|
15563
14437
|
graph.addNode(backendNode.ContextRepositoryId, data);
|
|
15564
14438
|
}
|
|
14439
|
+
if (item instanceof Publication) {
|
|
14440
|
+
graph.addNode(item.id.asString, item);
|
|
14441
|
+
}
|
|
15565
14442
|
}
|
|
15566
14443
|
return graph;
|
|
15567
14444
|
};
|
|
@@ -15614,72 +14491,6 @@ const constructItemGraph = (backendModel) => {
|
|
|
15614
14491
|
return graph;
|
|
15615
14492
|
};
|
|
15616
14493
|
|
|
15617
|
-
const mapSearchBlueprintStatus = (backendModel) => {
|
|
15618
|
-
switch (backendModel) {
|
|
15619
|
-
case SearchBlueprintStatus.LOCAL:
|
|
15620
|
-
return 'local';
|
|
15621
|
-
case SearchBlueprintStatus.SHARED:
|
|
15622
|
-
return 'shared';
|
|
15623
|
-
case SearchBlueprintStatus.LOCALIZED:
|
|
15624
|
-
return 'localized';
|
|
15625
|
-
case SearchBlueprintStatus.UNSPECIFIED:
|
|
15626
|
-
return 'unspecified';
|
|
15627
|
-
case SearchBlueprintStatus.UNKNOWN_BY_CLIENT:
|
|
15628
|
-
return 'unknownByClient';
|
|
15629
|
-
}
|
|
15630
|
-
};
|
|
15631
|
-
const mapSearchBlueprintStatusToBackend = (model) => {
|
|
15632
|
-
switch (model) {
|
|
15633
|
-
case 'local':
|
|
15634
|
-
return SearchBlueprintStatus.LOCAL;
|
|
15635
|
-
case 'shared':
|
|
15636
|
-
return SearchBlueprintStatus.SHARED;
|
|
15637
|
-
case 'localized':
|
|
15638
|
-
return SearchBlueprintStatus.LOCALIZED;
|
|
15639
|
-
case 'unspecified':
|
|
15640
|
-
return SearchBlueprintStatus.UNSPECIFIED;
|
|
15641
|
-
case 'unknownByClient':
|
|
15642
|
-
return SearchBlueprintStatus.UNKNOWN_BY_CLIENT;
|
|
15643
|
-
}
|
|
15644
|
-
};
|
|
15645
|
-
|
|
15646
|
-
const mapListDetailsLevelToBackend = (backendValue) => {
|
|
15647
|
-
switch (backendValue) {
|
|
15648
|
-
case 'contentless':
|
|
15649
|
-
return ListDetails.CONTENTLESS;
|
|
15650
|
-
case 'idAndTitleOnly':
|
|
15651
|
-
return ListDetails.ID_AND_TITLE_ONLY;
|
|
15652
|
-
case 'withApplicableActions':
|
|
15653
|
-
return ListDetails.WITH_APPLICABLE_ACTIONS;
|
|
15654
|
-
}
|
|
15655
|
-
};
|
|
15656
|
-
|
|
15657
|
-
const mapDependencyDirectionToBackend = (backendValue) => {
|
|
15658
|
-
switch (backendValue) {
|
|
15659
|
-
case 'uses':
|
|
15660
|
-
return DependencyDirection.USES;
|
|
15661
|
-
case 'usedBy':
|
|
15662
|
-
return DependencyDirection.USED_BY;
|
|
15663
|
-
}
|
|
15664
|
-
};
|
|
15665
|
-
|
|
15666
|
-
const mapToModels = (backendItems) => {
|
|
15667
|
-
return backendItems.map(i => tryMapToModel(i)).filter(isDefined);
|
|
15668
|
-
};
|
|
15669
|
-
|
|
15670
|
-
const getPrimaryItem = (backendResponse) => {
|
|
15671
|
-
const backendResponseItems = backendResponse.Items || [];
|
|
15672
|
-
for (const backendNode of backendResponseItems) {
|
|
15673
|
-
if (!backendNode.Item || !backendNode.ContextRepositoryId)
|
|
15674
|
-
continue;
|
|
15675
|
-
const item = mapToModel(backendNode.Item);
|
|
15676
|
-
if (item instanceof RepositoryLocalObject) {
|
|
15677
|
-
return item;
|
|
15678
|
-
}
|
|
15679
|
-
}
|
|
15680
|
-
throw Error('No primary item found');
|
|
15681
|
-
};
|
|
15682
|
-
|
|
15683
14494
|
class ItemBlueprintHierarchy {
|
|
15684
14495
|
constructor(backendModel) {
|
|
15685
14496
|
Object.defineProperty(this, "_backendModel", {
|
|
@@ -15694,12 +14505,6 @@ class ItemBlueprintHierarchy {
|
|
|
15694
14505
|
writable: true,
|
|
15695
14506
|
value: void 0
|
|
15696
14507
|
});
|
|
15697
|
-
Object.defineProperty(this, "_primaryItem", {
|
|
15698
|
-
enumerable: true,
|
|
15699
|
-
configurable: true,
|
|
15700
|
-
writable: true,
|
|
15701
|
-
value: void 0
|
|
15702
|
-
});
|
|
15703
14508
|
Object.defineProperty(this, "rootNode", {
|
|
15704
14509
|
enumerable: true,
|
|
15705
14510
|
configurable: true,
|
|
@@ -15733,12 +14538,8 @@ class ItemBlueprintHierarchy {
|
|
|
15733
14538
|
});
|
|
15734
14539
|
this._backendModel = backendModel;
|
|
15735
14540
|
this._graph = constructItemGraph(backendModel);
|
|
15736
|
-
this._primaryItem = getPrimaryItem(backendModel);
|
|
15737
14541
|
this.rootNode = this._graph.getRootNode();
|
|
15738
14542
|
}
|
|
15739
|
-
get primaryItem() {
|
|
15740
|
-
return this._primaryItem;
|
|
15741
|
-
}
|
|
15742
14543
|
}
|
|
15743
14544
|
|
|
15744
14545
|
/**
|
|
@@ -15801,14 +14602,6 @@ class PublicationBlueprintHierarchy {
|
|
|
15801
14602
|
return this._graph.getNode(publicationId.asString);
|
|
15802
14603
|
}
|
|
15803
14604
|
});
|
|
15804
|
-
Object.defineProperty(this, "getNodes", {
|
|
15805
|
-
enumerable: true,
|
|
15806
|
-
configurable: true,
|
|
15807
|
-
writable: true,
|
|
15808
|
-
value: () => {
|
|
15809
|
-
return this._graph.getNodes();
|
|
15810
|
-
}
|
|
15811
|
-
});
|
|
15812
14605
|
Object.defineProperty(this, "getInternalModel", {
|
|
15813
14606
|
enumerable: true,
|
|
15814
14607
|
configurable: true,
|
|
@@ -15909,6 +14702,52 @@ const itemTypes = [
|
|
|
15909
14702
|
];
|
|
15910
14703
|
const itemType = createEnumObject(itemTypes);
|
|
15911
14704
|
|
|
14705
|
+
class ApiError extends Error {
|
|
14706
|
+
constructor(backendModel) {
|
|
14707
|
+
super();
|
|
14708
|
+
Object.defineProperty(this, "_backendModel", {
|
|
14709
|
+
enumerable: true,
|
|
14710
|
+
configurable: true,
|
|
14711
|
+
writable: true,
|
|
14712
|
+
value: void 0
|
|
14713
|
+
});
|
|
14714
|
+
this._backendModel = backendModel;
|
|
14715
|
+
this.message = this.getMessage(backendModel.body) || backendModel.message;
|
|
14716
|
+
}
|
|
14717
|
+
get url() {
|
|
14718
|
+
return this._backendModel.url;
|
|
14719
|
+
}
|
|
14720
|
+
get statusCode() {
|
|
14721
|
+
return this._backendModel.status;
|
|
14722
|
+
}
|
|
14723
|
+
get statusText() {
|
|
14724
|
+
return this._backendModel.statusText;
|
|
14725
|
+
}
|
|
14726
|
+
get request() {
|
|
14727
|
+
return this._backendModel.request;
|
|
14728
|
+
}
|
|
14729
|
+
get body() {
|
|
14730
|
+
return this._backendModel.body;
|
|
14731
|
+
}
|
|
14732
|
+
getInternalModel() {
|
|
14733
|
+
return this._backendModel;
|
|
14734
|
+
}
|
|
14735
|
+
getMessage(backendModelBody) {
|
|
14736
|
+
// IIS or Windows handled errors, before reaching webapp Error handler
|
|
14737
|
+
if (typeof backendModelBody === 'string')
|
|
14738
|
+
return backendModelBody;
|
|
14739
|
+
// Server error message
|
|
14740
|
+
if (backendModelBody.Message) {
|
|
14741
|
+
return backendModelBody.Message;
|
|
14742
|
+
}
|
|
14743
|
+
// JavaScript runtime error message
|
|
14744
|
+
if (backendModelBody.message) {
|
|
14745
|
+
return backendModelBody.message;
|
|
14746
|
+
}
|
|
14747
|
+
return undefined;
|
|
14748
|
+
}
|
|
14749
|
+
}
|
|
14750
|
+
|
|
15912
14751
|
const getItemContainerId = (item) => {
|
|
15913
14752
|
var _a, _b, _c, _d, _e;
|
|
15914
14753
|
if (item instanceof Keyword && ((_a = item.parentKeywords) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
@@ -15995,7 +14834,7 @@ const getItemLinkType = (itemLink) => {
|
|
|
15995
14834
|
const getItemType = (item) => {
|
|
15996
14835
|
if (isExactInstanceOf(item, Keyword))
|
|
15997
14836
|
return item.isAbstract ? 'abstractKeyword' : 'keyword';
|
|
15998
|
-
if (isExactInstanceOf(item,
|
|
14837
|
+
if (isExactInstanceOf(item, ProcessDefinition))
|
|
15999
14838
|
return 'processDefinition';
|
|
16000
14839
|
if (isExactInstanceOf(item, TargetGroup))
|
|
16001
14840
|
return 'targetGroup';
|
|
@@ -16056,4 +14895,8 @@ const getItemType = (item) => {
|
|
|
16056
14895
|
return undefined;
|
|
16057
14896
|
};
|
|
16058
14897
|
|
|
16059
|
-
|
|
14898
|
+
const mapToModels = (backendItems) => {
|
|
14899
|
+
return backendItems.map(i => tryMapToModel(i)).filter(isDefined);
|
|
14900
|
+
};
|
|
14901
|
+
|
|
14902
|
+
export { AccessControlEntry, AccessControlList, AccessToken, Activity, ActivityDefinition, ActivityHistory, ActivityInstance, ApiError, ApprovalStatus, BasicVersionInfo, Batch, BatchOperation, BinaryContent, BlueprintGraph, BlueprintGraphNode, BlueprintInfo, Bundle, BusinessProcessType, BusinessProcessTypes, ClaimMapping, ClassificationDetail, ClassificationInfo, Component, ComponentBase, ComponentLinkFieldDefinition, ComponentPresentation, ComponentTemplate, DateFieldDefinition, DateListDefinition, DynamicVersionInfo, EclUri, EmbeddedRegion, EmbeddedSchemaFieldDefinition, ExternalContainer, ExternalKeyword, ExternalKeywordCategory, ExternalLinkFieldDefinition, ExternalMultimediaComponent, ExternalVersionInfo, FinishActivityResult, Folder, FormattingFeatures, FullVersionInfo, GroupMembership, HateoasLink, IdentifiableObject, ItemBlueprintHierarchy, ItemBlueprintRloNodeData, ItemFieldDefinition, ItemPublishableFieldDefinition, Keyword, KeywordCategory, KeywordFieldDefinition, LimitedVersionInfo, Link, LinkWithIsEditable, ListDefinition, LoadInfo, LocationInfo, LockInfo, MultiLineTextFieldDefinition, MultimediaComponent, MultimediaLinkFieldDefinition, MultimediaType, NumberFieldDefinition, NumberListDefinition, OrganizationalItem, Page, PageTemplate, Process, ProcessDefinition, ProcessHistory, ProcessInstance, ProcessedItem, Publication, PublicationBlueprintHierarchy, PublishContext, PublishInfo, PublishInstruction, PublishInstructionBase, PublishLocationInfo, PublishTransaction, PublishTransactionsCreationResult, PublishUrlInfo, PublishingTarget, Region, Repository, RepositoryLocalObject, ResolveInstruction, ResolveInstructionBase, ResolvedItem, Schema, SearchFolder, SecurityDescriptor, SingleLineTextFieldDefinition, SingleLineTextListDefinition, StructureGroup, SystemPrivilege, SystemWideObject, TargetGroup, TargetGroupCondition, TargetLanguage, TargetType, Taxonomies, TcmUri, Template, TemplateBuildingBlock, TextFieldDefinition, TmsLanguage, TmsWorkflow, TmsWorkflowStep, TranslationDetails, TranslationErrorDetails, TranslationExceptionDetails, TranslationInfo, TranslationJob, TranslationJobInfo, TranslationJobItem, TranslationTargetPublication, TranslationWorkflowStatus, TridionActivityDefinition, TridionProcessDefinition, Trustee, UnpublishInstruction, User, UserFavoriteLink, UserGroup, UserLocaleInfo, UserPreferences, UserProfile, UserRuntimeInfo, ValidationError, ValidationResult, ValidationWarning, VersionedItem, VirtualFolder, VirtualUri, WorkItem, WorkflowInfo, WorkflowObject, XhtmlFieldDefinition, applicableActions, configureLocale, createBackendBusinessProcessTypes, createBackendHateoasLink, createBackendLink, createBackendTaxonomies, determineBatchStatus, getItemContainerId, getItemLinkType, getItemType, isRloNode, itemLinkType, itemLinkTypes, itemType, itemTypes, listLinks, mapActivityStateToBackend, mapBatchOperationState, mapLockTypeToBackend, mapPublishPriorityToBackend, mapPublishTransactionStateToBackend, mapRetrieveReasonToBackend, mapRloItemTypeToBackend, mapStringSearchModeToBackend, mapStructureResolveOptionToBackend, mapToModel, mapToModels, mapTranslationErrorSeverityToBackend, mapTranslationJobPriorityToBackend, mapTranslationJobStateToBackend, mapTranslationJobTypeToBackend, mapTranslationStatusToBackend, parseItemUri, tryMapToModel, tryParseItemUri };
|