@keystrokehq/omnisend 0.1.2 → 0.1.4

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 (291) 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 +14 -2
  4. package/dist/actions/add-cart-product.d.mts +14 -2
  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 +18 -6
  10. package/dist/actions/create-batch.d.cts.map +1 -1
  11. package/dist/actions/create-batch.d.mts +18 -6
  12. package/dist/actions/create-batch.d.mts.map +1 -1
  13. package/dist/actions/create-batch.mjs +3 -3
  14. package/dist/actions/create-batch.mjs.map +1 -1
  15. package/dist/actions/create-cart.cjs +2 -2
  16. package/dist/actions/create-cart.cjs.map +1 -1
  17. package/dist/actions/create-cart.d.cts +16 -3
  18. package/dist/actions/create-cart.d.mts +16 -3
  19. package/dist/actions/create-cart.mjs +2 -2
  20. package/dist/actions/create-cart.mjs.map +1 -1
  21. package/dist/actions/create-category.cjs +1 -1
  22. package/dist/actions/create-category.cjs.map +1 -1
  23. package/dist/actions/create-category.d.cts +14 -2
  24. package/dist/actions/create-category.d.mts +14 -2
  25. package/dist/actions/create-category.mjs +1 -1
  26. package/dist/actions/create-category.mjs.map +1 -1
  27. package/dist/actions/create-or-update-contact.cjs +2 -2
  28. package/dist/actions/create-or-update-contact.cjs.map +1 -1
  29. package/dist/actions/create-or-update-contact.d.cts +16 -3
  30. package/dist/actions/create-or-update-contact.d.mts +16 -3
  31. package/dist/actions/create-or-update-contact.mjs +2 -2
  32. package/dist/actions/create-or-update-contact.mjs.map +1 -1
  33. package/dist/actions/create-order.cjs +3 -3
  34. package/dist/actions/create-order.cjs.map +1 -1
  35. package/dist/actions/create-order.d.cts +18 -5
  36. package/dist/actions/create-order.d.cts.map +1 -1
  37. package/dist/actions/create-order.d.mts +18 -5
  38. package/dist/actions/create-order.d.mts.map +1 -1
  39. package/dist/actions/create-order.mjs +3 -3
  40. package/dist/actions/create-order.mjs.map +1 -1
  41. package/dist/actions/create-product-category.cjs +1 -1
  42. package/dist/actions/create-product-category.cjs.map +1 -1
  43. package/dist/actions/create-product-category.d.cts +14 -2
  44. package/dist/actions/create-product-category.d.mts +14 -2
  45. package/dist/actions/create-product-category.mjs +1 -1
  46. package/dist/actions/create-product-category.mjs.map +1 -1
  47. package/dist/actions/create-product.cjs +2 -2
  48. package/dist/actions/create-product.cjs.map +1 -1
  49. package/dist/actions/create-product.d.cts +16 -3
  50. package/dist/actions/create-product.d.mts +16 -3
  51. package/dist/actions/create-product.mjs +2 -2
  52. package/dist/actions/create-product.mjs.map +1 -1
  53. package/dist/actions/delete-cart.cjs +1 -1
  54. package/dist/actions/delete-cart.cjs.map +1 -1
  55. package/dist/actions/delete-cart.d.cts +14 -2
  56. package/dist/actions/delete-cart.d.cts.map +1 -1
  57. package/dist/actions/delete-cart.d.mts +14 -2
  58. package/dist/actions/delete-cart.d.mts.map +1 -1
  59. package/dist/actions/delete-cart.mjs +1 -1
  60. package/dist/actions/delete-cart.mjs.map +1 -1
  61. package/dist/actions/delete-category.cjs +1 -1
  62. package/dist/actions/delete-category.cjs.map +1 -1
  63. package/dist/actions/delete-category.d.cts +14 -2
  64. package/dist/actions/delete-category.d.cts.map +1 -1
  65. package/dist/actions/delete-category.d.mts +14 -2
  66. package/dist/actions/delete-category.d.mts.map +1 -1
  67. package/dist/actions/delete-category.mjs +1 -1
  68. package/dist/actions/delete-category.mjs.map +1 -1
  69. package/dist/actions/delete-order.cjs +1 -1
  70. package/dist/actions/delete-order.cjs.map +1 -1
  71. package/dist/actions/delete-order.d.cts +14 -2
  72. package/dist/actions/delete-order.d.cts.map +1 -1
  73. package/dist/actions/delete-order.d.mts +14 -2
  74. package/dist/actions/delete-order.d.mts.map +1 -1
  75. package/dist/actions/delete-order.mjs +1 -1
  76. package/dist/actions/delete-order.mjs.map +1 -1
  77. package/dist/actions/delete-product-category.cjs +1 -1
  78. package/dist/actions/delete-product-category.cjs.map +1 -1
  79. package/dist/actions/delete-product-category.d.cts +14 -2
  80. package/dist/actions/delete-product-category.d.cts.map +1 -1
  81. package/dist/actions/delete-product-category.d.mts +14 -2
  82. package/dist/actions/delete-product-category.d.mts.map +1 -1
  83. package/dist/actions/delete-product-category.mjs +1 -1
  84. package/dist/actions/delete-product-category.mjs.map +1 -1
  85. package/dist/actions/delete-product.cjs +1 -1
  86. package/dist/actions/delete-product.cjs.map +1 -1
  87. package/dist/actions/delete-product.d.cts +14 -2
  88. package/dist/actions/delete-product.d.cts.map +1 -1
  89. package/dist/actions/delete-product.d.mts +14 -2
  90. package/dist/actions/delete-product.d.mts.map +1 -1
  91. package/dist/actions/delete-product.mjs +1 -1
  92. package/dist/actions/delete-product.mjs.map +1 -1
  93. package/dist/actions/get-batch-information.cjs +1 -1
  94. package/dist/actions/get-batch-information.cjs.map +1 -1
  95. package/dist/actions/get-batch-information.d.cts +14 -2
  96. package/dist/actions/get-batch-information.d.mts +14 -2
  97. package/dist/actions/get-batch-information.mjs +1 -1
  98. package/dist/actions/get-batch-information.mjs.map +1 -1
  99. package/dist/actions/get-batch-item.cjs +1 -1
  100. package/dist/actions/get-batch-item.cjs.map +1 -1
  101. package/dist/actions/get-batch-item.d.cts +14 -2
  102. package/dist/actions/get-batch-item.d.mts +14 -2
  103. package/dist/actions/get-batch-item.mjs +1 -1
  104. package/dist/actions/get-batch-item.mjs.map +1 -1
  105. package/dist/actions/get-batch-items.cjs +2 -2
  106. package/dist/actions/get-batch-items.cjs.map +1 -1
  107. package/dist/actions/get-batch-items.d.cts +15 -3
  108. package/dist/actions/get-batch-items.d.mts +15 -3
  109. package/dist/actions/get-batch-items.mjs +2 -2
  110. package/dist/actions/get-batch-items.mjs.map +1 -1
  111. package/dist/actions/get-batches.cjs +3 -3
  112. package/dist/actions/get-batches.cjs.map +1 -1
  113. package/dist/actions/get-batches.d.cts +18 -6
  114. package/dist/actions/get-batches.d.mts +18 -6
  115. package/dist/actions/get-batches.mjs +3 -3
  116. package/dist/actions/get-batches.mjs.map +1 -1
  117. package/dist/actions/get-brand.cjs +1 -1
  118. package/dist/actions/get-brand.cjs.map +1 -1
  119. package/dist/actions/get-brand.d.cts +14 -2
  120. package/dist/actions/get-brand.d.cts.map +1 -1
  121. package/dist/actions/get-brand.d.mts +14 -2
  122. package/dist/actions/get-brand.d.mts.map +1 -1
  123. package/dist/actions/get-brand.mjs +1 -1
  124. package/dist/actions/get-brand.mjs.map +1 -1
  125. package/dist/actions/get-cart.cjs +2 -2
  126. package/dist/actions/get-cart.cjs.map +1 -1
  127. package/dist/actions/get-cart.d.cts +15 -3
  128. package/dist/actions/get-cart.d.mts +15 -3
  129. package/dist/actions/get-cart.mjs +2 -2
  130. package/dist/actions/get-cart.mjs.map +1 -1
  131. package/dist/actions/get-category.cjs +1 -1
  132. package/dist/actions/get-category.cjs.map +1 -1
  133. package/dist/actions/get-category.d.cts +14 -2
  134. package/dist/actions/get-category.d.mts +14 -2
  135. package/dist/actions/get-category.mjs +1 -1
  136. package/dist/actions/get-category.mjs.map +1 -1
  137. package/dist/actions/get-contact.cjs +6 -6
  138. package/dist/actions/get-contact.cjs.map +1 -1
  139. package/dist/actions/get-contact.d.cts +19 -7
  140. package/dist/actions/get-contact.d.mts +19 -7
  141. package/dist/actions/get-contact.mjs +6 -6
  142. package/dist/actions/get-contact.mjs.map +1 -1
  143. package/dist/actions/get-order.cjs +3 -3
  144. package/dist/actions/get-order.cjs.map +1 -1
  145. package/dist/actions/get-order.d.cts +17 -5
  146. package/dist/actions/get-order.d.mts +17 -5
  147. package/dist/actions/get-order.mjs +3 -3
  148. package/dist/actions/get-order.mjs.map +1 -1
  149. package/dist/actions/get-product-category.cjs +1 -1
  150. package/dist/actions/get-product-category.cjs.map +1 -1
  151. package/dist/actions/get-product-category.d.cts +14 -2
  152. package/dist/actions/get-product-category.d.mts +14 -2
  153. package/dist/actions/get-product-category.mjs +1 -1
  154. package/dist/actions/get-product-category.mjs.map +1 -1
  155. package/dist/actions/get-product.cjs +2 -2
  156. package/dist/actions/get-product.cjs.map +1 -1
  157. package/dist/actions/get-product.d.cts +15 -3
  158. package/dist/actions/get-product.d.mts +15 -3
  159. package/dist/actions/get-product.mjs +2 -2
  160. package/dist/actions/get-product.mjs.map +1 -1
  161. package/dist/actions/list-campaigns.cjs +5 -5
  162. package/dist/actions/list-campaigns.cjs.map +1 -1
  163. package/dist/actions/list-campaigns.d.cts +18 -6
  164. package/dist/actions/list-campaigns.d.mts +18 -6
  165. package/dist/actions/list-campaigns.mjs +5 -5
  166. package/dist/actions/list-campaigns.mjs.map +1 -1
  167. package/dist/actions/list-carts.cjs +3 -3
  168. package/dist/actions/list-carts.cjs.map +1 -1
  169. package/dist/actions/list-carts.d.cts +16 -4
  170. package/dist/actions/list-carts.d.mts +16 -4
  171. package/dist/actions/list-carts.mjs +3 -3
  172. package/dist/actions/list-carts.mjs.map +1 -1
  173. package/dist/actions/list-categories.cjs +3 -3
  174. package/dist/actions/list-categories.cjs.map +1 -1
  175. package/dist/actions/list-categories.d.cts +16 -4
  176. package/dist/actions/list-categories.d.mts +16 -4
  177. package/dist/actions/list-categories.mjs +3 -3
  178. package/dist/actions/list-categories.mjs.map +1 -1
  179. package/dist/actions/list-contacts.cjs +7 -7
  180. package/dist/actions/list-contacts.cjs.map +1 -1
  181. package/dist/actions/list-contacts.d.cts +20 -8
  182. package/dist/actions/list-contacts.d.mts +20 -8
  183. package/dist/actions/list-contacts.mjs +7 -7
  184. package/dist/actions/list-contacts.mjs.map +1 -1
  185. package/dist/actions/list-events.cjs +3 -3
  186. package/dist/actions/list-events.cjs.map +1 -1
  187. package/dist/actions/list-events.d.cts +16 -4
  188. package/dist/actions/list-events.d.cts.map +1 -1
  189. package/dist/actions/list-events.d.mts +16 -4
  190. package/dist/actions/list-events.d.mts.map +1 -1
  191. package/dist/actions/list-events.mjs +3 -3
  192. package/dist/actions/list-events.mjs.map +1 -1
  193. package/dist/actions/list-product-categories.cjs +3 -3
  194. package/dist/actions/list-product-categories.cjs.map +1 -1
  195. package/dist/actions/list-product-categories.d.cts +16 -4
  196. package/dist/actions/list-product-categories.d.mts +16 -4
  197. package/dist/actions/list-product-categories.mjs +3 -3
  198. package/dist/actions/list-product-categories.mjs.map +1 -1
  199. package/dist/actions/list-products.cjs +4 -4
  200. package/dist/actions/list-products.cjs.map +1 -1
  201. package/dist/actions/list-products.d.cts +17 -5
  202. package/dist/actions/list-products.d.mts +17 -5
  203. package/dist/actions/list-products.mjs +4 -4
  204. package/dist/actions/list-products.mjs.map +1 -1
  205. package/dist/actions/remove-cart-product.cjs +1 -1
  206. package/dist/actions/remove-cart-product.cjs.map +1 -1
  207. package/dist/actions/remove-cart-product.d.cts +14 -2
  208. package/dist/actions/remove-cart-product.d.cts.map +1 -1
  209. package/dist/actions/remove-cart-product.d.mts +14 -2
  210. package/dist/actions/remove-cart-product.d.mts.map +1 -1
  211. package/dist/actions/remove-cart-product.mjs +1 -1
  212. package/dist/actions/remove-cart-product.mjs.map +1 -1
  213. package/dist/actions/replace-cart-product.cjs +1 -1
  214. package/dist/actions/replace-cart-product.cjs.map +1 -1
  215. package/dist/actions/replace-cart-product.d.cts +14 -2
  216. package/dist/actions/replace-cart-product.d.mts +14 -2
  217. package/dist/actions/replace-cart-product.mjs +1 -1
  218. package/dist/actions/replace-cart-product.mjs.map +1 -1
  219. package/dist/actions/replace-cart.cjs +2 -2
  220. package/dist/actions/replace-cart.cjs.map +1 -1
  221. package/dist/actions/replace-cart.d.cts +16 -3
  222. package/dist/actions/replace-cart.d.mts +16 -3
  223. package/dist/actions/replace-cart.mjs +2 -2
  224. package/dist/actions/replace-cart.mjs.map +1 -1
  225. package/dist/actions/replace-category.cjs +1 -1
  226. package/dist/actions/replace-category.cjs.map +1 -1
  227. package/dist/actions/replace-category.d.cts +14 -2
  228. package/dist/actions/replace-category.d.mts +14 -2
  229. package/dist/actions/replace-category.mjs +1 -1
  230. package/dist/actions/replace-category.mjs.map +1 -1
  231. package/dist/actions/replace-order.cjs +2 -2
  232. package/dist/actions/replace-order.cjs.map +1 -1
  233. package/dist/actions/replace-order.d.cts +16 -3
  234. package/dist/actions/replace-order.d.mts +16 -3
  235. package/dist/actions/replace-order.mjs +2 -2
  236. package/dist/actions/replace-order.mjs.map +1 -1
  237. package/dist/actions/replace-product.cjs +2 -2
  238. package/dist/actions/replace-product.cjs.map +1 -1
  239. package/dist/actions/replace-product.d.cts +16 -3
  240. package/dist/actions/replace-product.d.mts +16 -3
  241. package/dist/actions/replace-product.mjs +2 -2
  242. package/dist/actions/replace-product.mjs.map +1 -1
  243. package/dist/actions/send-event.cjs +3 -3
  244. package/dist/actions/send-event.cjs.map +1 -1
  245. package/dist/actions/send-event.d.cts +18 -6
  246. package/dist/actions/send-event.d.cts.map +1 -1
  247. package/dist/actions/send-event.d.mts +18 -6
  248. package/dist/actions/send-event.d.mts.map +1 -1
  249. package/dist/actions/send-event.mjs +3 -3
  250. package/dist/actions/send-event.mjs.map +1 -1
  251. package/dist/actions/update-cart-product.cjs +1 -1
  252. package/dist/actions/update-cart-product.cjs.map +1 -1
  253. package/dist/actions/update-cart-product.d.cts +14 -2
  254. package/dist/actions/update-cart-product.d.mts +14 -2
  255. package/dist/actions/update-cart-product.mjs +1 -1
  256. package/dist/actions/update-cart-product.mjs.map +1 -1
  257. package/dist/actions/update-cart.cjs +2 -2
  258. package/dist/actions/update-cart.cjs.map +1 -1
  259. package/dist/actions/update-cart.d.cts +16 -3
  260. package/dist/actions/update-cart.d.mts +16 -3
  261. package/dist/actions/update-cart.mjs +2 -2
  262. package/dist/actions/update-cart.mjs.map +1 -1
  263. package/dist/actions/update-contact.cjs +3 -3
  264. package/dist/actions/update-contact.cjs.map +1 -1
  265. package/dist/actions/update-contact.d.cts +18 -5
  266. package/dist/actions/update-contact.d.cts.map +1 -1
  267. package/dist/actions/update-contact.d.mts +18 -5
  268. package/dist/actions/update-contact.d.mts.map +1 -1
  269. package/dist/actions/update-contact.mjs +3 -3
  270. package/dist/actions/update-contact.mjs.map +1 -1
  271. package/dist/actions/update-order-status.cjs +1 -1
  272. package/dist/actions/update-order-status.cjs.map +1 -1
  273. package/dist/actions/update-order-status.d.cts +14 -2
  274. package/dist/actions/update-order-status.d.mts +14 -2
  275. package/dist/actions/update-order-status.mjs +1 -1
  276. package/dist/actions/update-order-status.mjs.map +1 -1
  277. package/dist/actions/update-product-category.cjs +1 -1
  278. package/dist/actions/update-product-category.cjs.map +1 -1
  279. package/dist/actions/update-product-category.d.cts +14 -2
  280. package/dist/actions/update-product-category.d.mts +14 -2
  281. package/dist/actions/update-product-category.mjs +1 -1
  282. package/dist/actions/update-product-category.mjs.map +1 -1
  283. package/dist/app.cjs +5 -2
  284. package/dist/app.cjs.map +1 -1
  285. package/dist/app.d.cts +9 -1
  286. package/dist/app.d.cts.map +1 -1
  287. package/dist/app.d.mts +9 -1
  288. package/dist/app.d.mts.map +1 -1
  289. package/dist/app.mjs +3 -1
  290. package/dist/app.mjs.map +1 -1
  291. package/package.json +1 -1
@@ -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;
@@ -45,7 +46,19 @@ declare const omnisendReplaceCart: import("@keystrokehq/action").WorkflowActionD
45
46
  createdAt?: string | undefined;
46
47
  updatedAt?: string | undefined;
47
48
  cartRecoveryUrl?: string | undefined;
48
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
49
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
50
+ connectionId: z.ZodString;
51
+ entityId: z.ZodString;
52
+ instanceId: z.ZodString;
53
+ }, z.core.$strip>, z.ZodObject<{
54
+ accessToken: z.ZodString;
55
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
56
+ connectionId: z.ZodString;
57
+ entityId: z.ZodString;
58
+ instanceId: z.ZodString;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ accessToken: z.ZodString;
61
+ }, z.core.$strip>>]>;
49
62
  //#endregion
50
63
  export { omnisendReplaceCart };
51
64
  //# sourceMappingURL=replace-cart.d.cts.map
@@ -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;
@@ -45,7 +46,19 @@ declare const omnisendReplaceCart: import("@keystrokehq/action").WorkflowActionD
45
46
  createdAt?: string | undefined;
46
47
  updatedAt?: string | undefined;
47
48
  cartRecoveryUrl?: string | undefined;
48
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
49
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
50
+ connectionId: z.ZodString;
51
+ entityId: z.ZodString;
52
+ instanceId: z.ZodString;
53
+ }, z.core.$strip>, z.ZodObject<{
54
+ accessToken: z.ZodString;
55
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
56
+ connectionId: z.ZodString;
57
+ entityId: z.ZodString;
58
+ instanceId: z.ZodString;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ accessToken: z.ZodString;
61
+ }, z.core.$strip>>]>;
49
62
  //#endregion
50
63
  export { omnisendReplaceCart };
51
64
  //# sourceMappingURL=replace-cart.d.mts.map
@@ -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"],"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,CAAC,SAAS,8BAA8B;EACzC,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACxF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC7F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC7G,CASS;CACP,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,11 +7,23 @@ 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;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
15
+ connectionId: z.ZodString;
16
+ entityId: z.ZodString;
17
+ instanceId: z.ZodString;
18
+ }, z.core.$strip>, z.ZodObject<{
19
+ accessToken: z.ZodString;
20
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
21
+ connectionId: z.ZodString;
22
+ entityId: z.ZodString;
23
+ instanceId: z.ZodString;
24
+ }, z.core.$strip>, z.ZodObject<{
25
+ accessToken: z.ZodString;
26
+ }, z.core.$strip>>]>;
15
27
  //#endregion
16
28
  export { omnisendReplaceCategory };
17
29
  //# sourceMappingURL=replace-category.d.cts.map
@@ -7,11 +7,23 @@ 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;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
15
+ connectionId: z.ZodString;
16
+ entityId: z.ZodString;
17
+ instanceId: z.ZodString;
18
+ }, z.core.$strip>, z.ZodObject<{
19
+ accessToken: z.ZodString;
20
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
21
+ connectionId: z.ZodString;
22
+ entityId: z.ZodString;
23
+ instanceId: z.ZodString;
24
+ }, z.core.$strip>, z.ZodObject<{
25
+ accessToken: z.ZodString;
26
+ }, z.core.$strip>>]>;
15
27
  //#endregion
16
28
  export { omnisendReplaceCategory };
17
29
  //# sourceMappingURL=replace-category.d.mts.map
@@ -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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AS,8EAA8E,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,SA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S;CACzF,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;
@@ -135,7 +136,19 @@ declare const omnisendReplaceOrder: import("@keystrokehq/action").WorkflowAction
135
136
  } | undefined;
136
137
  fulfillmentStatus?: string | undefined;
137
138
  subTotalTaxIncluded?: boolean | undefined;
138
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
139
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
140
+ connectionId: z.ZodString;
141
+ entityId: z.ZodString;
142
+ instanceId: z.ZodString;
143
+ }, z.core.$strip>, z.ZodObject<{
144
+ accessToken: z.ZodString;
145
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
146
+ connectionId: z.ZodString;
147
+ entityId: z.ZodString;
148
+ instanceId: z.ZodString;
149
+ }, z.core.$strip>, z.ZodObject<{
150
+ accessToken: z.ZodString;
151
+ }, z.core.$strip>>]>;
139
152
  //#endregion
140
153
  export { omnisendReplaceOrder };
141
154
  //# sourceMappingURL=replace-order.d.cts.map
@@ -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;
@@ -135,7 +136,19 @@ declare const omnisendReplaceOrder: import("@keystrokehq/action").WorkflowAction
135
136
  } | undefined;
136
137
  fulfillmentStatus?: string | undefined;
137
138
  subTotalTaxIncluded?: boolean | undefined;
138
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
139
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
140
+ connectionId: z.ZodString;
141
+ entityId: z.ZodString;
142
+ instanceId: z.ZodString;
143
+ }, z.core.$strip>, z.ZodObject<{
144
+ accessToken: z.ZodString;
145
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
146
+ connectionId: z.ZodString;
147
+ entityId: z.ZodString;
148
+ instanceId: z.ZodString;
149
+ }, z.core.$strip>, z.ZodObject<{
150
+ accessToken: z.ZodString;
151
+ }, z.core.$strip>>]>;
139
152
  //#endregion
140
153
  export { omnisendReplaceOrder };
141
154
  //# sourceMappingURL=replace-order.d.mts.map
@@ -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,yB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wC,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,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,U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a,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC/E,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAClE,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EAChI,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACtF,CAWS;CACP,QAXwC,EAAE,OAAO;EACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -30,7 +30,7 @@ const OmnisendReplaceProductInput = zod.z.object({
30
30
  description: zod.z.string().describe("Description of the variant").optional(),
31
31
  defaultImageUrl: zod.z.string().describe("Primary image URL for this variant").optional(),
32
32
  strikeThroughPrice: zod.z.number().describe("Original price before discount").optional()
33
- })).describe("Product variants (different versions like sizes/colors). At least one variant required"),
33
+ }).passthrough()).describe("Product variants (different versions like sizes/colors). At least one variant required"),
34
34
  createdAt: zod.z.string().describe("Creation timestamp in ISO 8601 format").optional(),
35
35
  updatedAt: zod.z.string().describe("Last update timestamp in ISO 8601 format").optional(),
36
36
  product_id: zod.z.string().describe("Unique identifier of the product to replace. Must match the product ID in the request body"),
@@ -38,7 +38,7 @@ const OmnisendReplaceProductInput = zod.z.object({
38
38
  description: zod.z.string().describe("Short description of the product for email body usage").optional(),
39
39
  defaultImageUrl: zod.z.string().describe("Primary image URL. Recommended if you need more than one image - additional images go in the images array").optional()
40
40
  });
41
- const OmnisendReplaceProductOutput = zod.z.object({ id: zod.z.string().describe("Product identifier that was replaced").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,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DAA6D,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;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,I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WA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACjF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;CAC5H,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACnG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;AAC7J,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EAC3E,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -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;
@@ -69,7 +70,19 @@ declare const omnisendReplaceProduct: import("@keystrokehq/action").WorkflowActi
69
70
  categoryIDs?: string[] | undefined;
70
71
  description?: string | undefined;
71
72
  defaultImageUrl?: string | undefined;
72
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
73
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
74
+ connectionId: z.ZodString;
75
+ entityId: z.ZodString;
76
+ instanceId: z.ZodString;
77
+ }, z.core.$strip>, z.ZodObject<{
78
+ accessToken: z.ZodString;
79
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
80
+ connectionId: z.ZodString;
81
+ entityId: z.ZodString;
82
+ instanceId: z.ZodString;
83
+ }, z.core.$strip>, z.ZodObject<{
84
+ accessToken: z.ZodString;
85
+ }, z.core.$strip>>]>;
73
86
  //#endregion
74
87
  export { omnisendReplaceProduct };
75
88
  //# sourceMappingURL=replace-product.d.cts.map
@@ -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;
@@ -69,7 +70,19 @@ declare const omnisendReplaceProduct: import("@keystrokehq/action").WorkflowActi
69
70
  categoryIDs?: string[] | undefined;
70
71
  description?: string | undefined;
71
72
  defaultImageUrl?: string | undefined;
72
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
73
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
74
+ connectionId: z.ZodString;
75
+ entityId: z.ZodString;
76
+ instanceId: z.ZodString;
77
+ }, z.core.$strip>, z.ZodObject<{
78
+ accessToken: z.ZodString;
79
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
80
+ connectionId: z.ZodString;
81
+ entityId: z.ZodString;
82
+ instanceId: z.ZodString;
83
+ }, z.core.$strip>, z.ZodObject<{
84
+ accessToken: z.ZodString;
85
+ }, z.core.$strip>>]>;
73
86
  //#endregion
74
87
  export { omnisendReplaceProduct };
75
88
  //# sourceMappingURL=replace-product.d.mts.map