@keystrokehq/paypal 0.1.0 → 0.1.2
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.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/activate-plan.cjs.map +1 -1
- package/dist/actions/activate-plan.d.cts +10 -3
- package/dist/actions/activate-plan.d.cts.map +1 -1
- package/dist/actions/activate-plan.d.mts +10 -3
- package/dist/actions/activate-plan.d.mts.map +1 -1
- package/dist/actions/activate-plan.mjs.map +1 -1
- package/dist/actions/add-batch-trackers.cjs +5 -5
- package/dist/actions/add-batch-trackers.cjs.map +1 -1
- package/dist/actions/add-batch-trackers.d.cts +78 -3
- package/dist/actions/add-batch-trackers.d.cts.map +1 -1
- package/dist/actions/add-batch-trackers.d.mts +78 -3
- package/dist/actions/add-batch-trackers.d.mts.map +1 -1
- package/dist/actions/add-batch-trackers.mjs +5 -5
- package/dist/actions/add-batch-trackers.mjs.map +1 -1
- package/dist/actions/authorize-order.cjs +6 -6
- package/dist/actions/authorize-order.cjs.map +1 -1
- package/dist/actions/authorize-order.d.cts +94 -3
- package/dist/actions/authorize-order.d.cts.map +1 -1
- package/dist/actions/authorize-order.d.mts +94 -3
- package/dist/actions/authorize-order.d.mts.map +1 -1
- package/dist/actions/authorize-order.mjs +6 -6
- package/dist/actions/authorize-order.mjs.map +1 -1
- package/dist/actions/cancel-invoice.cjs +1 -1
- package/dist/actions/cancel-invoice.cjs.map +1 -1
- package/dist/actions/cancel-invoice.d.cts +36 -3
- package/dist/actions/cancel-invoice.d.cts.map +1 -1
- package/dist/actions/cancel-invoice.d.mts +36 -3
- package/dist/actions/cancel-invoice.d.mts.map +1 -1
- package/dist/actions/cancel-invoice.mjs +1 -1
- package/dist/actions/cancel-invoice.mjs.map +1 -1
- package/dist/actions/cancel-reminders.cjs +1 -1
- package/dist/actions/cancel-reminders.cjs.map +1 -1
- package/dist/actions/cancel-reminders.d.cts +25 -3
- package/dist/actions/cancel-reminders.d.cts.map +1 -1
- package/dist/actions/cancel-reminders.d.mts +25 -3
- package/dist/actions/cancel-reminders.d.mts.map +1 -1
- package/dist/actions/cancel-reminders.mjs +1 -1
- package/dist/actions/cancel-reminders.mjs.map +1 -1
- package/dist/actions/capture-subscription-payment.cjs +14 -14
- package/dist/actions/capture-subscription-payment.cjs.map +1 -1
- package/dist/actions/capture-subscription-payment.d.cts +67 -3
- package/dist/actions/capture-subscription-payment.d.cts.map +1 -1
- package/dist/actions/capture-subscription-payment.d.mts +67 -3
- package/dist/actions/capture-subscription-payment.d.mts.map +1 -1
- package/dist/actions/capture-subscription-payment.mjs +14 -14
- package/dist/actions/capture-subscription-payment.mjs.map +1 -1
- package/dist/actions/charge-payment-method.cjs.map +1 -1
- package/dist/actions/charge-payment-method.d.cts +89 -3
- package/dist/actions/charge-payment-method.d.cts.map +1 -1
- package/dist/actions/charge-payment-method.d.mts +89 -3
- package/dist/actions/charge-payment-method.d.mts.map +1 -1
- package/dist/actions/charge-payment-method.mjs.map +1 -1
- package/dist/actions/create-invoice.cjs +7 -7
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +428 -3
- package/dist/actions/create-invoice.d.cts.map +1 -1
- package/dist/actions/create-invoice.d.mts +428 -3
- package/dist/actions/create-invoice.d.mts.map +1 -1
- package/dist/actions/create-invoice.mjs +7 -7
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/create-payment.cjs +11 -11
- package/dist/actions/create-payment.cjs.map +1 -1
- package/dist/actions/create-payment.d.cts +211 -3
- package/dist/actions/create-payment.d.cts.map +1 -1
- package/dist/actions/create-payment.d.mts +211 -3
- package/dist/actions/create-payment.d.mts.map +1 -1
- package/dist/actions/create-payment.mjs +11 -11
- package/dist/actions/create-payment.mjs.map +1 -1
- package/dist/actions/create-payments-billing-plans.cjs +8 -8
- package/dist/actions/create-payments-billing-plans.cjs.map +1 -1
- package/dist/actions/create-payments-billing-plans.d.cts +152 -3
- package/dist/actions/create-payments-billing-plans.d.cts.map +1 -1
- package/dist/actions/create-payments-billing-plans.d.mts +152 -3
- package/dist/actions/create-payments-billing-plans.d.mts.map +1 -1
- package/dist/actions/create-payments-billing-plans.mjs +8 -8
- package/dist/actions/create-payments-billing-plans.mjs.map +1 -1
- package/dist/actions/create-plan.cjs +8 -8
- package/dist/actions/create-plan.cjs.map +1 -1
- package/dist/actions/create-plan.d.cts +142 -3
- package/dist/actions/create-plan.d.cts.map +1 -1
- package/dist/actions/create-plan.d.mts +142 -3
- package/dist/actions/create-plan.d.mts.map +1 -1
- package/dist/actions/create-plan.mjs +8 -8
- package/dist/actions/create-plan.mjs.map +1 -1
- package/dist/actions/create-product.cjs.map +1 -1
- package/dist/actions/create-product.d.cts +184 -3
- package/dist/actions/create-product.d.cts.map +1 -1
- package/dist/actions/create-product.d.mts +184 -3
- package/dist/actions/create-product.d.mts.map +1 -1
- package/dist/actions/create-product.mjs.map +1 -1
- package/dist/actions/create-subscription.cjs +2 -2
- package/dist/actions/create-subscription.cjs.map +1 -1
- package/dist/actions/create-subscription.d.cts +254 -3
- package/dist/actions/create-subscription.d.cts.map +1 -1
- package/dist/actions/create-subscription.d.mts +254 -3
- package/dist/actions/create-subscription.d.mts.map +1 -1
- package/dist/actions/create-subscription.mjs +2 -2
- package/dist/actions/create-subscription.mjs.map +1 -1
- package/dist/actions/create-template.cjs +5 -5
- package/dist/actions/create-template.cjs.map +1 -1
- package/dist/actions/create-template.d.cts +317 -3
- package/dist/actions/create-template.d.cts.map +1 -1
- package/dist/actions/create-template.d.mts +317 -3
- package/dist/actions/create-template.d.mts.map +1 -1
- package/dist/actions/create-template.mjs +5 -5
- package/dist/actions/create-template.mjs.map +1 -1
- package/dist/actions/create-web-profile.cjs +2 -2
- package/dist/actions/create-web-profile.cjs.map +1 -1
- package/dist/actions/create-web-profile.d.cts +81 -3
- package/dist/actions/create-web-profile.d.cts.map +1 -1
- package/dist/actions/create-web-profile.d.mts +81 -3
- package/dist/actions/create-web-profile.d.mts.map +1 -1
- package/dist/actions/create-web-profile.mjs +2 -2
- package/dist/actions/create-web-profile.mjs.map +1 -1
- package/dist/actions/create-webhook-lookup.cjs +3 -3
- package/dist/actions/create-webhook-lookup.cjs.map +1 -1
- package/dist/actions/create-webhook-lookup.d.cts +11 -3
- package/dist/actions/create-webhook-lookup.d.cts.map +1 -1
- package/dist/actions/create-webhook-lookup.d.mts +11 -3
- package/dist/actions/create-webhook-lookup.d.mts.map +1 -1
- package/dist/actions/create-webhook-lookup.mjs +3 -3
- package/dist/actions/create-webhook-lookup.mjs.map +1 -1
- package/dist/actions/create-webhook.cjs +3 -3
- package/dist/actions/create-webhook.cjs.map +1 -1
- package/dist/actions/create-webhook.d.cts +36 -3
- package/dist/actions/create-webhook.d.cts.map +1 -1
- package/dist/actions/create-webhook.d.mts +36 -3
- package/dist/actions/create-webhook.d.mts.map +1 -1
- package/dist/actions/create-webhook.mjs +3 -3
- package/dist/actions/create-webhook.mjs.map +1 -1
- package/dist/actions/deactivate-plan.cjs +2 -2
- package/dist/actions/deactivate-plan.cjs.map +1 -1
- package/dist/actions/deactivate-plan.d.cts +10 -3
- package/dist/actions/deactivate-plan.d.cts.map +1 -1
- package/dist/actions/deactivate-plan.d.mts +10 -3
- package/dist/actions/deactivate-plan.d.mts.map +1 -1
- package/dist/actions/deactivate-plan.mjs +2 -2
- package/dist/actions/deactivate-plan.mjs.map +1 -1
- package/dist/actions/delete-external-payment.cjs.map +1 -1
- package/dist/actions/delete-external-payment.d.cts +13 -3
- package/dist/actions/delete-external-payment.d.cts.map +1 -1
- package/dist/actions/delete-external-payment.d.mts +13 -3
- package/dist/actions/delete-external-payment.d.mts.map +1 -1
- package/dist/actions/delete-external-payment.mjs.map +1 -1
- package/dist/actions/delete-invoice-payment-record.cjs.map +1 -1
- package/dist/actions/delete-invoice-payment-record.d.cts +13 -3
- package/dist/actions/delete-invoice-payment-record.d.cts.map +1 -1
- package/dist/actions/delete-invoice-payment-record.d.mts +13 -3
- package/dist/actions/delete-invoice-payment-record.d.mts.map +1 -1
- package/dist/actions/delete-invoice-payment-record.mjs.map +1 -1
- package/dist/actions/delete-invoice-refund-record.cjs.map +1 -1
- package/dist/actions/delete-invoice-refund-record.d.cts +12 -3
- package/dist/actions/delete-invoice-refund-record.d.cts.map +1 -1
- package/dist/actions/delete-invoice-refund-record.d.mts +12 -3
- package/dist/actions/delete-invoice-refund-record.d.mts.map +1 -1
- package/dist/actions/delete-invoice-refund-record.mjs.map +1 -1
- package/dist/actions/delete-invoice.cjs +3 -3
- package/dist/actions/delete-invoice.cjs.map +1 -1
- package/dist/actions/delete-invoice.d.cts +25 -3
- package/dist/actions/delete-invoice.d.cts.map +1 -1
- package/dist/actions/delete-invoice.d.mts +25 -3
- package/dist/actions/delete-invoice.d.mts.map +1 -1
- package/dist/actions/delete-invoice.mjs +3 -3
- package/dist/actions/delete-invoice.mjs.map +1 -1
- package/dist/actions/delete-payment-resource.cjs +2 -2
- package/dist/actions/delete-payment-resource.cjs.map +1 -1
- package/dist/actions/delete-payment-resource.d.cts +10 -3
- package/dist/actions/delete-payment-resource.d.cts.map +1 -1
- package/dist/actions/delete-payment-resource.d.mts +10 -3
- package/dist/actions/delete-payment-resource.d.mts.map +1 -1
- package/dist/actions/delete-payment-resource.mjs +2 -2
- package/dist/actions/delete-payment-resource.mjs.map +1 -1
- package/dist/actions/delete-template.cjs +3 -3
- package/dist/actions/delete-template.cjs.map +1 -1
- package/dist/actions/delete-template.d.cts +25 -3
- package/dist/actions/delete-template.d.cts.map +1 -1
- package/dist/actions/delete-template.d.mts +25 -3
- package/dist/actions/delete-template.d.mts.map +1 -1
- package/dist/actions/delete-template.mjs +3 -3
- package/dist/actions/delete-template.mjs.map +1 -1
- package/dist/actions/delete-web-profile.cjs +2 -2
- package/dist/actions/delete-web-profile.cjs.map +1 -1
- package/dist/actions/delete-web-profile.d.cts +10 -3
- package/dist/actions/delete-web-profile.d.cts.map +1 -1
- package/dist/actions/delete-web-profile.d.mts +10 -3
- package/dist/actions/delete-web-profile.d.mts.map +1 -1
- package/dist/actions/delete-web-profile.mjs +2 -2
- package/dist/actions/delete-web-profile.mjs.map +1 -1
- package/dist/actions/delete-webhook.cjs +3 -3
- package/dist/actions/delete-webhook.cjs.map +1 -1
- package/dist/actions/delete-webhook.d.cts +24 -3
- package/dist/actions/delete-webhook.d.cts.map +1 -1
- package/dist/actions/delete-webhook.d.mts +24 -3
- package/dist/actions/delete-webhook.d.mts.map +1 -1
- package/dist/actions/delete-webhook.mjs +3 -3
- package/dist/actions/delete-webhook.mjs.map +1 -1
- package/dist/actions/fetch-node.cjs +1 -1
- package/dist/actions/fetch-node.cjs.map +1 -1
- package/dist/actions/fetch-node.d.cts +21 -3
- package/dist/actions/fetch-node.d.cts.map +1 -1
- package/dist/actions/fetch-node.d.mts +21 -3
- package/dist/actions/fetch-node.d.mts.map +1 -1
- package/dist/actions/fetch-node.mjs +1 -1
- package/dist/actions/fetch-node.mjs.map +1 -1
- package/dist/actions/finalize-pay-pal-braintree-dispute.cjs.map +1 -1
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts +14 -3
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts.map +1 -1
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +14 -3
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts.map +1 -1
- package/dist/actions/finalize-pay-pal-braintree-dispute.mjs.map +1 -1
- package/dist/actions/find-eligible-methods.cjs +1 -1
- package/dist/actions/find-eligible-methods.cjs.map +1 -1
- package/dist/actions/find-eligible-methods.d.cts +119 -3
- package/dist/actions/find-eligible-methods.d.cts.map +1 -1
- package/dist/actions/find-eligible-methods.d.mts +119 -3
- package/dist/actions/find-eligible-methods.d.mts.map +1 -1
- package/dist/actions/find-eligible-methods.mjs +1 -1
- package/dist/actions/find-eligible-methods.mjs.map +1 -1
- package/dist/actions/generate-client-token.cjs +1 -1
- package/dist/actions/generate-client-token.cjs.map +1 -1
- package/dist/actions/generate-client-token.d.cts +7 -3
- package/dist/actions/generate-client-token.d.cts.map +1 -1
- package/dist/actions/generate-client-token.d.mts +7 -3
- package/dist/actions/generate-client-token.d.mts.map +1 -1
- package/dist/actions/generate-client-token.mjs +1 -1
- package/dist/actions/generate-client-token.mjs.map +1 -1
- package/dist/actions/generate-next-invoice-number-v2.cjs.map +1 -1
- package/dist/actions/generate-next-invoice-number-v2.d.cts +10 -3
- package/dist/actions/generate-next-invoice-number-v2.d.cts.map +1 -1
- package/dist/actions/generate-next-invoice-number-v2.d.mts +10 -3
- package/dist/actions/generate-next-invoice-number-v2.d.mts.map +1 -1
- package/dist/actions/generate-next-invoice-number-v2.mjs.map +1 -1
- package/dist/actions/generate-next-invoice-number.cjs +1 -1
- package/dist/actions/generate-next-invoice-number.cjs.map +1 -1
- package/dist/actions/generate-next-invoice-number.d.cts +5 -3
- package/dist/actions/generate-next-invoice-number.d.cts.map +1 -1
- package/dist/actions/generate-next-invoice-number.d.mts +5 -3
- package/dist/actions/generate-next-invoice-number.d.mts.map +1 -1
- package/dist/actions/generate-next-invoice-number.mjs +1 -1
- package/dist/actions/generate-next-invoice-number.mjs.map +1 -1
- package/dist/actions/generate-qr-code.cjs +3 -3
- package/dist/actions/generate-qr-code.cjs.map +1 -1
- package/dist/actions/generate-qr-code.d.cts +38 -3
- package/dist/actions/generate-qr-code.d.cts.map +1 -1
- package/dist/actions/generate-qr-code.d.mts +38 -3
- package/dist/actions/generate-qr-code.d.mts.map +1 -1
- package/dist/actions/generate-qr-code.mjs +3 -3
- package/dist/actions/generate-qr-code.mjs.map +1 -1
- package/dist/actions/get-billing-subscriptions.cjs.map +1 -1
- package/dist/actions/get-billing-subscriptions.d.cts +86 -3
- package/dist/actions/get-billing-subscriptions.d.cts.map +1 -1
- package/dist/actions/get-billing-subscriptions.d.mts +86 -3
- package/dist/actions/get-billing-subscriptions.d.mts.map +1 -1
- package/dist/actions/get-billing-subscriptions.mjs.map +1 -1
- package/dist/actions/get-invoice.cjs +9 -9
- package/dist/actions/get-invoice.cjs.map +1 -1
- package/dist/actions/get-invoice.d.cts +151 -3
- package/dist/actions/get-invoice.d.cts.map +1 -1
- package/dist/actions/get-invoice.d.mts +151 -3
- package/dist/actions/get-invoice.d.mts.map +1 -1
- package/dist/actions/get-invoice.mjs +9 -9
- package/dist/actions/get-invoice.mjs.map +1 -1
- package/dist/actions/get-invoicing-invoices-qr-code.cjs +3 -3
- package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -1
- package/dist/actions/get-invoicing-invoices-qr-code.d.cts +20 -3
- package/dist/actions/get-invoicing-invoices-qr-code.d.cts.map +1 -1
- package/dist/actions/get-invoicing-invoices-qr-code.d.mts +20 -3
- package/dist/actions/get-invoicing-invoices-qr-code.d.mts.map +1 -1
- package/dist/actions/get-invoicing-invoices-qr-code.mjs +3 -3
- package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -1
- package/dist/actions/get-invoicing-template.cjs +2 -2
- package/dist/actions/get-invoicing-template.cjs.map +1 -1
- package/dist/actions/get-invoicing-template.d.cts +134 -3
- package/dist/actions/get-invoicing-template.d.cts.map +1 -1
- package/dist/actions/get-invoicing-template.d.mts +134 -3
- package/dist/actions/get-invoicing-template.d.mts.map +1 -1
- package/dist/actions/get-invoicing-template.mjs +2 -2
- package/dist/actions/get-invoicing-template.mjs.map +1 -1
- package/dist/actions/get-order.cjs.map +1 -1
- package/dist/actions/get-order.d.cts +114 -3
- package/dist/actions/get-order.d.cts.map +1 -1
- package/dist/actions/get-order.d.mts +114 -3
- package/dist/actions/get-order.d.mts.map +1 -1
- package/dist/actions/get-order.mjs.map +1 -1
- package/dist/actions/get-payment.cjs.map +1 -1
- package/dist/actions/get-payment.d.cts +93 -3
- package/dist/actions/get-payment.d.cts.map +1 -1
- package/dist/actions/get-payment.d.mts +93 -3
- package/dist/actions/get-payment.d.mts.map +1 -1
- package/dist/actions/get-payment.mjs.map +1 -1
- package/dist/actions/get-payments-refund.cjs.map +1 -1
- package/dist/actions/get-payments-refund.d.cts +26 -3
- package/dist/actions/get-payments-refund.d.cts.map +1 -1
- package/dist/actions/get-payments-refund.d.mts +26 -3
- package/dist/actions/get-payments-refund.d.mts.map +1 -1
- package/dist/actions/get-payments-refund.mjs.map +1 -1
- package/dist/actions/get-plan.cjs.map +1 -1
- package/dist/actions/get-plan.d.cts +52 -3
- package/dist/actions/get-plan.d.cts.map +1 -1
- package/dist/actions/get-plan.d.mts +52 -3
- package/dist/actions/get-plan.d.mts.map +1 -1
- package/dist/actions/get-plan.mjs.map +1 -1
- package/dist/actions/get-product.cjs +3 -3
- package/dist/actions/get-product.cjs.map +1 -1
- package/dist/actions/get-product.d.cts +22 -3
- package/dist/actions/get-product.d.cts.map +1 -1
- package/dist/actions/get-product.d.mts +22 -3
- package/dist/actions/get-product.d.mts.map +1 -1
- package/dist/actions/get-product.mjs +3 -3
- package/dist/actions/get-product.mjs.map +1 -1
- package/dist/actions/get-subscription.cjs.map +1 -1
- package/dist/actions/get-subscription.d.cts +79 -3
- package/dist/actions/get-subscription.d.cts.map +1 -1
- package/dist/actions/get-subscription.d.mts +79 -3
- package/dist/actions/get-subscription.d.mts.map +1 -1
- package/dist/actions/get-subscription.mjs.map +1 -1
- package/dist/actions/get-user-info.cjs.map +1 -1
- package/dist/actions/get-user-info.d.cts +34 -3
- package/dist/actions/get-user-info.d.cts.map +1 -1
- package/dist/actions/get-user-info.d.mts +34 -3
- package/dist/actions/get-user-info.d.mts.map +1 -1
- package/dist/actions/get-user-info.mjs.map +1 -1
- package/dist/actions/get-userinfo.cjs.map +1 -1
- package/dist/actions/get-userinfo.d.cts +47 -3
- package/dist/actions/get-userinfo.d.cts.map +1 -1
- package/dist/actions/get-userinfo.d.mts +47 -3
- package/dist/actions/get-userinfo.d.mts.map +1 -1
- package/dist/actions/get-userinfo.mjs.map +1 -1
- package/dist/actions/get-web-profile.cjs +1 -1
- package/dist/actions/get-web-profile.cjs.map +1 -1
- package/dist/actions/get-web-profile.d.cts +26 -3
- package/dist/actions/get-web-profile.d.cts.map +1 -1
- package/dist/actions/get-web-profile.d.mts +26 -3
- package/dist/actions/get-web-profile.d.mts.map +1 -1
- package/dist/actions/get-web-profile.mjs +1 -1
- package/dist/actions/get-web-profile.mjs.map +1 -1
- package/dist/actions/get-webhook-lookup.cjs +1 -1
- package/dist/actions/get-webhook-lookup.cjs.map +1 -1
- package/dist/actions/get-webhook-lookup.d.cts +15 -3
- package/dist/actions/get-webhook-lookup.d.cts.map +1 -1
- package/dist/actions/get-webhook-lookup.d.mts +15 -3
- package/dist/actions/get-webhook-lookup.d.mts.map +1 -1
- package/dist/actions/get-webhook-lookup.mjs +1 -1
- package/dist/actions/get-webhook-lookup.mjs.map +1 -1
- package/dist/actions/get-webhook.cjs +2 -2
- package/dist/actions/get-webhook.cjs.map +1 -1
- package/dist/actions/get-webhook.d.cts +23 -3
- package/dist/actions/get-webhook.d.cts.map +1 -1
- package/dist/actions/get-webhook.d.mts +23 -3
- package/dist/actions/get-webhook.d.mts.map +1 -1
- package/dist/actions/get-webhook.mjs +2 -2
- package/dist/actions/get-webhook.mjs.map +1 -1
- package/dist/actions/list-disputes.cjs +2 -2
- package/dist/actions/list-disputes.cjs.map +1 -1
- package/dist/actions/list-disputes.d.cts +57 -3
- package/dist/actions/list-disputes.d.cts.map +1 -1
- package/dist/actions/list-disputes.d.mts +57 -3
- package/dist/actions/list-disputes.d.mts.map +1 -1
- package/dist/actions/list-disputes.mjs +2 -2
- package/dist/actions/list-disputes.mjs.map +1 -1
- package/dist/actions/list-invoices.cjs.map +1 -1
- package/dist/actions/list-invoices.d.cts +82 -3
- package/dist/actions/list-invoices.d.cts.map +1 -1
- package/dist/actions/list-invoices.d.mts +82 -3
- package/dist/actions/list-invoices.d.mts.map +1 -1
- package/dist/actions/list-invoices.mjs.map +1 -1
- package/dist/actions/list-legacy-billing-plans.cjs.map +1 -1
- package/dist/actions/list-legacy-billing-plans.d.cts +83 -3
- package/dist/actions/list-legacy-billing-plans.d.cts.map +1 -1
- package/dist/actions/list-legacy-billing-plans.d.mts +83 -3
- package/dist/actions/list-legacy-billing-plans.d.mts.map +1 -1
- package/dist/actions/list-legacy-billing-plans.mjs.map +1 -1
- package/dist/actions/list-payments.cjs.map +1 -1
- package/dist/actions/list-payments.d.cts +109 -3
- package/dist/actions/list-payments.d.cts.map +1 -1
- package/dist/actions/list-payments.d.mts +109 -3
- package/dist/actions/list-payments.d.mts.map +1 -1
- package/dist/actions/list-payments.mjs.map +1 -1
- package/dist/actions/list-plans.cjs +3 -3
- package/dist/actions/list-plans.cjs.map +1 -1
- package/dist/actions/list-plans.d.cts +56 -3
- package/dist/actions/list-plans.d.cts.map +1 -1
- package/dist/actions/list-plans.d.mts +56 -3
- package/dist/actions/list-plans.d.mts.map +1 -1
- package/dist/actions/list-plans.mjs +3 -3
- package/dist/actions/list-plans.mjs.map +1 -1
- package/dist/actions/list-products.cjs.map +1 -1
- package/dist/actions/list-products.d.cts +30 -3
- package/dist/actions/list-products.d.cts.map +1 -1
- package/dist/actions/list-products.d.mts +30 -3
- package/dist/actions/list-products.d.mts.map +1 -1
- package/dist/actions/list-products.mjs.map +1 -1
- package/dist/actions/list-templates.cjs.map +1 -1
- package/dist/actions/list-templates.d.cts +66 -3
- package/dist/actions/list-templates.d.cts.map +1 -1
- package/dist/actions/list-templates.d.mts +66 -3
- package/dist/actions/list-templates.d.mts.map +1 -1
- package/dist/actions/list-templates.mjs.map +1 -1
- package/dist/actions/list-web-profiles.cjs +1 -1
- package/dist/actions/list-web-profiles.cjs.map +1 -1
- package/dist/actions/list-web-profiles.d.cts +35 -3
- package/dist/actions/list-web-profiles.d.cts.map +1 -1
- package/dist/actions/list-web-profiles.d.mts +35 -3
- package/dist/actions/list-web-profiles.d.mts.map +1 -1
- package/dist/actions/list-web-profiles.mjs +1 -1
- package/dist/actions/list-web-profiles.mjs.map +1 -1
- package/dist/actions/list-webhook-event-type-subscriptions.cjs +1 -1
- package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -1
- package/dist/actions/list-webhook-event-type-subscriptions.d.cts +16 -3
- package/dist/actions/list-webhook-event-type-subscriptions.d.cts.map +1 -1
- package/dist/actions/list-webhook-event-type-subscriptions.d.mts +16 -3
- package/dist/actions/list-webhook-event-type-subscriptions.d.mts.map +1 -1
- package/dist/actions/list-webhook-event-type-subscriptions.mjs +1 -1
- package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -1
- package/dist/actions/list-webhook-event-types.cjs +1 -1
- package/dist/actions/list-webhook-event-types.cjs.map +1 -1
- package/dist/actions/list-webhook-event-types.d.cts +12 -3
- package/dist/actions/list-webhook-event-types.d.cts.map +1 -1
- package/dist/actions/list-webhook-event-types.d.mts +12 -3
- package/dist/actions/list-webhook-event-types.d.mts.map +1 -1
- package/dist/actions/list-webhook-event-types.mjs +1 -1
- package/dist/actions/list-webhook-event-types.mjs.map +1 -1
- package/dist/actions/list-webhook-lookups.cjs.map +1 -1
- package/dist/actions/list-webhook-lookups.d.cts +13 -3
- package/dist/actions/list-webhook-lookups.d.cts.map +1 -1
- package/dist/actions/list-webhook-lookups.d.mts +13 -3
- package/dist/actions/list-webhook-lookups.d.mts.map +1 -1
- package/dist/actions/list-webhook-lookups.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +1 -1
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +24 -3
- package/dist/actions/list-webhooks.d.cts.map +1 -1
- package/dist/actions/list-webhooks.d.mts +24 -3
- package/dist/actions/list-webhooks.d.mts.map +1 -1
- package/dist/actions/list-webhooks.mjs +1 -1
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/patch-orders.cjs.map +1 -1
- package/dist/actions/patch-orders.d.cts +31 -3
- package/dist/actions/patch-orders.d.cts.map +1 -1
- package/dist/actions/patch-orders.d.mts +31 -3
- package/dist/actions/patch-orders.d.mts.map +1 -1
- package/dist/actions/patch-orders.mjs.map +1 -1
- package/dist/actions/patch-plan.cjs.map +1 -1
- package/dist/actions/patch-plan.d.cts +29 -3
- package/dist/actions/patch-plan.d.cts.map +1 -1
- package/dist/actions/patch-plan.d.mts +29 -3
- package/dist/actions/patch-plan.d.mts.map +1 -1
- package/dist/actions/patch-plan.mjs.map +1 -1
- package/dist/actions/patch-subscription.cjs +2 -2
- package/dist/actions/patch-subscription.cjs.map +1 -1
- package/dist/actions/patch-subscription.d.cts +36 -3
- package/dist/actions/patch-subscription.d.cts.map +1 -1
- package/dist/actions/patch-subscription.d.mts +36 -3
- package/dist/actions/patch-subscription.d.mts.map +1 -1
- package/dist/actions/patch-subscription.mjs +2 -2
- package/dist/actions/patch-subscription.mjs.map +1 -1
- package/dist/actions/patch-web-profile.cjs.map +1 -1
- package/dist/actions/patch-web-profile.d.cts +29 -3
- package/dist/actions/patch-web-profile.d.cts.map +1 -1
- package/dist/actions/patch-web-profile.d.mts +29 -3
- package/dist/actions/patch-web-profile.d.mts.map +1 -1
- package/dist/actions/patch-web-profile.mjs.map +1 -1
- package/dist/actions/ping-braintree.cjs.map +1 -1
- package/dist/actions/ping-braintree.d.cts +6 -3
- package/dist/actions/ping-braintree.d.cts.map +1 -1
- package/dist/actions/ping-braintree.d.mts +6 -3
- package/dist/actions/ping-braintree.d.mts.map +1 -1
- package/dist/actions/ping-braintree.mjs.map +1 -1
- package/dist/actions/query-braintree-report.cjs +1 -1
- package/dist/actions/query-braintree-report.cjs.map +1 -1
- package/dist/actions/query-braintree-report.d.cts +30 -3
- package/dist/actions/query-braintree-report.d.cts.map +1 -1
- package/dist/actions/query-braintree-report.d.mts +30 -3
- package/dist/actions/query-braintree-report.d.mts.map +1 -1
- package/dist/actions/query-braintree-report.mjs +1 -1
- package/dist/actions/query-braintree-report.mjs.map +1 -1
- package/dist/actions/retrieve-payment-resource.cjs +1 -1
- package/dist/actions/retrieve-payment-resource.cjs.map +1 -1
- package/dist/actions/retrieve-payment-resource.d.cts +60 -3
- package/dist/actions/retrieve-payment-resource.d.cts.map +1 -1
- package/dist/actions/retrieve-payment-resource.d.mts +60 -3
- package/dist/actions/retrieve-payment-resource.d.mts.map +1 -1
- package/dist/actions/retrieve-payment-resource.mjs +1 -1
- package/dist/actions/retrieve-payment-resource.mjs.map +1 -1
- package/dist/actions/search-invoices.cjs +1 -1
- package/dist/actions/search-invoices.cjs.map +1 -1
- package/dist/actions/search-invoices.d.cts +156 -3
- package/dist/actions/search-invoices.d.cts.map +1 -1
- package/dist/actions/search-invoices.d.mts +156 -3
- package/dist/actions/search-invoices.d.mts.map +1 -1
- package/dist/actions/search-invoices.mjs +1 -1
- package/dist/actions/search-invoices.mjs.map +1 -1
- package/dist/actions/send-invoice.cjs +2 -2
- package/dist/actions/send-invoice.cjs.map +1 -1
- package/dist/actions/send-invoice.d.cts +30 -3
- package/dist/actions/send-invoice.d.cts.map +1 -1
- package/dist/actions/send-invoice.d.mts +30 -3
- package/dist/actions/send-invoice.d.mts.map +1 -1
- package/dist/actions/send-invoice.mjs +2 -2
- package/dist/actions/send-invoice.mjs.map +1 -1
- package/dist/actions/simulate-webhook-event.cjs +3 -3
- package/dist/actions/simulate-webhook-event.cjs.map +1 -1
- package/dist/actions/simulate-webhook-event.d.cts +42 -3
- package/dist/actions/simulate-webhook-event.d.cts.map +1 -1
- package/dist/actions/simulate-webhook-event.d.mts +42 -3
- package/dist/actions/simulate-webhook-event.d.mts.map +1 -1
- package/dist/actions/simulate-webhook-event.mjs +3 -3
- package/dist/actions/simulate-webhook-event.mjs.map +1 -1
- package/dist/actions/update-dispute.cjs +2 -2
- package/dist/actions/update-dispute.cjs.map +1 -1
- package/dist/actions/update-dispute.d.cts +39 -3
- package/dist/actions/update-dispute.d.cts.map +1 -1
- package/dist/actions/update-dispute.d.mts +39 -3
- package/dist/actions/update-dispute.d.mts.map +1 -1
- package/dist/actions/update-dispute.mjs +2 -2
- package/dist/actions/update-dispute.mjs.map +1 -1
- package/dist/actions/update-invoice.cjs +15 -15
- package/dist/actions/update-invoice.cjs.map +1 -1
- package/dist/actions/update-invoice.d.cts +538 -3
- package/dist/actions/update-invoice.d.cts.map +1 -1
- package/dist/actions/update-invoice.d.mts +538 -3
- package/dist/actions/update-invoice.d.mts.map +1 -1
- package/dist/actions/update-invoice.mjs +15 -15
- package/dist/actions/update-invoice.mjs.map +1 -1
- package/dist/actions/update-pay-pal-product.cjs.map +1 -1
- package/dist/actions/update-pay-pal-product.d.cts +29 -3
- package/dist/actions/update-pay-pal-product.d.cts.map +1 -1
- package/dist/actions/update-pay-pal-product.d.mts +29 -3
- package/dist/actions/update-pay-pal-product.d.mts.map +1 -1
- package/dist/actions/update-pay-pal-product.mjs.map +1 -1
- package/dist/actions/update-pay-pal-webhook.cjs +3 -3
- package/dist/actions/update-pay-pal-webhook.cjs.map +1 -1
- package/dist/actions/update-pay-pal-webhook.d.cts +40 -3
- package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -1
- package/dist/actions/update-pay-pal-webhook.d.mts +40 -3
- package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -1
- package/dist/actions/update-pay-pal-webhook.mjs +3 -3
- package/dist/actions/update-pay-pal-webhook.mjs.map +1 -1
- package/dist/actions/update-templates.cjs.map +1 -1
- package/dist/actions/update-templates.d.cts +627 -3
- package/dist/actions/update-templates.d.cts.map +1 -1
- package/dist/actions/update-templates.d.mts +627 -3
- package/dist/actions/update-templates.d.mts.map +1 -1
- package/dist/actions/update-templates.mjs.map +1 -1
- package/dist/actions/update-web-profile.cjs +2 -2
- package/dist/actions/update-web-profile.cjs.map +1 -1
- package/dist/actions/update-web-profile.d.cts +59 -3
- package/dist/actions/update-web-profile.d.cts.map +1 -1
- package/dist/actions/update-web-profile.d.mts +59 -3
- package/dist/actions/update-web-profile.d.mts.map +1 -1
- package/dist/actions/update-web-profile.mjs +2 -2
- package/dist/actions/update-web-profile.mjs.map +1 -1
- package/dist/actions/verify-payment-method.cjs +3 -3
- package/dist/actions/verify-payment-method.cjs.map +1 -1
- package/dist/actions/verify-payment-method.d.cts +25 -3
- package/dist/actions/verify-payment-method.d.cts.map +1 -1
- package/dist/actions/verify-payment-method.d.mts +25 -3
- package/dist/actions/verify-payment-method.d.mts.map +1 -1
- package/dist/actions/verify-payment-method.mjs +3 -3
- package/dist/actions/verify-payment-method.mjs.map +1 -1
- package/dist/actions/verify-webhook-signature.cjs +1 -1
- package/dist/actions/verify-webhook-signature.cjs.map +1 -1
- package/dist/actions/verify-webhook-signature.d.cts +52 -3
- package/dist/actions/verify-webhook-signature.d.cts.map +1 -1
- package/dist/actions/verify-webhook-signature.d.mts +52 -3
- package/dist/actions/verify-webhook-signature.d.mts.map +1 -1
- package/dist/actions/verify-webhook-signature.mjs +1 -1
- package/dist/actions/verify-webhook-signature.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/ping-braintree.d.ts
|
|
4
|
-
declare const PaypalPingBraintreeInput: z.
|
|
5
|
-
declare const PaypalPingBraintreeOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PaypalPingBraintreeInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PaypalPingBraintreeOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
7
|
+
ping: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const paypalPingBraintree: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
10
|
//#endregion
|
|
8
11
|
export { paypalPingBraintree };
|
|
9
12
|
//# sourceMappingURL=ping-braintree.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping-braintree.d.mts","names":[],"sources":["../../src/actions/ping-braintree.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"ping-braintree.d.mts","names":[],"sources":["../../src/actions/ping-braintree.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping-braintree.mjs","names":[],"sources":["../../src/actions/ping-braintree.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPingBraintreeInput
|
|
1
|
+
{"version":3,"file":"ping-braintree.mjs","names":[],"sources":["../../src/actions/ping-braintree.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPingBraintreeInput = z.object({}).describe(\"Request model for the Braintree ping query.\\n\\nThis endpoint does not require any request parameters. It is a simple\\nhealth check endpoint that verifies API connectivity to the Braintree\\nGraphQL API by confirming the server responds with the expected \\\"pong\\\" response.\");\nexport const PaypalPingBraintreeOutput = z.object({\n data: z.object({}).describe(\"The data object containing the ping response.\").nullable().optional(),\n ping: z.string().describe(\"The literal string 'pong' returned by the server.\").nullable().optional(),\n}).describe(\"Response model for the Braintree ping query.\");\n\nexport const paypalPingBraintree = action(\"PAYPAL_PING_BRAINTREE\", {\n slug: \"paypal-ping-braintree\",\n name: \"Braintree Ping\",\n description: \"Sends a ping query to the PayPal Braintree GraphQL API. Use when you need to verify connectivity and authentication status with the Braintree GraphQL endpoint. Returns the literal string 'pong' on successful connection. This is a simple health check endpoint for verifying API connectivity. The ping operation does not modify any data and is idempotent.\",\n input: PaypalPingBraintreeInput,\n output: PaypalPingBraintreeOutput,\n});\n"],"mappings":";;AAUA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAVsC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iRAUrD;CACP,QAVuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
|
|
@@ -19,7 +19,7 @@ const PaypalQueryBraintreeReport_GraphQLErrorLocationSchema = zod.z.object({
|
|
|
19
19
|
}).describe("A location in the GraphQL query that caused an error.");
|
|
20
20
|
const PaypalQueryBraintreeReport_GraphQLErrorSchema = zod.z.object({
|
|
21
21
|
path: zod.z.array(zod.z.union([zod.z.string(), zod.z.number().int()])).describe("The path in the response where the error occurred.").nullable().optional(),
|
|
22
|
-
message: zod.z.string().describe("A human-readable error message describing the issue."),
|
|
22
|
+
message: zod.z.string().describe("A human-readable error message describing the issue.").nullable(),
|
|
23
23
|
locations: zod.z.array(PaypalQueryBraintreeReport_GraphQLErrorLocationSchema).describe("The locations in the query that caused the error.").nullable().optional()
|
|
24
24
|
}).describe("A GraphQL error returned by the API.");
|
|
25
25
|
const PaypalQueryBraintreeReportOutput = zod.z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-braintree-report.cjs","names":["z","action"],"sources":["../../src/actions/query-braintree-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalQueryBraintreeReportInput
|
|
1
|
+
{"version":3,"file":"query-braintree-report.cjs","names":["z","action"],"sources":["../../src/actions/query-braintree-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalQueryBraintreeReportInput = z.object({\n end_date: z.string().describe(\"The end date for the report query in ISO 8601 format (e.g., '2024-01-31'). Used for time-based reports.\").optional(),\n start_date: z.string().describe(\"The start date for the report query in ISO 8601 format (e.g., '2024-01-01'). Used for time-based reports.\").optional(),\n report_type: z.enum([\"transactionReport\", \"disputeReport\", \"merchantFundsAvailable\", \"transactionSettlementOutcomesReport\"]).describe(\"The type of report to query. Each type has its own input parameters and response structure.\"),\n merchant_account_id: z.string().describe(\"The merchant account ID to filter the report by. If not specified, uses the default merchant account.\").optional(),\n}).describe(\"Request schema for querying Braintree reports via GraphQL API.\\n\\nUse this action when you need to retrieve reports from Braintree, such as\\ntransaction reports, dispute reports, or merchant funds availability.\\nEach report type has its own input parameters and response structure.\\n\\nThe report field allows querying various report types by specifying the\\nreport type and appropriate date range or filter parameters.\");\nconst PaypalQueryBraintreeReport_ReportResponseSchema = z.object({\n report: z.record(z.string(), z.unknown()).describe(\"The report data returned by the query. The structure varies depending on the report type requested.\").nullable().optional(),\n}).describe(\"Response schema for the report query.\");\nconst PaypalQueryBraintreeReport_GraphQLErrorLocationSchema = z.object({\n line: z.number().int().describe(\"The line number in the query where the error occurred.\").nullable().optional(),\n column: z.number().int().describe(\"The column number in the query where the error occurred.\").nullable().optional(),\n}).describe(\"A location in the GraphQL query that caused an error.\");\nconst PaypalQueryBraintreeReport_GraphQLErrorSchema = z.object({\n path: z.array(z.union([z.string(), z.number().int()])).describe(\"The path in the response where the error occurred.\").nullable().optional(),\n message: z.string().describe(\"A human-readable error message describing the issue.\").nullable(),\n locations: z.array(PaypalQueryBraintreeReport_GraphQLErrorLocationSchema).describe(\"The locations in the query that caused the error.\").nullable().optional(),\n}).describe(\"A GraphQL error returned by the API.\");\nexport const PaypalQueryBraintreeReportOutput = z.object({\n data: PaypalQueryBraintreeReport_ReportResponseSchema.nullable().optional(),\n errors: z.array(PaypalQueryBraintreeReport_GraphQLErrorSchema).describe(\"Any GraphQL errors that occurred during query execution.\").nullable().optional(),\n}).describe(\"Root response schema for GraphQL report query.\");\n\nexport const paypalQueryBraintreeReport = action(\"PAYPAL_QUERY_BRAINTREE_REPORT\", {\n slug: \"paypal-query-braintree-report\",\n name: \"Query Braintree Report\",\n description: \"Queries Braintree reports via GraphQL API. Use this action when you need to retrieve reports from Braintree's GraphQL API, such as transaction reports, dispute reports, merchant funds availability, or transaction settlement outcomes. Each report type returns different data structures based on the specified report type and filter parameters. The report query provides access to various report types that can be queried with their own input parameters. This is a read-only operation that retrieves report data without modifying any records. Note: This action uses the Braintree GraphQL API endpoint at /graphql.\",\n input: PaypalQueryBraintreeReportInput,\n output: PaypalQueryBraintreeReportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAClJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACtJ,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAqB;EAAiB;EAA0B;CAAqC,CAAC,CAAC,CAAC,SAAS,6FAA6F;CACnO,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;AAC7J,CAAC,CAAC,CAAC,SAAS,oaAAoa;AAChb,MAAM,kDAAkDA,IAAAA,EAAE,OAAO,EAC/D,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAChL,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC9F,WAAWA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9J,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAM,gDAAgD,SAAS,CAAC,CAAC,SAAS;CAC1E,QAAQA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1J,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/query-braintree-report.d.ts
|
|
4
|
-
declare const PaypalQueryBraintreeReportInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PaypalQueryBraintreeReportInput: z.ZodObject<{
|
|
5
|
+
end_date: z.ZodOptional<z.ZodString>;
|
|
6
|
+
start_date: z.ZodOptional<z.ZodString>;
|
|
7
|
+
report_type: z.ZodEnum<{
|
|
8
|
+
transactionReport: "transactionReport";
|
|
9
|
+
disputeReport: "disputeReport";
|
|
10
|
+
merchantFundsAvailable: "merchantFundsAvailable";
|
|
11
|
+
transactionSettlementOutcomesReport: "transactionSettlementOutcomesReport";
|
|
12
|
+
}>;
|
|
13
|
+
merchant_account_id: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const PaypalQueryBraintreeReportOutput: z.ZodObject<{
|
|
16
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
17
|
+
report: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
18
|
+
}, z.core.$strip>>>;
|
|
19
|
+
errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
20
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>>;
|
|
21
|
+
message: z.ZodNullable<z.ZodString>;
|
|
22
|
+
locations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
23
|
+
line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
column: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
}, z.core.$strip>>>>;
|
|
26
|
+
}, z.core.$strip>>>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
declare const paypalQueryBraintreeReport: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
|
+
report_type: "transactionReport" | "disputeReport" | "merchantFundsAvailable" | "transactionSettlementOutcomesReport";
|
|
30
|
+
end_date?: string | undefined;
|
|
31
|
+
start_date?: string | undefined;
|
|
32
|
+
merchant_account_id?: string | undefined;
|
|
33
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
34
|
//#endregion
|
|
8
35
|
export { paypalQueryBraintreeReport };
|
|
9
36
|
//# sourceMappingURL=query-braintree-report.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-braintree-report.d.cts","names":[],"sources":["../../src/actions/query-braintree-report.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"query-braintree-report.d.cts","names":[],"sources":["../../src/actions/query-braintree-report.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;cAkB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/query-braintree-report.d.ts
|
|
4
|
-
declare const PaypalQueryBraintreeReportInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PaypalQueryBraintreeReportInput: z.ZodObject<{
|
|
5
|
+
end_date: z.ZodOptional<z.ZodString>;
|
|
6
|
+
start_date: z.ZodOptional<z.ZodString>;
|
|
7
|
+
report_type: z.ZodEnum<{
|
|
8
|
+
transactionReport: "transactionReport";
|
|
9
|
+
disputeReport: "disputeReport";
|
|
10
|
+
merchantFundsAvailable: "merchantFundsAvailable";
|
|
11
|
+
transactionSettlementOutcomesReport: "transactionSettlementOutcomesReport";
|
|
12
|
+
}>;
|
|
13
|
+
merchant_account_id: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const PaypalQueryBraintreeReportOutput: z.ZodObject<{
|
|
16
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
17
|
+
report: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
18
|
+
}, z.core.$strip>>>;
|
|
19
|
+
errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
20
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>>;
|
|
21
|
+
message: z.ZodNullable<z.ZodString>;
|
|
22
|
+
locations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
23
|
+
line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
column: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
}, z.core.$strip>>>>;
|
|
26
|
+
}, z.core.$strip>>>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
declare const paypalQueryBraintreeReport: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
|
+
report_type: "transactionReport" | "disputeReport" | "merchantFundsAvailable" | "transactionSettlementOutcomesReport";
|
|
30
|
+
end_date?: string | undefined;
|
|
31
|
+
start_date?: string | undefined;
|
|
32
|
+
merchant_account_id?: string | undefined;
|
|
33
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
34
|
//#endregion
|
|
8
35
|
export { paypalQueryBraintreeReport };
|
|
9
36
|
//# sourceMappingURL=query-braintree-report.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-braintree-report.d.mts","names":[],"sources":["../../src/actions/query-braintree-report.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"query-braintree-report.d.mts","names":[],"sources":["../../src/actions/query-braintree-report.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;cAkB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -19,7 +19,7 @@ const PaypalQueryBraintreeReport_GraphQLErrorLocationSchema = z.object({
|
|
|
19
19
|
}).describe("A location in the GraphQL query that caused an error.");
|
|
20
20
|
const PaypalQueryBraintreeReport_GraphQLErrorSchema = z.object({
|
|
21
21
|
path: z.array(z.union([z.string(), z.number().int()])).describe("The path in the response where the error occurred.").nullable().optional(),
|
|
22
|
-
message: z.string().describe("A human-readable error message describing the issue."),
|
|
22
|
+
message: z.string().describe("A human-readable error message describing the issue.").nullable(),
|
|
23
23
|
locations: z.array(PaypalQueryBraintreeReport_GraphQLErrorLocationSchema).describe("The locations in the query that caused the error.").nullable().optional()
|
|
24
24
|
}).describe("A GraphQL error returned by the API.");
|
|
25
25
|
const paypalQueryBraintreeReport = action("PAYPAL_QUERY_BRAINTREE_REPORT", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-braintree-report.mjs","names":[],"sources":["../../src/actions/query-braintree-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalQueryBraintreeReportInput
|
|
1
|
+
{"version":3,"file":"query-braintree-report.mjs","names":[],"sources":["../../src/actions/query-braintree-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalQueryBraintreeReportInput = z.object({\n end_date: z.string().describe(\"The end date for the report query in ISO 8601 format (e.g., '2024-01-31'). Used for time-based reports.\").optional(),\n start_date: z.string().describe(\"The start date for the report query in ISO 8601 format (e.g., '2024-01-01'). Used for time-based reports.\").optional(),\n report_type: z.enum([\"transactionReport\", \"disputeReport\", \"merchantFundsAvailable\", \"transactionSettlementOutcomesReport\"]).describe(\"The type of report to query. Each type has its own input parameters and response structure.\"),\n merchant_account_id: z.string().describe(\"The merchant account ID to filter the report by. If not specified, uses the default merchant account.\").optional(),\n}).describe(\"Request schema for querying Braintree reports via GraphQL API.\\n\\nUse this action when you need to retrieve reports from Braintree, such as\\ntransaction reports, dispute reports, or merchant funds availability.\\nEach report type has its own input parameters and response structure.\\n\\nThe report field allows querying various report types by specifying the\\nreport type and appropriate date range or filter parameters.\");\nconst PaypalQueryBraintreeReport_ReportResponseSchema = z.object({\n report: z.record(z.string(), z.unknown()).describe(\"The report data returned by the query. The structure varies depending on the report type requested.\").nullable().optional(),\n}).describe(\"Response schema for the report query.\");\nconst PaypalQueryBraintreeReport_GraphQLErrorLocationSchema = z.object({\n line: z.number().int().describe(\"The line number in the query where the error occurred.\").nullable().optional(),\n column: z.number().int().describe(\"The column number in the query where the error occurred.\").nullable().optional(),\n}).describe(\"A location in the GraphQL query that caused an error.\");\nconst PaypalQueryBraintreeReport_GraphQLErrorSchema = z.object({\n path: z.array(z.union([z.string(), z.number().int()])).describe(\"The path in the response where the error occurred.\").nullable().optional(),\n message: z.string().describe(\"A human-readable error message describing the issue.\").nullable(),\n locations: z.array(PaypalQueryBraintreeReport_GraphQLErrorLocationSchema).describe(\"The locations in the query that caused the error.\").nullable().optional(),\n}).describe(\"A GraphQL error returned by the API.\");\nexport const PaypalQueryBraintreeReportOutput = z.object({\n data: PaypalQueryBraintreeReport_ReportResponseSchema.nullable().optional(),\n errors: z.array(PaypalQueryBraintreeReport_GraphQLErrorSchema).describe(\"Any GraphQL errors that occurred during query execution.\").nullable().optional(),\n}).describe(\"Root response schema for GraphQL report query.\");\n\nexport const paypalQueryBraintreeReport = action(\"PAYPAL_QUERY_BRAINTREE_REPORT\", {\n slug: \"paypal-query-braintree-report\",\n name: \"Query Braintree Report\",\n description: \"Queries Braintree reports via GraphQL API. Use this action when you need to retrieve reports from Braintree's GraphQL API, such as transaction reports, dispute reports, merchant funds availability, or transaction settlement outcomes. Each report type returns different data structures based on the specified report type and filter parameters. The report query provides access to various report types that can be queried with their own input parameters. This is a read-only operation that retrieves report data without modifying any records. Note: This action uses the Braintree GraphQL API endpoint at /graphql.\",\n input: PaypalQueryBraintreeReportInput,\n output: PaypalQueryBraintreeReportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAClJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2G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M,gDAAgD,SAAS,CAAC,CAAC,SAAS;EAC1E,QAAQ,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
|
|
@@ -48,7 +48,7 @@ const PaypalRetrievePaymentResource_LineItemSchema = zod.z.object({
|
|
|
48
48
|
collect_shipping_address: zod.z.boolean().describe("Whether to collect shipping address.").nullable().optional()
|
|
49
49
|
}).describe("Line item within a payment resource.");
|
|
50
50
|
const PaypalRetrievePaymentResourceOutput = zod.z.object({
|
|
51
|
-
id: zod.z.string().describe("Unique identifier for the payment resource."),
|
|
51
|
+
id: zod.z.string().describe("Unique identifier for the payment resource.").nullable(),
|
|
52
52
|
type: zod.z.string().describe("Type of payment resource (e.g., BUY_NOW).").nullable().optional(),
|
|
53
53
|
links: zod.z.array(PaypalRetrievePaymentResource_PaymentResourceLinkSchema).describe("HAL links to related resources (self, replace, delete, payment_link, etc.).").nullable().optional(),
|
|
54
54
|
status: zod.z.string().describe("Current status of the payment resource (e.g., ACTIVE).").nullable().optional(),
|
|
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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}).describe(\"HAL link to related resources.\");\nconst PaypalRetrievePaymentResource_TaxDetailSchema: z.ZodTypeAny = 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}).describe(\"Tax information for a line item.\");\nconst PaypalRetrievePaymentResource_ShippingCostSchema: z.ZodTypeAny = 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}).describe(\"Shipping cost information for a line item.\");\nconst PaypalRetrievePaymentResource_UnitAmountSchema: z.ZodTypeAny = 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}).describe(\"Currency amount for a line item.\");\nconst PaypalRetrievePaymentResource_VariantOptionSchema: z.ZodTypeAny = z.object({\n label: z.string().describe(\"Label of the option.\").nullable().optional(),\n unit_amount: PaypalRetrievePaymentResource_UnitAmountSchema.nullable().optional(),\n}).describe(\"Option within a variant dimension.\");\nconst PaypalRetrievePaymentResource_VariantDimensionSchema: z.ZodTypeAny = 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}).describe(\"Dimension specification for product variants.\");\nconst PaypalRetrievePaymentResource_VariantsSchema: z.ZodTypeAny = z.object({\n dimensions: z.array(PaypalRetrievePaymentResource_VariantDimensionSchema).describe(\"List of variant dimensions.\").nullable().optional(),\n}).describe(\"Product variant options.\");\nconst PaypalRetrievePaymentResource_CustomerNoteSchema: z.ZodTypeAny = 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}).describe(\"Customer note field.\");\nconst PaypalRetrievePaymentResource_AdjustableQuantitySchema: z.ZodTypeAny = z.object({\n maximum: z.number().int().describe(\"Maximum allowed quantity.\").nullable().optional(),\n}).describe(\"Quantity adjustment settings.\");\nconst PaypalRetrievePaymentResource_LineItemSchema: z.ZodTypeAny = 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}).describe(\"Line item within a payment resource.\");\nexport const PaypalRetrievePaymentResourceOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the payment resource.\"),\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}).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,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,EACnK,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,0DAAwEA,IAAAA,EAAE,OAAO;CACrF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAC5C,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,S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C,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,SAAS,mDAAmD;AAE/D,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
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}).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}).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}).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}).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}).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}).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}).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}).describe(\"Customer note field.\");\nconst PaypalRetrievePaymentResource_AdjustableQuantitySchema = z.object({\n maximum: z.number().int().describe(\"Maximum allowed quantity.\").nullable().optional(),\n}).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}).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}).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,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,qBAAqBA,IAAAA,EAAE,OAAO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C,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,SAAS,mDAAmD;AAE/D,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,66 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/retrieve-payment-resource.d.ts
|
|
4
|
-
declare const PaypalRetrievePaymentResourceInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PaypalRetrievePaymentResourceInput: z.ZodObject<{
|
|
5
|
+
payment_resource_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PaypalRetrievePaymentResourceOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
11
|
+
rel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
}, z.core.$strip>>>>;
|
|
15
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
reusable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
line_items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
18
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
taxes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
20
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
}, z.core.$strip>>>>;
|
|
24
|
+
shipping: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
25
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
}, z.core.$strip>>>>;
|
|
28
|
+
variants: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
29
|
+
dimensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
30
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
32
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
unit_amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
34
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
}, z.core.$strip>>>;
|
|
37
|
+
}, z.core.$strip>>>>;
|
|
38
|
+
primary: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
39
|
+
}, z.core.$strip>>>>;
|
|
40
|
+
}, z.core.$strip>>>;
|
|
41
|
+
product_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
unit_amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
44
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
}, z.core.$strip>>>;
|
|
47
|
+
customer_notes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
48
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
50
|
+
}, z.core.$strip>>>>;
|
|
51
|
+
adjustable_quantity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
52
|
+
maximum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
|
+
}, z.core.$strip>>>;
|
|
54
|
+
collect_shipping_address: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
55
|
+
}, z.core.$strip>>>>;
|
|
56
|
+
return_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
update_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
integration_mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
declare const paypalRetrievePaymentResource: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
62
|
+
payment_resource_id: string;
|
|
63
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
64
|
//#endregion
|
|
8
65
|
export { paypalRetrievePaymentResource };
|
|
9
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,
|
|
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,9 +1,66 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/retrieve-payment-resource.d.ts
|
|
4
|
-
declare const PaypalRetrievePaymentResourceInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PaypalRetrievePaymentResourceInput: z.ZodObject<{
|
|
5
|
+
payment_resource_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PaypalRetrievePaymentResourceOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
11
|
+
rel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
}, z.core.$strip>>>>;
|
|
15
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
reusable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
line_items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
18
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
taxes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
20
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
}, z.core.$strip>>>>;
|
|
24
|
+
shipping: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
25
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
}, z.core.$strip>>>>;
|
|
28
|
+
variants: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
29
|
+
dimensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
30
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
32
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
unit_amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
34
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
}, z.core.$strip>>>;
|
|
37
|
+
}, z.core.$strip>>>>;
|
|
38
|
+
primary: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
39
|
+
}, z.core.$strip>>>>;
|
|
40
|
+
}, z.core.$strip>>>;
|
|
41
|
+
product_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
unit_amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
44
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
}, z.core.$strip>>>;
|
|
47
|
+
customer_notes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
48
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
50
|
+
}, z.core.$strip>>>>;
|
|
51
|
+
adjustable_quantity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
52
|
+
maximum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
|
+
}, z.core.$strip>>>;
|
|
54
|
+
collect_shipping_address: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
55
|
+
}, z.core.$strip>>>>;
|
|
56
|
+
return_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
update_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
integration_mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
declare const paypalRetrievePaymentResource: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
62
|
+
payment_resource_id: string;
|
|
63
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
64
|
//#endregion
|
|
8
65
|
export { paypalRetrievePaymentResource };
|
|
9
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,
|
|
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"}
|
|
@@ -53,7 +53,7 @@ const paypalRetrievePaymentResource = action("PAYPAL_RETRIEVE_PAYMENT_RESOURCE",
|
|
|
53
53
|
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.",
|
|
54
54
|
input: PaypalRetrievePaymentResourceInput,
|
|
55
55
|
output: z.object({
|
|
56
|
-
id: z.string().describe("Unique identifier for the payment resource."),
|
|
56
|
+
id: z.string().describe("Unique identifier for the payment resource.").nullable(),
|
|
57
57
|
type: z.string().describe("Type of payment resource (e.g., BUY_NOW).").nullable().optional(),
|
|
58
58
|
links: z.array(PaypalRetrievePaymentResource_PaymentResourceLinkSchema).describe("HAL links to related resources (self, replace, delete, payment_link, etc.).").nullable().optional(),
|
|
59
59
|
status: z.string().describe("Current status of the payment resource (e.g., ACTIVE).").nullable().optional(),
|
|
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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}).describe(\"HAL link to related resources.\");\nconst PaypalRetrievePaymentResource_TaxDetailSchema: z.ZodTypeAny = 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}).describe(\"Tax information for a line item.\");\nconst PaypalRetrievePaymentResource_ShippingCostSchema: z.ZodTypeAny = 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}).describe(\"Shipping cost information for a line item.\");\nconst PaypalRetrievePaymentResource_UnitAmountSchema: z.ZodTypeAny = 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}).describe(\"Currency amount for a line item.\");\nconst PaypalRetrievePaymentResource_VariantOptionSchema: z.ZodTypeAny = z.object({\n label: z.string().describe(\"Label of the option.\").nullable().optional(),\n unit_amount: PaypalRetrievePaymentResource_UnitAmountSchema.nullable().optional(),\n}).describe(\"Option within a variant dimension.\");\nconst PaypalRetrievePaymentResource_VariantDimensionSchema: z.ZodTypeAny = 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}).describe(\"Dimension specification for product variants.\");\nconst PaypalRetrievePaymentResource_VariantsSchema: z.ZodTypeAny = z.object({\n dimensions: z.array(PaypalRetrievePaymentResource_VariantDimensionSchema).describe(\"List of variant dimensions.\").nullable().optional(),\n}).describe(\"Product variant options.\");\nconst PaypalRetrievePaymentResource_CustomerNoteSchema: z.ZodTypeAny = 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}).describe(\"Customer note field.\");\nconst PaypalRetrievePaymentResource_AdjustableQuantitySchema: z.ZodTypeAny = z.object({\n maximum: z.number().int().describe(\"Maximum allowed quantity.\").nullable().optional(),\n}).describe(\"Quantity adjustment settings.\");\nconst PaypalRetrievePaymentResource_LineItemSchema: z.ZodTypeAny = 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}).describe(\"Line item within a payment resource.\");\nexport const PaypalRetrievePaymentResourceOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the payment resource.\"),\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}).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,qCAAmD,EAAE,OAAO,EACvE,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,EACnK,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,0DAAwE,EAAE,OAAO;CACrF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,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AC,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,SAAS,mDAOF;AACV,CAAC"}
|
|
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}).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}).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}).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}).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}).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}).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}).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}).describe(\"Customer note field.\");\nconst PaypalRetrievePaymentResource_AdjustableQuantitySchema = z.object({\n maximum: z.number().int().describe(\"Maximum allowed quantity.\").nullable().optional(),\n}).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}).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}).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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AAC,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,SAAS,mDAOF;AACV,CAAC"}
|
|
@@ -70,7 +70,7 @@ const PaypalSearchInvoices_InvoiceItemSchema = zod.z.object({
|
|
|
70
70
|
unit_amount: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional()
|
|
71
71
|
}).describe("Invoice line item details.");
|
|
72
72
|
const PaypalSearchInvoices_LinkDescriptionSchema = zod.z.object({
|
|
73
|
-
rel: zod.z.string().describe("The link relation type."),
|
|
73
|
+
rel: zod.z.string().describe("The link relation type.").nullable(),
|
|
74
74
|
href: zod.z.string().describe("The hyperlink to the related resource.").nullable().optional(),
|
|
75
75
|
method: zod.z.string().describe("The HTTP method required to access the related resource.").nullable().optional()
|
|
76
76
|
}).describe("The request-related HATEOAS link information.");
|
|
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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}).describe(\"Invoice amount summary details.\");\nconst PaypalSearchInvoices_InvoiceItemSchema: z.ZodTypeAny = 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}).describe(\"Invoice line item details.\");\nconst PaypalSearchInvoices_LinkDescriptionSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"The link relation type.\"),\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}).describe(\"The request-related HATEOAS link information.\");\nconst PaypalSearchInvoices_InvoiceDetailSchema: z.ZodTypeAny = 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}).describe(\"Invoice detail information.\");\nconst PaypalSearchInvoices_InvoicerInfoSchema: z.ZodTypeAny = z.object({\n email_address: z.string().describe(\"The email address of the invoicer.\").nullable().optional(),\n}).describe(\"Invoicer information details.\");\nconst PaypalSearchInvoices_RecipientInfoSchema: z.ZodTypeAny = 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}).describe(\"Recipient information for invoice.\");\nconst PaypalSearchInvoices_InvoiceSchema: z.ZodTypeAny = 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.object({}).describe(\"The refunds information.\").nullable().optional(),\n gratuity: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional(),\n invoicer: PaypalSearchInvoices_InvoicerInfoSchema.nullable().optional(),\n payments: z.object({}).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.object({}).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}).describe(\"Invoice details including all information about the invoice like items, billing information.\");\nexport const PaypalSearchInvoicesOutput: z.ZodTypeAny = 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}).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"],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AAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpM,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/M,CAAC,CAAC,CAAC,SAAS,6EAA6E;AAEzF,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 { 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}).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}).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}).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}).describe(\"Invoice detail information.\");\nconst PaypalSearchInvoices_InvoicerInfoSchema = z.object({\n email_address: z.string().describe(\"The email address of the invoicer.\").nullable().optional(),\n}).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}).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.object({}).describe(\"The refunds information.\").nullable().optional(),\n gratuity: PaypalSearchInvoices_InvoiceAmountSummarySchema.nullable().optional(),\n invoicer: PaypalSearchInvoices_InvoicerInfoSchema.nullable().optional(),\n payments: z.object({}).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.object({}).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}).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}).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;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,CAA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