bandwidth-sdk 7.0.1 → 7.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/.github/workflows/deploy.yml +11 -4
- package/.github/workflows/test-pr.yml +3 -1
- package/.github/workflows/test-smoke.yml +4 -2
- package/.openapi-generator/FILES +4 -0
- package/README.md +12 -2
- package/api/calls-api.ts +20 -0
- package/api/conferences-api.ts +36 -0
- package/api/media-api.ts +16 -0
- package/api/messages-api.ts +8 -0
- package/api/mfaapi.ts +12 -0
- package/api/multi-channel-api.ts +4 -0
- package/api/phone-number-lookup-api.ts +12 -0
- package/api/recordings-api.ts +40 -0
- package/api/statistics-api.ts +4 -0
- package/api/toll-free-verification-api.ts +36 -0
- package/api/transcriptions-api.ts +12 -0
- package/bandwidth.yml +58 -0
- package/common.ts +3 -1
- package/configuration.ts +44 -2
- package/coverage/clover.xml +1126 -1050
- package/coverage/coverage-final.json +16 -14
- package/coverage/lcov-report/index.html +28 -28
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +66 -6
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +114 -6
- package/coverage/lcov-report/node-sdk/api/index.html +60 -60
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +54 -6
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +30 -6
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +42 -6
- package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +18 -6
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +42 -6
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +126 -6
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +18 -6
- package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +114 -6
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +42 -6
- package/coverage/lcov-report/node-sdk/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 +25 -19
- package/coverage/lcov-report/node-sdk/configuration.ts.html +138 -12
- package/coverage/lcov-report/node-sdk/index.html +30 -30
- package/coverage/lcov-report/node-sdk/models/business-entity-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.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/call-transcription-detected-language-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-transcription-track-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/card-width-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/completed-lookup-status-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/deactivation-event-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/in-progress-lookup-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/inbound-callback-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/index.html +35 -5
- package/coverage/lcov-report/node-sdk/models/index.ts.html +10 -4
- package/coverage/lcov-report/node-sdk/models/latest-message-delivery-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/line-type-enum.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/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/multi-channel-message-channel-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/product-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/rbm-action-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/rbm-media-height-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/rbm-open-url-enum.ts.html +172 -0
- package/coverage/lcov-report/node-sdk/models/rbm-web-view-enum.ts.html +175 -0
- 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/models/standalone-card-orientation-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/status-callback-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +1 -1
- package/coverage/lcov.info +2804 -2695
- package/custom_templates/README.mustache +2 -2
- package/custom_templates/common.mustache +3 -1
- package/custom_templates/configuration.mustache +43 -1
- package/custom_templates/package.mustache +11 -9
- package/dist/api/calls-api.js +192 -142
- package/dist/api/conferences-api.js +333 -243
- package/dist/api/media-api.js +142 -102
- package/dist/api/messages-api.js +145 -125
- package/dist/api/mfaapi.js +102 -72
- package/dist/api/multi-channel-api.js +34 -24
- package/dist/api/phone-number-lookup-api.js +101 -71
- package/dist/api/recordings-api.js +368 -268
- package/dist/api/statistics-api.js +30 -20
- package/dist/api/toll-free-verification-api.js +298 -208
- package/dist/api/transcriptions-api.js +105 -75
- package/dist/common.js +3 -1
- package/dist/configuration.d.ts +18 -0
- package/dist/configuration.js +71 -3
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/multi-channel-action.d.ts +4 -0
- package/dist/models/rbm-open-url-enum.d.ts +19 -0
- package/dist/models/rbm-open-url-enum.js +23 -0
- package/dist/models/rbm-web-view-enum.d.ts +20 -0
- package/dist/models/rbm-web-view-enum.js +24 -0
- package/dist/models/tfv-status.d.ts +4 -0
- package/dist/models/verification-request.d.ts +4 -0
- package/dist/models/verification-update-request.d.ts +4 -0
- package/docs/CallsApi.md +5 -5
- package/docs/ConferencesApi.md +9 -9
- package/docs/MFAApi.md +3 -3
- package/docs/MediaApi.md +4 -4
- package/docs/MessagesApi.md +2 -2
- package/docs/MultiChannelAction.md +4 -0
- package/docs/MultiChannelApi.md +1 -1
- package/docs/PhoneNumberLookupApi.md +3 -3
- package/docs/RbmActionOpenUrl.md +4 -0
- package/docs/RbmOpenUrlEnum.md +11 -0
- package/docs/RbmWebViewEnum.md +13 -0
- package/docs/RecordingsApi.md +10 -10
- package/docs/StatisticsApi.md +1 -1
- package/docs/TfvStatus.md +2 -0
- package/docs/TollFreeVerificationApi.md +9 -9
- package/docs/TranscriptionsApi.md +3 -3
- package/docs/VerificationRequest.md +2 -0
- package/docs/VerificationUpdateRequest.md +2 -0
- package/jest.config.js +2 -0
- package/models/index.ts +2 -0
- package/models/multi-channel-action.ts +8 -0
- package/models/rbm-action-open-url.ts +6 -0
- package/models/rbm-open-url-enum.ts +29 -0
- package/models/rbm-web-view-enum.ts +30 -0
- package/models/tfv-status.ts +4 -0
- package/models/verification-request.ts +4 -0
- package/models/verification-update-request.ts +4 -0
- package/package.json +12 -5
- package/tests/smoke/bxml.test.ts +4 -1
- package/tests/smoke/calls-api.test.ts +4 -1
- package/tests/smoke/conferences-api.test.ts +4 -1
- package/tests/smoke/phone-number-lookup-api.test.ts +2 -2
- package/tests/smoke/recordings-api.test.ts +4 -1
- package/tests/smoke/statistics-api.test.ts +4 -1
- package/tests/smoke/toll-free-verification-api.test.ts +4 -1
- package/tests/smoke/transcriptions-api.test.ts +4 -1
- package/tests/unit/api/toll-free-verification-api.test.ts +15 -2
- package/tests/unit/models/rbm-open-url-enum.test.ts +8 -0
- package/tests/unit/models/rbm-veb-view-enum.test.ts +9 -0
|
@@ -114,31 +114,41 @@ var TollFreeVerificationApiAxiosParamCreator = function (configuration) {
|
|
|
114
114
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
115
115
|
if (options === void 0) { options = {}; }
|
|
116
116
|
return __generator(this, function (_a) {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
117
|
+
switch (_a.label) {
|
|
118
|
+
case 0:
|
|
119
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
120
|
+
(0, common_1.assertParamExists)('createWebhookSubscription', 'accountId', accountId);
|
|
121
|
+
// verify required parameter 'webhookSubscriptionRequestSchema' is not null or undefined
|
|
122
|
+
(0, common_1.assertParamExists)('createWebhookSubscription', 'webhookSubscriptionRequestSchema', webhookSubscriptionRequestSchema);
|
|
123
|
+
localVarPath = "/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions"
|
|
124
|
+
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
|
|
125
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
126
|
+
if (configuration) {
|
|
127
|
+
baseOptions = configuration.baseOptions;
|
|
128
|
+
}
|
|
129
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
130
|
+
localVarHeaderParameter = {};
|
|
131
|
+
localVarQueryParameter = {};
|
|
132
|
+
// authentication Basic required
|
|
133
|
+
// http basic authentication required
|
|
134
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
135
|
+
// authentication OAuth2 required
|
|
136
|
+
// oauth required
|
|
137
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
138
|
+
case 1:
|
|
139
|
+
// authentication OAuth2 required
|
|
140
|
+
// oauth required
|
|
141
|
+
_a.sent();
|
|
142
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
143
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
144
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
146
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(webhookSubscriptionRequestSchema, localVarRequestOptions, configuration);
|
|
147
|
+
return [2 /*return*/, {
|
|
148
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
149
|
+
options: localVarRequestOptions,
|
|
150
|
+
}];
|
|
126
151
|
}
|
|
127
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
128
|
-
localVarHeaderParameter = {};
|
|
129
|
-
localVarQueryParameter = {};
|
|
130
|
-
// authentication Basic required
|
|
131
|
-
// http basic authentication required
|
|
132
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
133
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
134
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
135
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
136
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
137
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(webhookSubscriptionRequestSchema, localVarRequestOptions, configuration);
|
|
138
|
-
return [2 /*return*/, {
|
|
139
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
140
|
-
options: localVarRequestOptions,
|
|
141
|
-
}];
|
|
142
152
|
});
|
|
143
153
|
});
|
|
144
154
|
},
|
|
@@ -159,30 +169,40 @@ var TollFreeVerificationApiAxiosParamCreator = function (configuration) {
|
|
|
159
169
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
170
|
if (options === void 0) { options = {}; }
|
|
161
171
|
return __generator(this, function (_a) {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
+
switch (_a.label) {
|
|
173
|
+
case 0:
|
|
174
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
175
|
+
(0, common_1.assertParamExists)('deleteVerificationRequest', 'accountId', accountId);
|
|
176
|
+
// verify required parameter 'phoneNumber' is not null or undefined
|
|
177
|
+
(0, common_1.assertParamExists)('deleteVerificationRequest', 'phoneNumber', phoneNumber);
|
|
178
|
+
localVarPath = "/accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification"
|
|
179
|
+
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
|
|
180
|
+
.replace("{".concat("phoneNumber", "}"), encodeURIComponent(String(phoneNumber)));
|
|
181
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
182
|
+
if (configuration) {
|
|
183
|
+
baseOptions = configuration.baseOptions;
|
|
184
|
+
}
|
|
185
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
186
|
+
localVarHeaderParameter = {};
|
|
187
|
+
localVarQueryParameter = {};
|
|
188
|
+
// authentication Basic required
|
|
189
|
+
// http basic authentication required
|
|
190
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
191
|
+
// authentication OAuth2 required
|
|
192
|
+
// oauth required
|
|
193
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
194
|
+
case 1:
|
|
195
|
+
// authentication OAuth2 required
|
|
196
|
+
// oauth required
|
|
197
|
+
_a.sent();
|
|
198
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
199
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
200
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
201
|
+
return [2 /*return*/, {
|
|
202
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
203
|
+
options: localVarRequestOptions,
|
|
204
|
+
}];
|
|
172
205
|
}
|
|
173
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
174
|
-
localVarHeaderParameter = {};
|
|
175
|
-
localVarQueryParameter = {};
|
|
176
|
-
// authentication Basic required
|
|
177
|
-
// http basic authentication required
|
|
178
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
179
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
180
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
181
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
182
|
-
return [2 /*return*/, {
|
|
183
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
184
|
-
options: localVarRequestOptions,
|
|
185
|
-
}];
|
|
186
206
|
});
|
|
187
207
|
});
|
|
188
208
|
},
|
|
@@ -203,30 +223,40 @@ var TollFreeVerificationApiAxiosParamCreator = function (configuration) {
|
|
|
203
223
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
204
224
|
if (options === void 0) { options = {}; }
|
|
205
225
|
return __generator(this, function (_a) {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
226
|
+
switch (_a.label) {
|
|
227
|
+
case 0:
|
|
228
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
229
|
+
(0, common_1.assertParamExists)('deleteWebhookSubscription', 'accountId', accountId);
|
|
230
|
+
// verify required parameter 'id' is not null or undefined
|
|
231
|
+
(0, common_1.assertParamExists)('deleteWebhookSubscription', 'id', id);
|
|
232
|
+
localVarPath = "/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions/{id}"
|
|
233
|
+
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
|
|
234
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
235
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
236
|
+
if (configuration) {
|
|
237
|
+
baseOptions = configuration.baseOptions;
|
|
238
|
+
}
|
|
239
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
240
|
+
localVarHeaderParameter = {};
|
|
241
|
+
localVarQueryParameter = {};
|
|
242
|
+
// authentication Basic required
|
|
243
|
+
// http basic authentication required
|
|
244
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
245
|
+
// authentication OAuth2 required
|
|
246
|
+
// oauth required
|
|
247
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
248
|
+
case 1:
|
|
249
|
+
// authentication OAuth2 required
|
|
250
|
+
// oauth required
|
|
251
|
+
_a.sent();
|
|
252
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
253
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
254
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
255
|
+
return [2 /*return*/, {
|
|
256
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
257
|
+
options: localVarRequestOptions,
|
|
258
|
+
}];
|
|
216
259
|
}
|
|
217
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
218
|
-
localVarHeaderParameter = {};
|
|
219
|
-
localVarQueryParameter = {};
|
|
220
|
-
// authentication Basic required
|
|
221
|
-
// http basic authentication required
|
|
222
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
223
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
224
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
225
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
226
|
-
return [2 /*return*/, {
|
|
227
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
228
|
-
options: localVarRequestOptions,
|
|
229
|
-
}];
|
|
230
260
|
});
|
|
231
261
|
});
|
|
232
262
|
},
|
|
@@ -247,30 +277,40 @@ var TollFreeVerificationApiAxiosParamCreator = function (configuration) {
|
|
|
247
277
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
248
278
|
if (options === void 0) { options = {}; }
|
|
249
279
|
return __generator(this, function (_a) {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
280
|
+
switch (_a.label) {
|
|
281
|
+
case 0:
|
|
282
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
283
|
+
(0, common_1.assertParamExists)('getTollFreeVerificationStatus', 'accountId', accountId);
|
|
284
|
+
// verify required parameter 'phoneNumber' is not null or undefined
|
|
285
|
+
(0, common_1.assertParamExists)('getTollFreeVerificationStatus', 'phoneNumber', phoneNumber);
|
|
286
|
+
localVarPath = "/accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification"
|
|
287
|
+
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
|
|
288
|
+
.replace("{".concat("phoneNumber", "}"), encodeURIComponent(String(phoneNumber)));
|
|
289
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
290
|
+
if (configuration) {
|
|
291
|
+
baseOptions = configuration.baseOptions;
|
|
292
|
+
}
|
|
293
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
294
|
+
localVarHeaderParameter = {};
|
|
295
|
+
localVarQueryParameter = {};
|
|
296
|
+
// authentication Basic required
|
|
297
|
+
// http basic authentication required
|
|
298
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
299
|
+
// authentication OAuth2 required
|
|
300
|
+
// oauth required
|
|
301
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
302
|
+
case 1:
|
|
303
|
+
// authentication OAuth2 required
|
|
304
|
+
// oauth required
|
|
305
|
+
_a.sent();
|
|
306
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
307
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
308
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
309
|
+
return [2 /*return*/, {
|
|
310
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
311
|
+
options: localVarRequestOptions,
|
|
312
|
+
}];
|
|
260
313
|
}
|
|
261
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
262
|
-
localVarHeaderParameter = {};
|
|
263
|
-
localVarQueryParameter = {};
|
|
264
|
-
// authentication Basic required
|
|
265
|
-
// http basic authentication required
|
|
266
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
267
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
268
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
269
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
270
|
-
return [2 /*return*/, {
|
|
271
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
272
|
-
options: localVarRequestOptions,
|
|
273
|
-
}];
|
|
274
314
|
});
|
|
275
315
|
});
|
|
276
316
|
},
|
|
@@ -289,24 +329,34 @@ var TollFreeVerificationApiAxiosParamCreator = function (configuration) {
|
|
|
289
329
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
290
330
|
if (options === void 0) { options = {}; }
|
|
291
331
|
return __generator(this, function (_a) {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
332
|
+
switch (_a.label) {
|
|
333
|
+
case 0:
|
|
334
|
+
localVarPath = "/tollFreeVerification/useCases";
|
|
335
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
336
|
+
if (configuration) {
|
|
337
|
+
baseOptions = configuration.baseOptions;
|
|
338
|
+
}
|
|
339
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
340
|
+
localVarHeaderParameter = {};
|
|
341
|
+
localVarQueryParameter = {};
|
|
342
|
+
// authentication Basic required
|
|
343
|
+
// http basic authentication required
|
|
344
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
345
|
+
// authentication OAuth2 required
|
|
346
|
+
// oauth required
|
|
347
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
348
|
+
case 1:
|
|
349
|
+
// authentication OAuth2 required
|
|
350
|
+
// oauth required
|
|
351
|
+
_a.sent();
|
|
352
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
353
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
354
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
355
|
+
return [2 /*return*/, {
|
|
356
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
357
|
+
options: localVarRequestOptions,
|
|
358
|
+
}];
|
|
296
359
|
}
|
|
297
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
298
|
-
localVarHeaderParameter = {};
|
|
299
|
-
localVarQueryParameter = {};
|
|
300
|
-
// authentication Basic required
|
|
301
|
-
// http basic authentication required
|
|
302
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
303
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
304
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
305
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
306
|
-
return [2 /*return*/, {
|
|
307
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
308
|
-
options: localVarRequestOptions,
|
|
309
|
-
}];
|
|
310
360
|
});
|
|
311
361
|
});
|
|
312
362
|
},
|
|
@@ -326,27 +376,37 @@ var TollFreeVerificationApiAxiosParamCreator = function (configuration) {
|
|
|
326
376
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
327
377
|
if (options === void 0) { options = {}; }
|
|
328
378
|
return __generator(this, function (_a) {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
379
|
+
switch (_a.label) {
|
|
380
|
+
case 0:
|
|
381
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
382
|
+
(0, common_1.assertParamExists)('listWebhookSubscriptions', 'accountId', accountId);
|
|
383
|
+
localVarPath = "/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions"
|
|
384
|
+
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
|
|
385
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
386
|
+
if (configuration) {
|
|
387
|
+
baseOptions = configuration.baseOptions;
|
|
388
|
+
}
|
|
389
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
390
|
+
localVarHeaderParameter = {};
|
|
391
|
+
localVarQueryParameter = {};
|
|
392
|
+
// authentication Basic required
|
|
393
|
+
// http basic authentication required
|
|
394
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
395
|
+
// authentication OAuth2 required
|
|
396
|
+
// oauth required
|
|
397
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
398
|
+
case 1:
|
|
399
|
+
// authentication OAuth2 required
|
|
400
|
+
// oauth required
|
|
401
|
+
_a.sent();
|
|
402
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
403
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
404
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
405
|
+
return [2 /*return*/, {
|
|
406
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
407
|
+
options: localVarRequestOptions,
|
|
408
|
+
}];
|
|
336
409
|
}
|
|
337
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
338
|
-
localVarHeaderParameter = {};
|
|
339
|
-
localVarQueryParameter = {};
|
|
340
|
-
// authentication Basic required
|
|
341
|
-
// http basic authentication required
|
|
342
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
343
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
344
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
345
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
346
|
-
return [2 /*return*/, {
|
|
347
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
348
|
-
options: localVarRequestOptions,
|
|
349
|
-
}];
|
|
350
410
|
});
|
|
351
411
|
});
|
|
352
412
|
},
|
|
@@ -367,31 +427,41 @@ var TollFreeVerificationApiAxiosParamCreator = function (configuration) {
|
|
|
367
427
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
368
428
|
if (options === void 0) { options = {}; }
|
|
369
429
|
return __generator(this, function (_a) {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
430
|
+
switch (_a.label) {
|
|
431
|
+
case 0:
|
|
432
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
433
|
+
(0, common_1.assertParamExists)('requestTollFreeVerification', 'accountId', accountId);
|
|
434
|
+
// verify required parameter 'verificationRequest' is not null or undefined
|
|
435
|
+
(0, common_1.assertParamExists)('requestTollFreeVerification', 'verificationRequest', verificationRequest);
|
|
436
|
+
localVarPath = "/accounts/{accountId}/tollFreeVerification"
|
|
437
|
+
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
|
|
438
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
439
|
+
if (configuration) {
|
|
440
|
+
baseOptions = configuration.baseOptions;
|
|
441
|
+
}
|
|
442
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
443
|
+
localVarHeaderParameter = {};
|
|
444
|
+
localVarQueryParameter = {};
|
|
445
|
+
// authentication Basic required
|
|
446
|
+
// http basic authentication required
|
|
447
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
448
|
+
// authentication OAuth2 required
|
|
449
|
+
// oauth required
|
|
450
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
451
|
+
case 1:
|
|
452
|
+
// authentication OAuth2 required
|
|
453
|
+
// oauth required
|
|
454
|
+
_a.sent();
|
|
455
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
456
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
457
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
458
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
459
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verificationRequest, localVarRequestOptions, configuration);
|
|
460
|
+
return [2 /*return*/, {
|
|
461
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
462
|
+
options: localVarRequestOptions,
|
|
463
|
+
}];
|
|
379
464
|
}
|
|
380
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
381
|
-
localVarHeaderParameter = {};
|
|
382
|
-
localVarQueryParameter = {};
|
|
383
|
-
// authentication Basic required
|
|
384
|
-
// http basic authentication required
|
|
385
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
386
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
387
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
388
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
389
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
390
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verificationRequest, localVarRequestOptions, configuration);
|
|
391
|
-
return [2 /*return*/, {
|
|
392
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
393
|
-
options: localVarRequestOptions,
|
|
394
|
-
}];
|
|
395
465
|
});
|
|
396
466
|
});
|
|
397
467
|
},
|
|
@@ -413,34 +483,44 @@ var TollFreeVerificationApiAxiosParamCreator = function (configuration) {
|
|
|
413
483
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
414
484
|
if (options === void 0) { options = {}; }
|
|
415
485
|
return __generator(this, function (_a) {
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
486
|
+
switch (_a.label) {
|
|
487
|
+
case 0:
|
|
488
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
489
|
+
(0, common_1.assertParamExists)('updateTollFreeVerificationRequest', 'accountId', accountId);
|
|
490
|
+
// verify required parameter 'phoneNumber' is not null or undefined
|
|
491
|
+
(0, common_1.assertParamExists)('updateTollFreeVerificationRequest', 'phoneNumber', phoneNumber);
|
|
492
|
+
// verify required parameter 'tfvSubmissionWrapper' is not null or undefined
|
|
493
|
+
(0, common_1.assertParamExists)('updateTollFreeVerificationRequest', 'tfvSubmissionWrapper', tfvSubmissionWrapper);
|
|
494
|
+
localVarPath = "/accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification"
|
|
495
|
+
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
|
|
496
|
+
.replace("{".concat("phoneNumber", "}"), encodeURIComponent(String(phoneNumber)));
|
|
497
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
498
|
+
if (configuration) {
|
|
499
|
+
baseOptions = configuration.baseOptions;
|
|
500
|
+
}
|
|
501
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
502
|
+
localVarHeaderParameter = {};
|
|
503
|
+
localVarQueryParameter = {};
|
|
504
|
+
// authentication Basic required
|
|
505
|
+
// http basic authentication required
|
|
506
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
507
|
+
// authentication OAuth2 required
|
|
508
|
+
// oauth required
|
|
509
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
510
|
+
case 1:
|
|
511
|
+
// authentication OAuth2 required
|
|
512
|
+
// oauth required
|
|
513
|
+
_a.sent();
|
|
514
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
515
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
516
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
517
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
518
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tfvSubmissionWrapper, localVarRequestOptions, configuration);
|
|
519
|
+
return [2 /*return*/, {
|
|
520
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
521
|
+
options: localVarRequestOptions,
|
|
522
|
+
}];
|
|
428
523
|
}
|
|
429
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
430
|
-
localVarHeaderParameter = {};
|
|
431
|
-
localVarQueryParameter = {};
|
|
432
|
-
// authentication Basic required
|
|
433
|
-
// http basic authentication required
|
|
434
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
435
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
436
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
437
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
438
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
439
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tfvSubmissionWrapper, localVarRequestOptions, configuration);
|
|
440
|
-
return [2 /*return*/, {
|
|
441
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
442
|
-
options: localVarRequestOptions,
|
|
443
|
-
}];
|
|
444
524
|
});
|
|
445
525
|
});
|
|
446
526
|
},
|
|
@@ -462,34 +542,44 @@ var TollFreeVerificationApiAxiosParamCreator = function (configuration) {
|
|
|
462
542
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
463
543
|
if (options === void 0) { options = {}; }
|
|
464
544
|
return __generator(this, function (_a) {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
545
|
+
switch (_a.label) {
|
|
546
|
+
case 0:
|
|
547
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
548
|
+
(0, common_1.assertParamExists)('updateWebhookSubscription', 'accountId', accountId);
|
|
549
|
+
// verify required parameter 'id' is not null or undefined
|
|
550
|
+
(0, common_1.assertParamExists)('updateWebhookSubscription', 'id', id);
|
|
551
|
+
// verify required parameter 'webhookSubscriptionRequestSchema' is not null or undefined
|
|
552
|
+
(0, common_1.assertParamExists)('updateWebhookSubscription', 'webhookSubscriptionRequestSchema', webhookSubscriptionRequestSchema);
|
|
553
|
+
localVarPath = "/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions/{id}"
|
|
554
|
+
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
|
|
555
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
556
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
557
|
+
if (configuration) {
|
|
558
|
+
baseOptions = configuration.baseOptions;
|
|
559
|
+
}
|
|
560
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
561
|
+
localVarHeaderParameter = {};
|
|
562
|
+
localVarQueryParameter = {};
|
|
563
|
+
// authentication Basic required
|
|
564
|
+
// http basic authentication required
|
|
565
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
566
|
+
// authentication OAuth2 required
|
|
567
|
+
// oauth required
|
|
568
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
569
|
+
case 1:
|
|
570
|
+
// authentication OAuth2 required
|
|
571
|
+
// oauth required
|
|
572
|
+
_a.sent();
|
|
573
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
574
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
575
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
576
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
577
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(webhookSubscriptionRequestSchema, localVarRequestOptions, configuration);
|
|
578
|
+
return [2 /*return*/, {
|
|
579
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
580
|
+
options: localVarRequestOptions,
|
|
581
|
+
}];
|
|
477
582
|
}
|
|
478
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
479
|
-
localVarHeaderParameter = {};
|
|
480
|
-
localVarQueryParameter = {};
|
|
481
|
-
// authentication Basic required
|
|
482
|
-
// http basic authentication required
|
|
483
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
484
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
485
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
486
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
487
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
488
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(webhookSubscriptionRequestSchema, localVarRequestOptions, configuration);
|
|
489
|
-
return [2 /*return*/, {
|
|
490
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
491
|
-
options: localVarRequestOptions,
|
|
492
|
-
}];
|
|
493
583
|
});
|
|
494
584
|
});
|
|
495
585
|
},
|