@stream-io/video-client 0.0.2-alpha.2 → 0.0.2-alpha.3

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,15 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.0.2-alpha.3](https://github.com/GetStream/stream-video-js/compare/client0.0.2-alpha.2...client0.0.2-alpha.3) (2023-05-30)
6
+
7
+
8
+ ### Features
9
+
10
+ * optional callSessionId in queryRecordings ([#563](https://github.com/GetStream/stream-video-js/issues/563)) ([e2dac22](https://github.com/GetStream/stream-video-js/commit/e2dac2298372d94db867195aa52336d51270c502))
11
+
12
+
13
+
5
14
  ## [0.0.2-alpha.2](https://github.com/GetStream/stream-video-js/compare/client0.0.2-alpha.1...client0.0.2-alpha.2) (2023-05-27)
6
15
 
7
16
 
@@ -8582,7 +8582,6 @@ class Call {
8582
8582
  * @param data the request data.
8583
8583
  */
8584
8584
  this.updateCallMembers = (data) => __awaiter(this, void 0, void 0, function* () {
8585
- // FIXME: OL: implement kick-users
8586
8585
  return this.streamClient.post(`${this.streamClientBasePath}/members`, data);
8587
8586
  });
8588
8587
  /**
@@ -9091,13 +9090,20 @@ class Call {
9091
9090
  });
9092
9091
  };
9093
9092
  /**
9094
- * Performs HTTP request to retrieve the list of recordings for the current call
9095
- * Updates the call state with provided array of CallRecording objects
9093
+ * Retrieves the list of recordings for the current call or call session.
9094
+ * Updates the call state with the returned array of CallRecording objects.
9095
+ *
9096
+ * If `callSessionId` is provided, it will return the recordings for that call session.
9097
+ * Otherwise, all recordings for the current call will be returned.
9098
+ *
9099
+ * @param callSessionId the call session id to retrieve recordings for.
9096
9100
  */
9097
- this.queryRecordings = () => __awaiter(this, void 0, void 0, function* () {
9098
- // FIXME: this is a temporary setting to take call ID as session ID
9099
- const sessionId = this.id;
9100
- const response = yield this.streamClient.get(`${this.streamClientBasePath}/${sessionId}/recordings`);
9101
+ this.queryRecordings = (callSessionId) => __awaiter(this, void 0, void 0, function* () {
9102
+ let endpoint = this.streamClientBasePath;
9103
+ if (callSessionId) {
9104
+ endpoint = `${endpoint}/${callSessionId}`;
9105
+ }
9106
+ const response = yield this.streamClient.get(`${endpoint}/recordings`);
9101
9107
  this.state.setCallRecordingsList(response.recordings);
9102
9108
  return response;
9103
9109
  });
@@ -10870,7 +10876,7 @@ class StreamClient {
10870
10876
  }
10871
10877
  getUserAgent() {
10872
10878
  return (this.userAgent ||
10873
- `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.2-alpha.1"}`);
10879
+ `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.2-alpha.2"}`);
10874
10880
  }
10875
10881
  setUserAgent(userAgent) {
10876
10882
  this.userAgent = userAgent;