@keystrokehq/shippo 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-address.cjs +12 -12
- package/dist/actions/create-address.cjs.map +1 -1
- package/dist/actions/create-address.d.cts +67 -3
- package/dist/actions/create-address.d.cts.map +1 -1
- package/dist/actions/create-address.d.mts +67 -3
- package/dist/actions/create-address.d.mts.map +1 -1
- package/dist/actions/create-address.mjs +12 -12
- package/dist/actions/create-address.mjs.map +1 -1
- package/dist/actions/create-batch.cjs +7 -7
- package/dist/actions/create-batch.cjs.map +1 -1
- package/dist/actions/create-batch.d.cts +106 -3
- package/dist/actions/create-batch.d.cts.map +1 -1
- package/dist/actions/create-batch.d.mts +106 -3
- package/dist/actions/create-batch.d.mts.map +1 -1
- package/dist/actions/create-batch.mjs +7 -7
- package/dist/actions/create-batch.mjs.map +1 -1
- package/dist/actions/create-carrier-account.cjs +2 -2
- package/dist/actions/create-carrier-account.cjs.map +1 -1
- package/dist/actions/create-carrier-account.d.cts +96 -3
- package/dist/actions/create-carrier-account.d.cts.map +1 -1
- package/dist/actions/create-carrier-account.d.mts +96 -3
- package/dist/actions/create-carrier-account.d.mts.map +1 -1
- package/dist/actions/create-carrier-account.mjs +2 -2
- package/dist/actions/create-carrier-account.mjs.map +1 -1
- package/dist/actions/create-customs-item.cjs.map +1 -1
- package/dist/actions/create-customs-item.d.cts +47 -3
- package/dist/actions/create-customs-item.d.cts.map +1 -1
- package/dist/actions/create-customs-item.d.mts +47 -3
- package/dist/actions/create-customs-item.d.mts.map +1 -1
- package/dist/actions/create-customs-item.mjs.map +1 -1
- package/dist/actions/create-live-rate.cjs.map +1 -1
- package/dist/actions/create-live-rate.d.cts +107 -3
- package/dist/actions/create-live-rate.d.cts.map +1 -1
- package/dist/actions/create-live-rate.d.mts +107 -3
- package/dist/actions/create-live-rate.d.mts.map +1 -1
- package/dist/actions/create-live-rate.mjs.map +1 -1
- package/dist/actions/create-manifest.cjs +8 -8
- package/dist/actions/create-manifest.cjs.map +1 -1
- package/dist/actions/create-manifest.d.cts +31 -3
- package/dist/actions/create-manifest.d.cts.map +1 -1
- package/dist/actions/create-manifest.d.mts +31 -3
- package/dist/actions/create-manifest.d.mts.map +1 -1
- package/dist/actions/create-manifest.mjs +8 -8
- package/dist/actions/create-manifest.mjs.map +1 -1
- package/dist/actions/create-merchant-address.cjs.map +1 -1
- package/dist/actions/create-merchant-address.d.cts +62 -3
- package/dist/actions/create-merchant-address.d.cts.map +1 -1
- package/dist/actions/create-merchant-address.d.mts +62 -3
- package/dist/actions/create-merchant-address.d.mts.map +1 -1
- package/dist/actions/create-merchant-address.mjs.map +1 -1
- package/dist/actions/create-merchant-batch.cjs +10 -10
- package/dist/actions/create-merchant-batch.cjs.map +1 -1
- package/dist/actions/create-merchant-batch.d.cts +83 -3
- package/dist/actions/create-merchant-batch.d.cts.map +1 -1
- package/dist/actions/create-merchant-batch.d.mts +83 -3
- package/dist/actions/create-merchant-batch.d.mts.map +1 -1
- package/dist/actions/create-merchant-batch.mjs +10 -10
- package/dist/actions/create-merchant-batch.mjs.map +1 -1
- package/dist/actions/create-merchant-carrier-account.cjs.map +1 -1
- package/dist/actions/create-merchant-carrier-account.d.cts +100 -3
- package/dist/actions/create-merchant-carrier-account.d.cts.map +1 -1
- package/dist/actions/create-merchant-carrier-account.d.mts +100 -3
- package/dist/actions/create-merchant-carrier-account.d.mts.map +1 -1
- package/dist/actions/create-merchant-carrier-account.mjs.map +1 -1
- package/dist/actions/create-merchant-customs-declaration.cjs.map +1 -1
- package/dist/actions/create-merchant-customs-declaration.d.cts +121 -3
- package/dist/actions/create-merchant-customs-declaration.d.cts.map +1 -1
- package/dist/actions/create-merchant-customs-declaration.d.mts +121 -3
- package/dist/actions/create-merchant-customs-declaration.d.mts.map +1 -1
- package/dist/actions/create-merchant-customs-declaration.mjs.map +1 -1
- package/dist/actions/create-merchant-customs-item.cjs.map +1 -1
- package/dist/actions/create-merchant-customs-item.d.cts +62 -3
- package/dist/actions/create-merchant-customs-item.d.cts.map +1 -1
- package/dist/actions/create-merchant-customs-item.d.mts +62 -3
- package/dist/actions/create-merchant-customs-item.d.mts.map +1 -1
- package/dist/actions/create-merchant-customs-item.mjs.map +1 -1
- package/dist/actions/create-merchant-order.cjs +1 -1
- package/dist/actions/create-merchant-order.cjs.map +1 -1
- package/dist/actions/create-merchant-order.d.cts +163 -3
- package/dist/actions/create-merchant-order.d.cts.map +1 -1
- package/dist/actions/create-merchant-order.d.mts +163 -3
- package/dist/actions/create-merchant-order.d.mts.map +1 -1
- package/dist/actions/create-merchant-order.mjs +1 -1
- package/dist/actions/create-merchant-order.mjs.map +1 -1
- package/dist/actions/create-merchant-parcel.cjs.map +1 -1
- package/dist/actions/create-merchant-parcel.d.cts +165 -3
- package/dist/actions/create-merchant-parcel.d.cts.map +1 -1
- package/dist/actions/create-merchant-parcel.d.mts +165 -3
- package/dist/actions/create-merchant-parcel.d.mts.map +1 -1
- package/dist/actions/create-merchant-parcel.mjs.map +1 -1
- package/dist/actions/create-merchant-refund.cjs.map +1 -1
- package/dist/actions/create-merchant-refund.d.cts +26 -3
- package/dist/actions/create-merchant-refund.d.cts.map +1 -1
- package/dist/actions/create-merchant-refund.d.mts +26 -3
- package/dist/actions/create-merchant-refund.d.mts.map +1 -1
- package/dist/actions/create-merchant-refund.mjs.map +1 -1
- package/dist/actions/create-merchant-shipment.cjs.map +1 -1
- package/dist/actions/create-merchant-shipment.d.cts +282 -3
- package/dist/actions/create-merchant-shipment.d.cts.map +1 -1
- package/dist/actions/create-merchant-shipment.d.mts +282 -3
- package/dist/actions/create-merchant-shipment.d.mts.map +1 -1
- package/dist/actions/create-merchant-shipment.mjs.map +1 -1
- package/dist/actions/create-merchant-transaction.cjs.map +1 -1
- package/dist/actions/create-merchant-transaction.d.cts +59 -3
- package/dist/actions/create-merchant-transaction.d.cts.map +1 -1
- package/dist/actions/create-merchant-transaction.d.mts +59 -3
- package/dist/actions/create-merchant-transaction.d.mts.map +1 -1
- package/dist/actions/create-merchant-transaction.mjs.map +1 -1
- package/dist/actions/create-order.cjs +2 -2
- package/dist/actions/create-order.cjs.map +1 -1
- package/dist/actions/create-order.d.cts +182 -3
- package/dist/actions/create-order.d.cts.map +1 -1
- package/dist/actions/create-order.d.mts +182 -3
- package/dist/actions/create-order.d.mts.map +1 -1
- package/dist/actions/create-order.mjs +2 -2
- package/dist/actions/create-order.mjs.map +1 -1
- package/dist/actions/create-parcel.cjs +11 -11
- package/dist/actions/create-parcel.cjs.map +1 -1
- package/dist/actions/create-parcel.d.cts +89 -3
- package/dist/actions/create-parcel.d.cts.map +1 -1
- package/dist/actions/create-parcel.d.mts +89 -3
- package/dist/actions/create-parcel.d.mts.map +1 -1
- package/dist/actions/create-parcel.mjs +11 -11
- package/dist/actions/create-parcel.mjs.map +1 -1
- package/dist/actions/create-refund.cjs.map +1 -1
- package/dist/actions/create-refund.d.cts +24 -3
- package/dist/actions/create-refund.d.cts.map +1 -1
- package/dist/actions/create-refund.d.mts +24 -3
- package/dist/actions/create-refund.d.mts.map +1 -1
- package/dist/actions/create-refund.mjs.map +1 -1
- package/dist/actions/create-service-group.cjs +7 -7
- package/dist/actions/create-service-group.cjs.map +1 -1
- package/dist/actions/create-service-group.d.cts +50 -3
- package/dist/actions/create-service-group.d.cts.map +1 -1
- package/dist/actions/create-service-group.d.mts +50 -3
- package/dist/actions/create-service-group.d.mts.map +1 -1
- package/dist/actions/create-service-group.mjs +7 -7
- package/dist/actions/create-service-group.mjs.map +1 -1
- package/dist/actions/create-shipment.cjs +6 -6
- package/dist/actions/create-shipment.cjs.map +1 -1
- package/dist/actions/create-shipment.d.cts +223 -3
- package/dist/actions/create-shipment.d.cts.map +1 -1
- package/dist/actions/create-shipment.d.mts +223 -3
- package/dist/actions/create-shipment.d.mts.map +1 -1
- package/dist/actions/create-shipment.mjs +6 -6
- package/dist/actions/create-shipment.mjs.map +1 -1
- package/dist/actions/create-track.cjs +2 -2
- package/dist/actions/create-track.cjs.map +1 -1
- package/dist/actions/create-track.d.cts +66 -3
- package/dist/actions/create-track.d.cts.map +1 -1
- package/dist/actions/create-track.d.mts +66 -3
- package/dist/actions/create-track.d.mts.map +1 -1
- package/dist/actions/create-track.mjs +2 -2
- package/dist/actions/create-track.mjs.map +1 -1
- package/dist/actions/create-transaction.cjs.map +1 -1
- package/dist/actions/create-transaction.d.cts +58 -3
- package/dist/actions/create-transaction.d.cts.map +1 -1
- package/dist/actions/create-transaction.d.mts +58 -3
- package/dist/actions/create-transaction.d.mts.map +1 -1
- package/dist/actions/create-transaction.mjs.map +1 -1
- package/dist/actions/create-user-parcel-template.cjs.map +1 -1
- package/dist/actions/create-user-parcel-template.d.cts +35 -3
- package/dist/actions/create-user-parcel-template.d.cts.map +1 -1
- package/dist/actions/create-user-parcel-template.d.mts +35 -3
- package/dist/actions/create-user-parcel-template.d.mts.map +1 -1
- package/dist/actions/create-user-parcel-template.mjs.map +1 -1
- package/dist/actions/create-webhook.cjs +7 -7
- package/dist/actions/create-webhook.cjs.map +1 -1
- package/dist/actions/create-webhook.d.cts +27 -3
- package/dist/actions/create-webhook.d.cts.map +1 -1
- package/dist/actions/create-webhook.d.mts +27 -3
- package/dist/actions/create-webhook.d.mts.map +1 -1
- package/dist/actions/create-webhook.mjs +7 -7
- package/dist/actions/create-webhook.mjs.map +1 -1
- package/dist/actions/delete-default-parcel-template.cjs +1 -1
- package/dist/actions/delete-default-parcel-template.cjs.map +1 -1
- package/dist/actions/delete-default-parcel-template.d.cts +9 -3
- package/dist/actions/delete-default-parcel-template.d.cts.map +1 -1
- package/dist/actions/delete-default-parcel-template.d.mts +9 -3
- package/dist/actions/delete-default-parcel-template.d.mts.map +1 -1
- package/dist/actions/delete-default-parcel-template.mjs +1 -1
- package/dist/actions/delete-default-parcel-template.mjs.map +1 -1
- package/dist/actions/delete-user-parcel-template.cjs +1 -1
- package/dist/actions/delete-user-parcel-template.cjs.map +1 -1
- package/dist/actions/delete-user-parcel-template.d.cts +11 -3
- package/dist/actions/delete-user-parcel-template.d.cts.map +1 -1
- package/dist/actions/delete-user-parcel-template.d.mts +11 -3
- package/dist/actions/delete-user-parcel-template.d.mts.map +1 -1
- package/dist/actions/delete-user-parcel-template.mjs +1 -1
- package/dist/actions/delete-user-parcel-template.mjs.map +1 -1
- package/dist/actions/delete-webhook.cjs +1 -1
- package/dist/actions/delete-webhook.cjs.map +1 -1
- package/dist/actions/delete-webhook.d.cts +11 -3
- package/dist/actions/delete-webhook.d.cts.map +1 -1
- package/dist/actions/delete-webhook.d.mts +11 -3
- package/dist/actions/delete-webhook.d.mts.map +1 -1
- package/dist/actions/delete-webhook.mjs +1 -1
- package/dist/actions/delete-webhook.mjs.map +1 -1
- package/dist/actions/get-address.cjs +2 -2
- package/dist/actions/get-address.cjs.map +1 -1
- package/dist/actions/get-address.d.cts +39 -3
- package/dist/actions/get-address.d.cts.map +1 -1
- package/dist/actions/get-address.d.mts +39 -3
- package/dist/actions/get-address.d.mts.map +1 -1
- package/dist/actions/get-address.mjs +2 -2
- package/dist/actions/get-address.mjs.map +1 -1
- package/dist/actions/get-carrier-account.cjs +2 -2
- package/dist/actions/get-carrier-account.cjs.map +1 -1
- package/dist/actions/get-carrier-account.d.cts +19 -3
- package/dist/actions/get-carrier-account.d.cts.map +1 -1
- package/dist/actions/get-carrier-account.d.mts +19 -3
- package/dist/actions/get-carrier-account.d.mts.map +1 -1
- package/dist/actions/get-carrier-account.mjs +2 -2
- package/dist/actions/get-carrier-account.mjs.map +1 -1
- package/dist/actions/get-carrier-parcel-template.cjs.map +1 -1
- package/dist/actions/get-carrier-parcel-template.d.cts +25 -3
- package/dist/actions/get-carrier-parcel-template.d.cts.map +1 -1
- package/dist/actions/get-carrier-parcel-template.d.mts +25 -3
- package/dist/actions/get-carrier-parcel-template.d.mts.map +1 -1
- package/dist/actions/get-carrier-parcel-template.mjs.map +1 -1
- package/dist/actions/get-carrier-registration-status.cjs.map +1 -1
- package/dist/actions/get-carrier-registration-status.d.cts +14 -3
- package/dist/actions/get-carrier-registration-status.d.cts.map +1 -1
- package/dist/actions/get-carrier-registration-status.d.mts +14 -3
- package/dist/actions/get-carrier-registration-status.d.mts.map +1 -1
- package/dist/actions/get-carrier-registration-status.mjs.map +1 -1
- package/dist/actions/get-customs-declaration.cjs +4 -4
- package/dist/actions/get-customs-declaration.cjs.map +1 -1
- package/dist/actions/get-customs-declaration.d.cts +48 -3
- package/dist/actions/get-customs-declaration.d.cts.map +1 -1
- package/dist/actions/get-customs-declaration.d.mts +48 -3
- package/dist/actions/get-customs-declaration.d.mts.map +1 -1
- package/dist/actions/get-customs-declaration.mjs +4 -4
- package/dist/actions/get-customs-declaration.mjs.map +1 -1
- package/dist/actions/get-customs-item.cjs +7 -7
- package/dist/actions/get-customs-item.cjs.map +1 -1
- package/dist/actions/get-customs-item.d.cts +29 -3
- package/dist/actions/get-customs-item.d.cts.map +1 -1
- package/dist/actions/get-customs-item.d.mts +29 -3
- package/dist/actions/get-customs-item.d.mts.map +1 -1
- package/dist/actions/get-customs-item.mjs +7 -7
- package/dist/actions/get-customs-item.mjs.map +1 -1
- package/dist/actions/get-default-parcel-template.cjs.map +1 -1
- package/dist/actions/get-default-parcel-template.d.cts +22 -3
- package/dist/actions/get-default-parcel-template.d.cts.map +1 -1
- package/dist/actions/get-default-parcel-template.d.mts +22 -3
- package/dist/actions/get-default-parcel-template.d.mts.map +1 -1
- package/dist/actions/get-default-parcel-template.mjs.map +1 -1
- package/dist/actions/get-merchant-address.cjs +1 -1
- package/dist/actions/get-merchant-address.cjs.map +1 -1
- package/dist/actions/get-merchant-address.d.cts +38 -3
- package/dist/actions/get-merchant-address.d.cts.map +1 -1
- package/dist/actions/get-merchant-address.d.mts +38 -3
- package/dist/actions/get-merchant-address.d.mts.map +1 -1
- package/dist/actions/get-merchant-address.mjs +1 -1
- package/dist/actions/get-merchant-address.mjs.map +1 -1
- package/dist/actions/get-merchant-batch.cjs +10 -10
- package/dist/actions/get-merchant-batch.cjs.map +1 -1
- package/dist/actions/get-merchant-batch.d.cts +50 -3
- package/dist/actions/get-merchant-batch.d.cts.map +1 -1
- package/dist/actions/get-merchant-batch.d.mts +50 -3
- package/dist/actions/get-merchant-batch.d.mts.map +1 -1
- package/dist/actions/get-merchant-batch.mjs +10 -10
- package/dist/actions/get-merchant-batch.mjs.map +1 -1
- package/dist/actions/get-merchant-carrier-account.cjs.map +1 -1
- package/dist/actions/get-merchant-carrier-account.d.cts +44 -3
- package/dist/actions/get-merchant-carrier-account.d.cts.map +1 -1
- package/dist/actions/get-merchant-carrier-account.d.mts +44 -3
- package/dist/actions/get-merchant-carrier-account.d.mts.map +1 -1
- package/dist/actions/get-merchant-carrier-account.mjs.map +1 -1
- package/dist/actions/get-merchant-carrier-registration-status.cjs.map +1 -1
- package/dist/actions/get-merchant-carrier-registration-status.d.cts +21 -3
- package/dist/actions/get-merchant-carrier-registration-status.d.cts.map +1 -1
- package/dist/actions/get-merchant-carrier-registration-status.d.mts +21 -3
- package/dist/actions/get-merchant-carrier-registration-status.d.mts.map +1 -1
- package/dist/actions/get-merchant-carrier-registration-status.mjs.map +1 -1
- package/dist/actions/get-merchant-customs-declaration.cjs.map +1 -1
- package/dist/actions/get-merchant-customs-declaration.d.cts +40 -3
- package/dist/actions/get-merchant-customs-declaration.d.cts.map +1 -1
- package/dist/actions/get-merchant-customs-declaration.d.mts +40 -3
- package/dist/actions/get-merchant-customs-declaration.d.mts.map +1 -1
- package/dist/actions/get-merchant-customs-declaration.mjs.map +1 -1
- package/dist/actions/get-merchant-customs-item.cjs +7 -7
- package/dist/actions/get-merchant-customs-item.cjs.map +1 -1
- package/dist/actions/get-merchant-customs-item.d.cts +31 -3
- package/dist/actions/get-merchant-customs-item.d.cts.map +1 -1
- package/dist/actions/get-merchant-customs-item.d.mts +31 -3
- package/dist/actions/get-merchant-customs-item.d.mts.map +1 -1
- package/dist/actions/get-merchant-customs-item.mjs +7 -7
- package/dist/actions/get-merchant-customs-item.mjs.map +1 -1
- package/dist/actions/get-merchant-manifest.cjs +7 -7
- package/dist/actions/get-merchant-manifest.cjs.map +1 -1
- package/dist/actions/get-merchant-manifest.d.cts +26 -3
- package/dist/actions/get-merchant-manifest.d.cts.map +1 -1
- package/dist/actions/get-merchant-manifest.d.mts +26 -3
- package/dist/actions/get-merchant-manifest.d.mts.map +1 -1
- package/dist/actions/get-merchant-manifest.mjs +7 -7
- package/dist/actions/get-merchant-manifest.mjs.map +1 -1
- package/dist/actions/get-merchant-order.cjs +7 -7
- package/dist/actions/get-merchant-order.cjs.map +1 -1
- package/dist/actions/get-merchant-order.d.cts +75 -3
- package/dist/actions/get-merchant-order.d.cts.map +1 -1
- package/dist/actions/get-merchant-order.d.mts +75 -3
- package/dist/actions/get-merchant-order.d.mts.map +1 -1
- package/dist/actions/get-merchant-order.mjs +7 -7
- package/dist/actions/get-merchant-order.mjs.map +1 -1
- package/dist/actions/get-merchant-parcel.cjs.map +1 -1
- package/dist/actions/get-merchant-parcel.d.cts +39 -3
- package/dist/actions/get-merchant-parcel.d.cts.map +1 -1
- package/dist/actions/get-merchant-parcel.d.mts +39 -3
- package/dist/actions/get-merchant-parcel.d.mts.map +1 -1
- package/dist/actions/get-merchant-parcel.mjs.map +1 -1
- package/dist/actions/get-merchant-rate.cjs +10 -10
- package/dist/actions/get-merchant-rate.cjs.map +1 -1
- package/dist/actions/get-merchant-rate.d.cts +43 -3
- package/dist/actions/get-merchant-rate.d.cts.map +1 -1
- package/dist/actions/get-merchant-rate.d.mts +43 -3
- package/dist/actions/get-merchant-rate.d.mts.map +1 -1
- package/dist/actions/get-merchant-rate.mjs +10 -10
- package/dist/actions/get-merchant-rate.mjs.map +1 -1
- package/dist/actions/get-merchant-refund.cjs.map +1 -1
- package/dist/actions/get-merchant-refund.d.cts +24 -3
- package/dist/actions/get-merchant-refund.d.cts.map +1 -1
- package/dist/actions/get-merchant-refund.d.mts +24 -3
- package/dist/actions/get-merchant-refund.d.mts.map +1 -1
- package/dist/actions/get-merchant-refund.mjs.map +1 -1
- package/dist/actions/get-merchant-shipment.cjs.map +1 -1
- package/dist/actions/get-merchant-shipment.d.cts +140 -3
- package/dist/actions/get-merchant-shipment.d.cts.map +1 -1
- package/dist/actions/get-merchant-shipment.d.mts +140 -3
- package/dist/actions/get-merchant-shipment.d.mts.map +1 -1
- package/dist/actions/get-merchant-shipment.mjs.map +1 -1
- package/dist/actions/get-merchant-track.cjs +14 -14
- package/dist/actions/get-merchant-track.cjs.map +1 -1
- package/dist/actions/get-merchant-track.d.cts +66 -3
- package/dist/actions/get-merchant-track.d.cts.map +1 -1
- package/dist/actions/get-merchant-track.d.mts +66 -3
- package/dist/actions/get-merchant-track.d.mts.map +1 -1
- package/dist/actions/get-merchant-track.mjs +14 -14
- package/dist/actions/get-merchant-track.mjs.map +1 -1
- package/dist/actions/get-merchant-transaction.cjs.map +1 -1
- package/dist/actions/get-merchant-transaction.d.cts +43 -3
- package/dist/actions/get-merchant-transaction.d.cts.map +1 -1
- package/dist/actions/get-merchant-transaction.d.mts +43 -3
- package/dist/actions/get-merchant-transaction.d.mts.map +1 -1
- package/dist/actions/get-merchant-transaction.mjs.map +1 -1
- package/dist/actions/get-merchant.cjs +4 -4
- package/dist/actions/get-merchant.cjs.map +1 -1
- package/dist/actions/get-merchant.d.cts +17 -3
- package/dist/actions/get-merchant.d.cts.map +1 -1
- package/dist/actions/get-merchant.d.mts +17 -3
- package/dist/actions/get-merchant.d.mts.map +1 -1
- package/dist/actions/get-merchant.mjs +4 -4
- package/dist/actions/get-merchant.mjs.map +1 -1
- package/dist/actions/get-order.cjs +1 -1
- package/dist/actions/get-order.cjs.map +1 -1
- package/dist/actions/get-order.d.cts +77 -3
- package/dist/actions/get-order.d.cts.map +1 -1
- package/dist/actions/get-order.d.mts +77 -3
- package/dist/actions/get-order.d.mts.map +1 -1
- package/dist/actions/get-order.mjs +1 -1
- package/dist/actions/get-order.mjs.map +1 -1
- package/dist/actions/get-parcel.cjs.map +1 -1
- package/dist/actions/get-parcel.d.cts +37 -3
- package/dist/actions/get-parcel.d.cts.map +1 -1
- package/dist/actions/get-parcel.d.mts +37 -3
- package/dist/actions/get-parcel.d.mts.map +1 -1
- package/dist/actions/get-parcel.mjs.map +1 -1
- package/dist/actions/get-rate.cjs +10 -10
- package/dist/actions/get-rate.cjs.map +1 -1
- package/dist/actions/get-rate.d.cts +42 -3
- package/dist/actions/get-rate.d.cts.map +1 -1
- package/dist/actions/get-rate.d.mts +42 -3
- package/dist/actions/get-rate.d.mts.map +1 -1
- package/dist/actions/get-rate.mjs +10 -10
- package/dist/actions/get-rate.mjs.map +1 -1
- package/dist/actions/get-refund.cjs.map +1 -1
- package/dist/actions/get-refund.d.cts +22 -3
- package/dist/actions/get-refund.d.cts.map +1 -1
- package/dist/actions/get-refund.d.mts +22 -3
- package/dist/actions/get-refund.d.mts.map +1 -1
- package/dist/actions/get-refund.mjs.map +1 -1
- package/dist/actions/get-shipment.cjs +5 -5
- package/dist/actions/get-shipment.cjs.map +1 -1
- package/dist/actions/get-shipment.d.cts +110 -3
- package/dist/actions/get-shipment.d.cts.map +1 -1
- package/dist/actions/get-shipment.d.mts +110 -3
- package/dist/actions/get-shipment.d.mts.map +1 -1
- package/dist/actions/get-shipment.mjs +5 -5
- package/dist/actions/get-shipment.mjs.map +1 -1
- package/dist/actions/get-shippo-account.cjs +5 -5
- package/dist/actions/get-shippo-account.cjs.map +1 -1
- package/dist/actions/get-shippo-account.d.cts +17 -3
- package/dist/actions/get-shippo-account.d.cts.map +1 -1
- package/dist/actions/get-shippo-account.d.mts +17 -3
- package/dist/actions/get-shippo-account.d.mts.map +1 -1
- package/dist/actions/get-shippo-account.mjs +5 -5
- package/dist/actions/get-shippo-account.mjs.map +1 -1
- package/dist/actions/get-track.cjs +14 -14
- package/dist/actions/get-track.cjs.map +1 -1
- package/dist/actions/get-track.d.cts +64 -3
- package/dist/actions/get-track.d.cts.map +1 -1
- package/dist/actions/get-track.d.mts +64 -3
- package/dist/actions/get-track.d.mts.map +1 -1
- package/dist/actions/get-track.mjs +14 -14
- package/dist/actions/get-track.mjs.map +1 -1
- package/dist/actions/get-transaction.cjs.map +1 -1
- package/dist/actions/get-transaction.d.cts +30 -3
- package/dist/actions/get-transaction.d.cts.map +1 -1
- package/dist/actions/get-transaction.d.mts +30 -3
- package/dist/actions/get-transaction.d.mts.map +1 -1
- package/dist/actions/get-transaction.mjs.map +1 -1
- package/dist/actions/get-user-parcel-template.cjs.map +1 -1
- package/dist/actions/get-user-parcel-template.d.cts +31 -3
- package/dist/actions/get-user-parcel-template.d.cts.map +1 -1
- package/dist/actions/get-user-parcel-template.d.mts +31 -3
- package/dist/actions/get-user-parcel-template.d.mts.map +1 -1
- package/dist/actions/get-user-parcel-template.mjs.map +1 -1
- package/dist/actions/get-webhook.cjs +8 -8
- package/dist/actions/get-webhook.cjs.map +1 -1
- package/dist/actions/get-webhook.d.cts +16 -3
- package/dist/actions/get-webhook.d.cts.map +1 -1
- package/dist/actions/get-webhook.d.mts +16 -3
- package/dist/actions/get-webhook.d.mts.map +1 -1
- package/dist/actions/get-webhook.mjs +8 -8
- package/dist/actions/get-webhook.mjs.map +1 -1
- package/dist/actions/list-addresses.cjs.map +1 -1
- package/dist/actions/list-addresses.d.cts +45 -3
- package/dist/actions/list-addresses.d.cts.map +1 -1
- package/dist/actions/list-addresses.d.mts +45 -3
- package/dist/actions/list-addresses.d.mts.map +1 -1
- package/dist/actions/list-addresses.mjs.map +1 -1
- package/dist/actions/list-carrier-accounts.cjs.map +1 -1
- package/dist/actions/list-carrier-accounts.d.cts +32 -3
- package/dist/actions/list-carrier-accounts.d.cts.map +1 -1
- package/dist/actions/list-carrier-accounts.d.mts +32 -3
- package/dist/actions/list-carrier-accounts.d.mts.map +1 -1
- package/dist/actions/list-carrier-accounts.mjs.map +1 -1
- package/dist/actions/list-carrier-parcel-templates.cjs.map +1 -1
- package/dist/actions/list-carrier-parcel-templates.d.cts +33 -3
- package/dist/actions/list-carrier-parcel-templates.d.cts.map +1 -1
- package/dist/actions/list-carrier-parcel-templates.d.mts +33 -3
- package/dist/actions/list-carrier-parcel-templates.d.mts.map +1 -1
- package/dist/actions/list-carrier-parcel-templates.mjs.map +1 -1
- package/dist/actions/list-customs-declarations.cjs.map +1 -1
- package/dist/actions/list-customs-declarations.d.cts +63 -3
- package/dist/actions/list-customs-declarations.d.cts.map +1 -1
- package/dist/actions/list-customs-declarations.d.mts +63 -3
- package/dist/actions/list-customs-declarations.d.mts.map +1 -1
- package/dist/actions/list-customs-declarations.mjs.map +1 -1
- package/dist/actions/list-customs-items.cjs.map +1 -1
- package/dist/actions/list-customs-items.d.cts +32 -3
- package/dist/actions/list-customs-items.d.cts.map +1 -1
- package/dist/actions/list-customs-items.d.mts +32 -3
- package/dist/actions/list-customs-items.d.mts.map +1 -1
- package/dist/actions/list-customs-items.mjs.map +1 -1
- package/dist/actions/list-manifests.cjs.map +1 -1
- package/dist/actions/list-manifests.d.cts +28 -3
- package/dist/actions/list-manifests.d.cts.map +1 -1
- package/dist/actions/list-manifests.d.mts +28 -3
- package/dist/actions/list-manifests.d.mts.map +1 -1
- package/dist/actions/list-manifests.mjs.map +1 -1
- package/dist/actions/list-merchant-addresses.cjs.map +1 -1
- package/dist/actions/list-merchant-addresses.d.cts +44 -3
- package/dist/actions/list-merchant-addresses.d.cts.map +1 -1
- package/dist/actions/list-merchant-addresses.d.mts +44 -3
- package/dist/actions/list-merchant-addresses.d.mts.map +1 -1
- package/dist/actions/list-merchant-addresses.mjs.map +1 -1
- package/dist/actions/list-merchant-carrier-accounts.cjs.map +1 -1
- package/dist/actions/list-merchant-carrier-accounts.d.cts +27 -3
- package/dist/actions/list-merchant-carrier-accounts.d.cts.map +1 -1
- package/dist/actions/list-merchant-carrier-accounts.d.mts +27 -3
- package/dist/actions/list-merchant-carrier-accounts.d.mts.map +1 -1
- package/dist/actions/list-merchant-carrier-accounts.mjs.map +1 -1
- package/dist/actions/list-merchant-customs-declarations.cjs.map +1 -1
- package/dist/actions/list-merchant-customs-declarations.d.cts +44 -3
- package/dist/actions/list-merchant-customs-declarations.d.cts.map +1 -1
- package/dist/actions/list-merchant-customs-declarations.d.mts +44 -3
- package/dist/actions/list-merchant-customs-declarations.d.mts.map +1 -1
- package/dist/actions/list-merchant-customs-declarations.mjs.map +1 -1
- package/dist/actions/list-merchant-customs-items.cjs.map +1 -1
- package/dist/actions/list-merchant-customs-items.d.cts +35 -3
- package/dist/actions/list-merchant-customs-items.d.cts.map +1 -1
- package/dist/actions/list-merchant-customs-items.d.mts +35 -3
- package/dist/actions/list-merchant-customs-items.d.mts.map +1 -1
- package/dist/actions/list-merchant-customs-items.mjs.map +1 -1
- package/dist/actions/list-merchant-manifests.cjs.map +1 -1
- package/dist/actions/list-merchant-manifests.d.cts +31 -3
- package/dist/actions/list-merchant-manifests.d.cts.map +1 -1
- package/dist/actions/list-merchant-manifests.d.mts +31 -3
- package/dist/actions/list-merchant-manifests.d.mts.map +1 -1
- package/dist/actions/list-merchant-manifests.mjs.map +1 -1
- package/dist/actions/list-merchant-parcels.cjs.map +1 -1
- package/dist/actions/list-merchant-parcels.d.cts +33 -3
- package/dist/actions/list-merchant-parcels.d.cts.map +1 -1
- package/dist/actions/list-merchant-parcels.d.mts +33 -3
- package/dist/actions/list-merchant-parcels.d.mts.map +1 -1
- package/dist/actions/list-merchant-parcels.mjs.map +1 -1
- package/dist/actions/list-merchant-shipment-rates-by-currency.cjs.map +1 -1
- package/dist/actions/list-merchant-shipment-rates-by-currency.d.cts +54 -3
- package/dist/actions/list-merchant-shipment-rates-by-currency.d.cts.map +1 -1
- package/dist/actions/list-merchant-shipment-rates-by-currency.d.mts +54 -3
- package/dist/actions/list-merchant-shipment-rates-by-currency.d.mts.map +1 -1
- package/dist/actions/list-merchant-shipment-rates-by-currency.mjs.map +1 -1
- package/dist/actions/list-merchant-shipments.cjs.map +1 -1
- package/dist/actions/list-merchant-shipments.d.cts +110 -3
- package/dist/actions/list-merchant-shipments.d.cts.map +1 -1
- package/dist/actions/list-merchant-shipments.d.mts +110 -3
- package/dist/actions/list-merchant-shipments.d.mts.map +1 -1
- package/dist/actions/list-merchant-shipments.mjs.map +1 -1
- package/dist/actions/list-merchant-transactions.cjs.map +1 -1
- package/dist/actions/list-merchant-transactions.d.cts +38 -3
- package/dist/actions/list-merchant-transactions.d.cts.map +1 -1
- package/dist/actions/list-merchant-transactions.d.mts +38 -3
- package/dist/actions/list-merchant-transactions.d.mts.map +1 -1
- package/dist/actions/list-merchant-transactions.mjs.map +1 -1
- package/dist/actions/list-merchants.cjs +3 -3
- package/dist/actions/list-merchants.cjs.map +1 -1
- package/dist/actions/list-merchants.d.cts +23 -3
- package/dist/actions/list-merchants.d.cts.map +1 -1
- package/dist/actions/list-merchants.d.mts +23 -3
- package/dist/actions/list-merchants.d.mts.map +1 -1
- package/dist/actions/list-merchants.mjs +3 -3
- package/dist/actions/list-merchants.mjs.map +1 -1
- package/dist/actions/list-orders.cjs.map +1 -1
- package/dist/actions/list-orders.d.cts +81 -3
- package/dist/actions/list-orders.d.cts.map +1 -1
- package/dist/actions/list-orders.d.mts +81 -3
- package/dist/actions/list-orders.d.mts.map +1 -1
- package/dist/actions/list-orders.mjs.map +1 -1
- package/dist/actions/list-refunds.cjs +6 -6
- package/dist/actions/list-refunds.cjs.map +1 -1
- package/dist/actions/list-refunds.d.cts +21 -3
- package/dist/actions/list-refunds.d.cts.map +1 -1
- package/dist/actions/list-refunds.d.mts +21 -3
- package/dist/actions/list-refunds.d.mts.map +1 -1
- package/dist/actions/list-refunds.mjs +6 -6
- package/dist/actions/list-refunds.mjs.map +1 -1
- package/dist/actions/list-service-groups.cjs +4 -4
- package/dist/actions/list-service-groups.cjs.map +1 -1
- package/dist/actions/list-service-groups.d.cts +24 -3
- package/dist/actions/list-service-groups.d.cts.map +1 -1
- package/dist/actions/list-service-groups.d.mts +24 -3
- package/dist/actions/list-service-groups.d.mts.map +1 -1
- package/dist/actions/list-service-groups.mjs +4 -4
- package/dist/actions/list-service-groups.mjs.map +1 -1
- package/dist/actions/list-shipment-rates-by-currency.cjs.map +1 -1
- package/dist/actions/list-shipment-rates-by-currency.d.cts +52 -3
- package/dist/actions/list-shipment-rates-by-currency.d.cts.map +1 -1
- package/dist/actions/list-shipment-rates-by-currency.d.mts +52 -3
- package/dist/actions/list-shipment-rates-by-currency.d.mts.map +1 -1
- package/dist/actions/list-shipment-rates-by-currency.mjs.map +1 -1
- package/dist/actions/list-shipment-rates.cjs.map +1 -1
- package/dist/actions/list-shipment-rates.d.cts +50 -3
- package/dist/actions/list-shipment-rates.d.cts.map +1 -1
- package/dist/actions/list-shipment-rates.d.mts +50 -3
- package/dist/actions/list-shipment-rates.d.mts.map +1 -1
- package/dist/actions/list-shipment-rates.mjs.map +1 -1
- package/dist/actions/list-shipments.cjs.map +1 -1
- package/dist/actions/list-shipments.d.cts +108 -3
- package/dist/actions/list-shipments.d.cts.map +1 -1
- package/dist/actions/list-shipments.d.mts +108 -3
- package/dist/actions/list-shipments.d.mts.map +1 -1
- package/dist/actions/list-shipments.mjs.map +1 -1
- package/dist/actions/list-shippo-accounts.cjs +6 -6
- package/dist/actions/list-shippo-accounts.cjs.map +1 -1
- package/dist/actions/list-shippo-accounts.d.cts +20 -3
- package/dist/actions/list-shippo-accounts.d.cts.map +1 -1
- package/dist/actions/list-shippo-accounts.d.mts +20 -3
- package/dist/actions/list-shippo-accounts.d.mts.map +1 -1
- package/dist/actions/list-shippo-accounts.mjs +6 -6
- package/dist/actions/list-shippo-accounts.mjs.map +1 -1
- package/dist/actions/list-user-parcel-templates.cjs.map +1 -1
- package/dist/actions/list-user-parcel-templates.d.cts +31 -3
- package/dist/actions/list-user-parcel-templates.d.cts.map +1 -1
- package/dist/actions/list-user-parcel-templates.d.mts +31 -3
- package/dist/actions/list-user-parcel-templates.d.mts.map +1 -1
- package/dist/actions/list-user-parcel-templates.mjs.map +1 -1
- package/dist/actions/purchase-merchant-batch.cjs +11 -11
- package/dist/actions/purchase-merchant-batch.cjs.map +1 -1
- package/dist/actions/purchase-merchant-batch.d.cts +39 -3
- package/dist/actions/purchase-merchant-batch.d.cts.map +1 -1
- package/dist/actions/purchase-merchant-batch.d.mts +39 -3
- package/dist/actions/purchase-merchant-batch.d.mts.map +1 -1
- package/dist/actions/purchase-merchant-batch.mjs +11 -11
- package/dist/actions/purchase-merchant-batch.mjs.map +1 -1
- package/dist/actions/remove-shipments-from-batch.cjs +11 -11
- package/dist/actions/remove-shipments-from-batch.cjs.map +1 -1
- package/dist/actions/remove-shipments-from-batch.d.cts +46 -3
- package/dist/actions/remove-shipments-from-batch.d.cts.map +1 -1
- package/dist/actions/remove-shipments-from-batch.d.mts +46 -3
- package/dist/actions/remove-shipments-from-batch.d.mts.map +1 -1
- package/dist/actions/remove-shipments-from-batch.mjs +11 -11
- package/dist/actions/remove-shipments-from-batch.mjs.map +1 -1
- package/dist/actions/update-carrier-account.cjs +2 -2
- package/dist/actions/update-carrier-account.cjs.map +1 -1
- package/dist/actions/update-carrier-account.d.cts +27 -3
- package/dist/actions/update-carrier-account.d.cts.map +1 -1
- package/dist/actions/update-carrier-account.d.mts +27 -3
- package/dist/actions/update-carrier-account.d.mts.map +1 -1
- package/dist/actions/update-carrier-account.mjs +2 -2
- package/dist/actions/update-carrier-account.mjs.map +1 -1
- package/dist/actions/update-default-parcel-template.cjs.map +1 -1
- package/dist/actions/update-default-parcel-template.d.cts +36 -3
- package/dist/actions/update-default-parcel-template.d.cts.map +1 -1
- package/dist/actions/update-default-parcel-template.d.mts +36 -3
- package/dist/actions/update-default-parcel-template.d.mts.map +1 -1
- package/dist/actions/update-default-parcel-template.mjs.map +1 -1
- package/dist/actions/update-merchant-carrier-account.cjs.map +1 -1
- package/dist/actions/update-merchant-carrier-account.d.cts +75 -3
- package/dist/actions/update-merchant-carrier-account.d.cts.map +1 -1
- package/dist/actions/update-merchant-carrier-account.d.mts +75 -3
- package/dist/actions/update-merchant-carrier-account.d.mts.map +1 -1
- package/dist/actions/update-merchant-carrier-account.mjs.map +1 -1
- package/dist/actions/update-merchant.cjs +4 -4
- package/dist/actions/update-merchant.cjs.map +1 -1
- package/dist/actions/update-merchant.d.cts +25 -3
- package/dist/actions/update-merchant.d.cts.map +1 -1
- package/dist/actions/update-merchant.d.mts +25 -3
- package/dist/actions/update-merchant.d.mts.map +1 -1
- package/dist/actions/update-merchant.mjs +4 -4
- package/dist/actions/update-merchant.mjs.map +1 -1
- package/dist/actions/update-service-group.cjs +4 -4
- package/dist/actions/update-service-group.cjs.map +1 -1
- package/dist/actions/update-service-group.d.cts +48 -3
- package/dist/actions/update-service-group.d.cts.map +1 -1
- package/dist/actions/update-service-group.d.mts +48 -3
- package/dist/actions/update-service-group.d.mts.map +1 -1
- package/dist/actions/update-service-group.mjs +4 -4
- package/dist/actions/update-service-group.mjs.map +1 -1
- package/dist/actions/update-user-parcel-template.cjs.map +1 -1
- package/dist/actions/update-user-parcel-template.d.cts +28 -3
- package/dist/actions/update-user-parcel-template.d.cts.map +1 -1
- package/dist/actions/update-user-parcel-template.d.mts +28 -3
- package/dist/actions/update-user-parcel-template.d.mts.map +1 -1
- package/dist/actions/update-user-parcel-template.mjs.map +1 -1
- package/dist/actions/update-webhook.cjs +5 -5
- package/dist/actions/update-webhook.cjs.map +1 -1
- package/dist/actions/update-webhook.d.cts +31 -3
- package/dist/actions/update-webhook.d.cts.map +1 -1
- package/dist/actions/update-webhook.d.mts +31 -3
- package/dist/actions/update-webhook.d.mts.map +1 -1
- package/dist/actions/update-webhook.mjs +5 -5
- package/dist/actions/update-webhook.mjs.map +1 -1
- package/dist/actions/validate-address.cjs +1 -1
- package/dist/actions/validate-address.cjs.map +1 -1
- package/dist/actions/validate-address.d.cts +39 -3
- package/dist/actions/validate-address.d.cts.map +1 -1
- package/dist/actions/validate-address.d.mts +39 -3
- package/dist/actions/validate-address.d.mts.map +1 -1
- package/dist/actions/validate-address.mjs +1 -1
- package/dist/actions/validate-address.mjs.map +1 -1
- package/dist/actions/validate-merchant-address.cjs +1 -1
- package/dist/actions/validate-merchant-address.cjs.map +1 -1
- package/dist/actions/validate-merchant-address.d.cts +38 -3
- package/dist/actions/validate-merchant-address.d.cts.map +1 -1
- package/dist/actions/validate-merchant-address.d.mts +38 -3
- package/dist/actions/validate-merchant-address.d.mts.map +1 -1
- package/dist/actions/validate-merchant-address.mjs +1 -1
- package/dist/actions/validate-merchant-address.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,89 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-merchant-batch.d.ts
|
|
4
|
-
declare const ShippoCreateMerchantBatchInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShippoCreateMerchantBatchInput: z.ZodObject<{
|
|
5
|
+
metadata: z.ZodOptional<z.ZodString>;
|
|
6
|
+
merchant_id: z.ZodString;
|
|
7
|
+
label_filetype: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
PNG: "PNG";
|
|
9
|
+
"PNG_2.3x7.5": "PNG_2.3x7.5";
|
|
10
|
+
PDF: "PDF";
|
|
11
|
+
"PDF_2.3x7.5": "PDF_2.3x7.5";
|
|
12
|
+
PDF_4x6: "PDF_4x6";
|
|
13
|
+
PDF_4x8: "PDF_4x8";
|
|
14
|
+
PDF_A4: "PDF_A4";
|
|
15
|
+
PDF_A6: "PDF_A6";
|
|
16
|
+
ZPLII: "ZPLII";
|
|
17
|
+
}>>;
|
|
18
|
+
batch_shipments: z.ZodArray<z.ZodObject<{
|
|
19
|
+
metadata: z.ZodOptional<z.ZodString>;
|
|
20
|
+
shipment: z.ZodString;
|
|
21
|
+
carrier_account: z.ZodOptional<z.ZodString>;
|
|
22
|
+
servicelevel_token: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
shippo_api_version: z.ZodOptional<z.ZodString>;
|
|
25
|
+
default_carrier_account: z.ZodString;
|
|
26
|
+
default_servicelevel_token: z.ZodString;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
declare const ShippoCreateMerchantBatchOutput: z.ZodObject<{
|
|
29
|
+
test: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
30
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
31
|
+
VALIDATING: "VALIDATING";
|
|
32
|
+
VALID: "VALID";
|
|
33
|
+
INVALID: "INVALID";
|
|
34
|
+
PURCHASING: "PURCHASING";
|
|
35
|
+
PURCHASED: "PURCHASED";
|
|
36
|
+
}>>;
|
|
37
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
label_url: z.ZodArray<z.ZodString>;
|
|
39
|
+
object_id: z.ZodNullable<z.ZodString>;
|
|
40
|
+
object_owner: z.ZodNullable<z.ZodString>;
|
|
41
|
+
label_filetype: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
42
|
+
PNG: "PNG";
|
|
43
|
+
"PNG_2.3x7.5": "PNG_2.3x7.5";
|
|
44
|
+
PDF: "PDF";
|
|
45
|
+
"PDF_2.3x7.5": "PDF_2.3x7.5";
|
|
46
|
+
PDF_4x6: "PDF_4x6";
|
|
47
|
+
PDF_4x8: "PDF_4x8";
|
|
48
|
+
PDF_A4: "PDF_A4";
|
|
49
|
+
PDF_A6: "PDF_A6";
|
|
50
|
+
ZPLII: "ZPLII";
|
|
51
|
+
}>>>;
|
|
52
|
+
object_created: z.ZodNullable<z.ZodString>;
|
|
53
|
+
object_results: z.ZodNullable<z.ZodObject<{
|
|
54
|
+
creation_failed: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
purchase_failed: z.ZodNullable<z.ZodNumber>;
|
|
56
|
+
creation_succeeded: z.ZodNullable<z.ZodNumber>;
|
|
57
|
+
purchase_succeeded: z.ZodNullable<z.ZodNumber>;
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
|
+
object_updated: z.ZodNullable<z.ZodString>;
|
|
60
|
+
batch_shipments: z.ZodNullable<z.ZodObject<{
|
|
61
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
results: z.ZodArray<z.ZodObject<{
|
|
63
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
messages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
65
|
+
object_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
transaction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
default_carrier_account: z.ZodNullable<z.ZodString>;
|
|
71
|
+
default_servicelevel_token: z.ZodNullable<z.ZodString>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
declare const shippoCreateMerchantBatch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
74
|
+
merchant_id: string;
|
|
75
|
+
batch_shipments: {
|
|
76
|
+
shipment: string;
|
|
77
|
+
metadata?: string | undefined;
|
|
78
|
+
carrier_account?: string | undefined;
|
|
79
|
+
servicelevel_token?: string | undefined;
|
|
80
|
+
}[];
|
|
81
|
+
default_carrier_account: string;
|
|
82
|
+
default_servicelevel_token: string;
|
|
83
|
+
metadata?: string | undefined;
|
|
84
|
+
label_filetype?: "PNG" | "PNG_2.3x7.5" | "PDF" | "PDF_2.3x7.5" | "PDF_4x6" | "PDF_4x8" | "PDF_A4" | "PDF_A6" | "ZPLII" | undefined;
|
|
85
|
+
shippo_api_version?: string | undefined;
|
|
86
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
87
|
//#endregion
|
|
8
88
|
export { shippoCreateMerchantBatch };
|
|
9
89
|
//# sourceMappingURL=create-merchant-batch.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-merchant-batch.d.mts","names":[],"sources":["../../src/actions/create-merchant-batch.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"create-merchant-batch.d.mts","names":[],"sources":["../../src/actions/create-merchant-batch.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAiC9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgB/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -44,10 +44,10 @@ const ShippoCreateMerchantBatch_LabelFiletypeSchema = z.enum([
|
|
|
44
44
|
"ZPLII"
|
|
45
45
|
]).describe("Label file format options.");
|
|
46
46
|
const ShippoCreateMerchantBatch_ObjectResultsSchema = z.object({
|
|
47
|
-
creation_failed: z.number().int().describe("Number of shipments that failed to be created in the batch."),
|
|
48
|
-
purchase_failed: z.number().int().describe("Number of shipments that failed to be purchased in the batch."),
|
|
49
|
-
creation_succeeded: z.number().int().describe("Number of shipments successfully created in the batch."),
|
|
50
|
-
purchase_succeeded: z.number().int().describe("Number of shipments successfully purchased in the batch.")
|
|
47
|
+
creation_failed: z.number().int().describe("Number of shipments that failed to be created in the batch.").nullable(),
|
|
48
|
+
purchase_failed: z.number().int().describe("Number of shipments that failed to be purchased in the batch.").nullable(),
|
|
49
|
+
creation_succeeded: z.number().int().describe("Number of shipments successfully created in the batch.").nullable(),
|
|
50
|
+
purchase_succeeded: z.number().int().describe("Number of shipments successfully purchased in the batch.").nullable()
|
|
51
51
|
}).describe("Summary counts of batch processing results.");
|
|
52
52
|
const ShippoCreateMerchantBatch_BatchShipmentResultSchema = z.object({
|
|
53
53
|
status: z.string().describe("Current status of the batch shipment (e.g., 'VALID', 'INVALID', 'TRANSACTION_FAILED').").nullable().optional(),
|
|
@@ -70,15 +70,15 @@ const shippoCreateMerchantBatch = action("SHIPPO_CREATE_MERCHANT_BATCH", {
|
|
|
70
70
|
status: ShippoCreateMerchantBatch_BatchStatusSchema.nullable(),
|
|
71
71
|
metadata: z.string().describe("Custom metadata string attached to the batch.").nullable().optional(),
|
|
72
72
|
label_url: z.array(z.string()).describe("Array of URLs each pointing to a merged file of 100 labels each."),
|
|
73
|
-
object_id: z.string().describe("Unique identifier of the batch object."),
|
|
74
|
-
object_owner: z.string().describe("Username of the user who created the batch object."),
|
|
73
|
+
object_id: z.string().describe("Unique identifier of the batch object.").nullable(),
|
|
74
|
+
object_owner: z.string().describe("Username of the user who created the batch object.").nullable(),
|
|
75
75
|
label_filetype: ShippoCreateMerchantBatch_LabelFiletypeSchema.nullable().optional(),
|
|
76
|
-
object_created: z.string().describe("Date and time of batch creation in ISO 8601 format."),
|
|
76
|
+
object_created: z.string().describe("Date and time of batch creation in ISO 8601 format.").nullable(),
|
|
77
77
|
object_results: ShippoCreateMerchantBatch_ObjectResultsSchema.nullable(),
|
|
78
|
-
object_updated: z.string().describe("Date and time of last update to the batch in ISO 8601 format."),
|
|
78
|
+
object_updated: z.string().describe("Date and time of last update to the batch in ISO 8601 format.").nullable(),
|
|
79
79
|
batch_shipments: ShippoCreateMerchantBatch_BatchShipmentResultsSchema.nullable(),
|
|
80
|
-
default_carrier_account: z.string().describe("ID of the Carrier Account object used as the default for this batch."),
|
|
81
|
-
default_servicelevel_token: z.string().describe("Service level token used as the default for this batch.")
|
|
80
|
+
default_carrier_account: z.string().describe("ID of the Carrier Account object used as the default for this batch.").nullable(),
|
|
81
|
+
default_servicelevel_token: z.string().describe("Service level token used as the default for this batch.").nullable()
|
|
82
82
|
}).describe("Response model for a created merchant batch.")
|
|
83
83
|
});
|
|
84
84
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-merchant-batch.mjs","names":[],"sources":["../../src/actions/create-merchant-batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantBatchInput
|
|
1
|
+
{"version":3,"file":"create-merchant-batch.mjs","names":[],"sources":["../../src/actions/create-merchant-batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantBatchInput = z.object({\n metadata: z.string().describe(\"Custom metadata string to attach to the batch for your reference (max 100 characters).\").optional(),\n merchant_id: z.string().describe(\"Object ID of the merchant for whom to create the batch. This identifies which merchant account the batch belongs to.\"),\n label_filetype: z.enum([\"PNG\", \"PNG_2.3x7.5\", \"PDF\", \"PDF_2.3x7.5\", \"PDF_4x6\", \"PDF_4x8\", \"PDF_A4\", \"PDF_A6\", \"ZPLII\"]).describe(\"Label file format options.\").optional(),\n batch_shipments: z.array(z.object({\n metadata: z.string().describe(\"Custom metadata string for this specific shipment (max 100 characters).\").optional(),\n shipment: z.string().describe(\"Object ID of the Shipment object to include in this batch. Must be a valid shipment ID.\"),\n carrier_account: z.string().describe(\"Override the default carrier account for this specific shipment. If not provided, uses the batch's default_carrier_account.\").optional(),\n servicelevel_token: z.string().describe(\"Override the default service level for this specific shipment. If not provided, uses the batch's default_servicelevel_token.\").optional(),\n}).describe(\"Individual shipment within a batch.\")).describe(\"Array of BatchShipment objects containing shipment IDs to include in this batch. The response maintains the same order as the request array.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use. If not specified, the default API version will be used.\").optional(),\n default_carrier_account: z.string().describe(\"ID of the Carrier Account object to use as the default for all shipments in this batch. The carrier account can be overridden on a per-shipment basis.\"),\n default_servicelevel_token: z.string().describe(\"Token of the service level to use as the default for all shipments in this batch (e.g., 'usps_priority', 'usps_ground_advantage'). Can be overridden per shipment.\"),\n}).describe(\"Request model for creating a merchant batch via Platform API.\");\nconst ShippoCreateMerchantBatch_BatchStatusSchema = z.enum([\"VALIDATING\", \"VALID\", \"INVALID\", \"PURCHASING\", \"PURCHASED\"]).describe(\"Batch processing status values.\");\nconst ShippoCreateMerchantBatch_LabelFiletypeSchema = z.enum([\"PNG\", \"PNG_2.3x7.5\", \"PDF\", \"PDF_2.3x7.5\", \"PDF_4x6\", \"PDF_4x8\", \"PDF_A4\", \"PDF_A6\", \"ZPLII\"]).describe(\"Label file format options.\");\nconst ShippoCreateMerchantBatch_ObjectResultsSchema = z.object({\n creation_failed: z.number().int().describe(\"Number of shipments that failed to be created in the batch.\").nullable(),\n purchase_failed: z.number().int().describe(\"Number of shipments that failed to be purchased in the batch.\").nullable(),\n creation_succeeded: z.number().int().describe(\"Number of shipments successfully created in the batch.\").nullable(),\n purchase_succeeded: z.number().int().describe(\"Number of shipments successfully purchased in the batch.\").nullable(),\n}).describe(\"Summary counts of batch processing results.\");\nconst ShippoCreateMerchantBatch_BatchShipmentResultSchema = z.object({\n status: z.string().describe(\"Current status of the batch shipment (e.g., 'VALID', 'INVALID', 'TRANSACTION_FAILED').\").nullable().optional(),\n messages: z.array(z.object({})).describe(\"List of messages related to the batch shipment processing.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the batch shipment object.\").nullable().optional(),\n transaction: z.string().describe(\"Transaction ID if the label was successfully purchased.\").nullable().optional(),\n}).describe(\"Individual batch shipment result.\");\nconst ShippoCreateMerchantBatch_BatchShipmentResultsSchema = z.object({\n next: z.string().describe(\"URL to fetch the next page of batch shipment results.\").nullable().optional(),\n results: z.array(ShippoCreateMerchantBatch_BatchShipmentResultSchema).describe(\"Array of batch shipment objects with their processing status.\"),\n previous: z.string().describe(\"URL to fetch the previous page of batch shipment results.\").nullable().optional(),\n}).describe(\"Paginated results for batch shipments.\");\nexport const ShippoCreateMerchantBatchOutput = z.object({\n test: z.boolean().describe(\"True if this batch was created in test mode, false for live mode.\").nullable().optional(),\n status: ShippoCreateMerchantBatch_BatchStatusSchema.nullable(),\n metadata: z.string().describe(\"Custom metadata string attached to the batch.\").nullable().optional(),\n label_url: z.array(z.string()).describe(\"Array of URLs each pointing to a merged file of 100 labels each.\"),\n object_id: z.string().describe(\"Unique identifier of the batch object.\").nullable(),\n object_owner: z.string().describe(\"Username of the user who created the batch object.\").nullable(),\n label_filetype: ShippoCreateMerchantBatch_LabelFiletypeSchema.nullable().optional(),\n object_created: z.string().describe(\"Date and time of batch creation in ISO 8601 format.\").nullable(),\n object_results: ShippoCreateMerchantBatch_ObjectResultsSchema.nullable(),\n object_updated: z.string().describe(\"Date and time of last update to the batch in ISO 8601 format.\").nullable(),\n batch_shipments: ShippoCreateMerchantBatch_BatchShipmentResultsSchema.nullable(),\n default_carrier_account: z.string().describe(\"ID of the Carrier Account object used as the default for this batch.\").nullable(),\n default_servicelevel_token: z.string().describe(\"Service level token used as the default for this batch.\").nullable(),\n}).describe(\"Response model for a created merchant batch.\");\n\nexport const shippoCreateMerchantBatch = action(\"SHIPPO_CREATE_MERCHANT_BATCH\", {\n slug: \"shippo-create-merchant-batch\",\n name: \"Create Merchant Batch\",\n description: \"Tool to create a batch for a merchant using the Shippo Platform API. Use when you need to create bulk shipment batches for a specific merchant account. Requires valid merchant ID, carrier account, and shipment IDs.\",\n input: ShippoCreateMerchantBatchInput,\n output: ShippoCreateMerchantBatchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACjI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CACvJ,gBAAgB,EAAE,KAAK;EAAC;EAAO;EAAe;EAAO;EAAe;EAAW;EAAW;EAAU;EAAU;CAAO,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxK,iBAAiB,EAAE,MAAM,EAAE,OAAO;EAClC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EAClH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;EACvH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,C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gB,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAC9G,iBAAiB,qDAAqD,SAAS;EAC/E,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC9H,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-merchant-carrier-account.cjs","names":["z","action"],"sources":["../../src/actions/create-merchant-carrier-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantCarrierAccountInput: z.ZodTypeAny = z.object({\n test: z.boolean().describe(\"Whether this is a test account.\").optional(),\n active: z.boolean().describe(\"Whether the carrier account is active.\"),\n carrier: z.string().describe(\"The carrier name to create an account for (e.g., 'ups').\"),\n metadata: z.string().describe(\"Optional metadata string to associate with the carrier account.\").optional(),\n account_id: z.string().describe(\"Account identifier. This field is required as input to the API, but is not used for UPS. Use the empty string for UPS.\"),\n parameters: z.object({\n email: z.string().describe(\"Email address for the account.\"),\n phone: z.string().describe(\"Phone number for the account.\"),\n title: z.string().describe(\"User's title, e.g. Manager, Doctor, Artist, Engineer, Mr, Ms, Mrs, Mx.\"),\n company: z.string().describe(\"Company name. Full name is acceptable in this field if the user has no company name.\"),\n full_name: z.string().describe(\"Full name of the account holder.\"),\n collec_zip: z.string().describe(\"Zip code of the collection/pickup address. Must be exactly 5 digits.\"),\n has_invoice: z.boolean().describe(\"True if user has been issued a UPS invoice within the past 90 days for the US or Canada; and 45 days for any other countries. User can use data from any of the last 3 invoices.\"),\n invoice_date: z.string().describe(\"Only required if has_invoice is true. Date the invoice was issued in yyyymmdd format.\").optional(),\n currency_code: z.string().describe(\"Only required if has_invoice is true. 3-letter currency code associated with invoice_value.\").optional(),\n invoice_value: z.string().describe(\"Only required if has_invoice is true. Max 16 digits before decimal and 2 digits after decimal.\").optional(),\n account_number: z.string().describe(\"The UPS account number.\"),\n invoice_number: z.string().describe(\"Invoice number. Must be between 1 and 15 characters.\").optional(),\n ups_agreements: z.boolean().describe(\"Whether the user agrees to the UPS terms and conditions. Must be true or the API will return error 400.\"),\n aia_country_iso2: z.string().describe(\"Only required if has_invoice is true. Country associated with the account that issued the invoice.\").optional(),\n invoice_controlid: z.string().describe(\"Only required if aia_country_iso2 is US and has_invoice is true. Must be exactly 4 characters.\").optional(),\n billing_address_zip: z.string().describe(\"Billing address zip code. Must be exactly 5 digits.\"),\n collec_country_iso2: z.string().describe(\"Country ISO 2-letter code for the collection/pickup address.\"),\n billing_address_city: z.string().describe(\"Billing address city.\"),\n billing_address_state: z.string().describe(\"Billing address state code. Must be exactly 2 characters.\"),\n billing_address_street1: z.string().describe(\"Primary billing address street line.\"),\n billing_address_street2: z.string().describe(\"Secondary billing address street line. Empty string is acceptable.\").optional(),\n billing_address_country_iso2: z.string().describe(\"Billing address country ISO 2-letter code.\"),\n}).describe(\"Carrier-specific parameters required for account creation. For UPS, this includes billing address, contact information, and invoice details.\"),\n merchant_id: z.string().describe(\"Object ID of the merchant to create a carrier account for.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use. If not specified, the default API version will be used.\").optional(),\n}).describe(\"Request to create a carrier account for a merchant using the Platform API.\");\nconst ShippoCreateMerchantCarrierAccount_MerchantCarrierAccountParametersResponseSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address for the account.\").nullable().optional(),\n phone: z.string().describe(\"Phone number for the account.\").nullable().optional(),\n title: z.string().describe(\"User's title.\").nullable().optional(),\n company: z.string().describe(\"Company name.\").nullable().optional(),\n full_name: z.string().describe(\"Full name of the account holder.\").nullable().optional(),\n collec_zip: z.string().describe(\"Zip code of the collection/pickup address.\").nullable().optional(),\n has_invoice: z.boolean().describe(\"Whether user has been issued a UPS invoice.\").nullable().optional(),\n invoice_date: z.string().describe(\"Date the invoice was issued.\").nullable().optional(),\n currency_code: z.string().describe(\"3-letter currency code associated with invoice_value.\").nullable().optional(),\n invoice_value: z.string().describe(\"Invoice value.\").nullable().optional(),\n account_number: z.string().describe(\"The UPS account number.\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number.\").nullable().optional(),\n ups_agreements: z.boolean().describe(\"Whether the user agreed to UPS terms and conditions.\").nullable().optional(),\n aia_country_iso2: z.string().describe(\"Country associated with the account that issued the invoice.\").nullable().optional(),\n invoice_controlid: z.string().describe(\"Invoice control ID.\").nullable().optional(),\n billing_address_zip: z.string().describe(\"Billing address zip code.\").nullable().optional(),\n collec_country_iso2: z.string().describe(\"Country ISO 2-letter code for the collection/pickup address.\").nullable().optional(),\n billing_address_city: z.string().describe(\"Billing address city.\").nullable().optional(),\n billing_address_state: z.string().describe(\"Billing address state code.\").nullable().optional(),\n billing_address_street1: z.string().describe(\"Primary billing address street line.\").nullable().optional(),\n billing_address_street2: z.string().describe(\"Secondary billing address street line.\").nullable().optional(),\n billing_address_country_iso2: z.string().describe(\"Billing address country ISO 2-letter code.\").nullable().optional(),\n}).describe(\"Carrier account parameters returned in the response.\");\nexport const ShippoCreateMerchantCarrierAccountOutput: z.ZodTypeAny = z.object({\n test: z.boolean().describe(\"Whether this is a test account.\").nullable().optional(),\n active: z.boolean().describe(\"Whether the carrier account is active.\").nullable().optional(),\n carrier: z.string().describe(\"The carrier name associated with this account.\").nullable().optional(),\n metadata: z.string().describe(\"Metadata associated with the carrier account.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the carrier account object.\").nullable().optional(),\n account_id: z.string().describe(\"The account identifier. Some fields with sensitive data may be returned masked, e.g. '****'.\").nullable().optional(),\n parameters: ShippoCreateMerchantCarrierAccount_MerchantCarrierAccountParametersResponseSchema.nullable().optional(),\n object_owner: z.string().describe(\"Owner of the carrier account object.\").nullable().optional(),\n is_shippo_account: z.boolean().describe(\"Whether this is a Shippo-provided account.\").nullable().optional(),\n}).describe(\"Response containing the created merchant carrier account details.\");\n\nexport const shippoCreateMerchantCarrierAccount = action(\"SHIPPO_CREATE_MERCHANT_CARRIER_ACCOUNT\", {\n slug: \"shippo-create-merchant-carrier-account\",\n name: \"Create Merchant Carrier Account\",\n description: \"Tool to create a carrier account for a merchant using the Shippo Platform API. Use when you need to register carrier credentials for a specific merchant in a platform integration scenario.\",\n input: ShippoCreateMerchantCarrierAccountInput,\n output: ShippoCreateMerchantCarrierAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAAwDA,IAAAA,EAAE,OAAO;CAC5E,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH;CACxJ,YAAYA,IAAAA,EAAE,OAAO;EACrB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;EACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;EACnH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;EACtG,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kLAAkL;EACpN,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EACpI,eAAeA,IA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,CAAC,SAAS;CACnG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,YAAY,kFAAkF,SAAS,CAAC,CAAC,SAAS;CAClH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAE/E,MAAa,qCAAqCC,eAAAA,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-merchant-carrier-account.cjs","names":["z","action"],"sources":["../../src/actions/create-merchant-carrier-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantCarrierAccountInput = z.object({\n test: z.boolean().describe(\"Whether this is a test account.\").optional(),\n active: z.boolean().describe(\"Whether the carrier account is active.\"),\n carrier: z.string().describe(\"The carrier name to create an account for (e.g., 'ups').\"),\n metadata: z.string().describe(\"Optional metadata string to associate with the carrier account.\").optional(),\n account_id: z.string().describe(\"Account identifier. This field is required as input to the API, but is not used for UPS. Use the empty string for UPS.\"),\n parameters: z.object({\n email: z.string().describe(\"Email address for the account.\"),\n phone: z.string().describe(\"Phone number for the account.\"),\n title: z.string().describe(\"User's title, e.g. Manager, Doctor, Artist, Engineer, Mr, Ms, Mrs, Mx.\"),\n company: z.string().describe(\"Company name. Full name is acceptable in this field if the user has no company name.\"),\n full_name: z.string().describe(\"Full name of the account holder.\"),\n collec_zip: z.string().describe(\"Zip code of the collection/pickup address. Must be exactly 5 digits.\"),\n has_invoice: z.boolean().describe(\"True if user has been issued a UPS invoice within the past 90 days for the US or Canada; and 45 days for any other countries. User can use data from any of the last 3 invoices.\"),\n invoice_date: z.string().describe(\"Only required if has_invoice is true. Date the invoice was issued in yyyymmdd format.\").optional(),\n currency_code: z.string().describe(\"Only required if has_invoice is true. 3-letter currency code associated with invoice_value.\").optional(),\n invoice_value: z.string().describe(\"Only required if has_invoice is true. Max 16 digits before decimal and 2 digits after decimal.\").optional(),\n account_number: z.string().describe(\"The UPS account number.\"),\n invoice_number: z.string().describe(\"Invoice number. Must be between 1 and 15 characters.\").optional(),\n ups_agreements: z.boolean().describe(\"Whether the user agrees to the UPS terms and conditions. Must be true or the API will return error 400.\"),\n aia_country_iso2: z.string().describe(\"Only required if has_invoice is true. Country associated with the account that issued the invoice.\").optional(),\n invoice_controlid: z.string().describe(\"Only required if aia_country_iso2 is US and has_invoice is true. Must be exactly 4 characters.\").optional(),\n billing_address_zip: z.string().describe(\"Billing address zip code. Must be exactly 5 digits.\"),\n collec_country_iso2: z.string().describe(\"Country ISO 2-letter code for the collection/pickup address.\"),\n billing_address_city: z.string().describe(\"Billing address city.\"),\n billing_address_state: z.string().describe(\"Billing address state code. Must be exactly 2 characters.\"),\n billing_address_street1: z.string().describe(\"Primary billing address street line.\"),\n billing_address_street2: z.string().describe(\"Secondary billing address street line. Empty string is acceptable.\").optional(),\n billing_address_country_iso2: z.string().describe(\"Billing address country ISO 2-letter code.\"),\n}).describe(\"Carrier-specific parameters required for account creation. For UPS, this includes billing address, contact information, and invoice details.\"),\n merchant_id: z.string().describe(\"Object ID of the merchant to create a carrier account for.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use. If not specified, the default API version will be used.\").optional(),\n}).describe(\"Request to create a carrier account for a merchant using the Platform API.\");\nconst ShippoCreateMerchantCarrierAccount_MerchantCarrierAccountParametersResponseSchema = z.object({\n email: z.string().describe(\"Email address for the account.\").nullable().optional(),\n phone: z.string().describe(\"Phone number for the account.\").nullable().optional(),\n title: z.string().describe(\"User's title.\").nullable().optional(),\n company: z.string().describe(\"Company name.\").nullable().optional(),\n full_name: z.string().describe(\"Full name of the account holder.\").nullable().optional(),\n collec_zip: z.string().describe(\"Zip code of the collection/pickup address.\").nullable().optional(),\n has_invoice: z.boolean().describe(\"Whether user has been issued a UPS invoice.\").nullable().optional(),\n invoice_date: z.string().describe(\"Date the invoice was issued.\").nullable().optional(),\n currency_code: z.string().describe(\"3-letter currency code associated with invoice_value.\").nullable().optional(),\n invoice_value: z.string().describe(\"Invoice value.\").nullable().optional(),\n account_number: z.string().describe(\"The UPS account number.\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number.\").nullable().optional(),\n ups_agreements: z.boolean().describe(\"Whether the user agreed to UPS terms and conditions.\").nullable().optional(),\n aia_country_iso2: z.string().describe(\"Country associated with the account that issued the invoice.\").nullable().optional(),\n invoice_controlid: z.string().describe(\"Invoice control ID.\").nullable().optional(),\n billing_address_zip: z.string().describe(\"Billing address zip code.\").nullable().optional(),\n collec_country_iso2: z.string().describe(\"Country ISO 2-letter code for the collection/pickup address.\").nullable().optional(),\n billing_address_city: z.string().describe(\"Billing address city.\").nullable().optional(),\n billing_address_state: z.string().describe(\"Billing address state code.\").nullable().optional(),\n billing_address_street1: z.string().describe(\"Primary billing address street line.\").nullable().optional(),\n billing_address_street2: z.string().describe(\"Secondary billing address street line.\").nullable().optional(),\n billing_address_country_iso2: z.string().describe(\"Billing address country ISO 2-letter code.\").nullable().optional(),\n}).describe(\"Carrier account parameters returned in the response.\");\nexport const ShippoCreateMerchantCarrierAccountOutput = z.object({\n test: z.boolean().describe(\"Whether this is a test account.\").nullable().optional(),\n active: z.boolean().describe(\"Whether the carrier account is active.\").nullable().optional(),\n carrier: z.string().describe(\"The carrier name associated with this account.\").nullable().optional(),\n metadata: z.string().describe(\"Metadata associated with the carrier account.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the carrier account object.\").nullable().optional(),\n account_id: z.string().describe(\"The account identifier. Some fields with sensitive data may be returned masked, e.g. '****'.\").nullable().optional(),\n parameters: ShippoCreateMerchantCarrierAccount_MerchantCarrierAccountParametersResponseSchema.nullable().optional(),\n object_owner: z.string().describe(\"Owner of the carrier account object.\").nullable().optional(),\n is_shippo_account: z.boolean().describe(\"Whether this is a Shippo-provided account.\").nullable().optional(),\n}).describe(\"Response containing the created merchant carrier account details.\");\n\nexport const shippoCreateMerchantCarrierAccount = action(\"SHIPPO_CREATE_MERCHANT_CARRIER_ACCOUNT\", {\n slug: \"shippo-create-merchant-carrier-account\",\n name: \"Create Merchant Carrier Account\",\n description: \"Tool to create a carrier account for a merchant using the Shippo Platform API. Use when you need to register carrier credentials for a specific merchant in a platform integration scenario.\",\n input: ShippoCreateMerchantCarrierAccountInput,\n output: ShippoCreateMerchantCarrierAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH;CACxJ,YAAYA,IAAAA,EAAE,OAAO;EACrB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CA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C,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,YAAY,kFAAkF,SAAS,CAAC,CAAC,SAAS;CAClH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAE/E,MAAa,qCAAqCC,eAAAA,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,106 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-merchant-carrier-account.d.ts
|
|
4
|
-
declare const ShippoCreateMerchantCarrierAccountInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShippoCreateMerchantCarrierAccountInput: z.ZodObject<{
|
|
5
|
+
test: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
active: z.ZodBoolean;
|
|
7
|
+
carrier: z.ZodString;
|
|
8
|
+
metadata: z.ZodOptional<z.ZodString>;
|
|
9
|
+
account_id: z.ZodString;
|
|
10
|
+
parameters: z.ZodObject<{
|
|
11
|
+
email: z.ZodString;
|
|
12
|
+
phone: z.ZodString;
|
|
13
|
+
title: z.ZodString;
|
|
14
|
+
company: z.ZodString;
|
|
15
|
+
full_name: z.ZodString;
|
|
16
|
+
collec_zip: z.ZodString;
|
|
17
|
+
has_invoice: z.ZodBoolean;
|
|
18
|
+
invoice_date: z.ZodOptional<z.ZodString>;
|
|
19
|
+
currency_code: z.ZodOptional<z.ZodString>;
|
|
20
|
+
invoice_value: z.ZodOptional<z.ZodString>;
|
|
21
|
+
account_number: z.ZodString;
|
|
22
|
+
invoice_number: z.ZodOptional<z.ZodString>;
|
|
23
|
+
ups_agreements: z.ZodBoolean;
|
|
24
|
+
aia_country_iso2: z.ZodOptional<z.ZodString>;
|
|
25
|
+
invoice_controlid: z.ZodOptional<z.ZodString>;
|
|
26
|
+
billing_address_zip: z.ZodString;
|
|
27
|
+
collec_country_iso2: z.ZodString;
|
|
28
|
+
billing_address_city: z.ZodString;
|
|
29
|
+
billing_address_state: z.ZodString;
|
|
30
|
+
billing_address_street1: z.ZodString;
|
|
31
|
+
billing_address_street2: z.ZodOptional<z.ZodString>;
|
|
32
|
+
billing_address_country_iso2: z.ZodString;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
merchant_id: z.ZodString;
|
|
35
|
+
shippo_api_version: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
declare const ShippoCreateMerchantCarrierAccountOutput: z.ZodObject<{
|
|
38
|
+
test: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
39
|
+
active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
40
|
+
carrier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
object_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
parameters: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
45
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
collec_zip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
has_invoice: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
52
|
+
invoice_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
invoice_value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
account_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
invoice_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
ups_agreements: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
58
|
+
aia_country_iso2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
invoice_controlid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
billing_address_zip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
collec_country_iso2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
billing_address_city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
billing_address_state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
billing_address_street1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
billing_address_street2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
billing_address_country_iso2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
}, z.core.$strip>>>;
|
|
68
|
+
object_owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
is_shippo_account: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
declare const shippoCreateMerchantCarrierAccount: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
72
|
+
active: boolean;
|
|
73
|
+
carrier: string;
|
|
74
|
+
account_id: string;
|
|
75
|
+
parameters: {
|
|
76
|
+
email: string;
|
|
77
|
+
phone: string;
|
|
78
|
+
title: string;
|
|
79
|
+
company: string;
|
|
80
|
+
full_name: string;
|
|
81
|
+
collec_zip: string;
|
|
82
|
+
has_invoice: boolean;
|
|
83
|
+
account_number: string;
|
|
84
|
+
ups_agreements: boolean;
|
|
85
|
+
billing_address_zip: string;
|
|
86
|
+
collec_country_iso2: string;
|
|
87
|
+
billing_address_city: string;
|
|
88
|
+
billing_address_state: string;
|
|
89
|
+
billing_address_street1: string;
|
|
90
|
+
billing_address_country_iso2: string;
|
|
91
|
+
invoice_date?: string | undefined;
|
|
92
|
+
currency_code?: string | undefined;
|
|
93
|
+
invoice_value?: string | undefined;
|
|
94
|
+
invoice_number?: string | undefined;
|
|
95
|
+
aia_country_iso2?: string | undefined;
|
|
96
|
+
invoice_controlid?: string | undefined;
|
|
97
|
+
billing_address_street2?: string | undefined;
|
|
98
|
+
};
|
|
99
|
+
merchant_id: string;
|
|
100
|
+
test?: boolean | undefined;
|
|
101
|
+
metadata?: string | undefined;
|
|
102
|
+
shippo_api_version?: string | undefined;
|
|
103
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
104
|
//#endregion
|
|
8
105
|
export { shippoCreateMerchantCarrierAccount };
|
|
9
106
|
//# sourceMappingURL=create-merchant-carrier-account.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-merchant-carrier-account.d.cts","names":[],"sources":["../../src/actions/create-merchant-carrier-account.ts"],"mappings":";;;cAIa,uCAAA,
|
|
1
|
+
{"version":3,"file":"create-merchant-carrier-account.d.cts","names":[],"sources":["../../src/actions/create-merchant-carrier-account.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyDvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYxC,kCAAA,gCAAkC,wBAAA"}
|
|
@@ -1,9 +1,106 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-merchant-carrier-account.d.ts
|
|
4
|
-
declare const ShippoCreateMerchantCarrierAccountInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShippoCreateMerchantCarrierAccountInput: z.ZodObject<{
|
|
5
|
+
test: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
active: z.ZodBoolean;
|
|
7
|
+
carrier: z.ZodString;
|
|
8
|
+
metadata: z.ZodOptional<z.ZodString>;
|
|
9
|
+
account_id: z.ZodString;
|
|
10
|
+
parameters: z.ZodObject<{
|
|
11
|
+
email: z.ZodString;
|
|
12
|
+
phone: z.ZodString;
|
|
13
|
+
title: z.ZodString;
|
|
14
|
+
company: z.ZodString;
|
|
15
|
+
full_name: z.ZodString;
|
|
16
|
+
collec_zip: z.ZodString;
|
|
17
|
+
has_invoice: z.ZodBoolean;
|
|
18
|
+
invoice_date: z.ZodOptional<z.ZodString>;
|
|
19
|
+
currency_code: z.ZodOptional<z.ZodString>;
|
|
20
|
+
invoice_value: z.ZodOptional<z.ZodString>;
|
|
21
|
+
account_number: z.ZodString;
|
|
22
|
+
invoice_number: z.ZodOptional<z.ZodString>;
|
|
23
|
+
ups_agreements: z.ZodBoolean;
|
|
24
|
+
aia_country_iso2: z.ZodOptional<z.ZodString>;
|
|
25
|
+
invoice_controlid: z.ZodOptional<z.ZodString>;
|
|
26
|
+
billing_address_zip: z.ZodString;
|
|
27
|
+
collec_country_iso2: z.ZodString;
|
|
28
|
+
billing_address_city: z.ZodString;
|
|
29
|
+
billing_address_state: z.ZodString;
|
|
30
|
+
billing_address_street1: z.ZodString;
|
|
31
|
+
billing_address_street2: z.ZodOptional<z.ZodString>;
|
|
32
|
+
billing_address_country_iso2: z.ZodString;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
merchant_id: z.ZodString;
|
|
35
|
+
shippo_api_version: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
declare const ShippoCreateMerchantCarrierAccountOutput: z.ZodObject<{
|
|
38
|
+
test: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
39
|
+
active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
40
|
+
carrier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
object_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
parameters: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
45
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
collec_zip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
has_invoice: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
52
|
+
invoice_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
invoice_value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
account_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
invoice_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
ups_agreements: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
58
|
+
aia_country_iso2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
invoice_controlid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
billing_address_zip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
collec_country_iso2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
billing_address_city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
billing_address_state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
billing_address_street1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
billing_address_street2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
billing_address_country_iso2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
}, z.core.$strip>>>;
|
|
68
|
+
object_owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
is_shippo_account: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
declare const shippoCreateMerchantCarrierAccount: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
72
|
+
active: boolean;
|
|
73
|
+
carrier: string;
|
|
74
|
+
account_id: string;
|
|
75
|
+
parameters: {
|
|
76
|
+
email: string;
|
|
77
|
+
phone: string;
|
|
78
|
+
title: string;
|
|
79
|
+
company: string;
|
|
80
|
+
full_name: string;
|
|
81
|
+
collec_zip: string;
|
|
82
|
+
has_invoice: boolean;
|
|
83
|
+
account_number: string;
|
|
84
|
+
ups_agreements: boolean;
|
|
85
|
+
billing_address_zip: string;
|
|
86
|
+
collec_country_iso2: string;
|
|
87
|
+
billing_address_city: string;
|
|
88
|
+
billing_address_state: string;
|
|
89
|
+
billing_address_street1: string;
|
|
90
|
+
billing_address_country_iso2: string;
|
|
91
|
+
invoice_date?: string | undefined;
|
|
92
|
+
currency_code?: string | undefined;
|
|
93
|
+
invoice_value?: string | undefined;
|
|
94
|
+
invoice_number?: string | undefined;
|
|
95
|
+
aia_country_iso2?: string | undefined;
|
|
96
|
+
invoice_controlid?: string | undefined;
|
|
97
|
+
billing_address_street2?: string | undefined;
|
|
98
|
+
};
|
|
99
|
+
merchant_id: string;
|
|
100
|
+
test?: boolean | undefined;
|
|
101
|
+
metadata?: string | undefined;
|
|
102
|
+
shippo_api_version?: string | undefined;
|
|
103
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
104
|
//#endregion
|
|
8
105
|
export { shippoCreateMerchantCarrierAccount };
|
|
9
106
|
//# sourceMappingURL=create-merchant-carrier-account.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-merchant-carrier-account.d.mts","names":[],"sources":["../../src/actions/create-merchant-carrier-account.ts"],"mappings":";;;cAIa,uCAAA,
|
|
1
|
+
{"version":3,"file":"create-merchant-carrier-account.d.mts","names":[],"sources":["../../src/actions/create-merchant-carrier-account.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyDvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYxC,kCAAA,gCAAkC,wBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-merchant-carrier-account.mjs","names":[],"sources":["../../src/actions/create-merchant-carrier-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantCarrierAccountInput: z.ZodTypeAny = z.object({\n test: z.boolean().describe(\"Whether this is a test account.\").optional(),\n active: z.boolean().describe(\"Whether the carrier account is active.\"),\n carrier: z.string().describe(\"The carrier name to create an account for (e.g., 'ups').\"),\n metadata: z.string().describe(\"Optional metadata string to associate with the carrier account.\").optional(),\n account_id: z.string().describe(\"Account identifier. This field is required as input to the API, but is not used for UPS. Use the empty string for UPS.\"),\n parameters: z.object({\n email: z.string().describe(\"Email address for the account.\"),\n phone: z.string().describe(\"Phone number for the account.\"),\n title: z.string().describe(\"User's title, e.g. Manager, Doctor, Artist, Engineer, Mr, Ms, Mrs, Mx.\"),\n company: z.string().describe(\"Company name. Full name is acceptable in this field if the user has no company name.\"),\n full_name: z.string().describe(\"Full name of the account holder.\"),\n collec_zip: z.string().describe(\"Zip code of the collection/pickup address. Must be exactly 5 digits.\"),\n has_invoice: z.boolean().describe(\"True if user has been issued a UPS invoice within the past 90 days for the US or Canada; and 45 days for any other countries. User can use data from any of the last 3 invoices.\"),\n invoice_date: z.string().describe(\"Only required if has_invoice is true. Date the invoice was issued in yyyymmdd format.\").optional(),\n currency_code: z.string().describe(\"Only required if has_invoice is true. 3-letter currency code associated with invoice_value.\").optional(),\n invoice_value: z.string().describe(\"Only required if has_invoice is true. Max 16 digits before decimal and 2 digits after decimal.\").optional(),\n account_number: z.string().describe(\"The UPS account number.\"),\n invoice_number: z.string().describe(\"Invoice number. Must be between 1 and 15 characters.\").optional(),\n ups_agreements: z.boolean().describe(\"Whether the user agrees to the UPS terms and conditions. Must be true or the API will return error 400.\"),\n aia_country_iso2: z.string().describe(\"Only required if has_invoice is true. Country associated with the account that issued the invoice.\").optional(),\n invoice_controlid: z.string().describe(\"Only required if aia_country_iso2 is US and has_invoice is true. Must be exactly 4 characters.\").optional(),\n billing_address_zip: z.string().describe(\"Billing address zip code. Must be exactly 5 digits.\"),\n collec_country_iso2: z.string().describe(\"Country ISO 2-letter code for the collection/pickup address.\"),\n billing_address_city: z.string().describe(\"Billing address city.\"),\n billing_address_state: z.string().describe(\"Billing address state code. Must be exactly 2 characters.\"),\n billing_address_street1: z.string().describe(\"Primary billing address street line.\"),\n billing_address_street2: z.string().describe(\"Secondary billing address street line. Empty string is acceptable.\").optional(),\n billing_address_country_iso2: z.string().describe(\"Billing address country ISO 2-letter code.\"),\n}).describe(\"Carrier-specific parameters required for account creation. For UPS, this includes billing address, contact information, and invoice details.\"),\n merchant_id: z.string().describe(\"Object ID of the merchant to create a carrier account for.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use. If not specified, the default API version will be used.\").optional(),\n}).describe(\"Request to create a carrier account for a merchant using the Platform API.\");\nconst ShippoCreateMerchantCarrierAccount_MerchantCarrierAccountParametersResponseSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address for the account.\").nullable().optional(),\n phone: z.string().describe(\"Phone number for the account.\").nullable().optional(),\n title: z.string().describe(\"User's title.\").nullable().optional(),\n company: z.string().describe(\"Company name.\").nullable().optional(),\n full_name: z.string().describe(\"Full name of the account holder.\").nullable().optional(),\n collec_zip: z.string().describe(\"Zip code of the collection/pickup address.\").nullable().optional(),\n has_invoice: z.boolean().describe(\"Whether user has been issued a UPS invoice.\").nullable().optional(),\n invoice_date: z.string().describe(\"Date the invoice was issued.\").nullable().optional(),\n currency_code: z.string().describe(\"3-letter currency code associated with invoice_value.\").nullable().optional(),\n invoice_value: z.string().describe(\"Invoice value.\").nullable().optional(),\n account_number: z.string().describe(\"The UPS account number.\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number.\").nullable().optional(),\n ups_agreements: z.boolean().describe(\"Whether the user agreed to UPS terms and conditions.\").nullable().optional(),\n aia_country_iso2: z.string().describe(\"Country associated with the account that issued the invoice.\").nullable().optional(),\n invoice_controlid: z.string().describe(\"Invoice control ID.\").nullable().optional(),\n billing_address_zip: z.string().describe(\"Billing address zip code.\").nullable().optional(),\n collec_country_iso2: z.string().describe(\"Country ISO 2-letter code for the collection/pickup address.\").nullable().optional(),\n billing_address_city: z.string().describe(\"Billing address city.\").nullable().optional(),\n billing_address_state: z.string().describe(\"Billing address state code.\").nullable().optional(),\n billing_address_street1: z.string().describe(\"Primary billing address street line.\").nullable().optional(),\n billing_address_street2: z.string().describe(\"Secondary billing address street line.\").nullable().optional(),\n billing_address_country_iso2: z.string().describe(\"Billing address country ISO 2-letter code.\").nullable().optional(),\n}).describe(\"Carrier account parameters returned in the response.\");\nexport const ShippoCreateMerchantCarrierAccountOutput: z.ZodTypeAny = z.object({\n test: z.boolean().describe(\"Whether this is a test account.\").nullable().optional(),\n active: z.boolean().describe(\"Whether the carrier account is active.\").nullable().optional(),\n carrier: z.string().describe(\"The carrier name associated with this account.\").nullable().optional(),\n metadata: z.string().describe(\"Metadata associated with the carrier account.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the carrier account object.\").nullable().optional(),\n account_id: z.string().describe(\"The account identifier. Some fields with sensitive data may be returned masked, e.g. '****'.\").nullable().optional(),\n parameters: ShippoCreateMerchantCarrierAccount_MerchantCarrierAccountParametersResponseSchema.nullable().optional(),\n object_owner: z.string().describe(\"Owner of the carrier account object.\").nullable().optional(),\n is_shippo_account: z.boolean().describe(\"Whether this is a Shippo-provided account.\").nullable().optional(),\n}).describe(\"Response containing the created merchant carrier account details.\");\n\nexport const shippoCreateMerchantCarrierAccount = action(\"SHIPPO_CREATE_MERCHANT_CARRIER_ACCOUNT\", {\n slug: \"shippo-create-merchant-carrier-account\",\n name: \"Create Merchant Carrier Account\",\n description: \"Tool to create a carrier account for a merchant using the Shippo Platform API. Use when you need to register carrier credentials for a specific merchant in a platform integration scenario.\",\n input: ShippoCreateMerchantCarrierAccountInput,\n output: ShippoCreateMerchantCarrierAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAAwD,EAAE,OAAO;CAC5E,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACvE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;CACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACvF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH;CACxJ,YAAY,EAAE,OAAO;EACrB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;EACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;EACnH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;EACtG,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,kLAAkL;EACpN,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EACpI,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;EAC3I,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;EAC9I,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EAC7D,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACrG,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,yGAAyG;EAC9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[],"sources":["../../src/actions/create-merchant-carrier-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantCarrierAccountInput = z.object({\n test: z.boolean().describe(\"Whether this is a test account.\").optional(),\n active: z.boolean().describe(\"Whether the carrier account is active.\"),\n carrier: z.string().describe(\"The carrier name to create an account for (e.g., 'ups').\"),\n metadata: z.string().describe(\"Optional metadata string to associate with the carrier account.\").optional(),\n account_id: z.string().describe(\"Account identifier. This field is required as input to the API, but is not used for UPS. Use the empty string for UPS.\"),\n parameters: z.object({\n email: z.string().describe(\"Email address for the account.\"),\n phone: z.string().describe(\"Phone number for the account.\"),\n title: z.string().describe(\"User's title, e.g. Manager, Doctor, Artist, Engineer, Mr, Ms, Mrs, Mx.\"),\n company: z.string().describe(\"Company name. Full name is acceptable in this field if the user has no company name.\"),\n full_name: z.string().describe(\"Full name of the account holder.\"),\n collec_zip: z.string().describe(\"Zip code of the collection/pickup address. Must be exactly 5 digits.\"),\n has_invoice: z.boolean().describe(\"True if user has been issued a UPS invoice within the past 90 days for the US or Canada; and 45 days for any other countries. User can use data from any of the last 3 invoices.\"),\n invoice_date: z.string().describe(\"Only required if has_invoice is true. Date the invoice was issued in yyyymmdd format.\").optional(),\n currency_code: z.string().describe(\"Only required if has_invoice is true. 3-letter currency code associated with invoice_value.\").optional(),\n invoice_value: z.string().describe(\"Only required if has_invoice is true. Max 16 digits before decimal and 2 digits after decimal.\").optional(),\n account_number: z.string().describe(\"The UPS account number.\"),\n invoice_number: z.string().describe(\"Invoice number. Must be between 1 and 15 characters.\").optional(),\n ups_agreements: z.boolean().describe(\"Whether the user agrees to the UPS terms and conditions. Must be true or the API will return error 400.\"),\n aia_country_iso2: z.string().describe(\"Only required if has_invoice is true. Country associated with the account that issued the invoice.\").optional(),\n invoice_controlid: z.string().describe(\"Only required if aia_country_iso2 is US and has_invoice is true. Must be exactly 4 characters.\").optional(),\n billing_address_zip: z.string().describe(\"Billing address zip code. Must be exactly 5 digits.\"),\n collec_country_iso2: z.string().describe(\"Country ISO 2-letter code for the collection/pickup address.\"),\n billing_address_city: z.string().describe(\"Billing address city.\"),\n billing_address_state: z.string().describe(\"Billing address state code. Must be exactly 2 characters.\"),\n billing_address_street1: z.string().describe(\"Primary billing address street line.\"),\n billing_address_street2: z.string().describe(\"Secondary billing address street line. Empty string is acceptable.\").optional(),\n billing_address_country_iso2: z.string().describe(\"Billing address country ISO 2-letter code.\"),\n}).describe(\"Carrier-specific parameters required for account creation. For UPS, this includes billing address, contact information, and invoice details.\"),\n merchant_id: z.string().describe(\"Object ID of the merchant to create a carrier account for.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use. If not specified, the default API version will be used.\").optional(),\n}).describe(\"Request to create a carrier account for a merchant using the Platform API.\");\nconst ShippoCreateMerchantCarrierAccount_MerchantCarrierAccountParametersResponseSchema = z.object({\n email: z.string().describe(\"Email address for the account.\").nullable().optional(),\n phone: z.string().describe(\"Phone number for the account.\").nullable().optional(),\n title: z.string().describe(\"User's title.\").nullable().optional(),\n company: z.string().describe(\"Company name.\").nullable().optional(),\n full_name: z.string().describe(\"Full name of the account holder.\").nullable().optional(),\n collec_zip: z.string().describe(\"Zip code of the collection/pickup address.\").nullable().optional(),\n has_invoice: z.boolean().describe(\"Whether user has been issued a UPS invoice.\").nullable().optional(),\n invoice_date: z.string().describe(\"Date the invoice was issued.\").nullable().optional(),\n currency_code: z.string().describe(\"3-letter currency code associated with invoice_value.\").nullable().optional(),\n invoice_value: z.string().describe(\"Invoice value.\").nullable().optional(),\n account_number: z.string().describe(\"The UPS account number.\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number.\").nullable().optional(),\n ups_agreements: z.boolean().describe(\"Whether the user agreed to UPS terms and conditions.\").nullable().optional(),\n aia_country_iso2: z.string().describe(\"Country associated with the account that issued the invoice.\").nullable().optional(),\n invoice_controlid: z.string().describe(\"Invoice control ID.\").nullable().optional(),\n billing_address_zip: z.string().describe(\"Billing address zip code.\").nullable().optional(),\n collec_country_iso2: z.string().describe(\"Country ISO 2-letter code for the collection/pickup address.\").nullable().optional(),\n billing_address_city: z.string().describe(\"Billing address city.\").nullable().optional(),\n billing_address_state: z.string().describe(\"Billing address state code.\").nullable().optional(),\n billing_address_street1: z.string().describe(\"Primary billing address street line.\").nullable().optional(),\n billing_address_street2: z.string().describe(\"Secondary billing address street line.\").nullable().optional(),\n billing_address_country_iso2: z.string().describe(\"Billing address country ISO 2-letter code.\").nullable().optional(),\n}).describe(\"Carrier account parameters returned in the response.\");\nexport const ShippoCreateMerchantCarrierAccountOutput = z.object({\n test: z.boolean().describe(\"Whether this is a test account.\").nullable().optional(),\n active: z.boolean().describe(\"Whether the carrier account is active.\").nullable().optional(),\n carrier: z.string().describe(\"The carrier name associated with this account.\").nullable().optional(),\n metadata: z.string().describe(\"Metadata associated with the carrier account.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the carrier account object.\").nullable().optional(),\n account_id: z.string().describe(\"The account identifier. Some fields with sensitive data may be returned masked, e.g. '****'.\").nullable().optional(),\n parameters: ShippoCreateMerchantCarrierAccount_MerchantCarrierAccountParametersResponseSchema.nullable().optional(),\n object_owner: z.string().describe(\"Owner of the carrier account object.\").nullable().optional(),\n is_shippo_account: z.boolean().describe(\"Whether this is a Shippo-provided account.\").nullable().optional(),\n}).describe(\"Response containing the created merchant carrier account details.\");\n\nexport const shippoCreateMerchantCarrierAccount = action(\"SHIPPO_CREATE_MERCHANT_CARRIER_ACCOUNT\", {\n slug: \"shippo-create-merchant-carrier-account\",\n name: \"Create Merchant Carrier Account\",\n description: \"Tool to create a carrier account for a merchant using the Shippo Platform API. Use when you need to register carrier credentials for a specific merchant in a platform integration scenario.\",\n input: ShippoCreateMerchantCarrierAccountInput,\n output: ShippoCreateMerchantCarrierAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0C,EAAE,OAAO;CAC9D,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAA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AAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAalE,MAAa,qCAAqC,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBsD,EAAE,OAAO;EAC/D,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpJ,YAAY,kFAAkF,SAAS,CAAC,CAAC,SAAS;EAClH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,SAAS,mEAOF;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-merchant-customs-declaration.cjs","names":["z","action"],"sources":["../../src/actions/create-merchant-customs-declaration.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantCustomsDeclarationInput: z.ZodTypeAny = z.object({\n test: z.boolean().describe(\"Indicates whether to create this in test mode. Use true for testing without affecting production data. Optional field.\").optional(),\n items: z.array(z.object({\n metadata: z.string().describe(\"Custom metadata string for storing additional information about the customs item. Optional field.\").optional(),\n quantity: z.number().int().describe(\"Quantity of this item in the shipment. Must be a positive integer. Required field.\"),\n sku_code: z.string().describe(\"Stock Keeping Unit code or product identifier for inventory tracking. Optional field.\").optional(),\n mass_unit: z.enum([\"g\", \"kg\", \"lb\", \"oz\"]).describe(\"Unit of measurement for the weight. Required field. Valid values: 'g', 'kg', 'lb', 'oz'.\"),\n eccn_ear99: z.string().describe(\"Export Control Classification Number (ECCN) or EAR99 designation for export control purposes. Optional field.\").optional(),\n net_weight: z.string().describe(\"Net weight of the item (total weight for all units). Numeric string value. Required field.\"),\n description: z.string().describe(\"Text description of the item being shipped for customs purposes. Required field.\"),\n value_amount: z.string().describe(\"Monetary value of the item. Numeric string with up to 2 decimal places. Required field.\"),\n tariff_number: z.string().describe(\"Harmonized Tariff Schedule (HTS) code for the item. Used for customs classification. Optional field.\").optional(),\n origin_country: z.string().describe(\"Two-letter ISO 3166-1 alpha-2 country code of the item's origin country. Required field.\"),\n value_currency: z.string().describe(\"Three-letter ISO 4217 currency code for the item value. Required field.\"),\n}).describe(\"Customs item details for the declaration.\")).describe(\"Array of customs items included in this declaration. At least one item is required.\"),\n notes: z.string().describe(\"Additional notes or instructions to be included in the customs declaration. Optional field.\").optional(),\n aes_itn: z.string().describe(\"AES / ITN (Automated Export System / Internal Transaction Number) reference. Required if eel_pfc is 'AES_ITN'. Optional otherwise.\").optional(),\n certify: z.boolean().describe(\"Expresses that the certify_signer has provided all information of the customs declaration truthfully. Required field.\"),\n eel_pfc: z.string().describe(\"Export information - EEL (Exemption and Exclusion Legend) or PFC (Proof of Filing Citation) code. Optional field.\").optional(),\n invoice: z.string().describe(\"Invoice reference number of the shipment. Optional field.\").optional(),\n license: z.string().describe(\"Export license reference of the shipment. Optional field.\").optional(),\n incoterm: z.string().describe(\"The incoterm reference of the shipment. Optional field.\").optional(),\n metadata: z.string().describe(\"Custom metadata string, up to 100 characters. Use for storing your own reference data. Optional field.\").optional(),\n disclaimer: z.string().describe(\"Disclaimer for the shipment and customs information. Optional field.\").optional(),\n b13a_number: z.string().describe(\"B13A number (Proof of Report, Summary ID, or Exemption Number). Must be provided if and only if b13a_filing_option is provided.\").optional(),\n certificate: z.string().describe(\"Certificate reference of the shipment. Optional field.\").optional(),\n merchant_id: z.string().describe(\"Object ID of the merchant to create the customs declaration for. This is the merchant's unique identifier in Shippo's system.\"),\n contents_type: z.enum([\"DOCUMENTS\", \"GIFT\", \"SAMPLE\", \"MERCHANDISE\", \"HUMANITARIAN_DONATION\", \"RETURN_MERCHANDISE\", \"OTHER\"]).describe(\"Type of contents being shipped. Required field. Valid values: DOCUMENTS, GIFT, SAMPLE, MERCHANDISE, HUMANITARIAN_DONATION, RETURN_MERCHANDISE, OTHER.\"),\n certify_signer: z.string().describe(\"Name of the person responsible for the validity of all information provided in the customs declaration. Required field.\"),\n b13a_filing_option: z.string().describe(\"B13A filing option for Canadian exports. Optional field.\").optional(),\n commercial_invoice: z.string().describe(\"Commercial invoice reference. Optional field.\").optional(),\n exporter_reference: z.string().describe(\"Exporter reference of an export shipment. Optional field.\").optional(),\n importer_reference: z.string().describe(\"Importer reference of an import shipment. Optional field.\").optional(),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use. Leave empty to use the default version.\").optional(),\n non_delivery_option: z.enum([\"ABANDON\", \"RETURN\"]).describe(\"Action to take if delivery fails. Required field. Valid values: 'RETURN' (return to sender), 'ABANDON' (dispose of package).\"),\n contents_explanation: z.string().describe(\"Explanation of the type of goods being shipped. Required if contents_type is 'OTHER'. Optional otherwise.\").optional(),\n}).describe(\"Request to create a new customs declaration for a merchant via Platform API.\");\nconst ShippoCreateMerchantCustomsDeclaration_ObjectStateSchema: z.ZodTypeAny = z.enum([\"INVALID\", \"VALID\"]).describe(\"Enum for object state values.\");\nexport const ShippoCreateMerchantCustomsDeclarationOutput: z.ZodTypeAny = z.object({\n test: z.boolean().describe(\"Boolean indicating if this is a test mode customs declaration.\").nullable().optional(),\n items: z.array(z.string()).describe(\"Array of customs item object IDs associated with this declaration.\").nullable().optional(),\n notes: z.string().describe(\"Additional notes or instructions.\").nullable().optional(),\n aes_itn: z.string().describe(\"AES / ITN reference of the shipment.\").nullable().optional(),\n certify: z.boolean().describe(\"Certifies that all information provided is truthful.\").nullable().optional(),\n eel_pfc: z.string().describe(\"Export information - EEL or PFC code.\").nullable().optional(),\n invoice: z.string().describe(\"Invoice reference number.\").nullable().optional(),\n license: z.string().describe(\"Export license reference.\").nullable().optional(),\n incoterm: z.string().describe(\"The incoterm reference of the shipment.\").nullable().optional(),\n metadata: z.string().describe(\"Custom metadata string.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier of the customs declaration object.\").nullable().optional(),\n disclaimer: z.string().describe(\"Disclaimer for the shipment.\").nullable().optional(),\n b13a_number: z.string().describe(\"B13A number.\").nullable().optional(),\n certificate: z.string().describe(\"Certificate reference of the shipment.\").nullable().optional(),\n object_owner: z.string().describe(\"Username of the user who created the customs declaration.\").nullable().optional(),\n object_state: ShippoCreateMerchantCustomsDeclaration_ObjectStateSchema.nullable().optional(),\n contents_type: z.string().describe(\"Type of contents being shipped.\").nullable().optional(),\n certify_signer: z.string().describe(\"Name of the person certifying the declaration.\").nullable().optional(),\n object_created: z.string().describe(\"ISO 8601 timestamp when the customs declaration was created.\").nullable().optional(),\n object_updated: z.string().describe(\"ISO 8601 timestamp when the customs declaration was last updated.\").nullable().optional(),\n b13a_filing_option: z.string().describe(\"B13A filing option for Canadian exports.\").nullable().optional(),\n commercial_invoice: z.union([z.string(), z.boolean()]).nullable().optional(),\n exporter_reference: z.string().describe(\"Exporter reference.\").nullable().optional(),\n importer_reference: z.string().describe(\"Importer reference.\").nullable().optional(),\n non_delivery_option: z.string().describe(\"Action to take if delivery fails.\").nullable().optional(),\n contents_explanation: z.string().describe(\"Explanation of the type of goods being shipped.\").nullable().optional(),\n}).describe(\"Response containing the created customs declaration details for a merchant.\");\n\nexport const shippoCreateMerchantCustomsDeclaration = action(\"SHIPPO_CREATE_MERCHANT_CUSTOMS_DECLARATION\", {\n slug: \"shippo-create-merchant-customs-declaration\",\n name: \"Create Merchant Customs Declaration\",\n description: \"Tool to create a new customs declaration for a merchant using Shippo's Platform API. Use when you need to create a customs declaration for international shipments on behalf of a merchant. This endpoint is part of the Platform API and requires a merchant ID.\",\n input: ShippoCreateMerchantCustomsDeclarationInput,\n output: ShippoCreateMerchantCustomsDeclarationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8CAA4DA,IAAAA,EAAE,OAAO;CAChF,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC9J,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;EAC5I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF;EACxH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EAChI,WAAWA,IAAAA,EAAE,KAAK;GAAC;GAAK;GAAM;GAAM;EAAI,CAAC,CAAC,CAAC,SAAS,0FAA0F;EAC9I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;EAC1J,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;EAC5H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;EACnH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;EAC3H,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;EACpJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA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,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,oBAAoBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,6EAA6E;AAEzF,MAAa,yCAAyCC,eAAAA,OAAO,8CAA8C;CACzG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-merchant-customs-declaration.cjs","names":["z","action"],"sources":["../../src/actions/create-merchant-customs-declaration.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantCustomsDeclarationInput = z.object({\n test: z.boolean().describe(\"Indicates whether to create this in test mode. Use true for testing without affecting production data. Optional field.\").optional(),\n items: z.array(z.object({\n metadata: z.string().describe(\"Custom metadata string for storing additional information about the customs item. Optional field.\").optional(),\n quantity: z.number().int().describe(\"Quantity of this item in the shipment. Must be a positive integer. Required field.\"),\n sku_code: z.string().describe(\"Stock Keeping Unit code or product identifier for inventory tracking. Optional field.\").optional(),\n mass_unit: z.enum([\"g\", \"kg\", \"lb\", \"oz\"]).describe(\"Unit of measurement for the weight. Required field. Valid values: 'g', 'kg', 'lb', 'oz'.\"),\n eccn_ear99: z.string().describe(\"Export Control Classification Number (ECCN) or EAR99 designation for export control purposes. Optional field.\").optional(),\n net_weight: z.string().describe(\"Net weight of the item (total weight for all units). Numeric string value. Required field.\"),\n description: z.string().describe(\"Text description of the item being shipped for customs purposes. Required field.\"),\n value_amount: z.string().describe(\"Monetary value of the item. Numeric string with up to 2 decimal places. Required field.\"),\n tariff_number: z.string().describe(\"Harmonized Tariff Schedule (HTS) code for the item. Used for customs classification. Optional field.\").optional(),\n origin_country: z.string().describe(\"Two-letter ISO 3166-1 alpha-2 country code of the item's origin country. Required field.\"),\n value_currency: z.string().describe(\"Three-letter ISO 4217 currency code for the item value. Required field.\"),\n}).describe(\"Customs item details for the declaration.\")).describe(\"Array of customs items included in this declaration. At least one item is required.\"),\n notes: z.string().describe(\"Additional notes or instructions to be included in the customs declaration. Optional field.\").optional(),\n aes_itn: z.string().describe(\"AES / ITN (Automated Export System / Internal Transaction Number) reference. Required if eel_pfc is 'AES_ITN'. Optional otherwise.\").optional(),\n certify: z.boolean().describe(\"Expresses that the certify_signer has provided all information of the customs declaration truthfully. Required field.\"),\n eel_pfc: z.string().describe(\"Export information - EEL (Exemption and Exclusion Legend) or PFC (Proof of Filing Citation) code. Optional field.\").optional(),\n invoice: z.string().describe(\"Invoice reference number of the shipment. Optional field.\").optional(),\n license: z.string().describe(\"Export license reference of the shipment. Optional field.\").optional(),\n incoterm: z.string().describe(\"The incoterm reference of the shipment. Optional field.\").optional(),\n metadata: z.string().describe(\"Custom metadata string, up to 100 characters. Use for storing your own reference data. Optional field.\").optional(),\n disclaimer: z.string().describe(\"Disclaimer for the shipment and customs information. Optional field.\").optional(),\n b13a_number: z.string().describe(\"B13A number (Proof of Report, Summary ID, or Exemption Number). Must be provided if and only if b13a_filing_option is provided.\").optional(),\n certificate: z.string().describe(\"Certificate reference of the shipment. Optional field.\").optional(),\n merchant_id: z.string().describe(\"Object ID of the merchant to create the customs declaration for. This is the merchant's unique identifier in Shippo's system.\"),\n contents_type: z.enum([\"DOCUMENTS\", \"GIFT\", \"SAMPLE\", \"MERCHANDISE\", \"HUMANITARIAN_DONATION\", \"RETURN_MERCHANDISE\", \"OTHER\"]).describe(\"Type of contents being shipped. Required field. Valid values: DOCUMENTS, GIFT, SAMPLE, MERCHANDISE, HUMANITARIAN_DONATION, RETURN_MERCHANDISE, OTHER.\"),\n certify_signer: z.string().describe(\"Name of the person responsible for the validity of all information provided in the customs declaration. Required field.\"),\n b13a_filing_option: z.string().describe(\"B13A filing option for Canadian exports. Optional field.\").optional(),\n commercial_invoice: z.string().describe(\"Commercial invoice reference. Optional field.\").optional(),\n exporter_reference: z.string().describe(\"Exporter reference of an export shipment. Optional field.\").optional(),\n importer_reference: z.string().describe(\"Importer reference of an import shipment. Optional field.\").optional(),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use. Leave empty to use the default version.\").optional(),\n non_delivery_option: z.enum([\"ABANDON\", \"RETURN\"]).describe(\"Action to take if delivery fails. Required field. Valid values: 'RETURN' (return to sender), 'ABANDON' (dispose of package).\"),\n contents_explanation: z.string().describe(\"Explanation of the type of goods being shipped. Required if contents_type is 'OTHER'. Optional otherwise.\").optional(),\n}).describe(\"Request to create a new customs declaration for a merchant via Platform API.\");\nconst ShippoCreateMerchantCustomsDeclaration_ObjectStateSchema = z.enum([\"INVALID\", \"VALID\"]).describe(\"Enum for object state values.\");\nexport const ShippoCreateMerchantCustomsDeclarationOutput = z.object({\n test: z.boolean().describe(\"Boolean indicating if this is a test mode customs declaration.\").nullable().optional(),\n items: z.array(z.string()).describe(\"Array of customs item object IDs associated with this declaration.\").nullable().optional(),\n notes: z.string().describe(\"Additional notes or instructions.\").nullable().optional(),\n aes_itn: z.string().describe(\"AES / ITN reference of the shipment.\").nullable().optional(),\n certify: z.boolean().describe(\"Certifies that all information provided is truthful.\").nullable().optional(),\n eel_pfc: z.string().describe(\"Export information - EEL or PFC code.\").nullable().optional(),\n invoice: z.string().describe(\"Invoice reference number.\").nullable().optional(),\n license: z.string().describe(\"Export license reference.\").nullable().optional(),\n incoterm: z.string().describe(\"The incoterm reference of the shipment.\").nullable().optional(),\n metadata: z.string().describe(\"Custom metadata string.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier of the customs declaration object.\").nullable().optional(),\n disclaimer: z.string().describe(\"Disclaimer for the shipment.\").nullable().optional(),\n b13a_number: z.string().describe(\"B13A number.\").nullable().optional(),\n certificate: z.string().describe(\"Certificate reference of the shipment.\").nullable().optional(),\n object_owner: z.string().describe(\"Username of the user who created the customs declaration.\").nullable().optional(),\n object_state: ShippoCreateMerchantCustomsDeclaration_ObjectStateSchema.nullable().optional(),\n contents_type: z.string().describe(\"Type of contents being shipped.\").nullable().optional(),\n certify_signer: z.string().describe(\"Name of the person certifying the declaration.\").nullable().optional(),\n object_created: z.string().describe(\"ISO 8601 timestamp when the customs declaration was created.\").nullable().optional(),\n object_updated: z.string().describe(\"ISO 8601 timestamp when the customs declaration was last updated.\").nullable().optional(),\n b13a_filing_option: z.string().describe(\"B13A filing option for Canadian exports.\").nullable().optional(),\n commercial_invoice: z.union([z.string(), z.boolean()]).nullable().optional(),\n exporter_reference: z.string().describe(\"Exporter reference.\").nullable().optional(),\n importer_reference: z.string().describe(\"Importer reference.\").nullable().optional(),\n non_delivery_option: z.string().describe(\"Action to take if delivery fails.\").nullable().optional(),\n contents_explanation: z.string().describe(\"Explanation of the type of goods being shipped.\").nullable().optional(),\n}).describe(\"Response containing the created customs declaration details for a merchant.\");\n\nexport const shippoCreateMerchantCustomsDeclaration = action(\"SHIPPO_CREATE_MERCHANT_CUSTOMS_DECLARATION\", {\n slug: \"shippo-create-merchant-customs-declaration\",\n name: \"Create Merchant Customs Declaration\",\n description: \"Tool to create a new customs declaration for a merchant using Shippo's Platform API. Use when you need to create a customs declaration for international shipments on behalf of a merchant. This endpoint is part of the Platform API and requires a merchant ID.\",\n input: ShippoCreateMerchantCustomsDeclarationInput,\n output: ShippoCreateMerchantCustomsDeclarationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8CAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC9J,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;EAC5I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF;EACxH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EAChI,WAAWA,IAAAA,EAAE,KAAK;GAAC;GAAK;GAAM;GAAM;EAAI,CAAC,CAAC,CAAC,SAAS,0FAA0F;EAC9I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;EAC1J,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;EAC5H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;EACnH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;EAC3H,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;EACpJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;EAC9H,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CAC/G,CAAC,CAAC,CAAC,SAAS,2CAA2C,C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