|
1 | | -import { Internals } from "@configcat/sdk"; |
2 | | - |
3 | 1 | export { |
4 | 2 | default as ConfigCatPlugin, |
5 | 3 | type PluginOptions as ConfigCatPluginOptions |
6 | 4 | } from './plugins/ConfigCatPlugin'; |
7 | 5 |
|
8 | 6 | export { default as FeatureWrapper } from './components/FeatureWrapper.vue'; |
9 | 7 |
|
10 | | -export const { |
11 | | - createConsoleLogger, |
12 | | - createFlagOverridesFromMap, |
13 | | - createFlagOverridesFromQueryParams |
14 | | -} = Internals; |
| 8 | +/* Public type re-exports from @configcat/sdk */ |
| 9 | + |
| 10 | +// These exports should be kept in sync with the exports listed in the `src/index/browser.ts` module |
| 11 | +// located in the `js-unified-sdk` repo (https://github.com/configcat/js-unified-sdk). |
| 12 | + |
| 13 | +export { createConsoleLogger, createFlagOverridesFromMap, createFlagOverridesFromQueryParams } from "@configcat/sdk"; |
15 | 14 |
|
16 | | -export type IQueryStringProvider = Internals.IQueryStringProvider; |
| 15 | +export type { IQueryStringProvider } from "@configcat/sdk"; |
17 | 16 |
|
18 | | -/* Public types re-export from @configcat/sdk */ |
| 17 | +export { LocalStorageConfigCache } from "@configcat/sdk"; |
19 | 18 |
|
20 | | -// These exports should be kept in sync with the exports listed in the `src/index.ts` module |
21 | | -// located in the `js-unified-sdk` repo (https://github.com/configcat/js-unified-sdk)! |
| 19 | +export { IndexedDBConfigCache } from "@configcat/sdk"; |
22 | 20 |
|
23 | | -export { PollingMode } from "@configcat/sdk"; |
| 21 | +export { XmlHttpRequestConfigFetcher } from "@configcat/sdk"; |
| 22 | + |
| 23 | +export { ClientSideFetchApiConfigFetcher } from "@configcat/sdk"; |
| 24 | + |
| 25 | +// These exports should be kept in sync with the exports listed in the `src/index.ts` module. |
| 26 | + |
| 27 | +export type { IConfigCatCache } from "@configcat/sdk"; |
| 28 | + |
| 29 | +export type { IConfigCatClient, IConfigCatClientSnapshot } from "@configcat/sdk"; |
24 | 30 |
|
25 | 31 | export type { IAutoPollOptions, ILazyLoadingOptions, IManualPollOptions, IOptions } from "@configcat/sdk"; |
26 | 32 |
|
27 | | -export { DataGovernance } from "@configcat/sdk"; |
| 33 | +export { DataGovernance, PollingMode } from "@configcat/sdk"; |
28 | 34 |
|
29 | | -export type { IConfigCatLogger, LogEventId, LogMessage } from "@configcat/sdk"; |
| 35 | +export type { IConfigCatLogger, LogEventId, LogFilterCallback, LogMessage } from "@configcat/sdk"; |
30 | 36 |
|
31 | | -export { LogLevel } from "@configcat/sdk"; |
| 37 | +export { FormattableLogMessage, LogLevel } from "@configcat/sdk"; |
32 | 38 |
|
33 | | -export { FormattableLogMessage } from "@configcat/sdk"; |
| 39 | +export type { FetchErrorCauses, IConfigCatConfigFetcher } from "@configcat/sdk"; |
34 | 40 |
|
35 | | -export type { IConfigCatCache } from "@configcat/sdk"; |
| 41 | +export { FetchError, FetchRequest, FetchResponse } from "@configcat/sdk"; |
| 42 | + |
| 43 | +export { PrerequisiteFlagComparator, SegmentComparator, SettingType, UserComparator } from "@configcat/sdk"; |
| 44 | + |
| 45 | +export type { RefreshResult } from "@configcat/sdk"; |
| 46 | + |
| 47 | +export { ClientCacheState, RefreshErrorCode } from "@configcat/sdk"; |
| 48 | + |
| 49 | +export type { FlagOverrides, IOverrideDataSource } from "@configcat/sdk"; |
| 50 | + |
| 51 | +export { OverrideBehaviour } from "@configcat/sdk"; |
36 | 52 |
|
37 | 53 | export type { |
38 | | - ConditionTypeMap, ICondition, IConditionUnion, IConfig, IPercentageOption, IPrerequisiteFlagCondition, |
39 | | - ISegment, ISegmentCondition, ISetting, ISettingUnion, ISettingValueContainer, ITargetingRule, |
40 | | - IUserCondition, IUserConditionUnion, SettingTypeMap, SettingValue, UserConditionComparisonValueTypeMap, |
41 | | - VariationIdValue |
| 54 | + Condition, ConditionContainer, Config, PercentageOption, PrerequisiteFlagCondition, Segment, SegmentCondition, |
| 55 | + Setting, SettingValue, SettingValueContainer, SettingValueModel, TargetingRule, UserCondition, VariationIdValue, |
42 | 56 | } from "@configcat/sdk"; |
43 | 57 |
|
44 | | -export { PrerequisiteFlagComparator, SegmentComparator, SettingType, UserComparator } from "@configcat/sdk"; |
| 58 | +export { ConfigJson, deserializeConfig, prepareConfig, createSettingFromValue } from "@configcat/sdk"; |
45 | 59 |
|
46 | | -export type { IConfigCatClient, IConfigCatClientSnapshot, SettingKeyValue } from "@configcat/sdk"; |
| 60 | +export type { IEvaluationDetails, EvaluationDetails, SettingKeyValue, SettingTypeOf } from "@configcat/sdk"; |
47 | 61 |
|
48 | | -export type { IEvaluationDetails, SettingTypeOf } from "@configcat/sdk"; |
| 62 | +export { EvaluationErrorCode } from "@configcat/sdk"; |
49 | 63 |
|
50 | 64 | export type { IUser, UserAttributeValue } from "@configcat/sdk"; |
51 | 65 |
|
52 | 66 | export { User } from "@configcat/sdk"; |
53 | 67 |
|
54 | | -export type { FlagOverrides } from "@configcat/sdk"; |
55 | | - |
56 | | -export { OverrideBehaviour } from "@configcat/sdk"; |
57 | | - |
58 | | -export { ClientCacheState, RefreshResult } from "@configcat/sdk"; |
59 | | - |
60 | | -export type { HookEvents, IProvidesHooks } from "@configcat/sdk"; |
| 68 | +export type { HookEvents, IProvidesConfigCatClient, IProvidesHooks } from "@configcat/sdk"; |
61 | 69 |
|
62 | | -export { ConfigJson } from "@configcat/sdk"; |
| 70 | +export type { Message } from "@configcat/sdk"; |
0 commit comments