-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide backbone-defined public RelationshipTemplate references (#336)
* feat: add public relationship references POC * chore: nomenclature * chore: update index * chore: update schema * chore: typo * chore: pr comments * chore: pr comments * chore: use barrels * test: add tests for new backbone version * test: add rest client mock * chore: add missing file * chore: fix eslint * chore: fix eslint * chore: test naming * chore: use standard mock strings * Update packages/runtime/src/useCases/transport/publicRelationshipTemplateReferences/PublicRelationshipTemplateReferenceMapper.ts Co-authored-by: Julian König <[email protected]> * chore: switch to mockito * chore: remove unused file * Update packages/transport/test/modules/publicRelationshipTemplateReferences/PublicRelationshipTemplateReferencesController.test.ts Co-authored-by: Milena Czierlinski <[email protected]> * chore: simpler naming * chore: simplify / order tests --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Julian König <[email protected]> Co-authored-by: Milena Czierlinski <[email protected]> Co-authored-by: Julian König <[email protected]>
- Loading branch information
1 parent
226d09b
commit 4abbafe
Showing
21 changed files
with
612 additions
and
374 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...runtime/src/extensibility/facades/transport/PublicRelationshipTemplateReferencesFacade.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Result } from "@js-soft/ts-utils"; | ||
import { Inject } from "@nmshd/typescript-ioc"; | ||
import { PublicRelationshipTemplateReferenceDTO } from "../../../types"; | ||
import { GetPublicRelationshipTemplateReferencesUseCase } from "../../../useCases"; | ||
|
||
export class PublicRelationshipTemplateReferencesFacade { | ||
public constructor(@Inject private readonly getPublicRelationshipTemplateReferencesUseCase: GetPublicRelationshipTemplateReferencesUseCase) {} | ||
|
||
public async getPublicRelationshipTemplateReferences(): Promise<Result<PublicRelationshipTemplateReferenceDTO[]>> { | ||
return await this.getPublicRelationshipTemplateReferencesUseCase.execute(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
packages/runtime/src/types/transport/PublicRelationshipTemplateReferenceDTO.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export interface PublicRelationshipTemplateReferenceDTO { | ||
title: string; | ||
description: string; | ||
truncatedReference: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.