@statsig/statsig-node-core 0.20.2-beta.2607170300 → 0.20.2-beta.2607220301

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statsig/statsig-node-core",
3
- "version": "0.20.2-beta.2607170300",
3
+ "version": "0.20.2-beta.2607220301",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "jest --colors"
@@ -60,13 +60,13 @@
60
60
  }
61
61
  },
62
62
  "optionalDependencies": {
63
- "@statsig/statsig-node-core-linux-x64-musl": "0.20.2-beta.2607170300",
64
- "@statsig/statsig-node-core-linux-x64-gnu": "0.20.2-beta.2607170300",
65
- "@statsig/statsig-node-core-win32-x64-msvc": "0.20.2-beta.2607170300",
66
- "@statsig/statsig-node-core-darwin-x64": "0.20.2-beta.2607170300",
67
- "@statsig/statsig-node-core-win32-ia32-msvc": "0.20.2-beta.2607170300",
68
- "@statsig/statsig-node-core-linux-arm64-musl": "0.20.2-beta.2607170300",
69
- "@statsig/statsig-node-core-linux-arm64-gnu": "0.20.2-beta.2607170300",
70
- "@statsig/statsig-node-core-darwin-arm64": "0.20.2-beta.2607170300"
63
+ "@statsig/statsig-node-core-linux-x64-musl": "0.20.2-beta.2607220301",
64
+ "@statsig/statsig-node-core-linux-x64-gnu": "0.20.2-beta.2607220301",
65
+ "@statsig/statsig-node-core-win32-x64-msvc": "0.20.2-beta.2607220301",
66
+ "@statsig/statsig-node-core-darwin-x64": "0.20.2-beta.2607220301",
67
+ "@statsig/statsig-node-core-win32-ia32-msvc": "0.20.2-beta.2607220301",
68
+ "@statsig/statsig-node-core-linux-arm64-musl": "0.20.2-beta.2607220301",
69
+ "@statsig/statsig-node-core-linux-arm64-gnu": "0.20.2-beta.2607220301",
70
+ "@statsig/statsig-node-core-darwin-arm64": "0.20.2-beta.2607220301"
71
71
  }
72
72
  }
@@ -31,6 +31,7 @@ export declare class StatsigNapiInternal {
31
31
  __INTERNAL_getExperimentByGroupName(experimentName: string, groupName: string): Record<string, unknown>
32
32
  __INTERNAL_getExperimentByGroupIdAdvanced(experimentName: string, groupId: string): Record<string, unknown>
33
33
  getFieldsNeededForExperiment(experimentName: string): Array<string>
34
+ getExperimentGroups(experimentName: string): ExperimentGroupsResult
34
35
  __INTERNAL_getLayer(user: StatsigUser, layerName: string, options?: LayerEvaluationOptions | undefined | null): Record<string, unknown>
35
36
  __INTERNAL_logLayerParamExposure(raw: LayerParamExposureData, paramName: string): void
36
37
  getFieldsNeededForLayer(layerName: string): Array<string>
@@ -158,6 +159,23 @@ export interface ExperimentEvaluationOptions {
158
159
  userPersistedValues?: Record<string, any>
159
160
  }
160
161
 
162
+ export interface ExperimentGroup {
163
+ groupName: string
164
+ ruleId: string
165
+ idType: string
166
+ returnValue: Record<string, any>
167
+ }
168
+
169
+ export interface ExperimentGroupsResult {
170
+ /**
171
+ * Omitted when the name does not refer to an experiment (unknown name or a
172
+ * non-experiment entity like a dynamic config or autotune); otherwise the
173
+ * experiment's `isActive` state.
174
+ */
175
+ isExperimentActive?: boolean
176
+ groups: Array<ExperimentGroup>
177
+ }
178
+
161
179
  export interface FeatureGateEvaluationOptions {
162
180
  disableExposureLogging?: boolean
163
181
  }