@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.
Files changed (332) hide show
  1. package/dist/cjs/FormData.js +42 -107
  2. package/dist/cjs/Rest.js +68 -105
  3. package/dist/cjs/RestException.js +11 -28
  4. package/dist/cjs/SdkExtension.js +6 -9
  5. package/dist/cjs/Utils.js +25 -36
  6. package/dist/cjs/index.d.ts +1 -1
  7. package/dist/cjs/index.js +141 -269
  8. package/dist/cjs/paths/Ai/Audio/V1/Async/SpeakerDiarize/index.js +12 -56
  9. package/dist/cjs/paths/Ai/Audio/V1/Async/SpeakerIdentify/index.js +12 -56
  10. package/dist/cjs/paths/Ai/Audio/V1/Async/SpeechToText/index.js +12 -56
  11. package/dist/cjs/paths/Ai/Audio/V1/Async/index.js +17 -16
  12. package/dist/cjs/paths/Ai/Audio/V1/Enrollments/index.js +39 -123
  13. package/dist/cjs/paths/Ai/Audio/V1/index.js +14 -14
  14. package/dist/cjs/paths/Ai/Audio/index.js +11 -10
  15. package/dist/cjs/paths/Ai/Insights/V1/Async/AnalyzeInteraction/index.js +12 -56
  16. package/dist/cjs/paths/Ai/Insights/V1/Async/index.js +11 -10
  17. package/dist/cjs/paths/Ai/Insights/V1/index.js +11 -10
  18. package/dist/cjs/paths/Ai/Insights/index.js +11 -10
  19. package/dist/cjs/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/Insights/index.js +12 -56
  20. package/dist/cjs/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/index.js +13 -13
  21. package/dist/cjs/paths/Ai/Ringsense/V1/Public/Accounts/Domains/index.js +13 -14
  22. package/dist/cjs/paths/Ai/Ringsense/V1/Public/Accounts/index.js +13 -14
  23. package/dist/cjs/paths/Ai/Ringsense/V1/Public/index.js +11 -11
  24. package/dist/cjs/paths/Ai/Ringsense/V1/index.js +11 -10
  25. package/dist/cjs/paths/Ai/Ringsense/index.js +11 -10
  26. package/dist/cjs/paths/Ai/Status/V1/Jobs/index.js +17 -63
  27. package/dist/cjs/paths/Ai/Status/V1/index.js +11 -11
  28. package/dist/cjs/paths/Ai/Status/index.js +11 -10
  29. package/dist/cjs/paths/Ai/Text/V1/Async/Punctuate/index.js +12 -56
  30. package/dist/cjs/paths/Ai/Text/V1/Async/Summarize/index.js +12 -56
  31. package/dist/cjs/paths/Ai/Text/V1/Async/index.js +14 -13
  32. package/dist/cjs/paths/Ai/Text/V1/index.js +11 -10
  33. package/dist/cjs/paths/Ai/Text/index.js +11 -10
  34. package/dist/cjs/paths/Ai/index.js +21 -21
  35. package/dist/cjs/paths/Analytics/Calls/V1/Accounts/Aggregation/Fetch/index.js +12 -56
  36. package/dist/cjs/paths/Analytics/Calls/V1/Accounts/Aggregation/index.js +11 -10
  37. package/dist/cjs/paths/Analytics/Calls/V1/Accounts/Timeline/Fetch/index.js +12 -56
  38. package/dist/cjs/paths/Analytics/Calls/V1/Accounts/Timeline/index.js +11 -10
  39. package/dist/cjs/paths/Analytics/Calls/V1/Accounts/index.js +16 -16
  40. package/dist/cjs/paths/Analytics/Calls/V1/index.js +11 -11
  41. package/dist/cjs/paths/Analytics/Calls/index.js +11 -10
  42. package/dist/cjs/paths/Analytics/index.js +9 -9
  43. package/dist/cjs/paths/Rcvideo/V1/Account/Extension/Recordings/index.js +12 -56
  44. package/dist/cjs/paths/Rcvideo/V1/Account/Extension/index.js +13 -13
  45. package/dist/cjs/paths/Rcvideo/V1/Account/Recordings/index.js +12 -56
  46. package/dist/cjs/paths/Rcvideo/V1/Account/index.js +16 -17
  47. package/dist/cjs/paths/Rcvideo/V1/Accounts/Extensions/Delegators/index.js +12 -56
  48. package/dist/cjs/paths/Rcvideo/V1/Accounts/Extensions/index.js +13 -13
  49. package/dist/cjs/paths/Rcvideo/V1/Accounts/index.js +13 -14
  50. package/dist/cjs/paths/Rcvideo/V1/History/Meetings/index.js +21 -76
  51. package/dist/cjs/paths/Rcvideo/V1/History/index.js +11 -11
  52. package/dist/cjs/paths/Rcvideo/V1/index.js +17 -18
  53. package/dist/cjs/paths/Rcvideo/V2/Account/Extension/Bridges/Default/index.js +12 -56
  54. package/dist/cjs/paths/Rcvideo/V2/Account/Extension/Bridges/index.js +15 -59
  55. package/dist/cjs/paths/Rcvideo/V2/Account/Extension/index.js +13 -13
  56. package/dist/cjs/paths/Rcvideo/V2/Account/index.js +13 -14
  57. package/dist/cjs/paths/Rcvideo/V2/Bridges/Pin/Pstn/index.js +17 -63
  58. package/dist/cjs/paths/Rcvideo/V2/Bridges/Pin/Web/index.js +17 -63
  59. package/dist/cjs/paths/Rcvideo/V2/Bridges/Pin/index.js +14 -15
  60. package/dist/cjs/paths/Rcvideo/V2/Bridges/index.js +34 -100
  61. package/dist/cjs/paths/Rcvideo/V2/index.js +14 -15
  62. package/dist/cjs/paths/Rcvideo/index.js +12 -12
  63. package/dist/cjs/paths/Restapi/Account/A2pSms/Batches/index.js +25 -89
  64. package/dist/cjs/paths/Restapi/Account/A2pSms/Messages/index.js +21 -76
  65. package/dist/cjs/paths/Restapi/Account/A2pSms/OptOuts/BulkAssign/index.js +12 -56
  66. package/dist/cjs/paths/Restapi/Account/A2pSms/OptOuts/index.js +15 -59
  67. package/dist/cjs/paths/Restapi/Account/A2pSms/Statuses/index.js +12 -56
  68. package/dist/cjs/paths/Restapi/Account/A2pSms/index.js +20 -21
  69. package/dist/cjs/paths/Restapi/Account/ActiveCalls/index.js +12 -56
  70. package/dist/cjs/paths/Restapi/Account/AddressBookBulkUpload/Tasks/index.js +17 -63
  71. package/dist/cjs/paths/Restapi/Account/AddressBookBulkUpload/index.js +15 -60
  72. package/dist/cjs/paths/Restapi/Account/AnsweringRule/index.js +39 -123
  73. package/dist/cjs/paths/Restapi/Account/AssignedRole/index.js +12 -56
  74. package/dist/cjs/paths/Restapi/Account/AuditTrail/Search/index.js +12 -56
  75. package/dist/cjs/paths/Restapi/Account/AuditTrail/index.js +11 -10
  76. package/dist/cjs/paths/Restapi/Account/BusinessAddress/index.js +16 -69
  77. package/dist/cjs/paths/Restapi/Account/BusinessHours/index.js +16 -69
  78. package/dist/cjs/paths/Restapi/Account/CallLog/index.js +21 -76
  79. package/dist/cjs/paths/Restapi/Account/CallLogSync/index.js +12 -56
  80. package/dist/cjs/paths/Restapi/Account/CallMonitoringGroups/BulkAssign/index.js +12 -56
  81. package/dist/cjs/paths/Restapi/Account/CallMonitoringGroups/Members/index.js +12 -56
  82. package/dist/cjs/paths/Restapi/Account/CallMonitoringGroups/index.js +38 -112
  83. package/dist/cjs/paths/Restapi/Account/CallQueues/BulkAssign/index.js +12 -56
  84. package/dist/cjs/paths/Restapi/Account/CallQueues/Members/index.js +12 -56
  85. package/dist/cjs/paths/Restapi/Account/CallQueues/Presence/index.js +16 -69
  86. package/dist/cjs/paths/Restapi/Account/CallQueues/index.js +37 -102
  87. package/dist/cjs/paths/Restapi/Account/CallRecording/BulkAssign/index.js +12 -56
  88. package/dist/cjs/paths/Restapi/Account/CallRecording/CustomGreetings/index.js +25 -89
  89. package/dist/cjs/paths/Restapi/Account/CallRecording/Extensions/index.js +12 -56
  90. package/dist/cjs/paths/Restapi/Account/CallRecording/index.js +25 -79
  91. package/dist/cjs/paths/Restapi/Account/CallRecordings/index.js +12 -56
  92. package/dist/cjs/paths/Restapi/Account/CustomFields/index.js +32 -106
  93. package/dist/cjs/paths/Restapi/Account/Device/Emergency/index.js +12 -56
  94. package/dist/cjs/paths/Restapi/Account/Device/SipInfo/index.js +12 -56
  95. package/dist/cjs/paths/Restapi/Account/Device/index.js +30 -86
  96. package/dist/cjs/paths/Restapi/Account/Directory/Entries/Search/index.js +12 -56
  97. package/dist/cjs/paths/Restapi/Account/Directory/Entries/index.js +24 -79
  98. package/dist/cjs/paths/Restapi/Account/Directory/Federation/index.js +12 -56
  99. package/dist/cjs/paths/Restapi/Account/Directory/index.js +14 -14
  100. package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Devices/BulkAssign/index.js +12 -56
  101. package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Devices/index.js +15 -59
  102. package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Networks/index.js +39 -123
  103. package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Switches/index.js +39 -123
  104. package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkCreate/index.js +12 -56
  105. package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkUpdate/index.js +12 -56
  106. package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkValidate/index.js +12 -56
  107. package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Tasks/index.js +17 -63
  108. package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Users/BulkAssign/index.js +12 -56
  109. package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Users/index.js +15 -59
  110. package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPoints/index.js +39 -123
  111. package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkCreate/index.js +12 -56
  112. package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkUpdate/index.js +12 -56
  113. package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkValidate/index.js +12 -56
  114. package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/index.js +44 -47
  115. package/dist/cjs/paths/Restapi/Account/EmergencyLocations/index.js +39 -123
  116. package/dist/cjs/paths/Restapi/Account/Extension/ActiveCalls/index.js +12 -56
  117. package/dist/cjs/paths/Restapi/Account/Extension/AddressBook/Contact/index.js +46 -140
  118. package/dist/cjs/paths/Restapi/Account/Extension/AddressBook/index.js +11 -11
  119. package/dist/cjs/paths/Restapi/Account/Extension/AddressBookSync/index.js +12 -56
  120. package/dist/cjs/paths/Restapi/Account/Extension/AdministeredSites/index.js +16 -69
  121. package/dist/cjs/paths/Restapi/Account/Extension/AnsweringRule/index.js +39 -123
  122. package/dist/cjs/paths/Restapi/Account/Extension/AssignableRoles/index.js +12 -56
  123. package/dist/cjs/paths/Restapi/Account/Extension/AssignedRole/Default/index.js +12 -56
  124. package/dist/cjs/paths/Restapi/Account/Extension/AssignedRole/index.js +19 -72
  125. package/dist/cjs/paths/Restapi/Account/Extension/AuthzProfile/Check/index.js +12 -56
  126. package/dist/cjs/paths/Restapi/Account/Extension/AuthzProfile/index.js +15 -59
  127. package/dist/cjs/paths/Restapi/Account/Extension/BusinessHours/index.js +16 -69
  128. package/dist/cjs/paths/Restapi/Account/Extension/CallLog/index.js +25 -89
  129. package/dist/cjs/paths/Restapi/Account/Extension/CallLogSync/index.js +12 -56
  130. package/dist/cjs/paths/Restapi/Account/Extension/CallQueuePresence/index.js +16 -69
  131. package/dist/cjs/paths/Restapi/Account/Extension/CallQueues/index.js +12 -56
  132. package/dist/cjs/paths/Restapi/Account/Extension/CallerBlocking/PhoneNumbers/index.js +39 -123
  133. package/dist/cjs/paths/Restapi/Account/Extension/CallerBlocking/index.js +19 -73
  134. package/dist/cjs/paths/Restapi/Account/Extension/CallerId/index.js +16 -69
  135. package/dist/cjs/paths/Restapi/Account/Extension/CompanyPager/index.js +12 -56
  136. package/dist/cjs/paths/Restapi/Account/Extension/Conferencing/index.js +16 -69
  137. package/dist/cjs/paths/Restapi/Account/Extension/Device/index.js +12 -56
  138. package/dist/cjs/paths/Restapi/Account/Extension/EmergencyLocations/index.js +39 -123
  139. package/dist/cjs/paths/Restapi/Account/Extension/Favorite/index.js +16 -69
  140. package/dist/cjs/paths/Restapi/Account/Extension/Fax/index.js +14 -60
  141. package/dist/cjs/paths/Restapi/Account/Extension/Features/index.js +12 -56
  142. package/dist/cjs/paths/Restapi/Account/Extension/ForwardingNumber/index.js +43 -136
  143. package/dist/cjs/paths/Restapi/Account/Extension/Grant/index.js +12 -56
  144. package/dist/cjs/paths/Restapi/Account/Extension/Greeting/Content/index.js +14 -66
  145. package/dist/cjs/paths/Restapi/Account/Extension/Greeting/index.js +26 -83
  146. package/dist/cjs/paths/Restapi/Account/Extension/MessageStore/Content/index.js +19 -73
  147. package/dist/cjs/paths/Restapi/Account/Extension/MessageStore/index.js +49 -144
  148. package/dist/cjs/paths/Restapi/Account/Extension/MessageStoreTemplates/index.js +39 -123
  149. package/dist/cjs/paths/Restapi/Account/Extension/MessageSync/index.js +12 -56
  150. package/dist/cjs/paths/Restapi/Account/Extension/Mms/index.js +14 -60
  151. package/dist/cjs/paths/Restapi/Account/Extension/NotificationSettings/index.js +16 -69
  152. package/dist/cjs/paths/Restapi/Account/Extension/OverflowSettings/index.js +16 -69
  153. package/dist/cjs/paths/Restapi/Account/Extension/PhoneNumber/index.js +12 -56
  154. package/dist/cjs/paths/Restapi/Account/Extension/Presence/index.js +16 -69
  155. package/dist/cjs/paths/Restapi/Account/Extension/ProfileImage/index.js +40 -131
  156. package/dist/cjs/paths/Restapi/Account/Extension/RingOut/index.js +28 -93
  157. package/dist/cjs/paths/Restapi/Account/Extension/Sms/index.js +14 -60
  158. package/dist/cjs/paths/Restapi/Account/Extension/UnifiedPresence/index.js +16 -69
  159. package/dist/cjs/paths/Restapi/Account/Extension/VideoConfiguration/index.js +12 -56
  160. package/dist/cjs/paths/Restapi/Account/Extension/index.js +146 -229
  161. package/dist/cjs/paths/Restapi/Account/ExtensionBulkUpdate/Tasks/index.js +17 -63
  162. package/dist/cjs/paths/Restapi/Account/ExtensionBulkUpdate/index.js +15 -60
  163. package/dist/cjs/paths/Restapi/Account/ForwardAllCalls/index.js +16 -69
  164. package/dist/cjs/paths/Restapi/Account/Greeting/Content/index.js +14 -66
  165. package/dist/cjs/paths/Restapi/Account/Greeting/index.js +17 -63
  166. package/dist/cjs/paths/Restapi/Account/IvrMenus/index.js +32 -106
  167. package/dist/cjs/paths/Restapi/Account/IvrPrompts/Content/index.js +14 -66
  168. package/dist/cjs/paths/Restapi/Account/IvrPrompts/index.js +44 -130
  169. package/dist/cjs/paths/Restapi/Account/MessageStoreConfiguration/index.js +16 -69
  170. package/dist/cjs/paths/Restapi/Account/MessageStoreReport/Archive/index.js +12 -56
  171. package/dist/cjs/paths/Restapi/Account/MessageStoreReport/index.js +24 -79
  172. package/dist/cjs/paths/Restapi/Account/MessageStoreTemplates/index.js +39 -123
  173. package/dist/cjs/paths/Restapi/Account/PagingOnlyGroups/BulkAssign/index.js +12 -56
  174. package/dist/cjs/paths/Restapi/Account/PagingOnlyGroups/Devices/index.js +12 -56
  175. package/dist/cjs/paths/Restapi/Account/PagingOnlyGroups/Users/index.js +12 -56
  176. package/dist/cjs/paths/Restapi/Account/PagingOnlyGroups/index.js +19 -19
  177. package/dist/cjs/paths/Restapi/Account/PhoneNumber/index.js +21 -76
  178. package/dist/cjs/paths/Restapi/Account/Presence/index.js +12 -56
  179. package/dist/cjs/paths/Restapi/Account/Recording/Content/index.js +14 -66
  180. package/dist/cjs/paths/Restapi/Account/Recording/index.js +20 -66
  181. package/dist/cjs/paths/Restapi/Account/ServiceInfo/index.js +12 -56
  182. package/dist/cjs/paths/Restapi/Account/Sites/BulkAssign/index.js +12 -56
  183. package/dist/cjs/paths/Restapi/Account/Sites/Ivr/index.js +16 -69
  184. package/dist/cjs/paths/Restapi/Account/Sites/Members/index.js +12 -56
  185. package/dist/cjs/paths/Restapi/Account/Sites/index.js +48 -132
  186. package/dist/cjs/paths/Restapi/Account/Telephony/CallOut/index.js +12 -56
  187. package/dist/cjs/paths/Restapi/Account/Telephony/Conference/index.js +12 -56
  188. package/dist/cjs/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/Content/index.js +12 -56
  189. package/dist/cjs/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/index.js +13 -13
  190. package/dist/cjs/paths/Restapi/Account/Telephony/Metadata/index.js +11 -11
  191. package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Answer/index.js +12 -56
  192. package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Bridge/index.js +12 -56
  193. package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/BringIn/index.js +12 -56
  194. package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Flip/index.js +12 -56
  195. package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Forward/index.js +12 -56
  196. package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Hold/index.js +12 -56
  197. package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Ignore/index.js +12 -56
  198. package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Park/index.js +12 -56
  199. package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Pickup/index.js +12 -56
  200. package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Recordings/index.js +21 -76
  201. package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Reject/index.js +12 -56
  202. package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Reply/index.js +12 -56
  203. package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Supervise/index.js +12 -56
  204. package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Transfer/index.js +12 -56
  205. package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Unhold/index.js +12 -56
  206. package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/index.js +76 -143
  207. package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Supervise/index.js +12 -56
  208. package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/index.js +30 -87
  209. package/dist/cjs/paths/Restapi/Account/Telephony/index.js +20 -20
  210. package/dist/cjs/paths/Restapi/Account/Templates/index.js +21 -76
  211. package/dist/cjs/paths/Restapi/Account/UserRole/BulkAssign/index.js +12 -56
  212. package/dist/cjs/paths/Restapi/Account/UserRole/Default/index.js +16 -69
  213. package/dist/cjs/paths/Restapi/Account/UserRole/index.js +45 -129
  214. package/dist/cjs/paths/Restapi/Account/index.js +128 -192
  215. package/dist/cjs/paths/Restapi/ClientInfo/SipProvision/index.js +12 -56
  216. package/dist/cjs/paths/Restapi/ClientInfo/index.js +11 -10
  217. package/dist/cjs/paths/Restapi/Dictionary/Brand/ContractedCountry/index.js +21 -76
  218. package/dist/cjs/paths/Restapi/Dictionary/Brand/index.js +13 -14
  219. package/dist/cjs/paths/Restapi/Dictionary/Country/index.js +21 -76
  220. package/dist/cjs/paths/Restapi/Dictionary/FaxCoverPage/index.js +12 -56
  221. package/dist/cjs/paths/Restapi/Dictionary/Greeting/index.js +21 -76
  222. package/dist/cjs/paths/Restapi/Dictionary/Language/index.js +21 -76
  223. package/dist/cjs/paths/Restapi/Dictionary/Location/index.js +12 -56
  224. package/dist/cjs/paths/Restapi/Dictionary/Permission/index.js +21 -76
  225. package/dist/cjs/paths/Restapi/Dictionary/PermissionCategory/index.js +21 -76
  226. package/dist/cjs/paths/Restapi/Dictionary/State/index.js +21 -76
  227. package/dist/cjs/paths/Restapi/Dictionary/Timezone/index.js +21 -76
  228. package/dist/cjs/paths/Restapi/Dictionary/UserRole/index.js +21 -76
  229. package/dist/cjs/paths/Restapi/Dictionary/index.js +41 -49
  230. package/dist/cjs/paths/Restapi/NumberParser/Parse/index.js +12 -56
  231. package/dist/cjs/paths/Restapi/NumberParser/index.js +11 -10
  232. package/dist/cjs/paths/Restapi/Oauth/Authorize/index.js +16 -69
  233. package/dist/cjs/paths/Restapi/Oauth/Revoke/index.js +12 -56
  234. package/dist/cjs/paths/Restapi/Oauth/Token/index.js +12 -56
  235. package/dist/cjs/paths/Restapi/Oauth/index.js +17 -16
  236. package/dist/cjs/paths/Restapi/Subscription/Renew/index.js +12 -56
  237. package/dist/cjs/paths/Restapi/Subscription/index.js +42 -126
  238. package/dist/cjs/paths/Restapi/V2/Accounts/BatchProvisioning/Users/index.js +12 -56
  239. package/dist/cjs/paths/Restapi/V2/Accounts/BatchProvisioning/index.js +11 -10
  240. package/dist/cjs/paths/Restapi/V2/Accounts/CostCenters/index.js +12 -56
  241. package/dist/cjs/paths/Restapi/V2/Accounts/DeviceInventory/index.js +16 -69
  242. package/dist/cjs/paths/Restapi/V2/Accounts/Devices/BulkAdd/index.js +12 -56
  243. package/dist/cjs/paths/Restapi/V2/Accounts/Devices/index.js +20 -66
  244. package/dist/cjs/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.js +16 -69
  245. package/dist/cjs/paths/Restapi/V2/Accounts/Extensions/Devices/Replace/index.js +12 -56
  246. package/dist/cjs/paths/Restapi/V2/Accounts/Extensions/Devices/index.js +13 -13
  247. package/dist/cjs/paths/Restapi/V2/Accounts/Extensions/index.js +18 -63
  248. package/dist/cjs/paths/Restapi/V2/Accounts/PhoneNumbers/BulkAdd/index.js +21 -76
  249. package/dist/cjs/paths/Restapi/V2/Accounts/PhoneNumbers/Replace/index.js +12 -56
  250. package/dist/cjs/paths/Restapi/V2/Accounts/PhoneNumbers/index.js +31 -96
  251. package/dist/cjs/paths/Restapi/V2/Accounts/SendActivationEmail/index.js +12 -56
  252. package/dist/cjs/paths/Restapi/V2/Accounts/SendWelcomeEmail/index.js +12 -56
  253. package/dist/cjs/paths/Restapi/V2/Accounts/index.js +41 -89
  254. package/dist/cjs/paths/Restapi/V2/index.js +11 -11
  255. package/dist/cjs/paths/Restapi/index.js +40 -98
  256. package/dist/cjs/paths/Scim/ResourceTypes/index.js +21 -76
  257. package/dist/cjs/paths/Scim/Schemas/index.js +21 -76
  258. package/dist/cjs/paths/Scim/ServiceProviderConfig/index.js +12 -56
  259. package/dist/cjs/paths/Scim/Users/DotSearch/index.js +12 -56
  260. package/dist/cjs/paths/Scim/Users/index.js +49 -143
  261. package/dist/cjs/paths/Scim/index.js +20 -24
  262. package/dist/cjs/paths/TeamMessaging/V1/AdaptiveCards/index.js +31 -97
  263. package/dist/cjs/paths/TeamMessaging/V1/Chats/AdaptiveCards/index.js +12 -56
  264. package/dist/cjs/paths/TeamMessaging/V1/Chats/Favorite/index.js +12 -56
  265. package/dist/cjs/paths/TeamMessaging/V1/Chats/Notes/index.js +16 -69
  266. package/dist/cjs/paths/TeamMessaging/V1/Chats/Posts/index.js +39 -123
  267. package/dist/cjs/paths/TeamMessaging/V1/Chats/Tasks/index.js +16 -69
  268. package/dist/cjs/paths/TeamMessaging/V1/Chats/Unfavorite/index.js +12 -56
  269. package/dist/cjs/paths/TeamMessaging/V1/Chats/index.js +39 -95
  270. package/dist/cjs/paths/TeamMessaging/V1/Companies/index.js +17 -63
  271. package/dist/cjs/paths/TeamMessaging/V1/Conversations/index.js +25 -89
  272. package/dist/cjs/paths/TeamMessaging/V1/DataExport/index.js +25 -89
  273. package/dist/cjs/paths/TeamMessaging/V1/Events/index.js +39 -123
  274. package/dist/cjs/paths/TeamMessaging/V1/Everyone/index.js +16 -69
  275. package/dist/cjs/paths/TeamMessaging/V1/Favorites/index.js +12 -56
  276. package/dist/cjs/paths/TeamMessaging/V1/Files/index.js +14 -60
  277. package/dist/cjs/paths/TeamMessaging/V1/Groups/Events/index.js +16 -69
  278. package/dist/cjs/paths/TeamMessaging/V1/Groups/Webhooks/index.js +16 -69
  279. package/dist/cjs/paths/TeamMessaging/V1/Groups/index.js +16 -16
  280. package/dist/cjs/paths/TeamMessaging/V1/Notes/Lock/index.js +12 -56
  281. package/dist/cjs/paths/TeamMessaging/V1/Notes/Publish/index.js +12 -56
  282. package/dist/cjs/paths/TeamMessaging/V1/Notes/Unlock/index.js +12 -56
  283. package/dist/cjs/paths/TeamMessaging/V1/Notes/index.js +40 -106
  284. package/dist/cjs/paths/TeamMessaging/V1/Persons/index.js +17 -63
  285. package/dist/cjs/paths/TeamMessaging/V1/Recent/Chats/index.js +12 -56
  286. package/dist/cjs/paths/TeamMessaging/V1/Recent/index.js +11 -10
  287. package/dist/cjs/paths/TeamMessaging/V1/Tasks/Complete/index.js +12 -56
  288. package/dist/cjs/paths/TeamMessaging/V1/Tasks/index.js +34 -100
  289. package/dist/cjs/paths/TeamMessaging/V1/Teams/Add/index.js +12 -56
  290. package/dist/cjs/paths/TeamMessaging/V1/Teams/Archive/index.js +12 -56
  291. package/dist/cjs/paths/TeamMessaging/V1/Teams/Join/index.js +12 -56
  292. package/dist/cjs/paths/TeamMessaging/V1/Teams/Leave/index.js +12 -56
  293. package/dist/cjs/paths/TeamMessaging/V1/Teams/Remove/index.js +12 -56
  294. package/dist/cjs/paths/TeamMessaging/V1/Teams/Unarchive/index.js +12 -56
  295. package/dist/cjs/paths/TeamMessaging/V1/Teams/index.js +57 -141
  296. package/dist/cjs/paths/TeamMessaging/V1/Webhooks/Activate/index.js +12 -56
  297. package/dist/cjs/paths/TeamMessaging/V1/Webhooks/Suspend/index.js +12 -56
  298. package/dist/cjs/paths/TeamMessaging/V1/Webhooks/index.js +34 -99
  299. package/dist/cjs/paths/TeamMessaging/V1/index.js +56 -67
  300. package/dist/cjs/paths/TeamMessaging/index.js +9 -9
  301. package/dist/cjs/paths/Webinar/Configuration/V1/Company/Sessions/index.js +12 -56
  302. package/dist/cjs/paths/Webinar/Configuration/V1/Company/index.js +11 -10
  303. package/dist/cjs/paths/Webinar/Configuration/V1/Sessions/index.js +12 -56
  304. package/dist/cjs/paths/Webinar/Configuration/V1/Webinars/Sessions/Invitees/index.js +39 -123
  305. package/dist/cjs/paths/Webinar/Configuration/V1/Webinars/Sessions/index.js +38 -114
  306. package/dist/cjs/paths/Webinar/Configuration/V1/Webinars/index.js +42 -127
  307. package/dist/cjs/paths/Webinar/Configuration/V1/index.js +17 -17
  308. package/dist/cjs/paths/Webinar/Configuration/index.js +11 -10
  309. package/dist/cjs/paths/Webinar/History/V1/Company/Recordings/index.js +21 -76
  310. package/dist/cjs/paths/Webinar/History/V1/Company/Sessions/index.js +12 -56
  311. package/dist/cjs/paths/Webinar/History/V1/Company/index.js +14 -14
  312. package/dist/cjs/paths/Webinar/History/V1/Recordings/Download/index.js +12 -56
  313. package/dist/cjs/paths/Webinar/History/V1/Recordings/index.js +24 -79
  314. package/dist/cjs/paths/Webinar/History/V1/Sessions/index.js +12 -56
  315. package/dist/cjs/paths/Webinar/History/V1/Webinars/Sessions/Invitees/index.js +21 -76
  316. package/dist/cjs/paths/Webinar/History/V1/Webinars/Sessions/Participants/Self/index.js +12 -56
  317. package/dist/cjs/paths/Webinar/History/V1/Webinars/Sessions/Participants/index.js +15 -59
  318. package/dist/cjs/paths/Webinar/History/V1/Webinars/Sessions/index.js +23 -70
  319. package/dist/cjs/paths/Webinar/History/V1/Webinars/index.js +20 -67
  320. package/dist/cjs/paths/Webinar/History/V1/index.js +20 -21
  321. package/dist/cjs/paths/Webinar/History/index.js +11 -10
  322. package/dist/cjs/paths/Webinar/Notifications/V1/Subscriptions/Renew/index.js +12 -56
  323. package/dist/cjs/paths/Webinar/Notifications/V1/Subscriptions/index.js +42 -126
  324. package/dist/cjs/paths/Webinar/Notifications/V1/index.js +11 -11
  325. package/dist/cjs/paths/Webinar/Notifications/index.js +11 -10
  326. package/dist/cjs/paths/Webinar/Registration/V1/Sessions/Registrants/index.js +32 -106
  327. package/dist/cjs/paths/Webinar/Registration/V1/Sessions/index.js +27 -84
  328. package/dist/cjs/paths/Webinar/Registration/V1/index.js +11 -11
  329. package/dist/cjs/paths/Webinar/Registration/index.js +11 -10
  330. package/dist/cjs/paths/Webinar/index.js +18 -18
  331. package/dist/esm/index.d.ts +1 -1
  332. package/package.json +5 -5
@@ -1,96 +1,61 @@
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
- var index_js_1 = __importDefault(require("./MessageStoreTemplates/index.js"));
43
- var index_js_2 = __importDefault(require("./NotificationSettings/index.js"));
44
- var index_js_3 = __importDefault(require("./CallQueuePresence/index.js"));
45
- var index_js_4 = __importDefault(require("./VideoConfiguration/index.js"));
46
- var index_js_5 = __importDefault(require("./EmergencyLocations/index.js"));
47
- var index_js_6 = __importDefault(require("./AdministeredSites/index.js"));
48
- var index_js_7 = __importDefault(require("./OverflowSettings/index.js"));
49
- var index_js_8 = __importDefault(require("./AddressBookSync/index.js"));
50
- var index_js_9 = __importDefault(require("./ForwardingNumber/index.js"));
51
- var index_js_10 = __importDefault(require("./UnifiedPresence/index.js"));
52
- var index_js_11 = __importDefault(require("./AssignableRoles/index.js"));
53
- var index_js_12 = __importDefault(require("./CallerBlocking/index.js"));
54
- var index_js_13 = __importDefault(require("./BusinessHours/index.js"));
55
- var index_js_14 = __importDefault(require("./AnsweringRule/index.js"));
56
- var index_js_15 = __importDefault(require("./AssignedRole/index.js"));
57
- var index_js_16 = __importDefault(require("./AuthzProfile/index.js"));
58
- var index_js_17 = __importDefault(require("./CompanyPager/index.js"));
59
- var index_js_18 = __importDefault(require("./CallLogSync/index.js"));
60
- var index_js_19 = __importDefault(require("./MessageStore/index.js"));
61
- var index_js_20 = __importDefault(require("./ProfileImage/index.js"));
62
- var index_js_21 = __importDefault(require("./PhoneNumber/index.js"));
63
- var index_js_22 = __importDefault(require("./ActiveCalls/index.js"));
64
- var index_js_23 = __importDefault(require("./MessageSync/index.js"));
65
- var index_js_24 = __importDefault(require("./Conferencing/index.js"));
66
- var index_js_25 = __importDefault(require("./AddressBook/index.js"));
67
- var index_js_26 = __importDefault(require("./CallQueues/index.js"));
68
- var index_js_27 = __importDefault(require("./CallerId/index.js"));
69
- var index_js_28 = __importDefault(require("./Features/index.js"));
70
- var index_js_29 = __importDefault(require("./Presence/index.js"));
71
- var index_js_30 = __importDefault(require("./Favorite/index.js"));
72
- var index_js_31 = __importDefault(require("./RingOut/index.js"));
73
- var index_js_32 = __importDefault(require("./Greeting/index.js"));
74
- var index_js_33 = __importDefault(require("./CallLog/index.js"));
75
- var index_js_34 = __importDefault(require("./Device/index.js"));
76
- var index_js_35 = __importDefault(require("./Grant/index.js"));
77
- var index_js_36 = __importDefault(require("./Mms/index.js"));
78
- var index_js_37 = __importDefault(require("./Sms/index.js"));
79
- var index_js_38 = __importDefault(require("./Fax/index.js"));
80
- var Index = /** @class */ (function () {
81
- function Index(_parent, extensionId) {
82
- if (extensionId === void 0) { extensionId = "~"; }
6
+ const index_js_1 = __importDefault(require("./MessageStoreTemplates/index.js"));
7
+ const index_js_2 = __importDefault(require("./NotificationSettings/index.js"));
8
+ const index_js_3 = __importDefault(require("./CallQueuePresence/index.js"));
9
+ const index_js_4 = __importDefault(require("./VideoConfiguration/index.js"));
10
+ const index_js_5 = __importDefault(require("./EmergencyLocations/index.js"));
11
+ const index_js_6 = __importDefault(require("./AdministeredSites/index.js"));
12
+ const index_js_7 = __importDefault(require("./OverflowSettings/index.js"));
13
+ const index_js_8 = __importDefault(require("./AddressBookSync/index.js"));
14
+ const index_js_9 = __importDefault(require("./ForwardingNumber/index.js"));
15
+ const index_js_10 = __importDefault(require("./UnifiedPresence/index.js"));
16
+ const index_js_11 = __importDefault(require("./AssignableRoles/index.js"));
17
+ const index_js_12 = __importDefault(require("./CallerBlocking/index.js"));
18
+ const index_js_13 = __importDefault(require("./BusinessHours/index.js"));
19
+ const index_js_14 = __importDefault(require("./AnsweringRule/index.js"));
20
+ const index_js_15 = __importDefault(require("./AssignedRole/index.js"));
21
+ const index_js_16 = __importDefault(require("./AuthzProfile/index.js"));
22
+ const index_js_17 = __importDefault(require("./CompanyPager/index.js"));
23
+ const index_js_18 = __importDefault(require("./CallLogSync/index.js"));
24
+ const index_js_19 = __importDefault(require("./MessageStore/index.js"));
25
+ const index_js_20 = __importDefault(require("./ProfileImage/index.js"));
26
+ const index_js_21 = __importDefault(require("./PhoneNumber/index.js"));
27
+ const index_js_22 = __importDefault(require("./ActiveCalls/index.js"));
28
+ const index_js_23 = __importDefault(require("./MessageSync/index.js"));
29
+ const index_js_24 = __importDefault(require("./Conferencing/index.js"));
30
+ const index_js_25 = __importDefault(require("./AddressBook/index.js"));
31
+ const index_js_26 = __importDefault(require("./CallQueues/index.js"));
32
+ const index_js_27 = __importDefault(require("./CallerId/index.js"));
33
+ const index_js_28 = __importDefault(require("./Features/index.js"));
34
+ const index_js_29 = __importDefault(require("./Presence/index.js"));
35
+ const index_js_30 = __importDefault(require("./Favorite/index.js"));
36
+ const index_js_31 = __importDefault(require("./RingOut/index.js"));
37
+ const index_js_32 = __importDefault(require("./Greeting/index.js"));
38
+ const index_js_33 = __importDefault(require("./CallLog/index.js"));
39
+ const index_js_34 = __importDefault(require("./Device/index.js"));
40
+ const index_js_35 = __importDefault(require("./Grant/index.js"));
41
+ const index_js_36 = __importDefault(require("./Mms/index.js"));
42
+ const index_js_37 = __importDefault(require("./Sms/index.js"));
43
+ const index_js_38 = __importDefault(require("./Fax/index.js"));
44
+ class Index {
45
+ rc;
46
+ _parent;
47
+ extensionId;
48
+ constructor(_parent, extensionId = "~") {
83
49
  this._parent = _parent;
84
50
  this.rc = _parent.rc;
85
51
  this.extensionId = extensionId;
86
52
  }
87
- Index.prototype.path = function (withParameter) {
88
- if (withParameter === void 0) { withParameter = true; }
53
+ path(withParameter = true) {
89
54
  if (withParameter && this.extensionId !== null) {
90
- return "".concat(this._parent.path(), "/extension/").concat(this.extensionId);
55
+ return `${this._parent.path()}/extension/${this.extensionId}`;
91
56
  }
92
- return "".concat(this._parent.path(), "/extension");
93
- };
57
+ return `${this._parent.path()}/extension`;
58
+ }
94
59
  /**
95
60
  * Returns the list of extensions created for a particular account.
96
61
  * All types of extensions are included in this list.
@@ -101,19 +66,10 @@ var Index = /** @class */ (function () {
101
66
  * App Permission: ReadAccounts
102
67
  * User Permission: ReadExtensions
103
68
  */
104
- Index.prototype.list = function (queryParams, restRequestConfig) {
105
- return __awaiter(this, void 0, void 0, function () {
106
- var r;
107
- return __generator(this, function (_a) {
108
- switch (_a.label) {
109
- case 0: return [4 /*yield*/, this.rc.get(this.path(false), queryParams, restRequestConfig)];
110
- case 1:
111
- r = _a.sent();
112
- return [2 /*return*/, r.data];
113
- }
114
- });
115
- });
116
- };
69
+ async list(queryParams, restRequestConfig) {
70
+ const r = await this.rc.get(this.path(false), queryParams, restRequestConfig);
71
+ return r.data;
72
+ }
117
73
  /**
118
74
  * Creates an extension.
119
75
  *
@@ -123,19 +79,10 @@ var Index = /** @class */ (function () {
123
79
  * App Permission: EditAccounts
124
80
  * User Permission: AddRemoveUsers
125
81
  */
126
- Index.prototype.post = function (extensionCreationRequest, restRequestConfig) {
127
- return __awaiter(this, void 0, void 0, function () {
128
- var r;
129
- return __generator(this, function (_a) {
130
- switch (_a.label) {
131
- case 0: return [4 /*yield*/, this.rc.post(this.path(false), extensionCreationRequest, undefined, restRequestConfig)];
132
- case 1:
133
- r = _a.sent();
134
- return [2 /*return*/, r.data];
135
- }
136
- });
137
- });
138
- };
82
+ async post(extensionCreationRequest, restRequestConfig) {
83
+ const r = await this.rc.post(this.path(false), extensionCreationRequest, undefined, restRequestConfig);
84
+ return r.data;
85
+ }
139
86
  /**
140
87
  * Returns basic information about a particular extension of an account.
141
88
  *
@@ -145,23 +92,13 @@ var Index = /** @class */ (function () {
145
92
  * App Permission: ReadAccounts
146
93
  * User Permission: ReadExtensions
147
94
  */
148
- Index.prototype.get = function (restRequestConfig) {
149
- return __awaiter(this, void 0, void 0, function () {
150
- var r;
151
- return __generator(this, function (_a) {
152
- switch (_a.label) {
153
- case 0:
154
- if (this.extensionId === null) {
155
- throw new Error("extensionId must be specified.");
156
- }
157
- return [4 /*yield*/, this.rc.get(this.path(), undefined, restRequestConfig)];
158
- case 1:
159
- r = _a.sent();
160
- return [2 /*return*/, r.data];
161
- }
162
- });
163
- });
164
- };
95
+ async get(restRequestConfig) {
96
+ if (this.extensionId === null) {
97
+ throw new Error("extensionId must be specified.");
98
+ }
99
+ const r = await this.rc.get(this.path(), undefined, restRequestConfig);
100
+ return r.data;
101
+ }
165
102
  /**
166
103
  * Updates the user settings.
167
104
  * HTTP Method: put
@@ -170,146 +107,126 @@ var Index = /** @class */ (function () {
170
107
  * App Permission: EditExtensions
171
108
  * User Permission: EditUserInfo OR EditUserCredentials
172
109
  */
173
- Index.prototype.put = function (extensionUpdateRequest, restRequestConfig) {
174
- return __awaiter(this, void 0, void 0, function () {
175
- var r;
176
- return __generator(this, function (_a) {
177
- switch (_a.label) {
178
- case 0:
179
- if (this.extensionId === null) {
180
- throw new Error("extensionId must be specified.");
181
- }
182
- return [4 /*yield*/, this.rc.put(this.path(), extensionUpdateRequest, undefined, restRequestConfig)];
183
- case 1:
184
- r = _a.sent();
185
- return [2 /*return*/, r.data];
186
- }
187
- });
188
- });
189
- };
190
- Index.prototype.fax = function () {
110
+ async put(extensionUpdateRequest, restRequestConfig) {
111
+ if (this.extensionId === null) {
112
+ throw new Error("extensionId must be specified.");
113
+ }
114
+ const r = await this.rc.put(this.path(), extensionUpdateRequest, undefined, restRequestConfig);
115
+ return r.data;
116
+ }
117
+ fax() {
191
118
  return new index_js_38.default(this);
192
- };
193
- Index.prototype.sms = function () {
119
+ }
120
+ sms() {
194
121
  return new index_js_37.default(this);
195
- };
196
- Index.prototype.mms = function () {
122
+ }
123
+ mms() {
197
124
  return new index_js_36.default(this);
198
- };
199
- Index.prototype.grant = function () {
125
+ }
126
+ grant() {
200
127
  return new index_js_35.default(this);
201
- };
202
- Index.prototype.device = function () {
128
+ }
129
+ device() {
203
130
  return new index_js_34.default(this);
204
- };
205
- Index.prototype.callLog = function (callRecordId) {
206
- if (callRecordId === void 0) { callRecordId = null; }
131
+ }
132
+ callLog(callRecordId = null) {
207
133
  return new index_js_33.default(this, callRecordId);
208
- };
209
- Index.prototype.greeting = function (greetingId) {
210
- if (greetingId === void 0) { greetingId = null; }
134
+ }
135
+ greeting(greetingId = null) {
211
136
  return new index_js_32.default(this, greetingId);
212
- };
213
- Index.prototype.ringOut = function (ringoutId) {
214
- if (ringoutId === void 0) { ringoutId = null; }
137
+ }
138
+ ringOut(ringoutId = null) {
215
139
  return new index_js_31.default(this, ringoutId);
216
- };
217
- Index.prototype.favorite = function () {
140
+ }
141
+ favorite() {
218
142
  return new index_js_30.default(this);
219
- };
220
- Index.prototype.presence = function () {
143
+ }
144
+ presence() {
221
145
  return new index_js_29.default(this);
222
- };
223
- Index.prototype.features = function () {
146
+ }
147
+ features() {
224
148
  return new index_js_28.default(this);
225
- };
226
- Index.prototype.callerId = function () {
149
+ }
150
+ callerId() {
227
151
  return new index_js_27.default(this);
228
- };
229
- Index.prototype.callQueues = function () {
152
+ }
153
+ callQueues() {
230
154
  return new index_js_26.default(this);
231
- };
232
- Index.prototype.addressBook = function () {
155
+ }
156
+ addressBook() {
233
157
  return new index_js_25.default(this);
234
- };
235
- Index.prototype.conferencing = function () {
158
+ }
159
+ conferencing() {
236
160
  return new index_js_24.default(this);
237
- };
238
- Index.prototype.messageSync = function () {
161
+ }
162
+ messageSync() {
239
163
  return new index_js_23.default(this);
240
- };
241
- Index.prototype.activeCalls = function () {
164
+ }
165
+ activeCalls() {
242
166
  return new index_js_22.default(this);
243
- };
244
- Index.prototype.phoneNumber = function () {
167
+ }
168
+ phoneNumber() {
245
169
  return new index_js_21.default(this);
246
- };
247
- Index.prototype.profileImage = function (scaleSize) {
248
- if (scaleSize === void 0) { scaleSize = null; }
170
+ }
171
+ profileImage(scaleSize = null) {
249
172
  return new index_js_20.default(this, scaleSize);
250
- };
251
- Index.prototype.messageStore = function (messageId) {
252
- if (messageId === void 0) { messageId = null; }
173
+ }
174
+ messageStore(messageId = null) {
253
175
  return new index_js_19.default(this, messageId);
254
- };
255
- Index.prototype.callLogSync = function () {
176
+ }
177
+ callLogSync() {
256
178
  return new index_js_18.default(this);
257
- };
258
- Index.prototype.companyPager = function () {
179
+ }
180
+ companyPager() {
259
181
  return new index_js_17.default(this);
260
- };
261
- Index.prototype.authzProfile = function () {
182
+ }
183
+ authzProfile() {
262
184
  return new index_js_16.default(this);
263
- };
264
- Index.prototype.assignedRole = function () {
185
+ }
186
+ assignedRole() {
265
187
  return new index_js_15.default(this);
266
- };
267
- Index.prototype.answeringRule = function (ruleId) {
268
- if (ruleId === void 0) { ruleId = null; }
188
+ }
189
+ answeringRule(ruleId = null) {
269
190
  return new index_js_14.default(this, ruleId);
270
- };
271
- Index.prototype.businessHours = function () {
191
+ }
192
+ businessHours() {
272
193
  return new index_js_13.default(this);
273
- };
274
- Index.prototype.callerBlocking = function () {
194
+ }
195
+ callerBlocking() {
275
196
  return new index_js_12.default(this);
276
- };
277
- Index.prototype.assignableRoles = function () {
197
+ }
198
+ assignableRoles() {
278
199
  return new index_js_11.default(this);
279
- };
280
- Index.prototype.unifiedPresence = function () {
200
+ }
201
+ unifiedPresence() {
281
202
  return new index_js_10.default(this);
282
- };
283
- Index.prototype.forwardingNumber = function (forwardingNumberId) {
284
- if (forwardingNumberId === void 0) { forwardingNumberId = null; }
203
+ }
204
+ forwardingNumber(forwardingNumberId = null) {
285
205
  return new index_js_9.default(this, forwardingNumberId);
286
- };
287
- Index.prototype.addressBookSync = function () {
206
+ }
207
+ addressBookSync() {
288
208
  return new index_js_8.default(this);
289
- };
290
- Index.prototype.overflowSettings = function () {
209
+ }
210
+ overflowSettings() {
291
211
  return new index_js_7.default(this);
292
- };
293
- Index.prototype.administeredSites = function () {
212
+ }
213
+ administeredSites() {
294
214
  return new index_js_6.default(this);
295
- };
296
- Index.prototype.emergencyLocations = function (locationId) {
297
- if (locationId === void 0) { locationId = null; }
215
+ }
216
+ emergencyLocations(locationId = null) {
298
217
  return new index_js_5.default(this, locationId);
299
- };
300
- Index.prototype.videoConfiguration = function () {
218
+ }
219
+ videoConfiguration() {
301
220
  return new index_js_4.default(this);
302
- };
303
- Index.prototype.callQueuePresence = function () {
221
+ }
222
+ callQueuePresence() {
304
223
  return new index_js_3.default(this);
305
- };
306
- Index.prototype.notificationSettings = function () {
224
+ }
225
+ notificationSettings() {
307
226
  return new index_js_2.default(this);
308
- };
309
- Index.prototype.messageStoreTemplates = function (templateId) {
310
- if (templateId === void 0) { templateId = null; }
227
+ }
228
+ messageStoreTemplates(templateId = null) {
311
229
  return new index_js_1.default(this, templateId);
312
- };
313
- return Index;
314
- }());
230
+ }
231
+ }
315
232
  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
- var Index = /** @class */ (function () {
40
- function Index(_parent, taskId) {
41
- if (taskId === void 0) { taskId = null; }
3
+ class Index {
4
+ rc;
5
+ _parent;
6
+ taskId;
7
+ constructor(_parent, taskId = null) {
42
8
  this._parent = _parent;
43
9
  this.rc = _parent.rc;
44
10
  this.taskId = taskId;
45
11
  }
46
- Index.prototype.path = function (withParameter) {
47
- if (withParameter === void 0) { withParameter = true; }
12
+ path(withParameter = true) {
48
13
  if (withParameter && this.taskId !== null) {
49
- return "".concat(this._parent.path(), "/tasks/").concat(this.taskId);
14
+ return `${this._parent.path()}/tasks/${this.taskId}`;
50
15
  }
51
- return "".concat(this._parent.path(), "/tasks");
52
- };
16
+ return `${this._parent.path()}/tasks`;
17
+ }
53
18
  /**
54
19
  * Returns a status of a task to update multiple extensions.
55
20
  *
@@ -59,23 +24,12 @@ var Index = /** @class */ (function () {
59
24
  * App Permission: EditExtensions
60
25
  * User Permission: EditExtensionInfo
61
26
  */
62
- Index.prototype.get = function (restRequestConfig) {
63
- return __awaiter(this, void 0, void 0, function () {
64
- var r;
65
- return __generator(this, function (_a) {
66
- switch (_a.label) {
67
- case 0:
68
- if (this.taskId === null) {
69
- throw new Error("taskId must be specified.");
70
- }
71
- return [4 /*yield*/, this.rc.get(this.path(), undefined, restRequestConfig)];
72
- case 1:
73
- r = _a.sent();
74
- return [2 /*return*/, r.data];
75
- }
76
- });
77
- });
78
- };
79
- return Index;
80
- }());
27
+ async get(restRequestConfig) {
28
+ if (this.taskId === null) {
29
+ throw new Error("taskId must be specified.");
30
+ }
31
+ const r = await this.rc.get(this.path(), undefined, restRequestConfig);
32
+ return r.data;
33
+ }
34
+ }
81
35
  exports.default = Index;
@@ -1,53 +1,19 @@
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
- var index_js_1 = __importDefault(require("./Tasks/index.js"));
43
- var Index = /** @class */ (function () {
44
- function Index(_parent) {
6
+ const index_js_1 = __importDefault(require("./Tasks/index.js"));
7
+ class Index {
8
+ rc;
9
+ _parent;
10
+ constructor(_parent) {
45
11
  this._parent = _parent;
46
12
  this.rc = _parent.rc;
47
13
  }
48
- Index.prototype.path = function () {
49
- return "".concat(this._parent.path(), "/extension-bulk-update");
50
- };
14
+ path() {
15
+ return `${this._parent.path()}/extension-bulk-update`;
16
+ }
51
17
  /**
52
18
  * Updates multiple extensions at once. Maximum 500 extensions can be updated per request.
53
19
  *
@@ -57,23 +23,12 @@ var Index = /** @class */ (function () {
57
23
  * App Permission: EditExtensions
58
24
  * User Permission: EditExtensionInfo
59
25
  */
60
- Index.prototype.post = function (extensionBulkUpdateRequest, restRequestConfig) {
61
- return __awaiter(this, void 0, void 0, function () {
62
- var r;
63
- return __generator(this, function (_a) {
64
- switch (_a.label) {
65
- case 0: return [4 /*yield*/, this.rc.post(this.path(), extensionBulkUpdateRequest, undefined, restRequestConfig)];
66
- case 1:
67
- r = _a.sent();
68
- return [2 /*return*/, r.data];
69
- }
70
- });
71
- });
72
- };
73
- Index.prototype.tasks = function (taskId) {
74
- if (taskId === void 0) { taskId = null; }
26
+ async post(extensionBulkUpdateRequest, restRequestConfig) {
27
+ const r = await this.rc.post(this.path(), extensionBulkUpdateRequest, undefined, restRequestConfig);
28
+ return r.data;
29
+ }
30
+ tasks(taskId = null) {
75
31
  return new index_js_1.default(this, taskId);
76
- };
77
- return Index;
78
- }());
32
+ }
33
+ }
79
34
  exports.default = Index;