Skip to content

Commit c317bb1

Browse files
authored
Fix/imports (#114)
* fix: export ValidationErrorWithoutProperty * fix: update imports
1 parent c7ecde4 commit c317bb1

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

packages/content/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
export * from "./ContentJSON";
21
export * from "./attributes";
32
export * from "./buildInformation";
3+
export * from "./ContentJSON";
44
export * from "./messages/Mail";
55
export * from "./notifications";
66
export * from "./relationships";
77
export * from "./requests";
8+
export * from "./ValidationErrorWithoutProperty";

packages/content/test/attributes/BirthDate.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { UserfriendlyApplicationError } from "@nmshd/app-runtime/src/UserfriendlyApplicationError";
2-
import { BirthDate } from "@nmshd/content";
3-
import { ValidationErrorWithoutProperty } from "@nmshd/content/src/ValidationErrorWithoutProperty";
1+
import { BirthDate, ValidationErrorWithoutProperty } from "@nmshd/content";
42
import { DateTime } from "luxon";
53

64
describe("creation of RepositoryAttributes of Attribute Value Type BirthDate", () => {
@@ -16,9 +14,7 @@ describe("creation of RepositoryAttributes of Attribute Value Type BirthDate", (
1614
const invalidBirthDateCall = () => {
1715
BirthDate.from({ day: 1, month: 13, year: 1990 });
1816
};
19-
expect(invalidBirthDateCall).toThrow(
20-
new UserfriendlyApplicationError("error.runtime.requestDeserialization", "BirthMonth.value:Number :: must be an integer value between 1 and 12")
21-
);
17+
expect(invalidBirthDateCall).toThrow("BirthMonth.value:Number :: must be an integer value between 1 and 12");
2218
});
2319

2420
test("returns an error when trying to create an invalid BirthDate with cross-component violated validation criteria for June", function () {

packages/runtime/src/dataViews/DataViewExpander.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ import {
4343
ShareAttributeAcceptResponseItemJSON,
4444
ShareAttributeRequestItemJSON,
4545
SurnameJSON,
46+
ThirdPartyRelationshipAttributeQueryJSON,
4647
ValueHints,
4748
ValueHintsJSON
4849
} from "@nmshd/content";
49-
import { ThirdPartyRelationshipAttributeQueryJSON } from "@nmshd/content/dist/attributes/ThirdPartyRelationshipAttributeQuery";
5050
import { CoreAddress, CoreId, IdentityController, Realm, Relationship, RelationshipStatus } from "@nmshd/transport";
5151
import { Inject } from "typescript-ioc";
5252
import {

0 commit comments

Comments
 (0)