Skip to content

Commit

Permalink
[communication-identity] Export some missing *Properties types in t…
Browse files Browse the repository at this point in the history
…he API (Azure#25758)

* Export missing property types

* identifier_from_raw_id is exposed from chat modality

* updated chat changelog

Co-authored-by: Aigerim <[email protected]>
  • Loading branch information
prprabhu-ms and AikoBB authored Aug 23, 2022
1 parent ae20346 commit b64b46a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions sdk/communication/azure-communication-chat/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Added support for proactive refreshing of tokens
- `CommunicationTokenCredential` exposes a new boolean keyword argument `proactive_refresh` that defaults to `False`. If set to `True`, the refreshing of the token will be scheduled in the background ensuring continuous authentication state.
- Added disposal function `close` for `CommunicationTokenCredential`.
- Added `identifier_from_raw_id` and ensured that `CommunicationIdentifier.raw_id` is populated on creation. Together, these can be used to translate between a `CommunicationIdentifier` and its underlying canonical raw ID representation. Developers can now use the raw ID as an encoded format for identifiers to store in their databases or as stable keys in general.

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
CommunicationIdentifierKind,
CommunicationUserIdentifier,
CommunicationUserProperties,
identifier_from_raw_id,
PhoneNumberIdentifier,
PhoneNumberProperties,
MicrosoftTeamsUserIdentifier,
Expand All @@ -48,6 +49,7 @@
'CommunicationIdentifierKind',
'CommunicationUserIdentifier',
'CommunicationUserProperties',
'identifier_from_raw_id',
'PhoneNumberIdentifier',
'PhoneNumberProperties',
'MicrosoftTeamsUserIdentifier',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Features Added

- Exported types `MicrosoftTeamsUserIdentifier`, `PhoneNumberIdentifier`, `UnknownIdentifier` for non Azure Communication Services `CommunicationIdentifier` identities.
- Exported types `MicrosoftTeamsUserIdentifier`, `PhoneNumberIdentifier`, `UnknownIdentifier` for non Azure Communication Services `CommunicationIdentifier` identities. Exported related types: `MicrosoftTeamsUserProperties` and `PhoneNumberProperties`.
- Added `identifier_from_raw_id` and ensured that `CommunicationIdentifier.raw_id` is populated on creation. Together, these can be used to translate between a `CommunicationIdentifier` and its underlying canonical raw ID representation. Developers can now use the raw ID as an encoded format for identifiers to store in their databases or as stable keys in general.

### Breaking Changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
CommunicationIdentifierKind,
CommunicationUserIdentifier,
CommunicationUserProperties,
identifier_from_raw_id,
MicrosoftTeamsUserIdentifier,
MicrosoftTeamsUserProperties,
PhoneNumberIdentifier,
UnknownIdentifier,
identifier_from_raw_id
PhoneNumberProperties,
UnknownIdentifier
)

__all__ = [
Expand All @@ -34,8 +36,10 @@
'CommunicationIdentifierKind',
'CommunicationUserIdentifier',
'CommunicationUserProperties',
'identifier_from_raw_id',
'MicrosoftTeamsUserIdentifier',
'MicrosoftTeamsUserProperties',
'PhoneNumberIdentifier',
'UnknownIdentifier',
'identifier_from_raw_id'
'PhoneNumberProperties',
'UnknownIdentifier'
]

0 comments on commit b64b46a

Please sign in to comment.