@keystrokehq/omnisend 0.1.4 → 0.1.5

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 (357) 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 +1 -0
  4. package/dist/actions/add-cart-product.cjs.map +1 -1
  5. package/dist/actions/add-cart-product.d.cts +3 -28
  6. package/dist/actions/add-cart-product.d.cts.map +1 -1
  7. package/dist/actions/add-cart-product.d.mts +3 -28
  8. package/dist/actions/add-cart-product.d.mts.map +1 -1
  9. package/dist/actions/add-cart-product.mjs +1 -0
  10. package/dist/actions/add-cart-product.mjs.map +1 -1
  11. package/dist/actions/create-batch.cjs +1 -0
  12. package/dist/actions/create-batch.cjs.map +1 -1
  13. package/dist/actions/create-batch.d.cts +7 -22
  14. package/dist/actions/create-batch.d.cts.map +1 -1
  15. package/dist/actions/create-batch.d.mts +7 -22
  16. package/dist/actions/create-batch.d.mts.map +1 -1
  17. package/dist/actions/create-batch.mjs +1 -0
  18. package/dist/actions/create-batch.mjs.map +1 -1
  19. package/dist/actions/create-cart.cjs +1 -0
  20. package/dist/actions/create-cart.cjs.map +1 -1
  21. package/dist/actions/create-cart.d.cts +3 -33
  22. package/dist/actions/create-cart.d.cts.map +1 -1
  23. package/dist/actions/create-cart.d.mts +3 -33
  24. package/dist/actions/create-cart.d.mts.map +1 -1
  25. package/dist/actions/create-cart.mjs +1 -0
  26. package/dist/actions/create-cart.mjs.map +1 -1
  27. package/dist/actions/create-category.cjs +1 -0
  28. package/dist/actions/create-category.cjs.map +1 -1
  29. package/dist/actions/create-category.d.cts +3 -16
  30. package/dist/actions/create-category.d.cts.map +1 -1
  31. package/dist/actions/create-category.d.mts +3 -16
  32. package/dist/actions/create-category.d.mts.map +1 -1
  33. package/dist/actions/create-category.mjs +1 -0
  34. package/dist/actions/create-category.mjs.map +1 -1
  35. package/dist/actions/create-or-update-contact.cjs +1 -0
  36. package/dist/actions/create-or-update-contact.cjs.map +1 -1
  37. package/dist/actions/create-or-update-contact.d.cts +4 -36
  38. package/dist/actions/create-or-update-contact.d.cts.map +1 -1
  39. package/dist/actions/create-or-update-contact.d.mts +4 -36
  40. package/dist/actions/create-or-update-contact.d.mts.map +1 -1
  41. package/dist/actions/create-or-update-contact.mjs +1 -0
  42. package/dist/actions/create-or-update-contact.mjs.map +1 -1
  43. package/dist/actions/create-order.cjs +1 -0
  44. package/dist/actions/create-order.cjs.map +1 -1
  45. package/dist/actions/create-order.d.cts +3 -86
  46. package/dist/actions/create-order.d.cts.map +1 -1
  47. package/dist/actions/create-order.d.mts +3 -86
  48. package/dist/actions/create-order.d.mts.map +1 -1
  49. package/dist/actions/create-order.mjs +1 -0
  50. package/dist/actions/create-order.mjs.map +1 -1
  51. package/dist/actions/create-product-category.cjs +1 -0
  52. package/dist/actions/create-product-category.cjs.map +1 -1
  53. package/dist/actions/create-product-category.d.cts +3 -16
  54. package/dist/actions/create-product-category.d.cts.map +1 -1
  55. package/dist/actions/create-product-category.d.mts +3 -16
  56. package/dist/actions/create-product-category.d.mts.map +1 -1
  57. package/dist/actions/create-product-category.mjs +1 -0
  58. package/dist/actions/create-product-category.mjs.map +1 -1
  59. package/dist/actions/create-product.cjs +1 -0
  60. package/dist/actions/create-product.cjs.map +1 -1
  61. package/dist/actions/create-product.d.cts +3 -41
  62. package/dist/actions/create-product.d.cts.map +1 -1
  63. package/dist/actions/create-product.d.mts +3 -41
  64. package/dist/actions/create-product.d.mts.map +1 -1
  65. package/dist/actions/create-product.mjs +1 -0
  66. package/dist/actions/create-product.mjs.map +1 -1
  67. package/dist/actions/delete-cart.cjs +1 -0
  68. package/dist/actions/delete-cart.cjs.map +1 -1
  69. package/dist/actions/delete-cart.d.cts +3 -15
  70. package/dist/actions/delete-cart.d.cts.map +1 -1
  71. package/dist/actions/delete-cart.d.mts +3 -15
  72. package/dist/actions/delete-cart.d.mts.map +1 -1
  73. package/dist/actions/delete-cart.mjs +1 -0
  74. package/dist/actions/delete-cart.mjs.map +1 -1
  75. package/dist/actions/delete-category.cjs +1 -0
  76. package/dist/actions/delete-category.cjs.map +1 -1
  77. package/dist/actions/delete-category.d.cts +3 -15
  78. package/dist/actions/delete-category.d.cts.map +1 -1
  79. package/dist/actions/delete-category.d.mts +3 -15
  80. package/dist/actions/delete-category.d.mts.map +1 -1
  81. package/dist/actions/delete-category.mjs +1 -0
  82. package/dist/actions/delete-category.mjs.map +1 -1
  83. package/dist/actions/delete-order.cjs +1 -0
  84. package/dist/actions/delete-order.cjs.map +1 -1
  85. package/dist/actions/delete-order.d.cts +3 -15
  86. package/dist/actions/delete-order.d.cts.map +1 -1
  87. package/dist/actions/delete-order.d.mts +3 -15
  88. package/dist/actions/delete-order.d.mts.map +1 -1
  89. package/dist/actions/delete-order.mjs +1 -0
  90. package/dist/actions/delete-order.mjs.map +1 -1
  91. package/dist/actions/delete-product-category.cjs +1 -0
  92. package/dist/actions/delete-product-category.cjs.map +1 -1
  93. package/dist/actions/delete-product-category.d.cts +3 -15
  94. package/dist/actions/delete-product-category.d.cts.map +1 -1
  95. package/dist/actions/delete-product-category.d.mts +3 -15
  96. package/dist/actions/delete-product-category.d.mts.map +1 -1
  97. package/dist/actions/delete-product-category.mjs +1 -0
  98. package/dist/actions/delete-product-category.mjs.map +1 -1
  99. package/dist/actions/delete-product.cjs +1 -0
  100. package/dist/actions/delete-product.cjs.map +1 -1
  101. package/dist/actions/delete-product.d.cts +3 -15
  102. package/dist/actions/delete-product.d.cts.map +1 -1
  103. package/dist/actions/delete-product.d.mts +3 -15
  104. package/dist/actions/delete-product.d.mts.map +1 -1
  105. package/dist/actions/delete-product.mjs +1 -0
  106. package/dist/actions/delete-product.mjs.map +1 -1
  107. package/dist/actions/get-batch-information.cjs +1 -0
  108. package/dist/actions/get-batch-information.cjs.map +1 -1
  109. package/dist/actions/get-batch-information.d.cts +3 -15
  110. package/dist/actions/get-batch-information.d.cts.map +1 -1
  111. package/dist/actions/get-batch-information.d.mts +3 -15
  112. package/dist/actions/get-batch-information.d.mts.map +1 -1
  113. package/dist/actions/get-batch-information.mjs +1 -0
  114. package/dist/actions/get-batch-information.mjs.map +1 -1
  115. package/dist/actions/get-batch-item.cjs +1 -0
  116. package/dist/actions/get-batch-item.cjs.map +1 -1
  117. package/dist/actions/get-batch-item.d.cts +3 -16
  118. package/dist/actions/get-batch-item.d.cts.map +1 -1
  119. package/dist/actions/get-batch-item.d.mts +3 -16
  120. package/dist/actions/get-batch-item.d.mts.map +1 -1
  121. package/dist/actions/get-batch-item.mjs +1 -0
  122. package/dist/actions/get-batch-item.mjs.map +1 -1
  123. package/dist/actions/get-batch-items.cjs +1 -0
  124. package/dist/actions/get-batch-items.cjs.map +1 -1
  125. package/dist/actions/get-batch-items.d.cts +3 -15
  126. package/dist/actions/get-batch-items.d.cts.map +1 -1
  127. package/dist/actions/get-batch-items.d.mts +3 -15
  128. package/dist/actions/get-batch-items.d.mts.map +1 -1
  129. package/dist/actions/get-batch-items.mjs +1 -0
  130. package/dist/actions/get-batch-items.mjs.map +1 -1
  131. package/dist/actions/get-batches.cjs +1 -0
  132. package/dist/actions/get-batches.cjs.map +1 -1
  133. package/dist/actions/get-batches.d.cts +6 -18
  134. package/dist/actions/get-batches.d.cts.map +1 -1
  135. package/dist/actions/get-batches.d.mts +6 -18
  136. package/dist/actions/get-batches.d.mts.map +1 -1
  137. package/dist/actions/get-batches.mjs +1 -0
  138. package/dist/actions/get-batches.mjs.map +1 -1
  139. package/dist/actions/get-brand.cjs +1 -0
  140. package/dist/actions/get-brand.cjs.map +1 -1
  141. package/dist/actions/get-brand.d.cts +3 -13
  142. package/dist/actions/get-brand.d.cts.map +1 -1
  143. package/dist/actions/get-brand.d.mts +3 -13
  144. package/dist/actions/get-brand.d.mts.map +1 -1
  145. package/dist/actions/get-brand.mjs +1 -0
  146. package/dist/actions/get-brand.mjs.map +1 -1
  147. package/dist/actions/get-cart.cjs +1 -0
  148. package/dist/actions/get-cart.cjs.map +1 -1
  149. package/dist/actions/get-cart.d.cts +3 -15
  150. package/dist/actions/get-cart.d.cts.map +1 -1
  151. package/dist/actions/get-cart.d.mts +3 -15
  152. package/dist/actions/get-cart.d.mts.map +1 -1
  153. package/dist/actions/get-cart.mjs +1 -0
  154. package/dist/actions/get-cart.mjs.map +1 -1
  155. package/dist/actions/get-category.cjs +1 -0
  156. package/dist/actions/get-category.cjs.map +1 -1
  157. package/dist/actions/get-category.d.cts +3 -15
  158. package/dist/actions/get-category.d.cts.map +1 -1
  159. package/dist/actions/get-category.d.mts +3 -15
  160. package/dist/actions/get-category.d.mts.map +1 -1
  161. package/dist/actions/get-category.mjs +1 -0
  162. package/dist/actions/get-category.mjs.map +1 -1
  163. package/dist/actions/get-contact.cjs +1 -0
  164. package/dist/actions/get-contact.cjs.map +1 -1
  165. package/dist/actions/get-contact.d.cts +3 -15
  166. package/dist/actions/get-contact.d.cts.map +1 -1
  167. package/dist/actions/get-contact.d.mts +3 -15
  168. package/dist/actions/get-contact.d.mts.map +1 -1
  169. package/dist/actions/get-contact.mjs +1 -0
  170. package/dist/actions/get-contact.mjs.map +1 -1
  171. package/dist/actions/get-order.cjs +1 -0
  172. package/dist/actions/get-order.cjs.map +1 -1
  173. package/dist/actions/get-order.d.cts +3 -15
  174. package/dist/actions/get-order.d.cts.map +1 -1
  175. package/dist/actions/get-order.d.mts +3 -15
  176. package/dist/actions/get-order.d.mts.map +1 -1
  177. package/dist/actions/get-order.mjs +1 -0
  178. package/dist/actions/get-order.mjs.map +1 -1
  179. package/dist/actions/get-product-category.cjs +1 -0
  180. package/dist/actions/get-product-category.cjs.map +1 -1
  181. package/dist/actions/get-product-category.d.cts +3 -15
  182. package/dist/actions/get-product-category.d.cts.map +1 -1
  183. package/dist/actions/get-product-category.d.mts +3 -15
  184. package/dist/actions/get-product-category.d.mts.map +1 -1
  185. package/dist/actions/get-product-category.mjs +1 -0
  186. package/dist/actions/get-product-category.mjs.map +1 -1
  187. package/dist/actions/get-product.cjs +1 -0
  188. package/dist/actions/get-product.cjs.map +1 -1
  189. package/dist/actions/get-product.d.cts +3 -15
  190. package/dist/actions/get-product.d.cts.map +1 -1
  191. package/dist/actions/get-product.d.mts +3 -15
  192. package/dist/actions/get-product.d.mts.map +1 -1
  193. package/dist/actions/get-product.mjs +1 -0
  194. package/dist/actions/get-product.mjs.map +1 -1
  195. package/dist/actions/list-campaigns.cjs +1 -0
  196. package/dist/actions/list-campaigns.cjs.map +1 -1
  197. package/dist/actions/list-campaigns.d.cts +4 -19
  198. package/dist/actions/list-campaigns.d.cts.map +1 -1
  199. package/dist/actions/list-campaigns.d.mts +4 -19
  200. package/dist/actions/list-campaigns.d.mts.map +1 -1
  201. package/dist/actions/list-campaigns.mjs +1 -0
  202. package/dist/actions/list-campaigns.mjs.map +1 -1
  203. package/dist/actions/list-carts.cjs +1 -0
  204. package/dist/actions/list-carts.cjs.map +1 -1
  205. package/dist/actions/list-carts.d.cts +3 -25
  206. package/dist/actions/list-carts.d.cts.map +1 -1
  207. package/dist/actions/list-carts.d.mts +3 -25
  208. package/dist/actions/list-carts.d.mts.map +1 -1
  209. package/dist/actions/list-carts.mjs +1 -0
  210. package/dist/actions/list-carts.mjs.map +1 -1
  211. package/dist/actions/list-categories.cjs +1 -0
  212. package/dist/actions/list-categories.cjs.map +1 -1
  213. package/dist/actions/list-categories.d.cts +3 -17
  214. package/dist/actions/list-categories.d.cts.map +1 -1
  215. package/dist/actions/list-categories.d.mts +3 -17
  216. package/dist/actions/list-categories.d.mts.map +1 -1
  217. package/dist/actions/list-categories.mjs +1 -0
  218. package/dist/actions/list-categories.mjs.map +1 -1
  219. package/dist/actions/list-contacts.cjs +1 -0
  220. package/dist/actions/list-contacts.cjs.map +1 -1
  221. package/dist/actions/list-contacts.d.cts +4 -23
  222. package/dist/actions/list-contacts.d.cts.map +1 -1
  223. package/dist/actions/list-contacts.d.mts +4 -23
  224. package/dist/actions/list-contacts.d.mts.map +1 -1
  225. package/dist/actions/list-contacts.mjs +1 -0
  226. package/dist/actions/list-contacts.mjs.map +1 -1
  227. package/dist/actions/list-events.cjs +1 -0
  228. package/dist/actions/list-events.cjs.map +1 -1
  229. package/dist/actions/list-events.d.cts +3 -13
  230. package/dist/actions/list-events.d.cts.map +1 -1
  231. package/dist/actions/list-events.d.mts +3 -13
  232. package/dist/actions/list-events.d.mts.map +1 -1
  233. package/dist/actions/list-events.mjs +1 -0
  234. package/dist/actions/list-events.mjs.map +1 -1
  235. package/dist/actions/list-product-categories.cjs +1 -0
  236. package/dist/actions/list-product-categories.cjs.map +1 -1
  237. package/dist/actions/list-product-categories.d.cts +3 -17
  238. package/dist/actions/list-product-categories.d.cts.map +1 -1
  239. package/dist/actions/list-product-categories.d.mts +3 -17
  240. package/dist/actions/list-product-categories.d.mts.map +1 -1
  241. package/dist/actions/list-product-categories.mjs +1 -0
  242. package/dist/actions/list-product-categories.mjs.map +1 -1
  243. package/dist/actions/list-products.cjs +1 -0
  244. package/dist/actions/list-products.cjs.map +1 -1
  245. package/dist/actions/list-products.d.cts +3 -17
  246. package/dist/actions/list-products.d.cts.map +1 -1
  247. package/dist/actions/list-products.d.mts +3 -17
  248. package/dist/actions/list-products.d.mts.map +1 -1
  249. package/dist/actions/list-products.mjs +1 -0
  250. package/dist/actions/list-products.mjs.map +1 -1
  251. package/dist/actions/remove-cart-product.cjs +1 -0
  252. package/dist/actions/remove-cart-product.cjs.map +1 -1
  253. package/dist/actions/remove-cart-product.d.cts +3 -16
  254. package/dist/actions/remove-cart-product.d.cts.map +1 -1
  255. package/dist/actions/remove-cart-product.d.mts +3 -16
  256. package/dist/actions/remove-cart-product.d.mts.map +1 -1
  257. package/dist/actions/remove-cart-product.mjs +1 -0
  258. package/dist/actions/remove-cart-product.mjs.map +1 -1
  259. package/dist/actions/replace-cart-product.cjs +1 -0
  260. package/dist/actions/replace-cart-product.cjs.map +1 -1
  261. package/dist/actions/replace-cart-product.d.cts +3 -28
  262. package/dist/actions/replace-cart-product.d.cts.map +1 -1
  263. package/dist/actions/replace-cart-product.d.mts +3 -28
  264. package/dist/actions/replace-cart-product.d.mts.map +1 -1
  265. package/dist/actions/replace-cart-product.mjs +1 -0
  266. package/dist/actions/replace-cart-product.mjs.map +1 -1
  267. package/dist/actions/replace-cart.cjs +1 -0
  268. package/dist/actions/replace-cart.cjs.map +1 -1
  269. package/dist/actions/replace-cart.d.cts +3 -34
  270. package/dist/actions/replace-cart.d.cts.map +1 -1
  271. package/dist/actions/replace-cart.d.mts +3 -34
  272. package/dist/actions/replace-cart.d.mts.map +1 -1
  273. package/dist/actions/replace-cart.mjs +1 -0
  274. package/dist/actions/replace-cart.mjs.map +1 -1
  275. package/dist/actions/replace-category.cjs +1 -0
  276. package/dist/actions/replace-category.cjs.map +1 -1
  277. package/dist/actions/replace-category.d.cts +3 -16
  278. package/dist/actions/replace-category.d.cts.map +1 -1
  279. package/dist/actions/replace-category.d.mts +3 -16
  280. package/dist/actions/replace-category.d.mts.map +1 -1
  281. package/dist/actions/replace-category.mjs +1 -0
  282. package/dist/actions/replace-category.mjs.map +1 -1
  283. package/dist/actions/replace-order.cjs +1 -0
  284. package/dist/actions/replace-order.cjs.map +1 -1
  285. package/dist/actions/replace-order.d.cts +3 -78
  286. package/dist/actions/replace-order.d.cts.map +1 -1
  287. package/dist/actions/replace-order.d.mts +3 -78
  288. package/dist/actions/replace-order.d.mts.map +1 -1
  289. package/dist/actions/replace-order.mjs +1 -0
  290. package/dist/actions/replace-order.mjs.map +1 -1
  291. package/dist/actions/replace-product.cjs +1 -0
  292. package/dist/actions/replace-product.cjs.map +1 -1
  293. package/dist/actions/replace-product.d.cts +3 -42
  294. package/dist/actions/replace-product.d.cts.map +1 -1
  295. package/dist/actions/replace-product.d.mts +3 -42
  296. package/dist/actions/replace-product.d.mts.map +1 -1
  297. package/dist/actions/replace-product.mjs +1 -0
  298. package/dist/actions/replace-product.mjs.map +1 -1
  299. package/dist/actions/send-event.cjs +1 -0
  300. package/dist/actions/send-event.cjs.map +1 -1
  301. package/dist/actions/send-event.d.cts +3 -37
  302. package/dist/actions/send-event.d.cts.map +1 -1
  303. package/dist/actions/send-event.d.mts +3 -37
  304. package/dist/actions/send-event.d.mts.map +1 -1
  305. package/dist/actions/send-event.mjs +1 -0
  306. package/dist/actions/send-event.mjs.map +1 -1
  307. package/dist/actions/update-cart-product.cjs +1 -0
  308. package/dist/actions/update-cart-product.cjs.map +1 -1
  309. package/dist/actions/update-cart-product.d.cts +3 -28
  310. package/dist/actions/update-cart-product.d.cts.map +1 -1
  311. package/dist/actions/update-cart-product.d.mts +3 -28
  312. package/dist/actions/update-cart-product.d.mts.map +1 -1
  313. package/dist/actions/update-cart-product.mjs +1 -0
  314. package/dist/actions/update-cart-product.mjs.map +1 -1
  315. package/dist/actions/update-cart.cjs +1 -0
  316. package/dist/actions/update-cart.cjs.map +1 -1
  317. package/dist/actions/update-cart.d.cts +3 -33
  318. package/dist/actions/update-cart.d.cts.map +1 -1
  319. package/dist/actions/update-cart.d.mts +3 -33
  320. package/dist/actions/update-cart.d.mts.map +1 -1
  321. package/dist/actions/update-cart.mjs +1 -0
  322. package/dist/actions/update-cart.mjs.map +1 -1
  323. package/dist/actions/update-contact.cjs +1 -0
  324. package/dist/actions/update-contact.cjs.map +1 -1
  325. package/dist/actions/update-contact.d.cts +3 -52
  326. package/dist/actions/update-contact.d.cts.map +1 -1
  327. package/dist/actions/update-contact.d.mts +3 -52
  328. package/dist/actions/update-contact.d.mts.map +1 -1
  329. package/dist/actions/update-contact.mjs +1 -0
  330. package/dist/actions/update-contact.mjs.map +1 -1
  331. package/dist/actions/update-order-status.cjs +1 -0
  332. package/dist/actions/update-order-status.cjs.map +1 -1
  333. package/dist/actions/update-order-status.d.cts +3 -23
  334. package/dist/actions/update-order-status.d.cts.map +1 -1
  335. package/dist/actions/update-order-status.d.mts +3 -23
  336. package/dist/actions/update-order-status.d.mts.map +1 -1
  337. package/dist/actions/update-order-status.mjs +1 -0
  338. package/dist/actions/update-order-status.mjs.map +1 -1
  339. package/dist/actions/update-product-category.cjs +1 -0
  340. package/dist/actions/update-product-category.cjs.map +1 -1
  341. package/dist/actions/update-product-category.d.cts +3 -16
  342. package/dist/actions/update-product-category.d.cts.map +1 -1
  343. package/dist/actions/update-product-category.d.mts +3 -16
  344. package/dist/actions/update-product-category.d.mts.map +1 -1
  345. package/dist/actions/update-product-category.mjs +1 -0
  346. package/dist/actions/update-product-category.mjs.map +1 -1
  347. package/dist/app.cjs +2 -2
  348. package/dist/app.cjs.map +1 -1
  349. package/dist/app.d.cts +4 -6
  350. package/dist/app.d.cts.map +1 -1
  351. package/dist/app.d.mts +4 -6
  352. package/dist/app.d.mts.map +1 -1
  353. package/dist/app.mjs +0 -1
  354. package/dist/app.mjs.map +1 -1
  355. package/dist/index.d.cts +1 -1
  356. package/dist/index.d.mts +1 -1
  357. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"create-category.d.mts","names":[],"sources":["../../src/actions/create-category.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"create-category.d.mts","names":[],"sources":["../../src/actions/create-category.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const omnisendCreateCategory = action("OMNISEND_CREATE_CATEGORY", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-category.mjs","names":[],"sources":["../../src/actions/create-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateCategoryInput = z.object({\n title: z.string().describe(\"Display name for the category.\"),\n categoryID: z.string().describe(\"Unique identifier for the category. Must be unique within your Omnisend account.\"),\n});\nexport const OmnisendCreateCategoryOutput = z.object({\n categoryID: z.string().describe(\"Unique identifier of the created category.\").nullable(),\n}).passthrough();\n\nexport const omnisendCreateCategory = action(\"OMNISEND_CREATE_CATEGORY\", {\n slug: \"omnisend-create-category\",\n name: \"Create Category\",\n description: \"Tool to create a new category in Omnisend. Use when organizing products into categories.\",\n input: OmnisendCreateCategoryInput,\n output: OmnisendCreateCategoryOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZyC,EAAE,OAAO;EAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC3D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;CACpH,CASS;CACP,QAT0C,EAAE,OAAO,EACnD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,EACzF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"create-category.mjs","names":[],"sources":["../../src/actions/create-category.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { omnisend } from \"../app\";\n\nexport const OmnisendCreateCategoryInput = z.object({\n title: z.string().describe(\"Display name for the category.\"),\n categoryID: z.string().describe(\"Unique identifier for the category. Must be unique within your Omnisend account.\"),\n});\nexport const OmnisendCreateCategoryOutput = z.object({\n categoryID: z.string().describe(\"Unique identifier of the created category.\").nullable(),\n}).passthrough();\n\nexport const omnisendCreateCategory: AppAction<\n typeof OmnisendCreateCategoryInput,\n typeof OmnisendCreateCategoryOutput,\n typeof omnisend.credential\n> = action(\"OMNISEND_CREATE_CATEGORY\", {\n slug: \"omnisend-create-category\",\n name: \"Create Category\",\n description: \"Tool to create a new category in Omnisend. Use when organizing products into categories.\",\n input: OmnisendCreateCategoryInput,\n output: OmnisendCreateCategoryOutput,\n});\n"],"mappings":";;;AAcA,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhByC,EAAE,OAAO;EAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC3D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;CACpH,CAaS;CACP,QAb0C,EAAE,OAAO,EACnD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,EACzF,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-or-update-contact.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-contact.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateOrUpdateContactInput = z.object({\n city: z.string().describe(\"City name\").optional(),\n gender: z.enum([\"m\", \"f\"]).describe(\"Contact's gender ('m' or 'f')\").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 identifiers: z.array(z.object({\n id: z.string().describe(\"Identifier value (e.g. email address)\"),\n type: z.string().describe(\"Type of identifier; only 'email' supported\"),\n channels: z.object({\n email: z.object({\n status: z.enum([\"subscribed\", \"nonSubscribed\", \"unsubscribed\"]).describe(\"Subscription status for email channel\"),\n statusDate: z.string().describe(\"ISO 8601 timestamp when the status last changed\").optional(),\n}).describe(\"Email channel subscription details\").optional(),\n}).describe(\"Channel-specific subscription settings\").optional(),\n sendWelcomeMessage: z.boolean().describe(\"If true, Omnisend will send its default welcome email upon creation\").optional(),\n}).passthrough()).describe(\"One or more ways to identify the contact; at least one required\"),\n});\nexport const OmnisendCreateOrUpdateContactOutput = z.object({\n email: z.string().describe(\"Primary email address on record\").nullable(),\n phone: z.string().describe(\"Phone number, if provided\").nullable().optional(),\n lastName: z.string().describe(\"Last name\").nullable().optional(),\n contactID: z.string().describe(\"Omnisend-assigned unique contact ID\").nullable(),\n firstName: z.string().describe(\"First name\").nullable().optional(),\n}).passthrough();\n\nexport const omnisendCreateOrUpdateContact = action(\"OMNISEND_CREATE_OR_UPDATE_CONTACT\", {\n slug: \"omnisend-create-or-update-contact\",\n name: \"Create or Update Contact\",\n description: \"Tool to create or update a contact in Omnisend. Use after collecting subscriber details.\",\n input: OmnisendCreateOrUpdateContactInput,\n output: OmnisendCreateOrUpdateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CAChD,QAAQA,IAAAA,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC9E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC9D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,C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qCAAqC,CAAC,CAAC,SAAS;CAC/E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-or-update-contact.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { omnisend } from \"../app\";\n\nexport const OmnisendCreateOrUpdateContactInput = z.object({\n city: z.string().describe(\"City name\").optional(),\n gender: z.enum([\"m\", \"f\"]).describe(\"Contact's gender ('m' or 'f')\").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 identifiers: z.array(z.object({\n id: z.string().describe(\"Identifier value (e.g. email address)\"),\n type: z.string().describe(\"Type of identifier; only 'email' supported\"),\n channels: z.object({\n email: z.object({\n status: z.enum([\"subscribed\", \"nonSubscribed\", \"unsubscribed\"]).describe(\"Subscription status for email channel\"),\n statusDate: z.string().describe(\"ISO 8601 timestamp when the status last changed\").optional(),\n}).describe(\"Email channel subscription details\").optional(),\n}).describe(\"Channel-specific subscription settings\").optional(),\n sendWelcomeMessage: z.boolean().describe(\"If true, Omnisend will send its default welcome email upon creation\").optional(),\n}).passthrough()).describe(\"One or more ways to identify the contact; at least one required\"),\n});\nexport const OmnisendCreateOrUpdateContactOutput = z.object({\n email: z.string().describe(\"Primary email address on record\").nullable(),\n phone: z.string().describe(\"Phone number, if provided\").nullable().optional(),\n lastName: z.string().describe(\"Last name\").nullable().optional(),\n contactID: z.string().describe(\"Omnisend-assigned unique contact ID\").nullable(),\n firstName: z.string().describe(\"First name\").nullable().optional(),\n}).passthrough();\n\nexport const omnisendCreateOrUpdateContact: AppAction<\n typeof OmnisendCreateOrUpdateContactInput,\n typeof OmnisendCreateOrUpdateContactOutput,\n typeof omnisend.credential\n> = action(\"OMNISEND_CREATE_OR_UPDATE_CONTACT\", {\n slug: \"omnisend-create-or-update-contact\",\n name: \"Create or Update Contact\",\n description: \"Tool to create or update a contact in Omnisend. Use after collecting subscriber details.\",\n input: OmnisendCreateOrUpdateContactInput,\n output: OmnisendCreateOrUpdateContactOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CAChD,QAAQA,IAAAA,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC9E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC9D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC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Aa,gCAITC,eAAAA,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { omnisend } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-or-update-contact.d.ts
@@ -20,9 +22,9 @@ declare const OmnisendCreateOrUpdateContactInput: z.ZodObject<{
20
22
  channels: z.ZodOptional<z.ZodObject<{
21
23
  email: z.ZodOptional<z.ZodObject<{
22
24
  status: z.ZodEnum<{
25
+ unsubscribed: "unsubscribed";
23
26
  subscribed: "subscribed";
24
27
  nonSubscribed: "nonSubscribed";
25
- unsubscribed: "unsubscribed";
26
28
  }>;
27
29
  statusDate: z.ZodOptional<z.ZodString>;
28
30
  }, z.core.$strip>>;
@@ -37,41 +39,7 @@ declare const OmnisendCreateOrUpdateContactOutput: z.ZodObject<{
37
39
  contactID: z.ZodNullable<z.ZodString>;
38
40
  firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
41
  }, z.core.$loose>;
40
- declare const omnisendCreateOrUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
41
- identifiers: {
42
- [x: string]: unknown;
43
- id: string;
44
- type: string;
45
- channels?: {
46
- email?: {
47
- status: "subscribed" | "nonSubscribed" | "unsubscribed";
48
- statusDate?: string | undefined;
49
- } | undefined;
50
- } | undefined;
51
- sendWelcomeMessage?: boolean | undefined;
52
- }[];
53
- city?: string | undefined;
54
- gender?: "m" | "f" | undefined;
55
- address?: string | undefined;
56
- country?: string | undefined;
57
- lastName?: string | undefined;
58
- birthdate?: string | undefined;
59
- firstName?: string | undefined;
60
- postalCode?: string | undefined;
61
- countryCode?: string | undefined;
62
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
63
- connectionId: z.ZodString;
64
- entityId: z.ZodString;
65
- instanceId: z.ZodString;
66
- }, z.core.$strip>, z.ZodObject<{
67
- accessToken: z.ZodString;
68
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
69
- connectionId: z.ZodString;
70
- entityId: z.ZodString;
71
- instanceId: z.ZodString;
72
- }, z.core.$strip>, z.ZodObject<{
73
- accessToken: z.ZodString;
74
- }, z.core.$strip>>]>;
42
+ declare const omnisendCreateOrUpdateContact: AppAction<typeof OmnisendCreateOrUpdateContactInput, typeof OmnisendCreateOrUpdateContactOutput, typeof omnisend.credential>;
75
43
  //#endregion
76
44
  export { omnisendCreateOrUpdateContact };
77
45
  //# sourceMappingURL=create-or-update-contact.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-contact.d.cts","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;cAQnC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"create-or-update-contact.d.cts","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;cAQnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { omnisend } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-or-update-contact.d.ts
@@ -20,9 +22,9 @@ declare const OmnisendCreateOrUpdateContactInput: z.ZodObject<{
20
22
  channels: z.ZodOptional<z.ZodObject<{
21
23
  email: z.ZodOptional<z.ZodObject<{
22
24
  status: z.ZodEnum<{
25
+ unsubscribed: "unsubscribed";
23
26
  subscribed: "subscribed";
24
27
  nonSubscribed: "nonSubscribed";
25
- unsubscribed: "unsubscribed";
26
28
  }>;
27
29
  statusDate: z.ZodOptional<z.ZodString>;
28
30
  }, z.core.$strip>>;
@@ -37,41 +39,7 @@ declare const OmnisendCreateOrUpdateContactOutput: z.ZodObject<{
37
39
  contactID: z.ZodNullable<z.ZodString>;
38
40
  firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
41
  }, z.core.$loose>;
40
- declare const omnisendCreateOrUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
41
- identifiers: {
42
- [x: string]: unknown;
43
- id: string;
44
- type: string;
45
- channels?: {
46
- email?: {
47
- status: "subscribed" | "nonSubscribed" | "unsubscribed";
48
- statusDate?: string | undefined;
49
- } | undefined;
50
- } | undefined;
51
- sendWelcomeMessage?: boolean | undefined;
52
- }[];
53
- city?: string | undefined;
54
- gender?: "m" | "f" | undefined;
55
- address?: string | undefined;
56
- country?: string | undefined;
57
- lastName?: string | undefined;
58
- birthdate?: string | undefined;
59
- firstName?: string | undefined;
60
- postalCode?: string | undefined;
61
- countryCode?: string | undefined;
62
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
63
- connectionId: z.ZodString;
64
- entityId: z.ZodString;
65
- instanceId: z.ZodString;
66
- }, z.core.$strip>, z.ZodObject<{
67
- accessToken: z.ZodString;
68
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
69
- connectionId: z.ZodString;
70
- entityId: z.ZodString;
71
- instanceId: z.ZodString;
72
- }, z.core.$strip>, z.ZodObject<{
73
- accessToken: z.ZodString;
74
- }, z.core.$strip>>]>;
42
+ declare const omnisendCreateOrUpdateContact: AppAction<typeof OmnisendCreateOrUpdateContactInput, typeof OmnisendCreateOrUpdateContactOutput, typeof omnisend.credential>;
75
43
  //#endregion
76
44
  export { omnisendCreateOrUpdateContact };
77
45
  //# sourceMappingURL=create-or-update-contact.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-contact.d.mts","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;cAQnC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"create-or-update-contact.d.mts","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;cAQnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const omnisendCreateOrUpdateContact = action("OMNISEND_CREATE_OR_UPDATE_CONTACT", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-contact.mjs","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateOrUpdateContactInput = z.object({\n city: z.string().describe(\"City name\").optional(),\n gender: z.enum([\"m\", \"f\"]).describe(\"Contact's gender ('m' or 'f')\").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 identifiers: z.array(z.object({\n id: z.string().describe(\"Identifier value (e.g. email address)\"),\n type: z.string().describe(\"Type of identifier; only 'email' supported\"),\n channels: z.object({\n email: z.object({\n status: z.enum([\"subscribed\", \"nonSubscribed\", \"unsubscribed\"]).describe(\"Subscription status for email channel\"),\n statusDate: z.string().describe(\"ISO 8601 timestamp when the status last changed\").optional(),\n}).describe(\"Email channel subscription details\").optional(),\n}).describe(\"Channel-specific subscription settings\").optional(),\n sendWelcomeMessage: z.boolean().describe(\"If true, Omnisend will send its default welcome email upon creation\").optional(),\n}).passthrough()).describe(\"One or more ways to identify the contact; at least one required\"),\n});\nexport const OmnisendCreateOrUpdateContactOutput = z.object({\n email: z.string().describe(\"Primary email address on record\").nullable(),\n phone: z.string().describe(\"Phone number, if provided\").nullable().optional(),\n lastName: z.string().describe(\"Last name\").nullable().optional(),\n contactID: z.string().describe(\"Omnisend-assigned unique contact ID\").nullable(),\n firstName: z.string().describe(\"First name\").nullable().optional(),\n}).passthrough();\n\nexport const omnisendCreateOrUpdateContact = action(\"OMNISEND_CREATE_OR_UPDATE_CONTACT\", {\n slug: \"omnisend-create-or-update-contact\",\n name: \"Create or Update Contact\",\n description: \"Tool to create or update a contact in Omnisend. Use after collecting subscriber details.\",\n input: OmnisendCreateOrUpdateContactInput,\n output: OmnisendCreateOrUpdateContactOutput,\n});\n"],"mappings":";;AAkCA,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlCgD,EAAE,OAAO;EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;EAChD,QAAQ,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,S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WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC/E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"create-or-update-contact.mjs","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { omnisend } from \"../app\";\n\nexport const OmnisendCreateOrUpdateContactInput = z.object({\n city: z.string().describe(\"City name\").optional(),\n gender: z.enum([\"m\", \"f\"]).describe(\"Contact's gender ('m' or 'f')\").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 identifiers: z.array(z.object({\n id: z.string().describe(\"Identifier value (e.g. email address)\"),\n type: z.string().describe(\"Type of identifier; only 'email' supported\"),\n channels: z.object({\n email: z.object({\n status: z.enum([\"subscribed\", \"nonSubscribed\", \"unsubscribed\"]).describe(\"Subscription status for email channel\"),\n statusDate: z.string().describe(\"ISO 8601 timestamp when the status last changed\").optional(),\n}).describe(\"Email channel subscription details\").optional(),\n}).describe(\"Channel-specific subscription settings\").optional(),\n sendWelcomeMessage: z.boolean().describe(\"If true, Omnisend will send its default welcome email upon creation\").optional(),\n}).passthrough()).describe(\"One or more ways to identify the contact; at least one required\"),\n});\nexport const OmnisendCreateOrUpdateContactOutput = z.object({\n email: z.string().describe(\"Primary email address on record\").nullable(),\n phone: z.string().describe(\"Phone number, if provided\").nullable().optional(),\n lastName: z.string().describe(\"Last name\").nullable().optional(),\n contactID: z.string().describe(\"Omnisend-assigned unique contact ID\").nullable(),\n firstName: z.string().describe(\"First name\").nullable().optional(),\n}).passthrough();\n\nexport const omnisendCreateOrUpdateContact: AppAction<\n typeof OmnisendCreateOrUpdateContactInput,\n typeof OmnisendCreateOrUpdateContactOutput,\n typeof omnisend.credential\n> = action(\"OMNISEND_CREATE_OR_UPDATE_CONTACT\", {\n slug: \"omnisend-create-or-update-contact\",\n name: \"Create or Update Contact\",\n description: \"Tool to create or update a contact in Omnisend. Use after collecting subscriber details.\",\n input: OmnisendCreateOrUpdateContactInput,\n output: OmnisendCreateOrUpdateContactOutput,\n});\n"],"mappings":";;;AAoCA,MAAa,gCAIT,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtCgD,EAAE,OAAO;EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;EAChD,QAAQ,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC9D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC7E,aAAa,EAAE,MAAM,EAAE,OAAO;GAC9B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;GAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;GACtE,UAAU,EAAE,OAAO,EACnB,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,KAAK;KAAC;KAAc;KAAiB;IAAc,CAAC,CAAC,CAAC,SAAS,uCAAuC;IAChH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;GAC9F,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,EAC3D,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;GAC7D,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,iEAAiE;CAC5F,CAiBS;CACP,QAjBiD,EAAE,OAAO;EAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC/E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-order.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-order.cjs","names":["z","action"],"sources":["../../src/actions/create-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateOrderInput = z.object({\n tags: z.array(z.string()).describe(\"Order tags\").optional(),\n email: z.string().describe(\"Customer email address (email or phone or contactID required)\").optional(),\n phone: z.string().describe(\"Customer phone number (email or phone or contactID required)\").optional(),\n cartID: z.string().describe(\"Cart identifier\").optional(),\n source: z.string().describe(\"Order source\").optional(),\n taxSum: z.number().int().describe(\"Tax amount in cents\").optional(),\n orderID: z.string().describe(\"Unique order identifier from your store\"),\n currency: z.string().describe(\"Order currency code (e.g., USD, EUR)\"),\n lastName: z.string().describe(\"Customer last name\").optional(),\n orderSum: z.number().int().describe(\"Total order amount in cents (must be integer, not float)\"),\n orderUrl: z.string().describe(\"URL to view the order\").optional(),\n products: z.array(z.object({\n tags: z.array(z.string()).describe(\"Product tags\").optional(),\n price: z.number().int().describe(\"Product price in cents (must be integer)\"),\n title: z.string().describe(\"Product title\"),\n weight: z.number().int().describe(\"Product weight in grams\").optional(),\n discount: z.number().int().describe(\"Discount amount in cents\").optional(),\n imageUrl: z.string().describe(\"URL to product image\").optional(),\n quantity: z.number().int().describe(\"Quantity ordered\"),\n productID: z.string().describe(\"Unique product identifier\"),\n variantID: z.string().describe(\"Product variant identifier (required by API)\"),\n productUrl: z.string().describe(\"URL to product page\").optional(),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs\").optional(),\n variantTitle: z.string().describe(\"Variant title\").optional(),\n cartProductID: z.string().describe(\"Unique identifier for this product in the cart\").optional(),\n}).passthrough().describe(\"Product item in the order.\")).describe(\"Array of ordered products\").optional(),\n contactID: z.string().describe(\"Omnisend contact ID (email or phone or contactID required)\").optional(),\n createdAt: z.string().describe(\"Order creation timestamp in ISO 8601 format (cannot be future date, required by API)\"),\n firstName: z.string().describe(\"Customer first name\").optional(),\n updatedAt: z.string().describe(\"Order last update timestamp in ISO 8601 format\").optional(),\n courierUrl: z.string().describe(\"Tracking URL\").optional(),\n contactNote: z.string().describe(\"Note about the customer or order\").optional(),\n discountSum: z.number().int().describe(\"Total discount amount in cents\").optional(),\n orderNumber: z.number().int().describe(\"Order number for display\").optional(),\n shippingSum: z.number().int().describe(\"Shipping cost in cents\").optional(),\n subTotalSum: z.number().int().describe(\"Subtotal amount in cents\").optional(),\n courierTitle: z.string().describe(\"Courier service name\").optional(),\n customFields: z.record(z.string(), z.unknown()).describe(\"Custom fields as key-value pairs\").optional(),\n discountCode: z.string().describe(\"Discount code applied\").optional(),\n discountType: z.string().describe(\"Type of discount (e.g., fixedAmount, percentage)\").optional(),\n trackingCode: z.string().describe(\"Shipping tracking code\").optional(),\n discountValue: z.number().int().describe(\"Discount value in cents\").optional(),\n paymentMethod: z.string().describe(\"Payment method description\").optional(),\n paymentStatus: z.enum([\"awaitingPayment\", \"partiallyPaid\", \"paid\", \"partiallyRefunded\", \"refunded\", \"voided\"]).describe(\"Payment status enum values.\").optional(),\n billingAddress: z.object({\n city: z.string().describe(\"City\").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\").optional(),\n firstName: z.string().describe(\"First name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO country code\").optional(),\n}).describe(\"Address information for billing or shipping.\").optional(),\n shippingMethod: z.string().describe(\"Shipping method description\").optional(),\n shippingAddress: z.object({\n city: z.string().describe(\"City\").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\").optional(),\n firstName: z.string().describe(\"First name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO country code\").optional(),\n}).describe(\"Address information for billing or shipping.\").optional(),\n fulfillmentStatus: z.enum([\"unfulfilled\", \"inProgress\", \"fulfilled\", \"delivered\", \"restocked\"]).describe(\"Fulfillment status enum values.\").optional(),\n subTotalTaxIncluded: z.boolean().describe(\"Whether tax is included in subtotal\").optional(),\n});\nexport const OmnisendCreateOrderOutput = z.object({\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n phone: z.string().describe(\"Customer phone number\").nullable().optional(),\n orderID: z.string().describe(\"Unique order identifier\").nullable(),\n}).passthrough();\n\nexport const omnisendCreateOrder = action(\"OMNISEND_CREATE_ORDER\", {\n slug: \"omnisend-create-order\",\n name: \"Create Order\",\n description: \"Tool to create a new order in Omnisend v3 API. Use when recording a customer purchase or order transaction.\",\n input: OmnisendCreateOrderInput,\n output: OmnisendCreateOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACrG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACpG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACxD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC7D,UAA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A,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-order.cjs","names":["z","action"],"sources":["../../src/actions/create-order.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { omnisend } from \"../app\";\n\nexport const OmnisendCreateOrderInput = z.object({\n tags: z.array(z.string()).describe(\"Order tags\").optional(),\n email: z.string().describe(\"Customer email address (email or phone or contactID required)\").optional(),\n phone: z.string().describe(\"Customer phone number (email or phone or contactID required)\").optional(),\n cartID: z.string().describe(\"Cart identifier\").optional(),\n source: z.string().describe(\"Order source\").optional(),\n taxSum: z.number().int().describe(\"Tax amount in cents\").optional(),\n orderID: z.string().describe(\"Unique order identifier from your store\"),\n currency: z.string().describe(\"Order currency code (e.g., USD, EUR)\"),\n lastName: z.string().describe(\"Customer last name\").optional(),\n orderSum: z.number().int().describe(\"Total order amount in cents (must be integer, not float)\"),\n orderUrl: z.string().describe(\"URL to view the order\").optional(),\n products: z.array(z.object({\n tags: z.array(z.string()).describe(\"Product tags\").optional(),\n price: z.number().int().describe(\"Product price in cents (must be integer)\"),\n title: z.string().describe(\"Product title\"),\n weight: z.number().int().describe(\"Product weight in grams\").optional(),\n discount: z.number().int().describe(\"Discount amount in cents\").optional(),\n imageUrl: z.string().describe(\"URL to product image\").optional(),\n quantity: z.number().int().describe(\"Quantity ordered\"),\n productID: z.string().describe(\"Unique product identifier\"),\n variantID: z.string().describe(\"Product variant identifier (required by API)\"),\n productUrl: z.string().describe(\"URL to product page\").optional(),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs\").optional(),\n variantTitle: z.string().describe(\"Variant title\").optional(),\n cartProductID: z.string().describe(\"Unique identifier for this product in the cart\").optional(),\n}).passthrough().describe(\"Product item in the order.\")).describe(\"Array of ordered products\").optional(),\n contactID: z.string().describe(\"Omnisend contact ID (email or phone or contactID required)\").optional(),\n createdAt: z.string().describe(\"Order creation timestamp in ISO 8601 format (cannot be future date, required by API)\"),\n firstName: z.string().describe(\"Customer first name\").optional(),\n updatedAt: z.string().describe(\"Order last update timestamp in ISO 8601 format\").optional(),\n courierUrl: z.string().describe(\"Tracking URL\").optional(),\n contactNote: z.string().describe(\"Note about the customer or order\").optional(),\n discountSum: z.number().int().describe(\"Total discount amount in cents\").optional(),\n orderNumber: z.number().int().describe(\"Order number for display\").optional(),\n shippingSum: z.number().int().describe(\"Shipping cost in cents\").optional(),\n subTotalSum: z.number().int().describe(\"Subtotal amount in cents\").optional(),\n courierTitle: z.string().describe(\"Courier service name\").optional(),\n customFields: z.record(z.string(), z.unknown()).describe(\"Custom fields as key-value pairs\").optional(),\n discountCode: z.string().describe(\"Discount code applied\").optional(),\n discountType: z.string().describe(\"Type of discount (e.g., fixedAmount, percentage)\").optional(),\n trackingCode: z.string().describe(\"Shipping tracking code\").optional(),\n discountValue: z.number().int().describe(\"Discount value in cents\").optional(),\n paymentMethod: z.string().describe(\"Payment method description\").optional(),\n paymentStatus: z.enum([\"awaitingPayment\", \"partiallyPaid\", \"paid\", \"partiallyRefunded\", \"refunded\", \"voided\"]).describe(\"Payment status enum values.\").optional(),\n billingAddress: z.object({\n city: z.string().describe(\"City\").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\").optional(),\n firstName: z.string().describe(\"First name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO country code\").optional(),\n}).describe(\"Address information for billing or shipping.\").optional(),\n shippingMethod: z.string().describe(\"Shipping method description\").optional(),\n shippingAddress: z.object({\n city: z.string().describe(\"City\").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\").optional(),\n firstName: z.string().describe(\"First name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO country code\").optional(),\n}).describe(\"Address information for billing or shipping.\").optional(),\n fulfillmentStatus: z.enum([\"unfulfilled\", \"inProgress\", \"fulfilled\", \"delivered\", \"restocked\"]).describe(\"Fulfillment status enum values.\").optional(),\n subTotalTaxIncluded: z.boolean().describe(\"Whether tax is included in subtotal\").optional(),\n});\nexport const OmnisendCreateOrderOutput = z.object({\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n phone: z.string().describe(\"Customer phone number\").nullable().optional(),\n orderID: z.string().describe(\"Unique order identifier\").nullable(),\n}).passthrough();\n\nexport const omnisendCreateOrder: AppAction<\n typeof OmnisendCreateOrderInput,\n typeof OmnisendCreateOrderOutput,\n typeof omnisend.credential\n> = action(\"OMNISEND_CREATE_ORDER\", {\n slug: \"omnisend-create-order\",\n name: \"Create Order\",\n description: \"Tool to create a new order in Omnisend v3 API. Use when recording a customer purchase or order transaction.\",\n input: OmnisendCreateOrderInput,\n output: OmnisendCreateOrderOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,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tD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACtD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;EACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;EACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAChE,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnE,mBAAmBA,IAAAA,EAAE,KAAK;EAAC;EAAe;EAAc;EAAa;EAAa;CAAW,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACrJ,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAC5F,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { omnisend } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-order.d.ts
@@ -92,92 +94,7 @@ declare const OmnisendCreateOrderOutput: z.ZodObject<{
92
94
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
95
  orderID: z.ZodNullable<z.ZodString>;
94
96
  }, z.core.$loose>;
95
- declare const omnisendCreateOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
96
- orderID: string;
97
- currency: string;
98
- orderSum: number;
99
- createdAt: string;
100
- tags?: string[] | undefined;
101
- email?: string | undefined;
102
- phone?: string | undefined;
103
- cartID?: string | undefined;
104
- source?: string | undefined;
105
- taxSum?: number | undefined;
106
- lastName?: string | undefined;
107
- orderUrl?: string | undefined;
108
- products?: {
109
- [x: string]: unknown;
110
- price: number;
111
- title: string;
112
- quantity: number;
113
- productID: string;
114
- variantID: string;
115
- tags?: string[] | undefined;
116
- weight?: number | undefined;
117
- discount?: number | undefined;
118
- imageUrl?: string | undefined;
119
- productUrl?: string | undefined;
120
- categoryIDs?: string[] | undefined;
121
- variantTitle?: string | undefined;
122
- cartProductID?: string | undefined;
123
- }[] | undefined;
124
- contactID?: string | undefined;
125
- firstName?: string | undefined;
126
- updatedAt?: string | undefined;
127
- courierUrl?: string | undefined;
128
- contactNote?: string | undefined;
129
- discountSum?: number | undefined;
130
- orderNumber?: number | undefined;
131
- shippingSum?: number | undefined;
132
- subTotalSum?: number | undefined;
133
- courierTitle?: string | undefined;
134
- customFields?: Record<string, unknown> | undefined;
135
- discountCode?: string | undefined;
136
- discountType?: string | undefined;
137
- trackingCode?: string | undefined;
138
- discountValue?: number | undefined;
139
- paymentMethod?: string | undefined;
140
- paymentStatus?: "awaitingPayment" | "partiallyPaid" | "paid" | "partiallyRefunded" | "refunded" | "voided" | undefined;
141
- billingAddress?: {
142
- city?: string | undefined;
143
- phone?: string | undefined;
144
- state?: string | undefined;
145
- address?: string | undefined;
146
- company?: string | undefined;
147
- country?: string | undefined;
148
- lastName?: string | undefined;
149
- firstName?: string | undefined;
150
- postalCode?: string | undefined;
151
- countryCode?: string | undefined;
152
- } | undefined;
153
- shippingMethod?: string | undefined;
154
- shippingAddress?: {
155
- city?: string | undefined;
156
- phone?: string | undefined;
157
- state?: string | undefined;
158
- address?: string | undefined;
159
- company?: string | undefined;
160
- country?: string | undefined;
161
- lastName?: string | undefined;
162
- firstName?: string | undefined;
163
- postalCode?: string | undefined;
164
- countryCode?: string | undefined;
165
- } | undefined;
166
- fulfillmentStatus?: "inProgress" | "unfulfilled" | "fulfilled" | "delivered" | "restocked" | undefined;
167
- subTotalTaxIncluded?: boolean | undefined;
168
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
169
- connectionId: z.ZodString;
170
- entityId: z.ZodString;
171
- instanceId: z.ZodString;
172
- }, z.core.$strip>, z.ZodObject<{
173
- accessToken: z.ZodString;
174
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
175
- connectionId: z.ZodString;
176
- entityId: z.ZodString;
177
- instanceId: z.ZodString;
178
- }, z.core.$strip>, z.ZodObject<{
179
- accessToken: z.ZodString;
180
- }, z.core.$strip>>]>;
97
+ declare const omnisendCreateOrder: AppAction<typeof OmnisendCreateOrderInput, typeof OmnisendCreateOrderOutput, typeof omnisend.credential>;
181
98
  //#endregion
182
99
  export { omnisendCreateOrder };
183
100
  //# sourceMappingURL=create-order.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-order.d.cts","names":[],"sources":["../../src/actions/create-order.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyExB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAMzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"create-order.d.cts","names":[],"sources":["../../src/actions/create-order.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyExB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAMzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { omnisend } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-order.d.ts
@@ -92,92 +94,7 @@ declare const OmnisendCreateOrderOutput: z.ZodObject<{
92
94
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
95
  orderID: z.ZodNullable<z.ZodString>;
94
96
  }, z.core.$loose>;
95
- declare const omnisendCreateOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
96
- orderID: string;
97
- currency: string;
98
- orderSum: number;
99
- createdAt: string;
100
- tags?: string[] | undefined;
101
- email?: string | undefined;
102
- phone?: string | undefined;
103
- cartID?: string | undefined;
104
- source?: string | undefined;
105
- taxSum?: number | undefined;
106
- lastName?: string | undefined;
107
- orderUrl?: string | undefined;
108
- products?: {
109
- [x: string]: unknown;
110
- price: number;
111
- title: string;
112
- quantity: number;
113
- productID: string;
114
- variantID: string;
115
- tags?: string[] | undefined;
116
- weight?: number | undefined;
117
- discount?: number | undefined;
118
- imageUrl?: string | undefined;
119
- productUrl?: string | undefined;
120
- categoryIDs?: string[] | undefined;
121
- variantTitle?: string | undefined;
122
- cartProductID?: string | undefined;
123
- }[] | undefined;
124
- contactID?: string | undefined;
125
- firstName?: string | undefined;
126
- updatedAt?: string | undefined;
127
- courierUrl?: string | undefined;
128
- contactNote?: string | undefined;
129
- discountSum?: number | undefined;
130
- orderNumber?: number | undefined;
131
- shippingSum?: number | undefined;
132
- subTotalSum?: number | undefined;
133
- courierTitle?: string | undefined;
134
- customFields?: Record<string, unknown> | undefined;
135
- discountCode?: string | undefined;
136
- discountType?: string | undefined;
137
- trackingCode?: string | undefined;
138
- discountValue?: number | undefined;
139
- paymentMethod?: string | undefined;
140
- paymentStatus?: "awaitingPayment" | "partiallyPaid" | "paid" | "partiallyRefunded" | "refunded" | "voided" | undefined;
141
- billingAddress?: {
142
- city?: string | undefined;
143
- phone?: string | undefined;
144
- state?: string | undefined;
145
- address?: string | undefined;
146
- company?: string | undefined;
147
- country?: string | undefined;
148
- lastName?: string | undefined;
149
- firstName?: string | undefined;
150
- postalCode?: string | undefined;
151
- countryCode?: string | undefined;
152
- } | undefined;
153
- shippingMethod?: string | undefined;
154
- shippingAddress?: {
155
- city?: string | undefined;
156
- phone?: string | undefined;
157
- state?: string | undefined;
158
- address?: string | undefined;
159
- company?: string | undefined;
160
- country?: string | undefined;
161
- lastName?: string | undefined;
162
- firstName?: string | undefined;
163
- postalCode?: string | undefined;
164
- countryCode?: string | undefined;
165
- } | undefined;
166
- fulfillmentStatus?: "inProgress" | "unfulfilled" | "fulfilled" | "delivered" | "restocked" | undefined;
167
- subTotalTaxIncluded?: boolean | undefined;
168
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
169
- connectionId: z.ZodString;
170
- entityId: z.ZodString;
171
- instanceId: z.ZodString;
172
- }, z.core.$strip>, z.ZodObject<{
173
- accessToken: z.ZodString;
174
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
175
- connectionId: z.ZodString;
176
- entityId: z.ZodString;
177
- instanceId: z.ZodString;
178
- }, z.core.$strip>, z.ZodObject<{
179
- accessToken: z.ZodString;
180
- }, z.core.$strip>>]>;
97
+ declare const omnisendCreateOrder: AppAction<typeof OmnisendCreateOrderInput, typeof OmnisendCreateOrderOutput, typeof omnisend.credential>;
181
98
  //#endregion
182
99
  export { omnisendCreateOrder };
183
100
  //# sourceMappingURL=create-order.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-order.d.mts","names":[],"sources":["../../src/actions/create-order.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyExB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAMzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"create-order.d.mts","names":[],"sources":["../../src/actions/create-order.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyExB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAMzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const omnisendCreateOrder = action("OMNISEND_CREATE_ORDER", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-order.mjs","names":[],"sources":["../../src/actions/create-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateOrderInput = z.object({\n tags: z.array(z.string()).describe(\"Order tags\").optional(),\n email: z.string().describe(\"Customer email address (email or phone or contactID required)\").optional(),\n phone: z.string().describe(\"Customer phone number (email or phone or contactID required)\").optional(),\n cartID: z.string().describe(\"Cart identifier\").optional(),\n source: z.string().describe(\"Order source\").optional(),\n taxSum: z.number().int().describe(\"Tax amount in cents\").optional(),\n orderID: z.string().describe(\"Unique order identifier from your store\"),\n currency: z.string().describe(\"Order currency code (e.g., USD, EUR)\"),\n lastName: z.string().describe(\"Customer last name\").optional(),\n orderSum: z.number().int().describe(\"Total order amount in cents (must be integer, not float)\"),\n orderUrl: z.string().describe(\"URL to view the order\").optional(),\n products: z.array(z.object({\n tags: z.array(z.string()).describe(\"Product tags\").optional(),\n price: z.number().int().describe(\"Product price in cents (must be integer)\"),\n title: z.string().describe(\"Product title\"),\n weight: z.number().int().describe(\"Product weight in grams\").optional(),\n discount: z.number().int().describe(\"Discount amount in cents\").optional(),\n imageUrl: z.string().describe(\"URL to product image\").optional(),\n quantity: z.number().int().describe(\"Quantity ordered\"),\n productID: z.string().describe(\"Unique product identifier\"),\n variantID: z.string().describe(\"Product variant identifier (required by API)\"),\n productUrl: z.string().describe(\"URL to product page\").optional(),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs\").optional(),\n variantTitle: z.string().describe(\"Variant title\").optional(),\n cartProductID: z.string().describe(\"Unique identifier for this product in the cart\").optional(),\n}).passthrough().describe(\"Product item in the order.\")).describe(\"Array of ordered products\").optional(),\n contactID: z.string().describe(\"Omnisend contact ID (email or phone or contactID required)\").optional(),\n createdAt: z.string().describe(\"Order creation timestamp in ISO 8601 format (cannot be future date, required by API)\"),\n firstName: z.string().describe(\"Customer first name\").optional(),\n updatedAt: z.string().describe(\"Order last update timestamp in ISO 8601 format\").optional(),\n courierUrl: z.string().describe(\"Tracking URL\").optional(),\n contactNote: z.string().describe(\"Note about the customer or order\").optional(),\n discountSum: z.number().int().describe(\"Total discount amount in cents\").optional(),\n orderNumber: z.number().int().describe(\"Order number for display\").optional(),\n shippingSum: z.number().int().describe(\"Shipping cost in cents\").optional(),\n subTotalSum: z.number().int().describe(\"Subtotal amount in cents\").optional(),\n courierTitle: z.string().describe(\"Courier service name\").optional(),\n customFields: z.record(z.string(), z.unknown()).describe(\"Custom fields as key-value pairs\").optional(),\n discountCode: z.string().describe(\"Discount code applied\").optional(),\n discountType: z.string().describe(\"Type of discount (e.g., fixedAmount, percentage)\").optional(),\n trackingCode: z.string().describe(\"Shipping tracking code\").optional(),\n discountValue: z.number().int().describe(\"Discount value in cents\").optional(),\n paymentMethod: z.string().describe(\"Payment method description\").optional(),\n paymentStatus: z.enum([\"awaitingPayment\", \"partiallyPaid\", \"paid\", \"partiallyRefunded\", \"refunded\", \"voided\"]).describe(\"Payment status enum values.\").optional(),\n billingAddress: z.object({\n city: z.string().describe(\"City\").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\").optional(),\n firstName: z.string().describe(\"First name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO country code\").optional(),\n}).describe(\"Address information for billing or shipping.\").optional(),\n shippingMethod: z.string().describe(\"Shipping method description\").optional(),\n shippingAddress: z.object({\n city: z.string().describe(\"City\").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\").optional(),\n firstName: z.string().describe(\"First name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO country code\").optional(),\n}).describe(\"Address information for billing or shipping.\").optional(),\n fulfillmentStatus: z.enum([\"unfulfilled\", \"inProgress\", \"fulfilled\", \"delivered\", \"restocked\"]).describe(\"Fulfillment status enum values.\").optional(),\n subTotalTaxIncluded: z.boolean().describe(\"Whether tax is included in subtotal\").optional(),\n});\nexport const OmnisendCreateOrderOutput = z.object({\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n phone: z.string().describe(\"Customer phone number\").nullable().optional(),\n orderID: z.string().describe(\"Unique order identifier\").nullable(),\n}).passthrough();\n\nexport const omnisendCreateOrder = action(\"OMNISEND_CREATE_ORDER\", {\n slug: \"omnisend-create-order\",\n name: \"Create Order\",\n description: \"Tool to create a new order in Omnisend v3 API. Use when recording a customer purchase or order transaction.\",\n input: OmnisendCreateOrderInput,\n output: OmnisendCreateOrderOutput,\n});\n"],"mappings":";;AAmFA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnFsC,EAAE,OAAO;EAC/C,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;EAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EACrG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACpG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;EACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAClE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;EAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAChE,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;GAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;GAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;GAC1C,QAAQ,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AAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EAChE,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACnE,mBAAmB,EAAE,KAAK;GAAC;GAAe;GAAc;GAAa;GAAa;EAAW,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACrJ,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC5F,CAWS;CACP,QAXuC,EAAE,OAAO;EAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACnE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"create-order.mjs","names":[],"sources":["../../src/actions/create-order.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { omnisend } from \"../app\";\n\nexport const OmnisendCreateOrderInput = z.object({\n tags: z.array(z.string()).describe(\"Order tags\").optional(),\n email: z.string().describe(\"Customer email address (email or phone or contactID required)\").optional(),\n phone: z.string().describe(\"Customer phone number (email or phone or contactID required)\").optional(),\n cartID: z.string().describe(\"Cart identifier\").optional(),\n source: z.string().describe(\"Order source\").optional(),\n taxSum: z.number().int().describe(\"Tax amount in cents\").optional(),\n orderID: z.string().describe(\"Unique order identifier from your store\"),\n currency: z.string().describe(\"Order currency code (e.g., USD, EUR)\"),\n lastName: z.string().describe(\"Customer last name\").optional(),\n orderSum: z.number().int().describe(\"Total order amount in cents (must be integer, not float)\"),\n orderUrl: z.string().describe(\"URL to view the order\").optional(),\n products: z.array(z.object({\n tags: z.array(z.string()).describe(\"Product tags\").optional(),\n price: z.number().int().describe(\"Product price in cents (must be integer)\"),\n title: z.string().describe(\"Product title\"),\n weight: z.number().int().describe(\"Product weight in grams\").optional(),\n discount: z.number().int().describe(\"Discount amount in cents\").optional(),\n imageUrl: z.string().describe(\"URL to product image\").optional(),\n quantity: z.number().int().describe(\"Quantity ordered\"),\n productID: z.string().describe(\"Unique product identifier\"),\n variantID: z.string().describe(\"Product variant identifier (required by API)\"),\n productUrl: z.string().describe(\"URL to product page\").optional(),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs\").optional(),\n variantTitle: z.string().describe(\"Variant title\").optional(),\n cartProductID: z.string().describe(\"Unique identifier for this product in the cart\").optional(),\n}).passthrough().describe(\"Product item in the order.\")).describe(\"Array of ordered products\").optional(),\n contactID: z.string().describe(\"Omnisend contact ID (email or phone or contactID required)\").optional(),\n createdAt: z.string().describe(\"Order creation timestamp in ISO 8601 format (cannot be future date, required by API)\"),\n firstName: z.string().describe(\"Customer first name\").optional(),\n updatedAt: z.string().describe(\"Order last update timestamp in ISO 8601 format\").optional(),\n courierUrl: z.string().describe(\"Tracking URL\").optional(),\n contactNote: z.string().describe(\"Note about the customer or order\").optional(),\n discountSum: z.number().int().describe(\"Total discount amount in cents\").optional(),\n orderNumber: z.number().int().describe(\"Order number for display\").optional(),\n shippingSum: z.number().int().describe(\"Shipping cost in cents\").optional(),\n subTotalSum: z.number().int().describe(\"Subtotal amount in cents\").optional(),\n courierTitle: z.string().describe(\"Courier service name\").optional(),\n customFields: z.record(z.string(), z.unknown()).describe(\"Custom fields as key-value pairs\").optional(),\n discountCode: z.string().describe(\"Discount code applied\").optional(),\n discountType: z.string().describe(\"Type of discount (e.g., fixedAmount, percentage)\").optional(),\n trackingCode: z.string().describe(\"Shipping tracking code\").optional(),\n discountValue: z.number().int().describe(\"Discount value in cents\").optional(),\n paymentMethod: z.string().describe(\"Payment method description\").optional(),\n paymentStatus: z.enum([\"awaitingPayment\", \"partiallyPaid\", \"paid\", \"partiallyRefunded\", \"refunded\", \"voided\"]).describe(\"Payment status enum values.\").optional(),\n billingAddress: z.object({\n city: z.string().describe(\"City\").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\").optional(),\n firstName: z.string().describe(\"First name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO country code\").optional(),\n}).describe(\"Address information for billing or shipping.\").optional(),\n shippingMethod: z.string().describe(\"Shipping method description\").optional(),\n shippingAddress: z.object({\n city: z.string().describe(\"City\").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\").optional(),\n firstName: z.string().describe(\"First name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO country code\").optional(),\n}).describe(\"Address information for billing or shipping.\").optional(),\n fulfillmentStatus: z.enum([\"unfulfilled\", \"inProgress\", \"fulfilled\", \"delivered\", \"restocked\"]).describe(\"Fulfillment status enum values.\").optional(),\n subTotalTaxIncluded: z.boolean().describe(\"Whether tax is included in subtotal\").optional(),\n});\nexport const OmnisendCreateOrderOutput = z.object({\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n phone: z.string().describe(\"Customer phone number\").nullable().optional(),\n orderID: z.string().describe(\"Unique order identifier\").nullable(),\n}).passthrough();\n\nexport const omnisendCreateOrder: AppAction<\n typeof OmnisendCreateOrderInput,\n typeof OmnisendCreateOrderOutput,\n typeof omnisend.credential\n> = action(\"OMNISEND_CREATE_ORDER\", {\n slug: \"omnisend-create-order\",\n name: \"Create Order\",\n description: \"Tool to create a new order in Omnisend v3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,SAAS;EAChE,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACnE,mBAAmB,EAAE,KAAK;GAAC;GAAe;GAAc;GAAa;GAAa;EAAW,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACrJ,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC5F,CAeS;CACP,QAfuC,EAAE,OAAO;EAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACnE,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-product-category.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-product-category.cjs","names":["z","action"],"sources":["../../src/actions/create-product-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateProductCategoryInput = z.object({\n title: z.string().describe(\"Title/name of the product category. Maximum 100 characters.\"),\n categoryID: z.string().describe(\"Unique identifier for the product category. Must be between 1 and 100 characters.\"),\n});\nexport const OmnisendCreateProductCategoryOutput = z.object({\n categoryID: z.string().describe(\"The unique identifier of the created product category.\").nullable(),\n}).passthrough();\n\nexport const omnisendCreateProductCategory = action(\"OMNISEND_CREATE_PRODUCT_CATEGORY\", {\n slug: \"omnisend-create-product-category\",\n name: \"Create Product Category\",\n description: \"Tool to create a new product category in the Omnisend catalog. Use when organizing products into categories.\",\n input: OmnisendCreateProductCategoryInput,\n output: OmnisendCreateProductCategoryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;AACrH,CAAC;AACD,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,EACrG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-product-category.cjs","names":["z","action"],"sources":["../../src/actions/create-product-category.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { omnisend } from \"../app\";\n\nexport const OmnisendCreateProductCategoryInput = z.object({\n title: z.string().describe(\"Title/name of the product category. Maximum 100 characters.\"),\n categoryID: z.string().describe(\"Unique identifier for the product category. Must be between 1 and 100 characters.\"),\n});\nexport const OmnisendCreateProductCategoryOutput = z.object({\n categoryID: z.string().describe(\"The unique identifier of the created product category.\").nullable(),\n}).passthrough();\n\nexport const omnisendCreateProductCategory: AppAction<\n typeof OmnisendCreateProductCategoryInput,\n typeof OmnisendCreateProductCategoryOutput,\n typeof omnisend.credential\n> = action(\"OMNISEND_CREATE_PRODUCT_CATEGORY\", {\n slug: \"omnisend-create-product-category\",\n name: \"Create Product Category\",\n description: \"Tool to create a new product category in the Omnisend catalog. Use when organizing products into categories.\",\n input: OmnisendCreateProductCategoryInput,\n output: OmnisendCreateProductCategoryOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;AACrH,CAAC;AACD,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,EACrG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,gCAITC,eAAAA,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { omnisend } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-product-category.d.ts
@@ -8,22 +10,7 @@ declare const OmnisendCreateProductCategoryInput: z.ZodObject<{
8
10
  declare const OmnisendCreateProductCategoryOutput: z.ZodObject<{
9
11
  categoryID: z.ZodNullable<z.ZodString>;
10
12
  }, z.core.$loose>;
11
- declare const omnisendCreateProductCategory: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- title: string;
13
- categoryID: string;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
15
- connectionId: z.ZodString;
16
- entityId: z.ZodString;
17
- instanceId: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- accessToken: z.ZodString;
20
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- accessToken: z.ZodString;
26
- }, z.core.$strip>>]>;
13
+ declare const omnisendCreateProductCategory: AppAction<typeof OmnisendCreateProductCategoryInput, typeof OmnisendCreateProductCategoryOutput, typeof omnisend.credential>;
27
14
  //#endregion
28
15
  export { omnisendCreateProductCategory };
29
16
  //# sourceMappingURL=create-product-category.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-product-category.d.cts","names":[],"sources":["../../src/actions/create-product-category.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cAIlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;cAInC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"create-product-category.d.cts","names":[],"sources":["../../src/actions/create-product-category.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cAIlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;cAInC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,QAAA,CAAS,UAAA"}