@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":"update-contact.mjs","names":[],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateContactInput = z.object({\n body: z.object({\n city: z.string().describe(\"City of the contact\").optional(),\n tags: z.array(z.string()).describe(\"Tags to associate with the contact\").optional(),\n state: z.string().describe(\"State of the contact\").optional(),\n gender: z.enum([\"m\", \"f\"]).describe(\"Gender of the contact ('m' for male, 'f' for female)\").optional(),\n source: z.string().describe(\"Source of the contact\").optional(),\n address: z.string().describe(\"Street address of the contact\").optional(),\n country: z.string().describe(\"Country of the contact\").optional(),\n lastName: z.string().describe(\"Last name of the contact\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format\").optional(),\n createdAt: z.string().describe(\"ISO 8601 creation date of the contact\").optional(),\n firstName: z.string().describe(\"First name of the contact\").optional(),\n postalCode: z.string().describe(\"Postal code of the contact\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n identifiers: z.array(z.object({\n id: z.string().describe(\"Identifier value (e.g., email address, phone number)\"),\n type: z.string().describe(\"Type of identifier (e.g., 'email', 'phone')\"),\n consent: z.object({\n ip: z.string().describe(\"IP address from which consent was given\").optional(),\n source: z.string().describe(\"Source of consent\").optional(),\n createdAt: z.string().describe(\"ISO 8601 date when consent was given\").optional(),\n userAgent: z.string().describe(\"User agent string when consent was given\").optional(),\n}).describe(\"Contact consent information\").optional(),\n channels: z.object({\n sms: z.object({\n status: z.string().describe(\"SMS subscription status (e.g., 'subscribed')\").optional(),\n statusDate: z.string().describe(\"ISO 8601 date of SMS status change\").optional(),\n}).describe(\"SMS channel subscription settings\").optional(),\n email: z.object({\n status: z.string().describe(\"Subscription status (e.g., 'subscribed')\").optional(),\n statusDate: z.string().describe(\"ISO 8601 date of status change\").optional(),\n}).describe(\"Email channel subscription settings\").optional(),\n}).describe(\"Channel-specific subscription settings\").optional(),\n})).describe(\"List of identifiers to associate with the contact\").optional(),\n customProperties: z.object({}).describe(\"Custom properties as key-value pairs\").optional(),\n}).describe(\"Fields to update on the contact\"),\n contactId: z.string().describe(\"Unique identifier of the contact to update\"),\n});\nexport const OmnisendUpdateContactOutput = z.object({\n email: z.string().describe(\"Email address of the updated contact\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the updated contact\").nullable().optional(),\n lastName: z.string().describe(\"Last name of the updated contact\").nullable().optional(),\n contactID: z.string().describe(\"Unique identifier of the updated contact\").nullable(),\n firstName: z.string().describe(\"First name of the updated contact\").nullable().optional(),\n});\n\nexport const omnisendUpdateContact = action(\"OMNISEND_UPDATE_CONTACT\", {\n slug: \"omnisend-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to update fields of an existing contact by ID. Use after retrieving contact ID. PATCH https://api.omnisend.com/v3/contacts/{contactId} Example: UpdateContact(contactId=\\\"..., body={firstName: 'John'})\",\n input: OmnisendUpdateContactInput,\n output: OmnisendUpdateContactOutput,\n});\n"],"mappings":";;AAmDA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnDwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;GAC1D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;GAClF,OAA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S,CAAC,CAAC,SAAS;CAC1F,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"update-contact.mjs","names":[],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateContactInput = z.object({\n body: z.object({\n city: z.string().describe(\"City of the contact\").optional(),\n tags: z.array(z.string()).describe(\"Tags to associate with the contact\").optional(),\n state: z.string().describe(\"State of the contact\").optional(),\n gender: z.enum([\"m\", \"f\"]).describe(\"Gender of the contact ('m' for male, 'f' for female)\").optional(),\n source: z.string().describe(\"Source of the contact\").optional(),\n address: z.string().describe(\"Street address of the contact\").optional(),\n country: z.string().describe(\"Country of the contact\").optional(),\n lastName: z.string().describe(\"Last name of the contact\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format\").optional(),\n createdAt: z.string().describe(\"ISO 8601 creation date of the contact\").optional(),\n firstName: z.string().describe(\"First name of the contact\").optional(),\n postalCode: z.string().describe(\"Postal code of the contact\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n identifiers: z.array(z.object({\n id: z.string().describe(\"Identifier value (e.g., email address, phone number)\"),\n type: z.string().describe(\"Type of identifier (e.g., 'email', 'phone')\"),\n consent: z.object({\n ip: z.string().describe(\"IP address from which consent was given\").optional(),\n source: z.string().describe(\"Source of consent\").optional(),\n createdAt: z.string().describe(\"ISO 8601 date when consent was given\").optional(),\n userAgent: z.string().describe(\"User agent string when consent was given\").optional(),\n}).describe(\"Contact consent information\").optional(),\n channels: z.object({\n sms: z.object({\n status: z.string().describe(\"SMS subscription status (e.g., 'subscribed')\").optional(),\n statusDate: z.string().describe(\"ISO 8601 date of SMS status change\").optional(),\n}).describe(\"SMS channel subscription settings\").optional(),\n email: z.object({\n status: z.string().describe(\"Subscription status (e.g., 'subscribed')\").optional(),\n statusDate: z.string().describe(\"ISO 8601 date of status change\").optional(),\n}).describe(\"Email channel subscription settings\").optional(),\n}).describe(\"Channel-specific subscription settings\").optional(),\n}).passthrough()).describe(\"List of identifiers to associate with the contact\").optional(),\n customProperties: z.record(z.string(), z.unknown()).describe(\"Custom properties as key-value pairs\").optional(),\n}).describe(\"Fields to update on the contact\"),\n contactId: z.string().describe(\"Unique identifier of the contact to update\"),\n});\nexport const OmnisendUpdateContactOutput = z.object({\n email: z.string().describe(\"Email address of the updated contact\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the updated contact\").nullable().optional(),\n lastName: z.string().describe(\"Last name of the updated contact\").nullable().optional(),\n contactID: z.string().describe(\"Unique identifier of the updated contact\").nullable(),\n firstName: z.string().describe(\"First name of the updated contact\").nullable().optional(),\n}).passthrough();\n\nexport const omnisendUpdateContact = action(\"OMNISEND_UPDATE_CONTACT\", {\n slug: \"omnisend-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to update fields of an existing contact by ID. Use after retrieving contact ID. PATCH https://api.omnisend.com/v3/contacts/{contactId} Example: UpdateContact(contactId=\\\"..., body={firstName: 'John'})\",\n input: OmnisendUpdateContactInput,\n output: OmnisendUpdateContactOutput,\n});\n"],"mappings":";;AAmDA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnDwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;GAC1D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;GAClF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;GAC5D,QAAQ,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;GACrG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GAC9D,SAAS,EAAE,OAAO,CAAC,C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,mCAAmC,CAAC,CAAC,SAAS;KACxD,OAAO,EAAE,OAAO;MAChB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;MACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;KAC7E,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;IAC5D,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;GAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;GACvF,kBAAkB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAChH,CAAC,CAAC,CAAC,SAAS,iCAAiC;EAC3C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC7E,CAaS;CACP,QAbyC,EAAE,OAAO;EAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -16,7 +16,7 @@ const OmnisendUpdateOrderStatusOutput = zod.z.object({
16
16
  email: zod.z.string().describe("Email address associated with the order.").nullable().optional(),
17
17
  phone: zod.z.string().describe("Phone number associated with the order.").nullable().optional(),
18
18
  orderID: zod.z.string().describe("Unique identifier of the updated order.").nullable()
19
- });
19
+ }).passthrough();
20
20
  const omnisendUpdateOrderStatus = require_action.action("OMNISEND_UPDATE_ORDER_STATUS", {
21
21
  slug: "omnisend-update-order-status",
22
22
  name: "Update Order Status",
@@ -1 +1 @@
1
- {"version":3,"file":"update-order-status.cjs","names":["z","action"],"sources":["../../src/actions/update-order-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateOrderStatusInput = z.object({\n cartID: z.string().describe(\"Identifier of the cart associated with this order.\").optional(),\n orderID: z.string().describe(\"Unique identifier of the order to update.\"),\n courierUrl: z.string().describe(\"URL to track the shipment (must be a valid URI).\").optional(),\n cancelReason: z.string().describe(\"Reason for order cancellation.\").optional(),\n canceledDate: z.string().describe(\"ISO 8601 date-time when the order was canceled (e.g., '2017-05-30T14:11:12Z').\").optional(),\n courierTitle: z.string().describe(\"Name of the courier/shipping company.\").optional(),\n trackingCode: z.string().describe(\"Tracking code for the shipment.\").optional(),\n paymentStatus: z.string().describe(\"Payment status of the order. You need to map your status with Omnisend's statuses (e.g., 'pending', 'paid').\").optional(),\n fulfillmentStatus: z.string().describe(\"Fulfillment status of the order. You need to map your status with Omnisend's statuses (e.g., 'unfulfilled', 'fulfilled').\").optional(),\n});\nexport const OmnisendUpdateOrderStatusOutput = 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 updated order.\").nullable(),\n});\n\nexport const omnisendUpdateOrderStatus = action(\"OMNISEND_UPDATE_ORDER_STATUS\", {\n slug: \"omnisend-update-order-status\",\n name: \"Update Order Status\",\n description: \"Tool to partially update an order status in Omnisend (v3 API). Use when you need to update shipping details, payment status, or fulfillment status of an existing order.\",\n input: OmnisendUpdateOrderStatusInput,\n output: OmnisendUpdateOrderStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCA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{ z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateOrderStatusInput = z.object({\n cartID: z.string().describe(\"Identifier of the cart associated with this order.\").optional(),\n orderID: z.string().describe(\"Unique identifier of the order to update.\"),\n courierUrl: z.string().describe(\"URL to track the shipment (must be a valid URI).\").optional(),\n cancelReason: z.string().describe(\"Reason for order cancellation.\").optional(),\n canceledDate: z.string().describe(\"ISO 8601 date-time when the order was canceled (e.g., '2017-05-30T14:11:12Z').\").optional(),\n courierTitle: z.string().describe(\"Name of the courier/shipping company.\").optional(),\n trackingCode: z.string().describe(\"Tracking code for the shipment.\").optional(),\n paymentStatus: z.string().describe(\"Payment status of the order. You need to map your status with Omnisend's statuses (e.g., 'pending', 'paid').\").optional(),\n fulfillmentStatus: z.string().describe(\"Fulfillment status of the order. You need to map your status with Omnisend's statuses (e.g., 'unfulfilled', 'fulfilled').\").optional(),\n});\nexport const OmnisendUpdateOrderStatusOutput = 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 updated order.\").nullable(),\n}).passthrough();\n\nexport const omnisendUpdateOrderStatus = action(\"OMNISEND_UPDATE_ORDER_STATUS\", {\n slug: \"omnisend-update-order-status\",\n name: \"Update Order Status\",\n description: \"Tool to partially update an order status in Omnisend (v3 API). Use when you need to update shipping details, payment status, or fulfillment status of an existing order.\",\n input: OmnisendUpdateOrderStatusInput,\n output: OmnisendUpdateOrderStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC7E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC7H,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACpF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC9E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CAC5J,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AAC/K,CAAC;AACD,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -16,7 +16,7 @@ declare const OmnisendUpdateOrderStatusOutput: z.ZodObject<{
16
16
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  orderID: z.ZodNullable<z.ZodString>;
19
- }, z.core.$strip>;
19
+ }, z.core.$loose>;
20
20
  declare const omnisendUpdateOrderStatus: import("@keystrokehq/action").WorkflowActionDefinition<{
21
21
  orderID: string;
22
22
  cartID?: string | undefined;
@@ -16,7 +16,7 @@ declare const OmnisendUpdateOrderStatusOutput: z.ZodObject<{
16
16
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  orderID: z.ZodNullable<z.ZodString>;
19
- }, z.core.$strip>;
19
+ }, z.core.$loose>;
20
20
  declare const omnisendUpdateOrderStatus: import("@keystrokehq/action").WorkflowActionDefinition<{
21
21
  orderID: string;
22
22
  cartID?: string | undefined;
@@ -19,7 +19,7 @@ const omnisendUpdateOrderStatus = action("OMNISEND_UPDATE_ORDER_STATUS", {
19
19
  email: z.string().describe("Email address associated with the order.").nullable().optional(),
20
20
  phone: z.string().describe("Phone number associated with the order.").nullable().optional(),
21
21
  orderID: z.string().describe("Unique identifier of the updated order.").nullable()
22
- })
22
+ }).passthrough()
23
23
  });
24
24
  //#endregion
25
25
  export { omnisendUpdateOrderStatus };
@@ -1 +1 @@
1
- {"version":3,"file":"update-order-status.mjs","names":[],"sources":["../../src/actions/update-order-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateOrderStatusInput = z.object({\n cartID: z.string().describe(\"Identifier of the cart associated with this order.\").optional(),\n orderID: z.string().describe(\"Unique identifier of the order to update.\"),\n courierUrl: z.string().describe(\"URL to track the shipment (must be a valid URI).\").optional(),\n cancelReason: z.string().describe(\"Reason for order cancellation.\").optional(),\n canceledDate: z.string().describe(\"ISO 8601 date-time when the order was canceled (e.g., '2017-05-30T14:11:12Z').\").optional(),\n courierTitle: z.string().describe(\"Name of the courier/shipping company.\").optional(),\n trackingCode: z.string().describe(\"Tracking code for the shipment.\").optional(),\n paymentStatus: z.string().describe(\"Payment status of the order. You need to map your status with Omnisend's statuses (e.g., 'pending', 'paid').\").optional(),\n fulfillmentStatus: z.string().describe(\"Fulfillment status of the order. You need to map your status with Omnisend's statuses (e.g., 'unfulfilled', 'fulfilled').\").optional(),\n});\nexport const OmnisendUpdateOrderStatusOutput = 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 updated order.\").nullable(),\n});\n\nexport const omnisendUpdateOrderStatus = action(\"OMNISEND_UPDATE_ORDER_STATUS\", {\n slug: \"omnisend-update-order-status\",\n name: \"Update Order Status\",\n description: \"Tool to partially update an order status in Omnisend (v3 API). Use when you need to update shipping details, payment status, or fulfillment status of an existing order.\",\n input: OmnisendUpdateOrderStatusInput,\n output: OmnisendUpdateOrderStatusOutput,\n});\n"],"mappings":";;AAqBA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB4C,EAAE,OAAO;EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC7F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC7E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EAC7H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACpF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC9E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;EAC5J,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CAC/K,CAWS;CACP,QAX6C,EAAE,OAAO;EACtD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"update-order-status.mjs","names":[],"sources":["../../src/actions/update-order-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateOrderStatusInput = z.object({\n cartID: z.string().describe(\"Identifier of the cart associated with this order.\").optional(),\n orderID: z.string().describe(\"Unique identifier of the order to update.\"),\n courierUrl: z.string().describe(\"URL to track the shipment (must be a valid URI).\").optional(),\n cancelReason: z.string().describe(\"Reason for order cancellation.\").optional(),\n canceledDate: z.string().describe(\"ISO 8601 date-time when the order was canceled (e.g., '2017-05-30T14:11:12Z').\").optional(),\n courierTitle: z.string().describe(\"Name of the courier/shipping company.\").optional(),\n trackingCode: z.string().describe(\"Tracking code for the shipment.\").optional(),\n paymentStatus: z.string().describe(\"Payment status of the order. You need to map your status with Omnisend's statuses (e.g., 'pending', 'paid').\").optional(),\n fulfillmentStatus: z.string().describe(\"Fulfillment status of the order. You need to map your status with Omnisend's statuses (e.g., 'unfulfilled', 'fulfilled').\").optional(),\n});\nexport const OmnisendUpdateOrderStatusOutput = 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 updated order.\").nullable(),\n}).passthrough();\n\nexport const omnisendUpdateOrderStatus = action(\"OMNISEND_UPDATE_ORDER_STATUS\", {\n slug: \"omnisend-update-order-status\",\n name: \"Update Order Status\",\n description: \"Tool to partially update an order status in Omnisend (v3 API). Use when you need to update shipping details, payment status, or fulfillment status of an existing order.\",\n input: OmnisendUpdateOrderStatusInput,\n output: OmnisendUpdateOrderStatusOutput,\n});\n"],"mappings":";;AAqBA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB4C,EAAE,OAAO;EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC7F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC7E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EAC7H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACpF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC9E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;EAC5J,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CAC/K,CAWS;CACP,QAX6C,EAAE,OAAO;EACtD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -5,7 +5,7 @@ const OmnisendUpdateProductCategoryInput = zod.z.object({
5
5
  title: zod.z.string().describe("Updated title for the product category"),
6
6
  categoryID: zod.z.string().describe("Product category ID to update")
7
7
  });
8
- const OmnisendUpdateProductCategoryOutput = zod.z.object({ categoryID: zod.z.string().describe("Product category ID that was updated").nullable() });
8
+ const OmnisendUpdateProductCategoryOutput = zod.z.object({ categoryID: zod.z.string().describe("Product category ID that was updated").nullable() }).passthrough();
9
9
  const omnisendUpdateProductCategory = require_action.action("OMNISEND_UPDATE_PRODUCT_CATEGORY", {
10
10
  slug: "omnisend-update-product-category",
11
11
  name: "Update Product Category",
@@ -1 +1 @@
1
- {"version":3,"file":"update-product-category.cjs","names":["z","action"],"sources":["../../src/actions/update-product-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateProductCategoryInput = z.object({\n title: z.string().describe(\"Updated title for the product category\"),\n categoryID: z.string().describe(\"Product category ID to update\"),\n});\nexport const OmnisendUpdateProductCategoryOutput = z.object({\n categoryID: z.string().describe(\"Product category ID that was updated\").nullable(),\n});\n\nexport const omnisendUpdateProductCategory = action(\"OMNISEND_UPDATE_PRODUCT_CATEGORY\", {\n slug: \"omnisend-update-product-category\",\n name: \"Update Product Category\",\n description: \"Tool to update an existing product category title in Omnisend. Use when you need to modify a category's name.\",\n input: OmnisendUpdateProductCategoryInput,\n output: OmnisendUpdateProductCategoryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACnE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;AACjE,CAAC;AACD,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EACnF,CAAC;AAED,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-product-category.cjs","names":["z","action"],"sources":["../../src/actions/update-product-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateProductCategoryInput = z.object({\n title: z.string().describe(\"Updated title for the product category\"),\n categoryID: z.string().describe(\"Product category ID to update\"),\n});\nexport const OmnisendUpdateProductCategoryOutput = z.object({\n categoryID: z.string().describe(\"Product category ID that was updated\").nullable(),\n}).passthrough();\n\nexport const omnisendUpdateProductCategory = action(\"OMNISEND_UPDATE_PRODUCT_CATEGORY\", {\n slug: \"omnisend-update-product-category\",\n name: \"Update Product Category\",\n description: \"Tool to update an existing product category title in Omnisend. Use when you need to modify a category's name.\",\n input: OmnisendUpdateProductCategoryInput,\n output: OmnisendUpdateProductCategoryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACnE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;AACjE,CAAC;AACD,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -7,7 +7,7 @@ declare const OmnisendUpdateProductCategoryInput: z.ZodObject<{
7
7
  }, z.core.$strip>;
8
8
  declare const OmnisendUpdateProductCategoryOutput: z.ZodObject<{
9
9
  categoryID: z.ZodNullable<z.ZodString>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const omnisendUpdateProductCategory: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  title: string;
13
13
  categoryID: string;
@@ -7,7 +7,7 @@ declare const OmnisendUpdateProductCategoryInput: z.ZodObject<{
7
7
  }, z.core.$strip>;
8
8
  declare const OmnisendUpdateProductCategoryOutput: z.ZodObject<{
9
9
  categoryID: z.ZodNullable<z.ZodString>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const omnisendUpdateProductCategory: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  title: string;
13
13
  categoryID: string;
@@ -8,7 +8,7 @@ const omnisendUpdateProductCategory = action("OMNISEND_UPDATE_PRODUCT_CATEGORY",
8
8
  title: z.string().describe("Updated title for the product category"),
9
9
  categoryID: z.string().describe("Product category ID to update")
10
10
  }),
11
- output: z.object({ categoryID: z.string().describe("Product category ID that was updated").nullable() })
11
+ output: z.object({ categoryID: z.string().describe("Product category ID that was updated").nullable() }).passthrough()
12
12
  });
13
13
  //#endregion
14
14
  export { omnisendUpdateProductCategory };
@@ -1 +1 @@
1
- {"version":3,"file":"update-product-category.mjs","names":[],"sources":["../../src/actions/update-product-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateProductCategoryInput = z.object({\n title: z.string().describe(\"Updated title for the product category\"),\n categoryID: z.string().describe(\"Product category ID to update\"),\n});\nexport const OmnisendUpdateProductCategoryOutput = z.object({\n categoryID: z.string().describe(\"Product category ID that was updated\").nullable(),\n});\n\nexport const omnisendUpdateProductCategory = action(\"OMNISEND_UPDATE_PRODUCT_CATEGORY\", {\n slug: \"omnisend-update-product-category\",\n name: \"Update Product Category\",\n description: \"Tool to update an existing product category title in Omnisend. Use when you need to modify a category's name.\",\n input: OmnisendUpdateProductCategoryInput,\n output: OmnisendUpdateProductCategoryOutput,\n});\n"],"mappings":";;AAYA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZgD,EAAE,OAAO;EACzD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;EACnE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACjE,CASS;CACP,QATiD,EAAE,OAAO,EAC1D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EACnF,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"update-product-category.mjs","names":[],"sources":["../../src/actions/update-product-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateProductCategoryInput = z.object({\n title: z.string().describe(\"Updated title for the product category\"),\n categoryID: z.string().describe(\"Product category ID to update\"),\n});\nexport const OmnisendUpdateProductCategoryOutput = z.object({\n categoryID: z.string().describe(\"Product category ID that was updated\").nullable(),\n}).passthrough();\n\nexport const omnisendUpdateProductCategory = action(\"OMNISEND_UPDATE_PRODUCT_CATEGORY\", {\n slug: \"omnisend-update-product-category\",\n name: \"Update Product Category\",\n description: \"Tool to update an existing product category title in Omnisend. Use when you need to modify a category's name.\",\n input: OmnisendUpdateProductCategoryInput,\n output: OmnisendUpdateProductCategoryOutput,\n});\n"],"mappings":";;AAYA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZgD,EAAE,OAAO;EACzD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;EACnE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACjE,CASS;CACP,QATiD,EAAE,OAAO,EAC1D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/omnisend",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"