@webex/test-helper-chai 3.0.0-beta.9 → 3.0.0-bnr.2

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 (663) hide show
  1. package/dist/assertions/index.js +8 -25
  2. package/dist/assertions/index.js.map +1 -1
  3. package/dist/assertions/primitives.js +4 -13
  4. package/dist/assertions/primitives.js.map +1 -1
  5. package/dist/assertions/schemas.js +13 -16
  6. package/dist/assertions/schemas.js.map +1 -1
  7. package/dist/assertions/should-to-assert.js +5 -9
  8. package/dist/assertions/should-to-assert.js.map +1 -1
  9. package/dist/index.js +1 -3
  10. package/dist/index.js.map +1 -1
  11. package/dist/types/@webex/common/src/base64.d.ts +38 -0
  12. package/dist/types/@webex/common/src/browser-detection.d.ts +8 -0
  13. package/dist/types/@webex/common/src/capped-debounce.d.ts +12 -0
  14. package/dist/types/@webex/common/src/check-required.d.ts +11 -0
  15. package/dist/types/@webex/common/src/constants.d.ts +76 -0
  16. package/dist/types/@webex/common/src/defer.d.ts +23 -0
  17. package/dist/types/@webex/common/src/deprecated.d.ts +7 -0
  18. package/dist/types/@webex/common/src/event-envelope.d.ts +13 -0
  19. package/dist/types/@webex/common/src/events.d.ts +15 -0
  20. package/dist/types/@webex/common/src/exception.d.ts +23 -0
  21. package/dist/types/@webex/common/src/in-browser/browser.d.ts +2 -0
  22. package/dist/types/@webex/common/src/in-browser/index.d.ts +1 -0
  23. package/dist/types/@webex/common/src/in-browser/node.d.ts +2 -0
  24. package/dist/types/@webex/common/src/index.d.ts +21 -0
  25. package/dist/types/@webex/common/src/isBuffer.d.ts +2 -0
  26. package/dist/types/@webex/common/src/make-state-datatype.d.ts +11 -0
  27. package/dist/types/@webex/common/src/one-flight.d.ts +9 -0
  28. package/dist/types/@webex/common/src/patterns.d.ts +8 -0
  29. package/dist/types/@webex/common/src/resolve-with.d.ts +22 -0
  30. package/dist/types/@webex/common/src/retry.d.ts +13 -0
  31. package/dist/types/@webex/common/src/tap.d.ts +17 -0
  32. package/dist/types/@webex/common/src/template-container.d.ts +59 -0
  33. package/dist/types/@webex/common/src/uuid-utils.d.ts +112 -0
  34. package/dist/types/@webex/common/src/while-in-flight.d.ts +7 -0
  35. package/dist/types/@webex/common/test/unit/spec/capped-debounce.d.ts +1 -0
  36. package/dist/types/@webex/common/test/unit/spec/common.d.ts +1 -0
  37. package/dist/types/@webex/common/test/unit/spec/exception.d.ts +1 -0
  38. package/dist/types/@webex/common/test/unit/spec/one-flight.d.ts +1 -0
  39. package/dist/types/@webex/common/test/unit/spec/template-container.d.ts +1 -0
  40. package/dist/types/@webex/common/test/unit/spec/while-in-flight.d.ts +1 -0
  41. package/dist/types/@webex/common-evented/src/index.d.ts +9 -0
  42. package/dist/types/@webex/common-evented/test/unit/spec/evented.d.ts +1 -0
  43. package/dist/types/@webex/common-timers/src/index.d.ts +19 -0
  44. package/dist/types/@webex/helper-html/browsers.d.ts +2 -0
  45. package/dist/types/@webex/helper-html/src/html-base.d.ts +12 -0
  46. package/dist/types/@webex/helper-html/src/html.d.ts +5 -0
  47. package/dist/types/@webex/helper-html/src/html.shim.d.ts +33 -0
  48. package/dist/types/@webex/helper-html/src/index.d.ts +1 -0
  49. package/dist/types/@webex/helper-html/test/unit/spec/html.d.ts +1 -0
  50. package/dist/types/@webex/helper-image/src/detect-filetype.d.ts +7 -0
  51. package/dist/types/@webex/helper-image/src/index.d.ts +26 -0
  52. package/dist/types/@webex/helper-image/src/process-image.browser.d.ts +19 -0
  53. package/dist/types/@webex/helper-image/src/process-image.d.ts +17 -0
  54. package/dist/types/@webex/helper-image/test/unit/spec/index.d.ts +1 -0
  55. package/dist/types/@webex/http-core/src/http-error-subtypes.d.ts +8 -0
  56. package/dist/types/@webex/http-core/src/http-error.d.ts +41 -0
  57. package/dist/types/@webex/http-core/src/index.d.ts +7 -0
  58. package/dist/types/@webex/http-core/src/interceptors/http-status.d.ts +17 -0
  59. package/dist/types/@webex/http-core/src/lib/detect.d.ts +6 -0
  60. package/dist/types/@webex/http-core/src/lib/interceptor.d.ts +51 -0
  61. package/dist/types/@webex/http-core/src/lib/xhr.d.ts +6 -0
  62. package/dist/types/@webex/http-core/src/progress-event.d.ts +18 -0
  63. package/dist/types/@webex/http-core/src/request/index.d.ts +5 -0
  64. package/dist/types/@webex/http-core/src/request/request.d.ts +6 -0
  65. package/dist/types/@webex/http-core/src/request/request.shim.d.ts +6 -0
  66. package/dist/types/@webex/http-core/test/integration/spec/http-error.d.ts +1 -0
  67. package/dist/types/@webex/http-core/test/integration/spec/interceptor.d.ts +1 -0
  68. package/dist/types/@webex/http-core/test/integration/spec/progress-event.d.ts +1 -0
  69. package/dist/types/@webex/http-core/test/integration/spec/request.d.ts +1 -0
  70. package/dist/types/@webex/http-core/test/unit/spec/interceptors/http-status.d.ts +1 -0
  71. package/dist/types/@webex/internal-plugin-avatar/src/avatar-url-batcher.d.ts +2 -0
  72. package/dist/types/@webex/internal-plugin-avatar/src/avatar-url-store.d.ts +50 -0
  73. package/dist/types/@webex/internal-plugin-avatar/src/avatar.d.ts +2 -0
  74. package/dist/types/@webex/internal-plugin-avatar/src/config.d.ts +13 -0
  75. package/dist/types/@webex/internal-plugin-avatar/src/index.d.ts +1 -0
  76. package/dist/types/@webex/internal-plugin-avatar/test/integration/spec/avatar.d.ts +1 -0
  77. package/dist/types/@webex/internal-plugin-avatar/test/unit/spec/avatar-url-batcher.d.ts +1 -0
  78. package/dist/types/@webex/internal-plugin-avatar/test/unit/spec/avatar-url-store.d.ts +1 -0
  79. package/dist/types/@webex/internal-plugin-avatar/test/unit/spec/avatar.d.ts +1 -0
  80. package/dist/types/@webex/internal-plugin-board/src/board.d.ts +2 -0
  81. package/dist/types/@webex/internal-plugin-board/src/config.d.ts +11 -0
  82. package/dist/types/@webex/internal-plugin-board/src/index.d.ts +4 -0
  83. package/dist/types/@webex/internal-plugin-board/src/realtime-channel-collection.d.ts +2 -0
  84. package/dist/types/@webex/internal-plugin-board/src/realtime-channel.d.ts +2 -0
  85. package/dist/types/@webex/internal-plugin-board/src/realtime.d.ts +7 -0
  86. package/dist/types/@webex/internal-plugin-board/test/integration/spec/board.d.ts +1 -0
  87. package/dist/types/@webex/internal-plugin-board/test/integration/spec/realtime.d.ts +1 -0
  88. package/dist/types/@webex/internal-plugin-board/test/integration/spec/sharing-mercury.d.ts +1 -0
  89. package/dist/types/@webex/internal-plugin-board/test/unit/spec/board.d.ts +1 -0
  90. package/dist/types/@webex/internal-plugin-board/test/unit/spec/encryption.d.ts +1 -0
  91. package/dist/types/@webex/internal-plugin-board/test/unit/spec/realtime.d.ts +1 -0
  92. package/dist/types/@webex/internal-plugin-calendar/src/calendar.d.ts +2 -0
  93. package/dist/types/@webex/internal-plugin-calendar/src/collection.d.ts +58 -0
  94. package/dist/types/@webex/internal-plugin-calendar/src/config.d.ts +7 -0
  95. package/dist/types/@webex/internal-plugin-calendar/src/constants.d.ts +6 -0
  96. package/dist/types/@webex/internal-plugin-calendar/src/index.d.ts +1 -0
  97. package/dist/types/@webex/internal-plugin-calendar/src/util.d.ts +15 -0
  98. package/dist/types/@webex/internal-plugin-calendar/test/integration/spec/calendar.d.ts +1 -0
  99. package/dist/types/@webex/internal-plugin-calendar/test/unit/spec/calendar.d.ts +1 -0
  100. package/dist/types/@webex/internal-plugin-calendar/test/unit/spec/utils.d.ts +1 -0
  101. package/dist/types/@webex/internal-plugin-conversation/src/activities.d.ts +32 -0
  102. package/dist/types/@webex/internal-plugin-conversation/src/activity-thread-ordering.d.ts +18 -0
  103. package/dist/types/@webex/internal-plugin-conversation/src/config.d.ts +19 -0
  104. package/dist/types/@webex/internal-plugin-conversation/src/constants.d.ts +5 -0
  105. package/dist/types/@webex/internal-plugin-conversation/src/conversation.d.ts +2 -0
  106. package/dist/types/@webex/internal-plugin-conversation/src/convo-error.d.ts +10 -0
  107. package/dist/types/@webex/internal-plugin-conversation/src/decryption-transforms.d.ts +1 -0
  108. package/dist/types/@webex/internal-plugin-conversation/src/encryption-transforms.d.ts +1 -0
  109. package/dist/types/@webex/internal-plugin-conversation/src/index.d.ts +3 -0
  110. package/dist/types/@webex/internal-plugin-conversation/src/share-activity.d.ts +7 -0
  111. package/dist/types/@webex/internal-plugin-conversation/src/to-array.d.ts +9 -0
  112. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/create.d.ts +1 -0
  113. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/encryption.d.ts +1 -0
  114. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/get.d.ts +1 -0
  115. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/mercury.d.ts +1 -0
  116. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/share.d.ts +1 -0
  117. package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/verbs.d.ts +1 -0
  118. package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/conversation.d.ts +1 -0
  119. package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/decrypt-transforms.d.ts +1 -0
  120. package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/encryption-transforms.d.ts +1 -0
  121. package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/share-activity.d.ts +1 -0
  122. package/dist/types/@webex/internal-plugin-device/src/config.d.ts +10 -0
  123. package/dist/types/@webex/internal-plugin-device/src/constants.d.ts +12 -0
  124. package/dist/types/@webex/internal-plugin-device/src/device.d.ts +2 -0
  125. package/dist/types/@webex/internal-plugin-device/src/features/feature-collection.d.ts +9 -0
  126. package/dist/types/@webex/internal-plugin-device/src/features/feature-model.d.ts +29 -0
  127. package/dist/types/@webex/internal-plugin-device/src/features/features-model.d.ts +9 -0
  128. package/dist/types/@webex/internal-plugin-device/src/features/index.d.ts +4 -0
  129. package/dist/types/@webex/internal-plugin-device/src/index.d.ts +8 -0
  130. package/dist/types/@webex/internal-plugin-device/src/interceptors/device-url.d.ts +15 -0
  131. package/dist/types/@webex/internal-plugin-device/src/metrics.d.ts +5 -0
  132. package/dist/types/@webex/internal-plugin-device/test/integration/spec/device.d.ts +1 -0
  133. package/dist/types/@webex/internal-plugin-device/test/integration/spec/webex.d.ts +1 -0
  134. package/dist/types/@webex/internal-plugin-device/test/unit/spec/device.d.ts +1 -0
  135. package/dist/types/@webex/internal-plugin-device/test/unit/spec/features/feature-collection.d.ts +1 -0
  136. package/dist/types/@webex/internal-plugin-device/test/unit/spec/features/feature-model.d.ts +1 -0
  137. package/dist/types/@webex/internal-plugin-device/test/unit/spec/features/features-model.d.ts +1 -0
  138. package/dist/types/@webex/internal-plugin-device/test/unit/spec/interceptors/device-url.d.ts +1 -0
  139. package/dist/types/@webex/internal-plugin-dss/src/constants.d.ts +14 -0
  140. package/dist/types/@webex/internal-plugin-dss/src/dss.d.ts +3 -0
  141. package/dist/types/@webex/internal-plugin-dss/src/index.d.ts +1 -0
  142. package/dist/types/@webex/internal-plugin-dss/src/types.d.ts +28 -0
  143. package/dist/types/@webex/internal-plugin-dss/test/unit/spec/dss.d.ts +4 -0
  144. package/dist/types/@webex/internal-plugin-ediscovery/src/config.d.ts +11 -0
  145. package/dist/types/@webex/internal-plugin-ediscovery/src/ediscovery-error.d.ts +11 -0
  146. package/dist/types/@webex/internal-plugin-ediscovery/src/ediscovery.d.ts +6 -0
  147. package/dist/types/@webex/internal-plugin-ediscovery/src/index.d.ts +4 -0
  148. package/dist/types/@webex/internal-plugin-ediscovery/src/report-request.d.ts +29 -0
  149. package/dist/types/@webex/internal-plugin-ediscovery/src/retry.d.ts +2 -0
  150. package/dist/types/@webex/internal-plugin-ediscovery/src/transforms.d.ts +35 -0
  151. package/dist/types/@webex/internal-plugin-ediscovery/test/integration/spec/ediscovery.d.ts +1 -0
  152. package/dist/types/@webex/internal-plugin-ediscovery/test/unit/spec/content.d.ts +1 -0
  153. package/dist/types/@webex/internal-plugin-ediscovery/test/unit/spec/report.d.ts +1 -0
  154. package/dist/types/@webex/internal-plugin-ediscovery/test/unit/spec/transforms.d.ts +1 -0
  155. package/dist/types/@webex/internal-plugin-encryption/src/config.d.ts +16 -0
  156. package/dist/types/@webex/internal-plugin-encryption/src/encryption.d.ts +2 -0
  157. package/dist/types/@webex/internal-plugin-encryption/src/ensure-buffer.browser.d.ts +10 -0
  158. package/dist/types/@webex/internal-plugin-encryption/src/ensure-buffer.d.ts +7 -0
  159. package/dist/types/@webex/internal-plugin-encryption/src/index.d.ts +3 -0
  160. package/dist/types/@webex/internal-plugin-encryption/src/kms-batcher.d.ts +6 -0
  161. package/dist/types/@webex/internal-plugin-encryption/src/kms-certificate-validation.d.ts +24 -0
  162. package/dist/types/@webex/internal-plugin-encryption/src/kms-dry-error-interceptor.d.ts +25 -0
  163. package/dist/types/@webex/internal-plugin-encryption/src/kms-errors.d.ts +33 -0
  164. package/dist/types/@webex/internal-plugin-encryption/src/kms.d.ts +5 -0
  165. package/dist/types/@webex/internal-plugin-encryption/test/integration/spec/encryption.d.ts +1 -0
  166. package/dist/types/@webex/internal-plugin-encryption/test/integration/spec/kms.d.ts +1 -0
  167. package/dist/types/@webex/internal-plugin-encryption/test/integration/spec/payload-transfom.d.ts +1 -0
  168. package/dist/types/@webex/internal-plugin-encryption/test/unit/spec/encryption.d.ts +1 -0
  169. package/dist/types/@webex/internal-plugin-encryption/test/unit/spec/kms-certificate-validation.d.ts +1 -0
  170. package/dist/types/@webex/internal-plugin-feature/src/config.d.ts +4 -0
  171. package/dist/types/@webex/internal-plugin-feature/src/feature.d.ts +2 -0
  172. package/dist/types/@webex/internal-plugin-feature/src/index.d.ts +1 -0
  173. package/dist/types/@webex/internal-plugin-feature/test/integration/spec/feature.d.ts +1 -0
  174. package/dist/types/@webex/internal-plugin-feature/test/unit/spec/feature.d.ts +1 -0
  175. package/dist/types/@webex/internal-plugin-flag/src/config.d.ts +4 -0
  176. package/dist/types/@webex/internal-plugin-flag/src/flag.d.ts +2 -0
  177. package/dist/types/@webex/internal-plugin-flag/src/index.d.ts +1 -0
  178. package/dist/types/@webex/internal-plugin-flag/test/integration/spec/flag.d.ts +1 -0
  179. package/dist/types/@webex/internal-plugin-flag/test/unit/spec/flag.d.ts +1 -0
  180. package/dist/types/@webex/internal-plugin-llm/src/constants.d.ts +1 -0
  181. package/dist/types/@webex/internal-plugin-llm/src/index.d.ts +1 -0
  182. package/dist/types/@webex/internal-plugin-llm/src/llm.d.ts +88 -0
  183. package/dist/types/@webex/internal-plugin-llm/src/llm.types.d.ts +8 -0
  184. package/dist/types/@webex/internal-plugin-llm/test/unit/spec/llm.d.ts +1 -0
  185. package/dist/types/@webex/internal-plugin-locus/src/event-keys.d.ts +5 -0
  186. package/dist/types/@webex/internal-plugin-locus/src/index.d.ts +4 -0
  187. package/dist/types/@webex/internal-plugin-locus/src/locus.d.ts +12 -0
  188. package/dist/types/@webex/internal-plugin-locus/test/unit/spec/locus.d.ts +1 -0
  189. package/dist/types/@webex/internal-plugin-lyra/src/config.d.ts +4 -0
  190. package/dist/types/@webex/internal-plugin-lyra/src/device.d.ts +7 -0
  191. package/dist/types/@webex/internal-plugin-lyra/src/index.d.ts +3 -0
  192. package/dist/types/@webex/internal-plugin-lyra/src/lyra.d.ts +2 -0
  193. package/dist/types/@webex/internal-plugin-lyra/src/space.d.ts +7 -0
  194. package/dist/types/@webex/internal-plugin-lyra/test/integration/spec/device.d.ts +1 -0
  195. package/dist/types/@webex/internal-plugin-lyra/test/integration/spec/space.d.ts +1 -0
  196. package/dist/types/@webex/internal-plugin-lyra/test/unit/spec/device.d.ts +1 -0
  197. package/dist/types/@webex/internal-plugin-lyra/test/unit/spec/lyra.d.ts +1 -0
  198. package/dist/types/@webex/internal-plugin-lyra/test/unit/spec/space.d.ts +1 -0
  199. package/dist/types/@webex/internal-plugin-mercury/src/config.d.ts +10 -0
  200. package/dist/types/@webex/internal-plugin-mercury/src/errors.d.ts +31 -0
  201. package/dist/types/@webex/internal-plugin-mercury/src/index.d.ts +4 -0
  202. package/dist/types/@webex/internal-plugin-mercury/src/mercury.d.ts +2 -0
  203. package/dist/types/@webex/internal-plugin-mercury/src/socket/index.d.ts +1 -0
  204. package/dist/types/@webex/internal-plugin-mercury/src/socket/socket-base.d.ts +120 -0
  205. package/dist/types/@webex/internal-plugin-mercury/src/socket/socket.d.ts +2 -0
  206. package/dist/types/@webex/internal-plugin-mercury/src/socket/socket.shim.d.ts +2 -0
  207. package/dist/types/@webex/internal-plugin-mercury/test/integration/spec/mercury.d.ts +1 -0
  208. package/dist/types/@webex/internal-plugin-mercury/test/integration/spec/sharable-mercury.d.ts +1 -0
  209. package/dist/types/@webex/internal-plugin-mercury/test/integration/spec/webex.d.ts +1 -0
  210. package/dist/types/@webex/internal-plugin-mercury/test/unit/lib/promise-tick.d.ts +9 -0
  211. package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/_setup.d.ts +0 -0
  212. package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/mercury-events.d.ts +1 -0
  213. package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/mercury.d.ts +1 -0
  214. package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/socket.d.ts +1 -0
  215. package/dist/types/@webex/internal-plugin-metrics/src/batcher.d.ts +2 -0
  216. package/dist/types/@webex/internal-plugin-metrics/src/call-diagnostic-events-batcher.d.ts +2 -0
  217. package/dist/types/@webex/internal-plugin-metrics/src/client-metrics-batcher.d.ts +2 -0
  218. package/dist/types/@webex/internal-plugin-metrics/src/config.d.ts +18 -0
  219. package/dist/types/@webex/internal-plugin-metrics/src/index.d.ts +3 -0
  220. package/dist/types/@webex/internal-plugin-metrics/src/metrics.d.ts +2 -0
  221. package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/batcher.d.ts +1 -0
  222. package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/call-diagnostic-events-batcher.d.ts +1 -0
  223. package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/client-metrics-batcher.d.ts +1 -0
  224. package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/metrics.d.ts +1 -0
  225. package/dist/types/@webex/internal-plugin-presence/src/config.d.ts +8 -0
  226. package/dist/types/@webex/internal-plugin-presence/src/constants.d.ts +14 -0
  227. package/dist/types/@webex/internal-plugin-presence/src/index.d.ts +1 -0
  228. package/dist/types/@webex/internal-plugin-presence/src/presence-batcher.d.ts +6 -0
  229. package/dist/types/@webex/internal-plugin-presence/src/presence-worker.d.ts +68 -0
  230. package/dist/types/@webex/internal-plugin-presence/src/presence.d.ts +6 -0
  231. package/dist/types/@webex/internal-plugin-presence/test/integration/spec/presence.d.ts +1 -0
  232. package/dist/types/@webex/internal-plugin-presence/test/unit/spec/presence-worker.d.ts +1 -0
  233. package/dist/types/@webex/internal-plugin-presence/test/unit/spec/presence.d.ts +1 -0
  234. package/dist/types/@webex/internal-plugin-search/src/config.d.ts +4 -0
  235. package/dist/types/@webex/internal-plugin-search/src/index.d.ts +1 -0
  236. package/dist/types/@webex/internal-plugin-search/src/search.d.ts +2 -0
  237. package/dist/types/@webex/internal-plugin-search/test/integration/spec/search.d.ts +1 -0
  238. package/dist/types/@webex/internal-plugin-support/src/config.d.ts +16 -0
  239. package/dist/types/@webex/internal-plugin-support/src/index.d.ts +1 -0
  240. package/dist/types/@webex/internal-plugin-support/src/support.d.ts +2 -0
  241. package/dist/types/@webex/internal-plugin-support/test/integration/spec/support.d.ts +1 -0
  242. package/dist/types/@webex/internal-plugin-support/test/unit/spec/support.d.ts +1 -0
  243. package/dist/types/@webex/internal-plugin-team/src/config.d.ts +4 -0
  244. package/dist/types/@webex/internal-plugin-team/src/index.d.ts +1 -0
  245. package/dist/types/@webex/internal-plugin-team/src/team.d.ts +2 -0
  246. package/dist/types/@webex/internal-plugin-team/test/integration/spec/actions.d.ts +1 -0
  247. package/dist/types/@webex/internal-plugin-team/test/integration/spec/create.d.ts +1 -0
  248. package/dist/types/@webex/internal-plugin-team/test/integration/spec/get.d.ts +1 -0
  249. package/dist/types/@webex/internal-plugin-team/test/integration/spec/mercury.d.ts +1 -0
  250. package/dist/types/@webex/internal-plugin-team/test/unit/spec/team.d.ts +1 -0
  251. package/dist/types/@webex/internal-plugin-user/src/config.d.ts +17 -0
  252. package/dist/types/@webex/internal-plugin-user/src/index.d.ts +1 -0
  253. package/dist/types/@webex/internal-plugin-user/src/user-uuid-batcher.d.ts +5 -0
  254. package/dist/types/@webex/internal-plugin-user/src/user-uuid-store.d.ts +34 -0
  255. package/dist/types/@webex/internal-plugin-user/src/user.d.ts +5 -0
  256. package/dist/types/@webex/internal-plugin-user/test/integration/spec/user.d.ts +1 -0
  257. package/dist/types/@webex/internal-plugin-user/test/unit/spec/user-uuid-batcher.d.ts +1 -0
  258. package/dist/types/@webex/internal-plugin-user/test/unit/spec/user.d.ts +1 -0
  259. package/dist/types/@webex/internal-plugin-voicea/src/constants.d.ts +28 -0
  260. package/dist/types/@webex/internal-plugin-voicea/src/index.d.ts +1 -0
  261. package/dist/types/@webex/internal-plugin-voicea/src/utils.d.ts +1 -0
  262. package/dist/types/@webex/internal-plugin-voicea/src/voicea.d.ts +78 -0
  263. package/dist/types/@webex/internal-plugin-voicea/src/voicea.types.d.ts +72 -0
  264. package/dist/types/@webex/internal-plugin-voicea/test/unit/spec/utils.d.ts +1 -0
  265. package/dist/types/@webex/internal-plugin-voicea/test/unit/spec/voicea.d.ts +1 -0
  266. package/dist/types/@webex/internal-plugin-wdm/src/index.d.ts +2 -0
  267. package/dist/types/@webex/internal-plugin-wdm/test/integration/spec/webex.d.ts +1 -0
  268. package/dist/types/@webex/internal-plugin-wdm/test/unit/spec/device.d.ts +1 -0
  269. package/dist/types/@webex/jsdoctrinetest/src/assertions/literal.d.ts +12 -0
  270. package/dist/types/@webex/jsdoctrinetest/src/extract.d.ts +20 -0
  271. package/dist/types/@webex/jsdoctrinetest/src/index.d.ts +1 -0
  272. package/dist/types/@webex/jsdoctrinetest/src/mocha-template.d.ts +11 -0
  273. package/dist/types/@webex/jsdoctrinetest/src/parse.d.ts +7 -0
  274. package/dist/types/@webex/jsdoctrinetest/src/transform.d.ts +14 -0
  275. package/dist/types/@webex/jsdoctrinetest/test/unit/spec/default.d.ts +1 -0
  276. package/dist/types/@webex/plugin-attachment-actions/src/attachmentActions.d.ts +51 -0
  277. package/dist/types/@webex/plugin-attachment-actions/src/index.d.ts +2 -0
  278. package/dist/types/@webex/plugin-attachment-actions/test/integration/spec/attachmentActions.d.ts +1 -0
  279. package/dist/types/@webex/plugin-authorization/src/index.browser.d.ts +1 -0
  280. package/dist/types/@webex/plugin-authorization/src/index.d.ts +1 -0
  281. package/dist/types/@webex/plugin-authorization-browser/src/authorization.d.ts +8 -0
  282. package/dist/types/@webex/plugin-authorization-browser/src/config.d.ts +6 -0
  283. package/dist/types/@webex/plugin-authorization-browser/src/index.d.ts +2 -0
  284. package/dist/types/@webex/plugin-authorization-browser/test/automation/fixtures/app.d.ts +1 -0
  285. package/dist/types/@webex/plugin-authorization-browser/test/automation/spec/authorization-code-grant.d.ts +1 -0
  286. package/dist/types/@webex/plugin-authorization-browser/test/automation/spec/implicit-grant.d.ts +1 -0
  287. package/dist/types/@webex/plugin-authorization-browser/test/integration/spec/authorization.d.ts +1 -0
  288. package/dist/types/@webex/plugin-authorization-browser/test/unit/spec/authorization.d.ts +1 -0
  289. package/dist/types/@webex/plugin-authorization-browser-first-party/src/authorization.d.ts +12 -0
  290. package/dist/types/@webex/plugin-authorization-browser-first-party/src/config.d.ts +7 -0
  291. package/dist/types/@webex/plugin-authorization-browser-first-party/src/index.d.ts +2 -0
  292. package/dist/types/@webex/plugin-authorization-browser-first-party/test/automation/fixtures/app.d.ts +1 -0
  293. package/dist/types/@webex/plugin-authorization-browser-first-party/test/automation/spec/authorization-code-grant.d.ts +1 -0
  294. package/dist/types/@webex/plugin-authorization-browser-first-party/test/unit/spec/authorization.d.ts +1 -0
  295. package/dist/types/@webex/plugin-authorization-node/src/authorization.d.ts +7 -0
  296. package/dist/types/@webex/plugin-authorization-node/src/config.d.ts +4 -0
  297. package/dist/types/@webex/plugin-authorization-node/src/index.d.ts +2 -0
  298. package/dist/types/@webex/plugin-authorization-node/test/integration/spec/authorization.d.ts +1 -0
  299. package/dist/types/@webex/plugin-authorization-node/test/unit/spec/authorization.d.ts +1 -0
  300. package/dist/types/@webex/plugin-device-manager/sample/app.d.ts +29 -0
  301. package/dist/types/@webex/plugin-device-manager/src/collection.d.ts +8 -0
  302. package/dist/types/@webex/plugin-device-manager/src/config.d.ts +2 -0
  303. package/dist/types/@webex/plugin-device-manager/src/constants.d.ts +3 -0
  304. package/dist/types/@webex/plugin-device-manager/src/device-manager.d.ts +2 -0
  305. package/dist/types/@webex/plugin-device-manager/src/index.d.ts +2 -0
  306. package/dist/types/@webex/plugin-device-manager/test/unit/spec/index.d.ts +1 -0
  307. package/dist/types/@webex/plugin-device-manager/webex.d.ts +1 -0
  308. package/dist/types/@webex/plugin-logger/src/config.d.ts +19 -0
  309. package/dist/types/@webex/plugin-logger/src/index.d.ts +1 -0
  310. package/dist/types/@webex/plugin-logger/src/logger.d.ts +7 -0
  311. package/dist/types/@webex/plugin-logger/test/unit/spec/logger.d.ts +1 -0
  312. package/dist/types/@webex/plugin-meetings/browsers.d.ts +75 -0
  313. package/dist/types/@webex/plugin-meetings/src/breakouts/breakout.d.ts +8 -0
  314. package/dist/types/@webex/plugin-meetings/src/breakouts/collection.d.ts +5 -0
  315. package/dist/types/@webex/plugin-meetings/src/breakouts/index.d.ts +5 -0
  316. package/dist/types/@webex/plugin-meetings/src/breakouts/request.d.ts +22 -0
  317. package/dist/types/@webex/plugin-meetings/src/breakouts/utils.d.ts +1 -0
  318. package/dist/types/@webex/plugin-meetings/src/common/browser-detection.d.ts +9 -0
  319. package/dist/types/@webex/plugin-meetings/src/common/collection.d.ts +48 -0
  320. package/dist/types/@webex/plugin-meetings/src/common/config.d.ts +2 -0
  321. package/dist/types/@webex/plugin-meetings/src/common/errors/captcha-error.d.ts +15 -0
  322. package/dist/types/@webex/plugin-meetings/src/common/errors/intent-to-join.d.ts +16 -0
  323. package/dist/types/@webex/plugin-meetings/src/common/errors/join-meeting.d.ts +17 -0
  324. package/dist/types/@webex/plugin-meetings/src/common/errors/media.d.ts +15 -0
  325. package/dist/types/@webex/plugin-meetings/src/common/errors/parameter.d.ts +15 -0
  326. package/dist/types/@webex/plugin-meetings/src/common/errors/password-error.d.ts +15 -0
  327. package/dist/types/@webex/plugin-meetings/src/common/errors/permission.d.ts +14 -0
  328. package/dist/types/@webex/plugin-meetings/src/common/errors/reconnection-in-progress.d.ts +9 -0
  329. package/dist/types/@webex/plugin-meetings/src/common/errors/reconnection.d.ts +15 -0
  330. package/dist/types/@webex/plugin-meetings/src/common/errors/stats.d.ts +15 -0
  331. package/dist/types/@webex/plugin-meetings/src/common/errors/webex-errors.d.ts +69 -0
  332. package/dist/types/@webex/plugin-meetings/src/common/errors/webex-meetings-error.d.ts +20 -0
  333. package/dist/types/@webex/plugin-meetings/src/common/events/events-scope.d.ts +17 -0
  334. package/dist/types/@webex/plugin-meetings/src/common/events/events.d.ts +12 -0
  335. package/dist/types/@webex/plugin-meetings/src/common/events/trigger-proxy.d.ts +2 -0
  336. package/dist/types/@webex/plugin-meetings/src/common/events/util.d.ts +2 -0
  337. package/dist/types/@webex/plugin-meetings/src/common/logs/logger-config.d.ts +2 -0
  338. package/dist/types/@webex/plugin-meetings/src/common/logs/logger-proxy.d.ts +2 -0
  339. package/dist/types/@webex/plugin-meetings/src/common/logs/request.d.ts +34 -0
  340. package/dist/types/@webex/plugin-meetings/src/common/queue.d.ts +32 -0
  341. package/dist/types/@webex/plugin-meetings/src/config.d.ts +77 -0
  342. package/dist/types/@webex/plugin-meetings/src/constants.d.ts +899 -0
  343. package/dist/types/@webex/plugin-meetings/src/controls-options-manager/constants.d.ts +4 -0
  344. package/dist/types/@webex/plugin-meetings/src/controls-options-manager/enums.d.ts +5 -0
  345. package/dist/types/@webex/plugin-meetings/src/controls-options-manager/index.d.ts +120 -0
  346. package/dist/types/@webex/plugin-meetings/src/controls-options-manager/util.d.ts +7 -0
  347. package/dist/types/@webex/plugin-meetings/src/index.d.ts +7 -0
  348. package/dist/types/@webex/plugin-meetings/src/locus-info/controlsUtils.d.ts +2 -0
  349. package/dist/types/@webex/plugin-meetings/src/locus-info/embeddedAppsUtils.d.ts +2 -0
  350. package/dist/types/@webex/plugin-meetings/src/locus-info/fullState.d.ts +2 -0
  351. package/dist/types/@webex/plugin-meetings/src/locus-info/hostUtils.d.ts +2 -0
  352. package/dist/types/@webex/plugin-meetings/src/locus-info/index.d.ts +269 -0
  353. package/dist/types/@webex/plugin-meetings/src/locus-info/infoUtils.d.ts +2 -0
  354. package/dist/types/@webex/plugin-meetings/src/locus-info/mediaSharesUtils.d.ts +2 -0
  355. package/dist/types/@webex/plugin-meetings/src/locus-info/parser.d.ts +212 -0
  356. package/dist/types/@webex/plugin-meetings/src/locus-info/selfUtils.d.ts +2 -0
  357. package/dist/types/@webex/plugin-meetings/src/media/index.d.ts +32 -0
  358. package/dist/types/@webex/plugin-meetings/src/media/properties.d.ts +107 -0
  359. package/dist/types/@webex/plugin-meetings/src/media/util.d.ts +2 -0
  360. package/dist/types/@webex/plugin-meetings/src/mediaQualityMetrics/config.d.ts +365 -0
  361. package/dist/types/@webex/plugin-meetings/src/meeting/effectsState.d.ts +42 -0
  362. package/dist/types/@webex/plugin-meetings/src/meeting/in-meeting-actions.d.ts +83 -0
  363. package/dist/types/@webex/plugin-meetings/src/meeting/index.d.ts +1724 -0
  364. package/dist/types/@webex/plugin-meetings/src/meeting/muteState.d.ts +108 -0
  365. package/dist/types/@webex/plugin-meetings/src/meeting/request.d.ts +261 -0
  366. package/dist/types/@webex/plugin-meetings/src/meeting/request.type.d.ts +11 -0
  367. package/dist/types/@webex/plugin-meetings/src/meeting/state.d.ts +9 -0
  368. package/dist/types/@webex/plugin-meetings/src/meeting/util.d.ts +2 -0
  369. package/dist/types/@webex/plugin-meetings/src/meeting-info/collection.d.ts +20 -0
  370. package/dist/types/@webex/plugin-meetings/src/meeting-info/index.d.ts +57 -0
  371. package/dist/types/@webex/plugin-meetings/src/meeting-info/meeting-info-v2.d.ts +93 -0
  372. package/dist/types/@webex/plugin-meetings/src/meeting-info/request.d.ts +22 -0
  373. package/dist/types/@webex/plugin-meetings/src/meeting-info/util.d.ts +2 -0
  374. package/dist/types/@webex/plugin-meetings/src/meeting-info/utilv2.d.ts +2 -0
  375. package/dist/types/@webex/plugin-meetings/src/meetings/collection.d.ts +23 -0
  376. package/dist/types/@webex/plugin-meetings/src/meetings/index.d.ts +297 -0
  377. package/dist/types/@webex/plugin-meetings/src/meetings/request.d.ts +27 -0
  378. package/dist/types/@webex/plugin-meetings/src/meetings/util.d.ts +18 -0
  379. package/dist/types/@webex/plugin-meetings/src/member/index.d.ts +146 -0
  380. package/dist/types/@webex/plugin-meetings/src/member/util.d.ts +2 -0
  381. package/dist/types/@webex/plugin-meetings/src/members/collection.d.ts +24 -0
  382. package/dist/types/@webex/plugin-meetings/src/members/index.d.ts +320 -0
  383. package/dist/types/@webex/plugin-meetings/src/members/request.d.ts +50 -0
  384. package/dist/types/@webex/plugin-meetings/src/members/util.d.ts +2 -0
  385. package/dist/types/@webex/plugin-meetings/src/metrics/config.d.ts +178 -0
  386. package/dist/types/@webex/plugin-meetings/src/metrics/constants.d.ts +57 -0
  387. package/dist/types/@webex/plugin-meetings/src/metrics/index.d.ts +160 -0
  388. package/dist/types/@webex/plugin-meetings/src/multistream/mediaRequestManager.d.ts +51 -0
  389. package/dist/types/@webex/plugin-meetings/src/multistream/receiveSlot.d.ts +66 -0
  390. package/dist/types/@webex/plugin-meetings/src/multistream/receiveSlotManager.d.ts +46 -0
  391. package/dist/types/@webex/plugin-meetings/src/multistream/remoteMedia.d.ts +93 -0
  392. package/dist/types/@webex/plugin-meetings/src/multistream/remoteMediaGroup.d.ts +56 -0
  393. package/dist/types/@webex/plugin-meetings/src/multistream/remoteMediaManager.d.ts +241 -0
  394. package/dist/types/@webex/plugin-meetings/src/networkQualityMonitor/index.d.ts +70 -0
  395. package/dist/types/@webex/plugin-meetings/src/personal-meeting-room/index.d.ts +47 -0
  396. package/dist/types/@webex/plugin-meetings/src/personal-meeting-room/request.d.ts +14 -0
  397. package/dist/types/@webex/plugin-meetings/src/personal-meeting-room/util.d.ts +2 -0
  398. package/dist/types/@webex/plugin-meetings/src/reachability/index.d.ts +140 -0
  399. package/dist/types/@webex/plugin-meetings/src/reachability/request.d.ts +35 -0
  400. package/dist/types/@webex/plugin-meetings/src/reactions/constants.d.ts +3 -0
  401. package/dist/types/@webex/plugin-meetings/src/reactions/reactions.d.ts +4 -0
  402. package/dist/types/@webex/plugin-meetings/src/reactions/reactions.type.d.ts +52 -0
  403. package/dist/types/@webex/plugin-meetings/src/reconnection-manager/index.d.ts +117 -0
  404. package/dist/types/@webex/plugin-meetings/src/recording-controller/enums.d.ts +7 -0
  405. package/dist/types/@webex/plugin-meetings/src/recording-controller/index.d.ts +193 -0
  406. package/dist/types/@webex/plugin-meetings/src/recording-controller/util.d.ts +13 -0
  407. package/dist/types/@webex/plugin-meetings/src/roap/index.d.ts +77 -0
  408. package/dist/types/@webex/plugin-meetings/src/roap/request.d.ts +35 -0
  409. package/dist/types/@webex/plugin-meetings/src/roap/turnDiscovery.d.ts +74 -0
  410. package/dist/types/@webex/plugin-meetings/src/statsAnalyzer/global.d.ts +36 -0
  411. package/dist/types/@webex/plugin-meetings/src/statsAnalyzer/index.d.ts +195 -0
  412. package/dist/types/@webex/plugin-meetings/src/statsAnalyzer/mqaUtil.d.ts +24 -0
  413. package/dist/types/@webex/plugin-meetings/src/transcription/index.d.ts +64 -0
  414. package/dist/types/@webex/plugin-meetings/test/integration/spec/converged-space-meetings.d.ts +1 -0
  415. package/dist/types/@webex/plugin-meetings/test/integration/spec/journey.d.ts +1 -0
  416. package/dist/types/@webex/plugin-meetings/test/integration/spec/space-meeting.d.ts +1 -0
  417. package/dist/types/@webex/plugin-meetings/test/integration/spec/transcription.d.ts +1 -0
  418. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/breakout.d.ts +1 -0
  419. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/collection.d.ts +1 -0
  420. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/index.d.ts +1 -0
  421. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/request.d.ts +1 -0
  422. package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/utils.d.ts +1 -0
  423. package/dist/types/@webex/plugin-meetings/test/unit/spec/common/browser-detection.d.ts +1 -0
  424. package/dist/types/@webex/plugin-meetings/test/unit/spec/common/queue.d.ts +1 -0
  425. package/dist/types/@webex/plugin-meetings/test/unit/spec/controls-options-manager/index.d.ts +1 -0
  426. package/dist/types/@webex/plugin-meetings/test/unit/spec/controls-options-manager/util.d.ts +1 -0
  427. package/dist/types/@webex/plugin-meetings/test/unit/spec/fixture/locus.d.ts +332 -0
  428. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/controlsUtils.d.ts +1 -0
  429. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/embeddedAppsUtils.d.ts +1 -0
  430. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/index.d.ts +1 -0
  431. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/infoUtils.d.ts +1 -0
  432. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/parser.d.ts +1 -0
  433. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/selfConstant.d.ts +274 -0
  434. package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/selfUtils.d.ts +1 -0
  435. package/dist/types/@webex/plugin-meetings/test/unit/spec/media/index.d.ts +1 -0
  436. package/dist/types/@webex/plugin-meetings/test/unit/spec/media/properties.d.ts +1 -0
  437. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/effectsState.d.ts +1 -0
  438. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/in-meeting-actions.d.ts +1 -0
  439. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/index.d.ts +1 -0
  440. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/muteState.d.ts +1 -0
  441. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/request.d.ts +1 -0
  442. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/utils.d.ts +1 -0
  443. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/meetinginfov2.d.ts +1 -0
  444. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/request.d.ts +1 -0
  445. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/util.d.ts +1 -0
  446. package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/utilv2.d.ts +1 -0
  447. package/dist/types/@webex/plugin-meetings/test/unit/spec/meetings/collection.d.ts +1 -0
  448. package/dist/types/@webex/plugin-meetings/test/unit/spec/meetings/index.d.ts +1 -0
  449. package/dist/types/@webex/plugin-meetings/test/unit/spec/meetings/utils.d.ts +1 -0
  450. package/dist/types/@webex/plugin-meetings/test/unit/spec/member/index.d.ts +1 -0
  451. package/dist/types/@webex/plugin-meetings/test/unit/spec/member/util.d.ts +1 -0
  452. package/dist/types/@webex/plugin-meetings/test/unit/spec/members/index.d.ts +1 -0
  453. package/dist/types/@webex/plugin-meetings/test/unit/spec/members/request.d.ts +1 -0
  454. package/dist/types/@webex/plugin-meetings/test/unit/spec/members/utils.d.ts +1 -0
  455. package/dist/types/@webex/plugin-meetings/test/unit/spec/metrics/index.d.ts +1 -0
  456. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/mediaRequestManager.d.ts +1 -0
  457. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/receiveSlot.d.ts +1 -0
  458. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/receiveSlotManager.d.ts +1 -0
  459. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/remoteMedia.d.ts +1 -0
  460. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/remoteMediaGroup.d.ts +1 -0
  461. package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/remoteMediaManager.d.ts +1 -0
  462. package/dist/types/@webex/plugin-meetings/test/unit/spec/networkQualityMonitor/index.d.ts +1 -0
  463. package/dist/types/@webex/plugin-meetings/test/unit/spec/personal-meeting-room/personal-meeting-room.d.ts +1 -0
  464. package/dist/types/@webex/plugin-meetings/test/unit/spec/reachability/index.d.ts +1 -0
  465. package/dist/types/@webex/plugin-meetings/test/unit/spec/reconnection-manager/index.d.ts +1 -0
  466. package/dist/types/@webex/plugin-meetings/test/unit/spec/recording-controller/index.d.ts +1 -0
  467. package/dist/types/@webex/plugin-meetings/test/unit/spec/recording-controller/util.d.ts +1 -0
  468. package/dist/types/@webex/plugin-meetings/test/unit/spec/roap/index.d.ts +1 -0
  469. package/dist/types/@webex/plugin-meetings/test/unit/spec/roap/request.d.ts +1 -0
  470. package/dist/types/@webex/plugin-meetings/test/unit/spec/roap/turnDiscovery.d.ts +1 -0
  471. package/dist/types/@webex/plugin-meetings/test/unit/spec/stats-analyzer/index.d.ts +1 -0
  472. package/dist/types/@webex/plugin-meetings/test/utils/cmr.d.ts +6 -0
  473. package/dist/types/@webex/plugin-meetings/test/utils/constants.d.ts +5 -0
  474. package/dist/types/@webex/plugin-meetings/test/utils/testUtils.d.ts +27 -0
  475. package/dist/types/@webex/plugin-meetings/test/utils/webex-config.d.ts +63 -0
  476. package/dist/types/@webex/plugin-meetings/test/utils/webex-test-users.d.ts +2 -0
  477. package/dist/types/@webex/plugin-memberships/src/index.d.ts +2 -0
  478. package/dist/types/@webex/plugin-memberships/src/memberships.d.ts +50 -0
  479. package/dist/types/@webex/plugin-memberships/test/integration/spec/memberships.d.ts +1 -0
  480. package/dist/types/@webex/plugin-messages/src/index.d.ts +2 -0
  481. package/dist/types/@webex/plugin-messages/src/messages.d.ts +58 -0
  482. package/dist/types/@webex/plugin-messages/test/integration/spec/messages.d.ts +1 -0
  483. package/dist/types/@webex/plugin-people/src/config.d.ts +9 -0
  484. package/dist/types/@webex/plugin-people/src/index.d.ts +1 -0
  485. package/dist/types/@webex/plugin-people/src/people-batcher.d.ts +6 -0
  486. package/dist/types/@webex/plugin-people/src/people.d.ts +30 -0
  487. package/dist/types/@webex/plugin-people/test/integration/spec/people.d.ts +1 -0
  488. package/dist/types/@webex/plugin-people/test/unit/spec/people-batcher.d.ts +1 -0
  489. package/dist/types/@webex/plugin-people/test/unit/spec/people.d.ts +1 -0
  490. package/dist/types/@webex/plugin-rooms/src/index.d.ts +2 -0
  491. package/dist/types/@webex/plugin-rooms/src/rooms.d.ts +41 -0
  492. package/dist/types/@webex/plugin-rooms/test/integration/spec/rooms.d.ts +1 -0
  493. package/dist/types/@webex/plugin-team-memberships/src/index.d.ts +2 -0
  494. package/dist/types/@webex/plugin-team-memberships/src/team-memberships.d.ts +49 -0
  495. package/dist/types/@webex/plugin-team-memberships/test/integration/spec/team-memberships.d.ts +1 -0
  496. package/dist/types/@webex/plugin-teams/src/index.d.ts +2 -0
  497. package/dist/types/@webex/plugin-teams/src/teams.d.ts +27 -0
  498. package/dist/types/@webex/plugin-teams/test/integration/spec/teams.d.ts +1 -0
  499. package/dist/types/@webex/plugin-webhooks/src/index.d.ts +2 -0
  500. package/dist/types/@webex/plugin-webhooks/src/webhooks.d.ts +48 -0
  501. package/dist/types/@webex/plugin-webhooks/test/integration/spec/webhooks.d.ts +1 -0
  502. package/dist/types/@webex/recipe-private-web-client/src/config.d.ts +10 -0
  503. package/dist/types/@webex/recipe-private-web-client/src/index.d.ts +8 -0
  504. package/dist/types/@webex/storage-adapter-local-forage/src/index.d.ts +35 -0
  505. package/dist/types/@webex/storage-adapter-local-forage/test/unit/spec/storage-adapter-local-forage.d.ts +1 -0
  506. package/dist/types/@webex/storage-adapter-local-storage/src/index.d.ts +66 -0
  507. package/dist/types/@webex/storage-adapter-local-storage/test/unit/spec/storage-adapter-local-storage.d.ts +1 -0
  508. package/dist/types/@webex/storage-adapter-session-storage/src/index.d.ts +66 -0
  509. package/dist/types/@webex/storage-adapter-session-storage/test/unit/spec/storage-adapter-session-storage.d.ts +1 -0
  510. package/dist/types/@webex/storage-adapter-spec/src/index.d.ts +1 -0
  511. package/dist/types/@webex/test-helper-appid/src/create-user.browser.d.ts +2 -0
  512. package/dist/types/@webex/test-helper-appid/src/create-user.d.ts +7 -0
  513. package/dist/types/@webex/test-helper-appid/src/index.d.ts +7 -0
  514. package/dist/types/@webex/test-helper-appid/src/router.d.ts +2 -0
  515. package/dist/types/@webex/test-helper-automation/src/index.d.ts +2 -0
  516. package/dist/types/@webex/test-helper-automation/src/wd/accept-grant.d.ts +1 -0
  517. package/dist/types/@webex/test-helper-automation/src/wd/login.d.ts +1 -0
  518. package/dist/types/@webex/test-helper-automation/src/wd/print-logs.d.ts +1 -0
  519. package/dist/types/@webex/test-helper-automation/src/wd/submit-password.d.ts +1 -0
  520. package/dist/types/@webex/test-helper-chai/src/assertions/index.d.ts +2 -0
  521. package/dist/types/@webex/test-helper-chai/src/assertions/primitives.d.ts +2 -0
  522. package/dist/types/@webex/test-helper-chai/src/assertions/schemas.d.ts +2 -0
  523. package/dist/types/@webex/test-helper-chai/src/assertions/should-to-assert.d.ts +2 -0
  524. package/dist/types/@webex/test-helper-chai/src/index.d.ts +2 -0
  525. package/dist/types/@webex/test-helper-file/src/file.d.ts +5 -0
  526. package/dist/types/@webex/test-helper-file/src/file.shim.d.ts +18 -0
  527. package/dist/types/@webex/test-helper-file/src/index.d.ts +2 -0
  528. package/dist/types/@webex/test-helper-make-local-url/src/index.d.ts +4 -0
  529. package/dist/types/@webex/test-helper-mocha/src/index.d.ts +29 -0
  530. package/dist/types/@webex/test-helper-mock-web-socket/src/index.d.ts +26 -0
  531. package/dist/types/@webex/test-helper-mock-webex/src/index.d.ts +7 -0
  532. package/dist/types/@webex/test-helper-refresh-callback/src/index.d.ts +10 -0
  533. package/dist/types/@webex/test-helper-retry/src/index.d.ts +15 -0
  534. package/dist/types/@webex/test-helper-server/src/cookies.d.ts +2 -0
  535. package/dist/types/@webex/test-helper-server/src/files.d.ts +2 -0
  536. package/dist/types/@webex/test-helper-server/src/form.d.ts +2 -0
  537. package/dist/types/@webex/test-helper-server/src/index.d.ts +1 -0
  538. package/dist/types/@webex/test-helper-server/src/json.d.ts +2 -0
  539. package/dist/types/@webex/test-helper-server/src/reflect.d.ts +10 -0
  540. package/dist/types/@webex/test-helper-test-users/src/index.d.ts +8 -0
  541. package/dist/types/@webex/test-users/src/index.d.ts +115 -0
  542. package/dist/types/@webex/test-users/src/whistler.d.ts +44 -0
  543. package/dist/types/@webex/test-users/test/integration/spec/index.d.ts +1 -0
  544. package/dist/types/@webex/test-users/test/integration/spec/whistler.d.ts +1 -0
  545. package/dist/types/@webex/webex-core/src/config.d.ts +39 -0
  546. package/dist/types/@webex/webex-core/src/credentials-config.d.ts +2 -0
  547. package/dist/types/@webex/webex-core/src/index.d.ts +24 -0
  548. package/dist/types/@webex/webex-core/src/interceptors/auth.d.ts +43 -0
  549. package/dist/types/@webex/webex-core/src/interceptors/default-options.d.ts +31 -0
  550. package/dist/types/@webex/webex-core/src/interceptors/embargo.d.ts +16 -0
  551. package/dist/types/@webex/webex-core/src/interceptors/network-timing.d.ts +30 -0
  552. package/dist/types/@webex/webex-core/src/interceptors/payload-transformer.d.ts +30 -0
  553. package/dist/types/@webex/webex-core/src/interceptors/rate-limit.d.ts +61 -0
  554. package/dist/types/@webex/webex-core/src/interceptors/redirect.d.ts +22 -0
  555. package/dist/types/@webex/webex-core/src/interceptors/request-event.d.ts +36 -0
  556. package/dist/types/@webex/webex-core/src/interceptors/request-logger.d.ts +22 -0
  557. package/dist/types/@webex/webex-core/src/interceptors/request-timing.d.ts +36 -0
  558. package/dist/types/@webex/webex-core/src/interceptors/response-logger.d.ts +30 -0
  559. package/dist/types/@webex/webex-core/src/interceptors/user-agent.d.ts +38 -0
  560. package/dist/types/@webex/webex-core/src/interceptors/webex-tracking-id.d.ts +26 -0
  561. package/dist/types/@webex/webex-core/src/interceptors/webex-user-agent.d.ts +22 -0
  562. package/dist/types/@webex/webex-core/src/lib/batcher.d.ts +6 -0
  563. package/dist/types/@webex/webex-core/src/lib/credentials/credentials.d.ts +5 -0
  564. package/dist/types/@webex/webex-core/src/lib/credentials/grant-errors.d.ts +57 -0
  565. package/dist/types/@webex/webex-core/src/lib/credentials/index.d.ts +4 -0
  566. package/dist/types/@webex/webex-core/src/lib/credentials/scope.d.ts +16 -0
  567. package/dist/types/@webex/webex-core/src/lib/credentials/token-collection.d.ts +2 -0
  568. package/dist/types/@webex/webex-core/src/lib/credentials/token.d.ts +5 -0
  569. package/dist/types/@webex/webex-core/src/lib/page.d.ts +76 -0
  570. package/dist/types/@webex/webex-core/src/lib/services/constants.d.ts +6 -0
  571. package/dist/types/@webex/webex-core/src/lib/services/index.d.ts +10 -0
  572. package/dist/types/@webex/webex-core/src/lib/services/interceptors/server-error.d.ts +16 -0
  573. package/dist/types/@webex/webex-core/src/lib/services/interceptors/service.d.ts +37 -0
  574. package/dist/types/@webex/webex-core/src/lib/services/metrics.d.ts +4 -0
  575. package/dist/types/@webex/webex-core/src/lib/services/service-catalog.d.ts +5 -0
  576. package/dist/types/@webex/webex-core/src/lib/services/service-fed-ramp.d.ts +5 -0
  577. package/dist/types/@webex/webex-core/src/lib/services/service-host.d.ts +217 -0
  578. package/dist/types/@webex/webex-core/src/lib/services/service-registry.d.ts +271 -0
  579. package/dist/types/@webex/webex-core/src/lib/services/service-state.d.ts +46 -0
  580. package/dist/types/@webex/webex-core/src/lib/services/service-url.d.ts +5 -0
  581. package/dist/types/@webex/webex-core/src/lib/services/services.d.ts +5 -0
  582. package/dist/types/@webex/webex-core/src/lib/stateless-webex-plugin.d.ts +48 -0
  583. package/dist/types/@webex/webex-core/src/lib/storage/decorators.d.ts +15 -0
  584. package/dist/types/@webex/webex-core/src/lib/storage/errors.d.ts +10 -0
  585. package/dist/types/@webex/webex-core/src/lib/storage/index.d.ts +5 -0
  586. package/dist/types/@webex/webex-core/src/lib/storage/make-webex-plugin-store.d.ts +8 -0
  587. package/dist/types/@webex/webex-core/src/lib/storage/make-webex-store.d.ts +48 -0
  588. package/dist/types/@webex/webex-core/src/lib/storage/memory-store-adapter.d.ts +18 -0
  589. package/dist/types/@webex/webex-core/src/lib/webex-core-plugin-mixin.d.ts +8 -0
  590. package/dist/types/@webex/webex-core/src/lib/webex-http-error.d.ts +12 -0
  591. package/dist/types/@webex/webex-core/src/lib/webex-internal-core-plugin-mixin.d.ts +8 -0
  592. package/dist/types/@webex/webex-core/src/lib/webex-plugin.d.ts +5 -0
  593. package/dist/types/@webex/webex-core/src/plugins/logger.d.ts +2 -0
  594. package/dist/types/@webex/webex-core/src/webex-core.d.ts +31 -0
  595. package/dist/types/@webex/webex-core/src/webex-internal-core.d.ts +7 -0
  596. package/dist/types/@webex/webex-core/test/integration/spec/credentials/credentials.d.ts +1 -0
  597. package/dist/types/@webex/webex-core/test/integration/spec/credentials/token.d.ts +1 -0
  598. package/dist/types/@webex/webex-core/test/integration/spec/services/service-catalog.d.ts +1 -0
  599. package/dist/types/@webex/webex-core/test/integration/spec/services/services.d.ts +1 -0
  600. package/dist/types/@webex/webex-core/test/integration/spec/webex-core.d.ts +1 -0
  601. package/dist/types/@webex/webex-core/test/unit/spec/_setup.d.ts +1 -0
  602. package/dist/types/@webex/webex-core/test/unit/spec/credentials/credentials.d.ts +1 -0
  603. package/dist/types/@webex/webex-core/test/unit/spec/credentials/token.d.ts +1 -0
  604. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/auth.d.ts +1 -0
  605. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/default-options.d.ts +1 -0
  606. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/embargo.d.ts +1 -0
  607. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/network-timing.d.ts +1 -0
  608. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/payload-transformer.d.ts +1 -0
  609. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/rate-limit.d.ts +1 -0
  610. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/redirect.d.ts +1 -0
  611. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/request-timing.d.ts +1 -0
  612. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/user-agent.d.ts +1 -0
  613. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/webex-tracking-id.d.ts +1 -0
  614. package/dist/types/@webex/webex-core/test/unit/spec/interceptors/webex-user-agent.d.ts +1 -0
  615. package/dist/types/@webex/webex-core/test/unit/spec/lib/batcher.d.ts +1 -0
  616. package/dist/types/@webex/webex-core/test/unit/spec/lib/page.d.ts +1 -0
  617. package/dist/types/@webex/webex-core/test/unit/spec/lib/webex-plugin.d.ts +1 -0
  618. package/dist/types/@webex/webex-core/test/unit/spec/services/interceptors/server-error.d.ts +1 -0
  619. package/dist/types/@webex/webex-core/test/unit/spec/services/interceptors/service.d.ts +1 -0
  620. package/dist/types/@webex/webex-core/test/unit/spec/services/service-catalog.d.ts +1 -0
  621. package/dist/types/@webex/webex-core/test/unit/spec/services/service-host.d.ts +1 -0
  622. package/dist/types/@webex/webex-core/test/unit/spec/services/service-registry.d.ts +1 -0
  623. package/dist/types/@webex/webex-core/test/unit/spec/services/service-state.d.ts +1 -0
  624. package/dist/types/@webex/webex-core/test/unit/spec/services/service-url.d.ts +1 -0
  625. package/dist/types/@webex/webex-core/test/unit/spec/services/services.d.ts +1 -0
  626. package/dist/types/@webex/webex-core/test/unit/spec/storage/persist.d.ts +1 -0
  627. package/dist/types/@webex/webex-core/test/unit/spec/storage/storage-adapter.d.ts +1 -0
  628. package/dist/types/@webex/webex-core/test/unit/spec/storage/wait-for-value.d.ts +1 -0
  629. package/dist/types/@webex/webex-core/test/unit/spec/webex-core.d.ts +1 -0
  630. package/dist/types/@webex/webex-core/test/unit/spec/webex-internal-core.d.ts +1 -0
  631. package/dist/types/@webex/webrtc/src/analyzer.d.ts +0 -0
  632. package/dist/types/@webex/webrtc/src/constants.d.ts +0 -0
  633. package/dist/types/@webex/webrtc/src/extractor.d.ts +0 -0
  634. package/dist/types/@webex/webrtc/src/generator.d.ts +0 -0
  635. package/dist/types/@webex/webrtc/src/history.d.ts +0 -0
  636. package/dist/types/@webex/webrtc/src/ice.d.ts +0 -0
  637. package/dist/types/@webex/webrtc/src/index.d.ts +31 -0
  638. package/dist/types/@webex/webrtc/src/logger.d.ts +0 -0
  639. package/dist/types/@webex/webrtc/src/parser.d.ts +0 -0
  640. package/dist/types/@webex/webrtc/src/stats.d.ts +0 -0
  641. package/dist/types/@webex/webrtc/src/transformer.d.ts +0 -0
  642. package/dist/types/@webex/webrtc/src/validator.d.ts +0 -0
  643. package/dist/types/@webex/xunit-with-logs/src/index.d.ts +43 -0
  644. package/dist/types/webex/browser.d.ts +5 -0
  645. package/dist/types/webex/env.d.ts +2 -0
  646. package/dist/types/webex/src/_setup.d.ts +1 -0
  647. package/dist/types/webex/src/config-storage.d.ts +5 -0
  648. package/dist/types/webex/src/config-storage.shim.d.ts +5 -0
  649. package/dist/types/webex/src/config.d.ts +17 -0
  650. package/dist/types/webex/src/index.d.ts +11 -0
  651. package/dist/types/webex/src/webex.d.ts +9 -0
  652. package/dist/types/webex/test/integration/spec/commonjs.d.ts +1 -0
  653. package/dist/types/webex/test/integration/spec/env.d.ts +1 -0
  654. package/dist/types/webex/test/integration/spec/init.d.ts +1 -0
  655. package/dist/types/webex/test/integration/spec/request.d.ts +1 -0
  656. package/dist/types/webex/test/unit/spec/webex.d.ts +1 -0
  657. package/dist/types/webex/umd/webex.min.d.ts +2 -0
  658. package/package.json +2 -2
  659. package/src/assertions/index.js +55 -49
  660. package/src/assertions/primitives.js +1 -1
  661. package/src/assertions/schemas.js +16 -43
  662. package/src/assertions/should-to-assert.js +0 -1
  663. package/src/index.js +0 -1
@@ -5,36 +5,33 @@
5
5
  */
6
6
 
7
7
  /* eslint-disable no-invalid-this */
8
- var checkError = require('check-error');
9
8
 
9
+ var checkError = require('check-error');
10
10
  var file = require('@webex/test-helper-file');
11
-
12
11
  var schemas = require('./schemas');
13
-
14
12
  var primitives = require('./primitives');
13
+
15
14
  /**
16
15
  * @param {Object} chai
17
16
  * @returns {undefined}
18
17
  */
19
-
20
-
21
18
  module.exports = function registerAssertions(chai) {
22
- var Assertion = chai.Assertion; // The follow assertion is adapted from chai-as-promised as that library is no
23
- // longer compatible with IE 11
19
+ var Assertion = chai.Assertion;
24
20
 
21
+ // The follow assertion is adapted from chai-as-promised as that library is no
22
+ // longer compatible with IE 11
25
23
  Assertion.addMethod('rejectedWith', function expectedRejection(errorLike, errMsgMatcher, msg) {
26
24
  var assert = chai.assert;
27
25
  var flag = chai.util.flag;
28
-
29
26
  if (msg) {
30
27
  flag(this, 'message', msg);
31
28
  }
32
-
33
29
  var promise = this.then ? this : this._obj;
34
30
  return promise.then(function (actual) {
35
31
  assert(false, 'expected #{this} to be rejected but it was fulfilled with #{act}', null, errorLike && errorLike.toString(), actual);
36
32
  return actual;
37
- }, // complexity is result of basic ternaries
33
+ },
34
+ // complexity is result of basic ternaries
38
35
  // eslint-disable-next-line complexity
39
36
  function onReject(reason) {
40
37
  if (errorLike) {
@@ -43,70 +40,56 @@ module.exports = function registerAssertions(chai) {
43
40
  this.assert(false, 'expected #{this} to be rejected with #{exp} but was rejected with #{act}', null, errorLike.toString(), reason.toString());
44
41
  }
45
42
  }
46
-
47
43
  if (!checkError.compatibleConstructor(reason, errorLike)) {
48
44
  this.assert(false, 'expected #{this} to be rejected with #{exp} but was rejected with #{act}', null, errorLike instanceof Error ? errorLike.toString() : errorLike && checkError.getConstructorName(errorLike), reason instanceof Error ? reason.toString() : reason && checkError.getConstructorName(reason));
49
45
  }
50
46
  }
51
-
52
47
  if (reason && errMsgMatcher) {
53
48
  var placeholder = 'including';
54
-
55
49
  if (errMsgMatcher instanceof RegExp) {
56
50
  placeholder = 'matching';
57
51
  }
58
-
59
52
  if (!checkError.compatibleMessage(reason, errMsgMatcher)) {
60
53
  this.assert(false, "expected #{this} to be be rejected with error ".concat(placeholder, " #{exp} but got #{act}"), null, errMsgMatcher, checkError.getMessage(reason));
61
54
  }
62
55
  }
63
-
64
56
  return reason;
65
57
  });
66
58
  });
67
-
68
59
  chai.assert.isRejected = function isRejected(promise, errorLike, errMsgMatcher, msg) {
69
60
  if (typeof errorLike === 'string' || errorLike instanceof RegExp) {
70
61
  errMsgMatcher = errorLike;
71
62
  errorLike = null;
72
63
  }
73
-
74
64
  return new Assertion(promise, msg, chai.assert.isRejected, true).to.be.rejectedWith(errorLike, errMsgMatcher);
75
65
  };
76
- /* eslint no-unused-expressions: [0] */
77
66
 
67
+ /* eslint no-unused-expressions: [0] */
78
68
 
79
69
  Assertion.addMethod('statusCode', function expectStatusCode(statusCode) {
80
70
  this.assert((this._obj.statusCode || this._obj) === statusCode, "expected #{this} to have an HTTP Status Code of ".concat(statusCode), "expected #{this} to not have an HTTP Status Code of ".concat(statusCode));
81
71
  });
82
-
83
72
  chai.assert.statusCode = function assertStatusCode(obj, statusCode, msg) {
84
73
  new Assertion(obj, msg).to.have.statusCode(statusCode);
85
74
  };
86
-
87
75
  Assertion.addProperty('blobLike', function blobLike() {
88
76
  this.assert(file.isBlobLike(this._obj), 'expected #{this} to be a Buffer (nodejs) or Blob (browser)', 'expected #{this} not to be a Buffer (nodejs) or Blob (browser)');
89
77
  });
90
78
  Assertion.addProperty('bufferLike', function bufferLike() {
91
79
  this.assert(file.isBufferLike(this._obj), 'expected #{this} to be a Buffer (nodejs) or ArrayBuffer (browser)', 'expected #{this} not to be a Buffer (nodejs) or ArrayBuffer (browser)');
92
80
  });
93
-
94
81
  chai.assert.isBlobLike = function isBlobLike(obj, msg) {
95
82
  new Assertion(obj, msg).to.be.blobLike;
96
83
  };
97
-
98
84
  chai.assert.isNotBlobLike = function isNotBlobLike(obj, msg) {
99
85
  new Assertion(obj, msg).not.to.be.blobLike;
100
86
  };
101
-
102
87
  chai.assert.isBufferLike = function isBufferLike(obj, msg) {
103
88
  new Assertion(obj, msg).to.be.bufferLike;
104
89
  };
105
-
106
90
  chai.assert.isNotBufferLike = function isNotBufferLike(obj, msg) {
107
91
  new Assertion(obj, msg).not.to.be.bufferLike;
108
92
  };
109
-
110
93
  primitives(chai);
111
94
  schemas(chai);
112
95
  };
@@ -1 +1 @@
1
- {"version":3,"names":["checkError","require","file","schemas","primitives","module","exports","registerAssertions","chai","Assertion","addMethod","expectedRejection","errorLike","errMsgMatcher","msg","assert","flag","util","promise","then","_obj","actual","toString","onReject","reason","Error","compatibleInstance","compatibleConstructor","getConstructorName","placeholder","RegExp","compatibleMessage","getMessage","isRejected","to","be","rejectedWith","expectStatusCode","statusCode","assertStatusCode","obj","have","addProperty","blobLike","isBlobLike","bufferLike","isBufferLike","isNotBlobLike","not","isNotBufferLike"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* eslint-disable no-invalid-this */\n\nconst checkError = require('check-error');\nconst file = require('@webex/test-helper-file');\n\nconst schemas = require('./schemas');\nconst primitives = require('./primitives');\n\n/**\n * @param {Object} chai\n * @returns {undefined}\n */\nmodule.exports = function registerAssertions(chai) {\n const {Assertion} = chai;\n\n // The follow assertion is adapted from chai-as-promised as that library is no\n // longer compatible with IE 11\n Assertion.addMethod('rejectedWith', function expectedRejection(errorLike, errMsgMatcher, msg) {\n const {assert} = chai;\n const {flag} = chai.util;\n\n if (msg) {\n flag(this, 'message', msg);\n }\n\n const promise = this.then ? this : this._obj;\n\n return promise\n .then(\n (actual) => {\n assert(\n false,\n 'expected #{this} to be rejected but it was fulfilled with #{act}',\n null,\n errorLike && errorLike.toString(),\n actual\n );\n\n return actual;\n },\n // complexity is result of basic ternaries\n // eslint-disable-next-line complexity\n function onReject(reason) {\n if (errorLike) {\n if (errorLike instanceof Error) {\n if (!checkError.compatibleInstance(reason, errorLike)) {\n this.assert(\n false,\n 'expected #{this} to be rejected with #{exp} but was rejected with #{act}',\n null,\n errorLike.toString(),\n reason.toString()\n );\n }\n }\n\n if (!checkError.compatibleConstructor(reason, errorLike)) {\n this.assert(\n false,\n 'expected #{this} to be rejected with #{exp} but was rejected with #{act}',\n null,\n errorLike instanceof Error ? errorLike.toString() : errorLike && checkError.getConstructorName(errorLike),\n reason instanceof Error ? reason.toString() : reason && checkError.getConstructorName(reason)\n );\n }\n }\n\n if (reason && errMsgMatcher) {\n let placeholder = 'including';\n\n if (errMsgMatcher instanceof RegExp) {\n placeholder = 'matching';\n }\n\n if (!checkError.compatibleMessage(reason, errMsgMatcher)) {\n this.assert(\n false,\n `expected #{this} to be be rejected with error ${placeholder} #{exp} but got #{act}`,\n null,\n errMsgMatcher,\n checkError.getMessage(reason)\n );\n }\n }\n\n return reason;\n }\n );\n });\n\n chai.assert.isRejected = function isRejected(promise, errorLike, errMsgMatcher, msg) {\n if (typeof errorLike === 'string' || errorLike instanceof RegExp) {\n errMsgMatcher = errorLike;\n errorLike = null;\n }\n\n return new Assertion(promise, msg, chai.assert.isRejected, true).to.be.rejectedWith(errorLike, errMsgMatcher);\n };\n\n /* eslint no-unused-expressions: [0] */\n\n Assertion.addMethod('statusCode', function expectStatusCode(statusCode) {\n this.assert(\n (this._obj.statusCode || this._obj) === statusCode,\n `expected #{this} to have an HTTP Status Code of ${statusCode}`,\n `expected #{this} to not have an HTTP Status Code of ${statusCode}`\n );\n });\n\n chai.assert.statusCode = function assertStatusCode(obj, statusCode, msg) {\n new Assertion(obj, msg).to.have.statusCode(statusCode);\n };\n\n Assertion.addProperty('blobLike', function blobLike() {\n this.assert(\n file.isBlobLike(this._obj),\n 'expected #{this} to be a Buffer (nodejs) or Blob (browser)',\n 'expected #{this} not to be a Buffer (nodejs) or Blob (browser)'\n );\n });\n\n Assertion.addProperty('bufferLike', function bufferLike() {\n this.assert(\n file.isBufferLike(this._obj),\n 'expected #{this} to be a Buffer (nodejs) or ArrayBuffer (browser)',\n 'expected #{this} not to be a Buffer (nodejs) or ArrayBuffer (browser)'\n );\n });\n\n chai.assert.isBlobLike = function isBlobLike(obj, msg) {\n new Assertion(obj, msg).to.be.blobLike;\n };\n\n chai.assert.isNotBlobLike = function isNotBlobLike(obj, msg) {\n new Assertion(obj, msg).not.to.be.blobLike;\n };\n\n chai.assert.isBufferLike = function isBufferLike(obj, msg) {\n new Assertion(obj, msg).to.be.bufferLike;\n };\n\n chai.assert.isNotBufferLike = function isNotBufferLike(obj, msg) {\n new Assertion(obj, msg).not.to.be.bufferLike;\n };\n\n primitives(chai);\n schemas(chai);\n};\n"],"mappings":";;AAAA;AACA;AACA;;AAEA;AAEA,IAAMA,UAAU,GAAGC,OAAO,CAAC,aAAD,CAA1B;;AACA,IAAMC,IAAI,GAAGD,OAAO,CAAC,yBAAD,CAApB;;AAEA,IAAME,OAAO,GAAGF,OAAO,CAAC,WAAD,CAAvB;;AACA,IAAMG,UAAU,GAAGH,OAAO,CAAC,cAAD,CAA1B;AAEA;AACA;AACA;AACA;;;AACAI,MAAM,CAACC,OAAP,GAAiB,SAASC,kBAAT,CAA4BC,IAA5B,EAAkC;EACjD,IAAOC,SAAP,GAAoBD,IAApB,CAAOC,SAAP,CADiD,CAGjD;EACA;;EACAA,SAAS,CAACC,SAAV,CAAoB,cAApB,EAAoC,SAASC,iBAAT,CAA2BC,SAA3B,EAAsCC,aAAtC,EAAqDC,GAArD,EAA0D;IAC5F,IAAOC,MAAP,GAAiBP,IAAjB,CAAOO,MAAP;IACA,IAAOC,IAAP,GAAeR,IAAI,CAACS,IAApB,CAAOD,IAAP;;IAEA,IAAIF,GAAJ,EAAS;MACPE,IAAI,CAAC,IAAD,EAAO,SAAP,EAAkBF,GAAlB,CAAJ;IACD;;IAED,IAAMI,OAAO,GAAG,KAAKC,IAAL,GAAY,IAAZ,GAAmB,KAAKC,IAAxC;IAEA,OAAOF,OAAO,CACXC,IADI,CAEH,UAACE,MAAD,EAAY;MACVN,MAAM,CACJ,KADI,EAEJ,kEAFI,EAGJ,IAHI,EAIJH,SAAS,IAAIA,SAAS,CAACU,QAAV,EAJT,EAKJD,MALI,CAAN;MAQA,OAAOA,MAAP;IACD,CAZE,EAaH;IACA;IACA,SAASE,Q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AAI,CAACO,MAAL,CAAY6B,UAAZ,GAAyB,SAASA,UAAT,CAAoBJ,GAApB,EAAyB1B,GAAzB,EAA8B;IACrD,IAAIL,SAAJ,CAAc+B,GAAd,EAAmB1B,GAAnB,EAAwBoB,EAAxB,CAA2BC,EAA3B,CAA8BQ,QAA9B;EACD,CAFD;;EAIAnC,IAAI,CAACO,MAAL,CAAYgC,aAAZ,GAA4B,SAASA,aAAT,CAAuBP,GAAvB,EAA4B1B,GAA5B,EAAiC;IAC3D,IAAIL,SAAJ,CAAc+B,GAAd,EAAmB1B,GAAnB,EAAwBkC,GAAxB,CAA4Bd,EAA5B,CAA+BC,EAA/B,CAAkCQ,QAAlC;EACD,CAFD;;EAIAnC,IAAI,CAACO,MAAL,CAAY+B,YAAZ,GAA2B,SAASA,YAAT,CAAsBN,GAAtB,EAA2B1B,GAA3B,EAAgC;IACzD,IAAIL,SAAJ,CAAc+B,GAAd,EAAmB1B,GAAnB,EAAwBoB,EAAxB,CAA2BC,EAA3B,CAA8BU,UAA9B;EACD,CAFD;;EAIArC,IAAI,CAACO,MAAL,CAAYkC,eAAZ,GAA8B,SAASA,eAAT,CAAyBT,GAAzB,EAA8B1B,GAA9B,EAAmC;IAC/D,IAAIL,SAAJ,CAAc+B,GAAd,EAAmB1B,GAAnB,EAAwBkC,GAAxB,CAA4Bd,EAA5B,CAA+BC,EAA/B,CAAkCU,UAAlC;EACD,CAFD;;EAIAzC,UAAU,CAACI,IAAD,CAAV;EACAL,OAAO,CAACK,IAAD,CAAP;AACD,CAvID"}
1
+ {"version":3,"names":["checkError","require","file","schemas","primitives","module","exports","registerAssertions","chai","Assertion","addMethod","expectedRejection","errorLike","errMsgMatcher","msg","assert","flag","util","promise","then","_obj","actual","toString","onReject","reason","Error","compatibleInstance","compatibleConstructor","getConstructorName","placeholder","RegExp","compatibleMessage","getMessage","isRejected","to","be","rejectedWith","expectStatusCode","statusCode","assertStatusCode","obj","have","addProperty","blobLike","isBlobLike","bufferLike","isBufferLike","isNotBlobLike","not","isNotBufferLike"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* eslint-disable no-invalid-this */\n\nconst checkError = require('check-error');\nconst file = require('@webex/test-helper-file');\n\nconst schemas = require('./schemas');\nconst primitives = require('./primitives');\n\n/**\n * @param {Object} chai\n * @returns {undefined}\n */\nmodule.exports = function registerAssertions(chai) {\n const {Assertion} = chai;\n\n // The follow assertion is adapted from chai-as-promised as that library is no\n // longer compatible with IE 11\n Assertion.addMethod('rejectedWith', function expectedRejection(errorLike, errMsgMatcher, msg) {\n const {assert} = chai;\n const {flag} = chai.util;\n\n if (msg) {\n flag(this, 'message', msg);\n }\n\n const promise = this.then ? this : this._obj;\n\n return promise.then(\n (actual) => {\n assert(\n false,\n 'expected #{this} to be rejected but it was fulfilled with #{act}',\n null,\n errorLike && errorLike.toString(),\n actual\n );\n\n return actual;\n },\n // complexity is result of basic ternaries\n // eslint-disable-next-line complexity\n function onReject(reason) {\n if (errorLike) {\n if (errorLike instanceof Error) {\n if (!checkError.compatibleInstance(reason, errorLike)) {\n this.assert(\n false,\n 'expected #{this} to be rejected with #{exp} but was rejected with #{act}',\n null,\n errorLike.toString(),\n reason.toString()\n );\n }\n }\n\n if (!checkError.compatibleConstructor(reason, errorLike)) {\n this.assert(\n false,\n 'expected #{this} to be rejected with #{exp} but was rejected with #{act}',\n null,\n errorLike instanceof Error\n ? errorLike.toString()\n : errorLike && checkError.getConstructorName(errorLike),\n reason instanceof Error\n ? reason.toString()\n : reason && checkError.getConstructorName(reason)\n );\n }\n }\n\n if (reason && errMsgMatcher) {\n let placeholder = 'including';\n\n if (errMsgMatcher instanceof RegExp) {\n placeholder = 'matching';\n }\n\n if (!checkError.compatibleMessage(reason, errMsgMatcher)) {\n this.assert(\n false,\n `expected #{this} to be be rejected with error ${placeholder} #{exp} but got #{act}`,\n null,\n errMsgMatcher,\n checkError.getMessage(reason)\n );\n }\n }\n\n return reason;\n }\n );\n });\n\n chai.assert.isRejected = function isRejected(promise, errorLike, errMsgMatcher, msg) {\n if (typeof errorLike === 'string' || errorLike instanceof RegExp) {\n errMsgMatcher = errorLike;\n errorLike = null;\n }\n\n return new Assertion(promise, msg, chai.assert.isRejected, true).to.be.rejectedWith(\n errorLike,\n errMsgMatcher\n );\n };\n\n /* eslint no-unused-expressions: [0] */\n\n Assertion.addMethod('statusCode', function expectStatusCode(statusCode) {\n this.assert(\n (this._obj.statusCode || this._obj) === statusCode,\n `expected #{this} to have an HTTP Status Code of ${statusCode}`,\n `expected #{this} to not have an HTTP Status Code of ${statusCode}`\n );\n });\n\n chai.assert.statusCode = function assertStatusCode(obj, statusCode, msg) {\n new Assertion(obj, msg).to.have.statusCode(statusCode);\n };\n\n Assertion.addProperty('blobLike', function blobLike() {\n this.assert(\n file.isBlobLike(this._obj),\n 'expected #{this} to be a Buffer (nodejs) or Blob (browser)',\n 'expected #{this} not to be a Buffer (nodejs) or Blob (browser)'\n );\n });\n\n Assertion.addProperty('bufferLike', function bufferLike() {\n this.assert(\n file.isBufferLike(this._obj),\n 'expected #{this} to be a Buffer (nodejs) or ArrayBuffer (browser)',\n 'expected #{this} not to be a Buffer (nodejs) or ArrayBuffer (browser)'\n );\n });\n\n chai.assert.isBlobLike = function isBlobLike(obj, msg) {\n new Assertion(obj, msg).to.be.blobLike;\n };\n\n chai.assert.isNotBlobLike = function isNotBlobLike(obj, msg) {\n new Assertion(obj, msg).not.to.be.blobLike;\n };\n\n chai.assert.isBufferLike = function isBufferLike(obj, msg) {\n new Assertion(obj, msg).to.be.bufferLike;\n };\n\n chai.assert.isNotBufferLike = function isNotBufferLike(obj, msg) {\n new Assertion(obj, msg).not.to.be.bufferLike;\n };\n\n primitives(chai);\n schemas(chai);\n};\n"],"mappings":";;AAAA;AACA;AACA;;AAEA;;AAEA,IAAMA,UAAU,GAAGC,OAAO,CAAC,aAAa,CAAC;AACzC,IAAMC,IAAI,GAAGD,OAAO,CAAC,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;EAEDnC,IAAI,CAACO,MAAM,CAAC+B,YAAY,GAAG,SAASA,YAAY,CAACN,GAAG,EAAE1B,GAAG,EAAE;IACzD,IAAIL,SAAS,CAAC+B,GAAG,EAAE1B,GAAG,CAAC,CAACoB,EAAE,CAACC,EAAE,CAACU,UAAU;EAC1C,CAAC;EAEDrC,IAAI,CAACO,MAAM,CAACkC,eAAe,GAAG,SAASA,eAAe,CAACT,GAAG,EAAE1B,GAAG,EAAE;IAC/D,IAAIL,SAAS,CAAC+B,GAAG,EAAE1B,GAAG,CAAC,CAACkC,GAAG,CAACd,EAAE,CAACC,EAAE,CAACU,UAAU;EAC9C,CAAC;EAEDzC,UAAU,CAACI,IAAI,CAAC;EAChBL,OAAO,CAACK,IAAI,CAAC;AACf,CAAC"}
@@ -1,28 +1,25 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
4
-
5
4
  var _parseInt2 = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/parse-int"));
6
-
7
5
  var _keys = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/keys"));
8
-
9
6
  /*!
10
7
  * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
11
8
  */
12
9
 
13
10
  /* eslint-disable no-invalid-this */
14
-
15
11
  /* eslint-disable func-names */
12
+
16
13
  var shouldToAssert = require('./should-to-assert');
14
+
17
15
  /**
18
16
  * @param {Object} chai
19
17
  * @returns {undefined}
20
18
  */
21
-
22
-
23
19
  module.exports = function (chai) {
24
20
  var Assertion = chai.Assertion,
25
- assert = chai.assert;
21
+ assert = chai.assert;
22
+
26
23
  /* eslint no-unused-expressions: [0] */
27
24
 
28
25
  var uuidPattern = /^[a-f\d]{8}(?:-[a-f\d]{4}){3}-[a-f\d]{12}$/;
@@ -46,29 +43,23 @@ module.exports = function (chai) {
46
43
  });
47
44
  Assertion.addMethod('properties', function (properties) {
48
45
  var _this = this;
49
-
50
46
  properties.forEach(function (property) {
51
47
  assert.property(_this._obj, property);
52
48
  });
53
49
  });
54
-
55
50
  chai.assert.properties = function (obj, properties, msg) {
56
51
  new Assertion(obj, msg).to.have.properties(properties);
57
52
  };
58
-
59
53
  Assertion.addMethod('strictProperties', function (properties) {
60
54
  var _this2 = this;
61
-
62
55
  properties.forEach(function (property) {
63
56
  assert.property(_this2._obj, property);
64
57
  });
65
58
  assert.deepEqual((0, _keys.default)(this._obj).sort(), properties.sort());
66
59
  });
67
-
68
60
  chai.assert.strictProperties = function (obj, properties, msg) {
69
61
  new Assertion(obj, msg).to.have.strictProperties(properties);
70
62
  };
71
-
72
63
  shouldToAssert(chai, {
73
64
  hydraId: 'isHydraID',
74
65
  uuid: 'isUUID',
@@ -1 +1 @@
1
- {"version":3,"names":["shouldToAssert","require","module","exports","chai","Assertion","assert","uuidPattern","emailPattern","addProperty","isString","_obj","notMatch","match","isNotNumber","notEqual","toString","addMethod","properties","forEach","property","obj","msg","to","have","deepEqual","sort","strictProperties","hydraId","uuid","email","isoDate"],"sources":["primitives.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* eslint-disable no-invalid-this */\n/* eslint-disable func-names */\n\nconst shouldToAssert = require('./should-to-assert');\n\n/**\n * @param {Object} chai\n * @returns {undefined}\n */\nmodule.exports = function (chai) {\n const {Assertion, assert} = chai;\n\n /* eslint no-unused-expressions: [0] */\n\n const uuidPattern = /^[a-f\\d]{8}(?:-[a-f\\d]{4}){3}-[a-f\\d]{12}$/;\n const emailPattern = /^[^\\s]+?@[^\\s]+?$/;\n\n Assertion.addProperty('hydraId', function () {\n assert.isString(this._obj);\n assert.notMatch(this._obj, uuidPattern);\n });\n\n Assertion.addProperty('uuid', function () {\n assert.isString(this._obj);\n assert.match(this._obj, uuidPattern);\n });\n\n Assertion.addProperty('email', function () {\n assert.isString(this._obj);\n assert.match(this._obj, emailPattern);\n });\n\n Assertion.addProperty('isoDate', function () {\n assert.isString(this._obj);\n assert.isNotNumber(this._obj);\n assert.notEqual(parseInt(this._obj, 10).toString(), this._obj);\n });\n\n Assertion.addMethod('properties', function (properties) {\n properties.forEach((property) => {\n assert.property(this._obj, property);\n });\n });\n\n chai.assert.properties = function (obj, properties, msg) {\n new Assertion(obj, msg).to.have.properties(properties);\n };\n\n Assertion.addMethod('strictProperties', function (properties) {\n properties.forEach((property) => {\n assert.property(this._obj, property);\n });\n\n assert.deepEqual(Object.keys(this._obj).sort(), properties.sort());\n });\n\n chai.assert.strictProperties = function (obj, properties, msg) {\n new Assertion(obj, msg).to.have.strictProperties(properties);\n };\n\n shouldToAssert(chai, {\n hydraId: 'isHydraID',\n uuid: 'isUUID',\n email: 'isEmail',\n isoDate: 'isISODate'\n });\n};\n"],"mappings":";;;;;;;;AAAA;AACA;AACA;;AAEA;;AACA;AAEA,IAAMA,cAAc,GAAGC,OAAO,CAAC,oBAAD,CAA9B;AAEA;AACA;AACA;AACA;;;AACAC,MAAM,CAACC,OAAP,GAAiB,UAAUC,IAAV,EAAgB;EAC/B,IAAOC,SAAP,GAA4BD,IAA5B,CAAOC,SAAP;EAAA,IAAkBC,MAAlB,GAA4BF,IAA5B,CAAkBE,MAAlB;EAEA;;EAEA,IAAMC,WAAW,GAAG,4CAApB;EACA,IAAMC,YAAY,GAAG,mBAArB;EAEAH,SAAS,CAACI,WAAV,CAAsB,SAAtB,EAAiC,YAAY;IAC3CH,MAAM,CAACI,QAAP,CAAgB,KAAKC,IAArB;IACAL,MAAM,CAACM,QAAP,CAAgB,KAAKD,IAArB,EAA2BJ,WAA3B;EACD,CAHD;EAKAF,SAAS,CAACI,WAAV,CAAsB,MAAtB,EAA8B,YAAY;IACxCH,MAAM,CAACI,QAAP,CAAgB,KAAKC,IAArB;IACAL,MAAM,CAACO,KAAP,CAAa,KAAKF,IAAlB,EAAwBJ,WAAxB;EACD,CAHD;EAKAF,SAAS,CAACI,WAAV,CAAsB,OAAtB,EAA+B,YAAY;IACzCH,MAAM,CAAC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AAgC;IAC7D,IAAIjB,SAAJ,CAAcgB,GAAd,EAAmBC,GAAnB,EAAwBC,EAAxB,CAA2BC,IAA3B,CAAgCG,gBAAhC,CAAiDT,UAAjD;EACD,CAFD;;EAIAlB,cAAc,CAACI,IAAD,EAAO;IACnBwB,OAAO,EAAE,WADU;IAEnBC,IAAI,EAAE,QAFa;IAGnBC,KAAK,EAAE,SAHY;IAInBC,OAAO,EAAE;EAJU,CAAP,CAAd;AAMD,CAzDD"}
1
+ {"version":3,"names":["shouldToAssert","require","module","exports","chai","Assertion","assert","uuidPattern","emailPattern","addProperty","isString","_obj","notMatch","match","isNotNumber","notEqual","toString","addMethod","properties","forEach","property","obj","msg","to","have","deepEqual","sort","strictProperties","hydraId","uuid","email","isoDate"],"sources":["primitives.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* eslint-disable no-invalid-this */\n/* eslint-disable func-names */\n\nconst shouldToAssert = require('./should-to-assert');\n\n/**\n * @param {Object} chai\n * @returns {undefined}\n */\nmodule.exports = function (chai) {\n const {Assertion, assert} = chai;\n\n /* eslint no-unused-expressions: [0] */\n\n const uuidPattern = /^[a-f\\d]{8}(?:-[a-f\\d]{4}){3}-[a-f\\d]{12}$/;\n const emailPattern = /^[^\\s]+?@[^\\s]+?$/;\n\n Assertion.addProperty('hydraId', function () {\n assert.isString(this._obj);\n assert.notMatch(this._obj, uuidPattern);\n });\n\n Assertion.addProperty('uuid', function () {\n assert.isString(this._obj);\n assert.match(this._obj, uuidPattern);\n });\n\n Assertion.addProperty('email', function () {\n assert.isString(this._obj);\n assert.match(this._obj, emailPattern);\n });\n\n Assertion.addProperty('isoDate', function () {\n assert.isString(this._obj);\n assert.isNotNumber(this._obj);\n assert.notEqual(parseInt(this._obj, 10).toString(), this._obj);\n });\n\n Assertion.addMethod('properties', function (properties) {\n properties.forEach((property) => {\n assert.property(this._obj, property);\n });\n });\n\n chai.assert.properties = function (obj, properties, msg) {\n new Assertion(obj, msg).to.have.properties(properties);\n };\n\n Assertion.addMethod('strictProperties', function (properties) {\n properties.forEach((property) => {\n assert.property(this._obj, property);\n });\n\n assert.deepEqual(Object.keys(this._obj).sort(), properties.sort());\n });\n\n chai.assert.strictProperties = function (obj, properties, msg) {\n new Assertion(obj, msg).to.have.strictProperties(properties);\n };\n\n shouldToAssert(chai, {\n hydraId: 'isHydraID',\n uuid: 'isUUID',\n email: 'isEmail',\n isoDate: 'isISODate',\n });\n};\n"],"mappings":";;;;;AAAA;AACA;AACA;;AAEA;AACA;;AAEA,IAAMA,cAAc,GAAGC,OAAO,CAAC,oBAAoB,CAAC;;AAEpD;AACA;AACA;AACA;AACAC,MAAM,CAACC,OAAO,GAAG,UAAUC,IAAI,EAAE;EAC/B,IAAOC,SAAS,GAAYD,IAAI,CAAzBC,SAAS;IAAEC,MAAM,GAAIF,IAAI,CAAdE,MAAM;;EAExB;;EAEA,IAAMC,WAAW,GAAG,4CAA4C;EAChE,IAAMC,YAAY,GAAG,mBAAmB;EAExCH,SAAS,CAACI,WAAW,CAAC,SAAS,EAAE,YAAY;IAC3CH,MAAM,CAACI,QAAQ,CAAC,IAAI,CAACC,IAAI,CAAC;IAC1BL,MAAM,CAACM,QAAQ,CAAC,IAAI,CAACD,IAAI,EAAEJ,WAAW,CAAC;EACzC,CAAC,CAAC;EAEFF,SAAS,CAACI,WAAW,CAAC,MAAM,EAAE,YAAY;IACxCH,MAAM,CAACI,QAAQ,CAAC,IAAI,CAACC,IAAI,CAAC;IAC1BL,MAAM,CAACO,KAAK,CAAC,IAAI,CAACF,IAAI,EAAEJ,WAAW,CAAC;EACtC,CAAC,CAAC;EAEFF,SAAS,CAACI,WAAW,CAAC,OAAO,EAAE,YAAY;IACzCH,MAAM,CAACI,QAAQ,CAAC,IAAI,CAACC,IAAI,CAAC;IAC1BL,MAAM,CAACO,KAAK,CAAC,IAAI,CAACF,IAAI,EAAEH,YAAY,CAAC;EACvC,CAAC,CAAC;EAEFH,S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AAC,CAACC,EAAE,CAACC,IAAI,CAACG,gBAAgB,CAACT,UAAU,CAAC;EAC9D,CAAC;EAEDlB,cAAc,CAACI,IAAI,EAAE;IACnBwB,OAAO,EAAE,WAAW;IACpBC,IAAI,EAAE,QAAQ;IACdC,KAAK,EAAE,SAAS;IAChBC,OAAO,EAAE;EACX,CAAC,CAAC;AACJ,CAAC"}
@@ -5,18 +5,18 @@
5
5
  */
6
6
 
7
7
  /* eslint-disable no-invalid-this */
8
-
9
8
  /* eslint-disable func-names */
9
+
10
10
  var shouldToAssert = require('./should-to-assert');
11
+
11
12
  /**
12
13
  * @param {Object} chai
13
14
  * @returns {undefined}
14
15
  */
15
-
16
-
17
16
  module.exports = function schemas(chai) {
18
17
  var Assertion = chai.Assertion,
19
- assert = chai.assert;
18
+ assert = chai.assert;
19
+
20
20
  /* eslint no-unused-expressions: [0] */
21
21
 
22
22
  Assertion.addProperty('AccessToken', function () {
@@ -29,11 +29,11 @@ module.exports = function schemas(chai) {
29
29
  Assertion.addProperty('FileItem', function () {
30
30
  assert.property(this._obj, 'displayName', 'The file has a display name');
31
31
  assert.property(this._obj, 'scr', 'The file has an scr');
32
- assert.property(this._obj.scr, 'loc', 'The file\'s scr has an loc');
32
+ assert.property(this._obj.scr, 'loc', "The file's scr has an loc");
33
33
  });
34
34
  Assertion.addProperty('ThumbnailItem', function () {
35
35
  assert.property(this._obj, 'scr', 'The thumbnail has an scr');
36
- assert.property(this._obj.scr, 'loc', 'The thumbnail\'s scr has an loc');
36
+ assert.property(this._obj.scr, 'loc', "The thumbnail's scr has an loc");
37
37
  assert.property(this._obj, 'height', 'The thumbnail has a width');
38
38
  assert.property(this._obj, 'width', 'The thumbnail has a width');
39
39
  });
@@ -62,7 +62,6 @@ module.exports = function schemas(chai) {
62
62
  assert.property(this._obj, 'encryptedDisplayName');
63
63
  assert.property(this._obj, 'displayName');
64
64
  assert.notEqual(this._obj.displayName, this._obj.encryptedDisplayName);
65
-
66
65
  if (this._obj.summary) {
67
66
  assert.property(this._obj, 'encryptedSummary');
68
67
  assert.notEqual(this._obj.summary, this._obj.encryptedSummary);
@@ -95,10 +94,12 @@ module.exports = function schemas(chai) {
95
94
  assert.property(this._obj, 'kmsMessage');
96
95
  assert.isObject(this._obj.kmsMessage);
97
96
  assert.equal(this._obj.kmsMessage.status, 201);
98
- assert.property(this._obj, 'defaultActivityEncryptionKeyUrl'); // This should be identical to NewEncryptedConversation, but it seems there
97
+ assert.property(this._obj, 'defaultActivityEncryptionKeyUrl');
98
+ // This should be identical to NewEncryptedConversation, but it seems there
99
99
  // was an api change at some point
100
100
  // assert.property(this._obj, 'kmsResourceObjectUrl');
101
101
  });
102
+
102
103
  Assertion.addProperty('EncryptedActivity', function () {
103
104
  assert.property(this._obj, 'encryptionKeyUrl');
104
105
  });
@@ -117,16 +118,13 @@ module.exports = function schemas(chai) {
117
118
  assert.isEmail(this._obj.personEmail);
118
119
  assert.isISODate(this._obj.created);
119
120
  assert.isHydraID(this._obj.roomId);
120
-
121
121
  if (this._obj.files) {
122
122
  assert.isArray(this._obj.files);
123
123
  assert.isAbove(this._obj.files.length, 0);
124
-
125
124
  this._obj.files.forEach(function (file) {
126
125
  assert.isMessageFile(file);
127
126
  });
128
127
  }
129
-
130
128
  if (this._obj.text) {
131
129
  assert.isString(this._obj.text);
132
130
  assert.isAbove(this._obj.text.length, 0);
@@ -139,17 +137,13 @@ module.exports = function schemas(chai) {
139
137
  assert.properties(this._obj, ['id', 'emails', 'created']);
140
138
  assert.isHydraID(this._obj.id);
141
139
  assert.isArray(this._obj.emails);
142
-
143
140
  this._obj.emails.forEach(function (email) {
144
141
  assert.isEmail(email);
145
142
  });
146
-
147
143
  assert.isISODate(this._obj.created);
148
-
149
144
  if (this._obj.familyName) {
150
145
  assert.isString(this._obj.familyName);
151
146
  }
152
-
153
147
  if (this._obj.givenName) {
154
148
  assert.isString(this._obj.givenName);
155
149
  }
@@ -185,9 +179,12 @@ module.exports = function schemas(chai) {
185
179
  assert.isString(this._obj.event);
186
180
  assert.isString(this._obj.filter);
187
181
  assert.isString(this._obj.targetUrl);
188
- assert.isString(this._obj.name); // waiting on completion of COLLAB-159
182
+ assert.isString(this._obj.name);
183
+
184
+ // waiting on completion of COLLAB-159
189
185
  // assert.isISODate(this._obj.created);
190
186
  });
187
+
191
188
  shouldToAssert(chai, ['AccessToken', 'Activity', 'Conversation', 'InternalTeam', 'FileItem', 'ThumbnailItem', 'OneOnOneConversation', 'GroupConversation', 'InternalTeamConversation', 'NewEncryptedConversation', 'NewEncryptedInternalTeam', 'EncryptedActivity', 'MachineAccount', 'Membership', 'Message', 'MessageFile', 'Person', 'Room', 'Team', 'TeamMembership', 'TeamRoom', 'Webhook']);
192
189
  };
193
190
  //# sourceMappingURL=schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["shouldToAssert","require","module","exports","schemas","chai","Assertion","assert","addProperty","properties","_obj","equal","objectType","property","scr","isDefined","notEqual","displayName","encryptedDisplayName","summary","encryptedSummary","isConversation","include","tags","notInclude","ok","includes","isObject","kmsMessage","status","isHydraID","id","roomId","personId","isEmail","personEmail","isISODate","created","isString","files","isArray","isAbove","length","forEach","file","isMessageFile","text","emails","email","familyName","givenName","title","name","teamId","isRoom","resource","event","filter","targetUrl"],"sources":["schemas.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* eslint-disable no-invalid-this */\n/* eslint-disable func-names */\n\nconst shouldToAssert = require('./should-to-assert');\n\n/**\n * @param {Object} chai\n * @returns {undefined}\n */\nmodule.exports = function schemas(chai) {\n const {Assertion, assert} = chai;\n\n /* eslint no-unused-expressions: [0] */\n\n Assertion.addProperty('AccessToken', function () {\n assert.properties(this._obj, [\n 'access_token',\n 'token_type',\n 'expires',\n 'expires_in',\n 'refresh_token',\n 'refresh_token_expires',\n 'refresh_token_expires_in'\n ]);\n });\n\n Assertion.addProperty('Activity', function () {\n assert.properties(this._obj, [\n 'url',\n 'id',\n 'object',\n 'actor'\n ]);\n\n assert.equal(this._obj.objectType, 'activity');\n });\n\n Assertion.addProperty('FileItem', function () {\n assert.property(this._obj, 'displayName', 'The file has a display name');\n assert.property(this._obj, 'scr', 'The file has an scr');\n assert.property(this._obj.scr, 'loc', 'The file\\'s scr has an loc');\n });\n\n Assertion.addProperty('ThumbnailItem', function () {\n assert.property(this._obj, 'scr', 'The thumbnail has an scr');\n assert.property(this._obj.scr, 'loc', 'The thumbnail\\'s scr has an loc');\n assert.property(this._obj, 'height', 'The thumbnail has a width');\n assert.property(this._obj, 'width', 'The thumbnail has a width');\n });\n\n Assertion.addProperty('Conversation', function () {\n assert.equal(this._obj.objectType, 'conversation');\n assert.property(this._obj, 'id');\n assert.property(this._obj, 'url');\n });\n\n Assertion.addProperty('MachineAccount', function () {\n assert.isDefined(this._obj, 'orgId');\n assert.property(this._obj, 'orgId');\n assert.isDefined(this._obj, 'name');\n assert.property(this._obj, 'name');\n assert.isDefined(this._obj, 'password');\n assert.property(this._obj, 'password');\n assert.isDefined(this._obj, 'email');\n assert.property(this._obj, 'email');\n assert.isDefined(this._obj, 'description');\n assert.property(this._obj, 'description');\n });\n\n Assertion.addProperty('InternalTeam', function () {\n assert.equal(this._obj.objectType, 'team');\n assert.property(this._obj, 'id');\n assert.property(this._obj, 'url');\n assert.property(this._obj, 'generalConversationUuid');\n\n assert.property(this._obj, 'encryptedDisplayName');\n assert.property(this._obj, 'displayName');\n assert.notEqual(this._obj.displayName, this._obj.encryptedDisplayName);\n\n if (this._obj.summary) {\n assert.property(this._obj, 'encryptedSummary');\n assert.notEqual(this._obj.summary, this._obj.encryptedSummary);\n }\n });\n\n Assertion.addProperty('OneOnOneConversation', function () {\n assert.isConversation(this._obj);\n assert.include(this._obj.tags, 'ONE_ON_ONE');\n });\n\n Assertion.addProperty('GroupConversation', function () {\n assert.isConversation(this._obj);\n assert.notInclude(this._obj.tags, 'ONE_ON_ONE');\n });\n\n Assertion.addProperty('InternalTeamConversation', function () {\n assert.isConversation(this._obj);\n assert.property(this._obj, 'team');\n\n assert.ok(this._obj.tags.includes('OPEN') || this._obj.tags.includes('TEAM'), 'Conversation must have `OPEN` or `TEAM` tag');\n\n assert.property(this._obj, 'encryptedDisplayName');\n assert.property(this._obj, 'displayName');\n assert.notEqual(this._obj.displayName, this._obj.encryptedDisplayName);\n });\n\n Assertion.addProperty('NewEncryptedConversation', function () {\n assert.property(this._obj, 'kmsMessage');\n assert.isObject(this._obj.kmsMessage);\n assert.equal(this._obj.kmsMessage.status, 201);\n assert.property(this._obj, 'defaultActivityEncryptionKeyUrl');\n assert.property(this._obj, 'kmsResourceObjectUrl');\n });\n\n Assertion.addProperty('NewEncryptedInternalTeam', function () {\n assert.property(this._obj, 'kmsMessage');\n assert.isObject(this._obj.kmsMessage);\n assert.equal(this._obj.kmsMessage.status, 201);\n assert.property(this._obj, 'defaultActivityEncryptionKeyUrl');\n // This should be identical to NewEncryptedConversation, but it seems there\n // was an api change at some point\n // assert.property(this._obj, 'kmsResourceObjectUrl');\n });\n\n Assertion.addProperty('EncryptedActivity', function () {\n assert.property(this._obj, 'encryptionKeyUrl');\n });\n\n Assertion.addProperty('Membership', function () {\n assert.properties(this._obj, [\n 'id',\n 'roomId',\n 'personId',\n 'personEmail',\n 'isModerator',\n 'isMonitor',\n 'created'\n ]);\n\n assert.isHydraID(this._obj.id);\n assert.isHydraID(this._obj.roomId);\n assert.isHydraID(this._obj.personId);\n assert.isEmail(this._obj.personEmail);\n assert.isISODate(this._obj.created);\n });\n\n Assertion.addProperty('Message', function () {\n assert.properties(this._obj, [\n 'id',\n 'personId',\n 'personEmail',\n 'roomId',\n 'created'\n ]);\n\n assert.isString(this._obj.id);\n assert.isHydraID(this._obj.personId);\n assert.isEmail(this._obj.personEmail);\n assert.isISODate(this._obj.created);\n assert.isHydraID(this._obj.roomId);\n\n if (this._obj.files) {\n assert.isArray(this._obj.files);\n assert.isAbove(this._obj.files.length, 0);\n this._obj.files.forEach((file) => {\n assert.isMessageFile(file);\n });\n }\n\n if (this._obj.text) {\n assert.isString(this._obj.text);\n assert.isAbove(this._obj.text.length, 0);\n }\n });\n\n Assertion.addProperty('MessageFile', function () {\n assert.isString(this._obj);\n });\n\n Assertion.addProperty('Person', function () {\n assert.properties(this._obj, [\n 'id',\n 'emails',\n 'created'\n ]);\n\n assert.isHydraID(this._obj.id);\n assert.isArray(this._obj.emails);\n this._obj.emails.forEach((email) => {\n assert.isEmail(email);\n });\n assert.isISODate(this._obj.created);\n\n if (this._obj.familyName) {\n assert.isString(this._obj.familyName);\n }\n\n if (this._obj.givenName) {\n assert.isString(this._obj.givenName);\n }\n });\n\n Assertion.addProperty('Room', function () {\n assert.properties(this._obj, [\n 'id',\n 'title',\n 'created'\n ]);\n\n assert.isHydraID(this._obj.id);\n assert.isString(this._obj.title);\n assert.isISODate(this._obj.created);\n });\n\n Assertion.addProperty('Team', function () {\n assert.properties(this._obj, [\n 'id',\n 'name',\n 'created'\n ]);\n\n assert.isHydraID(this._obj.id);\n assert.isString(this._obj.name);\n assert.isISODate(this._obj.created);\n });\n\n Assertion.addProperty('TeamMembership', function () {\n assert.properties(this._obj, [\n 'id',\n 'teamId',\n 'personId',\n 'personEmail',\n 'isModerator',\n 'created'\n ]);\n\n assert.isHydraID(this._obj.id);\n assert.isHydraID(this._obj.teamId);\n assert.isHydraID(this._obj.personId);\n assert.isEmail(this._obj.personEmail);\n\n assert.isISODate(this._obj.created);\n });\n\n Assertion.addProperty('TeamRoom', function () {\n assert.isRoom(this._obj);\n assert.property(this._obj, 'teamId');\n });\n\n Assertion.addProperty('Webhook', function () {\n assert.properties(this._obj, [\n 'id',\n 'resource',\n 'event',\n 'filter',\n 'targetUrl',\n 'name'\n ]);\n\n assert.isHydraID(this._obj.id);\n assert.isString(this._obj.resource);\n assert.isString(this._obj.event);\n assert.isString(this._obj.filter);\n assert.isString(this._obj.targetUrl);\n assert.isString(this._obj.name);\n\n // waiting on completion of COLLAB-159\n // assert.isISODate(this._obj.created);\n });\n\n shouldToAssert(chai, [\n 'AccessToken',\n 'Activity',\n 'Conversation',\n 'InternalTeam',\n 'FileItem',\n 'ThumbnailItem',\n 'OneOnOneConversation',\n 'GroupConversation',\n 'InternalTeamConversation',\n 'NewEncryptedConversation',\n 'NewEncryptedInternalTeam',\n 'EncryptedActivity',\n 'MachineAccount',\n 'Membership',\n 'Message',\n 'MessageFile',\n 'Person',\n 'Room',\n 'Team',\n 'TeamMembership',\n 'TeamRoom',\n 'Webhook'\n ]);\n};\n"],"mappings":";;AAAA;AACA;AACA;;AAEA;;AACA;AAEA,IAAMA,cAAc,GAAGC,OAAO,CAAC,oBAAD,CAA9B;AAEA;AACA;AACA;AACA;;;AACAC,MAAM,CAACC,OAAP,GAAiB,SAASC,OAAT,CAAiBC,IAAjB,EAAuB;EACtC,IAAOC,SAAP,GAA4BD,IAA5B,CAAOC,SAAP;EAAA,IAAkBC,MAAlB,GAA4BF,IAA5B,CAAkBE,MAAlB;EAEA;;EAEAD,SAAS,CAACE,WAAV,CAAsB,aAAtB,EAAqC,YAAY;IAC/CD,MAAM,CAACE,UAAP,CAAkB,KAAKC,IAAvB,EAA6B,CAC3B,cAD2B,EAE3B,YAF2B,EAG3B,SAH2B,EAI3B,YAJ2B,EAK3B,eAL2B,EAM3B,uBAN2B,EAO3B,0BAP2B,CAA7B;EASD,CAVD;EAYAJ,SAAS,CAACE,WAAV,CAAsB,UAAtB,EAAkC,YAAY;IAC5CD,MAAM,CAACE,UAAP,CAAkB,KAAKC,IAAvB,EAA6B,CAC3B,KAD2B,EAE3B,IAF2B,EAG3B,QAH2B,EAI3B,OAJ2B,CAA7B;IAOAH,MAAM,CAACI,KAAP,CAAa,KAAKD,IAAL,CAAUE,UAAvB,EAAmC,UAAnC;EACD,CATD;EAWAN,SAAS,CAACE,WAAV,CAAsB,UAAtB,EAAkC,YAAY;IAC5CD,MAAM,CAACM,QAAP,CAAgB,KAAKH,IAArB,EAA2B,aAA3B,EAA0C,6BAA1C;IACAH,MAAM,CA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EAGnB,cAHmB,EAInB,cAJmB,EAKnB,UALmB,EAMnB,eANmB,EAOnB,sBAPmB,EAQnB,mBARmB,EASnB,0BATmB,EAUnB,0BAVmB,EAWnB,0BAXmB,EAYnB,mBAZmB,EAanB,gBAbmB,EAcnB,YAdmB,EAenB,SAfmB,EAgBnB,aAhBmB,EAiBnB,QAjBmB,EAkBnB,MAlBmB,EAmBnB,MAnBmB,EAoBnB,gBApBmB,EAqBnB,UArBmB,EAsBnB,SAtBmB,CAAP,CAAd;AAwBD,CA7RD"}
1
+ {"version":3,"names":["shouldToAssert","require","module","exports","schemas","chai","Assertion","assert","addProperty","properties","_obj","equal","objectType","property","scr","isDefined","notEqual","displayName","encryptedDisplayName","summary","encryptedSummary","isConversation","include","tags","notInclude","ok","includes","isObject","kmsMessage","status","isHydraID","id","roomId","personId","isEmail","personEmail","isISODate","created","isString","files","isArray","isAbove","length","forEach","file","isMessageFile","text","emails","email","familyName","givenName","title","name","teamId","isRoom","resource","event","filter","targetUrl"],"sources":["schemas.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* eslint-disable no-invalid-this */\n/* eslint-disable func-names */\n\nconst shouldToAssert = require('./should-to-assert');\n\n/**\n * @param {Object} chai\n * @returns {undefined}\n */\nmodule.exports = function schemas(chai) {\n const {Assertion, assert} = chai;\n\n /* eslint no-unused-expressions: [0] */\n\n Assertion.addProperty('AccessToken', function () {\n assert.properties(this._obj, [\n 'access_token',\n 'token_type',\n 'expires',\n 'expires_in',\n 'refresh_token',\n 'refresh_token_expires',\n 'refresh_token_expires_in',\n ]);\n });\n\n Assertion.addProperty('Activity', function () {\n assert.properties(this._obj, ['url', 'id', 'object', 'actor']);\n\n assert.equal(this._obj.objectType, 'activity');\n });\n\n Assertion.addProperty('FileItem', function () {\n assert.property(this._obj, 'displayName', 'The file has a display name');\n assert.property(this._obj, 'scr', 'The file has an scr');\n assert.property(this._obj.scr, 'loc', \"The file's scr has an loc\");\n });\n\n Assertion.addProperty('ThumbnailItem', function () {\n assert.property(this._obj, 'scr', 'The thumbnail has an scr');\n assert.property(this._obj.scr, 'loc', \"The thumbnail's scr has an loc\");\n assert.property(this._obj, 'height', 'The thumbnail has a width');\n assert.property(this._obj, 'width', 'The thumbnail has a width');\n });\n\n Assertion.addProperty('Conversation', function () {\n assert.equal(this._obj.objectType, 'conversation');\n assert.property(this._obj, 'id');\n assert.property(this._obj, 'url');\n });\n\n Assertion.addProperty('MachineAccount', function () {\n assert.isDefined(this._obj, 'orgId');\n assert.property(this._obj, 'orgId');\n assert.isDefined(this._obj, 'name');\n assert.property(this._obj, 'name');\n assert.isDefined(this._obj, 'password');\n assert.property(this._obj, 'password');\n assert.isDefined(this._obj, 'email');\n assert.property(this._obj, 'email');\n assert.isDefined(this._obj, 'description');\n assert.property(this._obj, 'description');\n });\n\n Assertion.addProperty('InternalTeam', function () {\n assert.equal(this._obj.objectType, 'team');\n assert.property(this._obj, 'id');\n assert.property(this._obj, 'url');\n assert.property(this._obj, 'generalConversationUuid');\n\n assert.property(this._obj, 'encryptedDisplayName');\n assert.property(this._obj, 'displayName');\n assert.notEqual(this._obj.displayName, this._obj.encryptedDisplayName);\n\n if (this._obj.summary) {\n assert.property(this._obj, 'encryptedSummary');\n assert.notEqual(this._obj.summary, this._obj.encryptedSummary);\n }\n });\n\n Assertion.addProperty('OneOnOneConversation', function () {\n assert.isConversation(this._obj);\n assert.include(this._obj.tags, 'ONE_ON_ONE');\n });\n\n Assertion.addProperty('GroupConversation', function () {\n assert.isConversation(this._obj);\n assert.notInclude(this._obj.tags, 'ONE_ON_ONE');\n });\n\n Assertion.addProperty('InternalTeamConversation', function () {\n assert.isConversation(this._obj);\n assert.property(this._obj, 'team');\n\n assert.ok(\n this._obj.tags.includes('OPEN') || this._obj.tags.includes('TEAM'),\n 'Conversation must have `OPEN` or `TEAM` tag'\n );\n\n assert.property(this._obj, 'encryptedDisplayName');\n assert.property(this._obj, 'displayName');\n assert.notEqual(this._obj.displayName, this._obj.encryptedDisplayName);\n });\n\n Assertion.addProperty('NewEncryptedConversation', function () {\n assert.property(this._obj, 'kmsMessage');\n assert.isObject(this._obj.kmsMessage);\n assert.equal(this._obj.kmsMessage.status, 201);\n assert.property(this._obj, 'defaultActivityEncryptionKeyUrl');\n assert.property(this._obj, 'kmsResourceObjectUrl');\n });\n\n Assertion.addProperty('NewEncryptedInternalTeam', function () {\n assert.property(this._obj, 'kmsMessage');\n assert.isObject(this._obj.kmsMessage);\n assert.equal(this._obj.kmsMessage.status, 201);\n assert.property(this._obj, 'defaultActivityEncryptionKeyUrl');\n // This should be identical to NewEncryptedConversation, but it seems there\n // was an api change at some point\n // assert.property(this._obj, 'kmsResourceObjectUrl');\n });\n\n Assertion.addProperty('EncryptedActivity', function () {\n assert.property(this._obj, 'encryptionKeyUrl');\n });\n\n Assertion.addProperty('Membership', function () {\n assert.properties(this._obj, [\n 'id',\n 'roomId',\n 'personId',\n 'personEmail',\n 'isModerator',\n 'isMonitor',\n 'created',\n ]);\n\n assert.isHydraID(this._obj.id);\n assert.isHydraID(this._obj.roomId);\n assert.isHydraID(this._obj.personId);\n assert.isEmail(this._obj.personEmail);\n assert.isISODate(this._obj.created);\n });\n\n Assertion.addProperty('Message', function () {\n assert.properties(this._obj, ['id', 'personId', 'personEmail', 'roomId', 'created']);\n\n assert.isString(this._obj.id);\n assert.isHydraID(this._obj.personId);\n assert.isEmail(this._obj.personEmail);\n assert.isISODate(this._obj.created);\n assert.isHydraID(this._obj.roomId);\n\n if (this._obj.files) {\n assert.isArray(this._obj.files);\n assert.isAbove(this._obj.files.length, 0);\n this._obj.files.forEach((file) => {\n assert.isMessageFile(file);\n });\n }\n\n if (this._obj.text) {\n assert.isString(this._obj.text);\n assert.isAbove(this._obj.text.length, 0);\n }\n });\n\n Assertion.addProperty('MessageFile', function () {\n assert.isString(this._obj);\n });\n\n Assertion.addProperty('Person', function () {\n assert.properties(this._obj, ['id', 'emails', 'created']);\n\n assert.isHydraID(this._obj.id);\n assert.isArray(this._obj.emails);\n this._obj.emails.forEach((email) => {\n assert.isEmail(email);\n });\n assert.isISODate(this._obj.created);\n\n if (this._obj.familyName) {\n assert.isString(this._obj.familyName);\n }\n\n if (this._obj.givenName) {\n assert.isString(this._obj.givenName);\n }\n });\n\n Assertion.addProperty('Room', function () {\n assert.properties(this._obj, ['id', 'title', 'created']);\n\n assert.isHydraID(this._obj.id);\n assert.isString(this._obj.title);\n assert.isISODate(this._obj.created);\n });\n\n Assertion.addProperty('Team', function () {\n assert.properties(this._obj, ['id', 'name', 'created']);\n\n assert.isHydraID(this._obj.id);\n assert.isString(this._obj.name);\n assert.isISODate(this._obj.created);\n });\n\n Assertion.addProperty('TeamMembership', function () {\n assert.properties(this._obj, [\n 'id',\n 'teamId',\n 'personId',\n 'personEmail',\n 'isModerator',\n 'created',\n ]);\n\n assert.isHydraID(this._obj.id);\n assert.isHydraID(this._obj.teamId);\n assert.isHydraID(this._obj.personId);\n assert.isEmail(this._obj.personEmail);\n\n assert.isISODate(this._obj.created);\n });\n\n Assertion.addProperty('TeamRoom', function () {\n assert.isRoom(this._obj);\n assert.property(this._obj, 'teamId');\n });\n\n Assertion.addProperty('Webhook', function () {\n assert.properties(this._obj, ['id', 'resource', 'event', 'filter', 'targetUrl', 'name']);\n\n assert.isHydraID(this._obj.id);\n assert.isString(this._obj.resource);\n assert.isString(this._obj.event);\n assert.isString(this._obj.filter);\n assert.isString(this._obj.targetUrl);\n assert.isString(this._obj.name);\n\n // waiting on completion of COLLAB-159\n // assert.isISODate(this._obj.created);\n });\n\n shouldToAssert(chai, [\n 'AccessToken',\n 'Activity',\n 'Conversation',\n 'InternalTeam',\n 'FileItem',\n 'ThumbnailItem',\n 'OneOnOneConversation',\n 'GroupConversation',\n 'InternalTeamConversation',\n 'NewEncryptedConversation',\n 'NewEncryptedInternalTeam',\n 'EncryptedActivity',\n 'MachineAccount',\n 'Membership',\n 'Message',\n 'MessageFile',\n 'Person',\n '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AAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;IAExFH,MAAM,CAACuB,SAAS,CAAC,IAAI,CAACpB,IAAI,CAACqB,EAAE,CAAC;IAC9BxB,MAAM,CAAC+B,QAAQ,CAAC,IAAI,CAAC5B,IAAI,CAAC6C,QAAQ,CAAC;IACnChD,MAAM,CAAC+B,QAAQ,CAAC,IAAI,CAAC5B,IAAI,CAAC8C,KAAK,CAAC;IAChCjD,MAAM,CAAC+B,QAAQ,CAAC,IAAI,CAAC5B,IAAI,CAAC+C,MAAM,CAAC;IACjClD,MAAM,CAAC+B,QAAQ,CAAC,IAAI,CAAC5B,IAAI,CAACgD,SAAS,CAAC;IACpCnD,MAAM,CAAC+B,QAAQ,CAAC,IAAI,CAAC5B,IAAI,CAAC0C,IAAI,CAAC;;IAE/B;IACA;EACF,CAAC,CAAC;;EAEFpD,cAAc,CAACK,IAAI,EAAE,CACnB,aAAa,EACb,UAAU,EACV,cAAc,EACd,cAAc,EACd,UAAU,EACV,eAAe,EACf,sBAAsB,EACtB,mBAAmB,EACnB,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACZ,SAAS,EACT,aAAa,EACb,QAAQ,EACR,MAAM,EACN,MAAM,EACN,gBAAgB,EAChB,UAAU,EACV,SAAS,CACV,CAAC;AACJ,CAAC"}
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
4
-
5
4
  var _keys = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/keys"));
6
-
7
5
  /*!
8
6
  * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
9
7
  */
8
+
10
9
  var _require = require('lodash'),
11
- isArray = _require.isArray,
12
- camelCase = _require.camelCase;
10
+ isArray = _require.isArray,
11
+ camelCase = _require.camelCase;
12
+
13
13
  /**
14
14
  * Converts expect/should assertion definitions into assert definitions
15
15
  * @param {Object} chai
@@ -19,8 +19,6 @@ var _require = require('lodash'),
19
19
  * prepending "is".
20
20
  * @returns {undefined}
21
21
  */
22
-
23
-
24
22
  module.exports = function shouldToAssert(chai, names) {
25
23
  var Assertion = chai.Assertion;
26
24
  /* eslint no-unused-expressions: [0] */
@@ -31,19 +29,17 @@ module.exports = function shouldToAssert(chai, names) {
31
29
  new Assertion(obj, msg).to.be.a[key];
32
30
  };
33
31
  });
32
+
34
33
  /**
35
34
  * @private
36
35
  * @param {string} key
37
36
  * @returns {string}
38
37
  */
39
-
40
38
  function computeAssertionName(key) {
41
39
  var name = names[key];
42
-
43
40
  if (name) {
44
41
  return name;
45
42
  }
46
-
47
43
  return camelCase("is_".concat(key));
48
44
  }
49
45
  };
@@ -1 +1 @@
1
- {"version":3,"names":["require","isArray","camelCase","module","exports","shouldToAssert","chai","names","Assertion","keys","forEach","key","assert","computeAssertionName","obj","msg","to","be","a","name"],"sources":["should-to-assert.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n\nconst {isArray, camelCase} = require('lodash');\n\n/**\n * Converts expect/should assertion definitions into assert definitions\n * @param {Object} chai\n * @param {Object|Array} names if an Object, keys are should assertions and\n * values are assert assertions; if an array, values are should assertions and\n * assert assertions are computed by capitalizing the first letter and\n * prepending \"is\".\n * @returns {undefined}\n */\nmodule.exports = function shouldToAssert(chai, names) {\n const {Assertion} = chai;\n /* eslint no-unused-expressions: [0] */\n\n const keys = isArray(names) ? names : Object.keys(names);\n\n keys.forEach((key) => {\n chai.assert[computeAssertionName(key)] = (obj, msg) => {\n new Assertion(obj, msg).to.be.a[key];\n };\n });\n\n /**\n * @private\n * @param {string} key\n * @returns {string}\n */\n function computeAssertionName(key) {\n const name = names[key];\n\n if (name) {\n return name;\n }\n\n return camelCase(`is_${key}`);\n }\n};\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAGA,eAA6BA,OAAO,CAAC,QAAD,CAApC;AAAA,IAAOC,OAAP,YAAOA,OAAP;AAAA,IAAgBC,SAAhB,YAAgBA,SAAhB;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACAC,MAAM,CAACC,OAAP,GAAiB,SAASC,cAAT,CAAwBC,IAAxB,EAA8BC,KAA9B,EAAqC;EACpD,IAAOC,SAAP,GAAoBF,IAApB,CAAOE,SAAP;EACA;;EAEA,IAAMC,IAAI,GAAGR,OAAO,CAACM,KAAD,CAAP,GAAiBA,KAAjB,GAAyB,mBAAYA,KAAZ,CAAtC;EAEAE,IAAI,CAACC,OAAL,CAAa,UAACC,GAAD,EAAS;IACpBL,IAAI,CAACM,MAAL,CAAYC,oBAAoB,CAACF,GAAD,CAAhC,IAAyC,UAACG,GAAD,EAAMC,GAAN,EAAc;MACrD,IAAIP,SAAJ,CAAcM,GAAd,EAAmBC,GAAnB,EAAwBC,EAAxB,CAA2BC,EAA3B,CAA8BC,CAA9B,CAAgCP,GAAhC;IACD,CAFD;EAGD,CAJD;EAMA;AACF;AACA;AACA;AACA;;EACE,SAASE,oBAAT,CAA8BF,GAA9B,EAAmC;IACjC,IAAMQ,IAAI,GAAGZ,KAAK,CAACI,GAAD,CAAlB;;IAEA,IAAIQ,IAAJ,EAAU;MACR,OAAOA,IAAP;IACD;;IAED,OAAOjB,SAAS,cAAOS,GAAP,EAAhB;EACD;AACF,CA1BD"}
1
+ {"version":3,"names":["require","isArray","camelCase","module","exports","shouldToAssert","chai","names","Assertion","keys","forEach","key","assert","computeAssertionName","obj","msg","to","be","a","name"],"sources":["should-to-assert.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nconst {isArray, camelCase} = require('lodash');\n\n/**\n * Converts expect/should assertion definitions into assert definitions\n * @param {Object} chai\n * @param {Object|Array} names if an Object, keys are should assertions and\n * values are assert assertions; if an array, values are should assertions and\n * assert assertions are computed by capitalizing the first letter and\n * prepending \"is\".\n * @returns {undefined}\n */\nmodule.exports = function shouldToAssert(chai, names) {\n const {Assertion} = chai;\n /* eslint no-unused-expressions: [0] */\n\n const keys = isArray(names) ? names : Object.keys(names);\n\n keys.forEach((key) => {\n chai.assert[computeAssertionName(key)] = (obj, msg) => {\n new Assertion(obj, msg).to.be.a[key];\n };\n });\n\n /**\n * @private\n * @param {string} key\n * @returns {string}\n */\n function computeAssertionName(key) {\n const name = names[key];\n\n if (name) {\n return name;\n }\n\n return camelCase(`is_${key}`);\n }\n};\n"],"mappings":";;;;AAAA;AACA;AACA;;AAEA,eAA6BA,OAAO,CAAC,QAAQ,CAAC;EAAvCC,OAAO,YAAPA,OAAO;EAAEC,SAAS,YAATA,SAAS;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACAC,MAAM,CAACC,OAAO,GAAG,SAASC,cAAc,CAACC,IAAI,EAAEC,KAAK,EAAE;EACpD,IAAOC,SAAS,GAAIF,IAAI,CAAjBE,SAAS;EAChB;;EAEA,IAAMC,IAAI,GAAGR,OAAO,CAACM,KAAK,CAAC,GAAGA,KAAK,GAAG,mBAAYA,KAAK,CAAC;EAExDE,IAAI,CAACC,OAAO,CAAC,UAACC,GAAG,EAAK;IACpBL,IAAI,CAACM,MAAM,CAACC,oBAAoB,CAACF,GAAG,CAAC,CAAC,GAAG,UAACG,GAAG,EAAEC,GAAG,EAAK;MACrD,IAAIP,SAAS,CAACM,GAAG,EAAEC,GAAG,CAAC,CAACC,EAAE,CAACC,EAAE,CAACC,CAAC,CAACP,GAAG,CAAC;IACtC,CAAC;EACH,CAAC,CAAC;;EAEF;AACF;AACA;AACA;AACA;EACE,SAASE,oBAAoB,CAACF,GAAG,EAAE;IACjC,IAAMQ,IAAI,GAAGZ,KAAK,CAACI,GAAG,CAAC;IAEvB,IAAIQ,IAAI,EAAE;MACR,OAAOA,IAAI;IACb;IAEA,OAAOjB,SAAS,cAAOS,GAAG,EAAG;EAC/B;AACF,CAAC"}
package/dist/index.js CHANGED
@@ -3,12 +3,10 @@
3
3
  /*!
4
4
  * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
5
5
  */
6
- var chai = require('chai');
7
6
 
7
+ var chai = require('chai');
8
8
  var sinon = require('sinon');
9
-
10
9
  var registerAssertions = require('./assertions');
11
-
12
10
  chai.use(registerAssertions);
13
11
  sinon.assert.expose(chai.assert, {
14
12
  prefix: ''
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["chai","require","sinon","registerAssertions","use","assert","expose","prefix","module","exports"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n\nconst chai = require('chai');\nconst sinon = require('sinon');\n\nconst registerAssertions = require('./assertions');\n\nchai.use(registerAssertions);\nsinon.assert.expose(chai.assert, {prefix: ''});\n\nmodule.exports = chai;\n"],"mappings":";;AAAA;AACA;AACA;AAGA,IAAMA,IAAI,GAAGC,OAAO,CAAC,MAAD,CAApB;;AACA,IAAMC,KAAK,GAAGD,OAAO,CAAC,OAAD,CAArB;;AAEA,IAAME,kBAAkB,GAAGF,OAAO,CAAC,cAAD,CAAlC;;AAEAD,IAAI,CAACI,GAAL,CAASD,kBAAT;AACAD,KAAK,CAACG,MAAN,CAAaC,MAAb,CAAoBN,IAAI,CAACK,MAAzB,EAAiC;EAACE,MAAM,EAAE;AAAT,CAAjC;AAEAC,MAAM,CAACC,OAAP,GAAiBT,IAAjB"}
1
+ {"version":3,"names":["chai","require","sinon","registerAssertions","use","assert","expose","prefix","module","exports"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nconst chai = require('chai');\nconst sinon = require('sinon');\n\nconst registerAssertions = require('./assertions');\n\nchai.use(registerAssertions);\nsinon.assert.expose(chai.assert, {prefix: ''});\n\nmodule.exports = chai;\n"],"mappings":";;AAAA;AACA;AACA;;AAEA,IAAMA,IAAI,GAAGC,OAAO,CAAC,MAAM,CAAC;AAC5B,IAAMC,KAAK,GAAGD,OAAO,CAAC,OAAO,CAAC;AAE9B,IAAME,kBAAkB,GAAGF,OAAO,CAAC,cAAc,CAAC;AAElDD,IAAI,CAACI,GAAG,CAACD,kBAAkB,CAAC;AAC5BD,KAAK,CAACG,MAAM,CAACC,MAAM,CAACN,IAAI,CAACK,MAAM,EAAE;EAACE,MAAM,EAAE;AAAE,CAAC,CAAC;AAE9CC,MAAM,CAACC,OAAO,GAAGT,IAAI"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Converts a string from a base64url-encoded string
3
+ * @param {string} str
4
+ * @returns {string}
5
+ */
6
+ export function fromBase64url(str: string): string;
7
+ /**
8
+ * Converts a string to a base64url-encoded string. It also accepts a buffer
9
+ * @param {string|buffer} str
10
+ * @returns {string}
11
+ */
12
+ export function toBase64Url(str: any): string;
13
+ /**
14
+ * Converts a string to a base64url-encoded string. It also accepts a buffer
15
+ * @param {string|buffer} str
16
+ * @returns {string}
17
+ */
18
+ export function encode(str: string | buffer): string;
19
+ /**
20
+ * Converts a string from a base64url-encoded string
21
+ * @param {string} str
22
+ * @returns {string}
23
+ */
24
+ export function decode(str: string): string;
25
+ /**
26
+ * Indicates if the provided string is, in fact, a base64 string
27
+ * @param {String} str
28
+ * @returns {Boolean}
29
+ */
30
+ export function validate(str: string): boolean;
31
+ declare namespace _default {
32
+ export { fromBase64url };
33
+ export { toBase64Url };
34
+ export { encode };
35
+ export { decode };
36
+ export { validate };
37
+ }
38
+ export default _default;
@@ -0,0 +1,8 @@
1
+ declare const _default: ((agent: any) => {
2
+ getOSName: () => any;
3
+ getOSVersion: () => any;
4
+ getBrowserName: () => any;
5
+ getBrowserVersion: () => any;
6
+ isBrowser: (name: any) => boolean;
7
+ }) & import("lodash").MemoizedFunction;
8
+ export default _default;