@stream-io/video-client 1.11.15 → 1.12.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [1.12.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.12.0...@stream-io/video-client-1.12.1) (2024-12-11)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * reenable usage of ringing filters with useCalls ([1dffaed](https://github.com/GetStream/stream-video-js/commit/1dffaed609ac147a6030a4fb103c4dd586db775e))
11
+
12
+ ## [1.12.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.11.15...@stream-io/video-client-1.12.0) (2024-12-10)
13
+
14
+
15
+ ### Features
16
+
17
+ * Aggregate stats reports - request and response objects ([#1614](https://github.com/GetStream/stream-video-js/issues/1614)) ([8a47fea](https://github.com/GetStream/stream-video-js/commit/8a47fea491232e524b1de780c12c0d00e0f02bcd))
18
+
5
19
  ## [1.11.15](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.11.14...@stream-io/video-client-1.11.15) (2024-12-09)
6
20
 
7
21
 
@@ -8,6 +8,8 @@ import { UAParser } from 'ua-parser-js';
8
8
  import { ReplaySubject, combineLatest, BehaviorSubject, map, shareReplay, distinctUntilChanged, takeWhile, distinctUntilKeyChanged, fromEventPattern, startWith, concatMap, from, fromEvent, debounceTime, merge, pairwise, of } from 'rxjs';
9
9
  import * as SDP from 'sdp-transform';
10
10
 
11
+ /* tslint:disable */
12
+ /* eslint-disable */
11
13
  /**
12
14
  * @export
13
15
  */
@@ -3297,7 +3299,7 @@ const retryable = async (rpc, signal) => {
3297
3299
  return result;
3298
3300
  };
3299
3301
 
3300
- const version = "1.11.15";
3302
+ const version = "1.12.1";
3301
3303
  const [major, minor, patch] = version.split('.');
3302
3304
  let sdkInfo = {
3303
3305
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -10160,8 +10162,12 @@ class Call {
10160
10162
  }
10161
10163
  // update the call state with the latest event data
10162
10164
  this.state.updateFromCallResponse(event.call);
10163
- this.ringingSubject.next(true);
10164
10165
  this.watching = true;
10166
+ this.ringingSubject.next(true);
10167
+ // we remove the instance from the calls list to enable the following filter in useCalls hook
10168
+ // const calls = useCalls().filter((c) => c.ringing);
10169
+ const calls = this.clientStore.calls.filter((c) => c.cid !== this.cid);
10170
+ this.clientStore.setCalls([this, ...calls]);
10165
10171
  await this.applyDeviceConfig(false);
10166
10172
  };
10167
10173
  /**
@@ -12796,7 +12802,7 @@ class StreamClient {
12796
12802
  return await this.wsConnection.connect(this.defaultWSTimeout);
12797
12803
  };
12798
12804
  this.getUserAgent = () => {
12799
- const version = "1.11.15";
12805
+ const version = "1.12.1";
12800
12806
  return (this.userAgent ||
12801
12807
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
12802
12808
  };
@@ -13116,6 +13122,15 @@ class StreamVideoClient {
13116
13122
  this.queryCallStats = async (data = {}) => {
13117
13123
  return this.streamClient.post(`/call/stats`, data);
13118
13124
  };
13125
+ /**
13126
+ * Retrieve the list of available reports aggregated from the call stats.
13127
+ *
13128
+ * @param data Specify filter conditions like from and to (within last 30 days) and the report types
13129
+ * @returns Requested reports with (mostly) raw daily data for each report type requested
13130
+ */
13131
+ this.queryAggregateCallStats = async (data = {}) => {
13132
+ return this.streamClient.post(`/stats`, data);
13133
+ };
13119
13134
  /**
13120
13135
  * Returns a list of available data centers available for hosting calls.
13121
13136
  */