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
Copy file name to clipboardExpand all lines: src/types/campaigns.ts
+48-38Lines changed: 48 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -146,45 +146,55 @@ export const CampaignMetricsResponseSchema = z
146
146
.describe("Parsed campaign metrics data");
147
147
148
148
// Campaign creation schemas
149
-
exportconstCreateCampaignParamsSchema=z.object({
150
-
name: z.string().describe("The name to use in Iterable for the new campaign"),
151
-
templateId: z
152
-
.number()
153
-
.describe("The ID of a template to associate with the new campaign"),
154
-
listIds: z
155
-
.array(z.number())
156
-
.describe(
157
-
"Array of list IDs to which the campaign should be sent (for blast campaigns)"
158
-
)
159
-
.optional(),
160
-
campaignDataFields: z
161
-
.record(z.string(),z.any())
162
-
.optional()
163
-
.describe(
164
-
"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."
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."
0 commit comments