bandwidth-sdk 7.0.0 → 7.1.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 +3 -1
- package/.github/workflows/test-pr.yml +3 -1
- package/.github/workflows/test-smoke.yml +4 -2
- package/.openapi-generator/FILES +22 -6
- package/README.md +21 -5
- 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 +85 -22
- package/common.ts +3 -1
- package/configuration.ts +44 -2
- package/coverage/clover.xml +1139 -1065
- package/coverage/coverage-final.json +14 -14
- package/coverage/lcov-report/index.html +32 -32
- 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 +70 -70
- 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 +77 -65
- 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 +45 -39
- package/coverage/lcov-report/node-sdk/configuration.ts.html +140 -14
- 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 +5 -5
- package/coverage/lcov-report/node-sdk/models/index.ts.html +31 -7
- 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/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 +2834 -2739
- 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 +5 -2
- 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 +11 -3
- package/dist/models/index.js +11 -3
- package/dist/models/multi-channel-action.d.ts +48 -21
- package/dist/models/{multi-channel-message-response-data-channel-list-inner.d.ts → multi-channel-channel-list-mmsobject.d.ts} +3 -3
- package/dist/models/multi-channel-channel-list-mmsresponse-object.d.ts +17 -0
- package/dist/models/{multi-channel-channel-list-object.d.ts → multi-channel-channel-list-object-base.d.ts} +1 -3
- package/dist/models/multi-channel-channel-list-owner-object.d.ts +17 -0
- package/dist/models/multi-channel-channel-list-owner-object.js +15 -0
- package/dist/models/{multi-channel-channel-list-object-content.d.ts → multi-channel-channel-list-rbmobject-all-of-content.d.ts} +2 -4
- package/dist/models/multi-channel-channel-list-rbmobject-all-of-content.js +15 -0
- package/dist/models/multi-channel-channel-list-rbmobject.d.ts +16 -0
- package/dist/models/multi-channel-channel-list-rbmobject.js +15 -0
- package/dist/models/multi-channel-channel-list-rbmresponse-object.d.ts +17 -0
- package/dist/models/multi-channel-channel-list-rbmresponse-object.js +15 -0
- package/dist/models/multi-channel-channel-list-request-object.d.ts +25 -0
- package/dist/models/multi-channel-channel-list-request-object.js +15 -0
- package/dist/models/multi-channel-channel-list-response-object.d.ts +29 -0
- package/dist/models/multi-channel-channel-list-response-object.js +15 -0
- package/dist/models/multi-channel-channel-list-smsobject.d.ts +16 -0
- package/dist/models/multi-channel-channel-list-smsobject.js +15 -0
- package/dist/models/multi-channel-channel-list-smsresponse-object.d.ts +17 -0
- package/dist/models/multi-channel-channel-list-smsresponse-object.js +15 -0
- package/dist/models/multi-channel-message-request.d.ts +2 -2
- package/dist/models/multi-channel-message-response-data.d.ts +2 -2
- 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/MultiChannelApi.md +1 -1
- package/docs/{MultiChannelChannelListObject.md → MultiChannelChannelListMMSObject.md} +4 -4
- package/docs/{MultiChannelMessageResponseDataChannelListInner.md → MultiChannelChannelListMMSResponseObject.md} +4 -4
- package/docs/MultiChannelChannelListObjectBase.md +24 -0
- package/docs/MultiChannelChannelListOwnerObject.md +20 -0
- package/docs/MultiChannelChannelListRBMObject.md +26 -0
- package/docs/{MultiChannelChannelListObjectContent.md → MultiChannelChannelListRBMObjectAllOfContent.md} +5 -5
- package/docs/MultiChannelChannelListRBMResponseObject.md +28 -0
- package/docs/MultiChannelChannelListRequestObject.md +26 -0
- package/docs/MultiChannelChannelListResponseObject.md +28 -0
- package/docs/MultiChannelChannelListSMSObject.md +26 -0
- package/docs/MultiChannelChannelListSMSResponseObject.md +28 -0
- package/docs/MultiChannelMessageRequest.md +1 -1
- package/docs/MultiChannelMessageResponseData.md +1 -1
- package/docs/PhoneNumberLookupApi.md +3 -3
- package/docs/RecordingsApi.md +10 -10
- package/docs/StatisticsApi.md +1 -1
- package/docs/TollFreeVerificationApi.md +9 -9
- package/docs/TranscriptionsApi.md +3 -3
- package/jest.config.js +2 -0
- package/models/index.ts +11 -3
- package/models/multi-channel-action.ts +48 -4
- package/models/{multi-channel-message-response-data-channel-list-inner.ts → multi-channel-channel-list-mmsobject.ts} +4 -4
- package/models/multi-channel-channel-list-mmsresponse-object.ts +34 -0
- package/models/{multi-channel-channel-list-object.ts → multi-channel-channel-list-object-base.ts} +1 -5
- package/models/multi-channel-channel-list-owner-object.ts +23 -0
- package/models/{multi-channel-channel-list-object-content.ts → multi-channel-channel-list-rbmobject-all-of-content.ts} +5 -11
- package/models/multi-channel-channel-list-rbmobject.ts +31 -0
- package/models/multi-channel-channel-list-rbmresponse-object.ts +34 -0
- package/models/multi-channel-channel-list-request-object.ts +46 -0
- package/models/multi-channel-channel-list-response-object.ts +50 -0
- package/models/multi-channel-channel-list-smsobject.ts +31 -0
- package/models/multi-channel-channel-list-smsresponse-object.ts +34 -0
- package/models/multi-channel-message-request.ts +2 -2
- package/models/multi-channel-message-response-data.ts +2 -2
- package/package.json +6 -3
- 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/multi-channel-api.test.ts +117 -10
- package/tests/smoke/phone-number-lookup-api.test.ts +4 -4
- 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/multi-channel-api.test.ts +27 -10
- /package/dist/models/{multi-channel-channel-list-object-content.js → multi-channel-channel-list-mmsobject.js} +0 -0
- /package/dist/models/{multi-channel-channel-list-object.js → multi-channel-channel-list-mmsresponse-object.js} +0 -0
- /package/dist/models/{multi-channel-message-response-data-channel-list-inner.js → multi-channel-channel-list-object-base.js} +0 -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
|
},
|