@webex/test-helper-file 3.0.0-beta.8 → 3.0.0-bnr.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (657) hide show
  1. package/dist/file.js +7 -38
  2. package/dist/file.js.map +1 -1
  3. package/dist/file.shim.js +7 -30
  4. package/dist/file.shim.js.map +1 -1
  5. package/dist/index.js +0 -3
  6. package/dist/index.js.map +1 -1
  7. package/dist/types/@webex/common/src/base64.d.ts +38 -0
  8. package/dist/types/@webex/common/src/browser-detection.d.ts +8 -0
  9. package/dist/types/@webex/common/src/capped-debounce.d.ts +12 -0
  10. package/dist/types/@webex/common/src/check-required.d.ts +11 -0
  11. package/dist/types/@webex/common/src/constants.d.ts +76 -0
  12. package/dist/types/@webex/common/src/defer.d.ts +23 -0
  13. package/dist/types/@webex/common/src/deprecated.d.ts +7 -0
  14. package/dist/types/@webex/common/src/event-envelope.d.ts +13 -0
  15. package/dist/types/@webex/common/src/events.d.ts +15 -0
  16. package/dist/types/@webex/common/src/exception.d.ts +23 -0
  17. package/dist/types/@webex/common/src/in-browser/browser.d.ts +2 -0
  18. package/dist/types/@webex/common/src/in-browser/index.d.ts +1 -0
  19. package/dist/types/@webex/common/src/in-browser/node.d.ts +2 -0
  20. package/dist/types/@webex/common/src/index.d.ts +21 -0
  21. package/dist/types/@webex/common/src/isBuffer.d.ts +2 -0
  22. package/dist/types/@webex/common/src/make-state-datatype.d.ts +11 -0
  23. package/dist/types/@webex/common/src/one-flight.d.ts +9 -0
  24. package/dist/types/@webex/common/src/patterns.d.ts +8 -0
  25. package/dist/types/@webex/common/src/resolve-with.d.ts +22 -0
  26. package/dist/types/@webex/common/src/retry.d.ts +13 -0
  27. package/dist/types/@webex/common/src/tap.d.ts +17 -0
  28. package/dist/types/@webex/common/src/template-container.d.ts +59 -0
  29. package/dist/types/@webex/common/src/uuid-utils.d.ts +112 -0
  30. package/dist/types/@webex/common/src/while-in-flight.d.ts +7 -0
  31. package/dist/types/@webex/common/test/unit/spec/capped-debounce.d.ts +1 -0
  32. package/dist/types/@webex/common/test/unit/spec/common.d.ts +1 -0
  33. package/dist/types/@webex/common/test/unit/spec/exception.d.ts +1 -0
  34. package/dist/types/@webex/common/test/unit/spec/one-flight.d.ts +1 -0
  35. package/dist/types/@webex/common/test/unit/spec/template-container.d.ts +1 -0
  36. package/dist/types/@webex/common/test/unit/spec/while-in-flight.d.ts +1 -0
  37. package/dist/types/@webex/common-evented/src/index.d.ts +9 -0
  38. package/dist/types/@webex/common-evented/test/unit/spec/evented.d.ts +1 -0
  39. package/dist/types/@webex/common-timers/src/index.d.ts +19 -0
  40. package/dist/types/@webex/helper-html/browsers.d.ts +2 -0
  41. package/dist/types/@webex/helper-html/src/html-base.d.ts +12 -0
  42. package/dist/types/@webex/helper-html/src/html.d.ts +5 -0
  43. package/dist/types/@webex/helper-html/src/html.shim.d.ts +33 -0
  44. package/dist/types/@webex/helper-html/src/index.d.ts +1 -0
  45. package/dist/types/@webex/helper-html/test/unit/spec/html.d.ts +1 -0
  46. package/dist/types/@webex/helper-image/src/detect-filetype.d.ts +7 -0
  47. package/dist/types/@webex/helper-image/src/index.d.ts +26 -0
  48. package/dist/types/@webex/helper-image/src/process-image.browser.d.ts +19 -0
  49. package/dist/types/@webex/helper-image/src/process-image.d.ts +17 -0
  50. package/dist/types/@webex/helper-image/test/unit/spec/index.d.ts +1 -0
  51. package/dist/types/@webex/http-core/src/http-error-subtypes.d.ts +8 -0
  52. package/dist/types/@webex/http-core/src/http-error.d.ts +41 -0
  53. package/dist/types/@webex/http-core/src/index.d.ts +7 -0
  54. package/dist/types/@webex/http-core/src/interceptors/http-status.d.ts +17 -0
  55. package/dist/types/@webex/http-core/src/lib/detect.d.ts +6 -0
  56. package/dist/types/@webex/http-core/src/lib/interceptor.d.ts +51 -0
  57. package/dist/types/@webex/http-core/src/lib/xhr.d.ts +6 -0
  58. package/dist/types/@webex/http-core/src/progress-event.d.ts +18 -0
  59. package/dist/types/@webex/http-core/src/request/index.d.ts +5 -0
  60. package/dist/types/@webex/http-core/src/request/request.d.ts +6 -0
  61. package/dist/types/@webex/http-core/src/request/request.shim.d.ts +6 -0
  62. package/dist/types/@webex/http-core/test/integration/spec/http-error.d.ts +1 -0
  63. package/dist/types/@webex/http-core/test/integration/spec/interceptor.d.ts +1 -0
  64. package/dist/types/@webex/http-core/test/integration/spec/progress-event.d.ts +1 -0
  65. package/dist/types/@webex/http-core/test/integration/spec/request.d.ts +1 -0
  66. package/dist/types/@webex/http-core/test/unit/spec/interceptors/http-status.d.ts +1 -0
  67. package/dist/types/@webex/internal-plugin-avatar/src/avatar-url-batcher.d.ts +2 -0
  68. package/dist/types/@webex/internal-plugin-avatar/src/avatar-url-store.d.ts +50 -0
  69. package/dist/types/@webex/internal-plugin-avatar/src/avatar.d.ts +2 -0
  70. package/dist/types/@webex/internal-plugin-avatar/src/config.d.ts +13 -0
  71. package/dist/types/@webex/internal-plugin-avatar/src/index.d.ts +1 -0
  72. package/dist/types/@webex/internal-plugin-avatar/test/integration/spec/avatar.d.ts +1 -0
  73. package/dist/types/@webex/internal-plugin-avatar/test/unit/spec/avatar-url-batcher.d.ts +1 -0
  74. package/dist/types/@webex/internal-plugin-avatar/test/unit/spec/avatar-url-store.d.ts +1 -0
  75. package/dist/types/@webex/internal-plugin-avatar/test/unit/spec/avatar.d.ts +1 -0
  76. package/dist/types/@webex/internal-plugin-board/src/board.d.ts +2 -0
  77. package/dist/types/@webex/internal-plugin-board/src/config.d.ts +11 -0
  78. package/dist/types/@webex/internal-plugin-board/src/index.d.ts +4 -0
  79. package/dist/types/@webex/internal-plugin-board/src/realtime-channel-collection.d.ts +2 -0
  80. package/dist/types/@webex/internal-plugin-board/src/realtime-channel.d.ts +2 -0
  81. package/dist/types/@webex/internal-plugin-board/src/realtime.d.ts +7 -0
  82. package/dist/types/@webex/internal-plugin-board/test/integration/spec/board.d.ts +1 -0
  83. package/dist/types/@webex/internal-plugin-board/test/integration/spec/realtime.d.ts +1 -0
  84. package/dist/types/@webex/internal-plugin-board/test/integration/spec/sharing-mercury.d.ts +1 -0
  85. package/dist/types/@webex/internal-plugin-board/test/unit/spec/board.d.ts +1 -0
  86. package/dist/types/@webex/internal-plugin-board/test/unit/spec/encryption.d.ts +1 -0
  87. package/dist/types/@webex/internal-plugin-board/test/unit/spec/realtime.d.ts +1 -0
  88. package/dist/types/@webex/internal-plugin-calendar/src/calendar.d.ts +2 -0
  89. package/dist/types/@webex/internal-plugin-calendar/src/collection.d.ts +58 -0
  90. package/dist/types/@webex/internal-plugin-calendar/src/config.d.ts +7 -0
  91. package/dist/types/@webex/internal-plugin-calendar/src/constants.d.ts +6 -0
  92. package/dist/types/@webex/internal-plugin-calendar/src/index.d.ts +1 -0
  93. package/dist/types/@webex/internal-plugin-calendar/src/util.d.ts +15 -0
  94. package/dist/types/@webex/internal-plugin-calendar/test/integration/spec/calendar.d.ts +1 -0
  95. package/dist/types/@webex/internal-plugin-calendar/test/unit/spec/calendar.d.ts +1 -0
  96. package/dist/types/@webex/internal-plugin-calendar/test/unit/spec/utils.d.ts +1 -0
  97. package/dist/types/@webex/internal-plugin-conversation/src/activities.d.ts +32 -0
  98. package/dist/types/@webex/internal-plugin-conversation/src/activity-thread-ordering.d.ts +18 -0
  99. package/dist/types/@webex/internal-plugin-conversation/src/config.d.ts +19 -0
  100. package/dist/types/@webex/internal-plugin-conversation/src/constants.d.ts +5 -0
  101. package/dist/types/@webex/internal-plugin-conversation/src/conversation.d.ts +2 -0
  102. package/dist/types/@webex/internal-plugin-conversation/src/convo-error.d.ts +10 -0
  103. package/dist/types/@webex/internal-plugin-conversation/src/decryption-transforms.d.ts +1 -0
  104. package/dist/types/@webex/internal-plugin-conversation/src/encryption-transforms.d.ts +1 -0
  105. package/dist/types/@webex/internal-plugin-conversation/src/index.d.ts +3 -0
  106. package/dist/types/@webex/internal-plugin-conversation/src/share-activity.d.ts +7 -0
  107. package/dist/types/@webex/internal-plugin-conversation/src/to-array.d.ts +9 -0
  108. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/create.d.ts +1 -0
  109. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/encryption.d.ts +1 -0
  110. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/get.d.ts +1 -0
  111. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/mercury.d.ts +1 -0
  112. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/share.d.ts +1 -0
  113. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/verbs.d.ts +1 -0
  114. package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/conversation.d.ts +1 -0
  115. package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/decrypt-transforms.d.ts +1 -0
  116. package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/encryption-transforms.d.ts +1 -0
  117. package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/share-activity.d.ts +1 -0
  118. package/dist/types/@webex/internal-plugin-device/src/config.d.ts +10 -0
  119. package/dist/types/@webex/internal-plugin-device/src/constants.d.ts +12 -0
  120. package/dist/types/@webex/internal-plugin-device/src/device.d.ts +2 -0
  121. package/dist/types/@webex/internal-plugin-device/src/features/feature-collection.d.ts +9 -0
  122. package/dist/types/@webex/internal-plugin-device/src/features/feature-model.d.ts +29 -0
  123. package/dist/types/@webex/internal-plugin-device/src/features/features-model.d.ts +9 -0
  124. package/dist/types/@webex/internal-plugin-device/src/features/index.d.ts +4 -0
  125. package/dist/types/@webex/internal-plugin-device/src/index.d.ts +8 -0
  126. package/dist/types/@webex/internal-plugin-device/src/interceptors/device-url.d.ts +15 -0
  127. package/dist/types/@webex/internal-plugin-device/src/metrics.d.ts +5 -0
  128. package/dist/types/@webex/internal-plugin-device/test/integration/spec/device.d.ts +1 -0
  129. package/dist/types/@webex/internal-plugin-device/test/integration/spec/webex.d.ts +1 -0
  130. package/dist/types/@webex/internal-plugin-device/test/unit/spec/device.d.ts +1 -0
  131. package/dist/types/@webex/internal-plugin-device/test/unit/spec/features/feature-collection.d.ts +1 -0
  132. package/dist/types/@webex/internal-plugin-device/test/unit/spec/features/feature-model.d.ts +1 -0
  133. package/dist/types/@webex/internal-plugin-device/test/unit/spec/features/features-model.d.ts +1 -0
  134. package/dist/types/@webex/internal-plugin-device/test/unit/spec/interceptors/device-url.d.ts +1 -0
  135. package/dist/types/@webex/internal-plugin-dss/src/constants.d.ts +14 -0
  136. package/dist/types/@webex/internal-plugin-dss/src/dss.d.ts +3 -0
  137. package/dist/types/@webex/internal-plugin-dss/src/index.d.ts +1 -0
  138. package/dist/types/@webex/internal-plugin-dss/src/types.d.ts +28 -0
  139. package/dist/types/@webex/internal-plugin-dss/test/unit/spec/dss.d.ts +4 -0
  140. package/dist/types/@webex/internal-plugin-ediscovery/src/config.d.ts +11 -0
  141. package/dist/types/@webex/internal-plugin-ediscovery/src/ediscovery-error.d.ts +11 -0
  142. package/dist/types/@webex/internal-plugin-ediscovery/src/ediscovery.d.ts +6 -0
  143. package/dist/types/@webex/internal-plugin-ediscovery/src/index.d.ts +4 -0
  144. package/dist/types/@webex/internal-plugin-ediscovery/src/report-request.d.ts +29 -0
  145. package/dist/types/@webex/internal-plugin-ediscovery/src/retry.d.ts +2 -0
  146. package/dist/types/@webex/internal-plugin-ediscovery/src/transforms.d.ts +35 -0
  147. package/dist/types/@webex/internal-plugin-ediscovery/test/integration/spec/ediscovery.d.ts +1 -0
  148. package/dist/types/@webex/internal-plugin-ediscovery/test/unit/spec/content.d.ts +1 -0
  149. package/dist/types/@webex/internal-plugin-ediscovery/test/unit/spec/report.d.ts +1 -0
  150. package/dist/types/@webex/internal-plugin-ediscovery/test/unit/spec/transforms.d.ts +1 -0
  151. package/dist/types/@webex/internal-plugin-encryption/src/config.d.ts +16 -0
  152. package/dist/types/@webex/internal-plugin-encryption/src/encryption.d.ts +2 -0
  153. package/dist/types/@webex/internal-plugin-encryption/src/ensure-buffer.browser.d.ts +10 -0
  154. package/dist/types/@webex/internal-plugin-encryption/src/ensure-buffer.d.ts +7 -0
  155. package/dist/types/@webex/internal-plugin-encryption/src/index.d.ts +3 -0
  156. package/dist/types/@webex/internal-plugin-encryption/src/kms-batcher.d.ts +6 -0
  157. package/dist/types/@webex/internal-plugin-encryption/src/kms-certificate-validation.d.ts +24 -0
  158. package/dist/types/@webex/internal-plugin-encryption/src/kms-dry-error-interceptor.d.ts +25 -0
  159. package/dist/types/@webex/internal-plugin-encryption/src/kms-errors.d.ts +33 -0
  160. package/dist/types/@webex/internal-plugin-encryption/src/kms.d.ts +5 -0
  161. package/dist/types/@webex/internal-plugin-encryption/test/integration/spec/encryption.d.ts +1 -0
  162. package/dist/types/@webex/internal-plugin-encryption/test/integration/spec/kms.d.ts +1 -0
  163. package/dist/types/@webex/internal-plugin-encryption/test/integration/spec/payload-transfom.d.ts +1 -0
  164. package/dist/types/@webex/internal-plugin-encryption/test/unit/spec/encryption.d.ts +1 -0
  165. package/dist/types/@webex/internal-plugin-encryption/test/unit/spec/kms-certificate-validation.d.ts +1 -0
  166. package/dist/types/@webex/internal-plugin-feature/src/config.d.ts +4 -0
  167. package/dist/types/@webex/internal-plugin-feature/src/feature.d.ts +2 -0
  168. package/dist/types/@webex/internal-plugin-feature/src/index.d.ts +1 -0
  169. package/dist/types/@webex/internal-plugin-feature/test/integration/spec/feature.d.ts +1 -0
  170. package/dist/types/@webex/internal-plugin-feature/test/unit/spec/feature.d.ts +1 -0
  171. package/dist/types/@webex/internal-plugin-flag/src/config.d.ts +4 -0
  172. package/dist/types/@webex/internal-plugin-flag/src/flag.d.ts +2 -0
  173. package/dist/types/@webex/internal-plugin-flag/src/index.d.ts +1 -0
  174. package/dist/types/@webex/internal-plugin-flag/test/integration/spec/flag.d.ts +1 -0
  175. package/dist/types/@webex/internal-plugin-flag/test/unit/spec/flag.d.ts +1 -0
  176. package/dist/types/@webex/internal-plugin-llm/src/constants.d.ts +1 -0
  177. package/dist/types/@webex/internal-plugin-llm/src/index.d.ts +1 -0
  178. package/dist/types/@webex/internal-plugin-llm/src/llm.d.ts +88 -0
  179. package/dist/types/@webex/internal-plugin-llm/src/llm.types.d.ts +8 -0
  180. package/dist/types/@webex/internal-plugin-llm/test/unit/spec/llm.d.ts +1 -0
  181. package/dist/types/@webex/internal-plugin-locus/src/event-keys.d.ts +5 -0
  182. package/dist/types/@webex/internal-plugin-locus/src/index.d.ts +4 -0
  183. package/dist/types/@webex/internal-plugin-locus/src/locus.d.ts +12 -0
  184. package/dist/types/@webex/internal-plugin-locus/test/unit/spec/locus.d.ts +1 -0
  185. package/dist/types/@webex/internal-plugin-lyra/src/config.d.ts +4 -0
  186. package/dist/types/@webex/internal-plugin-lyra/src/device.d.ts +7 -0
  187. package/dist/types/@webex/internal-plugin-lyra/src/index.d.ts +3 -0
  188. package/dist/types/@webex/internal-plugin-lyra/src/lyra.d.ts +2 -0
  189. package/dist/types/@webex/internal-plugin-lyra/src/space.d.ts +7 -0
  190. package/dist/types/@webex/internal-plugin-lyra/test/integration/spec/device.d.ts +1 -0
  191. package/dist/types/@webex/internal-plugin-lyra/test/integration/spec/space.d.ts +1 -0
  192. package/dist/types/@webex/internal-plugin-lyra/test/unit/spec/device.d.ts +1 -0
  193. package/dist/types/@webex/internal-plugin-lyra/test/unit/spec/lyra.d.ts +1 -0
  194. package/dist/types/@webex/internal-plugin-lyra/test/unit/spec/space.d.ts +1 -0
  195. package/dist/types/@webex/internal-plugin-mercury/src/config.d.ts +10 -0
  196. package/dist/types/@webex/internal-plugin-mercury/src/errors.d.ts +31 -0
  197. package/dist/types/@webex/internal-plugin-mercury/src/index.d.ts +4 -0
  198. package/dist/types/@webex/internal-plugin-mercury/src/mercury.d.ts +2 -0
  199. package/dist/types/@webex/internal-plugin-mercury/src/socket/index.d.ts +1 -0
  200. package/dist/types/@webex/internal-plugin-mercury/src/socket/socket-base.d.ts +120 -0
  201. package/dist/types/@webex/internal-plugin-mercury/src/socket/socket.d.ts +2 -0
  202. package/dist/types/@webex/internal-plugin-mercury/src/socket/socket.shim.d.ts +2 -0
  203. package/dist/types/@webex/internal-plugin-mercury/test/integration/spec/mercury.d.ts +1 -0
  204. package/dist/types/@webex/internal-plugin-mercury/test/integration/spec/sharable-mercury.d.ts +1 -0
  205. package/dist/types/@webex/internal-plugin-mercury/test/integration/spec/webex.d.ts +1 -0
  206. package/dist/types/@webex/internal-plugin-mercury/test/unit/lib/promise-tick.d.ts +9 -0
  207. package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/_setup.d.ts +0 -0
  208. package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/mercury-events.d.ts +1 -0
  209. package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/mercury.d.ts +1 -0
  210. package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/socket.d.ts +1 -0
  211. package/dist/types/@webex/internal-plugin-metrics/src/batcher.d.ts +2 -0
  212. package/dist/types/@webex/internal-plugin-metrics/src/call-diagnostic-events-batcher.d.ts +2 -0
  213. package/dist/types/@webex/internal-plugin-metrics/src/client-metrics-batcher.d.ts +2 -0
  214. package/dist/types/@webex/internal-plugin-metrics/src/config.d.ts +18 -0
  215. package/dist/types/@webex/internal-plugin-metrics/src/index.d.ts +3 -0
  216. package/dist/types/@webex/internal-plugin-metrics/src/metrics.d.ts +2 -0
  217. package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/batcher.d.ts +1 -0
  218. package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/call-diagnostic-events-batcher.d.ts +1 -0
  219. package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/client-metrics-batcher.d.ts +1 -0
  220. package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/metrics.d.ts +1 -0
  221. package/dist/types/@webex/internal-plugin-presence/src/config.d.ts +8 -0
  222. package/dist/types/@webex/internal-plugin-presence/src/constants.d.ts +14 -0
  223. package/dist/types/@webex/internal-plugin-presence/src/index.d.ts +1 -0
  224. package/dist/types/@webex/internal-plugin-presence/src/presence-batcher.d.ts +6 -0
  225. package/dist/types/@webex/internal-plugin-presence/src/presence-worker.d.ts +68 -0
  226. package/dist/types/@webex/internal-plugin-presence/src/presence.d.ts +6 -0
  227. package/dist/types/@webex/internal-plugin-presence/test/integration/spec/presence.d.ts +1 -0
  228. package/dist/types/@webex/internal-plugin-presence/test/unit/spec/presence-worker.d.ts +1 -0
  229. package/dist/types/@webex/internal-plugin-presence/test/unit/spec/presence.d.ts +1 -0
  230. package/dist/types/@webex/internal-plugin-search/src/config.d.ts +4 -0
  231. package/dist/types/@webex/internal-plugin-search/src/index.d.ts +1 -0
  232. package/dist/types/@webex/internal-plugin-search/src/search.d.ts +2 -0
  233. package/dist/types/@webex/internal-plugin-search/test/integration/spec/search.d.ts +1 -0
  234. package/dist/types/@webex/internal-plugin-support/src/config.d.ts +16 -0
  235. package/dist/types/@webex/internal-plugin-support/src/index.d.ts +1 -0
  236. package/dist/types/@webex/internal-plugin-support/src/support.d.ts +2 -0
  237. package/dist/types/@webex/internal-plugin-support/test/integration/spec/support.d.ts +1 -0
  238. package/dist/types/@webex/internal-plugin-support/test/unit/spec/support.d.ts +1 -0
  239. package/dist/types/@webex/internal-plugin-team/src/config.d.ts +4 -0
  240. package/dist/types/@webex/internal-plugin-team/src/index.d.ts +1 -0
  241. package/dist/types/@webex/internal-plugin-team/src/team.d.ts +2 -0
  242. package/dist/types/@webex/internal-plugin-team/test/integration/spec/actions.d.ts +1 -0
  243. package/dist/types/@webex/internal-plugin-team/test/integration/spec/create.d.ts +1 -0
  244. package/dist/types/@webex/internal-plugin-team/test/integration/spec/get.d.ts +1 -0
  245. package/dist/types/@webex/internal-plugin-team/test/integration/spec/mercury.d.ts +1 -0
  246. package/dist/types/@webex/internal-plugin-team/test/unit/spec/team.d.ts +1 -0
  247. package/dist/types/@webex/internal-plugin-user/src/config.d.ts +17 -0
  248. package/dist/types/@webex/internal-plugin-user/src/index.d.ts +1 -0
  249. package/dist/types/@webex/internal-plugin-user/src/user-uuid-batcher.d.ts +5 -0
  250. package/dist/types/@webex/internal-plugin-user/src/user-uuid-store.d.ts +34 -0
  251. package/dist/types/@webex/internal-plugin-user/src/user.d.ts +5 -0
  252. package/dist/types/@webex/internal-plugin-user/test/integration/spec/user.d.ts +1 -0
  253. package/dist/types/@webex/internal-plugin-user/test/unit/spec/user-uuid-batcher.d.ts +1 -0
  254. package/dist/types/@webex/internal-plugin-user/test/unit/spec/user.d.ts +1 -0
  255. package/dist/types/@webex/internal-plugin-voicea/src/constants.d.ts +28 -0
  256. package/dist/types/@webex/internal-plugin-voicea/src/index.d.ts +1 -0
  257. package/dist/types/@webex/internal-plugin-voicea/src/utils.d.ts +1 -0
  258. package/dist/types/@webex/internal-plugin-voicea/src/voicea.d.ts +78 -0
  259. package/dist/types/@webex/internal-plugin-voicea/src/voicea.types.d.ts +72 -0
  260. package/dist/types/@webex/internal-plugin-voicea/test/unit/spec/utils.d.ts +1 -0
  261. package/dist/types/@webex/internal-plugin-voicea/test/unit/spec/voicea.d.ts +1 -0
  262. package/dist/types/@webex/internal-plugin-wdm/src/index.d.ts +2 -0
  263. package/dist/types/@webex/internal-plugin-wdm/test/integration/spec/webex.d.ts +1 -0
  264. package/dist/types/@webex/internal-plugin-wdm/test/unit/spec/device.d.ts +1 -0
  265. package/dist/types/@webex/jsdoctrinetest/src/assertions/literal.d.ts +12 -0
  266. package/dist/types/@webex/jsdoctrinetest/src/extract.d.ts +20 -0
  267. package/dist/types/@webex/jsdoctrinetest/src/index.d.ts +1 -0
  268. package/dist/types/@webex/jsdoctrinetest/src/mocha-template.d.ts +11 -0
  269. package/dist/types/@webex/jsdoctrinetest/src/parse.d.ts +7 -0
  270. package/dist/types/@webex/jsdoctrinetest/src/transform.d.ts +14 -0
  271. package/dist/types/@webex/jsdoctrinetest/test/unit/spec/default.d.ts +1 -0
  272. package/dist/types/@webex/plugin-attachment-actions/src/attachmentActions.d.ts +51 -0
  273. package/dist/types/@webex/plugin-attachment-actions/src/index.d.ts +2 -0
  274. package/dist/types/@webex/plugin-attachment-actions/test/integration/spec/attachmentActions.d.ts +1 -0
  275. package/dist/types/@webex/plugin-authorization/src/index.browser.d.ts +1 -0
  276. package/dist/types/@webex/plugin-authorization/src/index.d.ts +1 -0
  277. package/dist/types/@webex/plugin-authorization-browser/src/authorization.d.ts +8 -0
  278. package/dist/types/@webex/plugin-authorization-browser/src/config.d.ts +6 -0
  279. package/dist/types/@webex/plugin-authorization-browser/src/index.d.ts +2 -0
  280. package/dist/types/@webex/plugin-authorization-browser/test/automation/fixtures/app.d.ts +1 -0
  281. package/dist/types/@webex/plugin-authorization-browser/test/automation/spec/authorization-code-grant.d.ts +1 -0
  282. package/dist/types/@webex/plugin-authorization-browser/test/automation/spec/implicit-grant.d.ts +1 -0
  283. package/dist/types/@webex/plugin-authorization-browser/test/integration/spec/authorization.d.ts +1 -0
  284. package/dist/types/@webex/plugin-authorization-browser/test/unit/spec/authorization.d.ts +1 -0
  285. package/dist/types/@webex/plugin-authorization-browser-first-party/src/authorization.d.ts +12 -0
  286. package/dist/types/@webex/plugin-authorization-browser-first-party/src/config.d.ts +7 -0
  287. package/dist/types/@webex/plugin-authorization-browser-first-party/src/index.d.ts +2 -0
  288. package/dist/types/@webex/plugin-authorization-browser-first-party/test/automation/fixtures/app.d.ts +1 -0
  289. package/dist/types/@webex/plugin-authorization-browser-first-party/test/automation/spec/authorization-code-grant.d.ts +1 -0
  290. package/dist/types/@webex/plugin-authorization-browser-first-party/test/unit/spec/authorization.d.ts +1 -0
  291. package/dist/types/@webex/plugin-authorization-node/src/authorization.d.ts +7 -0
  292. package/dist/types/@webex/plugin-authorization-node/src/config.d.ts +4 -0
  293. package/dist/types/@webex/plugin-authorization-node/src/index.d.ts +2 -0
  294. package/dist/types/@webex/plugin-authorization-node/test/integration/spec/authorization.d.ts +1 -0
  295. package/dist/types/@webex/plugin-authorization-node/test/unit/spec/authorization.d.ts +1 -0
  296. package/dist/types/@webex/plugin-device-manager/sample/app.d.ts +29 -0
  297. package/dist/types/@webex/plugin-device-manager/src/collection.d.ts +8 -0
  298. package/dist/types/@webex/plugin-device-manager/src/config.d.ts +2 -0
  299. package/dist/types/@webex/plugin-device-manager/src/constants.d.ts +3 -0
  300. package/dist/types/@webex/plugin-device-manager/src/device-manager.d.ts +2 -0
  301. package/dist/types/@webex/plugin-device-manager/src/index.d.ts +2 -0
  302. package/dist/types/@webex/plugin-device-manager/test/unit/spec/index.d.ts +1 -0
  303. package/dist/types/@webex/plugin-device-manager/webex.d.ts +1 -0
  304. package/dist/types/@webex/plugin-logger/src/config.d.ts +19 -0
  305. package/dist/types/@webex/plugin-logger/src/index.d.ts +1 -0
  306. package/dist/types/@webex/plugin-logger/src/logger.d.ts +7 -0
  307. package/dist/types/@webex/plugin-logger/test/unit/spec/logger.d.ts +1 -0
  308. package/dist/types/@webex/plugin-meetings/browsers.d.ts +75 -0
  309. package/dist/types/@webex/plugin-meetings/src/breakouts/breakout.d.ts +8 -0
  310. package/dist/types/@webex/plugin-meetings/src/breakouts/collection.d.ts +5 -0
  311. package/dist/types/@webex/plugin-meetings/src/breakouts/index.d.ts +5 -0
  312. package/dist/types/@webex/plugin-meetings/src/breakouts/request.d.ts +22 -0
  313. package/dist/types/@webex/plugin-meetings/src/breakouts/utils.d.ts +1 -0
  314. package/dist/types/@webex/plugin-meetings/src/common/browser-detection.d.ts +9 -0
  315. package/dist/types/@webex/plugin-meetings/src/common/collection.d.ts +48 -0
  316. package/dist/types/@webex/plugin-meetings/src/common/config.d.ts +2 -0
  317. package/dist/types/@webex/plugin-meetings/src/common/errors/captcha-error.d.ts +15 -0
  318. package/dist/types/@webex/plugin-meetings/src/common/errors/intent-to-join.d.ts +16 -0
  319. package/dist/types/@webex/plugin-meetings/src/common/errors/join-meeting.d.ts +17 -0
  320. package/dist/types/@webex/plugin-meetings/src/common/errors/media.d.ts +15 -0
  321. package/dist/types/@webex/plugin-meetings/src/common/errors/parameter.d.ts +15 -0
  322. package/dist/types/@webex/plugin-meetings/src/common/errors/password-error.d.ts +15 -0
  323. package/dist/types/@webex/plugin-meetings/src/common/errors/permission.d.ts +14 -0
  324. package/dist/types/@webex/plugin-meetings/src/common/errors/reconnection-in-progress.d.ts +9 -0
  325. package/dist/types/@webex/plugin-meetings/src/common/errors/reconnection.d.ts +15 -0
  326. package/dist/types/@webex/plugin-meetings/src/common/errors/stats.d.ts +15 -0
  327. package/dist/types/@webex/plugin-meetings/src/common/errors/webex-errors.d.ts +69 -0
  328. package/dist/types/@webex/plugin-meetings/src/common/errors/webex-meetings-error.d.ts +20 -0
  329. package/dist/types/@webex/plugin-meetings/src/common/events/events-scope.d.ts +17 -0
  330. package/dist/types/@webex/plugin-meetings/src/common/events/events.d.ts +12 -0
  331. package/dist/types/@webex/plugin-meetings/src/common/events/trigger-proxy.d.ts +2 -0
  332. package/dist/types/@webex/plugin-meetings/src/common/events/util.d.ts +2 -0
  333. package/dist/types/@webex/plugin-meetings/src/common/logs/logger-config.d.ts +2 -0
  334. package/dist/types/@webex/plugin-meetings/src/common/logs/logger-proxy.d.ts +2 -0
  335. package/dist/types/@webex/plugin-meetings/src/common/logs/request.d.ts +34 -0
  336. package/dist/types/@webex/plugin-meetings/src/common/queue.d.ts +32 -0
  337. package/dist/types/@webex/plugin-meetings/src/config.d.ts +77 -0
  338. package/dist/types/@webex/plugin-meetings/src/constants.d.ts +899 -0
  339. package/dist/types/@webex/plugin-meetings/src/controls-options-manager/constants.d.ts +4 -0
  340. package/dist/types/@webex/plugin-meetings/src/controls-options-manager/enums.d.ts +5 -0
  341. package/dist/types/@webex/plugin-meetings/src/controls-options-manager/index.d.ts +120 -0
  342. package/dist/types/@webex/plugin-meetings/src/controls-options-manager/util.d.ts +7 -0
  343. package/dist/types/@webex/plugin-meetings/src/index.d.ts +7 -0
  344. package/dist/types/@webex/plugin-meetings/src/locus-info/controlsUtils.d.ts +2 -0
  345. package/dist/types/@webex/plugin-meetings/src/locus-info/embeddedAppsUtils.d.ts +2 -0
  346. package/dist/types/@webex/plugin-meetings/src/locus-info/fullState.d.ts +2 -0
  347. package/dist/types/@webex/plugin-meetings/src/locus-info/hostUtils.d.ts +2 -0
  348. package/dist/types/@webex/plugin-meetings/src/locus-info/index.d.ts +269 -0
  349. package/dist/types/@webex/plugin-meetings/src/locus-info/infoUtils.d.ts +2 -0
  350. package/dist/types/@webex/plugin-meetings/src/locus-info/mediaSharesUtils.d.ts +2 -0
  351. package/dist/types/@webex/plugin-meetings/src/locus-info/parser.d.ts +212 -0
  352. package/dist/types/@webex/plugin-meetings/src/locus-info/selfUtils.d.ts +2 -0
  353. package/dist/types/@webex/plugin-meetings/src/media/index.d.ts +32 -0
  354. package/dist/types/@webex/plugin-meetings/src/media/properties.d.ts +107 -0
  355. package/dist/types/@webex/plugin-meetings/src/media/util.d.ts +2 -0
  356. package/dist/types/@webex/plugin-meetings/src/mediaQualityMetrics/config.d.ts +365 -0
  357. package/dist/types/@webex/plugin-meetings/src/meeting/effectsState.d.ts +42 -0
  358. package/dist/types/@webex/plugin-meetings/src/meeting/in-meeting-actions.d.ts +83 -0
  359. package/dist/types/@webex/plugin-meetings/src/meeting/index.d.ts +1724 -0
  360. package/dist/types/@webex/plugin-meetings/src/meeting/muteState.d.ts +108 -0
  361. package/dist/types/@webex/plugin-meetings/src/meeting/request.d.ts +261 -0
  362. package/dist/types/@webex/plugin-meetings/src/meeting/request.type.d.ts +11 -0
  363. package/dist/types/@webex/plugin-meetings/src/meeting/state.d.ts +9 -0
  364. package/dist/types/@webex/plugin-meetings/src/meeting/util.d.ts +2 -0
  365. package/dist/types/@webex/plugin-meetings/src/meeting-info/collection.d.ts +20 -0
  366. package/dist/types/@webex/plugin-meetings/src/meeting-info/index.d.ts +57 -0
  367. package/dist/types/@webex/plugin-meetings/src/meeting-info/meeting-info-v2.d.ts +93 -0
  368. package/dist/types/@webex/plugin-meetings/src/meeting-info/request.d.ts +22 -0
  369. package/dist/types/@webex/plugin-meetings/src/meeting-info/util.d.ts +2 -0
  370. package/dist/types/@webex/plugin-meetings/src/meeting-info/utilv2.d.ts +2 -0
  371. package/dist/types/@webex/plugin-meetings/src/meetings/collection.d.ts +23 -0
  372. package/dist/types/@webex/plugin-meetings/src/meetings/index.d.ts +297 -0
  373. package/dist/types/@webex/plugin-meetings/src/meetings/request.d.ts +27 -0
  374. package/dist/types/@webex/plugin-meetings/src/meetings/util.d.ts +18 -0
  375. package/dist/types/@webex/plugin-meetings/src/member/index.d.ts +146 -0
  376. package/dist/types/@webex/plugin-meetings/src/member/util.d.ts +2 -0
  377. package/dist/types/@webex/plugin-meetings/src/members/collection.d.ts +24 -0
  378. package/dist/types/@webex/plugin-meetings/src/members/index.d.ts +320 -0
  379. package/dist/types/@webex/plugin-meetings/src/members/request.d.ts +50 -0
  380. package/dist/types/@webex/plugin-meetings/src/members/util.d.ts +2 -0
  381. package/dist/types/@webex/plugin-meetings/src/metrics/config.d.ts +178 -0
  382. package/dist/types/@webex/plugin-meetings/src/metrics/constants.d.ts +57 -0
  383. package/dist/types/@webex/plugin-meetings/src/metrics/index.d.ts +160 -0
  384. package/dist/types/@webex/plugin-meetings/src/multistream/mediaRequestManager.d.ts +51 -0
  385. package/dist/types/@webex/plugin-meetings/src/multistream/receiveSlot.d.ts +66 -0
  386. package/dist/types/@webex/plugin-meetings/src/multistream/receiveSlotManager.d.ts +46 -0
  387. package/dist/types/@webex/plugin-meetings/src/multistream/remoteMedia.d.ts +93 -0
  388. package/dist/types/@webex/plugin-meetings/src/multistream/remoteMediaGroup.d.ts +56 -0
  389. package/dist/types/@webex/plugin-meetings/src/multistream/remoteMediaManager.d.ts +241 -0
  390. package/dist/types/@webex/plugin-meetings/src/networkQualityMonitor/index.d.ts +70 -0
  391. package/dist/types/@webex/plugin-meetings/src/personal-meeting-room/index.d.ts +47 -0
  392. package/dist/types/@webex/plugin-meetings/src/personal-meeting-room/request.d.ts +14 -0
  393. package/dist/types/@webex/plugin-meetings/src/personal-meeting-room/util.d.ts +2 -0
  394. package/dist/types/@webex/plugin-meetings/src/reachability/index.d.ts +140 -0
  395. package/dist/types/@webex/plugin-meetings/src/reachability/request.d.ts +35 -0
  396. package/dist/types/@webex/plugin-meetings/src/reactions/constants.d.ts +3 -0
  397. package/dist/types/@webex/plugin-meetings/src/reactions/reactions.d.ts +4 -0
  398. package/dist/types/@webex/plugin-meetings/src/reactions/reactions.type.d.ts +52 -0
  399. package/dist/types/@webex/plugin-meetings/src/reconnection-manager/index.d.ts +117 -0
  400. package/dist/types/@webex/plugin-meetings/src/recording-controller/enums.d.ts +7 -0
  401. package/dist/types/@webex/plugin-meetings/src/recording-controller/index.d.ts +193 -0
  402. package/dist/types/@webex/plugin-meetings/src/recording-controller/util.d.ts +13 -0
  403. package/dist/types/@webex/plugin-meetings/src/roap/index.d.ts +77 -0
  404. package/dist/types/@webex/plugin-meetings/src/roap/request.d.ts +35 -0
  405. package/dist/types/@webex/plugin-meetings/src/roap/turnDiscovery.d.ts +74 -0
  406. package/dist/types/@webex/plugin-meetings/src/statsAnalyzer/global.d.ts +36 -0
  407. package/dist/types/@webex/plugin-meetings/src/statsAnalyzer/index.d.ts +195 -0
  408. package/dist/types/@webex/plugin-meetings/src/statsAnalyzer/mqaUtil.d.ts +24 -0
  409. package/dist/types/@webex/plugin-meetings/src/transcription/index.d.ts +64 -0
  410. package/dist/types/@webex/plugin-meetings/test/integration/spec/converged-space-meetings.d.ts +1 -0
  411. package/dist/types/@webex/plugin-meetings/test/integration/spec/journey.d.ts +1 -0
  412. package/dist/types/@webex/plugin-meetings/test/integration/spec/space-meeting.d.ts +1 -0
  413. package/dist/types/@webex/plugin-meetings/test/integration/spec/transcription.d.ts +1 -0
  414. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/breakout.d.ts +1 -0
  415. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/collection.d.ts +1 -0
  416. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/index.d.ts +1 -0
  417. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/request.d.ts +1 -0
  418. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/utils.d.ts +1 -0
  419. package/dist/types/@webex/plugin-meetings/test/unit/spec/common/browser-detection.d.ts +1 -0
  420. package/dist/types/@webex/plugin-meetings/test/unit/spec/common/queue.d.ts +1 -0
  421. package/dist/types/@webex/plugin-meetings/test/unit/spec/controls-options-manager/index.d.ts +1 -0
  422. package/dist/types/@webex/plugin-meetings/test/unit/spec/controls-options-manager/util.d.ts +1 -0
  423. package/dist/types/@webex/plugin-meetings/test/unit/spec/fixture/locus.d.ts +332 -0
  424. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/controlsUtils.d.ts +1 -0
  425. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/embeddedAppsUtils.d.ts +1 -0
  426. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/index.d.ts +1 -0
  427. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/infoUtils.d.ts +1 -0
  428. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/parser.d.ts +1 -0
  429. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/selfConstant.d.ts +274 -0
  430. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/selfUtils.d.ts +1 -0
  431. package/dist/types/@webex/plugin-meetings/test/unit/spec/media/index.d.ts +1 -0
  432. package/dist/types/@webex/plugin-meetings/test/unit/spec/media/properties.d.ts +1 -0
  433. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/effectsState.d.ts +1 -0
  434. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/in-meeting-actions.d.ts +1 -0
  435. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/index.d.ts +1 -0
  436. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/muteState.d.ts +1 -0
  437. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/request.d.ts +1 -0
  438. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/utils.d.ts +1 -0
  439. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/meetinginfov2.d.ts +1 -0
  440. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/request.d.ts +1 -0
  441. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/util.d.ts +1 -0
  442. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/utilv2.d.ts +1 -0
  443. package/dist/types/@webex/plugin-meetings/test/unit/spec/meetings/collection.d.ts +1 -0
  444. package/dist/types/@webex/plugin-meetings/test/unit/spec/meetings/index.d.ts +1 -0
  445. package/dist/types/@webex/plugin-meetings/test/unit/spec/meetings/utils.d.ts +1 -0
  446. package/dist/types/@webex/plugin-meetings/test/unit/spec/member/index.d.ts +1 -0
  447. package/dist/types/@webex/plugin-meetings/test/unit/spec/member/util.d.ts +1 -0
  448. package/dist/types/@webex/plugin-meetings/test/unit/spec/members/index.d.ts +1 -0
  449. package/dist/types/@webex/plugin-meetings/test/unit/spec/members/request.d.ts +1 -0
  450. package/dist/types/@webex/plugin-meetings/test/unit/spec/members/utils.d.ts +1 -0
  451. package/dist/types/@webex/plugin-meetings/test/unit/spec/metrics/index.d.ts +1 -0
  452. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/mediaRequestManager.d.ts +1 -0
  453. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/receiveSlot.d.ts +1 -0
  454. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/receiveSlotManager.d.ts +1 -0
  455. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/remoteMedia.d.ts +1 -0
  456. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/remoteMediaGroup.d.ts +1 -0
  457. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/remoteMediaManager.d.ts +1 -0
  458. package/dist/types/@webex/plugin-meetings/test/unit/spec/networkQualityMonitor/index.d.ts +1 -0
  459. package/dist/types/@webex/plugin-meetings/test/unit/spec/personal-meeting-room/personal-meeting-room.d.ts +1 -0
  460. package/dist/types/@webex/plugin-meetings/test/unit/spec/reachability/index.d.ts +1 -0
  461. package/dist/types/@webex/plugin-meetings/test/unit/spec/reconnection-manager/index.d.ts +1 -0
  462. package/dist/types/@webex/plugin-meetings/test/unit/spec/recording-controller/index.d.ts +1 -0
  463. package/dist/types/@webex/plugin-meetings/test/unit/spec/recording-controller/util.d.ts +1 -0
  464. package/dist/types/@webex/plugin-meetings/test/unit/spec/roap/index.d.ts +1 -0
  465. package/dist/types/@webex/plugin-meetings/test/unit/spec/roap/request.d.ts +1 -0
  466. package/dist/types/@webex/plugin-meetings/test/unit/spec/roap/turnDiscovery.d.ts +1 -0
  467. package/dist/types/@webex/plugin-meetings/test/unit/spec/stats-analyzer/index.d.ts +1 -0
  468. package/dist/types/@webex/plugin-meetings/test/utils/cmr.d.ts +6 -0
  469. package/dist/types/@webex/plugin-meetings/test/utils/constants.d.ts +5 -0
  470. package/dist/types/@webex/plugin-meetings/test/utils/testUtils.d.ts +27 -0
  471. package/dist/types/@webex/plugin-meetings/test/utils/webex-config.d.ts +63 -0
  472. package/dist/types/@webex/plugin-meetings/test/utils/webex-test-users.d.ts +2 -0
  473. package/dist/types/@webex/plugin-memberships/src/index.d.ts +2 -0
  474. package/dist/types/@webex/plugin-memberships/src/memberships.d.ts +50 -0
  475. package/dist/types/@webex/plugin-memberships/test/integration/spec/memberships.d.ts +1 -0
  476. package/dist/types/@webex/plugin-messages/src/index.d.ts +2 -0
  477. package/dist/types/@webex/plugin-messages/src/messages.d.ts +58 -0
  478. package/dist/types/@webex/plugin-messages/test/integration/spec/messages.d.ts +1 -0
  479. package/dist/types/@webex/plugin-people/src/config.d.ts +9 -0
  480. package/dist/types/@webex/plugin-people/src/index.d.ts +1 -0
  481. package/dist/types/@webex/plugin-people/src/people-batcher.d.ts +6 -0
  482. package/dist/types/@webex/plugin-people/src/people.d.ts +30 -0
  483. package/dist/types/@webex/plugin-people/test/integration/spec/people.d.ts +1 -0
  484. package/dist/types/@webex/plugin-people/test/unit/spec/people-batcher.d.ts +1 -0
  485. package/dist/types/@webex/plugin-people/test/unit/spec/people.d.ts +1 -0
  486. package/dist/types/@webex/plugin-rooms/src/index.d.ts +2 -0
  487. package/dist/types/@webex/plugin-rooms/src/rooms.d.ts +41 -0
  488. package/dist/types/@webex/plugin-rooms/test/integration/spec/rooms.d.ts +1 -0
  489. package/dist/types/@webex/plugin-team-memberships/src/index.d.ts +2 -0
  490. package/dist/types/@webex/plugin-team-memberships/src/team-memberships.d.ts +49 -0
  491. package/dist/types/@webex/plugin-team-memberships/test/integration/spec/team-memberships.d.ts +1 -0
  492. package/dist/types/@webex/plugin-teams/src/index.d.ts +2 -0
  493. package/dist/types/@webex/plugin-teams/src/teams.d.ts +27 -0
  494. package/dist/types/@webex/plugin-teams/test/integration/spec/teams.d.ts +1 -0
  495. package/dist/types/@webex/plugin-webhooks/src/index.d.ts +2 -0
  496. package/dist/types/@webex/plugin-webhooks/src/webhooks.d.ts +48 -0
  497. package/dist/types/@webex/plugin-webhooks/test/integration/spec/webhooks.d.ts +1 -0
  498. package/dist/types/@webex/recipe-private-web-client/src/config.d.ts +10 -0
  499. package/dist/types/@webex/recipe-private-web-client/src/index.d.ts +8 -0
  500. package/dist/types/@webex/storage-adapter-local-forage/src/index.d.ts +35 -0
  501. package/dist/types/@webex/storage-adapter-local-forage/test/unit/spec/storage-adapter-local-forage.d.ts +1 -0
  502. package/dist/types/@webex/storage-adapter-local-storage/src/index.d.ts +66 -0
  503. package/dist/types/@webex/storage-adapter-local-storage/test/unit/spec/storage-adapter-local-storage.d.ts +1 -0
  504. package/dist/types/@webex/storage-adapter-session-storage/src/index.d.ts +66 -0
  505. package/dist/types/@webex/storage-adapter-session-storage/test/unit/spec/storage-adapter-session-storage.d.ts +1 -0
  506. package/dist/types/@webex/storage-adapter-spec/src/index.d.ts +1 -0
  507. package/dist/types/@webex/test-helper-appid/src/create-user.browser.d.ts +2 -0
  508. package/dist/types/@webex/test-helper-appid/src/create-user.d.ts +7 -0
  509. package/dist/types/@webex/test-helper-appid/src/index.d.ts +7 -0
  510. package/dist/types/@webex/test-helper-appid/src/router.d.ts +2 -0
  511. package/dist/types/@webex/test-helper-automation/src/index.d.ts +2 -0
  512. package/dist/types/@webex/test-helper-automation/src/wd/accept-grant.d.ts +1 -0
  513. package/dist/types/@webex/test-helper-automation/src/wd/login.d.ts +1 -0
  514. package/dist/types/@webex/test-helper-automation/src/wd/print-logs.d.ts +1 -0
  515. package/dist/types/@webex/test-helper-automation/src/wd/submit-password.d.ts +1 -0
  516. package/dist/types/@webex/test-helper-chai/src/assertions/index.d.ts +2 -0
  517. package/dist/types/@webex/test-helper-chai/src/assertions/primitives.d.ts +2 -0
  518. package/dist/types/@webex/test-helper-chai/src/assertions/schemas.d.ts +2 -0
  519. package/dist/types/@webex/test-helper-chai/src/assertions/should-to-assert.d.ts +2 -0
  520. package/dist/types/@webex/test-helper-chai/src/index.d.ts +2 -0
  521. package/dist/types/@webex/test-helper-file/src/file.d.ts +5 -0
  522. package/dist/types/@webex/test-helper-file/src/file.shim.d.ts +18 -0
  523. package/dist/types/@webex/test-helper-file/src/index.d.ts +2 -0
  524. package/dist/types/@webex/test-helper-make-local-url/src/index.d.ts +4 -0
  525. package/dist/types/@webex/test-helper-mocha/src/index.d.ts +29 -0
  526. package/dist/types/@webex/test-helper-mock-web-socket/src/index.d.ts +26 -0
  527. package/dist/types/@webex/test-helper-mock-webex/src/index.d.ts +7 -0
  528. package/dist/types/@webex/test-helper-refresh-callback/src/index.d.ts +10 -0
  529. package/dist/types/@webex/test-helper-retry/src/index.d.ts +15 -0
  530. package/dist/types/@webex/test-helper-server/src/cookies.d.ts +2 -0
  531. package/dist/types/@webex/test-helper-server/src/files.d.ts +2 -0
  532. package/dist/types/@webex/test-helper-server/src/form.d.ts +2 -0
  533. package/dist/types/@webex/test-helper-server/src/index.d.ts +1 -0
  534. package/dist/types/@webex/test-helper-server/src/json.d.ts +2 -0
  535. package/dist/types/@webex/test-helper-server/src/reflect.d.ts +10 -0
  536. package/dist/types/@webex/test-helper-test-users/src/index.d.ts +8 -0
  537. package/dist/types/@webex/test-users/src/index.d.ts +115 -0
  538. package/dist/types/@webex/test-users/src/whistler.d.ts +44 -0
  539. package/dist/types/@webex/test-users/test/integration/spec/index.d.ts +1 -0
  540. package/dist/types/@webex/test-users/test/integration/spec/whistler.d.ts +1 -0
  541. package/dist/types/@webex/webex-core/src/config.d.ts +39 -0
  542. package/dist/types/@webex/webex-core/src/credentials-config.d.ts +2 -0
  543. package/dist/types/@webex/webex-core/src/index.d.ts +24 -0
  544. package/dist/types/@webex/webex-core/src/interceptors/auth.d.ts +43 -0
  545. package/dist/types/@webex/webex-core/src/interceptors/default-options.d.ts +31 -0
  546. package/dist/types/@webex/webex-core/src/interceptors/embargo.d.ts +16 -0
  547. package/dist/types/@webex/webex-core/src/interceptors/network-timing.d.ts +30 -0
  548. package/dist/types/@webex/webex-core/src/interceptors/payload-transformer.d.ts +30 -0
  549. package/dist/types/@webex/webex-core/src/interceptors/rate-limit.d.ts +61 -0
  550. package/dist/types/@webex/webex-core/src/interceptors/redirect.d.ts +22 -0
  551. package/dist/types/@webex/webex-core/src/interceptors/request-event.d.ts +36 -0
  552. package/dist/types/@webex/webex-core/src/interceptors/request-logger.d.ts +22 -0
  553. package/dist/types/@webex/webex-core/src/interceptors/request-timing.d.ts +36 -0
  554. package/dist/types/@webex/webex-core/src/interceptors/response-logger.d.ts +30 -0
  555. package/dist/types/@webex/webex-core/src/interceptors/user-agent.d.ts +38 -0
  556. package/dist/types/@webex/webex-core/src/interceptors/webex-tracking-id.d.ts +26 -0
  557. package/dist/types/@webex/webex-core/src/interceptors/webex-user-agent.d.ts +22 -0
  558. package/dist/types/@webex/webex-core/src/lib/batcher.d.ts +6 -0
  559. package/dist/types/@webex/webex-core/src/lib/credentials/credentials.d.ts +5 -0
  560. package/dist/types/@webex/webex-core/src/lib/credentials/grant-errors.d.ts +57 -0
  561. package/dist/types/@webex/webex-core/src/lib/credentials/index.d.ts +4 -0
  562. package/dist/types/@webex/webex-core/src/lib/credentials/scope.d.ts +16 -0
  563. package/dist/types/@webex/webex-core/src/lib/credentials/token-collection.d.ts +2 -0
  564. package/dist/types/@webex/webex-core/src/lib/credentials/token.d.ts +5 -0
  565. package/dist/types/@webex/webex-core/src/lib/page.d.ts +76 -0
  566. package/dist/types/@webex/webex-core/src/lib/services/constants.d.ts +6 -0
  567. package/dist/types/@webex/webex-core/src/lib/services/index.d.ts +10 -0
  568. package/dist/types/@webex/webex-core/src/lib/services/interceptors/server-error.d.ts +16 -0
  569. package/dist/types/@webex/webex-core/src/lib/services/interceptors/service.d.ts +37 -0
  570. package/dist/types/@webex/webex-core/src/lib/services/metrics.d.ts +4 -0
  571. package/dist/types/@webex/webex-core/src/lib/services/service-catalog.d.ts +5 -0
  572. package/dist/types/@webex/webex-core/src/lib/services/service-fed-ramp.d.ts +5 -0
  573. package/dist/types/@webex/webex-core/src/lib/services/service-host.d.ts +217 -0
  574. package/dist/types/@webex/webex-core/src/lib/services/service-registry.d.ts +271 -0
  575. package/dist/types/@webex/webex-core/src/lib/services/service-state.d.ts +46 -0
  576. package/dist/types/@webex/webex-core/src/lib/services/service-url.d.ts +5 -0
  577. package/dist/types/@webex/webex-core/src/lib/services/services.d.ts +5 -0
  578. package/dist/types/@webex/webex-core/src/lib/stateless-webex-plugin.d.ts +48 -0
  579. package/dist/types/@webex/webex-core/src/lib/storage/decorators.d.ts +15 -0
  580. package/dist/types/@webex/webex-core/src/lib/storage/errors.d.ts +10 -0
  581. package/dist/types/@webex/webex-core/src/lib/storage/index.d.ts +5 -0
  582. package/dist/types/@webex/webex-core/src/lib/storage/make-webex-plugin-store.d.ts +8 -0
  583. package/dist/types/@webex/webex-core/src/lib/storage/make-webex-store.d.ts +48 -0
  584. package/dist/types/@webex/webex-core/src/lib/storage/memory-store-adapter.d.ts +18 -0
  585. package/dist/types/@webex/webex-core/src/lib/webex-core-plugin-mixin.d.ts +8 -0
  586. package/dist/types/@webex/webex-core/src/lib/webex-http-error.d.ts +12 -0
  587. package/dist/types/@webex/webex-core/src/lib/webex-internal-core-plugin-mixin.d.ts +8 -0
  588. package/dist/types/@webex/webex-core/src/lib/webex-plugin.d.ts +5 -0
  589. package/dist/types/@webex/webex-core/src/plugins/logger.d.ts +2 -0
  590. package/dist/types/@webex/webex-core/src/webex-core.d.ts +31 -0
  591. package/dist/types/@webex/webex-core/src/webex-internal-core.d.ts +7 -0
  592. package/dist/types/@webex/webex-core/test/integration/spec/credentials/credentials.d.ts +1 -0
  593. package/dist/types/@webex/webex-core/test/integration/spec/credentials/token.d.ts +1 -0
  594. package/dist/types/@webex/webex-core/test/integration/spec/services/service-catalog.d.ts +1 -0
  595. package/dist/types/@webex/webex-core/test/integration/spec/services/services.d.ts +1 -0
  596. package/dist/types/@webex/webex-core/test/integration/spec/webex-core.d.ts +1 -0
  597. package/dist/types/@webex/webex-core/test/unit/spec/_setup.d.ts +1 -0
  598. package/dist/types/@webex/webex-core/test/unit/spec/credentials/credentials.d.ts +1 -0
  599. package/dist/types/@webex/webex-core/test/unit/spec/credentials/token.d.ts +1 -0
  600. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/auth.d.ts +1 -0
  601. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/default-options.d.ts +1 -0
  602. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/embargo.d.ts +1 -0
  603. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/network-timing.d.ts +1 -0
  604. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/payload-transformer.d.ts +1 -0
  605. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/rate-limit.d.ts +1 -0
  606. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/redirect.d.ts +1 -0
  607. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/request-timing.d.ts +1 -0
  608. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/user-agent.d.ts +1 -0
  609. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/webex-tracking-id.d.ts +1 -0
  610. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/webex-user-agent.d.ts +1 -0
  611. package/dist/types/@webex/webex-core/test/unit/spec/lib/batcher.d.ts +1 -0
  612. package/dist/types/@webex/webex-core/test/unit/spec/lib/page.d.ts +1 -0
  613. package/dist/types/@webex/webex-core/test/unit/spec/lib/webex-plugin.d.ts +1 -0
  614. package/dist/types/@webex/webex-core/test/unit/spec/services/interceptors/server-error.d.ts +1 -0
  615. package/dist/types/@webex/webex-core/test/unit/spec/services/interceptors/service.d.ts +1 -0
  616. package/dist/types/@webex/webex-core/test/unit/spec/services/service-catalog.d.ts +1 -0
  617. package/dist/types/@webex/webex-core/test/unit/spec/services/service-host.d.ts +1 -0
  618. package/dist/types/@webex/webex-core/test/unit/spec/services/service-registry.d.ts +1 -0
  619. package/dist/types/@webex/webex-core/test/unit/spec/services/service-state.d.ts +1 -0
  620. package/dist/types/@webex/webex-core/test/unit/spec/services/service-url.d.ts +1 -0
  621. package/dist/types/@webex/webex-core/test/unit/spec/services/services.d.ts +1 -0
  622. package/dist/types/@webex/webex-core/test/unit/spec/storage/persist.d.ts +1 -0
  623. package/dist/types/@webex/webex-core/test/unit/spec/storage/storage-adapter.d.ts +1 -0
  624. package/dist/types/@webex/webex-core/test/unit/spec/storage/wait-for-value.d.ts +1 -0
  625. package/dist/types/@webex/webex-core/test/unit/spec/webex-core.d.ts +1 -0
  626. package/dist/types/@webex/webex-core/test/unit/spec/webex-internal-core.d.ts +1 -0
  627. package/dist/types/@webex/webrtc/src/analyzer.d.ts +0 -0
  628. package/dist/types/@webex/webrtc/src/constants.d.ts +0 -0
  629. package/dist/types/@webex/webrtc/src/extractor.d.ts +0 -0
  630. package/dist/types/@webex/webrtc/src/generator.d.ts +0 -0
  631. package/dist/types/@webex/webrtc/src/history.d.ts +0 -0
  632. package/dist/types/@webex/webrtc/src/ice.d.ts +0 -0
  633. package/dist/types/@webex/webrtc/src/index.d.ts +31 -0
  634. package/dist/types/@webex/webrtc/src/logger.d.ts +0 -0
  635. package/dist/types/@webex/webrtc/src/parser.d.ts +0 -0
  636. package/dist/types/@webex/webrtc/src/stats.d.ts +0 -0
  637. package/dist/types/@webex/webrtc/src/transformer.d.ts +0 -0
  638. package/dist/types/@webex/webrtc/src/validator.d.ts +0 -0
  639. package/dist/types/@webex/xunit-with-logs/src/index.d.ts +43 -0
  640. package/dist/types/webex/browser.d.ts +5 -0
  641. package/dist/types/webex/env.d.ts +2 -0
  642. package/dist/types/webex/src/_setup.d.ts +1 -0
  643. package/dist/types/webex/src/config-storage.d.ts +5 -0
  644. package/dist/types/webex/src/config-storage.shim.d.ts +5 -0
  645. package/dist/types/webex/src/config.d.ts +17 -0
  646. package/dist/types/webex/src/index.d.ts +11 -0
  647. package/dist/types/webex/src/webex.d.ts +9 -0
  648. package/dist/types/webex/test/integration/spec/commonjs.d.ts +1 -0
  649. package/dist/types/webex/test/integration/spec/env.d.ts +1 -0
  650. package/dist/types/webex/test/integration/spec/init.d.ts +1 -0
  651. package/dist/types/webex/test/integration/spec/request.d.ts +1 -0
  652. package/dist/types/webex/test/unit/spec/webex.d.ts +1 -0
  653. package/dist/types/webex/umd/webex.min.d.ts +2 -0
  654. package/package.json +3 -3
  655. package/src/file.js +2 -2
  656. package/src/file.shim.js +35 -37
  657. package/src/index.js +0 -1
package/dist/file.js CHANGED
@@ -1,43 +1,25 @@
1
1
  "use strict";
2
2
 
3
3
  var _Object$keys = require("@babel/runtime-corejs2/core-js/object/keys");
4
-
5
4
  var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs2/core-js/object/get-own-property-symbols");
6
-
7
5
  var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs2/core-js/object/get-own-property-descriptor");
8
-
9
6
  var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs2/core-js/object/get-own-property-descriptors");
10
-
11
7
  var _Object$defineProperties = require("@babel/runtime-corejs2/core-js/object/define-properties");
12
-
13
8
  var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
14
-
15
9
  var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
16
-
17
10
  _Object$defineProperty(exports, "__esModule", {
18
11
  value: true
19
12
  });
20
-
21
13
  exports.isMatchingFile = exports.isBufferLike = exports.isBlobLike = exports.fetchWithoutMagic = exports.fetch = void 0;
22
-
23
14
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/slicedToArray"));
24
-
25
15
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
26
-
27
16
  var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
28
-
29
17
  var _fs = require("fs");
30
-
31
18
  var _path = require("path");
32
-
33
19
  var _fileType = require("file-type");
34
-
35
20
  var _common = require("@webex/common");
36
-
37
21
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
38
-
39
22
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
40
-
41
23
  var fetchWithoutMagic = function fetchWithoutMagic(filename) {
42
24
  return new _promise.default(function (resolve, reject) {
43
25
  var filepath = (0, _path.join)(__dirname, '../../../@webex/test-helper-server/static', filename);
@@ -46,74 +28,61 @@ var fetchWithoutMagic = function fetchWithoutMagic(filename) {
46
28
  reject(err);
47
29
  return;
48
30
  }
49
-
50
31
  resolve(_objectSpread(_objectSpread({}, data), {}, {
51
32
  name: filename
52
33
  }));
53
34
  });
54
35
  });
55
36
  };
56
-
57
37
  exports.fetchWithoutMagic = fetchWithoutMagic;
58
-
59
38
  var fetch = function fetch(filename) {
60
39
  return fetchWithoutMagic(filename).then(function (data) {
61
40
  return _promise.default.all([(0, _fileType.fromFile)(data), data]);
62
- }) // .then(([{mime: type}, data]) => {
41
+ })
42
+ // .then(([{mime: type}, data]) => {
63
43
  // console.error(data, type);
44
+
64
45
  // return {...data, type};
65
46
  // });
66
47
  .then(function (_ref) {
67
48
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
68
- type = _ref2[0].mime,
69
- data = _ref2[1];
70
-
49
+ type = _ref2[0].mime,
50
+ data = _ref2[1];
71
51
  return type ? _objectSpread(_objectSpread({}, data), {}, {
72
52
  type: type
73
53
  }) : _promise.default.reject(new Error('Invalid Media Type'));
74
54
  });
75
55
  };
76
-
77
56
  exports.fetch = fetch;
78
-
79
57
  var isBufferLike = function isBufferLike(file) {
80
58
  return (0, _common.isBuffer)(file);
81
59
  };
82
-
83
60
  exports.isBufferLike = isBufferLike;
84
-
85
61
  var isBlobLike = function isBlobLike(file) {
86
62
  return (0, _common.isBuffer)(file);
87
63
  };
88
-
89
64
  exports.isBlobLike = isBlobLike;
90
-
91
65
  var isMatchingFile = function isMatchingFile(left, right) {
92
66
  if (!isBufferLike(left)) {
93
67
  throw new Error('`left` must be a `Buffer`');
94
68
  }
95
-
96
69
  if (!isBufferLike(right)) {
97
70
  throw new Error('`right` must be a `Buffer`');
98
- } // Node 10 doesn't have Buffer#equals()
99
-
71
+ }
100
72
 
73
+ // Node 10 doesn't have Buffer#equals()
101
74
  if (left.equals) {
102
75
  return _promise.default.resolve(left.equals(right));
103
76
  }
104
-
105
77
  if (left.length !== right.length) {
106
78
  return _promise.default.resolve(false);
107
79
  }
108
-
109
80
  for (var i = 0; i < left.length; i += 1) {
110
81
  if (left[i] !== right[i]) {
111
82
  return _promise.default.resolve(false);
112
83
  }
113
84
  }
114
-
115
85
  return _promise.default.resolve(true);
116
86
  };
117
-
118
87
  exports.isMatchingFile = isMatchingFile;
119
88
  //# sourceMappingURL=file.js.map
package/dist/file.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["fetchWithoutMagic","filename","resolve","reject","filepath","join","__dirname","readFile","err","data","name","fetch","then","all","fromFile","type","mime","Error","isBufferLike","file","isBuffer","isBlobLike","isMatchingFile","left","right","equals","length","i"],"sources":["file.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {readFile} from 'fs';\nimport {join} from 'path';\n\nimport {fromFile} from 'file-type';\nimport {isBuffer} from '@webex/common';\n\nexport const fetchWithoutMagic = (filename) =>\n new Promise((resolve, reject) => {\n const filepath = join(__dirname, '../../../@webex/test-helper-server/static', filename);\n\n readFile(filepath, (err, data) => {\n if (err) {\n reject(err);\n\n return;\n }\n resolve({...data, name: filename});\n });\n });\n\nexport const fetch = (filename) =>\n fetchWithoutMagic(filename)\n .then((data) => Promise.all([fromFile(data), data]))\n // .then(([{mime: type}, data]) => {\n // console.error(data, type);\n\n // return {...data, type};\n // });\n .then(([{mime: type}, data]) =>\n (type ? {...data, type} : Promise.reject(new Error('Invalid Media Type'))));\n\n\nexport const isBufferLike = (file) => isBuffer(file);\n\nexport const isBlobLike = (file) => isBuffer(file);\n\nexport const isMatchingFile = (left, right) => {\n if (!isBufferLike(left)) {\n throw new Error('`left` must be a `Buffer`');\n }\n\n if (!isBufferLike(right)) {\n throw new Error('`right` must be a `Buffer`');\n }\n\n // Node 10 doesn't have Buffer#equals()\n if (left.equals) {\n return Promise.resolve(left.equals(right));\n }\n\n if (left.length !== right.length) {\n return Promise.resolve(false);\n }\n\n for (let i = 0; i < left.length; i += 1) {\n if (left[i] !== right[i]) {\n return Promise.resolve(false);\n }\n }\n\n return Promise.resolve(true);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAI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CAACC,IAAD,EAAOC,KAAP,EAAiB;EAC7C,IAAI,CAACN,YAAY,CAACK,IAAD,CAAjB,EAAyB;IACvB,MAAM,IAAIN,KAAJ,CAAU,2BAAV,CAAN;EACD;;EAED,IAAI,CAACC,YAAY,CAACM,KAAD,CAAjB,EAA0B;IACxB,MAAM,IAAIP,KAAJ,CAAU,4BAAV,CAAN;EACD,CAP4C,CAS7C;;;EACA,IAAIM,IAAI,CAACE,MAAT,EAAiB;IACf,OAAO,iBAAQvB,OAAR,CAAgBqB,IAAI,CAACE,MAAL,CAAYD,KAAZ,CAAhB,CAAP;EACD;;EAED,IAAID,IAAI,CAACG,MAAL,KAAgBF,KAAK,CAACE,MAA1B,EAAkC;IAChC,OAAO,iBAAQxB,OAAR,CAAgB,KAAhB,CAAP;EACD;;EAED,KAAK,IAAIyB,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGJ,IAAI,CAACG,MAAzB,EAAiCC,CAAC,IAAI,CAAtC,EAAyC;IACvC,IAAIJ,IAAI,CAACI,CAAD,CAAJ,KAAYH,KAAK,CAACG,CAAD,CAArB,EAA0B;MACxB,OAAO,iBAAQzB,OAAR,CAAgB,KAAhB,CAAP;IACD;EACF;;EAED,OAAO,iBAAQA,OAAR,CAAgB,IAAhB,CAAP;AACD,CAzBM"}
1
+ {"version":3,"names":["fetchWithoutMagic","filename","resolve","reject","filepath","join","__dirname","readFile","err","data","name","fetch","then","all","fromFile","type","mime","Error","isBufferLike","file","isBuffer","isBlobLike","isMatchingFile","left","right","equals","length","i"],"sources":["file.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {readFile} from 'fs';\nimport {join} from 'path';\n\nimport {fromFile} from 'file-type';\nimport {isBuffer} from '@webex/common';\n\nexport const fetchWithoutMagic = (filename) =>\n new Promise((resolve, reject) => {\n const filepath = join(__dirname, '../../../@webex/test-helper-server/static', filename);\n\n readFile(filepath, (err, data) => {\n if (err) {\n reject(err);\n\n return;\n }\n resolve({...data, name: filename});\n });\n });\n\nexport const fetch = (filename) =>\n fetchWithoutMagic(filename)\n .then((data) => Promise.all([fromFile(data), data]))\n // .then(([{mime: type}, data]) => {\n // console.error(data, type);\n\n // return {...data, type};\n // });\n .then(([{mime: type}, data]) =>\n type ? {...data, type} : Promise.reject(new Error('Invalid Media Type'))\n );\n\nexport const isBufferLike = (file) => isBuffer(file);\n\nexport const isBlobLike = (file) => isBuffer(file);\n\nexport const isMatchingFile = (left, right) => {\n if (!isBufferLike(left)) {\n throw new Error('`left` must be a `Buffer`');\n }\n\n if (!isBufferLike(right)) {\n throw new Error('`right` must be a `Buffer`');\n }\n\n // Node 10 doesn't have Buffer#equals()\n if (left.equals) {\n return Promise.resolve(left.equals(right));\n }\n\n if (left.length !== right.length) {\n return Promise.resolve(false);\n }\n\n for (let i = 0; i < left.length; i += 1) {\n if (left[i] !== right[i]) {\n return Promise.resolve(false);\n }\n }\n\n return Promise.resolve(true);\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAIA;AACA;AAEA;AACA;AAAuC;AAAA;AAEhC,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiB,CAAIC,QAAQ;EAAA,OACxC,qBAAY,UAACC,OAAO,EAAEC,MAAM,EAAK;IAC/B,IAAMC,QAAQ,GAAG,IAAAC,UAAI,EAACC,SAAS,EAAE,2CAA2C,EAAEL,QAAQ,CAAC;IAEvF,IAAAM,YAAQ,EAACH,QAAQ,EAAE,UAACI,GAAG,EAAEC,IAAI,EAAK;MAChC,IAAID,GAAG,EAAE;QACPL,MAAM,CAACK,GAAG,CAAC;QAEX;MACF;MACAN,OAAO,iCAAKO,IAAI;QAAEC,IAAI,EAAET;MAAQ,GAAE;IACpC,CAAC,CAAC;EACJ,CAAC,CAAC;AAAA;AAAC;AAEE,IAAMU,KAAK,GAAG,SAARA,KAAK,CAAIV,QAAQ;EAAA,OAC5BD,iBAAiB,CAACC,QAAQ,CAAC,CACxBW,IAAI,CAAC,UA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CAAC,KAAKH,KAAK,CAACG,CAAC,CAAC,EAAE;MACxB,OAAO,iBAAQzB,OAAO,CAAC,KAAK,CAAC;IAC/B;EACF;EAEA,OAAO,iBAAQA,OAAO,CAAC,IAAI,CAAC;AAC9B,CAAC;AAAC"}
package/dist/file.shim.js CHANGED
@@ -1,101 +1,86 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
4
-
5
4
  var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
6
-
7
5
  /*!
8
6
  * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
9
7
  */
10
8
 
11
9
  /* eslint-env browser */
12
- var makeLocalUrl = require('@webex/test-helper-make-local-url');
13
10
 
11
+ var makeLocalUrl = require('@webex/test-helper-make-local-url');
14
12
  var xhr = require('xhr');
13
+
15
14
  /**
16
15
  * @param {Blob} blob
17
16
  * @private
18
17
  * @returns {Promise}
19
18
  */
20
-
21
-
22
19
  function convertBlobToArrayBuffer(blob) {
23
20
  if (!(blob instanceof Blob)) {
24
21
  throw new Error('`blob` must be a `Blob`');
25
22
  }
26
-
27
23
  return new _promise.default(function (resolve, reject) {
28
24
  var reader = new FileReader();
29
25
  reader.onerror = reject;
30
-
31
26
  reader.onload = function onload() {
32
27
  resolve(reader.result);
33
28
  };
34
-
35
29
  reader.readAsArrayBuffer(blob);
36
30
  });
37
31
  }
32
+
38
33
  /**
39
34
  * @param {Uint8Array} array
40
35
  * @private
41
36
  * @returns {ArrayBuffer}
42
37
  */
43
-
44
-
45
38
  function convertUint8ArrayToArrayBuffer(array) {
46
39
  if (!(array instanceof Uint8Array)) {
47
40
  throw new Error('`array` must be a `Uint8Array`');
48
41
  }
49
-
50
42
  return array.buffer;
51
43
  }
44
+
52
45
  /**
53
46
  * @param {mixed} file
54
47
  * @returns {Boolean}
55
48
  */
56
-
57
-
58
49
  function isBlobLike(file) {
59
50
  return file instanceof Blob && 'size' in file && 'type' in file;
60
51
  }
52
+
61
53
  /**
62
54
  * @param {mixed} file
63
55
  * @returns {Boolean}
64
56
  */
65
-
66
-
67
57
  function isBufferLike(file) {
68
58
  return file instanceof ArrayBuffer;
69
59
  }
60
+
70
61
  /**
71
62
  * @param {mixed} file
72
63
  * @private
73
64
  * @returns {Promise}
74
65
  */
75
-
76
-
77
66
  function ensureArrayBuffer(file) {
78
67
  if (isBufferLike(file)) {
79
68
  return file;
80
69
  }
81
-
82
70
  if (isBlobLike(file)) {
83
71
  return convertBlobToArrayBuffer(file);
84
72
  }
85
-
86
73
  if (file instanceof Uint8Array) {
87
74
  return convertUint8ArrayToArrayBuffer(file);
88
75
  }
89
-
90
76
  throw new Error('Could not determine type of `file`');
91
77
  }
78
+
92
79
  /**
93
80
  * Fetches a file
94
81
  * @param {string} filename
95
82
  * @returns {Promise<File>}
96
83
  */
97
-
98
-
99
84
  function fetch(filename) {
100
85
  return new _promise.default(function (resolve, reject) {
101
86
  xhr({
@@ -111,7 +96,6 @@ function fetch(filename) {
111
96
  });
112
97
  });
113
98
  }
114
-
115
99
  var FileShim = {
116
100
  /**
117
101
  * @param {string} filename
@@ -121,7 +105,6 @@ var FileShim = {
121
105
  fetchWithoutMagic: fetch,
122
106
  isBufferLike: isBufferLike,
123
107
  isBlobLike: isBlobLike,
124
-
125
108
  /**
126
109
  * @param {ArrayBuffer|Blob|Uint8Array} left
127
110
  * @param {ArrayBuffer|Blob|Uint8Array} right
@@ -131,28 +114,22 @@ var FileShim = {
131
114
  return _promise.default.all([ensureArrayBuffer(left), ensureArrayBuffer(right)]).then(function (buffers) {
132
115
  var innerLeft = buffers[0];
133
116
  var innerRight = buffers[1];
134
-
135
117
  if (!FileShim.isBufferLike(innerLeft)) {
136
118
  throw new Error('`innerLeft` must be a `Buffer`');
137
119
  }
138
-
139
120
  if (!FileShim.isBufferLike(innerRight)) {
140
121
  throw new Error('`innerRight` must be a `Buffer`');
141
122
  }
142
-
143
123
  if (innerLeft.byteLength !== innerRight.byteLength) {
144
124
  return false;
145
125
  }
146
-
147
126
  var l = new Uint8Array(innerLeft);
148
127
  var r = new Uint8Array(innerRight);
149
-
150
128
  for (var i = 0; i < l.length; i += 1) {
151
129
  if (l[i] !== r[i]) {
152
130
  return false;
153
131
  }
154
132
  }
155
-
156
133
  return true;
157
134
  });
158
135
  }
@@ -1 +1 @@
1
- {"version":3,"names":["makeLocalUrl","require","xhr","convertBlobToArrayBuffer","blob","Blob","Error","resolve","reject","reader","FileReader","onerror","onload","result","readAsArrayBuffer","convertUint8ArrayToArrayBuffer","array","Uint8Array","buffer","isBlobLike","file","isBufferLike","ArrayBuffer","ensureArrayBuffer","fetch","filename","uri","responseType","err","res","body","name","FileShim","fetchWithoutMagic","isMatchingFile","left","right","all","then","buffers","innerLeft","innerRight","byteLength","l","r","i","length","module","exports"],"sources":["file.shim.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* eslint-env browser */\n\nconst makeLocalUrl = require('@webex/test-helper-make-local-url');\nconst xhr = require('xhr');\n\n/**\n * @param {Blob} blob\n * @private\n * @returns {Promise}\n */\nfunction convertBlobToArrayBuffer(blob) {\n if (!(blob instanceof Blob)) {\n throw new Error('`blob` must be a `Blob`');\n }\n\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n\n reader.onerror = reject;\n reader.onload = function onload() {\n resolve(reader.result);\n };\n\n reader.readAsArrayBuffer(blob);\n });\n}\n\n/**\n * @param {Uint8Array} array\n * @private\n * @returns {ArrayBuffer}\n */\nfunction convertUint8ArrayToArrayBuffer(array) {\n if (!(array instanceof Uint8Array)) {\n throw new Error('`array` must be a `Uint8Array`');\n }\n\n return array.buffer;\n}\n\n/**\n * @param {mixed} file\n * @returns {Boolean}\n */\nfunction isBlobLike(file) {\n return file instanceof Blob && 'size' in file && 'type' in file;\n}\n\n/**\n * @param {mixed} file\n * @returns {Boolean}\n */\nfunction isBufferLike(file) {\n return file instanceof ArrayBuffer;\n}\n\n/**\n * @param {mixed} file\n * @private\n * @returns {Promise}\n */\nfunction ensureArrayBuffer(file) {\n if (isBufferLike(file)) {\n return file;\n }\n\n if (isBlobLike(file)) {\n return convertBlobToArrayBuffer(file);\n }\n\n if (file instanceof Uint8Array) {\n return convertUint8ArrayToArrayBuffer(file);\n }\n\n throw new Error('Could not determine type of `file`');\n}\n\n/**\n * Fetches a file\n * @param {string} filename\n * @returns {Promise<File>}\n */\nfunction fetch(filename) {\n return new Promise((resolve, reject) => {\n xhr({\n uri: makeLocalUrl(`/${filename}`),\n responseType: 'blob'\n }, (err, res, body) => {\n if (err) {\n reject(err);\n }\n else {\n body.name = body.name || filename;\n resolve(body);\n }\n });\n });\n}\n\nconst FileShim = {\n /**\n * @param {string} filename\n * @returns {Promise}\n */\n fetch,\n\n fetchWithoutMagic: fetch,\n\n isBufferLike,\n\n isBlobLike,\n\n /**\n * @param {ArrayBuffer|Blob|Uint8Array} left\n * @param {ArrayBuffer|Blob|Uint8Array} right\n * @returns {Boolean}\n */\n isMatchingFile: function isMatchingFile(left, right) {\n return Promise.all([\n ensureArrayBuffer(left),\n ensureArrayBuffer(right)\n ])\n .then((buffers) => {\n const innerLeft = buffers[0];\n const innerRight = buffers[1];\n\n if (!FileShim.isBufferLike(innerLeft)) {\n throw new Error('`innerLeft` must be a `Buffer`');\n }\n\n if (!FileShim.isBufferLike(innerRight)) {\n throw new Error('`innerRight` must be a `Buffer`');\n }\n\n if (innerLeft.byteLength !== innerRight.byteLength) {\n return false;\n }\n\n const l = new Uint8Array(innerLeft);\n const r = new Uint8Array(innerRight);\n\n for (let i = 0; i < l.length; i += 1) {\n if (l[i] !== r[i]) {\n return false;\n }\n }\n\n return true;\n });\n }\n};\n\nmodule.exports = FileShim;\n"],"mappings":";;;;;;AAAA;AACA;AACA;;AAEA;AAEA,IAAMA,YAAY,GAAGC,OAAO,CAAC,mCAAD,CAA5B;;AACA,IAAMC,GAAG,GAAGD,OAAO,CAAC,KAAD,CAAnB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C;QACtC,MAAM,IAAInC,KAAJ,CAAU,iCAAV,CAAN;MACD;;MAED,IAAIkC,SAAS,CAACE,UAAV,KAAyBD,UAAU,CAACC,UAAxC,EAAoD;QAClD,OAAO,KAAP;MACD;;MAED,IAAMC,CAAC,GAAG,IAAI1B,UAAJ,CAAeuB,SAAf,CAAV;MACA,IAAMI,CAAC,GAAG,IAAI3B,UAAJ,CAAewB,UAAf,CAAV;;MAEA,KAAK,IAAII,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGF,CAAC,CAACG,MAAtB,EAA8BD,CAAC,IAAI,CAAnC,EAAsC;QACpC,IAAIF,CAAC,CAACE,CAAD,CAAD,KAASD,CAAC,CAACC,CAAD,CAAd,EAAmB;UACjB,OAAO,KAAP;QACD;MACF;;MAED,OAAO,IAAP;IACD,CA9BI,CAAP;EA+BD;AAlDc,CAAjB;AAqDAE,MAAM,CAACC,OAAP,GAAiBhB,QAAjB"}
1
+ {"version":3,"names":["makeLocalUrl","require","xhr","convertBlobToArrayBuffer","blob","Blob","Error","resolve","reject","reader","FileReader","onerror","onload","result","readAsArrayBuffer","convertUint8ArrayToArrayBuffer","array","Uint8Array","buffer","isBlobLike","file","isBufferLike","ArrayBuffer","ensureArrayBuffer","fetch","filename","uri","responseType","err","res","body","name","FileShim","fetchWithoutMagic","isMatchingFile","left","right","all","then","buffers","innerLeft","innerRight","byteLength","l","r","i","length","module","exports"],"sources":["file.shim.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* eslint-env browser */\n\nconst makeLocalUrl = require('@webex/test-helper-make-local-url');\nconst xhr = require('xhr');\n\n/**\n * @param {Blob} blob\n * @private\n * @returns {Promise}\n */\nfunction convertBlobToArrayBuffer(blob) {\n if (!(blob instanceof Blob)) {\n throw new Error('`blob` must be a `Blob`');\n }\n\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n\n reader.onerror = reject;\n reader.onload = function onload() {\n resolve(reader.result);\n };\n\n reader.readAsArrayBuffer(blob);\n });\n}\n\n/**\n * @param {Uint8Array} array\n * @private\n * @returns {ArrayBuffer}\n */\nfunction convertUint8ArrayToArrayBuffer(array) {\n if (!(array instanceof Uint8Array)) {\n throw new Error('`array` must be a `Uint8Array`');\n }\n\n return array.buffer;\n}\n\n/**\n * @param {mixed} file\n * @returns {Boolean}\n */\nfunction isBlobLike(file) {\n return file instanceof Blob && 'size' in file && 'type' in file;\n}\n\n/**\n * @param {mixed} file\n * @returns {Boolean}\n */\nfunction isBufferLike(file) {\n return file instanceof ArrayBuffer;\n}\n\n/**\n * @param {mixed} file\n * @private\n * @returns {Promise}\n */\nfunction ensureArrayBuffer(file) {\n if (isBufferLike(file)) {\n return file;\n }\n\n if (isBlobLike(file)) {\n return convertBlobToArrayBuffer(file);\n }\n\n if (file instanceof Uint8Array) {\n return convertUint8ArrayToArrayBuffer(file);\n }\n\n throw new Error('Could not determine type of `file`');\n}\n\n/**\n * Fetches a file\n * @param {string} filename\n * @returns {Promise<File>}\n */\nfunction fetch(filename) {\n return new Promise((resolve, reject) => {\n xhr(\n {\n uri: makeLocalUrl(`/${filename}`),\n responseType: 'blob',\n },\n (err, res, body) => {\n if (err) {\n reject(err);\n } else {\n body.name = body.name || filename;\n resolve(body);\n }\n }\n );\n });\n}\n\nconst FileShim = {\n /**\n * @param {string} filename\n * @returns {Promise}\n */\n fetch,\n\n fetchWithoutMagic: fetch,\n\n isBufferLike,\n\n isBlobLike,\n\n /**\n * @param {ArrayBuffer|Blob|Uint8Array} left\n * @param {ArrayBuffer|Blob|Uint8Array} right\n * @returns {Boolean}\n */\n isMatchingFile: function isMatchingFile(left, right) {\n return Promise.all([ensureArrayBuffer(left), ensureArrayBuffer(right)]).then((buffers) => {\n const innerLeft = buffers[0];\n const innerRight = buffers[1];\n\n if (!FileShim.isBufferLike(innerLeft)) {\n throw new Error('`innerLeft` must be a `Buffer`');\n }\n\n if (!FileShim.isBufferLike(innerRight)) {\n throw new Error('`innerRight` must be a `Buffer`');\n }\n\n if (innerLeft.byteLength !== innerRight.byteLength) {\n return false;\n }\n\n const l = new Uint8Array(innerLeft);\n const r = new Uint8Array(innerRight);\n\n for (let i = 0; i < l.length; i += 1) {\n if (l[i] !== r[i]) {\n return false;\n }\n }\n\n return true;\n });\n },\n};\n\nmodule.exports = FileShim;\n"],"mappings":";;;;AAAA;AACA;AACA;;AAEA;;AAEA,IAAMA,YAAY,GAAGC,OAAO,CAAC,mCAAmC,CAAC;AACjE,IAAMC,GAAG,GAAGD,OAAO,CAAC,KAAK,CAAC;;AAE1B;AACA;AACA;AACA;AACA;AACA,SAASE,wBAAwB,CAACC,IAAI,EAAE;EACtC,IAAI,EAAEA,IAAI,YAAYC,IAAI,CAAC,EAAE;IAC3B,MAAM,IAAIC,KAAK,CAAC,yBAAyB,CAAC;EAC5C;EAEA,OAAO,qBAAY,UAACC,OAAO,EAAEC,MAAM,EAAK;IACtC,IAAMC,MAAM,GAAG,IAAIC,UAAU,EAAE;IAE/BD,MAAM,CAACE,OAAO,GAAGH,MAAM;IACvBC,MAAM,CAACG,MAAM,GAAG,SAASA,MAAM,GAAG;MAChCL,OAAO,CAACE,MAAM,CAACI,MAAM,CAAC;IACxB,CAAC;IAEDJ,MAAM,CAACK,iBAAiB,CAACV,IAAI,CAAC;EAChC,CAAC,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASW,8BAA8B,CAACC,KAAK,EAAE;EAC7C,IAAI,EAAEA,KAAK,YAAYC,UAAU,CAAC,EAAE;IAClC,MAAM,IAAIX,KAAK,CAAC,gCAAgC,CAAC;EACnD;EAEA,OAAOU,KAAK,CAACE,MAAM;AACrB;;AAEA;AACA;AACA;AACA;AACA,SAASC,UAAU,CAACC,IAAI,EAAE;EACxB,OAAOA,IAAI,YAAYf,IAAI,IAAI,MAAM,IAAIe,IAAI,IAAI,MAAM,IAAIA,IAAI;AACjE;;AAEA;AACA;AACA;AACA;AACA,SAASC,YAAY,CAACD,IAAI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ACE,IAAI,CAAC,UAACC,OAAO,EAAK;MACxF,IAAMC,SAAS,GAAGD,OAAO,CAAC,CAAC,CAAC;MAC5B,IAAME,UAAU,GAAGF,OAAO,CAAC,CAAC,CAAC;MAE7B,IAAI,CAACP,QAAQ,CAACX,YAAY,CAACmB,SAAS,CAAC,EAAE;QACrC,MAAM,IAAIlC,KAAK,CAAC,gCAAgC,CAAC;MACnD;MAEA,IAAI,CAAC0B,QAAQ,CAACX,YAAY,CAACoB,UAAU,CAAC,EAAE;QACtC,MAAM,IAAInC,KAAK,CAAC,iCAAiC,CAAC;MACpD;MAEA,IAAIkC,SAAS,CAACE,UAAU,KAAKD,UAAU,CAACC,UAAU,EAAE;QAClD,OAAO,KAAK;MACd;MAEA,IAAMC,CAAC,GAAG,IAAI1B,UAAU,CAACuB,SAAS,CAAC;MACnC,IAAMI,CAAC,GAAG,IAAI3B,UAAU,CAACwB,UAAU,CAAC;MAEpC,KAAK,IAAII,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,CAAC,CAACG,MAAM,EAAED,CAAC,IAAI,CAAC,EAAE;QACpC,IAAIF,CAAC,CAACE,CAAC,CAAC,KAAKD,CAAC,CAACC,CAAC,CAAC,EAAE;UACjB,OAAO,KAAK;QACd;MACF;MAEA,OAAO,IAAI;IACb,CAAC,CAAC;EACJ;AACF,CAAC;AAEDE,MAAM,CAACC,OAAO,GAAGhB,QAAQ"}
package/dist/index.js CHANGED
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
4
-
5
4
  var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
6
-
7
5
  /*!
8
6
  * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
9
7
  */
@@ -13,6 +11,5 @@ if (typeof _promise.default === 'undefined') {
13
11
  // eslint-disable-next-line global-require
14
12
  require('es6-promise').polyfill();
15
13
  }
16
-
17
14
  module.exports = require('./file');
18
15
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["require","polyfill","module","exports"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n\n/* istanbul ignore next */\nif (typeof Promise === 'undefined') {\n // eslint-disable-next-line global-require\n require('es6-promise').polyfill();\n}\n\nmodule.exports = require('./file');\n"],"mappings":";;;;;;AAAA;AACA;AACA;;AAGA;AACA,IAAI,4BAAmB,WAAvB,EAAoC;EAClC;EACAA,OAAO,CAAC,aAAD,CAAP,CAAuBC,QAAvB;AACD;;AAEDC,MAAM,CAACC,OAAP,GAAiBH,OAAO,CAAC,QAAD,CAAxB"}
1
+ {"version":3,"names":["require","polyfill","module","exports"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* istanbul ignore next */\nif (typeof Promise === 'undefined') {\n // eslint-disable-next-line global-require\n require('es6-promise').polyfill();\n}\n\nmodule.exports = require('./file');\n"],"mappings":";;;;AAAA;AACA;AACA;;AAEA;AACA,IAAI,uBAAc,KAAK,WAAW,EAAE;EAClC;EACAA,OAAO,CAAC,aAAa,CAAC,CAACC,QAAQ,EAAE;AACnC;AAEAC,MAAM,CAACC,OAAO,GAAGH,OAAO,CAAC,QAAQ,CAAC"}
@@ -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;