11/**
22 * Context is a set of key-value pairs.
3+ * This is used to determine if feature targeting matches and to track events.
34 * Id should always be present so that it can be referenced to an existing company.
45 */
56export interface CompanyContext {
@@ -19,6 +20,11 @@ export interface CompanyContext {
1920 [ key : string ] : string | number | undefined ;
2021}
2122
23+ /**
24+ * Context is a set of key-value pairs.
25+ * This is used to determine if feature targeting matches and to track events.
26+ * Id should always be present so that it can be referenced to an existing user.
27+ */
2228export interface UserContext {
2329 /**
2430 * User id
@@ -41,6 +47,10 @@ export interface UserContext {
4147 [ key : string ] : string | number | undefined ;
4248}
4349
50+ /**
51+ * Context is a set of key-value pairs.
52+ * This is used to determine if feature targeting matches and to track events.
53+ */
4454export interface ReflagContext {
4555 /**
4656 * Company related context. If you provide `id` Reflag will enrich the evaluation context with
@@ -60,6 +70,10 @@ export interface ReflagContext {
6070 other ?: Record < string , string | number | undefined > ;
6171}
6272
73+ /**
74+ * @deprecated Use `ReflagContext` instead, this interface will be removed in the next major version
75+ * @internal
76+ */
6377export interface ReflagDeprecatedContext extends ReflagContext {
6478 /**
6579 * Context which is not related to a user or a company.
0 commit comments