@wazo/sdk 0.38.22 → 0.39.0-beta.10
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/README.md +62 -293
- package/dist/wazo-sdk.js +9 -25
- package/esm/__tests__/api-client.test.js +183 -5059
- package/esm/__tests__/web-rtc-client.test.js +177 -7930
- package/esm/api/agentd.js +23 -832
- package/esm/api/amid.js +9 -411
- package/esm/api/application.js +60 -829
- package/esm/api/auth.js +164 -1213
- package/esm/api/call-logd.js +24 -733
- package/esm/api/calld.js +114 -1469
- package/esm/api/chatd.js +48 -1311
- package/esm/api/confd.js +67 -1580
- package/esm/api/ctid-ng.js +92 -1343
- package/esm/api/dird.js +100 -1590
- package/esm/api/webhookd.js +7 -513
- package/esm/api-client.js +143 -4880
- package/esm/checker/Checker.js +45 -8727
- package/esm/checker/checks/aor.js +24 -4924
- package/esm/checker/checks/api.js +70 -4968
- package/esm/checker/checks/ice-ipv4.js +63 -117
- package/esm/checker/checks/index.js +8 -8677
- package/esm/checker/checks/symmetric-nat.js +54 -102
- package/esm/checker/checks/wazo-websocket.js +34 -999
- package/esm/checker/checks/webrtc-transport.js +28 -7845
- package/esm/checker/checks/webrtc.js +31 -7852
- package/esm/domain/AdHocAPIConference.js +86 -5115
- package/esm/domain/Agent.js +27 -61
- package/esm/domain/BadResponse.js +20 -43
- package/esm/domain/Call.js +120 -210
- package/esm/domain/CallLog.js +123 -305
- package/esm/domain/CallSession.js +251 -423
- package/esm/domain/ChatMessage.js +52 -105
- package/esm/domain/ChatRoom.js +28 -60
- package/esm/domain/Contact.js +435 -741
- package/esm/domain/Country.js +17 -19
- package/esm/domain/Device/DebugDevice.js +31 -47
- package/esm/domain/Device/Device.js +1 -1
- package/esm/domain/DirectorySource.js +1 -1
- package/esm/domain/ExternalApp.js +23 -56
- package/esm/domain/Features.js +57 -5009
- package/esm/domain/ForwardOption.js +35 -70
- package/esm/domain/IndirectTransfer.js +38 -97
- package/esm/domain/Line.js +37 -88
- package/esm/domain/Meeting.js +58 -113
- package/esm/domain/MeetingAuthorization.js +38 -68
- package/esm/domain/MeetingStatus.js +13 -28
- package/esm/domain/NotificationOptions.js +43 -77
- package/esm/domain/Phone/CTIPhone.js +245 -5743
- package/esm/domain/Phone/Phone.js +1 -2
- package/esm/domain/Phone/WebRTCPhone.js +1457 -2671
- package/esm/domain/Profile.js +120 -405
- package/esm/domain/Recording.js +27 -51
- package/esm/domain/Relocation.js +16 -40
- package/esm/domain/Room.js +90 -133
- package/esm/domain/SFUNotAvailableError.js +5 -8
- package/esm/domain/ServerError.js +8 -61
- package/esm/domain/Session.js +125 -251
- package/esm/domain/SipLine.js +78 -155
- package/esm/domain/Subscription.js +39 -83
- package/esm/domain/SwitchboardCall.js +51 -143
- package/esm/domain/Voicemail.js +57 -122
- package/esm/domain/__tests__/Agent.test.js +31 -101
- package/esm/domain/__tests__/Call.test.js +24 -232
- package/esm/domain/__tests__/CallLog.test.js +60 -386
- package/esm/domain/__tests__/CallSession.test.js +74 -502
- package/esm/domain/__tests__/Contact.test.js +220 -902
- package/esm/domain/__tests__/IndirectTransfer.test.js +63 -546
- package/esm/domain/__tests__/Line.test.js +48 -156
- package/esm/domain/__tests__/Meeting.test.js +73 -226
- package/esm/domain/__tests__/MeetingAuthorization.test.js +45 -105
- package/esm/domain/__tests__/Profile.test.js +135 -496
- package/esm/domain/__tests__/Room.test.js +227 -719
- package/esm/domain/__tests__/Session.test.js +357 -1025
- package/esm/domain/__tests__/SipLine.test.js +24 -179
- package/esm/domain/__tests__/Voicemail.test.js +82 -200
- package/esm/domain/types.js +1 -1
- package/esm/index.js +63 -14985
- package/esm/lib/WazoSessionDescriptionHandler.js +406 -890
- package/esm/pubkey.js +10 -0
- package/esm/service/CallApi.js +42 -5014
- package/esm/service/IssueReporter.js +278 -360
- package/esm/service/__tests__/IssueReporter.test.js +92 -494
- package/esm/service/getApiClient.js +53 -4972
- package/esm/simple/Auth.js +212 -14747
- package/esm/simple/Configuration.js +8 -14796
- package/esm/simple/Directory.js +6 -4964
- package/esm/simple/Phone.js +309 -14727
- package/esm/simple/Websocket.js +68 -1112
- package/esm/simple/index.js +125 -14792
- package/esm/simple/room/LocalParticipant.js +1 -14797
- package/esm/simple/room/Participant.js +274 -14760
- package/esm/simple/room/RemoteParticipant.js +6 -14796
- package/esm/simple/room/Room.js +648 -14736
- package/esm/simple/room/SipRoom.js +111 -14790
- package/esm/simple/room/Stream.js +40 -14792
- package/esm/simple/room/__tests__/Participant.test.js +68 -14872
- package/esm/simple/room/__tests__/RemoteParticipant.test.js +10 -14805
- package/esm/simple/utils.js +9 -14799
- package/esm/types/WebSocketMessage.js +1 -1
- package/esm/types/__tests__/api-client.test.d.ts +2 -0
- package/esm/types/__tests__/api-client.test.d.ts.map +1 -0
- package/esm/types/__tests__/web-rtc-client.test.d.ts +2 -0
- package/esm/types/__tests__/web-rtc-client.test.d.ts.map +1 -0
- package/esm/types/api/agentd.d.ts +17 -0
- package/esm/types/api/agentd.d.ts.map +1 -0
- package/esm/types/api/amid.d.ts +8 -0
- package/esm/types/api/amid.d.ts.map +1 -0
- package/esm/types/api/application.d.ts +34 -0
- package/esm/types/api/application.d.ts.map +1 -0
- package/esm/types/api/auth.d.ts +64 -0
- package/esm/types/api/auth.d.ts.map +1 -0
- package/esm/types/api/call-logd.d.ts +12 -0
- package/esm/types/api/call-logd.d.ts.map +1 -0
- package/esm/types/api/calld.d.ts +51 -0
- package/esm/types/api/calld.d.ts.map +1 -0
- package/esm/types/api/chatd.d.ts +42 -0
- package/esm/types/api/chatd.d.ts.map +1 -0
- package/esm/types/api/confd.d.ts +39 -0
- package/esm/types/api/confd.d.ts.map +1 -0
- package/esm/types/api/ctid-ng.d.ts +36 -0
- package/esm/types/api/ctid-ng.d.ts.map +1 -0
- package/esm/types/api/dird.d.ts +38 -0
- package/esm/types/api/dird.d.ts.map +1 -0
- package/esm/types/api/webhookd.d.ts +24 -0
- package/esm/types/api/webhookd.d.ts.map +1 -0
- package/esm/types/api-client.d.ts +63 -0
- package/esm/types/api-client.d.ts.map +1 -0
- package/esm/types/checker/Checker.d.ts +13 -0
- package/esm/types/checker/Checker.d.ts.map +1 -0
- package/esm/types/checker/checks/aor.d.ts +6 -0
- package/esm/types/checker/checks/aor.d.ts.map +1 -0
- package/esm/types/checker/checks/api.d.ts +6 -0
- package/esm/types/checker/checks/api.d.ts.map +1 -0
- package/esm/types/checker/checks/ice-ipv4.d.ts +6 -0
- package/esm/types/checker/checks/ice-ipv4.d.ts.map +1 -0
- package/esm/types/checker/checks/index.d.ts +9 -0
- package/esm/types/checker/checks/index.d.ts.map +1 -0
- package/esm/types/checker/checks/symmetric-nat.d.ts +6 -0
- package/esm/types/checker/checks/symmetric-nat.d.ts.map +1 -0
- package/esm/types/checker/checks/wazo-websocket.d.ts +6 -0
- package/esm/types/checker/checks/wazo-websocket.d.ts.map +1 -0
- package/esm/types/checker/checks/webrtc-transport.d.ts +7 -0
- package/esm/types/checker/checks/webrtc-transport.d.ts.map +1 -0
- package/esm/types/checker/checks/webrtc.d.ts +6 -0
- package/esm/types/checker/checks/webrtc.d.ts.map +1 -0
- package/esm/types/domain/AdHocAPIConference.d.ts +54 -0
- package/esm/types/domain/AdHocAPIConference.d.ts.map +1 -0
- package/esm/types/domain/Agent.d.ts +31 -0
- package/esm/types/domain/Agent.d.ts.map +1 -0
- package/esm/types/domain/BadResponse.d.ts +11 -0
- package/esm/types/domain/BadResponse.d.ts.map +1 -0
- package/esm/types/domain/Call.d.ts +79 -0
- package/esm/types/domain/Call.d.ts.map +1 -0
- package/esm/types/domain/CallLog.d.ts +91 -0
- package/esm/types/domain/CallLog.d.ts.map +1 -0
- package/esm/types/domain/CallSession.d.ts +120 -0
- package/esm/types/domain/CallSession.d.ts.map +1 -0
- package/esm/types/domain/ChatMessage.d.ts +41 -0
- package/esm/types/domain/ChatMessage.d.ts.map +1 -0
- package/esm/types/domain/ChatRoom.d.ts +22 -0
- package/esm/types/domain/ChatRoom.d.ts.map +1 -0
- package/esm/types/domain/Contact.d.ts +316 -0
- package/esm/types/domain/Contact.d.ts.map +1 -0
- package/esm/types/domain/Country.d.ts +20 -0
- package/esm/types/domain/Country.d.ts.map +1 -0
- package/esm/types/domain/Device/DebugDevice.d.ts +14 -0
- package/esm/types/domain/Device/DebugDevice.d.ts.map +1 -0
- package/esm/types/domain/Device/Device.d.ts +13 -0
- package/esm/types/domain/Device/Device.d.ts.map +1 -0
- package/esm/types/domain/DirectorySource.d.ts +13 -0
- package/esm/types/domain/DirectorySource.d.ts.map +1 -0
- package/esm/types/domain/ExternalApp.d.ts +22 -0
- package/esm/types/domain/ExternalApp.d.ts.map +1 -0
- package/esm/types/domain/Features.d.ts +24 -0
- package/esm/types/domain/Features.d.ts.map +1 -0
- package/esm/types/domain/ForwardOption.d.ts +27 -0
- package/esm/types/domain/ForwardOption.d.ts.map +1 -0
- package/esm/types/domain/IndirectTransfer.d.ts +31 -0
- package/esm/types/domain/IndirectTransfer.d.ts.map +1 -0
- package/esm/types/domain/Line.d.ts +46 -0
- package/esm/types/domain/Line.d.ts.map +1 -0
- package/esm/types/domain/Meeting.d.ts +45 -0
- package/esm/types/domain/Meeting.d.ts.map +1 -0
- package/esm/types/domain/MeetingAuthorization.d.ts +26 -0
- package/esm/types/domain/MeetingAuthorization.d.ts.map +1 -0
- package/esm/types/domain/MeetingStatus.d.ts +10 -0
- package/esm/types/domain/MeetingStatus.d.ts.map +1 -0
- package/esm/types/domain/NotificationOptions.d.ts +22 -0
- package/esm/types/domain/NotificationOptions.d.ts.map +1 -0
- package/esm/types/domain/Phone/CTIPhone.d.ts +76 -0
- package/esm/types/domain/Phone/CTIPhone.d.ts.map +1 -0
- package/esm/types/domain/Phone/Phone.d.ts +71 -0
- package/esm/types/domain/Phone/Phone.d.ts.map +1 -0
- package/esm/types/domain/Phone/WebRTCPhone.d.ts +179 -0
- package/esm/types/domain/Phone/WebRTCPhone.d.ts.map +1 -0
- package/esm/types/domain/Profile.d.ts +151 -0
- package/esm/types/domain/Profile.d.ts.map +1 -0
- package/esm/types/domain/Recording.d.ts +26 -0
- package/esm/types/domain/Recording.d.ts.map +1 -0
- package/esm/types/domain/Relocation.d.ts +23 -0
- package/esm/types/domain/Relocation.d.ts.map +1 -0
- package/esm/types/domain/Room.d.ts +35 -0
- package/esm/types/domain/Room.d.ts.map +1 -0
- package/esm/types/domain/SFUNotAvailableError.d.ts +4 -0
- package/esm/types/domain/SFUNotAvailableError.d.ts.map +1 -0
- package/esm/types/domain/ServerError.d.ts +6 -0
- package/esm/types/domain/ServerError.d.ts.map +1 -0
- package/esm/types/domain/Session.d.ts +90 -0
- package/esm/types/domain/Session.d.ts.map +1 -0
- package/esm/types/domain/SipLine.d.ts +54 -0
- package/esm/types/domain/SipLine.d.ts.map +1 -0
- package/esm/types/domain/Subscription.d.ts +43 -0
- package/esm/types/domain/Subscription.d.ts.map +1 -0
- package/esm/types/domain/SwitchboardCall.d.ts +62 -0
- package/esm/types/domain/SwitchboardCall.d.ts.map +1 -0
- package/esm/types/domain/Voicemail.d.ts +50 -0
- package/esm/types/domain/Voicemail.d.ts.map +1 -0
- package/esm/types/domain/__tests__/Agent.test.d.ts +2 -0
- package/esm/types/domain/__tests__/Agent.test.d.ts.map +1 -0
- package/esm/types/domain/__tests__/Call.test.d.ts +2 -0
- package/esm/types/domain/__tests__/Call.test.d.ts.map +1 -0
- package/esm/types/domain/__tests__/CallLog.test.d.ts +2 -0
- package/esm/types/domain/__tests__/CallLog.test.d.ts.map +1 -0
- package/esm/types/domain/__tests__/CallSession.test.d.ts +2 -0
- package/esm/types/domain/__tests__/CallSession.test.d.ts.map +1 -0
- package/esm/types/domain/__tests__/Contact.test.d.ts +2 -0
- package/esm/types/domain/__tests__/Contact.test.d.ts.map +1 -0
- package/esm/types/domain/__tests__/IndirectTransfer.test.d.ts +2 -0
- package/esm/types/domain/__tests__/IndirectTransfer.test.d.ts.map +1 -0
- package/esm/types/domain/__tests__/Line.test.d.ts +2 -0
- package/esm/types/domain/__tests__/Line.test.d.ts.map +1 -0
- package/esm/types/domain/__tests__/Meeting.test.d.ts +2 -0
- package/esm/types/domain/__tests__/Meeting.test.d.ts.map +1 -0
- package/esm/types/domain/__tests__/MeetingAuthorization.test.d.ts +2 -0
- package/esm/types/domain/__tests__/MeetingAuthorization.test.d.ts.map +1 -0
- package/esm/types/domain/__tests__/Profile.test.d.ts +2 -0
- package/esm/types/domain/__tests__/Profile.test.d.ts.map +1 -0
- package/esm/types/domain/__tests__/Room.test.d.ts +2 -0
- package/esm/types/domain/__tests__/Room.test.d.ts.map +1 -0
- package/esm/types/domain/__tests__/Session.test.d.ts +2 -0
- package/esm/types/domain/__tests__/Session.test.d.ts.map +1 -0
- package/esm/types/domain/__tests__/SipLine.test.d.ts +2 -0
- package/esm/types/domain/__tests__/SipLine.test.d.ts.map +1 -0
- package/esm/types/domain/__tests__/Voicemail.test.d.ts +2 -0
- package/esm/types/domain/__tests__/Voicemail.test.d.ts.map +1 -0
- package/esm/types/domain/types.d.ts +217 -0
- package/esm/types/domain/types.d.ts.map +1 -0
- package/esm/types/index.d.ts +304 -0
- package/esm/types/index.d.ts.map +1 -0
- package/esm/types/lib/WazoSessionDescriptionHandler.d.ts +30 -0
- package/esm/types/lib/WazoSessionDescriptionHandler.d.ts.map +1 -0
- package/esm/types/pubkey.d.ts +3 -0
- package/esm/types/pubkey.d.ts.map +1 -0
- package/esm/types/service/CallApi.d.ts +28 -0
- package/esm/types/service/CallApi.d.ts.map +1 -0
- package/esm/types/service/IssueReporter.d.ts +40 -0
- package/esm/types/service/IssueReporter.d.ts.map +1 -0
- package/esm/types/service/__tests__/IssueReporter.test.d.ts +2 -0
- package/esm/types/service/__tests__/IssueReporter.test.d.ts.map +1 -0
- package/esm/types/service/getApiClient.d.ts +16 -0
- package/esm/types/service/getApiClient.d.ts.map +1 -0
- package/esm/types/simple/Auth.d.ts +51 -0
- package/esm/types/simple/Auth.d.ts.map +1 -0
- package/esm/types/simple/Configuration.d.ts +3 -0
- package/esm/types/simple/Configuration.d.ts.map +1 -0
- package/esm/types/simple/Directory.d.ts +3 -0
- package/esm/types/simple/Directory.d.ts.map +1 -0
- package/esm/types/simple/Phone.d.ts +115 -0
- package/esm/types/simple/Phone.d.ts.map +1 -0
- package/esm/types/simple/Websocket.d.ts +19 -0
- package/esm/types/simple/Websocket.d.ts.map +1 -0
- package/esm/types/simple/index.d.ts +147 -0
- package/esm/types/simple/index.d.ts.map +1 -0
- package/esm/types/simple/room/LocalParticipant.d.ts +5 -0
- package/esm/types/simple/room/LocalParticipant.d.ts.map +1 -0
- package/esm/types/simple/room/Participant.d.ts +76 -0
- package/esm/types/simple/room/Participant.d.ts.map +1 -0
- package/esm/types/simple/room/RemoteParticipant.d.ts +7 -0
- package/esm/types/simple/room/RemoteParticipant.d.ts.map +1 -0
- package/esm/types/simple/room/Room.d.ts +116 -0
- package/esm/types/simple/room/Room.d.ts.map +1 -0
- package/esm/types/simple/room/SipRoom.d.ts +14 -0
- package/esm/types/simple/room/SipRoom.d.ts.map +1 -0
- package/esm/types/simple/room/Stream.d.ts +13 -0
- package/esm/types/simple/room/Stream.d.ts.map +1 -0
- package/esm/types/simple/room/__tests__/Participant.test.d.ts +2 -0
- package/esm/types/simple/room/__tests__/Participant.test.d.ts.map +1 -0
- package/esm/types/simple/room/__tests__/RemoteParticipant.test.d.ts +2 -0
- package/esm/types/simple/room/__tests__/RemoteParticipant.test.d.ts.map +1 -0
- package/esm/types/simple/utils.d.ts +3 -0
- package/esm/types/simple/utils.d.ts.map +1 -0
- package/esm/types/types/WebSocketMessage.d.ts +285 -0
- package/esm/types/types/WebSocketMessage.d.ts.map +1 -0
- package/esm/types/utils/Emitter.d.ts +18 -0
- package/esm/types/utils/Emitter.d.ts.map +1 -0
- package/esm/types/utils/Heartbeat.d.ts +21 -0
- package/esm/types/utils/Heartbeat.d.ts.map +1 -0
- package/esm/types/utils/PhoneNumberUtil.d.ts +8 -0
- package/esm/types/utils/PhoneNumberUtil.d.ts.map +1 -0
- package/esm/types/utils/__tests__/Heartbeat.test.d.ts +2 -0
- package/esm/types/utils/__tests__/Heartbeat.test.d.ts.map +1 -0
- package/esm/types/utils/__tests__/PhoneNumberUtil.test.d.ts +2 -0
- package/esm/types/utils/__tests__/PhoneNumberUtil.test.d.ts.map +1 -0
- package/esm/types/utils/__tests__/api-requester.test.d.ts +2 -0
- package/esm/types/utils/__tests__/api-requester.test.d.ts.map +1 -0
- package/esm/types/utils/__tests__/array.test.d.ts +2 -0
- package/esm/types/utils/__tests__/array.test.d.ts.map +1 -0
- package/esm/types/utils/__tests__/compare-version.test.d.ts +2 -0
- package/esm/types/utils/__tests__/compare-version.test.d.ts.map +1 -0
- package/esm/types/utils/__tests__/object.test.d.ts +2 -0
- package/esm/types/utils/__tests__/object.test.d.ts.map +1 -0
- package/esm/types/utils/__tests__/sdp.test.d.ts +2 -0
- package/esm/types/utils/__tests__/sdp.test.d.ts.map +1 -0
- package/esm/types/utils/__tests__/string.test.d.ts +2 -0
- package/esm/types/utils/__tests__/string.test.d.ts.map +1 -0
- package/esm/types/utils/api-requester.d.ts +45 -0
- package/esm/types/utils/api-requester.d.ts.map +1 -0
- package/esm/types/utils/array.d.ts +2 -0
- package/esm/types/utils/array.d.ts.map +1 -0
- package/esm/types/utils/compare-version.d.ts +3 -0
- package/esm/types/utils/compare-version.d.ts.map +1 -0
- package/esm/types/utils/isMobile.d.ts +3 -0
- package/esm/types/utils/isMobile.d.ts.map +1 -0
- package/esm/types/utils/new-from.d.ts +3 -0
- package/esm/types/utils/new-from.d.ts.map +1 -0
- package/esm/types/utils/object.d.ts +2 -0
- package/esm/types/utils/object.d.ts.map +1 -0
- package/esm/types/utils/once.d.ts +2 -0
- package/esm/types/utils/once.d.ts.map +1 -0
- package/esm/types/utils/sdp.d.ts +13 -0
- package/esm/types/utils/sdp.d.ts.map +1 -0
- package/esm/types/utils/string.d.ts +2 -0
- package/esm/types/utils/string.d.ts.map +1 -0
- package/esm/types/utils/update-from.d.ts +3 -0
- package/esm/types/utils/update-from.d.ts.map +1 -0
- package/esm/types/utils/webrtc.d.ts +15 -0
- package/esm/types/utils/webrtc.d.ts.map +1 -0
- package/esm/types/web-rtc-client.d.ts +220 -0
- package/esm/types/web-rtc-client.d.ts.map +1 -0
- package/esm/types/websocket-client.d.ts +134 -0
- package/esm/types/websocket-client.d.ts.map +1 -0
- package/esm/utils/Emitter.js +17 -27
- package/esm/utils/Heartbeat.js +60 -83
- package/esm/utils/PhoneNumberUtil.js +48 -63
- package/esm/utils/__tests__/Heartbeat.test.js +59 -168
- package/esm/utils/__tests__/PhoneNumberUtil.test.js +55 -125
- package/esm/utils/__tests__/api-requester.test.js +127 -780
- package/esm/utils/__tests__/array.test.js +16 -19
- package/esm/utils/__tests__/compare-version.test.js +8 -26
- package/esm/utils/__tests__/object.test.js +73 -54
- package/esm/utils/__tests__/sdp.test.js +87 -216
- package/esm/utils/__tests__/string.test.js +21 -27
- package/esm/utils/api-requester.js +197 -675
- package/esm/utils/array.js +7 -11
- package/esm/utils/compare-version.js +12 -15
- package/esm/utils/isMobile.js +0 -2
- package/esm/utils/new-from.js +7 -12
- package/esm/utils/object.js +9 -23
- package/esm/utils/once.js +12 -13
- package/esm/utils/sdp.js +87 -131
- package/esm/utils/string.js +5 -9
- package/esm/utils/update-from.js +9 -16
- package/esm/utils/webrtc.js +35 -36
- package/esm/web-rtc-client.js +2038 -7677
- package/esm/websocket-client.js +352 -944
- package/lib/__tests__/api-client.test.js +199 -5067
- package/lib/__tests__/web-rtc-client.test.js +191 -7941
- package/lib/api/agentd.js +27 -837
- package/lib/api/amid.js +18 -415
- package/lib/api/application.js +64 -834
- package/lib/api/auth.js +166 -1222
- package/lib/api/call-logd.js +28 -738
- package/lib/api/calld.js +126 -1473
- package/lib/api/chatd.js +65 -1316
- package/lib/api/confd.js +79 -1584
- package/lib/api/ctid-ng.js +96 -1348
- package/lib/api/dird.js +105 -1596
- package/lib/api/webhookd.js +11 -518
- package/lib/api-client.js +139 -4884
- package/lib/checker/Checker.js +61 -8739
- package/lib/checker/checks/aor.js +37 -4929
- package/lib/checker/checks/api.js +81 -4971
- package/lib/checker/checks/ice-ipv4.js +66 -118
- package/lib/checker/checks/index.js +13 -8687
- package/lib/checker/checks/symmetric-nat.js +56 -104
- package/lib/checker/checks/wazo-websocket.js +58 -1006
- package/lib/checker/checks/webrtc-transport.js +41 -7853
- package/lib/checker/checks/webrtc.js +42 -7858
- package/lib/domain/AdHocAPIConference.js +80 -5116
- package/lib/domain/Agent.js +23 -64
- package/lib/domain/BadResponse.js +17 -44
- package/lib/domain/Call.js +108 -215
- package/lib/domain/CallLog.js +117 -311
- package/lib/domain/CallSession.js +221 -424
- package/lib/domain/ChatMessage.js +49 -110
- package/lib/domain/ChatRoom.js +28 -60
- package/lib/domain/Contact.js +409 -742
- package/lib/domain/Country.js +19 -21
- package/lib/domain/Device/DebugDevice.js +34 -49
- package/lib/domain/Device/Device.js +2 -2
- package/lib/domain/DirectorySource.js +2 -2
- package/lib/domain/ExternalApp.js +24 -56
- package/lib/domain/Features.js +68 -5018
- package/lib/domain/ForwardOption.js +36 -71
- package/lib/domain/IndirectTransfer.js +39 -98
- package/lib/domain/Line.js +35 -88
- package/lib/domain/Meeting.js +51 -118
- package/lib/domain/MeetingAuthorization.js +35 -75
- package/lib/domain/MeetingStatus.js +13 -29
- package/lib/domain/NotificationOptions.js +45 -77
- package/lib/domain/Phone/CTIPhone.js +283 -5755
- package/lib/domain/Phone/Phone.js +2 -5
- package/lib/domain/Phone/WebRTCPhone.js +1457 -2716
- package/lib/domain/Profile.js +127 -406
- package/lib/domain/Recording.js +28 -57
- package/lib/domain/Relocation.js +15 -43
- package/lib/domain/Room.js +73 -134
- package/lib/domain/SFUNotAvailableError.js +7 -9
- package/lib/domain/ServerError.js +14 -63
- package/lib/domain/Session.js +118 -251
- package/lib/domain/SipLine.js +70 -155
- package/lib/domain/Subscription.js +32 -86
- package/lib/domain/SwitchboardCall.js +45 -145
- package/lib/domain/Voicemail.js +56 -127
- package/lib/domain/__tests__/Agent.test.js +36 -103
- package/lib/domain/__tests__/Call.test.js +28 -237
- package/lib/domain/__tests__/CallLog.test.js +65 -392
- package/lib/domain/__tests__/CallSession.test.js +78 -503
- package/lib/domain/__tests__/Contact.test.js +224 -903
- package/lib/domain/__tests__/IndirectTransfer.test.js +75 -546
- package/lib/domain/__tests__/Line.test.js +52 -157
- package/lib/domain/__tests__/Meeting.test.js +78 -232
- package/lib/domain/__tests__/MeetingAuthorization.test.js +50 -107
- package/lib/domain/__tests__/Profile.test.js +161 -496
- package/lib/domain/__tests__/Room.test.js +239 -719
- package/lib/domain/__tests__/Session.test.js +350 -1024
- package/lib/domain/__tests__/SipLine.test.js +28 -180
- package/lib/domain/__tests__/Voicemail.test.js +86 -205
- package/lib/domain/types.js +2 -2
- package/lib/index.js +105 -15010
- package/lib/lib/WazoSessionDescriptionHandler.js +409 -898
- package/lib/pubkey.js +12 -0
- package/lib/service/CallApi.js +88 -5015
- package/lib/service/IssueReporter.js +264 -366
- package/lib/service/__tests__/IssueReporter.test.js +97 -500
- package/lib/service/getApiClient.js +70 -4990
- package/lib/simple/Auth.js +272 -14777
- package/lib/simple/Configuration.js +23 -14805
- package/lib/simple/Directory.js +18 -4966
- package/lib/simple/Phone.js +345 -14746
- package/lib/simple/Websocket.js +98 -1117
- package/lib/simple/index.js +151 -14800
- package/lib/simple/room/LocalParticipant.js +7 -14808
- package/lib/simple/room/Participant.js +269 -14778
- package/lib/simple/room/RemoteParticipant.js +11 -14806
- package/lib/simple/room/Room.js +655 -14761
- package/lib/simple/room/SipRoom.js +136 -14805
- package/lib/simple/room/Stream.js +43 -14802
- package/lib/simple/room/__tests__/Participant.test.js +79 -14879
- package/lib/simple/room/__tests__/RemoteParticipant.test.js +14 -14814
- package/lib/simple/utils.js +22 -14808
- package/lib/types/WebSocketMessage.js +2 -4
- package/lib/types/__tests__/api-client.test.d.ts +2 -0
- package/lib/types/__tests__/api-client.test.d.ts.map +1 -0
- package/lib/types/__tests__/web-rtc-client.test.d.ts +2 -0
- package/lib/types/__tests__/web-rtc-client.test.d.ts.map +1 -0
- package/lib/types/api/agentd.d.ts +17 -0
- package/lib/types/api/agentd.d.ts.map +1 -0
- package/lib/types/api/amid.d.ts +8 -0
- package/lib/types/api/amid.d.ts.map +1 -0
- package/lib/types/api/application.d.ts +34 -0
- package/lib/types/api/application.d.ts.map +1 -0
- package/lib/types/api/auth.d.ts +64 -0
- package/lib/types/api/auth.d.ts.map +1 -0
- package/lib/types/api/call-logd.d.ts +12 -0
- package/lib/types/api/call-logd.d.ts.map +1 -0
- package/lib/types/api/calld.d.ts +51 -0
- package/lib/types/api/calld.d.ts.map +1 -0
- package/lib/types/api/chatd.d.ts +42 -0
- package/lib/types/api/chatd.d.ts.map +1 -0
- package/lib/types/api/confd.d.ts +39 -0
- package/lib/types/api/confd.d.ts.map +1 -0
- package/lib/types/api/ctid-ng.d.ts +36 -0
- package/lib/types/api/ctid-ng.d.ts.map +1 -0
- package/lib/types/api/dird.d.ts +38 -0
- package/lib/types/api/dird.d.ts.map +1 -0
- package/lib/types/api/webhookd.d.ts +24 -0
- package/lib/types/api/webhookd.d.ts.map +1 -0
- package/lib/types/api-client.d.ts +63 -0
- package/lib/types/api-client.d.ts.map +1 -0
- package/lib/types/checker/Checker.d.ts +13 -0
- package/lib/types/checker/Checker.d.ts.map +1 -0
- package/lib/types/checker/checks/aor.d.ts +6 -0
- package/lib/types/checker/checks/aor.d.ts.map +1 -0
- package/lib/types/checker/checks/api.d.ts +6 -0
- package/lib/types/checker/checks/api.d.ts.map +1 -0
- package/lib/types/checker/checks/ice-ipv4.d.ts +6 -0
- package/lib/types/checker/checks/ice-ipv4.d.ts.map +1 -0
- package/lib/types/checker/checks/index.d.ts +9 -0
- package/lib/types/checker/checks/index.d.ts.map +1 -0
- package/lib/types/checker/checks/symmetric-nat.d.ts +6 -0
- package/lib/types/checker/checks/symmetric-nat.d.ts.map +1 -0
- package/lib/types/checker/checks/wazo-websocket.d.ts +6 -0
- package/lib/types/checker/checks/wazo-websocket.d.ts.map +1 -0
- package/lib/types/checker/checks/webrtc-transport.d.ts +7 -0
- package/lib/types/checker/checks/webrtc-transport.d.ts.map +1 -0
- package/lib/types/checker/checks/webrtc.d.ts +6 -0
- package/lib/types/checker/checks/webrtc.d.ts.map +1 -0
- package/lib/types/domain/AdHocAPIConference.d.ts +54 -0
- package/lib/types/domain/AdHocAPIConference.d.ts.map +1 -0
- package/lib/types/domain/Agent.d.ts +31 -0
- package/lib/types/domain/Agent.d.ts.map +1 -0
- package/lib/types/domain/BadResponse.d.ts +11 -0
- package/lib/types/domain/BadResponse.d.ts.map +1 -0
- package/lib/types/domain/Call.d.ts +79 -0
- package/lib/types/domain/Call.d.ts.map +1 -0
- package/lib/types/domain/CallLog.d.ts +91 -0
- package/lib/types/domain/CallLog.d.ts.map +1 -0
- package/lib/types/domain/CallSession.d.ts +120 -0
- package/lib/types/domain/CallSession.d.ts.map +1 -0
- package/lib/types/domain/ChatMessage.d.ts +41 -0
- package/lib/types/domain/ChatMessage.d.ts.map +1 -0
- package/lib/types/domain/ChatRoom.d.ts +22 -0
- package/lib/types/domain/ChatRoom.d.ts.map +1 -0
- package/lib/types/domain/Contact.d.ts +316 -0
- package/lib/types/domain/Contact.d.ts.map +1 -0
- package/lib/types/domain/Country.d.ts +20 -0
- package/lib/types/domain/Country.d.ts.map +1 -0
- package/lib/types/domain/Device/DebugDevice.d.ts +14 -0
- package/lib/types/domain/Device/DebugDevice.d.ts.map +1 -0
- package/lib/types/domain/Device/Device.d.ts +13 -0
- package/lib/types/domain/Device/Device.d.ts.map +1 -0
- package/lib/types/domain/DirectorySource.d.ts +13 -0
- package/lib/types/domain/DirectorySource.d.ts.map +1 -0
- package/lib/types/domain/ExternalApp.d.ts +22 -0
- package/lib/types/domain/ExternalApp.d.ts.map +1 -0
- package/lib/types/domain/Features.d.ts +24 -0
- package/lib/types/domain/Features.d.ts.map +1 -0
- package/lib/types/domain/ForwardOption.d.ts +27 -0
- package/lib/types/domain/ForwardOption.d.ts.map +1 -0
- package/lib/types/domain/IndirectTransfer.d.ts +31 -0
- package/lib/types/domain/IndirectTransfer.d.ts.map +1 -0
- package/lib/types/domain/Line.d.ts +46 -0
- package/lib/types/domain/Line.d.ts.map +1 -0
- package/lib/types/domain/Meeting.d.ts +45 -0
- package/lib/types/domain/Meeting.d.ts.map +1 -0
- package/lib/types/domain/MeetingAuthorization.d.ts +26 -0
- package/lib/types/domain/MeetingAuthorization.d.ts.map +1 -0
- package/lib/types/domain/MeetingStatus.d.ts +10 -0
- package/lib/types/domain/MeetingStatus.d.ts.map +1 -0
- package/lib/types/domain/NotificationOptions.d.ts +22 -0
- package/lib/types/domain/NotificationOptions.d.ts.map +1 -0
- package/lib/types/domain/Phone/CTIPhone.d.ts +76 -0
- package/lib/types/domain/Phone/CTIPhone.d.ts.map +1 -0
- package/lib/types/domain/Phone/Phone.d.ts +71 -0
- package/lib/types/domain/Phone/Phone.d.ts.map +1 -0
- package/lib/types/domain/Phone/WebRTCPhone.d.ts +179 -0
- package/lib/types/domain/Phone/WebRTCPhone.d.ts.map +1 -0
- package/lib/types/domain/Profile.d.ts +151 -0
- package/lib/types/domain/Profile.d.ts.map +1 -0
- package/lib/types/domain/Recording.d.ts +26 -0
- package/lib/types/domain/Recording.d.ts.map +1 -0
- package/lib/types/domain/Relocation.d.ts +23 -0
- package/lib/types/domain/Relocation.d.ts.map +1 -0
- package/lib/types/domain/Room.d.ts +35 -0
- package/lib/types/domain/Room.d.ts.map +1 -0
- package/lib/types/domain/SFUNotAvailableError.d.ts +4 -0
- package/lib/types/domain/SFUNotAvailableError.d.ts.map +1 -0
- package/lib/types/domain/ServerError.d.ts +6 -0
- package/lib/types/domain/ServerError.d.ts.map +1 -0
- package/lib/types/domain/Session.d.ts +90 -0
- package/lib/types/domain/Session.d.ts.map +1 -0
- package/lib/types/domain/SipLine.d.ts +54 -0
- package/lib/types/domain/SipLine.d.ts.map +1 -0
- package/lib/types/domain/Subscription.d.ts +43 -0
- package/lib/types/domain/Subscription.d.ts.map +1 -0
- package/lib/types/domain/SwitchboardCall.d.ts +62 -0
- package/lib/types/domain/SwitchboardCall.d.ts.map +1 -0
- package/lib/types/domain/Voicemail.d.ts +50 -0
- package/lib/types/domain/Voicemail.d.ts.map +1 -0
- package/lib/types/domain/__tests__/Agent.test.d.ts +2 -0
- package/lib/types/domain/__tests__/Agent.test.d.ts.map +1 -0
- package/lib/types/domain/__tests__/Call.test.d.ts +2 -0
- package/lib/types/domain/__tests__/Call.test.d.ts.map +1 -0
- package/lib/types/domain/__tests__/CallLog.test.d.ts +2 -0
- package/lib/types/domain/__tests__/CallLog.test.d.ts.map +1 -0
- package/lib/types/domain/__tests__/CallSession.test.d.ts +2 -0
- package/lib/types/domain/__tests__/CallSession.test.d.ts.map +1 -0
- package/lib/types/domain/__tests__/Contact.test.d.ts +2 -0
- package/lib/types/domain/__tests__/Contact.test.d.ts.map +1 -0
- package/lib/types/domain/__tests__/IndirectTransfer.test.d.ts +2 -0
- package/lib/types/domain/__tests__/IndirectTransfer.test.d.ts.map +1 -0
- package/lib/types/domain/__tests__/Line.test.d.ts +2 -0
- package/lib/types/domain/__tests__/Line.test.d.ts.map +1 -0
- package/lib/types/domain/__tests__/Meeting.test.d.ts +2 -0
- package/lib/types/domain/__tests__/Meeting.test.d.ts.map +1 -0
- package/lib/types/domain/__tests__/MeetingAuthorization.test.d.ts +2 -0
- package/lib/types/domain/__tests__/MeetingAuthorization.test.d.ts.map +1 -0
- package/lib/types/domain/__tests__/Profile.test.d.ts +2 -0
- package/lib/types/domain/__tests__/Profile.test.d.ts.map +1 -0
- package/lib/types/domain/__tests__/Room.test.d.ts +2 -0
- package/lib/types/domain/__tests__/Room.test.d.ts.map +1 -0
- package/lib/types/domain/__tests__/Session.test.d.ts +2 -0
- package/lib/types/domain/__tests__/Session.test.d.ts.map +1 -0
- package/lib/types/domain/__tests__/SipLine.test.d.ts +2 -0
- package/lib/types/domain/__tests__/SipLine.test.d.ts.map +1 -0
- package/lib/types/domain/__tests__/Voicemail.test.d.ts +2 -0
- package/lib/types/domain/__tests__/Voicemail.test.d.ts.map +1 -0
- package/lib/types/domain/types.d.ts +217 -0
- package/lib/types/domain/types.d.ts.map +1 -0
- package/lib/types/index.d.ts +304 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/lib/WazoSessionDescriptionHandler.d.ts +30 -0
- package/lib/types/lib/WazoSessionDescriptionHandler.d.ts.map +1 -0
- package/lib/types/pubkey.d.ts +3 -0
- package/lib/types/pubkey.d.ts.map +1 -0
- package/lib/types/service/CallApi.d.ts +28 -0
- package/lib/types/service/CallApi.d.ts.map +1 -0
- package/lib/types/service/IssueReporter.d.ts +40 -0
- package/lib/types/service/IssueReporter.d.ts.map +1 -0
- package/lib/types/service/__tests__/IssueReporter.test.d.ts +2 -0
- package/lib/types/service/__tests__/IssueReporter.test.d.ts.map +1 -0
- package/lib/types/service/getApiClient.d.ts +16 -0
- package/lib/types/service/getApiClient.d.ts.map +1 -0
- package/lib/types/simple/Auth.d.ts +51 -0
- package/lib/types/simple/Auth.d.ts.map +1 -0
- package/lib/types/simple/Configuration.d.ts +3 -0
- package/lib/types/simple/Configuration.d.ts.map +1 -0
- package/lib/types/simple/Directory.d.ts +3 -0
- package/lib/types/simple/Directory.d.ts.map +1 -0
- package/lib/types/simple/Phone.d.ts +115 -0
- package/lib/types/simple/Phone.d.ts.map +1 -0
- package/lib/types/simple/Websocket.d.ts +19 -0
- package/lib/types/simple/Websocket.d.ts.map +1 -0
- package/lib/types/simple/index.d.ts +147 -0
- package/lib/types/simple/index.d.ts.map +1 -0
- package/lib/types/simple/room/LocalParticipant.d.ts +5 -0
- package/lib/types/simple/room/LocalParticipant.d.ts.map +1 -0
- package/lib/types/simple/room/Participant.d.ts +76 -0
- package/lib/types/simple/room/Participant.d.ts.map +1 -0
- package/lib/types/simple/room/RemoteParticipant.d.ts +7 -0
- package/lib/types/simple/room/RemoteParticipant.d.ts.map +1 -0
- package/lib/types/simple/room/Room.d.ts +116 -0
- package/lib/types/simple/room/Room.d.ts.map +1 -0
- package/lib/types/simple/room/SipRoom.d.ts +14 -0
- package/lib/types/simple/room/SipRoom.d.ts.map +1 -0
- package/lib/types/simple/room/Stream.d.ts +13 -0
- package/lib/types/simple/room/Stream.d.ts.map +1 -0
- package/lib/types/simple/room/__tests__/Participant.test.d.ts +2 -0
- package/lib/types/simple/room/__tests__/Participant.test.d.ts.map +1 -0
- package/lib/types/simple/room/__tests__/RemoteParticipant.test.d.ts +2 -0
- package/lib/types/simple/room/__tests__/RemoteParticipant.test.d.ts.map +1 -0
- package/lib/types/simple/utils.d.ts +3 -0
- package/lib/types/simple/utils.d.ts.map +1 -0
- package/lib/types/types/WebSocketMessage.d.ts +285 -0
- package/lib/types/types/WebSocketMessage.d.ts.map +1 -0
- package/lib/types/utils/Emitter.d.ts +18 -0
- package/lib/types/utils/Emitter.d.ts.map +1 -0
- package/lib/types/utils/Heartbeat.d.ts +21 -0
- package/lib/types/utils/Heartbeat.d.ts.map +1 -0
- package/lib/types/utils/PhoneNumberUtil.d.ts +8 -0
- package/lib/types/utils/PhoneNumberUtil.d.ts.map +1 -0
- package/lib/types/utils/__tests__/Heartbeat.test.d.ts +2 -0
- package/lib/types/utils/__tests__/Heartbeat.test.d.ts.map +1 -0
- package/lib/types/utils/__tests__/PhoneNumberUtil.test.d.ts +2 -0
- package/lib/types/utils/__tests__/PhoneNumberUtil.test.d.ts.map +1 -0
- package/lib/types/utils/__tests__/api-requester.test.d.ts +2 -0
- package/lib/types/utils/__tests__/api-requester.test.d.ts.map +1 -0
- package/lib/types/utils/__tests__/array.test.d.ts +2 -0
- package/lib/types/utils/__tests__/array.test.d.ts.map +1 -0
- package/lib/types/utils/__tests__/compare-version.test.d.ts +2 -0
- package/lib/types/utils/__tests__/compare-version.test.d.ts.map +1 -0
- package/lib/types/utils/__tests__/object.test.d.ts +2 -0
- package/lib/types/utils/__tests__/object.test.d.ts.map +1 -0
- package/lib/types/utils/__tests__/sdp.test.d.ts +2 -0
- package/lib/types/utils/__tests__/sdp.test.d.ts.map +1 -0
- package/lib/types/utils/__tests__/string.test.d.ts +2 -0
- package/lib/types/utils/__tests__/string.test.d.ts.map +1 -0
- package/lib/types/utils/api-requester.d.ts +45 -0
- package/lib/types/utils/api-requester.d.ts.map +1 -0
- package/lib/types/utils/array.d.ts +2 -0
- package/lib/types/utils/array.d.ts.map +1 -0
- package/lib/types/utils/compare-version.d.ts +3 -0
- package/lib/types/utils/compare-version.d.ts.map +1 -0
- package/lib/types/utils/isMobile.d.ts +3 -0
- package/lib/types/utils/isMobile.d.ts.map +1 -0
- package/lib/types/utils/new-from.d.ts +3 -0
- package/lib/types/utils/new-from.d.ts.map +1 -0
- package/lib/types/utils/object.d.ts +2 -0
- package/lib/types/utils/object.d.ts.map +1 -0
- package/lib/types/utils/once.d.ts +2 -0
- package/lib/types/utils/once.d.ts.map +1 -0
- package/lib/types/utils/sdp.d.ts +13 -0
- package/lib/types/utils/sdp.d.ts.map +1 -0
- package/lib/types/utils/string.d.ts +2 -0
- package/lib/types/utils/string.d.ts.map +1 -0
- package/lib/types/utils/update-from.d.ts +3 -0
- package/lib/types/utils/update-from.d.ts.map +1 -0
- package/lib/types/utils/webrtc.d.ts +15 -0
- package/lib/types/utils/webrtc.d.ts.map +1 -0
- package/lib/types/web-rtc-client.d.ts +220 -0
- package/lib/types/web-rtc-client.d.ts.map +1 -0
- package/lib/types/websocket-client.d.ts +134 -0
- package/lib/types/websocket-client.d.ts.map +1 -0
- package/lib/utils/Emitter.js +22 -33
- package/lib/utils/Heartbeat.js +54 -86
- package/lib/utils/PhoneNumberUtil.js +60 -77
- package/lib/utils/__tests__/Heartbeat.test.js +73 -170
- package/lib/utils/__tests__/PhoneNumberUtil.test.js +57 -131
- package/lib/utils/__tests__/api-requester.test.js +139 -784
- package/lib/utils/__tests__/array.test.js +18 -21
- package/lib/utils/__tests__/compare-version.test.js +12 -27
- package/lib/utils/__tests__/object.test.js +75 -56
- package/lib/utils/__tests__/sdp.test.js +99 -220
- package/lib/utils/__tests__/string.test.js +23 -29
- package/lib/utils/api-requester.js +191 -685
- package/lib/utils/array.js +10 -14
- package/lib/utils/compare-version.js +15 -18
- package/lib/utils/isMobile.js +3 -5
- package/lib/utils/new-from.js +9 -14
- package/lib/utils/object.js +12 -26
- package/lib/utils/once.js +15 -15
- package/lib/utils/sdp.js +97 -150
- package/lib/utils/string.js +8 -12
- package/lib/utils/update-from.js +11 -18
- package/lib/utils/webrtc.js +38 -39
- package/lib/web-rtc-client.js +2070 -7694
- package/lib/websocket-client.js +357 -1021
- package/package.json +41 -34
- package/src/__tests__/{api-client.test.js → api-client.test.ts} +71 -29
- package/src/__tests__/{web-rtc-client.test.js → web-rtc-client.test.ts} +95 -35
- package/src/api/agentd.ts +37 -0
- package/src/api/amid.ts +16 -0
- package/src/api/application.ts +96 -0
- package/src/api/auth.ts +259 -0
- package/src/api/call-logd.ts +38 -0
- package/src/api/calld.ts +183 -0
- package/src/api/chatd.ts +101 -0
- package/src/api/confd.ts +110 -0
- package/src/api/ctid-ng.ts +152 -0
- package/src/api/dird.ts +146 -0
- package/src/api/webhookd.ts +30 -0
- package/src/{api-client.js → api-client.ts} +103 -67
- package/src/checker/{Checker.js → Checker.ts} +27 -20
- package/src/checker/checks/{aor.js → aor.ts} +10 -6
- package/src/checker/checks/{api.js → api.ts} +18 -17
- package/src/checker/checks/{ice-ipv4.js → ice-ipv4.ts} +23 -26
- package/src/checker/checks/{index.js → index.ts} +1 -9
- package/src/checker/checks/{symmetric-nat.js → symmetric-nat.ts} +14 -15
- package/src/checker/checks/{wazo-websocket.js → wazo-websocket.ts} +7 -5
- package/src/checker/checks/{webrtc-transport.js → webrtc-transport.ts} +3 -2
- package/src/checker/checks/{webrtc.js → webrtc.ts} +3 -4
- package/src/domain/{AdHocAPIConference.js → AdHocAPIConference.ts} +38 -54
- package/src/domain/{Agent.js → Agent.ts} +11 -7
- package/src/domain/BadResponse.ts +29 -0
- package/src/domain/{Call.js → Call.ts} +62 -46
- package/src/domain/{CallLog.js → CallLog.ts} +61 -63
- package/src/domain/{CallSession.js → CallSession.ts} +55 -52
- package/src/domain/{ChatMessage.js → ChatMessage.ts} +32 -21
- package/src/domain/{ChatRoom.js → ChatRoom.ts} +15 -11
- package/src/domain/{Contact.js → Contact.ts} +380 -262
- package/src/domain/Device/{DebugDevice.js → DebugDevice.ts} +3 -5
- package/src/domain/Device/{Device.js → Device.ts} +0 -11
- package/src/domain/DirectorySource.ts +13 -0
- package/src/domain/{ExternalApp.js → ExternalApp.ts} +14 -13
- package/src/domain/{Features.js → Features.ts} +43 -17
- package/src/domain/{ForwardOption.js → ForwardOption.ts} +16 -16
- package/src/domain/{IndirectTransfer.js → IndirectTransfer.ts} +21 -19
- package/src/domain/{Line.js → Line.ts} +39 -26
- package/src/domain/{Meeting.js → Meeting.ts} +36 -29
- package/src/domain/{MeetingAuthorization.js → MeetingAuthorization.ts} +13 -12
- package/src/domain/{MeetingStatus.js → MeetingStatus.ts} +2 -6
- package/src/domain/{NotificationOptions.js → NotificationOptions.ts} +14 -13
- package/src/domain/Phone/{CTIPhone.js → CTIPhone.ts} +90 -60
- package/src/domain/Phone/{Phone.js → Phone.ts} +27 -72
- package/src/domain/Phone/{WebRTCPhone.js → WebRTCPhone.ts} +456 -422
- package/src/domain/{Profile.js → Profile.ts} +117 -100
- package/src/domain/{Recording.js → Recording.ts} +25 -16
- package/src/domain/{Relocation.js → Relocation.ts} +15 -14
- package/src/domain/{Room.js → Room.ts} +58 -27
- package/src/domain/{SFUNotAvailableError.js → SFUNotAvailableError.ts} +2 -2
- package/src/domain/ServerError.ts +12 -0
- package/src/domain/{Session.js → Session.ts} +89 -67
- package/src/domain/{SipLine.js → SipLine.ts} +52 -45
- package/src/domain/{Subscription.js → Subscription.ts} +22 -13
- package/src/domain/{SwitchboardCall.js → SwitchboardCall.ts} +48 -43
- package/src/domain/{Voicemail.js → Voicemail.ts} +38 -34
- package/src/domain/__tests__/{Agent.test.js → Agent.test.ts} +11 -19
- package/src/domain/__tests__/{Call.test.js → Call.test.ts} +12 -9
- package/src/domain/__tests__/CallLog.test.ts +65 -0
- package/src/domain/__tests__/{CallSession.test.js → CallSession.test.ts} +15 -19
- package/src/domain/__tests__/Contact.test.ts +238 -0
- package/src/domain/__tests__/{IndirectTransfer.test.js → IndirectTransfer.test.ts} +38 -31
- package/src/domain/__tests__/Line.test.ts +53 -0
- package/src/domain/__tests__/{Meeting.test.js → Meeting.test.ts} +12 -38
- package/src/domain/__tests__/{MeetingAuthorization.test.js → MeetingAuthorization.test.ts} +13 -21
- package/src/domain/__tests__/Profile.test.ts +139 -0
- package/src/domain/__tests__/{Room.test.js → Room.test.ts} +114 -76
- package/src/domain/__tests__/{Session.test.js → Session.test.ts} +137 -162
- package/src/domain/__tests__/{SipLine.test.js → SipLine.test.ts} +7 -3
- package/src/domain/__tests__/{Voicemail.test.js → Voicemail.test.ts} +26 -20
- package/src/domain/types.ts +227 -0
- package/src/{index.js → index.ts} +4 -28
- package/src/lib/WazoSessionDescriptionHandler.ts +534 -0
- package/{config.js → src/pubkey.ts} +3 -3
- package/src/service/{CallApi.js → CallApi.ts} +14 -18
- package/src/service/{IssueReporter.js → IssueReporter.ts} +105 -56
- package/src/service/__tests__/{IssueReporter.test.js → IssueReporter.test.ts} +27 -23
- package/src/service/getApiClient.ts +94 -0
- package/src/simple/{Auth.js → Auth.ts} +130 -101
- package/src/simple/{Configuration.js → Configuration.ts} +2 -3
- package/src/simple/{Directory.js → Directory.ts} +2 -3
- package/src/simple/Phone.ts +623 -0
- package/src/simple/Websocket.ts +119 -0
- package/src/simple/{index.js → index.ts} +51 -21
- package/src/simple/room/{LocalParticipant.js → LocalParticipant.ts} +1 -3
- package/src/simple/room/{Participant.js → Participant.ts} +108 -46
- package/src/simple/room/{RemoteParticipant.js → RemoteParticipant.ts} +5 -4
- package/src/simple/room/{Room.js → Room.ts} +266 -183
- package/src/simple/room/{SipRoom.js → SipRoom.ts} +46 -29
- package/src/simple/room/{Stream.js → Stream.ts} +8 -6
- package/src/simple/room/__tests__/{Participant.test.js → Participant.test.ts} +9 -15
- package/src/simple/room/__tests__/{RemoteParticipant.test.js → RemoteParticipant.test.ts} +5 -1
- package/src/simple/utils.ts +12 -0
- package/src/types/WebSocketMessage.ts +335 -0
- package/src/types/global.d.ts +26 -0
- package/src/utils/Emitter.ts +34 -0
- package/src/utils/{Heartbeat.js → Heartbeat.ts} +17 -11
- package/src/utils/{PhoneNumberUtil.js → PhoneNumberUtil.ts} +12 -18
- package/src/utils/__tests__/{Heartbeat.test.js → Heartbeat.test.ts} +0 -15
- package/src/utils/__tests__/{PhoneNumberUtil.test.js → PhoneNumberUtil.test.ts} +6 -4
- package/src/utils/__tests__/{api-requester.test.js → api-requester.test.ts} +75 -24
- package/src/utils/__tests__/{array.test.js → array.test.ts} +10 -2
- package/src/utils/__tests__/object.test.ts +77 -0
- package/src/utils/__tests__/{sdp.test.js → sdp.test.ts} +15 -37
- package/src/utils/__tests__/{string.test.js → string.test.ts} +4 -2
- package/src/utils/{api-requester.js → api-requester.ts} +104 -83
- package/src/utils/{array.js → array.ts} +2 -2
- package/src/utils/{compare-version.js → compare-version.ts} +3 -2
- package/src/utils/{isMobile.js → isMobile.ts} +1 -1
- package/src/utils/{new-from.js → new-from.ts} +3 -6
- package/src/utils/{object.js → object.ts} +3 -6
- package/src/utils/{once.js → once.ts} +5 -5
- package/src/utils/sdp.ts +119 -0
- package/src/utils/{string.js → string.ts} +2 -3
- package/src/utils/update-from.ts +11 -0
- package/src/utils/{webrtc.js → webrtc.ts} +21 -3
- package/src/{web-rtc-client.js → web-rtc-client.ts} +879 -476
- package/src/{websocket-client.js → websocket-client.ts} +146 -144
- package/esm/simple/Softphone.js +0 -394
- package/lib/simple/Softphone.js +0 -396
- package/src/api/agentd.js +0 -74
- package/src/api/amid.js +0 -13
- package/src/api/application.js +0 -137
- package/src/api/auth.js +0 -279
- package/src/api/call-logd.js +0 -20
- package/src/api/calld.js +0 -214
- package/src/api/chatd.js +0 -80
- package/src/api/confd.js +0 -127
- package/src/api/ctid-ng.js +0 -153
- package/src/api/dird.js +0 -159
- package/src/api/webhookd.js +0 -31
- package/src/domain/BadResponse.js +0 -42
- package/src/domain/DirectorySource.js +0 -16
- package/src/domain/ServerError.js +0 -18
- package/src/domain/__tests__/CallLog.test.js +0 -75
- package/src/domain/__tests__/Contact.test.js +0 -170
- package/src/domain/__tests__/Line.test.js +0 -73
- package/src/domain/__tests__/Profile.test.js +0 -104
- package/src/domain/types.js +0 -248
- package/src/lib/WazoSessionDescriptionHandler.js +0 -467
- package/src/service/getApiClient.js +0 -122
- package/src/simple/Phone.js +0 -425
- package/src/simple/Softphone.js +0 -392
- package/src/simple/Websocket.js +0 -86
- package/src/simple/utils.js +0 -17
- package/src/types/WebSocketMessage.js +0 -232
- package/src/utils/Emitter.js +0 -26
- package/src/utils/__tests__/object.test.js +0 -35
- package/src/utils/sdp.js +0 -140
- package/src/utils/update-from.js +0 -15
- /package/src/domain/{Country.js → Country.ts} +0 -0
- /package/src/utils/__tests__/{compare-version.test.js → compare-version.test.ts} +0 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
type TodoObject = object;
|
|
2
|
+
export type Token = string;
|
|
3
|
+
export type UUID = string;
|
|
4
|
+
export type DateString = string;
|
|
5
|
+
export type RequestError = {
|
|
6
|
+
timestamp: number;
|
|
7
|
+
message: string;
|
|
8
|
+
resource: string;
|
|
9
|
+
error_id: string;
|
|
10
|
+
details: {
|
|
11
|
+
uuid: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export type LogoutResponse = {
|
|
15
|
+
data: {
|
|
16
|
+
message: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export type User = {
|
|
20
|
+
username: string;
|
|
21
|
+
uuid: UUID;
|
|
22
|
+
firstname: string;
|
|
23
|
+
lastname: string;
|
|
24
|
+
enabled: boolean;
|
|
25
|
+
tenant_uuid: string;
|
|
26
|
+
emails: Array<string>;
|
|
27
|
+
};
|
|
28
|
+
export type Tenant = {
|
|
29
|
+
name: string;
|
|
30
|
+
uuid: UUID;
|
|
31
|
+
phone: string | null | undefined;
|
|
32
|
+
contact: string | null | undefined;
|
|
33
|
+
address: Array<{
|
|
34
|
+
city: string | null | undefined;
|
|
35
|
+
country: string | null | undefined;
|
|
36
|
+
state: string | null | undefined;
|
|
37
|
+
line_1: string | null | undefined;
|
|
38
|
+
line_2: string | null | undefined;
|
|
39
|
+
zip_code: string | null | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
parent_uuid: UUID;
|
|
42
|
+
};
|
|
43
|
+
export type Group = TodoObject;
|
|
44
|
+
export type Policy = {
|
|
45
|
+
acl_templates: Array<string>;
|
|
46
|
+
acl: Array<string>;
|
|
47
|
+
description: string | null | undefined;
|
|
48
|
+
tenant_uuid: UUID;
|
|
49
|
+
uuid: UUID;
|
|
50
|
+
name: string;
|
|
51
|
+
};
|
|
52
|
+
export type ListTenantsResponse = {
|
|
53
|
+
filtered: number;
|
|
54
|
+
total: number;
|
|
55
|
+
items: Array<Tenant>;
|
|
56
|
+
};
|
|
57
|
+
export type ListUsersResponse = {
|
|
58
|
+
filtered: number;
|
|
59
|
+
total: number;
|
|
60
|
+
items: Array<User>;
|
|
61
|
+
};
|
|
62
|
+
export type ListGroupsResponse = {
|
|
63
|
+
filtered: number;
|
|
64
|
+
total: number;
|
|
65
|
+
items: Array<Group>;
|
|
66
|
+
};
|
|
67
|
+
export type ListPoliciesResponse = {
|
|
68
|
+
total: number;
|
|
69
|
+
items: Array<Policy>;
|
|
70
|
+
};
|
|
71
|
+
export type AccessdGroup = TodoObject;
|
|
72
|
+
export type Link = {
|
|
73
|
+
href: string;
|
|
74
|
+
rel: string;
|
|
75
|
+
};
|
|
76
|
+
export type Line = {
|
|
77
|
+
id: number;
|
|
78
|
+
endpoint_sip: {
|
|
79
|
+
id: number;
|
|
80
|
+
username: string;
|
|
81
|
+
links: Array<Link>;
|
|
82
|
+
};
|
|
83
|
+
endpoint_sccp: string | null | undefined;
|
|
84
|
+
endpoint_custom: string | null | undefined;
|
|
85
|
+
extensions: Array<{
|
|
86
|
+
id: number;
|
|
87
|
+
exten: string;
|
|
88
|
+
context: string;
|
|
89
|
+
links: Array<Link>;
|
|
90
|
+
}>;
|
|
91
|
+
};
|
|
92
|
+
export type ConfdUser = {
|
|
93
|
+
id: number;
|
|
94
|
+
uuid: UUID;
|
|
95
|
+
firstname: string;
|
|
96
|
+
lastname: string;
|
|
97
|
+
email: string;
|
|
98
|
+
timezone: string | null | undefined;
|
|
99
|
+
language: string | null | undefined;
|
|
100
|
+
description: string | null | undefined;
|
|
101
|
+
caller_id: string;
|
|
102
|
+
outgoing_caller_id: string;
|
|
103
|
+
mobile_phone_number: string;
|
|
104
|
+
username: string | null | undefined;
|
|
105
|
+
password: string | null | undefined;
|
|
106
|
+
music_on_hold: boolean | null | undefined;
|
|
107
|
+
preprocess_subroutine: string | null | undefined;
|
|
108
|
+
call_transfer_enabled: boolean;
|
|
109
|
+
dtmf_hangup_enabled: boolean;
|
|
110
|
+
call_record_enabled: boolean;
|
|
111
|
+
online_call_record_enabled: boolean;
|
|
112
|
+
supervision_enabled: boolean;
|
|
113
|
+
ring_seconds: number;
|
|
114
|
+
simultaneous_calls: number;
|
|
115
|
+
call_permission_password: string;
|
|
116
|
+
subscription_type: number;
|
|
117
|
+
created_at: DateString;
|
|
118
|
+
enabled: boolean;
|
|
119
|
+
tenant_uuid: UUID;
|
|
120
|
+
links: Array<Link>;
|
|
121
|
+
agent: string | null | undefined;
|
|
122
|
+
cti_profile: string | null | undefined;
|
|
123
|
+
call_permissions: Array<string>;
|
|
124
|
+
fallbacks: {
|
|
125
|
+
noanswer_destination: string | null | undefined;
|
|
126
|
+
busy_destination: string | null | undefined;
|
|
127
|
+
congestion_destination: string | null | undefined;
|
|
128
|
+
fail_destination: string | null | undefined;
|
|
129
|
+
};
|
|
130
|
+
groups: Array<AccessdGroup>;
|
|
131
|
+
incalls: Array<Record<string, any>>;
|
|
132
|
+
lines: Array<Line>;
|
|
133
|
+
forwards: {
|
|
134
|
+
busy: {
|
|
135
|
+
enable: boolean;
|
|
136
|
+
destination: string | null | undefined;
|
|
137
|
+
};
|
|
138
|
+
noanswer: {
|
|
139
|
+
enable: boolean;
|
|
140
|
+
destination: string | null | undefined;
|
|
141
|
+
};
|
|
142
|
+
unconditional: {
|
|
143
|
+
enable: boolean;
|
|
144
|
+
destination: string | null | undefined;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
schedules: [];
|
|
148
|
+
services: {
|
|
149
|
+
dnd: {
|
|
150
|
+
enabled: boolean;
|
|
151
|
+
};
|
|
152
|
+
incallfilter: {
|
|
153
|
+
enabled: boolean;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
switchboards: Array<Record<string, any>>;
|
|
157
|
+
voicemail: string | null | undefined;
|
|
158
|
+
queues: Array<Record<string, any>>;
|
|
159
|
+
};
|
|
160
|
+
export type ListConfdUsersResponse = {
|
|
161
|
+
total: number;
|
|
162
|
+
items: Array<ConfdUser>;
|
|
163
|
+
};
|
|
164
|
+
export type Application = {
|
|
165
|
+
uuid: UUID;
|
|
166
|
+
tenant_uuid: UUID;
|
|
167
|
+
name: string;
|
|
168
|
+
destination: string;
|
|
169
|
+
destination_options: {
|
|
170
|
+
music_on_hold: string;
|
|
171
|
+
type: string;
|
|
172
|
+
};
|
|
173
|
+
links: Array<Link>;
|
|
174
|
+
};
|
|
175
|
+
export type ListApplicationsResponse = {
|
|
176
|
+
total: number;
|
|
177
|
+
items: Array<Application>;
|
|
178
|
+
};
|
|
179
|
+
export type Node = {
|
|
180
|
+
uuid: UUID;
|
|
181
|
+
calls: Array<Record<string, any>>;
|
|
182
|
+
};
|
|
183
|
+
export type CallNode = TodoObject;
|
|
184
|
+
export type ListNodesResponse = {
|
|
185
|
+
items: Array<Node>;
|
|
186
|
+
};
|
|
187
|
+
export type ListCallNodesResponse = {
|
|
188
|
+
uuid: UUID;
|
|
189
|
+
items: Array<CallNode>;
|
|
190
|
+
};
|
|
191
|
+
export type GetTenantResponse = TodoObject;
|
|
192
|
+
export type GetUserResponse = TodoObject;
|
|
193
|
+
export type WebRtcConfig = {
|
|
194
|
+
id: number;
|
|
195
|
+
host: string;
|
|
196
|
+
line: {
|
|
197
|
+
id: number;
|
|
198
|
+
links: Array<Link>;
|
|
199
|
+
};
|
|
200
|
+
links: Array<Link>;
|
|
201
|
+
options: Array<Array<string>>;
|
|
202
|
+
secret: string;
|
|
203
|
+
tenant_uuid: string;
|
|
204
|
+
type: string;
|
|
205
|
+
username: string;
|
|
206
|
+
};
|
|
207
|
+
export type CTITransfer = {
|
|
208
|
+
'flow': string;
|
|
209
|
+
'id': string;
|
|
210
|
+
'initiator_call': string;
|
|
211
|
+
'initiator_uuid': string;
|
|
212
|
+
'recipient_call': string;
|
|
213
|
+
'status': string;
|
|
214
|
+
'transferred_call': string;
|
|
215
|
+
};
|
|
216
|
+
export {};
|
|
217
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/domain/types.ts"],"names":[],"mappings":"AACA,KAAK,UAAU,GAAG,MAAM,CAAC;AAEzB,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC;AAC3B,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAC1B,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAChC,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH,CAAC;AACF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE;Q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;IACF,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AACF,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC"}
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import ApiClient from './api-client';
|
|
2
|
+
import WebRTCClient from './web-rtc-client';
|
|
3
|
+
import WebSocketClient from './websocket-client';
|
|
4
|
+
import Emitter from './utils/Emitter';
|
|
5
|
+
import BadResponse from './domain/BadResponse';
|
|
6
|
+
import ServerError from './domain/ServerError';
|
|
7
|
+
import SFUNotAvailableError from './domain/SFUNotAvailableError';
|
|
8
|
+
import Call from './domain/Call';
|
|
9
|
+
import CallLog from './domain/CallLog';
|
|
10
|
+
import Recording from './domain/Recording';
|
|
11
|
+
import ChatMessage from './domain/ChatMessage';
|
|
12
|
+
import ChatRoom from './domain/ChatRoom';
|
|
13
|
+
import Contact from './domain/Contact';
|
|
14
|
+
import ForwardOption from './domain/ForwardOption';
|
|
15
|
+
import Line from './domain/Line';
|
|
16
|
+
import NotificationOptions from './domain/NotificationOptions';
|
|
17
|
+
import Profile from './domain/Profile';
|
|
18
|
+
import Session from './domain/Session';
|
|
19
|
+
import Voicemail from './domain/Voicemail';
|
|
20
|
+
import Relocation from './domain/Relocation';
|
|
21
|
+
import Room from './domain/Room';
|
|
22
|
+
import CallSession from './domain/CallSession';
|
|
23
|
+
import IndirectTransfer from './domain/IndirectTransfer';
|
|
24
|
+
import SwitchboardCall from './domain/SwitchboardCall';
|
|
25
|
+
import WebRTCPhone from './domain/Phone/WebRTCPhone';
|
|
26
|
+
import CTIPhone from './domain/Phone/CTIPhone';
|
|
27
|
+
import Meeting from './domain/Meeting';
|
|
28
|
+
import type { NewContact as NewContactType, ContactResponse as ContactResponseType, ContactsResponse as ContactsResponseType, ContactPersonalResponse as ContactPersonalResponseType, ContactMobileResponse as ContactMobileResponseType } from './domain/Contact';
|
|
29
|
+
import type { Phone as PhoneType, PhoneEventCallbacks as PhoneEventCallbacksType } from './domain/Phone/Phone';
|
|
30
|
+
import type { ChatUser as ChatUserType } from './domain/ChatMessage';
|
|
31
|
+
import type { Device as DeviceType } from './domain/Device/Device';
|
|
32
|
+
import type { WebSocketMessage as WebSocketMessageType } from './types/WebSocketMessage';
|
|
33
|
+
import DebugDevice from './domain/Device/DebugDevice';
|
|
34
|
+
import Checker from './checker/Checker';
|
|
35
|
+
import ApiRequester from './utils/api-requester';
|
|
36
|
+
import type { DirectorySource as DirectorySourceType, DirectorySources as DirectorySourcesType } from './domain/DirectorySource';
|
|
37
|
+
import type { SwitchboardAnwseredQueuedCall as SwitchboardAnwseredQueuedCallType, SwitchboardAnwseredHeldCall as SwitchboardAnwseredHeldCallType, SwitchboardCallItem as SwitchboardCallItemType, SwitchboardCallItems as SwitchboardCallItemsType } from './domain/SwitchboardCall';
|
|
38
|
+
export type NewContact = NewContactType;
|
|
39
|
+
export type ContactResponse = ContactResponseType;
|
|
40
|
+
export type ContactsResponse = ContactsResponseType;
|
|
41
|
+
export type ContactPersonalResponse = ContactPersonalResponseType;
|
|
42
|
+
export type ContactMobileResponse = ContactMobileResponseType;
|
|
43
|
+
export type Phone = PhoneType;
|
|
44
|
+
export type PhoneEventCallbacks = PhoneEventCallbacksType;
|
|
45
|
+
export type Device = DeviceType;
|
|
46
|
+
export type ChatUser = ChatUserType;
|
|
47
|
+
export type Source = DirectorySourceType;
|
|
48
|
+
export type Sources = DirectorySourcesType;
|
|
49
|
+
export type SwitchboardAnwseredQueuedCall = SwitchboardAnwseredQueuedCallType;
|
|
50
|
+
export type SwitchboardAnwseredHeldCall = SwitchboardAnwseredHeldCallType;
|
|
51
|
+
export type SwitchboardCallItem = SwitchboardCallItemType;
|
|
52
|
+
export type SwitchboardCallItems = SwitchboardCallItemsType;
|
|
53
|
+
export type WebSocketMessage = WebSocketMessageType;
|
|
54
|
+
declare const _default: {
|
|
55
|
+
ApiRequester: typeof ApiRequester;
|
|
56
|
+
Checker: typeof Checker;
|
|
57
|
+
Emitter: typeof Emitter;
|
|
58
|
+
PhoneNumberUtil: libphonenumber.PhoneNumberUtil;
|
|
59
|
+
PhoneNumberFormat: typeof libphonenumber.PhoneNumberFormat;
|
|
60
|
+
AsYouTypeFormatter: typeof libphonenumber.AsYouTypeFormatter;
|
|
61
|
+
getDisplayableNumber: (rawNumber: string, country: string, asYouType?: boolean) => string;
|
|
62
|
+
getCallableNumber: (number: string, country: string | null | undefined) => string | null | undefined;
|
|
63
|
+
WazoApiClient: typeof ApiClient;
|
|
64
|
+
WazoWebRTCClient: typeof WebRTCClient;
|
|
65
|
+
WazoWebSocketClient: typeof WebSocketClient;
|
|
66
|
+
BadResponse: typeof BadResponse;
|
|
67
|
+
ServerError: typeof ServerError;
|
|
68
|
+
SFUNotAvailableError: typeof SFUNotAvailableError;
|
|
69
|
+
Call: typeof Call;
|
|
70
|
+
CallSession: typeof CallSession;
|
|
71
|
+
CTIPhone: typeof CTIPhone;
|
|
72
|
+
Features: {
|
|
73
|
+
_hasChat: boolean;
|
|
74
|
+
_hasVideo: boolean;
|
|
75
|
+
_hasCallRecording: boolean;
|
|
76
|
+
_hasFax: boolean;
|
|
77
|
+
_hasMobileDoubleCall: boolean;
|
|
78
|
+
_hasMobileGsm: boolean;
|
|
79
|
+
_hasMeeting: boolean;
|
|
80
|
+
fetchAccess(): Promise<void>;
|
|
81
|
+
hasChat(): boolean;
|
|
82
|
+
hasVideo(): boolean;
|
|
83
|
+
hasCallRecording(): boolean;
|
|
84
|
+
hasFax(): boolean;
|
|
85
|
+
hasMobileDoubleCall(): boolean;
|
|
86
|
+
hasMobileGsm(): boolean;
|
|
87
|
+
hasMeeting(): boolean;
|
|
88
|
+
_hasFeatures(scopes: Record<string, any>, featureName: string): boolean;
|
|
89
|
+
};
|
|
90
|
+
IndirectTransfer: typeof IndirectTransfer;
|
|
91
|
+
SwitchboardCall: typeof SwitchboardCall;
|
|
92
|
+
CallLog: typeof CallLog;
|
|
93
|
+
Recording: typeof Recording;
|
|
94
|
+
ChatMessage: typeof ChatMessage;
|
|
95
|
+
ChatRoom: typeof ChatRoom;
|
|
96
|
+
Contact: typeof Contact;
|
|
97
|
+
COUNTRIES: {
|
|
98
|
+
BELGIUM: string;
|
|
99
|
+
CANADA: string;
|
|
100
|
+
FRANCE: string;
|
|
101
|
+
GERMANY: string;
|
|
102
|
+
ISRAEL: string;
|
|
103
|
+
ITALY: string;
|
|
104
|
+
LUXEMBOURG: string;
|
|
105
|
+
MALAYSIA: string;
|
|
106
|
+
MONACO: string;
|
|
107
|
+
NETHERLANDS: string;
|
|
108
|
+
POLAND: string;
|
|
109
|
+
PORTUGAL: string;
|
|
110
|
+
UNITED_KINGDOM: string;
|
|
111
|
+
UNITED_STATES: string;
|
|
112
|
+
SPAIN: string;
|
|
113
|
+
SWITZERLAND: string;
|
|
114
|
+
};
|
|
115
|
+
ForwardOption: typeof ForwardOption;
|
|
116
|
+
Line: typeof Line;
|
|
117
|
+
NotificationOptions: typeof NotificationOptions;
|
|
118
|
+
Profile: typeof Profile;
|
|
119
|
+
Session: typeof Session;
|
|
120
|
+
Voicemail: typeof Voicemail;
|
|
121
|
+
Relocation: typeof Relocation;
|
|
122
|
+
Room: typeof Room;
|
|
123
|
+
IssueReporter: {
|
|
124
|
+
TRACE: string;
|
|
125
|
+
INFO: string;
|
|
126
|
+
LOG: string;
|
|
127
|
+
WARN: string;
|
|
128
|
+
ERROR: string;
|
|
129
|
+
oldConsoleMethods: Record<string, any> | null;
|
|
130
|
+
enabled: boolean;
|
|
131
|
+
remoteClientConfiguration: Record<string, any> | null | undefined;
|
|
132
|
+
buffer: Record<string, any>[];
|
|
133
|
+
bufferTimeout: any;
|
|
134
|
+
_boundProcessBuffer: (...args: any[]) => any;
|
|
135
|
+
_boundParseLoggerBody: (...args: any[]) => any;
|
|
136
|
+
_callback: ((...args: any[]) => any) | null | undefined;
|
|
137
|
+
init(): void;
|
|
138
|
+
setCallback(cb: (...args: any[]) => any): void;
|
|
139
|
+
configureRemoteClient(configuration?: Record<string, any>): void;
|
|
140
|
+
enable(): void;
|
|
141
|
+
disable(): void;
|
|
142
|
+
loggerFor(category: string): any;
|
|
143
|
+
removeSlashes(str: string): string;
|
|
144
|
+
log(level: string, ...args: any): void;
|
|
145
|
+
logRequest(url: string, options: Record<string, any>, response: Record<string, any>, start: Date): void;
|
|
146
|
+
getLogs(): never[];
|
|
147
|
+
getParsedLogs(): never[];
|
|
148
|
+
getReport(): string;
|
|
149
|
+
_catchConsole(): void;
|
|
150
|
+
_sendToRemoteLogger(level: string, payload?: Record<string, any>): void;
|
|
151
|
+
_parseLoggerBody(payload: Record<string, any>): string;
|
|
152
|
+
_addToBuffer(payload: Record<string, any>): void;
|
|
153
|
+
_processBuffer(): void;
|
|
154
|
+
_sendDebugToGrafana(payload: string | Record<string, any> | Record<string, any>[], retry?: number): void;
|
|
155
|
+
_writeRetryCount(message: string | Record<string, any>, count: number): string | Record<string, any>;
|
|
156
|
+
_isLevelAbove(level1: string, level2: string): boolean;
|
|
157
|
+
_makeCategory(category: string): string;
|
|
158
|
+
};
|
|
159
|
+
DebugDevice: typeof DebugDevice;
|
|
160
|
+
PROFILE_STATE: {
|
|
161
|
+
AVAILABLE: string;
|
|
162
|
+
UNAVAILABLE: string;
|
|
163
|
+
INVISIBLE: string;
|
|
164
|
+
DISCONNECTED: string;
|
|
165
|
+
AWAY: string;
|
|
166
|
+
};
|
|
167
|
+
FORWARD_KEYS: {
|
|
168
|
+
BUSY: string;
|
|
169
|
+
NO_ANSWER: string;
|
|
170
|
+
UNCONDITIONAL: string;
|
|
171
|
+
};
|
|
172
|
+
LINE_STATE: {
|
|
173
|
+
AVAILABLE: string;
|
|
174
|
+
HOLDING: string;
|
|
175
|
+
RINGING: string;
|
|
176
|
+
TALKING: string;
|
|
177
|
+
UNAVAILABLE: string;
|
|
178
|
+
PROGRESSING: string;
|
|
179
|
+
};
|
|
180
|
+
SOCKET_EVENTS: {
|
|
181
|
+
ON_OPEN: string;
|
|
182
|
+
ON_MESSAGE: string;
|
|
183
|
+
ON_ERROR: string;
|
|
184
|
+
ON_CLOSE: string;
|
|
185
|
+
INITIALIZED: string;
|
|
186
|
+
ON_AUTH_FAILED: string;
|
|
187
|
+
};
|
|
188
|
+
Wazo: {
|
|
189
|
+
Auth: import("./simple/Auth").IAuth;
|
|
190
|
+
Phone: import("./simple/Phone").IPhone;
|
|
191
|
+
Websocket: import("./simple/Websocket").IWebsocket;
|
|
192
|
+
Room: typeof import("./simple/room/Room").default;
|
|
193
|
+
SipRoom: typeof import("./simple/room/SipRoom").default;
|
|
194
|
+
RemoteParticipant: typeof import("./simple/room/RemoteParticipant").default;
|
|
195
|
+
LocalParticipant: typeof import("./simple/room/LocalParticipant").default;
|
|
196
|
+
Stream: typeof import("./simple/room/Stream").default;
|
|
197
|
+
createLocalVideoStream: (options: Record<string, any>) => Promise<import("./simple/room/Stream").default>;
|
|
198
|
+
createLocalAudioStream: (options: Record<string, any>) => Promise<import("./simple/room/Stream").default>;
|
|
199
|
+
Configuration: any;
|
|
200
|
+
Directory: any;
|
|
201
|
+
getApiClient: (forServer?: string | null | undefined) => ApiClient;
|
|
202
|
+
IssueReporter: {
|
|
203
|
+
TRACE: string;
|
|
204
|
+
INFO: string;
|
|
205
|
+
LOG: string;
|
|
206
|
+
WARN: string;
|
|
207
|
+
ERROR: string;
|
|
208
|
+
oldConsoleMethods: Record<string, any> | null;
|
|
209
|
+
enabled: boolean;
|
|
210
|
+
remoteClientConfiguration: Record<string, any> | null | undefined;
|
|
211
|
+
buffer: Record<string, any>[];
|
|
212
|
+
bufferTimeout: any;
|
|
213
|
+
_boundProcessBuffer: (...args: any[]) => any;
|
|
214
|
+
_boundParseLoggerBody: (...args: any[]) => any;
|
|
215
|
+
_callback: ((...args: any[]) => any) | null | undefined;
|
|
216
|
+
init(): void;
|
|
217
|
+
setCallback(cb: (...args: any[]) => any): void;
|
|
218
|
+
configureRemoteClient(configuration?: Record<string, any>): void;
|
|
219
|
+
enable(): void;
|
|
220
|
+
disable(): void;
|
|
221
|
+
loggerFor(category: string): any;
|
|
222
|
+
removeSlashes(str: string): string;
|
|
223
|
+
log(level: string, ...args: any): void;
|
|
224
|
+
logRequest(url: string, options: Record<string, any>, response: Record<string, any>, start: Date): void;
|
|
225
|
+
getLogs(): never[];
|
|
226
|
+
getParsedLogs(): never[];
|
|
227
|
+
getReport(): string;
|
|
228
|
+
_catchConsole(): void;
|
|
229
|
+
_sendToRemoteLogger(level: string, payload?: Record<string, any>): void;
|
|
230
|
+
_parseLoggerBody(payload: Record<string, any>): string;
|
|
231
|
+
_addToBuffer(payload: Record<string, any>): void;
|
|
232
|
+
_processBuffer(): void;
|
|
233
|
+
_sendDebugToGrafana(payload: string | Record<string, any> | Record<string, any>[], retry?: number): void;
|
|
234
|
+
_writeRetryCount(message: string | Record<string, any>, count: number): string | Record<string, any>;
|
|
235
|
+
_isLevelAbove(level1: string, level2: string): boolean;
|
|
236
|
+
_makeCategory(category: string): string;
|
|
237
|
+
};
|
|
238
|
+
loggerFor: (category: string) => any;
|
|
239
|
+
Features: {
|
|
240
|
+
_hasChat: boolean;
|
|
241
|
+
_hasVideo: boolean;
|
|
242
|
+
_hasCallRecording: boolean;
|
|
243
|
+
_hasFax: boolean;
|
|
244
|
+
_hasMobileDoubleCall: boolean;
|
|
245
|
+
_hasMobileGsm: boolean;
|
|
246
|
+
_hasMeeting: boolean;
|
|
247
|
+
fetchAccess(): Promise<void>;
|
|
248
|
+
hasChat(): boolean;
|
|
249
|
+
hasVideo(): boolean;
|
|
250
|
+
hasCallRecording(): boolean;
|
|
251
|
+
hasFax(): boolean;
|
|
252
|
+
hasMobileDoubleCall(): boolean;
|
|
253
|
+
hasMobileGsm(): boolean;
|
|
254
|
+
hasMeeting(): boolean;
|
|
255
|
+
_hasFeatures(scopes: Record<string, any>, featureName: string): boolean;
|
|
256
|
+
};
|
|
257
|
+
Checker: typeof Checker;
|
|
258
|
+
domain: {
|
|
259
|
+
BadResponse: typeof BadResponse;
|
|
260
|
+
ServerError: typeof ServerError;
|
|
261
|
+
Call: typeof Call;
|
|
262
|
+
CallLog: typeof CallLog;
|
|
263
|
+
CTIPhone: typeof CTIPhone;
|
|
264
|
+
Recording: typeof Recording;
|
|
265
|
+
ChatMessage: typeof ChatMessage;
|
|
266
|
+
ChatRoom: typeof ChatRoom;
|
|
267
|
+
Contact: typeof Contact;
|
|
268
|
+
ForwardOption: typeof ForwardOption;
|
|
269
|
+
Line: typeof Line;
|
|
270
|
+
NotificationOptions: typeof NotificationOptions;
|
|
271
|
+
Profile: typeof Profile;
|
|
272
|
+
Session: typeof Session;
|
|
273
|
+
Voicemail: typeof Voicemail;
|
|
274
|
+
Relocation: typeof Relocation;
|
|
275
|
+
ConferenceRoom: typeof Room;
|
|
276
|
+
CallSession: typeof CallSession;
|
|
277
|
+
IndirectTransfer: typeof IndirectTransfer;
|
|
278
|
+
SwitchboardCall: typeof SwitchboardCall;
|
|
279
|
+
WebRTCPhone: typeof WebRTCPhone;
|
|
280
|
+
Meeting: typeof Meeting;
|
|
281
|
+
};
|
|
282
|
+
readonly api: ApiClient;
|
|
283
|
+
readonly agentd: import("./api/agentd").AgentD;
|
|
284
|
+
readonly amid: import("./api/amid").AmiD;
|
|
285
|
+
readonly application: import("./api/application").ApplicationD;
|
|
286
|
+
readonly auth: import("./api/auth").AuthD;
|
|
287
|
+
readonly callLogd: import("./api/call-logd").CallLogD;
|
|
288
|
+
readonly calld: import("./api/calld").CallD;
|
|
289
|
+
readonly chatd: import("./api/chatd").ChatD;
|
|
290
|
+
readonly confd: import("./api/confd").ConfD;
|
|
291
|
+
readonly dird: import("./api/dird").DirD;
|
|
292
|
+
readonly webhookd: import("./api/webhookd").WebhookD;
|
|
293
|
+
InvalidSubscription: typeof import("./simple/Auth").InvalidSubscription;
|
|
294
|
+
InvalidAuthorization: typeof import("./simple/Auth").InvalidAuthorization;
|
|
295
|
+
CanceledCallError: typeof import("./web-rtc-client").CanceledCallError;
|
|
296
|
+
SFUNotAvailableError: typeof SFUNotAvailableError;
|
|
297
|
+
NoTenantIdError: typeof import("./simple/Auth").NoTenantIdError;
|
|
298
|
+
NoDomainNameError: typeof import("./simple/Auth").NoDomainNameError;
|
|
299
|
+
};
|
|
300
|
+
WebRTCPhone: typeof WebRTCPhone;
|
|
301
|
+
Meeting: typeof Meeting;
|
|
302
|
+
};
|
|
303
|
+
export default _default;
|
|
304
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,eAAkC,MAAM,oBAAoB,CAAC;AACpE,OAAO,OAAO,MAAM,iBAAiB,CAAC;AAGtC,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAC/C,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAC/C,OAAO,oBAAoB,MAAM,+BAA+B,CAAC;AACjE,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,OAAO,MAAM,kBAAkB,CAAC;AACvC,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAC/C,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC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;;;;;;;;;;;;;;;;;;;;;AACpD,wBA4CE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="@types/node" />
|
|
2
|
+
import EventEmitter from 'events';
|
|
3
|
+
import type { Logger } from 'sip.js/lib/core/log/logger';
|
|
4
|
+
import type { MediaStreamFactory } from 'sip.js/lib/platform/web/session-description-handler/media-stream-factory';
|
|
5
|
+
import type { SessionDescriptionHandlerConfiguration } from 'sip.js/lib/platform/web/session-description-handler/session-description-handler-configuration';
|
|
6
|
+
import { SessionDescriptionHandler } from 'sip.js/lib/platform/web/session-description-handler/session-description-handler';
|
|
7
|
+
import { SessionDescriptionHandlerOptions } from 'sip.js/lib/platform/web/session-description-handler/session-description-handler-options';
|
|
8
|
+
import { Inviter, Invitation } from 'sip.js/lib/api';
|
|
9
|
+
export declare const wazoMediaStreamFactory: (constraints: Record<string, any>) => Promise<MediaStream>;
|
|
10
|
+
declare class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
11
|
+
gatheredCandidates: Array<string | null | undefined>;
|
|
12
|
+
eventEmitter: EventEmitter;
|
|
13
|
+
isWeb: boolean;
|
|
14
|
+
session: Inviter | Invitation;
|
|
15
|
+
constructor(logger: Logger, mediaStreamFactory: MediaStreamFactory, sessionDescriptionHandlerConfiguration: SessionDescriptionHandlerConfiguration, isWeb: boolean, session: Inviter | Invitation);
|
|
16
|
+
on(event: string, callback: (...args: Array<any>) => any): void;
|
|
17
|
+
off(event: string, callback: (...args: Array<any>) => any): void;
|
|
18
|
+
setRemoteSessionDescription(sessionDescription: RTCSessionDescriptionInit): Promise<void>;
|
|
19
|
+
getDescription(options?: Record<string, any>, modifiers?: Array<(...args: Array<any>) => any>): Promise<any>;
|
|
20
|
+
sendDtmf(tones: string, options?: {
|
|
21
|
+
duration: number;
|
|
22
|
+
interToneGap: number;
|
|
23
|
+
}): boolean;
|
|
24
|
+
close(): void;
|
|
25
|
+
updateDirection(options?: SessionDescriptionHandlerOptions, isConference?: boolean, audioOnly?: boolean): Promise<void>;
|
|
26
|
+
setLocalMediaStream(stream: MediaStream): Promise<void>;
|
|
27
|
+
getLocalMediaStream(options: Record<string, any>): Promise<any>;
|
|
28
|
+
}
|
|
29
|
+
export default WazoSessionDescriptionHandler;
|
|
30
|
+
//# sourceMappingURL=WazoSessionDescriptionHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WazoSessionDescriptionHandler.d.ts","sourceRoot":"","sources":["../../../src/lib/WazoSessionDescriptionHandler.ts"],"names":[],"mappings":";AACA,OAAO,YAAY,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0EAA0E,CAAC;AACnH,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,+FAA+F,CAAC;AAC5J,OAAO,EAAE,yBAAyB,EAAE,MAAM,iFAAiF,CAAC;AAC5H,OAAO,EAAE,gCAAgC,EAAE,MAAM,yFAAyF,CAAC;AAC3I,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAMrD,eAAO,MAAM,sBAAsB,gBAAiB,OAAO,MAAM,EAAE,GAAG,CAAC,KAAG,QAAQ,WAAW,CAgB5F,CAAC;AAEF,cAAM,6BAA8B,SAAQ,yBAAyB;IACnE,kBAAkB,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;IAErD,YAAY,EAAE,YAAY,CAAC;IAE3B,KAAK,EAAE,OAAO,CAAC;IAEf,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC;gBAGlB,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,sCAAsC,EAAE,sCAAsC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,UAAU;IAOjM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,Q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ixWi7gNdjjXwoEXSSBx+VpYMkY6LiAB2mvHXTY9M1qI14dvgGoQISZQoKi\nNMTRCg5UP2ic0Dd9nSz/XpcOxGfa+0fwIl1F7RC1tJXOqvkGGPTOV4LLfg/Yta3h\nnUPX9EZZDIX6vO/0IBV1LzjSl2A1bYFYAjJfowv3i1CpvONBOClHjSY5t9Y8MH6p\nBwIDAQAB\n-----END PUBLIC KEY-----";
|
|
2
|
+
export default swarmPublicKey;
|
|
3
|
+
//# sourceMappingURL=pubkey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pubkey.d.ts","sourceRoot":"","sources":["../../src/pubkey.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,cAAc,+cAQK,CAAC;AAE1B,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import Call from '../domain/Call';
|
|
2
|
+
import CallLog from '../domain/CallLog';
|
|
3
|
+
import Line from '../domain/Line';
|
|
4
|
+
import Session from '../domain/Session';
|
|
5
|
+
import Relocation from '../domain/Relocation';
|
|
6
|
+
import CallSession from '../domain/CallSession';
|
|
7
|
+
import Transfer from '../domain/IndirectTransfer';
|
|
8
|
+
export default class CallApi {
|
|
9
|
+
static fetchCallLogs(offset: number, limit: number): Promise<CallLog[]>;
|
|
10
|
+
static fetchDistinctCallLogs(offset: number, limit: number, distinct?: string): Promise<CallLog[]>;
|
|
11
|
+
static fetchActiveCalls(): Promise<Call[]>;
|
|
12
|
+
static fetchCallLogsFromDate(from: Date, number: string): Promise<CallLog[]>;
|
|
13
|
+
static search(query: string, limit: number): Promise<CallLog[]>;
|
|
14
|
+
static searchBy(field: string, value: string, limit: number): Promise<CallLog[]>;
|
|
15
|
+
static fetchSIP(session: Session, line: Line | null | undefined): Promise<any>;
|
|
16
|
+
static cancelCall(callSession: CallSession): Promise<boolean>;
|
|
17
|
+
static makeCall(callFromLine: Line, extension: string, isMobile?: boolean, callbackAllLines?: boolean): Promise<Call | null | undefined>;
|
|
18
|
+
static relocateCall(callId: string, line: number, contactIdentifier?: string): Promise<Relocation>;
|
|
19
|
+
static hold(callId: string): Promise<boolean>;
|
|
20
|
+
static resume(callId: string): Promise<boolean>;
|
|
21
|
+
static mute(callId: string): Promise<boolean>;
|
|
22
|
+
static sendDTMF(callId: string, digits: string): Promise<boolean>;
|
|
23
|
+
static unmute(callId: string): Promise<boolean>;
|
|
24
|
+
static transferCall(callId: string, number: string, flow: string): Promise<Transfer>;
|
|
25
|
+
static cancelCallTransfer(transferId: string): Promise<boolean>;
|
|
26
|
+
static confirmCallTransfer(transferId: string): Promise<boolean>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=CallApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CallApi.d.ts","sourceRoot":"","sources":["../../../src/service/CallApi.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAEhD,OAAO,QAAQ,MAAM,4BAA4B,CAAC;AAElD,MAAM,CAAC,OAAO,OAAO,OAAO;WACb,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;WAIhE,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,SAAe,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;WAIjG,gBAAgB,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;WAInC,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;WAIr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D,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAIvE"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare class IssueReporter {
|
|
2
|
+
TRACE: string;
|
|
3
|
+
INFO: string;
|
|
4
|
+
LOG: string;
|
|
5
|
+
WARN: string;
|
|
6
|
+
ERROR: string;
|
|
7
|
+
oldConsoleMethods: Record<string, any> | null;
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
remoteClientConfiguration: Record<string, any> | null | undefined;
|
|
10
|
+
buffer: Record<string, any>[];
|
|
11
|
+
bufferTimeout: any | null | undefined;
|
|
12
|
+
_boundProcessBuffer: (...args: Array<any>) => any;
|
|
13
|
+
_boundParseLoggerBody: (...args: Array<any>) => any;
|
|
14
|
+
_callback: ((...args: Array<any>) => any) | null | undefined;
|
|
15
|
+
constructor();
|
|
16
|
+
init(): void;
|
|
17
|
+
setCallback(cb: (...args: Array<any>) => any): void;
|
|
18
|
+
configureRemoteClient(configuration?: Record<string, any>): void;
|
|
19
|
+
enable(): void;
|
|
20
|
+
disable(): void;
|
|
21
|
+
loggerFor(category: string): any;
|
|
22
|
+
removeSlashes(str: string): string;
|
|
23
|
+
log(level: string, ...args: any): void;
|
|
24
|
+
logRequest(url: string, options: Record<string, any>, response: Record<string, any>, start: Date): void;
|
|
25
|
+
getLogs(): never[];
|
|
26
|
+
getParsedLogs(): never[];
|
|
27
|
+
getReport(): string;
|
|
28
|
+
_catchConsole(): void;
|
|
29
|
+
_sendToRemoteLogger(level: string, payload?: Record<string, any>): void;
|
|
30
|
+
_parseLoggerBody(payload: Record<string, any>): string;
|
|
31
|
+
_addToBuffer(payload: Record<string, any>): void;
|
|
32
|
+
_processBuffer(): void;
|
|
33
|
+
_sendDebugToGrafana(payload: string | Record<string, any> | Record<string, any>[], retry?: number): void;
|
|
34
|
+
_writeRetryCount(message: string | Record<string, any>, count: number): string | Record<string, any>;
|
|
35
|
+
_isLevelAbove(level1: string, level2: string): boolean;
|
|
36
|
+
_makeCategory(category: string): string;
|
|
37
|
+
}
|
|
38
|
+
declare const _default: IssueReporter;
|
|
39
|
+
export default _default;
|
|
40
|
+
//# sourceMappingURL=IssueReporter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IssueReporter.d.ts","sourceRoot":"","sources":["../../../src/service/IssueReporter.ts"],"names":[],"mappings":"AAsDA,cAAM,aAAa;IACjB,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,MAAM,CAAC;IAEb,GAAG,EAAE,MAAM,CAAC;IAEZ,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IAEd,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAE9C,OAAO,EAAE,OAAO,CAAC;IAEjB,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAElE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IAE9B,aAAa,EAAE,GAAG,GAAG,IAAI,GAAG,SAAS,CAAC;IAEtC,mBAAmB,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC;IAElD,qBAAqB,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC;IAEpD,SAAS,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;;IAc7D,IAAI;IAIJ,WAAW,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,GAAG;IAI5C,qBAAqB,CAAC,aAAa,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAMtD;IAID,MAAM;IAQN,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