@vonage/client-sdk 0.1.4-alpha.6 → 0.1.4-alpha.7

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/dist/index.cjs ADDED
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ var voice = require('./voice');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, 'ClientConfig', {
8
+ enumerable: true,
9
+ get: function () { return voice.ClientConfig; }
10
+ });
11
+ Object.defineProperty(exports, 'ConfigRegion', {
12
+ enumerable: true,
13
+ get: function () { return voice.ConfigRegion; }
14
+ });
15
+ Object.defineProperty(exports, 'LoggingLevel', {
16
+ enumerable: true,
17
+ get: function () { return voice.LoggingLevel; }
18
+ });
19
+ Object.defineProperty(exports, 'VoiceClient', {
20
+ enumerable: true,
21
+ get: function () { return voice.VoiceClient; }
22
+ });
23
+ Object.defineProperty(exports, 'setDefaultLoggingLevel', {
24
+ enumerable: true,
25
+ get: function () { return voice.setDefaultLoggingLevel; }
26
+ });
package/dist/index.d.ts CHANGED
@@ -1,4 +1 @@
1
- import './coreExtend';
2
- export type { Invite, VoiceCall, Conversation, RTCQuality } from './Client';
3
- export { default as VoiceClient, ClientConfig, ConfigRegion, setDefaultLoggingLevel, LoggingLevel } from './Client';
4
- export {} from './coreExtend';
1
+ export { VoiceClient, ClientConfig, ConfigRegion, setDefaultLoggingLevel, LoggingLevel, Invite, VoiceCall, Conversation, RTCQuality } from './voice';
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ export { ClientConfig, ConfigRegion, LoggingLevel, VoiceClient, setDefaultLoggingLevel } from './voice';
@@ -6,13 +6,13 @@ export namespace vonage {
6
6
  reconnecting(): void;
7
7
  reconnection(): void;
8
8
  sessionError(reason: string): void;
9
- callInvite(invite: vonage.VoiceInviteJS): void;
10
- callTransfer(call: vonage.VoiceCallJS, cid: vonage.ConversationJS, prevConversation: vonage.ConversationJS): void;
11
- mute(call: vonage.VoiceCallJS, legId: string, isMuted: boolean): void;
12
- earmuff(call: vonage.VoiceCallJS, legId: string, earmuffStatus: boolean): void;
13
- dtmf(call: vonage.VoiceCallJS, legId: string, digits: string): void;
14
- rtcHangup(call: vonage.VoiceCallJS, legId: string, callQuality: vonage.RTCQualityJS): void;
15
- legStatusUpdate(call: vonage.VoiceCallJS, legId: string, status: string): void;
9
+ callInvite(callId: string, invite: vonage.VoiceInviteJS): void;
10
+ callTransfer(callId: string, cid: vonage.ConversationJS, prevConversation: vonage.ConversationJS): void;
11
+ mute(callId: string, legId: string, isMuted: boolean): void;
12
+ earmuff(callId: string, legId: string, earmuffStatus: boolean): void;
13
+ dtmf(callId: string, legId: string, digits: string): void;
14
+ rtcHangup(callId: string, legId: string, callQuality: vonage.RTCQualityJS): void;
15
+ legStatusUpdate(callId: string, legId: string, status: string): void;
16
16
  }
17
17
  interface CallSayParams {
18
18
  readonly text: string;
@@ -1,5 +1,5 @@
1
- import * as KMPPackage from './kotlin/clientsdk-clientcore_js';
2
- import { vonage } from './kotlin/clientsdk-clientcore_js';
1
+ import * as KMPPackage from '../kotlin/clientsdk-clientcore_js';
2
+ import { vonage } from '../kotlin/clientsdk-clientcore_js';
3
3
  type HttpHeaders = Record<string, string | number | boolean>;
4
4
  declare class HttpClient implements vonage.HttpClientJS {
5
5
  private stringToVerb;
@@ -1,5 +1,5 @@
1
- import * as KMPPackage from './kotlin/clientsdk-clientcore_js';
2
- import { vonage } from './kotlin/clientsdk-clientcore_js';
1
+ import * as KMPPackage from '../kotlin/clientsdk-clientcore_js';
2
+ import { vonage } from '../kotlin/clientsdk-clientcore_js';
3
3
  declare class MediaClient implements vonage.MediaClientJS {
4
4
  delegate: KMPPackage.Nullable<vonage.MediaClientDelegateJS>;
5
5
  private pcs;
@@ -1,5 +1,5 @@
1
- import * as KMPPackage from './kotlin/clientsdk-clientcore_js';
2
- import { vonage } from './kotlin/clientsdk-clientcore_js';
1
+ import * as KMPPackage from '../kotlin/clientsdk-clientcore_js';
2
+ import { vonage } from '../kotlin/clientsdk-clientcore_js';
3
3
  declare class SocketClient implements vonage.SocketClientJS {
4
4
  delegate: KMPPackage.Nullable<vonage.SocketClientDelegateJS>;
5
5
  private socket;
@@ -1,6 +1,6 @@
1
- import { vonage } from './kotlin/clientsdk-clientcore_js';
2
- import './coreExtend';
3
- import './global';
1
+ import { vonage } from '../kotlin/clientsdk-clientcore_js';
2
+ import '../coreExtend';
3
+ import '../global';
4
4
  /**
5
5
  * Minimal Interface built on top of KMP export
6
6
  * DO NOT ADD CODE HERE UNLESS REALLY NEEDEED!!111!
@@ -16,7 +16,7 @@ export declare const setDefaultLoggingLevel: typeof vonage.setDefaultLoggingLeve
16
16
  export declare class ClientConfig extends vonage.CoreClientConfigJS {
17
17
  constructor(region?: vonage.CoreClientConfigRegionJS);
18
18
  }
19
- declare class VoiceClient extends vonage.CoreClientJS {
19
+ export declare class VoiceClient extends vonage.CoreClientJS {
20
20
  private callbacks;
21
21
  constructor();
22
22
  on<T extends keyof VonageEvent, Fn extends VonageEvent[T]>(event: T, callback: Fn): void;