@launchdarkly/js-sdk-common 0.1.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 +7 -0
- package/README.md +25 -0
- package/dist/AttributeReference.d.ts +35 -0
- package/dist/AttributeReference.d.ts.map +1 -0
- package/dist/AttributeReference.js +126 -0
- package/dist/AttributeReference.js.map +1 -0
- package/dist/Context.d.ts +90 -0
- package/dist/Context.d.ts.map +1 -0
- package/dist/Context.js +385 -0
- package/dist/Context.js.map +1 -0
- package/dist/ContextFilter.d.ts +11 -0
- package/dist/ContextFilter.d.ts.map +1 -0
- package/dist/ContextFilter.js +122 -0
- package/dist/ContextFilter.js.map +1 -0
- package/dist/api/context/LDContext.d.ts +8 -0
- package/dist/api/context/LDContext.d.ts.map +1 -0
- package/dist/api/context/LDContext.js +3 -0
- package/dist/api/context/LDContext.js.map +1 -0
- package/dist/api/context/LDContextCommon.d.ts +29 -0
- package/dist/api/context/LDContextCommon.d.ts.map +1 -0
- package/dist/api/context/LDContextCommon.js +3 -0
- package/dist/api/context/LDContextCommon.js.map +1 -0
- package/dist/api/context/LDContextMeta.d.ts +52 -0
- package/dist/api/context/LDContextMeta.d.ts.map +1 -0
- package/dist/api/context/LDContextMeta.js +3 -0
- package/dist/api/context/LDContextMeta.js.map +1 -0
- package/dist/api/context/LDMultiKindContext.d.ts +46 -0
- package/dist/api/context/LDMultiKindContext.d.ts.map +1 -0
- package/dist/api/context/LDMultiKindContext.js +3 -0
- package/dist/api/context/LDMultiKindContext.js.map +1 -0
- package/dist/api/context/LDSingleKindContext.d.ts +24 -0
- package/dist/api/context/LDSingleKindContext.d.ts.map +1 -0
- package/dist/api/context/LDSingleKindContext.js +3 -0
- package/dist/api/context/LDSingleKindContext.js.map +1 -0
- package/dist/api/context/LDUser.d.ts +66 -0
- package/dist/api/context/LDUser.d.ts.map +1 -0
- package/dist/api/context/LDUser.js +3 -0
- package/dist/api/context/LDUser.js.map +1 -0
- package/dist/api/context/index.d.ts +7 -0
- package/dist/api/context/index.d.ts.map +1 -0
- package/dist/api/context/index.js +23 -0
- package/dist/api/context/index.js.map +1 -0
- package/dist/api/data/LDEvaluationDetail.d.ts +27 -0
- package/dist/api/data/LDEvaluationDetail.d.ts.map +1 -0
- package/dist/api/data/LDEvaluationDetail.js +3 -0
- package/dist/api/data/LDEvaluationDetail.js.map +1 -0
- package/dist/api/data/LDEvaluationReason.d.ts +57 -0
- package/dist/api/data/LDEvaluationReason.d.ts.map +1 -0
- package/dist/api/data/LDEvaluationReason.js +3 -0
- package/dist/api/data/LDEvaluationReason.js.map +1 -0
- package/dist/api/data/LDFlagSet.d.ts +8 -0
- package/dist/api/data/LDFlagSet.d.ts.map +1 -0
- package/dist/api/data/LDFlagSet.js +3 -0
- package/dist/api/data/LDFlagSet.js.map +1 -0
- package/dist/api/data/LDFlagValue.d.ts +7 -0
- package/dist/api/data/LDFlagValue.d.ts.map +1 -0
- package/dist/api/data/LDFlagValue.js +3 -0
- package/dist/api/data/LDFlagValue.js.map +1 -0
- package/dist/api/data/index.d.ts +5 -0
- package/dist/api/data/index.d.ts.map +1 -0
- package/dist/api/data/index.js +21 -0
- package/dist/api/data/index.js.map +1 -0
- package/dist/api/index.d.ts +7 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +24 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/logging/BasicLoggerOptions.d.ts +43 -0
- package/dist/api/logging/BasicLoggerOptions.d.ts.map +1 -0
- package/dist/api/logging/BasicLoggerOptions.js +3 -0
- package/dist/api/logging/BasicLoggerOptions.js.map +1 -0
- package/dist/api/logging/LDLogLevel.d.ts +10 -0
- package/dist/api/logging/LDLogLevel.d.ts.map +1 -0
- package/dist/api/logging/LDLogLevel.js +3 -0
- package/dist/api/logging/LDLogLevel.js.map +1 -0
- package/dist/api/logging/LDLogger.d.ts +47 -0
- package/dist/api/logging/LDLogger.d.ts.map +1 -0
- package/dist/api/logging/LDLogger.js +3 -0
- package/dist/api/logging/LDLogger.js.map +1 -0
- package/dist/api/logging/index.d.ts +4 -0
- package/dist/api/logging/index.d.ts.map +1 -0
- package/dist/api/logging/index.js +20 -0
- package/dist/api/logging/index.js.map +1 -0
- package/dist/api/options/LDClientContext.d.ts +43 -0
- package/dist/api/options/LDClientContext.d.ts.map +1 -0
- package/dist/api/options/LDClientContext.js +3 -0
- package/dist/api/options/LDClientContext.js.map +1 -0
- package/dist/api/options/index.d.ts +3 -0
- package/dist/api/options/index.d.ts.map +1 -0
- package/dist/api/options/index.js +3 -0
- package/dist/api/options/index.js.map +1 -0
- package/dist/api/platform/Crypto.d.ts +31 -0
- package/dist/api/platform/Crypto.d.ts.map +1 -0
- package/dist/api/platform/Crypto.js +3 -0
- package/dist/api/platform/Crypto.js.map +1 -0
- package/dist/api/platform/EventSource.d.ts +25 -0
- package/dist/api/platform/EventSource.d.ts.map +1 -0
- package/dist/api/platform/EventSource.js +3 -0
- package/dist/api/platform/EventSource.js.map +1 -0
- package/dist/api/platform/Filesystem.d.ts +40 -0
- package/dist/api/platform/Filesystem.d.ts.map +1 -0
- package/dist/api/platform/Filesystem.js +3 -0
- package/dist/api/platform/Filesystem.js.map +1 -0
- package/dist/api/platform/Info.d.ts +64 -0
- package/dist/api/platform/Info.d.ts.map +1 -0
- package/dist/api/platform/Info.js +3 -0
- package/dist/api/platform/Info.js.map +1 -0
- package/dist/api/platform/Platform.d.ts +25 -0
- package/dist/api/platform/Platform.d.ts.map +1 -0
- package/dist/api/platform/Platform.js +3 -0
- package/dist/api/platform/Platform.js.map +1 -0
- package/dist/api/platform/Requests.d.ts +75 -0
- package/dist/api/platform/Requests.d.ts.map +1 -0
- package/dist/api/platform/Requests.js +6 -0
- package/dist/api/platform/Requests.js.map +1 -0
- package/dist/api/platform/index.d.ts +7 -0
- package/dist/api/platform/index.d.ts.map +1 -0
- package/dist/api/platform/index.js +23 -0
- package/dist/api/platform/index.js.map +1 -0
- package/dist/api/subsystem/LDContextDeduplicator.d.ts +24 -0
- package/dist/api/subsystem/LDContextDeduplicator.d.ts.map +1 -0
- package/dist/api/subsystem/LDContextDeduplicator.js +3 -0
- package/dist/api/subsystem/LDContextDeduplicator.js.map +1 -0
- package/dist/api/subsystem/LDEventProcessor.d.ts +7 -0
- package/dist/api/subsystem/LDEventProcessor.d.ts.map +1 -0
- package/dist/api/subsystem/LDEventProcessor.js +3 -0
- package/dist/api/subsystem/LDEventProcessor.js.map +1 -0
- package/dist/api/subsystem/LDEventSender.d.ts +18 -0
- package/dist/api/subsystem/LDEventSender.d.ts.map +1 -0
- package/dist/api/subsystem/LDEventSender.js +15 -0
- package/dist/api/subsystem/LDEventSender.js.map +1 -0
- package/dist/api/subsystem/index.d.ts +5 -0
- package/dist/api/subsystem/index.d.ts.map +1 -0
- package/dist/api/subsystem/index.js +7 -0
- package/dist/api/subsystem/index.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/events/EventProcessor.d.ts +51 -0
- package/dist/internal/events/EventProcessor.d.ts.map +1 -0
- package/dist/internal/events/EventProcessor.js +214 -0
- package/dist/internal/events/EventProcessor.js.map +1 -0
- package/dist/internal/events/EventSummarizer.d.ts +2 -0
- package/dist/internal/events/EventSummarizer.d.ts.map +1 -0
- package/dist/internal/events/EventSummarizer.js +84 -0
- package/dist/internal/events/EventSummarizer.js.map +1 -0
- package/dist/internal/events/InputCustomEvent.d.ts +11 -0
- package/dist/internal/events/InputCustomEvent.d.ts.map +1 -0
- package/dist/internal/events/InputCustomEvent.js +14 -0
- package/dist/internal/events/InputCustomEvent.js.map +1 -0
- package/dist/internal/events/InputEvalEvent.d.ts +19 -0
- package/dist/internal/events/InputEvalEvent.d.ts.map +1 -0
- package/dist/internal/events/InputEvalEvent.js +35 -0
- package/dist/internal/events/InputEvalEvent.js.map +1 -0
- package/dist/internal/events/InputEvent.d.ts +6 -0
- package/dist/internal/events/InputEvent.d.ts.map +1 -0
- package/dist/internal/events/InputEvent.js +3 -0
- package/dist/internal/events/InputEvent.js.map +1 -0
- package/dist/internal/events/InputEventBase.d.ts +8 -0
- package/dist/internal/events/InputEventBase.d.ts.map +1 -0
- package/dist/internal/events/InputEventBase.js +11 -0
- package/dist/internal/events/InputEventBase.js.map +1 -0
- package/dist/internal/events/InputIdentifyEvent.d.ts +8 -0
- package/dist/internal/events/InputIdentifyEvent.d.ts.map +1 -0
- package/dist/internal/events/InputIdentifyEvent.js +11 -0
- package/dist/internal/events/InputIdentifyEvent.js.map +1 -0
- package/dist/internal/events/LDInvalidSDKKeyError.d.ts +4 -0
- package/dist/internal/events/LDInvalidSDKKeyError.d.ts.map +1 -0
- package/dist/internal/events/LDInvalidSDKKeyError.js +10 -0
- package/dist/internal/events/LDInvalidSDKKeyError.js.map +1 -0
- package/dist/internal/events/SummaryCounter.d.ts +2 -0
- package/dist/internal/events/SummaryCounter.d.ts.map +1 -0
- package/dist/internal/events/SummaryCounter.js +20 -0
- package/dist/internal/events/SummaryCounter.js.map +1 -0
- package/dist/internal/events/guards.d.ts +7 -0
- package/dist/internal/events/guards.d.ts.map +1 -0
- package/dist/internal/events/guards.js +16 -0
- package/dist/internal/events/guards.js.map +1 -0
- package/dist/internal/events/index.d.ts +7 -0
- package/dist/internal/events/index.d.ts.map +1 -0
- package/dist/internal/events/index.js +12 -0
- package/dist/internal/events/index.js.map +1 -0
- package/dist/internal/index.d.ts +2 -0
- package/dist/internal/index.d.ts.map +1 -0
- package/dist/internal/index.js +18 -0
- package/dist/internal/index.js.map +1 -0
- package/dist/logging/BasicLogger.d.ts +27 -0
- package/dist/logging/BasicLogger.d.ts.map +1 -0
- package/dist/logging/BasicLogger.js +89 -0
- package/dist/logging/BasicLogger.js.map +1 -0
- package/dist/logging/SafeLogger.d.ts +28 -0
- package/dist/logging/SafeLogger.d.ts.map +1 -0
- package/dist/logging/SafeLogger.js +63 -0
- package/dist/logging/SafeLogger.js.map +1 -0
- package/dist/logging/format.d.ts +2 -0
- package/dist/logging/format.d.ts.map +1 -0
- package/dist/logging/format.js +156 -0
- package/dist/logging/format.js.map +1 -0
- package/dist/logging/index.d.ts +4 -0
- package/dist/logging/index.d.ts.map +1 -0
- package/dist/logging/index.js +8 -0
- package/dist/logging/index.js.map +1 -0
- package/dist/options/ApplicationTags.d.ts +15 -0
- package/dist/options/ApplicationTags.d.ts.map +1 -0
- package/dist/options/ApplicationTags.js +57 -0
- package/dist/options/ApplicationTags.js.map +1 -0
- package/dist/options/ClientContext.d.ts +36 -0
- package/dist/options/ClientContext.d.ts.map +1 -0
- package/dist/options/ClientContext.js +19 -0
- package/dist/options/ClientContext.js.map +1 -0
- package/dist/options/OptionMessages.d.ts +14 -0
- package/dist/options/OptionMessages.d.ts.map +1 -0
- package/dist/options/OptionMessages.js +33 -0
- package/dist/options/OptionMessages.js.map +1 -0
- package/dist/options/ServiceEndpoints.d.ts +10 -0
- package/dist/options/ServiceEndpoints.d.ts.map +1 -0
- package/dist/options/ServiceEndpoints.js +17 -0
- package/dist/options/ServiceEndpoints.js.map +1 -0
- package/dist/options/index.d.ts +6 -0
- package/dist/options/index.d.ts.map +1 -0
- package/dist/options/index.js +12 -0
- package/dist/options/index.js.map +1 -0
- package/dist/validators.d.ts +84 -0
- package/dist/validators.d.ts.map +1 -0
- package/dist/validators.js +149 -0
- package/dist/validators.js.map +1 -0
- package/package.json +40 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BasicLoggerOptions"), exports);
|
|
18
|
+
__exportStar(require("./LDLogger"), exports);
|
|
19
|
+
__exportStar(require("./LDLogLevel"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/logging/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,6CAA2B;AAC3B,+CAA6B"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
logger?: LDLogger;
|
|
13
|
+
/**
|
|
14
|
+
* True if the SDK was configured to be completely offline.
|
|
15
|
+
*/
|
|
16
|
+
offline: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* The configured SDK key.
|
|
19
|
+
*/
|
|
20
|
+
sdkKey: string;
|
|
21
|
+
/**
|
|
22
|
+
* Defines the base service URIs used by SDK components.
|
|
23
|
+
*/
|
|
24
|
+
serviceEndpoints: LDServiceEndpoints;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Factory methods receive this class as a parameter.
|
|
28
|
+
*
|
|
29
|
+
* Its public properties provide information about the SDK configuration and environment. The SDK
|
|
30
|
+
* may also include non-public properties that are relevant only when creating one of the built-in
|
|
31
|
+
* component types and are not accessible to custom components.
|
|
32
|
+
*/
|
|
33
|
+
export interface LDClientContext {
|
|
34
|
+
/**
|
|
35
|
+
* The SDK's basic global properties.
|
|
36
|
+
*/
|
|
37
|
+
basicConfiguration: LDBasicConfiguration;
|
|
38
|
+
/**
|
|
39
|
+
* Interfaces providing platform specific information and functionality.
|
|
40
|
+
*/
|
|
41
|
+
platform: Platform;
|
|
42
|
+
}
|
|
43
|
+
//# 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,MAAM,CAAC,EAAE,QAAQ,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,gBAAgB,EAAE,kBAAkB,CAAC;CACtC;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":"LDClientContext.js","sourceRoot":"","sources":["../../../src/api/options/LDClientContext.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/options/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/options/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface implemented by platform provided hasher.
|
|
3
|
+
*
|
|
4
|
+
* The hash implementation must support 'sha256' and 'sha1'.
|
|
5
|
+
*
|
|
6
|
+
* The has implementation must support digesting to 'hex' or 'base64'.
|
|
7
|
+
*/
|
|
8
|
+
export interface Hasher {
|
|
9
|
+
update(data: string): Hasher;
|
|
10
|
+
digest(encoding: string): string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Interface implemented by platform provided hmac.
|
|
14
|
+
*
|
|
15
|
+
* The hash implementation must support 'sha256'.
|
|
16
|
+
*
|
|
17
|
+
* The has implementation must support digesting to 'hex'.
|
|
18
|
+
*/
|
|
19
|
+
export interface Hmac extends Hasher {
|
|
20
|
+
update(data: string): Hasher;
|
|
21
|
+
digest(encoding: string): string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Interface provided by the platform for doing cryptographic operations.
|
|
25
|
+
*/
|
|
26
|
+
export interface Crypto {
|
|
27
|
+
createHash(algorithm: string): Hasher;
|
|
28
|
+
createHmac(algorithm: string, key: string): Hmac;
|
|
29
|
+
randomUUID(): string;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=Crypto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Crypto.d.ts","sourceRoot":"","sources":["../../../src/api/platform/Crypto.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,MAAM;IACrB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;CAClC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,IAAK,SAAQ,MAAM;IAClC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IACtC,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACjD,UAAU,IAAI,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Crypto.js","sourceRoot":"","sources":["../../../src/api/platform/Crypto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface EventSource {
|
|
2
|
+
onclose: (() => void) | undefined;
|
|
3
|
+
onerror: (() => void) | undefined;
|
|
4
|
+
onopen: (() => void) | undefined;
|
|
5
|
+
onretrying: ((e: {
|
|
6
|
+
delayMillis: number;
|
|
7
|
+
}) => void) | undefined;
|
|
8
|
+
addEventListener(type: string, listener: (event?: {
|
|
9
|
+
data?: any;
|
|
10
|
+
}) => void): void;
|
|
11
|
+
close(): void;
|
|
12
|
+
}
|
|
13
|
+
export interface EventSourceInitDict {
|
|
14
|
+
errorFilter: (err: {
|
|
15
|
+
status: number;
|
|
16
|
+
message: string;
|
|
17
|
+
}) => boolean;
|
|
18
|
+
headers: {
|
|
19
|
+
[key: string]: string | string[];
|
|
20
|
+
};
|
|
21
|
+
initialRetryDelayMillis: number;
|
|
22
|
+
readTimeoutMillis: number;
|
|
23
|
+
retryResetIntervalMillis: number;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=EventSource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventSource.d.ts","sourceRoot":"","sources":["../../../src/api/platform/EventSource.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IAClC,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IAClC,MAAM,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACjC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAE/D,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,GAAG,CAAA;KAAE,KAAK,IAAI,GAAG,IAAI,CAAC;IACjF,KAAK,IAAI,IAAI,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,CAAC,GAAG,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC;IACnE,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE,CAAC;IAC9C,uBAAuB,EAAE,MAAM,CAAC;IAChC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,wBAAwB,EAAE,MAAM,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventSource.js","sourceRoot":"","sources":["../../../src/api/platform/EventSource.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface WatchHandle {
|
|
2
|
+
/**
|
|
3
|
+
* Stop watching.
|
|
4
|
+
*/
|
|
5
|
+
close(): void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Interface for doing filesystem operations on the platform.
|
|
9
|
+
*/
|
|
10
|
+
export interface Filesystem {
|
|
11
|
+
/**
|
|
12
|
+
* The time, in ms since POSIX epoch, that the file was last modified.
|
|
13
|
+
* @param path The path to get a timestamp for.
|
|
14
|
+
*
|
|
15
|
+
* @returns A promise which will resolve to a timestamp if successful, or be
|
|
16
|
+
* rejected if the operation fails.
|
|
17
|
+
*/
|
|
18
|
+
getFileTimestamp(path: string): Promise<number>;
|
|
19
|
+
/**
|
|
20
|
+
* Read a file into a utf8 encoded string.
|
|
21
|
+
* @param path The path of the file to read.
|
|
22
|
+
*
|
|
23
|
+
* @returns A promise which will resolve to utf8 encoded file content, or be
|
|
24
|
+
* rejected if the operation fails.
|
|
25
|
+
*/
|
|
26
|
+
readFile(path: string): Promise<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Watch for changes to the specified path.
|
|
29
|
+
*
|
|
30
|
+
* The implementation of this methods should be non-persistent. Meaning that
|
|
31
|
+
* it should not keep the containing process running as long as it is
|
|
32
|
+
* executing. For node this means setting the persistent option to false.
|
|
33
|
+
*
|
|
34
|
+
* @param path The path to watch.
|
|
35
|
+
*
|
|
36
|
+
* @returns An async iterator that watches for changes to `path`.
|
|
37
|
+
*/
|
|
38
|
+
watch(path: string, callback: (eventType: string, filename: string) => void): WatchHandle;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=Filesystem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Filesystem.d.ts","sourceRoot":"","sources":["../../../src/api/platform/Filesystem.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;OAMG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEhD;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAExC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,GAAG,WAAW,CAAC;CAC3F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Filesystem.js","sourceRoot":"","sources":["../../../src/api/platform/Filesystem.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Information about the platform of the SDK and the environment it is executing.
|
|
3
|
+
*/
|
|
4
|
+
export interface PlatformData {
|
|
5
|
+
/**
|
|
6
|
+
* Information about the OS on which the SDK is running. Should be populated
|
|
7
|
+
* when available. Not all platforms will make this data accessible.
|
|
8
|
+
*/
|
|
9
|
+
os?: {
|
|
10
|
+
/**
|
|
11
|
+
* The architecture. Ideally at runtime, but may be build time if that is
|
|
12
|
+
* a constraint.
|
|
13
|
+
*/
|
|
14
|
+
arch?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The name of the OS. "MacOS", "Windows", or "Linux". If not one of those,
|
|
17
|
+
* then use the value provided by the OS.
|
|
18
|
+
*/
|
|
19
|
+
name?: string;
|
|
20
|
+
/** The version of the OS. */
|
|
21
|
+
version?: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The name of the platform the SDK is running on. For instance 'Node'.
|
|
25
|
+
*/
|
|
26
|
+
name?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Any additional attributes associated with the platform.
|
|
29
|
+
*/
|
|
30
|
+
additional?: Record<string, string>;
|
|
31
|
+
}
|
|
32
|
+
export interface SdkData {
|
|
33
|
+
/**
|
|
34
|
+
* The name of the SDK. e.g. "node-server-sdk"
|
|
35
|
+
*/
|
|
36
|
+
name?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The version of the SDK.
|
|
39
|
+
*/
|
|
40
|
+
version?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Name of the wrapper SDK if present.
|
|
43
|
+
*/
|
|
44
|
+
wrapperName?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Version of the wrapper if present.
|
|
47
|
+
*/
|
|
48
|
+
wrapperVersion?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Interface for getting information about the SDK or the environment it is
|
|
52
|
+
* executing in.
|
|
53
|
+
*/
|
|
54
|
+
export interface Info {
|
|
55
|
+
/**
|
|
56
|
+
* Get information about the platform.
|
|
57
|
+
*/
|
|
58
|
+
platformData(): PlatformData;
|
|
59
|
+
/**
|
|
60
|
+
* Get information about the SDK implementation.
|
|
61
|
+
*/
|
|
62
|
+
sdkData(): SdkData;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=Info.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Info.d.ts","sourceRoot":"","sources":["../../../src/api/platform/Info.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,EAAE,CAAC,EAAE;QACH;;;WAGG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QACd;;;WAGG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,6BAA6B;QAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IAEF;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,YAAY,IAAI,YAAY,CAAC;IAE7B;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Info.js","sourceRoot":"","sources":["../../../src/api/platform/Info.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Crypto } from './Crypto';
|
|
2
|
+
import { Filesystem } from './Filesystem';
|
|
3
|
+
import { Info } from './Info';
|
|
4
|
+
import { Requests } from './Requests';
|
|
5
|
+
export interface Platform {
|
|
6
|
+
/**
|
|
7
|
+
* The interface for getting information about the platform and the execution
|
|
8
|
+
* environment.
|
|
9
|
+
*/
|
|
10
|
+
info: Info;
|
|
11
|
+
/**
|
|
12
|
+
* The interface for performing file system operations. If the platform does
|
|
13
|
+
* not support filesystem access, then this may be undefined.
|
|
14
|
+
*/
|
|
15
|
+
fileSystem?: Filesystem;
|
|
16
|
+
/**
|
|
17
|
+
* The interface for performing cryptographic operations.
|
|
18
|
+
*/
|
|
19
|
+
crypto: Crypto;
|
|
20
|
+
/**
|
|
21
|
+
* The interface for performing http/https requests.
|
|
22
|
+
*/
|
|
23
|
+
requests: Requests;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=Platform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Platform.d.ts","sourceRoot":"","sources":["../../../src/api/platform/Platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,QAAQ;IACvB;;;OAGG;IACH,IAAI,EAAE,IAAI,CAAC;IAEX;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Platform.js","sourceRoot":"","sources":["../../../src/api/platform/Platform.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { EventSource, EventSourceInitDict } from './EventSource';
|
|
2
|
+
/**
|
|
3
|
+
* Interface for headers that are part of a fetch response.
|
|
4
|
+
*/
|
|
5
|
+
export interface Headers {
|
|
6
|
+
/**
|
|
7
|
+
* Get a header by name.
|
|
8
|
+
*
|
|
9
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Headers/get
|
|
10
|
+
*
|
|
11
|
+
* @param name The name of the header to get.
|
|
12
|
+
*/
|
|
13
|
+
get(name: string): string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Returns an iterator allowing iteration of all the keys contained
|
|
16
|
+
* in this object.
|
|
17
|
+
*
|
|
18
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Headers/keys
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
keys(): Iterable<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Returns an iterator allowing iteration of all the values contained
|
|
24
|
+
* in this object.
|
|
25
|
+
*
|
|
26
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Headers/values
|
|
27
|
+
*/
|
|
28
|
+
values(): Iterable<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Returns an iterator allowing iteration of all the key-value pairs in
|
|
31
|
+
* the object.
|
|
32
|
+
*
|
|
33
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Headers/entries
|
|
34
|
+
*/
|
|
35
|
+
entries(): Iterable<[string, string]>;
|
|
36
|
+
/**
|
|
37
|
+
* Returns true if the header is present.
|
|
38
|
+
* @param name The name of the header to check.
|
|
39
|
+
*/
|
|
40
|
+
has(name: string): boolean;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Interface for fetch responses.
|
|
44
|
+
*/
|
|
45
|
+
export interface Response {
|
|
46
|
+
headers: Headers;
|
|
47
|
+
status: number;
|
|
48
|
+
/**
|
|
49
|
+
* Read the response and provide it as a string.
|
|
50
|
+
*/
|
|
51
|
+
text(): Promise<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Read the response and provide it as decoded json.
|
|
54
|
+
*/
|
|
55
|
+
json(): Promise<any>;
|
|
56
|
+
}
|
|
57
|
+
export interface Options {
|
|
58
|
+
headers?: Record<string, string>;
|
|
59
|
+
method?: string;
|
|
60
|
+
body?: string;
|
|
61
|
+
timeout?: number;
|
|
62
|
+
}
|
|
63
|
+
export interface Requests {
|
|
64
|
+
fetch(url: string, options?: Options): Promise<Response>;
|
|
65
|
+
createEventSource(url: string, eventSourceInitDict: EventSourceInitDict): EventSource;
|
|
66
|
+
/**
|
|
67
|
+
* Returns true if a proxy is configured.
|
|
68
|
+
*/
|
|
69
|
+
usingProxy?(): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Returns true if the proxy uses authentication.
|
|
72
|
+
*/
|
|
73
|
+
usingProxyAuth?(): boolean;
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=Requests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Requests.d.ts","sourceRoot":"","sources":["../../../src/api/platform/Requests.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAOjE;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB;;;;;;OAMG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAEjC;;;;;;OAMG;IACH,IAAI,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEzB;;;;;OAKG;IACH,MAAM,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAC;IAE3B;;;;;OAKG;IACH,OAAO,IAAI,QAAQ,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAEtC;;;OAGG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAExB;;OAEG;IACH,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,OAAO;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAEzD,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,mBAAmB,EAAE,mBAAmB,GAAG,WAAW,CAAC;IAEtF;;OAEG;IACH,UAAU,CAAC,IAAI,OAAO,CAAC;IAEvB;;OAEG;IACH,cAAc,CAAC,IAAI,OAAO,CAAC;CAC5B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// The interfaces in this file are intended to be as close as possible to the
|
|
3
|
+
// interfaces used for the `fetch` Web API. Doing so should allow implementations
|
|
4
|
+
// which are more easily portable.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
//# sourceMappingURL=Requests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Requests.js","sourceRoot":"","sources":["../../../src/api/platform/Requests.ts"],"names":[],"mappings":";AAAA,6EAA6E;AAC7E,iFAAiF;AACjF,kCAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/platform/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Crypto"), exports);
|
|
18
|
+
__exportStar(require("./Filesystem"), exports);
|
|
19
|
+
__exportStar(require("./Info"), exports);
|
|
20
|
+
__exportStar(require("./Platform"), exports);
|
|
21
|
+
__exportStar(require("./Requests"), exports);
|
|
22
|
+
__exportStar(require("./EventSource"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/platform/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,+CAA6B;AAC7B,yCAAuB;AACvB,6CAA2B;AAC3B,6CAA2B;AAC3B,gDAA8B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import Context from '../../Context';
|
|
2
|
+
/**
|
|
3
|
+
* Interface for a strategy for removing duplicate contexts from the event stream.
|
|
4
|
+
* Client side event processors do not do this de-duplication, so the implementation
|
|
5
|
+
* is not part of the default event processor.
|
|
6
|
+
*/
|
|
7
|
+
export default interface LDContextDeduplicator {
|
|
8
|
+
/**
|
|
9
|
+
* The interval, if any, at which the event processor should call flush.
|
|
10
|
+
*/
|
|
11
|
+
readonly flushInterval?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Updates the internal state if necessary to reflect that we have seen the given context.
|
|
14
|
+
* Returns true if it is time to insert an index event for this context into the event output.
|
|
15
|
+
*
|
|
16
|
+
* Client implementations may always return true.
|
|
17
|
+
*/
|
|
18
|
+
processContext(context: Context): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Forgets any cached user information, so all subsequent contexts will be treated as new.
|
|
21
|
+
*/
|
|
22
|
+
flush(): void;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=LDContextDeduplicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDContextDeduplicator.d.ts","sourceRoot":"","sources":["../../../src/api/subsystem/LDContextDeduplicator.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,eAAe,CAAC;AAEpC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,qBAAqB;IAC5C;;OAEG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAEhC;;;;;OAKG;IACH,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;IAE1C;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDContextDeduplicator.js","sourceRoot":"","sources":["../../../src/api/subsystem/LDContextDeduplicator.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDEventProcessor.d.ts","sourceRoot":"","sources":["../../../src/api/subsystem/LDEventProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAE1D,MAAM,CAAC,OAAO,WAAW,gBAAgB;IACvC,KAAK,IAAI,IAAI,CAAC;IACd,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,SAAS,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDEventProcessor.js","sourceRoot":"","sources":["../../../src/api/subsystem/LDEventProcessor.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum LDEventType {
|
|
2
|
+
AnalyticsEvents = 0,
|
|
3
|
+
DiagnosticEvent = 1
|
|
4
|
+
}
|
|
5
|
+
export declare enum LDDeliveryStatus {
|
|
6
|
+
Succeeded = 0,
|
|
7
|
+
Failed = 1,
|
|
8
|
+
FailedAndMustShutDown = 2
|
|
9
|
+
}
|
|
10
|
+
export interface LDEventSenderResult {
|
|
11
|
+
status: LDDeliveryStatus;
|
|
12
|
+
serverTime?: number;
|
|
13
|
+
error?: any;
|
|
14
|
+
}
|
|
15
|
+
export default interface LDEventSender {
|
|
16
|
+
sendEventData(type: LDEventType, data: any): Promise<LDEventSenderResult>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=LDEventSender.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDEventSender.d.ts","sourceRoot":"","sources":["../../../src/api/subsystem/LDEventSender.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,eAAe,IAAA;IACf,eAAe,IAAA;CAChB;AAED,oBAAY,gBAAgB;IAC1B,SAAS,IAAA;IACT,MAAM,IAAA;IACN,qBAAqB,IAAA;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,gBAAgB,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAED,MAAM,CAAC,OAAO,WAAW,aAAa;IACpC,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAC3E"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LDDeliveryStatus = exports.LDEventType = void 0;
|
|
4
|
+
var LDEventType;
|
|
5
|
+
(function (LDEventType) {
|
|
6
|
+
LDEventType[LDEventType["AnalyticsEvents"] = 0] = "AnalyticsEvents";
|
|
7
|
+
LDEventType[LDEventType["DiagnosticEvent"] = 1] = "DiagnosticEvent";
|
|
8
|
+
})(LDEventType = exports.LDEventType || (exports.LDEventType = {}));
|
|
9
|
+
var LDDeliveryStatus;
|
|
10
|
+
(function (LDDeliveryStatus) {
|
|
11
|
+
LDDeliveryStatus[LDDeliveryStatus["Succeeded"] = 0] = "Succeeded";
|
|
12
|
+
LDDeliveryStatus[LDDeliveryStatus["Failed"] = 1] = "Failed";
|
|
13
|
+
LDDeliveryStatus[LDDeliveryStatus["FailedAndMustShutDown"] = 2] = "FailedAndMustShutDown";
|
|
14
|
+
})(LDDeliveryStatus = exports.LDDeliveryStatus || (exports.LDDeliveryStatus = {}));
|
|
15
|
+
//# sourceMappingURL=LDEventSender.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LDEventSender.js","sourceRoot":"","sources":["../../../src/api/subsystem/LDEventSender.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,mEAAe,CAAA;IACf,mEAAe,CAAA;AACjB,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,iEAAS,CAAA;IACT,2DAAM,CAAA;IACN,yFAAqB,CAAA;AACvB,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import LDEventProcessor from './LDEventProcessor';
|
|
2
|
+
import LDContextDeduplicator from './LDContextDeduplicator';
|
|
3
|
+
import LDEventSender, { LDDeliveryStatus, LDEventType, LDEventSenderResult } from './LDEventSender';
|
|
4
|
+
export { LDEventProcessor, LDContextDeduplicator, LDEventSender, LDDeliveryStatus, LDEventType, LDEventSenderResult, };
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/subsystem/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,aAAa,EAAE,EAAE,gBAAgB,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEpG,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,mBAAmB,GACpB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LDEventType = exports.LDDeliveryStatus = void 0;
|
|
4
|
+
const LDEventSender_1 = require("./LDEventSender");
|
|
5
|
+
Object.defineProperty(exports, "LDDeliveryStatus", { enumerable: true, get: function () { return LDEventSender_1.LDDeliveryStatus; } });
|
|
6
|
+
Object.defineProperty(exports, "LDEventType", { enumerable: true, get: function () { return LDEventSender_1.LDEventType; } });
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/subsystem/index.ts"],"names":[],"mappings":";;;AAEA,mDAAoG;AAMlG,iGANsB,gCAAgB,OAMtB;AAChB,4FAPwC,2BAAW,OAOxC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import AttributeReference from './AttributeReference';
|
|
2
|
+
import Context from './Context';
|
|
3
|
+
import ContextFilter from './ContextFilter';
|
|
4
|
+
export * from './api';
|
|
5
|
+
export * from './validators';
|
|
6
|
+
export * from './logging';
|
|
7
|
+
export * from './options';
|
|
8
|
+
export * as internal from './internal';
|
|
9
|
+
export { AttributeReference, Context, ContextFilter };
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAE1B,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC"}
|