@wazo/sdk 0.37.35 → 0.37.36

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.
Files changed (94) hide show
  1. package/README.md +1 -0
  2. package/dist/wazo-sdk.js +2 -2
  3. package/esm/__tests__/api-client.test.js +7 -1
  4. package/esm/__tests__/web-rtc-client.test.js +7 -1
  5. package/esm/api/call-logd.js +1 -1
  6. package/esm/api/chatd.js +6 -0
  7. package/esm/api/confd.js +6 -0
  8. package/esm/api-client.js +7 -1
  9. package/esm/checker/Checker.js +7 -1
  10. package/esm/checker/checks/aor.js +7 -1
  11. package/esm/checker/checks/api.js +7 -1
  12. package/esm/checker/checks/index.js +7 -1
  13. package/esm/checker/checks/webrtc-transport.js +7 -1
  14. package/esm/checker/checks/webrtc.js +7 -1
  15. package/esm/domain/AdHocAPIConference.js +11 -1
  16. package/esm/domain/CallLog.js +1 -1
  17. package/esm/domain/CallSession.js +14 -0
  18. package/esm/domain/Features.js +7 -1
  19. package/esm/domain/Phone/CTIPhone.js +21 -1
  20. package/esm/domain/Phone/WebRTCPhone.js +42 -11
  21. package/esm/domain/Profile.js +6 -0
  22. package/esm/domain/__tests__/CallLog.test.js +5 -1
  23. package/esm/domain/__tests__/CallSession.test.js +14 -0
  24. package/esm/domain/__tests__/IndirectTransfer.test.js +14 -0
  25. package/esm/domain/__tests__/Profile.test.js +6 -0
  26. package/esm/domain/__tests__/Room.test.js +14 -0
  27. package/esm/domain/__tests__/Session.test.js +6 -0
  28. package/esm/index.js +59 -18
  29. package/esm/service/CallApi.js +7 -1
  30. package/esm/service/getApiClient.js +7 -1
  31. package/esm/simple/Auth.js +59 -18
  32. package/esm/simple/Configuration.js +59 -18
  33. package/esm/simple/Directory.js +7 -1
  34. package/esm/simple/Phone.js +59 -18
  35. package/esm/simple/index.js +59 -18
  36. package/esm/simple/room/LocalParticipant.js +59 -18
  37. package/esm/simple/room/Participant.js +59 -18
  38. package/esm/simple/room/RemoteParticipant.js +59 -18
  39. package/esm/simple/room/Room.js +59 -18
  40. package/esm/simple/room/SipRoom.js +59 -18
  41. package/esm/simple/room/Stream.js +59 -18
  42. package/esm/simple/room/__tests__/RemoteParticipant.test.js +59 -18
  43. package/esm/simple/utils.js +59 -18
  44. package/esm/web-rtc-client.js +7 -1
  45. package/lib/__tests__/api-client.test.js +7 -1
  46. package/lib/__tests__/web-rtc-client.test.js +7 -1
  47. package/lib/api/call-logd.js +1 -1
  48. package/lib/api/chatd.js +6 -0
  49. package/lib/api/confd.js +6 -0
  50. package/lib/api-client.js +7 -1
  51. package/lib/checker/Checker.js +7 -1
  52. package/lib/checker/checks/aor.js +7 -1
  53. package/lib/checker/checks/api.js +7 -1
  54. package/lib/checker/checks/index.js +7 -1
  55. package/lib/checker/checks/webrtc-transport.js +7 -1
  56. package/lib/checker/checks/webrtc.js +7 -1
  57. package/lib/domain/AdHocAPIConference.js +11 -1
  58. package/lib/domain/CallLog.js +1 -1
  59. package/lib/domain/CallSession.js +14 -0
  60. package/lib/domain/Features.js +7 -1
  61. package/lib/domain/Phone/CTIPhone.js +21 -1
  62. package/lib/domain/Phone/WebRTCPhone.js +42 -11
  63. package/lib/domain/Profile.js +6 -0
  64. package/lib/domain/__tests__/CallLog.test.js +5 -1
  65. package/lib/domain/__tests__/CallSession.test.js +14 -0
  66. package/lib/domain/__tests__/IndirectTransfer.test.js +14 -0
  67. package/lib/domain/__tests__/Profile.test.js +6 -0
  68. package/lib/domain/__tests__/Room.test.js +14 -0
  69. package/lib/domain/__tests__/Session.test.js +6 -0
  70. package/lib/index.js +59 -18
  71. package/lib/service/CallApi.js +7 -1
  72. package/lib/service/getApiClient.js +7 -1
  73. package/lib/simple/Auth.js +59 -18
  74. package/lib/simple/Configuration.js +59 -18
  75. package/lib/simple/Directory.js +7 -1
  76. package/lib/simple/Phone.js +59 -18
  77. package/lib/simple/index.js +59 -18
  78. package/lib/simple/room/LocalParticipant.js +59 -18
  79. package/lib/simple/room/Participant.js +59 -18
  80. package/lib/simple/room/RemoteParticipant.js +59 -18
  81. package/lib/simple/room/Room.js +59 -18
  82. package/lib/simple/room/SipRoom.js +59 -18
  83. package/lib/simple/room/Stream.js +59 -18
  84. package/lib/simple/room/__tests__/RemoteParticipant.test.js +59 -18
  85. package/lib/simple/utils.js +59 -18
  86. package/lib/web-rtc-client.js +7 -1
  87. package/package.json +1 -1
  88. package/src/domain/AdHocAPIConference.js +4 -0
  89. package/src/domain/CallLog.js +1 -1
  90. package/src/domain/CallSession.js +14 -0
  91. package/src/domain/Phone/WebRTCPhone.js +28 -11
  92. package/src/domain/Profile.js +6 -0
  93. package/src/domain/__tests__/CallLog.test.js +4 -0
  94. package/src/simple/Phone.js +6 -6
@@ -489,7 +489,7 @@ class Recording {
489
489
 
490
490
 
491
491
 
492
-
492
+
493
493
 
494
494
 
495
495
 
package/lib/api/chatd.js CHANGED
@@ -887,6 +887,7 @@ const LINE_STATE = {
887
887
 
888
888
 
889
889
 
890
+
890
891
 
891
892
 
892
893
 
@@ -923,6 +924,7 @@ const LINE_STATE = {
923
924
 
924
925
 
925
926
 
927
+
926
928
 
927
929
 
928
930
 
@@ -954,6 +956,7 @@ class Profile {
954
956
 
955
957
 
956
958
 
959
+
957
960
 
958
961
 
959
962
 
@@ -970,6 +973,7 @@ class Profile {
970
973
  lines: plain.lines.map(line => Line.parse(line)),
971
974
  username: plain.username,
972
975
  mobileNumber: plain.mobile_phone_number || '',
976
+ ringSeconds: plain.ring_seconds,
973
977
  forwards: [
974
978
  ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
975
979
  ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
@@ -1006,6 +1010,7 @@ class Profile {
1006
1010
  switchboards,
1007
1011
  agent,
1008
1012
  status,
1013
+ ringSeconds,
1009
1014
  sipLines,
1010
1015
  callPickupTargetUsers,
1011
1016
  onlineCallRecordEnabled,
@@ -1027,6 +1032,7 @@ class Profile {
1027
1032
  this.status = status;
1028
1033
  this.callPickupTargetUsers = callPickupTargetUsers;
1029
1034
  this.onlineCallRecordEnabled = onlineCallRecordEnabled;
1035
+ this.ringSeconds = ringSeconds;
1030
1036
 
1031
1037
  this.sipLines = sipLines || [];
1032
1038
  }
package/lib/api/confd.js CHANGED
@@ -1034,6 +1034,7 @@ const LINE_STATE = {
1034
1034
 
1035
1035
 
1036
1036
 
1037
+
1037
1038
 
1038
1039
 
1039
1040
 
@@ -1070,6 +1071,7 @@ const LINE_STATE = {
1070
1071
 
1071
1072
 
1072
1073
 
1074
+
1073
1075
 
1074
1076
 
1075
1077
 
@@ -1101,6 +1103,7 @@ class Profile {
1101
1103
 
1102
1104
 
1103
1105
 
1106
+
1104
1107
 
1105
1108
 
1106
1109
 
@@ -1117,6 +1120,7 @@ class Profile {
1117
1120
  lines: plain.lines.map(line => Line.parse(line)),
1118
1121
  username: plain.username,
1119
1122
  mobileNumber: plain.mobile_phone_number || '',
1123
+ ringSeconds: plain.ring_seconds,
1120
1124
  forwards: [
1121
1125
  ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
1122
1126
  ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
@@ -1153,6 +1157,7 @@ class Profile {
1153
1157
  switchboards,
1154
1158
  agent,
1155
1159
  status,
1160
+ ringSeconds,
1156
1161
  sipLines,
1157
1162
  callPickupTargetUsers,
1158
1163
  onlineCallRecordEnabled,
@@ -1174,6 +1179,7 @@ class Profile {
1174
1179
  this.status = status;
1175
1180
  this.callPickupTargetUsers = callPickupTargetUsers;
1176
1181
  this.onlineCallRecordEnabled = onlineCallRecordEnabled;
1182
+ this.ringSeconds = ringSeconds;
1177
1183
 
1178
1184
  this.sipLines = sipLines || [];
1179
1185
  }
package/lib/api-client.js CHANGED
@@ -1058,6 +1058,7 @@ const LINE_STATE = {
1058
1058
 
1059
1059
 
1060
1060
 
1061
+
1061
1062
 
1062
1063
 
1063
1064
 
@@ -1094,6 +1095,7 @@ const LINE_STATE = {
1094
1095
 
1095
1096
 
1096
1097
 
1098
+
1097
1099
 
1098
1100
 
1099
1101
 
@@ -1125,6 +1127,7 @@ class Profile {
1125
1127
 
1126
1128
 
1127
1129
 
1130
+
1128
1131
 
1129
1132
 
1130
1133
 
@@ -1141,6 +1144,7 @@ class Profile {
1141
1144
  lines: plain.lines.map(line => Line.parse(line)),
1142
1145
  username: plain.username,
1143
1146
  mobileNumber: plain.mobile_phone_number || '',
1147
+ ringSeconds: plain.ring_seconds,
1144
1148
  forwards: [
1145
1149
  ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
1146
1150
  ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
@@ -1177,6 +1181,7 @@ class Profile {
1177
1181
  switchboards,
1178
1182
  agent,
1179
1183
  status,
1184
+ ringSeconds,
1180
1185
  sipLines,
1181
1186
  callPickupTargetUsers,
1182
1187
  onlineCallRecordEnabled,
@@ -1198,6 +1203,7 @@ class Profile {
1198
1203
  this.status = status;
1199
1204
  this.callPickupTargetUsers = callPickupTargetUsers;
1200
1205
  this.onlineCallRecordEnabled = onlineCallRecordEnabled;
1206
+ this.ringSeconds = ringSeconds;
1201
1207
 
1202
1208
  this.sipLines = sipLines || [];
1203
1209
  }
@@ -3301,7 +3307,7 @@ class Recording {
3301
3307
 
3302
3308
 
3303
3309
 
3304
-
3310
+
3305
3311
 
3306
3312
 
3307
3313
 
@@ -1080,6 +1080,7 @@ const LINE_STATE = {
1080
1080
 
1081
1081
 
1082
1082
 
1083
+
1083
1084
 
1084
1085
 
1085
1086
 
@@ -1116,6 +1117,7 @@ const LINE_STATE = {
1116
1117
 
1117
1118
 
1118
1119
 
1120
+
1119
1121
 
1120
1122
 
1121
1123
 
@@ -1147,6 +1149,7 @@ class Profile {
1147
1149
 
1148
1150
 
1149
1151
 
1152
+
1150
1153
 
1151
1154
 
1152
1155
 
@@ -1163,6 +1166,7 @@ class Profile {
1163
1166
  lines: plain.lines.map(line => Line.parse(line)),
1164
1167
  username: plain.username,
1165
1168
  mobileNumber: plain.mobile_phone_number || '',
1169
+ ringSeconds: plain.ring_seconds,
1166
1170
  forwards: [
1167
1171
  ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
1168
1172
  ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
@@ -1199,6 +1203,7 @@ class Profile {
1199
1203
  switchboards,
1200
1204
  agent,
1201
1205
  status,
1206
+ ringSeconds,
1202
1207
  sipLines,
1203
1208
  callPickupTargetUsers,
1204
1209
  onlineCallRecordEnabled,
@@ -1220,6 +1225,7 @@ class Profile {
1220
1225
  this.status = status;
1221
1226
  this.callPickupTargetUsers = callPickupTargetUsers;
1222
1227
  this.onlineCallRecordEnabled = onlineCallRecordEnabled;
1228
+ this.ringSeconds = ringSeconds;
1223
1229
 
1224
1230
  this.sipLines = sipLines || [];
1225
1231
  }
@@ -3349,7 +3355,7 @@ class Recording {
3349
3355
 
3350
3356
 
3351
3357
 
3352
-
3358
+
3353
3359
 
3354
3360
 
3355
3361
 
@@ -1058,6 +1058,7 @@ const LINE_STATE = {
1058
1058
 
1059
1059
 
1060
1060
 
1061
+
1061
1062
 
1062
1063
 
1063
1064
 
@@ -1094,6 +1095,7 @@ const LINE_STATE = {
1094
1095
 
1095
1096
 
1096
1097
 
1098
+
1097
1099
 
1098
1100
 
1099
1101
 
@@ -1125,6 +1127,7 @@ class Profile {
1125
1127
 
1126
1128
 
1127
1129
 
1130
+
1128
1131
 
1129
1132
 
1130
1133
 
@@ -1141,6 +1144,7 @@ class Profile {
1141
1144
  lines: plain.lines.map(line => Line.parse(line)),
1142
1145
  username: plain.username,
1143
1146
  mobileNumber: plain.mobile_phone_number || '',
1147
+ ringSeconds: plain.ring_seconds,
1144
1148
  forwards: [
1145
1149
  ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
1146
1150
  ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
@@ -1177,6 +1181,7 @@ class Profile {
1177
1181
  switchboards,
1178
1182
  agent,
1179
1183
  status,
1184
+ ringSeconds,
1180
1185
  sipLines,
1181
1186
  callPickupTargetUsers,
1182
1187
  onlineCallRecordEnabled,
@@ -1198,6 +1203,7 @@ class Profile {
1198
1203
  this.status = status;
1199
1204
  this.callPickupTargetUsers = callPickupTargetUsers;
1200
1205
  this.onlineCallRecordEnabled = onlineCallRecordEnabled;
1206
+ this.ringSeconds = ringSeconds;
1201
1207
 
1202
1208
  this.sipLines = sipLines || [];
1203
1209
  }
@@ -3301,7 +3307,7 @@ class Recording {
3301
3307
 
3302
3308
 
3303
3309
 
3304
-
3310
+
3305
3311
 
3306
3312
 
3307
3313
 
@@ -1058,6 +1058,7 @@ const LINE_STATE = {
1058
1058
 
1059
1059
 
1060
1060
 
1061
+
1061
1062
 
1062
1063
 
1063
1064
 
@@ -1094,6 +1095,7 @@ const LINE_STATE = {
1094
1095
 
1095
1096
 
1096
1097
 
1098
+
1097
1099
 
1098
1100
 
1099
1101
 
@@ -1125,6 +1127,7 @@ class Profile {
1125
1127
 
1126
1128
 
1127
1129
 
1130
+
1128
1131
 
1129
1132
 
1130
1133
 
@@ -1141,6 +1144,7 @@ class Profile {
1141
1144
  lines: plain.lines.map(line => Line.parse(line)),
1142
1145
  username: plain.username,
1143
1146
  mobileNumber: plain.mobile_phone_number || '',
1147
+ ringSeconds: plain.ring_seconds,
1144
1148
  forwards: [
1145
1149
  ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
1146
1150
  ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
@@ -1177,6 +1181,7 @@ class Profile {
1177
1181
  switchboards,
1178
1182
  agent,
1179
1183
  status,
1184
+ ringSeconds,
1180
1185
  sipLines,
1181
1186
  callPickupTargetUsers,
1182
1187
  onlineCallRecordEnabled,
@@ -1198,6 +1203,7 @@ class Profile {
1198
1203
  this.status = status;
1199
1204
  this.callPickupTargetUsers = callPickupTargetUsers;
1200
1205
  this.onlineCallRecordEnabled = onlineCallRecordEnabled;
1206
+ this.ringSeconds = ringSeconds;
1201
1207
 
1202
1208
  this.sipLines = sipLines || [];
1203
1209
  }
@@ -3301,7 +3307,7 @@ class Recording {
3301
3307
 
3302
3308
 
3303
3309
 
3304
-
3310
+
3305
3311
 
3306
3312
 
3307
3313
 
@@ -1080,6 +1080,7 @@ const LINE_STATE = {
1080
1080
 
1081
1081
 
1082
1082
 
1083
+
1083
1084
 
1084
1085
 
1085
1086
 
@@ -1116,6 +1117,7 @@ const LINE_STATE = {
1116
1117
 
1117
1118
 
1118
1119
 
1120
+
1119
1121
 
1120
1122
 
1121
1123
 
@@ -1147,6 +1149,7 @@ class Profile {
1147
1149
 
1148
1150
 
1149
1151
 
1152
+
1150
1153
 
1151
1154
 
1152
1155
 
@@ -1163,6 +1166,7 @@ class Profile {
1163
1166
  lines: plain.lines.map(line => Line.parse(line)),
1164
1167
  username: plain.username,
1165
1168
  mobileNumber: plain.mobile_phone_number || '',
1169
+ ringSeconds: plain.ring_seconds,
1166
1170
  forwards: [
1167
1171
  ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
1168
1172
  ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
@@ -1199,6 +1203,7 @@ class Profile {
1199
1203
  switchboards,
1200
1204
  agent,
1201
1205
  status,
1206
+ ringSeconds,
1202
1207
  sipLines,
1203
1208
  callPickupTargetUsers,
1204
1209
  onlineCallRecordEnabled,
@@ -1220,6 +1225,7 @@ class Profile {
1220
1225
  this.status = status;
1221
1226
  this.callPickupTargetUsers = callPickupTargetUsers;
1222
1227
  this.onlineCallRecordEnabled = onlineCallRecordEnabled;
1228
+ this.ringSeconds = ringSeconds;
1223
1229
 
1224
1230
  this.sipLines = sipLines || [];
1225
1231
  }
@@ -3349,7 +3355,7 @@ class Recording {
3349
3355
 
3350
3356
 
3351
3357
 
3352
-
3358
+
3353
3359
 
3354
3360
 
3355
3361
 
@@ -1609,6 +1609,7 @@ const LINE_STATE = {
1609
1609
 
1610
1610
 
1611
1611
 
1612
+
1612
1613
 
1613
1614
 
1614
1615
 
@@ -1645,6 +1646,7 @@ const LINE_STATE = {
1645
1646
 
1646
1647
 
1647
1648
 
1649
+
1648
1650
 
1649
1651
 
1650
1652
 
@@ -1676,6 +1678,7 @@ class Profile {
1676
1678
 
1677
1679
 
1678
1680
 
1681
+
1679
1682
 
1680
1683
 
1681
1684
 
@@ -1692,6 +1695,7 @@ class Profile {
1692
1695
  lines: plain.lines.map(line => Line.parse(line)),
1693
1696
  username: plain.username,
1694
1697
  mobileNumber: plain.mobile_phone_number || '',
1698
+ ringSeconds: plain.ring_seconds,
1695
1699
  forwards: [
1696
1700
  ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
1697
1701
  ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
@@ -1728,6 +1732,7 @@ class Profile {
1728
1732
  switchboards,
1729
1733
  agent,
1730
1734
  status,
1735
+ ringSeconds,
1731
1736
  sipLines,
1732
1737
  callPickupTargetUsers,
1733
1738
  onlineCallRecordEnabled,
@@ -1749,6 +1754,7 @@ class Profile {
1749
1754
  this.status = status;
1750
1755
  this.callPickupTargetUsers = callPickupTargetUsers;
1751
1756
  this.onlineCallRecordEnabled = onlineCallRecordEnabled;
1757
+ this.ringSeconds = ringSeconds;
1752
1758
 
1753
1759
  this.sipLines = sipLines || [];
1754
1760
  }
@@ -3852,7 +3858,7 @@ class Recording {
3852
3858
 
3853
3859
 
3854
3860
 
3855
-
3861
+
3856
3862
 
3857
3863
 
3858
3864
 
@@ -1609,6 +1609,7 @@ const LINE_STATE = {
1609
1609
 
1610
1610
 
1611
1611
 
1612
+
1612
1613
 
1613
1614
 
1614
1615
 
@@ -1645,6 +1646,7 @@ const LINE_STATE = {
1645
1646
 
1646
1647
 
1647
1648
 
1649
+
1648
1650
 
1649
1651
 
1650
1652
 
@@ -1676,6 +1678,7 @@ class Profile {
1676
1678
 
1677
1679
 
1678
1680
 
1681
+
1679
1682
 
1680
1683
 
1681
1684
 
@@ -1692,6 +1695,7 @@ class Profile {
1692
1695
  lines: plain.lines.map(line => Line.parse(line)),
1693
1696
  username: plain.username,
1694
1697
  mobileNumber: plain.mobile_phone_number || '',
1698
+ ringSeconds: plain.ring_seconds,
1695
1699
  forwards: [
1696
1700
  ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
1697
1701
  ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
@@ -1728,6 +1732,7 @@ class Profile {
1728
1732
  switchboards,
1729
1733
  agent,
1730
1734
  status,
1735
+ ringSeconds,
1731
1736
  sipLines,
1732
1737
  callPickupTargetUsers,
1733
1738
  onlineCallRecordEnabled,
@@ -1749,6 +1754,7 @@ class Profile {
1749
1754
  this.status = status;
1750
1755
  this.callPickupTargetUsers = callPickupTargetUsers;
1751
1756
  this.onlineCallRecordEnabled = onlineCallRecordEnabled;
1757
+ this.ringSeconds = ringSeconds;
1752
1758
 
1753
1759
  this.sipLines = sipLines || [];
1754
1760
  }
@@ -3852,7 +3858,7 @@ class Recording {
3852
3858
 
3853
3859
 
3854
3860
 
3855
-
3861
+
3856
3862
 
3857
3863
 
3858
3864
 
@@ -1267,6 +1267,7 @@ const LINE_STATE = {
1267
1267
 
1268
1268
 
1269
1269
 
1270
+
1270
1271
 
1271
1272
 
1272
1273
 
@@ -1303,6 +1304,7 @@ const LINE_STATE = {
1303
1304
 
1304
1305
 
1305
1306
 
1307
+
1306
1308
 
1307
1309
 
1308
1310
 
@@ -1334,6 +1336,7 @@ class Profile {
1334
1336
 
1335
1337
 
1336
1338
 
1339
+
1337
1340
 
1338
1341
 
1339
1342
 
@@ -1350,6 +1353,7 @@ class Profile {
1350
1353
  lines: plain.lines.map(line => Line.parse(line)),
1351
1354
  username: plain.username,
1352
1355
  mobileNumber: plain.mobile_phone_number || '',
1356
+ ringSeconds: plain.ring_seconds,
1353
1357
  forwards: [
1354
1358
  ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
1355
1359
  ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
@@ -1386,6 +1390,7 @@ class Profile {
1386
1390
  switchboards,
1387
1391
  agent,
1388
1392
  status,
1393
+ ringSeconds,
1389
1394
  sipLines,
1390
1395
  callPickupTargetUsers,
1391
1396
  onlineCallRecordEnabled,
@@ -1407,6 +1412,7 @@ class Profile {
1407
1412
  this.status = status;
1408
1413
  this.callPickupTargetUsers = callPickupTargetUsers;
1409
1414
  this.onlineCallRecordEnabled = onlineCallRecordEnabled;
1415
+ this.ringSeconds = ringSeconds;
1410
1416
 
1411
1417
  this.sipLines = sipLines || [];
1412
1418
  }
@@ -3301,7 +3307,7 @@ class Recording {
3301
3307
 
3302
3308
 
3303
3309
 
3304
-
3310
+
3305
3311
 
3306
3312
 
3307
3313
 
@@ -4800,6 +4806,10 @@ class AdHocAPIConference {
4800
4806
  this.conferenceId = conferenceId || '';
4801
4807
  this.muted = muted || false;
4802
4808
  this.paused = paused || false;
4809
+
4810
+ if (this.host) {
4811
+ this.host.setIsConference(true);
4812
+ }
4803
4813
  }
4804
4814
 
4805
4815
  async start() {
@@ -99,7 +99,7 @@ class Recording {
99
99
 
100
100
 
101
101
 
102
-
102
+
103
103
 
104
104
 
105
105
 
@@ -61,6 +61,7 @@ var updateFrom = (instance , from ) => {
61
61
 
62
62
 
63
63
 
64
+
64
65
 
65
66
 
66
67
  class CallSession {
@@ -123,6 +124,8 @@ class CallSession {
123
124
 
124
125
 
125
126
 
127
+
128
+
126
129
 
127
130
 
128
131
 
@@ -154,6 +157,7 @@ class CallSession {
154
157
  videoRemotelyDowngraded,
155
158
  sipSession,
156
159
  answerTime,
160
+ conference,
157
161
  } ) {
158
162
  this.callId = callId;
159
163
  this.sipCallId = sipCallId;
@@ -182,6 +186,7 @@ class CallSession {
182
186
  this.videoRemotelyDowngraded = videoRemotelyDowngraded;
183
187
  this.sipSession = sipSession;
184
188
  this.answerTime = answerTime || this.answerTime;
189
+ this.conference = conference;
185
190
 
186
191
  // Useful to compare instead of instanceof with minified code
187
192
  this.type = 'CallSession';
@@ -239,6 +244,10 @@ class CallSession {
239
244
  this.screensharing = false;
240
245
  }
241
246
 
247
+ setIsConference(conference ) {
248
+ this.conference = conference;
249
+ }
250
+
242
251
  isIncoming() {
243
252
  return !this.isCaller && !this.answered;
244
253
  }
@@ -315,6 +324,10 @@ class CallSession {
315
324
  return this.sipStatus === sessionState.SessionState.Terminated;
316
325
  }
317
326
 
327
+ isConference() {
328
+ return this.conference;
329
+ }
330
+
318
331
  getElapsedTimeInSeconds() {
319
332
  if (!this.startTime) {
320
333
  return 0;
@@ -406,6 +419,7 @@ class CallSession {
406
419
  cameraEnabled: false,
407
420
  dialedExtension: call.dialedExtension,
408
421
  call,
422
+ conference: false, // @FIXME?
409
423
  });
410
424
  }
411
425
  }
@@ -1060,6 +1060,7 @@ const LINE_STATE = {
1060
1060
 
1061
1061
 
1062
1062
 
1063
+
1063
1064
 
1064
1065
 
1065
1066
 
@@ -1096,6 +1097,7 @@ const LINE_STATE = {
1096
1097
 
1097
1098
 
1098
1099
 
1100
+
1099
1101
 
1100
1102
 
1101
1103
 
@@ -1127,6 +1129,7 @@ class Profile {
1127
1129
 
1128
1130
 
1129
1131
 
1132
+
1130
1133
 
1131
1134
 
1132
1135
 
@@ -1143,6 +1146,7 @@ class Profile {
1143
1146
  lines: plain.lines.map(line => Line.parse(line)),
1144
1147
  username: plain.username,
1145
1148
  mobileNumber: plain.mobile_phone_number || '',
1149
+ ringSeconds: plain.ring_seconds,
1146
1150
  forwards: [
1147
1151
  ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
1148
1152
  ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
@@ -1179,6 +1183,7 @@ class Profile {
1179
1183
  switchboards,
1180
1184
  agent,
1181
1185
  status,
1186
+ ringSeconds,
1182
1187
  sipLines,
1183
1188
  callPickupTargetUsers,
1184
1189
  onlineCallRecordEnabled,
@@ -1200,6 +1205,7 @@ class Profile {
1200
1205
  this.status = status;
1201
1206
  this.callPickupTargetUsers = callPickupTargetUsers;
1202
1207
  this.onlineCallRecordEnabled = onlineCallRecordEnabled;
1208
+ this.ringSeconds = ringSeconds;
1203
1209
 
1204
1210
  this.sipLines = sipLines || [];
1205
1211
  }
@@ -3303,7 +3309,7 @@ class Recording {
3303
3309
 
3304
3310
 
3305
3311
 
3306
-
3312
+
3307
3313
 
3308
3314
 
3309
3315