@keystrokehq/paypal 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/activate-plan.cjs +19 -0
- package/dist/actions/activate-plan.cjs.map +1 -0
- package/dist/actions/activate-plan.d.cts +9 -0
- package/dist/actions/activate-plan.d.cts.map +1 -0
- package/dist/actions/activate-plan.d.mts +9 -0
- package/dist/actions/activate-plan.d.mts.map +1 -0
- package/dist/actions/activate-plan.mjs +16 -0
- package/dist/actions/activate-plan.mjs.map +1 -0
- package/dist/actions/add-batch-trackers.cjs +62 -0
- package/dist/actions/add-batch-trackers.cjs.map +1 -0
- package/dist/actions/add-batch-trackers.d.cts +9 -0
- package/dist/actions/add-batch-trackers.d.cts.map +1 -0
- package/dist/actions/add-batch-trackers.d.mts +9 -0
- package/dist/actions/add-batch-trackers.d.mts.map +1 -0
- package/dist/actions/add-batch-trackers.mjs +61 -0
- package/dist/actions/add-batch-trackers.mjs.map +1 -0
- package/dist/actions/authorize-order.cjs +101 -0
- package/dist/actions/authorize-order.cjs.map +1 -0
- package/dist/actions/authorize-order.d.cts +9 -0
- package/dist/actions/authorize-order.d.cts.map +1 -0
- package/dist/actions/authorize-order.d.mts +9 -0
- package/dist/actions/authorize-order.d.mts.map +1 -0
- package/dist/actions/authorize-order.mjs +100 -0
- package/dist/actions/authorize-order.mjs.map +1 -0
- package/dist/actions/cancel-invoice.cjs +44 -0
- package/dist/actions/cancel-invoice.cjs.map +1 -0
- package/dist/actions/cancel-invoice.d.cts +9 -0
- package/dist/actions/cancel-invoice.d.cts.map +1 -0
- package/dist/actions/cancel-invoice.d.mts +9 -0
- package/dist/actions/cancel-invoice.d.mts.map +1 -0
- package/dist/actions/cancel-invoice.mjs +43 -0
- package/dist/actions/cancel-invoice.mjs.map +1 -0
- package/dist/actions/cancel-reminders.cjs +36 -0
- package/dist/actions/cancel-reminders.cjs.map +1 -0
- package/dist/actions/cancel-reminders.d.cts +9 -0
- package/dist/actions/cancel-reminders.d.cts.map +1 -0
- package/dist/actions/cancel-reminders.d.mts +9 -0
- package/dist/actions/cancel-reminders.d.mts.map +1 -0
- package/dist/actions/cancel-reminders.mjs +35 -0
- package/dist/actions/cancel-reminders.mjs.map +1 -0
- package/dist/actions/capture-subscription-payment.cjs +79 -0
- package/dist/actions/capture-subscription-payment.cjs.map +1 -0
- package/dist/actions/capture-subscription-payment.d.cts +9 -0
- package/dist/actions/capture-subscription-payment.d.cts.map +1 -0
- package/dist/actions/capture-subscription-payment.d.mts +9 -0
- package/dist/actions/capture-subscription-payment.d.mts.map +1 -0
- package/dist/actions/capture-subscription-payment.mjs +78 -0
- package/dist/actions/capture-subscription-payment.mjs.map +1 -0
- package/dist/actions/charge-payment-method.cjs +58 -0
- package/dist/actions/charge-payment-method.cjs.map +1 -0
- package/dist/actions/charge-payment-method.d.cts +9 -0
- package/dist/actions/charge-payment-method.d.cts.map +1 -0
- package/dist/actions/charge-payment-method.d.mts +9 -0
- package/dist/actions/charge-payment-method.d.mts.map +1 -0
- package/dist/actions/charge-payment-method.mjs +55 -0
- package/dist/actions/charge-payment-method.mjs.map +1 -0
- package/dist/actions/create-invoice.cjs +294 -0
- package/dist/actions/create-invoice.cjs.map +1 -0
- package/dist/actions/create-invoice.d.cts +9 -0
- package/dist/actions/create-invoice.d.cts.map +1 -0
- package/dist/actions/create-invoice.d.mts +9 -0
- package/dist/actions/create-invoice.d.mts.map +1 -0
- package/dist/actions/create-invoice.mjs +293 -0
- package/dist/actions/create-invoice.mjs.map +1 -0
- package/dist/actions/create-payment.cjs +178 -0
- package/dist/actions/create-payment.cjs.map +1 -0
- package/dist/actions/create-payment.d.cts +9 -0
- package/dist/actions/create-payment.d.cts.map +1 -0
- package/dist/actions/create-payment.d.mts +9 -0
- package/dist/actions/create-payment.d.mts.map +1 -0
- package/dist/actions/create-payment.mjs +177 -0
- package/dist/actions/create-payment.mjs.map +1 -0
- package/dist/actions/create-payments-billing-plans.cjs +111 -0
- package/dist/actions/create-payments-billing-plans.cjs.map +1 -0
- package/dist/actions/create-payments-billing-plans.d.cts +9 -0
- package/dist/actions/create-payments-billing-plans.d.cts.map +1 -0
- package/dist/actions/create-payments-billing-plans.d.mts +9 -0
- package/dist/actions/create-payments-billing-plans.d.mts.map +1 -0
- package/dist/actions/create-payments-billing-plans.mjs +110 -0
- package/dist/actions/create-payments-billing-plans.mjs.map +1 -0
- package/dist/actions/create-plan.cjs +119 -0
- package/dist/actions/create-plan.cjs.map +1 -0
- package/dist/actions/create-plan.d.cts +9 -0
- package/dist/actions/create-plan.d.cts.map +1 -0
- package/dist/actions/create-plan.d.mts +9 -0
- package/dist/actions/create-plan.d.mts.map +1 -0
- package/dist/actions/create-plan.mjs +118 -0
- package/dist/actions/create-plan.mjs.map +1 -0
- package/dist/actions/create-product.cjs +190 -0
- package/dist/actions/create-product.cjs.map +1 -0
- package/dist/actions/create-product.d.cts +9 -0
- package/dist/actions/create-product.d.cts.map +1 -0
- package/dist/actions/create-product.d.mts +9 -0
- package/dist/actions/create-product.d.mts.map +1 -0
- package/dist/actions/create-product.mjs +189 -0
- package/dist/actions/create-product.mjs.map +1 -0
- package/dist/actions/create-subscription.cjs +183 -0
- package/dist/actions/create-subscription.cjs.map +1 -0
- package/dist/actions/create-subscription.d.cts +9 -0
- package/dist/actions/create-subscription.d.cts.map +1 -0
- package/dist/actions/create-subscription.d.mts +9 -0
- package/dist/actions/create-subscription.d.mts.map +1 -0
- package/dist/actions/create-subscription.mjs +182 -0
- package/dist/actions/create-subscription.mjs.map +1 -0
- package/dist/actions/create-template.cjs +234 -0
- package/dist/actions/create-template.cjs.map +1 -0
- package/dist/actions/create-template.d.cts +9 -0
- package/dist/actions/create-template.d.cts.map +1 -0
- package/dist/actions/create-template.d.mts +9 -0
- package/dist/actions/create-template.d.mts.map +1 -0
- package/dist/actions/create-template.mjs +233 -0
- package/dist/actions/create-template.mjs.map +1 -0
- package/dist/actions/create-web-profile.cjs +66 -0
- package/dist/actions/create-web-profile.cjs.map +1 -0
- package/dist/actions/create-web-profile.d.cts +9 -0
- package/dist/actions/create-web-profile.d.cts.map +1 -0
- package/dist/actions/create-web-profile.d.mts +9 -0
- package/dist/actions/create-web-profile.d.mts.map +1 -0
- package/dist/actions/create-web-profile.mjs +65 -0
- package/dist/actions/create-web-profile.mjs.map +1 -0
- package/dist/actions/create-webhook-lookup.cjs +25 -0
- package/dist/actions/create-webhook-lookup.cjs.map +1 -0
- package/dist/actions/create-webhook-lookup.d.cts +9 -0
- package/dist/actions/create-webhook-lookup.d.cts.map +1 -0
- package/dist/actions/create-webhook-lookup.d.mts +9 -0
- package/dist/actions/create-webhook-lookup.d.mts.map +1 -0
- package/dist/actions/create-webhook-lookup.mjs +24 -0
- package/dist/actions/create-webhook-lookup.mjs.map +1 -0
- package/dist/actions/create-webhook.cjs +39 -0
- package/dist/actions/create-webhook.cjs.map +1 -0
- package/dist/actions/create-webhook.d.cts +9 -0
- package/dist/actions/create-webhook.d.cts.map +1 -0
- package/dist/actions/create-webhook.d.mts +9 -0
- package/dist/actions/create-webhook.d.mts.map +1 -0
- package/dist/actions/create-webhook.mjs +38 -0
- package/dist/actions/create-webhook.mjs.map +1 -0
- package/dist/actions/deactivate-plan.cjs +19 -0
- package/dist/actions/deactivate-plan.cjs.map +1 -0
- package/dist/actions/deactivate-plan.d.cts +9 -0
- package/dist/actions/deactivate-plan.d.cts.map +1 -0
- package/dist/actions/deactivate-plan.d.mts +9 -0
- package/dist/actions/deactivate-plan.d.mts.map +1 -0
- package/dist/actions/deactivate-plan.mjs +16 -0
- package/dist/actions/deactivate-plan.mjs.map +1 -0
- package/dist/actions/delete-external-payment.cjs +23 -0
- package/dist/actions/delete-external-payment.cjs.map +1 -0
- package/dist/actions/delete-external-payment.d.cts +9 -0
- package/dist/actions/delete-external-payment.d.cts.map +1 -0
- package/dist/actions/delete-external-payment.d.mts +9 -0
- package/dist/actions/delete-external-payment.d.mts.map +1 -0
- package/dist/actions/delete-external-payment.mjs +20 -0
- package/dist/actions/delete-external-payment.mjs.map +1 -0
- package/dist/actions/delete-invoice-payment-record.cjs +23 -0
- package/dist/actions/delete-invoice-payment-record.cjs.map +1 -0
- package/dist/actions/delete-invoice-payment-record.d.cts +9 -0
- package/dist/actions/delete-invoice-payment-record.d.cts.map +1 -0
- package/dist/actions/delete-invoice-payment-record.d.mts +9 -0
- package/dist/actions/delete-invoice-payment-record.d.mts.map +1 -0
- package/dist/actions/delete-invoice-payment-record.mjs +20 -0
- package/dist/actions/delete-invoice-payment-record.mjs.map +1 -0
- package/dist/actions/delete-invoice-refund-record.cjs +22 -0
- package/dist/actions/delete-invoice-refund-record.cjs.map +1 -0
- package/dist/actions/delete-invoice-refund-record.d.cts +9 -0
- package/dist/actions/delete-invoice-refund-record.d.cts.map +1 -0
- package/dist/actions/delete-invoice-refund-record.d.mts +9 -0
- package/dist/actions/delete-invoice-refund-record.d.mts.map +1 -0
- package/dist/actions/delete-invoice-refund-record.mjs +19 -0
- package/dist/actions/delete-invoice-refund-record.mjs.map +1 -0
- package/dist/actions/delete-invoice.cjs +36 -0
- package/dist/actions/delete-invoice.cjs.map +1 -0
- package/dist/actions/delete-invoice.d.cts +9 -0
- package/dist/actions/delete-invoice.d.cts.map +1 -0
- package/dist/actions/delete-invoice.d.mts +9 -0
- package/dist/actions/delete-invoice.d.mts.map +1 -0
- package/dist/actions/delete-invoice.mjs +35 -0
- package/dist/actions/delete-invoice.mjs.map +1 -0
- package/dist/actions/delete-payment-resource.cjs +19 -0
- package/dist/actions/delete-payment-resource.cjs.map +1 -0
- package/dist/actions/delete-payment-resource.d.cts +9 -0
- package/dist/actions/delete-payment-resource.d.cts.map +1 -0
- package/dist/actions/delete-payment-resource.d.mts +9 -0
- package/dist/actions/delete-payment-resource.d.mts.map +1 -0
- package/dist/actions/delete-payment-resource.mjs +16 -0
- package/dist/actions/delete-payment-resource.mjs.map +1 -0
- package/dist/actions/delete-template.cjs +36 -0
- package/dist/actions/delete-template.cjs.map +1 -0
- package/dist/actions/delete-template.d.cts +9 -0
- package/dist/actions/delete-template.d.cts.map +1 -0
- package/dist/actions/delete-template.d.mts +9 -0
- package/dist/actions/delete-template.d.mts.map +1 -0
- package/dist/actions/delete-template.mjs +35 -0
- package/dist/actions/delete-template.mjs.map +1 -0
- package/dist/actions/delete-web-profile.cjs +19 -0
- package/dist/actions/delete-web-profile.cjs.map +1 -0
- package/dist/actions/delete-web-profile.d.cts +9 -0
- package/dist/actions/delete-web-profile.d.cts.map +1 -0
- package/dist/actions/delete-web-profile.d.mts +9 -0
- package/dist/actions/delete-web-profile.d.mts.map +1 -0
- package/dist/actions/delete-web-profile.mjs +16 -0
- package/dist/actions/delete-web-profile.mjs.map +1 -0
- package/dist/actions/delete-webhook.cjs +35 -0
- package/dist/actions/delete-webhook.cjs.map +1 -0
- package/dist/actions/delete-webhook.d.cts +9 -0
- package/dist/actions/delete-webhook.d.cts.map +1 -0
- package/dist/actions/delete-webhook.d.mts +9 -0
- package/dist/actions/delete-webhook.d.mts.map +1 -0
- package/dist/actions/delete-webhook.mjs +34 -0
- package/dist/actions/delete-webhook.mjs.map +1 -0
- package/dist/actions/fetch-node.cjs +30 -0
- package/dist/actions/fetch-node.cjs.map +1 -0
- package/dist/actions/fetch-node.d.cts +9 -0
- package/dist/actions/fetch-node.d.cts.map +1 -0
- package/dist/actions/fetch-node.d.mts +9 -0
- package/dist/actions/fetch-node.d.mts.map +1 -0
- package/dist/actions/fetch-node.mjs +29 -0
- package/dist/actions/fetch-node.mjs.map +1 -0
- package/dist/actions/finalize-pay-pal-braintree-dispute.cjs +21 -0
- package/dist/actions/finalize-pay-pal-braintree-dispute.cjs.map +1 -0
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts +9 -0
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts.map +1 -0
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +9 -0
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts.map +1 -0
- package/dist/actions/finalize-pay-pal-braintree-dispute.mjs +20 -0
- package/dist/actions/finalize-pay-pal-braintree-dispute.mjs.map +1 -0
- package/dist/actions/find-eligible-methods.cjs +87 -0
- package/dist/actions/find-eligible-methods.cjs.map +1 -0
- package/dist/actions/find-eligible-methods.d.cts +9 -0
- package/dist/actions/find-eligible-methods.d.cts.map +1 -0
- package/dist/actions/find-eligible-methods.d.mts +9 -0
- package/dist/actions/find-eligible-methods.d.mts.map +1 -0
- package/dist/actions/find-eligible-methods.mjs +86 -0
- package/dist/actions/find-eligible-methods.mjs.map +1 -0
- package/dist/actions/generate-client-token.cjs +20 -0
- package/dist/actions/generate-client-token.cjs.map +1 -0
- package/dist/actions/generate-client-token.d.cts +9 -0
- package/dist/actions/generate-client-token.d.cts.map +1 -0
- package/dist/actions/generate-client-token.d.mts +9 -0
- package/dist/actions/generate-client-token.d.mts.map +1 -0
- package/dist/actions/generate-client-token.mjs +17 -0
- package/dist/actions/generate-client-token.mjs.map +1 -0
- package/dist/actions/generate-next-invoice-number-v2.cjs +19 -0
- package/dist/actions/generate-next-invoice-number-v2.cjs.map +1 -0
- package/dist/actions/generate-next-invoice-number-v2.d.cts +9 -0
- package/dist/actions/generate-next-invoice-number-v2.d.cts.map +1 -0
- package/dist/actions/generate-next-invoice-number-v2.d.mts +9 -0
- package/dist/actions/generate-next-invoice-number-v2.d.mts.map +1 -0
- package/dist/actions/generate-next-invoice-number-v2.mjs +16 -0
- package/dist/actions/generate-next-invoice-number-v2.mjs.map +1 -0
- package/dist/actions/generate-next-invoice-number.cjs +16 -0
- package/dist/actions/generate-next-invoice-number.cjs.map +1 -0
- package/dist/actions/generate-next-invoice-number.d.cts +9 -0
- package/dist/actions/generate-next-invoice-number.d.cts.map +1 -0
- package/dist/actions/generate-next-invoice-number.d.mts +9 -0
- package/dist/actions/generate-next-invoice-number.d.mts.map +1 -0
- package/dist/actions/generate-next-invoice-number.mjs +13 -0
- package/dist/actions/generate-next-invoice-number.mjs.map +1 -0
- package/dist/actions/generate-qr-code.cjs +46 -0
- package/dist/actions/generate-qr-code.cjs.map +1 -0
- package/dist/actions/generate-qr-code.d.cts +9 -0
- package/dist/actions/generate-qr-code.d.cts.map +1 -0
- package/dist/actions/generate-qr-code.d.mts +9 -0
- package/dist/actions/generate-qr-code.d.mts.map +1 -0
- package/dist/actions/generate-qr-code.mjs +45 -0
- package/dist/actions/generate-qr-code.mjs.map +1 -0
- package/dist/actions/get-billing-subscriptions.cjs +98 -0
- package/dist/actions/get-billing-subscriptions.cjs.map +1 -0
- package/dist/actions/get-billing-subscriptions.d.cts +9 -0
- package/dist/actions/get-billing-subscriptions.d.cts.map +1 -0
- package/dist/actions/get-billing-subscriptions.d.mts +9 -0
- package/dist/actions/get-billing-subscriptions.d.mts.map +1 -0
- package/dist/actions/get-billing-subscriptions.mjs +97 -0
- package/dist/actions/get-billing-subscriptions.mjs.map +1 -0
- package/dist/actions/get-invoice.cjs +159 -0
- package/dist/actions/get-invoice.cjs.map +1 -0
- package/dist/actions/get-invoice.d.cts +9 -0
- package/dist/actions/get-invoice.d.cts.map +1 -0
- package/dist/actions/get-invoice.d.mts +9 -0
- package/dist/actions/get-invoice.d.mts.map +1 -0
- package/dist/actions/get-invoice.mjs +158 -0
- package/dist/actions/get-invoice.mjs.map +1 -0
- package/dist/actions/get-invoicing-invoices-qr-code.cjs +29 -0
- package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -0
- package/dist/actions/get-invoicing-invoices-qr-code.d.cts +9 -0
- package/dist/actions/get-invoicing-invoices-qr-code.d.cts.map +1 -0
- package/dist/actions/get-invoicing-invoices-qr-code.d.mts +9 -0
- package/dist/actions/get-invoicing-invoices-qr-code.d.mts.map +1 -0
- package/dist/actions/get-invoicing-invoices-qr-code.mjs +28 -0
- package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -0
- package/dist/actions/get-invoicing-template.cjs +136 -0
- package/dist/actions/get-invoicing-template.cjs.map +1 -0
- package/dist/actions/get-invoicing-template.d.cts +9 -0
- package/dist/actions/get-invoicing-template.d.cts.map +1 -0
- package/dist/actions/get-invoicing-template.d.mts +9 -0
- package/dist/actions/get-invoicing-template.d.mts.map +1 -0
- package/dist/actions/get-invoicing-template.mjs +135 -0
- package/dist/actions/get-invoicing-template.mjs.map +1 -0
- package/dist/actions/get-order.cjs +112 -0
- package/dist/actions/get-order.cjs.map +1 -0
- package/dist/actions/get-order.d.cts +9 -0
- package/dist/actions/get-order.d.cts.map +1 -0
- package/dist/actions/get-order.d.mts +9 -0
- package/dist/actions/get-order.d.mts.map +1 -0
- package/dist/actions/get-order.mjs +111 -0
- package/dist/actions/get-order.mjs.map +1 -0
- package/dist/actions/get-payment.cjs +98 -0
- package/dist/actions/get-payment.cjs.map +1 -0
- package/dist/actions/get-payment.d.cts +9 -0
- package/dist/actions/get-payment.d.cts.map +1 -0
- package/dist/actions/get-payment.d.mts +9 -0
- package/dist/actions/get-payment.d.mts.map +1 -0
- package/dist/actions/get-payment.mjs +97 -0
- package/dist/actions/get-payment.mjs.map +1 -0
- package/dist/actions/get-payments-refund.cjs +37 -0
- package/dist/actions/get-payments-refund.cjs.map +1 -0
- package/dist/actions/get-payments-refund.d.cts +9 -0
- package/dist/actions/get-payments-refund.d.cts.map +1 -0
- package/dist/actions/get-payments-refund.d.mts +9 -0
- package/dist/actions/get-payments-refund.d.mts.map +1 -0
- package/dist/actions/get-payments-refund.mjs +36 -0
- package/dist/actions/get-payments-refund.mjs.map +1 -0
- package/dist/actions/get-plan.cjs +69 -0
- package/dist/actions/get-plan.cjs.map +1 -0
- package/dist/actions/get-plan.d.cts +9 -0
- package/dist/actions/get-plan.d.cts.map +1 -0
- package/dist/actions/get-plan.d.mts +9 -0
- package/dist/actions/get-plan.d.mts.map +1 -0
- package/dist/actions/get-plan.mjs +68 -0
- package/dist/actions/get-plan.mjs.map +1 -0
- package/dist/actions/get-product.cjs +32 -0
- package/dist/actions/get-product.cjs.map +1 -0
- package/dist/actions/get-product.d.cts +9 -0
- package/dist/actions/get-product.d.cts.map +1 -0
- package/dist/actions/get-product.d.mts +9 -0
- package/dist/actions/get-product.d.mts.map +1 -0
- package/dist/actions/get-product.mjs +31 -0
- package/dist/actions/get-product.mjs.map +1 -0
- package/dist/actions/get-subscription.cjs +88 -0
- package/dist/actions/get-subscription.cjs.map +1 -0
- package/dist/actions/get-subscription.d.cts +9 -0
- package/dist/actions/get-subscription.d.cts.map +1 -0
- package/dist/actions/get-subscription.d.mts +9 -0
- package/dist/actions/get-subscription.d.mts.map +1 -0
- package/dist/actions/get-subscription.mjs +87 -0
- package/dist/actions/get-subscription.mjs.map +1 -0
- package/dist/actions/get-user-info.cjs +43 -0
- package/dist/actions/get-user-info.cjs.map +1 -0
- package/dist/actions/get-user-info.d.cts +9 -0
- package/dist/actions/get-user-info.d.cts.map +1 -0
- package/dist/actions/get-user-info.d.mts +9 -0
- package/dist/actions/get-user-info.d.mts.map +1 -0
- package/dist/actions/get-user-info.mjs +42 -0
- package/dist/actions/get-user-info.mjs.map +1 -0
- package/dist/actions/get-userinfo.cjs +55 -0
- package/dist/actions/get-userinfo.cjs.map +1 -0
- package/dist/actions/get-userinfo.d.cts +9 -0
- package/dist/actions/get-userinfo.d.cts.map +1 -0
- package/dist/actions/get-userinfo.d.mts +9 -0
- package/dist/actions/get-userinfo.d.mts.map +1 -0
- package/dist/actions/get-userinfo.mjs +54 -0
- package/dist/actions/get-userinfo.mjs.map +1 -0
- package/dist/actions/get-web-profile.cjs +38 -0
- package/dist/actions/get-web-profile.cjs.map +1 -0
- package/dist/actions/get-web-profile.d.cts +9 -0
- package/dist/actions/get-web-profile.d.cts.map +1 -0
- package/dist/actions/get-web-profile.d.mts +9 -0
- package/dist/actions/get-web-profile.d.mts.map +1 -0
- package/dist/actions/get-web-profile.mjs +37 -0
- package/dist/actions/get-web-profile.mjs.map +1 -0
- package/dist/actions/get-webhook-lookup.cjs +25 -0
- package/dist/actions/get-webhook-lookup.cjs.map +1 -0
- package/dist/actions/get-webhook-lookup.d.cts +9 -0
- package/dist/actions/get-webhook-lookup.d.cts.map +1 -0
- package/dist/actions/get-webhook-lookup.d.mts +9 -0
- package/dist/actions/get-webhook-lookup.d.mts.map +1 -0
- package/dist/actions/get-webhook-lookup.mjs +24 -0
- package/dist/actions/get-webhook-lookup.mjs.map +1 -0
- package/dist/actions/get-webhook.cjs +33 -0
- package/dist/actions/get-webhook.cjs.map +1 -0
- package/dist/actions/get-webhook.d.cts +9 -0
- package/dist/actions/get-webhook.d.cts.map +1 -0
- package/dist/actions/get-webhook.d.mts +9 -0
- package/dist/actions/get-webhook.d.mts.map +1 -0
- package/dist/actions/get-webhook.mjs +32 -0
- package/dist/actions/get-webhook.mjs.map +1 -0
- package/dist/actions/index.cjs +157 -0
- package/dist/actions/index.d.cts +79 -0
- package/dist/actions/index.d.mts +79 -0
- package/dist/actions/index.mjs +79 -0
- package/dist/actions/list-disputes.cjs +62 -0
- package/dist/actions/list-disputes.cjs.map +1 -0
- package/dist/actions/list-disputes.d.cts +9 -0
- package/dist/actions/list-disputes.d.cts.map +1 -0
- package/dist/actions/list-disputes.d.mts +9 -0
- package/dist/actions/list-disputes.d.mts.map +1 -0
- package/dist/actions/list-disputes.mjs +61 -0
- package/dist/actions/list-disputes.mjs.map +1 -0
- package/dist/actions/list-invoices.cjs +81 -0
- package/dist/actions/list-invoices.cjs.map +1 -0
- package/dist/actions/list-invoices.d.cts +9 -0
- package/dist/actions/list-invoices.d.cts.map +1 -0
- package/dist/actions/list-invoices.d.mts +9 -0
- package/dist/actions/list-invoices.d.mts.map +1 -0
- package/dist/actions/list-invoices.mjs +80 -0
- package/dist/actions/list-invoices.mjs.map +1 -0
- package/dist/actions/list-legacy-billing-plans.cjs +87 -0
- package/dist/actions/list-legacy-billing-plans.cjs.map +1 -0
- package/dist/actions/list-legacy-billing-plans.d.cts +9 -0
- package/dist/actions/list-legacy-billing-plans.d.cts.map +1 -0
- package/dist/actions/list-legacy-billing-plans.d.mts +9 -0
- package/dist/actions/list-legacy-billing-plans.d.mts.map +1 -0
- package/dist/actions/list-legacy-billing-plans.mjs +86 -0
- package/dist/actions/list-legacy-billing-plans.mjs.map +1 -0
- package/dist/actions/list-payments.cjs +112 -0
- package/dist/actions/list-payments.cjs.map +1 -0
- package/dist/actions/list-payments.d.cts +9 -0
- package/dist/actions/list-payments.d.cts.map +1 -0
- package/dist/actions/list-payments.d.mts +9 -0
- package/dist/actions/list-payments.d.mts.map +1 -0
- package/dist/actions/list-payments.mjs +111 -0
- package/dist/actions/list-payments.mjs.map +1 -0
- package/dist/actions/list-plans.cjs +66 -0
- package/dist/actions/list-plans.cjs.map +1 -0
- package/dist/actions/list-plans.d.cts +9 -0
- package/dist/actions/list-plans.d.cts.map +1 -0
- package/dist/actions/list-plans.d.mts +9 -0
- package/dist/actions/list-plans.d.mts.map +1 -0
- package/dist/actions/list-plans.mjs +65 -0
- package/dist/actions/list-plans.mjs.map +1 -0
- package/dist/actions/list-products.cjs +37 -0
- package/dist/actions/list-products.cjs.map +1 -0
- package/dist/actions/list-products.d.cts +9 -0
- package/dist/actions/list-products.d.cts.map +1 -0
- package/dist/actions/list-products.d.mts +9 -0
- package/dist/actions/list-products.d.mts.map +1 -0
- package/dist/actions/list-products.mjs +36 -0
- package/dist/actions/list-products.mjs.map +1 -0
- package/dist/actions/list-templates.cjs +74 -0
- package/dist/actions/list-templates.cjs.map +1 -0
- package/dist/actions/list-templates.d.cts +9 -0
- package/dist/actions/list-templates.d.cts.map +1 -0
- package/dist/actions/list-templates.d.mts +9 -0
- package/dist/actions/list-templates.d.mts.map +1 -0
- package/dist/actions/list-templates.mjs +73 -0
- package/dist/actions/list-templates.mjs.map +1 -0
- package/dist/actions/list-web-profiles.cjs +48 -0
- package/dist/actions/list-web-profiles.cjs.map +1 -0
- package/dist/actions/list-web-profiles.d.cts +9 -0
- package/dist/actions/list-web-profiles.d.cts.map +1 -0
- package/dist/actions/list-web-profiles.d.mts +9 -0
- package/dist/actions/list-web-profiles.d.mts.map +1 -0
- package/dist/actions/list-web-profiles.mjs +47 -0
- package/dist/actions/list-web-profiles.mjs.map +1 -0
- package/dist/actions/list-webhook-event-type-subscriptions.cjs +23 -0
- package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -0
- package/dist/actions/list-webhook-event-type-subscriptions.d.cts +9 -0
- package/dist/actions/list-webhook-event-type-subscriptions.d.cts.map +1 -0
- package/dist/actions/list-webhook-event-type-subscriptions.d.mts +9 -0
- package/dist/actions/list-webhook-event-type-subscriptions.d.mts.map +1 -0
- package/dist/actions/list-webhook-event-type-subscriptions.mjs +22 -0
- package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -0
- package/dist/actions/list-webhook-event-types.cjs +23 -0
- package/dist/actions/list-webhook-event-types.cjs.map +1 -0
- package/dist/actions/list-webhook-event-types.d.cts +9 -0
- package/dist/actions/list-webhook-event-types.d.cts.map +1 -0
- package/dist/actions/list-webhook-event-types.d.mts +9 -0
- package/dist/actions/list-webhook-event-types.d.mts.map +1 -0
- package/dist/actions/list-webhook-event-types.mjs +22 -0
- package/dist/actions/list-webhook-event-types.mjs.map +1 -0
- package/dist/actions/list-webhook-lookups.cjs +26 -0
- package/dist/actions/list-webhook-lookups.cjs.map +1 -0
- package/dist/actions/list-webhook-lookups.d.cts +9 -0
- package/dist/actions/list-webhook-lookups.d.cts.map +1 -0
- package/dist/actions/list-webhook-lookups.d.mts +9 -0
- package/dist/actions/list-webhook-lookups.d.mts.map +1 -0
- package/dist/actions/list-webhook-lookups.mjs +25 -0
- package/dist/actions/list-webhook-lookups.mjs.map +1 -0
- package/dist/actions/list-webhooks.cjs +31 -0
- package/dist/actions/list-webhooks.cjs.map +1 -0
- package/dist/actions/list-webhooks.d.cts +9 -0
- package/dist/actions/list-webhooks.d.cts.map +1 -0
- package/dist/actions/list-webhooks.d.mts +9 -0
- package/dist/actions/list-webhooks.d.mts.map +1 -0
- package/dist/actions/list-webhooks.mjs +30 -0
- package/dist/actions/list-webhooks.mjs.map +1 -0
- package/dist/actions/patch-orders.cjs +43 -0
- package/dist/actions/patch-orders.cjs.map +1 -0
- package/dist/actions/patch-orders.d.cts +9 -0
- package/dist/actions/patch-orders.d.cts.map +1 -0
- package/dist/actions/patch-orders.d.mts +9 -0
- package/dist/actions/patch-orders.d.mts.map +1 -0
- package/dist/actions/patch-orders.mjs +40 -0
- package/dist/actions/patch-orders.mjs.map +1 -0
- package/dist/actions/patch-plan.cjs +34 -0
- package/dist/actions/patch-plan.cjs.map +1 -0
- package/dist/actions/patch-plan.d.cts +9 -0
- package/dist/actions/patch-plan.d.cts.map +1 -0
- package/dist/actions/patch-plan.d.mts +9 -0
- package/dist/actions/patch-plan.d.mts.map +1 -0
- package/dist/actions/patch-plan.mjs +31 -0
- package/dist/actions/patch-plan.mjs.map +1 -0
- package/dist/actions/patch-subscription.cjs +49 -0
- package/dist/actions/patch-subscription.cjs.map +1 -0
- package/dist/actions/patch-subscription.d.cts +9 -0
- package/dist/actions/patch-subscription.d.cts.map +1 -0
- package/dist/actions/patch-subscription.d.mts +9 -0
- package/dist/actions/patch-subscription.d.mts.map +1 -0
- package/dist/actions/patch-subscription.mjs +48 -0
- package/dist/actions/patch-subscription.mjs.map +1 -0
- package/dist/actions/patch-web-profile.cjs +41 -0
- package/dist/actions/patch-web-profile.cjs.map +1 -0
- package/dist/actions/patch-web-profile.d.cts +9 -0
- package/dist/actions/patch-web-profile.d.cts.map +1 -0
- package/dist/actions/patch-web-profile.d.mts +9 -0
- package/dist/actions/patch-web-profile.d.mts.map +1 -0
- package/dist/actions/patch-web-profile.mjs +38 -0
- package/dist/actions/patch-web-profile.mjs.map +1 -0
- package/dist/actions/ping-braintree.cjs +19 -0
- package/dist/actions/ping-braintree.cjs.map +1 -0
- package/dist/actions/ping-braintree.d.cts +9 -0
- package/dist/actions/ping-braintree.d.cts.map +1 -0
- package/dist/actions/ping-braintree.d.mts +9 -0
- package/dist/actions/ping-braintree.d.mts.map +1 -0
- package/dist/actions/ping-braintree.mjs +16 -0
- package/dist/actions/ping-braintree.mjs.map +1 -0
- package/dist/actions/query-braintree-report.cjs +39 -0
- package/dist/actions/query-braintree-report.cjs.map +1 -0
- package/dist/actions/query-braintree-report.d.cts +9 -0
- package/dist/actions/query-braintree-report.d.cts.map +1 -0
- package/dist/actions/query-braintree-report.d.mts +9 -0
- package/dist/actions/query-braintree-report.d.mts.map +1 -0
- package/dist/actions/query-braintree-report.mjs +38 -0
- package/dist/actions/query-braintree-report.mjs.map +1 -0
- package/dist/actions/retrieve-payment-resource.cjs +72 -0
- package/dist/actions/retrieve-payment-resource.cjs.map +1 -0
- package/dist/actions/retrieve-payment-resource.d.cts +9 -0
- package/dist/actions/retrieve-payment-resource.d.cts.map +1 -0
- package/dist/actions/retrieve-payment-resource.d.mts +9 -0
- package/dist/actions/retrieve-payment-resource.d.mts.map +1 -0
- package/dist/actions/retrieve-payment-resource.mjs +71 -0
- package/dist/actions/retrieve-payment-resource.mjs.map +1 -0
- package/dist/actions/search-invoices.cjs +120 -0
- package/dist/actions/search-invoices.cjs.map +1 -0
- package/dist/actions/search-invoices.d.cts +9 -0
- package/dist/actions/search-invoices.d.cts.map +1 -0
- package/dist/actions/search-invoices.d.mts +9 -0
- package/dist/actions/search-invoices.d.mts.map +1 -0
- package/dist/actions/search-invoices.mjs +119 -0
- package/dist/actions/search-invoices.mjs.map +1 -0
- package/dist/actions/send-invoice.cjs +37 -0
- package/dist/actions/send-invoice.cjs.map +1 -0
- package/dist/actions/send-invoice.d.cts +9 -0
- package/dist/actions/send-invoice.d.cts.map +1 -0
- package/dist/actions/send-invoice.d.mts +9 -0
- package/dist/actions/send-invoice.d.mts.map +1 -0
- package/dist/actions/send-invoice.mjs +36 -0
- package/dist/actions/send-invoice.mjs.map +1 -0
- package/dist/actions/simulate-webhook-event.cjs +52 -0
- package/dist/actions/simulate-webhook-event.cjs.map +1 -0
- package/dist/actions/simulate-webhook-event.d.cts +9 -0
- package/dist/actions/simulate-webhook-event.d.cts.map +1 -0
- package/dist/actions/simulate-webhook-event.d.mts +9 -0
- package/dist/actions/simulate-webhook-event.d.mts.map +1 -0
- package/dist/actions/simulate-webhook-event.mjs +51 -0
- package/dist/actions/simulate-webhook-event.mjs.map +1 -0
- package/dist/actions/update-dispute.cjs +45 -0
- package/dist/actions/update-dispute.cjs.map +1 -0
- package/dist/actions/update-dispute.d.cts +9 -0
- package/dist/actions/update-dispute.d.cts.map +1 -0
- package/dist/actions/update-dispute.d.mts +9 -0
- package/dist/actions/update-dispute.d.mts.map +1 -0
- package/dist/actions/update-dispute.mjs +44 -0
- package/dist/actions/update-dispute.mjs.map +1 -0
- package/dist/actions/update-invoice.cjs +367 -0
- package/dist/actions/update-invoice.cjs.map +1 -0
- package/dist/actions/update-invoice.d.cts +9 -0
- package/dist/actions/update-invoice.d.cts.map +1 -0
- package/dist/actions/update-invoice.d.mts +9 -0
- package/dist/actions/update-invoice.d.mts.map +1 -0
- package/dist/actions/update-invoice.mjs +366 -0
- package/dist/actions/update-invoice.mjs.map +1 -0
- package/dist/actions/update-pay-pal-product.cjs +41 -0
- package/dist/actions/update-pay-pal-product.cjs.map +1 -0
- package/dist/actions/update-pay-pal-product.d.cts +9 -0
- package/dist/actions/update-pay-pal-product.d.cts.map +1 -0
- package/dist/actions/update-pay-pal-product.d.mts +9 -0
- package/dist/actions/update-pay-pal-product.d.mts.map +1 -0
- package/dist/actions/update-pay-pal-product.mjs +38 -0
- package/dist/actions/update-pay-pal-product.mjs.map +1 -0
- package/dist/actions/update-pay-pal-webhook.cjs +54 -0
- package/dist/actions/update-pay-pal-webhook.cjs.map +1 -0
- package/dist/actions/update-pay-pal-webhook.d.cts +9 -0
- package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -0
- package/dist/actions/update-pay-pal-webhook.d.mts +9 -0
- package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -0
- package/dist/actions/update-pay-pal-webhook.mjs +53 -0
- package/dist/actions/update-pay-pal-webhook.mjs.map +1 -0
- package/dist/actions/update-templates.cjs +403 -0
- package/dist/actions/update-templates.cjs.map +1 -0
- package/dist/actions/update-templates.d.cts +9 -0
- package/dist/actions/update-templates.d.cts.map +1 -0
- package/dist/actions/update-templates.d.mts +9 -0
- package/dist/actions/update-templates.d.mts.map +1 -0
- package/dist/actions/update-templates.mjs +402 -0
- package/dist/actions/update-templates.mjs.map +1 -0
- package/dist/actions/update-web-profile.cjs +50 -0
- package/dist/actions/update-web-profile.cjs.map +1 -0
- package/dist/actions/update-web-profile.d.cts +9 -0
- package/dist/actions/update-web-profile.d.cts.map +1 -0
- package/dist/actions/update-web-profile.d.mts +9 -0
- package/dist/actions/update-web-profile.d.mts.map +1 -0
- package/dist/actions/update-web-profile.mjs +49 -0
- package/dist/actions/update-web-profile.mjs.map +1 -0
- package/dist/actions/verify-payment-method.cjs +33 -0
- package/dist/actions/verify-payment-method.cjs.map +1 -0
- package/dist/actions/verify-payment-method.d.cts +9 -0
- package/dist/actions/verify-payment-method.d.cts.map +1 -0
- package/dist/actions/verify-payment-method.d.mts +9 -0
- package/dist/actions/verify-payment-method.d.mts.map +1 -0
- package/dist/actions/verify-payment-method.mjs +32 -0
- package/dist/actions/verify-payment-method.mjs.map +1 -0
- package/dist/actions/verify-webhook-signature.cjs +37 -0
- package/dist/actions/verify-webhook-signature.cjs.map +1 -0
- package/dist/actions/verify-webhook-signature.d.cts +9 -0
- package/dist/actions/verify-webhook-signature.d.cts.map +1 -0
- package/dist/actions/verify-webhook-signature.d.mts +9 -0
- package/dist/actions/verify-webhook-signature.d.mts.map +1 -0
- package/dist/actions/verify-webhook-signature.mjs +34 -0
- package/dist/actions/verify-webhook-signature.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +162 -0
- package/dist/index.d.cts +81 -0
- package/dist/index.d.mts +81 -0
- package/dist/index.mjs +82 -0
- package/package.json +49 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-webhooks.mjs","names":[],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalListWebhooksInput: z.ZodTypeAny = z.object({\n anchor_type: z.enum([\"APPLICATION\", \"ACCOUNT\"]).default(\"APPLICATION\").describe(\"The type of entity to use as an anchor for filtering webhooks.\").optional(),\n}).describe(\"Request model for listing PayPal webhooks.\");\nconst PaypalListWebhooks_WebhookLinkSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable().optional(),\n href: z.string().describe(\"The URI of the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to invoke the related resource.\").nullable().optional(),\n}).describe(\"Model for HATEOAS links in webhook responses.\");\nconst PaypalListWebhooks_EventTypeSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the event type.\").nullable().optional(),\n description: z.string().describe(\"A description of the event type.\").nullable().optional(),\n}).passthrough().describe(\"Model for an event type in a webhook.\");\nconst PaypalListWebhooks_WebhookSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the webhook.\").nullable().optional(),\n url: z.string().describe(\"The URL of the webhook endpoint.\"),\n links: z.array(PaypalListWebhooks_WebhookLinkSchema).describe(\"An array of HATEOAS links related to the webhook.\").nullable().optional(),\n event_types: z.array(PaypalListWebhooks_EventTypeSchema).describe(\"An array of event types that this webhook is subscribed to.\"),\n}).passthrough().describe(\"Model for a PayPal webhook.\");\nexport const PaypalListWebhooksOutput: z.ZodTypeAny = z.object({\n webhooks: z.array(PaypalListWebhooks_WebhookSchema).describe(\"An array of webhook objects.\"),\n}).describe(\"Response model for listing PayPal webhooks.\");\n\nexport const paypalListWebhooks = action(\"PAYPAL_LIST_WEBHOOKS\", {\n slug: \"paypal-list-webhooks\",\n name: \"List Webhooks\",\n description: \"Lists webhooks configured for an application or PayPal account. Use this action when you need to retrieve all webhooks that have been created and configured in your PayPal integration. This is useful for auditing existing webhook configurations, verifying webhook subscriptions, or checking webhook status. The results can be filtered by anchor_type to show webhooks for the application (APPLICATION) or a specific account (ACCOUNT). This is a read-only operation that returns webhook details including URLs, subscribed event types, and HATEOAS links for related actions.\",\n input: PaypalListWebhooksInput,\n output: PaypalListWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO,EAC5D,aAAa,EAAE,KAAK,CAAC,eAAe,SAAS,CAAC,CAAC,CAAC,QAAQ,aAAa,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,EAC7J,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,uCAAqD,EAAE,OAAO;CAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,qCAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,mCAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC3D,OAAO,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,aAAa,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,6DAA6D;AACjI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B;AAKvD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,UAAU,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,8BAA8B,EAC7F,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/patch-orders.ts
|
|
4
|
+
const PaypalPatchOrdersInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("The ID of the checkout order to update."),
|
|
6
|
+
operations: zod.z.array(zod.z.object({
|
|
7
|
+
op: zod.z.enum([
|
|
8
|
+
"add",
|
|
9
|
+
"remove",
|
|
10
|
+
"replace",
|
|
11
|
+
"move",
|
|
12
|
+
"copy",
|
|
13
|
+
"test"
|
|
14
|
+
]).describe("The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'."),
|
|
15
|
+
from: zod.z.string().describe("The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.").optional(),
|
|
16
|
+
path: zod.z.string().describe("The JSON Pointer path to the target location in the order (e.g., '/purchase_units/0/description'). Use forward slash as separator per RFC 6901.").optional(),
|
|
17
|
+
value: zod.z.union([
|
|
18
|
+
zod.z.string(),
|
|
19
|
+
zod.z.number().int(),
|
|
20
|
+
zod.z.number(),
|
|
21
|
+
zod.z.boolean(),
|
|
22
|
+
zod.z.array(zod.z.unknown()),
|
|
23
|
+
zod.z.record(zod.z.string(), zod.z.unknown())
|
|
24
|
+
]).optional()
|
|
25
|
+
}).describe("A single JSON Patch operation to apply to the checkout order.")).describe("An array of JSON Patch operations to apply to the order. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.")
|
|
26
|
+
}).describe("Request to partially update a PayPal checkout order using JSON Patch.");
|
|
27
|
+
const PaypalPatchOrdersOutput = zod.z.object({
|
|
28
|
+
message: zod.z.string().describe("A message describing the result of the update.").nullable().optional(),
|
|
29
|
+
success: zod.z.boolean().default(true).describe("Indicates whether the order update was successful.").nullable().optional(),
|
|
30
|
+
debug_id: zod.z.string().describe("The PayPal internal ID used for correlation purposes.").nullable().optional(),
|
|
31
|
+
order_id: zod.z.string().describe("The ID of the order that was updated.").nullable().optional()
|
|
32
|
+
}).describe("Response from partially updating a PayPal checkout order.");
|
|
33
|
+
const paypalPatchOrders = require_action.action("PAYPAL_PATCH_ORDERS", {
|
|
34
|
+
slug: "paypal-patch-orders",
|
|
35
|
+
name: "Update checkout order (partial)",
|
|
36
|
+
description: "Partially updates a PayPal checkout order using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of an existing checkout order without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the checkout order. Common use cases include updating the order description, custom fields, or other patchable properties. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.",
|
|
37
|
+
input: PaypalPatchOrdersInput,
|
|
38
|
+
output: PaypalPatchOrdersOutput
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
exports.paypalPatchOrders = paypalPatchOrders;
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=patch-orders.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-orders.cjs","names":["z","action"],"sources":["../../src/actions/patch-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchOrdersInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the checkout order to update.\"),\n operations: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'.\"),\n from: z.string().describe(\"The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer path to the target location in the order (e.g., '/purchase_units/0/description'). Use forward slash as separator per RFC 6901.\").optional(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).optional(),\n}).describe(\"A single JSON Patch operation to apply to the checkout order.\")).describe(\"An array of JSON Patch operations to apply to the order. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.\"),\n}).describe(\"Request to partially update a PayPal checkout order using JSON Patch.\");\nexport const PaypalPatchOrdersOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"A message describing the result of the update.\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the order update was successful.\").nullable().optional(),\n debug_id: z.string().describe(\"The PayPal internal ID used for correlation purposes.\").nullable().optional(),\n order_id: z.string().describe(\"The ID of the order that was updated.\").nullable().optional(),\n}).describe(\"Response from partially updating a PayPal checkout order.\");\n\nexport const paypalPatchOrders = action(\"PAYPAL_PATCH_ORDERS\", {\n slug: \"paypal-patch-orders\",\n name: \"Update checkout order (partial)\",\n description: \"Partially updates a PayPal checkout order using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of an existing checkout order without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the checkout order. Common use cases include updating the order description, custom fields, or other patchable properties. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.\",\n input: PaypalPatchOrdersInput,\n output: PaypalPatchOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,IAAIA,IAAAA,EAAE,KAAK;GAAC;GAAO;GAAU;GAAW;GAAQ;GAAQ;EAAM,CAAC,CAAC,CAAC,SAAS,6FAA6F;EACvK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EACvI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;EACtL,OAAOA,IAAAA,EAAE,MAAM;GAACA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GAAGA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,QAAQ;GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,CAAC,SAAS,4IAA4I;AACnO,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAEvE,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/patch-orders.d.ts
|
|
4
|
+
declare const PaypalPatchOrdersInput: z.ZodTypeAny;
|
|
5
|
+
declare const PaypalPatchOrdersOutput: z.ZodTypeAny;
|
|
6
|
+
declare const paypalPatchOrders: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paypalPatchOrders };
|
|
9
|
+
//# sourceMappingURL=patch-orders.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-orders.d.cts","names":[],"sources":["../../src/actions/patch-orders.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAQ6C;AAAA,cACvE,uBAAA,EAAyB,CAAA,CAAE,UAKgC;AAAA,cAE3D,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/patch-orders.d.ts
|
|
4
|
+
declare const PaypalPatchOrdersInput: z.ZodTypeAny;
|
|
5
|
+
declare const PaypalPatchOrdersOutput: z.ZodTypeAny;
|
|
6
|
+
declare const paypalPatchOrders: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paypalPatchOrders };
|
|
9
|
+
//# sourceMappingURL=patch-orders.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-orders.d.mts","names":[],"sources":["../../src/actions/patch-orders.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAQ6C;AAAA,cACvE,uBAAA,EAAyB,CAAA,CAAE,UAKgC;AAAA,cAE3D,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const paypalPatchOrders = action("PAYPAL_PATCH_ORDERS", {
|
|
4
|
+
slug: "paypal-patch-orders",
|
|
5
|
+
name: "Update checkout order (partial)",
|
|
6
|
+
description: "Partially updates a PayPal checkout order using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of an existing checkout order without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the checkout order. Common use cases include updating the order description, custom fields, or other patchable properties. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
id: z.string().describe("The ID of the checkout order to update."),
|
|
9
|
+
operations: z.array(z.object({
|
|
10
|
+
op: z.enum([
|
|
11
|
+
"add",
|
|
12
|
+
"remove",
|
|
13
|
+
"replace",
|
|
14
|
+
"move",
|
|
15
|
+
"copy",
|
|
16
|
+
"test"
|
|
17
|
+
]).describe("The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'."),
|
|
18
|
+
from: z.string().describe("The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.").optional(),
|
|
19
|
+
path: z.string().describe("The JSON Pointer path to the target location in the order (e.g., '/purchase_units/0/description'). Use forward slash as separator per RFC 6901.").optional(),
|
|
20
|
+
value: z.union([
|
|
21
|
+
z.string(),
|
|
22
|
+
z.number().int(),
|
|
23
|
+
z.number(),
|
|
24
|
+
z.boolean(),
|
|
25
|
+
z.array(z.unknown()),
|
|
26
|
+
z.record(z.string(), z.unknown())
|
|
27
|
+
]).optional()
|
|
28
|
+
}).describe("A single JSON Patch operation to apply to the checkout order.")).describe("An array of JSON Patch operations to apply to the order. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.")
|
|
29
|
+
}).describe("Request to partially update a PayPal checkout order using JSON Patch."),
|
|
30
|
+
output: z.object({
|
|
31
|
+
message: z.string().describe("A message describing the result of the update.").nullable().optional(),
|
|
32
|
+
success: z.boolean().default(true).describe("Indicates whether the order update was successful.").nullable().optional(),
|
|
33
|
+
debug_id: z.string().describe("The PayPal internal ID used for correlation purposes.").nullable().optional(),
|
|
34
|
+
order_id: z.string().describe("The ID of the order that was updated.").nullable().optional()
|
|
35
|
+
}).describe("Response from partially updating a PayPal checkout order.")
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { paypalPatchOrders };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=patch-orders.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-orders.mjs","names":[],"sources":["../../src/actions/patch-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchOrdersInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the checkout order to update.\"),\n operations: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'.\"),\n from: z.string().describe(\"The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer path to the target location in the order (e.g., '/purchase_units/0/description'). Use forward slash as separator per RFC 6901.\").optional(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).optional(),\n}).describe(\"A single JSON Patch operation to apply to the checkout order.\")).describe(\"An array of JSON Patch operations to apply to the order. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.\"),\n}).describe(\"Request to partially update a PayPal checkout order using JSON Patch.\");\nexport const PaypalPatchOrdersOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"A message describing the result of the update.\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the order update was successful.\").nullable().optional(),\n debug_id: z.string().describe(\"The PayPal internal ID used for correlation purposes.\").nullable().optional(),\n order_id: z.string().describe(\"The ID of the order that was updated.\").nullable().optional(),\n}).describe(\"Response from partially updating a PayPal checkout order.\");\n\nexport const paypalPatchOrders = action(\"PAYPAL_PATCH_ORDERS\", {\n slug: \"paypal-patch-orders\",\n name: \"Update checkout order (partial)\",\n description: \"Partially updates a PayPal checkout order using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of an existing checkout order without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the checkout order. Common use cases include updating the order description, custom fields, or other patchable properties. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.\",\n input: PaypalPatchOrdersInput,\n output: PaypalPatchOrdersOutput,\n});\n"],"mappings":";;AAoBA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBkD,EAAE,OAAO;EAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EACjE,YAAY,EAAE,MAAM,EAAE,OAAO;GAC7B,IAAI,EAAE,KAAK;IAAC;IAAO;IAAU;IAAW;IAAQ;IAAQ;GAAM,CAAC,CAAC,CAAC,SAAS,6FAA6F;GACvK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;GACvI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;GACtL,OAAO,EAAE,MAAM;IAAC,EAAE,OAAO;IAAG,EAAE,OAAO,CAAC,CAAC,IAAI;IAAG,EAAE,OAAO;IAAG,EAAE,QAAQ;IAAG,EAAE,MAAM,EAAE,QAAQ,CAAC;IAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;GAAC,CAAC,CAAC,CAAC,SAAS;EAC5I,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,CAAC,SAAS,4IAA4I;CACnO,CAAC,CAAC,CAAC,SAAS,uEAYH;CACP,QAZmD,EAAE,OAAO;EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/patch-plan.ts
|
|
4
|
+
const PaypalPatchPlanInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("The unique billing plan ID."),
|
|
6
|
+
patches: zod.z.array(zod.z.object({
|
|
7
|
+
op: zod.z.enum([
|
|
8
|
+
"add",
|
|
9
|
+
"remove",
|
|
10
|
+
"replace",
|
|
11
|
+
"move",
|
|
12
|
+
"copy",
|
|
13
|
+
"test"
|
|
14
|
+
]).describe("The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'."),
|
|
15
|
+
from: zod.z.string().describe("The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.").optional(),
|
|
16
|
+
path: zod.z.string().describe("The JSON Pointer path to the target location in the billing plan (e.g., '/description', '/name'). Use forward slash as separator per RFC 6901."),
|
|
17
|
+
value: zod.z.unknown().describe("The value to apply for 'add', 'replace', or 'test' operations. The 'remove' operation does not require a value.").optional()
|
|
18
|
+
}).describe("A single JSON Patch operation to apply to the billing plan.")).describe("An array of JSON Patch operations to apply to the billing plan. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.")
|
|
19
|
+
}).describe("Request to partially update a PayPal billing plan using JSON Patch.");
|
|
20
|
+
const PaypalPatchPlanOutput = zod.z.object({
|
|
21
|
+
plan_id: zod.z.string().describe("The ID of the billing plan that was updated.").nullable().optional(),
|
|
22
|
+
success: zod.z.boolean().default(true).describe("Indicates whether the billing plan update was successful.").nullable().optional()
|
|
23
|
+
}).describe("Response from partially updating a PayPal billing plan.");
|
|
24
|
+
const paypalPatchPlan = require_action.action("PAYPAL_PATCH_PLAN", {
|
|
25
|
+
slug: "paypal-patch-plan",
|
|
26
|
+
name: "Update billing plan (partial)",
|
|
27
|
+
description: "Partially updates a PayPal billing plan using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of a billing plan without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the billing plan. Common use cases include updating the plan name, description, payment definitions, or other fields. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.",
|
|
28
|
+
input: PaypalPatchPlanInput,
|
|
29
|
+
output: PaypalPatchPlanOutput
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.paypalPatchPlan = paypalPatchPlan;
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=patch-plan.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-plan.cjs","names":["z","action"],"sources":["../../src/actions/patch-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchPlanInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique billing plan ID.\"),\n patches: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'.\"),\n from: z.string().describe(\"The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer path to the target location in the billing plan (e.g., '/description', '/name'). Use forward slash as separator per RFC 6901.\"),\n value: z.unknown().describe(\"The value to apply for 'add', 'replace', or 'test' operations. The 'remove' operation does not require a value.\").optional(),\n}).describe(\"A single JSON Patch operation to apply to the billing plan.\")).describe(\"An array of JSON Patch operations to apply to the billing plan. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.\"),\n}).describe(\"Request to partially update a PayPal billing plan using JSON Patch.\");\nexport const PaypalPatchPlanOutput: z.ZodTypeAny = z.object({\n plan_id: z.string().describe(\"The ID of the billing plan that was updated.\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the billing plan update was successful.\").nullable().optional(),\n}).describe(\"Response from partially updating a PayPal billing plan.\");\n\nexport const paypalPatchPlan = action(\"PAYPAL_PATCH_PLAN\", {\n slug: \"paypal-patch-plan\",\n name: \"Update billing plan (partial)\",\n description: \"Partially updates a PayPal billing plan using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of a billing plan without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the billing plan. Common use cases include updating the plan name, description, payment definitions, or other fields. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.\",\n input: PaypalPatchPlanInput,\n output: PaypalPatchPlanOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACrD,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,IAAIA,IAAAA,EAAE,KAAK;GAAC;GAAO;GAAU;GAAW;GAAQ;GAAQ;EAAM,CAAC,CAAC,CAAC,SAAS,6FAA6F;EACvK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EACvI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;EAC1K,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,CAAC,SAAS,mJAAmJ;AACxO,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/patch-plan.d.ts
|
|
4
|
+
declare const PaypalPatchPlanInput: z.ZodTypeAny;
|
|
5
|
+
declare const PaypalPatchPlanOutput: z.ZodTypeAny;
|
|
6
|
+
declare const paypalPatchPlan: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paypalPatchPlan };
|
|
9
|
+
//# sourceMappingURL=patch-plan.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-plan.d.cts","names":[],"sources":["../../src/actions/patch-plan.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAQ6C;AAAA,cACrE,qBAAA,EAAuB,CAAA,CAAE,UAGgC;AAAA,cAEzD,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/patch-plan.d.ts
|
|
4
|
+
declare const PaypalPatchPlanInput: z.ZodTypeAny;
|
|
5
|
+
declare const PaypalPatchPlanOutput: z.ZodTypeAny;
|
|
6
|
+
declare const paypalPatchPlan: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paypalPatchPlan };
|
|
9
|
+
//# sourceMappingURL=patch-plan.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-plan.d.mts","names":[],"sources":["../../src/actions/patch-plan.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAQ6C;AAAA,cACrE,qBAAA,EAAuB,CAAA,CAAE,UAGgC;AAAA,cAEzD,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const paypalPatchPlan = action("PAYPAL_PATCH_PLAN", {
|
|
4
|
+
slug: "paypal-patch-plan",
|
|
5
|
+
name: "Update billing plan (partial)",
|
|
6
|
+
description: "Partially updates a PayPal billing plan using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of a billing plan without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the billing plan. Common use cases include updating the plan name, description, payment definitions, or other fields. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
id: z.string().describe("The unique billing plan ID."),
|
|
9
|
+
patches: z.array(z.object({
|
|
10
|
+
op: z.enum([
|
|
11
|
+
"add",
|
|
12
|
+
"remove",
|
|
13
|
+
"replace",
|
|
14
|
+
"move",
|
|
15
|
+
"copy",
|
|
16
|
+
"test"
|
|
17
|
+
]).describe("The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'."),
|
|
18
|
+
from: z.string().describe("The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.").optional(),
|
|
19
|
+
path: z.string().describe("The JSON Pointer path to the target location in the billing plan (e.g., '/description', '/name'). Use forward slash as separator per RFC 6901."),
|
|
20
|
+
value: z.unknown().describe("The value to apply for 'add', 'replace', or 'test' operations. The 'remove' operation does not require a value.").optional()
|
|
21
|
+
}).describe("A single JSON Patch operation to apply to the billing plan.")).describe("An array of JSON Patch operations to apply to the billing plan. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.")
|
|
22
|
+
}).describe("Request to partially update a PayPal billing plan using JSON Patch."),
|
|
23
|
+
output: z.object({
|
|
24
|
+
plan_id: z.string().describe("The ID of the billing plan that was updated.").nullable().optional(),
|
|
25
|
+
success: z.boolean().default(true).describe("Indicates whether the billing plan update was successful.").nullable().optional()
|
|
26
|
+
}).describe("Response from partially updating a PayPal billing plan.")
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { paypalPatchPlan };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=patch-plan.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-plan.mjs","names":[],"sources":["../../src/actions/patch-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchPlanInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique billing plan ID.\"),\n patches: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'.\"),\n from: z.string().describe(\"The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer path to the target location in the billing plan (e.g., '/description', '/name'). Use forward slash as separator per RFC 6901.\"),\n value: z.unknown().describe(\"The value to apply for 'add', 'replace', or 'test' operations. The 'remove' operation does not require a value.\").optional(),\n}).describe(\"A single JSON Patch operation to apply to the billing plan.\")).describe(\"An array of JSON Patch operations to apply to the billing plan. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.\"),\n}).describe(\"Request to partially update a PayPal billing plan using JSON Patch.\");\nexport const PaypalPatchPlanOutput: z.ZodTypeAny = z.object({\n plan_id: z.string().describe(\"The ID of the billing plan that was updated.\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the billing plan update was successful.\").nullable().optional(),\n}).describe(\"Response from partially updating a PayPal billing plan.\");\n\nexport const paypalPatchPlan = action(\"PAYPAL_PATCH_PLAN\", {\n slug: \"paypal-patch-plan\",\n name: \"Update billing plan (partial)\",\n description: \"Partially updates a PayPal billing plan using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of a billing plan without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the billing plan. Common use cases include updating the plan name, description, payment definitions, or other fields. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.\",\n input: PaypalPatchPlanInput,\n output: PaypalPatchPlanOutput,\n});\n"],"mappings":";;AAkBA,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBgD,EAAE,OAAO;EACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EACrD,SAAS,EAAE,MAAM,EAAE,OAAO;GAC1B,IAAI,EAAE,KAAK;IAAC;IAAO;IAAU;IAAW;IAAQ;IAAQ;GAAM,CAAC,CAAC,CAAC,SAAS,6FAA6F;GACvK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;GACvI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;GAC1K,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;EAC1J,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,CAAC,SAAS,mJAAmJ;CACxO,CAAC,CAAC,CAAC,SAAS,qEAUH;CACP,QAViD,EAAE,OAAO;EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/patch-subscription.ts
|
|
4
|
+
const PaypalPatchSubscriptionInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("The ID of the subscription to update."),
|
|
6
|
+
operations: zod.z.array(zod.z.object({
|
|
7
|
+
op: zod.z.enum([
|
|
8
|
+
"add",
|
|
9
|
+
"remove",
|
|
10
|
+
"replace",
|
|
11
|
+
"move",
|
|
12
|
+
"copy",
|
|
13
|
+
"test"
|
|
14
|
+
]).describe("The operation to perform: 'add' inserts a value, 'remove' deletes a value, 'replace' updates an existing value, 'move' relocates a value, 'copy' duplicates a value, 'test' validates a value."),
|
|
15
|
+
from: zod.z.string().describe("The JSON Pointer from which to move the value. Required for 'move' and 'copy' operations.").optional(),
|
|
16
|
+
path: zod.z.string().describe("The JSON Pointer to the target location in the document. Required for all operations except 'test'.").optional(),
|
|
17
|
+
value: zod.z.union([
|
|
18
|
+
zod.z.string(),
|
|
19
|
+
zod.z.number().int(),
|
|
20
|
+
zod.z.number(),
|
|
21
|
+
zod.z.boolean(),
|
|
22
|
+
zod.z.array(zod.z.unknown()),
|
|
23
|
+
zod.z.record(zod.z.string(), zod.z.unknown())
|
|
24
|
+
]).optional()
|
|
25
|
+
}).describe("A single JSON Patch operation to apply partial updates to the subscription.")).describe("Array of JSON Patch operations to apply to the subscription. Each operation is applied in order.")
|
|
26
|
+
}).describe("Request to update a PayPal subscription using JSON Patch operations.");
|
|
27
|
+
const PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema = zod.z.object({
|
|
28
|
+
field: zod.z.string().describe("Field that caused the error").nullable().optional(),
|
|
29
|
+
issue: zod.z.string().describe("Issue description").nullable().optional(),
|
|
30
|
+
description: zod.z.string().describe("Error description").nullable().optional()
|
|
31
|
+
}).describe("Error detail structure for error responses.");
|
|
32
|
+
const PaypalPatchSubscriptionOutput = zod.z.object({
|
|
33
|
+
name: zod.z.string().describe("Error name if the operation failed").nullable().optional(),
|
|
34
|
+
details: zod.z.array(PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema).describe("Error details if the operation failed").nullable().optional(),
|
|
35
|
+
message: zod.z.string().describe("Status message or error description"),
|
|
36
|
+
success: zod.z.boolean().describe("Whether the patch operation succeeded"),
|
|
37
|
+
debug_id: zod.z.string().describe("PayPal debug ID for troubleshooting").nullable().optional()
|
|
38
|
+
}).describe("Response model for subscription patch operations.\n\nOn success (HTTP 204), returns success=True with a confirmation message.\nOn failure, returns the error details from PayPal API.");
|
|
39
|
+
const paypalPatchSubscription = require_action.action("PAYPAL_PATCH_SUBSCRIPTION", {
|
|
40
|
+
slug: "paypal-patch-subscription",
|
|
41
|
+
name: "Update Subscription",
|
|
42
|
+
description: "Update a PayPal subscription using JSON Patch operations. Use when you need to modify specific fields of an existing subscription such as custom_id, billing_token, shipping_address, or other patchable properties. This action applies partial updates to the subscription using RFC 6902 JSON Patch format. Multiple operations can be provided and will be applied in order.",
|
|
43
|
+
input: PaypalPatchSubscriptionInput,
|
|
44
|
+
output: PaypalPatchSubscriptionOutput
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
exports.paypalPatchSubscription = paypalPatchSubscription;
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=patch-subscription.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-subscription.cjs","names":["z","action"],"sources":["../../src/actions/patch-subscription.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchSubscriptionInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the subscription to update.\"),\n operations: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform: 'add' inserts a value, 'remove' deletes a value, 'replace' updates an existing value, 'move' relocates a value, 'copy' duplicates a value, 'test' validates a value.\"),\n from: z.string().describe(\"The JSON Pointer from which to move the value. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer to the target location in the document. Required for all operations except 'test'.\").optional(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).optional(),\n}).describe(\"A single JSON Patch operation to apply partial updates to the subscription.\")).describe(\"Array of JSON Patch operations to apply to the subscription. Each operation is applied in order.\"),\n}).describe(\"Request to update a PayPal subscription using JSON Patch operations.\");\nconst PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema: z.ZodTypeAny = z.object({\n field: z.string().describe(\"Field that caused the error\").nullable().optional(),\n issue: z.string().describe(\"Issue description\").nullable().optional(),\n description: z.string().describe(\"Error description\").nullable().optional(),\n}).describe(\"Error detail structure for error responses.\");\nexport const PaypalPatchSubscriptionOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Error name if the operation failed\").nullable().optional(),\n details: z.array(PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema).describe(\"Error details if the operation failed\").nullable().optional(),\n message: z.string().describe(\"Status message or error description\"),\n success: z.boolean().describe(\"Whether the patch operation succeeded\"),\n debug_id: z.string().describe(\"PayPal debug ID for troubleshooting\").nullable().optional(),\n}).describe(\"Response model for subscription patch operations.\\n\\nOn success (HTTP 204), returns success=True with a confirmation message.\\nOn failure, returns the error details from PayPal API.\");\n\nexport const paypalPatchSubscription = action(\"PAYPAL_PATCH_SUBSCRIPTION\", {\n slug: \"paypal-patch-subscription\",\n name: \"Update Subscription\",\n description: \"Update a PayPal subscription using JSON Patch operations. Use when you need to modify specific fields of an existing subscription such as custom_id, billing_token, shipping_address, or other patchable properties. This action applies partial updates to the subscription using RFC 6902 JSON Patch format. Multiple operations can be provided and will be applied in order.\",\n input: PaypalPatchSubscriptionInput,\n output: PaypalPatchSubscriptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC/D,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,IAAIA,IAAAA,EAAE,KAAK;GAAC;GAAO;GAAU;GAAW;GAAQ;GAAQ;EAAM,CAAC,CAAC,CAAC,SAAS,gMAAgM;EAC1Q,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;EAChI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EAC1I,OAAOA,IAAAA,EAAE,MAAM;GAACA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GAAGA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,QAAQ;GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,CAAC,SAAS,kGAAkG;AACvM,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,6DAA2EA,IAAAA,EAAE,OAAO;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAClE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,uLAAuL;AAEnM,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/patch-subscription.d.ts
|
|
4
|
+
declare const PaypalPatchSubscriptionInput: z.ZodTypeAny;
|
|
5
|
+
declare const PaypalPatchSubscriptionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const paypalPatchSubscription: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paypalPatchSubscription };
|
|
9
|
+
//# sourceMappingURL=patch-subscription.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-subscription.d.cts","names":[],"sources":["../../src/actions/patch-subscription.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAQsC;AAAA,cAMtE,6BAAA,EAA+B,CAAA,CAAE,UAMsJ;AAAA,cAEvL,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/patch-subscription.d.ts
|
|
4
|
+
declare const PaypalPatchSubscriptionInput: z.ZodTypeAny;
|
|
5
|
+
declare const PaypalPatchSubscriptionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const paypalPatchSubscription: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paypalPatchSubscription };
|
|
9
|
+
//# sourceMappingURL=patch-subscription.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-subscription.d.mts","names":[],"sources":["../../src/actions/patch-subscription.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAQsC;AAAA,cAMtE,6BAAA,EAA+B,CAAA,CAAE,UAMsJ;AAAA,cAEvL,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/patch-subscription.ts
|
|
4
|
+
const PaypalPatchSubscriptionInput = z.object({
|
|
5
|
+
id: z.string().describe("The ID of the subscription to update."),
|
|
6
|
+
operations: z.array(z.object({
|
|
7
|
+
op: z.enum([
|
|
8
|
+
"add",
|
|
9
|
+
"remove",
|
|
10
|
+
"replace",
|
|
11
|
+
"move",
|
|
12
|
+
"copy",
|
|
13
|
+
"test"
|
|
14
|
+
]).describe("The operation to perform: 'add' inserts a value, 'remove' deletes a value, 'replace' updates an existing value, 'move' relocates a value, 'copy' duplicates a value, 'test' validates a value."),
|
|
15
|
+
from: z.string().describe("The JSON Pointer from which to move the value. Required for 'move' and 'copy' operations.").optional(),
|
|
16
|
+
path: z.string().describe("The JSON Pointer to the target location in the document. Required for all operations except 'test'.").optional(),
|
|
17
|
+
value: z.union([
|
|
18
|
+
z.string(),
|
|
19
|
+
z.number().int(),
|
|
20
|
+
z.number(),
|
|
21
|
+
z.boolean(),
|
|
22
|
+
z.array(z.unknown()),
|
|
23
|
+
z.record(z.string(), z.unknown())
|
|
24
|
+
]).optional()
|
|
25
|
+
}).describe("A single JSON Patch operation to apply partial updates to the subscription.")).describe("Array of JSON Patch operations to apply to the subscription. Each operation is applied in order.")
|
|
26
|
+
}).describe("Request to update a PayPal subscription using JSON Patch operations.");
|
|
27
|
+
const PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema = z.object({
|
|
28
|
+
field: z.string().describe("Field that caused the error").nullable().optional(),
|
|
29
|
+
issue: z.string().describe("Issue description").nullable().optional(),
|
|
30
|
+
description: z.string().describe("Error description").nullable().optional()
|
|
31
|
+
}).describe("Error detail structure for error responses.");
|
|
32
|
+
const paypalPatchSubscription = action("PAYPAL_PATCH_SUBSCRIPTION", {
|
|
33
|
+
slug: "paypal-patch-subscription",
|
|
34
|
+
name: "Update Subscription",
|
|
35
|
+
description: "Update a PayPal subscription using JSON Patch operations. Use when you need to modify specific fields of an existing subscription such as custom_id, billing_token, shipping_address, or other patchable properties. This action applies partial updates to the subscription using RFC 6902 JSON Patch format. Multiple operations can be provided and will be applied in order.",
|
|
36
|
+
input: PaypalPatchSubscriptionInput,
|
|
37
|
+
output: z.object({
|
|
38
|
+
name: z.string().describe("Error name if the operation failed").nullable().optional(),
|
|
39
|
+
details: z.array(PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema).describe("Error details if the operation failed").nullable().optional(),
|
|
40
|
+
message: z.string().describe("Status message or error description"),
|
|
41
|
+
success: z.boolean().describe("Whether the patch operation succeeded"),
|
|
42
|
+
debug_id: z.string().describe("PayPal debug ID for troubleshooting").nullable().optional()
|
|
43
|
+
}).describe("Response model for subscription patch operations.\n\nOn success (HTTP 204), returns success=True with a confirmation message.\nOn failure, returns the error details from PayPal API.")
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
export { paypalPatchSubscription };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=patch-subscription.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-subscription.mjs","names":[],"sources":["../../src/actions/patch-subscription.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchSubscriptionInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the subscription to update.\"),\n operations: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform: 'add' inserts a value, 'remove' deletes a value, 'replace' updates an existing value, 'move' relocates a value, 'copy' duplicates a value, 'test' validates a value.\"),\n from: z.string().describe(\"The JSON Pointer from which to move the value. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer to the target location in the document. Required for all operations except 'test'.\").optional(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).optional(),\n}).describe(\"A single JSON Patch operation to apply partial updates to the subscription.\")).describe(\"Array of JSON Patch operations to apply to the subscription. Each operation is applied in order.\"),\n}).describe(\"Request to update a PayPal subscription using JSON Patch operations.\");\nconst PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema: z.ZodTypeAny = z.object({\n field: z.string().describe(\"Field that caused the error\").nullable().optional(),\n issue: z.string().describe(\"Issue description\").nullable().optional(),\n description: z.string().describe(\"Error description\").nullable().optional(),\n}).describe(\"Error detail structure for error responses.\");\nexport const PaypalPatchSubscriptionOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Error name if the operation failed\").nullable().optional(),\n details: z.array(PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema).describe(\"Error details if the operation failed\").nullable().optional(),\n message: z.string().describe(\"Status message or error description\"),\n success: z.boolean().describe(\"Whether the patch operation succeeded\"),\n debug_id: z.string().describe(\"PayPal debug ID for troubleshooting\").nullable().optional(),\n}).describe(\"Response model for subscription patch operations.\\n\\nOn success (HTTP 204), returns success=True with a confirmation message.\\nOn failure, returns the error details from PayPal API.\");\n\nexport const paypalPatchSubscription = action(\"PAYPAL_PATCH_SUBSCRIPTION\", {\n slug: \"paypal-patch-subscription\",\n name: \"Update Subscription\",\n description: \"Update a PayPal subscription using JSON Patch operations. Use when you need to modify specific fields of an existing subscription such as custom_id, billing_token, shipping_address, or other patchable properties. This action applies partial updates to the subscription using RFC 6902 JSON Patch format. Multiple operations can be provided and will be applied in order.\",\n input: PaypalPatchSubscriptionInput,\n output: PaypalPatchSubscriptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC/D,YAAY,EAAE,MAAM,EAAE,OAAO;EAC7B,IAAI,EAAE,KAAK;GAAC;GAAO;GAAU;GAAW;GAAQ;GAAQ;EAAM,CAAC,CAAC,CAAC,SAAS,gMAAgM;EAC1Q,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;EAChI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EAC1I,OAAO,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC;GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,CAAC,SAAS,kGAAkG;AACvM,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,6DAA2E,EAAE,OAAO;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,6CAA6C;AASzD,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbyD,EAAE,OAAO;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,SAAS,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EAClE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;EACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,SAAS,uLAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/patch-web-profile.ts
|
|
4
|
+
const PaypalPatchWebProfileInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("The unique web experience profile ID."),
|
|
6
|
+
patches: zod.z.array(zod.z.object({
|
|
7
|
+
op: zod.z.enum([
|
|
8
|
+
"add",
|
|
9
|
+
"remove",
|
|
10
|
+
"replace",
|
|
11
|
+
"move",
|
|
12
|
+
"copy",
|
|
13
|
+
"test"
|
|
14
|
+
]).describe("The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'."),
|
|
15
|
+
from: zod.z.string().describe("The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.").optional(),
|
|
16
|
+
path: zod.z.string().describe("The JSON Pointer path to the target location in the web experience profile (e.g., '/name', '/presentation/logo_url'). Use forward slash as separator per RFC 6901."),
|
|
17
|
+
value: zod.z.union([
|
|
18
|
+
zod.z.string(),
|
|
19
|
+
zod.z.number().int(),
|
|
20
|
+
zod.z.number(),
|
|
21
|
+
zod.z.boolean(),
|
|
22
|
+
zod.z.array(zod.z.unknown()),
|
|
23
|
+
zod.z.record(zod.z.string(), zod.z.unknown())
|
|
24
|
+
]).optional()
|
|
25
|
+
}).describe("A single JSON Patch operation to apply to the web experience profile.")).describe("An array of JSON Patch operations to apply to the web experience profile. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.")
|
|
26
|
+
}).describe("Request to partially update a PayPal web experience profile using JSON Patch.");
|
|
27
|
+
const PaypalPatchWebProfileOutput = zod.z.object({
|
|
28
|
+
success: zod.z.boolean().default(true).describe("Indicates whether the web experience profile update was successful.").nullable().optional(),
|
|
29
|
+
profile_id: zod.z.string().describe("The ID of the web experience profile that was updated.").nullable().optional()
|
|
30
|
+
}).describe("Response from partially updating a PayPal web experience profile.");
|
|
31
|
+
const paypalPatchWebProfile = require_action.action("PAYPAL_PATCH_WEB_PROFILE", {
|
|
32
|
+
slug: "paypal-patch-web-profile",
|
|
33
|
+
name: "Update web experience profile (partial)",
|
|
34
|
+
description: "Partially updates a PayPal web experience profile using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of a web experience profile without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the web experience profile. Common use cases include updating the profile name, presentation settings, flow configuration, or other fields. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.",
|
|
35
|
+
input: PaypalPatchWebProfileInput,
|
|
36
|
+
output: PaypalPatchWebProfileOutput
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
exports.paypalPatchWebProfile = paypalPatchWebProfile;
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=patch-web-profile.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-web-profile.cjs","names":["z","action"],"sources":["../../src/actions/patch-web-profile.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchWebProfileInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique web experience profile ID.\"),\n patches: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'.\"),\n from: z.string().describe(\"The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer path to the target location in the web experience profile (e.g., '/name', '/presentation/logo_url'). Use forward slash as separator per RFC 6901.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).optional(),\n}).describe(\"A single JSON Patch operation to apply to the web experience profile.\")).describe(\"An array of JSON Patch operations to apply to the web experience profile. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.\"),\n}).describe(\"Request to partially update a PayPal web experience profile using JSON Patch.\");\nexport const PaypalPatchWebProfileOutput: z.ZodTypeAny = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the web experience profile update was successful.\").nullable().optional(),\n profile_id: z.string().describe(\"The ID of the web experience profile that was updated.\").nullable().optional(),\n}).describe(\"Response from partially updating a PayPal web experience profile.\");\n\nexport const paypalPatchWebProfile = action(\"PAYPAL_PATCH_WEB_PROFILE\", {\n slug: \"paypal-patch-web-profile\",\n name: \"Update web experience profile (partial)\",\n description: \"Partially updates a PayPal web experience profile using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of a web experience profile without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the web experience profile. Common use cases include updating the profile name, presentation settings, flow configuration, or other fields. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.\",\n input: PaypalPatchWebProfileInput,\n output: PaypalPatchWebProfileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC/D,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,IAAIA,IAAAA,EAAE,KAAK;GAAC;GAAO;GAAU;GAAW;GAAQ;GAAQ;EAAM,CAAC,CAAC,CAAC,SAAS,6FAA6F;EACvK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EACvI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK;EAC9L,OAAOA,IAAAA,EAAE,MAAM;GAACA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GAAGA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,QAAQ;GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,CAAC,SAAS,6JAA6J;AAC5P,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAC3F,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAE/E,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/patch-web-profile.d.ts
|
|
4
|
+
declare const PaypalPatchWebProfileInput: z.ZodTypeAny;
|
|
5
|
+
declare const PaypalPatchWebProfileOutput: z.ZodTypeAny;
|
|
6
|
+
declare const paypalPatchWebProfile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paypalPatchWebProfile };
|
|
9
|
+
//# sourceMappingURL=patch-web-profile.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-web-profile.d.cts","names":[],"sources":["../../src/actions/patch-web-profile.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAQiD;AAAA,cAC/E,2BAAA,EAA6B,CAAA,CAAE,UAGoC;AAAA,cAEnE,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/patch-web-profile.d.ts
|
|
4
|
+
declare const PaypalPatchWebProfileInput: z.ZodTypeAny;
|
|
5
|
+
declare const PaypalPatchWebProfileOutput: z.ZodTypeAny;
|
|
6
|
+
declare const paypalPatchWebProfile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paypalPatchWebProfile };
|
|
9
|
+
//# sourceMappingURL=patch-web-profile.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-web-profile.d.mts","names":[],"sources":["../../src/actions/patch-web-profile.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAQiD;AAAA,cAC/E,2BAAA,EAA6B,CAAA,CAAE,UAGoC;AAAA,cAEnE,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const paypalPatchWebProfile = action("PAYPAL_PATCH_WEB_PROFILE", {
|
|
4
|
+
slug: "paypal-patch-web-profile",
|
|
5
|
+
name: "Update web experience profile (partial)",
|
|
6
|
+
description: "Partially updates a PayPal web experience profile using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of a web experience profile without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the web experience profile. Common use cases include updating the profile name, presentation settings, flow configuration, or other fields. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
id: z.string().describe("The unique web experience profile ID."),
|
|
9
|
+
patches: z.array(z.object({
|
|
10
|
+
op: z.enum([
|
|
11
|
+
"add",
|
|
12
|
+
"remove",
|
|
13
|
+
"replace",
|
|
14
|
+
"move",
|
|
15
|
+
"copy",
|
|
16
|
+
"test"
|
|
17
|
+
]).describe("The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'."),
|
|
18
|
+
from: z.string().describe("The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.").optional(),
|
|
19
|
+
path: z.string().describe("The JSON Pointer path to the target location in the web experience profile (e.g., '/name', '/presentation/logo_url'). Use forward slash as separator per RFC 6901."),
|
|
20
|
+
value: z.union([
|
|
21
|
+
z.string(),
|
|
22
|
+
z.number().int(),
|
|
23
|
+
z.number(),
|
|
24
|
+
z.boolean(),
|
|
25
|
+
z.array(z.unknown()),
|
|
26
|
+
z.record(z.string(), z.unknown())
|
|
27
|
+
]).optional()
|
|
28
|
+
}).describe("A single JSON Patch operation to apply to the web experience profile.")).describe("An array of JSON Patch operations to apply to the web experience profile. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.")
|
|
29
|
+
}).describe("Request to partially update a PayPal web experience profile using JSON Patch."),
|
|
30
|
+
output: z.object({
|
|
31
|
+
success: z.boolean().default(true).describe("Indicates whether the web experience profile update was successful.").nullable().optional(),
|
|
32
|
+
profile_id: z.string().describe("The ID of the web experience profile that was updated.").nullable().optional()
|
|
33
|
+
}).describe("Response from partially updating a PayPal web experience profile.")
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { paypalPatchWebProfile };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=patch-web-profile.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-web-profile.mjs","names":[],"sources":["../../src/actions/patch-web-profile.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchWebProfileInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique web experience profile ID.\"),\n patches: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'.\"),\n from: z.string().describe(\"The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer path to the target location in the web experience profile (e.g., '/name', '/presentation/logo_url'). Use forward slash as separator per RFC 6901.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).optional(),\n}).describe(\"A single JSON Patch operation to apply to the web experience profile.\")).describe(\"An array of JSON Patch operations to apply to the web experience profile. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.\"),\n}).describe(\"Request to partially update a PayPal web experience profile using JSON Patch.\");\nexport const PaypalPatchWebProfileOutput: z.ZodTypeAny = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the web experience profile update was successful.\").nullable().optional(),\n profile_id: z.string().describe(\"The ID of the web experience profile that was updated.\").nullable().optional(),\n}).describe(\"Response from partially updating a PayPal web experience profile.\");\n\nexport const paypalPatchWebProfile = action(\"PAYPAL_PATCH_WEB_PROFILE\", {\n slug: \"paypal-patch-web-profile\",\n name: \"Update web experience profile (partial)\",\n description: \"Partially updates a PayPal web experience profile using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of a web experience profile without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the web experience profile. Common use cases include updating the profile name, presentation settings, flow configuration, or other fields. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.\",\n input: PaypalPatchWebProfileInput,\n output: PaypalPatchWebProfileOutput,\n});\n"],"mappings":";;AAkBA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAC/D,SAAS,EAAE,MAAM,EAAE,OAAO;GAC1B,IAAI,EAAE,KAAK;IAAC;IAAO;IAAU;IAAW;IAAQ;IAAQ;GAAM,CAAC,CAAC,CAAC,SAAS,6FAA6F;GACvK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;GACvI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK;GAC9L,OAAO,EAAE,MAAM;IAAC,EAAE,OAAO;IAAG,EAAE,OAAO,CAAC,CAAC,IAAI;IAAG,EAAE,OAAO;IAAG,EAAE,QAAQ;IAAG,EAAE,MAAM,EAAE,QAAQ,CAAC;IAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;GAAC,CAAC,CAAC,CAAC,SAAS;EAC5I,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,CAAC,SAAS,6JAA6J;CAC5P,CAAC,CAAC,CAAC,SAAS,+EAUH;CACP,QAVuD,EAAE,OAAO;EAChE,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,mEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/ping-braintree.ts
|
|
4
|
+
const PaypalPingBraintreeInput = zod.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.");
|
|
5
|
+
const PaypalPingBraintreeOutput = zod.z.object({
|
|
6
|
+
data: zod.z.object({}).describe("The data object containing the ping response.").nullable().optional(),
|
|
7
|
+
ping: zod.z.string().describe("The literal string 'pong' returned by the server.").nullable().optional()
|
|
8
|
+
}).describe("Response model for the Braintree ping query.");
|
|
9
|
+
const paypalPingBraintree = require_action.action("PAYPAL_PING_BRAINTREE", {
|
|
10
|
+
slug: "paypal-ping-braintree",
|
|
11
|
+
name: "Braintree Ping",
|
|
12
|
+
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.",
|
|
13
|
+
input: PaypalPingBraintreeInput,
|
|
14
|
+
output: PaypalPingBraintreeOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.paypalPingBraintree = paypalPingBraintree;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=ping-braintree.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ping-braintree.cjs","names":["z","action"],"sources":["../../src/actions/ping-braintree.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPingBraintreeInput: z.ZodTypeAny = 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.ZodTypeAny = 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":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iRAAiR;AAC7V,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|