Skip to content

Commit 1a27b93

Browse files
committed
Update pino
1 parent d2093e4 commit 1a27b93

5 files changed

Lines changed: 57 additions & 194 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- '*'
77

88
permissions:
9-
id-token: write # Required for OIDC
9+
id-token: write # Required for OIDC
1010
contents: read
1111

1212
jobs:

flagsmith-engine/evaluation/evaluationContext/evaluationContext.types.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@
66
*/
77

88
/**
9-
* An environment's unique identifier.
9+
* Unique environment key. May be used for selecting a value for a multivariate feature, or for % split segmentation.
1010
*/
1111
export type Key = string;
1212
/**
1313
* An environment's human-readable name.
1414
*/
1515
export type Name = string;
1616
/**
17-
* A unique identifier for an identity, used for segment and multivariate feature flag targeting, and displayed in the Flagsmith UI.
17+
* A unique identifier for an identity as displayed in the Flagsmith UI.
1818
*/
1919
export type Identifier = string;
2020
/**
2121
* Key used when selecting a value for a multivariate feature, or for % split segmentation. Set to an internal identifier or a composite value based on the environment key and identifier, depending on Flagsmith implementation.
2222
*/
2323
export type Key1 = string;
2424
/**
25-
* Key used for % split segmentation.
25+
* Unique segment key used for % split segmentation.
2626
*/
2727
export type Key2 = string;
2828
/**
@@ -85,13 +85,9 @@ export type SubRules = SegmentRule[];
8585
*/
8686
export type Rules = SegmentRule[];
8787
/**
88-
* Key used when selecting a value for a multivariate feature. Set to an internal identifier or a UUID, depending on Flagsmith implementation.
88+
* Unique feature key used when selecting a variant if the feature is multivariate. Set to an internal identifier or a UUID, depending on Flagsmith implementation.
8989
*/
9090
export type Key3 = string;
91-
/**
92-
* Unique feature identifier.
93-
*/
94-
export type FeatureKey = string;
9591
/**
9692
* Feature name.
9793
*/
@@ -155,7 +151,7 @@ export interface EnvironmentContext {
155151
*/
156152
export interface IdentityContext {
157153
identifier: Identifier;
158-
key: Key1;
154+
key?: Key1;
159155
traits?: Traits;
160156
[k: string]: unknown;
161157
}
@@ -214,7 +210,6 @@ export interface InSegmentCondition {
214210
*/
215211
export interface FeatureContext {
216212
key: Key3;
217-
feature_key: FeatureKey;
218213
name: Name2;
219214
enabled: Enabled;
220215
value: Value2;

flagsmith-engine/evaluation/evaluationResult/evaluationResult.types.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
* and run json-schema-to-typescript to regenerate this file.
66
*/
77

8-
/**
9-
* Unique feature identifier.
10-
*/
11-
export type FeatureKey = string;
128
/**
139
* Feature name.
1410
*/
@@ -25,10 +21,6 @@ export type Value = string | number | boolean | null;
2521
* Reason for the feature flag evaluation.
2622
*/
2723
export type Reason = string;
28-
/**
29-
* Unique segment identifier.
30-
*/
31-
export type Key = string;
3224
/**
3325
* Segment name.
3426
*/
@@ -53,7 +45,6 @@ export interface Flags {
5345
[k: string]: FlagResult;
5446
}
5547
export interface FlagResult {
56-
feature_key: FeatureKey;
5748
name: Name;
5849
enabled: Enabled;
5950
value: Value;
@@ -68,7 +59,6 @@ export interface FeatureMetadata {
6859
[k: string]: unknown;
6960
}
7061
export interface SegmentResult {
71-
key: Key;
7262
name: Name1;
7363
metadata?: SegmentMetadata;
7464
[k: string]: unknown;

0 commit comments

Comments
 (0)