@chainlink/external-adapter-framework 0.3.7 → 0.4.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/README.md +102 -0
- package/package.json +42 -50
- package/adapter/basic.d.ts +0 -86
- package/adapter/basic.js +0 -323
- package/adapter/basic.js.map +0 -1
- package/adapter/endpoint.d.ts +0 -17
- package/adapter/endpoint.js +0 -19
- package/adapter/endpoint.js.map +0 -1
- package/adapter/index.d.ts +0 -4
- package/adapter/index.js +0 -21
- package/adapter/index.js.map +0 -1
- package/adapter/price.d.ts +0 -75
- package/adapter/price.js +0 -88
- package/adapter/price.js.map +0 -1
- package/adapter/types.d.ts +0 -118
- package/adapter/types.js +0 -3
- package/adapter/types.js.map +0 -1
- package/background-executor.d.ts +0 -9
- package/background-executor.js +0 -97
- package/background-executor.js.map +0 -1
- package/cache/factory.d.ts +0 -6
- package/cache/factory.js +0 -24
- package/cache/factory.js.map +0 -1
- package/cache/index.d.ts +0 -87
- package/cache/index.js +0 -133
- package/cache/index.js.map +0 -1
- package/cache/local.d.ts +0 -23
- package/cache/local.js +0 -84
- package/cache/local.js.map +0 -1
- package/cache/metrics.d.ts +0 -27
- package/cache/metrics.js +0 -121
- package/cache/metrics.js.map +0 -1
- package/cache/redis.d.ts +0 -16
- package/cache/redis.js +0 -101
- package/cache/redis.js.map +0 -1
- package/config/index.d.ts +0 -297
- package/config/index.js +0 -353
- package/config/index.js.map +0 -1
- package/config/provider-limits.d.ts +0 -27
- package/config/provider-limits.js +0 -75
- package/config/provider-limits.js.map +0 -1
- package/examples/bank-frick/accounts.d.ts +0 -52
- package/examples/bank-frick/accounts.js +0 -190
- package/examples/bank-frick/accounts.js.map +0 -1
- package/examples/bank-frick/config/index.d.ts +0 -17
- package/examples/bank-frick/config/index.js +0 -55
- package/examples/bank-frick/config/index.js.map +0 -1
- package/examples/bank-frick/index.d.ts +0 -16
- package/examples/bank-frick/index.js +0 -16
- package/examples/bank-frick/index.js.map +0 -1
- package/examples/bank-frick/util.d.ts +0 -4
- package/examples/bank-frick/util.js +0 -40
- package/examples/bank-frick/util.js.map +0 -1
- package/examples/coingecko/src/config/index.d.ts +0 -2
- package/examples/coingecko/src/config/index.js +0 -6
- package/examples/coingecko/src/config/index.js.map +0 -1
- package/examples/coingecko/src/config/overrides.json +0 -10825
- package/examples/coingecko/src/crypto-utils.d.ts +0 -48
- package/examples/coingecko/src/crypto-utils.js +0 -60
- package/examples/coingecko/src/crypto-utils.js.map +0 -1
- package/examples/coingecko/src/endpoint/coins.d.ts +0 -9
- package/examples/coingecko/src/endpoint/coins.js +0 -37
- package/examples/coingecko/src/endpoint/coins.js.map +0 -1
- package/examples/coingecko/src/endpoint/crypto-marketcap.d.ts +0 -3
- package/examples/coingecko/src/endpoint/crypto-marketcap.js +0 -30
- package/examples/coingecko/src/endpoint/crypto-marketcap.js.map +0 -1
- package/examples/coingecko/src/endpoint/crypto-volume.d.ts +0 -3
- package/examples/coingecko/src/endpoint/crypto-volume.js +0 -30
- package/examples/coingecko/src/endpoint/crypto-volume.js.map +0 -1
- package/examples/coingecko/src/endpoint/crypto.d.ts +0 -2
- package/examples/coingecko/src/endpoint/crypto.js +0 -28
- package/examples/coingecko/src/endpoint/crypto.js.map +0 -1
- package/examples/coingecko/src/endpoint/dominance.d.ts +0 -3
- package/examples/coingecko/src/endpoint/dominance.js +0 -28
- package/examples/coingecko/src/endpoint/dominance.js.map +0 -1
- package/examples/coingecko/src/endpoint/global-marketcap.d.ts +0 -3
- package/examples/coingecko/src/endpoint/global-marketcap.js +0 -28
- package/examples/coingecko/src/endpoint/global-marketcap.js.map +0 -1
- package/examples/coingecko/src/endpoint/index.d.ts +0 -6
- package/examples/coingecko/src/endpoint/index.js +0 -16
- package/examples/coingecko/src/endpoint/index.js.map +0 -1
- package/examples/coingecko/src/global-utils.d.ts +0 -27
- package/examples/coingecko/src/global-utils.js +0 -47
- package/examples/coingecko/src/global-utils.js.map +0 -1
- package/examples/coingecko/src/index.d.ts +0 -4
- package/examples/coingecko/src/index.js +0 -19
- package/examples/coingecko/src/index.js.map +0 -1
- package/examples/coingecko-old/batch-warming.d.ts +0 -7
- package/examples/coingecko-old/batch-warming.js +0 -54
- package/examples/coingecko-old/batch-warming.js.map +0 -1
- package/examples/coingecko-old/index.d.ts +0 -2
- package/examples/coingecko-old/index.js +0 -12
- package/examples/coingecko-old/index.js.map +0 -1
- package/examples/coingecko-old/rest.d.ts +0 -12
- package/examples/coingecko-old/rest.js +0 -55
- package/examples/coingecko-old/rest.js.map +0 -1
- package/examples/cryptocompare/src/config/index.d.ts +0 -2
- package/examples/cryptocompare/src/config/index.js +0 -6
- package/examples/cryptocompare/src/config/index.js.map +0 -1
- package/examples/cryptocompare/src/endpoints/crypto.d.ts +0 -28
- package/examples/cryptocompare/src/endpoints/crypto.js +0 -54
- package/examples/cryptocompare/src/endpoints/crypto.js.map +0 -1
- package/examples/cryptocompare/src/endpoints/index.d.ts +0 -1
- package/examples/cryptocompare/src/endpoints/index.js +0 -6
- package/examples/cryptocompare/src/endpoints/index.js.map +0 -1
- package/examples/cryptocompare/src/index.d.ts +0 -4
- package/examples/cryptocompare/src/index.js +0 -14
- package/examples/cryptocompare/src/index.js.map +0 -1
- package/examples/genesis/config/index.d.ts +0 -7
- package/examples/genesis/config/index.js +0 -11
- package/examples/genesis/config/index.js.map +0 -1
- package/examples/genesis/index.d.ts +0 -2
- package/examples/genesis/index.js +0 -13
- package/examples/genesis/index.js.map +0 -1
- package/examples/genesis/sseStream.d.ts +0 -16
- package/examples/genesis/sseStream.js +0 -149
- package/examples/genesis/sseStream.js.map +0 -1
- package/examples/ncfx/config/index.d.ts +0 -12
- package/examples/ncfx/config/index.js +0 -16
- package/examples/ncfx/config/index.js.map +0 -1
- package/examples/ncfx/index.d.ts +0 -13
- package/examples/ncfx/index.js +0 -12
- package/examples/ncfx/index.js.map +0 -1
- package/examples/ncfx/websocket.d.ts +0 -47
- package/examples/ncfx/websocket.js +0 -74
- package/examples/ncfx/websocket.js.map +0 -1
- package/index.d.ts +0 -17
- package/index.js +0 -174
- package/index.js.map +0 -1
- package/metrics/constants.d.ts +0 -16
- package/metrics/constants.js +0 -26
- package/metrics/constants.js.map +0 -1
- package/metrics/index.d.ts +0 -19
- package/metrics/index.js +0 -139
- package/metrics/index.js.map +0 -1
- package/metrics/util.d.ts +0 -7
- package/metrics/util.js +0 -10
- package/metrics/util.js.map +0 -1
- package/rate-limiting/background/fixed-frequency.d.ts +0 -11
- package/rate-limiting/background/fixed-frequency.js +0 -36
- package/rate-limiting/background/fixed-frequency.js.map +0 -1
- package/rate-limiting/index.d.ts +0 -56
- package/rate-limiting/index.js +0 -86
- package/rate-limiting/index.js.map +0 -1
- package/rate-limiting/metrics.d.ts +0 -3
- package/rate-limiting/metrics.js +0 -45
- package/rate-limiting/metrics.js.map +0 -1
- package/rate-limiting/request/simple-counting.d.ts +0 -21
- package/rate-limiting/request/simple-counting.js +0 -63
- package/rate-limiting/request/simple-counting.js.map +0 -1
- package/transports/batch-warming.d.ts +0 -35
- package/transports/batch-warming.js +0 -138
- package/transports/batch-warming.js.map +0 -1
- package/transports/index.d.ts +0 -87
- package/transports/index.js +0 -56
- package/transports/index.js.map +0 -1
- package/transports/metrics.d.ts +0 -25
- package/transports/metrics.js +0 -122
- package/transports/metrics.js.map +0 -1
- package/transports/rest.d.ts +0 -51
- package/transports/rest.js +0 -133
- package/transports/rest.js.map +0 -1
- package/transports/routing.d.ts +0 -23
- package/transports/routing.js +0 -52
- package/transports/routing.js.map +0 -1
- package/transports/sse.d.ts +0 -40
- package/transports/sse.js +0 -92
- package/transports/sse.js.map +0 -1
- package/transports/util.d.ts +0 -9
- package/transports/util.js +0 -87
- package/transports/util.js.map +0 -1
- package/transports/websocket.d.ts +0 -81
- package/transports/websocket.js +0 -165
- package/transports/websocket.js.map +0 -1
- package/util/censor/censor-list.d.ts +0 -9
- package/util/censor/censor-list.js +0 -13
- package/util/censor/censor-list.js.map +0 -1
- package/util/index.d.ts +0 -13
- package/util/index.js +0 -38
- package/util/index.js.map +0 -1
- package/util/logger.d.ts +0 -49
- package/util/logger.js +0 -123
- package/util/logger.js.map +0 -1
- package/util/request.d.ts +0 -102
- package/util/request.js +0 -3
- package/util/request.js.map +0 -1
- package/util/subscription-set/expiring-sorted-set.d.ts +0 -21
- package/util/subscription-set/expiring-sorted-set.js +0 -36
- package/util/subscription-set/expiring-sorted-set.js.map +0 -1
- package/util/subscription-set/redis-sorted-set.d.ts +0 -9
- package/util/subscription-set/redis-sorted-set.js +0 -29
- package/util/subscription-set/redis-sorted-set.js.map +0 -1
- package/util/subscription-set/subscription-set.d.ts +0 -19
- package/util/subscription-set/subscription-set.js +0 -28
- package/util/subscription-set/subscription-set.js.map +0 -1
- package/util/test-payload-loader.d.ts +0 -26
- package/util/test-payload-loader.js +0 -85
- package/util/test-payload-loader.js.map +0 -1
- package/validation/error.d.ts +0 -48
- package/validation/error.js +0 -78
- package/validation/error.js.map +0 -1
- package/validation/index.d.ts +0 -5
- package/validation/index.js +0 -91
- package/validation/index.js.map +0 -1
- package/validation/input-params.d.ts +0 -14
- package/validation/input-params.js +0 -3
- package/validation/input-params.js.map +0 -1
- package/validation/input-validator.d.ts +0 -16
- package/validation/input-validator.js +0 -123
- package/validation/input-validator.js.map +0 -1
package/config/index.d.ts
DELETED
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
export declare const BaseSettings: {
|
|
2
|
-
readonly API_ENDPOINT: {
|
|
3
|
-
readonly description: "The URL that certain transports use to retrieve data";
|
|
4
|
-
readonly type: "string";
|
|
5
|
-
};
|
|
6
|
-
readonly API_KEY: {
|
|
7
|
-
readonly description: "Default setting for an EA key";
|
|
8
|
-
readonly type: "string";
|
|
9
|
-
readonly sensitive: true;
|
|
10
|
-
};
|
|
11
|
-
readonly API_TIMEOUT: {
|
|
12
|
-
readonly description: "The number of milliseconds a request can be pending before returning a timeout error for data provider request";
|
|
13
|
-
readonly type: "number";
|
|
14
|
-
readonly default: 30000;
|
|
15
|
-
};
|
|
16
|
-
readonly API_VERBOSE: {
|
|
17
|
-
readonly description: "Toggle whether the response from the EA should contain just the results or also include the full response body from the queried API.";
|
|
18
|
-
readonly type: "boolean";
|
|
19
|
-
readonly default: false;
|
|
20
|
-
};
|
|
21
|
-
readonly BASE_URL: {
|
|
22
|
-
readonly description: "Starting path for the EA handler endpoint";
|
|
23
|
-
readonly type: "string";
|
|
24
|
-
readonly default: "/";
|
|
25
|
-
};
|
|
26
|
-
readonly BATCH_TRANSPORT_SETUP_VALIDATION: {
|
|
27
|
-
readonly description: "Flag to toggle batch transport setup validation";
|
|
28
|
-
readonly type: "boolean";
|
|
29
|
-
readonly default: false;
|
|
30
|
-
};
|
|
31
|
-
readonly CACHE_MAX_AGE: {
|
|
32
|
-
readonly description: "Maximum amount of time (in ms) that a response will stay cached";
|
|
33
|
-
readonly type: "number";
|
|
34
|
-
readonly default: 90000;
|
|
35
|
-
};
|
|
36
|
-
readonly CACHE_REDIS_HOST: {
|
|
37
|
-
readonly description: "Hostname for the Redis instance to be used";
|
|
38
|
-
readonly type: "string";
|
|
39
|
-
readonly default: "127.0.0.1";
|
|
40
|
-
};
|
|
41
|
-
readonly CACHE_REDIS_PASSWORD: {
|
|
42
|
-
readonly description: "The password required for redis auth";
|
|
43
|
-
readonly type: "string";
|
|
44
|
-
readonly sensitive: true;
|
|
45
|
-
};
|
|
46
|
-
readonly CACHE_REDIS_PATH: {
|
|
47
|
-
readonly description: "The UNIX socket string of the Redis server";
|
|
48
|
-
readonly type: "string";
|
|
49
|
-
};
|
|
50
|
-
readonly CACHE_REDIS_PORT: {
|
|
51
|
-
readonly description: "Port for the Redis instance to be used";
|
|
52
|
-
readonly type: "number";
|
|
53
|
-
readonly default: 6379;
|
|
54
|
-
};
|
|
55
|
-
readonly CACHE_REDIS_TIMEOUT: {
|
|
56
|
-
readonly description: "Timeout to fail a Redis server request if no response (ms)";
|
|
57
|
-
readonly type: "number";
|
|
58
|
-
readonly default: 500;
|
|
59
|
-
};
|
|
60
|
-
readonly CACHE_TYPE: {
|
|
61
|
-
readonly description: "The type of cache to use throughout the EA";
|
|
62
|
-
readonly type: "enum";
|
|
63
|
-
readonly default: "local";
|
|
64
|
-
readonly options: readonly ["local", "redis"];
|
|
65
|
-
};
|
|
66
|
-
readonly CORRELATION_ID_ENABLED: {
|
|
67
|
-
readonly description: "Flag to enable correlation IDs for sent requests in logging";
|
|
68
|
-
readonly type: "boolean";
|
|
69
|
-
readonly default: true;
|
|
70
|
-
};
|
|
71
|
-
readonly DEBUG: {
|
|
72
|
-
readonly description: "Toggles debug mode";
|
|
73
|
-
readonly type: "boolean";
|
|
74
|
-
readonly default: false;
|
|
75
|
-
};
|
|
76
|
-
readonly EA_PORT: {
|
|
77
|
-
readonly description: "Port through which the EA will listen for REST requests (if mode is set to \"reader\" or \"reader-writer\")";
|
|
78
|
-
readonly type: "number";
|
|
79
|
-
readonly default: 8080;
|
|
80
|
-
};
|
|
81
|
-
readonly EXPERIMENTAL_METRICS_ENABLED: {
|
|
82
|
-
readonly description: "Flag to specify whether or not to collect metrics. Used as fallback for METRICS_ENABLED";
|
|
83
|
-
readonly type: "boolean";
|
|
84
|
-
readonly default: true;
|
|
85
|
-
};
|
|
86
|
-
readonly LOG_LEVEL: {
|
|
87
|
-
readonly description: "Minimum level required for logs to be output";
|
|
88
|
-
readonly type: "string";
|
|
89
|
-
readonly default: "info";
|
|
90
|
-
};
|
|
91
|
-
readonly METRICS_ENABLED: {
|
|
92
|
-
readonly description: "Flag to specify whether or not to startup the metrics server";
|
|
93
|
-
readonly type: "boolean";
|
|
94
|
-
readonly default: true;
|
|
95
|
-
};
|
|
96
|
-
readonly METRICS_NAME: {
|
|
97
|
-
readonly description: "Metrics name";
|
|
98
|
-
readonly type: "string";
|
|
99
|
-
};
|
|
100
|
-
readonly METRICS_PORT: {
|
|
101
|
-
readonly description: "Port metrics will be exposed to";
|
|
102
|
-
readonly type: "number";
|
|
103
|
-
readonly default: 9080;
|
|
104
|
-
};
|
|
105
|
-
readonly METRICS_USE_BASE_URL: {
|
|
106
|
-
readonly description: "Flag to specify whether or not to prepend the BASE_URL to the metrics endpoint";
|
|
107
|
-
readonly type: "boolean";
|
|
108
|
-
};
|
|
109
|
-
readonly RATE_LIMIT_API_TIER: {
|
|
110
|
-
readonly description: "Rate limiting tier to use from the available options for the adapter. If not present, the adapter will run using the first tier on the list.";
|
|
111
|
-
readonly type: "string";
|
|
112
|
-
};
|
|
113
|
-
readonly RATE_LIMIT_CAPACITY: {
|
|
114
|
-
readonly description: "Used as rate limit capacity per minute and ignores tier settings if defined";
|
|
115
|
-
readonly type: "number";
|
|
116
|
-
};
|
|
117
|
-
readonly RATE_LIMIT_CAPACITY_MINUTE: {
|
|
118
|
-
readonly description: "Used as rate limit capacity per minute and ignores tier settings if defined. Supercedes RATE_LIMIT_CAPACITY if both vars are set";
|
|
119
|
-
readonly type: "number";
|
|
120
|
-
};
|
|
121
|
-
readonly RATE_LIMIT_CAPACITY_SECOND: {
|
|
122
|
-
readonly description: "Used as rate limit capacity per second and ignores tier settings if defined";
|
|
123
|
-
readonly type: "number";
|
|
124
|
-
};
|
|
125
|
-
readonly REQUEST_COALESCING_ENABLED: {
|
|
126
|
-
readonly description: "Enable request coalescing";
|
|
127
|
-
readonly type: "boolean";
|
|
128
|
-
readonly default: false;
|
|
129
|
-
};
|
|
130
|
-
readonly REQUEST_COALESCING_ENTROPY_MAX: {
|
|
131
|
-
readonly description: "Amount of random delay (entropy) in milliseconds that will be added to requests. Avoids issue where the request coalescing key will not be set before multiple other instances in a burst try to access the same key";
|
|
132
|
-
readonly type: "number";
|
|
133
|
-
readonly default: 0;
|
|
134
|
-
};
|
|
135
|
-
readonly SSE_SUBSCRIPTION_UPDATE_SLEEP: {
|
|
136
|
-
readonly description: "Maximum amount of time (in ms) between each update to the set of subscribed feeds";
|
|
137
|
-
readonly type: "number";
|
|
138
|
-
readonly default: 1000;
|
|
139
|
-
};
|
|
140
|
-
readonly SSE_KEEPALIVE_SLEEP: {
|
|
141
|
-
readonly description: "Maximum amount of time (in ms) between each SSE keepalive request";
|
|
142
|
-
readonly type: "number";
|
|
143
|
-
readonly default: 60000;
|
|
144
|
-
};
|
|
145
|
-
readonly SSE_SUBSCRIPTION_TTL: {
|
|
146
|
-
readonly description: "Maximum amount of time (in ms) an SSE subscription will be cached before being unsubscribed";
|
|
147
|
-
readonly type: "number";
|
|
148
|
-
readonly default: 300000;
|
|
149
|
-
};
|
|
150
|
-
readonly WARMUP_SUBSCRIPTION_TTL: {
|
|
151
|
-
readonly type: "number";
|
|
152
|
-
readonly description: "TTL for batch warmer subscriptions";
|
|
153
|
-
readonly default: 300000;
|
|
154
|
-
};
|
|
155
|
-
readonly WS_API_ENDPOINT: {
|
|
156
|
-
readonly description: "Override the base websocket URL within the EA.";
|
|
157
|
-
readonly type: "string";
|
|
158
|
-
};
|
|
159
|
-
readonly WS_API_KEY: {
|
|
160
|
-
readonly description: "The websocket API key to authenticate with";
|
|
161
|
-
readonly type: "string";
|
|
162
|
-
readonly sensitive: true;
|
|
163
|
-
};
|
|
164
|
-
readonly WS_SUBSCRIPTION_TTL: {
|
|
165
|
-
readonly description: "";
|
|
166
|
-
readonly type: "number";
|
|
167
|
-
readonly default: 120000;
|
|
168
|
-
};
|
|
169
|
-
readonly CACHE_POLLING_MAX_RETRIES: {
|
|
170
|
-
readonly description: "Max amount of times to attempt to find EA response in the cache after the Transport has been set up";
|
|
171
|
-
readonly type: "number";
|
|
172
|
-
readonly default: 10;
|
|
173
|
-
};
|
|
174
|
-
readonly CACHE_POLLING_SLEEP_MS: {
|
|
175
|
-
readonly description: "The number of ms to sleep between each retry to fetch the EA response in the cache";
|
|
176
|
-
readonly type: "number";
|
|
177
|
-
readonly default: 200;
|
|
178
|
-
};
|
|
179
|
-
readonly DEFAULT_CACHE_KEY: {
|
|
180
|
-
readonly description: "Default key to be used when one cannot be determined from request parameters";
|
|
181
|
-
readonly type: "string";
|
|
182
|
-
readonly default: "DEFAULT_CACHE_KEY";
|
|
183
|
-
};
|
|
184
|
-
readonly EA_HOST: {
|
|
185
|
-
readonly description: "Host this EA will listen for REST requests on (if mode is set to \"reader\" or \"reader-writer\")";
|
|
186
|
-
readonly type: "string";
|
|
187
|
-
readonly default: "::";
|
|
188
|
-
};
|
|
189
|
-
readonly EA_MODE: {
|
|
190
|
-
readonly description: "Port this EA will listen for REST requests on (if mode is set to \"reader\" or \"reader-writer\")";
|
|
191
|
-
readonly type: "enum";
|
|
192
|
-
readonly default: "reader-writer";
|
|
193
|
-
readonly options: readonly ["reader", "writer", "reader-writer"];
|
|
194
|
-
};
|
|
195
|
-
readonly MAX_COMMON_KEY_SIZE: {
|
|
196
|
-
readonly description: "Maximum amount of characters that the common part of the cache key or feed ID can have";
|
|
197
|
-
readonly type: "number";
|
|
198
|
-
readonly default: 300;
|
|
199
|
-
readonly validate: (value?: number) => "MAX_COMMON_KEY_SIZE must be a number between 150 and 500" | undefined;
|
|
200
|
-
};
|
|
201
|
-
readonly REST_TRANSPORT_MAX_RATE_LIMIT_RETRIES: {
|
|
202
|
-
readonly description: "Maximum amount of times the Rest Transport will attempt to set up a request when blocked by the rate limiter";
|
|
203
|
-
readonly type: "number";
|
|
204
|
-
readonly default: 3;
|
|
205
|
-
};
|
|
206
|
-
readonly REST_TRANSPORT_MS_BETWEEN_RATE_LIMIT_RETRIES: {
|
|
207
|
-
readonly description: "Time that the Rest Transport will wait between retries when blocked by the rate limiter";
|
|
208
|
-
readonly type: "number";
|
|
209
|
-
readonly default: 400;
|
|
210
|
-
};
|
|
211
|
-
readonly SMOKE_TEST_PAYLOAD_FILE_NAME: {
|
|
212
|
-
readonly description: "Name of the test payload file used for the smoke endpoint";
|
|
213
|
-
readonly type: "string";
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
export declare const buildAdapterConfig: <CustomSettings extends CustomSettingsType<CustomSettings> = EmptySettings>({ overrides, customSettings, }: {
|
|
217
|
-
overrides?: Partial<BaseAdapterConfig> | undefined;
|
|
218
|
-
customSettings?: SettingsMap | undefined;
|
|
219
|
-
}) => AdapterConfig<CustomSettings>;
|
|
220
|
-
declare type SettingValueType = string | number | boolean;
|
|
221
|
-
declare type SettingType<C extends Setting> = C['type'] extends 'string' ? string : C['type'] extends 'number' ? number : C['type'] extends 'boolean' ? boolean : C['type'] extends 'enum' ? C['options'] extends readonly string[] ? C['options'][number] : never : never;
|
|
222
|
-
declare type BaseSettingsType = typeof BaseSettings;
|
|
223
|
-
export declare type Setting = {
|
|
224
|
-
type: 'string';
|
|
225
|
-
description: string;
|
|
226
|
-
options?: never;
|
|
227
|
-
default?: string;
|
|
228
|
-
validate?: (value?: string) => ValidationErrorMessage;
|
|
229
|
-
required?: false;
|
|
230
|
-
sensitive?: boolean;
|
|
231
|
-
} | {
|
|
232
|
-
type: 'string';
|
|
233
|
-
description: string;
|
|
234
|
-
options?: never;
|
|
235
|
-
default?: string;
|
|
236
|
-
validate?: (value: string) => ValidationErrorMessage;
|
|
237
|
-
required: true;
|
|
238
|
-
sensitive?: boolean;
|
|
239
|
-
} | {
|
|
240
|
-
type: 'number';
|
|
241
|
-
description: string;
|
|
242
|
-
options?: never;
|
|
243
|
-
default?: number;
|
|
244
|
-
validate?: (value?: number) => ValidationErrorMessage;
|
|
245
|
-
required?: false;
|
|
246
|
-
} | {
|
|
247
|
-
type: 'number';
|
|
248
|
-
description: string;
|
|
249
|
-
options?: never;
|
|
250
|
-
default?: number;
|
|
251
|
-
validate?: (value: number) => ValidationErrorMessage;
|
|
252
|
-
required: true;
|
|
253
|
-
} | {
|
|
254
|
-
type: 'boolean';
|
|
255
|
-
description: string;
|
|
256
|
-
options?: never;
|
|
257
|
-
default?: boolean;
|
|
258
|
-
validate?: (value?: boolean) => ValidationErrorMessage;
|
|
259
|
-
required?: false;
|
|
260
|
-
} | {
|
|
261
|
-
type: 'boolean';
|
|
262
|
-
description: string;
|
|
263
|
-
options?: never;
|
|
264
|
-
default?: boolean;
|
|
265
|
-
validate?: (value: boolean) => ValidationErrorMessage;
|
|
266
|
-
required: true;
|
|
267
|
-
} | {
|
|
268
|
-
type: 'enum';
|
|
269
|
-
description: string;
|
|
270
|
-
default?: string;
|
|
271
|
-
options: readonly string[];
|
|
272
|
-
validate?: (value?: string) => ValidationErrorMessage;
|
|
273
|
-
required?: false;
|
|
274
|
-
} | {
|
|
275
|
-
type: 'enum';
|
|
276
|
-
description: string;
|
|
277
|
-
default?: string;
|
|
278
|
-
options: readonly string[];
|
|
279
|
-
validate?: (value: string) => ValidationErrorMessage;
|
|
280
|
-
required: true;
|
|
281
|
-
};
|
|
282
|
-
export declare type AdapterConfigFromSettings<T extends SettingsMap> = {
|
|
283
|
-
-readonly [K in keyof T as T[K] extends {
|
|
284
|
-
default: SettingValueType;
|
|
285
|
-
} ? K : T[K]['required'] extends true ? K : never]: SettingType<T[K]>;
|
|
286
|
-
} & {
|
|
287
|
-
-readonly [K in keyof T as T[K] extends {
|
|
288
|
-
default: SettingValueType;
|
|
289
|
-
} ? never : T[K]['required'] extends true ? never : K]?: SettingType<T[K]> | undefined;
|
|
290
|
-
};
|
|
291
|
-
export declare type BaseAdapterConfig = AdapterConfigFromSettings<BaseSettingsType>;
|
|
292
|
-
export declare type AdapterConfig<T extends CustomSettingsType<T> = SettingsMap> = AdapterConfigFromSettings<T> & BaseAdapterConfig;
|
|
293
|
-
export declare type CustomSettingsType<T = SettingsMap> = Record<keyof T, Setting>;
|
|
294
|
-
export declare type EmptySettings = Record<string, never>;
|
|
295
|
-
export declare type SettingsMap = Record<string, Setting>;
|
|
296
|
-
export declare type ValidationErrorMessage = string | undefined;
|
|
297
|
-
export {};
|
package/config/index.js
DELETED
|
@@ -1,353 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buildAdapterConfig = exports.BaseSettings = void 0;
|
|
4
|
-
exports.BaseSettings = {
|
|
5
|
-
// V2 compat
|
|
6
|
-
// ADAPTER_URL: {
|
|
7
|
-
// description: 'The URL of another adapter from which data needs to be retrieved',
|
|
8
|
-
// type: 'string',
|
|
9
|
-
// },
|
|
10
|
-
API_ENDPOINT: {
|
|
11
|
-
description: 'The URL that certain transports use to retrieve data',
|
|
12
|
-
type: 'string',
|
|
13
|
-
},
|
|
14
|
-
API_KEY: {
|
|
15
|
-
description: 'Default setting for an EA key',
|
|
16
|
-
type: 'string',
|
|
17
|
-
sensitive: true,
|
|
18
|
-
},
|
|
19
|
-
API_TIMEOUT: {
|
|
20
|
-
description: 'The number of milliseconds a request can be pending before returning a timeout error for data provider request',
|
|
21
|
-
type: 'number',
|
|
22
|
-
default: 30000,
|
|
23
|
-
},
|
|
24
|
-
API_VERBOSE: {
|
|
25
|
-
description: 'Toggle whether the response from the EA should contain just the results or also include the full response body from the queried API.',
|
|
26
|
-
type: 'boolean',
|
|
27
|
-
default: false,
|
|
28
|
-
},
|
|
29
|
-
BASE_URL: {
|
|
30
|
-
description: 'Starting path for the EA handler endpoint',
|
|
31
|
-
type: 'string',
|
|
32
|
-
default: '/',
|
|
33
|
-
},
|
|
34
|
-
BATCH_TRANSPORT_SETUP_VALIDATION: {
|
|
35
|
-
description: 'Flag to toggle batch transport setup validation',
|
|
36
|
-
type: 'boolean',
|
|
37
|
-
default: false,
|
|
38
|
-
},
|
|
39
|
-
CACHE_MAX_AGE: {
|
|
40
|
-
description: 'Maximum amount of time (in ms) that a response will stay cached',
|
|
41
|
-
type: 'number',
|
|
42
|
-
default: 90000,
|
|
43
|
-
},
|
|
44
|
-
// CACHE_MAX_ITEMS: {
|
|
45
|
-
// type: 'number',
|
|
46
|
-
// default: 1000,
|
|
47
|
-
// },
|
|
48
|
-
// CACHE_MIN_AGE: {
|
|
49
|
-
// type: 'number',
|
|
50
|
-
// default: 30000,
|
|
51
|
-
// },
|
|
52
|
-
// CACHE_REDIS_CONNECTION_TIMEOUT: {
|
|
53
|
-
// type: 'number',
|
|
54
|
-
// default: 15000,
|
|
55
|
-
// },
|
|
56
|
-
CACHE_REDIS_HOST: {
|
|
57
|
-
description: 'Hostname for the Redis instance to be used',
|
|
58
|
-
type: 'string',
|
|
59
|
-
default: '127.0.0.1',
|
|
60
|
-
},
|
|
61
|
-
// CACHE_REDIS_MAX_QUEUED_ITEMS: {
|
|
62
|
-
// description: 'Maximum length of the client internal command queue',
|
|
63
|
-
// type: 'number',
|
|
64
|
-
// default: 500,
|
|
65
|
-
// },
|
|
66
|
-
// CACHE_REDIS_MAX_RECONNECT_COOLDOWN: {
|
|
67
|
-
// type: 'number',
|
|
68
|
-
// default: 3000,
|
|
69
|
-
// },
|
|
70
|
-
CACHE_REDIS_PASSWORD: {
|
|
71
|
-
description: 'The password required for redis auth',
|
|
72
|
-
type: 'string',
|
|
73
|
-
sensitive: true,
|
|
74
|
-
},
|
|
75
|
-
CACHE_REDIS_PATH: {
|
|
76
|
-
description: 'The UNIX socket string of the Redis server',
|
|
77
|
-
type: 'string',
|
|
78
|
-
},
|
|
79
|
-
CACHE_REDIS_PORT: {
|
|
80
|
-
description: 'Port for the Redis instance to be used',
|
|
81
|
-
type: 'number',
|
|
82
|
-
default: 6379,
|
|
83
|
-
},
|
|
84
|
-
CACHE_REDIS_TIMEOUT: {
|
|
85
|
-
description: 'Timeout to fail a Redis server request if no response (ms)',
|
|
86
|
-
type: 'number',
|
|
87
|
-
default: 500,
|
|
88
|
-
},
|
|
89
|
-
// CACHE_REDIS_URL: {
|
|
90
|
-
// type: 'string',
|
|
91
|
-
// },
|
|
92
|
-
CACHE_TYPE: {
|
|
93
|
-
description: 'The type of cache to use throughout the EA',
|
|
94
|
-
type: 'enum',
|
|
95
|
-
default: 'local',
|
|
96
|
-
options: ['local', 'redis'],
|
|
97
|
-
},
|
|
98
|
-
CORRELATION_ID_ENABLED: {
|
|
99
|
-
description: 'Flag to enable correlation IDs for sent requests in logging',
|
|
100
|
-
type: 'boolean',
|
|
101
|
-
default: true,
|
|
102
|
-
},
|
|
103
|
-
// DATA_PROVIDER_URL: {
|
|
104
|
-
// description: 'Legacy variable that has the same functionality as ADAPTER_URL',
|
|
105
|
-
// type: 'string',
|
|
106
|
-
// },
|
|
107
|
-
DEBUG: {
|
|
108
|
-
description: 'Toggles debug mode',
|
|
109
|
-
type: 'boolean',
|
|
110
|
-
default: false,
|
|
111
|
-
},
|
|
112
|
-
// DEFAULT_WS_HEARTBEAT_INTERVAL: {
|
|
113
|
-
// description: 'Interval between WS heartbeat pings (ms)',
|
|
114
|
-
// type: 'number',
|
|
115
|
-
// default: 30000,
|
|
116
|
-
// },
|
|
117
|
-
EA_PORT: {
|
|
118
|
-
description: 'Port through which the EA will listen for REST requests (if mode is set to "reader" or "reader-writer")',
|
|
119
|
-
type: 'number',
|
|
120
|
-
default: 8080,
|
|
121
|
-
},
|
|
122
|
-
// ERROR_CAPACITY: {
|
|
123
|
-
// type: 'number',
|
|
124
|
-
// },
|
|
125
|
-
EXPERIMENTAL_METRICS_ENABLED: {
|
|
126
|
-
description: 'Flag to specify whether or not to collect metrics. Used as fallback for METRICS_ENABLED',
|
|
127
|
-
type: 'boolean',
|
|
128
|
-
default: true,
|
|
129
|
-
},
|
|
130
|
-
LOG_LEVEL: {
|
|
131
|
-
description: 'Minimum level required for logs to be output',
|
|
132
|
-
type: 'string',
|
|
133
|
-
default: 'info',
|
|
134
|
-
},
|
|
135
|
-
METRICS_ENABLED: {
|
|
136
|
-
description: 'Flag to specify whether or not to startup the metrics server',
|
|
137
|
-
type: 'boolean',
|
|
138
|
-
default: true,
|
|
139
|
-
},
|
|
140
|
-
METRICS_NAME: {
|
|
141
|
-
description: 'Metrics name',
|
|
142
|
-
type: 'string',
|
|
143
|
-
},
|
|
144
|
-
METRICS_PORT: {
|
|
145
|
-
description: 'Port metrics will be exposed to',
|
|
146
|
-
type: 'number',
|
|
147
|
-
default: 9080,
|
|
148
|
-
},
|
|
149
|
-
METRICS_USE_BASE_URL: {
|
|
150
|
-
description: 'Flag to specify whether or not to prepend the BASE_URL to the metrics endpoint',
|
|
151
|
-
type: 'boolean',
|
|
152
|
-
},
|
|
153
|
-
RATE_LIMIT_API_TIER: {
|
|
154
|
-
description: 'Rate limiting tier to use from the available options for the adapter. If not present, the adapter will run using the first tier on the list.',
|
|
155
|
-
type: 'string',
|
|
156
|
-
},
|
|
157
|
-
RATE_LIMIT_CAPACITY: {
|
|
158
|
-
description: 'Used as rate limit capacity per minute and ignores tier settings if defined',
|
|
159
|
-
type: 'number',
|
|
160
|
-
},
|
|
161
|
-
RATE_LIMIT_CAPACITY_MINUTE: {
|
|
162
|
-
description: 'Used as rate limit capacity per minute and ignores tier settings if defined. Supercedes RATE_LIMIT_CAPACITY if both vars are set',
|
|
163
|
-
type: 'number',
|
|
164
|
-
},
|
|
165
|
-
RATE_LIMIT_CAPACITY_SECOND: {
|
|
166
|
-
description: 'Used as rate limit capacity per second and ignores tier settings if defined',
|
|
167
|
-
type: 'number',
|
|
168
|
-
},
|
|
169
|
-
REQUEST_COALESCING_ENABLED: {
|
|
170
|
-
description: 'Enable request coalescing',
|
|
171
|
-
type: 'boolean',
|
|
172
|
-
default: false,
|
|
173
|
-
},
|
|
174
|
-
REQUEST_COALESCING_ENTROPY_MAX: {
|
|
175
|
-
description: 'Amount of random delay (entropy) in milliseconds that will be added to requests. Avoids issue where the request coalescing key will not be set before multiple other instances in a burst try to access the same key',
|
|
176
|
-
type: 'number',
|
|
177
|
-
default: 0,
|
|
178
|
-
},
|
|
179
|
-
// REQUEST_COALESCING_INTERVAL: {
|
|
180
|
-
// type: 'number',
|
|
181
|
-
// default: 100,
|
|
182
|
-
// },
|
|
183
|
-
// REQUEST_COALESCING_INTERVAL_COEFFICIENT: {
|
|
184
|
-
// type: 'number',
|
|
185
|
-
// default: 2,
|
|
186
|
-
// },
|
|
187
|
-
// REQUEST_COALESCING_INTERVAL_MAX: {
|
|
188
|
-
// type: 'number',
|
|
189
|
-
// default: 1000,
|
|
190
|
-
// },
|
|
191
|
-
// REQUEST_COALESCING_MAX_RETRIES: {
|
|
192
|
-
// type: 'number',
|
|
193
|
-
// default: 5,
|
|
194
|
-
// },
|
|
195
|
-
// RETRY: {
|
|
196
|
-
// type: 'boolean',
|
|
197
|
-
// default: 1,
|
|
198
|
-
// },
|
|
199
|
-
SSE_SUBSCRIPTION_UPDATE_SLEEP: {
|
|
200
|
-
description: 'Maximum amount of time (in ms) between each update to the set of subscribed feeds',
|
|
201
|
-
type: 'number',
|
|
202
|
-
default: 1000,
|
|
203
|
-
},
|
|
204
|
-
SSE_KEEPALIVE_SLEEP: {
|
|
205
|
-
description: 'Maximum amount of time (in ms) between each SSE keepalive request',
|
|
206
|
-
type: 'number',
|
|
207
|
-
default: 60000,
|
|
208
|
-
},
|
|
209
|
-
SSE_SUBSCRIPTION_TTL: {
|
|
210
|
-
description: 'Maximum amount of time (in ms) an SSE subscription will be cached before being unsubscribed',
|
|
211
|
-
type: 'number',
|
|
212
|
-
default: 300000,
|
|
213
|
-
},
|
|
214
|
-
WARMUP_SUBSCRIPTION_TTL: {
|
|
215
|
-
type: 'number',
|
|
216
|
-
description: 'TTL for batch warmer subscriptions',
|
|
217
|
-
default: 300000,
|
|
218
|
-
},
|
|
219
|
-
// WARMUP_UNHEALTHY_THRESHOLD: {
|
|
220
|
-
// type: 'number',
|
|
221
|
-
// default: 3,
|
|
222
|
-
// },
|
|
223
|
-
WS_API_ENDPOINT: {
|
|
224
|
-
description: 'Override the base websocket URL within the EA.',
|
|
225
|
-
type: 'string',
|
|
226
|
-
},
|
|
227
|
-
WS_API_KEY: {
|
|
228
|
-
description: 'The websocket API key to authenticate with',
|
|
229
|
-
type: 'string',
|
|
230
|
-
sensitive: true,
|
|
231
|
-
},
|
|
232
|
-
WS_SUBSCRIPTION_TTL: {
|
|
233
|
-
description: '',
|
|
234
|
-
type: 'number',
|
|
235
|
-
default: 120000,
|
|
236
|
-
},
|
|
237
|
-
// WS_SUBSCRIPTION_UNRESPONSIVE_TTL: {
|
|
238
|
-
// type: 'number',
|
|
239
|
-
// default: false,
|
|
240
|
-
// },
|
|
241
|
-
// WS_TIME_UNTIL_HANDLE_NEXT_MESSAGE_OVERRIDE: {
|
|
242
|
-
// description: 'Time to wait until adapter should handle next WS message',
|
|
243
|
-
// type: 'number',
|
|
244
|
-
// },
|
|
245
|
-
// V3
|
|
246
|
-
CACHE_POLLING_MAX_RETRIES: {
|
|
247
|
-
description: 'Max amount of times to attempt to find EA response in the cache after the Transport has been set up',
|
|
248
|
-
type: 'number',
|
|
249
|
-
default: 10,
|
|
250
|
-
},
|
|
251
|
-
CACHE_POLLING_SLEEP_MS: {
|
|
252
|
-
description: 'The number of ms to sleep between each retry to fetch the EA response in the cache',
|
|
253
|
-
type: 'number',
|
|
254
|
-
default: 200,
|
|
255
|
-
},
|
|
256
|
-
DEFAULT_CACHE_KEY: {
|
|
257
|
-
description: 'Default key to be used when one cannot be determined from request parameters',
|
|
258
|
-
type: 'string',
|
|
259
|
-
default: 'DEFAULT_CACHE_KEY',
|
|
260
|
-
},
|
|
261
|
-
EA_HOST: {
|
|
262
|
-
description: 'Host this EA will listen for REST requests on (if mode is set to "reader" or "reader-writer")',
|
|
263
|
-
type: 'string',
|
|
264
|
-
default: '::',
|
|
265
|
-
},
|
|
266
|
-
EA_MODE: {
|
|
267
|
-
description: 'Port this EA will listen for REST requests on (if mode is set to "reader" or "reader-writer")',
|
|
268
|
-
type: 'enum',
|
|
269
|
-
default: 'reader-writer',
|
|
270
|
-
options: ['reader', 'writer', 'reader-writer'],
|
|
271
|
-
},
|
|
272
|
-
MAX_COMMON_KEY_SIZE: {
|
|
273
|
-
description: 'Maximum amount of characters that the common part of the cache key or feed ID can have',
|
|
274
|
-
type: 'number',
|
|
275
|
-
default: 300,
|
|
276
|
-
validate: (value) => {
|
|
277
|
-
if (!(value && value >= 150 && value <= 500)) {
|
|
278
|
-
return 'MAX_COMMON_KEY_SIZE must be a number between 150 and 500';
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
},
|
|
282
|
-
REST_TRANSPORT_MAX_RATE_LIMIT_RETRIES: {
|
|
283
|
-
description: 'Maximum amount of times the Rest Transport will attempt to set up a request when blocked by the rate limiter',
|
|
284
|
-
type: 'number',
|
|
285
|
-
default: 3,
|
|
286
|
-
},
|
|
287
|
-
REST_TRANSPORT_MS_BETWEEN_RATE_LIMIT_RETRIES: {
|
|
288
|
-
description: 'Time that the Rest Transport will wait between retries when blocked by the rate limiter',
|
|
289
|
-
type: 'number',
|
|
290
|
-
default: 400,
|
|
291
|
-
},
|
|
292
|
-
SMOKE_TEST_PAYLOAD_FILE_NAME: {
|
|
293
|
-
description: 'Name of the test payload file used for the smoke endpoint',
|
|
294
|
-
type: 'string',
|
|
295
|
-
},
|
|
296
|
-
};
|
|
297
|
-
const buildAdapterConfig = ({ overrides = {}, customSettings = {}, }) => {
|
|
298
|
-
const validationErrors = [];
|
|
299
|
-
const vars = {};
|
|
300
|
-
// Iterate base adapter env vars
|
|
301
|
-
for (const [key, config] of Object.entries(exports.BaseSettings)) {
|
|
302
|
-
const value = getEnv(key, config) ?? overrides?.[key] ?? config.default;
|
|
303
|
-
validateConfig(key, value, config, validationErrors);
|
|
304
|
-
vars[key] = value;
|
|
305
|
-
}
|
|
306
|
-
// Iterate custom vars
|
|
307
|
-
for (const [key, config] of Object.entries(customSettings)) {
|
|
308
|
-
if (exports.BaseSettings[key]) {
|
|
309
|
-
throw new Error(`Custom env var "${key}" declared, but a base framework env var with that name already exists.`);
|
|
310
|
-
}
|
|
311
|
-
const value = getEnv(key, config) ?? config.default;
|
|
312
|
-
validateConfig(key, value, config, validationErrors);
|
|
313
|
-
vars[key] = value;
|
|
314
|
-
}
|
|
315
|
-
if (validationErrors.length > 0) {
|
|
316
|
-
throw new Error(`Validation failed for the following variables:\n ${validationErrors.join('\n')}`);
|
|
317
|
-
}
|
|
318
|
-
return vars;
|
|
319
|
-
};
|
|
320
|
-
exports.buildAdapterConfig = buildAdapterConfig;
|
|
321
|
-
const validateConfig = (key, value, config, validationErrors) => {
|
|
322
|
-
// Check if a required setting has been provided
|
|
323
|
-
if (config.required && (value === null || value === undefined)) {
|
|
324
|
-
validationErrors.push(`${key}: Value is required, but none was provided`);
|
|
325
|
-
}
|
|
326
|
-
else if (config.validate) {
|
|
327
|
-
// Cast validate to unknown because TS can't select one of multiple variants of the validate function signature
|
|
328
|
-
const validationRes = config.validate(value);
|
|
329
|
-
if (validationRes) {
|
|
330
|
-
validationErrors.push(`${key}: ${validationRes}`);
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
|
-
const getEnv = (name, config) => {
|
|
335
|
-
const value = process.env[name];
|
|
336
|
-
if (!value) {
|
|
337
|
-
return null;
|
|
338
|
-
}
|
|
339
|
-
switch (config.type) {
|
|
340
|
-
case 'string':
|
|
341
|
-
return value;
|
|
342
|
-
case 'number':
|
|
343
|
-
return parseInt(value);
|
|
344
|
-
case 'boolean':
|
|
345
|
-
return value === 'true';
|
|
346
|
-
case 'enum':
|
|
347
|
-
if (!config.options?.includes(value)) {
|
|
348
|
-
throw new Error(`Env var "${name}" has value "${value}" which is not included in the valid options (${config.options})`);
|
|
349
|
-
}
|
|
350
|
-
return value;
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
//# sourceMappingURL=index.js.map
|
package/config/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/config/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IAC1B,YAAY;IACZ,iBAAiB;IACjB,qFAAqF;IACrF,oBAAoB;IACpB,KAAK;IACL,YAAY,EAAE;QACZ,WAAW,EAAE,sDAAsD;QACnE,IAAI,EAAE,QAAQ;KACf;IACD,OAAO,EAAE;QACP,WAAW,EAAE,+BAA+B;QAC5C,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,IAAI;KAChB;IACD,WAAW,EAAE;QACX,WAAW,EACT,gHAAgH;QAClH,IAAI,EAAE,QAAQ;QACd,OAA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