@tridion-sites/models 1.2.0 → 2.1.0
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 +52 -14
- package/dist/index.d.ts +4 -194
- package/dist/index.js +42 -486
- package/package.json +19 -18
- 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
|
@@ -370,7 +370,7 @@ const parseItemType = (itemType) => {
|
|
|
370
370
|
return itemTypeIdToItemType.get(itemTypeId);
|
|
371
371
|
};
|
|
372
372
|
|
|
373
|
-
var _a$
|
|
373
|
+
var _a$1;
|
|
374
374
|
/**
|
|
375
375
|
* Represents a native Tridion Content Manager URI which uniquely identifies a resource in the system.
|
|
376
376
|
*
|
|
@@ -415,7 +415,7 @@ class TcmUri {
|
|
|
415
415
|
value: () => {
|
|
416
416
|
if (this._itemType === 'publication')
|
|
417
417
|
return this;
|
|
418
|
-
return _a$
|
|
418
|
+
return _a$1.createPublicationUri(this._publicationId);
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
421
|
Object.defineProperty(this, "getVersionlessUri", {
|
|
@@ -423,7 +423,7 @@ class TcmUri {
|
|
|
423
423
|
configurable: true,
|
|
424
424
|
writable: true,
|
|
425
425
|
value: () => {
|
|
426
|
-
return _a$
|
|
426
|
+
return _a$1.create(this._publicationId, this._itemId, this._itemType);
|
|
427
427
|
}
|
|
428
428
|
});
|
|
429
429
|
Object.defineProperty(this, "getUriWithVersion", {
|
|
@@ -431,7 +431,7 @@ class TcmUri {
|
|
|
431
431
|
configurable: true,
|
|
432
432
|
writable: true,
|
|
433
433
|
value: (version) => {
|
|
434
|
-
return _a$
|
|
434
|
+
return _a$1.create(this._publicationId, this._itemId, this._itemType, version);
|
|
435
435
|
}
|
|
436
436
|
});
|
|
437
437
|
Object.defineProperty(this, "getUriInPublication", {
|
|
@@ -439,7 +439,7 @@ class TcmUri {
|
|
|
439
439
|
configurable: true,
|
|
440
440
|
writable: true,
|
|
441
441
|
value: (publicationUri) => {
|
|
442
|
-
return _a$
|
|
442
|
+
return _a$1.create(publicationUri._itemId, this._itemId, this._itemType, this._itemVersion);
|
|
443
443
|
}
|
|
444
444
|
});
|
|
445
445
|
this._publicationId = publicationId;
|
|
@@ -477,17 +477,17 @@ class TcmUri {
|
|
|
477
477
|
return this._itemId === 0;
|
|
478
478
|
}
|
|
479
479
|
get isNullUri() {
|
|
480
|
-
return (this._publicationId === _a$
|
|
481
|
-
this._itemId === _a$
|
|
482
|
-
this._itemType === _a$
|
|
480
|
+
return (this._publicationId === _a$1.null.publicationId &&
|
|
481
|
+
this._itemId === _a$1.null.itemId &&
|
|
482
|
+
this._itemType === _a$1.null.itemType);
|
|
483
483
|
}
|
|
484
484
|
get isSystemUri() {
|
|
485
|
-
return (this._publicationId === _a$
|
|
486
|
-
this._itemId === _a$
|
|
487
|
-
this._itemType === _a$
|
|
485
|
+
return (this._publicationId === _a$1.system.publicationId &&
|
|
486
|
+
this._itemId === _a$1.system.itemId &&
|
|
487
|
+
this._itemType === _a$1.system.itemType);
|
|
488
488
|
}
|
|
489
489
|
get isEditableVersion() {
|
|
490
|
-
return this.isNullUri || this._itemVersion === _a$
|
|
490
|
+
return this.isNullUri || this._itemVersion === _a$1._editableVersion;
|
|
491
491
|
}
|
|
492
492
|
get isDynamic() {
|
|
493
493
|
return this._itemVersion === 0;
|
|
@@ -496,7 +496,7 @@ class TcmUri {
|
|
|
496
496
|
return this._asString;
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
_a$
|
|
499
|
+
_a$1 = TcmUri;
|
|
500
500
|
Object.defineProperty(TcmUri, "_tcmUriCache", {
|
|
501
501
|
enumerable: true,
|
|
502
502
|
configurable: true,
|
|
@@ -526,11 +526,11 @@ Object.defineProperty(TcmUri, "create", {
|
|
|
526
526
|
configurable: true,
|
|
527
527
|
writable: true,
|
|
528
528
|
value: (publicationId, itemId, itemType, itemVersion) => {
|
|
529
|
-
const tcmUri = new _a$
|
|
530
|
-
const cachedTcmUri = _a$
|
|
529
|
+
const tcmUri = new _a$1(publicationId, itemId, itemType, itemVersion);
|
|
530
|
+
const cachedTcmUri = _a$1._tcmUriCache.get(tcmUri.asString);
|
|
531
531
|
if (cachedTcmUri)
|
|
532
532
|
return cachedTcmUri;
|
|
533
|
-
_a$
|
|
533
|
+
_a$1._tcmUriCache.set(tcmUri.asString, tcmUri);
|
|
534
534
|
return tcmUri;
|
|
535
535
|
}
|
|
536
536
|
});
|
|
@@ -538,23 +538,23 @@ Object.defineProperty(TcmUri, "null", {
|
|
|
538
538
|
enumerable: true,
|
|
539
539
|
configurable: true,
|
|
540
540
|
writable: true,
|
|
541
|
-
value: _a$
|
|
541
|
+
value: _a$1.create(0, 0, 'none')
|
|
542
542
|
});
|
|
543
543
|
Object.defineProperty(TcmUri, "system", {
|
|
544
544
|
enumerable: true,
|
|
545
545
|
configurable: true,
|
|
546
546
|
writable: true,
|
|
547
|
-
value: _a$
|
|
547
|
+
value: _a$1.create(0, 0, 'system')
|
|
548
548
|
});
|
|
549
549
|
Object.defineProperty(TcmUri, "parse", {
|
|
550
550
|
enumerable: true,
|
|
551
551
|
configurable: true,
|
|
552
552
|
writable: true,
|
|
553
553
|
value: (input) => {
|
|
554
|
-
const cachedTcmUri = _a$
|
|
554
|
+
const cachedTcmUri = _a$1._tcmUriCache.get(input);
|
|
555
555
|
if (cachedTcmUri)
|
|
556
556
|
return cachedTcmUri;
|
|
557
|
-
const result = _a$
|
|
557
|
+
const result = _a$1._tcmUriRegExp.exec(input);
|
|
558
558
|
if (!result)
|
|
559
559
|
return undefined;
|
|
560
560
|
const pubIdPart = result[1];
|
|
@@ -585,7 +585,7 @@ Object.defineProperty(TcmUri, "parse", {
|
|
|
585
585
|
if (isNaN(version) || version < 0)
|
|
586
586
|
return undefined;
|
|
587
587
|
}
|
|
588
|
-
return _a$
|
|
588
|
+
return _a$1.create(publicationId, itemId, itemType, version);
|
|
589
589
|
}
|
|
590
590
|
});
|
|
591
591
|
Object.defineProperty(TcmUri, "createPublicationUri", {
|
|
@@ -593,11 +593,11 @@ Object.defineProperty(TcmUri, "createPublicationUri", {
|
|
|
593
593
|
configurable: true,
|
|
594
594
|
writable: true,
|
|
595
595
|
value: (publicationId) => {
|
|
596
|
-
return _a$
|
|
596
|
+
return _a$1.create(0, publicationId, 'publication');
|
|
597
597
|
}
|
|
598
598
|
});
|
|
599
599
|
|
|
600
|
-
var _a
|
|
600
|
+
var _a;
|
|
601
601
|
class EclUri {
|
|
602
602
|
constructor(publicationId, mountPointId, itemId, itemType, subType, itemVersion) {
|
|
603
603
|
/**
|
|
@@ -676,7 +676,7 @@ class EclUri {
|
|
|
676
676
|
configurable: true,
|
|
677
677
|
writable: true,
|
|
678
678
|
value: () => {
|
|
679
|
-
return _a
|
|
679
|
+
return _a.create(this._publicationId, this._mountPointId, this._itemId, this._itemType, this._subType);
|
|
680
680
|
}
|
|
681
681
|
});
|
|
682
682
|
Object.defineProperty(this, "getMountPointUri", {
|
|
@@ -686,7 +686,7 @@ class EclUri {
|
|
|
686
686
|
value: () => {
|
|
687
687
|
if (this._itemType === 'mountpoint')
|
|
688
688
|
return this;
|
|
689
|
-
return _a
|
|
689
|
+
return _a.create(this._publicationId, this._mountPointId, 'root', 'mountpoint', 'mp');
|
|
690
690
|
}
|
|
691
691
|
});
|
|
692
692
|
Object.defineProperty(this, "getUriWithVersion", {
|
|
@@ -694,7 +694,7 @@ class EclUri {
|
|
|
694
694
|
configurable: true,
|
|
695
695
|
writable: true,
|
|
696
696
|
value: (version) => {
|
|
697
|
-
return _a
|
|
697
|
+
return _a.create(this._publicationId, this._mountPointId, this._itemId, this._itemType, this._subType, version);
|
|
698
698
|
}
|
|
699
699
|
});
|
|
700
700
|
Object.defineProperty(this, "getUriInPublication", {
|
|
@@ -702,7 +702,7 @@ class EclUri {
|
|
|
702
702
|
configurable: true,
|
|
703
703
|
writable: true,
|
|
704
704
|
value: (publicationUri) => {
|
|
705
|
-
return _a
|
|
705
|
+
return _a.create(publicationUri.itemId, this._mountPointId, this._itemId, this._itemType, this._subType, this._itemVersion);
|
|
706
706
|
}
|
|
707
707
|
});
|
|
708
708
|
this._publicationId = publicationId;
|
|
@@ -754,7 +754,7 @@ class EclUri {
|
|
|
754
754
|
return this._asString;
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
|
-
_a
|
|
757
|
+
_a = EclUri;
|
|
758
758
|
Object.defineProperty(EclUri, "_eclUriCache", {
|
|
759
759
|
enumerable: true,
|
|
760
760
|
configurable: true,
|
|
@@ -778,11 +778,11 @@ Object.defineProperty(EclUri, "create", {
|
|
|
778
778
|
configurable: true,
|
|
779
779
|
writable: true,
|
|
780
780
|
value: (publicationId, mountPointId, itemId, itemType, subType, itemVersion) => {
|
|
781
|
-
const eclUri = new _a
|
|
782
|
-
const cachedEclUri = _a
|
|
781
|
+
const eclUri = new _a(publicationId, mountPointId, itemId, itemType, subType, itemVersion);
|
|
782
|
+
const cachedEclUri = _a._eclUriCache.get(eclUri.asString);
|
|
783
783
|
if (cachedEclUri)
|
|
784
784
|
return cachedEclUri;
|
|
785
|
-
_a
|
|
785
|
+
_a._eclUriCache.set(eclUri.asString, eclUri);
|
|
786
786
|
return eclUri;
|
|
787
787
|
}
|
|
788
788
|
});
|
|
@@ -791,7 +791,7 @@ Object.defineProperty(EclUri, "parse", {
|
|
|
791
791
|
configurable: true,
|
|
792
792
|
writable: true,
|
|
793
793
|
value: (input) => {
|
|
794
|
-
const result = _a
|
|
794
|
+
const result = _a._eclUriRegExp.exec(input);
|
|
795
795
|
if (!result)
|
|
796
796
|
return undefined;
|
|
797
797
|
const pubIdPart = result[1];
|
|
@@ -821,128 +821,10 @@ Object.defineProperty(EclUri, "parse", {
|
|
|
821
821
|
if (isNaN(version) || version < 0)
|
|
822
822
|
return undefined;
|
|
823
823
|
}
|
|
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);
|
|
824
|
+
return _a.create(publicationId, mountPointId, itemId, itemType, subType, version);
|
|
941
825
|
}
|
|
942
826
|
});
|
|
943
827
|
|
|
944
|
-
const BUSINESS_PROCESS_TYPES_NAMESPACE = 'bptman-';
|
|
945
|
-
const TAXONOMIES_NAMESPACE = 'catman-';
|
|
946
828
|
class VirtualUri {
|
|
947
829
|
constructor(publicationUri, itemType) {
|
|
948
830
|
Object.defineProperty(this, "_publicationUri", {
|
|
@@ -984,9 +866,6 @@ class VirtualUri {
|
|
|
984
866
|
const namespace = this._itemType === 'businessProcessTypes' ? 'bptman-' : 'catman-';
|
|
985
867
|
this._asString = `${namespace}${this._publicationUri.asString}`;
|
|
986
868
|
}
|
|
987
|
-
get itemId() {
|
|
988
|
-
return this._publicationUri.asString;
|
|
989
|
-
}
|
|
990
869
|
get itemType() {
|
|
991
870
|
return this._itemType;
|
|
992
871
|
}
|
|
@@ -1023,12 +902,12 @@ Object.defineProperty(VirtualUri, "parse", {
|
|
|
1023
902
|
value: (input) => {
|
|
1024
903
|
let itemIdPart;
|
|
1025
904
|
let itemType;
|
|
1026
|
-
if (input.startsWith(
|
|
1027
|
-
itemIdPart = input.replace(
|
|
905
|
+
if (input.startsWith('bptman-')) {
|
|
906
|
+
itemIdPart = input.replace('bptman-', '');
|
|
1028
907
|
itemType = 'businessProcessTypes';
|
|
1029
908
|
}
|
|
1030
|
-
if (input.startsWith(
|
|
1031
|
-
itemIdPart = input.replace(
|
|
909
|
+
if (input.startsWith('catman-')) {
|
|
910
|
+
itemIdPart = input.replace('catman-', '');
|
|
1032
911
|
itemType = 'taxonomies';
|
|
1033
912
|
}
|
|
1034
913
|
if (!itemIdPart || !itemType)
|
|
@@ -1050,9 +929,6 @@ const tryParseItemUri = (backendId) => {
|
|
|
1050
929
|
const virtualUri = VirtualUri.parse(backendId);
|
|
1051
930
|
if (virtualUri)
|
|
1052
931
|
return virtualUri;
|
|
1053
|
-
const tmUri = TmUri.parse(backendId);
|
|
1054
|
-
if (tmUri)
|
|
1055
|
-
return tmUri;
|
|
1056
932
|
return undefined;
|
|
1057
933
|
};
|
|
1058
934
|
const parseItemUri = (backendId) => {
|
|
@@ -2973,7 +2849,7 @@ const hateoasLinkMapping = {
|
|
|
2973
2849
|
const mapLinkConstructorArgs = (mappingRegistry, backendModel) => {
|
|
2974
2850
|
let idRef = backendModel && tryParseItemUri(backendModel.IdRef);
|
|
2975
2851
|
let isDynamicTarget = false;
|
|
2976
|
-
if ((idRef
|
|
2852
|
+
if ((idRef === null || idRef === void 0 ? void 0 : idRef.isDynamic) && (idRef instanceof TcmUri || idRef instanceof EclUri)) {
|
|
2977
2853
|
idRef = idRef.getVersionlessUri();
|
|
2978
2854
|
isDynamicTarget = true;
|
|
2979
2855
|
}
|
|
@@ -4432,9 +4308,9 @@ const mapVersionedItemConstructorArgs = (mappingRegistry, backendModel) => {
|
|
|
4432
4308
|
: undefined;
|
|
4433
4309
|
let isDynamic = false;
|
|
4434
4310
|
// If id of an item passed is dynamic, sets versionless uri to _id prop instead.
|
|
4435
|
-
if (
|
|
4436
|
-
repositoryLocalObjectConstructorArgs.id instanceof
|
|
4437
|
-
|
|
4311
|
+
if (repositoryLocalObjectConstructorArgs.id.isDynamic &&
|
|
4312
|
+
(repositoryLocalObjectConstructorArgs.id instanceof TcmUri ||
|
|
4313
|
+
repositoryLocalObjectConstructorArgs.id instanceof EclUri)) {
|
|
4438
4314
|
repositoryLocalObjectConstructorArgs.id = repositoryLocalObjectConstructorArgs.id.getVersionlessUri();
|
|
4439
4315
|
isDynamic = true;
|
|
4440
4316
|
}
|
|
@@ -12171,296 +12047,6 @@ class TranslationWorkflowStatus {
|
|
|
12171
12047
|
}
|
|
12172
12048
|
}
|
|
12173
12049
|
|
|
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;
|
|
12397
|
-
}
|
|
12398
|
-
/**
|
|
12399
|
-
* TCM URI of the metadata schema used for this Translation Job.
|
|
12400
|
-
*/
|
|
12401
|
-
get metadataSchemaUri() {
|
|
12402
|
-
return this._backendModel.MetadataSchemaUri;
|
|
12403
|
-
}
|
|
12404
|
-
/**
|
|
12405
|
-
* The priority of the Translation Job. This value will only have an affect if `SupportsPriority` returns true.
|
|
12406
|
-
*/
|
|
12407
|
-
get priority() {
|
|
12408
|
-
return this._priority;
|
|
12409
|
-
}
|
|
12410
|
-
get progressPercentage() {
|
|
12411
|
-
return this._backendModel.ProgressPercentage;
|
|
12412
|
-
}
|
|
12413
|
-
/**
|
|
12414
|
-
* The due date for this job.
|
|
12415
|
-
*/
|
|
12416
|
-
get requiredDate() {
|
|
12417
|
-
return this._requiredDate;
|
|
12418
|
-
}
|
|
12419
|
-
get revisionDate() {
|
|
12420
|
-
return this._revisionDate;
|
|
12421
|
-
}
|
|
12422
|
-
/**
|
|
12423
|
-
* A link to the user who last modified the Translation Job.
|
|
12424
|
-
*/
|
|
12425
|
-
get revisor() {
|
|
12426
|
-
return this._revisor;
|
|
12427
|
-
}
|
|
12428
|
-
get state() {
|
|
12429
|
-
return this._state;
|
|
12430
|
-
}
|
|
12431
|
-
/**
|
|
12432
|
-
* Show if `TranslationJob` support setting of priority.
|
|
12433
|
-
*/
|
|
12434
|
-
get supportsPriority() {
|
|
12435
|
-
return this._backendModel.SupportsPriority || false;
|
|
12436
|
-
}
|
|
12437
|
-
/**
|
|
12438
|
-
* Show if `TranslationJob` support setting required rate.
|
|
12439
|
-
*/
|
|
12440
|
-
get supportsRequiredDate() {
|
|
12441
|
-
return this._backendModel.SupportsRequiredDate || false;
|
|
12442
|
-
}
|
|
12443
|
-
/**
|
|
12444
|
-
* List of target languages available for this `TranslationJob`.
|
|
12445
|
-
*/
|
|
12446
|
-
get targetLanguages() {
|
|
12447
|
-
return this._targetLanguages;
|
|
12448
|
-
}
|
|
12449
|
-
/**
|
|
12450
|
-
* Value indicating if the Translation Job is a translation to the Publication of the `ConfigurationItemUri`
|
|
12451
|
-
* (Pull job) or from the Publication (Push job).
|
|
12452
|
-
*/
|
|
12453
|
-
get type() {
|
|
12454
|
-
return this._type;
|
|
12455
|
-
}
|
|
12456
|
-
/**
|
|
12457
|
-
* Item count of language/workflowstep pairs.
|
|
12458
|
-
*/
|
|
12459
|
-
get workflowStatus() {
|
|
12460
|
-
return this._workflowStatus;
|
|
12461
|
-
}
|
|
12462
|
-
}
|
|
12463
|
-
|
|
12464
12050
|
const mapTargetLanguageConstructorArgs = (mappingRegistry, backendModel) => {
|
|
12465
12051
|
var _a, _b;
|
|
12466
12052
|
const availableWorkflows = (_a = backendModel.AvailableWorkflows) === null || _a === void 0 ? void 0 : _a.map(w => mappingRegistry.map(w)).filter(isDefined);
|
|
@@ -12961,35 +12547,6 @@ const translationWorkflowStatusMapping = {
|
|
|
12961
12547
|
},
|
|
12962
12548
|
};
|
|
12963
12549
|
|
|
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
12550
|
/**
|
|
12994
12551
|
* Abstract base class for the data of "Trustees": the data of Users or Groups.
|
|
12995
12552
|
*/
|
|
@@ -15388,7 +14945,6 @@ const registerMappings = (mappingRegistry) => {
|
|
|
15388
14945
|
mappingRegistry.register(fullVersionInfoMapping);
|
|
15389
14946
|
mappingRegistry.register(groupMembershipMapping);
|
|
15390
14947
|
mappingRegistry.register(hateoasLinkMapping);
|
|
15391
|
-
mappingRegistry.register(identifiableTranslationJobMapping);
|
|
15392
14948
|
mappingRegistry.register(keywordCategoryMapping);
|
|
15393
14949
|
mappingRegistry.register(keywordFieldDefinitionMapping);
|
|
15394
14950
|
mappingRegistry.register(keywordMapping);
|
|
@@ -16056,4 +15612,4 @@ const getItemType = (item) => {
|
|
|
16056
15612
|
return undefined;
|
|
16057
15613
|
};
|
|
16058
15614
|
|
|
16059
|
-
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, DependencyGraphNode, DynamicVersionInfo, EclUri, EmbeddedRegion, EmbeddedSchemaFieldDefinition, ExternalContainer, ExternalKeyword, ExternalKeywordCategory, ExternalLinkFieldDefinition, ExternalMultimediaComponent, ExternalVersionInfo, FinishActivityResult, Folder, FormattingFeatures, FullVersionInfo, GroupMembership, HateoasLink, IdentifiableObject,
|
|
15615
|
+
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, DependencyGraphNode, 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, PublishTransactionListInfo, PublishTransactionsCreationResult, PublishUrlInfo, PublishingTarget, Region, Repository, RepositoryLocalObject, ResolveInstruction, ResolveInstructionBase, ResolvedItem, Schema, SearchFolder, SecurityDescriptor, SingleLineTextFieldDefinition, SingleLineTextListDefinition, StructureGroup, SynchronizationAction, SynchronizationResult, 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, ValidationApiError, ValidationError, ValidationResult, ValidationWarning, VersionedItem, VirtualFolder, VirtualUri, WhereUsedListInfo, WorkItem, WorkflowInfo, WorkflowObject, XhtmlFieldDefinition, applicableActions, configureLocale, createBackendBusinessProcessTypes, createBackendHateoasLink, createBackendLink, createBackendTaxonomies, determineBatchStatus, getItemContainerId, getItemLinkType, getItemType, isRloNode, itemLinkType, itemLinkTypes, itemType, itemTypes, listLinks, mapActivityStateToBackend, mapBatchOperationState, mapDependencyDirectionToBackend, mapErrorTypeToBackend, mapListDetailsLevelToBackend, mapLoadInfoStateToBackend, mapLockTypeToBackend, mapPublishPriorityToBackend, mapPublishTransactionStateToBackend, mapRetrieveReasonToBackend, mapRloItemTypeToBackend, mapSchemaPurposeBackend, mapSearchBlueprintStatus, mapSearchBlueprintStatusToBackend, mapStringSearchModeToBackend, mapStructureResolveOptionToBackend, mapSynchronizeFlagsToBackend, mapToModel, mapToModels, mapTranslationErrorSeverityToBackend, mapTranslationJobPriorityToBackend, mapTranslationJobStateToBackend, mapTranslationJobTypeToBackend, mapTranslationStatusToBackend, parseItemUri, tryMapToModel, tryParseItemUri };
|