@signalwire/core
Advanced tools
Comparing version 4.2.0-dev.202410111319.91dfb3a.0 to 4.2.0-dev.202410161307.fca4c09.0
@@ -6,3 +6,2 @@ import { SagaIterator, SDKWorker, SDKWorkerParams, VideoMemberUpdatedEventParams } from '..'; | ||
}): Generator<SagaIterator<any>, void, unknown>; | ||
export declare const MEMBER_POSITION_COMPOUND_EVENTS: Map<any, any>; | ||
export declare const memberPositionWorker: SDKWorker<any>; | ||
@@ -9,0 +8,0 @@ declare type MemberEventParamsList = Map<string, VideoMemberUpdatedEventParams>; |
@@ -181,3 +181,3 @@ /// <reference types="node" /> | ||
*/ | ||
export declare type CallFabricMethod = 'call.mute' | 'call.unmute' | 'call.deaf' | 'call.undeaf' | 'call.layout.list' | 'call.member.list' | 'call.member.remove' | 'call.layout.set' | 'call.microphone.volume.set' | 'call.microphone.sensitivity.set' | 'call.lock' | 'call.unlock' | 'call.raisehand' | 'call.lowerhand'; | ||
export declare type CallFabricMethod = 'call.mute' | 'call.unmute' | 'call.deaf' | 'call.undeaf' | 'call.layout.list' | 'call.member.list' | 'call.member.remove' | 'call.member.position.set' | 'call.layout.set' | 'call.microphone.volume.set' | 'call.microphone.sensitivity.set' | 'call.lock' | 'call.unlock' | 'call.raisehand' | 'call.lowerhand'; | ||
export interface WebSocketClient { | ||
@@ -184,0 +184,0 @@ addEventListener: WebSocket['addEventListener']; |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "4.2.0-dev.202410111319.91dfb3a.0", | ||
"version": "4.2.0-dev.202410161307.fca4c09.0", | ||
"main": "dist/index.node.js", | ||
@@ -9,0 +9,0 @@ "module": "dist/index.esm.js", |
@@ -134,15 +134,2 @@ import { fork } from '@redux-saga/core/effects' | ||
export const MEMBER_POSITION_COMPOUND_EVENTS = new Map<any, any>([ | ||
[ | ||
'video.member.updated', | ||
[ | ||
'video.layout.changed', | ||
// `member.joined` and `member.left` are needed to | ||
// keep the member list up to date | ||
'video.member.joined', | ||
'video.member.left', | ||
], | ||
], | ||
]) | ||
export const memberPositionWorker: SDKWorker<any> = | ||
@@ -260,5 +247,8 @@ function* memberPositionWorker({ | ||
members.forEach((member) => { | ||
memberList.set(member.id, { | ||
const memberId = member.id || member.member_id! | ||
const roomSessionId = | ||
payload.room_session.id || payload.room_session.room_session_id! | ||
memberList.set(memberId, { | ||
room_id: payload.room_session.room_id, | ||
room_session_id: payload.room_session.id, | ||
room_session_id: roomSessionId, | ||
// At this point we don't have `member.updated` | ||
@@ -265,0 +255,0 @@ // @ts-expect-error |
@@ -43,3 +43,2 @@ import { | ||
get id() { | ||
//@ts-ignore | ||
return this._payload.member.id ?? this._payload.member.member_id | ||
@@ -49,3 +48,2 @@ } | ||
get callId() { | ||
//@ts-ignore | ||
return this._payload.member.call_id | ||
@@ -55,3 +53,2 @@ } | ||
get nodeId() { | ||
//@ts-ignore | ||
return this._payload.member.node_id | ||
@@ -58,0 +55,0 @@ } |
@@ -358,2 +358,3 @@ import type { SagaIterator } from '@redux-saga/types' | ||
| 'call.member.remove' | ||
| 'call.member.position.set' | ||
| 'call.layout.set' | ||
@@ -360,0 +361,0 @@ | 'call.microphone.volume.set' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2832907
41273