|
1 |
| -import ApiEndpoints from './api-endpoints'; |
2 |
| -import { logger as applicationLogger, loggerPrefix } from './application-logger'; |
3 |
| -import { IAssignmentHooks } from './assignment-hooks'; |
4 |
| -import { IAssignmentLogger, IAssignmentEvent } from './assignment-logger'; |
5 |
| -import { IBanditLogger, IBanditEvent } from './bandit-logger'; |
6 |
| -import { |
7 |
| - AbstractAssignmentCache, |
8 |
| - AssignmentCache, |
9 |
| - AsyncMap, |
10 |
| - AssignmentCacheKey, |
11 |
| - AssignmentCacheValue, |
12 |
| - AssignmentCacheEntry, |
13 |
| - assignmentCacheKeyToString, |
14 |
| - assignmentCacheValueToString, |
15 |
| -} from './cache/abstract-assignment-cache'; |
16 |
| -import { LRUInMemoryAssignmentCache } from './cache/lru-in-memory-assignment-cache'; |
17 |
| -import { NonExpiringInMemoryAssignmentCache } from './cache/non-expiring-in-memory-cache-assignment'; |
18 |
| -import EppoClient, { |
| 1 | +// Public APIs. |
| 2 | +// |
| 3 | +// The section below is intended for public usage and may be re-exported by SDKs. |
| 4 | +export { KVStore, MemoryStore } from './kvstore'; |
| 5 | +export { IAssignmentHooks } from './assignment-hooks'; |
| 6 | +export { IAssignmentLogger, IAssignmentEvent } from './assignment-logger'; |
| 7 | +export { IBanditLogger, IBanditEvent } from './bandit-logger'; |
| 8 | +export { |
| 9 | + default as EppoClient, |
19 | 10 | EppoClientParameters,
|
20 | 11 | IAssignmentDetails,
|
21 | 12 | IContainerExperiment,
|
22 | 13 | } from './client/eppo-client';
|
23 |
| -import { Subject } from './client/subject'; |
24 |
| -import FlagConfigRequestor from './configuration-requestor'; |
25 |
| -import { |
26 |
| - IConfigurationWire, |
27 |
| - IObfuscatedPrecomputedConfigurationResponse, |
28 |
| - IPrecomputedConfigurationResponse, |
29 |
| -} from './configuration-wire/configuration-wire-types'; |
30 |
| -import * as constants from './constants'; |
31 |
| -import { decodePrecomputedFlag } from './decoding'; |
32 |
| -import { EppoAssignmentLogger } from './eppo-assignment-logger'; |
33 |
| -import BatchEventProcessor from './events/batch-event-processor'; |
34 |
| -import { BoundedEventQueue } from './events/bounded-event-queue'; |
35 |
| -import DefaultEventDispatcher, { |
36 |
| - DEFAULT_EVENT_DISPATCHER_CONFIG, |
37 |
| - DEFAULT_EVENT_DISPATCHER_BATCH_SIZE, |
38 |
| - newDefaultEventDispatcher, |
39 |
| -} from './events/default-event-dispatcher'; |
40 |
| -import Event from './events/event'; |
41 |
| -import EventDispatcher from './events/event-dispatcher'; |
42 |
| -import NamedEventQueue from './events/named-event-queue'; |
43 |
| -import NetworkStatusListener from './events/network-status-listener'; |
44 |
| -import HttpClient from './http-client'; |
45 |
| -import { |
46 |
| - PrecomputedFlag, |
47 |
| - Flag, |
48 |
| - ObfuscatedFlag, |
49 |
| - VariationType, |
50 |
| - FormatEnum, |
51 |
| - BanditParameters, |
52 |
| - BanditVariation, |
53 |
| - IObfuscatedPrecomputedBandit, |
54 |
| - Variation, |
55 |
| - Environment, |
56 |
| -} from './interfaces'; |
57 |
| -import { KVStore, MemoryStore } from './kvstore'; |
58 |
| -import { buildStorageKeySuffix } from './obfuscation'; |
59 |
| -import { |
| 14 | +export { Subject } from './client/subject'; |
| 15 | +export * as constants from './constants'; |
| 16 | +export { EppoAssignmentLogger } from './eppo-assignment-logger'; |
| 17 | + |
| 18 | +export { |
60 | 19 | AttributeType,
|
61 | 20 | Attributes,
|
62 | 21 | BanditActions,
|
63 | 22 | BanditSubjectAttributes,
|
64 | 23 | ContextAttributes,
|
65 | 24 | FlagKey,
|
66 | 25 | } from './types';
|
67 |
| -import * as validation from './validation'; |
68 |
| - |
69 |
| -export { |
70 |
| - loggerPrefix, |
71 |
| - applicationLogger, |
72 |
| - AbstractAssignmentCache, |
73 |
| - IAssignmentDetails, |
74 |
| - IAssignmentHooks, |
75 |
| - IAssignmentLogger, |
76 |
| - EppoAssignmentLogger, |
77 |
| - IAssignmentEvent, |
78 |
| - IBanditLogger, |
79 |
| - IBanditEvent, |
80 |
| - IContainerExperiment, |
81 |
| - EppoClientParameters, |
82 |
| - EppoClient, |
83 |
| - constants, |
84 |
| - ApiEndpoints, |
85 |
| - FlagConfigRequestor, |
86 |
| - HttpClient, |
87 |
| - validation, |
88 |
| - |
89 |
| - // Precomputed Client |
90 |
| - IObfuscatedPrecomputedConfigurationResponse, |
91 |
| - IObfuscatedPrecomputedBandit, |
92 |
| - |
93 |
| - // Configuration store |
94 |
| - KVStore, |
95 |
| - MemoryStore, |
96 |
| - |
97 |
| - // Assignment cache |
98 |
| - AssignmentCacheKey, |
99 |
| - AssignmentCacheValue, |
100 |
| - AssignmentCacheEntry, |
101 |
| - AssignmentCache, |
102 |
| - AsyncMap, |
103 |
| - NonExpiringInMemoryAssignmentCache, |
104 |
| - LRUInMemoryAssignmentCache, |
105 |
| - assignmentCacheKeyToString, |
106 |
| - assignmentCacheValueToString, |
107 |
| - |
108 |
| - // Interfaces |
109 |
| - Flag, |
110 |
| - ObfuscatedFlag, |
111 |
| - Variation, |
112 |
| - VariationType, |
113 |
| - AttributeType, |
114 |
| - Attributes, |
115 |
| - ContextAttributes, |
116 |
| - BanditSubjectAttributes, |
117 |
| - BanditActions, |
118 |
| - BanditVariation, |
119 |
| - BanditParameters, |
120 |
| - Environment, |
121 |
| - FormatEnum, |
122 |
| - |
123 |
| - // event dispatcher types |
124 |
| - NamedEventQueue, |
125 |
| - EventDispatcher, |
126 |
| - BoundedEventQueue, |
127 |
| - DEFAULT_EVENT_DISPATCHER_CONFIG, |
128 |
| - DEFAULT_EVENT_DISPATCHER_BATCH_SIZE, |
129 |
| - newDefaultEventDispatcher, |
130 |
| - BatchEventProcessor, |
131 |
| - NetworkStatusListener, |
132 |
| - DefaultEventDispatcher, |
133 |
| - Event, |
134 |
| - |
135 |
| - // Configuration interchange. |
136 |
| - IConfigurationWire, |
137 |
| - IPrecomputedConfigurationResponse, |
138 |
| - PrecomputedFlag, |
139 |
| - FlagKey, |
140 |
| - |
141 |
| - // Test helpers |
142 |
| - decodePrecomputedFlag, |
143 |
| - |
144 |
| - // Utilities |
145 |
| - buildStorageKeySuffix, |
146 |
| - Subject, |
147 |
| -}; |
0 commit comments