diff --git a/packages/content/src/index.ts b/packages/content/src/index.ts index cfd124b85..3b72a10de 100644 --- a/packages/content/src/index.ts +++ b/packages/content/src/index.ts @@ -1,7 +1,8 @@ -export * from "./ContentJSON"; export * from "./attributes"; export * from "./buildInformation"; +export * from "./ContentJSON"; export * from "./messages/Mail"; export * from "./notifications"; export * from "./relationships"; export * from "./requests"; +export * from "./ValidationErrorWithoutProperty"; diff --git a/packages/content/test/attributes/BirthDate.test.ts b/packages/content/test/attributes/BirthDate.test.ts index d29ee52b9..28b563bb2 100644 --- a/packages/content/test/attributes/BirthDate.test.ts +++ b/packages/content/test/attributes/BirthDate.test.ts @@ -1,6 +1,4 @@ -import { UserfriendlyApplicationError } from "@nmshd/app-runtime/src/UserfriendlyApplicationError"; -import { BirthDate } from "@nmshd/content"; -import { ValidationErrorWithoutProperty } from "@nmshd/content/src/ValidationErrorWithoutProperty"; +import { BirthDate, ValidationErrorWithoutProperty } from "@nmshd/content"; import { DateTime } from "luxon"; describe("creation of RepositoryAttributes of Attribute Value Type BirthDate", () => { @@ -16,9 +14,7 @@ describe("creation of RepositoryAttributes of Attribute Value Type BirthDate", ( const invalidBirthDateCall = () => { BirthDate.from({ day: 1, month: 13, year: 1990 }); }; - expect(invalidBirthDateCall).toThrow( - new UserfriendlyApplicationError("error.runtime.requestDeserialization", "BirthMonth.value:Number :: must be an integer value between 1 and 12") - ); + expect(invalidBirthDateCall).toThrow("BirthMonth.value:Number :: must be an integer value between 1 and 12"); }); test("returns an error when trying to create an invalid BirthDate with cross-component violated validation criteria for June", function () { diff --git a/packages/runtime/src/dataViews/DataViewExpander.ts b/packages/runtime/src/dataViews/DataViewExpander.ts index 86c422b36..d90dc417b 100644 --- a/packages/runtime/src/dataViews/DataViewExpander.ts +++ b/packages/runtime/src/dataViews/DataViewExpander.ts @@ -43,10 +43,10 @@ import { ShareAttributeAcceptResponseItemJSON, ShareAttributeRequestItemJSON, SurnameJSON, + ThirdPartyRelationshipAttributeQueryJSON, ValueHints, ValueHintsJSON } from "@nmshd/content"; -import { ThirdPartyRelationshipAttributeQueryJSON } from "@nmshd/content/dist/attributes/ThirdPartyRelationshipAttributeQuery"; import { CoreAddress, CoreId, IdentityController, Realm, Relationship, RelationshipStatus } from "@nmshd/transport"; import { Inject } from "typescript-ioc"; import {