Skip to content

Commit 94d0252

Browse files
committed
upd
1 parent 3ddfe2e commit 94d0252

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

lib/common_exports.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export { createErrorNotifier } from './error/error_notifier_factory';
3030

3131
export {
3232
DECISION_SOURCES,
33-
NOTIFICATION_TYPES,
3433
} from './utils/enums';
3534

35+
export { NOTIFICATION_TYPES, DECISION_NOTIFICATION_TYPES } from './notification_center/type';
36+
3637
export { OptimizelyDecideOption } from './shared_types';

lib/entrypoint.test-d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ import {
4848

4949
import {
5050
DECISION_SOURCES,
51-
NOTIFICATION_TYPES,
5251
} from './utils/enums';
5352

53+
import { NOTIFICATION_TYPES, DECISION_NOTIFICATION_TYPES } from './notification_center/type';
54+
5455
import { LogLevel } from './logging/logger';
5556

5657
import { OptimizelyDecideOption } from './shared_types';
@@ -89,6 +90,7 @@ export type Entrypoint = {
8990
// enums
9091
DECISION_SOURCES: typeof DECISION_SOURCES;
9192
NOTIFICATION_TYPES: typeof NOTIFICATION_TYPES;
93+
DECISION_NOTIFICATION_TYPES: typeof DECISION_NOTIFICATION_TYPES;
9294

9395
// decide options
9496
OptimizelyDecideOption: typeof OptimizelyDecideOption;

lib/entrypoint.universal.test-d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ import { RequestHandler } from './utils/http_request_handler/http';
4141
import { UniversalBatchEventProcessorOptions } from './event_processor/event_processor_factory.universal';
4242
import {
4343
DECISION_SOURCES,
44-
NOTIFICATION_TYPES,
4544
} from './utils/enums';
4645

46+
import { NOTIFICATION_TYPES, DECISION_NOTIFICATION_TYPES } from './notification_center/type';
47+
4748
import { LogLevel } from './logging/logger';
4849

4950
import { OptimizelyDecideOption } from './shared_types';
@@ -82,6 +83,7 @@ export type UniversalEntrypoint = {
8283
// enums
8384
DECISION_SOURCES: typeof DECISION_SOURCES;
8485
NOTIFICATION_TYPES: typeof NOTIFICATION_TYPES;
86+
DECISION_NOTIFICATION_TYPES: typeof DECISION_NOTIFICATION_TYPES;
8587

8688
// decide options
8789
OptimizelyDecideOption: typeof OptimizelyDecideOption;

lib/utils/enums/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ export const DECISION_MESSAGES = {
9797
VARIABLE_VALUE_INVALID: 'Variable value for key "%s" is invalid or wrong type.',
9898
};
9999

100-
export { NOTIFICATION_TYPES } from '../../notification_center/type';
101-
102100
/**
103101
* Default milliseconds before request timeout
104102
*/

0 commit comments

Comments
 (0)