Skip to content

Commit 168990e

Browse files
Add new ACS events and update the constant values for (Azure#19705)
AcsChatParticipantAddedToThread and AcsChatParticipantRemovedFromThread as the values were changed in the swagger. Note that the constant names are not being changed to avoid build breaks.
1 parent f5fd53c commit 168990e

File tree

36 files changed

+435
-32
lines changed

36 files changed

+435
-32
lines changed

sdk/eventgrid/Azure.Messaging.EventGrid/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Release History
22

3+
## 4.1.0 (2021-03-23)
4+
5+
### New Features
6+
- Added new Azure Communication Services system events.
7+
8+
### Fixed
9+
- Fixed system mapping for `AcsChatParticipantAddedToThread` and `AcsChatParticipantRemovedFromThread`.
10+
311
## 4.0.0 (2021-03-09)
412

513
### New Features

sdk/eventgrid/Azure.Messaging.EventGrid/api/Azure.Messaging.EventGrid.netstandard2.0.cs

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,17 @@ public static partial class SystemEventNames
6666
public const string AcsChatMessageEditedInThread = "Microsoft.Communication.ChatMessageEditedInThread";
6767
public const string AcsChatMessageReceived = "Microsoft.Communication.ChatMessageReceived";
6868
public const string AcsChatMessageReceivedInThread = "Microsoft.Communication.ChatMessageReceivedInThread";
69-
public const string AcsChatParticipantAddedToThread = "Microsoft.Communication.ChatParticipantAddedToThread";
69+
public const string AcsChatParticipantAddedToThread = "Microsoft.Communication.ChatThreadParticipantAdded";
7070
public const string AcsChatParticipantAddedToThreadWithUser = "Microsoft.Communication.ChatParticipantAddedToThreadWithUser";
71-
public const string AcsChatParticipantRemovedFromThread = "Microsoft.Communication.ChatParticipantRemovedFromThread";
71+
public const string AcsChatParticipantRemovedFromThread = "Microsoft.Communication.ChatThreadParticipantRemoved";
7272
public const string AcsChatParticipantRemovedFromThreadWithUser = "Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser";
7373
public const string AcsChatThreadCreated = "Microsoft.Communication.ChatThreadCreated";
7474
public const string AcsChatThreadCreatedWithUser = "Microsoft.Communication.ChatThreadCreatedWithUser";
7575
public const string AcsChatThreadDeleted = "Microsoft.Communication.ChatThreadDeleted";
7676
public const string AcsChatThreadPropertiesUpdated = "Microsoft.Communication.ChatThreadPropertiesUpdated";
7777
public const string AcsChatThreadPropertiesUpdatedPerUser = "Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser";
7878
public const string AcsChatThreadWithUserDeleted = "Microsoft.Communication.ChatThreadWithUserDeleted";
79+
public const string AcsRecordingFileStatusUpdated = "Microsoft.Communication.RecordingFileStatusUpdated";
7980
public const string AcsSmsDeliveryReportReceived = "Microsoft.Communication.SMSDeliveryReportReceived";
8081
public const string AcsSmsReceived = "Microsoft.Communication.SMSReceived";
8182
public const string AppConfigurationKeyValueDeleted = "Microsoft.AppConfiguration.KeyValueDeleted";
@@ -188,6 +189,7 @@ public partial class AcsChatEventInThreadBaseProperties
188189
{
189190
internal AcsChatEventInThreadBaseProperties() { }
190191
public string ThreadId { get { throw null; } }
192+
public string TransactionId { get { throw null; } }
191193
}
192194
public partial class AcsChatMessageDeletedEventData : Azure.Messaging.EventGrid.SystemEvents.AcsChatMessageEventBaseProperties
193195
{
@@ -329,6 +331,26 @@ internal AcsChatThreadWithUserDeletedEventData() { }
329331
public Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel DeletedByCommunicationIdentifier { get { throw null; } }
330332
public System.DateTimeOffset? DeleteTime { get { throw null; } }
331333
}
334+
public partial class AcsRecordingChunkInfoProperties
335+
{
336+
internal AcsRecordingChunkInfoProperties() { }
337+
public string DocumentId { get { throw null; } }
338+
public string EndReason { get { throw null; } }
339+
public long? Index { get { throw null; } }
340+
}
341+
public partial class AcsRecordingFileStatusUpdatedEventData
342+
{
343+
internal AcsRecordingFileStatusUpdatedEventData() { }
344+
public long? RecordingDurationMs { get { throw null; } }
345+
public System.DateTimeOffset? RecordingStartTime { get { throw null; } }
346+
public Azure.Messaging.EventGrid.SystemEvents.AcsRecordingStorageInfoProperties RecordingStorageInfo { get { throw null; } }
347+
public string SessionEndReason { get { throw null; } }
348+
}
349+
public partial class AcsRecordingStorageInfoProperties
350+
{
351+
internal AcsRecordingStorageInfoProperties() { }
352+
public System.Collections.Generic.IReadOnlyList<Azure.Messaging.EventGrid.SystemEvents.AcsRecordingChunkInfoProperties> RecordingChunks { get { throw null; } }
353+
}
332354
public partial class AcsSmsDeliveryAttemptProperties
333355
{
334356
internal AcsSmsDeliveryAttemptProperties() { }
@@ -343,6 +365,7 @@ internal AcsSmsDeliveryReportReceivedEventData() { }
343365
public string DeliveryStatus { get { throw null; } }
344366
public string DeliveryStatusDetails { get { throw null; } }
345367
public System.DateTimeOffset? ReceivedTimestamp { get { throw null; } }
368+
public string Tag { get { throw null; } }
346369
}
347370
public partial class AcsSmsEventBaseProperties
348371
{

sdk/eventgrid/Azure.Messaging.EventGrid/src/Azure.Messaging.EventGrid.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<PropertyGroup>
33
<Description>This library can be used to publish events to Azure Event Grid and to consume events delivered by EventGrid. It also defines the event schemas for the events published to EventGrid by various Azure services.</Description>
44
<AssemblyTitle>Microsoft Azure.Messaging.EventGrid client library</AssemblyTitle>
5-
<Version>4.0.0</Version>
5+
<Version>4.1.0</Version>
6+
<ApiCompatVersion>4.0.0</ApiCompatVersion>
67
<PackageTags>Microsoft Azure EventGrid;Event Grid;Event Grid Publishing;</PackageTags>
78
<TargetFrameworks>$(RequiredTargetFrameworks)</TargetFrameworks>
89
</PropertyGroup>

sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/SystemEventExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public static object AsSystemEventData(string eventType, JsonElement data)
5050
{ SystemEventNames.AcsChatThreadWithUserDeleted, AcsChatThreadWithUserDeletedEventData.DeserializeAcsChatThreadWithUserDeletedEventData },
5151
{ SystemEventNames.AcsSmsDeliveryReportReceived, AcsSmsDeliveryReportReceivedEventData.DeserializeAcsSmsDeliveryReportReceivedEventData },
5252
{ SystemEventNames.AcsSmsReceived, AcsSmsReceivedEventData.DeserializeAcsSmsReceivedEventData },
53+
{ SystemEventNames.AcsRecordingFileStatusUpdated, AcsRecordingFileStatusUpdatedEventData.DeserializeAcsRecordingFileStatusUpdatedEventData },
5354

5455
// ContainerRegistry events
5556
{ SystemEventNames.ContainerRegistryImagePushed, ContainerRegistryImagePushedEventData.DeserializeContainerRegistryImagePushedEventData },

sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/SystemEventNames.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static class SystemEventNames
3232
/// The value of the Event Type stored in <see cref="EventGridEvent.EventType"/> and <see cref="CloudEvent.Type"/> for the
3333
/// <see cref="AcsChatParticipantAddedToThreadEventData"/> system event.
3434
/// </summary>
35-
public const string AcsChatParticipantAddedToThread = "Microsoft.Communication.ChatParticipantAddedToThread";
35+
public const string AcsChatParticipantAddedToThread = "Microsoft.Communication.ChatThreadParticipantAdded";
3636

3737
/// <summary>
3838
/// The value of the Event Type stored in <see cref="EventGridEvent.EventType"/> and <see cref="CloudEvent.Type"/> for the
@@ -44,7 +44,7 @@ public static class SystemEventNames
4444
/// The value of the Event Type stored in <see cref="EventGridEvent.EventType"/> and <see cref="CloudEvent.Type"/> for the
4545
/// <see cref="AcsChatParticipantRemovedFromThreadEventData"/> system event.
4646
/// </summary>
47-
public const string AcsChatParticipantRemovedFromThread = "Microsoft.Communication.ChatParticipantRemovedFromThread";
47+
public const string AcsChatParticipantRemovedFromThread = "Microsoft.Communication.ChatThreadParticipantRemoved";
4848

4949
/// <summary>
5050
/// The value of the Event Type stored in <see cref="EventGridEvent.EventType"/> and <see cref="CloudEvent.Type"/> for the
@@ -135,6 +135,12 @@ public static class SystemEventNames
135135
/// <see cref="AcsSmsReceivedEventData"/> system event.
136136
/// </summary>
137137
public const string AcsSmsReceived = "Microsoft.Communication.SMSReceived";
138+
139+
/// <summary>
140+
/// The value of the Event Type stored in <see cref="EventGridEvent.EventType"/> and <see cref="CloudEvent.Type"/> for the
141+
/// <see cref="AcsRecordingFileStatusUpdatedEventData"/> system event.
142+
/// </summary>
143+
public const string AcsRecordingFileStatusUpdated = "Microsoft.Communication.RecordingFileStatusUpdated";
138144
#endregion
139145

140146
#region ContainerRegistry events

sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatEventInThreadBaseProperties.Serialization.cs

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatEventInThreadBaseProperties.cs

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageDeletedInThreadEventData.Serialization.cs

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageDeletedInThreadEventData.cs

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageEditedInThreadEventData.Serialization.cs

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)