1
0
mirror of https://github.com/bitwarden/server synced 2026-02-25 17:03:22 +00:00

PM-31725 updated properties to match the pull in public/events (#6959)

This commit is contained in:
Vijay Oommen
2026-02-23 17:00:21 -06:00
committed by GitHub
parent 98d6217b9b
commit 5c77ae9810
2 changed files with 105 additions and 0 deletions

View File

@@ -13,10 +13,12 @@ public class IntegrationTemplateContext(EventMessage eventMessage)
public string DomainName => Event.DomainName;
public string IpAddress => Event.IpAddress;
public DeviceType? DeviceType => Event.DeviceType;
public int? DeviceTypeId => Event.DeviceType is not null ? (int)Event.DeviceType : null;
public Guid? ActingUserId => Event.ActingUserId;
public Guid? OrganizationUserId => Event.OrganizationUserId;
public DateTime Date => Event.Date;
public EventType Type => Event.Type;
public int TypeId => (int)Event.Type;
public Guid? UserId => Event.UserId;
public Guid? OrganizationId => Event.OrganizationId;
public Guid? CipherId => Event.CipherId;
@@ -51,4 +53,6 @@ public class IntegrationTemplateContext(EventMessage eventMessage)
public Organization? Organization { get; set; }
public string? OrganizationName => Organization?.DisplayName();
public int? SystemUser => Event.SystemUser is not null ? (int)Event.SystemUser : null;
}