bandwidth-sdk 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/test-nightly.yml +1 -0
- package/.github/workflows/test-pr.yml +1 -0
- package/README.md +2 -2
- package/coverage/clover.xml +6 -6
- package/coverage/coverage-final.json +1 -1
- package/coverage/lcov-report/index.html +1 -1
- 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 +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/index.html +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +1 -1
- 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 +1 -1
- 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 +7 -7
- package/custom_templates/README.mustache +45 -0
- package/custom_templates/package.mustache +1 -1
- package/package.json +2 -2
- package/.github/workflows/update-sdk.yml +0 -95
|
@@ -118,7 +118,7 @@ export class StopGather extends Verb {
|
|
|
118
118
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
119
119
|
Code coverage generated by
|
|
120
120
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
121
|
-
at
|
|
121
|
+
at 2024-01-10T14:56:37.221Z
|
|
122
122
|
</div>
|
|
123
123
|
<script src="../../../../prettify.js"></script>
|
|
124
124
|
<script>
|
|
@@ -118,7 +118,7 @@ export class StopRecording extends Verb {
|
|
|
118
118
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
119
119
|
Code coverage generated by
|
|
120
120
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
121
|
-
at
|
|
121
|
+
at 2024-01-10T14:56:37.221Z
|
|
122
122
|
</div>
|
|
123
123
|
<script src="../../../../prettify.js"></script>
|
|
124
124
|
<script>
|
|
@@ -139,7 +139,7 @@ export class StopStream extends Verb {
|
|
|
139
139
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
140
140
|
Code coverage generated by
|
|
141
141
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
142
|
-
at
|
|
142
|
+
at 2024-01-10T14:56:37.221Z
|
|
143
143
|
</div>
|
|
144
144
|
<script src="../../../../prettify.js"></script>
|
|
145
145
|
<script>
|
|
@@ -139,7 +139,7 @@ export class StopTranscription extends Verb {
|
|
|
139
139
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
140
140
|
Code coverage generated by
|
|
141
141
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
142
|
-
at
|
|
142
|
+
at 2024-01-10T14:56:37.221Z
|
|
143
143
|
</div>
|
|
144
144
|
<script src="../../../../prettify.js"></script>
|
|
145
145
|
<script>
|
|
@@ -142,7 +142,7 @@ export class StreamParam extends Verb {
|
|
|
142
142
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
143
143
|
Code coverage generated by
|
|
144
144
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
145
|
-
at
|
|
145
|
+
at 2024-01-10T14:56:37.221Z
|
|
146
146
|
</div>
|
|
147
147
|
<script src="../../../../prettify.js"></script>
|
|
148
148
|
<script>
|
|
@@ -127,7 +127,7 @@ export class Tag extends Verb {
|
|
|
127
127
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
128
128
|
Code coverage generated by
|
|
129
129
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
130
|
-
at
|
|
130
|
+
at 2024-01-10T14:56:37.221Z
|
|
131
131
|
</div>
|
|
132
132
|
<script src="../../../../prettify.js"></script>
|
|
133
133
|
<script>
|
|
@@ -214,7 +214,7 @@ export class Transfer extends NestableVerb {
|
|
|
214
214
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
215
215
|
Code coverage generated by
|
|
216
216
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
217
|
-
at
|
|
217
|
+
at 2024-01-10T14:56:37.221Z
|
|
218
218
|
</div>
|
|
219
219
|
<script src="../../../../prettify.js"></script>
|
|
220
220
|
<script>
|
|
@@ -521,7 +521,7 @@
|
|
|
521
521
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
522
522
|
Code coverage generated by
|
|
523
523
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
524
|
-
at
|
|
524
|
+
at 2024-01-10T14:56:37.221Z
|
|
525
525
|
</div>
|
|
526
526
|
<script src="../../../../prettify.js"></script>
|
|
527
527
|
<script>
|
|
@@ -160,7 +160,7 @@ export * from '../Response';
|
|
|
160
160
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
161
161
|
Code coverage generated by
|
|
162
162
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
163
|
-
at
|
|
163
|
+
at 2024-01-10T14:56:37.221Z
|
|
164
164
|
</div>
|
|
165
165
|
<script src="../../../../prettify.js"></script>
|
|
166
166
|
<script>
|
|
@@ -163,7 +163,7 @@ export type CallDirectionEnum = typeof CallDirectionEnum[keyof typeof CallDirect
|
|
|
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
|
|
166
|
+
at 2024-01-10T14:56:37.221Z
|
|
167
167
|
</div>
|
|
168
168
|
<script src="../../prettify.js"></script>
|
|
169
169
|
<script>
|
|
@@ -163,7 +163,7 @@ export type CallStateEnum = typeof CallStateEnum[keyof typeof CallStateEnum];
|
|
|
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
|
|
166
|
+
at 2024-01-10T14:56:37.221Z
|
|
167
167
|
</div>
|
|
168
168
|
<script src="../../prettify.js"></script>
|
|
169
169
|
<script>
|
|
@@ -163,7 +163,7 @@ export type CallbackMethodEnum = typeof CallbackMethodEnum[keyof typeof Callback
|
|
|
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
|
|
166
|
+
at 2024-01-10T14:56:37.221Z
|
|
167
167
|
</div>
|
|
168
168
|
<script src="../../prettify.js"></script>
|
|
169
169
|
<script>
|
|
@@ -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
|
|
166
|
+
at 2024-01-10T14:56:37.221Z
|
|
167
167
|
</div>
|
|
168
168
|
<script src="../../prettify.js"></script>
|
|
169
169
|
<script>
|
|
@@ -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
|
|
166
|
+
at 2024-01-10T14:56:37.221Z
|
|
167
167
|
</div>
|
|
168
168
|
<script src="../../prettify.js"></script>
|
|
169
169
|
<script>
|
|
@@ -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
|
|
314
|
+
at 2024-01-10T14:56:37.221Z
|
|
315
315
|
</div>
|
|
316
316
|
<script src="../../prettify.js"></script>
|
|
317
317
|
<script>
|
|
@@ -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
|
|
340
|
+
at 2024-01-10T14:56:37.221Z
|
|
341
341
|
</div>
|
|
342
342
|
<script src="../../prettify.js"></script>
|
|
343
343
|
<script>
|
|
@@ -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
|
|
166
|
+
at 2024-01-10T14:56:37.221Z
|
|
167
167
|
</div>
|
|
168
168
|
<script src="../../prettify.js"></script>
|
|
169
169
|
<script>
|
|
@@ -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
|
|
172
|
+
at 2024-01-10T14:56:37.221Z
|
|
173
173
|
</div>
|
|
174
174
|
<script src="../../prettify.js"></script>
|
|
175
175
|
<script>
|
|
@@ -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
|
|
166
|
+
at 2024-01-10T14:56:37.221Z
|
|
167
167
|
</div>
|
|
168
168
|
<script src="../../prettify.js"></script>
|
|
169
169
|
<script>
|
|
@@ -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
|
|
166
|
+
at 2024-01-10T14:56:37.221Z
|
|
167
167
|
</div>
|
|
168
168
|
<script src="../../prettify.js"></script>
|
|
169
169
|
<script>
|
|
@@ -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
|
|
184
|
+
at 2024-01-10T14:56:37.221Z
|
|
185
185
|
</div>
|
|
186
186
|
<script src="../../prettify.js"></script>
|
|
187
187
|
<script>
|
|
@@ -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
|
|
166
|
+
at 2024-01-10T14:56:37.221Z
|
|
167
167
|
</div>
|
|
168
168
|
<script src="../../prettify.js"></script>
|
|
169
169
|
<script>
|
|
@@ -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
|
|
166
|
+
at 2024-01-10T14:56:37.221Z
|
|
167
167
|
</div>
|
|
168
168
|
<script src="../../prettify.js"></script>
|
|
169
169
|
<script>
|
|
@@ -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
|
|
166
|
+
at 2024-01-10T14:56:37.221Z
|
|
167
167
|
</div>
|
|
168
168
|
<script src="../../prettify.js"></script>
|
|
169
169
|
<script>
|
|
@@ -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
|
|
166
|
+
at 2024-01-10T14:56:37.221Z
|
|
167
167
|
</div>
|
|
168
168
|
<script src="../../prettify.js"></script>
|
|
169
169
|
<script>
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
<span class="cline-any cline-yes">5x</span>
|
|
154
154
|
<span class="cline-any cline-neutral"> </span>
|
|
155
155
|
<span class="cline-any cline-yes">5x</span>
|
|
156
|
-
<span class="cline-any cline-yes">
|
|
156
|
+
<span class="cline-any cline-yes">41x</span>
|
|
157
157
|
<span class="cline-any cline-neutral"> </span>
|
|
158
158
|
<span class="cline-any cline-neutral"> </span>
|
|
159
159
|
<span class="cline-any cline-yes">5x</span>
|
|
@@ -188,9 +188,9 @@
|
|
|
188
188
|
<span class="cline-any cline-neutral"> </span>
|
|
189
189
|
<span class="cline-any cline-neutral"> </span>
|
|
190
190
|
<span class="cline-any cline-yes">5x</span>
|
|
191
|
-
<span class="cline-any cline-yes">
|
|
192
|
-
<span class="cline-any cline-yes">
|
|
193
|
-
<span class="cline-any cline-yes">
|
|
191
|
+
<span class="cline-any cline-yes">18x</span>
|
|
192
|
+
<span class="cline-any cline-yes">18x</span>
|
|
193
|
+
<span class="cline-any cline-yes">18x</span>
|
|
194
194
|
<span class="cline-any cline-neutral"> </span>
|
|
195
195
|
<span class="cline-any cline-neutral"> </span>
|
|
196
196
|
<span class="cline-any cline-yes">5x</span>
|
|
@@ -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
|
|
322
|
+
at 2024-01-10T14:56:37.221Z
|
|
323
323
|
</div>
|
|
324
324
|
<script src="../../prettify.js"></script>
|
|
325
325
|
<script>
|
|
@@ -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
|
|
104
|
+
at 2024-01-10T14:56:37.221Z
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../prettify.js"></script>
|
|
107
107
|
<script>
|
package/coverage/lcov.info
CHANGED
|
@@ -3781,16 +3781,16 @@ FN:48,(anonymous_5)
|
|
|
3781
3781
|
FN:65,(anonymous_6)
|
|
3782
3782
|
FNF:7
|
|
3783
3783
|
FNH:7
|
|
3784
|
-
FNDA:
|
|
3785
|
-
FNDA:
|
|
3784
|
+
FNDA:41,(anonymous_0)
|
|
3785
|
+
FNDA:41,(anonymous_1)
|
|
3786
3786
|
FNDA:2,(anonymous_2)
|
|
3787
3787
|
FNDA:9,(anonymous_3)
|
|
3788
|
-
FNDA:
|
|
3788
|
+
FNDA:18,(anonymous_4)
|
|
3789
3789
|
FNDA:4,(anonymous_5)
|
|
3790
3790
|
FNDA:10,(anonymous_6)
|
|
3791
3791
|
DA:5,5
|
|
3792
3792
|
DA:7,5
|
|
3793
|
-
DA:8,
|
|
3793
|
+
DA:8,41
|
|
3794
3794
|
DA:11,5
|
|
3795
3795
|
DA:12,2
|
|
3796
3796
|
DA:18,2
|
|
@@ -3804,9 +3804,9 @@ DA:30,9
|
|
|
3804
3804
|
DA:38,9
|
|
3805
3805
|
DA:39,9
|
|
3806
3806
|
DA:42,5
|
|
3807
|
-
DA:43,
|
|
3808
|
-
DA:44,
|
|
3809
|
-
DA:45,
|
|
3807
|
+
DA:43,18
|
|
3808
|
+
DA:44,18
|
|
3809
|
+
DA:45,18
|
|
3810
3810
|
DA:48,5
|
|
3811
3811
|
DA:49,4
|
|
3812
3812
|
DA:51,4
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
## {{npmName}}
|
|
2
|
+
|
|
3
|
+
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
|
+
|
|
5
|
+
Environment
|
|
6
|
+
* Node.js
|
|
7
|
+
* Webpack
|
|
8
|
+
* Browserify
|
|
9
|
+
|
|
10
|
+
Language level
|
|
11
|
+
* ES5 - you must have a Promises/A+ library installed
|
|
12
|
+
* ES6
|
|
13
|
+
|
|
14
|
+
Module system
|
|
15
|
+
* CommonJS
|
|
16
|
+
* ES6 module system
|
|
17
|
+
|
|
18
|
+
It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))
|
|
19
|
+
|
|
20
|
+
### Building
|
|
21
|
+
|
|
22
|
+
To build and compile the typescript sources to javascript use:
|
|
23
|
+
```
|
|
24
|
+
npm install
|
|
25
|
+
npm run build
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Publishing
|
|
29
|
+
|
|
30
|
+
First build the package then run ```npm publish```
|
|
31
|
+
|
|
32
|
+
### Consuming
|
|
33
|
+
|
|
34
|
+
navigate to the folder of your consuming project and run one of the following commands.
|
|
35
|
+
|
|
36
|
+
_published:_
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
npm install {{npmName}} --save
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
_unPublished (not recommended):_
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
npm install PATH_TO_GENERATED_PACKAGE --save
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bandwidth-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.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": "^
|
|
26
|
+
"axios": "^1.6.4",
|
|
27
27
|
"xmlbuilder2": "^3.1.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
name: Update SDK
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
schedule:
|
|
5
|
-
- cron: "0 14 * * 2"
|
|
6
|
-
workflow_dispatch:
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
update-sdk:
|
|
10
|
-
name: Update SDK if Necessary
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
outputs:
|
|
13
|
-
generate: ${{ steps.compare.outputs.generate }}
|
|
14
|
-
steps:
|
|
15
|
-
- name: Checkout
|
|
16
|
-
uses: actions/checkout@v4
|
|
17
|
-
|
|
18
|
-
- name: Combine Product Specs
|
|
19
|
-
uses: Bandwidth/api-specs-combine-action@v1.0.0
|
|
20
|
-
with:
|
|
21
|
-
token: ${{ secrets.DX_GITHUB_TOKEN }}
|
|
22
|
-
|
|
23
|
-
- name: Determine if a New SDK is Needed
|
|
24
|
-
id: compare
|
|
25
|
-
run: |
|
|
26
|
-
if cmp -s "bandwidth.yml" "api-specs/bandwidth.yml"; then :; else mv -f api-specs/bandwidth.yml bandwidth.yml; rm -r -f api-specs; echo "generate=true" >> $GITHUB_OUTPUT; fi
|
|
27
|
-
|
|
28
|
-
- name: Create JIRA Card for SDK Update
|
|
29
|
-
if: ${{ steps.compare.outputs.generate == 'true' }}
|
|
30
|
-
id: jira
|
|
31
|
-
run: |
|
|
32
|
-
JIRA_KEY=$(jq -r '.key' <<< $(curl -s -u $JIRA_USERNAME:$JIRA_TOKEN \
|
|
33
|
-
-X POST https://bandwidth-jira.atlassian.net/rest/api/2/issue \
|
|
34
|
-
-H "Content-Type: application/json" \
|
|
35
|
-
--data-binary @- << EOF
|
|
36
|
-
{
|
|
37
|
-
"fields": {
|
|
38
|
-
"project": {
|
|
39
|
-
"key": "SWI"
|
|
40
|
-
},
|
|
41
|
-
"summary": "[$LANGUAGE] Update SDK for New Spec Version",
|
|
42
|
-
"description": "Prepare the $LANGUAGE SDK for release based on the latest spec changes.",
|
|
43
|
-
"issuetype": {
|
|
44
|
-
"name": "Story"
|
|
45
|
-
},
|
|
46
|
-
"customfield_12108": "$LANGUAGE SDK is ready for release. Tests are created/updated if need be.",
|
|
47
|
-
"customfield_10205": "$EPIC",
|
|
48
|
-
"components": [{
|
|
49
|
-
"name": "Client SDKs"
|
|
50
|
-
}]
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
EOF
|
|
54
|
-
))
|
|
55
|
-
echo "jira-key=$JIRA_KEY" >> $GITHUB_OUTPUT
|
|
56
|
-
env:
|
|
57
|
-
LANGUAGE: Node
|
|
58
|
-
EPIC: SWI-1876
|
|
59
|
-
JIRA_USERNAME: ${{ secrets.JIRA_USERNAME }}
|
|
60
|
-
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }}
|
|
61
|
-
|
|
62
|
-
- name: Build SDK
|
|
63
|
-
id: build
|
|
64
|
-
if: ${{ startsWith(steps.jira.outputs.jira-key, 'SWI') }}
|
|
65
|
-
uses: Bandwidth/generate-sdk-action@v3.0.0
|
|
66
|
-
with:
|
|
67
|
-
branch-name: ${{ steps.jira.outputs.jira-key }}
|
|
68
|
-
token: ${{ secrets.DX_GITHUB_TOKEN }}
|
|
69
|
-
openapi-generator-version: 7.1.0
|
|
70
|
-
language: typescript-axios
|
|
71
|
-
config: ./openapi-config.yml
|
|
72
|
-
|
|
73
|
-
- name: Setup Node
|
|
74
|
-
if: steps.build.outputs.changes
|
|
75
|
-
uses: actions/setup-node@v4
|
|
76
|
-
|
|
77
|
-
- name: Open Pull Request
|
|
78
|
-
if: steps.build.outputs.changes
|
|
79
|
-
run: |
|
|
80
|
-
gh pr create -B main -H Bandwidth:${{ steps.jira.outputs.jira-key }} -t '${{ steps.jira.outputs.jira-key }} Update SDK Based on Recent Spec Changes' -b 'Auto-generated by Update SDK Workflow'
|
|
81
|
-
env:
|
|
82
|
-
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}
|
|
83
|
-
|
|
84
|
-
notify-for-failures:
|
|
85
|
-
name: Notify for Failures
|
|
86
|
-
needs: [update-sdk]
|
|
87
|
-
if: failure()
|
|
88
|
-
runs-on: ubuntu-latest
|
|
89
|
-
steps:
|
|
90
|
-
- name: Notify Slack of Failures
|
|
91
|
-
uses: Bandwidth/build-notify-slack-action@v1.0.0
|
|
92
|
-
with:
|
|
93
|
-
job-status: failure
|
|
94
|
-
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
|
|
95
|
-
slack-channel: ${{ secrets.SLACK_CHANNEL }}
|