From 60e36a8f0fb9c1f12f33ec83c22bb4602fb6524a Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Thu, 19 May 2022 10:58:47 -0400 Subject: [PATCH] Add InstallationId to event responses (#2007) --- src/Api/Models/Public/Response/EventResponseModel.cs | 6 ++++++ src/Api/Models/Response/EventResponseModel.cs | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/Api/Models/Public/Response/EventResponseModel.cs b/src/Api/Models/Public/Response/EventResponseModel.cs index 54c5ce763c..54d87fcbd4 100644 --- a/src/Api/Models/Public/Response/EventResponseModel.cs +++ b/src/Api/Models/Public/Response/EventResponseModel.cs @@ -27,6 +27,7 @@ namespace Bit.Api.Models.Public.Response Date = ev.Date; Device = ev.DeviceType; IpAddress = ev.IpAddress; + InstallationId = ev.InstallationId; } /// @@ -71,6 +72,11 @@ namespace Bit.Api.Models.Public.Response /// a2549f79-a71f-4eb9-9234-eb7247333f94 public Guid? ActingUserId { get; set; } /// + /// The Unique identifier of the Installation that performed the event. + /// + /// + public Guid? InstallationId { get; set; } + /// /// The date/timestamp when the event occurred. /// [Required] diff --git a/src/Api/Models/Response/EventResponseModel.cs b/src/Api/Models/Response/EventResponseModel.cs index 8d3a3c6d54..6275849139 100644 --- a/src/Api/Models/Response/EventResponseModel.cs +++ b/src/Api/Models/Response/EventResponseModel.cs @@ -30,6 +30,7 @@ namespace Bit.Api.Models.Response Date = ev.Date; DeviceType = ev.DeviceType; IpAddress = ev.IpAddress; + InstallationId = ev.InstallationId; } public EventType Type { get; set; } @@ -44,6 +45,7 @@ namespace Bit.Api.Models.Response public Guid? ProviderUserId { get; set; } public Guid? ProviderOrganizationId { get; set; } public Guid? ActingUserId { get; set; } + public Guid? InstallationId { get; set; } public DateTime Date { get; set; } public DeviceType? DeviceType { get; set; } public string IpAddress { get; set; }