@ninetailed/experience.js-utils 3.0.2 → 3.0.3-beta.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/package.json +3 -3
- package/types/Audience.d.ts +2 -2
- package/types/Config.d.ts +2 -2
- package/types/Experience.d.ts +4 -4
- package/types/Experiment.d.ts +4 -4
- package/types/Variant.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninetailed/experience.js-utils",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3-beta.0",
|
|
4
4
|
"module": "./index.js",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@ninetailed/experience.js": "3.0.
|
|
10
|
-
"@ninetailed/experience.js-shared": "3.0.
|
|
9
|
+
"@ninetailed/experience.js": "3.0.3-beta.0",
|
|
10
|
+
"@ninetailed/experience.js-shared": "3.0.3-beta.0",
|
|
11
11
|
"zod": "3.20.2"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {}
|
package/types/Audience.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export declare const Audience: z.ZodObject<{
|
|
|
6
6
|
}, {
|
|
7
7
|
id: string;
|
|
8
8
|
}>;
|
|
9
|
-
export
|
|
10
|
-
export
|
|
9
|
+
export type AudienceLike = z.input<typeof Audience>;
|
|
10
|
+
export type Audience = z.infer<typeof Audience>;
|
package/types/Config.d.ts
CHANGED
|
@@ -63,8 +63,8 @@ export declare const Config: z.ZodObject<{
|
|
|
63
63
|
}[];
|
|
64
64
|
}[] | undefined;
|
|
65
65
|
}>;
|
|
66
|
-
export
|
|
67
|
-
export
|
|
66
|
+
export type ConfigLike = z.input<typeof Config>;
|
|
67
|
+
export type Config = z.infer<typeof Config>;
|
|
68
68
|
export interface BaselineWithVariantRefs {
|
|
69
69
|
baseline: Baseline;
|
|
70
70
|
variants: VariantRef[];
|
package/types/Experience.d.ts
CHANGED
|
@@ -147,12 +147,12 @@ export declare const ExperienceSchema: z.ZodObject<{
|
|
|
147
147
|
name: string;
|
|
148
148
|
type: string;
|
|
149
149
|
}>;
|
|
150
|
-
|
|
151
|
-
export
|
|
150
|
+
type ExperienceInput = z.input<typeof ExperienceSchema>;
|
|
151
|
+
export type ExperienceLike<Variant extends Reference = Reference> = Omit<ExperienceInput, 'variants'> & {
|
|
152
152
|
variants: Variant[];
|
|
153
153
|
};
|
|
154
|
-
|
|
155
|
-
export
|
|
154
|
+
type ExperienceOutput = z.infer<typeof ExperienceSchema>;
|
|
155
|
+
export type Experience<Variant extends Reference = Reference> = Omit<ExperienceOutput, 'variants'> & {
|
|
156
156
|
variants: Variant[];
|
|
157
157
|
};
|
|
158
158
|
export declare const Experience: {
|
package/types/Experiment.d.ts
CHANGED
|
@@ -135,12 +135,12 @@ export declare const ExperimentSchema: z.ZodObject<z.extendShape<{
|
|
|
135
135
|
name: string;
|
|
136
136
|
type: string;
|
|
137
137
|
}>;
|
|
138
|
-
|
|
139
|
-
export
|
|
138
|
+
type ExperimentInput = z.input<typeof ExperimentSchema>;
|
|
139
|
+
export type ExperimentLike<Variant extends Reference = Reference> = Omit<ExperimentInput, 'variants'> & {
|
|
140
140
|
variants: Variant[];
|
|
141
141
|
};
|
|
142
|
-
|
|
143
|
-
export
|
|
142
|
+
type ExperimentOutput = z.infer<typeof ExperienceSchema>;
|
|
143
|
+
export type Experiment<Variant extends Reference = Reference> = Omit<ExperimentOutput, 'variants'> & {
|
|
144
144
|
variants: Variant[];
|
|
145
145
|
};
|
|
146
146
|
export declare const Experiment: {
|
package/types/Variant.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ export declare const Variant: z.ZodObject<{
|
|
|
8
8
|
[x: string]: unknown;
|
|
9
9
|
id: string;
|
|
10
10
|
}>;
|
|
11
|
-
export
|
|
12
|
-
export
|
|
11
|
+
export type VariantLike = z.input<typeof Variant>;
|
|
12
|
+
export type Variant = z.infer<typeof Variant>;
|