@mongodb-js/compass-web 0.31.0 → 0.31.1

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.
@@ -45,7 +45,7 @@ declare type AssignByPointsOptions<LoggerTeam> = BasicAPICallingFunctionOptions<
45
45
  useV3Assignment?: boolean;
46
46
  };
47
47
 
48
- declare type AssignExperimentFn = (experimentName: ExperimentTestName_2, options?: types.AssignOptions<string>) => Promise<types.AsyncStatus | null>;
48
+ declare type AssignExperimentFn = (experimentName: ExperimentTestName, options?: types.AssignOptions<string>) => Promise<types.AsyncStatus | null>;
49
49
 
50
50
  /**
51
51
  * Entity assignment data. Used in {@link SDKAssignment}, {@link SDKGhostAssignment}, and {@link SDKGenericAssignment}
@@ -1017,20 +1017,22 @@ declare interface ExperimentSDKContextType<T extends TypeData> {
1017
1017
  */
1018
1018
  declare type ExperimentSDKProviderProps<T extends TypeData> = React.PropsWithChildren<ExperimentSDKContextType<T>>;
1019
1019
 
1020
- export declare const ExperimentTestGroup: {
1020
+ export declare type ExperimentTestGroup = (typeof ExperimentTestGroups)[keyof typeof ExperimentTestGroups];
1021
+
1022
+ export declare const ExperimentTestGroups: {
1021
1023
  readonly mockDataGeneratorVariant: "mockDataGeneratorVariant";
1022
1024
  readonly mockDataGeneratorControl: "mockDataGeneratorControl";
1023
1025
  readonly atlasSkillsVariant: "atlasSkillsExperimentVariant";
1024
1026
  readonly atlasSkillsControl: "atlasSkillsExperimentControl";
1025
1027
  };
1026
1028
 
1027
- export declare const ExperimentTestName: {
1029
+ export declare type ExperimentTestName = (typeof ExperimentTestNames)[keyof typeof ExperimentTestNames];
1030
+
1031
+ export declare const ExperimentTestNames: {
1028
1032
  readonly mockDataGenerator: "MOCK_DATA_GENERATOR_20251001";
1029
1033
  readonly atlasSkills: "ATLAS_SKILLS_EXPERIMENT_20251007";
1030
1034
  };
1031
1035
 
1032
- declare type ExperimentTestName_2 = (typeof ExperimentTestName)[keyof typeof ExperimentTestName];
1033
-
1034
1036
  declare enum ExperimentViewedEventName {
1035
1037
  EXPERIMENT_VIEWED = "Experiment Viewed",
1036
1038
  EXPERIMENT_GHOSTVIEWED = "Experiment GhostViewed"
@@ -1186,7 +1188,7 @@ declare type FeatureFlagDefinitions = typeof FEATURE_FLAG_DEFINITIONS;
1186
1188
 
1187
1189
  declare type FeatureFlags = Record<FeatureFlagDefinitions[number]['name'], boolean>;
1188
1190
 
1189
- declare type GetAssignmentFn = (experimentName: ExperimentTestName_2, trackIsInSample: boolean, options?: types.GetAssignmentOptions<types.TypeData>) => Promise<types.SDKAssignment<ExperimentTestName_2, string> | null>;
1191
+ declare type GetAssignmentFn = (experimentName: ExperimentTestName, trackIsInSample: boolean, options?: types.GetAssignmentOptions<types.TypeData>) => Promise<types.SDKAssignment<ExperimentTestName, string> | null>;
1190
1192
 
1191
1193
  /**
1192
1194
  * Represents additional options for ExperimentSDK.getAssignments
@@ -1804,7 +1806,7 @@ declare interface Tracker<ExperimentViewedProps> {
1804
1806
  }
1805
1807
  }
1806
1808
 
1807
- declare type UseAssignmentHook = (experimentName: ExperimentTestName_2, trackIsInSample: boolean, options?: typesReact.UseAssignmentOptions<types.TypeData>) => typesReact.UseAssignmentResponse<types.TypeData>;
1809
+ declare type UseAssignmentHook = (experimentName: ExperimentTestName, trackIsInSample: boolean, options?: typesReact.UseAssignmentOptions<types.TypeData>) => typesReact.UseAssignmentResponse<types.TypeData>;
1808
1810
 
1809
1811
  /**
1810
1812
  * Additional options the useAssignment hook can take beyond the {@link GetAssignmentOptions} options.
@@ -1870,7 +1872,7 @@ declare interface Tracker<ExperimentViewedProps> {
1870
1872
 
1871
1873
  declare type UserPreferences = UserConfigurablePreferences & InternalUserPreferences & AtlasOrgPreferences & AtlasProjectPreferences;
1872
1874
 
1873
- declare type UseTrackInSampleHook = (experimentName: ExperimentTestName_2, shouldFireEvent?: boolean, customProperties?: types.TypeData['experimentViewedProps'], team?: types.TypeData['loggerTeam']) => typesReact.BasicHookResponse;
1875
+ declare type UseTrackInSampleHook = (experimentName: ExperimentTestName, shouldFireEvent?: boolean, customProperties?: types.TypeData['experimentViewedProps'], team?: types.TypeData['loggerTeam']) => typesReact.BasicHookResponse;
1874
1876
 
1875
1877
  /**
1876
1878
  * Config object passed into the {@link useTrackIsInSample} hook.