@webex/test-helper-server 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/cookies.js.map +1 -1
- package/dist/files.js.map +1 -1
- package/dist/form.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/json.js.map +1 -1
- package/dist/reflect.js.map +1 -1
- package/jest.config.js +3 -0
- package/package.json +26 -5
- 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 -841
- 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/cookies.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["cookieParser","require","express","router","Router","use","get","req","res","status","cookie","send","end","cookies","oreo","module","exports"],"sources":["cookies.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nconst cookieParser = require(`cookie-parser`);\nconst express = require(`express`);\n\n/* eslint new-cap: [0] */\nconst router = express.Router();\n\n// Enable cookies\n// --------------\n\nrouter.use(cookieParser());\n\nrouter.get(`/set`, (req, res) => {\n res.status(200).cookie(`oreo`, `double stuf`).send().end();\n});\n\nrouter.get(`/expect`, (req, res) => {\n if (req.cookies.oreo === `double stuf`) {\n res.status(200).send().end();\n } else {\n res.status(403).send().end();\n }\n});\n\nmodule.exports = router;\n"],"mappings":";;AAAA;AACA;AACA;;AAEA,IAAMA,YAAY,GAAGC,OAAO,
|
|
1
|
+
{"version":3,"names":["cookieParser","require","express","router","Router","use","get","req","res","status","cookie","send","end","cookies","oreo","module","exports"],"sources":["cookies.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nconst cookieParser = require(`cookie-parser`);\nconst express = require(`express`);\n\n/* eslint new-cap: [0] */\nconst router = express.Router();\n\n// Enable cookies\n// --------------\n\nrouter.use(cookieParser());\n\nrouter.get(`/set`, (req, res) => {\n res.status(200).cookie(`oreo`, `double stuf`).send().end();\n});\n\nrouter.get(`/expect`, (req, res) => {\n if (req.cookies.oreo === `double stuf`) {\n res.status(200).send().end();\n } else {\n res.status(403).send().end();\n }\n});\n\nmodule.exports = router;\n"],"mappings":";;AAAA;AACA;AACA;;AAEA,IAAMA,YAAY,GAAGC,OAAO,gBAAgB,CAAC;AAC7C,IAAMC,OAAO,GAAGD,OAAO,UAAU,CAAC;;AAElC;AACA,IAAME,MAAM,GAAGD,OAAO,CAACE,MAAM,CAAC,CAAC;;AAE/B;AACA;;AAEAD,MAAM,CAACE,GAAG,CAACL,YAAY,CAAC,CAAC,CAAC;AAE1BG,MAAM,CAACG,GAAG,SAAS,UAACC,GAAG,EAAEC,GAAG,EAAK;EAC/BA,GAAG,CAACC,MAAM,CAAC,GAAG,CAAC,CAACC,MAAM,sBAAsB,CAAC,CAACC,IAAI,CAAC,CAAC,CAACC,GAAG,CAAC,CAAC;AAC5D,CAAC,CAAC;AAEFT,MAAM,CAACG,GAAG,YAAY,UAACC,GAAG,EAAEC,GAAG,EAAK;EAClC,IAAID,GAAG,CAACM,OAAO,CAACC,IAAI,kBAAkB,EAAE;IACtCN,GAAG,CAACC,MAAM,CAAC,GAAG,CAAC,CAACE,IAAI,CAAC,CAAC,CAACC,GAAG,CAAC,CAAC;EAC9B,CAAC,MAAM;IACLJ,GAAG,CAACC,MAAM,CAAC,GAAG,CAAC,CAACE,IAAI,CAAC,CAAC,CAACC,GAAG,CAAC,CAAC;EAC9B;AACF,CAAC,CAAC;AAEFG,MAAM,CAACC,OAAO,GAAGb,MAAM"}
|
package/dist/files.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["bodyParser","require","express","fs","mkdirp","multer","path","reflect","uuid","router","Router","use","raw","patch","post","put","uploadPath","process","env","PACKAGE","req","res","next","err","id","v4","storeAt","join","getFrom","writeFile","body","err2","status","json","loc","end","get","params","Error","readFile","data","send","storage","memoryStorage","upload","forEach","methodName","array","files","static","__dirname","module","exports"],"sources":["files.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nconst bodyParser = require(`body-parser`);\nconst express = require(`express`);\nconst fs = require(`fs`);\nconst mkdirp = require(`mkdirp`);\nconst multer = require(`multer`);\nconst path = require(`path`);\nconst reflect = require(`./reflect`);\nconst uuid = require(`uuid`);\n\n/* eslint new-cap: [0] */\nconst router = express.Router();\n\n// Configure Image processing\n// -------------------------\n\nrouter.use(bodyParser.raw(`image/*`));\n\nrouter.patch(`/reflect`, reflect);\nrouter.post(`/reflect`, reflect);\nrouter.put(`/reflect`, reflect);\n\nconst uploadPath = process.env.PACKAGE ? `.tmp/${process.env.PACKAGE}/files` : `.tmp/files`;\n\nrouter.post(`/upload`, (req, res, next) => {\n mkdirp(uploadPath, (err) => {\n if (err) {\n return next(err);\n }\n\n const id = uuid.v4();\n const storeAt = path.join(uploadPath, id);\n const getFrom = `/files/download/${id}`;\n\n /* eslint max-nested-callbacks: [0] */\n return fs.writeFile(storeAt, req.body, (err2) => {\n if (err2) {\n return next(err2);\n }\n\n return res\n .status(201)\n .json({\n loc: getFrom,\n })\n .end();\n });\n });\n});\n\nrouter.get(`/download/:id`, (req, res, next) => {\n if (!req.params.id) {\n return next(new Error(`id param is required`));\n }\n\n return fs.readFile(path.join(uploadPath, req.params.id), (err, data) => {\n if (err) {\n return next(err);\n }\n\n return res.status(200).send(data).end();\n });\n});\n\nconst storage = multer.memoryStorage();\nconst upload = multer({storage});\n\n[`put`, `patch`, `post`].forEach((methodName) => {\n router[methodName](`/metadata`, upload.array(`files`), (req, res) => {\n res.status(200).json(req.files).end();\n });\n});\n\nrouter.use(`/get`, express.static(path.join(__dirname, `static`)));\n\nmodule.exports = router;\n"],"mappings":";;AAAA;AACA;AACA;;AAEA,IAAMA,UAAU,GAAGC,OAAO,
|
|
1
|
+
{"version":3,"names":["bodyParser","require","express","fs","mkdirp","multer","path","reflect","uuid","router","Router","use","raw","patch","post","put","uploadPath","process","env","PACKAGE","concat","req","res","next","err","id","v4","storeAt","join","getFrom","writeFile","body","err2","status","json","loc","end","get","params","Error","readFile","data","send","storage","memoryStorage","upload","forEach","methodName","array","files","static","__dirname","module","exports"],"sources":["files.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nconst bodyParser = require(`body-parser`);\nconst express = require(`express`);\nconst fs = require(`fs`);\nconst mkdirp = require(`mkdirp`);\nconst multer = require(`multer`);\nconst path = require(`path`);\nconst reflect = require(`./reflect`);\nconst uuid = require(`uuid`);\n\n/* eslint new-cap: [0] */\nconst router = express.Router();\n\n// Configure Image processing\n// -------------------------\n\nrouter.use(bodyParser.raw(`image/*`));\n\nrouter.patch(`/reflect`, reflect);\nrouter.post(`/reflect`, reflect);\nrouter.put(`/reflect`, reflect);\n\nconst uploadPath = process.env.PACKAGE ? `.tmp/${process.env.PACKAGE}/files` : `.tmp/files`;\n\nrouter.post(`/upload`, (req, res, next) => {\n mkdirp(uploadPath, (err) => {\n if (err) {\n return next(err);\n }\n\n const id = uuid.v4();\n const storeAt = path.join(uploadPath, id);\n const getFrom = `/files/download/${id}`;\n\n /* eslint max-nested-callbacks: [0] */\n return fs.writeFile(storeAt, req.body, (err2) => {\n if (err2) {\n return next(err2);\n }\n\n return res\n .status(201)\n .json({\n loc: getFrom,\n })\n .end();\n });\n });\n});\n\nrouter.get(`/download/:id`, (req, res, next) => {\n if (!req.params.id) {\n return next(new Error(`id param is required`));\n }\n\n return fs.readFile(path.join(uploadPath, req.params.id), (err, data) => {\n if (err) {\n return next(err);\n }\n\n return res.status(200).send(data).end();\n });\n});\n\nconst storage = multer.memoryStorage();\nconst upload = multer({storage});\n\n[`put`, `patch`, `post`].forEach((methodName) => {\n router[methodName](`/metadata`, upload.array(`files`), (req, res) => {\n res.status(200).json(req.files).end();\n });\n});\n\nrouter.use(`/get`, express.static(path.join(__dirname, `static`)));\n\nmodule.exports = router;\n"],"mappings":";;AAAA;AACA;AACA;;AAEA,IAAMA,UAAU,GAAGC,OAAO,cAAc,CAAC;AACzC,IAAMC,OAAO,GAAGD,OAAO,UAAU,CAAC;AAClC,IAAME,EAAE,GAAGF,OAAO,KAAK,CAAC;AACxB,IAAMG,MAAM,GAAGH,OAAO,SAAS,CAAC;AAChC,IAAMI,MAAM,GAAGJ,OAAO,SAAS,CAAC;AAChC,IAAMK,IAAI,GAAGL,OAAO,OAAO,CAAC;AAC5B,IAAMM,OAAO,GAAGN,OAAO,YAAY,CAAC;AACpC,IAAMO,IAAI,GAAGP,OAAO,OAAO,CAAC;;AAE5B;AACA,IAAMQ,MAAM,GAAGP,OAAO,CAACQ,MAAM,CAAC,CAAC;;AAE/B;AACA;;AAEAD,MAAM,CAACE,GAAG,CAACX,UAAU,CAACY,GAAG,UAAU,CAAC,CAAC;AAErCH,MAAM,CAACI,KAAK,aAAaN,OAAO,CAAC;AACjCE,MAAM,CAACK,IAAI,aAAaP,OAAO,CAAC;AAChCE,MAAM,CAACM,GAAG,aAAaR,OAAO,CAAC;AAE/B,IAAMS,UAAU,GAAGC,OAAO,CAACC,GAAG,CAACC,OAAO,WAAAC,MAAA,CAAWH,OAAO,CAACC,GAAG,CAACC,OAAO,0BAAuB;AAE3FV,MAAM,CAACK,IAAI,YAAY,UAACO,GAAG,EAAEC,GAAG,EAAEC,IAAI,EAAK;EACzCnB,MAAM,CAACY,UAAU,EAAE,UAACQ,GAAG,EAAK;IAC1B,IAAIA,GAAG,EAAE;MACP,OAAOD,IAAI,CAACC,GAAG,CAAC;IAClB;IAEA,IAAMC,EAAE,GAAGjB,IAAI,CAACkB,EAAE,CAAC,CAAC;IACpB,IAAMC,OAAO,GAAG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AAM,CAACsC,UAAU,CAAC,cAAcF,MAAM,CAACG,KAAK,QAAQ,CAAC,EAAE,UAAC3B,GAAG,EAAEC,GAAG,EAAK;IACnEA,GAAG,CAACW,MAAM,CAAC,GAAG,CAAC,CAACC,IAAI,CAACb,GAAG,CAAC4B,KAAK,CAAC,CAACb,GAAG,CAAC,CAAC;EACvC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF3B,MAAM,CAACE,GAAG,SAAST,OAAO,CAACgD,MAAM,CAAC5C,IAAI,CAACsB,IAAI,CAACuB,SAAS,UAAU,CAAC,CAAC,CAAC;AAElEC,MAAM,CAACC,OAAO,GAAG5C,MAAM"}
|
package/dist/form.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["bodyParser","require","express","reflect","router","Router","use","urlencoded","extended","patch","put","post","module","exports"],"sources":["form.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nconst bodyParser = require(`body-parser`);\nconst express = require(`express`);\nconst reflect = require(`./reflect`);\n\n/* eslint new-cap: [0] */\nconst router = express.Router();\n\n// Configure Image processing\n// -------------------------\n\nrouter.use(bodyParser.urlencoded({extended: true}));\n\nrouter.patch(`/reflect`, reflect);\nrouter.put(`/reflect`, reflect);\nrouter.post(`/reflect`, reflect);\n\nmodule.exports = router;\n"],"mappings":";;AAAA;AACA;AACA;;AAEA,IAAMA,UAAU,GAAGC,OAAO,
|
|
1
|
+
{"version":3,"names":["bodyParser","require","express","reflect","router","Router","use","urlencoded","extended","patch","put","post","module","exports"],"sources":["form.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nconst bodyParser = require(`body-parser`);\nconst express = require(`express`);\nconst reflect = require(`./reflect`);\n\n/* eslint new-cap: [0] */\nconst router = express.Router();\n\n// Configure Image processing\n// -------------------------\n\nrouter.use(bodyParser.urlencoded({extended: true}));\n\nrouter.patch(`/reflect`, reflect);\nrouter.put(`/reflect`, reflect);\nrouter.post(`/reflect`, reflect);\n\nmodule.exports = router;\n"],"mappings":";;AAAA;AACA;AACA;;AAEA,IAAMA,UAAU,GAAGC,OAAO,cAAc,CAAC;AACzC,IAAMC,OAAO,GAAGD,OAAO,UAAU,CAAC;AAClC,IAAME,OAAO,GAAGF,OAAO,YAAY,CAAC;;AAEpC;AACA,IAAMG,MAAM,GAAGF,OAAO,CAACG,MAAM,CAAC,CAAC;;AAE/B;AACA;;AAEAD,MAAM,CAACE,GAAG,CAACN,UAAU,CAACO,UAAU,CAAC;EAACC,QAAQ,EAAE;AAAI,CAAC,CAAC,CAAC;AAEnDJ,MAAM,CAACK,KAAK,aAAaN,OAAO,CAAC;AACjCC,MAAM,CAACM,GAAG,aAAaP,OAAO,CAAC;AAC/BC,MAAM,CAACO,IAAI,aAAaR,OAAO,CAAC;AAEhCS,MAAM,CAACC,OAAO,GAAGT,MAAM"}
|
package/dist/index.js
CHANGED
|
@@ -9,8 +9,8 @@ var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/defi
|
|
|
9
9
|
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
10
10
|
var _parseInt2 = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/parse-int"));
|
|
11
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
|
|
12
|
-
function ownKeys(
|
|
13
|
-
function _objectSpread(
|
|
12
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
14
|
/*!
|
|
15
15
|
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
16
16
|
*/
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["btoa","require","bodyParser","browserify","compression","cors","express","fs","glob","http","morgan","path","querystring","request","url","base64","app","process","env","DEBUG","use","immediate","credentials","origin","o","callback","raw","type","req","res","next","set","appPattern","sync","forEach","appjs","packageName","replace","statSync","debug","transform","get","send","router","headers","authorization","status","end","json","query","fixturePattern","fixturePath","code","state","JSON","parse","decode","exchange","method","uri","IDBROKER_BASE_URL","form","grant_type","redirect_uri","WEBEX_REDIRECT_URI","self_contained_token","auth","user","WEBEX_CLIENT_ID","pass","WEBEX_CLIENT_SECRET","sendImmediately","err","response","console","warn","statusCode","Error","body","redirect","qs","stringify","pathname","info","static","post","refresh_token","resolve","__dirname","port","SERVER_PORT","createServer","listen","log","fixtureport","FIXTURE_PORT","corsport","CORS_PORT"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* eslint max-nested-callbacks: [2, 3] */\n/* eslint no-console: [0] */\n\nconst btoa = require(`btoa`);\nconst bodyParser = require(`body-parser`);\nconst browserify = require(`browserify-middleware`);\nconst compression = require(`compression`);\nconst cors = require(`cors`);\nconst express = require(`express`);\nconst fs = require(`fs`);\nconst glob = require(`glob`);\nconst http = require(`http`);\nconst morgan = require(`morgan`);\nconst path = require(`path`);\nconst querystring = require(`querystring`);\nconst request = require(`request`);\nconst url = require(`url`);\nconst base64 = require(`urlsafe-base64`);\n\nconst app = express();\n\n// Configure Logging\n// -----------------\n\nif (process.env.DEBUG) {\n app.use(\n morgan(`short`, {\n immediate: true,\n })\n );\n}\n\n// Configure CORS\n// --------------\n\napp.use(\n cors({\n credentials: true,\n origin(o, callback) {\n callback(null, true);\n },\n })\n);\n\n// Configure body processing\n// -------------------------\n\napp.use(bodyParser.raw({type: `image/*`}));\n\n// Enable gzip/deflate\n// -------------------\n\napp.use(compression());\n\n// Close all connections\n// ---------------------\n\n// This *should* help tests run faster in IE, which has a very low number of\n// allowed connections to the same origin.\napp.use((req, res, next) => {\n res.set(`connection`, `close`);\n next();\n});\n\n// Configure Browserify\n// --------------------\n\nconst appPattern = `packages/{*,*/*}/test/automation/fixtures/app.js`;\n\nglob.sync(appPattern).forEach((appjs) => {\n const packageName = appjs\n .replace(`packages/`, ``)\n .replace(`/test/automation/fixtures/app.js`, ``);\n\n // eslint-disable-next-line no-sync\n fs.statSync(appjs);\n app.use(\n `/${packageName}/app.js`,\n browserify(appjs, {\n debug: true,\n transform: [`babelify`, `envify`],\n })\n );\n});\n\n// Enable active routes\n// --------------------\n\napp.get('/', (req, res) => {\n res.send(`<!DOCTYPE html>\n<html>\n <head>\n <title>Redirect Dispatcher</title>\n <script>\n try {\n var state = /state=(.+?)(&.*)?$/.exec(window.location)[1]\n console.info('state', state);\n var name = JSON.parse(atob(state)).name;\n console.info('name', name);\n window.location.pathname = name;\n }\n catch(err) {\n console.warn(err);\n }\n </script>\n </head>\n <body>\n\n </body>\n</html>`);\n});\n\napp.use(`/cookies`, require(`./cookies`));\napp.use(`/json`, require(`./json`));\napp.use(`/form`, require(`./form`));\napp.use(`/files`, require(`./files`));\napp.use(`/jwt`, require(`@webex/test-helper-appid`).router);\n\napp.get(`/requires-basic-auth`, (req, res) => {\n if (req.headers.authorization === `Basic ${btoa(`basicuser:basicpass`)}`) {\n res.status(200).send().end();\n } else {\n res.status(403).send().end();\n }\n});\n\napp.get(`/requires-bearer-auth`, (req, res) => {\n if (req.headers.authorization === `Bearer bearertoken`) {\n res.status(200).send().end();\n } else {\n res.status(403).send().end();\n }\n});\n\napp.get(`/return-qs-as-object`, (req, res) => {\n res.status(200).json(req.query).end();\n});\n\napp.get(`/embargoed`, (req, res) => {\n res.status(451).end();\n});\n\n// Enable static routes\n// --------------------\n\nconst fixturePattern = `packages/{*,*/*}/test/automation/fixtures`;\n\nglob.sync(fixturePattern).forEach((fixturePath) => {\n const packageName = fixturePath.replace(`packages/`, ``).replace(`/test/automation/fixtures`, ``);\n\n app.get(`/${packageName}`, (req, res, next) => {\n if (!req.query.code) {\n next();\n\n return;\n }\n\n const state = JSON.parse(base64.decode(req.query.state));\n\n if (state.exchange === false) {\n next();\n\n return;\n }\n\n request(\n {\n /* eslint-disable camelcase */\n method: `POST`,\n uri: `${\n process.env.IDBROKER_BASE_URL || `https://idbroker.webex.com`\n }/idb/oauth2/v1/access_token`,\n form: {\n grant_type: `authorization_code`,\n redirect_uri: process.env.WEBEX_REDIRECT_URI,\n code: req.query.code,\n self_contained_token: true,\n },\n auth: {\n user: process.env.WEBEX_CLIENT_ID,\n pass: process.env.WEBEX_CLIENT_SECRET,\n sendImmediately: true,\n },\n /* eslint-enable camelcase */\n },\n (err, response) => {\n if (err) {\n console.warn(`Request to CI failed with non-HTTP error`);\n next(err);\n\n return;\n }\n if (response.statusCode >= 400) {\n console.warn(`Got unexpected response from CI`);\n next(new Error(response.body));\n\n return;\n }\n let redirect = url.parse(req.url, true);\n const qs = querystring.stringify({state: req.query.state, ...JSON.parse(response.body)});\n\n redirect = `${redirect.pathname}#${qs}`;\n\n console.info(`redirecting to ${redirect}`);\n res.redirect(redirect);\n }\n );\n });\n app.use(`/${packageName}`, express.static(fixturePath));\n});\n\napp.post(`/refresh`, bodyParser.json(), (req, res, next) => {\n if (!req.body.refresh_token) {\n next(new Error(`\\`refresh_token\\` is required`));\n\n return;\n }\n console.info(`Refreshing access token`);\n request(\n {\n /* eslint-disable camelcase */\n method: `POST`,\n uri: `${\n process.env.IDBROKER_BASE_URL || `https://idbroker.webex.com`\n }/idb/oauth2/v1/access_token`,\n form: {\n grant_type: `refresh_token`,\n redirect_uri: process.env.WEBEX_REDIRECT_URI,\n refresh_token: req.body.refresh_token,\n },\n auth: {\n user: process.env.WEBEX_CLIENT_ID,\n pass: process.env.WEBEX_CLIENT_SECRET,\n sendImmediately: true,\n },\n /* eslint-enable camelcase */\n },\n (err, response) => {\n if (err) {\n console.warn(`Request to CI failed with non-HTTP error`);\n next(err);\n\n return;\n }\n if (response.statusCode >= 400) {\n console.warn(`Got unexpected response from CI`);\n next(new Error(response.body));\n\n return;\n }\n\n console.info(`Returning new access token`);\n res.status(200).json(JSON.parse(response.body)).end();\n }\n );\n});\n\napp.use(express.static(path.resolve(__dirname, '..', `static`)));\n\n// Start the server\n// ----------------\n\nconst port = parseInt(process.env.SERVER_PORT, 10) || 8000;\n\nhttp.createServer(app).listen(port, () => {\n console.log(`Express server listening on port ${port}`);\n});\n\nconst fixtureport = parseInt(process.env.FIXTURE_PORT, 10) || 3000;\n\nhttp.createServer(app).listen(fixtureport, () => {\n console.log(`Express server listening on port ${fixtureport}`);\n});\n\nconst corsport = parseInt(process.env.CORS_PORT, 10) || 3002;\n\nhttp.createServer(app).listen(corsport, () => {\n console.log(`Express server listening on port ${corsport}`);\n});\n"],"mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;;AAEA;AACA;;AAEA,IAAMA,IAAI,GAAGC,OAAO,QAAQ;AAC5B,IAAMC,UAAU,GAAGD,OAAO,eAAe;AACzC,IAAME,UAAU,GAAGF,OAAO,yBAAyB;AACnD,IAAMG,WAAW,GAAGH,OAAO,eAAe;AAC1C,IAAMI,IAAI,GAAGJ,OAAO,QAAQ;AAC5B,IAAMK,OAAO,GAAGL,OAAO,WAAW;AAClC,IAAMM,EAAE,GAAGN,OAAO,MAAM;AACxB,IAAMO,IAAI,GAAGP,OAAO,QAAQ;AAC5B,IAAMQ,IAAI,GAAGR,OAAO,QAAQ;AAC5B,IAAMS,MAAM,GAAGT,OAAO,UAAU;AAChC,IAAMU,IAAI,GAAGV,OAAO,QAAQ;AAC5B,IAAMW,WAAW,G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AAC4E,MAAM,CAACH,IAAI,EAAE,YAAM;EACxCf,OAAO,CAACmB,GAAG,4CAAqCJ,IAAI,EAAG;AACzD,CAAC,CAAC;AAEF,IAAMK,WAAW,GAAG,wBAAS7E,OAAO,CAACC,GAAG,CAAC6E,YAAY,EAAE,EAAE,CAAC,IAAI,IAAI;AAElEtF,IAAI,CAACkF,YAAY,CAAC3E,GAAG,CAAC,CAAC4E,MAAM,CAACE,WAAW,EAAE,YAAM;EAC/CpB,OAAO,CAACmB,GAAG,4CAAqCC,WAAW,EAAG;AAChE,CAAC,CAAC;AAEF,IAAME,QAAQ,GAAG,wBAAS/E,OAAO,CAACC,GAAG,CAAC+E,SAAS,EAAE,EAAE,CAAC,IAAI,IAAI;AAE5DxF,IAAI,CAACkF,YAAY,CAAC3E,GAAG,CAAC,CAAC4E,MAAM,CAACI,QAAQ,EAAE,YAAM;EAC5CtB,OAAO,CAACmB,GAAG,4CAAqCG,QAAQ,EAAG;AAC7D,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"names":["btoa","require","bodyParser","browserify","compression","cors","express","fs","glob","http","morgan","path","querystring","request","url","base64","app","process","env","DEBUG","use","immediate","credentials","origin","o","callback","raw","type","req","res","next","set","appPattern","sync","forEach","appjs","packageName","replace","statSync","concat","debug","transform","get","send","router","headers","authorization","status","end","json","query","fixturePattern","fixturePath","code","state","JSON","parse","decode","exchange","method","uri","IDBROKER_BASE_URL","form","grant_type","redirect_uri","WEBEX_REDIRECT_URI","self_contained_token","auth","user","WEBEX_CLIENT_ID","pass","WEBEX_CLIENT_SECRET","sendImmediately","err","response","console","warn","statusCode","Error","body","redirect","qs","stringify","_objectSpread","pathname","info","static","post","refresh_token","resolve","__dirname","port","_parseInt2","default","SERVER_PORT","createServer","listen","log","fixtureport","FIXTURE_PORT","corsport","CORS_PORT"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* eslint max-nested-callbacks: [2, 3] */\n/* eslint no-console: [0] */\n\nconst btoa = require(`btoa`);\nconst bodyParser = require(`body-parser`);\nconst browserify = require(`browserify-middleware`);\nconst compression = require(`compression`);\nconst cors = require(`cors`);\nconst express = require(`express`);\nconst fs = require(`fs`);\nconst glob = require(`glob`);\nconst http = require(`http`);\nconst morgan = require(`morgan`);\nconst path = require(`path`);\nconst querystring = require(`querystring`);\nconst request = require(`request`);\nconst url = require(`url`);\nconst base64 = require(`urlsafe-base64`);\n\nconst app = express();\n\n// Configure Logging\n// -----------------\n\nif (process.env.DEBUG) {\n app.use(\n morgan(`short`, {\n immediate: true,\n })\n );\n}\n\n// Configure CORS\n// --------------\n\napp.use(\n cors({\n credentials: true,\n origin(o, callback) {\n callback(null, true);\n },\n })\n);\n\n// Configure body processing\n// -------------------------\n\napp.use(bodyParser.raw({type: `image/*`}));\n\n// Enable gzip/deflate\n// -------------------\n\napp.use(compression());\n\n// Close all connections\n// ---------------------\n\n// This *should* help tests run faster in IE, which has a very low number of\n// allowed connections to the same origin.\napp.use((req, res, next) => {\n res.set(`connection`, `close`);\n next();\n});\n\n// Configure Browserify\n// --------------------\n\nconst appPattern = `packages/{*,*/*}/test/automation/fixtures/app.js`;\n\nglob.sync(appPattern).forEach((appjs) => {\n const packageName = appjs\n .replace(`packages/`, ``)\n .replace(`/test/automation/fixtures/app.js`, ``);\n\n // eslint-disable-next-line no-sync\n fs.statSync(appjs);\n app.use(\n `/${packageName}/app.js`,\n browserify(appjs, {\n debug: true,\n transform: [`babelify`, `envify`],\n })\n );\n});\n\n// Enable active routes\n// --------------------\n\napp.get('/', (req, res) => {\n res.send(`<!DOCTYPE html>\n<html>\n <head>\n <title>Redirect Dispatcher</title>\n <script>\n try {\n var state = /state=(.+?)(&.*)?$/.exec(window.location)[1]\n console.info('state', state);\n var name = JSON.parse(atob(state)).name;\n console.info('name', name);\n window.location.pathname = name;\n }\n catch(err) {\n console.warn(err);\n }\n </script>\n </head>\n <body>\n\n </body>\n</html>`);\n});\n\napp.use(`/cookies`, require(`./cookies`));\napp.use(`/json`, require(`./json`));\napp.use(`/form`, require(`./form`));\napp.use(`/files`, require(`./files`));\napp.use(`/jwt`, require(`@webex/test-helper-appid`).router);\n\napp.get(`/requires-basic-auth`, (req, res) => {\n if (req.headers.authorization === `Basic ${btoa(`basicuser:basicpass`)}`) {\n res.status(200).send().end();\n } else {\n res.status(403).send().end();\n }\n});\n\napp.get(`/requires-bearer-auth`, (req, res) => {\n if (req.headers.authorization === `Bearer bearertoken`) {\n res.status(200).send().end();\n } else {\n res.status(403).send().end();\n }\n});\n\napp.get(`/return-qs-as-object`, (req, res) => {\n res.status(200).json(req.query).end();\n});\n\napp.get(`/embargoed`, (req, res) => {\n res.status(451).end();\n});\n\n// Enable static routes\n// --------------------\n\nconst fixturePattern = `packages/{*,*/*}/test/automation/fixtures`;\n\nglob.sync(fixturePattern).forEach((fixturePath) => {\n const packageName = fixturePath.replace(`packages/`, ``).replace(`/test/automation/fixtures`, ``);\n\n app.get(`/${packageName}`, (req, res, next) => {\n if (!req.query.code) {\n next();\n\n return;\n }\n\n const state = JSON.parse(base64.decode(req.query.state));\n\n if (state.exchange === false) {\n next();\n\n return;\n }\n\n request(\n {\n /* eslint-disable camelcase */\n method: `POST`,\n uri: `${\n process.env.IDBROKER_BASE_URL || `https://idbroker.webex.com`\n }/idb/oauth2/v1/access_token`,\n form: {\n grant_type: `authorization_code`,\n redirect_uri: process.env.WEBEX_REDIRECT_URI,\n code: req.query.code,\n self_contained_token: true,\n },\n auth: {\n user: process.env.WEBEX_CLIENT_ID,\n pass: process.env.WEBEX_CLIENT_SECRET,\n sendImmediately: true,\n },\n /* eslint-enable camelcase */\n },\n (err, response) => {\n if (err) {\n console.warn(`Request to CI failed with non-HTTP error`);\n next(err);\n\n return;\n }\n if (response.statusCode >= 400) {\n console.warn(`Got unexpected response from CI`);\n next(new Error(response.body));\n\n return;\n }\n let redirect = url.parse(req.url, true);\n const qs = querystring.stringify({state: req.query.state, ...JSON.parse(response.body)});\n\n redirect = `${redirect.pathname}#${qs}`;\n\n console.info(`redirecting to ${redirect}`);\n res.redirect(redirect);\n }\n );\n });\n app.use(`/${packageName}`, express.static(fixturePath));\n});\n\napp.post(`/refresh`, bodyParser.json(), (req, res, next) => {\n if (!req.body.refresh_token) {\n next(new Error(`\\`refresh_token\\` is required`));\n\n return;\n }\n console.info(`Refreshing access token`);\n request(\n {\n /* eslint-disable camelcase */\n method: `POST`,\n uri: `${\n process.env.IDBROKER_BASE_URL || `https://idbroker.webex.com`\n }/idb/oauth2/v1/access_token`,\n form: {\n grant_type: `refresh_token`,\n redirect_uri: process.env.WEBEX_REDIRECT_URI,\n refresh_token: req.body.refresh_token,\n },\n auth: {\n user: process.env.WEBEX_CLIENT_ID,\n pass: process.env.WEBEX_CLIENT_SECRET,\n sendImmediately: true,\n },\n /* eslint-enable camelcase */\n },\n (err, response) => {\n if (err) {\n console.warn(`Request to CI failed with non-HTTP error`);\n next(err);\n\n return;\n }\n if (response.statusCode >= 400) {\n console.warn(`Got unexpected response from CI`);\n next(new Error(response.body));\n\n return;\n }\n\n console.info(`Returning new access token`);\n res.status(200).json(JSON.parse(response.body)).end();\n }\n );\n});\n\napp.use(express.static(path.resolve(__dirname, '..', `static`)));\n\n// Start the server\n// ----------------\n\nconst port = parseInt(process.env.SERVER_PORT, 10) || 8000;\n\nhttp.createServer(app).listen(port, () => {\n console.log(`Express server listening on port ${port}`);\n});\n\nconst fixtureport = parseInt(process.env.FIXTURE_PORT, 10) || 3000;\n\nhttp.createServer(app).listen(fixtureport, () => {\n console.log(`Express server listening on port ${fixtureport}`);\n});\n\nconst corsport = parseInt(process.env.CORS_PORT, 10) || 3002;\n\nhttp.createServer(app).listen(corsport, () => {\n console.log(`Express server listening on port ${corsport}`);\n});\n"],"mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;;AAEA;AACA;;AAEA,IAAMA,IAAI,GAAGC,OAAO,OAAO,CAAC;AAC5B,IAAMC,UAAU,GAAGD,OAAO,c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,GAAG,qCAAA1D,MAAA,CAAqC2D,WAAW,CAAE,CAAC;AAChE,CAAC,CAAC;AAEF,IAAME,QAAQ,GAAG,IAAAR,UAAA,CAAAC,OAAA,EAAS5E,OAAO,CAACC,GAAG,CAACmF,SAAS,EAAE,EAAE,CAAC,IAAI,IAAI;AAE5D5F,IAAI,CAACsF,YAAY,CAAC/E,GAAG,CAAC,CAACgF,MAAM,CAACI,QAAQ,EAAE,YAAM;EAC5CzB,OAAO,CAACsB,GAAG,qCAAA1D,MAAA,CAAqC6D,QAAQ,CAAE,CAAC;AAC7D,CAAC,CAAC"}
|
package/dist/json.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["bodyParser","require","express","reflect","router","Router","use","json","get","req","res","send","isObject","patch","post","put","module","exports"],"sources":["json.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nconst bodyParser = require(`body-parser`);\nconst express = require(`express`);\nconst reflect = require(`./reflect`);\n\n/* eslint new-cap: [0] */\nconst router = express.Router();\n\n// Configure JSON processing\n// -------------------------\n\nrouter.use(bodyParser.json());\n\nrouter.get(`/get`, (req, res) => {\n res.send({\n isObject: true,\n });\n});\n\nrouter.patch(`/set`, reflect);\nrouter.post(`/set`, reflect);\nrouter.put(`/set`, reflect);\n\nmodule.exports = router;\n"],"mappings":";;AAAA;AACA;AACA;;AAEA,IAAMA,UAAU,GAAGC,OAAO,
|
|
1
|
+
{"version":3,"names":["bodyParser","require","express","reflect","router","Router","use","json","get","req","res","send","isObject","patch","post","put","module","exports"],"sources":["json.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nconst bodyParser = require(`body-parser`);\nconst express = require(`express`);\nconst reflect = require(`./reflect`);\n\n/* eslint new-cap: [0] */\nconst router = express.Router();\n\n// Configure JSON processing\n// -------------------------\n\nrouter.use(bodyParser.json());\n\nrouter.get(`/get`, (req, res) => {\n res.send({\n isObject: true,\n });\n});\n\nrouter.patch(`/set`, reflect);\nrouter.post(`/set`, reflect);\nrouter.put(`/set`, reflect);\n\nmodule.exports = router;\n"],"mappings":";;AAAA;AACA;AACA;;AAEA,IAAMA,UAAU,GAAGC,OAAO,cAAc,CAAC;AACzC,IAAMC,OAAO,GAAGD,OAAO,UAAU,CAAC;AAClC,IAAME,OAAO,GAAGF,OAAO,YAAY,CAAC;;AAEpC;AACA,IAAMG,MAAM,GAAGF,OAAO,CAACG,MAAM,CAAC,CAAC;;AAE/B;AACA;;AAEAD,MAAM,CAACE,GAAG,CAACN,UAAU,CAACO,IAAI,CAAC,CAAC,CAAC;AAE7BH,MAAM,CAACI,GAAG,SAAS,UAACC,GAAG,EAAEC,GAAG,EAAK;EAC/BA,GAAG,CAACC,IAAI,CAAC;IACPC,QAAQ,EAAE;EACZ,CAAC,CAAC;AACJ,CAAC,CAAC;AAEFR,MAAM,CAACS,KAAK,SAASV,OAAO,CAAC;AAC7BC,MAAM,CAACU,IAAI,SAASX,OAAO,CAAC;AAC5BC,MAAM,CAACW,GAAG,SAASZ,OAAO,CAAC;AAE3Ba,MAAM,CAACC,OAAO,GAAGb,MAAM"}
|
package/dist/reflect.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["reflect","req","res","set","headers","status","send","body","end","module","exports"],"sources":["reflect.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/**\n * @param {http.IncomingMessage} req\n * @param {http.ServerResponse} res\n * @returns {undefined}\n */\nfunction reflect(req, res) {\n res.set(`content-type`, req.headers[`content-type`]);\n res.status(200).send(req.body).end();\n}\n\nmodule.exports = reflect;\n"],"mappings":";;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASA,
|
|
1
|
+
{"version":3,"names":["reflect","req","res","set","headers","status","send","body","end","module","exports"],"sources":["reflect.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/**\n * @param {http.IncomingMessage} req\n * @param {http.ServerResponse} res\n * @returns {undefined}\n */\nfunction reflect(req, res) {\n res.set(`content-type`, req.headers[`content-type`]);\n res.status(200).send(req.body).end();\n}\n\nmodule.exports = reflect;\n"],"mappings":";;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASA,OAAOA,CAACC,GAAG,EAAEC,GAAG,EAAE;EACzBA,GAAG,CAACC,GAAG,iBAAiBF,GAAG,CAACG,OAAO,gBAAgB,CAAC;EACpDF,GAAG,CAACG,MAAM,CAAC,GAAG,CAAC,CAACC,IAAI,CAACL,GAAG,CAACM,IAAI,CAAC,CAACC,GAAG,CAAC,CAAC;AACtC;AAEAC,MAAM,CAACC,OAAO,GAAGV,OAAO"}
|
package/jest.config.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/test-helper-server",
|
|
3
|
-
"version": "3.0.0-bnr.5",
|
|
4
3
|
"description": "",
|
|
5
4
|
"license": "MIT",
|
|
6
5
|
"main": "dist/index.js",
|
|
@@ -13,7 +12,7 @@
|
|
|
13
12
|
"node": ">=16"
|
|
14
13
|
},
|
|
15
14
|
"dependencies": {
|
|
16
|
-
"@webex/test-helper-appid": "3.0.0
|
|
15
|
+
"@webex/test-helper-appid": "3.0.0",
|
|
17
16
|
"body-parser": "^1.19.0",
|
|
18
17
|
"browserify-middleware": "^8.1.1",
|
|
19
18
|
"btoa": "^1.2.1",
|
|
@@ -24,9 +23,31 @@
|
|
|
24
23
|
"glob": "^7.1.4",
|
|
25
24
|
"mkdirp": "^0.5.1",
|
|
26
25
|
"morgan": "^1.9.1",
|
|
27
|
-
"multer": "^1.4.
|
|
26
|
+
"multer": "^1.4.5-lts.1",
|
|
28
27
|
"request": "^2.88.0",
|
|
29
28
|
"urlsafe-base64": "^1.0.0",
|
|
30
29
|
"uuid": "^3.3.2"
|
|
31
|
-
}
|
|
32
|
-
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "yarn build:src",
|
|
33
|
+
"build:src": "webex-legacy-tools build -dest \"./dist\" -src \"./src\" -js -ts -maps",
|
|
34
|
+
"deploy:npm": "yarn npm publish",
|
|
35
|
+
"test": "yarn test:style && yarn test:unit && yarn test:integration && yarn test:browser",
|
|
36
|
+
"test:browser": "webex-legacy-tools test --integration --runner karma",
|
|
37
|
+
"test:style": "eslint ./src/**/*.*"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@babel/core": "^7.17.10",
|
|
41
|
+
"@webex/babel-config-legacy": "0.0.0",
|
|
42
|
+
"@webex/eslint-config-legacy": "0.0.0",
|
|
43
|
+
"@webex/jest-config-legacy": "0.0.0",
|
|
44
|
+
"@webex/legacy-tools": "0.0.0",
|
|
45
|
+
"@webex/test-helper-chai": "3.0.0",
|
|
46
|
+
"@webex/test-helper-mocha": "3.0.0",
|
|
47
|
+
"@webex/test-helper-mock-webex": "3.0.0",
|
|
48
|
+
"@webex/test-helper-test-users": "3.0.0",
|
|
49
|
+
"eslint": "^8.24.0",
|
|
50
|
+
"prettier": "^2.7.1"
|
|
51
|
+
},
|
|
52
|
+
"version": "3.0.0"
|
|
53
|
+
}
|
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>;
|