File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import {
32
32
} from './utils' ;
33
33
34
34
import type {
35
+ ActiveLiveLocationsAPIResponse ,
35
36
APIErrorResponse ,
36
37
APIResponse ,
37
38
AppSettings ,
@@ -188,7 +189,6 @@ import type {
188
189
SendFileAPIResponse ,
189
190
SharedLocationRequest ,
190
191
SharedLocationResponse ,
191
- SharedLocationsAPIResponse ,
192
192
SortParam ,
193
193
StreamChatOptions ,
194
194
SyncOptions ,
@@ -2491,11 +2491,13 @@ export class StreamChat {
2491
2491
2492
2492
/** getSharedLocations
2493
2493
*
2494
- * @returns {Promise<SharedLocationsAPIResponse > } The server response
2494
+ * @returns {Promise<ActiveLiveLocationsAPIResponse > } The server response
2495
2495
*
2496
2496
*/
2497
2497
async getSharedLocations ( ) {
2498
- return await this . get < SharedLocationsAPIResponse > ( this . baseURL + `/users/locations` ) ;
2498
+ return await this . get < ActiveLiveLocationsAPIResponse > (
2499
+ this . baseURL + `/users/locations` ,
2500
+ ) ;
2499
2501
}
2500
2502
2501
2503
/** muteUser - mutes a user
Original file line number Diff line number Diff line change @@ -3925,8 +3925,8 @@ export type DraftMessage = {
3925
3925
type ?: MessageLabel ;
3926
3926
} ;
3927
3927
3928
- export type SharedLocationsAPIResponse = APIResponse & {
3929
- live_locations : SharedLocationResponse [ ] ;
3928
+ export type ActiveLiveLocationsAPIResponse = APIResponse & {
3929
+ active_live_locations : SharedLocationResponse [ ] ;
3930
3930
} ;
3931
3931
3932
3932
export type SharedLocationResponse = {
You can’t perform that action at this time.
0 commit comments