@croct/sdk 0.17.12 → 0.18.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/activeRecord.cjs +1 -1
- package/activeRecord.d.cts +26 -0
- package/activeRecord.js +1 -1
- package/apiKey.d.cts +48 -0
- package/base64Url.d.cts +4 -0
- package/cache/cache.d.cts +17 -0
- package/cache/cookieCache.d.cts +22 -0
- package/cache/fallbackCache.d.cts +11 -0
- package/cache/inMemoryCache.d.cts +11 -0
- package/cache/index.cjs +5 -5
- package/cache/index.d.cts +4 -0
- package/cache/index.js +4 -4
- package/cache/localStorageCache.d.cts +19 -0
- package/channel/channel.cjs +1 -1
- package/channel/channel.d.cts +24 -0
- package/channel/channel.js +1 -1
- package/channel/encodedChannel.d.cts +12 -0
- package/channel/guaranteedChannel.cjs +2 -2
- package/channel/guaranteedChannel.d.cts +33 -0
- package/channel/guaranteedChannel.js +2 -2
- package/channel/httpBeaconChannel.cjs +5 -5
- package/channel/httpBeaconChannel.d.cts +26 -0
- package/channel/httpBeaconChannel.js +5 -5
- package/channel/index.cjs +8 -8
- package/channel/index.d.cts +12 -0
- package/channel/index.js +7 -7
- package/channel/queuedChannel.cjs +2 -2
- package/channel/queuedChannel.d.cts +21 -0
- package/channel/queuedChannel.js +2 -2
- package/channel/retryChannel.cjs +2 -2
- package/channel/retryChannel.d.cts +21 -0
- package/channel/retryChannel.js +2 -2
- package/channel/sandboxChannel.cjs +1 -1
- package/channel/sandboxChannel.d.cts +15 -0
- package/channel/sandboxChannel.js +1 -1
- package/cid/assigner.d.cts +5 -0
- package/cid/cachedAssigner.cjs +1 -1
- package/cid/cachedAssigner.d.cts +17 -0
- package/cid/cachedAssigner.js +1 -1
- package/cid/fixedAssigner.d.cts +9 -0
- package/cid/index.cjs +5 -5
- package/cid/index.d.cts +6 -0
- package/cid/index.js +4 -4
- package/cid/remoteAssigner.cjs +3 -3
- package/cid/remoteAssigner.d.cts +13 -0
- package/cid/remoteAssigner.js +3 -3
- package/constants.cjs +1 -1
- package/constants.d.cts +6 -0
- package/constants.d.ts +2 -2
- package/constants.js +1 -1
- package/container.cjs +18 -18
- package/container.d.cts +95 -0
- package/container.js +18 -18
- package/contentFetcher.cjs +4 -4
- package/contentFetcher.d.cts +69 -0
- package/contentFetcher.js +4 -4
- package/context.cjs +4 -4
- package/context.d.cts +36 -0
- package/context.js +4 -4
- package/error.d.cts +4 -0
- package/evaluator.cjs +5 -5
- package/evaluator.d.cts +86 -0
- package/evaluator.js +5 -5
- package/eventManager.d.cts +21 -0
- package/eventSubjectProcessor.d.cts +22 -0
- package/facade/contentFetcherFacade.cjs +2 -2
- package/facade/contentFetcherFacade.d.cts +36 -0
- package/facade/contentFetcherFacade.js +2 -2
- package/facade/evaluatorFacade.cjs +2 -2
- package/facade/evaluatorFacade.d.cts +41 -0
- package/facade/evaluatorFacade.js +2 -2
- package/facade/index.cjs +7 -9
- package/facade/index.d.cts +29 -0
- package/facade/index.js +7 -8
- package/facade/sdkFacade.cjs +10 -10
- package/facade/sdkFacade.d.cts +86 -0
- package/facade/sdkFacade.js +10 -10
- package/facade/sessionFacade.cjs +1 -1
- package/facade/sessionFacade.d.cts +22 -0
- package/facade/sessionFacade.js +1 -1
- package/facade/sessionPatch.cjs +1 -1
- package/facade/sessionPatch.d.cts +21 -0
- package/facade/sessionPatch.js +1 -1
- package/facade/trackerFacade.cjs +2 -2
- package/facade/trackerFacade.d.cts +25 -0
- package/facade/trackerFacade.js +2 -2
- package/facade/userFacade.cjs +1 -1
- package/facade/userFacade.d.cts +28 -0
- package/facade/userFacade.js +1 -1
- package/facade/userPatch.cjs +1 -1
- package/facade/userPatch.d.cts +21 -0
- package/facade/userPatch.js +1 -1
- package/help.d.cts +5 -0
- package/index.cjs +2 -4
- package/index.d.cts +25 -0
- package/index.js +2 -3
- package/logging/consoleLogger.d.cts +13 -0
- package/logging/filteredLogger.d.cts +22 -0
- package/logging/index.cjs +6 -6
- package/logging/index.d.cts +5 -0
- package/logging/index.js +5 -5
- package/logging/logger.d.cts +11 -0
- package/logging/namespacedLogger.d.cts +14 -0
- package/logging/nullLogger.d.cts +10 -0
- package/namespacedStorage.d.cts +16 -0
- package/package.json +4 -1
- package/patch.d.cts +46 -0
- package/queue/capacityRestrictedQueue.d.cts +16 -0
- package/queue/inMemoryQueue.d.cts +15 -0
- package/queue/index.cjs +6 -6
- package/queue/index.d.cts +6 -0
- package/queue/index.js +5 -5
- package/queue/monitoredQueue.cjs +1 -1
- package/queue/monitoredQueue.d.cts +28 -0
- package/queue/monitoredQueue.js +1 -1
- package/queue/persistentQueue.d.cts +18 -0
- package/queue/queue.d.cts +11 -0
- package/retry/arbitraryPolicy.d.cts +10 -0
- package/retry/backoffPolicy.d.cts +26 -0
- package/retry/index.cjs +6 -6
- package/retry/index.d.cts +5 -0
- package/retry/index.js +5 -5
- package/retry/maxAttemptsPolicy.d.cts +11 -0
- package/retry/neverPolicy.d.cts +8 -0
- package/retry/policy.d.cts +6 -0
- package/schema/attributeSchema.cjs +1 -1
- package/schema/attributeSchema.d.cts +6 -0
- package/schema/attributeSchema.js +1 -1
- package/schema/contentFetcherSchemas.cjs +1 -1
- package/schema/contentFetcherSchemas.d.cts +6 -0
- package/schema/contentFetcherSchemas.js +1 -1
- package/schema/contentSchemas.cjs +1 -1
- package/schema/contentSchemas.d.cts +6 -0
- package/schema/contentSchemas.js +1 -1
- package/schema/contextSchemas.cjs +1 -1
- package/schema/contextSchemas.d.cts +6 -0
- package/schema/contextSchemas.js +1 -1
- package/schema/ecommerceSchemas.cjs +1 -1
- package/schema/ecommerceSchemas.d.cts +10 -0
- package/schema/ecommerceSchemas.js +1 -1
- package/schema/evaluatorSchemas.cjs +1 -1
- package/schema/evaluatorSchemas.d.cts +6 -0
- package/schema/evaluatorSchemas.js +1 -1
- package/schema/eventSchemas.cjs +4 -4
- package/schema/eventSchemas.d.cts +16 -0
- package/schema/eventSchemas.js +4 -4
- package/schema/index.cjs +22 -22
- package/schema/index.d.cts +14 -0
- package/schema/index.js +11 -11
- package/schema/loggerSchema.cjs +1 -1
- package/schema/loggerSchema.d.cts +6 -0
- package/schema/loggerSchema.js +1 -1
- package/schema/operationSchemas.cjs +2 -2
- package/schema/operationSchemas.d.cts +14 -0
- package/schema/operationSchemas.js +2 -2
- package/schema/sdkFacadeSchemas.cjs +4 -4
- package/schema/sdkFacadeSchemas.d.cts +6 -0
- package/schema/sdkFacadeSchemas.js +4 -4
- package/schema/sdkSchemas.cjs +3 -3
- package/schema/sdkSchemas.d.cts +8 -0
- package/schema/sdkSchemas.js +3 -3
- package/schema/tokenSchema.cjs +1 -1
- package/schema/tokenSchema.d.cts +6 -0
- package/schema/tokenSchema.js +1 -1
- package/schema/userSchema.cjs +2 -2
- package/schema/userSchema.d.cts +6 -0
- package/schema/userSchema.js +2 -2
- package/sdk.cjs +4 -4
- package/sdk.d.cts +69 -0
- package/sdk.js +4 -4
- package/sdkEvents.d.cts +15 -0
- package/sourceLocation.d.cts +14 -0
- package/tab.cjs +1 -1
- package/tab.d.cts +40 -0
- package/tab.js +1 -1
- package/token/cachedTokenStore.cjs +1 -1
- package/token/cachedTokenStore.d.cts +13 -0
- package/token/cachedTokenStore.js +1 -1
- package/token/inMemoryTokenStore.d.cts +11 -0
- package/token/index.cjs +5 -5
- package/token/index.d.cts +7 -0
- package/token/index.js +4 -4
- package/token/replicatedTokenStore.d.cts +13 -0
- package/token/token.cjs +3 -3
- package/token/token.d.cts +70 -0
- package/token/token.js +3 -3
- package/tracker.cjs +3 -3
- package/tracker.d.cts +82 -0
- package/tracker.js +3 -3
- package/trackingEvents.d.cts +309 -0
- package/transformer.d.cts +6 -0
- package/utilityTypes.d.cts +4 -0
- package/uuid.d.cts +3 -0
- package/validation/arrayType.cjs +2 -2
- package/validation/arrayType.d.cts +16 -0
- package/validation/arrayType.js +2 -2
- package/validation/booleanType.cjs +2 -2
- package/validation/booleanType.d.cts +9 -0
- package/validation/booleanType.js +2 -2
- package/validation/functionType.cjs +2 -2
- package/validation/functionType.d.cts +9 -0
- package/validation/functionType.js +2 -2
- package/validation/index.cjs +14 -14
- package/validation/index.d.cts +12 -0
- package/validation/index.js +12 -12
- package/validation/jsonType.cjs +2 -2
- package/validation/jsonType.d.cts +35 -0
- package/validation/jsonType.js +2 -2
- package/validation/mixedSchema.d.cts +7 -0
- package/validation/nullType.cjs +2 -2
- package/validation/nullType.d.cts +9 -0
- package/validation/nullType.js +2 -2
- package/validation/numberType.cjs +2 -2
- package/validation/numberType.d.cts +16 -0
- package/validation/numberType.js +2 -2
- package/validation/objectType.cjs +3 -3
- package/validation/objectType.d.cts +30 -0
- package/validation/objectType.js +3 -3
- package/validation/schema.d.cts +18 -0
- package/validation/stringType.cjs +2 -2
- package/validation/stringType.d.cts +24 -0
- package/validation/stringType.js +2 -2
- package/validation/unionType.cjs +2 -2
- package/validation/unionType.d.cts +11 -0
- package/validation/unionType.js +2 -2
- package/validation/violation.d.cts +4 -0
package/cid/index.cjs
CHANGED
|
@@ -23,14 +23,14 @@ __export(cid_exports, {
|
|
|
23
23
|
RemoteAssigner: () => import_remoteAssigner.RemoteAssigner
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(cid_exports);
|
|
26
|
-
__reExport(cid_exports, require(
|
|
27
|
-
var import_cachedAssigner = require(
|
|
28
|
-
var import_fixedAssigner = require(
|
|
29
|
-
var import_remoteAssigner = require(
|
|
26
|
+
__reExport(cid_exports, require('./assigner.cjs'), module.exports);
|
|
27
|
+
var import_cachedAssigner = require('./cachedAssigner.cjs');
|
|
28
|
+
var import_fixedAssigner = require('./fixedAssigner.cjs');
|
|
29
|
+
var import_remoteAssigner = require('./remoteAssigner.cjs');
|
|
30
30
|
// Annotate the CommonJS export names for ESM import in node:
|
|
31
31
|
0 && (module.exports = {
|
|
32
32
|
CachedAssigner,
|
|
33
33
|
FixedAssigner,
|
|
34
34
|
RemoteAssigner,
|
|
35
|
-
...require(
|
|
35
|
+
...require('./assigner.cjs')
|
|
36
36
|
});
|
package/cid/index.d.cts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { CidAssigner } from './assigner.cjs';
|
|
2
|
+
export { CachedAssigner } from './cachedAssigner.cjs';
|
|
3
|
+
export { FixedAssigner } from './fixedAssigner.cjs';
|
|
4
|
+
export { RemoteAssigner } from './remoteAssigner.cjs';
|
|
5
|
+
import '../logging/logger.cjs';
|
|
6
|
+
import '../cache/cache.cjs';
|
package/cid/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./assigner";
|
|
2
|
-
import { CachedAssigner } from "./cachedAssigner";
|
|
3
|
-
import { FixedAssigner } from "./fixedAssigner";
|
|
4
|
-
import { RemoteAssigner } from "./remoteAssigner";
|
|
1
|
+
export * from "./assigner.js";
|
|
2
|
+
import { CachedAssigner } from "./cachedAssigner.js";
|
|
3
|
+
import { FixedAssigner } from "./fixedAssigner.js";
|
|
4
|
+
import { RemoteAssigner } from "./remoteAssigner.js";
|
|
5
5
|
export {
|
|
6
6
|
CachedAssigner,
|
|
7
7
|
FixedAssigner,
|
package/cid/remoteAssigner.cjs
CHANGED
|
@@ -20,9 +20,9 @@ __export(remoteAssigner_exports, {
|
|
|
20
20
|
RemoteAssigner: () => RemoteAssigner
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(remoteAssigner_exports);
|
|
23
|
-
var import_logging = require(
|
|
24
|
-
var import_error = require(
|
|
25
|
-
var import_constants = require(
|
|
23
|
+
var import_logging = require('../logging/index.cjs');
|
|
24
|
+
var import_error = require('../error.cjs');
|
|
25
|
+
var import_constants = require('../constants.cjs');
|
|
26
26
|
class RemoteAssigner {
|
|
27
27
|
constructor(endpoint, logger) {
|
|
28
28
|
this.endpoint = endpoint;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Logger } from '../logging/logger.cjs';
|
|
2
|
+
import { CidAssigner } from './assigner.cjs';
|
|
3
|
+
|
|
4
|
+
declare class RemoteAssigner implements CidAssigner {
|
|
5
|
+
private readonly logger;
|
|
6
|
+
private readonly endpoint;
|
|
7
|
+
private pending?;
|
|
8
|
+
constructor(endpoint: string, logger?: Logger);
|
|
9
|
+
assignCid(currentCid?: string): Promise<string>;
|
|
10
|
+
private fetchCid;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { RemoteAssigner };
|
package/cid/remoteAssigner.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NullLogger } from "../logging";
|
|
2
|
-
import { formatCause } from "../error";
|
|
3
|
-
import { CLIENT_LIBRARY } from "../constants";
|
|
1
|
+
import { NullLogger } from "../logging/index.js";
|
|
2
|
+
import { formatCause } from "../error.js";
|
|
3
|
+
import { CLIENT_LIBRARY } from "../constants.js";
|
|
4
4
|
class RemoteAssigner {
|
|
5
5
|
constructor(endpoint, logger) {
|
|
6
6
|
this.endpoint = endpoint;
|
package/constants.cjs
CHANGED
|
@@ -25,7 +25,7 @@ __export(constants_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(constants_exports);
|
|
26
26
|
const BASE_ENDPOINT_URL = "https://api.croct.io";
|
|
27
27
|
const MAX_QUERY_LENGTH = parseInt("<@maxQueryLength@>", 10);
|
|
28
|
-
const VERSION = "0.
|
|
28
|
+
const VERSION = "0.18.0";
|
|
29
29
|
const CLIENT_LIBRARY = `Croct SDK JS v${VERSION}`;
|
|
30
30
|
// Annotate the CommonJS export names for ESM import in node:
|
|
31
31
|
0 && (module.exports = {
|
package/constants.d.cts
ADDED
package/constants.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const BASE_ENDPOINT_URL = "https://api.croct.io";
|
|
2
2
|
declare const MAX_QUERY_LENGTH: number;
|
|
3
|
-
declare const VERSION = "0.
|
|
4
|
-
declare const CLIENT_LIBRARY = "Croct SDK JS v0.
|
|
3
|
+
declare const VERSION = "0.18.0";
|
|
4
|
+
declare const CLIENT_LIBRARY = "Croct SDK JS v0.18.0";
|
|
5
5
|
|
|
6
6
|
export { BASE_ENDPOINT_URL, CLIENT_LIBRARY, MAX_QUERY_LENGTH, VERSION };
|
package/constants.js
CHANGED
package/container.cjs
CHANGED
|
@@ -20,24 +20,24 @@ __export(container_exports, {
|
|
|
20
20
|
Container: () => Container
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(container_exports);
|
|
23
|
-
var import_logging = require(
|
|
24
|
-
var import_context = require(
|
|
25
|
-
var import_namespacedStorage = require(
|
|
26
|
-
var import_retry = require(
|
|
27
|
-
var import_queue = require(
|
|
28
|
-
var import_token = require(
|
|
29
|
-
var import_tracker = require(
|
|
30
|
-
var import_evaluator = require(
|
|
31
|
-
var import_transformer = require(
|
|
32
|
-
var import_cid = require(
|
|
33
|
-
var import_eventManager = require(
|
|
34
|
-
var import_cache = require(
|
|
35
|
-
var import_guaranteedChannel = require(
|
|
36
|
-
var import_channel = require(
|
|
37
|
-
var import_contentFetcher = require(
|
|
38
|
-
var import_cookieCache = require(
|
|
39
|
-
var import_filteredLogger = require(
|
|
40
|
-
var import_httpBeaconChannel = require(
|
|
23
|
+
var import_logging = require('./logging/index.cjs');
|
|
24
|
+
var import_context = require('./context.cjs');
|
|
25
|
+
var import_namespacedStorage = require('./namespacedStorage.cjs');
|
|
26
|
+
var import_retry = require('./retry/index.cjs');
|
|
27
|
+
var import_queue = require('./queue/index.cjs');
|
|
28
|
+
var import_token = require('./token/index.cjs');
|
|
29
|
+
var import_tracker = require('./tracker.cjs');
|
|
30
|
+
var import_evaluator = require('./evaluator.cjs');
|
|
31
|
+
var import_transformer = require('./transformer.cjs');
|
|
32
|
+
var import_cid = require('./cid/index.cjs');
|
|
33
|
+
var import_eventManager = require('./eventManager.cjs');
|
|
34
|
+
var import_cache = require('./cache/index.cjs');
|
|
35
|
+
var import_guaranteedChannel = require('./channel/guaranteedChannel.cjs');
|
|
36
|
+
var import_channel = require('./channel/index.cjs');
|
|
37
|
+
var import_contentFetcher = require('./contentFetcher.cjs');
|
|
38
|
+
var import_cookieCache = require('./cache/cookieCache.cjs');
|
|
39
|
+
var import_filteredLogger = require('./logging/filteredLogger.cjs');
|
|
40
|
+
var import_httpBeaconChannel = require('./channel/httpBeaconChannel.cjs');
|
|
41
41
|
const _Container = class _Container {
|
|
42
42
|
constructor(configuration) {
|
|
43
43
|
this.eventManager = new import_eventManager.SynchronousEventManager();
|
package/container.d.cts
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Logger } from './logging/logger.cjs';
|
|
2
|
+
import { TokenScope, Context } from './context.cjs';
|
|
3
|
+
import { MonitoredQueue } from './queue/monitoredQueue.cjs';
|
|
4
|
+
import { TokenStore } from './token/token.cjs';
|
|
5
|
+
import { TrackingEventProcessor, Tracker } from './tracker.cjs';
|
|
6
|
+
import { Evaluator } from './evaluator.cjs';
|
|
7
|
+
import { CidAssigner } from './cid/assigner.cjs';
|
|
8
|
+
import { EventManager } from './eventManager.cjs';
|
|
9
|
+
import { SdkEventMap } from './sdkEvents.cjs';
|
|
10
|
+
import { UrlSanitizer } from './tab.cjs';
|
|
11
|
+
import { ContentFetcher } from './contentFetcher.cjs';
|
|
12
|
+
import { CookieCacheConfiguration } from './cache/cookieCache.cjs';
|
|
13
|
+
import './cache/cache.cjs';
|
|
14
|
+
import './queue/queue.cjs';
|
|
15
|
+
import '@croct/json';
|
|
16
|
+
import './apiKey.cjs';
|
|
17
|
+
import './channel/channel.cjs';
|
|
18
|
+
import './retry/policy.cjs';
|
|
19
|
+
import './trackingEvents.cjs';
|
|
20
|
+
import './patch.cjs';
|
|
21
|
+
import './utilityTypes.cjs';
|
|
22
|
+
import './sourceLocation.cjs';
|
|
23
|
+
|
|
24
|
+
type DependencyResolver<T> = (container: Container) => T;
|
|
25
|
+
type Configuration = {
|
|
26
|
+
appId: string;
|
|
27
|
+
tokenScope: TokenScope;
|
|
28
|
+
clientId?: string;
|
|
29
|
+
debug: boolean;
|
|
30
|
+
test: boolean;
|
|
31
|
+
disableCidMirroring: boolean;
|
|
32
|
+
cidAssignerEndpointUrl: string;
|
|
33
|
+
trackerEndpointUrl: string;
|
|
34
|
+
evaluationBaseEndpointUrl: string;
|
|
35
|
+
contentBaseEndpointUrl: string;
|
|
36
|
+
beaconQueueSize: number;
|
|
37
|
+
logger?: Logger;
|
|
38
|
+
urlSanitizer?: UrlSanitizer;
|
|
39
|
+
cookie?: {
|
|
40
|
+
clientId?: CookieCacheConfiguration;
|
|
41
|
+
userToken?: CookieCacheConfiguration;
|
|
42
|
+
previewToken?: CookieCacheConfiguration;
|
|
43
|
+
};
|
|
44
|
+
eventMetadata?: {
|
|
45
|
+
[key: string]: string;
|
|
46
|
+
};
|
|
47
|
+
eventProcessor?: DependencyResolver<TrackingEventProcessor>;
|
|
48
|
+
defaultFetchTimeout?: number;
|
|
49
|
+
defaultPreferredLocale?: string;
|
|
50
|
+
};
|
|
51
|
+
declare class Container {
|
|
52
|
+
static readonly DEFAULT_FETCH_TIMEOUT = 5000;
|
|
53
|
+
private readonly configuration;
|
|
54
|
+
private context?;
|
|
55
|
+
private userTokenProvider?;
|
|
56
|
+
private previewTokenStore?;
|
|
57
|
+
private tracker?;
|
|
58
|
+
private evaluator?;
|
|
59
|
+
private contentFetcher?;
|
|
60
|
+
private cidAssigner?;
|
|
61
|
+
private beaconChannel?;
|
|
62
|
+
private beaconQueue?;
|
|
63
|
+
private removeTokenSyncListener?;
|
|
64
|
+
private readonly eventManager;
|
|
65
|
+
constructor(configuration: Configuration);
|
|
66
|
+
getConfiguration(): Configuration;
|
|
67
|
+
getEvaluator(): Evaluator;
|
|
68
|
+
private createEvaluator;
|
|
69
|
+
getContentFetcher(): ContentFetcher;
|
|
70
|
+
private createContentFetcher;
|
|
71
|
+
getPreviewTokenStore(): TokenStore;
|
|
72
|
+
getTracker(): Tracker;
|
|
73
|
+
private createTracker;
|
|
74
|
+
getUserTokenStore(): TokenStore;
|
|
75
|
+
getContext(): Context;
|
|
76
|
+
private createContext;
|
|
77
|
+
private getBeaconChannel;
|
|
78
|
+
private createBeaconChannel;
|
|
79
|
+
getCidAssigner(): CidAssigner;
|
|
80
|
+
private createCidAssigner;
|
|
81
|
+
getBeaconQueue(): MonitoredQueue<string>;
|
|
82
|
+
private createBeaconQueue;
|
|
83
|
+
getLogger(...namespace: string[]): Logger;
|
|
84
|
+
getTabStorage(namespace: string, ...subnamespace: string[]): Storage;
|
|
85
|
+
getBrowserStorage(namespace: string, ...subnamespace: string[]): Storage;
|
|
86
|
+
private getGlobalTabStorage;
|
|
87
|
+
private getGlobalBrowserStorage;
|
|
88
|
+
private resolveStorageNamespace;
|
|
89
|
+
private getLocalStorage;
|
|
90
|
+
private getSessionStorage;
|
|
91
|
+
getEventManager(): EventManager<SdkEventMap>;
|
|
92
|
+
dispose(): Promise<void>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { type Configuration, Container, type DependencyResolver };
|
package/container.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { ConsoleLogger, NamespacedLogger } from "./logging";
|
|
2
|
-
import { Context } from "./context";
|
|
3
|
-
import { NamespacedStorage } from "./namespacedStorage";
|
|
4
|
-
import { BackoffPolicy, ArbitraryPolicy } from "./retry";
|
|
5
|
-
import { PersistentQueue, MonitoredQueue, CapacityRestrictedQueue } from "./queue";
|
|
6
|
-
import { CachedTokenStore } from "./token";
|
|
7
|
-
import { Tracker } from "./tracker";
|
|
8
|
-
import { Evaluator } from "./evaluator";
|
|
9
|
-
import { encodeJson } from "./transformer";
|
|
10
|
-
import { CachedAssigner, RemoteAssigner, FixedAssigner } from "./cid";
|
|
11
|
-
import { SynchronousEventManager } from "./eventManager";
|
|
12
|
-
import { LocalStorageCache } from "./cache";
|
|
13
|
-
import { TimeStamper } from "./channel/guaranteedChannel";
|
|
1
|
+
import { ConsoleLogger, NamespacedLogger } from "./logging/index.js";
|
|
2
|
+
import { Context } from "./context.js";
|
|
3
|
+
import { NamespacedStorage } from "./namespacedStorage.js";
|
|
4
|
+
import { BackoffPolicy, ArbitraryPolicy } from "./retry/index.js";
|
|
5
|
+
import { PersistentQueue, MonitoredQueue, CapacityRestrictedQueue } from "./queue/index.js";
|
|
6
|
+
import { CachedTokenStore } from "./token/index.js";
|
|
7
|
+
import { Tracker } from "./tracker.js";
|
|
8
|
+
import { Evaluator } from "./evaluator.js";
|
|
9
|
+
import { encodeJson } from "./transformer.js";
|
|
10
|
+
import { CachedAssigner, RemoteAssigner, FixedAssigner } from "./cid/index.js";
|
|
11
|
+
import { SynchronousEventManager } from "./eventManager.js";
|
|
12
|
+
import { LocalStorageCache } from "./cache/index.js";
|
|
13
|
+
import { TimeStamper } from "./channel/guaranteedChannel.js";
|
|
14
14
|
import {
|
|
15
15
|
QueuedChannel,
|
|
16
16
|
RetryChannel,
|
|
17
17
|
GuaranteedChannel,
|
|
18
18
|
EncodedChannel,
|
|
19
19
|
SandboxChannel
|
|
20
|
-
} from "./channel";
|
|
21
|
-
import { ContentFetcher } from "./contentFetcher";
|
|
22
|
-
import { CookieCache } from "./cache/cookieCache";
|
|
23
|
-
import { FilteredLogger } from "./logging/filteredLogger";
|
|
24
|
-
import { HttpBeaconChannel } from "./channel/httpBeaconChannel";
|
|
20
|
+
} from "./channel/index.js";
|
|
21
|
+
import { ContentFetcher } from "./contentFetcher.js";
|
|
22
|
+
import { CookieCache } from "./cache/cookieCache.js";
|
|
23
|
+
import { FilteredLogger } from "./logging/filteredLogger.js";
|
|
24
|
+
import { HttpBeaconChannel } from "./channel/httpBeaconChannel.js";
|
|
25
25
|
const _Container = class _Container {
|
|
26
26
|
constructor(configuration) {
|
|
27
27
|
this.eventManager = new SynchronousEventManager();
|
package/contentFetcher.cjs
CHANGED
|
@@ -22,10 +22,10 @@ __export(contentFetcher_exports, {
|
|
|
22
22
|
ContentFetcher: () => ContentFetcher
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(contentFetcher_exports);
|
|
25
|
-
var import_constants = require(
|
|
26
|
-
var import_error = require(
|
|
27
|
-
var import_logging = require(
|
|
28
|
-
var import_help = require(
|
|
25
|
+
var import_constants = require('./constants.cjs');
|
|
26
|
+
var import_error = require('./error.cjs');
|
|
27
|
+
var import_logging = require('./logging/index.cjs');
|
|
28
|
+
var import_help = require('./help.cjs');
|
|
29
29
|
var ContentErrorType = /* @__PURE__ */ ((ContentErrorType2) => {
|
|
30
30
|
ContentErrorType2["TIMEOUT"] = "https://croct.help/api/content#timeout";
|
|
31
31
|
ContentErrorType2["UNEXPECTED_ERROR"] = "https://croct.help/api/content#unexpected-error";
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { JsonObject } from '@croct/json';
|
|
2
|
+
import { EvaluationContext } from './evaluator.cjs';
|
|
3
|
+
import { Token } from './token/token.cjs';
|
|
4
|
+
import { Logger } from './logging/logger.cjs';
|
|
5
|
+
import { ApiKey } from './apiKey.cjs';
|
|
6
|
+
import './sourceLocation.cjs';
|
|
7
|
+
|
|
8
|
+
type ErrorResponse = {
|
|
9
|
+
type: string;
|
|
10
|
+
title: string;
|
|
11
|
+
status: number;
|
|
12
|
+
detail?: string;
|
|
13
|
+
};
|
|
14
|
+
declare enum ContentErrorType {
|
|
15
|
+
TIMEOUT = "https://croct.help/api/content#timeout",
|
|
16
|
+
UNEXPECTED_ERROR = "https://croct.help/api/content#unexpected-error"
|
|
17
|
+
}
|
|
18
|
+
declare class ContentError<T extends ErrorResponse = ErrorResponse> extends Error {
|
|
19
|
+
readonly response: T;
|
|
20
|
+
constructor(response: T);
|
|
21
|
+
}
|
|
22
|
+
type BasicOptions = {
|
|
23
|
+
version?: `${number}` | number;
|
|
24
|
+
preferredLocale?: string;
|
|
25
|
+
timeout?: number;
|
|
26
|
+
extra?: ExtraFetchOptions;
|
|
27
|
+
};
|
|
28
|
+
type StaticContentOptions = BasicOptions & {
|
|
29
|
+
static: true;
|
|
30
|
+
};
|
|
31
|
+
type DynamicContentOptions = BasicOptions & {
|
|
32
|
+
static?: false;
|
|
33
|
+
clientId?: string;
|
|
34
|
+
clientIp?: string;
|
|
35
|
+
clientAgent?: string;
|
|
36
|
+
userToken?: Token | string;
|
|
37
|
+
previewToken?: Token | string;
|
|
38
|
+
context?: EvaluationContext;
|
|
39
|
+
};
|
|
40
|
+
type AllowedFetchOptions = Exclude<keyof RequestInit, 'method' | 'body' | 'headers' | 'signal'>;
|
|
41
|
+
type ExtraFetchOptions<T extends keyof RequestInit = AllowedFetchOptions> = Pick<RequestInit, T> & {
|
|
42
|
+
[key in Exclude<keyof RequestInit, T>]?: never;
|
|
43
|
+
} & Record<string, any>;
|
|
44
|
+
type FetchOptions = StaticContentOptions | DynamicContentOptions;
|
|
45
|
+
type FetchResponse<P extends JsonObject = JsonObject> = {
|
|
46
|
+
content: P;
|
|
47
|
+
};
|
|
48
|
+
type Configuration = {
|
|
49
|
+
appId?: string;
|
|
50
|
+
apiKey?: string | ApiKey;
|
|
51
|
+
baseEndpointUrl?: string;
|
|
52
|
+
logger?: Logger;
|
|
53
|
+
defaultTimeout?: number;
|
|
54
|
+
defaultPreferredLocale?: string;
|
|
55
|
+
};
|
|
56
|
+
declare class ContentFetcher {
|
|
57
|
+
private readonly configuration;
|
|
58
|
+
private readonly dynamicEndpoint;
|
|
59
|
+
private readonly staticEndpoint;
|
|
60
|
+
private readonly logger;
|
|
61
|
+
constructor(configuration: Configuration);
|
|
62
|
+
fetch<P extends JsonObject>(slotId: string, options?: FetchOptions): Promise<FetchResponse<P>>;
|
|
63
|
+
private load;
|
|
64
|
+
private logHelp;
|
|
65
|
+
private static isDynamicContent;
|
|
66
|
+
toJSON(): never;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export { type Configuration, ContentError, ContentErrorType, ContentFetcher, type DynamicContentOptions, type ErrorResponse, type FetchOptions, type FetchResponse, type StaticContentOptions };
|
package/contentFetcher.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BASE_ENDPOINT_URL, CLIENT_LIBRARY } from "./constants";
|
|
2
|
-
import { formatMessage } from "./error";
|
|
3
|
-
import { NullLogger } from "./logging";
|
|
4
|
-
import { Help } from "./help";
|
|
1
|
+
import { BASE_ENDPOINT_URL, CLIENT_LIBRARY } from "./constants.js";
|
|
2
|
+
import { formatMessage } from "./error.js";
|
|
3
|
+
import { NullLogger } from "./logging/index.js";
|
|
4
|
+
import { Help } from "./help.js";
|
|
5
5
|
var ContentErrorType = /* @__PURE__ */ ((ContentErrorType2) => {
|
|
6
6
|
ContentErrorType2["TIMEOUT"] = "https://croct.help/api/content#timeout";
|
|
7
7
|
ContentErrorType2["UNEXPECTED_ERROR"] = "https://croct.help/api/content#unexpected-error";
|
package/context.cjs
CHANGED
|
@@ -20,10 +20,10 @@ __export(context_exports, {
|
|
|
20
20
|
Context: () => Context
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(context_exports);
|
|
23
|
-
var import_token = require(
|
|
24
|
-
var import_tab = require(
|
|
25
|
-
var import_uuid = require(
|
|
26
|
-
var import_cache = require(
|
|
23
|
+
var import_token = require('./token/index.cjs');
|
|
24
|
+
var import_tab = require('./tab.cjs');
|
|
25
|
+
var import_uuid = require('./uuid.cjs');
|
|
26
|
+
var import_cache = require('./cache/index.cjs');
|
|
27
27
|
function tokenEquals(left, right) {
|
|
28
28
|
return left === right || left !== null && right !== null && left.toString() === right.toString();
|
|
29
29
|
}
|
package/context.d.cts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Token } from './token/token.cjs';
|
|
2
|
+
import { Cache } from './cache/cache.cjs';
|
|
3
|
+
import { UrlSanitizer, Tab } from './tab.cjs';
|
|
4
|
+
import { EventDispatcher } from './eventManager.cjs';
|
|
5
|
+
import { SdkEventMap } from './sdkEvents.cjs';
|
|
6
|
+
import '@croct/json';
|
|
7
|
+
import './apiKey.cjs';
|
|
8
|
+
|
|
9
|
+
type TokenScope = 'isolated' | 'global' | 'contextual';
|
|
10
|
+
type Configuration = {
|
|
11
|
+
tokenScope: TokenScope;
|
|
12
|
+
urlSanitizer?: UrlSanitizer;
|
|
13
|
+
eventDispatcher: ContextEventDispatcher;
|
|
14
|
+
cache: {
|
|
15
|
+
tabId: Cache;
|
|
16
|
+
tabToken: Cache;
|
|
17
|
+
browserToken: Cache;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
type ContextEventDispatcher = EventDispatcher<Pick<SdkEventMap, 'tokenChanged'>>;
|
|
21
|
+
declare class Context {
|
|
22
|
+
private readonly tab;
|
|
23
|
+
private readonly tokenStore;
|
|
24
|
+
private readonly eventDispatcher;
|
|
25
|
+
private lastToken;
|
|
26
|
+
private constructor();
|
|
27
|
+
static load({ cache, tokenScope, eventDispatcher, urlSanitizer }: Configuration): Context;
|
|
28
|
+
getTab(): Tab;
|
|
29
|
+
isAnonymous(): boolean;
|
|
30
|
+
getUser(): string | null;
|
|
31
|
+
getToken(): Token | null;
|
|
32
|
+
setToken(token: Token | null): void;
|
|
33
|
+
private syncToken;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { type Configuration, Context, type TokenScope };
|
package/context.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CachedTokenStore, ReplicatedTokenStore, InMemoryTokenStore } from "./token";
|
|
2
|
-
import { Tab } from "./tab";
|
|
3
|
-
import { uuid4 } from "./uuid";
|
|
4
|
-
import { ObservableCache } from "./cache";
|
|
1
|
+
import { CachedTokenStore, ReplicatedTokenStore, InMemoryTokenStore } from "./token/index.js";
|
|
2
|
+
import { Tab } from "./tab.js";
|
|
3
|
+
import { uuid4 } from "./uuid.js";
|
|
4
|
+
import { ObservableCache } from "./cache/index.js";
|
|
5
5
|
function tokenEquals(left, right) {
|
|
6
6
|
return left === right || left !== null && right !== null && left.toString() === right.toString();
|
|
7
7
|
}
|
package/error.d.cts
ADDED
package/evaluator.cjs
CHANGED
|
@@ -23,11 +23,11 @@ __export(evaluator_exports, {
|
|
|
23
23
|
QueryError: () => QueryError
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(evaluator_exports);
|
|
26
|
-
var import_constants = require(
|
|
27
|
-
var import_error = require(
|
|
28
|
-
var import_sourceLocation = require(
|
|
29
|
-
var import_logging = require(
|
|
30
|
-
var import_help = require(
|
|
26
|
+
var import_constants = require('./constants.cjs');
|
|
27
|
+
var import_error = require('./error.cjs');
|
|
28
|
+
var import_sourceLocation = require('./sourceLocation.cjs');
|
|
29
|
+
var import_logging = require('./logging/index.cjs');
|
|
30
|
+
var import_help = require('./help.cjs');
|
|
31
31
|
var EvaluationErrorType = /* @__PURE__ */ ((EvaluationErrorType2) => {
|
|
32
32
|
EvaluationErrorType2["TIMEOUT"] = "https://croct.help/api/evaluation#timeout";
|
|
33
33
|
EvaluationErrorType2["UNEXPECTED_ERROR"] = "https://croct.help/api/evaluation#unexpected-error";
|
package/evaluator.d.cts
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { JsonObject, JsonValue } from '@croct/json';
|
|
2
|
+
import { Token } from './token/token.cjs';
|
|
3
|
+
import { Location } from './sourceLocation.cjs';
|
|
4
|
+
import { Logger } from './logging/logger.cjs';
|
|
5
|
+
import { ApiKey } from './apiKey.cjs';
|
|
6
|
+
|
|
7
|
+
type Campaign = {
|
|
8
|
+
name?: string;
|
|
9
|
+
source?: string;
|
|
10
|
+
medium?: string;
|
|
11
|
+
term?: string;
|
|
12
|
+
content?: string;
|
|
13
|
+
};
|
|
14
|
+
type Page = {
|
|
15
|
+
url: string;
|
|
16
|
+
title?: string;
|
|
17
|
+
referrer?: string;
|
|
18
|
+
};
|
|
19
|
+
type EvaluationContext = {
|
|
20
|
+
timeZone?: string;
|
|
21
|
+
campaign?: Campaign;
|
|
22
|
+
page?: Page;
|
|
23
|
+
attributes?: JsonObject;
|
|
24
|
+
};
|
|
25
|
+
type AllowedFetchOptions = Exclude<keyof RequestInit, 'method' | 'body' | 'headers' | 'signal'>;
|
|
26
|
+
type ExtraFetchOptions<T extends keyof RequestInit = AllowedFetchOptions> = Pick<RequestInit, T> & {
|
|
27
|
+
[key in Exclude<keyof RequestInit, T>]?: never;
|
|
28
|
+
} & Record<string, any>;
|
|
29
|
+
type EvaluationOptions = {
|
|
30
|
+
clientId?: string;
|
|
31
|
+
clientIp?: string;
|
|
32
|
+
clientAgent?: string;
|
|
33
|
+
userToken?: Token | string;
|
|
34
|
+
timeout?: number;
|
|
35
|
+
context?: EvaluationContext;
|
|
36
|
+
extra?: ExtraFetchOptions;
|
|
37
|
+
};
|
|
38
|
+
declare enum EvaluationErrorType {
|
|
39
|
+
TIMEOUT = "https://croct.help/api/evaluation#timeout",
|
|
40
|
+
UNEXPECTED_ERROR = "https://croct.help/api/evaluation#unexpected-error",
|
|
41
|
+
INVALID_QUERY = "https://croct.help/api/evaluation#invalid-query",
|
|
42
|
+
TOO_COMPLEX_QUERY = "https://croct.help/api/evaluation#too-complex-query",
|
|
43
|
+
EVALUATION_FAILED = "https://croct.help/api/evaluation#evaluation-failed",
|
|
44
|
+
UNALLOWED_RESULT = "https://croct.help/api/evaluation#unallowed-result",
|
|
45
|
+
UNSERIALIZABLE_RESULT = "https://croct.help/api/evaluation#unserializable-result"
|
|
46
|
+
}
|
|
47
|
+
type ErrorResponse = {
|
|
48
|
+
type: EvaluationErrorType;
|
|
49
|
+
title: string;
|
|
50
|
+
status: number;
|
|
51
|
+
detail?: string;
|
|
52
|
+
};
|
|
53
|
+
declare class EvaluationError<T extends ErrorResponse = ErrorResponse> extends Error {
|
|
54
|
+
readonly response: T;
|
|
55
|
+
constructor(response: T);
|
|
56
|
+
}
|
|
57
|
+
type QueryErrorDetail = {
|
|
58
|
+
cause: string;
|
|
59
|
+
location: Location;
|
|
60
|
+
};
|
|
61
|
+
type QueryErrorResponse = ErrorResponse & {
|
|
62
|
+
errors: QueryErrorDetail[];
|
|
63
|
+
};
|
|
64
|
+
declare class QueryError extends EvaluationError<QueryErrorResponse> {
|
|
65
|
+
constructor(response: QueryErrorResponse);
|
|
66
|
+
}
|
|
67
|
+
type Configuration = {
|
|
68
|
+
appId?: string;
|
|
69
|
+
apiKey?: string | ApiKey;
|
|
70
|
+
baseEndpointUrl?: string;
|
|
71
|
+
logger?: Logger;
|
|
72
|
+
defaultTimeout?: number;
|
|
73
|
+
};
|
|
74
|
+
declare class Evaluator {
|
|
75
|
+
static readonly MAX_QUERY_LENGTH: number;
|
|
76
|
+
private readonly configuration;
|
|
77
|
+
private readonly endpoint;
|
|
78
|
+
private readonly logger;
|
|
79
|
+
constructor(configuration: Configuration);
|
|
80
|
+
evaluate(query: string, options?: EvaluationOptions): Promise<JsonValue>;
|
|
81
|
+
private fetch;
|
|
82
|
+
private logHelp;
|
|
83
|
+
toJSON(): never;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export { type Campaign, type Configuration, type ErrorResponse, type EvaluationContext, EvaluationError, EvaluationErrorType, type EvaluationOptions, Evaluator, type Page, QueryError, type QueryErrorResponse };
|
package/evaluator.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BASE_ENDPOINT_URL, CLIENT_LIBRARY, MAX_QUERY_LENGTH } from "./constants";
|
|
2
|
-
import { formatMessage } from "./error";
|
|
3
|
-
import { getLength, getLocation } from "./sourceLocation";
|
|
4
|
-
import { NullLogger } from "./logging";
|
|
5
|
-
import { Help } from "./help";
|
|
1
|
+
import { BASE_ENDPOINT_URL, CLIENT_LIBRARY, MAX_QUERY_LENGTH } from "./constants.js";
|
|
2
|
+
import { formatMessage } from "./error.js";
|
|
3
|
+
import { getLength, getLocation } from "./sourceLocation.js";
|
|
4
|
+
import { NullLogger } from "./logging/index.js";
|
|
5
|
+
import { Help } from "./help.js";
|
|
6
6
|
var EvaluationErrorType = /* @__PURE__ */ ((EvaluationErrorType2) => {
|
|
7
7
|
EvaluationErrorType2["TIMEOUT"] = "https://croct.help/api/evaluation#timeout";
|
|
8
8
|
EvaluationErrorType2["UNEXPECTED_ERROR"] = "https://croct.help/api/evaluation#unexpected-error";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface EventListener<T> {
|
|
2
|
+
(event: T): void;
|
|
3
|
+
}
|
|
4
|
+
type EventMap = Record<string, Record<string, any>>;
|
|
5
|
+
interface EventDispatcher<TEvents extends EventMap> {
|
|
6
|
+
dispatch<T extends keyof TEvents>(eventName: T, event: TEvents[T]): void;
|
|
7
|
+
}
|
|
8
|
+
interface EventSubscriber<TEvents extends EventMap> {
|
|
9
|
+
addListener<T extends keyof TEvents>(eventName: T, listener: EventListener<TEvents[T]>): void;
|
|
10
|
+
removeListener<T extends keyof TEvents>(eventName: T, listener: EventListener<TEvents[T]>): void;
|
|
11
|
+
}
|
|
12
|
+
interface EventManager<DEvents extends EventMap, SEvents extends EventMap = DEvents> extends EventDispatcher<DEvents>, EventSubscriber<SEvents> {
|
|
13
|
+
}
|
|
14
|
+
declare class SynchronousEventManager<TEvents extends EventMap> implements EventManager<TEvents> {
|
|
15
|
+
private readonly listeners;
|
|
16
|
+
addListener<T extends keyof TEvents>(type: T, listener: EventListener<TEvents[T]>): void;
|
|
17
|
+
removeListener<T extends keyof TEvents>(eventName: T, listener: EventListener<TEvents[T]>): void;
|
|
18
|
+
dispatch<T extends keyof TEvents>(eventName: T, event: TEvents[T]): void;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { type EventDispatcher, type EventListener, type EventManager, type EventMap, type EventSubscriber, SynchronousEventManager };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TrackingEventProcessor, QueuedEventInfo } from './tracker.cjs';
|
|
2
|
+
import { Logger } from './logging/logger.cjs';
|
|
3
|
+
import './tab.cjs';
|
|
4
|
+
import './eventManager.cjs';
|
|
5
|
+
import './channel/channel.cjs';
|
|
6
|
+
import './retry/policy.cjs';
|
|
7
|
+
import './token/token.cjs';
|
|
8
|
+
import '@croct/json';
|
|
9
|
+
import './apiKey.cjs';
|
|
10
|
+
import './trackingEvents.cjs';
|
|
11
|
+
import './patch.cjs';
|
|
12
|
+
import './utilityTypes.cjs';
|
|
13
|
+
|
|
14
|
+
declare class EventSubjectProcessor implements TrackingEventProcessor {
|
|
15
|
+
private currentToken?;
|
|
16
|
+
private logger;
|
|
17
|
+
constructor(logger: Logger);
|
|
18
|
+
process(event: QueuedEventInfo): QueuedEventInfo[];
|
|
19
|
+
private static isIdentificationEvent;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { EventSubjectProcessor };
|