@keystrokehq/omnisend 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/dist/actions/add-cart-product.cjs +1 -1
  2. package/dist/actions/add-cart-product.cjs.map +1 -1
  3. package/dist/actions/add-cart-product.d.cts +1 -1
  4. package/dist/actions/add-cart-product.d.mts +1 -1
  5. package/dist/actions/add-cart-product.mjs +1 -1
  6. package/dist/actions/add-cart-product.mjs.map +1 -1
  7. package/dist/actions/create-batch.cjs +3 -3
  8. package/dist/actions/create-batch.cjs.map +1 -1
  9. package/dist/actions/create-batch.d.cts +4 -4
  10. package/dist/actions/create-batch.d.mts +4 -4
  11. package/dist/actions/create-batch.mjs +3 -3
  12. package/dist/actions/create-batch.mjs.map +1 -1
  13. package/dist/actions/create-cart.cjs +2 -2
  14. package/dist/actions/create-cart.cjs.map +1 -1
  15. package/dist/actions/create-cart.d.cts +3 -2
  16. package/dist/actions/create-cart.d.mts +3 -2
  17. package/dist/actions/create-cart.mjs +2 -2
  18. package/dist/actions/create-cart.mjs.map +1 -1
  19. package/dist/actions/create-category.cjs +1 -1
  20. package/dist/actions/create-category.cjs.map +1 -1
  21. package/dist/actions/create-category.d.cts +1 -1
  22. package/dist/actions/create-category.d.mts +1 -1
  23. package/dist/actions/create-category.mjs +1 -1
  24. package/dist/actions/create-category.mjs.map +1 -1
  25. package/dist/actions/create-or-update-contact.cjs +2 -2
  26. package/dist/actions/create-or-update-contact.cjs.map +1 -1
  27. package/dist/actions/create-or-update-contact.d.cts +3 -2
  28. package/dist/actions/create-or-update-contact.d.mts +3 -2
  29. package/dist/actions/create-or-update-contact.mjs +2 -2
  30. package/dist/actions/create-or-update-contact.mjs.map +1 -1
  31. package/dist/actions/create-order.cjs +3 -3
  32. package/dist/actions/create-order.cjs.map +1 -1
  33. package/dist/actions/create-order.d.cts +7 -6
  34. package/dist/actions/create-order.d.cts.map +1 -1
  35. package/dist/actions/create-order.d.mts +7 -6
  36. package/dist/actions/create-order.d.mts.map +1 -1
  37. package/dist/actions/create-order.mjs +3 -3
  38. package/dist/actions/create-order.mjs.map +1 -1
  39. package/dist/actions/create-product-category.cjs +1 -1
  40. package/dist/actions/create-product-category.cjs.map +1 -1
  41. package/dist/actions/create-product-category.d.cts +1 -1
  42. package/dist/actions/create-product-category.d.mts +1 -1
  43. package/dist/actions/create-product-category.mjs +1 -1
  44. package/dist/actions/create-product-category.mjs.map +1 -1
  45. package/dist/actions/create-product.cjs +2 -2
  46. package/dist/actions/create-product.cjs.map +1 -1
  47. package/dist/actions/create-product.d.cts +3 -2
  48. package/dist/actions/create-product.d.mts +3 -2
  49. package/dist/actions/create-product.mjs +2 -2
  50. package/dist/actions/create-product.mjs.map +1 -1
  51. package/dist/actions/delete-cart.cjs +1 -1
  52. package/dist/actions/delete-cart.cjs.map +1 -1
  53. package/dist/actions/delete-cart.d.cts +1 -1
  54. package/dist/actions/delete-cart.d.cts.map +1 -1
  55. package/dist/actions/delete-cart.d.mts +1 -1
  56. package/dist/actions/delete-cart.d.mts.map +1 -1
  57. package/dist/actions/delete-cart.mjs +1 -1
  58. package/dist/actions/delete-cart.mjs.map +1 -1
  59. package/dist/actions/delete-category.cjs +1 -1
  60. package/dist/actions/delete-category.cjs.map +1 -1
  61. package/dist/actions/delete-category.d.cts +1 -1
  62. package/dist/actions/delete-category.d.cts.map +1 -1
  63. package/dist/actions/delete-category.d.mts +1 -1
  64. package/dist/actions/delete-category.d.mts.map +1 -1
  65. package/dist/actions/delete-category.mjs +1 -1
  66. package/dist/actions/delete-category.mjs.map +1 -1
  67. package/dist/actions/delete-order.cjs +1 -1
  68. package/dist/actions/delete-order.cjs.map +1 -1
  69. package/dist/actions/delete-order.d.cts +1 -1
  70. package/dist/actions/delete-order.d.cts.map +1 -1
  71. package/dist/actions/delete-order.d.mts +1 -1
  72. package/dist/actions/delete-order.d.mts.map +1 -1
  73. package/dist/actions/delete-order.mjs +1 -1
  74. package/dist/actions/delete-order.mjs.map +1 -1
  75. package/dist/actions/delete-product-category.cjs +1 -1
  76. package/dist/actions/delete-product-category.cjs.map +1 -1
  77. package/dist/actions/delete-product-category.d.cts +1 -1
  78. package/dist/actions/delete-product-category.d.cts.map +1 -1
  79. package/dist/actions/delete-product-category.d.mts +1 -1
  80. package/dist/actions/delete-product-category.d.mts.map +1 -1
  81. package/dist/actions/delete-product-category.mjs +1 -1
  82. package/dist/actions/delete-product-category.mjs.map +1 -1
  83. package/dist/actions/delete-product.cjs +1 -1
  84. package/dist/actions/delete-product.cjs.map +1 -1
  85. package/dist/actions/delete-product.d.cts +1 -1
  86. package/dist/actions/delete-product.d.cts.map +1 -1
  87. package/dist/actions/delete-product.d.mts +1 -1
  88. package/dist/actions/delete-product.d.mts.map +1 -1
  89. package/dist/actions/delete-product.mjs +1 -1
  90. package/dist/actions/delete-product.mjs.map +1 -1
  91. package/dist/actions/get-batch-information.cjs +1 -1
  92. package/dist/actions/get-batch-information.cjs.map +1 -1
  93. package/dist/actions/get-batch-information.d.cts +1 -1
  94. package/dist/actions/get-batch-information.d.mts +1 -1
  95. package/dist/actions/get-batch-information.mjs +1 -1
  96. package/dist/actions/get-batch-information.mjs.map +1 -1
  97. package/dist/actions/get-batch-item.cjs +1 -1
  98. package/dist/actions/get-batch-item.cjs.map +1 -1
  99. package/dist/actions/get-batch-item.d.cts +1 -1
  100. package/dist/actions/get-batch-item.d.mts +1 -1
  101. package/dist/actions/get-batch-item.mjs +1 -1
  102. package/dist/actions/get-batch-item.mjs.map +1 -1
  103. package/dist/actions/get-batch-items.cjs +2 -2
  104. package/dist/actions/get-batch-items.cjs.map +1 -1
  105. package/dist/actions/get-batch-items.d.cts +2 -2
  106. package/dist/actions/get-batch-items.d.mts +2 -2
  107. package/dist/actions/get-batch-items.mjs +2 -2
  108. package/dist/actions/get-batch-items.mjs.map +1 -1
  109. package/dist/actions/get-batches.cjs +3 -3
  110. package/dist/actions/get-batches.cjs.map +1 -1
  111. package/dist/actions/get-batches.d.cts +3 -3
  112. package/dist/actions/get-batches.d.mts +3 -3
  113. package/dist/actions/get-batches.mjs +3 -3
  114. package/dist/actions/get-batches.mjs.map +1 -1
  115. package/dist/actions/get-brand.cjs +1 -1
  116. package/dist/actions/get-brand.cjs.map +1 -1
  117. package/dist/actions/get-brand.d.cts +1 -1
  118. package/dist/actions/get-brand.d.mts +1 -1
  119. package/dist/actions/get-brand.mjs +1 -1
  120. package/dist/actions/get-brand.mjs.map +1 -1
  121. package/dist/actions/get-cart.cjs +2 -2
  122. package/dist/actions/get-cart.cjs.map +1 -1
  123. package/dist/actions/get-cart.d.cts +2 -2
  124. package/dist/actions/get-cart.d.mts +2 -2
  125. package/dist/actions/get-cart.mjs +2 -2
  126. package/dist/actions/get-cart.mjs.map +1 -1
  127. package/dist/actions/get-category.cjs +1 -1
  128. package/dist/actions/get-category.cjs.map +1 -1
  129. package/dist/actions/get-category.d.cts +1 -1
  130. package/dist/actions/get-category.d.mts +1 -1
  131. package/dist/actions/get-category.mjs +1 -1
  132. package/dist/actions/get-category.mjs.map +1 -1
  133. package/dist/actions/get-contact.cjs +6 -6
  134. package/dist/actions/get-contact.cjs.map +1 -1
  135. package/dist/actions/get-contact.d.cts +6 -6
  136. package/dist/actions/get-contact.d.mts +6 -6
  137. package/dist/actions/get-contact.mjs +6 -6
  138. package/dist/actions/get-contact.mjs.map +1 -1
  139. package/dist/actions/get-order.cjs +3 -3
  140. package/dist/actions/get-order.cjs.map +1 -1
  141. package/dist/actions/get-order.d.cts +4 -4
  142. package/dist/actions/get-order.d.mts +4 -4
  143. package/dist/actions/get-order.mjs +3 -3
  144. package/dist/actions/get-order.mjs.map +1 -1
  145. package/dist/actions/get-product-category.cjs +1 -1
  146. package/dist/actions/get-product-category.cjs.map +1 -1
  147. package/dist/actions/get-product-category.d.cts +1 -1
  148. package/dist/actions/get-product-category.d.mts +1 -1
  149. package/dist/actions/get-product-category.mjs +1 -1
  150. package/dist/actions/get-product-category.mjs.map +1 -1
  151. package/dist/actions/get-product.cjs +2 -2
  152. package/dist/actions/get-product.cjs.map +1 -1
  153. package/dist/actions/get-product.d.cts +2 -2
  154. package/dist/actions/get-product.d.mts +2 -2
  155. package/dist/actions/get-product.mjs +2 -2
  156. package/dist/actions/get-product.mjs.map +1 -1
  157. package/dist/actions/list-campaigns.cjs +5 -5
  158. package/dist/actions/list-campaigns.cjs.map +1 -1
  159. package/dist/actions/list-campaigns.d.cts +5 -5
  160. package/dist/actions/list-campaigns.d.mts +5 -5
  161. package/dist/actions/list-campaigns.mjs +5 -5
  162. package/dist/actions/list-campaigns.mjs.map +1 -1
  163. package/dist/actions/list-carts.cjs +3 -3
  164. package/dist/actions/list-carts.cjs.map +1 -1
  165. package/dist/actions/list-carts.d.cts +3 -3
  166. package/dist/actions/list-carts.d.mts +3 -3
  167. package/dist/actions/list-carts.mjs +3 -3
  168. package/dist/actions/list-carts.mjs.map +1 -1
  169. package/dist/actions/list-categories.cjs +3 -3
  170. package/dist/actions/list-categories.cjs.map +1 -1
  171. package/dist/actions/list-categories.d.cts +3 -3
  172. package/dist/actions/list-categories.d.mts +3 -3
  173. package/dist/actions/list-categories.mjs +3 -3
  174. package/dist/actions/list-categories.mjs.map +1 -1
  175. package/dist/actions/list-contacts.cjs +7 -7
  176. package/dist/actions/list-contacts.cjs.map +1 -1
  177. package/dist/actions/list-contacts.d.cts +7 -7
  178. package/dist/actions/list-contacts.d.mts +7 -7
  179. package/dist/actions/list-contacts.mjs +7 -7
  180. package/dist/actions/list-contacts.mjs.map +1 -1
  181. package/dist/actions/list-events.cjs +3 -3
  182. package/dist/actions/list-events.cjs.map +1 -1
  183. package/dist/actions/list-events.d.cts +3 -3
  184. package/dist/actions/list-events.d.mts +3 -3
  185. package/dist/actions/list-events.mjs +3 -3
  186. package/dist/actions/list-events.mjs.map +1 -1
  187. package/dist/actions/list-product-categories.cjs +3 -3
  188. package/dist/actions/list-product-categories.cjs.map +1 -1
  189. package/dist/actions/list-product-categories.d.cts +3 -3
  190. package/dist/actions/list-product-categories.d.mts +3 -3
  191. package/dist/actions/list-product-categories.mjs +3 -3
  192. package/dist/actions/list-product-categories.mjs.map +1 -1
  193. package/dist/actions/list-products.cjs +4 -4
  194. package/dist/actions/list-products.cjs.map +1 -1
  195. package/dist/actions/list-products.d.cts +4 -4
  196. package/dist/actions/list-products.d.mts +4 -4
  197. package/dist/actions/list-products.mjs +4 -4
  198. package/dist/actions/list-products.mjs.map +1 -1
  199. package/dist/actions/remove-cart-product.cjs +1 -1
  200. package/dist/actions/remove-cart-product.cjs.map +1 -1
  201. package/dist/actions/remove-cart-product.d.cts +1 -1
  202. package/dist/actions/remove-cart-product.d.cts.map +1 -1
  203. package/dist/actions/remove-cart-product.d.mts +1 -1
  204. package/dist/actions/remove-cart-product.d.mts.map +1 -1
  205. package/dist/actions/remove-cart-product.mjs +1 -1
  206. package/dist/actions/remove-cart-product.mjs.map +1 -1
  207. package/dist/actions/replace-cart-product.cjs +1 -1
  208. package/dist/actions/replace-cart-product.cjs.map +1 -1
  209. package/dist/actions/replace-cart-product.d.cts +1 -1
  210. package/dist/actions/replace-cart-product.d.mts +1 -1
  211. package/dist/actions/replace-cart-product.mjs +1 -1
  212. package/dist/actions/replace-cart-product.mjs.map +1 -1
  213. package/dist/actions/replace-cart.cjs +2 -2
  214. package/dist/actions/replace-cart.cjs.map +1 -1
  215. package/dist/actions/replace-cart.d.cts +3 -2
  216. package/dist/actions/replace-cart.d.mts +3 -2
  217. package/dist/actions/replace-cart.mjs +2 -2
  218. package/dist/actions/replace-cart.mjs.map +1 -1
  219. package/dist/actions/replace-category.cjs +1 -1
  220. package/dist/actions/replace-category.cjs.map +1 -1
  221. package/dist/actions/replace-category.d.cts +1 -1
  222. package/dist/actions/replace-category.d.mts +1 -1
  223. package/dist/actions/replace-category.mjs +1 -1
  224. package/dist/actions/replace-category.mjs.map +1 -1
  225. package/dist/actions/replace-order.cjs +2 -2
  226. package/dist/actions/replace-order.cjs.map +1 -1
  227. package/dist/actions/replace-order.d.cts +3 -2
  228. package/dist/actions/replace-order.d.mts +3 -2
  229. package/dist/actions/replace-order.mjs +2 -2
  230. package/dist/actions/replace-order.mjs.map +1 -1
  231. package/dist/actions/replace-product.cjs +2 -2
  232. package/dist/actions/replace-product.cjs.map +1 -1
  233. package/dist/actions/replace-product.d.cts +3 -2
  234. package/dist/actions/replace-product.d.mts +3 -2
  235. package/dist/actions/replace-product.mjs +2 -2
  236. package/dist/actions/replace-product.mjs.map +1 -1
  237. package/dist/actions/send-event.cjs +3 -3
  238. package/dist/actions/send-event.cjs.map +1 -1
  239. package/dist/actions/send-event.d.cts +5 -5
  240. package/dist/actions/send-event.d.mts +5 -5
  241. package/dist/actions/send-event.mjs +3 -3
  242. package/dist/actions/send-event.mjs.map +1 -1
  243. package/dist/actions/update-cart-product.cjs +1 -1
  244. package/dist/actions/update-cart-product.cjs.map +1 -1
  245. package/dist/actions/update-cart-product.d.cts +1 -1
  246. package/dist/actions/update-cart-product.d.mts +1 -1
  247. package/dist/actions/update-cart-product.mjs +1 -1
  248. package/dist/actions/update-cart-product.mjs.map +1 -1
  249. package/dist/actions/update-cart.cjs +2 -2
  250. package/dist/actions/update-cart.cjs.map +1 -1
  251. package/dist/actions/update-cart.d.cts +3 -2
  252. package/dist/actions/update-cart.d.mts +3 -2
  253. package/dist/actions/update-cart.mjs +2 -2
  254. package/dist/actions/update-cart.mjs.map +1 -1
  255. package/dist/actions/update-contact.cjs +3 -3
  256. package/dist/actions/update-contact.cjs.map +1 -1
  257. package/dist/actions/update-contact.d.cts +5 -4
  258. package/dist/actions/update-contact.d.cts.map +1 -1
  259. package/dist/actions/update-contact.d.mts +5 -4
  260. package/dist/actions/update-contact.d.mts.map +1 -1
  261. package/dist/actions/update-contact.mjs +3 -3
  262. package/dist/actions/update-contact.mjs.map +1 -1
  263. package/dist/actions/update-order-status.cjs +1 -1
  264. package/dist/actions/update-order-status.cjs.map +1 -1
  265. package/dist/actions/update-order-status.d.cts +1 -1
  266. package/dist/actions/update-order-status.d.mts +1 -1
  267. package/dist/actions/update-order-status.mjs +1 -1
  268. package/dist/actions/update-order-status.mjs.map +1 -1
  269. package/dist/actions/update-product-category.cjs +1 -1
  270. package/dist/actions/update-product-category.cjs.map +1 -1
  271. package/dist/actions/update-product-category.d.cts +1 -1
  272. package/dist/actions/update-product-category.d.mts +1 -1
  273. package/dist/actions/update-product-category.mjs +1 -1
  274. package/dist/actions/update-product-category.mjs.map +1 -1
  275. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"remove-cart-product.d.mts","names":[],"sources":["../../src/actions/remove-cart-product.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAI9B,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAE/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"remove-cart-product.d.mts","names":[],"sources":["../../src/actions/remove-cart-product.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAI9B,+BAAA,EAA+B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE/B,yBAAA,gCAAyB,wBAAA"}
@@ -8,7 +8,7 @@ const omnisendRemoveCartProduct = action("OMNISEND_REMOVE_CART_PRODUCT", {
8
8
  cart_id: z.string().describe("Unique identifier of the cart."),
9
9
  cart_product_id: z.string().describe("Unique identifier of the product in the cart to remove.")
10
10
  }),
11
- output: z.object({}).describe("Empty response for successful deletion (204 No Content).")
11
+ output: z.record(z.string(), z.unknown()).describe("Empty response for successful deletion (204 No Content).")
12
12
  });
13
13
  //#endregion
14
14
  export { omnisendRemoveCartProduct };
@@ -1 +1 @@
1
- {"version":3,"file":"remove-cart-product.mjs","names":[],"sources":["../../src/actions/remove-cart-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendRemoveCartProductInput = z.object({\n cart_id: z.string().describe(\"Unique identifier of the cart.\"),\n cart_product_id: z.string().describe(\"Unique identifier of the product in the cart to remove.\"),\n});\nexport const OmnisendRemoveCartProductOutput = z.object({}).describe(\"Empty response for successful deletion (204 No Content).\");\n\nexport const omnisendRemoveCartProduct = action(\"OMNISEND_REMOVE_CART_PRODUCT\", {\n slug: \"omnisend-remove-cart-product\",\n name: \"Remove Cart Product\",\n description: \"Tool to remove a product from a cart in Omnisend. Use when you need to delete a specific product from a cart.\",\n input: OmnisendRemoveCartProductInput,\n output: OmnisendRemoveCartProductOutput,\n});\n"],"mappings":";;AAUA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAV4C,EAAE,OAAO;EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC7D,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAChG,CAOS;CACP,QAP6C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAO3D;AACV,CAAC"}
1
+ {"version":3,"file":"remove-cart-product.mjs","names":[],"sources":["../../src/actions/remove-cart-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendRemoveCartProductInput = z.object({\n cart_id: z.string().describe(\"Unique identifier of the cart.\"),\n cart_product_id: z.string().describe(\"Unique identifier of the product in the cart to remove.\"),\n});\nexport const OmnisendRemoveCartProductOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for successful deletion (204 No Content).\");\n\nexport const omnisendRemoveCartProduct = action(\"OMNISEND_REMOVE_CART_PRODUCT\", {\n slug: \"omnisend-remove-cart-product\",\n name: \"Remove Cart Product\",\n description: \"Tool to remove a product from a cart in Omnisend. Use when you need to delete a specific product from a cart.\",\n input: OmnisendRemoveCartProductInput,\n output: OmnisendRemoveCartProductOutput,\n});\n"],"mappings":";;AAUA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAV4C,EAAE,OAAO;EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC7D,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAChG,CAOS;CACP,QAP6C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAOhF;AACV,CAAC"}
@@ -22,7 +22,7 @@ const OmnisendReplaceCartProductOutput = zod.z.object({
22
22
  productID: zod.z.string().describe("Product identifier.").nullable(),
23
23
  variantID: zod.z.string().describe("Product variant identifier.").nullable(),
24
24
  cartProductID: zod.z.string().describe("Unique identifier of the product in the cart.").nullable()
25
- });
25
+ }).passthrough();
26
26
  const omnisendReplaceCartProduct = require_action.action("OMNISEND_REPLACE_CART_PRODUCT", {
27
27
  slug: "omnisend-replace-cart-product",
28
28
  name: "Replace Cart Product",
@@ -1 +1 @@
1
- {"version":3,"file":"replace-cart-product.cjs","names":["z","action"],"sources":["../../src/actions/replace-cart-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceCartProductInput = z.object({\n sku: z.string().describe(\"Stock keeping unit identifier.\").optional(),\n price: z.number().int().describe(\"Product price in cents, without commas. For example, for 1.25 USD use 125.\"),\n title: z.string().describe(\"Product title.\"),\n cartID: z.string().describe(\"Unique identifier of the cart containing the product to replace.\"),\n currency: z.string().describe(\"ISO currency code (3 characters).\"),\n discount: z.number().int().describe(\"Discount sum in cents.\").optional(),\n imageUrl: z.string().describe(\"Link to product image (must be a valid URI).\").optional(),\n oldPrice: z.number().int().describe(\"Old price in cents, without commas. For example, for 1.43 USD use 143.\").optional(),\n quantity: z.number().int().describe(\"Product quantity (only whole numbers, minimum 1).\"),\n productID: z.string().describe(\"Product identifier.\"),\n variantID: z.string().describe(\"Product modification identifier (variant ID).\"),\n productUrl: z.string().describe(\"Link to product page (must be a valid URI).\").optional(),\n description: z.string().describe(\"Product description.\").optional(),\n cartProductID: z.string().describe(\"Unique identifier of the product in the cart to replace.\"),\n});\nexport const OmnisendReplaceCartProductOutput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart.\").nullable(),\n productID: z.string().describe(\"Product identifier.\").nullable(),\n variantID: z.string().describe(\"Product variant identifier.\").nullable(),\n cartProductID: z.string().describe(\"Unique identifier of the product in the cart.\").nullable(),\n});\n\nexport const omnisendReplaceCartProduct = action(\"OMNISEND_REPLACE_CART_PRODUCT\", {\n slug: \"omnisend-replace-cart-product\",\n name: \"Replace Cart Product\",\n description: \"Tool to replace a product in a cart using Omnisend v3 API. Use when you need to update all details of a specific product in a cart.\",\n input: OmnisendReplaceCartProductInput,\n output: OmnisendReplaceCartProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E;CAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC3C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACjE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACvH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;CACvF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAClE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;AAC/F,CAAC;AACD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC/F,CAAC;AAED,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"replace-cart-product.cjs","names":["z","action"],"sources":["../../src/actions/replace-cart-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceCartProductInput = z.object({\n sku: z.string().describe(\"Stock keeping unit identifier.\").optional(),\n price: z.number().int().describe(\"Product price in cents, without commas. For example, for 1.25 USD use 125.\"),\n title: z.string().describe(\"Product title.\"),\n cartID: z.string().describe(\"Unique identifier of the cart containing the product to replace.\"),\n currency: z.string().describe(\"ISO currency code (3 characters).\"),\n discount: z.number().int().describe(\"Discount sum in cents.\").optional(),\n imageUrl: z.string().describe(\"Link to product image (must be a valid URI).\").optional(),\n oldPrice: z.number().int().describe(\"Old price in cents, without commas. For example, for 1.43 USD use 143.\").optional(),\n quantity: z.number().int().describe(\"Product quantity (only whole numbers, minimum 1).\"),\n productID: z.string().describe(\"Product identifier.\"),\n variantID: z.string().describe(\"Product modification identifier (variant ID).\"),\n productUrl: z.string().describe(\"Link to product page (must be a valid URI).\").optional(),\n description: z.string().describe(\"Product description.\").optional(),\n cartProductID: z.string().describe(\"Unique identifier of the product in the cart to replace.\"),\n});\nexport const OmnisendReplaceCartProductOutput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart.\").nullable(),\n productID: z.string().describe(\"Product identifier.\").nullable(),\n variantID: z.string().describe(\"Product variant identifier.\").nullable(),\n cartProductID: z.string().describe(\"Unique identifier of the product in the cart.\").nullable(),\n}).passthrough();\n\nexport const omnisendReplaceCartProduct = action(\"OMNISEND_REPLACE_CART_PRODUCT\", {\n slug: \"omnisend-replace-cart-product\",\n name: \"Replace Cart Product\",\n description: \"Tool to replace a product in a cart using Omnisend v3 API. Use when you need to update all details of a specific product in a cart.\",\n input: OmnisendReplaceCartProductInput,\n output: OmnisendReplaceCartProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E;CAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC3C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACjE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACvH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;CACvF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAClE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;AAC/F,CAAC;AACD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -22,7 +22,7 @@ declare const OmnisendReplaceCartProductOutput: z.ZodObject<{
22
22
  productID: z.ZodNullable<z.ZodString>;
23
23
  variantID: z.ZodNullable<z.ZodString>;
24
24
  cartProductID: z.ZodNullable<z.ZodString>;
25
- }, z.core.$strip>;
25
+ }, z.core.$loose>;
26
26
  declare const omnisendReplaceCartProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  price: number;
28
28
  title: string;
@@ -22,7 +22,7 @@ declare const OmnisendReplaceCartProductOutput: z.ZodObject<{
22
22
  productID: z.ZodNullable<z.ZodString>;
23
23
  variantID: z.ZodNullable<z.ZodString>;
24
24
  cartProductID: z.ZodNullable<z.ZodString>;
25
- }, z.core.$strip>;
25
+ }, z.core.$loose>;
26
26
  declare const omnisendReplaceCartProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  price: number;
28
28
  title: string;
@@ -25,7 +25,7 @@ const omnisendReplaceCartProduct = action("OMNISEND_REPLACE_CART_PRODUCT", {
25
25
  productID: z.string().describe("Product identifier.").nullable(),
26
26
  variantID: z.string().describe("Product variant identifier.").nullable(),
27
27
  cartProductID: z.string().describe("Unique identifier of the product in the cart.").nullable()
28
- })
28
+ }).passthrough()
29
29
  });
30
30
  //#endregion
31
31
  export { omnisendReplaceCartProduct };
@@ -1 +1 @@
1
- {"version":3,"file":"replace-cart-product.mjs","names":[],"sources":["../../src/actions/replace-cart-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceCartProductInput = z.object({\n sku: z.string().describe(\"Stock keeping unit identifier.\").optional(),\n price: z.number().int().describe(\"Product price in cents, without commas. For example, for 1.25 USD use 125.\"),\n title: z.string().describe(\"Product title.\"),\n cartID: z.string().describe(\"Unique identifier of the cart containing the product to replace.\"),\n currency: z.string().describe(\"ISO currency code (3 characters).\"),\n discount: z.number().int().describe(\"Discount sum in cents.\").optional(),\n imageUrl: z.string().describe(\"Link to product image (must be a valid URI).\").optional(),\n oldPrice: z.number().int().describe(\"Old price in cents, without commas. For example, for 1.43 USD use 143.\").optional(),\n quantity: z.number().int().describe(\"Product quantity (only whole numbers, minimum 1).\"),\n productID: z.string().describe(\"Product identifier.\"),\n variantID: z.string().describe(\"Product modification identifier (variant ID).\"),\n productUrl: z.string().describe(\"Link to product page (must be a valid URI).\").optional(),\n description: z.string().describe(\"Product description.\").optional(),\n cartProductID: z.string().describe(\"Unique identifier of the product in the cart to replace.\"),\n});\nexport const OmnisendReplaceCartProductOutput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart.\").nullable(),\n productID: z.string().describe(\"Product identifier.\").nullable(),\n variantID: z.string().describe(\"Product variant identifier.\").nullable(),\n cartProductID: z.string().describe(\"Unique identifier of the product in the cart.\").nullable(),\n});\n\nexport const omnisendReplaceCartProduct = action(\"OMNISEND_REPLACE_CART_PRODUCT\", {\n slug: \"omnisend-replace-cart-product\",\n name: \"Replace Cart Product\",\n description: \"Tool to replace a product in a cart using Omnisend v3 API. Use when you need to update all details of a specific product in a cart.\",\n input: OmnisendReplaceCartProductInput,\n output: OmnisendReplaceCartProductOutput,\n});\n"],"mappings":";;AA2BA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3B6C,EAAE,OAAO;EACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACpE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;EAC3C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EACjE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACvF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EACvH,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;EACvF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAClE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CAC/F,CAYS;CACP,QAZ8C,EAAE,OAAO;EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACvE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC/F,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"replace-cart-product.mjs","names":[],"sources":["../../src/actions/replace-cart-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceCartProductInput = z.object({\n sku: z.string().describe(\"Stock keeping unit identifier.\").optional(),\n price: z.number().int().describe(\"Product price in cents, without commas. For example, for 1.25 USD use 125.\"),\n title: z.string().describe(\"Product title.\"),\n cartID: z.string().describe(\"Unique identifier of the cart containing the product to replace.\"),\n currency: z.string().describe(\"ISO currency code (3 characters).\"),\n discount: z.number().int().describe(\"Discount sum in cents.\").optional(),\n imageUrl: z.string().describe(\"Link to product image (must be a valid URI).\").optional(),\n oldPrice: z.number().int().describe(\"Old price in cents, without commas. For example, for 1.43 USD use 143.\").optional(),\n quantity: z.number().int().describe(\"Product quantity (only whole numbers, minimum 1).\"),\n productID: z.string().describe(\"Product identifier.\"),\n variantID: z.string().describe(\"Product modification identifier (variant ID).\"),\n productUrl: z.string().describe(\"Link to product page (must be a valid URI).\").optional(),\n description: z.string().describe(\"Product description.\").optional(),\n cartProductID: z.string().describe(\"Unique identifier of the product in the cart to replace.\"),\n});\nexport const OmnisendReplaceCartProductOutput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart.\").nullable(),\n productID: z.string().describe(\"Product identifier.\").nullable(),\n variantID: z.string().describe(\"Product variant identifier.\").nullable(),\n cartProductID: z.string().describe(\"Unique identifier of the product in the cart.\").nullable(),\n}).passthrough();\n\nexport const omnisendReplaceCartProduct = action(\"OMNISEND_REPLACE_CART_PRODUCT\", {\n slug: \"omnisend-replace-cart-product\",\n name: \"Replace Cart Product\",\n description: \"Tool to replace a product in a cart using Omnisend v3 API. Use when you need to update all details of a specific product in a cart.\",\n input: OmnisendReplaceCartProductInput,\n output: OmnisendReplaceCartProductOutput,\n});\n"],"mappings":";;AA2BA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3B6C,EAAE,OAAO;EACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACpE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;EAC3C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EACjE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACvF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EACvH,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;EACvF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAClE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CAC/F,CAYS;CACP,QAZ8C,EAAE,OAAO;EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACvE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -17,12 +17,12 @@ const OmnisendReplaceCartInput = zod.z.object({
17
17
  productUrl: zod.z.string().describe("URL to the product page").optional(),
18
18
  description: zod.z.string().describe("Description of the product").optional(),
19
19
  cartProductID: zod.z.string().describe("Unique identifier for this product within the cart")
20
- })).describe("List of products in the cart"),
20
+ }).passthrough()).describe("List of products in the cart"),
21
21
  createdAt: zod.z.string().describe("ISO 8601 timestamp when the cart was created").optional(),
22
22
  updatedAt: zod.z.string().describe("ISO 8601 timestamp when the cart was last updated").optional(),
23
23
  cartRecoveryUrl: zod.z.string().describe("URL to restore the cart, used for abandoned cart recovery").optional()
24
24
  });
25
- const OmnisendReplaceCartOutput = zod.z.object({ cartID: zod.z.string().describe("Unique identifier of the replaced cart").nullable() });
25
+ const OmnisendReplaceCartOutput = zod.z.object({ cartID: zod.z.string().describe("Unique identifier of the replaced cart").nullable() }).passthrough();
26
26
  const omnisendReplaceCart = require_action.action("OMNISEND_REPLACE_CART", {
27
27
  slug: "omnisend-replace-cart",
28
28
  name: "Replace Cart",
@@ -1 +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.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.object({\n cartID: z.string().describe(\"Unique identifier of the replaced cart\").nullable(),\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: OmnisendReplaceCartO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,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;AAC7G,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,EACjF,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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.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}).passthrough()).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.object({\n cartID: z.string().describe(\"Unique identifier of the replaced cart\").nullable(),\n}).passthrough();\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,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACzF,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D;EAChG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EACzD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;EAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EACjE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EACpE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACxE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,8BAA8B;CACvD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;AAC7G,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,EACjF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -17,19 +17,20 @@ declare const OmnisendReplaceCartInput: z.ZodObject<{
17
17
  productUrl: z.ZodOptional<z.ZodString>;
18
18
  description: z.ZodOptional<z.ZodString>;
19
19
  cartProductID: z.ZodString;
20
- }, z.core.$strip>>;
20
+ }, z.core.$loose>>;
21
21
  createdAt: z.ZodOptional<z.ZodString>;
22
22
  updatedAt: z.ZodOptional<z.ZodString>;
23
23
  cartRecoveryUrl: z.ZodOptional<z.ZodString>;
24
24
  }, z.core.$strip>;
25
25
  declare const OmnisendReplaceCartOutput: z.ZodObject<{
26
26
  cartID: z.ZodNullable<z.ZodString>;
27
- }, z.core.$strip>;
27
+ }, z.core.$loose>;
28
28
  declare const omnisendReplaceCart: import("@keystrokehq/action").WorkflowActionDefinition<{
29
29
  cartID: string;
30
30
  cartSum: number;
31
31
  currency: string;
32
32
  products: {
33
+ [x: string]: unknown;
33
34
  price: number;
34
35
  title: string;
35
36
  quantity: number;
@@ -17,19 +17,20 @@ declare const OmnisendReplaceCartInput: z.ZodObject<{
17
17
  productUrl: z.ZodOptional<z.ZodString>;
18
18
  description: z.ZodOptional<z.ZodString>;
19
19
  cartProductID: z.ZodString;
20
- }, z.core.$strip>>;
20
+ }, z.core.$loose>>;
21
21
  createdAt: z.ZodOptional<z.ZodString>;
22
22
  updatedAt: z.ZodOptional<z.ZodString>;
23
23
  cartRecoveryUrl: z.ZodOptional<z.ZodString>;
24
24
  }, z.core.$strip>;
25
25
  declare const OmnisendReplaceCartOutput: z.ZodObject<{
26
26
  cartID: z.ZodNullable<z.ZodString>;
27
- }, z.core.$strip>;
27
+ }, z.core.$loose>;
28
28
  declare const omnisendReplaceCart: import("@keystrokehq/action").WorkflowActionDefinition<{
29
29
  cartID: string;
30
30
  cartSum: number;
31
31
  currency: string;
32
32
  products: {
33
+ [x: string]: unknown;
33
34
  price: number;
34
35
  title: string;
35
36
  quantity: number;
@@ -20,12 +20,12 @@ const omnisendReplaceCart = action("OMNISEND_REPLACE_CART", {
20
20
  productUrl: z.string().describe("URL to the product page").optional(),
21
21
  description: z.string().describe("Description of the product").optional(),
22
22
  cartProductID: z.string().describe("Unique identifier for this product within the cart")
23
- })).describe("List of products in the cart"),
23
+ }).passthrough()).describe("List of products in the cart"),
24
24
  createdAt: z.string().describe("ISO 8601 timestamp when the cart was created").optional(),
25
25
  updatedAt: z.string().describe("ISO 8601 timestamp when the cart was last updated").optional(),
26
26
  cartRecoveryUrl: z.string().describe("URL to restore the cart, used for abandoned cart recovery").optional()
27
27
  }),
28
- output: z.object({ cartID: z.string().describe("Unique identifier of the replaced cart").nullable() })
28
+ output: z.object({ cartID: z.string().describe("Unique identifier of the replaced cart").nullable() }).passthrough()
29
29
  });
30
30
  //#endregion
31
31
  export { omnisendReplaceCart };
@@ -1 +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.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.object({\n cartID: z.string().describe(\"Unique identifier of the replaced cart\").nullable(),\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"],"mapp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OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC7G,CASS;CACP,QATuC,EAAE,OAAO,EAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,EACjF,CAOU;AACV,CAAC"}
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.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}).passthrough()).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.object({\n cartID: z.string().describe(\"Unique identifier of the replaced cart\").nullable(),\n}).passthrough();\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,OA7BsC,EAAE,OAAO;EAC/C,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,YAAY,CAAC,CAAC,CAAC,SAAS,8BAA8B;EACvD,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,QATuC,EAAE,OAAO,EAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,EACjF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -5,7 +5,7 @@ const OmnisendReplaceCategoryInput = zod.z.object({
5
5
  title: zod.z.string().describe("New title for the category"),
6
6
  categoryID: zod.z.string().describe("Unique identifier of the category to replace")
7
7
  });
8
- const OmnisendReplaceCategoryOutput = zod.z.object({ categoryID: zod.z.string().describe("Unique identifier of the replaced category").nullable().optional() });
8
+ const OmnisendReplaceCategoryOutput = zod.z.object({ categoryID: zod.z.string().describe("Unique identifier of the replaced category").nullable().optional() }).passthrough();
9
9
  const omnisendReplaceCategory = require_action.action("OMNISEND_REPLACE_CATEGORY", {
10
10
  slug: "omnisend-replace-category",
11
11
  name: "Replace Category",
@@ -1 +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.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.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,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACvD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AAChF,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,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"}
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.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.object({\n categoryID: z.string().describe(\"Unique identifier of the replaced category\").nullable().optional(),\n}).passthrough();\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,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACvD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AAChF,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -7,7 +7,7 @@ declare const OmnisendReplaceCategoryInput: z.ZodObject<{
7
7
  }, z.core.$strip>;
8
8
  declare const OmnisendReplaceCategoryOutput: z.ZodObject<{
9
9
  categoryID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const omnisendReplaceCategory: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  title: string;
13
13
  categoryID: string;
@@ -7,7 +7,7 @@ declare const OmnisendReplaceCategoryInput: z.ZodObject<{
7
7
  }, z.core.$strip>;
8
8
  declare const OmnisendReplaceCategoryOutput: z.ZodObject<{
9
9
  categoryID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const omnisendReplaceCategory: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  title: string;
13
13
  categoryID: string;
@@ -8,7 +8,7 @@ const omnisendReplaceCategory = action("OMNISEND_REPLACE_CATEGORY", {
8
8
  title: z.string().describe("New title for the category"),
9
9
  categoryID: z.string().describe("Unique identifier of the category to replace")
10
10
  }),
11
- output: z.object({ categoryID: z.string().describe("Unique identifier of the replaced category").nullable().optional() })
11
+ output: z.object({ categoryID: z.string().describe("Unique identifier of the replaced category").nullable().optional() }).passthrough()
12
12
  });
13
13
  //#endregion
14
14
  export { omnisendReplaceCategory };
@@ -1 +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.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.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,OAZ0C,EAAE,OAAO;EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EACvD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAChF,CASS;CACP,QAT2C,EAAE,OAAO,EACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpG,CAOU;AACV,CAAC"}
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.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.object({\n categoryID: z.string().describe(\"Unique identifier of the replaced category\").nullable().optional(),\n}).passthrough();\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,OAZ0C,EAAE,OAAO;EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EACvD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAChF,CASS;CACP,QAT2C,EAAE,OAAO,EACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -20,7 +20,7 @@ const OmnisendReplaceOrderInput = zod.z.object({
20
20
  productID: zod.z.string().describe("Unique identifier of the product"),
21
21
  variantID: zod.z.string().describe("Product variant identifier (required by API)"),
22
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(),
23
+ }).passthrough().describe("Product information for order line items.")).describe("List of products in the order").optional(),
24
24
  createdAt: zod.z.string().describe("ISO 8601 timestamp when the order was created"),
25
25
  updatedAt: zod.z.string().describe("ISO 8601 timestamp when the order was last updated").optional(),
26
26
  courierUrl: zod.z.string().describe("URL for courier tracking").optional(),
@@ -70,7 +70,7 @@ const OmnisendReplaceOrderOutput = zod.z.object({
70
70
  email: zod.z.string().describe("Email address associated with the order").nullable().optional(),
71
71
  phone: zod.z.string().describe("Phone number associated with the order").nullable().optional(),
72
72
  orderID: zod.z.string().describe("Unique identifier of the replaced order").nullable()
73
- });
73
+ }).passthrough();
74
74
  const omnisendReplaceOrder = require_action.action("OMNISEND_REPLACE_ORDER", {
75
75
  slug: "omnisend-replace-order",
76
76
  name: "Replace Order",
@@ -1 +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.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.object({\n email: z.string().describe(\"Email address associated with the order\").nullable().optional(),\n phone: z.string().describe(\"Phone number associated with the order\").nullable().optional(),\n orderID: z.string().describe(\"Unique identifier of the replaced order\").nullable(),\n});\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,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,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,CAAC,SAAS,gEAAgE;CACpG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACxG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAA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EAA8E,CAAC,CAAC,SAAS;CAChI,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACtF,CAAC;AACD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,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,CAAC,CAAC,SAAS;AACnF,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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.object({\n tags: z.array(z.string()).describe(\"Tags associated with the order\").optional(),\n cartID: z.string().describe(\"Identifier of the cart that led to this order\").optional(),\n source: z.string().describe(\"Source of the order (e.g., 'web', 'mobile')\").optional(),\n taxSum: z.number().int().describe(\"Total tax amount in smallest currency unit\").optional(),\n orderID: z.string().describe(\"Unique identifier of the order to replace\"),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., 'USD', 'EUR')\"),\n orderSum: z.number().int().describe(\"Total order amount in the smallest currency unit (e.g., cents)\"),\n orderUrl: z.string().describe(\"URL to view the order\").optional(),\n products: z.array(z.object({\n sku: z.string().describe(\"Stock keeping unit code\").optional(),\n price: z.number().int().describe(\"Price per unit in the smallest currency unit (e.g., cents)\").optional(),\n title: z.string().describe(\"Product title\").optional(),\n discount: z.number().int().describe(\"Discount amount in the smallest currency unit (e.g., cents)\").optional(),\n imageUrl: z.string().describe(\"URL of the product image\").optional(),\n quantity: z.number().int().describe(\"Quantity of this product in the order\").optional(),\n productID: z.string().describe(\"Unique identifier of the product\"),\n variantID: z.string().describe(\"Product variant identifier (required by API)\"),\n productUrl: z.string().describe(\"URL of the product page\").optional(),\n}).passthrough().describe(\"Product information for order line items.\")).describe(\"List of products in the order\").optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the order was created\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the order was last updated\").optional(),\n courierUrl: z.string().describe(\"URL for courier tracking\").optional(),\n contactNote: z.string().describe(\"Notes about the customer\").optional(),\n discountSum: z.number().int().describe(\"Total discount amount in smallest currency unit\").optional(),\n orderNumber: z.number().int().describe(\"Human-readable order number\").optional(),\n shippingSum: z.number().int().describe(\"Shipping cost in smallest currency unit\").optional(),\n subTotalSum: z.number().int().describe(\"Subtotal before taxes and shipping in smallest currency unit\").optional(),\n cancelReason: z.string().describe(\"Reason for order cancellation if applicable\").optional(),\n canceledDate: z.string().describe(\"ISO 8601 timestamp when the order was canceled\").optional(),\n courierTitle: z.string().describe(\"Name of the shipping courier\").optional(),\n discountCode: z.string().describe(\"Discount or coupon code applied\").optional(),\n discountType: z.string().describe(\"Type of discount (e.g., 'percentage', 'fixed')\").optional(),\n trackingCode: z.string().describe(\"Shipment tracking code\").optional(),\n discountValue: z.number().int().describe(\"Discount value (percentage or fixed amount)\").optional(),\n paymentMethod: z.string().describe(\"Payment method used (e.g., 'credit_card', 'paypal')\").optional(),\n paymentStatus: z.string().describe(\"Payment status. Available values: awaitingPayment, partiallyPaid, paid, partiallyRefunded, refunded, voided\").optional(),\n billingAddress: z.object({\n city: z.string().describe(\"City name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n lastName: z.string().describe(\"Last name of the billing contact\").optional(),\n firstName: z.string().describe(\"First name of the billing contact\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n}).describe(\"Billing address information for the order.\").optional(),\n shippingMethod: z.string().describe(\"Shipping method used\").optional(),\n shippingAddress: z.object({\n city: z.string().describe(\"City name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n lastName: z.string().describe(\"Last name of the shipping contact\").optional(),\n firstName: z.string().describe(\"First name of the shipping contact\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n}).describe(\"Shipping address information for the order.\").optional(),\n fulfillmentStatus: z.string().describe(\"Fulfillment status (e.g., 'fulfilled', 'unfulfilled', 'partially_fulfilled')\").optional(),\n subTotalTaxIncluded: z.boolean().describe(\"Whether subtotal includes tax\").optional(),\n});\nexport const OmnisendReplaceOrderOutput = z.object({\n email: z.string().describe(\"Email address associated with the order\").nullable().optional(),\n phone: z.string().describe(\"Phone number associated with the order\").nullable().optional(),\n orderID: z.string().describe(\"Unique identifier of the replaced order\").nullable(),\n}).passthrough();\n\nexport const omnisendReplaceOrder = action(\"OMNISEND_REPLACE_ORDER\", {\n slug: \"omnisend-replace-order\",\n name: \"Replace Order\",\n description: \"Tool to completely replace an existing order in Omnisend. Use when you need to update all order details at once, replacing the entire order record.\",\n input: OmnisendReplaceOrderInput,\n output: OmnisendReplaceOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+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zF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -20,7 +20,7 @@ declare const OmnisendReplaceOrderInput: z.ZodObject<{
20
20
  productID: z.ZodString;
21
21
  variantID: z.ZodString;
22
22
  productUrl: z.ZodOptional<z.ZodString>;
23
- }, z.core.$strip>>>;
23
+ }, z.core.$loose>>>;
24
24
  createdAt: z.ZodString;
25
25
  updatedAt: z.ZodOptional<z.ZodString>;
26
26
  courierUrl: z.ZodOptional<z.ZodString>;
@@ -70,7 +70,7 @@ declare const OmnisendReplaceOrderOutput: z.ZodObject<{
70
70
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
71
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
72
  orderID: z.ZodNullable<z.ZodString>;
73
- }, z.core.$strip>;
73
+ }, z.core.$loose>;
74
74
  declare const omnisendReplaceOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
75
75
  orderID: string;
76
76
  currency: string;
@@ -82,6 +82,7 @@ declare const omnisendReplaceOrder: import("@keystrokehq/action").WorkflowAction
82
82
  taxSum?: number | undefined;
83
83
  orderUrl?: string | undefined;
84
84
  products?: {
85
+ [x: string]: unknown;
85
86
  productID: string;
86
87
  variantID: string;
87
88
  sku?: string | undefined;
@@ -20,7 +20,7 @@ declare const OmnisendReplaceOrderInput: z.ZodObject<{
20
20
  productID: z.ZodString;
21
21
  variantID: z.ZodString;
22
22
  productUrl: z.ZodOptional<z.ZodString>;
23
- }, z.core.$strip>>>;
23
+ }, z.core.$loose>>>;
24
24
  createdAt: z.ZodString;
25
25
  updatedAt: z.ZodOptional<z.ZodString>;
26
26
  courierUrl: z.ZodOptional<z.ZodString>;
@@ -70,7 +70,7 @@ declare const OmnisendReplaceOrderOutput: z.ZodObject<{
70
70
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
71
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
72
  orderID: z.ZodNullable<z.ZodString>;
73
- }, z.core.$strip>;
73
+ }, z.core.$loose>;
74
74
  declare const omnisendReplaceOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
75
75
  orderID: string;
76
76
  currency: string;
@@ -82,6 +82,7 @@ declare const omnisendReplaceOrder: import("@keystrokehq/action").WorkflowAction
82
82
  taxSum?: number | undefined;
83
83
  orderUrl?: string | undefined;
84
84
  products?: {
85
+ [x: string]: unknown;
85
86
  productID: string;
86
87
  variantID: string;
87
88
  sku?: string | undefined;
@@ -23,7 +23,7 @@ const omnisendReplaceOrder = action("OMNISEND_REPLACE_ORDER", {
23
23
  productID: z.string().describe("Unique identifier of the product"),
24
24
  variantID: z.string().describe("Product variant identifier (required by API)"),
25
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(),
26
+ }).passthrough().describe("Product information for order line items.")).describe("List of products in the order").optional(),
27
27
  createdAt: z.string().describe("ISO 8601 timestamp when the order was created"),
28
28
  updatedAt: z.string().describe("ISO 8601 timestamp when the order was last updated").optional(),
29
29
  courierUrl: z.string().describe("URL for courier tracking").optional(),
@@ -73,7 +73,7 @@ const omnisendReplaceOrder = action("OMNISEND_REPLACE_ORDER", {
73
73
  email: z.string().describe("Email address associated with the order").nullable().optional(),
74
74
  phone: z.string().describe("Phone number associated with the order").nullable().optional(),
75
75
  orderID: z.string().describe("Unique identifier of the replaced order").nullable()
76
- })
76
+ }).passthrough()
77
77
  });
78
78
  //#endregion
79
79
  export { omnisendReplaceOrder };
@@ -1 +1 @@
1
- {"version":3,"file":"replace-order.mjs","names":[],"sources":["../../src/actions/replace-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceOrderInput = z.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.object({\n email: z.string().describe(\"Email address associated with the order\").nullable().optional(),\n phone: z.string().describe(\"Phone number associated with the order\").nullable().optional(),\n orderID: z.string().describe(\"Unique identifier of the replaced order\").nullable(),\n});\n\nexport const omnisendReplaceOrder = action(\"OMNISEND_REPLACE_ORDER\", {\n slug: \"omnisend-replace-order\",\n name: \"Replace Order\",\n description: \"Tool to completely replace an existing order in Omnisend. Use when you need to update all order details at once, replacing the entire order record.\",\n input: OmnisendReplaceOrderInput,\n output: OmnisendReplaceOrderOutput,\n});\n"],"mappings":";;AA2EA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3EuC,EAAE,OAAO;EAChD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,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,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE;EACpG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAChE,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;GAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;GACxG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,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SAAS,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"replace-order.mjs","names":[],"sources":["../../src/actions/replace-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceOrderInput = z.object({\n tags: z.array(z.string()).describe(\"Tags associated with the order\").optional(),\n cartID: z.string().describe(\"Identifier of the cart that led to this order\").optional(),\n source: z.string().describe(\"Source of the order (e.g., 'web', 'mobile')\").optional(),\n taxSum: z.number().int().describe(\"Total tax amount in smallest currency unit\").optional(),\n orderID: z.string().describe(\"Unique identifier of the order to replace\"),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., 'USD', 'EUR')\"),\n orderSum: z.number().int().describe(\"Total order amount in the smallest currency unit (e.g., cents)\"),\n orderUrl: z.string().describe(\"URL to view the order\").optional(),\n products: z.array(z.object({\n sku: z.string().describe(\"Stock keeping unit code\").optional(),\n price: z.number().int().describe(\"Price per unit in the smallest currency unit (e.g., cents)\").optional(),\n title: z.string().describe(\"Product title\").optional(),\n discount: z.number().int().describe(\"Discount amount in the smallest currency unit (e.g., cents)\").optional(),\n imageUrl: z.string().describe(\"URL of the product image\").optional(),\n quantity: z.number().int().describe(\"Quantity of this product in the order\").optional(),\n productID: z.string().describe(\"Unique identifier of the product\"),\n variantID: z.string().describe(\"Product variant identifier (required by API)\"),\n productUrl: z.string().describe(\"URL of the product page\").optional(),\n}).passthrough().describe(\"Product information for order line items.\")).describe(\"List of products in the order\").optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the order was created\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the order was last updated\").optional(),\n courierUrl: z.string().describe(\"URL for courier tracking\").optional(),\n contactNote: z.string().describe(\"Notes about the customer\").optional(),\n discountSum: z.number().int().describe(\"Total discount amount in smallest currency unit\").optional(),\n orderNumber: z.number().int().describe(\"Human-readable order number\").optional(),\n shippingSum: z.number().int().describe(\"Shipping cost in smallest currency unit\").optional(),\n subTotalSum: z.number().int().describe(\"Subtotal before taxes and shipping in smallest currency unit\").optional(),\n cancelReason: z.string().describe(\"Reason for order cancellation if applicable\").optional(),\n canceledDate: z.string().describe(\"ISO 8601 timestamp when the order was canceled\").optional(),\n courierTitle: z.string().describe(\"Name of the shipping courier\").optional(),\n discountCode: z.string().describe(\"Discount or coupon code applied\").optional(),\n discountType: z.string().describe(\"Type of discount (e.g., 'percentage', 'fixed')\").optional(),\n trackingCode: z.string().describe(\"Shipment tracking code\").optional(),\n discountValue: z.number().int().describe(\"Discount value (percentage or fixed amount)\").optional(),\n paymentMethod: z.string().describe(\"Payment method used (e.g., 'credit_card', 'paypal')\").optional(),\n paymentStatus: z.string().describe(\"Payment status. Available values: awaitingPayment, partiallyPaid, paid, partiallyRefunded, refunded, voided\").optional(),\n billingAddress: z.object({\n city: z.string().describe(\"City name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n lastName: z.string().describe(\"Last name of the billing contact\").optional(),\n firstName: z.string().describe(\"First name of the billing contact\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n}).describe(\"Billing address information for the order.\").optional(),\n shippingMethod: z.string().describe(\"Shipping method used\").optional(),\n shippingAddress: z.object({\n city: z.string().describe(\"City name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n lastName: z.string().describe(\"Last name of the shipping contact\").optional(),\n firstName: z.string().describe(\"First name of the shipping contact\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n}).describe(\"Shipping address information for the order.\").optional(),\n fulfillmentStatus: z.string().describe(\"Fulfillment status (e.g., 'fulfilled', 'unfulfilled', 'partially_fulfilled')\").optional(),\n subTotalTaxIncluded: z.boolean().describe(\"Whether subtotal includes tax\").optional(),\n});\nexport const OmnisendReplaceOrderOutput = z.object({\n email: z.string().describe(\"Email address associated with the order\").nullable().optional(),\n phone: z.string().describe(\"Phone number associated with the order\").nullable().optional(),\n orderID: z.string().describe(\"Unique identifier of the replaced order\").nullable(),\n}).passthrough();\n\nexport const omnisendReplaceOrder = action(\"OMNISEND_REPLACE_ORDER\", {\n slug: \"omnisend-replace-order\",\n name: \"Replace Order\",\n description: \"Tool to completely replace an existing order in Omnisend. Use when you need to update all order details at once, replacing the entire order record.\",\n input: OmnisendReplaceOrderInput,\n output: OmnisendReplaceOrderOutput,\n});\n"],"mappings":";;AA2EA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3EuC,EAAE,OAAO;EAChD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,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,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE;EACpG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CA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8E,CAAC,CAAC,SAAS;EAChI,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACtF,CAWS;CACP,QAXwC,EAAE,OAAO;EACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -30,7 +30,7 @@ const OmnisendReplaceProductInput = zod.z.object({
30
30
  description: zod.z.string().describe("Description of the variant").optional(),
31
31
  defaultImageUrl: zod.z.string().describe("Primary image URL for this variant").optional(),
32
32
  strikeThroughPrice: zod.z.number().describe("Original price before discount").optional()
33
- })).describe("Product variants (different versions like sizes/colors). At least one variant required"),
33
+ }).passthrough()).describe("Product variants (different versions like sizes/colors). At least one variant required"),
34
34
  createdAt: zod.z.string().describe("Creation timestamp in ISO 8601 format").optional(),
35
35
  updatedAt: zod.z.string().describe("Last update timestamp in ISO 8601 format").optional(),
36
36
  product_id: zod.z.string().describe("Unique identifier of the product to replace. Must match the product ID in the request body"),
@@ -38,7 +38,7 @@ const OmnisendReplaceProductInput = zod.z.object({
38
38
  description: zod.z.string().describe("Short description of the product for email body usage").optional(),
39
39
  defaultImageUrl: zod.z.string().describe("Primary image URL. Recommended if you need more than one image - additional images go in the images array").optional()
40
40
  });
41
- const OmnisendReplaceProductOutput = zod.z.object({ id: zod.z.string().describe("Product identifier that was replaced").nullable() });
41
+ const OmnisendReplaceProductOutput = zod.z.object({ id: zod.z.string().describe("Product identifier that was replaced").nullable() }).passthrough();
42
42
  const omnisendReplaceProduct = require_action.action("OMNISEND_REPLACE_PRODUCT", {
43
43
  slug: "omnisend-replace-product",
44
44
  name: "Replace Product",
@@ -1 +1 @@
1
- {"version":3,"file":"replace-product.cjs","names":["z","action"],"sources":["../../src/actions/replace-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceProductInput = z.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.object({\n id: z.string().describe(\"Product identifier that was replaced\").nullable(),\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,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,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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AC,CAAC,SAAS;AAC7J,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EAC3E,CAAC;AAED,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"replace-product.cjs","names":["z","action"],"sources":["../../src/actions/replace-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceProductInput = z.object({\n id: z.string().describe(\"Product ID - must match the product_id path parameter\"),\n url: z.string().describe(\"URL pointing to the product page on your website\"),\n tags: z.array(z.string()).describe(\"Tags for product categorization (max 100 items)\").optional(),\n type: z.string().describe(\"Product type for categorization purposes\").optional(),\n title: z.string().describe(\"Product title\"),\n images: z.array(z.string()).describe(\"Additional product image URLs (max 300 items)\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).describe(\"Product stock status. Keep in sync with your shop to avoid sending out-of-stock products\"),\n vendor: z.string().describe(\"Manufacturer or brand of the product\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR, GBP)\"),\n variants: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the variant\"),\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n url: z.string().describe(\"URL pointing to the variant's product page\"),\n price: z.number().describe(\"Price of the variant\"),\n title: z.string().describe(\"Title of the variant\"),\n images: z.array(z.string()).describe(\"Additional image URLs for the variant (max 300 items)\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).default(\"inStock\").describe(\"Stock status of the variant. Options: inStock, outOfStock, notAvailable\").optional(),\n description: z.string().describe(\"Description of the variant\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL for this variant\").optional(),\n strikeThroughPrice: z.number().describe(\"Original price before discount\").optional(),\n}).passthrough()).describe(\"Product variants (different versions like sizes/colors). At least one variant required\"),\n createdAt: z.string().describe(\"Creation timestamp in ISO 8601 format\").optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO 8601 format\").optional(),\n product_id: z.string().describe(\"Unique identifier of the product to replace. Must match the product ID in the request body\"),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs the product belongs to (max 100 items)\").optional(),\n description: z.string().describe(\"Short description of the product for email body usage\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL. Recommended if you need more than one image - additional images go in the images array\").optional(),\n});\nexport const OmnisendReplaceProductOutput = z.object({\n id: z.string().describe(\"Product identifier that was replaced\").nullable(),\n}).passthrough();\n\nexport const omnisendReplaceProduct = action(\"OMNISEND_REPLACE_PRODUCT\", {\n slug: \"omnisend-replace-product\",\n name: \"Replace Product\",\n description: \"Tool to replace an existing product in the Omnisend catalog. Use when you need to completely replace all product data with new information.\",\n input: OmnisendReplaceProductInput,\n output: OmnisendReplaceProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CAC/E,KAAKA,IAAAA,EAAE,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,S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AAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;CAC5H,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACnG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;AAC7J,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EAC3E,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -30,7 +30,7 @@ declare const OmnisendReplaceProductInput: z.ZodObject<{
30
30
  description: z.ZodOptional<z.ZodString>;
31
31
  defaultImageUrl: z.ZodOptional<z.ZodString>;
32
32
  strikeThroughPrice: z.ZodOptional<z.ZodNumber>;
33
- }, z.core.$strip>>;
33
+ }, z.core.$loose>>;
34
34
  createdAt: z.ZodOptional<z.ZodString>;
35
35
  updatedAt: z.ZodOptional<z.ZodString>;
36
36
  product_id: z.ZodString;
@@ -40,7 +40,7 @@ declare const OmnisendReplaceProductInput: z.ZodObject<{
40
40
  }, z.core.$strip>;
41
41
  declare const OmnisendReplaceProductOutput: z.ZodObject<{
42
42
  id: z.ZodNullable<z.ZodString>;
43
- }, z.core.$strip>;
43
+ }, z.core.$loose>;
44
44
  declare const omnisendReplaceProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
45
45
  id: string;
46
46
  url: string;
@@ -48,6 +48,7 @@ declare const omnisendReplaceProduct: import("@keystrokehq/action").WorkflowActi
48
48
  status: "inStock" | "outOfStock" | "notAvailable";
49
49
  currency: string;
50
50
  variants: {
51
+ [x: string]: unknown;
51
52
  id: string;
52
53
  url: string;
53
54
  price: number;
@@ -30,7 +30,7 @@ declare const OmnisendReplaceProductInput: z.ZodObject<{
30
30
  description: z.ZodOptional<z.ZodString>;
31
31
  defaultImageUrl: z.ZodOptional<z.ZodString>;
32
32
  strikeThroughPrice: z.ZodOptional<z.ZodNumber>;
33
- }, z.core.$strip>>;
33
+ }, z.core.$loose>>;
34
34
  createdAt: z.ZodOptional<z.ZodString>;
35
35
  updatedAt: z.ZodOptional<z.ZodString>;
36
36
  product_id: z.ZodString;
@@ -40,7 +40,7 @@ declare const OmnisendReplaceProductInput: z.ZodObject<{
40
40
  }, z.core.$strip>;
41
41
  declare const OmnisendReplaceProductOutput: z.ZodObject<{
42
42
  id: z.ZodNullable<z.ZodString>;
43
- }, z.core.$strip>;
43
+ }, z.core.$loose>;
44
44
  declare const omnisendReplaceProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
45
45
  id: string;
46
46
  url: string;
@@ -48,6 +48,7 @@ declare const omnisendReplaceProduct: import("@keystrokehq/action").WorkflowActi
48
48
  status: "inStock" | "outOfStock" | "notAvailable";
49
49
  currency: string;
50
50
  variants: {
51
+ [x: string]: unknown;
51
52
  id: string;
52
53
  url: string;
53
54
  price: number;