@koda-sl/baker-cli 0.238.0 → 0.239.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 CHANGED
@@ -12562,7 +12562,9 @@ var analyticsDimensionRowSchema = z24.object({
12562
12562
  var analyticsFunnelStepSchema = z24.object({
12563
12563
  stepId: z24.string(),
12564
12564
  stepIndex: z24.number().int().nonnegative(),
12565
+ /** Visits that moved forward into this step. Never events — see `visits`. */
12565
12566
  views: z24.number().int().nonnegative(),
12567
+ /** Visits that finished this step and moved on. */
12566
12568
  completions: z24.number().int().nonnegative(),
12567
12569
  /** Share of viewers who did not complete this step, 0–1. */
12568
12570
  dropRate: z24.number().min(0).max(1).nullable(),
@@ -12574,13 +12576,37 @@ var analyticsFunnelStepSchema = z24.object({
12574
12576
  * conversion, and knowing which step owns it is what stops a drop-off chart
12575
12577
  * treating the booking widget's "profile viewed" as a funnel stage.
12576
12578
  */
12577
- convertedSessions: z24.number().int().nonnegative()
12579
+ convertedSessions: z24.number().int().nonnegative(),
12580
+ /**
12581
+ * This step is where the Form ends — a confirmation screen, not a loss.
12582
+ *
12583
+ * Stated rather than left to be inferred. The dashboard used to read it off
12584
+ * `dropRate === null`, which is also how a step nobody viewed arrives, so a
12585
+ * converting link node in the middle of a Form was labelled its ending.
12586
+ */
12587
+ isEnding: z24.boolean()
12578
12588
  });
12579
12589
  var analyticsFunnelSchema = z24.object({
12580
12590
  flowSlug: z24.string(),
12591
+ /**
12592
+ * Visits that saw the Form at all — the denominator for every share here.
12593
+ *
12594
+ * Read this, not `starts`, whenever the question is "out of how many". A
12595
+ * start is recorded at the visitor's FIRST INTERACTION, so the two differ by
12596
+ * exactly the people who looked at the Form and never touched it — usually
12597
+ * most of them, and always the group a drop-off chart exists to find.
12598
+ *
12599
+ * Every count in this object is distinct visits, including each step's
12600
+ * `views` and `completions`. That is load-bearing rather than incidental:
12601
+ * the screen divides these by each other, and while the steps counted events
12602
+ * a Form four people had opened reported one step reached fifteen times and
12603
+ * fourteen people lost.
12604
+ */
12605
+ visits: z24.number().int().nonnegative(),
12606
+ /** Visits that interacted with the Form at all — typed, picked, or advanced. */
12581
12607
  starts: z24.number().int().nonnegative(),
12582
12608
  submits: z24.number().int().nonnegative(),
12583
- /** Submits per start, 0–1. */
12609
+ /** Conversions per visit that opened the Form, 0–1. */
12584
12610
  completionRate: z24.number().min(0).max(1).nullable(),
12585
12611
  /** The step losing the most people. The single most useful field here. */
12586
12612
  worstStep: analyticsFunnelStepSchema.nullable(),
@@ -23754,7 +23780,7 @@ var funnelCommand = presetCommand({
23754
23780
  var flowCommand = presetCommand({
23755
23781
  name: "flow",
23756
23782
  preset: "flow",
23757
- description: "One Form in depth: how many people it converted, where they went between steps, the per-step table, and every trigger it raised. Read `flowSummary.convertedSessions`, not `submits` \u2014 a Form that books a call on a scheduling node in the MIDDLE of the flow never emits a submit, so it reports zero submits and every one of its real bookings as conversions. `flowPaths` is the flow as edges between steps, bracketed by __flow_start__, __flow_converted__ and __flow_exit__, which is how a branching Form is read at all: a per-step table cannot say that of the people who left step two, forty went to the booking branch and ninety went nowhere.",
23783
+ description: "One Form in depth: how many people it converted, where they went between steps, the per-step table, and every trigger it raised. Every count is DISTINCT VISITS, so quote shares against `funnels[].visits` \u2014 the visits that opened the Form \u2014 and never against `starts`, which is only the visits that touched it. The gap between the two is people who read the Form and left, and on most Forms it is the largest loss there is. Read `flowSummary.convertedSessions`, not `submits` \u2014 a Form that books a call on a scheduling node in the MIDDLE of the flow never emits a submit, so it reports zero submits and every one of its real bookings as conversions. `flowPaths` is the flow as edges between steps, bracketed by __flow_start__, __flow_converted__ and __flow_exit__, which is how a branching Form is read at all: a per-step table cannot say that of the people who left step two, forty went to the booking branch and ninety went nowhere.",
23758
23784
  extraArgs: { flow: { type: "string", description: "Form slug (default: every Form)", required: false } },
23759
23785
  resolve: (args) => ({ preset: "flow", flowSlug: args.flow ? String(args.flow) : void 0 })
23760
23786
  });