@keystrokehq/paystack 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/add-products-to-page.cjs +3 -3
- package/dist/actions/add-products-to-page.cjs.map +1 -1
- package/dist/actions/add-products-to-page.d.cts +3 -3
- package/dist/actions/add-products-to-page.d.mts +3 -3
- package/dist/actions/add-products-to-page.mjs +3 -3
- package/dist/actions/add-products-to-page.mjs.map +1 -1
- package/dist/actions/add-products-to-storefront.cjs +1 -1
- package/dist/actions/add-products-to-storefront.cjs.map +1 -1
- package/dist/actions/add-products-to-storefront.d.cts +1 -1
- package/dist/actions/add-products-to-storefront.d.mts +1 -1
- package/dist/actions/add-products-to-storefront.mjs +1 -1
- package/dist/actions/add-products-to-storefront.mjs.map +1 -1
- package/dist/actions/add-split-code-to-virtual-terminal.cjs +3 -3
- package/dist/actions/add-split-code-to-virtual-terminal.cjs.map +1 -1
- package/dist/actions/add-split-code-to-virtual-terminal.d.cts +3 -3
- package/dist/actions/add-split-code-to-virtual-terminal.d.mts +3 -3
- package/dist/actions/add-split-code-to-virtual-terminal.mjs +3 -3
- package/dist/actions/add-split-code-to-virtual-terminal.mjs.map +1 -1
- package/dist/actions/add-subaccount-to-split.cjs +3 -3
- package/dist/actions/add-subaccount-to-split.cjs.map +1 -1
- package/dist/actions/add-subaccount-to-split.d.cts +3 -3
- package/dist/actions/add-subaccount-to-split.d.mts +3 -3
- package/dist/actions/add-subaccount-to-split.mjs +3 -3
- package/dist/actions/add-subaccount-to-split.mjs.map +1 -1
- package/dist/actions/archive-payment-request.cjs +1 -1
- package/dist/actions/archive-payment-request.cjs.map +1 -1
- package/dist/actions/archive-payment-request.d.cts +1 -1
- package/dist/actions/archive-payment-request.d.mts +1 -1
- package/dist/actions/archive-payment-request.mjs +1 -1
- package/dist/actions/archive-payment-request.mjs.map +1 -1
- package/dist/actions/assign-destination-to-virtual-terminal.cjs +3 -3
- package/dist/actions/assign-destination-to-virtual-terminal.cjs.map +1 -1
- package/dist/actions/assign-destination-to-virtual-terminal.d.cts +4 -3
- package/dist/actions/assign-destination-to-virtual-terminal.d.mts +4 -3
- package/dist/actions/assign-destination-to-virtual-terminal.mjs +3 -3
- package/dist/actions/assign-destination-to-virtual-terminal.mjs.map +1 -1
- package/dist/actions/check-pending-charge.cjs +5 -5
- package/dist/actions/check-pending-charge.cjs.map +1 -1
- package/dist/actions/check-pending-charge.d.cts +5 -5
- package/dist/actions/check-pending-charge.d.mts +5 -5
- package/dist/actions/check-pending-charge.mjs +5 -5
- package/dist/actions/check-pending-charge.mjs.map +1 -1
- package/dist/actions/check-slug-availability.cjs +1 -1
- package/dist/actions/check-slug-availability.cjs.map +1 -1
- package/dist/actions/check-slug-availability.d.cts +1 -1
- package/dist/actions/check-slug-availability.d.mts +1 -1
- package/dist/actions/check-slug-availability.mjs +1 -1
- package/dist/actions/check-slug-availability.mjs.map +1 -1
- package/dist/actions/create-bulk-transfer-recipient.cjs +5 -5
- package/dist/actions/create-bulk-transfer-recipient.cjs.map +1 -1
- package/dist/actions/create-bulk-transfer-recipient.d.cts +6 -5
- package/dist/actions/create-bulk-transfer-recipient.d.cts.map +1 -1
- package/dist/actions/create-bulk-transfer-recipient.d.mts +6 -5
- package/dist/actions/create-bulk-transfer-recipient.d.mts.map +1 -1
- package/dist/actions/create-bulk-transfer-recipient.mjs +5 -5
- package/dist/actions/create-bulk-transfer-recipient.mjs.map +1 -1
- package/dist/actions/create-charge.cjs +8 -8
- package/dist/actions/create-charge.cjs.map +1 -1
- package/dist/actions/create-charge.d.cts +8 -8
- package/dist/actions/create-charge.d.mts +8 -8
- package/dist/actions/create-charge.mjs +8 -8
- package/dist/actions/create-charge.mjs.map +1 -1
- package/dist/actions/create-customer.cjs +2 -2
- package/dist/actions/create-customer.cjs.map +1 -1
- package/dist/actions/create-customer.d.cts +2 -2
- package/dist/actions/create-customer.d.mts +2 -2
- package/dist/actions/create-customer.mjs +2 -2
- package/dist/actions/create-customer.mjs.map +1 -1
- package/dist/actions/create-payment-page.cjs +2 -2
- package/dist/actions/create-payment-page.cjs.map +1 -1
- package/dist/actions/create-payment-page.d.cts +4 -4
- package/dist/actions/create-payment-page.d.mts +4 -4
- package/dist/actions/create-payment-page.mjs +2 -2
- package/dist/actions/create-payment-page.mjs.map +1 -1
- package/dist/actions/create-payment-request.cjs +4 -4
- package/dist/actions/create-payment-request.cjs.map +1 -1
- package/dist/actions/create-payment-request.d.cts +6 -4
- package/dist/actions/create-payment-request.d.mts +6 -4
- package/dist/actions/create-payment-request.mjs +4 -4
- package/dist/actions/create-payment-request.mjs.map +1 -1
- package/dist/actions/create-plan.cjs +2 -2
- package/dist/actions/create-plan.cjs.map +1 -1
- package/dist/actions/create-plan.d.cts +2 -2
- package/dist/actions/create-plan.d.mts +2 -2
- package/dist/actions/create-plan.mjs +2 -2
- package/dist/actions/create-plan.mjs.map +1 -1
- package/dist/actions/create-refund.cjs +11 -11
- package/dist/actions/create-refund.cjs.map +1 -1
- package/dist/actions/create-refund.d.cts +13 -13
- package/dist/actions/create-refund.d.mts +13 -13
- package/dist/actions/create-refund.mjs +11 -11
- package/dist/actions/create-refund.mjs.map +1 -1
- package/dist/actions/create-split.cjs +4 -4
- package/dist/actions/create-split.cjs.map +1 -1
- package/dist/actions/create-split.d.cts +7 -6
- package/dist/actions/create-split.d.mts +7 -6
- package/dist/actions/create-split.mjs +4 -4
- package/dist/actions/create-split.mjs.map +1 -1
- package/dist/actions/create-storefront.cjs +7 -7
- package/dist/actions/create-storefront.cjs.map +1 -1
- package/dist/actions/create-storefront.d.cts +9 -9
- package/dist/actions/create-storefront.d.mts +9 -9
- package/dist/actions/create-storefront.mjs +7 -7
- package/dist/actions/create-storefront.mjs.map +1 -1
- package/dist/actions/create-subaccount.cjs +2 -2
- package/dist/actions/create-subaccount.cjs.map +1 -1
- package/dist/actions/create-subaccount.d.cts +2 -2
- package/dist/actions/create-subaccount.d.mts +2 -2
- package/dist/actions/create-subaccount.mjs +2 -2
- package/dist/actions/create-subaccount.mjs.map +1 -1
- package/dist/actions/create-transfer-recipient.cjs +3 -3
- package/dist/actions/create-transfer-recipient.cjs.map +1 -1
- package/dist/actions/create-transfer-recipient.d.cts +3 -3
- package/dist/actions/create-transfer-recipient.d.mts +3 -3
- package/dist/actions/create-transfer-recipient.mjs +3 -3
- package/dist/actions/create-transfer-recipient.mjs.map +1 -1
- package/dist/actions/create-virtual-terminal.cjs +7 -7
- package/dist/actions/create-virtual-terminal.cjs.map +1 -1
- package/dist/actions/create-virtual-terminal.d.cts +9 -8
- package/dist/actions/create-virtual-terminal.d.cts.map +1 -1
- package/dist/actions/create-virtual-terminal.d.mts +9 -8
- package/dist/actions/create-virtual-terminal.d.mts.map +1 -1
- package/dist/actions/create-virtual-terminal.mjs +7 -7
- package/dist/actions/create-virtual-terminal.mjs.map +1 -1
- package/dist/actions/deactivate-authorization.cjs +1 -1
- package/dist/actions/deactivate-authorization.cjs.map +1 -1
- package/dist/actions/deactivate-authorization.d.cts +1 -1
- package/dist/actions/deactivate-authorization.d.mts +1 -1
- package/dist/actions/deactivate-authorization.mjs +1 -1
- package/dist/actions/deactivate-authorization.mjs.map +1 -1
- package/dist/actions/deactivate-virtual-terminal.cjs +1 -1
- package/dist/actions/deactivate-virtual-terminal.cjs.map +1 -1
- package/dist/actions/deactivate-virtual-terminal.d.cts +1 -1
- package/dist/actions/deactivate-virtual-terminal.d.mts +1 -1
- package/dist/actions/deactivate-virtual-terminal.mjs +1 -1
- package/dist/actions/deactivate-virtual-terminal.mjs.map +1 -1
- package/dist/actions/delete-product.cjs +1 -1
- package/dist/actions/delete-product.cjs.map +1 -1
- package/dist/actions/delete-product.d.cts +1 -1
- package/dist/actions/delete-product.d.mts +1 -1
- package/dist/actions/delete-product.mjs +1 -1
- package/dist/actions/delete-product.mjs.map +1 -1
- package/dist/actions/delete-storefront.cjs +1 -1
- package/dist/actions/delete-storefront.cjs.map +1 -1
- package/dist/actions/delete-storefront.d.cts +1 -1
- package/dist/actions/delete-storefront.d.mts +1 -1
- package/dist/actions/delete-storefront.mjs +1 -1
- package/dist/actions/delete-storefront.mjs.map +1 -1
- package/dist/actions/delete-transfer-recipient.cjs +1 -1
- package/dist/actions/delete-transfer-recipient.cjs.map +1 -1
- package/dist/actions/delete-transfer-recipient.d.cts +1 -1
- package/dist/actions/delete-transfer-recipient.d.mts +1 -1
- package/dist/actions/delete-transfer-recipient.mjs +1 -1
- package/dist/actions/delete-transfer-recipient.mjs.map +1 -1
- package/dist/actions/disable-otp-for-transfers.cjs +1 -1
- package/dist/actions/disable-otp-for-transfers.cjs.map +1 -1
- package/dist/actions/disable-otp-for-transfers.d.cts +1 -1
- package/dist/actions/disable-otp-for-transfers.d.mts +1 -1
- package/dist/actions/disable-otp-for-transfers.mjs +1 -1
- package/dist/actions/disable-otp-for-transfers.mjs.map +1 -1
- package/dist/actions/disable-subscription.cjs +2 -2
- package/dist/actions/disable-subscription.cjs.map +1 -1
- package/dist/actions/disable-subscription.d.cts +2 -2
- package/dist/actions/disable-subscription.d.mts +2 -2
- package/dist/actions/disable-subscription.mjs +2 -2
- package/dist/actions/disable-subscription.mjs.map +1 -1
- package/dist/actions/duplicate-storefront.cjs +2 -2
- package/dist/actions/duplicate-storefront.cjs.map +1 -1
- package/dist/actions/duplicate-storefront.d.cts +2 -2
- package/dist/actions/duplicate-storefront.d.mts +2 -2
- package/dist/actions/duplicate-storefront.mjs +2 -2
- package/dist/actions/duplicate-storefront.mjs.map +1 -1
- package/dist/actions/enable-otp-requirement-for-transfers.cjs +1 -1
- package/dist/actions/enable-otp-requirement-for-transfers.cjs.map +1 -1
- package/dist/actions/enable-otp-requirement-for-transfers.d.cts +1 -1
- package/dist/actions/enable-otp-requirement-for-transfers.d.mts +1 -1
- package/dist/actions/enable-otp-requirement-for-transfers.mjs +1 -1
- package/dist/actions/enable-otp-requirement-for-transfers.mjs.map +1 -1
- package/dist/actions/export-transactions.cjs +2 -2
- package/dist/actions/export-transactions.cjs.map +1 -1
- package/dist/actions/export-transactions.d.cts +2 -2
- package/dist/actions/export-transactions.d.mts +2 -2
- package/dist/actions/export-transactions.mjs +2 -2
- package/dist/actions/export-transactions.mjs.map +1 -1
- package/dist/actions/fetch-balance-ledger.cjs +3 -3
- package/dist/actions/fetch-balance-ledger.cjs.map +1 -1
- package/dist/actions/fetch-balance-ledger.d.cts +3 -3
- package/dist/actions/fetch-balance-ledger.d.mts +3 -3
- package/dist/actions/fetch-balance-ledger.mjs +3 -3
- package/dist/actions/fetch-balance-ledger.mjs.map +1 -1
- package/dist/actions/fetch-balance.cjs +2 -2
- package/dist/actions/fetch-balance.cjs.map +1 -1
- package/dist/actions/fetch-balance.d.cts +2 -2
- package/dist/actions/fetch-balance.d.mts +2 -2
- package/dist/actions/fetch-balance.mjs +2 -2
- package/dist/actions/fetch-balance.mjs.map +1 -1
- package/dist/actions/fetch-bulk-charge-batch.cjs +2 -2
- package/dist/actions/fetch-bulk-charge-batch.cjs.map +1 -1
- package/dist/actions/fetch-bulk-charge-batch.d.cts +2 -2
- package/dist/actions/fetch-bulk-charge-batch.d.mts +2 -2
- package/dist/actions/fetch-bulk-charge-batch.mjs +2 -2
- package/dist/actions/fetch-bulk-charge-batch.mjs.map +1 -1
- package/dist/actions/fetch-customer.cjs +9 -9
- package/dist/actions/fetch-customer.cjs.map +1 -1
- package/dist/actions/fetch-customer.d.cts +10 -10
- package/dist/actions/fetch-customer.d.mts +10 -10
- package/dist/actions/fetch-customer.mjs +9 -9
- package/dist/actions/fetch-customer.mjs.map +1 -1
- package/dist/actions/fetch-mandate-authorizations.cjs +5 -5
- package/dist/actions/fetch-mandate-authorizations.cjs.map +1 -1
- package/dist/actions/fetch-mandate-authorizations.d.cts +5 -5
- package/dist/actions/fetch-mandate-authorizations.d.mts +5 -5
- package/dist/actions/fetch-mandate-authorizations.mjs +5 -5
- package/dist/actions/fetch-mandate-authorizations.mjs.map +1 -1
- package/dist/actions/fetch-payment-page.cjs +2 -2
- package/dist/actions/fetch-payment-page.cjs.map +1 -1
- package/dist/actions/fetch-payment-page.d.cts +2 -2
- package/dist/actions/fetch-payment-page.d.mts +2 -2
- package/dist/actions/fetch-payment-page.mjs +2 -2
- package/dist/actions/fetch-payment-page.mjs.map +1 -1
- package/dist/actions/fetch-payment-request.cjs +7 -7
- package/dist/actions/fetch-payment-request.cjs.map +1 -1
- package/dist/actions/fetch-payment-request.d.cts +7 -7
- package/dist/actions/fetch-payment-request.d.mts +7 -7
- package/dist/actions/fetch-payment-request.mjs +7 -7
- package/dist/actions/fetch-payment-request.mjs.map +1 -1
- package/dist/actions/fetch-payment-session-timeout.cjs +2 -2
- package/dist/actions/fetch-payment-session-timeout.cjs.map +1 -1
- package/dist/actions/fetch-payment-session-timeout.d.cts +2 -2
- package/dist/actions/fetch-payment-session-timeout.d.mts +2 -2
- package/dist/actions/fetch-payment-session-timeout.mjs +2 -2
- package/dist/actions/fetch-payment-session-timeout.mjs.map +1 -1
- package/dist/actions/fetch-plan.cjs +5 -5
- package/dist/actions/fetch-plan.cjs.map +1 -1
- package/dist/actions/fetch-plan.d.cts +5 -5
- package/dist/actions/fetch-plan.d.mts +5 -5
- package/dist/actions/fetch-plan.mjs +5 -5
- package/dist/actions/fetch-plan.mjs.map +1 -1
- package/dist/actions/fetch-product-orders.cjs +11 -11
- package/dist/actions/fetch-product-orders.cjs.map +1 -1
- package/dist/actions/fetch-product-orders.d.cts +11 -11
- package/dist/actions/fetch-product-orders.d.mts +11 -11
- package/dist/actions/fetch-product-orders.mjs +11 -11
- package/dist/actions/fetch-product-orders.mjs.map +1 -1
- package/dist/actions/fetch-product.cjs +8 -8
- package/dist/actions/fetch-product.cjs.map +1 -1
- package/dist/actions/fetch-product.d.cts +8 -8
- package/dist/actions/fetch-product.d.mts +8 -8
- package/dist/actions/fetch-product.mjs +8 -8
- package/dist/actions/fetch-product.mjs.map +1 -1
- package/dist/actions/fetch-refund.cjs +3 -3
- package/dist/actions/fetch-refund.cjs.map +1 -1
- package/dist/actions/fetch-refund.d.cts +3 -3
- package/dist/actions/fetch-refund.d.mts +3 -3
- package/dist/actions/fetch-refund.mjs +3 -3
- package/dist/actions/fetch-refund.mjs.map +1 -1
- package/dist/actions/fetch-split.cjs +3 -3
- package/dist/actions/fetch-split.cjs.map +1 -1
- package/dist/actions/fetch-split.d.cts +3 -3
- package/dist/actions/fetch-split.d.mts +3 -3
- package/dist/actions/fetch-split.mjs +3 -3
- package/dist/actions/fetch-split.mjs.map +1 -1
- package/dist/actions/fetch-storefront-orders.cjs +11 -11
- package/dist/actions/fetch-storefront-orders.cjs.map +1 -1
- package/dist/actions/fetch-storefront-orders.d.cts +11 -11
- package/dist/actions/fetch-storefront-orders.d.mts +11 -11
- package/dist/actions/fetch-storefront-orders.mjs +11 -11
- package/dist/actions/fetch-storefront-orders.mjs.map +1 -1
- package/dist/actions/fetch-storefront.cjs +8 -8
- package/dist/actions/fetch-storefront.cjs.map +1 -1
- package/dist/actions/fetch-storefront.d.cts +8 -8
- package/dist/actions/fetch-storefront.d.mts +8 -8
- package/dist/actions/fetch-storefront.mjs +8 -8
- package/dist/actions/fetch-storefront.mjs.map +1 -1
- package/dist/actions/fetch-subaccount.cjs +2 -2
- package/dist/actions/fetch-subaccount.cjs.map +1 -1
- package/dist/actions/fetch-subaccount.d.cts +2 -2
- package/dist/actions/fetch-subaccount.d.mts +2 -2
- package/dist/actions/fetch-subaccount.mjs +2 -2
- package/dist/actions/fetch-subaccount.mjs.map +1 -1
- package/dist/actions/fetch-subscription.cjs +13 -13
- package/dist/actions/fetch-subscription.cjs.map +1 -1
- package/dist/actions/fetch-subscription.d.cts +13 -13
- package/dist/actions/fetch-subscription.d.mts +13 -13
- package/dist/actions/fetch-subscription.mjs +13 -13
- package/dist/actions/fetch-subscription.mjs.map +1 -1
- package/dist/actions/fetch-transaction-timeline.cjs +4 -4
- package/dist/actions/fetch-transaction-timeline.cjs.map +1 -1
- package/dist/actions/fetch-transaction-timeline.d.cts +4 -4
- package/dist/actions/fetch-transaction-timeline.d.mts +4 -4
- package/dist/actions/fetch-transaction-timeline.mjs +4 -4
- package/dist/actions/fetch-transaction-timeline.mjs.map +1 -1
- package/dist/actions/fetch-transaction.cjs +16 -16
- package/dist/actions/fetch-transaction.cjs.map +1 -1
- package/dist/actions/fetch-transaction.d.cts +17 -17
- package/dist/actions/fetch-transaction.d.mts +17 -17
- package/dist/actions/fetch-transaction.mjs +16 -16
- package/dist/actions/fetch-transaction.mjs.map +1 -1
- package/dist/actions/fetch-transfer-recipient.cjs +3 -3
- package/dist/actions/fetch-transfer-recipient.cjs.map +1 -1
- package/dist/actions/fetch-transfer-recipient.d.cts +3 -3
- package/dist/actions/fetch-transfer-recipient.d.mts +3 -3
- package/dist/actions/fetch-transfer-recipient.mjs +3 -3
- package/dist/actions/fetch-transfer-recipient.mjs.map +1 -1
- package/dist/actions/fetch-virtual-terminal.cjs +4 -4
- package/dist/actions/fetch-virtual-terminal.cjs.map +1 -1
- package/dist/actions/fetch-virtual-terminal.d.cts +4 -4
- package/dist/actions/fetch-virtual-terminal.d.mts +4 -4
- package/dist/actions/fetch-virtual-terminal.mjs +4 -4
- package/dist/actions/fetch-virtual-terminal.mjs.map +1 -1
- package/dist/actions/finalize-payment-request.cjs +7 -7
- package/dist/actions/finalize-payment-request.cjs.map +1 -1
- package/dist/actions/finalize-payment-request.d.cts +7 -7
- package/dist/actions/finalize-payment-request.d.mts +7 -7
- package/dist/actions/finalize-payment-request.mjs +7 -7
- package/dist/actions/finalize-payment-request.mjs.map +1 -1
- package/dist/actions/generate-update-subscription-link.cjs +2 -2
- package/dist/actions/generate-update-subscription-link.cjs.map +1 -1
- package/dist/actions/generate-update-subscription-link.d.cts +2 -2
- package/dist/actions/generate-update-subscription-link.d.mts +2 -2
- package/dist/actions/generate-update-subscription-link.mjs +2 -2
- package/dist/actions/generate-update-subscription-link.mjs.map +1 -1
- package/dist/actions/get-payment-request-totals.cjs +3 -3
- package/dist/actions/get-payment-request-totals.cjs.map +1 -1
- package/dist/actions/get-payment-request-totals.d.cts +5 -5
- package/dist/actions/get-payment-request-totals.d.mts +5 -5
- package/dist/actions/get-payment-request-totals.mjs +3 -3
- package/dist/actions/get-payment-request-totals.mjs.map +1 -1
- package/dist/actions/get-transaction-totals.cjs +3 -3
- package/dist/actions/get-transaction-totals.cjs.map +1 -1
- package/dist/actions/get-transaction-totals.d.cts +4 -4
- package/dist/actions/get-transaction-totals.d.mts +4 -4
- package/dist/actions/get-transaction-totals.mjs +3 -3
- package/dist/actions/get-transaction-totals.mjs.map +1 -1
- package/dist/actions/initialize-authorization.cjs +2 -2
- package/dist/actions/initialize-authorization.cjs.map +1 -1
- package/dist/actions/initialize-authorization.d.cts +2 -2
- package/dist/actions/initialize-authorization.d.mts +2 -2
- package/dist/actions/initialize-authorization.mjs +2 -2
- package/dist/actions/initialize-authorization.mjs.map +1 -1
- package/dist/actions/initialize-transaction.cjs +3 -3
- package/dist/actions/initialize-transaction.cjs.map +1 -1
- package/dist/actions/initialize-transaction.d.cts +8 -7
- package/dist/actions/initialize-transaction.d.cts.map +1 -1
- package/dist/actions/initialize-transaction.d.mts +8 -7
- package/dist/actions/initialize-transaction.d.mts.map +1 -1
- package/dist/actions/initialize-transaction.mjs +3 -3
- package/dist/actions/initialize-transaction.mjs.map +1 -1
- package/dist/actions/initiate-bulk-charge.cjs +3 -3
- package/dist/actions/initiate-bulk-charge.cjs.map +1 -1
- package/dist/actions/initiate-bulk-charge.d.cts +4 -3
- package/dist/actions/initiate-bulk-charge.d.cts.map +1 -1
- package/dist/actions/initiate-bulk-charge.d.mts +4 -3
- package/dist/actions/initiate-bulk-charge.d.mts.map +1 -1
- package/dist/actions/initiate-bulk-charge.mjs +3 -3
- package/dist/actions/initiate-bulk-charge.mjs.map +1 -1
- package/dist/actions/list-banks.cjs +3 -3
- package/dist/actions/list-banks.cjs.map +1 -1
- package/dist/actions/list-banks.d.cts +3 -3
- package/dist/actions/list-banks.d.mts +3 -3
- package/dist/actions/list-banks.mjs +3 -3
- package/dist/actions/list-banks.mjs.map +1 -1
- package/dist/actions/list-bulk-charge-batches.cjs +4 -4
- package/dist/actions/list-bulk-charge-batches.cjs.map +1 -1
- package/dist/actions/list-bulk-charge-batches.d.cts +4 -4
- package/dist/actions/list-bulk-charge-batches.d.mts +4 -4
- package/dist/actions/list-bulk-charge-batches.mjs +4 -4
- package/dist/actions/list-bulk-charge-batches.mjs.map +1 -1
- package/dist/actions/list-charges-in-batch.cjs +8 -8
- package/dist/actions/list-charges-in-batch.cjs.map +1 -1
- package/dist/actions/list-charges-in-batch.d.cts +8 -8
- package/dist/actions/list-charges-in-batch.d.mts +8 -8
- package/dist/actions/list-charges-in-batch.mjs +8 -8
- package/dist/actions/list-charges-in-batch.mjs.map +1 -1
- package/dist/actions/list-countries.cjs +2 -2
- package/dist/actions/list-countries.cjs.map +1 -1
- package/dist/actions/list-countries.d.cts +2 -2
- package/dist/actions/list-countries.d.mts +2 -2
- package/dist/actions/list-countries.mjs +2 -2
- package/dist/actions/list-countries.mjs.map +1 -1
- package/dist/actions/list-customers.cjs +3 -3
- package/dist/actions/list-customers.cjs.map +1 -1
- package/dist/actions/list-customers.d.cts +3 -3
- package/dist/actions/list-customers.d.mts +3 -3
- package/dist/actions/list-customers.mjs +3 -3
- package/dist/actions/list-customers.mjs.map +1 -1
- package/dist/actions/list-disputes.cjs +18 -18
- package/dist/actions/list-disputes.cjs.map +1 -1
- package/dist/actions/list-disputes.d.cts +16 -16
- package/dist/actions/list-disputes.d.mts +16 -16
- package/dist/actions/list-disputes.mjs +18 -18
- package/dist/actions/list-disputes.mjs.map +1 -1
- package/dist/actions/list-domains.cjs +2 -2
- package/dist/actions/list-domains.cjs.map +1 -1
- package/dist/actions/list-domains.d.cts +2 -2
- package/dist/actions/list-domains.d.mts +2 -2
- package/dist/actions/list-domains.mjs +2 -2
- package/dist/actions/list-domains.mjs.map +1 -1
- package/dist/actions/list-mandate-authorizations.cjs +5 -5
- package/dist/actions/list-mandate-authorizations.cjs.map +1 -1
- package/dist/actions/list-mandate-authorizations.d.cts +5 -5
- package/dist/actions/list-mandate-authorizations.d.mts +5 -5
- package/dist/actions/list-mandate-authorizations.mjs +5 -5
- package/dist/actions/list-mandate-authorizations.mjs.map +1 -1
- package/dist/actions/list-orders.cjs +3 -3
- package/dist/actions/list-orders.cjs.map +1 -1
- package/dist/actions/list-orders.d.cts +3 -3
- package/dist/actions/list-orders.d.mts +3 -3
- package/dist/actions/list-orders.mjs +3 -3
- package/dist/actions/list-orders.mjs.map +1 -1
- package/dist/actions/list-payment-pages.cjs +3 -3
- package/dist/actions/list-payment-pages.cjs.map +1 -1
- package/dist/actions/list-payment-pages.d.cts +3 -3
- package/dist/actions/list-payment-pages.d.mts +3 -3
- package/dist/actions/list-payment-pages.mjs +3 -3
- package/dist/actions/list-payment-pages.mjs.map +1 -1
- package/dist/actions/list-payment-requests.cjs +8 -8
- package/dist/actions/list-payment-requests.cjs.map +1 -1
- package/dist/actions/list-payment-requests.d.cts +8 -8
- package/dist/actions/list-payment-requests.d.mts +8 -8
- package/dist/actions/list-payment-requests.mjs +8 -8
- package/dist/actions/list-payment-requests.mjs.map +1 -1
- package/dist/actions/list-plans.cjs +5 -5
- package/dist/actions/list-plans.cjs.map +1 -1
- package/dist/actions/list-plans.d.cts +5 -5
- package/dist/actions/list-plans.d.mts +5 -5
- package/dist/actions/list-plans.mjs +5 -5
- package/dist/actions/list-plans.mjs.map +1 -1
- package/dist/actions/list-products.cjs +8 -8
- package/dist/actions/list-products.cjs.map +1 -1
- package/dist/actions/list-products.d.cts +8 -8
- package/dist/actions/list-products.d.mts +8 -8
- package/dist/actions/list-products.mjs +8 -8
- package/dist/actions/list-products.mjs.map +1 -1
- package/dist/actions/list-refunds.cjs +8 -8
- package/dist/actions/list-refunds.cjs.map +1 -1
- package/dist/actions/list-refunds.d.cts +8 -8
- package/dist/actions/list-refunds.d.mts +8 -8
- package/dist/actions/list-refunds.mjs +8 -8
- package/dist/actions/list-refunds.mjs.map +1 -1
- package/dist/actions/list-settlements.cjs +3 -3
- package/dist/actions/list-settlements.cjs.map +1 -1
- package/dist/actions/list-settlements.d.cts +3 -3
- package/dist/actions/list-settlements.d.mts +3 -3
- package/dist/actions/list-settlements.mjs +3 -3
- package/dist/actions/list-settlements.mjs.map +1 -1
- package/dist/actions/list-splits.cjs +4 -4
- package/dist/actions/list-splits.cjs.map +1 -1
- package/dist/actions/list-splits.d.cts +4 -4
- package/dist/actions/list-splits.d.mts +4 -4
- package/dist/actions/list-splits.mjs +4 -4
- package/dist/actions/list-splits.mjs.map +1 -1
- package/dist/actions/list-states-avs.cjs +2 -2
- package/dist/actions/list-states-avs.cjs.map +1 -1
- package/dist/actions/list-states-avs.d.cts +2 -2
- package/dist/actions/list-states-avs.d.mts +2 -2
- package/dist/actions/list-states-avs.mjs +2 -2
- package/dist/actions/list-states-avs.mjs.map +1 -1
- package/dist/actions/list-storefront-products.cjs +8 -8
- package/dist/actions/list-storefront-products.cjs.map +1 -1
- package/dist/actions/list-storefront-products.d.cts +8 -8
- package/dist/actions/list-storefront-products.d.mts +8 -8
- package/dist/actions/list-storefront-products.mjs +8 -8
- package/dist/actions/list-storefront-products.mjs.map +1 -1
- package/dist/actions/list-storefronts.cjs +8 -8
- package/dist/actions/list-storefronts.cjs.map +1 -1
- package/dist/actions/list-storefronts.d.cts +8 -8
- package/dist/actions/list-storefronts.d.mts +8 -8
- package/dist/actions/list-storefronts.mjs +8 -8
- package/dist/actions/list-storefronts.mjs.map +1 -1
- package/dist/actions/list-subaccounts.cjs +3 -3
- package/dist/actions/list-subaccounts.cjs.map +1 -1
- package/dist/actions/list-subaccounts.d.cts +3 -3
- package/dist/actions/list-subaccounts.d.mts +3 -3
- package/dist/actions/list-subaccounts.mjs +3 -3
- package/dist/actions/list-subaccounts.mjs.map +1 -1
- package/dist/actions/list-subscriptions.cjs +12 -12
- package/dist/actions/list-subscriptions.cjs.map +1 -1
- package/dist/actions/list-subscriptions.d.cts +12 -12
- package/dist/actions/list-subscriptions.d.mts +12 -12
- package/dist/actions/list-subscriptions.mjs +12 -12
- package/dist/actions/list-subscriptions.mjs.map +1 -1
- package/dist/actions/list-transactions.cjs +17 -17
- package/dist/actions/list-transactions.cjs.map +1 -1
- package/dist/actions/list-transactions.d.cts +17 -17
- package/dist/actions/list-transactions.d.mts +17 -17
- package/dist/actions/list-transactions.mjs +17 -17
- package/dist/actions/list-transactions.mjs.map +1 -1
- package/dist/actions/list-transfer-recipients.cjs +3 -3
- package/dist/actions/list-transfer-recipients.cjs.map +1 -1
- package/dist/actions/list-transfer-recipients.d.cts +3 -3
- package/dist/actions/list-transfer-recipients.d.mts +3 -3
- package/dist/actions/list-transfer-recipients.mjs +3 -3
- package/dist/actions/list-transfer-recipients.mjs.map +1 -1
- package/dist/actions/list-transfers.cjs +4 -4
- package/dist/actions/list-transfers.cjs.map +1 -1
- package/dist/actions/list-transfers.d.cts +4 -4
- package/dist/actions/list-transfers.d.mts +4 -4
- package/dist/actions/list-transfers.mjs +4 -4
- package/dist/actions/list-transfers.mjs.map +1 -1
- package/dist/actions/list-virtual-terminals.cjs +4 -4
- package/dist/actions/list-virtual-terminals.cjs.map +1 -1
- package/dist/actions/list-virtual-terminals.d.cts +4 -4
- package/dist/actions/list-virtual-terminals.d.mts +4 -4
- package/dist/actions/list-virtual-terminals.mjs +4 -4
- package/dist/actions/list-virtual-terminals.mjs.map +1 -1
- package/dist/actions/pause-bulk-charge.cjs +1 -1
- package/dist/actions/pause-bulk-charge.cjs.map +1 -1
- package/dist/actions/pause-bulk-charge.d.cts +1 -1
- package/dist/actions/pause-bulk-charge.d.mts +1 -1
- package/dist/actions/pause-bulk-charge.mjs +1 -1
- package/dist/actions/pause-bulk-charge.mjs.map +1 -1
- package/dist/actions/publish-storefront.cjs +2 -2
- package/dist/actions/publish-storefront.cjs.map +1 -1
- package/dist/actions/publish-storefront.d.cts +2 -2
- package/dist/actions/publish-storefront.d.mts +2 -2
- package/dist/actions/publish-storefront.mjs +2 -2
- package/dist/actions/publish-storefront.mjs.map +1 -1
- package/dist/actions/remove-subaccount-from-split.cjs +1 -1
- package/dist/actions/remove-subaccount-from-split.cjs.map +1 -1
- package/dist/actions/remove-subaccount-from-split.d.cts +1 -1
- package/dist/actions/remove-subaccount-from-split.d.mts +1 -1
- package/dist/actions/remove-subaccount-from-split.mjs +1 -1
- package/dist/actions/remove-subaccount-from-split.mjs.map +1 -1
- package/dist/actions/resend-otp-for-transfer.cjs +1 -1
- package/dist/actions/resend-otp-for-transfer.cjs.map +1 -1
- package/dist/actions/resend-otp-for-transfer.d.cts +1 -1
- package/dist/actions/resend-otp-for-transfer.d.mts +1 -1
- package/dist/actions/resend-otp-for-transfer.mjs +1 -1
- package/dist/actions/resend-otp-for-transfer.mjs.map +1 -1
- package/dist/actions/resolve-card-bin.cjs +2 -2
- package/dist/actions/resolve-card-bin.cjs.map +1 -1
- package/dist/actions/resolve-card-bin.d.cts +2 -2
- package/dist/actions/resolve-card-bin.d.mts +2 -2
- package/dist/actions/resolve-card-bin.mjs +2 -2
- package/dist/actions/resolve-card-bin.mjs.map +1 -1
- package/dist/actions/resume-bulk-charge-batch.cjs +1 -1
- package/dist/actions/resume-bulk-charge-batch.cjs.map +1 -1
- package/dist/actions/resume-bulk-charge-batch.d.cts +1 -1
- package/dist/actions/resume-bulk-charge-batch.d.mts +1 -1
- package/dist/actions/resume-bulk-charge-batch.mjs +1 -1
- package/dist/actions/resume-bulk-charge-batch.mjs.map +1 -1
- package/dist/actions/send-payment-request-notification.cjs +1 -1
- package/dist/actions/send-payment-request-notification.cjs.map +1 -1
- package/dist/actions/send-payment-request-notification.d.cts +1 -1
- package/dist/actions/send-payment-request-notification.d.mts +1 -1
- package/dist/actions/send-payment-request-notification.mjs +1 -1
- package/dist/actions/send-payment-request-notification.mjs.map +1 -1
- package/dist/actions/send-subscription-update-link.cjs +2 -2
- package/dist/actions/send-subscription-update-link.cjs.map +1 -1
- package/dist/actions/send-subscription-update-link.d.cts +2 -2
- package/dist/actions/send-subscription-update-link.d.mts +2 -2
- package/dist/actions/send-subscription-update-link.mjs +2 -2
- package/dist/actions/send-subscription-update-link.mjs.map +1 -1
- package/dist/actions/set-risk-action.cjs +5 -5
- package/dist/actions/set-risk-action.cjs.map +1 -1
- package/dist/actions/set-risk-action.d.cts +5 -5
- package/dist/actions/set-risk-action.d.mts +5 -5
- package/dist/actions/set-risk-action.mjs +5 -5
- package/dist/actions/set-risk-action.mjs.map +1 -1
- package/dist/actions/submit-phone.cjs +5 -5
- package/dist/actions/submit-phone.cjs.map +1 -1
- package/dist/actions/submit-phone.d.cts +5 -5
- package/dist/actions/submit-phone.d.mts +5 -5
- package/dist/actions/submit-phone.mjs +5 -5
- package/dist/actions/submit-phone.mjs.map +1 -1
- package/dist/actions/trigger-direct-debit-activation-charge.cjs +1 -1
- package/dist/actions/trigger-direct-debit-activation-charge.cjs.map +1 -1
- package/dist/actions/trigger-direct-debit-activation-charge.d.cts +1 -1
- package/dist/actions/trigger-direct-debit-activation-charge.d.mts +1 -1
- package/dist/actions/trigger-direct-debit-activation-charge.mjs +1 -1
- package/dist/actions/trigger-direct-debit-activation-charge.mjs.map +1 -1
- package/dist/actions/unassign-destination-from-virtual-terminal.cjs +1 -1
- package/dist/actions/unassign-destination-from-virtual-terminal.cjs.map +1 -1
- package/dist/actions/unassign-destination-from-virtual-terminal.d.cts +1 -1
- package/dist/actions/unassign-destination-from-virtual-terminal.d.mts +1 -1
- package/dist/actions/unassign-destination-from-virtual-terminal.mjs +1 -1
- package/dist/actions/unassign-destination-from-virtual-terminal.mjs.map +1 -1
- package/dist/actions/unregister-apple-pay-domain.cjs +2 -2
- package/dist/actions/unregister-apple-pay-domain.cjs.map +1 -1
- package/dist/actions/unregister-apple-pay-domain.d.cts +2 -2
- package/dist/actions/unregister-apple-pay-domain.d.mts +2 -2
- package/dist/actions/unregister-apple-pay-domain.mjs +2 -2
- package/dist/actions/unregister-apple-pay-domain.mjs.map +1 -1
- package/dist/actions/update-customer.cjs +4 -4
- package/dist/actions/update-customer.cjs.map +1 -1
- package/dist/actions/update-customer.d.cts +4 -4
- package/dist/actions/update-customer.d.mts +4 -4
- package/dist/actions/update-customer.mjs +4 -4
- package/dist/actions/update-customer.mjs.map +1 -1
- package/dist/actions/update-payment-page.cjs +2 -2
- package/dist/actions/update-payment-page.cjs.map +1 -1
- package/dist/actions/update-payment-page.d.cts +2 -2
- package/dist/actions/update-payment-page.d.mts +2 -2
- package/dist/actions/update-payment-page.mjs +2 -2
- package/dist/actions/update-payment-page.mjs.map +1 -1
- package/dist/actions/update-payment-request.cjs +5 -5
- package/dist/actions/update-payment-request.cjs.map +1 -1
- package/dist/actions/update-payment-request.d.cts +7 -5
- package/dist/actions/update-payment-request.d.mts +7 -5
- package/dist/actions/update-payment-request.mjs +5 -5
- package/dist/actions/update-payment-request.mjs.map +1 -1
- package/dist/actions/update-payment-session-timeout.cjs +2 -2
- package/dist/actions/update-payment-session-timeout.cjs.map +1 -1
- package/dist/actions/update-payment-session-timeout.d.cts +2 -2
- package/dist/actions/update-payment-session-timeout.d.mts +2 -2
- package/dist/actions/update-payment-session-timeout.mjs +2 -2
- package/dist/actions/update-payment-session-timeout.mjs.map +1 -1
- package/dist/actions/update-plan.cjs +1 -1
- package/dist/actions/update-plan.cjs.map +1 -1
- package/dist/actions/update-plan.d.cts +1 -1
- package/dist/actions/update-plan.d.mts +1 -1
- package/dist/actions/update-plan.mjs +1 -1
- package/dist/actions/update-plan.mjs.map +1 -1
- package/dist/actions/update-product.cjs +8 -8
- package/dist/actions/update-product.cjs.map +1 -1
- package/dist/actions/update-product.d.cts +9 -9
- package/dist/actions/update-product.d.mts +9 -9
- package/dist/actions/update-product.mjs +8 -8
- package/dist/actions/update-product.mjs.map +1 -1
- package/dist/actions/update-split.cjs +3 -3
- package/dist/actions/update-split.cjs.map +1 -1
- package/dist/actions/update-split.d.cts +3 -3
- package/dist/actions/update-split.d.mts +3 -3
- package/dist/actions/update-split.mjs +3 -3
- package/dist/actions/update-split.mjs.map +1 -1
- package/dist/actions/update-storefront.cjs +1 -1
- package/dist/actions/update-storefront.cjs.map +1 -1
- package/dist/actions/update-storefront.d.cts +1 -1
- package/dist/actions/update-storefront.d.mts +1 -1
- package/dist/actions/update-storefront.mjs +1 -1
- package/dist/actions/update-storefront.mjs.map +1 -1
- package/dist/actions/update-subaccount.cjs +2 -2
- package/dist/actions/update-subaccount.cjs.map +1 -1
- package/dist/actions/update-subaccount.d.cts +2 -2
- package/dist/actions/update-subaccount.d.mts +2 -2
- package/dist/actions/update-subaccount.mjs +2 -2
- package/dist/actions/update-subaccount.mjs.map +1 -1
- package/dist/actions/update-transfer-recipient.cjs +3 -3
- package/dist/actions/update-transfer-recipient.cjs.map +1 -1
- package/dist/actions/update-transfer-recipient.d.cts +3 -3
- package/dist/actions/update-transfer-recipient.d.mts +3 -3
- package/dist/actions/update-transfer-recipient.mjs +3 -3
- package/dist/actions/update-transfer-recipient.mjs.map +1 -1
- package/dist/actions/validate-bank-account.cjs +2 -2
- package/dist/actions/validate-bank-account.cjs.map +1 -1
- package/dist/actions/validate-bank-account.d.cts +2 -2
- package/dist/actions/validate-bank-account.d.mts +2 -2
- package/dist/actions/validate-bank-account.mjs +2 -2
- package/dist/actions/validate-bank-account.mjs.map +1 -1
- package/dist/actions/validate-customer.cjs +1 -1
- package/dist/actions/validate-customer.cjs.map +1 -1
- package/dist/actions/validate-customer.d.cts +1 -1
- package/dist/actions/validate-customer.d.mts +1 -1
- package/dist/actions/validate-customer.mjs +1 -1
- package/dist/actions/validate-customer.mjs.map +1 -1
- package/dist/actions/validate-order.cjs +13 -13
- package/dist/actions/validate-order.cjs.map +1 -1
- package/dist/actions/validate-order.d.cts +13 -13
- package/dist/actions/validate-order.d.mts +13 -13
- package/dist/actions/validate-order.mjs +13 -13
- package/dist/actions/validate-order.mjs.map +1 -1
- package/dist/actions/verify-payment-request.cjs +10 -10
- package/dist/actions/verify-payment-request.cjs.map +1 -1
- package/dist/actions/verify-payment-request.d.cts +10 -10
- package/dist/actions/verify-payment-request.d.mts +10 -10
- package/dist/actions/verify-payment-request.mjs +10 -10
- package/dist/actions/verify-payment-request.mjs.map +1 -1
- package/dist/actions/verify-storefront-slug.cjs +1 -1
- package/dist/actions/verify-storefront-slug.cjs.map +1 -1
- package/dist/actions/verify-storefront-slug.d.cts +1 -1
- package/dist/actions/verify-storefront-slug.d.mts +1 -1
- package/dist/actions/verify-storefront-slug.mjs +1 -1
- package/dist/actions/verify-storefront-slug.mjs.map +1 -1
- package/dist/actions/verify-transaction.cjs +17 -17
- package/dist/actions/verify-transaction.cjs.map +1 -1
- package/dist/actions/verify-transaction.d.cts +17 -17
- package/dist/actions/verify-transaction.d.mts +17 -17
- package/dist/actions/verify-transaction.mjs +17 -17
- package/dist/actions/verify-transaction.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ const PaystackFetchSplitInput = zod.z.object({ id: zod.z.number().int().describe
|
|
|
5
5
|
const PaystackFetchSplit_SplitSubaccountSchema = zod.z.object({
|
|
6
6
|
share: zod.z.number().int().describe("Share percentage or amount for the subaccount").nullable().optional(),
|
|
7
7
|
subaccount: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Subaccount details object").nullable().optional()
|
|
8
|
-
}).describe("Subaccount details within a split configuration.");
|
|
8
|
+
}).passthrough().describe("Subaccount details within a split configuration.");
|
|
9
9
|
const PaystackFetchSplit_FetchSplitDataSchema = zod.z.object({
|
|
10
10
|
id: zod.z.string().describe("Unique identifier of the split configuration").nullable(),
|
|
11
11
|
name: zod.z.string().describe("Name of the split configuration").nullable(),
|
|
@@ -22,12 +22,12 @@ const PaystackFetchSplit_FetchSplitDataSchema = zod.z.object({
|
|
|
22
22
|
subaccounts: zod.z.array(PaystackFetchSplit_SplitSubaccountSchema).describe("List of subaccounts in the split configuration"),
|
|
23
23
|
bearer_subaccount: zod.z.number().int().describe("Bearer subaccount ID if applicable").nullable().optional(),
|
|
24
24
|
total_subaccounts: zod.z.number().int().describe("Total number of subaccounts in the split").nullable()
|
|
25
|
-
}).describe("Split configuration data returned by Paystack API.");
|
|
25
|
+
}).passthrough().describe("Split configuration data returned by Paystack API.");
|
|
26
26
|
const PaystackFetchSplitOutput = zod.z.object({
|
|
27
27
|
data: PaystackFetchSplit_FetchSplitDataSchema.nullable(),
|
|
28
28
|
status: zod.z.boolean().describe("Status of the API request").nullable(),
|
|
29
29
|
message: zod.z.string().describe("Response message from the API").nullable()
|
|
30
|
-
}).describe("Response model for fetching split configuration details.");
|
|
30
|
+
}).passthrough().describe("Response model for fetching split configuration details.");
|
|
31
31
|
const paystackFetchSplit = require_action.action("PAYSTACK_FETCH_SPLIT", {
|
|
32
32
|
slug: "paystack-fetch-split",
|
|
33
33
|
name: "Fetch Split",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-split.cjs","names":["z","action"],"sources":["../../src/actions/fetch-split.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchSplitInput = z.object({\n id: z.number().int().describe(\"The ID of the split configuration to fetch\"),\n}).describe(\"Request model for fetching split configuration details.\");\nconst PaystackFetchSplit_SplitSubaccountSchema = z.object({\n share: z.number().int().describe(\"Share percentage or amount for the subaccount\").nullable().optional(),\n subaccount: z.record(z.string(), z.unknown()).describe(\"Subaccount details object\").nullable().optional(),\n}).describe(\"Subaccount details within a split configuration.\");\nconst PaystackFetchSplit_FetchSplitDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the split configuration\").nullable(),\n name: z.string().describe(\"Name of the split configuration\").nullable(),\n type: z.string().describe(\"Type of split (e.g., percentage, flat)\").nullable(),\n active: z.boolean().describe(\"Whether the split configuration is active\").nullable(),\n domain: z.string().describe(\"Domain (test or live)\").nullable(),\n currency: z.string().describe(\"Currency code for the split\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the split was created\").nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the split was last updated\").nullable(),\n is_dynamic: z.boolean().describe(\"Whether the split configuration is dynamic\").nullable(),\n split_code: z.string().describe(\"Unique split code identifier\").nullable(),\n bearer_type: z.string().describe(\"Bearer type for the split (who bears the charges)\").nullable(),\n integration: z.number().int().describe(\"Integration ID\").nullable(),\n subaccounts: z.array(PaystackFetchSplit_SplitSubaccountSchema).describe(\"List of subaccounts in the split configuration\"),\n bearer_subaccount: z.number().int().describe(\"Bearer subaccount ID if applicable\").nullable().optional(),\n total_subaccounts: z.number().int().describe(\"Total number of subaccounts in the split\").nullable(),\n}).describe(\"Split configuration data returned by Paystack API.\");\nexport const PaystackFetchSplitOutput = z.object({\n data: PaystackFetchSplit_FetchSplitDataSchema.nullable(),\n status: z.boolean().describe(\"Status of the API request\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).describe(\"Response model for fetching split configuration details.\");\n\nexport const paystackFetchSplit = action(\"PAYSTACK_FETCH_SPLIT\", {\n slug: \"paystack-fetch-split\",\n name: \"Fetch Split\",\n description: \"Tool to get details of a split configuration for a transaction. Use when you need to retrieve split payment configuration information by its ID.\",\n input: PaystackFetchSplitInput,\n output: PaystackFetchSplitOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EAC5E,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,kDAAkD;
|
|
1
|
+
{"version":3,"file":"fetch-split.cjs","names":["z","action"],"sources":["../../src/actions/fetch-split.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchSplitInput = z.object({\n id: z.number().int().describe(\"The ID of the split configuration to fetch\"),\n}).describe(\"Request model for fetching split configuration details.\");\nconst PaystackFetchSplit_SplitSubaccountSchema = z.object({\n share: z.number().int().describe(\"Share percentage or amount for the subaccount\").nullable().optional(),\n subaccount: z.record(z.string(), z.unknown()).describe(\"Subaccount details object\").nullable().optional(),\n}).passthrough().describe(\"Subaccount details within a split configuration.\");\nconst PaystackFetchSplit_FetchSplitDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the split configuration\").nullable(),\n name: z.string().describe(\"Name of the split configuration\").nullable(),\n type: z.string().describe(\"Type of split (e.g., percentage, flat)\").nullable(),\n active: z.boolean().describe(\"Whether the split configuration is active\").nullable(),\n domain: z.string().describe(\"Domain (test or live)\").nullable(),\n currency: z.string().describe(\"Currency code for the split\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the split was created\").nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the split was last updated\").nullable(),\n is_dynamic: z.boolean().describe(\"Whether the split configuration is dynamic\").nullable(),\n split_code: z.string().describe(\"Unique split code identifier\").nullable(),\n bearer_type: z.string().describe(\"Bearer type for the split (who bears the charges)\").nullable(),\n integration: z.number().int().describe(\"Integration ID\").nullable(),\n subaccounts: z.array(PaystackFetchSplit_SplitSubaccountSchema).describe(\"List of subaccounts in the split configuration\"),\n bearer_subaccount: z.number().int().describe(\"Bearer subaccount ID if applicable\").nullable().optional(),\n total_subaccounts: z.number().int().describe(\"Total number of subaccounts in the split\").nullable(),\n}).passthrough().describe(\"Split configuration data returned by Paystack API.\");\nexport const PaystackFetchSplitOutput = z.object({\n data: PaystackFetchSplit_FetchSplitDataSchema.nullable(),\n status: z.boolean().describe(\"Status of the API request\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).passthrough().describe(\"Response model for fetching split configuration details.\");\n\nexport const paystackFetchSplit = action(\"PAYSTACK_FETCH_SPLIT\", {\n slug: \"paystack-fetch-split\",\n name: \"Fetch Split\",\n description: \"Tool to get details of a split configuration for a transaction. Use when you need to retrieve split payment configuration information by its ID.\",\n input: PaystackFetchSplitInput,\n output: PaystackFetchSplitOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EAC5E,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC9D,UAAUA,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;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -21,13 +21,13 @@ declare const PaystackFetchSplitOutput: z.ZodObject<{
|
|
|
21
21
|
subaccounts: z.ZodArray<z.ZodObject<{
|
|
22
22
|
share: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
23
|
subaccount: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
25
|
bearer_subaccount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
26
|
total_subaccounts: z.ZodNullable<z.ZodNumber>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>>;
|
|
28
28
|
status: z.ZodNullable<z.ZodBoolean>;
|
|
29
29
|
message: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>;
|
|
31
31
|
declare const paystackFetchSplit: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
32
|
id: number;
|
|
33
33
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -21,13 +21,13 @@ declare const PaystackFetchSplitOutput: z.ZodObject<{
|
|
|
21
21
|
subaccounts: z.ZodArray<z.ZodObject<{
|
|
22
22
|
share: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
23
|
subaccount: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
25
|
bearer_subaccount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
26
|
total_subaccounts: z.ZodNullable<z.ZodNumber>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>>;
|
|
28
28
|
status: z.ZodNullable<z.ZodBoolean>;
|
|
29
29
|
message: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>;
|
|
31
31
|
declare const paystackFetchSplit: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
32
|
id: number;
|
|
33
33
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,7 +5,7 @@ const PaystackFetchSplitInput = z.object({ id: z.number().int().describe("The ID
|
|
|
5
5
|
const PaystackFetchSplit_SplitSubaccountSchema = z.object({
|
|
6
6
|
share: z.number().int().describe("Share percentage or amount for the subaccount").nullable().optional(),
|
|
7
7
|
subaccount: z.record(z.string(), z.unknown()).describe("Subaccount details object").nullable().optional()
|
|
8
|
-
}).describe("Subaccount details within a split configuration.");
|
|
8
|
+
}).passthrough().describe("Subaccount details within a split configuration.");
|
|
9
9
|
const PaystackFetchSplit_FetchSplitDataSchema = z.object({
|
|
10
10
|
id: z.string().describe("Unique identifier of the split configuration").nullable(),
|
|
11
11
|
name: z.string().describe("Name of the split configuration").nullable(),
|
|
@@ -22,7 +22,7 @@ const PaystackFetchSplit_FetchSplitDataSchema = z.object({
|
|
|
22
22
|
subaccounts: z.array(PaystackFetchSplit_SplitSubaccountSchema).describe("List of subaccounts in the split configuration"),
|
|
23
23
|
bearer_subaccount: z.number().int().describe("Bearer subaccount ID if applicable").nullable().optional(),
|
|
24
24
|
total_subaccounts: z.number().int().describe("Total number of subaccounts in the split").nullable()
|
|
25
|
-
}).describe("Split configuration data returned by Paystack API.");
|
|
25
|
+
}).passthrough().describe("Split configuration data returned by Paystack API.");
|
|
26
26
|
const paystackFetchSplit = action("PAYSTACK_FETCH_SPLIT", {
|
|
27
27
|
slug: "paystack-fetch-split",
|
|
28
28
|
name: "Fetch Split",
|
|
@@ -32,7 +32,7 @@ const paystackFetchSplit = action("PAYSTACK_FETCH_SPLIT", {
|
|
|
32
32
|
data: PaystackFetchSplit_FetchSplitDataSchema.nullable(),
|
|
33
33
|
status: z.boolean().describe("Status of the API request").nullable(),
|
|
34
34
|
message: z.string().describe("Response message from the API").nullable()
|
|
35
|
-
}).describe("Response model for fetching split configuration details.")
|
|
35
|
+
}).passthrough().describe("Response model for fetching split configuration details.")
|
|
36
36
|
});
|
|
37
37
|
//#endregion
|
|
38
38
|
export { paystackFetchSplit };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-split.mjs","names":[],"sources":["../../src/actions/fetch-split.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchSplitInput = z.object({\n id: z.number().int().describe(\"The ID of the split configuration to fetch\"),\n}).describe(\"Request model for fetching split configuration details.\");\nconst PaystackFetchSplit_SplitSubaccountSchema = z.object({\n share: z.number().int().describe(\"Share percentage or amount for the subaccount\").nullable().optional(),\n subaccount: z.record(z.string(), z.unknown()).describe(\"Subaccount details object\").nullable().optional(),\n}).describe(\"Subaccount details within a split configuration.\");\nconst PaystackFetchSplit_FetchSplitDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the split configuration\").nullable(),\n name: z.string().describe(\"Name of the split configuration\").nullable(),\n type: z.string().describe(\"Type of split (e.g., percentage, flat)\").nullable(),\n active: z.boolean().describe(\"Whether the split configuration is active\").nullable(),\n domain: z.string().describe(\"Domain (test or live)\").nullable(),\n currency: z.string().describe(\"Currency code for the split\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the split was created\").nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the split was last updated\").nullable(),\n is_dynamic: z.boolean().describe(\"Whether the split configuration is dynamic\").nullable(),\n split_code: z.string().describe(\"Unique split code identifier\").nullable(),\n bearer_type: z.string().describe(\"Bearer type for the split (who bears the charges)\").nullable(),\n integration: z.number().int().describe(\"Integration ID\").nullable(),\n subaccounts: z.array(PaystackFetchSplit_SplitSubaccountSchema).describe(\"List of subaccounts in the split configuration\"),\n bearer_subaccount: z.number().int().describe(\"Bearer subaccount ID if applicable\").nullable().optional(),\n total_subaccounts: z.number().int().describe(\"Total number of subaccounts in the split\").nullable(),\n}).describe(\"Split configuration data returned by Paystack API.\");\nexport const PaystackFetchSplitOutput = z.object({\n data: PaystackFetchSplit_FetchSplitDataSchema.nullable(),\n status: z.boolean().describe(\"Status of the API request\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).describe(\"Response model for fetching split configuration details.\");\n\nexport const paystackFetchSplit = action(\"PAYSTACK_FETCH_SPLIT\", {\n slug: \"paystack-fetch-split\",\n name: \"Fetch Split\",\n description: \"Tool to get details of a split configuration for a transaction. Use when you need to retrieve split payment configuration information by its ID.\",\n input: PaystackFetchSplitInput,\n output: PaystackFetchSplitOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EAC5E,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,2CAA2C,EAAE,OAAO;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,kDAAkD;
|
|
1
|
+
{"version":3,"file":"fetch-split.mjs","names":[],"sources":["../../src/actions/fetch-split.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchSplitInput = z.object({\n id: z.number().int().describe(\"The ID of the split configuration to fetch\"),\n}).describe(\"Request model for fetching split configuration details.\");\nconst PaystackFetchSplit_SplitSubaccountSchema = z.object({\n share: z.number().int().describe(\"Share percentage or amount for the subaccount\").nullable().optional(),\n subaccount: z.record(z.string(), z.unknown()).describe(\"Subaccount details object\").nullable().optional(),\n}).passthrough().describe(\"Subaccount details within a split configuration.\");\nconst PaystackFetchSplit_FetchSplitDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the split configuration\").nullable(),\n name: z.string().describe(\"Name of the split configuration\").nullable(),\n type: z.string().describe(\"Type of split (e.g., percentage, flat)\").nullable(),\n active: z.boolean().describe(\"Whether the split configuration is active\").nullable(),\n domain: z.string().describe(\"Domain (test or live)\").nullable(),\n currency: z.string().describe(\"Currency code for the split\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the split was created\").nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the split was last updated\").nullable(),\n is_dynamic: z.boolean().describe(\"Whether the split configuration is dynamic\").nullable(),\n split_code: z.string().describe(\"Unique split code identifier\").nullable(),\n bearer_type: z.string().describe(\"Bearer type for the split (who bears the charges)\").nullable(),\n integration: z.number().int().describe(\"Integration ID\").nullable(),\n subaccounts: z.array(PaystackFetchSplit_SplitSubaccountSchema).describe(\"List of subaccounts in the split configuration\"),\n bearer_subaccount: z.number().int().describe(\"Bearer subaccount ID if applicable\").nullable().optional(),\n total_subaccounts: z.number().int().describe(\"Total number of subaccounts in the split\").nullable(),\n}).passthrough().describe(\"Split configuration data returned by Paystack API.\");\nexport const PaystackFetchSplitOutput = z.object({\n data: PaystackFetchSplit_FetchSplitDataSchema.nullable(),\n status: z.boolean().describe(\"Status of the API request\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).passthrough().describe(\"Response model for fetching split configuration details.\");\n\nexport const paystackFetchSplit = action(\"PAYSTACK_FETCH_SPLIT\", {\n slug: \"paystack-fetch-split\",\n name: \"Fetch Split\",\n description: \"Tool to get details of a split configuration for a transaction. Use when you need to retrieve split payment configuration information by its ID.\",\n input: PaystackFetchSplitInput,\n output: PaystackFetchSplitOutput,\n});\n"],"mappings":";;;AAIA,MAAa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C,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CAClE,aAAa,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gDAAgD;CACxH,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAO9E,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsC,EAAE,OAAO;EAC/C,MAAM,wCAAwC,SAAS;EACvD,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
|
|
@@ -18,7 +18,7 @@ const PaystackFetchStorefrontOrders_StorefrontOrderItemSchema = zod.z.object({
|
|
|
18
18
|
order_id: zod.z.string().describe("Unique order ID").nullable(),
|
|
19
19
|
quantity: zod.z.number().int().describe("Total quantity of the product").nullable().optional(),
|
|
20
20
|
refunded: zod.z.boolean().describe("Whether the order has been refunded").nullable(),
|
|
21
|
-
shipping: zod.z.
|
|
21
|
+
shipping: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Shipping details").nullable().optional(),
|
|
22
22
|
is_viewed: zod.z.number().int().describe("View status of the order (0 or 1)").nullable().optional(),
|
|
23
23
|
last_name: zod.z.string().describe("Customer's last name").nullable().optional(),
|
|
24
24
|
created_at: zod.z.string().describe("ISO 8601 timestamp when the order was created").nullable(),
|
|
@@ -26,21 +26,21 @@ const PaystackFetchStorefrontOrders_StorefrontOrderItemSchema = zod.z.object({
|
|
|
26
26
|
is_shipped: zod.z.boolean().describe("Whether the order has been shipped").nullable().optional(),
|
|
27
27
|
order_code: zod.z.string().describe("Unique order code").nullable(),
|
|
28
28
|
product_id: zod.z.number().int().describe("Product ID").nullable().optional(),
|
|
29
|
-
variant_id: zod.z.union([zod.z.number().int(), zod.z.
|
|
29
|
+
variant_id: zod.z.union([zod.z.number().int(), zod.z.record(zod.z.string(), zod.z.unknown())]).nullable().optional(),
|
|
30
30
|
amount_paid: zod.z.number().int().describe("Amount paid in smallest currency unit").nullable().optional(),
|
|
31
31
|
transaction: zod.z.number().int().describe("Transaction ID associated with the order").nullable().optional(),
|
|
32
32
|
product_code: zod.z.string().describe("Unique product code").nullable().optional(),
|
|
33
33
|
product_name: zod.z.string().describe("Name of the product").nullable().optional(),
|
|
34
|
-
shipping_fee: zod.z.
|
|
35
|
-
variant_code: zod.z.union([zod.z.string(), zod.z.
|
|
34
|
+
shipping_fee: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Shipping fee details").nullable().optional(),
|
|
35
|
+
variant_code: zod.z.union([zod.z.string(), zod.z.record(zod.z.string(), zod.z.unknown())]).nullable().optional(),
|
|
36
36
|
customer_name: zod.z.string().describe("Full customer name").nullable().optional(),
|
|
37
|
-
delivery_note: zod.z.
|
|
37
|
+
delivery_note: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Delivery note for the order").nullable().optional(),
|
|
38
38
|
quantity_sold: zod.z.number().int().describe("Quantity of product sold in this order").nullable().optional(),
|
|
39
|
-
variant_price: zod.z.union([zod.z.number().int(), zod.z.
|
|
40
|
-
shipping_method: zod.z.
|
|
39
|
+
variant_price: zod.z.union([zod.z.number().int(), zod.z.record(zod.z.string(), zod.z.unknown())]).nullable().optional(),
|
|
40
|
+
shipping_method: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Shipping method details").nullable().optional(),
|
|
41
41
|
storefront_slug: zod.z.string().describe("Storefront slug where the product was sold").nullable().optional(),
|
|
42
|
-
shipping_address: zod.z.
|
|
43
|
-
}).describe("Individual order details from a storefront.");
|
|
42
|
+
shipping_address: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Shipping address details").nullable().optional()
|
|
43
|
+
}).passthrough().describe("Individual order details from a storefront.");
|
|
44
44
|
const PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema = zod.z.object({
|
|
45
45
|
page: zod.z.number().int().describe("Current page number").nullable().optional(),
|
|
46
46
|
total: zod.z.number().int().describe("Total number of orders in the storefront").nullable().optional(),
|
|
@@ -49,13 +49,13 @@ const PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema = zod.z.object({
|
|
|
49
49
|
skipped: zod.z.number().int().describe("Number of skipped records").nullable().optional(),
|
|
50
50
|
pageCount: zod.z.number().int().describe("Total number of pages").nullable().optional(),
|
|
51
51
|
quantity_sold: zod.z.number().int().describe("Total quantity of products sold across all orders").nullable().optional()
|
|
52
|
-
}).describe("Metadata about the storefront orders.");
|
|
52
|
+
}).passthrough().describe("Metadata about the storefront orders.");
|
|
53
53
|
const PaystackFetchStorefrontOrdersOutput = zod.z.object({
|
|
54
54
|
data: zod.z.array(PaystackFetchStorefrontOrders_StorefrontOrderItemSchema).describe("List of orders in the storefront"),
|
|
55
55
|
meta: PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema.nullable().optional(),
|
|
56
56
|
status: zod.z.boolean().describe("Status of the API request").nullable(),
|
|
57
57
|
message: zod.z.string().describe("Response message from the API").nullable()
|
|
58
|
-
}).describe("Response containing storefront orders.");
|
|
58
|
+
}).passthrough().describe("Response containing storefront orders.");
|
|
59
59
|
const paystackFetchStorefrontOrders = require_action.action("PAYSTACK_FETCH_STOREFRONT_ORDERS", {
|
|
60
60
|
slug: "paystack-fetch-storefront-orders",
|
|
61
61
|
name: "Fetch Storefront Orders",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-storefront-orders.cjs","names":["z","action"],"sources":["../../src/actions/fetch-storefront-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchStorefrontOrdersInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the Storefront\"),\n page: z.number().int().describe(\"The page number to retrieve (for pagination)\").optional(),\n perPage: z.number().int().describe(\"The number of records to return per page\").optional(),\n}).describe(\"Request to fetch orders from a storefront.\");\nconst PaystackFetchStorefrontOrders_StorefrontOrderItemSchema = z.object({\n email: z.string().describe(\"Customer's email address\").nullable(),\n phone: z.string().describe(\"Customer's phone number\").nullable().optional(),\n price: z.number().int().describe(\"Product price in smallest currency unit (kobo, pesewas, or cents)\").nullable().optional(),\n amount: z.number().int().describe(\"Total order amount in smallest currency unit\").nullable(),\n status: z.string().describe(\"Order status (e.g., pending, completed, refunded)\").nullable(),\n paid_at: z.string().describe(\"ISO 8601 timestamp when payment was made\").nullable().optional(),\n currency: z.string().describe(\"Currency code (e.g., NGN, USD, GHS)\").nullable(),\n customer: z.number().int().describe(\"Customer ID who placed the order\").nullable(),\n order_id: z.string().describe(\"Unique order ID\").nullable(),\n quantity: z.number().int().describe(\"Total quantity of the product\").nullable().optional(),\n refunded: z.boolean().describe(\"Whether the order has been refunded\").nullable(),\n shipping: z.object({}).describe(\"Shipping details\").nullable().optional(),\n is_viewed: z.number().int().describe(\"View status of the order (0 or 1)\").nullable().optional(),\n last_name: z.string().describe(\"Customer's last name\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the order was created\").nullable(),\n first_name: z.string().describe(\"Customer's first name\").nullable().optional(),\n is_shipped: z.boolean().describe(\"Whether the order has been shipped\").nullable().optional(),\n order_code: z.string().describe(\"Unique order code\").nullable(),\n product_id: z.number().int().describe(\"Product ID\").nullable().optional(),\n variant_id: z.union([z.number().int(), z.object({})]).nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid in smallest currency unit\").nullable().optional(),\n transaction: z.number().int().describe(\"Transaction ID associated with the order\").nullable().optional(),\n product_code: z.string().describe(\"Unique product code\").nullable().optional(),\n product_name: z.string().describe(\"Name of the product\").nullable().optional(),\n shipping_fee: z.object({}).describe(\"Shipping fee details\").nullable().optional(),\n variant_code: z.union([z.string(), z.object({})]).nullable().optional(),\n customer_name: z.string().describe(\"Full customer name\").nullable().optional(),\n delivery_note: z.object({}).describe(\"Delivery note for the order\").nullable().optional(),\n quantity_sold: z.number().int().describe(\"Quantity of product sold in this order\").nullable().optional(),\n variant_price: z.union([z.number().int(), z.object({})]).nullable().optional(),\n shipping_method: z.object({}).describe(\"Shipping method details\").nullable().optional(),\n storefront_slug: z.string().describe(\"Storefront slug where the product was sold\").nullable().optional(),\n shipping_address: z.object({}).describe(\"Shipping address details\").nullable().optional(),\n}).describe(\"Individual order details from a storefront.\");\nconst PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema = z.object({\n page: z.number().int().describe(\"Current page number\").nullable().optional(),\n total: z.number().int().describe(\"Total number of orders in the storefront\").nullable().optional(),\n perPage: z.number().int().describe(\"Number of orders per page\").nullable().optional(),\n revenue: z.number().int().describe(\"Total revenue generated from the storefront in smallest currency unit\").nullable().optional(),\n skipped: z.number().int().describe(\"Number of skipped records\").nullable().optional(),\n pageCount: z.number().int().describe(\"Total number of pages\").nullable().optional(),\n quantity_sold: z.number().int().describe(\"Total quantity of products sold across all orders\").nullable().optional(),\n}).describe(\"Metadata about the storefront orders.\");\nexport const PaystackFetchStorefrontOrdersOutput = z.object({\n data: z.array(PaystackFetchStorefrontOrders_StorefrontOrderItemSchema).describe(\"List of orders in the storefront\"),\n meta: PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema.nullable().optional(),\n status: z.boolean().describe(\"Status of the API request\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).describe(\"Response containing storefront orders.\");\n\nexport const paystackFetchStorefrontOrders = action(\"PAYSTACK_FETCH_STOREFRONT_ORDERS\", {\n slug: \"paystack-fetch-storefront-orders\",\n name: \"Fetch Storefront Orders\",\n description: \"Tool to fetch all orders in a Paystack storefront. Use when you need to retrieve order information for a specific storefront using its ID.\",\n input: PaystackFetchStorefrontOrdersInput,\n output: PaystackFetchStorefrontOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC1F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IA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A,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,kCAAkC;CAClH,MAAM,wDAAwD,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"fetch-storefront-orders.cjs","names":["z","action"],"sources":["../../src/actions/fetch-storefront-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchStorefrontOrdersInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the Storefront\"),\n page: z.number().int().describe(\"The page number to retrieve (for pagination)\").optional(),\n perPage: z.number().int().describe(\"The number of records to return per page\").optional(),\n}).describe(\"Request to fetch orders from a storefront.\");\nconst PaystackFetchStorefrontOrders_StorefrontOrderItemSchema = z.object({\n email: z.string().describe(\"Customer's email address\").nullable(),\n phone: z.string().describe(\"Customer's phone number\").nullable().optional(),\n price: z.number().int().describe(\"Product price in smallest currency unit (kobo, pesewas, or cents)\").nullable().optional(),\n amount: z.number().int().describe(\"Total order amount in smallest currency unit\").nullable(),\n status: z.string().describe(\"Order status (e.g., pending, completed, refunded)\").nullable(),\n paid_at: z.string().describe(\"ISO 8601 timestamp when payment was made\").nullable().optional(),\n currency: z.string().describe(\"Currency code (e.g., NGN, USD, GHS)\").nullable(),\n customer: z.number().int().describe(\"Customer ID who placed the order\").nullable(),\n order_id: z.string().describe(\"Unique order ID\").nullable(),\n quantity: z.number().int().describe(\"Total quantity of the product\").nullable().optional(),\n refunded: z.boolean().describe(\"Whether the order has been refunded\").nullable(),\n shipping: z.record(z.string(), z.unknown()).describe(\"Shipping details\").nullable().optional(),\n is_viewed: z.number().int().describe(\"View status of the order (0 or 1)\").nullable().optional(),\n last_name: z.string().describe(\"Customer's last name\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the order was created\").nullable(),\n first_name: z.string().describe(\"Customer's first name\").nullable().optional(),\n is_shipped: z.boolean().describe(\"Whether the order has been shipped\").nullable().optional(),\n order_code: z.string().describe(\"Unique order code\").nullable(),\n product_id: z.number().int().describe(\"Product ID\").nullable().optional(),\n variant_id: z.union([z.number().int(), z.record(z.string(), z.unknown())]).nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid in smallest currency unit\").nullable().optional(),\n transaction: z.number().int().describe(\"Transaction ID associated with the order\").nullable().optional(),\n product_code: z.string().describe(\"Unique product code\").nullable().optional(),\n product_name: z.string().describe(\"Name of the product\").nullable().optional(),\n shipping_fee: z.record(z.string(), z.unknown()).describe(\"Shipping fee details\").nullable().optional(),\n variant_code: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n customer_name: z.string().describe(\"Full customer name\").nullable().optional(),\n delivery_note: z.record(z.string(), z.unknown()).describe(\"Delivery note for the order\").nullable().optional(),\n quantity_sold: z.number().int().describe(\"Quantity of product sold in this order\").nullable().optional(),\n variant_price: z.union([z.number().int(), z.record(z.string(), z.unknown())]).nullable().optional(),\n shipping_method: z.record(z.string(), z.unknown()).describe(\"Shipping method details\").nullable().optional(),\n storefront_slug: z.string().describe(\"Storefront slug where the product was sold\").nullable().optional(),\n shipping_address: z.record(z.string(), z.unknown()).describe(\"Shipping address details\").nullable().optional(),\n}).passthrough().describe(\"Individual order details from a storefront.\");\nconst PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema = z.object({\n page: z.number().int().describe(\"Current page number\").nullable().optional(),\n total: z.number().int().describe(\"Total number of orders in the storefront\").nullable().optional(),\n perPage: z.number().int().describe(\"Number of orders per page\").nullable().optional(),\n revenue: z.number().int().describe(\"Total revenue generated from the storefront in smallest currency unit\").nullable().optional(),\n skipped: z.number().int().describe(\"Number of skipped records\").nullable().optional(),\n pageCount: z.number().int().describe(\"Total number of pages\").nullable().optional(),\n quantity_sold: z.number().int().describe(\"Total quantity of products sold across all orders\").nullable().optional(),\n}).passthrough().describe(\"Metadata about the storefront orders.\");\nexport const PaystackFetchStorefrontOrdersOutput = z.object({\n data: z.array(PaystackFetchStorefrontOrders_StorefrontOrderItemSchema).describe(\"List of orders in the storefront\"),\n meta: PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema.nullable().optional(),\n status: z.boolean().describe(\"Status of the API request\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).passthrough().describe(\"Response containing storefront orders.\");\n\nexport const paystackFetchStorefrontOrders = action(\"PAYSTACK_FETCH_STOREFRONT_ORDERS\", {\n slug: \"paystack-fetch-storefront-orders\",\n name: \"Fetch Storefront Orders\",\n description: \"Tool to fetch all orders in a Paystack storefront. Use when you need to retrieve order information for a specific storefront using its ID.\",\n input: PaystackFetchStorefrontOrdersInput,\n output: PaystackFetchStorefrontOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CA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AAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -19,7 +19,7 @@ declare const PaystackFetchStorefrontOrdersOutput: z.ZodObject<{
|
|
|
19
19
|
order_id: z.ZodNullable<z.ZodString>;
|
|
20
20
|
quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
21
|
refunded: z.ZodNullable<z.ZodBoolean>;
|
|
22
|
-
shipping: z.ZodOptional<z.ZodNullable<z.
|
|
22
|
+
shipping: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
23
23
|
is_viewed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
24
|
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
created_at: z.ZodNullable<z.ZodString>;
|
|
@@ -27,21 +27,21 @@ declare const PaystackFetchStorefrontOrdersOutput: z.ZodObject<{
|
|
|
27
27
|
is_shipped: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
28
28
|
order_code: z.ZodNullable<z.ZodString>;
|
|
29
29
|
product_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
|
-
variant_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.
|
|
30
|
+
variant_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
31
31
|
amount_paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
32
|
transaction: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
33
|
product_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
product_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
-
shipping_fee: z.ZodOptional<z.ZodNullable<z.
|
|
36
|
-
variant_code: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.
|
|
35
|
+
shipping_fee: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
36
|
+
variant_code: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
37
37
|
customer_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
-
delivery_note: z.ZodOptional<z.ZodNullable<z.
|
|
38
|
+
delivery_note: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
39
39
|
quantity_sold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
|
-
variant_price: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.
|
|
41
|
-
shipping_method: z.ZodOptional<z.ZodNullable<z.
|
|
40
|
+
variant_price: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
41
|
+
shipping_method: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
42
42
|
storefront_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
-
shipping_address: z.ZodOptional<z.ZodNullable<z.
|
|
44
|
-
}, z.core.$
|
|
43
|
+
shipping_address: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
45
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
46
46
|
page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
47
47
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -50,10 +50,10 @@ declare const PaystackFetchStorefrontOrdersOutput: z.ZodObject<{
|
|
|
50
50
|
skipped: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
51
51
|
pageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
52
|
quantity_sold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
|
-
}, z.core.$
|
|
53
|
+
}, z.core.$loose>>>;
|
|
54
54
|
status: z.ZodNullable<z.ZodBoolean>;
|
|
55
55
|
message: z.ZodNullable<z.ZodString>;
|
|
56
|
-
}, z.core.$
|
|
56
|
+
}, z.core.$loose>;
|
|
57
57
|
declare const paystackFetchStorefrontOrders: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
58
58
|
id: number;
|
|
59
59
|
page?: number | undefined;
|
|
@@ -19,7 +19,7 @@ declare const PaystackFetchStorefrontOrdersOutput: z.ZodObject<{
|
|
|
19
19
|
order_id: z.ZodNullable<z.ZodString>;
|
|
20
20
|
quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
21
|
refunded: z.ZodNullable<z.ZodBoolean>;
|
|
22
|
-
shipping: z.ZodOptional<z.ZodNullable<z.
|
|
22
|
+
shipping: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
23
23
|
is_viewed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
24
|
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
created_at: z.ZodNullable<z.ZodString>;
|
|
@@ -27,21 +27,21 @@ declare const PaystackFetchStorefrontOrdersOutput: z.ZodObject<{
|
|
|
27
27
|
is_shipped: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
28
28
|
order_code: z.ZodNullable<z.ZodString>;
|
|
29
29
|
product_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
|
-
variant_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.
|
|
30
|
+
variant_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
31
31
|
amount_paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
32
|
transaction: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
33
|
product_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
product_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
-
shipping_fee: z.ZodOptional<z.ZodNullable<z.
|
|
36
|
-
variant_code: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.
|
|
35
|
+
shipping_fee: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
36
|
+
variant_code: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
37
37
|
customer_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
-
delivery_note: z.ZodOptional<z.ZodNullable<z.
|
|
38
|
+
delivery_note: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
39
39
|
quantity_sold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
|
-
variant_price: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.
|
|
41
|
-
shipping_method: z.ZodOptional<z.ZodNullable<z.
|
|
40
|
+
variant_price: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
41
|
+
shipping_method: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
42
42
|
storefront_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
-
shipping_address: z.ZodOptional<z.ZodNullable<z.
|
|
44
|
-
}, z.core.$
|
|
43
|
+
shipping_address: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
45
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
46
46
|
page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
47
47
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -50,10 +50,10 @@ declare const PaystackFetchStorefrontOrdersOutput: z.ZodObject<{
|
|
|
50
50
|
skipped: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
51
51
|
pageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
52
|
quantity_sold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
|
-
}, z.core.$
|
|
53
|
+
}, z.core.$loose>>>;
|
|
54
54
|
status: z.ZodNullable<z.ZodBoolean>;
|
|
55
55
|
message: z.ZodNullable<z.ZodString>;
|
|
56
|
-
}, z.core.$
|
|
56
|
+
}, z.core.$loose>;
|
|
57
57
|
declare const paystackFetchStorefrontOrders: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
58
58
|
id: number;
|
|
59
59
|
page?: number | undefined;
|
|
@@ -18,7 +18,7 @@ const PaystackFetchStorefrontOrders_StorefrontOrderItemSchema = z.object({
|
|
|
18
18
|
order_id: z.string().describe("Unique order ID").nullable(),
|
|
19
19
|
quantity: z.number().int().describe("Total quantity of the product").nullable().optional(),
|
|
20
20
|
refunded: z.boolean().describe("Whether the order has been refunded").nullable(),
|
|
21
|
-
shipping: z.
|
|
21
|
+
shipping: z.record(z.string(), z.unknown()).describe("Shipping details").nullable().optional(),
|
|
22
22
|
is_viewed: z.number().int().describe("View status of the order (0 or 1)").nullable().optional(),
|
|
23
23
|
last_name: z.string().describe("Customer's last name").nullable().optional(),
|
|
24
24
|
created_at: z.string().describe("ISO 8601 timestamp when the order was created").nullable(),
|
|
@@ -26,21 +26,21 @@ const PaystackFetchStorefrontOrders_StorefrontOrderItemSchema = z.object({
|
|
|
26
26
|
is_shipped: z.boolean().describe("Whether the order has been shipped").nullable().optional(),
|
|
27
27
|
order_code: z.string().describe("Unique order code").nullable(),
|
|
28
28
|
product_id: z.number().int().describe("Product ID").nullable().optional(),
|
|
29
|
-
variant_id: z.union([z.number().int(), z.
|
|
29
|
+
variant_id: z.union([z.number().int(), z.record(z.string(), z.unknown())]).nullable().optional(),
|
|
30
30
|
amount_paid: z.number().int().describe("Amount paid in smallest currency unit").nullable().optional(),
|
|
31
31
|
transaction: z.number().int().describe("Transaction ID associated with the order").nullable().optional(),
|
|
32
32
|
product_code: z.string().describe("Unique product code").nullable().optional(),
|
|
33
33
|
product_name: z.string().describe("Name of the product").nullable().optional(),
|
|
34
|
-
shipping_fee: z.
|
|
35
|
-
variant_code: z.union([z.string(), z.
|
|
34
|
+
shipping_fee: z.record(z.string(), z.unknown()).describe("Shipping fee details").nullable().optional(),
|
|
35
|
+
variant_code: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),
|
|
36
36
|
customer_name: z.string().describe("Full customer name").nullable().optional(),
|
|
37
|
-
delivery_note: z.
|
|
37
|
+
delivery_note: z.record(z.string(), z.unknown()).describe("Delivery note for the order").nullable().optional(),
|
|
38
38
|
quantity_sold: z.number().int().describe("Quantity of product sold in this order").nullable().optional(),
|
|
39
|
-
variant_price: z.union([z.number().int(), z.
|
|
40
|
-
shipping_method: z.
|
|
39
|
+
variant_price: z.union([z.number().int(), z.record(z.string(), z.unknown())]).nullable().optional(),
|
|
40
|
+
shipping_method: z.record(z.string(), z.unknown()).describe("Shipping method details").nullable().optional(),
|
|
41
41
|
storefront_slug: z.string().describe("Storefront slug where the product was sold").nullable().optional(),
|
|
42
|
-
shipping_address: z.
|
|
43
|
-
}).describe("Individual order details from a storefront.");
|
|
42
|
+
shipping_address: z.record(z.string(), z.unknown()).describe("Shipping address details").nullable().optional()
|
|
43
|
+
}).passthrough().describe("Individual order details from a storefront.");
|
|
44
44
|
const PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema = z.object({
|
|
45
45
|
page: z.number().int().describe("Current page number").nullable().optional(),
|
|
46
46
|
total: z.number().int().describe("Total number of orders in the storefront").nullable().optional(),
|
|
@@ -49,7 +49,7 @@ const PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema = z.object({
|
|
|
49
49
|
skipped: z.number().int().describe("Number of skipped records").nullable().optional(),
|
|
50
50
|
pageCount: z.number().int().describe("Total number of pages").nullable().optional(),
|
|
51
51
|
quantity_sold: z.number().int().describe("Total quantity of products sold across all orders").nullable().optional()
|
|
52
|
-
}).describe("Metadata about the storefront orders.");
|
|
52
|
+
}).passthrough().describe("Metadata about the storefront orders.");
|
|
53
53
|
const paystackFetchStorefrontOrders = action("PAYSTACK_FETCH_STOREFRONT_ORDERS", {
|
|
54
54
|
slug: "paystack-fetch-storefront-orders",
|
|
55
55
|
name: "Fetch Storefront Orders",
|
|
@@ -60,7 +60,7 @@ const paystackFetchStorefrontOrders = action("PAYSTACK_FETCH_STOREFRONT_ORDERS",
|
|
|
60
60
|
meta: PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema.nullable().optional(),
|
|
61
61
|
status: z.boolean().describe("Status of the API request").nullable(),
|
|
62
62
|
message: z.string().describe("Response message from the API").nullable()
|
|
63
|
-
}).describe("Response containing storefront orders.")
|
|
63
|
+
}).passthrough().describe("Response containing storefront orders.")
|
|
64
64
|
});
|
|
65
65
|
//#endregion
|
|
66
66
|
export { paystackFetchStorefrontOrders };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-storefront-orders.mjs","names":[],"sources":["../../src/actions/fetch-storefront-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchStorefrontOrdersInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the Storefront\"),\n page: z.number().int().describe(\"The page number to retrieve (for pagination)\").optional(),\n perPage: z.number().int().describe(\"The number of records to return per page\").optional(),\n}).describe(\"Request to fetch orders from a storefront.\");\nconst PaystackFetchStorefrontOrders_StorefrontOrderItemSchema = z.object({\n email: z.string().describe(\"Customer's email address\").nullable(),\n phone: z.string().describe(\"Customer's phone number\").nullable().optional(),\n price: z.number().int().describe(\"Product price in smallest currency unit (kobo, pesewas, or cents)\").nullable().optional(),\n amount: z.number().int().describe(\"Total order amount in smallest currency unit\").nullable(),\n status: z.string().describe(\"Order status (e.g., pending, completed, refunded)\").nullable(),\n paid_at: z.string().describe(\"ISO 8601 timestamp when payment was made\").nullable().optional(),\n currency: z.string().describe(\"Currency code (e.g., NGN, USD, GHS)\").nullable(),\n customer: z.number().int().describe(\"Customer ID who placed the order\").nullable(),\n order_id: z.string().describe(\"Unique order ID\").nullable(),\n quantity: z.number().int().describe(\"Total quantity of the product\").nullable().optional(),\n refunded: z.boolean().describe(\"Whether the order has been refunded\").nullable(),\n shipping: z.
|
|
1
|
+
{"version":3,"file":"fetch-storefront-orders.mjs","names":[],"sources":["../../src/actions/fetch-storefront-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchStorefrontOrdersInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the Storefront\"),\n page: z.number().int().describe(\"The page number to retrieve (for pagination)\").optional(),\n perPage: z.number().int().describe(\"The number of records to return per page\").optional(),\n}).describe(\"Request to fetch orders from a storefront.\");\nconst PaystackFetchStorefrontOrders_StorefrontOrderItemSchema = z.object({\n email: z.string().describe(\"Customer's email address\").nullable(),\n phone: z.string().describe(\"Customer's phone number\").nullable().optional(),\n price: z.number().int().describe(\"Product price in smallest currency unit (kobo, pesewas, or cents)\").nullable().optional(),\n amount: z.number().int().describe(\"Total order amount in smallest currency unit\").nullable(),\n status: z.string().describe(\"Order status (e.g., pending, completed, refunded)\").nullable(),\n paid_at: z.string().describe(\"ISO 8601 timestamp when payment was made\").nullable().optional(),\n currency: z.string().describe(\"Currency code (e.g., NGN, USD, GHS)\").nullable(),\n customer: z.number().int().describe(\"Customer ID who placed the order\").nullable(),\n order_id: z.string().describe(\"Unique order ID\").nullable(),\n quantity: z.number().int().describe(\"Total quantity of the product\").nullable().optional(),\n refunded: z.boolean().describe(\"Whether the order has been refunded\").nullable(),\n shipping: z.record(z.string(), z.unknown()).describe(\"Shipping details\").nullable().optional(),\n is_viewed: z.number().int().describe(\"View status of the order (0 or 1)\").nullable().optional(),\n last_name: z.string().describe(\"Customer's last name\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the order was created\").nullable(),\n first_name: z.string().describe(\"Customer's first name\").nullable().optional(),\n is_shipped: z.boolean().describe(\"Whether the order has been shipped\").nullable().optional(),\n order_code: z.string().describe(\"Unique order code\").nullable(),\n product_id: z.number().int().describe(\"Product ID\").nullable().optional(),\n variant_id: z.union([z.number().int(), z.record(z.string(), z.unknown())]).nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid in smallest currency unit\").nullable().optional(),\n transaction: z.number().int().describe(\"Transaction ID associated with the order\").nullable().optional(),\n product_code: z.string().describe(\"Unique product code\").nullable().optional(),\n product_name: z.string().describe(\"Name of the product\").nullable().optional(),\n shipping_fee: z.record(z.string(), z.unknown()).describe(\"Shipping fee details\").nullable().optional(),\n variant_code: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n customer_name: z.string().describe(\"Full customer name\").nullable().optional(),\n delivery_note: z.record(z.string(), z.unknown()).describe(\"Delivery note for the order\").nullable().optional(),\n quantity_sold: z.number().int().describe(\"Quantity of product sold in this order\").nullable().optional(),\n variant_price: z.union([z.number().int(), z.record(z.string(), z.unknown())]).nullable().optional(),\n shipping_method: z.record(z.string(), z.unknown()).describe(\"Shipping method details\").nullable().optional(),\n storefront_slug: z.string().describe(\"Storefront slug where the product was sold\").nullable().optional(),\n shipping_address: z.record(z.string(), z.unknown()).describe(\"Shipping address details\").nullable().optional(),\n}).passthrough().describe(\"Individual order details from a storefront.\");\nconst PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema = z.object({\n page: z.number().int().describe(\"Current page number\").nullable().optional(),\n total: z.number().int().describe(\"Total number of orders in the storefront\").nullable().optional(),\n perPage: z.number().int().describe(\"Number of orders per page\").nullable().optional(),\n revenue: z.number().int().describe(\"Total revenue generated from the storefront in smallest currency unit\").nullable().optional(),\n skipped: z.number().int().describe(\"Number of skipped records\").nullable().optional(),\n pageCount: z.number().int().describe(\"Total number of pages\").nullable().optional(),\n quantity_sold: z.number().int().describe(\"Total quantity of products sold across all orders\").nullable().optional(),\n}).passthrough().describe(\"Metadata about the storefront orders.\");\nexport const PaystackFetchStorefrontOrdersOutput = z.object({\n data: z.array(PaystackFetchStorefrontOrders_StorefrontOrderItemSchema).describe(\"List of orders in the storefront\"),\n meta: PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema.nullable().optional(),\n status: z.boolean().describe(\"Status of the API request\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).passthrough().describe(\"Response containing storefront orders.\");\n\nexport const paystackFetchStorefrontOrders = action(\"PAYSTACK_FETCH_STOREFRONT_ORDERS\", {\n slug: \"paystack-fetch-storefront-orders\",\n name: \"Fetch Storefront Orders\",\n description: \"Tool to fetch all orders in a Paystack storefront. Use when you need to retrieve order information for a specific storefront using its ID.\",\n input: PaystackFetchStorefrontOrdersInput,\n output: PaystackFetchStorefrontOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACzF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,0DAA0D,EAAE,OAAO;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,S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uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAQjE,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZiD,EAAE,OAAO;EAC1D,MAAM,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,kCAAkC;EAClH,MAAM,wDAAwD,SAAS,CAAC,CAAC,SAAS;EAClF,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
|
|
@@ -8,24 +8,24 @@ const PaystackFetchStorefront_FetchStorefrontDataSchema = zod.z.object({
|
|
|
8
8
|
slug: zod.z.string().describe("Unique slug to access the storefront").nullable(),
|
|
9
9
|
domain: zod.z.string().describe("Domain where the storefront is accessible").nullable(),
|
|
10
10
|
status: zod.z.string().describe("Status of the storefront").nullable(),
|
|
11
|
-
contacts: zod.z.array(zod.z.
|
|
11
|
+
contacts: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Contact information").nullable().optional(),
|
|
12
12
|
currency: zod.z.string().describe("Currency for product prices").nullable(),
|
|
13
|
-
metadata: zod.z.
|
|
14
|
-
products: zod.z.array(zod.z.
|
|
13
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata for the storefront").nullable().optional(),
|
|
14
|
+
products: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Products in the storefront").nullable().optional(),
|
|
15
15
|
createdAt: zod.z.string().describe("Timestamp when the storefront was created").nullable(),
|
|
16
16
|
shippable: zod.z.boolean().describe("Whether the storefront supports shipping").nullable(),
|
|
17
17
|
updatedAt: zod.z.string().describe("Timestamp when the storefront was last updated").nullable(),
|
|
18
18
|
description: zod.z.string().describe("Description of the storefront").nullable().optional(),
|
|
19
19
|
integration: zod.z.number().int().describe("Integration ID").nullable(),
|
|
20
20
|
redirect_url: zod.z.string().describe("URL to redirect after successful purchase").nullable().optional(),
|
|
21
|
-
social_media: zod.z.array(zod.z.
|
|
21
|
+
social_media: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Social media links").nullable().optional(),
|
|
22
22
|
delivery_note: zod.z.string().describe("Delivery note for the storefront").nullable(),
|
|
23
|
-
shipping_fees: zod.z.array(zod.z.
|
|
23
|
+
shipping_fees: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Shipping fee configurations").nullable().optional(),
|
|
24
24
|
success_message: zod.z.string().describe("Success message after purchase").nullable().optional(),
|
|
25
25
|
welcome_message: zod.z.string().describe("Welcome message for the storefront").nullable().optional(),
|
|
26
26
|
background_color: zod.z.string().describe("Background color of the storefront").nullable(),
|
|
27
27
|
digital_product_expiry: zod.z.number().int().describe("Expiry time for digital products in seconds").nullable().optional()
|
|
28
|
-
}).describe("Storefront details returned by the API.");
|
|
28
|
+
}).passthrough().describe("Storefront details returned by the API.");
|
|
29
29
|
const PaystackFetchStorefront_FetchStorefrontMetaSchema = zod.z.object({
|
|
30
30
|
page: zod.z.number().int().describe("Current page number").nullable(),
|
|
31
31
|
total: zod.z.number().int().describe("Total items").nullable(),
|
|
@@ -33,13 +33,13 @@ const PaystackFetchStorefront_FetchStorefrontMetaSchema = zod.z.object({
|
|
|
33
33
|
skipped: zod.z.number().int().describe("Number of items skipped").nullable(),
|
|
34
34
|
pageCount: zod.z.number().int().describe("Total number of pages").nullable(),
|
|
35
35
|
product_count: zod.z.number().int().describe("Number of products in the storefront").nullable()
|
|
36
|
-
}).describe("Metadata for the storefront fetch response.");
|
|
36
|
+
}).passthrough().describe("Metadata for the storefront fetch response.");
|
|
37
37
|
const PaystackFetchStorefrontOutput = zod.z.object({
|
|
38
38
|
data: PaystackFetchStorefront_FetchStorefrontDataSchema.nullable(),
|
|
39
39
|
meta: PaystackFetchStorefront_FetchStorefrontMetaSchema.nullable(),
|
|
40
40
|
status: zod.z.boolean().describe("Indicates if the request was successful").nullable(),
|
|
41
41
|
message: zod.z.string().describe("Response message from the API").nullable()
|
|
42
|
-
}).describe("Response containing storefront details.");
|
|
42
|
+
}).passthrough().describe("Response containing storefront details.");
|
|
43
43
|
const paystackFetchStorefront = require_action.action("PAYSTACK_FETCH_STOREFRONT", {
|
|
44
44
|
slug: "paystack-fetch-storefront",
|
|
45
45
|
name: "Fetch Storefront",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-storefront.cjs","names":["z","action"],"sources":["../../src/actions/fetch-storefront.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchStorefrontInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the Storefront to fetch\"),\n}).describe(\"Request to fetch storefront details by ID.\");\nconst PaystackFetchStorefront_FetchStorefrontDataSchema = z.object({\n id: z.string().describe(\"Unique storefront identifier\").nullable(),\n name: z.string().describe(\"Name of the storefront\").nullable(),\n slug: z.string().describe(\"Unique slug to access the storefront\").nullable(),\n domain: z.string().describe(\"Domain where the storefront is accessible\").nullable(),\n status: z.string().describe(\"Status of the storefront\").nullable(),\n contacts: z.array(z.
|
|
1
|
+
{"version":3,"file":"fetch-storefront.cjs","names":["z","action"],"sources":["../../src/actions/fetch-storefront.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchStorefrontInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the Storefront to fetch\"),\n}).describe(\"Request to fetch storefront details by ID.\");\nconst PaystackFetchStorefront_FetchStorefrontDataSchema = z.object({\n id: z.string().describe(\"Unique storefront identifier\").nullable(),\n name: z.string().describe(\"Name of the storefront\").nullable(),\n slug: z.string().describe(\"Unique slug to access the storefront\").nullable(),\n domain: z.string().describe(\"Domain where the storefront is accessible\").nullable(),\n status: z.string().describe(\"Status of the storefront\").nullable(),\n contacts: z.array(z.record(z.string(), z.unknown())).describe(\"Contact information\").nullable().optional(),\n currency: z.string().describe(\"Currency for product prices\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the storefront\").nullable().optional(),\n products: z.array(z.record(z.string(), z.unknown())).describe(\"Products in the storefront\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when the storefront was created\").nullable(),\n shippable: z.boolean().describe(\"Whether the storefront supports shipping\").nullable(),\n updatedAt: z.string().describe(\"Timestamp when the storefront was last updated\").nullable(),\n description: z.string().describe(\"Description of the storefront\").nullable().optional(),\n integration: z.number().int().describe(\"Integration ID\").nullable(),\n redirect_url: z.string().describe(\"URL to redirect after successful purchase\").nullable().optional(),\n social_media: z.array(z.record(z.string(), z.unknown())).describe(\"Social media links\").nullable().optional(),\n delivery_note: z.string().describe(\"Delivery note for the storefront\").nullable(),\n shipping_fees: z.array(z.record(z.string(), z.unknown())).describe(\"Shipping fee configurations\").nullable().optional(),\n success_message: z.string().describe(\"Success message after purchase\").nullable().optional(),\n welcome_message: z.string().describe(\"Welcome message for the storefront\").nullable().optional(),\n background_color: z.string().describe(\"Background color of the storefront\").nullable(),\n digital_product_expiry: z.number().int().describe(\"Expiry time for digital products in seconds\").nullable().optional(),\n}).passthrough().describe(\"Storefront details returned by the API.\");\nconst PaystackFetchStorefront_FetchStorefrontMetaSchema = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n total: z.number().int().describe(\"Total items\").nullable(),\n perPage: z.number().int().describe(\"Items per page\").nullable(),\n skipped: z.number().int().describe(\"Number of items skipped\").nullable(),\n pageCount: z.number().int().describe(\"Total number of pages\").nullable(),\n product_count: z.number().int().describe(\"Number of products in the storefront\").nullable(),\n}).passthrough().describe(\"Metadata for the storefront fetch response.\");\nexport const PaystackFetchStorefrontOutput = z.object({\n data: PaystackFetchStorefront_FetchStorefrontDataSchema.nullable(),\n meta: PaystackFetchStorefront_FetchStorefrontMetaSchema.nullable(),\n status: z.boolean().describe(\"Indicates if the request was successful\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).passthrough().describe(\"Response containing storefront details.\");\n\nexport const paystackFetchStorefront = action(\"PAYSTACK_FETCH_STOREFRONT\", {\n slug: \"paystack-fetch-storefront\",\n name: \"Fetch Storefront\",\n description: \"Tool to get the details of a previously created Storefront. Use when you need to retrieve information about a specific storefront including its products, contacts, and configuration.\",\n input: PaystackFetchStorefrontInput,\n output: PaystackFetchStorefrontOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,EAClF,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO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