@webex/test-helper-mocha 3.0.0-bnr.5 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +6 -0
- package/babel.config.js +3 -0
- package/dist/index.js.map +1 -1
- package/jest.config.js +3 -0
- package/package.json +23 -3
- package/process +1 -0
- package/dist/types/@webex/common/src/base64.d.ts +0 -38
- package/dist/types/@webex/common/src/browser-detection.d.ts +0 -8
- package/dist/types/@webex/common/src/capped-debounce.d.ts +0 -12
- package/dist/types/@webex/common/src/check-required.d.ts +0 -11
- package/dist/types/@webex/common/src/constants.d.ts +0 -76
- package/dist/types/@webex/common/src/defer.d.ts +0 -23
- package/dist/types/@webex/common/src/deprecated.d.ts +0 -7
- package/dist/types/@webex/common/src/event-envelope.d.ts +0 -13
- package/dist/types/@webex/common/src/events.d.ts +0 -15
- package/dist/types/@webex/common/src/exception.d.ts +0 -23
- package/dist/types/@webex/common/src/in-browser/browser.d.ts +0 -2
- package/dist/types/@webex/common/src/in-browser/index.d.ts +0 -1
- package/dist/types/@webex/common/src/in-browser/node.d.ts +0 -2
- package/dist/types/@webex/common/src/index.d.ts +0 -21
- package/dist/types/@webex/common/src/isBuffer.d.ts +0 -2
- package/dist/types/@webex/common/src/make-state-datatype.d.ts +0 -11
- package/dist/types/@webex/common/src/one-flight.d.ts +0 -9
- package/dist/types/@webex/common/src/patterns.d.ts +0 -8
- package/dist/types/@webex/common/src/resolve-with.d.ts +0 -22
- package/dist/types/@webex/common/src/retry.d.ts +0 -13
- package/dist/types/@webex/common/src/tap.d.ts +0 -17
- package/dist/types/@webex/common/src/template-container.d.ts +0 -59
- package/dist/types/@webex/common/src/uuid-utils.d.ts +0 -112
- package/dist/types/@webex/common/src/while-in-flight.d.ts +0 -7
- package/dist/types/@webex/common/test/unit/spec/capped-debounce.d.ts +0 -1
- package/dist/types/@webex/common/test/unit/spec/common.d.ts +0 -1
- package/dist/types/@webex/common/test/unit/spec/exception.d.ts +0 -1
- package/dist/types/@webex/common/test/unit/spec/one-flight.d.ts +0 -1
- package/dist/types/@webex/common/test/unit/spec/template-container.d.ts +0 -1
- package/dist/types/@webex/common/test/unit/spec/while-in-flight.d.ts +0 -1
- package/dist/types/@webex/common-evented/src/index.d.ts +0 -9
- package/dist/types/@webex/common-evented/test/unit/spec/evented.d.ts +0 -1
- package/dist/types/@webex/common-timers/src/index.d.ts +0 -19
- package/dist/types/@webex/helper-html/browsers.d.ts +0 -2
- package/dist/types/@webex/helper-html/src/html-base.d.ts +0 -12
- package/dist/types/@webex/helper-html/src/html.d.ts +0 -5
- package/dist/types/@webex/helper-html/src/html.shim.d.ts +0 -33
- package/dist/types/@webex/helper-html/src/index.d.ts +0 -1
- package/dist/types/@webex/helper-html/test/unit/spec/html.d.ts +0 -1
- package/dist/types/@webex/helper-image/src/detect-filetype.d.ts +0 -7
- package/dist/types/@webex/helper-image/src/index.d.ts +0 -26
- package/dist/types/@webex/helper-image/src/process-image.browser.d.ts +0 -19
- package/dist/types/@webex/helper-image/src/process-image.d.ts +0 -17
- package/dist/types/@webex/helper-image/test/unit/spec/index.d.ts +0 -1
- package/dist/types/@webex/http-core/src/http-error-subtypes.d.ts +0 -8
- package/dist/types/@webex/http-core/src/http-error.d.ts +0 -41
- package/dist/types/@webex/http-core/src/index.d.ts +0 -7
- package/dist/types/@webex/http-core/src/interceptors/http-status.d.ts +0 -17
- package/dist/types/@webex/http-core/src/lib/detect.d.ts +0 -6
- package/dist/types/@webex/http-core/src/lib/interceptor.d.ts +0 -51
- package/dist/types/@webex/http-core/src/lib/xhr.d.ts +0 -6
- package/dist/types/@webex/http-core/src/progress-event.d.ts +0 -18
- package/dist/types/@webex/http-core/src/request/index.d.ts +0 -5
- package/dist/types/@webex/http-core/src/request/request.d.ts +0 -6
- package/dist/types/@webex/http-core/src/request/request.shim.d.ts +0 -6
- package/dist/types/@webex/http-core/test/integration/spec/http-error.d.ts +0 -1
- package/dist/types/@webex/http-core/test/integration/spec/interceptor.d.ts +0 -1
- package/dist/types/@webex/http-core/test/integration/spec/progress-event.d.ts +0 -1
- package/dist/types/@webex/http-core/test/integration/spec/request.d.ts +0 -1
- package/dist/types/@webex/http-core/test/unit/spec/interceptors/http-status.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-avatar/src/avatar-url-batcher.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-avatar/src/avatar-url-store.d.ts +0 -50
- package/dist/types/@webex/internal-plugin-avatar/src/avatar.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-avatar/src/config.d.ts +0 -13
- package/dist/types/@webex/internal-plugin-avatar/src/index.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-avatar/test/integration/spec/avatar.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-avatar/test/unit/spec/avatar-url-batcher.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-avatar/test/unit/spec/avatar-url-store.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-avatar/test/unit/spec/avatar.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-board/src/board.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-board/src/config.d.ts +0 -11
- package/dist/types/@webex/internal-plugin-board/src/index.d.ts +0 -4
- package/dist/types/@webex/internal-plugin-board/src/realtime-channel-collection.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-board/src/realtime-channel.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-board/src/realtime.d.ts +0 -7
- package/dist/types/@webex/internal-plugin-board/test/integration/spec/board.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-board/test/integration/spec/realtime.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-board/test/integration/spec/sharing-mercury.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-board/test/unit/spec/board.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-board/test/unit/spec/encryption.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-board/test/unit/spec/realtime.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-calendar/src/calendar.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-calendar/src/collection.d.ts +0 -58
- package/dist/types/@webex/internal-plugin-calendar/src/config.d.ts +0 -7
- package/dist/types/@webex/internal-plugin-calendar/src/constants.d.ts +0 -6
- package/dist/types/@webex/internal-plugin-calendar/src/index.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-calendar/src/util.d.ts +0 -15
- package/dist/types/@webex/internal-plugin-calendar/test/integration/spec/calendar.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-calendar/test/unit/spec/calendar.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-calendar/test/unit/spec/utils.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-conversation/src/activities.d.ts +0 -32
- package/dist/types/@webex/internal-plugin-conversation/src/activity-thread-ordering.d.ts +0 -18
- package/dist/types/@webex/internal-plugin-conversation/src/config.d.ts +0 -19
- package/dist/types/@webex/internal-plugin-conversation/src/constants.d.ts +0 -5
- package/dist/types/@webex/internal-plugin-conversation/src/conversation.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-conversation/src/convo-error.d.ts +0 -10
- package/dist/types/@webex/internal-plugin-conversation/src/decryption-transforms.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-conversation/src/encryption-transforms.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-conversation/src/index.d.ts +0 -3
- package/dist/types/@webex/internal-plugin-conversation/src/share-activity.d.ts +0 -7
- package/dist/types/@webex/internal-plugin-conversation/src/to-array.d.ts +0 -9
- package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/create.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/encryption.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/get.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/mercury.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/share.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/verbs.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/conversation.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/decrypt-transforms.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/encryption-transforms.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/share-activity.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-device/src/config.d.ts +0 -10
- package/dist/types/@webex/internal-plugin-device/src/constants.d.ts +0 -12
- package/dist/types/@webex/internal-plugin-device/src/device.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-device/src/features/feature-collection.d.ts +0 -9
- package/dist/types/@webex/internal-plugin-device/src/features/feature-model.d.ts +0 -29
- package/dist/types/@webex/internal-plugin-device/src/features/features-model.d.ts +0 -9
- package/dist/types/@webex/internal-plugin-device/src/features/index.d.ts +0 -4
- package/dist/types/@webex/internal-plugin-device/src/index.d.ts +0 -8
- package/dist/types/@webex/internal-plugin-device/src/interceptors/device-url.d.ts +0 -15
- package/dist/types/@webex/internal-plugin-device/src/metrics.d.ts +0 -5
- package/dist/types/@webex/internal-plugin-device/test/integration/spec/device.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-device/test/integration/spec/webex.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-device/test/unit/spec/device.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-device/test/unit/spec/features/feature-collection.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-device/test/unit/spec/features/feature-model.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-device/test/unit/spec/features/features-model.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-device/test/unit/spec/interceptors/device-url.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-dss/src/constants.d.ts +0 -14
- package/dist/types/@webex/internal-plugin-dss/src/dss.d.ts +0 -3
- package/dist/types/@webex/internal-plugin-dss/src/index.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-dss/src/types.d.ts +0 -28
- package/dist/types/@webex/internal-plugin-dss/test/unit/spec/dss.d.ts +0 -4
- package/dist/types/@webex/internal-plugin-ediscovery/src/config.d.ts +0 -11
- package/dist/types/@webex/internal-plugin-ediscovery/src/ediscovery-error.d.ts +0 -11
- package/dist/types/@webex/internal-plugin-ediscovery/src/ediscovery.d.ts +0 -6
- package/dist/types/@webex/internal-plugin-ediscovery/src/index.d.ts +0 -4
- package/dist/types/@webex/internal-plugin-ediscovery/src/report-request.d.ts +0 -29
- package/dist/types/@webex/internal-plugin-ediscovery/src/retry.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-ediscovery/src/transforms.d.ts +0 -35
- package/dist/types/@webex/internal-plugin-ediscovery/test/integration/spec/ediscovery.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-ediscovery/test/unit/spec/content.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-ediscovery/test/unit/spec/report.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-ediscovery/test/unit/spec/transforms.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-encryption/src/config.d.ts +0 -16
- package/dist/types/@webex/internal-plugin-encryption/src/encryption.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-encryption/src/ensure-buffer.browser.d.ts +0 -10
- package/dist/types/@webex/internal-plugin-encryption/src/ensure-buffer.d.ts +0 -7
- package/dist/types/@webex/internal-plugin-encryption/src/index.d.ts +0 -3
- package/dist/types/@webex/internal-plugin-encryption/src/kms-batcher.d.ts +0 -6
- package/dist/types/@webex/internal-plugin-encryption/src/kms-certificate-validation.d.ts +0 -24
- package/dist/types/@webex/internal-plugin-encryption/src/kms-dry-error-interceptor.d.ts +0 -25
- package/dist/types/@webex/internal-plugin-encryption/src/kms-errors.d.ts +0 -33
- package/dist/types/@webex/internal-plugin-encryption/src/kms.d.ts +0 -5
- package/dist/types/@webex/internal-plugin-encryption/test/integration/spec/encryption.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-encryption/test/integration/spec/kms.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-encryption/test/integration/spec/payload-transfom.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-encryption/test/unit/spec/encryption.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-encryption/test/unit/spec/kms-certificate-validation.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-feature/src/config.d.ts +0 -4
- package/dist/types/@webex/internal-plugin-feature/src/feature.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-feature/src/index.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-feature/test/integration/spec/feature.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-feature/test/unit/spec/feature.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-flag/src/config.d.ts +0 -4
- package/dist/types/@webex/internal-plugin-flag/src/flag.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-flag/src/index.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-flag/test/integration/spec/flag.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-flag/test/unit/spec/flag.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-llm/src/constants.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-llm/src/index.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-llm/src/llm.d.ts +0 -88
- package/dist/types/@webex/internal-plugin-llm/src/llm.types.d.ts +0 -8
- package/dist/types/@webex/internal-plugin-llm/test/unit/spec/llm.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-locus/src/event-keys.d.ts +0 -5
- package/dist/types/@webex/internal-plugin-locus/src/index.d.ts +0 -4
- package/dist/types/@webex/internal-plugin-locus/src/locus.d.ts +0 -12
- package/dist/types/@webex/internal-plugin-locus/test/unit/spec/locus.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-lyra/src/config.d.ts +0 -4
- package/dist/types/@webex/internal-plugin-lyra/src/device.d.ts +0 -7
- package/dist/types/@webex/internal-plugin-lyra/src/index.d.ts +0 -3
- package/dist/types/@webex/internal-plugin-lyra/src/lyra.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-lyra/src/space.d.ts +0 -7
- package/dist/types/@webex/internal-plugin-lyra/test/integration/spec/device.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-lyra/test/integration/spec/space.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-lyra/test/unit/spec/device.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-lyra/test/unit/spec/lyra.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-lyra/test/unit/spec/space.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-mercury/src/config.d.ts +0 -10
- package/dist/types/@webex/internal-plugin-mercury/src/errors.d.ts +0 -31
- package/dist/types/@webex/internal-plugin-mercury/src/index.d.ts +0 -4
- package/dist/types/@webex/internal-plugin-mercury/src/mercury.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-mercury/src/socket/index.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-mercury/src/socket/socket-base.d.ts +0 -120
- package/dist/types/@webex/internal-plugin-mercury/src/socket/socket.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-mercury/src/socket/socket.shim.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-mercury/test/integration/spec/mercury.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-mercury/test/integration/spec/sharable-mercury.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-mercury/test/integration/spec/webex.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-mercury/test/unit/lib/promise-tick.d.ts +0 -9
- package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/_setup.d.ts +0 -0
- package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/mercury-events.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/mercury.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/socket.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-metrics/src/batcher.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-metrics/src/call-diagnostic-events-batcher.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-metrics/src/client-metrics-batcher.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-metrics/src/config.d.ts +0 -18
- package/dist/types/@webex/internal-plugin-metrics/src/index.d.ts +0 -3
- package/dist/types/@webex/internal-plugin-metrics/src/metrics.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/batcher.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/call-diagnostic-events-batcher.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/client-metrics-batcher.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/metrics.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-presence/src/config.d.ts +0 -8
- package/dist/types/@webex/internal-plugin-presence/src/constants.d.ts +0 -14
- package/dist/types/@webex/internal-plugin-presence/src/index.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-presence/src/presence-batcher.d.ts +0 -6
- package/dist/types/@webex/internal-plugin-presence/src/presence-worker.d.ts +0 -68
- package/dist/types/@webex/internal-plugin-presence/src/presence.d.ts +0 -6
- package/dist/types/@webex/internal-plugin-presence/test/integration/spec/presence.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-presence/test/unit/spec/presence-worker.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-presence/test/unit/spec/presence.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-search/src/config.d.ts +0 -4
- package/dist/types/@webex/internal-plugin-search/src/index.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-search/src/search.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-search/test/integration/spec/search.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-support/src/config.d.ts +0 -16
- package/dist/types/@webex/internal-plugin-support/src/index.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-support/src/support.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-support/test/integration/spec/support.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-support/test/unit/spec/support.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-team/src/config.d.ts +0 -4
- package/dist/types/@webex/internal-plugin-team/src/index.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-team/src/team.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-team/test/integration/spec/actions.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-team/test/integration/spec/create.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-team/test/integration/spec/get.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-team/test/integration/spec/mercury.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-team/test/unit/spec/team.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-user/src/config.d.ts +0 -17
- package/dist/types/@webex/internal-plugin-user/src/index.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-user/src/user-uuid-batcher.d.ts +0 -5
- package/dist/types/@webex/internal-plugin-user/src/user-uuid-store.d.ts +0 -34
- package/dist/types/@webex/internal-plugin-user/src/user.d.ts +0 -5
- package/dist/types/@webex/internal-plugin-user/test/integration/spec/user.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-user/test/unit/spec/user-uuid-batcher.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-user/test/unit/spec/user.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-voicea/src/constants.d.ts +0 -28
- package/dist/types/@webex/internal-plugin-voicea/src/index.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-voicea/src/utils.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-voicea/src/voicea.d.ts +0 -78
- package/dist/types/@webex/internal-plugin-voicea/src/voicea.types.d.ts +0 -72
- package/dist/types/@webex/internal-plugin-voicea/test/unit/spec/utils.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-voicea/test/unit/spec/voicea.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-wdm/src/index.d.ts +0 -2
- package/dist/types/@webex/internal-plugin-wdm/test/integration/spec/webex.d.ts +0 -1
- package/dist/types/@webex/internal-plugin-wdm/test/unit/spec/device.d.ts +0 -1
- package/dist/types/@webex/jsdoctrinetest/src/assertions/literal.d.ts +0 -12
- package/dist/types/@webex/jsdoctrinetest/src/extract.d.ts +0 -20
- package/dist/types/@webex/jsdoctrinetest/src/index.d.ts +0 -1
- package/dist/types/@webex/jsdoctrinetest/src/mocha-template.d.ts +0 -11
- package/dist/types/@webex/jsdoctrinetest/src/parse.d.ts +0 -7
- package/dist/types/@webex/jsdoctrinetest/src/transform.d.ts +0 -14
- package/dist/types/@webex/jsdoctrinetest/test/unit/spec/default.d.ts +0 -1
- package/dist/types/@webex/plugin-attachment-actions/src/attachmentActions.d.ts +0 -51
- package/dist/types/@webex/plugin-attachment-actions/src/index.d.ts +0 -2
- package/dist/types/@webex/plugin-attachment-actions/test/integration/spec/attachmentActions.d.ts +0 -1
- package/dist/types/@webex/plugin-authorization/src/index.browser.d.ts +0 -1
- package/dist/types/@webex/plugin-authorization/src/index.d.ts +0 -1
- package/dist/types/@webex/plugin-authorization-browser/src/authorization.d.ts +0 -8
- package/dist/types/@webex/plugin-authorization-browser/src/config.d.ts +0 -6
- package/dist/types/@webex/plugin-authorization-browser/src/index.d.ts +0 -2
- package/dist/types/@webex/plugin-authorization-browser/test/automation/fixtures/app.d.ts +0 -1
- package/dist/types/@webex/plugin-authorization-browser/test/automation/spec/authorization-code-grant.d.ts +0 -1
- package/dist/types/@webex/plugin-authorization-browser/test/automation/spec/implicit-grant.d.ts +0 -1
- package/dist/types/@webex/plugin-authorization-browser/test/integration/spec/authorization.d.ts +0 -1
- package/dist/types/@webex/plugin-authorization-browser/test/unit/spec/authorization.d.ts +0 -1
- package/dist/types/@webex/plugin-authorization-browser-first-party/src/authorization.d.ts +0 -12
- package/dist/types/@webex/plugin-authorization-browser-first-party/src/config.d.ts +0 -7
- package/dist/types/@webex/plugin-authorization-browser-first-party/src/index.d.ts +0 -2
- package/dist/types/@webex/plugin-authorization-browser-first-party/test/automation/fixtures/app.d.ts +0 -1
- package/dist/types/@webex/plugin-authorization-browser-first-party/test/automation/spec/authorization-code-grant.d.ts +0 -1
- package/dist/types/@webex/plugin-authorization-browser-first-party/test/unit/spec/authorization.d.ts +0 -1
- package/dist/types/@webex/plugin-authorization-node/src/authorization.d.ts +0 -7
- package/dist/types/@webex/plugin-authorization-node/src/config.d.ts +0 -4
- package/dist/types/@webex/plugin-authorization-node/src/index.d.ts +0 -2
- package/dist/types/@webex/plugin-authorization-node/test/integration/spec/authorization.d.ts +0 -1
- package/dist/types/@webex/plugin-authorization-node/test/unit/spec/authorization.d.ts +0 -1
- package/dist/types/@webex/plugin-device-manager/sample/app.d.ts +0 -141
- package/dist/types/@webex/plugin-device-manager/src/collection.d.ts +0 -8
- package/dist/types/@webex/plugin-device-manager/src/config.d.ts +0 -2
- package/dist/types/@webex/plugin-device-manager/src/constants.d.ts +0 -3
- package/dist/types/@webex/plugin-device-manager/src/device-manager.d.ts +0 -2
- package/dist/types/@webex/plugin-device-manager/src/index.d.ts +0 -2
- package/dist/types/@webex/plugin-device-manager/test/unit/spec/index.d.ts +0 -1
- package/dist/types/@webex/plugin-device-manager/webex.d.ts +0 -1
- package/dist/types/@webex/plugin-logger/src/config.d.ts +0 -19
- package/dist/types/@webex/plugin-logger/src/index.d.ts +0 -1
- package/dist/types/@webex/plugin-logger/src/logger.d.ts +0 -7
- package/dist/types/@webex/plugin-logger/test/unit/spec/logger.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/browsers.d.ts +0 -75
- package/dist/types/@webex/plugin-meetings/src/breakouts/breakout.d.ts +0 -8
- package/dist/types/@webex/plugin-meetings/src/breakouts/collection.d.ts +0 -5
- package/dist/types/@webex/plugin-meetings/src/breakouts/index.d.ts +0 -5
- package/dist/types/@webex/plugin-meetings/src/breakouts/request.d.ts +0 -22
- package/dist/types/@webex/plugin-meetings/src/breakouts/utils.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/src/common/browser-detection.d.ts +0 -9
- package/dist/types/@webex/plugin-meetings/src/common/collection.d.ts +0 -48
- package/dist/types/@webex/plugin-meetings/src/common/config.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/common/errors/captcha-error.d.ts +0 -15
- package/dist/types/@webex/plugin-meetings/src/common/errors/intent-to-join.d.ts +0 -16
- package/dist/types/@webex/plugin-meetings/src/common/errors/join-meeting.d.ts +0 -17
- package/dist/types/@webex/plugin-meetings/src/common/errors/media.d.ts +0 -15
- package/dist/types/@webex/plugin-meetings/src/common/errors/parameter.d.ts +0 -15
- package/dist/types/@webex/plugin-meetings/src/common/errors/password-error.d.ts +0 -15
- package/dist/types/@webex/plugin-meetings/src/common/errors/permission.d.ts +0 -14
- package/dist/types/@webex/plugin-meetings/src/common/errors/reconnection-in-progress.d.ts +0 -9
- package/dist/types/@webex/plugin-meetings/src/common/errors/reconnection.d.ts +0 -15
- package/dist/types/@webex/plugin-meetings/src/common/errors/stats.d.ts +0 -15
- package/dist/types/@webex/plugin-meetings/src/common/errors/webex-errors.d.ts +0 -69
- package/dist/types/@webex/plugin-meetings/src/common/errors/webex-meetings-error.d.ts +0 -20
- package/dist/types/@webex/plugin-meetings/src/common/events/events-scope.d.ts +0 -17
- package/dist/types/@webex/plugin-meetings/src/common/events/events.d.ts +0 -12
- package/dist/types/@webex/plugin-meetings/src/common/events/trigger-proxy.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/common/events/util.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/common/logs/logger-config.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/common/logs/logger-proxy.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/common/logs/request.d.ts +0 -34
- package/dist/types/@webex/plugin-meetings/src/common/queue.d.ts +0 -32
- package/dist/types/@webex/plugin-meetings/src/config.d.ts +0 -77
- package/dist/types/@webex/plugin-meetings/src/constants.d.ts +0 -899
- package/dist/types/@webex/plugin-meetings/src/controls-options-manager/constants.d.ts +0 -4
- package/dist/types/@webex/plugin-meetings/src/controls-options-manager/enums.d.ts +0 -5
- package/dist/types/@webex/plugin-meetings/src/controls-options-manager/index.d.ts +0 -120
- package/dist/types/@webex/plugin-meetings/src/controls-options-manager/util.d.ts +0 -7
- package/dist/types/@webex/plugin-meetings/src/index.d.ts +0 -7
- package/dist/types/@webex/plugin-meetings/src/locus-info/controlsUtils.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/locus-info/embeddedAppsUtils.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/locus-info/fullState.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/locus-info/hostUtils.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/locus-info/index.d.ts +0 -269
- package/dist/types/@webex/plugin-meetings/src/locus-info/infoUtils.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/locus-info/mediaSharesUtils.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/locus-info/parser.d.ts +0 -212
- package/dist/types/@webex/plugin-meetings/src/locus-info/selfUtils.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/media/index.d.ts +0 -32
- package/dist/types/@webex/plugin-meetings/src/media/properties.d.ts +0 -107
- package/dist/types/@webex/plugin-meetings/src/media/util.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/mediaQualityMetrics/config.d.ts +0 -365
- package/dist/types/@webex/plugin-meetings/src/meeting/effectsState.d.ts +0 -42
- package/dist/types/@webex/plugin-meetings/src/meeting/in-meeting-actions.d.ts +0 -83
- package/dist/types/@webex/plugin-meetings/src/meeting/index.d.ts +0 -1724
- package/dist/types/@webex/plugin-meetings/src/meeting/muteState.d.ts +0 -108
- package/dist/types/@webex/plugin-meetings/src/meeting/request.d.ts +0 -261
- package/dist/types/@webex/plugin-meetings/src/meeting/request.type.d.ts +0 -11
- package/dist/types/@webex/plugin-meetings/src/meeting/state.d.ts +0 -9
- package/dist/types/@webex/plugin-meetings/src/meeting/util.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/meeting-info/collection.d.ts +0 -20
- package/dist/types/@webex/plugin-meetings/src/meeting-info/index.d.ts +0 -57
- package/dist/types/@webex/plugin-meetings/src/meeting-info/meeting-info-v2.d.ts +0 -93
- package/dist/types/@webex/plugin-meetings/src/meeting-info/request.d.ts +0 -22
- package/dist/types/@webex/plugin-meetings/src/meeting-info/util.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/meeting-info/utilv2.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/meetings/collection.d.ts +0 -23
- package/dist/types/@webex/plugin-meetings/src/meetings/index.d.ts +0 -297
- package/dist/types/@webex/plugin-meetings/src/meetings/request.d.ts +0 -27
- package/dist/types/@webex/plugin-meetings/src/meetings/util.d.ts +0 -18
- package/dist/types/@webex/plugin-meetings/src/member/index.d.ts +0 -146
- package/dist/types/@webex/plugin-meetings/src/member/util.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/members/collection.d.ts +0 -24
- package/dist/types/@webex/plugin-meetings/src/members/index.d.ts +0 -320
- package/dist/types/@webex/plugin-meetings/src/members/request.d.ts +0 -50
- package/dist/types/@webex/plugin-meetings/src/members/util.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/metrics/config.d.ts +0 -178
- package/dist/types/@webex/plugin-meetings/src/metrics/constants.d.ts +0 -57
- package/dist/types/@webex/plugin-meetings/src/metrics/index.d.ts +0 -160
- package/dist/types/@webex/plugin-meetings/src/multistream/mediaRequestManager.d.ts +0 -51
- package/dist/types/@webex/plugin-meetings/src/multistream/receiveSlot.d.ts +0 -66
- package/dist/types/@webex/plugin-meetings/src/multistream/receiveSlotManager.d.ts +0 -46
- package/dist/types/@webex/plugin-meetings/src/multistream/remoteMedia.d.ts +0 -93
- package/dist/types/@webex/plugin-meetings/src/multistream/remoteMediaGroup.d.ts +0 -56
- package/dist/types/@webex/plugin-meetings/src/multistream/remoteMediaManager.d.ts +0 -241
- package/dist/types/@webex/plugin-meetings/src/networkQualityMonitor/index.d.ts +0 -70
- package/dist/types/@webex/plugin-meetings/src/personal-meeting-room/index.d.ts +0 -47
- package/dist/types/@webex/plugin-meetings/src/personal-meeting-room/request.d.ts +0 -14
- package/dist/types/@webex/plugin-meetings/src/personal-meeting-room/util.d.ts +0 -2
- package/dist/types/@webex/plugin-meetings/src/reachability/index.d.ts +0 -140
- package/dist/types/@webex/plugin-meetings/src/reachability/request.d.ts +0 -35
- package/dist/types/@webex/plugin-meetings/src/reactions/constants.d.ts +0 -3
- package/dist/types/@webex/plugin-meetings/src/reactions/reactions.d.ts +0 -4
- package/dist/types/@webex/plugin-meetings/src/reactions/reactions.type.d.ts +0 -52
- package/dist/types/@webex/plugin-meetings/src/reconnection-manager/index.d.ts +0 -117
- package/dist/types/@webex/plugin-meetings/src/recording-controller/enums.d.ts +0 -7
- package/dist/types/@webex/plugin-meetings/src/recording-controller/index.d.ts +0 -193
- package/dist/types/@webex/plugin-meetings/src/recording-controller/util.d.ts +0 -13
- package/dist/types/@webex/plugin-meetings/src/roap/index.d.ts +0 -77
- package/dist/types/@webex/plugin-meetings/src/roap/request.d.ts +0 -35
- package/dist/types/@webex/plugin-meetings/src/roap/turnDiscovery.d.ts +0 -74
- package/dist/types/@webex/plugin-meetings/src/statsAnalyzer/global.d.ts +0 -36
- package/dist/types/@webex/plugin-meetings/src/statsAnalyzer/index.d.ts +0 -195
- package/dist/types/@webex/plugin-meetings/src/statsAnalyzer/mqaUtil.d.ts +0 -24
- package/dist/types/@webex/plugin-meetings/src/transcription/index.d.ts +0 -64
- package/dist/types/@webex/plugin-meetings/test/integration/spec/converged-space-meetings.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/integration/spec/journey.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/integration/spec/space-meeting.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/integration/spec/transcription.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/breakout.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/collection.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/index.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/request.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/utils.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/common/browser-detection.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/common/queue.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/controls-options-manager/index.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/controls-options-manager/util.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/fixture/locus.d.ts +0 -332
- package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/controlsUtils.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/embeddedAppsUtils.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/index.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/infoUtils.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/parser.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/selfConstant.d.ts +0 -274
- package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/selfUtils.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/media/index.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/media/properties.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/effectsState.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/in-meeting-actions.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/index.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/muteState.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/request.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/utils.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/meetinginfov2.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/request.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/util.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/utilv2.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meetings/collection.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meetings/index.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meetings/utils.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/member/index.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/member/util.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/members/index.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/members/request.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/members/utils.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/metrics/index.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/mediaRequestManager.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/receiveSlot.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/receiveSlotManager.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/remoteMedia.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/remoteMediaGroup.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/remoteMediaManager.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/networkQualityMonitor/index.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/personal-meeting-room/personal-meeting-room.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/reachability/index.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/reconnection-manager/index.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/recording-controller/index.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/recording-controller/util.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/roap/index.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/roap/request.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/roap/turnDiscovery.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/unit/spec/stats-analyzer/index.d.ts +0 -1
- package/dist/types/@webex/plugin-meetings/test/utils/cmr.d.ts +0 -6
- package/dist/types/@webex/plugin-meetings/test/utils/constants.d.ts +0 -5
- package/dist/types/@webex/plugin-meetings/test/utils/testUtils.d.ts +0 -27
- package/dist/types/@webex/plugin-meetings/test/utils/webex-config.d.ts +0 -63
- package/dist/types/@webex/plugin-meetings/test/utils/webex-test-users.d.ts +0 -2
- package/dist/types/@webex/plugin-memberships/src/index.d.ts +0 -2
- package/dist/types/@webex/plugin-memberships/src/memberships.d.ts +0 -50
- package/dist/types/@webex/plugin-memberships/test/integration/spec/memberships.d.ts +0 -1
- package/dist/types/@webex/plugin-messages/src/index.d.ts +0 -2
- package/dist/types/@webex/plugin-messages/src/messages.d.ts +0 -58
- package/dist/types/@webex/plugin-messages/test/integration/spec/messages.d.ts +0 -1
- package/dist/types/@webex/plugin-people/src/config.d.ts +0 -9
- package/dist/types/@webex/plugin-people/src/index.d.ts +0 -1
- package/dist/types/@webex/plugin-people/src/people-batcher.d.ts +0 -6
- package/dist/types/@webex/plugin-people/src/people.d.ts +0 -30
- package/dist/types/@webex/plugin-people/test/integration/spec/people.d.ts +0 -1
- package/dist/types/@webex/plugin-people/test/unit/spec/people-batcher.d.ts +0 -1
- package/dist/types/@webex/plugin-people/test/unit/spec/people.d.ts +0 -1
- package/dist/types/@webex/plugin-rooms/src/index.d.ts +0 -2
- package/dist/types/@webex/plugin-rooms/src/rooms.d.ts +0 -41
- package/dist/types/@webex/plugin-rooms/test/integration/spec/rooms.d.ts +0 -1
- package/dist/types/@webex/plugin-team-memberships/src/index.d.ts +0 -2
- package/dist/types/@webex/plugin-team-memberships/src/team-memberships.d.ts +0 -49
- package/dist/types/@webex/plugin-team-memberships/test/integration/spec/team-memberships.d.ts +0 -1
- package/dist/types/@webex/plugin-teams/src/index.d.ts +0 -2
- package/dist/types/@webex/plugin-teams/src/teams.d.ts +0 -27
- package/dist/types/@webex/plugin-teams/test/integration/spec/teams.d.ts +0 -1
- package/dist/types/@webex/plugin-webhooks/src/index.d.ts +0 -2
- package/dist/types/@webex/plugin-webhooks/src/webhooks.d.ts +0 -48
- package/dist/types/@webex/plugin-webhooks/test/integration/spec/webhooks.d.ts +0 -1
- package/dist/types/@webex/recipe-private-web-client/src/config.d.ts +0 -10
- package/dist/types/@webex/recipe-private-web-client/src/index.d.ts +0 -8
- package/dist/types/@webex/storage-adapter-local-forage/src/index.d.ts +0 -35
- package/dist/types/@webex/storage-adapter-local-forage/test/unit/spec/storage-adapter-local-forage.d.ts +0 -1
- package/dist/types/@webex/storage-adapter-local-storage/src/index.d.ts +0 -66
- package/dist/types/@webex/storage-adapter-local-storage/test/unit/spec/storage-adapter-local-storage.d.ts +0 -1
- package/dist/types/@webex/storage-adapter-session-storage/src/index.d.ts +0 -66
- package/dist/types/@webex/storage-adapter-session-storage/test/unit/spec/storage-adapter-session-storage.d.ts +0 -1
- package/dist/types/@webex/storage-adapter-spec/src/index.d.ts +0 -1
- package/dist/types/@webex/test-helper-appid/src/create-user.browser.d.ts +0 -2
- package/dist/types/@webex/test-helper-appid/src/create-user.d.ts +0 -7
- package/dist/types/@webex/test-helper-appid/src/index.d.ts +0 -7
- package/dist/types/@webex/test-helper-appid/src/router.d.ts +0 -2
- package/dist/types/@webex/test-helper-automation/src/index.d.ts +0 -2
- package/dist/types/@webex/test-helper-automation/src/wd/accept-grant.d.ts +0 -1
- package/dist/types/@webex/test-helper-automation/src/wd/login.d.ts +0 -1
- package/dist/types/@webex/test-helper-automation/src/wd/print-logs.d.ts +0 -1
- package/dist/types/@webex/test-helper-automation/src/wd/submit-password.d.ts +0 -1
- package/dist/types/@webex/test-helper-chai/src/assertions/index.d.ts +0 -2
- package/dist/types/@webex/test-helper-chai/src/assertions/primitives.d.ts +0 -2
- package/dist/types/@webex/test-helper-chai/src/assertions/schemas.d.ts +0 -2
- package/dist/types/@webex/test-helper-chai/src/assertions/should-to-assert.d.ts +0 -2
- package/dist/types/@webex/test-helper-chai/src/index.d.ts +0 -2
- package/dist/types/@webex/test-helper-file/src/file.d.ts +0 -5
- package/dist/types/@webex/test-helper-file/src/file.shim.d.ts +0 -18
- package/dist/types/@webex/test-helper-file/src/index.d.ts +0 -2
- package/dist/types/@webex/test-helper-make-local-url/src/index.d.ts +0 -4
- package/dist/types/@webex/test-helper-mocha/src/index.d.ts +0 -29
- package/dist/types/@webex/test-helper-mock-web-socket/src/index.d.ts +0 -26
- package/dist/types/@webex/test-helper-mock-webex/src/index.d.ts +0 -7
- package/dist/types/@webex/test-helper-refresh-callback/src/index.d.ts +0 -10
- package/dist/types/@webex/test-helper-retry/src/index.d.ts +0 -15
- package/dist/types/@webex/test-helper-server/src/cookies.d.ts +0 -2
- package/dist/types/@webex/test-helper-server/src/files.d.ts +0 -2
- package/dist/types/@webex/test-helper-server/src/form.d.ts +0 -2
- package/dist/types/@webex/test-helper-server/src/index.d.ts +0 -1
- package/dist/types/@webex/test-helper-server/src/json.d.ts +0 -2
- package/dist/types/@webex/test-helper-server/src/reflect.d.ts +0 -10
- package/dist/types/@webex/test-helper-test-users/src/index.d.ts +0 -8
- package/dist/types/@webex/test-users/src/index.d.ts +0 -115
- package/dist/types/@webex/test-users/src/whistler.d.ts +0 -44
- package/dist/types/@webex/test-users/test/integration/spec/index.d.ts +0 -1
- package/dist/types/@webex/test-users/test/integration/spec/whistler.d.ts +0 -1
- package/dist/types/@webex/webex-core/src/config.d.ts +0 -39
- package/dist/types/@webex/webex-core/src/credentials-config.d.ts +0 -2
- package/dist/types/@webex/webex-core/src/index.d.ts +0 -24
- package/dist/types/@webex/webex-core/src/interceptors/auth.d.ts +0 -43
- package/dist/types/@webex/webex-core/src/interceptors/default-options.d.ts +0 -31
- package/dist/types/@webex/webex-core/src/interceptors/embargo.d.ts +0 -16
- package/dist/types/@webex/webex-core/src/interceptors/network-timing.d.ts +0 -30
- package/dist/types/@webex/webex-core/src/interceptors/payload-transformer.d.ts +0 -30
- package/dist/types/@webex/webex-core/src/interceptors/rate-limit.d.ts +0 -61
- package/dist/types/@webex/webex-core/src/interceptors/redirect.d.ts +0 -22
- package/dist/types/@webex/webex-core/src/interceptors/request-event.d.ts +0 -36
- package/dist/types/@webex/webex-core/src/interceptors/request-logger.d.ts +0 -22
- package/dist/types/@webex/webex-core/src/interceptors/request-timing.d.ts +0 -36
- package/dist/types/@webex/webex-core/src/interceptors/response-logger.d.ts +0 -30
- package/dist/types/@webex/webex-core/src/interceptors/user-agent.d.ts +0 -38
- package/dist/types/@webex/webex-core/src/interceptors/webex-tracking-id.d.ts +0 -26
- package/dist/types/@webex/webex-core/src/interceptors/webex-user-agent.d.ts +0 -22
- package/dist/types/@webex/webex-core/src/lib/batcher.d.ts +0 -6
- package/dist/types/@webex/webex-core/src/lib/credentials/credentials.d.ts +0 -5
- package/dist/types/@webex/webex-core/src/lib/credentials/grant-errors.d.ts +0 -57
- package/dist/types/@webex/webex-core/src/lib/credentials/index.d.ts +0 -4
- package/dist/types/@webex/webex-core/src/lib/credentials/scope.d.ts +0 -16
- package/dist/types/@webex/webex-core/src/lib/credentials/token-collection.d.ts +0 -2
- package/dist/types/@webex/webex-core/src/lib/credentials/token.d.ts +0 -5
- package/dist/types/@webex/webex-core/src/lib/page.d.ts +0 -76
- package/dist/types/@webex/webex-core/src/lib/services/constants.d.ts +0 -6
- package/dist/types/@webex/webex-core/src/lib/services/index.d.ts +0 -10
- package/dist/types/@webex/webex-core/src/lib/services/interceptors/server-error.d.ts +0 -16
- package/dist/types/@webex/webex-core/src/lib/services/interceptors/service.d.ts +0 -37
- package/dist/types/@webex/webex-core/src/lib/services/metrics.d.ts +0 -4
- package/dist/types/@webex/webex-core/src/lib/services/service-catalog.d.ts +0 -5
- package/dist/types/@webex/webex-core/src/lib/services/service-fed-ramp.d.ts +0 -5
- package/dist/types/@webex/webex-core/src/lib/services/service-host.d.ts +0 -217
- package/dist/types/@webex/webex-core/src/lib/services/service-registry.d.ts +0 -271
- package/dist/types/@webex/webex-core/src/lib/services/service-state.d.ts +0 -46
- package/dist/types/@webex/webex-core/src/lib/services/service-url.d.ts +0 -5
- package/dist/types/@webex/webex-core/src/lib/services/services.d.ts +0 -5
- package/dist/types/@webex/webex-core/src/lib/stateless-webex-plugin.d.ts +0 -48
- package/dist/types/@webex/webex-core/src/lib/storage/decorators.d.ts +0 -15
- package/dist/types/@webex/webex-core/src/lib/storage/errors.d.ts +0 -10
- package/dist/types/@webex/webex-core/src/lib/storage/index.d.ts +0 -5
- package/dist/types/@webex/webex-core/src/lib/storage/make-webex-plugin-store.d.ts +0 -8
- package/dist/types/@webex/webex-core/src/lib/storage/make-webex-store.d.ts +0 -48
- package/dist/types/@webex/webex-core/src/lib/storage/memory-store-adapter.d.ts +0 -18
- package/dist/types/@webex/webex-core/src/lib/webex-core-plugin-mixin.d.ts +0 -8
- package/dist/types/@webex/webex-core/src/lib/webex-http-error.d.ts +0 -12
- package/dist/types/@webex/webex-core/src/lib/webex-internal-core-plugin-mixin.d.ts +0 -8
- package/dist/types/@webex/webex-core/src/lib/webex-plugin.d.ts +0 -5
- package/dist/types/@webex/webex-core/src/plugins/logger.d.ts +0 -2
- package/dist/types/@webex/webex-core/src/webex-core.d.ts +0 -31
- package/dist/types/@webex/webex-core/src/webex-internal-core.d.ts +0 -7
- package/dist/types/@webex/webex-core/test/integration/spec/credentials/credentials.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/integration/spec/credentials/token.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/integration/spec/services/service-catalog.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/integration/spec/services/services.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/integration/spec/webex-core.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/_setup.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/credentials/credentials.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/credentials/token.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/auth.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/default-options.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/embargo.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/network-timing.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/payload-transformer.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/rate-limit.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/redirect.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/request-timing.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/user-agent.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/webex-tracking-id.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/webex-user-agent.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/lib/batcher.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/lib/page.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/lib/webex-plugin.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/services/interceptors/server-error.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/services/interceptors/service.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/services/service-catalog.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/services/service-host.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/services/service-registry.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/services/service-state.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/services/service-url.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/services/services.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/storage/persist.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/storage/storage-adapter.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/storage/wait-for-value.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/webex-core.d.ts +0 -1
- package/dist/types/@webex/webex-core/test/unit/spec/webex-internal-core.d.ts +0 -1
- package/dist/types/@webex/webrtc/src/analyzer.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/constants.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/extractor.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/generator.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/history.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/ice.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/index.d.ts +0 -31
- package/dist/types/@webex/webrtc/src/logger.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/parser.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/stats.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/transformer.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/validator.d.ts +0 -0
- package/dist/types/@webex/xunit-with-logs/src/index.d.ts +0 -43
- package/dist/types/webex/browser.d.ts +0 -5
- package/dist/types/webex/env.d.ts +0 -2
- package/dist/types/webex/src/_setup.d.ts +0 -1
- package/dist/types/webex/src/config-storage.d.ts +0 -5
- package/dist/types/webex/src/config-storage.shim.d.ts +0 -5
- package/dist/types/webex/src/config.d.ts +0 -17
- package/dist/types/webex/src/index.d.ts +0 -11
- package/dist/types/webex/src/webex.d.ts +0 -9
- package/dist/types/webex/test/integration/spec/commonjs.d.ts +0 -1
- package/dist/types/webex/test/integration/spec/env.d.ts +0 -1
- package/dist/types/webex/test/integration/spec/init.d.ts +0 -1
- package/dist/types/webex/test/integration/spec/request.d.ts +0 -1
- package/dist/types/webex/test/unit/spec/webex.d.ts +0 -1
- package/dist/types/webex/umd/webex.min.d.ts +0 -2
package/.eslintrc.js
ADDED
package/babel.config.js
ADDED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["bowser","require","inNode","window","inBrowser","inSpecificBrowser","name","getParser","navigator","userAgent","isBrowser","inFirefox","inSafari","inJenkins","process","env","JENKINS","noop","module","exports","flaky","mochaMethod","envVar","skip","shouldSkip","handleErrorEvent","emitter","fn","r","p","resolve","reject","once","handler","race","then","unbind","catch","reason","add","e","off","err","skipInBrowser","skipInNode","skipInFirefox","skipInSafari","browserOnly","nodeOnly","jenkinsOnly","expectActivity","max","event","activityChecker","msg","timer","clearTimeout","setTimeout","Error","on","result","activity","data","expectExactlyNEvents","count","lastResult","currentCount","expectNEvents","expectEvent","firefoxOnly","maxWaitForEvent","maxWaitForPromise","timeout","promise","snoozeUntil","until","explanation","now","Date","d","getTime"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nconst bowser = require('bowser');\n\n/**\n * Indicates if we're running in node\n * @returns {boolean}\n * @private\n */\nfunction inNode() {\n return typeof window === 'undefined';\n}\n\n/**\n * Indicates if we're running in a web browser\n * @returns {boolean}\n * @private\n */\nfunction inBrowser() {\n return !inNode();\n}\n\n/**\n * Indicates if we are running in the named browser\n * @param {string} name name of the browser\n * @returns {boolean}\n */\nfunction inSpecificBrowser(name) {\n return window && bowser.getParser(window.navigator.userAgent).isBrowser(name);\n}\n\n/**\n * Indicates if we're running in firefox\n * @returns {boolean}\n * @private\n */\nfunction inFirefox() {\n return inSpecificBrowser('firefox');\n}\n\n/**\n * Indicates if we're running in safari\n * @returns {boolean}\n * @private\n */\nfunction inSafari() {\n return inSpecificBrowser('safari');\n}\n\n/**\n * Indicates if we're running on Jenkins\n * @returns {boolean}\n * @private\n */\nfunction inJenkins() {\n return process.env.JENKINS;\n}\n\n/**\n * noop\n * @returns {undefined}\n * @private\n */\nfunction noop() {\n // intentionally empty\n}\n\nmodule.exports = {\n /**\n * Wrap the desired mochaMethod with `flaky` to indicate it's a flaky test\n * and exclude it from the test suite.\n * example:\n * `flaky(it)('sometimes passes and sometimes failes')`\n * @param {Function} mochaMethod `it` or `describe`\n * @param {string} envVar process.env.SKIP_FLAKY_TESTS\n * @returns {Function} mochaMethod or mochaMethod.skip\n */\n flaky: function flaky(mochaMethod, envVar) {\n // If mochaMethod doesn't have a skip method,\n // assume the mochaMethod is either a .skip or .only\n if (!mochaMethod.skip) {\n return mochaMethod;\n }\n\n const shouldSkip = envVar && envVar !== 'false' && !!envVar;\n\n return shouldSkip ? mochaMethod.skip : mochaMethod;\n },\n\n /**\n * A lot of failures get produced by EventEmitters, which makes them difficult to\n * detect in tests (they just look like timeouts). This is a test helper that\n * captures that error and turns it into a rejected promise\n * @param {EventEmitter} emitter\n * @param {Function} fn\n * @returns {Promise}\n */\n handleErrorEvent: function handleErrorEvent(emitter, fn) {\n let r;\n const p = new Promise((resolve, reject) => {\n r = reject;\n emitter.once('error', reject);\n });\n\n const handler = Promise.race([p, fn(emitter)])\n .then(unbind)\n .catch((reason) => {\n unbind();\n throw reason;\n });\n\n // Make it possible to add additional emitters\n handler.add = (e) => e.once('error', r);\n\n return handler;\n\n /**\n * unbinder\n * @private\n * @returns {undefined}\n */\n function unbind() {\n try {\n emitter.off('error', r);\n } catch (err) {\n // ignore\n }\n }\n },\n\n inBrowser,\n\n inNode,\n\n /**\n * Wrap the desired mochaMethod with `skipInBrowser` to prevent the\n * corresponding test or group of tests from running in a web browser\n * example:\n * `skipInBrowser(it)('does a thing that only works in node')`\n * @param {Function} mochaMethod `it` or `describe`\n * @returns {Function} mochaMethod or mochaMethod.skip\n */\n skipInBrowser: function skipInBrowser(mochaMethod) {\n // If mochaMethod doesn't have a skip method, assume that mochaMethod is\n // already either a .skip or a .only\n if (!mochaMethod.skip) {\n return mochaMethod;\n }\n\n return inBrowser() ? mochaMethod.skip : mochaMethod;\n },\n\n /**\n * Wrap the desired mochaMethod with `skipInNode` to prevent the\n * corresponding test or group of tests from running in node.\n * example:\n * `skipInNode(it)('does a thing that only works in a web browser')`\n * @param {Function} mochaMethod `it` or `describe`\n * @returns {Function} mochaMethod or mochaMethod.skip\n */\n skipInNode: function skipInNode(mochaMethod) {\n // If mochaMethod doesn't have a skip method, assume that mochaMethod is\n // already either a .skip or a .only\n if (!mochaMethod.skip) {\n return mochaMethod;\n }\n\n return inNode() ? mochaMethod.skip : mochaMethod;\n },\n\n /**\n * Wrap the desired mochaMethod with `skipInFirefox` to prevent the\n * corresponding test or group of tests from running in Firefox.\n * example:\n * `skipInFirefox(it)('does a thing that does not work in Firefox')`\n * @param {Function} mochaMethod `it` or `describe`\n * @returns {Function} mochaMethod or mochaMethod.skip\n */\n skipInFirefox: function skipInFirefox(mochaMethod) {\n // If mochaMethod doesn't have a skip method, assume that mochaMethod is\n // already either a .skip or a .only\n if (!mochaMethod.skip) {\n return mochaMethod;\n }\n\n return inFirefox() ? mochaMethod.skip : mochaMethod;\n },\n\n /**\n * Wrap the desired mochaMethod with `skipInSafari` to prevent the\n * corresponding test or group of tests from running in Safari.\n * example:\n * `skipInSafari(it)('does a thing that does not work in Safari')`\n * @param {Function} mochaMethod `it` or `describe`\n * @returns {Function} mochaMethod or mochaMethod.skip\n */\n skipInSafari: function skipInSafari(mochaMethod) {\n // If mochaMethod doesn't have a skip method, assume that mochaMethod is\n // already either a .skip or a .only\n if (!mochaMethod.skip) {\n return mochaMethod;\n }\n\n return inSafari() ? mochaMethod.skip : mochaMethod;\n },\n\n /**\n * Similar to skipInNode in that it prevents the test from running, but goes a\n * step further to hide it from the list of skipped tests. Should be used when\n * the test will never be valid in NodeJS\n * @param {Function} mochaMethod\n * @returns {Function}\n */\n browserOnly: function browserOnly(mochaMethod) {\n return inBrowser() ? mochaMethod : noop;\n },\n\n /**\n * Similar to skipInBrowser in that it prevents the test from running, but\n * goes a step further to hide it from the list of skipped tests. Should be\n * used when the test will never be valid in a Browser\n * @param {Function} mochaMethod\n * @returns {Function}\n */\n nodeOnly: function nodeOnly(mochaMethod) {\n return inNode() ? mochaMethod : noop;\n },\n\n /**\n * Similar to skipInBrowser in that it prevents the test from running, but\n * goes a step further to hide it from the list of skipped tests. Should be\n * used when the test should be run on Jenkins only\n * @param {*} mochaMethod\n * @returns {Functions}\n */\n jenkinsOnly: function jenkinsOnly(mochaMethod) {\n return inJenkins() ? mochaMethod : noop;\n },\n\n /**\n * @param {number} max\n * @param {string} event\n * @param {EventEmitter} emitter\n * @param {function} activityChecker // callback to check if activity matches\n * @param {string} msg\n * @returns {Promise<mixed>} Resolves with the activity\n */\n expectActivity: function expectActivity(max, event, emitter, activityChecker, msg) {\n let timer;\n\n /**\n * helper\n * @private\n * @returns {undefined}\n */\n function unbind() {\n try {\n clearTimeout(timer);\n emitter.off(event);\n } catch (err) {\n // ignore\n }\n }\n\n return Promise.race([\n new Promise((resolve, reject) => {\n timer = setTimeout(() => {\n reject(new Error(`${event} did not fire within ${max}ms${msg ? `: ${msg}` : ''}`));\n }, max);\n }),\n new Promise((resolve) => {\n emitter.on(event, (result) => {\n const {\n data: {activity},\n } = result;\n\n if (activityChecker(activity)) {\n unbind();\n resolve(activity);\n }\n });\n }),\n ]).catch((reason) => {\n unbind();\n throw reason;\n });\n },\n\n /**\n * Returns a promise that resolves after timeout or rejects\n * when count has been exceeded. Will also reject if count\n * hasn't been met after timeout\n * @param {number} max amount of time to wait for events in ms\n * @param {number} count number of events to expect in timeframe\n * @param {string} event\n * @param {EventEmitter} emitter\n * @returns {Promise}\n */\n expectExactlyNEvents: function expectExactlyNEvents(max, count, event, emitter) {\n let lastResult;\n let timer;\n\n let currentCount = 0;\n\n return Promise.race([\n new Promise((resolve, reject) => {\n timer = setTimeout(() => {\n if (currentCount === count) {\n resolve(lastResult);\n } else {\n reject(\n new Error(\n `${event} fired only ${currentCount} times within ${max}ms. expected ${count} times`\n )\n );\n }\n }, max);\n }),\n new Promise((resolve, reject) => {\n emitter.on(event, fn);\n\n /**\n * helper\n * @private\n * @param {object} result\n * @returns {undefined}\n */\n function fn(result) {\n lastResult = result;\n currentCount += 1;\n if (currentCount > count) {\n emitter.off(event, fn);\n clearTimeout(timer);\n reject(\n new Error(\n `${event} fired ${currentCount} times within ${max}ms. expected ${count} times`\n )\n );\n }\n }\n }),\n ]);\n },\n\n /**\n * Returns a promise that resolves when event is fired count times or rejects\n * when max expires\n * @param {number} max\n * @param {number} count\n * @param {string} event\n * @param {EventEmitter} emitter\n * @returns {Promise}\n */\n expectNEvents: function expectNEvents(max, count, event, emitter) {\n let timer;\n\n let currentCount = 0;\n\n return Promise.race([\n new Promise((resolve, reject) => {\n timer = setTimeout(() => {\n reject(\n new Error(\n `${event} fired only ${currentCount} times within ${max}ms. expected ${count} times`\n )\n );\n }, max);\n }),\n new Promise((resolve) => {\n emitter.on(event, fn);\n\n /**\n * helper\n * @private\n * @returns {undefined}\n */\n function fn() {\n currentCount += 1;\n if (currentCount === count) {\n emitter.off(event, fn);\n clearTimeout(timer);\n resolve();\n }\n }\n }),\n ]);\n },\n\n /**\n * @param {number} max\n * @param {string} event\n * @param {EventEmitter} emitter\n * @param {string} msg\n * @returns {Promise<mixed>} Resolves with the results of the event\n */\n expectEvent: function expectEvent(max, event, emitter, msg) {\n let timer;\n\n return Promise.race([\n new Promise((resolve, reject) => {\n timer = setTimeout(() => {\n reject(new Error(`${event} did not fire within ${max}ms${msg ? `: ${msg}` : ''}`));\n }, max);\n }),\n new Promise((resolve) => {\n emitter.once(event, (result) => {\n clearTimeout(timer);\n resolve(result);\n });\n }),\n ]);\n },\n\n /**\n * Only run the specified test in firefox\n * @param {Function} mochaMethod\n * @returns {Function}\n */\n firefoxOnly: function firefoxOnly(mochaMethod) {\n return inFirefox() ? mochaMethod : noop;\n },\n\n /**\n * Waits max ms or until emitter fires event, then resolves\n * @param {number} max\n * @param {string} event\n * @param {EventEmitter} emitter\n * @returns {Promise<mixed>}\n */\n maxWaitForEvent: function maxWaitForEvent(max, event, emitter) {\n return Promise.race([\n new Promise((resolve) => {\n setTimeout(resolve, max);\n }),\n new Promise((resolve) => {\n emitter.once(event, resolve);\n }),\n ]);\n },\n\n /**\n * Waits timeout ms or until the promise resolves. Rejects if the timeout is\n * hit, otherwise resolves\n * @param {number} timeout\n * @param {Promise} promise\n * @returns {Promise<mixed>}\n */\n maxWaitForPromise: function maxWaitForPromise(timeout, promise) {\n return Promise.race([\n promise,\n new Promise((resolve, reject) => {\n setTimeout(() => {\n reject(new Error(`Timeout of ${timeout} expired before promise completed`));\n }, timeout);\n }),\n ]);\n },\n\n /**\n * Do not execute the specified mochaMethod until we pass the specified date\n * @param {Date|string} until\n * @param {string} explanation - Doesn't do anything, but forces you to defend\n * your decision to snooze a test\n * @returns {Function}\n */\n snoozeUntil: function snoozeUntil(until, explanation) {\n const now = new Date();\n\n if (!explanation) {\n throw new Error('You must defend your decision to snooze this test');\n }\n\n const d = new Date(until);\n\n if (Number.isNaN(d.getTime())) {\n throw new Error(`\"${until}\" does not appear to a valid date`);\n }\n\n const skip = now < d;\n\n return (mochaMethod) => {\n if (skip) {\n return mochaMethod.skip;\n }\n\n return mochaMethod;\n };\n },\n};\n"],"mappings":";;;;;AAAA;AACA;AACA;;AAEA,IAAMA,MAAM,GAAGC,OAAO,CAAC,QAAQ,CAAC;;AAEhC;AACA;AACA;AACA;AACA;AACA,SAASC,MAAM,GAAG;EAChB,OAAO,OAA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AO,CAACM,IAAI,CAACoB,KAAK,EAAEtB,OAAO,CAAC;IAC9B,CAAC,CAAC,CACH,CAAC;EACJ,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;EACEyC,iBAAiB,EAAE,SAASA,iBAAiB,CAACC,OAAO,EAAEC,OAAO,EAAE;IAC9D,OAAO,iBAAQvC,IAAI,CAAC,CAClBuC,OAAO,EACP,qBAAY,UAAC3C,OAAO,EAAEC,MAAM,EAAK;MAC/B0B,UAAU,CAAC,YAAM;QACf1B,MAAM,CAAC,IAAI2B,KAAK,sBAAec,OAAO,uCAAoC,CAAC;MAC7E,CAAC,EAAEA,OAAO,CAAC;IACb,CAAC,CAAC,CACH,CAAC;EACJ,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;EACEE,WAAW,EAAE,SAASA,WAAW,CAACC,KAAK,EAAEC,WAAW,EAAE;IACpD,IAAMC,GAAG,GAAG,IAAIC,IAAI,EAAE;IAEtB,IAAI,CAACF,WAAW,EAAE;MAChB,MAAM,IAAIlB,KAAK,CAAC,mDAAmD,CAAC;IACtE;IAEA,IAAMqB,CAAC,GAAG,IAAID,IAAI,CAACH,KAAK,CAAC;IAEzB,IAAI,oBAAaI,CAAC,CAACC,OAAO,EAAE,CAAC,EAAE;MAC7B,MAAM,IAAItB,KAAK,aAAKiB,KAAK,wCAAoC;IAC/D;IAEA,IAAMpD,IAAI,GAAGsD,GAAG,GAAGE,CAAC;IAEpB,OAAO,UAAC1D,WAAW,EAAK;MACtB,IAAIE,IAAI,EAAE;QACR,OAAOF,WAAW,CAACE,IAAI;MACzB;MAEA,OAAOF,WAAW;IACpB,CAAC;EACH;AACF,CAAC"}
|
|
1
|
+
{"version":3,"names":["bowser","require","inNode","window","inBrowser","inSpecificBrowser","name","getParser","navigator","userAgent","isBrowser","inFirefox","inSafari","inJenkins","process","env","JENKINS","noop","module","exports","flaky","mochaMethod","envVar","skip","shouldSkip","handleErrorEvent","emitter","fn","r","p","_promise","default","resolve","reject","once","handler","race","then","unbind","catch","reason","add","e","off","err","skipInBrowser","skipInNode","skipInFirefox","skipInSafari","browserOnly","nodeOnly","jenkinsOnly","expectActivity","max","event","activityChecker","msg","timer","clearTimeout","setTimeout","Error","concat","on","result","activity","data","expectExactlyNEvents","count","lastResult","currentCount","expectNEvents","expectEvent","firefoxOnly","maxWaitForEvent","maxWaitForPromise","timeout","promise","snoozeUntil","until","explanation","now","Date","d","_isNan","getTime"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nconst bowser = require('bowser');\n\n/**\n * Indicates if we're running in node\n * @returns {boolean}\n * @private\n */\nfunction inNode() {\n return typeof window === 'undefined';\n}\n\n/**\n * Indicates if we're running in a web browser\n * @returns {boolean}\n * @private\n */\nfunction inBrowser() {\n return !inNode();\n}\n\n/**\n * Indicates if we are running in the named browser\n * @param {string} name name of the browser\n * @returns {boolean}\n */\nfunction inSpecificBrowser(name) {\n return window && bowser.getParser(window.navigator.userAgent).isBrowser(name);\n}\n\n/**\n * Indicates if we're running in firefox\n * @returns {boolean}\n * @private\n */\nfunction inFirefox() {\n return inSpecificBrowser('firefox');\n}\n\n/**\n * Indicates if we're running in safari\n * @returns {boolean}\n * @private\n */\nfunction inSafari() {\n return inSpecificBrowser('safari');\n}\n\n/**\n * Indicates if we're running on Jenkins\n * @returns {boolean}\n * @private\n */\nfunction inJenkins() {\n return process.env.JENKINS;\n}\n\n/**\n * noop\n * @returns {undefined}\n * @private\n */\nfunction noop() {\n // intentionally empty\n}\n\nmodule.exports = {\n /**\n * Wrap the desired mochaMethod with `flaky` to indicate it's a flaky test\n * and exclude it from the test suite.\n * example:\n * `flaky(it)('sometimes passes and sometimes failes')`\n * @param {Function} mochaMethod `it` or `describe`\n * @param {string} envVar process.env.SKIP_FLAKY_TESTS\n * @returns {Function} mochaMethod or mochaMethod.skip\n */\n flaky: function flaky(mochaMethod, envVar) {\n // If mochaMethod doesn't have a skip method,\n // assume the mochaMethod is either a .skip or .only\n if (!mochaMethod.skip) {\n return mochaMethod;\n }\n\n const shouldSkip = envVar && envVar !== 'false' && !!envVar;\n\n return shouldSkip ? mochaMethod.skip : mochaMethod;\n },\n\n /**\n * A lot of failures get produced by EventEmitters, which makes them difficult to\n * detect in tests (they just look like timeouts). This is a test helper that\n * captures that error and turns it into a rejected promise\n * @param {EventEmitter} emitter\n * @param {Function} fn\n * @returns {Promise}\n */\n handleErrorEvent: function handleErrorEvent(emitter, fn) {\n let r;\n const p = new Promise((resolve, reject) => {\n r = reject;\n emitter.once('error', reject);\n });\n\n const handler = Promise.race([p, fn(emitter)])\n .then(unbind)\n .catch((reason) => {\n unbind();\n throw reason;\n });\n\n // Make it possible to add additional emitters\n handler.add = (e) => e.once('error', r);\n\n return handler;\n\n /**\n * unbinder\n * @private\n * @returns {undefined}\n */\n function unbind() {\n try {\n emitter.off('error', r);\n } catch (err) {\n // ignore\n }\n }\n },\n\n inBrowser,\n\n inNode,\n\n /**\n * Wrap the desired mochaMethod with `skipInBrowser` to prevent the\n * corresponding test or group of tests from running in a web browser\n * example:\n * `skipInBrowser(it)('does a thing that only works in node')`\n * @param {Function} mochaMethod `it` or `describe`\n * @returns {Function} mochaMethod or mochaMethod.skip\n */\n skipInBrowser: function skipInBrowser(mochaMethod) {\n // If mochaMethod doesn't have a skip method, assume that mochaMethod is\n // already either a .skip or a .only\n if (!mochaMethod.skip) {\n return mochaMethod;\n }\n\n return inBrowser() ? mochaMethod.skip : mochaMethod;\n },\n\n /**\n * Wrap the desired mochaMethod with `skipInNode` to prevent the\n * corresponding test or group of tests from running in node.\n * example:\n * `skipInNode(it)('does a thing that only works in a web browser')`\n * @param {Function} mochaMethod `it` or `describe`\n * @returns {Function} mochaMethod or mochaMethod.skip\n */\n skipInNode: function skipInNode(mochaMethod) {\n // If mochaMethod doesn't have a skip method, assume that mochaMethod is\n // already either a .skip or a .only\n if (!mochaMethod.skip) {\n return mochaMethod;\n }\n\n return inNode() ? mochaMethod.skip : mochaMethod;\n },\n\n /**\n * Wrap the desired mochaMethod with `skipInFirefox` to prevent the\n * corresponding test or group of tests from running in Firefox.\n * example:\n * `skipInFirefox(it)('does a thing that does not work in Firefox')`\n * @param {Function} mochaMethod `it` or `describe`\n * @returns {Function} mochaMethod or mochaMethod.skip\n */\n skipInFirefox: function skipInFirefox(mochaMethod) {\n // If mochaMethod doesn't have a skip method, assume that mochaMethod is\n // already either a .skip or a .only\n if (!mochaMethod.skip) {\n return mochaMethod;\n }\n\n return inFirefox() ? mochaMethod.skip : mochaMethod;\n },\n\n /**\n * Wrap the desired mochaMethod with `skipInSafari` to prevent the\n * corresponding test or group of tests from running in Safari.\n * example:\n * `skipInSafari(it)('does a thing that does not work in Safari')`\n * @param {Function} mochaMethod `it` or `describe`\n * @returns {Function} mochaMethod or mochaMethod.skip\n */\n skipInSafari: function skipInSafari(mochaMethod) {\n // If mochaMethod doesn't have a skip method, assume that mochaMethod is\n // already either a .skip or a .only\n if (!mochaMethod.skip) {\n return mochaMethod;\n }\n\n return inSafari() ? mochaMethod.skip : mochaMethod;\n },\n\n /**\n * Similar to skipInNode in that it prevents the test from running, but goes a\n * step further to hide it from the list of skipped tests. Should be used when\n * the test will never be valid in NodeJS\n * @param {Function} mochaMethod\n * @returns {Function}\n */\n browserOnly: function browserOnly(mochaMethod) {\n return inBrowser() ? mochaMethod : noop;\n },\n\n /**\n * Similar to skipInBrowser in that it prevents the test from running, but\n * goes a step further to hide it from the list of skipped tests. Should be\n * used when the test will never be valid in a Browser\n * @param {Function} mochaMethod\n * @returns {Function}\n */\n nodeOnly: function nodeOnly(mochaMethod) {\n return inNode() ? mochaMethod : noop;\n },\n\n /**\n * Similar to skipInBrowser in that it prevents the test from running, but\n * goes a step further to hide it from the list of skipped tests. Should be\n * used when the test should be run on Jenkins only\n * @param {*} mochaMethod\n * @returns {Functions}\n */\n jenkinsOnly: function jenkinsOnly(mochaMethod) {\n return inJenkins() ? mochaMethod : noop;\n },\n\n /**\n * @param {number} max\n * @param {string} event\n * @param {EventEmitter} emitter\n * @param {function} activityChecker // callback to check if activity matches\n * @param {string} msg\n * @returns {Promise<mixed>} Resolves with the activity\n */\n expectActivity: function expectActivity(max, event, emitter, activityChecker, msg) {\n let timer;\n\n /**\n * helper\n * @private\n * @returns {undefined}\n */\n function unbind() {\n try {\n clearTimeout(timer);\n emitter.off(event);\n } catch (err) {\n // ignore\n }\n }\n\n return Promise.race([\n new Promise((resolve, reject) => {\n timer = setTimeout(() => {\n reject(new Error(`${event} did not fire within ${max}ms${msg ? `: ${msg}` : ''}`));\n }, max);\n }),\n new Promise((resolve) => {\n emitter.on(event, (result) => {\n const {\n data: {activity},\n } = result;\n\n if (activityChecker(activity)) {\n unbind();\n resolve(activity);\n }\n });\n }),\n ]).catch((reason) => {\n unbind();\n throw reason;\n });\n },\n\n /**\n * Returns a promise that resolves after timeout or rejects\n * when count has been exceeded. Will also reject if count\n * hasn't been met after timeout\n * @param {number} max amount of time to wait for events in ms\n * @param {number} count number of events to expect in timeframe\n * @param {string} event\n * @param {EventEmitter} emitter\n * @returns {Promise}\n */\n expectExactlyNEvents: function expectExactlyNEvents(max, count, event, emitter) {\n let lastResult;\n let timer;\n\n let currentCount = 0;\n\n return Promise.race([\n new Promise((resolve, reject) => {\n timer = setTimeout(() => {\n if (currentCount === count) {\n resolve(lastResult);\n } else {\n reject(\n new Error(\n `${event} fired only ${currentCount} times within ${max}ms. expected ${count} times`\n )\n );\n }\n }, max);\n }),\n new Promise((resolve, reject) => {\n emitter.on(event, fn);\n\n /**\n * helper\n * @private\n * @param {object} result\n * @returns {undefined}\n */\n function fn(result) {\n lastResult = result;\n currentCount += 1;\n if (currentCount > count) {\n emitter.off(event, fn);\n clearTimeout(timer);\n reject(\n new Error(\n `${event} fired ${currentCount} times within ${max}ms. expected ${count} times`\n )\n );\n }\n }\n }),\n ]);\n },\n\n /**\n * Returns a promise that resolves when event is fired count times or rejects\n * when max expires\n * @param {number} max\n * @param {number} count\n * @param {string} event\n * @param {EventEmitter} emitter\n * @returns {Promise}\n */\n expectNEvents: function expectNEvents(max, count, event, emitter) {\n let timer;\n\n let currentCount = 0;\n\n return Promise.race([\n new Promise((resolve, reject) => {\n timer = setTimeout(() => {\n reject(\n new Error(\n `${event} fired only ${currentCount} times within ${max}ms. expected ${count} times`\n )\n );\n }, max);\n }),\n new Promise((resolve) => {\n emitter.on(event, fn);\n\n /**\n * helper\n * @private\n * @returns {undefined}\n */\n function fn() {\n currentCount += 1;\n if (currentCount === count) {\n emitter.off(event, fn);\n clearTimeout(timer);\n resolve();\n }\n }\n }),\n ]);\n },\n\n /**\n * @param {number} max\n * @param {string} event\n * @param {EventEmitter} emitter\n * @param {string} msg\n * @returns {Promise<mixed>} Resolves with the results of the event\n */\n expectEvent: function expectEvent(max, event, emitter, msg) {\n let timer;\n\n return Promise.race([\n new Promise((resolve, reject) => {\n timer = setTimeout(() => {\n reject(new Error(`${event} did not fire within ${max}ms${msg ? `: ${msg}` : ''}`));\n }, max);\n }),\n new Promise((resolve) => {\n emitter.once(event, (result) => {\n clearTimeout(timer);\n resolve(result);\n });\n }),\n ]);\n },\n\n /**\n * Only run the specified test in firefox\n * @param {Function} mochaMethod\n * @returns {Function}\n */\n firefoxOnly: function firefoxOnly(mochaMethod) {\n return inFirefox() ? mochaMethod : noop;\n },\n\n /**\n * Waits max ms or until emitter fires event, then resolves\n * @param {number} max\n * @param {string} event\n * @param {EventEmitter} emitter\n * @returns {Promise<mixed>}\n */\n maxWaitForEvent: function maxWaitForEvent(max, event, emitter) {\n return Promise.race([\n new Promise((resolve) => {\n setTimeout(resolve, max);\n }),\n new Promise((resolve) => {\n emitter.once(event, resolve);\n }),\n ]);\n },\n\n /**\n * Waits timeout ms or until the promise resolves. Rejects if the timeout is\n * hit, otherwise resolves\n * @param {number} timeout\n * @param {Promise} promise\n * @returns {Promise<mixed>}\n */\n maxWaitForPromise: function maxWaitForPromise(timeout, promise) {\n return Promise.race([\n promise,\n new Promise((resolve, reject) => {\n setTimeout(() => {\n reject(new Error(`Timeout of ${timeout} expired before promise completed`));\n }, timeout);\n }),\n ]);\n },\n\n /**\n * Do not execute the specified mochaMethod until we pass the specified date\n * @param {Date|string} until\n * @param {string} explanation - Doesn't do anything, but forces you to defend\n * your decision to snooze a test\n * @returns {Function}\n */\n snoozeUntil: function snoozeUntil(until, explanation) {\n const now = new Date();\n\n if (!explanation) {\n throw new Error('You must defend your decision to snooze this test');\n }\n\n const d = new Date(until);\n\n if (Number.isNaN(d.getTime())) {\n throw new Error(`\"${until}\" does not appear to a valid date`);\n }\n\n const skip = now < d;\n\n return (mochaMethod) => {\n if (skip) {\n return mochaMethod.skip;\n }\n\n return mochaMethod;\n };\n },\n};\n"],"mappings":";;;;;AAAA;AACA;AACA;;AAEA,IAAMA,MAAM,GAAGC,OAAO,CAAC,QAAQ,CAAC;;AAEhC;AACA;AACA;AACA;AACA;AACA,SAASC,MAAMA,CAAA,EAAG;EAChB,OAAO,OAAOC,MAAM,KAAK,WAAW;AACtC;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASC,SAASA,CAAA,EAAG;EACnB,OAAO,CAACF,MAAM,CAAC,CAAC;AAClB;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASG,iBAAiBA,CAACC,IAAI,EAAE;EAC/B,OAAOH,MAAM,IAAIH,MAAM,CAACO,SAAS,CAACJ,MAAM,CAACK,SAAS,CAACC,SAAS,CAAC,CAACC,SAAS,CAACJ,IAAI,CAAC;AAC/E;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASK,SAASA,CAAA,EAAG;EACnB,OAAON,iBAAiB,CAAC,SAAS,CAAC;AACrC;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASO,QAAQA,CAAA,EAAG;EAClB,OAAOP,iBAAiB,CAAC,QAAQ,CAAC;AACpC;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASQ,SAASA,CAAA,EAAG;EACnB,OAAOC,OAAO,CAACC,GAAG,CAACC,OAAO;AAC5B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,OAAO,UAAC7D,WAAW,EAAK;MACtB,IAAIE,IAAI,EAAE;QACR,OAAOF,WAAW,CAACE,IAAI;MACzB;MAEA,OAAOF,WAAW;IACpB,CAAC;EACH;AACF,CAAC"}
|
package/jest.config.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/test-helper-mocha",
|
|
3
|
-
"version": "3.0.0-bnr.5",
|
|
4
3
|
"description": "Helpers for controlling where tests run",
|
|
5
4
|
"license": "MIT",
|
|
6
5
|
"main": "dist/index.js",
|
|
@@ -14,5 +13,26 @@
|
|
|
14
13
|
},
|
|
15
14
|
"dependencies": {
|
|
16
15
|
"bowser": "^2.11.0"
|
|
17
|
-
}
|
|
18
|
-
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "yarn build:src",
|
|
19
|
+
"build:src": "webex-legacy-tools build -dest \"./dist\" -src \"./src\" -js -ts -maps",
|
|
20
|
+
"deploy:npm": "yarn npm publish",
|
|
21
|
+
"test": "yarn test:style && yarn test:unit && yarn test:integration && yarn test:browser",
|
|
22
|
+
"test:browser": "webex-legacy-tools test --integration --runner karma",
|
|
23
|
+
"test:style": "eslint ./src/**/*.*"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@babel/core": "^7.17.10",
|
|
27
|
+
"@webex/babel-config-legacy": "0.0.0",
|
|
28
|
+
"@webex/eslint-config-legacy": "0.0.0",
|
|
29
|
+
"@webex/jest-config-legacy": "0.0.0",
|
|
30
|
+
"@webex/legacy-tools": "0.0.0",
|
|
31
|
+
"@webex/test-helper-chai": "3.0.0",
|
|
32
|
+
"@webex/test-helper-mock-webex": "3.0.0",
|
|
33
|
+
"@webex/test-helper-test-users": "3.0.0",
|
|
34
|
+
"eslint": "^8.24.0",
|
|
35
|
+
"prettier": "^2.7.1"
|
|
36
|
+
},
|
|
37
|
+
"version": "3.0.0"
|
|
38
|
+
}
|
package/process
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = {browser: true};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Converts a string from a base64url-encoded string
|
|
3
|
-
* @param {string} str
|
|
4
|
-
* @returns {string}
|
|
5
|
-
*/
|
|
6
|
-
export function fromBase64url(str: string): string;
|
|
7
|
-
/**
|
|
8
|
-
* Converts a string to a base64url-encoded string. It also accepts a buffer
|
|
9
|
-
* @param {string|buffer} str
|
|
10
|
-
* @returns {string}
|
|
11
|
-
*/
|
|
12
|
-
export function toBase64Url(str: any): string;
|
|
13
|
-
/**
|
|
14
|
-
* Converts a string to a base64url-encoded string. It also accepts a buffer
|
|
15
|
-
* @param {string|buffer} str
|
|
16
|
-
* @returns {string}
|
|
17
|
-
*/
|
|
18
|
-
export function encode(str: string | buffer): string;
|
|
19
|
-
/**
|
|
20
|
-
* Converts a string from a base64url-encoded string
|
|
21
|
-
* @param {string} str
|
|
22
|
-
* @returns {string}
|
|
23
|
-
*/
|
|
24
|
-
export function decode(str: string): string;
|
|
25
|
-
/**
|
|
26
|
-
* Indicates if the provided string is, in fact, a base64 string
|
|
27
|
-
* @param {String} str
|
|
28
|
-
* @returns {Boolean}
|
|
29
|
-
*/
|
|
30
|
-
export function validate(str: string): boolean;
|
|
31
|
-
declare namespace _default {
|
|
32
|
-
export { fromBase64url };
|
|
33
|
-
export { toBase64Url };
|
|
34
|
-
export { encode };
|
|
35
|
-
export { decode };
|
|
36
|
-
export { validate };
|
|
37
|
-
}
|
|
38
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Behaves like debounce, but additionally executes after a number of calls are
|
|
6
|
-
* attempted, rather than just time
|
|
7
|
-
* @param {Function} fn
|
|
8
|
-
* @param {Number} wait
|
|
9
|
-
* @param {Object} options
|
|
10
|
-
* @returns {Function}
|
|
11
|
-
*/
|
|
12
|
-
export default function debounce(fn: Function, wait: number, options: any): Function;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Check object for the specified keys
|
|
6
|
-
* @param {Array<string>} keys
|
|
7
|
-
* @param {Object} object
|
|
8
|
-
* @returns {undefined}
|
|
9
|
-
* @throws Error
|
|
10
|
-
*/
|
|
11
|
-
export default function checkRequired(keys: Array<string>, object: any): undefined;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
export namespace SDK_EVENT {
|
|
2
|
-
namespace INTERNAL {
|
|
3
|
-
const WEBEX_ACTIVITY: string;
|
|
4
|
-
namespace ACTIVITY_FIELD {
|
|
5
|
-
const ACTOR: string;
|
|
6
|
-
const OBJECT: string;
|
|
7
|
-
const TARGET: string;
|
|
8
|
-
}
|
|
9
|
-
namespace ACTIVITY_VERB {
|
|
10
|
-
const ACKNOWLEDGE: string;
|
|
11
|
-
const CARD_ACTION: string;
|
|
12
|
-
const CREATE: string;
|
|
13
|
-
const POST: string;
|
|
14
|
-
const SHARE: string;
|
|
15
|
-
const DELETE: string;
|
|
16
|
-
const ADD: string;
|
|
17
|
-
const LEAVE: string;
|
|
18
|
-
const ADD_MODERATOR: string;
|
|
19
|
-
const REMOVE_MODERATOR: string;
|
|
20
|
-
const LOCK: string;
|
|
21
|
-
const UNLOCK: string;
|
|
22
|
-
const HIDE: string;
|
|
23
|
-
const UPDATE: string;
|
|
24
|
-
}
|
|
25
|
-
namespace ACTIVITY_TAG {
|
|
26
|
-
const HIDDEN: string;
|
|
27
|
-
const ONE_ON_ONE: string;
|
|
28
|
-
const LOCKED: string;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
namespace EXTERNAL {
|
|
32
|
-
namespace EVENT_TYPE {
|
|
33
|
-
const CREATED: string;
|
|
34
|
-
const DELETED: string;
|
|
35
|
-
const UPDATED: string;
|
|
36
|
-
const SEEN: string;
|
|
37
|
-
}
|
|
38
|
-
namespace OWNER {
|
|
39
|
-
const CREATOR: string;
|
|
40
|
-
const ORG: string;
|
|
41
|
-
}
|
|
42
|
-
namespace STATUS {
|
|
43
|
-
const ACTIVE: string;
|
|
44
|
-
const DISABLED: string;
|
|
45
|
-
}
|
|
46
|
-
namespace SPACE_TYPE {
|
|
47
|
-
const DIRECT: string;
|
|
48
|
-
const GROUP: string;
|
|
49
|
-
}
|
|
50
|
-
namespace RESOURCE {
|
|
51
|
-
const ATTACHMENT_ACTIONS: string;
|
|
52
|
-
const MEMBERSHIPS: string;
|
|
53
|
-
const MESSAGES: string;
|
|
54
|
-
const ROOMS: string;
|
|
55
|
-
}
|
|
56
|
-
namespace ATTACHMENTS {
|
|
57
|
-
const CARD_CONTENT_TYPE: string;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
export namespace hydraTypes {
|
|
62
|
-
const ATTACHMENT_ACTION: string;
|
|
63
|
-
const CONTENT: string;
|
|
64
|
-
const MEMBERSHIP: string;
|
|
65
|
-
const MESSAGE: string;
|
|
66
|
-
const ORGANIZATION: string;
|
|
67
|
-
const PEOPLE: string;
|
|
68
|
-
const ROOM: string;
|
|
69
|
-
const TEAM: string;
|
|
70
|
-
}
|
|
71
|
-
export namespace deviceType {
|
|
72
|
-
const PROVISIONAL: string;
|
|
73
|
-
const WEB: string;
|
|
74
|
-
}
|
|
75
|
-
export const INTERNAL_US_CLUSTER_NAME: "urn:TEAM:us-east-2_a";
|
|
76
|
-
export const INTERNAL_US_INTEGRATION_CLUSTER_NAME: "urn:TEAM:us-east-1_int13";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Creates a new `Defer`red object,
|
|
6
|
-
* @returns {Defer}
|
|
7
|
-
*/
|
|
8
|
-
export default function Defer(): Defer;
|
|
9
|
-
export default class Defer {
|
|
10
|
-
promise: Promise<any>;
|
|
11
|
-
/**
|
|
12
|
-
* @instance
|
|
13
|
-
* @memberof Defer
|
|
14
|
-
* @type {function}
|
|
15
|
-
*/
|
|
16
|
-
resolve: Function;
|
|
17
|
-
/**
|
|
18
|
-
* @instance
|
|
19
|
-
* @memberof Defer
|
|
20
|
-
* @type {function}
|
|
21
|
-
*/
|
|
22
|
-
reject: Function;
|
|
23
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates a 'webhook' envelope to wrap Webex events in
|
|
3
|
-
* @param {object} webex - sdk object
|
|
4
|
-
* @param {string} resource - resource to create an envelope for
|
|
5
|
-
* @returns {object} - Returns a promise of an event envelope object
|
|
6
|
-
*/
|
|
7
|
-
export function createEventEnvelope(webex: object, resource: string): object;
|
|
8
|
-
/**
|
|
9
|
-
* Stores SDK users info in the sdk object if it doesn't already exist
|
|
10
|
-
* @param {object} webex - sdk object
|
|
11
|
-
* @returns {Promise} - Returns a promise that user info will be available
|
|
12
|
-
*/
|
|
13
|
-
export function ensureMyIdIsAvailable(webex: object): Promise<any>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Proxies the event binding methods of emitter onto proxy
|
|
3
|
-
* @param {EventEmitter|EventEmitterProxy} emitter
|
|
4
|
-
* @param {mixed} proxy (probably a promise)
|
|
5
|
-
* @returns {EventEmitter} Returns the source emitter to ease use in promise chains
|
|
6
|
-
*/
|
|
7
|
-
export function proxyEvents(emitter: EventEmitter | EventEmitterProxy, proxy: mixed): EventEmitter;
|
|
8
|
-
/**
|
|
9
|
-
* Given a list of events, fires them on drain when they're emitted from source
|
|
10
|
-
* @param {Array|string} events
|
|
11
|
-
* @param {EventEmitter} source
|
|
12
|
-
* @param {EventEmitter} drain
|
|
13
|
-
* @returns {undefined}
|
|
14
|
-
*/
|
|
15
|
-
export function transferEvents(events: any[] | string, source: EventEmitter, drain: EventEmitter): undefined;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Base Exception class
|
|
6
|
-
*/
|
|
7
|
-
export default class Exception extends Error {
|
|
8
|
-
static defaultMessage: string;
|
|
9
|
-
/**
|
|
10
|
-
* Generates the value assigned to `this.message`. You'll probably want to
|
|
11
|
-
* override this in your custom Exception
|
|
12
|
-
* @param {mixed} args
|
|
13
|
-
* @returns {string}
|
|
14
|
-
*/
|
|
15
|
-
static parse(...args: mixed): string;
|
|
16
|
-
/**
|
|
17
|
-
* constructor
|
|
18
|
-
* @param {mixed} args
|
|
19
|
-
* @returns {Exception}
|
|
20
|
-
*/
|
|
21
|
-
constructor(...args: mixed);
|
|
22
|
-
message: any;
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./node";
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export { default as base64 } from "./base64";
|
|
2
|
-
export { default as isBuffer } from "./isBuffer";
|
|
3
|
-
export { default as cappedDebounce } from "./capped-debounce";
|
|
4
|
-
export { default as checkRequired } from "./check-required";
|
|
5
|
-
export { default as Defer } from "./defer";
|
|
6
|
-
export { default as makeStateDataType } from "./make-state-datatype";
|
|
7
|
-
export { default as make } from "./template-container";
|
|
8
|
-
export { default as oneFlight } from "./one-flight";
|
|
9
|
-
export { default as patterns } from "./patterns";
|
|
10
|
-
export { default as resolveWith } from "./resolve-with";
|
|
11
|
-
export { default as retry } from "./retry";
|
|
12
|
-
export { default as tap } from "./tap";
|
|
13
|
-
export { default as whileInFlight } from "./while-in-flight";
|
|
14
|
-
export { default as Exception } from "./exception";
|
|
15
|
-
export { default as deprecated } from "./deprecated";
|
|
16
|
-
export { default as inBrowser } from "./in-browser";
|
|
17
|
-
export { default as BrowserDetection } from "./browser-detection";
|
|
18
|
-
export { proxyEvents, transferEvents } from "./events";
|
|
19
|
-
export { createEventEnvelope, ensureMyIdIsAvailable } from "./event-envelope";
|
|
20
|
-
export { deviceType, hydraTypes, SDK_EVENT, INTERNAL_US_CLUSTER_NAME, INTERNAL_US_INTEGRATION_CLUSTER_NAME } from "./constants";
|
|
21
|
-
export { buildHydraMembershipId, buildHydraMessageId, buildHydraOrgId, buildHydraPersonId, buildHydraRoomId, getHydraRoomType, getHydraClusterString, getHydraFiles, constructHydraId, deconstructHydraId } from "./uuid-utils";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Creates an ampersand state object that wires its event handlers like a an
|
|
6
|
-
* ampersand child
|
|
7
|
-
* @param {Function} Constructor
|
|
8
|
-
* @param {string} name
|
|
9
|
-
* @returns {Object}
|
|
10
|
-
*/
|
|
11
|
-
export default function makeStateDataType(Constructor: Function, name: string): any;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @memberof Util
|
|
3
|
-
* @param {Object} options
|
|
4
|
-
* @param {Function} options.keyFactory
|
|
5
|
-
* @param {boolean} options.cacheFailures
|
|
6
|
-
* @param {boolean} options.cacheSuccesses
|
|
7
|
-
* @returns {Function}
|
|
8
|
-
*/
|
|
9
|
-
export default function oneFlight(...params: any[]): Function;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Sugar method for returning the desired object at the end of a promise chain
|
|
6
|
-
* @param {any} object the item with which to resolve the promise chain
|
|
7
|
-
* @returns {function}
|
|
8
|
-
* @example
|
|
9
|
-
* var item = {
|
|
10
|
-
* prop: 2
|
|
11
|
-
* };
|
|
12
|
-
* Promise
|
|
13
|
-
* .resolve(item.prop)
|
|
14
|
-
* .then(resolveWith(item))
|
|
15
|
-
* .then(function(res) {
|
|
16
|
-
* require('assert').deepEqual(res, {prop:2});
|
|
17
|
-
* return 'success'
|
|
18
|
-
* })
|
|
19
|
-
* // => success
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
export default function resolveWith(object: any): Function;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Makes a promise-returning method retryable according to the specified backoff
|
|
3
|
-
* pattern
|
|
4
|
-
* @param {Object} options
|
|
5
|
-
* @param {boolean} options.backoff
|
|
6
|
-
* @param {number} options.delay
|
|
7
|
-
* @param {number} options.initialDelay
|
|
8
|
-
* @param {number} options.maxAttempts
|
|
9
|
-
* @param {number} options.maxDelay
|
|
10
|
-
*
|
|
11
|
-
* @returns {Function}
|
|
12
|
-
*/
|
|
13
|
-
export default function retry(...params: any[]): Function;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Injects code into a promise chain without modifying the promise chain's result
|
|
6
|
-
* @param {Function} fn
|
|
7
|
-
* @returns {Promise}
|
|
8
|
-
* @example
|
|
9
|
-
* function f() {
|
|
10
|
-
* return Promise.resolve(5);
|
|
11
|
-
* }
|
|
12
|
-
*
|
|
13
|
-
* f()
|
|
14
|
-
* .then(tap(() => 12))
|
|
15
|
-
* // => 5
|
|
16
|
-
*/
|
|
17
|
-
export default function tap(fn: Function): Promise<any>;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export { make as default };
|
|
2
|
-
/**
|
|
3
|
-
* Factory which produces a multi-keyed container based on the provided set of
|
|
4
|
-
* constructors
|
|
5
|
-
* @param {mixed} containers
|
|
6
|
-
* @returns {Container}
|
|
7
|
-
*/
|
|
8
|
-
declare function make(...containers: mixed): {
|
|
9
|
-
/**
|
|
10
|
-
* getter for .size
|
|
11
|
-
* @returns {number}
|
|
12
|
-
*/
|
|
13
|
-
readonly size: number;
|
|
14
|
-
/**
|
|
15
|
-
* Identical to Container#set() but leads slightly more intuitive code when
|
|
16
|
-
* the container is based on a Set rather than a Map.
|
|
17
|
-
* @returns {Container}
|
|
18
|
-
*/
|
|
19
|
-
add(...args: any[]): any;
|
|
20
|
-
/**
|
|
21
|
-
* Removes all items from the container
|
|
22
|
-
* @returns {undefined}
|
|
23
|
-
*/
|
|
24
|
-
clear(): undefined;
|
|
25
|
-
/**
|
|
26
|
-
* Removes the specified item to the container
|
|
27
|
-
* @param {mixed} key
|
|
28
|
-
* @param {Array<mixed>} keys
|
|
29
|
-
* @returns {boolean}
|
|
30
|
-
*/
|
|
31
|
-
delete(key: mixed, ...keys: Array<mixed>): boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Retrieves the specified item from the container
|
|
34
|
-
* @param {mixed} key
|
|
35
|
-
* @param {Array<mixed>} keys
|
|
36
|
-
* @returns {mixed}
|
|
37
|
-
*/
|
|
38
|
-
get(key: mixed, ...keys: Array<mixed>): mixed;
|
|
39
|
-
/**
|
|
40
|
-
* Indicates whether the container holds the specified item
|
|
41
|
-
* @param {mixed} key
|
|
42
|
-
* @param {Array<mixed>} keys
|
|
43
|
-
* @returns {Boolean}
|
|
44
|
-
*/
|
|
45
|
-
has(...args: any[]): boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Stores the specified item in the container
|
|
48
|
-
* @param {mixed} key
|
|
49
|
-
* @param {Array<mixed>} args
|
|
50
|
-
* @param {mixed} value
|
|
51
|
-
* @returns {Container}
|
|
52
|
-
*/
|
|
53
|
-
set(...args: Array<mixed>): any;
|
|
54
|
-
/**
|
|
55
|
-
* @private
|
|
56
|
-
* @returns {string}
|
|
57
|
-
*/
|
|
58
|
-
inspect(): string;
|
|
59
|
-
};
|