bandwidth-sdk 8.1.0 → 8.1.2
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/bandwidth.yml +44 -24
- package/configuration.ts +1 -1
- package/coverage/clover.xml +69 -69
- package/coverage/coverage-final.json +37 -37
- package/coverage/lcov-report/index.html +15 -15
- 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/endpoints-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/multi-channel-api.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/api/toll-free-verification-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +1 -1
- 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 +2 -2
- package/coverage/lcov-report/node-sdk/configuration.ts.html +47 -47
- package/coverage/lcov-report/node-sdk/index.html +16 -16
- package/coverage/lcov-report/node-sdk/models/business-entity-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +2 -2
- 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/Connect.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/Endpoint.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 +2 -2
- package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/card-width-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/completed-lookup-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/deactivation-event-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/device-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/endpoint-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/endpoint-event-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/endpoint-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/endpoint-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/in-progress-lookup-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/inbound-callback-type-enum.ts.html +2 -2
- 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/latest-message-delivery-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/line-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/multi-channel-message-channel-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +2 -2
- 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 +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-media-height-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-open-url-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-web-view-enum.ts.html +3 -3
- package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/standalone-card-orientation-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/status-callback-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +3 -3
- package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +2 -2
- package/coverage/lcov.info +89 -89
- package/dist/configuration.js +1 -1
- package/dist/models/multi-channel-action-calendar-event.d.ts +2 -2
- package/dist/models/multi-channel-action.d.ts +5 -5
- package/dist/models/rbm-action-open-url.d.ts +1 -1
- package/dist/models/rbm-action-view-location.d.ts +2 -2
- package/dist/models/rbm-card-content.d.ts +3 -0
- package/dist/models/rbm-standalone-card.d.ts +1 -1
- package/dist/models/rbm-web-view-enum.d.ts +1 -1
- package/dist/models/rbm-web-view-enum.js +1 -1
- package/dist/models/sync-lookup-request.d.ts +4 -0
- package/dist/models/thumbnail-alignment-enum.d.ts +1 -1
- package/dist/models/thumbnail-alignment-enum.js +1 -1
- package/docs/MultiChannelAction.md +5 -5
- package/docs/MultiChannelActionCalendarEvent.md +2 -2
- package/docs/MultiChannelChannelListRBMObjectAllOfContent.md +1 -1
- package/docs/RbmActionOpenUrl.md +1 -1
- package/docs/RbmActionViewLocation.md +2 -2
- package/docs/RbmCardContent.md +1 -0
- package/docs/RbmMessageContentRichCard.md +1 -1
- package/docs/RbmStandaloneCard.md +1 -1
- package/docs/RbmWebViewEnum.md +1 -1
- package/docs/SyncLookupRequest.md +2 -0
- package/docs/ThumbnailAlignmentEnum.md +1 -1
- package/jest.config.js +3 -0
- package/models/multi-channel-action-calendar-event.ts +2 -2
- package/models/multi-channel-action.ts +5 -5
- package/models/rbm-action-open-url.ts +1 -1
- package/models/rbm-action-view-location.ts +2 -2
- package/models/rbm-card-content.ts +3 -0
- package/models/rbm-standalone-card.ts +1 -1
- package/models/rbm-web-view-enum.ts +1 -1
- package/models/sync-lookup-request.ts +4 -0
- package/models/thumbnail-alignment-enum.ts +1 -1
- package/package.json +1 -1
- package/tests/globals.d.ts +23 -0
- package/tests/tsconfig.json +9 -0
- package/tests/unit/api/calls-api.test.ts +11 -4
- package/tests/unit/api/conferences-api.test.ts +0 -1
- package/tests/unit/api/endpoints-api.test.ts +10 -6
- package/tests/unit/api/media-api.test.ts +1 -1
- package/tests/unit/api/messages-api.test.ts +13 -4
- package/tests/unit/api/mfaapi.test.ts +6 -2
- package/tests/unit/api/phone-number-lookup-api.test.ts +34 -32
- package/tests/unit/api/recordings-api.test.ts +9 -4
- package/tests/unit/api/statistics-api.test.ts +5 -2
- package/tests/unit/api/toll-free-verification-api.test.ts +25 -17
- package/tests/unit/api/transcriptions-api.test.ts +0 -1
- package/tests/unit/configuration.test.ts +84 -0
- package/tests/unit/models/account-statistics.test.ts +13 -0
- package/tests/unit/models/additional-denial-reason.test.ts +15 -0
- package/tests/unit/models/address.test.ts +23 -0
- package/tests/unit/models/answer-callback.test.ts +39 -0
- package/tests/unit/models/async-lookup-request.test.ts +11 -0
- package/tests/unit/models/blocked-webhook.test.ts +22 -0
- package/tests/unit/models/bridge-complete-callback.test.ts +42 -0
- package/tests/unit/models/bridge-target-complete-callback.test.ts +36 -0
- package/tests/unit/models/business-entity-type-enum.test.ts +7 -0
- package/tests/unit/models/business-registration-type-enum.test.ts +20 -0
- package/tests/unit/models/call-direction-enum.test.ts +4 -0
- package/tests/unit/models/call-recording-metadata.test.ts +50 -0
- package/tests/unit/models/call-state-enum.test.ts +4 -0
- package/tests/unit/models/call-state.test.ts +46 -0
- package/tests/unit/models/call-transcription-detected-language-enum.test.ts +5 -0
- package/tests/unit/models/call-transcription-metadata.test.ts +15 -0
- package/tests/unit/models/call-transcription-response.test.ts +17 -0
- package/tests/unit/models/call-transcription-track-enum.test.ts +4 -0
- package/tests/unit/models/call-transcription.test.ts +19 -0
- package/tests/unit/models/callback-method-enum.test.ts +4 -0
- package/tests/unit/models/card-width-enum.test.ts +4 -0
- package/tests/unit/models/code-request.test.ts +21 -0
- package/tests/unit/models/completed-lookup-status-enum.test.ts +5 -0
- package/tests/unit/models/conference-completed-callback.test.ts +19 -0
- package/tests/unit/models/conference-created-callback.test.ts +19 -0
- package/tests/unit/models/conference-member-exit-callback.test.ts +25 -0
- package/tests/unit/models/conference-member-join-callback.test.ts +25 -0
- package/tests/unit/models/conference-member.test.ts +21 -0
- package/tests/unit/models/conference-recording-available-callback.test.ts +38 -0
- package/tests/unit/models/conference-recording-metadata.test.ts +34 -0
- package/tests/unit/models/conference-redirect-callback.test.ts +19 -0
- package/tests/unit/models/conference-state-enum.test.ts +4 -0
- package/tests/unit/models/conference.test.ts +26 -0
- package/tests/unit/models/contact.test.ts +17 -0
- package/tests/unit/models/create-async-bulk-lookup-response-data.test.ts +14 -0
- package/tests/unit/models/create-async-bulk-lookup-response.test.ts +16 -0
- package/tests/unit/models/create-call-response.test.ts +52 -0
- package/tests/unit/models/create-call.test.ts +53 -0
- package/tests/unit/models/create-endpoint-response-data.test.ts +2 -4
- package/tests/unit/models/create-endpoint-response.test.ts +4 -4
- package/tests/unit/models/create-message-request-error.test.ts +15 -0
- package/tests/unit/models/create-multi-channel-message-response.test.ts +16 -0
- package/tests/unit/models/create-sync-lookup-response-data.test.ts +16 -0
- package/tests/unit/models/create-sync-lookup-response.test.ts +16 -0
- package/tests/unit/models/deactivation-event-enum.test.ts +3 -0
- package/tests/unit/models/device.test.ts +1 -2
- package/tests/unit/models/disconnect-callback.test.ts +44 -0
- package/tests/unit/models/diversion.test.ts +23 -0
- package/tests/unit/models/dtmf-callback.test.ts +44 -0
- package/tests/unit/models/endpoint-event.test.ts +5 -7
- package/tests/unit/models/endpoint-response.test.ts +2 -2
- package/tests/unit/models/endpoint.test.ts +2 -4
- package/tests/unit/models/endpoints.test.ts +4 -6
- package/tests/unit/models/error-object.test.ts +16 -0
- package/tests/unit/models/error-source.test.ts +17 -0
- package/tests/unit/models/failure-webhook.test.ts +21 -0
- package/tests/unit/models/field-error.test.ts +13 -0
- package/tests/unit/models/file-format-enum.test.ts +4 -0
- package/tests/unit/models/gather-callback.test.ts +46 -0
- package/tests/unit/models/get-async-bulk-lookup-response-data.test.ts +16 -0
- package/tests/unit/models/get-async-bulk-lookup-response.test.ts +16 -0
- package/tests/unit/models/in-progress-lookup-status-enum.test.ts +6 -0
- package/tests/unit/models/inbound-callback-message.test.ts +48 -0
- package/tests/unit/models/inbound-callback-type-enum.test.ts +5 -0
- package/tests/unit/models/inbound-callback.test.ts +23 -0
- package/tests/unit/models/initiate-callback.test.ts +38 -0
- package/tests/unit/models/latest-message-delivery-status-enum.test.ts +6 -0
- package/tests/unit/models/line-type-enum.test.ts +6 -0
- package/tests/unit/models/link-schema.test.ts +15 -0
- package/tests/unit/models/link.test.ts +13 -0
- package/tests/unit/models/links-object.test.ts +17 -0
- package/tests/unit/models/list-endpoints-response.test.ts +2 -4
- package/tests/unit/models/list-message-direction-enum.test.ts +4 -0
- package/tests/unit/models/list-message-item.test.ts +58 -0
- package/tests/unit/models/lookup-error-response.test.ts +13 -0
- package/tests/unit/models/lookup-error-schema-meta.test.ts +15 -0
- package/tests/unit/models/lookup-error-schema.test.ts +18 -0
- package/tests/unit/models/lookup-result.test.ts +36 -0
- package/tests/unit/models/machine-detection-complete-callback.test.ts +39 -0
- package/tests/unit/models/machine-detection-configuration.test.ts +41 -0
- package/tests/unit/models/machine-detection-mode-enum.test.ts +4 -0
- package/tests/unit/models/machine-detection-result.test.ts +13 -0
- package/tests/unit/models/media.test.ts +15 -0
- package/tests/unit/models/message-direction-enum.test.ts +4 -0
- package/tests/unit/models/message-request.test.ts +27 -0
- package/tests/unit/models/message-status-enum.test.ts +10 -0
- package/tests/unit/models/message-type-enum.test.ts +5 -0
- package/tests/unit/models/message.test.ts +39 -0
- package/tests/unit/models/messages-list.test.ts +16 -0
- package/tests/unit/models/messaging-code-response.test.ts +11 -0
- package/tests/unit/models/messaging-request-error.test.ts +13 -0
- package/tests/unit/models/mfa-forbidden-request-error.test.ts +11 -0
- package/tests/unit/models/mfa-request-error.test.ts +13 -0
- package/tests/unit/models/mfa-unauthorized-request-error.test.ts +11 -0
- package/tests/unit/models/mms-message-content-file.test.ts +11 -0
- package/tests/unit/models/mms-message-content.test.ts +13 -0
- package/tests/unit/models/multi-channel-action-calendar-event.test.ts +24 -0
- package/tests/unit/models/multi-channel-action.test.ts +40 -0
- package/tests/unit/models/multi-channel-channel-list-mmsobject.test.ts +19 -0
- package/tests/unit/models/multi-channel-channel-list-mmsresponse-object.test.ts +21 -0
- package/tests/unit/models/multi-channel-channel-list-object-base.test.ts +16 -0
- package/tests/unit/models/multi-channel-channel-list-owner-object.test.ts +11 -0
- package/tests/unit/models/multi-channel-channel-list-rbmobject.test.ts +19 -0
- package/tests/unit/models/multi-channel-channel-list-rbmresponse-object.test.ts +21 -0
- package/tests/unit/models/multi-channel-channel-list-request-object.test.ts +19 -0
- package/tests/unit/models/multi-channel-channel-list-response-object.test.ts +21 -0
- package/tests/unit/models/multi-channel-channel-list-smsobject.test.ts +19 -0
- package/tests/unit/models/multi-channel-channel-list-smsresponse-object.test.ts +21 -0
- package/tests/unit/models/multi-channel-error.test.ts +13 -0
- package/tests/unit/models/multi-channel-message-channel-enum.test.ts +5 -0
- package/tests/unit/models/multi-channel-message-content.test.ts +14 -0
- package/tests/unit/models/multi-channel-message-request.test.ts +20 -0
- package/tests/unit/models/multi-channel-message-response-data.test.ts +28 -0
- package/tests/unit/models/opt-in-workflow.test.ts +15 -0
- package/tests/unit/models/page-info.test.ts +17 -0
- package/tests/unit/models/priority-enum.test.ts +4 -0
- package/tests/unit/models/product-type-enum.test.ts +11 -0
- package/tests/unit/models/rbm-action-base.test.ts +16 -0
- package/tests/unit/models/rbm-action-dial.test.ts +18 -0
- package/tests/unit/models/rbm-action-open-url.test.ts +24 -0
- package/tests/unit/models/rbm-action-type-enum.test.ts +8 -0
- package/tests/unit/models/rbm-action-view-location.test.ts +22 -0
- package/tests/unit/models/rbm-card-content-media.test.ts +16 -0
- package/tests/unit/models/rbm-card-content.test.ts +18 -0
- package/tests/unit/models/rbm-location-response.test.ts +13 -0
- package/tests/unit/models/rbm-media-height-enum.test.ts +5 -0
- package/tests/unit/models/rbm-message-carousel-card.test.ts +16 -0
- package/tests/unit/models/rbm-message-content-file.test.ts +13 -0
- package/tests/unit/models/rbm-message-content-text.test.ts +13 -0
- package/tests/unit/models/rbm-message-media.test.ts +13 -0
- package/tests/unit/models/rbm-open-url-enum.test.ts +4 -0
- package/tests/unit/models/rbm-standalone-card.test.ts +20 -0
- package/tests/unit/models/rbm-suggestion-response.test.ts +13 -0
- package/tests/unit/models/rbm-veb-view-enum.test.ts +5 -0
- package/tests/unit/models/recording-available-callback.test.ts +55 -0
- package/tests/unit/models/recording-complete-callback.test.ts +55 -0
- package/tests/unit/models/recording-state-enum.test.ts +4 -0
- package/tests/unit/models/recording-transcription-metadata.test.ts +17 -0
- package/tests/unit/models/recording-transcriptions.test.ts +11 -0
- package/tests/unit/models/redirect-callback.test.ts +42 -0
- package/tests/unit/models/redirect-method-enum.test.ts +4 -0
- package/tests/unit/models/sms-message-content.test.ts +11 -0
- package/tests/unit/models/standalone-card-orientation-enum.test.ts +4 -0
- package/tests/unit/models/status-callback-message.test.ts +39 -0
- package/tests/unit/models/status-callback-type-enum.test.ts +6 -0
- package/tests/unit/models/status-callback.test.ts +27 -0
- package/tests/unit/models/stir-shaken.test.ts +15 -0
- package/tests/unit/models/sync-lookup-request.test.ts +13 -0
- package/tests/unit/models/telephone-number.test.ts +11 -0
- package/tests/unit/models/tfv-basic-authentication.test.ts +13 -0
- package/tests/unit/models/tfv-callback-status-enum.test.ts +4 -0
- package/tests/unit/models/tfv-error.test.ts +13 -0
- package/tests/unit/models/tfv-status-enum.test.ts +5 -0
- package/tests/unit/models/tfv-status.test.ts +33 -0
- package/tests/unit/models/tfv-submission-info.test.ts +46 -0
- package/tests/unit/models/tfv-submission-wrapper.test.ts +12 -0
- package/tests/unit/models/thumbnail-alignment-enum.test.ts +4 -0
- package/tests/unit/models/transcribe-recording.test.ts +24 -0
- package/tests/unit/models/transcription-available-callback.test.ts +54 -0
- package/tests/unit/models/transcription.test.ts +13 -0
- package/tests/unit/models/transfer-answer-callback.test.ts +40 -0
- package/tests/unit/models/transfer-complete-callback.test.ts +46 -0
- package/tests/unit/models/transfer-disconnect-callback.test.ts +50 -0
- package/tests/unit/models/update-call-recording.test.ts +12 -0
- package/tests/unit/models/update-call.test.ts +31 -0
- package/tests/unit/models/update-conference-member.test.ts +15 -0
- package/tests/unit/models/update-conference.test.ts +29 -0
- package/tests/unit/models/verification-denial-webhook.test.ts +29 -0
- package/tests/unit/models/verification-request.test.ts +54 -0
- package/tests/unit/models/verification-update-request.test.ts +52 -0
- package/tests/unit/models/verification-webhook.test.ts +18 -0
- package/tests/unit/models/verify-code-request.test.ts +17 -0
- package/tests/unit/models/verify-code-response.test.ts +11 -0
- package/tests/unit/models/voice-api-error.test.ts +15 -0
- package/tests/unit/models/voice-code-response.test.ts +11 -0
- package/tests/unit/models/webhook-subscription-basic-authentication.test.ts +13 -0
- package/tests/unit/models/webhook-subscription-error.test.ts +15 -0
- package/tests/unit/models/webhook-subscription-request-schema.test.ts +16 -0
- package/tests/unit/models/webhook-subscription-type-enum.test.ts +4 -0
- package/tests/unit/models/webhook-subscription.test.ts +25 -0
- package/tests/unit/models/webhook-subscriptions-list-body.test.ts +16 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { MultiChannelMessageResponseData } from '../../../models/multi-channel-message-response-data';
|
|
2
|
+
import { MessageDirectionEnum } from '../../../models/message-direction-enum';
|
|
3
|
+
import { PriorityEnum } from '../../../models/priority-enum';
|
|
4
|
+
|
|
5
|
+
describe('MultiChannelMessageResponseData', () => {
|
|
6
|
+
test('should accept the expected shape', () => {
|
|
7
|
+
const fixture: MultiChannelMessageResponseData = {
|
|
8
|
+
id: 'test-id',
|
|
9
|
+
time: 'test-time',
|
|
10
|
+
direction: MessageDirectionEnum.In,
|
|
11
|
+
// @ts-expect-error SWI-11047: typed as Set<T> but runtime is Array<T>
|
|
12
|
+
to: [],
|
|
13
|
+
channelList: [],
|
|
14
|
+
tag: 'test-tag',
|
|
15
|
+
priority: PriorityEnum.Default,
|
|
16
|
+
expiration: 'test-expiration',
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
expect(fixture.id).toBe('test-id');
|
|
20
|
+
expect(fixture.time).toBe('test-time');
|
|
21
|
+
expect(fixture.direction).toBe(MessageDirectionEnum.In);
|
|
22
|
+
expect(fixture.to).toEqual([]);
|
|
23
|
+
expect(fixture.channelList).toEqual([]);
|
|
24
|
+
expect(fixture.tag).toBe('test-tag');
|
|
25
|
+
expect(fixture.priority).toBe(PriorityEnum.Default);
|
|
26
|
+
expect(fixture.expiration).toBe('test-expiration');
|
|
27
|
+
});
|
|
28
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OptInWorkflow } from '../../../models/opt-in-workflow';
|
|
2
|
+
|
|
3
|
+
describe('OptInWorkflow', () => {
|
|
4
|
+
test('should accept the expected shape', () => {
|
|
5
|
+
const fixture: OptInWorkflow = {
|
|
6
|
+
description: 'test-description',
|
|
7
|
+
imageUrls: [],
|
|
8
|
+
confirmationResponse: 'test-confirmationResponse',
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
expect(fixture.description).toBe('test-description');
|
|
12
|
+
expect(fixture.imageUrls).toEqual([]);
|
|
13
|
+
expect(fixture.confirmationResponse).toBe('test-confirmationResponse');
|
|
14
|
+
});
|
|
15
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PageInfo } from '../../../models/page-info';
|
|
2
|
+
|
|
3
|
+
describe('PageInfo', () => {
|
|
4
|
+
test('should accept the expected shape', () => {
|
|
5
|
+
const fixture: PageInfo = {
|
|
6
|
+
prevPage: 'test-prevPage',
|
|
7
|
+
nextPage: 'test-nextPage',
|
|
8
|
+
prevPageToken: 'test-prevPageToken',
|
|
9
|
+
nextPageToken: 'test-nextPageToken',
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
expect(fixture.prevPage).toBe('test-prevPage');
|
|
13
|
+
expect(fixture.nextPage).toBe('test-nextPage');
|
|
14
|
+
expect(fixture.prevPageToken).toBe('test-prevPageToken');
|
|
15
|
+
expect(fixture.nextPageToken).toBe('test-nextPageToken');
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -11,5 +11,16 @@ describe('ProductTypeEnum', () => {
|
|
|
11
11
|
expect(ProductTypeEnum.RbmMedia).toBe('RBM_MEDIA');
|
|
12
12
|
expect(ProductTypeEnum.RbmRich).toBe('RBM_RICH');
|
|
13
13
|
expect(ProductTypeEnum.RbmConversational).toBe('RBM_CONVERSATIONAL');
|
|
14
|
+
expect(Object.values(ProductTypeEnum)).toEqual([
|
|
15
|
+
'LOCAL_A2P',
|
|
16
|
+
'P2P',
|
|
17
|
+
'SHORT_CODE_REACH',
|
|
18
|
+
'TOLL_FREE',
|
|
19
|
+
'HOSTED_SHORT_CODE',
|
|
20
|
+
'ALPHA_NUMERIC',
|
|
21
|
+
'RBM_MEDIA',
|
|
22
|
+
'RBM_RICH',
|
|
23
|
+
'RBM_CONVERSATIONAL'
|
|
24
|
+
]);
|
|
14
25
|
});
|
|
15
26
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RbmActionBase } from '../../../models/rbm-action-base';
|
|
2
|
+
import { RbmActionTypeEnum } from '../../../models/rbm-action-type-enum';
|
|
3
|
+
|
|
4
|
+
describe('RbmActionBase', () => {
|
|
5
|
+
test('should accept the expected shape', () => {
|
|
6
|
+
const fixture: RbmActionBase = {
|
|
7
|
+
type: RbmActionTypeEnum.Reply,
|
|
8
|
+
text: 'test-text',
|
|
9
|
+
postbackData: 'test-postbackData',
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
expect(fixture.type).toBe(RbmActionTypeEnum.Reply);
|
|
13
|
+
expect(fixture.text).toBe('test-text');
|
|
14
|
+
expect(fixture.postbackData).toBe('test-postbackData');
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RbmActionDial } from '../../../models/rbm-action-dial';
|
|
2
|
+
import { RbmActionTypeEnum } from '../../../models/rbm-action-type-enum';
|
|
3
|
+
|
|
4
|
+
describe('RbmActionDial', () => {
|
|
5
|
+
test('should accept the expected shape', () => {
|
|
6
|
+
const fixture: RbmActionDial = {
|
|
7
|
+
type: RbmActionTypeEnum.Reply,
|
|
8
|
+
text: 'test-text',
|
|
9
|
+
postbackData: 'test-postbackData',
|
|
10
|
+
phoneNumber: 'test-phoneNumber',
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
expect(fixture.type).toBe(RbmActionTypeEnum.Reply);
|
|
14
|
+
expect(fixture.text).toBe('test-text');
|
|
15
|
+
expect(fixture.postbackData).toBe('test-postbackData');
|
|
16
|
+
expect(fixture.phoneNumber).toBe('test-phoneNumber');
|
|
17
|
+
});
|
|
18
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { RbmActionOpenUrl } from '../../../models/rbm-action-open-url';
|
|
2
|
+
import { RbmActionTypeEnum } from '../../../models/rbm-action-type-enum';
|
|
3
|
+
import { RbmOpenUrlEnum } from '../../../models/rbm-open-url-enum';
|
|
4
|
+
import { RbmWebViewEnum } from '../../../models/rbm-web-view-enum';
|
|
5
|
+
|
|
6
|
+
describe('RbmActionOpenUrl', () => {
|
|
7
|
+
test('should accept the expected shape', () => {
|
|
8
|
+
const fixture: RbmActionOpenUrl = {
|
|
9
|
+
type: RbmActionTypeEnum.Reply,
|
|
10
|
+
text: 'test-text',
|
|
11
|
+
postbackData: 'test-postbackData',
|
|
12
|
+
url: 'test-url',
|
|
13
|
+
application: RbmOpenUrlEnum.Browser,
|
|
14
|
+
webviewViewMode: RbmWebViewEnum.Full,
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
expect(fixture.type).toBe(RbmActionTypeEnum.Reply);
|
|
18
|
+
expect(fixture.text).toBe('test-text');
|
|
19
|
+
expect(fixture.postbackData).toBe('test-postbackData');
|
|
20
|
+
expect(fixture.url).toBe('test-url');
|
|
21
|
+
expect(fixture.application).toBe(RbmOpenUrlEnum.Browser);
|
|
22
|
+
expect(fixture.webviewViewMode).toBe(RbmWebViewEnum.Full);
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -8,5 +8,13 @@ describe('RbmActionTypeEnum', () => {
|
|
|
8
8
|
expect(RbmActionTypeEnum.CreateCalendarEvent).toBe('CREATE_CALENDAR_EVENT');
|
|
9
9
|
expect(RbmActionTypeEnum.OpenUrl).toBe('OPEN_URL');
|
|
10
10
|
expect(RbmActionTypeEnum.RequestLocation).toBe('REQUEST_LOCATION');
|
|
11
|
+
expect(Object.values(RbmActionTypeEnum)).toEqual([
|
|
12
|
+
'REPLY',
|
|
13
|
+
'DIAL_PHONE',
|
|
14
|
+
'SHOW_LOCATION',
|
|
15
|
+
'CREATE_CALENDAR_EVENT',
|
|
16
|
+
'OPEN_URL',
|
|
17
|
+
'REQUEST_LOCATION'
|
|
18
|
+
]);
|
|
11
19
|
});
|
|
12
20
|
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RbmActionViewLocation } from '../../../models/rbm-action-view-location';
|
|
2
|
+
import { RbmActionTypeEnum } from '../../../models/rbm-action-type-enum';
|
|
3
|
+
|
|
4
|
+
describe('RbmActionViewLocation', () => {
|
|
5
|
+
test('should accept the expected shape', () => {
|
|
6
|
+
const fixture: RbmActionViewLocation = {
|
|
7
|
+
type: RbmActionTypeEnum.Reply,
|
|
8
|
+
text: 'test-text',
|
|
9
|
+
postbackData: 'test-postbackData',
|
|
10
|
+
latitude: 1.5,
|
|
11
|
+
longitude: 1.5,
|
|
12
|
+
label: 'test-label',
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
expect(fixture.type).toBe(RbmActionTypeEnum.Reply);
|
|
16
|
+
expect(fixture.text).toBe('test-text');
|
|
17
|
+
expect(fixture.postbackData).toBe('test-postbackData');
|
|
18
|
+
expect(fixture.latitude).toBe(1.5);
|
|
19
|
+
expect(fixture.longitude).toBe(1.5);
|
|
20
|
+
expect(fixture.label).toBe('test-label');
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RbmCardContentMedia } from '../../../models/rbm-card-content-media';
|
|
2
|
+
import { RbmMediaHeightEnum } from '../../../models/rbm-media-height-enum';
|
|
3
|
+
|
|
4
|
+
describe('RbmCardContentMedia', () => {
|
|
5
|
+
test('should accept the expected shape', () => {
|
|
6
|
+
const fixture: RbmCardContentMedia = {
|
|
7
|
+
fileUrl: 'test-fileUrl',
|
|
8
|
+
thumbnailUrl: 'test-thumbnailUrl',
|
|
9
|
+
height: RbmMediaHeightEnum.Short,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
expect(fixture.fileUrl).toBe('test-fileUrl');
|
|
13
|
+
expect(fixture.thumbnailUrl).toBe('test-thumbnailUrl');
|
|
14
|
+
expect(fixture.height).toBe(RbmMediaHeightEnum.Short);
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RbmCardContent } from '../../../models/rbm-card-content';
|
|
2
|
+
import { RbmCardContentMedia } from '../../../models/rbm-card-content-media';
|
|
3
|
+
|
|
4
|
+
describe('RbmCardContent', () => {
|
|
5
|
+
test('should accept the expected shape', () => {
|
|
6
|
+
const fixture: RbmCardContent = {
|
|
7
|
+
title: 'test-title',
|
|
8
|
+
description: 'test-description',
|
|
9
|
+
media: {} as unknown as RbmCardContentMedia,
|
|
10
|
+
suggestions: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
expect(fixture.title).toBe('test-title');
|
|
14
|
+
expect(fixture.description).toBe('test-description');
|
|
15
|
+
expect(fixture.media).toBeDefined();
|
|
16
|
+
expect(fixture.suggestions).toEqual([]);
|
|
17
|
+
});
|
|
18
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RbmLocationResponse } from '../../../models/rbm-location-response';
|
|
2
|
+
|
|
3
|
+
describe('RbmLocationResponse', () => {
|
|
4
|
+
test('should accept the expected shape', () => {
|
|
5
|
+
const fixture: RbmLocationResponse = {
|
|
6
|
+
latitude: 1.5,
|
|
7
|
+
longitude: 1.5,
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
expect(fixture.latitude).toBe(1.5);
|
|
11
|
+
expect(fixture.longitude).toBe(1.5);
|
|
12
|
+
});
|
|
13
|
+
});
|
|
@@ -5,5 +5,10 @@ describe('RbmMediaHeightEnum', () => {
|
|
|
5
5
|
expect(RbmMediaHeightEnum.Short).toBe('SHORT');
|
|
6
6
|
expect(RbmMediaHeightEnum.Medium).toBe('MEDIUM');
|
|
7
7
|
expect(RbmMediaHeightEnum.Tall).toBe('TALL');
|
|
8
|
+
expect(Object.values(RbmMediaHeightEnum)).toEqual([
|
|
9
|
+
'SHORT',
|
|
10
|
+
'MEDIUM',
|
|
11
|
+
'TALL'
|
|
12
|
+
]);
|
|
8
13
|
});
|
|
9
14
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RbmMessageCarouselCard } from '../../../models/rbm-message-carousel-card';
|
|
2
|
+
import { CardWidthEnum } from '../../../models/card-width-enum';
|
|
3
|
+
|
|
4
|
+
describe('RbmMessageCarouselCard', () => {
|
|
5
|
+
test('should accept the expected shape', () => {
|
|
6
|
+
const fixture: RbmMessageCarouselCard = {
|
|
7
|
+
cardWidth: CardWidthEnum.Small,
|
|
8
|
+
cardContents: [],
|
|
9
|
+
suggestions: [],
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
expect(fixture.cardWidth).toBe(CardWidthEnum.Small);
|
|
13
|
+
expect(fixture.cardContents).toEqual([]);
|
|
14
|
+
expect(fixture.suggestions).toEqual([]);
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RbmMessageContentFile } from '../../../models/rbm-message-content-file';
|
|
2
|
+
|
|
3
|
+
describe('RbmMessageContentFile', () => {
|
|
4
|
+
test('should accept the expected shape', () => {
|
|
5
|
+
const fixture: RbmMessageContentFile = {
|
|
6
|
+
fileUrl: 'test-fileUrl',
|
|
7
|
+
thumbnailUrl: 'test-thumbnailUrl',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
expect(fixture.fileUrl).toBe('test-fileUrl');
|
|
11
|
+
expect(fixture.thumbnailUrl).toBe('test-thumbnailUrl');
|
|
12
|
+
});
|
|
13
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RbmMessageContentText } from '../../../models/rbm-message-content-text';
|
|
2
|
+
|
|
3
|
+
describe('RbmMessageContentText', () => {
|
|
4
|
+
test('should accept the expected shape', () => {
|
|
5
|
+
const fixture: RbmMessageContentText = {
|
|
6
|
+
text: 'test-text',
|
|
7
|
+
suggestions: [],
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
expect(fixture.text).toBe('test-text');
|
|
11
|
+
expect(fixture.suggestions).toEqual([]);
|
|
12
|
+
});
|
|
13
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RbmMessageMedia } from '../../../models/rbm-message-media';
|
|
2
|
+
|
|
3
|
+
describe('RbmMessageMedia', () => {
|
|
4
|
+
test('should accept the expected shape', () => {
|
|
5
|
+
const fixture: RbmMessageMedia = {
|
|
6
|
+
media: [],
|
|
7
|
+
suggestions: [],
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
expect(fixture.media).toEqual([]);
|
|
11
|
+
expect(fixture.suggestions).toEqual([]);
|
|
12
|
+
});
|
|
13
|
+
});
|
|
@@ -4,5 +4,9 @@ describe('RbmOpenUrlEnum', () => {
|
|
|
4
4
|
test('should define the expected values', () => {
|
|
5
5
|
expect(RbmOpenUrlEnum.Browser).toBe('BROWSER');
|
|
6
6
|
expect(RbmOpenUrlEnum.Webview).toBe('WEBVIEW');
|
|
7
|
+
expect(Object.values(RbmOpenUrlEnum)).toEqual([
|
|
8
|
+
'BROWSER',
|
|
9
|
+
'WEBVIEW'
|
|
10
|
+
]);
|
|
7
11
|
});
|
|
8
12
|
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RbmStandaloneCard } from '../../../models/rbm-standalone-card';
|
|
2
|
+
import { StandaloneCardOrientationEnum } from '../../../models/standalone-card-orientation-enum';
|
|
3
|
+
import { ThumbnailAlignmentEnum } from '../../../models/thumbnail-alignment-enum';
|
|
4
|
+
import { RbmCardContent } from '../../../models/rbm-card-content';
|
|
5
|
+
|
|
6
|
+
describe('RbmStandaloneCard', () => {
|
|
7
|
+
test('should accept the expected shape', () => {
|
|
8
|
+
const fixture: RbmStandaloneCard = {
|
|
9
|
+
orientation: StandaloneCardOrientationEnum.Horizontal,
|
|
10
|
+
thumbnailImageAlignment: ThumbnailAlignmentEnum.Left,
|
|
11
|
+
cardContent: {} as unknown as RbmCardContent,
|
|
12
|
+
suggestions: [],
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
expect(fixture.orientation).toBe(StandaloneCardOrientationEnum.Horizontal);
|
|
16
|
+
expect(fixture.thumbnailImageAlignment).toBe(ThumbnailAlignmentEnum.Left);
|
|
17
|
+
expect(fixture.cardContent).toBeDefined();
|
|
18
|
+
expect(fixture.suggestions).toEqual([]);
|
|
19
|
+
});
|
|
20
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RbmSuggestionResponse } from '../../../models/rbm-suggestion-response';
|
|
2
|
+
|
|
3
|
+
describe('RbmSuggestionResponse', () => {
|
|
4
|
+
test('should accept the expected shape', () => {
|
|
5
|
+
const fixture: RbmSuggestionResponse = {
|
|
6
|
+
text: 'test-text',
|
|
7
|
+
postbackData: 'test-postbackData',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
expect(fixture.text).toBe('test-text');
|
|
11
|
+
expect(fixture.postbackData).toBe('test-postbackData');
|
|
12
|
+
});
|
|
13
|
+
});
|
|
@@ -5,5 +5,10 @@ describe('RbmWebViewEnum', () => {
|
|
|
5
5
|
expect(RbmWebViewEnum.Full).toBe('FULL');
|
|
6
6
|
expect(RbmWebViewEnum.Half).toBe('HALF');
|
|
7
7
|
expect(RbmWebViewEnum.Tall).toBe('TALL');
|
|
8
|
+
expect(Object.values(RbmWebViewEnum)).toEqual([
|
|
9
|
+
'FULL',
|
|
10
|
+
'HALF',
|
|
11
|
+
'TALL'
|
|
12
|
+
]);
|
|
8
13
|
});
|
|
9
14
|
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { RecordingAvailableCallback } from '../../../models/recording-available-callback';
|
|
2
|
+
import { CallDirectionEnum } from '../../../models/call-direction-enum';
|
|
3
|
+
import { FileFormatEnum } from '../../../models/file-format-enum';
|
|
4
|
+
|
|
5
|
+
describe('RecordingAvailableCallback', () => {
|
|
6
|
+
test('should accept the expected shape', () => {
|
|
7
|
+
const fixture: RecordingAvailableCallback = {
|
|
8
|
+
eventType: 'test-eventType',
|
|
9
|
+
eventTime: 'test-eventTime',
|
|
10
|
+
accountId: 'test-accountId',
|
|
11
|
+
applicationId: 'test-applicationId',
|
|
12
|
+
from: 'test-from',
|
|
13
|
+
to: 'test-to',
|
|
14
|
+
direction: CallDirectionEnum.Inbound,
|
|
15
|
+
callId: 'test-callId',
|
|
16
|
+
callUrl: 'test-callUrl',
|
|
17
|
+
parentCallId: 'test-parentCallId',
|
|
18
|
+
recordingId: 'test-recordingId',
|
|
19
|
+
mediaUrl: 'test-mediaUrl',
|
|
20
|
+
enqueuedTime: 'test-enqueuedTime',
|
|
21
|
+
startTime: 'test-startTime',
|
|
22
|
+
endTime: 'test-endTime',
|
|
23
|
+
duration: 'test-duration',
|
|
24
|
+
fileFormat: FileFormatEnum.Mp3,
|
|
25
|
+
channels: 1.5,
|
|
26
|
+
tag: 'test-tag',
|
|
27
|
+
status: 'test-status',
|
|
28
|
+
transferCallerId: 'test-transferCallerId',
|
|
29
|
+
transferTo: 'test-transferTo',
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
expect(fixture.eventType).toBe('test-eventType');
|
|
33
|
+
expect(fixture.eventTime).toBe('test-eventTime');
|
|
34
|
+
expect(fixture.accountId).toBe('test-accountId');
|
|
35
|
+
expect(fixture.applicationId).toBe('test-applicationId');
|
|
36
|
+
expect(fixture.from).toBe('test-from');
|
|
37
|
+
expect(fixture.to).toBe('test-to');
|
|
38
|
+
expect(fixture.direction).toBe(CallDirectionEnum.Inbound);
|
|
39
|
+
expect(fixture.callId).toBe('test-callId');
|
|
40
|
+
expect(fixture.callUrl).toBe('test-callUrl');
|
|
41
|
+
expect(fixture.parentCallId).toBe('test-parentCallId');
|
|
42
|
+
expect(fixture.recordingId).toBe('test-recordingId');
|
|
43
|
+
expect(fixture.mediaUrl).toBe('test-mediaUrl');
|
|
44
|
+
expect(fixture.enqueuedTime).toBe('test-enqueuedTime');
|
|
45
|
+
expect(fixture.startTime).toBe('test-startTime');
|
|
46
|
+
expect(fixture.endTime).toBe('test-endTime');
|
|
47
|
+
expect(fixture.duration).toBe('test-duration');
|
|
48
|
+
expect(fixture.fileFormat).toBe(FileFormatEnum.Mp3);
|
|
49
|
+
expect(fixture.channels).toBe(1.5);
|
|
50
|
+
expect(fixture.tag).toBe('test-tag');
|
|
51
|
+
expect(fixture.status).toBe('test-status');
|
|
52
|
+
expect(fixture.transferCallerId).toBe('test-transferCallerId');
|
|
53
|
+
expect(fixture.transferTo).toBe('test-transferTo');
|
|
54
|
+
});
|
|
55
|
+
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { RecordingCompleteCallback } from '../../../models/recording-complete-callback';
|
|
2
|
+
import { CallDirectionEnum } from '../../../models/call-direction-enum';
|
|
3
|
+
import { FileFormatEnum } from '../../../models/file-format-enum';
|
|
4
|
+
|
|
5
|
+
describe('RecordingCompleteCallback', () => {
|
|
6
|
+
test('should accept the expected shape', () => {
|
|
7
|
+
const fixture: RecordingCompleteCallback = {
|
|
8
|
+
eventType: 'test-eventType',
|
|
9
|
+
eventTime: 'test-eventTime',
|
|
10
|
+
accountId: 'test-accountId',
|
|
11
|
+
applicationId: 'test-applicationId',
|
|
12
|
+
from: 'test-from',
|
|
13
|
+
to: 'test-to',
|
|
14
|
+
direction: CallDirectionEnum.Inbound,
|
|
15
|
+
callId: 'test-callId',
|
|
16
|
+
callUrl: 'test-callUrl',
|
|
17
|
+
parentCallId: 'test-parentCallId',
|
|
18
|
+
recordingId: 'test-recordingId',
|
|
19
|
+
mediaUrl: 'test-mediaUrl',
|
|
20
|
+
enqueuedTime: 'test-enqueuedTime',
|
|
21
|
+
startTime: 'test-startTime',
|
|
22
|
+
answerTime: 'test-answerTime',
|
|
23
|
+
endTime: 'test-endTime',
|
|
24
|
+
duration: 'test-duration',
|
|
25
|
+
fileFormat: FileFormatEnum.Mp3,
|
|
26
|
+
channels: 1.5,
|
|
27
|
+
tag: 'test-tag',
|
|
28
|
+
transferCallerId: 'test-transferCallerId',
|
|
29
|
+
transferTo: 'test-transferTo',
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
expect(fixture.eventType).toBe('test-eventType');
|
|
33
|
+
expect(fixture.eventTime).toBe('test-eventTime');
|
|
34
|
+
expect(fixture.accountId).toBe('test-accountId');
|
|
35
|
+
expect(fixture.applicationId).toBe('test-applicationId');
|
|
36
|
+
expect(fixture.from).toBe('test-from');
|
|
37
|
+
expect(fixture.to).toBe('test-to');
|
|
38
|
+
expect(fixture.direction).toBe(CallDirectionEnum.Inbound);
|
|
39
|
+
expect(fixture.callId).toBe('test-callId');
|
|
40
|
+
expect(fixture.callUrl).toBe('test-callUrl');
|
|
41
|
+
expect(fixture.parentCallId).toBe('test-parentCallId');
|
|
42
|
+
expect(fixture.recordingId).toBe('test-recordingId');
|
|
43
|
+
expect(fixture.mediaUrl).toBe('test-mediaUrl');
|
|
44
|
+
expect(fixture.enqueuedTime).toBe('test-enqueuedTime');
|
|
45
|
+
expect(fixture.startTime).toBe('test-startTime');
|
|
46
|
+
expect(fixture.answerTime).toBe('test-answerTime');
|
|
47
|
+
expect(fixture.endTime).toBe('test-endTime');
|
|
48
|
+
expect(fixture.duration).toBe('test-duration');
|
|
49
|
+
expect(fixture.fileFormat).toBe(FileFormatEnum.Mp3);
|
|
50
|
+
expect(fixture.channels).toBe(1.5);
|
|
51
|
+
expect(fixture.tag).toBe('test-tag');
|
|
52
|
+
expect(fixture.transferCallerId).toBe('test-transferCallerId');
|
|
53
|
+
expect(fixture.transferTo).toBe('test-transferTo');
|
|
54
|
+
});
|
|
55
|
+
});
|
|
@@ -4,5 +4,9 @@ describe('RecordingStateEnum', () => {
|
|
|
4
4
|
test('should define the expected values', () => {
|
|
5
5
|
expect(RecordingStateEnum.Paused).toBe('paused');
|
|
6
6
|
expect(RecordingStateEnum.Recording).toBe('recording');
|
|
7
|
+
expect(Object.values(RecordingStateEnum)).toEqual([
|
|
8
|
+
'paused',
|
|
9
|
+
'recording'
|
|
10
|
+
]);
|
|
7
11
|
});
|
|
8
12
|
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RecordingTranscriptionMetadata } from '../../../models/recording-transcription-metadata';
|
|
2
|
+
|
|
3
|
+
describe('RecordingTranscriptionMetadata', () => {
|
|
4
|
+
test('should accept the expected shape', () => {
|
|
5
|
+
const fixture: RecordingTranscriptionMetadata = {
|
|
6
|
+
id: 'test-id',
|
|
7
|
+
status: 'test-status',
|
|
8
|
+
completedTime: 'test-completedTime',
|
|
9
|
+
url: 'test-url',
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
expect(fixture.id).toBe('test-id');
|
|
13
|
+
expect(fixture.status).toBe('test-status');
|
|
14
|
+
expect(fixture.completedTime).toBe('test-completedTime');
|
|
15
|
+
expect(fixture.url).toBe('test-url');
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RecordingTranscriptions } from '../../../models/recording-transcriptions';
|
|
2
|
+
|
|
3
|
+
describe('RecordingTranscriptions', () => {
|
|
4
|
+
test('should accept the expected shape', () => {
|
|
5
|
+
const fixture: RecordingTranscriptions = {
|
|
6
|
+
transcripts: [],
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
expect(fixture.transcripts).toEqual([]);
|
|
10
|
+
});
|
|
11
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { RedirectCallback } from '../../../models/redirect-callback';
|
|
2
|
+
import { CallDirectionEnum } from '../../../models/call-direction-enum';
|
|
3
|
+
|
|
4
|
+
describe('RedirectCallback', () => {
|
|
5
|
+
test('should accept the expected shape', () => {
|
|
6
|
+
const fixture: RedirectCallback = {
|
|
7
|
+
eventType: 'test-eventType',
|
|
8
|
+
eventTime: 'test-eventTime',
|
|
9
|
+
accountId: 'test-accountId',
|
|
10
|
+
applicationId: 'test-applicationId',
|
|
11
|
+
from: 'test-from',
|
|
12
|
+
to: 'test-to',
|
|
13
|
+
direction: CallDirectionEnum.Inbound,
|
|
14
|
+
callId: 'test-callId',
|
|
15
|
+
callUrl: 'test-callUrl',
|
|
16
|
+
parentCallId: 'test-parentCallId',
|
|
17
|
+
enqueuedTime: 'test-enqueuedTime',
|
|
18
|
+
startTime: 'test-startTime',
|
|
19
|
+
answerTime: 'test-answerTime',
|
|
20
|
+
tag: 'test-tag',
|
|
21
|
+
transferCallerId: 'test-transferCallerId',
|
|
22
|
+
transferTo: 'test-transferTo',
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
expect(fixture.eventType).toBe('test-eventType');
|
|
26
|
+
expect(fixture.eventTime).toBe('test-eventTime');
|
|
27
|
+
expect(fixture.accountId).toBe('test-accountId');
|
|
28
|
+
expect(fixture.applicationId).toBe('test-applicationId');
|
|
29
|
+
expect(fixture.from).toBe('test-from');
|
|
30
|
+
expect(fixture.to).toBe('test-to');
|
|
31
|
+
expect(fixture.direction).toBe(CallDirectionEnum.Inbound);
|
|
32
|
+
expect(fixture.callId).toBe('test-callId');
|
|
33
|
+
expect(fixture.callUrl).toBe('test-callUrl');
|
|
34
|
+
expect(fixture.parentCallId).toBe('test-parentCallId');
|
|
35
|
+
expect(fixture.enqueuedTime).toBe('test-enqueuedTime');
|
|
36
|
+
expect(fixture.startTime).toBe('test-startTime');
|
|
37
|
+
expect(fixture.answerTime).toBe('test-answerTime');
|
|
38
|
+
expect(fixture.tag).toBe('test-tag');
|
|
39
|
+
expect(fixture.transferCallerId).toBe('test-transferCallerId');
|
|
40
|
+
expect(fixture.transferTo).toBe('test-transferTo');
|
|
41
|
+
});
|
|
42
|
+
});
|
|
@@ -4,5 +4,9 @@ describe('RedirectMethodEnum', () => {
|
|
|
4
4
|
test('should define the expected values', () => {
|
|
5
5
|
expect(RedirectMethodEnum.Get).toBe('GET');
|
|
6
6
|
expect(RedirectMethodEnum.Post).toBe('POST');
|
|
7
|
+
expect(Object.values(RedirectMethodEnum)).toEqual([
|
|
8
|
+
'GET',
|
|
9
|
+
'POST'
|
|
10
|
+
]);
|
|
7
11
|
});
|
|
8
12
|
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SmsMessageContent } from '../../../models/sms-message-content';
|
|
2
|
+
|
|
3
|
+
describe('SmsMessageContent', () => {
|
|
4
|
+
test('should accept the expected shape', () => {
|
|
5
|
+
const fixture: SmsMessageContent = {
|
|
6
|
+
text: 'test-text',
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
expect(fixture.text).toBe('test-text');
|
|
10
|
+
});
|
|
11
|
+
});
|
|
@@ -4,5 +4,9 @@ describe('StandaloneCardOrientationEnum', () => {
|
|
|
4
4
|
test('should define the expected values', () => {
|
|
5
5
|
expect(StandaloneCardOrientationEnum.Horizontal).toBe('HORIZONTAL');
|
|
6
6
|
expect(StandaloneCardOrientationEnum.Vertical).toBe('VERTICAL');
|
|
7
|
+
expect(Object.values(StandaloneCardOrientationEnum)).toEqual([
|
|
8
|
+
'HORIZONTAL',
|
|
9
|
+
'VERTICAL'
|
|
10
|
+
]);
|
|
7
11
|
});
|
|
8
12
|
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { StatusCallbackMessage } from '../../../models/status-callback-message';
|
|
2
|
+
import { MessageDirectionEnum } from '../../../models/message-direction-enum';
|
|
3
|
+
import { PriorityEnum } from '../../../models/priority-enum';
|
|
4
|
+
import { MultiChannelMessageChannelEnum } from '../../../models/multi-channel-message-channel-enum';
|
|
5
|
+
|
|
6
|
+
describe('StatusCallbackMessage', () => {
|
|
7
|
+
test('should accept the expected shape', () => {
|
|
8
|
+
const fixture: StatusCallbackMessage = {
|
|
9
|
+
id: 'test-id',
|
|
10
|
+
owner: 'test-owner',
|
|
11
|
+
applicationId: 'test-applicationId',
|
|
12
|
+
time: 'test-time',
|
|
13
|
+
segmentCount: 1.5,
|
|
14
|
+
direction: MessageDirectionEnum.In,
|
|
15
|
+
// @ts-expect-error SWI-11047: typed as Set<T> but runtime is Array<T>
|
|
16
|
+
to: [],
|
|
17
|
+
from: 'test-from',
|
|
18
|
+
text: 'test-text',
|
|
19
|
+
tag: 'test-tag',
|
|
20
|
+
media: [],
|
|
21
|
+
priority: PriorityEnum.Default,
|
|
22
|
+
channel: MultiChannelMessageChannelEnum.Rbm,
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
expect(fixture.id).toBe('test-id');
|
|
26
|
+
expect(fixture.owner).toBe('test-owner');
|
|
27
|
+
expect(fixture.applicationId).toBe('test-applicationId');
|
|
28
|
+
expect(fixture.time).toBe('test-time');
|
|
29
|
+
expect(fixture.segmentCount).toBe(1.5);
|
|
30
|
+
expect(fixture.direction).toBe(MessageDirectionEnum.In);
|
|
31
|
+
expect(fixture.to).toEqual([]);
|
|
32
|
+
expect(fixture.from).toBe('test-from');
|
|
33
|
+
expect(fixture.text).toBe('test-text');
|
|
34
|
+
expect(fixture.tag).toBe('test-tag');
|
|
35
|
+
expect(fixture.media).toEqual([]);
|
|
36
|
+
expect(fixture.priority).toBe(PriorityEnum.Default);
|
|
37
|
+
expect(fixture.channel).toBe(MultiChannelMessageChannelEnum.Rbm);
|
|
38
|
+
});
|
|
39
|
+
});
|