bandwidth-sdk 0.1.1 → 0.2.0
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/coverage/clover.xml +61 -51
- package/coverage/coverage-final.json +11 -11
- package/coverage/lcov-report/index.html +14 -14
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/index.html +1 -1
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/base.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/common.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/configuration.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +38 -14
- package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +63 -15
- package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +11 -11
- package/coverage/lcov-report/node-sdk/models/bxml/index.html +15 -15
- package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +10 -10
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +5 -5
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +9 -9
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +9 -9
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +9 -9
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/lookup-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/tests/callUtils.js.html +5 -5
- package/coverage/lcov-report/node-sdk/tests/index.html +1 -1
- package/coverage/lcov.info +127 -109
- package/dist/models/bxml/Bxml.d.ts +2 -2
- package/dist/models/bxml/Bxml.js +1 -1
- package/dist/models/bxml/NestableVerb.d.ts +2 -2
- package/dist/models/bxml/NestableVerb.js +12 -2
- package/dist/models/bxml/Response.d.ts +2 -2
- package/dist/models/bxml/Response.js +1 -1
- package/dist/models/bxml/Root.d.ts +7 -2
- package/dist/models/bxml/Root.js +19 -2
- package/dist/models/bxml/verbs/Gather.d.ts +5 -5
- package/dist/models/bxml/verbs/Gather.js +5 -5
- package/dist/models/bxml/verbs/StartStream.d.ts +5 -5
- package/dist/models/bxml/verbs/StartStream.js +5 -5
- package/dist/models/bxml/verbs/StartTranscription.d.ts +5 -5
- package/dist/models/bxml/verbs/StartTranscription.js +5 -5
- package/dist/models/bxml/verbs/Transfer.d.ts +5 -5
- package/dist/models/bxml/verbs/Transfer.js +5 -5
- package/models/bxml/Bxml.ts +2 -2
- package/models/bxml/NestableVerb.ts +11 -3
- package/models/bxml/Response.ts +2 -2
- package/models/bxml/Root.ts +19 -3
- package/models/bxml/verbs/Gather.ts +6 -6
- package/models/bxml/verbs/StartStream.ts +6 -6
- package/models/bxml/verbs/StartTranscription.ts +6 -6
- package/models/bxml/verbs/Transfer.ts +6 -6
- package/package.json +1 -1
- package/tests/unit/bxml/Bxml.test.js +33 -0
- package/tests/unit/bxml/Response.test.js +35 -2
- package/tests/unit/bxml/verbs/Gather.test.js +11 -3
- package/tests/unit/bxml/verbs/StartStream.test.js +11 -3
- package/tests/unit/bxml/verbs/StartTranscription.test.js +11 -3
- package/tests/unit/bxml/verbs/Transfer.test.js +11 -3
package/coverage/clover.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
2
|
+
<coverage generated="1705436396194" clover="3.2.0">
|
|
3
|
+
<project timestamp="1705436396194" name="All files">
|
|
4
|
+
<metrics statements="1436" coveredstatements="1328" conditionals="1087" coveredconditionals="766" methods="391" coveredmethods="307" elements="2914" coveredelements="2401" complexity="0" loc="1436" ncloc="1436" packages="6" files="62" classes="62"/>
|
|
5
5
|
<package name="node-sdk">
|
|
6
6
|
<metrics statements="79" coveredstatements="59" conditionals="65" coveredconditionals="35" methods="20" coveredmethods="16"/>
|
|
7
7
|
<file name="base.ts" path="/home/runner/work/node-sdk/node-sdk/base.ts">
|
|
@@ -1277,62 +1277,72 @@
|
|
|
1277
1277
|
</file>
|
|
1278
1278
|
</package>
|
|
1279
1279
|
<package name="node-sdk.models.bxml">
|
|
1280
|
-
<metrics statements="
|
|
1280
|
+
<metrics statements="53" coveredstatements="53" conditionals="22" coveredconditionals="20" methods="18" coveredmethods="18"/>
|
|
1281
1281
|
<file name="Bxml.ts" path="/home/runner/work/node-sdk/node-sdk/models/bxml/Bxml.ts">
|
|
1282
1282
|
<metrics statements="4" coveredstatements="4" conditionals="2" coveredconditionals="2" methods="2" coveredmethods="2"/>
|
|
1283
1283
|
<line num="1" count="6" type="stmt"/>
|
|
1284
1284
|
<line num="10" count="6" type="stmt"/>
|
|
1285
|
-
<line num="19" count="
|
|
1285
|
+
<line num="19" count="6" type="cond" truecount="2" falsecount="0"/>
|
|
1286
1286
|
<line num="21" count="6" type="stmt"/>
|
|
1287
1287
|
</file>
|
|
1288
1288
|
<file name="NestableVerb.ts" path="/home/runner/work/node-sdk/node-sdk/models/bxml/NestableVerb.ts">
|
|
1289
|
-
<metrics statements="
|
|
1289
|
+
<metrics statements="14" coveredstatements="14" conditionals="10" coveredconditionals="9" methods="4" coveredmethods="4"/>
|
|
1290
1290
|
<line num="1" count="10" type="stmt"/>
|
|
1291
1291
|
<line num="3" count="10" type="stmt"/>
|
|
1292
1292
|
<line num="11" count="10" type="stmt"/>
|
|
1293
|
-
<line num="25" count="
|
|
1294
|
-
<line num="26" count="
|
|
1295
|
-
<line num="
|
|
1296
|
-
<line num="
|
|
1297
|
-
<line num="
|
|
1298
|
-
<line num="
|
|
1299
|
-
<line num="
|
|
1293
|
+
<line num="25" count="18" type="cond" truecount="2" falsecount="0"/>
|
|
1294
|
+
<line num="26" count="18" type="cond" truecount="2" falsecount="0"/>
|
|
1295
|
+
<line num="27" count="8" type="cond" truecount="2" falsecount="0"/>
|
|
1296
|
+
<line num="28" count="4" type="stmt"/>
|
|
1297
|
+
<line num="30" count="4" type="stmt"/>
|
|
1298
|
+
<line num="33" count="10" type="stmt"/>
|
|
1299
|
+
<line num="40" count="10" type="stmt"/>
|
|
1300
|
+
<line num="41" count="26" type="stmt"/>
|
|
1301
|
+
<line num="42" count="37" type="cond" truecount="3" falsecount="1"/>
|
|
1302
|
+
<line num="43" count="26" type="stmt"/>
|
|
1303
|
+
<line num="45" count="10" type="stmt"/>
|
|
1300
1304
|
</file>
|
|
1301
1305
|
<file name="Response.ts" path="/home/runner/work/node-sdk/node-sdk/models/bxml/Response.ts">
|
|
1302
1306
|
<metrics statements="4" coveredstatements="4" conditionals="2" coveredconditionals="2" methods="2" coveredmethods="2"/>
|
|
1303
1307
|
<line num="1" count="6" type="stmt"/>
|
|
1304
1308
|
<line num="10" count="6" type="stmt"/>
|
|
1305
|
-
<line num="19" count="
|
|
1309
|
+
<line num="19" count="8" type="cond" truecount="2" falsecount="0"/>
|
|
1306
1310
|
<line num="21" count="6" type="stmt"/>
|
|
1307
1311
|
</file>
|
|
1308
1312
|
<file name="Root.ts" path="/home/runner/work/node-sdk/node-sdk/models/bxml/Root.ts">
|
|
1309
|
-
<metrics statements="
|
|
1313
|
+
<metrics statements="18" coveredstatements="18" conditionals="8" coveredconditionals="7" methods="6" coveredmethods="6"/>
|
|
1310
1314
|
<line num="1" count="9" type="stmt"/>
|
|
1311
1315
|
<line num="5" count="9" type="stmt"/>
|
|
1312
1316
|
<line num="13" count="9" type="stmt"/>
|
|
1313
|
-
<line num="23" count="
|
|
1314
|
-
<line num="24" count="
|
|
1315
|
-
<line num="
|
|
1317
|
+
<line num="23" count="14" type="stmt"/>
|
|
1318
|
+
<line num="24" count="14" type="cond" truecount="2" falsecount="0"/>
|
|
1319
|
+
<line num="25" count="8" type="cond" truecount="2" falsecount="0"/>
|
|
1320
|
+
<line num="26" count="6" type="stmt"/>
|
|
1321
|
+
<line num="28" count="2" type="stmt"/>
|
|
1316
1322
|
<line num="31" count="6" type="stmt"/>
|
|
1317
|
-
<line num="
|
|
1318
|
-
<line num="
|
|
1319
|
-
<line num="40" count="
|
|
1320
|
-
<line num="41" count="
|
|
1321
|
-
<line num="
|
|
1323
|
+
<line num="38" count="9" type="stmt"/>
|
|
1324
|
+
<line num="39" count="14" type="stmt"/>
|
|
1325
|
+
<line num="40" count="38" type="cond" truecount="3" falsecount="1"/>
|
|
1326
|
+
<line num="41" count="14" type="stmt"/>
|
|
1327
|
+
<line num="48" count="9" type="stmt"/>
|
|
1328
|
+
<line num="49" count="4" type="stmt"/>
|
|
1329
|
+
<line num="56" count="9" type="stmt"/>
|
|
1330
|
+
<line num="57" count="14" type="stmt"/>
|
|
1331
|
+
<line num="59" count="9" type="stmt"/>
|
|
1322
1332
|
</file>
|
|
1323
1333
|
<file name="Verb.ts" path="/home/runner/work/node-sdk/node-sdk/models/bxml/Verb.ts">
|
|
1324
1334
|
<metrics statements="11" coveredstatements="11" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="4"/>
|
|
1325
|
-
<line num="1" count="
|
|
1326
|
-
<line num="9" count="
|
|
1327
|
-
<line num="21" count="
|
|
1328
|
-
<line num="22" count="
|
|
1329
|
-
<line num="23" count="
|
|
1330
|
-
<line num="29" count="
|
|
1331
|
-
<line num="30" count="
|
|
1332
|
-
<line num="31" count="
|
|
1333
|
-
<line num="38" count="
|
|
1334
|
-
<line num="39" count="
|
|
1335
|
-
<line num="41" count="
|
|
1335
|
+
<line num="1" count="37" type="stmt"/>
|
|
1336
|
+
<line num="9" count="37" type="stmt"/>
|
|
1337
|
+
<line num="21" count="77" type="stmt"/>
|
|
1338
|
+
<line num="22" count="77" type="stmt"/>
|
|
1339
|
+
<line num="23" count="77" type="stmt"/>
|
|
1340
|
+
<line num="29" count="37" type="stmt"/>
|
|
1341
|
+
<line num="30" count="95" type="stmt"/>
|
|
1342
|
+
<line num="31" count="95" type="stmt"/>
|
|
1343
|
+
<line num="38" count="37" type="stmt"/>
|
|
1344
|
+
<line num="39" count="40" type="stmt"/>
|
|
1345
|
+
<line num="41" count="37" type="stmt"/>
|
|
1336
1346
|
</file>
|
|
1337
1347
|
<file name="index.ts" path="/home/runner/work/node-sdk/node-sdk/models/bxml/index.ts">
|
|
1338
1348
|
<metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
@@ -1375,11 +1385,11 @@
|
|
|
1375
1385
|
<line num="1" count="6" type="stmt"/>
|
|
1376
1386
|
<line num="4" count="6" type="stmt"/>
|
|
1377
1387
|
<line num="32" count="6" type="stmt"/>
|
|
1378
|
-
<line num="41" count="
|
|
1388
|
+
<line num="41" count="5" type="cond" truecount="1" falsecount="1"/>
|
|
1379
1389
|
<line num="48" count="6" type="stmt"/>
|
|
1380
|
-
<line num="49" count="
|
|
1390
|
+
<line num="49" count="5" type="stmt"/>
|
|
1381
1391
|
<line num="56" count="6" type="stmt"/>
|
|
1382
|
-
<line num="57" count="
|
|
1392
|
+
<line num="57" count="3" type="stmt"/>
|
|
1383
1393
|
<line num="59" count="6" type="stmt"/>
|
|
1384
1394
|
</file>
|
|
1385
1395
|
<file name="Hangup.ts" path="/home/runner/work/node-sdk/node-sdk/models/bxml/verbs/Hangup.ts">
|
|
@@ -1398,10 +1408,10 @@
|
|
|
1398
1408
|
</file>
|
|
1399
1409
|
<file name="PauseRecording.ts" path="/home/runner/work/node-sdk/node-sdk/models/bxml/verbs/PauseRecording.ts">
|
|
1400
1410
|
<metrics statements="4" coveredstatements="4" conditionals="2" coveredconditionals="2" methods="2" coveredmethods="2"/>
|
|
1401
|
-
<line num="1" count="
|
|
1402
|
-
<line num="9" count="
|
|
1403
|
-
<line num="14" count="
|
|
1404
|
-
<line num="16" count="
|
|
1411
|
+
<line num="1" count="8" type="stmt"/>
|
|
1412
|
+
<line num="9" count="8" type="stmt"/>
|
|
1413
|
+
<line num="14" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
1414
|
+
<line num="16" count="8" type="stmt"/>
|
|
1405
1415
|
</file>
|
|
1406
1416
|
<file name="PhoneNumber.ts" path="/home/runner/work/node-sdk/node-sdk/models/bxml/verbs/PhoneNumber.ts">
|
|
1407
1417
|
<metrics statements="4" coveredstatements="4" conditionals="2" coveredconditionals="2" methods="2" coveredmethods="2"/>
|
|
@@ -1487,18 +1497,18 @@
|
|
|
1487
1497
|
<metrics statements="6" coveredstatements="6" conditionals="2" coveredconditionals="1" methods="3" coveredmethods="3"/>
|
|
1488
1498
|
<line num="1" count="6" type="stmt"/>
|
|
1489
1499
|
<line num="20" count="6" type="stmt"/>
|
|
1490
|
-
<line num="29" count="
|
|
1500
|
+
<line num="29" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
1491
1501
|
<line num="36" count="6" type="stmt"/>
|
|
1492
|
-
<line num="37" count="
|
|
1502
|
+
<line num="37" count="3" type="stmt"/>
|
|
1493
1503
|
<line num="39" count="6" type="stmt"/>
|
|
1494
1504
|
</file>
|
|
1495
1505
|
<file name="StartTranscription.ts" path="/home/runner/work/node-sdk/node-sdk/models/bxml/verbs/StartTranscription.ts">
|
|
1496
1506
|
<metrics statements="6" coveredstatements="6" conditionals="2" coveredconditionals="1" methods="3" coveredmethods="3"/>
|
|
1497
1507
|
<line num="1" count="6" type="stmt"/>
|
|
1498
1508
|
<line num="21" count="6" type="stmt"/>
|
|
1499
|
-
<line num="30" count="
|
|
1509
|
+
<line num="30" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
1500
1510
|
<line num="37" count="6" type="stmt"/>
|
|
1501
|
-
<line num="38" count="
|
|
1511
|
+
<line num="38" count="3" type="stmt"/>
|
|
1502
1512
|
<line num="40" count="6" type="stmt"/>
|
|
1503
1513
|
</file>
|
|
1504
1514
|
<file name="StopGather.ts" path="/home/runner/work/node-sdk/node-sdk/models/bxml/verbs/StopGather.ts">
|
|
@@ -1547,9 +1557,9 @@
|
|
|
1547
1557
|
<metrics statements="6" coveredstatements="6" conditionals="2" coveredconditionals="1" methods="3" coveredmethods="3"/>
|
|
1548
1558
|
<line num="1" count="6" type="stmt"/>
|
|
1549
1559
|
<line num="29" count="6" type="stmt"/>
|
|
1550
|
-
<line num="38" count="
|
|
1560
|
+
<line num="38" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
1551
1561
|
<line num="45" count="6" type="stmt"/>
|
|
1552
|
-
<line num="46" count="
|
|
1562
|
+
<line num="46" count="3" type="stmt"/>
|
|
1553
1563
|
<line num="48" count="6" type="stmt"/>
|
|
1554
1564
|
</file>
|
|
1555
1565
|
<file name="index.ts" path="/home/runner/work/node-sdk/node-sdk/models/bxml/verbs/index.ts">
|
|
@@ -1592,7 +1602,7 @@
|
|
|
1592
1602
|
<metrics statements="40" coveredstatements="35" conditionals="10" coveredconditionals="8" methods="7" coveredmethods="7"/>
|
|
1593
1603
|
<line num="5" count="5" type="stmt"/>
|
|
1594
1604
|
<line num="7" count="5" type="stmt"/>
|
|
1595
|
-
<line num="8" count="
|
|
1605
|
+
<line num="8" count="40" type="stmt"/>
|
|
1596
1606
|
<line num="11" count="5" type="stmt"/>
|
|
1597
1607
|
<line num="12" count="2" type="stmt"/>
|
|
1598
1608
|
<line num="18" count="2" type="stmt"/>
|
|
@@ -1606,9 +1616,9 @@
|
|
|
1606
1616
|
<line num="38" count="9" type="stmt"/>
|
|
1607
1617
|
<line num="39" count="9" type="stmt"/>
|
|
1608
1618
|
<line num="42" count="5" type="stmt"/>
|
|
1609
|
-
<line num="43" count="
|
|
1610
|
-
<line num="44" count="
|
|
1611
|
-
<line num="45" count="
|
|
1619
|
+
<line num="43" count="17" type="stmt"/>
|
|
1620
|
+
<line num="44" count="17" type="stmt"/>
|
|
1621
|
+
<line num="45" count="17" type="stmt"/>
|
|
1612
1622
|
<line num="48" count="5" type="stmt"/>
|
|
1613
1623
|
<line num="49" count="4" type="stmt"/>
|
|
1614
1624
|
<line num="51" count="4" type="cond" truecount="2" falsecount="0"/>
|