@naturalcycles/abba 2.7.2 → 2.7.3

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/abba.d.ts CHANGED
@@ -31,7 +31,7 @@ export declare class Abba {
31
31
  * Update experiment information, will also validate the buckets' ratio if experiment.active is true
32
32
  * Cold method.
33
33
  */
34
- saveExperiment(experiment: Experiment, buckets: Unsaved<Bucket>[]): Promise<ExperimentWithBuckets>;
34
+ saveExperiment(experiment: Experiment, buckets: (Unsaved<Bucket> | BucketInput)[]): Promise<ExperimentWithBuckets>;
35
35
  private updateExclusions;
36
36
  softDeleteExperiment(experimentId: string): Promise<void>;
37
37
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/abba",
3
3
  "type": "module",
4
- "version": "2.7.2",
4
+ "version": "2.7.3",
5
5
  "dependencies": {
6
6
  "@naturalcycles/db-lib": "^10",
7
7
  "@naturalcycles/js-lib": "^15",
package/src/abba.ts CHANGED
@@ -157,7 +157,7 @@ export class Abba {
157
157
  */
158
158
  async saveExperiment(
159
159
  experiment: Experiment,
160
- buckets: Unsaved<Bucket>[],
160
+ buckets: (Unsaved<Bucket> | BucketInput)[],
161
161
  ): Promise<ExperimentWithBuckets> {
162
162
  if (experiment.status === AssignmentStatus.Active) {
163
163
  validateTotalBucketRatio(buckets)