@keystrokehq/omnisend 0.1.0 → 0.1.3

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 (347) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-cart-product.cjs +5 -5
  4. package/dist/actions/add-cart-product.cjs.map +1 -1
  5. package/dist/actions/add-cart-product.d.cts +38 -3
  6. package/dist/actions/add-cart-product.d.cts.map +1 -1
  7. package/dist/actions/add-cart-product.d.mts +38 -3
  8. package/dist/actions/add-cart-product.d.mts.map +1 -1
  9. package/dist/actions/add-cart-product.mjs +5 -5
  10. package/dist/actions/add-cart-product.mjs.map +1 -1
  11. package/dist/actions/create-batch.cjs +6 -6
  12. package/dist/actions/create-batch.cjs.map +1 -1
  13. package/dist/actions/create-batch.d.cts +46 -3
  14. package/dist/actions/create-batch.d.cts.map +1 -1
  15. package/dist/actions/create-batch.d.mts +46 -3
  16. package/dist/actions/create-batch.d.mts.map +1 -1
  17. package/dist/actions/create-batch.mjs +6 -6
  18. package/dist/actions/create-batch.mjs.map +1 -1
  19. package/dist/actions/create-cart.cjs +3 -3
  20. package/dist/actions/create-cart.cjs.map +1 -1
  21. package/dist/actions/create-cart.d.cts +45 -3
  22. package/dist/actions/create-cart.d.cts.map +1 -1
  23. package/dist/actions/create-cart.d.mts +45 -3
  24. package/dist/actions/create-cart.d.mts.map +1 -1
  25. package/dist/actions/create-cart.mjs +3 -3
  26. package/dist/actions/create-cart.mjs.map +1 -1
  27. package/dist/actions/create-category.cjs +1 -1
  28. package/dist/actions/create-category.cjs.map +1 -1
  29. package/dist/actions/create-category.d.cts +11 -3
  30. package/dist/actions/create-category.d.cts.map +1 -1
  31. package/dist/actions/create-category.d.mts +11 -3
  32. package/dist/actions/create-category.d.mts.map +1 -1
  33. package/dist/actions/create-category.mjs +1 -1
  34. package/dist/actions/create-category.mjs.map +1 -1
  35. package/dist/actions/create-or-update-contact.cjs +4 -4
  36. package/dist/actions/create-or-update-contact.cjs.map +1 -1
  37. package/dist/actions/create-or-update-contact.d.cts +59 -3
  38. package/dist/actions/create-or-update-contact.d.cts.map +1 -1
  39. package/dist/actions/create-or-update-contact.d.mts +59 -3
  40. package/dist/actions/create-or-update-contact.d.mts.map +1 -1
  41. package/dist/actions/create-or-update-contact.mjs +4 -4
  42. package/dist/actions/create-or-update-contact.mjs.map +1 -1
  43. package/dist/actions/create-order.cjs +4 -4
  44. package/dist/actions/create-order.cjs.map +1 -1
  45. package/dist/actions/create-order.d.cts +165 -3
  46. package/dist/actions/create-order.d.cts.map +1 -1
  47. package/dist/actions/create-order.d.mts +165 -3
  48. package/dist/actions/create-order.d.mts.map +1 -1
  49. package/dist/actions/create-order.mjs +4 -4
  50. package/dist/actions/create-order.mjs.map +1 -1
  51. package/dist/actions/create-product-category.cjs +1 -1
  52. package/dist/actions/create-product-category.cjs.map +1 -1
  53. package/dist/actions/create-product-category.d.cts +11 -3
  54. package/dist/actions/create-product-category.d.cts.map +1 -1
  55. package/dist/actions/create-product-category.d.mts +11 -3
  56. package/dist/actions/create-product-category.d.mts.map +1 -1
  57. package/dist/actions/create-product-category.mjs +1 -1
  58. package/dist/actions/create-product-category.mjs.map +1 -1
  59. package/dist/actions/create-product.cjs +2 -2
  60. package/dist/actions/create-product.cjs.map +1 -1
  61. package/dist/actions/create-product.d.cts +68 -3
  62. package/dist/actions/create-product.d.cts.map +1 -1
  63. package/dist/actions/create-product.d.mts +68 -3
  64. package/dist/actions/create-product.d.mts.map +1 -1
  65. package/dist/actions/create-product.mjs +2 -2
  66. package/dist/actions/create-product.mjs.map +1 -1
  67. package/dist/actions/delete-cart.cjs +1 -1
  68. package/dist/actions/delete-cart.cjs.map +1 -1
  69. package/dist/actions/delete-cart.d.cts +7 -3
  70. package/dist/actions/delete-cart.d.cts.map +1 -1
  71. package/dist/actions/delete-cart.d.mts +7 -3
  72. package/dist/actions/delete-cart.d.mts.map +1 -1
  73. package/dist/actions/delete-cart.mjs +1 -1
  74. package/dist/actions/delete-cart.mjs.map +1 -1
  75. package/dist/actions/delete-category.cjs +1 -1
  76. package/dist/actions/delete-category.cjs.map +1 -1
  77. package/dist/actions/delete-category.d.cts +7 -3
  78. package/dist/actions/delete-category.d.cts.map +1 -1
  79. package/dist/actions/delete-category.d.mts +7 -3
  80. package/dist/actions/delete-category.d.mts.map +1 -1
  81. package/dist/actions/delete-category.mjs +1 -1
  82. package/dist/actions/delete-category.mjs.map +1 -1
  83. package/dist/actions/delete-order.cjs +1 -1
  84. package/dist/actions/delete-order.cjs.map +1 -1
  85. package/dist/actions/delete-order.d.cts +7 -3
  86. package/dist/actions/delete-order.d.cts.map +1 -1
  87. package/dist/actions/delete-order.d.mts +7 -3
  88. package/dist/actions/delete-order.d.mts.map +1 -1
  89. package/dist/actions/delete-order.mjs +1 -1
  90. package/dist/actions/delete-order.mjs.map +1 -1
  91. package/dist/actions/delete-product-category.cjs +1 -1
  92. package/dist/actions/delete-product-category.cjs.map +1 -1
  93. package/dist/actions/delete-product-category.d.cts +7 -3
  94. package/dist/actions/delete-product-category.d.cts.map +1 -1
  95. package/dist/actions/delete-product-category.d.mts +7 -3
  96. package/dist/actions/delete-product-category.d.mts.map +1 -1
  97. package/dist/actions/delete-product-category.mjs +1 -1
  98. package/dist/actions/delete-product-category.mjs.map +1 -1
  99. package/dist/actions/delete-product.cjs +1 -1
  100. package/dist/actions/delete-product.cjs.map +1 -1
  101. package/dist/actions/delete-product.d.cts +7 -3
  102. package/dist/actions/delete-product.d.cts.map +1 -1
  103. package/dist/actions/delete-product.d.mts +7 -3
  104. package/dist/actions/delete-product.d.mts.map +1 -1
  105. package/dist/actions/delete-product.mjs +1 -1
  106. package/dist/actions/delete-product.mjs.map +1 -1
  107. package/dist/actions/get-batch-information.cjs +1 -1
  108. package/dist/actions/get-batch-information.cjs.map +1 -1
  109. package/dist/actions/get-batch-information.d.cts +16 -3
  110. package/dist/actions/get-batch-information.d.cts.map +1 -1
  111. package/dist/actions/get-batch-information.d.mts +16 -3
  112. package/dist/actions/get-batch-information.d.mts.map +1 -1
  113. package/dist/actions/get-batch-information.mjs +1 -1
  114. package/dist/actions/get-batch-information.mjs.map +1 -1
  115. package/dist/actions/get-batch-item.cjs +2 -2
  116. package/dist/actions/get-batch-item.cjs.map +1 -1
  117. package/dist/actions/get-batch-item.d.cts +19 -3
  118. package/dist/actions/get-batch-item.d.cts.map +1 -1
  119. package/dist/actions/get-batch-item.d.mts +19 -3
  120. package/dist/actions/get-batch-item.d.mts.map +1 -1
  121. package/dist/actions/get-batch-item.mjs +2 -2
  122. package/dist/actions/get-batch-item.mjs.map +1 -1
  123. package/dist/actions/get-batch-items.cjs +4 -4
  124. package/dist/actions/get-batch-items.cjs.map +1 -1
  125. package/dist/actions/get-batch-items.d.cts +18 -3
  126. package/dist/actions/get-batch-items.d.cts.map +1 -1
  127. package/dist/actions/get-batch-items.d.mts +18 -3
  128. package/dist/actions/get-batch-items.d.mts.map +1 -1
  129. package/dist/actions/get-batch-items.mjs +4 -4
  130. package/dist/actions/get-batch-items.mjs.map +1 -1
  131. package/dist/actions/get-batches.cjs +12 -12
  132. package/dist/actions/get-batches.cjs.map +1 -1
  133. package/dist/actions/get-batches.d.cts +33 -3
  134. package/dist/actions/get-batches.d.cts.map +1 -1
  135. package/dist/actions/get-batches.d.mts +33 -3
  136. package/dist/actions/get-batches.d.mts.map +1 -1
  137. package/dist/actions/get-batches.mjs +12 -12
  138. package/dist/actions/get-batches.mjs.map +1 -1
  139. package/dist/actions/get-brand.cjs +8 -8
  140. package/dist/actions/get-brand.cjs.map +1 -1
  141. package/dist/actions/get-brand.d.cts +11 -3
  142. package/dist/actions/get-brand.d.cts.map +1 -1
  143. package/dist/actions/get-brand.d.mts +11 -3
  144. package/dist/actions/get-brand.d.mts.map +1 -1
  145. package/dist/actions/get-brand.mjs +8 -8
  146. package/dist/actions/get-brand.mjs.map +1 -1
  147. package/dist/actions/get-cart.cjs +3 -3
  148. package/dist/actions/get-cart.cjs.map +1 -1
  149. package/dist/actions/get-cart.d.cts +31 -3
  150. package/dist/actions/get-cart.d.cts.map +1 -1
  151. package/dist/actions/get-cart.d.mts +31 -3
  152. package/dist/actions/get-cart.d.mts.map +1 -1
  153. package/dist/actions/get-cart.mjs +3 -3
  154. package/dist/actions/get-cart.mjs.map +1 -1
  155. package/dist/actions/get-category.cjs +5 -5
  156. package/dist/actions/get-category.cjs.map +1 -1
  157. package/dist/actions/get-category.d.cts +12 -3
  158. package/dist/actions/get-category.d.cts.map +1 -1
  159. package/dist/actions/get-category.d.mts +12 -3
  160. package/dist/actions/get-category.d.mts.map +1 -1
  161. package/dist/actions/get-category.mjs +5 -5
  162. package/dist/actions/get-category.mjs.map +1 -1
  163. package/dist/actions/get-contact.cjs +21 -21
  164. package/dist/actions/get-contact.cjs.map +1 -1
  165. package/dist/actions/get-contact.d.cts +47 -3
  166. package/dist/actions/get-contact.d.cts.map +1 -1
  167. package/dist/actions/get-contact.d.mts +47 -3
  168. package/dist/actions/get-contact.d.mts.map +1 -1
  169. package/dist/actions/get-contact.mjs +21 -21
  170. package/dist/actions/get-contact.mjs.map +1 -1
  171. package/dist/actions/get-order.cjs +9 -9
  172. package/dist/actions/get-order.cjs.map +1 -1
  173. package/dist/actions/get-order.d.cts +87 -3
  174. package/dist/actions/get-order.d.cts.map +1 -1
  175. package/dist/actions/get-order.d.mts +87 -3
  176. package/dist/actions/get-order.d.mts.map +1 -1
  177. package/dist/actions/get-order.mjs +9 -9
  178. package/dist/actions/get-order.mjs.map +1 -1
  179. package/dist/actions/get-product-category.cjs +3 -3
  180. package/dist/actions/get-product-category.cjs.map +1 -1
  181. package/dist/actions/get-product-category.d.cts +12 -3
  182. package/dist/actions/get-product-category.d.cts.map +1 -1
  183. package/dist/actions/get-product-category.d.mts +12 -3
  184. package/dist/actions/get-product-category.d.mts.map +1 -1
  185. package/dist/actions/get-product-category.mjs +3 -3
  186. package/dist/actions/get-product-category.mjs.map +1 -1
  187. package/dist/actions/get-product.cjs +11 -11
  188. package/dist/actions/get-product.cjs.map +1 -1
  189. package/dist/actions/get-product.d.cts +42 -3
  190. package/dist/actions/get-product.d.cts.map +1 -1
  191. package/dist/actions/get-product.d.mts +42 -3
  192. package/dist/actions/get-product.d.mts.map +1 -1
  193. package/dist/actions/get-product.mjs +11 -11
  194. package/dist/actions/get-product.mjs.map +1 -1
  195. package/dist/actions/list-campaigns.cjs +12 -12
  196. package/dist/actions/list-campaigns.cjs.map +1 -1
  197. package/dist/actions/list-campaigns.d.cts +57 -3
  198. package/dist/actions/list-campaigns.d.cts.map +1 -1
  199. package/dist/actions/list-campaigns.d.mts +57 -3
  200. package/dist/actions/list-campaigns.d.mts.map +1 -1
  201. package/dist/actions/list-campaigns.mjs +12 -12
  202. package/dist/actions/list-campaigns.mjs.map +1 -1
  203. package/dist/actions/list-carts.cjs +5 -5
  204. package/dist/actions/list-carts.cjs.map +1 -1
  205. package/dist/actions/list-carts.d.cts +46 -3
  206. package/dist/actions/list-carts.d.cts.map +1 -1
  207. package/dist/actions/list-carts.d.mts +46 -3
  208. package/dist/actions/list-carts.d.mts.map +1 -1
  209. package/dist/actions/list-carts.mjs +5 -5
  210. package/dist/actions/list-carts.mjs.map +1 -1
  211. package/dist/actions/list-categories.cjs +9 -9
  212. package/dist/actions/list-categories.cjs.map +1 -1
  213. package/dist/actions/list-categories.d.cts +24 -3
  214. package/dist/actions/list-categories.d.cts.map +1 -1
  215. package/dist/actions/list-categories.d.mts +24 -3
  216. package/dist/actions/list-categories.d.mts.map +1 -1
  217. package/dist/actions/list-categories.mjs +9 -9
  218. package/dist/actions/list-categories.mjs.map +1 -1
  219. package/dist/actions/list-contacts.cjs +23 -23
  220. package/dist/actions/list-contacts.cjs.map +1 -1
  221. package/dist/actions/list-contacts.d.cts +72 -3
  222. package/dist/actions/list-contacts.d.cts.map +1 -1
  223. package/dist/actions/list-contacts.d.mts +72 -3
  224. package/dist/actions/list-contacts.d.mts.map +1 -1
  225. package/dist/actions/list-contacts.mjs +23 -23
  226. package/dist/actions/list-contacts.mjs.map +1 -1
  227. package/dist/actions/list-events.cjs +3 -3
  228. package/dist/actions/list-events.cjs.map +1 -1
  229. package/dist/actions/list-events.d.cts +18 -3
  230. package/dist/actions/list-events.d.cts.map +1 -1
  231. package/dist/actions/list-events.d.mts +18 -3
  232. package/dist/actions/list-events.d.mts.map +1 -1
  233. package/dist/actions/list-events.mjs +3 -3
  234. package/dist/actions/list-events.mjs.map +1 -1
  235. package/dist/actions/list-product-categories.cjs +7 -7
  236. package/dist/actions/list-product-categories.cjs.map +1 -1
  237. package/dist/actions/list-product-categories.d.cts +28 -3
  238. package/dist/actions/list-product-categories.d.cts.map +1 -1
  239. package/dist/actions/list-product-categories.d.mts +28 -3
  240. package/dist/actions/list-product-categories.d.mts.map +1 -1
  241. package/dist/actions/list-product-categories.mjs +7 -7
  242. package/dist/actions/list-product-categories.mjs.map +1 -1
  243. package/dist/actions/list-products.cjs +18 -18
  244. package/dist/actions/list-products.cjs.map +1 -1
  245. package/dist/actions/list-products.d.cts +58 -3
  246. package/dist/actions/list-products.d.cts.map +1 -1
  247. package/dist/actions/list-products.d.mts +58 -3
  248. package/dist/actions/list-products.d.mts.map +1 -1
  249. package/dist/actions/list-products.mjs +18 -18
  250. package/dist/actions/list-products.mjs.map +1 -1
  251. package/dist/actions/remove-cart-product.cjs +1 -1
  252. package/dist/actions/remove-cart-product.cjs.map +1 -1
  253. package/dist/actions/remove-cart-product.d.cts +9 -3
  254. package/dist/actions/remove-cart-product.d.cts.map +1 -1
  255. package/dist/actions/remove-cart-product.d.mts +9 -3
  256. package/dist/actions/remove-cart-product.d.mts.map +1 -1
  257. package/dist/actions/remove-cart-product.mjs +1 -1
  258. package/dist/actions/remove-cart-product.mjs.map +1 -1
  259. package/dist/actions/replace-cart-product.cjs +5 -5
  260. package/dist/actions/replace-cart-product.cjs.map +1 -1
  261. package/dist/actions/replace-cart-product.d.cts +38 -3
  262. package/dist/actions/replace-cart-product.d.cts.map +1 -1
  263. package/dist/actions/replace-cart-product.d.mts +38 -3
  264. package/dist/actions/replace-cart-product.d.mts.map +1 -1
  265. package/dist/actions/replace-cart-product.mjs +5 -5
  266. package/dist/actions/replace-cart-product.mjs.map +1 -1
  267. package/dist/actions/replace-cart.cjs +2 -2
  268. package/dist/actions/replace-cart.cjs.map +1 -1
  269. package/dist/actions/replace-cart.d.cts +46 -3
  270. package/dist/actions/replace-cart.d.cts.map +1 -1
  271. package/dist/actions/replace-cart.d.mts +46 -3
  272. package/dist/actions/replace-cart.d.mts.map +1 -1
  273. package/dist/actions/replace-cart.mjs +2 -2
  274. package/dist/actions/replace-cart.mjs.map +1 -1
  275. package/dist/actions/replace-category.cjs +1 -1
  276. package/dist/actions/replace-category.cjs.map +1 -1
  277. package/dist/actions/replace-category.d.cts +11 -3
  278. package/dist/actions/replace-category.d.cts.map +1 -1
  279. package/dist/actions/replace-category.d.mts +11 -3
  280. package/dist/actions/replace-category.d.mts.map +1 -1
  281. package/dist/actions/replace-category.mjs +1 -1
  282. package/dist/actions/replace-category.mjs.map +1 -1
  283. package/dist/actions/replace-order.cjs +3 -3
  284. package/dist/actions/replace-order.cjs.map +1 -1
  285. package/dist/actions/replace-order.d.cts +136 -3
  286. package/dist/actions/replace-order.d.cts.map +1 -1
  287. package/dist/actions/replace-order.d.mts +136 -3
  288. package/dist/actions/replace-order.d.mts.map +1 -1
  289. package/dist/actions/replace-order.mjs +3 -3
  290. package/dist/actions/replace-order.mjs.map +1 -1
  291. package/dist/actions/replace-product.cjs +2 -2
  292. package/dist/actions/replace-product.cjs.map +1 -1
  293. package/dist/actions/replace-product.d.cts +70 -3
  294. package/dist/actions/replace-product.d.cts.map +1 -1
  295. package/dist/actions/replace-product.d.mts +70 -3
  296. package/dist/actions/replace-product.d.mts.map +1 -1
  297. package/dist/actions/replace-product.mjs +2 -2
  298. package/dist/actions/replace-product.mjs.map +1 -1
  299. package/dist/actions/send-event.cjs +3 -3
  300. package/dist/actions/send-event.cjs.map +1 -1
  301. package/dist/actions/send-event.d.cts +54 -3
  302. package/dist/actions/send-event.d.cts.map +1 -1
  303. package/dist/actions/send-event.d.mts +54 -3
  304. package/dist/actions/send-event.d.mts.map +1 -1
  305. package/dist/actions/send-event.mjs +3 -3
  306. package/dist/actions/send-event.mjs.map +1 -1
  307. package/dist/actions/update-cart-product.cjs +5 -5
  308. package/dist/actions/update-cart-product.cjs.map +1 -1
  309. package/dist/actions/update-cart-product.d.cts +38 -3
  310. package/dist/actions/update-cart-product.d.cts.map +1 -1
  311. package/dist/actions/update-cart-product.d.mts +38 -3
  312. package/dist/actions/update-cart-product.d.mts.map +1 -1
  313. package/dist/actions/update-cart-product.mjs +5 -5
  314. package/dist/actions/update-cart-product.mjs.map +1 -1
  315. package/dist/actions/update-cart.cjs +2 -2
  316. package/dist/actions/update-cart.cjs.map +1 -1
  317. package/dist/actions/update-cart.d.cts +44 -3
  318. package/dist/actions/update-cart.d.cts.map +1 -1
  319. package/dist/actions/update-cart.d.mts +44 -3
  320. package/dist/actions/update-cart.d.mts.map +1 -1
  321. package/dist/actions/update-cart.mjs +2 -2
  322. package/dist/actions/update-cart.mjs.map +1 -1
  323. package/dist/actions/update-contact.cjs +4 -4
  324. package/dist/actions/update-contact.cjs.map +1 -1
  325. package/dist/actions/update-contact.d.cts +89 -3
  326. package/dist/actions/update-contact.d.cts.map +1 -1
  327. package/dist/actions/update-contact.d.mts +89 -3
  328. package/dist/actions/update-contact.d.mts.map +1 -1
  329. package/dist/actions/update-contact.mjs +4 -4
  330. package/dist/actions/update-contact.mjs.map +1 -1
  331. package/dist/actions/update-order-status.cjs +2 -2
  332. package/dist/actions/update-order-status.cjs.map +1 -1
  333. package/dist/actions/update-order-status.d.cts +27 -3
  334. package/dist/actions/update-order-status.d.cts.map +1 -1
  335. package/dist/actions/update-order-status.d.mts +27 -3
  336. package/dist/actions/update-order-status.d.mts.map +1 -1
  337. package/dist/actions/update-order-status.mjs +2 -2
  338. package/dist/actions/update-order-status.mjs.map +1 -1
  339. package/dist/actions/update-product-category.cjs +1 -1
  340. package/dist/actions/update-product-category.cjs.map +1 -1
  341. package/dist/actions/update-product-category.d.cts +11 -3
  342. package/dist/actions/update-product-category.d.cts.map +1 -1
  343. package/dist/actions/update-product-category.d.mts +11 -3
  344. package/dist/actions/update-product-category.d.mts.map +1 -1
  345. package/dist/actions/update-product-category.mjs +1 -1
  346. package/dist/actions/update-product-category.mjs.map +1 -1
  347. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"replace-order.mjs","names":[],"sources":["../../src/actions/replace-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceOrderInput: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"Tags associated with the order\").optional(),\n cartID: z.string().describe(\"Identifier of the cart that led to this order\").optional(),\n source: z.string().describe(\"Source of the order (e.g., 'web', 'mobile')\").optional(),\n taxSum: z.number().int().describe(\"Total tax amount in smallest currency unit\").optional(),\n orderID: z.string().describe(\"Unique identifier of the order to replace\"),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., 'USD', 'EUR')\"),\n orderSum: z.number().int().describe(\"Total order amount in the smallest currency unit (e.g., cents)\"),\n orderUrl: z.string().describe(\"URL to view the order\").optional(),\n products: z.array(z.object({\n sku: z.string().describe(\"Stock keeping unit code\").optional(),\n price: z.number().int().describe(\"Price per unit in the smallest currency unit (e.g., cents)\").optional(),\n title: z.string().describe(\"Product title\").optional(),\n discount: z.number().int().describe(\"Discount amount in the smallest currency unit (e.g., cents)\").optional(),\n imageUrl: z.string().describe(\"URL of the product image\").optional(),\n quantity: z.number().int().describe(\"Quantity of this product in the order\").optional(),\n productID: z.string().describe(\"Unique identifier of the product\"),\n variantID: z.string().describe(\"Product variant identifier (required by API)\"),\n productUrl: z.string().describe(\"URL of the product page\").optional(),\n}).describe(\"Product information for order line items.\")).describe(\"List of products in the order\").optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the order was created\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the order was last updated\").optional(),\n courierUrl: z.string().describe(\"URL for courier tracking\").optional(),\n contactNote: z.string().describe(\"Notes about the customer\").optional(),\n discountSum: z.number().int().describe(\"Total discount amount in smallest currency unit\").optional(),\n orderNumber: z.number().int().describe(\"Human-readable order number\").optional(),\n shippingSum: z.number().int().describe(\"Shipping cost in smallest currency unit\").optional(),\n subTotalSum: z.number().int().describe(\"Subtotal before taxes and shipping in smallest currency unit\").optional(),\n cancelReason: z.string().describe(\"Reason for order cancellation if applicable\").optional(),\n canceledDate: z.string().describe(\"ISO 8601 timestamp when the order was canceled\").optional(),\n courierTitle: z.string().describe(\"Name of the shipping courier\").optional(),\n discountCode: z.string().describe(\"Discount or coupon code applied\").optional(),\n discountType: z.string().describe(\"Type of discount (e.g., 'percentage', 'fixed')\").optional(),\n trackingCode: z.string().describe(\"Shipment tracking code\").optional(),\n discountValue: z.number().int().describe(\"Discount value (percentage or fixed amount)\").optional(),\n paymentMethod: z.string().describe(\"Payment method used (e.g., 'credit_card', 'paypal')\").optional(),\n paymentStatus: z.string().describe(\"Payment status. Available values: awaitingPayment, partiallyPaid, paid, partiallyRefunded, refunded, voided\").optional(),\n billingAddress: z.object({\n city: z.string().describe(\"City name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n lastName: z.string().describe(\"Last name of the billing contact\").optional(),\n firstName: z.string().describe(\"First name of the billing contact\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n}).describe(\"Billing address information for the order.\").optional(),\n shippingMethod: z.string().describe(\"Shipping method used\").optional(),\n shippingAddress: z.object({\n city: z.string().describe(\"City name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n lastName: z.string().describe(\"Last name of the shipping contact\").optional(),\n firstName: z.string().describe(\"First name of the shipping contact\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n}).describe(\"Shipping address information for the order.\").optional(),\n fulfillmentStatus: z.string().describe(\"Fulfillment status (e.g., 'fulfilled', 'unfulfilled', 'partially_fulfilled')\").optional(),\n subTotalTaxIncluded: z.boolean().describe(\"Whether subtotal includes tax\").optional(),\n});\nexport const OmnisendReplaceOrderOutput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address associated with the order\").nullable().optional(),\n phone: z.string().describe(\"Phone number associated with the order\").nullable().optional(),\n orderID: z.string().describe(\"Unique identifier of the replaced order\"),\n});\n\nexport const omnisendReplaceOrder = action(\"OMNISEND_REPLACE_ORDER\", {\n slug: \"omnisend-replace-order\",\n name: \"Replace Order\",\n description: \"Tool to completely replace an existing order in Omnisend. Use when you need to update all order details at once, replacing the entire order record.\",\n input: OmnisendReplaceOrderInput,\n output: OmnisendReplaceOrderOutput,\n});\n"],"mappings":";;AA2EA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3EqD,EAAE,OAAO;EAC9D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACzF,SAAS,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CAAC,CAAC,SAAS;GAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC/E,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAClE,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EAChI,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACtF,CAWS;CACP,QAXsD,EAAE,OAAO;EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACxE,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"replace-order.mjs","names":[],"sources":["../../src/actions/replace-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceOrderInput = z.object({\n tags: z.array(z.string()).describe(\"Tags associated with the order\").optional(),\n cartID: z.string().describe(\"Identifier of the cart that led to this order\").optional(),\n source: z.string().describe(\"Source of the order (e.g., 'web', 'mobile')\").optional(),\n taxSum: z.number().int().describe(\"Total tax amount in smallest currency unit\").optional(),\n orderID: z.string().describe(\"Unique identifier of the order to replace\"),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., 'USD', 'EUR')\"),\n orderSum: z.number().int().describe(\"Total order amount in the smallest currency unit (e.g., cents)\"),\n orderUrl: z.string().describe(\"URL to view the order\").optional(),\n products: z.array(z.object({\n sku: z.string().describe(\"Stock keeping unit code\").optional(),\n price: z.number().int().describe(\"Price per unit in the smallest currency unit (e.g., cents)\").optional(),\n title: z.string().describe(\"Product title\").optional(),\n discount: z.number().int().describe(\"Discount amount in the smallest currency unit (e.g., cents)\").optional(),\n imageUrl: z.string().describe(\"URL of the product image\").optional(),\n quantity: z.number().int().describe(\"Quantity of this product in the order\").optional(),\n productID: z.string().describe(\"Unique identifier of the product\"),\n variantID: z.string().describe(\"Product variant identifier (required by API)\"),\n productUrl: z.string().describe(\"URL of the product page\").optional(),\n}).passthrough().describe(\"Product information for order line items.\")).describe(\"List of products in the order\").optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the order was created\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the order was last updated\").optional(),\n courierUrl: z.string().describe(\"URL for courier tracking\").optional(),\n contactNote: z.string().describe(\"Notes about the customer\").optional(),\n discountSum: z.number().int().describe(\"Total discount amount in smallest currency unit\").optional(),\n orderNumber: z.number().int().describe(\"Human-readable order number\").optional(),\n shippingSum: z.number().int().describe(\"Shipping cost in smallest currency unit\").optional(),\n subTotalSum: z.number().int().describe(\"Subtotal before taxes and shipping in smallest currency unit\").optional(),\n cancelReason: z.string().describe(\"Reason for order cancellation if applicable\").optional(),\n canceledDate: z.string().describe(\"ISO 8601 timestamp when the order was canceled\").optional(),\n courierTitle: z.string().describe(\"Name of the shipping courier\").optional(),\n discountCode: z.string().describe(\"Discount or coupon code applied\").optional(),\n discountType: z.string().describe(\"Type of discount (e.g., 'percentage', 'fixed')\").optional(),\n trackingCode: z.string().describe(\"Shipment tracking code\").optional(),\n discountValue: z.number().int().describe(\"Discount value (percentage or fixed amount)\").optional(),\n paymentMethod: z.string().describe(\"Payment method used (e.g., 'credit_card', 'paypal')\").optional(),\n paymentStatus: z.string().describe(\"Payment status. Available values: awaitingPayment, partiallyPaid, paid, partiallyRefunded, refunded, voided\").optional(),\n billingAddress: z.object({\n city: z.string().describe(\"City name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n lastName: z.string().describe(\"Last name of the billing contact\").optional(),\n firstName: z.string().describe(\"First name of the billing contact\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n}).describe(\"Billing address information for the order.\").optional(),\n shippingMethod: z.string().describe(\"Shipping method used\").optional(),\n shippingAddress: z.object({\n city: z.string().describe(\"City name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n lastName: z.string().describe(\"Last name of the shipping contact\").optional(),\n firstName: z.string().describe(\"First name of the shipping contact\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n}).describe(\"Shipping address information for the order.\").optional(),\n fulfillmentStatus: z.string().describe(\"Fulfillment status (e.g., 'fulfilled', 'unfulfilled', 'partially_fulfilled')\").optional(),\n subTotalTaxIncluded: z.boolean().describe(\"Whether subtotal includes tax\").optional(),\n});\nexport const OmnisendReplaceOrderOutput = z.object({\n email: z.string().describe(\"Email address associated with the order\").nullable().optional(),\n phone: z.string().describe(\"Phone number associated with the order\").nullable().optional(),\n orderID: z.string().describe(\"Unique identifier of the replaced order\").nullable(),\n}).passthrough();\n\nexport const omnisendReplaceOrder = action(\"OMNISEND_REPLACE_ORDER\", {\n slug: \"omnisend-replace-order\",\n name: \"Replace Order\",\n description: \"Tool to completely replace an existing order in Omnisend. Use when you need to update all order details at once, replacing the entire order record.\",\n input: OmnisendReplaceOrderInput,\n output: OmnisendReplaceOrderOutput,\n});\n"],"mappings":";;AA2EA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3EuC,EAAE,OAAO;EAChD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,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,SAAS;GACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;GACtD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;GAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;GAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;GAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC/E,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAClE,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EAChI,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACtF,CAWS;CACP,QAXwC,EAAE,OAAO;EACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -30,7 +30,7 @@ const OmnisendReplaceProductInput = zod.z.object({
30
30
  description: zod.z.string().describe("Description of the variant").optional(),
31
31
  defaultImageUrl: zod.z.string().describe("Primary image URL for this variant").optional(),
32
32
  strikeThroughPrice: zod.z.number().describe("Original price before discount").optional()
33
- })).describe("Product variants (different versions like sizes/colors). At least one variant required"),
33
+ }).passthrough()).describe("Product variants (different versions like sizes/colors). At least one variant required"),
34
34
  createdAt: zod.z.string().describe("Creation timestamp in ISO 8601 format").optional(),
35
35
  updatedAt: zod.z.string().describe("Last update timestamp in ISO 8601 format").optional(),
36
36
  product_id: zod.z.string().describe("Unique identifier of the product to replace. Must match the product ID in the request body"),
@@ -38,7 +38,7 @@ const OmnisendReplaceProductInput = zod.z.object({
38
38
  description: zod.z.string().describe("Short description of the product for email body usage").optional(),
39
39
  defaultImageUrl: zod.z.string().describe("Primary image URL. Recommended if you need more than one image - additional images go in the images array").optional()
40
40
  });
41
- const OmnisendReplaceProductOutput = zod.z.object({ id: zod.z.string().describe("Product identifier that was replaced") });
41
+ const OmnisendReplaceProductOutput = zod.z.object({ id: zod.z.string().describe("Product identifier that was replaced").nullable() }).passthrough();
42
42
  const omnisendReplaceProduct = require_action.action("OMNISEND_REPLACE_PRODUCT", {
43
43
  slug: "omnisend-replace-product",
44
44
  name: "Replace Product",
@@ -1 +1 @@
1
- {"version":3,"file":"replace-product.cjs","names":["z","action"],"sources":["../../src/actions/replace-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceProductInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Product ID - must match the product_id path parameter\"),\n url: z.string().describe(\"URL pointing to the product page on your website\"),\n tags: z.array(z.string()).describe(\"Tags for product categorization (max 100 items)\").optional(),\n type: z.string().describe(\"Product type for categorization purposes\").optional(),\n title: z.string().describe(\"Product title\"),\n images: z.array(z.string()).describe(\"Additional product image URLs (max 300 items)\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).describe(\"Product stock status. Keep in sync with your shop to avoid sending out-of-stock products\"),\n vendor: z.string().describe(\"Manufacturer or brand of the product\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR, GBP)\"),\n variants: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the variant\"),\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n url: z.string().describe(\"URL pointing to the variant's product page\"),\n price: z.number().describe(\"Price of the variant\"),\n title: z.string().describe(\"Title of the variant\"),\n images: z.array(z.string()).describe(\"Additional image URLs for the variant (max 300 items)\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).default(\"inStock\").describe(\"Stock status of the variant. Options: inStock, outOfStock, notAvailable\").optional(),\n description: z.string().describe(\"Description of the variant\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL for this variant\").optional(),\n strikeThroughPrice: z.number().describe(\"Original price before discount\").optional(),\n})).describe(\"Product variants (different versions like sizes/colors). At least one variant required\"),\n createdAt: z.string().describe(\"Creation timestamp in ISO 8601 format\").optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO 8601 format\").optional(),\n product_id: z.string().describe(\"Unique identifier of the product to replace. Must match the product ID in the request body\"),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs the product belongs to (max 100 items)\").optional(),\n description: z.string().describe(\"Short description of the product for email body usage\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL. Recommended if you need more than one image - additional images go in the images array\").optional(),\n});\nexport const OmnisendReplaceProductOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Product identifier that was replaced\"),\n});\n\nexport const omnisendReplaceProduct = action(\"OMNISEND_REPLACE_PRODUCT\", {\n slug: \"omnisend-replace-product\",\n name: \"Replace Product\",\n description: \"Tool to replace an existing product in the Omnisend catalog. Use when you need to completely replace all product data with new information.\",\n input: OmnisendReplaceProductInput,\n output: OmnisendReplaceProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CAC/E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC3E,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC/F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,O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C,SAAS,wFAAwF;CACnG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACjF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;CAC5H,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACnG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;AAC7J,CAAC;AACD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EAChE,CAAC;AAED,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"replace-product.cjs","names":["z","action"],"sources":["../../src/actions/replace-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceProductInput = z.object({\n id: z.string().describe(\"Product ID - must match the product_id path parameter\"),\n url: z.string().describe(\"URL pointing to the product page on your website\"),\n tags: z.array(z.string()).describe(\"Tags for product categorization (max 100 items)\").optional(),\n type: z.string().describe(\"Product type for categorization purposes\").optional(),\n title: z.string().describe(\"Product title\"),\n images: z.array(z.string()).describe(\"Additional product image URLs (max 300 items)\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).describe(\"Product stock status. Keep in sync with your shop to avoid sending out-of-stock products\"),\n vendor: z.string().describe(\"Manufacturer or brand of the product\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR, GBP)\"),\n variants: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the variant\"),\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n url: z.string().describe(\"URL pointing to the variant's product page\"),\n price: z.number().describe(\"Price of the variant\"),\n title: z.string().describe(\"Title of the variant\"),\n images: z.array(z.string()).describe(\"Additional image URLs for the variant (max 300 items)\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).default(\"inStock\").describe(\"Stock status of the variant. Options: inStock, outOfStock, notAvailable\").optional(),\n description: z.string().describe(\"Description of the variant\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL for this variant\").optional(),\n strikeThroughPrice: z.number().describe(\"Original price before discount\").optional(),\n}).passthrough()).describe(\"Product variants (different versions like sizes/colors). At least one variant required\"),\n createdAt: z.string().describe(\"Creation timestamp in ISO 8601 format\").optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO 8601 format\").optional(),\n product_id: z.string().describe(\"Unique identifier of the product to replace. Must match the product ID in the request body\"),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs the product belongs to (max 100 items)\").optional(),\n description: z.string().describe(\"Short description of the product for email body usage\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL. Recommended if you need more than one image - additional images go in the images array\").optional(),\n});\nexport const OmnisendReplaceProductOutput = z.object({\n id: z.string().describe(\"Product identifier that was replaced\").nullable(),\n}).passthrough();\n\nexport const omnisendReplaceProduct = action(\"OMNISEND_REPLACE_PRODUCT\", {\n slug: \"omnisend-replace-product\",\n name: \"Replace Product\",\n description: \"Tool to replace an existing product in the Omnisend catalog. Use when you need to completely replace all product data with new information.\",\n input: OmnisendReplaceProductInput,\n output: OmnisendReplaceProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CAC/E,KAAKA,IAAAA,EAAE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A,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACxE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACpF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,wFAAwF;CACjH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACjF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;CAC5H,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACnG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;AAC7J,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EAC3E,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,76 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/replace-product.d.ts
4
- declare const OmnisendReplaceProductInput: z.ZodTypeAny;
5
- declare const OmnisendReplaceProductOutput: z.ZodTypeAny;
6
- declare const omnisendReplaceProduct: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OmnisendReplaceProductInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ url: z.ZodString;
7
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
+ type: z.ZodOptional<z.ZodString>;
9
+ title: z.ZodString;
10
+ images: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
+ status: z.ZodEnum<{
12
+ inStock: "inStock";
13
+ outOfStock: "outOfStock";
14
+ notAvailable: "notAvailable";
15
+ }>;
16
+ vendor: z.ZodOptional<z.ZodString>;
17
+ currency: z.ZodString;
18
+ variants: z.ZodArray<z.ZodObject<{
19
+ id: z.ZodString;
20
+ sku: z.ZodOptional<z.ZodString>;
21
+ url: z.ZodString;
22
+ price: z.ZodNumber;
23
+ title: z.ZodString;
24
+ images: z.ZodOptional<z.ZodArray<z.ZodString>>;
25
+ status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
26
+ inStock: "inStock";
27
+ outOfStock: "outOfStock";
28
+ notAvailable: "notAvailable";
29
+ }>>>;
30
+ description: z.ZodOptional<z.ZodString>;
31
+ defaultImageUrl: z.ZodOptional<z.ZodString>;
32
+ strikeThroughPrice: z.ZodOptional<z.ZodNumber>;
33
+ }, z.core.$loose>>;
34
+ createdAt: z.ZodOptional<z.ZodString>;
35
+ updatedAt: z.ZodOptional<z.ZodString>;
36
+ product_id: z.ZodString;
37
+ categoryIDs: z.ZodOptional<z.ZodArray<z.ZodString>>;
38
+ description: z.ZodOptional<z.ZodString>;
39
+ defaultImageUrl: z.ZodOptional<z.ZodString>;
40
+ }, z.core.$strip>;
41
+ declare const OmnisendReplaceProductOutput: z.ZodObject<{
42
+ id: z.ZodNullable<z.ZodString>;
43
+ }, z.core.$loose>;
44
+ declare const omnisendReplaceProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
45
+ id: string;
46
+ url: string;
47
+ title: string;
48
+ status: "inStock" | "outOfStock" | "notAvailable";
49
+ currency: string;
50
+ variants: {
51
+ [x: string]: unknown;
52
+ id: string;
53
+ url: string;
54
+ price: number;
55
+ title: string;
56
+ sku?: string | undefined;
57
+ images?: string[] | undefined;
58
+ status?: "inStock" | "outOfStock" | "notAvailable" | undefined;
59
+ description?: string | undefined;
60
+ defaultImageUrl?: string | undefined;
61
+ strikeThroughPrice?: number | undefined;
62
+ }[];
63
+ product_id: string;
64
+ tags?: string[] | undefined;
65
+ type?: string | undefined;
66
+ images?: string[] | undefined;
67
+ vendor?: string | undefined;
68
+ createdAt?: string | undefined;
69
+ updatedAt?: string | undefined;
70
+ categoryIDs?: string[] | undefined;
71
+ description?: string | undefined;
72
+ defaultImageUrl?: string | undefined;
73
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
74
  //#endregion
8
75
  export { omnisendReplaceProduct };
9
76
  //# sourceMappingURL=replace-product.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"replace-product.d.cts","names":[],"sources":["../../src/actions/replace-product.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UA4B1C;AAAA,cACW,4BAAA,EAA8B,CAAA,CAAE,UAE3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"replace-product.d.cts","names":[],"sources":["../../src/actions/replace-product.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
@@ -1,9 +1,76 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/replace-product.d.ts
4
- declare const OmnisendReplaceProductInput: z.ZodTypeAny;
5
- declare const OmnisendReplaceProductOutput: z.ZodTypeAny;
6
- declare const omnisendReplaceProduct: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OmnisendReplaceProductInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ url: z.ZodString;
7
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
+ type: z.ZodOptional<z.ZodString>;
9
+ title: z.ZodString;
10
+ images: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
+ status: z.ZodEnum<{
12
+ inStock: "inStock";
13
+ outOfStock: "outOfStock";
14
+ notAvailable: "notAvailable";
15
+ }>;
16
+ vendor: z.ZodOptional<z.ZodString>;
17
+ currency: z.ZodString;
18
+ variants: z.ZodArray<z.ZodObject<{
19
+ id: z.ZodString;
20
+ sku: z.ZodOptional<z.ZodString>;
21
+ url: z.ZodString;
22
+ price: z.ZodNumber;
23
+ title: z.ZodString;
24
+ images: z.ZodOptional<z.ZodArray<z.ZodString>>;
25
+ status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
26
+ inStock: "inStock";
27
+ outOfStock: "outOfStock";
28
+ notAvailable: "notAvailable";
29
+ }>>>;
30
+ description: z.ZodOptional<z.ZodString>;
31
+ defaultImageUrl: z.ZodOptional<z.ZodString>;
32
+ strikeThroughPrice: z.ZodOptional<z.ZodNumber>;
33
+ }, z.core.$loose>>;
34
+ createdAt: z.ZodOptional<z.ZodString>;
35
+ updatedAt: z.ZodOptional<z.ZodString>;
36
+ product_id: z.ZodString;
37
+ categoryIDs: z.ZodOptional<z.ZodArray<z.ZodString>>;
38
+ description: z.ZodOptional<z.ZodString>;
39
+ defaultImageUrl: z.ZodOptional<z.ZodString>;
40
+ }, z.core.$strip>;
41
+ declare const OmnisendReplaceProductOutput: z.ZodObject<{
42
+ id: z.ZodNullable<z.ZodString>;
43
+ }, z.core.$loose>;
44
+ declare const omnisendReplaceProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
45
+ id: string;
46
+ url: string;
47
+ title: string;
48
+ status: "inStock" | "outOfStock" | "notAvailable";
49
+ currency: string;
50
+ variants: {
51
+ [x: string]: unknown;
52
+ id: string;
53
+ url: string;
54
+ price: number;
55
+ title: string;
56
+ sku?: string | undefined;
57
+ images?: string[] | undefined;
58
+ status?: "inStock" | "outOfStock" | "notAvailable" | undefined;
59
+ description?: string | undefined;
60
+ defaultImageUrl?: string | undefined;
61
+ strikeThroughPrice?: number | undefined;
62
+ }[];
63
+ product_id: string;
64
+ tags?: string[] | undefined;
65
+ type?: string | undefined;
66
+ images?: string[] | undefined;
67
+ vendor?: string | undefined;
68
+ createdAt?: string | undefined;
69
+ updatedAt?: string | undefined;
70
+ categoryIDs?: string[] | undefined;
71
+ description?: string | undefined;
72
+ defaultImageUrl?: string | undefined;
73
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
74
  //#endregion
8
75
  export { omnisendReplaceProduct };
9
76
  //# sourceMappingURL=replace-product.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"replace-product.d.mts","names":[],"sources":["../../src/actions/replace-product.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UA4B1C;AAAA,cACW,4BAAA,EAA8B,CAAA,CAAE,UAE3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"replace-product.d.mts","names":[],"sources":["../../src/actions/replace-product.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
@@ -33,7 +33,7 @@ const omnisendReplaceProduct = action("OMNISEND_REPLACE_PRODUCT", {
33
33
  description: z.string().describe("Description of the variant").optional(),
34
34
  defaultImageUrl: z.string().describe("Primary image URL for this variant").optional(),
35
35
  strikeThroughPrice: z.number().describe("Original price before discount").optional()
36
- })).describe("Product variants (different versions like sizes/colors). At least one variant required"),
36
+ }).passthrough()).describe("Product variants (different versions like sizes/colors). At least one variant required"),
37
37
  createdAt: z.string().describe("Creation timestamp in ISO 8601 format").optional(),
38
38
  updatedAt: z.string().describe("Last update timestamp in ISO 8601 format").optional(),
39
39
  product_id: z.string().describe("Unique identifier of the product to replace. Must match the product ID in the request body"),
@@ -41,7 +41,7 @@ const omnisendReplaceProduct = action("OMNISEND_REPLACE_PRODUCT", {
41
41
  description: z.string().describe("Short description of the product for email body usage").optional(),
42
42
  defaultImageUrl: z.string().describe("Primary image URL. Recommended if you need more than one image - additional images go in the images array").optional()
43
43
  }),
44
- output: z.object({ id: z.string().describe("Product identifier that was replaced") })
44
+ output: z.object({ id: z.string().describe("Product identifier that was replaced").nullable() }).passthrough()
45
45
  });
46
46
  //#endregion
47
47
  export { omnisendReplaceProduct };
@@ -1 +1 @@
1
- {"version":3,"file":"replace-product.mjs","names":[],"sources":["../../src/actions/replace-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceProductInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Product ID - must match the product_id path parameter\"),\n url: z.string().describe(\"URL pointing to the product page on your website\"),\n tags: z.array(z.string()).describe(\"Tags for product categorization (max 100 items)\").optional(),\n type: z.string().describe(\"Product type for categorization purposes\").optional(),\n title: z.string().describe(\"Product title\"),\n images: z.array(z.string()).describe(\"Additional product image URLs (max 300 items)\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).describe(\"Product stock status. Keep in sync with your shop to avoid sending out-of-stock products\"),\n vendor: z.string().describe(\"Manufacturer or brand of the product\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR, GBP)\"),\n variants: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the variant\"),\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n url: z.string().describe(\"URL pointing to the variant's product page\"),\n price: z.number().describe(\"Price of the variant\"),\n title: z.string().describe(\"Title of the variant\"),\n images: z.array(z.string()).describe(\"Additional image URLs for the variant (max 300 items)\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).default(\"inStock\").describe(\"Stock status of the variant. Options: inStock, outOfStock, notAvailable\").optional(),\n description: z.string().describe(\"Description of the variant\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL for this variant\").optional(),\n strikeThroughPrice: z.number().describe(\"Original price before discount\").optional(),\n})).describe(\"Product variants (different versions like sizes/colors). At least one variant required\"),\n createdAt: z.string().describe(\"Creation timestamp in ISO 8601 format\").optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO 8601 format\").optional(),\n product_id: z.string().describe(\"Unique identifier of the product to replace. Must match the product ID in the request body\"),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs the product belongs to (max 100 items)\").optional(),\n description: z.string().describe(\"Short description of the product for email body usage\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL. Recommended if you need more than one image - additional images go in the images array\").optional(),\n});\nexport const OmnisendReplaceProductOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Product identifier that was replaced\"),\n});\n\nexport const omnisendReplaceProduct = action(\"OMNISEND_REPLACE_PRODUCT\", {\n slug: \"omnisend-replace-product\",\n name: \"Replace Product\",\n description: \"Tool to replace an existing product in the Omnisend catalog. Use when you need to completely replace all product data with new information.\",\n input: OmnisendReplaceProductInput,\n output: OmnisendReplaceProductOutput,\n});\n"],"mappings":";;AAqCA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArCuD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EAC/E,KAAK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CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrF,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF;EACnG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACjF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;EAC5H,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAClH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACnG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAC7J,CASS;CACP,QATwD,EAAE,OAAO,EACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EAChE,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"replace-product.mjs","names":[],"sources":["../../src/actions/replace-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceProductInput = z.object({\n id: z.string().describe(\"Product ID - must match the product_id path parameter\"),\n url: z.string().describe(\"URL pointing to the product page on your website\"),\n tags: z.array(z.string()).describe(\"Tags for product categorization (max 100 items)\").optional(),\n type: z.string().describe(\"Product type for categorization purposes\").optional(),\n title: z.string().describe(\"Product title\"),\n images: z.array(z.string()).describe(\"Additional product image URLs (max 300 items)\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).describe(\"Product stock status. Keep in sync with your shop to avoid sending out-of-stock products\"),\n vendor: z.string().describe(\"Manufacturer or brand of the product\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR, GBP)\"),\n variants: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the variant\"),\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n url: z.string().describe(\"URL pointing to the variant's product page\"),\n price: z.number().describe(\"Price of the variant\"),\n title: z.string().describe(\"Title of the variant\"),\n images: z.array(z.string()).describe(\"Additional image URLs for the variant (max 300 items)\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).default(\"inStock\").describe(\"Stock status of the variant. Options: inStock, outOfStock, notAvailable\").optional(),\n description: z.string().describe(\"Description of the variant\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL for this variant\").optional(),\n strikeThroughPrice: z.number().describe(\"Original price before discount\").optional(),\n}).passthrough()).describe(\"Product variants (different versions like sizes/colors). At least one variant required\"),\n createdAt: z.string().describe(\"Creation timestamp in ISO 8601 format\").optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO 8601 format\").optional(),\n product_id: z.string().describe(\"Unique identifier of the product to replace. Must match the product ID in the request body\"),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs the product belongs to (max 100 items)\").optional(),\n description: z.string().describe(\"Short description of the product for email body usage\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL. Recommended if you need more than one image - additional images go in the images array\").optional(),\n});\nexport const OmnisendReplaceProductOutput = z.object({\n id: z.string().describe(\"Product identifier that was replaced\").nullable(),\n}).passthrough();\n\nexport const omnisendReplaceProduct = action(\"OMNISEND_REPLACE_PRODUCT\", {\n slug: \"omnisend-replace-product\",\n name: \"Replace Product\",\n description: \"Tool to replace an existing product in the Omnisend catalog. Use when you need to completely replace all product data with new information.\",\n input: OmnisendReplaceProductInput,\n output: OmnisendReplaceProductOutput,\n});\n"],"mappings":";;AAqCA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArCyC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EAC/E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EAC3E,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC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AAC,SAAS,wFAAwF;EACjH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACjF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;EAC5H,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAClH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACnG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAC7J,CASS;CACP,QAT0C,EAAE,OAAO,EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EAC3E,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -18,18 +18,18 @@ const OmnisendSendEventInput = zod.z.object({
18
18
  firstName: zod.z.string().describe("Contact's first name").optional(),
19
19
  postalCode: zod.z.string().describe("Postal or ZIP code").optional(),
20
20
  countryCode: zod.z.string().describe("ISO 3166-1 alpha-2 country code").optional(),
21
- customProperties: zod.z.object({}).describe("Custom properties for the contact").optional()
21
+ customProperties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom properties for the contact").optional()
22
22
  }).describe("Contact information. Contact will be created or updated based on the data provided. At least one identifier (email, phone, or id) is required."),
23
23
  eventID: zod.z.string().describe("UUID of the event (v4, v5, v6, v7). Used for event deduplication along with eventTime. If not provided, it will be generated automatically.").optional(),
24
24
  eventName: zod.z.string().describe("Name of the event (e.g., 'order placed', 'product viewed', 'test_event'). Check event documentation for standard event names."),
25
25
  eventTime: zod.z.string().describe("Event timestamp in RFC3339 format (e.g., '2021-07-01T00:00:00Z'). If not provided, current time will be used.").optional(),
26
- properties: zod.z.object({}).describe("Event-specific properties such as order details, product info, etc. Check events guide for recommended properties for each event type.").optional(),
26
+ properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Event-specific properties such as order details, product info, etc. Check events guide for recommended properties for each event type.").optional(),
27
27
  eventVersion: zod.z.string().describe("Event version string. Check event documentation for required version for each event. Leave empty for custom events.").optional()
28
28
  }).describe("Request schema for sending a customer event to Omnisend.");
29
29
  const OmnisendSendEventOutput = zod.z.object({
30
30
  status: zod.z.string().describe("Status of the event submission").nullable().optional(),
31
31
  eventID: zod.z.string().describe("UUID of the event that was created or processed").nullable().optional()
32
- }).describe("Response schema for send event action.");
32
+ }).passthrough().describe("Response schema for send event action.");
33
33
  const omnisendSendEvent = require_action.action("OMNISEND_SEND_EVENT", {
34
34
  slug: "omnisend-send-event",
35
35
  name: "Send Event",
@@ -1 +1 @@
1
- {"version":3,"file":"send-event.cjs","names":["z","action"],"sources":["../../src/actions/send-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendSendEventInput: z.ZodTypeAny = z.object({\n origin: z.string().describe(\"Source of the event. Use 'api' for general API integrations. Platform or app integrations should have dedicated origin values.\"),\n contact: z.object({\n id: z.string().describe(\"Contact ID from Omnisend\").optional(),\n city: z.string().describe(\"City name\").optional(),\n tags: z.array(z.string()).describe(\"Tags associated with the contact\").optional(),\n email: z.string().describe(\"Contact email address\").optional(),\n phone: z.string().describe(\"Contact phone number in E.164 format\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n gender: z.string().describe(\"Contact's gender\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Full country name\").optional(),\n lastName: z.string().describe(\"Contact's last name\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format\").optional(),\n firstName: z.string().describe(\"Contact's first name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n customProperties: z.object({}).describe(\"Custom properties for the contact\").optional(),\n}).describe(\"Contact information. Contact will be created or updated based on the data provided. At least one identifier (email, phone, or id) is required.\"),\n eventID: z.string().describe(\"UUID of the event (v4, v5, v6, v7). Used for event deduplication along with eventTime. If not provided, it will be generated automatically.\").optional(),\n eventName: z.string().describe(\"Name of the event (e.g., 'order placed', 'product viewed', 'test_event'). Check event documentation for standard event names.\"),\n eventTime: z.string().describe(\"Event timestamp in RFC3339 format (e.g., '2021-07-01T00:00:00Z'). If not provided, current time will be used.\").optional(),\n properties: z.object({}).describe(\"Event-specific properties such as order details, product info, etc. Check events guide for recommended properties for each event type.\").optional(),\n eventVersion: z.string().describe(\"Event version string. Check event documentation for required version for each event. Leave empty for custom events.\").optional(),\n}).describe(\"Request schema for sending a customer event to Omnisend.\");\nexport const OmnisendSendEventOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of the event submission\").nullable().optional(),\n eventID: z.string().describe(\"UUID of the event that was created or processed\").nullable().optional(),\n}).describe(\"Response schema for send event action.\");\n\nexport const omnisendSendEvent = action(\"OMNISEND_SEND_EVENT\", {\n slug: \"omnisend-send-event\",\n name: \"Send Event\",\n description: \"Tool to send a customer event to Omnisend. Events can trigger automations and track customer behavior. Use when you need to record customer interactions such as product views, cart actions, or custom events.\",\n input: OmnisendSendEventInput,\n output: OmnisendSendEventOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI;CAC5J,SAASA,IAAAA,EAAE,OAAO;EAClB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;EAChD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChF,OAAOA,IAAAA,EAAE,OAA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wIAAwI,CAAC,CAAC,SAAS;CACrL,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;AACpK,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"send-event.cjs","names":["z","action"],"sources":["../../src/actions/send-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendSendEventInput = z.object({\n origin: z.string().describe(\"Source of the event. Use 'api' for general API integrations. Platform or app integrations should have dedicated origin values.\"),\n contact: z.object({\n id: z.string().describe(\"Contact ID from Omnisend\").optional(),\n city: z.string().describe(\"City name\").optional(),\n tags: z.array(z.string()).describe(\"Tags associated with the contact\").optional(),\n email: z.string().describe(\"Contact email address\").optional(),\n phone: z.string().describe(\"Contact phone number in E.164 format\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n gender: z.string().describe(\"Contact's gender\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Full country name\").optional(),\n lastName: z.string().describe(\"Contact's last name\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format\").optional(),\n firstName: z.string().describe(\"Contact's first name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n customProperties: z.record(z.string(), z.unknown()).describe(\"Custom properties for the contact\").optional(),\n}).describe(\"Contact information. Contact will be created or updated based on the data provided. At least one identifier (email, phone, or id) is required.\"),\n eventID: z.string().describe(\"UUID of the event (v4, v5, v6, v7). Used for event deduplication along with eventTime. If not provided, it will be generated automatically.\").optional(),\n eventName: z.string().describe(\"Name of the event (e.g., 'order placed', 'product viewed', 'test_event'). Check event documentation for standard event names.\"),\n eventTime: z.string().describe(\"Event timestamp in RFC3339 format (e.g., '2021-07-01T00:00:00Z'). If not provided, current time will be used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Event-specific properties such as order details, product info, etc. Check events guide for recommended properties for each event type.\").optional(),\n eventVersion: z.string().describe(\"Event version string. Check event documentation for required version for each event. Leave empty for custom events.\").optional(),\n}).describe(\"Request schema for sending a customer event to Omnisend.\");\nexport const OmnisendSendEventOutput = z.object({\n status: z.string().describe(\"Status of the event submission\").nullable().optional(),\n eventID: z.string().describe(\"UUID of the event that was created or processed\").nullable().optional(),\n}).passthrough().describe(\"Response schema for send event action.\");\n\nexport const omnisendSendEvent = action(\"OMNISEND_SEND_EVENT\", {\n slug: \"omnisend-send-event\",\n name: \"Send Event\",\n description: \"Tool to send a customer event to Omnisend. Events can trigger automations and track customer behavior. Use when you need to record customer interactions such as product views, cart actions, or custom events.\",\n input: OmnisendSendEventInput,\n output: OmnisendSendEventOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI;CAC5J,SAASA,IAAAA,EAAE,OAAO;EAClB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;EAChD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAA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AAS,+GAA+G,CAAC,CAAC,SAAS;CACzJ,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;CAC1M,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;AACpK,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,60 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/send-event.d.ts
4
- declare const OmnisendSendEventInput: z.ZodTypeAny;
5
- declare const OmnisendSendEventOutput: z.ZodTypeAny;
6
- declare const omnisendSendEvent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OmnisendSendEventInput: z.ZodObject<{
5
+ origin: z.ZodString;
6
+ contact: z.ZodObject<{
7
+ id: z.ZodOptional<z.ZodString>;
8
+ city: z.ZodOptional<z.ZodString>;
9
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
+ email: z.ZodOptional<z.ZodString>;
11
+ phone: z.ZodOptional<z.ZodString>;
12
+ state: z.ZodOptional<z.ZodString>;
13
+ gender: z.ZodOptional<z.ZodString>;
14
+ address: z.ZodOptional<z.ZodString>;
15
+ country: z.ZodOptional<z.ZodString>;
16
+ lastName: z.ZodOptional<z.ZodString>;
17
+ birthdate: z.ZodOptional<z.ZodString>;
18
+ firstName: z.ZodOptional<z.ZodString>;
19
+ postalCode: z.ZodOptional<z.ZodString>;
20
+ countryCode: z.ZodOptional<z.ZodString>;
21
+ customProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
22
+ }, z.core.$strip>;
23
+ eventID: z.ZodOptional<z.ZodString>;
24
+ eventName: z.ZodString;
25
+ eventTime: z.ZodOptional<z.ZodString>;
26
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
27
+ eventVersion: z.ZodOptional<z.ZodString>;
28
+ }, z.core.$strip>;
29
+ declare const OmnisendSendEventOutput: z.ZodObject<{
30
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ eventID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ }, z.core.$loose>;
33
+ declare const omnisendSendEvent: import("@keystrokehq/action").WorkflowActionDefinition<{
34
+ origin: string;
35
+ contact: {
36
+ id?: string | undefined;
37
+ city?: string | undefined;
38
+ tags?: string[] | undefined;
39
+ email?: string | undefined;
40
+ phone?: string | undefined;
41
+ state?: string | undefined;
42
+ gender?: string | undefined;
43
+ address?: string | undefined;
44
+ country?: string | undefined;
45
+ lastName?: string | undefined;
46
+ birthdate?: string | undefined;
47
+ firstName?: string | undefined;
48
+ postalCode?: string | undefined;
49
+ countryCode?: string | undefined;
50
+ customProperties?: Record<string, unknown> | undefined;
51
+ };
52
+ eventName: string;
53
+ eventID?: string | undefined;
54
+ eventTime?: string | undefined;
55
+ properties?: Record<string, unknown> | undefined;
56
+ eventVersion?: string | undefined;
57
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
58
  //#endregion
8
59
  export { omnisendSendEvent };
9
60
  //# sourceMappingURL=send-event.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send-event.d.cts","names":[],"sources":["../../src/actions/send-event.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAwBgC;AAAA,cAC1D,uBAAA,EAAyB,CAAA,CAAE,UAGa;AAAA,cAExC,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"send-event.d.cts","names":[],"sources":["../../src/actions/send-event.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAyBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;;;;;;;;;;;;;;;uBAM5B,MAAA;EAAA;;;;eAAA,MAAA"}
@@ -1,9 +1,60 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/send-event.d.ts
4
- declare const OmnisendSendEventInput: z.ZodTypeAny;
5
- declare const OmnisendSendEventOutput: z.ZodTypeAny;
6
- declare const omnisendSendEvent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OmnisendSendEventInput: z.ZodObject<{
5
+ origin: z.ZodString;
6
+ contact: z.ZodObject<{
7
+ id: z.ZodOptional<z.ZodString>;
8
+ city: z.ZodOptional<z.ZodString>;
9
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
+ email: z.ZodOptional<z.ZodString>;
11
+ phone: z.ZodOptional<z.ZodString>;
12
+ state: z.ZodOptional<z.ZodString>;
13
+ gender: z.ZodOptional<z.ZodString>;
14
+ address: z.ZodOptional<z.ZodString>;
15
+ country: z.ZodOptional<z.ZodString>;
16
+ lastName: z.ZodOptional<z.ZodString>;
17
+ birthdate: z.ZodOptional<z.ZodString>;
18
+ firstName: z.ZodOptional<z.ZodString>;
19
+ postalCode: z.ZodOptional<z.ZodString>;
20
+ countryCode: z.ZodOptional<z.ZodString>;
21
+ customProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
22
+ }, z.core.$strip>;
23
+ eventID: z.ZodOptional<z.ZodString>;
24
+ eventName: z.ZodString;
25
+ eventTime: z.ZodOptional<z.ZodString>;
26
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
27
+ eventVersion: z.ZodOptional<z.ZodString>;
28
+ }, z.core.$strip>;
29
+ declare const OmnisendSendEventOutput: z.ZodObject<{
30
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ eventID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ }, z.core.$loose>;
33
+ declare const omnisendSendEvent: import("@keystrokehq/action").WorkflowActionDefinition<{
34
+ origin: string;
35
+ contact: {
36
+ id?: string | undefined;
37
+ city?: string | undefined;
38
+ tags?: string[] | undefined;
39
+ email?: string | undefined;
40
+ phone?: string | undefined;
41
+ state?: string | undefined;
42
+ gender?: string | undefined;
43
+ address?: string | undefined;
44
+ country?: string | undefined;
45
+ lastName?: string | undefined;
46
+ birthdate?: string | undefined;
47
+ firstName?: string | undefined;
48
+ postalCode?: string | undefined;
49
+ countryCode?: string | undefined;
50
+ customProperties?: Record<string, unknown> | undefined;
51
+ };
52
+ eventName: string;
53
+ eventID?: string | undefined;
54
+ eventTime?: string | undefined;
55
+ properties?: Record<string, unknown> | undefined;
56
+ eventVersion?: string | undefined;
57
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
58
  //#endregion
8
59
  export { omnisendSendEvent };
9
60
  //# sourceMappingURL=send-event.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send-event.d.mts","names":[],"sources":["../../src/actions/send-event.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAwBgC;AAAA,cAC1D,uBAAA,EAAyB,CAAA,CAAE,UAGa;AAAA,cAExC,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"send-event.d.mts","names":[],"sources":["../../src/actions/send-event.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAyBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;;;;;;;;;;;;;;;uBAM5B,MAAA;EAAA;;;;eAAA,MAAA"}
@@ -21,18 +21,18 @@ const omnisendSendEvent = action("OMNISEND_SEND_EVENT", {
21
21
  firstName: z.string().describe("Contact's first name").optional(),
22
22
  postalCode: z.string().describe("Postal or ZIP code").optional(),
23
23
  countryCode: z.string().describe("ISO 3166-1 alpha-2 country code").optional(),
24
- customProperties: z.object({}).describe("Custom properties for the contact").optional()
24
+ customProperties: z.record(z.string(), z.unknown()).describe("Custom properties for the contact").optional()
25
25
  }).describe("Contact information. Contact will be created or updated based on the data provided. At least one identifier (email, phone, or id) is required."),
26
26
  eventID: z.string().describe("UUID of the event (v4, v5, v6, v7). Used for event deduplication along with eventTime. If not provided, it will be generated automatically.").optional(),
27
27
  eventName: z.string().describe("Name of the event (e.g., 'order placed', 'product viewed', 'test_event'). Check event documentation for standard event names."),
28
28
  eventTime: z.string().describe("Event timestamp in RFC3339 format (e.g., '2021-07-01T00:00:00Z'). If not provided, current time will be used.").optional(),
29
- properties: z.object({}).describe("Event-specific properties such as order details, product info, etc. Check events guide for recommended properties for each event type.").optional(),
29
+ properties: z.record(z.string(), z.unknown()).describe("Event-specific properties such as order details, product info, etc. Check events guide for recommended properties for each event type.").optional(),
30
30
  eventVersion: z.string().describe("Event version string. Check event documentation for required version for each event. Leave empty for custom events.").optional()
31
31
  }).describe("Request schema for sending a customer event to Omnisend."),
32
32
  output: z.object({
33
33
  status: z.string().describe("Status of the event submission").nullable().optional(),
34
34
  eventID: z.string().describe("UUID of the event that was created or processed").nullable().optional()
35
- }).describe("Response schema for send event action.")
35
+ }).passthrough().describe("Response schema for send event action.")
36
36
  });
37
37
  //#endregion
38
38
  export { omnisendSendEvent };
@@ -1 +1 @@
1
- {"version":3,"file":"send-event.mjs","names":[],"sources":["../../src/actions/send-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendSendEventInput: z.ZodTypeAny = z.object({\n origin: z.string().describe(\"Source of the event. Use 'api' for general API integrations. Platform or app integrations should have dedicated origin values.\"),\n contact: z.object({\n id: z.string().describe(\"Contact ID from Omnisend\").optional(),\n city: z.string().describe(\"City name\").optional(),\n tags: z.array(z.string()).describe(\"Tags associated with the contact\").optional(),\n email: z.string().describe(\"Contact email address\").optional(),\n phone: z.string().describe(\"Contact phone number in E.164 format\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n gender: z.string().describe(\"Contact's gender\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Full country name\").optional(),\n lastName: z.string().describe(\"Contact's last name\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format\").optional(),\n firstName: z.string().describe(\"Contact's first name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n customProperties: z.object({}).describe(\"Custom properties for the contact\").optional(),\n}).describe(\"Contact information. Contact will be created or updated based on the data provided. At least one identifier (email, phone, or id) is required.\"),\n eventID: z.string().describe(\"UUID of the event (v4, v5, v6, v7). Used for event deduplication along with eventTime. If not provided, it will be generated automatically.\").optional(),\n eventName: z.string().describe(\"Name of the event (e.g., 'order placed', 'product viewed', 'test_event'). Check event documentation for standard event names.\"),\n eventTime: z.string().describe(\"Event timestamp in RFC3339 format (e.g., '2021-07-01T00:00:00Z'). If not provided, current time will be used.\").optional(),\n properties: z.object({}).describe(\"Event-specific properties such as order details, product info, etc. Check events guide for recommended properties for each event type.\").optional(),\n eventVersion: z.string().describe(\"Event version string. Check event documentation for required version for each event. Leave empty for custom events.\").optional(),\n}).describe(\"Request schema for sending a customer event to Omnisend.\");\nexport const OmnisendSendEventOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of the event submission\").nullable().optional(),\n eventID: z.string().describe(\"UUID of the event that was created or processed\").nullable().optional(),\n}).describe(\"Response schema for send event action.\");\n\nexport const omnisendSendEvent = action(\"OMNISEND_SEND_EVENT\", {\n slug: \"omnisend-send-event\",\n name: \"Send Event\",\n description: \"Tool to send a customer event to Omnisend. Events can trigger automations and track customer behavior. Use when you need to record customer interactions such as product views, cart actions, or custom events.\",\n input: OmnisendSendEventInput,\n output: OmnisendSendEventOutput,\n});\n"],"mappings":";;AAkCA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlCkD,EAAE,OAAO;EAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI;EAC5J,SAAS,EAAE,OAAO;GAClB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;GAChD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;GAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;GAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;GACzD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;GAC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}
1
+ {"version":3,"file":"send-event.mjs","names":[],"sources":["../../src/actions/send-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendSendEventInput = z.object({\n origin: z.string().describe(\"Source of the event. Use 'api' for general API integrations. Platform or app integrations should have dedicated origin values.\"),\n contact: z.object({\n id: z.string().describe(\"Contact ID from Omnisend\").optional(),\n city: z.string().describe(\"City name\").optional(),\n tags: z.array(z.string()).describe(\"Tags associated with the contact\").optional(),\n email: z.string().describe(\"Contact email address\").optional(),\n phone: z.string().describe(\"Contact phone number in E.164 format\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n gender: z.string().describe(\"Contact's gender\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Full country name\").optional(),\n lastName: z.string().describe(\"Contact's last name\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format\").optional(),\n firstName: z.string().describe(\"Contact's first name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n customProperties: z.record(z.string(), z.unknown()).describe(\"Custom properties for the contact\").optional(),\n}).describe(\"Contact information. Contact will be created or updated based on the data provided. At least one identifier (email, phone, or id) is required.\"),\n eventID: z.string().describe(\"UUID of the event (v4, v5, v6, v7). Used for event deduplication along with eventTime. If not provided, it will be generated automatically.\").optional(),\n eventName: z.string().describe(\"Name of the event (e.g., 'order placed', 'product viewed', 'test_event'). Check event documentation for standard event names.\"),\n eventTime: z.string().describe(\"Event timestamp in RFC3339 format (e.g., '2021-07-01T00:00:00Z'). If not provided, current time will be used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Event-specific properties such as order details, product info, etc. Check events guide for recommended properties for each event type.\").optional(),\n eventVersion: z.string().describe(\"Event version string. Check event documentation for required version for each event. Leave empty for custom events.\").optional(),\n}).describe(\"Request schema for sending a customer event to Omnisend.\");\nexport const OmnisendSendEventOutput = z.object({\n status: z.string().describe(\"Status of the event submission\").nullable().optional(),\n eventID: z.string().describe(\"UUID of the event that was created or processed\").nullable().optional(),\n}).passthrough().describe(\"Response schema for send event action.\");\n\nexport const omnisendSendEvent = action(\"OMNISEND_SEND_EVENT\", {\n slug: \"omnisend-send-event\",\n name: \"Send Event\",\n description: \"Tool to send a customer event to Omnisend. Events can trigger automations and track customer behavior. Use when you need to record customer interactions such as product views, cart actions, or custom events.\",\n input: OmnisendSendEventInput,\n output: OmnisendSendEventOutput,\n});\n"],"mappings":";;AAkCA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlCoC,EAAE,OAAO;EAC7C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI;EAC5J,SAAS,EAAE,OAAO;GAClB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;GAChD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;GAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;GAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;GACzD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;GACzD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;GACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;GAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;GAC9D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;GAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;GAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;GAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GAC7E,kBAAkB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC7G,CAAC,CAAC,CAAC,SAAS,gJAAgJ;EAC1J,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS;EACrL,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;EAC9J,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;EACzJ,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;EAC1M,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CACpK,CAAC,CAAC,CAAC,SAAS,0DAUH;CACP,QAVqC,EAAE,OAAO;EAC9C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
@@ -18,11 +18,11 @@ const OmnisendUpdateCartProductInput = zod.z.object({
18
18
  cart_product_id: zod.z.string().describe("Unique identifier of the product in the cart to update.")
19
19
  });
20
20
  const OmnisendUpdateCartProductOutput = zod.z.object({
21
- cartID: zod.z.string().describe("Unique identifier of the cart."),
22
- productID: zod.z.string().describe("Product identifier."),
23
- variantID: zod.z.string().describe("Product variant identifier."),
24
- cartProductID: zod.z.string().describe("Unique identifier of the product in the cart.")
25
- });
21
+ cartID: zod.z.string().describe("Unique identifier of the cart.").nullable(),
22
+ productID: zod.z.string().describe("Product identifier.").nullable(),
23
+ variantID: zod.z.string().describe("Product variant identifier.").nullable(),
24
+ cartProductID: zod.z.string().describe("Unique identifier of the product in the cart.").nullable()
25
+ }).passthrough();
26
26
  const omnisendUpdateCartProduct = require_action.action("OMNISEND_UPDATE_CART_PRODUCT", {
27
27
  slug: "omnisend-update-cart-product",
28
28
  name: "Update Cart Product",
@@ -1 +1 @@
1
- {"version":3,"file":"update-cart-product.cjs","names":["z","action"],"sources":["../../src/actions/update-cart-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateCartProductInput: z.ZodTypeAny = z.object({\n sku: z.string().describe(\"Stock keeping unit (SKU).\").optional(),\n price: z.number().int().describe(\"Current price in cents (e.g., 125 for $1.25).\").optional(),\n title: z.string().describe(\"Product title.\").optional(),\n cart_id: z.string().describe(\"Unique identifier of the cart.\"),\n currency: z.string().describe(\"ISO currency code (3 characters). Must match the cart's currency.\"),\n discount: z.number().int().describe(\"Discount sum in cents.\").optional(),\n quantity: z.number().int().describe(\"Product quantity (must be a whole number, minimum 1).\").optional(),\n image_url: z.string().describe(\"Link to product image.\").optional(),\n old_price: z.number().int().describe(\"Original price in cents (e.g., 125 for $1.25).\").optional(),\n product_id: z.string().describe(\"Product identifier.\").optional(),\n variant_id: z.string().describe(\"Product variant identifier.\").optional(),\n description: z.string().describe(\"Product description.\").optional(),\n product_url: z.string().describe(\"Link to product page.\").optional(),\n cart_product_id: z.string().describe(\"Unique identifier of the product in the cart to update.\"),\n});\nexport const OmnisendUpdateCartProductOutput: z.ZodTypeAny = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart.\"),\n productID: z.string().describe(\"Product identifier.\"),\n variantID: z.string().describe(\"Product variant identifier.\"),\n cartProductID: z.string().describe(\"Unique identifier of the product in the cart.\"),\n});\n\nexport const omnisendUpdateCartProduct = action(\"OMNISEND_UPDATE_CART_PRODUCT\", {\n slug: \"omnisend-update-cart-product\",\n name: \"Update Cart Product\",\n description: \"Tool to update a product in a cart (v3 API). Use when you need to modify product details such as quantity, price, or other attributes for an existing cart item.\",\n input: OmnisendUpdateCartProductInput,\n output: OmnisendUpdateCartProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAChG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAClE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACnE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAChG,CAAC;AACD,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC5D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AACpF,CAAC;AAED,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-cart-product.cjs","names":["z","action"],"sources":["../../src/actions/update-cart-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateCartProductInput = z.object({\n sku: z.string().describe(\"Stock keeping unit (SKU).\").optional(),\n price: z.number().int().describe(\"Current price in cents (e.g., 125 for $1.25).\").optional(),\n title: z.string().describe(\"Product title.\").optional(),\n cart_id: z.string().describe(\"Unique identifier of the cart.\"),\n currency: z.string().describe(\"ISO currency code (3 characters). Must match the cart's currency.\"),\n discount: z.number().int().describe(\"Discount sum in cents.\").optional(),\n quantity: z.number().int().describe(\"Product quantity (must be a whole number, minimum 1).\").optional(),\n image_url: z.string().describe(\"Link to product image.\").optional(),\n old_price: z.number().int().describe(\"Original price in cents (e.g., 125 for $1.25).\").optional(),\n product_id: z.string().describe(\"Product identifier.\").optional(),\n variant_id: z.string().describe(\"Product variant identifier.\").optional(),\n description: z.string().describe(\"Product description.\").optional(),\n product_url: z.string().describe(\"Link to product page.\").optional(),\n cart_product_id: z.string().describe(\"Unique identifier of the product in the cart to update.\"),\n});\nexport const OmnisendUpdateCartProductOutput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart.\").nullable(),\n productID: z.string().describe(\"Product identifier.\").nullable(),\n variantID: z.string().describe(\"Product variant identifier.\").nullable(),\n cartProductID: z.string().describe(\"Unique identifier of the product in the cart.\").nullable(),\n}).passthrough();\n\nexport const omnisendUpdateCartProduct = action(\"OMNISEND_UPDATE_CART_PRODUCT\", {\n slug: \"omnisend-update-cart-product\",\n name: \"Update Cart Product\",\n description: \"Tool to update a product in a cart (v3 API). Use when you need to modify product details such as quantity, price, or other attributes for an existing cart item.\",\n input: OmnisendUpdateCartProductInput,\n output: OmnisendUpdateCartProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS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