@launchdarkly/js-sdk-common 2.10.0 → 2.11.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/CHANGELOG.md +12 -0
- package/dist/{AttributeReference.d.ts → cjs/AttributeReference.d.ts} +2 -2
- package/dist/{AttributeReference.d.ts.map → cjs/AttributeReference.d.ts.map} +1 -1
- package/dist/{Context.d.ts → cjs/Context.d.ts} +13 -13
- package/dist/cjs/Context.d.ts.map +1 -0
- package/dist/cjs/ContextFilter.d.ts +11 -0
- package/dist/cjs/ContextFilter.d.ts.map +1 -0
- package/dist/{index.cjs → cjs/index.cjs} +286 -284
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/{internal → cjs/internal}/diagnostics/DiagnosticsManager.d.ts +7 -7
- package/dist/{internal → cjs/internal}/diagnostics/DiagnosticsManager.d.ts.map +1 -1
- package/dist/{internal → cjs/internal}/evaluation/EventFactoryBase.d.ts +2 -2
- package/dist/{internal → cjs/internal}/evaluation/EventFactoryBase.d.ts.map +1 -1
- package/dist/{internal → cjs/internal}/events/ClientMessages.d.ts +1 -1
- package/dist/cjs/internal/events/EventProcessor.d.ts +44 -0
- package/dist/cjs/internal/events/EventProcessor.d.ts.map +1 -0
- package/dist/{internal → cjs/internal}/events/EventSender.d.ts +6 -6
- package/dist/{internal → cjs/internal}/events/EventSender.d.ts.map +1 -1
- package/dist/{internal → cjs/internal}/stream/StreamingProcessor.d.ts +14 -14
- package/dist/cjs/internal/stream/StreamingProcessor.d.ts.map +1 -0
- package/dist/{logging → cjs/logging}/BasicLogger.d.ts +7 -7
- package/dist/cjs/logging/BasicLogger.d.ts.map +1 -0
- package/dist/{logging → cjs/logging}/SafeLogger.d.ts +3 -3
- package/dist/{logging → cjs/logging}/SafeLogger.d.ts.map +1 -1
- package/dist/{options → cjs/options}/ServiceEndpoints.d.ts.map +1 -1
- package/dist/cjs/package.json +1 -0
- package/dist/{validators.d.ts → cjs/validators.d.ts} +2 -2
- package/dist/{validators.d.ts.map → cjs/validators.d.ts.map} +1 -1
- package/dist/esm/AttributeReference.d.ts +35 -0
- package/dist/esm/AttributeReference.d.ts.map +1 -0
- package/dist/esm/Context.d.ts +95 -0
- package/dist/esm/Context.d.ts.map +1 -0
- package/dist/esm/ContextFilter.d.ts +11 -0
- package/dist/esm/ContextFilter.d.ts.map +1 -0
- package/dist/esm/api/context/LDContext.d.ts +8 -0
- package/dist/esm/api/context/LDContext.d.ts.map +1 -0
- package/dist/esm/api/context/LDContextCommon.d.ts +29 -0
- package/dist/esm/api/context/LDContextCommon.d.ts.map +1 -0
- package/dist/esm/api/context/LDContextMeta.d.ts +52 -0
- package/dist/esm/api/context/LDContextMeta.d.ts.map +1 -0
- package/dist/esm/api/context/LDMultiKindContext.d.ts +46 -0
- package/dist/esm/api/context/LDMultiKindContext.d.ts.map +1 -0
- package/dist/esm/api/context/LDSingleKindContext.d.ts +24 -0
- package/dist/esm/api/context/LDSingleKindContext.d.ts.map +1 -0
- package/dist/esm/api/context/LDUser.d.ts +66 -0
- package/dist/esm/api/context/LDUser.d.ts.map +1 -0
- package/dist/esm/api/context/index.d.ts +7 -0
- package/dist/esm/api/context/index.d.ts.map +1 -0
- package/dist/esm/api/data/LDEvaluationDetail.d.ts +43 -0
- package/dist/esm/api/data/LDEvaluationDetail.d.ts.map +1 -0
- package/dist/esm/api/data/LDEvaluationReason.d.ts +57 -0
- package/dist/esm/api/data/LDEvaluationReason.d.ts.map +1 -0
- package/dist/esm/api/data/LDFlagSet.d.ts +8 -0
- package/dist/esm/api/data/LDFlagSet.d.ts.map +1 -0
- package/dist/esm/api/data/LDFlagValue.d.ts +7 -0
- package/dist/esm/api/data/LDFlagValue.d.ts.map +1 -0
- package/dist/esm/api/data/index.d.ts +5 -0
- package/dist/esm/api/data/index.d.ts.map +1 -0
- package/dist/esm/api/index.d.ts +7 -0
- package/dist/esm/api/index.d.ts.map +1 -0
- package/dist/esm/api/logging/BasicLoggerOptions.d.ts +43 -0
- package/dist/esm/api/logging/BasicLoggerOptions.d.ts.map +1 -0
- package/dist/esm/api/logging/LDLogLevel.d.ts +10 -0
- package/dist/esm/api/logging/LDLogLevel.d.ts.map +1 -0
- package/dist/esm/api/logging/LDLogger.d.ts +47 -0
- package/dist/esm/api/logging/LDLogger.d.ts.map +1 -0
- package/dist/esm/api/logging/index.d.ts +4 -0
- package/dist/esm/api/logging/index.d.ts.map +1 -0
- package/dist/esm/api/options/LDClientContext.d.ts +46 -0
- package/dist/esm/api/options/LDClientContext.d.ts.map +1 -0
- package/dist/esm/api/options/index.d.ts +3 -0
- package/dist/esm/api/options/index.d.ts.map +1 -0
- package/dist/esm/api/platform/AutoEnv.d.ts +50 -0
- package/dist/esm/api/platform/AutoEnv.d.ts.map +1 -0
- package/dist/esm/api/platform/Crypto.d.ts +45 -0
- package/dist/esm/api/platform/Crypto.d.ts.map +1 -0
- package/dist/esm/api/platform/Encoding.d.ts +4 -0
- package/dist/esm/api/platform/Encoding.d.ts.map +1 -0
- package/dist/esm/api/platform/EventSource.d.ts +31 -0
- package/dist/esm/api/platform/EventSource.d.ts.map +1 -0
- package/dist/esm/api/platform/Filesystem.d.ts +40 -0
- package/dist/esm/api/platform/Filesystem.d.ts.map +1 -0
- package/dist/esm/api/platform/Info.d.ts +80 -0
- package/dist/esm/api/platform/Info.d.ts.map +1 -0
- package/dist/esm/api/platform/Platform.d.ts +36 -0
- package/dist/esm/api/platform/Platform.d.ts.map +1 -0
- package/dist/esm/api/platform/Requests.d.ts +107 -0
- package/dist/esm/api/platform/Requests.d.ts.map +1 -0
- package/dist/esm/api/platform/Storage.d.ts +28 -0
- package/dist/esm/api/platform/Storage.d.ts.map +1 -0
- package/dist/esm/api/platform/index.d.ts +10 -0
- package/dist/esm/api/platform/index.d.ts.map +1 -0
- package/dist/esm/api/subsystem/LDContextDeduplicator.d.ts +24 -0
- package/dist/esm/api/subsystem/LDContextDeduplicator.d.ts.map +1 -0
- package/dist/esm/api/subsystem/LDEventProcessor.d.ts +7 -0
- package/dist/esm/api/subsystem/LDEventProcessor.d.ts.map +1 -0
- package/dist/esm/api/subsystem/LDEventSender.d.ts +18 -0
- package/dist/esm/api/subsystem/LDEventSender.d.ts.map +1 -0
- package/dist/esm/api/subsystem/LDStreamProcessor.d.ts +13 -0
- package/dist/esm/api/subsystem/LDStreamProcessor.d.ts.map +1 -0
- package/dist/esm/api/subsystem/index.d.ts +6 -0
- package/dist/esm/api/subsystem/index.d.ts.map +1 -0
- package/dist/esm/datasource/DataSourceErrorKinds.d.ts +7 -0
- package/dist/esm/datasource/DataSourceErrorKinds.d.ts.map +1 -0
- package/dist/esm/datasource/errors.d.ts +17 -0
- package/dist/esm/datasource/errors.d.ts.map +1 -0
- package/dist/esm/datasource/index.d.ts +4 -0
- package/dist/esm/datasource/index.d.ts.map +1 -0
- package/dist/esm/errors.d.ts +25 -0
- package/dist/esm/errors.d.ts.map +1 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/{index.mjs → esm/index.mjs} +286 -284
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/internal/context/index.d.ts +24 -0
- package/dist/esm/internal/context/index.d.ts.map +1 -0
- package/dist/esm/internal/diagnostics/DiagnosticsManager.d.ts +35 -0
- package/dist/esm/internal/diagnostics/DiagnosticsManager.d.ts.map +1 -0
- package/dist/esm/internal/diagnostics/index.d.ts +3 -0
- package/dist/esm/internal/diagnostics/index.d.ts.map +1 -0
- package/dist/esm/internal/diagnostics/types.d.ts +65 -0
- package/dist/esm/internal/diagnostics/types.d.ts.map +1 -0
- package/dist/esm/internal/evaluation/ErrorKinds.d.ts +12 -0
- package/dist/esm/internal/evaluation/ErrorKinds.d.ts.map +1 -0
- package/dist/esm/internal/evaluation/EventFactoryBase.d.ts +27 -0
- package/dist/esm/internal/evaluation/EventFactoryBase.d.ts.map +1 -0
- package/dist/esm/internal/evaluation/index.d.ts +4 -0
- package/dist/esm/internal/evaluation/index.d.ts.map +1 -0
- package/dist/esm/internal/events/ClientMessages.d.ts +8 -0
- package/dist/esm/internal/events/ClientMessages.d.ts.map +1 -0
- package/dist/esm/internal/events/EventProcessor.d.ts +44 -0
- package/dist/esm/internal/events/EventProcessor.d.ts.map +1 -0
- package/dist/esm/internal/events/EventSender.d.ts +14 -0
- package/dist/esm/internal/events/EventSender.d.ts.map +1 -0
- package/dist/esm/internal/events/EventSummarizer.d.ts +2 -0
- package/dist/esm/internal/events/EventSummarizer.d.ts.map +1 -0
- package/dist/esm/internal/events/InputClickEvent.d.ts +11 -0
- package/dist/esm/internal/events/InputClickEvent.d.ts.map +1 -0
- package/dist/esm/internal/events/InputCustomEvent.d.ts +13 -0
- package/dist/esm/internal/events/InputCustomEvent.d.ts.map +1 -0
- package/dist/esm/internal/events/InputEvalEvent.d.ts +22 -0
- package/dist/esm/internal/events/InputEvalEvent.d.ts.map +1 -0
- package/dist/esm/internal/events/InputEvent.d.ts +9 -0
- package/dist/esm/internal/events/InputEvent.d.ts.map +1 -0
- package/dist/esm/internal/events/InputEventBase.d.ts +8 -0
- package/dist/esm/internal/events/InputEventBase.d.ts.map +1 -0
- package/dist/esm/internal/events/InputIdentifyEvent.d.ts +9 -0
- package/dist/esm/internal/events/InputIdentifyEvent.d.ts.map +1 -0
- package/dist/esm/internal/events/InputMigrationEvent.d.ts +10 -0
- package/dist/esm/internal/events/InputMigrationEvent.d.ts.map +1 -0
- package/dist/esm/internal/events/InputPageViewEvent.d.ts +10 -0
- package/dist/esm/internal/events/InputPageViewEvent.d.ts.map +1 -0
- package/dist/esm/internal/events/LDInternalOptions.d.ts +25 -0
- package/dist/esm/internal/events/LDInternalOptions.d.ts.map +1 -0
- package/dist/esm/internal/events/LDInvalidSDKKeyError.d.ts +4 -0
- package/dist/esm/internal/events/LDInvalidSDKKeyError.d.ts.map +1 -0
- package/dist/esm/internal/events/NullEventProcessor.d.ts +7 -0
- package/dist/esm/internal/events/NullEventProcessor.d.ts.map +1 -0
- package/dist/esm/internal/events/SummaryCounter.d.ts +2 -0
- package/dist/esm/internal/events/SummaryCounter.d.ts.map +1 -0
- package/dist/esm/internal/events/guards.d.ts +9 -0
- package/dist/esm/internal/events/guards.d.ts.map +1 -0
- package/dist/esm/internal/events/index.d.ts +12 -0
- package/dist/esm/internal/events/index.d.ts.map +1 -0
- package/dist/esm/internal/events/sampling.d.ts +6 -0
- package/dist/esm/internal/events/sampling.d.ts.map +1 -0
- package/dist/esm/internal/index.d.ts +6 -0
- package/dist/esm/internal/index.d.ts.map +1 -0
- package/dist/esm/internal/stream/StreamingProcessor.d.ts +39 -0
- package/dist/esm/internal/stream/StreamingProcessor.d.ts.map +1 -0
- package/dist/esm/internal/stream/index.d.ts +5 -0
- package/dist/esm/internal/stream/index.d.ts.map +1 -0
- package/dist/esm/internal/stream/types.d.ts +3 -0
- package/dist/esm/internal/stream/types.d.ts.map +1 -0
- package/dist/esm/logging/BasicLogger.d.ts +33 -0
- package/dist/esm/logging/BasicLogger.d.ts.map +1 -0
- package/dist/esm/logging/SafeLogger.d.ts +28 -0
- package/dist/esm/logging/SafeLogger.d.ts.map +1 -0
- package/dist/esm/logging/createSafeLogger.d.ts +6 -0
- package/dist/esm/logging/createSafeLogger.d.ts.map +1 -0
- package/dist/esm/logging/format.d.ts +2 -0
- package/dist/esm/logging/format.d.ts.map +1 -0
- package/dist/esm/logging/index.d.ts +5 -0
- package/dist/esm/logging/index.d.ts.map +1 -0
- package/dist/esm/options/ApplicationTags.d.ts +17 -0
- package/dist/esm/options/ApplicationTags.d.ts.map +1 -0
- package/dist/esm/options/ClientContext.d.ts +43 -0
- package/dist/esm/options/ClientContext.d.ts.map +1 -0
- package/dist/esm/options/OptionMessages.d.ts +14 -0
- package/dist/esm/options/OptionMessages.d.ts.map +1 -0
- package/dist/esm/options/ServiceEndpoints.d.ts +58 -0
- package/dist/esm/options/ServiceEndpoints.d.ts.map +1 -0
- package/dist/esm/options/index.d.ts +6 -0
- package/dist/esm/options/index.d.ts.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/utils/VoidFunction.d.ts +2 -0
- package/dist/esm/utils/VoidFunction.d.ts.map +1 -0
- package/dist/esm/utils/cancelableTimedPromise.d.ts +20 -0
- package/dist/esm/utils/cancelableTimedPromise.d.ts.map +1 -0
- package/dist/esm/utils/clone.d.ts +2 -0
- package/dist/esm/utils/clone.d.ts.map +1 -0
- package/dist/esm/utils/date.d.ts +2 -0
- package/dist/esm/utils/date.d.ts.map +1 -0
- package/dist/esm/utils/debounce.d.ts +23 -0
- package/dist/esm/utils/debounce.d.ts.map +1 -0
- package/dist/esm/utils/deepCompact.d.ts +11 -0
- package/dist/esm/utils/deepCompact.d.ts.map +1 -0
- package/dist/esm/utils/fast-deep-equal/index.d.ts +2 -0
- package/dist/esm/utils/fast-deep-equal/index.d.ts.map +1 -0
- package/dist/esm/utils/http.d.ts +23 -0
- package/dist/esm/utils/http.d.ts.map +1 -0
- package/dist/esm/utils/index.d.ts +13 -0
- package/dist/esm/utils/index.d.ts.map +1 -0
- package/dist/esm/utils/isEmptyObject.d.ts +3 -0
- package/dist/esm/utils/isEmptyObject.d.ts.map +1 -0
- package/dist/esm/utils/noop.d.ts +3 -0
- package/dist/esm/utils/noop.d.ts.map +1 -0
- package/dist/esm/utils/sleep.d.ts +3 -0
- package/dist/esm/utils/sleep.d.ts.map +1 -0
- package/dist/esm/utils/timedPromise.d.ts +9 -0
- package/dist/esm/utils/timedPromise.d.ts.map +1 -0
- package/dist/esm/validators.d.ts +98 -0
- package/dist/esm/validators.d.ts.map +1 -0
- package/package.json +15 -7
- package/dist/Context.d.ts.map +0 -1
- package/dist/ContextFilter.d.ts +0 -11
- package/dist/ContextFilter.d.ts.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/internal/events/EventProcessor.d.ts +0 -44
- package/dist/internal/events/EventProcessor.d.ts.map +0 -1
- package/dist/internal/stream/StreamingProcessor.d.ts.map +0 -1
- package/dist/logging/BasicLogger.d.ts.map +0 -1
- /package/dist/{api → cjs/api}/context/LDContext.d.ts +0 -0
- /package/dist/{api → cjs/api}/context/LDContext.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/context/LDContextCommon.d.ts +0 -0
- /package/dist/{api → cjs/api}/context/LDContextCommon.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/context/LDContextMeta.d.ts +0 -0
- /package/dist/{api → cjs/api}/context/LDContextMeta.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/context/LDMultiKindContext.d.ts +0 -0
- /package/dist/{api → cjs/api}/context/LDMultiKindContext.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/context/LDSingleKindContext.d.ts +0 -0
- /package/dist/{api → cjs/api}/context/LDSingleKindContext.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/context/LDUser.d.ts +0 -0
- /package/dist/{api → cjs/api}/context/LDUser.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/context/index.d.ts +0 -0
- /package/dist/{api → cjs/api}/context/index.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/data/LDEvaluationDetail.d.ts +0 -0
- /package/dist/{api → cjs/api}/data/LDEvaluationDetail.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/data/LDEvaluationReason.d.ts +0 -0
- /package/dist/{api → cjs/api}/data/LDEvaluationReason.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/data/LDFlagSet.d.ts +0 -0
- /package/dist/{api → cjs/api}/data/LDFlagSet.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/data/LDFlagValue.d.ts +0 -0
- /package/dist/{api → cjs/api}/data/LDFlagValue.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/data/index.d.ts +0 -0
- /package/dist/{api → cjs/api}/data/index.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/index.d.ts +0 -0
- /package/dist/{api → cjs/api}/index.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/logging/BasicLoggerOptions.d.ts +0 -0
- /package/dist/{api → cjs/api}/logging/BasicLoggerOptions.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/logging/LDLogLevel.d.ts +0 -0
- /package/dist/{api → cjs/api}/logging/LDLogLevel.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/logging/LDLogger.d.ts +0 -0
- /package/dist/{api → cjs/api}/logging/LDLogger.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/logging/index.d.ts +0 -0
- /package/dist/{api → cjs/api}/logging/index.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/options/LDClientContext.d.ts +0 -0
- /package/dist/{api → cjs/api}/options/LDClientContext.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/options/index.d.ts +0 -0
- /package/dist/{api → cjs/api}/options/index.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/platform/AutoEnv.d.ts +0 -0
- /package/dist/{api → cjs/api}/platform/AutoEnv.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/platform/Crypto.d.ts +0 -0
- /package/dist/{api → cjs/api}/platform/Crypto.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/platform/Encoding.d.ts +0 -0
- /package/dist/{api → cjs/api}/platform/Encoding.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/platform/EventSource.d.ts +0 -0
- /package/dist/{api → cjs/api}/platform/EventSource.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/platform/Filesystem.d.ts +0 -0
- /package/dist/{api → cjs/api}/platform/Filesystem.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/platform/Info.d.ts +0 -0
- /package/dist/{api → cjs/api}/platform/Info.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/platform/Platform.d.ts +0 -0
- /package/dist/{api → cjs/api}/platform/Platform.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/platform/Requests.d.ts +0 -0
- /package/dist/{api → cjs/api}/platform/Requests.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/platform/Storage.d.ts +0 -0
- /package/dist/{api → cjs/api}/platform/Storage.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/platform/index.d.ts +0 -0
- /package/dist/{api → cjs/api}/platform/index.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/subsystem/LDContextDeduplicator.d.ts +0 -0
- /package/dist/{api → cjs/api}/subsystem/LDContextDeduplicator.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/subsystem/LDEventProcessor.d.ts +0 -0
- /package/dist/{api → cjs/api}/subsystem/LDEventProcessor.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/subsystem/LDEventSender.d.ts +0 -0
- /package/dist/{api → cjs/api}/subsystem/LDEventSender.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/subsystem/LDStreamProcessor.d.ts +0 -0
- /package/dist/{api → cjs/api}/subsystem/LDStreamProcessor.d.ts.map +0 -0
- /package/dist/{api → cjs/api}/subsystem/index.d.ts +0 -0
- /package/dist/{api → cjs/api}/subsystem/index.d.ts.map +0 -0
- /package/dist/{datasource → cjs/datasource}/DataSourceErrorKinds.d.ts +0 -0
- /package/dist/{datasource → cjs/datasource}/DataSourceErrorKinds.d.ts.map +0 -0
- /package/dist/{datasource → cjs/datasource}/errors.d.ts +0 -0
- /package/dist/{datasource → cjs/datasource}/errors.d.ts.map +0 -0
- /package/dist/{datasource → cjs/datasource}/index.d.ts +0 -0
- /package/dist/{datasource → cjs/datasource}/index.d.ts.map +0 -0
- /package/dist/{errors.d.ts → cjs/errors.d.ts} +0 -0
- /package/dist/{errors.d.ts.map → cjs/errors.d.ts.map} +0 -0
- /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
- /package/dist/{index.d.ts.map → cjs/index.d.ts.map} +0 -0
- /package/dist/{internal → cjs/internal}/context/index.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/context/index.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/diagnostics/index.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/diagnostics/index.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/diagnostics/types.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/diagnostics/types.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/evaluation/ErrorKinds.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/evaluation/ErrorKinds.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/evaluation/index.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/evaluation/index.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/events/ClientMessages.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/events/EventSummarizer.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/events/EventSummarizer.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/events/InputClickEvent.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/events/InputClickEvent.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/events/InputCustomEvent.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/events/InputCustomEvent.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/events/InputEvalEvent.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/events/InputEvalEvent.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/events/InputEvent.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/events/InputEvent.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/events/InputEventBase.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/events/InputEventBase.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/events/InputIdentifyEvent.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/events/InputIdentifyEvent.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/events/InputMigrationEvent.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/events/InputMigrationEvent.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/events/InputPageViewEvent.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/events/InputPageViewEvent.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/events/LDInternalOptions.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/events/LDInternalOptions.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/events/LDInvalidSDKKeyError.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/events/LDInvalidSDKKeyError.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/events/NullEventProcessor.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/events/NullEventProcessor.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/events/SummaryCounter.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/events/SummaryCounter.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/events/guards.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/events/guards.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/events/index.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/events/index.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/events/sampling.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/events/sampling.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/index.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/index.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/stream/index.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/stream/index.d.ts.map +0 -0
- /package/dist/{internal → cjs/internal}/stream/types.d.ts +0 -0
- /package/dist/{internal → cjs/internal}/stream/types.d.ts.map +0 -0
- /package/dist/{logging → cjs/logging}/createSafeLogger.d.ts +0 -0
- /package/dist/{logging → cjs/logging}/createSafeLogger.d.ts.map +0 -0
- /package/dist/{logging → cjs/logging}/format.d.ts +0 -0
- /package/dist/{logging → cjs/logging}/format.d.ts.map +0 -0
- /package/dist/{logging → cjs/logging}/index.d.ts +0 -0
- /package/dist/{logging → cjs/logging}/index.d.ts.map +0 -0
- /package/dist/{options → cjs/options}/ApplicationTags.d.ts +0 -0
- /package/dist/{options → cjs/options}/ApplicationTags.d.ts.map +0 -0
- /package/dist/{options → cjs/options}/ClientContext.d.ts +0 -0
- /package/dist/{options → cjs/options}/ClientContext.d.ts.map +0 -0
- /package/dist/{options → cjs/options}/OptionMessages.d.ts +0 -0
- /package/dist/{options → cjs/options}/OptionMessages.d.ts.map +0 -0
- /package/dist/{options → cjs/options}/ServiceEndpoints.d.ts +0 -0
- /package/dist/{options → cjs/options}/index.d.ts +0 -0
- /package/dist/{options → cjs/options}/index.d.ts.map +0 -0
- /package/dist/{utils → cjs/utils}/VoidFunction.d.ts +0 -0
- /package/dist/{utils → cjs/utils}/VoidFunction.d.ts.map +0 -0
- /package/dist/{utils → cjs/utils}/cancelableTimedPromise.d.ts +0 -0
- /package/dist/{utils → cjs/utils}/cancelableTimedPromise.d.ts.map +0 -0
- /package/dist/{utils → cjs/utils}/clone.d.ts +0 -0
- /package/dist/{utils → cjs/utils}/clone.d.ts.map +0 -0
- /package/dist/{utils → cjs/utils}/date.d.ts +0 -0
- /package/dist/{utils → cjs/utils}/date.d.ts.map +0 -0
- /package/dist/{utils → cjs/utils}/debounce.d.ts +0 -0
- /package/dist/{utils → cjs/utils}/debounce.d.ts.map +0 -0
- /package/dist/{utils → cjs/utils}/deepCompact.d.ts +0 -0
- /package/dist/{utils → cjs/utils}/deepCompact.d.ts.map +0 -0
- /package/dist/{utils → cjs/utils}/fast-deep-equal/index.d.ts +0 -0
- /package/dist/{utils → cjs/utils}/fast-deep-equal/index.d.ts.map +0 -0
- /package/dist/{utils → cjs/utils}/http.d.ts +0 -0
- /package/dist/{utils → cjs/utils}/http.d.ts.map +0 -0
- /package/dist/{utils → cjs/utils}/index.d.ts +0 -0
- /package/dist/{utils → cjs/utils}/index.d.ts.map +0 -0
- /package/dist/{utils → cjs/utils}/isEmptyObject.d.ts +0 -0
- /package/dist/{utils → cjs/utils}/isEmptyObject.d.ts.map +0 -0
- /package/dist/{utils → cjs/utils}/noop.d.ts +0 -0
- /package/dist/{utils → cjs/utils}/noop.d.ts.map +0 -0
- /package/dist/{utils → cjs/utils}/sleep.d.ts +0 -0
- /package/dist/{utils → cjs/utils}/sleep.d.ts.map +0 -0
- /package/dist/{utils → cjs/utils}/timedPromise.d.ts +0 -0
- /package/dist/{utils → cjs/utils}/timedPromise.d.ts.map +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LDMultiKindContext } from './LDMultiKindContext';
|
|
2
|
+
import { LDSingleKindContext } from './LDSingleKindContext';
|
|
3
|
+
import { LDUser } from './LDUser';
|
|
4
|
+
/**
|
|
5
|
+
* A LaunchDarkly context object.
|
|
6
|
+
*/
|
|
7
|
+
export type LDContext = LDUser | LDSingleKindContext | LDMultiKindContext;
|
|
8
|
+
//# sourceMappingURL=LDContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDContext.d.ts","sourceRoot":"","sources":["../../../src/api/context/LDContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,mBAAmB,GAAG,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { LDContextMeta } from './LDContextMeta';
|
|
2
|
+
export interface LDContextCommon {
|
|
3
|
+
/**
|
|
4
|
+
* A unique string identifying a context.
|
|
5
|
+
*/
|
|
6
|
+
key: string;
|
|
7
|
+
/**
|
|
8
|
+
* The context's name.
|
|
9
|
+
*
|
|
10
|
+
* You can search for contexts on the Contexts page by name.
|
|
11
|
+
*/
|
|
12
|
+
name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Meta attributes are used to control behavioral aspects of the Context, such as private
|
|
15
|
+
* private attributes. See {@link LDContextMeta.privateAttributes} as an example.
|
|
16
|
+
*
|
|
17
|
+
* They cannot be addressed in targeting rules.
|
|
18
|
+
*/
|
|
19
|
+
_meta?: LDContextMeta;
|
|
20
|
+
/**
|
|
21
|
+
* If true, the context will _not_ appear on the Contexts page in the LaunchDarkly dashboard.
|
|
22
|
+
*/
|
|
23
|
+
anonymous?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Any additional attributes associated with the context.
|
|
26
|
+
*/
|
|
27
|
+
[attribute: string]: any;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=LDContextCommon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDContextCommon.d.ts","sourceRoot":"","sources":["../../../src/api/context/LDContextCommon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,CAAC,SAAS,EAAE,MAAM,GAAG,GAAG,CAAC;CAC1B"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Meta attributes are used to control behavioral aspects of the Context.
|
|
3
|
+
* They cannot be addressed in targeting rules.
|
|
4
|
+
*/
|
|
5
|
+
export interface LDContextMeta {
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* Designate any number of Context attributes, or properties within them, as private: that is,
|
|
9
|
+
* their values will not be sent to LaunchDarkly.
|
|
10
|
+
*
|
|
11
|
+
* Each parameter can be a simple attribute name, such as "email". Or, if the first character is
|
|
12
|
+
* a slash, the parameter is interpreted as a slash-delimited path to a property within a JSON
|
|
13
|
+
* object, where the first path component is a Context attribute name and each following
|
|
14
|
+
* component is a nested property name: for example, suppose the attribute "address" had the
|
|
15
|
+
* following JSON object value:
|
|
16
|
+
*
|
|
17
|
+
* ```
|
|
18
|
+
* {"street": {"line1": "abc", "line2": "def"}}
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* Using ["/address/street/line1"] in this case would cause the "line1" property to be marked as
|
|
22
|
+
* private. This syntax deliberately resembles JSON Pointer, but other JSON Pointer features
|
|
23
|
+
* such as array indexing are not supported for Private.
|
|
24
|
+
*
|
|
25
|
+
* This action only affects analytics events that involve this particular Context. To mark some
|
|
26
|
+
* (or all) Context attributes as private for all users, use the overall configuration for the
|
|
27
|
+
* SDK.
|
|
28
|
+
* See {@link LDOptions.allAttributesPrivate} and {@link LDOptions.privateAttributes}.
|
|
29
|
+
*
|
|
30
|
+
* The attributes "kind" and "key", and the "_meta" attributes cannot be made private.
|
|
31
|
+
*
|
|
32
|
+
* In this example, firstName is marked as private, but lastName is not:
|
|
33
|
+
*
|
|
34
|
+
* ```
|
|
35
|
+
* const context = {
|
|
36
|
+
* kind: 'org',
|
|
37
|
+
* key: 'my-key',
|
|
38
|
+
* firstName: 'Pierre',
|
|
39
|
+
* lastName: 'Menard',
|
|
40
|
+
* _meta: {
|
|
41
|
+
* privateAttributes: ['firstName'],
|
|
42
|
+
* }
|
|
43
|
+
* };
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* This is a metadata property, rather than an attribute that can be addressed in evaluations:
|
|
47
|
+
* that is, a rule clause that references the attribute name "privateAttributes", will not use
|
|
48
|
+
* this value, but would use a "privateAttributes" attribute set on the context.
|
|
49
|
+
*/
|
|
50
|
+
privateAttributes?: string[];
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=LDContextMeta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDContextMeta.d.ts","sourceRoot":"","sources":["../../../src/api/context/LDContextMeta.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { LDContextCommon } from './LDContextCommon';
|
|
2
|
+
/**
|
|
3
|
+
* A context which represents multiple kinds. Each kind having its own key and attributes.
|
|
4
|
+
*
|
|
5
|
+
* A multi-context must contain `kind: 'multi'` at the root.
|
|
6
|
+
*
|
|
7
|
+
* ```
|
|
8
|
+
* const myMultiContext = {
|
|
9
|
+
* // Multi-contexts must be of kind 'multi'.
|
|
10
|
+
* kind: 'multi',
|
|
11
|
+
* // The context is namespaced by its kind. This is an 'org' kind context.
|
|
12
|
+
* org: {
|
|
13
|
+
* // Each component context has its own key and attributes.
|
|
14
|
+
* key: 'my-org-key',
|
|
15
|
+
* someAttribute: 'my-attribute-value',
|
|
16
|
+
* },
|
|
17
|
+
* user: {
|
|
18
|
+
* key: 'my-user-key',
|
|
19
|
+
* firstName: 'Bob',
|
|
20
|
+
* lastName: 'Bobberson',
|
|
21
|
+
* _meta: {
|
|
22
|
+
* // Each component context has its own _meta attributes. This will only apply the this
|
|
23
|
+
* // 'user' context.
|
|
24
|
+
* privateAttributes: ['firstName']
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
* };
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* The above multi-context contains both an 'org' and a 'user'. Each with their own key,
|
|
31
|
+
* attributes, and _meta attributes.
|
|
32
|
+
*/
|
|
33
|
+
export interface LDMultiKindContext {
|
|
34
|
+
/**
|
|
35
|
+
* The kind of the context.
|
|
36
|
+
*/
|
|
37
|
+
kind: 'multi';
|
|
38
|
+
/**
|
|
39
|
+
* The contexts which compose this multi-kind context.
|
|
40
|
+
*
|
|
41
|
+
* These should be of type LDContextCommon. "multi" is to allow
|
|
42
|
+
* for the top level "kind" attribute.
|
|
43
|
+
*/
|
|
44
|
+
[kind: string]: 'multi' | LDContextCommon;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=LDMultiKindContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDMultiKindContext.d.ts","sourceRoot":"","sources":["../../../src/api/context/LDMultiKindContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;;;;OAKG;IACH,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,eAAe,CAAC;CAC3C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { LDContextCommon } from './LDContextCommon';
|
|
2
|
+
/**
|
|
3
|
+
* A context which represents a single kind.
|
|
4
|
+
*
|
|
5
|
+
* For a single kind context the 'kind' may not be 'multi'.
|
|
6
|
+
*
|
|
7
|
+
* ```
|
|
8
|
+
* const myOrgContext = {
|
|
9
|
+
* kind: 'org',
|
|
10
|
+
* key: 'my-org-key',
|
|
11
|
+
* someAttribute: 'my-attribute-value'
|
|
12
|
+
* };
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* The above context would be a single kind context representing an organization. It has a key
|
|
16
|
+
* for that organization, and a single attribute 'someAttribute'.
|
|
17
|
+
*/
|
|
18
|
+
export interface LDSingleKindContext extends LDContextCommon {
|
|
19
|
+
/**
|
|
20
|
+
* The kind of the context.
|
|
21
|
+
*/
|
|
22
|
+
kind: string;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=LDSingleKindContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDSingleKindContext.d.ts","sourceRoot":"","sources":["../../../src/api/context/LDSingleKindContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,mBAAoB,SAAQ,eAAe;IAC1D;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A LaunchDarkly user object.
|
|
3
|
+
*
|
|
4
|
+
* @deprecated
|
|
5
|
+
*/
|
|
6
|
+
export interface LDUser {
|
|
7
|
+
/**
|
|
8
|
+
* A unique string identifying a user.
|
|
9
|
+
*/
|
|
10
|
+
key: string;
|
|
11
|
+
/**
|
|
12
|
+
* The user's name.
|
|
13
|
+
*
|
|
14
|
+
* You can search for users on the User page by name.
|
|
15
|
+
*/
|
|
16
|
+
name?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The user's first name.
|
|
19
|
+
*/
|
|
20
|
+
firstName?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The user's last name.
|
|
23
|
+
*/
|
|
24
|
+
lastName?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The user's email address.
|
|
27
|
+
*
|
|
28
|
+
* If an `avatar` URL is not provided, LaunchDarkly will use Gravatar
|
|
29
|
+
* to try to display an avatar for the user on the Users page.
|
|
30
|
+
*/
|
|
31
|
+
email?: string;
|
|
32
|
+
/**
|
|
33
|
+
* An absolute URL to an avatar image for the user.
|
|
34
|
+
*/
|
|
35
|
+
avatar?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The user's IP address.
|
|
38
|
+
*
|
|
39
|
+
* If you provide an IP, LaunchDarkly will use a geolocation service to
|
|
40
|
+
* automatically infer a `country` for the user, unless you've already
|
|
41
|
+
* specified one.
|
|
42
|
+
*/
|
|
43
|
+
ip?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The country associated with the user.
|
|
46
|
+
*/
|
|
47
|
+
country?: string;
|
|
48
|
+
/**
|
|
49
|
+
* If true, the user will _not_ appear on the Users page in the LaunchDarkly dashboard.
|
|
50
|
+
*/
|
|
51
|
+
anonymous?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Any additional attributes associated with the user.
|
|
54
|
+
*/
|
|
55
|
+
custom?: {
|
|
56
|
+
[key: string]: string | boolean | number | Array<string | boolean | number>;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Specifies a list of attribute names (either built-in or custom) which should be
|
|
60
|
+
* marked as private, and not sent to LaunchDarkly in analytics events. This is in
|
|
61
|
+
* addition to any private attributes designated in the global configuration
|
|
62
|
+
* with {@link LDOptions.privateAttributes} or {@link LDOptions.allAttributesPrivate}.
|
|
63
|
+
*/
|
|
64
|
+
privateAttributeNames?: Array<string>;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=LDUser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDUser.d.ts","sourceRoot":"","sources":["../../../src/api/context/LDUser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;KAC7E,CAAC;IAEF;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { LDEvaluationReason } from './LDEvaluationReason';
|
|
2
|
+
import { LDFlagValue } from './LDFlagValue';
|
|
3
|
+
/**
|
|
4
|
+
* An object that combines the result of a feature flag evaluation with information about
|
|
5
|
+
* how it was calculated.
|
|
6
|
+
*
|
|
7
|
+
* This is the result of calling `LDClient.variationDetail`.
|
|
8
|
+
*
|
|
9
|
+
* For more information, see the [SDK reference guide](https://docs.launchdarkly.com/sdk/features/evaluation-reasons#nodejs-server-side).
|
|
10
|
+
*/
|
|
11
|
+
export interface LDEvaluationDetail {
|
|
12
|
+
/**
|
|
13
|
+
* The result of the flag evaluation. This will be either one of the flag's variations or
|
|
14
|
+
* the default value that was passed to `LDClient.variationDetail`.
|
|
15
|
+
*/
|
|
16
|
+
value: LDFlagValue;
|
|
17
|
+
/**
|
|
18
|
+
* The index of the returned value within the flag's list of variations, e.g. 0 for the
|
|
19
|
+
* first variation-- or `null` if the default value was returned.
|
|
20
|
+
*/
|
|
21
|
+
variationIndex?: number | null;
|
|
22
|
+
/**
|
|
23
|
+
* An object describing the main factor that influenced the flag evaluation value.
|
|
24
|
+
*/
|
|
25
|
+
reason: LDEvaluationReason;
|
|
26
|
+
}
|
|
27
|
+
export interface LDEvaluationDetailTyped<TFlag> {
|
|
28
|
+
/**
|
|
29
|
+
* The result of the flag evaluation. This will be either one of the flag's variations or
|
|
30
|
+
* the default value that was passed to `LDClient.variationDetail`.
|
|
31
|
+
*/
|
|
32
|
+
value: TFlag;
|
|
33
|
+
/**
|
|
34
|
+
* The index of the returned value within the flag's list of variations, e.g. 0 for the
|
|
35
|
+
* first variation-- or `null` if the default value was returned.
|
|
36
|
+
*/
|
|
37
|
+
variationIndex?: number | null;
|
|
38
|
+
/**
|
|
39
|
+
* An object describing the main factor that influenced the flag evaluation value.
|
|
40
|
+
*/
|
|
41
|
+
reason: LDEvaluationReason;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=LDEvaluationDetail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDEvaluationDetail.d.ts","sourceRoot":"","sources":["../../../src/api/data/LDEvaluationDetail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,EAAE,WAAW,CAAC;IAEnB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAuB,CAAC,KAAK;IAC5C;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;CAC5B"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes the reason that a flag evaluation produced a particular value. This is
|
|
3
|
+
* part of the {@link LDEvaluationDetail} object returned by `LDClient.variationDetail`.
|
|
4
|
+
*/
|
|
5
|
+
export interface LDEvaluationReason {
|
|
6
|
+
/**
|
|
7
|
+
* The general category of the reason:
|
|
8
|
+
*
|
|
9
|
+
* - `'OFF'`: The flag was off and therefore returned its configured off value.
|
|
10
|
+
* - `'FALLTHROUGH'`: The flag was on but the context did not match any targets or rules.
|
|
11
|
+
* - `'TARGET_MATCH'`: The context key was specifically targeted for this flag.
|
|
12
|
+
* - `'RULE_MATCH'`: the context matched one of the flag's rules.
|
|
13
|
+
* - `'PREREQUISITE_FAILED'`: The flag was considered off because it had at least one
|
|
14
|
+
* prerequisite flag that either was off or did not return the desired variation.
|
|
15
|
+
* - `'ERROR'`: The flag could not be evaluated, e.g. because it does not exist or due
|
|
16
|
+
* to an unexpected error.
|
|
17
|
+
*/
|
|
18
|
+
kind: string;
|
|
19
|
+
/**
|
|
20
|
+
* A further description of the error condition, if the kind was `'ERROR'`.
|
|
21
|
+
*/
|
|
22
|
+
errorKind?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The index of the matched rule (0 for the first), if the kind was `'RULE_MATCH'`.
|
|
25
|
+
*/
|
|
26
|
+
ruleIndex?: number;
|
|
27
|
+
/**
|
|
28
|
+
* The unique identifier of the matched rule, if the kind was `'RULE_MATCH'`.
|
|
29
|
+
*/
|
|
30
|
+
ruleId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The key of the failed prerequisite flag, if the kind was `'PREREQUISITE_FAILED'`.
|
|
33
|
+
*/
|
|
34
|
+
prerequisiteKey?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Whether the evaluation was part of an experiment.
|
|
37
|
+
*
|
|
38
|
+
* This is true if the evaluation resulted in an experiment rollout and served one of
|
|
39
|
+
* the variations in the experiment. Otherwise it is false or undefined.
|
|
40
|
+
*/
|
|
41
|
+
inExperiment?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Describes the validity of Big Segment information, if and only if the flag evaluation
|
|
44
|
+
* required querying at least one Big Segment.
|
|
45
|
+
*
|
|
46
|
+
* - `'HEALTHY'`: The Big Segment query involved in the flag evaluation was successful, and
|
|
47
|
+
* the segment state is considered up to date.
|
|
48
|
+
* - `'STALE'`: The Big Segment query involved in the flag evaluation was successful, but
|
|
49
|
+
* the segment state may not be up to date
|
|
50
|
+
* - `'NOT_CONFIGURED'`: Big Segments could not be queried for the flag evaluation because
|
|
51
|
+
* the SDK configuration did not include a Big Segment store.
|
|
52
|
+
* - `'STORE_ERROR'`: The Big Segment query involved in the flag evaluation failed, for
|
|
53
|
+
* instance due to a database error.
|
|
54
|
+
*/
|
|
55
|
+
bigSegmentsStatus?: 'HEALTHY' | 'STALE' | 'NOT_CONFIGURED' | 'STORE_ERROR';
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=LDEvaluationReason.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDEvaluationReason.d.ts","sourceRoot":"","sources":["../../../src/api/data/LDEvaluationReason.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;;;OAWG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,gBAAgB,GAAG,aAAa,CAAC;CAC5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDFlagSet.d.ts","sourceRoot":"","sources":["../../../src/api/data/LDFlagSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDFlagValue.d.ts","sourceRoot":"","sources":["../../../src/api/data/LDFlagValue.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,GAAG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/data/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { LDLogLevel } from './LDLogLevel';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration for {@link basicLogger}.
|
|
4
|
+
*/
|
|
5
|
+
export interface BasicLoggerOptions {
|
|
6
|
+
/**
|
|
7
|
+
* The lowest level of log message to enable.
|
|
8
|
+
*
|
|
9
|
+
* See {@link LDLogLevel} for a list of possible levels. Setting a level here causes
|
|
10
|
+
* all lower-importance levels to be disabled: for instance, if you specify
|
|
11
|
+
* `'warn'`, then `'debug'` and `'info'` are disabled.
|
|
12
|
+
*
|
|
13
|
+
* If not specified, the default is `'info'` (meaning that `'debug'` is disabled).
|
|
14
|
+
*/
|
|
15
|
+
level?: LDLogLevel;
|
|
16
|
+
/**
|
|
17
|
+
* Name to use for the log entires. The default name is `LaunchDarkly`.
|
|
18
|
+
*/
|
|
19
|
+
name?: string;
|
|
20
|
+
/**
|
|
21
|
+
* An optional function to use to print each log line.
|
|
22
|
+
*
|
|
23
|
+
* If this is specified, `basicLogger` calls it to write each line of output. The
|
|
24
|
+
* argument is a fully formatted log line, not including a linefeed. The function
|
|
25
|
+
* is only called for log levels that are enabled.
|
|
26
|
+
*
|
|
27
|
+
* If not specified, the default is `console.error`.
|
|
28
|
+
*
|
|
29
|
+
* Setting this property to anything other than a function will cause SDK
|
|
30
|
+
* initialization to fail.
|
|
31
|
+
*/
|
|
32
|
+
destination?: (line: string) => void;
|
|
33
|
+
/**
|
|
34
|
+
* An optional formatter to use. The formatter should be compatible
|
|
35
|
+
* with node-style format strings like those used with `util.format`.
|
|
36
|
+
*
|
|
37
|
+
* If not specified, then a default implementation will be used.
|
|
38
|
+
* But using a node-specific implementation, for instance, would
|
|
39
|
+
* have performance and quality benefits.
|
|
40
|
+
*/
|
|
41
|
+
formatter?: (...args: any[]) => string;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=BasicLoggerOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasicLoggerOptions.d.ts","sourceRoot":"","sources":["../../../src/api/logging/BasicLoggerOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAErC;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC;CACxC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Logging levels that can be used with {@link basicLogger}.
|
|
3
|
+
*
|
|
4
|
+
* Set{@link BasicLoggerOptions.level} to one of these values to control what levels
|
|
5
|
+
* of log messages are enabled. Going from lowest importance (and most verbose)
|
|
6
|
+
* to most importance, the levels are `'debug'`, `'info'`, `'warn'`, and `'error'`.
|
|
7
|
+
* You can also specify `'none'` instead to disable all logging.
|
|
8
|
+
*/
|
|
9
|
+
export type LDLogLevel = 'debug' | 'info' | 'warn' | 'error' | 'none';
|
|
10
|
+
//# sourceMappingURL=LDLogLevel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDLogLevel.d.ts","sourceRoot":"","sources":["../../../src/api/logging/LDLogLevel.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The LaunchDarkly client logger interface.
|
|
3
|
+
*
|
|
4
|
+
* The {@link LDOptions.logger} property accepts any object that conforms to this
|
|
5
|
+
* interface. The SDK only uses four logging levels: `error`, `warn`, `info`, and
|
|
6
|
+
* `debug`. It will call the corresponding method of the `LDLogger` either with a
|
|
7
|
+
* single string argument, or with a format string and variable arguments in the
|
|
8
|
+
* format used by Node's `util.format()`.
|
|
9
|
+
*
|
|
10
|
+
* The [Winston](https://github.com/winstonjs/winston) logging package provides a
|
|
11
|
+
* logger that conforms to this interface, so if you have created a logger with
|
|
12
|
+
* Winston, you can simply put it into the {@link LDOptions.logger} property.
|
|
13
|
+
*
|
|
14
|
+
* If you do not provide a logger object, the SDK uses the {@link basicLogger}
|
|
15
|
+
* implementation with a minimum level of `info`.
|
|
16
|
+
*/
|
|
17
|
+
export interface LDLogger {
|
|
18
|
+
/**
|
|
19
|
+
* The error logger.
|
|
20
|
+
*
|
|
21
|
+
* @param args
|
|
22
|
+
* A sequence of any JavaScript values.
|
|
23
|
+
*/
|
|
24
|
+
error(...args: any[]): void;
|
|
25
|
+
/**
|
|
26
|
+
* The warning logger.
|
|
27
|
+
*
|
|
28
|
+
* @param args
|
|
29
|
+
* A sequence of any JavaScript values.
|
|
30
|
+
*/
|
|
31
|
+
warn(...args: any[]): void;
|
|
32
|
+
/**
|
|
33
|
+
* The info logger.
|
|
34
|
+
*
|
|
35
|
+
* @param args
|
|
36
|
+
* A sequence of any JavaScript values.
|
|
37
|
+
*/
|
|
38
|
+
info(...args: any[]): void;
|
|
39
|
+
/**
|
|
40
|
+
* The debug logger.
|
|
41
|
+
*
|
|
42
|
+
* @param args
|
|
43
|
+
* A sequence of any JavaScript values.
|
|
44
|
+
*/
|
|
45
|
+
debug(...args: any[]): void;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=LDLogger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDLogger.d.ts","sourceRoot":"","sources":["../../../src/api/logging/LDLogger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,QAAQ;IACvB;;;;;OAKG;IACH,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAE5B;;;;;OAKG;IACH,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAE3B;;;;;OAKG;IACH,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAE3B;;;;;OAKG;IACH,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/logging/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { LDLogger } from '../logging';
|
|
2
|
+
import { Platform } from '../platform';
|
|
3
|
+
/**
|
|
4
|
+
* Specifies the base service URIs used by SDK components.
|
|
5
|
+
*/
|
|
6
|
+
export interface LDServiceEndpoints {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The most basic properties of the SDK client that are available to all SDK component factories.
|
|
10
|
+
*/
|
|
11
|
+
export interface LDBasicConfiguration {
|
|
12
|
+
/**
|
|
13
|
+
* The configured SDK key.
|
|
14
|
+
*/
|
|
15
|
+
sdkKey: string;
|
|
16
|
+
/**
|
|
17
|
+
* Defines the base service URIs used by SDK components.
|
|
18
|
+
*/
|
|
19
|
+
serviceEndpoints: LDServiceEndpoints;
|
|
20
|
+
/**
|
|
21
|
+
* True if the SDK was configured to be completely offline.
|
|
22
|
+
*/
|
|
23
|
+
offline?: boolean;
|
|
24
|
+
logger?: LDLogger;
|
|
25
|
+
tags?: {
|
|
26
|
+
value?: string;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Factory methods receive this class as a parameter.
|
|
31
|
+
*
|
|
32
|
+
* Its public properties provide information about the SDK configuration and environment. The SDK
|
|
33
|
+
* may also include non-public properties that are relevant only when creating one of the built-in
|
|
34
|
+
* component types and are not accessible to custom components.
|
|
35
|
+
*/
|
|
36
|
+
export interface LDClientContext {
|
|
37
|
+
/**
|
|
38
|
+
* The SDK's basic global properties.
|
|
39
|
+
*/
|
|
40
|
+
basicConfiguration: LDBasicConfiguration;
|
|
41
|
+
/**
|
|
42
|
+
* Interfaces providing platform specific information and functionality.
|
|
43
|
+
*/
|
|
44
|
+
platform: Platform;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=LDClientContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDClientContext.d.ts","sourceRoot":"","sources":["../../../src/api/options/LDClientContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,kBAAkB;CAElC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,gBAAgB,EAAE,kBAAkB,CAAC;IAErC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,MAAM,CAAC,EAAE,QAAQ,CAAC;IAElB,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,kBAAkB,EAAE,oBAAoB,CAAC;IAEzC;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/options/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,eAAe,EAAE,CAAC"}
|