@vonage/client-sdk 1.3.0-rc.3 → 1.3.0-rc.5

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.
@@ -19587,16 +19587,6 @@ function requireClientsdkClientcore () {
19587
19587
  setMetadataFor(Companion_121, 'Companion', objectMeta);
19588
19588
  setMetadataFor($serializer_143, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
19589
19589
  setMetadataFor(SessionTerminatedEvent, 'SessionTerminatedEvent', classMeta, VOID, [SocketEvent], VOID, {0: $serializer_getInstance_143});
19590
- function onRTCHangup(conversationId, legId, hangup) {
19591
- }
19592
- function onRTCTransfer(conversationId, legId) {
19593
- }
19594
- function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
19595
- }
19596
- setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
19597
- function onConversationEvent(event) {
19598
- }
19599
- setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
19600
19590
  function onAudioSay() {
19601
19591
  }
19602
19592
  function onAudioMuteUpdate(conversationId, legId, isMuted) {
@@ -19606,7 +19596,17 @@ function requireClientsdkClientcore () {
19606
19596
  function onAudioDTMFUpdate(conversationId, legId, digits) {
19607
19597
  }
19608
19598
  setMetadataFor(AudioEventListener, 'AudioEventListener', interfaceMeta);
19609
- setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
19599
+ function onConversationEvent(event) {
19600
+ }
19601
+ setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
19602
+ function onRTCHangup(conversationId, legId, hangup) {
19603
+ }
19604
+ function onRTCTransfer(conversationId, legId) {
19605
+ }
19606
+ function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
19607
+ }
19608
+ setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
19609
+ setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [AudioEventListener, ConversationEventListener, RTCEventListener]);
19610
19610
  setMetadataFor(ChatAPIImpl, 'ChatAPIImpl', classMeta, VOID, [ChatAPI]);
19611
19611
  setMetadataFor(LoggingLevel, 'LoggingLevel', classMeta, Enum);
19612
19612
  setMetadataFor(ClientConfigRegion, 'ClientConfigRegion', classMeta, Enum);
@@ -19715,7 +19715,7 @@ function requireClientsdkClientcore () {
19715
19715
  setMetadataFor(HangupReason, 'HangupReason', classMeta, Enum);
19716
19716
  setMetadataFor(LegStatus, 'LegStatus', classMeta, Enum);
19717
19717
  setMetadataFor(CallDisconnectReason, 'CallDisconnectReason', classMeta, Enum);
19718
- setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
19718
+ setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [AudioEventListener, ConversationEventListener, RTCEventListener]);
19719
19719
  setMetadataFor(VoiceAPIImpl, 'VoiceAPIImpl', classMeta);
19720
19720
  setMetadataFor(CallEvent, 'CallEvent', interfaceMeta);
19721
19721
  setMetadataFor(SetupOutboundCall, 'SetupOutboundCall', classMeta, VOID, [CallEvent]);
@@ -54855,10 +54855,8 @@ function requireClientsdkClientcore () {
54855
54855
  }
54856
54856
  function SocketClientDelegate() {
54857
54857
  }
54858
- function SocketConfig(query, forceNew, path, transports, reconnection, reconnectionAttempts, reconnectionDelay, randomizationFactor) {
54859
- query = query === VOID ? '' : query;
54858
+ function SocketConfig(query, path, forceNew, transports, reconnection, reconnectionAttempts, reconnectionDelay, randomizationFactor) {
54860
54859
  forceNew = forceNew === VOID ? true : forceNew;
54861
- path = path === VOID ? '/rtc/' : path;
54862
54860
  var tmp;
54863
54861
  if (transports === VOID) {
54864
54862
  // Inline function 'kotlin.arrayOf' call
@@ -54874,8 +54872,8 @@ function requireClientsdkClientcore () {
54874
54872
  reconnectionDelay = reconnectionDelay === VOID ? 5 : reconnectionDelay;
54875
54873
  randomizationFactor = randomizationFactor === VOID ? 0.75 : randomizationFactor;
54876
54874
  this.h39_1 = query;
54877
- this.i39_1 = forceNew;
54878
- this.j39_1 = path;
54875
+ this.i39_1 = path;
54876
+ this.j39_1 = forceNew;
54879
54877
  this.k39_1 = transports;
54880
54878
  this.l39_1 = reconnection;
54881
54879
  this.m39_1 = reconnectionAttempts;
@@ -54883,12 +54881,12 @@ function requireClientsdkClientcore () {
54883
54881
  this.o39_1 = randomizationFactor;
54884
54882
  }
54885
54883
  protoOf(SocketConfig).toString = function () {
54886
- return 'SocketConfig(query=' + this.h39_1 + ', forceNew=' + this.i39_1 + ', path=' + this.j39_1 + ', transports=' + toString(this.k39_1) + ', reconnection=' + this.l39_1 + ', reconnectionAttempts=' + toString(this.m39_1) + ', reconnectionDelay=' + toString(this.n39_1) + ', randomizationFactor=' + toString(this.o39_1) + ')';
54884
+ return 'SocketConfig(query=' + this.h39_1 + ', path=' + this.i39_1 + ', forceNew=' + this.j39_1 + ', transports=' + toString(this.k39_1) + ', reconnection=' + this.l39_1 + ', reconnectionAttempts=' + toString(this.m39_1) + ', reconnectionDelay=' + toString(this.n39_1) + ', randomizationFactor=' + toString(this.o39_1) + ')';
54887
54885
  };
54888
54886
  protoOf(SocketConfig).hashCode = function () {
54889
54887
  var result = getStringHashCode(this.h39_1);
54890
- result = imul(result, 31) + (this.i39_1 | 0) | 0;
54891
- result = imul(result, 31) + getStringHashCode(this.j39_1) | 0;
54888
+ result = imul(result, 31) + getStringHashCode(this.i39_1) | 0;
54889
+ result = imul(result, 31) + (this.j39_1 | 0) | 0;
54892
54890
  result = imul(result, 31) + hashCode(this.k39_1) | 0;
54893
54891
  result = imul(result, 31) + (this.l39_1 | 0) | 0;
54894
54892
  result = imul(result, 31) + hashCode(this.m39_1) | 0;
@@ -55031,7 +55029,7 @@ function requireClientsdkClientcore () {
55031
55029
  $logger.y2x(VOID, SocketConnectionMiddleware$lambda$lambda$lambda_2(host, path));
55032
55030
  tmp_9 = Unit_getInstance();
55033
55031
  } else {
55034
- var config = new SocketConfig(query);
55032
+ var config = new SocketConfig(query, path);
55035
55033
  $ws.x35(host, path, config.m39_1, config.n39_1, config.o39_1, token, sessionId, query);
55036
55034
  StaticConfig_getInstance();
55037
55035
  $ws.b36(5000, SocketConnectionMiddleware$lambda$lambda$lambda_3($store, action));
@@ -77371,7 +77369,7 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
77371
77369
  * Hangup a call.
77372
77370
  *
77373
77371
  * @example
77374
- * [[include: snippet_Hangup.txt]]
77372
+ * [[include: snippet_CallHangup.txt]]
77375
77373
  *
77376
77374
  * @group Voice
77377
77375
  * @param callId - the `callId` of the call to hangup
@@ -77512,7 +77510,7 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
77512
77510
  * This method overrides the conversation properties to the provided parameters and rest remains as it is.
77513
77511
  *
77514
77512
  * @example
77515
- * [[include: snippet_updateConversation.txt]]
77513
+ * [[include: snippet_UpdateConversation.txt]]
77516
77514
  *
77517
77515
  * @param conversationId - the Conversation's id.
77518
77516
  * @param parameters - The properties of the conversation. These will replace existing values to the provided ones, rest will remain as they are.
@@ -77752,7 +77750,7 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
77752
77750
  * Send a vcard message to a Conversation.
77753
77751
  *
77754
77752
  * @example
77755
- * [[include: snippet_SendVCardMessage.txt]]
77753
+ * [[include: snippet_SendVcardMessage.txt]]
77756
77754
  *
77757
77755
  * @group Chat
77758
77756
  * @beta
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonage/client-sdk",
3
- "version": "1.3.0-rc.3",
3
+ "version": "1.3.0-rc.5",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "module": "dist/client/index.mjs",
@@ -24,7 +24,7 @@
24
24
  "copy:dist": "mkdir dist/kotlin; cp ./src/kotlin/**.d.ts ./dist/kotlin/",
25
25
  "build": "npm run copy:core; rollup -c; npm run copy:dist",
26
26
  "build:rollup": "rollup -c",
27
- "build:readme": "chmod +x ./docs/generate_readme.sh; ./docs/generate_readme.sh",
27
+ "build:readme": "./docs/generate_readme.sh",
28
28
  "snippets": "node snippet.js $PWD",
29
29
  "start": "node dist/Client.js",
30
30
  "build:watch": "tsc -w",