superposition-provider 0.93.1 → 0.93.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/experimentation-client.d.ts +5 -1
- package/dist/index.esm.js +73 -32
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +73 -32
- package/dist/index.js.map +1 -1
- package/dist/native-lib/libsuperposition_core-aarch64-apple-darwin.dylib +0 -0
- package/dist/native-lib/libsuperposition_core-x86_64-apple-darwin.dylib +0 -0
- package/dist/native-lib/libsuperposition_core-x86_64-pc-windows-msvc.dll +0 -0
- package/dist/native-lib/libsuperposition_core-x86_64-unknown-linux-gnu.so +0 -0
- package/dist/superposition-provider.d.ts +3 -3
- package/dist/types.d.ts +13 -0
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EvaluationContext, Provider, JsonValue, ResolutionDetails, ProviderStatus, OpenFeatureEventEmitter, ProviderMetadata, Hook, Logger } from
|
|
2
|
-
import { ConfigurationClient } from
|
|
3
|
-
import { EvaluationCacheOptions, RefreshStrategy, ConfigData, ExperimentationOptions } from
|
|
1
|
+
import { EvaluationContext, Provider, JsonValue, ResolutionDetails, ProviderStatus, OpenFeatureEventEmitter, ProviderMetadata, Hook, Logger } from "@openfeature/server-sdk";
|
|
2
|
+
import { ConfigurationClient } from "./configuration-client";
|
|
3
|
+
import { EvaluationCacheOptions, RefreshStrategy, ConfigData, ExperimentationOptions } from "./types";
|
|
4
4
|
export interface SuperpositionProviderOptions {
|
|
5
5
|
endpoint: string;
|
|
6
6
|
token: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -52,7 +52,20 @@ export interface Variant {
|
|
|
52
52
|
override_id?: string;
|
|
53
53
|
overrides: Record<string, string>;
|
|
54
54
|
}
|
|
55
|
+
export interface FfiExperimentGroup {
|
|
56
|
+
id: string;
|
|
57
|
+
context: Record<string, string>;
|
|
58
|
+
traffic_percentage: number;
|
|
59
|
+
member_experiment_ids: string[];
|
|
60
|
+
group_type: "SYSTEM_GENERATED" | "USER_CREATED";
|
|
61
|
+
buckets: Bucket[];
|
|
62
|
+
}
|
|
63
|
+
export interface Bucket {
|
|
64
|
+
variant_id: string;
|
|
65
|
+
experiment_id: string;
|
|
66
|
+
}
|
|
55
67
|
export interface ExperimentationArgs {
|
|
56
68
|
experiments: FfiExperiment[];
|
|
69
|
+
experiment_groups: FfiExperimentGroup[];
|
|
57
70
|
targeting_key: string;
|
|
58
71
|
}
|