@webex/jsdoctrinetest 3.0.0-bnr.5 → 3.0.0-next.1

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 (660) hide show
  1. package/.eslintrc.js +6 -0
  2. package/babel.config.js +3 -0
  3. package/dist/assertions/literal.js.map +1 -1
  4. package/dist/extract.js +0 -1
  5. package/dist/extract.js.map +1 -1
  6. package/dist/index.js.map +1 -1
  7. package/dist/mocha-template.js.map +1 -1
  8. package/dist/parse.js +2 -3
  9. package/dist/parse.js.map +1 -1
  10. package/dist/transform.js.map +1 -1
  11. package/jest.config.js +3 -0
  12. package/package.json +25 -5
  13. package/process +1 -0
  14. package/dist/types/@webex/common/src/base64.d.ts +0 -38
  15. package/dist/types/@webex/common/src/browser-detection.d.ts +0 -8
  16. package/dist/types/@webex/common/src/capped-debounce.d.ts +0 -12
  17. package/dist/types/@webex/common/src/check-required.d.ts +0 -11
  18. package/dist/types/@webex/common/src/constants.d.ts +0 -76
  19. package/dist/types/@webex/common/src/defer.d.ts +0 -23
  20. package/dist/types/@webex/common/src/deprecated.d.ts +0 -7
  21. package/dist/types/@webex/common/src/event-envelope.d.ts +0 -13
  22. package/dist/types/@webex/common/src/events.d.ts +0 -15
  23. package/dist/types/@webex/common/src/exception.d.ts +0 -23
  24. package/dist/types/@webex/common/src/in-browser/browser.d.ts +0 -2
  25. package/dist/types/@webex/common/src/in-browser/index.d.ts +0 -1
  26. package/dist/types/@webex/common/src/in-browser/node.d.ts +0 -2
  27. package/dist/types/@webex/common/src/index.d.ts +0 -21
  28. package/dist/types/@webex/common/src/isBuffer.d.ts +0 -2
  29. package/dist/types/@webex/common/src/make-state-datatype.d.ts +0 -11
  30. package/dist/types/@webex/common/src/one-flight.d.ts +0 -9
  31. package/dist/types/@webex/common/src/patterns.d.ts +0 -8
  32. package/dist/types/@webex/common/src/resolve-with.d.ts +0 -22
  33. package/dist/types/@webex/common/src/retry.d.ts +0 -13
  34. package/dist/types/@webex/common/src/tap.d.ts +0 -17
  35. package/dist/types/@webex/common/src/template-container.d.ts +0 -59
  36. package/dist/types/@webex/common/src/uuid-utils.d.ts +0 -112
  37. package/dist/types/@webex/common/src/while-in-flight.d.ts +0 -7
  38. package/dist/types/@webex/common/test/unit/spec/capped-debounce.d.ts +0 -1
  39. package/dist/types/@webex/common/test/unit/spec/common.d.ts +0 -1
  40. package/dist/types/@webex/common/test/unit/spec/exception.d.ts +0 -1
  41. package/dist/types/@webex/common/test/unit/spec/one-flight.d.ts +0 -1
  42. package/dist/types/@webex/common/test/unit/spec/template-container.d.ts +0 -1
  43. package/dist/types/@webex/common/test/unit/spec/while-in-flight.d.ts +0 -1
  44. package/dist/types/@webex/common-evented/src/index.d.ts +0 -9
  45. package/dist/types/@webex/common-evented/test/unit/spec/evented.d.ts +0 -1
  46. package/dist/types/@webex/common-timers/src/index.d.ts +0 -19
  47. package/dist/types/@webex/helper-html/browsers.d.ts +0 -2
  48. package/dist/types/@webex/helper-html/src/html-base.d.ts +0 -12
  49. package/dist/types/@webex/helper-html/src/html.d.ts +0 -5
  50. package/dist/types/@webex/helper-html/src/html.shim.d.ts +0 -33
  51. package/dist/types/@webex/helper-html/src/index.d.ts +0 -1
  52. package/dist/types/@webex/helper-html/test/unit/spec/html.d.ts +0 -1
  53. package/dist/types/@webex/helper-image/src/detect-filetype.d.ts +0 -7
  54. package/dist/types/@webex/helper-image/src/index.d.ts +0 -26
  55. package/dist/types/@webex/helper-image/src/process-image.browser.d.ts +0 -19
  56. package/dist/types/@webex/helper-image/src/process-image.d.ts +0 -17
  57. package/dist/types/@webex/helper-image/test/unit/spec/index.d.ts +0 -1
  58. package/dist/types/@webex/http-core/src/http-error-subtypes.d.ts +0 -8
  59. package/dist/types/@webex/http-core/src/http-error.d.ts +0 -41
  60. package/dist/types/@webex/http-core/src/index.d.ts +0 -7
  61. package/dist/types/@webex/http-core/src/interceptors/http-status.d.ts +0 -17
  62. package/dist/types/@webex/http-core/src/lib/detect.d.ts +0 -6
  63. package/dist/types/@webex/http-core/src/lib/interceptor.d.ts +0 -51
  64. package/dist/types/@webex/http-core/src/lib/xhr.d.ts +0 -6
  65. package/dist/types/@webex/http-core/src/progress-event.d.ts +0 -18
  66. package/dist/types/@webex/http-core/src/request/index.d.ts +0 -5
  67. package/dist/types/@webex/http-core/src/request/request.d.ts +0 -6
  68. package/dist/types/@webex/http-core/src/request/request.shim.d.ts +0 -6
  69. package/dist/types/@webex/http-core/test/integration/spec/http-error.d.ts +0 -1
  70. package/dist/types/@webex/http-core/test/integration/spec/interceptor.d.ts +0 -1
  71. package/dist/types/@webex/http-core/test/integration/spec/progress-event.d.ts +0 -1
  72. package/dist/types/@webex/http-core/test/integration/spec/request.d.ts +0 -1
  73. package/dist/types/@webex/http-core/test/unit/spec/interceptors/http-status.d.ts +0 -1
  74. package/dist/types/@webex/internal-plugin-avatar/src/avatar-url-batcher.d.ts +0 -2
  75. package/dist/types/@webex/internal-plugin-avatar/src/avatar-url-store.d.ts +0 -50
  76. package/dist/types/@webex/internal-plugin-avatar/src/avatar.d.ts +0 -2
  77. package/dist/types/@webex/internal-plugin-avatar/src/config.d.ts +0 -13
  78. package/dist/types/@webex/internal-plugin-avatar/src/index.d.ts +0 -1
  79. package/dist/types/@webex/internal-plugin-avatar/test/integration/spec/avatar.d.ts +0 -1
  80. package/dist/types/@webex/internal-plugin-avatar/test/unit/spec/avatar-url-batcher.d.ts +0 -1
  81. package/dist/types/@webex/internal-plugin-avatar/test/unit/spec/avatar-url-store.d.ts +0 -1
  82. package/dist/types/@webex/internal-plugin-avatar/test/unit/spec/avatar.d.ts +0 -1
  83. package/dist/types/@webex/internal-plugin-board/src/board.d.ts +0 -2
  84. package/dist/types/@webex/internal-plugin-board/src/config.d.ts +0 -11
  85. package/dist/types/@webex/internal-plugin-board/src/index.d.ts +0 -4
  86. package/dist/types/@webex/internal-plugin-board/src/realtime-channel-collection.d.ts +0 -2
  87. package/dist/types/@webex/internal-plugin-board/src/realtime-channel.d.ts +0 -2
  88. package/dist/types/@webex/internal-plugin-board/src/realtime.d.ts +0 -7
  89. package/dist/types/@webex/internal-plugin-board/test/integration/spec/board.d.ts +0 -1
  90. package/dist/types/@webex/internal-plugin-board/test/integration/spec/realtime.d.ts +0 -1
  91. package/dist/types/@webex/internal-plugin-board/test/integration/spec/sharing-mercury.d.ts +0 -1
  92. package/dist/types/@webex/internal-plugin-board/test/unit/spec/board.d.ts +0 -1
  93. package/dist/types/@webex/internal-plugin-board/test/unit/spec/encryption.d.ts +0 -1
  94. package/dist/types/@webex/internal-plugin-board/test/unit/spec/realtime.d.ts +0 -1
  95. package/dist/types/@webex/internal-plugin-calendar/src/calendar.d.ts +0 -2
  96. package/dist/types/@webex/internal-plugin-calendar/src/collection.d.ts +0 -58
  97. package/dist/types/@webex/internal-plugin-calendar/src/config.d.ts +0 -7
  98. package/dist/types/@webex/internal-plugin-calendar/src/constants.d.ts +0 -6
  99. package/dist/types/@webex/internal-plugin-calendar/src/index.d.ts +0 -1
  100. package/dist/types/@webex/internal-plugin-calendar/src/util.d.ts +0 -15
  101. package/dist/types/@webex/internal-plugin-calendar/test/integration/spec/calendar.d.ts +0 -1
  102. package/dist/types/@webex/internal-plugin-calendar/test/unit/spec/calendar.d.ts +0 -1
  103. package/dist/types/@webex/internal-plugin-calendar/test/unit/spec/utils.d.ts +0 -1
  104. package/dist/types/@webex/internal-plugin-conversation/src/activities.d.ts +0 -32
  105. package/dist/types/@webex/internal-plugin-conversation/src/activity-thread-ordering.d.ts +0 -18
  106. package/dist/types/@webex/internal-plugin-conversation/src/config.d.ts +0 -19
  107. package/dist/types/@webex/internal-plugin-conversation/src/constants.d.ts +0 -5
  108. package/dist/types/@webex/internal-plugin-conversation/src/conversation.d.ts +0 -2
  109. package/dist/types/@webex/internal-plugin-conversation/src/convo-error.d.ts +0 -10
  110. package/dist/types/@webex/internal-plugin-conversation/src/decryption-transforms.d.ts +0 -1
  111. package/dist/types/@webex/internal-plugin-conversation/src/encryption-transforms.d.ts +0 -1
  112. package/dist/types/@webex/internal-plugin-conversation/src/index.d.ts +0 -3
  113. package/dist/types/@webex/internal-plugin-conversation/src/share-activity.d.ts +0 -7
  114. package/dist/types/@webex/internal-plugin-conversation/src/to-array.d.ts +0 -9
  115. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/create.d.ts +0 -1
  116. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/encryption.d.ts +0 -1
  117. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/get.d.ts +0 -1
  118. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/mercury.d.ts +0 -1
  119. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/share.d.ts +0 -1
  120. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/verbs.d.ts +0 -1
  121. package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/conversation.d.ts +0 -1
  122. package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/decrypt-transforms.d.ts +0 -1
  123. package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/encryption-transforms.d.ts +0 -1
  124. package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/share-activity.d.ts +0 -1
  125. package/dist/types/@webex/internal-plugin-device/src/config.d.ts +0 -10
  126. package/dist/types/@webex/internal-plugin-device/src/constants.d.ts +0 -12
  127. package/dist/types/@webex/internal-plugin-device/src/device.d.ts +0 -2
  128. package/dist/types/@webex/internal-plugin-device/src/features/feature-collection.d.ts +0 -9
  129. package/dist/types/@webex/internal-plugin-device/src/features/feature-model.d.ts +0 -29
  130. package/dist/types/@webex/internal-plugin-device/src/features/features-model.d.ts +0 -9
  131. package/dist/types/@webex/internal-plugin-device/src/features/index.d.ts +0 -4
  132. package/dist/types/@webex/internal-plugin-device/src/index.d.ts +0 -8
  133. package/dist/types/@webex/internal-plugin-device/src/interceptors/device-url.d.ts +0 -15
  134. package/dist/types/@webex/internal-plugin-device/src/metrics.d.ts +0 -5
  135. package/dist/types/@webex/internal-plugin-device/test/integration/spec/device.d.ts +0 -1
  136. package/dist/types/@webex/internal-plugin-device/test/integration/spec/webex.d.ts +0 -1
  137. package/dist/types/@webex/internal-plugin-device/test/unit/spec/device.d.ts +0 -1
  138. package/dist/types/@webex/internal-plugin-device/test/unit/spec/features/feature-collection.d.ts +0 -1
  139. package/dist/types/@webex/internal-plugin-device/test/unit/spec/features/feature-model.d.ts +0 -1
  140. package/dist/types/@webex/internal-plugin-device/test/unit/spec/features/features-model.d.ts +0 -1
  141. package/dist/types/@webex/internal-plugin-device/test/unit/spec/interceptors/device-url.d.ts +0 -1
  142. package/dist/types/@webex/internal-plugin-dss/src/constants.d.ts +0 -14
  143. package/dist/types/@webex/internal-plugin-dss/src/dss.d.ts +0 -3
  144. package/dist/types/@webex/internal-plugin-dss/src/index.d.ts +0 -1
  145. package/dist/types/@webex/internal-plugin-dss/src/types.d.ts +0 -28
  146. package/dist/types/@webex/internal-plugin-dss/test/unit/spec/dss.d.ts +0 -4
  147. package/dist/types/@webex/internal-plugin-ediscovery/src/config.d.ts +0 -11
  148. package/dist/types/@webex/internal-plugin-ediscovery/src/ediscovery-error.d.ts +0 -11
  149. package/dist/types/@webex/internal-plugin-ediscovery/src/ediscovery.d.ts +0 -6
  150. package/dist/types/@webex/internal-plugin-ediscovery/src/index.d.ts +0 -4
  151. package/dist/types/@webex/internal-plugin-ediscovery/src/report-request.d.ts +0 -29
  152. package/dist/types/@webex/internal-plugin-ediscovery/src/retry.d.ts +0 -2
  153. package/dist/types/@webex/internal-plugin-ediscovery/src/transforms.d.ts +0 -35
  154. package/dist/types/@webex/internal-plugin-ediscovery/test/integration/spec/ediscovery.d.ts +0 -1
  155. package/dist/types/@webex/internal-plugin-ediscovery/test/unit/spec/content.d.ts +0 -1
  156. package/dist/types/@webex/internal-plugin-ediscovery/test/unit/spec/report.d.ts +0 -1
  157. package/dist/types/@webex/internal-plugin-ediscovery/test/unit/spec/transforms.d.ts +0 -1
  158. package/dist/types/@webex/internal-plugin-encryption/src/config.d.ts +0 -16
  159. package/dist/types/@webex/internal-plugin-encryption/src/encryption.d.ts +0 -2
  160. package/dist/types/@webex/internal-plugin-encryption/src/ensure-buffer.browser.d.ts +0 -10
  161. package/dist/types/@webex/internal-plugin-encryption/src/ensure-buffer.d.ts +0 -7
  162. package/dist/types/@webex/internal-plugin-encryption/src/index.d.ts +0 -3
  163. package/dist/types/@webex/internal-plugin-encryption/src/kms-batcher.d.ts +0 -6
  164. package/dist/types/@webex/internal-plugin-encryption/src/kms-certificate-validation.d.ts +0 -24
  165. package/dist/types/@webex/internal-plugin-encryption/src/kms-dry-error-interceptor.d.ts +0 -25
  166. package/dist/types/@webex/internal-plugin-encryption/src/kms-errors.d.ts +0 -33
  167. package/dist/types/@webex/internal-plugin-encryption/src/kms.d.ts +0 -5
  168. package/dist/types/@webex/internal-plugin-encryption/test/integration/spec/encryption.d.ts +0 -1
  169. package/dist/types/@webex/internal-plugin-encryption/test/integration/spec/kms.d.ts +0 -1
  170. package/dist/types/@webex/internal-plugin-encryption/test/integration/spec/payload-transfom.d.ts +0 -1
  171. package/dist/types/@webex/internal-plugin-encryption/test/unit/spec/encryption.d.ts +0 -1
  172. package/dist/types/@webex/internal-plugin-encryption/test/unit/spec/kms-certificate-validation.d.ts +0 -1
  173. package/dist/types/@webex/internal-plugin-feature/src/config.d.ts +0 -4
  174. package/dist/types/@webex/internal-plugin-feature/src/feature.d.ts +0 -2
  175. package/dist/types/@webex/internal-plugin-feature/src/index.d.ts +0 -1
  176. package/dist/types/@webex/internal-plugin-feature/test/integration/spec/feature.d.ts +0 -1
  177. package/dist/types/@webex/internal-plugin-feature/test/unit/spec/feature.d.ts +0 -1
  178. package/dist/types/@webex/internal-plugin-flag/src/config.d.ts +0 -4
  179. package/dist/types/@webex/internal-plugin-flag/src/flag.d.ts +0 -2
  180. package/dist/types/@webex/internal-plugin-flag/src/index.d.ts +0 -1
  181. package/dist/types/@webex/internal-plugin-flag/test/integration/spec/flag.d.ts +0 -1
  182. package/dist/types/@webex/internal-plugin-flag/test/unit/spec/flag.d.ts +0 -1
  183. package/dist/types/@webex/internal-plugin-llm/src/constants.d.ts +0 -1
  184. package/dist/types/@webex/internal-plugin-llm/src/index.d.ts +0 -1
  185. package/dist/types/@webex/internal-plugin-llm/src/llm.d.ts +0 -88
  186. package/dist/types/@webex/internal-plugin-llm/src/llm.types.d.ts +0 -8
  187. package/dist/types/@webex/internal-plugin-llm/test/unit/spec/llm.d.ts +0 -1
  188. package/dist/types/@webex/internal-plugin-locus/src/event-keys.d.ts +0 -5
  189. package/dist/types/@webex/internal-plugin-locus/src/index.d.ts +0 -4
  190. package/dist/types/@webex/internal-plugin-locus/src/locus.d.ts +0 -12
  191. package/dist/types/@webex/internal-plugin-locus/test/unit/spec/locus.d.ts +0 -1
  192. package/dist/types/@webex/internal-plugin-lyra/src/config.d.ts +0 -4
  193. package/dist/types/@webex/internal-plugin-lyra/src/device.d.ts +0 -7
  194. package/dist/types/@webex/internal-plugin-lyra/src/index.d.ts +0 -3
  195. package/dist/types/@webex/internal-plugin-lyra/src/lyra.d.ts +0 -2
  196. package/dist/types/@webex/internal-plugin-lyra/src/space.d.ts +0 -7
  197. package/dist/types/@webex/internal-plugin-lyra/test/integration/spec/device.d.ts +0 -1
  198. package/dist/types/@webex/internal-plugin-lyra/test/integration/spec/space.d.ts +0 -1
  199. package/dist/types/@webex/internal-plugin-lyra/test/unit/spec/device.d.ts +0 -1
  200. package/dist/types/@webex/internal-plugin-lyra/test/unit/spec/lyra.d.ts +0 -1
  201. package/dist/types/@webex/internal-plugin-lyra/test/unit/spec/space.d.ts +0 -1
  202. package/dist/types/@webex/internal-plugin-mercury/src/config.d.ts +0 -10
  203. package/dist/types/@webex/internal-plugin-mercury/src/errors.d.ts +0 -31
  204. package/dist/types/@webex/internal-plugin-mercury/src/index.d.ts +0 -4
  205. package/dist/types/@webex/internal-plugin-mercury/src/mercury.d.ts +0 -2
  206. package/dist/types/@webex/internal-plugin-mercury/src/socket/index.d.ts +0 -1
  207. package/dist/types/@webex/internal-plugin-mercury/src/socket/socket-base.d.ts +0 -120
  208. package/dist/types/@webex/internal-plugin-mercury/src/socket/socket.d.ts +0 -2
  209. package/dist/types/@webex/internal-plugin-mercury/src/socket/socket.shim.d.ts +0 -2
  210. package/dist/types/@webex/internal-plugin-mercury/test/integration/spec/mercury.d.ts +0 -1
  211. package/dist/types/@webex/internal-plugin-mercury/test/integration/spec/sharable-mercury.d.ts +0 -1
  212. package/dist/types/@webex/internal-plugin-mercury/test/integration/spec/webex.d.ts +0 -1
  213. package/dist/types/@webex/internal-plugin-mercury/test/unit/lib/promise-tick.d.ts +0 -9
  214. package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/_setup.d.ts +0 -0
  215. package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/mercury-events.d.ts +0 -1
  216. package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/mercury.d.ts +0 -1
  217. package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/socket.d.ts +0 -1
  218. package/dist/types/@webex/internal-plugin-metrics/src/batcher.d.ts +0 -2
  219. package/dist/types/@webex/internal-plugin-metrics/src/call-diagnostic-events-batcher.d.ts +0 -2
  220. package/dist/types/@webex/internal-plugin-metrics/src/client-metrics-batcher.d.ts +0 -2
  221. package/dist/types/@webex/internal-plugin-metrics/src/config.d.ts +0 -18
  222. package/dist/types/@webex/internal-plugin-metrics/src/index.d.ts +0 -3
  223. package/dist/types/@webex/internal-plugin-metrics/src/metrics.d.ts +0 -2
  224. package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/batcher.d.ts +0 -1
  225. package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/call-diagnostic-events-batcher.d.ts +0 -1
  226. package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/client-metrics-batcher.d.ts +0 -1
  227. package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/metrics.d.ts +0 -1
  228. package/dist/types/@webex/internal-plugin-presence/src/config.d.ts +0 -8
  229. package/dist/types/@webex/internal-plugin-presence/src/constants.d.ts +0 -14
  230. package/dist/types/@webex/internal-plugin-presence/src/index.d.ts +0 -1
  231. package/dist/types/@webex/internal-plugin-presence/src/presence-batcher.d.ts +0 -6
  232. package/dist/types/@webex/internal-plugin-presence/src/presence-worker.d.ts +0 -68
  233. package/dist/types/@webex/internal-plugin-presence/src/presence.d.ts +0 -6
  234. package/dist/types/@webex/internal-plugin-presence/test/integration/spec/presence.d.ts +0 -1
  235. package/dist/types/@webex/internal-plugin-presence/test/unit/spec/presence-worker.d.ts +0 -1
  236. package/dist/types/@webex/internal-plugin-presence/test/unit/spec/presence.d.ts +0 -1
  237. package/dist/types/@webex/internal-plugin-search/src/config.d.ts +0 -4
  238. package/dist/types/@webex/internal-plugin-search/src/index.d.ts +0 -1
  239. package/dist/types/@webex/internal-plugin-search/src/search.d.ts +0 -2
  240. package/dist/types/@webex/internal-plugin-search/test/integration/spec/search.d.ts +0 -1
  241. package/dist/types/@webex/internal-plugin-support/src/config.d.ts +0 -16
  242. package/dist/types/@webex/internal-plugin-support/src/index.d.ts +0 -1
  243. package/dist/types/@webex/internal-plugin-support/src/support.d.ts +0 -2
  244. package/dist/types/@webex/internal-plugin-support/test/integration/spec/support.d.ts +0 -1
  245. package/dist/types/@webex/internal-plugin-support/test/unit/spec/support.d.ts +0 -1
  246. package/dist/types/@webex/internal-plugin-team/src/config.d.ts +0 -4
  247. package/dist/types/@webex/internal-plugin-team/src/index.d.ts +0 -1
  248. package/dist/types/@webex/internal-plugin-team/src/team.d.ts +0 -2
  249. package/dist/types/@webex/internal-plugin-team/test/integration/spec/actions.d.ts +0 -1
  250. package/dist/types/@webex/internal-plugin-team/test/integration/spec/create.d.ts +0 -1
  251. package/dist/types/@webex/internal-plugin-team/test/integration/spec/get.d.ts +0 -1
  252. package/dist/types/@webex/internal-plugin-team/test/integration/spec/mercury.d.ts +0 -1
  253. package/dist/types/@webex/internal-plugin-team/test/unit/spec/team.d.ts +0 -1
  254. package/dist/types/@webex/internal-plugin-user/src/config.d.ts +0 -17
  255. package/dist/types/@webex/internal-plugin-user/src/index.d.ts +0 -1
  256. package/dist/types/@webex/internal-plugin-user/src/user-uuid-batcher.d.ts +0 -5
  257. package/dist/types/@webex/internal-plugin-user/src/user-uuid-store.d.ts +0 -34
  258. package/dist/types/@webex/internal-plugin-user/src/user.d.ts +0 -5
  259. package/dist/types/@webex/internal-plugin-user/test/integration/spec/user.d.ts +0 -1
  260. package/dist/types/@webex/internal-plugin-user/test/unit/spec/user-uuid-batcher.d.ts +0 -1
  261. package/dist/types/@webex/internal-plugin-user/test/unit/spec/user.d.ts +0 -1
  262. package/dist/types/@webex/internal-plugin-voicea/src/constants.d.ts +0 -28
  263. package/dist/types/@webex/internal-plugin-voicea/src/index.d.ts +0 -1
  264. package/dist/types/@webex/internal-plugin-voicea/src/utils.d.ts +0 -1
  265. package/dist/types/@webex/internal-plugin-voicea/src/voicea.d.ts +0 -78
  266. package/dist/types/@webex/internal-plugin-voicea/src/voicea.types.d.ts +0 -72
  267. package/dist/types/@webex/internal-plugin-voicea/test/unit/spec/utils.d.ts +0 -1
  268. package/dist/types/@webex/internal-plugin-voicea/test/unit/spec/voicea.d.ts +0 -1
  269. package/dist/types/@webex/internal-plugin-wdm/src/index.d.ts +0 -2
  270. package/dist/types/@webex/internal-plugin-wdm/test/integration/spec/webex.d.ts +0 -1
  271. package/dist/types/@webex/internal-plugin-wdm/test/unit/spec/device.d.ts +0 -1
  272. package/dist/types/@webex/jsdoctrinetest/src/assertions/literal.d.ts +0 -12
  273. package/dist/types/@webex/jsdoctrinetest/src/extract.d.ts +0 -20
  274. package/dist/types/@webex/jsdoctrinetest/src/index.d.ts +0 -1
  275. package/dist/types/@webex/jsdoctrinetest/src/mocha-template.d.ts +0 -11
  276. package/dist/types/@webex/jsdoctrinetest/src/parse.d.ts +0 -7
  277. package/dist/types/@webex/jsdoctrinetest/src/transform.d.ts +0 -14
  278. package/dist/types/@webex/jsdoctrinetest/test/unit/spec/default.d.ts +0 -1
  279. package/dist/types/@webex/plugin-attachment-actions/src/attachmentActions.d.ts +0 -51
  280. package/dist/types/@webex/plugin-attachment-actions/src/index.d.ts +0 -2
  281. package/dist/types/@webex/plugin-attachment-actions/test/integration/spec/attachmentActions.d.ts +0 -1
  282. package/dist/types/@webex/plugin-authorization/src/index.browser.d.ts +0 -1
  283. package/dist/types/@webex/plugin-authorization/src/index.d.ts +0 -1
  284. package/dist/types/@webex/plugin-authorization-browser/src/authorization.d.ts +0 -8
  285. package/dist/types/@webex/plugin-authorization-browser/src/config.d.ts +0 -6
  286. package/dist/types/@webex/plugin-authorization-browser/src/index.d.ts +0 -2
  287. package/dist/types/@webex/plugin-authorization-browser/test/automation/fixtures/app.d.ts +0 -1
  288. package/dist/types/@webex/plugin-authorization-browser/test/automation/spec/authorization-code-grant.d.ts +0 -1
  289. package/dist/types/@webex/plugin-authorization-browser/test/automation/spec/implicit-grant.d.ts +0 -1
  290. package/dist/types/@webex/plugin-authorization-browser/test/integration/spec/authorization.d.ts +0 -1
  291. package/dist/types/@webex/plugin-authorization-browser/test/unit/spec/authorization.d.ts +0 -1
  292. package/dist/types/@webex/plugin-authorization-browser-first-party/src/authorization.d.ts +0 -12
  293. package/dist/types/@webex/plugin-authorization-browser-first-party/src/config.d.ts +0 -7
  294. package/dist/types/@webex/plugin-authorization-browser-first-party/src/index.d.ts +0 -2
  295. package/dist/types/@webex/plugin-authorization-browser-first-party/test/automation/fixtures/app.d.ts +0 -1
  296. package/dist/types/@webex/plugin-authorization-browser-first-party/test/automation/spec/authorization-code-grant.d.ts +0 -1
  297. package/dist/types/@webex/plugin-authorization-browser-first-party/test/unit/spec/authorization.d.ts +0 -1
  298. package/dist/types/@webex/plugin-authorization-node/src/authorization.d.ts +0 -7
  299. package/dist/types/@webex/plugin-authorization-node/src/config.d.ts +0 -4
  300. package/dist/types/@webex/plugin-authorization-node/src/index.d.ts +0 -2
  301. package/dist/types/@webex/plugin-authorization-node/test/integration/spec/authorization.d.ts +0 -1
  302. package/dist/types/@webex/plugin-authorization-node/test/unit/spec/authorization.d.ts +0 -1
  303. package/dist/types/@webex/plugin-device-manager/sample/app.d.ts +0 -15
  304. package/dist/types/@webex/plugin-device-manager/src/collection.d.ts +0 -8
  305. package/dist/types/@webex/plugin-device-manager/src/config.d.ts +0 -2
  306. package/dist/types/@webex/plugin-device-manager/src/constants.d.ts +0 -3
  307. package/dist/types/@webex/plugin-device-manager/src/device-manager.d.ts +0 -2
  308. package/dist/types/@webex/plugin-device-manager/src/index.d.ts +0 -2
  309. package/dist/types/@webex/plugin-device-manager/test/unit/spec/index.d.ts +0 -1
  310. package/dist/types/@webex/plugin-device-manager/webex.d.ts +0 -1
  311. package/dist/types/@webex/plugin-logger/src/config.d.ts +0 -19
  312. package/dist/types/@webex/plugin-logger/src/index.d.ts +0 -1
  313. package/dist/types/@webex/plugin-logger/src/logger.d.ts +0 -7
  314. package/dist/types/@webex/plugin-logger/test/unit/spec/logger.d.ts +0 -1
  315. package/dist/types/@webex/plugin-meetings/browsers.d.ts +0 -75
  316. package/dist/types/@webex/plugin-meetings/src/breakouts/breakout.d.ts +0 -8
  317. package/dist/types/@webex/plugin-meetings/src/breakouts/collection.d.ts +0 -5
  318. package/dist/types/@webex/plugin-meetings/src/breakouts/index.d.ts +0 -5
  319. package/dist/types/@webex/plugin-meetings/src/breakouts/request.d.ts +0 -22
  320. package/dist/types/@webex/plugin-meetings/src/breakouts/utils.d.ts +0 -1
  321. package/dist/types/@webex/plugin-meetings/src/common/browser-detection.d.ts +0 -9
  322. package/dist/types/@webex/plugin-meetings/src/common/collection.d.ts +0 -48
  323. package/dist/types/@webex/plugin-meetings/src/common/config.d.ts +0 -2
  324. package/dist/types/@webex/plugin-meetings/src/common/errors/captcha-error.d.ts +0 -15
  325. package/dist/types/@webex/plugin-meetings/src/common/errors/intent-to-join.d.ts +0 -16
  326. package/dist/types/@webex/plugin-meetings/src/common/errors/join-meeting.d.ts +0 -17
  327. package/dist/types/@webex/plugin-meetings/src/common/errors/media.d.ts +0 -15
  328. package/dist/types/@webex/plugin-meetings/src/common/errors/parameter.d.ts +0 -15
  329. package/dist/types/@webex/plugin-meetings/src/common/errors/password-error.d.ts +0 -15
  330. package/dist/types/@webex/plugin-meetings/src/common/errors/permission.d.ts +0 -14
  331. package/dist/types/@webex/plugin-meetings/src/common/errors/reconnection-in-progress.d.ts +0 -9
  332. package/dist/types/@webex/plugin-meetings/src/common/errors/reconnection.d.ts +0 -15
  333. package/dist/types/@webex/plugin-meetings/src/common/errors/stats.d.ts +0 -15
  334. package/dist/types/@webex/plugin-meetings/src/common/errors/webex-errors.d.ts +0 -69
  335. package/dist/types/@webex/plugin-meetings/src/common/errors/webex-meetings-error.d.ts +0 -20
  336. package/dist/types/@webex/plugin-meetings/src/common/events/events-scope.d.ts +0 -17
  337. package/dist/types/@webex/plugin-meetings/src/common/events/events.d.ts +0 -12
  338. package/dist/types/@webex/plugin-meetings/src/common/events/trigger-proxy.d.ts +0 -2
  339. package/dist/types/@webex/plugin-meetings/src/common/events/util.d.ts +0 -2
  340. package/dist/types/@webex/plugin-meetings/src/common/logs/logger-config.d.ts +0 -2
  341. package/dist/types/@webex/plugin-meetings/src/common/logs/logger-proxy.d.ts +0 -2
  342. package/dist/types/@webex/plugin-meetings/src/common/logs/request.d.ts +0 -34
  343. package/dist/types/@webex/plugin-meetings/src/common/queue.d.ts +0 -32
  344. package/dist/types/@webex/plugin-meetings/src/config.d.ts +0 -77
  345. package/dist/types/@webex/plugin-meetings/src/constants.d.ts +0 -899
  346. package/dist/types/@webex/plugin-meetings/src/controls-options-manager/constants.d.ts +0 -4
  347. package/dist/types/@webex/plugin-meetings/src/controls-options-manager/enums.d.ts +0 -5
  348. package/dist/types/@webex/plugin-meetings/src/controls-options-manager/index.d.ts +0 -120
  349. package/dist/types/@webex/plugin-meetings/src/controls-options-manager/util.d.ts +0 -7
  350. package/dist/types/@webex/plugin-meetings/src/index.d.ts +0 -7
  351. package/dist/types/@webex/plugin-meetings/src/locus-info/controlsUtils.d.ts +0 -2
  352. package/dist/types/@webex/plugin-meetings/src/locus-info/embeddedAppsUtils.d.ts +0 -2
  353. package/dist/types/@webex/plugin-meetings/src/locus-info/fullState.d.ts +0 -2
  354. package/dist/types/@webex/plugin-meetings/src/locus-info/hostUtils.d.ts +0 -2
  355. package/dist/types/@webex/plugin-meetings/src/locus-info/index.d.ts +0 -269
  356. package/dist/types/@webex/plugin-meetings/src/locus-info/infoUtils.d.ts +0 -2
  357. package/dist/types/@webex/plugin-meetings/src/locus-info/mediaSharesUtils.d.ts +0 -2
  358. package/dist/types/@webex/plugin-meetings/src/locus-info/parser.d.ts +0 -212
  359. package/dist/types/@webex/plugin-meetings/src/locus-info/selfUtils.d.ts +0 -2
  360. package/dist/types/@webex/plugin-meetings/src/media/index.d.ts +0 -32
  361. package/dist/types/@webex/plugin-meetings/src/media/properties.d.ts +0 -107
  362. package/dist/types/@webex/plugin-meetings/src/media/util.d.ts +0 -2
  363. package/dist/types/@webex/plugin-meetings/src/mediaQualityMetrics/config.d.ts +0 -365
  364. package/dist/types/@webex/plugin-meetings/src/meeting/effectsState.d.ts +0 -42
  365. package/dist/types/@webex/plugin-meetings/src/meeting/in-meeting-actions.d.ts +0 -83
  366. package/dist/types/@webex/plugin-meetings/src/meeting/index.d.ts +0 -1724
  367. package/dist/types/@webex/plugin-meetings/src/meeting/muteState.d.ts +0 -108
  368. package/dist/types/@webex/plugin-meetings/src/meeting/request.d.ts +0 -261
  369. package/dist/types/@webex/plugin-meetings/src/meeting/request.type.d.ts +0 -11
  370. package/dist/types/@webex/plugin-meetings/src/meeting/state.d.ts +0 -9
  371. package/dist/types/@webex/plugin-meetings/src/meeting/util.d.ts +0 -2
  372. package/dist/types/@webex/plugin-meetings/src/meeting-info/collection.d.ts +0 -20
  373. package/dist/types/@webex/plugin-meetings/src/meeting-info/index.d.ts +0 -57
  374. package/dist/types/@webex/plugin-meetings/src/meeting-info/meeting-info-v2.d.ts +0 -93
  375. package/dist/types/@webex/plugin-meetings/src/meeting-info/request.d.ts +0 -22
  376. package/dist/types/@webex/plugin-meetings/src/meeting-info/util.d.ts +0 -2
  377. package/dist/types/@webex/plugin-meetings/src/meeting-info/utilv2.d.ts +0 -2
  378. package/dist/types/@webex/plugin-meetings/src/meetings/collection.d.ts +0 -23
  379. package/dist/types/@webex/plugin-meetings/src/meetings/index.d.ts +0 -297
  380. package/dist/types/@webex/plugin-meetings/src/meetings/request.d.ts +0 -27
  381. package/dist/types/@webex/plugin-meetings/src/meetings/util.d.ts +0 -18
  382. package/dist/types/@webex/plugin-meetings/src/member/index.d.ts +0 -146
  383. package/dist/types/@webex/plugin-meetings/src/member/util.d.ts +0 -2
  384. package/dist/types/@webex/plugin-meetings/src/members/collection.d.ts +0 -24
  385. package/dist/types/@webex/plugin-meetings/src/members/index.d.ts +0 -320
  386. package/dist/types/@webex/plugin-meetings/src/members/request.d.ts +0 -50
  387. package/dist/types/@webex/plugin-meetings/src/members/util.d.ts +0 -2
  388. package/dist/types/@webex/plugin-meetings/src/metrics/config.d.ts +0 -178
  389. package/dist/types/@webex/plugin-meetings/src/metrics/constants.d.ts +0 -57
  390. package/dist/types/@webex/plugin-meetings/src/metrics/index.d.ts +0 -160
  391. package/dist/types/@webex/plugin-meetings/src/multistream/mediaRequestManager.d.ts +0 -51
  392. package/dist/types/@webex/plugin-meetings/src/multistream/receiveSlot.d.ts +0 -66
  393. package/dist/types/@webex/plugin-meetings/src/multistream/receiveSlotManager.d.ts +0 -46
  394. package/dist/types/@webex/plugin-meetings/src/multistream/remoteMedia.d.ts +0 -93
  395. package/dist/types/@webex/plugin-meetings/src/multistream/remoteMediaGroup.d.ts +0 -56
  396. package/dist/types/@webex/plugin-meetings/src/multistream/remoteMediaManager.d.ts +0 -241
  397. package/dist/types/@webex/plugin-meetings/src/networkQualityMonitor/index.d.ts +0 -70
  398. package/dist/types/@webex/plugin-meetings/src/personal-meeting-room/index.d.ts +0 -47
  399. package/dist/types/@webex/plugin-meetings/src/personal-meeting-room/request.d.ts +0 -14
  400. package/dist/types/@webex/plugin-meetings/src/personal-meeting-room/util.d.ts +0 -2
  401. package/dist/types/@webex/plugin-meetings/src/reachability/index.d.ts +0 -140
  402. package/dist/types/@webex/plugin-meetings/src/reachability/request.d.ts +0 -35
  403. package/dist/types/@webex/plugin-meetings/src/reactions/constants.d.ts +0 -3
  404. package/dist/types/@webex/plugin-meetings/src/reactions/reactions.d.ts +0 -4
  405. package/dist/types/@webex/plugin-meetings/src/reactions/reactions.type.d.ts +0 -52
  406. package/dist/types/@webex/plugin-meetings/src/reconnection-manager/index.d.ts +0 -117
  407. package/dist/types/@webex/plugin-meetings/src/recording-controller/enums.d.ts +0 -7
  408. package/dist/types/@webex/plugin-meetings/src/recording-controller/index.d.ts +0 -193
  409. package/dist/types/@webex/plugin-meetings/src/recording-controller/util.d.ts +0 -13
  410. package/dist/types/@webex/plugin-meetings/src/roap/index.d.ts +0 -77
  411. package/dist/types/@webex/plugin-meetings/src/roap/request.d.ts +0 -35
  412. package/dist/types/@webex/plugin-meetings/src/roap/turnDiscovery.d.ts +0 -74
  413. package/dist/types/@webex/plugin-meetings/src/statsAnalyzer/global.d.ts +0 -36
  414. package/dist/types/@webex/plugin-meetings/src/statsAnalyzer/index.d.ts +0 -195
  415. package/dist/types/@webex/plugin-meetings/src/statsAnalyzer/mqaUtil.d.ts +0 -24
  416. package/dist/types/@webex/plugin-meetings/src/transcription/index.d.ts +0 -64
  417. package/dist/types/@webex/plugin-meetings/test/integration/spec/converged-space-meetings.d.ts +0 -1
  418. package/dist/types/@webex/plugin-meetings/test/integration/spec/journey.d.ts +0 -1
  419. package/dist/types/@webex/plugin-meetings/test/integration/spec/space-meeting.d.ts +0 -1
  420. package/dist/types/@webex/plugin-meetings/test/integration/spec/transcription.d.ts +0 -1
  421. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/breakout.d.ts +0 -1
  422. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/collection.d.ts +0 -1
  423. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/index.d.ts +0 -1
  424. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/request.d.ts +0 -1
  425. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/utils.d.ts +0 -1
  426. package/dist/types/@webex/plugin-meetings/test/unit/spec/common/browser-detection.d.ts +0 -1
  427. package/dist/types/@webex/plugin-meetings/test/unit/spec/common/queue.d.ts +0 -1
  428. package/dist/types/@webex/plugin-meetings/test/unit/spec/controls-options-manager/index.d.ts +0 -1
  429. package/dist/types/@webex/plugin-meetings/test/unit/spec/controls-options-manager/util.d.ts +0 -1
  430. package/dist/types/@webex/plugin-meetings/test/unit/spec/fixture/locus.d.ts +0 -332
  431. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/controlsUtils.d.ts +0 -1
  432. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/embeddedAppsUtils.d.ts +0 -1
  433. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/index.d.ts +0 -1
  434. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/infoUtils.d.ts +0 -1
  435. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/parser.d.ts +0 -1
  436. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/selfConstant.d.ts +0 -274
  437. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/selfUtils.d.ts +0 -1
  438. package/dist/types/@webex/plugin-meetings/test/unit/spec/media/index.d.ts +0 -1
  439. package/dist/types/@webex/plugin-meetings/test/unit/spec/media/properties.d.ts +0 -1
  440. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/effectsState.d.ts +0 -1
  441. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/in-meeting-actions.d.ts +0 -1
  442. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/index.d.ts +0 -1
  443. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/muteState.d.ts +0 -1
  444. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/request.d.ts +0 -1
  445. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/utils.d.ts +0 -1
  446. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/meetinginfov2.d.ts +0 -1
  447. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/request.d.ts +0 -1
  448. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/util.d.ts +0 -1
  449. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/utilv2.d.ts +0 -1
  450. package/dist/types/@webex/plugin-meetings/test/unit/spec/meetings/collection.d.ts +0 -1
  451. package/dist/types/@webex/plugin-meetings/test/unit/spec/meetings/index.d.ts +0 -1
  452. package/dist/types/@webex/plugin-meetings/test/unit/spec/meetings/utils.d.ts +0 -1
  453. package/dist/types/@webex/plugin-meetings/test/unit/spec/member/index.d.ts +0 -1
  454. package/dist/types/@webex/plugin-meetings/test/unit/spec/member/util.d.ts +0 -1
  455. package/dist/types/@webex/plugin-meetings/test/unit/spec/members/index.d.ts +0 -1
  456. package/dist/types/@webex/plugin-meetings/test/unit/spec/members/request.d.ts +0 -1
  457. package/dist/types/@webex/plugin-meetings/test/unit/spec/members/utils.d.ts +0 -1
  458. package/dist/types/@webex/plugin-meetings/test/unit/spec/metrics/index.d.ts +0 -1
  459. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/mediaRequestManager.d.ts +0 -1
  460. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/receiveSlot.d.ts +0 -1
  461. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/receiveSlotManager.d.ts +0 -1
  462. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/remoteMedia.d.ts +0 -1
  463. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/remoteMediaGroup.d.ts +0 -1
  464. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/remoteMediaManager.d.ts +0 -1
  465. package/dist/types/@webex/plugin-meetings/test/unit/spec/networkQualityMonitor/index.d.ts +0 -1
  466. package/dist/types/@webex/plugin-meetings/test/unit/spec/personal-meeting-room/personal-meeting-room.d.ts +0 -1
  467. package/dist/types/@webex/plugin-meetings/test/unit/spec/reachability/index.d.ts +0 -1
  468. package/dist/types/@webex/plugin-meetings/test/unit/spec/reconnection-manager/index.d.ts +0 -1
  469. package/dist/types/@webex/plugin-meetings/test/unit/spec/recording-controller/index.d.ts +0 -1
  470. package/dist/types/@webex/plugin-meetings/test/unit/spec/recording-controller/util.d.ts +0 -1
  471. package/dist/types/@webex/plugin-meetings/test/unit/spec/roap/index.d.ts +0 -1
  472. package/dist/types/@webex/plugin-meetings/test/unit/spec/roap/request.d.ts +0 -1
  473. package/dist/types/@webex/plugin-meetings/test/unit/spec/roap/turnDiscovery.d.ts +0 -1
  474. package/dist/types/@webex/plugin-meetings/test/unit/spec/stats-analyzer/index.d.ts +0 -1
  475. package/dist/types/@webex/plugin-meetings/test/utils/cmr.d.ts +0 -6
  476. package/dist/types/@webex/plugin-meetings/test/utils/constants.d.ts +0 -5
  477. package/dist/types/@webex/plugin-meetings/test/utils/testUtils.d.ts +0 -27
  478. package/dist/types/@webex/plugin-meetings/test/utils/webex-config.d.ts +0 -63
  479. package/dist/types/@webex/plugin-meetings/test/utils/webex-test-users.d.ts +0 -2
  480. package/dist/types/@webex/plugin-memberships/src/index.d.ts +0 -2
  481. package/dist/types/@webex/plugin-memberships/src/memberships.d.ts +0 -50
  482. package/dist/types/@webex/plugin-memberships/test/integration/spec/memberships.d.ts +0 -1
  483. package/dist/types/@webex/plugin-messages/src/index.d.ts +0 -2
  484. package/dist/types/@webex/plugin-messages/src/messages.d.ts +0 -58
  485. package/dist/types/@webex/plugin-messages/test/integration/spec/messages.d.ts +0 -1
  486. package/dist/types/@webex/plugin-people/src/config.d.ts +0 -9
  487. package/dist/types/@webex/plugin-people/src/index.d.ts +0 -1
  488. package/dist/types/@webex/plugin-people/src/people-batcher.d.ts +0 -6
  489. package/dist/types/@webex/plugin-people/src/people.d.ts +0 -30
  490. package/dist/types/@webex/plugin-people/test/integration/spec/people.d.ts +0 -1
  491. package/dist/types/@webex/plugin-people/test/unit/spec/people-batcher.d.ts +0 -1
  492. package/dist/types/@webex/plugin-people/test/unit/spec/people.d.ts +0 -1
  493. package/dist/types/@webex/plugin-rooms/src/index.d.ts +0 -2
  494. package/dist/types/@webex/plugin-rooms/src/rooms.d.ts +0 -41
  495. package/dist/types/@webex/plugin-rooms/test/integration/spec/rooms.d.ts +0 -1
  496. package/dist/types/@webex/plugin-team-memberships/src/index.d.ts +0 -2
  497. package/dist/types/@webex/plugin-team-memberships/src/team-memberships.d.ts +0 -49
  498. package/dist/types/@webex/plugin-team-memberships/test/integration/spec/team-memberships.d.ts +0 -1
  499. package/dist/types/@webex/plugin-teams/src/index.d.ts +0 -2
  500. package/dist/types/@webex/plugin-teams/src/teams.d.ts +0 -27
  501. package/dist/types/@webex/plugin-teams/test/integration/spec/teams.d.ts +0 -1
  502. package/dist/types/@webex/plugin-webhooks/src/index.d.ts +0 -2
  503. package/dist/types/@webex/plugin-webhooks/src/webhooks.d.ts +0 -48
  504. package/dist/types/@webex/plugin-webhooks/test/integration/spec/webhooks.d.ts +0 -1
  505. package/dist/types/@webex/recipe-private-web-client/src/config.d.ts +0 -10
  506. package/dist/types/@webex/recipe-private-web-client/src/index.d.ts +0 -8
  507. package/dist/types/@webex/storage-adapter-local-forage/src/index.d.ts +0 -35
  508. package/dist/types/@webex/storage-adapter-local-forage/test/unit/spec/storage-adapter-local-forage.d.ts +0 -1
  509. package/dist/types/@webex/storage-adapter-local-storage/src/index.d.ts +0 -66
  510. package/dist/types/@webex/storage-adapter-local-storage/test/unit/spec/storage-adapter-local-storage.d.ts +0 -1
  511. package/dist/types/@webex/storage-adapter-session-storage/src/index.d.ts +0 -66
  512. package/dist/types/@webex/storage-adapter-session-storage/test/unit/spec/storage-adapter-session-storage.d.ts +0 -1
  513. package/dist/types/@webex/storage-adapter-spec/src/index.d.ts +0 -1
  514. package/dist/types/@webex/test-helper-appid/src/create-user.browser.d.ts +0 -2
  515. package/dist/types/@webex/test-helper-appid/src/create-user.d.ts +0 -7
  516. package/dist/types/@webex/test-helper-appid/src/index.d.ts +0 -7
  517. package/dist/types/@webex/test-helper-appid/src/router.d.ts +0 -2
  518. package/dist/types/@webex/test-helper-automation/src/index.d.ts +0 -2
  519. package/dist/types/@webex/test-helper-automation/src/wd/accept-grant.d.ts +0 -1
  520. package/dist/types/@webex/test-helper-automation/src/wd/login.d.ts +0 -1
  521. package/dist/types/@webex/test-helper-automation/src/wd/print-logs.d.ts +0 -1
  522. package/dist/types/@webex/test-helper-automation/src/wd/submit-password.d.ts +0 -1
  523. package/dist/types/@webex/test-helper-chai/src/assertions/index.d.ts +0 -2
  524. package/dist/types/@webex/test-helper-chai/src/assertions/primitives.d.ts +0 -2
  525. package/dist/types/@webex/test-helper-chai/src/assertions/schemas.d.ts +0 -2
  526. package/dist/types/@webex/test-helper-chai/src/assertions/should-to-assert.d.ts +0 -2
  527. package/dist/types/@webex/test-helper-chai/src/index.d.ts +0 -2
  528. package/dist/types/@webex/test-helper-file/src/file.d.ts +0 -5
  529. package/dist/types/@webex/test-helper-file/src/file.shim.d.ts +0 -18
  530. package/dist/types/@webex/test-helper-file/src/index.d.ts +0 -2
  531. package/dist/types/@webex/test-helper-make-local-url/src/index.d.ts +0 -4
  532. package/dist/types/@webex/test-helper-mocha/src/index.d.ts +0 -29
  533. package/dist/types/@webex/test-helper-mock-web-socket/src/index.d.ts +0 -26
  534. package/dist/types/@webex/test-helper-mock-webex/src/index.d.ts +0 -7
  535. package/dist/types/@webex/test-helper-refresh-callback/src/index.d.ts +0 -10
  536. package/dist/types/@webex/test-helper-retry/src/index.d.ts +0 -15
  537. package/dist/types/@webex/test-helper-server/src/cookies.d.ts +0 -2
  538. package/dist/types/@webex/test-helper-server/src/files.d.ts +0 -2
  539. package/dist/types/@webex/test-helper-server/src/form.d.ts +0 -2
  540. package/dist/types/@webex/test-helper-server/src/index.d.ts +0 -1
  541. package/dist/types/@webex/test-helper-server/src/json.d.ts +0 -2
  542. package/dist/types/@webex/test-helper-server/src/reflect.d.ts +0 -10
  543. package/dist/types/@webex/test-helper-test-users/src/index.d.ts +0 -8
  544. package/dist/types/@webex/test-users/src/index.d.ts +0 -115
  545. package/dist/types/@webex/test-users/src/whistler.d.ts +0 -44
  546. package/dist/types/@webex/test-users/test/integration/spec/index.d.ts +0 -1
  547. package/dist/types/@webex/test-users/test/integration/spec/whistler.d.ts +0 -1
  548. package/dist/types/@webex/webex-core/src/config.d.ts +0 -39
  549. package/dist/types/@webex/webex-core/src/credentials-config.d.ts +0 -2
  550. package/dist/types/@webex/webex-core/src/index.d.ts +0 -24
  551. package/dist/types/@webex/webex-core/src/interceptors/auth.d.ts +0 -43
  552. package/dist/types/@webex/webex-core/src/interceptors/default-options.d.ts +0 -31
  553. package/dist/types/@webex/webex-core/src/interceptors/embargo.d.ts +0 -16
  554. package/dist/types/@webex/webex-core/src/interceptors/network-timing.d.ts +0 -30
  555. package/dist/types/@webex/webex-core/src/interceptors/payload-transformer.d.ts +0 -30
  556. package/dist/types/@webex/webex-core/src/interceptors/rate-limit.d.ts +0 -61
  557. package/dist/types/@webex/webex-core/src/interceptors/redirect.d.ts +0 -22
  558. package/dist/types/@webex/webex-core/src/interceptors/request-event.d.ts +0 -36
  559. package/dist/types/@webex/webex-core/src/interceptors/request-logger.d.ts +0 -22
  560. package/dist/types/@webex/webex-core/src/interceptors/request-timing.d.ts +0 -36
  561. package/dist/types/@webex/webex-core/src/interceptors/response-logger.d.ts +0 -30
  562. package/dist/types/@webex/webex-core/src/interceptors/user-agent.d.ts +0 -38
  563. package/dist/types/@webex/webex-core/src/interceptors/webex-tracking-id.d.ts +0 -26
  564. package/dist/types/@webex/webex-core/src/interceptors/webex-user-agent.d.ts +0 -22
  565. package/dist/types/@webex/webex-core/src/lib/batcher.d.ts +0 -6
  566. package/dist/types/@webex/webex-core/src/lib/credentials/credentials.d.ts +0 -5
  567. package/dist/types/@webex/webex-core/src/lib/credentials/grant-errors.d.ts +0 -57
  568. package/dist/types/@webex/webex-core/src/lib/credentials/index.d.ts +0 -4
  569. package/dist/types/@webex/webex-core/src/lib/credentials/scope.d.ts +0 -16
  570. package/dist/types/@webex/webex-core/src/lib/credentials/token-collection.d.ts +0 -2
  571. package/dist/types/@webex/webex-core/src/lib/credentials/token.d.ts +0 -5
  572. package/dist/types/@webex/webex-core/src/lib/page.d.ts +0 -76
  573. package/dist/types/@webex/webex-core/src/lib/services/constants.d.ts +0 -6
  574. package/dist/types/@webex/webex-core/src/lib/services/index.d.ts +0 -10
  575. package/dist/types/@webex/webex-core/src/lib/services/interceptors/server-error.d.ts +0 -16
  576. package/dist/types/@webex/webex-core/src/lib/services/interceptors/service.d.ts +0 -37
  577. package/dist/types/@webex/webex-core/src/lib/services/metrics.d.ts +0 -4
  578. package/dist/types/@webex/webex-core/src/lib/services/service-catalog.d.ts +0 -5
  579. package/dist/types/@webex/webex-core/src/lib/services/service-fed-ramp.d.ts +0 -5
  580. package/dist/types/@webex/webex-core/src/lib/services/service-host.d.ts +0 -217
  581. package/dist/types/@webex/webex-core/src/lib/services/service-registry.d.ts +0 -271
  582. package/dist/types/@webex/webex-core/src/lib/services/service-state.d.ts +0 -46
  583. package/dist/types/@webex/webex-core/src/lib/services/service-url.d.ts +0 -5
  584. package/dist/types/@webex/webex-core/src/lib/services/services.d.ts +0 -5
  585. package/dist/types/@webex/webex-core/src/lib/stateless-webex-plugin.d.ts +0 -48
  586. package/dist/types/@webex/webex-core/src/lib/storage/decorators.d.ts +0 -15
  587. package/dist/types/@webex/webex-core/src/lib/storage/errors.d.ts +0 -10
  588. package/dist/types/@webex/webex-core/src/lib/storage/index.d.ts +0 -5
  589. package/dist/types/@webex/webex-core/src/lib/storage/make-webex-plugin-store.d.ts +0 -8
  590. package/dist/types/@webex/webex-core/src/lib/storage/make-webex-store.d.ts +0 -48
  591. package/dist/types/@webex/webex-core/src/lib/storage/memory-store-adapter.d.ts +0 -18
  592. package/dist/types/@webex/webex-core/src/lib/webex-core-plugin-mixin.d.ts +0 -8
  593. package/dist/types/@webex/webex-core/src/lib/webex-http-error.d.ts +0 -12
  594. package/dist/types/@webex/webex-core/src/lib/webex-internal-core-plugin-mixin.d.ts +0 -8
  595. package/dist/types/@webex/webex-core/src/lib/webex-plugin.d.ts +0 -5
  596. package/dist/types/@webex/webex-core/src/plugins/logger.d.ts +0 -2
  597. package/dist/types/@webex/webex-core/src/webex-core.d.ts +0 -31
  598. package/dist/types/@webex/webex-core/src/webex-internal-core.d.ts +0 -7
  599. package/dist/types/@webex/webex-core/test/integration/spec/credentials/credentials.d.ts +0 -1
  600. package/dist/types/@webex/webex-core/test/integration/spec/credentials/token.d.ts +0 -1
  601. package/dist/types/@webex/webex-core/test/integration/spec/services/service-catalog.d.ts +0 -1
  602. package/dist/types/@webex/webex-core/test/integration/spec/services/services.d.ts +0 -1
  603. package/dist/types/@webex/webex-core/test/integration/spec/webex-core.d.ts +0 -1
  604. package/dist/types/@webex/webex-core/test/unit/spec/_setup.d.ts +0 -1
  605. package/dist/types/@webex/webex-core/test/unit/spec/credentials/credentials.d.ts +0 -1
  606. package/dist/types/@webex/webex-core/test/unit/spec/credentials/token.d.ts +0 -1
  607. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/auth.d.ts +0 -1
  608. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/default-options.d.ts +0 -1
  609. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/embargo.d.ts +0 -1
  610. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/network-timing.d.ts +0 -1
  611. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/payload-transformer.d.ts +0 -1
  612. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/rate-limit.d.ts +0 -1
  613. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/redirect.d.ts +0 -1
  614. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/request-timing.d.ts +0 -1
  615. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/user-agent.d.ts +0 -1
  616. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/webex-tracking-id.d.ts +0 -1
  617. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/webex-user-agent.d.ts +0 -1
  618. package/dist/types/@webex/webex-core/test/unit/spec/lib/batcher.d.ts +0 -1
  619. package/dist/types/@webex/webex-core/test/unit/spec/lib/page.d.ts +0 -1
  620. package/dist/types/@webex/webex-core/test/unit/spec/lib/webex-plugin.d.ts +0 -1
  621. package/dist/types/@webex/webex-core/test/unit/spec/services/interceptors/server-error.d.ts +0 -1
  622. package/dist/types/@webex/webex-core/test/unit/spec/services/interceptors/service.d.ts +0 -1
  623. package/dist/types/@webex/webex-core/test/unit/spec/services/service-catalog.d.ts +0 -1
  624. package/dist/types/@webex/webex-core/test/unit/spec/services/service-host.d.ts +0 -1
  625. package/dist/types/@webex/webex-core/test/unit/spec/services/service-registry.d.ts +0 -1
  626. package/dist/types/@webex/webex-core/test/unit/spec/services/service-state.d.ts +0 -1
  627. package/dist/types/@webex/webex-core/test/unit/spec/services/service-url.d.ts +0 -1
  628. package/dist/types/@webex/webex-core/test/unit/spec/services/services.d.ts +0 -1
  629. package/dist/types/@webex/webex-core/test/unit/spec/storage/persist.d.ts +0 -1
  630. package/dist/types/@webex/webex-core/test/unit/spec/storage/storage-adapter.d.ts +0 -1
  631. package/dist/types/@webex/webex-core/test/unit/spec/storage/wait-for-value.d.ts +0 -1
  632. package/dist/types/@webex/webex-core/test/unit/spec/webex-core.d.ts +0 -1
  633. package/dist/types/@webex/webex-core/test/unit/spec/webex-internal-core.d.ts +0 -1
  634. package/dist/types/@webex/webrtc/src/analyzer.d.ts +0 -0
  635. package/dist/types/@webex/webrtc/src/constants.d.ts +0 -0
  636. package/dist/types/@webex/webrtc/src/extractor.d.ts +0 -0
  637. package/dist/types/@webex/webrtc/src/generator.d.ts +0 -0
  638. package/dist/types/@webex/webrtc/src/history.d.ts +0 -0
  639. package/dist/types/@webex/webrtc/src/ice.d.ts +0 -0
  640. package/dist/types/@webex/webrtc/src/index.d.ts +0 -31
  641. package/dist/types/@webex/webrtc/src/logger.d.ts +0 -0
  642. package/dist/types/@webex/webrtc/src/parser.d.ts +0 -0
  643. package/dist/types/@webex/webrtc/src/stats.d.ts +0 -0
  644. package/dist/types/@webex/webrtc/src/transformer.d.ts +0 -0
  645. package/dist/types/@webex/webrtc/src/validator.d.ts +0 -0
  646. package/dist/types/@webex/xunit-with-logs/src/index.d.ts +0 -43
  647. package/dist/types/webex/browser.d.ts +0 -5
  648. package/dist/types/webex/env.d.ts +0 -2
  649. package/dist/types/webex/src/_setup.d.ts +0 -1
  650. package/dist/types/webex/src/config-storage.d.ts +0 -5
  651. package/dist/types/webex/src/config-storage.shim.d.ts +0 -5
  652. package/dist/types/webex/src/config.d.ts +0 -17
  653. package/dist/types/webex/src/index.d.ts +0 -11
  654. package/dist/types/webex/src/webex.d.ts +0 -9
  655. package/dist/types/webex/test/integration/spec/commonjs.d.ts +0 -1
  656. package/dist/types/webex/test/integration/spec/env.d.ts +0 -1
  657. package/dist/types/webex/test/integration/spec/init.d.ts +0 -1
  658. package/dist/types/webex/test/integration/spec/request.d.ts +0 -1
  659. package/dist/types/webex/test/unit/spec/webex.d.ts +0 -1
  660. package/dist/types/webex/umd/webex.min.d.ts +0 -2
package/.eslintrc.js ADDED
@@ -0,0 +1,6 @@
1
+ const config = {
2
+ root: true,
3
+ extends: ['@webex/eslint-config-legacy'],
4
+ };
5
+
6
+ module.exports = config;
@@ -0,0 +1,3 @@
1
+ const babelConfigLegacy = require('@webex/babel-config-legacy');
2
+
3
+ module.exports = babelConfigLegacy;
@@ -1 +1 @@
1
- {"version":3,"names":["pattern","tpl","template","test","value","build","ASSERTION","literal","replace","l","f","i","booleanLiteral","numericLiteral","stringLiteral","Error"],"sources":["literal.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport template from '@babel/template';\nimport {booleanLiteral, numericLiteral, stringLiteral} from '@babel/types';\n\nconst pattern = /^\\s*?=>( async)?\\s*/;\n\nconst tpl = template(`\n (function() {\n var assert = require('assert');\n assert.equal(result, ASSERTION);\n })();\n`);\n\n/**\n * Indicates whether the specified value defines a literal assertion\n * @param {string} value\n * @returns {Boolean}\n */\nexport function test(value) {\n return pattern.test(value);\n}\n\n/**\n * Builds a literal assertion\n * @param {string} value\n * @returns {ast}\n */\nexport function build(value) {\n return tpl({\n ASSERTION: literal(value.replace(pattern, '')),\n });\n}\n\n/**\n * Coerces a string into a type\n * @param {string} l\n * @returns {Literal}\n */\nfunction literal(l) {\n /* eslint complexity: [0] */\n // eslint-disable-next-line prefer-const\n let f;\n let i;\n\n switch (typeof l) {\n case 'boolean':\n return booleanLiteral(l);\n case 'number':\n return numericLiteral(l);\n case 'string':\n if (l === 'true') {\n return booleanLiteral(true);\n }\n if (l === 'false') {\n return booleanLiteral(false);\n }\n i = parseInt(l, 10);\n if (!Number.isNaN(i)) {\n return numericLiteral(i);\n }\n f = parseFloat(l);\n if (!Number.isNaN(f)) {\n return numericLiteral(f);\n }\n\n return stringLiteral(l);\n default:\n throw new Error('Unsupported literal type');\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAIA;AACA;AALA;AACA;AACA;;AAKA,IAAMA,OAAO,GAAG,qBAAqB;AAErC,IAAMC,GAAG,GAAG,IAAAC,iBAAQ,4GAKlB;;AAEF;AACA;AACA;AACA;AACA;AACO,SAASC,IAAI,CAACC,KAAK,EAAE;EAC1B,OAAOJ,OAAO,CAACG,IAAI,CAACC,KAAK,CAAC;AAC5B;;AAEA;AACA;AACA;AACA;AACA;AACO,SAASC,KAAK,CAACD,KAAK,EAAE;EAC3B,OAAOH,GAAG,CAAC;IACTK,SAAS,EAAEC,OAAO,CAACH,KAAK,CAACI,OAAO,CAACR,OAAO,EAAE,EAAE,CAAC;EAC/C,CAAC,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASO,OAAO,CAACE,CAAC,EAAE;EAClB;EACA;EACA,IAAIC,CAAC;EACL,IAAIC,CAAC;EAEL,8BAAeF,CAAC;IACd,KAAK,SAAS;MACZ,OAAO,IAAAG,qBAAc,EAACH,CAAC,CAAC;IAC1B,KAAK,QAAQ;MACX,OAAO,IAAAI,qBAAc,EAACJ,CAAC,CAAC;IAC1B,KAAK,QAAQ;MACX,IAAIA,CAAC,KAAK,MAAM,EAAE;QAChB,OAAO,IAAAG,qBAAc,EAAC,IAAI,CAAC;MAC7B;MACA,IAAIH,CAAC,KAAK,OAAO,EAAE;QACjB,OAAO,IAAAG,qBAAc,EAAC,KAAK,CAAC;MAC9B;MACAD,CAAC,GAAG,wBAASF,CAAC,EAAE,EAAE,CAAC;MACnB,IAAI,CAAC,oBAAaE,CAAC,CAAC,EAAE;QACpB,OAAO,IAAAE,qBAAc,EAACF,CAAC,CAAC;MAC1B;MACAD,CAAC,GAAG,0BAAWD,CAAC,CAAC;MACjB,IAAI,CAAC,oBAAaC,CAAC,CAAC,EAAE;QACpB,OAAO,IAAAG,qBAAc,EAACH,CAAC,CAAC;MAC1B;MAEA,OAAO,IAAAI,oBAAa,EAACL,CAAC,CAAC;IACzB;MACE,MAAM,IAAIM,KAAK,CAAC,0BAA0B,CAAC;EAAC;AAElD"}
1
+ {"version":3,"names":["_template","_interopRequireDefault","require","_types","pattern","tpl","template","test","value","build","ASSERTION","literal","replace","l","f","i","_typeof2","default","booleanLiteral","numericLiteral","_parseInt2","_isNan","_parseFloat2","stringLiteral","Error"],"sources":["literal.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport template from '@babel/template';\nimport {booleanLiteral, numericLiteral, stringLiteral} from '@babel/types';\n\nconst pattern = /^\\s*?=>( async)?\\s*/;\n\nconst tpl = template(`\n (function() {\n var assert = require('assert');\n assert.equal(result, ASSERTION);\n })();\n`);\n\n/**\n * Indicates whether the specified value defines a literal assertion\n * @param {string} value\n * @returns {Boolean}\n */\nexport function test(value) {\n return pattern.test(value);\n}\n\n/**\n * Builds a literal assertion\n * @param {string} value\n * @returns {ast}\n */\nexport function build(value) {\n return tpl({\n ASSERTION: literal(value.replace(pattern, '')),\n });\n}\n\n/**\n * Coerces a string into a type\n * @param {string} l\n * @returns {Literal}\n */\nfunction literal(l) {\n /* eslint complexity: [0] */\n // eslint-disable-next-line prefer-const\n let f;\n let i;\n\n switch (typeof l) {\n case 'boolean':\n return booleanLiteral(l);\n case 'number':\n return numericLiteral(l);\n case 'string':\n if (l === 'true') {\n return booleanLiteral(true);\n }\n if (l === 'false') {\n return booleanLiteral(false);\n }\n i = parseInt(l, 10);\n if (!Number.isNaN(i)) {\n return numericLiteral(i);\n }\n f = parseFloat(l);\n if (!Number.isNaN(f)) {\n return numericLiteral(f);\n }\n\n return stringLiteral(l);\n default:\n throw new Error('Unsupported literal type');\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAIA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AALA;AACA;AACA;;AAKA,IAAME,OAAO,GAAG,qBAAqB;AAErC,IAAMC,GAAG,GAAG,IAAAC,iBAAQ,2GAKnB,CAAC;;AAEF;AACA;AACA;AACA;AACA;AACO,SAASC,IAAIA,CAACC,KAAK,EAAE;EAC1B,OAAOJ,OAAO,CAACG,IAAI,CAACC,KAAK,CAAC;AAC5B;;AAEA;AACA;AACA;AACA;AACA;AACO,SAASC,KAAKA,CAACD,KAAK,EAAE;EAC3B,OAAOH,GAAG,CAAC;IACTK,SAAS,EAAEC,OAAO,CAACH,KAAK,CAACI,OAAO,CAACR,OAAO,EAAE,EAAE,CAAC;EAC/C,CAAC,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASO,OAAOA,CAACE,CAAC,EAAE;EAClB;EACA;EACA,IAAIC,CAAC;EACL,IAAIC,CAAC;EAEL,YAAAC,QAAA,CAAAC,OAAA,EAAeJ,CAAC;IACd,KAAK,SAAS;MACZ,OAAO,IAAAK,qBAAc,EAACL,CAAC,CAAC;IAC1B,KAAK,QAAQ;MACX,OAAO,IAAAM,qBAAc,EAACN,CAAC,CAAC;IAC1B,KAAK,QAAQ;MACX,IAAIA,CAAC,KAAK,MAAM,EAAE;QAChB,OAAO,IAAAK,qBAAc,EAAC,IAAI,CAAC;MAC7B;MACA,IAAIL,CAAC,KAAK,OAAO,EAAE;QACjB,OAAO,IAAAK,qBAAc,EAAC,KAAK,CAAC;MAC9B;MACAH,CAAC,GAAG,IAAAK,UAAA,CAAAH,OAAA,EAASJ,CAAC,EAAE,EAAE,CAAC;MACnB,IAAI,CAAC,IAAAQ,MAAA,CAAAJ,OAAA,EAAaF,CAAC,CAAC,EAAE;QACpB,OAAO,IAAAI,qBAAc,EAACJ,CAAC,CAAC;MAC1B;MACAD,CAAC,GAAG,IAAAQ,YAAA,CAAAL,OAAA,EAAWJ,CAAC,CAAC;MACjB,IAAI,CAAC,IAAAQ,MAAA,CAAAJ,OAAA,EAAaH,CAAC,CAAC,EAAE;QACpB,OAAO,IAAAK,qBAAc,EAACL,CAAC,CAAC;MAC1B;MAEA,OAAO,IAAAS,oBAAa,EAACV,CAAC,CAAC;IACzB;MACE,MAAM,IAAIW,KAAK,CAAC,0BAA0B,CAAC;EAC/C;AACF"}
package/dist/extract.js CHANGED
@@ -24,7 +24,6 @@ var _parse = _interopRequireDefault(require("./parse"));
24
24
  * @param {string} options.filename
25
25
  * @param {string} options.type
26
26
  */
27
-
28
27
  /**
29
28
  * Extracts comment blocks from the source code in the specified file
30
29
  * @param {transformCallback} transform
@@ -1 +1 @@
1
- {"version":3,"names":["extract","transform","filename","code","fs","readFileSync","encoding","ast","parse","sourceFilename","results","done","traverse","enter","path","node","leadingComments","filter","isJSDocComment","forEach","comment","result","doctrine","value","unwrap","sloppy","recoverable","lineNumbers","tags","tag","title","push","description","name","getNodeName","loc","type","Program","exit","isProgram","pushContainer","id","key","Error","asterisks","match","startsWith","endsWith","length"],"sources":["extract.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport fs from 'fs';\n\nimport traverse from '@babel/traverse';\nimport doctrine from 'doctrine';\nimport {isProgram} from '@babel/types';\n\nimport parse from './parse';\n/**\n * transform function which operates on each discovered example block\n * @callback transformCallback\n * @param {Object} options\n * @param {ast} options.comment\n * @param {string} options.name\n * @param {string} options.filename\n * @param {string} options.type\n */\n\n/**\n * Extracts comment blocks from the source code in the specified file\n * @param {transformCallback} transform\n * @param {string} filename\n * @returns {Array<ast>}\n */\nexport default function extract(transform, filename) {\n // eslint-disable-next-line no-sync\n const code = fs.readFileSync(filename, {encoding: 'utf8'});\n\n const ast = parse(code, {sourceFilename: filename});\n\n const results = [];\n\n let done = false;\n\n traverse(ast, {\n enter(path) {\n if (path.node.leadingComments) {\n path.node.leadingComments.filter(isJSDocComment).forEach((comment) => {\n const result = doctrine.parse(comment.value, {\n unwrap: true,\n sloppy: true,\n recoverable: true,\n lineNumbers: true,\n });\n\n if (result.tags) {\n result.tags.forEach((tag) => {\n if (tag.title === 'example') {\n results.push(\n transform({\n comment: tag.description,\n name: getNodeName(path.node),\n filename: path.node.loc.filename,\n type: path.node.type,\n })\n );\n }\n });\n }\n });\n }\n },\n Program: {\n exit(path) {\n if (isProgram(path)) {\n if (done) {\n return;\n }\n path.pushContainer('body', results);\n done = true;\n }\n },\n },\n });\n\n return ast;\n}\n\n/**\n * Extracts the name from the specified node\n * @param {Node} node\n * @returns {string}\n */\nfunction getNodeName(node) {\n if (node.id) {\n return node.id.name;\n }\n\n if (node.key) {\n return node.key.name;\n }\n\n throw new Error('Could not find name for node');\n}\n/**\n * Indicates if the specified comment block is a doc block\n * @param {CommentBlock} comment\n * @returns {Boolean}\n */\nfunction isJSDocComment(comment) {\n const asterisks = comment.value.match(/^(\\*+)/);\n\n if (comment.value.startsWith('/*') && comment.value.endsWith('*/')) {\n return false;\n }\n\n // eslint-disable-next-line\n return (\n (comment.type === 'CommentBlock' || // estree\n // eslint-disable-next-line\n comment.type === `Block`) && // get-comments / traditional\n // eslint-disable-next-line\n asterisks &&\n asterisks[1].length === 1\n );\n}\n"],"mappings":"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"}
1
+ {"version":3,"names":["_fs","_interopRequireDefault","require","_traverse","_doctrine","_types","_parse","extract","transform","filename","code","fs","readFileSync","encoding","ast","parse","sourceFilename","results","done","traverse","enter","path","node","leadingComments","filter","isJSDocComment","forEach","comment","result","doctrine","value","unwrap","sloppy","recoverable","lineNumbers","tags","tag","title","push","description","name","getNodeName","loc","type","Program","exit","isProgram","pushContainer","id","key","Error","asterisks","match","startsWith","endsWith","length"],"sources":["extract.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport fs from 'fs';\n\nimport traverse from '@babel/traverse';\nimport doctrine from 'doctrine';\nimport {isProgram} from '@babel/types';\n\nimport parse from './parse';\n/**\n * transform function which operates on each discovered example block\n * @callback transformCallback\n * @param {Object} options\n * @param {ast} options.comment\n * @param {string} options.name\n * @param {string} options.filename\n * @param {string} options.type\n */\n\n/**\n * Extracts comment blocks from the source code in the specified file\n * @param {transformCallback} transform\n * @param {string} filename\n * @returns {Array<ast>}\n */\nexport default function extract(transform, filename) {\n // eslint-disable-next-line no-sync\n const code = fs.readFileSync(filename, {encoding: 'utf8'});\n\n const ast = parse(code, {sourceFilename: filename});\n\n const results = [];\n\n let done = false;\n\n traverse(ast, {\n enter(path) {\n if (path.node.leadingComments) {\n path.node.leadingComments.filter(isJSDocComment).forEach((comment) => {\n const result = doctrine.parse(comment.value, {\n unwrap: true,\n sloppy: true,\n recoverable: true,\n lineNumbers: true,\n });\n\n if (result.tags) {\n result.tags.forEach((tag) => {\n if (tag.title === 'example') {\n results.push(\n transform({\n comment: tag.description,\n name: getNodeName(path.node),\n filename: path.node.loc.filename,\n type: path.node.type,\n })\n );\n }\n });\n }\n });\n }\n },\n Program: {\n exit(path) {\n if (isProgram(path)) {\n if (done) {\n return;\n }\n path.pushContainer('body', results);\n done = true;\n }\n },\n },\n });\n\n return ast;\n}\n\n/**\n * Extracts the name from the specified node\n * @param {Node} node\n * @returns {string}\n */\nfunction getNodeName(node) {\n if (node.id) {\n return node.id.name;\n }\n\n if (node.key) {\n return node.key.name;\n }\n\n throw new Error('Could not find name for node');\n}\n/**\n * Indicates if the specified comment block is a doc block\n * @param {CommentBlock} comment\n * @returns {Boolean}\n */\nfunction isJSDocComment(comment) {\n const asterisks = comment.value.match(/^(\\*+)/);\n\n if (comment.value.startsWith('/*') && comment.value.endsWith('*/')) {\n return false;\n }\n\n // eslint-disable-next-line\n return (\n (comment.type === 'CommentBlock' || // estree\n // eslint-disable-next-line\n comment.type === `Block`) && // get-comments / traditional\n // eslint-disable-next-line\n asterisks &&\n asterisks[1].length === 1\n );\n}\n"],"mappings":"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"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["isNodeModule","filename","includes","inject","module","generate","extract","transform","compact","quotes","code","process","env","JSDOCTRINETEST_VERBOSE","console","log","_compile","enableSpecInjection","dir","load","require","extensions","loadWithSpecs","m","path","dirname"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* eslint require-jsdoc: [0] */\n/* eslint no-console: [0] */\n\nimport path from 'path';\n\nimport generate from '@babel/generator';\n\nimport extract from './extract';\nimport transform from './transform';\n\nfunction isNodeModule(filename) {\n return filename.includes('node_modules') && !filename.includes('packages/node_modules');\n}\n\nfunction inject(module, filename) {\n const {code} = generate(extract(transform, filename), {\n compact: false,\n quotes: 'single',\n });\n\n if (process.env.JSDOCTRINETEST_VERBOSE) {\n console.log(filename);\n console.log(code);\n console.log();\n }\n module._compile(code, filename);\n}\n\nfunction enableSpecInjection() {\n let dir;\n const load = require.extensions['.js'];\n\n require.extensions['.js'] = function loadWithSpecs(m, filename) {\n if (isNodeModule(filename)) {\n return load(m, filename);\n }\n // this is really janky, but so far seems to properly ensure we only load\n // files in the directories specified to mocha\n if (!dir) {\n dir = path.dirname(filename);\n }\n\n if (!filename.includes(dir)) {\n return load(m, filename);\n }\n\n return inject(m, filename);\n };\n}\n\nenableSpecInjection();\n"],"mappings":";;;AAOA;AAEA;AAEA;AACA;AAZA;AACA;AACA;;AAEA;AACA;;AASA,SAASA,YAAY,CAACC,QAAQ,EAAE;EAC9B,OAAOA,QAAQ,CAACC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAACD,QAAQ,CAACC,QAAQ,CAAC,uBAAuB,CAAC;AACzF;AAEA,SAASC,MAAM,CAACC,MAAM,EAAEH,QAAQ,EAAE;EAChC,gBAAe,IAAAI,kBAAQ,EAAC,IAAAC,gBAAO,EAACC,kBAAS,EAAEN,QAAQ,CAAC,EAAE;MACpDO,OAAO,EAAE,KAAK;MACdC,MAAM,EAAE;IACV,CAAC,CAAC;IAHKC,IAAI,aAAJA,IAAI;EAKX,IAAIC,OAAO,CAACC,GAAG,CAACC,sBAAsB,EAAE;IACtCC,OAAO,CAACC,GAAG,CAACd,QAAQ,CAAC;IACrBa,OAAO,CAACC,GAAG,CAACL,IAAI,CAAC;IACjBI,OAAO,CAACC,GAAG,EAAE;EACf;EACAX,MAAM,CAACY,QAAQ,CAACN,IAAI,EAAET,QAAQ,CAAC;AACjC;AAEA,SAASgB,mBAAmB,GAAG;EAC7B,IAAIC,GAAG;EACP,IAAMC,IAAI,GAAGC,OAAO,CAACC,UAAU,CAAC,KAAK,CAAC;EAEtCD,OAAO,CAACC,UAAU,CAAC,KAAK,CAAC,GAAG,SAASC,aAAa,CAACC,CAAC,EAAEtB,QAAQ,EAAE;IAC9D,IAAID,YAAY,CAACC,QAAQ,CAAC,EAAE;MAC1B,OAAOkB,IAAI,CAACI,CAAC,EAAEtB,QAAQ,CAAC;IAC1B;IACA;IACA;IACA,IAAI,CAACiB,GAAG,EAAE;MACRA,GAAG,GAAGM,aAAI,CAACC,OAAO,CAACxB,QAAQ,CAAC;IAC9B;IAEA,IAAI,CAACA,QAAQ,CAACC,QAAQ,CAACgB,GAAG,CAAC,EAAE;MAC3B,OAAOC,IAAI,CAACI,CAAC,EAAEtB,QAAQ,CAAC;IAC1B;IAEA,OAAOE,MAAM,CAACoB,CAAC,EAAEtB,QAAQ,CAAC;EAC5B,CAAC;AACH;AAEAgB,mBAAmB,EAAE"}
1
+ {"version":3,"names":["_path","_interopRequireDefault","require","_generator","_extract","_transform","isNodeModule","filename","includes","inject","module","_generate","generate","extract","transform","compact","quotes","code","process","env","JSDOCTRINETEST_VERBOSE","console","log","_compile","enableSpecInjection","dir","load","extensions","loadWithSpecs","m","path","dirname"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* eslint require-jsdoc: [0] */\n/* eslint no-console: [0] */\n\nimport path from 'path';\n\nimport generate from '@babel/generator';\n\nimport extract from './extract';\nimport transform from './transform';\n\nfunction isNodeModule(filename) {\n return filename.includes('node_modules') && !filename.includes('packages/node_modules');\n}\n\nfunction inject(module, filename) {\n const {code} = generate(extract(transform, filename), {\n compact: false,\n quotes: 'single',\n });\n\n if (process.env.JSDOCTRINETEST_VERBOSE) {\n console.log(filename);\n console.log(code);\n console.log();\n }\n module._compile(code, filename);\n}\n\nfunction enableSpecInjection() {\n let dir;\n const load = require.extensions['.js'];\n\n require.extensions['.js'] = function loadWithSpecs(m, filename) {\n if (isNodeModule(filename)) {\n return load(m, filename);\n }\n // this is really janky, but so far seems to properly ensure we only load\n // files in the directories specified to mocha\n if (!dir) {\n dir = path.dirname(filename);\n }\n\n if (!filename.includes(dir)) {\n return load(m, filename);\n }\n\n return inject(m, filename);\n };\n}\n\nenableSpecInjection();\n"],"mappings":";;;AAOA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAZA;AACA;AACA;;AAEA;AACA;;AASA,SAASI,YAAYA,CAACC,QAAQ,EAAE;EAC9B,OAAOA,QAAQ,CAACC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAACD,QAAQ,CAACC,QAAQ,CAAC,uBAAuB,CAAC;AACzF;AAEA,SAASC,MAAMA,CAACC,MAAM,EAAEH,QAAQ,EAAE;EAChC,IAAAI,SAAA,GAAe,IAAAC,kBAAQ,EAAC,IAAAC,gBAAO,EAACC,kBAAS,EAAEP,QAAQ,CAAC,EAAE;MACpDQ,OAAO,EAAE,KAAK;MACdC,MAAM,EAAE;IACV,CAAC,CAAC;IAHKC,IAAI,GAAAN,SAAA,CAAJM,IAAI;EAKX,IAAIC,OAAO,CAACC,GAAG,CAACC,sBAAsB,EAAE;IACtCC,OAAO,CAACC,GAAG,CAACf,QAAQ,CAAC;IACrBc,OAAO,CAACC,GAAG,CAACL,IAAI,CAAC;IACjBI,OAAO,CAACC,GAAG,CAAC,CAAC;EACf;EACAZ,MAAM,CAACa,QAAQ,CAACN,IAAI,EAAEV,QAAQ,CAAC;AACjC;AAEA,SAASiB,mBAAmBA,CAAA,EAAG;EAC7B,IAAIC,GAAG;EACP,IAAMC,IAAI,GAAGxB,OAAO,CAACyB,UAAU,CAAC,KAAK,CAAC;EAEtCzB,OAAO,CAACyB,UAAU,CAAC,KAAK,CAAC,GAAG,SAASC,aAAaA,CAACC,CAAC,EAAEtB,QAAQ,EAAE;IAC9D,IAAID,YAAY,CAACC,QAAQ,CAAC,EAAE;MAC1B,OAAOmB,IAAI,CAACG,CAAC,EAAEtB,QAAQ,CAAC;IAC1B;IACA;IACA;IACA,IAAI,CAACkB,GAAG,EAAE;MACRA,GAAG,GAAGK,aAAI,CAACC,OAAO,CAACxB,QAAQ,CAAC;IAC9B;IAEA,IAAI,CAACA,QAAQ,CAACC,QAAQ,CAACiB,GAAG,CAAC,EAAE;MAC3B,OAAOC,IAAI,CAACG,CAAC,EAAEtB,QAAQ,CAAC;IAC1B;IAEA,OAAOE,MAAM,CAACoB,CAAC,EAAEtB,QAAQ,CAAC;EAC5B,CAAC;AACH;AAEAiB,mBAAmB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["makeDescribeBlock","template","makeItBlock","generateSpec","a","itLine","name","type","toLowerCase","includes","d","DESCRIBED_THING","stringLiteral","filename","IT_BLOCK","DOES_A_THING","STATEMENTS","testCase"],"sources":["mocha-template.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {stringLiteral} from '@babel/types';\nimport template from '@babel/template';\n\nconst makeDescribeBlock = template(`\n describe(DESCRIBED_THING, function() {\n IT_BLOCK\n });\n`);\n\nconst makeItBlock = template(`\n it(DOES_A_THING, function() {\n STATEMENTS\n });\n`);\n\n/**\n * Wraps a test case in a Mocha it-block\n * @param {Object} a\n * @param {string} a.name\n * @param {Object} a.testCase\n * @returns {[type]}\n */\nexport default function generateSpec(a) {\n let itLine = a.name;\n\n if (a.type.toLowerCase().includes('function')) {\n itLine += '()';\n }\n\n const d = makeDescribeBlock({\n DESCRIBED_THING: stringLiteral(a.filename),\n IT_BLOCK: makeItBlock({\n DOES_A_THING: stringLiteral(itLine),\n STATEMENTS: a.testCase,\n }),\n });\n\n return d;\n}\n"],"mappings":";;;;;;;;AAIA;AACA;AALA;AACA;AACA;;AAKA,IAAMA,iBAAiB,GAAG,IAAAC,iBAAQ,sEAIhC;AAEF,IAAMC,WAAW,GAAG,IAAAD,iBAAQ,+DAI1B;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASE,YAAY,CAACC,CAAC,EAAE;EACtC,IAAIC,MAAM,GAAGD,CAAC,CAACE,IAAI;EAEnB,IAAIF,CAAC,CAACG,IAAI,CAACC,WAAW,EAAE,CAACC,QAAQ,CAAC,UAAU,CAAC,EAAE;IAC7CJ,MAAM,IAAI,IAAI;EAChB;EAEA,IAAMK,CAAC,GAAGV,iBAAiB,CAAC;IAC1BW,eAAe,EAAE,IAAAC,oBAAa,EAACR,CAAC,CAACS,QAAQ,CAAC;IAC1CC,QAAQ,EAAEZ,WAAW,CAAC;MACpBa,YAAY,EAAE,IAAAH,oBAAa,EAACP,MAAM,CAAC;MACnCW,UAAU,EAAEZ,CAAC,CAACa;IAChB,CAAC;EACH,CAAC,CAAC;EAEF,OAAOP,CAAC;AACV"}
1
+ {"version":3,"names":["_types","require","_template","_interopRequireDefault","makeDescribeBlock","template","makeItBlock","generateSpec","a","itLine","name","type","toLowerCase","includes","d","DESCRIBED_THING","stringLiteral","filename","IT_BLOCK","DOES_A_THING","STATEMENTS","testCase"],"sources":["mocha-template.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {stringLiteral} from '@babel/types';\nimport template from '@babel/template';\n\nconst makeDescribeBlock = template(`\n describe(DESCRIBED_THING, function() {\n IT_BLOCK\n });\n`);\n\nconst makeItBlock = template(`\n it(DOES_A_THING, function() {\n STATEMENTS\n });\n`);\n\n/**\n * Wraps a test case in a Mocha it-block\n * @param {Object} a\n * @param {string} a.name\n * @param {Object} a.testCase\n * @returns {[type]}\n */\nexport default function generateSpec(a) {\n let itLine = a.name;\n\n if (a.type.toLowerCase().includes('function')) {\n itLine += '()';\n }\n\n const d = makeDescribeBlock({\n DESCRIBED_THING: stringLiteral(a.filename),\n IT_BLOCK: makeItBlock({\n DOES_A_THING: stringLiteral(itLine),\n STATEMENTS: a.testCase,\n }),\n });\n\n return d;\n}\n"],"mappings":";;;;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AALA;AACA;AACA;;AAKA,IAAMG,iBAAiB,GAAG,IAAAC,iBAAQ,qEAIjC,CAAC;AAEF,IAAMC,WAAW,GAAG,IAAAD,iBAAQ,8DAI3B,CAAC;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASE,YAAYA,CAACC,CAAC,EAAE;EACtC,IAAIC,MAAM,GAAGD,CAAC,CAACE,IAAI;EAEnB,IAAIF,CAAC,CAACG,IAAI,CAACC,WAAW,CAAC,CAAC,CAACC,QAAQ,CAAC,UAAU,CAAC,EAAE;IAC7CJ,MAAM,IAAI,IAAI;EAChB;EAEA,IAAMK,CAAC,GAAGV,iBAAiB,CAAC;IAC1BW,eAAe,EAAE,IAAAC,oBAAa,EAACR,CAAC,CAACS,QAAQ,CAAC;IAC1CC,QAAQ,EAAEZ,WAAW,CAAC;MACpBa,YAAY,EAAE,IAAAH,oBAAa,EAACP,MAAM,CAAC;MACnCW,UAAU,EAAEZ,CAAC,CAACa;IAChB,CAAC;EACH,CAAC,CAAC;EAEF,OAAOP,CAAC;AACV"}
package/dist/parse.js CHANGED
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
2
 
3
3
  var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
4
- var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
5
4
  _Object$defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.default = parse;
9
- var _defaults2 = _interopRequireDefault(require("lodash/defaults"));
10
8
  var _babylon = require("babylon");
9
+ var _lodash = require("lodash");
11
10
  /*!
12
11
  * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
13
12
  */
@@ -19,7 +18,7 @@ var _babylon = require("babylon");
19
18
  * @returns {ast}
20
19
  */
21
20
  function parse(code, options) {
22
- return (0, _babylon.parse)(code, (0, _defaults2.default)(options, {
21
+ return (0, _babylon.parse)(code, (0, _lodash.defaults)(options, {
23
22
  allowImportExportEverywhere: true,
24
23
  sourceType: 'module',
25
24
  plugins: ['jsx', 'flow', 'asyncFunctions', 'classConstructorCall', 'doExpressions', 'trailingFunctionCommas', 'objectRestSpread', 'decorators', 'classProperties', 'exportExtensions', 'exponentiationOperator', 'asyncGenerators', 'functionBind', 'functionSent']
package/dist/parse.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["parse","code","options","babelParse","allowImportExportEverywhere","sourceType","plugins"],"sources":["parse.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {parse as babelParse} from 'babylon';\nimport {defaults} from 'lodash';\n\n/**\n * Wrapper around babylon's parse with defaults set\n * @param {string} code\n * @param {object} options\n * @returns {ast}\n */\nexport default function parse(code, options) {\n return babelParse(\n code,\n defaults(options, {\n allowImportExportEverywhere: true,\n sourceType: 'module',\n plugins: [\n 'jsx',\n 'flow',\n 'asyncFunctions',\n 'classConstructorCall',\n 'doExpressions',\n 'trailingFunctionCommas',\n 'objectRestSpread',\n 'decorators',\n 'classProperties',\n 'exportExtensions',\n 'exponentiationOperator',\n 'asyncGenerators',\n 'functionBind',\n 'functionSent',\n ],\n })\n );\n}\n"],"mappings":";;;;;;;;;AAIA;AAJA;AACA;AACA;;AAKA;AACA;AACA;AACA;AACA;AACA;AACe,SAASA,KAAK,CAACC,IAAI,EAAEC,OAAO,EAAE;EAC3C,OAAO,IAAAC,cAAU,EACfF,IAAI,EACJ,wBAASC,OAAO,EAAE;IAChBE,2BAA2B,EAAE,IAAI;IACjCC,UAAU,EAAE,QAAQ;IACpBC,OAAO,EAAE,CACP,KAAK,EACL,MAAM,EACN,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,wBAAwB,EACxB,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,EACxB,iBAAiB,EACjB,cAAc,EACd,cAAc;EAElB,CAAC,CAAC,CACH;AACH"}
1
+ {"version":3,"names":["_babylon","require","_lodash","parse","code","options","babelParse","defaults","allowImportExportEverywhere","sourceType","plugins"],"sources":["parse.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {parse as babelParse} from 'babylon';\nimport {defaults} from 'lodash';\n\n/**\n * Wrapper around babylon's parse with defaults set\n * @param {string} code\n * @param {object} options\n * @returns {ast}\n */\nexport default function parse(code, options) {\n return babelParse(\n code,\n defaults(options, {\n allowImportExportEverywhere: true,\n sourceType: 'module',\n plugins: [\n 'jsx',\n 'flow',\n 'asyncFunctions',\n 'classConstructorCall',\n 'doExpressions',\n 'trailingFunctionCommas',\n 'objectRestSpread',\n 'decorators',\n 'classProperties',\n 'exportExtensions',\n 'exponentiationOperator',\n 'asyncGenerators',\n 'functionBind',\n 'functionSent',\n ],\n })\n );\n}\n"],"mappings":";;;;;;;AAIA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AALA;AACA;AACA;;AAKA;AACA;AACA;AACA;AACA;AACA;AACe,SAASE,KAAKA,CAACC,IAAI,EAAEC,OAAO,EAAE;EAC3C,OAAO,IAAAC,cAAU,EACfF,IAAI,EACJ,IAAAG,gBAAQ,EAACF,OAAO,EAAE;IAChBG,2BAA2B,EAAE,IAAI;IACjCC,UAAU,EAAE,QAAQ;IACpBC,OAAO,EAAE,CACP,KAAK,EACL,MAAM,EACN,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,wBAAwB,EACxB,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,EACxB,iBAAiB,EACjB,cAAc,EACd,cAAc;EAElB,CAAC,CACH,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"names":["assertionStatementTemplate","template","transform","comment","name","filename","type","ast","parse","traverse","enter","path","node","trailingComments","assertions","map","makeAsserter","length","replaceWith","ORIGINAL","ASSERTIONS","generateSpec","testCase","literalAssertionTest","value","buildLiteralAssertion"],"sources":["transform.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport template from '@babel/template';\nimport traverse from '@babel/traverse';\n\nimport parse from './parse';\nimport generateSpec from './mocha-template';\nimport {build as buildLiteralAssertion, test as literalAssertionTest} from './assertions/literal';\n\nconst assertionStatementTemplate = template(`\n return Promise.resolve(ORIGINAL)\n .then(function(result) {\n ASSERTIONS\n })\n`);\n\n/**\n * @param {Object} options\n * @param {ast} options.comment\n * @param {string} options.name\n * @param {string} options.filename\n * @param {string} options.type\n * @returns {ast}\n */\nexport default function transform({comment, name, filename, type}) {\n const ast = parse(comment);\n\n traverse(ast, {\n enter(path) {\n if (path.node.trailingComments) {\n const assertions = path.node.trailingComments.map(makeAsserter);\n\n if (assertions.length) {\n Reflect.deleteProperty(path.node, 'trailingComments');\n\n path.replaceWith(\n assertionStatementTemplate({\n ORIGINAL: path.node,\n ASSERTIONS: assertions,\n })\n );\n }\n }\n },\n });\n\n return generateSpec({\n testCase: ast,\n name,\n filename,\n type,\n });\n}\n\n/**\n * Takes a trailing comment from an example block and changes it to an assertion\n * @param {CommentBlock} comment\n * @returns {ast}\n */\nfunction makeAsserter(comment) {\n if (literalAssertionTest(comment.value)) {\n return buildLiteralAssertion(comment.value);\n }\n\n return null;\n}\n"],"mappings":";;;;;;;;;AAIA;AACA;AAEA;AACA;AACA;AATA;AACA;AACA;;AASA,IAAMA,0BAA0B,GAAG,IAAAC,iBAAQ,mGAKzC;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASC,SAAS,OAAkC;EAAA,IAAhCC,OAAO,QAAPA,OAAO;IAAEC,IAAI,QAAJA,IAAI;IAAEC,QAAQ,QAARA,QAAQ;IAAEC,IAAI,QAAJA,IAAI;EAC9D,IAAMC,GAAG,GAAG,IAAAC,cAAK,EAACL,OAAO,CAAC;EAE1B,IAAAM,iBAAQ,EAACF,GAAG,EAAE;IACZG,KAAK,iBAACC,IAAI,EAAE;MACV,IAAIA,IAAI,CAACC,IAAI,CAACC,gBAAgB,EAAE;QAC9B,IAAMC,UAAU,GAAGH,IAAI,CAACC,IAAI,CAACC,gBAAgB,CAACE,GAAG,CAACC,YAAY,CAAC;QAE/D,IAAIF,UAAU,CAACG,MAAM,EAAE;UACrB,6BAAuBN,IAAI,CAACC,IAAI,EAAE,kBAAkB,CAAC;UAErDD,IAAI,CAACO,WAAW,CACdlB,0BAA0B,CAAC;YACzBmB,QAAQ,EAAER,IAAI,CAACC,IAAI;YACnBQ,UAAU,EAAEN;UACd,CAAC,CAAC,CACH;QACH;MACF;IACF;EACF,CAAC,CAAC;EAEF,OAAO,IAAAO,sBAAY,EAAC;IAClBC,QAAQ,EAAEf,GAAG;IACbH,IAAI,EAAJA,IAAI;IACJC,QAAQ,EAARA,QAAQ;IACRC,IAAI,EAAJA;EACF,CAAC,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASU,YAAY,CAACb,OAAO,EAAE;EAC7B,IAAI,IAAAoB,aAAoB,EAACpB,OAAO,CAACqB,KAAK,CAAC,EAAE;IACvC,OAAO,IAAAC,cAAqB,EAACtB,OAAO,CAACqB,KAAK,CAAC;EAC7C;EAEA,OAAO,IAAI;AACb"}
1
+ {"version":3,"names":["_template","_interopRequireDefault","require","_traverse","_parse","_mochaTemplate","_literal","assertionStatementTemplate","template","transform","_ref","comment","name","filename","type","ast","parse","traverse","enter","path","node","trailingComments","assertions","map","makeAsserter","length","_deleteProperty","default","replaceWith","ORIGINAL","ASSERTIONS","generateSpec","testCase","literalAssertionTest","value","buildLiteralAssertion"],"sources":["transform.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport template from '@babel/template';\nimport traverse from '@babel/traverse';\n\nimport parse from './parse';\nimport generateSpec from './mocha-template';\nimport {build as buildLiteralAssertion, test as literalAssertionTest} from './assertions/literal';\n\nconst assertionStatementTemplate = template(`\n return Promise.resolve(ORIGINAL)\n .then(function(result) {\n ASSERTIONS\n })\n`);\n\n/**\n * @param {Object} options\n * @param {ast} options.comment\n * @param {string} options.name\n * @param {string} options.filename\n * @param {string} options.type\n * @returns {ast}\n */\nexport default function transform({comment, name, filename, type}) {\n const ast = parse(comment);\n\n traverse(ast, {\n enter(path) {\n if (path.node.trailingComments) {\n const assertions = path.node.trailingComments.map(makeAsserter);\n\n if (assertions.length) {\n Reflect.deleteProperty(path.node, 'trailingComments');\n\n path.replaceWith(\n assertionStatementTemplate({\n ORIGINAL: path.node,\n ASSERTIONS: assertions,\n })\n );\n }\n }\n },\n });\n\n return generateSpec({\n testCase: ast,\n name,\n filename,\n type,\n });\n}\n\n/**\n * Takes a trailing comment from an example block and changes it to an assertion\n * @param {CommentBlock} comment\n * @returns {ast}\n */\nfunction makeAsserter(comment) {\n if (literalAssertionTest(comment.value)) {\n return buildLiteralAssertion(comment.value);\n }\n\n return null;\n}\n"],"mappings":";;;;;;;;;AAIA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,cAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AATA;AACA;AACA;;AASA,IAAMK,0BAA0B,GAAG,IAAAC,iBAAQ,kGAK1C,CAAC;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASC,SAASA,CAAAC,IAAA,EAAkC;EAAA,IAAhCC,OAAO,GAAAD,IAAA,CAAPC,OAAO;IAAEC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAEC,IAAI,GAAAJ,IAAA,CAAJI,IAAI;EAC9D,IAAMC,GAAG,GAAG,IAAAC,cAAK,EAACL,OAAO,CAAC;EAE1B,IAAAM,iBAAQ,EAACF,GAAG,EAAE;IACZG,KAAK,WAAAA,MAACC,IAAI,EAAE;MACV,IAAIA,IAAI,CAACC,IAAI,CAACC,gBAAgB,EAAE;QAC9B,IAAMC,UAAU,GAAGH,IAAI,CAACC,IAAI,CAACC,gBAAgB,CAACE,GAAG,CAACC,YAAY,CAAC;QAE/D,IAAIF,UAAU,CAACG,MAAM,EAAE;UACrB,IAAAC,eAAA,CAAAC,OAAA,EAAuBR,IAAI,CAACC,IAAI,EAAE,kBAAkB,CAAC;UAErDD,IAAI,CAACS,WAAW,CACdrB,0BAA0B,CAAC;YACzBsB,QAAQ,EAAEV,IAAI,CAACC,IAAI;YACnBU,UAAU,EAAER;UACd,CAAC,CACH,CAAC;QACH;MACF;IACF;EACF,CAAC,CAAC;EAEF,OAAO,IAAAS,sBAAY,EAAC;IAClBC,QAAQ,EAAEjB,GAAG;IACbH,IAAI,EAAJA,IAAI;IACJC,QAAQ,EAARA,QAAQ;IACRC,IAAI,EAAJA;EACF,CAAC,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASU,YAAYA,CAACb,OAAO,EAAE;EAC7B,IAAI,IAAAsB,aAAoB,EAACtB,OAAO,CAACuB,KAAK,CAAC,EAAE;IACvC,OAAO,IAAAC,cAAqB,EAACxB,OAAO,CAACuB,KAAK,CAAC;EAC7C;EAEA,OAAO,IAAI;AACb"}
package/jest.config.js ADDED
@@ -0,0 +1,3 @@
1
+ const config = require('@webex/jest-config-legacy');
2
+
3
+ module.exports = config;
package/package.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "name": "@webex/jsdoctrinetest",
3
- "version": "3.0.0-bnr.5",
4
3
  "description": "",
5
4
  "license": "MIT",
6
5
  "contributors": [
@@ -35,15 +34,36 @@
35
34
  "doctrine"
36
35
  ],
37
36
  "devDependencies": {
37
+ "@babel/core": "^7.17.10",
38
38
  "@babel/generator": "^7.14.9",
39
39
  "@babel/template": "^7.14.5",
40
40
  "@babel/traverse": "^7.14.9",
41
- "@babel/types": "^7.14.9"
41
+ "@babel/types": "^7.14.9",
42
+ "@webex/babel-config-legacy": "0.0.0",
43
+ "@webex/eslint-config-legacy": "0.0.0",
44
+ "@webex/jest-config-legacy": "0.0.0",
45
+ "@webex/legacy-tools": "0.0.0",
46
+ "@webex/test-helper-chai": "3.0.0-next.1",
47
+ "@webex/test-helper-mocha": "3.0.0-next.1",
48
+ "@webex/test-helper-mock-webex": "3.0.0-next.1",
49
+ "@webex/test-helper-test-users": "3.0.0-next.1",
50
+ "eslint": "^8.24.0",
51
+ "prettier": "^2.7.1"
42
52
  },
43
53
  "dependencies": {
44
- "@webex/test-helper-chai": "3.0.0-bnr.5",
54
+ "@webex/test-helper-chai": "3.0.0-next.1",
45
55
  "babylon": "^6.18.0",
46
56
  "doctrine": "^2.1.0",
47
57
  "lodash": "^4.17.21"
48
- }
49
- }
58
+ },
59
+ "scripts": {
60
+ "build": "yarn build:src",
61
+ "build:src": "webex-legacy-tools build -dest \"./dist\" -src \"./src\" -js -ts -maps",
62
+ "deploy:npm": "yarn npm publish",
63
+ "test": "yarn test:style && yarn test:unit && yarn test:integration && yarn test:browser",
64
+ "test:browser": "webex-legacy-tools test --integration --runner karma",
65
+ "test:style": "eslint ./src/**/*.*",
66
+ "test:unit": "webex-legacy-tools test --unit --runner jest"
67
+ },
68
+ "version": "3.0.0-next.1"
69
+ }
package/process ADDED
@@ -0,0 +1 @@
1
+ module.exports = {browser: true};
@@ -1,38 +0,0 @@
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;
@@ -1,8 +0,0 @@
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;
@@ -1,12 +0,0 @@
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;
@@ -1,11 +0,0 @@
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;
@@ -1,76 +0,0 @@
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";
@@ -1,23 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
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;
@@ -1,13 +0,0 @@
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>;
@@ -1,15 +0,0 @@
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;
@@ -1,23 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- declare const _default: true;
2
- export default _default;
@@ -1 +0,0 @@
1
- export { default } from "./node";
@@ -1,2 +0,0 @@
1
- declare const _default: false;
2
- export default _default;
@@ -1,21 +0,0 @@
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";
@@ -1,2 +0,0 @@
1
- declare function _default(buffer: buffer): boolean;
2
- export default _default;
@@ -1,11 +0,0 @@
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;
@@ -1,9 +0,0 @@
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;
@@ -1,8 +0,0 @@
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;
@@ -1,22 +0,0 @@
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;
@@ -1,13 +0,0 @@
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;
@@ -1,17 +0,0 @@
1
- /*!
2
- * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
3
- */
4
- /**
5
- * Injects code into a promise chain without modifying the promise chain's result
6
- * @param {Function} fn
7
- * @returns {Promise}
8
- * @example
9
- * function f() {
10
- * return Promise.resolve(5);
11
- * }
12
- *
13
- * f()
14
- * .then(tap(() => 12))
15
- * // => 5
16
- */
17
- export default function tap(fn: Function): Promise<any>;