@koda-sl/baker-cli 0.383.0 → 0.384.0-dev.4699b7308

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
@@ -70,7 +70,7 @@ import {
70
70
  validateCanvasDeep,
71
71
  withoutCastName,
72
72
  ytDlpBlockSignal
73
- } from "./chunk-FGHMWBUD.js";
73
+ } from "./chunk-CHJOTJTZ.js";
74
74
  import {
75
75
  NAME_CONTAINS_ARG,
76
76
  csvOrJson,
@@ -299,7 +299,6 @@ var chatActionDraftOpViewSchema = z.object({
299
299
  targetActionId: z.string().optional(),
300
300
  tempId: z.string().optional(),
301
301
  tags: z.array(z.string()).optional(),
302
- priority: actionPrioritySchema.nullable().optional(),
303
302
  reason: z.string().optional(),
304
303
  note: z.string().optional(),
305
304
  name: z.string().optional(),
@@ -5124,6 +5123,16 @@ var FLOW_SIDE_EFFECT_CATALOG = [
5124
5123
  },
5125
5124
  "`advancedMatching` is how Meta re-identifies the visitor, and it is the difference between a matched conversion and a discarded one. Fill at least `em` and `ph` from the form: `baker flows map <slug> --map em=email --map ph=phone`."
5126
5125
  ),
5126
+ eventSideEffect(
5127
+ "chatgptAds",
5128
+ "Fires a ChatGPT Ads pixel conversion and mirrors it through the Conversions API when a key is configured.",
5129
+ {
5130
+ eventType: "standard",
5131
+ eventParams: [],
5132
+ advancedMatching: matchingSlots("em", "ph", "fn", "ln", "external_id", "ct", "st", "zp", "country")
5133
+ },
5134
+ "Use ChatGPT Ads event names such as lead_created, order_created or appointment_scheduled. For a custom event use a lowercase name of 1\u201364 letters, digits, underscores or dashes. Only value (major currency units) and currency are supported in eventParams. Map em from the form to improve conversion matching."
5135
+ ),
5127
5136
  eventSideEffect("googleAnalytics", "Fires a GA4 event.", { eventType: "custom", eventParams: [] }),
5128
5137
  {
5129
5138
  kind: "side-effect",
@@ -8036,6 +8045,7 @@ var studioImproveResponseSchema = z27.object({ prompt: z27.string(), original: z
8036
8045
  import { z as z28 } from "zod";
8037
8046
  var TAG_TYPES = [
8038
8047
  "meta",
8048
+ "chatgptAds",
8039
8049
  "amplitude",
8040
8050
  "googleAds",
8041
8051
  "tiktok",
@@ -8057,6 +8067,7 @@ var TAG_TYPES = [
8057
8067
  var tagTypeSchema = z28.enum(TAG_TYPES);
8058
8068
  var TAG_IDENTIFYING_FIELD = {
8059
8069
  meta: "pixelId",
8070
+ chatgptAds: "pixelId",
8060
8071
  googleAds: "conversionID",
8061
8072
  tiktok: "pixelCode",
8062
8073
  pinterest: "tagId",
@@ -15027,7 +15038,14 @@ function parseEventKey(key) {
15027
15038
  }
15028
15039
 
15029
15040
  // ../api/src/analytics/sends.ts
15030
- var SEND_PLATFORMS = ["meta", "googleAds", "linkedinInsightTag", "twitterAds", "googleAnalytics"];
15041
+ var SEND_PLATFORMS = [
15042
+ "meta",
15043
+ "chatgptAds",
15044
+ "googleAds",
15045
+ "linkedinInsightTag",
15046
+ "twitterAds",
15047
+ "googleAnalytics"
15048
+ ];
15031
15049
  function isSendPlatform(value) {
15032
15050
  return SEND_PLATFORMS.includes(value);
15033
15051
  }
@@ -15039,6 +15057,13 @@ var SEND_PLATFORM_SPECS = {
15039
15057
  credentialFields: ["accessToken"],
15040
15058
  setupHint: "Add the Conversions API access token to the Meta pixel in Tracking"
15041
15059
  },
15060
+ chatgptAds: {
15061
+ title: "ChatGPT Ads",
15062
+ eventMeans: "A ChatGPT Ads event \u2014 lead_created, order_created, or a custom name",
15063
+ eventKind: "name",
15064
+ credentialFields: ["apiKey"],
15065
+ setupHint: "Add the Conversions API key to the ChatGPT Ads pixel in Tracking"
15066
+ },
15042
15067
  googleAds: {
15043
15068
  title: "Google Ads",
15044
15069
  eventMeans: "One of the account's conversion actions, picked from its list",
@@ -15089,6 +15114,7 @@ function isConversionSend(type) {
15089
15114
  }
15090
15115
  var SERVER_SIDE_SENDER_TAG = {
15091
15116
  metaCapi: "meta",
15117
+ chatgptAdsCapi: "chatgptAds",
15092
15118
  googleAdsCapi: "googleAds",
15093
15119
  linkedinCapi: "linkedinInsightTag",
15094
15120
  twitterAdsCapi: "twitterAds",
@@ -49569,6 +49595,14 @@ var MAPPING_SLOTS = {
49569
49595
  code: [PAYLOAD("eventProperties")],
49570
49596
  datafast: [PAYLOAD("goalParams")],
49571
49597
  meta: [PAYLOAD("eventParams"), { kind: "record", key: "advancedMatching", allowed: META_MATCHING }],
49598
+ chatgptAds: [
49599
+ PAYLOAD("eventParams"),
49600
+ {
49601
+ kind: "record",
49602
+ key: "advancedMatching",
49603
+ allowed: ["em", "ph", "fn", "ln", "external_id", "ct", "st", "zp", "country"]
49604
+ }
49605
+ ],
49572
49606
  tiktok: [
49573
49607
  PAYLOAD("eventParams"),
49574
49608
  { kind: "record", key: "identify", allowed: ["email", "phone_number", "external_id"] }