File tree Expand file tree Collapse file tree 5 files changed +11
-9
lines changed
useCases/transport/relationships
transport/src/modules/relationships Expand file tree Collapse file tree 5 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,14 @@ export enum RelationshipAuditLogEntryReason {
21
21
AcceptanceOfReactivation = "AcceptanceOfReactivation" ,
22
22
RejectionOfReactivation = "RejectionOfReactivation" ,
23
23
RevocationOfReactivation = "RevocationOfReactivation" ,
24
- Decomposition = "Decomposition"
24
+ Decomposition = "Decomposition" ,
25
+ DecompositionDueToIdentityDeletion = "DecompositionDueToIdentityDeletion"
25
26
}
26
27
27
28
export interface RelationshipAuditLogEntryDTO {
28
29
createdAt : string ;
29
30
createdBy : string ;
30
- createdByDevice : string ;
31
+ createdByDevice ? : string ;
31
32
reason : RelationshipAuditLogEntryReason ;
32
33
oldStatus ?: RelationshipStatus ;
33
34
newStatus : RelationshipStatus ;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export class RelationshipMapper {
30
30
return {
31
31
createdAt : entry . createdAt . toString ( ) ,
32
32
createdBy : entry . createdBy . toString ( ) ,
33
- createdByDevice : entry . createdByDevice . toString ( ) ,
33
+ createdByDevice : entry . createdByDevice ? .toString ( ) ,
34
34
reason : entry . reason ,
35
35
oldStatus : entry . oldStatus ,
36
36
newStatus : entry . newStatus
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export class RelationshipAuditLog {
9
9
return RelationshipAuditLogEntry . from ( {
10
10
createdAt : CoreDate . from ( entry . createdAt ) ,
11
11
createdBy : CoreAddress . from ( entry . createdBy ) ,
12
- createdByDevice : CoreId . from ( entry . createdByDevice ) ,
12
+ createdByDevice : entry . createdByDevice ? CoreId . from ( entry . createdByDevice ) : undefined ,
13
13
reason : entry . reason ,
14
14
oldStatus : entry . oldStatus ,
15
15
newStatus : entry . newStatus
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { RelationshipStatus } from "../transmission/RelationshipStatus";
6
6
export interface IRelationshipAuditLogEntry extends ISerializable {
7
7
createdAt : ICoreDate ;
8
8
createdBy : ICoreAddress ;
9
- createdByDevice : ICoreId ;
9
+ createdByDevice ? : ICoreId ;
10
10
reason : RelationshipAuditLogEntryReason ;
11
11
oldStatus ?: RelationshipStatus ;
12
12
newStatus : RelationshipStatus ;
@@ -22,9 +22,9 @@ export class RelationshipAuditLogEntry extends Serializable implements IRelation
22
22
@serialize ( )
23
23
public createdBy : CoreAddress ;
24
24
25
- @validate ( )
25
+ @validate ( { nullable : true } )
26
26
@serialize ( )
27
- public createdByDevice : CoreId ;
27
+ public createdByDevice ? : CoreId ;
28
28
29
29
@validate ( {
30
30
customValidator : ( v ) => ( ! Object . values ( RelationshipAuditLogEntryReason ) . includes ( v ) ? `must be one of: ${ Object . values ( RelationshipAuditLogEntryReason ) } ` : undefined )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export interface BackboneRelationshipAuditLog extends Array<BackboneRelationship
5
5
export interface BackboneRelationshipAuditLogEntry {
6
6
createdAt : string ;
7
7
createdBy : string ;
8
- createdByDevice : string ;
8
+ createdByDevice ? : string ;
9
9
reason : RelationshipAuditLogEntryReason ;
10
10
oldStatus ?: RelationshipStatus ;
11
11
newStatus : RelationshipStatus ;
@@ -21,5 +21,6 @@ export enum RelationshipAuditLogEntryReason {
21
21
AcceptanceOfReactivation = "AcceptanceOfReactivation" ,
22
22
RejectionOfReactivation = "RejectionOfReactivation" ,
23
23
RevocationOfReactivation = "RevocationOfReactivation" ,
24
- Decomposition = "Decomposition"
24
+ Decomposition = "Decomposition" ,
25
+ DecompositionDueToIdentityDeletion = "DecompositionDueToIdentityDeletion"
25
26
}
You can’t perform that action at this time.
0 commit comments