You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -145,56 +144,68 @@ export const CampaignMetricsResponseSchema = z
145
144
.array(z.record(z.string(),z.string()))
146
145
.describe("Parsed campaign metrics data");
147
146
148
-
// Campaign creation schemas
149
-
exportconstCreateCampaignParamsSchema=z
150
-
.object({
151
-
name: z
152
-
.string()
153
-
.describe("The name to use in Iterable for the new campaign"),
154
-
templateId: z
155
-
.number()
156
-
.describe("The ID of a template to associate with the new campaign"),
157
-
listIds: z
158
-
.array(z.number())
159
-
.describe(
160
-
"Array of list IDs to which the campaign should be sent (for blast campaigns)"
161
-
)
162
-
.optional(),
163
-
campaignDataFields: z
164
-
.record(z.string(),z.any())
165
-
.optional()
166
-
.describe(
167
-
"A JSON object containing campaign-level data fields that are available as merge parameters (for example, {{field}}) during message rendering. These fields are available in templates, data feed URLs, and all other contexts where merge parameters are supported. Campaign-level fields are overridden by user and event data fields of the same name."
"Scheduled send time for blast campaign (YYYY-MM-DD HH:MM:SS UTC). Required when listIds is provided."
147
+
// Shared campaign data fields used by both blast and triggered campaign creation
148
+
constcampaignDataFieldsSchema=z
149
+
.record(z.string(),z.any())
150
+
.optional()
151
+
.describe(
152
+
"A JSON object containing campaign-level data fields that are available as merge parameters (for example, {{field}}) during message rendering. These fields are available in templates, data feed URLs, and all other contexts where merge parameters are supported. Campaign-level fields are overridden by user and event data fields of the same name."
0 commit comments