@eide/foir-cli 0.15.1 → 0.16.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/cli.js +27 -6
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -2102,7 +2102,8 @@ import {
|
|
|
2102
2102
|
GetAssignmentsRequestSchema,
|
|
2103
2103
|
ListExperimentDeclarationsRequestSchema,
|
|
2104
2104
|
ExperimentVariantSchema,
|
|
2105
|
-
ExperimentGoalSchema
|
|
2105
|
+
ExperimentGoalSchema,
|
|
2106
|
+
ExperimentFunnelStepSchema
|
|
2106
2107
|
} from "@eide/foir-proto-ts/experiments/v1/experiments_pb";
|
|
2107
2108
|
import { ExperimentStatus as ExperimentStatus2 } from "@eide/foir-proto-ts/experiments/v1/experiments_pb";
|
|
2108
2109
|
var STATUS_TO_PROTO = {
|
|
@@ -2164,9 +2165,18 @@ function createExperimentsMethods(client) {
|
|
|
2164
2165
|
(g) => create7(ExperimentGoalSchema, {
|
|
2165
2166
|
key: g.key,
|
|
2166
2167
|
name: g.name,
|
|
2167
|
-
description: g.description
|
|
2168
|
+
description: g.description,
|
|
2169
|
+
isPrimary: g.isPrimary ?? false
|
|
2168
2170
|
})
|
|
2169
|
-
) ?? []
|
|
2171
|
+
) ?? [],
|
|
2172
|
+
funnelSteps: params.funnelSteps?.map(
|
|
2173
|
+
(s) => create7(ExperimentFunnelStepSchema, {
|
|
2174
|
+
goalKey: s.goalKey,
|
|
2175
|
+
name: s.name,
|
|
2176
|
+
description: s.description
|
|
2177
|
+
})
|
|
2178
|
+
) ?? [],
|
|
2179
|
+
exclusionGroupKey: params.exclusionGroupKey
|
|
2170
2180
|
})
|
|
2171
2181
|
);
|
|
2172
2182
|
return resp.experiment ?? null;
|
|
@@ -2191,10 +2201,21 @@ function createExperimentsMethods(client) {
|
|
|
2191
2201
|
(g) => create7(ExperimentGoalSchema, {
|
|
2192
2202
|
key: g.key,
|
|
2193
2203
|
name: g.name,
|
|
2194
|
-
description: g.description
|
|
2204
|
+
description: g.description,
|
|
2205
|
+
isPrimary: g.isPrimary ?? false
|
|
2206
|
+
})
|
|
2207
|
+
) ?? [],
|
|
2208
|
+
goalsClear: params.goalsClear ?? false,
|
|
2209
|
+
funnelSteps: params.funnelSteps?.map(
|
|
2210
|
+
(s) => create7(ExperimentFunnelStepSchema, {
|
|
2211
|
+
goalKey: s.goalKey,
|
|
2212
|
+
name: s.name,
|
|
2213
|
+
description: s.description
|
|
2195
2214
|
})
|
|
2196
2215
|
) ?? [],
|
|
2197
|
-
|
|
2216
|
+
funnelStepsClear: params.funnelStepsClear ?? false,
|
|
2217
|
+
exclusionGroupKey: params.exclusionGroupKey,
|
|
2218
|
+
exclusionGroupKeyClear: params.exclusionGroupKeyClear ?? false
|
|
2198
2219
|
})
|
|
2199
2220
|
);
|
|
2200
2221
|
return resp.experiment ?? null;
|
|
@@ -3777,7 +3798,7 @@ async function parseInputData(opts) {
|
|
|
3777
3798
|
function isUUID(value) {
|
|
3778
3799
|
return /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(
|
|
3779
3800
|
value
|
|
3780
|
-
) || /^
|
|
3801
|
+
) || /^[a-z][a-z0-9]{23,31}$/.test(value);
|
|
3781
3802
|
}
|
|
3782
3803
|
function parseFilters(filterStr) {
|
|
3783
3804
|
if (!filterStr) return [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eide/foir-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Universal platform CLI for Foir platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@bufbuild/protovalidate": "^1.1.1",
|
|
51
51
|
"@connectrpc/connect": "^2.0.0",
|
|
52
52
|
"@connectrpc/connect-node": "^2.0.0",
|
|
53
|
-
"@eide/foir-proto-ts": "^0.
|
|
53
|
+
"@eide/foir-proto-ts": "^0.44.0",
|
|
54
54
|
"chalk": "^5.3.0",
|
|
55
55
|
"commander": "^12.1.0",
|
|
56
56
|
"dotenv": "^16.4.5",
|