@rc-ex/core 1.6.13 → 1.6.15
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/dist/cjs/FormData.js +42 -107
- package/dist/cjs/Rest.js +68 -105
- package/dist/cjs/RestException.js +11 -28
- package/dist/cjs/SdkExtension.js +6 -9
- package/dist/cjs/Utils.js +25 -36
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +141 -269
- package/dist/cjs/paths/Ai/Audio/V1/Async/SpeakerDiarize/index.js +12 -56
- package/dist/cjs/paths/Ai/Audio/V1/Async/SpeakerIdentify/index.js +12 -56
- package/dist/cjs/paths/Ai/Audio/V1/Async/SpeechToText/index.js +12 -56
- package/dist/cjs/paths/Ai/Audio/V1/Async/index.js +17 -16
- package/dist/cjs/paths/Ai/Audio/V1/Enrollments/index.js +39 -123
- package/dist/cjs/paths/Ai/Audio/V1/index.js +14 -14
- package/dist/cjs/paths/Ai/Audio/index.js +11 -10
- package/dist/cjs/paths/Ai/Insights/V1/Async/AnalyzeInteraction/index.js +12 -56
- package/dist/cjs/paths/Ai/Insights/V1/Async/index.js +11 -10
- package/dist/cjs/paths/Ai/Insights/V1/index.js +11 -10
- package/dist/cjs/paths/Ai/Insights/index.js +11 -10
- package/dist/cjs/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/Insights/index.js +12 -56
- package/dist/cjs/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/index.js +13 -13
- package/dist/cjs/paths/Ai/Ringsense/V1/Public/Accounts/Domains/index.js +13 -14
- package/dist/cjs/paths/Ai/Ringsense/V1/Public/Accounts/index.js +13 -14
- package/dist/cjs/paths/Ai/Ringsense/V1/Public/index.js +11 -11
- package/dist/cjs/paths/Ai/Ringsense/V1/index.js +11 -10
- package/dist/cjs/paths/Ai/Ringsense/index.js +11 -10
- package/dist/cjs/paths/Ai/Status/V1/Jobs/index.js +17 -63
- package/dist/cjs/paths/Ai/Status/V1/index.js +11 -11
- package/dist/cjs/paths/Ai/Status/index.js +11 -10
- package/dist/cjs/paths/Ai/Text/V1/Async/Punctuate/index.js +12 -56
- package/dist/cjs/paths/Ai/Text/V1/Async/Summarize/index.js +12 -56
- package/dist/cjs/paths/Ai/Text/V1/Async/index.js +14 -13
- package/dist/cjs/paths/Ai/Text/V1/index.js +11 -10
- package/dist/cjs/paths/Ai/Text/index.js +11 -10
- package/dist/cjs/paths/Ai/index.js +21 -21
- package/dist/cjs/paths/Analytics/Calls/V1/Accounts/Aggregation/Fetch/index.js +12 -56
- package/dist/cjs/paths/Analytics/Calls/V1/Accounts/Aggregation/index.js +11 -10
- package/dist/cjs/paths/Analytics/Calls/V1/Accounts/Timeline/Fetch/index.js +12 -56
- package/dist/cjs/paths/Analytics/Calls/V1/Accounts/Timeline/index.js +11 -10
- package/dist/cjs/paths/Analytics/Calls/V1/Accounts/index.js +16 -16
- package/dist/cjs/paths/Analytics/Calls/V1/index.js +11 -11
- package/dist/cjs/paths/Analytics/Calls/index.js +11 -10
- package/dist/cjs/paths/Analytics/index.js +9 -9
- package/dist/cjs/paths/Rcvideo/V1/Account/Extension/Recordings/index.js +12 -56
- package/dist/cjs/paths/Rcvideo/V1/Account/Extension/index.js +13 -13
- package/dist/cjs/paths/Rcvideo/V1/Account/Recordings/index.js +12 -56
- package/dist/cjs/paths/Rcvideo/V1/Account/index.js +16 -17
- package/dist/cjs/paths/Rcvideo/V1/Accounts/Extensions/Delegators/index.js +12 -56
- package/dist/cjs/paths/Rcvideo/V1/Accounts/Extensions/index.js +13 -13
- package/dist/cjs/paths/Rcvideo/V1/Accounts/index.js +13 -14
- package/dist/cjs/paths/Rcvideo/V1/History/Meetings/index.js +21 -76
- package/dist/cjs/paths/Rcvideo/V1/History/index.js +11 -11
- package/dist/cjs/paths/Rcvideo/V1/index.js +17 -18
- package/dist/cjs/paths/Rcvideo/V2/Account/Extension/Bridges/Default/index.js +12 -56
- package/dist/cjs/paths/Rcvideo/V2/Account/Extension/Bridges/index.js +15 -59
- package/dist/cjs/paths/Rcvideo/V2/Account/Extension/index.js +13 -13
- package/dist/cjs/paths/Rcvideo/V2/Account/index.js +13 -14
- package/dist/cjs/paths/Rcvideo/V2/Bridges/Pin/Pstn/index.js +17 -63
- package/dist/cjs/paths/Rcvideo/V2/Bridges/Pin/Web/index.js +17 -63
- package/dist/cjs/paths/Rcvideo/V2/Bridges/Pin/index.js +14 -15
- package/dist/cjs/paths/Rcvideo/V2/Bridges/index.js +34 -100
- package/dist/cjs/paths/Rcvideo/V2/index.js +14 -15
- package/dist/cjs/paths/Rcvideo/index.js +12 -12
- package/dist/cjs/paths/Restapi/Account/A2pSms/Batches/index.js +25 -89
- package/dist/cjs/paths/Restapi/Account/A2pSms/Messages/index.js +21 -76
- package/dist/cjs/paths/Restapi/Account/A2pSms/OptOuts/BulkAssign/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/A2pSms/OptOuts/index.js +15 -59
- package/dist/cjs/paths/Restapi/Account/A2pSms/Statuses/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/A2pSms/index.js +20 -21
- package/dist/cjs/paths/Restapi/Account/ActiveCalls/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/AddressBookBulkUpload/Tasks/index.js +17 -63
- package/dist/cjs/paths/Restapi/Account/AddressBookBulkUpload/index.js +15 -60
- package/dist/cjs/paths/Restapi/Account/AnsweringRule/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/AssignedRole/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/AuditTrail/Search/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/AuditTrail/index.js +11 -10
- package/dist/cjs/paths/Restapi/Account/BusinessAddress/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/BusinessHours/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/CallLog/index.js +21 -76
- package/dist/cjs/paths/Restapi/Account/CallLogSync/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/CallMonitoringGroups/BulkAssign/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/CallMonitoringGroups/Members/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/CallMonitoringGroups/index.js +38 -112
- package/dist/cjs/paths/Restapi/Account/CallQueues/BulkAssign/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/CallQueues/Members/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/CallQueues/Presence/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/CallQueues/index.js +37 -102
- package/dist/cjs/paths/Restapi/Account/CallRecording/BulkAssign/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/CallRecording/CustomGreetings/index.js +25 -89
- package/dist/cjs/paths/Restapi/Account/CallRecording/Extensions/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/CallRecording/index.js +25 -79
- package/dist/cjs/paths/Restapi/Account/CallRecordings/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/CustomFields/index.js +32 -106
- package/dist/cjs/paths/Restapi/Account/Device/Emergency/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Device/SipInfo/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Device/index.js +30 -86
- package/dist/cjs/paths/Restapi/Account/Directory/Entries/Search/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Directory/Entries/index.js +24 -79
- package/dist/cjs/paths/Restapi/Account/Directory/Federation/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Directory/index.js +14 -14
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Devices/BulkAssign/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Devices/index.js +15 -59
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Networks/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Switches/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkCreate/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkUpdate/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkValidate/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Tasks/index.js +17 -63
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Users/BulkAssign/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Users/index.js +15 -59
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPoints/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkCreate/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkUpdate/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkValidate/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/index.js +44 -47
- package/dist/cjs/paths/Restapi/Account/EmergencyLocations/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/Extension/ActiveCalls/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/AddressBook/Contact/index.js +46 -140
- package/dist/cjs/paths/Restapi/Account/Extension/AddressBook/index.js +11 -11
- package/dist/cjs/paths/Restapi/Account/Extension/AddressBookSync/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/AdministeredSites/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/AnsweringRule/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/Extension/AssignableRoles/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/AssignedRole/Default/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/AssignedRole/index.js +19 -72
- package/dist/cjs/paths/Restapi/Account/Extension/AuthzProfile/Check/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/AuthzProfile/index.js +15 -59
- package/dist/cjs/paths/Restapi/Account/Extension/BusinessHours/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/CallLog/index.js +25 -89
- package/dist/cjs/paths/Restapi/Account/Extension/CallLogSync/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/CallQueuePresence/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/CallQueues/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/CallerBlocking/PhoneNumbers/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/Extension/CallerBlocking/index.js +19 -73
- package/dist/cjs/paths/Restapi/Account/Extension/CallerId/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/CompanyPager/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/Conferencing/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/Device/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/EmergencyLocations/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/Extension/Favorite/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/Fax/index.js +14 -60
- package/dist/cjs/paths/Restapi/Account/Extension/Features/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/ForwardingNumber/index.js +43 -136
- package/dist/cjs/paths/Restapi/Account/Extension/Grant/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/Greeting/Content/index.js +14 -66
- package/dist/cjs/paths/Restapi/Account/Extension/Greeting/index.js +26 -83
- package/dist/cjs/paths/Restapi/Account/Extension/MessageStore/Content/index.js +19 -73
- package/dist/cjs/paths/Restapi/Account/Extension/MessageStore/index.js +49 -144
- package/dist/cjs/paths/Restapi/Account/Extension/MessageStoreTemplates/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/Extension/MessageSync/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/Mms/index.js +14 -60
- package/dist/cjs/paths/Restapi/Account/Extension/NotificationSettings/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/OverflowSettings/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/PhoneNumber/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/Presence/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/ProfileImage/index.js +40 -131
- package/dist/cjs/paths/Restapi/Account/Extension/RingOut/index.js +28 -93
- package/dist/cjs/paths/Restapi/Account/Extension/Sms/index.js +14 -60
- package/dist/cjs/paths/Restapi/Account/Extension/UnifiedPresence/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/VideoConfiguration/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/index.js +146 -229
- package/dist/cjs/paths/Restapi/Account/ExtensionBulkUpdate/Tasks/index.js +17 -63
- package/dist/cjs/paths/Restapi/Account/ExtensionBulkUpdate/index.js +15 -60
- package/dist/cjs/paths/Restapi/Account/ForwardAllCalls/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Greeting/Content/index.js +14 -66
- package/dist/cjs/paths/Restapi/Account/Greeting/index.js +17 -63
- package/dist/cjs/paths/Restapi/Account/IvrMenus/index.js +32 -106
- package/dist/cjs/paths/Restapi/Account/IvrPrompts/Content/index.js +14 -66
- package/dist/cjs/paths/Restapi/Account/IvrPrompts/index.js +44 -130
- package/dist/cjs/paths/Restapi/Account/MessageStoreConfiguration/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/MessageStoreReport/Archive/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/MessageStoreReport/index.js +24 -79
- package/dist/cjs/paths/Restapi/Account/MessageStoreTemplates/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/PagingOnlyGroups/BulkAssign/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/PagingOnlyGroups/Devices/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/PagingOnlyGroups/Users/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/PagingOnlyGroups/index.js +19 -19
- package/dist/cjs/paths/Restapi/Account/PhoneNumber/index.js +21 -76
- package/dist/cjs/paths/Restapi/Account/Presence/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Recording/Content/index.js +14 -66
- package/dist/cjs/paths/Restapi/Account/Recording/index.js +20 -66
- package/dist/cjs/paths/Restapi/Account/ServiceInfo/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Sites/BulkAssign/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Sites/Ivr/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Sites/Members/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Sites/index.js +48 -132
- package/dist/cjs/paths/Restapi/Account/Telephony/CallOut/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Conference/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/Content/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/index.js +13 -13
- package/dist/cjs/paths/Restapi/Account/Telephony/Metadata/index.js +11 -11
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Answer/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Bridge/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/BringIn/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Flip/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Forward/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Hold/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Ignore/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Park/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Pickup/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Recordings/index.js +21 -76
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Reject/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Reply/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Supervise/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Transfer/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Unhold/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/index.js +76 -143
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Supervise/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/index.js +30 -87
- package/dist/cjs/paths/Restapi/Account/Telephony/index.js +20 -20
- package/dist/cjs/paths/Restapi/Account/Templates/index.js +21 -76
- package/dist/cjs/paths/Restapi/Account/UserRole/BulkAssign/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/UserRole/Default/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/UserRole/index.js +45 -129
- package/dist/cjs/paths/Restapi/Account/index.js +128 -192
- package/dist/cjs/paths/Restapi/ClientInfo/SipProvision/index.js +12 -56
- package/dist/cjs/paths/Restapi/ClientInfo/index.js +11 -10
- package/dist/cjs/paths/Restapi/Dictionary/Brand/ContractedCountry/index.js +21 -76
- package/dist/cjs/paths/Restapi/Dictionary/Brand/index.js +13 -14
- package/dist/cjs/paths/Restapi/Dictionary/Country/index.js +21 -76
- package/dist/cjs/paths/Restapi/Dictionary/FaxCoverPage/index.js +12 -56
- package/dist/cjs/paths/Restapi/Dictionary/Greeting/index.js +21 -76
- package/dist/cjs/paths/Restapi/Dictionary/Language/index.js +21 -76
- package/dist/cjs/paths/Restapi/Dictionary/Location/index.js +12 -56
- package/dist/cjs/paths/Restapi/Dictionary/Permission/index.js +21 -76
- package/dist/cjs/paths/Restapi/Dictionary/PermissionCategory/index.js +21 -76
- package/dist/cjs/paths/Restapi/Dictionary/State/index.js +21 -76
- package/dist/cjs/paths/Restapi/Dictionary/Timezone/index.js +21 -76
- package/dist/cjs/paths/Restapi/Dictionary/UserRole/index.js +21 -76
- package/dist/cjs/paths/Restapi/Dictionary/index.js +41 -49
- package/dist/cjs/paths/Restapi/NumberParser/Parse/index.js +12 -56
- package/dist/cjs/paths/Restapi/NumberParser/index.js +11 -10
- package/dist/cjs/paths/Restapi/Oauth/Authorize/index.js +16 -69
- package/dist/cjs/paths/Restapi/Oauth/Revoke/index.js +12 -56
- package/dist/cjs/paths/Restapi/Oauth/Token/index.js +12 -56
- package/dist/cjs/paths/Restapi/Oauth/index.js +17 -16
- package/dist/cjs/paths/Restapi/Subscription/Renew/index.js +12 -56
- package/dist/cjs/paths/Restapi/Subscription/index.js +42 -126
- package/dist/cjs/paths/Restapi/V2/Accounts/BatchProvisioning/Users/index.js +12 -56
- package/dist/cjs/paths/Restapi/V2/Accounts/BatchProvisioning/index.js +11 -10
- package/dist/cjs/paths/Restapi/V2/Accounts/CostCenters/index.js +12 -56
- package/dist/cjs/paths/Restapi/V2/Accounts/DeviceInventory/index.js +16 -69
- package/dist/cjs/paths/Restapi/V2/Accounts/Devices/BulkAdd/index.js +12 -56
- package/dist/cjs/paths/Restapi/V2/Accounts/Devices/index.js +20 -66
- package/dist/cjs/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.js +16 -69
- package/dist/cjs/paths/Restapi/V2/Accounts/Extensions/Devices/Replace/index.js +12 -56
- package/dist/cjs/paths/Restapi/V2/Accounts/Extensions/Devices/index.js +13 -13
- package/dist/cjs/paths/Restapi/V2/Accounts/Extensions/index.js +18 -63
- package/dist/cjs/paths/Restapi/V2/Accounts/PhoneNumbers/BulkAdd/index.js +21 -76
- package/dist/cjs/paths/Restapi/V2/Accounts/PhoneNumbers/Replace/index.js +12 -56
- package/dist/cjs/paths/Restapi/V2/Accounts/PhoneNumbers/index.js +31 -96
- package/dist/cjs/paths/Restapi/V2/Accounts/SendActivationEmail/index.js +12 -56
- package/dist/cjs/paths/Restapi/V2/Accounts/SendWelcomeEmail/index.js +12 -56
- package/dist/cjs/paths/Restapi/V2/Accounts/index.js +41 -89
- package/dist/cjs/paths/Restapi/V2/index.js +11 -11
- package/dist/cjs/paths/Restapi/index.js +40 -98
- package/dist/cjs/paths/Scim/ResourceTypes/index.js +21 -76
- package/dist/cjs/paths/Scim/Schemas/index.js +21 -76
- package/dist/cjs/paths/Scim/ServiceProviderConfig/index.js +12 -56
- package/dist/cjs/paths/Scim/Users/DotSearch/index.js +12 -56
- package/dist/cjs/paths/Scim/Users/index.js +49 -143
- package/dist/cjs/paths/Scim/index.js +20 -24
- package/dist/cjs/paths/TeamMessaging/V1/AdaptiveCards/index.js +31 -97
- package/dist/cjs/paths/TeamMessaging/V1/Chats/AdaptiveCards/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Chats/Favorite/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Chats/Notes/index.js +16 -69
- package/dist/cjs/paths/TeamMessaging/V1/Chats/Posts/index.js +39 -123
- package/dist/cjs/paths/TeamMessaging/V1/Chats/Tasks/index.js +16 -69
- package/dist/cjs/paths/TeamMessaging/V1/Chats/Unfavorite/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Chats/index.js +39 -95
- package/dist/cjs/paths/TeamMessaging/V1/Companies/index.js +17 -63
- package/dist/cjs/paths/TeamMessaging/V1/Conversations/index.js +25 -89
- package/dist/cjs/paths/TeamMessaging/V1/DataExport/index.js +25 -89
- package/dist/cjs/paths/TeamMessaging/V1/Events/index.js +39 -123
- package/dist/cjs/paths/TeamMessaging/V1/Everyone/index.js +16 -69
- package/dist/cjs/paths/TeamMessaging/V1/Favorites/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Files/index.js +14 -60
- package/dist/cjs/paths/TeamMessaging/V1/Groups/Events/index.js +16 -69
- package/dist/cjs/paths/TeamMessaging/V1/Groups/Webhooks/index.js +16 -69
- package/dist/cjs/paths/TeamMessaging/V1/Groups/index.js +16 -16
- package/dist/cjs/paths/TeamMessaging/V1/Notes/Lock/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Notes/Publish/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Notes/Unlock/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Notes/index.js +40 -106
- package/dist/cjs/paths/TeamMessaging/V1/Persons/index.js +17 -63
- package/dist/cjs/paths/TeamMessaging/V1/Recent/Chats/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Recent/index.js +11 -10
- package/dist/cjs/paths/TeamMessaging/V1/Tasks/Complete/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Tasks/index.js +34 -100
- package/dist/cjs/paths/TeamMessaging/V1/Teams/Add/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Teams/Archive/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Teams/Join/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Teams/Leave/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Teams/Remove/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Teams/Unarchive/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Teams/index.js +57 -141
- package/dist/cjs/paths/TeamMessaging/V1/Webhooks/Activate/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Webhooks/Suspend/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Webhooks/index.js +34 -99
- package/dist/cjs/paths/TeamMessaging/V1/index.js +56 -67
- package/dist/cjs/paths/TeamMessaging/index.js +9 -9
- package/dist/cjs/paths/Webinar/Configuration/V1/Company/Sessions/index.js +12 -56
- package/dist/cjs/paths/Webinar/Configuration/V1/Company/index.js +11 -10
- package/dist/cjs/paths/Webinar/Configuration/V1/Sessions/index.js +12 -56
- package/dist/cjs/paths/Webinar/Configuration/V1/Webinars/Sessions/Invitees/index.js +39 -123
- package/dist/cjs/paths/Webinar/Configuration/V1/Webinars/Sessions/index.js +38 -114
- package/dist/cjs/paths/Webinar/Configuration/V1/Webinars/index.js +42 -127
- package/dist/cjs/paths/Webinar/Configuration/V1/index.js +17 -17
- package/dist/cjs/paths/Webinar/Configuration/index.js +11 -10
- package/dist/cjs/paths/Webinar/History/V1/Company/Recordings/index.js +21 -76
- package/dist/cjs/paths/Webinar/History/V1/Company/Sessions/index.js +12 -56
- package/dist/cjs/paths/Webinar/History/V1/Company/index.js +14 -14
- package/dist/cjs/paths/Webinar/History/V1/Recordings/Download/index.js +12 -56
- package/dist/cjs/paths/Webinar/History/V1/Recordings/index.js +24 -79
- package/dist/cjs/paths/Webinar/History/V1/Sessions/index.js +12 -56
- package/dist/cjs/paths/Webinar/History/V1/Webinars/Sessions/Invitees/index.js +21 -76
- package/dist/cjs/paths/Webinar/History/V1/Webinars/Sessions/Participants/Self/index.js +12 -56
- package/dist/cjs/paths/Webinar/History/V1/Webinars/Sessions/Participants/index.js +15 -59
- package/dist/cjs/paths/Webinar/History/V1/Webinars/Sessions/index.js +23 -70
- package/dist/cjs/paths/Webinar/History/V1/Webinars/index.js +20 -67
- package/dist/cjs/paths/Webinar/History/V1/index.js +20 -21
- package/dist/cjs/paths/Webinar/History/index.js +11 -10
- package/dist/cjs/paths/Webinar/Notifications/V1/Subscriptions/Renew/index.js +12 -56
- package/dist/cjs/paths/Webinar/Notifications/V1/Subscriptions/index.js +42 -126
- package/dist/cjs/paths/Webinar/Notifications/V1/index.js +11 -11
- package/dist/cjs/paths/Webinar/Notifications/index.js +11 -10
- package/dist/cjs/paths/Webinar/Registration/V1/Sessions/Registrants/index.js +32 -106
- package/dist/cjs/paths/Webinar/Registration/V1/Sessions/index.js +27 -84
- package/dist/cjs/paths/Webinar/Registration/V1/index.js +11 -11
- package/dist/cjs/paths/Webinar/Registration/index.js +11 -10
- package/dist/cjs/paths/Webinar/index.js +18 -18
- package/dist/esm/index.d.ts +1 -1
- package/package.json +5 -5
|
@@ -1,49 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
|
|
40
|
-
|
|
3
|
+
class Index {
|
|
4
|
+
rc;
|
|
5
|
+
_parent;
|
|
6
|
+
constructor(_parent) {
|
|
41
7
|
this._parent = _parent;
|
|
42
8
|
this.rc = _parent.rc;
|
|
43
9
|
}
|
|
44
|
-
|
|
45
|
-
return
|
|
46
|
-
}
|
|
10
|
+
path() {
|
|
11
|
+
return `${this._parent.path()}/features`;
|
|
12
|
+
}
|
|
47
13
|
/**
|
|
48
14
|
* Returns a list of supported features and the information on their
|
|
49
15
|
* availability for the current extension. Particular feature(s) can
|
|
@@ -80,19 +46,9 @@ var Index = /** @class */ (function () {
|
|
|
80
46
|
* App Permission: ReadAccounts
|
|
81
47
|
* User Permission: ReadExtensions
|
|
82
48
|
*/
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
case 0: return [4 /*yield*/, this.rc.get(this.path(), queryParams, restRequestConfig)];
|
|
89
|
-
case 1:
|
|
90
|
-
r = _a.sent();
|
|
91
|
-
return [2 /*return*/, r.data];
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
return Index;
|
|
97
|
-
}());
|
|
49
|
+
async get(queryParams, restRequestConfig) {
|
|
50
|
+
const r = await this.rc.get(this.path(), queryParams, restRequestConfig);
|
|
51
|
+
return r.data;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
98
54
|
exports.default = Index;
|
|
@@ -1,55 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
3
|
+
class Index {
|
|
4
|
+
rc;
|
|
5
|
+
_parent;
|
|
6
|
+
forwardingNumberId;
|
|
7
|
+
constructor(_parent, forwardingNumberId = null) {
|
|
42
8
|
this._parent = _parent;
|
|
43
9
|
this.rc = _parent.rc;
|
|
44
10
|
this.forwardingNumberId = forwardingNumberId;
|
|
45
11
|
}
|
|
46
|
-
|
|
47
|
-
if (withParameter === void 0) { withParameter = true; }
|
|
12
|
+
path(withParameter = true) {
|
|
48
13
|
if (withParameter && this.forwardingNumberId !== null) {
|
|
49
|
-
return
|
|
14
|
+
return `${this._parent.path()}/forwarding-number/${this.forwardingNumberId}`;
|
|
50
15
|
}
|
|
51
|
-
return
|
|
52
|
-
}
|
|
16
|
+
return `${this._parent.path()}/forwarding-number`;
|
|
17
|
+
}
|
|
53
18
|
/**
|
|
54
19
|
* Returns the list of extension phone numbers used for call forwarding
|
|
55
20
|
* and call flip. The returned list contains all the extension phone numbers
|
|
@@ -61,19 +26,10 @@ var Index = /** @class */ (function () {
|
|
|
61
26
|
* App Permission: ReadAccounts
|
|
62
27
|
* User Permission: ReadUserForwardingFlipNumbers
|
|
63
28
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
switch (_a.label) {
|
|
69
|
-
case 0: return [4 /*yield*/, this.rc.get(this.path(false), queryParams, restRequestConfig)];
|
|
70
|
-
case 1:
|
|
71
|
-
r = _a.sent();
|
|
72
|
-
return [2 /*return*/, r.data];
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
};
|
|
29
|
+
async list(queryParams, restRequestConfig) {
|
|
30
|
+
const r = await this.rc.get(this.path(false), queryParams, restRequestConfig);
|
|
31
|
+
return r.data;
|
|
32
|
+
}
|
|
77
33
|
/**
|
|
78
34
|
* Adds a new forwarding number to the forwarding number list.
|
|
79
35
|
* HTTP Method: post
|
|
@@ -82,19 +38,10 @@ var Index = /** @class */ (function () {
|
|
|
82
38
|
* App Permission: EditExtensions
|
|
83
39
|
* User Permission: EditUserForwardingFlipNumbers
|
|
84
40
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
switch (_a.label) {
|
|
90
|
-
case 0: return [4 /*yield*/, this.rc.post(this.path(false), createForwardingNumberRequest, undefined, restRequestConfig)];
|
|
91
|
-
case 1:
|
|
92
|
-
r = _a.sent();
|
|
93
|
-
return [2 /*return*/, r.data];
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
};
|
|
41
|
+
async post(createForwardingNumberRequest, restRequestConfig) {
|
|
42
|
+
const r = await this.rc.post(this.path(false), createForwardingNumberRequest, undefined, restRequestConfig);
|
|
43
|
+
return r.data;
|
|
44
|
+
}
|
|
98
45
|
/**
|
|
99
46
|
* Deletes multiple forwarding numbers from the forwarding number list by IDs.
|
|
100
47
|
* HTTP Method: delete
|
|
@@ -103,19 +50,10 @@ var Index = /** @class */ (function () {
|
|
|
103
50
|
* App Permission: EditExtensions
|
|
104
51
|
* User Permission: EditUserForwardingFlipNumbers
|
|
105
52
|
*/
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
switch (_a.label) {
|
|
111
|
-
case 0: return [4 /*yield*/, this.rc.delete(this.path(false), deleteForwardingNumbersRequest, undefined, restRequestConfig)];
|
|
112
|
-
case 1:
|
|
113
|
-
r = _a.sent();
|
|
114
|
-
return [2 /*return*/, r.data];
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
});
|
|
118
|
-
};
|
|
53
|
+
async deleteAll(deleteForwardingNumbersRequest, restRequestConfig) {
|
|
54
|
+
const r = await this.rc.delete(this.path(false), deleteForwardingNumbersRequest, undefined, restRequestConfig);
|
|
55
|
+
return r.data;
|
|
56
|
+
}
|
|
119
57
|
/**
|
|
120
58
|
* Returns a specific forwarding number.
|
|
121
59
|
* HTTP Method: get
|
|
@@ -124,23 +62,13 @@ var Index = /** @class */ (function () {
|
|
|
124
62
|
* App Permission: ReadAccounts
|
|
125
63
|
* User Permission: ReadUserForwardingFlipNumbers
|
|
126
64
|
*/
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
throw new Error("forwardingNumberId must be specified.");
|
|
135
|
-
}
|
|
136
|
-
return [4 /*yield*/, this.rc.get(this.path(), undefined, restRequestConfig)];
|
|
137
|
-
case 1:
|
|
138
|
-
r = _a.sent();
|
|
139
|
-
return [2 /*return*/, r.data];
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
});
|
|
143
|
-
};
|
|
65
|
+
async get(restRequestConfig) {
|
|
66
|
+
if (this.forwardingNumberId === null) {
|
|
67
|
+
throw new Error("forwardingNumberId must be specified.");
|
|
68
|
+
}
|
|
69
|
+
const r = await this.rc.get(this.path(), undefined, restRequestConfig);
|
|
70
|
+
return r.data;
|
|
71
|
+
}
|
|
144
72
|
/**
|
|
145
73
|
* Updates the existing forwarding number from the forwarding number list.
|
|
146
74
|
* HTTP Method: put
|
|
@@ -149,23 +77,13 @@ var Index = /** @class */ (function () {
|
|
|
149
77
|
* App Permission: EditExtensions
|
|
150
78
|
* User Permission: EditUserForwardingFlipNumbers
|
|
151
79
|
*/
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
throw new Error("forwardingNumberId must be specified.");
|
|
160
|
-
}
|
|
161
|
-
return [4 /*yield*/, this.rc.put(this.path(), updateForwardingNumberRequest, undefined, restRequestConfig)];
|
|
162
|
-
case 1:
|
|
163
|
-
r = _a.sent();
|
|
164
|
-
return [2 /*return*/, r.data];
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
});
|
|
168
|
-
};
|
|
80
|
+
async put(updateForwardingNumberRequest, restRequestConfig) {
|
|
81
|
+
if (this.forwardingNumberId === null) {
|
|
82
|
+
throw new Error("forwardingNumberId must be specified.");
|
|
83
|
+
}
|
|
84
|
+
const r = await this.rc.put(this.path(), updateForwardingNumberRequest, undefined, restRequestConfig);
|
|
85
|
+
return r.data;
|
|
86
|
+
}
|
|
169
87
|
/**
|
|
170
88
|
* Deletes a forwarding number from the forwarding number list by its ID.
|
|
171
89
|
* HTTP Method: delete
|
|
@@ -174,23 +92,12 @@ var Index = /** @class */ (function () {
|
|
|
174
92
|
* App Permission: EditExtensions
|
|
175
93
|
* User Permission: EditUserForwardingFlipNumbers
|
|
176
94
|
*/
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
return [4 /*yield*/, this.rc.delete(this.path(), {}, undefined, restRequestConfig)];
|
|
187
|
-
case 1:
|
|
188
|
-
r = _a.sent();
|
|
189
|
-
return [2 /*return*/, r.data];
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
});
|
|
193
|
-
};
|
|
194
|
-
return Index;
|
|
195
|
-
}());
|
|
95
|
+
async delete(restRequestConfig) {
|
|
96
|
+
if (this.forwardingNumberId === null) {
|
|
97
|
+
throw new Error("forwardingNumberId must be specified.");
|
|
98
|
+
}
|
|
99
|
+
const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig);
|
|
100
|
+
return r.data;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
196
103
|
exports.default = Index;
|
|
@@ -1,49 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
|
|
40
|
-
|
|
3
|
+
class Index {
|
|
4
|
+
rc;
|
|
5
|
+
_parent;
|
|
6
|
+
constructor(_parent) {
|
|
41
7
|
this._parent = _parent;
|
|
42
8
|
this.rc = _parent.rc;
|
|
43
9
|
}
|
|
44
|
-
|
|
45
|
-
return
|
|
46
|
-
}
|
|
10
|
+
path() {
|
|
11
|
+
return `${this._parent.path()}/grant`;
|
|
12
|
+
}
|
|
47
13
|
/**
|
|
48
14
|
* Returns the list of extensions with information on grants
|
|
49
15
|
* given to the current extension regarding them. Currently the list of grants
|
|
@@ -56,19 +22,9 @@ var Index = /** @class */ (function () {
|
|
|
56
22
|
* App Permission: ReadAccounts
|
|
57
23
|
* User Permission: ReadExtensions
|
|
58
24
|
*/
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
case 0: return [4 /*yield*/, this.rc.get(this.path(), queryParams, restRequestConfig)];
|
|
65
|
-
case 1:
|
|
66
|
-
r = _a.sent();
|
|
67
|
-
return [2 /*return*/, r.data];
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
return Index;
|
|
73
|
-
}());
|
|
25
|
+
async get(queryParams, restRequestConfig) {
|
|
26
|
+
const r = await this.rc.get(this.path(), queryParams, restRequestConfig);
|
|
27
|
+
return r.data;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
74
30
|
exports.default = Index;
|
|
@@ -1,60 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
24
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
-
|
|
51
|
-
|
|
3
|
+
class Index {
|
|
4
|
+
rc;
|
|
5
|
+
_parent;
|
|
6
|
+
constructor(_parent) {
|
|
52
7
|
this._parent = _parent;
|
|
53
8
|
this.rc = _parent.rc;
|
|
54
9
|
}
|
|
55
|
-
|
|
56
|
-
return
|
|
57
|
-
}
|
|
10
|
+
path() {
|
|
11
|
+
return `${this._parent.path()}/content`;
|
|
12
|
+
}
|
|
58
13
|
/**
|
|
59
14
|
* Returns extension-level greeting media contents.
|
|
60
15
|
*
|
|
@@ -65,19 +20,12 @@ var Index = /** @class */ (function () {
|
|
|
65
20
|
* Rate Limit Group: Heavy
|
|
66
21
|
* App Permission: ReadAccounts
|
|
67
22
|
*/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
switch (_a.label) {
|
|
73
|
-
case 0: return [4 /*yield*/, this.rc.get(this.path(), queryParams, __assign(__assign({}, restRequestConfig), { responseType: "arraybuffer" }))];
|
|
74
|
-
case 1:
|
|
75
|
-
r = _a.sent();
|
|
76
|
-
return [2 /*return*/, r.data];
|
|
77
|
-
}
|
|
78
|
-
});
|
|
23
|
+
async get(queryParams, restRequestConfig) {
|
|
24
|
+
const r = await this.rc.get(this.path(), queryParams, {
|
|
25
|
+
...restRequestConfig,
|
|
26
|
+
responseType: "arraybuffer",
|
|
79
27
|
});
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
28
|
+
return r.data;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
83
31
|
exports.default = Index;
|
|
@@ -1,60 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
4
|
};
|
|
41
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
6
|
+
const index_js_1 = __importDefault(require("./Content/index.js"));
|
|
7
|
+
const Utils_js_1 = __importDefault(require("../../../../../Utils.js"));
|
|
8
|
+
class Index {
|
|
9
|
+
rc;
|
|
10
|
+
_parent;
|
|
11
|
+
greetingId;
|
|
12
|
+
constructor(_parent, greetingId = null) {
|
|
47
13
|
this._parent = _parent;
|
|
48
14
|
this.rc = _parent.rc;
|
|
49
15
|
this.greetingId = greetingId;
|
|
50
16
|
}
|
|
51
|
-
|
|
52
|
-
if (withParameter === void 0) { withParameter = true; }
|
|
17
|
+
path(withParameter = true) {
|
|
53
18
|
if (withParameter && this.greetingId !== null) {
|
|
54
|
-
return
|
|
19
|
+
return `${this._parent.path()}/greeting/${this.greetingId}`;
|
|
55
20
|
}
|
|
56
|
-
return
|
|
57
|
-
}
|
|
21
|
+
return `${this._parent.path()}/greeting`;
|
|
22
|
+
}
|
|
58
23
|
/**
|
|
59
24
|
* Creates custom greeting for an extension user.
|
|
60
25
|
* HTTP Method: post
|
|
@@ -63,22 +28,11 @@ var Index = /** @class */ (function () {
|
|
|
63
28
|
* App Permission: EditExtensions
|
|
64
29
|
* User Permission: EditUserAnsweringRules
|
|
65
30
|
*/
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
case 0: return [4 /*yield*/, Utils_js_1.default.getFormData(createCustomUserGreetingRequest)];
|
|
72
|
-
case 1:
|
|
73
|
-
formData = _a.sent();
|
|
74
|
-
return [4 /*yield*/, this.rc.post(this.path(false), formData, queryParams, restRequestConfig)];
|
|
75
|
-
case 2:
|
|
76
|
-
r = _a.sent();
|
|
77
|
-
return [2 /*return*/, r.data];
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
};
|
|
31
|
+
async post(createCustomUserGreetingRequest, queryParams, restRequestConfig) {
|
|
32
|
+
const formData = await Utils_js_1.default.getFormData(createCustomUserGreetingRequest);
|
|
33
|
+
const r = await this.rc.post(this.path(false), formData, queryParams, restRequestConfig);
|
|
34
|
+
return r.data;
|
|
35
|
+
}
|
|
82
36
|
/**
|
|
83
37
|
* Returns a custom user greeting by ID.
|
|
84
38
|
* HTTP Method: get
|
|
@@ -87,26 +41,15 @@ var Index = /** @class */ (function () {
|
|
|
87
41
|
* App Permission: ReadAccounts
|
|
88
42
|
* User Permission: ReadUserInfo
|
|
89
43
|
*/
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
return [4 /*yield*/, this.rc.get(this.path(), undefined, restRequestConfig)];
|
|
100
|
-
case 1:
|
|
101
|
-
r = _a.sent();
|
|
102
|
-
return [2 /*return*/, r.data];
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
};
|
|
107
|
-
Index.prototype.content = function () {
|
|
44
|
+
async get(restRequestConfig) {
|
|
45
|
+
if (this.greetingId === null) {
|
|
46
|
+
throw new Error("greetingId must be specified.");
|
|
47
|
+
}
|
|
48
|
+
const r = await this.rc.get(this.path(), undefined, restRequestConfig);
|
|
49
|
+
return r.data;
|
|
50
|
+
}
|
|
51
|
+
content() {
|
|
108
52
|
return new index_js_1.default(this);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
}());
|
|
53
|
+
}
|
|
54
|
+
}
|
|
112
55
|
exports.default = Index;
|