1.0.0 (2024-02-29)
Features Added
- Introduced additional constructors for
MessageTemplateClient
andNotificationMessagesClient
to supportTokenCredential
authentication methods. - Introduced a variety of Notification Content models such as
MediaNotificationContent
,TemplateNotificationContent
, andTextNotificationContent
, enabling more polymorphic notification types. - Introduced a variety of message template value models such as
MessageTemplateDocument
,MessageTemplateImage
,MessageTemplateVideo
, etc., enabling more polymorphic message template values. - Added new namespace specific to WhatsApp message templates, including
WhatsAppMessageTemplateBindings
,WhatsAppMessageTemplateBindingsButton
, andWhatsAppMessageButtonSubType
, etc. - Updated
CommunicationMessagesClientOptions
to include a new service versionV2024_02_01
and expandedCommunicationMessagesModelFactory
with factory methods for new model types.
Breaking Changes
- Removed the
SendMessageOptions
class in favor of more granular method overloads (NotificationContent
subclasses) inNotificationMessagesClient
. - Changed the way to construct MessageTemplate including message template bindings and values.
- Changed
MessageTemplateItem
class to support polymorphism, with the introduction of a child classWhatsAppMessageTemplateItem
containing WhatsApp-specific template contracts. - Added `GeoPosition`` struct to encapsulate geographic coordinates into a single entity. This change affects any functionality that previously required separate latitude and longitude inputs.