@coventia/softphone 0.4.0 → 0.5.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/dist/{call-C6YpT6uR.d.cts → call-iGvr2ZnO.d.cts} +130 -13
- package/dist/{call-C6YpT6uR.d.ts → call-iGvr2ZnO.d.ts} +130 -13
- package/dist/chunk-3UTUWGVG.js +1891 -0
- package/dist/chunk-3UTUWGVG.js.map +1 -0
- package/dist/chunk-DZRSSZWB.js +39 -0
- package/dist/chunk-DZRSSZWB.js.map +1 -0
- package/dist/{chunk-2ZSOGGPO.js → chunk-FRXHEHQA.js} +15 -2
- package/dist/chunk-FRXHEHQA.js.map +1 -0
- package/dist/{chunk-UHNLEBBO.js → chunk-I3RSC52R.js} +28 -3
- package/dist/chunk-I3RSC52R.js.map +1 -0
- package/dist/chunk-M76SAXXM.js +13 -0
- package/dist/chunk-M76SAXXM.js.map +1 -0
- package/dist/{chunk-7R6LOOAI.js → chunk-N4PLEYFJ.js} +4 -2
- package/dist/chunk-N4PLEYFJ.js.map +1 -0
- package/dist/element/index.d.ts +167 -7
- package/dist/element/index.js +138 -43
- package/dist/element/index.js.map +1 -1
- package/dist/{engine-DPft99Wj.d.ts → engine-BKoT_Pj7.d.cts} +10 -1
- package/dist/{engine-CDdaSojx.d.cts → engine-CeGh5Yai.d.ts} +10 -1
- package/dist/index.cjs +1596 -145
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +618 -42
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +26 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +24 -5
- package/dist/react/index.d.ts +24 -5
- package/dist/react/index.js +2 -2
- package/dist/{softphone-CY5d2WWY.d.cts → softphone-D0ao5W4z.d.ts} +42 -3
- package/dist/{softphone-DXgmTyrX.d.ts → softphone-DRoS0jJR.d.cts} +42 -3
- package/dist/{sources-ONYQW733.js → sources-LGFJG7W2.js} +27 -38
- package/dist/sources-LGFJG7W2.js.map +1 -0
- package/dist/testing/index.cjs +13 -0
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +2 -2
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.js +1 -1
- package/dist/ui/index.cjs +92 -2
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +2 -2
- package/dist/ui/index.d.ts +2 -2
- package/dist/ui/index.js +69 -4
- package/dist/ui/index.js.map +1 -1
- package/dist/zadarma/index.cjs +950 -104
- package/dist/zadarma/index.cjs.map +1 -1
- package/dist/zadarma/index.d.cts +40 -14
- package/dist/zadarma/index.d.ts +40 -14
- package/dist/zadarma/index.js +4 -2
- package/dist/zadarma-engine-VYIXLBQG.js +7 -0
- package/dist/{zadarma-engine-L5DEFXUS.js.map → zadarma-engine-VYIXLBQG.js.map} +1 -1
- package/package.json +1 -1
- package/dist/chunk-2ZSOGGPO.js.map +0 -1
- package/dist/chunk-7R6LOOAI.js.map +0 -1
- package/dist/chunk-EYEDPD7Y.js +0 -1071
- package/dist/chunk-EYEDPD7Y.js.map +0 -1
- package/dist/chunk-UHNLEBBO.js.map +0 -1
- package/dist/sources-ONYQW733.js.map +0 -1
- package/dist/zadarma-engine-L5DEFXUS.js +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as CallOptions, b as CallDirection, H as HangupReason, i as HoldOriginator,
|
|
1
|
+
import { e as CallOptions, b as CallDirection, H as HangupReason, i as HoldOriginator, z as SoftphoneState, v as SoftphoneError, Z as CallOffer } from './call-iGvr2ZnO.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The `CallEngine` seam — INTERNAL, not exported from src/index.ts.
|
|
@@ -110,6 +110,15 @@ interface CallEngine {
|
|
|
110
110
|
* method. `AudioDevices.setInput` only calls it when present.
|
|
111
111
|
*/
|
|
112
112
|
setInputDevice?(deviceId: string | null): Promise<void>;
|
|
113
|
+
/**
|
|
114
|
+
* What the backend says about calls offered to this line (incoming-call-reliability.md §4.4, §5), relayed by
|
|
115
|
+
* `Softphone` from its presence watch. `null`: that channel went away (a drop, a stop), so no `end` can be
|
|
116
|
+
* relied on for the calls announced so far.
|
|
117
|
+
*
|
|
118
|
+
* **Optional**, like `onError`: only an engine with a decline guard (the SIP engine on an on-demand provider)
|
|
119
|
+
* has a use for it. The mock does not implement it.
|
|
120
|
+
*/
|
|
121
|
+
noteOffer?(offer: CallOffer | null): void;
|
|
113
122
|
}
|
|
114
123
|
|
|
115
124
|
export type { CallEngine as C, EngineCall as E };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as CallOptions, b as CallDirection, H as HangupReason, i as HoldOriginator,
|
|
1
|
+
import { e as CallOptions, b as CallDirection, H as HangupReason, i as HoldOriginator, z as SoftphoneState, v as SoftphoneError, Z as CallOffer } from './call-iGvr2ZnO.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The `CallEngine` seam — INTERNAL, not exported from src/index.ts.
|
|
@@ -110,6 +110,15 @@ interface CallEngine {
|
|
|
110
110
|
* method. `AudioDevices.setInput` only calls it when present.
|
|
111
111
|
*/
|
|
112
112
|
setInputDevice?(deviceId: string | null): Promise<void>;
|
|
113
|
+
/**
|
|
114
|
+
* What the backend says about calls offered to this line (incoming-call-reliability.md §4.4, §5), relayed by
|
|
115
|
+
* `Softphone` from its presence watch. `null`: that channel went away (a drop, a stop), so no `end` can be
|
|
116
|
+
* relied on for the calls announced so far.
|
|
117
|
+
*
|
|
118
|
+
* **Optional**, like `onError`: only an engine with a decline guard (the SIP engine on an on-demand provider)
|
|
119
|
+
* has a use for it. The mock does not implement it.
|
|
120
|
+
*/
|
|
121
|
+
noteOffer?(offer: CallOffer | null): void;
|
|
113
122
|
}
|
|
114
123
|
|
|
115
124
|
export type { CallEngine as C, EngineCall as E };
|