@keystrokehq/moosend 0.1.0 → 0.1.2

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.
Files changed (247) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-segment-criteria.cjs +1 -1
  4. package/dist/actions/add-segment-criteria.cjs.map +1 -1
  5. package/dist/actions/add-segment-criteria.d.cts +25 -3
  6. package/dist/actions/add-segment-criteria.d.cts.map +1 -1
  7. package/dist/actions/add-segment-criteria.d.mts +25 -3
  8. package/dist/actions/add-segment-criteria.d.mts.map +1 -1
  9. package/dist/actions/add-segment-criteria.mjs +1 -1
  10. package/dist/actions/add-segment-criteria.mjs.map +1 -1
  11. package/dist/actions/add-subscriber.cjs +1 -1
  12. package/dist/actions/add-subscriber.cjs.map +1 -1
  13. package/dist/actions/add-subscriber.d.cts +25 -3
  14. package/dist/actions/add-subscriber.d.cts.map +1 -1
  15. package/dist/actions/add-subscriber.d.mts +25 -3
  16. package/dist/actions/add-subscriber.d.mts.map +1 -1
  17. package/dist/actions/add-subscriber.mjs +1 -1
  18. package/dist/actions/add-subscriber.mjs.map +1 -1
  19. package/dist/actions/clone-campaign.cjs +1 -1
  20. package/dist/actions/clone-campaign.cjs.map +1 -1
  21. package/dist/actions/clone-campaign.d.cts +16 -3
  22. package/dist/actions/clone-campaign.d.cts.map +1 -1
  23. package/dist/actions/clone-campaign.d.mts +16 -3
  24. package/dist/actions/clone-campaign.d.mts.map +1 -1
  25. package/dist/actions/clone-campaign.mjs +1 -1
  26. package/dist/actions/clone-campaign.mjs.map +1 -1
  27. package/dist/actions/create-custom-field.cjs +1 -1
  28. package/dist/actions/create-custom-field.cjs.map +1 -1
  29. package/dist/actions/create-custom-field.d.cts +32 -3
  30. package/dist/actions/create-custom-field.d.cts.map +1 -1
  31. package/dist/actions/create-custom-field.d.mts +32 -3
  32. package/dist/actions/create-custom-field.d.mts.map +1 -1
  33. package/dist/actions/create-custom-field.mjs +1 -1
  34. package/dist/actions/create-custom-field.mjs.map +1 -1
  35. package/dist/actions/create-mailing-list.cjs +1 -1
  36. package/dist/actions/create-mailing-list.cjs.map +1 -1
  37. package/dist/actions/create-mailing-list.d.cts +15 -3
  38. package/dist/actions/create-mailing-list.d.cts.map +1 -1
  39. package/dist/actions/create-mailing-list.d.mts +15 -3
  40. package/dist/actions/create-mailing-list.d.mts.map +1 -1
  41. package/dist/actions/create-mailing-list.mjs +1 -1
  42. package/dist/actions/create-mailing-list.mjs.map +1 -1
  43. package/dist/actions/create-segment.cjs +1 -1
  44. package/dist/actions/create-segment.cjs.map +1 -1
  45. package/dist/actions/create-segment.d.cts +41 -3
  46. package/dist/actions/create-segment.d.cts.map +1 -1
  47. package/dist/actions/create-segment.d.mts +41 -3
  48. package/dist/actions/create-segment.d.mts.map +1 -1
  49. package/dist/actions/create-segment.mjs +1 -1
  50. package/dist/actions/create-segment.mjs.map +1 -1
  51. package/dist/actions/delete-campaign.cjs.map +1 -1
  52. package/dist/actions/delete-campaign.d.cts +16 -3
  53. package/dist/actions/delete-campaign.d.cts.map +1 -1
  54. package/dist/actions/delete-campaign.d.mts +16 -3
  55. package/dist/actions/delete-campaign.d.mts.map +1 -1
  56. package/dist/actions/delete-campaign.mjs.map +1 -1
  57. package/dist/actions/delete-custom-field.cjs.map +1 -1
  58. package/dist/actions/delete-custom-field.d.cts +18 -3
  59. package/dist/actions/delete-custom-field.d.cts.map +1 -1
  60. package/dist/actions/delete-custom-field.d.mts +18 -3
  61. package/dist/actions/delete-custom-field.d.mts.map +1 -1
  62. package/dist/actions/delete-custom-field.mjs.map +1 -1
  63. package/dist/actions/delete-mailing-list.cjs.map +1 -1
  64. package/dist/actions/delete-mailing-list.d.cts +13 -3
  65. package/dist/actions/delete-mailing-list.d.cts.map +1 -1
  66. package/dist/actions/delete-mailing-list.d.mts +13 -3
  67. package/dist/actions/delete-mailing-list.d.mts.map +1 -1
  68. package/dist/actions/delete-mailing-list.mjs.map +1 -1
  69. package/dist/actions/get-all-campaigns.cjs +1 -1
  70. package/dist/actions/get-all-campaigns.cjs.map +1 -1
  71. package/dist/actions/get-all-campaigns.d.cts +13 -3
  72. package/dist/actions/get-all-campaigns.d.cts.map +1 -1
  73. package/dist/actions/get-all-campaigns.d.mts +13 -3
  74. package/dist/actions/get-all-campaigns.d.mts.map +1 -1
  75. package/dist/actions/get-all-campaigns.mjs +1 -1
  76. package/dist/actions/get-all-campaigns.mjs.map +1 -1
  77. package/dist/actions/get-all-subscribers.cjs +13 -13
  78. package/dist/actions/get-all-subscribers.cjs.map +1 -1
  79. package/dist/actions/get-all-subscribers.d.cts +53 -3
  80. package/dist/actions/get-all-subscribers.d.cts.map +1 -1
  81. package/dist/actions/get-all-subscribers.d.mts +53 -3
  82. package/dist/actions/get-all-subscribers.d.mts.map +1 -1
  83. package/dist/actions/get-all-subscribers.mjs +13 -13
  84. package/dist/actions/get-all-subscribers.mjs.map +1 -1
  85. package/dist/actions/get-campaign-details.cjs +1 -1
  86. package/dist/actions/get-campaign-details.cjs.map +1 -1
  87. package/dist/actions/get-campaign-details.d.cts +11 -3
  88. package/dist/actions/get-campaign-details.d.cts.map +1 -1
  89. package/dist/actions/get-campaign-details.d.mts +11 -3
  90. package/dist/actions/get-campaign-details.d.mts.map +1 -1
  91. package/dist/actions/get-campaign-details.mjs +1 -1
  92. package/dist/actions/get-campaign-details.mjs.map +1 -1
  93. package/dist/actions/get-campaign-stats-by-location.cjs +1 -1
  94. package/dist/actions/get-campaign-stats-by-location.cjs.map +1 -1
  95. package/dist/actions/get-campaign-stats-by-location.d.cts +11 -3
  96. package/dist/actions/get-campaign-stats-by-location.d.cts.map +1 -1
  97. package/dist/actions/get-campaign-stats-by-location.d.mts +11 -3
  98. package/dist/actions/get-campaign-stats-by-location.d.mts.map +1 -1
  99. package/dist/actions/get-campaign-stats-by-location.mjs +1 -1
  100. package/dist/actions/get-campaign-stats-by-location.mjs.map +1 -1
  101. package/dist/actions/get-mailing-list-details.cjs +13 -13
  102. package/dist/actions/get-mailing-list-details.cjs.map +1 -1
  103. package/dist/actions/get-mailing-list-details.d.cts +41 -3
  104. package/dist/actions/get-mailing-list-details.d.cts.map +1 -1
  105. package/dist/actions/get-mailing-list-details.d.mts +41 -3
  106. package/dist/actions/get-mailing-list-details.d.mts.map +1 -1
  107. package/dist/actions/get-mailing-list-details.mjs +13 -13
  108. package/dist/actions/get-mailing-list-details.mjs.map +1 -1
  109. package/dist/actions/get-subscriber-by-email.cjs +8 -8
  110. package/dist/actions/get-subscriber-by-email.cjs.map +1 -1
  111. package/dist/actions/get-subscriber-by-email.d.cts +33 -3
  112. package/dist/actions/get-subscriber-by-email.d.cts.map +1 -1
  113. package/dist/actions/get-subscriber-by-email.d.mts +33 -3
  114. package/dist/actions/get-subscriber-by-email.d.mts.map +1 -1
  115. package/dist/actions/get-subscriber-by-email.mjs +8 -8
  116. package/dist/actions/get-subscriber-by-email.mjs.map +1 -1
  117. package/dist/actions/list-all-mailing-lists.cjs +18 -18
  118. package/dist/actions/list-all-mailing-lists.cjs.map +1 -1
  119. package/dist/actions/list-all-mailing-lists.d.cts +61 -3
  120. package/dist/actions/list-all-mailing-lists.d.cts.map +1 -1
  121. package/dist/actions/list-all-mailing-lists.d.mts +61 -3
  122. package/dist/actions/list-all-mailing-lists.d.mts.map +1 -1
  123. package/dist/actions/list-all-mailing-lists.mjs +18 -18
  124. package/dist/actions/list-all-mailing-lists.mjs.map +1 -1
  125. package/dist/actions/list-all-senders.cjs +1 -1
  126. package/dist/actions/list-all-senders.cjs.map +1 -1
  127. package/dist/actions/list-all-senders.d.cts +21 -3
  128. package/dist/actions/list-all-senders.d.cts.map +1 -1
  129. package/dist/actions/list-all-senders.d.mts +21 -3
  130. package/dist/actions/list-all-senders.d.mts.map +1 -1
  131. package/dist/actions/list-all-senders.mjs +1 -1
  132. package/dist/actions/list-all-senders.mjs.map +1 -1
  133. package/dist/actions/list-campaigns-with-paging.cjs +8 -8
  134. package/dist/actions/list-campaigns-with-paging.cjs.map +1 -1
  135. package/dist/actions/list-campaigns-with-paging.d.cts +49 -3
  136. package/dist/actions/list-campaigns-with-paging.d.cts.map +1 -1
  137. package/dist/actions/list-campaigns-with-paging.d.mts +49 -3
  138. package/dist/actions/list-campaigns-with-paging.d.mts.map +1 -1
  139. package/dist/actions/list-campaigns-with-paging.mjs +8 -8
  140. package/dist/actions/list-campaigns-with-paging.mjs.map +1 -1
  141. package/dist/actions/list-segments.cjs +1 -1
  142. package/dist/actions/list-segments.cjs.map +1 -1
  143. package/dist/actions/list-segments.d.cts +46 -3
  144. package/dist/actions/list-segments.d.cts.map +1 -1
  145. package/dist/actions/list-segments.d.mts +46 -3
  146. package/dist/actions/list-segments.d.mts.map +1 -1
  147. package/dist/actions/list-segments.mjs +1 -1
  148. package/dist/actions/list-segments.mjs.map +1 -1
  149. package/dist/actions/remove-multiple-subscribers.cjs +1 -1
  150. package/dist/actions/remove-multiple-subscribers.cjs.map +1 -1
  151. package/dist/actions/remove-multiple-subscribers.d.cts +15 -3
  152. package/dist/actions/remove-multiple-subscribers.d.cts.map +1 -1
  153. package/dist/actions/remove-multiple-subscribers.d.mts +15 -3
  154. package/dist/actions/remove-multiple-subscribers.d.mts.map +1 -1
  155. package/dist/actions/remove-multiple-subscribers.mjs +1 -1
  156. package/dist/actions/remove-multiple-subscribers.mjs.map +1 -1
  157. package/dist/actions/schedule-campaign.cjs.map +1 -1
  158. package/dist/actions/schedule-campaign.d.cts +17 -3
  159. package/dist/actions/schedule-campaign.d.cts.map +1 -1
  160. package/dist/actions/schedule-campaign.d.mts +17 -3
  161. package/dist/actions/schedule-campaign.d.mts.map +1 -1
  162. package/dist/actions/schedule-campaign.mjs.map +1 -1
  163. package/dist/actions/send-campaign.cjs +1 -1
  164. package/dist/actions/send-campaign.cjs.map +1 -1
  165. package/dist/actions/send-campaign.d.cts +13 -3
  166. package/dist/actions/send-campaign.d.cts.map +1 -1
  167. package/dist/actions/send-campaign.d.mts +13 -3
  168. package/dist/actions/send-campaign.d.mts.map +1 -1
  169. package/dist/actions/send-campaign.mjs +1 -1
  170. package/dist/actions/send-campaign.mjs.map +1 -1
  171. package/dist/actions/unschedule-campaign.cjs.map +1 -1
  172. package/dist/actions/unschedule-campaign.d.cts +16 -3
  173. package/dist/actions/unschedule-campaign.d.cts.map +1 -1
  174. package/dist/actions/unschedule-campaign.d.mts +16 -3
  175. package/dist/actions/unschedule-campaign.d.mts.map +1 -1
  176. package/dist/actions/unschedule-campaign.mjs.map +1 -1
  177. package/dist/actions/unsubscribe-from-account.cjs +1 -1
  178. package/dist/actions/unsubscribe-from-account.cjs.map +1 -1
  179. package/dist/actions/unsubscribe-from-account.d.cts +16 -3
  180. package/dist/actions/unsubscribe-from-account.d.cts.map +1 -1
  181. package/dist/actions/unsubscribe-from-account.d.mts +16 -3
  182. package/dist/actions/unsubscribe-from-account.d.mts.map +1 -1
  183. package/dist/actions/unsubscribe-from-account.mjs +1 -1
  184. package/dist/actions/unsubscribe-from-account.mjs.map +1 -1
  185. package/dist/actions/unsubscribe-from-mailing-list.cjs +1 -1
  186. package/dist/actions/unsubscribe-from-mailing-list.cjs.map +1 -1
  187. package/dist/actions/unsubscribe-from-mailing-list.d.cts +15 -3
  188. package/dist/actions/unsubscribe-from-mailing-list.d.cts.map +1 -1
  189. package/dist/actions/unsubscribe-from-mailing-list.d.mts +15 -3
  190. package/dist/actions/unsubscribe-from-mailing-list.d.mts.map +1 -1
  191. package/dist/actions/unsubscribe-from-mailing-list.mjs +1 -1
  192. package/dist/actions/unsubscribe-from-mailing-list.mjs.map +1 -1
  193. package/dist/actions/update-campaign.cjs +1 -1
  194. package/dist/actions/update-campaign.cjs.map +1 -1
  195. package/dist/actions/update-campaign.d.cts +63 -3
  196. package/dist/actions/update-campaign.d.cts.map +1 -1
  197. package/dist/actions/update-campaign.d.mts +63 -3
  198. package/dist/actions/update-campaign.d.mts.map +1 -1
  199. package/dist/actions/update-campaign.mjs +1 -1
  200. package/dist/actions/update-campaign.mjs.map +1 -1
  201. package/dist/actions/update-custom-field.cjs +1 -1
  202. package/dist/actions/update-custom-field.cjs.map +1 -1
  203. package/dist/actions/update-custom-field.d.cts +34 -3
  204. package/dist/actions/update-custom-field.d.cts.map +1 -1
  205. package/dist/actions/update-custom-field.d.mts +34 -3
  206. package/dist/actions/update-custom-field.d.mts.map +1 -1
  207. package/dist/actions/update-custom-field.mjs +1 -1
  208. package/dist/actions/update-custom-field.mjs.map +1 -1
  209. package/dist/actions/update-mailing-list.cjs +8 -8
  210. package/dist/actions/update-mailing-list.cjs.map +1 -1
  211. package/dist/actions/update-mailing-list.d.cts +32 -3
  212. package/dist/actions/update-mailing-list.d.cts.map +1 -1
  213. package/dist/actions/update-mailing-list.d.mts +32 -3
  214. package/dist/actions/update-mailing-list.d.mts.map +1 -1
  215. package/dist/actions/update-mailing-list.mjs +8 -8
  216. package/dist/actions/update-mailing-list.mjs.map +1 -1
  217. package/dist/actions/update-segment-criteria.cjs +1 -1
  218. package/dist/actions/update-segment-criteria.cjs.map +1 -1
  219. package/dist/actions/update-segment-criteria.d.cts +30 -3
  220. package/dist/actions/update-segment-criteria.d.cts.map +1 -1
  221. package/dist/actions/update-segment-criteria.d.mts +30 -3
  222. package/dist/actions/update-segment-criteria.d.mts.map +1 -1
  223. package/dist/actions/update-segment-criteria.mjs +1 -1
  224. package/dist/actions/update-segment-criteria.mjs.map +1 -1
  225. package/dist/actions/update-segment.cjs +1 -1
  226. package/dist/actions/update-segment.cjs.map +1 -1
  227. package/dist/actions/update-segment.d.cts +52 -3
  228. package/dist/actions/update-segment.d.cts.map +1 -1
  229. package/dist/actions/update-segment.d.mts +52 -3
  230. package/dist/actions/update-segment.d.mts.map +1 -1
  231. package/dist/actions/update-segment.mjs +1 -1
  232. package/dist/actions/update-segment.mjs.map +1 -1
  233. package/dist/actions/update-subscriber.cjs +1 -1
  234. package/dist/actions/update-subscriber.cjs.map +1 -1
  235. package/dist/actions/update-subscriber.d.cts +26 -3
  236. package/dist/actions/update-subscriber.d.cts.map +1 -1
  237. package/dist/actions/update-subscriber.d.mts +26 -3
  238. package/dist/actions/update-subscriber.d.mts.map +1 -1
  239. package/dist/actions/update-subscriber.mjs +1 -1
  240. package/dist/actions/update-subscriber.mjs.map +1 -1
  241. package/dist/catalog.cjs +7 -1
  242. package/dist/catalog.cjs.map +1 -1
  243. package/dist/catalog.d.cts +8 -0
  244. package/dist/catalog.d.mts +8 -0
  245. package/dist/catalog.mjs +7 -1
  246. package/dist/catalog.mjs.map +1 -1
  247. package/package.json +2 -2
@@ -1,9 +1,69 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-campaign.d.ts
4
- declare const MoosendUpdateCampaignInput: z.ZodTypeAny;
5
- declare const MoosendUpdateCampaignOutput: z.ZodTypeAny;
6
- declare const moosendUpdateCampaign: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendUpdateCampaignInput: z.ZodObject<{
5
+ IsAB: z.ZodOptional<z.ZodBoolean>;
6
+ Name: z.ZodString;
7
+ format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
8
+ json: "json";
9
+ xml: "xml";
10
+ }>>>;
11
+ Subject: z.ZodOptional<z.ZodString>;
12
+ SubjectB: z.ZodOptional<z.ZodString>;
13
+ CampaignID: z.ZodString;
14
+ HoursToTest: z.ZodOptional<z.ZodNumber>;
15
+ SenderEmail: z.ZodOptional<z.ZodString>;
16
+ WebLocation: z.ZodOptional<z.ZodString>;
17
+ HTMLContentB: z.ZodOptional<z.ZodString>;
18
+ MailingLists: z.ZodOptional<z.ZodArray<z.ZodObject<{
19
+ SegmentID: z.ZodOptional<z.ZodString>;
20
+ MailingListID: z.ZodString;
21
+ }, z.core.$strip>>>;
22
+ ReplyToEmail: z.ZodOptional<z.ZodString>;
23
+ SenderEmailB: z.ZodOptional<z.ZodString>;
24
+ WebLocationB: z.ZodOptional<z.ZodString>;
25
+ ABCampaignType: z.ZodOptional<z.ZodEnum<{
26
+ Subjectline: "Subjectline";
27
+ Content: "Content";
28
+ Sender: "Sender";
29
+ }>>;
30
+ ListPercentage: z.ZodOptional<z.ZodNumber>;
31
+ ConfirmationToEmail: z.ZodOptional<z.ZodString>;
32
+ ABWinnerSelectionType: z.ZodOptional<z.ZodEnum<{
33
+ OpenRate: "OpenRate";
34
+ TotalUniqueClicks: "TotalUniqueClicks";
35
+ }>>;
36
+ TrackInGoogleAnalytics: z.ZodOptional<z.ZodBoolean>;
37
+ }, z.core.$strip>;
38
+ declare const MoosendUpdateCampaignOutput: z.ZodObject<{
39
+ Code: z.ZodNullable<z.ZodNumber>;
40
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
42
+ }, z.core.$strip>;
43
+ declare const moosendUpdateCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
44
+ Name: string;
45
+ CampaignID: string;
46
+ IsAB?: boolean | undefined;
47
+ format?: "json" | "xml" | undefined;
48
+ Subject?: string | undefined;
49
+ SubjectB?: string | undefined;
50
+ HoursToTest?: number | undefined;
51
+ SenderEmail?: string | undefined;
52
+ WebLocation?: string | undefined;
53
+ HTMLContentB?: string | undefined;
54
+ MailingLists?: {
55
+ MailingListID: string;
56
+ SegmentID?: string | undefined;
57
+ }[] | undefined;
58
+ ReplyToEmail?: string | undefined;
59
+ SenderEmailB?: string | undefined;
60
+ WebLocationB?: string | undefined;
61
+ ABCampaignType?: "Subjectline" | "Content" | "Sender" | undefined;
62
+ ListPercentage?: number | undefined;
63
+ ConfirmationToEmail?: string | undefined;
64
+ ABWinnerSelectionType?: "OpenRate" | "TotalUniqueClicks" | undefined;
65
+ TrackInGoogleAnalytics?: boolean | undefined;
66
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
67
  //#endregion
8
68
  export { moosendUpdateCampaign };
9
69
  //# sourceMappingURL=update-campaign.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-campaign.d.cts","names":[],"sources":["../../src/actions/update-campaign.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAuB2B;AAAA,cACzD,2BAAA,EAA6B,CAAA,CAAE,UAIY;AAAA,cAE3C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-campaign.d.cts","names":[],"sources":["../../src/actions/update-campaign.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
@@ -1,9 +1,69 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-campaign.d.ts
4
- declare const MoosendUpdateCampaignInput: z.ZodTypeAny;
5
- declare const MoosendUpdateCampaignOutput: z.ZodTypeAny;
6
- declare const moosendUpdateCampaign: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendUpdateCampaignInput: z.ZodObject<{
5
+ IsAB: z.ZodOptional<z.ZodBoolean>;
6
+ Name: z.ZodString;
7
+ format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
8
+ json: "json";
9
+ xml: "xml";
10
+ }>>>;
11
+ Subject: z.ZodOptional<z.ZodString>;
12
+ SubjectB: z.ZodOptional<z.ZodString>;
13
+ CampaignID: z.ZodString;
14
+ HoursToTest: z.ZodOptional<z.ZodNumber>;
15
+ SenderEmail: z.ZodOptional<z.ZodString>;
16
+ WebLocation: z.ZodOptional<z.ZodString>;
17
+ HTMLContentB: z.ZodOptional<z.ZodString>;
18
+ MailingLists: z.ZodOptional<z.ZodArray<z.ZodObject<{
19
+ SegmentID: z.ZodOptional<z.ZodString>;
20
+ MailingListID: z.ZodString;
21
+ }, z.core.$strip>>>;
22
+ ReplyToEmail: z.ZodOptional<z.ZodString>;
23
+ SenderEmailB: z.ZodOptional<z.ZodString>;
24
+ WebLocationB: z.ZodOptional<z.ZodString>;
25
+ ABCampaignType: z.ZodOptional<z.ZodEnum<{
26
+ Subjectline: "Subjectline";
27
+ Content: "Content";
28
+ Sender: "Sender";
29
+ }>>;
30
+ ListPercentage: z.ZodOptional<z.ZodNumber>;
31
+ ConfirmationToEmail: z.ZodOptional<z.ZodString>;
32
+ ABWinnerSelectionType: z.ZodOptional<z.ZodEnum<{
33
+ OpenRate: "OpenRate";
34
+ TotalUniqueClicks: "TotalUniqueClicks";
35
+ }>>;
36
+ TrackInGoogleAnalytics: z.ZodOptional<z.ZodBoolean>;
37
+ }, z.core.$strip>;
38
+ declare const MoosendUpdateCampaignOutput: z.ZodObject<{
39
+ Code: z.ZodNullable<z.ZodNumber>;
40
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
42
+ }, z.core.$strip>;
43
+ declare const moosendUpdateCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
44
+ Name: string;
45
+ CampaignID: string;
46
+ IsAB?: boolean | undefined;
47
+ format?: "json" | "xml" | undefined;
48
+ Subject?: string | undefined;
49
+ SubjectB?: string | undefined;
50
+ HoursToTest?: number | undefined;
51
+ SenderEmail?: string | undefined;
52
+ WebLocation?: string | undefined;
53
+ HTMLContentB?: string | undefined;
54
+ MailingLists?: {
55
+ MailingListID: string;
56
+ SegmentID?: string | undefined;
57
+ }[] | undefined;
58
+ ReplyToEmail?: string | undefined;
59
+ SenderEmailB?: string | undefined;
60
+ WebLocationB?: string | undefined;
61
+ ABCampaignType?: "Subjectline" | "Content" | "Sender" | undefined;
62
+ ListPercentage?: number | undefined;
63
+ ConfirmationToEmail?: string | undefined;
64
+ ABWinnerSelectionType?: "OpenRate" | "TotalUniqueClicks" | undefined;
65
+ TrackInGoogleAnalytics?: boolean | undefined;
66
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
67
  //#endregion
8
68
  export { moosendUpdateCampaign };
9
69
  //# sourceMappingURL=update-campaign.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-campaign.d.mts","names":[],"sources":["../../src/actions/update-campaign.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAuB2B;AAAA,cACzD,2BAAA,EAA6B,CAAA,CAAE,UAIY;AAAA,cAE3C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-campaign.d.mts","names":[],"sources":["../../src/actions/update-campaign.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
@@ -33,7 +33,7 @@ const moosendUpdateCampaign = action("MOOSEND_UPDATE_CAMPAIGN", {
33
33
  TrackInGoogleAnalytics: z.boolean().describe("Enable Google Analytics tracking if configured.").optional()
34
34
  }).describe("Request model for updating a draft campaign in Moosend."),
35
35
  output: z.object({
36
- Code: z.number().int().describe("API response code; 0 indicates success."),
36
+ Code: z.number().int().describe("API response code; 0 indicates success.").nullable(),
37
37
  Error: z.string().describe("Error message if any.").nullable().optional(),
38
38
  Context: z.record(z.string(), z.unknown()).describe("Reserved; always null for update.").nullable().optional()
39
39
  }).describe("Response model for UpdateCampaign action.")
@@ -1 +1 @@
1
- {"version":3,"file":"update-campaign.mjs","names":[],"sources":["../../src/actions/update-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateCampaignInput: z.ZodTypeAny = z.object({\n IsAB: z.boolean().describe(\"Flag to indicate an A/B split campaign.\").optional(),\n Name: z.string().describe(\"New name of the campaign.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format: 'json' or 'xml'.\").optional(),\n Subject: z.string().describe(\"Subject line of the campaign.\").optional(),\n SubjectB: z.string().describe(\"Second subject line for A/B tests.\").optional(),\n CampaignID: z.string().describe(\"ID of the draft campaign to update.\"),\n HoursToTest: z.number().int().describe(\"Number of hours to run A/B test (1-24).\").optional(),\n SenderEmail: z.string().describe(\"Sender email address for the campaign.\").optional(),\n WebLocation: z.string().describe(\"URL to fetch campaign HTML content; CSS will be inlined.\").optional(),\n HTMLContentB: z.string().describe(\"HTML content for version B of the campaign.\").optional(),\n MailingLists: z.array(z.object({\n SegmentID: z.string().describe(\"Optional segment ID within the mailing list.\").optional(),\n MailingListID: z.string().describe(\"ID of the mailing list to target.\"),\n}).describe(\"Mailing list entry for campaign targeting.\")).describe(\"List of mailing lists and optional segments to send the campaign to.\").optional(),\n ReplyToEmail: z.string().describe(\"Reply-to email address for the campaign.\").optional(),\n SenderEmailB: z.string().describe(\"Sender email for version B of the campaign.\").optional(),\n WebLocationB: z.string().describe(\"Web location for version B of the campaign.\").optional(),\n ABCampaignType: z.enum([\"Subjectline\", \"Content\", \"Sender\"]).describe(\"Type of A/B test: Subjectline, Content, or Sender.\").optional(),\n ListPercentage: z.number().int().describe(\"Percentage of list to use for A/B testing (5-40).\").optional(),\n ConfirmationToEmail: z.string().describe(\"Email address to receive send confirmations.\").optional(),\n ABWinnerSelectionType: z.enum([\"OpenRate\", \"TotalUniqueClicks\"]).describe(\"Metric to choose A/B winner: OpenRate or TotalUniqueClicks.\").optional(),\n TrackInGoogleAnalytics: z.boolean().describe(\"Enable Google Analytics tracking if configured.\").optional(),\n}).describe(\"Request model for updating a draft campaign in Moosend.\");\nexport const MoosendUpdateCampaignOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"API response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message if any.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Reserved; always null for update.\").nullable().optional(),\n}).describe(\"Response model for UpdateCampaign action.\");\n\nexport const moosendUpdateCampaign = action(\"MOOSEND_UPDATE_CAMPAIGN\", {\n slug: \"moosend-update-campaign\",\n name: \"Update Campaign\",\n description: \"Tool to update a draft campaign. Use when you want to modify properties of an existing draft campaign before sending.\",\n input: MoosendUpdateCampaignInput,\n output: MoosendUpdateCampaignOutput,\n});\n"],"mappings":";;AAkCA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlCsD,EAAE,OAAO;EAC/D,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACrD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACvG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EACrE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC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AAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-campaign.mjs","names":[],"sources":["../../src/actions/update-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateCampaignInput = z.object({\n IsAB: z.boolean().describe(\"Flag to indicate an A/B split campaign.\").optional(),\n Name: z.string().describe(\"New name of the campaign.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format: 'json' or 'xml'.\").optional(),\n Subject: z.string().describe(\"Subject line of the campaign.\").optional(),\n SubjectB: z.string().describe(\"Second subject line for A/B tests.\").optional(),\n CampaignID: z.string().describe(\"ID of the draft campaign to update.\"),\n HoursToTest: z.number().int().describe(\"Number of hours to run A/B test (1-24).\").optional(),\n SenderEmail: z.string().describe(\"Sender email address for the campaign.\").optional(),\n WebLocation: z.string().describe(\"URL to fetch campaign HTML content; CSS will be inlined.\").optional(),\n HTMLContentB: z.string().describe(\"HTML content for version B of the campaign.\").optional(),\n MailingLists: z.array(z.object({\n SegmentID: z.string().describe(\"Optional segment ID within the mailing list.\").optional(),\n MailingListID: z.string().describe(\"ID of the mailing list to target.\"),\n}).describe(\"Mailing list entry for campaign targeting.\")).describe(\"List of mailing lists and optional segments to send the campaign to.\").optional(),\n ReplyToEmail: z.string().describe(\"Reply-to email address for the campaign.\").optional(),\n SenderEmailB: z.string().describe(\"Sender email for version B of the campaign.\").optional(),\n WebLocationB: z.string().describe(\"Web location for version B of the campaign.\").optional(),\n ABCampaignType: z.enum([\"Subjectline\", \"Content\", \"Sender\"]).describe(\"Type of A/B test: Subjectline, Content, or Sender.\").optional(),\n ListPercentage: z.number().int().describe(\"Percentage of list to use for A/B testing (5-40).\").optional(),\n ConfirmationToEmail: z.string().describe(\"Email address to receive send confirmations.\").optional(),\n ABWinnerSelectionType: z.enum([\"OpenRate\", \"TotalUniqueClicks\"]).describe(\"Metric to choose A/B winner: OpenRate or TotalUniqueClicks.\").optional(),\n TrackInGoogleAnalytics: z.boolean().describe(\"Enable Google Analytics tracking if configured.\").optional(),\n}).describe(\"Request model for updating a draft campaign in Moosend.\");\nexport const MoosendUpdateCampaignOutput = z.object({\n Code: z.number().int().describe(\"API response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if any.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Reserved; always null for update.\").nullable().optional(),\n}).describe(\"Response model for UpdateCampaign action.\");\n\nexport const moosendUpdateCampaign = action(\"MOOSEND_UPDATE_CAMPAIGN\", {\n slug: \"moosend-update-campaign\",\n name: \"Update Campaign\",\n description: \"Tool to update a draft campaign. Use when you want to modify properties of an existing draft campaign before sending.\",\n input: MoosendUpdateCampaignInput,\n output: MoosendUpdateCampaignOutput,\n});\n"],"mappings":";;AAkCA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlCwC,EAAE,OAAO;EACjD,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACrD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACvG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EACrE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SA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AC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
@@ -18,7 +18,7 @@ const MoosendUpdateCustomFieldInput = zod.z.object({
18
18
  ]).describe("Specifies the data type of the custom field; one of 'Text', 'Number', 'DateTime', 'SingleSelectDropdown', 'CheckBox'.").optional()
19
19
  });
20
20
  const MoosendUpdateCustomFieldOutput = zod.z.object({
21
- Code: zod.z.number().int().describe("Response code; 0 indicates success."),
21
+ Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
22
22
  Error: zod.z.string().describe("Error message if the request failed; null if successful.").nullable().optional(),
23
23
  Context: zod.z.string().describe("Additional context or details; null if successful.").nullable().optional()
24
24
  });
@@ -1 +1 @@
1
- {"version":3,"file":"update-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/update-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateCustomFieldInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The new name for the custom field.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"The response format. Use 'json' for JSON responses and 'xml' for XML responses.\").optional(),\n options: z.string().describe(\"Comma-separated options for 'SingleSelectDropdown'; required if custom_field_type is 'SingleSelectDropdown'.\").optional(),\n is_hidden: z.boolean().default(false).describe(\"Whether the custom field is hidden from subscribers on the update profile page.\").optional(),\n is_required: z.boolean().default(false).describe(\"Whether the custom field is mandatory when adding a subscriber.\").optional(),\n custom_field_id: z.string().describe(\"The ID of the custom field to update.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list containing the custom field.\"),\n custom_field_type: z.enum([\"Text\", \"Number\", \"DateTime\", \"SingleSelectDropdown\", \"CheckBox\"]).describe(\"Specifies the data type of the custom field; one of 'Text', 'Number', 'DateTime', 'SingleSelectDropdown', 'CheckBox'.\").optional(),\n});\nexport const MoosendUpdateCustomFieldOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message if the request failed; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"Additional context or details; null if successful.\").nullable().optional(),\n});\n\nexport const moosendUpdateCustomField = action(\"MOOSEND_UPDATE_CUSTOM_FIELD\", {\n slug: \"moosend-update-custom-field\",\n name: \"Update custom field\",\n description: \"Tool to update properties of an existing custom field in a mailing list. Use after confirming mailing list and custom field IDs.\",\n input: MoosendUpdateCustomFieldInput,\n output: MoosendUpdateCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC9D,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACrJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CACtJ,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC3I,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC7H,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC5E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC9F,mBAAmBA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAU;EAAY;EAAwB;CAAU,CAAC,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;AAC3O,CAAC;AACD,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC;AAED,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/update-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateCustomFieldInput = z.object({\n name: z.string().describe(\"The new name for the custom field.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"The response format. Use 'json' for JSON responses and 'xml' for XML responses.\").optional(),\n options: z.string().describe(\"Comma-separated options for 'SingleSelectDropdown'; required if custom_field_type is 'SingleSelectDropdown'.\").optional(),\n is_hidden: z.boolean().default(false).describe(\"Whether the custom field is hidden from subscribers on the update profile page.\").optional(),\n is_required: z.boolean().default(false).describe(\"Whether the custom field is mandatory when adding a subscriber.\").optional(),\n custom_field_id: z.string().describe(\"The ID of the custom field to update.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list containing the custom field.\"),\n custom_field_type: z.enum([\"Text\", \"Number\", \"DateTime\", \"SingleSelectDropdown\", \"CheckBox\"]).describe(\"Specifies the data type of the custom field; one of 'Text', 'Number', 'DateTime', 'SingleSelectDropdown', 'CheckBox'.\").optional(),\n});\nexport const MoosendUpdateCustomFieldOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if the request failed; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"Additional context or details; null if successful.\").nullable().optional(),\n});\n\nexport const moosendUpdateCustomField = action(\"MOOSEND_UPDATE_CUSTOM_FIELD\", {\n slug: \"moosend-update-custom-field\",\n name: \"Update custom field\",\n description: \"Tool to update properties of an existing custom field in a mailing list. Use after confirming mailing list and custom field IDs.\",\n input: MoosendUpdateCustomFieldInput,\n output: MoosendUpdateCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC9D,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACrJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CACtJ,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC3I,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC7H,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC5E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC9F,mBAAmBA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAU;EAAY;EAAwB;CAAU,CAAC,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;AAC3O,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC;AAED,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,40 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-custom-field.d.ts
4
- declare const MoosendUpdateCustomFieldInput: z.ZodTypeAny;
5
- declare const MoosendUpdateCustomFieldOutput: z.ZodTypeAny;
6
- declare const moosendUpdateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendUpdateCustomFieldInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
7
+ json: "json";
8
+ xml: "xml";
9
+ }>>>;
10
+ options: z.ZodOptional<z.ZodString>;
11
+ is_hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
12
+ is_required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
13
+ custom_field_id: z.ZodString;
14
+ mailing_list_id: z.ZodString;
15
+ custom_field_type: z.ZodOptional<z.ZodEnum<{
16
+ Text: "Text";
17
+ Number: "Number";
18
+ DateTime: "DateTime";
19
+ SingleSelectDropdown: "SingleSelectDropdown";
20
+ CheckBox: "CheckBox";
21
+ }>>;
22
+ }, z.core.$strip>;
23
+ declare const MoosendUpdateCustomFieldOutput: z.ZodObject<{
24
+ Code: z.ZodNullable<z.ZodNumber>;
25
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ }, z.core.$strip>;
28
+ declare const moosendUpdateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
29
+ name: string;
30
+ custom_field_id: string;
31
+ mailing_list_id: string;
32
+ format?: "json" | "xml" | undefined;
33
+ options?: string | undefined;
34
+ is_hidden?: boolean | undefined;
35
+ is_required?: boolean | undefined;
36
+ custom_field_type?: "Text" | "Number" | "DateTime" | "SingleSelectDropdown" | "CheckBox" | undefined;
37
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
38
  //#endregion
8
39
  export { moosendUpdateCustomField };
9
40
  //# sourceMappingURL=update-custom-field.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-custom-field.d.cts","names":[],"sources":["../../src/actions/update-custom-field.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAS5C;AAAA,cACW,8BAAA,EAAgC,CAAA,CAAE,UAI7C;AAAA,cAEW,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-custom-field.d.cts","names":[],"sources":["../../src/actions/update-custom-field.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAU7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -1,9 +1,40 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-custom-field.d.ts
4
- declare const MoosendUpdateCustomFieldInput: z.ZodTypeAny;
5
- declare const MoosendUpdateCustomFieldOutput: z.ZodTypeAny;
6
- declare const moosendUpdateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendUpdateCustomFieldInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
7
+ json: "json";
8
+ xml: "xml";
9
+ }>>>;
10
+ options: z.ZodOptional<z.ZodString>;
11
+ is_hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
12
+ is_required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
13
+ custom_field_id: z.ZodString;
14
+ mailing_list_id: z.ZodString;
15
+ custom_field_type: z.ZodOptional<z.ZodEnum<{
16
+ Text: "Text";
17
+ Number: "Number";
18
+ DateTime: "DateTime";
19
+ SingleSelectDropdown: "SingleSelectDropdown";
20
+ CheckBox: "CheckBox";
21
+ }>>;
22
+ }, z.core.$strip>;
23
+ declare const MoosendUpdateCustomFieldOutput: z.ZodObject<{
24
+ Code: z.ZodNullable<z.ZodNumber>;
25
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ }, z.core.$strip>;
28
+ declare const moosendUpdateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
29
+ name: string;
30
+ custom_field_id: string;
31
+ mailing_list_id: string;
32
+ format?: "json" | "xml" | undefined;
33
+ options?: string | undefined;
34
+ is_hidden?: boolean | undefined;
35
+ is_required?: boolean | undefined;
36
+ custom_field_type?: "Text" | "Number" | "DateTime" | "SingleSelectDropdown" | "CheckBox" | undefined;
37
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
38
  //#endregion
8
39
  export { moosendUpdateCustomField };
9
40
  //# sourceMappingURL=update-custom-field.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-custom-field.d.mts","names":[],"sources":["../../src/actions/update-custom-field.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAS5C;AAAA,cACW,8BAAA,EAAgC,CAAA,CAAE,UAI7C;AAAA,cAEW,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-custom-field.d.mts","names":[],"sources":["../../src/actions/update-custom-field.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAU7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -21,7 +21,7 @@ const moosendUpdateCustomField = action("MOOSEND_UPDATE_CUSTOM_FIELD", {
21
21
  ]).describe("Specifies the data type of the custom field; one of 'Text', 'Number', 'DateTime', 'SingleSelectDropdown', 'CheckBox'.").optional()
22
22
  }),
23
23
  output: z.object({
24
- Code: z.number().int().describe("Response code; 0 indicates success."),
24
+ Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
25
25
  Error: z.string().describe("Error message if the request failed; null if successful.").nullable().optional(),
26
26
  Context: z.string().describe("Additional context or details; null if successful.").nullable().optional()
27
27
  })
@@ -1 +1 @@
1
- {"version":3,"file":"update-custom-field.mjs","names":[],"sources":["../../src/actions/update-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateCustomFieldInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The new name for the custom field.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"The response format. Use 'json' for JSON responses and 'xml' for XML responses.\").optional(),\n options: z.string().describe(\"Comma-separated options for 'SingleSelectDropdown'; required if custom_field_type is 'SingleSelectDropdown'.\").optional(),\n is_hidden: z.boolean().default(false).describe(\"Whether the custom field is hidden from subscribers on the update profile page.\").optional(),\n is_required: z.boolean().default(false).describe(\"Whether the custom field is mandatory when adding a subscriber.\").optional(),\n custom_field_id: z.string().describe(\"The ID of the custom field to update.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list containing the custom field.\"),\n custom_field_type: z.enum([\"Text\", \"Number\", \"DateTime\", \"SingleSelectDropdown\", \"CheckBox\"]).describe(\"Specifies the data type of the custom field; one of 'Text', 'Number', 'DateTime', 'SingleSelectDropdown', 'CheckBox'.\").optional(),\n});\nexport const MoosendUpdateCustomFieldOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message if the request failed; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"Additional context or details; null if successful.\").nullable().optional(),\n});\n\nexport const moosendUpdateCustomField = action(\"MOOSEND_UPDATE_CUSTOM_FIELD\", {\n slug: \"moosend-update-custom-field\",\n name: \"Update custom field\",\n description: \"Tool to update properties of an existing custom field in a mailing list. Use after confirming mailing list and custom field IDs.\",\n input: MoosendUpdateCustomFieldInput,\n output: MoosendUpdateCustomFieldOutput,\n});\n"],"mappings":";;AAoBA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApByD,EAAE,OAAO;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC9D,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EACrJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;EACtJ,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC3I,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EAC7H,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAC5E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;EAC9F,mBAAmB,EAAE,KAAK;GAAC;GAAQ;GAAU;GAAY;GAAwB;EAAU,CAAC,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CAC3O,CAWS;CACP,QAX0D,EAAE,OAAO;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"update-custom-field.mjs","names":[],"sources":["../../src/actions/update-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateCustomFieldInput = z.object({\n name: z.string().describe(\"The new name for the custom field.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"The response format. Use 'json' for JSON responses and 'xml' for XML responses.\").optional(),\n options: z.string().describe(\"Comma-separated options for 'SingleSelectDropdown'; required if custom_field_type is 'SingleSelectDropdown'.\").optional(),\n is_hidden: z.boolean().default(false).describe(\"Whether the custom field is hidden from subscribers on the update profile page.\").optional(),\n is_required: z.boolean().default(false).describe(\"Whether the custom field is mandatory when adding a subscriber.\").optional(),\n custom_field_id: z.string().describe(\"The ID of the custom field to update.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list containing the custom field.\"),\n custom_field_type: z.enum([\"Text\", \"Number\", \"DateTime\", \"SingleSelectDropdown\", \"CheckBox\"]).describe(\"Specifies the data type of the custom field; one of 'Text', 'Number', 'DateTime', 'SingleSelectDropdown', 'CheckBox'.\").optional(),\n});\nexport const MoosendUpdateCustomFieldOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if the request failed; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"Additional context or details; null if successful.\").nullable().optional(),\n});\n\nexport const moosendUpdateCustomField = action(\"MOOSEND_UPDATE_CUSTOM_FIELD\", {\n slug: \"moosend-update-custom-field\",\n name: \"Update custom field\",\n description: \"Tool to update properties of an existing custom field in a mailing list. Use after confirming mailing list and custom field IDs.\",\n input: MoosendUpdateCustomFieldInput,\n output: MoosendUpdateCustomFieldOutput,\n});\n"],"mappings":";;AAoBA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC9D,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EACrJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;EACtJ,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC3I,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EAC7H,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAC5E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;EAC9F,mBAAmB,EAAE,KAAK;GAAC;GAAQ;GAAU;GAAY;GAAwB;EAAU,CAAC,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CAC3O,CAWS;CACP,QAX4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAOU;AACV,CAAC"}
@@ -11,17 +11,17 @@ const MoosendUpdateMailingListInput = zod.z.object({
11
11
  mailing_list_id: zod.z.string().describe("The unique identifier of the mailing list to update.")
12
12
  }).describe("Request schema for `UpdateMailingList`");
13
13
  const MoosendUpdateMailingList_MailingListContextSchema = zod.z.object({
14
- ID: zod.z.string().describe("The mailing list ID."),
15
- Name: zod.z.string().describe("Mailing list name."),
16
- CreatedOn: zod.z.string().describe("Date-time when the list was created."),
17
- UpdatedOn: zod.z.string().describe("Date-time when the list was last updated."),
18
- SenderName: zod.z.string().describe("Sender name."),
14
+ ID: zod.z.string().describe("The mailing list ID.").nullable(),
15
+ Name: zod.z.string().describe("Mailing list name.").nullable(),
16
+ CreatedOn: zod.z.string().describe("Date-time when the list was created.").nullable(),
17
+ UpdatedOn: zod.z.string().describe("Date-time when the list was last updated.").nullable(),
18
+ SenderName: zod.z.string().describe("Sender name.").nullable(),
19
19
  Description: zod.z.string().describe("Mailing list description.").nullable().optional(),
20
- SenderEmail: zod.z.string().describe("Sender email address."),
21
- ReplyToEmail: zod.z.string().describe("Reply-to email address.")
20
+ SenderEmail: zod.z.string().describe("Sender email address.").nullable(),
21
+ ReplyToEmail: zod.z.string().describe("Reply-to email address.").nullable()
22
22
  }).describe("Context schema containing updated mailing list details");
23
23
  const MoosendUpdateMailingListOutput = zod.z.object({
24
- Code: zod.z.number().int().describe("Response code; 0 indicates success."),
24
+ Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
25
25
  Error: zod.z.string().describe("Error message if any.").nullable().optional(),
26
26
  Context: zod.z.union([MoosendUpdateMailingList_MailingListContextSchema, zod.z.string()]).nullable().optional()
27
27
  }).describe("Response schema for `UpdateMailingList`");
@@ -1 +1 @@
1
- {"version":3,"file":"update-mailing-list.cjs","names":["z","action"],"sources":["../../src/actions/update-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateMailingListInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"New name for the mailing list.\").optional(),\n format: z.string().default(\"json\").describe(\"Response format, either 'json' or 'xml'.\").optional(),\n description: z.string().describe(\"A description for the mailing list.\").optional(),\n sender_name: z.string().describe(\"Sender name for the mailing list.\").optional(),\n sender_email: z.string().describe(\"Sender email address for the mailing list.\").optional(),\n reply_to_email: z.string().describe(\"Reply-to email address for the mailing list.\").optional(),\n mailing_list_id: z.string().describe(\"The unique identifier of the mailing list to update.\"),\n}).describe(\"Request schema for `UpdateMailingList`\");\nconst MoosendUpdateMailingList_MailingListContextSchema: z.ZodTypeAny = z.object({\n ID: z.string().describe(\"The mailing list ID.\"),\n Name: z.string().describe(\"Mailing list name.\"),\n CreatedOn: z.string().describe(\"Date-time when the list was created.\"),\n UpdatedOn: z.string().describe(\"Date-time when the list was last updated.\"),\n SenderName: z.string().describe(\"Sender name.\"),\n Description: z.string().describe(\"Mailing list description.\").nullable().optional(),\n SenderEmail: z.string().describe(\"Sender email address.\"),\n ReplyToEmail: z.string().describe(\"Reply-to email address.\"),\n}).describe(\"Context schema containing updated mailing list details\");\nexport const MoosendUpdateMailingListOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message if any.\").nullable().optional(),\n Context: z.union([MoosendUpdateMailingList_MailingListContextSchema, z.string()]).nullable().optional(),\n}).describe(\"Response schema for `UpdateMailingList`\");\n\nexport const moosendUpdateMailingList = action(\"MOOSEND_UPDATE_MAILING_LIST\", {\n slug: \"moosend-update-mailing-list\",\n name: \"Update Mailing List\",\n description: \"Tool to update the properties of an existing mailing list. Use when you need to change list metadata after confirming the list ID.\",\n input: MoosendUpdateMailingListInput,\n output: MoosendUpdateMailingListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAA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C,CAAC,SAAS,qCAAqC;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAASA,IAAAA,EAAE,MAAM,CAAC,mDAAmDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-mailing-list.cjs","names":["z","action"],"sources":["../../src/actions/update-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateMailingListInput = z.object({\n name: z.string().describe(\"New name for the mailing list.\").optional(),\n format: z.string().default(\"json\").describe(\"Response format, either 'json' or 'xml'.\").optional(),\n description: z.string().describe(\"A description for the mailing list.\").optional(),\n sender_name: z.string().describe(\"Sender name for the mailing list.\").optional(),\n sender_email: z.string().describe(\"Sender email address for the mailing list.\").optional(),\n reply_to_email: z.string().describe(\"Reply-to email address for the mailing list.\").optional(),\n mailing_list_id: z.string().describe(\"The unique identifier of the mailing list to update.\"),\n}).describe(\"Request schema for `UpdateMailingList`\");\nconst MoosendUpdateMailingList_MailingListContextSchema = z.object({\n ID: z.string().describe(\"The mailing list ID.\").nullable(),\n Name: z.string().describe(\"Mailing list name.\").nullable(),\n CreatedOn: z.string().describe(\"Date-time when the list was created.\").nullable(),\n UpdatedOn: z.string().describe(\"Date-time when the list was last updated.\").nullable(),\n SenderName: z.string().describe(\"Sender name.\").nullable(),\n Description: z.string().describe(\"Mailing list description.\").nullable().optional(),\n SenderEmail: z.string().describe(\"Sender email address.\").nullable(),\n ReplyToEmail: z.string().describe(\"Reply-to email address.\").nullable(),\n}).describe(\"Context schema containing updated mailing list details\");\nexport const MoosendUpdateMailingListOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if any.\").nullable().optional(),\n Context: z.union([MoosendUpdateMailingList_MailingListContextSchema, z.string()]).nullable().optional(),\n}).describe(\"Response schema for `UpdateMailingList`\");\n\nexport const moosendUpdateMailingList = action(\"MOOSEND_UPDATE_MAILING_LIST\", {\n slug: \"moosend-update-mailing-list\",\n name: \"Update Mailing List\",\n description: \"Tool to update the properties of an existing mailing list. Use when you need to change list metadata after confirming the list ID.\",\n input: MoosendUpdateMailingListInput,\n output: MoosendUpdateMailingListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC/E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACzF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC7F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AAC7F,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACzD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACnE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAASA,IAAAA,EAAE,MAAM,CAAC,mDAAmDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-mailing-list.d.ts
4
- declare const MoosendUpdateMailingListInput: z.ZodTypeAny;
5
- declare const MoosendUpdateMailingListOutput: z.ZodTypeAny;
6
- declare const moosendUpdateMailingList: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendUpdateMailingListInput: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
7
+ description: z.ZodOptional<z.ZodString>;
8
+ sender_name: z.ZodOptional<z.ZodString>;
9
+ sender_email: z.ZodOptional<z.ZodString>;
10
+ reply_to_email: z.ZodOptional<z.ZodString>;
11
+ mailing_list_id: z.ZodString;
12
+ }, z.core.$strip>;
13
+ declare const MoosendUpdateMailingListOutput: z.ZodObject<{
14
+ Code: z.ZodNullable<z.ZodNumber>;
15
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ Context: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
17
+ ID: z.ZodNullable<z.ZodString>;
18
+ Name: z.ZodNullable<z.ZodString>;
19
+ CreatedOn: z.ZodNullable<z.ZodString>;
20
+ UpdatedOn: z.ZodNullable<z.ZodString>;
21
+ SenderName: z.ZodNullable<z.ZodString>;
22
+ Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ SenderEmail: z.ZodNullable<z.ZodString>;
24
+ ReplyToEmail: z.ZodNullable<z.ZodString>;
25
+ }, z.core.$strip>, z.ZodString]>>>;
26
+ }, z.core.$strip>;
27
+ declare const moosendUpdateMailingList: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ mailing_list_id: string;
29
+ name?: string | undefined;
30
+ format?: string | undefined;
31
+ description?: string | undefined;
32
+ sender_name?: string | undefined;
33
+ sender_email?: string | undefined;
34
+ reply_to_email?: string | undefined;
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { moosendUpdateMailingList };
9
38
  //# sourceMappingURL=update-mailing-list.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-mailing-list.d.cts","names":[],"sources":["../../src/actions/update-mailing-list.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAQO;AAAA,cAWxC,8BAAA,EAAgC,CAAA,CAAE,UAIO;AAAA,cAEzC,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-mailing-list.d.cts","names":[],"sources":["../../src/actions/update-mailing-list.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;cAmB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-mailing-list.d.ts
4
- declare const MoosendUpdateMailingListInput: z.ZodTypeAny;
5
- declare const MoosendUpdateMailingListOutput: z.ZodTypeAny;
6
- declare const moosendUpdateMailingList: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendUpdateMailingListInput: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
7
+ description: z.ZodOptional<z.ZodString>;
8
+ sender_name: z.ZodOptional<z.ZodString>;
9
+ sender_email: z.ZodOptional<z.ZodString>;
10
+ reply_to_email: z.ZodOptional<z.ZodString>;
11
+ mailing_list_id: z.ZodString;
12
+ }, z.core.$strip>;
13
+ declare const MoosendUpdateMailingListOutput: z.ZodObject<{
14
+ Code: z.ZodNullable<z.ZodNumber>;
15
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ Context: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
17
+ ID: z.ZodNullable<z.ZodString>;
18
+ Name: z.ZodNullable<z.ZodString>;
19
+ CreatedOn: z.ZodNullable<z.ZodString>;
20
+ UpdatedOn: z.ZodNullable<z.ZodString>;
21
+ SenderName: z.ZodNullable<z.ZodString>;
22
+ Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ SenderEmail: z.ZodNullable<z.ZodString>;
24
+ ReplyToEmail: z.ZodNullable<z.ZodString>;
25
+ }, z.core.$strip>, z.ZodString]>>>;
26
+ }, z.core.$strip>;
27
+ declare const moosendUpdateMailingList: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ mailing_list_id: string;
29
+ name?: string | undefined;
30
+ format?: string | undefined;
31
+ description?: string | undefined;
32
+ sender_name?: string | undefined;
33
+ sender_email?: string | undefined;
34
+ reply_to_email?: string | undefined;
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { moosendUpdateMailingList };
9
38
  //# sourceMappingURL=update-mailing-list.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-mailing-list.d.mts","names":[],"sources":["../../src/actions/update-mailing-list.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAQO;AAAA,cAWxC,8BAAA,EAAgC,CAAA,CAAE,UAIO;AAAA,cAEzC,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-mailing-list.d.mts","names":[],"sources":["../../src/actions/update-mailing-list.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;cAmB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -11,14 +11,14 @@ const MoosendUpdateMailingListInput = z.object({
11
11
  mailing_list_id: z.string().describe("The unique identifier of the mailing list to update.")
12
12
  }).describe("Request schema for `UpdateMailingList`");
13
13
  const MoosendUpdateMailingList_MailingListContextSchema = z.object({
14
- ID: z.string().describe("The mailing list ID."),
15
- Name: z.string().describe("Mailing list name."),
16
- CreatedOn: z.string().describe("Date-time when the list was created."),
17
- UpdatedOn: z.string().describe("Date-time when the list was last updated."),
18
- SenderName: z.string().describe("Sender name."),
14
+ ID: z.string().describe("The mailing list ID.").nullable(),
15
+ Name: z.string().describe("Mailing list name.").nullable(),
16
+ CreatedOn: z.string().describe("Date-time when the list was created.").nullable(),
17
+ UpdatedOn: z.string().describe("Date-time when the list was last updated.").nullable(),
18
+ SenderName: z.string().describe("Sender name.").nullable(),
19
19
  Description: z.string().describe("Mailing list description.").nullable().optional(),
20
- SenderEmail: z.string().describe("Sender email address."),
21
- ReplyToEmail: z.string().describe("Reply-to email address.")
20
+ SenderEmail: z.string().describe("Sender email address.").nullable(),
21
+ ReplyToEmail: z.string().describe("Reply-to email address.").nullable()
22
22
  }).describe("Context schema containing updated mailing list details");
23
23
  const moosendUpdateMailingList = action("MOOSEND_UPDATE_MAILING_LIST", {
24
24
  slug: "moosend-update-mailing-list",
@@ -26,7 +26,7 @@ const moosendUpdateMailingList = action("MOOSEND_UPDATE_MAILING_LIST", {
26
26
  description: "Tool to update the properties of an existing mailing list. Use when you need to change list metadata after confirming the list ID.",
27
27
  input: MoosendUpdateMailingListInput,
28
28
  output: z.object({
29
- Code: z.number().int().describe("Response code; 0 indicates success."),
29
+ Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
30
30
  Error: z.string().describe("Error message if any.").nullable().optional(),
31
31
  Context: z.union([MoosendUpdateMailingList_MailingListContextSchema, z.string()]).nullable().optional()
32
32
  }).describe("Response schema for `UpdateMailingList`")
@@ -1 +1 @@
1
- {"version":3,"file":"update-mailing-list.mjs","names":[],"sources":["../../src/actions/update-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateMailingListInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"New name for the mailing list.\").optional(),\n format: z.string().default(\"json\").describe(\"Response format, either 'json' or 'xml'.\").optional(),\n description: z.string().describe(\"A description for the mailing list.\").optional(),\n sender_name: z.string().describe(\"Sender name for the mailing list.\").optional(),\n sender_email: z.string().describe(\"Sender email address for the mailing list.\").optional(),\n reply_to_email: z.string().describe(\"Reply-to email address for the mailing list.\").optional(),\n mailing_list_id: z.string().describe(\"The unique identifier of the mailing list to update.\"),\n}).describe(\"Request schema for `UpdateMailingList`\");\nconst MoosendUpdateMailingList_MailingListContextSchema: z.ZodTypeAny = z.object({\n ID: z.string().describe(\"The mailing list ID.\"),\n Name: z.string().describe(\"Mailing list name.\"),\n CreatedOn: z.string().describe(\"Date-time when the list was created.\"),\n UpdatedOn: z.string().describe(\"Date-time when the list was last updated.\"),\n SenderName: z.string().describe(\"Sender name.\"),\n Description: z.string().describe(\"Mailing list description.\").nullable().optional(),\n SenderEmail: z.string().describe(\"Sender email address.\"),\n ReplyToEmail: z.string().describe(\"Reply-to email address.\"),\n}).describe(\"Context schema containing updated mailing list details\");\nexport const MoosendUpdateMailingListOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message if any.\").nullable().optional(),\n Context: z.union([MoosendUpdateMailingList_MailingListContextSchema, z.string()]).nullable().optional(),\n}).describe(\"Response schema for `UpdateMailingList`\");\n\nexport const moosendUpdateMailingList = action(\"MOOSEND_UPDATE_MAILING_LIST\", {\n slug: \"moosend-update-mailing-list\",\n name: \"Update Mailing List\",\n description: \"Tool to update the properties of an existing mailing list. Use when you need to change list metadata after confirming the list ID.\",\n input: MoosendUpdateMailingListInput,\n output: MoosendUpdateMailingListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,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AAC,mDAAmD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-mailing-list.mjs","names":[],"sources":["../../src/actions/update-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateMailingListInput = z.object({\n name: z.string().describe(\"New name for the mailing list.\").optional(),\n format: z.string().default(\"json\").describe(\"Response format, either 'json' or 'xml'.\").optional(),\n description: z.string().describe(\"A description for the mailing list.\").optional(),\n sender_name: z.string().describe(\"Sender name for the mailing list.\").optional(),\n sender_email: z.string().describe(\"Sender email address for the mailing list.\").optional(),\n reply_to_email: z.string().describe(\"Reply-to email address for the mailing list.\").optional(),\n mailing_list_id: z.string().describe(\"The unique identifier of the mailing list to update.\"),\n}).describe(\"Request schema for `UpdateMailingList`\");\nconst MoosendUpdateMailingList_MailingListContextSchema = z.object({\n ID: z.string().describe(\"The mailing list ID.\").nullable(),\n Name: z.string().describe(\"Mailing list name.\").nullable(),\n CreatedOn: z.string().describe(\"Date-time when the list was created.\").nullable(),\n UpdatedOn: z.string().describe(\"Date-time when the list was last updated.\").nullable(),\n SenderName: z.string().describe(\"Sender name.\").nullable(),\n Description: z.string().describe(\"Mailing list description.\").nullable().optional(),\n SenderEmail: z.string().describe(\"Sender email address.\").nullable(),\n ReplyToEmail: z.string().describe(\"Reply-to email address.\").nullable(),\n}).describe(\"Context schema containing updated mailing list details\");\nexport const MoosendUpdateMailingListOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if any.\").nullable().optional(),\n Context: z.union([MoosendUpdateMailingList_MailingListContextSchema, z.string()]).nullable().optional(),\n}).describe(\"Response schema for `UpdateMailingList`\");\n\nexport const moosendUpdateMailingList = action(\"MOOSEND_UPDATE_MAILING_LIST\", {\n slug: \"moosend-update-mailing-list\",\n name: \"Update Mailing List\",\n description: \"Tool to update the properties of an existing mailing list. Use when you need to change list metadata after confirming the list ID.\",\n input: MoosendUpdateMailingListInput,\n output: MoosendUpdateMailingListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC/E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACzF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC7F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AAC7F,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,oDAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAChF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACzD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACnE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAOpE,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,SAAS,EAAE,MAAM,CAAC,mDAAmD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
@@ -13,7 +13,7 @@ const MoosendUpdateSegmentCriteriaInput = zod.z.object({
13
13
  mailing_list_id: zod.z.string().describe("The ID of the mailing list the specified segment belongs to.")
14
14
  }).describe("Request schema for updating an existing criterion in a segment.");
15
15
  const MoosendUpdateSegmentCriteriaOutput = zod.z.object({
16
- Code: zod.z.number().int().describe("Response code; 0 indicates success."),
16
+ Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
17
17
  Error: zod.z.string().describe("Error message; null if successful.").nullable().optional(),
18
18
  Context: zod.z.number().int().describe("Contains the updated criteria ID.").nullable().optional()
19
19
  }).describe("Response schema for UpdateSegmentCriteria action.");
@@ -1 +1 @@
1
- {"version":3,"file":"update-segment-criteria.cjs","names":["z","action"],"sources":["../../src/actions/update-segment-criteria.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateSegmentCriteriaInput: z.ZodTypeAny = z.object({\n field: z.string().describe(\"The field of the criterion to filter the mailing list by (e.g., 'Email', 'Name', custom field names).\"),\n value: z.string().describe(\"A search term to filter the specified field by.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'. Note: XML responses require additional parsing.\").optional(),\n date_to: z.string().describe(\"Provides an additional filter option to be combined with date-based fields. Format: ISO 8601 date string.\").optional(),\n comparer: z.string().default(\"Is\").describe(\"An operator that defines the way to compare a criterion field with its value (e.g., 'Is', 'IsNot', 'Contains', 'NotContains', 'StartsWith', 'EndsWith').\").optional(),\n date_from: z.string().describe(\"Provides an additional filter option to be combined with date-based fields. Format: ISO 8601 date string.\").optional(),\n segment_id: z.string().describe(\"The ID of the segment containing the criterion to update.\"),\n criteria_id: z.number().int().describe(\"The ID of the criterion to update.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list the specified segment belongs to.\"),\n}).describe(\"Request schema for updating an existing criterion in a segment.\");\nexport const MoosendUpdateSegmentCriteriaOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.number().int().describe(\"Contains the updated criteria ID.\").nullable().optional(),\n}).describe(\"Response schema for UpdateSegmentCriteria action.\");\n\nexport const moosendUpdateSegmentCriteria = action(\"MOOSEND_UPDATE_SEGMENT_CRITERIA\", {\n slug: \"moosend-update-segment-criteria\",\n name: \"Update Segment Criteria\",\n description: \"Tool to update an existing criterion in a segment. Use when you need to modify filtering rules for a mailing list segment.\",\n input: MoosendUpdateSegmentCriteriaInput,\n output: MoosendUpdateSegmentCriteriaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;CAClI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC5E,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACrL,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACnJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CACjN,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACrJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CAC3E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AACrG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-segment-criteria.cjs","names":["z","action"],"sources":["../../src/actions/update-segment-criteria.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateSegmentCriteriaInput = z.object({\n field: z.string().describe(\"The field of the criterion to filter the mailing list by (e.g., 'Email', 'Name', custom field names).\"),\n value: z.string().describe(\"A search term to filter the specified field by.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'. Note: XML responses require additional parsing.\").optional(),\n date_to: z.string().describe(\"Provides an additional filter option to be combined with date-based fields. Format: ISO 8601 date string.\").optional(),\n comparer: z.string().default(\"Is\").describe(\"An operator that defines the way to compare a criterion field with its value (e.g., 'Is', 'IsNot', 'Contains', 'NotContains', 'StartsWith', 'EndsWith').\").optional(),\n date_from: z.string().describe(\"Provides an additional filter option to be combined with date-based fields. Format: ISO 8601 date string.\").optional(),\n segment_id: z.string().describe(\"The ID of the segment containing the criterion to update.\"),\n criteria_id: z.number().int().describe(\"The ID of the criterion to update.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list the specified segment belongs to.\"),\n}).describe(\"Request schema for updating an existing criterion in a segment.\");\nexport const MoosendUpdateSegmentCriteriaOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.number().int().describe(\"Contains the updated criteria ID.\").nullable().optional(),\n}).describe(\"Response schema for UpdateSegmentCriteria action.\");\n\nexport const moosendUpdateSegmentCriteria = action(\"MOOSEND_UPDATE_SEGMENT_CRITERIA\", {\n slug: \"moosend-update-segment-criteria\",\n name: \"Update Segment Criteria\",\n description: \"Tool to update an existing criterion in a segment. Use when you need to modify filtering rules for a mailing list segment.\",\n input: MoosendUpdateSegmentCriteriaInput,\n output: MoosendUpdateSegmentCriteriaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;CAClI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC5E,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACrL,SAASA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