-
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.
Update ThirdPartyRelationshipAttribute nomenclature (#304)
* feat: remove ThirdPartyOwnedRelationship and add ThirdPartyRelationshipAttribute to LocalAttribute * feat: replace ThirdPartyOwnedRA deletion by ThirdPartyRA deletion * feat: replace third party owned succession by ThirdPartyRA succession * feat: adjust tests * refactor: use wording emitted instead of own shared * fix: rebasing * feat: clean up PR * feat: re-add deprecated ThirdPartyOwnedRelationshipAttributeDeletedByPeerNotificationItem for backwards-campatibility * feat: re-add runtime ThirdPartyOwnedRelationshipAttributeDeletedByPeerEvent for backwards-compatibility * feat: simplify deprecation of ThirdPartyOwnedRelationshipAttributeDeletedByPeerNotificationItem * feat: re-add deprecated deleteThirdPartyOwnedRelationshipAttributeAndNotifyPeer for backwards-compatibility * feat: integrate comments * refactor: ThirdPartyRelationshipAttributeDeletedByPeerNotificationItem test --------- Co-authored-by: Julian König <33655937+jkoenig134@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
7b0bb79
commit d2de563
Showing
31 changed files
with
365 additions
and
332 deletions.
There are no files selected for viewing
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
10 changes: 0 additions & 10 deletions
10
...n/src/modules/attributes/events/ThirdPartyOwnedRelationshipAttributeDeletedByPeerEvent.ts
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...ption/src/modules/attributes/events/ThirdPartyOwnedRelationshipAttributeSucceededEvent.ts
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
...mption/src/modules/attributes/events/ThirdPartyRelationshipAttributeDeletedByPeerEvent.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,10 @@ | ||
import { TransportDataEvent } from "@nmshd/transport"; | ||
import { LocalAttribute } from "../local/LocalAttribute"; | ||
|
||
export class ThirdPartyRelationshipAttributeDeletedByPeerEvent extends TransportDataEvent<LocalAttribute> { | ||
public static readonly namespace = "consumption.thirdPartyRelationshipAttributeDeletedByPeer"; | ||
|
||
public constructor(eventTargetAddress: string, data: LocalAttribute) { | ||
super(ThirdPartyRelationshipAttributeDeletedByPeerEvent.namespace, eventTargetAddress, data); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...onsumption/src/modules/attributes/events/ThirdPartyRelationshipAttributeSucceededEvent.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,11 @@ | ||
import { TransportDataEvent } from "@nmshd/transport"; | ||
import { LocalAttribute } from "../local/LocalAttribute"; | ||
import { AttributeSucceededEventData } from "./AttributeSucceededEventData"; | ||
|
||
export class ThirdPartyRelationshipAttributeSucceededEvent extends TransportDataEvent<AttributeSucceededEventData> { | ||
public static readonly namespace = "consumption.thirdPartyRelationshipAttributeSucceeded"; | ||
|
||
public constructor(eventTargetAddress: string, predecessor: LocalAttribute, successor: LocalAttribute) { | ||
super(ThirdPartyRelationshipAttributeSucceededEvent.namespace, eventTargetAddress, { predecessor, successor }); | ||
} | ||
} |
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
Oops, something went wrong.