File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed
packages/optimizely-sdk/lib Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import * as enums from './utils/enums';
2929import loggerPlugin from './plugins/logger' ;
3030import Optimizely from './optimizely' ;
3131import eventProcessorConfigValidator from './utils/event_processor_config_validator' ;
32- import { SDKOptions } from './shared_types' ;
32+ import { SDKOptions , OptimizelyDecideOptions } from './shared_types' ;
3333
3434const logger = getLogger ( ) ;
3535setLogHandler ( loggerPlugin . createLogger ( ) ) ;
@@ -153,6 +153,7 @@ export {
153153 setLogLevel ,
154154 createInstance ,
155155 __internalResetRetryState ,
156+ OptimizelyDecideOptions ,
156157} ;
157158
158159export default {
@@ -164,4 +165,5 @@ export default {
164165 setLogLevel,
165166 createInstance,
166167 __internalResetRetryState,
168+ OptimizelyDecideOptions,
167169} ;
Original file line number Diff line number Diff line change @@ -65,7 +65,13 @@ declare module '@optimizely/optimizely-sdk' {
6565
6666 export type OptimizelyDecision = import ( './optimizely_decision' ) . OptimizelyDecision ;
6767
68- export type OptimizelyDecideOptions = import ( './shared_types' ) . OptimizelyDecideOptions ;
68+ export enum OptimizelyDecideOptions {
69+ DISABLE_DECISION_EVENT = 'DISABLE_DECISION_EVENT' ,
70+ ENABLED_FLAGS_ONLY = 'ENABLED_FLAGS_ONLY' ,
71+ IGNORE_USER_PROFILE_SERVICE = 'IGNORE_USER_PROFILE_SERVICE' ,
72+ INCLUDE_REASONS = 'INCLUDE_REASONS' ,
73+ EXCLUDE_VARIABLES = 'EXCLUDE_VARIABLES'
74+ }
6975
7076 export type NotificationListener < T extends ListenerPayload > = import ( './shared_types' ) . NotificationListener < T > ;
7177
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import configValidator from './utils/config_validator';
2828import defaultErrorHandler from './plugins/error_handler' ;
2929import defaultEventDispatcher from './plugins/event_dispatcher/index.node' ;
3030import eventProcessorConfigValidator from './utils/event_processor_config_validator' ;
31- import { SDKOptions } from './shared_types' ;
31+ import { SDKOptions , OptimizelyDecideOptions } from './shared_types' ;
3232
3333const logger = getLogger ( ) ;
3434setLogLevel ( LogLevel . ERROR ) ;
@@ -116,6 +116,7 @@ export {
116116 setLogHandler as setLogger ,
117117 setLogLevel ,
118118 createInstance ,
119+ OptimizelyDecideOptions ,
119120} ;
120121
121122export default {
@@ -126,4 +127,5 @@ export default {
126127 setLogger : setLogHandler ,
127128 setLogLevel,
128129 createInstance,
130+ OptimizelyDecideOptions,
129131} ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import defaultErrorHandler from './plugins/error_handler';
2828import loggerPlugin from './plugins/logger/index.react_native' ;
2929import defaultEventDispatcher from './plugins/event_dispatcher/index.browser' ;
3030import eventProcessorConfigValidator from './utils/event_processor_config_validator' ;
31- import { SDKOptions } from './shared_types' ;
31+ import { SDKOptions , OptimizelyDecideOptions } from './shared_types' ;
3232
3333const logger = getLogger ( ) ;
3434setLogHandler ( loggerPlugin . createLogger ( ) ) ;
@@ -112,6 +112,7 @@ export {
112112 setLogHandler as setLogger ,
113113 setLogLevel ,
114114 createInstance ,
115+ OptimizelyDecideOptions ,
115116} ;
116117
117118export default {
@@ -122,4 +123,5 @@ export default {
122123 setLogger : setLogHandler ,
123124 setLogLevel,
124125 createInstance,
126+ OptimizelyDecideOptions,
125127} ;
You can’t perform that action at this time.
0 commit comments