@koda-sl/baker-cli 0.212.0 → 0.213.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
@@ -1441,7 +1441,7 @@ var resolvePreviewSchema = z2.object({
1441
1441
  website: z2.string().nullable(),
1442
1442
  followers: z2.number().nullable()
1443
1443
  });
1444
- var followedStatusSchema = z2.enum(["discovering", "ready"]);
1444
+ var followedStatusSchema = z2.enum(["discovering", "ingesting", "ready"]);
1445
1445
  var followedAdvertiserSchema = z2.object({
1446
1446
  // Baker subscription row id (used to unfollow).
1447
1447
  followed_id: z2.string(),
@@ -1453,9 +1453,15 @@ var followedAdvertiserSchema = z2.object({
1453
1453
  active_ad_count: z2.number().nullable(),
1454
1454
  total_ad_count: z2.number().nullable(),
1455
1455
  family_count: z2.number().nullable(),
1456
- // Progress while status === "discovering".
1456
+ // Progress while status is "discovering" or "ingesting". `adding_ingested`
1457
+ // and `adding_enqueued` are both counts for the CURRENT run, so they read as
1458
+ // a fraction; `total_ad_count` is the brand's whole corpus and is not.
1457
1459
  adding_discovered: z2.number().nullable(),
1458
- adding_enqueued: z2.number().nullable()
1460
+ adding_enqueued: z2.number().nullable(),
1461
+ adding_ingested: z2.number().nullable(),
1462
+ // A discovery job ended in failure, so this brand's ads are under-counted.
1463
+ // Distinguishes "we couldn't finish looking" from "this brand runs no ads".
1464
+ discovery_failed: z2.boolean().nullable()
1459
1465
  });
1460
1466
  var followingListResponseSchema = z2.object({
1461
1467
  following: z2.array(followedAdvertiserSchema)
@@ -44223,7 +44229,8 @@ function compactFollowed(record) {
44223
44229
  total_ad_count: record.total_ad_count ?? null,
44224
44230
  family_count: record.family_count ?? null,
44225
44231
  adding_discovered: record.adding_discovered ?? null,
44226
- adding_enqueued: record.adding_enqueued ?? null
44232
+ adding_enqueued: record.adding_enqueued ?? null,
44233
+ adding_ingested: record.adding_ingested ?? null
44227
44234
  };
44228
44235
  }
44229
44236
  function followingNormalizer(record, full) {