@koi-design/callkit 1.0.24-beta.1 → 1.0.24-beta.2

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.d.ts CHANGED
@@ -29,7 +29,7 @@ declare class Call {
29
29
  * @param referTo - The referral target. If a `Session`, a REFER w/Replaces is sent.
30
30
  * @returns
31
31
  */
32
- callRefer(referTo: string): Promise<void>;
32
+ callRefer(referTo: string, options?: any): Promise<void>;
33
33
  /**
34
34
  * Hang up
35
35
  * @param isUnprompted Whether to actively hang up
@@ -387,7 +387,7 @@ declare class Connect {
387
387
  setMute(mute: boolean): Promise<void>;
388
388
  mute(): Promise<void>;
389
389
  unmute(): Promise<void>;
390
- refer(referTo: string): Promise<void>;
390
+ refer(referTo: string, options?: any): Promise<void>;
391
391
  }
392
392
 
393
393
  declare class User {
@@ -434,7 +434,7 @@ declare class CallKit {
434
434
  }): Promise<void>;
435
435
  logout(): Promise<void>;
436
436
  call(extno?: string | number): Promise<void>;
437
- refer(uri: string): Promise<void>;
437
+ refer(uri: string, options?: any): Promise<void>;
438
438
  register(): Promise<void>;
439
439
  unregister(): Promise<void>;
440
440
  hangup(): Promise<void>;
@@ -3608,11 +3608,11 @@ var WebCall = (() => {
3608
3608
  * @param referTo - The referral target. If a `Session`, a REFER w/Replaces is sent.
3609
3609
  * @returns
3610
3610
  */
3611
- async callRefer(referTo) {
3611
+ async callRefer(referTo, options) {
3612
3612
  if (!this.callKit.config.check())
3613
3613
  return;
3614
3614
  this.callKit.logger.debug("callRefer");
3615
- this.callKit.connect.refer(referTo);
3615
+ this.callKit.connect.refer(referTo, options);
3616
3616
  }
3617
3617
  /**
3618
3618
  * Hang up
@@ -18721,10 +18721,10 @@ var WebCall = (() => {
18721
18721
  }
18722
18722
  await this.setMute(false);
18723
18723
  }
18724
- async refer(referTo) {
18724
+ async refer(referTo, options) {
18725
18725
  this.callKit.logger.debug("connect refer");
18726
18726
  const target = UserAgent.makeURI(referTo);
18727
- this.currentSession.refer(target);
18727
+ this.currentSession.refer(target, options);
18728
18728
  }
18729
18729
  };
18730
18730
 
@@ -19172,11 +19172,11 @@ var WebCall = (() => {
19172
19172
  this.logger.debug("call");
19173
19173
  this.callCenter.callStart();
19174
19174
  }
19175
- async refer(uri) {
19175
+ async refer(uri, options) {
19176
19176
  if (!this.config.check())
19177
19177
  return;
19178
19178
  this.logger.debug("refer");
19179
- this.callCenter.callRefer(uri);
19179
+ this.callCenter.callRefer(uri, options);
19180
19180
  }
19181
19181
  async register() {
19182
19182
  if (!this.config.check())