@koda-sl/baker-cli 0.254.0 → 0.255.0-dev.9688d6d20

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
@@ -58,7 +58,7 @@ import {
58
58
  ulid,
59
59
  validateCanvasDeep,
60
60
  ytDlpBlockSignal
61
- } from "./chunk-SJPRTSGY.js";
61
+ } from "./chunk-HBDGUVUH.js";
62
62
  import {
63
63
  csvOrJson,
64
64
  daysAgoIso,
@@ -4593,6 +4593,24 @@ var FLOW_SIDE_EFFECT_CATALOG = [
4593
4593
  gotcha: "`eventTagId` comes from X Events Manager and is passed verbatim. `eventName` is an optional label only.",
4594
4594
  reference: TAGS_REF
4595
4595
  },
4596
+ {
4597
+ kind: "side-effect",
4598
+ type: "microsoftAds",
4599
+ summary: "Fires a Microsoft Ads (UET) conversion event.",
4600
+ skeleton: {
4601
+ ...SIDE_EFFECT_ENVELOPE,
4602
+ type: "microsoftAds",
4603
+ tagIds: TAG_REF_SLOT,
4604
+ eventName: "<UET event action, e.g. lead_submitted>",
4605
+ userMatching: matchingSlots("em", "ph"),
4606
+ value: null,
4607
+ currency: null,
4608
+ transactionId: null
4609
+ },
4610
+ owners: { tagIds: "tags" },
4611
+ gotcha: "`eventName` is the UET *event action*, and it only counts as a conversion once someone creates a matching custom-event conversion goal in Microsoft Advertising \u2014 the tag alone records nothing. `page_view` is refused outright (UET reserves it for SPA navigation), so pick any other action. `eventCategory` and `eventLabel` are optional plain strings (not mapped slots) \u2014 add them only when the goal filters on them. `userMatching` needs Enhanced conversions turned on for that goal, and `ph` must carry a country code (`+34\u2026`/`0034\u2026`) \u2014 map it from a phone field with the country picker, not a plain text field, or it is dropped rather than guessed at.",
4612
+ reference: TAGS_REF
4613
+ },
4596
4614
  eventSideEffect("posthog", "Captures a PostHog event.", { eventParams: [] }),
4597
4615
  {
4598
4616
  kind: "side-effect",
@@ -6035,7 +6053,8 @@ var TAG_TYPES = [
6035
6053
  "posthog",
6036
6054
  "datafast",
6037
6055
  "recaptcha",
6038
- "twitterAds"
6056
+ "twitterAds",
6057
+ "microsoftAds"
6039
6058
  ];
6040
6059
  var tagTypeSchema = z19.enum(TAG_TYPES);
6041
6060
  var TAG_IDENTIFYING_FIELD = {
@@ -6056,7 +6075,8 @@ var TAG_IDENTIFYING_FIELD = {
6056
6075
  posthog: "projectToken",
6057
6076
  datafast: "websiteId",
6058
6077
  recaptcha: "siteKey",
6059
- twitterAds: "pixelId"
6078
+ twitterAds: "pixelId",
6079
+ microsoftAds: "tagId"
6060
6080
  };
6061
6081
  var tagDraftOpKindSchema = z19.enum(["create", "update", "delete"]);
6062
6082
  var tagDraftOpViewSchema = z19.object({
@@ -34703,6 +34723,10 @@ var MAPPING_SLOTS = {
34703
34723
  twitterAds: [
34704
34724
  { kind: "record", key: "userMatching", allowed: ["em", "ph"] },
34705
34725
  { kind: "scalar", keys: ["value", "currency"] }
34726
+ ],
34727
+ microsoftAds: [
34728
+ { kind: "record", key: "userMatching", allowed: ["em", "ph"] },
34729
+ { kind: "scalar", keys: ["value", "currency", "transactionId"] }
34706
34730
  ]
34707
34731
  };
34708
34732
  var UNMAPPABLE = {