@stream-io/video-client 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -467,6 +467,12 @@ export interface CallCreatedEvent {
467
467
  * @interface CallEndedEvent
468
468
  */
469
469
  export interface CallEndedEvent {
470
+ /**
471
+ *
472
+ * @type {CallResponse}
473
+ * @memberof CallEndedEvent
474
+ */
475
+ call: CallResponse;
470
476
  /**
471
477
  *
472
478
  * @type {string}
@@ -1281,6 +1287,18 @@ export interface CallSessionResponse {
1281
1287
  * @memberof CallSessionResponse
1282
1288
  */
1283
1289
  id: string;
1290
+ /**
1291
+ *
1292
+ * @type {string}
1293
+ * @memberof CallSessionResponse
1294
+ */
1295
+ live_ended_at?: string;
1296
+ /**
1297
+ *
1298
+ * @type {string}
1299
+ * @memberof CallSessionResponse
1300
+ */
1301
+ live_started_at?: string;
1284
1302
  /**
1285
1303
  *
1286
1304
  * @type {Array<CallParticipantResponse>}
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "0.2.0";
1
+ export declare const version = "0.2.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/video-client",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "packageManager": "yarn@3.2.4",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -81,6 +81,7 @@ export const watchCallEnded = (call: Call) => {
81
81
  call.state.callingState === CallingState.JOINED ||
82
82
  call.state.callingState === CallingState.JOINING
83
83
  ) {
84
+ call.state.setMetadata(event.call);
84
85
  await call.leave();
85
86
  }
86
87
  };
@@ -473,6 +473,12 @@ export interface CallCreatedEvent {
473
473
  * @interface CallEndedEvent
474
474
  */
475
475
  export interface CallEndedEvent {
476
+ /**
477
+ *
478
+ * @type {CallResponse}
479
+ * @memberof CallEndedEvent
480
+ */
481
+ call: CallResponse;
476
482
  /**
477
483
  *
478
484
  * @type {string}
@@ -1279,6 +1285,18 @@ export interface CallSessionResponse {
1279
1285
  * @memberof CallSessionResponse
1280
1286
  */
1281
1287
  id: string;
1288
+ /**
1289
+ *
1290
+ * @type {string}
1291
+ * @memberof CallSessionResponse
1292
+ */
1293
+ live_ended_at?: string;
1294
+ /**
1295
+ *
1296
+ * @type {string}
1297
+ * @memberof CallSessionResponse
1298
+ */
1299
+ live_started_at?: string;
1282
1300
  /**
1283
1301
  *
1284
1302
  * @type {Array<CallParticipantResponse>}