@naturalcycles/abba 1.2.0 → 1.3.0
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.js +2 -2
- package/dist/prisma-output/index-browser.js +0 -5
- package/dist/prisma-output/index.d.ts +0 -11
- package/dist/prisma-output/index.js +2 -7
- package/dist/prisma-output/schema.prisma +2 -2
- package/dist/util.d.ts +7 -14
- package/dist/util.js +18 -29
- package/package.json +1 -2
- package/readme.md +8 -8
- package/src/abba.ts +3 -3
- package/src/prisma-output/index-browser.js +0 -5
- package/src/prisma-output/index.d.ts +0 -11
- package/src/prisma-output/index.js +2 -7
- package/src/prisma-output/schema.prisma +2 -2
- package/src/util.ts +12 -20
package/dist/abba.js
CHANGED
|
@@ -31,7 +31,7 @@ class Abba {
|
|
|
31
31
|
*/
|
|
32
32
|
async createExperiment(experiment, buckets) {
|
|
33
33
|
if (experiment.status === types_1.AssignmentStatus.Active) {
|
|
34
|
-
(0, util_1.
|
|
34
|
+
(0, util_1.validateTotalBucketRatio)(buckets);
|
|
35
35
|
}
|
|
36
36
|
const created = await this.client.experiment.create({
|
|
37
37
|
data: {
|
|
@@ -60,7 +60,7 @@ class Abba {
|
|
|
60
60
|
*/
|
|
61
61
|
async saveExperiment(id, experiment, buckets) {
|
|
62
62
|
if (experiment.status === types_1.AssignmentStatus.Active) {
|
|
63
|
-
(0, util_1.
|
|
63
|
+
(0, util_1.validateTotalBucketRatio)(buckets);
|
|
64
64
|
}
|
|
65
65
|
const updatedExperiment = await this.updateExperiment(id, experiment);
|
|
66
66
|
const updatedBuckets = await this.saveBuckets(buckets);
|
|
@@ -113,11 +113,6 @@ exports.Prisma.NullableJsonNullValueInput = makeEnum({
|
|
|
113
113
|
JsonNull: 'JsonNull',
|
|
114
114
|
})
|
|
115
115
|
|
|
116
|
-
exports.Prisma.QueryMode = makeEnum({
|
|
117
|
-
default: 'default',
|
|
118
|
-
insensitive: 'insensitive',
|
|
119
|
-
})
|
|
120
|
-
|
|
121
116
|
exports.Prisma.JsonNullValueFilter = makeEnum({
|
|
122
117
|
DbNull: 'DbNull',
|
|
123
118
|
JsonNull: 'JsonNull',
|
|
@@ -3920,13 +3920,6 @@ export namespace Prisma {
|
|
|
3920
3920
|
export type NullableJsonNullValueInput =
|
|
3921
3921
|
typeof NullableJsonNullValueInput[keyof typeof NullableJsonNullValueInput]
|
|
3922
3922
|
|
|
3923
|
-
export const QueryMode: {
|
|
3924
|
-
default: 'default'
|
|
3925
|
-
insensitive: 'insensitive'
|
|
3926
|
-
}
|
|
3927
|
-
|
|
3928
|
-
export type QueryMode = typeof QueryMode[keyof typeof QueryMode]
|
|
3929
|
-
|
|
3930
3923
|
export const JsonNullValueFilter: {
|
|
3931
3924
|
DbNull: 'DbNull'
|
|
3932
3925
|
JsonNull: 'JsonNull'
|
|
@@ -4338,7 +4331,6 @@ export namespace Prisma {
|
|
|
4338
4331
|
contains?: string
|
|
4339
4332
|
startsWith?: string
|
|
4340
4333
|
endsWith?: string
|
|
4341
|
-
mode?: QueryMode
|
|
4342
4334
|
not?: NestedStringFilter | string
|
|
4343
4335
|
}
|
|
4344
4336
|
|
|
@@ -4434,7 +4426,6 @@ export namespace Prisma {
|
|
|
4434
4426
|
contains?: string
|
|
4435
4427
|
startsWith?: string
|
|
4436
4428
|
endsWith?: string
|
|
4437
|
-
mode?: QueryMode
|
|
4438
4429
|
not?: NestedStringWithAggregatesFilter | string
|
|
4439
4430
|
_count?: NestedIntFilter
|
|
4440
4431
|
_min?: NestedStringFilter
|
|
@@ -4466,7 +4457,6 @@ export namespace Prisma {
|
|
|
4466
4457
|
contains?: string
|
|
4467
4458
|
startsWith?: string
|
|
4468
4459
|
endsWith?: string
|
|
4469
|
-
mode?: QueryMode
|
|
4470
4460
|
not?: NestedStringNullableFilter | string | null
|
|
4471
4461
|
}
|
|
4472
4462
|
export type JsonNullableFilter =
|
|
@@ -4548,7 +4538,6 @@ export namespace Prisma {
|
|
|
4548
4538
|
contains?: string
|
|
4549
4539
|
startsWith?: string
|
|
4550
4540
|
endsWith?: string
|
|
4551
|
-
mode?: QueryMode
|
|
4552
4541
|
not?: NestedStringNullableWithAggregatesFilter | string | null
|
|
4553
4542
|
_count?: NestedIntNullableFilter
|
|
4554
4543
|
_min?: NestedStringNullableFilter
|