-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CF SDK: Allow filtering with Address API (#948)
- Loading branch information
Showing
6 changed files
with
227 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
'@signalwire/core': patch | ||
'@signalwire/js': patch | ||
--- | ||
|
||
Allow user to pass filters to `getAddress` function | ||
|
||
|
||
```js | ||
const addressData = await client.getAddresses({ | ||
type: 'room', | ||
displayName: 'domain app', | ||
}) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export interface FetchAddressResponse { | ||
data: | ||
| Array<{ | ||
display_name: string | ||
name: string | ||
preview_url?: string | ||
cover_url?: string | ||
resource_id: string | ||
type: string | ||
channels: { | ||
audio?: string | ||
messaging?: string | ||
video?: string | ||
} | ||
}> | ||
| [] | ||
links: { | ||
first: string | ||
self: string | ||
next?: string | ||
prev?: string | ||
} | ||
} | ||
|
||
export interface GetAddressesOptions { | ||
type?: string | ||
displayName?: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters