@signalwire/js
Advanced tools
Comparing version 3.28.0-dev.202408051204.fe44c5d.0 to 3.28.0-dev.202408071114.d257907.0
@@ -63,5 +63,8 @@ import type { Channel, SagaIterator } from '@redux-saga/types'; | ||
* Converts from: | ||
* { event_type: <value>, params: <value> } | ||
* | ||
* `{ event_type: <value>, params: <value> }` | ||
* | ||
* into | ||
* { type: <value>, payload: <value> } | ||
* | ||
* `{ type: <value>, payload: <value> }` | ||
*/ | ||
@@ -68,0 +71,0 @@ export declare type MapToPubSubShape<T> = { |
@@ -5,5 +5,6 @@ import { Conversation } from './Conversation'; | ||
private conversation; | ||
private data; | ||
constructor(conversation: Conversation, data: ConversationResponse); | ||
private payload; | ||
constructor(conversation: Conversation, payload: ConversationResponse); | ||
get id(): string; | ||
get addressId(): string; | ||
get createdAt(): number; | ||
@@ -10,0 +11,0 @@ get lastMessageAt(): number; |
@@ -171,4 +171,5 @@ import type { ConversationEventParams, UserOptions } from '@signalwire/core'; | ||
export interface ConversationContract { | ||
readonly addressId: string; | ||
readonly createdAt: number; | ||
readonly id: string; | ||
readonly createdAt: number; | ||
readonly lastMessageAt: number; | ||
@@ -197,2 +198,3 @@ readonly metadata: Record<string, any>; | ||
export interface ConversationResponse { | ||
address_id: string; | ||
created_at: number; | ||
@@ -199,0 +201,0 @@ id: string; |
@@ -34,3 +34,3 @@ export declare const RTCPeerConnection: (config: RTCConfiguration) => RTCPeerConnection; | ||
* > Some browsers do not support output device selection. You can check by | ||
* > calling [`supportsMediaOutput`](supportsmediaoutput). | ||
* > calling [`supportsMediaOutput`](supportsMediaOutput). | ||
* | ||
@@ -37,0 +37,0 @@ * @param el target element |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "3.28.0-dev.202408051204.fe44c5d.0", | ||
"version": "3.28.0-dev.202408071114.d257907.0", | ||
"main": "dist/index.js", | ||
@@ -43,4 +43,4 @@ "module": "dist/index.esm.js", | ||
"dependencies": { | ||
"@signalwire/core": "4.2.0-dev.202408051204.fe44c5d.0", | ||
"@signalwire/webrtc": "3.12.2-dev.202408051204.fe44c5d.0", | ||
"@signalwire/core": "4.2.0-dev.202408071114.d257907.0", | ||
"@signalwire/webrtc": "3.12.2-dev.202408071114.d257907.0", | ||
"jwt-decode": "^3.1.2" | ||
@@ -47,0 +47,0 @@ }, |
@@ -5,3 +5,3 @@ # @signalwire/js | ||
[![Build Status](https://ci.signalwire.com/api/badges/signalwire/signalwire-js/status.svg)](https://ci.signalwire.com/signalwire/signalwire-js) ![NPM](https://img.shields.io/npm/v/@signalwire/js.svg?color=brightgreen) | ||
[![The build status of the package @signalwire/js.](https://ci.signalwire.com/api/badges/signalwire/signalwire-js/status.svg)](https://ci.signalwire.com/signalwire/signalwire-js) ![The NPM shield for the package @signalwire/js.](https://img.shields.io/npm/v/@signalwire/js.svg?color=brightgreen) | ||
@@ -37,3 +37,3 @@ The RELAY Browser SDK transforms your standard browser into a realtime media engine, enabling developers to directly make audio and video calls to phone numbers, SIP endpoints, and other browsers. Using the JavaScript SDK you can add immersive, scalable communication - from video conferences and softphones to click-to-call and mobile gaming - all available right in your own web pages and applications. | ||
SignalWire JavaScript SDK follows Semantic Versioning 2.0 as defined at <http://semver.org>. | ||
SignalWire JavaScript SDK follows Semantic Versioning 2.0 as defined at [http://semver.org](http://semver.org). | ||
@@ -40,0 +40,0 @@ ## License |
@@ -12,23 +12,27 @@ import { Conversation } from './Conversation' | ||
private conversation: Conversation, | ||
private data: ConversationResponse | ||
private payload: ConversationResponse | ||
) {} | ||
get id() { | ||
return this.data.id | ||
return this.payload.id | ||
} | ||
get addressId() { | ||
return this.payload.address_id | ||
} | ||
get createdAt() { | ||
return this.data.created_at | ||
return this.payload.created_at | ||
} | ||
get lastMessageAt() { | ||
return this.data.last_message_at | ||
return this.payload.last_message_at | ||
} | ||
get metadata() { | ||
return this.data.metadata | ||
return this.payload.metadata | ||
} | ||
get name() { | ||
return this.data.name | ||
return this.payload.name | ||
} | ||
@@ -35,0 +39,0 @@ |
@@ -200,4 +200,5 @@ import type { ConversationEventParams, UserOptions } from '@signalwire/core' | ||
export interface ConversationContract { | ||
readonly addressId: string | ||
readonly createdAt: number | ||
readonly id: string | ||
readonly createdAt: number | ||
readonly lastMessageAt: number | ||
@@ -235,2 +236,3 @@ readonly metadata: Record<string, any> | ||
export interface ConversationResponse { | ||
address_id: string | ||
created_at: number | ||
@@ -237,0 +239,0 @@ id: string |
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
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
3079695
30945
+ Added@signalwire/core@4.2.0-dev.202408071114.d257907.0(transitive)
+ Added@signalwire/webrtc@3.12.2-dev.202408071114.d257907.0(transitive)
- Removed@signalwire/core@4.2.0-dev.202408051204.fe44c5d.0(transitive)
- Removed@signalwire/webrtc@3.12.2-dev.202408051204.fe44c5d.0(transitive)