@webex/xunit-with-logs 3.0.0-beta.9 → 3.0.0-bnr.3

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 (651) hide show
  1. package/dist/index.js +14 -47
  2. package/dist/index.js.map +1 -1
  3. package/dist/types/@webex/common/src/base64.d.ts +38 -0
  4. package/dist/types/@webex/common/src/browser-detection.d.ts +8 -0
  5. package/dist/types/@webex/common/src/capped-debounce.d.ts +12 -0
  6. package/dist/types/@webex/common/src/check-required.d.ts +11 -0
  7. package/dist/types/@webex/common/src/constants.d.ts +76 -0
  8. package/dist/types/@webex/common/src/defer.d.ts +23 -0
  9. package/dist/types/@webex/common/src/deprecated.d.ts +7 -0
  10. package/dist/types/@webex/common/src/event-envelope.d.ts +13 -0
  11. package/dist/types/@webex/common/src/events.d.ts +15 -0
  12. package/dist/types/@webex/common/src/exception.d.ts +23 -0
  13. package/dist/types/@webex/common/src/in-browser/browser.d.ts +2 -0
  14. package/dist/types/@webex/common/src/in-browser/index.d.ts +1 -0
  15. package/dist/types/@webex/common/src/in-browser/node.d.ts +2 -0
  16. package/dist/types/@webex/common/src/index.d.ts +21 -0
  17. package/dist/types/@webex/common/src/isBuffer.d.ts +2 -0
  18. package/dist/types/@webex/common/src/make-state-datatype.d.ts +11 -0
  19. package/dist/types/@webex/common/src/one-flight.d.ts +9 -0
  20. package/dist/types/@webex/common/src/patterns.d.ts +8 -0
  21. package/dist/types/@webex/common/src/resolve-with.d.ts +22 -0
  22. package/dist/types/@webex/common/src/retry.d.ts +13 -0
  23. package/dist/types/@webex/common/src/tap.d.ts +17 -0
  24. package/dist/types/@webex/common/src/template-container.d.ts +59 -0
  25. package/dist/types/@webex/common/src/uuid-utils.d.ts +112 -0
  26. package/dist/types/@webex/common/src/while-in-flight.d.ts +7 -0
  27. package/dist/types/@webex/common/test/unit/spec/capped-debounce.d.ts +1 -0
  28. package/dist/types/@webex/common/test/unit/spec/common.d.ts +1 -0
  29. package/dist/types/@webex/common/test/unit/spec/exception.d.ts +1 -0
  30. package/dist/types/@webex/common/test/unit/spec/one-flight.d.ts +1 -0
  31. package/dist/types/@webex/common/test/unit/spec/template-container.d.ts +1 -0
  32. package/dist/types/@webex/common/test/unit/spec/while-in-flight.d.ts +1 -0
  33. package/dist/types/@webex/common-evented/src/index.d.ts +9 -0
  34. package/dist/types/@webex/common-evented/test/unit/spec/evented.d.ts +1 -0
  35. package/dist/types/@webex/common-timers/src/index.d.ts +19 -0
  36. package/dist/types/@webex/helper-html/browsers.d.ts +2 -0
  37. package/dist/types/@webex/helper-html/src/html-base.d.ts +12 -0
  38. package/dist/types/@webex/helper-html/src/html.d.ts +5 -0
  39. package/dist/types/@webex/helper-html/src/html.shim.d.ts +33 -0
  40. package/dist/types/@webex/helper-html/src/index.d.ts +1 -0
  41. package/dist/types/@webex/helper-html/test/unit/spec/html.d.ts +1 -0
  42. package/dist/types/@webex/helper-image/src/detect-filetype.d.ts +7 -0
  43. package/dist/types/@webex/helper-image/src/index.d.ts +26 -0
  44. package/dist/types/@webex/helper-image/src/process-image.browser.d.ts +19 -0
  45. package/dist/types/@webex/helper-image/src/process-image.d.ts +17 -0
  46. package/dist/types/@webex/helper-image/test/unit/spec/index.d.ts +1 -0
  47. package/dist/types/@webex/http-core/src/http-error-subtypes.d.ts +8 -0
  48. package/dist/types/@webex/http-core/src/http-error.d.ts +41 -0
  49. package/dist/types/@webex/http-core/src/index.d.ts +7 -0
  50. package/dist/types/@webex/http-core/src/interceptors/http-status.d.ts +17 -0
  51. package/dist/types/@webex/http-core/src/lib/detect.d.ts +6 -0
  52. package/dist/types/@webex/http-core/src/lib/interceptor.d.ts +51 -0
  53. package/dist/types/@webex/http-core/src/lib/xhr.d.ts +6 -0
  54. package/dist/types/@webex/http-core/src/progress-event.d.ts +18 -0
  55. package/dist/types/@webex/http-core/src/request/index.d.ts +5 -0
  56. package/dist/types/@webex/http-core/src/request/request.d.ts +6 -0
  57. package/dist/types/@webex/http-core/src/request/request.shim.d.ts +6 -0
  58. package/dist/types/@webex/http-core/test/integration/spec/http-error.d.ts +1 -0
  59. package/dist/types/@webex/http-core/test/integration/spec/interceptor.d.ts +1 -0
  60. package/dist/types/@webex/http-core/test/integration/spec/progress-event.d.ts +1 -0
  61. package/dist/types/@webex/http-core/test/integration/spec/request.d.ts +1 -0
  62. package/dist/types/@webex/http-core/test/unit/spec/interceptors/http-status.d.ts +1 -0
  63. package/dist/types/@webex/internal-plugin-avatar/src/avatar-url-batcher.d.ts +2 -0
  64. package/dist/types/@webex/internal-plugin-avatar/src/avatar-url-store.d.ts +50 -0
  65. package/dist/types/@webex/internal-plugin-avatar/src/avatar.d.ts +2 -0
  66. package/dist/types/@webex/internal-plugin-avatar/src/config.d.ts +13 -0
  67. package/dist/types/@webex/internal-plugin-avatar/src/index.d.ts +1 -0
  68. package/dist/types/@webex/internal-plugin-avatar/test/integration/spec/avatar.d.ts +1 -0
  69. package/dist/types/@webex/internal-plugin-avatar/test/unit/spec/avatar-url-batcher.d.ts +1 -0
  70. package/dist/types/@webex/internal-plugin-avatar/test/unit/spec/avatar-url-store.d.ts +1 -0
  71. package/dist/types/@webex/internal-plugin-avatar/test/unit/spec/avatar.d.ts +1 -0
  72. package/dist/types/@webex/internal-plugin-board/src/board.d.ts +2 -0
  73. package/dist/types/@webex/internal-plugin-board/src/config.d.ts +11 -0
  74. package/dist/types/@webex/internal-plugin-board/src/index.d.ts +4 -0
  75. package/dist/types/@webex/internal-plugin-board/src/realtime-channel-collection.d.ts +2 -0
  76. package/dist/types/@webex/internal-plugin-board/src/realtime-channel.d.ts +2 -0
  77. package/dist/types/@webex/internal-plugin-board/src/realtime.d.ts +7 -0
  78. package/dist/types/@webex/internal-plugin-board/test/integration/spec/board.d.ts +1 -0
  79. package/dist/types/@webex/internal-plugin-board/test/integration/spec/realtime.d.ts +1 -0
  80. package/dist/types/@webex/internal-plugin-board/test/integration/spec/sharing-mercury.d.ts +1 -0
  81. package/dist/types/@webex/internal-plugin-board/test/unit/spec/board.d.ts +1 -0
  82. package/dist/types/@webex/internal-plugin-board/test/unit/spec/encryption.d.ts +1 -0
  83. package/dist/types/@webex/internal-plugin-board/test/unit/spec/realtime.d.ts +1 -0
  84. package/dist/types/@webex/internal-plugin-calendar/src/calendar.d.ts +2 -0
  85. package/dist/types/@webex/internal-plugin-calendar/src/collection.d.ts +58 -0
  86. package/dist/types/@webex/internal-plugin-calendar/src/config.d.ts +7 -0
  87. package/dist/types/@webex/internal-plugin-calendar/src/constants.d.ts +6 -0
  88. package/dist/types/@webex/internal-plugin-calendar/src/index.d.ts +1 -0
  89. package/dist/types/@webex/internal-plugin-calendar/src/util.d.ts +15 -0
  90. package/dist/types/@webex/internal-plugin-calendar/test/integration/spec/calendar.d.ts +1 -0
  91. package/dist/types/@webex/internal-plugin-calendar/test/unit/spec/calendar.d.ts +1 -0
  92. package/dist/types/@webex/internal-plugin-calendar/test/unit/spec/utils.d.ts +1 -0
  93. package/dist/types/@webex/internal-plugin-conversation/src/activities.d.ts +32 -0
  94. package/dist/types/@webex/internal-plugin-conversation/src/activity-thread-ordering.d.ts +18 -0
  95. package/dist/types/@webex/internal-plugin-conversation/src/config.d.ts +19 -0
  96. package/dist/types/@webex/internal-plugin-conversation/src/constants.d.ts +5 -0
  97. package/dist/types/@webex/internal-plugin-conversation/src/conversation.d.ts +2 -0
  98. package/dist/types/@webex/internal-plugin-conversation/src/convo-error.d.ts +10 -0
  99. package/dist/types/@webex/internal-plugin-conversation/src/decryption-transforms.d.ts +1 -0
  100. package/dist/types/@webex/internal-plugin-conversation/src/encryption-transforms.d.ts +1 -0
  101. package/dist/types/@webex/internal-plugin-conversation/src/index.d.ts +3 -0
  102. package/dist/types/@webex/internal-plugin-conversation/src/share-activity.d.ts +7 -0
  103. package/dist/types/@webex/internal-plugin-conversation/src/to-array.d.ts +9 -0
  104. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/create.d.ts +1 -0
  105. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/encryption.d.ts +1 -0
  106. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/get.d.ts +1 -0
  107. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/mercury.d.ts +1 -0
  108. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/share.d.ts +1 -0
  109. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/verbs.d.ts +1 -0
  110. package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/conversation.d.ts +1 -0
  111. package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/decrypt-transforms.d.ts +1 -0
  112. package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/encryption-transforms.d.ts +1 -0
  113. package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/share-activity.d.ts +1 -0
  114. package/dist/types/@webex/internal-plugin-device/src/config.d.ts +10 -0
  115. package/dist/types/@webex/internal-plugin-device/src/constants.d.ts +12 -0
  116. package/dist/types/@webex/internal-plugin-device/src/device.d.ts +2 -0
  117. package/dist/types/@webex/internal-plugin-device/src/features/feature-collection.d.ts +9 -0
  118. package/dist/types/@webex/internal-plugin-device/src/features/feature-model.d.ts +29 -0
  119. package/dist/types/@webex/internal-plugin-device/src/features/features-model.d.ts +9 -0
  120. package/dist/types/@webex/internal-plugin-device/src/features/index.d.ts +4 -0
  121. package/dist/types/@webex/internal-plugin-device/src/index.d.ts +8 -0
  122. package/dist/types/@webex/internal-plugin-device/src/interceptors/device-url.d.ts +15 -0
  123. package/dist/types/@webex/internal-plugin-device/src/metrics.d.ts +5 -0
  124. package/dist/types/@webex/internal-plugin-device/test/integration/spec/device.d.ts +1 -0
  125. package/dist/types/@webex/internal-plugin-device/test/integration/spec/webex.d.ts +1 -0
  126. package/dist/types/@webex/internal-plugin-device/test/unit/spec/device.d.ts +1 -0
  127. package/dist/types/@webex/internal-plugin-device/test/unit/spec/features/feature-collection.d.ts +1 -0
  128. package/dist/types/@webex/internal-plugin-device/test/unit/spec/features/feature-model.d.ts +1 -0
  129. package/dist/types/@webex/internal-plugin-device/test/unit/spec/features/features-model.d.ts +1 -0
  130. package/dist/types/@webex/internal-plugin-device/test/unit/spec/interceptors/device-url.d.ts +1 -0
  131. package/dist/types/@webex/internal-plugin-dss/src/constants.d.ts +14 -0
  132. package/dist/types/@webex/internal-plugin-dss/src/dss.d.ts +3 -0
  133. package/dist/types/@webex/internal-plugin-dss/src/index.d.ts +1 -0
  134. package/dist/types/@webex/internal-plugin-dss/src/types.d.ts +28 -0
  135. package/dist/types/@webex/internal-plugin-dss/test/unit/spec/dss.d.ts +4 -0
  136. package/dist/types/@webex/internal-plugin-ediscovery/src/config.d.ts +11 -0
  137. package/dist/types/@webex/internal-plugin-ediscovery/src/ediscovery-error.d.ts +11 -0
  138. package/dist/types/@webex/internal-plugin-ediscovery/src/ediscovery.d.ts +6 -0
  139. package/dist/types/@webex/internal-plugin-ediscovery/src/index.d.ts +4 -0
  140. package/dist/types/@webex/internal-plugin-ediscovery/src/report-request.d.ts +29 -0
  141. package/dist/types/@webex/internal-plugin-ediscovery/src/retry.d.ts +2 -0
  142. package/dist/types/@webex/internal-plugin-ediscovery/src/transforms.d.ts +35 -0
  143. package/dist/types/@webex/internal-plugin-ediscovery/test/integration/spec/ediscovery.d.ts +1 -0
  144. package/dist/types/@webex/internal-plugin-ediscovery/test/unit/spec/content.d.ts +1 -0
  145. package/dist/types/@webex/internal-plugin-ediscovery/test/unit/spec/report.d.ts +1 -0
  146. package/dist/types/@webex/internal-plugin-ediscovery/test/unit/spec/transforms.d.ts +1 -0
  147. package/dist/types/@webex/internal-plugin-encryption/src/config.d.ts +16 -0
  148. package/dist/types/@webex/internal-plugin-encryption/src/encryption.d.ts +2 -0
  149. package/dist/types/@webex/internal-plugin-encryption/src/ensure-buffer.browser.d.ts +10 -0
  150. package/dist/types/@webex/internal-plugin-encryption/src/ensure-buffer.d.ts +7 -0
  151. package/dist/types/@webex/internal-plugin-encryption/src/index.d.ts +3 -0
  152. package/dist/types/@webex/internal-plugin-encryption/src/kms-batcher.d.ts +6 -0
  153. package/dist/types/@webex/internal-plugin-encryption/src/kms-certificate-validation.d.ts +24 -0
  154. package/dist/types/@webex/internal-plugin-encryption/src/kms-dry-error-interceptor.d.ts +25 -0
  155. package/dist/types/@webex/internal-plugin-encryption/src/kms-errors.d.ts +33 -0
  156. package/dist/types/@webex/internal-plugin-encryption/src/kms.d.ts +5 -0
  157. package/dist/types/@webex/internal-plugin-encryption/test/integration/spec/encryption.d.ts +1 -0
  158. package/dist/types/@webex/internal-plugin-encryption/test/integration/spec/kms.d.ts +1 -0
  159. package/dist/types/@webex/internal-plugin-encryption/test/integration/spec/payload-transfom.d.ts +1 -0
  160. package/dist/types/@webex/internal-plugin-encryption/test/unit/spec/encryption.d.ts +1 -0
  161. package/dist/types/@webex/internal-plugin-encryption/test/unit/spec/kms-certificate-validation.d.ts +1 -0
  162. package/dist/types/@webex/internal-plugin-feature/src/config.d.ts +4 -0
  163. package/dist/types/@webex/internal-plugin-feature/src/feature.d.ts +2 -0
  164. package/dist/types/@webex/internal-plugin-feature/src/index.d.ts +1 -0
  165. package/dist/types/@webex/internal-plugin-feature/test/integration/spec/feature.d.ts +1 -0
  166. package/dist/types/@webex/internal-plugin-feature/test/unit/spec/feature.d.ts +1 -0
  167. package/dist/types/@webex/internal-plugin-flag/src/config.d.ts +4 -0
  168. package/dist/types/@webex/internal-plugin-flag/src/flag.d.ts +2 -0
  169. package/dist/types/@webex/internal-plugin-flag/src/index.d.ts +1 -0
  170. package/dist/types/@webex/internal-plugin-flag/test/integration/spec/flag.d.ts +1 -0
  171. package/dist/types/@webex/internal-plugin-flag/test/unit/spec/flag.d.ts +1 -0
  172. package/dist/types/@webex/internal-plugin-llm/src/constants.d.ts +1 -0
  173. package/dist/types/@webex/internal-plugin-llm/src/index.d.ts +1 -0
  174. package/dist/types/@webex/internal-plugin-llm/src/llm.d.ts +88 -0
  175. package/dist/types/@webex/internal-plugin-llm/src/llm.types.d.ts +8 -0
  176. package/dist/types/@webex/internal-plugin-llm/test/unit/spec/llm.d.ts +1 -0
  177. package/dist/types/@webex/internal-plugin-locus/src/event-keys.d.ts +5 -0
  178. package/dist/types/@webex/internal-plugin-locus/src/index.d.ts +4 -0
  179. package/dist/types/@webex/internal-plugin-locus/src/locus.d.ts +12 -0
  180. package/dist/types/@webex/internal-plugin-locus/test/unit/spec/locus.d.ts +1 -0
  181. package/dist/types/@webex/internal-plugin-lyra/src/config.d.ts +4 -0
  182. package/dist/types/@webex/internal-plugin-lyra/src/device.d.ts +7 -0
  183. package/dist/types/@webex/internal-plugin-lyra/src/index.d.ts +3 -0
  184. package/dist/types/@webex/internal-plugin-lyra/src/lyra.d.ts +2 -0
  185. package/dist/types/@webex/internal-plugin-lyra/src/space.d.ts +7 -0
  186. package/dist/types/@webex/internal-plugin-lyra/test/integration/spec/device.d.ts +1 -0
  187. package/dist/types/@webex/internal-plugin-lyra/test/integration/spec/space.d.ts +1 -0
  188. package/dist/types/@webex/internal-plugin-lyra/test/unit/spec/device.d.ts +1 -0
  189. package/dist/types/@webex/internal-plugin-lyra/test/unit/spec/lyra.d.ts +1 -0
  190. package/dist/types/@webex/internal-plugin-lyra/test/unit/spec/space.d.ts +1 -0
  191. package/dist/types/@webex/internal-plugin-mercury/src/config.d.ts +10 -0
  192. package/dist/types/@webex/internal-plugin-mercury/src/errors.d.ts +31 -0
  193. package/dist/types/@webex/internal-plugin-mercury/src/index.d.ts +4 -0
  194. package/dist/types/@webex/internal-plugin-mercury/src/mercury.d.ts +2 -0
  195. package/dist/types/@webex/internal-plugin-mercury/src/socket/index.d.ts +1 -0
  196. package/dist/types/@webex/internal-plugin-mercury/src/socket/socket-base.d.ts +120 -0
  197. package/dist/types/@webex/internal-plugin-mercury/src/socket/socket.d.ts +2 -0
  198. package/dist/types/@webex/internal-plugin-mercury/src/socket/socket.shim.d.ts +2 -0
  199. package/dist/types/@webex/internal-plugin-mercury/test/integration/spec/mercury.d.ts +1 -0
  200. package/dist/types/@webex/internal-plugin-mercury/test/integration/spec/sharable-mercury.d.ts +1 -0
  201. package/dist/types/@webex/internal-plugin-mercury/test/integration/spec/webex.d.ts +1 -0
  202. package/dist/types/@webex/internal-plugin-mercury/test/unit/lib/promise-tick.d.ts +9 -0
  203. package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/_setup.d.ts +0 -0
  204. package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/mercury-events.d.ts +1 -0
  205. package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/mercury.d.ts +1 -0
  206. package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/socket.d.ts +1 -0
  207. package/dist/types/@webex/internal-plugin-metrics/src/batcher.d.ts +2 -0
  208. package/dist/types/@webex/internal-plugin-metrics/src/call-diagnostic-events-batcher.d.ts +2 -0
  209. package/dist/types/@webex/internal-plugin-metrics/src/client-metrics-batcher.d.ts +2 -0
  210. package/dist/types/@webex/internal-plugin-metrics/src/config.d.ts +18 -0
  211. package/dist/types/@webex/internal-plugin-metrics/src/index.d.ts +3 -0
  212. package/dist/types/@webex/internal-plugin-metrics/src/metrics.d.ts +2 -0
  213. package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/batcher.d.ts +1 -0
  214. package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/call-diagnostic-events-batcher.d.ts +1 -0
  215. package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/client-metrics-batcher.d.ts +1 -0
  216. package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/metrics.d.ts +1 -0
  217. package/dist/types/@webex/internal-plugin-presence/src/config.d.ts +8 -0
  218. package/dist/types/@webex/internal-plugin-presence/src/constants.d.ts +14 -0
  219. package/dist/types/@webex/internal-plugin-presence/src/index.d.ts +1 -0
  220. package/dist/types/@webex/internal-plugin-presence/src/presence-batcher.d.ts +6 -0
  221. package/dist/types/@webex/internal-plugin-presence/src/presence-worker.d.ts +68 -0
  222. package/dist/types/@webex/internal-plugin-presence/src/presence.d.ts +6 -0
  223. package/dist/types/@webex/internal-plugin-presence/test/integration/spec/presence.d.ts +1 -0
  224. package/dist/types/@webex/internal-plugin-presence/test/unit/spec/presence-worker.d.ts +1 -0
  225. package/dist/types/@webex/internal-plugin-presence/test/unit/spec/presence.d.ts +1 -0
  226. package/dist/types/@webex/internal-plugin-search/src/config.d.ts +4 -0
  227. package/dist/types/@webex/internal-plugin-search/src/index.d.ts +1 -0
  228. package/dist/types/@webex/internal-plugin-search/src/search.d.ts +2 -0
  229. package/dist/types/@webex/internal-plugin-search/test/integration/spec/search.d.ts +1 -0
  230. package/dist/types/@webex/internal-plugin-support/src/config.d.ts +16 -0
  231. package/dist/types/@webex/internal-plugin-support/src/index.d.ts +1 -0
  232. package/dist/types/@webex/internal-plugin-support/src/support.d.ts +2 -0
  233. package/dist/types/@webex/internal-plugin-support/test/integration/spec/support.d.ts +1 -0
  234. package/dist/types/@webex/internal-plugin-support/test/unit/spec/support.d.ts +1 -0
  235. package/dist/types/@webex/internal-plugin-team/src/config.d.ts +4 -0
  236. package/dist/types/@webex/internal-plugin-team/src/index.d.ts +1 -0
  237. package/dist/types/@webex/internal-plugin-team/src/team.d.ts +2 -0
  238. package/dist/types/@webex/internal-plugin-team/test/integration/spec/actions.d.ts +1 -0
  239. package/dist/types/@webex/internal-plugin-team/test/integration/spec/create.d.ts +1 -0
  240. package/dist/types/@webex/internal-plugin-team/test/integration/spec/get.d.ts +1 -0
  241. package/dist/types/@webex/internal-plugin-team/test/integration/spec/mercury.d.ts +1 -0
  242. package/dist/types/@webex/internal-plugin-team/test/unit/spec/team.d.ts +1 -0
  243. package/dist/types/@webex/internal-plugin-user/src/config.d.ts +17 -0
  244. package/dist/types/@webex/internal-plugin-user/src/index.d.ts +1 -0
  245. package/dist/types/@webex/internal-plugin-user/src/user-uuid-batcher.d.ts +5 -0
  246. package/dist/types/@webex/internal-plugin-user/src/user-uuid-store.d.ts +34 -0
  247. package/dist/types/@webex/internal-plugin-user/src/user.d.ts +5 -0
  248. package/dist/types/@webex/internal-plugin-user/test/integration/spec/user.d.ts +1 -0
  249. package/dist/types/@webex/internal-plugin-user/test/unit/spec/user-uuid-batcher.d.ts +1 -0
  250. package/dist/types/@webex/internal-plugin-user/test/unit/spec/user.d.ts +1 -0
  251. package/dist/types/@webex/internal-plugin-voicea/src/constants.d.ts +28 -0
  252. package/dist/types/@webex/internal-plugin-voicea/src/index.d.ts +1 -0
  253. package/dist/types/@webex/internal-plugin-voicea/src/utils.d.ts +1 -0
  254. package/dist/types/@webex/internal-plugin-voicea/src/voicea.d.ts +78 -0
  255. package/dist/types/@webex/internal-plugin-voicea/src/voicea.types.d.ts +72 -0
  256. package/dist/types/@webex/internal-plugin-voicea/test/unit/spec/utils.d.ts +1 -0
  257. package/dist/types/@webex/internal-plugin-voicea/test/unit/spec/voicea.d.ts +1 -0
  258. package/dist/types/@webex/internal-plugin-wdm/src/index.d.ts +2 -0
  259. package/dist/types/@webex/internal-plugin-wdm/test/integration/spec/webex.d.ts +1 -0
  260. package/dist/types/@webex/internal-plugin-wdm/test/unit/spec/device.d.ts +1 -0
  261. package/dist/types/@webex/jsdoctrinetest/src/assertions/literal.d.ts +12 -0
  262. package/dist/types/@webex/jsdoctrinetest/src/extract.d.ts +20 -0
  263. package/dist/types/@webex/jsdoctrinetest/src/index.d.ts +1 -0
  264. package/dist/types/@webex/jsdoctrinetest/src/mocha-template.d.ts +11 -0
  265. package/dist/types/@webex/jsdoctrinetest/src/parse.d.ts +7 -0
  266. package/dist/types/@webex/jsdoctrinetest/src/transform.d.ts +14 -0
  267. package/dist/types/@webex/jsdoctrinetest/test/unit/spec/default.d.ts +1 -0
  268. package/dist/types/@webex/plugin-attachment-actions/src/attachmentActions.d.ts +51 -0
  269. package/dist/types/@webex/plugin-attachment-actions/src/index.d.ts +2 -0
  270. package/dist/types/@webex/plugin-attachment-actions/test/integration/spec/attachmentActions.d.ts +1 -0
  271. package/dist/types/@webex/plugin-authorization/src/index.browser.d.ts +1 -0
  272. package/dist/types/@webex/plugin-authorization/src/index.d.ts +1 -0
  273. package/dist/types/@webex/plugin-authorization-browser/src/authorization.d.ts +8 -0
  274. package/dist/types/@webex/plugin-authorization-browser/src/config.d.ts +6 -0
  275. package/dist/types/@webex/plugin-authorization-browser/src/index.d.ts +2 -0
  276. package/dist/types/@webex/plugin-authorization-browser/test/automation/fixtures/app.d.ts +1 -0
  277. package/dist/types/@webex/plugin-authorization-browser/test/automation/spec/authorization-code-grant.d.ts +1 -0
  278. package/dist/types/@webex/plugin-authorization-browser/test/automation/spec/implicit-grant.d.ts +1 -0
  279. package/dist/types/@webex/plugin-authorization-browser/test/integration/spec/authorization.d.ts +1 -0
  280. package/dist/types/@webex/plugin-authorization-browser/test/unit/spec/authorization.d.ts +1 -0
  281. package/dist/types/@webex/plugin-authorization-browser-first-party/src/authorization.d.ts +12 -0
  282. package/dist/types/@webex/plugin-authorization-browser-first-party/src/config.d.ts +7 -0
  283. package/dist/types/@webex/plugin-authorization-browser-first-party/src/index.d.ts +2 -0
  284. package/dist/types/@webex/plugin-authorization-browser-first-party/test/automation/fixtures/app.d.ts +1 -0
  285. package/dist/types/@webex/plugin-authorization-browser-first-party/test/automation/spec/authorization-code-grant.d.ts +1 -0
  286. package/dist/types/@webex/plugin-authorization-browser-first-party/test/unit/spec/authorization.d.ts +1 -0
  287. package/dist/types/@webex/plugin-authorization-node/src/authorization.d.ts +7 -0
  288. package/dist/types/@webex/plugin-authorization-node/src/config.d.ts +4 -0
  289. package/dist/types/@webex/plugin-authorization-node/src/index.d.ts +2 -0
  290. package/dist/types/@webex/plugin-authorization-node/test/integration/spec/authorization.d.ts +1 -0
  291. package/dist/types/@webex/plugin-authorization-node/test/unit/spec/authorization.d.ts +1 -0
  292. package/dist/types/@webex/plugin-device-manager/sample/app.d.ts +4201 -0
  293. package/dist/types/@webex/plugin-device-manager/src/collection.d.ts +8 -0
  294. package/dist/types/@webex/plugin-device-manager/src/config.d.ts +2 -0
  295. package/dist/types/@webex/plugin-device-manager/src/constants.d.ts +3 -0
  296. package/dist/types/@webex/plugin-device-manager/src/device-manager.d.ts +2 -0
  297. package/dist/types/@webex/plugin-device-manager/src/index.d.ts +2 -0
  298. package/dist/types/@webex/plugin-device-manager/test/unit/spec/index.d.ts +1 -0
  299. package/dist/types/@webex/plugin-device-manager/webex.d.ts +1 -0
  300. package/dist/types/@webex/plugin-logger/src/config.d.ts +19 -0
  301. package/dist/types/@webex/plugin-logger/src/index.d.ts +1 -0
  302. package/dist/types/@webex/plugin-logger/src/logger.d.ts +7 -0
  303. package/dist/types/@webex/plugin-logger/test/unit/spec/logger.d.ts +1 -0
  304. package/dist/types/@webex/plugin-meetings/browsers.d.ts +75 -0
  305. package/dist/types/@webex/plugin-meetings/src/breakouts/breakout.d.ts +8 -0
  306. package/dist/types/@webex/plugin-meetings/src/breakouts/collection.d.ts +5 -0
  307. package/dist/types/@webex/plugin-meetings/src/breakouts/index.d.ts +5 -0
  308. package/dist/types/@webex/plugin-meetings/src/breakouts/request.d.ts +22 -0
  309. package/dist/types/@webex/plugin-meetings/src/breakouts/utils.d.ts +1 -0
  310. package/dist/types/@webex/plugin-meetings/src/common/browser-detection.d.ts +9 -0
  311. package/dist/types/@webex/plugin-meetings/src/common/collection.d.ts +48 -0
  312. package/dist/types/@webex/plugin-meetings/src/common/config.d.ts +2 -0
  313. package/dist/types/@webex/plugin-meetings/src/common/errors/captcha-error.d.ts +15 -0
  314. package/dist/types/@webex/plugin-meetings/src/common/errors/intent-to-join.d.ts +16 -0
  315. package/dist/types/@webex/plugin-meetings/src/common/errors/join-meeting.d.ts +17 -0
  316. package/dist/types/@webex/plugin-meetings/src/common/errors/media.d.ts +15 -0
  317. package/dist/types/@webex/plugin-meetings/src/common/errors/parameter.d.ts +15 -0
  318. package/dist/types/@webex/plugin-meetings/src/common/errors/password-error.d.ts +15 -0
  319. package/dist/types/@webex/plugin-meetings/src/common/errors/permission.d.ts +14 -0
  320. package/dist/types/@webex/plugin-meetings/src/common/errors/reconnection-in-progress.d.ts +9 -0
  321. package/dist/types/@webex/plugin-meetings/src/common/errors/reconnection.d.ts +15 -0
  322. package/dist/types/@webex/plugin-meetings/src/common/errors/stats.d.ts +15 -0
  323. package/dist/types/@webex/plugin-meetings/src/common/errors/webex-errors.d.ts +69 -0
  324. package/dist/types/@webex/plugin-meetings/src/common/errors/webex-meetings-error.d.ts +20 -0
  325. package/dist/types/@webex/plugin-meetings/src/common/events/events-scope.d.ts +17 -0
  326. package/dist/types/@webex/plugin-meetings/src/common/events/events.d.ts +12 -0
  327. package/dist/types/@webex/plugin-meetings/src/common/events/trigger-proxy.d.ts +2 -0
  328. package/dist/types/@webex/plugin-meetings/src/common/events/util.d.ts +2 -0
  329. package/dist/types/@webex/plugin-meetings/src/common/logs/logger-config.d.ts +2 -0
  330. package/dist/types/@webex/plugin-meetings/src/common/logs/logger-proxy.d.ts +2 -0
  331. package/dist/types/@webex/plugin-meetings/src/common/logs/request.d.ts +34 -0
  332. package/dist/types/@webex/plugin-meetings/src/common/queue.d.ts +32 -0
  333. package/dist/types/@webex/plugin-meetings/src/config.d.ts +77 -0
  334. package/dist/types/@webex/plugin-meetings/src/constants.d.ts +899 -0
  335. package/dist/types/@webex/plugin-meetings/src/controls-options-manager/constants.d.ts +4 -0
  336. package/dist/types/@webex/plugin-meetings/src/controls-options-manager/enums.d.ts +5 -0
  337. package/dist/types/@webex/plugin-meetings/src/controls-options-manager/index.d.ts +120 -0
  338. package/dist/types/@webex/plugin-meetings/src/controls-options-manager/util.d.ts +7 -0
  339. package/dist/types/@webex/plugin-meetings/src/index.d.ts +7 -0
  340. package/dist/types/@webex/plugin-meetings/src/locus-info/controlsUtils.d.ts +2 -0
  341. package/dist/types/@webex/plugin-meetings/src/locus-info/embeddedAppsUtils.d.ts +2 -0
  342. package/dist/types/@webex/plugin-meetings/src/locus-info/fullState.d.ts +2 -0
  343. package/dist/types/@webex/plugin-meetings/src/locus-info/hostUtils.d.ts +2 -0
  344. package/dist/types/@webex/plugin-meetings/src/locus-info/index.d.ts +269 -0
  345. package/dist/types/@webex/plugin-meetings/src/locus-info/infoUtils.d.ts +2 -0
  346. package/dist/types/@webex/plugin-meetings/src/locus-info/mediaSharesUtils.d.ts +2 -0
  347. package/dist/types/@webex/plugin-meetings/src/locus-info/parser.d.ts +212 -0
  348. package/dist/types/@webex/plugin-meetings/src/locus-info/selfUtils.d.ts +2 -0
  349. package/dist/types/@webex/plugin-meetings/src/media/index.d.ts +32 -0
  350. package/dist/types/@webex/plugin-meetings/src/media/properties.d.ts +107 -0
  351. package/dist/types/@webex/plugin-meetings/src/media/util.d.ts +2 -0
  352. package/dist/types/@webex/plugin-meetings/src/mediaQualityMetrics/config.d.ts +365 -0
  353. package/dist/types/@webex/plugin-meetings/src/meeting/effectsState.d.ts +42 -0
  354. package/dist/types/@webex/plugin-meetings/src/meeting/in-meeting-actions.d.ts +83 -0
  355. package/dist/types/@webex/plugin-meetings/src/meeting/index.d.ts +1724 -0
  356. package/dist/types/@webex/plugin-meetings/src/meeting/muteState.d.ts +108 -0
  357. package/dist/types/@webex/plugin-meetings/src/meeting/request.d.ts +261 -0
  358. package/dist/types/@webex/plugin-meetings/src/meeting/request.type.d.ts +11 -0
  359. package/dist/types/@webex/plugin-meetings/src/meeting/state.d.ts +9 -0
  360. package/dist/types/@webex/plugin-meetings/src/meeting/util.d.ts +2 -0
  361. package/dist/types/@webex/plugin-meetings/src/meeting-info/collection.d.ts +20 -0
  362. package/dist/types/@webex/plugin-meetings/src/meeting-info/index.d.ts +57 -0
  363. package/dist/types/@webex/plugin-meetings/src/meeting-info/meeting-info-v2.d.ts +93 -0
  364. package/dist/types/@webex/plugin-meetings/src/meeting-info/request.d.ts +22 -0
  365. package/dist/types/@webex/plugin-meetings/src/meeting-info/util.d.ts +2 -0
  366. package/dist/types/@webex/plugin-meetings/src/meeting-info/utilv2.d.ts +2 -0
  367. package/dist/types/@webex/plugin-meetings/src/meetings/collection.d.ts +23 -0
  368. package/dist/types/@webex/plugin-meetings/src/meetings/index.d.ts +297 -0
  369. package/dist/types/@webex/plugin-meetings/src/meetings/request.d.ts +27 -0
  370. package/dist/types/@webex/plugin-meetings/src/meetings/util.d.ts +18 -0
  371. package/dist/types/@webex/plugin-meetings/src/member/index.d.ts +146 -0
  372. package/dist/types/@webex/plugin-meetings/src/member/util.d.ts +2 -0
  373. package/dist/types/@webex/plugin-meetings/src/members/collection.d.ts +24 -0
  374. package/dist/types/@webex/plugin-meetings/src/members/index.d.ts +320 -0
  375. package/dist/types/@webex/plugin-meetings/src/members/request.d.ts +50 -0
  376. package/dist/types/@webex/plugin-meetings/src/members/util.d.ts +2 -0
  377. package/dist/types/@webex/plugin-meetings/src/metrics/config.d.ts +178 -0
  378. package/dist/types/@webex/plugin-meetings/src/metrics/constants.d.ts +57 -0
  379. package/dist/types/@webex/plugin-meetings/src/metrics/index.d.ts +160 -0
  380. package/dist/types/@webex/plugin-meetings/src/multistream/mediaRequestManager.d.ts +51 -0
  381. package/dist/types/@webex/plugin-meetings/src/multistream/receiveSlot.d.ts +66 -0
  382. package/dist/types/@webex/plugin-meetings/src/multistream/receiveSlotManager.d.ts +46 -0
  383. package/dist/types/@webex/plugin-meetings/src/multistream/remoteMedia.d.ts +93 -0
  384. package/dist/types/@webex/plugin-meetings/src/multistream/remoteMediaGroup.d.ts +56 -0
  385. package/dist/types/@webex/plugin-meetings/src/multistream/remoteMediaManager.d.ts +241 -0
  386. package/dist/types/@webex/plugin-meetings/src/networkQualityMonitor/index.d.ts +70 -0
  387. package/dist/types/@webex/plugin-meetings/src/personal-meeting-room/index.d.ts +47 -0
  388. package/dist/types/@webex/plugin-meetings/src/personal-meeting-room/request.d.ts +14 -0
  389. package/dist/types/@webex/plugin-meetings/src/personal-meeting-room/util.d.ts +2 -0
  390. package/dist/types/@webex/plugin-meetings/src/reachability/index.d.ts +140 -0
  391. package/dist/types/@webex/plugin-meetings/src/reachability/request.d.ts +35 -0
  392. package/dist/types/@webex/plugin-meetings/src/reactions/constants.d.ts +3 -0
  393. package/dist/types/@webex/plugin-meetings/src/reactions/reactions.d.ts +4 -0
  394. package/dist/types/@webex/plugin-meetings/src/reactions/reactions.type.d.ts +52 -0
  395. package/dist/types/@webex/plugin-meetings/src/reconnection-manager/index.d.ts +117 -0
  396. package/dist/types/@webex/plugin-meetings/src/recording-controller/enums.d.ts +7 -0
  397. package/dist/types/@webex/plugin-meetings/src/recording-controller/index.d.ts +193 -0
  398. package/dist/types/@webex/plugin-meetings/src/recording-controller/util.d.ts +13 -0
  399. package/dist/types/@webex/plugin-meetings/src/roap/index.d.ts +77 -0
  400. package/dist/types/@webex/plugin-meetings/src/roap/request.d.ts +35 -0
  401. package/dist/types/@webex/plugin-meetings/src/roap/turnDiscovery.d.ts +74 -0
  402. package/dist/types/@webex/plugin-meetings/src/statsAnalyzer/global.d.ts +36 -0
  403. package/dist/types/@webex/plugin-meetings/src/statsAnalyzer/index.d.ts +195 -0
  404. package/dist/types/@webex/plugin-meetings/src/statsAnalyzer/mqaUtil.d.ts +24 -0
  405. package/dist/types/@webex/plugin-meetings/src/transcription/index.d.ts +64 -0
  406. package/dist/types/@webex/plugin-meetings/test/integration/spec/converged-space-meetings.d.ts +1 -0
  407. package/dist/types/@webex/plugin-meetings/test/integration/spec/journey.d.ts +1 -0
  408. package/dist/types/@webex/plugin-meetings/test/integration/spec/space-meeting.d.ts +1 -0
  409. package/dist/types/@webex/plugin-meetings/test/integration/spec/transcription.d.ts +1 -0
  410. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/breakout.d.ts +1 -0
  411. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/collection.d.ts +1 -0
  412. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/index.d.ts +1 -0
  413. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/request.d.ts +1 -0
  414. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/utils.d.ts +1 -0
  415. package/dist/types/@webex/plugin-meetings/test/unit/spec/common/browser-detection.d.ts +1 -0
  416. package/dist/types/@webex/plugin-meetings/test/unit/spec/common/queue.d.ts +1 -0
  417. package/dist/types/@webex/plugin-meetings/test/unit/spec/controls-options-manager/index.d.ts +1 -0
  418. package/dist/types/@webex/plugin-meetings/test/unit/spec/controls-options-manager/util.d.ts +1 -0
  419. package/dist/types/@webex/plugin-meetings/test/unit/spec/fixture/locus.d.ts +332 -0
  420. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/controlsUtils.d.ts +1 -0
  421. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/embeddedAppsUtils.d.ts +1 -0
  422. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/index.d.ts +1 -0
  423. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/infoUtils.d.ts +1 -0
  424. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/parser.d.ts +1 -0
  425. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/selfConstant.d.ts +274 -0
  426. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/selfUtils.d.ts +1 -0
  427. package/dist/types/@webex/plugin-meetings/test/unit/spec/media/index.d.ts +1 -0
  428. package/dist/types/@webex/plugin-meetings/test/unit/spec/media/properties.d.ts +1 -0
  429. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/effectsState.d.ts +1 -0
  430. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/in-meeting-actions.d.ts +1 -0
  431. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/index.d.ts +1 -0
  432. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/muteState.d.ts +1 -0
  433. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/request.d.ts +1 -0
  434. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/utils.d.ts +1 -0
  435. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/meetinginfov2.d.ts +1 -0
  436. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/request.d.ts +1 -0
  437. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/util.d.ts +1 -0
  438. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/utilv2.d.ts +1 -0
  439. package/dist/types/@webex/plugin-meetings/test/unit/spec/meetings/collection.d.ts +1 -0
  440. package/dist/types/@webex/plugin-meetings/test/unit/spec/meetings/index.d.ts +1 -0
  441. package/dist/types/@webex/plugin-meetings/test/unit/spec/meetings/utils.d.ts +1 -0
  442. package/dist/types/@webex/plugin-meetings/test/unit/spec/member/index.d.ts +1 -0
  443. package/dist/types/@webex/plugin-meetings/test/unit/spec/member/util.d.ts +1 -0
  444. package/dist/types/@webex/plugin-meetings/test/unit/spec/members/index.d.ts +1 -0
  445. package/dist/types/@webex/plugin-meetings/test/unit/spec/members/request.d.ts +1 -0
  446. package/dist/types/@webex/plugin-meetings/test/unit/spec/members/utils.d.ts +1 -0
  447. package/dist/types/@webex/plugin-meetings/test/unit/spec/metrics/index.d.ts +1 -0
  448. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/mediaRequestManager.d.ts +1 -0
  449. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/receiveSlot.d.ts +1 -0
  450. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/receiveSlotManager.d.ts +1 -0
  451. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/remoteMedia.d.ts +1 -0
  452. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/remoteMediaGroup.d.ts +1 -0
  453. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/remoteMediaManager.d.ts +1 -0
  454. package/dist/types/@webex/plugin-meetings/test/unit/spec/networkQualityMonitor/index.d.ts +1 -0
  455. package/dist/types/@webex/plugin-meetings/test/unit/spec/personal-meeting-room/personal-meeting-room.d.ts +1 -0
  456. package/dist/types/@webex/plugin-meetings/test/unit/spec/reachability/index.d.ts +1 -0
  457. package/dist/types/@webex/plugin-meetings/test/unit/spec/reconnection-manager/index.d.ts +1 -0
  458. package/dist/types/@webex/plugin-meetings/test/unit/spec/recording-controller/index.d.ts +1 -0
  459. package/dist/types/@webex/plugin-meetings/test/unit/spec/recording-controller/util.d.ts +1 -0
  460. package/dist/types/@webex/plugin-meetings/test/unit/spec/roap/index.d.ts +1 -0
  461. package/dist/types/@webex/plugin-meetings/test/unit/spec/roap/request.d.ts +1 -0
  462. package/dist/types/@webex/plugin-meetings/test/unit/spec/roap/turnDiscovery.d.ts +1 -0
  463. package/dist/types/@webex/plugin-meetings/test/unit/spec/stats-analyzer/index.d.ts +1 -0
  464. package/dist/types/@webex/plugin-meetings/test/utils/cmr.d.ts +6 -0
  465. package/dist/types/@webex/plugin-meetings/test/utils/constants.d.ts +5 -0
  466. package/dist/types/@webex/plugin-meetings/test/utils/testUtils.d.ts +27 -0
  467. package/dist/types/@webex/plugin-meetings/test/utils/webex-config.d.ts +63 -0
  468. package/dist/types/@webex/plugin-meetings/test/utils/webex-test-users.d.ts +2 -0
  469. package/dist/types/@webex/plugin-memberships/src/index.d.ts +2 -0
  470. package/dist/types/@webex/plugin-memberships/src/memberships.d.ts +50 -0
  471. package/dist/types/@webex/plugin-memberships/test/integration/spec/memberships.d.ts +1 -0
  472. package/dist/types/@webex/plugin-messages/src/index.d.ts +2 -0
  473. package/dist/types/@webex/plugin-messages/src/messages.d.ts +58 -0
  474. package/dist/types/@webex/plugin-messages/test/integration/spec/messages.d.ts +1 -0
  475. package/dist/types/@webex/plugin-people/src/config.d.ts +9 -0
  476. package/dist/types/@webex/plugin-people/src/index.d.ts +1 -0
  477. package/dist/types/@webex/plugin-people/src/people-batcher.d.ts +6 -0
  478. package/dist/types/@webex/plugin-people/src/people.d.ts +30 -0
  479. package/dist/types/@webex/plugin-people/test/integration/spec/people.d.ts +1 -0
  480. package/dist/types/@webex/plugin-people/test/unit/spec/people-batcher.d.ts +1 -0
  481. package/dist/types/@webex/plugin-people/test/unit/spec/people.d.ts +1 -0
  482. package/dist/types/@webex/plugin-rooms/src/index.d.ts +2 -0
  483. package/dist/types/@webex/plugin-rooms/src/rooms.d.ts +41 -0
  484. package/dist/types/@webex/plugin-rooms/test/integration/spec/rooms.d.ts +1 -0
  485. package/dist/types/@webex/plugin-team-memberships/src/index.d.ts +2 -0
  486. package/dist/types/@webex/plugin-team-memberships/src/team-memberships.d.ts +49 -0
  487. package/dist/types/@webex/plugin-team-memberships/test/integration/spec/team-memberships.d.ts +1 -0
  488. package/dist/types/@webex/plugin-teams/src/index.d.ts +2 -0
  489. package/dist/types/@webex/plugin-teams/src/teams.d.ts +27 -0
  490. package/dist/types/@webex/plugin-teams/test/integration/spec/teams.d.ts +1 -0
  491. package/dist/types/@webex/plugin-webhooks/src/index.d.ts +2 -0
  492. package/dist/types/@webex/plugin-webhooks/src/webhooks.d.ts +48 -0
  493. package/dist/types/@webex/plugin-webhooks/test/integration/spec/webhooks.d.ts +1 -0
  494. package/dist/types/@webex/recipe-private-web-client/src/config.d.ts +10 -0
  495. package/dist/types/@webex/recipe-private-web-client/src/index.d.ts +8 -0
  496. package/dist/types/@webex/storage-adapter-local-forage/src/index.d.ts +35 -0
  497. package/dist/types/@webex/storage-adapter-local-forage/test/unit/spec/storage-adapter-local-forage.d.ts +1 -0
  498. package/dist/types/@webex/storage-adapter-local-storage/src/index.d.ts +66 -0
  499. package/dist/types/@webex/storage-adapter-local-storage/test/unit/spec/storage-adapter-local-storage.d.ts +1 -0
  500. package/dist/types/@webex/storage-adapter-session-storage/src/index.d.ts +66 -0
  501. package/dist/types/@webex/storage-adapter-session-storage/test/unit/spec/storage-adapter-session-storage.d.ts +1 -0
  502. package/dist/types/@webex/storage-adapter-spec/src/index.d.ts +1 -0
  503. package/dist/types/@webex/test-helper-appid/src/create-user.browser.d.ts +2 -0
  504. package/dist/types/@webex/test-helper-appid/src/create-user.d.ts +7 -0
  505. package/dist/types/@webex/test-helper-appid/src/index.d.ts +7 -0
  506. package/dist/types/@webex/test-helper-appid/src/router.d.ts +2 -0
  507. package/dist/types/@webex/test-helper-automation/src/index.d.ts +2 -0
  508. package/dist/types/@webex/test-helper-automation/src/wd/accept-grant.d.ts +1 -0
  509. package/dist/types/@webex/test-helper-automation/src/wd/login.d.ts +1 -0
  510. package/dist/types/@webex/test-helper-automation/src/wd/print-logs.d.ts +1 -0
  511. package/dist/types/@webex/test-helper-automation/src/wd/submit-password.d.ts +1 -0
  512. package/dist/types/@webex/test-helper-chai/src/assertions/index.d.ts +2 -0
  513. package/dist/types/@webex/test-helper-chai/src/assertions/primitives.d.ts +2 -0
  514. package/dist/types/@webex/test-helper-chai/src/assertions/schemas.d.ts +2 -0
  515. package/dist/types/@webex/test-helper-chai/src/assertions/should-to-assert.d.ts +2 -0
  516. package/dist/types/@webex/test-helper-chai/src/index.d.ts +2 -0
  517. package/dist/types/@webex/test-helper-file/src/file.d.ts +5 -0
  518. package/dist/types/@webex/test-helper-file/src/file.shim.d.ts +18 -0
  519. package/dist/types/@webex/test-helper-file/src/index.d.ts +2 -0
  520. package/dist/types/@webex/test-helper-make-local-url/src/index.d.ts +4 -0
  521. package/dist/types/@webex/test-helper-mocha/src/index.d.ts +29 -0
  522. package/dist/types/@webex/test-helper-mock-web-socket/src/index.d.ts +26 -0
  523. package/dist/types/@webex/test-helper-mock-webex/src/index.d.ts +7 -0
  524. package/dist/types/@webex/test-helper-refresh-callback/src/index.d.ts +10 -0
  525. package/dist/types/@webex/test-helper-retry/src/index.d.ts +15 -0
  526. package/dist/types/@webex/test-helper-server/src/cookies.d.ts +2 -0
  527. package/dist/types/@webex/test-helper-server/src/files.d.ts +2 -0
  528. package/dist/types/@webex/test-helper-server/src/form.d.ts +2 -0
  529. package/dist/types/@webex/test-helper-server/src/index.d.ts +1 -0
  530. package/dist/types/@webex/test-helper-server/src/json.d.ts +2 -0
  531. package/dist/types/@webex/test-helper-server/src/reflect.d.ts +10 -0
  532. package/dist/types/@webex/test-helper-test-users/src/index.d.ts +8 -0
  533. package/dist/types/@webex/test-users/src/index.d.ts +115 -0
  534. package/dist/types/@webex/test-users/src/whistler.d.ts +44 -0
  535. package/dist/types/@webex/test-users/test/integration/spec/index.d.ts +1 -0
  536. package/dist/types/@webex/test-users/test/integration/spec/whistler.d.ts +1 -0
  537. package/dist/types/@webex/webex-core/src/config.d.ts +39 -0
  538. package/dist/types/@webex/webex-core/src/credentials-config.d.ts +2 -0
  539. package/dist/types/@webex/webex-core/src/index.d.ts +24 -0
  540. package/dist/types/@webex/webex-core/src/interceptors/auth.d.ts +43 -0
  541. package/dist/types/@webex/webex-core/src/interceptors/default-options.d.ts +31 -0
  542. package/dist/types/@webex/webex-core/src/interceptors/embargo.d.ts +16 -0
  543. package/dist/types/@webex/webex-core/src/interceptors/network-timing.d.ts +30 -0
  544. package/dist/types/@webex/webex-core/src/interceptors/payload-transformer.d.ts +30 -0
  545. package/dist/types/@webex/webex-core/src/interceptors/rate-limit.d.ts +61 -0
  546. package/dist/types/@webex/webex-core/src/interceptors/redirect.d.ts +22 -0
  547. package/dist/types/@webex/webex-core/src/interceptors/request-event.d.ts +36 -0
  548. package/dist/types/@webex/webex-core/src/interceptors/request-logger.d.ts +22 -0
  549. package/dist/types/@webex/webex-core/src/interceptors/request-timing.d.ts +36 -0
  550. package/dist/types/@webex/webex-core/src/interceptors/response-logger.d.ts +30 -0
  551. package/dist/types/@webex/webex-core/src/interceptors/user-agent.d.ts +38 -0
  552. package/dist/types/@webex/webex-core/src/interceptors/webex-tracking-id.d.ts +26 -0
  553. package/dist/types/@webex/webex-core/src/interceptors/webex-user-agent.d.ts +22 -0
  554. package/dist/types/@webex/webex-core/src/lib/batcher.d.ts +6 -0
  555. package/dist/types/@webex/webex-core/src/lib/credentials/credentials.d.ts +5 -0
  556. package/dist/types/@webex/webex-core/src/lib/credentials/grant-errors.d.ts +57 -0
  557. package/dist/types/@webex/webex-core/src/lib/credentials/index.d.ts +4 -0
  558. package/dist/types/@webex/webex-core/src/lib/credentials/scope.d.ts +16 -0
  559. package/dist/types/@webex/webex-core/src/lib/credentials/token-collection.d.ts +2 -0
  560. package/dist/types/@webex/webex-core/src/lib/credentials/token.d.ts +5 -0
  561. package/dist/types/@webex/webex-core/src/lib/page.d.ts +76 -0
  562. package/dist/types/@webex/webex-core/src/lib/services/constants.d.ts +6 -0
  563. package/dist/types/@webex/webex-core/src/lib/services/index.d.ts +10 -0
  564. package/dist/types/@webex/webex-core/src/lib/services/interceptors/server-error.d.ts +16 -0
  565. package/dist/types/@webex/webex-core/src/lib/services/interceptors/service.d.ts +37 -0
  566. package/dist/types/@webex/webex-core/src/lib/services/metrics.d.ts +4 -0
  567. package/dist/types/@webex/webex-core/src/lib/services/service-catalog.d.ts +5 -0
  568. package/dist/types/@webex/webex-core/src/lib/services/service-fed-ramp.d.ts +5 -0
  569. package/dist/types/@webex/webex-core/src/lib/services/service-host.d.ts +217 -0
  570. package/dist/types/@webex/webex-core/src/lib/services/service-registry.d.ts +271 -0
  571. package/dist/types/@webex/webex-core/src/lib/services/service-state.d.ts +46 -0
  572. package/dist/types/@webex/webex-core/src/lib/services/service-url.d.ts +5 -0
  573. package/dist/types/@webex/webex-core/src/lib/services/services.d.ts +5 -0
  574. package/dist/types/@webex/webex-core/src/lib/stateless-webex-plugin.d.ts +48 -0
  575. package/dist/types/@webex/webex-core/src/lib/storage/decorators.d.ts +15 -0
  576. package/dist/types/@webex/webex-core/src/lib/storage/errors.d.ts +10 -0
  577. package/dist/types/@webex/webex-core/src/lib/storage/index.d.ts +5 -0
  578. package/dist/types/@webex/webex-core/src/lib/storage/make-webex-plugin-store.d.ts +8 -0
  579. package/dist/types/@webex/webex-core/src/lib/storage/make-webex-store.d.ts +48 -0
  580. package/dist/types/@webex/webex-core/src/lib/storage/memory-store-adapter.d.ts +18 -0
  581. package/dist/types/@webex/webex-core/src/lib/webex-core-plugin-mixin.d.ts +8 -0
  582. package/dist/types/@webex/webex-core/src/lib/webex-http-error.d.ts +12 -0
  583. package/dist/types/@webex/webex-core/src/lib/webex-internal-core-plugin-mixin.d.ts +8 -0
  584. package/dist/types/@webex/webex-core/src/lib/webex-plugin.d.ts +5 -0
  585. package/dist/types/@webex/webex-core/src/plugins/logger.d.ts +2 -0
  586. package/dist/types/@webex/webex-core/src/webex-core.d.ts +31 -0
  587. package/dist/types/@webex/webex-core/src/webex-internal-core.d.ts +7 -0
  588. package/dist/types/@webex/webex-core/test/integration/spec/credentials/credentials.d.ts +1 -0
  589. package/dist/types/@webex/webex-core/test/integration/spec/credentials/token.d.ts +1 -0
  590. package/dist/types/@webex/webex-core/test/integration/spec/services/service-catalog.d.ts +1 -0
  591. package/dist/types/@webex/webex-core/test/integration/spec/services/services.d.ts +1 -0
  592. package/dist/types/@webex/webex-core/test/integration/spec/webex-core.d.ts +1 -0
  593. package/dist/types/@webex/webex-core/test/unit/spec/_setup.d.ts +1 -0
  594. package/dist/types/@webex/webex-core/test/unit/spec/credentials/credentials.d.ts +1 -0
  595. package/dist/types/@webex/webex-core/test/unit/spec/credentials/token.d.ts +1 -0
  596. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/auth.d.ts +1 -0
  597. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/default-options.d.ts +1 -0
  598. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/embargo.d.ts +1 -0
  599. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/network-timing.d.ts +1 -0
  600. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/payload-transformer.d.ts +1 -0
  601. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/rate-limit.d.ts +1 -0
  602. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/redirect.d.ts +1 -0
  603. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/request-timing.d.ts +1 -0
  604. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/user-agent.d.ts +1 -0
  605. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/webex-tracking-id.d.ts +1 -0
  606. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/webex-user-agent.d.ts +1 -0
  607. package/dist/types/@webex/webex-core/test/unit/spec/lib/batcher.d.ts +1 -0
  608. package/dist/types/@webex/webex-core/test/unit/spec/lib/page.d.ts +1 -0
  609. package/dist/types/@webex/webex-core/test/unit/spec/lib/webex-plugin.d.ts +1 -0
  610. package/dist/types/@webex/webex-core/test/unit/spec/services/interceptors/server-error.d.ts +1 -0
  611. package/dist/types/@webex/webex-core/test/unit/spec/services/interceptors/service.d.ts +1 -0
  612. package/dist/types/@webex/webex-core/test/unit/spec/services/service-catalog.d.ts +1 -0
  613. package/dist/types/@webex/webex-core/test/unit/spec/services/service-host.d.ts +1 -0
  614. package/dist/types/@webex/webex-core/test/unit/spec/services/service-registry.d.ts +1 -0
  615. package/dist/types/@webex/webex-core/test/unit/spec/services/service-state.d.ts +1 -0
  616. package/dist/types/@webex/webex-core/test/unit/spec/services/service-url.d.ts +1 -0
  617. package/dist/types/@webex/webex-core/test/unit/spec/services/services.d.ts +1 -0
  618. package/dist/types/@webex/webex-core/test/unit/spec/storage/persist.d.ts +1 -0
  619. package/dist/types/@webex/webex-core/test/unit/spec/storage/storage-adapter.d.ts +1 -0
  620. package/dist/types/@webex/webex-core/test/unit/spec/storage/wait-for-value.d.ts +1 -0
  621. package/dist/types/@webex/webex-core/test/unit/spec/webex-core.d.ts +1 -0
  622. package/dist/types/@webex/webex-core/test/unit/spec/webex-internal-core.d.ts +1 -0
  623. package/dist/types/@webex/webrtc/src/analyzer.d.ts +0 -0
  624. package/dist/types/@webex/webrtc/src/constants.d.ts +0 -0
  625. package/dist/types/@webex/webrtc/src/extractor.d.ts +0 -0
  626. package/dist/types/@webex/webrtc/src/generator.d.ts +0 -0
  627. package/dist/types/@webex/webrtc/src/history.d.ts +0 -0
  628. package/dist/types/@webex/webrtc/src/ice.d.ts +0 -0
  629. package/dist/types/@webex/webrtc/src/index.d.ts +31 -0
  630. package/dist/types/@webex/webrtc/src/logger.d.ts +0 -0
  631. package/dist/types/@webex/webrtc/src/parser.d.ts +0 -0
  632. package/dist/types/@webex/webrtc/src/stats.d.ts +0 -0
  633. package/dist/types/@webex/webrtc/src/transformer.d.ts +0 -0
  634. package/dist/types/@webex/webrtc/src/validator.d.ts +0 -0
  635. package/dist/types/@webex/xunit-with-logs/src/index.d.ts +43 -0
  636. package/dist/types/webex/browser.d.ts +5 -0
  637. package/dist/types/webex/env.d.ts +2 -0
  638. package/dist/types/webex/src/_setup.d.ts +1 -0
  639. package/dist/types/webex/src/config-storage.d.ts +5 -0
  640. package/dist/types/webex/src/config-storage.shim.d.ts +5 -0
  641. package/dist/types/webex/src/config.d.ts +17 -0
  642. package/dist/types/webex/src/index.d.ts +11 -0
  643. package/dist/types/webex/src/webex.d.ts +9 -0
  644. package/dist/types/webex/test/integration/spec/commonjs.d.ts +1 -0
  645. package/dist/types/webex/test/integration/spec/env.d.ts +1 -0
  646. package/dist/types/webex/test/integration/spec/init.d.ts +1 -0
  647. package/dist/types/webex/test/integration/spec/request.d.ts +1 -0
  648. package/dist/types/webex/test/unit/spec/webex.d.ts +1 -0
  649. package/dist/types/webex/umd/webex.min.d.ts +2 -0
  650. package/package.json +1 -1
  651. package/src/index.js +24 -28
package/dist/index.js CHANGED
@@ -1,48 +1,38 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
4
-
5
4
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/slicedToArray"));
6
-
7
5
  var _apply = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/reflect/apply"));
8
-
9
6
  var _entries = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/entries"));
10
-
11
7
  /*!
12
8
  * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
13
9
  */
10
+
14
11
  // These'll get cleaned up in the xunit PR; for now, they're just here because
15
12
  // this file attempted to follow the format of the mocha core xunit reporter
16
-
17
13
  /* eslint-disable no-console */
18
-
19
14
  /* eslint-disable no-multi-assign */
20
15
 
21
16
  /**
22
17
  * Module dependencies.
23
18
  */
24
- var util = require('util');
25
19
 
20
+ var util = require('util');
26
21
  var fs = require('fs');
27
-
28
22
  var Base = require('mocha/lib/reporters/base');
29
-
30
23
  var utils = require('mocha/lib/utils');
31
-
32
24
  var escape = utils.escape;
33
-
34
25
  var mkdirp = require('mkdirp');
35
-
36
26
  var path = require('path');
37
-
38
27
  var _require = require('lodash'),
39
- pick = _require.pick;
28
+ pick = _require.pick;
29
+
40
30
  /**
41
31
  * Expose `XUnit`.
42
32
  */
43
33
 
44
-
45
34
  exports = module.exports = XUnit;
35
+
46
36
  /**
47
37
  * Initialize a new `XUnit` reporter.
48
38
  *
@@ -51,22 +41,18 @@ exports = module.exports = XUnit;
51
41
  * @returns {undefined}
52
42
  * @api public
53
43
  */
54
-
55
44
  function XUnit(runner, options) {
56
45
  (0, _apply.default)(Base, this, [runner]);
57
46
  var stats = this.stats;
58
47
  var tests = [];
59
48
  var self = this;
60
-
61
49
  if (options.reporterOptions && options.reporterOptions.output) {
62
50
  if (!fs.createWriteStream) {
63
51
  throw new Error('file output not supported in browser');
64
52
  }
65
-
66
53
  mkdirp.sync(path.dirname(options.reporterOptions.output));
67
54
  self.fileStream = fs.createWriteStream(options.reporterOptions.output);
68
55
  }
69
-
70
56
  runner.on('pending', function (test) {
71
57
  tests.push(test);
72
58
  });
@@ -85,21 +71,17 @@ function XUnit(runner, options) {
85
71
  if (!console[methodName]) {
86
72
  methodName = 'log';
87
73
  }
88
-
89
74
  console[methodName] = function () {
90
75
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
91
76
  args[_key] = arguments[_key];
92
77
  }
93
-
94
78
  (0, _apply.default)(originalMethods[methodName], console, args);
95
79
  var callerInfo = new Error().stack.split('\n')[2].match(/\((.+?):(\d+):\d+/);
96
-
97
80
  if (callerInfo && callerInfo.length >= 2) {
98
81
  var callerFile = path.relative(__dirname, '..', callerInfo[1]);
99
82
  args.unshift("(FILE:".concat(callerFile || 'UNKNOWN', ")"));
100
83
  args.unshift("(LINE:".concat(callerInfo[2] || 'UNKNOWN', ")"));
101
84
  }
102
-
103
85
  if (methodName === 'error') {
104
86
  test.systemErr.push(args);
105
87
  } else {
@@ -132,12 +114,12 @@ function XUnit(runner, options) {
132
114
  self.write('</testsuites>');
133
115
  });
134
116
  }
117
+
135
118
  /**
136
119
  * Inherit from `Base.prototype`.
137
120
  */
138
-
139
-
140
121
  util.inherits(XUnit, Base);
122
+
141
123
  /**
142
124
  * Override done to close the stream (if it's a file).
143
125
  *
@@ -145,7 +127,6 @@ util.inherits(XUnit, Base);
145
127
  * @param {Function} fn
146
128
  * @returns {undefined}
147
129
  */
148
-
149
130
  XUnit.prototype.done = function done(failures, fn) {
150
131
  if (this.fileStream) {
151
132
  this.fileStream.end(function () {
@@ -155,14 +136,13 @@ XUnit.prototype.done = function done(failures, fn) {
155
136
  fn(failures);
156
137
  }
157
138
  };
139
+
158
140
  /**
159
141
  * Write out the given line.
160
142
  *
161
143
  * @param {string} line
162
144
  * @returns {undefined}
163
145
  */
164
-
165
-
166
146
  XUnit.prototype.write = function write(line) {
167
147
  if (this.fileStream) {
168
148
  this.fileStream.write("".concat(line, "\n"));
@@ -170,14 +150,13 @@ XUnit.prototype.write = function write(line) {
170
150
  console.log(line);
171
151
  }
172
152
  };
153
+
173
154
  /**
174
155
  * Output tag for the given `test.`
175
156
  *
176
157
  * @param {Test} test
177
158
  * @returns {undefined}
178
159
  */
179
-
180
-
181
160
  XUnit.prototype.test = function testFn(test) {
182
161
  var attrs = {
183
162
  classname: test.parent.fullTitle(),
@@ -185,21 +164,17 @@ XUnit.prototype.test = function testFn(test) {
185
164
  time: test.duration / 1000 || 0
186
165
  };
187
166
  var systemErr;
188
-
189
167
  if (test.systemErr && test.systemErr.length > 0) {
190
168
  systemErr = tag('system-err', {}, false, cdata(test.systemErr.reduce(reducer, '\n')));
191
169
  } else {
192
170
  systemErr = '';
193
171
  }
194
-
195
172
  var systemOut;
196
-
197
173
  if (test.systemOut && test.systemOut.length > 0) {
198
174
  systemOut = tag('system-out', {}, false, cdata(test.systemOut.reduce(reducer, '\n')));
199
175
  } else {
200
176
  systemOut = '';
201
177
  }
202
-
203
178
  if (test.state === 'failed') {
204
179
  var err = test.err;
205
180
  var failureMessage = tag('failure', {}, false, cdata("".concat(escape(err.message), "\n").concat(err.stack)));
@@ -209,6 +184,7 @@ XUnit.prototype.test = function testFn(test) {
209
184
  } else {
210
185
  this.write(tag('testcase', attrs, true));
211
186
  }
187
+
212
188
  /**
213
189
  * reducer
214
190
  * @param {string} out
@@ -216,14 +192,13 @@ XUnit.prototype.test = function testFn(test) {
216
192
  * @returns {string}
217
193
  * @private
218
194
  */
219
-
220
-
221
195
  function reducer(out, args) {
222
196
  return "".concat(out + args.reduce(function (innerOut, arg) {
223
197
  return "".concat(innerOut + arg, " ");
224
198
  }, ''), "\n");
225
199
  }
226
200
  };
201
+
227
202
  /**
228
203
  * HTML tag helper.
229
204
  *
@@ -233,36 +208,28 @@ XUnit.prototype.test = function testFn(test) {
233
208
  * @param {string} content
234
209
  * @returns {string}
235
210
  */
236
-
237
-
238
211
  function tag(name, attrs, close, content) {
239
212
  var end = close ? '/>' : '>';
240
213
  var pairs = [];
241
214
  var innerTag;
242
-
243
215
  for (var _i = 0, _Object$entries = (0, _entries.default)(attrs); _i < _Object$entries.length; _i++) {
244
216
  var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i], 2),
245
- key = _Object$entries$_i[0],
246
- value = _Object$entries$_i[1];
247
-
217
+ key = _Object$entries$_i[0],
218
+ value = _Object$entries$_i[1];
248
219
  pairs.push("".concat(key, "=\"").concat(escape(value), "\""));
249
220
  }
250
-
251
221
  innerTag = "<".concat(name).concat(pairs.length ? " ".concat(pairs.join(' ')) : '').concat(end);
252
-
253
222
  if (content) {
254
223
  innerTag += "".concat(content, "</").concat(name).concat(end);
255
224
  }
256
-
257
225
  return innerTag;
258
226
  }
227
+
259
228
  /**
260
229
  * Return cdata escaped CDATA `str`.
261
230
  * @param {string} str
262
231
  * @returns {string}
263
232
  */
264
-
265
-
266
233
  function cdata(str) {
267
234
  return "<![CDATA[".concat(escape(str), "]]>");
268
235
  }
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["util","require","fs","Base","utils","escape","mkdirp","path","pick","exports","module","XUnit","runner","options","stats","tests","self","reporterOptions","output","createWriteStream","Error","sync","dirname","fileStream","on","test","push","logMethodNames","originalMethods","console","systemErr","systemOut","forEach","methodName","args","callerInfo","stack","split","match","length","callerFile","relative","__dirname","unshift","toUpperCase","write","tag","name","failures","errors","skipped","passes","timestamp","Date","toUTCString","time","duration","t","inherits","prototype","done","fn","end","line","log","testFn","attrs","classname","parent","fullTitle","title","cdata","reduce","reducer","state","err","failureMessage","message","pending","out","innerOut","arg","close","content","pairs","innerTag","key","value","join","str"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n// These'll get cleaned up in the xunit PR; for now, they're just here because\n// this file attempted to follow the format of the mocha core xunit reporter\n/* eslint-disable no-console */\n/* eslint-disable no-multi-assign */\n\n/**\n * Module dependencies.\n */\n\nconst util = require('util');\nconst fs = require('fs');\n\nconst Base = require('mocha/lib/reporters/base');\nconst utils = require('mocha/lib/utils');\n\nconst {escape} = utils;\nconst mkdirp = require('mkdirp');\n\nconst path = require('path');\n\nconst {pick} = require('lodash');\n\n/**\n * Expose `XUnit`.\n */\n\nexports = module.exports = XUnit;\n\n/**\n * Initialize a new `XUnit` reporter.\n *\n * @param {Runner} runner\n * @param {Object} options\n * @returns {undefined}\n * @api public\n */\nfunction XUnit(runner, options) {\n Reflect.apply(Base, this, [runner]);\n const {stats} = this;\n const tests = [];\n const self = this;\n\n if (options.reporterOptions && options.reporterOptions.output) {\n if (!fs.createWriteStream) {\n throw new Error('file output not supported in browser');\n }\n mkdirp.sync(path.dirname(options.reporterOptions.output));\n self.fileStream = fs.createWriteStream(options.reporterOptions.output);\n }\n\n runner.on('pending', (test) => {\n tests.push(test);\n });\n\n runner.on('pass', (test) => {\n tests.push(test);\n });\n\n runner.on('fail', (test) => {\n tests.push(test);\n });\n\n const logMethodNames = ['error', 'warn', 'log', 'info', 'debug', 'trace'];\n const originalMethods = pick(console, logMethodNames);\n\n runner.on('test', (test) => {\n test.systemErr = [];\n test.systemOut = [];\n\n logMethodNames.forEach((methodName) => {\n if (!console[methodName]) {\n methodName = 'log';\n }\n\n console[methodName] = (...args) => {\n Reflect.apply(originalMethods[methodName], console, args);\n\n const callerInfo = (new Error())\n .stack\n .split('\\n')[2]\n .match(/\\((.+?):(\\d+):\\d+/);\n\n if (callerInfo && callerInfo.length >= 2) {\n const callerFile = path.relative(__dirname, '..', callerInfo[1]);\n\n args.unshift(`(FILE:${callerFile || 'UNKNOWN'})`);\n args.unshift(`(LINE:${callerInfo[2] || 'UNKNOWN'})`);\n }\n\n if (methodName === 'error') {\n test.systemErr.push(args);\n }\n else {\n args.unshift(`${methodName.toUpperCase()}:`);\n\n test.systemOut.push(args);\n }\n };\n });\n });\n\n runner.on('test end', () => {\n logMethodNames.forEach((methodName) => {\n console[methodName] = originalMethods[methodName];\n });\n });\n\n runner.on('end', () => {\n self.write('<testsuites>');\n self.write(tag('testsuite', {\n name: 'Mocha Tests',\n tests: stats.tests,\n failures: stats.failures,\n errors: stats.failures,\n skipped: stats.tests - stats.failures - stats.passes,\n timestamp: (new Date()).toUTCString(),\n time: stats.duration / 1000 || 0\n }, false));\n\n tests.forEach((t) => {\n self.test(t);\n });\n\n self.write('</testsuite>');\n self.write('</testsuites>');\n });\n}\n\n/**\n * Inherit from `Base.prototype`.\n */\nutil.inherits(XUnit, Base);\n\n/**\n * Override done to close the stream (if it's a file).\n *\n * @param {Array} failures\n * @param {Function} fn\n * @returns {undefined}\n */\nXUnit.prototype.done = function done(failures, fn) {\n if (this.fileStream) {\n this.fileStream.end(() => {\n fn(failures);\n });\n }\n else {\n fn(failures);\n }\n};\n\n/**\n * Write out the given line.\n *\n * @param {string} line\n * @returns {undefined}\n */\nXUnit.prototype.write = function write(line) {\n if (this.fileStream) {\n this.fileStream.write(`${line}\\n`);\n }\n else {\n console.log(line);\n }\n};\n\n/**\n * Output tag for the given `test.`\n *\n * @param {Test} test\n * @returns {undefined}\n */\nXUnit.prototype.test = function testFn(test) {\n const attrs = {\n classname: test.parent.fullTitle(),\n name: test.title,\n time: test.duration / 1000 || 0\n };\n\n let systemErr;\n\n if (test.systemErr && test.systemErr.length > 0) {\n systemErr = tag('system-err', {}, false, cdata(test.systemErr.reduce(reducer, '\\n')));\n }\n else {\n systemErr = '';\n }\n\n let systemOut;\n\n if (test.systemOut && test.systemOut.length > 0) {\n systemOut = tag('system-out', {}, false, cdata(test.systemOut.reduce(reducer, '\\n')));\n }\n else {\n systemOut = '';\n }\n\n if (test.state === 'failed') {\n const {err} = test;\n const failureMessage = tag('failure', {}, false, cdata(`${escape(err.message)}\\n${err.stack}`));\n\n this.write(tag('testcase', attrs, false, failureMessage + systemOut + systemErr));\n }\n else if (test.pending) {\n this.write(tag('testcase', attrs, false, tag('skipped', {}, true)));\n }\n else {\n this.write(tag('testcase', attrs, true));\n }\n\n /**\n * reducer\n * @param {string} out\n * @param {Array<mixed>} args\n * @returns {string}\n * @private\n */\n function reducer(out, args) {\n return `${out + args.reduce((innerOut, arg) => `${innerOut + arg} `, '')}\\n`;\n }\n};\n\n/**\n * HTML tag helper.\n *\n * @param {string} name\n * @param {Object} attrs\n * @param {boolean} close\n * @param {string} content\n * @returns {string}\n */\nfunction tag(name, attrs, close, content) {\n const end = close ? '/>' : '>';\n const pairs = [];\n let innerTag;\n\n for (const [key, value] of Object.entries(attrs)) {\n pairs.push(`${key}=\"${escape(value)}\"`);\n }\n\n innerTag = `<${name}${pairs.length ? ` ${pairs.join(' ')}` : ''}${end}`;\n if (content) {\n innerTag += `${content}</${name}${end}`;\n }\n\n return innerTag;\n}\n\n/**\n * Return cdata escaped CDATA `str`.\n * @param {string} str\n * @returns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CAAd;EACD,CAFI,MAGA;IACH,KAAKD,KAAL,CAAWC,GAAG,CAAC,UAAD,EAAaoB,KAAb,EAAoB,IAApB,CAAd;EACD;EAED;AACF;AACA;AACA;AACA;AACA;AACA;;;EACE,SAASO,OAAT,CAAiBM,GAAjB,EAAsB7C,IAAtB,EAA4B;IAC1B,iBAAU6C,GAAG,GAAG7C,IAAI,CAACsC,MAAL,CAAY,UAACQ,QAAD,EAAWC,GAAX;MAAA,iBAAsBD,QAAQ,GAAGC,GAAjC;IAAA,CAAZ,EAAqD,EAArD,CAAhB;EACD;AACF,CAhDD;AAkDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA,SAASnC,GAAT,CAAaC,IAAb,EAAmBmB,KAAnB,EAA0BgB,KAA1B,EAAiCC,OAAjC,EAA0C;EACxC,IAAMrB,GAAG,GAAGoB,KAAK,GAAG,IAAH,GAAU,GAA3B;EACA,IAAME,KAAK,GAAG,EAAd;EACA,IAAIC,QAAJ;;EAEA,mCAA2B,sBAAenB,KAAf,CAA3B,qCAAkD;IAA7C;IAAA,IAAOoB,GAAP;IAAA,IAAYC,KAAZ;;IACHH,KAAK,CAAC1D,IAAN,WAAc4D,GAAd,gBAAsBjF,MAAM,CAACkF,KAAD,CAA5B;EACD;;EAEDF,QAAQ,cAAOtC,IAAP,SAAcqC,KAAK,CAAC7C,MAAN,cAAmB6C,KAAK,CAACI,IAAN,CAAW,GAAX,CAAnB,IAAuC,EAArD,SAA0D1B,GAA1D,CAAR;;EACA,IAAIqB,OAAJ,EAAa;IACXE,QAAQ,cAAOF,OAAP,eAAmBpC,IAAnB,SAA0Be,GAA1B,CAAR;EACD;;EAED,OAAOuB,QAAP;AACD;AAED;AACA;AACA;AACA;AACA;;;AACA,SAASd,KAAT,CAAekB,GAAf,EAAoB;EAClB,0BAAmBpF,MAAM,CAACoF,GAAD,CAAzB;AACD"}
1
+ {"version":3,"names":["util","require","fs","Base","utils","escape","mkdirp","path","pick","exports","module","XUnit","runner","options","stats","tests","self","reporterOptions","output","createWriteStream","Error","sync","dirname","fileStream","on","test","push","logMethodNames","originalMethods","console","systemErr","systemOut","forEach","methodName","args","callerInfo","stack","split","match","length","callerFile","relative","__dirname","unshift","toUpperCase","write","tag","name","failures","errors","skipped","passes","timestamp","Date","toUTCString","time","duration","t","inherits","prototype","done","fn","end","line","log","testFn","attrs","classname","parent","fullTitle","title","cdata","reduce","reducer","state","err","failureMessage","message","pending","out","innerOut","arg","close","content","pairs","innerTag","key","value","join","str"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n// These'll get cleaned up in the xunit PR; for now, they're just here because\n// this file attempted to follow the format of the mocha core xunit reporter\n/* eslint-disable no-console */\n/* eslint-disable no-multi-assign */\n\n/**\n * Module dependencies.\n */\n\nconst util = require('util');\nconst fs = require('fs');\n\nconst Base = require('mocha/lib/reporters/base');\nconst utils = require('mocha/lib/utils');\n\nconst {escape} = utils;\nconst mkdirp = require('mkdirp');\n\nconst path = require('path');\n\nconst {pick} = require('lodash');\n\n/**\n * Expose `XUnit`.\n */\n\nexports = module.exports = XUnit;\n\n/**\n * Initialize a new `XUnit` reporter.\n *\n * @param {Runner} runner\n * @param {Object} options\n * @returns {undefined}\n * @api public\n */\nfunction XUnit(runner, options) {\n Reflect.apply(Base, this, [runner]);\n const {stats} = this;\n const tests = [];\n const self = this;\n\n if (options.reporterOptions && options.reporterOptions.output) {\n if (!fs.createWriteStream) {\n throw new Error('file output not supported in browser');\n }\n mkdirp.sync(path.dirname(options.reporterOptions.output));\n self.fileStream = fs.createWriteStream(options.reporterOptions.output);\n }\n\n runner.on('pending', (test) => {\n tests.push(test);\n });\n\n runner.on('pass', (test) => {\n tests.push(test);\n });\n\n runner.on('fail', (test) => {\n tests.push(test);\n });\n\n const logMethodNames = ['error', 'warn', 'log', 'info', 'debug', 'trace'];\n const originalMethods = pick(console, logMethodNames);\n\n runner.on('test', (test) => {\n test.systemErr = [];\n test.systemOut = [];\n\n logMethodNames.forEach((methodName) => {\n if (!console[methodName]) {\n methodName = 'log';\n }\n\n console[methodName] = (...args) => {\n Reflect.apply(originalMethods[methodName], console, args);\n\n const callerInfo = new Error().stack.split('\\n')[2].match(/\\((.+?):(\\d+):\\d+/);\n\n if (callerInfo && callerInfo.length >= 2) {\n const callerFile = path.relative(__dirname, '..', callerInfo[1]);\n\n args.unshift(`(FILE:${callerFile || 'UNKNOWN'})`);\n args.unshift(`(LINE:${callerInfo[2] || 'UNKNOWN'})`);\n }\n\n if (methodName === 'error') {\n test.systemErr.push(args);\n } else {\n args.unshift(`${methodName.toUpperCase()}:`);\n\n test.systemOut.push(args);\n }\n };\n });\n });\n\n runner.on('test end', () => {\n logMethodNames.forEach((methodName) => {\n console[methodName] = originalMethods[methodName];\n });\n });\n\n runner.on('end', () => {\n self.write('<testsuites>');\n self.write(\n tag(\n 'testsuite',\n {\n name: 'Mocha Tests',\n tests: stats.tests,\n failures: stats.failures,\n errors: stats.failures,\n skipped: stats.tests - stats.failures - stats.passes,\n timestamp: new Date().toUTCString(),\n time: stats.duration / 1000 || 0,\n },\n false\n )\n );\n\n tests.forEach((t) => {\n self.test(t);\n });\n\n self.write('</testsuite>');\n self.write('</testsuites>');\n });\n}\n\n/**\n * Inherit from `Base.prototype`.\n */\nutil.inherits(XUnit, Base);\n\n/**\n * Override done to close the stream (if it's a file).\n *\n * @param {Array} failures\n * @param {Function} fn\n * @returns {undefined}\n */\nXUnit.prototype.done = function done(failures, fn) {\n if (this.fileStream) {\n this.fileStream.end(() => {\n fn(failures);\n });\n } else {\n fn(failures);\n }\n};\n\n/**\n * Write out the given line.\n *\n * @param {string} line\n * @returns {undefined}\n */\nXUnit.prototype.write = function write(line) {\n if (this.fileStream) {\n this.fileStream.write(`${line}\\n`);\n } else {\n console.log(line);\n }\n};\n\n/**\n * Output tag for the given `test.`\n *\n * @param {Test} test\n * @returns {undefined}\n */\nXUnit.prototype.test = function testFn(test) {\n const attrs = {\n classname: test.parent.fullTitle(),\n name: test.title,\n time: test.duration / 1000 || 0,\n };\n\n let systemErr;\n\n if (test.systemErr && test.systemErr.length > 0) {\n systemErr = tag('system-err', {}, false, cdata(test.systemErr.reduce(reducer, '\\n')));\n } else {\n systemErr = '';\n }\n\n let systemOut;\n\n if (test.systemOut && test.systemOut.length > 0) {\n systemOut = tag('system-out', {}, false, cdata(test.systemOut.reduce(reducer, '\\n')));\n } else {\n systemOut = '';\n }\n\n if (test.state === 'failed') {\n const {err} = test;\n const failureMessage = tag('failure', {}, false, cdata(`${escape(err.message)}\\n${err.stack}`));\n\n this.write(tag('testcase', attrs, false, failureMessage + systemOut + systemErr));\n } else if (test.pending) {\n this.write(tag('testcase', attrs, false, tag('skipped', {}, true)));\n } else {\n this.write(tag('testcase', attrs, true));\n }\n\n /**\n * reducer\n * @param {string} out\n * @param {Array<mixed>} args\n * @returns {string}\n * @private\n */\n function reducer(out, args) {\n return `${out + args.reduce((innerOut, arg) => `${innerOut + arg} `, '')}\\n`;\n }\n};\n\n/**\n * HTML tag helper.\n *\n * @param {string} name\n * @param {Object} attrs\n * @param {boolean} close\n * @param {string} content\n * @returns {string}\n */\nfunction tag(name, attrs, close, content) {\n const end = close ? '/>' : '>';\n const pairs = [];\n let innerTag;\n\n for (const [key, value] of Object.entries(attrs)) {\n pairs.push(`${key}=\"${escape(value)}\"`);\n }\n\n innerTag = `<${name}${pairs.length ? ` ${pairs.join(' ')}` : ''}${end}`;\n if (content) {\n innerTag += `${content}</${name}${end}`;\n }\n\n return innerTag;\n}\n\n/**\n * Return cdata escaped CDATA `str`.\n * @param {string} str\n * @returns {string}\n */\nfunction cdata(str) {\n return `<![CDATA[${escape(str)}]]>`;\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,IAAMA,IAAI,GAAGC,OAAO,CAAC,MAAM,CAAC;AAC5B,IAAMC,EAAE,GAAGD,OAAO,CAAC,I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IAAI,EAAE;IAC1B,iBAAU6C,GAAG,GAAG7C,IAAI,CAACsC,MAAM,CAAC,UAACQ,QAAQ,EAAEC,GAAG;MAAA,iBAAQD,QAAQ,GAAGC,GAAG;IAAA,CAAG,EAAE,EAAE,CAAC;EAC1E;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASnC,GAAG,CAACC,IAAI,EAAEmB,KAAK,EAAEgB,KAAK,EAAEC,OAAO,EAAE;EACxC,IAAMrB,GAAG,GAAGoB,KAAK,GAAG,IAAI,GAAG,GAAG;EAC9B,IAAME,KAAK,GAAG,EAAE;EAChB,IAAIC,QAAQ;EAEZ,mCAA2B,sBAAenB,KAAK,CAAC,qCAAE;IAA7C;MAAOoB,GAAG;MAAEC,KAAK;IACpBH,KAAK,CAAC1D,IAAI,WAAI4D,GAAG,gBAAKjF,MAAM,CAACkF,KAAK,CAAC,QAAI;EACzC;EAEAF,QAAQ,cAAOtC,IAAI,SAAGqC,KAAK,CAAC7C,MAAM,cAAO6C,KAAK,CAACI,IAAI,CAAC,GAAG,CAAC,IAAK,EAAE,SAAG1B,GAAG,CAAE;EACvE,IAAIqB,OAAO,EAAE;IACXE,QAAQ,cAAOF,OAAO,eAAKpC,IAAI,SAAGe,GAAG,CAAE;EACzC;EAEA,OAAOuB,QAAQ;AACjB;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASd,KAAK,CAACkB,GAAG,EAAE;EAClB,0BAAmBpF,MAAM,CAACoF,GAAG,CAAC;AAChC"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Converts a string from a base64url-encoded string
3
+ * @param {string} str
4
+ * @returns {string}
5
+ */
6
+ export function fromBase64url(str: string): string;
7
+ /**
8
+ * Converts a string to a base64url-encoded string. It also accepts a buffer
9
+ * @param {string|buffer} str
10
+ * @returns {string}
11
+ */
12
+ export function toBase64Url(str: any): string;
13
+ /**
14
+ * Converts a string to a base64url-encoded string. It also accepts a buffer
15
+ * @param {string|buffer} str
16
+ * @returns {string}
17
+ */
18
+ export function encode(str: string | buffer): string;
19
+ /**
20
+ * Converts a string from a base64url-encoded string
21
+ * @param {string} str
22
+ * @returns {string}
23
+ */
24
+ export function decode(str: string): string;
25
+ /**
26
+ * Indicates if the provided string is, in fact, a base64 string
27
+ * @param {String} str
28
+ * @returns {Boolean}
29
+ */
30
+ export function validate(str: string): boolean;
31
+ declare namespace _default {
32
+ export { fromBase64url };
33
+ export { toBase64Url };
34
+ export { encode };
35
+ export { decode };
36
+ export { validate };
37
+ }
38
+ export default _default;
@@ -0,0 +1,8 @@
1
+ declare const _default: ((agent: any) => {
2
+ getOSName: () => any;
3
+ getOSVersion: () => any;
4
+ getBrowserName: () => any;
5
+ getBrowserVersion: () => any;
6
+ isBrowser: (name: any) => boolean;
7
+ }) & import("lodash").MemoizedFunction;
8
+ export default _default;
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
3
+ */
4
+ /**
5
+ * Behaves like debounce, but additionally executes after a number of calls are
6
+ * attempted, rather than just time
7
+ * @param {Function} fn
8
+ * @param {Number} wait
9
+ * @param {Object} options
10
+ * @returns {Function}
11
+ */
12
+ export default function debounce(fn: Function, wait: number, options: any): Function;
@@ -0,0 +1,11 @@
1
+ /*!
2
+ * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
3
+ */
4
+ /**
5
+ * Check object for the specified keys
6
+ * @param {Array<string>} keys
7
+ * @param {Object} object
8
+ * @returns {undefined}
9
+ * @throws Error
10
+ */
11
+ export default function checkRequired(keys: Array<string>, object: any): undefined;
@@ -0,0 +1,76 @@
1
+ export namespace SDK_EVENT {
2
+ namespace INTERNAL {
3
+ const WEBEX_ACTIVITY: string;
4
+ namespace ACTIVITY_FIELD {
5
+ const ACTOR: string;
6
+ const OBJECT: string;
7
+ const TARGET: string;
8
+ }
9
+ namespace ACTIVITY_VERB {
10
+ const ACKNOWLEDGE: string;
11
+ const CARD_ACTION: string;
12
+ const CREATE: string;
13
+ const POST: string;
14
+ const SHARE: string;
15
+ const DELETE: string;
16
+ const ADD: string;
17
+ const LEAVE: string;
18
+ const ADD_MODERATOR: string;
19
+ const REMOVE_MODERATOR: string;
20
+ const LOCK: string;
21
+ const UNLOCK: string;
22
+ const HIDE: string;
23
+ const UPDATE: string;
24
+ }
25
+ namespace ACTIVITY_TAG {
26
+ const HIDDEN: string;
27
+ const ONE_ON_ONE: string;
28
+ const LOCKED: string;
29
+ }
30
+ }
31
+ namespace EXTERNAL {
32
+ namespace EVENT_TYPE {
33
+ const CREATED: string;
34
+ const DELETED: string;
35
+ const UPDATED: string;
36
+ const SEEN: string;
37
+ }
38
+ namespace OWNER {
39
+ const CREATOR: string;
40
+ const ORG: string;
41
+ }
42
+ namespace STATUS {
43
+ const ACTIVE: string;
44
+ const DISABLED: string;
45
+ }
46
+ namespace SPACE_TYPE {
47
+ const DIRECT: string;
48
+ const GROUP: string;
49
+ }
50
+ namespace RESOURCE {
51
+ const ATTACHMENT_ACTIONS: string;
52
+ const MEMBERSHIPS: string;
53
+ const MESSAGES: string;
54
+ const ROOMS: string;
55
+ }
56
+ namespace ATTACHMENTS {
57
+ const CARD_CONTENT_TYPE: string;
58
+ }
59
+ }
60
+ }
61
+ export namespace hydraTypes {
62
+ const ATTACHMENT_ACTION: string;
63
+ const CONTENT: string;
64
+ const MEMBERSHIP: string;
65
+ const MESSAGE: string;
66
+ const ORGANIZATION: string;
67
+ const PEOPLE: string;
68
+ const ROOM: string;
69
+ const TEAM: string;
70
+ }
71
+ export namespace deviceType {
72
+ const PROVISIONAL: string;
73
+ const WEB: string;
74
+ }
75
+ export const INTERNAL_US_CLUSTER_NAME: "urn:TEAM:us-east-2_a";
76
+ export const INTERNAL_US_INTEGRATION_CLUSTER_NAME: "urn:TEAM:us-east-1_int13";
@@ -0,0 +1,23 @@
1
+ /*!
2
+ * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
3
+ */
4
+ /**
5
+ * Creates a new `Defer`red object,
6
+ * @returns {Defer}
7
+ */
8
+ export default function Defer(): Defer;
9
+ export default class Defer {
10
+ promise: Promise<any>;
11
+ /**
12
+ * @instance
13
+ * @memberof Defer
14
+ * @type {function}
15
+ */
16
+ resolve: Function;
17
+ /**
18
+ * @instance
19
+ * @memberof Defer
20
+ * @type {function}
21
+ */
22
+ reject: Function;
23
+ }
@@ -0,0 +1,7 @@
1
+ export default exportedDeprecated;
2
+ declare const exportedDeprecated: import("core-decorators").Deprecate | typeof emptyDecorator;
3
+ /**
4
+ * @private
5
+ * @returns {function}
6
+ */
7
+ declare function emptyDecorator(): Function;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Creates a 'webhook' envelope to wrap Webex events in
3
+ * @param {object} webex - sdk object
4
+ * @param {string} resource - resource to create an envelope for
5
+ * @returns {object} - Returns a promise of an event envelope object
6
+ */
7
+ export function createEventEnvelope(webex: object, resource: string): object;
8
+ /**
9
+ * Stores SDK users info in the sdk object if it doesn't already exist
10
+ * @param {object} webex - sdk object
11
+ * @returns {Promise} - Returns a promise that user info will be available
12
+ */
13
+ export function ensureMyIdIsAvailable(webex: object): Promise<any>;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Proxies the event binding methods of emitter onto proxy
3
+ * @param {EventEmitter|EventEmitterProxy} emitter
4
+ * @param {mixed} proxy (probably a promise)
5
+ * @returns {EventEmitter} Returns the source emitter to ease use in promise chains
6
+ */
7
+ export function proxyEvents(emitter: EventEmitter | EventEmitterProxy, proxy: mixed): EventEmitter;
8
+ /**
9
+ * Given a list of events, fires them on drain when they're emitted from source
10
+ * @param {Array|string} events
11
+ * @param {EventEmitter} source
12
+ * @param {EventEmitter} drain
13
+ * @returns {undefined}
14
+ */
15
+ export function transferEvents(events: any[] | string, source: EventEmitter, drain: EventEmitter): undefined;
@@ -0,0 +1,23 @@
1
+ /*!
2
+ * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
3
+ */
4
+ /**
5
+ * Base Exception class
6
+ */
7
+ export default class Exception extends Error {
8
+ static defaultMessage: string;
9
+ /**
10
+ * Generates the value assigned to `this.message`. You'll probably want to
11
+ * override this in your custom Exception
12
+ * @param {mixed} args
13
+ * @returns {string}
14
+ */
15
+ static parse(...args: mixed): string;
16
+ /**
17
+ * constructor
18
+ * @param {mixed} args
19
+ * @returns {Exception}
20
+ */
21
+ constructor(...args: mixed);
22
+ message: any;
23
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: true;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default } from "./node";
@@ -0,0 +1,2 @@
1
+ declare const _default: false;
2
+ export default _default;
@@ -0,0 +1,21 @@
1
+ export { default as base64 } from "./base64";
2
+ export { default as isBuffer } from "./isBuffer";
3
+ export { default as cappedDebounce } from "./capped-debounce";
4
+ export { default as checkRequired } from "./check-required";
5
+ export { default as Defer } from "./defer";
6
+ export { default as makeStateDataType } from "./make-state-datatype";
7
+ export { default as make } from "./template-container";
8
+ export { default as oneFlight } from "./one-flight";
9
+ export { default as patterns } from "./patterns";
10
+ export { default as resolveWith } from "./resolve-with";
11
+ export { default as retry } from "./retry";
12
+ export { default as tap } from "./tap";
13
+ export { default as whileInFlight } from "./while-in-flight";
14
+ export { default as Exception } from "./exception";
15
+ export { default as deprecated } from "./deprecated";
16
+ export { default as inBrowser } from "./in-browser";
17
+ export { default as BrowserDetection } from "./browser-detection";
18
+ export { proxyEvents, transferEvents } from "./events";
19
+ export { createEventEnvelope, ensureMyIdIsAvailable } from "./event-envelope";
20
+ export { deviceType, hydraTypes, SDK_EVENT, INTERNAL_US_CLUSTER_NAME, INTERNAL_US_INTEGRATION_CLUSTER_NAME } from "./constants";
21
+ export { buildHydraMembershipId, buildHydraMessageId, buildHydraOrgId, buildHydraPersonId, buildHydraRoomId, getHydraRoomType, getHydraClusterString, getHydraFiles, constructHydraId, deconstructHydraId } from "./uuid-utils";
@@ -0,0 +1,2 @@
1
+ declare function _default(buffer: buffer): boolean;
2
+ export default _default;
@@ -0,0 +1,11 @@
1
+ /*!
2
+ * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
3
+ */
4
+ /**
5
+ * Creates an ampersand state object that wires its event handlers like a an
6
+ * ampersand child
7
+ * @param {Function} Constructor
8
+ * @param {string} name
9
+ * @returns {Object}
10
+ */
11
+ export default function makeStateDataType(Constructor: Function, name: string): any;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @memberof Util
3
+ * @param {Object} options
4
+ * @param {Function} options.keyFactory
5
+ * @param {boolean} options.cacheFailures
6
+ * @param {boolean} options.cacheSuccesses
7
+ * @returns {Function}
8
+ */
9
+ export default function oneFlight(...params: any[]): Function;
@@ -0,0 +1,8 @@
1
+ declare namespace _default {
2
+ const email: RegExp;
3
+ const containsEmails: RegExp;
4
+ const uuid: RegExp;
5
+ const execEmail: RegExp;
6
+ const execUuid: RegExp;
7
+ }
8
+ export default _default;
@@ -0,0 +1,22 @@
1
+ /*!
2
+ * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
3
+ */
4
+ /**
5
+ * Sugar method for returning the desired object at the end of a promise chain
6
+ * @param {any} object the item with which to resolve the promise chain
7
+ * @returns {function}
8
+ * @example
9
+ * var item = {
10
+ * prop: 2
11
+ * };
12
+ * Promise
13
+ * .resolve(item.prop)
14
+ * .then(resolveWith(item))
15
+ * .then(function(res) {
16
+ * require('assert').deepEqual(res, {prop:2});
17
+ * return 'success'
18
+ * })
19
+ * // => success
20
+ *
21
+ */
22
+ export default function resolveWith(object: any): Function;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Makes a promise-returning method retryable according to the specified backoff
3
+ * pattern
4
+ * @param {Object} options
5
+ * @param {boolean} options.backoff
6
+ * @param {number} options.delay
7
+ * @param {number} options.initialDelay
8
+ * @param {number} options.maxAttempts
9
+ * @param {number} options.maxDelay
10
+ *
11
+ * @returns {Function}
12
+ */
13
+ export default function retry(...params: any[]): Function;