bandwidth-sdk 0.2.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/common.ts +2 -2
  2. package/coverage/clover.xml +12 -11
  3. package/coverage/coverage-final.json +2 -2
  4. package/coverage/lcov-report/index.html +19 -19
  5. package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +2 -2
  6. package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +2 -2
  7. package/coverage/lcov-report/node-sdk/api/index.html +2 -2
  8. package/coverage/lcov-report/node-sdk/api/media-api.ts.html +2 -2
  9. package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +2 -2
  10. package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +2 -2
  11. package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +2 -2
  12. package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +2 -2
  13. package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +2 -2
  14. package/coverage/lcov-report/node-sdk/base.ts.html +2 -2
  15. package/coverage/lcov-report/node-sdk/common.ts.html +13 -13
  16. package/coverage/lcov-report/node-sdk/configuration.ts.html +2 -2
  17. package/coverage/lcov-report/node-sdk/index.html +20 -20
  18. package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +2 -2
  19. package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +2 -2
  20. package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +2 -2
  21. package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +2 -2
  22. package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +2 -2
  23. package/coverage/lcov-report/node-sdk/models/bxml/index.html +2 -2
  24. package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +2 -2
  25. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +2 -2
  26. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +2 -2
  27. package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +2 -2
  28. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +2 -2
  29. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +2 -2
  30. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +2 -2
  31. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +2 -2
  32. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +2 -2
  33. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +2 -2
  34. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +2 -2
  35. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +2 -2
  36. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +2 -2
  37. package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +2 -2
  38. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +2 -2
  39. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +2 -2
  40. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +2 -2
  41. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +2 -2
  42. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +2 -2
  43. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +2 -2
  44. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +2 -2
  45. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +2 -2
  46. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +2 -2
  47. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +2 -2
  48. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +2 -2
  49. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +2 -2
  50. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +2 -2
  51. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +2 -2
  52. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +6 -3
  53. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +2 -2
  54. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +2 -2
  55. package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +2 -2
  56. package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +2 -2
  57. package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +2 -2
  58. package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +2 -2
  59. package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +2 -2
  60. package/coverage/lcov-report/node-sdk/models/index.html +2 -2
  61. package/coverage/lcov-report/node-sdk/models/index.ts.html +2 -2
  62. package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +2 -2
  63. package/coverage/lcov-report/node-sdk/models/lookup-status-enum.ts.html +2 -2
  64. package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +2 -2
  65. package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +2 -2
  66. package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +2 -2
  67. package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +2 -2
  68. package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +2 -2
  69. package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +2 -2
  70. package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +2 -2
  71. package/coverage/lcov-report/node-sdk/tests/callUtils.js.html +2 -2
  72. package/coverage/lcov-report/node-sdk/tests/index.html +2 -2
  73. package/coverage/lcov.info +35 -27
  74. package/custom_templates/common.mustache +142 -0
  75. package/custom_templates/package.mustache +1 -1
  76. package/dist/common.js +3 -2
  77. package/dist/models/bxml/verbs/Transfer.d.ts +1 -0
  78. package/models/bxml/verbs/Transfer.ts +1 -0
  79. package/package.json +2 -2
  80. package/tests/integration/bxml.test.js +1 -0
  81. package/tests/unit/bxml/verbs/Transfer.test.js +6 -5
@@ -57,7 +57,7 @@
57
57
  <template id="filterTemplate">
58
58
  <div class="quiet">
59
59
  Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
60
+ <input type="search" id="fileSearch">
61
61
  </div>
62
62
  </template>
63
63
  </div>
@@ -163,7 +163,7 @@ export type ConferenceStateEnum = typeof ConferenceStateEnum[keyof typeof Confer
163
163
  <div class='footer quiet pad2 space-top1 center small'>
164
164
  Code coverage generated by
165
165
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
166
- at 2024-01-16T20:19:56.135Z
166
+ at 2024-03-06T21:12:24.079Z
167
167
  </div>
168
168
  <script src="../../prettify.js"></script>
169
169
  <script>
@@ -57,7 +57,7 @@
57
57
  <template id="filterTemplate">
58
58
  <div class="quiet">
59
59
  Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
60
+ <input type="search" id="fileSearch">
61
61
  </div>
62
62
  </template>
63
63
  </div>
@@ -163,7 +163,7 @@ export type FileFormatEnum = typeof FileFormatEnum[keyof typeof FileFormatEnum];
163
163
  <div class='footer quiet pad2 space-top1 center small'>
164
164
  Code coverage generated by
165
165
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
166
- at 2024-01-16T20:19:56.135Z
166
+ at 2024-03-06T21:12:24.079Z
167
167
  </div>
168
168
  <script src="../../prettify.js"></script>
169
169
  <script>
@@ -57,7 +57,7 @@
57
57
  <template id="filterTemplate">
58
58
  <div class="quiet">
59
59
  Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
60
+ <input type="search" id="fileSearch">
61
61
  </div>
62
62
  </template>
63
63
  </div>
@@ -311,7 +311,7 @@
311
311
  <div class='footer quiet pad2 space-top1 center small'>
312
312
  Code coverage generated by
313
313
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
314
- at 2024-01-16T20:19:56.135Z
314
+ at 2024-03-06T21:12:24.079Z
315
315
  </div>
316
316
  <script src="../../prettify.js"></script>
317
317
  <script>
@@ -57,7 +57,7 @@
57
57
  <template id="filterTemplate">
58
58
  <div class="quiet">
59
59
  Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
60
+ <input type="search" id="fileSearch">
61
61
  </div>
62
62
  </template>
63
63
  </div>
@@ -337,7 +337,7 @@ export * from './bxml';
337
337
  <div class='footer quiet pad2 space-top1 center small'>
338
338
  Code coverage generated by
339
339
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
340
- at 2024-01-16T20:19:56.135Z
340
+ at 2024-03-06T21:12:24.079Z
341
341
  </div>
342
342
  <script src="../../prettify.js"></script>
343
343
  <script>
@@ -57,7 +57,7 @@
57
57
  <template id="filterTemplate">
58
58
  <div class="quiet">
59
59
  Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
60
+ <input type="search" id="fileSearch">
61
61
  </div>
62
62
  </template>
63
63
  </div>
@@ -163,7 +163,7 @@ export type ListMessageDirectionEnum = typeof ListMessageDirectionEnum[keyof typ
163
163
  <div class='footer quiet pad2 space-top1 center small'>
164
164
  Code coverage generated by
165
165
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
166
- at 2024-01-16T20:19:56.135Z
166
+ at 2024-03-06T21:12:24.079Z
167
167
  </div>
168
168
  <script src="../../prettify.js"></script>
169
169
  <script>
@@ -57,7 +57,7 @@
57
57
  <template id="filterTemplate">
58
58
  <div class="quiet">
59
59
  Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
60
+ <input type="search" id="fileSearch">
61
61
  </div>
62
62
  </template>
63
63
  </div>
@@ -169,7 +169,7 @@ export type LookupStatusEnum = typeof LookupStatusEnum[keyof typeof LookupStatus
169
169
  <div class='footer quiet pad2 space-top1 center small'>
170
170
  Code coverage generated by
171
171
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
172
- at 2024-01-16T20:19:56.135Z
172
+ at 2024-03-06T21:12:24.079Z
173
173
  </div>
174
174
  <script src="../../prettify.js"></script>
175
175
  <script>
@@ -57,7 +57,7 @@
57
57
  <template id="filterTemplate">
58
58
  <div class="quiet">
59
59
  Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
60
+ <input type="search" id="fileSearch">
61
61
  </div>
62
62
  </template>
63
63
  </div>
@@ -163,7 +163,7 @@ export type MachineDetectionModeEnum = typeof MachineDetectionModeEnum[keyof typ
163
163
  <div class='footer quiet pad2 space-top1 center small'>
164
164
  Code coverage generated by
165
165
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
166
- at 2024-01-16T20:19:56.135Z
166
+ at 2024-03-06T21:12:24.079Z
167
167
  </div>
168
168
  <script src="../../prettify.js"></script>
169
169
  <script>
@@ -57,7 +57,7 @@
57
57
  <template id="filterTemplate">
58
58
  <div class="quiet">
59
59
  Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
60
+ <input type="search" id="fileSearch">
61
61
  </div>
62
62
  </template>
63
63
  </div>
@@ -163,7 +163,7 @@ export type MessageDirectionEnum = typeof MessageDirectionEnum[keyof typeof Mess
163
163
  <div class='footer quiet pad2 space-top1 center small'>
164
164
  Code coverage generated by
165
165
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
166
- at 2024-01-16T20:19:56.135Z
166
+ at 2024-03-06T21:12:24.079Z
167
167
  </div>
168
168
  <script src="../../prettify.js"></script>
169
169
  <script>
@@ -57,7 +57,7 @@
57
57
  <template id="filterTemplate">
58
58
  <div class="quiet">
59
59
  Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
60
+ <input type="search" id="fileSearch">
61
61
  </div>
62
62
  </template>
63
63
  </div>
@@ -181,7 +181,7 @@ export type MessageStatusEnum = typeof MessageStatusEnum[keyof typeof MessageSta
181
181
  <div class='footer quiet pad2 space-top1 center small'>
182
182
  Code coverage generated by
183
183
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
184
- at 2024-01-16T20:19:56.135Z
184
+ at 2024-03-06T21:12:24.079Z
185
185
  </div>
186
186
  <script src="../../prettify.js"></script>
187
187
  <script>
@@ -57,7 +57,7 @@
57
57
  <template id="filterTemplate">
58
58
  <div class="quiet">
59
59
  Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
60
+ <input type="search" id="fileSearch">
61
61
  </div>
62
62
  </template>
63
63
  </div>
@@ -163,7 +163,7 @@ export type MessageTypeEnum = typeof MessageTypeEnum[keyof typeof MessageTypeEnu
163
163
  <div class='footer quiet pad2 space-top1 center small'>
164
164
  Code coverage generated by
165
165
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
166
- at 2024-01-16T20:19:56.135Z
166
+ at 2024-03-06T21:12:24.079Z
167
167
  </div>
168
168
  <script src="../../prettify.js"></script>
169
169
  <script>
@@ -57,7 +57,7 @@
57
57
  <template id="filterTemplate">
58
58
  <div class="quiet">
59
59
  Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
60
+ <input type="search" id="fileSearch">
61
61
  </div>
62
62
  </template>
63
63
  </div>
@@ -163,7 +163,7 @@ export type PriorityEnum = typeof PriorityEnum[keyof typeof PriorityEnum];
163
163
  <div class='footer quiet pad2 space-top1 center small'>
164
164
  Code coverage generated by
165
165
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
166
- at 2024-01-16T20:19:56.135Z
166
+ at 2024-03-06T21:12:24.079Z
167
167
  </div>
168
168
  <script src="../../prettify.js"></script>
169
169
  <script>
@@ -57,7 +57,7 @@
57
57
  <template id="filterTemplate">
58
58
  <div class="quiet">
59
59
  Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
60
+ <input type="search" id="fileSearch">
61
61
  </div>
62
62
  </template>
63
63
  </div>
@@ -163,7 +163,7 @@ export type RecordingStateEnum = typeof RecordingStateEnum[keyof typeof Recordin
163
163
  <div class='footer quiet pad2 space-top1 center small'>
164
164
  Code coverage generated by
165
165
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
166
- at 2024-01-16T20:19:56.135Z
166
+ at 2024-03-06T21:12:24.079Z
167
167
  </div>
168
168
  <script src="../../prettify.js"></script>
169
169
  <script>
@@ -57,7 +57,7 @@
57
57
  <template id="filterTemplate">
58
58
  <div class="quiet">
59
59
  Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
60
+ <input type="search" id="fileSearch">
61
61
  </div>
62
62
  </template>
63
63
  </div>
@@ -163,7 +163,7 @@ export type RedirectMethodEnum = typeof RedirectMethodEnum[keyof typeof Redirect
163
163
  <div class='footer quiet pad2 space-top1 center small'>
164
164
  Code coverage generated by
165
165
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
166
- at 2024-01-16T20:19:56.135Z
166
+ at 2024-03-06T21:12:24.079Z
167
167
  </div>
168
168
  <script src="../../prettify.js"></script>
169
169
  <script>
@@ -57,7 +57,7 @@
57
57
  <template id="filterTemplate">
58
58
  <div class="quiet">
59
59
  Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
60
+ <input type="search" id="fileSearch">
61
61
  </div>
62
62
  </template>
63
63
  </div>
@@ -319,7 +319,7 @@ module.exports = {
319
319
  <div class='footer quiet pad2 space-top1 center small'>
320
320
  Code coverage generated by
321
321
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
322
- at 2024-01-16T20:19:56.135Z
322
+ at 2024-03-06T21:12:24.079Z
323
323
  </div>
324
324
  <script src="../../prettify.js"></script>
325
325
  <script>
@@ -57,7 +57,7 @@
57
57
  <template id="filterTemplate">
58
58
  <div class="quiet">
59
59
  Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
60
+ <input type="search" id="fileSearch">
61
61
  </div>
62
62
  </template>
63
63
  </div>
@@ -101,7 +101,7 @@
101
101
  <div class='footer quiet pad2 space-top1 center small'>
102
102
  Code coverage generated by
103
103
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
- at 2024-01-16T20:19:56.135Z
104
+ at 2024-03-06T21:12:24.079Z
105
105
  </div>
106
106
  <script src="../../prettify.js"></script>
107
107
  <script>
@@ -51,11 +51,12 @@ FN:91,(anonymous_27)
51
51
  FN:94,(anonymous_28)
52
52
  FN:113,(anonymous_29)
53
53
  FN:123,(anonymous_30)
54
- FN:137,(anonymous_31)
55
- FN:145,(anonymous_32)
56
- FN:146,(anonymous_33)
57
- FNF:13
58
- FNH:10
54
+ FN:129,(anonymous_31)
55
+ FN:137,(anonymous_32)
56
+ FN:145,(anonymous_33)
57
+ FN:146,(anonymous_34)
58
+ FNF:14
59
+ FNH:11
59
60
  FNDA:203,(anonymous_15)
60
61
  FNDA:0,(anonymous_16)
61
62
  FNDA:88,(anonymous_19)
@@ -66,9 +67,10 @@ FNDA:88,(anonymous_27)
66
67
  FNDA:3,(anonymous_28)
67
68
  FNDA:88,(anonymous_29)
68
69
  FNDA:47,(anonymous_30)
69
- FNDA:88,(anonymous_31)
70
+ FNDA:32295,(anonymous_31)
70
71
  FNDA:88,(anonymous_32)
71
72
  FNDA:88,(anonymous_33)
73
+ FNDA:88,(anonymous_34)
72
74
  DA:19,9
73
75
  DA:25,9
74
76
  DA:32,9
@@ -113,14 +115,15 @@ DA:123,9
113
115
  DA:124,47
114
116
  DA:125,47
115
117
  DA:128,47
118
+ DA:129,32295
116
119
  DA:137,9
117
120
  DA:138,88
118
121
  DA:145,9
119
122
  DA:146,88
120
123
  DA:147,88
121
124
  DA:148,88
122
- LF:50
123
- LH:33
125
+ LF:51
126
+ LH:34
124
127
  BRDA:33,0,0,0
125
128
  BRDA:33,1,0,203
126
129
  BRDA:33,1,1,203
@@ -162,19 +165,24 @@ BRDA:128,24,0,40
162
165
  BRDA:128,24,1,7
163
166
  BRDA:129,25,0,40
164
167
  BRDA:129,25,1,0
165
- BRDA:130,26,0,7
166
- BRDA:130,26,1,0
167
- BRDA:146,27,0,0
168
+ BRDA:129,26,0,0
169
+ BRDA:129,26,1,32295
170
+ BRDA:130,27,0,7
171
+ BRDA:130,27,1,0
168
172
  BRDA:146,28,0,0
169
- BRDA:147,29,0,88
170
- BRDA:147,29,1,88
171
- BRDA:147,29,2,88
173
+ BRDA:146,29,0,0
172
174
  BRDA:147,30,0,0
173
175
  BRDA:147,30,1,88
174
- BRDA:147,31,0,88
176
+ BRDA:147,31,0,0
175
177
  BRDA:147,31,1,88
176
- BRF:52
177
- BRH:27
178
+ BRDA:147,32,0,88
179
+ BRDA:147,32,1,88
180
+ BRDA:147,33,0,0
181
+ BRDA:147,33,1,88
182
+ BRDA:147,34,0,88
183
+ BRDA:147,34,1,88
184
+ BRF:57
185
+ BRH:29
178
186
  end_of_record
179
187
  TN:
180
188
  SF:configuration.ts
@@ -3728,24 +3736,24 @@ BRH:2
3728
3736
  end_of_record
3729
3737
  TN:
3730
3738
  SF:models/bxml/verbs/Transfer.ts
3731
- FN:29,(anonymous_6)
3732
- FN:37,Transfer
3733
- FN:45,(anonymous_8)
3739
+ FN:30,(anonymous_6)
3740
+ FN:38,Transfer
3741
+ FN:46,(anonymous_8)
3734
3742
  FNF:3
3735
3743
  FNH:3
3736
3744
  FNDA:6,(anonymous_6)
3737
3745
  FNDA:4,Transfer
3738
3746
  FNDA:3,(anonymous_8)
3739
3747
  DA:1,6
3740
- DA:29,6
3741
- DA:38,4
3742
- DA:45,6
3743
- DA:46,3
3744
- DA:48,6
3748
+ DA:30,6
3749
+ DA:39,4
3750
+ DA:46,6
3751
+ DA:47,3
3752
+ DA:49,6
3745
3753
  LF:6
3746
3754
  LH:6
3747
- BRDA:38,0,0,4
3748
- BRDA:38,0,1,0
3755
+ BRDA:39,0,0,4
3756
+ BRDA:39,0,1,0
3749
3757
  BRF:2
3750
3758
  BRH:1
3751
3759
  end_of_record
@@ -0,0 +1,142 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ {{>licenseInfo}}
4
+
5
+ import type { Configuration } from "./configuration";
6
+ import type { RequestArgs } from "./base";
7
+ import type { AxiosInstance, AxiosResponse } from 'axios';
8
+ import { RequiredError } from "./base";
9
+ {{#withNodeImports}}
10
+ import { URL, URLSearchParams } from 'url';
11
+ {{/withNodeImports}}
12
+
13
+ /**
14
+ *
15
+ * @export
16
+ */
17
+ export const DUMMY_BASE_URL = 'https://example.com'
18
+
19
+ /**
20
+ *
21
+ * @throws {RequiredError}
22
+ * @export
23
+ */
24
+ export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
25
+ if (paramValue === null || paramValue === undefined) {
26
+ throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
27
+ }
28
+ }
29
+
30
+ /**
31
+ *
32
+ * @export
33
+ */
34
+ export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
35
+ if (configuration && configuration.apiKey) {
36
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
37
+ ? await configuration.apiKey(keyParamName)
38
+ : await configuration.apiKey;
39
+ object[keyParamName] = localVarApiKeyValue;
40
+ }
41
+ }
42
+
43
+ /**
44
+ *
45
+ * @export
46
+ */
47
+ export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
48
+ if (configuration && (configuration.username || configuration.password)) {
49
+ object["auth"] = { username: configuration.username, password: configuration.password };
50
+ }
51
+ }
52
+
53
+ /**
54
+ *
55
+ * @export
56
+ */
57
+ export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
58
+ if (configuration && configuration.accessToken) {
59
+ const accessToken = typeof configuration.accessToken === 'function'
60
+ ? await configuration.accessToken()
61
+ : await configuration.accessToken;
62
+ object["Authorization"] = "Bearer " + accessToken;
63
+ }
64
+ }
65
+
66
+ /**
67
+ *
68
+ * @export
69
+ */
70
+ export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
71
+ if (configuration && configuration.accessToken) {
72
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
73
+ ? await configuration.accessToken(name, scopes)
74
+ : await configuration.accessToken;
75
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
76
+ }
77
+ }
78
+
79
+ function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
80
+ if (parameter == null) return;
81
+ if (typeof parameter === "object") {
82
+ if (Array.isArray(parameter)) {
83
+ (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
84
+ }
85
+ else {
86
+ Object.keys(parameter).forEach(currentKey =>
87
+ setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)
88
+ );
89
+ }
90
+ }
91
+ else {
92
+ if (urlSearchParams.has(key)) {
93
+ urlSearchParams.append(key, parameter);
94
+ }
95
+ else {
96
+ urlSearchParams.set(key, parameter);
97
+ }
98
+ }
99
+ }
100
+
101
+ /**
102
+ *
103
+ * @export
104
+ */
105
+ export const setSearchParams = function (url: URL, ...objects: any[]) {
106
+ const searchParams = new URLSearchParams(url.search);
107
+ setFlattenedQueryParams(searchParams, objects);
108
+ url.search = searchParams.toString();
109
+ }
110
+
111
+ /**
112
+ *
113
+ * @export
114
+ */
115
+ export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
116
+ const nonString = typeof value !== 'string';
117
+ const needsSerialization = nonString && configuration && configuration.isJsonMime
118
+ ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
119
+ : nonString;
120
+ return needsSerialization
121
+ ? JSON.stringify(value !== undefined ? value : {}, (_k, v) => (v instanceof Set ? Array.from(v) : v))
122
+ : (value || "");
123
+ }
124
+
125
+ /**
126
+ *
127
+ * @export
128
+ */
129
+ export const toPathString = function (url: URL) {
130
+ return url.pathname + url.search + url.hash
131
+ }
132
+
133
+ /**
134
+ *
135
+ * @export
136
+ */
137
+ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
138
+ return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
139
+ const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
140
+ return axios.request<T, R>(axiosRequestArgs);
141
+ };
142
+ }
@@ -27,7 +27,7 @@
27
27
  "test": "jest --coverage --detectOpenHandles"
28
28
  },
29
29
  "dependencies": {
30
- "axios": "^0.27.2",
30
+ "axios": "^1.6.7",
31
31
  "xmlbuilder2": "^3.1.1"
32
32
  },
33
33
  "devDependencies": {
package/dist/common.js CHANGED
@@ -225,7 +225,7 @@ var serializeDataIfNeeded = function (value, requestOptions, configuration) {
225
225
  ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
226
226
  : nonString;
227
227
  return needsSerialization
228
- ? JSON.stringify(value !== undefined ? value : {})
228
+ ? JSON.stringify(value !== undefined ? value : {}, function (_k, v) { return (v instanceof Set ? Array.from(v) : v); })
229
229
  : (value || "");
230
230
  };
231
231
  exports.serializeDataIfNeeded = serializeDataIfNeeded;
@@ -243,9 +243,10 @@ exports.toPathString = toPathString;
243
243
  */
244
244
  var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
245
245
  return function (axios, basePath) {
246
+ var _a;
246
247
  if (axios === void 0) { axios = globalAxios; }
247
248
  if (basePath === void 0) { basePath = BASE_PATH; }
248
- var axiosRequestArgs = __assign(__assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || axios.defaults.baseURL || basePath) + axiosArgs.url });
249
+ var axiosRequestArgs = __assign(__assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url });
249
250
  return axios.request(axiosRequestArgs);
250
251
  };
251
252
  };
@@ -4,6 +4,7 @@ import { SipUri } from './SipUri';
4
4
  type NumberEntities = Array<PhoneNumber | SipUri>;
5
5
  interface TransferAttributes {
6
6
  transferCallerId?: string;
7
+ transferCallerDisplayName?: string;
7
8
  callTimeout?: number;
8
9
  transferCompleteUrl?: string;
9
10
  transferCompleteMethod?: string;
@@ -6,6 +6,7 @@ type NumberEntities = Array<PhoneNumber | SipUri>;
6
6
 
7
7
  interface TransferAttributes {
8
8
  transferCallerId?: string;
9
+ transferCallerDisplayName?: string;
9
10
  callTimeout?: number;
10
11
  transferCompleteUrl?: string;
11
12
  transferCompleteMethod?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bandwidth-sdk",
3
- "version": "0.2.0",
3
+ "version": "1.0.1",
4
4
  "description": "OpenAPI client for bandwidth-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -23,7 +23,7 @@
23
23
  "test": "jest --coverage --detectOpenHandles"
24
24
  },
25
25
  "dependencies": {
26
- "axios": "^1.6.4",
26
+ "axios": "^1.6.7",
27
27
  "xmlbuilder2": "^3.1.1"
28
28
  },
29
29
  "devDependencies": {
@@ -108,6 +108,7 @@ describe('BXML Integration Tests', () => {
108
108
 
109
109
  const transferAttributes = {
110
110
  transferCallerId: '+19195551234',
111
+ transferCallerDisplayName: 'initialDisplayName',
111
112
  callTimeout: 5,
112
113
  transferCompleteUrl: 'https://initial.com',
113
114
  transferCompleteMethod: 'POST',