@keystrokehq/paypal 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (637) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/activate-plan.cjs +1 -0
  4. package/dist/actions/activate-plan.cjs.map +1 -1
  5. package/dist/actions/activate-plan.d.cts +3 -15
  6. package/dist/actions/activate-plan.d.cts.map +1 -1
  7. package/dist/actions/activate-plan.d.mts +3 -15
  8. package/dist/actions/activate-plan.d.mts.map +1 -1
  9. package/dist/actions/activate-plan.mjs +1 -0
  10. package/dist/actions/activate-plan.mjs.map +1 -1
  11. package/dist/actions/add-batch-trackers.cjs +1 -0
  12. package/dist/actions/add-batch-trackers.cjs.map +1 -1
  13. package/dist/actions/add-batch-trackers.d.cts +3 -33
  14. package/dist/actions/add-batch-trackers.d.cts.map +1 -1
  15. package/dist/actions/add-batch-trackers.d.mts +3 -33
  16. package/dist/actions/add-batch-trackers.d.mts.map +1 -1
  17. package/dist/actions/add-batch-trackers.mjs +1 -0
  18. package/dist/actions/add-batch-trackers.mjs.map +1 -1
  19. package/dist/actions/authorize-order.cjs +1 -0
  20. package/dist/actions/authorize-order.cjs.map +1 -1
  21. package/dist/actions/authorize-order.d.cts +5 -25
  22. package/dist/actions/authorize-order.d.cts.map +1 -1
  23. package/dist/actions/authorize-order.d.mts +5 -25
  24. package/dist/actions/authorize-order.d.mts.map +1 -1
  25. package/dist/actions/authorize-order.mjs +1 -0
  26. package/dist/actions/authorize-order.mjs.map +1 -1
  27. package/dist/actions/cancel-invoice.cjs +1 -0
  28. package/dist/actions/cancel-invoice.cjs.map +1 -1
  29. package/dist/actions/cancel-invoice.d.cts +3 -20
  30. package/dist/actions/cancel-invoice.d.cts.map +1 -1
  31. package/dist/actions/cancel-invoice.d.mts +3 -20
  32. package/dist/actions/cancel-invoice.d.mts.map +1 -1
  33. package/dist/actions/cancel-invoice.mjs +1 -0
  34. package/dist/actions/cancel-invoice.mjs.map +1 -1
  35. package/dist/actions/cancel-reminders.cjs +1 -0
  36. package/dist/actions/cancel-reminders.cjs.map +1 -1
  37. package/dist/actions/cancel-reminders.d.cts +3 -15
  38. package/dist/actions/cancel-reminders.d.cts.map +1 -1
  39. package/dist/actions/cancel-reminders.d.mts +3 -15
  40. package/dist/actions/cancel-reminders.d.mts.map +1 -1
  41. package/dist/actions/cancel-reminders.mjs +1 -0
  42. package/dist/actions/cancel-reminders.mjs.map +1 -1
  43. package/dist/actions/capture-subscription-payment.cjs +1 -0
  44. package/dist/actions/capture-subscription-payment.cjs.map +1 -1
  45. package/dist/actions/capture-subscription-payment.d.cts +5 -23
  46. package/dist/actions/capture-subscription-payment.d.cts.map +1 -1
  47. package/dist/actions/capture-subscription-payment.d.mts +5 -23
  48. package/dist/actions/capture-subscription-payment.d.mts.map +1 -1
  49. package/dist/actions/capture-subscription-payment.mjs +1 -0
  50. package/dist/actions/capture-subscription-payment.mjs.map +1 -1
  51. package/dist/actions/charge-payment-method.cjs +1 -0
  52. package/dist/actions/charge-payment-method.cjs.map +1 -1
  53. package/dist/actions/charge-payment-method.d.cts +3 -55
  54. package/dist/actions/charge-payment-method.d.cts.map +1 -1
  55. package/dist/actions/charge-payment-method.d.mts +3 -55
  56. package/dist/actions/charge-payment-method.d.mts.map +1 -1
  57. package/dist/actions/charge-payment-method.mjs +1 -0
  58. package/dist/actions/charge-payment-method.mjs.map +1 -1
  59. package/dist/actions/create-invoice.cjs +1 -0
  60. package/dist/actions/create-invoice.cjs.map +1 -1
  61. package/dist/actions/create-invoice.d.cts +5 -151
  62. package/dist/actions/create-invoice.d.cts.map +1 -1
  63. package/dist/actions/create-invoice.d.mts +5 -151
  64. package/dist/actions/create-invoice.d.mts.map +1 -1
  65. package/dist/actions/create-invoice.mjs +1 -0
  66. package/dist/actions/create-invoice.mjs.map +1 -1
  67. package/dist/actions/create-payment.cjs +1 -0
  68. package/dist/actions/create-payment.cjs.map +1 -1
  69. package/dist/actions/create-payment.d.cts +3 -77
  70. package/dist/actions/create-payment.d.cts.map +1 -1
  71. package/dist/actions/create-payment.d.mts +3 -77
  72. package/dist/actions/create-payment.d.mts.map +1 -1
  73. package/dist/actions/create-payment.mjs +1 -0
  74. package/dist/actions/create-payment.mjs.map +1 -1
  75. package/dist/actions/create-payments-billing-plans.cjs +1 -0
  76. package/dist/actions/create-payments-billing-plans.cjs.map +1 -1
  77. package/dist/actions/create-payments-billing-plans.d.cts +3 -48
  78. package/dist/actions/create-payments-billing-plans.d.cts.map +1 -1
  79. package/dist/actions/create-payments-billing-plans.d.mts +3 -48
  80. package/dist/actions/create-payments-billing-plans.d.mts.map +1 -1
  81. package/dist/actions/create-payments-billing-plans.mjs +1 -0
  82. package/dist/actions/create-payments-billing-plans.mjs.map +1 -1
  83. package/dist/actions/create-plan.cjs +1 -0
  84. package/dist/actions/create-plan.cjs.map +1 -1
  85. package/dist/actions/create-plan.d.cts +3 -49
  86. package/dist/actions/create-plan.d.cts.map +1 -1
  87. package/dist/actions/create-plan.d.mts +3 -49
  88. package/dist/actions/create-plan.d.mts.map +1 -1
  89. package/dist/actions/create-plan.mjs +1 -0
  90. package/dist/actions/create-plan.mjs.map +1 -1
  91. package/dist/actions/create-product.cjs +1 -0
  92. package/dist/actions/create-product.cjs.map +1 -1
  93. package/dist/actions/create-product.d.cts +3 -21
  94. package/dist/actions/create-product.d.cts.map +1 -1
  95. package/dist/actions/create-product.d.mts +3 -21
  96. package/dist/actions/create-product.d.mts.map +1 -1
  97. package/dist/actions/create-product.mjs +1 -0
  98. package/dist/actions/create-product.mjs.map +1 -1
  99. package/dist/actions/create-subscription.cjs +1 -0
  100. package/dist/actions/create-subscription.cjs.map +1 -1
  101. package/dist/actions/create-subscription.d.cts +3 -88
  102. package/dist/actions/create-subscription.d.cts.map +1 -1
  103. package/dist/actions/create-subscription.d.mts +3 -88
  104. package/dist/actions/create-subscription.d.mts.map +1 -1
  105. package/dist/actions/create-subscription.mjs +1 -0
  106. package/dist/actions/create-subscription.mjs.map +1 -1
  107. package/dist/actions/create-template.cjs +1 -0
  108. package/dist/actions/create-template.cjs.map +1 -1
  109. package/dist/actions/create-template.d.cts +3 -119
  110. package/dist/actions/create-template.d.cts.map +1 -1
  111. package/dist/actions/create-template.d.mts +3 -119
  112. package/dist/actions/create-template.d.mts.map +1 -1
  113. package/dist/actions/create-template.mjs +1 -0
  114. package/dist/actions/create-template.mjs.map +1 -1
  115. package/dist/actions/create-web-profile.cjs +1 -0
  116. package/dist/actions/create-web-profile.cjs.map +1 -1
  117. package/dist/actions/create-web-profile.d.cts +3 -32
  118. package/dist/actions/create-web-profile.d.cts.map +1 -1
  119. package/dist/actions/create-web-profile.d.mts +3 -32
  120. package/dist/actions/create-web-profile.d.mts.map +1 -1
  121. package/dist/actions/create-web-profile.mjs +1 -0
  122. package/dist/actions/create-web-profile.mjs.map +1 -1
  123. package/dist/actions/create-webhook-lookup.cjs +1 -0
  124. package/dist/actions/create-webhook-lookup.cjs.map +1 -1
  125. package/dist/actions/create-webhook-lookup.d.cts +3 -13
  126. package/dist/actions/create-webhook-lookup.d.cts.map +1 -1
  127. package/dist/actions/create-webhook-lookup.d.mts +3 -13
  128. package/dist/actions/create-webhook-lookup.d.mts.map +1 -1
  129. package/dist/actions/create-webhook-lookup.mjs +1 -0
  130. package/dist/actions/create-webhook-lookup.mjs.map +1 -1
  131. package/dist/actions/create-webhook.cjs +1 -0
  132. package/dist/actions/create-webhook.cjs.map +1 -1
  133. package/dist/actions/create-webhook.d.cts +3 -21
  134. package/dist/actions/create-webhook.d.cts.map +1 -1
  135. package/dist/actions/create-webhook.d.mts +3 -21
  136. package/dist/actions/create-webhook.d.mts.map +1 -1
  137. package/dist/actions/create-webhook.mjs +1 -0
  138. package/dist/actions/create-webhook.mjs.map +1 -1
  139. package/dist/actions/deactivate-plan.cjs +1 -0
  140. package/dist/actions/deactivate-plan.cjs.map +1 -1
  141. package/dist/actions/deactivate-plan.d.cts +3 -15
  142. package/dist/actions/deactivate-plan.d.cts.map +1 -1
  143. package/dist/actions/deactivate-plan.d.mts +3 -15
  144. package/dist/actions/deactivate-plan.d.mts.map +1 -1
  145. package/dist/actions/deactivate-plan.mjs +1 -0
  146. package/dist/actions/deactivate-plan.mjs.map +1 -1
  147. package/dist/actions/delete-external-payment.cjs +1 -0
  148. package/dist/actions/delete-external-payment.cjs.map +1 -1
  149. package/dist/actions/delete-external-payment.d.cts +3 -16
  150. package/dist/actions/delete-external-payment.d.cts.map +1 -1
  151. package/dist/actions/delete-external-payment.d.mts +3 -16
  152. package/dist/actions/delete-external-payment.d.mts.map +1 -1
  153. package/dist/actions/delete-external-payment.mjs +1 -0
  154. package/dist/actions/delete-external-payment.mjs.map +1 -1
  155. package/dist/actions/delete-invoice-payment-record.cjs +1 -0
  156. package/dist/actions/delete-invoice-payment-record.cjs.map +1 -1
  157. package/dist/actions/delete-invoice-payment-record.d.cts +3 -16
  158. package/dist/actions/delete-invoice-payment-record.d.cts.map +1 -1
  159. package/dist/actions/delete-invoice-payment-record.d.mts +3 -16
  160. package/dist/actions/delete-invoice-payment-record.d.mts.map +1 -1
  161. package/dist/actions/delete-invoice-payment-record.mjs +1 -0
  162. package/dist/actions/delete-invoice-payment-record.mjs.map +1 -1
  163. package/dist/actions/delete-invoice-refund-record.cjs +1 -0
  164. package/dist/actions/delete-invoice-refund-record.cjs.map +1 -1
  165. package/dist/actions/delete-invoice-refund-record.d.cts +3 -16
  166. package/dist/actions/delete-invoice-refund-record.d.cts.map +1 -1
  167. package/dist/actions/delete-invoice-refund-record.d.mts +3 -16
  168. package/dist/actions/delete-invoice-refund-record.d.mts.map +1 -1
  169. package/dist/actions/delete-invoice-refund-record.mjs +1 -0
  170. package/dist/actions/delete-invoice-refund-record.mjs.map +1 -1
  171. package/dist/actions/delete-invoice.cjs +1 -0
  172. package/dist/actions/delete-invoice.cjs.map +1 -1
  173. package/dist/actions/delete-invoice.d.cts +3 -15
  174. package/dist/actions/delete-invoice.d.cts.map +1 -1
  175. package/dist/actions/delete-invoice.d.mts +3 -15
  176. package/dist/actions/delete-invoice.d.mts.map +1 -1
  177. package/dist/actions/delete-invoice.mjs +1 -0
  178. package/dist/actions/delete-invoice.mjs.map +1 -1
  179. package/dist/actions/delete-payment-resource.cjs +1 -0
  180. package/dist/actions/delete-payment-resource.cjs.map +1 -1
  181. package/dist/actions/delete-payment-resource.d.cts +3 -15
  182. package/dist/actions/delete-payment-resource.d.cts.map +1 -1
  183. package/dist/actions/delete-payment-resource.d.mts +3 -15
  184. package/dist/actions/delete-payment-resource.d.mts.map +1 -1
  185. package/dist/actions/delete-payment-resource.mjs +1 -0
  186. package/dist/actions/delete-payment-resource.mjs.map +1 -1
  187. package/dist/actions/delete-template.cjs +1 -0
  188. package/dist/actions/delete-template.cjs.map +1 -1
  189. package/dist/actions/delete-template.d.cts +3 -15
  190. package/dist/actions/delete-template.d.cts.map +1 -1
  191. package/dist/actions/delete-template.d.mts +3 -15
  192. package/dist/actions/delete-template.d.mts.map +1 -1
  193. package/dist/actions/delete-template.mjs +1 -0
  194. package/dist/actions/delete-template.mjs.map +1 -1
  195. package/dist/actions/delete-web-profile.cjs +1 -0
  196. package/dist/actions/delete-web-profile.cjs.map +1 -1
  197. package/dist/actions/delete-web-profile.d.cts +3 -15
  198. package/dist/actions/delete-web-profile.d.cts.map +1 -1
  199. package/dist/actions/delete-web-profile.d.mts +3 -15
  200. package/dist/actions/delete-web-profile.d.mts.map +1 -1
  201. package/dist/actions/delete-web-profile.mjs +1 -0
  202. package/dist/actions/delete-web-profile.mjs.map +1 -1
  203. package/dist/actions/delete-webhook.cjs +1 -0
  204. package/dist/actions/delete-webhook.cjs.map +1 -1
  205. package/dist/actions/delete-webhook.d.cts +3 -15
  206. package/dist/actions/delete-webhook.d.cts.map +1 -1
  207. package/dist/actions/delete-webhook.d.mts +3 -15
  208. package/dist/actions/delete-webhook.d.mts.map +1 -1
  209. package/dist/actions/delete-webhook.mjs +1 -0
  210. package/dist/actions/delete-webhook.mjs.map +1 -1
  211. package/dist/actions/fetch-node.cjs +1 -0
  212. package/dist/actions/fetch-node.cjs.map +1 -1
  213. package/dist/actions/fetch-node.d.cts +3 -15
  214. package/dist/actions/fetch-node.d.cts.map +1 -1
  215. package/dist/actions/fetch-node.d.mts +3 -15
  216. package/dist/actions/fetch-node.d.mts.map +1 -1
  217. package/dist/actions/fetch-node.mjs +1 -0
  218. package/dist/actions/fetch-node.mjs.map +1 -1
  219. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs +1 -0
  220. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs.map +1 -1
  221. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts +3 -15
  222. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts.map +1 -1
  223. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +3 -15
  224. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts.map +1 -1
  225. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs +1 -0
  226. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs.map +1 -1
  227. package/dist/actions/find-eligible-methods.cjs +1 -0
  228. package/dist/actions/find-eligible-methods.cjs.map +1 -1
  229. package/dist/actions/find-eligible-methods.d.cts +3 -49
  230. package/dist/actions/find-eligible-methods.d.cts.map +1 -1
  231. package/dist/actions/find-eligible-methods.d.mts +3 -49
  232. package/dist/actions/find-eligible-methods.d.mts.map +1 -1
  233. package/dist/actions/find-eligible-methods.mjs +1 -0
  234. package/dist/actions/find-eligible-methods.mjs.map +1 -1
  235. package/dist/actions/generate-client-token.cjs +1 -0
  236. package/dist/actions/generate-client-token.cjs.map +1 -1
  237. package/dist/actions/generate-client-token.d.cts +3 -13
  238. package/dist/actions/generate-client-token.d.cts.map +1 -1
  239. package/dist/actions/generate-client-token.d.mts +3 -13
  240. package/dist/actions/generate-client-token.d.mts.map +1 -1
  241. package/dist/actions/generate-client-token.mjs +1 -0
  242. package/dist/actions/generate-client-token.mjs.map +1 -1
  243. package/dist/actions/generate-next-invoice-number-v2.cjs +1 -0
  244. package/dist/actions/generate-next-invoice-number-v2.cjs.map +1 -1
  245. package/dist/actions/generate-next-invoice-number-v2.d.cts +3 -15
  246. package/dist/actions/generate-next-invoice-number-v2.d.cts.map +1 -1
  247. package/dist/actions/generate-next-invoice-number-v2.d.mts +3 -15
  248. package/dist/actions/generate-next-invoice-number-v2.d.mts.map +1 -1
  249. package/dist/actions/generate-next-invoice-number-v2.mjs +1 -0
  250. package/dist/actions/generate-next-invoice-number-v2.mjs.map +1 -1
  251. package/dist/actions/generate-next-invoice-number.cjs +1 -0
  252. package/dist/actions/generate-next-invoice-number.cjs.map +1 -1
  253. package/dist/actions/generate-next-invoice-number.d.cts +3 -13
  254. package/dist/actions/generate-next-invoice-number.d.cts.map +1 -1
  255. package/dist/actions/generate-next-invoice-number.d.mts +3 -13
  256. package/dist/actions/generate-next-invoice-number.d.mts.map +1 -1
  257. package/dist/actions/generate-next-invoice-number.mjs +1 -0
  258. package/dist/actions/generate-next-invoice-number.mjs.map +1 -1
  259. package/dist/actions/generate-qr-code.cjs +1 -0
  260. package/dist/actions/generate-qr-code.cjs.map +1 -1
  261. package/dist/actions/generate-qr-code.d.cts +3 -18
  262. package/dist/actions/generate-qr-code.d.cts.map +1 -1
  263. package/dist/actions/generate-qr-code.d.mts +3 -18
  264. package/dist/actions/generate-qr-code.d.mts.map +1 -1
  265. package/dist/actions/generate-qr-code.mjs +1 -0
  266. package/dist/actions/generate-qr-code.mjs.map +1 -1
  267. package/dist/actions/get-billing-subscriptions.cjs +1 -0
  268. package/dist/actions/get-billing-subscriptions.cjs.map +1 -1
  269. package/dist/actions/get-billing-subscriptions.d.cts +3 -20
  270. package/dist/actions/get-billing-subscriptions.d.cts.map +1 -1
  271. package/dist/actions/get-billing-subscriptions.d.mts +3 -20
  272. package/dist/actions/get-billing-subscriptions.d.mts.map +1 -1
  273. package/dist/actions/get-billing-subscriptions.mjs +1 -0
  274. package/dist/actions/get-billing-subscriptions.mjs.map +1 -1
  275. package/dist/actions/get-invoice.cjs +1 -0
  276. package/dist/actions/get-invoice.cjs.map +1 -1
  277. package/dist/actions/get-invoice.d.cts +3 -15
  278. package/dist/actions/get-invoice.d.cts.map +1 -1
  279. package/dist/actions/get-invoice.d.mts +3 -15
  280. package/dist/actions/get-invoice.d.mts.map +1 -1
  281. package/dist/actions/get-invoice.mjs +1 -0
  282. package/dist/actions/get-invoice.mjs.map +1 -1
  283. package/dist/actions/get-invoicing-invoices-qr-code.cjs +1 -0
  284. package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -1
  285. package/dist/actions/get-invoicing-invoices-qr-code.d.cts +3 -18
  286. package/dist/actions/get-invoicing-invoices-qr-code.d.cts.map +1 -1
  287. package/dist/actions/get-invoicing-invoices-qr-code.d.mts +3 -18
  288. package/dist/actions/get-invoicing-invoices-qr-code.d.mts.map +1 -1
  289. package/dist/actions/get-invoicing-invoices-qr-code.mjs +1 -0
  290. package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -1
  291. package/dist/actions/get-invoicing-template.cjs +1 -0
  292. package/dist/actions/get-invoicing-template.cjs.map +1 -1
  293. package/dist/actions/get-invoicing-template.d.cts +3 -15
  294. package/dist/actions/get-invoicing-template.d.cts.map +1 -1
  295. package/dist/actions/get-invoicing-template.d.mts +3 -15
  296. package/dist/actions/get-invoicing-template.d.mts.map +1 -1
  297. package/dist/actions/get-invoicing-template.mjs +1 -0
  298. package/dist/actions/get-invoicing-template.mjs.map +1 -1
  299. package/dist/actions/get-order.cjs +1 -0
  300. package/dist/actions/get-order.cjs.map +1 -1
  301. package/dist/actions/get-order.d.cts +3 -16
  302. package/dist/actions/get-order.d.cts.map +1 -1
  303. package/dist/actions/get-order.d.mts +3 -16
  304. package/dist/actions/get-order.d.mts.map +1 -1
  305. package/dist/actions/get-order.mjs +1 -0
  306. package/dist/actions/get-order.mjs.map +1 -1
  307. package/dist/actions/get-payment.cjs +1 -0
  308. package/dist/actions/get-payment.cjs.map +1 -1
  309. package/dist/actions/get-payment.d.cts +3 -15
  310. package/dist/actions/get-payment.d.cts.map +1 -1
  311. package/dist/actions/get-payment.d.mts +3 -15
  312. package/dist/actions/get-payment.d.mts.map +1 -1
  313. package/dist/actions/get-payment.mjs +1 -0
  314. package/dist/actions/get-payment.mjs.map +1 -1
  315. package/dist/actions/get-payments-refund.cjs +1 -0
  316. package/dist/actions/get-payments-refund.cjs.map +1 -1
  317. package/dist/actions/get-payments-refund.d.cts +3 -15
  318. package/dist/actions/get-payments-refund.d.cts.map +1 -1
  319. package/dist/actions/get-payments-refund.d.mts +3 -15
  320. package/dist/actions/get-payments-refund.d.mts.map +1 -1
  321. package/dist/actions/get-payments-refund.mjs +1 -0
  322. package/dist/actions/get-payments-refund.mjs.map +1 -1
  323. package/dist/actions/get-plan.cjs +1 -0
  324. package/dist/actions/get-plan.cjs.map +1 -1
  325. package/dist/actions/get-plan.d.cts +3 -15
  326. package/dist/actions/get-plan.d.cts.map +1 -1
  327. package/dist/actions/get-plan.d.mts +3 -15
  328. package/dist/actions/get-plan.d.mts.map +1 -1
  329. package/dist/actions/get-plan.mjs +1 -0
  330. package/dist/actions/get-plan.mjs.map +1 -1
  331. package/dist/actions/get-product.cjs +1 -0
  332. package/dist/actions/get-product.cjs.map +1 -1
  333. package/dist/actions/get-product.d.cts +3 -15
  334. package/dist/actions/get-product.d.cts.map +1 -1
  335. package/dist/actions/get-product.d.mts +3 -15
  336. package/dist/actions/get-product.d.mts.map +1 -1
  337. package/dist/actions/get-product.mjs +1 -0
  338. package/dist/actions/get-product.mjs.map +1 -1
  339. package/dist/actions/get-subscription.cjs +1 -0
  340. package/dist/actions/get-subscription.cjs.map +1 -1
  341. package/dist/actions/get-subscription.d.cts +3 -16
  342. package/dist/actions/get-subscription.d.cts.map +1 -1
  343. package/dist/actions/get-subscription.d.mts +3 -16
  344. package/dist/actions/get-subscription.d.mts.map +1 -1
  345. package/dist/actions/get-subscription.mjs +1 -0
  346. package/dist/actions/get-subscription.mjs.map +1 -1
  347. package/dist/actions/get-user-info.cjs +1 -0
  348. package/dist/actions/get-user-info.cjs.map +1 -1
  349. package/dist/actions/get-user-info.d.cts +3 -15
  350. package/dist/actions/get-user-info.d.cts.map +1 -1
  351. package/dist/actions/get-user-info.d.mts +3 -15
  352. package/dist/actions/get-user-info.d.mts.map +1 -1
  353. package/dist/actions/get-user-info.mjs +1 -0
  354. package/dist/actions/get-user-info.mjs.map +1 -1
  355. package/dist/actions/get-userinfo.cjs +1 -0
  356. package/dist/actions/get-userinfo.cjs.map +1 -1
  357. package/dist/actions/get-userinfo.d.cts +3 -15
  358. package/dist/actions/get-userinfo.d.cts.map +1 -1
  359. package/dist/actions/get-userinfo.d.mts +3 -15
  360. package/dist/actions/get-userinfo.d.mts.map +1 -1
  361. package/dist/actions/get-userinfo.mjs +1 -0
  362. package/dist/actions/get-userinfo.mjs.map +1 -1
  363. package/dist/actions/get-web-profile.cjs +1 -0
  364. package/dist/actions/get-web-profile.cjs.map +1 -1
  365. package/dist/actions/get-web-profile.d.cts +3 -15
  366. package/dist/actions/get-web-profile.d.cts.map +1 -1
  367. package/dist/actions/get-web-profile.d.mts +3 -15
  368. package/dist/actions/get-web-profile.d.mts.map +1 -1
  369. package/dist/actions/get-web-profile.mjs +1 -0
  370. package/dist/actions/get-web-profile.mjs.map +1 -1
  371. package/dist/actions/get-webhook-lookup.cjs +1 -0
  372. package/dist/actions/get-webhook-lookup.cjs.map +1 -1
  373. package/dist/actions/get-webhook-lookup.d.cts +3 -15
  374. package/dist/actions/get-webhook-lookup.d.cts.map +1 -1
  375. package/dist/actions/get-webhook-lookup.d.mts +3 -15
  376. package/dist/actions/get-webhook-lookup.d.mts.map +1 -1
  377. package/dist/actions/get-webhook-lookup.mjs +1 -0
  378. package/dist/actions/get-webhook-lookup.mjs.map +1 -1
  379. package/dist/actions/get-webhook.cjs +1 -0
  380. package/dist/actions/get-webhook.cjs.map +1 -1
  381. package/dist/actions/get-webhook.d.cts +3 -15
  382. package/dist/actions/get-webhook.d.cts.map +1 -1
  383. package/dist/actions/get-webhook.d.mts +3 -15
  384. package/dist/actions/get-webhook.d.mts.map +1 -1
  385. package/dist/actions/get-webhook.mjs +1 -0
  386. package/dist/actions/get-webhook.mjs.map +1 -1
  387. package/dist/actions/list-disputes.cjs +1 -0
  388. package/dist/actions/list-disputes.cjs.map +1 -1
  389. package/dist/actions/list-disputes.d.cts +3 -21
  390. package/dist/actions/list-disputes.d.cts.map +1 -1
  391. package/dist/actions/list-disputes.d.mts +3 -21
  392. package/dist/actions/list-disputes.d.mts.map +1 -1
  393. package/dist/actions/list-disputes.mjs +1 -0
  394. package/dist/actions/list-disputes.mjs.map +1 -1
  395. package/dist/actions/list-invoices.cjs +1 -0
  396. package/dist/actions/list-invoices.cjs.map +1 -1
  397. package/dist/actions/list-invoices.d.cts +3 -18
  398. package/dist/actions/list-invoices.d.cts.map +1 -1
  399. package/dist/actions/list-invoices.d.mts +3 -18
  400. package/dist/actions/list-invoices.d.mts.map +1 -1
  401. package/dist/actions/list-invoices.mjs +1 -0
  402. package/dist/actions/list-invoices.mjs.map +1 -1
  403. package/dist/actions/list-legacy-billing-plans.cjs +1 -0
  404. package/dist/actions/list-legacy-billing-plans.cjs.map +1 -1
  405. package/dist/actions/list-legacy-billing-plans.d.cts +3 -20
  406. package/dist/actions/list-legacy-billing-plans.d.cts.map +1 -1
  407. package/dist/actions/list-legacy-billing-plans.d.mts +3 -20
  408. package/dist/actions/list-legacy-billing-plans.d.mts.map +1 -1
  409. package/dist/actions/list-legacy-billing-plans.mjs +1 -0
  410. package/dist/actions/list-legacy-billing-plans.mjs.map +1 -1
  411. package/dist/actions/list-payments.cjs +1 -0
  412. package/dist/actions/list-payments.cjs.map +1 -1
  413. package/dist/actions/list-payments.d.cts +5 -23
  414. package/dist/actions/list-payments.d.cts.map +1 -1
  415. package/dist/actions/list-payments.d.mts +5 -23
  416. package/dist/actions/list-payments.d.mts.map +1 -1
  417. package/dist/actions/list-payments.mjs +1 -0
  418. package/dist/actions/list-payments.mjs.map +1 -1
  419. package/dist/actions/list-plans.cjs +1 -0
  420. package/dist/actions/list-plans.cjs.map +1 -1
  421. package/dist/actions/list-plans.d.cts +3 -18
  422. package/dist/actions/list-plans.d.cts.map +1 -1
  423. package/dist/actions/list-plans.d.mts +3 -18
  424. package/dist/actions/list-plans.d.mts.map +1 -1
  425. package/dist/actions/list-plans.mjs +1 -0
  426. package/dist/actions/list-plans.mjs.map +1 -1
  427. package/dist/actions/list-products.cjs +1 -0
  428. package/dist/actions/list-products.cjs.map +1 -1
  429. package/dist/actions/list-products.d.cts +3 -17
  430. package/dist/actions/list-products.d.cts.map +1 -1
  431. package/dist/actions/list-products.d.mts +3 -17
  432. package/dist/actions/list-products.d.mts.map +1 -1
  433. package/dist/actions/list-products.mjs +1 -0
  434. package/dist/actions/list-products.mjs.map +1 -1
  435. package/dist/actions/list-templates.cjs +1 -0
  436. package/dist/actions/list-templates.cjs.map +1 -1
  437. package/dist/actions/list-templates.d.cts +3 -17
  438. package/dist/actions/list-templates.d.cts.map +1 -1
  439. package/dist/actions/list-templates.d.mts +3 -17
  440. package/dist/actions/list-templates.d.mts.map +1 -1
  441. package/dist/actions/list-templates.mjs +1 -0
  442. package/dist/actions/list-templates.mjs.map +1 -1
  443. package/dist/actions/list-web-profiles.cjs +1 -0
  444. package/dist/actions/list-web-profiles.cjs.map +1 -1
  445. package/dist/actions/list-web-profiles.d.cts +3 -17
  446. package/dist/actions/list-web-profiles.d.cts.map +1 -1
  447. package/dist/actions/list-web-profiles.d.mts +3 -17
  448. package/dist/actions/list-web-profiles.d.mts.map +1 -1
  449. package/dist/actions/list-web-profiles.mjs +1 -0
  450. package/dist/actions/list-web-profiles.mjs.map +1 -1
  451. package/dist/actions/list-webhook-event-type-subscriptions.cjs +1 -0
  452. package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -1
  453. package/dist/actions/list-webhook-event-type-subscriptions.d.cts +3 -15
  454. package/dist/actions/list-webhook-event-type-subscriptions.d.cts.map +1 -1
  455. package/dist/actions/list-webhook-event-type-subscriptions.d.mts +3 -15
  456. package/dist/actions/list-webhook-event-type-subscriptions.d.mts.map +1 -1
  457. package/dist/actions/list-webhook-event-type-subscriptions.mjs +1 -0
  458. package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -1
  459. package/dist/actions/list-webhook-event-types.cjs +1 -0
  460. package/dist/actions/list-webhook-event-types.cjs.map +1 -1
  461. package/dist/actions/list-webhook-event-types.d.cts +3 -13
  462. package/dist/actions/list-webhook-event-types.d.cts.map +1 -1
  463. package/dist/actions/list-webhook-event-types.d.mts +3 -13
  464. package/dist/actions/list-webhook-event-types.d.mts.map +1 -1
  465. package/dist/actions/list-webhook-event-types.mjs +1 -0
  466. package/dist/actions/list-webhook-event-types.mjs.map +1 -1
  467. package/dist/actions/list-webhook-lookups.cjs +1 -0
  468. package/dist/actions/list-webhook-lookups.cjs.map +1 -1
  469. package/dist/actions/list-webhook-lookups.d.cts +3 -13
  470. package/dist/actions/list-webhook-lookups.d.cts.map +1 -1
  471. package/dist/actions/list-webhook-lookups.d.mts +3 -13
  472. package/dist/actions/list-webhook-lookups.d.mts.map +1 -1
  473. package/dist/actions/list-webhook-lookups.mjs +1 -0
  474. package/dist/actions/list-webhook-lookups.mjs.map +1 -1
  475. package/dist/actions/list-webhooks.cjs +1 -0
  476. package/dist/actions/list-webhooks.cjs.map +1 -1
  477. package/dist/actions/list-webhooks.d.cts +3 -15
  478. package/dist/actions/list-webhooks.d.cts.map +1 -1
  479. package/dist/actions/list-webhooks.d.mts +3 -15
  480. package/dist/actions/list-webhooks.d.mts.map +1 -1
  481. package/dist/actions/list-webhooks.mjs +1 -0
  482. package/dist/actions/list-webhooks.mjs.map +1 -1
  483. package/dist/actions/patch-orders.cjs +1 -0
  484. package/dist/actions/patch-orders.cjs.map +1 -1
  485. package/dist/actions/patch-orders.d.cts +3 -22
  486. package/dist/actions/patch-orders.d.cts.map +1 -1
  487. package/dist/actions/patch-orders.d.mts +3 -22
  488. package/dist/actions/patch-orders.d.mts.map +1 -1
  489. package/dist/actions/patch-orders.mjs +1 -0
  490. package/dist/actions/patch-orders.mjs.map +1 -1
  491. package/dist/actions/patch-plan.cjs +1 -0
  492. package/dist/actions/patch-plan.cjs.map +1 -1
  493. package/dist/actions/patch-plan.d.cts +3 -22
  494. package/dist/actions/patch-plan.d.cts.map +1 -1
  495. package/dist/actions/patch-plan.d.mts +3 -22
  496. package/dist/actions/patch-plan.d.mts.map +1 -1
  497. package/dist/actions/patch-plan.mjs +1 -0
  498. package/dist/actions/patch-plan.mjs.map +1 -1
  499. package/dist/actions/patch-subscription.cjs +1 -0
  500. package/dist/actions/patch-subscription.cjs.map +1 -1
  501. package/dist/actions/patch-subscription.d.cts +3 -22
  502. package/dist/actions/patch-subscription.d.cts.map +1 -1
  503. package/dist/actions/patch-subscription.d.mts +3 -22
  504. package/dist/actions/patch-subscription.d.mts.map +1 -1
  505. package/dist/actions/patch-subscription.mjs +1 -0
  506. package/dist/actions/patch-subscription.mjs.map +1 -1
  507. package/dist/actions/patch-web-profile.cjs +1 -0
  508. package/dist/actions/patch-web-profile.cjs.map +1 -1
  509. package/dist/actions/patch-web-profile.d.cts +3 -22
  510. package/dist/actions/patch-web-profile.d.cts.map +1 -1
  511. package/dist/actions/patch-web-profile.d.mts +3 -22
  512. package/dist/actions/patch-web-profile.d.mts.map +1 -1
  513. package/dist/actions/patch-web-profile.mjs +1 -0
  514. package/dist/actions/patch-web-profile.mjs.map +1 -1
  515. package/dist/actions/ping-braintree.cjs +1 -0
  516. package/dist/actions/ping-braintree.cjs.map +1 -1
  517. package/dist/actions/ping-braintree.d.cts +3 -13
  518. package/dist/actions/ping-braintree.d.cts.map +1 -1
  519. package/dist/actions/ping-braintree.d.mts +3 -13
  520. package/dist/actions/ping-braintree.d.mts.map +1 -1
  521. package/dist/actions/ping-braintree.mjs +1 -0
  522. package/dist/actions/ping-braintree.mjs.map +1 -1
  523. package/dist/actions/query-braintree-report.cjs +1 -0
  524. package/dist/actions/query-braintree-report.cjs.map +1 -1
  525. package/dist/actions/query-braintree-report.d.cts +3 -18
  526. package/dist/actions/query-braintree-report.d.cts.map +1 -1
  527. package/dist/actions/query-braintree-report.d.mts +3 -18
  528. package/dist/actions/query-braintree-report.d.mts.map +1 -1
  529. package/dist/actions/query-braintree-report.mjs +1 -0
  530. package/dist/actions/query-braintree-report.mjs.map +1 -1
  531. package/dist/actions/retrieve-payment-resource.cjs +1 -0
  532. package/dist/actions/retrieve-payment-resource.cjs.map +1 -1
  533. package/dist/actions/retrieve-payment-resource.d.cts +3 -15
  534. package/dist/actions/retrieve-payment-resource.d.cts.map +1 -1
  535. package/dist/actions/retrieve-payment-resource.d.mts +3 -15
  536. package/dist/actions/retrieve-payment-resource.d.mts.map +1 -1
  537. package/dist/actions/retrieve-payment-resource.mjs +1 -0
  538. package/dist/actions/retrieve-payment-resource.mjs.map +1 -1
  539. package/dist/actions/search-invoices.cjs +1 -0
  540. package/dist/actions/search-invoices.cjs.map +1 -1
  541. package/dist/actions/search-invoices.d.cts +5 -56
  542. package/dist/actions/search-invoices.d.cts.map +1 -1
  543. package/dist/actions/search-invoices.d.mts +5 -56
  544. package/dist/actions/search-invoices.d.mts.map +1 -1
  545. package/dist/actions/search-invoices.mjs +1 -0
  546. package/dist/actions/search-invoices.mjs.map +1 -1
  547. package/dist/actions/send-invoice.cjs +1 -0
  548. package/dist/actions/send-invoice.cjs.map +1 -1
  549. package/dist/actions/send-invoice.d.cts +3 -20
  550. package/dist/actions/send-invoice.d.cts.map +1 -1
  551. package/dist/actions/send-invoice.d.mts +3 -20
  552. package/dist/actions/send-invoice.d.mts.map +1 -1
  553. package/dist/actions/send-invoice.mjs +1 -0
  554. package/dist/actions/send-invoice.mjs.map +1 -1
  555. package/dist/actions/simulate-webhook-event.cjs +1 -0
  556. package/dist/actions/simulate-webhook-event.cjs.map +1 -1
  557. package/dist/actions/simulate-webhook-event.d.cts +3 -18
  558. package/dist/actions/simulate-webhook-event.d.cts.map +1 -1
  559. package/dist/actions/simulate-webhook-event.d.mts +3 -18
  560. package/dist/actions/simulate-webhook-event.d.mts.map +1 -1
  561. package/dist/actions/simulate-webhook-event.mjs +1 -0
  562. package/dist/actions/simulate-webhook-event.mjs.map +1 -1
  563. package/dist/actions/update-dispute.cjs +1 -0
  564. package/dist/actions/update-dispute.cjs.map +1 -1
  565. package/dist/actions/update-dispute.d.cts +3 -22
  566. package/dist/actions/update-dispute.d.cts.map +1 -1
  567. package/dist/actions/update-dispute.d.mts +3 -22
  568. package/dist/actions/update-dispute.d.mts.map +1 -1
  569. package/dist/actions/update-dispute.mjs +1 -0
  570. package/dist/actions/update-dispute.mjs.map +1 -1
  571. package/dist/actions/update-invoice.cjs +1 -0
  572. package/dist/actions/update-invoice.cjs.map +1 -1
  573. package/dist/actions/update-invoice.d.cts +5 -183
  574. package/dist/actions/update-invoice.d.cts.map +1 -1
  575. package/dist/actions/update-invoice.d.mts +5 -183
  576. package/dist/actions/update-invoice.d.mts.map +1 -1
  577. package/dist/actions/update-invoice.mjs +1 -0
  578. package/dist/actions/update-invoice.mjs.map +1 -1
  579. package/dist/actions/update-pay-pal-product.cjs +1 -0
  580. package/dist/actions/update-pay-pal-product.cjs.map +1 -1
  581. package/dist/actions/update-pay-pal-product.d.cts +3 -22
  582. package/dist/actions/update-pay-pal-product.d.cts.map +1 -1
  583. package/dist/actions/update-pay-pal-product.d.mts +3 -22
  584. package/dist/actions/update-pay-pal-product.d.mts.map +1 -1
  585. package/dist/actions/update-pay-pal-product.mjs +1 -0
  586. package/dist/actions/update-pay-pal-product.mjs.map +1 -1
  587. package/dist/actions/update-pay-pal-webhook.cjs +1 -0
  588. package/dist/actions/update-pay-pal-webhook.cjs.map +1 -1
  589. package/dist/actions/update-pay-pal-webhook.d.cts +3 -22
  590. package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -1
  591. package/dist/actions/update-pay-pal-webhook.d.mts +3 -22
  592. package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -1
  593. package/dist/actions/update-pay-pal-webhook.mjs +1 -0
  594. package/dist/actions/update-pay-pal-webhook.mjs.map +1 -1
  595. package/dist/actions/update-templates.cjs +1 -0
  596. package/dist/actions/update-templates.cjs.map +1 -1
  597. package/dist/actions/update-templates.d.cts +3 -225
  598. package/dist/actions/update-templates.d.cts.map +1 -1
  599. package/dist/actions/update-templates.d.mts +3 -225
  600. package/dist/actions/update-templates.d.mts.map +1 -1
  601. package/dist/actions/update-templates.mjs +1 -0
  602. package/dist/actions/update-templates.mjs.map +1 -1
  603. package/dist/actions/update-web-profile.cjs +1 -0
  604. package/dist/actions/update-web-profile.cjs.map +1 -1
  605. package/dist/actions/update-web-profile.d.cts +3 -32
  606. package/dist/actions/update-web-profile.d.cts.map +1 -1
  607. package/dist/actions/update-web-profile.d.mts +3 -32
  608. package/dist/actions/update-web-profile.d.mts.map +1 -1
  609. package/dist/actions/update-web-profile.mjs +1 -0
  610. package/dist/actions/update-web-profile.mjs.map +1 -1
  611. package/dist/actions/verify-payment-method.cjs +1 -0
  612. package/dist/actions/verify-payment-method.cjs.map +1 -1
  613. package/dist/actions/verify-payment-method.d.cts +3 -18
  614. package/dist/actions/verify-payment-method.d.cts.map +1 -1
  615. package/dist/actions/verify-payment-method.d.mts +3 -18
  616. package/dist/actions/verify-payment-method.d.mts.map +1 -1
  617. package/dist/actions/verify-payment-method.mjs +1 -0
  618. package/dist/actions/verify-payment-method.mjs.map +1 -1
  619. package/dist/actions/verify-webhook-signature.cjs +1 -0
  620. package/dist/actions/verify-webhook-signature.cjs.map +1 -1
  621. package/dist/actions/verify-webhook-signature.d.cts +3 -36
  622. package/dist/actions/verify-webhook-signature.d.cts.map +1 -1
  623. package/dist/actions/verify-webhook-signature.d.mts +3 -36
  624. package/dist/actions/verify-webhook-signature.d.mts.map +1 -1
  625. package/dist/actions/verify-webhook-signature.mjs +1 -0
  626. package/dist/actions/verify-webhook-signature.mjs.map +1 -1
  627. package/dist/app.cjs +2 -2
  628. package/dist/app.cjs.map +1 -1
  629. package/dist/app.d.cts +4 -6
  630. package/dist/app.d.cts.map +1 -1
  631. package/dist/app.d.mts +4 -6
  632. package/dist/app.d.mts.map +1 -1
  633. package/dist/app.mjs +0 -1
  634. package/dist/app.mjs.map +1 -1
  635. package/dist/index.d.cts +1 -1
  636. package/dist/index.d.mts +1 -1
  637. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-payment-resource.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-payment-resource.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalRetrievePaymentResourceInput = z.object({\n payment_resource_id: z.string().describe(\"Unique identifier of the payment resource to retrieve. This ID is typically returned when creating a payment resource.\"),\n}).describe(\"Request model for retrieving a payment resource.\");\nconst PaypalRetrievePaymentResource_PaymentResourceLinkSchema = z.object({\n rel: z.string().describe(\"Relationship type (e.g., self, payment_link).\").nullable().optional(),\n href: z.string().describe(\"URL of the linked resource.\").nullable().optional(),\n method: z.string().describe(\"HTTP method for the link (e.g., GET, PUT).\").nullable().optional(),\n}).passthrough().describe(\"HAL link to related resources.\");\nconst PaypalRetrievePaymentResource_TaxDetailSchema = z.object({\n name: z.string().describe(\"Name of the tax.\").nullable().optional(),\n type: z.string().describe(\"Type of tax (e.g., PERCENTAGE).\").nullable().optional(),\n value: z.string().describe(\"Value of the tax.\").nullable().optional(),\n}).passthrough().describe(\"Tax information for a line item.\");\nconst PaypalRetrievePaymentResource_ShippingCostSchema = z.object({\n type: z.string().describe(\"Type of shipping (e.g., FLAT).\").nullable().optional(),\n value: z.string().describe(\"Value of the shipping cost.\").nullable().optional(),\n}).passthrough().describe(\"Shipping cost information for a line item.\");\nconst PaypalRetrievePaymentResource_UnitAmountSchema = z.object({\n value: z.string().describe(\"The value of the amount.\").nullable().optional(),\n currency_code: z.string().describe(\"Three-letter ISO currency code (e.g., USD).\").nullable().optional(),\n}).passthrough().describe(\"Currency amount for a line item.\");\nconst PaypalRetrievePaymentResource_VariantOptionSchema = z.object({\n label: z.string().describe(\"Label of the option.\").nullable().optional(),\n unit_amount: PaypalRetrievePaymentResource_UnitAmountSchema.nullable().optional(),\n}).passthrough().describe(\"Option within a variant dimension.\");\nconst PaypalRetrievePaymentResource_VariantDimensionSchema = z.object({\n name: z.string().describe(\"Name of the dimension (e.g., Color, Size).\").nullable().optional(),\n options: z.array(PaypalRetrievePaymentResource_VariantOptionSchema).describe(\"Available options for this dimension.\").nullable().optional(),\n primary: z.boolean().describe(\"Whether this is the primary dimension.\").nullable().optional(),\n}).passthrough().describe(\"Dimension specification for product variants.\");\nconst PaypalRetrievePaymentResource_VariantsSchema = z.object({\n dimensions: z.array(PaypalRetrievePaymentResource_VariantDimensionSchema).describe(\"List of variant dimensions.\").nullable().optional(),\n}).passthrough().describe(\"Product variant options.\");\nconst PaypalRetrievePaymentResource_CustomerNoteSchema = z.object({\n label: z.string().describe(\"Label for the customer note.\").nullable().optional(),\n required: z.boolean().describe(\"Whether the field is required.\").nullable().optional(),\n}).passthrough().describe(\"Customer note field.\");\nconst PaypalRetrievePaymentResource_AdjustableQuantitySchema = z.object({\n maximum: z.number().int().describe(\"Maximum allowed quantity.\").nullable().optional(),\n}).passthrough().describe(\"Quantity adjustment settings.\");\nconst PaypalRetrievePaymentResource_LineItemSchema = z.object({\n name: z.string().describe(\"Name of the product or service.\").nullable().optional(),\n taxes: z.array(PaypalRetrievePaymentResource_TaxDetailSchema).describe(\"Taxes applied to this line item.\").nullable().optional(),\n shipping: z.array(PaypalRetrievePaymentResource_ShippingCostSchema).describe(\"Shipping options for this line item.\").nullable().optional(),\n variants: PaypalRetrievePaymentResource_VariantsSchema.nullable().optional(),\n product_id: z.string().describe(\"Unique identifier for the product.\").nullable().optional(),\n description: z.string().describe(\"Description of the line item.\").nullable().optional(),\n unit_amount: PaypalRetrievePaymentResource_UnitAmountSchema.nullable().optional(),\n customer_notes: z.array(PaypalRetrievePaymentResource_CustomerNoteSchema).describe(\"Customer notes/fields for this item.\").nullable().optional(),\n adjustable_quantity: PaypalRetrievePaymentResource_AdjustableQuantitySchema.nullable().optional(),\n collect_shipping_address: z.boolean().describe(\"Whether to collect shipping address.\").nullable().optional(),\n}).passthrough().describe(\"Line item within a payment resource.\");\nexport const PaypalRetrievePaymentResourceOutput = z.object({\n id: z.string().describe(\"Unique identifier for the payment resource.\").nullable(),\n type: z.string().describe(\"Type of payment resource (e.g., BUY_NOW).\").nullable().optional(),\n links: z.array(PaypalRetrievePaymentResource_PaymentResourceLinkSchema).describe(\"HAL links to related resources (self, replace, delete, payment_link, etc.).\").nullable().optional(),\n status: z.string().describe(\"Current status of the payment resource (e.g., ACTIVE).\").nullable().optional(),\n reusable: z.string().describe(\"Whether the payment resource is reusable (e.g., MULTIPLE or SINGLE).\").nullable().optional(),\n line_items: z.array(PaypalRetrievePaymentResource_LineItemSchema).describe(\"List of line items included in the payment resource.\").nullable().optional(),\n return_url: z.string().describe(\"URL to redirect after successful payment.\").nullable().optional(),\n create_time: z.string().describe(\"ISO 8601 timestamp when the payment resource was created.\").nullable().optional(),\n update_time: z.string().describe(\"ISO 8601 timestamp when the payment resource was last updated.\").nullable().optional(),\n integration_mode: z.string().describe(\"Mode of integration (e.g., LINK).\").nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving a payment resource.\");\n\nexport const paypalRetrievePaymentResource = action(\"PAYPAL_RETRIEVE_PAYMENT_RESOURCE\", {\n slug: \"paypal-retrieve-payment-resource\",\n name: \"Retrieve Payment Resource\",\n description: \"Retrieve a PayPal payment resource by its ID. Use this action when you need to fetch details about an existing payment resource created through the Payment Links and Buttons API. This action is useful for checking payment resource status, viewing line items, or retrieving associated links after creating a payment resource. Note: Payment resources are shareable payment links used for simple payment flows.\",\n input: PaypalRetrievePaymentResourceInput,\n output: PaypalRetrievePaymentResourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC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"retrieve-payment-resource.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-payment-resource.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalRetrievePaymentResourceInput = z.object({\n payment_resource_id: z.string().describe(\"Unique identifier of the payment resource to retrieve. This ID is typically returned when creating a payment resource.\"),\n}).describe(\"Request model for retrieving a payment resource.\");\nconst PaypalRetrievePaymentResource_PaymentResourceLinkSchema = z.object({\n rel: z.string().describe(\"Relationship type (e.g., self, payment_link).\").nullable().optional(),\n href: z.string().describe(\"URL of the linked resource.\").nullable().optional(),\n method: z.string().describe(\"HTTP method for the link (e.g., GET, PUT).\").nullable().optional(),\n}).passthrough().describe(\"HAL link to related resources.\");\nconst PaypalRetrievePaymentResource_TaxDetailSchema = z.object({\n name: z.string().describe(\"Name of the tax.\").nullable().optional(),\n type: z.string().describe(\"Type of tax (e.g., PERCENTAGE).\").nullable().optional(),\n value: z.string().describe(\"Value of the tax.\").nullable().optional(),\n}).passthrough().describe(\"Tax information for a line item.\");\nconst PaypalRetrievePaymentResource_ShippingCostSchema = z.object({\n type: z.string().describe(\"Type of shipping (e.g., FLAT).\").nullable().optional(),\n value: z.string().describe(\"Value of the shipping cost.\").nullable().optional(),\n}).passthrough().describe(\"Shipping cost information for a line item.\");\nconst PaypalRetrievePaymentResource_UnitAmountSchema = z.object({\n value: z.string().describe(\"The value of the amount.\").nullable().optional(),\n currency_code: z.string().describe(\"Three-letter ISO currency code (e.g., USD).\").nullable().optional(),\n}).passthrough().describe(\"Currency amount for a line item.\");\nconst PaypalRetrievePaymentResource_VariantOptionSchema = z.object({\n label: z.string().describe(\"Label of the option.\").nullable().optional(),\n unit_amount: PaypalRetrievePaymentResource_UnitAmountSchema.nullable().optional(),\n}).passthrough().describe(\"Option within a variant dimension.\");\nconst PaypalRetrievePaymentResource_VariantDimensionSchema = z.object({\n name: z.string().describe(\"Name of the dimension (e.g., Color, Size).\").nullable().optional(),\n options: z.array(PaypalRetrievePaymentResource_VariantOptionSchema).describe(\"Available options for this dimension.\").nullable().optional(),\n primary: z.boolean().describe(\"Whether this is the primary dimension.\").nullable().optional(),\n}).passthrough().describe(\"Dimension specification for product variants.\");\nconst PaypalRetrievePaymentResource_VariantsSchema = z.object({\n dimensions: z.array(PaypalRetrievePaymentResource_VariantDimensionSchema).describe(\"List of variant dimensions.\").nullable().optional(),\n}).passthrough().describe(\"Product variant options.\");\nconst PaypalRetrievePaymentResource_CustomerNoteSchema = z.object({\n label: z.string().describe(\"Label for the customer note.\").nullable().optional(),\n required: z.boolean().describe(\"Whether the field is required.\").nullable().optional(),\n}).passthrough().describe(\"Customer note field.\");\nconst PaypalRetrievePaymentResource_AdjustableQuantitySchema = z.object({\n maximum: z.number().int().describe(\"Maximum allowed quantity.\").nullable().optional(),\n}).passthrough().describe(\"Quantity adjustment settings.\");\nconst PaypalRetrievePaymentResource_LineItemSchema = z.object({\n name: z.string().describe(\"Name of the product or service.\").nullable().optional(),\n taxes: z.array(PaypalRetrievePaymentResource_TaxDetailSchema).describe(\"Taxes applied to this line item.\").nullable().optional(),\n shipping: z.array(PaypalRetrievePaymentResource_ShippingCostSchema).describe(\"Shipping options for this line item.\").nullable().optional(),\n variants: PaypalRetrievePaymentResource_VariantsSchema.nullable().optional(),\n product_id: z.string().describe(\"Unique identifier for the product.\").nullable().optional(),\n description: z.string().describe(\"Description of the line item.\").nullable().optional(),\n unit_amount: PaypalRetrievePaymentResource_UnitAmountSchema.nullable().optional(),\n customer_notes: z.array(PaypalRetrievePaymentResource_CustomerNoteSchema).describe(\"Customer notes/fields for this item.\").nullable().optional(),\n adjustable_quantity: PaypalRetrievePaymentResource_AdjustableQuantitySchema.nullable().optional(),\n collect_shipping_address: z.boolean().describe(\"Whether to collect shipping address.\").nullable().optional(),\n}).passthrough().describe(\"Line item within a payment resource.\");\nexport const PaypalRetrievePaymentResourceOutput = z.object({\n id: z.string().describe(\"Unique identifier for the payment resource.\").nullable(),\n type: z.string().describe(\"Type of payment resource (e.g., BUY_NOW).\").nullable().optional(),\n links: z.array(PaypalRetrievePaymentResource_PaymentResourceLinkSchema).describe(\"HAL links to related resources (self, replace, delete, payment_link, etc.).\").nullable().optional(),\n status: z.string().describe(\"Current status of the payment resource (e.g., ACTIVE).\").nullable().optional(),\n reusable: z.string().describe(\"Whether the payment resource is reusable (e.g., MULTIPLE or SINGLE).\").nullable().optional(),\n line_items: z.array(PaypalRetrievePaymentResource_LineItemSchema).describe(\"List of line items included in the payment resource.\").nullable().optional(),\n return_url: z.string().describe(\"URL to redirect after successful payment.\").nullable().optional(),\n create_time: z.string().describe(\"ISO 8601 timestamp when the payment resource was created.\").nullable().optional(),\n update_time: z.string().describe(\"ISO 8601 timestamp when the payment resource was last updated.\").nullable().optional(),\n integration_mode: z.string().describe(\"Mode of integration (e.g., LINK).\").nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving a payment resource.\");\n\nexport const paypalRetrievePaymentResource: AppAction<\n typeof PaypalRetrievePaymentResourceInput,\n typeof PaypalRetrievePaymentResourceOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_RETRIEVE_PAYMENT_RESOURCE\", {\n slug: \"paypal-retrieve-payment-resource\",\n name: \"Retrieve Payment Resource\",\n description: \"Retrieve a PayPal payment resource by its ID. Use this action when you need to fetch details about an existing payment resource created through the Payment Links and Buttons API. This action is useful for checking payment resource status, viewing line items, or retrieving associated links after creating a payment resource. Note: Payment resources are shareable payment links used for simple payment flows.\",\n input: PaypalRetrievePaymentResourceInput,\n output: PaypalRetrievePaymentResourceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,EACnK,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,KAAKA,I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,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpL,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,gCAITC,eAAAA,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/retrieve-payment-resource.d.ts
@@ -58,21 +60,7 @@ declare const PaypalRetrievePaymentResourceOutput: z.ZodObject<{
58
60
  update_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
61
  integration_mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
62
  }, z.core.$loose>;
61
- declare const paypalRetrievePaymentResource: import("@keystrokehq/action").WorkflowActionDefinition<{
62
- payment_resource_id: string;
63
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
64
- connectionId: z.ZodString;
65
- entityId: z.ZodString;
66
- instanceId: z.ZodString;
67
- }, z.core.$strip>, z.ZodObject<{
68
- accessToken: z.ZodString;
69
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
70
- connectionId: z.ZodString;
71
- entityId: z.ZodString;
72
- instanceId: z.ZodString;
73
- }, z.core.$strip>, z.ZodObject<{
74
- accessToken: z.ZodString;
75
- }, z.core.$strip>>]>;
63
+ declare const paypalRetrievePaymentResource: AppAction<typeof PaypalRetrievePaymentResourceInput, typeof PaypalRetrievePaymentResourceOutput, typeof paypal.credential>;
76
64
  //#endregion
77
65
  export { paypalRetrievePaymentResource };
78
66
  //# sourceMappingURL=retrieve-payment-resource.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-payment-resource.d.cts","names":[],"sources":["../../src/actions/retrieve-payment-resource.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAoDlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAanC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"retrieve-payment-resource.d.cts","names":[],"sources":["../../src/actions/retrieve-payment-resource.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAoDlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAanC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/retrieve-payment-resource.d.ts
@@ -58,21 +60,7 @@ declare const PaypalRetrievePaymentResourceOutput: z.ZodObject<{
58
60
  update_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
61
  integration_mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
62
  }, z.core.$loose>;
61
- declare const paypalRetrievePaymentResource: import("@keystrokehq/action").WorkflowActionDefinition<{
62
- payment_resource_id: string;
63
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
64
- connectionId: z.ZodString;
65
- entityId: z.ZodString;
66
- instanceId: z.ZodString;
67
- }, z.core.$strip>, z.ZodObject<{
68
- accessToken: z.ZodString;
69
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
70
- connectionId: z.ZodString;
71
- entityId: z.ZodString;
72
- instanceId: z.ZodString;
73
- }, z.core.$strip>, z.ZodObject<{
74
- accessToken: z.ZodString;
75
- }, z.core.$strip>>]>;
63
+ declare const paypalRetrievePaymentResource: AppAction<typeof PaypalRetrievePaymentResourceInput, typeof PaypalRetrievePaymentResourceOutput, typeof paypal.credential>;
76
64
  //#endregion
77
65
  export { paypalRetrievePaymentResource };
78
66
  //# sourceMappingURL=retrieve-payment-resource.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-payment-resource.d.mts","names":[],"sources":["../../src/actions/retrieve-payment-resource.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAoDlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAanC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"retrieve-payment-resource.d.mts","names":[],"sources":["../../src/actions/retrieve-payment-resource.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAoDlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAanC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/retrieve-payment-resource.ts
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-payment-resource.mjs","names":[],"sources":["../../src/actions/retrieve-payment-resource.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalRetrievePaymentResourceInput = z.object({\n payment_resource_id: z.string().describe(\"Unique identifier of the payment resource to retrieve. This ID is typically returned when creating a payment resource.\"),\n}).describe(\"Request model for retrieving a payment resource.\");\nconst PaypalRetrievePaymentResource_PaymentResourceLinkSchema = z.object({\n rel: z.string().describe(\"Relationship type (e.g., self, payment_link).\").nullable().optional(),\n href: z.string().describe(\"URL of the linked resource.\").nullable().optional(),\n method: z.string().describe(\"HTTP method for the link (e.g., GET, PUT).\").nullable().optional(),\n}).passthrough().describe(\"HAL link to related resources.\");\nconst PaypalRetrievePaymentResource_TaxDetailSchema = z.object({\n name: z.string().describe(\"Name of the tax.\").nullable().optional(),\n type: z.string().describe(\"Type of tax (e.g., PERCENTAGE).\").nullable().optional(),\n value: z.string().describe(\"Value of the tax.\").nullable().optional(),\n}).passthrough().describe(\"Tax information for a line item.\");\nconst PaypalRetrievePaymentResource_ShippingCostSchema = z.object({\n type: z.string().describe(\"Type of shipping (e.g., FLAT).\").nullable().optional(),\n value: z.string().describe(\"Value of the shipping cost.\").nullable().optional(),\n}).passthrough().describe(\"Shipping cost information for a line item.\");\nconst PaypalRetrievePaymentResource_UnitAmountSchema = z.object({\n value: z.string().describe(\"The value of the amount.\").nullable().optional(),\n currency_code: z.string().describe(\"Three-letter ISO currency code (e.g., USD).\").nullable().optional(),\n}).passthrough().describe(\"Currency amount for a line item.\");\nconst PaypalRetrievePaymentResource_VariantOptionSchema = z.object({\n label: z.string().describe(\"Label of the option.\").nullable().optional(),\n unit_amount: PaypalRetrievePaymentResource_UnitAmountSchema.nullable().optional(),\n}).passthrough().describe(\"Option within a variant dimension.\");\nconst PaypalRetrievePaymentResource_VariantDimensionSchema = z.object({\n name: z.string().describe(\"Name of the dimension (e.g., Color, Size).\").nullable().optional(),\n options: z.array(PaypalRetrievePaymentResource_VariantOptionSchema).describe(\"Available options for this dimension.\").nullable().optional(),\n primary: z.boolean().describe(\"Whether this is the primary dimension.\").nullable().optional(),\n}).passthrough().describe(\"Dimension specification for product variants.\");\nconst PaypalRetrievePaymentResource_VariantsSchema = z.object({\n dimensions: z.array(PaypalRetrievePaymentResource_VariantDimensionSchema).describe(\"List of variant dimensions.\").nullable().optional(),\n}).passthrough().describe(\"Product variant options.\");\nconst PaypalRetrievePaymentResource_CustomerNoteSchema = z.object({\n label: z.string().describe(\"Label for the customer note.\").nullable().optional(),\n required: z.boolean().describe(\"Whether the field is required.\").nullable().optional(),\n}).passthrough().describe(\"Customer note field.\");\nconst PaypalRetrievePaymentResource_AdjustableQuantitySchema = z.object({\n maximum: z.number().int().describe(\"Maximum allowed quantity.\").nullable().optional(),\n}).passthrough().describe(\"Quantity adjustment settings.\");\nconst PaypalRetrievePaymentResource_LineItemSchema = z.object({\n name: z.string().describe(\"Name of the product or service.\").nullable().optional(),\n taxes: z.array(PaypalRetrievePaymentResource_TaxDetailSchema).describe(\"Taxes applied to this line item.\").nullable().optional(),\n shipping: z.array(PaypalRetrievePaymentResource_ShippingCostSchema).describe(\"Shipping options for this line item.\").nullable().optional(),\n variants: PaypalRetrievePaymentResource_VariantsSchema.nullable().optional(),\n product_id: z.string().describe(\"Unique identifier for the product.\").nullable().optional(),\n description: z.string().describe(\"Description of the line item.\").nullable().optional(),\n unit_amount: PaypalRetrievePaymentResource_UnitAmountSchema.nullable().optional(),\n customer_notes: z.array(PaypalRetrievePaymentResource_CustomerNoteSchema).describe(\"Customer notes/fields for this item.\").nullable().optional(),\n adjustable_quantity: PaypalRetrievePaymentResource_AdjustableQuantitySchema.nullable().optional(),\n collect_shipping_address: z.boolean().describe(\"Whether to collect shipping address.\").nullable().optional(),\n}).passthrough().describe(\"Line item within a payment resource.\");\nexport const PaypalRetrievePaymentResourceOutput = z.object({\n id: z.string().describe(\"Unique identifier for the payment resource.\").nullable(),\n type: z.string().describe(\"Type of payment resource (e.g., BUY_NOW).\").nullable().optional(),\n links: z.array(PaypalRetrievePaymentResource_PaymentResourceLinkSchema).describe(\"HAL links to related resources (self, replace, delete, payment_link, etc.).\").nullable().optional(),\n status: z.string().describe(\"Current status of the payment resource (e.g., ACTIVE).\").nullable().optional(),\n reusable: z.string().describe(\"Whether the payment resource is reusable (e.g., MULTIPLE or SINGLE).\").nullable().optional(),\n line_items: z.array(PaypalRetrievePaymentResource_LineItemSchema).describe(\"List of line items included in the payment resource.\").nullable().optional(),\n return_url: z.string().describe(\"URL to redirect after successful payment.\").nullable().optional(),\n create_time: z.string().describe(\"ISO 8601 timestamp when the payment resource was created.\").nullable().optional(),\n update_time: z.string().describe(\"ISO 8601 timestamp when the payment resource was last updated.\").nullable().optional(),\n integration_mode: z.string().describe(\"Mode of integration (e.g., LINK).\").nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving a payment resource.\");\n\nexport const paypalRetrievePaymentResource = action(\"PAYPAL_RETRIEVE_PAYMENT_RESOURCE\", {\n slug: \"paypal-retrieve-payment-resource\",\n name: \"Retrieve Payment Resource\",\n description: \"Retrieve a PayPal payment resource by its ID. Use this action when you need to fetch details about an existing payment resource created through the Payment Links and Buttons API. This action is useful for checking payment resource status, viewing line items, or retrieving associated links after creating a payment resource. Note: Payment resources are shareable payment links used for simple payment flows.\",\n input: PaypalRetrievePaymentResourceInput,\n output: PaypalRetrievePaymentResourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO,EACzD,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,EACnK,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,0DAA0D,EAAE,OAAO;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAC1D,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAM,mDAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,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CACb,OAAO;CACP,QAlBiD,EAAE,OAAO;EAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpL,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,YAAY,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-payment-resource.mjs","names":[],"sources":["../../src/actions/retrieve-payment-resource.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalRetrievePaymentResourceInput = z.object({\n payment_resource_id: z.string().describe(\"Unique identifier of the payment resource to retrieve. This ID is typically returned when creating a payment resource.\"),\n}).describe(\"Request model for retrieving a payment resource.\");\nconst PaypalRetrievePaymentResource_PaymentResourceLinkSchema = z.object({\n rel: z.string().describe(\"Relationship type (e.g., self, payment_link).\").nullable().optional(),\n href: z.string().describe(\"URL of the linked resource.\").nullable().optional(),\n method: z.string().describe(\"HTTP method for the link (e.g., GET, PUT).\").nullable().optional(),\n}).passthrough().describe(\"HAL link to related resources.\");\nconst PaypalRetrievePaymentResource_TaxDetailSchema = z.object({\n name: z.string().describe(\"Name of the tax.\").nullable().optional(),\n type: z.string().describe(\"Type of tax (e.g., PERCENTAGE).\").nullable().optional(),\n value: z.string().describe(\"Value of the tax.\").nullable().optional(),\n}).passthrough().describe(\"Tax information for a line item.\");\nconst PaypalRetrievePaymentResource_ShippingCostSchema = z.object({\n type: z.string().describe(\"Type of shipping (e.g., FLAT).\").nullable().optional(),\n value: z.string().describe(\"Value of the shipping cost.\").nullable().optional(),\n}).passthrough().describe(\"Shipping cost information for a line item.\");\nconst PaypalRetrievePaymentResource_UnitAmountSchema = z.object({\n value: z.string().describe(\"The value of the amount.\").nullable().optional(),\n currency_code: z.string().describe(\"Three-letter ISO currency code (e.g., USD).\").nullable().optional(),\n}).passthrough().describe(\"Currency amount for a line item.\");\nconst PaypalRetrievePaymentResource_VariantOptionSchema = z.object({\n label: z.string().describe(\"Label of the option.\").nullable().optional(),\n unit_amount: PaypalRetrievePaymentResource_UnitAmountSchema.nullable().optional(),\n}).passthrough().describe(\"Option within a variant dimension.\");\nconst PaypalRetrievePaymentResource_VariantDimensionSchema = z.object({\n name: z.string().describe(\"Name of the dimension (e.g., Color, Size).\").nullable().optional(),\n options: z.array(PaypalRetrievePaymentResource_VariantOptionSchema).describe(\"Available options for this dimension.\").nullable().optional(),\n primary: z.boolean().describe(\"Whether this is the primary dimension.\").nullable().optional(),\n}).passthrough().describe(\"Dimension specification for product variants.\");\nconst PaypalRetrievePaymentResource_VariantsSchema = z.object({\n dimensions: z.array(PaypalRetrievePaymentResource_VariantDimensionSchema).describe(\"List of variant dimensions.\").nullable().optional(),\n}).passthrough().describe(\"Product variant options.\");\nconst PaypalRetrievePaymentResource_CustomerNoteSchema = z.object({\n label: z.string().describe(\"Label for the customer note.\").nullable().optional(),\n required: z.boolean().describe(\"Whether the field is required.\").nullable().optional(),\n}).passthrough().describe(\"Customer note field.\");\nconst PaypalRetrievePaymentResource_AdjustableQuantitySchema = z.object({\n maximum: z.number().int().describe(\"Maximum allowed quantity.\").nullable().optional(),\n}).passthrough().describe(\"Quantity adjustment settings.\");\nconst PaypalRetrievePaymentResource_LineItemSchema = z.object({\n name: z.string().describe(\"Name of the product or service.\").nullable().optional(),\n taxes: z.array(PaypalRetrievePaymentResource_TaxDetailSchema).describe(\"Taxes applied to this line item.\").nullable().optional(),\n shipping: z.array(PaypalRetrievePaymentResource_ShippingCostSchema).describe(\"Shipping options for this line item.\").nullable().optional(),\n variants: PaypalRetrievePaymentResource_VariantsSchema.nullable().optional(),\n product_id: z.string().describe(\"Unique identifier for the product.\").nullable().optional(),\n description: z.string().describe(\"Description of the line item.\").nullable().optional(),\n unit_amount: PaypalRetrievePaymentResource_UnitAmountSchema.nullable().optional(),\n customer_notes: z.array(PaypalRetrievePaymentResource_CustomerNoteSchema).describe(\"Customer notes/fields for this item.\").nullable().optional(),\n adjustable_quantity: PaypalRetrievePaymentResource_AdjustableQuantitySchema.nullable().optional(),\n collect_shipping_address: z.boolean().describe(\"Whether to collect shipping address.\").nullable().optional(),\n}).passthrough().describe(\"Line item within a payment resource.\");\nexport const PaypalRetrievePaymentResourceOutput = z.object({\n id: z.string().describe(\"Unique identifier for the payment resource.\").nullable(),\n type: z.string().describe(\"Type of payment resource (e.g., BUY_NOW).\").nullable().optional(),\n links: z.array(PaypalRetrievePaymentResource_PaymentResourceLinkSchema).describe(\"HAL links to related resources (self, replace, delete, payment_link, etc.).\").nullable().optional(),\n status: z.string().describe(\"Current status of the payment resource (e.g., ACTIVE).\").nullable().optional(),\n reusable: z.string().describe(\"Whether the payment resource is reusable (e.g., MULTIPLE or SINGLE).\").nullable().optional(),\n line_items: z.array(PaypalRetrievePaymentResource_LineItemSchema).describe(\"List of line items included in the payment resource.\").nullable().optional(),\n return_url: z.string().describe(\"URL to redirect after successful payment.\").nullable().optional(),\n create_time: z.string().describe(\"ISO 8601 timestamp when the payment resource was created.\").nullable().optional(),\n update_time: z.string().describe(\"ISO 8601 timestamp when the payment resource was last updated.\").nullable().optional(),\n integration_mode: z.string().describe(\"Mode of integration (e.g., LINK).\").nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving a payment resource.\");\n\nexport const paypalRetrievePaymentResource: AppAction<\n typeof PaypalRetrievePaymentResourceInput,\n typeof PaypalRetrievePaymentResourceOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_RETRIEVE_PAYMENT_RESOURCE\", {\n slug: \"paypal-retrieve-payment-resource\",\n name: \"Retrieve Payment Resource\",\n description: \"Retrieve a PayPal payment resource by its ID. Use this action when you need to fetch details about an existing payment resource created through the Payment Links and Buttons API. This action is useful for checking payment resource status, viewing line items, or retrieving associated links after creating a payment resource. Note: Payment resources are shareable payment links used for simple payment flows.\",\n input: PaypalRetrievePaymentResourceInput,\n output: PaypalRetrievePaymentResourceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqC,EAAE,OAAO,EACzD,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,EACnK,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,0DAA0D,EAAE,OAAO;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC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C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/search-invoices.ts
@@ -1 +1 @@
1
- {"version":3,"file":"search-invoices.cjs","names":["z","action"],"sources":["../../src/actions/search-invoices.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalSearchInvoicesInput = z.object({\n memo: z.string().describe(\"A private bookkeeping memo to filter by.\").optional(),\n page: z.number().int().default(1).describe(\"The page number to be retrieved. A combination of page=1 and page_size=20 returns the first 20 invoices. A combination of page=2 and page_size=20 returns the next 20 invoices.\").optional(),\n fields: z.array(z.string()).describe(\"A list of fields to return for each invoice. Valid fields are: items, payments, refunds, additional_recipients_info, and attachments. Maximum 5 fields.\").optional(),\n status: z.array(z.enum([\"DRAFT\", \"SENT\", \"SCHEDULED\", \"PAID\", \"MARKED_AS_PAID\", \"CANCELLED\", \"REFUNDED\", \"PARTIALLY_PAID\", \"PARTIALLY_REFUNDED\", \"MARKED_AS_REFUNDED\", \"UNPAID\", \"PAYMENT_PENDING\", \"AUTO_CANCELLED\", \"PAID_EXTERNAL\", \"REFUNDED_EXTERNAL\", \"SHARED\"]).describe(\"The status of the invoice.\")).describe(\"An array of invoice status values to filter by. Common statuses include DRAFT, SENT, SCHEDULED, PAID, CANCELLED, REFUNDED, PARTIALLY_PAID, UNPAID.\").optional(),\n archived: z.boolean().describe(\"Indicates whether to list merchant-archived invoices. true: lists only archived, false: lists only unarchived, null: lists all.\").optional(),\n page_size: z.number().int().default(25).describe(\"The maximum number of invoices to return in the response.\").optional(),\n reference: z.string().describe(\"The reference data including a Purchase Order (PO) number to filter by.\").optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code to filter invoices.\").optional(),\n due_date_range: z.object({\n end: z.string().describe(\"The end date in ISO 8601 format (e.g., '2024-12-31').\"),\n start: z.string().describe(\"The start date in ISO 8601 format (e.g., '2024-01-01').\"),\n}).describe(\"The date range for filtering invoices.\").optional(),\n invoice_number: z.string().describe(\"Filters the search by the invoice number.\").optional(),\n total_required: z.boolean().default(false).describe(\"Indicates whether to show total_pages and total_items in the response.\").optional(),\n recipient_email: z.string().describe(\"Filters the search by the recipient email address.\").optional(),\n invoice_date_range: z.object({\n end: z.string().describe(\"The end date in ISO 8601 format (e.g., '2024-12-31').\"),\n start: z.string().describe(\"The start date in ISO 8601 format (e.g., '2024-01-01').\"),\n}).describe(\"The date range for filtering invoices.\").optional(),\n payment_date_range: z.object({\n end: z.string().describe(\"The end date and time, in ISO 8601 format (e.g., '2024-12-31T23:59:59Z').\"),\n start: z.string().describe(\"The start date and time, in ISO 8601 format (e.g., '2024-01-01T00:00:00Z').\"),\n}).describe(\"The date and time range for filtering invoices.\").optional(),\n total_amount_range: z.object({\n lower_amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The lower bound of the amount range.\"),\n upper_amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The upper bound of the amount range.\"),\n}).describe(\"The amount range for filtering invoices.\").optional(),\n creation_date_range: z.object({\n end: z.string().describe(\"The end date and time, in ISO 8601 format (e.g., '2024-12-31T23:59:59Z').\"),\n start: z.string().describe(\"The start date and time, in ISO 8601 format (e.g., '2024-01-01T00:00:00Z').\"),\n}).describe(\"The date and time range for filtering invoices.\").optional(),\n recipient_last_name: z.string().describe(\"Filters the search by the recipient last name.\").optional(),\n recipient_first_name: z.string().describe(\"Filters the search by the recipient first name.\").optional(),\n recipient_business_name: z.string().describe(\"Filters the search by the recipient business name.\").optional(),\n}).describe(\"Request schema for searching PayPal invoices with various filter criteria.\\n\\nUse when you need to search for invoices based on status, dates, recipients,\\namount ranges, or other criteria. The search returns matching invoices with\\npagination support.\\n\\n**Common use cases:**\\n- Find all invoices with a specific status (e.g., DRAFT, SENT, PAID)\\n- Find invoices within a date range (creation, due, or invoice date)\\n- Find invoices for a specific recipient by email or name\\n- Find invoices within a monetary amount range\");\nconst PaypalSearchInvoices_InvoiceAmountSummarySchema = z.object({\n value: z.string().describe(\"The value of the amount.\").nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO currency code.\").nullable().optional(),\n}).passthrough().describe(\"Invoice amount summary details.\");\nconst PaypalSearchInvoices_InvoiceItemSchema = z.object({\n name: z.string().describe(\"The item name.\").nullable().optional(),\n quantity: z.string().describe(\"The quantity of the item.\").nullable().optional(),\n unit_amount: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional(),\n}).passthrough().describe(\"Invoice line item details.\");\nconst PaypalSearchInvoices_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type.\").nullable(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to access the related resource.\").nullable().optional(),\n}).passthrough().describe(\"The request-related HATEOAS link information.\");\nconst PaypalSearchInvoices_InvoiceDetailSchema = z.object({\n reference: z.string().describe(\"The reference of the invoice.\").nullable().optional(),\n currency_code: z.string().describe(\"The currency code.\").nullable().optional(),\n invoice_number: z.string().describe(\"The invoice number that appears on the invoice.\").nullable().optional(),\n}).passthrough().describe(\"Invoice detail information.\");\nconst PaypalSearchInvoices_InvoicerInfoSchema = z.object({\n email_address: z.string().describe(\"The email address of the invoicer.\").nullable().optional(),\n}).passthrough().describe(\"Invoicer information details.\");\nconst PaypalSearchInvoices_RecipientInfoSchema = z.object({\n business_name: z.string().describe(\"The business name of the recipient.\").nullable().optional(),\n email_address: z.string().describe(\"The email address of the recipient.\").nullable().optional(),\n}).passthrough().describe(\"Recipient information for invoice.\");\nconst PaypalSearchInvoices_InvoiceSchema = z.object({\n id: z.string().describe(\"The unique identifier for the invoice.\").nullable().optional(),\n items: z.array(PaypalSearchInvoices_InvoiceItemSchema).describe(\"The list of items in the invoice.\").nullable().optional(),\n links: z.array(PaypalSearchInvoices_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the invoice.\").nullable().optional(),\n amount: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional(),\n detail: PaypalSearchInvoices_InvoiceDetailSchema.nullable().optional(),\n status: z.string().describe(\"The status of the invoice.\").nullable().optional(),\n refunds: z.record(z.string(), z.unknown()).describe(\"The refunds information.\").nullable().optional(),\n gratuity: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional(),\n invoicer: PaypalSearchInvoices_InvoicerInfoSchema.nullable().optional(),\n payments: z.record(z.string(), z.unknown()).describe(\"The payments information.\").nullable().optional(),\n parent_id: z.string().describe(\"The parent ID of the invoice.\").nullable().optional(),\n due_amount: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional(),\n configuration: z.record(z.string(), z.unknown()).describe(\"The configuration of the invoice.\").nullable().optional(),\n primary_recipients: z.array(PaypalSearchInvoices_RecipientInfoSchema).describe(\"The primary recipients of the invoice.\").nullable().optional(),\n additional_recipients: z.array(z.string()).describe(\"Additional recipients for the invoice.\").nullable().optional(),\n}).passthrough().describe(\"Invoice details including all information about the invoice like items, billing information.\");\nexport const PaypalSearchInvoicesOutput = z.object({\n items: z.array(PaypalSearchInvoices_InvoiceSchema).describe(\"The list of invoices that match the search criteria.\"),\n links: z.array(PaypalSearchInvoices_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n total_items: z.number().int().describe(\"The total number of invoices that match the search criteria. Note: Clients MUST NOT assume that the value of total_items is constant.\").nullable().optional(),\n total_pages: z.number().int().describe(\"The total number of pages that are available for the search criteria. Note: Clients MUST NOT assume that the value of total_pages is constant.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the SearchInvoices action containing matching invoices.\");\n\nexport const paypalSearchInvoices = action(\"PAYPAL_SEARCH_INVOICES\", {\n slug: \"paypal-search-invoices\",\n name: \"Search PayPal Invoices\",\n description: \"Search for PayPal invoices based on various filter criteria. Use when you need to find invoices matching specific criteria such as status, date ranges, recipient information, amount ranges, or invoice numbers. This action supports pagination and can return total counts when total_required=true. **Common use cases:** - Find all invoices with a specific status (e.g., all DRAFT or SENT invoices) - Find invoices created within a date range - Find invoices for a specific customer by email or business name - Find invoices within a monetary amount range - Combine multiple filters for precise invoice searches **Pagination:** Results are paginated using page and page_size parameters. Set total_required=true to include total_counts in the response.\",\n input: PaypalSearchInvoicesInput,\n output: PaypalSearchInvoicesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CACvO,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CACzM,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAQ;EAAa;EAAQ;EAAkB;EAAa;EAAY;EAAkB;EAAsB;EAAsB;EAAU;EAAmB;EAAkB;EAAiB;EAAqB;C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AAS,6EAA6E;AAEvG,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"search-invoices.cjs","names":["z","action"],"sources":["../../src/actions/search-invoices.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalSearchInvoicesInput = z.object({\n memo: z.string().describe(\"A private bookkeeping memo to filter by.\").optional(),\n page: z.number().int().default(1).describe(\"The page number to be retrieved. A combination of page=1 and page_size=20 returns the first 20 invoices. A combination of page=2 and page_size=20 returns the next 20 invoices.\").optional(),\n fields: z.array(z.string()).describe(\"A list of fields to return for each invoice. Valid fields are: items, payments, refunds, additional_recipients_info, and attachments. Maximum 5 fields.\").optional(),\n status: z.array(z.enum([\"DRAFT\", \"SENT\", \"SCHEDULED\", \"PAID\", \"MARKED_AS_PAID\", \"CANCELLED\", \"REFUNDED\", \"PARTIALLY_PAID\", \"PARTIALLY_REFUNDED\", \"MARKED_AS_REFUNDED\", \"UNPAID\", \"PAYMENT_PENDING\", \"AUTO_CANCELLED\", \"PAID_EXTERNAL\", \"REFUNDED_EXTERNAL\", \"SHARED\"]).describe(\"The status of the invoice.\")).describe(\"An array of invoice status values to filter by. Common statuses include DRAFT, SENT, SCHEDULED, PAID, CANCELLED, REFUNDED, PARTIALLY_PAID, UNPAID.\").optional(),\n archived: z.boolean().describe(\"Indicates whether to list merchant-archived invoices. true: lists only archived, false: lists only unarchived, null: lists all.\").optional(),\n page_size: z.number().int().default(25).describe(\"The maximum number of invoices to return in the response.\").optional(),\n reference: z.string().describe(\"The reference data including a Purchase Order (PO) number to filter by.\").optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code to filter invoices.\").optional(),\n due_date_range: z.object({\n end: z.string().describe(\"The end date in ISO 8601 format (e.g., '2024-12-31').\"),\n start: z.string().describe(\"The start date in ISO 8601 format (e.g., '2024-01-01').\"),\n}).describe(\"The date range for filtering invoices.\").optional(),\n invoice_number: z.string().describe(\"Filters the search by the invoice number.\").optional(),\n total_required: z.boolean().default(false).describe(\"Indicates whether to show total_pages and total_items in the response.\").optional(),\n recipient_email: z.string().describe(\"Filters the search by the recipient email address.\").optional(),\n invoice_date_range: z.object({\n end: z.string().describe(\"The end date in ISO 8601 format (e.g., '2024-12-31').\"),\n start: z.string().describe(\"The start date in ISO 8601 format (e.g., '2024-01-01').\"),\n}).describe(\"The date range for filtering invoices.\").optional(),\n payment_date_range: z.object({\n end: z.string().describe(\"The end date and time, in ISO 8601 format (e.g., '2024-12-31T23:59:59Z').\"),\n start: z.string().describe(\"The start date and time, in ISO 8601 format (e.g., '2024-01-01T00:00:00Z').\"),\n}).describe(\"The date and time range for filtering invoices.\").optional(),\n total_amount_range: z.object({\n lower_amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The lower bound of the amount range.\"),\n upper_amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The upper bound of the amount range.\"),\n}).describe(\"The amount range for filtering invoices.\").optional(),\n creation_date_range: z.object({\n end: z.string().describe(\"The end date and time, in ISO 8601 format (e.g., '2024-12-31T23:59:59Z').\"),\n start: z.string().describe(\"The start date and time, in ISO 8601 format (e.g., '2024-01-01T00:00:00Z').\"),\n}).describe(\"The date and time range for filtering invoices.\").optional(),\n recipient_last_name: z.string().describe(\"Filters the search by the recipient last name.\").optional(),\n recipient_first_name: z.string().describe(\"Filters the search by the recipient first name.\").optional(),\n recipient_business_name: z.string().describe(\"Filters the search by the recipient business name.\").optional(),\n}).describe(\"Request schema for searching PayPal invoices with various filter criteria.\\n\\nUse when you need to search for invoices based on status, dates, recipients,\\namount ranges, or other criteria. The search returns matching invoices with\\npagination support.\\n\\n**Common use cases:**\\n- Find all invoices with a specific status (e.g., DRAFT, SENT, PAID)\\n- Find invoices within a date range (creation, due, or invoice date)\\n- Find invoices for a specific recipient by email or name\\n- Find invoices within a monetary amount range\");\nconst PaypalSearchInvoices_InvoiceAmountSummarySchema = z.object({\n value: z.string().describe(\"The value of the amount.\").nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO currency code.\").nullable().optional(),\n}).passthrough().describe(\"Invoice amount summary details.\");\nconst PaypalSearchInvoices_InvoiceItemSchema = z.object({\n name: z.string().describe(\"The item name.\").nullable().optional(),\n quantity: z.string().describe(\"The quantity of the item.\").nullable().optional(),\n unit_amount: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional(),\n}).passthrough().describe(\"Invoice line item details.\");\nconst PaypalSearchInvoices_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type.\").nullable(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to access the related resource.\").nullable().optional(),\n}).passthrough().describe(\"The request-related HATEOAS link information.\");\nconst PaypalSearchInvoices_InvoiceDetailSchema = z.object({\n reference: z.string().describe(\"The reference of the invoice.\").nullable().optional(),\n currency_code: z.string().describe(\"The currency code.\").nullable().optional(),\n invoice_number: z.string().describe(\"The invoice number that appears on the invoice.\").nullable().optional(),\n}).passthrough().describe(\"Invoice detail information.\");\nconst PaypalSearchInvoices_InvoicerInfoSchema = z.object({\n email_address: z.string().describe(\"The email address of the invoicer.\").nullable().optional(),\n}).passthrough().describe(\"Invoicer information details.\");\nconst PaypalSearchInvoices_RecipientInfoSchema = z.object({\n business_name: z.string().describe(\"The business name of the recipient.\").nullable().optional(),\n email_address: z.string().describe(\"The email address of the recipient.\").nullable().optional(),\n}).passthrough().describe(\"Recipient information for invoice.\");\nconst PaypalSearchInvoices_InvoiceSchema = z.object({\n id: z.string().describe(\"The unique identifier for the invoice.\").nullable().optional(),\n items: z.array(PaypalSearchInvoices_InvoiceItemSchema).describe(\"The list of items in the invoice.\").nullable().optional(),\n links: z.array(PaypalSearchInvoices_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the invoice.\").nullable().optional(),\n amount: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional(),\n detail: PaypalSearchInvoices_InvoiceDetailSchema.nullable().optional(),\n status: z.string().describe(\"The status of the invoice.\").nullable().optional(),\n refunds: z.record(z.string(), z.unknown()).describe(\"The refunds information.\").nullable().optional(),\n gratuity: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional(),\n invoicer: PaypalSearchInvoices_InvoicerInfoSchema.nullable().optional(),\n payments: z.record(z.string(), z.unknown()).describe(\"The payments information.\").nullable().optional(),\n parent_id: z.string().describe(\"The parent ID of the invoice.\").nullable().optional(),\n due_amount: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional(),\n configuration: z.record(z.string(), z.unknown()).describe(\"The configuration of the invoice.\").nullable().optional(),\n primary_recipients: z.array(PaypalSearchInvoices_RecipientInfoSchema).describe(\"The primary recipients of the invoice.\").nullable().optional(),\n additional_recipients: z.array(z.string()).describe(\"Additional recipients for the invoice.\").nullable().optional(),\n}).passthrough().describe(\"Invoice details including all information about the invoice like items, billing information.\");\nexport const PaypalSearchInvoicesOutput = z.object({\n items: z.array(PaypalSearchInvoices_InvoiceSchema).describe(\"The list of invoices that match the search criteria.\"),\n links: z.array(PaypalSearchInvoices_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n total_items: z.number().int().describe(\"The total number of invoices that match the search criteria. Note: Clients MUST NOT assume that the value of total_items is constant.\").nullable().optional(),\n total_pages: z.number().int().describe(\"The total number of pages that are available for the search criteria. Note: Clients MUST NOT assume that the value of total_pages is constant.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the SearchInvoices action containing matching invoices.\");\n\nexport const paypalSearchInvoices: AppAction<\n typeof PaypalSearchInvoicesInput,\n typeof PaypalSearchInvoicesOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_SEARCH_INVOICES\", {\n slug: \"paypal-search-invoices\",\n name: \"Search PayPal Invoices\",\n description: \"Search for PayPal invoices based on various filter criteria. Use when you need to find invoices matching specific criteria such as status, date ranges, recipient information, amount ranges, or invoice numbers. This action supports pagination and can return total counts when total_required=true. **Common use cases:** - Find all invoices with a specific status (e.g., all DRAFT or SENT invoices) - Find invoices created within a date range - Find invoices for a specific customer by email or business name - Find invoices within a monetary amount range - Combine multiple filters for precise invoice searches **Pagination:** Results are paginated using page and page_size parameters. Set total_required=true to include total_counts in the response.\",\n input: PaypalSearchInvoicesInput,\n output: PaypalSearchInvoicesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CACvO,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CACzM,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAQ;EAAa;EAAQ;EAAkB;EAAa;EAAY;EAAkB;EAAsB;EAAsB;EAAU;EAAmB;EAAkB;EAAiB;EAAqB;CAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CACvd,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CAC3K,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC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5
  //#region src/actions/search-invoices.d.ts
@@ -7,14 +9,14 @@ declare const PaypalSearchInvoicesInput: z.ZodObject<{
7
9
  fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
10
  status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
9
11
  CANCELLED: "CANCELLED";
10
- PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
11
- REFUNDED: "REFUNDED";
12
12
  DRAFT: "DRAFT";
13
13
  SENT: "SENT";
14
14
  SCHEDULED: "SCHEDULED";
15
15
  PAID: "PAID";
16
16
  MARKED_AS_PAID: "MARKED_AS_PAID";
17
+ REFUNDED: "REFUNDED";
17
18
  PARTIALLY_PAID: "PARTIALLY_PAID";
19
+ PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
18
20
  MARKED_AS_REFUNDED: "MARKED_AS_REFUNDED";
19
21
  UNPAID: "UNPAID";
20
22
  PAYMENT_PENDING: "PAYMENT_PENDING";
@@ -115,60 +117,7 @@ declare const PaypalSearchInvoicesOutput: z.ZodObject<{
115
117
  total_items: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
116
118
  total_pages: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
117
119
  }, z.core.$loose>;
118
- declare const paypalSearchInvoices: import("@keystrokehq/action").WorkflowActionDefinition<{
119
- memo?: string | undefined;
120
- page?: number | undefined;
121
- fields?: string[] | undefined;
122
- status?: ("CANCELLED" | "PARTIALLY_REFUNDED" | "REFUNDED" | "DRAFT" | "SENT" | "SCHEDULED" | "PAID" | "MARKED_AS_PAID" | "PARTIALLY_PAID" | "MARKED_AS_REFUNDED" | "UNPAID" | "PAYMENT_PENDING" | "AUTO_CANCELLED" | "PAID_EXTERNAL" | "REFUNDED_EXTERNAL" | "SHARED")[] | undefined;
123
- archived?: boolean | undefined;
124
- page_size?: number | undefined;
125
- reference?: string | undefined;
126
- currency_code?: string | undefined;
127
- due_date_range?: {
128
- end: string;
129
- start: string;
130
- } | undefined;
131
- invoice_number?: string | undefined;
132
- total_required?: boolean | undefined;
133
- recipient_email?: string | undefined;
134
- invoice_date_range?: {
135
- end: string;
136
- start: string;
137
- } | undefined;
138
- payment_date_range?: {
139
- end: string;
140
- start: string;
141
- } | undefined;
142
- total_amount_range?: {
143
- lower_amount: {
144
- value: string;
145
- currency_code: string;
146
- };
147
- upper_amount: {
148
- value: string;
149
- currency_code: string;
150
- };
151
- } | undefined;
152
- creation_date_range?: {
153
- end: string;
154
- start: string;
155
- } | undefined;
156
- recipient_last_name?: string | undefined;
157
- recipient_first_name?: string | undefined;
158
- recipient_business_name?: string | undefined;
159
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
160
- connectionId: z.ZodString;
161
- entityId: z.ZodString;
162
- instanceId: z.ZodString;
163
- }, z.core.$strip>, z.ZodObject<{
164
- accessToken: z.ZodString;
165
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
166
- connectionId: z.ZodString;
167
- entityId: z.ZodString;
168
- instanceId: z.ZodString;
169
- }, z.core.$strip>, z.ZodObject<{
170
- accessToken: z.ZodString;
171
- }, z.core.$strip>>]>;
120
+ declare const paypalSearchInvoices: AppAction<typeof PaypalSearchInvoicesInput, typeof PaypalSearchInvoicesOutput, typeof paypal.credential>;
172
121
  //#endregion
173
122
  export { paypalSearchInvoices };
174
123
  //# sourceMappingURL=search-invoices.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-invoices.d.cts","names":[],"sources":["../../src/actions/search-invoices.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqFzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAO1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"search-invoices.d.cts","names":[],"sources":["../../src/actions/search-invoices.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqFzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAO1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/search-invoices.d.ts
@@ -7,14 +9,14 @@ declare const PaypalSearchInvoicesInput: z.ZodObject<{
7
9
  fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
10
  status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
9
11
  CANCELLED: "CANCELLED";
10
- PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
11
- REFUNDED: "REFUNDED";
12
12
  DRAFT: "DRAFT";
13
13
  SENT: "SENT";
14
14
  SCHEDULED: "SCHEDULED";
15
15
  PAID: "PAID";
16
16
  MARKED_AS_PAID: "MARKED_AS_PAID";
17
+ REFUNDED: "REFUNDED";
17
18
  PARTIALLY_PAID: "PARTIALLY_PAID";
19
+ PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
18
20
  MARKED_AS_REFUNDED: "MARKED_AS_REFUNDED";
19
21
  UNPAID: "UNPAID";
20
22
  PAYMENT_PENDING: "PAYMENT_PENDING";
@@ -115,60 +117,7 @@ declare const PaypalSearchInvoicesOutput: z.ZodObject<{
115
117
  total_items: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
116
118
  total_pages: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
117
119
  }, z.core.$loose>;
118
- declare const paypalSearchInvoices: import("@keystrokehq/action").WorkflowActionDefinition<{
119
- memo?: string | undefined;
120
- page?: number | undefined;
121
- fields?: string[] | undefined;
122
- status?: ("CANCELLED" | "PARTIALLY_REFUNDED" | "REFUNDED" | "DRAFT" | "SENT" | "SCHEDULED" | "PAID" | "MARKED_AS_PAID" | "PARTIALLY_PAID" | "MARKED_AS_REFUNDED" | "UNPAID" | "PAYMENT_PENDING" | "AUTO_CANCELLED" | "PAID_EXTERNAL" | "REFUNDED_EXTERNAL" | "SHARED")[] | undefined;
123
- archived?: boolean | undefined;
124
- page_size?: number | undefined;
125
- reference?: string | undefined;
126
- currency_code?: string | undefined;
127
- due_date_range?: {
128
- end: string;
129
- start: string;
130
- } | undefined;
131
- invoice_number?: string | undefined;
132
- total_required?: boolean | undefined;
133
- recipient_email?: string | undefined;
134
- invoice_date_range?: {
135
- end: string;
136
- start: string;
137
- } | undefined;
138
- payment_date_range?: {
139
- end: string;
140
- start: string;
141
- } | undefined;
142
- total_amount_range?: {
143
- lower_amount: {
144
- value: string;
145
- currency_code: string;
146
- };
147
- upper_amount: {
148
- value: string;
149
- currency_code: string;
150
- };
151
- } | undefined;
152
- creation_date_range?: {
153
- end: string;
154
- start: string;
155
- } | undefined;
156
- recipient_last_name?: string | undefined;
157
- recipient_first_name?: string | undefined;
158
- recipient_business_name?: string | undefined;
159
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
160
- connectionId: z.ZodString;
161
- entityId: z.ZodString;
162
- instanceId: z.ZodString;
163
- }, z.core.$strip>, z.ZodObject<{
164
- accessToken: z.ZodString;
165
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
166
- connectionId: z.ZodString;
167
- entityId: z.ZodString;
168
- instanceId: z.ZodString;
169
- }, z.core.$strip>, z.ZodObject<{
170
- accessToken: z.ZodString;
171
- }, z.core.$strip>>]>;
120
+ declare const paypalSearchInvoices: AppAction<typeof PaypalSearchInvoicesInput, typeof PaypalSearchInvoicesOutput, typeof paypal.credential>;
172
121
  //#endregion
173
122
  export { paypalSearchInvoices };
174
123
  //# sourceMappingURL=search-invoices.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-invoices.d.mts","names":[],"sources":["../../src/actions/search-invoices.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqFzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAO1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"search-invoices.d.mts","names":[],"sources":["../../src/actions/search-invoices.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqFzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAO1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/search-invoices.ts
@@ -1 +1 @@
1
- {"version":3,"file":"search-invoices.mjs","names":[],"sources":["../../src/actions/search-invoices.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalSearchInvoicesInput = z.object({\n memo: z.string().describe(\"A private bookkeeping memo to filter by.\").optional(),\n page: z.number().int().default(1).describe(\"The page number to be retrieved. A combination of page=1 and page_size=20 returns the first 20 invoices. A combination of page=2 and page_size=20 returns the next 20 invoices.\").optional(),\n fields: z.array(z.string()).describe(\"A list of fields to return for each invoice. Valid fields are: items, payments, refunds, additional_recipients_info, and attachments. Maximum 5 fields.\").optional(),\n status: z.array(z.enum([\"DRAFT\", \"SENT\", \"SCHEDULED\", \"PAID\", \"MARKED_AS_PAID\", \"CANCELLED\", \"REFUNDED\", \"PARTIALLY_PAID\", \"PARTIALLY_REFUNDED\", \"MARKED_AS_REFUNDED\", \"UNPAID\", \"PAYMENT_PENDING\", \"AUTO_CANCELLED\", \"PAID_EXTERNAL\", \"REFUNDED_EXTERNAL\", \"SHARED\"]).describe(\"The status of the invoice.\")).describe(\"An array of invoice status values to filter by. Common statuses include DRAFT, SENT, SCHEDULED, PAID, CANCELLED, REFUNDED, PARTIALLY_PAID, UNPAID.\").optional(),\n archived: z.boolean().describe(\"Indicates whether to list merchant-archived invoices. true: lists only archived, false: lists only unarchived, null: lists all.\").optional(),\n page_size: z.number().int().default(25).describe(\"The maximum number of invoices to return in the response.\").optional(),\n reference: z.string().describe(\"The reference data including a Purchase Order (PO) number to filter by.\").optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code to filter invoices.\").optional(),\n due_date_range: z.object({\n end: z.string().describe(\"The end date in ISO 8601 format (e.g., '2024-12-31').\"),\n start: z.string().describe(\"The start date in ISO 8601 format (e.g., '2024-01-01').\"),\n}).describe(\"The date range for filtering invoices.\").optional(),\n invoice_number: z.string().describe(\"Filters the search by the invoice number.\").optional(),\n total_required: z.boolean().default(false).describe(\"Indicates whether to show total_pages and total_items in the response.\").optional(),\n recipient_email: z.string().describe(\"Filters the search by the recipient email address.\").optional(),\n invoice_date_range: z.object({\n end: z.string().describe(\"The end date in ISO 8601 format (e.g., '2024-12-31').\"),\n start: z.string().describe(\"The start date in ISO 8601 format (e.g., '2024-01-01').\"),\n}).describe(\"The date range for filtering invoices.\").optional(),\n payment_date_range: z.object({\n end: z.string().describe(\"The end date and time, in ISO 8601 format (e.g., '2024-12-31T23:59:59Z').\"),\n start: z.string().describe(\"The start date and time, in ISO 8601 format (e.g., '2024-01-01T00:00:00Z').\"),\n}).describe(\"The date and time range for filtering invoices.\").optional(),\n total_amount_range: z.object({\n lower_amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The lower bound of the amount range.\"),\n upper_amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The upper bound of the amount range.\"),\n}).describe(\"The amount range for filtering invoices.\").optional(),\n creation_date_range: z.object({\n end: z.string().describe(\"The end date and time, in ISO 8601 format (e.g., '2024-12-31T23:59:59Z').\"),\n start: z.string().describe(\"The start date and time, in ISO 8601 format (e.g., '2024-01-01T00:00:00Z').\"),\n}).describe(\"The date and time range for filtering invoices.\").optional(),\n recipient_last_name: z.string().describe(\"Filters the search by the recipient last name.\").optional(),\n recipient_first_name: z.string().describe(\"Filters the search by the recipient first name.\").optional(),\n recipient_business_name: z.string().describe(\"Filters the search by the recipient business name.\").optional(),\n}).describe(\"Request schema for searching PayPal invoices with various filter criteria.\\n\\nUse when you need to search for invoices based on status, dates, recipients,\\namount ranges, or other criteria. The search returns matching invoices with\\npagination support.\\n\\n**Common use cases:**\\n- Find all invoices with a specific status (e.g., DRAFT, SENT, PAID)\\n- Find invoices within a date range (creation, due, or invoice date)\\n- Find invoices for a specific recipient by email or name\\n- Find invoices within a monetary amount range\");\nconst PaypalSearchInvoices_InvoiceAmountSummarySchema = z.object({\n value: z.string().describe(\"The value of the amount.\").nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO currency code.\").nullable().optional(),\n}).passthrough().describe(\"Invoice amount summary details.\");\nconst PaypalSearchInvoices_InvoiceItemSchema = z.object({\n name: z.string().describe(\"The item name.\").nullable().optional(),\n quantity: z.string().describe(\"The quantity of the item.\").nullable().optional(),\n unit_amount: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional(),\n}).passthrough().describe(\"Invoice line item details.\");\nconst PaypalSearchInvoices_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type.\").nullable(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to access the related resource.\").nullable().optional(),\n}).passthrough().describe(\"The request-related HATEOAS link information.\");\nconst PaypalSearchInvoices_InvoiceDetailSchema = z.object({\n reference: z.string().describe(\"The reference of the invoice.\").nullable().optional(),\n currency_code: z.string().describe(\"The currency code.\").nullable().optional(),\n invoice_number: z.string().describe(\"The invoice number that appears on the invoice.\").nullable().optional(),\n}).passthrough().describe(\"Invoice detail information.\");\nconst PaypalSearchInvoices_InvoicerInfoSchema = z.object({\n email_address: z.string().describe(\"The email address of the invoicer.\").nullable().optional(),\n}).passthrough().describe(\"Invoicer information details.\");\nconst PaypalSearchInvoices_RecipientInfoSchema = z.object({\n business_name: z.string().describe(\"The business name of the recipient.\").nullable().optional(),\n email_address: z.string().describe(\"The email address of the recipient.\").nullable().optional(),\n}).passthrough().describe(\"Recipient information for invoice.\");\nconst PaypalSearchInvoices_InvoiceSchema = z.object({\n id: z.string().describe(\"The unique identifier for the invoice.\").nullable().optional(),\n items: z.array(PaypalSearchInvoices_InvoiceItemSchema).describe(\"The list of items in the invoice.\").nullable().optional(),\n links: z.array(PaypalSearchInvoices_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the invoice.\").nullable().optional(),\n amount: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional(),\n detail: PaypalSearchInvoices_InvoiceDetailSchema.nullable().optional(),\n status: z.string().describe(\"The status of the invoice.\").nullable().optional(),\n refunds: z.record(z.string(), z.unknown()).describe(\"The refunds information.\").nullable().optional(),\n gratuity: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional(),\n invoicer: PaypalSearchInvoices_InvoicerInfoSchema.nullable().optional(),\n payments: z.record(z.string(), z.unknown()).describe(\"The payments information.\").nullable().optional(),\n parent_id: z.string().describe(\"The parent ID of the invoice.\").nullable().optional(),\n due_amount: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional(),\n configuration: z.record(z.string(), z.unknown()).describe(\"The configuration of the invoice.\").nullable().optional(),\n primary_recipients: z.array(PaypalSearchInvoices_RecipientInfoSchema).describe(\"The primary recipients of the invoice.\").nullable().optional(),\n additional_recipients: z.array(z.string()).describe(\"Additional recipients for the invoice.\").nullable().optional(),\n}).passthrough().describe(\"Invoice details including all information about the invoice like items, billing information.\");\nexport const PaypalSearchInvoicesOutput = z.object({\n items: z.array(PaypalSearchInvoices_InvoiceSchema).describe(\"The list of invoices that match the search criteria.\"),\n links: z.array(PaypalSearchInvoices_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n total_items: z.number().int().describe(\"The total number of invoices that match the search criteria. Note: Clients MUST NOT assume that the value of total_items is constant.\").nullable().optional(),\n total_pages: z.number().int().describe(\"The total number of pages that are available for the search criteria. Note: Clients MUST NOT assume that the value of total_pages is constant.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the SearchInvoices action containing matching invoices.\");\n\nexport const paypalSearchInvoices = action(\"PAYPAL_SEARCH_INVOICES\", {\n slug: \"paypal-search-invoices\",\n name: \"Search PayPal Invoices\",\n description: \"Search for PayPal invoices based on various filter criteria. Use when you need to find invoices matching specific criteria such as status, date ranges, recipient information, amount ranges, or invoice numbers. This action supports pagination and can return total counts when total_required=true. **Common use cases:** - Find all invoices with a specific status (e.g., all DRAFT or SENT invoices) - Find invoices created within a date range - Find invoices for a specific customer by email or business name - Find invoices within a monetary amount range - Combine multiple filters for precise invoice searches **Pagination:** Results are paginated using page and page_size parameters. Set total_required=true to include total_counts in the response.\",\n input: PaypalSearchInvoicesInput,\n output: PaypalSearchInvoicesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,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@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalSearchInvoicesInput = z.object({\n memo: z.string().describe(\"A private bookkeeping memo to filter by.\").optional(),\n page: z.number().int().default(1).describe(\"The page number to be retrieved. A combination of page=1 and page_size=20 returns the first 20 invoices. A combination of page=2 and page_size=20 returns the next 20 invoices.\").optional(),\n fields: z.array(z.string()).describe(\"A list of fields to return for each invoice. Valid fields are: items, payments, refunds, additional_recipients_info, and attachments. Maximum 5 fields.\").optional(),\n status: z.array(z.enum([\"DRAFT\", \"SENT\", \"SCHEDULED\", \"PAID\", \"MARKED_AS_PAID\", \"CANCELLED\", \"REFUNDED\", \"PARTIALLY_PAID\", \"PARTIALLY_REFUNDED\", \"MARKED_AS_REFUNDED\", \"UNPAID\", \"PAYMENT_PENDING\", \"AUTO_CANCELLED\", \"PAID_EXTERNAL\", \"REFUNDED_EXTERNAL\", \"SHARED\"]).describe(\"The status of the invoice.\")).describe(\"An array of invoice status values to filter by. Common statuses include DRAFT, SENT, SCHEDULED, PAID, CANCELLED, REFUNDED, PARTIALLY_PAID, UNPAID.\").optional(),\n archived: z.boolean().describe(\"Indicates whether to list merchant-archived invoices. true: lists only archived, false: lists only unarchived, null: lists all.\").optional(),\n page_size: z.number().int().default(25).describe(\"The maximum number of invoices to return in the response.\").optional(),\n reference: z.string().describe(\"The reference data including a Purchase Order (PO) number to filter by.\").optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code to filter invoices.\").optional(),\n due_date_range: z.object({\n end: z.string().describe(\"The end date in ISO 8601 format (e.g., '2024-12-31').\"),\n start: z.string().describe(\"The start date in ISO 8601 format (e.g., '2024-01-01').\"),\n}).describe(\"The date range for filtering invoices.\").optional(),\n invoice_number: z.string().describe(\"Filters the search by the invoice number.\").optional(),\n total_required: z.boolean().default(false).describe(\"Indicates whether to show total_pages and total_items in the response.\").optional(),\n recipient_email: z.string().describe(\"Filters the search by the recipient email address.\").optional(),\n invoice_date_range: z.object({\n end: z.string().describe(\"The end date in ISO 8601 format (e.g., '2024-12-31').\"),\n start: z.string().describe(\"The start date in ISO 8601 format (e.g., '2024-01-01').\"),\n}).describe(\"The date range for filtering invoices.\").optional(),\n payment_date_range: z.object({\n end: z.string().describe(\"The end date and time, in ISO 8601 format (e.g., '2024-12-31T23:59:59Z').\"),\n start: z.string().describe(\"The start date and time, in ISO 8601 format (e.g., '2024-01-01T00:00:00Z').\"),\n}).describe(\"The date and time range for filtering invoices.\").optional(),\n total_amount_range: z.object({\n lower_amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The lower bound of the amount range.\"),\n upper_amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The upper bound of the amount range.\"),\n}).describe(\"The amount range for filtering invoices.\").optional(),\n creation_date_range: z.object({\n end: z.string().describe(\"The end date and time, in ISO 8601 format (e.g., '2024-12-31T23:59:59Z').\"),\n start: z.string().describe(\"The start date and time, in ISO 8601 format (e.g., '2024-01-01T00:00:00Z').\"),\n}).describe(\"The date and time range for filtering invoices.\").optional(),\n recipient_last_name: z.string().describe(\"Filters the search by the recipient last name.\").optional(),\n recipient_first_name: z.string().describe(\"Filters the search by the recipient first name.\").optional(),\n recipient_business_name: z.string().describe(\"Filters the search by the recipient business name.\").optional(),\n}).describe(\"Request schema for searching PayPal invoices with various filter criteria.\\n\\nUse when you need to search for invoices based on status, dates, recipients,\\namount ranges, or other criteria. The search returns matching invoices with\\npagination support.\\n\\n**Common use cases:**\\n- Find all invoices with a specific status (e.g., DRAFT, SENT, PAID)\\n- Find invoices within a date range (creation, due, or invoice date)\\n- Find invoices for a specific recipient by email or name\\n- Find invoices within a monetary amount range\");\nconst PaypalSearchInvoices_InvoiceAmountSummarySchema = z.object({\n value: z.string().describe(\"The value of the amount.\").nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO currency code.\").nullable().optional(),\n}).passthrough().describe(\"Invoice amount summary details.\");\nconst PaypalSearchInvoices_InvoiceItemSchema = z.object({\n name: z.string().describe(\"The item name.\").nullable().optional(),\n quantity: z.string().describe(\"The quantity of the item.\").nullable().optional(),\n unit_amount: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional(),\n}).passthrough().describe(\"Invoice line item details.\");\nconst PaypalSearchInvoices_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type.\").nullable(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to access the related resource.\").nullable().optional(),\n}).passthrough().describe(\"The request-related HATEOAS link information.\");\nconst PaypalSearchInvoices_InvoiceDetailSchema = z.object({\n reference: z.string().describe(\"The reference of the invoice.\").nullable().optional(),\n currency_code: z.string().describe(\"The currency code.\").nullable().optional(),\n invoice_number: z.string().describe(\"The invoice number that appears on the invoice.\").nullable().optional(),\n}).passthrough().describe(\"Invoice detail information.\");\nconst PaypalSearchInvoices_InvoicerInfoSchema = z.object({\n email_address: z.string().describe(\"The email address of the invoicer.\").nullable().optional(),\n}).passthrough().describe(\"Invoicer information details.\");\nconst PaypalSearchInvoices_RecipientInfoSchema = z.object({\n business_name: z.string().describe(\"The business name of the recipient.\").nullable().optional(),\n email_address: z.string().describe(\"The email address of the recipient.\").nullable().optional(),\n}).passthrough().describe(\"Recipient information for invoice.\");\nconst PaypalSearchInvoices_InvoiceSchema = z.object({\n id: z.string().describe(\"The unique identifier for the invoice.\").nullable().optional(),\n items: z.array(PaypalSearchInvoices_InvoiceItemSchema).describe(\"The list of items in the invoice.\").nullable().optional(),\n links: z.array(PaypalSearchInvoices_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the invoice.\").nullable().optional(),\n amount: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional(),\n detail: PaypalSearchInvoices_InvoiceDetailSchema.nullable().optional(),\n status: z.string().describe(\"The status of the invoice.\").nullable().optional(),\n refunds: z.record(z.string(), z.unknown()).describe(\"The refunds information.\").nullable().optional(),\n gratuity: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional(),\n invoicer: PaypalSearchInvoices_InvoicerInfoSchema.nullable().optional(),\n payments: z.record(z.string(), z.unknown()).describe(\"The payments information.\").nullable().optional(),\n parent_id: z.string().describe(\"The parent ID of the invoice.\").nullable().optional(),\n due_amount: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional(),\n configuration: z.record(z.string(), z.unknown()).describe(\"The configuration of the invoice.\").nullable().optional(),\n primary_recipients: z.array(PaypalSearchInvoices_RecipientInfoSchema).describe(\"The primary recipients of the invoice.\").nullable().optional(),\n additional_recipients: z.array(z.string()).describe(\"Additional recipients for the invoice.\").nullable().optional(),\n}).passthrough().describe(\"Invoice details including all information about the invoice like items, billing information.\");\nexport const PaypalSearchInvoicesOutput = z.object({\n items: z.array(PaypalSearchInvoices_InvoiceSchema).describe(\"The list of invoices that match the search criteria.\"),\n links: z.array(PaypalSearchInvoices_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n total_items: z.number().int().describe(\"The total number of invoices that match the search criteria. Note: Clients MUST NOT assume that the value of total_items is constant.\").nullable().optional(),\n total_pages: z.number().int().describe(\"The total number of pages that are available for the search criteria. Note: Clients MUST NOT assume that the value of total_pages is constant.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the SearchInvoices action containing matching invoices.\");\n\nexport const paypalSearchInvoices: AppAction<\n typeof PaypalSearchInvoicesInput,\n typeof PaypalSearchInvoicesOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_SEARCH_INVOICES\", {\n slug: \"paypal-search-invoices\",\n name: \"Search PayPal Invoices\",\n description: \"Search for PayPal invoices based on various filter criteria. Use when you need to find invoices matching specific criteria such as status, date ranges, recipient information, amount ranges, or invoice numbers. This action supports pagination and can return total counts when total_required=true. **Common use cases:** - Find all invoices with a specific status (e.g., all DRAFT or SENT invoices) - Find invoices created within a date range - Find invoices for a specific customer by email or business name - Find invoices within a monetary amount range - Combine multiple filters for precise invoice searches **Pagination:** Results are paginated using page and page_size parameters. Set total_required=true to include total_counts in the response.\",\n input: PaypalSearchInvoicesInput,\n output: PaypalSearchInvoicesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CACvO,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CACzM,QAAQ,EAAE,MAAM,EAAE,KAAK;EAAC;EAAS;EAAQ;EAAa;EAAQ;EAAkB;EAAa;EAAY;EAAkB;EAAsB;EAAsB;EAAU;EAAmB;EAAkB;EAAiB;EAAqB;CAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CACvd,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CAC3K,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACvH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACnH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC9G,gBAAgB,EAAE,OAAO;EACzB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EAChF,OAAO,EAA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AAC,SAAS,uIAAuI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpM,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/M,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6EAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/send-invoice.ts
@@ -1 +1 @@
1
- {"version":3,"file":"send-invoice.cjs","names":["z","action"],"sources":["../../src/actions/send-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalSendInvoiceInput = z.object({\n note: z.string().describe(\"A note to the recipient that is included in the email. Maximum length is 4000 characters.\").optional(),\n subject: z.string().describe(\"The subject of the email that is sent to the recipient. Maximum length is 998 characters.\").optional(),\n invoice_id: z.string().describe(\"The ID of the invoice to send.\"),\n send_to_invoicer: z.boolean().default(false).describe(\"Whether to send a copy of the invoice to the invoicer's email address. Defaults to false.\").optional(),\n send_to_recipient: z.boolean().default(true).describe(\"Whether to send the invoice to the recipient's email address. Defaults to true.\").optional(),\n additional_recipients: z.array(z.string()).describe(\"An array of email addresses to receive a copy of the invoice notification. Maximum of 100 email addresses.\").optional(),\n}).describe(\"Request schema for sending a PayPal invoice to recipients.\\n\\nUse this action when you need to send a draft invoice to the recipient\\nvia email. The invoice must be in DRAFT status before it can be sent.\");\nconst PaypalSendInvoice_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable(),\n href: z.string().describe(\"The complete URL to the related resource.\").nullable(),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nexport const PaypalSendInvoiceOutput = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable().optional(),\n href: z.string().describe(\"The URI for the invoice that was sent.\").nullable().optional(),\n name: z.string().describe(\"The human-readable, unique name of the error if the request failed.\").nullable().optional(),\n links: z.array(PaypalSendInvoice_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the invoice.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method for the link.\").nullable().optional(),\n message: z.string().describe(\"The message describing the result or any error.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the invoice was successfully sent.\").nullable().optional(),\n debug_id: z.string().describe(\"The PayPal internal ID for correlation purposes.\").nullable().optional(),\n}).passthrough().describe(\"Response schema returned after sending a PayPal invoice.\\n\\nContains HATEOAS links for related operations and confirmation of the send action.\");\n\nexport const paypalSendInvoice = action(\"PAYPAL_SEND_INVOICE\", {\n slug: \"paypal-send-invoice\",\n name: \"Send Invoice\",\n description: \"Sends a PayPal invoice to the recipient via email. Use this action when you need to send a draft invoice to the recipient. The invoice must be in DRAFT status before it can be sent. Once sent, the invoice status changes to SENT and the recipient will receive an email notification with a link to view and pay the invoice. You can optionally customize the email subject and note, specify whether to send a copy to the invoicer, and add additional CC recipients.\",\n input: PaypalSendInvoiceInput,\n output: PaypalSendInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAChI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACnI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAChE,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC5J,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAClJ,uBAAuBA,IAAAA,EAAE,MAAMA,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,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gJAAgJ;AAE1K,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"send-invoice.cjs","names":["z","action"],"sources":["../../src/actions/send-invoice.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalSendInvoiceInput = z.object({\n note: z.string().describe(\"A note to the recipient that is included in the email. Maximum length is 4000 characters.\").optional(),\n subject: z.string().describe(\"The subject of the email that is sent to the recipient. Maximum length is 998 characters.\").optional(),\n invoice_id: z.string().describe(\"The ID of the invoice to send.\"),\n send_to_invoicer: z.boolean().default(false).describe(\"Whether to send a copy of the invoice to the invoicer's email address. Defaults to false.\").optional(),\n send_to_recipient: z.boolean().default(true).describe(\"Whether to send the invoice to the recipient's email address. Defaults to true.\").optional(),\n additional_recipients: z.array(z.string()).describe(\"An array of email addresses to receive a copy of the invoice notification. Maximum of 100 email addresses.\").optional(),\n}).describe(\"Request schema for sending a PayPal invoice to recipients.\\n\\nUse this action when you need to send a draft invoice to the recipient\\nvia email. The invoice must be in DRAFT status before it can be sent.\");\nconst PaypalSendInvoice_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable(),\n href: z.string().describe(\"The complete URL to the related resource.\").nullable(),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nexport const PaypalSendInvoiceOutput = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable().optional(),\n href: z.string().describe(\"The URI for the invoice that was sent.\").nullable().optional(),\n name: z.string().describe(\"The human-readable, unique name of the error if the request failed.\").nullable().optional(),\n links: z.array(PaypalSendInvoice_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the invoice.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method for the link.\").nullable().optional(),\n message: z.string().describe(\"The message describing the result or any error.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the invoice was successfully sent.\").nullable().optional(),\n debug_id: z.string().describe(\"The PayPal internal ID for correlation purposes.\").nullable().optional(),\n}).passthrough().describe(\"Response schema returned after sending a PayPal invoice.\\n\\nContains HATEOAS links for related operations and confirmation of the send action.\");\n\nexport const paypalSendInvoice: AppAction<\n typeof PaypalSendInvoiceInput,\n typeof PaypalSendInvoiceOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_SEND_INVOICE\", {\n slug: \"paypal-send-invoice\",\n name: \"Send Invoice\",\n description: \"Sends a PayPal invoice to the recipient via email. Use this action when you need to send a draft invoice to the recipient. The invoice must be in DRAFT status before it can be sent. Once sent, the invoice status changes to SENT and the recipient will receive an email notification with a link to view and pay the invoice. You can optionally customize the email subject and note, specify whether to send a copy to the invoicer, and add additional CC recipients.\",\n input: PaypalSendInvoiceInput,\n output: PaypalSendInvoiceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAChI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACnI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAChE,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC5J,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAClJ,uBAAuBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE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,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gJAAgJ;AAE1K,MAAa,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/send-invoice.d.ts
@@ -23,26 +25,7 @@ declare const PaypalSendInvoiceOutput: z.ZodObject<{
23
25
  success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
24
26
  debug_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
27
  }, z.core.$loose>;
26
- declare const paypalSendInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- invoice_id: string;
28
- note?: string | undefined;
29
- subject?: string | undefined;
30
- send_to_invoicer?: boolean | undefined;
31
- send_to_recipient?: boolean | undefined;
32
- additional_recipients?: string[] | undefined;
33
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
34
- connectionId: z.ZodString;
35
- entityId: z.ZodString;
36
- instanceId: z.ZodString;
37
- }, z.core.$strip>, z.ZodObject<{
38
- accessToken: z.ZodString;
39
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
40
- connectionId: z.ZodString;
41
- entityId: z.ZodString;
42
- instanceId: z.ZodString;
43
- }, z.core.$strip>, z.ZodObject<{
44
- accessToken: z.ZodString;
45
- }, z.core.$strip>>]>;
28
+ declare const paypalSendInvoice: AppAction<typeof PaypalSendInvoiceInput, typeof PaypalSendInvoiceOutput, typeof paypal.credential>;
46
29
  //#endregion
47
30
  export { paypalSendInvoice };
48
31
  //# sourceMappingURL=send-invoice.d.cts.map