@keystrokehq/omnisend 0.1.0

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 (378) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-cart-product.cjs +36 -0
  7. package/dist/actions/add-cart-product.cjs.map +1 -0
  8. package/dist/actions/add-cart-product.d.cts +9 -0
  9. package/dist/actions/add-cart-product.d.cts.map +1 -0
  10. package/dist/actions/add-cart-product.d.mts +9 -0
  11. package/dist/actions/add-cart-product.d.mts.map +1 -0
  12. package/dist/actions/add-cart-product.mjs +33 -0
  13. package/dist/actions/add-cart-product.mjs.map +1 -0
  14. package/dist/actions/create-batch.cjs +53 -0
  15. package/dist/actions/create-batch.cjs.map +1 -0
  16. package/dist/actions/create-batch.d.cts +9 -0
  17. package/dist/actions/create-batch.d.cts.map +1 -0
  18. package/dist/actions/create-batch.d.mts +9 -0
  19. package/dist/actions/create-batch.d.mts.map +1 -0
  20. package/dist/actions/create-batch.mjs +52 -0
  21. package/dist/actions/create-batch.mjs.map +1 -0
  22. package/dist/actions/create-cart.cjs +38 -0
  23. package/dist/actions/create-cart.cjs.map +1 -0
  24. package/dist/actions/create-cart.d.cts +9 -0
  25. package/dist/actions/create-cart.d.cts.map +1 -0
  26. package/dist/actions/create-cart.d.mts +9 -0
  27. package/dist/actions/create-cart.d.mts.map +1 -0
  28. package/dist/actions/create-cart.mjs +35 -0
  29. package/dist/actions/create-cart.mjs.map +1 -0
  30. package/dist/actions/create-category.cjs +19 -0
  31. package/dist/actions/create-category.cjs.map +1 -0
  32. package/dist/actions/create-category.d.cts +9 -0
  33. package/dist/actions/create-category.d.cts.map +1 -0
  34. package/dist/actions/create-category.d.mts +9 -0
  35. package/dist/actions/create-category.d.mts.map +1 -0
  36. package/dist/actions/create-category.mjs +16 -0
  37. package/dist/actions/create-category.mjs.map +1 -0
  38. package/dist/actions/create-or-update-contact.cjs +45 -0
  39. package/dist/actions/create-or-update-contact.cjs.map +1 -0
  40. package/dist/actions/create-or-update-contact.d.cts +9 -0
  41. package/dist/actions/create-or-update-contact.d.cts.map +1 -0
  42. package/dist/actions/create-or-update-contact.d.mts +9 -0
  43. package/dist/actions/create-or-update-contact.d.mts.map +1 -0
  44. package/dist/actions/create-or-update-contact.mjs +42 -0
  45. package/dist/actions/create-or-update-contact.mjs.map +1 -0
  46. package/dist/actions/create-order.cjs +105 -0
  47. package/dist/actions/create-order.cjs.map +1 -0
  48. package/dist/actions/create-order.d.cts +9 -0
  49. package/dist/actions/create-order.d.cts.map +1 -0
  50. package/dist/actions/create-order.d.mts +9 -0
  51. package/dist/actions/create-order.d.mts.map +1 -0
  52. package/dist/actions/create-order.mjs +102 -0
  53. package/dist/actions/create-order.mjs.map +1 -0
  54. package/dist/actions/create-product-category.cjs +19 -0
  55. package/dist/actions/create-product-category.cjs.map +1 -0
  56. package/dist/actions/create-product-category.d.cts +9 -0
  57. package/dist/actions/create-product-category.d.cts.map +1 -0
  58. package/dist/actions/create-product-category.d.mts +9 -0
  59. package/dist/actions/create-product-category.d.mts.map +1 -0
  60. package/dist/actions/create-product-category.mjs +16 -0
  61. package/dist/actions/create-product-category.mjs.map +1 -0
  62. package/dist/actions/create-product.cjs +51 -0
  63. package/dist/actions/create-product.cjs.map +1 -0
  64. package/dist/actions/create-product.d.cts +9 -0
  65. package/dist/actions/create-product.d.cts.map +1 -0
  66. package/dist/actions/create-product.d.mts +9 -0
  67. package/dist/actions/create-product.d.mts.map +1 -0
  68. package/dist/actions/create-product.mjs +48 -0
  69. package/dist/actions/create-product.mjs.map +1 -0
  70. package/dist/actions/delete-cart.cjs +16 -0
  71. package/dist/actions/delete-cart.cjs.map +1 -0
  72. package/dist/actions/delete-cart.d.cts +9 -0
  73. package/dist/actions/delete-cart.d.cts.map +1 -0
  74. package/dist/actions/delete-cart.d.mts +9 -0
  75. package/dist/actions/delete-cart.d.mts.map +1 -0
  76. package/dist/actions/delete-cart.mjs +13 -0
  77. package/dist/actions/delete-cart.mjs.map +1 -0
  78. package/dist/actions/delete-category.cjs +16 -0
  79. package/dist/actions/delete-category.cjs.map +1 -0
  80. package/dist/actions/delete-category.d.cts +9 -0
  81. package/dist/actions/delete-category.d.cts.map +1 -0
  82. package/dist/actions/delete-category.d.mts +9 -0
  83. package/dist/actions/delete-category.d.mts.map +1 -0
  84. package/dist/actions/delete-category.mjs +13 -0
  85. package/dist/actions/delete-category.mjs.map +1 -0
  86. package/dist/actions/delete-order.cjs +16 -0
  87. package/dist/actions/delete-order.cjs.map +1 -0
  88. package/dist/actions/delete-order.d.cts +9 -0
  89. package/dist/actions/delete-order.d.cts.map +1 -0
  90. package/dist/actions/delete-order.d.mts +9 -0
  91. package/dist/actions/delete-order.d.mts.map +1 -0
  92. package/dist/actions/delete-order.mjs +13 -0
  93. package/dist/actions/delete-order.mjs.map +1 -0
  94. package/dist/actions/delete-product-category.cjs +16 -0
  95. package/dist/actions/delete-product-category.cjs.map +1 -0
  96. package/dist/actions/delete-product-category.d.cts +9 -0
  97. package/dist/actions/delete-product-category.d.cts.map +1 -0
  98. package/dist/actions/delete-product-category.d.mts +9 -0
  99. package/dist/actions/delete-product-category.d.mts.map +1 -0
  100. package/dist/actions/delete-product-category.mjs +13 -0
  101. package/dist/actions/delete-product-category.mjs.map +1 -0
  102. package/dist/actions/delete-product.cjs +16 -0
  103. package/dist/actions/delete-product.cjs.map +1 -0
  104. package/dist/actions/delete-product.d.cts +9 -0
  105. package/dist/actions/delete-product.d.cts.map +1 -0
  106. package/dist/actions/delete-product.d.mts +9 -0
  107. package/dist/actions/delete-product.d.mts.map +1 -0
  108. package/dist/actions/delete-product.mjs +13 -0
  109. package/dist/actions/delete-product.mjs.map +1 -0
  110. package/dist/actions/get-batch-information.cjs +25 -0
  111. package/dist/actions/get-batch-information.cjs.map +1 -0
  112. package/dist/actions/get-batch-information.d.cts +9 -0
  113. package/dist/actions/get-batch-information.d.cts.map +1 -0
  114. package/dist/actions/get-batch-information.d.mts +9 -0
  115. package/dist/actions/get-batch-information.d.mts.map +1 -0
  116. package/dist/actions/get-batch-information.mjs +22 -0
  117. package/dist/actions/get-batch-information.mjs.map +1 -0
  118. package/dist/actions/get-batch-item.cjs +29 -0
  119. package/dist/actions/get-batch-item.cjs.map +1 -0
  120. package/dist/actions/get-batch-item.d.cts +9 -0
  121. package/dist/actions/get-batch-item.d.cts.map +1 -0
  122. package/dist/actions/get-batch-item.d.mts +9 -0
  123. package/dist/actions/get-batch-item.d.mts.map +1 -0
  124. package/dist/actions/get-batch-item.mjs +26 -0
  125. package/dist/actions/get-batch-item.mjs.map +1 -0
  126. package/dist/actions/get-batch-items.cjs +23 -0
  127. package/dist/actions/get-batch-items.cjs.map +1 -0
  128. package/dist/actions/get-batch-items.d.cts +9 -0
  129. package/dist/actions/get-batch-items.d.cts.map +1 -0
  130. package/dist/actions/get-batch-items.d.mts +9 -0
  131. package/dist/actions/get-batch-items.d.mts.map +1 -0
  132. package/dist/actions/get-batch-items.mjs +22 -0
  133. package/dist/actions/get-batch-items.mjs.map +1 -0
  134. package/dist/actions/get-batches.cjs +44 -0
  135. package/dist/actions/get-batches.cjs.map +1 -0
  136. package/dist/actions/get-batches.d.cts +9 -0
  137. package/dist/actions/get-batches.d.cts.map +1 -0
  138. package/dist/actions/get-batches.d.mts +9 -0
  139. package/dist/actions/get-batches.d.mts.map +1 -0
  140. package/dist/actions/get-batches.mjs +43 -0
  141. package/dist/actions/get-batches.mjs.map +1 -0
  142. package/dist/actions/get-brand.cjs +24 -0
  143. package/dist/actions/get-brand.cjs.map +1 -0
  144. package/dist/actions/get-brand.d.cts +9 -0
  145. package/dist/actions/get-brand.d.cts.map +1 -0
  146. package/dist/actions/get-brand.d.mts +9 -0
  147. package/dist/actions/get-brand.d.mts.map +1 -0
  148. package/dist/actions/get-brand.mjs +21 -0
  149. package/dist/actions/get-brand.mjs.map +1 -0
  150. package/dist/actions/get-cart.cjs +41 -0
  151. package/dist/actions/get-cart.cjs.map +1 -0
  152. package/dist/actions/get-cart.d.cts +9 -0
  153. package/dist/actions/get-cart.d.cts.map +1 -0
  154. package/dist/actions/get-cart.d.mts +9 -0
  155. package/dist/actions/get-cart.d.mts.map +1 -0
  156. package/dist/actions/get-cart.mjs +40 -0
  157. package/dist/actions/get-cart.mjs.map +1 -0
  158. package/dist/actions/get-category.cjs +21 -0
  159. package/dist/actions/get-category.cjs.map +1 -0
  160. package/dist/actions/get-category.d.cts +9 -0
  161. package/dist/actions/get-category.d.cts.map +1 -0
  162. package/dist/actions/get-category.d.mts +9 -0
  163. package/dist/actions/get-category.d.mts.map +1 -0
  164. package/dist/actions/get-category.mjs +18 -0
  165. package/dist/actions/get-category.mjs.map +1 -0
  166. package/dist/actions/get-contact.cjs +60 -0
  167. package/dist/actions/get-contact.cjs.map +1 -0
  168. package/dist/actions/get-contact.d.cts +9 -0
  169. package/dist/actions/get-contact.d.cts.map +1 -0
  170. package/dist/actions/get-contact.d.mts +9 -0
  171. package/dist/actions/get-contact.d.mts.map +1 -0
  172. package/dist/actions/get-contact.mjs +59 -0
  173. package/dist/actions/get-contact.mjs.map +1 -0
  174. package/dist/actions/get-order.cjs +86 -0
  175. package/dist/actions/get-order.cjs.map +1 -0
  176. package/dist/actions/get-order.d.cts +9 -0
  177. package/dist/actions/get-order.d.cts.map +1 -0
  178. package/dist/actions/get-order.d.mts +9 -0
  179. package/dist/actions/get-order.d.mts.map +1 -0
  180. package/dist/actions/get-order.mjs +85 -0
  181. package/dist/actions/get-order.mjs.map +1 -0
  182. package/dist/actions/get-product-category.cjs +21 -0
  183. package/dist/actions/get-product-category.cjs.map +1 -0
  184. package/dist/actions/get-product-category.d.cts +9 -0
  185. package/dist/actions/get-product-category.d.cts.map +1 -0
  186. package/dist/actions/get-product-category.d.mts +9 -0
  187. package/dist/actions/get-product-category.d.mts.map +1 -0
  188. package/dist/actions/get-product-category.mjs +18 -0
  189. package/dist/actions/get-product-category.mjs.map +1 -0
  190. package/dist/actions/get-product.cjs +52 -0
  191. package/dist/actions/get-product.cjs.map +1 -0
  192. package/dist/actions/get-product.d.cts +9 -0
  193. package/dist/actions/get-product.d.cts.map +1 -0
  194. package/dist/actions/get-product.d.mts +9 -0
  195. package/dist/actions/get-product.d.mts.map +1 -0
  196. package/dist/actions/get-product.mjs +51 -0
  197. package/dist/actions/get-product.mjs.map +1 -0
  198. package/dist/actions/index.cjs +87 -0
  199. package/dist/actions/index.d.cts +44 -0
  200. package/dist/actions/index.d.mts +44 -0
  201. package/dist/actions/index.mjs +44 -0
  202. package/dist/actions/list-campaigns.cjs +69 -0
  203. package/dist/actions/list-campaigns.cjs.map +1 -0
  204. package/dist/actions/list-campaigns.d.cts +9 -0
  205. package/dist/actions/list-campaigns.d.cts.map +1 -0
  206. package/dist/actions/list-campaigns.d.mts +9 -0
  207. package/dist/actions/list-campaigns.d.mts.map +1 -0
  208. package/dist/actions/list-campaigns.mjs +68 -0
  209. package/dist/actions/list-campaigns.mjs.map +1 -0
  210. package/dist/actions/list-carts.cjs +49 -0
  211. package/dist/actions/list-carts.cjs.map +1 -0
  212. package/dist/actions/list-carts.d.cts +9 -0
  213. package/dist/actions/list-carts.d.cts.map +1 -0
  214. package/dist/actions/list-carts.d.mts +9 -0
  215. package/dist/actions/list-carts.d.mts.map +1 -0
  216. package/dist/actions/list-carts.mjs +48 -0
  217. package/dist/actions/list-carts.mjs.map +1 -0
  218. package/dist/actions/list-categories.cjs +35 -0
  219. package/dist/actions/list-categories.cjs.map +1 -0
  220. package/dist/actions/list-categories.d.cts +9 -0
  221. package/dist/actions/list-categories.d.cts.map +1 -0
  222. package/dist/actions/list-categories.d.mts +9 -0
  223. package/dist/actions/list-categories.d.mts.map +1 -0
  224. package/dist/actions/list-categories.mjs +34 -0
  225. package/dist/actions/list-categories.mjs.map +1 -0
  226. package/dist/actions/list-contacts.cjs +82 -0
  227. package/dist/actions/list-contacts.cjs.map +1 -0
  228. package/dist/actions/list-contacts.d.cts +9 -0
  229. package/dist/actions/list-contacts.d.cts.map +1 -0
  230. package/dist/actions/list-contacts.d.mts +9 -0
  231. package/dist/actions/list-contacts.d.mts.map +1 -0
  232. package/dist/actions/list-contacts.mjs +81 -0
  233. package/dist/actions/list-contacts.mjs.map +1 -0
  234. package/dist/actions/list-events.cjs +31 -0
  235. package/dist/actions/list-events.cjs.map +1 -0
  236. package/dist/actions/list-events.d.cts +9 -0
  237. package/dist/actions/list-events.d.cts.map +1 -0
  238. package/dist/actions/list-events.d.mts +9 -0
  239. package/dist/actions/list-events.d.mts.map +1 -0
  240. package/dist/actions/list-events.mjs +30 -0
  241. package/dist/actions/list-events.mjs.map +1 -0
  242. package/dist/actions/list-product-categories.cjs +39 -0
  243. package/dist/actions/list-product-categories.cjs.map +1 -0
  244. package/dist/actions/list-product-categories.d.cts +9 -0
  245. package/dist/actions/list-product-categories.d.cts.map +1 -0
  246. package/dist/actions/list-product-categories.d.mts +9 -0
  247. package/dist/actions/list-product-categories.d.mts.map +1 -0
  248. package/dist/actions/list-product-categories.mjs +38 -0
  249. package/dist/actions/list-product-categories.mjs.map +1 -0
  250. package/dist/actions/list-products.cjs +70 -0
  251. package/dist/actions/list-products.cjs.map +1 -0
  252. package/dist/actions/list-products.d.cts +9 -0
  253. package/dist/actions/list-products.d.cts.map +1 -0
  254. package/dist/actions/list-products.d.mts +9 -0
  255. package/dist/actions/list-products.d.mts.map +1 -0
  256. package/dist/actions/list-products.mjs +69 -0
  257. package/dist/actions/list-products.mjs.map +1 -0
  258. package/dist/actions/remove-cart-product.cjs +19 -0
  259. package/dist/actions/remove-cart-product.cjs.map +1 -0
  260. package/dist/actions/remove-cart-product.d.cts +9 -0
  261. package/dist/actions/remove-cart-product.d.cts.map +1 -0
  262. package/dist/actions/remove-cart-product.d.mts +9 -0
  263. package/dist/actions/remove-cart-product.d.mts.map +1 -0
  264. package/dist/actions/remove-cart-product.mjs +16 -0
  265. package/dist/actions/remove-cart-product.mjs.map +1 -0
  266. package/dist/actions/replace-cart-product.cjs +36 -0
  267. package/dist/actions/replace-cart-product.cjs.map +1 -0
  268. package/dist/actions/replace-cart-product.d.cts +9 -0
  269. package/dist/actions/replace-cart-product.d.cts.map +1 -0
  270. package/dist/actions/replace-cart-product.d.mts +9 -0
  271. package/dist/actions/replace-cart-product.d.mts.map +1 -0
  272. package/dist/actions/replace-cart-product.mjs +33 -0
  273. package/dist/actions/replace-cart-product.mjs.map +1 -0
  274. package/dist/actions/replace-cart.cjs +36 -0
  275. package/dist/actions/replace-cart.cjs.map +1 -0
  276. package/dist/actions/replace-cart.d.cts +9 -0
  277. package/dist/actions/replace-cart.d.cts.map +1 -0
  278. package/dist/actions/replace-cart.d.mts +9 -0
  279. package/dist/actions/replace-cart.d.mts.map +1 -0
  280. package/dist/actions/replace-cart.mjs +33 -0
  281. package/dist/actions/replace-cart.mjs.map +1 -0
  282. package/dist/actions/replace-category.cjs +19 -0
  283. package/dist/actions/replace-category.cjs.map +1 -0
  284. package/dist/actions/replace-category.d.cts +9 -0
  285. package/dist/actions/replace-category.d.cts.map +1 -0
  286. package/dist/actions/replace-category.d.mts +9 -0
  287. package/dist/actions/replace-category.d.mts.map +1 -0
  288. package/dist/actions/replace-category.mjs +16 -0
  289. package/dist/actions/replace-category.mjs.map +1 -0
  290. package/dist/actions/replace-order.cjs +84 -0
  291. package/dist/actions/replace-order.cjs.map +1 -0
  292. package/dist/actions/replace-order.d.cts +9 -0
  293. package/dist/actions/replace-order.d.cts.map +1 -0
  294. package/dist/actions/replace-order.d.mts +9 -0
  295. package/dist/actions/replace-order.d.mts.map +1 -0
  296. package/dist/actions/replace-order.mjs +81 -0
  297. package/dist/actions/replace-order.mjs.map +1 -0
  298. package/dist/actions/replace-product.cjs +52 -0
  299. package/dist/actions/replace-product.cjs.map +1 -0
  300. package/dist/actions/replace-product.d.cts +9 -0
  301. package/dist/actions/replace-product.d.cts.map +1 -0
  302. package/dist/actions/replace-product.d.mts +9 -0
  303. package/dist/actions/replace-product.d.mts.map +1 -0
  304. package/dist/actions/replace-product.mjs +49 -0
  305. package/dist/actions/replace-product.mjs.map +1 -0
  306. package/dist/actions/send-event.cjs +43 -0
  307. package/dist/actions/send-event.cjs.map +1 -0
  308. package/dist/actions/send-event.d.cts +9 -0
  309. package/dist/actions/send-event.d.cts.map +1 -0
  310. package/dist/actions/send-event.d.mts +9 -0
  311. package/dist/actions/send-event.d.mts.map +1 -0
  312. package/dist/actions/send-event.mjs +40 -0
  313. package/dist/actions/send-event.mjs.map +1 -0
  314. package/dist/actions/update-cart-product.cjs +36 -0
  315. package/dist/actions/update-cart-product.cjs.map +1 -0
  316. package/dist/actions/update-cart-product.d.cts +9 -0
  317. package/dist/actions/update-cart-product.d.cts.map +1 -0
  318. package/dist/actions/update-cart-product.d.mts +9 -0
  319. package/dist/actions/update-cart-product.d.mts.map +1 -0
  320. package/dist/actions/update-cart-product.mjs +33 -0
  321. package/dist/actions/update-cart-product.mjs.map +1 -0
  322. package/dist/actions/update-cart.cjs +35 -0
  323. package/dist/actions/update-cart.cjs.map +1 -0
  324. package/dist/actions/update-cart.d.cts +9 -0
  325. package/dist/actions/update-cart.d.cts.map +1 -0
  326. package/dist/actions/update-cart.d.mts +9 -0
  327. package/dist/actions/update-cart.d.mts.map +1 -0
  328. package/dist/actions/update-cart.mjs +32 -0
  329. package/dist/actions/update-cart.mjs.map +1 -0
  330. package/dist/actions/update-contact.cjs +60 -0
  331. package/dist/actions/update-contact.cjs.map +1 -0
  332. package/dist/actions/update-contact.d.cts +9 -0
  333. package/dist/actions/update-contact.d.cts.map +1 -0
  334. package/dist/actions/update-contact.d.mts +9 -0
  335. package/dist/actions/update-contact.d.mts.map +1 -0
  336. package/dist/actions/update-contact.mjs +57 -0
  337. package/dist/actions/update-contact.mjs.map +1 -0
  338. package/dist/actions/update-order-status.cjs +30 -0
  339. package/dist/actions/update-order-status.cjs.map +1 -0
  340. package/dist/actions/update-order-status.d.cts +9 -0
  341. package/dist/actions/update-order-status.d.cts.map +1 -0
  342. package/dist/actions/update-order-status.d.mts +9 -0
  343. package/dist/actions/update-order-status.d.mts.map +1 -0
  344. package/dist/actions/update-order-status.mjs +27 -0
  345. package/dist/actions/update-order-status.mjs.map +1 -0
  346. package/dist/actions/update-product-category.cjs +19 -0
  347. package/dist/actions/update-product-category.cjs.map +1 -0
  348. package/dist/actions/update-product-category.d.cts +9 -0
  349. package/dist/actions/update-product-category.d.cts.map +1 -0
  350. package/dist/actions/update-product-category.d.mts +9 -0
  351. package/dist/actions/update-product-category.d.mts.map +1 -0
  352. package/dist/actions/update-product-category.mjs +16 -0
  353. package/dist/actions/update-product-category.mjs.map +1 -0
  354. package/dist/app.cjs +9 -0
  355. package/dist/app.cjs.map +1 -0
  356. package/dist/app.d.cts +5 -0
  357. package/dist/app.d.cts.map +1 -0
  358. package/dist/app.d.mts +5 -0
  359. package/dist/app.d.mts.map +1 -0
  360. package/dist/app.mjs +10 -0
  361. package/dist/app.mjs.map +1 -0
  362. package/dist/catalog.cjs +15 -0
  363. package/dist/catalog.cjs.map +1 -0
  364. package/dist/catalog.d.cts +14 -0
  365. package/dist/catalog.d.cts.map +1 -0
  366. package/dist/catalog.d.mts +14 -0
  367. package/dist/catalog.d.mts.map +1 -0
  368. package/dist/catalog.mjs +15 -0
  369. package/dist/catalog.mjs.map +1 -0
  370. package/dist/execute.cjs +18 -0
  371. package/dist/execute.cjs.map +1 -0
  372. package/dist/execute.mjs +18 -0
  373. package/dist/execute.mjs.map +1 -0
  374. package/dist/index.cjs +92 -0
  375. package/dist/index.d.cts +46 -0
  376. package/dist/index.d.mts +46 -0
  377. package/dist/index.mjs +47 -0
  378. package/package.json +49 -0
@@ -0,0 +1,36 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/replace-cart.ts
4
+ const OmnisendReplaceCartInput = zod.z.object({
5
+ cartID: zod.z.string().describe("Unique identifier of the cart to replace"),
6
+ cartSum: zod.z.number().int().describe("Total cart value in cents (e.g., 78777 = $787.77)"),
7
+ currency: zod.z.string().describe("ISO 4217 currency code for the cart (e.g., USD, EUR, GBP)"),
8
+ products: zod.z.array(zod.z.object({
9
+ price: zod.z.number().int().describe("Current price of the product in cents (e.g., 78777 = $787.77)"),
10
+ title: zod.z.string().describe("Name or title of the product"),
11
+ discount: zod.z.number().int().describe("Discount amount in cents").optional(),
12
+ imageUrl: zod.z.string().describe("URL to the product image").optional(),
13
+ oldPrice: zod.z.number().int().describe("Original price before discount in cents").optional(),
14
+ quantity: zod.z.number().int().describe("Quantity of this product in the cart"),
15
+ productID: zod.z.string().describe("Unique identifier of the product"),
16
+ variantID: zod.z.string().describe("Unique identifier of the product variant"),
17
+ productUrl: zod.z.string().describe("URL to the product page").optional(),
18
+ description: zod.z.string().describe("Description of the product").optional(),
19
+ cartProductID: zod.z.string().describe("Unique identifier for this product within the cart")
20
+ })).describe("List of products in the cart"),
21
+ createdAt: zod.z.string().describe("ISO 8601 timestamp when the cart was created").optional(),
22
+ updatedAt: zod.z.string().describe("ISO 8601 timestamp when the cart was last updated").optional(),
23
+ cartRecoveryUrl: zod.z.string().describe("URL to restore the cart, used for abandoned cart recovery").optional()
24
+ });
25
+ const OmnisendReplaceCartOutput = zod.z.object({ cartID: zod.z.string().describe("Unique identifier of the replaced cart") });
26
+ const omnisendReplaceCart = require_action.action("OMNISEND_REPLACE_CART", {
27
+ slug: "omnisend-replace-cart",
28
+ name: "Replace Cart",
29
+ description: "Tool to replace an existing cart in Omnisend using the v3 API. Use when you need to completely replace all cart data including products, pricing, and recovery URL.",
30
+ input: OmnisendReplaceCartInput,
31
+ output: OmnisendReplaceCartOutput
32
+ });
33
+ //#endregion
34
+ exports.omnisendReplaceCart = omnisendReplaceCart;
35
+
36
+ //# sourceMappingURL=replace-cart.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-cart.cjs","names":["z","action"],"sources":["../../src/actions/replace-cart.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceCartInput: z.ZodTypeAny = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart to replace\"),\n cartSum: z.number().int().describe(\"Total cart value in cents (e.g., 78777 = $787.77)\"),\n currency: z.string().describe(\"ISO 4217 currency code for the cart (e.g., USD, EUR, GBP)\"),\n products: z.array(z.object({\n price: z.number().int().describe(\"Current price of the product in cents (e.g., 78777 = $787.77)\"),\n title: z.string().describe(\"Name or title of the product\"),\n discount: z.number().int().describe(\"Discount amount in cents\").optional(),\n imageUrl: z.string().describe(\"URL to the product image\").optional(),\n oldPrice: z.number().int().describe(\"Original price before discount in cents\").optional(),\n quantity: z.number().int().describe(\"Quantity of this product in the cart\"),\n productID: z.string().describe(\"Unique identifier of the product\"),\n variantID: z.string().describe(\"Unique identifier of the product variant\"),\n productUrl: z.string().describe(\"URL to the product page\").optional(),\n description: z.string().describe(\"Description of the product\").optional(),\n cartProductID: z.string().describe(\"Unique identifier for this product within the cart\"),\n})).describe(\"List of products in the cart\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the cart was created\").optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the cart was last updated\").optional(),\n cartRecoveryUrl: z.string().describe(\"URL to restore the cart, used for abandoned cart recovery\").optional(),\n});\nexport const OmnisendReplaceCartOutput: z.ZodTypeAny = z.object({\n cartID: z.string().describe(\"Unique identifier of the replaced cart\"),\n});\n\nexport const omnisendReplaceCart = action(\"OMNISEND_REPLACE_CART\", {\n slug: \"omnisend-replace-cart\",\n name: \"Replace Cart\",\n description: \"Tool to replace an existing cart in Omnisend using the v3 API. Use when you need to completely replace all cart data including products, pricing, and recovery URL.\",\n input: OmnisendReplaceCartInput,\n output: OmnisendReplaceCartOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;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AO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;AAC7G,CAAC;AACD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EACtE,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/replace-cart.d.ts
4
+ declare const OmnisendReplaceCartInput: z.ZodTypeAny;
5
+ declare const OmnisendReplaceCartOutput: z.ZodTypeAny;
6
+ declare const omnisendReplaceCart: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { omnisendReplaceCart };
9
+ //# sourceMappingURL=replace-cart.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-cart.d.cts","names":[],"sources":["../../src/actions/replace-cart.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAoBvC;AAAA,cACW,yBAAA,EAA2B,CAAA,CAAE,UAExC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/replace-cart.d.ts
4
+ declare const OmnisendReplaceCartInput: z.ZodTypeAny;
5
+ declare const OmnisendReplaceCartOutput: z.ZodTypeAny;
6
+ declare const omnisendReplaceCart: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { omnisendReplaceCart };
9
+ //# sourceMappingURL=replace-cart.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-cart.d.mts","names":[],"sources":["../../src/actions/replace-cart.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAoBvC;AAAA,cACW,yBAAA,EAA2B,CAAA,CAAE,UAExC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,33 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const omnisendReplaceCart = action("OMNISEND_REPLACE_CART", {
4
+ slug: "omnisend-replace-cart",
5
+ name: "Replace Cart",
6
+ description: "Tool to replace an existing cart in Omnisend using the v3 API. Use when you need to completely replace all cart data including products, pricing, and recovery URL.",
7
+ input: z.object({
8
+ cartID: z.string().describe("Unique identifier of the cart to replace"),
9
+ cartSum: z.number().int().describe("Total cart value in cents (e.g., 78777 = $787.77)"),
10
+ currency: z.string().describe("ISO 4217 currency code for the cart (e.g., USD, EUR, GBP)"),
11
+ products: z.array(z.object({
12
+ price: z.number().int().describe("Current price of the product in cents (e.g., 78777 = $787.77)"),
13
+ title: z.string().describe("Name or title of the product"),
14
+ discount: z.number().int().describe("Discount amount in cents").optional(),
15
+ imageUrl: z.string().describe("URL to the product image").optional(),
16
+ oldPrice: z.number().int().describe("Original price before discount in cents").optional(),
17
+ quantity: z.number().int().describe("Quantity of this product in the cart"),
18
+ productID: z.string().describe("Unique identifier of the product"),
19
+ variantID: z.string().describe("Unique identifier of the product variant"),
20
+ productUrl: z.string().describe("URL to the product page").optional(),
21
+ description: z.string().describe("Description of the product").optional(),
22
+ cartProductID: z.string().describe("Unique identifier for this product within the cart")
23
+ })).describe("List of products in the cart"),
24
+ createdAt: z.string().describe("ISO 8601 timestamp when the cart was created").optional(),
25
+ updatedAt: z.string().describe("ISO 8601 timestamp when the cart was last updated").optional(),
26
+ cartRecoveryUrl: z.string().describe("URL to restore the cart, used for abandoned cart recovery").optional()
27
+ }),
28
+ output: z.object({ cartID: z.string().describe("Unique identifier of the replaced cart") })
29
+ });
30
+ //#endregion
31
+ export { omnisendReplaceCart };
32
+
33
+ //# sourceMappingURL=replace-cart.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-cart.mjs","names":[],"sources":["../../src/actions/replace-cart.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceCartInput: z.ZodTypeAny = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart to replace\"),\n cartSum: z.number().int().describe(\"Total cart value in cents (e.g., 78777 = $787.77)\"),\n currency: z.string().describe(\"ISO 4217 currency code for the cart (e.g., USD, EUR, GBP)\"),\n products: z.array(z.object({\n price: z.number().int().describe(\"Current price of the product in cents (e.g., 78777 = $787.77)\"),\n title: z.string().describe(\"Name or title of the product\"),\n discount: z.number().int().describe(\"Discount amount in cents\").optional(),\n imageUrl: z.string().describe(\"URL to the product image\").optional(),\n oldPrice: z.number().int().describe(\"Original price before discount in cents\").optional(),\n quantity: z.number().int().describe(\"Quantity of this product in the cart\"),\n productID: z.string().describe(\"Unique identifier of the product\"),\n variantID: z.string().describe(\"Unique identifier of the product variant\"),\n productUrl: z.string().describe(\"URL to the product page\").optional(),\n description: z.string().describe(\"Description of the product\").optional(),\n cartProductID: z.string().describe(\"Unique identifier for this product within the cart\"),\n})).describe(\"List of products in the cart\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the cart was created\").optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the cart was last updated\").optional(),\n cartRecoveryUrl: z.string().describe(\"URL to restore the cart, used for abandoned cart recovery\").optional(),\n});\nexport const OmnisendReplaceCartOutput: z.ZodTypeAny = z.object({\n cartID: z.string().describe(\"Unique identifier of the replaced cart\"),\n});\n\nexport const omnisendReplaceCart = action(\"OMNISEND_REPLACE_CART\", {\n slug: \"omnisend-replace-cart\",\n name: \"Replace Cart\",\n description: \"Tool to replace an existing cart in Omnisend using the v3 API. Use when you need to completely replace all cart data including products, pricing, and recovery URL.\",\n input: OmnisendReplaceCartInput,\n output: OmnisendReplaceCartOutput,\n});\n"],"mappings":";;AA6BA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA7BoD,EAAE,OAAO;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EACtE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;EACtF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EACzF,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D;GAChG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;GACzD,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GACzE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GACnE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;GACxF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;GAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;GACjE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;GACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;GACpE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;GACxE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EACzF,CAAC,CAAC,CAAC,CAAC,SAAS,8BAA8B;EACzC,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACxF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC7F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC7G,CASS;CACP,QATqD,EAAE,OAAO,EAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EACtE,CAOU;AACV,CAAC"}
@@ -0,0 +1,19 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/replace-category.ts
4
+ const OmnisendReplaceCategoryInput = zod.z.object({
5
+ title: zod.z.string().describe("New title for the category"),
6
+ categoryID: zod.z.string().describe("Unique identifier of the category to replace")
7
+ });
8
+ const OmnisendReplaceCategoryOutput = zod.z.object({ categoryID: zod.z.string().describe("Unique identifier of the replaced category").nullable().optional() });
9
+ const omnisendReplaceCategory = require_action.action("OMNISEND_REPLACE_CATEGORY", {
10
+ slug: "omnisend-replace-category",
11
+ name: "Replace Category",
12
+ description: "Tool to replace a category's title by ID. Use when you need to update an entire category resource.",
13
+ input: OmnisendReplaceCategoryInput,
14
+ output: OmnisendReplaceCategoryOutput
15
+ });
16
+ //#endregion
17
+ exports.omnisendReplaceCategory = omnisendReplaceCategory;
18
+
19
+ //# sourceMappingURL=replace-category.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-category.cjs","names":["z","action"],"sources":["../../src/actions/replace-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceCategoryInput: z.ZodTypeAny = z.object({\n title: z.string().describe(\"New title for the category\"),\n categoryID: z.string().describe(\"Unique identifier of the category to replace\"),\n});\nexport const OmnisendReplaceCategoryOutput: z.ZodTypeAny = z.object({\n categoryID: z.string().describe(\"Unique identifier of the replaced category\").nullable().optional(),\n});\n\nexport const omnisendReplaceCategory = action(\"OMNISEND_REPLACE_CATEGORY\", {\n slug: \"omnisend-replace-category\",\n name: \"Replace Category\",\n description: \"Tool to replace a category's title by ID. Use when you need to update an entire category resource.\",\n input: OmnisendReplaceCategoryInput,\n output: OmnisendReplaceCategoryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACvD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AAChF,CAAC;AACD,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpG,CAAC;AAED,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/replace-category.d.ts
4
+ declare const OmnisendReplaceCategoryInput: z.ZodTypeAny;
5
+ declare const OmnisendReplaceCategoryOutput: z.ZodTypeAny;
6
+ declare const omnisendReplaceCategory: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { omnisendReplaceCategory };
9
+ //# sourceMappingURL=replace-category.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-category.d.cts","names":[],"sources":["../../src/actions/replace-category.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAG3C;AAAA,cACW,6BAAA,EAA+B,CAAA,CAAE,UAE5C;AAAA,cAEW,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/replace-category.d.ts
4
+ declare const OmnisendReplaceCategoryInput: z.ZodTypeAny;
5
+ declare const OmnisendReplaceCategoryOutput: z.ZodTypeAny;
6
+ declare const omnisendReplaceCategory: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { omnisendReplaceCategory };
9
+ //# sourceMappingURL=replace-category.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-category.d.mts","names":[],"sources":["../../src/actions/replace-category.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAG3C;AAAA,cACW,6BAAA,EAA+B,CAAA,CAAE,UAE5C;AAAA,cAEW,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,16 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const omnisendReplaceCategory = action("OMNISEND_REPLACE_CATEGORY", {
4
+ slug: "omnisend-replace-category",
5
+ name: "Replace Category",
6
+ description: "Tool to replace a category's title by ID. Use when you need to update an entire category resource.",
7
+ input: z.object({
8
+ title: z.string().describe("New title for the category"),
9
+ categoryID: z.string().describe("Unique identifier of the category to replace")
10
+ }),
11
+ output: z.object({ categoryID: z.string().describe("Unique identifier of the replaced category").nullable().optional() })
12
+ });
13
+ //#endregion
14
+ export { omnisendReplaceCategory };
15
+
16
+ //# sourceMappingURL=replace-category.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-category.mjs","names":[],"sources":["../../src/actions/replace-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceCategoryInput: z.ZodTypeAny = z.object({\n title: z.string().describe(\"New title for the category\"),\n categoryID: z.string().describe(\"Unique identifier of the category to replace\"),\n});\nexport const OmnisendReplaceCategoryOutput: z.ZodTypeAny = z.object({\n categoryID: z.string().describe(\"Unique identifier of the replaced category\").nullable().optional(),\n});\n\nexport const omnisendReplaceCategory = action(\"OMNISEND_REPLACE_CATEGORY\", {\n slug: \"omnisend-replace-category\",\n name: \"Replace Category\",\n description: \"Tool to replace a category's title by ID. Use when you need to update an entire category resource.\",\n input: OmnisendReplaceCategoryInput,\n output: OmnisendReplaceCategoryOutput,\n});\n"],"mappings":";;AAYA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZwD,EAAE,OAAO;EACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EACvD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAChF,CASS;CACP,QATyD,EAAE,OAAO,EAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpG,CAOU;AACV,CAAC"}
@@ -0,0 +1,84 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/replace-order.ts
4
+ const OmnisendReplaceOrderInput = zod.z.object({
5
+ tags: zod.z.array(zod.z.string()).describe("Tags associated with the order").optional(),
6
+ cartID: zod.z.string().describe("Identifier of the cart that led to this order").optional(),
7
+ source: zod.z.string().describe("Source of the order (e.g., 'web', 'mobile')").optional(),
8
+ taxSum: zod.z.number().int().describe("Total tax amount in smallest currency unit").optional(),
9
+ orderID: zod.z.string().describe("Unique identifier of the order to replace"),
10
+ currency: zod.z.string().describe("ISO 4217 currency code (e.g., 'USD', 'EUR')"),
11
+ orderSum: zod.z.number().int().describe("Total order amount in the smallest currency unit (e.g., cents)"),
12
+ orderUrl: zod.z.string().describe("URL to view the order").optional(),
13
+ products: zod.z.array(zod.z.object({
14
+ sku: zod.z.string().describe("Stock keeping unit code").optional(),
15
+ price: zod.z.number().int().describe("Price per unit in the smallest currency unit (e.g., cents)").optional(),
16
+ title: zod.z.string().describe("Product title").optional(),
17
+ discount: zod.z.number().int().describe("Discount amount in the smallest currency unit (e.g., cents)").optional(),
18
+ imageUrl: zod.z.string().describe("URL of the product image").optional(),
19
+ quantity: zod.z.number().int().describe("Quantity of this product in the order").optional(),
20
+ productID: zod.z.string().describe("Unique identifier of the product"),
21
+ variantID: zod.z.string().describe("Product variant identifier (required by API)"),
22
+ productUrl: zod.z.string().describe("URL of the product page").optional()
23
+ }).describe("Product information for order line items.")).describe("List of products in the order").optional(),
24
+ createdAt: zod.z.string().describe("ISO 8601 timestamp when the order was created"),
25
+ updatedAt: zod.z.string().describe("ISO 8601 timestamp when the order was last updated").optional(),
26
+ courierUrl: zod.z.string().describe("URL for courier tracking").optional(),
27
+ contactNote: zod.z.string().describe("Notes about the customer").optional(),
28
+ discountSum: zod.z.number().int().describe("Total discount amount in smallest currency unit").optional(),
29
+ orderNumber: zod.z.number().int().describe("Human-readable order number").optional(),
30
+ shippingSum: zod.z.number().int().describe("Shipping cost in smallest currency unit").optional(),
31
+ subTotalSum: zod.z.number().int().describe("Subtotal before taxes and shipping in smallest currency unit").optional(),
32
+ cancelReason: zod.z.string().describe("Reason for order cancellation if applicable").optional(),
33
+ canceledDate: zod.z.string().describe("ISO 8601 timestamp when the order was canceled").optional(),
34
+ courierTitle: zod.z.string().describe("Name of the shipping courier").optional(),
35
+ discountCode: zod.z.string().describe("Discount or coupon code applied").optional(),
36
+ discountType: zod.z.string().describe("Type of discount (e.g., 'percentage', 'fixed')").optional(),
37
+ trackingCode: zod.z.string().describe("Shipment tracking code").optional(),
38
+ discountValue: zod.z.number().int().describe("Discount value (percentage or fixed amount)").optional(),
39
+ paymentMethod: zod.z.string().describe("Payment method used (e.g., 'credit_card', 'paypal')").optional(),
40
+ paymentStatus: zod.z.string().describe("Payment status. Available values: awaitingPayment, partiallyPaid, paid, partiallyRefunded, refunded, voided").optional(),
41
+ billingAddress: zod.z.object({
42
+ city: zod.z.string().describe("City name").optional(),
43
+ phone: zod.z.string().describe("Phone number").optional(),
44
+ state: zod.z.string().describe("State or province").optional(),
45
+ address: zod.z.string().describe("Street address").optional(),
46
+ company: zod.z.string().describe("Company name").optional(),
47
+ country: zod.z.string().describe("Country name").optional(),
48
+ lastName: zod.z.string().describe("Last name of the billing contact").optional(),
49
+ firstName: zod.z.string().describe("First name of the billing contact").optional(),
50
+ postalCode: zod.z.string().describe("Postal or ZIP code").optional(),
51
+ countryCode: zod.z.string().describe("ISO 3166-1 alpha-2 country code").optional()
52
+ }).describe("Billing address information for the order.").optional(),
53
+ shippingMethod: zod.z.string().describe("Shipping method used").optional(),
54
+ shippingAddress: zod.z.object({
55
+ city: zod.z.string().describe("City name").optional(),
56
+ phone: zod.z.string().describe("Phone number").optional(),
57
+ state: zod.z.string().describe("State or province").optional(),
58
+ address: zod.z.string().describe("Street address").optional(),
59
+ company: zod.z.string().describe("Company name").optional(),
60
+ country: zod.z.string().describe("Country name").optional(),
61
+ lastName: zod.z.string().describe("Last name of the shipping contact").optional(),
62
+ firstName: zod.z.string().describe("First name of the shipping contact").optional(),
63
+ postalCode: zod.z.string().describe("Postal or ZIP code").optional(),
64
+ countryCode: zod.z.string().describe("ISO 3166-1 alpha-2 country code").optional()
65
+ }).describe("Shipping address information for the order.").optional(),
66
+ fulfillmentStatus: zod.z.string().describe("Fulfillment status (e.g., 'fulfilled', 'unfulfilled', 'partially_fulfilled')").optional(),
67
+ subTotalTaxIncluded: zod.z.boolean().describe("Whether subtotal includes tax").optional()
68
+ });
69
+ const OmnisendReplaceOrderOutput = zod.z.object({
70
+ email: zod.z.string().describe("Email address associated with the order").nullable().optional(),
71
+ phone: zod.z.string().describe("Phone number associated with the order").nullable().optional(),
72
+ orderID: zod.z.string().describe("Unique identifier of the replaced order")
73
+ });
74
+ const omnisendReplaceOrder = require_action.action("OMNISEND_REPLACE_ORDER", {
75
+ slug: "omnisend-replace-order",
76
+ name: "Replace Order",
77
+ 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.",
78
+ input: OmnisendReplaceOrderInput,
79
+ output: OmnisendReplaceOrderOutput
80
+ });
81
+ //#endregion
82
+ exports.omnisendReplaceOrder = omnisendReplaceOrder;
83
+
84
+ //# sourceMappingURL=replace-order.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-order.cjs","names":["z","action"],"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":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACxE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CA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AASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACtD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAChI,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACtF,CAAC;AACD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AACxE,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/replace-order.d.ts
4
+ declare const OmnisendReplaceOrderInput: z.ZodTypeAny;
5
+ declare const OmnisendReplaceOrderOutput: z.ZodTypeAny;
6
+ declare const omnisendReplaceOrder: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { omnisendReplaceOrder };
9
+ //# sourceMappingURL=replace-order.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-order.d.cts","names":[],"sources":["../../src/actions/replace-order.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAgExC;AAAA,cACW,0BAAA,EAA4B,CAAA,CAAE,UAIzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/replace-order.d.ts
4
+ declare const OmnisendReplaceOrderInput: z.ZodTypeAny;
5
+ declare const OmnisendReplaceOrderOutput: z.ZodTypeAny;
6
+ declare const omnisendReplaceOrder: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { omnisendReplaceOrder };
9
+ //# sourceMappingURL=replace-order.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-order.d.mts","names":[],"sources":["../../src/actions/replace-order.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAgExC;AAAA,cACW,0BAAA,EAA4B,CAAA,CAAE,UAIzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,81 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const omnisendReplaceOrder = action("OMNISEND_REPLACE_ORDER", {
4
+ slug: "omnisend-replace-order",
5
+ name: "Replace Order",
6
+ 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.",
7
+ input: z.object({
8
+ tags: z.array(z.string()).describe("Tags associated with the order").optional(),
9
+ cartID: z.string().describe("Identifier of the cart that led to this order").optional(),
10
+ source: z.string().describe("Source of the order (e.g., 'web', 'mobile')").optional(),
11
+ taxSum: z.number().int().describe("Total tax amount in smallest currency unit").optional(),
12
+ orderID: z.string().describe("Unique identifier of the order to replace"),
13
+ currency: z.string().describe("ISO 4217 currency code (e.g., 'USD', 'EUR')"),
14
+ orderSum: z.number().int().describe("Total order amount in the smallest currency unit (e.g., cents)"),
15
+ orderUrl: z.string().describe("URL to view the order").optional(),
16
+ products: z.array(z.object({
17
+ sku: z.string().describe("Stock keeping unit code").optional(),
18
+ price: z.number().int().describe("Price per unit in the smallest currency unit (e.g., cents)").optional(),
19
+ title: z.string().describe("Product title").optional(),
20
+ discount: z.number().int().describe("Discount amount in the smallest currency unit (e.g., cents)").optional(),
21
+ imageUrl: z.string().describe("URL of the product image").optional(),
22
+ quantity: z.number().int().describe("Quantity of this product in the order").optional(),
23
+ productID: z.string().describe("Unique identifier of the product"),
24
+ variantID: z.string().describe("Product variant identifier (required by API)"),
25
+ productUrl: z.string().describe("URL of the product page").optional()
26
+ }).describe("Product information for order line items.")).describe("List of products in the order").optional(),
27
+ createdAt: z.string().describe("ISO 8601 timestamp when the order was created"),
28
+ updatedAt: z.string().describe("ISO 8601 timestamp when the order was last updated").optional(),
29
+ courierUrl: z.string().describe("URL for courier tracking").optional(),
30
+ contactNote: z.string().describe("Notes about the customer").optional(),
31
+ discountSum: z.number().int().describe("Total discount amount in smallest currency unit").optional(),
32
+ orderNumber: z.number().int().describe("Human-readable order number").optional(),
33
+ shippingSum: z.number().int().describe("Shipping cost in smallest currency unit").optional(),
34
+ subTotalSum: z.number().int().describe("Subtotal before taxes and shipping in smallest currency unit").optional(),
35
+ cancelReason: z.string().describe("Reason for order cancellation if applicable").optional(),
36
+ canceledDate: z.string().describe("ISO 8601 timestamp when the order was canceled").optional(),
37
+ courierTitle: z.string().describe("Name of the shipping courier").optional(),
38
+ discountCode: z.string().describe("Discount or coupon code applied").optional(),
39
+ discountType: z.string().describe("Type of discount (e.g., 'percentage', 'fixed')").optional(),
40
+ trackingCode: z.string().describe("Shipment tracking code").optional(),
41
+ discountValue: z.number().int().describe("Discount value (percentage or fixed amount)").optional(),
42
+ paymentMethod: z.string().describe("Payment method used (e.g., 'credit_card', 'paypal')").optional(),
43
+ paymentStatus: z.string().describe("Payment status. Available values: awaitingPayment, partiallyPaid, paid, partiallyRefunded, refunded, voided").optional(),
44
+ billingAddress: z.object({
45
+ city: z.string().describe("City name").optional(),
46
+ phone: z.string().describe("Phone number").optional(),
47
+ state: z.string().describe("State or province").optional(),
48
+ address: z.string().describe("Street address").optional(),
49
+ company: z.string().describe("Company name").optional(),
50
+ country: z.string().describe("Country name").optional(),
51
+ lastName: z.string().describe("Last name of the billing contact").optional(),
52
+ firstName: z.string().describe("First name of the billing contact").optional(),
53
+ postalCode: z.string().describe("Postal or ZIP code").optional(),
54
+ countryCode: z.string().describe("ISO 3166-1 alpha-2 country code").optional()
55
+ }).describe("Billing address information for the order.").optional(),
56
+ shippingMethod: z.string().describe("Shipping method used").optional(),
57
+ shippingAddress: z.object({
58
+ city: z.string().describe("City name").optional(),
59
+ phone: z.string().describe("Phone number").optional(),
60
+ state: z.string().describe("State or province").optional(),
61
+ address: z.string().describe("Street address").optional(),
62
+ company: z.string().describe("Company name").optional(),
63
+ country: z.string().describe("Country name").optional(),
64
+ lastName: z.string().describe("Last name of the shipping contact").optional(),
65
+ firstName: z.string().describe("First name of the shipping contact").optional(),
66
+ postalCode: z.string().describe("Postal or ZIP code").optional(),
67
+ countryCode: z.string().describe("ISO 3166-1 alpha-2 country code").optional()
68
+ }).describe("Shipping address information for the order.").optional(),
69
+ fulfillmentStatus: z.string().describe("Fulfillment status (e.g., 'fulfilled', 'unfulfilled', 'partially_fulfilled')").optional(),
70
+ subTotalTaxIncluded: z.boolean().describe("Whether subtotal includes tax").optional()
71
+ }),
72
+ output: z.object({
73
+ email: z.string().describe("Email address associated with the order").nullable().optional(),
74
+ phone: z.string().describe("Phone number associated with the order").nullable().optional(),
75
+ orderID: z.string().describe("Unique identifier of the replaced order")
76
+ })
77
+ });
78
+ //#endregion
79
+ export { omnisendReplaceOrder };
80
+
81
+ //# sourceMappingURL=replace-order.mjs.map
@@ -0,0 +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,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACxE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EAC3E,UAAU,EAAE,OAAO,CA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S,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"}
@@ -0,0 +1,52 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/replace-product.ts
4
+ const OmnisendReplaceProductInput = zod.z.object({
5
+ id: zod.z.string().describe("Product ID - must match the product_id path parameter"),
6
+ url: zod.z.string().describe("URL pointing to the product page on your website"),
7
+ tags: zod.z.array(zod.z.string()).describe("Tags for product categorization (max 100 items)").optional(),
8
+ type: zod.z.string().describe("Product type for categorization purposes").optional(),
9
+ title: zod.z.string().describe("Product title"),
10
+ images: zod.z.array(zod.z.string()).describe("Additional product image URLs (max 300 items)").optional(),
11
+ status: zod.z.enum([
12
+ "inStock",
13
+ "outOfStock",
14
+ "notAvailable"
15
+ ]).describe("Product stock status. Keep in sync with your shop to avoid sending out-of-stock products"),
16
+ vendor: zod.z.string().describe("Manufacturer or brand of the product").optional(),
17
+ currency: zod.z.string().describe("ISO 4217 currency code (e.g., USD, EUR, GBP)"),
18
+ variants: zod.z.array(zod.z.object({
19
+ id: zod.z.string().describe("Unique identifier for the variant"),
20
+ sku: zod.z.string().describe("Stock keeping unit identifier").optional(),
21
+ url: zod.z.string().describe("URL pointing to the variant's product page"),
22
+ price: zod.z.number().describe("Price of the variant"),
23
+ title: zod.z.string().describe("Title of the variant"),
24
+ images: zod.z.array(zod.z.string()).describe("Additional image URLs for the variant (max 300 items)").optional(),
25
+ status: zod.z.enum([
26
+ "inStock",
27
+ "outOfStock",
28
+ "notAvailable"
29
+ ]).default("inStock").describe("Stock status of the variant. Options: inStock, outOfStock, notAvailable").optional(),
30
+ description: zod.z.string().describe("Description of the variant").optional(),
31
+ defaultImageUrl: zod.z.string().describe("Primary image URL for this variant").optional(),
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"),
34
+ createdAt: zod.z.string().describe("Creation timestamp in ISO 8601 format").optional(),
35
+ updatedAt: zod.z.string().describe("Last update timestamp in ISO 8601 format").optional(),
36
+ product_id: zod.z.string().describe("Unique identifier of the product to replace. Must match the product ID in the request body"),
37
+ categoryIDs: zod.z.array(zod.z.string()).describe("List of category IDs the product belongs to (max 100 items)").optional(),
38
+ description: zod.z.string().describe("Short description of the product for email body usage").optional(),
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
+ });
41
+ const OmnisendReplaceProductOutput = zod.z.object({ id: zod.z.string().describe("Product identifier that was replaced") });
42
+ const omnisendReplaceProduct = require_action.action("OMNISEND_REPLACE_PRODUCT", {
43
+ slug: "omnisend-replace-product",
44
+ name: "Replace Product",
45
+ description: "Tool to replace an existing product in the Omnisend catalog. Use when you need to completely replace all product data with new information.",
46
+ input: OmnisendReplaceProductInput,
47
+ output: OmnisendReplaceProductOutput
48
+ });
49
+ //#endregion
50
+ exports.omnisendReplaceProduct = omnisendReplaceProduct;
51
+
52
+ //# sourceMappingURL=replace-product.cjs.map
@@ -0,0 +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,OAAO,CAAC,CAAC,SAAS,eAAe;CAC1C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAc;CAAc,CAAC,CAAC,CAAC,SAAS,0FAA0F;CAC7J,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACnE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAA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;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
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]>;
7
+ //#endregion
8
+ export { omnisendReplaceProduct };
9
+ //# sourceMappingURL=replace-product.d.cts.map
@@ -0,0 +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"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
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]>;
7
+ //#endregion
8
+ export { omnisendReplaceProduct };
9
+ //# sourceMappingURL=replace-product.d.mts.map
@@ -0,0 +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"}
@@ -0,0 +1,49 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const omnisendReplaceProduct = action("OMNISEND_REPLACE_PRODUCT", {
4
+ slug: "omnisend-replace-product",
5
+ name: "Replace Product",
6
+ description: "Tool to replace an existing product in the Omnisend catalog. Use when you need to completely replace all product data with new information.",
7
+ input: z.object({
8
+ id: z.string().describe("Product ID - must match the product_id path parameter"),
9
+ url: z.string().describe("URL pointing to the product page on your website"),
10
+ tags: z.array(z.string()).describe("Tags for product categorization (max 100 items)").optional(),
11
+ type: z.string().describe("Product type for categorization purposes").optional(),
12
+ title: z.string().describe("Product title"),
13
+ images: z.array(z.string()).describe("Additional product image URLs (max 300 items)").optional(),
14
+ status: z.enum([
15
+ "inStock",
16
+ "outOfStock",
17
+ "notAvailable"
18
+ ]).describe("Product stock status. Keep in sync with your shop to avoid sending out-of-stock products"),
19
+ vendor: z.string().describe("Manufacturer or brand of the product").optional(),
20
+ currency: z.string().describe("ISO 4217 currency code (e.g., USD, EUR, GBP)"),
21
+ variants: z.array(z.object({
22
+ id: z.string().describe("Unique identifier for the variant"),
23
+ sku: z.string().describe("Stock keeping unit identifier").optional(),
24
+ url: z.string().describe("URL pointing to the variant's product page"),
25
+ price: z.number().describe("Price of the variant"),
26
+ title: z.string().describe("Title of the variant"),
27
+ images: z.array(z.string()).describe("Additional image URLs for the variant (max 300 items)").optional(),
28
+ status: z.enum([
29
+ "inStock",
30
+ "outOfStock",
31
+ "notAvailable"
32
+ ]).default("inStock").describe("Stock status of the variant. Options: inStock, outOfStock, notAvailable").optional(),
33
+ description: z.string().describe("Description of the variant").optional(),
34
+ defaultImageUrl: z.string().describe("Primary image URL for this variant").optional(),
35
+ strikeThroughPrice: z.number().describe("Original price before discount").optional()
36
+ })).describe("Product variants (different versions like sizes/colors). At least one variant required"),
37
+ createdAt: z.string().describe("Creation timestamp in ISO 8601 format").optional(),
38
+ updatedAt: z.string().describe("Last update timestamp in ISO 8601 format").optional(),
39
+ product_id: z.string().describe("Unique identifier of the product to replace. Must match the product ID in the request body"),
40
+ categoryIDs: z.array(z.string()).describe("List of category IDs the product belongs to (max 100 items)").optional(),
41
+ description: z.string().describe("Short description of the product for email body usage").optional(),
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
+ }),
44
+ output: z.object({ id: z.string().describe("Product identifier that was replaced") })
45
+ });
46
+ //#endregion
47
+ export { omnisendReplaceProduct };
48
+
49
+ //# sourceMappingURL=replace-product.mjs.map