@koda-sl/baker-cli 0.319.0 → 0.320.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
@@ -14808,6 +14808,14 @@ var analyticsQueryRequestSchema = z31.object({
14808
14808
  * came for — a deal a CRM posted names the person and carries no cookie.
14809
14809
  */
14810
14810
  anonId: z31.string().max(120).optional(),
14811
+ /**
14812
+ * `stream` and `session`: one person by any key the store recognises them
14813
+ * by — a contact digest, a CRM id, a click id, a platform cookie — for the
14814
+ * rows a system posted about somebody no browser has named yet. A browser
14815
+ * wins when both are given.
14816
+ */
14817
+ personKind: z31.string().max(40).optional(),
14818
+ personValue: z31.string().max(255).optional(),
14811
14819
  /**
14812
14820
  * `people` only: keep only the visitors who converted.
14813
14821
  *
@@ -14844,9 +14852,9 @@ var analyticsQueryRequestSchema = z31.object({
14844
14852
  message: "The 'page' preset needs --path",
14845
14853
  path: ["path"]
14846
14854
  }).refine(
14847
- (value) => value.preset !== "session" || typeof value.sessionId === "string" || typeof value.anonId === "string",
14855
+ (value) => value.preset !== "session" || typeof value.sessionId === "string" || typeof value.anonId === "string" || typeof value.personValue === "string",
14848
14856
  {
14849
- message: "The 'session' preset needs --session or a browser id",
14857
+ message: "The 'session' preset needs --session, a browser id or a person key",
14850
14858
  path: ["sessionId"]
14851
14859
  }
14852
14860
  ).refine((value) => value.property === void 0 || typeof value.eventName === "string", {
@@ -14877,6 +14885,13 @@ var analyticsTotalsSchema = z31.object({
14877
14885
  * {@link convertingSessions}, and of `sessions`.
14878
14886
  */
14879
14887
  conversions: z31.number().int().nonnegative(),
14888
+ /**
14889
+ * Conversions in the window that no landing earned — by people none of the
14890
+ * company's pages saw. Not in `conversions`, which is a page metric; shown
14891
+ * beside it so a deal a CRM reported is never a silent zero. Zero under any
14892
+ * scope.
14893
+ */
14894
+ unplacedConversions: z31.number().int().nonnegative().default(0),
14880
14895
  /** Visits that produced at least one conversion. Never above `sessions`. */
14881
14896
  convertingSessions: z31.number().int().nonnegative(),
14882
14897
  /**
@@ -15369,8 +15384,14 @@ var analyticsConversionRowSchema = z31.object({
15369
15384
  * accident; saying so is what makes it findable.
15370
15385
  */
15371
15386
  countMode: z31.string(),
15372
- /** Counted the way each definition asked to be counted. */
15387
+ /** Counted the way each definition asked to be counted, and credited to a landing. */
15373
15388
  conversions: z31.number(),
15389
+ /**
15390
+ * Times it happened that no landing earned: by people none of the company's
15391
+ * pages saw, within 90 days. Zero under a landing or an ad scope, where the
15392
+ * gap would mean something else. Absent on a row built before it existed.
15393
+ */
15394
+ unplaced: z31.number().default(0),
15374
15395
  /** Distinct visits that produced it, never mode-adjusted. The gap between the two is the repeat behaviour. */
15375
15396
  convertingVisits: z31.number(),
15376
15397
  /** Null when it has never fired. */
@@ -30352,6 +30373,7 @@ function mergeStoredWithCounts(stored, reported) {
30352
30373
  // would make it indistinguishable from one nobody has named.
30353
30374
  conversions: counted?.conversions ?? 0,
30354
30375
  convertingVisits: counted?.convertingVisits ?? 0,
30376
+ unplaced: counted?.unplaced ?? 0,
30355
30377
  lastSeen: counted?.lastSeen ?? null,
30356
30378
  doors: counted?.doors ?? [],
30357
30379
  ...rows.some((row) => row.staged === true) ? { staged: true } : {}