From a307fb16fdf1320e5768f25b0b77b40654ed0cb0 Mon Sep 17 00:00:00 2001 From: "stepan.kvetensky" Date: Tue, 5 Jun 2018 08:34:47 +0200 Subject: [PATCH] updated typescript definitions for LDOptions - added missing private fields related configuration options - added missing user keys buffer configuration options --- index.d.ts | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/index.d.ts b/index.d.ts index 6703d27..994a963 100644 --- a/index.d.ts +++ b/index.d.ts @@ -133,6 +133,39 @@ declare module "ldclient-node" { * Whether to send events back to LaunchDarkly */ sendEvents?: boolean; + + /** + * Whether all user attributes (except the user key) should be marked as + * private, and not sent to LaunchDarkly. + * + * Defaults to false. + */ + allAttributesPrivate?: boolean; + + /** + * The names of user attributes that should be marked as private, and not sent + * to LaunchDarkly. + * + * Must be a list of strings. Defaults to empty list. + */ + privateAttributeNames?: Array; + + /** + * The number of user keys that the event processor can remember at any one time, + * so that duplicate user details will not be sent in analytics events. + * + * Defaults to 1000. + */ + userKeysCapacity?: number; + + /** + * The interval (in seconds) at which the event processor will reset its set of + * known user keys. + * + * Defaults to 300. + */ + userKeysFlushInterval?: number; + } /**